@cnamts/synapse 1.0.21 → 1.0.22
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/dist/{DateFilter-uN8OURoP.js → DateFilter-B5n-ZkLi.js} +29 -24
- package/dist/{NumberFilter-sm1dQNQi.js → NumberFilter-CtiZ9uj8.js} +1 -1
- package/dist/{PeriodFilter-Cklsxnh9.js → PeriodFilter-DzqiMb-b.js} +1 -1
- package/dist/{SelectFilter-CWefj27Z.js → SelectFilter-BOYlF7rX.js} +1 -1
- package/dist/{TextFilter-Ddyj885L.js → TextFilter-BOFRNfcX.js} +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +7399 -5967
- package/dist/components/Amelipro/AmeliproBtn/AmeliproBtn.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproCallback/AmeliproCallback.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarousel.d.ts +10 -14
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarouselItem/AmeliproCarouselItem.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproCheckbox/AmeliproCheckbox.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproFooter/AmeliproFooter.d.ts +8 -8
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeader.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIcon/AmeliproIcon.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +16 -20
- package/dist/components/Amelipro/AmeliproMenu/AmeliproMenu.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/AmeliproPaginationBtn.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPatientBanner/AmeliproPatientBanner.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +1610 -1354
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +2411 -2027
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +8889 -7327
- package/dist/components/Amelipro/AmeliproStateTile/AmeliproStateTile.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproStepper/AmeliproStepper.d.ts +2 -6
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +8888 -7334
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +951 -839
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +1613 -1357
- package/dist/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.d.ts +223 -203
- package/dist/components/Amelipro/AmeliproTransmission/AmeliproTransmission.d.ts +3 -3
- package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +3 -7
- package/dist/components/CollapsibleList/CollapsibleList.d.ts +4 -1
- package/dist/components/CookieBanner/CookieBanner.d.ts +303 -273
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +1297 -1156
- package/dist/components/CookiesSelection/CookiesSelection.d.ts +404 -377
- package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +1 -1
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +1088 -847
- package/dist/components/Customs/Selects/SyInputSelect/SyInputSelect.d.ts +1 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +515 -321
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +41 -39
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +921 -801
- package/dist/components/Customs/SyForm/SyForm.d.ts +356 -348
- package/dist/components/Customs/SyPagination/SyPagination.d.ts +11 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +907 -795
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +1629 -1365
- package/dist/components/DataList/DataList.d.ts +1 -1
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +3868 -3123
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +1946 -1562
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +833 -687
- package/dist/components/DialogBox/DialogBox.d.ts +482 -416
- package/dist/components/DownloadBtn/config.d.ts +1 -1
- package/dist/components/ErrorPage/ErrorPage.d.ts +4 -0
- package/dist/components/FileList/UploadItem/locales.d.ts +4 -0
- package/dist/components/FileUpload/FileUpload.d.ts +4 -4
- package/dist/components/FileUpload/locales.d.ts +1 -0
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +418 -366
- package/dist/components/FooterBar/FooterBar.d.ts +13 -1
- package/dist/components/FooterBar/locales.d.ts +1 -0
- package/dist/components/FooterBar/types.d.ts +1 -0
- package/dist/components/HeaderBar/HeaderBar.d.ts +1 -0
- package/dist/components/HeaderBar/HeaderLogo/HeaderLogo.d.ts +1 -0
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +3 -6
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +1031 -643
- package/dist/components/LangBtn/LangBtn.d.ts +277 -239
- package/dist/components/LogoBrandSection/LogoBrandSection.d.ts +4 -0
- package/dist/components/MaintenancePage/MaintenancePage.d.ts +16 -1
- package/dist/components/NirField/NirField.d.ts +1659 -1371
- package/dist/components/NotFoundPage/NotFoundPage.d.ts +9 -3
- package/dist/components/PageContainer/PageContainer.d.ts +3 -1
- package/dist/components/PasswordField/PasswordField.d.ts +1 -1
- package/dist/components/PeriodField/PeriodField.d.ts +7712 -6216
- package/dist/components/PhoneField/PhoneField.d.ts +831 -687
- package/dist/components/RangeField/RangeSlider/RangeSlider.d.ts +4 -12
- package/dist/components/StatusPage/StatusPage.d.ts +12 -1
- package/dist/components/SubHeader/SubHeader.d.ts +2 -0
- package/dist/components/SyAlert/SyAlert.d.ts +74 -70
- package/dist/components/SyBtnMenu/SyBtnMenu.d.ts +10 -1
- package/dist/components/SyHeading/SyHeading.d.ts +20 -0
- package/dist/components/SyTextArea/SyTextArea.d.ts +476 -420
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +759 -468
- package/dist/components/Tables/SyTable/SyTable.d.ts +761 -470
- package/dist/components/Tables/common/SyTableFilter.d.ts +1 -1
- package/dist/components/Tables/common/SyTablePagination.d.ts +269 -170
- package/dist/components/Tables/common/filters/DateFilter.d.ts +10 -1
- package/dist/components/Tables/common/filters/NumberFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/PeriodFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/SelectFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/TextFilter.d.ts +1 -1
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +166 -138
- package/dist/components/Tables/common/types.d.ts +2 -0
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +24 -1211
- package/dist/components/UserMenuBtn/UserMenuBtn.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/types.d.ts +2 -0
- package/dist/design-system-v3.js +70 -69
- package/dist/design-system-v3.umd.cjs +265 -265
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +26 -14
- package/dist/designTokens/tokens/amelipro/apSemantic.d.ts +19 -13
- package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +28 -15
- package/dist/designTokens/tokens/cnam/cnamSemantic.d.ts +20 -13
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +26 -15
- package/dist/designTokens/tokens/pa/paSemantic.d.ts +19 -13
- package/dist/main-CEl4J8_T.js +37241 -0
- package/dist/style.css +1 -1
- package/dist/vuetifyConfig.d.ts +14 -14
- package/package.json +13 -7
- package/src/assets/amelipro/img/logo-amelipro.svg +9 -0
- package/src/assets/apTokens.scss +53 -17
- package/src/assets/overrides/_icons.scss +12 -2
- package/src/assets/overrides/_tooltips.scss +5 -6
- package/src/assets/overrides/_typography.scss +17 -2
- package/src/assets/overrides/_utilities.scss +49 -3
- package/src/assets/tokens.scss +53 -17
- package/src/components/Accordion/accessibilite/Accessibility.mdx +5 -4
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.vue +2 -2
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/__tests__/__snapshots__/AmeliproAccordionTemplate.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.vue +2 -2
- package/src/components/Amelipro/AmeliproAccordionFrieze/__tests__/__snapshots__/AmeliproAccordionFrieze.spec.ts.snap +14 -56
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +1 -1
- package/src/components/Amelipro/AmeliproAccordionList/__tests__/__snapshots__/AmeliproAccordionList.spec.ts.snap +15 -23
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +1 -1
- package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/__snapshots__/AmeliproAccordionResultList.spec.ts.snap +15 -3
- package/src/components/Amelipro/AmeliproCarousel/__tests__/__snapshots__/AmeliproCarousel.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +0 -98
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.mdx +1 -1
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.stories.ts +5 -16
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.mdx +3 -1
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.stories.ts +7 -0
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/AmeliproTooth.vue +0 -1
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/tests/__snapshots__/AmeliproTooth.spec.ts.snap +0 -1
- package/src/components/Amelipro/AmeliproDentalChart/tests/__snapshots__/AmeliproDentalChart.spec.ts.snap +0 -52
- package/src/components/Amelipro/AmeliproDialog/__tests__/__snapshots__/AmeliproDialog.spec.ts.snap +6 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.mdx +3 -1
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.stories.ts +19 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.vue +2 -2
- package/src/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.vue +3 -4
- package/src/components/Amelipro/AmeliproFirstLogin/__tests__/__snapshots__/AmeliproFirstLogin.spec.ts.snap +2 -13
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.mdx +3 -1
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.stories.ts +7 -0
- package/src/components/Amelipro/AmeliproMenu/__tests__/__snapshots__/AmeliproMenu.spec.ts.snap +8 -0
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/__snapshots__/AmeliproPatientLogged.spec.ts.snap +9 -2
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/__snapshots__/AmeliproPostalAddressCityRow.spec.ts.snap +28 -10
- package/src/components/Amelipro/AmeliproPostalAddressField/__tests__/__snapshots__/AmeliproPostalAddressField.spec.ts.snap +44 -8
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +1 -1
- package/src/components/Amelipro/AmeliproResultList/__tests__/__snapshots__/AmeliproResultList.spec.ts.snap +15 -3
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +1 -1
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +0 -1
- package/src/components/Amelipro/AmeliproTooltips/__tests__/__snapshots__/AmeliproTooltips.spec.ts.snap +6 -0
- package/src/components/Amelipro/AmeliproUpload/__tests__/__snapshots__/AmeliproUpload.spec.ts.snap +2 -4
- package/src/components/Amelipro/StructureMenu/StructureList/__tests__/__snapshots__/StructureList.spec.ts.snap +0 -2
- package/src/components/Amelipro/UserMenu/__tests__/__snapshots__/UserMenu.spec.ts.snap +8 -0
- package/src/components/BackBtn/BackBtn.vue +1 -1
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +36 -18
- package/src/components/ChipList/ChipList.vue +4 -2
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +8 -3
- package/src/components/CollapsibleList/CollapsibleList.vue +14 -6
- package/src/components/CollapsibleList/accessibilite/Accessibility.mdx +19 -6
- package/src/components/CollapsibleList/tests/CollapsibleList.a11y.spec.ts +1 -0
- package/src/components/CollapsibleList/tests/CollapsibleList.spec.ts +2 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +10 -0
- package/src/components/CookieBanner/CookieBanner.vue +15 -5
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +9 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +10 -2
- package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +21 -15
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +17 -8
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.a11y.spec.ts +1 -0
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.ts +5 -0
- package/src/components/CookiesSelection/CookiesSelection.vue +7 -2
- package/src/components/CookiesSelection/tests/CookiesSelection.a11y.spec.ts +1 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.spec.ts +5 -0
- package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +21 -15
- package/src/components/CopyBtn/CopyBtn.vue +6 -4
- package/src/components/CopyBtn/accessibilite/Accessibility.mdx +82 -11
- package/src/components/CopyBtn/tests/__snapshots__/CopyBtn.spec.ts.snap +5 -1
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.stories.ts +4 -10
- package/src/components/Customs/Selects/SySelect/SySelect.mdx +0 -1
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +10 -10
- package/src/components/Customs/Selects/SySelect/SySelect.vue +17 -0
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +1 -1
- package/src/components/Customs/Selects/SySelect/tests/SySelect.a11y.spec.ts +1 -3
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +72 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +1 -1
- package/src/components/Customs/SyIcon/SyIcon.a11y.spec.ts +31 -2
- package/src/components/Customs/SyIcon/SyIcon.vue +9 -5
- package/src/components/Customs/SyPagination/SyPagination.stories.ts +14 -2
- package/src/components/Customs/SyPagination/SyPagination.vue +20 -5
- package/src/components/Customs/SyPagination/accessibilite/Accessibility.mdx +79 -8
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +53 -0
- package/src/components/Customs/SyPagination/tests/SyPagination.spec.ts +12 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +4 -0
- package/src/components/Customs/SyTextField/SyTextField.vue +39 -5
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +28 -3
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +20 -8
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +9 -3
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +1 -1
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +70 -47
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +34 -0
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +27 -0
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +23 -9
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +21 -8
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +50 -22
- package/src/components/DatePicker/playground/ComplexDatePickerPlayground.vue +48 -10
- package/src/components/DatePicker/playground/DatePickerHolidayRule.vue +16 -3
- package/src/components/DialogBox/DialogBox.stories.ts +13 -0
- package/src/components/DialogBox/DialogBox.vue +12 -5
- package/src/components/DialogBox/accessibilite/Accessibility.mdx +27 -7
- package/src/components/DialogBox/tests/DialogBox.a11y.spec.ts +1 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +40 -6
- package/src/components/DownloadBtn/accessibilite/Accessibility.mdx +73 -11
- package/src/components/DownloadBtn/config.ts +1 -1
- package/src/components/ErrorPage/ErrorPage.stories.ts +82 -47
- package/src/components/ErrorPage/ErrorPage.vue +6 -0
- package/src/components/ErrorPage/accessibilite/Accessibility.mdx +15 -0
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +2 -0
- package/src/components/ExternalLinks/tests/__snapshots__/ExternalLinks.spec.ts.snap +13 -2
- package/src/components/FileList/FileList.stories.ts +4 -0
- package/src/components/FileList/UploadItem/UploadItem.vue +8 -3
- package/src/components/FileList/UploadItem/locales.ts +10 -0
- package/src/components/FileList/accessibilite/Accessibility.mdx +55 -7
- package/src/components/FileUpload/FileUpload.vue +60 -37
- package/src/components/FileUpload/FileUploadContent.vue +1 -1
- package/src/components/FileUpload/accessibilite/Accessibility.mdx +48 -5
- package/src/components/FileUpload/locales.ts +1 -0
- package/src/components/FileUpload/tests/FileUpload.spec.ts +14 -14
- package/src/components/FilterInline/FilterInline.stories.ts +0 -15
- package/src/components/FilterInline/FilterInline.vue +1 -0
- package/src/components/FilterInline/accessibilite/Accessibility.mdx +70 -7
- package/src/components/FilterInline/tests/__snapshots__/FilterInline.spec.ts.snap +3 -3
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +0 -3
- package/src/components/FilterSideBar/FilterSideBar.vue +2 -1
- package/src/components/FilterSideBar/accessibilite/Accessibility.mdx +70 -9
- package/src/components/FooterBar/FooterBar.stories.ts +298 -34
- package/src/components/FooterBar/FooterBar.vue +67 -9
- package/src/components/FooterBar/config.ts +2 -2
- package/src/components/FooterBar/locales.ts +1 -0
- package/src/components/FooterBar/tests/FooterBarConfig.spec.ts +1 -1
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +6 -25
- package/src/components/FooterBar/types.d.ts +1 -0
- package/src/components/HeaderBar/HeaderBar.stories.ts +23 -1
- package/src/components/HeaderBar/HeaderBar.vue +4 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +7 -2
- package/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.ts +5 -0
- package/src/components/HeaderBar/accessibilite/Accessibility.mdx +24 -5
- package/src/components/HeaderBar/tests/HeaderBar.a11y.spec.ts +1 -0
- package/src/components/HeaderBar/tests/HeaderBar.spec.ts +3 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +4 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +2 -0
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +3 -0
- package/src/components/LogoBrandSection/LogoBrandSection.stories.ts +22 -0
- package/src/components/LogoBrandSection/LogoBrandSection.vue +13 -5
- package/src/components/LogoBrandSection/tests/LogoBrandSection.a11y.spec.ts +2 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +44 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +2 -0
- package/src/components/MaintenancePage/MaintenancePage.vue +33 -6
- package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +3 -1
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +3 -2
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +18 -0
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +2 -0
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +1 -1
- package/src/components/NotFoundPage/NotFoundPage.vue +16 -5
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +2 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +49 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +25 -2
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +2 -0
- package/src/components/PageContainer/PageContainer.stories.ts +47 -0
- package/src/components/PageContainer/PageContainer.vue +4 -2
- package/src/components/PageContainer/accessibilite/Accessibility.mdx +31 -17
- package/src/components/PaginatedTable/PaginatedTable.mdx +3 -3
- package/src/components/PaginatedTable/PaginatedTable.stories.ts +9 -1
- package/src/components/PeriodField/PeriodField.vue +4 -0
- package/src/components/PeriodField/tests/PeriodField.a11y.spec.ts +10 -1
- package/src/components/PhoneField/PhoneField.stories.ts +73 -35
- package/src/components/PhoneField/PhoneField.vue +152 -83
- package/src/components/PhoneField/accessibilite/Accessibility.mdx +306 -9
- package/src/components/PhoneField/indicatifs.ts +2 -2
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +47 -0
- package/src/components/PhoneField/tests/PhoneField.spec.ts +82 -5
- package/src/components/SearchListField/SearchListField.vue +1 -1
- package/src/components/SearchListField/accessibilite/Accessibility.mdx +69 -9
- package/src/components/SearchListField/tests/SearchListField.a11y.spec.ts +37 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +1 -1
- package/src/components/StatusPage/StatusPage.mdx +10 -1
- package/src/components/StatusPage/StatusPage.stories.ts +43 -0
- package/src/components/StatusPage/StatusPage.vue +26 -4
- package/src/components/StatusPage/accessibilite/Accessibility.mdx +24 -5
- package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +1 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +3 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +2 -0
- package/src/components/SubHeader/SubHeader.stories.ts +16 -0
- package/src/components/SubHeader/SubHeader.vue +6 -3
- package/src/components/SubHeader/accessibilite/Accessibility.mdx +27 -6
- package/src/components/SyAlert/SyAlert.vue +21 -20
- package/src/components/SyBtnMenu/SyBtnMenu.vue +33 -17
- package/src/components/SyBtnMenu/tests/SyBtnMenu.a11y.spec.ts +38 -0
- package/src/components/SyBtnMenu/tests/SyBtnMenu.spec.ts +41 -0
- package/src/components/SyHeading/SyHeading.vue +18 -0
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +96 -30
- package/src/components/Tables/SyServerTable/SyServerTable.vue +2 -0
- package/src/components/Tables/SyTable/SyTable.vue +2 -0
- package/src/components/Tables/common/SyTablePagination.vue +16 -10
- package/src/components/Tables/common/filters/DateFilter.vue +5 -0
- package/src/components/Tables/common/tests/SyTablePagination.spec.ts +40 -24
- package/src/components/Tables/common/types.ts +3 -0
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +11 -11
- package/src/components/UploadWorkflow/UploadWorkflow.vue +30 -13
- package/src/components/UploadWorkflow/accessibilite/Accessibility.mdx +56 -5
- package/src/components/UploadWorkflow/accessibilite/UploadWorkflow.a11y.spec.ts +110 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +7 -25
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +144 -121
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +53 -31
- package/src/components/UserMenuBtn/UserMenuBtn.vue +4 -1
- package/src/components/UserMenuBtn/accessibilite/Accessibility.mdx +72 -8
- package/src/components/index.ts +1 -0
- package/src/components/types.ts +4 -0
- package/src/composables/date/tests/useDateInitialization.spec.ts +22 -1
- package/src/composables/date/useDateInitializationDayjs.ts +4 -7
- package/src/composables/date/useDatePickerAccessibility.ts +2 -3
- package/src/composables/useFilterable/useFilterable.spec.ts +52 -2
- package/src/composables/useFilterable/useFilterable.ts +7 -1
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +27 -15
- package/src/designTokens/tokens/amelipro/apSemantic.ts +21 -15
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +28 -15
- package/src/designTokens/tokens/cnam/cnamSemantic.ts +21 -14
- package/src/designTokens/tokens/pa/paLightTheme.ts +27 -16
- package/src/designTokens/tokens/pa/paSemantic.ts +19 -13
- package/src/directives/rgaaSvgFix.ts +2 -7
- package/src/stories/Accessibilite/{Audit → AuditEtContreAudit}/Exemptions-derogations.mdx +1 -1
- package/src/stories/Accessibilite/AuditEtContreAudit/Introduction.mdx +188 -0
- package/src/stories/Accessibilite/{Audit → AuditEtContreAudit}/RGAA.mdx +1 -1
- package/src/stories/Accessibilite/Introduction.mdx +22 -3
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +21 -22
- package/src/stories/DeprecationNotice/DeprecationNotice.ts +41 -0
- package/src/stories/DesignTokens/ColorDisplay.vue +12 -5
- package/src/stories/DesignTokens/Colors.mdx +8 -59
- package/src/stories/DesignTokens/colors.stories.ts +1862 -1071
- package/src/stories/EcoConception/EcoGuideComponent.vue +10 -4
- package/dist/main-CWniLr0s.js +0 -36919
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest'
|
|
2
2
|
import { mount } from '@vue/test-utils'
|
|
3
|
+
import { nextTick } from 'vue'
|
|
3
4
|
import SyBtnMenu from '../SyBtnMenu.vue'
|
|
4
5
|
|
|
5
6
|
describe('SyBtnMenu', () => {
|
|
@@ -164,4 +165,44 @@ describe('SyBtnMenu', () => {
|
|
|
164
165
|
|
|
165
166
|
wrapper.unmount()
|
|
166
167
|
})
|
|
168
|
+
|
|
169
|
+
it('renders a prepend icon when menu item provides icon', async () => {
|
|
170
|
+
const wrapper = mount(SyBtnMenu, {
|
|
171
|
+
props: {
|
|
172
|
+
primaryInfo: 'John Doe',
|
|
173
|
+
menuItems: [
|
|
174
|
+
{ text: 'Administration', value: 'admin', icon: 'mdi-account' },
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
attachTo: document.body,
|
|
178
|
+
})
|
|
179
|
+
|
|
180
|
+
await wrapper.find('.sy-user-menu-btn').trigger('click')
|
|
181
|
+
await nextTick()
|
|
182
|
+
|
|
183
|
+
const prependIcon = document.body.querySelector('.v-list-item__prepend .v-icon') as HTMLElement | null
|
|
184
|
+
expect(prependIcon).not.toBeNull()
|
|
185
|
+
expect(prependIcon?.classList.contains('mdi-account')).toBe(true)
|
|
186
|
+
|
|
187
|
+
wrapper.unmount()
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
it('does not render a prepend icon when menu item has no icon', async () => {
|
|
191
|
+
const wrapper = mount(SyBtnMenu, {
|
|
192
|
+
props: {
|
|
193
|
+
primaryInfo: 'John Doe',
|
|
194
|
+
menuItems: [
|
|
195
|
+
{ text: 'Administration', value: 'admin' },
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
attachTo: document.body,
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
await wrapper.find('.sy-user-menu-btn').trigger('click')
|
|
202
|
+
|
|
203
|
+
const prependIcon = wrapper.find('.v-list-item__prepend .v-icon')
|
|
204
|
+
expect(prependIcon.exists()).toBe(false)
|
|
205
|
+
|
|
206
|
+
wrapper.unmount()
|
|
207
|
+
})
|
|
167
208
|
})
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
level: 1 | 2 | 3 | 4 | 5 | 6
|
|
6
|
+
}>()
|
|
7
|
+
|
|
8
|
+
const tag = computed(() => `h${props.level}`)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<component
|
|
13
|
+
:is="tag"
|
|
14
|
+
class="sy-heading"
|
|
15
|
+
>
|
|
16
|
+
<slot />
|
|
17
|
+
</component>
|
|
18
|
+
</template>
|
|
@@ -13,6 +13,7 @@ exports[`TableToolbar > renders correctly when all the item are displayed 1`] =
|
|
|
13
13
|
v-locale--is-ltr
|
|
14
14
|
v-theme--light
|
|
15
15
|
v-toolbar
|
|
16
|
+
v-toolbar--collapse-start
|
|
16
17
|
v-toolbar--density-default
|
|
17
18
|
v-toolbar--flat
|
|
18
19
|
"
|
|
@@ -78,11 +79,17 @@ exports[`TableToolbar > renders correctly when all the item are displayed 1`] =
|
|
|
78
79
|
>
|
|
79
80
|
<!---->
|
|
80
81
|
<div
|
|
81
|
-
class="
|
|
82
|
+
class="
|
|
83
|
+
bg-primary
|
|
84
|
+
v-progress-linear__background
|
|
85
|
+
"
|
|
82
86
|
style="opacity: NaN;"
|
|
83
87
|
></div>
|
|
84
88
|
<div
|
|
85
|
-
class="
|
|
89
|
+
class="
|
|
90
|
+
bg-primary
|
|
91
|
+
v-progress-linear__buffer
|
|
92
|
+
"
|
|
86
93
|
style="
|
|
87
94
|
opacity: NaN;
|
|
88
95
|
width: 0%;
|
|
@@ -96,10 +103,12 @@ exports[`TableToolbar > renders correctly when all the item are displayed 1`] =
|
|
|
96
103
|
>
|
|
97
104
|
<div class="v-progress-linear__indeterminate">
|
|
98
105
|
<div class="
|
|
106
|
+
bg-primary
|
|
99
107
|
long
|
|
100
108
|
v-progress-linear__indeterminate
|
|
101
109
|
"></div>
|
|
102
110
|
<div class="
|
|
111
|
+
bg-primary
|
|
103
112
|
short
|
|
104
113
|
v-progress-linear__indeterminate
|
|
105
114
|
"></div>
|
|
@@ -115,19 +124,22 @@ exports[`TableToolbar > renders correctly when all the item are displayed 1`] =
|
|
|
115
124
|
>
|
|
116
125
|
<!---->
|
|
117
126
|
<label
|
|
127
|
+
aria-hidden="false"
|
|
118
128
|
class="
|
|
119
129
|
v-field-label
|
|
120
130
|
v-label
|
|
121
131
|
"
|
|
122
|
-
for="input-v-
|
|
132
|
+
for="input-v-1"
|
|
133
|
+
id="input-v-1-label"
|
|
123
134
|
>
|
|
124
135
|
<!---->
|
|
125
136
|
Rechercher
|
|
126
137
|
</label>
|
|
127
138
|
<!---->
|
|
128
139
|
<input
|
|
140
|
+
aria-labelledby="input-v-1-label"
|
|
129
141
|
class="v-field__input"
|
|
130
|
-
id="input-v-
|
|
142
|
+
id="input-v-1"
|
|
131
143
|
size="1"
|
|
132
144
|
type="text"
|
|
133
145
|
/>
|
|
@@ -161,7 +173,6 @@ exports[`TableToolbar > renders correctly when all the item are displayed 1`] =
|
|
|
161
173
|
</div>
|
|
162
174
|
</transition-stub>
|
|
163
175
|
<div class="v-field__append-inner">
|
|
164
|
-
<!---->
|
|
165
176
|
<i
|
|
166
177
|
aria-hidden="true"
|
|
167
178
|
class="
|
|
@@ -234,6 +245,7 @@ exports[`TableToolbar > renders correctly when loading 1`] = `
|
|
|
234
245
|
v-locale--is-ltr
|
|
235
246
|
v-theme--light
|
|
236
247
|
v-toolbar
|
|
248
|
+
v-toolbar--collapse-start
|
|
237
249
|
v-toolbar--density-default
|
|
238
250
|
v-toolbar--flat
|
|
239
251
|
"
|
|
@@ -302,11 +314,17 @@ exports[`TableToolbar > renders correctly when loading 1`] = `
|
|
|
302
314
|
>
|
|
303
315
|
<!---->
|
|
304
316
|
<div
|
|
305
|
-
class="
|
|
317
|
+
class="
|
|
318
|
+
bg-primary
|
|
319
|
+
v-progress-linear__background
|
|
320
|
+
"
|
|
306
321
|
style="opacity: NaN;"
|
|
307
322
|
></div>
|
|
308
323
|
<div
|
|
309
|
-
class="
|
|
324
|
+
class="
|
|
325
|
+
bg-primary
|
|
326
|
+
v-progress-linear__buffer
|
|
327
|
+
"
|
|
310
328
|
style="
|
|
311
329
|
opacity: NaN;
|
|
312
330
|
width: 0%;
|
|
@@ -320,10 +338,12 @@ exports[`TableToolbar > renders correctly when loading 1`] = `
|
|
|
320
338
|
>
|
|
321
339
|
<div class="v-progress-linear__indeterminate">
|
|
322
340
|
<div class="
|
|
341
|
+
bg-primary
|
|
323
342
|
long
|
|
324
343
|
v-progress-linear__indeterminate
|
|
325
344
|
"></div>
|
|
326
345
|
<div class="
|
|
346
|
+
bg-primary
|
|
327
347
|
short
|
|
328
348
|
v-progress-linear__indeterminate
|
|
329
349
|
"></div>
|
|
@@ -339,20 +359,23 @@ exports[`TableToolbar > renders correctly when loading 1`] = `
|
|
|
339
359
|
>
|
|
340
360
|
<!---->
|
|
341
361
|
<label
|
|
362
|
+
aria-hidden="false"
|
|
342
363
|
class="
|
|
343
364
|
v-field-label
|
|
344
365
|
v-label
|
|
345
366
|
"
|
|
346
|
-
for="input-v-
|
|
367
|
+
for="input-v-1"
|
|
368
|
+
id="input-v-1-label"
|
|
347
369
|
>
|
|
348
370
|
<!---->
|
|
349
371
|
Rechercher
|
|
350
372
|
</label>
|
|
351
373
|
<!---->
|
|
352
374
|
<input
|
|
375
|
+
aria-labelledby="input-v-1-label"
|
|
353
376
|
class="v-field__input"
|
|
354
377
|
disabled=""
|
|
355
|
-
id="input-v-
|
|
378
|
+
id="input-v-1"
|
|
356
379
|
size="1"
|
|
357
380
|
type="text"
|
|
358
381
|
/>
|
|
@@ -360,7 +383,6 @@ exports[`TableToolbar > renders correctly when loading 1`] = `
|
|
|
360
383
|
</div>
|
|
361
384
|
<!---->
|
|
362
385
|
<div class="v-field__append-inner">
|
|
363
|
-
<!---->
|
|
364
386
|
<i
|
|
365
387
|
aria-hidden="true"
|
|
366
388
|
class="
|
|
@@ -433,6 +455,7 @@ exports[`TableToolbar > renders correctly when the screen width <= 600px 1`] = `
|
|
|
433
455
|
v-locale--is-ltr
|
|
434
456
|
v-theme--light
|
|
435
457
|
v-toolbar
|
|
458
|
+
v-toolbar--collapse-start
|
|
436
459
|
v-toolbar--density-default
|
|
437
460
|
v-toolbar--flat
|
|
438
461
|
"
|
|
@@ -498,11 +521,17 @@ exports[`TableToolbar > renders correctly when the screen width <= 600px 1`] = `
|
|
|
498
521
|
>
|
|
499
522
|
<!---->
|
|
500
523
|
<div
|
|
501
|
-
class="
|
|
524
|
+
class="
|
|
525
|
+
bg-primary
|
|
526
|
+
v-progress-linear__background
|
|
527
|
+
"
|
|
502
528
|
style="opacity: NaN;"
|
|
503
529
|
></div>
|
|
504
530
|
<div
|
|
505
|
-
class="
|
|
531
|
+
class="
|
|
532
|
+
bg-primary
|
|
533
|
+
v-progress-linear__buffer
|
|
534
|
+
"
|
|
506
535
|
style="
|
|
507
536
|
opacity: NaN;
|
|
508
537
|
width: 0%;
|
|
@@ -516,10 +545,12 @@ exports[`TableToolbar > renders correctly when the screen width <= 600px 1`] = `
|
|
|
516
545
|
>
|
|
517
546
|
<div class="v-progress-linear__indeterminate">
|
|
518
547
|
<div class="
|
|
548
|
+
bg-primary
|
|
519
549
|
long
|
|
520
550
|
v-progress-linear__indeterminate
|
|
521
551
|
"></div>
|
|
522
552
|
<div class="
|
|
553
|
+
bg-primary
|
|
523
554
|
short
|
|
524
555
|
v-progress-linear__indeterminate
|
|
525
556
|
"></div>
|
|
@@ -535,19 +566,22 @@ exports[`TableToolbar > renders correctly when the screen width <= 600px 1`] = `
|
|
|
535
566
|
>
|
|
536
567
|
<!---->
|
|
537
568
|
<label
|
|
569
|
+
aria-hidden="false"
|
|
538
570
|
class="
|
|
539
571
|
v-field-label
|
|
540
572
|
v-label
|
|
541
573
|
"
|
|
542
|
-
for="input-v-
|
|
574
|
+
for="input-v-1"
|
|
575
|
+
id="input-v-1-label"
|
|
543
576
|
>
|
|
544
577
|
<!---->
|
|
545
578
|
Rechercher
|
|
546
579
|
</label>
|
|
547
580
|
<!---->
|
|
548
581
|
<input
|
|
582
|
+
aria-labelledby="input-v-1-label"
|
|
549
583
|
class="v-field__input"
|
|
550
|
-
id="input-v-
|
|
584
|
+
id="input-v-1"
|
|
551
585
|
size="1"
|
|
552
586
|
type="text"
|
|
553
587
|
/>
|
|
@@ -581,7 +615,6 @@ exports[`TableToolbar > renders correctly when the screen width <= 600px 1`] = `
|
|
|
581
615
|
</div>
|
|
582
616
|
</transition-stub>
|
|
583
617
|
<div class="v-field__append-inner">
|
|
584
|
-
<!---->
|
|
585
618
|
<i
|
|
586
619
|
aria-hidden="true"
|
|
587
620
|
class="
|
|
@@ -654,6 +687,7 @@ exports[`TableToolbar > renders correctly with content slot 1`] = `
|
|
|
654
687
|
v-locale--is-ltr
|
|
655
688
|
v-theme--light
|
|
656
689
|
v-toolbar
|
|
690
|
+
v-toolbar--collapse-start
|
|
657
691
|
v-toolbar--density-default
|
|
658
692
|
v-toolbar--flat
|
|
659
693
|
"
|
|
@@ -719,11 +753,17 @@ exports[`TableToolbar > renders correctly with content slot 1`] = `
|
|
|
719
753
|
>
|
|
720
754
|
<!---->
|
|
721
755
|
<div
|
|
722
|
-
class="
|
|
756
|
+
class="
|
|
757
|
+
bg-primary
|
|
758
|
+
v-progress-linear__background
|
|
759
|
+
"
|
|
723
760
|
style="opacity: NaN;"
|
|
724
761
|
></div>
|
|
725
762
|
<div
|
|
726
|
-
class="
|
|
763
|
+
class="
|
|
764
|
+
bg-primary
|
|
765
|
+
v-progress-linear__buffer
|
|
766
|
+
"
|
|
727
767
|
style="
|
|
728
768
|
opacity: NaN;
|
|
729
769
|
width: 0%;
|
|
@@ -737,10 +777,12 @@ exports[`TableToolbar > renders correctly with content slot 1`] = `
|
|
|
737
777
|
>
|
|
738
778
|
<div class="v-progress-linear__indeterminate">
|
|
739
779
|
<div class="
|
|
780
|
+
bg-primary
|
|
740
781
|
long
|
|
741
782
|
v-progress-linear__indeterminate
|
|
742
783
|
"></div>
|
|
743
784
|
<div class="
|
|
785
|
+
bg-primary
|
|
744
786
|
short
|
|
745
787
|
v-progress-linear__indeterminate
|
|
746
788
|
"></div>
|
|
@@ -756,19 +798,22 @@ exports[`TableToolbar > renders correctly with content slot 1`] = `
|
|
|
756
798
|
>
|
|
757
799
|
<!---->
|
|
758
800
|
<label
|
|
801
|
+
aria-hidden="false"
|
|
759
802
|
class="
|
|
760
803
|
v-field-label
|
|
761
804
|
v-label
|
|
762
805
|
"
|
|
763
|
-
for="input-v-
|
|
806
|
+
for="input-v-1"
|
|
807
|
+
id="input-v-1-label"
|
|
764
808
|
>
|
|
765
809
|
<!---->
|
|
766
810
|
Rechercher
|
|
767
811
|
</label>
|
|
768
812
|
<!---->
|
|
769
813
|
<input
|
|
814
|
+
aria-labelledby="input-v-1-label"
|
|
770
815
|
class="v-field__input"
|
|
771
|
-
id="input-v-
|
|
816
|
+
id="input-v-1"
|
|
772
817
|
size="1"
|
|
773
818
|
type="text"
|
|
774
819
|
/>
|
|
@@ -802,7 +847,6 @@ exports[`TableToolbar > renders correctly with content slot 1`] = `
|
|
|
802
847
|
</div>
|
|
803
848
|
</transition-stub>
|
|
804
849
|
<div class="v-field__append-inner">
|
|
805
|
-
<!---->
|
|
806
850
|
<i
|
|
807
851
|
aria-hidden="true"
|
|
808
852
|
class="
|
|
@@ -875,6 +919,7 @@ exports[`TableToolbar > renders correctly with no items 1`] = `
|
|
|
875
919
|
v-locale--is-ltr
|
|
876
920
|
v-theme--light
|
|
877
921
|
v-toolbar
|
|
922
|
+
v-toolbar--collapse-start
|
|
878
923
|
v-toolbar--density-default
|
|
879
924
|
v-toolbar--flat
|
|
880
925
|
"
|
|
@@ -933,11 +978,17 @@ exports[`TableToolbar > renders correctly with no items 1`] = `
|
|
|
933
978
|
>
|
|
934
979
|
<!---->
|
|
935
980
|
<div
|
|
936
|
-
class="
|
|
981
|
+
class="
|
|
982
|
+
bg-primary
|
|
983
|
+
v-progress-linear__background
|
|
984
|
+
"
|
|
937
985
|
style="opacity: NaN;"
|
|
938
986
|
></div>
|
|
939
987
|
<div
|
|
940
|
-
class="
|
|
988
|
+
class="
|
|
989
|
+
bg-primary
|
|
990
|
+
v-progress-linear__buffer
|
|
991
|
+
"
|
|
941
992
|
style="
|
|
942
993
|
opacity: NaN;
|
|
943
994
|
width: 0%;
|
|
@@ -951,10 +1002,12 @@ exports[`TableToolbar > renders correctly with no items 1`] = `
|
|
|
951
1002
|
>
|
|
952
1003
|
<div class="v-progress-linear__indeterminate">
|
|
953
1004
|
<div class="
|
|
1005
|
+
bg-primary
|
|
954
1006
|
long
|
|
955
1007
|
v-progress-linear__indeterminate
|
|
956
1008
|
"></div>
|
|
957
1009
|
<div class="
|
|
1010
|
+
bg-primary
|
|
958
1011
|
short
|
|
959
1012
|
v-progress-linear__indeterminate
|
|
960
1013
|
"></div>
|
|
@@ -970,19 +1023,22 @@ exports[`TableToolbar > renders correctly with no items 1`] = `
|
|
|
970
1023
|
>
|
|
971
1024
|
<!---->
|
|
972
1025
|
<label
|
|
1026
|
+
aria-hidden="false"
|
|
973
1027
|
class="
|
|
974
1028
|
v-field-label
|
|
975
1029
|
v-label
|
|
976
1030
|
"
|
|
977
|
-
for="input-v-
|
|
1031
|
+
for="input-v-1"
|
|
1032
|
+
id="input-v-1-label"
|
|
978
1033
|
>
|
|
979
1034
|
<!---->
|
|
980
1035
|
Rechercher
|
|
981
1036
|
</label>
|
|
982
1037
|
<!---->
|
|
983
1038
|
<input
|
|
1039
|
+
aria-labelledby="input-v-1-label"
|
|
984
1040
|
class="v-field__input"
|
|
985
|
-
id="input-v-
|
|
1041
|
+
id="input-v-1"
|
|
986
1042
|
size="1"
|
|
987
1043
|
type="text"
|
|
988
1044
|
/>
|
|
@@ -1016,7 +1072,6 @@ exports[`TableToolbar > renders correctly with no items 1`] = `
|
|
|
1016
1072
|
</div>
|
|
1017
1073
|
</transition-stub>
|
|
1018
1074
|
<div class="v-field__append-inner">
|
|
1019
|
-
<!---->
|
|
1020
1075
|
<i
|
|
1021
1076
|
aria-hidden="true"
|
|
1022
1077
|
class="
|
|
@@ -1089,6 +1144,7 @@ exports[`TableToolbar > should render 1`] = `
|
|
|
1089
1144
|
v-locale--is-ltr
|
|
1090
1145
|
v-theme--light
|
|
1091
1146
|
v-toolbar
|
|
1147
|
+
v-toolbar--collapse-start
|
|
1092
1148
|
v-toolbar--density-default
|
|
1093
1149
|
v-toolbar--flat
|
|
1094
1150
|
"
|
|
@@ -1155,11 +1211,17 @@ exports[`TableToolbar > should render 1`] = `
|
|
|
1155
1211
|
>
|
|
1156
1212
|
<!---->
|
|
1157
1213
|
<div
|
|
1158
|
-
class="
|
|
1214
|
+
class="
|
|
1215
|
+
bg-primary
|
|
1216
|
+
v-progress-linear__background
|
|
1217
|
+
"
|
|
1159
1218
|
style="opacity: NaN;"
|
|
1160
1219
|
></div>
|
|
1161
1220
|
<div
|
|
1162
|
-
class="
|
|
1221
|
+
class="
|
|
1222
|
+
bg-primary
|
|
1223
|
+
v-progress-linear__buffer
|
|
1224
|
+
"
|
|
1163
1225
|
style="
|
|
1164
1226
|
opacity: NaN;
|
|
1165
1227
|
width: 0%;
|
|
@@ -1173,10 +1235,12 @@ exports[`TableToolbar > should render 1`] = `
|
|
|
1173
1235
|
>
|
|
1174
1236
|
<div class="v-progress-linear__indeterminate">
|
|
1175
1237
|
<div class="
|
|
1238
|
+
bg-primary
|
|
1176
1239
|
long
|
|
1177
1240
|
v-progress-linear__indeterminate
|
|
1178
1241
|
"></div>
|
|
1179
1242
|
<div class="
|
|
1243
|
+
bg-primary
|
|
1180
1244
|
short
|
|
1181
1245
|
v-progress-linear__indeterminate
|
|
1182
1246
|
"></div>
|
|
@@ -1192,19 +1256,22 @@ exports[`TableToolbar > should render 1`] = `
|
|
|
1192
1256
|
>
|
|
1193
1257
|
<!---->
|
|
1194
1258
|
<label
|
|
1259
|
+
aria-hidden="false"
|
|
1195
1260
|
class="
|
|
1196
1261
|
v-field-label
|
|
1197
1262
|
v-label
|
|
1198
1263
|
"
|
|
1199
|
-
for="input-v-
|
|
1264
|
+
for="input-v-1"
|
|
1265
|
+
id="input-v-1-label"
|
|
1200
1266
|
>
|
|
1201
1267
|
<!---->
|
|
1202
1268
|
Rechercher
|
|
1203
1269
|
</label>
|
|
1204
1270
|
<!---->
|
|
1205
1271
|
<input
|
|
1272
|
+
aria-labelledby="input-v-1-label"
|
|
1206
1273
|
class="v-field__input"
|
|
1207
|
-
id="input-v-
|
|
1274
|
+
id="input-v-1"
|
|
1208
1275
|
size="1"
|
|
1209
1276
|
type="text"
|
|
1210
1277
|
/>
|
|
@@ -1238,7 +1305,6 @@ exports[`TableToolbar > should render 1`] = `
|
|
|
1238
1305
|
</div>
|
|
1239
1306
|
</transition-stub>
|
|
1240
1307
|
<div class="v-field__append-inner">
|
|
1241
|
-
<!---->
|
|
1242
1308
|
<i
|
|
1243
1309
|
aria-hidden="true"
|
|
1244
1310
|
class="
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
multiSort: false,
|
|
35
35
|
mustSort: false,
|
|
36
36
|
itemsPerPageOptions: undefined,
|
|
37
|
+
headingLevel: 2,
|
|
37
38
|
})
|
|
38
39
|
|
|
39
40
|
const options = defineModel<Partial<DataOptions>>('options', {
|
|
@@ -466,6 +467,7 @@
|
|
|
466
467
|
<SyTablePagination
|
|
467
468
|
v-if="displayedItems.length > 0 ? displayedItemsLength : 0"
|
|
468
469
|
:page="page"
|
|
470
|
+
:heading-level="props.headingLevel"
|
|
469
471
|
:items-per-page="itemsPerPageValue"
|
|
470
472
|
:page-count="pageCount"
|
|
471
473
|
:items-length="displayedItemsLength"
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
multiSort: false,
|
|
34
34
|
mustSort: false,
|
|
35
35
|
itemsPerPageOptions: undefined,
|
|
36
|
+
headingLevel: 2,
|
|
36
37
|
})
|
|
37
38
|
|
|
38
39
|
const options = defineModel<Partial<DataOptions>>('options', {
|
|
@@ -439,6 +440,7 @@
|
|
|
439
440
|
v-if="filteredItems.length > 0"
|
|
440
441
|
:page="page"
|
|
441
442
|
:items-per-page="itemsPerPageValue"
|
|
443
|
+
:heading-level="props.headingLevel"
|
|
442
444
|
:page-count="pageCount"
|
|
443
445
|
:items-length="filteredItems.length"
|
|
444
446
|
:items-per-page-options="props.itemsPerPageOptions"
|
|
@@ -4,11 +4,23 @@
|
|
|
4
4
|
import SyPagination from '@/components/Customs/SyPagination/SyPagination.vue'
|
|
5
5
|
import { locales } from './locales'
|
|
6
6
|
|
|
7
|
+
const props = withDefaults(defineProps<{
|
|
8
|
+
page: number
|
|
9
|
+
pageCount: number
|
|
10
|
+
itemsPerPage: number
|
|
11
|
+
itemsLength: number
|
|
12
|
+
itemsPerPageOptions?: number[]
|
|
13
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6
|
|
14
|
+
}>(), {
|
|
15
|
+
itemsPerPageOptions: undefined,
|
|
16
|
+
headingLevel: 2,
|
|
17
|
+
})
|
|
18
|
+
|
|
7
19
|
// Reference to the SySelect component
|
|
8
20
|
const selectRef = ref<InstanceType<typeof SySelect> | null>(null)
|
|
9
21
|
|
|
10
22
|
// Items per page options - standard options and current value
|
|
11
|
-
const
|
|
23
|
+
const formatedItemsPerPageOptions = computed(() => {
|
|
12
24
|
// Use provided itemsPerPageOptions or default standard options
|
|
13
25
|
const baseOptions = props.itemsPerPageOptions || [5, 10, 25, 50, 100]
|
|
14
26
|
// Filter out -1 from base options since we'll handle it separately
|
|
@@ -40,14 +52,6 @@
|
|
|
40
52
|
return options
|
|
41
53
|
})
|
|
42
54
|
|
|
43
|
-
const props = defineProps<{
|
|
44
|
-
page: number
|
|
45
|
-
pageCount: number
|
|
46
|
-
itemsPerPage: number
|
|
47
|
-
itemsLength: number
|
|
48
|
-
itemsPerPageOptions?: number[]
|
|
49
|
-
}>()
|
|
50
|
-
|
|
51
55
|
const emit = defineEmits<{
|
|
52
56
|
/**
|
|
53
57
|
* Emitted when the page changes
|
|
@@ -120,6 +124,7 @@
|
|
|
120
124
|
v-if="pageCount > 1"
|
|
121
125
|
:model-value="page"
|
|
122
126
|
:pages="pageCount"
|
|
127
|
+
:heading-level="headingLevel"
|
|
123
128
|
:visible="5"
|
|
124
129
|
:label="locales.pagination.paginationNavAriaLabel"
|
|
125
130
|
class="pagination"
|
|
@@ -138,10 +143,11 @@
|
|
|
138
143
|
|
|
139
144
|
<div class="rows-per-page">
|
|
140
145
|
<span class="rows-per-page-label">{{ locales.pagination.itemsPerPageText }}</span>
|
|
146
|
+
|
|
141
147
|
<SySelect
|
|
142
148
|
ref="selectRef"
|
|
143
149
|
v-model="localItemsPerPage"
|
|
144
|
-
:items="
|
|
150
|
+
:items="formatedItemsPerPageOptions"
|
|
145
151
|
hide-details
|
|
146
152
|
hide-messages
|
|
147
153
|
density="compact"
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
type: Boolean,
|
|
55
55
|
default: true,
|
|
56
56
|
},
|
|
57
|
+
headingLevel: {
|
|
58
|
+
type: Number as () => 1 | 2 | 3 | 4 | 5 | 6,
|
|
59
|
+
default: 4,
|
|
60
|
+
},
|
|
57
61
|
})
|
|
58
62
|
|
|
59
63
|
const emit = defineEmits(['update:filters'])
|
|
@@ -120,6 +124,7 @@
|
|
|
120
124
|
<DatePicker
|
|
121
125
|
v-model="modelValue"
|
|
122
126
|
:label="header.title || 'Sélectionner une date'"
|
|
127
|
+
:heading-level="headingLevel"
|
|
123
128
|
:clearable="inputConfig?.clearable ?? clearable"
|
|
124
129
|
:density="inputConfig?.density ?? density"
|
|
125
130
|
:hide-details="inputConfig?.hideDetails ?? hideDetails"
|