@maltjoy/core-vue 3.31.0-next → 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 (45) 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/JoyCollapse/VJoyCollapse.vue.d.ts +19 -0
  6. package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +15 -0
  7. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +11 -0
  8. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +7 -7
  9. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +1 -1
  10. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +42 -62
  11. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +1 -1
  12. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +42 -62
  13. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +5 -5
  14. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +2 -2
  15. package/dist/components/JoyDropzone/VJoyDropzone.vue.d.ts +12 -9
  16. package/dist/components/JoyDropzone/VJoyDropzoneFileItem.vue.d.ts +9 -6
  17. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
  18. package/dist/components/JoyInput/VJoyInput.vue.d.ts +4 -4
  19. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +1 -1
  20. package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +18 -18
  21. package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +8 -8
  22. package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +12 -12
  23. package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +14 -14
  24. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
  25. package/dist/components/JoySelect/VJoySelect.vue.d.ts +2 -2
  26. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +4 -3
  27. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +1 -1
  28. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +7 -7
  29. package/dist/components/JoyTag/VJoyTag.vue.d.ts +12 -12
  30. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +18 -18
  31. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +3 -3
  32. package/dist/components/JoyText/VJoyText.vue.d.ts +3 -3
  33. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
  34. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
  35. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +1 -1
  36. package/dist/components.cjs +1 -1
  37. package/dist/components.js +2 -2
  38. package/dist/main.cjs +1 -1
  39. package/dist/main.js +2 -2
  40. package/dist/style-359_sDCG.cjs +16 -0
  41. package/dist/{style-BeFMqd8A.js → style-C0tnLvqq.js} +915 -887
  42. package/dist/style.css +1 -1
  43. package/package.json +29 -28
  44. package/LICENSE +0 -21
  45. package/dist/style-WXyWlWuE.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;
@@ -31,6 +31,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
31
31
  type: StringConstructor;
32
32
  required: true;
33
33
  };
34
+ subheader: {
35
+ type: StringConstructor;
36
+ };
34
37
  open: {
35
38
  type: BooleanConstructor;
36
39
  default: boolean;
@@ -56,6 +59,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
56
59
  readonly open: boolean;
57
60
  readonly mode: "default" | "outline";
58
61
  readonly id?: string | undefined;
62
+ readonly subheader?: string | undefined;
59
63
  readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
60
64
  };
61
65
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -66,6 +70,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
66
70
  type: StringConstructor;
67
71
  required: true;
68
72
  };
73
+ subheader: {
74
+ type: StringConstructor;
75
+ };
69
76
  open: {
70
77
  type: BooleanConstructor;
71
78
  default: boolean;
@@ -98,6 +105,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
98
105
  type: StringConstructor;
99
106
  required: true;
100
107
  };
108
+ subheader: {
109
+ type: StringConstructor;
110
+ };
101
111
  open: {
102
112
  type: BooleanConstructor;
103
113
  default: boolean;
@@ -123,6 +133,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
123
133
  readonly open: boolean;
124
134
  readonly mode: "default" | "outline";
125
135
  readonly id?: string | undefined;
136
+ readonly subheader?: string | undefined;
126
137
  readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
127
138
  };
128
139
  }, {}, {}, {}, {
@@ -137,6 +148,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
137
148
  type: StringConstructor;
138
149
  required: true;
139
150
  };
151
+ subheader: {
152
+ type: StringConstructor;
153
+ };
140
154
  open: {
141
155
  type: BooleanConstructor;
142
156
  default: boolean;
@@ -162,6 +176,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
162
176
  readonly open: boolean;
163
177
  readonly mode: "default" | "outline";
164
178
  readonly id?: string | undefined;
179
+ readonly subheader?: string | undefined;
165
180
  readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
166
181
  };
167
182
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -174,9 +189,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
174
189
  $slots: Readonly<{
175
190
  default(): any;
176
191
  'collapse-header-right'?: (() => any) | undefined;
192
+ 'collapse-subheader'?: (() => any) | undefined;
193
+ 'collapse-preview'?: (() => any) | undefined;
177
194
  }> & {
178
195
  default(): any;
179
196
  'collapse-header-right'?: (() => any) | undefined;
197
+ 'collapse-subheader'?: (() => any) | undefined;
198
+ 'collapse-preview'?: (() => any) | undefined;
180
199
  };
181
200
  }))[]>;
182
201
  openedCollapseItem: import("vue").Ref<string[]>;
@@ -6,6 +6,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
6
6
  type: StringConstructor;
7
7
  required: true;
8
8
  };
9
+ subheader: {
10
+ type: StringConstructor;
11
+ };
9
12
  open: {
10
13
  type: BooleanConstructor;
11
14
  default: boolean;
@@ -32,6 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
32
35
  readonly open: boolean;
33
36
  readonly mode: "default" | "outline";
34
37
  readonly id?: string | undefined;
38
+ readonly subheader?: string | undefined;
35
39
  readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
36
40
  };
37
41
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -43,6 +47,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
43
47
  type: StringConstructor;
44
48
  required: true;
45
49
  };
50
+ subheader: {
51
+ type: StringConstructor;
52
+ };
46
53
  open: {
47
54
  type: BooleanConstructor;
48
55
  default: boolean;
@@ -72,11 +79,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
72
79
  default(): any;
73
80
  /** Inject the content you need on the right side, between the header/title and the arrow */
74
81
  'collapse-header-right'?: (() => any) | undefined;
82
+ /** Not mandatory */
83
+ 'collapse-subheader'?: (() => any) | undefined;
84
+ /** If you need to inject a small snippet of what includes the collapse, you can use this slot */
85
+ 'collapse-preview'?: (() => any) | undefined;
75
86
  }> & {
76
87
  /** Main content, hidden by default */
77
88
  default(): any;
78
89
  /** Inject the content you need on the right side, between the header/title and the arrow */
79
90
  'collapse-header-right'?: (() => any) | undefined;
91
+ /** Not mandatory */
92
+ 'collapse-subheader'?: (() => any) | undefined;
93
+ /** If you need to inject a small snippet of what includes the collapse, you can use this slot */
94
+ 'collapse-preview'?: (() => any) | undefined;
80
95
  }>;
81
96
  export default _default;
82
97
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -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>;