@maltjoy/core-vue 3.8.0 → 3.9.0
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 +2 -0
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +4 -0
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +1 -1
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +2 -0
- package/dist/components/JoySelect/JoySelect.types.d.ts +3 -0
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +10 -3
- package/dist/joy-vue.js +464 -455
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -44,6 +44,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
|
+
* Use options to render a pre-designed list.
|
|
48
|
+
*
|
|
47
49
|
* ```
|
|
48
50
|
* interface Option {id?: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
|
|
49
51
|
* ```
|
|
@@ -120,6 +122,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
120
122
|
default: string;
|
|
121
123
|
};
|
|
122
124
|
/**
|
|
125
|
+
* Use options to render a pre-designed list.
|
|
126
|
+
*
|
|
123
127
|
* ```
|
|
124
128
|
* interface Option {id?: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
|
|
125
129
|
* ```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SIZES } from '@/types';
|
|
2
|
-
export type DropdownListSizes = Extract<(typeof SIZES)[number], 'small' | 'medium'>;
|
|
2
|
+
export type DropdownListSizes = Extract<(typeof SIZES)[number], 'xsmall' | 'small' | 'medium'>;
|
|
3
3
|
export declare const DROPDOWNLIST_SIZES: DropdownListSizes[];
|
|
@@ -24,6 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
validator(value: Array<Option>): boolean;
|
|
25
25
|
default(): never[];
|
|
26
26
|
};
|
|
27
|
+
/** Customize the actual size of each items. */
|
|
27
28
|
size: {
|
|
28
29
|
type: PropType<DropdownListSizes>;
|
|
29
30
|
default: string;
|
|
@@ -55,6 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
56
|
validator(value: Array<Option>): boolean;
|
|
56
57
|
default(): never[];
|
|
57
58
|
};
|
|
59
|
+
/** Customize the actual size of each items. */
|
|
58
60
|
size: {
|
|
59
61
|
type: PropType<DropdownListSizes>;
|
|
60
62
|
default: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { SelectSizes } from './JoySelect.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
disabled: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -21,7 +22,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
22
|
label: StringConstructor;
|
|
22
23
|
labelSize: {
|
|
23
24
|
type: PropType<"small" | "medium" | "large">;
|
|
24
|
-
default: string;
|
|
25
25
|
};
|
|
26
26
|
optionalLabel: StringConstructor;
|
|
27
27
|
requiredMark: {
|
|
@@ -32,6 +32,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
default: string;
|
|
34
34
|
};
|
|
35
|
+
size: {
|
|
36
|
+
type: PropType<SelectSizes>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
35
39
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
40
|
"update:modelValue": (value: string) => void;
|
|
37
41
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -56,7 +60,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
60
|
label: StringConstructor;
|
|
57
61
|
labelSize: {
|
|
58
62
|
type: PropType<"small" | "medium" | "large">;
|
|
59
|
-
default: string;
|
|
60
63
|
};
|
|
61
64
|
optionalLabel: StringConstructor;
|
|
62
65
|
requiredMark: {
|
|
@@ -67,14 +70,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
70
|
type: StringConstructor;
|
|
68
71
|
default: string;
|
|
69
72
|
};
|
|
73
|
+
size: {
|
|
74
|
+
type: PropType<SelectSizes>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
70
77
|
}>> & {
|
|
71
78
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
72
79
|
}, {
|
|
73
80
|
disabled: boolean;
|
|
81
|
+
size: SelectSizes;
|
|
74
82
|
required: boolean;
|
|
75
83
|
invalid: boolean;
|
|
76
84
|
modelValue: string;
|
|
77
|
-
labelSize: "small" | "medium" | "large";
|
|
78
85
|
requiredMark: boolean;
|
|
79
86
|
}, {}>, {
|
|
80
87
|
'select-label': (_: {}) => any;
|