@cnamts/synapse 1.0.13 → 1.0.15

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 (254) hide show
  1. package/README.md +72 -72
  2. package/dist/{DateFilter-_EFzsvvM.js → DateFilter-isr8mXVb.js} +1 -1
  3. package/dist/{NumberFilter-CUxEbKJh.js → NumberFilter-BOe7DqWX.js} +1 -1
  4. package/dist/{PeriodFilter-D5ueqtKy.js → PeriodFilter-WTprpO40.js} +1 -1
  5. package/dist/{SelectFilter-BciBNydy.js → SelectFilter-CqlG5dmI.js} +1 -1
  6. package/dist/{TextFilter-DMN_WAQB.js → TextFilter-fVW5bsRw.js} +1 -1
  7. package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +60 -28
  8. package/dist/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.d.ts +3 -3
  9. package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +60 -28
  10. package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +61 -29
  11. package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +5 -1
  12. package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +3 -1
  13. package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +1 -1
  14. package/dist/components/Captcha/Captcha.d.ts +2 -0
  15. package/dist/components/Captcha/CaptchaBase.d.ts +1 -0
  16. package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +29 -17
  17. package/dist/components/Customs/SyTabs/SyTabs.d.ts +20 -0
  18. package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +100 -10
  19. package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +108 -21
  20. package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +6 -6
  21. package/dist/components/DatePicker/composables/useDateFormatDisplay.d.ts +3 -0
  22. package/dist/components/DatePicker/tests/setup.d.ts +768 -48
  23. package/dist/components/FilterSideBar/FilterSideBar.d.ts +8 -0
  24. package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +58 -34
  25. package/dist/components/LangBtn/LangBtn.d.ts +4 -0
  26. package/dist/components/PeriodField/PeriodField.d.ts +192 -12
  27. package/dist/components/RatingPicker/RatingPicker.d.ts +9 -0
  28. package/dist/components/SearchListField/SearchListField.d.ts +42 -413
  29. package/dist/components/SearchListField/locales.d.ts +1 -2
  30. package/dist/components/SyAlert/SyAlert.d.ts +1 -1
  31. package/dist/components/SyTextArea/SyTextArea.d.ts +2 -0
  32. package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +15 -8
  33. package/dist/components/Tables/SyTable/SyTable.d.ts +15 -8
  34. package/dist/components/Tables/common/SyTablePagination.d.ts +29 -17
  35. package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +4 -0
  36. package/dist/components/Tables/common/types.d.ts +2 -0
  37. package/dist/design-system-v3.js +1 -1
  38. package/dist/design-system-v3.umd.cjs +32 -16
  39. package/dist/{main-DISHlqcd.js → main-CbBVJ_le.js} +9911 -9751
  40. package/dist/style.css +1 -1
  41. package/package.json +5 -2
  42. package/src/assets/amelipro/icons.ts +17 -0
  43. package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.stories.ts +40 -36
  44. package/src/components/Amelipro/AmeliproAccordionGroup/__tests__/AmeliproAccordionGroup.spec.ts +226 -26
  45. package/src/components/Amelipro/AmeliproAccordionGroup/__tests__/__snapshots__/AmeliproAccordionGroup.spec.ts.snap +55 -506
  46. package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.stories.ts +1 -1
  47. package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +7 -2
  48. package/src/components/Amelipro/AmeliproAccordionList/__tests__/__snapshots__/AmeliproAccordionList.spec.ts.snap +2 -1
  49. package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/__tests__/__snapshots__/AmeliproAccordionResultTemplate.spec.ts.snap +4 -1
  50. package/src/components/Amelipro/AmeliproAccordionResult/__tests__/__snapshots__/AmeliproAccordionResult.spec.ts.snap +4 -1
  51. package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.stories.ts +1 -1
  52. package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +9 -3
  53. package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/__snapshots__/AmeliproAccordionResultList.spec.ts.snap +42 -11
  54. package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.stories.ts +4 -4
  55. package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.vue +7 -5
  56. package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +4 -2
  57. package/src/components/Amelipro/AmeliproBtn/AmeliproBtn.stories.ts +1 -40
  58. package/src/components/Amelipro/AmeliproBtn/AmeliproBtn.vue +4 -0
  59. package/src/components/Amelipro/AmeliproCallback/AmeliproCallback.stories.ts +4 -2
  60. package/src/components/Amelipro/AmeliproCaptcha/__tests__/__snapshots__/AmeliproCaptcha.spec.ts.snap +2 -1
  61. package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.stories.ts +39 -29
  62. package/src/components/Amelipro/AmeliproCopyBtn/__tests__/__snapshots__/AmeliproCopyBtn.spec.ts.snap +4 -1
  63. package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +3 -3
  64. package/src/components/Amelipro/AmeliproCustomSelector/__tests__/__snapshots__/AmeliproCustomSelector.spec.ts.snap +8 -6
  65. package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.mdx +3 -1
  66. package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.stories.ts +23 -5
  67. package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.vue +5 -6
  68. package/src/components/Amelipro/AmeliproFilePreview/__tests__/AmeliproFilePreview.spec.ts +2 -2
  69. package/src/components/Amelipro/AmeliproFilePreview/__tests__/__snapshots__/AmeliproFilePreview.spec.ts.snap +5 -6
  70. package/src/components/Amelipro/AmeliproFirstLogin/__tests__/__snapshots__/AmeliproFirstLogin.spec.ts.snap +4 -1
  71. package/src/components/Amelipro/AmeliproHeader/AmeliproHeader.vue +1 -2
  72. package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/__tests__/AmeliproLogoAm.spec.ts +78 -0
  73. package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/{tests → __tests__}/__snapshots__/AmeliproLogoAm.spec.ts.snap +64 -2
  74. package/src/components/Amelipro/AmeliproIcon/__tests__/AmeliproIcon.spec.ts +358 -0
  75. package/src/components/Amelipro/AmeliproIcon/{tests → __tests__}/__snapshots__/AmeliproIcon.spec.ts.snap +30 -3
  76. package/src/components/Amelipro/AmeliproIcon/iconList.ts +1 -0
  77. package/src/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.vue +1 -1
  78. package/src/components/Amelipro/AmeliproIconBtn/__tests__/AmeliproIconBtn.spec.ts +459 -0
  79. package/src/components/Amelipro/AmeliproIconBtn/__tests__/__snapshots__/AmeliproIconBtn.spec.ts.snap +58 -0
  80. package/src/components/Amelipro/AmeliproIllustratedDataTile/AmeliproIllustratedDataTile.stories.ts +38 -26
  81. package/src/components/Amelipro/AmeliproIllustratedDataTile/__tests__/AmeliproIllustratedDataTile.spec.ts +321 -0
  82. package/src/components/Amelipro/AmeliproIllustratedDataTile/__tests__/__snapshots__/AmeliproIllustratedDataTile.spec.ts.snap +148 -0
  83. package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.stories.ts +14 -5
  84. package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.vue +1 -1
  85. package/src/components/Amelipro/AmeliproIllustratedRadioGroup/__tests__/AmeliproIllustratedRadioGroup.spec.ts +498 -0
  86. package/src/components/Amelipro/AmeliproIllustratedRadioGroup/__tests__/__snapshots__/AmeliproIllustratedRadioGroup.spec.ts.snap +325 -0
  87. package/src/components/Amelipro/AmeliproMailTile/__tests__/AmeliproMailTile.spec.ts +210 -0
  88. package/src/components/Amelipro/AmeliproMailTile/__tests__/__snapshots__/AmeliproMailTile.spec.ts.snap +98 -0
  89. package/src/components/Amelipro/AmeliproMessage/__tests__/AmeliproMessage.spec.ts +446 -0
  90. package/src/components/Amelipro/AmeliproMessage/__tests__/__snapshots__/AmeliproMessage.spec.ts.snap +60 -0
  91. package/src/components/Amelipro/AmeliproMessagingLayout/__tests__/AmeliproMessagingLayout.spec.ts +300 -0
  92. package/src/components/Amelipro/AmeliproMessagingLayout/__tests__/__snapshots__/AmeliproMessagingLayout.spec.ts.snap +197 -0
  93. package/src/components/Amelipro/AmeliproNumberedCard/__tests__/AmeliproNumberedCard.spec.ts +117 -0
  94. package/src/components/Amelipro/AmeliproNumberedCard/{tests → __tests__}/__snapshots__/AmeliproNumberedCard.spec.ts.snap +47 -45
  95. package/src/components/Amelipro/AmeliproOnboarding/__tests__/AmeliproOnboarding.spec.ts +219 -0
  96. package/src/components/Amelipro/AmeliproOnboarding/__tests__/__snapshots__/AmeliproOnboarding.spec.ts.snap +41 -0
  97. package/src/components/Amelipro/AmeliproPageLayout/__tests__/AmeliproPageLayout.spec.ts +129 -0
  98. package/src/components/Amelipro/AmeliproPageLayout/__tests__/__snapshots__/AmeliproPageLayout.spec.ts.snap +189 -0
  99. package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/__tests__/AmeliproPaginationBtn.spec.ts +92 -0
  100. package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/__tests__/__snapshots__/AmeliproPaginationBtn.spec.ts.snap +56 -0
  101. package/src/components/Amelipro/AmeliproPagination/__tests__/AmeliproPagination.spec.ts +165 -0
  102. package/src/components/Amelipro/AmeliproPagination/__tests__/__snapshots__/AmeliproPagination.spec.ts.snap +83 -0
  103. package/src/components/Amelipro/AmeliproPatientBanner/__tests__/AmeliproPatientBanner.spec.ts +208 -0
  104. package/src/components/Amelipro/AmeliproPatientBanner/__tests__/__snapshots__/AmeliproPatientBanner.spec.ts.snap +285 -0
  105. package/src/components/Amelipro/AmeliproPatientLogged/__tests__/__snapshots__/AmeliproPatientLogged.spec.ts.snap +26 -7
  106. package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/__snapshots__/AmeliproPostalAddressCityRow.spec.ts.snap +12 -4
  107. package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.stories.ts +28 -8
  108. package/src/components/Amelipro/AmeliproRadioGroup/__tests__/AmeliproRadioGroup.spec.ts +332 -0
  109. package/src/components/Amelipro/AmeliproRadioGroup/__tests__/__snapshots__/AmeliproRadioGroup.spec.ts.snap +255 -0
  110. package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.stories.ts +1 -2
  111. package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +3 -1
  112. package/src/components/Amelipro/AmeliproResultList/__tests__/__snapshots__/AmeliproResultList.spec.ts.snap +2 -1
  113. package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.vue +11 -5
  114. package/src/components/Amelipro/AmeliproSelect/__tests__/AmeliproSelect.spec.ts +481 -0
  115. package/src/components/Amelipro/AmeliproSelect/__tests__/__snapshots__/AmeliproSelect.spec.ts.snap +117 -0
  116. package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTile.vue +5 -2
  117. package/src/components/Amelipro/AmeliproStateTile/__tests__/AmeliproStateTile.spec.ts +206 -0
  118. package/src/components/Amelipro/AmeliproStateTile/__tests__/__snapshots__/AmeliproStateTile.spec.ts.snap +158 -0
  119. package/src/components/Amelipro/AmeliproStatus/__tests__/AmeliproStatus.spec.ts +120 -0
  120. package/src/components/Amelipro/AmeliproStatus/__tests__/__snapshots__/AmeliproStatus.spec.ts.snap +39 -0
  121. package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/__tests__/AmeliproStepBtn.spec.ts +97 -0
  122. package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/__tests__/__snapshots__/AmeliproStepBtn.spec.ts.snap +61 -0
  123. package/src/components/Amelipro/AmeliproStepper/__tests__/AmeliproStepper.spec.ts +248 -0
  124. package/src/components/Amelipro/AmeliproStepper/__tests__/__snapshots__/AmeliproStepper.spec.ts.snap +179 -0
  125. package/src/components/Amelipro/AmeliproTable/AmeliproTable.stories.ts +14 -13
  126. package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +2 -1
  127. package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +10 -3
  128. package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/__tests__/AmeliproTabBtn.spec.ts +129 -0
  129. package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/__tests__/__snapshots__/AmeliproTabBtn.spec.ts.snap +81 -0
  130. package/src/components/Amelipro/AmeliproTabs/AmeliproTabs.vue +2 -2
  131. package/src/components/Amelipro/AmeliproTabs/__tests__/AmeliproTabs.spec.ts +234 -0
  132. package/src/components/Amelipro/AmeliproTabs/__tests__/__snapshots__/AmeliproTabs.spec.ts.snap +122 -0
  133. package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.vue +7 -5
  134. package/src/components/Amelipro/AmeliproTextArea/__tests__/AmeliproTextArea.spec.ts +265 -9
  135. package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +98 -155
  136. package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.vue +7 -5
  137. package/src/components/Amelipro/AmeliproTextField/__tests__/AmeliproTextField.spec.ts +375 -0
  138. package/src/components/Amelipro/AmeliproTextField/__tests__/__snapshots__/AmeliproTextField.spec.ts.snap +143 -0
  139. package/src/components/Amelipro/AmeliproTileBtn/__tests__/AmeliproTileBtn.spec.ts +241 -0
  140. package/src/components/Amelipro/AmeliproTileBtn/__tests__/__snapshots__/AmeliproTileBtn.spec.ts.snap +74 -0
  141. package/src/components/Amelipro/AmeliproTooltips/__tests__/AmeliproTooltips.spec.ts +212 -0
  142. package/src/components/Amelipro/AmeliproTooltips/__tests__/__snapshots__/AmeliproTooltips.spec.ts.snap +71 -0
  143. package/src/components/Amelipro/AmeliproTransmission/__tests__/AmeliproTransmission.spec.ts +155 -0
  144. package/src/components/Amelipro/AmeliproTransmission/__tests__/__snapshots__/AmeliproTransmission.spec.ts.snap +240 -0
  145. package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.stories.ts +0 -1
  146. package/src/components/Amelipro/ServiceMenu/tests/__snapshots__/ServiceMenu.spec.ts.snap +4 -1
  147. package/src/components/Amelipro/StructureMenu/StructureBtn/StructureBtn.vue +4 -0
  148. package/src/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.vue +4 -5
  149. package/src/components/Amelipro/StructureMenu/StructureTabs/tests/__snapshots__/StructureTabs.spec.ts.snap +5 -4
  150. package/src/components/Amelipro/StructureMenu/tests/__snapshots__/StructureMenu.spec.ts.snap +13 -6
  151. package/src/components/Amelipro/UserMenu/UserMenu.vue +2 -1
  152. package/src/components/Amelipro/UserMenu/tests/__snapshots__/UserMenu.spec.ts.snap +4 -1
  153. package/src/components/Captcha/Captcha.mdx +4 -4
  154. package/src/components/Captcha/Captcha.stories.ts +8 -1
  155. package/src/components/Captcha/Captcha.vue +3 -0
  156. package/src/components/Captcha/CaptchaBase.vue +3 -0
  157. package/src/components/Captcha/captchaApi.ts +0 -1
  158. package/src/components/Customs/Selects/SySelect/SySelect.vue +2 -2
  159. package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +5 -0
  160. package/src/components/Customs/SyCheckbox/SyCheckbox.vue +1 -1
  161. package/src/components/Customs/SyTabs/SyTabs.stories.ts +174 -10
  162. package/src/components/Customs/SyTabs/SyTabs.vue +62 -0
  163. package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +98 -0
  164. package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +13 -13
  165. package/src/components/DatePicker/CalendarMode/DatePicker.vue +13 -0
  166. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +11 -11
  167. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +5 -0
  168. package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.mdx +7 -0
  169. package/src/components/DatePicker/DateTextInput/DateTextInput.range.spec.ts +1 -1
  170. package/src/components/DatePicker/DateTextInput/DateTextInput.spec.ts +3 -3
  171. package/src/components/DatePicker/DateTextInput/DateTextInput.vue +50 -2
  172. package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +15 -15
  173. package/src/components/DatePicker/composables/tests/useDateFormatValidation.spec.ts +2 -2
  174. package/src/components/DatePicker/composables/tests/useManualDateValidation.spec.ts +1 -1
  175. package/src/components/DatePicker/composables/useDateFormatDisplay.ts +25 -0
  176. package/src/components/DatePicker/composables/useDateFormatValidation.ts +5 -2
  177. package/src/components/DatePicker/composables/useManualDateValidation.ts +5 -1
  178. package/src/components/DatePicker/tests/DatePicker.validation.spec.ts +1 -1
  179. package/src/components/ErrorPage/ErrorPage.vue +54 -7
  180. package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +6 -2
  181. package/src/components/ExternalLinks/ExternalLinks.vue +2 -4
  182. package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +6 -2
  183. package/src/components/PasswordField/PasswordField.vue +6 -6
  184. package/src/components/RangeField/RangeSlider/RangeSlider.vue +3 -2
  185. package/src/components/RatingPicker/EmotionPicker/EmotionPicker.vue +2 -1
  186. package/src/components/RatingPicker/NumberPicker/NumberPicker.vue +2 -0
  187. package/src/components/RatingPicker/RatingPicker.stories.ts +10 -0
  188. package/src/components/RatingPicker/RatingPicker.vue +23 -1
  189. package/src/components/RatingPicker/StarsPicker/StarsPicker.vue +2 -0
  190. package/src/components/SearchListField/Accessibilite.stories.ts +4 -0
  191. package/src/components/SearchListField/SearchListField.stories.ts +16 -0
  192. package/src/components/SearchListField/SearchListField.vue +121 -109
  193. package/src/components/SearchListField/locales.ts +11 -2
  194. package/src/components/SearchListField/tests/SearchListField.spec.ts +91 -25
  195. package/src/components/SyAlert/SyAlert.vue +8 -0
  196. package/src/components/SyAlert/tests/SyAlert.spec.ts +1 -22
  197. package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +304 -0
  198. package/src/components/Tables/SyServerTable/SyServerTable.vue +12 -4
  199. package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +67 -0
  200. package/src/components/Tables/SyTable/SyTable.stories.ts +186 -0
  201. package/src/components/Tables/SyTable/SyTable.vue +12 -4
  202. package/src/components/Tables/SyTable/tests/SyTable.spec.ts +65 -1
  203. package/src/components/Tables/common/types.ts +2 -0
  204. package/src/composables/rules/useFieldValidation.ts +47 -7
  205. package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/tests/AmeliproLogoAm.spec.ts +0 -15
  206. package/src/components/Amelipro/AmeliproIcon/tests/AmeliproIcon.spec.ts +0 -19
  207. package/src/components/Amelipro/AmeliproIconBtn/tests/AmeliproIconBtn.spec.ts +0 -22
  208. package/src/components/Amelipro/AmeliproIconBtn/tests/__snapshots__/AmeliproIconBtn.spec.ts.snap +0 -87
  209. package/src/components/Amelipro/AmeliproIllustratedDataTile/tests/AmeliproIllustratedDataTile.spec.ts +0 -20
  210. package/src/components/Amelipro/AmeliproIllustratedDataTile/tests/__snapshots__/AmeliproIllustratedDataTile.spec.ts.snap +0 -69
  211. package/src/components/Amelipro/AmeliproIllustratedRadioGroup/tests/AmeliproIllustratedRadioGroup.spec.ts +0 -53
  212. package/src/components/Amelipro/AmeliproIllustratedRadioGroup/tests/__snapshots__/AmeliproIllustratedRadioGroup.spec.ts.snap +0 -544
  213. package/src/components/Amelipro/AmeliproMailTile/tests/AmeliproMailTile.spec.ts +0 -25
  214. package/src/components/Amelipro/AmeliproMailTile/tests/__snapshots__/AmeliproMailTile.spec.ts.snap +0 -164
  215. package/src/components/Amelipro/AmeliproMessage/tests/AmeliproMessage.spec.ts +0 -18
  216. package/src/components/Amelipro/AmeliproMessage/tests/__snapshots__/AmeliproMessage.spec.ts.snap +0 -94
  217. package/src/components/Amelipro/AmeliproMessagingLayout/tests/AmeliproMessagingLayout.spec.ts +0 -30
  218. package/src/components/Amelipro/AmeliproMessagingLayout/tests/__snapshots__/AmeliproMessagingLayout.spec.ts.snap +0 -439
  219. package/src/components/Amelipro/AmeliproNumberedCard/tests/AmeliproNumberedCard.spec.ts +0 -23
  220. package/src/components/Amelipro/AmeliproOnboarding/tests/AmeliproOnboarding.spec.ts +0 -41
  221. package/src/components/Amelipro/AmeliproOnboarding/tests/__snapshots__/AmeliproOnboarding.spec.ts.snap +0 -3
  222. package/src/components/Amelipro/AmeliproPageLayout/tests/AmeliproPageLayout.spec.ts +0 -183
  223. package/src/components/Amelipro/AmeliproPageLayout/tests/__snapshots__/AmeliproPageLayout.spec.ts.snap +0 -1602
  224. package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/tests/AmeliproPaginationBtn.spec.ts +0 -15
  225. package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/tests/__snapshots__/AmeliproPaginationBtn.spec.ts.snap +0 -46
  226. package/src/components/Amelipro/AmeliproPagination/tests/AmeliproPagination.spec.ts +0 -15
  227. package/src/components/Amelipro/AmeliproPagination/tests/__snapshots__/AmeliproPagination.spec.ts.snap +0 -116
  228. package/src/components/Amelipro/AmeliproPatientBanner/tests/AmeliproPatientBanner.spec.ts +0 -24
  229. package/src/components/Amelipro/AmeliproPatientBanner/tests/__snapshots__/AmeliproPatientBanner.spec.ts.snap +0 -268
  230. package/src/components/Amelipro/AmeliproRadioGroup/tests/AmeliproRadioGroup.spec.ts +0 -43
  231. package/src/components/Amelipro/AmeliproRadioGroup/tests/__snapshots__/AmeliproRadioGroup.spec.ts.snap +0 -262
  232. package/src/components/Amelipro/AmeliproSelect/tests/AmeliproSelect.spec.ts +0 -38
  233. package/src/components/Amelipro/AmeliproSelect/tests/__snapshots__/AmeliproSelect.spec.ts.snap +0 -196
  234. package/src/components/Amelipro/AmeliproStateTile/tests/AmeliproStateTile.spec.ts +0 -20
  235. package/src/components/Amelipro/AmeliproStateTile/tests/__snapshots__/AmeliproStateTile.spec.ts.snap +0 -90
  236. package/src/components/Amelipro/AmeliproStatus/tests/AmeliproStatus.spec.ts +0 -16
  237. package/src/components/Amelipro/AmeliproStatus/tests/__snapshots__/AmeliproStatus.spec.ts.snap +0 -21
  238. package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/tests/AmeliproStepBtn.spec.ts +0 -18
  239. package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/tests/__snapshots__/AmeliproStepBtn.spec.ts.snap +0 -34
  240. package/src/components/Amelipro/AmeliproStepper/tests/AmeliproStepper.spec.ts +0 -36
  241. package/src/components/Amelipro/AmeliproStepper/tests/__snapshots__/AmeliproStepper.spec.ts.snap +0 -354
  242. package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/tests/AmeliproTabBtn.spec.ts +0 -20
  243. package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/tests/__snapshots__/AmeliproTabBtn.spec.ts.snap +0 -34
  244. package/src/components/Amelipro/AmeliproTabs/tests/AmeliproTabs.spec.ts +0 -39
  245. package/src/components/Amelipro/AmeliproTabs/tests/__snapshots__/AmeliproTabs.spec.ts.snap +0 -217
  246. package/src/components/Amelipro/AmeliproTextField/tests/AmeliproTextField.spec.ts +0 -16
  247. package/src/components/Amelipro/AmeliproTextField/tests/__snapshots__/AmeliproTextField.spec.ts.snap +0 -162
  248. package/src/components/Amelipro/AmeliproTileBtn/tests/AmeliproTileBtn.spec.ts +0 -17
  249. package/src/components/Amelipro/AmeliproTileBtn/tests/__snapshots__/AmeliproTileBtn.spec.ts.snap +0 -65
  250. package/src/components/Amelipro/AmeliproTooltips/tests/AmeliproTooltips.spec.ts +0 -16
  251. package/src/components/Amelipro/AmeliproTooltips/tests/__snapshots__/AmeliproTooltips.spec.ts.snap +0 -105
  252. package/src/components/Amelipro/AmeliproTransmission/tests/AmeliproTransmission.spec.ts +0 -16
  253. package/src/components/Amelipro/AmeliproTransmission/tests/__snapshots__/AmeliproTransmission.spec.ts.snap +0 -246
  254. package/src/components/SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap +0 -99
@@ -0,0 +1,189 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`AmeliproPageLayout > Snapshots > renders the component with all properties filled in 1`] = `
4
+ <div
5
+ class="
6
+ amelipro-page-layout
7
+ bg-ap-grey-lighten-6
8
+ d-flex
9
+ flex-column
10
+ w-100
11
+ "
12
+ id="modified-unique-id-container"
13
+ >
14
+ <div
15
+ class="
16
+ body-content
17
+ d-flex
18
+ flex-column
19
+ w-100
20
+ "
21
+ id="modified-unique-id-content"
22
+ >
23
+ <nav
24
+ aria-label="liens d'évitement"
25
+ class="skip-link__nav"
26
+ id="modified-unique-id-focus-navigation"
27
+ >
28
+ <ul
29
+ class="
30
+ list-style-none
31
+ skip-link__list
32
+ "
33
+ id="modified-unique-id-focus-navigation-list"
34
+ >
35
+ <li
36
+ class="skip-link__item"
37
+ id="modified-unique-id-focus-navigation-item-main"
38
+ >
39
+ <a
40
+ class="
41
+ d-sr-only-focusable
42
+ pa-2
43
+ skip-link
44
+ "
45
+ href="#main-content"
46
+ id="modified-unique-id-focus-navigation-main-link"
47
+ >Contenu principal</a>
48
+ </li>
49
+ <li
50
+ class="skip-link__item"
51
+ id="modified-unique-id-focus-navigation-item-0"
52
+ >
53
+ <a
54
+ class="
55
+ d-sr-only-focusable
56
+ pa-2
57
+ skip-link
58
+ "
59
+ href="#modified"
60
+ id="modified-unique-id-focus-navigation-link-0"
61
+ >Modified skip link</a>
62
+ </li>
63
+ </ul>
64
+ </nav>
65
+ <div id="modified-unique-id-header-wrapper">
66
+ <amelipro-header-stub
67
+ ameliproheaderinfos="[object Object]"
68
+ backbtnlabel="Retour"
69
+ backoffice="true"
70
+ headertitle="Modified header title"
71
+ norightpart="false"
72
+ nosubpart="false"
73
+ servicename="Modified service name"
74
+ submenu="false"
75
+ submenuitems=""
76
+ uniqueid="modified-unique-id-header"
77
+ unlogged="false"
78
+ ></amelipro-header-stub>
79
+ </div>
80
+ <main
81
+ class="amelipro-main"
82
+ id="modified-unique-id-main"
83
+ role="main"
84
+ style="min-height: 1px;"
85
+ >
86
+ <div id="modified-unique-id-patient-banner-wrapper">
87
+ <amelipro-patient-banner-stub
88
+ birthdate="01/01/1980"
89
+ birthname="Patient Birth Name"
90
+ name="Patient Name"
91
+ nomoreinformation="true"
92
+ nopatientchange="true"
93
+ patientnir="1234567890123"
94
+ patientorganism="Organism"
95
+ patientstatus="Status"
96
+ patientsystem="System"
97
+ uniqueid="modified-unique-id-patient-banner"
98
+ ></amelipro-patient-banner-stub>
99
+ </div>
100
+ <div
101
+ class="
102
+ main-content__content
103
+ mx-auto
104
+ "
105
+ id="modified-unique-id-main-content"
106
+ ></div>
107
+ </main>
108
+ <div class="mt-auto">
109
+ <div id="modified-unique-id-footer-wrapper">
110
+ <amelipro-footer-stub
111
+ a11ycompliance="conforme"
112
+ backoffice="false"
113
+ configurationlabel="Configuration"
114
+ noa11y="false"
115
+ noabout="false"
116
+ nocgu="false"
117
+ noconfiguration="false"
118
+ nolegalnotice="false"
119
+ nolinka11y="false"
120
+ nophone="false"
121
+ nositemap="false"
122
+ phonelink="true"
123
+ uniqueid="modified-unique-id-footer"
124
+ version="1.2.3"
125
+ ></amelipro-footer-stub>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ `;
131
+
132
+ exports[`AmeliproPageLayout > Snapshots > renders the component with only required properties filled in 1`] = `
133
+ <div class="
134
+ amelipro-page-layout
135
+ bg-ap-grey-lighten-6
136
+ d-flex
137
+ flex-column
138
+ w-100
139
+ ">
140
+ <div class="
141
+ body-content
142
+ d-flex
143
+ flex-column
144
+ w-100
145
+ ">
146
+ <nav
147
+ aria-label="liens d'évitement"
148
+ class="skip-link__nav"
149
+ >
150
+ <ul class="
151
+ list-style-none
152
+ skip-link__list
153
+ ">
154
+ <li class="skip-link__item">
155
+ <a
156
+ class="
157
+ d-sr-only-focusable
158
+ pa-2
159
+ skip-link
160
+ "
161
+ href="#main-content"
162
+ >Contenu principal</a>
163
+ </li>
164
+ </ul>
165
+ </nav>
166
+ <!-- v-if -->
167
+ <main
168
+ class="amelipro-main"
169
+ role="main"
170
+ style="min-height: 1px;"
171
+ >
172
+ <!-- v-if -->
173
+ <div
174
+ class="
175
+ main-content__content
176
+ mx-auto
177
+ "
178
+ style="
179
+ max-width: 100%;
180
+ padding: 30px 10px;
181
+ "
182
+ ></div>
183
+ </main>
184
+ <div class="mt-auto">
185
+ <!-- v-if -->
186
+ </div>
187
+ </div>
188
+ </div>
189
+ `;
@@ -0,0 +1,92 @@
1
+ import { VueWrapper, shallowMount } from '@vue/test-utils'
2
+ import { beforeEach, describe, expect, it } from 'vitest'
3
+ import { AmeliproBtn } from '@/components'
4
+ import AmeliproPaginationBtn from '../AmeliproPaginationBtn.vue'
5
+ import type { ComponentProps } from 'vue-component-type-helpers'
6
+ import type { ExpectedPropOptions } from '@tests/types'
7
+ import type { PropType } from 'vue'
8
+ import type { RouteLocationRaw } from 'vue-router'
9
+ import TestHelper from '@tests/helpers/TestHelper'
10
+
11
+ const expectedPropOptions: ExpectedPropOptions<typeof AmeliproPaginationBtn> = {
12
+ href: {
13
+ type: String,
14
+ default: undefined,
15
+ },
16
+ isActive: {
17
+ type: Boolean,
18
+ default: false,
19
+ },
20
+ title: {
21
+ type: String,
22
+ default: undefined,
23
+ },
24
+ to: {
25
+ type: [Array, Object, String] as PropType<RouteLocationRaw>,
26
+ default: undefined,
27
+ },
28
+ uniqueId: {
29
+ type: String,
30
+ default: undefined,
31
+ },
32
+ }
33
+
34
+ // Values pour les props "required"
35
+ const requiredPropValues = (): ComponentProps<typeof AmeliproPaginationBtn> => ({})
36
+
37
+ // Valeurs pour les props "modified"
38
+ const modifiedPropValues = (): ComponentProps<typeof AmeliproPaginationBtn> => ({
39
+ href: 'modified-href',
40
+ isActive: true,
41
+ title: 'Modified title',
42
+ to: 'modified-to',
43
+ uniqueId: 'modified-unique-id',
44
+ })
45
+
46
+ const testHelper = new TestHelper(AmeliproPaginationBtn)
47
+ testHelper.setExpectedPropOptions(expectedPropOptions)
48
+ .setRequiredPropValues(requiredPropValues)
49
+ .setModifiedPropValues(modifiedPropValues)
50
+
51
+ describe('AmeliproPaginationBtn', () => {
52
+ describe('Snapshots', () => {
53
+ testHelper.snapshots()
54
+ })
55
+
56
+ describe('Properties', () => {
57
+ testHelper.properties()
58
+ })
59
+
60
+ describe('Events', () => {
61
+ let vueWrapper: VueWrapper<InstanceType<typeof AmeliproPaginationBtn>>
62
+ beforeEach(() => {
63
+ vueWrapper = shallowMount(AmeliproPaginationBtn, { props: requiredPropValues() })
64
+ })
65
+
66
+ it('emits click event when the button is clicked', async () => {
67
+ expect(vueWrapper.emitted('click')).toBeUndefined()
68
+ await vueWrapper.findComponent(AmeliproBtn).trigger('click')
69
+ expect(vueWrapper.emitted('click')).toStrictEqual([[]])
70
+ })
71
+ })
72
+
73
+ describe('Setting props should update inner attribute and tags', () => {
74
+ let vueWrapper: VueWrapper<InstanceType<typeof AmeliproPaginationBtn>>
75
+ const btnFinder = () => vueWrapper.findComponent(AmeliproBtn)
76
+
77
+ beforeEach(() => {
78
+ vueWrapper = shallowMount(AmeliproPaginationBtn, { props: requiredPropValues() })
79
+ })
80
+
81
+ it('prop isActive sets props & attributes = false', async () => {
82
+ expect(btnFinder().attributes('aria-current')).toBeUndefined()
83
+ expect(btnFinder().props('color')).toBe('ap-white')
84
+ expect(btnFinder().props('textColor')).toBe('ap-blue-darken-1')
85
+
86
+ await vueWrapper.setProps({ isActive: testHelper.modified('isActive') })
87
+ expect(btnFinder().attributes('aria-current')).toStrictEqual('page')
88
+ expect(btnFinder().props('color')).toBe('ap-blue-darken-1')
89
+ expect(btnFinder().props('textColor')).toBe('ap-white')
90
+ })
91
+ })
92
+ })
@@ -0,0 +1,56 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`AmeliproPaginationBtn > Snapshots > renders the component with all properties filled in 1`] = `
4
+ <amelipro-btn-stub
5
+ aria-current="page"
6
+ badge="false"
7
+ badgebgcolor="ap-pink"
8
+ badgecolor="ap-white"
9
+ bordered="false"
10
+ classes="amelipro-pagination__btn"
11
+ color="ap-blue-darken-1"
12
+ disabled="false"
13
+ hovercolor="ap-blue-darken-1"
14
+ hoverunderline="false"
15
+ href="modified-href"
16
+ iconbgcolor="transparent"
17
+ iconbordered="false"
18
+ iconleft="false"
19
+ infoblock="false"
20
+ minheight="2.5rem"
21
+ size="60px"
22
+ text="false"
23
+ textcolor="ap-white"
24
+ texthovercolor="ap-white"
25
+ title="page active"
26
+ to="modified-to"
27
+ type="button"
28
+ underline="false"
29
+ uniqueid="modified-unique-id"
30
+ ></amelipro-btn-stub>
31
+ `;
32
+
33
+ exports[`AmeliproPaginationBtn > Snapshots > renders the component with only required properties filled in 1`] = `
34
+ <amelipro-btn-stub
35
+ badge="false"
36
+ badgebgcolor="ap-pink"
37
+ badgecolor="ap-white"
38
+ bordered="false"
39
+ classes="amelipro-pagination__btn"
40
+ color="ap-white"
41
+ disabled="false"
42
+ hovercolor="ap-blue-darken-1"
43
+ hoverunderline="false"
44
+ iconbgcolor="transparent"
45
+ iconbordered="false"
46
+ iconleft="false"
47
+ infoblock="false"
48
+ minheight="2.5rem"
49
+ size="60px"
50
+ text="false"
51
+ textcolor="ap-blue-darken-1"
52
+ texthovercolor="ap-white"
53
+ type="button"
54
+ underline="false"
55
+ ></amelipro-btn-stub>
56
+ `;
@@ -0,0 +1,165 @@
1
+ import { VueWrapper, shallowMount } from '@vue/test-utils'
2
+ import { beforeEach, describe, expect, it } from 'vitest'
3
+ import AmeliproPagination from '../AmeliproPagination.vue'
4
+ import AmeliproPaginationBtn from '../AmeliproPaginationBtn/AmeliproPaginationBtn.vue'
5
+ import type { ComponentProps } from 'vue-component-type-helpers'
6
+ import type { ExpectedPropOptions } from '@tests/types'
7
+ import type { PaginationTypes } from '../types'
8
+ import TestHelper from '@tests/helpers/TestHelper'
9
+
10
+ const expectedPropOptions: ExpectedPropOptions<typeof AmeliproPagination> = {
11
+ activePageDefault: {
12
+ type: Number,
13
+ default: 1,
14
+ },
15
+ items: {
16
+ type: Array as () => PaginationTypes[],
17
+ default: () => [],
18
+ },
19
+ uniqueId: {
20
+ type: String,
21
+ default: undefined,
22
+ },
23
+ }
24
+
25
+ const items2 = () => [
26
+ { key: 1 },
27
+ { key: 2 },
28
+ ]
29
+
30
+ const items3 = () => [
31
+ { key: 1 },
32
+ { key: 2 },
33
+ { key: 3 },
34
+ ]
35
+
36
+ const items4 = () => [
37
+ { key: 1 },
38
+ { key: 2 },
39
+ { key: 3 },
40
+ { key: 4 },
41
+ ]
42
+
43
+ const items5 = () => [
44
+ { key: 1 },
45
+ { key: 2 },
46
+ { key: 3 },
47
+ { key: 4 },
48
+ { key: 5 },
49
+ ]
50
+
51
+ // Values pour les props "required"
52
+ const requiredPropValues = (): ComponentProps<typeof AmeliproPagination> => ({})
53
+
54
+ // Valeurs pour les props "modified"
55
+ const modifiedPropValues = (): ComponentProps<typeof AmeliproPagination> => ({
56
+ activePageDefault: 2,
57
+ items: [
58
+ { key: 1 },
59
+ { key: 2 },
60
+ { key: 3 },
61
+ { key: 4 },
62
+ { key: 5 },
63
+ { key: 6 },
64
+ { key: 7 },
65
+ ],
66
+ uniqueId: 'modified-unique-id',
67
+ })
68
+
69
+ const testHelper = new TestHelper(AmeliproPagination)
70
+ testHelper.setExpectedPropOptions(expectedPropOptions)
71
+ .setRequiredPropValues(requiredPropValues)
72
+ .setModifiedPropValues(modifiedPropValues)
73
+
74
+ describe('AmeliproPagination', () => {
75
+ describe('Snapshots', () => {
76
+ testHelper.snapshots()
77
+ })
78
+
79
+ describe('Properties', () => {
80
+ testHelper.properties()
81
+ })
82
+
83
+ describe('Setting props should update list of items', () => {
84
+ let vueWrapper: VueWrapper<InstanceType<typeof AmeliproPagination>>
85
+ const itemFinder = () => vueWrapper.findAll('.amelipro-pagination__item')
86
+ beforeEach(() => {
87
+ vueWrapper = shallowMount(AmeliproPagination, { props: requiredPropValues() })
88
+ })
89
+
90
+ it('initialise le composant avec le bon nombre d’items', async () => {
91
+ // TODO: corriger le composant pour ne pas avoir 2 boutons vide si liste vide ?
92
+ expect(itemFinder()).toHaveLength(2)
93
+
94
+ await vueWrapper.setProps({ items: items2() })
95
+ expect(itemFinder()).toHaveLength(2)
96
+
97
+ await vueWrapper.setProps({ items: items3() })
98
+ expect(itemFinder()).toHaveLength(3)
99
+
100
+ await vueWrapper.setProps({ items: items4() })
101
+ expect(itemFinder()).toHaveLength(4)
102
+
103
+ await vueWrapper.setProps({ items: items5() })
104
+ expect(itemFinder()).toHaveLength(5)
105
+
106
+ // we expect it to be 5 because the component must display 5 elements maximum
107
+ await vueWrapper.setProps({ items: testHelper.modified('items') })
108
+ expect(itemFinder()).toHaveLength(5)
109
+ })
110
+ })
111
+
112
+ describe('Events', () => {
113
+ let vueWrapper: VueWrapper<InstanceType<typeof AmeliproPagination>>
114
+ const buttonsFinder = () => vueWrapper.findAllComponents(AmeliproPaginationBtn)
115
+
116
+ beforeEach(() => {
117
+ vueWrapper = shallowMount(AmeliproPagination, { props: { ...requiredPropValues(), items: testHelper.modified('items') } })
118
+ })
119
+
120
+ it('emits click event when emitClickEvent is called', async () => {
121
+ expect(vueWrapper.emitted('click')).toBeUndefined()
122
+ await vueWrapper.findComponent(AmeliproPaginationBtn).trigger('click')
123
+ expect(vueWrapper.emitted('click')).toEqual([[1]])
124
+ })
125
+
126
+ it('updates navigation bar items when clicking on buttons', async () => {
127
+ expect(buttonsFinder().length).toBe(5)
128
+ // [_1_] [2] [3] [>] [7]
129
+ expect(buttonsFinder().at(0)?.props('isActive')).toBe(true)
130
+ expect(buttonsFinder().at(1)?.attributes('title')).toBe(undefined)
131
+ expect(buttonsFinder().at(3)?.attributes('title')).toBe('page suivante')
132
+
133
+ await buttonsFinder().at(0)?.trigger('click')
134
+ // => click bouton [1], bouton actif reste positionné sur le [1]
135
+ // [_1_] [2] [3] [>] [7]
136
+ expect(buttonsFinder().at(0)?.props('isActive')).toBe(true)
137
+ expect(buttonsFinder().at(1)?.attributes('title')).toBe(undefined)
138
+ expect(buttonsFinder().at(3)?.attributes('title')).toBe('page suivante')
139
+
140
+ await buttonsFinder().at(3)?.trigger('click')
141
+ // => click bouton [>], bouton actif se décale
142
+ // [1] [_2_] [3] [>] [7]
143
+ expect(buttonsFinder().at(0)?.attributes('title')).toBe(undefined)
144
+ expect(buttonsFinder().at(1)?.props('isActive')).toBe(true)
145
+ expect(buttonsFinder().at(3)?.attributes('title')).toBe('page suivante')
146
+
147
+ await buttonsFinder().at(2)?.trigger('click')
148
+ // => click bouton [3], bouton actif se positionne sur le [3]
149
+ // [1] [2] [_3_] [>] [7]
150
+ expect(buttonsFinder().at(0)?.attributes('title')).toBe(undefined)
151
+ expect(buttonsFinder().at(1)?.attributes('title')).toBe(undefined)
152
+ expect(buttonsFinder().at(2)?.props('isActive')).toBe(true)
153
+ expect(buttonsFinder().at(3)?.attributes('title')).toBe('page suivante')
154
+
155
+ await buttonsFinder().at(3)?.trigger('click')
156
+ // => click bouton [>], bouton actif se positionne sur le [4]
157
+ // [1] [<] [_4_] [>] [7]
158
+ expect(buttonsFinder().at(0)?.attributes('title')).toBe(undefined)
159
+ expect(buttonsFinder().at(1)?.attributes('title')).toBe('page précédente')
160
+ expect(buttonsFinder().at(2)?.props('isActive')).toBe(true)
161
+ expect(buttonsFinder().at(3)?.attributes('title')).toBe('page suivante')
162
+ expect(buttonsFinder().at(4)?.attributes('title')).toBe(undefined)
163
+ })
164
+ })
165
+ })
@@ -0,0 +1,83 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`AmeliproPagination > Snapshots > renders the component with all properties filled in 1`] = `
4
+ <nav
5
+ aria-label="pagination"
6
+ class="
7
+ align-center
8
+ amelipro-pagination
9
+ d-flex
10
+ justify-center
11
+ "
12
+ id="modified-unique-id-container"
13
+ >
14
+ <ol
15
+ class="
16
+ amelipro-pagination__list
17
+ d-flex
18
+ list-style-none
19
+ "
20
+ id="modified-unique-id-list"
21
+ >
22
+ <li class="amelipro-pagination__item">
23
+ <amelipro-pagination-btn-stub
24
+ isactive="false"
25
+ uniqueid="modified-unique-id-first"
26
+ ></amelipro-pagination-btn-stub>
27
+ </li>
28
+ <!-- v-if -->
29
+ <li class="amelipro-pagination__item">
30
+ <amelipro-pagination-btn-stub
31
+ isactive="true"
32
+ uniqueid="modified-unique-id-middle-0"
33
+ ></amelipro-pagination-btn-stub>
34
+ </li>
35
+ <li class="amelipro-pagination__item">
36
+ <amelipro-pagination-btn-stub
37
+ isactive="false"
38
+ uniqueid="modified-unique-id-middle-1"
39
+ ></amelipro-pagination-btn-stub>
40
+ </li>
41
+ <li class="amelipro-pagination__item">
42
+ <amelipro-pagination-btn-stub
43
+ isactive="false"
44
+ title="page suivante"
45
+ uniqueid="modified-unique-id-next"
46
+ ></amelipro-pagination-btn-stub>
47
+ </li>
48
+ <li class="amelipro-pagination__item">
49
+ <amelipro-pagination-btn-stub
50
+ isactive="false"
51
+ uniqueid="modified-unique-id-last"
52
+ ></amelipro-pagination-btn-stub>
53
+ </li>
54
+ </ol>
55
+ </nav>
56
+ `;
57
+
58
+ exports[`AmeliproPagination > Snapshots > renders the component with only required properties filled in 1`] = `
59
+ <nav
60
+ aria-label="pagination"
61
+ class="
62
+ align-center
63
+ amelipro-pagination
64
+ d-flex
65
+ justify-center
66
+ "
67
+ >
68
+ <ol class="
69
+ amelipro-pagination__list
70
+ d-flex
71
+ list-style-none
72
+ ">
73
+ <li class="amelipro-pagination__item">
74
+ <amelipro-pagination-btn-stub isactive="true"></amelipro-pagination-btn-stub>
75
+ </li>
76
+ <!-- v-if -->
77
+ <!-- v-if -->
78
+ <li class="amelipro-pagination__item">
79
+ <amelipro-pagination-btn-stub isactive="false"></amelipro-pagination-btn-stub>
80
+ </li>
81
+ </ol>
82
+ </nav>
83
+ `;