@@ -29,6 +30,7 @@ export default {
pagination: { type: Object, default: () => ({}) },
options: { type: Array, default: () => [15, 50, 100, 200, 300] },
},
+ emits: ['update:pagination'],
data () {
return {
rowsPerPage: 0,
diff --git a/src/core/components/table/ResponsiveTable.vue b/src/core/components/table/ResponsiveTable.vue
index dae5c5a13d..1959cfdd42 100644
--- a/src/core/components/table/ResponsiveTable.vue
+++ b/src/core/components/table/ResponsiveTable.vue
@@ -3,8 +3,8 @@
+ @update:pagination="$emit('update:pagination')" @selected="$emit('selected')" @expanded="$emit('expanded')"
+ @row-click="$emit('row-click')" :color="'#ff0000'">
@@ -51,7 +51,7 @@ export default {
hideBottom: { type: Boolean, default: true },
noDataLabel: { type: String, default: '' },
},
- emits: ['update:pagination', 'update:selected', 'update:expanded', 'update:row-click'],
+ emits: ['update:pagination', 'selected', 'expanded', 'row-click'],
computed: {
formattedVisibleColumns () {
return this.visibleColumns.length ? this.visibleColumns : this.columns.map(col => col.name);
diff --git a/src/core/components/table/SimpleTable.vue b/src/core/components/table/SimpleTable.vue
index 94ca9bdf96..ad315e26f9 100644
--- a/src/core/components/table/SimpleTable.vue
+++ b/src/core/components/table/SimpleTable.vue
@@ -2,9 +2,8 @@
@@ -64,7 +63,7 @@ export default {
hideBottom: { type: Boolean, default: false },
rowsPerPage: { type: Array, default: () => [15, 50, 100, 200, 300] },
},
- emits: ['update:pagination', 'update:selected', 'update:expanded', 'update:row-click', 'update:pagination'],
+ emits: ['update:pagination', 'selected', 'expanded', 'row-click'],
components: {
'ni-pagination': Pagination,
},
diff --git a/src/modules/client/components/auxiliary/AuxiliaryCreationModal.vue b/src/modules/client/components/auxiliary/AuxiliaryCreationModal.vue
index 8653ea39d5..1cac49ac79 100644
--- a/src/modules/client/components/auxiliary/AuxiliaryCreationModal.vue
+++ b/src/modules/client/components/auxiliary/AuxiliaryCreationModal.vue
@@ -1,37 +1,37 @@
-
-
+
+
Ajouter une personne
+ :error-message="emailError" @update:value="updateUser($event.trim(), 'local.email')" />
+ @update:value="updateUser($event, 'identity.title')" />
+ @update:value="updateUser($event.trim(), 'identity.lastname')" />
+ @update:value="updateUser($event.trim(), 'identity.firstname')" />
+ @update:value="updateUser($event, 'contact.phone')" />
+ :error="validations.contact.address.$error" in-modal @update:value="updateUser($event, 'contact.address')" />
-
+
-
-
+
+
@@ -66,6 +66,7 @@ export default {
'ni-modal': Modal,
'ni-select-sector': SelectSector,
},
+ emits: ['hide', 'update:value', 'submit', 'go-to-next-step', 'update:send-welcome-msg', 'update-new-user'],
data () {
return {
REQUIRED_LABEL,
@@ -86,7 +87,7 @@ export default {
this.$emit('hide');
},
input (event) {
- this.$emit('input', event);
+ this.$emit('update:value', event);
},
submit () {
this.$emit('submit');
diff --git a/src/modules/client/components/customers/CustomerCreationModal.vue b/src/modules/client/components/customers/CustomerCreationModal.vue
index bbf47ae25a..b7001a14d2 100644
--- a/src/modules/client/components/customers/CustomerCreationModal.vue
+++ b/src/modules/client/components/customers/CustomerCreationModal.vue
@@ -1,22 +1,22 @@
-
-
+
+
Créer une nouvelle fiche bénéficiaire
+ @update:value="update($event, 'identity.title')" />
+ @update:value="update($event.trim(), 'identity.lastname')" />
+ @update:value="update($event.trim(), 'identity.firstname')" />
+ @blur="validations.contact.primaryAddress.$touch" @update:value="update($event, 'contact.primaryAddress')" />
-
+
@@ -40,6 +40,7 @@ export default {
civilityOptions: { type: Array, default: () => [] },
loading: { type: Boolean, default: false },
},
+ emits: ['hide', 'submit', 'update:newCustomer', 'update:value'],
components: {
'ni-search-address': SearchAddress,
'ni-input': Input,
@@ -56,7 +57,7 @@ export default {
this.$emit('hide');
},
input (event) {
- this.$emit('input', event);
+ this.$emit('update:value', event);
},
submit () {
this.$emit('submit');
diff --git a/src/modules/client/components/planning/ChipAuxiliaryIndicator.vue b/src/modules/client/components/planning/ChipAuxiliaryIndicator.vue
index 3bdbd1b795..6164cb61f2 100644
--- a/src/modules/client/components/planning/ChipAuxiliaryIndicator.vue
+++ b/src/modules/client/components/planning/ChipAuxiliaryIndicator.vue
@@ -11,7 +11,7 @@
-
{{ person.identity | formatIdentity('Fl') }}
+
{{ formatIdentity(person.identity, 'Fl') }}
@@ -118,6 +118,7 @@ export default {
},
},
methods: {
+ formatIdentity,
getAvatar (picture) {
return (get(picture, 'link')) || DEFAULT_AVATAR;
},
@@ -150,9 +151,6 @@ export default {
}
},
},
- filters: {
- formatIdentity,
- },
};
diff --git a/src/modules/client/components/planning/EventCreationModal.vue b/src/modules/client/components/planning/EventCreationModal.vue
index 03779329d0..78245dc1c3 100644
--- a/src/modules/client/components/planning/EventCreationModal.vue
+++ b/src/modules/client/components/planning/EventCreationModal.vue
@@ -1,19 +1,19 @@
-
+
-
-
+ @update:value="updateEvent('auxiliary', $event)" />
+
+
+
+
+
+
+
+ @update:value="updateEvent('misc', $event)" />
-
+
diff --git a/src/modules/client/components/planning/EventEditionModal.vue b/src/modules/client/components/planning/EventEditionModal.vue
index 0bda0acdd7..8f4c9f1d2f 100644
--- a/src/modules/client/components/planning/EventEditionModal.vue
+++ b/src/modules/client/components/planning/EventEditionModal.vue
@@ -1,5 +1,5 @@
-
+
+ :start-locked="!!startDateTimeStamped" @start-lock-click="openTimeStampCancellationModal(true)"
+ :end-locked="!!endDateTimeStamped" @end-lock-click="openTimeStampCancellationModal(false)" />
+ @cancel-time-stamping="cancelTimeStamping" :start="isStartCancellation"
+ :validations="v$.timeStampCancellationReason" v-model:reason="timeStampCancellationReason" />