@maltjoy/core-vue 3.15.5 → 3.16.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 -1
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +4 -4
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +13 -9
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +1 -1
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +1 -1
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +3 -4
- package/dist/components/JoyBadgeLevel/JoyBadgeLevel.types.d.ts +1 -1
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +1 -1
- package/dist/components/JoyButton/JoyButton.types.d.ts +14 -4
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +12 -12
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +4 -6
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +3 -3
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +4 -4
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +4 -4
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +2 -2
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +2 -2
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +23 -18
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -3
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +38 -16
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +1 -1
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +7 -3
- package/dist/components/JoyFooter/VJoyFooter.vue.d.ts +10 -0
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +1 -1
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +5 -0
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +53 -0
- package/dist/components/JoyHeader/VJoyHeader.vue.d.ts +10 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +3 -3
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +7 -8
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +4 -4
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +3 -3
- package/dist/components/JoyInput/JoyInput.types.d.ts +3 -3
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +14 -10
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +1 -1
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +3 -4
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +6 -7
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +22 -6
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +17 -3
- package/dist/components/JoyPagination/PaginationIcon.vue.d.ts +6 -2
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +2 -2
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +5 -5
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +17 -17
- package/dist/components/JoyPanelSection/VJoyPanelSection.vue.d.ts +2 -2
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -2
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +4 -4
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +2 -2
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +3 -3
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +5 -5
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -1
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +2 -2
- package/dist/components/JoySelect/JoySelect.types.d.ts +3 -3
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +7 -7
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +3 -3
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +3 -3
- package/dist/components/JoySeparator/VJoySeparator.vue.d.ts +4 -4
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -1
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +5 -5
- package/dist/components/JoyTab/TabButton.vue.d.ts +1 -1
- package/dist/components/JoyTab/VJoyTab.vue.d.ts +10 -3
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +3 -3
- package/dist/components/JoyTag/JoyTag.types.d.ts +4 -4
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +18 -6
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -1
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -3
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -1
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +7 -7
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +2 -2
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +6 -4
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -5
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +8 -8
- package/dist/components/components.types.d.ts +1 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +1368 -1634
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +2 -2
- package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
- package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +1 -1
- package/dist/types/index.d.ts +4 -0
- package/joy-components.d.ts +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyFunnelLayoutWidths, TJoyFunnelProfiles } from './JoyFunnel.types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* Remove decorative shapes placed at the bottom right corner
|
|
6
|
+
*/
|
|
7
|
+
hideShapes: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
layoutWidth: {
|
|
12
|
+
type: PropType<TJoyFunnelLayoutWidths>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
profile: {
|
|
16
|
+
type: PropType<TJoyFunnelProfiles>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
scrollOnTop: import("vue").Ref<boolean>;
|
|
21
|
+
hasStepperSlot: import("vue").ComputedRef<boolean>;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
/**
|
|
24
|
+
* Remove decorative shapes placed at the bottom right corner
|
|
25
|
+
*/
|
|
26
|
+
hideShapes: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
layoutWidth: {
|
|
31
|
+
type: PropType<TJoyFunnelLayoutWidths>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
profile: {
|
|
35
|
+
type: PropType<TJoyFunnelProfiles>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
profile: TJoyFunnelProfiles;
|
|
40
|
+
hideShapes: boolean;
|
|
41
|
+
layoutWidth: TJoyFunnelLayoutWidths;
|
|
42
|
+
}, {}>, Readonly<{
|
|
43
|
+
default: () => any;
|
|
44
|
+
'funnel-header': () => any;
|
|
45
|
+
'funnel-stepper'?: (() => any) | undefined;
|
|
46
|
+
'funnel-footer'?: (() => any) | undefined;
|
|
47
|
+
}>>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Readonly<{
|
|
2
|
+
'header-left': () => any;
|
|
3
|
+
'header-right': () => any;
|
|
4
|
+
}>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { LEVELS } from '
|
|
2
|
-
export type
|
|
3
|
-
export declare const HIGHLIGHT_LEVELS: ("neutral" | "
|
|
1
|
+
import { LEVELS } from '../../types';
|
|
2
|
+
export type TJoyHighlightLevels = (typeof LEVELS)[number];
|
|
3
|
+
export declare const HIGHLIGHT_LEVELS: ("neutral" | "success" | "info" | "warning" | "error")[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { HighlightLevels } from './JoyHighlight.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
accent: {
|
|
5
4
|
type: BooleanConstructor;
|
|
@@ -13,9 +12,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
12
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
13
|
};
|
|
15
14
|
level: {
|
|
16
|
-
type: PropType<"neutral" | "
|
|
15
|
+
type: PropType<"neutral" | "success" | "info" | "warning" | "error">;
|
|
17
16
|
default: string;
|
|
18
|
-
validator(level:
|
|
17
|
+
validator(level: "neutral" | "success" | "info" | "warning" | "error"): boolean;
|
|
19
18
|
};
|
|
20
19
|
}, {
|
|
21
20
|
getRelevantIcon: import("vue").ComputedRef<import("@maltjoy/icons").JoyIconsId>;
|
|
@@ -32,17 +31,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
31
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
33
32
|
};
|
|
34
33
|
level: {
|
|
35
|
-
type: PropType<"neutral" | "
|
|
34
|
+
type: PropType<"neutral" | "success" | "info" | "warning" | "error">;
|
|
36
35
|
default: string;
|
|
37
|
-
validator(level:
|
|
36
|
+
validator(level: "neutral" | "success" | "info" | "warning" | "error"): boolean;
|
|
38
37
|
};
|
|
39
38
|
}>>, {
|
|
40
39
|
accent: boolean;
|
|
41
40
|
displayIcon: boolean;
|
|
42
|
-
level: "neutral" | "
|
|
41
|
+
level: "neutral" | "success" | "info" | "warning" | "error";
|
|
43
42
|
}, {}>, {
|
|
44
|
-
|
|
45
|
-
default
|
|
43
|
+
"highlight-title"?(_: {}): any;
|
|
44
|
+
default?(_: {}): any;
|
|
46
45
|
}>;
|
|
47
46
|
export default _default;
|
|
48
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JoyIconsId } from '@maltjoy/icons';
|
|
2
|
-
export declare const JOY_ICONS_COLORS: readonly [...("neutral" | "
|
|
3
|
-
export type
|
|
2
|
+
export declare const JOY_ICONS_COLORS: readonly [...("neutral" | "success" | "info" | "warning" | "error")[], "primary", "secondary", "tertiary", "quaternary", "brand-primary", "brand-secondary", "white"];
|
|
3
|
+
export type TJoyIconsColors = (typeof JOY_ICONS_COLORS)[number];
|
|
4
4
|
export declare const JOY_ICONS_SIZES: readonly ["xlarge", "large", "medium", "small", "xsmall", "xxsmall"];
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
5
|
+
export type TJoyIconSizes = (typeof JOY_ICONS_SIZES)[number];
|
|
6
|
+
export type TJoyIconsNames = JoyIconsId;
|
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
|
-
type: PropType<"primary" | "secondary" | "
|
|
8
|
+
type: PropType<"primary" | "secondary" | "neutral" | "success" | "info" | "warning" | "error" | "tertiary" | "quaternary" | "white" | "brand-primary" | "brand-secondary">;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
size: {
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
color: {
|
|
21
|
-
type: PropType<"primary" | "secondary" | "
|
|
21
|
+
type: PropType<"primary" | "secondary" | "neutral" | "success" | "info" | "warning" | "error" | "tertiary" | "quaternary" | "white" | "brand-primary" | "brand-secondary">;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
@@ -27,6 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
}>>, {
|
|
29
29
|
size: "small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall";
|
|
30
|
-
color: "primary" | "secondary" | "
|
|
30
|
+
color: "primary" | "secondary" | "neutral" | "success" | "info" | "warning" | "error" | "tertiary" | "quaternary" | "white" | "brand-primary" | "brand-secondary";
|
|
31
31
|
}, {}>;
|
|
32
32
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SIZES } from '
|
|
2
|
-
export type
|
|
3
|
-
export declare const INPUT_SIZES:
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoyInputSizes = Extract<(typeof SIZES)[number], 'small' | 'medium' | 'large'>;
|
|
3
|
+
export declare const INPUT_SIZES: TJoyInputSizes[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { TJoyInputSizes } from './JoyInput.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
5
|
type: PropType<string | number | null>;
|
|
@@ -52,9 +52,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
52
52
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
53
53
|
};
|
|
54
54
|
size: {
|
|
55
|
-
type: PropType<
|
|
55
|
+
type: PropType<TJoyInputSizes>;
|
|
56
56
|
default: string;
|
|
57
|
-
validator(size:
|
|
57
|
+
validator(size: TJoyInputSizes): boolean;
|
|
58
58
|
};
|
|
59
59
|
type: {
|
|
60
60
|
type: StringConstructor;
|
|
@@ -62,7 +62,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
62
62
|
};
|
|
63
63
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
64
64
|
unit: StringConstructor;
|
|
65
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
65
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
+
"update:modelValue": (value: string) => void;
|
|
67
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
68
|
modelValue: {
|
|
67
69
|
type: PropType<string | number | null>;
|
|
68
70
|
};
|
|
@@ -114,9 +116,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
114
116
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
115
117
|
};
|
|
116
118
|
size: {
|
|
117
|
-
type: PropType<
|
|
119
|
+
type: PropType<TJoyInputSizes>;
|
|
118
120
|
default: string;
|
|
119
|
-
validator(size:
|
|
121
|
+
validator(size: TJoyInputSizes): boolean;
|
|
120
122
|
};
|
|
121
123
|
type: {
|
|
122
124
|
type: StringConstructor;
|
|
@@ -124,11 +126,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
124
126
|
};
|
|
125
127
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
126
128
|
unit: StringConstructor;
|
|
127
|
-
}
|
|
129
|
+
}>> & {
|
|
130
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
131
|
+
}, {
|
|
128
132
|
type: string;
|
|
129
|
-
size:
|
|
130
|
-
disabled: boolean;
|
|
133
|
+
size: TJoyInputSizes;
|
|
131
134
|
required: boolean;
|
|
135
|
+
disabled: boolean;
|
|
132
136
|
invalid: boolean;
|
|
133
137
|
labelSize: "small" | "large" | "medium";
|
|
134
138
|
requiredMark: boolean;
|
|
@@ -137,7 +141,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
137
141
|
};
|
|
138
142
|
clearable: boolean;
|
|
139
143
|
}, {}>, {
|
|
140
|
-
default
|
|
144
|
+
default?(_: {}): any;
|
|
141
145
|
}>;
|
|
142
146
|
export default _default;
|
|
143
147
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { LabelSizes } from './JoyLabel.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
size: {
|
|
5
4
|
type: PropType<"small" | "large" | "medium">;
|
|
6
5
|
default: string;
|
|
7
|
-
validator(size:
|
|
6
|
+
validator(size: "small" | "large" | "medium"): boolean;
|
|
8
7
|
};
|
|
9
8
|
tagName: {
|
|
10
9
|
type: PropType<"label" | "legend">;
|
|
@@ -22,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
21
|
size: {
|
|
23
22
|
type: PropType<"small" | "large" | "medium">;
|
|
24
23
|
default: string;
|
|
25
|
-
validator(size:
|
|
24
|
+
validator(size: "small" | "large" | "medium"): boolean;
|
|
26
25
|
};
|
|
27
26
|
tagName: {
|
|
28
27
|
type: PropType<"label" | "legend">;
|
|
@@ -41,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
40
|
required: boolean;
|
|
42
41
|
tagName: "label" | "legend";
|
|
43
42
|
}, {}>, {
|
|
44
|
-
default
|
|
43
|
+
default?(_: {}): any;
|
|
45
44
|
}>;
|
|
46
45
|
export default _default;
|
|
47
46
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { LinkColors } from './JoyLink.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
href: {
|
|
5
4
|
type: StringConstructor;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
7
|
color: {
|
|
9
|
-
type: PropType<"
|
|
8
|
+
type: PropType<"white" | "teal">;
|
|
10
9
|
default: string;
|
|
11
|
-
validator(color:
|
|
10
|
+
validator(color: "white" | "teal"): boolean;
|
|
12
11
|
};
|
|
13
12
|
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
13
|
text: PropType<string | null>;
|
|
@@ -18,16 +17,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
17
|
required: true;
|
|
19
18
|
};
|
|
20
19
|
color: {
|
|
21
|
-
type: PropType<"
|
|
20
|
+
type: PropType<"white" | "teal">;
|
|
22
21
|
default: string;
|
|
23
|
-
validator(color:
|
|
22
|
+
validator(color: "white" | "teal"): boolean;
|
|
24
23
|
};
|
|
25
24
|
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
26
25
|
text: PropType<string | null>;
|
|
27
26
|
}>>, {
|
|
28
|
-
color: "
|
|
27
|
+
color: "white" | "teal";
|
|
29
28
|
}, {}>, {
|
|
30
|
-
default
|
|
29
|
+
default?(_: {}): any;
|
|
31
30
|
}>;
|
|
32
31
|
export default _default;
|
|
33
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IJoyMenuItem } from './JoyMenu.types';
|
|
3
|
+
declare function getItems(): HTMLElement[];
|
|
4
|
+
declare function getItemId(item: IJoyMenuItem): string;
|
|
5
|
+
declare function getFocusedItem(): HTMLElement | undefined;
|
|
3
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
7
|
/**
|
|
5
8
|
* In order to make it work with v-model, you need to pass for each option, a value or an ID.
|
|
@@ -16,10 +19,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
19
|
};
|
|
17
20
|
}, {
|
|
18
21
|
activeMenuItemId: import("vue").Ref<string | undefined>;
|
|
19
|
-
getItems:
|
|
20
|
-
getItemId:
|
|
21
|
-
getFocusedItem:
|
|
22
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
getItems: typeof getItems;
|
|
23
|
+
getItemId: typeof getItemId;
|
|
24
|
+
getFocusedItem: typeof getFocusedItem;
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
selectItem: (value: IJoyMenuItem) => void;
|
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
28
|
/**
|
|
24
29
|
* In order to make it work with v-model, you need to pass for each option, a value or an ID.
|
|
25
30
|
*/
|
|
@@ -33,10 +38,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
38
|
ariaLabel: {
|
|
34
39
|
type: StringConstructor;
|
|
35
40
|
};
|
|
36
|
-
}
|
|
41
|
+
}>> & {
|
|
42
|
+
onSelectItem?: ((value: IJoyMenuItem) => any) | undefined;
|
|
43
|
+
}, {
|
|
37
44
|
items: IJoyMenuItem[];
|
|
38
45
|
}, {}>, {
|
|
39
|
-
|
|
46
|
+
"menu-item"?(_: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
label: string;
|
|
50
|
+
href?: string | undefined;
|
|
51
|
+
to?: string | undefined;
|
|
52
|
+
icon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
53
|
+
current?: boolean | undefined;
|
|
54
|
+
disabled?: boolean | undefined;
|
|
55
|
+
}): any;
|
|
40
56
|
}>;
|
|
41
57
|
export default _default;
|
|
42
58
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -18,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
options: {
|
|
19
19
|
type: PropType<Option[]>;
|
|
20
20
|
required: true;
|
|
21
|
-
validator(value:
|
|
21
|
+
validator(value: Option[]): boolean;
|
|
22
22
|
};
|
|
23
23
|
id: StringConstructor;
|
|
24
24
|
value: {
|
|
@@ -45,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
45
45
|
options: {
|
|
46
46
|
type: PropType<Option[]>;
|
|
47
47
|
required: true;
|
|
48
|
-
validator(value:
|
|
48
|
+
validator(value: Option[]): boolean;
|
|
49
49
|
};
|
|
50
50
|
id: StringConstructor;
|
|
51
51
|
value: {
|
|
@@ -74,7 +74,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
74
74
|
labelSize: "small" | "large" | "medium";
|
|
75
75
|
requiredMark: boolean;
|
|
76
76
|
}, {}>, {
|
|
77
|
-
checkbox
|
|
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;
|
|
78
92
|
}>;
|
|
79
93
|
export default _default;
|
|
80
94
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -11,7 +11,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
click: () => void;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
17
|
label: {
|
|
16
18
|
type: StringConstructor;
|
|
17
19
|
required: false;
|
|
@@ -24,7 +26,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
26
|
type: BooleanConstructor;
|
|
25
27
|
default: boolean;
|
|
26
28
|
};
|
|
27
|
-
}
|
|
29
|
+
}>> & {
|
|
30
|
+
onClick?: (() => any) | undefined;
|
|
31
|
+
}, {
|
|
28
32
|
disabled: boolean;
|
|
29
33
|
next: boolean;
|
|
30
34
|
}, {}>;
|
|
@@ -58,8 +58,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
currentPage: number;
|
|
59
59
|
totalPages: number;
|
|
60
60
|
}, {}>, {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
"pagination-prev"?(_: {}): any;
|
|
62
|
+
"pagination-next"?(_: {}): any;
|
|
63
63
|
}>;
|
|
64
64
|
export default _default;
|
|
65
65
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SIZES } from '
|
|
2
|
-
export type
|
|
3
|
-
export declare const PANEL_SIZES:
|
|
4
|
-
export type
|
|
5
|
-
export declare const PANEL_TITLE_SIZES:
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { TJoyPanelSizes, TJoyPanelTitleSizes } from './JoyPanel.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
flex: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -9,14 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
default: boolean;
|
|
10
10
|
};
|
|
11
11
|
padding: {
|
|
12
|
-
type: PropType<
|
|
12
|
+
type: PropType<TJoyPanelSizes>;
|
|
13
13
|
default: string;
|
|
14
|
-
validator(size:
|
|
14
|
+
validator(size: TJoyPanelSizes): boolean;
|
|
15
15
|
};
|
|
16
16
|
titleSize: {
|
|
17
|
-
type: PropType<
|
|
17
|
+
type: PropType<TJoyPanelTitleSizes>;
|
|
18
18
|
default: string;
|
|
19
|
-
validator(size:
|
|
19
|
+
validator(size: TJoyPanelTitleSizes): boolean;
|
|
20
20
|
};
|
|
21
21
|
loading: {
|
|
22
22
|
type: BooleanConstructor;
|
|
@@ -35,14 +35,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
37
|
padding: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<TJoyPanelSizes>;
|
|
39
39
|
default: string;
|
|
40
|
-
validator(size:
|
|
40
|
+
validator(size: TJoyPanelSizes): boolean;
|
|
41
41
|
};
|
|
42
42
|
titleSize: {
|
|
43
|
-
type: PropType<
|
|
43
|
+
type: PropType<TJoyPanelTitleSizes>;
|
|
44
44
|
default: string;
|
|
45
|
-
validator(size:
|
|
45
|
+
validator(size: TJoyPanelTitleSizes): boolean;
|
|
46
46
|
};
|
|
47
47
|
loading: {
|
|
48
48
|
type: BooleanConstructor;
|
|
@@ -55,16 +55,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
55
|
}>>, {
|
|
56
56
|
loading: boolean;
|
|
57
57
|
noMargin: boolean;
|
|
58
|
-
padding:
|
|
59
|
-
titleSize:
|
|
58
|
+
padding: TJoyPanelSizes;
|
|
59
|
+
titleSize: TJoyPanelTitleSizes;
|
|
60
60
|
loadingColor: "dark" | "light";
|
|
61
61
|
}, {}>, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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;
|
|
68
68
|
}>;
|
|
69
69
|
export default _default;
|
|
70
70
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"panel-section-title"?(_: {}): any;
|
|
3
|
+
"panel-section-content"?(_: {}): any;
|
|
4
4
|
}>;
|
|
5
5
|
export default _default;
|
|
6
6
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GENERIC_VARIANTS } from '
|
|
2
|
-
export type
|
|
1
|
+
import { GENERIC_VARIANTS } from '../../types';
|
|
2
|
+
export type TJoyProgressBarColors = (typeof GENERIC_VARIANTS)[number];
|
|
3
3
|
export declare const PROGRESSBAR_VARIANT: string[];
|
|
@@ -67,14 +67,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
67
|
}>> & {
|
|
68
68
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
disabled: boolean;
|
|
71
70
|
required: boolean;
|
|
71
|
+
disabled: boolean;
|
|
72
72
|
invalid: boolean;
|
|
73
73
|
theme: "default" | "outline";
|
|
74
74
|
}, {}>, {
|
|
75
|
-
default
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
default?(_: {}): any;
|
|
76
|
+
"radio-content"?(_: {}): any;
|
|
77
|
+
"expandable-content"?(_: {}): any;
|
|
78
78
|
}>;
|
|
79
79
|
export default _default;
|
|
80
80
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -36,8 +36,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
36
|
}>>, {
|
|
37
37
|
direction: "vertical" | "horizontal";
|
|
38
38
|
}, {}>, {
|
|
39
|
-
|
|
40
|
-
default
|
|
39
|
+
"radio-group-legend"?(_: {}): any;
|
|
40
|
+
default?(_: {}): any;
|
|
41
41
|
}>;
|
|
42
42
|
export default _default;
|
|
43
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SIZES } from '
|
|
2
|
-
export type
|
|
3
|
-
export declare const RATING_STARS_SIZES:
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { TJoyRatingStarsSizes } from './JoyRatingStars.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
ratingValue: {
|
|
5
5
|
type: NumberConstructor;
|
|
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: number;
|
|
11
11
|
};
|
|
12
12
|
size: {
|
|
13
|
-
type: PropType<
|
|
13
|
+
type: PropType<TJoyRatingStarsSizes>;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
16
|
}, {
|
|
@@ -25,15 +25,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
27
|
size: {
|
|
28
|
-
type: PropType<
|
|
28
|
+
type: PropType<TJoyRatingStarsSizes>;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}>>, {
|
|
32
|
-
size:
|
|
32
|
+
size: TJoyRatingStarsSizes;
|
|
33
33
|
ratingValue: number;
|
|
34
34
|
reviewCount: number;
|
|
35
35
|
}, {}>, {
|
|
36
|
-
|
|
36
|
+
"rating-stars-content"?(_: {}): any;
|
|
37
37
|
}>;
|
|
38
38
|
export default _default;
|
|
39
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const COLORS: readonly ["dark", "light"];
|
|
2
|
-
export type
|
|
2
|
+
export type TJoyScreenLoaderColors = (typeof COLORS)[number];
|
|
@@ -25,8 +25,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
color: "dark" | "light";
|
|
26
26
|
overlay: boolean;
|
|
27
27
|
}, {}>, {
|
|
28
|
-
spinner
|
|
29
|
-
content
|
|
28
|
+
spinner?(_: {}): any;
|
|
29
|
+
content?(_: {}): any;
|
|
30
30
|
}>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SIZES } from '
|
|
2
|
-
export type
|
|
3
|
-
export declare const SELECT_SIZES:
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
|
+
export type TJoySelectSizes = Extract<(typeof SIZES)[number], 'xsmall' | 'small' | 'medium'>;
|
|
3
|
+
export declare const SELECT_SIZES: TJoySelectSizes[];
|