@maltjoy/core-vue 3.18.0 → 3.19.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.
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +84 -0
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +335 -0
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +235 -0
- package/dist/components/JoyCollapseItem/JoyCollapseItem.types.d.ts +3 -0
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +59 -0
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +2 -2
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +22 -8
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +40 -20
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +2 -0
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +144 -0
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +455 -0
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +2 -2
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +2 -2
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +1 -1
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +1 -1
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +2 -2
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +1 -1
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
- package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +1 -1
- package/dist/components/components.types.d.ts +1 -1
- package/dist/components/index.d.ts +7 -1
- package/dist/joy-vue.js +2993 -2432
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/joy-components.d.ts +6 -0
- package/package.json +7 -5
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +0 -5
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare function onToggle(): void;
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
header: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
open: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
summaryIcon: {
|
|
13
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
|
+
};
|
|
15
|
+
id: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
isOpen: import("vue").Ref<boolean>;
|
|
20
|
+
onToggle: typeof onToggle;
|
|
21
|
+
props: {
|
|
22
|
+
readonly header: string;
|
|
23
|
+
readonly open: boolean;
|
|
24
|
+
readonly id?: string | undefined;
|
|
25
|
+
readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
26
|
+
};
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"collapse-item:open": () => void;
|
|
29
|
+
"collapse-item:close": () => void;
|
|
30
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
header: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
open: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
summaryIcon: {
|
|
40
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
41
|
+
};
|
|
42
|
+
id: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
}>> & {
|
|
46
|
+
"onCollapse-item:open"?: (() => any) | undefined;
|
|
47
|
+
"onCollapse-item:close"?: (() => any) | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
open: boolean;
|
|
50
|
+
}, {}>, Readonly<{
|
|
51
|
+
default: () => any;
|
|
52
|
+
'collapse-header-right'?: (() => any) | undefined;
|
|
53
|
+
}>>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -66,10 +66,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
66
66
|
readonly required: boolean;
|
|
67
67
|
readonly disabled: boolean;
|
|
68
68
|
readonly invalid: boolean;
|
|
69
|
+
readonly modelValue: number;
|
|
69
70
|
readonly labelSize: "small" | "large" | "medium";
|
|
70
71
|
readonly requiredMark: boolean;
|
|
71
72
|
readonly min: number;
|
|
72
|
-
readonly modelValue: number;
|
|
73
73
|
readonly step: number;
|
|
74
74
|
readonly label?: string | undefined;
|
|
75
75
|
readonly name?: string | undefined;
|
|
@@ -150,10 +150,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
150
150
|
required: boolean;
|
|
151
151
|
disabled: boolean;
|
|
152
152
|
invalid: boolean;
|
|
153
|
+
modelValue: number;
|
|
153
154
|
labelSize: "small" | "large" | "medium";
|
|
154
155
|
requiredMark: boolean;
|
|
155
156
|
min: number;
|
|
156
|
-
modelValue: number;
|
|
157
157
|
step: number;
|
|
158
158
|
}, {}>, {
|
|
159
159
|
default?(_: {}): any;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
|
|
3
|
-
|
|
4
|
-
declare function
|
|
5
|
-
declare function openOverlay(options?: IDialogOpenOption): Promise<void>;
|
|
3
|
+
declare function hide(): Promise<void>;
|
|
4
|
+
declare function show(): Promise<void>;
|
|
6
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
6
|
/** By default a focus-trap is activated. It means you can loop over all interactive elements within the open dialog. */
|
|
8
7
|
focusTrap: {
|
|
@@ -18,6 +17,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
17
|
type: BooleanConstructor;
|
|
19
18
|
default: boolean;
|
|
20
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal - Mostly for documentation purpose
|
|
22
|
+
*/
|
|
23
|
+
preventBodyScroll: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
21
27
|
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
22
28
|
closeLabel: {
|
|
23
29
|
type: StringConstructor;
|
|
@@ -55,9 +61,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
61
|
default: number;
|
|
56
62
|
};
|
|
57
63
|
}, {
|
|
58
|
-
|
|
64
|
+
show: typeof show;
|
|
59
65
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
60
|
-
|
|
66
|
+
hide: typeof hide;
|
|
61
67
|
isOpen: import("vue").Ref<boolean>;
|
|
62
68
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
69
|
"dialog:open": () => void;
|
|
@@ -79,6 +85,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
79
85
|
type: BooleanConstructor;
|
|
80
86
|
default: boolean;
|
|
81
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* @internal - Mostly for documentation purpose
|
|
90
|
+
*/
|
|
91
|
+
preventBodyScroll: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
82
95
|
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
83
96
|
closeLabel: {
|
|
84
97
|
type: StringConstructor;
|
|
@@ -121,10 +134,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
121
134
|
"onDialog:hide"?: (() => any) | undefined;
|
|
122
135
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
123
136
|
}, {
|
|
124
|
-
focusTrap: boolean;
|
|
125
|
-
teleport: string | import("vue").RendererElement | null | undefined;
|
|
126
|
-
open: boolean;
|
|
127
137
|
closeLabel: string;
|
|
138
|
+
open: boolean;
|
|
139
|
+
preventBodyScroll: boolean;
|
|
140
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
141
|
+
focusTrap: boolean;
|
|
128
142
|
patternConfirm: boolean;
|
|
129
143
|
buttonSize: TJoyButtonSizes;
|
|
130
144
|
bannerHeight: number;
|
|
@@ -5,10 +5,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
5
5
|
$: import("vue").ComponentInternalInstance;
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: {
|
|
8
|
-
focusTrap?: boolean | undefined;
|
|
9
|
-
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
10
|
-
open?: boolean | undefined;
|
|
11
8
|
closeLabel?: string | undefined;
|
|
9
|
+
open?: boolean | undefined;
|
|
10
|
+
preventBodyScroll?: boolean | undefined;
|
|
11
|
+
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
12
|
+
focusTrap?: boolean | undefined;
|
|
12
13
|
patternConfirm?: boolean | undefined;
|
|
13
14
|
buttonSize?: import("../components.types").TJoyButtonSizes | undefined;
|
|
14
15
|
bannerHeight?: number | undefined;
|
|
@@ -91,6 +92,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
91
92
|
type: BooleanConstructor;
|
|
92
93
|
default: boolean;
|
|
93
94
|
};
|
|
95
|
+
preventBodyScroll: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
94
99
|
closeLabel: {
|
|
95
100
|
type: StringConstructor;
|
|
96
101
|
default: string;
|
|
@@ -125,9 +130,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
125
130
|
"onDialog:hide"?: (() => any) | undefined;
|
|
126
131
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
127
132
|
}, {
|
|
128
|
-
|
|
133
|
+
show: () => Promise<void>;
|
|
129
134
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
130
|
-
|
|
135
|
+
hide: () => Promise<void>;
|
|
131
136
|
isOpen: import("vue").Ref<boolean>;
|
|
132
137
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
133
138
|
"dialog:open": () => void;
|
|
@@ -135,10 +140,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
135
140
|
"dialog:hide": () => void;
|
|
136
141
|
"dialog:after-hide": () => void;
|
|
137
142
|
}, string, {
|
|
138
|
-
focusTrap: boolean;
|
|
139
|
-
teleport: string | import("vue").RendererElement | null | undefined;
|
|
140
|
-
open: boolean;
|
|
141
143
|
closeLabel: string;
|
|
144
|
+
open: boolean;
|
|
145
|
+
preventBodyScroll: boolean;
|
|
146
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
147
|
+
focusTrap: boolean;
|
|
142
148
|
patternConfirm: boolean;
|
|
143
149
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
144
150
|
bannerHeight: number;
|
|
@@ -175,6 +181,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
175
181
|
type: BooleanConstructor;
|
|
176
182
|
default: boolean;
|
|
177
183
|
};
|
|
184
|
+
preventBodyScroll: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
178
188
|
closeLabel: {
|
|
179
189
|
type: StringConstructor;
|
|
180
190
|
default: string;
|
|
@@ -209,9 +219,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
209
219
|
"onDialog:hide"?: (() => any) | undefined;
|
|
210
220
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
211
221
|
} & import("vue").ShallowUnwrapRef<{
|
|
212
|
-
|
|
222
|
+
show: () => Promise<void>;
|
|
213
223
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
214
|
-
|
|
224
|
+
hide: () => Promise<void>;
|
|
215
225
|
isOpen: import("vue").Ref<boolean>;
|
|
216
226
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
217
227
|
$slots: {
|
|
@@ -231,10 +241,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
231
241
|
$: import("vue").ComponentInternalInstance;
|
|
232
242
|
$data: {};
|
|
233
243
|
$props: {
|
|
234
|
-
focusTrap?: boolean | undefined;
|
|
235
|
-
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
236
|
-
open?: boolean | undefined;
|
|
237
244
|
closeLabel?: string | undefined;
|
|
245
|
+
open?: boolean | undefined;
|
|
246
|
+
preventBodyScroll?: boolean | undefined;
|
|
247
|
+
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
248
|
+
focusTrap?: boolean | undefined;
|
|
238
249
|
patternConfirm?: boolean | undefined;
|
|
239
250
|
buttonSize?: import("../components.types").TJoyButtonSizes | undefined;
|
|
240
251
|
bannerHeight?: number | undefined;
|
|
@@ -317,6 +328,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
317
328
|
type: BooleanConstructor;
|
|
318
329
|
default: boolean;
|
|
319
330
|
};
|
|
331
|
+
preventBodyScroll: {
|
|
332
|
+
type: BooleanConstructor;
|
|
333
|
+
default: boolean;
|
|
334
|
+
};
|
|
320
335
|
closeLabel: {
|
|
321
336
|
type: StringConstructor;
|
|
322
337
|
default: string;
|
|
@@ -351,9 +366,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
351
366
|
"onDialog:hide"?: (() => any) | undefined;
|
|
352
367
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
353
368
|
}, {
|
|
354
|
-
|
|
369
|
+
show: () => Promise<void>;
|
|
355
370
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
356
|
-
|
|
371
|
+
hide: () => Promise<void>;
|
|
357
372
|
isOpen: import("vue").Ref<boolean>;
|
|
358
373
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
359
374
|
"dialog:open": () => void;
|
|
@@ -361,10 +376,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
361
376
|
"dialog:hide": () => void;
|
|
362
377
|
"dialog:after-hide": () => void;
|
|
363
378
|
}, string, {
|
|
364
|
-
focusTrap: boolean;
|
|
365
|
-
teleport: string | import("vue").RendererElement | null | undefined;
|
|
366
|
-
open: boolean;
|
|
367
379
|
closeLabel: string;
|
|
380
|
+
open: boolean;
|
|
381
|
+
preventBodyScroll: boolean;
|
|
382
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
383
|
+
focusTrap: boolean;
|
|
368
384
|
patternConfirm: boolean;
|
|
369
385
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
370
386
|
bannerHeight: number;
|
|
@@ -401,6 +417,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
401
417
|
type: BooleanConstructor;
|
|
402
418
|
default: boolean;
|
|
403
419
|
};
|
|
420
|
+
preventBodyScroll: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default: boolean;
|
|
423
|
+
};
|
|
404
424
|
closeLabel: {
|
|
405
425
|
type: StringConstructor;
|
|
406
426
|
default: string;
|
|
@@ -435,9 +455,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
435
455
|
"onDialog:hide"?: (() => any) | undefined;
|
|
436
456
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
437
457
|
} & import("vue").ShallowUnwrapRef<{
|
|
438
|
-
|
|
458
|
+
show: () => Promise<void>;
|
|
439
459
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
440
|
-
|
|
460
|
+
hide: () => Promise<void>;
|
|
441
461
|
isOpen: import("vue").Ref<boolean>;
|
|
442
462
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
443
463
|
$slots: {
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
|
|
3
|
+
declare function hide(): Promise<void>;
|
|
4
|
+
/**
|
|
5
|
+
* @param {Object} options -
|
|
6
|
+
* @param {Boolean} options.preventBodyScroll - By default body has an overflow hidden.
|
|
7
|
+
* @param {Boolean} options.focusTrap - By default a focus-trap is activated on the drawer, when opened.
|
|
8
|
+
* @returns {Promise<void>} -
|
|
9
|
+
*/
|
|
10
|
+
declare function show(): Promise<void>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
12
|
+
/** By default a focus-trap is activated. It means you can loop over all interactive elements within the open drawer. */
|
|
13
|
+
focusTrap: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
type: PropType<"default" | "large">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** By default the drawer is teleported to the end of body tag */
|
|
22
|
+
teleport: {
|
|
23
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
open: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** Removes the overlay and allows interacting with background content */
|
|
31
|
+
elevated: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @internal - Mostly for documentation purpose
|
|
37
|
+
*/
|
|
38
|
+
preventBodyScroll: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
43
|
+
closeLabel: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
/** Use this property to directly create a cancel CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
48
|
+
cancelText: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
/** Use this property to directly create a confirm CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
52
|
+
confirmText: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
buttonSize: {
|
|
56
|
+
type: PropType<TJoyButtonSizes>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
61
|
+
hide: typeof hide;
|
|
62
|
+
isOpen: import("vue").Ref<boolean>;
|
|
63
|
+
show: typeof show;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
65
|
+
"drawer:open": () => void;
|
|
66
|
+
"drawer:after-open": () => void;
|
|
67
|
+
"drawer:hide": () => void;
|
|
68
|
+
"drawer:after-hide": () => void;
|
|
69
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
/** By default a focus-trap is activated. It means you can loop over all interactive elements within the open drawer. */
|
|
71
|
+
focusTrap: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
type: PropType<"default" | "large">;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** By default the drawer is teleported to the end of body tag */
|
|
80
|
+
teleport: {
|
|
81
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
open: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
/** Removes the overlay and allows interacting with background content */
|
|
89
|
+
elevated: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* @internal - Mostly for documentation purpose
|
|
95
|
+
*/
|
|
96
|
+
preventBodyScroll: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
101
|
+
closeLabel: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
/** Use this property to directly create a cancel CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
106
|
+
cancelText: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
};
|
|
109
|
+
/** Use this property to directly create a confirm CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
110
|
+
confirmText: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
};
|
|
113
|
+
buttonSize: {
|
|
114
|
+
type: PropType<TJoyButtonSizes>;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
}>> & {
|
|
118
|
+
"onDrawer:open"?: (() => any) | undefined;
|
|
119
|
+
"onDrawer:after-open"?: (() => any) | undefined;
|
|
120
|
+
"onDrawer:hide"?: (() => any) | undefined;
|
|
121
|
+
"onDrawer:after-hide"?: (() => any) | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
size: "default" | "large";
|
|
124
|
+
closeLabel: string;
|
|
125
|
+
open: boolean;
|
|
126
|
+
preventBodyScroll: boolean;
|
|
127
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
128
|
+
focusTrap: boolean;
|
|
129
|
+
buttonSize: TJoyButtonSizes;
|
|
130
|
+
elevated: boolean;
|
|
131
|
+
}, {}>, {
|
|
132
|
+
"drawer-header"?(_: {}): any;
|
|
133
|
+
"drawer-subheader"?(_: {}): any;
|
|
134
|
+
"drawer-body"?(_: {}): any;
|
|
135
|
+
"drawer-cancel"?(_: {}): any;
|
|
136
|
+
"drawer-confirm"?(_: {}): any;
|
|
137
|
+
"drawer-indicators"?(_: {}): any;
|
|
138
|
+
}>;
|
|
139
|
+
export default _default;
|
|
140
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
141
|
+
new (): {
|
|
142
|
+
$slots: S;
|
|
143
|
+
};
|
|
144
|
+
};
|