@maltjoy/core-vue 1.0.0-beta.1 → 1.0.0-beta.10
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/JoyBadge/JoyBadge.types.d.ts +2 -0
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +58 -0
- package/dist/components/JoyButton/JoyButton.types.d.ts +2 -5
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +25 -15
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +25 -2
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +6 -6
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -0
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +190 -0
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -0
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +93 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +4 -4
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +5 -3
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +2 -0
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +11 -13
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +3 -2
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +2 -0
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +5 -5
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +2 -2
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +4 -4
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +1 -0
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +4 -4
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +11 -2
- package/dist/components/index.d.ts +4 -1
- package/dist/composables/events.d.ts +5 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/props.d.ts +1 -1
- package/dist/joy-vue.js +1726 -611
- 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/GenericFormPropsWithLabel.vue.d.ts +3 -3
- package/dist/types/index.d.ts +1 -0
- package/joy-components.d.ts +27 -24
- package/package.json +20 -15
|
@@ -14,7 +14,7 @@ export interface Option {
|
|
|
14
14
|
*/
|
|
15
15
|
required?: boolean;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: import("vue").DefineComponent<{
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
18
18
|
options: {
|
|
19
19
|
type: PropType<Option[]>;
|
|
20
20
|
required: true;
|
|
@@ -25,17 +25,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
type: PropType<any[]>;
|
|
26
26
|
default(): never[];
|
|
27
27
|
};
|
|
28
|
-
fullWidth: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
28
|
required: {
|
|
33
29
|
type: BooleanConstructor;
|
|
34
30
|
default: boolean;
|
|
35
31
|
};
|
|
36
32
|
label: StringConstructor;
|
|
37
33
|
labelSize: {
|
|
38
|
-
type: PropType<"small" | "
|
|
34
|
+
type: PropType<"small" | "medium" | "large">;
|
|
39
35
|
default: string;
|
|
40
36
|
};
|
|
41
37
|
optionalLabel: StringConstructor;
|
|
@@ -56,17 +52,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
52
|
type: PropType<any[]>;
|
|
57
53
|
default(): never[];
|
|
58
54
|
};
|
|
59
|
-
fullWidth: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
55
|
required: {
|
|
64
56
|
type: BooleanConstructor;
|
|
65
57
|
default: boolean;
|
|
66
58
|
};
|
|
67
59
|
label: StringConstructor;
|
|
68
60
|
labelSize: {
|
|
69
|
-
type: PropType<"small" | "
|
|
61
|
+
type: PropType<"small" | "medium" | "large">;
|
|
70
62
|
default: string;
|
|
71
63
|
};
|
|
72
64
|
optionalLabel: StringConstructor;
|
|
@@ -79,8 +71,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
71
|
}, {
|
|
80
72
|
value: any[];
|
|
81
73
|
required: boolean;
|
|
82
|
-
labelSize: "small" | "
|
|
74
|
+
labelSize: "small" | "medium" | "large";
|
|
83
75
|
requiredMark: boolean;
|
|
84
|
-
|
|
76
|
+
}>, {
|
|
77
|
+
checkbox: (_: Option) => any;
|
|
85
78
|
}>;
|
|
86
79
|
export default _default;
|
|
80
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
|
+
new (): {
|
|
82
|
+
$slots: S;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
};
|
|
11
11
|
padding: {
|
|
12
12
|
type: PropType<PanelSizes>;
|
|
13
|
-
|
|
13
|
+
default: string;
|
|
14
14
|
validator(size: PanelSizes): boolean;
|
|
15
15
|
};
|
|
16
16
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -23,11 +23,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
23
23
|
};
|
|
24
24
|
padding: {
|
|
25
25
|
type: PropType<PanelSizes>;
|
|
26
|
-
|
|
26
|
+
default: string;
|
|
27
27
|
validator(size: PanelSizes): boolean;
|
|
28
28
|
};
|
|
29
29
|
}>>, {
|
|
30
30
|
noMargin: boolean;
|
|
31
|
+
padding: PanelSizes;
|
|
31
32
|
}>, {
|
|
32
33
|
'panel-title': (_: {}) => any;
|
|
33
34
|
'panel-title-action': (_: {}) => any;
|
|
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
label: StringConstructor;
|
|
22
22
|
labelSize: {
|
|
23
|
-
type: PropType<"small" | "
|
|
23
|
+
type: PropType<"small" | "medium" | "large">;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
26
|
optionalLabel: StringConstructor;
|
|
@@ -55,7 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
55
|
};
|
|
56
56
|
label: StringConstructor;
|
|
57
57
|
labelSize: {
|
|
58
|
-
type: PropType<"small" | "
|
|
58
|
+
type: PropType<"small" | "medium" | "large">;
|
|
59
59
|
default: string;
|
|
60
60
|
};
|
|
61
61
|
optionalLabel: StringConstructor;
|
|
@@ -72,12 +72,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
72
|
}, {
|
|
73
73
|
disabled: boolean;
|
|
74
74
|
required: boolean;
|
|
75
|
+
modelValue: string;
|
|
75
76
|
invalid: boolean;
|
|
76
|
-
labelSize: "small" | "
|
|
77
|
+
labelSize: "small" | "medium" | "large";
|
|
77
78
|
requiredMark: boolean;
|
|
78
|
-
modelValue: string;
|
|
79
79
|
}>, {
|
|
80
|
-
label: (_: {}) => any;
|
|
80
|
+
'select-label': (_: {}) => any;
|
|
81
81
|
default: (_: {}) => any;
|
|
82
82
|
}>;
|
|
83
83
|
export default _default;
|
|
@@ -67,11 +67,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
67
|
}>> & {
|
|
68
68
|
"onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
disabled: boolean;
|
|
71
70
|
checked: boolean;
|
|
71
|
+
disabled: boolean;
|
|
72
72
|
required: boolean;
|
|
73
|
-
invalid: boolean;
|
|
74
73
|
multiple: boolean;
|
|
74
|
+
invalid: boolean;
|
|
75
75
|
}>, {
|
|
76
76
|
default: (_: {}) => any;
|
|
77
77
|
'selectable-item-sublabel': (_: {}) => any;
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
};
|
|
40
40
|
label: StringConstructor;
|
|
41
41
|
labelSize: {
|
|
42
|
-
type: PropType<"small" | "
|
|
42
|
+
type: PropType<"small" | "medium" | "large">;
|
|
43
43
|
default: string;
|
|
44
44
|
};
|
|
45
45
|
optionalLabel: StringConstructor;
|
|
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
};
|
|
75
75
|
label: StringConstructor;
|
|
76
76
|
labelSize: {
|
|
77
|
-
type: PropType<"small" | "
|
|
77
|
+
type: PropType<"small" | "medium" | "large">;
|
|
78
78
|
default: string;
|
|
79
79
|
};
|
|
80
80
|
optionalLabel: StringConstructor;
|
|
@@ -87,9 +87,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
87
|
}, {
|
|
88
88
|
value: string | unknown[];
|
|
89
89
|
required: boolean;
|
|
90
|
-
|
|
90
|
+
multiple: boolean;
|
|
91
|
+
labelSize: "small" | "medium" | "large";
|
|
91
92
|
requiredMark: boolean;
|
|
92
93
|
fullWidth: boolean;
|
|
93
|
-
multiple: boolean;
|
|
94
94
|
}>;
|
|
95
95
|
export default _default;
|
|
@@ -24,6 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
'template-back': (_: {}) => any;
|
|
25
25
|
'template-title': (_: {}) => any;
|
|
26
26
|
'template-subtitle': (_: {}) => any;
|
|
27
|
+
'template-actions': (_: {}) => any;
|
|
27
28
|
'template-main': (_: {}) => any;
|
|
28
29
|
'template-sidebar': (_: {}) => any;
|
|
29
30
|
}>;
|
|
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
label: StringConstructor;
|
|
22
22
|
labelSize: {
|
|
23
|
-
type: PropType<"small" | "
|
|
23
|
+
type: PropType<"small" | "medium" | "large">;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
26
|
optionalLabel: StringConstructor;
|
|
@@ -70,7 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
70
70
|
};
|
|
71
71
|
label: StringConstructor;
|
|
72
72
|
labelSize: {
|
|
73
|
-
type: PropType<"small" | "
|
|
73
|
+
type: PropType<"small" | "medium" | "large">;
|
|
74
74
|
default: string;
|
|
75
75
|
};
|
|
76
76
|
optionalLabel: StringConstructor;
|
|
@@ -98,10 +98,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
98
98
|
}, {
|
|
99
99
|
disabled: boolean;
|
|
100
100
|
required: boolean;
|
|
101
|
+
modelValue: string;
|
|
101
102
|
invalid: boolean;
|
|
102
|
-
labelSize: "small" | "
|
|
103
|
+
labelSize: "small" | "medium" | "large";
|
|
103
104
|
requiredMark: boolean;
|
|
104
|
-
modelValue: string;
|
|
105
105
|
autogrow: boolean;
|
|
106
106
|
}>, {
|
|
107
107
|
default: (_: {}) => any;
|
|
@@ -57,11 +57,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
}>> & {
|
|
58
58
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
disabled: boolean;
|
|
61
60
|
value: string;
|
|
61
|
+
disabled: boolean;
|
|
62
62
|
required: boolean;
|
|
63
|
-
invalid: boolean;
|
|
64
63
|
modelValue: boolean;
|
|
64
|
+
invalid: boolean;
|
|
65
65
|
}>, {
|
|
66
66
|
default: (_: {}) => any;
|
|
67
67
|
}>;
|
|
@@ -16,6 +16,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
16
|
type: PropType<"nowrap" | "wrap">;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
|
+
/** Apply a flex-grow to children in order to stretch them all along horizontal space */
|
|
20
|
+
itemStretch: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
};
|
|
19
23
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
24
|
justify: {
|
|
21
25
|
type: PropType<"flex-end" | "center" | "space-between" | "flex-start">;
|
|
@@ -33,11 +37,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
37
|
type: PropType<"nowrap" | "wrap">;
|
|
34
38
|
default: string;
|
|
35
39
|
};
|
|
40
|
+
/** Apply a flex-grow to children in order to stretch them all along horizontal space */
|
|
41
|
+
itemStretch: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
};
|
|
36
44
|
}>>, {
|
|
45
|
+
align: "flex-end" | "stretch" | "center" | "flex-start";
|
|
37
46
|
direction: "column" | "row";
|
|
38
|
-
wrap: "nowrap" | "wrap";
|
|
39
47
|
justify: "flex-end" | "center" | "space-between" | "flex-start";
|
|
40
|
-
|
|
48
|
+
wrap: "nowrap" | "wrap";
|
|
49
|
+
itemStretch: boolean;
|
|
41
50
|
}>, {
|
|
42
51
|
default: (_: {}) => any;
|
|
43
52
|
}>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import VJoyBadge from '@/components/JoyBadge/VJoyBadge.vue';
|
|
1
2
|
import VJoyButton from '@/components/JoyButton/VJoyButton.vue';
|
|
2
3
|
import VJoyCheckbox from '@/components/JoyCheckbox/VJoyCheckbox.vue';
|
|
3
4
|
import VJoyCounter from '@/components/JoyCounter/VJoyCounter.vue';
|
|
5
|
+
import VJoyDropdown from '@/components/JoyDropdown/VJoyDropdown.vue';
|
|
6
|
+
import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue';
|
|
4
7
|
import VJoyFormError from '@/components/JoyFormError/VJoyFormError.vue';
|
|
5
8
|
import VJoyHighlight from '@/components/JoyHighlight/VJoyHighlight.vue';
|
|
6
9
|
import VJoyInput from '@/components/JoyInput/VJoyInput.vue';
|
|
@@ -19,4 +22,4 @@ import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
|
|
|
19
22
|
import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
|
|
20
23
|
import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
|
|
21
24
|
import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
|
|
22
|
-
export { VJoyButton, VJoyCheckbox, VJoyCounter, VJoyFormError, VJoyHighlight, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
|
|
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, };
|
|
@@ -61,7 +61,7 @@ export declare const CHECKBOX_BASED_PROPS: {
|
|
|
61
61
|
export declare const LABEL_BASED_PROPS: {
|
|
62
62
|
label: StringConstructor;
|
|
63
63
|
labelSize: {
|
|
64
|
-
type: PropType<"small" | "
|
|
64
|
+
type: PropType<"small" | "medium" | "large">;
|
|
65
65
|
default: string;
|
|
66
66
|
};
|
|
67
67
|
optionalLabel: StringConstructor;
|