@cnamts/synapse 1.1.0 → 1.1.1

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 (202) hide show
  1. package/dist/{AutocompleteFilter-DXd4szWO.js → AutocompleteFilter-CGF33skz.js} +1 -1
  2. package/dist/{DateFilter-BD59Kgwf.js → DateFilter-D7-MsKtx.js} +1 -1
  3. package/dist/{NumberFilter-BSMZE7uw.js → NumberFilter-bjQPPfsj.js} +1 -1
  4. package/dist/{PeriodFilter-keUdSSk0.js → PeriodFilter-B3wJpK8-.js} +1 -1
  5. package/dist/{SelectFilter-Dhvvwazl.js → SelectFilter-BN6DbKAV.js} +1 -1
  6. package/dist/{TextFilter-CU8FpXz0.js → TextFilter-BffP0J2f.js} +1 -1
  7. package/dist/{apLightTheme2026-DbS7BPUf.js → apLightTheme2026-C4ygwMHC.js} +11 -11
  8. package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +6 -6
  9. package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +6 -6
  10. package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +6 -6
  11. package/dist/components/Captcha/Captcha.d.ts +27 -16
  12. package/dist/components/Captcha/CaptchaForm.d.ts +29 -3
  13. package/dist/components/Captcha/types.d.ts +14 -0
  14. package/dist/components/Captcha/useCaptchaValidation.d.ts +37 -0
  15. package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +33 -13
  16. package/dist/components/Customs/Selects/SelectBtnField/composables/useSelectBtnFieldValidation.d.ts +23 -0
  17. package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +2 -2
  18. package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +2 -2
  19. package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +17 -48
  20. package/dist/components/Customs/SyCheckBoxGroup/composables/useSyCheckBoxGroupValidation.d.ts +29 -0
  21. package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +46 -0
  22. package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +16 -51
  23. package/dist/components/Customs/SyCheckbox/composables/useSyCheckboxValidation.d.ts +27 -0
  24. package/dist/components/Customs/SyCheckbox/types.d.ts +49 -0
  25. package/dist/components/Customs/SyTextField/FieldState.d.ts +5 -0
  26. package/dist/components/Customs/SyTextField/useSyTextFieldValidation.d.ts +3 -3
  27. package/dist/components/DialogBox/DialogBox.d.ts +2 -0
  28. package/dist/components/DialogBox/locales.d.ts +1 -0
  29. package/dist/components/FilterSideBar/FilterSideBar.d.ts +4 -0
  30. package/dist/components/LunarCalendar/LunarCalendar.d.ts +43 -14
  31. package/dist/components/LunarCalendar/types.d.ts +35 -0
  32. package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +11 -12
  33. package/dist/components/MonthPicker/MonthPicker.d.ts +72 -1747
  34. package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +21 -1733
  35. package/dist/components/MonthPicker/MonthPickerText/useTextField.d.ts +5 -0
  36. package/dist/components/MonthPicker/locales.d.ts +1 -0
  37. package/dist/components/MonthPicker/types.d.ts +11 -0
  38. package/dist/components/MonthPicker/useMonthPickerValidation.d.ts +37 -24
  39. package/dist/components/NirField/NirField.d.ts +6 -4
  40. package/dist/components/NirField/useNirValidation.d.ts +7 -5
  41. package/dist/components/PageContainer/PageContainer.d.ts +8 -0
  42. package/dist/components/PasswordField/PasswordField.d.ts +2 -2
  43. package/dist/components/PasswordField/usePasswordFieldValidation.d.ts +2 -2
  44. package/dist/components/PhoneField/PhoneField.d.ts +960 -1938
  45. package/dist/components/PhoneField/indicatifs.d.ts +715 -8
  46. package/dist/components/PhoneField/locales.d.ts +7 -0
  47. package/dist/components/PhoneField/types.d.ts +29 -0
  48. package/dist/components/PhoneField/usePhoneFieldValidation.d.ts +45 -0
  49. package/dist/components/PhoneField/usePhoneIndicatifs.d.ts +947 -0
  50. package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +2 -2
  51. package/dist/composables/unifyValidation/documentationValidationProps.d.ts +1 -1
  52. package/dist/composables/unifyValidation/useValidation.d.ts +4 -5
  53. package/dist/design-system-v3.js +2 -2
  54. package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +10 -10
  55. package/dist/designTokens/tokens/baseTokens.d.ts +18 -18
  56. package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +10 -10
  57. package/dist/designTokens/tokens/pa/paLightTheme.d.ts +10 -10
  58. package/dist/designTokens/tokens/semanticTokens.d.ts +14 -14
  59. package/dist/{main-D8ryUoS5.js → main-C4wAktOs.js} +13718 -12991
  60. package/dist/synapse.css +1 -1
  61. package/dist/vuetifyConfig.js +1 -1
  62. package/package.json +7 -7
  63. package/src/assets/compat/_legacy-tokens.scss +91 -0
  64. package/src/assets/overrides/_utilities.scss +23 -0
  65. package/src/components/Accordion/Accordion.stories.ts +121 -1
  66. package/src/components/BackBtn/BackBtn.mdx +1 -1
  67. package/src/components/BackToTopBtn/BackToTopBtn.mdx +0 -1
  68. package/src/components/Captcha/Captcha.stories.ts +134 -31
  69. package/src/components/Captcha/Captcha.vue +95 -28
  70. package/src/components/Captcha/CaptchaForm.vue +51 -22
  71. package/src/components/Captcha/tests/Captcha.focus.spec.ts +214 -0
  72. package/src/components/Captcha/tests/Captcha.spec.ts +233 -24
  73. package/src/components/Captcha/tests/CaptchaForm.spec.ts +82 -0
  74. package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +16 -42
  75. package/src/components/Captcha/types.ts +15 -0
  76. package/src/components/Captcha/useCaptchaValidation.ts +87 -0
  77. package/src/components/Captcha/validation/validation.stories.ts +1194 -0
  78. package/src/components/ChipList/ChipList.mdx +0 -1
  79. package/src/components/CollapsibleList/CollapsibleList.mdx +0 -1
  80. package/src/components/CookieBanner/CookieBanner.mdx +0 -1
  81. package/src/components/CopyBtn/CopyBtn.mdx +0 -1
  82. package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +123 -439
  83. package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +147 -41
  84. package/src/components/Customs/Selects/SelectBtnField/Validation/Validation.stories.ts +600 -0
  85. package/src/components/Customs/Selects/SelectBtnField/composables/useSelectBtnFieldValidation.ts +87 -0
  86. package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +402 -33
  87. package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/SelectBtnField.spec.ts.snap +52 -38
  88. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +342 -162
  89. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +77 -129
  90. package/src/components/Customs/SyCheckBoxGroup/Validation/Validation.stories.ts +1008 -0
  91. package/src/components/Customs/SyCheckBoxGroup/composables/useSyCheckBoxGroupValidation.ts +107 -0
  92. package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +180 -7
  93. package/src/components/Customs/SyCheckBoxGroup/types.ts +49 -0
  94. package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +41 -161
  95. package/src/components/Customs/SyCheckbox/SyCheckbox.vue +71 -148
  96. package/src/components/Customs/SyCheckbox/Validation/Validation.stories.ts +654 -0
  97. package/src/components/Customs/SyCheckbox/composables/useSyCheckboxValidation.ts +105 -0
  98. package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +106 -0
  99. package/src/components/Customs/SyCheckbox/tests/useSyCheckboxValidation.spec.ts +98 -0
  100. package/src/components/Customs/SyCheckbox/types.ts +51 -0
  101. package/src/components/Customs/SyTextField/FieldState.vue +50 -0
  102. package/src/components/Customs/SyTextField/SyTextField.vue +12 -9
  103. package/src/components/Customs/SyTextField/useSyTextFieldValidation.ts +2 -11
  104. package/src/components/DataList/DataList.mdx +0 -1
  105. package/src/components/DataListGroup/DataListGroup.mdx +0 -1
  106. package/src/components/DiacriticPicker/DiacriticPicker.mdx +0 -1
  107. package/src/components/DialogBox/DialogBox.mdx +0 -1
  108. package/src/components/DialogBox/DialogBox.stories.ts +399 -4
  109. package/src/components/DialogBox/DialogBox.vue +20 -0
  110. package/src/components/DialogBox/locales.ts +1 -0
  111. package/src/components/DialogBox/tests/DialogBox.spec.ts +73 -0
  112. package/src/components/DialogBox/tests/DialogBox.visual.cy.ts +24 -0
  113. package/src/components/ErrorPage/ErrorPage.mdx +1 -1
  114. package/src/components/ExternalLinks/ExternalLinks.mdx +0 -1
  115. package/src/components/FileList/FileList.mdx +0 -1
  116. package/src/components/FilterInline/FilterInline.mdx +0 -1
  117. package/src/components/FilterSideBar/FilterSideBar.mdx +8 -1
  118. package/src/components/FilterSideBar/FilterSideBar.stories.ts +133 -1
  119. package/src/components/FilterSideBar/FilterSideBar.vue +19 -2
  120. package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +55 -0
  121. package/src/components/FooterBar/FooterBar.mdx +0 -1
  122. package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +0 -1
  123. package/src/components/HeaderBar/HeaderBar.mdx +0 -1
  124. package/src/components/HeaderLoading/HeaderLoading.mdx +0 -1
  125. package/src/components/LangBtn/LangBtn.mdx +0 -1
  126. package/src/components/Logo/Logo.mdx +1 -1
  127. package/src/components/LunarCalendar/LunarCalendar.mdx +6 -9
  128. package/src/components/LunarCalendar/LunarCalendar.stories.ts +243 -46
  129. package/src/components/LunarCalendar/LunarCalendar.vue +61 -26
  130. package/src/components/LunarCalendar/Validation/Validation.stories.ts +717 -0
  131. package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +1 -1
  132. package/src/components/LunarCalendar/tests/LunarCalendar.spec.ts +197 -6
  133. package/src/components/LunarCalendar/tests/useLunarCalendarValidation.spec.ts +287 -0
  134. package/src/components/LunarCalendar/types.ts +39 -0
  135. package/src/components/LunarCalendar/useLunarCalendarValidation.ts +115 -39
  136. package/src/components/MonthPicker/MonthPicker.stories.ts +38 -281
  137. package/src/components/MonthPicker/MonthPicker.vue +66 -17
  138. package/src/components/MonthPicker/MonthPickerText/MonthPickerInput.vue +44 -20
  139. package/src/components/MonthPicker/MonthPickerText/useTextField.ts +5 -0
  140. package/src/components/MonthPicker/Validation/Validation.stories.ts +1117 -0
  141. package/src/components/MonthPicker/locales.ts +1 -0
  142. package/src/components/MonthPicker/tests/MonthPicker.spec.ts +353 -2
  143. package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +12 -8
  144. package/src/components/MonthPicker/types.ts +16 -0
  145. package/src/components/MonthPicker/useMonthPickerValidation.ts +64 -27
  146. package/src/components/NirField/NirField.mdx +120 -66
  147. package/src/components/NirField/NirField.stories.ts +216 -0
  148. package/src/components/NirField/useNirValidation.ts +16 -17
  149. package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +263 -245
  150. package/src/components/NotificationBar/NotificationBar.mdx +0 -1
  151. package/src/components/PageContainer/PageContainer.mdx +0 -1
  152. package/src/components/PageContainer/PageContainer.stories.ts +170 -2
  153. package/src/components/PageContainer/PageContainer.vue +63 -8
  154. package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +19 -11
  155. package/src/components/PaginatedTable/PaginatedTable.mdx +0 -1
  156. package/src/components/PeriodField/PeriodField.mdx +0 -1
  157. package/src/components/PhoneField/PhoneField.mdx +2 -3
  158. package/src/components/PhoneField/PhoneField.stories.ts +227 -410
  159. package/src/components/PhoneField/PhoneField.vue +204 -438
  160. package/src/components/PhoneField/indicatifs.ts +1 -1
  161. package/src/components/PhoneField/locales.ts +7 -0
  162. package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -1
  163. package/src/components/PhoneField/tests/PhoneField.spec.ts +517 -220
  164. package/src/components/PhoneField/types.ts +30 -0
  165. package/src/components/PhoneField/usePhoneFieldValidation.ts +119 -0
  166. package/src/components/PhoneField/usePhoneIndicatifs.ts +89 -0
  167. package/src/components/PhoneField/validation/validation.stories.ts +717 -0
  168. package/src/components/RangeField/RangeField.mdx +0 -1
  169. package/src/components/RatingPicker/RatingPicker.mdx +0 -1
  170. package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +0 -1
  171. package/src/components/StatusPage/StatusPage.vue +1 -0
  172. package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +248 -230
  173. package/src/components/SubHeader/SubHeader.mdx +5 -6
  174. package/src/components/Tables/common/tests/SyTableFilter.spec.ts +11 -12
  175. package/src/components/UploadWorkflow/UploadWorkflow.mdx +0 -1
  176. package/src/components/UserMenuBtn/UserMenuBtn.mdx +0 -1
  177. package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +177 -0
  178. package/src/composables/unifyValidation/documentationValidationProps.ts +1 -1
  179. package/src/composables/unifyValidation/tests/useValidation.spec.ts +13 -1
  180. package/src/composables/unifyValidation/useValidation.ts +37 -33
  181. package/src/composantsVuetify/VCard/VCard.mdx +4 -0
  182. package/src/composantsVuetify/VCard/v-card.stories.ts +93 -1
  183. package/src/composantsVuetify/VCarousel/VCarousel.mdx +74 -0
  184. package/src/composantsVuetify/VCarousel/v-carousel.stories.ts +531 -0
  185. package/src/composantsVuetify/VNavigationDrawer/VNavgationDrawer.mdx +53 -0
  186. package/src/composantsVuetify/VNavigationDrawer/v-navigation-drawer.stories.ts +310 -0
  187. package/src/composantsVuetify/VSlideGroup/VSlideGroup.mdx +105 -0
  188. package/src/composantsVuetify/VSlideGroup/v-slide-group.stories.ts +463 -0
  189. package/src/designTokens/tokens/baseColors.ts +1 -1
  190. package/src/designTokens/tokens/baseTokens.ts +18 -18
  191. package/src/stories/Components/Components.stories.ts +34 -1
  192. package/src/stories/Demarrer/Releases.stories.ts +16 -2
  193. package/src/stories/DesignTokens/Arrondis.mdx +1 -1
  194. package/src/stories/DesignTokens/Correspondances.mdx +219 -0
  195. package/src/stories/DesignTokens/UtiliserLesTokens.mdx +235 -0
  196. package/src/stories/DesignTokens/colors.stories.ts +569 -569
  197. package/src/stories/GuideDuDev/Amelipro.stories.ts +335 -267
  198. package/dist/components/LunarCalendar/useLunarCalendarRules.d.ts +0 -5
  199. package/dist/components/PhoneField/tests/types.d.ts +0 -18
  200. package/src/components/LunarCalendar/tests/useLunarCalendarRules.spec.ts +0 -184
  201. package/src/components/LunarCalendar/useLunarCalendarRules.ts +0 -96
  202. package/src/components/PhoneField/tests/types.d.ts +0 -19
@@ -25,7 +25,6 @@ import RatingPicker from './RatingPicker.vue';
25
25
  import { RatingPicker } from '@cnamts/synapse'
26
26
 
27
27
  const ratingEmotion = ref(-1)
28
- import '../../stories/styles/shared.css';
29
28
  const ratingNumber = ref(-1)
30
29
  const ratingStars = ref(-1)
31
30
  </script>
@@ -42,7 +42,6 @@ const links = [
42
42
  },
43
43
  ]
44
44
  </script>
45
- import '../../stories/styles/shared.css';
46
45
 
47
46
  <template>
48
47
  <SocialMediaLinks :links="links" />
@@ -86,6 +86,7 @@
86
86
  :unique-id="uniqueId"
87
87
  :role="role"
88
88
  :aria-labelledby="role ? `${uniqueId}-title` : undefined"
89
+ align-center
89
90
  >
90
91
  <VCard
91
92
  :elevation="0"
@@ -3,278 +3,296 @@
3
3
  exports[`StatusPage > renders correctly 1`] = `
4
4
  <div
5
5
  class="
6
+ align-center
6
7
  d-flex
7
- justify-center
8
- px-14
9
- py-10
8
+ flex-column
10
9
  vd-page-container
11
10
  "
12
11
  id="v-0-container"
13
12
  >
14
- <div
15
- class="
16
- bg-transparent
17
- v-sheet
18
- v-theme--light
19
- "
20
- id="v-0-content"
21
- style="width: 800px;"
22
- >
23
- <div class="
24
- elevation-0
25
- pa-6
26
- pa-sm-16
27
- v-card
28
- v-card--density-default
29
- v-card--variant-elevated
30
- v-theme--light
31
- ">
32
- <!---->
33
- <div class="v-card__loader">
34
- <div
35
- aria-hidden="true"
36
- aria-valuemax="100"
37
- aria-valuemin="0"
38
- class="
39
- v-locale--is-ltr
40
- v-progress-linear
41
- v-theme--light
42
- "
43
- role="progressbar"
44
- style="
45
- top: 0px;
46
- height: 0px;
47
- --v-progress-linear-height: 2px;
48
- "
49
- >
50
- <!---->
51
- <div
52
- class="v-progress-linear__background"
53
- style="opacity: NaN;"
54
- ></div>
13
+ <!-- Slot prepend avec wrapper de largeur fixe -->
14
+ <!-- v-if -->
15
+ <div class="
16
+ px-14
17
+ py-10
18
+ vd-page-container__content
19
+ ">
20
+ <div
21
+ class="
22
+ bg-transparent
23
+ v-sheet
24
+ v-theme--light
25
+ "
26
+ id="v-0-content"
27
+ style="width: 800px;"
28
+ >
29
+ <div class="
30
+ elevation-0
31
+ pa-6
32
+ pa-sm-16
33
+ v-card
34
+ v-card--density-default
35
+ v-card--variant-elevated
36
+ v-theme--light
37
+ ">
38
+ <!---->
39
+ <div class="v-card__loader">
55
40
  <div
56
- class="v-progress-linear__buffer"
41
+ aria-hidden="true"
42
+ aria-valuemax="100"
43
+ aria-valuemin="0"
44
+ class="
45
+ v-locale--is-ltr
46
+ v-progress-linear
47
+ v-theme--light
48
+ "
49
+ role="progressbar"
57
50
  style="
58
- opacity: NaN;
59
- width: 0%;
51
+ top: 0px;
52
+ height: 0px;
53
+ --v-progress-linear-height: 2px;
60
54
  "
61
- ></div>
62
- <transition-stub
63
- appear="false"
64
- css="true"
65
- name="fade-transition"
66
- persisted="false"
67
55
  >
68
- <div class="v-progress-linear__indeterminate">
69
- <div class="
70
- long
71
- v-progress-linear__indeterminate
72
- "></div>
73
- <div class="
74
- short
75
- v-progress-linear__indeterminate
76
- "></div>
77
- </div>
78
- </transition-stub>
79
- <!---->
56
+ <!---->
57
+ <div
58
+ class="v-progress-linear__background"
59
+ style="opacity: NaN;"
60
+ ></div>
61
+ <div
62
+ class="v-progress-linear__buffer"
63
+ style="
64
+ opacity: NaN;
65
+ width: 0%;
66
+ "
67
+ ></div>
68
+ <transition-stub
69
+ appear="false"
70
+ css="true"
71
+ name="fade-transition"
72
+ persisted="false"
73
+ >
74
+ <div class="v-progress-linear__indeterminate">
75
+ <div class="
76
+ long
77
+ v-progress-linear__indeterminate
78
+ "></div>
79
+ <div class="
80
+ short
81
+ v-progress-linear__indeterminate
82
+ "></div>
83
+ </div>
84
+ </transition-stub>
85
+ <!---->
86
+ </div>
80
87
  </div>
81
- </div>
82
- <!---->
83
- <!---->
84
- <div class="
85
- max-width-none
86
- v-row
87
- ">
88
+ <!---->
89
+ <!---->
88
90
  <div class="
89
- align-sm-start
90
- d-flex
91
- flex-column
92
- justify-center
93
- order-last
94
- order-sm-first
95
- text-center
96
- text-sm-left
97
- v-col-12
98
- v-col-sm-12
91
+ max-width-none
92
+ v-row
99
93
  ">
100
- <!-- v-if -->
101
- <h1 class="
102
- font-weight-bold
103
- mb-2
104
- mb-4
105
- sy-heading
106
- text-h5
94
+ <div class="
95
+ align-sm-start
96
+ d-flex
97
+ flex-column
98
+ justify-center
99
+ order-last
100
+ order-sm-first
101
+ text-center
102
+ text-sm-left
103
+ v-col-12
104
+ v-col-sm-12
107
105
  ">
108
- Something went wrong
109
- </h1>
110
- <p>
111
- <span>
112
- Error message
113
- </span>
114
- </p>
106
+ <!-- v-if -->
107
+ <h1 class="
108
+ font-weight-bold
109
+ mb-2
110
+ mb-4
111
+ sy-heading
112
+ text-h5
113
+ ">
114
+ Something went wrong
115
+ </h1>
116
+ <p>
117
+ <span>
118
+ Error message
119
+ </span>
120
+ </p>
121
+ <!-- v-if -->
122
+ </div>
115
123
  <!-- v-if -->
116
124
  </div>
117
- <!-- v-if -->
125
+ <!---->
126
+ <!---->
127
+ <span class="v-card__underlay"></span>
118
128
  </div>
119
- <!---->
120
- <!---->
121
- <span class="v-card__underlay"></span>
122
129
  </div>
123
130
  </div>
131
+ <!-- Slot append avec wrapper de largeur fixe -->
132
+ <!-- v-if -->
124
133
  </div>
125
134
  `;
126
135
 
127
136
  exports[`StatusPage > renders correctly with undefined route 1`] = `
128
137
  <div
129
138
  class="
139
+ align-center
130
140
  d-flex
131
- justify-center
132
- px-14
133
- py-10
141
+ flex-column
134
142
  vd-page-container
135
143
  "
136
144
  id="v-0-container"
137
145
  >
138
- <div
139
- class="
140
- bg-transparent
141
- v-sheet
142
- v-theme--light
143
- "
144
- id="v-0-content"
145
- style="width: 800px;"
146
- >
147
- <div class="
148
- elevation-0
149
- pa-6
150
- pa-sm-16
151
- v-card
152
- v-card--density-default
153
- v-card--variant-elevated
154
- v-theme--light
155
- ">
156
- <!---->
157
- <div class="v-card__loader">
158
- <div
159
- aria-hidden="true"
160
- aria-valuemax="100"
161
- aria-valuemin="0"
162
- class="
163
- v-locale--is-ltr
164
- v-progress-linear
165
- v-theme--light
166
- "
167
- role="progressbar"
168
- style="
169
- top: 0px;
170
- height: 0px;
171
- --v-progress-linear-height: 2px;
172
- "
173
- >
174
- <!---->
175
- <div
176
- class="v-progress-linear__background"
177
- style="opacity: NaN;"
178
- ></div>
146
+ <!-- Slot prepend avec wrapper de largeur fixe -->
147
+ <!-- v-if -->
148
+ <div class="
149
+ px-14
150
+ py-10
151
+ vd-page-container__content
152
+ ">
153
+ <div
154
+ class="
155
+ bg-transparent
156
+ v-sheet
157
+ v-theme--light
158
+ "
159
+ id="v-0-content"
160
+ style="width: 800px;"
161
+ >
162
+ <div class="
163
+ elevation-0
164
+ pa-6
165
+ pa-sm-16
166
+ v-card
167
+ v-card--density-default
168
+ v-card--variant-elevated
169
+ v-theme--light
170
+ ">
171
+ <!---->
172
+ <div class="v-card__loader">
179
173
  <div
180
- class="v-progress-linear__buffer"
174
+ aria-hidden="true"
175
+ aria-valuemax="100"
176
+ aria-valuemin="0"
177
+ class="
178
+ v-locale--is-ltr
179
+ v-progress-linear
180
+ v-theme--light
181
+ "
182
+ role="progressbar"
181
183
  style="
182
- opacity: NaN;
183
- width: 0%;
184
+ top: 0px;
185
+ height: 0px;
186
+ --v-progress-linear-height: 2px;
184
187
  "
185
- ></div>
186
- <transition-stub
187
- appear="false"
188
- css="true"
189
- name="fade-transition"
190
- persisted="false"
191
188
  >
192
- <div class="v-progress-linear__indeterminate">
193
- <div class="
194
- long
195
- v-progress-linear__indeterminate
196
- "></div>
197
- <div class="
198
- short
199
- v-progress-linear__indeterminate
200
- "></div>
201
- </div>
202
- </transition-stub>
203
- <!---->
189
+ <!---->
190
+ <div
191
+ class="v-progress-linear__background"
192
+ style="opacity: NaN;"
193
+ ></div>
194
+ <div
195
+ class="v-progress-linear__buffer"
196
+ style="
197
+ opacity: NaN;
198
+ width: 0%;
199
+ "
200
+ ></div>
201
+ <transition-stub
202
+ appear="false"
203
+ css="true"
204
+ name="fade-transition"
205
+ persisted="false"
206
+ >
207
+ <div class="v-progress-linear__indeterminate">
208
+ <div class="
209
+ long
210
+ v-progress-linear__indeterminate
211
+ "></div>
212
+ <div class="
213
+ short
214
+ v-progress-linear__indeterminate
215
+ "></div>
216
+ </div>
217
+ </transition-stub>
218
+ <!---->
219
+ </div>
204
220
  </div>
205
- </div>
206
- <!---->
207
- <!---->
208
- <div class="
209
- max-width-none
210
- v-row
211
- ">
221
+ <!---->
222
+ <!---->
212
223
  <div class="
213
- align-sm-start
214
- d-flex
215
- flex-column
216
- justify-center
217
- order-last
218
- order-sm-first
219
- text-center
220
- text-sm-left
221
- v-col-12
222
- v-col-sm-12
224
+ max-width-none
225
+ v-row
223
226
  ">
224
227
  <div class="
225
- mb-4
226
- sy-code
227
- text-primary
228
+ align-sm-start
229
+ d-flex
230
+ flex-column
231
+ justify-center
232
+ order-last
233
+ order-sm-first
234
+ text-center
235
+ text-sm-left
236
+ v-col-12
237
+ v-col-sm-12
228
238
  ">
229
- <span class="d-sr-only">
230
- Code d'erreur&nbsp;:
231
- </span>
232
- 501
239
+ <div class="
240
+ mb-4
241
+ sy-code
242
+ text-primary
243
+ ">
244
+ <span class="d-sr-only">
245
+ Code d'erreur&nbsp;:
246
+ </span>
247
+ 501
248
+ </div>
249
+ <h1 class="
250
+ font-weight-bold
251
+ mb-2
252
+ mb-4
253
+ sy-heading
254
+ text-h5
255
+ ">
256
+ Error
257
+ </h1>
258
+ <p>
259
+ <span>
260
+ Error message
261
+ </span>
262
+ </p>
263
+ <a
264
+ class="
265
+ bg-primary
266
+ mt-6
267
+ v-btn
268
+ v-btn--density-default
269
+ v-btn--elevated
270
+ v-btn--size-default
271
+ v-btn--variant-elevated
272
+ v-theme--light
273
+ "
274
+ href="https://google.com"
275
+ ><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
276
+
277
+ <!----><span
278
+ class="v-btn__content"
279
+ data-no-activator=""
280
+ >Go to...</span>
281
+
282
+ <!---->
283
+
284
+ <!---->
285
+ </a>
233
286
  </div>
234
- <h1 class="
235
- font-weight-bold
236
- mb-2
237
- mb-4
238
- sy-heading
239
- text-h5
240
- ">
241
- Error
242
- </h1>
243
- <p>
244
- <span>
245
- Error message
246
- </span>
247
- </p>
248
- <a
249
- class="
250
- bg-primary
251
- mt-6
252
- v-btn
253
- v-btn--density-default
254
- v-btn--elevated
255
- v-btn--size-default
256
- v-btn--variant-elevated
257
- v-theme--light
258
- "
259
- href="https://google.com"
260
- ><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
261
-
262
- <!----><span
263
- class="v-btn__content"
264
- data-no-activator=""
265
- >Go to...</span>
266
-
267
- <!---->
268
-
269
- <!---->
270
- </a>
287
+ <!-- v-if -->
271
288
  </div>
272
- <!-- v-if -->
289
+ <!---->
290
+ <!---->
291
+ <span class="v-card__underlay"></span>
273
292
  </div>
274
- <!---->
275
- <!---->
276
- <span class="v-card__underlay"></span>
277
293
  </div>
278
294
  </div>
295
+ <!-- Slot append avec wrapper de largeur fixe -->
296
+ <!-- v-if -->
279
297
  </div>
280
298
  `;
@@ -5,8 +5,8 @@ import * as SubHeaderStories from './SubHeader.stories';
5
5
  <Meta of={SubHeaderStories} />
6
6
 
7
7
  <div className="header">
8
- <h1>SubHeader</h1>
9
- <p>Le composant `SubHeader` est utilisé pour afficher un bloc d’informations sous l’en-tête principale.</p>
8
+ <h1>SubHeader</h1>
9
+ <p>Le composant `SubHeader` est utilisé pour afficher un bloc d’informations sous l’en-tête principale.</p>
10
10
  </div>
11
11
 
12
12
  <Canvas of={SubHeaderStories.Default} />
@@ -19,15 +19,14 @@ import * as SubHeaderStories from './SubHeader.stories';
19
19
 
20
20
  <Source dark code={`
21
21
  <script setup lang="ts">
22
- import { SubHeader } from '@cnamts/synapse'
22
+ import { SubHeader } from '@cnamts/synapse'
23
23
  </script>
24
- import '../../stories/styles/shared.css';
25
24
 
26
25
  <template>
27
- <SubHeader
26
+ <SubHeader
28
27
  back-btn-text="Back"
29
28
  title-text="Paul Dupont"
30
- sub-title-text="1 69 08 75 125 456 75"
29
+ sub-title-text="1 69 08 75 125 456 75"
31
30
  sub-title-text-accessible-name="Numéro de sécurité sociale de Paul Dupont : 1 69 08 75 125 456 75"
32
31
  />
33
32
  </template>
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect, afterEach, vi } from 'vitest'
2
- import { shallowMount, flushPromises } from '@vue/test-utils'
2
+ import { shallowMount } from '@vue/test-utils'
3
3
  import SyTableFilter from '../SyTableFilter.vue'
4
4
  import type { FilterOption, TableColumnHeader, FilterType } from '../types'
5
5
 
@@ -29,8 +29,7 @@ describe('SyTableFilter', () => {
29
29
  },
30
30
  })
31
31
 
32
- // Need to wait for async components to load
33
- await flushPromises()
32
+ await vi.dynamicImportSettled()
34
33
  await wrapper.vm.$nextTick()
35
34
 
36
35
  const textFilter = wrapper.findComponent({ name: 'TextFilter' })
@@ -52,7 +51,7 @@ describe('SyTableFilter', () => {
52
51
  },
53
52
  })
54
53
 
55
- await flushPromises()
54
+ await vi.dynamicImportSettled()
56
55
  await wrapper.vm.$nextTick()
57
56
  const textFilter = wrapper.findComponent({ name: 'TextFilter' })
58
57
  expect(textFilter.exists()).toBe(true)
@@ -74,7 +73,7 @@ describe('SyTableFilter', () => {
74
73
  },
75
74
  })
76
75
 
77
- await flushPromises()
76
+ await vi.dynamicImportSettled()
78
77
  await wrapper.vm.$nextTick()
79
78
  const numberFilter = wrapper.findComponent({ name: 'NumberFilter' })
80
79
  expect(numberFilter.exists()).toBe(true)
@@ -101,7 +100,7 @@ describe('SyTableFilter', () => {
101
100
  },
102
101
  })
103
102
 
104
- await flushPromises()
103
+ await vi.dynamicImportSettled()
105
104
  await wrapper.vm.$nextTick()
106
105
  const selectFilter = wrapper.findComponent({ name: 'SelectFilter' })
107
106
  expect(selectFilter.exists()).toBe(true)
@@ -124,7 +123,7 @@ describe('SyTableFilter', () => {
124
123
  },
125
124
  })
126
125
 
127
- await flushPromises()
126
+ await vi.dynamicImportSettled()
128
127
  await wrapper.vm.$nextTick()
129
128
  const dateFilter = wrapper.findComponent({ name: 'DateFilter' })
130
129
  expect(dateFilter.exists()).toBe(true)
@@ -147,7 +146,7 @@ describe('SyTableFilter', () => {
147
146
  },
148
147
  })
149
148
 
150
- await flushPromises()
149
+ await vi.dynamicImportSettled()
151
150
  await wrapper.vm.$nextTick()
152
151
  const periodFilter = wrapper.findComponent({ name: 'PeriodFilter' })
153
152
  expect(periodFilter.exists()).toBe(true)
@@ -169,7 +168,7 @@ describe('SyTableFilter', () => {
169
168
  },
170
169
  })
171
170
 
172
- await flushPromises()
171
+ await vi.dynamicImportSettled()
173
172
  await wrapper.vm.$nextTick()
174
173
 
175
174
  const textFilter = wrapper.findComponent({ name: 'TextFilter' })
@@ -204,7 +203,7 @@ describe('SyTableFilter', () => {
204
203
  },
205
204
  })
206
205
 
207
- await flushPromises()
206
+ await vi.dynamicImportSettled()
208
207
  await wrapper.vm.$nextTick()
209
208
 
210
209
  const textFilter = wrapper.findComponent({ name: 'TextFilter' })
@@ -241,7 +240,7 @@ describe('SyTableFilter', () => {
241
240
  },
242
241
  })
243
242
 
244
- await flushPromises()
243
+ await vi.dynamicImportSettled()
245
244
  await wrapper.vm.$nextTick()
246
245
 
247
246
  const textFilter = wrapper.findComponent({ name: 'TextFilter' })
@@ -277,7 +276,7 @@ describe('SyTableFilter', () => {
277
276
  },
278
277
  })
279
278
 
280
- await flushPromises()
279
+ await vi.dynamicImportSettled()
281
280
  await wrapper.vm.$nextTick()
282
281
 
283
282
  // Vérifier que le slot personnalisé est rendu
@@ -59,7 +59,6 @@ Vous pouvez configurer le niveau du titre affiché par défaut en utilisant la p
59
59
  import { UploadWorkflow } from '@cnamts/synapse'
60
60
 
61
61
  const files = ref([])
62
- import '../../stories/styles/shared.css';
63
62
 
64
63
  const uploadList = [
65
64
  {