diff --git a/packages/synapse-bridge/dev/main.ts b/packages/synapse-bridge/dev/main.ts index 7c244e927..0b757bfc1 100644 --- a/packages/synapse-bridge/dev/main.ts +++ b/packages/synapse-bridge/dev/main.ts @@ -8,7 +8,6 @@ import { createVuetify } from 'vuetify' import { aliases, mdi } from 'vuetify/iconsets/mdi-svg' import { fr } from 'vuetify/locale' - import { colorTheme } from '@cnamts/design-tokens/src/colors' import { notification } from '@/modules/notification' @@ -36,7 +35,6 @@ const vuetify = createVuetify({ }, }, }, - }) const store = createStore({ diff --git a/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue b/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue index f0adb0e37..a0f219f06 100644 --- a/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue +++ b/packages/synapse-bridge/src/elements/DialogBox/DialogBox.vue @@ -56,7 +56,7 @@ export default defineComponent({ closeIcon: mdiClose, locales, dialog: this.modelValue, - titleId: `title-${Math.random().toString(36).substring(7)}` + titleId: `title-${Math.random().toString(36).substring(7)}`, } }, @@ -142,7 +142,11 @@ export default defineComponent({ > -

+

{{ title }}

diff --git a/packages/synapse-bridge/src/elements/DialogBox/tests/DialogBox.spec.ts b/packages/synapse-bridge/src/elements/DialogBox/tests/DialogBox.spec.ts index 3e26a5431..e14767dd8 100644 --- a/packages/synapse-bridge/src/elements/DialogBox/tests/DialogBox.spec.ts +++ b/packages/synapse-bridge/src/elements/DialogBox/tests/DialogBox.spec.ts @@ -32,11 +32,11 @@ describe('DialogBox', () => { await wrapper.vm.$nextTick() - const dialog = wrapper.findComponent(VDialog); - const title = wrapper.findComponent(VCard).find('h2').text(); + const dialog = wrapper.findComponent(VDialog) + const title = wrapper.findComponent(VCard).find('h2').text() - expect(dialog.exists()).toBe(true); - expect(title).toBe('Test title'); + expect(dialog.exists()).toBe(true) + expect(title).toBe('Test title') }) it('is closed when model value is false', async () => { @@ -52,9 +52,9 @@ describe('DialogBox', () => { await wrapper.vm.$nextTick() - const card = wrapper.findComponent(VCard); + const card = wrapper.findComponent(VCard) - expect(card.exists()).toBe(false); + expect(card.exists()).toBe(false) }) it('becomes visible when the model value is updated', async () => { diff --git a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue index 67da07303..93ae59bb6 100644 --- a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue +++ b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue @@ -108,8 +108,8 @@ export default defineComponent({ startDateFormatted() { return this.startDate ? dayjs(this.startDate, 'YYYY-MM-DD').format( - this.dateFormatReturn - ) + this.dateFormatReturn + ) : null }, inputRules() { @@ -189,7 +189,7 @@ export default defineComponent({ }, formSubmitted(newValue) { if (newValue) { - this.updateMessages(); + this.updateMessages() } }, }, @@ -235,7 +235,7 @@ export default defineComponent({ async updateMessages() { const textField = this.$refs[ 'text-field' - ] as ComponentPublicInstance + ] as ComponentPublicInstance if (!textField) return this.validateWarning(this.internalValue) diff --git a/packages/synapse-bridge/src/patterns/NirField/NirField.vue b/packages/synapse-bridge/src/patterns/NirField/NirField.vue index 15de2f6d0..614c646c2 100644 --- a/packages/synapse-bridge/src/patterns/NirField/NirField.vue +++ b/packages/synapse-bridge/src/patterns/NirField/NirField.vue @@ -1,17 +1,22 @@