@cnamts/synapse 0.0.11-alpha → 0.0.12-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 (108) hide show
  1. package/dist/design-system-v3.js +3878 -3189
  2. package/dist/design-system-v3.umd.cjs +1 -1
  3. package/dist/src/components/Amelipro/types/languages.d.ts +6 -0
  4. package/dist/src/components/Amelipro/types/types.d.ts +65 -0
  5. package/dist/src/components/CookieBanner/CookieBanner.d.ts +1 -1
  6. package/dist/src/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -0
  7. package/dist/src/components/Customs/SyTextField/SyTextField.d.ts +29 -23
  8. package/dist/src/components/Customs/SyTextField/types.d.ts +1 -0
  9. package/dist/src/components/DatePicker/DatePicker.d.ts +70 -59
  10. package/dist/src/components/DatePicker/DateTextInput.d.ts +67 -56
  11. package/dist/src/components/ErrorPage/ErrorPage.d.ts +1 -1
  12. package/dist/src/components/FileList/FileList.d.ts +1 -0
  13. package/dist/src/components/FileList/UploadItem/UploadItem.d.ts +1 -1
  14. package/dist/src/components/FilterSideBar/FilterSideBar.d.ts +31 -0
  15. package/dist/src/components/FilterSideBar/locales.d.ts +7 -0
  16. package/dist/src/components/FilterSideBar/tests/FilterSideBar.spec.d.ts +1 -0
  17. package/dist/src/components/LangBtn/LangBtn.d.ts +2 -2
  18. package/dist/src/components/NirField/NirField.d.ts +940 -0
  19. package/dist/src/components/NotificationBar/NotificationBar.d.ts +1 -1
  20. package/dist/src/components/PasswordField/PasswordField.d.ts +40 -8
  21. package/dist/src/components/PeriodField/PeriodField.d.ts +142 -120
  22. package/dist/src/components/PhoneField/PhoneField.d.ts +11 -2
  23. package/dist/src/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +1 -1
  24. package/dist/src/components/RatingPicker/NumberPicker/NumberPicker.d.ts +1 -1
  25. package/dist/src/components/RatingPicker/StarsPicker/StarsPicker.d.ts +1 -1
  26. package/dist/src/components/UploadWorkflow/config.d.ts +29 -0
  27. package/dist/src/components/UploadWorkflow/locales.d.ts +7 -0
  28. package/dist/src/components/UploadWorkflow/tests/UploadWorkflow.spec.d.ts +1 -0
  29. package/dist/src/components/UploadWorkflow/types.d.ts +19 -0
  30. package/dist/src/components/UploadWorkflow/useFileList.d.ts +10 -0
  31. package/dist/src/components/UploadWorkflow/useFileUploadJourney.d.ts +9 -0
  32. package/dist/src/components/index.d.ts +2 -0
  33. package/dist/src/composables/rules/useFieldValidation.d.ts +1 -0
  34. package/dist/src/composables/validation/tests/useValidation.spec.d.ts +1 -0
  35. package/dist/src/composables/validation/useValidation.d.ts +39 -0
  36. package/dist/src/designTokens/index.d.ts +3 -1
  37. package/dist/src/vuetifyConfig.d.ts +81 -0
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
  40. package/src/assets/_elevations.scss +89 -0
  41. package/src/assets/_fonts.scss +6 -0
  42. package/src/assets/_radius.scss +86 -0
  43. package/src/assets/_spacers.scss +149 -0
  44. package/src/assets/settings.scss +7 -3
  45. package/src/assets/tokens.scss +32 -29
  46. package/src/components/Amelipro/types/languages.d.ts +6 -0
  47. package/src/components/Amelipro/types/types.d.ts +65 -0
  48. package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +65 -0
  49. package/src/components/Customs/SyInputSelect/SyInputSelect.vue +13 -3
  50. package/src/components/Customs/SySelect/SySelect.stories.ts +88 -5
  51. package/src/components/Customs/SySelect/SySelect.vue +36 -10
  52. package/src/components/Customs/SySelect/tests/SySelect.spec.ts +135 -2
  53. package/src/components/Customs/SyTextField/SyTextField.stories.ts +576 -85
  54. package/src/components/Customs/SyTextField/SyTextField.vue +132 -104
  55. package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +190 -38
  56. package/src/components/Customs/SyTextField/types.d.ts +1 -0
  57. package/src/components/DatePicker/DatePicker.vue +405 -137
  58. package/src/components/DatePicker/DateTextInput.vue +15 -0
  59. package/src/components/DatePicker/tests/DatePicker.spec.ts +8 -15
  60. package/src/components/FileList/FileList.vue +2 -1
  61. package/src/components/FileList/UploadItem/UploadItem.vue +10 -0
  62. package/src/components/FileUpload/FileUpload.stories.ts +84 -0
  63. package/src/components/FileUpload/FileUpload.vue +1 -0
  64. package/src/components/FileUpload/tests/FileUpload.spec.ts +4 -4
  65. package/src/components/FilterInline/FilterInline.mdx +180 -34
  66. package/src/components/FilterInline/FilterInline.stories.ts +363 -6
  67. package/src/components/FilterSideBar/FilterSideBar.mdx +237 -0
  68. package/src/components/FilterSideBar/FilterSideBar.stories.ts +798 -0
  69. package/src/components/FilterSideBar/FilterSideBar.vue +193 -0
  70. package/src/components/FilterSideBar/locales.ts +8 -0
  71. package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +305 -0
  72. package/src/components/FilterSideBar/tests/__snapshots__/FilterSideBar.spec.ts.snap +39 -0
  73. package/src/components/HeaderBar/Usages.mdx +1 -1
  74. package/src/components/NirField/NirField.stories.ts +573 -29
  75. package/src/components/NirField/NirField.vue +397 -359
  76. package/src/components/NirField/tests/NirField.spec.ts +88 -52
  77. package/src/components/NirField/tests//342/200/257dataset/342/200/257.md +12 -0
  78. package/src/components/NotificationBar/Accessibilite.stories.ts +4 -0
  79. package/src/components/NotificationBar/NotificationBar.stories.ts +18 -13
  80. package/src/components/PasswordField/PasswordField.mdx +129 -47
  81. package/src/components/PasswordField/PasswordField.stories.ts +924 -120
  82. package/src/components/PasswordField/PasswordField.vue +209 -99
  83. package/src/components/PasswordField/tests/PasswordField.spec.ts +138 -9
  84. package/src/components/PeriodField/PeriodField.vue +55 -54
  85. package/src/components/PhoneField/PhoneField.stories.ts +69 -0
  86. package/src/components/PhoneField/PhoneField.vue +3 -0
  87. package/src/components/PhoneField/indicatifs.ts +1 -1
  88. package/src/components/UploadWorkflow/UploadWorkflow.mdx +75 -0
  89. package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +943 -0
  90. package/src/components/UploadWorkflow/UploadWorkflow.vue +230 -0
  91. package/src/components/UploadWorkflow/config.ts +29 -0
  92. package/src/components/UploadWorkflow/locales.ts +8 -0
  93. package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +257 -0
  94. package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +54 -0
  95. package/src/components/UploadWorkflow/types.ts +21 -0
  96. package/src/components/UploadWorkflow/useFileList.ts +84 -0
  97. package/src/components/UploadWorkflow/useFileUploadJourney.ts +18 -0
  98. package/src/components/index.ts +2 -0
  99. package/src/composables/rules/useFieldValidation.ts +5 -2
  100. package/src/composables/validation/tests/useValidation.spec.ts +154 -0
  101. package/src/composables/validation/useValidation.ts +165 -0
  102. package/src/designTokens/index.ts +4 -0
  103. package/src/stories/Demarrer/Accueil.mdx +1 -1
  104. package/src/stories/DesignTokens/ThemePA.mdx +4 -30
  105. package/src/stories/GuideDuDev/UtiliserLesRules.mdx +319 -76
  106. package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
  107. package/src/vuetifyConfig.ts +61 -0
  108. package/src/composables/useFilterable/__snapshots__/useFilterable.spec.ts.snap +0 -3
@@ -29,13 +29,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
29
29
  focus: () => void;
30
30
  blur: () => void;
31
31
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
32
- "update:model-value": (value: DateValue) => any;
33
32
  blur: () => any;
34
33
  focus: () => any;
34
+ "update:model-value": (value: DateValue) => any;
35
35
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
36
- "onUpdate:model-value"?: ((value: DateValue) => any) | undefined;
37
36
  onBlur?: (() => any) | undefined;
38
37
  onFocus?: (() => any) | undefined;
38
+ "onUpdate:model-value"?: ((value: DateValue) => any) | undefined;
39
39
  }>, {
40
40
  required: boolean;
41
41
  modelValue: DateValue;
@@ -68,6 +68,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
68
68
  readonly appendIcon?: import('../Customs/SyTextField/types').IconType;
69
69
  readonly prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
70
70
  readonly appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
71
+ readonly prependTooltip?: string | undefined;
72
+ readonly appendTooltip?: string | undefined;
73
+ readonly tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
71
74
  readonly variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
72
75
  readonly color?: import('../Customs/SyTextField/types').ColorType | undefined;
73
76
  readonly isClearable?: boolean | undefined;
@@ -118,17 +121,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
118
121
  readonly width?: string | number | undefined;
119
122
  readonly displayAsterisk?: boolean | undefined;
120
123
  readonly noIcon?: boolean | undefined;
121
- readonly customRules?: {
122
- type: string;
123
- options: RuleOptions;
124
- }[] | undefined;
125
- readonly customWarningRules?: {
126
- type: string;
127
- options: RuleOptions;
128
- }[] | undefined;
124
+ readonly customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
125
+ readonly customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
126
+ readonly customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
129
127
  readonly showSuccessMessages?: boolean | undefined;
128
+ readonly isValidateOnBlur?: boolean | undefined;
129
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
130
130
  readonly onClear?: ((...args: any[]) => any) | undefined;
131
- readonly "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
132
131
  readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
133
132
  readonly "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
134
133
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -144,7 +143,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
144
143
  $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
145
144
  $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
146
145
  $host: Element | null;
147
- $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);
146
+ $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);
148
147
  $el: any;
149
148
  $options: import('vue').ComponentOptionsBase<Readonly<{
150
149
  modelValue?: string | number | null | undefined;
@@ -152,6 +151,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
152
151
  appendIcon?: import('../Customs/SyTextField/types').IconType;
153
152
  prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
154
153
  appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
154
+ prependTooltip?: string | undefined;
155
+ appendTooltip?: string | undefined;
156
+ tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
155
157
  variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
156
158
  color?: import('../Customs/SyTextField/types').ColorType | undefined;
157
159
  isClearable?: boolean | undefined;
@@ -202,29 +204,33 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
202
204
  width?: string | number | undefined;
203
205
  displayAsterisk?: boolean | undefined;
204
206
  noIcon?: boolean | undefined;
205
- customRules?: {
206
- type: string;
207
- options: RuleOptions;
208
- }[] | undefined;
209
- customWarningRules?: {
210
- type: string;
211
- options: RuleOptions;
212
- }[] | undefined;
207
+ customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
208
+ customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
209
+ customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
213
210
  showSuccessMessages?: boolean | undefined;
211
+ isValidateOnBlur?: boolean | undefined;
214
212
  }> & Readonly<{
213
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
215
214
  onClear?: ((...args: any[]) => any) | undefined;
216
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
217
215
  "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
218
216
  "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
219
217
  }>, {
220
- appendInnerIconColor: import('vue').ComputedRef<"error" | "warning" | "success" | "black">;
218
+ validation: {
219
+ errors: import('vue').Ref<string[], string[]>;
220
+ warnings: import('vue').Ref<string[], string[]>;
221
+ successes: import('vue').Ref<string[], string[]>;
222
+ hasError: import('vue').ComputedRef<boolean>;
223
+ hasWarning: import('vue').ComputedRef<boolean>;
224
+ hasSuccess: import('vue').ComputedRef<boolean>;
225
+ 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;
226
+ validateOnSubmit: () => Promise<boolean>;
227
+ clearValidation: () => void;
228
+ };
221
229
  validateOnSubmit: () => boolean;
222
- errors: import('vue').Ref<string[], string[]>;
223
- warnings: import('vue').Ref<string[], string[]>;
224
- successes: import('vue').Ref<string[], string[]>;
230
+ checkErrorOnBlur: () => void;
225
231
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
232
+ "update:modelValue": (...args: any[]) => void;
226
233
  clear: (...args: any[]) => void;
227
- "update:model-value": (...args: any[]) => void;
228
234
  "prepend-icon-click": (...args: any[]) => void;
229
235
  "append-icon-click": (...args: any[]) => void;
230
236
  }, string, {
@@ -233,6 +239,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
233
239
  appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
234
240
  prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
235
241
  appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
242
+ prependTooltip: string;
243
+ appendTooltip: string;
244
+ tooltipLocation: "top" | "bottom" | "start" | "end";
236
245
  variantStyle: import('../Customs/SyTextField/types').VariantStyle;
237
246
  color: import('../Customs/SyTextField/types').ColorType;
238
247
  isClearable: boolean;
@@ -281,15 +290,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
281
290
  width: string | number;
282
291
  displayAsterisk: boolean;
283
292
  noIcon: boolean;
284
- customRules: {
285
- type: string;
286
- options: RuleOptions;
287
- }[];
288
- customWarningRules: {
289
- type: string;
290
- options: RuleOptions;
291
- }[];
293
+ customRules: import('../../composables/validation/useValidation').ValidationRule[];
294
+ customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
295
+ customSuccessRules: import('../../composables/validation/useValidation').ValidationRule[];
292
296
  showSuccessMessages: boolean;
297
+ isValidateOnBlur: boolean;
293
298
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
294
299
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
295
300
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -316,6 +321,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
316
321
  appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
317
322
  prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
318
323
  appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
324
+ prependTooltip: string;
325
+ appendTooltip: string;
326
+ tooltipLocation: "top" | "bottom" | "start" | "end";
319
327
  variantStyle: import('../Customs/SyTextField/types').VariantStyle;
320
328
  color: import('../Customs/SyTextField/types').ColorType;
321
329
  isClearable: boolean;
@@ -364,21 +372,20 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
364
372
  width: string | number;
365
373
  displayAsterisk: boolean;
366
374
  noIcon: boolean;
367
- customRules: {
368
- type: string;
369
- options: RuleOptions;
370
- }[];
371
- customWarningRules: {
372
- type: string;
373
- options: RuleOptions;
374
- }[];
375
+ customRules: import('../../composables/validation/useValidation').ValidationRule[];
376
+ customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
377
+ customSuccessRules: import('../../composables/validation/useValidation').ValidationRule[];
375
378
  showSuccessMessages: boolean;
379
+ isValidateOnBlur: boolean;
376
380
  }> & Omit<Readonly<{
377
381
  modelValue?: string | number | null | undefined;
378
382
  prependIcon?: import('../Customs/SyTextField/types').IconType;
379
383
  appendIcon?: import('../Customs/SyTextField/types').IconType;
380
384
  prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
381
385
  appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
386
+ prependTooltip?: string | undefined;
387
+ appendTooltip?: string | undefined;
388
+ tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
382
389
  variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
383
390
  color?: import('../Customs/SyTextField/types').ColorType | undefined;
384
391
  isClearable?: boolean | undefined;
@@ -429,26 +436,30 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
429
436
  width?: string | number | undefined;
430
437
  displayAsterisk?: boolean | undefined;
431
438
  noIcon?: boolean | undefined;
432
- customRules?: {
433
- type: string;
434
- options: RuleOptions;
435
- }[] | undefined;
436
- customWarningRules?: {
437
- type: string;
438
- options: RuleOptions;
439
- }[] | undefined;
439
+ customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
440
+ customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
441
+ customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
440
442
  showSuccessMessages?: boolean | undefined;
443
+ isValidateOnBlur?: boolean | undefined;
441
444
  }> & Readonly<{
445
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
442
446
  onClear?: ((...args: any[]) => any) | undefined;
443
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
444
447
  "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
445
448
  "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
446
- }>, "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<{
447
- appendInnerIconColor: import('vue').ComputedRef<"error" | "warning" | "success" | "black">;
449
+ }>, "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")> & import('vue').ShallowUnwrapRef<{
450
+ validation: {
451
+ errors: import('vue').Ref<string[], string[]>;
452
+ warnings: import('vue').Ref<string[], string[]>;
453
+ successes: import('vue').Ref<string[], string[]>;
454
+ hasError: import('vue').ComputedRef<boolean>;
455
+ hasWarning: import('vue').ComputedRef<boolean>;
456
+ hasSuccess: import('vue').ComputedRef<boolean>;
457
+ 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;
458
+ validateOnSubmit: () => Promise<boolean>;
459
+ clearValidation: () => void;
460
+ };
448
461
  validateOnSubmit: () => boolean;
449
- errors: import('vue').Ref<string[], string[]>;
450
- warnings: import('vue').Ref<string[], string[]>;
451
- successes: import('vue').Ref<string[], string[]>;
462
+ checkErrorOnBlur: () => void;
452
463
  }> & {} & import('vue').ComponentCustomProperties & {} & {
453
464
  $slots: {
454
465
  prepend?(_: {}): any;
@@ -10,8 +10,8 @@ type __VLS_Props = {
10
10
  hideBtn?: boolean;
11
11
  };
12
12
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
- message: string;
14
13
  code: string;
14
+ message: string;
15
15
  pageTitle: string;
16
16
  codeErrorText: string;
17
17
  btnText: string;
@@ -1,5 +1,6 @@
1
1
  import { Widthable } from '../../composables/widthable';
2
2
  import { locales as defaultLocales } from './UploadItem/locales';
3
+ export type FileState = 'initial' | 'success' | 'error' | 'loading';
3
4
  export interface Item {
4
5
  id: string;
5
6
  title: string;
@@ -23,8 +23,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
23
23
  onUpload?: ((item: string) => any) | undefined;
24
24
  onPreview?: ((item: string) => any) | undefined;
25
25
  }>, {
26
- message: string;
27
26
  progress: number;
27
+ message: string;
28
28
  tag: string;
29
29
  locales: {
30
30
  optionalDocument: string;
@@ -0,0 +1,31 @@
1
+ import { locales as defaultLocales } from './locales';
2
+ import { FilterProp } from '../../composables/useFilterable/useFilterable';
3
+ type __VLS_Props = {
4
+ modelValue?: FilterProp;
5
+ locales?: typeof defaultLocales;
6
+ };
7
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": () => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: (() => any) | undefined;
11
+ }>, {
12
+ modelValue: FilterProp;
13
+ locales: {
14
+ readonly filterBtnLabel: "Filtres";
15
+ readonly badgeLabel: (count: number) => string;
16
+ readonly reset: "Réinitialiser";
17
+ readonly close: "Fermer";
18
+ readonly apply: "Appliquer";
19
+ };
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<string, (_: {
21
+ props: {
22
+ modelValue: unknown;
23
+ 'onUpdate:modelValue': (value: unknown) => unknown;
24
+ };
25
+ }) => any>>>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,7 @@
1
+ export declare const locales: {
2
+ readonly filterBtnLabel: "Filtres";
3
+ readonly badgeLabel: (count: number) => string;
4
+ readonly reset: "Réinitialiser";
5
+ readonly close: "Fermer";
6
+ readonly apply: "Appliquer";
7
+ };
@@ -16,11 +16,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
16
16
  updateLang: typeof updateLang;
17
17
  selectedLanguage: import('vue').Ref<string, string>;
18
18
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- change: (...args: any[]) => void;
20
19
  "update:modelValue": (...args: any[]) => void;
20
+ change: (...args: any[]) => void;
21
21
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- onChange?: ((...args: any[]) => any) | undefined;
23
22
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
+ onChange?: ((...args: any[]) => any) | undefined;
24
24
  }>, {
25
25
  modelValue: string;
26
26
  ariaLabel: string;