@cnamts/synapse 1.0.19 → 1.0.21
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-CeVuSfJ9.js → DateFilter-uN8OURoP.js} +1 -1
- package/dist/{NumberFilter-C8PAu_sw.js → NumberFilter-sm1dQNQi.js} +1 -1
- package/dist/{PeriodFilter-UMUaxx3d.js → PeriodFilter-Cklsxnh9.js} +1 -1
- package/dist/{SelectFilter-CqZl8CYt.js → SelectFilter-CWefj27Z.js} +1 -1
- package/dist/{TextFilter-D_RhhNOh.js → TextFilter-Ddyj885L.js} +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +17 -7
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +4 -4
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +2416 -0
- package/dist/components/Customs/Selects/SyAutocomplete/types.d.ts +5 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/ariaManager.d.ts +14 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useItemUtils.d.ts +16 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.d.ts +28 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.d.ts +12 -0
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +2 -0
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +160 -0
- package/dist/components/Customs/SyCheckBoxGroup/locales.d.ts +3 -0
- package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +10 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1545 -2
- package/dist/components/Customs/SyIcon/SyIcon.d.ts +2 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +1495 -2
- package/dist/components/DatePicker/composables/useDateSelection.d.ts +1 -0
- package/dist/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.d.ts +60 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +1 -12
- package/dist/components/ErrorPage/locales.d.ts +18 -3
- package/dist/components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/components/MaintenancePage/locales.d.ts +18 -2
- package/dist/components/NotFoundPage/locales.d.ts +20 -4
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +1 -1
- package/dist/components/PaginatedTable/Pagination.d.ts +17 -0
- package/dist/components/StatusPage/StatusPage.d.ts +39 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -5
- package/dist/components/Tables/SyTable/SyTable.d.ts +5 -5
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +13 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/types.d.ts +15 -0
- package/dist/composables/useFormFieldErrorHandling.d.ts +31 -0
- package/dist/design-system-v3.js +126 -122
- package/dist/design-system-v3.umd.cjs +325 -314
- package/dist/{main-B39UVv5p.js → main-CWniLr0s.js} +15837 -14587
- package/dist/modules.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/utils/theme/index.d.ts +6 -0
- package/package.json +12 -10
- package/src/assets/amelipro/icons.ts +166 -153
- package/src/components/Accordion/Accordion.mdx +4 -1
- package/src/components/Accordion/{Accessibilite/AccessibilityGuide.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.stories.ts +73 -14
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.vue +119 -27
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.a11y.spec.ts +304 -0
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.spec.ts +435 -9
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +60 -0
- package/src/components/Amelipro/AmeliproIcon/__tests__/AmeliproIcon.spec.ts +1 -1
- package/src/components/Amelipro/AmeliproIcon/iconList.ts +2 -0
- package/src/components/BackBtn/BackBtn.vue +5 -4
- package/src/components/BackBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/BackToTopBtn/BackToTopBtn.vue +6 -3
- package/src/components/BackToTopBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Captcha/Captcha.vue +5 -1
- package/src/components/Captcha/CaptchaAlert.vue +9 -7
- package/src/components/Captcha/accessibilite/Accessibility.mdx +10 -0
- package/src/components/ChipList/accessibilite/Accessibility.mdx +15 -0
- package/src/components/CollapsibleList/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +8 -6
- package/src/components/Common/IconSlot/IconSlot.vue +1 -1
- package/src/components/ContextualMenu/ContextualMenu.stories.ts +0 -3
- package/src/components/ContextualMenu/accessibilite/Accessibility.mdx +71 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +11 -20
- package/src/components/CookieBanner/CookieBanner.vue +20 -5
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +71 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +48 -4
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +5 -4
- package/src/components/CopyBtn/CopyBtn.vue +6 -3
- package/src/components/CopyBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Customs/Selects/SelectBtnField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Customs/Selects/SelectOverview.mdx +112 -1
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.mdx +52 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +979 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +653 -0
- package/src/components/Customs/Selects/{SySelect → SyAutocomplete/accessibilite}/Accessibilite.stories.ts +7 -38
- package/src/components/Customs/Selects/{SySelect/Accessibilite.mdx → SyAutocomplete/accessibilite/Accessibility.mdx} +15 -20
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.a11y.spec.ts +72 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +345 -0
- package/src/components/Customs/Selects/SyAutocomplete/types.ts +7 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +180 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useItemUtils.ts +46 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.ts +107 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.ts +74 -0
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.vue +13 -9
- package/src/components/Customs/Selects/SyInputSelect/accessibilite/Accessibility.mdx +12 -0
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +43 -34
- package/src/components/Customs/Selects/SySelect/SySelect.vue +19 -2
- package/src/components/Customs/Selects/SySelect/accessibilite/Accessibility.mdx +274 -0
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +21 -16
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.mdx +32 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +856 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +334 -0
- package/src/components/Customs/SyCheckBoxGroup/accessibilite/Accessibility.mdx +243 -0
- package/src/components/Customs/SyCheckBoxGroup/locales.ts +3 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.a11y.spec.ts +30 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +152 -0
- package/src/components/Customs/SyCheckBoxGroup/types.ts +10 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +16 -27
- package/src/components/Customs/SyCheckbox/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -3
- package/src/components/Customs/SyForm/SyForm.a11y.spec.ts +1 -1
- package/src/components/Customs/SyForm/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Customs/SyIcon/SyIcon.mdx +4 -1
- package/src/components/Customs/SyIcon/SyIcon.vue +4 -3
- package/src/components/Customs/SyIcon/{Accessibilite.stories.ts → accessibilite/Accessibilite.stories.ts} +3 -3
- package/src/components/Customs/SyIcon/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyPagination/SyPagination.mdx +4 -2
- package/src/components/Customs/SyPagination/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +16 -43
- package/src/components/Customs/SyRadioGroup/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyTabs/SyTabs.mdx +4 -2
- package/src/components/Customs/SyTabs/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyTextField/SyTextField.mdx +1 -2
- package/src/components/Customs/SyTextField/SyTextField.vue +13 -0
- package/src/components/Customs/SyTextField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DataList/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DataListGroup/accessibilite/Accessibility.mdx +14 -0
- package/src/components/DatePicker/Accessibilite.mdx +1 -1
- package/src/components/DatePicker/Accessibilite.stories.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +7 -4
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +49 -13
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +43 -2
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +297 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +48 -21
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +98 -0
- package/src/components/DatePicker/composables/useDateSelection.ts +5 -0
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +273 -0
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +4 -4
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +10 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.mdx +83 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.stories.ts +502 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.vue +428 -0
- package/src/components/DeclarationAccessibilityPage/accessibilite/Accessibility.mdx +75 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.a11y.spec.ts +53 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.spec.ts +59 -0
- package/src/components/DiacriticPicker/DiacriticPicker.vue +20 -1
- package/src/components/DiacriticPicker/accessibilite/Accessibility.mdx +10 -0
- package/src/components/DialogBox/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DownloadBtn/DownloadBtn.vue +5 -4
- package/src/components/DownloadBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/ErrorPage/ErrorPage.mdx +6 -16
- package/src/components/ErrorPage/ErrorPage.stories.ts +16 -87
- package/src/components/ErrorPage/ErrorPage.vue +38 -125
- package/src/components/ErrorPage/accessibilite/Accessibility.mdx +77 -0
- package/src/components/ErrorPage/assets/error-ap.svg +1774 -0
- package/src/components/ErrorPage/locales.ts +21 -3
- package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +5 -13
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +2 -41
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +8 -266
- package/src/components/ExternalLinks/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FileList/UploadItem/UploadItem.vue +25 -20
- package/src/components/FileList/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilePreview/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FileUpload/FileUpload.vue +5 -0
- package/src/components/FileUpload/FileUploadContent.vue +5 -4
- package/src/components/FileUpload/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilterInline/FilterInline.vue +5 -4
- package/src/components/FilterInline/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilterSideBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FooterBar/FooterBar.stories.ts +18 -14
- package/src/components/FooterBar/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -4
- package/src/components/FooterBar/defaultSocialMediaLinks.ts +6 -4
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +6 -5
- package/src/components/FranceConnectBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/FranceConnectBtn.spec.ts.snap +3 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/accessibilite/Accessibility.mdx +15 -0
- package/src/components/HeaderBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/HeaderBar/{Usages.mdx → usages/Usages.mdx} +2 -2
- package/src/components/HeaderLoading/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +9 -5
- package/src/components/HeaderToolbar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/LangBtn/LangBtn.vue +5 -4
- package/src/components/LangBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Logo/accessibilite/Accessibility.mdx +17 -0
- package/src/components/LogoBrandSection/accessibilite/Accessibility.mdx +12 -0
- package/src/components/LunarCalendar/accessibilite/Accessibility.mdx +10 -0
- package/src/components/MaintenancePage/MaintenancePage.mdx +1 -1
- package/src/components/MaintenancePage/MaintenancePage.vue +15 -7
- package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +70 -0
- package/src/components/MaintenancePage/assets/maintenance-ap.svg +1718 -0
- package/src/components/MaintenancePage/locales.ts +24 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +75 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +42 -2
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -2
- package/src/components/NirField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/NotFoundPage/NotFoundPage.mdx +1 -1
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +3 -3
- package/src/components/NotFoundPage/NotFoundPage.vue +16 -11
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +87 -0
- package/src/components/NotFoundPage/assets/not-found-ap.svg +2061 -0
- package/src/components/NotFoundPage/locales.ts +24 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +168 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +100 -12
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +2 -2
- package/src/components/NotificationBar/Notification/Notification.vue +1 -1
- package/src/components/NotificationBar/NotificationBar.mdx +2 -2
- package/src/components/NotificationBar/accessibilite/Accessibility.mdx +75 -0
- package/src/components/PageContainer/{AccessibilityGuide.mdx → accessibilite/Accessibility.mdx} +7 -4
- package/src/components/PageContainer/tests/PageContainer.a11y.spec.ts +14 -7
- package/src/components/PaginatedTable/PaginatedTable.vue +27 -47
- package/src/components/PaginatedTable/Pagination.vue +93 -0
- package/src/components/PaginatedTable/accessibilite/Accessibility.mdx +12 -0
- package/src/components/PasswordField/PasswordField.vue +2 -1
- package/src/components/PasswordField/accessibilite/Accessibility.mdx +108 -0
- package/src/components/PeriodField/accessibilite/Accessibility.mdx +12 -0
- package/src/components/PhoneField/PhoneField.stories.ts +46 -38
- package/src/components/PhoneField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/RangeField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/RatingPicker/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SearchListField/SearchListField.vue +6 -3
- package/src/components/SearchListField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SkipLink/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +7 -4
- package/src/components/SocialMediaLinks/DefaultSocialMediaLinks.ts +6 -4
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +7 -5
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +17 -13
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +9 -1
- package/src/components/SocialMediaLinks/accessibilite/Accessibility.mdx +67 -0
- package/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.ts +5 -5
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.a11y.spec.ts +59 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +9 -7
- package/src/components/StatusPage/StatusPage.mdx +22 -0
- package/src/components/StatusPage/StatusPage.stories.ts +193 -0
- package/src/components/StatusPage/StatusPage.vue +145 -0
- package/src/components/StatusPage/accessibilite/Accessibility.mdx +81 -0
- package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +29 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +50 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +270 -0
- package/src/components/SubHeader/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SyAlert/SyAlert.vue +6 -6
- package/src/components/SyAlert/accessibilite/Accessibility.mdx +12 -0
- package/src/components/SyTextArea/accessibilite/Accessibility.mdx +10 -0
- package/src/components/TableToolbar/TableToolbar.stories.ts +6 -6
- package/src/components/TableToolbar/TableToolbar.vue +7 -4
- package/src/components/TableToolbar/accessibilite/Accessibility.mdx +12 -0
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +0 -5
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +4 -1
- package/src/components/Tables/SyServerTable/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Tables/SyTable/SyTable.mdx +4 -1
- package/src/components/Tables/SyTable/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Tables/common/TableHeader.vue +3 -1
- package/src/components/Tables/common/organizeColumns/OrganizeColumns.vue +18 -14
- package/src/components/ToolbarContainer/ToolbarContainer.mdx +2 -1
- package/src/components/ToolbarContainer/ToolbarContainer.stories.ts +563 -420
- package/src/components/ToolbarContainer/accessibilite/Accessibility.mdx +69 -0
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +11 -1
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +107 -3
- package/src/components/UploadWorkflow/UploadWorkflow.vue +35 -24
- package/src/components/UploadWorkflow/accessibilite/Accessibility.mdx +12 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +48 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +9 -5
- package/src/components/UploadWorkflow/useFileList.ts +7 -0
- package/src/components/Usages/Usages.vue +3 -2
- package/src/components/UserMenuBtn/UserMenuBtn.vue +7 -5
- package/src/components/UserMenuBtn/accessibilite/Accessibility.mdx +12 -0
- package/src/components/index.ts +5 -0
- package/src/components/types.ts +10 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +39 -3
- package/src/composables/rules/useFieldValidation.ts +31 -9
- package/src/composables/useFormFieldErrorHandling.ts +141 -0
- package/src/modules.d.ts +6 -0
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +7 -0
- package/src/utils/theme/index.ts +19 -0
- package/src/utils/theme/tests/useThemeLocales.spec.ts +245 -0
- package/dist/components/MaintenancePage/index.d.ts +0 -2
- package/src/components/BackBtn/Accessibilite.mdx +0 -14
- package/src/components/BackBtn/Accessibilite.stories.ts +0 -30
- package/src/components/BackToTopBtn/Accessibilite.mdx +0 -14
- package/src/components/BackToTopBtn/Accessibilite.stories.ts +0 -31
- package/src/components/ChipList/Accessibilite.mdx +0 -14
- package/src/components/ChipList/Accessibilite.stories.ts +0 -31
- package/src/components/CollapsibleList/Accessibilite.stories.ts +0 -29
- package/src/components/ContextualMenu/Accessibilite.mdx +0 -13
- package/src/components/ContextualMenu/Accessibilite.stories.ts +0 -29
- package/src/components/CookieBanner/Accessibilite.mdx +0 -13
- package/src/components/CookieBanner/Accessibilite.stories.ts +0 -30
- package/src/components/CopyBtn/Accessibilite.mdx +0 -13
- package/src/components/CopyBtn/Accessibilite.stories.ts +0 -29
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.mdx +0 -14
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.stories.ts +0 -29
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.mdx +0 -13
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.stories.ts +0 -25
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +0 -27
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +0 -51
- package/src/components/Customs/SyTextField/Accessibilite.mdx +0 -14
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +0 -34
- package/src/components/DataList/Accessibilite.mdx +0 -13
- package/src/components/DataList/Accessibilite.stories.ts +0 -29
- package/src/components/DataListGroup/Accessibilite.mdx +0 -13
- package/src/components/DataListGroup/Accessibilite.stories.ts +0 -29
- package/src/components/DataListItem/tests/DataListItem.a11y.spec.ts +0 -31
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +0 -27
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +0 -26
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +0 -27
- package/src/components/DialogBox/Accessibilite.mdx +0 -14
- package/src/components/DialogBox/Accessibilite.stories.ts +0 -29
- package/src/components/DownloadBtn/Accessibilite.mdx +0 -14
- package/src/components/DownloadBtn/Accessibilite.stories.ts +0 -29
- package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +0 -26
- package/src/components/ErrorPage/Accessibilite.mdx +0 -13
- package/src/components/ErrorPage/Accessibilite.stories.ts +0 -36
- package/src/components/ExternalLinks/Accessibilite.mdx +0 -18
- package/src/components/ExternalLinks/Accessibilite.stories.ts +0 -62
- package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +0 -39
- package/src/components/FileList/Accessibilite.mdx +0 -13
- package/src/components/FileList/Accessibilite.stories.ts +0 -26
- package/src/components/FilePreview/Accessibilite.mdx +0 -14
- package/src/components/FilePreview/Accessibilite.stories.ts +0 -26
- package/src/components/FileUpload/Accessibilite.mdx +0 -13
- package/src/components/FileUpload/Accessibilite.stories.ts +0 -26
- package/src/components/FilterInline/Accessibilite.mdx +0 -15
- package/src/components/FilterInline/Accessibilite.stories.ts +0 -26
- package/src/components/FilterSideBar/Accessibilite.mdx +0 -13
- package/src/components/FilterSideBar/Accessibilite.stories.ts +0 -30
- package/src/components/FooterBar/Accessibilite.stories.ts +0 -26
- package/src/components/FranceConnectBtn/Accessibilite.mdx +0 -13
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +0 -30
- package/src/components/HeaderBar/Accessibilite.mdx +0 -13
- package/src/components/HeaderBar/Accessibilite.stories.ts +0 -31
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +0 -13
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +0 -30
- package/src/components/HeaderLoading/Accessibilite.stories.ts +0 -31
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.a11y.spec.ts +0 -45
- package/src/components/HeaderToolbar/Accessibilite.mdx +0 -13
- package/src/components/HeaderToolbar/Accessibilite.stories.ts +0 -36
- package/src/components/HeaderToolbar/tests/HeaderToolbar.a11y.spec.ts +0 -25
- package/src/components/LangBtn/Accessibilite.mdx +0 -13
- package/src/components/LangBtn/Accessibilite.stories.ts +0 -32
- package/src/components/Logo/Accessibilite.mdx +0 -13
- package/src/components/Logo/Accessibilite.stories.ts +0 -30
- package/src/components/LogoBrandSection/Accessibilite.mdx +0 -13
- package/src/components/LogoBrandSection/Accessibilite.stories.ts +0 -26
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +0 -31
- package/src/components/MaintenancePage/Accessibilite.mdx +0 -13
- package/src/components/MaintenancePage/Accessibilite.stories.ts +0 -36
- package/src/components/MaintenancePage/index.ts +0 -3
- package/src/components/NirField/Accessibilite.mdx +0 -13
- package/src/components/NirField/Accessibilite.stories.ts +0 -31
- package/src/components/NotFoundPage/Accessibilite.mdx +0 -13
- package/src/components/NotFoundPage/Accessibilite.stories.ts +0 -36
- package/src/components/NotificationBar/Accessibilite.mdx +0 -13
- package/src/components/NotificationBar/Accessibilite.stories.ts +0 -30
- package/src/components/PageContainer/Accessibilite.mdx +0 -13
- package/src/components/PageContainer/Accessibilite.stories.ts +0 -30
- package/src/components/PaginatedTable/Accessibilite.mdx +0 -13
- package/src/components/PaginatedTable/Accessibilite.stories.ts +0 -26
- package/src/components/PaginatedTable/tests/PaginatedTable.a11y.spec.ts +0 -43
- package/src/components/PasswordField/Accessibilite.mdx +0 -13
- package/src/components/PasswordField/Accessibilite.stories.ts +0 -121
- package/src/components/PeriodField/Accessibilite.mdx +0 -13
- package/src/components/PeriodField/Accessibilite.stories.ts +0 -27
- package/src/components/PhoneField/Accessibilite.mdx +0 -13
- package/src/components/PhoneField/Accessibilite.stories.ts +0 -32
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -34
- package/src/components/RangeField/Accessibilite.mdx +0 -13
- package/src/components/RangeField/Accessibilite.stories.ts +0 -32
- package/src/components/RatingPicker/Accessibilite.mdx +0 -13
- package/src/components/RatingPicker/Accessibilite.stories.ts +0 -30
- package/src/components/SearchListField/Accessibilite.mdx +0 -13
- package/src/components/SearchListField/Accessibilite.stories.ts +0 -30
- package/src/components/SkipLink/Accessibilite.stories.ts +0 -36
- package/src/components/SocialMediaLinks/Accessibilite.mdx +0 -13
- package/src/components/SocialMediaLinks/Accessibilite.stories.ts +0 -36
- package/src/components/SubHeader/Accessibilite.mdx +0 -13
- package/src/components/SubHeader/Accessibilite.stories.ts +0 -36
- package/src/components/SyAlert/Accessibilite.mdx +0 -13
- package/src/components/SyAlert/Accessibilite.stories.ts +0 -30
- package/src/components/TableToolbar/Accessibilite.mdx +0 -13
- package/src/components/TableToolbar/Accessibilite.stories.ts +0 -26
- package/src/components/UploadWorkflow/Accessibilite.mdx +0 -13
- package/src/components/UploadWorkflow/Accessibilite.stories.ts +0 -26
- package/src/components/UserMenuBtn/Accessibilite.mdx +0 -13
- package/src/components/UserMenuBtn/Accessibilite.stories.ts +0 -25
- /package/src/components/HeaderBar/{Usages.stories.ts → usages/Usages.stories.ts} +0 -0
- /package/src/components/NotFoundPage/assets/{not-found.svg → not-found-cnam.svg} +0 -0
- /package/src/components/SyBtnMenu/accessibilite/{AccessibilityGuide.mdx → Accessibility.mdx} +0 -0
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import ToolbarContainer from './ToolbarContainer.vue'
|
|
3
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
4
|
+
import { VBtn, VBtnToggle, VCheckbox, VDivider } from 'vuetify/components'
|
|
4
5
|
import { mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } from '@mdi/js'
|
|
6
|
+
import { ref } from 'vue'
|
|
5
7
|
|
|
6
8
|
const meta = {
|
|
7
9
|
title: 'Composants/Layout/ToolbarContainer',
|
|
8
|
-
component:
|
|
10
|
+
component: ToolbarContainer,
|
|
9
11
|
argTypes: {
|
|
10
12
|
default: {
|
|
11
13
|
control: false,
|
|
12
14
|
description: 'Contenu de la barre d\'outils',
|
|
13
15
|
},
|
|
14
16
|
},
|
|
15
|
-
} satisfies Meta<typeof
|
|
17
|
+
} satisfies Meta<typeof ToolbarContainer>
|
|
16
18
|
|
|
17
19
|
export default meta
|
|
18
20
|
|
|
@@ -21,41 +23,60 @@ type Story = StoryObj<typeof meta>
|
|
|
21
23
|
export const Default: Story = {
|
|
22
24
|
render: (args) => {
|
|
23
25
|
return {
|
|
24
|
-
components: { VBtn,
|
|
26
|
+
components: { VBtn, VBtnToggle, ToolbarContainer, SyIcon },
|
|
25
27
|
setup() {
|
|
26
|
-
|
|
28
|
+
const justification = ref<string>()
|
|
29
|
+
return { args, justification, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter }
|
|
27
30
|
},
|
|
28
31
|
template: `
|
|
29
32
|
<div>
|
|
30
|
-
<
|
|
33
|
+
<ToolbarContainer
|
|
31
34
|
class="d-flex flex-wrap ga-4"
|
|
32
35
|
aria-label="Outils de mise en forme"
|
|
33
36
|
>
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
37
|
+
<VBtnToggle
|
|
38
|
+
class="d-flex flex-wrap ga-2"
|
|
39
|
+
role="radiogroup"
|
|
40
|
+
aria-label="Alignement du texte"
|
|
41
|
+
v-model="justification"
|
|
42
|
+
color="primary"
|
|
43
|
+
style="overflow: visible;"
|
|
44
|
+
>
|
|
45
|
+
<VBtn
|
|
46
|
+
title="ferrer à gauche"
|
|
47
|
+
aria-label="ferrer à gauche"
|
|
48
|
+
role="radio"
|
|
49
|
+
value="left"
|
|
50
|
+
elevation="2"
|
|
51
|
+
size="small"
|
|
52
|
+
:aria-checked="justification === 'left' ? 'true' : 'false'"
|
|
53
|
+
>
|
|
54
|
+
<SyIcon :icon="mdiFormatAlignLeft" size="x-large" decorative />
|
|
55
|
+
</VBtn>
|
|
56
|
+
<VBtn
|
|
57
|
+
title="centrer"
|
|
58
|
+
aria-label="centrer"
|
|
59
|
+
role="radio"
|
|
60
|
+
value="center"
|
|
61
|
+
elevation="2"
|
|
62
|
+
size="small"
|
|
63
|
+
:aria-checked="justification === 'center' ? 'true' : 'false'"
|
|
64
|
+
>
|
|
65
|
+
<SyIcon :icon="mdiFormatAlignCenter" size="x-large" decorative />
|
|
66
|
+
</VBtn>
|
|
67
|
+
<VBtn
|
|
68
|
+
title="ferrer a droite"
|
|
69
|
+
aria-label="ferrer a droite"
|
|
70
|
+
role="radio"
|
|
71
|
+
value="right"
|
|
72
|
+
elevation="2"
|
|
73
|
+
size="small"
|
|
74
|
+
:aria-checked="justification === 'right' ? 'true' : 'false'"
|
|
75
|
+
>
|
|
76
|
+
<SyIcon :icon="mdiFormatAlignRight" size="x-large" decorative />
|
|
77
|
+
</VBtn>
|
|
78
|
+
</VBtnToggle>
|
|
79
|
+
</ToolbarContainer>
|
|
59
80
|
</div>
|
|
60
81
|
`,
|
|
61
82
|
}
|
|
@@ -65,38 +86,66 @@ export const Default: Story = {
|
|
|
65
86
|
{
|
|
66
87
|
name: 'Template',
|
|
67
88
|
code: `<template>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
89
|
+
<div>
|
|
90
|
+
<ToolbarContainer
|
|
91
|
+
class="d-flex flex-wrap ga-4"
|
|
92
|
+
aria-label="Outils de mise en forme"
|
|
93
|
+
>
|
|
94
|
+
<VBtnToggle
|
|
95
|
+
class="d-flex flex-wrap ga-2"
|
|
96
|
+
role="radiogroup"
|
|
97
|
+
aria-label="Alignement du texte"
|
|
98
|
+
v-model="justification"
|
|
99
|
+
color="primary"
|
|
100
|
+
style="overflow: visible;"
|
|
101
|
+
>
|
|
102
|
+
<VBtn
|
|
103
|
+
title="ferrer à gauche"
|
|
104
|
+
aria-label="ferrer à gauche"
|
|
105
|
+
role="radio"
|
|
106
|
+
value="left"
|
|
107
|
+
elevation="2"
|
|
108
|
+
size="small"
|
|
109
|
+
:aria-checked="justification === 'left' ? 'true' : 'false'"
|
|
110
|
+
>
|
|
111
|
+
<SyIcon :icon="mdiFormatAlignLeft" size="x-large" decorative />
|
|
112
|
+
</VBtn>
|
|
113
|
+
<VBtn
|
|
114
|
+
title="centrer"
|
|
115
|
+
aria-label="centrer"
|
|
116
|
+
role="radio"
|
|
117
|
+
value="center"
|
|
118
|
+
elevation="2"
|
|
119
|
+
size="small"
|
|
120
|
+
:aria-checked="justification === 'center' ? 'true' : 'false'"
|
|
121
|
+
>
|
|
122
|
+
<SyIcon :icon="mdiFormatAlignCenter" size="x-large" decorative />
|
|
123
|
+
</VBtn>
|
|
124
|
+
<VBtn
|
|
125
|
+
title="ferrer a droite"
|
|
126
|
+
aria-label="ferrer a droite"
|
|
127
|
+
role="radio"
|
|
128
|
+
value="right"
|
|
129
|
+
elevation="2"
|
|
130
|
+
size="small"
|
|
131
|
+
:aria-checked="justification === 'right' ? 'true' : 'false'"
|
|
72
132
|
>
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<VBtn>
|
|
90
|
-
<span class="d-sr-only">aligne a droite</span>
|
|
91
|
-
<VIcon
|
|
92
|
-
size="x-large"
|
|
93
|
-
>
|
|
94
|
-
{{ mdiFormatAlignRight }}
|
|
95
|
-
</VIcon>
|
|
96
|
-
</VBtn>
|
|
97
|
-
</Toolbar>
|
|
98
|
-
</div>
|
|
99
|
-
</tempalte>`,
|
|
133
|
+
<SyIcon :icon="mdiFormatAlignRight" size="x-large" decorative />
|
|
134
|
+
</VBtn>
|
|
135
|
+
</VBtnToggle>
|
|
136
|
+
</ToolbarContainer>
|
|
137
|
+
</div>
|
|
138
|
+
</template>
|
|
139
|
+
|
|
140
|
+
<script setup lang="ts">
|
|
141
|
+
import { ref } from 'vue'
|
|
142
|
+
import { VBtn, VBtnToggle } from 'vuetify/components'
|
|
143
|
+
import ToolbarContainer from '@/components/ToolbarContainer/ToolbarContainer.vue'
|
|
144
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
145
|
+
import { mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter } from '@mdi/js'
|
|
146
|
+
|
|
147
|
+
const justification = ref<string>()
|
|
148
|
+
</script>`,
|
|
100
149
|
},
|
|
101
150
|
],
|
|
102
151
|
},
|
|
@@ -105,42 +154,19 @@ export const Default: Story = {
|
|
|
105
154
|
export const WithCheckboxes: Story = {
|
|
106
155
|
render: (args) => {
|
|
107
156
|
return {
|
|
108
|
-
components: { VCheckbox,
|
|
157
|
+
components: { VCheckbox, ToolbarContainer, SyIcon },
|
|
109
158
|
setup() {
|
|
110
159
|
return { args }
|
|
111
160
|
},
|
|
112
161
|
template: `
|
|
113
|
-
<
|
|
162
|
+
<ToolbarContainer
|
|
114
163
|
class="d-flex flex-wrap ga-4"
|
|
115
164
|
aria-label="Options d'envoi"
|
|
116
165
|
>
|
|
117
|
-
<
|
|
118
|
-
label="Envoyer une copie"
|
|
119
|
-
color="primary"
|
|
120
|
-
hide-details
|
|
121
|
-
/>
|
|
122
|
-
<VCheckbox
|
|
123
|
-
label="Envoyer en copie cachée"
|
|
124
|
-
color="primary"
|
|
125
|
-
hide-details
|
|
126
|
-
/>
|
|
127
|
-
<VCheckbox
|
|
128
|
-
label="Confirmer la lecture"
|
|
129
|
-
color="primary"
|
|
130
|
-
hide-details
|
|
131
|
-
/>
|
|
132
|
-
</Toolbar>
|
|
133
|
-
`,
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
parameters: {
|
|
137
|
-
sourceCode: [
|
|
138
|
-
{
|
|
139
|
-
name: 'Template',
|
|
140
|
-
code: `<template>
|
|
141
|
-
<Toolbar
|
|
166
|
+
<div
|
|
142
167
|
class="d-flex flex-wrap ga-4"
|
|
143
|
-
|
|
168
|
+
role="group"
|
|
169
|
+
aria-label="Avertissements"
|
|
144
170
|
>
|
|
145
171
|
<VCheckbox
|
|
146
172
|
label="Envoyer une copie"
|
|
@@ -152,141 +178,199 @@ export const WithCheckboxes: Story = {
|
|
|
152
178
|
color="primary"
|
|
153
179
|
hide-details
|
|
154
180
|
/>
|
|
181
|
+
</div>
|
|
182
|
+
<div
|
|
183
|
+
class="d-flex flex-wrap ga-4"
|
|
184
|
+
role="group"
|
|
185
|
+
aria-label="Confirmations"
|
|
186
|
+
>
|
|
155
187
|
<VCheckbox
|
|
156
188
|
label="Confirmer la lecture"
|
|
157
189
|
color="primary"
|
|
158
190
|
hide-details
|
|
159
191
|
/>
|
|
160
|
-
</
|
|
161
|
-
</
|
|
192
|
+
</div>
|
|
193
|
+
</ToolbarContainer>
|
|
194
|
+
`,
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
parameters: {
|
|
198
|
+
sourceCode: [
|
|
199
|
+
{
|
|
200
|
+
name: 'Template',
|
|
201
|
+
code: `<template>
|
|
202
|
+
<ToolbarContainer
|
|
203
|
+
class="d-flex flex-wrap ga-4"
|
|
204
|
+
aria-label="Options d'envoi"
|
|
205
|
+
>
|
|
206
|
+
<div
|
|
207
|
+
class="d-flex flex-wrap ga-4"
|
|
208
|
+
role="group"
|
|
209
|
+
aria-label="Avertissements"
|
|
210
|
+
>
|
|
211
|
+
<VCheckbox
|
|
212
|
+
label="Envoyer une copie"
|
|
213
|
+
color="primary"
|
|
214
|
+
hide-details
|
|
215
|
+
/>
|
|
216
|
+
<VCheckbox
|
|
217
|
+
label="Envoyer en copie cachée"
|
|
218
|
+
color="primary"
|
|
219
|
+
hide-details
|
|
220
|
+
/>
|
|
221
|
+
</div>
|
|
222
|
+
<div
|
|
223
|
+
class="d-flex flex-wrap ga-4"
|
|
224
|
+
role="group"
|
|
225
|
+
aria-label="Confirmations"
|
|
226
|
+
>
|
|
227
|
+
<VCheckbox
|
|
228
|
+
label="Confirmer la lecture"
|
|
229
|
+
color="primary"
|
|
230
|
+
hide-details
|
|
231
|
+
/>
|
|
232
|
+
</div>
|
|
233
|
+
</ToolbarContainer>
|
|
234
|
+
</template>`,
|
|
162
235
|
},
|
|
163
236
|
],
|
|
164
237
|
},
|
|
165
238
|
}
|
|
166
239
|
|
|
167
|
-
export const
|
|
240
|
+
export const ManySections: Story = {
|
|
168
241
|
render: (args) => {
|
|
169
242
|
return {
|
|
170
|
-
components: { VBtn, VDivider,
|
|
243
|
+
components: { VBtn, VDivider, ToolbarContainer, SyIcon, VBtnToggle },
|
|
171
244
|
setup() {
|
|
172
|
-
|
|
245
|
+
const justification = ref()
|
|
246
|
+
const textDecoration = ref([])
|
|
247
|
+
return { args, justification, textDecoration, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill }
|
|
173
248
|
},
|
|
174
249
|
template: `
|
|
175
|
-
<
|
|
176
|
-
|
|
177
|
-
|
|
250
|
+
<ToolbarContainer
|
|
251
|
+
class="d-flex flex-wrap ga-4 align-center"
|
|
252
|
+
aria-label="Outils d'édition"
|
|
253
|
+
>
|
|
254
|
+
<VBtnToggle
|
|
255
|
+
class="d-flex flex-wrap ga-2"
|
|
256
|
+
role="radiogroup"
|
|
178
257
|
aria-label="Outils d'alignement"
|
|
258
|
+
v-model="justification"
|
|
259
|
+
color="primary"
|
|
260
|
+
style="overflow: visible;"
|
|
179
261
|
>
|
|
180
262
|
<VBtn
|
|
181
263
|
title="ferrer à gauche"
|
|
264
|
+
aria-label="ferrer à gauche"
|
|
265
|
+
role="radio"
|
|
266
|
+
value="left"
|
|
267
|
+
elevation="2"
|
|
268
|
+
size="small"
|
|
269
|
+
height="48"
|
|
270
|
+
:aria-checked="justification === 'left' ? 'true' : 'false'"
|
|
182
271
|
>
|
|
183
|
-
<
|
|
184
|
-
<VIcon
|
|
185
|
-
size="x-large"
|
|
186
|
-
>
|
|
187
|
-
{{ mdiFormatAlignLeft }}
|
|
188
|
-
</VIcon>
|
|
272
|
+
<SyIcon :icon="mdiFormatAlignLeft" size="x-large" decorative />
|
|
189
273
|
</VBtn>
|
|
190
274
|
<VBtn
|
|
191
275
|
title="justifier"
|
|
276
|
+
aria-label="justifier"
|
|
277
|
+
role="radio"
|
|
278
|
+
value="justify"
|
|
279
|
+
elevation="2"
|
|
280
|
+
size="small"
|
|
281
|
+
height="48"
|
|
282
|
+
:aria-checked="justification === 'justify' ? 'true' : 'false'"
|
|
192
283
|
>
|
|
193
|
-
<
|
|
194
|
-
<VIcon
|
|
195
|
-
size="x-large"
|
|
196
|
-
>
|
|
197
|
-
{{ mdiFormatAlignJustify }}
|
|
198
|
-
</VIcon>
|
|
284
|
+
<SyIcon :icon="mdiFormatAlignJustify" size="x-large" decorative />
|
|
199
285
|
</VBtn>
|
|
200
286
|
<VBtn
|
|
201
287
|
title="centrer"
|
|
288
|
+
aria-label="centrer"
|
|
289
|
+
role="radio"
|
|
290
|
+
value="center"
|
|
291
|
+
elevation="2"
|
|
292
|
+
size="small"
|
|
293
|
+
:aria-checked="justification === 'center' ? 'true' : 'false'"
|
|
202
294
|
>
|
|
203
|
-
<
|
|
204
|
-
<VIcon
|
|
205
|
-
size="x-large"
|
|
206
|
-
>
|
|
207
|
-
{{ mdiFormatAlignCenter }}
|
|
208
|
-
</VIcon>
|
|
295
|
+
<SyIcon :icon="mdiFormatAlignCenter" size="x-large" decorative />
|
|
209
296
|
</VBtn>
|
|
210
297
|
<VBtn
|
|
211
298
|
title="ferrer a droite"
|
|
299
|
+
aria-label="ferrer a droite"
|
|
300
|
+
role="radio"
|
|
301
|
+
value="right"
|
|
302
|
+
elevation="2"
|
|
303
|
+
size="small"
|
|
304
|
+
:aria-checked="justification === 'right' ? 'true' : 'false'"
|
|
212
305
|
>
|
|
213
|
-
<
|
|
214
|
-
<VIcon
|
|
215
|
-
size="x-large"
|
|
216
|
-
>
|
|
217
|
-
{{ mdiFormatAlignRight }}
|
|
218
|
-
</VIcon>
|
|
306
|
+
<SyIcon :icon="mdiFormatAlignRight" size="x-large" decorative />
|
|
219
307
|
</VBtn>
|
|
220
|
-
</
|
|
221
|
-
<
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
308
|
+
</VBtnToggle>
|
|
309
|
+
<span style="height: 48px; width: 2px; background-color: #999"></span>
|
|
310
|
+
<VBtnToggle
|
|
311
|
+
class="d-flex flex-wrap ga-2"
|
|
312
|
+
role="group"
|
|
313
|
+
aria-label="Style du texte"
|
|
314
|
+
v-model="textDecoration"
|
|
315
|
+
color="primary"
|
|
316
|
+
style="overflow: visible;"
|
|
317
|
+
multiple
|
|
228
318
|
>
|
|
229
319
|
<VBtn
|
|
230
320
|
title="gras"
|
|
321
|
+
aria-label="gras"
|
|
322
|
+
elevation="2"
|
|
323
|
+
size="small"
|
|
324
|
+
value="bold"
|
|
325
|
+
:aria-pressed="textDecoration.includes('bold') ? 'true' : 'false'"
|
|
231
326
|
>
|
|
232
|
-
<
|
|
233
|
-
<VIcon
|
|
234
|
-
size="x-large"
|
|
235
|
-
>
|
|
236
|
-
{{ mdiFormatBold }}
|
|
237
|
-
</VIcon>
|
|
327
|
+
<SyIcon :icon="mdiFormatBold" size="x-large" decorative />
|
|
238
328
|
</VBtn>
|
|
239
329
|
<VBtn
|
|
240
330
|
title="italique"
|
|
331
|
+
aria-label="italique"
|
|
332
|
+
elevation="2"
|
|
333
|
+
size="small"
|
|
334
|
+
value="italic"
|
|
335
|
+
:aria-pressed="textDecoration.includes('italic') ? 'true' : 'false'"
|
|
241
336
|
>
|
|
242
|
-
<
|
|
243
|
-
<VIcon
|
|
244
|
-
size="x-large"
|
|
245
|
-
>
|
|
246
|
-
{{ mdiFormatItalic }}
|
|
247
|
-
</VIcon>
|
|
337
|
+
<SyIcon :icon="mdiFormatItalic" size="x-large" decorative />
|
|
248
338
|
</VBtn>
|
|
249
339
|
<VBtn
|
|
250
340
|
title="souligné"
|
|
341
|
+
aria-label="souligné"
|
|
342
|
+
elevation="2"
|
|
343
|
+
size="small"
|
|
344
|
+
value="underline"
|
|
345
|
+
:aria-pressed="textDecoration.includes('underline') ? 'true' : 'false'"
|
|
251
346
|
>
|
|
252
|
-
<
|
|
253
|
-
<VIcon
|
|
254
|
-
size="x-large"
|
|
255
|
-
>
|
|
256
|
-
{{ mdiFormatUnderline }}
|
|
257
|
-
</VIcon>
|
|
347
|
+
<SyIcon :icon="mdiFormatUnderline" size="x-large" decorative />
|
|
258
348
|
</VBtn>
|
|
259
|
-
</
|
|
260
|
-
<
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
class="d-flex flex-wrap ga-4"
|
|
266
|
-
aria-label="Outils de couleur"
|
|
349
|
+
</VBtnToggle>
|
|
350
|
+
<span style="height: 48px; width: 2px; background-color: #999"></span>
|
|
351
|
+
<div
|
|
352
|
+
class="d-flex flex-wrap ga-2"
|
|
353
|
+
role="group"
|
|
354
|
+
aria-label="Couleurs"
|
|
267
355
|
>
|
|
268
356
|
<VBtn
|
|
269
|
-
title="couleur"
|
|
357
|
+
title="couleur du texte"
|
|
358
|
+
aria-label="couleur du texte"
|
|
359
|
+
size="small"
|
|
360
|
+
height="48"
|
|
270
361
|
>
|
|
271
|
-
<
|
|
272
|
-
<VIcon
|
|
273
|
-
size="x-large"
|
|
274
|
-
>
|
|
275
|
-
{{ mdiFormatColorText }}
|
|
276
|
-
</VIcon>
|
|
362
|
+
<SyIcon :icon="mdiFormatColorText" size="x-large" decorative />
|
|
277
363
|
</VBtn>
|
|
278
364
|
<VBtn
|
|
279
|
-
title="fond"
|
|
365
|
+
title="couleur de fond"
|
|
366
|
+
aria-label="couleur de fond"
|
|
367
|
+
size="small"
|
|
368
|
+
height="48"
|
|
280
369
|
>
|
|
281
|
-
<
|
|
282
|
-
<VIcon
|
|
283
|
-
size="x-large"
|
|
284
|
-
>
|
|
285
|
-
{{ mdiFormatColorFill }}
|
|
286
|
-
</VIcon>
|
|
370
|
+
<SyIcon :icon="mdiFormatColorFill" size="x-large" decorative />
|
|
287
371
|
</VBtn>
|
|
288
|
-
</
|
|
289
|
-
</
|
|
372
|
+
</div>
|
|
373
|
+
</ToolbarContainer>
|
|
290
374
|
`,
|
|
291
375
|
}
|
|
292
376
|
},
|
|
@@ -295,253 +379,288 @@ export const ManyTables: Story = {
|
|
|
295
379
|
{
|
|
296
380
|
name: 'Template',
|
|
297
381
|
code: `<template>
|
|
298
|
-
<
|
|
299
|
-
|
|
300
|
-
|
|
382
|
+
<ToolbarContainer
|
|
383
|
+
class="d-flex flex-wrap ga-4 align-center"
|
|
384
|
+
aria-label="Outils d'édition"
|
|
385
|
+
>
|
|
386
|
+
<VBtnToggle
|
|
387
|
+
class="d-flex flex-wrap ga-2"
|
|
388
|
+
role="radiogroup"
|
|
301
389
|
aria-label="Outils d'alignement"
|
|
390
|
+
v-model="justification"
|
|
391
|
+
color="primary"
|
|
392
|
+
style="overflow: visible;"
|
|
302
393
|
>
|
|
303
394
|
<VBtn
|
|
304
395
|
title="ferrer à gauche"
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
396
|
+
aria-label="ferrer à gauche"
|
|
397
|
+
role="radio"
|
|
398
|
+
value="left"
|
|
399
|
+
elevation="2"
|
|
400
|
+
size="small"
|
|
401
|
+
:aria-checked="justification === 'left' ? 'true' : 'false'"
|
|
402
|
+
>
|
|
403
|
+
<SyIcon :icon="mdiFormatAlignLeft" size="x-large" decorative />
|
|
312
404
|
</VBtn>
|
|
313
405
|
<VBtn
|
|
314
406
|
title="justifier"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
407
|
+
aria-label="justifier"
|
|
408
|
+
role="radio"
|
|
409
|
+
value="justify"
|
|
410
|
+
elevation="2"
|
|
411
|
+
size="small"
|
|
412
|
+
:aria-checked="justification === 'justify' ? 'true' : 'false'"
|
|
413
|
+
>
|
|
414
|
+
<SyIcon :icon="mdiFormatAlignJustify" size="x-large" decorative />
|
|
322
415
|
</VBtn>
|
|
323
416
|
<VBtn
|
|
324
417
|
title="centrer"
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
418
|
+
aria-label="centrer"
|
|
419
|
+
role="radio"
|
|
420
|
+
value="center"
|
|
421
|
+
elevation="2"
|
|
422
|
+
size="small"
|
|
423
|
+
:aria-checked="justification === 'center' ? 'true' : 'false'"
|
|
424
|
+
>
|
|
425
|
+
<SyIcon :icon="mdiFormatAlignCenter" size="x-large" decorative />
|
|
332
426
|
</VBtn>
|
|
333
427
|
<VBtn
|
|
334
428
|
title="ferrer a droite"
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
429
|
+
aria-label="ferrer a droite"
|
|
430
|
+
role="radio"
|
|
431
|
+
value="right"
|
|
432
|
+
elevation="2"
|
|
433
|
+
size="small"
|
|
434
|
+
:aria-checked="justification === 'right' ? 'true' : 'false'"
|
|
435
|
+
>
|
|
436
|
+
<SyIcon :icon="mdiFormatAlignRight" size="x-large" decorative />
|
|
342
437
|
</VBtn>
|
|
343
|
-
</
|
|
344
|
-
<
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
438
|
+
</VBtnToggle>
|
|
439
|
+
<span style="height: 48px; width: 2px; background-color: #999"></span>
|
|
440
|
+
<VBtnToggle
|
|
441
|
+
class="d-flex flex-wrap ga-2"
|
|
442
|
+
role="group"
|
|
443
|
+
aria-label="Style du texte"
|
|
444
|
+
v-model="textDecoration"
|
|
445
|
+
color="primary"
|
|
446
|
+
style="overflow: visible;"
|
|
447
|
+
multiple
|
|
351
448
|
>
|
|
352
449
|
<VBtn
|
|
353
450
|
title="gras"
|
|
451
|
+
aria-label="gras"
|
|
452
|
+
elevation="2"
|
|
453
|
+
size="small"
|
|
454
|
+
value="bold"
|
|
455
|
+
:aria-pressed="textDecoration.includes('bold') ? 'true' : 'false'"
|
|
354
456
|
>
|
|
355
|
-
<
|
|
356
|
-
<VIcon
|
|
357
|
-
size="x-large"
|
|
358
|
-
>
|
|
359
|
-
{{ mdiFormatBold }}
|
|
360
|
-
</VIcon>
|
|
457
|
+
<SyIcon :icon="mdiFormatBold" size="x-large" decorative />
|
|
361
458
|
</VBtn>
|
|
362
459
|
<VBtn
|
|
363
460
|
title="italique"
|
|
461
|
+
aria-label="italique"
|
|
462
|
+
elevation="2"
|
|
463
|
+
size="small"
|
|
464
|
+
value="italic"
|
|
465
|
+
:aria-pressed="textDecoration.includes('italic') ? 'true' : 'false'"
|
|
364
466
|
>
|
|
365
|
-
<
|
|
366
|
-
<VIcon
|
|
367
|
-
size="x-large"
|
|
368
|
-
>
|
|
369
|
-
{{ mdiFormatItalic }}
|
|
370
|
-
</VIcon>
|
|
467
|
+
<SyIcon :icon="mdiFormatItalic" size="x-large" decorative />
|
|
371
468
|
</VBtn>
|
|
372
469
|
<VBtn
|
|
373
470
|
title="souligné"
|
|
471
|
+
aria-label="souligné"
|
|
472
|
+
elevation="2"
|
|
473
|
+
size="small"
|
|
474
|
+
value="underline"
|
|
475
|
+
:aria-pressed="textDecoration.includes('underline') ? 'true' : 'false'"
|
|
374
476
|
>
|
|
375
|
-
<
|
|
376
|
-
<VIcon
|
|
377
|
-
size="x-large"
|
|
378
|
-
>
|
|
379
|
-
{{ mdiFormatUnderline }}
|
|
380
|
-
</VIcon>
|
|
477
|
+
<SyIcon :icon="mdiFormatUnderline" size="x-large" decorative />
|
|
381
478
|
</VBtn>
|
|
382
|
-
</
|
|
383
|
-
<
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
class="d-flex flex-wrap ga-4"
|
|
389
|
-
aria-label="Outils de couleur"
|
|
479
|
+
</VBtnToggle>
|
|
480
|
+
<span style="height: 48px; width: 2px; background-color: #999"></span>
|
|
481
|
+
<div
|
|
482
|
+
class="d-flex flex-wrap ga-2"
|
|
483
|
+
role="group"
|
|
484
|
+
aria-label="Couleurs"
|
|
390
485
|
>
|
|
391
486
|
<VBtn
|
|
392
|
-
title="couleur"
|
|
487
|
+
title="couleur du texte"
|
|
488
|
+
aria-label="couleur du texte"
|
|
489
|
+
size="small"
|
|
490
|
+
height="48"
|
|
393
491
|
>
|
|
394
|
-
<
|
|
395
|
-
<VIcon
|
|
396
|
-
size="x-large"
|
|
397
|
-
>
|
|
398
|
-
{{ mdiFormatColorText }}
|
|
399
|
-
</VIcon>
|
|
492
|
+
<SyIcon :icon="mdiFormatColorText" size="x-large" decorative />
|
|
400
493
|
</VBtn>
|
|
401
494
|
<VBtn
|
|
402
|
-
title="fond"
|
|
495
|
+
title="couleur de fond"
|
|
496
|
+
aria-label="couleur de fond"
|
|
497
|
+
size="small"
|
|
498
|
+
height="48"
|
|
403
499
|
>
|
|
404
|
-
<
|
|
405
|
-
<VIcon
|
|
406
|
-
size="x-large"
|
|
407
|
-
>
|
|
408
|
-
{{ mdiFormatColorFill }}
|
|
409
|
-
</VIcon>
|
|
500
|
+
<SyIcon :icon="mdiFormatColorFill" size="x-large" decorative />
|
|
410
501
|
</VBtn>
|
|
411
|
-
</
|
|
412
|
-
</
|
|
413
|
-
</template
|
|
502
|
+
</div>
|
|
503
|
+
</ToolbarContainer>
|
|
504
|
+
</template>
|
|
505
|
+
|
|
506
|
+
<script setup lang="ts">
|
|
507
|
+
import { ref } from 'vue'
|
|
508
|
+
import { VBtn, VBtnToggle } from 'vuetify/components'
|
|
509
|
+
import ToolbarContainer from '@/components/ToolbarContainer/ToolbarContainer.vue'
|
|
510
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
511
|
+
import { mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } from '@mdi/js'
|
|
512
|
+
|
|
513
|
+
const justification = ref<string>()
|
|
514
|
+
const textDecoration = ref<string[]>([])
|
|
515
|
+
</script>`,
|
|
414
516
|
},
|
|
415
517
|
],
|
|
416
518
|
},
|
|
417
519
|
}
|
|
418
520
|
|
|
419
|
-
export const
|
|
521
|
+
export const Vertical: Story = {
|
|
420
522
|
render: (args) => {
|
|
421
523
|
return {
|
|
422
|
-
components: { VBtn,
|
|
524
|
+
components: { VBtn, ToolbarContainer, SyIcon, VBtnToggle },
|
|
423
525
|
setup() {
|
|
424
|
-
|
|
526
|
+
const justification = ref<string>()
|
|
527
|
+
const textDecoration = ref<string[]>([])
|
|
528
|
+
return { args, justification, textDecoration, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill }
|
|
425
529
|
},
|
|
426
530
|
template: `
|
|
427
|
-
<
|
|
428
|
-
|
|
531
|
+
<ToolbarContainer
|
|
532
|
+
class="d-flex flex-column flex-wrap ga-4"
|
|
533
|
+
style="width: min-content;"
|
|
534
|
+
aria-label="Outils d'édition verticaux"
|
|
535
|
+
aria-orientation="vertical"
|
|
536
|
+
>
|
|
537
|
+
<VBtnToggle
|
|
429
538
|
class="d-flex flex-column flex-wrap ga-4"
|
|
539
|
+
role="radiogroup"
|
|
540
|
+
direction="vertical"
|
|
541
|
+
style="overflow: visible;"
|
|
542
|
+
color="primary"
|
|
430
543
|
aria-label="Outils d'alignement"
|
|
431
|
-
|
|
544
|
+
v-model="justification"
|
|
432
545
|
>
|
|
433
546
|
<VBtn
|
|
434
547
|
title="ferrer à gauche"
|
|
548
|
+
aria-label="ferrer à gauche"
|
|
549
|
+
role="radio"
|
|
550
|
+
value="left"
|
|
551
|
+
elevation="2"
|
|
552
|
+
size="small"
|
|
553
|
+
height="48"
|
|
554
|
+
:aria-checked="justification === 'left' ? 'true' : 'false'"
|
|
435
555
|
>
|
|
436
|
-
<
|
|
437
|
-
<VIcon
|
|
438
|
-
size="x-large"
|
|
439
|
-
>
|
|
440
|
-
{{ mdiFormatAlignLeft }}
|
|
441
|
-
</VIcon>
|
|
556
|
+
<SyIcon :icon="mdiFormatAlignLeft" size="x-large" decorative />
|
|
442
557
|
</VBtn>
|
|
443
558
|
<VBtn
|
|
444
559
|
title="justifier"
|
|
560
|
+
aria-label="justifier"
|
|
561
|
+
role="radio"
|
|
562
|
+
value="justify"
|
|
563
|
+
elevation="2"
|
|
564
|
+
size="small"
|
|
565
|
+
height="48"
|
|
566
|
+
:aria-checked="justification === 'justify' ? 'true' : 'false'"
|
|
445
567
|
>
|
|
446
|
-
<
|
|
447
|
-
<VIcon
|
|
448
|
-
size="x-large"
|
|
449
|
-
>
|
|
450
|
-
{{ mdiFormatAlignJustify }}
|
|
451
|
-
</VIcon>
|
|
568
|
+
<SyIcon :icon="mdiFormatAlignJustify" size="x-large" decorative />
|
|
452
569
|
</VBtn>
|
|
453
570
|
<VBtn
|
|
454
571
|
title="centrer"
|
|
572
|
+
aria-label="centrer"
|
|
573
|
+
role="radio"
|
|
574
|
+
value="center"
|
|
575
|
+
elevation="2"
|
|
576
|
+
size="small"
|
|
577
|
+
height="48"
|
|
578
|
+
:aria-checked="justification === 'center' ? 'true' : 'false'"
|
|
455
579
|
>
|
|
456
|
-
<
|
|
457
|
-
<VIcon
|
|
458
|
-
size="x-large"
|
|
459
|
-
>
|
|
460
|
-
{{ mdiFormatAlignCenter }}
|
|
461
|
-
</VIcon>
|
|
580
|
+
<SyIcon :icon="mdiFormatAlignCenter" size="x-large" decorative />
|
|
462
581
|
</VBtn>
|
|
463
582
|
<VBtn
|
|
464
583
|
title="ferrer a droite"
|
|
584
|
+
aria-label="ferrer a droite"
|
|
585
|
+
role="radio"
|
|
586
|
+
value="right"
|
|
587
|
+
elevation="2"
|
|
588
|
+
size="small"
|
|
589
|
+
height="48"
|
|
590
|
+
:aria-checked="justification === 'right' ? 'true' : 'false'"
|
|
465
591
|
>
|
|
466
|
-
<
|
|
467
|
-
<VIcon
|
|
468
|
-
size="x-large"
|
|
469
|
-
>
|
|
470
|
-
{{ mdiFormatAlignRight }}
|
|
471
|
-
</VIcon>
|
|
592
|
+
<SyIcon :icon="mdiFormatAlignRight" size="x-large" decorative />
|
|
472
593
|
</VBtn>
|
|
473
|
-
</
|
|
474
|
-
<
|
|
475
|
-
|
|
476
|
-
horizontal
|
|
477
|
-
/>
|
|
478
|
-
<Toolbar
|
|
594
|
+
</VBtnToggle>
|
|
595
|
+
<span style="height: 2px; width: 48px; background-color: #999"></span>
|
|
596
|
+
<VBtnToggle
|
|
479
597
|
class="d-flex flex-column flex-wrap ga-4"
|
|
480
|
-
|
|
481
|
-
|
|
598
|
+
role="group"
|
|
599
|
+
direction="vertical"
|
|
600
|
+
aria-label="Style du texte"
|
|
601
|
+
v-model="textDecoration"
|
|
602
|
+
color="primary"
|
|
603
|
+
style="overflow: visible;"
|
|
604
|
+
multiple
|
|
482
605
|
>
|
|
483
606
|
<VBtn
|
|
484
607
|
title="gras"
|
|
608
|
+
aria-label="gras"
|
|
609
|
+
elevation="2"
|
|
610
|
+
size="small"
|
|
611
|
+
height="48"
|
|
612
|
+
value="bold"
|
|
613
|
+
:aria-pressed="textDecoration.includes('bold') ? 'true' : 'false'"
|
|
485
614
|
>
|
|
486
|
-
<
|
|
487
|
-
<VIcon
|
|
488
|
-
size="x-large"
|
|
489
|
-
>
|
|
490
|
-
{{ mdiFormatBold }}
|
|
491
|
-
</VIcon>
|
|
615
|
+
<SyIcon :icon="mdiFormatBold" size="x-large" decorative />
|
|
492
616
|
</VBtn>
|
|
493
617
|
<VBtn
|
|
494
618
|
title="italique"
|
|
619
|
+
aria-label="italique"
|
|
620
|
+
elevation="2"
|
|
621
|
+
size="small"
|
|
622
|
+
height="48"
|
|
623
|
+
value="italic"
|
|
624
|
+
:aria-pressed="textDecoration.includes('italic') ? 'true' : 'false'"
|
|
495
625
|
>
|
|
496
|
-
<
|
|
497
|
-
<VIcon
|
|
498
|
-
size="x-large"
|
|
499
|
-
>
|
|
500
|
-
{{ mdiFormatItalic }}
|
|
501
|
-
</VIcon>
|
|
626
|
+
<SyIcon :icon="mdiFormatItalic" size="x-large" decorative />
|
|
502
627
|
</VBtn>
|
|
503
628
|
<VBtn
|
|
504
629
|
title="souligné"
|
|
630
|
+
aria-label="souligné"
|
|
631
|
+
elevation="2"
|
|
632
|
+
size="small"
|
|
633
|
+
height="48"
|
|
634
|
+
value="underline"
|
|
635
|
+
:aria-pressed="textDecoration.includes('underline') ? 'true' : 'false'"
|
|
505
636
|
>
|
|
506
|
-
<
|
|
507
|
-
<VIcon
|
|
508
|
-
size="x-large"
|
|
509
|
-
>
|
|
510
|
-
{{ mdiFormatUnderline }}
|
|
511
|
-
</VIcon>
|
|
637
|
+
<SyIcon :icon="mdiFormatUnderline" size="x-large" decorative />
|
|
512
638
|
</VBtn>
|
|
513
|
-
</
|
|
514
|
-
<
|
|
515
|
-
|
|
516
|
-
horizontal
|
|
517
|
-
/>
|
|
518
|
-
<Toolbar
|
|
639
|
+
</VBtnToggle>
|
|
640
|
+
<span style="height: 2px; width: 48px; background-color: #999"></span>
|
|
641
|
+
<div
|
|
519
642
|
class="d-flex flex-column flex-wrap ga-4"
|
|
520
|
-
|
|
521
|
-
aria-
|
|
643
|
+
role="group"
|
|
644
|
+
aria-label="Couleurs"
|
|
522
645
|
>
|
|
523
646
|
<VBtn
|
|
524
|
-
title="couleur"
|
|
647
|
+
title="couleur du texte"
|
|
648
|
+
aria-label="couleur du texte"
|
|
649
|
+
size="small"
|
|
650
|
+
height="48"
|
|
525
651
|
>
|
|
526
|
-
<
|
|
527
|
-
<VIcon
|
|
528
|
-
size="x-large"
|
|
529
|
-
>
|
|
530
|
-
{{ mdiFormatColorText }}
|
|
531
|
-
</VIcon>
|
|
652
|
+
<SyIcon :icon="mdiFormatColorText" size="x-large" decorative />
|
|
532
653
|
</VBtn>
|
|
533
654
|
<VBtn
|
|
534
|
-
title="fond"
|
|
655
|
+
title="couleur de fond"
|
|
656
|
+
aria-label="couleur de fond"
|
|
657
|
+
size="small"
|
|
658
|
+
height="48"
|
|
535
659
|
>
|
|
536
|
-
<
|
|
537
|
-
<VIcon
|
|
538
|
-
size="x-large"
|
|
539
|
-
>
|
|
540
|
-
{{ mdiFormatColorFill }}
|
|
541
|
-
</VIcon>
|
|
660
|
+
<SyIcon :icon="mdiFormatColorFill" size="x-large" decorative />
|
|
542
661
|
</VBtn>
|
|
543
|
-
</
|
|
544
|
-
</
|
|
662
|
+
</div>
|
|
663
|
+
</ToolbarContainer>
|
|
545
664
|
`,
|
|
546
665
|
}
|
|
547
666
|
},
|
|
@@ -550,125 +669,149 @@ export const Horizontal: Story = {
|
|
|
550
669
|
{
|
|
551
670
|
name: 'Template',
|
|
552
671
|
code: `<template>
|
|
553
|
-
<
|
|
554
|
-
|
|
672
|
+
<ToolbarContainer
|
|
673
|
+
class="d-flex flex-column flex-wrap ga-4"
|
|
674
|
+
style="width: min-content;"
|
|
675
|
+
aria-label="Outils d'édition verticaux"
|
|
676
|
+
aria-orientation="vertical"
|
|
677
|
+
>
|
|
678
|
+
<VBtnToggle
|
|
555
679
|
class="d-flex flex-column flex-wrap ga-4"
|
|
680
|
+
role="radiogroup"
|
|
681
|
+
direction="vertical"
|
|
682
|
+
style="overflow: visible;"
|
|
683
|
+
color="primary"
|
|
556
684
|
aria-label="Outils d'alignement"
|
|
557
|
-
|
|
685
|
+
v-model="justification"
|
|
558
686
|
>
|
|
559
687
|
<VBtn
|
|
560
688
|
title="ferrer à gauche"
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
689
|
+
aria-label="ferrer à gauche"
|
|
690
|
+
role="radio"
|
|
691
|
+
value="left"
|
|
692
|
+
elevation="2"
|
|
693
|
+
size="small"
|
|
694
|
+
:aria-checked="justification === 'left' ? 'true' : 'false'"
|
|
695
|
+
>
|
|
696
|
+
<SyIcon :icon="mdiFormatAlignLeft" size="x-large" decorative />
|
|
568
697
|
</VBtn>
|
|
569
698
|
<VBtn
|
|
570
699
|
title="justifier"
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
700
|
+
aria-label="justifier"
|
|
701
|
+
role="radio"
|
|
702
|
+
value="justify"
|
|
703
|
+
elevation="2"
|
|
704
|
+
size="small"
|
|
705
|
+
:aria-checked="justification === 'justify' ? 'true' : 'false'"
|
|
706
|
+
>
|
|
707
|
+
<SyIcon :icon="mdiFormatAlignJustify" size="x-large" decorative />
|
|
578
708
|
</VBtn>
|
|
579
709
|
<VBtn
|
|
580
710
|
title="centrer"
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
711
|
+
aria-label="centrer"
|
|
712
|
+
role="radio"
|
|
713
|
+
value="center"
|
|
714
|
+
elevation="2"
|
|
715
|
+
size="small"
|
|
716
|
+
height="48"
|
|
717
|
+
:aria-checked="justification === 'center' ? 'true' : 'false'"
|
|
718
|
+
>
|
|
719
|
+
<SyIcon :icon="mdiFormatAlignCenter" size="x-large" decorative />
|
|
588
720
|
</VBtn>
|
|
589
721
|
<VBtn
|
|
590
722
|
title="ferrer a droite"
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
723
|
+
aria-label="ferrer a droite"
|
|
724
|
+
role="radio"
|
|
725
|
+
value="right"
|
|
726
|
+
elevation="2"
|
|
727
|
+
size="small"
|
|
728
|
+
height="48"
|
|
729
|
+
:aria-checked="justification === 'right' ? 'true' : 'false'"
|
|
730
|
+
>
|
|
731
|
+
<SyIcon :icon="mdiFormatAlignRight" size="x-large" decorative />
|
|
598
732
|
</VBtn>
|
|
599
|
-
</
|
|
600
|
-
<
|
|
601
|
-
|
|
602
|
-
horizontal
|
|
603
|
-
/>
|
|
604
|
-
<Toolbar
|
|
733
|
+
</VBtnToggle>
|
|
734
|
+
<span style="height: 2px; width: 48px; background-color: #999"></span>
|
|
735
|
+
<VBtnToggle
|
|
605
736
|
class="d-flex flex-column flex-wrap ga-4"
|
|
606
|
-
|
|
607
|
-
|
|
737
|
+
role="group"
|
|
738
|
+
direction="vertical"
|
|
739
|
+
aria-label="Style du texte"
|
|
740
|
+
v-model="textDecoration"
|
|
741
|
+
color="primary"
|
|
742
|
+
style="overflow: visible;"
|
|
743
|
+
multiple
|
|
608
744
|
>
|
|
609
745
|
<VBtn
|
|
610
746
|
title="gras"
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
747
|
+
aria-label="gras"
|
|
748
|
+
elevation="2"
|
|
749
|
+
size="small"
|
|
750
|
+
height="48"
|
|
751
|
+
value="bold"
|
|
752
|
+
:aria-pressed="textDecoration.includes('bold') ? 'true' : 'false'"
|
|
753
|
+
>
|
|
754
|
+
<SyIcon :icon="mdiFormatBold" size="x-large" decorative />
|
|
618
755
|
</VBtn>
|
|
619
756
|
<VBtn
|
|
620
757
|
title="italique"
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
758
|
+
aria-label="italique"
|
|
759
|
+
elevation="2"
|
|
760
|
+
size="small"
|
|
761
|
+
height="48"
|
|
762
|
+
value="italic"
|
|
763
|
+
:aria-pressed="textDecoration.includes('italic') ? 'true' : 'false'"
|
|
764
|
+
>
|
|
765
|
+
<SyIcon :icon="mdiFormatItalic" size="x-large" decorative />
|
|
628
766
|
</VBtn>
|
|
629
767
|
<VBtn
|
|
630
768
|
title="souligné"
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
769
|
+
aria-label="souligné"
|
|
770
|
+
elevation="2"
|
|
771
|
+
size="small"
|
|
772
|
+
height="48"
|
|
773
|
+
value="underline"
|
|
774
|
+
:aria-pressed="textDecoration.includes('underline') ? 'true' : 'false'"
|
|
775
|
+
>
|
|
776
|
+
<SyIcon :icon="mdiFormatUnderline" size="x-large" decorative />
|
|
638
777
|
</VBtn>
|
|
639
|
-
</
|
|
640
|
-
<
|
|
641
|
-
|
|
642
|
-
horizontal
|
|
643
|
-
/>
|
|
644
|
-
<Toolbar
|
|
778
|
+
</VBtnToggle>
|
|
779
|
+
<span style="height: 2px; width: 48px; background-color: #999"></span>
|
|
780
|
+
<div
|
|
645
781
|
class="d-flex flex-column flex-wrap ga-4"
|
|
646
|
-
|
|
647
|
-
aria-
|
|
782
|
+
role="group"
|
|
783
|
+
aria-label="Couleurs"
|
|
648
784
|
>
|
|
649
785
|
<VBtn
|
|
650
|
-
title="couleur"
|
|
786
|
+
title="couleur du texte"
|
|
787
|
+
aria-label="couleur du texte"
|
|
788
|
+
size="small"
|
|
789
|
+
height="48"
|
|
651
790
|
>
|
|
652
|
-
<
|
|
653
|
-
<VIcon
|
|
654
|
-
size="x-large"
|
|
655
|
-
>
|
|
656
|
-
{{ mdiFormatColorText }}
|
|
657
|
-
</VIcon>
|
|
791
|
+
<SyIcon :icon="mdiFormatColorText" size="x-large" decorative />
|
|
658
792
|
</VBtn>
|
|
659
793
|
<VBtn
|
|
660
|
-
title="fond"
|
|
794
|
+
title="couleur de fond"
|
|
795
|
+
aria-label="couleur de fond"
|
|
796
|
+
size="small"
|
|
797
|
+
height="48"
|
|
661
798
|
>
|
|
662
|
-
<
|
|
663
|
-
<VIcon
|
|
664
|
-
size="x-large"
|
|
665
|
-
>
|
|
666
|
-
{{ mdiFormatColorFill }}
|
|
667
|
-
</VIcon>
|
|
799
|
+
<SyIcon :icon="mdiFormatColorFill" size="x-large" decorative />
|
|
668
800
|
</VBtn>
|
|
669
|
-
</
|
|
670
|
-
</
|
|
671
|
-
</template
|
|
801
|
+
</div>
|
|
802
|
+
</ToolbarContainer>
|
|
803
|
+
</template>
|
|
804
|
+
|
|
805
|
+
<script setup lang="ts">
|
|
806
|
+
import { ref } from 'vue'
|
|
807
|
+
import { VBtn, VBtnToggle } from 'vuetify/components'
|
|
808
|
+
import ToolbarContainer from '@/components/ToolbarContainer/ToolbarContainer.vue'
|
|
809
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
810
|
+
import { mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } from '@mdi/js'
|
|
811
|
+
|
|
812
|
+
const justification = ref<string>()
|
|
813
|
+
const textDecoration = ref<string[]>([])
|
|
814
|
+
</script>`,
|
|
672
815
|
},
|
|
673
816
|
],
|
|
674
817
|
},
|