@maltjoy/core-vue 3.27.1 → 3.27.2
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/README.md +1 -0
- package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -1
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +3 -4
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +6 -4
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +4 -14
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +2 -1
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +8 -14
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +4 -8
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +0 -2
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +7 -20
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +6 -12
- package/dist/components/JoyButton/JoyButton.types.d.ts +20 -4
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -10
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +4 -10
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +4 -12
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +3 -2
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +0 -6
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +6 -11
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +3 -2
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +8 -30
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +20 -56
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +3 -10
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +2 -1
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +12 -32
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +30 -64
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -3
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +22 -29
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -2
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +21 -22
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +2 -8
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +2 -10
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +2 -6
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +4 -2
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +1 -8
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +4 -2
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +9 -21
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +4 -3
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -9
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +3 -4
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +2 -1
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +6 -9
- package/dist/components/JoyInput/JoyInput.types.d.ts +3 -2
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +7 -10
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +3 -2
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +7 -10
- package/dist/components/JoyLink/JoyLink.types.d.ts +2 -1
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +7 -8
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +10 -6
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +19 -16
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +6 -14
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +5 -3
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +14 -30
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +3 -2
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +3 -5
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +2 -1
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +7 -20
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +2 -1
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +6 -14
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +3 -2
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +2 -10
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +2 -1
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +6 -14
- package/dist/components/JoySelect/JoySelect.types.d.ts +3 -2
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +4 -9
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +65 -10
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +3 -2
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +3 -2
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +2 -6
- package/dist/components/JoySnackbar/index.d.ts +1 -1
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +2 -1
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +4 -2
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +2 -14
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +2 -10
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +0 -2
- package/dist/components/JoyTag/JoyTag.types.d.ts +5 -3
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +3 -13
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +19 -34
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +2 -1
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +2 -1
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +15 -67
- package/dist/components/JoyText/VJoyText.vue.d.ts +2 -6
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +5 -6
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -6
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +1 -0
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +6 -20
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +10 -5
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +18 -19
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +2190 -2117
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +10 -7
- package/package.json +24 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyLabelSizes } from '@/components/JoyLabel/JoyLabel.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
autofocus: {
|
|
5
4
|
type: BooleanConstructor;
|
|
@@ -28,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
28
27
|
label: StringConstructor;
|
|
29
28
|
/** Overrides the default label size. See JoyLabel stories */
|
|
30
29
|
labelSize: {
|
|
31
|
-
type: PropType<
|
|
30
|
+
type: PropType<"small" | "large" | "medium">;
|
|
32
31
|
default: string;
|
|
33
32
|
};
|
|
34
33
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -73,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
73
72
|
readonly invalid: boolean;
|
|
74
73
|
readonly modelValue: number;
|
|
75
74
|
readonly autofocus: boolean;
|
|
76
|
-
readonly labelSize:
|
|
75
|
+
readonly labelSize: "small" | "large" | "medium";
|
|
77
76
|
readonly requiredMark: boolean;
|
|
78
77
|
readonly min: number;
|
|
79
78
|
readonly step: number;
|
|
@@ -116,7 +115,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
116
115
|
label: StringConstructor;
|
|
117
116
|
/** Overrides the default label size. See JoyLabel stories */
|
|
118
117
|
labelSize: {
|
|
119
|
-
type: PropType<
|
|
118
|
+
type: PropType<"small" | "large" | "medium">;
|
|
120
119
|
default: string;
|
|
121
120
|
};
|
|
122
121
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -162,16 +161,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
162
161
|
invalid: boolean;
|
|
163
162
|
modelValue: number;
|
|
164
163
|
autofocus: boolean;
|
|
165
|
-
labelSize:
|
|
164
|
+
labelSize: "small" | "large" | "medium";
|
|
166
165
|
requiredMark: boolean;
|
|
167
166
|
min: number;
|
|
168
167
|
step: number;
|
|
169
|
-
}, {}>,
|
|
170
|
-
|
|
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;
|
|
168
|
+
}, {}>, {
|
|
169
|
+
default?(_: {}): any;
|
|
175
170
|
}>;
|
|
176
171
|
export default _default;
|
|
177
172
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyDialogSizes = Extract<
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoyDialogSizes = Extract<(typeof SIZES)[number], 'large'> | 'default';
|
|
3
|
+
export declare const DIALOG_SIZES: TJoyDialogSizes[];
|
|
@@ -180,36 +180,14 @@ 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
|
-
|
|
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;
|
|
183
|
+
}, {}>, {
|
|
184
|
+
"dialog-preheader"?(_: {}): any;
|
|
185
|
+
"dialog-header"?(_: {}): any;
|
|
186
|
+
"dialog-subheader"?(_: {}): any;
|
|
187
|
+
"dialog-body"?(_: {}): any;
|
|
188
|
+
"dialog-cancel"?(_: {}): any;
|
|
189
|
+
"dialog-confirm"?(_: {}): any;
|
|
190
|
+
"dialog-indicators"?(_: {}): any;
|
|
213
191
|
}>;
|
|
214
192
|
export default _default;
|
|
215
193
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -294,32 +294,14 @@ 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
|
-
|
|
305
|
-
'dialog-subheader': () => any;
|
|
306
|
-
'dialog-body': () => any;
|
|
307
|
-
'dialog-cancel': () => any;
|
|
308
|
-
'dialog-confirm': () => any;
|
|
309
|
-
'dialog-indicators': () => any;
|
|
310
|
-
}> & {
|
|
311
|
-
'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
|
|
312
|
-
* When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
|
|
313
|
-
* props.dialog is actually "not null"
|
|
314
|
-
*
|
|
315
|
-
* renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
|
|
316
|
-
*/
|
|
317
|
-
'dialog-header': () => any;
|
|
318
|
-
'dialog-subheader': () => any;
|
|
319
|
-
'dialog-body': () => any;
|
|
320
|
-
'dialog-cancel': () => any;
|
|
321
|
-
'dialog-confirm': () => any;
|
|
322
|
-
'dialog-indicators': () => any;
|
|
297
|
+
$slots: {
|
|
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;
|
|
323
305
|
};
|
|
324
306
|
}) | null | undefined;
|
|
325
307
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -620,42 +602,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
620
602
|
isOpen: import("vue").Ref<boolean>;
|
|
621
603
|
show: () => Promise<void>;
|
|
622
604
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
623
|
-
$slots:
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
'dialog-subheader': () => any;
|
|
632
|
-
'dialog-body': () => any;
|
|
633
|
-
'dialog-cancel': () => any;
|
|
634
|
-
'dialog-confirm': () => any;
|
|
635
|
-
'dialog-indicators': () => any;
|
|
636
|
-
}> & {
|
|
637
|
-
'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
|
|
638
|
-
* When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
|
|
639
|
-
* props.dialog is actually "not null"
|
|
640
|
-
*
|
|
641
|
-
* renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
|
|
642
|
-
*/
|
|
643
|
-
'dialog-header': () => any;
|
|
644
|
-
'dialog-subheader': () => any;
|
|
645
|
-
'dialog-body': () => any;
|
|
646
|
-
'dialog-cancel': () => any;
|
|
647
|
-
'dialog-confirm': () => any;
|
|
648
|
-
'dialog-indicators': () => any;
|
|
605
|
+
$slots: {
|
|
606
|
+
"dialog-preheader"?(_: {}): any;
|
|
607
|
+
"dialog-header"?(_: {}): any;
|
|
608
|
+
"dialog-subheader"?(_: {}): any;
|
|
609
|
+
"dialog-body"?(_: {}): any;
|
|
610
|
+
"dialog-cancel"?(_: {}): any;
|
|
611
|
+
"dialog-confirm"?(_: {}): any;
|
|
612
|
+
"dialog-indicators"?(_: {}): any;
|
|
649
613
|
};
|
|
650
614
|
}) | null | undefined;
|
|
651
615
|
}>>> & {
|
|
652
616
|
onClick?: (() => any) | undefined;
|
|
653
617
|
}, {}, {}>, Readonly<{
|
|
654
|
-
/** Default slot where you can render anything you need. */
|
|
655
|
-
default()
|
|
618
|
+
/** @slot Default slot where you can render anything you need. */
|
|
619
|
+
default: () => any;
|
|
656
620
|
}> & {
|
|
657
|
-
/** Default slot where you can render anything you need. */
|
|
658
|
-
default()
|
|
621
|
+
/** @slot Default slot where you can render anything you need. */
|
|
622
|
+
default: () => any;
|
|
659
623
|
}>;
|
|
660
624
|
export default _default;
|
|
661
625
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -10,16 +10,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
};
|
|
11
11
|
}>>, {
|
|
12
12
|
disabled: boolean;
|
|
13
|
-
}, {}>,
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
13
|
+
}, {}>, {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
"divider-content"?(_: {}): any;
|
|
23
16
|
}>;
|
|
24
17
|
export default _default;
|
|
25
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const DRAWER_SIZES: readonly ["default", "large"];
|
|
2
|
+
export type TJoyDrawerSizes = (typeof DRAWER_SIZES)[number];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
|
|
3
|
-
import { TJoyDrawerSizes } from './JoyDrawer.types';
|
|
4
3
|
declare function hide(options?: {
|
|
5
4
|
fireHideEvent: boolean;
|
|
6
5
|
}): Promise<void>;
|
|
@@ -21,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
20
|
default: boolean;
|
|
22
21
|
};
|
|
23
22
|
size: {
|
|
24
|
-
type: PropType<
|
|
23
|
+
type: PropType<"default" | "large">;
|
|
25
24
|
default: string;
|
|
26
25
|
};
|
|
27
26
|
/** By default the drawer is teleported to the end of body tag */
|
|
@@ -39,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
39
38
|
default: boolean;
|
|
40
39
|
};
|
|
41
40
|
/**
|
|
42
|
-
* Mostly for documentation purpose
|
|
41
|
+
* @internal - Mostly for documentation purpose
|
|
43
42
|
*/
|
|
44
43
|
preventBodyScroll: {
|
|
45
44
|
type: BooleanConstructor;
|
|
@@ -90,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
90
89
|
default: boolean;
|
|
91
90
|
};
|
|
92
91
|
size: {
|
|
93
|
-
type: PropType<
|
|
92
|
+
type: PropType<"default" | "large">;
|
|
94
93
|
default: string;
|
|
95
94
|
};
|
|
96
95
|
/** By default the drawer is teleported to the end of body tag */
|
|
@@ -108,7 +107,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
108
107
|
default: boolean;
|
|
109
108
|
};
|
|
110
109
|
/**
|
|
111
|
-
* Mostly for documentation purpose
|
|
110
|
+
* @internal - Mostly for documentation purpose
|
|
112
111
|
*/
|
|
113
112
|
preventBodyScroll: {
|
|
114
113
|
type: BooleanConstructor;
|
|
@@ -144,7 +143,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
144
143
|
"onDrawer:before-unmount"?: (() => any) | undefined;
|
|
145
144
|
"onDrawer:confirm"?: (() => any) | undefined;
|
|
146
145
|
}, {
|
|
147
|
-
size:
|
|
146
|
+
size: "default" | "large";
|
|
148
147
|
closeLabel: string;
|
|
149
148
|
open: boolean;
|
|
150
149
|
preventBodyScroll: boolean;
|
|
@@ -152,32 +151,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
152
151
|
focusTrap: boolean;
|
|
153
152
|
buttonSize: TJoyButtonSizes;
|
|
154
153
|
elevated: boolean;
|
|
155
|
-
}, {}>,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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;
|
|
154
|
+
}, {}>, {
|
|
155
|
+
"drawer-header"?(_: {}): any;
|
|
156
|
+
"drawer-subheader"?(_: {}): any;
|
|
157
|
+
"drawer-body"?(_: {}): any;
|
|
158
|
+
"drawer-cancel"?(_: {}): any;
|
|
159
|
+
"drawer-confirm"?(_: {}): any;
|
|
160
|
+
"drawer-indicators"?(_: {}): any;
|
|
181
161
|
}>;
|
|
182
162
|
export default _default;
|
|
183
163
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: Partial<{
|
|
7
|
-
size:
|
|
7
|
+
size: "default" | "large";
|
|
8
8
|
closeLabel: string;
|
|
9
9
|
open: boolean;
|
|
10
10
|
preventBodyScroll: boolean;
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
14
14
|
elevated: boolean;
|
|
15
15
|
}> & Omit<{
|
|
16
|
-
readonly size:
|
|
16
|
+
readonly size: "default" | "large";
|
|
17
17
|
readonly closeLabel: string;
|
|
18
18
|
readonly open: boolean;
|
|
19
19
|
readonly preventBodyScroll: boolean;
|
|
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
40
|
default: boolean;
|
|
41
41
|
};
|
|
42
42
|
size: {
|
|
43
|
-
type: import("vue").PropType<
|
|
43
|
+
type: import("vue").PropType<"default" | "large">;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
teleport: {
|
|
@@ -106,7 +106,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
106
|
default: boolean;
|
|
107
107
|
};
|
|
108
108
|
size: {
|
|
109
|
-
type: import("vue").PropType<
|
|
109
|
+
type: import("vue").PropType<"default" | "large">;
|
|
110
110
|
default: string;
|
|
111
111
|
};
|
|
112
112
|
teleport: {
|
|
@@ -165,7 +165,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
165
165
|
"drawer:before-unmount": () => void;
|
|
166
166
|
"drawer:confirm": () => void;
|
|
167
167
|
}, string, {
|
|
168
|
-
size:
|
|
168
|
+
size: "default" | "large";
|
|
169
169
|
closeLabel: string;
|
|
170
170
|
open: boolean;
|
|
171
171
|
preventBodyScroll: boolean;
|
|
@@ -202,7 +202,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
202
202
|
default: boolean;
|
|
203
203
|
};
|
|
204
204
|
size: {
|
|
205
|
-
type: import("vue").PropType<
|
|
205
|
+
type: import("vue").PropType<"default" | "large">;
|
|
206
206
|
default: string;
|
|
207
207
|
};
|
|
208
208
|
teleport: {
|
|
@@ -254,30 +254,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
254
254
|
isOpen: import("vue").Ref<boolean>;
|
|
255
255
|
show: () => Promise<void>;
|
|
256
256
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
257
|
-
$slots:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
'drawer-header': () => any;
|
|
265
|
-
'drawer-subheader': () => any;
|
|
266
|
-
'drawer-body': () => any;
|
|
267
|
-
'drawer-cancel': () => any;
|
|
268
|
-
'drawer-confirm': () => any;
|
|
269
|
-
}> & {
|
|
270
|
-
'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
|
|
271
|
-
* When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
|
|
272
|
-
* props.drawer is actually "not null"
|
|
273
|
-
*
|
|
274
|
-
* renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
|
|
275
|
-
*/
|
|
276
|
-
'drawer-header': () => any;
|
|
277
|
-
'drawer-subheader': () => any;
|
|
278
|
-
'drawer-body': () => any;
|
|
279
|
-
'drawer-cancel': () => any;
|
|
280
|
-
'drawer-confirm': () => any;
|
|
257
|
+
$slots: {
|
|
258
|
+
"drawer-header"?(_: {}): any;
|
|
259
|
+
"drawer-subheader"?(_: {}): any;
|
|
260
|
+
"drawer-body"?(_: {}): any;
|
|
261
|
+
"drawer-cancel"?(_: {}): any;
|
|
262
|
+
"drawer-confirm"?(_: {}): any;
|
|
263
|
+
"drawer-indicators"?(_: {}): any;
|
|
281
264
|
};
|
|
282
265
|
}) | null | undefined;
|
|
283
266
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -288,7 +271,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
288
271
|
$: import("vue").ComponentInternalInstance;
|
|
289
272
|
$data: {};
|
|
290
273
|
$props: Partial<{
|
|
291
|
-
size:
|
|
274
|
+
size: "default" | "large";
|
|
292
275
|
closeLabel: string;
|
|
293
276
|
open: boolean;
|
|
294
277
|
preventBodyScroll: boolean;
|
|
@@ -297,7 +280,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
297
280
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
298
281
|
elevated: boolean;
|
|
299
282
|
}> & Omit<{
|
|
300
|
-
readonly size:
|
|
283
|
+
readonly size: "default" | "large";
|
|
301
284
|
readonly closeLabel: string;
|
|
302
285
|
readonly open: boolean;
|
|
303
286
|
readonly preventBodyScroll: boolean;
|
|
@@ -324,7 +307,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
324
307
|
default: boolean;
|
|
325
308
|
};
|
|
326
309
|
size: {
|
|
327
|
-
type: import("vue").PropType<
|
|
310
|
+
type: import("vue").PropType<"default" | "large">;
|
|
328
311
|
default: string;
|
|
329
312
|
};
|
|
330
313
|
teleport: {
|
|
@@ -390,7 +373,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
390
373
|
default: boolean;
|
|
391
374
|
};
|
|
392
375
|
size: {
|
|
393
|
-
type: import("vue").PropType<
|
|
376
|
+
type: import("vue").PropType<"default" | "large">;
|
|
394
377
|
default: string;
|
|
395
378
|
};
|
|
396
379
|
teleport: {
|
|
@@ -449,7 +432,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
449
432
|
"drawer:before-unmount": () => void;
|
|
450
433
|
"drawer:confirm": () => void;
|
|
451
434
|
}, string, {
|
|
452
|
-
size:
|
|
435
|
+
size: "default" | "large";
|
|
453
436
|
closeLabel: string;
|
|
454
437
|
open: boolean;
|
|
455
438
|
preventBodyScroll: boolean;
|
|
@@ -486,7 +469,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
486
469
|
default: boolean;
|
|
487
470
|
};
|
|
488
471
|
size: {
|
|
489
|
-
type: import("vue").PropType<
|
|
472
|
+
type: import("vue").PropType<"default" | "large">;
|
|
490
473
|
default: string;
|
|
491
474
|
};
|
|
492
475
|
teleport: {
|
|
@@ -538,40 +521,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
538
521
|
isOpen: import("vue").Ref<boolean>;
|
|
539
522
|
show: () => Promise<void>;
|
|
540
523
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
541
|
-
$slots:
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
'drawer-header': () => any;
|
|
549
|
-
'drawer-subheader': () => any;
|
|
550
|
-
'drawer-body': () => any;
|
|
551
|
-
'drawer-cancel': () => any;
|
|
552
|
-
'drawer-confirm': () => any;
|
|
553
|
-
}> & {
|
|
554
|
-
'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
|
|
555
|
-
* When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
|
|
556
|
-
* props.drawer is actually "not null"
|
|
557
|
-
*
|
|
558
|
-
* renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
|
|
559
|
-
*/
|
|
560
|
-
'drawer-header': () => any;
|
|
561
|
-
'drawer-subheader': () => any;
|
|
562
|
-
'drawer-body': () => any;
|
|
563
|
-
'drawer-cancel': () => any;
|
|
564
|
-
'drawer-confirm': () => any;
|
|
524
|
+
$slots: {
|
|
525
|
+
"drawer-header"?(_: {}): any;
|
|
526
|
+
"drawer-subheader"?(_: {}): any;
|
|
527
|
+
"drawer-body"?(_: {}): any;
|
|
528
|
+
"drawer-cancel"?(_: {}): any;
|
|
529
|
+
"drawer-confirm"?(_: {}): any;
|
|
530
|
+
"drawer-indicators"?(_: {}): any;
|
|
565
531
|
};
|
|
566
532
|
}) | null | undefined;
|
|
567
533
|
}>>> & {
|
|
568
534
|
onClick?: (() => any) | undefined;
|
|
569
535
|
}, {}, {}>, Readonly<{
|
|
570
|
-
/** Default slot where you can render anything you need. */
|
|
571
|
-
default()
|
|
536
|
+
/** @slot Default slot where you can render anything you need. */
|
|
537
|
+
default: () => any;
|
|
572
538
|
}> & {
|
|
573
|
-
/** Default slot where you can render anything you need. */
|
|
574
|
-
default()
|
|
539
|
+
/** @slot Default slot where you can render anything you need. */
|
|
540
|
+
default: () => any;
|
|
575
541
|
}>;
|
|
576
542
|
export default _default;
|
|
577
543
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type TJoyDropdownDirections =
|
|
3
|
-
export
|
|
1
|
+
export declare const DROPDOWN_DIRECTIONS: readonly ["up", "down"];
|
|
2
|
+
export type TJoyDropdownDirections = (typeof DROPDOWN_DIRECTIONS)[number];
|
|
3
|
+
export declare const DROPDOWN_JUSTIFY: readonly ["left", "right"];
|
|
4
|
+
export type TJoyDropdownJustify = (typeof DROPDOWN_JUSTIFY)[number];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyDropdownDirections } from './JoyDropdown.types';
|
|
3
2
|
import { TJoyDropdownListSizes } from '../JoyDropdownList/JoyDropdownList.types';
|
|
4
3
|
export interface Option {
|
|
5
4
|
id: string;
|
|
@@ -36,12 +35,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
35
|
};
|
|
37
36
|
/** Dropdown vertical position according to the trigger */
|
|
38
37
|
direction: {
|
|
39
|
-
type: PropType<
|
|
38
|
+
type: PropType<"up" | "down">;
|
|
40
39
|
default: string;
|
|
41
40
|
};
|
|
42
41
|
/** Dropdown horizontal justify according to the trigger */
|
|
43
42
|
justify: {
|
|
44
|
-
type: PropType<
|
|
43
|
+
type: PropType<"left" | "right">;
|
|
45
44
|
default: string;
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
@@ -58,6 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
57
|
size: {
|
|
59
58
|
type: PropType<TJoyDropdownListSizes>;
|
|
60
59
|
default: string;
|
|
60
|
+
validator(size: TJoyDropdownListSizes): boolean;
|
|
61
61
|
};
|
|
62
62
|
/** Use v-model */
|
|
63
63
|
modelValue: {
|
|
@@ -125,12 +125,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
125
125
|
};
|
|
126
126
|
/** Dropdown vertical position according to the trigger */
|
|
127
127
|
direction: {
|
|
128
|
-
type: PropType<
|
|
128
|
+
type: PropType<"up" | "down">;
|
|
129
129
|
default: string;
|
|
130
130
|
};
|
|
131
131
|
/** Dropdown horizontal justify according to the trigger */
|
|
132
132
|
justify: {
|
|
133
|
-
type: PropType<
|
|
133
|
+
type: PropType<"left" | "right">;
|
|
134
134
|
default: string;
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
@@ -147,6 +147,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
147
147
|
size: {
|
|
148
148
|
type: PropType<TJoyDropdownListSizes>;
|
|
149
149
|
default: string;
|
|
150
|
+
validator(size: TJoyDropdownListSizes): boolean;
|
|
150
151
|
};
|
|
151
152
|
/** Use v-model */
|
|
152
153
|
modelValue: {
|
|
@@ -195,8 +196,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
195
196
|
size: TJoyDropdownListSizes;
|
|
196
197
|
width: string;
|
|
197
198
|
height: string;
|
|
198
|
-
justify:
|
|
199
|
-
direction:
|
|
199
|
+
justify: "left" | "right";
|
|
200
|
+
direction: "up" | "down";
|
|
200
201
|
options: Option[];
|
|
201
202
|
reset: boolean;
|
|
202
203
|
modelValue: string;
|
|
@@ -204,28 +205,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
204
205
|
disableTeleport: boolean;
|
|
205
206
|
closeOnSelect: boolean;
|
|
206
207
|
dropdownGap: string;
|
|
207
|
-
}, {}>,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
/** Header that will be injected in the VJoyDropdownList */
|
|
222
|
-
'dropdown-header'?: (() => any) | undefined;
|
|
223
|
-
/** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
|
|
224
|
-
'dropdown-items'?: (() => any) | undefined;
|
|
225
|
-
/** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
|
|
226
|
-
'dropdown-item'?: (() => any) | undefined;
|
|
227
|
-
/** Footer that will be injected in the VJoyDropdownList */
|
|
228
|
-
'dropdown-footer'?: (() => any) | undefined;
|
|
208
|
+
}, {}>, {
|
|
209
|
+
"dropdown-button"?(_: {}): any;
|
|
210
|
+
"dropdown-header"?(_: {}): any;
|
|
211
|
+
"dropdown-items"?(_: {}): any;
|
|
212
|
+
"dropdown-item"?(_: {
|
|
213
|
+
[x: string]: any;
|
|
214
|
+
id: string;
|
|
215
|
+
value?: string | undefined;
|
|
216
|
+
label: string;
|
|
217
|
+
href?: string | undefined;
|
|
218
|
+
disabled?: boolean | undefined;
|
|
219
|
+
checked?: boolean | undefined;
|
|
220
|
+
}): any;
|
|
221
|
+
"dropdown-footer"?(_: {}): any;
|
|
229
222
|
}>;
|
|
230
223
|
export default _default;
|
|
231
224
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyDropdownListSizes = Extract<
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoyDropdownListSizes = Extract<(typeof SIZES)[number], 'xsmall' | 'small' | 'medium'>;
|
|
3
|
+
export declare const DROPDOWNLIST_SIZES: TJoyDropdownListSizes[];
|