@cnamts/synapse 1.0.1 → 1.0.2

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.
Files changed (217) hide show
  1. package/README.md +1 -1
  2. package/dist/{DateFilter-BmRuzQ9Z.js → DateFilter-YWOTbfeL.js} +1 -1
  3. package/dist/{NumberFilter-CnIPDHqx.js → NumberFilter-DMmMgALM.js} +1 -1
  4. package/dist/{PeriodFilter-CZwZ8CnQ.js → PeriodFilter-Bok5BHcn.js} +1 -1
  5. package/dist/SelectFilter-BKud2WhN.js +136 -0
  6. package/dist/{TextFilter-DTxZHJwX.js → TextFilter-DvMf2thH.js} +1 -1
  7. package/dist/components/Accordion/Accordion.d.ts +2 -1
  8. package/dist/components/Accordion/composables/useAccordionGroupCommunication.d.ts +5 -0
  9. package/dist/components/Accordion/composables/useAccordionKeyboardNavigation.d.ts +12 -0
  10. package/dist/components/Accordion/composables/useAccordionState.d.ts +13 -0
  11. package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +85 -0
  12. package/dist/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -0
  13. package/dist/components/Customs/SySelect/SySelect.d.ts +33 -13
  14. package/dist/components/Customs/SyTextField/SyTextField.d.ts +2 -2
  15. package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +1585 -1452
  16. package/dist/components/DatePicker/DatePicker/DatePicker.d.ts +16 -2
  17. package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +3 -1
  18. package/dist/components/DatePicker/composables/index.d.ts +2 -0
  19. package/dist/components/DatePicker/composables/useAsteriskDisplay.d.ts +14 -0
  20. package/dist/components/DatePicker/composables/useDateAutoClamp.d.ts +16 -0
  21. package/dist/components/DatePicker/composables/useDateRangeInput.d.ts +1 -1
  22. package/dist/components/DatePicker/composables/useDisplayedDateString.d.ts +3 -0
  23. package/dist/components/DatePicker/composables/useInputBlurHandler.d.ts +1 -0
  24. package/dist/components/DatePicker/composables/useMonthButtonCustomization.d.ts +5 -2
  25. package/dist/components/NirField/NirField.d.ts +7 -3
  26. package/dist/components/NirField/nirValidation.d.ts +1 -1
  27. package/dist/components/PasswordField/PasswordField.d.ts +2 -0
  28. package/dist/components/PeriodField/PeriodField.d.ts +52 -8
  29. package/dist/components/PhoneField/PhoneField.d.ts +2 -2
  30. package/dist/components/RangeField/RangeField.d.ts +2 -0
  31. package/dist/components/SearchListField/SearchListField.d.ts +9 -0
  32. package/dist/components/SyTextArea/SyTextArea.d.ts +2 -0
  33. package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +14 -9
  34. package/dist/components/Tables/SyTable/SyTable.d.ts +12 -7
  35. package/dist/components/Tables/common/SyTablePagination.d.ts +1636 -0
  36. package/dist/components/Tables/common/TableHeader.d.ts +2 -20
  37. package/dist/components/Tables/common/filters/SelectFilter.d.ts +5 -5
  38. package/dist/components/Tables/common/filters/getFilterComponent.d.ts +1 -0
  39. package/dist/components/Tables/common/filters/locales.d.ts +4 -0
  40. package/dist/components/Tables/common/filters/logics/date.d.ts +1 -0
  41. package/dist/components/Tables/common/filters/logics/number.d.ts +1 -0
  42. package/dist/components/Tables/common/filters/logics/period.d.ts +1 -0
  43. package/dist/components/Tables/common/filters/logics/select.d.ts +1 -0
  44. package/dist/components/Tables/common/filters/logics/text.d.ts +1 -0
  45. package/dist/components/Tables/common/locales.d.ts +21 -0
  46. package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +267 -0
  47. package/dist/components/Tables/common/organizeColumns/sortHeaders.d.ts +2 -0
  48. package/dist/components/Tables/common/tableFilterUtils.d.ts +1 -0
  49. package/dist/components/Tables/common/tableStorageUtils.d.ts +41 -1
  50. package/dist/components/Tables/common/tableUtils.d.ts +42 -5
  51. package/dist/components/Tables/common/types.d.ts +19 -8
  52. package/dist/components/Tables/common/usePagination.d.ts +22 -0
  53. package/dist/components/Tables/common/useTableCheckbox.d.ts +20 -0
  54. package/dist/components/Tables/common/useTableHeaders.d.ts +76 -0
  55. package/dist/components/Tables/common/useTableItems.d.ts +24 -0
  56. package/dist/components/Tables/common/useTableOptions.d.ts +18 -0
  57. package/dist/components/ToolbarContainer/ToolbarContainer.d.ts +11 -0
  58. package/dist/components/UserMenuBtn/UserMenuBtn.d.ts +9 -2
  59. package/dist/components/index.d.ts +8 -6
  60. package/dist/design-system-v3.js +58 -56
  61. package/dist/design-system-v3.umd.cjs +22 -22
  62. package/dist/main-Cx8qG7YR.js +16344 -0
  63. package/dist/stories/Accessibilite/Vuetify/VuetifyItems.d.ts +14 -2
  64. package/dist/stories/DesignTokens/StylesTypographiques.stories.new.d.ts +8 -0
  65. package/dist/stories/DesignTokens/TypographyDisplay.d.ts +28 -0
  66. package/dist/stories/DesignTokens/vue-shims.d.ts +6 -0
  67. package/dist/style.css +1 -1
  68. package/package.json +1 -1
  69. package/src/common/imgs/accessibility-svgrepo-com.svg +4 -0
  70. package/src/components/Accordion/Accessibilite/AccessibilityGuide.mdx +249 -0
  71. package/src/components/Accordion/Accordion.vue +48 -76
  72. package/src/components/Accordion/composables/__tests__/useAccordionGroupCommunication.spec.ts +146 -0
  73. package/src/components/Accordion/composables/__tests__/useAccordionKeyboardNavigation.spec.ts +209 -0
  74. package/src/components/Accordion/composables/__tests__/useAccordionState.spec.ts +144 -0
  75. package/src/components/Accordion/composables/useAccordionGroupCommunication.ts +52 -0
  76. package/src/components/Accordion/composables/useAccordionKeyboardNavigation.ts +111 -0
  77. package/src/components/Accordion/composables/useAccordionState.ts +59 -0
  78. package/src/components/Accordion/tests/__snapshots__/accordion.spec.ts.snap +3 -0
  79. package/src/components/Customs/SyCheckbox/Accessibilite.mdx +303 -0
  80. package/src/components/Customs/SyCheckbox/SyCheckbox.mdx +50 -0
  81. package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +630 -0
  82. package/src/components/Customs/SyCheckbox/SyCheckbox.vue +326 -0
  83. package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +201 -0
  84. package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +1 -0
  85. package/src/components/Customs/SyInputSelect/SyInputSelect.vue +8 -1
  86. package/src/components/Customs/SySelect/SySelect.stories.ts +160 -0
  87. package/src/components/Customs/SySelect/SySelect.vue +291 -32
  88. package/src/components/Customs/SySelect/tests/SySelect.spec.ts +230 -0
  89. package/src/components/Customs/SyTextField/SyTextField.stories.ts +3 -2
  90. package/src/components/Customs/SyTextField/SyTextField.vue +19 -8
  91. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +241 -31
  92. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +305 -57
  93. package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.events.spec.ts +161 -0
  94. package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +4 -2
  95. package/src/components/DatePicker/DatePicker/DatePicker.stories.ts +259 -137
  96. package/src/components/DatePicker/DatePicker/DatePicker.vue +153 -25
  97. package/src/components/DatePicker/DatePicker/tests/DatePicker.events.spec.ts +189 -0
  98. package/src/components/DatePicker/DatePicker/{DatePicker.spec.ts → tests/DatePicker.spec.ts} +1 -15
  99. package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +24 -14
  100. package/src/components/DatePicker/DateTextInput/DateTextInput.events.spec.ts +148 -0
  101. package/src/components/DatePicker/DateTextInput/DateTextInput.spec.ts +3 -1
  102. package/src/components/DatePicker/DateTextInput/DateTextInput.vue +200 -5
  103. package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +241 -31
  104. package/src/components/DatePicker/composables/index.ts +2 -0
  105. package/src/components/DatePicker/composables/tests/useDateAutoClamp.spec.ts +190 -0
  106. package/src/components/DatePicker/composables/tests/useInputBlurHandler.spec.ts +182 -4
  107. package/src/components/DatePicker/composables/tests/useMonthButtonCustomization.spec.ts +105 -80
  108. package/src/components/DatePicker/composables/useAsteriskDisplay.ts +31 -0
  109. package/src/components/DatePicker/composables/useDateAutoClamp.ts +136 -0
  110. package/src/components/DatePicker/composables/useDateRangeInput.ts +21 -18
  111. package/src/components/DatePicker/composables/useDisplayedDateString.ts +13 -1
  112. package/src/components/DatePicker/composables/useInputBlurHandler.ts +84 -20
  113. package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +149 -51
  114. package/src/components/DiacriticPicker/DiacriticPicker.stories.ts +10 -0
  115. package/src/components/ErrorPage/Accessibilite.stories.ts +8 -0
  116. package/src/components/ErrorPage/ErrorPage.vue +12 -6
  117. package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +4 -4
  118. package/src/components/NirField/NirField.mdx +22 -9
  119. package/src/components/NirField/NirField.stories.ts +26 -2
  120. package/src/components/NirField/NirField.vue +209 -22
  121. package/src/components/NirField/nirValidation.ts +17 -3
  122. package/src/components/NirField/tests/NirField.spec.ts +2 -2
  123. package/src/components/NotFoundPage/Accessibilite.stories.ts +8 -0
  124. package/src/components/NotFoundPage/NotFoundPage.vue +2 -1
  125. package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +8 -6
  126. package/src/components/PaginatedTable/PaginatedTable.mdx +2 -0
  127. package/src/components/PasswordField/PasswordField.stories.ts +4 -0
  128. package/src/components/PasswordField/PasswordField.vue +3 -0
  129. package/src/components/PeriodField/PeriodField.vue +2 -0
  130. package/src/components/PhoneField/PhoneField.stories.ts +15 -15
  131. package/src/components/PhoneField/PhoneField.vue +1 -1
  132. package/src/components/RangeField/RangeField.stories.ts +9 -0
  133. package/src/components/RangeField/RangeField.vue +4 -0
  134. package/src/components/RangeField/tests/__snapshots__/RangeField.spec.ts.snap +12 -0
  135. package/src/components/SearchListField/SearchListField.vue +5 -0
  136. package/src/components/SyTextArea/SyTextArea.vue +3 -0
  137. package/src/components/SyTextArea/tests/SyTextArea.spec.ts +0 -1
  138. package/src/components/Tables/SyServerTable/FilterRules.stories.ts +632 -15
  139. package/src/components/Tables/SyServerTable/SyServerTable.mdx +15 -5
  140. package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +2844 -1377
  141. package/src/components/Tables/SyServerTable/SyServerTable.vue +155 -66
  142. package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +256 -4
  143. package/src/components/Tables/SyTable/FilterRules.stories.ts +183 -0
  144. package/src/components/Tables/SyTable/SyTable.mdx +14 -4
  145. package/src/components/Tables/SyTable/SyTable.stories.ts +1265 -477
  146. package/src/components/Tables/SyTable/SyTable.vue +152 -72
  147. package/src/components/Tables/SyTable/tests/SyTable.spec.ts +366 -4
  148. package/src/components/Tables/common/SyTableFilter.vue +3 -56
  149. package/src/components/Tables/common/SyTablePagination.vue +375 -0
  150. package/src/components/Tables/common/TableHeader.vue +10 -26
  151. package/src/components/Tables/common/filters/SelectFilter.vue +131 -22
  152. package/src/components/Tables/common/filters/getFilterComponent.ts +54 -0
  153. package/src/components/Tables/common/filters/locales.ts +4 -0
  154. package/src/components/Tables/common/filters/logics/date.ts +12 -0
  155. package/src/components/Tables/common/filters/logics/number.ts +48 -0
  156. package/src/components/Tables/common/filters/logics/period.ts +25 -0
  157. package/src/components/Tables/common/filters/logics/select.ts +27 -0
  158. package/src/components/Tables/common/filters/logics/tests/TextFilterLogic.spec.ts +177 -0
  159. package/src/components/Tables/common/filters/logics/text.ts +62 -0
  160. package/src/components/Tables/common/filters/tests/TextFilter.spec.ts +11 -11
  161. package/src/components/Tables/common/locales.ts +24 -0
  162. package/src/components/Tables/common/organizeColumns/OrganizeColumns.vue +269 -0
  163. package/src/components/Tables/common/organizeColumns/sortHeaders.ts +9 -0
  164. package/src/components/Tables/common/tableFilterUtils.ts +43 -295
  165. package/src/components/Tables/common/tableStorageUtils.ts +27 -2
  166. package/src/components/Tables/common/tableStyles.scss +26 -0
  167. package/src/components/Tables/common/tableUtils.ts +3 -16
  168. package/src/components/Tables/common/tests/SyTablePagination.spec.ts +170 -0
  169. package/src/components/Tables/common/tests/filterByRange.spec.ts +215 -0
  170. package/src/components/Tables/common/tests/tableFilterUtils.spec.ts +0 -14
  171. package/src/components/Tables/common/tests/tableUtils.spec.ts +7 -51
  172. package/src/components/Tables/common/types.ts +17 -6
  173. package/src/components/Tables/common/usePagination.ts +83 -0
  174. package/src/components/Tables/common/useTableCheckbox.ts +58 -0
  175. package/src/components/Tables/common/useTableHeaders.ts +88 -0
  176. package/src/components/Tables/common/useTableItems.ts +87 -0
  177. package/src/components/Tables/common/useTableOptions.ts +93 -0
  178. package/src/components/ToolbarContainer/ToolbarContainer.mdx +16 -0
  179. package/src/components/ToolbarContainer/ToolbarContainer.stories.ts +675 -0
  180. package/src/components/ToolbarContainer/ToolbarContainer.vue +128 -0
  181. package/src/components/ToolbarContainer/tests/ToolbarContainer.spec.ts +156 -0
  182. package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +74 -0
  183. package/src/components/UserMenuBtn/UserMenuBtn.vue +19 -17
  184. package/src/components/index.ts +8 -6
  185. package/src/stories/Accessibilite/Aculturation/AuditDesignSystem.mdx +293 -20
  186. package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +448 -54
  187. package/src/stories/Accessibilite/Audit/RGAA.mdx +231 -23
  188. package/src/stories/Accessibilite/Avancement/Avancement.mdx +591 -7
  189. package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +139 -38
  190. package/src/stories/Accessibilite/Introduction.mdx +258 -18
  191. package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +221 -31
  192. package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +204 -22
  193. package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +537 -24
  194. package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +577 -70
  195. package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru.mdx +382 -31
  196. package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +419 -81
  197. package/src/stories/Accessibilite/Vuetify/Vuetify.mdx +132 -6
  198. package/src/stories/Accessibilite/Vuetify/Vuetify.stories.ts +370 -146
  199. package/src/stories/Accessibilite/Vuetify/VuetifyItems.ts +35 -57
  200. package/src/stories/Demarrer/Accueil.stories.ts +20 -5
  201. package/src/stories/DesignTokens/StylesTypographiques.mdx +10 -9
  202. package/src/stories/DesignTokens/StylesTypographiques.stories.new.ts +397 -0
  203. package/src/stories/DesignTokens/StylesTypographiques.stories.ts +397 -0
  204. package/src/stories/DesignTokens/TypographyDisplay.vue +155 -0
  205. package/src/stories/DesignTokens/vue-shims.d.ts +6 -0
  206. package/src/stories/GuideDuDev/LesBreackingChanges.mdx +0 -2
  207. package/src/stories/GuideDuDev/MigrationDepuisBridge.mdx +1 -1
  208. package/src/stories/GuideDuDev/MigrationDepuisVue2.mdx +1 -1
  209. package/src/stories/GuideDuDev/PortailAgent.mdx +10 -0
  210. package/src/stories/GuideDuDev/PortailAgent.stories.ts +506 -0
  211. package/src/stories/GuideDuDev/Theme.mdx +41 -0
  212. package/dist/SelectFilter-Cj-GW2Cc.js +0 -97
  213. package/dist/main-WDqeoGM-.js +0 -14788
  214. package/src/components/PaginatedTable/tests/__snapshots__/PaginatedTable.spec.ts.snap +0 -886
  215. package/src/components/Tables/SyServerTable/tests/__snapshots__/SyServerTable.spec.ts.snap +0 -521
  216. package/src/components/Tables/SyTable/tests/__snapshots__/SyTable.spec.ts.snap +0 -521
  217. package/src/stories/DesignTokens/ThemePA.mdx +0 -35
@@ -0,0 +1,675 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import Toolbar from './ToolbarContainer.vue'
3
+ import { VBtn, VCheckbox, VDivider } from 'vuetify/components'
4
+ import { mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill } from '@mdi/js'
5
+
6
+ const meta = {
7
+ title: 'Composants/Layout/ToolbarContainer',
8
+ component: Toolbar,
9
+ argTypes: {
10
+ default: {
11
+ control: false,
12
+ description: 'Contenu de la barre d\'outils',
13
+ },
14
+ },
15
+ } satisfies Meta<typeof Toolbar>
16
+
17
+ export default meta
18
+
19
+ type Story = StoryObj<typeof meta>
20
+
21
+ export const Default: Story = {
22
+ render: (args) => {
23
+ return {
24
+ components: { VBtn, Toolbar },
25
+ setup() {
26
+ return { args, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter }
27
+ },
28
+ template: `
29
+ <div>
30
+ <Toolbar
31
+ class="d-flex flex-wrap ga-4"
32
+ aria-label="Outils de mise en forme"
33
+ >
34
+ <VBtn>
35
+ <span class="d-sr-only">aligne a gauche</span>
36
+ <VIcon
37
+ size="x-large"
38
+ >
39
+ {{ mdiFormatAlignLeft }}
40
+ </VIcon>
41
+ </VBtn>
42
+ <VBtn>
43
+ <span class="d-sr-only">aligne au centre</span>
44
+ <VIcon
45
+ size="x-large"
46
+ >
47
+ {{ mdiFormatAlignCenter }}
48
+ </VIcon>
49
+ </VBtn>
50
+ <VBtn>
51
+ <span class="d-sr-only">aligne a droite</span>
52
+ <VIcon
53
+ size="x-large"
54
+ >
55
+ {{ mdiFormatAlignRight }}
56
+ </VIcon>
57
+ </VBtn>
58
+ </Toolbar>
59
+ </div>
60
+ `,
61
+ }
62
+ },
63
+ parameters: {
64
+ sourceCode: [
65
+ {
66
+ name: 'Template',
67
+ code: `<template>
68
+ <div>
69
+ <Toolbar
70
+ class="d-flex flex-wrap ga-4"
71
+ aria-label="Outils de mise en forme"
72
+ >
73
+ <VBtn>
74
+ <span class="d-sr-only">aligne a gauche</span>
75
+ <VIcon
76
+ size="x-large"
77
+ >
78
+ {{ mdiFormatAlignLeft }}
79
+ </VIcon>
80
+ </VBtn>
81
+ <VBtn>
82
+ <span class="d-sr-only">aligne au centre</span>
83
+ <VIcon
84
+ size="x-large"
85
+ >
86
+ {{ mdiFormatAlignCenter }}
87
+ </VIcon>
88
+ </VBtn>
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>`,
100
+ },
101
+ ],
102
+ },
103
+ }
104
+
105
+ export const WithCheckboxes: Story = {
106
+ render: (args) => {
107
+ return {
108
+ components: { VCheckbox, Toolbar },
109
+ setup() {
110
+ return { args }
111
+ },
112
+ template: `
113
+ <Toolbar
114
+ class="d-flex flex-wrap ga-4"
115
+ aria-label="Options d'envoi"
116
+ >
117
+ <VCheckbox
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
142
+ class="d-flex flex-wrap ga-4"
143
+ aria-label="Options d'envoi"
144
+ >
145
+ <VCheckbox
146
+ label="Envoyer une copie"
147
+ color="primary"
148
+ hide-details
149
+ />
150
+ <VCheckbox
151
+ label="Envoyer en copie cachée"
152
+ color="primary"
153
+ hide-details
154
+ />
155
+ <VCheckbox
156
+ label="Confirmer la lecture"
157
+ color="primary"
158
+ hide-details
159
+ />
160
+ </Toolbar>
161
+ </tempalte>`,
162
+ },
163
+ ],
164
+ },
165
+ }
166
+
167
+ export const ManyTables: Story = {
168
+ render: (args) => {
169
+ return {
170
+ components: { VBtn, VDivider, Toolbar },
171
+ setup() {
172
+ return { args, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill }
173
+ },
174
+ template: `
175
+ <div class="d-flex flex-wrap ga-4">
176
+ <Toolbar
177
+ class="d-flex flex-wrap ga-4"
178
+ aria-label="Outils d'alignement"
179
+ >
180
+ <VBtn
181
+ title="ferrer à gauche"
182
+ >
183
+ <span class="d-sr-only">aligne a gauche</span>
184
+ <VIcon
185
+ size="x-large"
186
+ >
187
+ {{ mdiFormatAlignLeft }}
188
+ </VIcon>
189
+ </VBtn>
190
+ <VBtn
191
+ title="justifier"
192
+ >
193
+ <span class="d-sr-only">Texte justifié</span>
194
+ <VIcon
195
+ size="x-large"
196
+ >
197
+ {{ mdiFormatAlignJustify }}
198
+ </VIcon>
199
+ </VBtn>
200
+ <VBtn
201
+ title="centrer"
202
+ >
203
+ <span class="d-sr-only">aligne au centre</span>
204
+ <VIcon
205
+ size="x-large"
206
+ >
207
+ {{ mdiFormatAlignCenter }}
208
+ </VIcon>
209
+ </VBtn>
210
+ <VBtn
211
+ title="ferrer a droite"
212
+ >
213
+ <span class="d-sr-only">aligne à droite</span>
214
+ <VIcon
215
+ size="x-large"
216
+ >
217
+ {{ mdiFormatAlignRight }}
218
+ </VIcon>
219
+ </VBtn>
220
+ </Toolbar>
221
+ <VDivider
222
+ :thickness="2"
223
+ vertical
224
+ />
225
+ <Toolbar
226
+ class="d-flex flex-wrap ga-4"
227
+ aria-label="Outils de mise en forme du texte"
228
+ >
229
+ <VBtn
230
+ title="gras"
231
+ >
232
+ <span class="d-sr-only">Text gras</span>
233
+ <VIcon
234
+ size="x-large"
235
+ >
236
+ {{ mdiFormatBold }}
237
+ </VIcon>
238
+ </VBtn>
239
+ <VBtn
240
+ title="italique"
241
+ >
242
+ <span class="d-sr-only">Text italique</span>
243
+ <VIcon
244
+ size="x-large"
245
+ >
246
+ {{ mdiFormatItalic }}
247
+ </VIcon>
248
+ </VBtn>
249
+ <VBtn
250
+ title="souligné"
251
+ >
252
+ <span class="d-sr-only">Text souligné</span>
253
+ <VIcon
254
+ size="x-large"
255
+ >
256
+ {{ mdiFormatUnderline }}
257
+ </VIcon>
258
+ </VBtn>
259
+ </Toolbar>
260
+ <VDivider
261
+ :thickness="2"
262
+ vertical
263
+ />
264
+ <Toolbar
265
+ class="d-flex flex-wrap ga-4"
266
+ aria-label="Outils de couleur"
267
+ >
268
+ <VBtn
269
+ title="couleur"
270
+ >
271
+ <span class="d-sr-only">couleur du texte</span>
272
+ <VIcon
273
+ size="x-large"
274
+ >
275
+ {{ mdiFormatColorText }}
276
+ </VIcon>
277
+ </VBtn>
278
+ <VBtn
279
+ title="fond"
280
+ >
281
+ <span class="d-sr-only">Couleur de fond</span>
282
+ <VIcon
283
+ size="x-large"
284
+ >
285
+ {{ mdiFormatColorFill }}
286
+ </VIcon>
287
+ </VBtn>
288
+ </Toolbar>
289
+ </div>
290
+ `,
291
+ }
292
+ },
293
+ parameters: {
294
+ sourceCode: [
295
+ {
296
+ name: 'Template',
297
+ code: `<template>
298
+ <div class="d-flex flex-wrap ga-4">
299
+ <Toolbar
300
+ class="d-flex flex-wrap ga-4"
301
+ aria-label="Outils d'alignement"
302
+ >
303
+ <VBtn
304
+ title="ferrer à gauche"
305
+ >
306
+ <span class="d-sr-only">aligne a gauche</span>
307
+ <VIcon
308
+ size="x-large"
309
+ >
310
+ {{ mdiFormatAlignLeft }}
311
+ </VIcon>
312
+ </VBtn>
313
+ <VBtn
314
+ title="justifier"
315
+ >
316
+ <span class="d-sr-only">Texte justifié</span>
317
+ <VIcon
318
+ size="x-large"
319
+ >
320
+ {{ mdiFormatAlignJustify }}
321
+ </VIcon>
322
+ </VBtn>
323
+ <VBtn
324
+ title="centrer"
325
+ >
326
+ <span class="d-sr-only">aligne au centre</span>
327
+ <VIcon
328
+ size="x-large"
329
+ >
330
+ {{ mdiFormatAlignCenter }}
331
+ </VIcon>
332
+ </VBtn>
333
+ <VBtn
334
+ title="ferrer a droite"
335
+ >
336
+ <span class="d-sr-only">aligne à droite</span>
337
+ <VIcon
338
+ size="x-large"
339
+ >
340
+ {{ mdiFormatAlignRight }}
341
+ </VIcon>
342
+ </VBtn>
343
+ </Toolbar>
344
+ <VDivider
345
+ :thickness="2"
346
+ vertical
347
+ />
348
+ <Toolbar
349
+ class="d-flex flex-wrap ga-4"
350
+ aria-label="Outils de mise en forme du texte"
351
+ >
352
+ <VBtn
353
+ title="gras"
354
+ >
355
+ <span class="d-sr-only">Text gras</span>
356
+ <VIcon
357
+ size="x-large"
358
+ >
359
+ {{ mdiFormatBold }}
360
+ </VIcon>
361
+ </VBtn>
362
+ <VBtn
363
+ title="italique"
364
+ >
365
+ <span class="d-sr-only">Text italique</span>
366
+ <VIcon
367
+ size="x-large"
368
+ >
369
+ {{ mdiFormatItalic }}
370
+ </VIcon>
371
+ </VBtn>
372
+ <VBtn
373
+ title="souligné"
374
+ >
375
+ <span class="d-sr-only">Text souligné</span>
376
+ <VIcon
377
+ size="x-large"
378
+ >
379
+ {{ mdiFormatUnderline }}
380
+ </VIcon>
381
+ </VBtn>
382
+ </Toolbar>
383
+ <VDivider
384
+ :thickness="2"
385
+ vertical
386
+ />
387
+ <Toolbar
388
+ class="d-flex flex-wrap ga-4"
389
+ aria-label="Outils de couleur"
390
+ >
391
+ <VBtn
392
+ title="couleur"
393
+ >
394
+ <span class="d-sr-only">couleur du texte</span>
395
+ <VIcon
396
+ size="x-large"
397
+ >
398
+ {{ mdiFormatColorText }}
399
+ </VIcon>
400
+ </VBtn>
401
+ <VBtn
402
+ title="fond"
403
+ >
404
+ <span class="d-sr-only">Couleur de fond</span>
405
+ <VIcon
406
+ size="x-large"
407
+ >
408
+ {{ mdiFormatColorFill }}
409
+ </VIcon>
410
+ </VBtn>
411
+ </Toolbar>
412
+ </div>
413
+ </template>`,
414
+ },
415
+ ],
416
+ },
417
+ }
418
+
419
+ export const Horizontal: Story = {
420
+ render: (args) => {
421
+ return {
422
+ components: { VBtn, VDivider, Toolbar },
423
+ setup() {
424
+ return { args, mdiFormatAlignRight, mdiFormatAlignLeft, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatBold, mdiFormatItalic, mdiFormatUnderline, mdiFormatColorText, mdiFormatColorFill }
425
+ },
426
+ template: `
427
+ <div class="d-flex flex-column flex-wrap ga-4" style="width: min-content;">
428
+ <Toolbar
429
+ class="d-flex flex-column flex-wrap ga-4"
430
+ aria-label="Outils d'alignement"
431
+ aria-orientation="vertical"
432
+ >
433
+ <VBtn
434
+ title="ferrer à gauche"
435
+ >
436
+ <span class="d-sr-only">aligne a gauche</span>
437
+ <VIcon
438
+ size="x-large"
439
+ >
440
+ {{ mdiFormatAlignLeft }}
441
+ </VIcon>
442
+ </VBtn>
443
+ <VBtn
444
+ title="justifier"
445
+ >
446
+ <span class="d-sr-only">Texte justifié</span>
447
+ <VIcon
448
+ size="x-large"
449
+ >
450
+ {{ mdiFormatAlignJustify }}
451
+ </VIcon>
452
+ </VBtn>
453
+ <VBtn
454
+ title="centrer"
455
+ >
456
+ <span class="d-sr-only">aligne au centre</span>
457
+ <VIcon
458
+ size="x-large"
459
+ >
460
+ {{ mdiFormatAlignCenter }}
461
+ </VIcon>
462
+ </VBtn>
463
+ <VBtn
464
+ title="ferrer a droite"
465
+ >
466
+ <span class="d-sr-only">aligne à droite</span>
467
+ <VIcon
468
+ size="x-large"
469
+ >
470
+ {{ mdiFormatAlignRight }}
471
+ </VIcon>
472
+ </VBtn>
473
+ </Toolbar>
474
+ <VDivider
475
+ :thickness="2"
476
+ horizontal
477
+ />
478
+ <Toolbar
479
+ class="d-flex flex-column flex-wrap ga-4"
480
+ aria-label="Outils de mise en forme du texte"
481
+ aria-orientation="vertical"
482
+ >
483
+ <VBtn
484
+ title="gras"
485
+ >
486
+ <span class="d-sr-only">Text gras</span>
487
+ <VIcon
488
+ size="x-large"
489
+ >
490
+ {{ mdiFormatBold }}
491
+ </VIcon>
492
+ </VBtn>
493
+ <VBtn
494
+ title="italique"
495
+ >
496
+ <span class="d-sr-only">Text italique</span>
497
+ <VIcon
498
+ size="x-large"
499
+ >
500
+ {{ mdiFormatItalic }}
501
+ </VIcon>
502
+ </VBtn>
503
+ <VBtn
504
+ title="souligné"
505
+ >
506
+ <span class="d-sr-only">Text souligné</span>
507
+ <VIcon
508
+ size="x-large"
509
+ >
510
+ {{ mdiFormatUnderline }}
511
+ </VIcon>
512
+ </VBtn>
513
+ </Toolbar>
514
+ <VDivider
515
+ :thickness="2"
516
+ horizontal
517
+ />
518
+ <Toolbar
519
+ class="d-flex flex-column flex-wrap ga-4"
520
+ aria-label="Outils de couleur"
521
+ aria-orientation="vertical"
522
+ >
523
+ <VBtn
524
+ title="couleur"
525
+ >
526
+ <span class="d-sr-only">couleur du texte</span>
527
+ <VIcon
528
+ size="x-large"
529
+ >
530
+ {{ mdiFormatColorText }}
531
+ </VIcon>
532
+ </VBtn>
533
+ <VBtn
534
+ title="fond"
535
+ >
536
+ <span class="d-sr-only">Couleur de fond</span>
537
+ <VIcon
538
+ size="x-large"
539
+ >
540
+ {{ mdiFormatColorFill }}
541
+ </VIcon>
542
+ </VBtn>
543
+ </Toolbar>
544
+ </div>
545
+ `,
546
+ }
547
+ },
548
+ parameters: {
549
+ sourceCode: [
550
+ {
551
+ name: 'Template',
552
+ code: `<template>
553
+ <div class="d-flex flex-column flex-wrap ga-4" style="width: min-content;">
554
+ <Toolbar
555
+ class="d-flex flex-column flex-wrap ga-4"
556
+ aria-label="Outils d'alignement"
557
+ aria-orientation="vertical"
558
+ >
559
+ <VBtn
560
+ title="ferrer à gauche"
561
+ >
562
+ <span class="d-sr-only">aligne a gauche</span>
563
+ <VIcon
564
+ size="x-large"
565
+ >
566
+ {{ mdiFormatAlignLeft }}
567
+ </VIcon>
568
+ </VBtn>
569
+ <VBtn
570
+ title="justifier"
571
+ >
572
+ <span class="d-sr-only">Texte justifié</span>
573
+ <VIcon
574
+ size="x-large"
575
+ >
576
+ {{ mdiFormatAlignJustify }}
577
+ </VIcon>
578
+ </VBtn>
579
+ <VBtn
580
+ title="centrer"
581
+ >
582
+ <span class="d-sr-only">aligne au centre</span>
583
+ <VIcon
584
+ size="x-large"
585
+ >
586
+ {{ mdiFormatAlignCenter }}
587
+ </VIcon>
588
+ </VBtn>
589
+ <VBtn
590
+ title="ferrer a droite"
591
+ >
592
+ <span class="d-sr-only">aligne à droite</span>
593
+ <VIcon
594
+ size="x-large"
595
+ >
596
+ {{ mdiFormatAlignRight }}
597
+ </VIcon>
598
+ </VBtn>
599
+ </Toolbar>
600
+ <VDivider
601
+ :thickness="2"
602
+ horizontal
603
+ />
604
+ <Toolbar
605
+ class="d-flex flex-column flex-wrap ga-4"
606
+ aria-label="Outils de mise en forme du texte"
607
+ aria-orientation="vertical"
608
+ >
609
+ <VBtn
610
+ title="gras"
611
+ >
612
+ <span class="d-sr-only">Text gras</span>
613
+ <VIcon
614
+ size="x-large"
615
+ >
616
+ {{ mdiFormatBold }}
617
+ </VIcon>
618
+ </VBtn>
619
+ <VBtn
620
+ title="italique"
621
+ >
622
+ <span class="d-sr-only">Text italique</span>
623
+ <VIcon
624
+ size="x-large"
625
+ >
626
+ {{ mdiFormatItalic }}
627
+ </VIcon>
628
+ </VBtn>
629
+ <VBtn
630
+ title="souligné"
631
+ >
632
+ <span class="d-sr-only">Text souligné</span>
633
+ <VIcon
634
+ size="x-large"
635
+ >
636
+ {{ mdiFormatUnderline }}
637
+ </VIcon>
638
+ </VBtn>
639
+ </Toolbar>
640
+ <VDivider
641
+ :thickness="2"
642
+ horizontal
643
+ />
644
+ <Toolbar
645
+ class="d-flex flex-column flex-wrap ga-4"
646
+ aria-label="Outils de couleur"
647
+ aria-orientation="vertical"
648
+ >
649
+ <VBtn
650
+ title="couleur"
651
+ >
652
+ <span class="d-sr-only">couleur du texte</span>
653
+ <VIcon
654
+ size="x-large"
655
+ >
656
+ {{ mdiFormatColorText }}
657
+ </VIcon>
658
+ </VBtn>
659
+ <VBtn
660
+ title="fond"
661
+ >
662
+ <span class="d-sr-only">Couleur de fond</span>
663
+ <VIcon
664
+ size="x-large"
665
+ >
666
+ {{ mdiFormatColorFill }}
667
+ </VIcon>
668
+ </VBtn>
669
+ </Toolbar>
670
+ </div>
671
+ </template>`,
672
+ },
673
+ ],
674
+ },
675
+ }