@maltjoy/core-vue 3.27.2 → 3.28.0

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 (106) hide show
  1. package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +1 -2
  2. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +4 -3
  3. package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +4 -6
  4. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
  5. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +14 -4
  6. package/dist/components/JoyBadge/JoyBadge.types.d.ts +1 -2
  7. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +14 -8
  8. package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +8 -4
  9. package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +2 -0
  10. package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +20 -7
  11. package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +20 -14
  12. package/dist/components/JoyButton/JoyButton.types.d.ts +4 -20
  13. package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
  14. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +14 -7
  15. package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +10 -4
  16. package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +12 -4
  17. package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +2 -3
  18. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +6 -0
  19. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +18 -13
  20. package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
  21. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +31 -9
  22. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +72 -56
  23. package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +10 -3
  24. package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +1 -2
  25. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +33 -13
  26. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +68 -54
  27. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
  28. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +31 -24
  29. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
  30. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +24 -23
  31. package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +8 -2
  32. package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +10 -2
  33. package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +6 -2
  34. package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +2 -4
  35. package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +8 -0
  36. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +2 -4
  37. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +21 -9
  38. package/dist/components/JoyIcon/JoyIcon.types.d.ts +3 -4
  39. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +9 -6
  40. package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +4 -3
  41. package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +1 -2
  42. package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +9 -6
  43. package/dist/components/JoyInput/JoyInput.types.d.ts +2 -3
  44. package/dist/components/JoyInput/VJoyInput.vue.d.ts +13 -10
  45. package/dist/components/JoyLabel/JoyLabel.types.d.ts +2 -3
  46. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +10 -7
  47. package/dist/components/JoyLink/JoyLink.types.d.ts +1 -2
  48. package/dist/components/JoyLink/VJoyLink.vue.d.ts +8 -7
  49. package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +6 -10
  50. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +16 -19
  51. package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +14 -6
  52. package/dist/components/JoyPanel/JoyPanel.types.d.ts +3 -5
  53. package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +30 -14
  54. package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +550 -0
  55. package/dist/components/JoyProductTour/JoyProductTour.types.d.ts +32 -0
  56. package/dist/components/JoyProductTour/JoyProductTourSpotlight/VJoyProductTourSpotlight.vue.d.ts +2 -0
  57. package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +22 -0
  58. package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +55 -0
  59. package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +310 -0
  60. package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
  61. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +6 -3
  62. package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
  63. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +21 -8
  64. package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -2
  65. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +14 -6
  66. package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -3
  67. package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +10 -2
  68. package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -2
  69. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +14 -6
  70. package/dist/components/JoySelect/JoySelect.types.d.ts +2 -3
  71. package/dist/components/JoySelect/VJoySelect.vue.d.ts +11 -6
  72. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +4 -3
  73. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +11 -66
  74. package/dist/components/JoySeparator/JoySeparator.types.d.ts +2 -3
  75. package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +2 -3
  76. package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -2
  77. package/dist/components/JoySnackbar/index.d.ts +1 -1
  78. package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -2
  79. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +2 -4
  80. package/dist/components/JoyStep/VJoyStep.vue.d.ts +14 -2
  81. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +17 -9
  82. package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +2 -0
  83. package/dist/components/JoyTag/JoyTag.types.d.ts +3 -5
  84. package/dist/components/JoyTag/VJoyTag.vue.d.ts +24 -14
  85. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +52 -37
  86. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -2
  87. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
  88. package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -2
  89. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +67 -15
  90. package/dist/components/JoyText/VJoyText.vue.d.ts +9 -5
  91. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +7 -6
  92. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +8 -4
  93. package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
  94. package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +97 -0
  95. package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +20 -6
  96. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -10
  97. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +19 -18
  98. package/dist/components/index.d.ts +3 -1
  99. package/dist/components/main.d.ts +1 -1
  100. package/dist/helpers/index.d.ts +2 -2
  101. package/dist/joy-vue.js +4972 -4387
  102. package/dist/joy-vue.umd.cjs +12 -4
  103. package/dist/style.css +1 -1
  104. package/dist/types/index.d.ts +7 -10
  105. package/joy-components.d.ts +2 -0
  106. package/package.json +22 -27
@@ -1,25 +1,25 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  /** VJoyDrawer ref. */
3
3
  drawer: ({
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
- size: "default" | "large";
7
+ size: import("../components.types.js").TJoyDrawerSizes;
8
8
  closeLabel: string;
9
9
  open: boolean;
10
10
  preventBodyScroll: boolean;
11
11
  teleport: string | import("vue").RendererElement | null | undefined;
12
12
  focusTrap: boolean;
13
- buttonSize: import("../components.types").TJoyButtonSizes;
13
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
14
14
  elevated: boolean;
15
15
  }> & Omit<{
16
- readonly size: "default" | "large";
16
+ readonly size: import("../components.types.js").TJoyDrawerSizes;
17
17
  readonly closeLabel: string;
18
18
  readonly open: boolean;
19
19
  readonly preventBodyScroll: boolean;
20
20
  readonly teleport: string | import("vue").RendererElement | null | undefined;
21
21
  readonly focusTrap: boolean;
22
- readonly buttonSize: import("../components.types").TJoyButtonSizes;
22
+ readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
23
23
  readonly elevated: boolean;
24
24
  readonly id?: string | undefined;
25
25
  readonly cancelText?: string | undefined;
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
40
  default: boolean;
41
41
  };
42
42
  size: {
43
- type: import("vue").PropType<"default" | "large">;
43
+ type: import("vue").PropType<import("../components.types.js").TJoyDrawerSizes>;
44
44
  default: string;
45
45
  };
46
46
  teleport: {
@@ -70,7 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
70
70
  type: StringConstructor;
71
71
  };
72
72
  buttonSize: {
73
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
73
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
74
74
  default: string;
75
75
  };
76
76
  onBeforeHide: {
@@ -106,7 +106,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
106
106
  default: boolean;
107
107
  };
108
108
  size: {
109
- type: import("vue").PropType<"default" | "large">;
109
+ type: import("vue").PropType<import("../components.types.js").TJoyDrawerSizes>;
110
110
  default: string;
111
111
  };
112
112
  teleport: {
@@ -136,7 +136,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
136
136
  type: StringConstructor;
137
137
  };
138
138
  buttonSize: {
139
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
139
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
140
140
  default: string;
141
141
  };
142
142
  onBeforeHide: {
@@ -150,7 +150,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
150
150
  "onDrawer:before-unmount"?: (() => any) | undefined;
151
151
  "onDrawer:confirm"?: (() => any) | undefined;
152
152
  }, {
153
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
153
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
154
154
  hasFooterSlots: import("vue").ComputedRef<boolean>;
155
155
  hide: (options?: {
156
156
  fireHideEvent: boolean;
@@ -165,13 +165,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
165
165
  "drawer:before-unmount": () => void;
166
166
  "drawer:confirm": () => void;
167
167
  }, string, {
168
- size: "default" | "large";
168
+ size: import("../components.types.js").TJoyDrawerSizes;
169
169
  closeLabel: string;
170
170
  open: boolean;
171
171
  preventBodyScroll: boolean;
172
172
  teleport: string | import("vue").RendererElement | null | undefined;
173
173
  focusTrap: boolean;
174
- buttonSize: import("../components.types").TJoyButtonSizes;
174
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
175
175
  elevated: boolean;
176
176
  }, {}, string, {}> & {
177
177
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -202,7 +202,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
202
202
  default: boolean;
203
203
  };
204
204
  size: {
205
- type: import("vue").PropType<"default" | "large">;
205
+ type: import("vue").PropType<import("../components.types.js").TJoyDrawerSizes>;
206
206
  default: string;
207
207
  };
208
208
  teleport: {
@@ -232,7 +232,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
232
232
  type: StringConstructor;
233
233
  };
234
234
  buttonSize: {
235
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
235
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
236
236
  default: string;
237
237
  };
238
238
  onBeforeHide: {
@@ -246,7 +246,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
246
246
  "onDrawer:before-unmount"?: (() => any) | undefined;
247
247
  "onDrawer:confirm"?: (() => any) | undefined;
248
248
  }, "hide" | "show" | "isOpen" | "focusTrapReturn" | "hasFooterSlots"> & import("vue").ShallowUnwrapRef<{
249
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
249
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
250
250
  hasFooterSlots: import("vue").ComputedRef<boolean>;
251
251
  hide: (options?: {
252
252
  fireHideEvent: boolean;
@@ -254,39 +254,46 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
254
254
  isOpen: import("vue").Ref<boolean>;
255
255
  show: () => Promise<void>;
256
256
  }> & {} & import("vue").ComponentCustomProperties & {} & {
257
- $slots: {
258
- "drawer-header"?(_: {}): any;
259
- "drawer-subheader"?(_: {}): any;
260
- "drawer-body"?(_: {}): any;
261
- "drawer-cancel"?(_: {}): any;
262
- "drawer-confirm"?(_: {}): any;
263
- "drawer-indicators"?(_: {}): any;
257
+ $slots: Readonly<{
258
+ 'drawer-preheader': () => any;
259
+ 'drawer-header': () => any;
260
+ 'drawer-subheader': () => any;
261
+ 'drawer-body': () => any;
262
+ 'drawer-cancel': () => any;
263
+ 'drawer-confirm': () => any;
264
+ }> & {
265
+ 'drawer-preheader': () => any;
266
+ 'drawer-header': () => any;
267
+ 'drawer-subheader': () => any;
268
+ 'drawer-body': () => any;
269
+ 'drawer-cancel': () => any;
270
+ 'drawer-confirm': () => any;
264
271
  };
265
272
  }) | null | undefined;
266
273
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
267
274
  click: () => void;
268
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
275
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
269
276
  /** VJoyDrawer ref. */
270
277
  drawer: ({
271
278
  $: import("vue").ComponentInternalInstance;
272
279
  $data: {};
273
280
  $props: Partial<{
274
- size: "default" | "large";
281
+ size: import("../components.types.js").TJoyDrawerSizes;
275
282
  closeLabel: string;
276
283
  open: boolean;
277
284
  preventBodyScroll: boolean;
278
285
  teleport: string | import("vue").RendererElement | null | undefined;
279
286
  focusTrap: boolean;
280
- buttonSize: import("../components.types").TJoyButtonSizes;
287
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
281
288
  elevated: boolean;
282
289
  }> & Omit<{
283
- readonly size: "default" | "large";
290
+ readonly size: import("../components.types.js").TJoyDrawerSizes;
284
291
  readonly closeLabel: string;
285
292
  readonly open: boolean;
286
293
  readonly preventBodyScroll: boolean;
287
294
  readonly teleport: string | import("vue").RendererElement | null | undefined;
288
295
  readonly focusTrap: boolean;
289
- readonly buttonSize: import("../components.types").TJoyButtonSizes;
296
+ readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
290
297
  readonly elevated: boolean;
291
298
  readonly id?: string | undefined;
292
299
  readonly cancelText?: string | undefined;
@@ -307,7 +314,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
307
314
  default: boolean;
308
315
  };
309
316
  size: {
310
- type: import("vue").PropType<"default" | "large">;
317
+ type: import("vue").PropType<import("../components.types.js").TJoyDrawerSizes>;
311
318
  default: string;
312
319
  };
313
320
  teleport: {
@@ -337,7 +344,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
337
344
  type: StringConstructor;
338
345
  };
339
346
  buttonSize: {
340
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
347
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
341
348
  default: string;
342
349
  };
343
350
  onBeforeHide: {
@@ -373,7 +380,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
373
380
  default: boolean;
374
381
  };
375
382
  size: {
376
- type: import("vue").PropType<"default" | "large">;
383
+ type: import("vue").PropType<import("../components.types.js").TJoyDrawerSizes>;
377
384
  default: string;
378
385
  };
379
386
  teleport: {
@@ -403,7 +410,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
403
410
  type: StringConstructor;
404
411
  };
405
412
  buttonSize: {
406
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
413
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
407
414
  default: string;
408
415
  };
409
416
  onBeforeHide: {
@@ -417,7 +424,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
417
424
  "onDrawer:before-unmount"?: (() => any) | undefined;
418
425
  "onDrawer:confirm"?: (() => any) | undefined;
419
426
  }, {
420
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
427
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
421
428
  hasFooterSlots: import("vue").ComputedRef<boolean>;
422
429
  hide: (options?: {
423
430
  fireHideEvent: boolean;
@@ -432,13 +439,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
432
439
  "drawer:before-unmount": () => void;
433
440
  "drawer:confirm": () => void;
434
441
  }, string, {
435
- size: "default" | "large";
442
+ size: import("../components.types.js").TJoyDrawerSizes;
436
443
  closeLabel: string;
437
444
  open: boolean;
438
445
  preventBodyScroll: boolean;
439
446
  teleport: string | import("vue").RendererElement | null | undefined;
440
447
  focusTrap: boolean;
441
- buttonSize: import("../components.types").TJoyButtonSizes;
448
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
442
449
  elevated: boolean;
443
450
  }, {}, string, {}> & {
444
451
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -469,7 +476,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
469
476
  default: boolean;
470
477
  };
471
478
  size: {
472
- type: import("vue").PropType<"default" | "large">;
479
+ type: import("vue").PropType<import("../components.types.js").TJoyDrawerSizes>;
473
480
  default: string;
474
481
  };
475
482
  teleport: {
@@ -499,7 +506,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
499
506
  type: StringConstructor;
500
507
  };
501
508
  buttonSize: {
502
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
509
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
503
510
  default: string;
504
511
  };
505
512
  onBeforeHide: {
@@ -513,7 +520,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
513
520
  "onDrawer:before-unmount"?: (() => any) | undefined;
514
521
  "onDrawer:confirm"?: (() => any) | undefined;
515
522
  }, "hide" | "show" | "isOpen" | "focusTrapReturn" | "hasFooterSlots"> & import("vue").ShallowUnwrapRef<{
516
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
523
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
517
524
  hasFooterSlots: import("vue").ComputedRef<boolean>;
518
525
  hide: (options?: {
519
526
  fireHideEvent: boolean;
@@ -521,27 +528,39 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
521
528
  isOpen: import("vue").Ref<boolean>;
522
529
  show: () => Promise<void>;
523
530
  }> & {} & import("vue").ComponentCustomProperties & {} & {
524
- $slots: {
525
- "drawer-header"?(_: {}): any;
526
- "drawer-subheader"?(_: {}): any;
527
- "drawer-body"?(_: {}): any;
528
- "drawer-cancel"?(_: {}): any;
529
- "drawer-confirm"?(_: {}): any;
530
- "drawer-indicators"?(_: {}): any;
531
+ $slots: Readonly<{
532
+ 'drawer-preheader': () => any;
533
+ 'drawer-header': () => any;
534
+ 'drawer-subheader': () => any;
535
+ 'drawer-body': () => any;
536
+ 'drawer-cancel': () => any;
537
+ 'drawer-confirm': () => any;
538
+ }> & {
539
+ 'drawer-preheader': () => any;
540
+ 'drawer-header': () => any;
541
+ 'drawer-subheader': () => any;
542
+ 'drawer-body': () => any;
543
+ 'drawer-cancel': () => any;
544
+ 'drawer-confirm': () => any;
531
545
  };
532
546
  }) | null | undefined;
533
547
  }>>> & {
534
548
  onClick?: (() => any) | undefined;
535
549
  }, {}, {}>, Readonly<{
536
- /** @slot Default slot where you can render anything you need. */
537
- default: () => any;
550
+ /** Default slot where you can render anything you need. */
551
+ default(): any;
538
552
  }> & {
539
- /** @slot Default slot where you can render anything you need. */
540
- default: () => any;
553
+ /** Default slot where you can render anything you need. */
554
+ default(): any;
541
555
  }>;
542
556
  export default _default;
557
+ type __VLS_WithTemplateSlots<T, S> = T & {
558
+ new (): {
559
+ $slots: S;
560
+ };
561
+ };
543
562
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
544
- type __VLS_TypePropsToRuntimeProps<T> = {
563
+ type __VLS_TypePropsToOption<T> = {
545
564
  [K in keyof T]-?: {} extends Pick<T, K> ? {
546
565
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
547
566
  } : {
@@ -549,8 +568,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
549
568
  required: true;
550
569
  };
551
570
  };
552
- type __VLS_WithTemplateSlots<T, S> = T & {
553
- new (): {
554
- $slots: S;
555
- };
556
- };
@@ -1,4 +1,3 @@
1
- export declare const DROPDOWN_DIRECTIONS: readonly ["up", "down"];
2
- export type TJoyDropdownDirections = (typeof DROPDOWN_DIRECTIONS)[number];
3
- export declare const DROPDOWN_JUSTIFY: readonly ["left", "right"];
4
- export type TJoyDropdownJustify = (typeof DROPDOWN_JUSTIFY)[number];
1
+ import { TPositions } from '../../types';
2
+ export type TJoyDropdownDirections = 'up' | 'down';
3
+ export type TJoyDropdownJustify = TPositions;
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import { TJoyDropdownDirections } from './JoyDropdown.types';
2
3
  import { TJoyDropdownListSizes } from '../JoyDropdownList/JoyDropdownList.types';
3
4
  export interface Option {
4
5
  id: string;
@@ -35,12 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
35
36
  };
36
37
  /** Dropdown vertical position according to the trigger */
37
38
  direction: {
38
- type: PropType<"up" | "down">;
39
+ type: PropType<TJoyDropdownDirections>;
39
40
  default: string;
40
41
  };
41
42
  /** Dropdown horizontal justify according to the trigger */
42
43
  justify: {
43
- type: PropType<"left" | "right">;
44
+ type: PropType<import("../../types/index.js").TPositions>;
44
45
  default: string;
45
46
  };
46
47
  /**
@@ -57,7 +58,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
58
  size: {
58
59
  type: PropType<TJoyDropdownListSizes>;
59
60
  default: string;
60
- validator(size: TJoyDropdownListSizes): boolean;
61
61
  };
62
62
  /** Use v-model */
63
63
  modelValue: {
@@ -125,12 +125,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
125
125
  };
126
126
  /** Dropdown vertical position according to the trigger */
127
127
  direction: {
128
- type: PropType<"up" | "down">;
128
+ type: PropType<TJoyDropdownDirections>;
129
129
  default: string;
130
130
  };
131
131
  /** Dropdown horizontal justify according to the trigger */
132
132
  justify: {
133
- type: PropType<"left" | "right">;
133
+ type: PropType<import("../../types/index.js").TPositions>;
134
134
  default: string;
135
135
  };
136
136
  /**
@@ -147,7 +147,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
147
147
  size: {
148
148
  type: PropType<TJoyDropdownListSizes>;
149
149
  default: string;
150
- validator(size: TJoyDropdownListSizes): boolean;
151
150
  };
152
151
  /** Use v-model */
153
152
  modelValue: {
@@ -193,32 +192,40 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
193
192
  "onDropdown:hide"?: (() => any) | undefined;
194
193
  "onDropdown:reset"?: (() => any) | undefined;
195
194
  }, {
195
+ height: string;
196
196
  size: TJoyDropdownListSizes;
197
+ reset: boolean;
197
198
  width: string;
198
- height: string;
199
- justify: "left" | "right";
200
- direction: "up" | "down";
199
+ justify: import("../../types/index.js").TPositions;
200
+ direction: TJoyDropdownDirections;
201
201
  options: Option[];
202
- reset: boolean;
203
202
  modelValue: string;
204
203
  appendTo: string | import("vue").RendererElement | null | undefined;
205
204
  disableTeleport: boolean;
206
205
  closeOnSelect: boolean;
207
206
  dropdownGap: string;
208
- }, {}>, {
209
- "dropdown-button"?(_: {}): any;
210
- "dropdown-header"?(_: {}): any;
211
- "dropdown-items"?(_: {}): any;
212
- "dropdown-item"?(_: {
213
- [x: string]: any;
214
- id: string;
215
- value?: string | undefined;
216
- label: string;
217
- href?: string | undefined;
218
- disabled?: boolean | undefined;
219
- checked?: boolean | undefined;
220
- }): any;
221
- "dropdown-footer"?(_: {}): any;
207
+ }, {}>, Readonly<{
208
+ /** The trigger required to display the dropdown list. Can be anything as soon as it's focusable. */
209
+ 'dropdown-button': () => any;
210
+ /** Header that will be injected in the VJoyDropdownList */
211
+ 'dropdown-header'?: (() => any) | undefined;
212
+ /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
213
+ 'dropdown-items'?: (() => any) | undefined;
214
+ /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
215
+ 'dropdown-item'?: (() => any) | undefined;
216
+ /** Footer that will be injected in the VJoyDropdownList */
217
+ 'dropdown-footer'?: (() => any) | undefined;
218
+ }> & {
219
+ /** The trigger required to display the dropdown list. Can be anything as soon as it's focusable. */
220
+ 'dropdown-button': () => any;
221
+ /** Header that will be injected in the VJoyDropdownList */
222
+ 'dropdown-header'?: (() => any) | undefined;
223
+ /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
224
+ 'dropdown-items'?: (() => any) | undefined;
225
+ /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
226
+ 'dropdown-item'?: (() => any) | undefined;
227
+ /** Footer that will be injected in the VJoyDropdownList */
228
+ 'dropdown-footer'?: (() => any) | undefined;
222
229
  }>;
223
230
  export default _default;
224
231
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,3 +1,2 @@
1
- import { SIZES } from '../../types';
2
- export type TJoyDropdownListSizes = Extract<(typeof SIZES)[number], 'xsmall' | 'small' | 'medium'>;
3
- export declare const DROPDOWNLIST_SIZES: TJoyDropdownListSizes[];
1
+ import { TSizes } from '../../types';
2
+ export type TJoyDropdownListSizes = Extract<TSizes, 'xsmall' | 'small' | 'medium'>;
@@ -27,7 +27,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
27
27
  size: {
28
28
  type: PropType<TJoyDropdownListSizes>;
29
29
  default: string;
30
- validator(size: TJoyDropdownListSizes): boolean;
31
30
  };
32
31
  modelValue: {
33
32
  type: StringConstructor;
@@ -71,7 +70,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
71
70
  size: {
72
71
  type: PropType<TJoyDropdownListSizes>;
73
72
  default: string;
74
- validator(size: TJoyDropdownListSizes): boolean;
75
73
  };
76
74
  modelValue: {
77
75
  type: StringConstructor;
@@ -102,30 +100,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
102
100
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
103
101
  "onClose:dropdownList"?: (() => any) | undefined;
104
102
  }, {
103
+ height: string;
105
104
  size: TJoyDropdownListSizes;
105
+ reset: boolean;
106
106
  width: string;
107
- height: string;
108
107
  options: Option[];
109
- reset: boolean;
110
- }, {}>, {
111
- "dropdown-list-header"?(_: {}): any;
112
- "dropdown-list-items"?(_: {}): any;
113
- label?(_: {
114
- [x: string]: any;
115
- id: string;
116
- value?: string | undefined;
117
- label: string;
118
- href?: string | undefined;
119
- /**
120
- * @default false
121
- */
122
- disabled?: boolean | undefined;
123
- /**
124
- * @default false
125
- */
126
- checked?: boolean | undefined;
127
- }): any;
128
- "dropdown-list-footer"?(_: {}): any;
108
+ }, {}>, Readonly<{
109
+ /** Use it to customize the innerHTML of the <li> item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
110
+ label?: ((option: Option) => any) | undefined;
111
+ /** Header that will be injected in the VJoyDropdownList */
112
+ 'dropdown-list-header'?: (() => any) | undefined;
113
+ /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
114
+ 'dropdown-list-items'?: (() => any) | undefined;
115
+ /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
116
+ 'dropdown-list-item'?: (() => any) | undefined;
117
+ /** Footer that will be injected in the VJoyDropdownList */
118
+ 'dropdown-list-footer'?: (() => any) | undefined;
119
+ }> & {
120
+ /** Use it to customize the innerHTML of the <li> item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
121
+ label?: ((option: Option) => any) | undefined;
122
+ /** Header that will be injected in the VJoyDropdownList */
123
+ 'dropdown-list-header'?: (() => any) | undefined;
124
+ /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
125
+ 'dropdown-list-items'?: (() => any) | undefined;
126
+ /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
127
+ 'dropdown-list-item'?: (() => any) | undefined;
128
+ /** Footer that will be injected in the VJoyDropdownList */
129
+ 'dropdown-list-footer'?: (() => any) | undefined;
129
130
  }>;
130
131
  export default _default;
131
132
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,9 +1,15 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ /** To give a label to the whole component */
2
3
  ariaLabel: StringConstructor;
3
4
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5
+ /** To give a label to the whole component */
4
6
  ariaLabel: StringConstructor;
5
- }>>, {}, {}>, {
6
- default?(_: {}): any;
7
+ }>>, {}, {}>, Readonly<{
8
+ /** Use it to inject VJoyFilterBarButton or whatever you need */
9
+ default(): any;
10
+ }> & {
11
+ /** Use it to inject VJoyFilterBarButton or whatever you need */
12
+ default(): any;
7
13
  }>;
8
14
  export default _default;
9
15
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,5 +1,7 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ /** Label to inject inside the button */
2
3
  label: StringConstructor;
4
+ /** Required when used in the `VJoyFilterBar` to properly handle v-model */
3
5
  value: {
4
6
  type: StringConstructor;
5
7
  required: true;
@@ -11,7 +13,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
13
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
14
  filter: (value: string) => void;
13
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ /** Label to inject inside the button */
14
17
  label: StringConstructor;
18
+ /** Required when used in the `VJoyFilterBar` to properly handle v-model */
15
19
  value: {
16
20
  type: StringConstructor;
17
21
  required: true;
@@ -24,8 +28,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
24
28
  onFilter?: ((value: string) => any) | undefined;
25
29
  }, {
26
30
  active: boolean;
27
- }, {}>, {
28
- default?(_: {}): any;
31
+ }, {}>, Readonly<{
32
+ /** Free slot if you need more than the label property. */
33
+ default(): any;
34
+ }> & {
35
+ /** Free slot if you need more than the label property. */
36
+ default(): any;
29
37
  }>;
30
38
  export default _default;
31
39
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -16,8 +16,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
16
16
  noHtmlErrorText: StringConstructor;
17
17
  }>>, {
18
18
  visible: boolean;
19
- }, {}>, {
20
- default?(_: {}): any;
19
+ }, {}>, Readonly<{
20
+ /** If you need a list of error, use this slot with a simple ul/li */
21
+ default?: (() => any) | undefined;
22
+ }> & {
23
+ /** If you need a list of error, use this slot with a simple ul/li */
24
+ default?: (() => any) | undefined;
21
25
  }>;
22
26
  export default _default;
23
27
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,5 +1,3 @@
1
- import { Profiles, SIZES } from '../../types';
2
- export type TJoyFunnelLayoutWidths = Extract<(typeof SIZES)[number], 'medium' | 'large'>;
3
- export declare const JOYFUNNEL_LAYOUT_WIDTHS: TJoyFunnelLayoutWidths[];
1
+ import { Profiles, TSizes } from '../../types';
2
+ export type TJoyFunnelLayoutWidths = Extract<TSizes, 'medium' | 'large'>;
4
3
  export type TJoyFunnelProfiles = `${Profiles.STRATEGY}` | `${Profiles.DEFAULT}`;
5
- export declare const JOYFUNNEL_PROFILES: string[];
@@ -41,14 +41,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
41
41
  hideShapes: boolean;
42
42
  layoutWidth: TJoyFunnelLayoutWidths;
43
43
  }, {}>, Readonly<{
44
+ /** Use VJoyTemplate here */
44
45
  default: () => any;
46
+ /** Use VJoyHeader here */
45
47
  'funnel-header': () => any;
48
+ /** Use VJoyStepper here */
46
49
  'funnel-stepper'?: (() => any) | undefined;
50
+ /** Use VJoyFooter here */
47
51
  'funnel-footer'?: (() => any) | undefined;
48
52
  }> & {
53
+ /** Use VJoyTemplate here */
49
54
  default: () => any;
55
+ /** Use VJoyHeader here */
50
56
  'funnel-header': () => any;
57
+ /** Use VJoyStepper here */
51
58
  'funnel-stepper'?: (() => any) | undefined;
59
+ /** Use VJoyFooter here */
52
60
  'funnel-footer'?: (() => any) | undefined;
53
61
  }>;
54
62
  export default _default;
@@ -1,5 +1,3 @@
1
- import { LEVELS } from '../../types';
2
- export type TJoyHighlightLevels = (typeof LEVELS)[number];
3
- export declare const HIGHLIGHT_LEVELS: ("neutral" | "success" | "info" | "warning" | "error")[];
1
+ import { TLevels } from '../../types';
2
+ export type TJoyHighlightLevels = TLevels;
4
3
  export type TJoyHighlightVariants = 'ai' | 'default';
5
- export declare const HIGHLIGHT_VARIANTS: string[];