@cnamts/synapse 1.0.19 → 1.0.20
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-XURUmpMl.js} +1 -1
- package/dist/{NumberFilter-C8PAu_sw.js → NumberFilter-BZc0O8wV.js} +1 -1
- package/dist/{PeriodFilter-UMUaxx3d.js → PeriodFilter-ZNdXcl3p.js} +1 -1
- package/dist/{SelectFilter-CqZl8CYt.js → SelectFilter-DshYU5OK.js} +1 -1
- package/dist/{TextFilter-D_RhhNOh.js → TextFilter-D_c5dRPl.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/SyIcon/SyIcon.d.ts +2 -1
- package/dist/components/DatePicker/composables/useDateSelection.d.ts +1 -0
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +1 -1
- package/dist/components/PaginatedTable/Pagination.d.ts +17 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -5
- package/dist/components/Tables/SyTable/SyTable.d.ts +5 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/types.d.ts +15 -0
- package/dist/composables/useFormFieldErrorHandling.d.ts +31 -0
- package/dist/design-system-v3.js +68 -67
- package/dist/design-system-v3.umd.cjs +320 -309
- package/dist/{main-B39UVv5p.js → main-CuI6xaPq.js} +9921 -9194
- package/dist/modules.d.ts +6 -0
- package/dist/style.css +1 -1
- package/package.json +8 -9
- 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/accessibilite/Accessibility.mdx +15 -0
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +15 -0
- 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/SyCheckbox/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- 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/{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 +14 -2
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +297 -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/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/accessibilite/Accessibility.mdx +15 -0
- 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/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/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -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/accessibilite/Accessibility.mdx +15 -0
- package/src/components/NirField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +15 -0
- package/src/components/NotificationBar/Notification/Notification.vue +1 -1
- package/src/components/NotificationBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/PageContainer/{AccessibilityGuide.mdx → Accessibilite/Accessibility.mdx} +7 -4
- package/src/components/PageContainer/Accessibilite/AccessibilityGuide.mdx +0 -0
- 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/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/accessibilite/Accessibility.mdx +15 -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.vue +6 -3
- package/src/components/TableToolbar/accessibilite/Accessibility.mdx +12 -0
- 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/accessibilite/Accessibility.mdx +12 -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 +2 -0
- package/src/components/types.ts +10 -0
- package/src/composables/rules/useFieldValidation.ts +7 -0
- package/src/composables/useFormFieldErrorHandling.ts +141 -0
- package/src/modules.d.ts +6 -0
- 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/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/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/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/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/HeaderToolbar/Accessibilite.mdx +0 -13
- package/src/components/HeaderToolbar/Accessibilite.stories.ts +0 -36
- 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/MaintenancePage/Accessibilite.mdx +0 -13
- package/src/components/MaintenancePage/Accessibilite.stories.ts +0 -36
- 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/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/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/SyBtnMenu/accessibilite/{AccessibilityGuide.mdx → Accessibility.mdx} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../ChipList.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div class="mt-2">
|
|
13
|
+
<p>Rapport d’audit manuel : <a href="/audits/ChipList.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
14
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/814" target="_blank" style={{color:'#0C41BD'}}>issue #814</a>)</p>
|
|
15
|
+
</div>
|
package/src/components/CollapsibleList/{Accessibilite.mdx → accessibilite/Accessibility.mdx}
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/blocks';
|
|
2
|
-
import * as
|
|
3
|
-
import * as CollapsibleListStories from './CollapsibleList.stories';
|
|
2
|
+
import * as CollapsibleListStories from '../CollapsibleList.stories';
|
|
4
3
|
import AccessibilityIcon from '@/common/imgs/accessibility-svgrepo-com.svg';
|
|
5
4
|
import {
|
|
6
5
|
AccessibilityGuideLayout,
|
|
@@ -10,9 +9,9 @@ import {
|
|
|
10
9
|
BestPracticesSection,
|
|
11
10
|
ResourcesSection,
|
|
12
11
|
AuditSection,
|
|
13
|
-
} from '
|
|
12
|
+
} from '@/stories/accessibility/AccessibilityGuideLayout.mdx';
|
|
14
13
|
|
|
15
|
-
<Meta of={
|
|
14
|
+
<Meta of={CollapsibleListStories} />
|
|
16
15
|
|
|
17
16
|
<AccessibilityGuideLayout
|
|
18
17
|
componentName="CollapsibleList"
|
|
@@ -68,7 +67,10 @@ import {
|
|
|
68
67
|
</ResourcesSection>
|
|
69
68
|
|
|
70
69
|
<AuditSection>
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
<div class="mt-2">
|
|
71
|
+
<p>Rapport d’audit manuel : <a href="/audits/CollapsibleList.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
72
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/792" target="_blank" style={{color:'#0C41BD'}}>issue #792</a>)</p>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
73
75
|
</AuditSection>
|
|
74
76
|
</AccessibilityGuideLayout>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
const slots = useSlots()
|
|
26
26
|
|
|
27
27
|
const hasDefaultSlotContent = computed(() => {
|
|
28
|
-
const vnodes = slots.default?.() ?? []
|
|
28
|
+
const vnodes = slots.default?.({}) ?? []
|
|
29
29
|
return vnodes.some((vnode) => {
|
|
30
30
|
if (vnode.type === Comment) return false
|
|
31
31
|
if (vnode.type === Text) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../ContextualMenu.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div class="mt-2">
|
|
13
|
+
<p>Rapport d’audit manuel : <a href="/audits/ContextualMenu.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
14
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/658" target="_blank" style={{color:'#0C41BD'}}>issue #658</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as CookiesStories from '../CookieBanner.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={CookiesStories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div class="mt-2">
|
|
13
|
+
<p>Rapport d’audit manuel : <a href="/audits/Cookies.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
14
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/806" target="_blank" style={{color:'#0C41BD'}}>issue #806</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import CookiesTable from '../CookiesTable/CookiesTable.vue'
|
|
7
7
|
import type { CookieTypes, Cookie } from '../types'
|
|
8
8
|
import { locales } from './locales'
|
|
9
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
9
10
|
|
|
10
11
|
defineProps<{
|
|
11
12
|
type: CookieTypes
|
|
@@ -104,12 +105,12 @@
|
|
|
104
105
|
<summary class="mb-1">
|
|
105
106
|
{{ open ? locales.hideInformation : locales.showInformation }}
|
|
106
107
|
|
|
107
|
-
<
|
|
108
|
+
<SyIcon
|
|
109
|
+
:icon="open ? mdiChevronUp : mdiChevronDown"
|
|
108
110
|
class="mr-2"
|
|
109
111
|
data-test="chevron"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</VIcon>
|
|
112
|
+
decorative
|
|
113
|
+
/>
|
|
113
114
|
</summary>
|
|
114
115
|
|
|
115
116
|
<CookiesTable
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { locales } from './locales'
|
|
9
9
|
import { config } from './config'
|
|
10
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
10
11
|
|
|
11
12
|
const props = withDefaults(defineProps<CustomizableOptions & {
|
|
12
13
|
ariaLabel?: string
|
|
@@ -106,9 +107,11 @@
|
|
|
106
107
|
@click="copy"
|
|
107
108
|
>
|
|
108
109
|
<slot name="icon">
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
<SyIcon
|
|
111
|
+
v-bind="options.icon"
|
|
112
|
+
:icon="copyIcon"
|
|
113
|
+
decorative
|
|
114
|
+
/>
|
|
112
115
|
</slot>
|
|
113
116
|
</VBtn>
|
|
114
117
|
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../CopyBtn.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div class="mt-2">
|
|
13
|
+
<p>Rapport d’audit manuel : <a href="/audits/CopyBtn.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
14
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/4008" target="_blank" style={{color:'#0C41BD'}}>issue #4008</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../SelectBtnField.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div class="mt-2">
|
|
13
|
+
<p>Rapport d’audit manuel : <a href="/audits/SelectBtnField.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
14
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/916" target="_blank" style={{color:'#0C41BD'}}>issue #916</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -11,7 +11,7 @@ import '../../../stories/styles/shared.css';
|
|
|
11
11
|
|
|
12
12
|
## Variantes disponibles
|
|
13
13
|
|
|
14
|
-
Notre système propose
|
|
14
|
+
Notre système propose cinq modes de sélection, chacun adapté à des besoins spécifiques :
|
|
15
15
|
|
|
16
16
|
<div className="sb-unstyled" style={{ display: 'flex', flexDirection: 'column', gap: '20px', marginBottom: '30px' }}>
|
|
17
17
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '20px' }}>
|
|
@@ -52,6 +52,78 @@ Notre système propose quatre modes de sélection, chacun adapté à des besoins
|
|
|
52
52
|
</span>
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
|
+
|
|
56
|
+
<div
|
|
57
|
+
style={{
|
|
58
|
+
flex: '1 1 300px',
|
|
59
|
+
border: '1px solid #e0e0e0',
|
|
60
|
+
borderRadius: '8px',
|
|
61
|
+
padding: '20px',
|
|
62
|
+
boxShadow: '0 2px 5px rgba(0,0,0,0.05)',
|
|
63
|
+
transition: 'all 0.2s ease',
|
|
64
|
+
backgroundColor: '#fff'
|
|
65
|
+
}}
|
|
66
|
+
onClick={() => linkTo('Composants/Formulaires/Selects/SyAutocomplete')()}
|
|
67
|
+
>
|
|
68
|
+
<img style={{ width: '40%', height: 'auto', marginLeft: '35%' }} src="/components/search-list-field.svg" alt="SyAutocomplete" />
|
|
69
|
+
<h3 style={{ marginTop: 0, marginBottom: '10px', color: '#512da8' }}>SyAutocomplete</h3>
|
|
70
|
+
<div>Champ de saisie avec suggestions filtrées, compatible simple ou multiple, avec gestion des états et des puces.</div>
|
|
71
|
+
<div style={{ marginTop: '10px', color: '#666' }}>
|
|
72
|
+
<strong>Idéal pour :</strong>
|
|
73
|
+
<ul style={{ marginLeft: '20px', marginTop: '5px' }}>
|
|
74
|
+
<li>Rechercher dans des listes longues</li>
|
|
75
|
+
<li>Filtrer côté client en temps réel</li>
|
|
76
|
+
<li>Afficher des chips pour les sélections multiples</li>
|
|
77
|
+
<li>Gérer les erreurs, avertissements et succès</li>
|
|
78
|
+
</ul>
|
|
79
|
+
</div>
|
|
80
|
+
<div style={{ marginTop: '15px' }}>
|
|
81
|
+
<span style={{
|
|
82
|
+
padding: '5px 10px',
|
|
83
|
+
color: '#512da8',
|
|
84
|
+
borderRadius: '4px',
|
|
85
|
+
fontSize: '14px',
|
|
86
|
+
cursor: 'pointer',
|
|
87
|
+
}} onClick={() => linkTo('Composants/Formulaires/Selects/SyAutocomplete')()}>
|
|
88
|
+
Voir la documentation →
|
|
89
|
+
</span>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div
|
|
94
|
+
style={{
|
|
95
|
+
flex: '1 1 300px',
|
|
96
|
+
border: '1px solid #e0e0e0',
|
|
97
|
+
borderRadius: '8px',
|
|
98
|
+
padding: '20px',
|
|
99
|
+
boxShadow: '0 2px 5px rgba(0,0,0,0.05)',
|
|
100
|
+
transition: 'all 0.2s ease',
|
|
101
|
+
backgroundColor: '#fff'
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
<img style={{ width: '40%', height: 'auto', marginLeft: '35%' }} src="/components/sy-btn-select.svg" alt="SySelect" />
|
|
105
|
+
<h3 style={{ marginTop: 0, marginBottom: '10px', color: '#00796b' }}>SyBtnSelect</h3>
|
|
106
|
+
<div>Un composant de sélection sous forme de bouton, idéal pour les menus utilisateur ou les sélecteurs compacts.</div>
|
|
107
|
+
<div style={{ marginTop: '10px', color: '#666' }}>
|
|
108
|
+
<strong>Idéal pour :</strong>
|
|
109
|
+
<ul style={{ marginLeft: '20px', marginTop: '5px' }}>
|
|
110
|
+
<li>Menus utilisateur</li>
|
|
111
|
+
<li>Interfaces compactes</li>
|
|
112
|
+
<li>Affichage d'informations principales et secondaires</li>
|
|
113
|
+
</ul>
|
|
114
|
+
</div>
|
|
115
|
+
<div style={{ marginTop: '15px' }}>
|
|
116
|
+
<span style={{
|
|
117
|
+
padding: '5px 10px',
|
|
118
|
+
color: '#00796b',
|
|
119
|
+
borderRadius: '4px',
|
|
120
|
+
fontSize: '14px',
|
|
121
|
+
cursor: 'pointer',
|
|
122
|
+
}} onClick={() => linkTo('Composants/Formulaires/Selects/SyBtnSelect')()}>
|
|
123
|
+
Voir la documentation →
|
|
124
|
+
</span>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
55
127
|
</div>
|
|
56
128
|
|
|
57
129
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '20px' }}>
|
|
@@ -125,6 +197,7 @@ Notre système propose quatre modes de sélection, chacun adapté à des besoins
|
|
|
125
197
|
<thead>
|
|
126
198
|
<tr style={{ backgroundColor: '#f5f5f5' }}>
|
|
127
199
|
<th style={{ padding: '12px', textAlign: 'left', borderBottom: '2px solid #e0e0e0' }}>Fonctionnalité</th>
|
|
200
|
+
<th style={{ padding: '12px', textAlign: 'center', borderBottom: '2px solid #e0e0e0' }}>SyAutocomplete</th>
|
|
128
201
|
<th style={{ padding: '12px', textAlign: 'center', borderBottom: '2px solid #e0e0e0' }}>SySelect</th>
|
|
129
202
|
<th style={{ padding: '12px', textAlign: 'center', borderBottom: '2px solid #e0e0e0' }}>SelectBtnField</th>
|
|
130
203
|
</tr>
|
|
@@ -134,45 +207,65 @@ Notre système propose quatre modes de sélection, chacun adapté à des besoins
|
|
|
134
207
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Sélection multiple</td>
|
|
135
208
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
136
209
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
210
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
137
211
|
</tr>
|
|
138
212
|
<tr>
|
|
139
213
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Affichage de puces (chips)</td>
|
|
140
214
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
215
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
141
216
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
142
217
|
</tr>
|
|
143
218
|
<tr>
|
|
144
219
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Validation intégrée</td>
|
|
145
220
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
146
221
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
222
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
223
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
147
224
|
</tr>
|
|
148
225
|
<tr>
|
|
149
226
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Apparence de bouton</td>
|
|
150
227
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
228
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
229
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
230
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
231
|
+
</tr>
|
|
232
|
+
<tr>
|
|
233
|
+
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Mode icône uniquement</td>
|
|
234
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
235
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
151
236
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
237
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
152
238
|
</tr>
|
|
153
239
|
<tr>
|
|
154
240
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Effaçable (clearable)</td>
|
|
155
241
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
156
242
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
243
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
157
244
|
</tr>
|
|
158
245
|
<tr>
|
|
159
246
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Densité personnalisable</td>
|
|
160
247
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
248
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
161
249
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
162
250
|
</tr>
|
|
163
251
|
<tr>
|
|
164
252
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Retourne l'objet complet</td>
|
|
165
253
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
254
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
166
255
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
167
256
|
</tr>
|
|
168
257
|
<tr>
|
|
169
258
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Disposition en ligne/colonne</td>
|
|
170
259
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
260
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
261
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
171
262
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
172
263
|
</tr>
|
|
173
264
|
<tr>
|
|
174
265
|
<td style={{ padding: '10px', borderBottom: '1px solid #e0e0e0' }}>Options uniques</td>
|
|
175
266
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
267
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
268
|
+
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>❌</td>
|
|
176
269
|
<td style={{ padding: '10px', textAlign: 'center', borderBottom: '1px solid #e0e0e0' }}>✅</td>
|
|
177
270
|
</tr>
|
|
178
271
|
</tbody>
|
|
@@ -186,6 +279,16 @@ Notre système propose quatre modes de sélection, chacun adapté à des besoins
|
|
|
186
279
|
- Vous souhaitez afficher les sélections multiples sous forme de puces (chips)
|
|
187
280
|
- Vous avez besoin de personnaliser la densité d'affichage
|
|
188
281
|
|
|
282
|
+
### Utilisez SyAutocomplete quand :
|
|
283
|
+
- Vous voulez filtrer la liste au fil de la saisie
|
|
284
|
+
- Vous manipulez des listes longues nécessitant une recherche côté client
|
|
285
|
+
- Vous avez besoin d'un champ unique ou multiple avec puces et gestion des états (erreur / avertissement / succès)
|
|
286
|
+
|
|
287
|
+
### Utilisez SyBtnSelect quand :
|
|
288
|
+
- Vous créez un menu utilisateur ou un sélecteur compact
|
|
289
|
+
- Vous souhaitez afficher des informations principales et secondaires
|
|
290
|
+
- Vous avez besoin d'un mode icône uniquement pour les interfaces très compactes
|
|
291
|
+
|
|
189
292
|
### Utilisez SelectBtnField quand :
|
|
190
293
|
- Vous avez besoin d'options visuellement distinctes sous forme de boutons
|
|
191
294
|
- Vous souhaitez permettre la sélection multiple ou unique d'options
|
|
@@ -204,6 +307,14 @@ Notre système propose quatre modes de sélection, chacun adapté à des besoins
|
|
|
204
307
|
required
|
|
205
308
|
/>
|
|
206
309
|
|
|
310
|
+
// SyAutocomplete - Recherche avec suggestions
|
|
311
|
+
<SyAutocomplete
|
|
312
|
+
v-model="autocompleteValue"
|
|
313
|
+
:items="options"
|
|
314
|
+
label="Rechercher une option"
|
|
315
|
+
clearable
|
|
316
|
+
/>
|
|
317
|
+
|
|
207
318
|
// SySelect - Sélection multiple avec puces
|
|
208
319
|
<SySelect
|
|
209
320
|
v-model="selectedOptions"
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {Controls, Canvas, Meta, Source, Story} from '@storybook/blocks';
|
|
2
|
+
import '../../../../stories/styles/shared.css';
|
|
3
|
+
|
|
4
|
+
import SyAutocomplete from './SyAutocomplete.vue';
|
|
5
|
+
import * as SyAutocompleteStories from './SyAutocomplete.stories';
|
|
6
|
+
|
|
7
|
+
<Meta title="Composants/Formulaires/Selects/SyAutocomplete" component={SyAutocomplete}/>
|
|
8
|
+
|
|
9
|
+
<div className="header">
|
|
10
|
+
<h1>SyAutocomplete</h1>
|
|
11
|
+
<p>Le composant `SyAutocomplete` permet à l'utilisateur de rechercher et sélectionner une valeur dans une liste d'options.</p>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<Canvas of={SyAutocompleteStories.Default} />
|
|
15
|
+
|
|
16
|
+
## API
|
|
17
|
+
|
|
18
|
+
<Controls of={SyAutocompleteStories.Default} />
|
|
19
|
+
|
|
20
|
+
## Exemple d'utilisation avec Vue
|
|
21
|
+
|
|
22
|
+
<Source dark code={`
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import { ref } from 'vue'
|
|
25
|
+
import { SyAutocomplete } from '@cnamts/synapse'
|
|
26
|
+
|
|
27
|
+
const items = [
|
|
28
|
+
{
|
|
29
|
+
"text": "Adrien",
|
|
30
|
+
"value": "Adrien"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"text": "Axel",
|
|
34
|
+
"value": "Axel"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"text": "Baptiste",
|
|
38
|
+
"value": "Baptiste"
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
const selected = ref('')
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<SyAutocomplete
|
|
47
|
+
v-model="selected"
|
|
48
|
+
:items="items"
|
|
49
|
+
label="Rechercher un prénom"
|
|
50
|
+
/>
|
|
51
|
+
</template>
|
|
52
|
+
`} />
|