@maltjoy/core-vue 3.26.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 +42 -12
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +84 -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 +2091 -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,13 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLinkColors } from './JoyLink.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
href: {
|
|
4
5
|
type: StringConstructor;
|
|
5
6
|
required: true;
|
|
6
7
|
};
|
|
7
8
|
color: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<TJoyLinkColors>;
|
|
9
10
|
default: string;
|
|
10
|
-
validator(color: "white" | "teal"): boolean;
|
|
11
11
|
};
|
|
12
12
|
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
13
13
|
text: PropType<string | null>;
|
|
@@ -17,16 +17,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
19
|
color: {
|
|
20
|
-
type: PropType<
|
|
20
|
+
type: PropType<TJoyLinkColors>;
|
|
21
21
|
default: string;
|
|
22
|
-
validator(color: "white" | "teal"): boolean;
|
|
23
22
|
};
|
|
24
23
|
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
25
24
|
text: PropType<string | null>;
|
|
26
25
|
}>>, {
|
|
27
|
-
color:
|
|
28
|
-
}, {}>, {
|
|
29
|
-
default
|
|
26
|
+
color: TJoyLinkColors;
|
|
27
|
+
}, {}>, Readonly<{
|
|
28
|
+
default(): any;
|
|
29
|
+
}> & {
|
|
30
|
+
default(): any;
|
|
30
31
|
}>;
|
|
31
32
|
export default _default;
|
|
32
33
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -42,16 +42,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
42
|
onSelectItem?: ((value: IJoyMenuItem) => any) | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
items: IJoyMenuItem[];
|
|
45
|
-
}, {}>, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
icon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
52
|
-
current?: boolean | undefined;
|
|
53
|
-
disabled?: boolean | undefined;
|
|
54
|
-
}): any;
|
|
45
|
+
}, {}>, Readonly<{
|
|
46
|
+
/** Customize the inner content of each menu item */
|
|
47
|
+
'menu-item': () => any;
|
|
48
|
+
}> & {
|
|
49
|
+
/** Customize the inner content of each menu item */
|
|
50
|
+
'menu-item': () => any;
|
|
55
51
|
}>;
|
|
56
52
|
export default _default;
|
|
57
53
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
2
3
|
export interface Option {
|
|
3
4
|
id: string;
|
|
4
5
|
name?: string;
|
|
@@ -15,12 +16,14 @@ export interface Option {
|
|
|
15
16
|
required?: boolean;
|
|
16
17
|
}
|
|
17
18
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
19
|
+
/** To render the list of checkboxes you have to use this property. See "Controls" for object model */
|
|
18
20
|
options: {
|
|
19
21
|
type: PropType<Option[]>;
|
|
20
22
|
required: true;
|
|
21
23
|
validator(value: Option[]): boolean;
|
|
22
24
|
};
|
|
23
25
|
id: StringConstructor;
|
|
26
|
+
/** Use it with `v-model:value` */
|
|
24
27
|
value: {
|
|
25
28
|
type: PropType<any[]>;
|
|
26
29
|
default(): never[];
|
|
@@ -31,10 +34,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
34
|
};
|
|
32
35
|
label: StringConstructor;
|
|
33
36
|
labelSize: {
|
|
34
|
-
type: PropType<
|
|
37
|
+
type: PropType<TJoyLabelSizes>;
|
|
35
38
|
default: string;
|
|
36
39
|
};
|
|
37
40
|
optionalLabel: StringConstructor;
|
|
41
|
+
/** Display the "*" next to the label */
|
|
38
42
|
requiredMark: {
|
|
39
43
|
type: BooleanConstructor;
|
|
40
44
|
default: boolean;
|
|
@@ -42,12 +46,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
46
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
47
|
"update:value": (value: any[]) => void;
|
|
44
48
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
/** To render the list of checkboxes you have to use this property. See "Controls" for object model */
|
|
45
50
|
options: {
|
|
46
51
|
type: PropType<Option[]>;
|
|
47
52
|
required: true;
|
|
48
53
|
validator(value: Option[]): boolean;
|
|
49
54
|
};
|
|
50
55
|
id: StringConstructor;
|
|
56
|
+
/** Use it with `v-model:value` */
|
|
51
57
|
value: {
|
|
52
58
|
type: PropType<any[]>;
|
|
53
59
|
default(): never[];
|
|
@@ -58,10 +64,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
64
|
};
|
|
59
65
|
label: StringConstructor;
|
|
60
66
|
labelSize: {
|
|
61
|
-
type: PropType<
|
|
67
|
+
type: PropType<TJoyLabelSizes>;
|
|
62
68
|
default: string;
|
|
63
69
|
};
|
|
64
70
|
optionalLabel: StringConstructor;
|
|
71
|
+
/** Display the "*" next to the label */
|
|
65
72
|
requiredMark: {
|
|
66
73
|
type: BooleanConstructor;
|
|
67
74
|
default: boolean;
|
|
@@ -71,24 +78,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
71
78
|
}, {
|
|
72
79
|
required: boolean;
|
|
73
80
|
value: any[];
|
|
74
|
-
labelSize:
|
|
81
|
+
labelSize: TJoyLabelSizes;
|
|
75
82
|
requiredMark: boolean;
|
|
76
|
-
}, {}>, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
subLabel?: string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
|
-
disabled?: boolean | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
required?: boolean | undefined;
|
|
91
|
-
}): any;
|
|
83
|
+
}, {}>, Readonly<{
|
|
84
|
+
/** Customize the inner content of each checkboxes */
|
|
85
|
+
checkbox?: (() => any) | undefined;
|
|
86
|
+
}> & {
|
|
87
|
+
/** Customize the inner content of each checkboxes */
|
|
88
|
+
checkbox?: (() => any) | undefined;
|
|
92
89
|
}>;
|
|
93
90
|
export default _default;
|
|
94
91
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -57,12 +57,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
}, {
|
|
58
58
|
currentPage: number;
|
|
59
59
|
totalPages: number;
|
|
60
|
-
}, {}>, {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
}, {}>, Readonly<{
|
|
61
|
+
/** Customize the content of the left arrow */
|
|
62
|
+
'pagination-prev'?: (() => any) | undefined;
|
|
63
|
+
/** Customize the content of the right arrow */
|
|
64
|
+
'pagination-next'?: (() => any) | undefined;
|
|
65
|
+
/** Customize the content of each pagination item */
|
|
66
|
+
page?: (() => any) | undefined;
|
|
67
|
+
}> & {
|
|
68
|
+
/** Customize the content of the left arrow */
|
|
69
|
+
'pagination-prev'?: (() => any) | undefined;
|
|
70
|
+
/** Customize the content of the right arrow */
|
|
71
|
+
'pagination-next'?: (() => any) | undefined;
|
|
72
|
+
/** Customize the content of each pagination item */
|
|
73
|
+
page?: (() => any) | undefined;
|
|
66
74
|
}>;
|
|
67
75
|
export default _default;
|
|
68
76
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyPanelSizes = Extract<
|
|
3
|
-
export
|
|
4
|
-
export type TJoyPanelTitleSizes = Extract<(typeof SIZES)[number], 'small' | 'large'>;
|
|
5
|
-
export declare const PANEL_TITLE_SIZES: TJoyPanelTitleSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyPanelSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
3
|
+
export type TJoyPanelTitleSizes = Extract<TSizes, 'small' | 'large'>;
|
|
@@ -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;
|