From 1fda1515c70edda1905a06d4b7b7408cd868d99b Mon Sep 17 00:00:00 2001 From: Sophie Moustard Date: Thu, 23 Dec 2021 11:24:54 +0100 Subject: [PATCH] COM-2583 - update coac interface --- src/core/components/form/OptionGroup.vue | 8 ++++- src/core/components/form/SearchAddress.vue | 6 ++-- src/core/components/form/Select.vue | 3 +- src/core/components/modal/Modal.vue | 4 +-- src/core/components/table/Pagination.vue | 6 ++-- src/core/components/table/ResponsiveTable.vue | 6 ++-- src/core/components/table/SimpleTable.vue | 7 ++-- .../auxiliary/AuxiliaryCreationModal.vue | 29 +++++++-------- .../customers/CustomerCreationModal.vue | 17 ++++----- .../planning/ChipAuxiliaryIndicator.vue | 6 ++-- .../planning/EventCreationModal.vue | 36 +++++++++---------- .../components/planning/EventEditionModal.vue | 33 ++++++++++++----- .../client/components/planning/Planning.vue | 13 ++++++- .../planning/PlanningModalHeader.vue | 7 ++-- .../planning/PlanningNavigation.vue | 8 +++++ .../client/mixins/planningActionMixin.js | 6 +++- .../client/pages/ni/auxiliaries/Directory.vue | 22 +++++++----- .../pages/ni/customers/CustomersDirectory.vue | 20 ++++++----- .../pages/ni/planning/AuxiliaryPlanning.vue | 10 +++--- 19 files changed, 152 insertions(+), 95 deletions(-) diff --git a/src/core/components/form/OptionGroup.vue b/src/core/components/form/OptionGroup.vue index cfbd2232d9..e252830a9b 100644 --- a/src/core/components/form/OptionGroup.vue +++ b/src/core/components/form/OptionGroup.vue @@ -7,7 +7,7 @@ + :disable="disable" @update:model-value="udpate" /> @@ -32,6 +32,12 @@ export default { displayCaption: { type: Boolean, default: true }, disable: { type: Boolean, default: false }, }, + emits: ['update:value'], + methods: { + update (value) { + this.$emit('update:value', value); + }, + }, }; diff --git a/src/core/components/form/SearchAddress.vue b/src/core/components/form/SearchAddress.vue index ff50daa820..aa243d7f29 100644 --- a/src/core/components/form/SearchAddress.vue +++ b/src/core/components/form/SearchAddress.vue @@ -33,7 +33,7 @@ export default { disable: { type: Boolean, default: false }, color: { type: String, default: 'white' }, }, - emits: ['blur', 'focus', 'input'], + emits: ['blur', 'focus', 'update:value'], components: { 'ni-button': Button, }, @@ -70,10 +70,10 @@ export default { this.$emit('focus'); }, update (value) { - this.$emit('input', pick(value, ['fullAddress', 'street', 'city', 'zipCode', 'location'])); + this.$emit('update:value', pick(value, ['fullAddress', 'street', 'city', 'zipCode', 'location'])); }, resetValue () { - this.$emit('input', { street: '', zipCode: '', city: '', location: {}, fullAddress: '' }); + this.$emit('update:value', { street: '', zipCode: '', city: '', location: {}, fullAddress: '' }); }, }, }; diff --git a/src/core/components/form/Select.vue b/src/core/components/form/Select.vue index 8ce9a227c5..05b2211c8c 100644 --- a/src/core/components/form/Select.vue +++ b/src/core/components/form/Select.vue @@ -53,6 +53,7 @@ export default { optionSlot: { type: Boolean, default: false }, noBorder: { type: Boolean, default: false }, }, + emits: ['focus', 'blur', 'update:value'], components: { 'ni-button': Button, }, @@ -90,7 +91,7 @@ export default { this.$emit('blur'); }, onInput (val) { - this.$emit('input', val); + this.$emit('update:value', val); this.$refs.selectInput.blur(); }, formatStringForFiltering (str) { diff --git a/src/core/components/modal/Modal.vue b/src/core/components/modal/Modal.vue index 4467b42b31..e3c08fb30b 100644 --- a/src/core/components/modal/Modal.vue +++ b/src/core/components/modal/Modal.vue @@ -1,6 +1,6 @@