@cnamts/synapse 1.0.13 → 1.0.15
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 +72 -72
- package/dist/{DateFilter-_EFzsvvM.js → DateFilter-isr8mXVb.js} +1 -1
- package/dist/{NumberFilter-CUxEbKJh.js → NumberFilter-BOe7DqWX.js} +1 -1
- package/dist/{PeriodFilter-D5ueqtKy.js → PeriodFilter-WTprpO40.js} +1 -1
- package/dist/{SelectFilter-BciBNydy.js → SelectFilter-CqlG5dmI.js} +1 -1
- package/dist/{TextFilter-DMN_WAQB.js → TextFilter-fVW5bsRw.js} +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +60 -28
- package/dist/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +60 -28
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +61 -29
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +5 -1
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +3 -1
- package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +1 -1
- package/dist/components/Captcha/Captcha.d.ts +2 -0
- package/dist/components/Captcha/CaptchaBase.d.ts +1 -0
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +29 -17
- package/dist/components/Customs/SyTabs/SyTabs.d.ts +20 -0
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +100 -10
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +108 -21
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +6 -6
- package/dist/components/DatePicker/composables/useDateFormatDisplay.d.ts +3 -0
- package/dist/components/DatePicker/tests/setup.d.ts +768 -48
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +8 -0
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +58 -34
- package/dist/components/LangBtn/LangBtn.d.ts +4 -0
- package/dist/components/PeriodField/PeriodField.d.ts +192 -12
- package/dist/components/RatingPicker/RatingPicker.d.ts +9 -0
- package/dist/components/SearchListField/SearchListField.d.ts +42 -413
- package/dist/components/SearchListField/locales.d.ts +1 -2
- package/dist/components/SyAlert/SyAlert.d.ts +1 -1
- package/dist/components/SyTextArea/SyTextArea.d.ts +2 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +15 -8
- package/dist/components/Tables/SyTable/SyTable.d.ts +15 -8
- package/dist/components/Tables/common/SyTablePagination.d.ts +29 -17
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +4 -0
- package/dist/components/Tables/common/types.d.ts +2 -0
- package/dist/design-system-v3.js +1 -1
- package/dist/design-system-v3.umd.cjs +32 -16
- package/dist/{main-DISHlqcd.js → main-CbBVJ_le.js} +9911 -9751
- package/dist/style.css +1 -1
- package/package.json +5 -2
- package/src/assets/amelipro/icons.ts +17 -0
- package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.stories.ts +40 -36
- package/src/components/Amelipro/AmeliproAccordionGroup/__tests__/AmeliproAccordionGroup.spec.ts +226 -26
- package/src/components/Amelipro/AmeliproAccordionGroup/__tests__/__snapshots__/AmeliproAccordionGroup.spec.ts.snap +55 -506
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.stories.ts +1 -1
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +7 -2
- package/src/components/Amelipro/AmeliproAccordionList/__tests__/__snapshots__/AmeliproAccordionList.spec.ts.snap +2 -1
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/__tests__/__snapshots__/AmeliproAccordionResultTemplate.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproAccordionResult/__tests__/__snapshots__/AmeliproAccordionResult.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.stories.ts +1 -1
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +9 -3
- package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/__snapshots__/AmeliproAccordionResultList.spec.ts.snap +42 -11
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.stories.ts +4 -4
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.vue +7 -5
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +4 -2
- package/src/components/Amelipro/AmeliproBtn/AmeliproBtn.stories.ts +1 -40
- package/src/components/Amelipro/AmeliproBtn/AmeliproBtn.vue +4 -0
- package/src/components/Amelipro/AmeliproCallback/AmeliproCallback.stories.ts +4 -2
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/__snapshots__/AmeliproCaptcha.spec.ts.snap +2 -1
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.stories.ts +39 -29
- package/src/components/Amelipro/AmeliproCopyBtn/__tests__/__snapshots__/AmeliproCopyBtn.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +3 -3
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/__snapshots__/AmeliproCustomSelector.spec.ts.snap +8 -6
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.mdx +3 -1
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.stories.ts +23 -5
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.vue +5 -6
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/AmeliproFilePreview.spec.ts +2 -2
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/__snapshots__/AmeliproFilePreview.spec.ts.snap +5 -6
- package/src/components/Amelipro/AmeliproFirstLogin/__tests__/__snapshots__/AmeliproFirstLogin.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeader.vue +1 -2
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/__tests__/AmeliproLogoAm.spec.ts +78 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/{tests → __tests__}/__snapshots__/AmeliproLogoAm.spec.ts.snap +64 -2
- package/src/components/Amelipro/AmeliproIcon/__tests__/AmeliproIcon.spec.ts +358 -0
- package/src/components/Amelipro/AmeliproIcon/{tests → __tests__}/__snapshots__/AmeliproIcon.spec.ts.snap +30 -3
- package/src/components/Amelipro/AmeliproIcon/iconList.ts +1 -0
- package/src/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.vue +1 -1
- package/src/components/Amelipro/AmeliproIconBtn/__tests__/AmeliproIconBtn.spec.ts +459 -0
- package/src/components/Amelipro/AmeliproIconBtn/__tests__/__snapshots__/AmeliproIconBtn.spec.ts.snap +58 -0
- package/src/components/Amelipro/AmeliproIllustratedDataTile/AmeliproIllustratedDataTile.stories.ts +38 -26
- package/src/components/Amelipro/AmeliproIllustratedDataTile/__tests__/AmeliproIllustratedDataTile.spec.ts +321 -0
- package/src/components/Amelipro/AmeliproIllustratedDataTile/__tests__/__snapshots__/AmeliproIllustratedDataTile.spec.ts.snap +148 -0
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.stories.ts +14 -5
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.vue +1 -1
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/__tests__/AmeliproIllustratedRadioGroup.spec.ts +498 -0
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/__tests__/__snapshots__/AmeliproIllustratedRadioGroup.spec.ts.snap +325 -0
- package/src/components/Amelipro/AmeliproMailTile/__tests__/AmeliproMailTile.spec.ts +210 -0
- package/src/components/Amelipro/AmeliproMailTile/__tests__/__snapshots__/AmeliproMailTile.spec.ts.snap +98 -0
- package/src/components/Amelipro/AmeliproMessage/__tests__/AmeliproMessage.spec.ts +446 -0
- package/src/components/Amelipro/AmeliproMessage/__tests__/__snapshots__/AmeliproMessage.spec.ts.snap +60 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/__tests__/AmeliproMessagingLayout.spec.ts +300 -0
- package/src/components/Amelipro/AmeliproMessagingLayout/__tests__/__snapshots__/AmeliproMessagingLayout.spec.ts.snap +197 -0
- package/src/components/Amelipro/AmeliproNumberedCard/__tests__/AmeliproNumberedCard.spec.ts +117 -0
- package/src/components/Amelipro/AmeliproNumberedCard/{tests → __tests__}/__snapshots__/AmeliproNumberedCard.spec.ts.snap +47 -45
- package/src/components/Amelipro/AmeliproOnboarding/__tests__/AmeliproOnboarding.spec.ts +219 -0
- package/src/components/Amelipro/AmeliproOnboarding/__tests__/__snapshots__/AmeliproOnboarding.spec.ts.snap +41 -0
- package/src/components/Amelipro/AmeliproPageLayout/__tests__/AmeliproPageLayout.spec.ts +129 -0
- package/src/components/Amelipro/AmeliproPageLayout/__tests__/__snapshots__/AmeliproPageLayout.spec.ts.snap +189 -0
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/__tests__/AmeliproPaginationBtn.spec.ts +92 -0
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/__tests__/__snapshots__/AmeliproPaginationBtn.spec.ts.snap +56 -0
- package/src/components/Amelipro/AmeliproPagination/__tests__/AmeliproPagination.spec.ts +165 -0
- package/src/components/Amelipro/AmeliproPagination/__tests__/__snapshots__/AmeliproPagination.spec.ts.snap +83 -0
- package/src/components/Amelipro/AmeliproPatientBanner/__tests__/AmeliproPatientBanner.spec.ts +208 -0
- package/src/components/Amelipro/AmeliproPatientBanner/__tests__/__snapshots__/AmeliproPatientBanner.spec.ts.snap +285 -0
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/__snapshots__/AmeliproPatientLogged.spec.ts.snap +26 -7
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/__snapshots__/AmeliproPostalAddressCityRow.spec.ts.snap +12 -4
- package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.stories.ts +28 -8
- package/src/components/Amelipro/AmeliproRadioGroup/__tests__/AmeliproRadioGroup.spec.ts +332 -0
- package/src/components/Amelipro/AmeliproRadioGroup/__tests__/__snapshots__/AmeliproRadioGroup.spec.ts.snap +255 -0
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.stories.ts +1 -2
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +3 -1
- package/src/components/Amelipro/AmeliproResultList/__tests__/__snapshots__/AmeliproResultList.spec.ts.snap +2 -1
- package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.vue +11 -5
- package/src/components/Amelipro/AmeliproSelect/__tests__/AmeliproSelect.spec.ts +481 -0
- package/src/components/Amelipro/AmeliproSelect/__tests__/__snapshots__/AmeliproSelect.spec.ts.snap +117 -0
- package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTile.vue +5 -2
- package/src/components/Amelipro/AmeliproStateTile/__tests__/AmeliproStateTile.spec.ts +206 -0
- package/src/components/Amelipro/AmeliproStateTile/__tests__/__snapshots__/AmeliproStateTile.spec.ts.snap +158 -0
- package/src/components/Amelipro/AmeliproStatus/__tests__/AmeliproStatus.spec.ts +120 -0
- package/src/components/Amelipro/AmeliproStatus/__tests__/__snapshots__/AmeliproStatus.spec.ts.snap +39 -0
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/__tests__/AmeliproStepBtn.spec.ts +97 -0
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/__tests__/__snapshots__/AmeliproStepBtn.spec.ts.snap +61 -0
- package/src/components/Amelipro/AmeliproStepper/__tests__/AmeliproStepper.spec.ts +248 -0
- package/src/components/Amelipro/AmeliproStepper/__tests__/__snapshots__/AmeliproStepper.spec.ts.snap +179 -0
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.stories.ts +14 -13
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +2 -1
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +10 -3
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/__tests__/AmeliproTabBtn.spec.ts +129 -0
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/__tests__/__snapshots__/AmeliproTabBtn.spec.ts.snap +81 -0
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabs.vue +2 -2
- package/src/components/Amelipro/AmeliproTabs/__tests__/AmeliproTabs.spec.ts +234 -0
- package/src/components/Amelipro/AmeliproTabs/__tests__/__snapshots__/AmeliproTabs.spec.ts.snap +122 -0
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.vue +7 -5
- package/src/components/Amelipro/AmeliproTextArea/__tests__/AmeliproTextArea.spec.ts +265 -9
- package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +98 -155
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.vue +7 -5
- package/src/components/Amelipro/AmeliproTextField/__tests__/AmeliproTextField.spec.ts +375 -0
- package/src/components/Amelipro/AmeliproTextField/__tests__/__snapshots__/AmeliproTextField.spec.ts.snap +143 -0
- package/src/components/Amelipro/AmeliproTileBtn/__tests__/AmeliproTileBtn.spec.ts +241 -0
- package/src/components/Amelipro/AmeliproTileBtn/__tests__/__snapshots__/AmeliproTileBtn.spec.ts.snap +74 -0
- package/src/components/Amelipro/AmeliproTooltips/__tests__/AmeliproTooltips.spec.ts +212 -0
- package/src/components/Amelipro/AmeliproTooltips/__tests__/__snapshots__/AmeliproTooltips.spec.ts.snap +71 -0
- package/src/components/Amelipro/AmeliproTransmission/__tests__/AmeliproTransmission.spec.ts +155 -0
- package/src/components/Amelipro/AmeliproTransmission/__tests__/__snapshots__/AmeliproTransmission.spec.ts.snap +240 -0
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.stories.ts +0 -1
- package/src/components/Amelipro/ServiceMenu/tests/__snapshots__/ServiceMenu.spec.ts.snap +4 -1
- package/src/components/Amelipro/StructureMenu/StructureBtn/StructureBtn.vue +4 -0
- package/src/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.vue +4 -5
- package/src/components/Amelipro/StructureMenu/StructureTabs/tests/__snapshots__/StructureTabs.spec.ts.snap +5 -4
- package/src/components/Amelipro/StructureMenu/tests/__snapshots__/StructureMenu.spec.ts.snap +13 -6
- package/src/components/Amelipro/UserMenu/UserMenu.vue +2 -1
- package/src/components/Amelipro/UserMenu/tests/__snapshots__/UserMenu.spec.ts.snap +4 -1
- package/src/components/Captcha/Captcha.mdx +4 -4
- package/src/components/Captcha/Captcha.stories.ts +8 -1
- package/src/components/Captcha/Captcha.vue +3 -0
- package/src/components/Captcha/CaptchaBase.vue +3 -0
- package/src/components/Captcha/captchaApi.ts +0 -1
- package/src/components/Customs/Selects/SySelect/SySelect.vue +2 -2
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +5 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +1 -1
- package/src/components/Customs/SyTabs/SyTabs.stories.ts +174 -10
- package/src/components/Customs/SyTabs/SyTabs.vue +62 -0
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +98 -0
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +13 -13
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +13 -0
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +11 -11
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +5 -0
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.mdx +7 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.range.spec.ts +1 -1
- package/src/components/DatePicker/DateTextInput/DateTextInput.spec.ts +3 -3
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +50 -2
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +15 -15
- package/src/components/DatePicker/composables/tests/useDateFormatValidation.spec.ts +2 -2
- package/src/components/DatePicker/composables/tests/useManualDateValidation.spec.ts +1 -1
- package/src/components/DatePicker/composables/useDateFormatDisplay.ts +25 -0
- package/src/components/DatePicker/composables/useDateFormatValidation.ts +5 -2
- package/src/components/DatePicker/composables/useManualDateValidation.ts +5 -1
- package/src/components/DatePicker/tests/DatePicker.validation.spec.ts +1 -1
- package/src/components/ErrorPage/ErrorPage.vue +54 -7
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +6 -2
- package/src/components/ExternalLinks/ExternalLinks.vue +2 -4
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +6 -2
- package/src/components/PasswordField/PasswordField.vue +6 -6
- package/src/components/RangeField/RangeSlider/RangeSlider.vue +3 -2
- package/src/components/RatingPicker/EmotionPicker/EmotionPicker.vue +2 -1
- package/src/components/RatingPicker/NumberPicker/NumberPicker.vue +2 -0
- package/src/components/RatingPicker/RatingPicker.stories.ts +10 -0
- package/src/components/RatingPicker/RatingPicker.vue +23 -1
- package/src/components/RatingPicker/StarsPicker/StarsPicker.vue +2 -0
- package/src/components/SearchListField/Accessibilite.stories.ts +4 -0
- package/src/components/SearchListField/SearchListField.stories.ts +16 -0
- package/src/components/SearchListField/SearchListField.vue +121 -109
- package/src/components/SearchListField/locales.ts +11 -2
- package/src/components/SearchListField/tests/SearchListField.spec.ts +91 -25
- package/src/components/SyAlert/SyAlert.vue +8 -0
- package/src/components/SyAlert/tests/SyAlert.spec.ts +1 -22
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +304 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +12 -4
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +67 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +186 -0
- package/src/components/Tables/SyTable/SyTable.vue +12 -4
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +65 -1
- package/src/components/Tables/common/types.ts +2 -0
- package/src/composables/rules/useFieldValidation.ts +47 -7
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/tests/AmeliproLogoAm.spec.ts +0 -15
- package/src/components/Amelipro/AmeliproIcon/tests/AmeliproIcon.spec.ts +0 -19
- package/src/components/Amelipro/AmeliproIconBtn/tests/AmeliproIconBtn.spec.ts +0 -22
- package/src/components/Amelipro/AmeliproIconBtn/tests/__snapshots__/AmeliproIconBtn.spec.ts.snap +0 -87
- package/src/components/Amelipro/AmeliproIllustratedDataTile/tests/AmeliproIllustratedDataTile.spec.ts +0 -20
- package/src/components/Amelipro/AmeliproIllustratedDataTile/tests/__snapshots__/AmeliproIllustratedDataTile.spec.ts.snap +0 -69
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/tests/AmeliproIllustratedRadioGroup.spec.ts +0 -53
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/tests/__snapshots__/AmeliproIllustratedRadioGroup.spec.ts.snap +0 -544
- package/src/components/Amelipro/AmeliproMailTile/tests/AmeliproMailTile.spec.ts +0 -25
- package/src/components/Amelipro/AmeliproMailTile/tests/__snapshots__/AmeliproMailTile.spec.ts.snap +0 -164
- package/src/components/Amelipro/AmeliproMessage/tests/AmeliproMessage.spec.ts +0 -18
- package/src/components/Amelipro/AmeliproMessage/tests/__snapshots__/AmeliproMessage.spec.ts.snap +0 -94
- package/src/components/Amelipro/AmeliproMessagingLayout/tests/AmeliproMessagingLayout.spec.ts +0 -30
- package/src/components/Amelipro/AmeliproMessagingLayout/tests/__snapshots__/AmeliproMessagingLayout.spec.ts.snap +0 -439
- package/src/components/Amelipro/AmeliproNumberedCard/tests/AmeliproNumberedCard.spec.ts +0 -23
- package/src/components/Amelipro/AmeliproOnboarding/tests/AmeliproOnboarding.spec.ts +0 -41
- package/src/components/Amelipro/AmeliproOnboarding/tests/__snapshots__/AmeliproOnboarding.spec.ts.snap +0 -3
- package/src/components/Amelipro/AmeliproPageLayout/tests/AmeliproPageLayout.spec.ts +0 -183
- package/src/components/Amelipro/AmeliproPageLayout/tests/__snapshots__/AmeliproPageLayout.spec.ts.snap +0 -1602
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/tests/AmeliproPaginationBtn.spec.ts +0 -15
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/tests/__snapshots__/AmeliproPaginationBtn.spec.ts.snap +0 -46
- package/src/components/Amelipro/AmeliproPagination/tests/AmeliproPagination.spec.ts +0 -15
- package/src/components/Amelipro/AmeliproPagination/tests/__snapshots__/AmeliproPagination.spec.ts.snap +0 -116
- package/src/components/Amelipro/AmeliproPatientBanner/tests/AmeliproPatientBanner.spec.ts +0 -24
- package/src/components/Amelipro/AmeliproPatientBanner/tests/__snapshots__/AmeliproPatientBanner.spec.ts.snap +0 -268
- package/src/components/Amelipro/AmeliproRadioGroup/tests/AmeliproRadioGroup.spec.ts +0 -43
- package/src/components/Amelipro/AmeliproRadioGroup/tests/__snapshots__/AmeliproRadioGroup.spec.ts.snap +0 -262
- package/src/components/Amelipro/AmeliproSelect/tests/AmeliproSelect.spec.ts +0 -38
- package/src/components/Amelipro/AmeliproSelect/tests/__snapshots__/AmeliproSelect.spec.ts.snap +0 -196
- package/src/components/Amelipro/AmeliproStateTile/tests/AmeliproStateTile.spec.ts +0 -20
- package/src/components/Amelipro/AmeliproStateTile/tests/__snapshots__/AmeliproStateTile.spec.ts.snap +0 -90
- package/src/components/Amelipro/AmeliproStatus/tests/AmeliproStatus.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproStatus/tests/__snapshots__/AmeliproStatus.spec.ts.snap +0 -21
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/tests/AmeliproStepBtn.spec.ts +0 -18
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/tests/__snapshots__/AmeliproStepBtn.spec.ts.snap +0 -34
- package/src/components/Amelipro/AmeliproStepper/tests/AmeliproStepper.spec.ts +0 -36
- package/src/components/Amelipro/AmeliproStepper/tests/__snapshots__/AmeliproStepper.spec.ts.snap +0 -354
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/tests/AmeliproTabBtn.spec.ts +0 -20
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/tests/__snapshots__/AmeliproTabBtn.spec.ts.snap +0 -34
- package/src/components/Amelipro/AmeliproTabs/tests/AmeliproTabs.spec.ts +0 -39
- package/src/components/Amelipro/AmeliproTabs/tests/__snapshots__/AmeliproTabs.spec.ts.snap +0 -217
- package/src/components/Amelipro/AmeliproTextField/tests/AmeliproTextField.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproTextField/tests/__snapshots__/AmeliproTextField.spec.ts.snap +0 -162
- package/src/components/Amelipro/AmeliproTileBtn/tests/AmeliproTileBtn.spec.ts +0 -17
- package/src/components/Amelipro/AmeliproTileBtn/tests/__snapshots__/AmeliproTileBtn.spec.ts.snap +0 -65
- package/src/components/Amelipro/AmeliproTooltips/tests/AmeliproTooltips.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproTooltips/tests/__snapshots__/AmeliproTooltips.spec.ts.snap +0 -105
- package/src/components/Amelipro/AmeliproTransmission/tests/AmeliproTransmission.spec.ts +0 -16
- package/src/components/Amelipro/AmeliproTransmission/tests/__snapshots__/AmeliproTransmission.spec.ts.snap +0 -246
- package/src/components/SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap +0 -99
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { VueWrapper, config, mount, shallowMount } from '@vue/test-utils'
|
|
3
|
+
import { beforeEach, describe, expect, it } from 'vitest'
|
|
4
|
+
import AmeliproTextField from '../AmeliproTextField.vue'
|
|
5
|
+
import type { ComponentProps } from 'vue-component-type-helpers'
|
|
6
|
+
import type { ExpectedPropOptions } from '@tests/types'
|
|
7
|
+
import { defineComponent, type PropType } from 'vue'
|
|
8
|
+
import TestHelper from '@tests/helpers/TestHelper'
|
|
9
|
+
import type { ValidateOnType } from '../../types'
|
|
10
|
+
import type { ValidationRule } from '@/utils/rules/types'
|
|
11
|
+
|
|
12
|
+
const VTextFieldStub = defineComponent({
|
|
13
|
+
name: 'VTextField',
|
|
14
|
+
props: {
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: [String, Number],
|
|
17
|
+
default: undefined,
|
|
18
|
+
},
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: undefined,
|
|
22
|
+
},
|
|
23
|
+
readonly: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false,
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false,
|
|
30
|
+
},
|
|
31
|
+
clearable: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false,
|
|
34
|
+
},
|
|
35
|
+
id: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: undefined,
|
|
38
|
+
},
|
|
39
|
+
ariaRequired: {
|
|
40
|
+
type: [Boolean, String],
|
|
41
|
+
default: false,
|
|
42
|
+
},
|
|
43
|
+
ariaInvalid: {
|
|
44
|
+
type: [Boolean, String],
|
|
45
|
+
default: false,
|
|
46
|
+
},
|
|
47
|
+
ariaDescribedby: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: undefined,
|
|
50
|
+
},
|
|
51
|
+
hideDetails: {
|
|
52
|
+
type: [Boolean, String],
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
style: {
|
|
56
|
+
type: [String, Object],
|
|
57
|
+
default: undefined,
|
|
58
|
+
},
|
|
59
|
+
type: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: 'text',
|
|
62
|
+
},
|
|
63
|
+
max: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: undefined,
|
|
66
|
+
},
|
|
67
|
+
min: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: undefined,
|
|
70
|
+
},
|
|
71
|
+
counter: {
|
|
72
|
+
type: [Boolean, Number, String],
|
|
73
|
+
default: undefined,
|
|
74
|
+
},
|
|
75
|
+
validateOn: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: undefined,
|
|
78
|
+
},
|
|
79
|
+
rules: {
|
|
80
|
+
type: Array,
|
|
81
|
+
default: () => [],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
|
85
|
+
template: `
|
|
86
|
+
<div
|
|
87
|
+
class="v-text-field-stub"
|
|
88
|
+
:aria-required="ariaRequired"
|
|
89
|
+
:style="style"
|
|
90
|
+
>
|
|
91
|
+
<slot />
|
|
92
|
+
<slot name="append" />
|
|
93
|
+
<slot name="message" />
|
|
94
|
+
</div>
|
|
95
|
+
`,
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
config.global.stubs = config.global.stubs || {}
|
|
99
|
+
config.global.stubs.VTextField = VTextFieldStub
|
|
100
|
+
|
|
101
|
+
const expectedPropOptions: ExpectedPropOptions<typeof AmeliproTextField> = {
|
|
102
|
+
ariaRequired: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: false,
|
|
105
|
+
},
|
|
106
|
+
classes: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: undefined,
|
|
109
|
+
},
|
|
110
|
+
clearable: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false,
|
|
113
|
+
},
|
|
114
|
+
counter: {
|
|
115
|
+
type: [Boolean, Number, String] as PropType<boolean | number>,
|
|
116
|
+
default: undefined,
|
|
117
|
+
},
|
|
118
|
+
disabled: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: false,
|
|
121
|
+
},
|
|
122
|
+
disabledDateForSafari: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: false,
|
|
125
|
+
},
|
|
126
|
+
fullWidthErrorMsg: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false,
|
|
129
|
+
},
|
|
130
|
+
globalMaxWidth: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: undefined,
|
|
133
|
+
},
|
|
134
|
+
globalMinWidth: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: undefined,
|
|
137
|
+
},
|
|
138
|
+
globalWidth: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: undefined,
|
|
141
|
+
},
|
|
142
|
+
hideErrorMessage: {
|
|
143
|
+
type: [String, Boolean] as PropType<boolean | 'auto'>,
|
|
144
|
+
default: false,
|
|
145
|
+
},
|
|
146
|
+
horizontal: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
default: false,
|
|
149
|
+
},
|
|
150
|
+
inputMaxWidth: {
|
|
151
|
+
type: String,
|
|
152
|
+
default: undefined,
|
|
153
|
+
},
|
|
154
|
+
inputMinWidth: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: undefined,
|
|
157
|
+
},
|
|
158
|
+
label: {
|
|
159
|
+
type: String,
|
|
160
|
+
required: true,
|
|
161
|
+
},
|
|
162
|
+
labelMaxWidth: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: undefined,
|
|
165
|
+
},
|
|
166
|
+
labelMinWidth: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: undefined,
|
|
169
|
+
},
|
|
170
|
+
maxDate: {
|
|
171
|
+
type: String,
|
|
172
|
+
default: undefined,
|
|
173
|
+
},
|
|
174
|
+
maxNumber: {
|
|
175
|
+
type: String,
|
|
176
|
+
default: undefined,
|
|
177
|
+
},
|
|
178
|
+
minDate: {
|
|
179
|
+
type: String,
|
|
180
|
+
default: undefined,
|
|
181
|
+
},
|
|
182
|
+
minNumber: {
|
|
183
|
+
type: String,
|
|
184
|
+
default: undefined,
|
|
185
|
+
},
|
|
186
|
+
modelValue: {
|
|
187
|
+
type: [String, Number] as PropType<string | number>,
|
|
188
|
+
default: undefined,
|
|
189
|
+
},
|
|
190
|
+
placeholder: {
|
|
191
|
+
type: String,
|
|
192
|
+
default: undefined,
|
|
193
|
+
},
|
|
194
|
+
readonly: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: false,
|
|
197
|
+
},
|
|
198
|
+
rules: {
|
|
199
|
+
type: Array as PropType<ValidationRule[]>,
|
|
200
|
+
default: () => [],
|
|
201
|
+
},
|
|
202
|
+
type: {
|
|
203
|
+
type: String,
|
|
204
|
+
default: 'text',
|
|
205
|
+
},
|
|
206
|
+
uniqueId: {
|
|
207
|
+
type: String,
|
|
208
|
+
required: true,
|
|
209
|
+
},
|
|
210
|
+
validateOn: {
|
|
211
|
+
default: undefined,
|
|
212
|
+
type: String as PropType<ValidateOnType>,
|
|
213
|
+
validator(value: string): boolean {
|
|
214
|
+
return ['lazy', 'blur', 'input', 'submit', 'blur lazy', 'input lazy', 'submit lazy', 'lazy blur', 'lazy input', 'lazy submit'].includes(value.toLowerCase())
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const requiredPropValues = (): ComponentProps<typeof AmeliproTextField> => ({
|
|
220
|
+
label: 'Required label',
|
|
221
|
+
uniqueId: 'required-unique-id',
|
|
222
|
+
})
|
|
223
|
+
|
|
224
|
+
const modifiedPropValues = (): ComponentProps<typeof AmeliproTextField> => ({
|
|
225
|
+
ariaRequired: true,
|
|
226
|
+
classes: 'modified-classes',
|
|
227
|
+
clearable: true,
|
|
228
|
+
counter: 5,
|
|
229
|
+
disabled: true,
|
|
230
|
+
disabledDateForSafari: true,
|
|
231
|
+
fullWidthErrorMsg: true,
|
|
232
|
+
globalMaxWidth: '300px',
|
|
233
|
+
globalMinWidth: '100px',
|
|
234
|
+
globalWidth: '200px',
|
|
235
|
+
hideErrorMessage: 'auto',
|
|
236
|
+
horizontal: true,
|
|
237
|
+
inputMaxWidth: '150px',
|
|
238
|
+
inputMinWidth: '50px',
|
|
239
|
+
label: 'Modified label',
|
|
240
|
+
labelMaxWidth: '120px',
|
|
241
|
+
labelMinWidth: '60px',
|
|
242
|
+
maxDate: '2099-12-31',
|
|
243
|
+
maxNumber: '100',
|
|
244
|
+
minDate: '2000-01-01',
|
|
245
|
+
minNumber: '1',
|
|
246
|
+
modelValue: 'Modified model value',
|
|
247
|
+
placeholder: 'Modified placeholder',
|
|
248
|
+
readonly: true,
|
|
249
|
+
rules: [() => true],
|
|
250
|
+
type: 'number',
|
|
251
|
+
uniqueId: 'modified-unique-id',
|
|
252
|
+
validateOn: 'input',
|
|
253
|
+
})
|
|
254
|
+
|
|
255
|
+
const testHelper = new TestHelper(AmeliproTextField)
|
|
256
|
+
testHelper.setExpectedPropOptions(expectedPropOptions)
|
|
257
|
+
.setRequiredPropValues(requiredPropValues)
|
|
258
|
+
.setModifiedPropValues(modifiedPropValues)
|
|
259
|
+
|
|
260
|
+
describe('AmeliproTextField', () => {
|
|
261
|
+
describe('Snapshots', () => {
|
|
262
|
+
testHelper.snapshots()
|
|
263
|
+
})
|
|
264
|
+
|
|
265
|
+
describe('Properties', () => {
|
|
266
|
+
testHelper.properties()
|
|
267
|
+
})
|
|
268
|
+
|
|
269
|
+
describe('Setting props should update attributes of inner tags', () => {
|
|
270
|
+
let vueWrapper: VueWrapper<any>
|
|
271
|
+
beforeEach(() => {
|
|
272
|
+
vueWrapper = shallowMount(AmeliproTextField, { props: requiredPropValues() })
|
|
273
|
+
})
|
|
274
|
+
|
|
275
|
+
it('prop uniqueId sets attribute id on root container', async () => {
|
|
276
|
+
expect(vueWrapper.attributes('id')).toBe(`${testHelper.default('uniqueId')}-container`)
|
|
277
|
+
const { uniqueId } = modifiedPropValues()
|
|
278
|
+
await vueWrapper.setProps({ uniqueId })
|
|
279
|
+
expect(vueWrapper.attributes('id')).toBe(`${testHelper.modified('uniqueId')}-container`)
|
|
280
|
+
})
|
|
281
|
+
|
|
282
|
+
it('prop label sets label text', async () => {
|
|
283
|
+
expect(vueWrapper.find('.amelipro-text-field__label').text()).toContain(testHelper.default('label'))
|
|
284
|
+
const { label } = modifiedPropValues()
|
|
285
|
+
await vueWrapper.setProps({ label })
|
|
286
|
+
expect(vueWrapper.find('.amelipro-text-field__label').text()).toContain(testHelper.modified('label'))
|
|
287
|
+
})
|
|
288
|
+
})
|
|
289
|
+
|
|
290
|
+
describe('Setting props should update props or attributes of inner components', () => {
|
|
291
|
+
let vueWrapper: VueWrapper<any>
|
|
292
|
+
beforeEach(() => {
|
|
293
|
+
vueWrapper = shallowMount(AmeliproTextField, { props: requiredPropValues() })
|
|
294
|
+
})
|
|
295
|
+
|
|
296
|
+
it('prop disabled sets prop disabled on VTextField', async () => {
|
|
297
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('disabled')).toBe(testHelper.default('disabled'))
|
|
298
|
+
const { disabled } = modifiedPropValues()
|
|
299
|
+
await vueWrapper.setProps({ disabled })
|
|
300
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('disabled')).toBe(testHelper.modified('disabled'))
|
|
301
|
+
})
|
|
302
|
+
|
|
303
|
+
it('prop clearable sets prop clearable on VTextField', async () => {
|
|
304
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('clearable')).toBe(testHelper.default('clearable'))
|
|
305
|
+
const { clearable } = modifiedPropValues()
|
|
306
|
+
await vueWrapper.setProps({ clearable })
|
|
307
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('clearable')).toBe(testHelper.modified('clearable'))
|
|
308
|
+
})
|
|
309
|
+
|
|
310
|
+
it('prop placeholder sets prop placeholder on VTextField', async () => {
|
|
311
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('placeholder')).toBe(testHelper.default('placeholder'))
|
|
312
|
+
const { placeholder } = modifiedPropValues()
|
|
313
|
+
await vueWrapper.setProps({ placeholder })
|
|
314
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('placeholder')).toBe(testHelper.modified('placeholder'))
|
|
315
|
+
})
|
|
316
|
+
|
|
317
|
+
it('prop disabledDateForSafari & type=date sets prop type on VTextField to text on Safari', () => {
|
|
318
|
+
// Simule Safari
|
|
319
|
+
const originalUserAgent = window.navigator.userAgent
|
|
320
|
+
Object.defineProperty(window.navigator, 'userAgent', {
|
|
321
|
+
value: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15',
|
|
322
|
+
configurable: true,
|
|
323
|
+
})
|
|
324
|
+
|
|
325
|
+
vueWrapper = shallowMount(AmeliproTextField, {
|
|
326
|
+
props: {
|
|
327
|
+
...requiredPropValues(),
|
|
328
|
+
disabledDateForSafari: true,
|
|
329
|
+
type: 'date',
|
|
330
|
+
},
|
|
331
|
+
})
|
|
332
|
+
expect(vueWrapper.findComponent({ name: 'VTextField' }).props('type')).toBe('text')
|
|
333
|
+
|
|
334
|
+
// Nettoyage : restaure l'userAgent
|
|
335
|
+
Object.defineProperty(window.navigator, 'userAgent', {
|
|
336
|
+
value: originalUserAgent,
|
|
337
|
+
configurable: true,
|
|
338
|
+
})
|
|
339
|
+
})
|
|
340
|
+
})
|
|
341
|
+
|
|
342
|
+
describe('Slots', () => {
|
|
343
|
+
it('displays slot content in labelInfo', () => {
|
|
344
|
+
const vueWrapper = shallowMount(AmeliproTextField, {
|
|
345
|
+
props: requiredPropValues(),
|
|
346
|
+
slots: { labelInfo: '<div id="slot-content">Slot Content</div>' },
|
|
347
|
+
})
|
|
348
|
+
expect(vueWrapper.find('#slot-content').text()).toBe('Slot Content')
|
|
349
|
+
})
|
|
350
|
+
|
|
351
|
+
// Slot du composant VTextField, non accessible si on utilise shallowMount
|
|
352
|
+
it('displays slot content in append', () => {
|
|
353
|
+
const vueWrapper = mount(AmeliproTextField, {
|
|
354
|
+
props: requiredPropValues(),
|
|
355
|
+
slots: { append: '<div id="append-content">Append Content</div>' },
|
|
356
|
+
})
|
|
357
|
+
expect(vueWrapper.find('#append-content').text()).toBe('Append Content')
|
|
358
|
+
})
|
|
359
|
+
})
|
|
360
|
+
|
|
361
|
+
describe('Events', () => {
|
|
362
|
+
it('emits update:model-value on input change', async () => {
|
|
363
|
+
const vueWrapper = mount(AmeliproTextField, { props: requiredPropValues() })
|
|
364
|
+
await vueWrapper.findComponent({ name: 'VTextField' }).vm.$emit('update:modelValue', 'foo')
|
|
365
|
+
await vueWrapper.vm.$nextTick()
|
|
366
|
+
expect(vueWrapper.emitted('update:model-value')).toBeTruthy()
|
|
367
|
+
})
|
|
368
|
+
it('emits change on change event', async () => {
|
|
369
|
+
const vueWrapper = mount(AmeliproTextField, { props: requiredPropValues() })
|
|
370
|
+
await vueWrapper.findComponent({ name: 'VTextField' }).vm.$emit('change')
|
|
371
|
+
await vueWrapper.vm.$nextTick()
|
|
372
|
+
expect(vueWrapper.emitted('change')).toBeTruthy()
|
|
373
|
+
})
|
|
374
|
+
})
|
|
375
|
+
})
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`AmeliproTextField > Snapshots > renders the component with all properties filled in 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
class="modified-classes"
|
|
6
|
+
id="modified-unique-id-container"
|
|
7
|
+
style="
|
|
8
|
+
margin-bottom: 12px;
|
|
9
|
+
max-width: 300px;
|
|
10
|
+
min-width: 100px;
|
|
11
|
+
width: 200px;
|
|
12
|
+
"
|
|
13
|
+
>
|
|
14
|
+
<div class="
|
|
15
|
+
amelipro-text-field__wrapper
|
|
16
|
+
d-flex
|
|
17
|
+
flex-column
|
|
18
|
+
flex-md-row
|
|
19
|
+
w-100
|
|
20
|
+
">
|
|
21
|
+
<div class="
|
|
22
|
+
align-baseline
|
|
23
|
+
d-inline-flex
|
|
24
|
+
mb-1
|
|
25
|
+
mr-md-2
|
|
26
|
+
mt-md-2
|
|
27
|
+
">
|
|
28
|
+
<label
|
|
29
|
+
class="
|
|
30
|
+
amelipro-text-field__label
|
|
31
|
+
mr-2
|
|
32
|
+
"
|
|
33
|
+
for="modified-unique-id"
|
|
34
|
+
id="modified-unique-id-label"
|
|
35
|
+
style="
|
|
36
|
+
max-width: 120px;
|
|
37
|
+
min-width: 60px;
|
|
38
|
+
"
|
|
39
|
+
>
|
|
40
|
+
Modified label
|
|
41
|
+
<span>
|
|
42
|
+
<span aria-hidden="true">
|
|
43
|
+
*
|
|
44
|
+
</span>
|
|
45
|
+
<span class="d-sr-only">
|
|
46
|
+
Champ obligatoire
|
|
47
|
+
</span>
|
|
48
|
+
</span>
|
|
49
|
+
</label>
|
|
50
|
+
</div>
|
|
51
|
+
<div
|
|
52
|
+
aria-required="true"
|
|
53
|
+
bg-color="ap-grey-lighten-2"
|
|
54
|
+
class="
|
|
55
|
+
amelipro-text-field
|
|
56
|
+
pt-0
|
|
57
|
+
v-text-field-stub
|
|
58
|
+
"
|
|
59
|
+
color="ap-blue-darken-1"
|
|
60
|
+
density="compact"
|
|
61
|
+
style="
|
|
62
|
+
max-width: 150px;
|
|
63
|
+
min-width: 50px;
|
|
64
|
+
background-color: transparent;
|
|
65
|
+
"
|
|
66
|
+
variant="outlined"
|
|
67
|
+
>
|
|
68
|
+
<amelipro-message-stub
|
|
69
|
+
alignstart="false"
|
|
70
|
+
borderleftmessage="false"
|
|
71
|
+
dark="false"
|
|
72
|
+
dismissible="false"
|
|
73
|
+
noicon="true"
|
|
74
|
+
text="true"
|
|
75
|
+
type="error"
|
|
76
|
+
uniqueid="modified-unique-id-error"
|
|
77
|
+
value="true"
|
|
78
|
+
width="100%"
|
|
79
|
+
></amelipro-message-stub>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<!-- v-if -->
|
|
83
|
+
</div>
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
exports[`AmeliproTextField > Snapshots > renders the component with only required properties filled in 1`] = `
|
|
87
|
+
<div
|
|
88
|
+
class=""
|
|
89
|
+
id="required-unique-id-container"
|
|
90
|
+
style="margin-bottom: 12px;"
|
|
91
|
+
>
|
|
92
|
+
<div class="
|
|
93
|
+
amelipro-text-field__wrapper
|
|
94
|
+
d-flex
|
|
95
|
+
flex-column
|
|
96
|
+
w-100
|
|
97
|
+
">
|
|
98
|
+
<div class="
|
|
99
|
+
align-baseline
|
|
100
|
+
d-inline-flex
|
|
101
|
+
mb-1
|
|
102
|
+
">
|
|
103
|
+
<label
|
|
104
|
+
class="
|
|
105
|
+
amelipro-text-field__label
|
|
106
|
+
mr-2
|
|
107
|
+
"
|
|
108
|
+
for="required-unique-id"
|
|
109
|
+
id="required-unique-id-label"
|
|
110
|
+
>
|
|
111
|
+
Required label
|
|
112
|
+
<!-- v-if -->
|
|
113
|
+
</label>
|
|
114
|
+
</div>
|
|
115
|
+
<div
|
|
116
|
+
aria-required="false"
|
|
117
|
+
bg-color="ap-white"
|
|
118
|
+
class="
|
|
119
|
+
amelipro-text-field
|
|
120
|
+
pt-0
|
|
121
|
+
v-text-field-stub
|
|
122
|
+
"
|
|
123
|
+
color="ap-blue-darken-1"
|
|
124
|
+
density="compact"
|
|
125
|
+
variant="outlined"
|
|
126
|
+
>
|
|
127
|
+
<amelipro-message-stub
|
|
128
|
+
alignstart="false"
|
|
129
|
+
borderleftmessage="false"
|
|
130
|
+
dark="false"
|
|
131
|
+
dismissible="false"
|
|
132
|
+
noicon="true"
|
|
133
|
+
text="true"
|
|
134
|
+
type="error"
|
|
135
|
+
uniqueid="required-unique-id-error"
|
|
136
|
+
value="true"
|
|
137
|
+
width="100%"
|
|
138
|
+
></amelipro-message-stub>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<!-- v-if -->
|
|
142
|
+
</div>
|
|
143
|
+
`;
|