@cnamts/synapse 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{DateFilter-BmRuzQ9Z.js → DateFilter-YWOTbfeL.js} +1 -1
- package/dist/{NumberFilter-CnIPDHqx.js → NumberFilter-DMmMgALM.js} +1 -1
- package/dist/{PeriodFilter-CZwZ8CnQ.js → PeriodFilter-Bok5BHcn.js} +1 -1
- package/dist/SelectFilter-BKud2WhN.js +136 -0
- package/dist/{TextFilter-DTxZHJwX.js → TextFilter-DvMf2thH.js} +1 -1
- package/dist/components/Accordion/Accordion.d.ts +2 -1
- package/dist/components/Accordion/composables/useAccordionGroupCommunication.d.ts +5 -0
- package/dist/components/Accordion/composables/useAccordionKeyboardNavigation.d.ts +12 -0
- package/dist/components/Accordion/composables/useAccordionState.d.ts +13 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +85 -0
- package/dist/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -0
- package/dist/components/Customs/SySelect/SySelect.d.ts +33 -13
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +2 -2
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +1585 -1452
- package/dist/components/DatePicker/DatePicker/DatePicker.d.ts +16 -2
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +3 -1
- package/dist/components/DatePicker/composables/index.d.ts +2 -0
- package/dist/components/DatePicker/composables/useAsteriskDisplay.d.ts +14 -0
- package/dist/components/DatePicker/composables/useDateAutoClamp.d.ts +16 -0
- package/dist/components/DatePicker/composables/useDateRangeInput.d.ts +1 -1
- package/dist/components/DatePicker/composables/useDisplayedDateString.d.ts +3 -0
- package/dist/components/DatePicker/composables/useInputBlurHandler.d.ts +1 -0
- package/dist/components/DatePicker/composables/useMonthButtonCustomization.d.ts +5 -2
- package/dist/components/NirField/NirField.d.ts +7 -3
- package/dist/components/NirField/nirValidation.d.ts +1 -1
- package/dist/components/PasswordField/PasswordField.d.ts +2 -0
- package/dist/components/PeriodField/PeriodField.d.ts +52 -8
- package/dist/components/PhoneField/PhoneField.d.ts +2 -2
- package/dist/components/RangeField/RangeField.d.ts +2 -0
- package/dist/components/SearchListField/SearchListField.d.ts +9 -0
- package/dist/components/SyTextArea/SyTextArea.d.ts +2 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +14 -9
- package/dist/components/Tables/SyTable/SyTable.d.ts +12 -7
- package/dist/components/Tables/common/SyTablePagination.d.ts +1636 -0
- package/dist/components/Tables/common/TableHeader.d.ts +2 -20
- package/dist/components/Tables/common/filters/SelectFilter.d.ts +5 -5
- package/dist/components/Tables/common/filters/getFilterComponent.d.ts +1 -0
- package/dist/components/Tables/common/filters/locales.d.ts +4 -0
- package/dist/components/Tables/common/filters/logics/date.d.ts +1 -0
- package/dist/components/Tables/common/filters/logics/number.d.ts +1 -0
- package/dist/components/Tables/common/filters/logics/period.d.ts +1 -0
- package/dist/components/Tables/common/filters/logics/select.d.ts +1 -0
- package/dist/components/Tables/common/filters/logics/text.d.ts +1 -0
- package/dist/components/Tables/common/locales.d.ts +21 -0
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +267 -0
- package/dist/components/Tables/common/organizeColumns/sortHeaders.d.ts +2 -0
- package/dist/components/Tables/common/tableFilterUtils.d.ts +1 -0
- package/dist/components/Tables/common/tableStorageUtils.d.ts +41 -1
- package/dist/components/Tables/common/tableUtils.d.ts +42 -5
- package/dist/components/Tables/common/types.d.ts +19 -8
- package/dist/components/Tables/common/usePagination.d.ts +22 -0
- package/dist/components/Tables/common/useTableCheckbox.d.ts +20 -0
- package/dist/components/Tables/common/useTableHeaders.d.ts +76 -0
- package/dist/components/Tables/common/useTableItems.d.ts +24 -0
- package/dist/components/Tables/common/useTableOptions.d.ts +18 -0
- package/dist/components/ToolbarContainer/ToolbarContainer.d.ts +11 -0
- package/dist/components/UserMenuBtn/UserMenuBtn.d.ts +9 -2
- package/dist/components/index.d.ts +8 -6
- package/dist/design-system-v3.js +58 -56
- package/dist/design-system-v3.umd.cjs +22 -22
- package/dist/main-Cx8qG7YR.js +16344 -0
- package/dist/stories/Accessibilite/Vuetify/VuetifyItems.d.ts +14 -2
- package/dist/stories/DesignTokens/StylesTypographiques.stories.new.d.ts +8 -0
- package/dist/stories/DesignTokens/TypographyDisplay.d.ts +28 -0
- package/dist/stories/DesignTokens/vue-shims.d.ts +6 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/common/imgs/accessibility-svgrepo-com.svg +4 -0
- package/src/components/Accordion/Accessibilite/AccessibilityGuide.mdx +249 -0
- package/src/components/Accordion/Accordion.vue +48 -76
- package/src/components/Accordion/composables/__tests__/useAccordionGroupCommunication.spec.ts +146 -0
- package/src/components/Accordion/composables/__tests__/useAccordionKeyboardNavigation.spec.ts +209 -0
- package/src/components/Accordion/composables/__tests__/useAccordionState.spec.ts +144 -0
- package/src/components/Accordion/composables/useAccordionGroupCommunication.ts +52 -0
- package/src/components/Accordion/composables/useAccordionKeyboardNavigation.ts +111 -0
- package/src/components/Accordion/composables/useAccordionState.ts +59 -0
- package/src/components/Accordion/tests/__snapshots__/accordion.spec.ts.snap +3 -0
- package/src/components/Customs/SyCheckbox/Accessibilite.mdx +303 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.mdx +50 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +630 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +326 -0
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +201 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +1 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +8 -1
- package/src/components/Customs/SySelect/SySelect.stories.ts +160 -0
- package/src/components/Customs/SySelect/SySelect.vue +291 -32
- package/src/components/Customs/SySelect/tests/SySelect.spec.ts +230 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +3 -2
- package/src/components/Customs/SyTextField/SyTextField.vue +19 -8
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +241 -31
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +305 -57
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.events.spec.ts +161 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +4 -2
- package/src/components/DatePicker/DatePicker/DatePicker.stories.ts +259 -137
- package/src/components/DatePicker/DatePicker/DatePicker.vue +153 -25
- package/src/components/DatePicker/DatePicker/tests/DatePicker.events.spec.ts +189 -0
- package/src/components/DatePicker/DatePicker/{DatePicker.spec.ts → tests/DatePicker.spec.ts} +1 -15
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +24 -14
- package/src/components/DatePicker/DateTextInput/DateTextInput.events.spec.ts +148 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.spec.ts +3 -1
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +200 -5
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +241 -31
- package/src/components/DatePicker/composables/index.ts +2 -0
- package/src/components/DatePicker/composables/tests/useDateAutoClamp.spec.ts +190 -0
- package/src/components/DatePicker/composables/tests/useInputBlurHandler.spec.ts +182 -4
- package/src/components/DatePicker/composables/tests/useMonthButtonCustomization.spec.ts +105 -80
- package/src/components/DatePicker/composables/useAsteriskDisplay.ts +31 -0
- package/src/components/DatePicker/composables/useDateAutoClamp.ts +136 -0
- package/src/components/DatePicker/composables/useDateRangeInput.ts +21 -18
- package/src/components/DatePicker/composables/useDisplayedDateString.ts +13 -1
- package/src/components/DatePicker/composables/useInputBlurHandler.ts +84 -20
- package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +149 -51
- package/src/components/DiacriticPicker/DiacriticPicker.stories.ts +10 -0
- package/src/components/ErrorPage/Accessibilite.stories.ts +8 -0
- package/src/components/ErrorPage/ErrorPage.vue +12 -6
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +4 -4
- package/src/components/NirField/NirField.mdx +22 -9
- package/src/components/NirField/NirField.stories.ts +26 -2
- package/src/components/NirField/NirField.vue +209 -22
- package/src/components/NirField/nirValidation.ts +17 -3
- package/src/components/NirField/tests/NirField.spec.ts +2 -2
- package/src/components/NotFoundPage/Accessibilite.stories.ts +8 -0
- package/src/components/NotFoundPage/NotFoundPage.vue +2 -1
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +8 -6
- package/src/components/PaginatedTable/PaginatedTable.mdx +2 -0
- package/src/components/PasswordField/PasswordField.stories.ts +4 -0
- package/src/components/PasswordField/PasswordField.vue +3 -0
- package/src/components/PeriodField/PeriodField.vue +2 -0
- package/src/components/PhoneField/PhoneField.stories.ts +15 -15
- package/src/components/PhoneField/PhoneField.vue +1 -1
- package/src/components/RangeField/RangeField.stories.ts +9 -0
- package/src/components/RangeField/RangeField.vue +4 -0
- package/src/components/RangeField/tests/__snapshots__/RangeField.spec.ts.snap +12 -0
- package/src/components/SearchListField/SearchListField.vue +5 -0
- package/src/components/SyTextArea/SyTextArea.vue +3 -0
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +0 -1
- package/src/components/Tables/SyServerTable/FilterRules.stories.ts +632 -15
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +15 -5
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +2844 -1377
- package/src/components/Tables/SyServerTable/SyServerTable.vue +155 -66
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +256 -4
- package/src/components/Tables/SyTable/FilterRules.stories.ts +183 -0
- package/src/components/Tables/SyTable/SyTable.mdx +14 -4
- package/src/components/Tables/SyTable/SyTable.stories.ts +1265 -477
- package/src/components/Tables/SyTable/SyTable.vue +152 -72
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +366 -4
- package/src/components/Tables/common/SyTableFilter.vue +3 -56
- package/src/components/Tables/common/SyTablePagination.vue +375 -0
- package/src/components/Tables/common/TableHeader.vue +10 -26
- package/src/components/Tables/common/filters/SelectFilter.vue +131 -22
- package/src/components/Tables/common/filters/getFilterComponent.ts +54 -0
- package/src/components/Tables/common/filters/locales.ts +4 -0
- package/src/components/Tables/common/filters/logics/date.ts +12 -0
- package/src/components/Tables/common/filters/logics/number.ts +48 -0
- package/src/components/Tables/common/filters/logics/period.ts +25 -0
- package/src/components/Tables/common/filters/logics/select.ts +27 -0
- package/src/components/Tables/common/filters/logics/tests/TextFilterLogic.spec.ts +177 -0
- package/src/components/Tables/common/filters/logics/text.ts +62 -0
- package/src/components/Tables/common/filters/tests/TextFilter.spec.ts +11 -11
- package/src/components/Tables/common/locales.ts +24 -0
- package/src/components/Tables/common/organizeColumns/OrganizeColumns.vue +269 -0
- package/src/components/Tables/common/organizeColumns/sortHeaders.ts +9 -0
- package/src/components/Tables/common/tableFilterUtils.ts +43 -295
- package/src/components/Tables/common/tableStorageUtils.ts +27 -2
- package/src/components/Tables/common/tableStyles.scss +26 -0
- package/src/components/Tables/common/tableUtils.ts +3 -16
- package/src/components/Tables/common/tests/SyTablePagination.spec.ts +170 -0
- package/src/components/Tables/common/tests/filterByRange.spec.ts +215 -0
- package/src/components/Tables/common/tests/tableFilterUtils.spec.ts +0 -14
- package/src/components/Tables/common/tests/tableUtils.spec.ts +7 -51
- package/src/components/Tables/common/types.ts +17 -6
- package/src/components/Tables/common/usePagination.ts +83 -0
- package/src/components/Tables/common/useTableCheckbox.ts +58 -0
- package/src/components/Tables/common/useTableHeaders.ts +88 -0
- package/src/components/Tables/common/useTableItems.ts +87 -0
- package/src/components/Tables/common/useTableOptions.ts +93 -0
- package/src/components/ToolbarContainer/ToolbarContainer.mdx +16 -0
- package/src/components/ToolbarContainer/ToolbarContainer.stories.ts +675 -0
- package/src/components/ToolbarContainer/ToolbarContainer.vue +128 -0
- package/src/components/ToolbarContainer/tests/ToolbarContainer.spec.ts +156 -0
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +74 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +19 -17
- package/src/components/index.ts +8 -6
- package/src/stories/Accessibilite/Aculturation/AuditDesignSystem.mdx +293 -20
- package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +448 -54
- package/src/stories/Accessibilite/Audit/RGAA.mdx +231 -23
- package/src/stories/Accessibilite/Avancement/Avancement.mdx +591 -7
- package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +139 -38
- package/src/stories/Accessibilite/Introduction.mdx +258 -18
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +221 -31
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +204 -22
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +537 -24
- package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +577 -70
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru.mdx +382 -31
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +419 -81
- package/src/stories/Accessibilite/Vuetify/Vuetify.mdx +132 -6
- package/src/stories/Accessibilite/Vuetify/Vuetify.stories.ts +370 -146
- package/src/stories/Accessibilite/Vuetify/VuetifyItems.ts +35 -57
- package/src/stories/Demarrer/Accueil.stories.ts +20 -5
- package/src/stories/DesignTokens/StylesTypographiques.mdx +10 -9
- package/src/stories/DesignTokens/StylesTypographiques.stories.new.ts +397 -0
- package/src/stories/DesignTokens/StylesTypographiques.stories.ts +397 -0
- package/src/stories/DesignTokens/TypographyDisplay.vue +155 -0
- package/src/stories/DesignTokens/vue-shims.d.ts +6 -0
- package/src/stories/GuideDuDev/LesBreackingChanges.mdx +0 -2
- package/src/stories/GuideDuDev/MigrationDepuisBridge.mdx +1 -1
- package/src/stories/GuideDuDev/MigrationDepuisVue2.mdx +1 -1
- package/src/stories/GuideDuDev/PortailAgent.mdx +10 -0
- package/src/stories/GuideDuDev/PortailAgent.stories.ts +506 -0
- package/src/stories/GuideDuDev/Theme.mdx +41 -0
- package/dist/SelectFilter-Cj-GW2Cc.js +0 -97
- package/dist/main-WDqeoGM-.js +0 -14788
- package/src/components/PaginatedTable/tests/__snapshots__/PaginatedTable.spec.ts.snap +0 -886
- package/src/components/Tables/SyServerTable/tests/__snapshots__/SyServerTable.spec.ts.snap +0 -521
- package/src/components/Tables/SyTable/tests/__snapshots__/SyTable.spec.ts.snap +0 -521
- package/src/stories/DesignTokens/ThemePA.mdx +0 -35
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
displayAsterisk?: boolean
|
|
34
34
|
isValidateOnBlur?: boolean
|
|
35
35
|
disableErrorHandling?: boolean
|
|
36
|
+
bgColor?: string
|
|
36
37
|
} & CustomizableOptions>(), {
|
|
37
38
|
modelValue: null,
|
|
38
39
|
variantStyle: 'outlined',
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
displayAsterisk: false,
|
|
53
54
|
isValidateOnBlur: true,
|
|
54
55
|
disableErrorHandling: false,
|
|
56
|
+
bgColor: 'white',
|
|
55
57
|
})
|
|
56
58
|
|
|
57
59
|
const options = useCustomizableOptions(config, props)
|
|
@@ -202,6 +204,7 @@
|
|
|
202
204
|
:readonly="props.readonly"
|
|
203
205
|
:disabled="props.disabled"
|
|
204
206
|
:placeholder="props.placeholder"
|
|
207
|
+
:bg-color="props.bgColor"
|
|
205
208
|
:type="showEyeIcon ? 'text' : 'password'"
|
|
206
209
|
:display-asterisk="props.displayAsterisk"
|
|
207
210
|
:rules="[...defaultRules, ...props.customRules]"
|
|
@@ -349,6 +349,7 @@
|
|
|
349
349
|
:no-calendar="props.noCalendar"
|
|
350
350
|
:no-icon="props.noIcon"
|
|
351
351
|
:placeholder="props.placeholderFrom"
|
|
352
|
+
:label="props.placeholderFrom"
|
|
352
353
|
:required="props.disableErrorHandling ? false : props.required"
|
|
353
354
|
:show-week-number="props.showWeekNumber"
|
|
354
355
|
:show-success-messages="showSuccessMessagesActual"
|
|
@@ -376,6 +377,7 @@
|
|
|
376
377
|
:no-calendar="props.noCalendar"
|
|
377
378
|
:no-icon="props.noIcon"
|
|
378
379
|
:placeholder="props.placeholderTo"
|
|
380
|
+
:label="props.placeholderTo"
|
|
379
381
|
:required="props.disableErrorHandling ? false : props.required"
|
|
380
382
|
:show-week-number="props.showWeekNumber"
|
|
381
383
|
:show-success-messages="showSuccessMessagesActual"
|
|
@@ -93,7 +93,7 @@ export const Default: Story = {
|
|
|
93
93
|
customIndicatifs: [],
|
|
94
94
|
useCustomIndicatifsOnly: false,
|
|
95
95
|
isValidatedOnBlur: true,
|
|
96
|
-
bgColor:
|
|
96
|
+
bgColor: 'white',
|
|
97
97
|
readonly: false,
|
|
98
98
|
disabled: false,
|
|
99
99
|
},
|
|
@@ -177,7 +177,7 @@ export const Required: Story = {
|
|
|
177
177
|
customIndicatifs: [],
|
|
178
178
|
useCustomIndicatifsOnly: false,
|
|
179
179
|
isValidatedOnBlur: true,
|
|
180
|
-
bgColor:
|
|
180
|
+
bgColor: 'white',
|
|
181
181
|
readonly: false,
|
|
182
182
|
disabled: false,
|
|
183
183
|
},
|
|
@@ -218,7 +218,7 @@ export const RequiredWithAsterisk: Story = {
|
|
|
218
218
|
...Default.args,
|
|
219
219
|
required: true,
|
|
220
220
|
displayAsterisk: true,
|
|
221
|
-
bgColor:
|
|
221
|
+
bgColor: 'white',
|
|
222
222
|
},
|
|
223
223
|
parameters: {
|
|
224
224
|
docs: {
|
|
@@ -342,7 +342,7 @@ export const CustomIndicatifs: Story = {
|
|
|
342
342
|
],
|
|
343
343
|
useCustomIndicatifsOnly: true,
|
|
344
344
|
isValidatedOnBlur: true,
|
|
345
|
-
bgColor:
|
|
345
|
+
bgColor: 'white',
|
|
346
346
|
readonly: false,
|
|
347
347
|
disabled: false,
|
|
348
348
|
},
|
|
@@ -427,7 +427,7 @@ export const NotValidatedOnBlur: Story = {
|
|
|
427
427
|
isValidatedOnBlur: false,
|
|
428
428
|
readonly: false,
|
|
429
429
|
disabled: false,
|
|
430
|
-
bgColor:
|
|
430
|
+
bgColor: 'white',
|
|
431
431
|
},
|
|
432
432
|
render: (args) => {
|
|
433
433
|
return {
|
|
@@ -510,7 +510,7 @@ export const DisplayFormatCode: Story = {
|
|
|
510
510
|
isValidatedOnBlur: false,
|
|
511
511
|
readonly: false,
|
|
512
512
|
disabled: false,
|
|
513
|
-
bgColor:
|
|
513
|
+
bgColor: 'white',
|
|
514
514
|
},
|
|
515
515
|
render: (args) => {
|
|
516
516
|
return {
|
|
@@ -593,7 +593,7 @@ export const DisplayFormatCodeAbbreviation: Story = {
|
|
|
593
593
|
isValidatedOnBlur: false,
|
|
594
594
|
readonly: false,
|
|
595
595
|
disabled: false,
|
|
596
|
-
bgColor:
|
|
596
|
+
bgColor: 'white',
|
|
597
597
|
},
|
|
598
598
|
render: (args) => {
|
|
599
599
|
return {
|
|
@@ -676,7 +676,7 @@ export const DisplayFormatCodeCountry: Story = {
|
|
|
676
676
|
isValidatedOnBlur: false,
|
|
677
677
|
readonly: false,
|
|
678
678
|
disabled: false,
|
|
679
|
-
bgColor:
|
|
679
|
+
bgColor: 'white',
|
|
680
680
|
},
|
|
681
681
|
render: (args) => {
|
|
682
682
|
return {
|
|
@@ -759,7 +759,7 @@ export const DisplayFormatCountry: Story = {
|
|
|
759
759
|
isValidatedOnBlur: false,
|
|
760
760
|
readonly: false,
|
|
761
761
|
disabled: false,
|
|
762
|
-
bgColor:
|
|
762
|
+
bgColor: 'white',
|
|
763
763
|
},
|
|
764
764
|
render: (args) => {
|
|
765
765
|
return {
|
|
@@ -842,7 +842,7 @@ export const DisplayFormatAbbreviation: Story = {
|
|
|
842
842
|
isValidatedOnBlur: false,
|
|
843
843
|
readonly: false,
|
|
844
844
|
disabled: false,
|
|
845
|
-
bgColor:
|
|
845
|
+
bgColor: 'white',
|
|
846
846
|
},
|
|
847
847
|
render: (args) => {
|
|
848
848
|
return {
|
|
@@ -940,7 +940,7 @@ export const DefaultDialCode: Story = {
|
|
|
940
940
|
],
|
|
941
941
|
useCustomIndicatifsOnly: true,
|
|
942
942
|
isValidatedOnBlur: true,
|
|
943
|
-
bgColor:
|
|
943
|
+
bgColor: 'white',
|
|
944
944
|
readonly: false,
|
|
945
945
|
disabled: false,
|
|
946
946
|
},
|
|
@@ -1025,7 +1025,7 @@ export const DefaultDialCodeStandard: Story = {
|
|
|
1025
1025
|
customIndicatifs: [],
|
|
1026
1026
|
useCustomIndicatifsOnly: false,
|
|
1027
1027
|
isValidatedOnBlur: true,
|
|
1028
|
-
bgColor:
|
|
1028
|
+
bgColor: 'white',
|
|
1029
1029
|
readonly: false,
|
|
1030
1030
|
disabled: false,
|
|
1031
1031
|
},
|
|
@@ -1121,7 +1121,7 @@ export const DisplayModels: Story = {
|
|
|
1121
1121
|
useCustomIndicatifsOnly: false,
|
|
1122
1122
|
isValidatedOnBlur: false,
|
|
1123
1123
|
readonly: false,
|
|
1124
|
-
bgColor:
|
|
1124
|
+
bgColor: 'white',
|
|
1125
1125
|
},
|
|
1126
1126
|
render: (args) => {
|
|
1127
1127
|
return {
|
|
@@ -1211,7 +1211,7 @@ export const DisabledErrorHandling: Story = {
|
|
|
1211
1211
|
disableErrorHandling: true,
|
|
1212
1212
|
readonly: false,
|
|
1213
1213
|
disabled: false,
|
|
1214
|
-
bgColor:
|
|
1214
|
+
bgColor: 'white',
|
|
1215
1215
|
},
|
|
1216
1216
|
render: (args) => {
|
|
1217
1217
|
return {
|
|
@@ -1337,7 +1337,7 @@ export const FormValidation: Story = {
|
|
|
1337
1337
|
customIndicatifs: [],
|
|
1338
1338
|
useCustomIndicatifsOnly: false,
|
|
1339
1339
|
isValidatedOnBlur: false,
|
|
1340
|
-
bgColor:
|
|
1340
|
+
bgColor: 'white',
|
|
1341
1341
|
readonly: false,
|
|
1342
1342
|
disabled: false,
|
|
1343
1343
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
isValidatedOnBlur: { type: Boolean, default: true },
|
|
39
39
|
displayAsterisk: { type: Boolean, default: false },
|
|
40
40
|
disableErrorHandling: { type: Boolean, default: false },
|
|
41
|
-
bgColor: { type: String, default:
|
|
41
|
+
bgColor: { type: String, default: 'white' },
|
|
42
42
|
readonly: { type: Boolean, default: false },
|
|
43
43
|
disabled: { type: Boolean, default: false },
|
|
44
44
|
})
|
|
@@ -53,6 +53,15 @@ const meta = {
|
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
+
'bgColor': {
|
|
57
|
+
control: 'color',
|
|
58
|
+
description: 'Couleur de fond du champ',
|
|
59
|
+
table: {
|
|
60
|
+
type: {
|
|
61
|
+
summary: 'string',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
56
65
|
'vuetifyOptions': {
|
|
57
66
|
control: 'object',
|
|
58
67
|
description: 'Personnalisation des composants Vuetify internes',
|
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
min?: number
|
|
12
12
|
max?: number
|
|
13
13
|
step?: number
|
|
14
|
+
bgColor?: string
|
|
14
15
|
}>(), {
|
|
15
16
|
min: 0,
|
|
16
17
|
max: 100,
|
|
17
18
|
step: 1,
|
|
19
|
+
bgColor: 'white',
|
|
18
20
|
})
|
|
19
21
|
|
|
20
22
|
const options = useCustomizableOptions(config, props)
|
|
@@ -132,6 +134,7 @@
|
|
|
132
134
|
:aria-label="locales.minLabel"
|
|
133
135
|
inputmode="numeric"
|
|
134
136
|
color="primary"
|
|
137
|
+
:bg-color="bgColor"
|
|
135
138
|
:title="locales.minLabel"
|
|
136
139
|
@update:model-value="updateMin"
|
|
137
140
|
@update:focused="validateMin"
|
|
@@ -144,6 +147,7 @@
|
|
|
144
147
|
:aria-label="locales.maxLabel"
|
|
145
148
|
inputmode="numeric"
|
|
146
149
|
color="primary"
|
|
150
|
+
:bg-color="bgColor"
|
|
147
151
|
:title="locales.maxLabel"
|
|
148
152
|
@update:model-value="updateMax"
|
|
149
153
|
@update:focused="validateMax"
|
|
@@ -117,10 +117,12 @@ exports[`RangeField > render correctly when the modelValue is not defined 1`] =
|
|
|
117
117
|
<!---->
|
|
118
118
|
<div class="v-input__control">
|
|
119
119
|
<div class="
|
|
120
|
+
bg-white
|
|
120
121
|
v-field
|
|
121
122
|
v-field--active
|
|
122
123
|
v-field--center-affix
|
|
123
124
|
v-field--dirty
|
|
125
|
+
v-field--has-background
|
|
124
126
|
v-field--variant-outlined
|
|
125
127
|
v-locale--is-ltr
|
|
126
128
|
v-theme--light
|
|
@@ -263,10 +265,12 @@ exports[`RangeField > render correctly when the modelValue is not defined 1`] =
|
|
|
263
265
|
<!---->
|
|
264
266
|
<div class="v-input__control">
|
|
265
267
|
<div class="
|
|
268
|
+
bg-white
|
|
266
269
|
v-field
|
|
267
270
|
v-field--active
|
|
268
271
|
v-field--center-affix
|
|
269
272
|
v-field--dirty
|
|
273
|
+
v-field--has-background
|
|
270
274
|
v-field--variant-outlined
|
|
271
275
|
v-locale--is-ltr
|
|
272
276
|
v-theme--light
|
|
@@ -516,10 +520,12 @@ exports[`RangeField > renders correctly 1`] = `
|
|
|
516
520
|
<!---->
|
|
517
521
|
<div class="v-input__control">
|
|
518
522
|
<div class="
|
|
523
|
+
bg-white
|
|
519
524
|
v-field
|
|
520
525
|
v-field--active
|
|
521
526
|
v-field--center-affix
|
|
522
527
|
v-field--dirty
|
|
528
|
+
v-field--has-background
|
|
523
529
|
v-field--variant-outlined
|
|
524
530
|
v-locale--is-ltr
|
|
525
531
|
v-theme--light
|
|
@@ -662,10 +668,12 @@ exports[`RangeField > renders correctly 1`] = `
|
|
|
662
668
|
<!---->
|
|
663
669
|
<div class="v-input__control">
|
|
664
670
|
<div class="
|
|
671
|
+
bg-white
|
|
665
672
|
v-field
|
|
666
673
|
v-field--active
|
|
667
674
|
v-field--center-affix
|
|
668
675
|
v-field--dirty
|
|
676
|
+
v-field--has-background
|
|
669
677
|
v-field--variant-outlined
|
|
670
678
|
v-locale--is-ltr
|
|
671
679
|
v-theme--light
|
|
@@ -915,10 +923,12 @@ exports[`RangeField > renders correctly with value NaN 1`] = `
|
|
|
915
923
|
<!---->
|
|
916
924
|
<div class="v-input__control">
|
|
917
925
|
<div class="
|
|
926
|
+
bg-white
|
|
918
927
|
v-field
|
|
919
928
|
v-field--active
|
|
920
929
|
v-field--center-affix
|
|
921
930
|
v-field--dirty
|
|
931
|
+
v-field--has-background
|
|
922
932
|
v-field--variant-outlined
|
|
923
933
|
v-locale--is-ltr
|
|
924
934
|
v-theme--light
|
|
@@ -1061,10 +1071,12 @@ exports[`RangeField > renders correctly with value NaN 1`] = `
|
|
|
1061
1071
|
<!---->
|
|
1062
1072
|
<div class="v-input__control">
|
|
1063
1073
|
<div class="
|
|
1074
|
+
bg-white
|
|
1064
1075
|
v-field
|
|
1065
1076
|
v-field--active
|
|
1066
1077
|
v-field--center-affix
|
|
1067
1078
|
v-field--dirty
|
|
1079
|
+
v-field--has-background
|
|
1068
1080
|
v-field--variant-outlined
|
|
1069
1081
|
v-locale--is-ltr
|
|
1070
1082
|
v-theme--light
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
type: Boolean,
|
|
21
21
|
default: true,
|
|
22
22
|
},
|
|
23
|
+
bgColor: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'white',
|
|
26
|
+
},
|
|
23
27
|
})
|
|
24
28
|
|
|
25
29
|
const emit = defineEmits(['update:modelValue'])
|
|
@@ -68,6 +72,7 @@
|
|
|
68
72
|
:variant="outlined ? 'outlined' : 'underlined'"
|
|
69
73
|
clearable
|
|
70
74
|
tabindex="0"
|
|
75
|
+
:bg-color="props.bgColor"
|
|
71
76
|
>
|
|
72
77
|
<template #prepend-inner>
|
|
73
78
|
<VIcon class="mr-1">
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
variant?: VTextarea['variant']
|
|
19
19
|
color?: string
|
|
20
20
|
label: string
|
|
21
|
+
bgColor?: string
|
|
21
22
|
}>(), {
|
|
22
23
|
modelValue: '',
|
|
23
24
|
trim: false,
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
validateOn: 'eager input',
|
|
30
31
|
variant: 'outlined',
|
|
31
32
|
color: 'primary',
|
|
33
|
+
bgColor: 'white',
|
|
32
34
|
})
|
|
33
35
|
|
|
34
36
|
const emits = defineEmits<{
|
|
@@ -103,6 +105,7 @@
|
|
|
103
105
|
:model-value="internalValue"
|
|
104
106
|
:variant="variant"
|
|
105
107
|
:color="color"
|
|
108
|
+
:bg-color="props.bgColor"
|
|
106
109
|
:validate-on="validateOn"
|
|
107
110
|
:rules="[...props.rules, ...internalRules]"
|
|
108
111
|
:label="label"
|
|
@@ -128,7 +128,6 @@ describe('SyTextArea', () => {
|
|
|
128
128
|
await textarea.trigger('blur')
|
|
129
129
|
|
|
130
130
|
const expectedValue = 'voici un text probablement trop long pour ce champ\nfdgssssssssssssssssssssssssssssssssssssssssssssss-\nsssssssssssssssssssssssssssssssssssssssssssssssss-\nsssssss top'
|
|
131
|
-
console.log('emmitted', wrapper.emitted('update:modelValue'))
|
|
132
131
|
|
|
133
132
|
expect(wrapper.emitted('update:modelValue')?.[1]).toEqual([expectedValue])
|
|
134
133
|
expect(textarea.element.value).toBe(expectedValue)
|