@maltjoy/core-vue 3.5.0 → 3.5.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/JoyButton/VJoyButton.vue.d.ts +6 -10
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +1 -1
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +1 -1
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +6 -10
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +3 -7
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +2 -6
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +1 -1
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +1 -1
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/helpers/index.d.ts +1 -2
- package/dist/joy-vue.js +615 -638
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
- 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 +0 -5
- package/joy-components.d.ts +0 -1
- package/package.json +3 -3
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +0 -6
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +0 -32
|
@@ -10,9 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
/** Name of the icon, placed before the text */
|
|
13
|
-
icon:
|
|
14
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
15
|
-
};
|
|
13
|
+
icon: StringConstructor;
|
|
16
14
|
/** Left to the text or right */
|
|
17
15
|
iconPosition: {
|
|
18
16
|
type: PropType<"left" | "right">;
|
|
@@ -31,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
29
|
};
|
|
32
30
|
/** Button or Link color variant */
|
|
33
31
|
variant: {
|
|
34
|
-
type: PropType<"main" | "ghost" | "
|
|
32
|
+
type: PropType<"main" | "ghost" | "secondary" | "white" | "primary" | "admin">;
|
|
35
33
|
default: string;
|
|
36
34
|
validator(variant: ButtonVariants): boolean;
|
|
37
35
|
};
|
|
@@ -51,9 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
51
49
|
default: boolean;
|
|
52
50
|
};
|
|
53
51
|
/** Name of the icon, placed before the text */
|
|
54
|
-
icon:
|
|
55
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
56
|
-
};
|
|
52
|
+
icon: StringConstructor;
|
|
57
53
|
/** Left to the text or right */
|
|
58
54
|
iconPosition: {
|
|
59
55
|
type: PropType<"left" | "right">;
|
|
@@ -72,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
68
|
};
|
|
73
69
|
/** Button or Link color variant */
|
|
74
70
|
variant: {
|
|
75
|
-
type: PropType<"main" | "ghost" | "
|
|
71
|
+
type: PropType<"main" | "ghost" | "secondary" | "white" | "primary" | "admin">;
|
|
76
72
|
default: string;
|
|
77
73
|
validator(variant: ButtonVariants): boolean;
|
|
78
74
|
};
|
|
@@ -84,10 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
80
|
};
|
|
85
81
|
}>>, {
|
|
86
82
|
circle: boolean;
|
|
87
|
-
variant: "main" | "ghost" | "
|
|
88
|
-
size: ButtonSizes;
|
|
83
|
+
variant: "main" | "ghost" | "secondary" | "white" | "primary" | "admin";
|
|
89
84
|
iconPosition: "left" | "right";
|
|
90
85
|
loading: boolean;
|
|
86
|
+
size: ButtonSizes;
|
|
91
87
|
}>, {
|
|
92
88
|
default: (_: {}) => any;
|
|
93
89
|
}>;
|
|
@@ -99,10 +99,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
99
99
|
}, {
|
|
100
100
|
value: string;
|
|
101
101
|
checked: boolean;
|
|
102
|
-
required: boolean;
|
|
103
102
|
disabled: boolean;
|
|
104
103
|
indeterminate: boolean;
|
|
105
104
|
displayFocus: boolean;
|
|
105
|
+
required: boolean;
|
|
106
106
|
}>, {
|
|
107
107
|
default: (_: {}) => any;
|
|
108
108
|
'checkbox-content': (_: {}) => any;
|
|
@@ -192,8 +192,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
192
192
|
}>> & {
|
|
193
193
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
194
194
|
}, {
|
|
195
|
-
required: boolean;
|
|
196
195
|
disabled: boolean;
|
|
196
|
+
required: boolean;
|
|
197
197
|
modelValue: number;
|
|
198
198
|
min: number;
|
|
199
199
|
step: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LEVELS } from '@/types';
|
|
2
2
|
export type HighlightLevels = (typeof LEVELS)[number];
|
|
3
|
-
export declare const HIGHLIGHT_LEVELS: ("info" | "error" | "
|
|
3
|
+
export declare const HIGHLIGHT_LEVELS: ("info" | "error" | "neutral" | "success" | "warning")[];
|
|
@@ -9,16 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
|
-
icon:
|
|
13
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
14
|
-
};
|
|
12
|
+
icon: StringConstructor;
|
|
15
13
|
level: {
|
|
16
|
-
type: PropType<"info" | "error" | "
|
|
14
|
+
type: PropType<"info" | "error" | "neutral" | "success" | "warning">;
|
|
17
15
|
default: string;
|
|
18
16
|
validator(level: HighlightLevels): boolean;
|
|
19
17
|
};
|
|
20
18
|
}, {
|
|
21
|
-
getRelevantIcon: import("vue").ComputedRef<
|
|
19
|
+
getRelevantIcon: import("vue").ComputedRef<string>;
|
|
22
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
21
|
accent: {
|
|
24
22
|
type: BooleanConstructor;
|
|
@@ -28,18 +26,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
28
26
|
type: BooleanConstructor;
|
|
29
27
|
default: boolean;
|
|
30
28
|
};
|
|
31
|
-
icon:
|
|
32
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
33
|
-
};
|
|
29
|
+
icon: StringConstructor;
|
|
34
30
|
level: {
|
|
35
|
-
type: PropType<"info" | "error" | "
|
|
31
|
+
type: PropType<"info" | "error" | "neutral" | "success" | "warning">;
|
|
36
32
|
default: string;
|
|
37
33
|
validator(level: HighlightLevels): boolean;
|
|
38
34
|
};
|
|
39
35
|
}>>, {
|
|
40
36
|
accent: boolean;
|
|
41
37
|
displayIcon: boolean;
|
|
42
|
-
level: "info" | "error" | "
|
|
38
|
+
level: "info" | "error" | "neutral" | "success" | "warning";
|
|
43
39
|
}>, {
|
|
44
40
|
'highlight-title': (_: {}) => any;
|
|
45
41
|
default: (_: {}) => any;
|
|
@@ -43,9 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
45
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
46
|
-
icon:
|
|
47
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
48
|
-
};
|
|
46
|
+
icon: StringConstructor;
|
|
49
47
|
size: {
|
|
50
48
|
type: PropType<InputSizes>;
|
|
51
49
|
default: string;
|
|
@@ -99,9 +97,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
99
97
|
default: boolean;
|
|
100
98
|
};
|
|
101
99
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
102
|
-
icon:
|
|
103
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
104
|
-
};
|
|
100
|
+
icon: StringConstructor;
|
|
105
101
|
size: {
|
|
106
102
|
type: PropType<InputSizes>;
|
|
107
103
|
default: string;
|
|
@@ -114,8 +110,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
114
110
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
115
111
|
}, {
|
|
116
112
|
size: InputSizes;
|
|
117
|
-
required: boolean;
|
|
118
113
|
disabled: boolean;
|
|
114
|
+
required: boolean;
|
|
119
115
|
invalid: boolean;
|
|
120
116
|
labelSize: "small" | "medium" | "large";
|
|
121
117
|
requiredMark: boolean;
|
|
@@ -10,9 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: string;
|
|
11
11
|
validator(color: LinkColors): boolean;
|
|
12
12
|
};
|
|
13
|
-
icon:
|
|
14
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
15
|
-
};
|
|
13
|
+
icon: StringConstructor;
|
|
16
14
|
text: StringConstructor;
|
|
17
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
16
|
href: {
|
|
@@ -24,9 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
22
|
default: string;
|
|
25
23
|
validator(color: LinkColors): boolean;
|
|
26
24
|
};
|
|
27
|
-
icon:
|
|
28
|
-
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
29
|
-
};
|
|
25
|
+
icon: StringConstructor;
|
|
30
26
|
text: StringConstructor;
|
|
31
27
|
}>>, {
|
|
32
28
|
color: "teal" | "white";
|
|
@@ -67,8 +67,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
67
|
}>> & {
|
|
68
68
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
required: boolean;
|
|
71
70
|
disabled: boolean;
|
|
71
|
+
required: boolean;
|
|
72
72
|
invalid: boolean;
|
|
73
73
|
theme: "default" | "outline";
|
|
74
74
|
}>, {
|
|
@@ -70,8 +70,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
70
70
|
}>> & {
|
|
71
71
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
72
72
|
}, {
|
|
73
|
-
required: boolean;
|
|
74
73
|
disabled: boolean;
|
|
74
|
+
required: boolean;
|
|
75
75
|
modelValue: string;
|
|
76
76
|
invalid: boolean;
|
|
77
77
|
labelSize: "small" | "medium" | "large";
|
|
@@ -68,8 +68,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
68
68
|
"onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
checked: boolean;
|
|
71
|
-
required: boolean;
|
|
72
71
|
disabled: boolean;
|
|
72
|
+
required: boolean;
|
|
73
73
|
multiple: boolean;
|
|
74
74
|
invalid: boolean;
|
|
75
75
|
}>, {
|
|
@@ -96,8 +96,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
96
96
|
}>> & {
|
|
97
97
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
98
98
|
}, {
|
|
99
|
-
required: boolean;
|
|
100
99
|
disabled: boolean;
|
|
100
|
+
required: boolean;
|
|
101
101
|
modelValue: string;
|
|
102
102
|
invalid: boolean;
|
|
103
103
|
labelSize: "small" | "medium" | "large";
|
|
@@ -58,8 +58,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
value: string;
|
|
61
|
-
required: boolean;
|
|
62
61
|
disabled: boolean;
|
|
62
|
+
required: boolean;
|
|
63
63
|
modelValue: boolean;
|
|
64
64
|
invalid: boolean;
|
|
65
65
|
}>, {
|
|
@@ -6,7 +6,6 @@ import VJoyDropdown from '@/components/JoyDropdown/VJoyDropdown.vue';
|
|
|
6
6
|
import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue';
|
|
7
7
|
import VJoyFormError from '@/components/JoyFormError/VJoyFormError.vue';
|
|
8
8
|
import VJoyHighlight from '@/components/JoyHighlight/VJoyHighlight.vue';
|
|
9
|
-
import VJoyIcon from '@/components/JoyIcon/VJoyIcon.vue';
|
|
10
9
|
import VJoyInput from '@/components/JoyInput/VJoyInput.vue';
|
|
11
10
|
import VJoyLabel from '@/components/JoyLabel/VJoyLabel.vue';
|
|
12
11
|
import VJoyLink from '@/components/JoyLink/VJoyLink.vue';
|
|
@@ -23,4 +22,4 @@ import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
|
|
|
23
22
|
import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
|
|
24
23
|
import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
|
|
25
24
|
import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
|
|
26
|
-
export { VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight,
|
|
25
|
+
export { VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
|
package/dist/helpers/index.d.ts
CHANGED