@maltjoy/core-vue 3.19.5 → 3.19.7
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/JoyIndicator/VJoyIndicator.vue.d.ts +2 -2
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +4 -4
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +4 -1
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +6 -6
- package/dist/components/JoyTag/JoyTag.types.d.ts +1 -1
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +17 -12
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +3 -3
- package/dist/joy-vue.js +747 -725
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
/** Value is used for the parent v-model. Mandatory */
|
|
4
4
|
value: {
|
|
5
|
-
type: StringConstructor;
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
/** Automatically handled by parent. No need to set it manually */
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
/** Value is used for the parent v-model. Mandatory */
|
|
23
23
|
value: {
|
|
24
|
-
type: StringConstructor;
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
25
25
|
required: true;
|
|
26
26
|
};
|
|
27
27
|
/** Automatically handled by parent. No need to set it manually */
|
|
@@ -7,12 +7,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
/** Use the component with a v-model to easily handle selected items */
|
|
9
9
|
modelValue: {
|
|
10
|
-
type: StringConstructor;
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
indicators: import("vue").ComputedRef<import("vue").DefineComponent<{
|
|
14
14
|
value: {
|
|
15
|
-
type: StringConstructor;
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
selected: {
|
|
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
28
28
|
};
|
|
29
29
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
value: {
|
|
31
|
-
type: StringConstructor;
|
|
31
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
34
|
selected: {
|
|
@@ -55,7 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
55
|
};
|
|
56
56
|
/** Use the component with a v-model to easily handle selected items */
|
|
57
57
|
modelValue: {
|
|
58
|
-
type: StringConstructor;
|
|
58
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
59
59
|
};
|
|
60
60
|
}>> & {
|
|
61
61
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyInputSizes } from './JoyInput.types';
|
|
3
|
+
declare function focus(): void;
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
5
|
autofocus: {
|
|
5
6
|
type: BooleanConstructor;
|
|
@@ -71,7 +72,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
71
72
|
type: BooleanConstructor;
|
|
72
73
|
default: boolean;
|
|
73
74
|
};
|
|
74
|
-
}, {
|
|
75
|
+
}, {
|
|
76
|
+
focus: typeof focus;
|
|
77
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
75
78
|
"update:modelValue": (value: string) => void;
|
|
76
79
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
80
|
autofocus: {
|
|
@@ -19,21 +19,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
21
|
modelValue: {
|
|
22
|
-
type: StringConstructor;
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
23
|
};
|
|
24
24
|
theme: {
|
|
25
25
|
type: PropType<"default" | "outline">;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
value: {
|
|
29
|
-
type: StringConstructor;
|
|
29
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
33
33
|
checked: import("vue").ComputedRef<boolean>;
|
|
34
34
|
isExpanded: import("vue").Ref<boolean>;
|
|
35
35
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
"update:modelValue": (value: string) => void;
|
|
36
|
+
"update:modelValue": (value: string | number) => void;
|
|
37
37
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
disabled: {
|
|
39
39
|
type: BooleanConstructor;
|
|
@@ -54,18 +54,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
56
|
modelValue: {
|
|
57
|
-
type: StringConstructor;
|
|
57
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
58
58
|
};
|
|
59
59
|
theme: {
|
|
60
60
|
type: PropType<"default" | "outline">;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
63
|
value: {
|
|
64
|
-
type: StringConstructor;
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
65
|
required: true;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
68
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
required: boolean;
|
|
71
71
|
disabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SIZES } from '../../types';
|
|
2
2
|
import VJoyTag from './VJoyTag.vue';
|
|
3
|
-
export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "primary", "secondary"];
|
|
3
|
+
export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "special", "primary", "secondary"];
|
|
4
4
|
export type TJoyTagVariants = (typeof TAG_VARIANTS)[number];
|
|
5
5
|
export type TJoyTagSizes = Exclude<(typeof SIZES)[number], 'xlarge' | 'xxsmall'>;
|
|
6
6
|
export declare const TAG_SIZES: TJoyTagSizes[];
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyTagSizes, IJoyTagSelected } from './JoyTag.types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
/** Text injected within the tag */
|
|
5
5
|
label: {
|
|
6
6
|
type: StringConstructor;
|
|
7
|
-
required: true;
|
|
8
7
|
};
|
|
9
8
|
size: {
|
|
10
9
|
type: PropType<TJoyTagSizes>;
|
|
11
10
|
default: string;
|
|
12
11
|
};
|
|
13
12
|
variant: {
|
|
14
|
-
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
|
|
13
|
+
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
|
|
15
14
|
default: string;
|
|
16
15
|
};
|
|
17
16
|
/** Use v-model:selected */
|
|
@@ -35,23 +34,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
34
|
default: boolean;
|
|
36
35
|
};
|
|
37
36
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
remove: (args_0: {
|
|
37
|
+
selected: (tag: IJoyTagSelected) => void;
|
|
38
|
+
remove: (value: {
|
|
41
39
|
value: string;
|
|
42
40
|
}) => void;
|
|
41
|
+
click: () => void;
|
|
43
42
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
43
|
/** Text injected within the tag */
|
|
45
44
|
label: {
|
|
46
45
|
type: StringConstructor;
|
|
47
|
-
required: true;
|
|
48
46
|
};
|
|
49
47
|
size: {
|
|
50
48
|
type: PropType<TJoyTagSizes>;
|
|
51
49
|
default: string;
|
|
52
50
|
};
|
|
53
51
|
variant: {
|
|
54
|
-
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
|
|
52
|
+
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
|
|
55
53
|
default: string;
|
|
56
54
|
};
|
|
57
55
|
/** Use v-model:selected */
|
|
@@ -76,18 +74,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
74
|
};
|
|
77
75
|
}>> & {
|
|
78
76
|
onClick?: (() => any) | undefined;
|
|
79
|
-
onSelected?: ((
|
|
80
|
-
onRemove?: ((
|
|
77
|
+
onSelected?: ((tag: IJoyTagSelected) => any) | undefined;
|
|
78
|
+
onRemove?: ((value: {
|
|
81
79
|
value: string;
|
|
82
80
|
}) => any) | undefined;
|
|
83
81
|
}, {
|
|
84
82
|
link: boolean;
|
|
85
83
|
size: TJoyTagSizes;
|
|
86
|
-
variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
|
|
84
|
+
variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special";
|
|
87
85
|
value: string;
|
|
88
86
|
selected: boolean;
|
|
89
87
|
selectable: boolean;
|
|
90
88
|
draggable: boolean;
|
|
91
89
|
removable: boolean;
|
|
92
|
-
}, {}
|
|
90
|
+
}, {}>, {
|
|
91
|
+
default?(_: {}): any;
|
|
92
|
+
}>;
|
|
93
93
|
export default _default;
|
|
94
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
};
|
|
26
26
|
/** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
|
|
27
27
|
variant: {
|
|
28
|
-
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
|
|
28
|
+
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -56,14 +56,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
};
|
|
57
57
|
/** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
|
|
58
58
|
variant: {
|
|
59
|
-
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
|
|
59
|
+
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
|
|
60
60
|
default: string;
|
|
61
61
|
};
|
|
62
62
|
}>> & {
|
|
63
63
|
"onUpdate:modelValue"?: ((tags: TJoyTagsListModel) => any) | undefined;
|
|
64
64
|
onRemoveTag?: ((tagValue: string) => any) | undefined;
|
|
65
65
|
}, {
|
|
66
|
-
variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
|
|
66
|
+
variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special";
|
|
67
67
|
selectable: boolean;
|
|
68
68
|
removable: boolean;
|
|
69
69
|
align: "left" | "right" | "center";
|