@maltjoy/core-vue 3.31.0 → 3.31.1-next

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 (43) hide show
  1. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +11 -0
  2. package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +10 -10
  3. package/dist/components/JoyButton/VJoyButton.vue.d.ts +4 -4
  4. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +4 -4
  5. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +11 -0
  6. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +7 -7
  7. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +1 -1
  8. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +42 -62
  9. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +1 -1
  10. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +42 -62
  11. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +5 -5
  12. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +2 -2
  13. package/dist/components/JoyDropzone/VJoyDropzone.vue.d.ts +12 -9
  14. package/dist/components/JoyDropzone/VJoyDropzoneFileItem.vue.d.ts +9 -6
  15. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
  16. package/dist/components/JoyInput/VJoyInput.vue.d.ts +4 -4
  17. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +1 -1
  18. package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +18 -18
  19. package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +8 -8
  20. package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +12 -12
  21. package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +14 -14
  22. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
  23. package/dist/components/JoySelect/VJoySelect.vue.d.ts +2 -2
  24. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +4 -3
  25. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +1 -1
  26. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +7 -7
  27. package/dist/components/JoyTag/VJoyTag.vue.d.ts +12 -12
  28. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +18 -18
  29. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +3 -3
  30. package/dist/components/JoyText/VJoyText.vue.d.ts +3 -3
  31. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
  32. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
  33. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +1 -1
  34. package/dist/components.cjs +1 -1
  35. package/dist/components.js +2 -2
  36. package/dist/main.cjs +1 -1
  37. package/dist/main.js +2 -2
  38. package/dist/style-359_sDCG.cjs +16 -0
  39. package/dist/{style-dN97fQhG.js → style-C0tnLvqq.js} +1178 -1164
  40. package/dist/style.css +1 -1
  41. package/package.json +29 -28
  42. package/LICENSE +0 -21
  43. package/dist/style-CoxBpZr6.cjs +0 -16
@@ -24,6 +24,11 @@ declare const _default: import("vue").DefineComponent<{
24
24
  type: PropType<"default" | "strategy">;
25
25
  default: string;
26
26
  };
27
+ /** Only applied if you set a photoUrl */
28
+ loading: {
29
+ type: PropType<"eager" | "lazy">;
30
+ default: string;
31
+ };
27
32
  }, {
28
33
  isAnonymous: import("vue").ComputedRef<boolean>;
29
34
  initials: import("vue").ComputedRef<string>;
@@ -53,11 +58,17 @@ declare const _default: import("vue").DefineComponent<{
53
58
  type: PropType<"default" | "strategy">;
54
59
  default: string;
55
60
  };
61
+ /** Only applied if you set a photoUrl */
62
+ loading: {
63
+ type: PropType<"eager" | "lazy">;
64
+ default: string;
65
+ };
56
66
  }>> & {
57
67
  onClick?: (() => any) | undefined;
58
68
  }, {
59
69
  link: boolean;
60
70
  size: TJoyAvatarSizes;
71
+ loading: "eager" | "lazy";
61
72
  color: import("./JoyAvatar.types").FreelancerAvatarColors | "transparent";
62
73
  profile: "default" | "strategy";
63
74
  }, {}>;
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  /** VJoyBottomSheet ref. */
3
3
  bottomSheet: ({
4
4
  $: import("vue").ComponentInternalInstance;
@@ -108,7 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
108
108
  };
109
109
  $forceUpdate: () => void;
110
110
  $nextTick: typeof import("vue").nextTick;
111
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
111
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
112
112
  } & Omit<Readonly<import("vue").ExtractPropTypes<{
113
113
  closeLabel: {
114
114
  type: StringConstructor;
@@ -148,7 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
148
148
  }) | null | undefined;
149
149
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
150
150
  click: () => void;
151
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
151
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
152
152
  /** VJoyBottomSheet ref. */
153
153
  bottomSheet: ({
154
154
  $: import("vue").ComponentInternalInstance;
@@ -258,7 +258,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
258
258
  };
259
259
  $forceUpdate: () => void;
260
260
  $nextTick: typeof import("vue").nextTick;
261
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
261
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
262
262
  } & Omit<Readonly<import("vue").ExtractPropTypes<{
263
263
  closeLabel: {
264
264
  type: StringConstructor;
@@ -306,8 +306,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
306
306
  default: () => any;
307
307
  }>;
308
308
  export default _default;
309
+ type __VLS_WithTemplateSlots<T, S> = T & {
310
+ new (): {
311
+ $slots: S;
312
+ };
313
+ };
309
314
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
310
- type __VLS_TypePropsToRuntimeProps<T> = {
315
+ type __VLS_TypePropsToOption<T> = {
311
316
  [K in keyof T]-?: {} extends Pick<T, K> ? {
312
317
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
313
318
  } : {
@@ -315,8 +320,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
315
320
  required: true;
316
321
  };
317
322
  };
318
- type __VLS_WithTemplateSlots<T, S> = T & {
319
- new (): {
320
- $slots: S;
321
- };
322
- };
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
15
  };
16
16
  /** Left to the text or right */
17
17
  iconPosition: {
18
- type: PropType<import("../../types").TPositions>;
18
+ type: PropType<import("../../types/index.js").TPositions>;
19
19
  default: string;
20
20
  };
21
21
  /**
@@ -56,7 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
56
56
  };
57
57
  /** Left to the text or right */
58
58
  iconPosition: {
59
- type: PropType<import("../../types").TPositions>;
59
+ type: PropType<import("../../types/index.js").TPositions>;
60
60
  default: string;
61
61
  };
62
62
  /**
@@ -81,11 +81,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
81
81
  default: string;
82
82
  };
83
83
  }>>, {
84
- circle: boolean;
85
84
  size: TJoyButtonSizes;
85
+ circle: boolean;
86
86
  loading: boolean;
87
87
  variant: TJoyButtonVariants;
88
- iconPosition: import("../../types").TPositions;
88
+ iconPosition: import("../../types/index.js").TPositions;
89
89
  }, {}>, Readonly<{
90
90
  /** Default slot for button text */
91
91
  default(): any;
@@ -109,13 +109,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
109
109
  onBlur?: (() => any) | undefined;
110
110
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
111
111
  }, {
112
- required: boolean;
112
+ checked: boolean;
113
113
  disabled: boolean;
114
114
  indeterminate: boolean;
115
- displayFocus: boolean;
116
- checked: boolean;
117
- invalid: boolean;
115
+ required: boolean;
118
116
  value: string;
117
+ invalid: boolean;
118
+ displayFocus: boolean;
119
119
  }, {}>, Readonly<{
120
120
  /** Default slot for checkbox label. You can as well use the label property. */
121
121
  default(): any;
@@ -11,6 +11,11 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: PropType<TJoyCompanyAvatarSizes>;
12
12
  default: string;
13
13
  };
14
+ /** Only applied if you set a imgSrc */
15
+ loading: {
16
+ type: PropType<"eager" | "lazy">;
17
+ default: string;
18
+ };
14
19
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
20
  /** Inject the URL of your image. Fallback will be the icon */
16
21
  imgSrc: StringConstructor;
@@ -22,7 +27,13 @@ declare const _default: import("vue").DefineComponent<{
22
27
  type: PropType<TJoyCompanyAvatarSizes>;
23
28
  default: string;
24
29
  };
30
+ /** Only applied if you set a imgSrc */
31
+ loading: {
32
+ type: PropType<"eager" | "lazy">;
33
+ default: string;
34
+ };
25
35
  }>>, {
26
36
  size: TJoyCompanyAvatarSizes;
37
+ loading: "eager" | "lazy";
27
38
  }, {}>;
28
39
  export default _default;
@@ -68,22 +68,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
68
68
  };
69
69
  }, {
70
70
  props: {
71
- readonly required: boolean;
72
71
  readonly disabled: boolean;
72
+ readonly min: number;
73
+ readonly required: boolean;
74
+ readonly step: number;
73
75
  readonly invalid: boolean;
74
76
  readonly modelValue: number;
75
77
  readonly autofocus: boolean;
76
78
  readonly labelSize: TJoyLabelSizes;
77
79
  readonly requiredMark: boolean;
78
- readonly min: number;
79
- readonly step: number;
80
80
  readonly label?: string | undefined;
81
81
  readonly name?: string | undefined;
82
+ readonly max?: number | undefined;
82
83
  readonly id?: string | undefined;
83
84
  readonly optionalLabel?: string | undefined;
84
85
  readonly labelDecrement?: string | undefined;
85
86
  readonly labelIncrement?: string | undefined;
86
- readonly max?: number | undefined;
87
87
  readonly errorMessage?: string | undefined;
88
88
  };
89
89
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -157,15 +157,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
157
157
  }>> & {
158
158
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
159
159
  }, {
160
- required: boolean;
161
160
  disabled: boolean;
161
+ min: number;
162
+ required: boolean;
163
+ step: number;
162
164
  invalid: boolean;
163
165
  modelValue: number;
164
166
  autofocus: boolean;
165
167
  labelSize: TJoyLabelSizes;
166
168
  requiredMark: boolean;
167
- min: number;
168
- step: number;
169
169
  }, {}>, Readonly<{
170
170
  /** Default slot to display a label on top of the element. You can use label property as well */
171
171
  default(): any;
@@ -78,7 +78,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
78
78
  default: number;
79
79
  };
80
80
  }, {
81
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
81
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
82
82
  hasFooterSlots: import("vue").ComputedRef<boolean>;
83
83
  hide: typeof hide;
84
84
  isOpen: import("vue").Ref<boolean>;
@@ -1,10 +1,10 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  /** VJoyDialog ref. */
3
3
  dialog: ({
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
- size: import("../components.types").TJoyDialogSizes;
7
+ size: import("../components.types.js").TJoyDialogSizes;
8
8
  closeLabel: string;
9
9
  open: boolean;
10
10
  preventBodyScroll: boolean;
@@ -12,10 +12,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  focusTrap: boolean;
13
13
  patternConfirm: boolean;
14
14
  patternBrand: boolean;
15
- buttonSize: import("../components.types").TJoyButtonSizes;
15
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
16
16
  bannerHeight: number;
17
17
  }> & Omit<{
18
- readonly size: import("../components.types").TJoyDialogSizes;
18
+ readonly size: import("../components.types.js").TJoyDialogSizes;
19
19
  readonly closeLabel: string;
20
20
  readonly open: boolean;
21
21
  readonly preventBodyScroll: boolean;
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  readonly focusTrap: boolean;
24
24
  readonly patternConfirm: boolean;
25
25
  readonly patternBrand: boolean;
26
- readonly buttonSize: import("../components.types").TJoyButtonSizes;
26
+ readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
27
27
  readonly bannerHeight: number;
28
28
  readonly id?: string | undefined;
29
29
  readonly cancelText?: string | undefined;
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
41
41
  type: StringConstructor;
42
42
  };
43
43
  size: {
44
- type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
44
+ type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
45
45
  default: string;
46
46
  };
47
47
  focusTrap: {
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
79
79
  type: StringConstructor;
80
80
  };
81
81
  buttonSize: {
82
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
82
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
83
83
  default: string;
84
84
  };
85
85
  bannerSrc: {
@@ -118,7 +118,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
118
118
  type: StringConstructor;
119
119
  };
120
120
  size: {
121
- type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
121
+ type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
122
122
  default: string;
123
123
  };
124
124
  focusTrap: {
@@ -156,7 +156,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
156
156
  type: StringConstructor;
157
157
  };
158
158
  buttonSize: {
159
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
159
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
160
160
  default: string;
161
161
  };
162
162
  bannerSrc: {
@@ -177,7 +177,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
177
177
  "onDialog:before-unmount"?: (() => any) | undefined;
178
178
  "onDialog:confirm"?: (() => any) | undefined;
179
179
  }, {
180
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
180
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
181
181
  hasFooterSlots: import("vue").ComputedRef<boolean>;
182
182
  hide: (options?: {
183
183
  fireHideEvent: boolean;
@@ -192,7 +192,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
192
192
  "dialog:before-unmount": () => void;
193
193
  "dialog:confirm": () => void;
194
194
  }, string, {
195
- size: import("../components.types").TJoyDialogSizes;
195
+ size: import("../components.types.js").TJoyDialogSizes;
196
196
  closeLabel: string;
197
197
  open: boolean;
198
198
  preventBodyScroll: boolean;
@@ -200,7 +200,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
200
200
  focusTrap: boolean;
201
201
  patternConfirm: boolean;
202
202
  patternBrand: boolean;
203
- buttonSize: import("../components.types").TJoyButtonSizes;
203
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
204
204
  bannerHeight: number;
205
205
  }, {}, string, {}> & {
206
206
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -221,13 +221,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
221
221
  };
222
222
  $forceUpdate: () => void;
223
223
  $nextTick: typeof import("vue").nextTick;
224
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
224
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
225
225
  } & Omit<Readonly<import("vue").ExtractPropTypes<{
226
226
  id: {
227
227
  type: StringConstructor;
228
228
  };
229
229
  size: {
230
- type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
230
+ type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
231
231
  default: string;
232
232
  };
233
233
  focusTrap: {
@@ -265,7 +265,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
265
265
  type: StringConstructor;
266
266
  };
267
267
  buttonSize: {
268
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
268
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
269
269
  default: string;
270
270
  };
271
271
  bannerSrc: {
@@ -286,7 +286,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
286
286
  "onDialog:before-unmount"?: (() => any) | undefined;
287
287
  "onDialog:confirm"?: (() => any) | undefined;
288
288
  }, "hide" | "show" | "isOpen" | "focusTrapReturn" | "hasFooterSlots"> & import("vue").ShallowUnwrapRef<{
289
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
289
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
290
290
  hasFooterSlots: import("vue").ComputedRef<boolean>;
291
291
  hide: (options?: {
292
292
  fireHideEvent: boolean;
@@ -295,12 +295,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
295
295
  show: () => Promise<void>;
296
296
  }> & {} & import("vue").ComponentCustomProperties & {} & {
297
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
- */
298
+ 'dialog-preheader': () => any;
304
299
  'dialog-header': () => any;
305
300
  'dialog-subheader': () => any;
306
301
  'dialog-body': () => any;
@@ -308,12 +303,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
308
303
  'dialog-confirm': () => any;
309
304
  'dialog-indicators': () => any;
310
305
  }> & {
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
- */
306
+ 'dialog-preheader': () => any;
317
307
  'dialog-header': () => any;
318
308
  'dialog-subheader': () => any;
319
309
  'dialog-body': () => any;
@@ -324,13 +314,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
324
314
  }) | null | undefined;
325
315
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
326
316
  click: () => void;
327
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
317
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
328
318
  /** VJoyDialog ref. */
329
319
  dialog: ({
330
320
  $: import("vue").ComponentInternalInstance;
331
321
  $data: {};
332
322
  $props: Partial<{
333
- size: import("../components.types").TJoyDialogSizes;
323
+ size: import("../components.types.js").TJoyDialogSizes;
334
324
  closeLabel: string;
335
325
  open: boolean;
336
326
  preventBodyScroll: boolean;
@@ -338,10 +328,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
338
328
  focusTrap: boolean;
339
329
  patternConfirm: boolean;
340
330
  patternBrand: boolean;
341
- buttonSize: import("../components.types").TJoyButtonSizes;
331
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
342
332
  bannerHeight: number;
343
333
  }> & Omit<{
344
- readonly size: import("../components.types").TJoyDialogSizes;
334
+ readonly size: import("../components.types.js").TJoyDialogSizes;
345
335
  readonly closeLabel: string;
346
336
  readonly open: boolean;
347
337
  readonly preventBodyScroll: boolean;
@@ -349,7 +339,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
349
339
  readonly focusTrap: boolean;
350
340
  readonly patternConfirm: boolean;
351
341
  readonly patternBrand: boolean;
352
- readonly buttonSize: import("../components.types").TJoyButtonSizes;
342
+ readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
353
343
  readonly bannerHeight: number;
354
344
  readonly id?: string | undefined;
355
345
  readonly cancelText?: string | undefined;
@@ -367,7 +357,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
367
357
  type: StringConstructor;
368
358
  };
369
359
  size: {
370
- type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
360
+ type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
371
361
  default: string;
372
362
  };
373
363
  focusTrap: {
@@ -405,7 +395,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
405
395
  type: StringConstructor;
406
396
  };
407
397
  buttonSize: {
408
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
398
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
409
399
  default: string;
410
400
  };
411
401
  bannerSrc: {
@@ -444,7 +434,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
444
434
  type: StringConstructor;
445
435
  };
446
436
  size: {
447
- type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
437
+ type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
448
438
  default: string;
449
439
  };
450
440
  focusTrap: {
@@ -482,7 +472,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
482
472
  type: StringConstructor;
483
473
  };
484
474
  buttonSize: {
485
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
475
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
486
476
  default: string;
487
477
  };
488
478
  bannerSrc: {
@@ -503,7 +493,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
503
493
  "onDialog:before-unmount"?: (() => any) | undefined;
504
494
  "onDialog:confirm"?: (() => any) | undefined;
505
495
  }, {
506
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
496
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
507
497
  hasFooterSlots: import("vue").ComputedRef<boolean>;
508
498
  hide: (options?: {
509
499
  fireHideEvent: boolean;
@@ -518,7 +508,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
518
508
  "dialog:before-unmount": () => void;
519
509
  "dialog:confirm": () => void;
520
510
  }, string, {
521
- size: import("../components.types").TJoyDialogSizes;
511
+ size: import("../components.types.js").TJoyDialogSizes;
522
512
  closeLabel: string;
523
513
  open: boolean;
524
514
  preventBodyScroll: boolean;
@@ -526,7 +516,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
526
516
  focusTrap: boolean;
527
517
  patternConfirm: boolean;
528
518
  patternBrand: boolean;
529
- buttonSize: import("../components.types").TJoyButtonSizes;
519
+ buttonSize: import("../components.types.js").TJoyButtonSizes;
530
520
  bannerHeight: number;
531
521
  }, {}, string, {}> & {
532
522
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -547,13 +537,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
547
537
  };
548
538
  $forceUpdate: () => void;
549
539
  $nextTick: typeof import("vue").nextTick;
550
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
540
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
551
541
  } & Omit<Readonly<import("vue").ExtractPropTypes<{
552
542
  id: {
553
543
  type: StringConstructor;
554
544
  };
555
545
  size: {
556
- type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
546
+ type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
557
547
  default: string;
558
548
  };
559
549
  focusTrap: {
@@ -591,7 +581,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
591
581
  type: StringConstructor;
592
582
  };
593
583
  buttonSize: {
594
- type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
584
+ type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
595
585
  default: string;
596
586
  };
597
587
  bannerSrc: {
@@ -612,7 +602,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
612
602
  "onDialog:before-unmount"?: (() => any) | undefined;
613
603
  "onDialog:confirm"?: (() => any) | undefined;
614
604
  }, "hide" | "show" | "isOpen" | "focusTrapReturn" | "hasFooterSlots"> & import("vue").ShallowUnwrapRef<{
615
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
605
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
616
606
  hasFooterSlots: import("vue").ComputedRef<boolean>;
617
607
  hide: (options?: {
618
608
  fireHideEvent: boolean;
@@ -621,12 +611,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
621
611
  show: () => Promise<void>;
622
612
  }> & {} & import("vue").ComponentCustomProperties & {} & {
623
613
  $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
- */
614
+ 'dialog-preheader': () => any;
630
615
  'dialog-header': () => any;
631
616
  'dialog-subheader': () => any;
632
617
  'dialog-body': () => any;
@@ -634,12 +619,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
634
619
  'dialog-confirm': () => any;
635
620
  'dialog-indicators': () => any;
636
621
  }> & {
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
- */
622
+ 'dialog-preheader': () => any;
643
623
  'dialog-header': () => any;
644
624
  'dialog-subheader': () => any;
645
625
  'dialog-body': () => any;
@@ -658,8 +638,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
658
638
  default(): any;
659
639
  }>;
660
640
  export default _default;
641
+ type __VLS_WithTemplateSlots<T, S> = T & {
642
+ new (): {
643
+ $slots: S;
644
+ };
645
+ };
661
646
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
662
- type __VLS_TypePropsToRuntimeProps<T> = {
647
+ type __VLS_TypePropsToOption<T> = {
663
648
  [K in keyof T]-?: {} extends Pick<T, K> ? {
664
649
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
665
650
  } : {
@@ -667,8 +652,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
667
652
  required: true;
668
653
  };
669
654
  };
670
- type __VLS_WithTemplateSlots<T, S> = T & {
671
- new (): {
672
- $slots: S;
673
- };
674
- };
@@ -68,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
68
68
  type: PropType<() => boolean | Promise<boolean>>;
69
69
  };
70
70
  }, {
71
- focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
71
+ focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
72
72
  hasFooterSlots: import("vue").ComputedRef<boolean>;
73
73
  hide: typeof hide;
74
74
  isOpen: import("vue").Ref<boolean>;