@maltjoy/core-vue 3.27.0 → 3.27.1
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 +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/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +5 -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 +34 -19
- 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/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/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +2086 -2152
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -10
- package/package.json +20 -24
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyPanelSizes, TJoyPanelTitleSizes } from './JoyPanel.types';
|
|
3
|
+
import { TJoyScreenLoaderColors } from '../JoyScreenLoader/VJoyScreenLoader.types';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
5
|
flex: {
|
|
5
6
|
type: StringConstructor;
|
|
@@ -11,19 +12,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
12
|
padding: {
|
|
12
13
|
type: PropType<TJoyPanelSizes>;
|
|
13
14
|
default: string;
|
|
14
|
-
validator(size: TJoyPanelSizes): boolean;
|
|
15
15
|
};
|
|
16
16
|
titleSize: {
|
|
17
17
|
type: PropType<TJoyPanelTitleSizes>;
|
|
18
18
|
default: string;
|
|
19
|
-
validator(size: TJoyPanelTitleSizes): boolean;
|
|
20
19
|
};
|
|
21
20
|
loading: {
|
|
22
21
|
type: BooleanConstructor;
|
|
23
22
|
default: boolean;
|
|
24
23
|
};
|
|
25
24
|
loadingColor: {
|
|
26
|
-
type: PropType<
|
|
25
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
27
26
|
default: string;
|
|
28
27
|
};
|
|
29
28
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -37,19 +36,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
36
|
padding: {
|
|
38
37
|
type: PropType<TJoyPanelSizes>;
|
|
39
38
|
default: string;
|
|
40
|
-
validator(size: TJoyPanelSizes): boolean;
|
|
41
39
|
};
|
|
42
40
|
titleSize: {
|
|
43
41
|
type: PropType<TJoyPanelTitleSizes>;
|
|
44
42
|
default: string;
|
|
45
|
-
validator(size: TJoyPanelTitleSizes): boolean;
|
|
46
43
|
};
|
|
47
44
|
loading: {
|
|
48
45
|
type: BooleanConstructor;
|
|
49
46
|
default: boolean;
|
|
50
47
|
};
|
|
51
48
|
loadingColor: {
|
|
52
|
-
type: PropType<
|
|
49
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
53
50
|
default: string;
|
|
54
51
|
};
|
|
55
52
|
}>>, {
|
|
@@ -57,14 +54,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
54
|
noMargin: boolean;
|
|
58
55
|
padding: TJoyPanelSizes;
|
|
59
56
|
titleSize: TJoyPanelTitleSizes;
|
|
60
|
-
loadingColor:
|
|
61
|
-
}, {}>, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
loadingColor: TJoyScreenLoaderColors;
|
|
58
|
+
}, {}>, Readonly<{
|
|
59
|
+
/** Main title of the panel */
|
|
60
|
+
'panel-title'(): any;
|
|
61
|
+
/** Subtitle, not mandatory */
|
|
62
|
+
'panel-subtitle'?(): any;
|
|
63
|
+
/** Top right corner actions. Put whatever you want */
|
|
64
|
+
'panel-title-action'?(): any;
|
|
65
|
+
/** Main content */
|
|
66
|
+
'panel-body'?(): any;
|
|
67
|
+
/** Mostly for CTA */
|
|
68
|
+
'panel-action'?(): any;
|
|
69
|
+
/** Customize the loading state content */
|
|
70
|
+
'panel-loader-content'?(): any;
|
|
71
|
+
}> & {
|
|
72
|
+
/** Main title of the panel */
|
|
73
|
+
'panel-title'(): any;
|
|
74
|
+
/** Subtitle, not mandatory */
|
|
75
|
+
'panel-subtitle'?(): any;
|
|
76
|
+
/** Top right corner actions. Put whatever you want */
|
|
77
|
+
'panel-title-action'?(): any;
|
|
78
|
+
/** Main content */
|
|
79
|
+
'panel-body'?(): any;
|
|
80
|
+
/** Mostly for CTA */
|
|
81
|
+
'panel-action'?(): any;
|
|
82
|
+
/** Customize the loading state content */
|
|
83
|
+
'panel-loader-content'?(): any;
|
|
68
84
|
}>;
|
|
69
85
|
export default _default;
|
|
70
86
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyProgressBarColors =
|
|
3
|
-
export declare const PROGRESSBAR_VARIANT: string[];
|
|
1
|
+
import { TGenericVariants } from '../../types';
|
|
2
|
+
export type TJoyProgressBarColors = TGenericVariants;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
/** import TJoyProgressBarColors */
|
|
3
4
|
color: {
|
|
4
|
-
type: PropType<"
|
|
5
|
+
type: PropType<import("../../types").TGenericVariants>;
|
|
5
6
|
default: string;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
@@ -26,8 +27,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
27
|
computeInnerWidth: import("vue").ComputedRef<string>;
|
|
27
28
|
computedPercentage: import("vue").Ref<number>;
|
|
28
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
/** import TJoyProgressBarColors */
|
|
29
31
|
color: {
|
|
30
|
-
type: PropType<"
|
|
32
|
+
type: PropType<import("../../types").TGenericVariants>;
|
|
31
33
|
default: string;
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
@@ -49,6 +51,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
51
|
type: NumberConstructor;
|
|
50
52
|
};
|
|
51
53
|
}>>, {
|
|
52
|
-
color: "
|
|
54
|
+
color: import("../../types").TGenericVariants;
|
|
53
55
|
}, {}>;
|
|
54
56
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type RadioThemes = (typeof RADIO_THEMES)[number];
|
|
1
|
+
export type RadioThemes = 'default' | 'outline';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { RadioThemes } from './JoyRadio.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
disabled: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -21,8 +22,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
22
|
modelValue: {
|
|
22
23
|
type: (StringConstructor | NumberConstructor)[];
|
|
23
24
|
};
|
|
25
|
+
/** Change the layout by using this property */
|
|
24
26
|
theme: {
|
|
25
|
-
type: PropType<
|
|
27
|
+
type: PropType<RadioThemes>;
|
|
26
28
|
default: string;
|
|
27
29
|
};
|
|
28
30
|
value: {
|
|
@@ -56,8 +58,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
58
|
modelValue: {
|
|
57
59
|
type: (StringConstructor | NumberConstructor)[];
|
|
58
60
|
};
|
|
61
|
+
/** Change the layout by using this property */
|
|
59
62
|
theme: {
|
|
60
|
-
type: PropType<
|
|
63
|
+
type: PropType<RadioThemes>;
|
|
61
64
|
default: string;
|
|
62
65
|
};
|
|
63
66
|
value: {
|
|
@@ -70,11 +73,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
70
73
|
required: boolean;
|
|
71
74
|
disabled: boolean;
|
|
72
75
|
invalid: boolean;
|
|
73
|
-
theme:
|
|
74
|
-
}, {}>, {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
theme: RadioThemes;
|
|
77
|
+
}, {}>, Readonly<{
|
|
78
|
+
/** Default label of the radio */
|
|
79
|
+
default(): any;
|
|
80
|
+
/** Sub-content, pre-styled. */
|
|
81
|
+
'radio-content': () => any;
|
|
82
|
+
/** When using the theme outline, use this slot to inject hidden content */
|
|
83
|
+
'expandable-content': () => any;
|
|
84
|
+
}> & {
|
|
85
|
+
/** Default label of the radio */
|
|
86
|
+
default(): any;
|
|
87
|
+
/** Sub-content, pre-styled. */
|
|
88
|
+
'radio-content': () => any;
|
|
89
|
+
/** When using the theme outline, use this slot to inject hidden content */
|
|
90
|
+
'expandable-content': () => any;
|
|
78
91
|
}>;
|
|
79
92
|
export default _default;
|
|
80
93
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type RadioGroupDirection = (typeof RADIO_GROUP_DIRECTION)[number];
|
|
1
|
+
export type RadioGroupDirection = 'vertical' | 'horizontal';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { RadioGroupDirection } from './JoyRadioGroup.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
/**
|
|
4
5
|
* Change the layout
|
|
5
6
|
*/
|
|
6
7
|
direction: {
|
|
7
|
-
type: PropType<
|
|
8
|
+
type: PropType<RadioGroupDirection>;
|
|
8
9
|
default: string;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
@@ -21,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
22
|
* Change the layout
|
|
22
23
|
*/
|
|
23
24
|
direction: {
|
|
24
|
-
type: PropType<
|
|
25
|
+
type: PropType<RadioGroupDirection>;
|
|
25
26
|
default: string;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
@@ -34,10 +35,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
35
|
type: StringConstructor;
|
|
35
36
|
};
|
|
36
37
|
}>>, {
|
|
37
|
-
direction:
|
|
38
|
-
}, {}>, {
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
direction: RadioGroupDirection;
|
|
39
|
+
}, {}>, Readonly<{
|
|
40
|
+
/** Label of the radio group */
|
|
41
|
+
'radio-group-legend': () => any;
|
|
42
|
+
/** Use it to render the VJoyRadio */
|
|
43
|
+
default(): any;
|
|
44
|
+
}> & {
|
|
45
|
+
/** Label of the radio group */
|
|
46
|
+
'radio-group-legend': () => any;
|
|
47
|
+
/** Use it to render the VJoyRadio */
|
|
48
|
+
default(): any;
|
|
41
49
|
}>;
|
|
42
50
|
export default _default;
|
|
43
51
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyRatingStarsSizes = Extract<
|
|
3
|
-
export declare const RATING_STARS_SIZES: TJoyRatingStarsSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyRatingStarsSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyRatingStarsSizes } from './JoyRatingStars.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
/** Between 0 and 5 */
|
|
4
5
|
ratingValue: {
|
|
5
6
|
type: NumberConstructor;
|
|
6
7
|
default: number;
|
|
7
8
|
};
|
|
9
|
+
/** Display the amount of review leading to the rating value */
|
|
8
10
|
reviewCount: {
|
|
9
11
|
type: NumberConstructor;
|
|
10
12
|
default: number;
|
|
@@ -16,10 +18,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
18
|
}, {
|
|
17
19
|
setStars: import("vue").ComputedRef<string[]>;
|
|
18
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
/** Between 0 and 5 */
|
|
19
22
|
ratingValue: {
|
|
20
23
|
type: NumberConstructor;
|
|
21
24
|
default: number;
|
|
22
25
|
};
|
|
26
|
+
/** Display the amount of review leading to the rating value */
|
|
23
27
|
reviewCount: {
|
|
24
28
|
type: NumberConstructor;
|
|
25
29
|
default: number;
|
|
@@ -32,8 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
36
|
size: TJoyRatingStarsSizes;
|
|
33
37
|
ratingValue: number;
|
|
34
38
|
reviewCount: number;
|
|
35
|
-
}, {}>, {
|
|
36
|
-
|
|
39
|
+
}, {}>, Readonly<{
|
|
40
|
+
/** Use this to inject some basic text */
|
|
41
|
+
'rating-stars-content': () => any;
|
|
42
|
+
}> & {
|
|
43
|
+
/** Use this to inject some basic text */
|
|
44
|
+
'rating-stars-content': () => any;
|
|
37
45
|
}>;
|
|
38
46
|
export default _default;
|
|
39
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoyScreenLoaderColors = (typeof COLORS)[number];
|
|
1
|
+
export type TJoyScreenLoaderColors = 'dark' | 'light';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyScreenLoaderColors } from './VJoyScreenLoader.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
/** Light or dark. Changes the spinner and background color */
|
|
4
5
|
color: {
|
|
5
|
-
type: PropType<
|
|
6
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
6
7
|
default: string;
|
|
7
8
|
};
|
|
8
9
|
/** The overlay mode set the component in an absolute position, and covers all the parent's area. */
|
|
@@ -13,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
14
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
15
|
/** Light or dark. Changes the spinner and background color */
|
|
15
16
|
color: {
|
|
16
|
-
type: PropType<
|
|
17
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
17
18
|
default: string;
|
|
18
19
|
};
|
|
19
20
|
/** The overlay mode set the component in an absolute position, and covers all the parent's area. */
|
|
@@ -22,11 +23,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
23
|
default: boolean;
|
|
23
24
|
};
|
|
24
25
|
}>>, {
|
|
25
|
-
color:
|
|
26
|
+
color: TJoyScreenLoaderColors;
|
|
26
27
|
overlay: boolean;
|
|
27
|
-
}, {}>, {
|
|
28
|
-
spinner
|
|
29
|
-
|
|
28
|
+
}, {}>, Readonly<{
|
|
29
|
+
/** Override the spinner */
|
|
30
|
+
spinner?: (() => any) | undefined;
|
|
31
|
+
/** Inject text or whatever you want below the spinner */
|
|
32
|
+
content?: (() => any) | undefined;
|
|
33
|
+
}> & {
|
|
34
|
+
/** Override the spinner */
|
|
35
|
+
spinner?: (() => any) | undefined;
|
|
36
|
+
/** Inject text or whatever you want below the spinner */
|
|
37
|
+
content?: (() => any) | undefined;
|
|
30
38
|
}>;
|
|
31
39
|
export default _default;
|
|
32
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoySelectSizes = Extract<
|
|
3
|
-
export declare const SELECT_SIZES: TJoySelectSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoySelectSizes = Extract<TSizes, 'xsmall' | 'small' | 'medium'>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
2
|
import { TJoySelectSizes } from './JoySelect.types';
|
|
3
|
+
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
5
|
disabled: {
|
|
5
6
|
type: BooleanConstructor;
|
|
@@ -21,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
22
|
};
|
|
22
23
|
label: StringConstructor;
|
|
23
24
|
labelSize: {
|
|
24
|
-
type: PropType<
|
|
25
|
+
type: PropType<TJoyLabelSizes>;
|
|
25
26
|
};
|
|
26
27
|
optionalLabel: StringConstructor;
|
|
27
28
|
requiredMark: {
|
|
@@ -62,7 +63,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
62
63
|
};
|
|
63
64
|
label: StringConstructor;
|
|
64
65
|
labelSize: {
|
|
65
|
-
type: PropType<
|
|
66
|
+
type: PropType<TJoyLabelSizes>;
|
|
66
67
|
};
|
|
67
68
|
optionalLabel: StringConstructor;
|
|
68
69
|
requiredMark: {
|
|
@@ -88,14 +89,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
88
89
|
modelValue: string | number | null;
|
|
89
90
|
requiredMark: boolean;
|
|
90
91
|
}, {}>, Readonly<{
|
|
91
|
-
|
|
92
|
+
/** Use native <option> tags here */
|
|
93
|
+
default(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
92
94
|
[key: string]: any;
|
|
93
95
|
}>[];
|
|
96
|
+
/** Label above the select */
|
|
94
97
|
'select-label'?: (() => any) | undefined;
|
|
95
98
|
}> & {
|
|
96
|
-
|
|
99
|
+
/** Use native <option> tags here */
|
|
100
|
+
default(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
97
101
|
[key: string]: any;
|
|
98
102
|
}>[];
|
|
103
|
+
/** Label above the select */
|
|
99
104
|
'select-label'?: (() => any) | undefined;
|
|
100
105
|
}>;
|
|
101
106
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
2
3
|
import { TJoySelectableItemOption } from '../JoySelectableItem/VJoySelectableItem.types';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
5
|
options: {
|
|
@@ -25,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
26
|
};
|
|
26
27
|
label: StringConstructor;
|
|
27
28
|
labelSize: {
|
|
28
|
-
type: PropType<
|
|
29
|
+
type: PropType<TJoyLabelSizes>;
|
|
29
30
|
default: string;
|
|
30
31
|
};
|
|
31
32
|
optionalLabel: StringConstructor;
|
|
@@ -60,7 +61,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
60
61
|
};
|
|
61
62
|
label: StringConstructor;
|
|
62
63
|
labelSize: {
|
|
63
|
-
type: PropType<
|
|
64
|
+
type: PropType<TJoyLabelSizes>;
|
|
64
65
|
default: string;
|
|
65
66
|
};
|
|
66
67
|
optionalLabel: StringConstructor;
|
|
@@ -74,71 +75,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
74
75
|
required: boolean;
|
|
75
76
|
value: string | unknown[];
|
|
76
77
|
multiple: boolean;
|
|
77
|
-
labelSize:
|
|
78
|
+
labelSize: TJoyLabelSizes;
|
|
78
79
|
requiredMark: boolean;
|
|
79
80
|
fullWidth: boolean;
|
|
80
|
-
}, {}>, {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
disabled?: boolean | undefined;
|
|
87
|
-
checked?: boolean | undefined;
|
|
88
|
-
invalid?: boolean | undefined;
|
|
89
|
-
multiple?: boolean | undefined;
|
|
90
|
-
key?: string | number | symbol | undefined;
|
|
91
|
-
ref?: import("vue").VNodeRef | undefined;
|
|
92
|
-
ref_for?: boolean | undefined;
|
|
93
|
-
ref_key?: string | undefined;
|
|
94
|
-
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
}>) => void)[] | undefined;
|
|
99
|
-
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
100
|
-
[key: string]: any;
|
|
101
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}>) => void)[] | undefined;
|
|
104
|
-
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
105
|
-
[key: string]: any;
|
|
106
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
107
|
-
[key: string]: any;
|
|
108
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
109
|
-
[key: string]: any;
|
|
110
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
111
|
-
[key: string]: any;
|
|
112
|
-
}>) => void)[] | undefined;
|
|
113
|
-
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
114
|
-
[key: string]: any;
|
|
115
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
116
|
-
[key: string]: any;
|
|
117
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
118
|
-
[key: string]: any;
|
|
119
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
120
|
-
[key: string]: any;
|
|
121
|
-
}>) => void)[] | undefined;
|
|
122
|
-
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
123
|
-
[key: string]: any;
|
|
124
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
125
|
-
[key: string]: any;
|
|
126
|
-
}>) => void)[] | undefined;
|
|
127
|
-
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
128
|
-
[key: string]: any;
|
|
129
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
130
|
-
[key: string]: any;
|
|
131
|
-
}>) => void)[] | undefined;
|
|
132
|
-
class?: unknown;
|
|
133
|
-
style?: unknown;
|
|
134
|
-
label?: string | undefined;
|
|
135
|
-
name?: string | undefined;
|
|
136
|
-
icon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
137
|
-
id: string;
|
|
138
|
-
"onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
|
|
139
|
-
value: string;
|
|
140
|
-
subLabel?: string | undefined;
|
|
141
|
-
}): any;
|
|
81
|
+
}, {}>, Readonly<{
|
|
82
|
+
/** Customize the inner HTML of each VJoySelectableItem */
|
|
83
|
+
item: () => any;
|
|
84
|
+
}> & {
|
|
85
|
+
/** Customize the inner HTML of each VJoySelectableItem */
|
|
86
|
+
item: () => any;
|
|
142
87
|
}>;
|
|
143
88
|
export default _default;
|
|
144
89
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
2
|
export type BinarySizes = 'default';
|
|
3
|
-
export type TJoySeparatorSizes = BinarySizes | Extract<
|
|
4
|
-
export declare const SEPARATOR_SIZES: TJoySeparatorSizes[];
|
|
3
|
+
export type TJoySeparatorSizes = BinarySizes | Extract<TSizes, 'small'>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { Emitter } from 'mitt';
|
|
3
3
|
import VJoySnackbar from './VJoySnackbar.vue';
|
|
4
|
-
import {
|
|
5
|
-
export type TJoySnackbarLevels = Exclude<
|
|
6
|
-
export declare const SNACKBAR_LEVELS: ("neutral" | "success" | "info" | "warning" | "error")[];
|
|
4
|
+
import { TLevels } from '../../types';
|
|
5
|
+
export type TJoySnackbarLevels = Exclude<TLevels, 'neutral'>;
|
|
7
6
|
export type TJoySnackbarEvents = {
|
|
8
7
|
'snackbar:hide': undefined;
|
|
9
8
|
'snackbar:show': undefined;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: PropType<TJoySnackbarLevels>;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
+
/** Allows to manually hide the component before its timeout */
|
|
10
11
|
closable: {
|
|
11
12
|
type: BooleanConstructor;
|
|
12
13
|
default: boolean;
|
|
@@ -32,6 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
33
|
actionText: {
|
|
33
34
|
type: StringConstructor;
|
|
34
35
|
};
|
|
36
|
+
/** Documentation purpose */
|
|
35
37
|
frozen: {
|
|
36
38
|
type: BooleanConstructor;
|
|
37
39
|
default: boolean;
|
|
@@ -40,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
42
|
bus: {
|
|
41
43
|
type: PropType<Emitter<TJoySnackbarEvents>>;
|
|
42
44
|
};
|
|
43
|
-
/**
|
|
45
|
+
/** Internal purpose */
|
|
44
46
|
instanceNb: {
|
|
45
47
|
type: NumberConstructor;
|
|
46
48
|
};
|
|
@@ -54,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
56
|
type: PropType<TJoySnackbarLevels>;
|
|
55
57
|
default: string;
|
|
56
58
|
};
|
|
59
|
+
/** Allows to manually hide the component before its timeout */
|
|
57
60
|
closable: {
|
|
58
61
|
type: BooleanConstructor;
|
|
59
62
|
default: boolean;
|
|
@@ -79,6 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
82
|
actionText: {
|
|
80
83
|
type: StringConstructor;
|
|
81
84
|
};
|
|
85
|
+
/** Documentation purpose */
|
|
82
86
|
frozen: {
|
|
83
87
|
type: BooleanConstructor;
|
|
84
88
|
default: boolean;
|
|
@@ -87,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
91
|
bus: {
|
|
88
92
|
type: PropType<Emitter<TJoySnackbarEvents>>;
|
|
89
93
|
};
|
|
90
|
-
/**
|
|
94
|
+
/** Internal purpose */
|
|
91
95
|
instanceNb: {
|
|
92
96
|
type: NumberConstructor;
|
|
93
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createAllSnackbarsContainer, pushVJoySnackbar, resetCount } from './VJoySnackbarService';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoySpinnerColors = (typeof SPINNER_COLORS)[number];
|
|
1
|
+
export type TJoySpinnerColors = 'teal' | 'white';
|
|
@@ -2,13 +2,11 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { TJoySpinnerColors } from './JoySpinner.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
color: {
|
|
5
|
-
type: PropType<
|
|
6
|
-
validator(color: TJoySpinnerColors): boolean;
|
|
5
|
+
type: PropType<TJoySpinnerColors>;
|
|
7
6
|
};
|
|
8
7
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
8
|
color: {
|
|
10
|
-
type: PropType<
|
|
11
|
-
validator(color: TJoySpinnerColors): boolean;
|
|
9
|
+
type: PropType<TJoySpinnerColors>;
|
|
12
10
|
};
|
|
13
11
|
}>>, {}, {}>;
|
|
14
12
|
export default _default;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyStepSizes } from './TJoyStep.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
/** Set it to completed to change it's color */
|
|
4
5
|
completed: {
|
|
5
6
|
type: BooleanConstructor;
|
|
6
7
|
default: boolean;
|
|
7
8
|
};
|
|
9
|
+
/** Progress substep of the current step */
|
|
8
10
|
currentSubStep: {
|
|
9
11
|
type: NumberConstructor;
|
|
10
12
|
default: number;
|
|
11
13
|
};
|
|
14
|
+
/** Adjust the text size, not the component size */
|
|
12
15
|
size: {
|
|
13
16
|
type: PropType<TJoyStepSizes>;
|
|
14
17
|
default: string;
|
|
15
18
|
};
|
|
19
|
+
/** Set the amount of sub steps of the current step */
|
|
16
20
|
subSteps: {
|
|
17
21
|
type: NumberConstructor;
|
|
18
22
|
default: number;
|
|
@@ -26,18 +30,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
30
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
31
|
"update:subSteps": () => void;
|
|
28
32
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
/** Set it to completed to change it's color */
|
|
29
34
|
completed: {
|
|
30
35
|
type: BooleanConstructor;
|
|
31
36
|
default: boolean;
|
|
32
37
|
};
|
|
38
|
+
/** Progress substep of the current step */
|
|
33
39
|
currentSubStep: {
|
|
34
40
|
type: NumberConstructor;
|
|
35
41
|
default: number;
|
|
36
42
|
};
|
|
43
|
+
/** Adjust the text size, not the component size */
|
|
37
44
|
size: {
|
|
38
45
|
type: PropType<TJoyStepSizes>;
|
|
39
46
|
default: string;
|
|
40
47
|
};
|
|
48
|
+
/** Set the amount of sub steps of the current step */
|
|
41
49
|
subSteps: {
|
|
42
50
|
type: NumberConstructor;
|
|
43
51
|
default: number;
|
|
@@ -54,8 +62,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
54
62
|
completed: boolean;
|
|
55
63
|
currentSubStep: number;
|
|
56
64
|
subSteps: number;
|
|
57
|
-
}, {}>, {
|
|
58
|
-
|
|
65
|
+
}, {}>, Readonly<{
|
|
66
|
+
/** Label of the step. For text only */
|
|
67
|
+
default(): any;
|
|
68
|
+
}> & {
|
|
69
|
+
/** Label of the step. For text only */
|
|
70
|
+
default(): any;
|
|
59
71
|
}>;
|
|
60
72
|
export default _default;
|
|
61
73
|
type __VLS_WithTemplateSlots<T, S> = T & {
|