@maltjoy/core-vue 1.0.0-alpha.6 → 1.0.0-alpha.8
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 -1
- package/dist/components/JoyButton/JoyButton.vue.d.ts +3 -3
- package/dist/components/JoyCheckbox/JoyCheckbox.vue.d.ts +15 -14
- package/dist/components/JoyCounter/JoyCounter.vue.d.ts +36 -7
- package/dist/components/JoyFormError/JoyFormError.vue.d.ts +4 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
- package/dist/components/JoyHighlight/JoyHighlight.vue.d.ts +3 -3
- package/dist/components/JoyInput/JoyInput.vue.d.ts +22 -4
- package/dist/components/JoyMultiCheckbox/JoyMultiCheckbox.vue.d.ts +86 -0
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +3 -0
- package/dist/components/JoyPanel/JoyPanel.vue.d.ts +43 -0
- package/dist/components/JoyPanelSection/JoyPanelSection.vue.d.ts +10 -0
- package/dist/components/JoyRadio/JoyRadio.vue.d.ts +7 -3
- package/dist/components/JoySelect/JoySelect.vue.d.ts +6 -4
- package/dist/components/JoySelectableItem/JoySelectableItem.types.d.ts +2 -0
- package/dist/components/JoySelectableItem/JoySelectableItem.vue.d.ts +84 -0
- package/dist/components/JoySelectableItemGroup/JoySelectableItemGroup.vue.d.ts +95 -0
- package/dist/components/JoyTextarea/JoyTextarea.vue.d.ts +6 -4
- package/dist/components/JoyToggle/JoyToggle.vue.d.ts +2 -2
- package/dist/components/JoyWrapper/JoyWrapper.vue.d.ts +9 -9
- package/dist/components/index.d.ts +6 -1
- package/dist/joy-vue.js +827 -413
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/stories/fixtures/index.d.ts +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/joy-components.d.ts +6 -1
- package/package.json +17 -15
- package/dist/components/JoyButton/tests/JoyButton.spec.d.ts +0 -1
- package/dist/components/JoyCheckbox/tests/JoyCheckbox.spec.d.ts +0 -1
- package/dist/components/JoyFormError/tests/JoyFormError.spec.d.ts +0 -1
- package/dist/components/JoyHighlight/tests/JoyHighlight.spec.d.ts +0 -1
- package/dist/components/JoyLabel/tests/JoyLabel.spec.d.ts +0 -1
- package/dist/components/JoyRadio/tests/JoyRadio.spec.d.ts +0 -1
- package/dist/components/JoySelect/tests/JoySelect.spec.d.ts +0 -1
- package/dist/components/JoyToggle/tests/JoyToggle.spec.d.ts +0 -1
- package/dist/tests/composables/prop.spec.d.ts +0 -1
- package/dist/tests/helpers.spec.d.ts +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
/** Mandatory in order to link the label and the actual input */
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
invalid: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
multiple: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
name: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
required: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
checked: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:checked": (value: string | boolean) => void;
|
|
35
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
disabled: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
/** Mandatory in order to link the label and the actual input */
|
|
41
|
+
id: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
invalid: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
multiple: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
name: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
required: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
checked: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
};
|
|
63
|
+
value: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
}>> & {
|
|
68
|
+
"onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
checked: boolean;
|
|
72
|
+
required: boolean;
|
|
73
|
+
invalid: boolean;
|
|
74
|
+
multiple: boolean;
|
|
75
|
+
}>, {
|
|
76
|
+
default: (_: {}) => any;
|
|
77
|
+
'selectable-item-sublabel': (_: {}) => any;
|
|
78
|
+
}>;
|
|
79
|
+
export default _default;
|
|
80
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
|
+
new (): {
|
|
82
|
+
$slots: S;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export interface Option {
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
subLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
required: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("vue").DefineComponent<{
|
|
18
|
+
options: {
|
|
19
|
+
type: PropType<Option[]>;
|
|
20
|
+
required: true;
|
|
21
|
+
validator(value: Array<Option>): boolean;
|
|
22
|
+
};
|
|
23
|
+
id: StringConstructor;
|
|
24
|
+
value: {
|
|
25
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
multiple: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
fullWidth: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
required: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
label: StringConstructor;
|
|
41
|
+
labelSize: {
|
|
42
|
+
type: PropType<"small" | "large" | "medium">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
optionalLabel: StringConstructor;
|
|
46
|
+
requiredMark: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:value": (value: string | any[]) => void;
|
|
52
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
options: {
|
|
54
|
+
type: PropType<Option[]>;
|
|
55
|
+
required: true;
|
|
56
|
+
validator(value: Array<Option>): boolean;
|
|
57
|
+
};
|
|
58
|
+
id: StringConstructor;
|
|
59
|
+
value: {
|
|
60
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
61
|
+
default: null;
|
|
62
|
+
};
|
|
63
|
+
multiple: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
fullWidth: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
required: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
label: StringConstructor;
|
|
76
|
+
labelSize: {
|
|
77
|
+
type: PropType<"small" | "large" | "medium">;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
optionalLabel: StringConstructor;
|
|
81
|
+
requiredMark: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
}>> & {
|
|
86
|
+
"onUpdate:value"?: ((value: string | any[]) => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
value: string | unknown[];
|
|
89
|
+
required: boolean;
|
|
90
|
+
labelSize: "small" | "large" | "medium";
|
|
91
|
+
requiredMark: boolean;
|
|
92
|
+
fullWidth: boolean;
|
|
93
|
+
multiple: boolean;
|
|
94
|
+
}>;
|
|
95
|
+
export default _default;
|
|
@@ -47,7 +47,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
47
47
|
isInvalid: import("vue").Ref<boolean>;
|
|
48
48
|
valueOverMaxlength: import("vue").ComputedRef<boolean>;
|
|
49
49
|
valueUnderMinlength: import("vue").ComputedRef<boolean>;
|
|
50
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:modelValue": (value: string) => void;
|
|
52
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
53
|
disabled: {
|
|
52
54
|
type: BooleanConstructor;
|
|
53
55
|
default: boolean;
|
|
@@ -92,14 +94,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
92
94
|
type: NumberConstructor;
|
|
93
95
|
};
|
|
94
96
|
}>> & {
|
|
95
|
-
"onUpdate:modelValue"?: ((
|
|
97
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
96
98
|
}, {
|
|
97
99
|
disabled: boolean;
|
|
98
|
-
modelValue: string;
|
|
99
|
-
invalid: boolean;
|
|
100
100
|
required: boolean;
|
|
101
|
+
invalid: boolean;
|
|
101
102
|
labelSize: "small" | "large" | "medium";
|
|
102
103
|
requiredMark: boolean;
|
|
104
|
+
modelValue: string;
|
|
103
105
|
autogrow: boolean;
|
|
104
106
|
}>, {
|
|
105
107
|
default: (_: {}) => any;
|
|
@@ -58,10 +58,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
disabled: boolean;
|
|
61
|
-
modelValue: boolean;
|
|
62
61
|
value: string;
|
|
63
|
-
invalid: boolean;
|
|
64
62
|
required: boolean;
|
|
63
|
+
invalid: boolean;
|
|
64
|
+
modelValue: boolean;
|
|
65
65
|
}>, {
|
|
66
66
|
default: (_: {}) => any;
|
|
67
67
|
}>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
justify: {
|
|
4
|
-
type: PropType<"
|
|
4
|
+
type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
align: {
|
|
8
|
-
type: PropType<"
|
|
8
|
+
type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
direction: {
|
|
12
|
-
type: PropType<"
|
|
12
|
+
type: PropType<"row" | "column">;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
wrap: {
|
|
@@ -18,15 +18,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
20
|
justify: {
|
|
21
|
-
type: PropType<"
|
|
21
|
+
type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
align: {
|
|
25
|
-
type: PropType<"
|
|
25
|
+
type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
direction: {
|
|
29
|
-
type: PropType<"
|
|
29
|
+
type: PropType<"row" | "column">;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
wrap: {
|
|
@@ -34,10 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
36
|
}>>, {
|
|
37
|
-
direction: "
|
|
37
|
+
direction: "row" | "column";
|
|
38
38
|
wrap: "nowrap" | "wrap";
|
|
39
|
-
justify: "
|
|
40
|
-
align: "
|
|
39
|
+
justify: "center" | "space-between" | "flex-start" | "flex-end";
|
|
40
|
+
align: "center" | "flex-start" | "flex-end" | "stretch";
|
|
41
41
|
}>, {
|
|
42
42
|
default: (_: {}) => any;
|
|
43
43
|
}>;
|
|
@@ -6,12 +6,17 @@ import JoyHighlight from '@/components/JoyHighlight/JoyHighlight.vue';
|
|
|
6
6
|
import JoyInput from '@/components/JoyInput/JoyInput.vue';
|
|
7
7
|
import JoyLabel from '@/components/JoyLabel/JoyLabel.vue';
|
|
8
8
|
import JoyLink from '@/components/JoyLink/JoyLink.vue';
|
|
9
|
+
import JoyMultiCheckbox from '@/components/JoyMultiCheckbox/JoyMultiCheckbox.vue';
|
|
10
|
+
import JoyPanel from '@/components/JoyPanel/JoyPanel.vue';
|
|
11
|
+
import JoyPanelSection from '@/components/JoyPanelSection/JoyPanelSection.vue';
|
|
9
12
|
import JoyRadio from '@/components/JoyRadio/JoyRadio.vue';
|
|
10
13
|
import JoyRadioGroup from '@/components/JoyRadioGroup/JoyRadioGroup.vue';
|
|
11
14
|
import JoySelect from '@/components/JoySelect/JoySelect.vue';
|
|
15
|
+
import JoySelectableItem from '@/components/JoySelectableItem/JoySelectableItem.vue';
|
|
16
|
+
import JoySelectableItemGroup from '@/components/JoySelectableItemGroup/JoySelectableItemGroup.vue';
|
|
12
17
|
import JoySpinner from '@/components/JoySpinner/JoySpinner.vue';
|
|
13
18
|
import JoyWrapper from '@/components/JoyWrapper/JoyWrapper.vue';
|
|
14
19
|
import JoyTemplate from '@/components/JoyTemplate/JoyTemplate.vue';
|
|
15
20
|
import JoyTextarea from '@/components/JoyTextarea/JoyTextarea.vue';
|
|
16
21
|
import JoyToggle from '@/components/JoyToggle/JoyToggle.vue';
|
|
17
|
-
export { JoyButton, JoyCheckbox, JoyCounter, JoyFormError, JoyHighlight, JoyInput, JoyLabel, JoyLink, JoyRadio, JoyRadioGroup, JoySelect, JoySpinner, JoyTemplate, JoyTextarea, JoyToggle, JoyWrapper, };
|
|
22
|
+
export { JoyButton, JoyCheckbox, JoyCounter, JoyFormError, JoyHighlight, JoyInput, JoyLabel, JoyLink, JoyMultiCheckbox, JoyPanel, JoyPanelSection, JoyRadio, JoyRadioGroup, JoySelect, JoySelectableItem, JoySelectableItemGroup, JoySpinner, JoyTemplate, JoyTextarea, JoyToggle, JoyWrapper, };
|