@maltjoy/core-vue 3.27.2 → 3.28.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/JoyAvailability/JoyAvailability.types.d.ts +1 -2
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +4 -3
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +4 -6
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +14 -4
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +1 -2
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +14 -8
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +8 -4
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +2 -0
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +20 -7
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +20 -14
- package/dist/components/JoyButton/JoyButton.types.d.ts +4 -20
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +14 -7
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +10 -4
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +12 -4
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +2 -3
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +6 -0
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +18 -13
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +31 -9
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +72 -56
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +10 -3
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +1 -2
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +33 -13
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +68 -54
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +31 -24
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +24 -23
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +8 -2
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +10 -2
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +6 -2
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +2 -4
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +8 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +2 -4
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +21 -9
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +3 -4
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +9 -6
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +4 -3
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +1 -2
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +9 -6
- package/dist/components/JoyInput/JoyInput.types.d.ts +2 -3
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +13 -10
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +2 -3
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +10 -7
- package/dist/components/JoyLink/JoyLink.types.d.ts +1 -2
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +8 -7
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +6 -10
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +16 -19
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +14 -6
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +3 -5
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +30 -14
- package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +550 -0
- package/dist/components/JoyProductTour/JoyProductTour.types.d.ts +32 -0
- package/dist/components/JoyProductTour/JoyProductTourSpotlight/VJoyProductTourSpotlight.vue.d.ts +2 -0
- package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +22 -0
- package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +55 -0
- package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +310 -0
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +6 -3
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +21 -8
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -2
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +14 -6
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -3
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +10 -2
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -2
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +14 -6
- package/dist/components/JoySelect/JoySelect.types.d.ts +2 -3
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +11 -6
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +4 -3
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +11 -66
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +2 -3
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +2 -3
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -2
- package/dist/components/JoySnackbar/index.d.ts +1 -1
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -2
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +2 -4
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +14 -2
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +17 -9
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +2 -0
- package/dist/components/JoyTag/JoyTag.types.d.ts +3 -5
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +24 -14
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +52 -37
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -2
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -2
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +67 -15
- package/dist/components/JoyText/VJoyText.vue.d.ts +9 -5
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +7 -6
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +8 -4
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
- package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +97 -0
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +20 -6
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -10
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +19 -18
- package/dist/components/index.d.ts +3 -1
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +4972 -4387
- package/dist/joy-vue.umd.cjs +12 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -10
- package/joy-components.d.ts +2 -0
- package/package.json +22 -27
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLabelSizes } from '@/components/JoyLabel/JoyLabel.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
autofocus: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -27,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
27
28
|
label: StringConstructor;
|
|
28
29
|
/** Overrides the default label size. See JoyLabel stories */
|
|
29
30
|
labelSize: {
|
|
30
|
-
type: PropType<
|
|
31
|
+
type: PropType<TJoyLabelSizes>;
|
|
31
32
|
default: string;
|
|
32
33
|
};
|
|
33
34
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -67,22 +68,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
68
|
};
|
|
68
69
|
}, {
|
|
69
70
|
props: {
|
|
70
|
-
readonly required: boolean;
|
|
71
71
|
readonly disabled: boolean;
|
|
72
|
+
readonly min: number;
|
|
73
|
+
readonly required: boolean;
|
|
74
|
+
readonly step: number;
|
|
72
75
|
readonly invalid: boolean;
|
|
73
76
|
readonly modelValue: number;
|
|
74
77
|
readonly autofocus: boolean;
|
|
75
|
-
readonly labelSize:
|
|
78
|
+
readonly labelSize: TJoyLabelSizes;
|
|
76
79
|
readonly requiredMark: boolean;
|
|
77
|
-
readonly min: number;
|
|
78
|
-
readonly step: number;
|
|
79
80
|
readonly label?: string | undefined;
|
|
80
81
|
readonly name?: string | undefined;
|
|
82
|
+
readonly max?: number | undefined;
|
|
81
83
|
readonly id?: string | undefined;
|
|
82
84
|
readonly optionalLabel?: string | undefined;
|
|
83
85
|
readonly labelDecrement?: string | undefined;
|
|
84
86
|
readonly labelIncrement?: string | undefined;
|
|
85
|
-
readonly max?: number | undefined;
|
|
86
87
|
readonly errorMessage?: string | undefined;
|
|
87
88
|
};
|
|
88
89
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -115,7 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
115
116
|
label: StringConstructor;
|
|
116
117
|
/** Overrides the default label size. See JoyLabel stories */
|
|
117
118
|
labelSize: {
|
|
118
|
-
type: PropType<
|
|
119
|
+
type: PropType<TJoyLabelSizes>;
|
|
119
120
|
default: string;
|
|
120
121
|
};
|
|
121
122
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -156,17 +157,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
156
157
|
}>> & {
|
|
157
158
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
158
159
|
}, {
|
|
159
|
-
required: boolean;
|
|
160
160
|
disabled: boolean;
|
|
161
|
+
min: number;
|
|
162
|
+
required: boolean;
|
|
163
|
+
step: number;
|
|
161
164
|
invalid: boolean;
|
|
162
165
|
modelValue: number;
|
|
163
166
|
autofocus: boolean;
|
|
164
|
-
labelSize:
|
|
167
|
+
labelSize: TJoyLabelSizes;
|
|
165
168
|
requiredMark: boolean;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
}, {}>, Readonly<{
|
|
170
|
+
/** Default slot to display a label on top of the element. You can use label property as well */
|
|
171
|
+
default(): any;
|
|
172
|
+
}> & {
|
|
173
|
+
/** Default slot to display a label on top of the element. You can use label property as well */
|
|
174
|
+
default(): any;
|
|
170
175
|
}>;
|
|
171
176
|
export default _default;
|
|
172
177
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyDialogSizes = Extract<
|
|
3
|
-
export declare const DIALOG_SIZES: TJoyDialogSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyDialogSizes = Extract<TSizes, 'large'> | 'default';
|
|
@@ -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>;
|
|
@@ -180,14 +180,36 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
180
180
|
patternBrand: boolean;
|
|
181
181
|
buttonSize: TJoyButtonSizes;
|
|
182
182
|
bannerHeight: number;
|
|
183
|
-
}, {}>, {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
}, {}>, Readonly<{
|
|
184
|
+
/** Made for short informations */
|
|
185
|
+
'dialog-preheader': () => any;
|
|
186
|
+
/** Header to inject your title */
|
|
187
|
+
'dialog-header': () => any;
|
|
188
|
+
/** Subheader to inject additionnal informtion */
|
|
189
|
+
'dialog-subheader': () => any;
|
|
190
|
+
/** Body content to inject whatever you need */
|
|
191
|
+
'dialog-body': () => any;
|
|
192
|
+
/** Used to render the cancel CTA */
|
|
193
|
+
'dialog-cancel': () => any;
|
|
194
|
+
/** Used to render the confirm CTA */
|
|
195
|
+
'dialog-confirm': () => any;
|
|
196
|
+
/** When navigating with multiple dialogs */
|
|
197
|
+
'dialog-indicators': () => any;
|
|
198
|
+
}> & {
|
|
199
|
+
/** Made for short informations */
|
|
200
|
+
'dialog-preheader': () => any;
|
|
201
|
+
/** Header to inject your title */
|
|
202
|
+
'dialog-header': () => any;
|
|
203
|
+
/** Subheader to inject additionnal informtion */
|
|
204
|
+
'dialog-subheader': () => any;
|
|
205
|
+
/** Body content to inject whatever you need */
|
|
206
|
+
'dialog-body': () => any;
|
|
207
|
+
/** Used to render the cancel CTA */
|
|
208
|
+
'dialog-cancel': () => any;
|
|
209
|
+
/** Used to render the confirm CTA */
|
|
210
|
+
'dialog-confirm': () => any;
|
|
211
|
+
/** When navigating with multiple dialogs */
|
|
212
|
+
'dialog-indicators': () => any;
|
|
191
213
|
}>;
|
|
192
214
|
export default _default;
|
|
193
215
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
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;
|
|
@@ -227,7 +227,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
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;
|
|
@@ -294,25 +294,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
294
294
|
isOpen: import("vue").Ref<boolean>;
|
|
295
295
|
show: () => Promise<void>;
|
|
296
296
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
297
|
-
$slots: {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
297
|
+
$slots: Readonly<{
|
|
298
|
+
'dialog-preheader': () => any;
|
|
299
|
+
'dialog-header': () => any;
|
|
300
|
+
'dialog-subheader': () => any;
|
|
301
|
+
'dialog-body': () => any;
|
|
302
|
+
'dialog-cancel': () => any;
|
|
303
|
+
'dialog-confirm': () => any;
|
|
304
|
+
'dialog-indicators': () => any;
|
|
305
|
+
}> & {
|
|
306
|
+
'dialog-preheader': () => any;
|
|
307
|
+
'dialog-header': () => any;
|
|
308
|
+
'dialog-subheader': () => any;
|
|
309
|
+
'dialog-body': () => any;
|
|
310
|
+
'dialog-cancel': () => any;
|
|
311
|
+
'dialog-confirm': () => any;
|
|
312
|
+
'dialog-indicators': () => any;
|
|
305
313
|
};
|
|
306
314
|
}) | null | undefined;
|
|
307
315
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
308
316
|
click: () => void;
|
|
309
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
317
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
310
318
|
/** VJoyDialog ref. */
|
|
311
319
|
dialog: ({
|
|
312
320
|
$: import("vue").ComponentInternalInstance;
|
|
313
321
|
$data: {};
|
|
314
322
|
$props: Partial<{
|
|
315
|
-
size: import("../components.types").TJoyDialogSizes;
|
|
323
|
+
size: import("../components.types.js").TJoyDialogSizes;
|
|
316
324
|
closeLabel: string;
|
|
317
325
|
open: boolean;
|
|
318
326
|
preventBodyScroll: boolean;
|
|
@@ -320,10 +328,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
320
328
|
focusTrap: boolean;
|
|
321
329
|
patternConfirm: boolean;
|
|
322
330
|
patternBrand: boolean;
|
|
323
|
-
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
331
|
+
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
324
332
|
bannerHeight: number;
|
|
325
333
|
}> & Omit<{
|
|
326
|
-
readonly size: import("../components.types").TJoyDialogSizes;
|
|
334
|
+
readonly size: import("../components.types.js").TJoyDialogSizes;
|
|
327
335
|
readonly closeLabel: string;
|
|
328
336
|
readonly open: boolean;
|
|
329
337
|
readonly preventBodyScroll: boolean;
|
|
@@ -331,7 +339,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
331
339
|
readonly focusTrap: boolean;
|
|
332
340
|
readonly patternConfirm: boolean;
|
|
333
341
|
readonly patternBrand: boolean;
|
|
334
|
-
readonly buttonSize: import("../components.types").TJoyButtonSizes;
|
|
342
|
+
readonly buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
335
343
|
readonly bannerHeight: number;
|
|
336
344
|
readonly id?: string | undefined;
|
|
337
345
|
readonly cancelText?: string | undefined;
|
|
@@ -349,7 +357,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
349
357
|
type: StringConstructor;
|
|
350
358
|
};
|
|
351
359
|
size: {
|
|
352
|
-
type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
|
|
360
|
+
type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
|
|
353
361
|
default: string;
|
|
354
362
|
};
|
|
355
363
|
focusTrap: {
|
|
@@ -387,7 +395,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
387
395
|
type: StringConstructor;
|
|
388
396
|
};
|
|
389
397
|
buttonSize: {
|
|
390
|
-
type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
|
|
398
|
+
type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
|
|
391
399
|
default: string;
|
|
392
400
|
};
|
|
393
401
|
bannerSrc: {
|
|
@@ -426,7 +434,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
426
434
|
type: StringConstructor;
|
|
427
435
|
};
|
|
428
436
|
size: {
|
|
429
|
-
type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
|
|
437
|
+
type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
|
|
430
438
|
default: string;
|
|
431
439
|
};
|
|
432
440
|
focusTrap: {
|
|
@@ -464,7 +472,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
464
472
|
type: StringConstructor;
|
|
465
473
|
};
|
|
466
474
|
buttonSize: {
|
|
467
|
-
type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
|
|
475
|
+
type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
|
|
468
476
|
default: string;
|
|
469
477
|
};
|
|
470
478
|
bannerSrc: {
|
|
@@ -485,7 +493,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
485
493
|
"onDialog:before-unmount"?: (() => any) | undefined;
|
|
486
494
|
"onDialog:confirm"?: (() => any) | undefined;
|
|
487
495
|
}, {
|
|
488
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
|
|
496
|
+
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
489
497
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
490
498
|
hide: (options?: {
|
|
491
499
|
fireHideEvent: boolean;
|
|
@@ -500,7 +508,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
500
508
|
"dialog:before-unmount": () => void;
|
|
501
509
|
"dialog:confirm": () => void;
|
|
502
510
|
}, string, {
|
|
503
|
-
size: import("../components.types").TJoyDialogSizes;
|
|
511
|
+
size: import("../components.types.js").TJoyDialogSizes;
|
|
504
512
|
closeLabel: string;
|
|
505
513
|
open: boolean;
|
|
506
514
|
preventBodyScroll: boolean;
|
|
@@ -508,7 +516,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
508
516
|
focusTrap: boolean;
|
|
509
517
|
patternConfirm: boolean;
|
|
510
518
|
patternBrand: boolean;
|
|
511
|
-
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
519
|
+
buttonSize: import("../components.types.js").TJoyButtonSizes;
|
|
512
520
|
bannerHeight: number;
|
|
513
521
|
}, {}, string, {}> & {
|
|
514
522
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -535,7 +543,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
535
543
|
type: StringConstructor;
|
|
536
544
|
};
|
|
537
545
|
size: {
|
|
538
|
-
type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
|
|
546
|
+
type: import("vue").PropType<import("../components.types.js").TJoyDialogSizes>;
|
|
539
547
|
default: string;
|
|
540
548
|
};
|
|
541
549
|
focusTrap: {
|
|
@@ -573,7 +581,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
573
581
|
type: StringConstructor;
|
|
574
582
|
};
|
|
575
583
|
buttonSize: {
|
|
576
|
-
type: import("vue").PropType<import("../components.types").TJoyButtonSizes>;
|
|
584
|
+
type: import("vue").PropType<import("../components.types.js").TJoyButtonSizes>;
|
|
577
585
|
default: string;
|
|
578
586
|
};
|
|
579
587
|
bannerSrc: {
|
|
@@ -594,7 +602,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
594
602
|
"onDialog:before-unmount"?: (() => any) | undefined;
|
|
595
603
|
"onDialog:confirm"?: (() => any) | undefined;
|
|
596
604
|
}, "hide" | "show" | "isOpen" | "focusTrapReturn" | "hasFooterSlots"> & import("vue").ShallowUnwrapRef<{
|
|
597
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
|
|
605
|
+
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
598
606
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
599
607
|
hide: (options?: {
|
|
600
608
|
fireHideEvent: boolean;
|
|
@@ -602,28 +610,41 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
602
610
|
isOpen: import("vue").Ref<boolean>;
|
|
603
611
|
show: () => Promise<void>;
|
|
604
612
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
605
|
-
$slots: {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
+
$slots: Readonly<{
|
|
614
|
+
'dialog-preheader': () => any;
|
|
615
|
+
'dialog-header': () => any;
|
|
616
|
+
'dialog-subheader': () => any;
|
|
617
|
+
'dialog-body': () => any;
|
|
618
|
+
'dialog-cancel': () => any;
|
|
619
|
+
'dialog-confirm': () => any;
|
|
620
|
+
'dialog-indicators': () => any;
|
|
621
|
+
}> & {
|
|
622
|
+
'dialog-preheader': () => any;
|
|
623
|
+
'dialog-header': () => any;
|
|
624
|
+
'dialog-subheader': () => any;
|
|
625
|
+
'dialog-body': () => any;
|
|
626
|
+
'dialog-cancel': () => any;
|
|
627
|
+
'dialog-confirm': () => any;
|
|
628
|
+
'dialog-indicators': () => any;
|
|
613
629
|
};
|
|
614
630
|
}) | null | undefined;
|
|
615
631
|
}>>> & {
|
|
616
632
|
onClick?: (() => any) | undefined;
|
|
617
633
|
}, {}, {}>, Readonly<{
|
|
618
|
-
/**
|
|
619
|
-
default
|
|
634
|
+
/** Default slot where you can render anything you need. */
|
|
635
|
+
default(): any;
|
|
620
636
|
}> & {
|
|
621
|
-
/**
|
|
622
|
-
default
|
|
637
|
+
/** Default slot where you can render anything you need. */
|
|
638
|
+
default(): any;
|
|
623
639
|
}>;
|
|
624
640
|
export default _default;
|
|
641
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
642
|
+
new (): {
|
|
643
|
+
$slots: S;
|
|
644
|
+
};
|
|
645
|
+
};
|
|
625
646
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
626
|
-
type
|
|
647
|
+
type __VLS_TypePropsToOption<T> = {
|
|
627
648
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
628
649
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
629
650
|
} : {
|
|
@@ -631,8 +652,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
631
652
|
required: true;
|
|
632
653
|
};
|
|
633
654
|
};
|
|
634
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
635
|
-
new (): {
|
|
636
|
-
$slots: S;
|
|
637
|
-
};
|
|
638
|
-
};
|
|
@@ -10,9 +10,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
};
|
|
11
11
|
}>>, {
|
|
12
12
|
disabled: boolean;
|
|
13
|
-
}, {}>, {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
}, {}>, Readonly<{
|
|
14
|
+
/** Title of the component */
|
|
15
|
+
default(): any;
|
|
16
|
+
/** Component main content, below the title */
|
|
17
|
+
'divider-content': () => any;
|
|
18
|
+
}> & {
|
|
19
|
+
/** Title of the component */
|
|
20
|
+
default(): any;
|
|
21
|
+
/** Component main content, below the title */
|
|
22
|
+
'divider-content': () => any;
|
|
16
23
|
}>;
|
|
17
24
|
export default _default;
|
|
18
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoyDrawerSizes = (typeof DRAWER_SIZES)[number];
|
|
1
|
+
export type TJoyDrawerSizes = 'default' | 'large';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
|
|
3
|
+
import { TJoyDrawerSizes } from './JoyDrawer.types';
|
|
3
4
|
declare function hide(options?: {
|
|
4
5
|
fireHideEvent: boolean;
|
|
5
6
|
}): Promise<void>;
|
|
@@ -20,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
20
21
|
default: boolean;
|
|
21
22
|
};
|
|
22
23
|
size: {
|
|
23
|
-
type: PropType<
|
|
24
|
+
type: PropType<TJoyDrawerSizes>;
|
|
24
25
|
default: string;
|
|
25
26
|
};
|
|
26
27
|
/** By default the drawer is teleported to the end of body tag */
|
|
@@ -38,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
39
|
default: boolean;
|
|
39
40
|
};
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
+
* Mostly for documentation purpose
|
|
42
43
|
*/
|
|
43
44
|
preventBodyScroll: {
|
|
44
45
|
type: BooleanConstructor;
|
|
@@ -67,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
68
|
type: PropType<() => boolean | Promise<boolean>>;
|
|
68
69
|
};
|
|
69
70
|
}, {
|
|
70
|
-
focusTrapReturn: import("@vueuse/integrations/useFocusTrap").UseFocusTrapReturn;
|
|
71
|
+
focusTrapReturn: import("@vueuse/integrations/useFocusTrap.js").UseFocusTrapReturn;
|
|
71
72
|
hasFooterSlots: import("vue").ComputedRef<boolean>;
|
|
72
73
|
hide: typeof hide;
|
|
73
74
|
isOpen: import("vue").Ref<boolean>;
|
|
@@ -89,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
89
90
|
default: boolean;
|
|
90
91
|
};
|
|
91
92
|
size: {
|
|
92
|
-
type: PropType<
|
|
93
|
+
type: PropType<TJoyDrawerSizes>;
|
|
93
94
|
default: string;
|
|
94
95
|
};
|
|
95
96
|
/** By default the drawer is teleported to the end of body tag */
|
|
@@ -107,7 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
107
108
|
default: boolean;
|
|
108
109
|
};
|
|
109
110
|
/**
|
|
110
|
-
*
|
|
111
|
+
* Mostly for documentation purpose
|
|
111
112
|
*/
|
|
112
113
|
preventBodyScroll: {
|
|
113
114
|
type: BooleanConstructor;
|
|
@@ -143,7 +144,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
143
144
|
"onDrawer:before-unmount"?: (() => any) | undefined;
|
|
144
145
|
"onDrawer:confirm"?: (() => any) | undefined;
|
|
145
146
|
}, {
|
|
146
|
-
size:
|
|
147
|
+
size: TJoyDrawerSizes;
|
|
147
148
|
closeLabel: string;
|
|
148
149
|
open: boolean;
|
|
149
150
|
preventBodyScroll: boolean;
|
|
@@ -151,13 +152,32 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
151
152
|
focusTrap: boolean;
|
|
152
153
|
buttonSize: TJoyButtonSizes;
|
|
153
154
|
elevated: boolean;
|
|
154
|
-
}, {}>, {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
}, {}>, Readonly<{
|
|
156
|
+
/** Made for short informations */
|
|
157
|
+
'drawer-preheader': () => any;
|
|
158
|
+
/** Header to inject your title */
|
|
159
|
+
'drawer-header': () => any;
|
|
160
|
+
/** Subheader to inject additionnal informtion */
|
|
161
|
+
'drawer-subheader': () => any;
|
|
162
|
+
/** Body content to inject whatever you need */
|
|
163
|
+
'drawer-body': () => any;
|
|
164
|
+
/** Used to render the cancel CTA */
|
|
165
|
+
'drawer-cancel': () => any;
|
|
166
|
+
/** Used to render the confirm CTA */
|
|
167
|
+
'drawer-confirm': () => any;
|
|
168
|
+
}> & {
|
|
169
|
+
/** Made for short informations */
|
|
170
|
+
'drawer-preheader': () => any;
|
|
171
|
+
/** Header to inject your title */
|
|
172
|
+
'drawer-header': () => any;
|
|
173
|
+
/** Subheader to inject additionnal informtion */
|
|
174
|
+
'drawer-subheader': () => any;
|
|
175
|
+
/** Body content to inject whatever you need */
|
|
176
|
+
'drawer-body': () => any;
|
|
177
|
+
/** Used to render the cancel CTA */
|
|
178
|
+
'drawer-cancel': () => any;
|
|
179
|
+
/** Used to render the confirm CTA */
|
|
180
|
+
'drawer-confirm': () => any;
|
|
161
181
|
}>;
|
|
162
182
|
export default _default;
|
|
163
183
|
type __VLS_WithTemplateSlots<T, S> = T & {
|