@cnamts/synapse 0.0.11-alpha → 0.0.13-alpha

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 (315) hide show
  1. package/dist/design-system-v3.js +5394 -3813
  2. package/dist/design-system-v3.umd.cjs +1 -1
  3. package/dist/src/components/Amelipro/types/types.d.ts +38 -0
  4. package/dist/src/components/CookieBanner/CookieBanner.d.ts +1 -1
  5. package/dist/src/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -0
  6. package/dist/src/components/Customs/SyTextField/SyTextField.d.ts +31 -23
  7. package/dist/src/components/Customs/SyTextField/types.d.ts +1 -0
  8. package/dist/src/components/DatePicker/DatePicker.d.ts +105 -102
  9. package/dist/src/components/DatePicker/DateTextInput.d.ts +82 -74
  10. package/dist/src/components/ErrorPage/ErrorPage.d.ts +1 -1
  11. package/dist/src/components/FileList/FileList.d.ts +1 -0
  12. package/dist/src/components/FileList/UploadItem/UploadItem.d.ts +1 -1
  13. package/dist/src/components/FilterInline/AccessibiliteItems.d.ts +30 -0
  14. package/dist/src/components/FilterInline/constants/ExpertiseLevelEnum.d.ts +4 -0
  15. package/dist/src/components/FilterSideBar/AccessibiliteItems.d.ts +29 -0
  16. package/dist/src/components/FilterSideBar/FilterSideBar.d.ts +31 -0
  17. package/dist/src/components/FilterSideBar/constants/ExpertiseLevelEnum.d.ts +4 -0
  18. package/dist/src/components/FilterSideBar/locales.d.ts +7 -0
  19. package/dist/src/components/LangBtn/LangBtn.d.ts +2 -2
  20. package/dist/src/components/NirField/NirField.d.ts +952 -0
  21. package/dist/src/components/NotificationBar/NotificationBar.d.ts +6 -6
  22. package/dist/src/components/PasswordField/PasswordField.d.ts +42 -8
  23. package/dist/src/components/PeriodField/PeriodField.d.ts +259 -235
  24. package/dist/src/components/PhoneField/PhoneField.d.ts +33 -3
  25. package/dist/src/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +1 -1
  26. package/dist/src/components/RatingPicker/NumberPicker/NumberPicker.d.ts +1 -1
  27. package/dist/src/components/RatingPicker/StarsPicker/StarsPicker.d.ts +1 -1
  28. package/dist/src/components/UploadWorkflow/AccessibiliteItems.d.ts +29 -0
  29. package/dist/src/components/UploadWorkflow/config.d.ts +29 -0
  30. package/dist/src/components/UploadWorkflow/constants/ExpertiseLevelEnum.d.ts +4 -0
  31. package/dist/src/components/UploadWorkflow/locales.d.ts +7 -0
  32. package/dist/src/components/UploadWorkflow/types.d.ts +19 -0
  33. package/dist/src/components/UploadWorkflow/useFileList.d.ts +10 -0
  34. package/dist/src/components/UploadWorkflow/useFileUploadJourney.d.ts +9 -0
  35. package/dist/src/components/Usages/Usages.d.ts +10 -0
  36. package/dist/src/components/index.d.ts +5 -0
  37. package/dist/src/composables/date/tests/useDateFormat.spec.d.ts +1 -0
  38. package/dist/src/composables/date/tests/useDateInitialization.spec.d.ts +1 -0
  39. package/dist/src/composables/date/tests/useDatePickerAccessibility.spec.d.ts +1 -0
  40. package/dist/src/composables/date/useDateFormat.d.ts +26 -0
  41. package/dist/src/composables/date/useDateInitialization.d.ts +18 -0
  42. package/dist/src/composables/date/useDatePickerAccessibility.d.ts +8 -0
  43. package/dist/src/composables/rules/useFieldValidation.d.ts +1 -0
  44. package/dist/src/composables/useFilterable/useFilterable.d.ts +1 -1
  45. package/dist/src/composables/validation/tests/useValidation.spec.d.ts +1 -0
  46. package/dist/src/composables/validation/useValidation.d.ts +40 -0
  47. package/dist/src/designTokens/index.d.ts +3 -1
  48. package/dist/src/main.d.ts +1 -0
  49. package/dist/src/utils/formatDate/index.d.ts +3 -0
  50. package/dist/src/utils/formatDate/tests/formatDate.spec.d.ts +1 -0
  51. package/dist/src/utils/functions/validation/isDateAfter/index.d.ts +2 -0
  52. package/dist/src/utils/functions/validation/isDateAfter/tests/isDateAfter.spec.d.ts +1 -0
  53. package/dist/src/utils/functions/validation/isDateBefore/index.d.ts +2 -0
  54. package/dist/src/utils/functions/validation/isDateBefore/tests/isDateBefore.spec.d.ts +1 -0
  55. package/dist/src/utils/functions/validation/isDateInRange/index.d.ts +3 -0
  56. package/dist/src/utils/functions/validation/isDateInRange/tests/isDateInRange.spec.d.ts +1 -0
  57. package/dist/src/utils/functions/validation/isDateValid/index.d.ts +9 -0
  58. package/dist/src/utils/functions/validation/isDateValid/tests/isDateValid.spec.d.ts +1 -0
  59. package/dist/src/utils/functions/validation/isEmailValid/tests/isEmailValid.spec.d.ts +1 -0
  60. package/dist/src/utils/functions/validation/isWeekend/index.d.ts +3 -0
  61. package/dist/src/utils/functions/validation/isWeekend/tests/isWeekend.spec.d.ts +1 -0
  62. package/dist/src/utils/parseDate/index.d.ts +3 -0
  63. package/dist/src/utils/parseDate/tests/parseDate.spec.d.ts +1 -0
  64. package/dist/src/utils/rules/doMatchPattern/index.d.ts +3 -0
  65. package/dist/src/utils/rules/doMatchPattern/tests/matchPattern.spec.d.ts +1 -0
  66. package/dist/src/utils/rules/index.d.ts +11 -0
  67. package/dist/src/utils/rules/isDateValid/index.d.ts +4 -0
  68. package/dist/src/utils/rules/isDateValid/tests/isDateValid.spec.d.ts +1 -0
  69. package/dist/src/utils/rules/isExactLength/index.d.ts +3 -0
  70. package/dist/src/utils/rules/isExactLength/locales.d.ts +2 -0
  71. package/dist/src/utils/rules/isExactLength/tests/exactLength.spec.d.ts +1 -0
  72. package/dist/src/utils/rules/isMaxLength/index.d.ts +3 -0
  73. package/dist/src/utils/rules/isMaxLength/locales.d.ts +2 -0
  74. package/dist/src/utils/rules/isMaxLength/tests/isMaxLength.spec.d.ts +1 -0
  75. package/dist/src/utils/rules/isMinLength/index.d.ts +3 -0
  76. package/dist/src/utils/rules/isMinLength/locales.d.ts +2 -0
  77. package/dist/src/utils/rules/isMinLength/tests/isMinLength.spec.d.ts +1 -0
  78. package/dist/src/utils/rules/isNotAfterDate/index.d.ts +3 -0
  79. package/dist/src/utils/rules/isNotAfterDate/tests/isNotAfterDate.spec.d.ts +1 -0
  80. package/dist/src/utils/rules/isNotAfterToday/index.d.ts +4 -0
  81. package/dist/src/utils/rules/isNotAfterToday/locales.d.ts +2 -0
  82. package/dist/src/utils/rules/isNotAfterToday/tests/isNotAfterToday.spec.d.ts +1 -0
  83. package/dist/src/utils/rules/isNotBeforeDate/index.d.ts +3 -0
  84. package/dist/src/utils/rules/isNotBeforeDate/locales.d.ts +2 -0
  85. package/dist/src/utils/rules/isNotBeforeDate/tests/IsNotBeforeDate.spec.d.ts +1 -0
  86. package/dist/src/utils/rules/isNotBeforeToday/index.d.ts +4 -0
  87. package/dist/src/utils/rules/isNotBeforeToday/locales.d.ts +2 -0
  88. package/dist/src/utils/rules/isNotBeforeToday/tests/notBeforeToday.spec.d.ts +1 -0
  89. package/dist/src/utils/rules/isRequired/index.d.ts +4 -0
  90. package/dist/src/utils/rules/isRequired/locales.d.ts +2 -0
  91. package/dist/src/utils/rules/isRequired/tests/isRequred.spec.d.ts +1 -0
  92. package/dist/src/utils/rules/isValidEmail/index.d.ts +4 -0
  93. package/dist/src/utils/rules/isValidEmail/locales.d.ts +2 -0
  94. package/dist/src/utils/rules/isValidEmail/tests/isValidEmail.spec.d.ts +1 -0
  95. package/dist/src/vuetifyConfig.d.ts +81 -0
  96. package/dist/style.css +1 -1
  97. package/package.json +3 -1
  98. package/src/assets/_elevations.scss +89 -0
  99. package/src/assets/_fonts.scss +6 -0
  100. package/src/assets/_radius.scss +92 -0
  101. package/src/assets/_spacers.scss +149 -0
  102. package/src/assets/settings.scss +15 -3
  103. package/src/assets/tokens.scss +32 -29
  104. package/src/components/Amelipro/types/types.ts +40 -0
  105. package/src/components/ChipList/ChipList.stories.ts +26 -27
  106. package/src/components/ChipList/ChipList.vue +5 -1
  107. package/src/components/ChipList/config.ts +1 -0
  108. package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +2 -2
  109. package/src/components/Customs/SyBtnSelect/SyBtnSelect.mdx +1 -1
  110. package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +1 -1
  111. package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +65 -0
  112. package/src/components/Customs/SyInputSelect/SyInputSelect.vue +13 -3
  113. package/src/components/Customs/SySelect/SySelect.mdx +1 -1
  114. package/src/components/Customs/SySelect/SySelect.stories.ts +88 -5
  115. package/src/components/Customs/SySelect/SySelect.vue +55 -14
  116. package/src/components/Customs/SySelect/tests/SySelect.spec.ts +135 -2
  117. package/src/components/Customs/SyTextField/SyTextField.mdx +2 -2
  118. package/src/components/Customs/SyTextField/SyTextField.stories.ts +809 -79
  119. package/src/components/Customs/SyTextField/SyTextField.vue +135 -104
  120. package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +190 -38
  121. package/src/components/Customs/SyTextField/types.d.ts +1 -0
  122. package/src/components/DatePicker/DatePicker.stories.ts +177 -5
  123. package/src/components/DatePicker/DatePicker.vue +302 -233
  124. package/src/components/DatePicker/DateTextInput.vue +101 -246
  125. package/src/components/DatePicker/tests/DatePicker.spec.ts +123 -60
  126. package/src/components/DatePicker/tests/DateTextInput.spec.ts +202 -6
  127. package/src/components/FileList/Accessibilite.stories.ts +1 -1
  128. package/src/components/FileList/AccessibiliteItems.ts +22 -0
  129. package/src/components/FileList/FileList.vue +2 -1
  130. package/src/components/FileList/UploadItem/UploadItem.vue +10 -0
  131. package/src/components/FileUpload/FileUpload.stories.ts +93 -7
  132. package/src/components/FileUpload/FileUpload.vue +1 -0
  133. package/src/components/FileUpload/tests/FileUpload.spec.ts +4 -4
  134. package/src/components/FilterInline/Accessibilite.mdx +14 -0
  135. package/src/components/FilterInline/Accessibilite.stories.ts +216 -0
  136. package/src/components/FilterInline/AccessibiliteItems.ts +132 -0
  137. package/src/components/FilterInline/FilterInline.mdx +180 -34
  138. package/src/components/FilterInline/FilterInline.stories.ts +363 -6
  139. package/src/components/FilterInline/constants/ExpertiseLevelEnum.ts +4 -0
  140. package/src/components/FilterSideBar/Accessibilite.mdx +14 -0
  141. package/src/components/FilterSideBar/Accessibilite.stories.ts +216 -0
  142. package/src/components/FilterSideBar/AccessibiliteItems.ts +153 -0
  143. package/src/components/FilterSideBar/FilterSideBar.mdx +237 -0
  144. package/src/components/FilterSideBar/FilterSideBar.stories.ts +798 -0
  145. package/src/components/FilterSideBar/FilterSideBar.vue +193 -0
  146. package/src/components/FilterSideBar/constants/ExpertiseLevelEnum.ts +4 -0
  147. package/src/components/FilterSideBar/locales.ts +8 -0
  148. package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +305 -0
  149. package/src/components/FilterSideBar/tests/__snapshots__/FilterSideBar.spec.ts.snap +39 -0
  150. package/src/components/HeaderBar/Usages.mdx +1 -1
  151. package/src/components/NirField/NirField.stories.ts +738 -29
  152. package/src/components/NirField/NirField.vue +401 -359
  153. package/src/components/NirField/examples//342/200/257dataset/342/200/257.md +12 -0
  154. package/src/components/NirField/tests/NirField.spec.ts +88 -52
  155. package/src/components/NirField/tests/config.spec.ts +65 -0
  156. package/src/components/NotificationBar/Accessibilite.stories.ts +4 -0
  157. package/src/components/NotificationBar/NotificationBar.mdx +2 -2
  158. package/src/components/NotificationBar/NotificationBar.stories.ts +66 -13
  159. package/src/components/NotificationBar/NotificationBar.vue +42 -114
  160. package/src/components/NotificationBar/tests/NotificationBar.spec.ts +28 -33
  161. package/src/components/NotificationBar/tests/__snapshots__/NotificationBar.spec.ts.snap +1 -1
  162. package/src/components/PaginatedTable/PaginatedTable.vue +6 -10
  163. package/src/components/PaginatedTable/tests/__snapshots__/PaginatedTable.spec.ts.snap +4 -4
  164. package/src/components/PasswordField/PasswordField.mdx +129 -47
  165. package/src/components/PasswordField/PasswordField.stories.ts +1111 -120
  166. package/src/components/PasswordField/PasswordField.vue +212 -99
  167. package/src/components/PasswordField/tests/PasswordField.spec.ts +138 -9
  168. package/src/components/PeriodField/PeriodField.stories.ts +214 -118
  169. package/src/components/PeriodField/PeriodField.vue +238 -190
  170. package/src/components/PeriodField/tests/PeriodField.spec.ts +146 -0
  171. package/src/components/PhoneField/PhoneField.stories.ts +170 -0
  172. package/src/components/PhoneField/PhoneField.vue +76 -17
  173. package/src/components/PhoneField/indicatifs.ts +1 -1
  174. package/src/components/PhoneField/tests/PhoneField.spec.ts +40 -0
  175. package/src/components/RatingPicker/RatingPicker.stories.ts +7 -7
  176. package/src/components/SearchListField/SearchListField.stories.ts +1 -1
  177. package/src/components/UploadWorkflow/Accessibilite.mdx +14 -0
  178. package/src/components/UploadWorkflow/Accessibilite.stories.ts +216 -0
  179. package/src/components/UploadWorkflow/AccessibiliteItems.ts +192 -0
  180. package/src/components/UploadWorkflow/UploadWorkflow.mdx +75 -0
  181. package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +943 -0
  182. package/src/components/UploadWorkflow/UploadWorkflow.vue +230 -0
  183. package/src/components/UploadWorkflow/config.ts +29 -0
  184. package/src/components/UploadWorkflow/constants/ExpertiseLevelEnum.ts +4 -0
  185. package/src/components/UploadWorkflow/locales.ts +8 -0
  186. package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +257 -0
  187. package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +54 -0
  188. package/src/components/UploadWorkflow/types.ts +21 -0
  189. package/src/components/UploadWorkflow/useFileList.ts +84 -0
  190. package/src/components/UploadWorkflow/useFileUploadJourney.ts +18 -0
  191. package/src/components/Usages/tests/Usages.spec.ts +183 -0
  192. package/src/components/index.ts +5 -0
  193. package/src/composables/date/tests/useDateFormat.spec.ts +67 -0
  194. package/src/composables/date/tests/useDateInitialization.spec.ts +89 -0
  195. package/src/composables/date/tests/useDatePickerAccessibility.spec.ts +102 -0
  196. package/src/composables/date/useDateFormat.ts +94 -0
  197. package/src/composables/date/useDateInitialization.ts +92 -0
  198. package/src/composables/date/useDatePickerAccessibility.ts +78 -0
  199. package/src/composables/rules/tests/useFieldValidation.spec.ts +385 -4
  200. package/src/composables/rules/useFieldValidation.ts +5 -2
  201. package/src/composables/useFilterable/useFilterable.ts +5 -4
  202. package/src/composables/validation/tests/useValidation.spec.ts +154 -0
  203. package/src/composables/validation/useValidation.ts +180 -0
  204. package/src/designTokens/index.ts +4 -0
  205. package/src/main.ts +1 -0
  206. package/src/stories/Accessibilite/Aculturation/AuditDesignSystem.mdx +28 -0
  207. package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +2 -2
  208. package/src/stories/Accessibilite/Audit/RGAA.mdx +6 -6
  209. package/src/stories/Accessibilite/Introduction.mdx +2 -1
  210. package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +1 -1
  211. package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +1 -1
  212. package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +8 -11
  213. package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +77 -0
  214. package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru.mdx +9 -3
  215. package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +2 -2
  216. package/src/stories/Demarrer/Accueil.mdx +1 -1
  217. package/src/stories/Demarrer/Introduction.stories.ts +3 -3
  218. package/src/stories/Demarrer/Releases.mdx +8 -0
  219. package/src/stories/Demarrer/Releases.stories.ts +66 -0
  220. package/src/stories/DesignTokens/Conteneurs.stories.ts +3 -3
  221. package/src/stories/DesignTokens/ThemePA.mdx +4 -30
  222. package/src/stories/GuideDuDev/LesBreackingChanges.mdx +36 -0
  223. package/src/stories/GuideDuDev/UtiliserLesRules.mdx +321 -78
  224. package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
  225. package/src/utils/formatDate/index.ts +6 -0
  226. package/src/utils/formatDate/tests/formatDate.spec.ts +18 -0
  227. package/src/utils/functions/validation/isDateAfter/index.ts +9 -0
  228. package/src/utils/functions/validation/isDateAfter/tests/isDateAfter.spec.ts +18 -0
  229. package/src/utils/functions/validation/isDateBefore/index.ts +9 -0
  230. package/src/utils/functions/validation/isDateBefore/tests/isDateBefore.spec.ts +23 -0
  231. package/src/utils/functions/validation/isDateInRange/index.ts +22 -0
  232. package/src/utils/functions/validation/isDateInRange/tests/isDateInRange.spec.ts +28 -0
  233. package/src/utils/functions/validation/isDateValid/index.ts +67 -0
  234. package/src/utils/functions/validation/isDateValid/tests/isDateValid.spec.ts +46 -0
  235. package/src/utils/functions/validation/isEmailValid/index.ts +9 -0
  236. package/src/utils/functions/validation/isWeekend/index.ts +10 -0
  237. package/src/utils/functions/validation/isWeekend/tests/isWeekend.spec.ts +16 -0
  238. package/src/utils/parseDate/index.ts +29 -0
  239. package/src/utils/parseDate/tests/parseDate.spec.ts +52 -0
  240. package/src/utils/rules/Rules.mdx +16 -0
  241. package/src/utils/rules/doMatchPattern/DoMachPattern.mdx +66 -0
  242. package/src/utils/rules/doMatchPattern/DoMatchPattern.stories.ts +106 -0
  243. package/src/utils/rules/doMatchPattern/index.ts +28 -0
  244. package/src/utils/rules/doMatchPattern/locales.ts +5 -0
  245. package/src/utils/rules/doMatchPattern/tests/matchPattern.spec.ts +38 -0
  246. package/src/utils/rules/index.ts +11 -0
  247. package/src/utils/rules/isDateValid/IsDateValid.mdx +87 -0
  248. package/src/utils/rules/isDateValid/IsDateValid.stories.ts +113 -0
  249. package/src/utils/rules/isDateValid/index.ts +32 -0
  250. package/src/utils/rules/isDateValid/locales.ts +10 -0
  251. package/src/utils/rules/isDateValid/tests/isDateValid.spec.ts +27 -0
  252. package/src/utils/rules/isExactLength/IsExactLenght.mdx +68 -0
  253. package/src/utils/rules/isExactLength/IsExactLength.stories.ts +151 -0
  254. package/src/utils/rules/{exactLength → isExactLength}/index.ts +2 -4
  255. package/src/utils/rules/isExactLength/tests/exactLength.spec.ts +48 -0
  256. package/src/utils/rules/isMaxLength/IsMaxLength.mdx +68 -0
  257. package/src/utils/rules/isMaxLength/IsMaxLength.stories.ts +152 -0
  258. package/src/utils/rules/isMaxLength/index.ts +30 -0
  259. package/src/utils/rules/isMaxLength/locales.ts +6 -0
  260. package/src/utils/rules/isMaxLength/tests/isMaxLength.spec.ts +42 -0
  261. package/src/utils/rules/isMinLength/IsMinLength.mdx +68 -0
  262. package/src/utils/rules/isMinLength/IsMinLength.stories.ts +152 -0
  263. package/src/utils/rules/isMinLength/index.ts +30 -0
  264. package/src/utils/rules/isMinLength/locales.ts +6 -0
  265. package/src/utils/rules/isMinLength/tests/isMinLength.spec.ts +42 -0
  266. package/src/utils/rules/isNotAfterDate/IsNotAfterDate.mdx +68 -0
  267. package/src/utils/rules/isNotAfterDate/IsNotAfterDate.stories.ts +109 -0
  268. package/src/utils/rules/isNotAfterDate/index.ts +25 -0
  269. package/src/utils/rules/isNotAfterDate/locales.ts +6 -0
  270. package/src/utils/rules/isNotAfterDate/tests/isNotAfterDate.spec.ts +25 -0
  271. package/src/utils/rules/isNotAfterToday/IsNotAfterToday.mdx +83 -0
  272. package/src/utils/rules/isNotAfterToday/IsNotAfterToday.stories.ts +110 -0
  273. package/src/utils/rules/isNotAfterToday/index.ts +28 -0
  274. package/src/utils/rules/isNotAfterToday/locales.ts +5 -0
  275. package/src/utils/rules/isNotAfterToday/tests/isNotAfterToday.spec.ts +30 -0
  276. package/src/utils/rules/isNotBeforeDate/IsNotBeforeDate.mdx +68 -0
  277. package/src/utils/rules/isNotBeforeDate/IsNotBeforeDate.stories.ts +114 -0
  278. package/src/utils/rules/isNotBeforeDate/index.ts +25 -0
  279. package/src/utils/rules/isNotBeforeDate/locales.ts +6 -0
  280. package/src/utils/rules/isNotBeforeDate/tests/IsNotBeforeDate.spec.ts +25 -0
  281. package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.mdx +83 -0
  282. package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.stories.ts +110 -0
  283. package/src/utils/rules/isNotBeforeToday/index.ts +28 -0
  284. package/src/utils/rules/isNotBeforeToday/locales.ts +5 -0
  285. package/src/utils/rules/isNotBeforeToday/tests/notBeforeToday.spec.ts +36 -0
  286. package/src/utils/rules/isRequired/IsRequired.mdx +81 -0
  287. package/src/utils/rules/isRequired/IsRequired.stories.ts +101 -0
  288. package/src/utils/rules/{required → isRequired}/index.ts +3 -3
  289. package/src/utils/rules/{required/tests/index.spec.ts → isRequired/tests/isRequred.spec.ts} +9 -9
  290. package/src/utils/rules/isValidEmail/IsValidEmail.mdx +81 -0
  291. package/src/utils/rules/isValidEmail/IsValidEmail.stories.ts +101 -0
  292. package/src/utils/rules/{email → isValidEmail}/index.ts +3 -5
  293. package/src/utils/rules/{email/tests/email.spec.ts → isValidEmail/tests/isValidEmail.spec.ts} +5 -5
  294. package/src/vuetifyConfig.ts +61 -0
  295. package/dist/src/utils/rules/email/index.d.ts +0 -4
  296. package/dist/src/utils/rules/exactLength/index.d.ts +0 -4
  297. package/dist/src/utils/rules/required/index.d.ts +0 -4
  298. package/dist/src/utils/rules/required/ruleMessageHelper.d.ts +0 -3
  299. package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +0 -58
  300. package/src/composables/useFilterable/__snapshots__/useFilterable.spec.ts.snap +0 -3
  301. package/src/utils/functions/isEmailValid/index.ts +0 -8
  302. package/src/utils/rules/required/ruleMessageHelper.ts +0 -14
  303. package/src/utils/rules/required/tests/rulesMessageHelper.spec.ts +0 -22
  304. /package/dist/src/{utils/functions/isEmailValid/tests/isEmailValid.spec.d.ts → components/FilterSideBar/tests/FilterSideBar.spec.d.ts} +0 -0
  305. /package/dist/src/{utils/rules/email/tests/email.spec.d.ts → components/NirField/tests/config.spec.d.ts} +0 -0
  306. /package/dist/src/{utils/rules/required/tests/index.spec.d.ts → components/UploadWorkflow/tests/UploadWorkflow.spec.d.ts} +0 -0
  307. /package/dist/src/{utils/rules/required/tests/rulesMessageHelper.spec.d.ts → components/Usages/tests/Usages.spec.d.ts} +0 -0
  308. /package/dist/src/utils/functions/{isEmailValid → validation/isEmailValid}/index.d.ts +0 -0
  309. /package/dist/src/utils/rules/{exactLength → doMatchPattern}/locales.d.ts +0 -0
  310. /package/dist/src/utils/rules/{email → isDateValid}/locales.d.ts +0 -0
  311. /package/dist/src/utils/rules/{required → isNotAfterDate}/locales.d.ts +0 -0
  312. /package/src/utils/functions/{isEmailValid → validation/isEmailValid}/tests/isEmailValid.spec.ts +0 -0
  313. /package/src/utils/rules/{exactLength → isExactLength}/locales.ts +0 -0
  314. /package/src/utils/rules/{required → isRequired}/locales.ts +0 -0
  315. /package/src/utils/rules/{email → isValidEmail}/locales.ts +0 -0
@@ -0,0 +1,38 @@
1
+ export interface IndexedObject<T = string> {
2
+ [key: string]: T;
3
+ }
4
+ export interface Theme {
5
+ primary: string;
6
+ secondary: string;
7
+ info: string;
8
+ warning: string;
9
+ error: string;
10
+ success: string;
11
+ }
12
+ export interface Color {
13
+ darken1?: string;
14
+ darken2?: string;
15
+ darken3?: string;
16
+ darken4?: string;
17
+ darken5?: string;
18
+ darken6?: string;
19
+ base: string;
20
+ lighten1?: string;
21
+ lighten2?: string;
22
+ lighten3?: string;
23
+ lighten4?: string;
24
+ lighten5?: string;
25
+ lighten6?: string;
26
+ }
27
+ export interface Palette {
28
+ apBlue: Color;
29
+ apGrey: Color;
30
+ apWhite: Color;
31
+ apBlack: Color;
32
+ apYellow: Color;
33
+ apGreen: Color;
34
+ apRed: Color;
35
+ apTurquoise: Color;
36
+ apParme: Color;
37
+ apPink: Color;
38
+ }
@@ -14,9 +14,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
14
14
  customize: (...args: any[]) => void;
15
15
  "update:modelValue": (value: boolean) => void;
16
16
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
18
  onSubmit?: ((...args: any[]) => any) | undefined;
18
19
  onAccept?: ((...args: any[]) => any) | undefined;
19
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
20
  onReject?: ((...args: any[]) => any) | undefined;
21
21
  onCustomize?: ((...args: any[]) => any) | undefined;
22
22
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, any>;
@@ -9,6 +9,7 @@ type __VLS_Props = CustomizableOptions & {
9
9
  required?: boolean;
10
10
  errorMessages?: string | string[];
11
11
  isHeaderToolbar?: boolean;
12
+ displayAsterisk?: boolean;
12
13
  };
13
14
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
14
15
  isOpen: import('vue').Ref<boolean, boolean>;
@@ -26,6 +27,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
26
27
  modelValue: string | Record<string, unknown> | null;
27
28
  label: string;
28
29
  errorMessages: string | string[];
30
+ displayAsterisk: boolean;
29
31
  items: string[] | Record<string, unknown>[];
30
32
  textKey: string;
31
33
  valueKey: string;
@@ -1,11 +1,14 @@
1
1
  import { IconType, VariantStyle, ColorType } from './types';
2
- import { RuleOptions } from '../../../composables/rules/useFieldValidation';
2
+ import { ValidationRule } from '../../../composables/validation/useValidation';
3
3
  type __VLS_Props = {
4
4
  modelValue?: string | number | null;
5
5
  prependIcon?: IconType;
6
6
  appendIcon?: IconType;
7
7
  prependInnerIcon?: IconType;
8
8
  appendInnerIcon?: IconType;
9
+ prependTooltip?: string;
10
+ appendTooltip?: string;
11
+ tooltipLocation?: 'top' | 'bottom' | 'start' | 'end';
9
12
  variantStyle?: VariantStyle;
10
13
  color?: ColorType;
11
14
  isClearable?: boolean;
@@ -56,30 +59,35 @@ type __VLS_Props = {
56
59
  width?: string | number;
57
60
  displayAsterisk?: boolean;
58
61
  noIcon?: boolean;
59
- customRules?: {
60
- type: string;
61
- options: RuleOptions;
62
- }[];
63
- customWarningRules?: {
64
- type: string;
65
- options: RuleOptions;
66
- }[];
62
+ customRules?: ValidationRule[];
63
+ customWarningRules?: ValidationRule[];
64
+ customSuccessRules?: ValidationRule[];
67
65
  showSuccessMessages?: boolean;
66
+ isValidateOnBlur?: boolean;
67
+ disableErrorHandling?: boolean;
68
68
  };
69
69
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {
70
- appendInnerIconColor: import('vue').ComputedRef<"error" | "warning" | "success" | "black">;
70
+ validation: {
71
+ errors: import('vue').Ref<string[], string[]>;
72
+ warnings: import('vue').Ref<string[], string[]>;
73
+ successes: import('vue').Ref<string[], string[]>;
74
+ hasError: import('vue').ComputedRef<boolean>;
75
+ hasWarning: import('vue').ComputedRef<boolean>;
76
+ hasSuccess: import('vue').ComputedRef<boolean>;
77
+ validateField: (value: unknown, rules?: ValidationRule[], warningRules?: ValidationRule[], successRules?: ValidationRule[]) => import('../../../composables/validation/useValidation').ValidationResult;
78
+ validateOnSubmit: () => Promise<boolean>;
79
+ clearValidation: () => void;
80
+ };
71
81
  validateOnSubmit: () => boolean;
72
- errors: import('vue').Ref<string[], string[]>;
73
- warnings: import('vue').Ref<string[], string[]>;
74
- successes: import('vue').Ref<string[], string[]>;
82
+ checkErrorOnBlur: () => void;
75
83
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
+ "update:modelValue": (...args: any[]) => void;
76
85
  clear: (...args: any[]) => void;
77
- "update:model-value": (...args: any[]) => void;
78
86
  "prepend-icon-click": (...args: any[]) => void;
79
87
  "append-icon-click": (...args: any[]) => void;
80
88
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
89
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
90
  onClear?: ((...args: any[]) => any) | undefined;
82
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
83
91
  "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
84
92
  "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
85
93
  }>, {
@@ -88,6 +96,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
88
96
  appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
89
97
  prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
90
98
  appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
99
+ prependTooltip: string;
100
+ appendTooltip: string;
101
+ tooltipLocation: "top" | "bottom" | "start" | "end";
91
102
  variantStyle: VariantStyle;
92
103
  color: ColorType;
93
104
  isClearable: boolean;
@@ -136,15 +147,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
136
147
  width: string | number;
137
148
  displayAsterisk: boolean;
138
149
  noIcon: boolean;
139
- customRules: {
140
- type: string;
141
- options: RuleOptions;
142
- }[];
143
- customWarningRules: {
144
- type: string;
145
- options: RuleOptions;
146
- }[];
150
+ customRules: ValidationRule[];
151
+ customWarningRules: ValidationRule[];
152
+ customSuccessRules: ValidationRule[];
147
153
  showSuccessMessages: boolean;
154
+ isValidateOnBlur: boolean;
155
+ disableErrorHandling: boolean;
148
156
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
149
157
  prepend?(_: {}): any;
150
158
  append?(_: {}): any;
@@ -1,3 +1,4 @@
1
1
  export type IconType = 'info' | 'success' | 'warning' | 'error' | 'close' | 'calendar' | undefined
2
2
  export type VariantStyle = 'outlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled' | 'underlined'
3
3
  export type ColorType = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error'
4
+ export type ValidateOnType = 'eager' | 'lazy' | 'blur' | 'input' | 'submit' | 'invalid-input' | 'blur lazy' | 'input lazy' | 'submit lazy' | 'invalid-input lazy' | 'blur eager' | 'input eager' | 'submit eager' | 'invalid-input eager' | 'lazy blur' | 'lazy input' | 'lazy submit' | 'lazy invalid-input' | 'eager blur' | 'eager input' | 'eager submit' | 'eager invalid-input' | undefined
@@ -1,7 +1,5 @@
1
1
  import { nextTick } from 'vue';
2
- import { RuleOptions } from '../../composables/rules/useFieldValidation';
3
- type DateValue = string | [string, string] | null;
4
- type DateInput = string | string[] | null | object;
2
+ import { DateValue, DateInput } from '../../composables/date/useDateInitialization';
5
3
  type __VLS_Props = {
6
4
  modelValue?: DateInput;
7
5
  placeholder?: string;
@@ -16,11 +14,11 @@ type __VLS_Props = {
16
14
  displayPrependIcon?: boolean;
17
15
  customRules?: {
18
16
  type: string;
19
- options: RuleOptions;
17
+ options: any;
20
18
  }[];
21
19
  customWarningRules?: {
22
20
  type: string;
23
- options: RuleOptions;
21
+ options: any;
24
22
  }[];
25
23
  isDisabled?: boolean;
26
24
  noIcon?: boolean;
@@ -28,24 +26,27 @@ type __VLS_Props = {
28
26
  isOutlined?: boolean;
29
27
  isReadOnly?: boolean;
30
28
  width?: string;
29
+ disableErrorHandling?: boolean;
30
+ showSuccessMessages?: boolean;
31
31
  };
32
- declare function initializeSelectedDates(modelValue: DateInput | null): Date | Date[] | null;
33
32
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
34
33
  validateOnSubmit: () => any;
35
34
  isDatePickerVisible: import('vue').Ref<boolean, boolean>;
36
35
  selectedDates: import('vue').Ref<Date | Date[] | null, Date | Date[] | null>;
37
36
  errorMessages: import('vue').Ref<string[], string[]>;
38
37
  handleClickOutside: (event: MouseEvent) => void;
39
- initializeSelectedDates: typeof initializeSelectedDates;
38
+ initializeSelectedDates: (modelValue: DateInput, displayFormat: string, returnFormat?: string) => Date | Date[] | null;
39
+ updateAccessibility: () => Promise<void>;
40
+ openDatePicker: () => void;
40
41
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
+ "update:modelValue": (value: DateValue) => any;
41
43
  blur: () => any;
42
44
  focus: () => any;
43
- "update:modelValue": (value: DateValue) => any;
44
45
  closed: () => any;
45
46
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
47
+ "onUpdate:modelValue"?: ((value: DateValue) => any) | undefined;
46
48
  onBlur?: (() => any) | undefined;
47
49
  onFocus?: (() => any) | undefined;
48
- "onUpdate:modelValue"?: ((value: DateValue) => any) | undefined;
49
50
  onClosed?: (() => any) | undefined;
50
51
  }>, {
51
52
  required: boolean;
@@ -57,12 +58,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
57
58
  noIcon: boolean;
58
59
  customRules: {
59
60
  type: string;
60
- options: RuleOptions;
61
+ options: any;
61
62
  }[];
62
63
  customWarningRules: {
63
64
  type: string;
64
- options: RuleOptions;
65
+ options: any;
65
66
  }[];
67
+ showSuccessMessages: boolean;
68
+ disableErrorHandling: boolean;
66
69
  format: string;
67
70
  dateFormatReturn: string;
68
71
  isOutlined: boolean;
@@ -87,27 +90,23 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
87
90
  displayIcon?: boolean | undefined;
88
91
  displayAppendIcon?: boolean | undefined;
89
92
  noIcon?: boolean | undefined;
90
- customRules?: {
91
- type: string;
92
- options: RuleOptions;
93
- }[] | undefined;
94
- customWarningRules?: {
95
- type: string;
96
- options: RuleOptions;
97
- }[] | undefined;
93
+ customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
94
+ customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
98
95
  displayPrependIcon?: boolean | undefined;
96
+ disableErrorHandling?: boolean | undefined;
97
+ showSuccessMessages?: boolean | undefined;
99
98
  }> & Readonly<{
100
- "onUpdate:model-value"?: ((value: string | null) => any) | undefined;
101
99
  onBlur?: (() => any) | undefined;
102
100
  onFocus?: (() => any) | undefined;
101
+ "onUpdate:model-value"?: ((value: string | null) => any) | undefined;
103
102
  }>, {
104
- validateOnSubmit: () => boolean;
103
+ validateOnSubmit: () => Promise<boolean>;
105
104
  focus: () => void;
106
105
  blur: () => void;
107
106
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
108
- "update:model-value": (value: string | null) => any;
109
107
  blur: () => any;
110
108
  focus: () => any;
109
+ "update:model-value": (value: string | null) => any;
111
110
  }, import('vue').PublicProps, {
112
111
  required: boolean;
113
112
  modelValue: string | null;
@@ -116,14 +115,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
116
115
  isDisabled: boolean;
117
116
  placeholder: string;
118
117
  noIcon: boolean;
119
- customRules: {
120
- type: string;
121
- options: RuleOptions;
122
- }[];
123
- customWarningRules: {
124
- type: string;
125
- options: RuleOptions;
126
- }[];
118
+ customRules: import('../../composables/validation/useValidation').ValidationRule[];
119
+ customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
120
+ showSuccessMessages: boolean;
121
+ disableErrorHandling: boolean;
127
122
  format: string;
128
123
  dateFormatReturn: string;
129
124
  isOutlined: boolean;
@@ -140,6 +135,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
140
135
  readonly appendIcon?: import('../Customs/SyTextField/types').IconType;
141
136
  readonly prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
142
137
  readonly appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
138
+ readonly prependTooltip?: string | undefined;
139
+ readonly appendTooltip?: string | undefined;
140
+ readonly tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
143
141
  readonly variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
144
142
  readonly color?: import('../Customs/SyTextField/types').ColorType | undefined;
145
143
  readonly isClearable?: boolean | undefined;
@@ -190,17 +188,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
190
188
  readonly width?: string | number | undefined;
191
189
  readonly displayAsterisk?: boolean | undefined;
192
190
  readonly noIcon?: boolean | undefined;
193
- readonly customRules?: {
194
- type: string;
195
- options: RuleOptions;
196
- }[] | undefined;
197
- readonly customWarningRules?: {
198
- type: string;
199
- options: RuleOptions;
200
- }[] | undefined;
191
+ readonly customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
192
+ readonly customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
193
+ readonly customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
201
194
  readonly showSuccessMessages?: boolean | undefined;
195
+ readonly isValidateOnBlur?: boolean | undefined;
196
+ readonly disableErrorHandling?: boolean | undefined;
197
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
202
198
  readonly onClear?: ((...args: any[]) => any) | undefined;
203
- readonly "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
204
199
  readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
205
200
  readonly "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
206
201
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -216,7 +211,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
216
211
  $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
217
212
  $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
218
213
  $host: Element | null;
219
- $emit: ((event: "clear", ...args: any[]) => void) & ((event: "update:model-value", ...args: any[]) => void) & ((event: "prepend-icon-click", ...args: any[]) => void) & ((event: "append-icon-click", ...args: any[]) => void);
214
+ $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "clear", ...args: any[]) => void) & ((event: "prepend-icon-click", ...args: any[]) => void) & ((event: "append-icon-click", ...args: any[]) => void);
220
215
  $el: any;
221
216
  $options: import('vue').ComponentOptionsBase<Readonly<{
222
217
  modelValue?: string | number | null | undefined;
@@ -224,6 +219,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
224
219
  appendIcon?: import('../Customs/SyTextField/types').IconType;
225
220
  prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
226
221
  appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
222
+ prependTooltip?: string | undefined;
223
+ appendTooltip?: string | undefined;
224
+ tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
227
225
  variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
228
226
  color?: import('../Customs/SyTextField/types').ColorType | undefined;
229
227
  isClearable?: boolean | undefined;
@@ -274,29 +272,34 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
274
272
  width?: string | number | undefined;
275
273
  displayAsterisk?: boolean | undefined;
276
274
  noIcon?: boolean | undefined;
277
- customRules?: {
278
- type: string;
279
- options: RuleOptions;
280
- }[] | undefined;
281
- customWarningRules?: {
282
- type: string;
283
- options: RuleOptions;
284
- }[] | undefined;
275
+ customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
276
+ customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
277
+ customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
285
278
  showSuccessMessages?: boolean | undefined;
279
+ isValidateOnBlur?: boolean | undefined;
280
+ disableErrorHandling?: boolean | undefined;
286
281
  }> & Readonly<{
282
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
287
283
  onClear?: ((...args: any[]) => any) | undefined;
288
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
289
284
  "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
290
285
  "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
291
286
  }>, {
292
- appendInnerIconColor: import('vue').ComputedRef<"error" | "warning" | "success" | "black">;
287
+ validation: {
288
+ errors: import('vue').Ref<string[], string[]>;
289
+ warnings: import('vue').Ref<string[], string[]>;
290
+ successes: import('vue').Ref<string[], string[]>;
291
+ hasError: import('vue').ComputedRef<boolean>;
292
+ hasWarning: import('vue').ComputedRef<boolean>;
293
+ hasSuccess: import('vue').ComputedRef<boolean>;
294
+ validateField: (value: unknown, rules?: import('../../composables/validation/useValidation').ValidationRule[], warningRules?: import('../../composables/validation/useValidation').ValidationRule[], successRules?: import('../../composables/validation/useValidation').ValidationRule[]) => import('../../composables/validation/useValidation').ValidationResult;
295
+ validateOnSubmit: () => Promise<boolean>;
296
+ clearValidation: () => void;
297
+ };
293
298
  validateOnSubmit: () => boolean;
294
- errors: import('vue').Ref<string[], string[]>;
295
- warnings: import('vue').Ref<string[], string[]>;
296
- successes: import('vue').Ref<string[], string[]>;
299
+ checkErrorOnBlur: () => void;
297
300
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
301
+ "update:modelValue": (...args: any[]) => void;
298
302
  clear: (...args: any[]) => void;
299
- "update:model-value": (...args: any[]) => void;
300
303
  "prepend-icon-click": (...args: any[]) => void;
301
304
  "append-icon-click": (...args: any[]) => void;
302
305
  }, string, {
@@ -305,6 +308,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
305
308
  appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
306
309
  prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
307
310
  appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
311
+ prependTooltip: string;
312
+ appendTooltip: string;
313
+ tooltipLocation: "top" | "bottom" | "start" | "end";
308
314
  variantStyle: import('../Customs/SyTextField/types').VariantStyle;
309
315
  color: import('../Customs/SyTextField/types').ColorType;
310
316
  isClearable: boolean;
@@ -353,15 +359,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
353
359
  width: string | number;
354
360
  displayAsterisk: boolean;
355
361
  noIcon: boolean;
356
- customRules: {
357
- type: string;
358
- options: RuleOptions;
359
- }[];
360
- customWarningRules: {
361
- type: string;
362
- options: RuleOptions;
363
- }[];
362
+ customRules: import('../../composables/validation/useValidation').ValidationRule[];
363
+ customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
364
+ customSuccessRules: import('../../composables/validation/useValidation').ValidationRule[];
364
365
  showSuccessMessages: boolean;
366
+ isValidateOnBlur: boolean;
367
+ disableErrorHandling: boolean;
365
368
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
366
369
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
367
370
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -388,6 +391,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
388
391
  appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
389
392
  prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
390
393
  appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
394
+ prependTooltip: string;
395
+ appendTooltip: string;
396
+ tooltipLocation: "top" | "bottom" | "start" | "end";
391
397
  variantStyle: import('../Customs/SyTextField/types').VariantStyle;
392
398
  color: import('../Customs/SyTextField/types').ColorType;
393
399
  isClearable: boolean;
@@ -436,21 +442,21 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
436
442
  width: string | number;
437
443
  displayAsterisk: boolean;
438
444
  noIcon: boolean;
439
- customRules: {
440
- type: string;
441
- options: RuleOptions;
442
- }[];
443
- customWarningRules: {
444
- type: string;
445
- options: RuleOptions;
446
- }[];
445
+ customRules: import('../../composables/validation/useValidation').ValidationRule[];
446
+ customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
447
+ customSuccessRules: import('../../composables/validation/useValidation').ValidationRule[];
447
448
  showSuccessMessages: boolean;
449
+ isValidateOnBlur: boolean;
450
+ disableErrorHandling: boolean;
448
451
  }> & Omit<Readonly<{
449
452
  modelValue?: string | number | null | undefined;
450
453
  prependIcon?: import('../Customs/SyTextField/types').IconType;
451
454
  appendIcon?: import('../Customs/SyTextField/types').IconType;
452
455
  prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
453
456
  appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
457
+ prependTooltip?: string | undefined;
458
+ appendTooltip?: string | undefined;
459
+ tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
454
460
  variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
455
461
  color?: import('../Customs/SyTextField/types').ColorType | undefined;
456
462
  isClearable?: boolean | undefined;
@@ -501,26 +507,31 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
501
507
  width?: string | number | undefined;
502
508
  displayAsterisk?: boolean | undefined;
503
509
  noIcon?: boolean | undefined;
504
- customRules?: {
505
- type: string;
506
- options: RuleOptions;
507
- }[] | undefined;
508
- customWarningRules?: {
509
- type: string;
510
- options: RuleOptions;
511
- }[] | undefined;
510
+ customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
511
+ customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
512
+ customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
512
513
  showSuccessMessages?: boolean | undefined;
514
+ isValidateOnBlur?: boolean | undefined;
515
+ disableErrorHandling?: boolean | undefined;
513
516
  }> & Readonly<{
517
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
514
518
  onClear?: ((...args: any[]) => any) | undefined;
515
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
516
519
  "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
517
520
  "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
518
- }>, "appendInnerIconColor" | "validateOnSubmit" | "errors" | "warnings" | "successes" | ("modelValue" | "prependIcon" | "appendIcon" | "prependInnerIcon" | "appendInnerIcon" | "variantStyle" | "color" | "isClearable" | "label" | "errorMessages" | "warningMessages" | "successMessages" | "isReadOnly" | "isActive" | "baseColor" | "bgColor" | "centerAffix" | "counter" | "counterValue" | "density" | "direction" | "isDirty" | "isDisabled" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "id" | "loading" | "maxErrors" | "maxWidth" | "messages" | "minWidth" | "name" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "placeholder" | "prefix" | "isReversed" | "role" | "rounded" | "isOnSingleLine" | "suffix" | "theme" | "isTiled" | "type" | "width" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "showSuccessMessages")> & import('vue').ShallowUnwrapRef<{
519
- appendInnerIconColor: import('vue').ComputedRef<"error" | "warning" | "success" | "black">;
521
+ }>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("modelValue" | "prependIcon" | "appendIcon" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "color" | "isClearable" | "label" | "errorMessages" | "warningMessages" | "successMessages" | "isReadOnly" | "isActive" | "baseColor" | "bgColor" | "centerAffix" | "counter" | "counterValue" | "density" | "direction" | "isDirty" | "isDisabled" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "id" | "loading" | "maxErrors" | "maxWidth" | "messages" | "minWidth" | "name" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "placeholder" | "prefix" | "isReversed" | "role" | "rounded" | "isOnSingleLine" | "suffix" | "theme" | "isTiled" | "type" | "width" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling")> & import('vue').ShallowUnwrapRef<{
522
+ validation: {
523
+ errors: import('vue').Ref<string[], string[]>;
524
+ warnings: import('vue').Ref<string[], string[]>;
525
+ successes: import('vue').Ref<string[], string[]>;
526
+ hasError: import('vue').ComputedRef<boolean>;
527
+ hasWarning: import('vue').ComputedRef<boolean>;
528
+ hasSuccess: import('vue').ComputedRef<boolean>;
529
+ validateField: (value: unknown, rules?: import('../../composables/validation/useValidation').ValidationRule[], warningRules?: import('../../composables/validation/useValidation').ValidationRule[], successRules?: import('../../composables/validation/useValidation').ValidationRule[]) => import('../../composables/validation/useValidation').ValidationResult;
530
+ validateOnSubmit: () => Promise<boolean>;
531
+ clearValidation: () => void;
532
+ };
520
533
  validateOnSubmit: () => boolean;
521
- errors: import('vue').Ref<string[], string[]>;
522
- warnings: import('vue').Ref<string[], string[]>;
523
- successes: import('vue').Ref<string[], string[]>;
534
+ checkErrorOnBlur: () => void;
524
535
  }> & {} & import('vue').ComponentCustomProperties & {} & {
525
536
  $slots: {
526
537
  prepend?(_: {}): any;
@@ -550,21 +561,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
550
561
  displayIcon?: boolean | undefined;
551
562
  displayAppendIcon?: boolean | undefined;
552
563
  noIcon?: boolean | undefined;
553
- customRules?: {
554
- type: string;
555
- options: RuleOptions;
556
- }[] | undefined;
557
- customWarningRules?: {
558
- type: string;
559
- options: RuleOptions;
560
- }[] | undefined;
564
+ customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
565
+ customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
561
566
  displayPrependIcon?: boolean | undefined;
567
+ disableErrorHandling?: boolean | undefined;
568
+ showSuccessMessages?: boolean | undefined;
562
569
  }> & Readonly<{
563
- "onUpdate:model-value"?: ((value: string | null) => any) | undefined;
564
570
  onBlur?: (() => any) | undefined;
565
571
  onFocus?: (() => any) | undefined;
572
+ "onUpdate:model-value"?: ((value: string | null) => any) | undefined;
566
573
  }>, {
567
- validateOnSubmit: () => boolean;
574
+ validateOnSubmit: () => Promise<boolean>;
568
575
  focus: () => void;
569
576
  blur: () => void;
570
577
  }, {}, {}, {}, {
@@ -575,14 +582,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
575
582
  isDisabled: boolean;
576
583
  placeholder: string;
577
584
  noIcon: boolean;
578
- customRules: {
579
- type: string;
580
- options: RuleOptions;
581
- }[];
582
- customWarningRules: {
583
- type: string;
584
- options: RuleOptions;
585
- }[];
585
+ customRules: import('../../composables/validation/useValidation').ValidationRule[];
586
+ customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
587
+ showSuccessMessages: boolean;
588
+ disableErrorHandling: boolean;
586
589
  format: string;
587
590
  dateFormatReturn: string;
588
591
  isOutlined: boolean;