@maltjoy/core-vue 4.1.0 → 4.2.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.
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +8 -27
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +16 -67
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +15 -63
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +1 -1
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +1 -1
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +13 -3
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +30 -10
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +11 -1
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +28 -8
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +2 -2
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +3 -3
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +14 -60
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +0 -9
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +7 -37
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +13 -37
- package/dist/components/JoyText/VJoyText.vue.d.ts +3 -3
- package/dist/components.cjs +1 -1
- package/dist/components.js +2 -2
- package/dist/joy-core-vue-manifest.json +79 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +2 -2
- package/dist/style-C6WDB8oM.cjs +12 -0
- package/dist/style-DGXw70Nw.js +7619 -0
- package/dist/style.css +1 -1
- package/package.json +42 -40
- package/LICENSE +0 -21
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +0 -281
- package/dist/style-BLnk5g0D.js +0 -8353
- package/dist/style-Dy-ra_YN.cjs +0 -18
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Partial availabilty. Not 5 days/week cases
|
|
12
|
-
*/
|
|
13
|
-
isPartial: BooleanConstructor;
|
|
14
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
-
/** Don't fill it and you'll only have the colored dot */
|
|
16
|
-
label: StringConstructor;
|
|
17
|
-
status: {
|
|
18
|
-
type: PropType<TJoyAvailabilityStatus>;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Partial availabilty. Not 5 days/week cases
|
|
23
|
-
*/
|
|
24
|
-
isPartial: BooleanConstructor;
|
|
25
|
-
}>> & Readonly<{}>, {
|
|
1
|
+
import type { TJoyAvailabilityStatus } from './JoyAvailability.types';
|
|
2
|
+
interface AvailabilityProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
status?: TJoyAvailabilityStatus;
|
|
5
|
+
isPartial?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<AvailabilityProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvailabilityProps> & Readonly<{}>, {
|
|
26
8
|
status: TJoyAvailabilityStatus;
|
|
27
|
-
|
|
28
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
10
|
export default _default;
|
|
@@ -1,86 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** 3 different sizes of avatar */
|
|
5
|
-
size: {
|
|
6
|
-
type: PropType<TJoyAvatarSizes>;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
1
|
+
import { AvatarColors, TJoyAvatarSizes } from './JoyAvatar.types';
|
|
2
|
+
interface AvatarProps {
|
|
3
|
+
size?: TJoyAvatarSizes;
|
|
9
4
|
/** Only visible if you apply a fullName but not any photoUrl. */
|
|
10
|
-
color
|
|
11
|
-
type: PropType<import("./JoyAvatar.types").FreelancerAvatarColors | "transparent">;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
5
|
+
color?: AvatarColors['freelancer'];
|
|
14
6
|
/** Display the initials based on Firstname and Lastname */
|
|
15
|
-
fullName
|
|
7
|
+
fullName?: string;
|
|
16
8
|
/** Pass a photo URL that will be displayed over the fullname */
|
|
17
|
-
photoUrl
|
|
9
|
+
photoUrl?: string;
|
|
18
10
|
/** In a big avatar list, you may have to say "there are still XYZ more avatars". Use this to display the amount. */
|
|
19
|
-
totalNumber
|
|
11
|
+
totalNumber?: number;
|
|
20
12
|
/** No functional purpose here. Only style. You need to trigger router change manually, depending on the framework you use. */
|
|
21
|
-
link
|
|
13
|
+
link?: boolean;
|
|
22
14
|
/** Use it to display "strategy" tag. */
|
|
23
|
-
profile
|
|
24
|
-
type: PropType<"default" | "strategy">;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
15
|
+
profile?: 'strategy' | 'default';
|
|
27
16
|
/** Only applied if you set a photoUrl */
|
|
28
|
-
loading
|
|
29
|
-
type: PropType<"lazy" | "eager">;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
17
|
+
loading?: HTMLImageElement['loading'];
|
|
32
18
|
/** Basic state with no information */
|
|
33
|
-
isEmpty
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
}>, {
|
|
19
|
+
isEmpty?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import("vue").DefineComponent<AvatarProps, {
|
|
38
22
|
isAnonymous: import("vue").ComputedRef<boolean>;
|
|
39
23
|
initials: import("vue").ComputedRef<string>;
|
|
40
24
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
41
25
|
click: () => any;
|
|
42
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
43
|
-
/** 3 different sizes of avatar */
|
|
44
|
-
size: {
|
|
45
|
-
type: PropType<TJoyAvatarSizes>;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
/** Only visible if you apply a fullName but not any photoUrl. */
|
|
49
|
-
color: {
|
|
50
|
-
type: PropType<import("./JoyAvatar.types").FreelancerAvatarColors | "transparent">;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
/** Display the initials based on Firstname and Lastname */
|
|
54
|
-
fullName: StringConstructor;
|
|
55
|
-
/** Pass a photo URL that will be displayed over the fullname */
|
|
56
|
-
photoUrl: StringConstructor;
|
|
57
|
-
/** In a big avatar list, you may have to say "there are still XYZ more avatars". Use this to display the amount. */
|
|
58
|
-
totalNumber: NumberConstructor;
|
|
59
|
-
/** No functional purpose here. Only style. You need to trigger router change manually, depending on the framework you use. */
|
|
60
|
-
link: BooleanConstructor;
|
|
61
|
-
/** Use it to display "strategy" tag. */
|
|
62
|
-
profile: {
|
|
63
|
-
type: PropType<"default" | "strategy">;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
/** Only applied if you set a photoUrl */
|
|
67
|
-
loading: {
|
|
68
|
-
type: PropType<"lazy" | "eager">;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
/** Basic state with no information */
|
|
72
|
-
isEmpty: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
}>> & Readonly<{
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{
|
|
77
27
|
onClick?: (() => any) | undefined;
|
|
78
28
|
}>, {
|
|
79
|
-
link: boolean;
|
|
80
|
-
loading: "lazy" | "eager";
|
|
81
29
|
size: TJoyAvatarSizes;
|
|
82
30
|
color: import("./JoyAvatar.types").FreelancerAvatarColors | "transparent";
|
|
83
31
|
profile: "default" | "strategy";
|
|
32
|
+
loading: "lazy" | "eager";
|
|
84
33
|
isEmpty: boolean;
|
|
85
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
86
35
|
export default _default;
|
|
@@ -1,84 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TeleportProps } from 'vue';
|
|
2
|
+
interface BottomSheetProps {
|
|
3
|
+
/**
|
|
4
|
+
* Label injected in the default CTA
|
|
5
|
+
*/
|
|
6
|
+
closeLabel?: string;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
preventBodyScroll?: boolean;
|
|
9
|
+
teleport?: TeleportProps['to'];
|
|
10
|
+
frozen?: boolean;
|
|
11
|
+
}
|
|
2
12
|
/**
|
|
3
13
|
* @returns {void}
|
|
4
14
|
*/
|
|
5
15
|
declare function show(): void;
|
|
6
16
|
declare function hide(): void;
|
|
7
17
|
declare function moveContainer(translationY: number): void;
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
9
|
-
/** Automatically renders a CTA that closes the bottom-sheet */
|
|
10
|
-
closeLabel: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
open: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Mostly for documentation purpose
|
|
20
|
-
*/
|
|
21
|
-
preventBodyScroll: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
/** By default the bottom-sheet is teleported to the end of body tag */
|
|
26
|
-
teleport: {
|
|
27
|
-
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Only used for documentation purpose
|
|
32
|
-
*/
|
|
33
|
-
frozen: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
};
|
|
37
|
-
}>, {
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<BottomSheetProps, {
|
|
38
19
|
hide: typeof hide;
|
|
39
20
|
show: typeof show;
|
|
40
21
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
41
22
|
moveContainer: typeof moveContainer;
|
|
42
23
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
43
24
|
"bottom-sheet:close": () => any;
|
|
44
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
45
|
-
/** Automatically renders a CTA that closes the bottom-sheet */
|
|
46
|
-
closeLabel: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
open: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Mostly for documentation purpose
|
|
56
|
-
*/
|
|
57
|
-
preventBodyScroll: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
/** By default the bottom-sheet is teleported to the end of body tag */
|
|
62
|
-
teleport: {
|
|
63
|
-
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Only used for documentation purpose
|
|
68
|
-
*/
|
|
69
|
-
frozen: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
}>> & Readonly<{
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<BottomSheetProps> & Readonly<{
|
|
74
26
|
"onBottom-sheet:close"?: (() => any) | undefined;
|
|
75
27
|
}>, {
|
|
76
28
|
closeLabel: string;
|
|
77
29
|
open: boolean;
|
|
78
30
|
preventBodyScroll: boolean;
|
|
79
|
-
teleport: string | import("vue").RendererElement | null
|
|
31
|
+
teleport: string | import("vue").RendererElement | null;
|
|
80
32
|
frozen: boolean;
|
|
81
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
82
34
|
/** Main content of the component */
|
|
83
35
|
'bottom-sheet-content': () => any;
|
|
84
36
|
/** Put whatever type of CTA you need here */
|
|
@@ -88,8 +88,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
88
88
|
};
|
|
89
89
|
}>> & Readonly<{}>, {
|
|
90
90
|
circle: boolean;
|
|
91
|
-
loading: boolean;
|
|
92
91
|
size: TJoyButtonSizes;
|
|
92
|
+
loading: boolean;
|
|
93
93
|
variant: TJoyButtonVariants;
|
|
94
94
|
iconPosition: import("../../types/index.js").TPositions;
|
|
95
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
default: string;
|
|
34
34
|
};
|
|
35
35
|
}>> & Readonly<{}>, {
|
|
36
|
-
loading: "lazy" | "eager";
|
|
37
36
|
size: TJoyCompanyAvatarSizes;
|
|
37
|
+
loading: "lazy" | "eager";
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
39
|
export default _default;
|
|
@@ -28,12 +28,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Mostly for documentation purpose
|
|
32
32
|
*/
|
|
33
33
|
preventBodyScroll: {
|
|
34
34
|
type: BooleanConstructor;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
+
/** Mostly for documentation purpose, it prevents the component from being hidden */
|
|
38
|
+
demoMode: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
37
42
|
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
38
43
|
closeLabel: {
|
|
39
44
|
type: StringConstructor;
|
|
@@ -78,7 +83,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
78
83
|
default: number;
|
|
79
84
|
};
|
|
80
85
|
}>, {
|
|
81
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
82
86
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
83
87
|
hide: typeof hide;
|
|
84
88
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
@@ -113,12 +117,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
113
117
|
default: boolean;
|
|
114
118
|
};
|
|
115
119
|
/**
|
|
116
|
-
*
|
|
120
|
+
* Mostly for documentation purpose
|
|
117
121
|
*/
|
|
118
122
|
preventBodyScroll: {
|
|
119
123
|
type: BooleanConstructor;
|
|
120
124
|
default: boolean;
|
|
121
125
|
};
|
|
126
|
+
/** Mostly for documentation purpose, it prevents the component from being hidden */
|
|
127
|
+
demoMode: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
122
131
|
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
123
132
|
closeLabel: {
|
|
124
133
|
type: StringConstructor;
|
|
@@ -176,6 +185,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
176
185
|
preventBodyScroll: boolean;
|
|
177
186
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
178
187
|
focusTrap: boolean;
|
|
188
|
+
demoMode: boolean;
|
|
179
189
|
patternConfirm: boolean;
|
|
180
190
|
patternBrand: boolean;
|
|
181
191
|
buttonSize: TJoyButtonSizes;
|
|
@@ -10,6 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
preventBodyScroll: boolean;
|
|
11
11
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
12
12
|
focusTrap: boolean;
|
|
13
|
+
demoMode: boolean;
|
|
13
14
|
patternConfirm: boolean;
|
|
14
15
|
patternBrand: boolean;
|
|
15
16
|
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -21,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
22
|
readonly preventBodyScroll: boolean;
|
|
22
23
|
readonly teleport: string | import("vue").RendererElement | null | undefined;
|
|
23
24
|
readonly focusTrap: boolean;
|
|
25
|
+
readonly demoMode: boolean;
|
|
24
26
|
readonly patternConfirm: boolean;
|
|
25
27
|
readonly patternBrand: boolean;
|
|
26
28
|
readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -36,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
38
|
readonly "onDialog:after-hide"?: (() => any) | undefined;
|
|
37
39
|
readonly "onDialog:before-unmount"?: (() => any) | undefined;
|
|
38
40
|
readonly "onDialog:confirm"?: (() => any) | undefined;
|
|
39
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "focusTrap" | "patternConfirm" | "patternBrand" | "buttonSize" | "bannerHeight">;
|
|
41
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "focusTrap" | "demoMode" | "patternConfirm" | "patternBrand" | "buttonSize" | "bannerHeight">;
|
|
40
42
|
$attrs: {
|
|
41
43
|
[x: string]: unknown;
|
|
42
44
|
};
|
|
@@ -75,6 +77,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
77
|
type: BooleanConstructor;
|
|
76
78
|
default: boolean;
|
|
77
79
|
};
|
|
80
|
+
demoMode: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
78
84
|
closeLabel: {
|
|
79
85
|
type: StringConstructor;
|
|
80
86
|
default: string;
|
|
@@ -115,7 +121,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
115
121
|
"onDialog:before-unmount"?: (() => any) | undefined;
|
|
116
122
|
"onDialog:confirm"?: (() => any) | undefined;
|
|
117
123
|
}>, {
|
|
118
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
119
124
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
120
125
|
hide: (options?: {
|
|
121
126
|
fireHideEvent: boolean;
|
|
@@ -136,6 +141,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
136
141
|
preventBodyScroll: boolean;
|
|
137
142
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
138
143
|
focusTrap: boolean;
|
|
144
|
+
demoMode: boolean;
|
|
139
145
|
patternConfirm: boolean;
|
|
140
146
|
patternBrand: boolean;
|
|
141
147
|
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -167,6 +173,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
167
173
|
preventBodyScroll: boolean;
|
|
168
174
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
169
175
|
focusTrap: boolean;
|
|
176
|
+
demoMode: boolean;
|
|
170
177
|
patternConfirm: boolean;
|
|
171
178
|
patternBrand: boolean;
|
|
172
179
|
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -195,6 +202,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
195
202
|
type: BooleanConstructor;
|
|
196
203
|
default: boolean;
|
|
197
204
|
};
|
|
205
|
+
demoMode: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
198
209
|
closeLabel: {
|
|
199
210
|
type: StringConstructor;
|
|
200
211
|
default: string;
|
|
@@ -234,8 +245,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
234
245
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
235
246
|
"onDialog:before-unmount"?: (() => any) | undefined;
|
|
236
247
|
"onDialog:confirm"?: (() => any) | undefined;
|
|
237
|
-
}>, "hide" | "show" | "isOpen" | "
|
|
238
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
248
|
+
}>, "hide" | "show" | "isOpen" | "hasFooterSlots" | ("size" | "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "focusTrap" | "demoMode" | "patternConfirm" | "patternBrand" | "buttonSize" | "bannerHeight")> & import("vue").ShallowUnwrapRef<{
|
|
239
249
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
240
250
|
hide: (options?: {
|
|
241
251
|
fireHideEvent: boolean;
|
|
@@ -275,6 +285,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
275
285
|
preventBodyScroll: boolean;
|
|
276
286
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
277
287
|
focusTrap: boolean;
|
|
288
|
+
demoMode: boolean;
|
|
278
289
|
patternConfirm: boolean;
|
|
279
290
|
patternBrand: boolean;
|
|
280
291
|
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -286,6 +297,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
286
297
|
readonly preventBodyScroll: boolean;
|
|
287
298
|
readonly teleport: string | import("vue").RendererElement | null | undefined;
|
|
288
299
|
readonly focusTrap: boolean;
|
|
300
|
+
readonly demoMode: boolean;
|
|
289
301
|
readonly patternConfirm: boolean;
|
|
290
302
|
readonly patternBrand: boolean;
|
|
291
303
|
readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -301,7 +313,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
301
313
|
readonly "onDialog:after-hide"?: (() => any) | undefined;
|
|
302
314
|
readonly "onDialog:before-unmount"?: (() => any) | undefined;
|
|
303
315
|
readonly "onDialog:confirm"?: (() => any) | undefined;
|
|
304
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "focusTrap" | "patternConfirm" | "patternBrand" | "buttonSize" | "bannerHeight">;
|
|
316
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "focusTrap" | "demoMode" | "patternConfirm" | "patternBrand" | "buttonSize" | "bannerHeight">;
|
|
305
317
|
$attrs: {
|
|
306
318
|
[x: string]: unknown;
|
|
307
319
|
};
|
|
@@ -340,6 +352,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
340
352
|
type: BooleanConstructor;
|
|
341
353
|
default: boolean;
|
|
342
354
|
};
|
|
355
|
+
demoMode: {
|
|
356
|
+
type: BooleanConstructor;
|
|
357
|
+
default: boolean;
|
|
358
|
+
};
|
|
343
359
|
closeLabel: {
|
|
344
360
|
type: StringConstructor;
|
|
345
361
|
default: string;
|
|
@@ -380,7 +396,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
380
396
|
"onDialog:before-unmount"?: (() => any) | undefined;
|
|
381
397
|
"onDialog:confirm"?: (() => any) | undefined;
|
|
382
398
|
}>, {
|
|
383
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
384
399
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
385
400
|
hide: (options?: {
|
|
386
401
|
fireHideEvent: boolean;
|
|
@@ -401,6 +416,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
401
416
|
preventBodyScroll: boolean;
|
|
402
417
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
403
418
|
focusTrap: boolean;
|
|
419
|
+
demoMode: boolean;
|
|
404
420
|
patternConfirm: boolean;
|
|
405
421
|
patternBrand: boolean;
|
|
406
422
|
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -432,6 +448,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
432
448
|
preventBodyScroll: boolean;
|
|
433
449
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
434
450
|
focusTrap: boolean;
|
|
451
|
+
demoMode: boolean;
|
|
435
452
|
patternConfirm: boolean;
|
|
436
453
|
patternBrand: boolean;
|
|
437
454
|
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
@@ -460,6 +477,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
460
477
|
type: BooleanConstructor;
|
|
461
478
|
default: boolean;
|
|
462
479
|
};
|
|
480
|
+
demoMode: {
|
|
481
|
+
type: BooleanConstructor;
|
|
482
|
+
default: boolean;
|
|
483
|
+
};
|
|
463
484
|
closeLabel: {
|
|
464
485
|
type: StringConstructor;
|
|
465
486
|
default: string;
|
|
@@ -499,8 +520,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
499
520
|
"onDialog:after-hide"?: (() => any) | undefined;
|
|
500
521
|
"onDialog:before-unmount"?: (() => any) | undefined;
|
|
501
522
|
"onDialog:confirm"?: (() => any) | undefined;
|
|
502
|
-
}>, "hide" | "show" | "isOpen" | "
|
|
503
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
523
|
+
}>, "hide" | "show" | "isOpen" | "hasFooterSlots" | ("size" | "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "focusTrap" | "demoMode" | "patternConfirm" | "patternBrand" | "buttonSize" | "bannerHeight")> & import("vue").ShallowUnwrapRef<{
|
|
504
524
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
505
525
|
hide: (options?: {
|
|
506
526
|
fireHideEvent: boolean;
|
|
@@ -529,10 +549,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
529
549
|
}> & Readonly<{
|
|
530
550
|
onClick?: (() => any) | undefined;
|
|
531
551
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
532
|
-
/** Default slot where you can render anything you need. */
|
|
552
|
+
/** Default slot where you can render anything you need. Most of the time we use a `VJoyButton` here. */
|
|
533
553
|
default(): any;
|
|
534
554
|
}> & {
|
|
535
|
-
/** Default slot where you can render anything you need. */
|
|
555
|
+
/** Default slot where you can render anything you need. Most of the time we use a `VJoyButton` here. */
|
|
536
556
|
default(): any;
|
|
537
557
|
}>;
|
|
538
558
|
export default _default;
|
|
@@ -45,6 +45,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
|
+
/** Mostly for documentation purpose, it prevents the component from being hidden */
|
|
49
|
+
demoMode: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
48
53
|
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
49
54
|
closeLabel: {
|
|
50
55
|
type: StringConstructor;
|
|
@@ -68,7 +73,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
68
73
|
type: PropType<() => boolean | Promise<boolean>>;
|
|
69
74
|
};
|
|
70
75
|
}>, {
|
|
71
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
72
76
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
73
77
|
hide: typeof hide;
|
|
74
78
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
@@ -114,6 +118,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
114
118
|
type: BooleanConstructor;
|
|
115
119
|
default: boolean;
|
|
116
120
|
};
|
|
121
|
+
/** Mostly for documentation purpose, it prevents the component from being hidden */
|
|
122
|
+
demoMode: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
117
126
|
/** **For accessibility purpose**. Label associated with the top right corner icon. */
|
|
118
127
|
closeLabel: {
|
|
119
128
|
type: StringConstructor;
|
|
@@ -150,6 +159,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
150
159
|
preventBodyScroll: boolean;
|
|
151
160
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
152
161
|
focusTrap: boolean;
|
|
162
|
+
demoMode: boolean;
|
|
153
163
|
buttonSize: TJoyButtonSizes;
|
|
154
164
|
elevated: boolean;
|
|
155
165
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|