@maltjoy/core-vue 3.27.0 → 3.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) 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 +12 -6
  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 +10 -3
  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 +11 -6
  20. package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
  21. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +30 -8
  22. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +56 -20
  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 +32 -12
  26. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +64 -30
  27. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
  28. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +29 -22
  29. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
  30. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +22 -21
  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 +10 -7
  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/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
  55. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +5 -3
  56. package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
  57. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +20 -7
  58. package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -2
  59. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +14 -6
  60. package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -3
  61. package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +10 -2
  62. package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -2
  63. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +14 -6
  64. package/dist/components/JoySelect/JoySelect.types.d.ts +2 -3
  65. package/dist/components/JoySelect/VJoySelect.vue.d.ts +9 -4
  66. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +10 -65
  67. package/dist/components/JoySeparator/JoySeparator.types.d.ts +2 -3
  68. package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +2 -3
  69. package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -2
  70. package/dist/components/JoySnackbar/index.d.ts +1 -1
  71. package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -2
  72. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +2 -4
  73. package/dist/components/JoyStep/VJoyStep.vue.d.ts +14 -2
  74. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +10 -2
  75. package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +2 -0
  76. package/dist/components/JoyTag/JoyTag.types.d.ts +3 -5
  77. package/dist/components/JoyTag/VJoyTag.vue.d.ts +13 -3
  78. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +34 -19
  79. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -2
  80. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
  81. package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -2
  82. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +67 -15
  83. package/dist/components/JoyText/VJoyText.vue.d.ts +6 -2
  84. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +6 -5
  85. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +6 -2
  86. package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
  87. package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +20 -6
  88. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -10
  89. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +19 -18
  90. package/dist/components/main.d.ts +1 -1
  91. package/dist/helpers/index.d.ts +2 -2
  92. package/dist/joy-vue.js +2086 -2152
  93. package/dist/joy-vue.umd.cjs +4 -4
  94. package/dist/style.css +1 -1
  95. package/dist/types/index.d.ts +7 -10
  96. package/package.json +20 -24
@@ -1,3 +1,2 @@
1
- import { SIZES } from '../../types';
2
- export type TJoyDialogSizes = Extract<(typeof SIZES)[number], 'large'> | 'default';
3
- export declare const DIALOG_SIZES: TJoyDialogSizes[];
1
+ import { TSizes } from '../../types';
2
+ export type TJoyDialogSizes = Extract<TSizes, 'large'> | 'default';
@@ -180,14 +180,36 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
180
180
  patternBrand: boolean;
181
181
  buttonSize: TJoyButtonSizes;
182
182
  bannerHeight: number;
183
- }, {}>, {
184
- "dialog-preheader"?(_: {}): any;
185
- "dialog-header"?(_: {}): any;
186
- "dialog-subheader"?(_: {}): any;
187
- "dialog-body"?(_: {}): any;
188
- "dialog-cancel"?(_: {}): any;
189
- "dialog-confirm"?(_: {}): any;
190
- "dialog-indicators"?(_: {}): any;
183
+ }, {}>, Readonly<{
184
+ /** Made for short informations */
185
+ 'dialog-preheader': () => any;
186
+ /** Header to inject your title */
187
+ 'dialog-header': () => any;
188
+ /** Subheader to inject additionnal informtion */
189
+ 'dialog-subheader': () => any;
190
+ /** Body content to inject whatever you need */
191
+ 'dialog-body': () => any;
192
+ /** Used to render the cancel CTA */
193
+ 'dialog-cancel': () => any;
194
+ /** Used to render the confirm CTA */
195
+ 'dialog-confirm': () => any;
196
+ /** When navigating with multiple dialogs */
197
+ 'dialog-indicators': () => any;
198
+ }> & {
199
+ /** Made for short informations */
200
+ 'dialog-preheader': () => any;
201
+ /** Header to inject your title */
202
+ 'dialog-header': () => any;
203
+ /** Subheader to inject additionnal informtion */
204
+ 'dialog-subheader': () => any;
205
+ /** Body content to inject whatever you need */
206
+ 'dialog-body': () => any;
207
+ /** Used to render the cancel CTA */
208
+ 'dialog-cancel': () => any;
209
+ /** Used to render the confirm CTA */
210
+ 'dialog-confirm': () => any;
211
+ /** When navigating with multiple dialogs */
212
+ 'dialog-indicators': () => any;
191
213
  }>;
192
214
  export default _default;
193
215
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -294,14 +294,32 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
294
294
  isOpen: import("vue").Ref<boolean>;
295
295
  show: () => Promise<void>;
296
296
  }> & {} & import("vue").ComponentCustomProperties & {} & {
297
- $slots: {
298
- "dialog-preheader"?(_: {}): any;
299
- "dialog-header"?(_: {}): any;
300
- "dialog-subheader"?(_: {}): any;
301
- "dialog-body"?(_: {}): any;
302
- "dialog-cancel"?(_: {}): any;
303
- "dialog-confirm"?(_: {}): any;
304
- "dialog-indicators"?(_: {}): any;
297
+ $slots: Readonly<{
298
+ 'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
299
+ * When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
300
+ * props.dialog is actually "not null"
301
+ *
302
+ * renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
303
+ */
304
+ 'dialog-header': () => any;
305
+ 'dialog-subheader': () => any;
306
+ 'dialog-body': () => any;
307
+ 'dialog-cancel': () => any;
308
+ 'dialog-confirm': () => any;
309
+ 'dialog-indicators': () => any;
310
+ }> & {
311
+ 'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
312
+ * When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
313
+ * props.dialog is actually "not null"
314
+ *
315
+ * renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
316
+ */
317
+ 'dialog-header': () => any;
318
+ 'dialog-subheader': () => any;
319
+ 'dialog-body': () => any;
320
+ 'dialog-cancel': () => any;
321
+ 'dialog-confirm': () => any;
322
+ 'dialog-indicators': () => any;
305
323
  };
306
324
  }) | null | undefined;
307
325
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -602,24 +620,42 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
602
620
  isOpen: import("vue").Ref<boolean>;
603
621
  show: () => Promise<void>;
604
622
  }> & {} & import("vue").ComponentCustomProperties & {} & {
605
- $slots: {
606
- "dialog-preheader"?(_: {}): any;
607
- "dialog-header"?(_: {}): any;
608
- "dialog-subheader"?(_: {}): any;
609
- "dialog-body"?(_: {}): any;
610
- "dialog-cancel"?(_: {}): any;
611
- "dialog-confirm"?(_: {}): any;
612
- "dialog-indicators"?(_: {}): any;
623
+ $slots: Readonly<{
624
+ 'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
625
+ * When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
626
+ * props.dialog is actually "not null"
627
+ *
628
+ * renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
629
+ */
630
+ 'dialog-header': () => any;
631
+ 'dialog-subheader': () => any;
632
+ 'dialog-body': () => any;
633
+ 'dialog-cancel': () => any;
634
+ 'dialog-confirm': () => any;
635
+ 'dialog-indicators': () => any;
636
+ }> & {
637
+ 'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
638
+ * When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
639
+ * props.dialog is actually "not null"
640
+ *
641
+ * renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
642
+ */
643
+ 'dialog-header': () => any;
644
+ 'dialog-subheader': () => any;
645
+ 'dialog-body': () => any;
646
+ 'dialog-cancel': () => any;
647
+ 'dialog-confirm': () => any;
648
+ 'dialog-indicators': () => any;
613
649
  };
614
650
  }) | null | undefined;
615
651
  }>>> & {
616
652
  onClick?: (() => any) | undefined;
617
653
  }, {}, {}>, Readonly<{
618
- /** @slot Default slot where you can render anything you need. */
619
- default: () => any;
654
+ /** Default slot where you can render anything you need. */
655
+ default(): any;
620
656
  }> & {
621
- /** @slot Default slot where you can render anything you need. */
622
- default: () => any;
657
+ /** Default slot where you can render anything you need. */
658
+ default(): any;
623
659
  }>;
624
660
  export default _default;
625
661
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -10,9 +10,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  };
11
11
  }>>, {
12
12
  disabled: boolean;
13
- }, {}>, {
14
- default?(_: {}): any;
15
- "divider-content"?(_: {}): any;
13
+ }, {}>, Readonly<{
14
+ /** Title of the component */
15
+ default(): any;
16
+ /** Component main content, below the title */
17
+ 'divider-content': () => any;
18
+ }> & {
19
+ /** Title of the component */
20
+ default(): any;
21
+ /** Component main content, below the title */
22
+ 'divider-content': () => any;
16
23
  }>;
17
24
  export default _default;
18
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,2 +1 @@
1
- export declare const DRAWER_SIZES: readonly ["default", "large"];
2
- export type TJoyDrawerSizes = (typeof DRAWER_SIZES)[number];
1
+ export type TJoyDrawerSizes = 'default' | 'large';
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
3
+ import { TJoyDrawerSizes } from './JoyDrawer.types';
3
4
  declare function hide(options?: {
4
5
  fireHideEvent: boolean;
5
6
  }): Promise<void>;
@@ -20,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
20
21
  default: boolean;
21
22
  };
22
23
  size: {
23
- type: PropType<"default" | "large">;
24
+ type: PropType<TJoyDrawerSizes>;
24
25
  default: string;
25
26
  };
26
27
  /** By default the drawer is teleported to the end of body tag */
@@ -38,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
38
39
  default: boolean;
39
40
  };
40
41
  /**
41
- * @internal - Mostly for documentation purpose
42
+ * Mostly for documentation purpose
42
43
  */
43
44
  preventBodyScroll: {
44
45
  type: BooleanConstructor;
@@ -89,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
89
90
  default: boolean;
90
91
  };
91
92
  size: {
92
- type: PropType<"default" | "large">;
93
+ type: PropType<TJoyDrawerSizes>;
93
94
  default: string;
94
95
  };
95
96
  /** By default the drawer is teleported to the end of body tag */
@@ -107,7 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
107
108
  default: boolean;
108
109
  };
109
110
  /**
110
- * @internal - Mostly for documentation purpose
111
+ * Mostly for documentation purpose
111
112
  */
112
113
  preventBodyScroll: {
113
114
  type: BooleanConstructor;
@@ -143,7 +144,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
143
144
  "onDrawer:before-unmount"?: (() => any) | undefined;
144
145
  "onDrawer:confirm"?: (() => any) | undefined;
145
146
  }, {
146
- size: "default" | "large";
147
+ size: TJoyDrawerSizes;
147
148
  closeLabel: string;
148
149
  open: boolean;
149
150
  preventBodyScroll: boolean;
@@ -151,13 +152,32 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
151
152
  focusTrap: boolean;
152
153
  buttonSize: TJoyButtonSizes;
153
154
  elevated: boolean;
154
- }, {}>, {
155
- "drawer-header"?(_: {}): any;
156
- "drawer-subheader"?(_: {}): any;
157
- "drawer-body"?(_: {}): any;
158
- "drawer-cancel"?(_: {}): any;
159
- "drawer-confirm"?(_: {}): any;
160
- "drawer-indicators"?(_: {}): any;
155
+ }, {}>, Readonly<{
156
+ /** Made for short informations */
157
+ 'drawer-preheader': () => any;
158
+ /** Header to inject your title */
159
+ 'drawer-header': () => any;
160
+ /** Subheader to inject additionnal informtion */
161
+ 'drawer-subheader': () => any;
162
+ /** Body content to inject whatever you need */
163
+ 'drawer-body': () => any;
164
+ /** Used to render the cancel CTA */
165
+ 'drawer-cancel': () => any;
166
+ /** Used to render the confirm CTA */
167
+ 'drawer-confirm': () => any;
168
+ }> & {
169
+ /** Made for short informations */
170
+ 'drawer-preheader': () => any;
171
+ /** Header to inject your title */
172
+ 'drawer-header': () => any;
173
+ /** Subheader to inject additionnal informtion */
174
+ 'drawer-subheader': () => any;
175
+ /** Body content to inject whatever you need */
176
+ 'drawer-body': () => any;
177
+ /** Used to render the cancel CTA */
178
+ 'drawer-cancel': () => any;
179
+ /** Used to render the confirm CTA */
180
+ 'drawer-confirm': () => any;
161
181
  }>;
162
182
  export default _default;
163
183
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
- size: "default" | "large";
7
+ size: import("../components.types").TJoyDrawerSizes;
8
8
  closeLabel: string;
9
9
  open: boolean;
10
10
  preventBodyScroll: boolean;
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
13
13
  buttonSize: import("../components.types").TJoyButtonSizes;
14
14
  elevated: boolean;
15
15
  }> & Omit<{
16
- readonly size: "default" | "large";
16
+ readonly size: import("../components.types").TJoyDrawerSizes;
17
17
  readonly closeLabel: string;
18
18
  readonly open: boolean;
19
19
  readonly preventBodyScroll: boolean;
@@ -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").TJoyDrawerSizes>;
44
44
  default: string;
45
45
  };
46
46
  teleport: {
@@ -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").TJoyDrawerSizes>;
110
110
  default: string;
111
111
  };
112
112
  teleport: {
@@ -165,7 +165,7 @@ 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").TJoyDrawerSizes;
169
169
  closeLabel: string;
170
170
  open: boolean;
171
171
  preventBodyScroll: boolean;
@@ -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").TJoyDrawerSizes>;
206
206
  default: string;
207
207
  };
208
208
  teleport: {
@@ -254,13 +254,30 @@ 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; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
259
+ * When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
260
+ * props.drawer is actually "not null"
261
+ *
262
+ * renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
263
+ */
264
+ 'drawer-header': () => any;
265
+ 'drawer-subheader': () => any;
266
+ 'drawer-body': () => any;
267
+ 'drawer-cancel': () => any;
268
+ 'drawer-confirm': () => any;
269
+ }> & {
270
+ 'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
271
+ * When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
272
+ * props.drawer is actually "not null"
273
+ *
274
+ * renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
275
+ */
276
+ 'drawer-header': () => any;
277
+ 'drawer-subheader': () => any;
278
+ 'drawer-body': () => any;
279
+ 'drawer-cancel': () => any;
280
+ 'drawer-confirm': () => any;
264
281
  };
265
282
  }) | null | undefined;
266
283
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -271,7 +288,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
271
288
  $: import("vue").ComponentInternalInstance;
272
289
  $data: {};
273
290
  $props: Partial<{
274
- size: "default" | "large";
291
+ size: import("../components.types").TJoyDrawerSizes;
275
292
  closeLabel: string;
276
293
  open: boolean;
277
294
  preventBodyScroll: boolean;
@@ -280,7 +297,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
280
297
  buttonSize: import("../components.types").TJoyButtonSizes;
281
298
  elevated: boolean;
282
299
  }> & Omit<{
283
- readonly size: "default" | "large";
300
+ readonly size: import("../components.types").TJoyDrawerSizes;
284
301
  readonly closeLabel: string;
285
302
  readonly open: boolean;
286
303
  readonly preventBodyScroll: boolean;
@@ -307,7 +324,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
307
324
  default: boolean;
308
325
  };
309
326
  size: {
310
- type: import("vue").PropType<"default" | "large">;
327
+ type: import("vue").PropType<import("../components.types").TJoyDrawerSizes>;
311
328
  default: string;
312
329
  };
313
330
  teleport: {
@@ -373,7 +390,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
373
390
  default: boolean;
374
391
  };
375
392
  size: {
376
- type: import("vue").PropType<"default" | "large">;
393
+ type: import("vue").PropType<import("../components.types").TJoyDrawerSizes>;
377
394
  default: string;
378
395
  };
379
396
  teleport: {
@@ -432,7 +449,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
432
449
  "drawer:before-unmount": () => void;
433
450
  "drawer:confirm": () => void;
434
451
  }, string, {
435
- size: "default" | "large";
452
+ size: import("../components.types").TJoyDrawerSizes;
436
453
  closeLabel: string;
437
454
  open: boolean;
438
455
  preventBodyScroll: boolean;
@@ -469,7 +486,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
469
486
  default: boolean;
470
487
  };
471
488
  size: {
472
- type: import("vue").PropType<"default" | "large">;
489
+ type: import("vue").PropType<import("../components.types").TJoyDrawerSizes>;
473
490
  default: string;
474
491
  };
475
492
  teleport: {
@@ -521,23 +538,40 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
521
538
  isOpen: import("vue").Ref<boolean>;
522
539
  show: () => Promise<void>;
523
540
  }> & {} & 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;
541
+ $slots: Readonly<{
542
+ 'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
543
+ * When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
544
+ * props.drawer is actually "not null"
545
+ *
546
+ * renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
547
+ */
548
+ 'drawer-header': () => any;
549
+ 'drawer-subheader': () => any;
550
+ 'drawer-body': () => any;
551
+ 'drawer-cancel': () => any;
552
+ 'drawer-confirm': () => any;
553
+ }> & {
554
+ 'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
555
+ * When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
556
+ * props.drawer is actually "not null"
557
+ *
558
+ * renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
559
+ */
560
+ 'drawer-header': () => any;
561
+ 'drawer-subheader': () => any;
562
+ 'drawer-body': () => any;
563
+ 'drawer-cancel': () => any;
564
+ 'drawer-confirm': () => any;
531
565
  };
532
566
  }) | null | undefined;
533
567
  }>>> & {
534
568
  onClick?: (() => any) | undefined;
535
569
  }, {}, {}>, Readonly<{
536
- /** @slot Default slot where you can render anything you need. */
537
- default: () => any;
570
+ /** Default slot where you can render anything you need. */
571
+ default(): any;
538
572
  }> & {
539
- /** @slot Default slot where you can render anything you need. */
540
- default: () => any;
573
+ /** Default slot where you can render anything you need. */
574
+ default(): any;
541
575
  }>;
542
576
  export default _default;
543
577
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -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").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").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: {
@@ -196,8 +195,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
196
195
  size: TJoyDropdownListSizes;
197
196
  width: string;
198
197
  height: string;
199
- justify: "left" | "right";
200
- direction: "up" | "down";
198
+ justify: import("../../types").TPositions;
199
+ direction: TJoyDropdownDirections;
201
200
  options: Option[];
202
201
  reset: boolean;
203
202
  modelValue: string;
@@ -205,20 +204,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
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;
@@ -107,25 +105,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
107
105
  height: string;
108
106
  options: Option[];
109
107
  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 & {