@maltjoy/core-vue 3.18.0 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/JoyBottomSheet/JoyBottomSheet.types.d.ts +3 -0
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +73 -0
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +322 -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 +3 -3
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +12 -12
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +7 -0
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +124 -0
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +435 -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/components.types.d.ts +2 -0
- package/dist/components/index.d.ts +7 -1
- package/dist/joy-vue.js +2977 -2439
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/joy-components.d.ts +6 -0
- package/package.json +6 -4
|
@@ -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;
|
|
@@ -121,10 +121,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
121
121
|
"onDialog:hide"?: (() => any) | undefined;
|
|
122
122
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
focusTrap: boolean;
|
|
125
|
-
teleport: string | import("vue").RendererElement | null | undefined;
|
|
126
|
-
open: boolean;
|
|
127
124
|
closeLabel: string;
|
|
125
|
+
open: boolean;
|
|
126
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
127
|
+
focusTrap: boolean;
|
|
128
128
|
patternConfirm: boolean;
|
|
129
129
|
buttonSize: TJoyButtonSizes;
|
|
130
130
|
bannerHeight: number;
|
|
@@ -5,10 +5,10 @@ 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
|
+
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
11
|
+
focusTrap?: boolean | undefined;
|
|
12
12
|
patternConfirm?: boolean | undefined;
|
|
13
13
|
buttonSize?: import("../components.types").TJoyButtonSizes | undefined;
|
|
14
14
|
bannerHeight?: number | undefined;
|
|
@@ -135,10 +135,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
135
135
|
"dialog:hide": () => void;
|
|
136
136
|
"dialog:after-hide": () => void;
|
|
137
137
|
}, string, {
|
|
138
|
-
focusTrap: boolean;
|
|
139
|
-
teleport: string | import("vue").RendererElement | null | undefined;
|
|
140
|
-
open: boolean;
|
|
141
138
|
closeLabel: string;
|
|
139
|
+
open: boolean;
|
|
140
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
141
|
+
focusTrap: boolean;
|
|
142
142
|
patternConfirm: boolean;
|
|
143
143
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
144
144
|
bannerHeight: number;
|
|
@@ -231,10 +231,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
231
231
|
$: import("vue").ComponentInternalInstance;
|
|
232
232
|
$data: {};
|
|
233
233
|
$props: {
|
|
234
|
-
focusTrap?: boolean | undefined;
|
|
235
|
-
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
236
|
-
open?: boolean | undefined;
|
|
237
234
|
closeLabel?: string | undefined;
|
|
235
|
+
open?: boolean | undefined;
|
|
236
|
+
teleport?: string | import("vue").RendererElement | null | undefined;
|
|
237
|
+
focusTrap?: boolean | undefined;
|
|
238
238
|
patternConfirm?: boolean | undefined;
|
|
239
239
|
buttonSize?: import("../components.types").TJoyButtonSizes | undefined;
|
|
240
240
|
bannerHeight?: number | undefined;
|
|
@@ -361,10 +361,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
361
361
|
"dialog:hide": () => void;
|
|
362
362
|
"dialog:after-hide": () => void;
|
|
363
363
|
}, string, {
|
|
364
|
-
focusTrap: boolean;
|
|
365
|
-
teleport: string | import("vue").RendererElement | null | undefined;
|
|
366
|
-
open: boolean;
|
|
367
364
|
closeLabel: string;
|
|
365
|
+
open: boolean;
|
|
366
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
367
|
+
focusTrap: boolean;
|
|
368
368
|
patternConfirm: boolean;
|
|
369
369
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
370
370
|
bannerHeight: number;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
|
|
3
|
+
import { IDrawerOpenOption } from './JoyDrawer.types';
|
|
4
|
+
declare function hideOverlay(): Promise<void>;
|
|
5
|
+
declare function openOverlay(options?: IDrawerOpenOption): Promise<void>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
|
+
/** By default a focus-trap is activated. It means you can loop over all interactive elements within the open drawer. */
|
|
8
|
+
focusTrap: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
type: PropType<"default" | "large">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** By default the drawer is teleported to the end of body tag */
|
|
17
|
+
teleport: {
|
|
18
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
open: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** Removes the overlay and allows interacting with background content */
|
|
26
|
+
elevated: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
31
|
+
closeLabel: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
/** Use this property to directly create a cancel CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
36
|
+
cancelText: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
/** Use this property to directly create a confirm CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
40
|
+
confirmText: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
};
|
|
43
|
+
buttonSize: {
|
|
44
|
+
type: PropType<TJoyButtonSizes>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
openOverlay: typeof openOverlay;
|
|
49
|
+
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
50
|
+
hideOverlay: typeof hideOverlay;
|
|
51
|
+
isOpen: import("vue").Ref<boolean>;
|
|
52
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"drawer:open": () => void;
|
|
54
|
+
"drawer:after-open": () => void;
|
|
55
|
+
"drawer:hide": () => void;
|
|
56
|
+
"drawer:after-hide": () => void;
|
|
57
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
/** By default a focus-trap is activated. It means you can loop over all interactive elements within the open drawer. */
|
|
59
|
+
focusTrap: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
size: {
|
|
64
|
+
type: PropType<"default" | "large">;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
/** By default the drawer is teleported to the end of body tag */
|
|
68
|
+
teleport: {
|
|
69
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
open: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/** Removes the overlay and allows interacting with background content */
|
|
77
|
+
elevated: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
82
|
+
closeLabel: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
/** Use this property to directly create a cancel CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
87
|
+
cancelText: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
};
|
|
90
|
+
/** Use this property to directly create a confirm CTA (VJoyButton), if you don't need to customize the CTA. */
|
|
91
|
+
confirmText: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
};
|
|
94
|
+
buttonSize: {
|
|
95
|
+
type: PropType<TJoyButtonSizes>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
}>> & {
|
|
99
|
+
"onDrawer:open"?: (() => any) | undefined;
|
|
100
|
+
"onDrawer:after-open"?: (() => any) | undefined;
|
|
101
|
+
"onDrawer:hide"?: (() => any) | undefined;
|
|
102
|
+
"onDrawer:after-hide"?: (() => any) | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
size: "default" | "large";
|
|
105
|
+
closeLabel: string;
|
|
106
|
+
open: boolean;
|
|
107
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
108
|
+
focusTrap: boolean;
|
|
109
|
+
buttonSize: TJoyButtonSizes;
|
|
110
|
+
elevated: boolean;
|
|
111
|
+
}, {}>, {
|
|
112
|
+
"drawer-header"?(_: {}): any;
|
|
113
|
+
"drawer-subheader"?(_: {}): any;
|
|
114
|
+
"drawer-body"?(_: {}): any;
|
|
115
|
+
"drawer-cancel"?(_: {}): any;
|
|
116
|
+
"drawer-confirm"?(_: {}): any;
|
|
117
|
+
"drawer-indicators"?(_: {}): any;
|
|
118
|
+
}>;
|
|
119
|
+
export default _default;
|
|
120
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|