@cnamts/synapse 0.0.10-alpha → 0.0.12-alpha
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/design-system-v3.js +5081 -3916
- package/dist/design-system-v3.umd.cjs +1 -1
- package/dist/src/components/Amelipro/types/languages.d.ts +6 -0
- package/dist/src/components/Amelipro/types/types.d.ts +65 -0
- package/dist/src/components/BackBtn/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/BackBtn/BackBtn.d.ts +14 -0
- package/dist/src/components/BackBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/BackBtn/locales.d.ts +3 -0
- package/dist/src/components/BackBtn/tests/BackBtn.spec.d.ts +1 -0
- package/dist/src/components/BackToTopBtn/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/BackToTopBtn/BackToTopBtn.d.ts +23 -0
- package/dist/src/components/BackToTopBtn/config.d.ts +12 -0
- package/dist/src/components/BackToTopBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/BackToTopBtn/locales.d.ts +3 -0
- package/dist/src/components/BackToTopBtn/tests/BackToTopBtn.spec.d.ts +1 -0
- package/dist/src/components/ChipList/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/ChipList/ChipList.d.ts +47 -0
- package/dist/src/components/ChipList/config.d.ts +8 -0
- package/dist/src/components/ChipList/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/ChipList/locales.d.ts +6 -0
- package/dist/src/components/ChipList/tests/chipList.spec.d.ts +1 -0
- package/dist/src/components/ChipList/types.d.ts +6 -0
- package/dist/src/components/CollapsibleList/AccessibiliteItems.d.ts +46 -0
- package/dist/src/components/CollapsibleList/CollapsibleList.d.ts +7 -0
- package/dist/src/components/CollapsibleList/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/CollapsibleList/tests/CollapsibleList.spec.d.ts +1 -0
- package/dist/src/components/CollapsibleList/types.d.ts +5 -0
- package/dist/src/components/ContextualMenu/AccessibiliteItems.d.ts +46 -0
- package/dist/src/components/ContextualMenu/ContextualMenu.d.ts +13 -0
- package/dist/src/components/ContextualMenu/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/ContextualMenu/tests/ContextualMenu.spec.d.ts +1 -0
- package/dist/src/components/ContextualMenu/types.d.ts +5 -0
- package/dist/src/components/CookieBanner/AccessibiliteItems.d.ts +79 -0
- package/dist/src/components/CookieBanner/CookieBanner.d.ts +28 -0
- package/dist/src/components/CookieBanner/config.d.ts +40 -0
- package/dist/src/components/CookieBanner/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/CookieBanner/locales.d.ts +11 -0
- package/dist/src/components/CookieBanner/tests/CookieBanner.spec.d.ts +1 -0
- package/dist/src/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +19 -0
- package/dist/src/components/CookiesSelection/CookiesInformation/locales.d.ts +19 -0
- package/dist/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.d.ts +1 -0
- package/dist/src/components/CookiesSelection/CookiesTable/CookiesTable.d.ts +13 -0
- package/dist/src/components/CookiesSelection/CookiesTable/headers.d.ts +10 -0
- package/dist/src/components/CookiesSelection/CookiesTable/tests/CookiesTable.spec.d.ts +1 -0
- package/dist/src/components/CookiesSelection/locales.d.ts +8 -0
- package/dist/src/components/CookiesSelection/tests/CookiesSelection.spec.d.ts +1 -0
- package/dist/src/components/CookiesSelection/types.d.ts +12 -0
- package/dist/src/components/CopyBtn/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/CopyBtn/CopyBtn.d.ts +28 -0
- package/dist/src/components/CopyBtn/config.d.ts +17 -0
- package/dist/src/components/CopyBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/CopyBtn/locales.d.ts +3 -0
- package/dist/src/components/CopyBtn/tests/CopyBtn.spec.d.ts +1 -0
- package/dist/src/components/Customs/SyBtnSelect/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/Customs/SyBtnSelect/SyBtnSelect.d.ts +164 -0
- package/dist/src/components/Customs/SyBtnSelect/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/Customs/SyBtnSelect/tests/SyBtnSelect.spec.d.ts +1 -0
- package/dist/src/components/Customs/SyInputSelect/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/Customs/SyInputSelect/SyInputSelect.d.ts +38 -0
- package/dist/src/components/Customs/SyInputSelect/config.d.ts +9 -0
- package/dist/src/components/Customs/SyInputSelect/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/Customs/SyInputSelect/tests/SyInputSelect.spec.d.ts +1 -0
- package/dist/src/components/Customs/SySelect/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/Customs/SySelect/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/Customs/SySelect/tests/SySelect.spec.d.ts +1 -0
- package/dist/src/components/Customs/SyTextField/AccessibiliteItems.d.ts +70 -0
- package/dist/src/components/Customs/SyTextField/SyTextField.d.ts +166 -0
- package/dist/src/components/Customs/SyTextField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/Customs/SyTextField/tests/SyTextField.spec.d.ts +1 -0
- package/dist/src/components/Customs/SyTextField/types.d.ts +4 -0
- package/dist/src/components/DataList/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/DataList/DataList.d.ts +134 -0
- package/dist/src/components/DataList/DataListLoading/DataListLoading.d.ts +32 -0
- package/dist/src/components/DataList/DataListLoading/tests/DataListLoading.spec.d.ts +1 -0
- package/dist/src/components/DataList/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/DataList/locales.d.ts +3 -0
- package/dist/src/components/DataList/tests/DataList.spec.d.ts +1 -0
- package/dist/src/components/DataList/types.d.ts +22 -0
- package/dist/src/components/DataListGroup/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/DataListGroup/DataListGroup.d.ts +56 -0
- package/dist/src/components/DataListGroup/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/DataListGroup/tests/DataListGroup.spec.d.ts +1 -0
- package/dist/src/components/DataListGroup/tests/data/dataListGroupItems.d.ts +5 -0
- package/dist/src/components/DataListGroup/types.d.ts +14 -0
- package/dist/src/components/DataListItem/DataListItem.d.ts +37 -0
- package/dist/src/components/DataListItem/config.d.ts +16 -0
- package/dist/src/components/DataListItem/locales.d.ts +3 -0
- package/dist/src/components/DataListItem/tests/DataListItem.spec.d.ts +1 -0
- package/dist/src/components/DataListItem/types.d.ts +22 -0
- package/dist/src/components/DatePicker/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +605 -0
- package/dist/src/components/DatePicker/DateTextInput.d.ts +473 -0
- package/dist/src/components/DatePicker/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/DatePicker/tests/DatePicker.spec.d.ts +1 -0
- package/dist/src/components/DatePicker/tests/DateTextInput.spec.d.ts +1 -0
- package/dist/src/components/DialogBox/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/DialogBox/config.d.ts +25 -0
- package/dist/src/components/DialogBox/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/DialogBox/locales.d.ts +5 -0
- package/dist/src/components/DialogBox/tests/DialogBox.spec.d.ts +1 -0
- package/dist/src/components/DownloadBtn/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/DownloadBtn/DownloadBtn.d.ts +39 -0
- package/dist/src/components/DownloadBtn/config.d.ts +13 -0
- package/dist/src/components/DownloadBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/DownloadBtn/tests/DownloadBtn.spec.d.ts +1 -0
- package/dist/src/components/DownloadBtn/tests/data/filePromise.d.ts +5 -0
- package/dist/src/components/ErrorPage/AccessibiliteItems.d.ts +65 -0
- package/dist/src/components/ErrorPage/ErrorPage.d.ts +31 -0
- package/dist/src/components/ErrorPage/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/ErrorPage/locales.d.ts +5 -0
- package/dist/src/components/ErrorPage/tests/ErrorPage.spec.d.ts +1 -0
- package/dist/src/components/ExternalLinks/AccessibiliteItems.d.ts +55 -0
- package/dist/src/components/ExternalLinks/ExternalLinks.d.ts +31 -0
- package/dist/src/components/ExternalLinks/config.d.ts +32 -0
- package/dist/src/components/ExternalLinks/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/ExternalLinks/locales.d.ts +4 -0
- package/dist/src/components/ExternalLinks/tests/ExternalLinks.spec.d.ts +1 -0
- package/dist/src/components/FileList/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/FileList/FileList.d.ts +45 -0
- package/dist/src/components/FileList/UploadItem/UploadItem.d.ts +58 -0
- package/dist/src/components/FileList/UploadItem/locales.d.ts +9 -0
- package/dist/src/components/FileList/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FileList/tests/FileList.spec.d.ts +1 -0
- package/dist/src/components/FilePreview/AccessibiliteItems.d.ts +16 -0
- package/dist/src/components/FilePreview/FilePreview.d.ts +28 -0
- package/dist/src/components/FilePreview/config.d.ts +9 -0
- package/dist/src/components/FilePreview/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FilePreview/locales.d.ts +4 -0
- package/dist/src/components/FilePreview/tests/FilePreview.spec.d.ts +1 -0
- package/dist/src/components/FileUpload/AccessibiliteItems.d.ts +16 -0
- package/dist/src/components/FileUpload/FileUpload.d.ts +49 -0
- package/dist/src/components/FileUpload/FileUploadContent.d.ts +20 -0
- package/dist/src/components/FileUpload/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FileUpload/locales.d.ts +9 -0
- package/dist/src/components/FileUpload/tests/FileUpload.spec.d.ts +1 -0
- package/dist/src/components/FileUpload/useFileDrop.d.ts +2 -0
- package/dist/src/components/FileUpload/validateFiles.d.ts +4 -0
- package/dist/src/components/FilterInline/FilterInline.d.ts +28 -0
- package/dist/src/components/FilterInline/locales.d.ts +3 -0
- package/dist/src/components/FilterInline/tests/FilterInline.spec.d.ts +1 -0
- package/dist/src/components/FilterSideBar/FilterSideBar.d.ts +31 -0
- package/dist/src/components/FilterSideBar/locales.d.ts +7 -0
- package/dist/src/components/FilterSideBar/tests/FilterSideBar.spec.d.ts +1 -0
- package/dist/src/components/FooterBar/A11yCompliance.d.ts +3 -0
- package/dist/src/components/FooterBar/AccessibiliteItems.d.ts +110 -0
- package/dist/src/components/FooterBar/FooterBar.d.ts +57 -0
- package/dist/src/components/FooterBar/config.d.ts +18 -0
- package/dist/src/components/FooterBar/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FooterBar/defaultSocialMediaLinks.d.ts +2 -0
- package/dist/src/components/FooterBar/locales.d.ts +11 -0
- package/dist/src/components/FooterBar/tests/FooterBar.spec.d.ts +1 -0
- package/dist/src/components/FooterBar/tests/FooterBarConfig.spec.d.ts +1 -0
- package/dist/src/components/FooterBar/types.d.ts +9 -0
- package/dist/src/components/FranceConnectBtn/AccessibiliteItems.d.ts +45 -0
- package/dist/src/components/FranceConnectBtn/FranceConnectBtn.d.ts +10 -0
- package/dist/src/components/FranceConnectBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FranceConnectBtn/locales.d.ts +4 -0
- package/dist/src/components/FranceConnectBtn/tests/FranceConnectBtn.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/AccessibiliteItems.d.ts +91 -0
- package/dist/src/components/HeaderBar/HeaderBar.d.ts +67 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/AccessibiliteItems.d.ts +77 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.d.ts +67 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.d.ts +9 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/tests/HeaderMenuItem.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.d.ts +13 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/tests/HeaderMenuSection.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.d.ts +10 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/tests/HeaderSubMenu.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/conts.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/locals.d.ts +5 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/tests/useHandleSubMenus.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderBurgerMenu/useHandleSubMenus.d.ts +4 -0
- package/dist/src/components/HeaderBar/HeaderLogo/HeaderLogo.d.ts +31 -0
- package/dist/src/components/HeaderBar/HeaderLogo/locales.d.ts +3 -0
- package/dist/src/components/HeaderBar/HeaderLogo/logos/Logo-mobile.d.ts +2 -0
- package/dist/src/components/HeaderBar/HeaderLogo/logos/Logo.d.ts +2 -0
- package/dist/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.d.ts +14 -0
- package/dist/src/components/HeaderBar/HeaderMenuBtn/locals.d.ts +5 -0
- package/dist/src/components/HeaderBar/HeaderMenuBtn/tests/HeaderMenuBtn.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/HeaderBar/consts.d.ts +2 -0
- package/dist/src/components/HeaderBar/locales.d.ts +3 -0
- package/dist/src/components/HeaderBar/tests/HeaderBar.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/tests/useHeaderResponsiveMode.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/tests/useScrollDirection.spec.d.ts +1 -0
- package/dist/src/components/HeaderBar/useHeaderResponsiveMode.d.ts +3 -0
- package/dist/src/components/HeaderBar/useScrollDirection.d.ts +3 -0
- package/dist/src/components/HeaderLoading/AccessibiliteItems.d.ts +16 -0
- package/dist/src/components/HeaderLoading/HeaderLoading.d.ts +23 -0
- package/dist/src/components/HeaderLoading/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/HeaderLoading/tests/HeaderLoading.spec.d.ts +1 -0
- package/dist/src/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +84 -0
- package/dist/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.d.ts +20 -0
- package/dist/src/components/HeaderNavigationBar/HorizontalNavbar/config.d.ts +16 -0
- package/dist/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.d.ts +1 -0
- package/dist/src/components/HeaderNavigationBar/types.d.ts +6 -0
- package/dist/src/components/HeaderToolbar/AccessibiliteItems.d.ts +46 -0
- package/dist/src/components/HeaderToolbar/HeaderToolbar.d.ts +103 -0
- package/dist/src/components/HeaderToolbar/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/HeaderToolbar/tests/HeaderToolbar.spec.d.ts +1 -0
- package/dist/src/components/HeaderToolbar/types.d.ts +19 -0
- package/dist/src/components/LangBtn/AccessibiliteItems.d.ts +16 -0
- package/dist/src/components/LangBtn/LangBtn.d.ts +31 -0
- package/dist/src/components/LangBtn/config.d.ts +15 -0
- package/dist/src/components/LangBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/LangBtn/locales.d.ts +3 -0
- package/dist/src/components/LangBtn/tests/Config.spec.d.ts +1 -0
- package/dist/src/components/LangBtn/tests/LangBtn.spec.d.ts +1 -0
- package/dist/src/components/LangBtn/types.d.ts +7 -0
- package/dist/src/components/Logo/AccessibiliteItems.d.ts +65 -0
- package/dist/src/components/Logo/Logo.d.ts +71 -0
- package/dist/src/components/Logo/LogoSize.d.ts +6 -0
- package/dist/src/components/Logo/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/Logo/locales.d.ts +6 -0
- package/dist/src/components/Logo/logoDimensionsMapping.d.ts +3 -0
- package/dist/src/components/Logo/tests/Logo.spec.d.ts +1 -0
- package/dist/src/components/Logo/types.d.ts +7 -0
- package/dist/src/components/LogoBrandSection/AccessibiliteItems.d.ts +91 -0
- package/dist/src/components/LogoBrandSection/LogoBrandSection.d.ts +38 -0
- package/dist/src/components/LogoBrandSection/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/LogoBrandSection/dividerDimensionsMapping.d.ts +14 -0
- package/dist/src/components/LogoBrandSection/locales.d.ts +14 -0
- package/dist/src/components/LogoBrandSection/secondaryLogoMapping.d.ts +18 -0
- package/dist/src/components/LogoBrandSection/tests/LogoBrandSection.spec.d.ts +1 -0
- package/dist/src/components/LogoBrandSection/types.d.ts +1 -0
- package/dist/src/components/MaintenancePage/AccessibiliteItems.d.ts +65 -0
- package/dist/src/components/MaintenancePage/MaintenancePage.d.ts +2 -0
- package/dist/src/components/MaintenancePage/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/MaintenancePage/index.d.ts +2 -0
- package/dist/src/components/MaintenancePage/locales.d.ts +4 -0
- package/dist/src/components/MaintenancePage/tests/MaintenancePage.spec.d.ts +1 -0
- package/dist/src/components/NirField/AccessibiliteItems.d.ts +79 -0
- package/dist/src/components/NirField/NirField.d.ts +940 -0
- package/dist/src/components/NirField/config.d.ts +15 -0
- package/dist/src/components/NirField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/NirField/locales.d.ts +12 -0
- package/dist/src/components/NirField/nirValidation.d.ts +5 -0
- package/dist/src/components/NirField/tests/NirField.spec.d.ts +1 -0
- package/dist/src/components/NotFoundPage/AccessibiliteItems.d.ts +65 -0
- package/dist/src/components/NotFoundPage/NotFoundPage.d.ts +14 -0
- package/dist/src/components/NotFoundPage/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/NotFoundPage/locales.d.ts +6 -0
- package/dist/src/components/NotFoundPage/tests/NotFoundPage.spec.d.ts +1 -0
- package/dist/src/components/NotificationBar/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/NotificationBar/NotificationBar.d.ts +37 -0
- package/dist/src/components/NotificationBar/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/NotificationBar/options.d.ts +13 -0
- package/dist/src/components/NotificationBar/tests/NotificationBar.spec.d.ts +1 -0
- package/dist/src/components/NotificationBar/types.d.ts +7 -0
- package/dist/src/components/PageContainer/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/PageContainer/PageContainer.d.ts +21 -0
- package/dist/src/components/PageContainer/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/PageContainer/tests/PageContainer.spec.d.ts +1 -0
- package/dist/src/components/PaginatedTable/AccessibiliteItems.d.ts +97 -0
- package/dist/src/components/PaginatedTable/PaginatedTable.d.ts +57 -0
- package/dist/src/components/PaginatedTable/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/PaginatedTable/constants/StateEnum.d.ts +6 -0
- package/dist/src/components/PaginatedTable/tests/PaginatedTable.spec.d.ts +1 -0
- package/dist/src/components/PaginatedTable/types.d.ts +26 -0
- package/dist/src/components/PasswordField/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/PasswordField/PasswordField.d.ts +57 -0
- package/dist/src/components/PasswordField/config.d.ts +9 -0
- package/dist/src/components/PasswordField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/PasswordField/locales.d.ts +4 -0
- package/dist/src/components/PasswordField/tests/PasswordField.spec.d.ts +1 -0
- package/dist/src/components/PeriodField/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/PeriodField/PeriodField.d.ts +1403 -0
- package/dist/src/components/PeriodField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/PeriodField/tests/PeriodField.spec.d.ts +1 -0
- package/dist/src/components/PhoneField/AccessibiliteItems.d.ts +94 -0
- package/dist/src/components/PhoneField/PhoneField.d.ts +138 -0
- package/dist/src/components/PhoneField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/PhoneField/indicatifs.d.ts +7 -0
- package/dist/src/components/PhoneField/locales.d.ts +4 -0
- package/dist/src/components/PhoneField/tests/PhoneField.spec.d.ts +1 -0
- package/dist/src/components/RangeField/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/RangeField/RangeField.d.ts +19 -0
- package/dist/src/components/RangeField/RangeSlider/RangeSlider.d.ts +286 -0
- package/dist/src/components/RangeField/RangeSlider/Tooltip/Tooltip.d.ts +20 -0
- package/dist/src/components/RangeField/RangeSlider/tests/rangeSlider.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/useDoubleSlider.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/useMouseSlide.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/useThumb.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/useThumbKeyboard.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/useTooltipsNudge.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/useTrack.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/tests/vAnimateClick.spec.d.ts +1 -0
- package/dist/src/components/RangeField/RangeSlider/types.d.ts +13 -0
- package/dist/src/components/RangeField/RangeSlider/useMouseSlide.d.ts +18 -0
- package/dist/src/components/RangeField/RangeSlider/useRangeSlider.d.ts +17 -0
- package/dist/src/components/RangeField/RangeSlider/useThumb.d.ts +6 -0
- package/dist/src/components/RangeField/RangeSlider/useThumbKeyboard.d.ts +12 -0
- package/dist/src/components/RangeField/RangeSlider/useTooltipsNudge.d.ts +16 -0
- package/dist/src/components/RangeField/RangeSlider/useTrack.d.ts +13 -0
- package/dist/src/components/RangeField/RangeSlider/vAnimateClick.d.ts +3 -0
- package/dist/src/components/RangeField/config.d.ts +6 -0
- package/dist/src/components/RangeField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/RangeField/locales.d.ts +4 -0
- package/dist/src/components/RangeField/tests/RangeField.spec.d.ts +1 -0
- package/dist/src/components/RatingPicker/AccessibiliteItems.d.ts +80 -0
- package/dist/src/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +65 -0
- package/dist/src/components/RatingPicker/EmotionPicker/locales.d.ts +3 -0
- package/dist/src/components/RatingPicker/EmotionPicker/tests/EmotionPicker.spec.d.ts +1 -0
- package/dist/src/components/RatingPicker/NumberPicker/NumberPicker.d.ts +64 -0
- package/dist/src/components/RatingPicker/NumberPicker/locales.d.ts +3 -0
- package/dist/src/components/RatingPicker/NumberPicker/tests/NumberPicker.spec.d.ts +1 -0
- package/dist/src/components/RatingPicker/Rating.d.ts +25 -0
- package/dist/src/components/RatingPicker/RatingPicker.d.ts +82 -0
- package/dist/src/components/RatingPicker/StarsPicker/StarsPicker.d.ts +54 -0
- package/dist/src/components/RatingPicker/StarsPicker/tests/StarsPicker.spec.d.ts +1 -0
- package/dist/src/components/RatingPicker/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/RatingPicker/locales.d.ts +3 -0
- package/dist/src/components/RatingPicker/tests/Rating.spec.d.ts +1 -0
- package/dist/src/components/RatingPicker/tests/RatingPicker.spec.d.ts +1 -0
- package/dist/src/components/SearchListField/AccessibiliteItems.d.ts +90 -0
- package/dist/src/components/SearchListField/SearchListField.d.ts +42 -0
- package/dist/src/components/SearchListField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/SearchListField/locales.d.ts +5 -0
- package/dist/src/components/SearchListField/tests/SearchListField.spec.d.ts +1 -0
- package/dist/src/components/SearchListField/types.d.ts +4 -0
- package/dist/src/components/SelectBtnField/AccessibiliteItems.d.ts +79 -0
- package/dist/src/components/SelectBtnField/SelectBtnField.d.ts +33 -0
- package/dist/src/components/SelectBtnField/config.d.ts +11 -0
- package/dist/src/components/SelectBtnField/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/SelectBtnField/tests/SelectBtnField.spec.d.ts +1 -0
- package/dist/src/components/SelectBtnField/types.d.ts +11 -0
- package/dist/src/components/SkipLink/AccessibiliteItems.d.ts +16 -0
- package/dist/src/components/SkipLink/SkipLink.d.ts +18 -0
- package/dist/src/components/SkipLink/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/SkipLink/locales.d.ts +3 -0
- package/dist/src/components/SkipLink/tests/skipLink.spec.d.ts +1 -0
- package/dist/src/components/SocialMediaLinks/AccessibiliteItems.d.ts +46 -0
- package/dist/src/components/SocialMediaLinks/DefaultSocialMediaLinks.d.ts +2 -0
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +16 -0
- package/dist/src/components/SocialMediaLinks/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/SocialMediaLinks/locales.d.ts +3 -0
- package/dist/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.d.ts +1 -0
- package/dist/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.d.ts +1 -0
- package/dist/src/components/SocialMediaLinks/types.d.ts +5 -0
- package/dist/src/components/SubHeader/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/SubHeader/SubHeader.d.ts +40 -0
- package/dist/src/components/SubHeader/config.d.ts +11 -0
- package/dist/src/components/SubHeader/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/SubHeader/locales.d.ts +3 -0
- package/dist/src/components/SubHeader/tests/SubHeader.spec.d.ts +1 -0
- package/dist/src/components/SyAlert/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/SyAlert/SyAlert.d.ts +32 -0
- package/dist/src/components/SyAlert/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/SyAlert/locales.d.ts +3 -0
- package/dist/src/components/SyAlert/tests/SyAlert.spec.d.ts +1 -0
- package/dist/src/components/TableToolbar/AccessibiliteItems.d.ts +71 -0
- package/dist/src/components/TableToolbar/TableToolbar.d.ts +40 -0
- package/dist/src/components/TableToolbar/config.d.ts +24 -0
- package/dist/src/components/TableToolbar/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/TableToolbar/locales.d.ts +5 -0
- package/dist/src/components/TableToolbar/tests/TableToolbar.spec.d.ts +1 -0
- package/dist/src/components/UploadWorkflow/config.d.ts +29 -0
- package/dist/src/components/UploadWorkflow/locales.d.ts +7 -0
- package/dist/src/components/UploadWorkflow/tests/UploadWorkflow.spec.d.ts +1 -0
- package/dist/src/components/UploadWorkflow/types.d.ts +19 -0
- package/dist/src/components/UploadWorkflow/useFileList.d.ts +10 -0
- package/dist/src/components/UploadWorkflow/useFileUploadJourney.d.ts +9 -0
- package/dist/src/components/UserMenuBtn/AccessibiliteItems.d.ts +54 -0
- package/dist/src/components/UserMenuBtn/UserMenuBtn.d.ts +32 -0
- package/dist/src/components/UserMenuBtn/config.d.ts +24 -0
- package/dist/src/components/UserMenuBtn/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/UserMenuBtn/tests/UserMenuBtn.spec.d.ts +1 -0
- package/dist/src/components/index.d.ts +65 -0
- package/dist/src/composables/index.d.ts +3 -0
- package/dist/src/composables/rules/tests/useFieldValidation.spec.d.ts +1 -0
- package/dist/src/composables/rules/useFieldValidation.d.ts +28 -0
- package/dist/src/composables/useCustomizableOptions.d.ts +13 -0
- package/dist/src/composables/useFilterable/useFilterable.d.ts +32 -0
- package/dist/src/composables/useFilterable/useFilterable.spec.d.ts +1 -0
- package/dist/src/composables/validation/tests/useValidation.spec.d.ts +1 -0
- package/dist/src/composables/validation/useValidation.d.ts +39 -0
- package/dist/src/composables/widthable/index.d.ts +13 -0
- package/dist/src/composables/widthable/tests/widthable.spec.d.ts +1 -0
- package/dist/src/constants/icons.d.ts +3 -0
- package/dist/src/designTokens/index.d.ts +11 -0
- package/dist/src/designTokens/tokens/cnam/cnamColors.d.ts +171 -0
- package/dist/src/designTokens/tokens/cnam/cnamContextual.d.ts +58 -0
- package/dist/src/designTokens/tokens/cnam/cnamDarkTheme.d.ts +3 -0
- package/dist/src/designTokens/tokens/cnam/cnamLightTheme.d.ts +90 -0
- package/dist/src/designTokens/tokens/cnam/cnamSemantic.d.ts +87 -0
- package/dist/src/designTokens/tokens/pa/paColors.d.ts +171 -0
- package/dist/src/designTokens/tokens/pa/paContextual.d.ts +58 -0
- package/dist/src/designTokens/tokens/pa/paDarkTheme.d.ts +3 -0
- package/dist/src/designTokens/tokens/pa/paLightTheme.d.ts +120 -0
- package/dist/src/designTokens/tokens/pa/paSemantic.d.ts +87 -0
- package/dist/src/designTokens/utils/convertGaps.d.ts +5 -0
- package/dist/src/designTokens/utils/convertSemanticsToken.d.ts +12 -0
- package/dist/src/designTokens/utils/createFlattenTheme.d.ts +7 -0
- package/dist/src/designTokens/utils/index.d.ts +3 -0
- package/dist/src/directives/clickOutside.d.ts +1 -0
- package/dist/src/main.d.ts +3 -0
- package/dist/src/modules.d.ts +4 -0
- package/dist/src/services/NotificationService.d.ts +19 -0
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/stories/Accessibilite/Vuetify/VuetifyItems.d.ts +58 -0
- package/dist/src/stories/EcoConception/ecoDesignItems.d.ts +4 -0
- package/dist/src/types/vuetifyTypes.d.ts +3 -0
- package/dist/src/utils/calcHumanFileSize/index.d.ts +2 -0
- package/dist/src/utils/calcHumanFileSize/tests/calcHumanFileSize.spec.d.ts +1 -0
- package/dist/src/utils/convertToUnit/index.d.ts +2 -0
- package/dist/src/utils/convertToUnit/test/convertToUnit.spec.d.ts +1 -0
- package/dist/src/utils/functions/copyToClipboard/index.d.ts +2 -0
- package/dist/src/utils/functions/copyToClipboard/tests/copyToClipboard.spec.d.ts +1 -0
- package/dist/src/utils/functions/deepCopy/index.d.ts +4 -0
- package/dist/src/utils/functions/deepCopy/tests/deepCopy.spec.d.ts +1 -0
- package/dist/src/utils/functions/downloadFile/index.d.ts +3 -0
- package/dist/src/utils/functions/downloadFile/tests/downloadFile.spec.d.ts +1 -0
- package/dist/src/utils/functions/downloadFile/types.d.ts +1 -0
- package/dist/src/utils/functions/isEmailValid/index.d.ts +4 -0
- package/dist/src/utils/functions/isEmailValid/tests/isEmailValid.spec.d.ts +1 -0
- package/dist/src/utils/functions/throttleDisplayFn/tests/throttleDisplayFn.spec.d.ts +1 -0
- package/dist/src/utils/functions/throttleDisplayFn/throttleDisplayFn.d.ts +4 -0
- package/dist/src/utils/localStorageUtility/index.d.ts +28 -0
- package/dist/src/utils/localStorageUtility/tests/localStorageUtility.spec.d.ts +1 -0
- package/dist/src/utils/propValidator/index.d.ts +2 -0
- package/dist/src/utils/propValidator/tests/propValidator.spec.d.ts +1 -0
- package/dist/src/utils/ruleMessage/index.d.ts +3 -0
- package/dist/src/utils/ruleMessage/tests/ruleMessages.spec.d.ts +1 -0
- package/dist/src/utils/rules/email/index.d.ts +4 -0
- package/dist/src/utils/rules/email/locales.d.ts +2 -0
- package/dist/src/utils/rules/email/tests/email.spec.d.ts +1 -0
- package/dist/src/utils/rules/exactLength/index.d.ts +4 -0
- package/dist/src/utils/rules/exactLength/locales.d.ts +2 -0
- package/dist/src/utils/rules/required/index.d.ts +4 -0
- package/dist/src/utils/rules/required/locales.d.ts +2 -0
- package/dist/src/utils/rules/required/ruleMessageHelper.d.ts +3 -0
- package/dist/src/utils/rules/required/tests/index.spec.d.ts +1 -0
- package/dist/src/utils/rules/required/tests/rulesMessageHelper.spec.d.ts +1 -0
- package/dist/src/utils/rules/types.d.ts +15 -0
- package/dist/src/vuetifyConfig.d.ts +81 -0
- package/dist/style.css +1 -1
- package/package.json +23 -21
- package/src/assets/_elevations.scss +89 -0
- package/src/assets/_fonts.scss +6 -0
- package/src/assets/_radius.scss +86 -0
- package/src/assets/_spacers.scss +149 -0
- package/src/assets/settings.scss +18 -3
- package/src/assets/tokens.scss +32 -29
- package/src/components/Amelipro/types/languages.d.ts +6 -0
- package/src/components/Amelipro/types/types.d.ts +65 -0
- package/src/components/BackBtn/Usages.mdx +9 -0
- package/src/components/BackBtn/Usages.stories.ts +37 -0
- package/src/components/BackToTopBtn/Usages.mdx +9 -0
- package/src/components/BackToTopBtn/Usages.stories.ts +41 -0
- package/src/components/ChipList/Accessibilite.mdx +14 -0
- package/src/components/ChipList/Accessibilite.stories.ts +216 -0
- package/src/components/ChipList/AccessibiliteItems.ts +119 -0
- package/src/components/ChipList/ChipList.mdx +59 -0
- package/src/components/ChipList/ChipList.stories.ts +1257 -0
- package/src/components/ChipList/ChipList.vue +246 -0
- package/src/components/ChipList/config.ts +27 -0
- package/src/{stories/Guidelines/Accessibilite → components/ChipList}/constants/ExpertiseLevelEnum.ts +0 -1
- package/src/components/ChipList/locales.ts +6 -0
- package/src/components/ChipList/tests/chipList.spec.ts +300 -0
- package/src/components/ChipList/types.ts +7 -0
- package/src/components/ContextualMenu/Usages.mdx +9 -0
- package/src/components/ContextualMenu/Usages.stories.ts +38 -0
- package/src/components/CopyBtn/Usages.mdx +9 -0
- package/src/components/CopyBtn/Usages.stories.ts +41 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +65 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +13 -3
- package/src/components/Customs/SySelect/SySelect.stories.ts +88 -5
- package/src/components/Customs/SySelect/SySelect.vue +40 -11
- package/src/components/Customs/SySelect/Usages.mdx +9 -0
- package/src/components/Customs/SySelect/Usages.stories.ts +41 -0
- package/src/components/Customs/SySelect/tests/SySelect.spec.ts +135 -2
- package/src/components/Customs/SyTextField/SyTextField.mdx +21 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +906 -244
- package/src/components/Customs/SyTextField/SyTextField.vue +259 -33
- package/src/components/Customs/SyTextField/Usages.mdx +9 -0
- package/src/components/Customs/SyTextField/Usages.stories.ts +41 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +193 -40
- package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +23 -25
- package/src/components/Customs/SyTextField/types.d.ts +1 -0
- package/src/components/DatePicker/DatePicker.mdx +37 -1
- package/src/components/DatePicker/DatePicker.stories.ts +374 -5
- package/src/components/DatePicker/DatePicker.vue +506 -166
- package/src/components/DatePicker/DateTextInput.vue +581 -289
- package/src/components/DatePicker/Usages.mdx +9 -0
- package/src/components/DatePicker/Usages.stories.ts +43 -0
- package/src/components/DatePicker/tests/DatePicker.spec.ts +13 -20
- package/src/components/DatePicker/tests/DateTextInput.spec.ts +282 -0
- package/src/components/DialogBox/DialogBox.mdx +1 -1
- package/src/components/DialogBox/Usages.mdx +9 -0
- package/src/components/DialogBox/Usages.stories.ts +45 -0
- package/src/components/ErrorPage/ErrorPage.mdx +1 -1
- package/src/components/ExternalLinks/Usages.mdx +9 -0
- package/src/components/ExternalLinks/Usages.stories.ts +40 -0
- package/src/components/FileList/Accessibilite.mdx +14 -0
- package/src/components/FileList/Accessibilite.stories.ts +216 -0
- package/src/components/FileList/AccessibiliteItems.ts +110 -0
- package/src/components/FileList/FileList.vue +2 -1
- package/src/components/FileList/UploadItem/UploadItem.vue +10 -0
- package/src/components/FileList/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FilePreview/Accessibilite.mdx +14 -0
- package/src/components/FilePreview/Accessibilite.stories.ts +216 -0
- package/src/components/FilePreview/AccessibiliteItems.ts +27 -0
- package/src/components/FilePreview/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FileUpload/Accessibilite.mdx +14 -0
- package/src/components/FileUpload/Accessibilite.stories.ts +216 -0
- package/src/components/FileUpload/AccessibiliteItems.ts +27 -0
- package/src/components/FileUpload/FileUpload.stories.ts +84 -0
- package/src/components/FileUpload/FileUpload.vue +1 -0
- package/src/components/FileUpload/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FileUpload/tests/FileUpload.spec.ts +4 -4
- package/src/components/FilterInline/FilterInline.mdx +237 -0
- package/src/components/FilterInline/FilterInline.stories.ts +763 -0
- package/src/components/FilterInline/FilterInline.vue +108 -0
- package/src/components/FilterInline/locales.ts +4 -0
- package/src/components/FilterInline/tests/FilterInline.spec.ts +68 -0
- package/src/components/FilterInline/tests/__snapshots__/FilterInline.spec.ts.snap +38 -0
- package/src/components/FilterSideBar/FilterSideBar.mdx +237 -0
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +798 -0
- package/src/components/FilterSideBar/FilterSideBar.vue +193 -0
- package/src/components/FilterSideBar/locales.ts +8 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +305 -0
- package/src/components/FilterSideBar/tests/__snapshots__/FilterSideBar.spec.ts.snap +39 -0
- package/src/components/HeaderBar/Usages.mdx +7 -2
- package/src/components/HeaderBar/Usages.stories.ts +39 -0
- package/src/components/NirField/NirField.stories.ts +574 -30
- package/src/components/NirField/NirField.vue +400 -356
- package/src/components/NirField/Usages.mdx +9 -0
- package/src/components/NirField/Usages.stories.ts +42 -0
- package/src/components/NirField/tests/NirField.spec.ts +88 -52
- package/src/components/NirField/tests//342/200/257dataset/342/200/257.md +12 -0
- package/src/components/NotificationBar/Accessibilite.stories.ts +4 -0
- package/src/components/NotificationBar/NotificationBar.stories.ts +18 -13
- package/src/components/NotificationBar/Usages.mdx +9 -0
- package/src/components/NotificationBar/Usages.stories.ts +41 -0
- package/src/components/PaginatedTable/Accessibilite.mdx +14 -0
- package/src/components/PaginatedTable/Accessibilite.stories.ts +216 -0
- package/src/components/PaginatedTable/AccessibiliteItems.ts +352 -0
- package/src/components/PaginatedTable/PaginatedTable.mdx +54 -0
- package/src/components/PaginatedTable/PaginatedTable.stories.ts +591 -0
- package/src/components/PaginatedTable/PaginatedTable.vue +243 -0
- package/src/components/PaginatedTable/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/PaginatedTable/constants/StateEnum.ts +6 -0
- package/src/components/PaginatedTable/tests/PaginatedTable.spec.ts +257 -0
- package/src/components/PaginatedTable/tests/__snapshots__/PaginatedTable.spec.ts.snap +249 -0
- package/src/components/PaginatedTable/types.ts +30 -0
- package/src/components/PasswordField/PasswordField.mdx +129 -47
- package/src/components/PasswordField/PasswordField.stories.ts +924 -120
- package/src/components/PasswordField/PasswordField.vue +209 -99
- package/src/components/PasswordField/tests/PasswordField.spec.ts +138 -9
- package/src/components/PeriodField/Accessibilite.mdx +14 -0
- package/src/components/PeriodField/Accessibilite.stories.ts +216 -0
- package/src/components/PeriodField/AccessibiliteItems.ts +269 -0
- package/src/components/PeriodField/PeriodField.vue +64 -78
- package/src/components/PeriodField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/PeriodField/tests/PeriodField.spec.ts +11 -19
- package/src/components/PhoneField/PhoneField.mdx +1 -1
- package/src/components/PhoneField/PhoneField.stories.ts +69 -0
- package/src/components/PhoneField/PhoneField.vue +3 -0
- package/src/components/PhoneField/Usages.mdx +9 -0
- package/src/components/PhoneField/Usages.stories.ts +38 -0
- package/src/components/PhoneField/indicatifs.ts +1 -1
- package/src/components/RangeField/RangeField.vue +0 -4
- package/src/components/SearchListField/SearchListField.mdx +1 -2
- package/src/components/SelectBtnField/Usages.mdx +9 -0
- package/src/components/SelectBtnField/Usages.stories.ts +40 -0
- package/src/components/SkipLink/Usages.mdx +9 -0
- package/src/components/SkipLink/Usages.stories.ts +41 -0
- package/src/components/SyAlert/Usages.mdx +9 -0
- package/src/components/SyAlert/Usages.stories.ts +40 -0
- package/src/components/TableToolbar/Accessibilite.mdx +14 -0
- package/src/components/TableToolbar/Accessibilite.stories.ts +216 -0
- package/src/components/TableToolbar/AccessibiliteItems.ts +283 -0
- package/src/components/TableToolbar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +75 -0
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +943 -0
- package/src/components/UploadWorkflow/UploadWorkflow.vue +230 -0
- package/src/components/UploadWorkflow/config.ts +29 -0
- package/src/components/UploadWorkflow/locales.ts +8 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +257 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +54 -0
- package/src/components/UploadWorkflow/types.ts +21 -0
- package/src/components/UploadWorkflow/useFileList.ts +84 -0
- package/src/components/UploadWorkflow/useFileUploadJourney.ts +18 -0
- package/src/components/Usages/Usages.vue +95 -0
- package/src/components/index.ts +5 -0
- package/src/composables/rules/useFieldValidation.ts +89 -14
- package/src/composables/useFilterable/useFilterable.spec.ts +635 -0
- package/src/composables/useFilterable/useFilterable.ts +196 -0
- package/src/composables/validation/tests/useValidation.spec.ts +154 -0
- package/src/composables/validation/useValidation.ts +165 -0
- package/src/constants/icons.ts +5 -0
- package/src/designTokens/index.ts +4 -0
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +3 -3
- package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +63 -0
- package/src/stories/Accessibilite/Audit/RGAA.mdx +29 -0
- package/src/stories/Accessibilite/Introduction.mdx +27 -0
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +40 -0
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +32 -0
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +33 -0
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru.mdx +33 -0
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +100 -0
- package/src/stories/{Guidelines → Accessibilite}/Vuetify/Vuetify.mdx +1 -1
- package/src/stories/{Guidelines → Accessibilite}/Vuetify/Vuetify.stories.ts +1 -1
- package/src/stories/Components/Components.mdx +8 -0
- package/src/stories/Components/Components.stories.ts +398 -0
- package/src/stories/Demarrer/Accueil.mdx +8 -3
- package/src/stories/Demarrer/Accueil.stories.ts +126 -16
- package/src/stories/Demarrer/Introduction.mdx +12 -0
- package/src/stories/Demarrer/Introduction.stories.ts +151 -0
- package/src/stories/{GuideDuDev → Demarrer}/components.stories.ts +2 -2
- package/src/stories/{Fondamentaux → DesignTokens}/Arrondis.mdx +1 -1
- package/src/stories/{Fondamentaux → DesignTokens}/Colors.mdx +4 -4
- package/src/stories/DesignTokens/Conteneurs.mdx +18 -0
- package/src/stories/DesignTokens/Conteneurs.stories.ts +103 -0
- package/src/stories/{Fondamentaux → DesignTokens}/Elevations.mdx +1 -1
- package/src/stories/{Fondamentaux → DesignTokens}/Espacements.mdx +1 -1
- package/src/stories/{Fondamentaux → DesignTokens}/Introduction.mdx +1 -1
- package/src/stories/{Fondamentaux → DesignTokens}/StylesTypographiques.mdx +1 -1
- package/src/stories/DesignTokens/ThemePA.mdx +35 -0
- package/src/stories/{Fondamentaux → DesignTokens}/Typographie.mdx +14 -1
- package/src/stories/{Guidelines/EcoConception/EcoConception.mdx → EcoConception/Introduction.mdx} +2 -2
- package/src/stories/{Guidelines/EcoConception/Econception.stories.ts → EcoConception/econception.stories.ts} +2 -2
- package/src/stories/GuideDuDev/MigrationDepuisBridge.mdx +432 -0
- package/src/stories/GuideDuDev/MigrationDepuisVue2.mdx +415 -0
- package/src/stories/GuideDuDev/UtiliserLesRules.mdx +314 -83
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/stories/Templates/Templates.mdx +8 -0
- package/src/stories/Templates/Templates.stories.ts +85 -0
- package/src/utils/functions/deepCopy/index.ts +20 -0
- package/src/utils/functions/deepCopy/tests/deepCopy.spec.ts +58 -0
- package/src/utils/functions/isEmailValid/index.ts +8 -0
- package/src/utils/functions/isEmailValid/tests/isEmailValid.spec.ts +22 -0
- package/src/utils/localStorageUtility/index.ts +201 -0
- package/src/utils/localStorageUtility/tests/localStorageUtility.spec.ts +180 -0
- package/src/utils/ruleMessage/index.ts +14 -0
- package/src/utils/ruleMessage/tests/ruleMessages.spec.ts +28 -0
- package/src/utils/rules/email/index.ts +26 -0
- package/src/utils/rules/email/locales.ts +5 -0
- package/src/utils/rules/email/tests/email.spec.ts +24 -0
- package/src/vuetifyConfig.ts +61 -0
- package/dist/design-system-v3.d.ts +0 -2925
- package/src/stories/Fondamentaux/Conteneurs.mdx +0 -7
- package/src/stories/Fondamentaux/CustomisationEtThemes.mdx +0 -57
- package/src/stories/Guidelines/Accessibilite/Accessibilite.mdx +0 -51
- package/src/stories/Guidelines/Accessibilite/Accessibilite.stories.ts +0 -36
- package/src/stories/Guidelines/Accessibilite/AccessibiliteItems.ts +0 -706
- package/src/stories/Guidelines/Accessibilite/constants/RGAALevelEnum.ts +0 -4
- /package/src/stories/{Guidelines → Accessibilite}/Vuetify/VuetifyItems.ts +0 -0
- /package/src/stories/{GuideDuDev → Demarrer}/CreerUneIssue.mdx +0 -0
- /package/src/stories/{Guidelines/EcoConception → EcoConception}/ecoDesignItems.ts +0 -0
|
@@ -1,409 +1,701 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { ref, computed, watch, onMounted } from 'vue'
|
|
3
|
+
import { nextTick } from 'vue'
|
|
4
|
+
import SyTextField from '@/components/Customs/SyTextField/SyTextField.vue'
|
|
4
5
|
import { useFieldValidation } from '@/composables/rules/useFieldValidation'
|
|
5
6
|
import type { RuleOptions } from '@/composables/rules/useFieldValidation'
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
type DateValue = string | [string, string]
|
|
8
|
+
type DateValue = string | null
|
|
9
9
|
|
|
10
10
|
const props = withDefaults(defineProps<{
|
|
11
11
|
modelValue?: DateValue
|
|
12
|
-
displayFormat?: string
|
|
13
|
-
returnFormat?: string
|
|
14
|
-
range?: boolean
|
|
15
12
|
placeholder?: string
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
format?: string
|
|
14
|
+
dateFormatReturn?: string
|
|
15
|
+
label?: string
|
|
18
16
|
required?: boolean
|
|
17
|
+
isDisabled?: boolean
|
|
18
|
+
isReadOnly?: boolean
|
|
19
|
+
isOutlined?: boolean
|
|
20
|
+
displayIcon?: boolean
|
|
21
|
+
displayAppendIcon?: boolean
|
|
22
|
+
noIcon?: boolean
|
|
23
|
+
customRules?: { type: string, options: RuleOptions }[]
|
|
24
|
+
customWarningRules?: { type: string, options: RuleOptions }[]
|
|
25
|
+
displayPrependIcon?: boolean
|
|
19
26
|
}>(), {
|
|
20
|
-
modelValue:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
rules: () => [],
|
|
26
|
-
warningRules: () => [],
|
|
27
|
+
modelValue: null,
|
|
28
|
+
placeholder: 'Sélectionner une date',
|
|
29
|
+
format: 'DD/MM/YYYY',
|
|
30
|
+
dateFormatReturn: undefined,
|
|
31
|
+
label: undefined,
|
|
27
32
|
required: false,
|
|
33
|
+
isDisabled: false,
|
|
34
|
+
isReadOnly: false,
|
|
35
|
+
isOutlined: true,
|
|
36
|
+
displayIcon: true,
|
|
37
|
+
displayAppendIcon: false,
|
|
38
|
+
noIcon: false,
|
|
39
|
+
customRules: () => [],
|
|
40
|
+
customWarningRules: () => [],
|
|
41
|
+
displayPrependIcon: true,
|
|
28
42
|
})
|
|
29
43
|
|
|
30
44
|
const emit = defineEmits<{
|
|
31
|
-
(e: 'update:
|
|
45
|
+
(e: 'update:model-value', value: DateValue): void
|
|
46
|
+
(e: 'focus'): void
|
|
47
|
+
(e: 'blur'): void
|
|
32
48
|
}>()
|
|
33
49
|
|
|
34
|
-
const inputValue = ref('')
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
// Règles de validation
|
|
39
|
-
const validationRules = computed(() => generateRules(props.rules || []))
|
|
40
|
-
const warningValidationRules = computed(() => generateRules(props.warningRules || []))
|
|
41
|
-
|
|
42
|
-
// États de validation
|
|
43
|
-
const hasError = ref(false)
|
|
44
|
-
const hasWarning = ref(false)
|
|
45
|
-
const hasSuccess = ref(false)
|
|
50
|
+
const inputValue = ref<string>('')
|
|
51
|
+
const isFocused = ref(false)
|
|
52
|
+
const hasInteracted = ref(false)
|
|
46
53
|
const errorMessages = ref<string[]>([])
|
|
47
54
|
const warningMessages = ref<string[]>([])
|
|
48
55
|
const successMessages = ref<string[]>([])
|
|
49
56
|
|
|
50
|
-
//
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
warningMessages.value = []
|
|
55
|
-
successMessages.value = []
|
|
57
|
+
// Fonction pour parser une date selon le format spécifié
|
|
58
|
+
const parseDate = (dateStr: string, format: string = props.format): Date | null => {
|
|
59
|
+
const parts = dateStr.split(/[-/.]/)
|
|
60
|
+
const formatParts = format.split(/[-/.]/)
|
|
56
61
|
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
hasError.value = true
|
|
60
|
-
return
|
|
62
|
+
if (parts.length !== formatParts.length) {
|
|
63
|
+
return null
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
if (props.range) {
|
|
65
|
-
// Pour une plage, valider chaque date séparément
|
|
66
|
-
const [start, end] = inputValue.value.split('-').map(d => d.trim())
|
|
67
|
-
if (start && isValidDate(start)) {
|
|
68
|
-
// Validation des erreurs et succès pour la date de début
|
|
69
|
-
addMessages(start, validationRules.value, 'error')
|
|
70
|
-
addMessages(start, validationRules.value, 'success')
|
|
71
|
-
// Validation des warnings pour la date de début
|
|
72
|
-
addMessages(start, warningValidationRules.value, 'warning')
|
|
73
|
-
}
|
|
66
|
+
let day = 1, month = 0, year = 1970
|
|
74
67
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
addMessages(end, warningValidationRules.value, 'warning')
|
|
81
|
-
|
|
82
|
-
// Valider que la date de fin est après la date de début
|
|
83
|
-
if (start && isValidDate(start)) {
|
|
84
|
-
const startDate = parseDate(start, props.displayFormat)
|
|
85
|
-
const endDate = parseDate(end, props.displayFormat)
|
|
86
|
-
if (startDate && endDate && endDate < startDate) {
|
|
87
|
-
errorMessages.value.push('La date de fin doit être après la date de début')
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
68
|
+
// Mapper les parties selon le format
|
|
69
|
+
for (let i = 0; i < formatParts.length; i++) {
|
|
70
|
+
const value = parseInt(parts[i], 10)
|
|
71
|
+
if (isNaN(value)) {
|
|
72
|
+
return null
|
|
91
73
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
74
|
+
|
|
75
|
+
switch (formatParts[i].toUpperCase()) {
|
|
76
|
+
case 'DD':
|
|
77
|
+
day = value
|
|
78
|
+
break
|
|
79
|
+
case 'MM':
|
|
80
|
+
month = value - 1 // JavaScript months are 0-based
|
|
81
|
+
break
|
|
82
|
+
case 'YY':
|
|
83
|
+
year = value + 2000 // Assuming 20xx for YY format
|
|
84
|
+
break
|
|
85
|
+
case 'YYYY':
|
|
86
|
+
year = value
|
|
87
|
+
break
|
|
97
88
|
}
|
|
98
89
|
}
|
|
99
90
|
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
91
|
+
// Valider les limites
|
|
92
|
+
if (month < 0 || month > 11) return null
|
|
93
|
+
if (day < 1 || day > 31) return null
|
|
94
|
+
if (year < 1000 || year > 9999) return null // Accepter une plage d'années plus large
|
|
105
95
|
|
|
106
|
-
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- This is a generic type
|
|
108
|
-
const addMessages = (value: string, rules: any[], messageType: 'error' | 'warning' | 'success') => {
|
|
109
|
-
if (!value) return
|
|
110
|
-
|
|
111
|
-
// Convertir la date au format YYYY-MM-DD pour la validation
|
|
112
|
-
const validationValue = toValidationFormat(value)
|
|
113
|
-
if (!validationValue) return
|
|
114
|
-
|
|
115
|
-
rules.forEach((rule) => {
|
|
116
|
-
const result = rule(validationValue)
|
|
117
|
-
if (result) {
|
|
118
|
-
const targetMessages = messageType === 'error'
|
|
119
|
-
? errorMessages
|
|
120
|
-
: messageType === 'warning'
|
|
121
|
-
? warningMessages
|
|
122
|
-
: successMessages
|
|
123
|
-
if (result[messageType]) {
|
|
124
|
-
targetMessages.value.push(result[messageType])
|
|
125
|
-
targetMessages.value = [...new Set(targetMessages.value)]
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
})
|
|
129
|
-
}
|
|
96
|
+
const date = new Date(year, month, day)
|
|
130
97
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (!date) return dateStr
|
|
98
|
+
// Vérifier si la date est valide (ex: 31/04 n'existe pas)
|
|
99
|
+
if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
|
|
100
|
+
return null
|
|
101
|
+
}
|
|
136
102
|
|
|
137
|
-
|
|
138
|
-
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`
|
|
103
|
+
return date
|
|
139
104
|
}
|
|
140
105
|
|
|
141
|
-
// Fonction pour
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
106
|
+
// Fonction pour formater une date en chaîne selon le format spécifié
|
|
107
|
+
const formatDateToString = (date: Date, format: string): string => {
|
|
108
|
+
const day = date.getDate().toString().padStart(2, '0')
|
|
109
|
+
const month = (date.getMonth() + 1).toString().padStart(2, '0')
|
|
110
|
+
const year = date.getFullYear()
|
|
111
|
+
const shortYear = (year % 100).toString().padStart(2, '0')
|
|
147
112
|
|
|
148
|
-
|
|
113
|
+
const separator = format.includes('/') ? '/' : format.includes('-') ? '-' : '.'
|
|
114
|
+
const parts: string[] = []
|
|
149
115
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (isNaN(value)) return null
|
|
153
|
-
|
|
154
|
-
switch (formatParts[i]) {
|
|
116
|
+
format.split(/[-/.]/).forEach((part) => {
|
|
117
|
+
switch (part.toUpperCase()) {
|
|
155
118
|
case 'DD':
|
|
156
|
-
day
|
|
119
|
+
parts.push(day)
|
|
157
120
|
break
|
|
158
121
|
case 'MM':
|
|
159
|
-
month
|
|
122
|
+
parts.push(month)
|
|
160
123
|
break
|
|
161
|
-
case 'YYYY':
|
|
162
124
|
case 'YY':
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
year = currentCentury + value
|
|
168
|
-
}
|
|
125
|
+
parts.push(shortYear)
|
|
126
|
+
break
|
|
127
|
+
case 'YYYY':
|
|
128
|
+
parts.push(year.toString())
|
|
169
129
|
break
|
|
170
130
|
}
|
|
171
|
-
}
|
|
131
|
+
})
|
|
172
132
|
|
|
173
|
-
|
|
174
|
-
return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day ? date : null
|
|
133
|
+
return parts.join(separator)
|
|
175
134
|
}
|
|
176
135
|
|
|
177
|
-
//
|
|
178
|
-
const
|
|
179
|
-
|
|
136
|
+
// Fonction pour formater la date pendant la saisie
|
|
137
|
+
const formatDateInput = (input: string, cursorPosition?: number): { formatted: string, cursorPos: number } => {
|
|
138
|
+
const separator = props.format.includes('/') ? '/' : props.format.includes('-') ? '-' : '.'
|
|
180
139
|
|
|
181
|
-
|
|
182
|
-
|
|
140
|
+
// Déterminer l'ordre des composants (jour, mois, année) en fonction du format
|
|
141
|
+
const formatParts = props.format.split(/[/.-]/)
|
|
142
|
+
const dayIndex = formatParts.findIndex(part => part.toUpperCase().includes('D'))
|
|
143
|
+
const monthIndex = formatParts.findIndex(part => part.toUpperCase().includes('M'))
|
|
144
|
+
const yearIndex = formatParts.findIndex(part => part.toUpperCase().includes('Y'))
|
|
183
145
|
|
|
184
|
-
//
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
result = result.replace('MM', String(date.getMonth() + 1).padStart(2, '0'))
|
|
189
|
-
result = result.replace('DD', String(date.getDate()).padStart(2, '0'))
|
|
190
|
-
return result
|
|
191
|
-
}
|
|
146
|
+
// Créer le masque en fonction du format
|
|
147
|
+
const parts = Array(3).fill('__')
|
|
148
|
+
parts[yearIndex] = '____' // L'année a toujours 4 caractères
|
|
149
|
+
const mask = parts.join(separator)
|
|
192
150
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
const numbers = value.replace(/\D/g, '')
|
|
196
|
-
const chars = numbers.split('')
|
|
151
|
+
let result = mask
|
|
152
|
+
let pos = cursorPosition || 0
|
|
197
153
|
|
|
198
|
-
|
|
199
|
-
|
|
154
|
+
// Nettoyer l'entrée pour ne garder que les chiffres et les séparateurs
|
|
155
|
+
let cleanInput = input
|
|
200
156
|
|
|
201
|
-
//
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
157
|
+
// Si l'entrée contient déjà des séparateurs, on les garde pour préserver l'ordre
|
|
158
|
+
if (input.includes(separator)) {
|
|
159
|
+
const parts = input.split(separator)
|
|
160
|
+
cleanInput = parts.map(part => part.replace(/\D/g, '')).join(separator)
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
cleanInput = input.replace(/\D/g, '')
|
|
164
|
+
}
|
|
205
165
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
166
|
+
// Si l'entrée contient des séparateurs, on traite chaque partie séparément
|
|
167
|
+
if (cleanInput.includes(separator)) {
|
|
168
|
+
const parts = cleanInput.split(separator)
|
|
169
|
+
const formattedParts = Array(3).fill('__')
|
|
170
|
+
formattedParts[yearIndex] = (parts[yearIndex] || '').padEnd(4, '_')
|
|
171
|
+
formattedParts[monthIndex] = (parts[monthIndex] || '').padEnd(2, '_')
|
|
172
|
+
formattedParts[dayIndex] = (parts[dayIndex] || '').padEnd(2, '_')
|
|
173
|
+
|
|
174
|
+
result = formattedParts.join(separator)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
// Distribution des chiffres selon le format
|
|
178
|
+
const formatOrder = [dayIndex, monthIndex, yearIndex]
|
|
179
|
+
let currentDigit = 0
|
|
180
|
+
|
|
181
|
+
for (let partIndex = 0; currentDigit < Math.min(cleanInput.length, 8); partIndex++) {
|
|
182
|
+
const formatPartIndex = formatOrder[partIndex % 3]
|
|
183
|
+
const isYear = formatParts[formatPartIndex].toUpperCase().includes('Y')
|
|
184
|
+
const partLength = isYear ? 4 : 2
|
|
185
|
+
const targetStartPos = formatPartIndex * 3 // Chaque partie a 2 caractères + 1 séparateur
|
|
186
|
+
|
|
187
|
+
// Insérer les chiffres pour cette partie
|
|
188
|
+
for (let j = 0; j < partLength && currentDigit < cleanInput.length; j++) {
|
|
189
|
+
const digit = cleanInput[currentDigit]
|
|
190
|
+
const targetPos = targetStartPos + j
|
|
191
|
+
result = result.substring(0, targetPos) + digit + result.substring(targetPos + 1)
|
|
192
|
+
currentDigit++
|
|
193
|
+
}
|
|
219
194
|
}
|
|
220
|
-
validateField()
|
|
221
195
|
}
|
|
222
|
-
})
|
|
223
196
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
const formattedStart = convertDateFormat(start, props.returnFormat || 'YYYY-MM-DD', props.displayFormat)
|
|
231
|
-
const formattedEnd = convertDateFormat(end, props.returnFormat || 'YYYY-MM-DD', props.displayFormat)
|
|
232
|
-
inputValue.value = `${formattedStart} - ${formattedEnd}`
|
|
197
|
+
// Calculer la nouvelle position du curseur
|
|
198
|
+
if (cursorPosition !== undefined) {
|
|
199
|
+
pos = cursorPosition
|
|
200
|
+
// Si on est sur un séparateur, avancer d'une position
|
|
201
|
+
if (mask[pos] === separator) {
|
|
202
|
+
pos++
|
|
233
203
|
}
|
|
234
|
-
else if (typeof newValue === 'string') {
|
|
235
|
-
// Si on reçoit une chaîne, on la convertit dans le format d'affichage
|
|
236
|
-
inputValue.value = convertDateFormat(newValue, props.returnFormat || 'YYYY-MM-DD', props.displayFormat)
|
|
237
|
-
}
|
|
238
|
-
validateField()
|
|
239
204
|
}
|
|
240
|
-
|
|
241
|
-
|
|
205
|
+
|
|
206
|
+
return {
|
|
207
|
+
formatted: result,
|
|
208
|
+
cursorPos: pos,
|
|
242
209
|
}
|
|
243
|
-
}
|
|
210
|
+
}
|
|
244
211
|
|
|
245
|
-
//
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
212
|
+
// Fonction pour nettoyer une chaîne de date
|
|
213
|
+
const cleanDateString = (input: string): string => {
|
|
214
|
+
// Conserver uniquement les chiffres et les séparateurs valides
|
|
215
|
+
return input.replace(/[^\d/.-]/g, '')
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Fonction pour valider le format de la date
|
|
219
|
+
const validateDateFormat = (dateStr: string): { isValid: boolean, message: string } => {
|
|
220
|
+
if (!dateStr) {
|
|
221
|
+
return { isValid: !props.required || !hasInteracted.value, message: (props.required && hasInteracted.value) ? 'La date est requise' : '' }
|
|
250
222
|
}
|
|
251
223
|
|
|
252
|
-
|
|
224
|
+
// Vérifier que la chaîne ne contient que des chiffres et des séparateurs
|
|
225
|
+
if (!/^[\d/.-]*$/.test(dateStr)) {
|
|
226
|
+
return { isValid: false, message: 'Format de date invalide' }
|
|
227
|
+
}
|
|
253
228
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
emit('update:modelValue', [formattedStart, formattedEnd])
|
|
261
|
-
}
|
|
229
|
+
// Essayer de parser avec le format d'entrée
|
|
230
|
+
let date = parseDate(dateStr, props.format)
|
|
231
|
+
|
|
232
|
+
// Si ça échoue et qu'on a un format de retour, essayer avec celui-ci
|
|
233
|
+
if (!date && props.dateFormatReturn) {
|
|
234
|
+
date = parseDate(dateStr, props.dateFormatReturn)
|
|
262
235
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
emit('update:modelValue', formattedValue)
|
|
236
|
+
|
|
237
|
+
if (!date) {
|
|
238
|
+
return { isValid: false, message: 'Format de date invalide' }
|
|
267
239
|
}
|
|
240
|
+
|
|
241
|
+
return { isValid: true, message: '' }
|
|
268
242
|
}
|
|
269
243
|
|
|
270
|
-
//
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
value = value.slice(0, maxLength.value)
|
|
276
|
-
}
|
|
244
|
+
// Fonction pour valider les règles et mettre à jour les messages
|
|
245
|
+
const validateRules = (value: string) => {
|
|
246
|
+
errorMessages.value = []
|
|
247
|
+
warningMessages.value = []
|
|
248
|
+
successMessages.value = []
|
|
277
249
|
|
|
278
250
|
if (!value) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
251
|
+
if (props.required && hasInteracted.value) {
|
|
252
|
+
errorMessages.value.push('La date est requise')
|
|
253
|
+
}
|
|
282
254
|
return
|
|
283
255
|
}
|
|
284
256
|
|
|
285
|
-
//
|
|
286
|
-
|
|
257
|
+
// Validation du format
|
|
258
|
+
const validation = validateDateFormat(value)
|
|
259
|
+
if (!validation.isValid) {
|
|
260
|
+
errorMessages.value.push(validation.message)
|
|
261
|
+
return
|
|
262
|
+
}
|
|
287
263
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
264
|
+
// Validation des règles
|
|
265
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- This is a generic type
|
|
266
|
+
const validateErrorRules = (rules: any[]) => {
|
|
267
|
+
let allValid = true
|
|
268
|
+
const successMsgs: string[] = []
|
|
269
|
+
|
|
270
|
+
rules.forEach((rule) => {
|
|
271
|
+
const result = rule(value)
|
|
272
|
+
if (result?.error) {
|
|
273
|
+
errorMessages.value.push(result.error)
|
|
274
|
+
allValid = false
|
|
275
|
+
}
|
|
276
|
+
else if (!result?.warning && !result?.error) {
|
|
277
|
+
successMsgs.push(result?.success || 'Date valide')
|
|
278
|
+
}
|
|
279
|
+
})
|
|
291
280
|
|
|
292
|
-
//
|
|
293
|
-
if (
|
|
294
|
-
|
|
281
|
+
// N'ajouter les messages de succès que si toutes les règles sont validées
|
|
282
|
+
if (allValid && successMsgs.length > 0) {
|
|
283
|
+
successMessages.value.push(...successMsgs)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
295
286
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
287
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- This is a generic type
|
|
288
|
+
const validateWarningRules = (rules: any[]) => {
|
|
289
|
+
let allValid = true
|
|
290
|
+
const successMsgs: string[] = []
|
|
291
|
+
|
|
292
|
+
rules.forEach((rule) => {
|
|
293
|
+
const result = rule(value)
|
|
294
|
+
if (result?.warning) {
|
|
295
|
+
warningMessages.value.push(result.warning)
|
|
296
|
+
allValid = false
|
|
297
|
+
}
|
|
298
|
+
else if (result?.success) {
|
|
299
|
+
successMsgs.push(result.success)
|
|
300
300
|
}
|
|
301
|
+
})
|
|
302
|
+
|
|
303
|
+
// N'ajouter les messages de succès que si toutes les règles sont validées
|
|
304
|
+
if (allValid && successMsgs.length > 0) {
|
|
305
|
+
successMessages.value.push(...successMsgs)
|
|
301
306
|
}
|
|
307
|
+
}
|
|
302
308
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
309
|
+
// Appliquer les règles
|
|
310
|
+
validateErrorRules(validationRules)
|
|
311
|
+
validateWarningRules(warningValidationRules)
|
|
312
|
+
|
|
313
|
+
// Supprimer les doublons
|
|
314
|
+
errorMessages.value = [...new Set(errorMessages.value)]
|
|
315
|
+
warningMessages.value = [...new Set(warningMessages.value)]
|
|
316
|
+
successMessages.value = [...new Set(successMessages.value)]
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const { generateRules } = useFieldValidation()
|
|
320
|
+
|
|
321
|
+
// Générer les règles de validation
|
|
322
|
+
const generateCustomRules = (rules: { type: string, options: RuleOptions }[]) => {
|
|
323
|
+
return rules.map((rule) => {
|
|
324
|
+
return (value: string) => {
|
|
325
|
+
if (rule.type === 'custom') {
|
|
326
|
+
const { validate, message, warningMessage, successMessage, isWarning } = rule.options
|
|
327
|
+
|
|
328
|
+
if (typeof validate !== 'function') {
|
|
329
|
+
return true
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const isValid = validate(value)
|
|
333
|
+
|
|
334
|
+
if (isWarning) {
|
|
335
|
+
// Pour les règles de warning, on inverse la logique :
|
|
336
|
+
return !isValid
|
|
337
|
+
? { warning: warningMessage || message }
|
|
338
|
+
: { success: successMessage }
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Pour les règles normales
|
|
342
|
+
return !isValid
|
|
343
|
+
? { error: message }
|
|
344
|
+
: { success: successMessage }
|
|
310
345
|
}
|
|
346
|
+
return null
|
|
311
347
|
}
|
|
348
|
+
})
|
|
349
|
+
}
|
|
312
350
|
|
|
313
|
-
|
|
351
|
+
const validationRules = [
|
|
352
|
+
...generateCustomRules(props.customRules?.filter(r => r.type === 'custom' && !r.options.isWarning) || []),
|
|
353
|
+
...generateRules(props.customRules?.filter(r => r.type !== 'custom') || []),
|
|
354
|
+
]
|
|
355
|
+
const warningValidationRules = [
|
|
356
|
+
...generateCustomRules(props.customWarningRules || []),
|
|
357
|
+
...generateCustomRules(props.customRules?.filter(r => r.type === 'custom' && r.options.isWarning) || []),
|
|
358
|
+
]
|
|
359
|
+
|
|
360
|
+
// Déterminer si le champ est en erreur
|
|
361
|
+
const isOnError = computed(() => errorMessages.value.length > 0)
|
|
362
|
+
const isOnWarning = computed(() => warningMessages.value.length > 0)
|
|
363
|
+
const isOnSuccess = computed(() => successMessages.value.length > 0)
|
|
364
|
+
|
|
365
|
+
// Déterminer l'icône à afficher
|
|
366
|
+
const getIcon = computed(() => {
|
|
367
|
+
if (errorMessages.value.length > 0) {
|
|
368
|
+
return 'error'
|
|
314
369
|
}
|
|
315
|
-
|
|
316
|
-
|
|
370
|
+
if (warningMessages.value.length > 0) {
|
|
371
|
+
return 'warning'
|
|
317
372
|
}
|
|
373
|
+
if (successMessages.value.length > 0 && !warningMessages.value.length) {
|
|
374
|
+
return 'success'
|
|
375
|
+
}
|
|
376
|
+
return undefined
|
|
377
|
+
})
|
|
318
378
|
|
|
319
|
-
|
|
320
|
-
|
|
379
|
+
// Gestionnaire de touches pour permettre le copier-coller
|
|
380
|
+
const handleKeydown = (event: KeyboardEvent) => {
|
|
381
|
+
// Autoriser les touches de contrôle (Ctrl+C, Ctrl+V, etc.)
|
|
382
|
+
if (event.ctrlKey || event.metaKey) {
|
|
383
|
+
return
|
|
384
|
+
}
|
|
321
385
|
}
|
|
322
386
|
|
|
323
|
-
//
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
387
|
+
// Gestionnaire de l'événement paste
|
|
388
|
+
const handlePaste = (event: ClipboardEvent) => {
|
|
389
|
+
event.preventDefault()
|
|
390
|
+
const pastedText = event.clipboardData?.getData('text')
|
|
391
|
+
|
|
392
|
+
if (!pastedText) {
|
|
327
393
|
return
|
|
328
394
|
}
|
|
329
395
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
396
|
+
// Nettoyer et formater la valeur collée
|
|
397
|
+
const cleanedText = cleanDateString(pastedText)
|
|
398
|
+
const formattedText = formatDateInput(cleanedText).formatted
|
|
399
|
+
|
|
400
|
+
// Mettre à jour la valeur
|
|
401
|
+
inputValue.value = formattedText
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
// Référence vers l'élément input
|
|
405
|
+
const inputRef = ref<InstanceType<typeof SyTextField> | null>(null)
|
|
406
|
+
|
|
407
|
+
// Flag pour éviter le formatage récursif
|
|
408
|
+
const isFormatting = ref(false)
|
|
409
|
+
|
|
410
|
+
// Watch sur inputValue pour gérer le formatage et la validation
|
|
411
|
+
watch(inputValue, async (newValue, oldValue) => {
|
|
412
|
+
if (isFormatting.value || newValue === oldValue) return // Éviter la récursion pendant le formatage
|
|
336
413
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
const startMonth = cleanStart.slice(2, 4)
|
|
340
|
-
const startYear = cleanStart.slice(4)
|
|
414
|
+
try {
|
|
415
|
+
isFormatting.value = true
|
|
341
416
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
417
|
+
if (!newValue) {
|
|
418
|
+
emit('update:model-value', null)
|
|
419
|
+
validateRules('')
|
|
420
|
+
return
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Récupérer la position du curseur avant le formatage
|
|
424
|
+
const input = inputRef.value?.$el.querySelector('input')
|
|
425
|
+
const cursorPos = input?.selectionStart || 0
|
|
426
|
+
|
|
427
|
+
// Formater la valeur
|
|
428
|
+
const { formatted, cursorPos: newPos } = formatDateInput(newValue, cursorPos)
|
|
345
429
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
430
|
+
// Mettre à jour la valeur si nécessaire
|
|
431
|
+
if (formatted !== newValue) {
|
|
432
|
+
inputValue.value = formatted
|
|
433
|
+
// Rétablir la position du curseur après le formatage
|
|
434
|
+
await nextTick()
|
|
435
|
+
input?.setSelectionRange(newPos, newPos)
|
|
436
|
+
}
|
|
350
437
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
438
|
+
// Vérifier si la date est complète
|
|
439
|
+
const isDateComplete = !formatted.includes('_')
|
|
440
|
+
|
|
441
|
+
if (isDateComplete) {
|
|
442
|
+
// Valider le format si la date est complète
|
|
443
|
+
const validation = validateDateFormat(formatted)
|
|
444
|
+
if (validation.isValid) {
|
|
445
|
+
const date = parseDate(formatted)
|
|
446
|
+
if (date) {
|
|
447
|
+
const formattedDate = props.dateFormatReturn
|
|
448
|
+
? formatDateToString(date, props.dateFormatReturn)
|
|
449
|
+
: formatted
|
|
450
|
+
await nextTick() // Attendre le prochain tick avant d'émettre
|
|
451
|
+
emit('update:model-value', formattedDate)
|
|
452
|
+
}
|
|
354
453
|
}
|
|
454
|
+
validateRules(formatted)
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
// Réinitialiser les messages d'erreur pendant la saisie
|
|
458
|
+
errorMessages.value = []
|
|
459
|
+
warningMessages.value = []
|
|
460
|
+
successMessages.value = []
|
|
355
461
|
}
|
|
356
462
|
}
|
|
463
|
+
finally {
|
|
464
|
+
await nextTick() // Attendre le prochain tick avant de réinitialiser le flag
|
|
465
|
+
isFormatting.value = false
|
|
466
|
+
}
|
|
467
|
+
})
|
|
468
|
+
|
|
469
|
+
// Watch pour mettre à jour l'input quand modelValue change
|
|
470
|
+
watch(() => props.modelValue, (newValue) => {
|
|
471
|
+
if (isFormatting.value) return // Ne pas mettre à jour si on est en train de formater
|
|
472
|
+
|
|
473
|
+
if (!newValue) {
|
|
474
|
+
inputValue.value = ''
|
|
475
|
+
return
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// Formater la valeur selon le format d'affichage
|
|
479
|
+
const date = parseDate(newValue, props.dateFormatReturn)
|
|
480
|
+
if (date) {
|
|
481
|
+
const formatted = formatDateToString(date, props.format)
|
|
482
|
+
inputValue.value = formatted
|
|
483
|
+
}
|
|
357
484
|
else {
|
|
358
|
-
|
|
485
|
+
inputValue.value = newValue
|
|
486
|
+
}
|
|
487
|
+
})
|
|
359
488
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
489
|
+
// Gestionnaire de focus
|
|
490
|
+
const handleFocus = () => {
|
|
491
|
+
isFocused.value = true
|
|
492
|
+
emit('focus')
|
|
493
|
+
}
|
|
364
494
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
495
|
+
// Gestionnaire de blur
|
|
496
|
+
const handleBlur = () => {
|
|
497
|
+
isFocused.value = false
|
|
498
|
+
hasInteracted.value = true
|
|
499
|
+
emit('blur')
|
|
368
500
|
|
|
369
|
-
|
|
370
|
-
|
|
501
|
+
// Valider le format complet lors du blur
|
|
502
|
+
if (inputValue.value) {
|
|
503
|
+
const validation = validateDateFormat(inputValue.value)
|
|
504
|
+
if (validation.isValid) {
|
|
505
|
+
const date = parseDate(inputValue.value)
|
|
506
|
+
if (date) {
|
|
507
|
+
const formattedDate = props.dateFormatReturn
|
|
508
|
+
? formatDateToString(date, props.dateFormatReturn)
|
|
509
|
+
: inputValue.value
|
|
510
|
+
emit('update:model-value', formattedDate)
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
// Même si la validation échoue, conserver la valeur actuelle
|
|
515
|
+
// pour éviter que la date ne disparaisse
|
|
516
|
+
emit('update:model-value', props.modelValue)
|
|
371
517
|
}
|
|
372
518
|
}
|
|
519
|
+
else if (props.required) {
|
|
520
|
+
// Si le champ est vide mais requis, émettre quand même la valeur actuelle
|
|
521
|
+
// pour éviter que la date ne disparaisse
|
|
522
|
+
emit('update:model-value', props.modelValue)
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
// Si le champ est vide et non requis, émettre null
|
|
526
|
+
emit('update:model-value', null)
|
|
527
|
+
}
|
|
373
528
|
|
|
374
|
-
|
|
529
|
+
// Toujours valider les règles, même si le champ est vide
|
|
530
|
+
validateRules(inputValue.value || '')
|
|
375
531
|
}
|
|
376
532
|
|
|
377
|
-
//
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
|
|
533
|
+
// Fonction de validation lors de la soumission
|
|
534
|
+
const isValidating = ref(false)
|
|
535
|
+
|
|
536
|
+
const validateOnSubmit = (): boolean => {
|
|
537
|
+
isValidating.value = true
|
|
538
|
+
|
|
539
|
+
// Vérifier si le champ est requis et vide
|
|
540
|
+
if (props.required && !inputValue.value) {
|
|
541
|
+
errorMessages.value = ['Ce champ est requis']
|
|
542
|
+
return false
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// Si le champ n'est pas requis et est vide, c'est valide
|
|
546
|
+
if (!inputValue.value) {
|
|
547
|
+
return true
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// Valider le format de la date
|
|
551
|
+
const { isValid, message } = validateDateFormat(inputValue.value)
|
|
552
|
+
if (!isValid) {
|
|
553
|
+
errorMessages.value = [message]
|
|
554
|
+
return false
|
|
555
|
+
}
|
|
381
556
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
557
|
+
// Valider les règles personnalisées
|
|
558
|
+
validateRules(inputValue.value)
|
|
559
|
+
|
|
560
|
+
// Retourner true seulement si pas d'erreurs
|
|
385
561
|
return errorMessages.value.length === 0
|
|
386
562
|
}
|
|
387
563
|
|
|
564
|
+
// Exposer les méthodes et propriétés nécessaires
|
|
388
565
|
defineExpose({
|
|
389
|
-
validate: validateField,
|
|
390
566
|
validateOnSubmit,
|
|
567
|
+
focus: () => {
|
|
568
|
+
const input = document.querySelector('input')
|
|
569
|
+
if (input) {
|
|
570
|
+
input.focus()
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
blur: () => {
|
|
574
|
+
const input = document.querySelector('input')
|
|
575
|
+
if (input) {
|
|
576
|
+
input.blur()
|
|
577
|
+
}
|
|
578
|
+
},
|
|
391
579
|
})
|
|
580
|
+
|
|
581
|
+
onMounted(() => {
|
|
582
|
+
if (!props.modelValue) {
|
|
583
|
+
return
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// Parser la date avec le format d'entrée
|
|
587
|
+
const date = parseDate(props.modelValue, props.format)
|
|
588
|
+
if (date) {
|
|
589
|
+
// Si un format de retour est spécifié, l'utiliser pour la valeur émise
|
|
590
|
+
if (props.dateFormatReturn && props.dateFormatReturn !== props.format) {
|
|
591
|
+
const formattedForReturn = formatDateToString(date, props.dateFormatReturn)
|
|
592
|
+
emit('update:model-value', formattedForReturn)
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// Toujours afficher dans le format d'entrée
|
|
596
|
+
inputValue.value = formatDateToString(date, props.format)
|
|
597
|
+
validateRules(inputValue.value)
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
inputValue.value = props.modelValue
|
|
601
|
+
validateRules(props.modelValue)
|
|
602
|
+
}
|
|
603
|
+
})
|
|
604
|
+
|
|
392
605
|
</script>
|
|
393
606
|
|
|
394
607
|
<template>
|
|
395
608
|
<SyTextField
|
|
609
|
+
ref="inputRef"
|
|
396
610
|
v-model="inputValue"
|
|
397
|
-
:error="hasError"
|
|
398
|
-
:error-messages="errorMessages"
|
|
399
|
-
:messages="successMessages"
|
|
400
611
|
:placeholder="placeholder"
|
|
401
|
-
:
|
|
402
|
-
:
|
|
612
|
+
:label="label"
|
|
613
|
+
:error-messages="errorMessages"
|
|
403
614
|
:warning-messages="warningMessages"
|
|
404
|
-
:
|
|
405
|
-
|
|
615
|
+
:success-messages="successMessages"
|
|
616
|
+
:is-on-error="isOnError"
|
|
617
|
+
:is-disabled="isDisabled"
|
|
618
|
+
:is-read-only="isReadOnly"
|
|
619
|
+
:display-icon="displayIcon"
|
|
620
|
+
:display-append-icon="displayAppendIcon"
|
|
621
|
+
:no-icon="noIcon"
|
|
622
|
+
:prepend-icon="props.displayPrependIcon && !props.displayAppendIcon ? 'calendar' : undefined"
|
|
623
|
+
:append-icon="props.displayAppendIcon ? 'calendar' : undefined"
|
|
624
|
+
:append-inner-icon="getIcon"
|
|
625
|
+
:variant-style="isOutlined ? 'outlined' : 'filled'"
|
|
626
|
+
:class="{
|
|
627
|
+
'error-field': isOnError,
|
|
628
|
+
'warning-field': isOnWarning,
|
|
629
|
+
'success-field': isOnSuccess
|
|
630
|
+
}"
|
|
631
|
+
@keydown="handleKeydown"
|
|
632
|
+
@focus="handleFocus"
|
|
406
633
|
@blur="handleBlur"
|
|
407
|
-
@
|
|
634
|
+
@paste="handlePaste"
|
|
408
635
|
/>
|
|
409
636
|
</template>
|
|
637
|
+
|
|
638
|
+
<style lang="scss" scoped>
|
|
639
|
+
@use '@/assets/tokens';
|
|
640
|
+
|
|
641
|
+
:deep(.v-icon__svg) { cursor: default; }
|
|
642
|
+
|
|
643
|
+
.warning-field {
|
|
644
|
+
:deep(.v-input__details > .v-icon),
|
|
645
|
+
:deep(.v-input__prepend > .v-icon),
|
|
646
|
+
:deep(.v-input__append > .v-icon) {
|
|
647
|
+
opacity: 1 !important;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
:deep(.v-field) {
|
|
651
|
+
color: tokens.$colors-border-warning !important;
|
|
652
|
+
|
|
653
|
+
.v-field__outline {
|
|
654
|
+
color: tokens.$colors-border-warning !important;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
:deep(.v-messages) {
|
|
659
|
+
opacity: 1 !important;
|
|
660
|
+
|
|
661
|
+
.v-messages__message {
|
|
662
|
+
color: tokens.$colors-border-warning !important;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.error-field {
|
|
668
|
+
:deep(.v-input__control),
|
|
669
|
+
:deep(.v-messages__message) {
|
|
670
|
+
color: tokens.$colors-text-error !important;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.v-field--active & {
|
|
674
|
+
color: tokens.$colors-border-error !important;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.success-field {
|
|
679
|
+
:deep(.v-input__details > .v-icon),
|
|
680
|
+
:deep(.v-input__prepend > .v-icon),
|
|
681
|
+
:deep(.v-input__append > .v-icon) {
|
|
682
|
+
opacity: 1 !important;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
:deep(.v-field) {
|
|
686
|
+
color: tokens.$colors-border-success !important;
|
|
687
|
+
|
|
688
|
+
.v-field__outline {
|
|
689
|
+
color: tokens.$colors-border-success !important;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
:deep(.v-messages) {
|
|
694
|
+
opacity: 1 !important;
|
|
695
|
+
|
|
696
|
+
.v-messages__message {
|
|
697
|
+
color: tokens.$colors-border-success !important;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
</style>
|