@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
|
@@ -1,16 +1,272 @@
|
|
|
1
|
-
import { mount } from '@vue/test-utils'
|
|
2
|
-
import {
|
|
1
|
+
import { VueWrapper, mount, shallowMount } from '@vue/test-utils'
|
|
2
|
+
import { beforeEach, describe, expect, it } from 'vitest'
|
|
3
3
|
import AmeliproTextArea from '../AmeliproTextArea.vue'
|
|
4
|
+
import type { ComponentProps } from 'vue-component-type-helpers'
|
|
5
|
+
import type { ExpectedPropOptions } from '@tests/types'
|
|
6
|
+
import type { PropType } from 'vue'
|
|
7
|
+
import TestHelper from '@tests/helpers/TestHelper'
|
|
8
|
+
import type { ValidateOnType } from '../../types'
|
|
9
|
+
import type { ValidationRule } from '@/utils/rules/types'
|
|
4
10
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
const expectedPropOptions: ExpectedPropOptions<typeof AmeliproTextArea> = {
|
|
12
|
+
ariaRequired: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false,
|
|
15
|
+
},
|
|
16
|
+
classes: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: undefined,
|
|
19
|
+
},
|
|
20
|
+
counter: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 255,
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
globalMaxWidth: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: undefined,
|
|
31
|
+
},
|
|
32
|
+
globalMinWidth: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: undefined,
|
|
35
|
+
},
|
|
36
|
+
globalWidth: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: undefined,
|
|
39
|
+
},
|
|
40
|
+
horizontal: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
44
|
+
inputMaxWidth: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: undefined,
|
|
47
|
+
},
|
|
48
|
+
inputMinWidth: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: undefined,
|
|
51
|
+
},
|
|
52
|
+
label: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
labelMaxWidth: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: undefined,
|
|
59
|
+
},
|
|
60
|
+
labelMinWidth: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: undefined,
|
|
63
|
+
},
|
|
64
|
+
modelValue: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: undefined,
|
|
67
|
+
},
|
|
68
|
+
readonly: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false,
|
|
71
|
+
},
|
|
72
|
+
rules: {
|
|
73
|
+
type: Array as PropType<ValidationRule[]>,
|
|
74
|
+
default: () => [],
|
|
75
|
+
},
|
|
76
|
+
uniqueId: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: true,
|
|
79
|
+
},
|
|
80
|
+
validateOn: {
|
|
81
|
+
default: undefined,
|
|
82
|
+
type: String as PropType<ValidateOnType>,
|
|
83
|
+
validator(value: string): boolean {
|
|
84
|
+
return ['lazy', 'blur', 'input', 'submit', 'blur lazy', 'input lazy', 'submit lazy', 'lazy blur', 'lazy input', 'lazy submit'].includes(value.toLowerCase())
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const requiredPropValues = (): ComponentProps<typeof AmeliproTextArea> => ({
|
|
90
|
+
label: 'Required label',
|
|
91
|
+
uniqueId: 'required-unique-id',
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
const modifiedPropValues = (): ComponentProps<typeof AmeliproTextArea> => ({
|
|
95
|
+
ariaRequired: true,
|
|
96
|
+
classes: 'modified-classes',
|
|
97
|
+
counter: 100,
|
|
98
|
+
disabled: true,
|
|
99
|
+
globalMaxWidth: '300px',
|
|
100
|
+
globalMinWidth: '100px',
|
|
101
|
+
globalWidth: '200px',
|
|
102
|
+
horizontal: true,
|
|
103
|
+
inputMaxWidth: '150px',
|
|
104
|
+
inputMinWidth: '50px',
|
|
105
|
+
label: 'Modified label',
|
|
106
|
+
labelMaxWidth: '120px',
|
|
107
|
+
labelMinWidth: '60px',
|
|
108
|
+
modelValue: 'Modified model value',
|
|
109
|
+
readonly: true,
|
|
110
|
+
rules: [() => true],
|
|
111
|
+
uniqueId: 'modified-unique-id',
|
|
112
|
+
validateOn: 'input',
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
const VTextareaStub = {
|
|
116
|
+
name: 'VTextarea',
|
|
117
|
+
inheritAttrs: false,
|
|
118
|
+
props: ['disabled', 'readonly', 'modelValue'],
|
|
119
|
+
template: `
|
|
120
|
+
<textarea
|
|
121
|
+
v-if="!$slots.append"
|
|
122
|
+
v-bind="$attrs"
|
|
123
|
+
:disabled="disabled"
|
|
124
|
+
:readonly="readonly"
|
|
125
|
+
:modelvalue="modelValue"
|
|
126
|
+
/>
|
|
127
|
+
<div v-else>
|
|
128
|
+
<textarea
|
|
129
|
+
v-bind="$attrs"
|
|
130
|
+
:disabled="disabled"
|
|
131
|
+
:readonly="readonly"
|
|
132
|
+
:modelvalue="modelValue"
|
|
133
|
+
/>
|
|
134
|
+
<slot name="append" />
|
|
135
|
+
</div>
|
|
136
|
+
`,
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const testHelper = new TestHelper(AmeliproTextArea)
|
|
140
|
+
testHelper
|
|
141
|
+
.setExpectedPropOptions(expectedPropOptions)
|
|
142
|
+
.setRequiredPropValues(requiredPropValues)
|
|
143
|
+
.setModifiedPropValues(modifiedPropValues)
|
|
144
|
+
.setMountOptions({
|
|
145
|
+
global: {
|
|
146
|
+
stubs: {
|
|
147
|
+
VTextarea: VTextareaStub,
|
|
11
148
|
},
|
|
149
|
+
},
|
|
150
|
+
})
|
|
151
|
+
|
|
152
|
+
describe('AmeliproTextArea', () => {
|
|
153
|
+
describe('Snapshots', () => {
|
|
154
|
+
testHelper.snapshots()
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
describe('Properties', () => {
|
|
158
|
+
testHelper.properties()
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
describe('Setting props should update attributes of inner tags', () => {
|
|
162
|
+
let vueWrapper: VueWrapper<InstanceType<typeof AmeliproTextArea>>
|
|
163
|
+
beforeEach(() => {
|
|
164
|
+
vueWrapper = shallowMount(AmeliproTextArea, {
|
|
165
|
+
props: requiredPropValues(),
|
|
166
|
+
global: {
|
|
167
|
+
stubs: {
|
|
168
|
+
VTextarea: VTextareaStub,
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
it('prop uniqueId sets attribute id on root container', async () => {
|
|
175
|
+
expect(vueWrapper.attributes('id')).toBe(`${testHelper.default('uniqueId')}-container`)
|
|
176
|
+
const { uniqueId } = modifiedPropValues()
|
|
177
|
+
await vueWrapper.setProps({ uniqueId })
|
|
178
|
+
expect(vueWrapper.attributes('id')).toBe(`${testHelper.modified('uniqueId')}-container`)
|
|
12
179
|
})
|
|
13
180
|
|
|
14
|
-
|
|
181
|
+
it('prop label sets label text', async () => {
|
|
182
|
+
expect(vueWrapper.find('.amelipro-textarea__label').text()).toContain(testHelper.default('label'))
|
|
183
|
+
const { label } = modifiedPropValues()
|
|
184
|
+
await vueWrapper.setProps({ label })
|
|
185
|
+
expect(vueWrapper.find('.amelipro-textarea__label').text()).toContain(testHelper.modified('label'))
|
|
186
|
+
})
|
|
187
|
+
})
|
|
188
|
+
|
|
189
|
+
describe('Setting props should update props or attributes of inner components', () => {
|
|
190
|
+
let vueWrapper: VueWrapper<InstanceType<typeof AmeliproTextArea>>
|
|
191
|
+
beforeEach(() => {
|
|
192
|
+
vueWrapper = shallowMount(AmeliproTextArea, {
|
|
193
|
+
props: requiredPropValues(),
|
|
194
|
+
global: {
|
|
195
|
+
stubs: {
|
|
196
|
+
VTextarea: VTextareaStub,
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
|
|
202
|
+
it('prop disabled sets prop disabled on VTextarea', async () => {
|
|
203
|
+
expect(vueWrapper.findComponent({ name: 'VTextarea' }).props('disabled')).toBe(testHelper.default('disabled'))
|
|
204
|
+
const { disabled } = modifiedPropValues()
|
|
205
|
+
await vueWrapper.setProps({ disabled })
|
|
206
|
+
expect(vueWrapper.findComponent({ name: 'VTextarea' }).props('disabled')).toBe(testHelper.modified('disabled'))
|
|
207
|
+
})
|
|
208
|
+
|
|
209
|
+
it('prop readonly sets prop readonly on VTextarea', async () => {
|
|
210
|
+
expect(vueWrapper.findComponent({ name: 'VTextarea' }).props('readonly')).toBe(testHelper.default('readonly'))
|
|
211
|
+
const { readonly } = modifiedPropValues()
|
|
212
|
+
await vueWrapper.setProps({ readonly })
|
|
213
|
+
expect(vueWrapper.findComponent({ name: 'VTextarea' }).props('readonly')).toBe(testHelper.modified('readonly'))
|
|
214
|
+
})
|
|
215
|
+
})
|
|
216
|
+
|
|
217
|
+
describe('Slots', () => {
|
|
218
|
+
it('displays slot content in labelInfo', () => {
|
|
219
|
+
const vueWrapper = shallowMount(AmeliproTextArea, {
|
|
220
|
+
props: requiredPropValues(),
|
|
221
|
+
slots: { labelInfo: '<div id="slot-content">Slot Content</div>' },
|
|
222
|
+
global: {
|
|
223
|
+
stubs: {
|
|
224
|
+
VTextarea: VTextareaStub,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
})
|
|
228
|
+
expect(vueWrapper.find('#slot-content').text()).toBe('Slot Content')
|
|
229
|
+
})
|
|
230
|
+
it('displays slot content in append', () => {
|
|
231
|
+
const vueWrapper = mount(AmeliproTextArea, {
|
|
232
|
+
props: requiredPropValues(),
|
|
233
|
+
slots: { append: '<div id="append-content">Append Content</div>' },
|
|
234
|
+
global: {
|
|
235
|
+
stubs: {
|
|
236
|
+
VTextarea: VTextareaStub,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
})
|
|
240
|
+
expect(vueWrapper.find('#append-content').text()).toBe('Append Content')
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
|
|
244
|
+
describe('Events', () => {
|
|
245
|
+
it('emits update:model-value on input change', async () => {
|
|
246
|
+
const vueWrapper = mount(AmeliproTextArea, {
|
|
247
|
+
props: requiredPropValues(),
|
|
248
|
+
global: {
|
|
249
|
+
stubs: {
|
|
250
|
+
VTextarea: VTextareaStub,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
})
|
|
254
|
+
await vueWrapper.findComponent({ name: 'VTextarea' }).vm.$emit('update:modelValue', 'foo')
|
|
255
|
+
await vueWrapper.vm.$nextTick()
|
|
256
|
+
expect(vueWrapper.emitted('update:model-value')).toBeTruthy()
|
|
257
|
+
})
|
|
258
|
+
it('emits change on change event', async () => {
|
|
259
|
+
const vueWrapper = mount(AmeliproTextArea, {
|
|
260
|
+
props: requiredPropValues(),
|
|
261
|
+
global: {
|
|
262
|
+
stubs: {
|
|
263
|
+
VTextarea: VTextareaStub,
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
})
|
|
267
|
+
await vueWrapper.findComponent({ name: 'VTextarea' }).vm.$emit('change')
|
|
268
|
+
await vueWrapper.vm.$nextTick()
|
|
269
|
+
expect(vueWrapper.emitted('change')).toBeTruthy()
|
|
270
|
+
})
|
|
15
271
|
})
|
|
16
272
|
})
|
|
@@ -1,181 +1,124 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`AmeliproTextArea >
|
|
3
|
+
exports[`AmeliproTextArea > Snapshots > renders the component with all properties filled in 1`] = `
|
|
4
4
|
<div
|
|
5
5
|
class="
|
|
6
6
|
amelipro-textarea
|
|
7
7
|
d-flex
|
|
8
8
|
flex-column
|
|
9
|
+
flex-md-row
|
|
10
|
+
modified-classes
|
|
11
|
+
"
|
|
12
|
+
id="modified-unique-id-container"
|
|
13
|
+
style="
|
|
14
|
+
margin-bottom: 12px;
|
|
15
|
+
max-width: 300px;
|
|
16
|
+
min-width: 100px;
|
|
17
|
+
width: 200px;
|
|
9
18
|
"
|
|
10
|
-
id="my-textarea-id-container"
|
|
11
|
-
style="margin-bottom: 12px;"
|
|
12
19
|
>
|
|
13
20
|
<div class="
|
|
14
|
-
align-
|
|
21
|
+
align-baseline
|
|
15
22
|
d-inline-flex
|
|
23
|
+
mb-1
|
|
24
|
+
mr-md-2
|
|
25
|
+
mt-md-2
|
|
16
26
|
">
|
|
17
27
|
<label
|
|
18
28
|
class="
|
|
19
29
|
amelipro-textarea__label
|
|
20
30
|
mr-2
|
|
21
31
|
"
|
|
22
|
-
for="
|
|
23
|
-
id="
|
|
32
|
+
for="modified-unique-id"
|
|
33
|
+
id="modified-unique-id-label"
|
|
34
|
+
style="
|
|
35
|
+
max-width: 120px;
|
|
36
|
+
min-width: 60px;
|
|
37
|
+
"
|
|
24
38
|
>
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
Modified label
|
|
40
|
+
<span>
|
|
41
|
+
<span aria-hidden="true">
|
|
42
|
+
*
|
|
43
|
+
</span>
|
|
44
|
+
<span class="d-sr-only">
|
|
45
|
+
Champ obligatoire
|
|
46
|
+
</span>
|
|
47
|
+
</span>
|
|
27
48
|
</label>
|
|
28
49
|
</div>
|
|
50
|
+
<textarea
|
|
51
|
+
aria-describedby="modified-unique-id-error"
|
|
52
|
+
aria-required="true"
|
|
53
|
+
auto-grow=""
|
|
54
|
+
bg-color="ap-grey-lighten-2"
|
|
55
|
+
class="amelipro-textarea-input"
|
|
56
|
+
color="ap-blue-darken-1"
|
|
57
|
+
counter="100"
|
|
58
|
+
disabled=""
|
|
59
|
+
id="modified-unique-id"
|
|
60
|
+
modelvalue="Modified model value"
|
|
61
|
+
readonly=""
|
|
62
|
+
rules="() => true,(value) => {
|
|
63
|
+
let valid;
|
|
64
|
+
if (Array.isArray(value)) {
|
|
65
|
+
valid = value.length !== 0;
|
|
66
|
+
} else if (typeof value === "string") {
|
|
67
|
+
valid = value.trim() !== "";
|
|
68
|
+
} else {
|
|
69
|
+
valid = value !== null && value !== void 0;
|
|
70
|
+
}
|
|
71
|
+
return valid || __vite_ssr_import_0__.ruleMessage(errorMessages, "default");
|
|
72
|
+
}"
|
|
73
|
+
style="
|
|
74
|
+
max-width: 150px;
|
|
75
|
+
min-width: 50px;
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
"
|
|
78
|
+
validate-on="input"
|
|
79
|
+
variant="outlined"
|
|
80
|
+
></textarea>
|
|
81
|
+
</div>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`AmeliproTextArea > Snapshots > renders the component with only required properties filled in 1`] = `
|
|
85
|
+
<div
|
|
86
|
+
class="
|
|
87
|
+
amelipro-textarea
|
|
88
|
+
d-flex
|
|
89
|
+
flex-column
|
|
90
|
+
"
|
|
91
|
+
id="required-unique-id-container"
|
|
92
|
+
style="margin-bottom: 12px;"
|
|
93
|
+
>
|
|
29
94
|
<div class="
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
v-input--horizontal
|
|
34
|
-
v-locale--is-ltr
|
|
35
|
-
v-text-field
|
|
36
|
-
v-textarea
|
|
37
|
-
v-textarea--auto-grow
|
|
38
|
-
v-textarea--no-resize
|
|
39
|
-
v-theme--light
|
|
95
|
+
align-baseline
|
|
96
|
+
d-inline-flex
|
|
97
|
+
mb-1
|
|
40
98
|
">
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
v-field--variant-outlined
|
|
49
|
-
v-locale--is-ltr
|
|
50
|
-
v-theme--light
|
|
51
|
-
">
|
|
52
|
-
<div class="v-field__overlay"></div>
|
|
53
|
-
<div class="v-field__loader">
|
|
54
|
-
<div
|
|
55
|
-
aria-hidden="true"
|
|
56
|
-
aria-valuemax="100"
|
|
57
|
-
aria-valuemin="0"
|
|
58
|
-
class="
|
|
59
|
-
v-locale--is-ltr
|
|
60
|
-
v-progress-linear
|
|
61
|
-
v-theme--light
|
|
62
|
-
"
|
|
63
|
-
role="progressbar"
|
|
64
|
-
style="
|
|
65
|
-
top: 0px;
|
|
66
|
-
height: 0px;
|
|
67
|
-
--v-progress-linear-height: 2px;
|
|
68
|
-
"
|
|
69
|
-
>
|
|
70
|
-
<!---->
|
|
71
|
-
<div
|
|
72
|
-
class="
|
|
73
|
-
bg-ap-blue-darken-1
|
|
74
|
-
v-progress-linear__background
|
|
75
|
-
"
|
|
76
|
-
style="opacity: NaN;"
|
|
77
|
-
></div>
|
|
78
|
-
<div
|
|
79
|
-
class="
|
|
80
|
-
bg-ap-blue-darken-1
|
|
81
|
-
v-progress-linear__buffer
|
|
82
|
-
"
|
|
83
|
-
style="
|
|
84
|
-
opacity: NaN;
|
|
85
|
-
width: 0%;
|
|
86
|
-
"
|
|
87
|
-
></div>
|
|
88
|
-
<transition-stub
|
|
89
|
-
appear="false"
|
|
90
|
-
css="true"
|
|
91
|
-
name="fade-transition"
|
|
92
|
-
persisted="false"
|
|
93
|
-
>
|
|
94
|
-
<div class="v-progress-linear__indeterminate">
|
|
95
|
-
<div class="
|
|
96
|
-
bg-ap-blue-darken-1
|
|
97
|
-
long
|
|
98
|
-
v-progress-linear__indeterminate
|
|
99
|
-
"></div>
|
|
100
|
-
<div class="
|
|
101
|
-
bg-ap-blue-darken-1
|
|
102
|
-
short
|
|
103
|
-
v-progress-linear__indeterminate
|
|
104
|
-
"></div>
|
|
105
|
-
</div>
|
|
106
|
-
</transition-stub>
|
|
107
|
-
<!---->
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
<!---->
|
|
111
|
-
<div
|
|
112
|
-
class="v-field__field"
|
|
113
|
-
data-no-activator=""
|
|
114
|
-
>
|
|
115
|
-
<!---->
|
|
116
|
-
<!---->
|
|
117
|
-
<!---->
|
|
118
|
-
<textarea
|
|
119
|
-
aria-describedby="my-textarea-id-error"
|
|
120
|
-
aria-required="false"
|
|
121
|
-
class="v-field__input"
|
|
122
|
-
id="my-textarea-id"
|
|
123
|
-
rows="5"
|
|
124
|
-
></textarea>
|
|
125
|
-
<textarea
|
|
126
|
-
aria-hidden="true"
|
|
127
|
-
class="
|
|
128
|
-
v-field__input
|
|
129
|
-
v-textarea__sizer
|
|
130
|
-
"
|
|
131
|
-
id="my-textarea-id-sizer"
|
|
132
|
-
readonly=""
|
|
133
|
-
></textarea>
|
|
134
|
-
<!---->
|
|
135
|
-
</div>
|
|
136
|
-
<!---->
|
|
137
|
-
<!---->
|
|
138
|
-
<div class="v-field__outline">
|
|
139
|
-
<div class="v-field__outline__start"></div>
|
|
140
|
-
<!---->
|
|
141
|
-
<div class="v-field__outline__end"></div>
|
|
142
|
-
<!---->
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
<!---->
|
|
147
|
-
<div
|
|
148
|
-
aria-live="polite"
|
|
149
|
-
class="v-input__details"
|
|
150
|
-
id="my-textarea-id-messages"
|
|
151
|
-
role="alert"
|
|
99
|
+
<label
|
|
100
|
+
class="
|
|
101
|
+
amelipro-textarea__label
|
|
102
|
+
mr-2
|
|
103
|
+
"
|
|
104
|
+
for="required-unique-id"
|
|
105
|
+
id="required-unique-id-label"
|
|
152
106
|
>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
css="true"
|
|
157
|
-
name="slide-y-transition"
|
|
158
|
-
persisted="false"
|
|
159
|
-
tag="div"
|
|
160
|
-
>
|
|
161
|
-
<!---->
|
|
162
|
-
</transition-group-stub>
|
|
163
|
-
<!---->
|
|
164
|
-
<span></span>
|
|
165
|
-
<transition-stub
|
|
166
|
-
appear="false"
|
|
167
|
-
css="true"
|
|
168
|
-
name="slide-y-transition"
|
|
169
|
-
persisted="false"
|
|
170
|
-
>
|
|
171
|
-
<div
|
|
172
|
-
class="v-counter"
|
|
173
|
-
style="display: none;"
|
|
174
|
-
>
|
|
175
|
-
0 / 255
|
|
176
|
-
</div>
|
|
177
|
-
</transition-stub>
|
|
178
|
-
</div>
|
|
107
|
+
Required label
|
|
108
|
+
<!-- v-if -->
|
|
109
|
+
</label>
|
|
179
110
|
</div>
|
|
111
|
+
<textarea
|
|
112
|
+
aria-describedby="required-unique-id-error"
|
|
113
|
+
aria-required="false"
|
|
114
|
+
auto-grow=""
|
|
115
|
+
bg-color="ap-white"
|
|
116
|
+
class="amelipro-textarea-input"
|
|
117
|
+
color="ap-blue-darken-1"
|
|
118
|
+
counter="255"
|
|
119
|
+
id="required-unique-id"
|
|
120
|
+
rules=""
|
|
121
|
+
variant="outlined"
|
|
122
|
+
></textarea>
|
|
180
123
|
</div>
|
|
181
124
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
/* eslint-disable vuejs-accessibility/label-has-for */
|
|
3
|
+
import { computed, onMounted, type PropType, ref } from 'vue'
|
|
4
4
|
import type { IndexedObject, ValidateOnType } from '../types'
|
|
5
5
|
import AmeliproMessage from '../AmeliproMessage/AmeliproMessage.vue'
|
|
6
6
|
import type { InputTextField } from './types'
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
:class="fieldClasses"
|
|
268
268
|
>
|
|
269
269
|
<div
|
|
270
|
-
class="d-inline-flex align-
|
|
270
|
+
class="d-inline-flex align-baseline mb-1"
|
|
271
271
|
:class="labelClasses"
|
|
272
272
|
>
|
|
273
273
|
<label
|
|
@@ -289,7 +289,10 @@
|
|
|
289
289
|
</span>
|
|
290
290
|
</label>
|
|
291
291
|
|
|
292
|
-
<slot
|
|
292
|
+
<slot
|
|
293
|
+
class="mb-1"
|
|
294
|
+
name="labelInfo"
|
|
295
|
+
/>
|
|
293
296
|
</div>
|
|
294
297
|
|
|
295
298
|
<VTextField
|
|
@@ -372,7 +375,6 @@
|
|
|
372
375
|
}
|
|
373
376
|
|
|
374
377
|
.amelipro-text-field__label {
|
|
375
|
-
margin-bottom: 4px;
|
|
376
378
|
font-size: apTokens.$font-size-xs;
|
|
377
379
|
font-weight: apTokens.$label-font-weight;
|
|
378
380
|
}
|