@maltjoy/core-vue 3.27.2 → 3.28.1-test
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 +12 -6
- 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 +10 -3
- 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 +11 -6
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +30 -8
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +56 -20
- 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 +32 -12
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +64 -30
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +29 -22
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +22 -21
- 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 +10 -7
- 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 +17 -5
- 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 +20 -7
- 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 +9 -4
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +10 -65
- 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 +10 -2
- 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 +13 -3
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +43 -16
- 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 +6 -2
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +6 -5
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +6 -2
- 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 +21 -26
|
@@ -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';
|
|
@@ -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 & {
|
|
@@ -294,14 +294,32 @@ 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; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
|
|
299
|
+
* When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
|
|
300
|
+
* props.dialog is actually "not null"
|
|
301
|
+
*
|
|
302
|
+
* renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
|
|
303
|
+
*/
|
|
304
|
+
'dialog-header': () => any;
|
|
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;
|
|
305
323
|
};
|
|
306
324
|
}) | null | undefined;
|
|
307
325
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -602,24 +620,42 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
602
620
|
isOpen: import("vue").Ref<boolean>;
|
|
603
621
|
show: () => Promise<void>;
|
|
604
622
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
605
|
-
$slots: {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
623
|
+
$slots: Readonly<{
|
|
624
|
+
'dialog-preheader': () => any; /** Using renderedDialog allows to get the updated reference of the given dialog prop.
|
|
625
|
+
* When both mounted (dialog and trigger) we can't be 100% sure the VJoyDialog is ready and then,
|
|
626
|
+
* props.dialog is actually "not null"
|
|
627
|
+
*
|
|
628
|
+
* renderedDialog.value should be updated as soon as the VJoyDialog ref is filled.
|
|
629
|
+
*/
|
|
630
|
+
'dialog-header': () => any;
|
|
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;
|
|
613
649
|
};
|
|
614
650
|
}) | null | undefined;
|
|
615
651
|
}>>> & {
|
|
616
652
|
onClick?: (() => any) | undefined;
|
|
617
653
|
}, {}, {}>, Readonly<{
|
|
618
|
-
/**
|
|
619
|
-
default
|
|
654
|
+
/** Default slot where you can render anything you need. */
|
|
655
|
+
default(): any;
|
|
620
656
|
}> & {
|
|
621
|
-
/**
|
|
622
|
-
default
|
|
657
|
+
/** Default slot where you can render anything you need. */
|
|
658
|
+
default(): any;
|
|
623
659
|
}>;
|
|
624
660
|
export default _default;
|
|
625
661
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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;
|
|
@@ -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 & {
|
|
@@ -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: import("../components.types").TJoyDrawerSizes;
|
|
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: import("../components.types").TJoyDrawerSizes;
|
|
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<import("../components.types").TJoyDrawerSizes>;
|
|
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<import("../components.types").TJoyDrawerSizes>;
|
|
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: import("../components.types").TJoyDrawerSizes;
|
|
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<import("../components.types").TJoyDrawerSizes>;
|
|
206
206
|
default: string;
|
|
207
207
|
};
|
|
208
208
|
teleport: {
|
|
@@ -254,13 +254,30 @@ 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
|
-
|
|
257
|
+
$slots: Readonly<{
|
|
258
|
+
'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
|
|
259
|
+
* When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
|
|
260
|
+
* props.drawer is actually "not null"
|
|
261
|
+
*
|
|
262
|
+
* renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
|
|
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;
|
|
264
281
|
};
|
|
265
282
|
}) | null | undefined;
|
|
266
283
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -271,7 +288,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
271
288
|
$: import("vue").ComponentInternalInstance;
|
|
272
289
|
$data: {};
|
|
273
290
|
$props: Partial<{
|
|
274
|
-
size: "
|
|
291
|
+
size: import("../components.types").TJoyDrawerSizes;
|
|
275
292
|
closeLabel: string;
|
|
276
293
|
open: boolean;
|
|
277
294
|
preventBodyScroll: boolean;
|
|
@@ -280,7 +297,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
280
297
|
buttonSize: import("../components.types").TJoyButtonSizes;
|
|
281
298
|
elevated: boolean;
|
|
282
299
|
}> & Omit<{
|
|
283
|
-
readonly size: "
|
|
300
|
+
readonly size: import("../components.types").TJoyDrawerSizes;
|
|
284
301
|
readonly closeLabel: string;
|
|
285
302
|
readonly open: boolean;
|
|
286
303
|
readonly preventBodyScroll: boolean;
|
|
@@ -307,7 +324,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
307
324
|
default: boolean;
|
|
308
325
|
};
|
|
309
326
|
size: {
|
|
310
|
-
type: import("vue").PropType<"
|
|
327
|
+
type: import("vue").PropType<import("../components.types").TJoyDrawerSizes>;
|
|
311
328
|
default: string;
|
|
312
329
|
};
|
|
313
330
|
teleport: {
|
|
@@ -373,7 +390,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
373
390
|
default: boolean;
|
|
374
391
|
};
|
|
375
392
|
size: {
|
|
376
|
-
type: import("vue").PropType<"
|
|
393
|
+
type: import("vue").PropType<import("../components.types").TJoyDrawerSizes>;
|
|
377
394
|
default: string;
|
|
378
395
|
};
|
|
379
396
|
teleport: {
|
|
@@ -432,7 +449,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
432
449
|
"drawer:before-unmount": () => void;
|
|
433
450
|
"drawer:confirm": () => void;
|
|
434
451
|
}, string, {
|
|
435
|
-
size: "
|
|
452
|
+
size: import("../components.types").TJoyDrawerSizes;
|
|
436
453
|
closeLabel: string;
|
|
437
454
|
open: boolean;
|
|
438
455
|
preventBodyScroll: boolean;
|
|
@@ -469,7 +486,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
469
486
|
default: boolean;
|
|
470
487
|
};
|
|
471
488
|
size: {
|
|
472
|
-
type: import("vue").PropType<"
|
|
489
|
+
type: import("vue").PropType<import("../components.types").TJoyDrawerSizes>;
|
|
473
490
|
default: string;
|
|
474
491
|
};
|
|
475
492
|
teleport: {
|
|
@@ -521,23 +538,40 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
521
538
|
isOpen: import("vue").Ref<boolean>;
|
|
522
539
|
show: () => Promise<void>;
|
|
523
540
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
524
|
-
$slots: {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
541
|
+
$slots: Readonly<{
|
|
542
|
+
'drawer-preheader': () => any; /** Using renderedDrawer allows to get the updated reference of the given drawer prop.
|
|
543
|
+
* When both mounted (drawer and trigger) we can't be 100% sure the VJoyDrawer is ready and then,
|
|
544
|
+
* props.drawer is actually "not null"
|
|
545
|
+
*
|
|
546
|
+
* renderedDrawer.value should be updated as soon as the VJoyDrawer ref is filled.
|
|
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;
|
|
531
565
|
};
|
|
532
566
|
}) | null | undefined;
|
|
533
567
|
}>>> & {
|
|
534
568
|
onClick?: (() => any) | undefined;
|
|
535
569
|
}, {}, {}>, Readonly<{
|
|
536
|
-
/**
|
|
537
|
-
default
|
|
570
|
+
/** Default slot where you can render anything you need. */
|
|
571
|
+
default(): any;
|
|
538
572
|
}> & {
|
|
539
|
-
/**
|
|
540
|
-
default
|
|
573
|
+
/** Default slot where you can render anything you need. */
|
|
574
|
+
default(): any;
|
|
541
575
|
}>;
|
|
542
576
|
export default _default;
|
|
543
577
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export type TJoyDropdownDirections =
|
|
3
|
-
export
|
|
4
|
-
export type TJoyDropdownJustify = (typeof DROPDOWN_JUSTIFY)[number];
|
|
1
|
+
import { TPositions } from '../../types';
|
|
2
|
+
export type TJoyDropdownDirections = 'up' | 'down';
|
|
3
|
+
export type TJoyDropdownJustify = TPositions;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyDropdownDirections } from './JoyDropdown.types';
|
|
2
3
|
import { TJoyDropdownListSizes } from '../JoyDropdownList/JoyDropdownList.types';
|
|
3
4
|
export interface Option {
|
|
4
5
|
id: string;
|
|
@@ -35,12 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
36
|
};
|
|
36
37
|
/** Dropdown vertical position according to the trigger */
|
|
37
38
|
direction: {
|
|
38
|
-
type: PropType<
|
|
39
|
+
type: PropType<TJoyDropdownDirections>;
|
|
39
40
|
default: string;
|
|
40
41
|
};
|
|
41
42
|
/** Dropdown horizontal justify according to the trigger */
|
|
42
43
|
justify: {
|
|
43
|
-
type: PropType<"
|
|
44
|
+
type: PropType<import("../../types").TPositions>;
|
|
44
45
|
default: string;
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
@@ -57,7 +58,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
58
|
size: {
|
|
58
59
|
type: PropType<TJoyDropdownListSizes>;
|
|
59
60
|
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<TJoyDropdownDirections>;
|
|
129
129
|
default: string;
|
|
130
130
|
};
|
|
131
131
|
/** Dropdown horizontal justify according to the trigger */
|
|
132
132
|
justify: {
|
|
133
|
-
type: PropType<"
|
|
133
|
+
type: PropType<import("../../types").TPositions>;
|
|
134
134
|
default: string;
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
@@ -147,7 +147,6 @@ 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;
|
|
151
150
|
};
|
|
152
151
|
/** Use v-model */
|
|
153
152
|
modelValue: {
|
|
@@ -196,8 +195,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
196
195
|
size: TJoyDropdownListSizes;
|
|
197
196
|
width: string;
|
|
198
197
|
height: string;
|
|
199
|
-
justify: "
|
|
200
|
-
direction:
|
|
198
|
+
justify: import("../../types").TPositions;
|
|
199
|
+
direction: TJoyDropdownDirections;
|
|
201
200
|
options: Option[];
|
|
202
201
|
reset: boolean;
|
|
203
202
|
modelValue: string;
|
|
@@ -205,20 +204,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
205
204
|
disableTeleport: boolean;
|
|
206
205
|
closeOnSelect: boolean;
|
|
207
206
|
dropdownGap: string;
|
|
208
|
-
}, {}>, {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
207
|
+
}, {}>, Readonly<{
|
|
208
|
+
/** The trigger required to display the dropdown list. Can be anything as soon as it's focusable. */
|
|
209
|
+
'dropdown-button': () => any;
|
|
210
|
+
/** Header that will be injected in the VJoyDropdownList */
|
|
211
|
+
'dropdown-header'?: (() => any) | undefined;
|
|
212
|
+
/** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
|
|
213
|
+
'dropdown-items'?: (() => any) | undefined;
|
|
214
|
+
/** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
|
|
215
|
+
'dropdown-item'?: ((option: Option) => any) | undefined;
|
|
216
|
+
/** Footer that will be injected in the VJoyDropdownList */
|
|
217
|
+
'dropdown-footer'?: (() => any) | undefined;
|
|
218
|
+
}> & {
|
|
219
|
+
/** The trigger required to display the dropdown list. Can be anything as soon as it's focusable. */
|
|
220
|
+
'dropdown-button': () => any;
|
|
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'?: ((option: Option) => any) | undefined;
|
|
227
|
+
/** Footer that will be injected in the VJoyDropdownList */
|
|
228
|
+
'dropdown-footer'?: (() => any) | undefined;
|
|
222
229
|
}>;
|
|
223
230
|
export default _default;
|
|
224
231
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyDropdownListSizes = Extract<
|
|
3
|
-
export declare const DROPDOWNLIST_SIZES: TJoyDropdownListSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyDropdownListSizes = Extract<TSizes, 'xsmall' | 'small' | 'medium'>;
|
|
@@ -27,7 +27,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
27
27
|
size: {
|
|
28
28
|
type: PropType<TJoyDropdownListSizes>;
|
|
29
29
|
default: string;
|
|
30
|
-
validator(size: TJoyDropdownListSizes): boolean;
|
|
31
30
|
};
|
|
32
31
|
modelValue: {
|
|
33
32
|
type: StringConstructor;
|
|
@@ -71,7 +70,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
71
70
|
size: {
|
|
72
71
|
type: PropType<TJoyDropdownListSizes>;
|
|
73
72
|
default: string;
|
|
74
|
-
validator(size: TJoyDropdownListSizes): boolean;
|
|
75
73
|
};
|
|
76
74
|
modelValue: {
|
|
77
75
|
type: StringConstructor;
|
|
@@ -107,25 +105,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
107
105
|
height: string;
|
|
108
106
|
options: Option[];
|
|
109
107
|
reset: boolean;
|
|
110
|
-
}, {}>, {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
108
|
+
}, {}>, Readonly<{
|
|
109
|
+
/** Use it to customize the innerHTML of the <li> item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
|
|
110
|
+
label?: ((option: Option) => any) | undefined;
|
|
111
|
+
/** Header that will be injected in the VJoyDropdownList */
|
|
112
|
+
'dropdown-list-header'?: (() => any) | undefined;
|
|
113
|
+
/** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
|
|
114
|
+
'dropdown-list-items'?: (() => any) | undefined;
|
|
115
|
+
/** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
|
|
116
|
+
'dropdown-list-item'?: ((option: Option) => any) | undefined;
|
|
117
|
+
/** Footer that will be injected in the VJoyDropdownList */
|
|
118
|
+
'dropdown-list-footer'?: (() => any) | undefined;
|
|
119
|
+
}> & {
|
|
120
|
+
/** Use it to customize the innerHTML of the <li> item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
|
|
121
|
+
label?: ((option: Option) => any) | undefined;
|
|
122
|
+
/** Header that will be injected in the VJoyDropdownList */
|
|
123
|
+
'dropdown-list-header'?: (() => any) | undefined;
|
|
124
|
+
/** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
|
|
125
|
+
'dropdown-list-items'?: (() => any) | undefined;
|
|
126
|
+
/** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
|
|
127
|
+
'dropdown-list-item'?: ((option: Option) => any) | undefined;
|
|
128
|
+
/** Footer that will be injected in the VJoyDropdownList */
|
|
129
|
+
'dropdown-list-footer'?: (() => any) | undefined;
|
|
129
130
|
}>;
|
|
130
131
|
export default _default;
|
|
131
132
|
type __VLS_WithTemplateSlots<T, S> = T & {
|