@maltjoy/core-vue 3.27.1 → 3.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -1
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +3 -4
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +6 -4
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +4 -14
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +2 -1
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +8 -14
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +4 -8
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +0 -2
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +7 -20
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +6 -12
- package/dist/components/JoyButton/JoyButton.types.d.ts +20 -4
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -10
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +4 -10
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +4 -12
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +3 -2
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +0 -6
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +6 -11
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +3 -2
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +8 -30
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +20 -56
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +3 -10
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +2 -1
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +12 -32
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +30 -64
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -3
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +22 -29
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -2
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +21 -22
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +2 -8
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +2 -10
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +2 -6
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +4 -2
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +1 -8
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +4 -2
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +9 -21
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +4 -3
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -9
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +3 -4
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +2 -1
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +6 -9
- package/dist/components/JoyInput/JoyInput.types.d.ts +3 -2
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +7 -10
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +3 -2
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +7 -10
- package/dist/components/JoyLink/JoyLink.types.d.ts +2 -1
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +7 -8
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +10 -6
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +19 -16
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +6 -14
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +5 -3
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +14 -30
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +3 -2
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +3 -5
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +2 -1
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +7 -20
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +2 -1
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +6 -14
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +3 -2
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +2 -10
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +2 -1
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +6 -14
- package/dist/components/JoySelect/JoySelect.types.d.ts +3 -2
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +4 -9
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +65 -10
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +3 -2
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +3 -2
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +2 -6
- package/dist/components/JoySnackbar/index.d.ts +1 -1
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +2 -1
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +4 -2
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +2 -14
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +2 -10
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +0 -2
- package/dist/components/JoyTag/JoyTag.types.d.ts +5 -3
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +3 -13
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +19 -34
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +2 -1
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +2 -1
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +15 -67
- package/dist/components/JoyText/VJoyText.vue.d.ts +2 -6
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +5 -6
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -6
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +1 -0
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +6 -20
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +10 -5
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +18 -19
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +2190 -2117
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +10 -7
- package/package.json +24 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
3
2
|
export interface Option {
|
|
4
3
|
id: string;
|
|
5
4
|
name?: string;
|
|
@@ -16,14 +15,12 @@ export interface Option {
|
|
|
16
15
|
required?: boolean;
|
|
17
16
|
}
|
|
18
17
|
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 */
|
|
20
18
|
options: {
|
|
21
19
|
type: PropType<Option[]>;
|
|
22
20
|
required: true;
|
|
23
21
|
validator(value: Option[]): boolean;
|
|
24
22
|
};
|
|
25
23
|
id: StringConstructor;
|
|
26
|
-
/** Use it with `v-model:value` */
|
|
27
24
|
value: {
|
|
28
25
|
type: PropType<any[]>;
|
|
29
26
|
default(): never[];
|
|
@@ -34,11 +31,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
31
|
};
|
|
35
32
|
label: StringConstructor;
|
|
36
33
|
labelSize: {
|
|
37
|
-
type: PropType<
|
|
34
|
+
type: PropType<"small" | "large" | "medium">;
|
|
38
35
|
default: string;
|
|
39
36
|
};
|
|
40
37
|
optionalLabel: StringConstructor;
|
|
41
|
-
/** Display the "*" next to the label */
|
|
42
38
|
requiredMark: {
|
|
43
39
|
type: BooleanConstructor;
|
|
44
40
|
default: boolean;
|
|
@@ -46,14 +42,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
46
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
43
|
"update:value": (value: any[]) => void;
|
|
48
44
|
}, 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 */
|
|
50
45
|
options: {
|
|
51
46
|
type: PropType<Option[]>;
|
|
52
47
|
required: true;
|
|
53
48
|
validator(value: Option[]): boolean;
|
|
54
49
|
};
|
|
55
50
|
id: StringConstructor;
|
|
56
|
-
/** Use it with `v-model:value` */
|
|
57
51
|
value: {
|
|
58
52
|
type: PropType<any[]>;
|
|
59
53
|
default(): never[];
|
|
@@ -64,11 +58,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
58
|
};
|
|
65
59
|
label: StringConstructor;
|
|
66
60
|
labelSize: {
|
|
67
|
-
type: PropType<
|
|
61
|
+
type: PropType<"small" | "large" | "medium">;
|
|
68
62
|
default: string;
|
|
69
63
|
};
|
|
70
64
|
optionalLabel: StringConstructor;
|
|
71
|
-
/** Display the "*" next to the label */
|
|
72
65
|
requiredMark: {
|
|
73
66
|
type: BooleanConstructor;
|
|
74
67
|
default: boolean;
|
|
@@ -78,14 +71,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
78
71
|
}, {
|
|
79
72
|
required: boolean;
|
|
80
73
|
value: any[];
|
|
81
|
-
labelSize:
|
|
74
|
+
labelSize: "small" | "large" | "medium";
|
|
82
75
|
requiredMark: boolean;
|
|
83
|
-
}, {}>,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
}, {}>, {
|
|
77
|
+
checkbox?(_: {
|
|
78
|
+
id: string;
|
|
79
|
+
name?: string | undefined;
|
|
80
|
+
value: string;
|
|
81
|
+
label: string;
|
|
82
|
+
subLabel?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
disabled?: boolean | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
required?: boolean | undefined;
|
|
91
|
+
}): any;
|
|
89
92
|
}>;
|
|
90
93
|
export default _default;
|
|
91
94
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -57,20 +57,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
}, {
|
|
58
58
|
currentPage: number;
|
|
59
59
|
totalPages: number;
|
|
60
|
-
}, {}>,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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;
|
|
60
|
+
}, {}>, {
|
|
61
|
+
"pagination-prev"?(_: {}): any;
|
|
62
|
+
page?(_: {
|
|
63
|
+
page: number;
|
|
64
|
+
}): any;
|
|
65
|
+
"pagination-next"?(_: {}): any;
|
|
74
66
|
}>;
|
|
75
67
|
export default _default;
|
|
76
68
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyPanelSizes = Extract<
|
|
3
|
-
export
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoyPanelSizes = Extract<(typeof SIZES)[number], 'small' | 'medium' | 'large'>;
|
|
3
|
+
export declare const PANEL_SIZES: TJoyPanelSizes[];
|
|
4
|
+
export type TJoyPanelTitleSizes = Extract<(typeof SIZES)[number], 'small' | 'large'>;
|
|
5
|
+
export declare const PANEL_TITLE_SIZES: TJoyPanelTitleSizes[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyPanelSizes, TJoyPanelTitleSizes } from './JoyPanel.types';
|
|
3
|
-
import { TJoyScreenLoaderColors } from '../JoyScreenLoader/VJoyScreenLoader.types';
|
|
4
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
4
|
flex: {
|
|
6
5
|
type: StringConstructor;
|
|
@@ -12,17 +11,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
12
11
|
padding: {
|
|
13
12
|
type: PropType<TJoyPanelSizes>;
|
|
14
13
|
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;
|
|
19
20
|
};
|
|
20
21
|
loading: {
|
|
21
22
|
type: BooleanConstructor;
|
|
22
23
|
default: boolean;
|
|
23
24
|
};
|
|
24
25
|
loadingColor: {
|
|
25
|
-
type: PropType<
|
|
26
|
+
type: PropType<"light" | "dark">;
|
|
26
27
|
default: string;
|
|
27
28
|
};
|
|
28
29
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -36,17 +37,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
37
|
padding: {
|
|
37
38
|
type: PropType<TJoyPanelSizes>;
|
|
38
39
|
default: string;
|
|
40
|
+
validator(size: TJoyPanelSizes): boolean;
|
|
39
41
|
};
|
|
40
42
|
titleSize: {
|
|
41
43
|
type: PropType<TJoyPanelTitleSizes>;
|
|
42
44
|
default: string;
|
|
45
|
+
validator(size: TJoyPanelTitleSizes): boolean;
|
|
43
46
|
};
|
|
44
47
|
loading: {
|
|
45
48
|
type: BooleanConstructor;
|
|
46
49
|
default: boolean;
|
|
47
50
|
};
|
|
48
51
|
loadingColor: {
|
|
49
|
-
type: PropType<
|
|
52
|
+
type: PropType<"light" | "dark">;
|
|
50
53
|
default: string;
|
|
51
54
|
};
|
|
52
55
|
}>>, {
|
|
@@ -54,33 +57,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
54
57
|
noMargin: boolean;
|
|
55
58
|
padding: TJoyPanelSizes;
|
|
56
59
|
titleSize: TJoyPanelTitleSizes;
|
|
57
|
-
loadingColor:
|
|
58
|
-
}, {}>,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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;
|
|
60
|
+
loadingColor: "light" | "dark";
|
|
61
|
+
}, {}>, {
|
|
62
|
+
"panel-title"?(_: {}): any;
|
|
63
|
+
"panel-title-action"?(_: {}): any;
|
|
64
|
+
"panel-subtitle"?(_: {}): any;
|
|
65
|
+
"panel-body"?(_: {}): any;
|
|
66
|
+
"panel-action"?(_: {}): any;
|
|
67
|
+
"panel-loader-content"?(_: {}): any;
|
|
84
68
|
}>;
|
|
85
69
|
export default _default;
|
|
86
70
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyProgressBarColors =
|
|
1
|
+
import { GENERIC_VARIANTS } from '../../types';
|
|
2
|
+
export type TJoyProgressBarColors = (typeof GENERIC_VARIANTS)[number];
|
|
3
|
+
export declare const PROGRESSBAR_VARIANT: string[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
/** import TJoyProgressBarColors */
|
|
4
3
|
color: {
|
|
5
|
-
type: PropType<
|
|
4
|
+
type: PropType<"primary" | "secondary">;
|
|
6
5
|
default: string;
|
|
7
6
|
};
|
|
8
7
|
/**
|
|
@@ -27,9 +26,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
26
|
computeInnerWidth: import("vue").ComputedRef<string>;
|
|
28
27
|
computedPercentage: import("vue").Ref<number>;
|
|
29
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
/** import TJoyProgressBarColors */
|
|
31
29
|
color: {
|
|
32
|
-
type: PropType<
|
|
30
|
+
type: PropType<"primary" | "secondary">;
|
|
33
31
|
default: string;
|
|
34
32
|
};
|
|
35
33
|
/**
|
|
@@ -51,6 +49,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
49
|
type: NumberConstructor;
|
|
52
50
|
};
|
|
53
51
|
}>>, {
|
|
54
|
-
color:
|
|
52
|
+
color: "primary" | "secondary";
|
|
55
53
|
}, {}>;
|
|
56
54
|
export default _default;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const RADIO_THEMES: readonly ["default", "outline"];
|
|
2
|
+
export type RadioThemes = (typeof RADIO_THEMES)[number];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { RadioThemes } from './JoyRadio.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
disabled: {
|
|
5
4
|
type: BooleanConstructor;
|
|
@@ -22,9 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
21
|
modelValue: {
|
|
23
22
|
type: (StringConstructor | NumberConstructor)[];
|
|
24
23
|
};
|
|
25
|
-
/** Change the layout by using this property */
|
|
26
24
|
theme: {
|
|
27
|
-
type: PropType<
|
|
25
|
+
type: PropType<"default" | "outline">;
|
|
28
26
|
default: string;
|
|
29
27
|
};
|
|
30
28
|
value: {
|
|
@@ -58,9 +56,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
56
|
modelValue: {
|
|
59
57
|
type: (StringConstructor | NumberConstructor)[];
|
|
60
58
|
};
|
|
61
|
-
/** Change the layout by using this property */
|
|
62
59
|
theme: {
|
|
63
|
-
type: PropType<
|
|
60
|
+
type: PropType<"default" | "outline">;
|
|
64
61
|
default: string;
|
|
65
62
|
};
|
|
66
63
|
value: {
|
|
@@ -73,21 +70,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
73
70
|
required: boolean;
|
|
74
71
|
disabled: boolean;
|
|
75
72
|
invalid: boolean;
|
|
76
|
-
theme:
|
|
77
|
-
}, {}>,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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;
|
|
73
|
+
theme: "default" | "outline";
|
|
74
|
+
}, {}>, {
|
|
75
|
+
default?(_: {}): any;
|
|
76
|
+
"radio-content"?(_: {}): any;
|
|
77
|
+
"expandable-content"?(_: {}): any;
|
|
91
78
|
}>;
|
|
92
79
|
export default _default;
|
|
93
80
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const RADIO_GROUP_DIRECTION: readonly ["vertical", "horizontal"];
|
|
2
|
+
export type RadioGroupDirection = (typeof RADIO_GROUP_DIRECTION)[number];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { RadioGroupDirection } from './JoyRadioGroup.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
/**
|
|
5
4
|
* Change the layout
|
|
6
5
|
*/
|
|
7
6
|
direction: {
|
|
8
|
-
type: PropType<
|
|
7
|
+
type: PropType<"vertical" | "horizontal">;
|
|
9
8
|
default: string;
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
@@ -22,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
21
|
* Change the layout
|
|
23
22
|
*/
|
|
24
23
|
direction: {
|
|
25
|
-
type: PropType<
|
|
24
|
+
type: PropType<"vertical" | "horizontal">;
|
|
26
25
|
default: string;
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
@@ -35,17 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
34
|
type: StringConstructor;
|
|
36
35
|
};
|
|
37
36
|
}>>, {
|
|
38
|
-
direction:
|
|
39
|
-
}, {}>,
|
|
40
|
-
|
|
41
|
-
|
|
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;
|
|
37
|
+
direction: "vertical" | "horizontal";
|
|
38
|
+
}, {}>, {
|
|
39
|
+
"radio-group-legend"?(_: {}): any;
|
|
40
|
+
default?(_: {}): any;
|
|
49
41
|
}>;
|
|
50
42
|
export default _default;
|
|
51
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyRatingStarsSizes = Extract<
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoyRatingStarsSizes = Extract<(typeof SIZES)[number], 'small' | 'medium' | 'large'>;
|
|
3
|
+
export declare const RATING_STARS_SIZES: TJoyRatingStarsSizes[];
|
|
@@ -1,12 +1,10 @@
|
|
|
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 */
|
|
5
4
|
ratingValue: {
|
|
6
5
|
type: NumberConstructor;
|
|
7
6
|
default: number;
|
|
8
7
|
};
|
|
9
|
-
/** Display the amount of review leading to the rating value */
|
|
10
8
|
reviewCount: {
|
|
11
9
|
type: NumberConstructor;
|
|
12
10
|
default: number;
|
|
@@ -18,12 +16,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
16
|
}, {
|
|
19
17
|
setStars: import("vue").ComputedRef<string[]>;
|
|
20
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
/** Between 0 and 5 */
|
|
22
19
|
ratingValue: {
|
|
23
20
|
type: NumberConstructor;
|
|
24
21
|
default: number;
|
|
25
22
|
};
|
|
26
|
-
/** Display the amount of review leading to the rating value */
|
|
27
23
|
reviewCount: {
|
|
28
24
|
type: NumberConstructor;
|
|
29
25
|
default: number;
|
|
@@ -36,12 +32,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
32
|
size: TJoyRatingStarsSizes;
|
|
37
33
|
ratingValue: number;
|
|
38
34
|
reviewCount: number;
|
|
39
|
-
}, {}>,
|
|
40
|
-
|
|
41
|
-
'rating-stars-content': () => any;
|
|
42
|
-
}> & {
|
|
43
|
-
/** Use this to inject some basic text */
|
|
44
|
-
'rating-stars-content': () => any;
|
|
35
|
+
}, {}>, {
|
|
36
|
+
"rating-stars-content"?(_: {}): any;
|
|
45
37
|
}>;
|
|
46
38
|
export default _default;
|
|
47
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const COLORS: readonly ["dark", "light"];
|
|
2
|
+
export type TJoyScreenLoaderColors = (typeof COLORS)[number];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyScreenLoaderColors } from './VJoyScreenLoader.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
/** Light or dark. Changes the spinner and background color */
|
|
5
4
|
color: {
|
|
6
|
-
type: PropType<
|
|
5
|
+
type: PropType<"light" | "dark">;
|
|
7
6
|
default: string;
|
|
8
7
|
};
|
|
9
8
|
/** The overlay mode set the component in an absolute position, and covers all the parent's area. */
|
|
@@ -14,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
14
13
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
14
|
/** Light or dark. Changes the spinner and background color */
|
|
16
15
|
color: {
|
|
17
|
-
type: PropType<
|
|
16
|
+
type: PropType<"light" | "dark">;
|
|
18
17
|
default: string;
|
|
19
18
|
};
|
|
20
19
|
/** The overlay mode set the component in an absolute position, and covers all the parent's area. */
|
|
@@ -23,18 +22,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
23
22
|
default: boolean;
|
|
24
23
|
};
|
|
25
24
|
}>>, {
|
|
26
|
-
color:
|
|
25
|
+
color: "light" | "dark";
|
|
27
26
|
overlay: boolean;
|
|
28
|
-
}, {}>,
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
|
27
|
+
}, {}>, {
|
|
28
|
+
spinner?(_: {}): any;
|
|
29
|
+
content?(_: {}): any;
|
|
38
30
|
}>;
|
|
39
31
|
export default _default;
|
|
40
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoySelectSizes = Extract<
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoySelectSizes = Extract<(typeof SIZES)[number], 'xsmall' | 'small' | 'medium'>;
|
|
3
|
+
export declare const SELECT_SIZES: TJoySelectSizes[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
2
|
import { TJoySelectSizes } from './JoySelect.types';
|
|
3
|
-
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
4
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
4
|
disabled: {
|
|
6
5
|
type: BooleanConstructor;
|
|
@@ -22,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
21
|
};
|
|
23
22
|
label: StringConstructor;
|
|
24
23
|
labelSize: {
|
|
25
|
-
type: PropType<
|
|
24
|
+
type: PropType<"small" | "large" | "medium">;
|
|
26
25
|
};
|
|
27
26
|
optionalLabel: StringConstructor;
|
|
28
27
|
requiredMark: {
|
|
@@ -63,7 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
63
62
|
};
|
|
64
63
|
label: StringConstructor;
|
|
65
64
|
labelSize: {
|
|
66
|
-
type: PropType<
|
|
65
|
+
type: PropType<"small" | "large" | "medium">;
|
|
67
66
|
};
|
|
68
67
|
optionalLabel: StringConstructor;
|
|
69
68
|
requiredMark: {
|
|
@@ -89,18 +88,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
89
88
|
modelValue: string | number | null;
|
|
90
89
|
requiredMark: boolean;
|
|
91
90
|
}, {}>, Readonly<{
|
|
92
|
-
|
|
93
|
-
default(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
|
+
default: () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
94
92
|
[key: string]: any;
|
|
95
93
|
}>[];
|
|
96
|
-
/** Label above the select */
|
|
97
94
|
'select-label'?: (() => any) | undefined;
|
|
98
95
|
}> & {
|
|
99
|
-
|
|
100
|
-
default(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
96
|
+
default: () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
101
97
|
[key: string]: any;
|
|
102
98
|
}>[];
|
|
103
|
-
/** Label above the select */
|
|
104
99
|
'select-label'?: (() => any) | undefined;
|
|
105
100
|
}>;
|
|
106
101
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
3
2
|
import { TJoySelectableItemOption } from '../JoySelectableItem/VJoySelectableItem.types';
|
|
4
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
4
|
options: {
|
|
@@ -26,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
25
|
};
|
|
27
26
|
label: StringConstructor;
|
|
28
27
|
labelSize: {
|
|
29
|
-
type: PropType<
|
|
28
|
+
type: PropType<"small" | "large" | "medium">;
|
|
30
29
|
default: string;
|
|
31
30
|
};
|
|
32
31
|
optionalLabel: StringConstructor;
|
|
@@ -61,7 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
61
60
|
};
|
|
62
61
|
label: StringConstructor;
|
|
63
62
|
labelSize: {
|
|
64
|
-
type: PropType<
|
|
63
|
+
type: PropType<"small" | "large" | "medium">;
|
|
65
64
|
default: string;
|
|
66
65
|
};
|
|
67
66
|
optionalLabel: StringConstructor;
|
|
@@ -75,15 +74,71 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
74
|
required: boolean;
|
|
76
75
|
value: string | unknown[];
|
|
77
76
|
multiple: boolean;
|
|
78
|
-
labelSize:
|
|
77
|
+
labelSize: "small" | "large" | "medium";
|
|
79
78
|
requiredMark: boolean;
|
|
80
79
|
fullWidth: boolean;
|
|
81
|
-
}, {}>,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
}, {}>, {
|
|
81
|
+
item?(_: {
|
|
82
|
+
attrs?: {
|
|
83
|
+
[k: string]: any;
|
|
84
|
+
} | undefined;
|
|
85
|
+
required?: boolean | undefined;
|
|
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;
|
|
87
142
|
}>;
|
|
88
143
|
export default _default;
|
|
89
144
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
2
|
export type BinarySizes = 'default';
|
|
3
|
-
export type TJoySeparatorSizes = BinarySizes | Extract<
|
|
3
|
+
export type TJoySeparatorSizes = BinarySizes | Extract<(typeof SIZES)[number], 'small'>;
|
|
4
|
+
export declare const SEPARATOR_SIZES: TJoySeparatorSizes[];
|
|
@@ -1,8 +1,9 @@
|
|
|
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<
|
|
4
|
+
import { LEVELS } from '../../types';
|
|
5
|
+
export type TJoySnackbarLevels = Exclude<(typeof LEVELS)[number], 'neutral'>;
|
|
6
|
+
export declare const SNACKBAR_LEVELS: ("neutral" | "success" | "info" | "warning" | "error")[];
|
|
6
7
|
export type TJoySnackbarEvents = {
|
|
7
8
|
'snackbar:hide': undefined;
|
|
8
9
|
'snackbar:show': undefined;
|