@volverjs/ui-vue 0.0.10-beta.41 → 0.0.10-beta.43
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/VvAccordionGroup/VvAccordionGroup.vue.d.ts +12 -12
- package/dist/components/VvAccordionGroup/index.d.ts +4 -4
- package/dist/components/VvAction/VvAction.vue.d.ts +2 -2
- package/dist/components/VvAction/index.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +6 -6
- package/dist/components/VvAlert/index.d.ts +4 -3
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +9 -9
- package/dist/components/VvAlertGroup/index.d.ts +4 -4
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +4 -4
- package/dist/components/VvAvatarGroup/index.d.ts +2 -2
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +13 -13
- package/dist/components/VvBreadcrumb/index.d.ts +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +4 -4
- package/dist/components/VvButton/index.d.ts +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +4 -4
- package/dist/components/VvButtonGroup/index.d.ts +2 -2
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +4 -1
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +438 -559
- package/dist/components/VvCombobox/index.d.ts +21 -241
- package/dist/components/VvDialog/VvDialog.es.js +41 -165
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +9 -0
- package/dist/components/VvDialog/index.d.ts +7 -0
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +33 -268
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +8 -6
- package/dist/components/VvDropdown/index.d.ts +9 -117
- package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +22 -105
- package/dist/components/VvInputFile/index.d.ts +7 -28
- package/dist/components/VvInputText/VvInputClearAction.d.ts +2 -2
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +4 -4
- package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
- package/dist/components/VvInputText/index.d.ts +4 -9
- package/dist/components/VvNav/VvNav.vue.d.ts +9 -9
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +3 -3
- package/dist/components/VvRadioGroup/index.d.ts +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +174 -184
- package/dist/components/VvSelect/index.d.ts +4 -4
- package/dist/components/VvTab/VvTab.vue.d.ts +13 -13
- package/dist/components/VvTab/index.d.ts +2 -2
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +2 -2
- package/dist/components/VvTextarea/index.d.ts +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +2 -2
- package/dist/components/VvTooltip/index.d.ts +1 -1
- package/dist/components/index.es.js +27 -26
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +47 -77
- package/dist/composables/index.es.js +1 -2
- package/dist/composables/useBlurhash.d.ts +1 -1
- package/dist/composables/useOptions.d.ts +3 -3
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +1 -4
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +14 -121
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +283 -347
- package/dist/test/expect.d.ts +0 -1
- package/dist/types/input-file.d.ts +2 -9
- package/dist/utils/ObjectUtilities.d.ts +1 -1
- package/package.json +29 -30
- package/src/Volver.ts +6 -6
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvButtonGroup/index.ts +1 -1
- package/src/components/VvCombobox/VvCombobox.vue +4 -1
- package/src/components/VvCombobox/index.ts +6 -6
- package/src/components/VvDialog/VvDialog.vue +3 -5
- package/src/components/VvDialog/index.ts +4 -0
- package/src/components/VvInputText/VvInputText.vue +18 -18
- package/src/components/common/HintSlot.ts +2 -2
- package/src/composables/group/useInjectedGroupState.ts +3 -3
- package/src/composables/group/useProvideGroupState.ts +3 -3
- package/src/composables/useDefaults.ts +4 -4
- package/src/props/index.ts +1 -1
- package/src/types/group.ts +1 -1
- package/src/types/input-file.ts +10 -18
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type:
|
|
3
|
+
type: PropType<string | string[] | undefined>;
|
|
4
4
|
default: undefined;
|
|
5
5
|
};
|
|
6
6
|
items: {
|
|
7
|
-
type:
|
|
7
|
+
type: PropType<import(".").VvAccordionGroupItem[]>;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
10
|
collapse: BooleanConstructor;
|
|
11
11
|
itemModifiers: {
|
|
12
|
-
type:
|
|
12
|
+
type: PropType<string | string[]>;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
disabled: BooleanConstructor;
|
|
16
16
|
not: BooleanConstructor;
|
|
17
17
|
storageType: {
|
|
18
|
-
type: globalThis.PropType
|
|
18
|
+
type: globalThis.PropType<`${import("../../constants").StorageType}`>;
|
|
19
19
|
default: import("../../constants").StorageType;
|
|
20
20
|
validator: (value: import("../../constants").StorageType) => boolean;
|
|
21
21
|
};
|
|
@@ -32,22 +32,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
32
|
[x: string]: (...args: any[]) => void;
|
|
33
33
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
34
|
modelValue: {
|
|
35
|
-
type:
|
|
35
|
+
type: PropType<string | string[] | undefined>;
|
|
36
36
|
default: undefined;
|
|
37
37
|
};
|
|
38
38
|
items: {
|
|
39
|
-
type:
|
|
39
|
+
type: PropType<import(".").VvAccordionGroupItem[]>;
|
|
40
40
|
default: () => never[];
|
|
41
41
|
};
|
|
42
42
|
collapse: BooleanConstructor;
|
|
43
43
|
itemModifiers: {
|
|
44
|
-
type:
|
|
44
|
+
type: PropType<string | string[]>;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
disabled: BooleanConstructor;
|
|
48
48
|
not: BooleanConstructor;
|
|
49
49
|
storageType: {
|
|
50
|
-
type: globalThis.PropType
|
|
50
|
+
type: globalThis.PropType<`${import("../../constants").StorageType}`>;
|
|
51
51
|
default: import("../../constants").StorageType;
|
|
52
52
|
validator: (value: import("../../constants").StorageType) => boolean;
|
|
53
53
|
};
|
|
@@ -69,14 +69,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
69
|
isExpanded: boolean;
|
|
70
70
|
expand: () => void;
|
|
71
71
|
collapse: () => void;
|
|
72
|
-
groupExpand: (name?: string | string[]
|
|
73
|
-
groupCollapse: (name?: string | string[]
|
|
72
|
+
groupExpand: (name?: string | string[]) => void;
|
|
73
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
74
74
|
}) => any>> & Partial<Record<`content::${string}`, (_: {
|
|
75
75
|
isExpanded: boolean;
|
|
76
76
|
expand: () => void;
|
|
77
77
|
collapse: () => void;
|
|
78
|
-
groupExpand: (name?: string | string[]
|
|
79
|
-
groupCollapse: (name?: string | string[]
|
|
78
|
+
groupExpand: (name?: string | string[]) => void;
|
|
79
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
80
80
|
}) => any>> & {
|
|
81
81
|
default?(_: {
|
|
82
82
|
expandedAccordions: Set<string>;
|
|
@@ -10,7 +10,7 @@ export declare const VvAccordionGroupProps: {
|
|
|
10
10
|
* VModel
|
|
11
11
|
*/
|
|
12
12
|
modelValue: {
|
|
13
|
-
type:
|
|
13
|
+
type: PropType<string | string[] | undefined>;
|
|
14
14
|
default: undefined;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
@@ -18,7 +18,7 @@ export declare const VvAccordionGroupProps: {
|
|
|
18
18
|
* @type VvAccordionGroupItem
|
|
19
19
|
*/
|
|
20
20
|
items: {
|
|
21
|
-
type:
|
|
21
|
+
type: PropType<VvAccordionGroupItem[]>;
|
|
22
22
|
default: () => never[];
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ export declare const VvAccordionGroupProps: {
|
|
|
29
29
|
* String or String[] of css classes (modifiers) that will be concatenated to prefix 'vv-accordion--'
|
|
30
30
|
*/
|
|
31
31
|
itemModifiers: {
|
|
32
|
-
type:
|
|
32
|
+
type: PropType<string | string[]>;
|
|
33
33
|
default: string;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
@@ -41,7 +41,7 @@ export declare const VvAccordionGroupProps: {
|
|
|
41
41
|
*/
|
|
42
42
|
not: BooleanConstructor;
|
|
43
43
|
storageType: {
|
|
44
|
-
type: globalThis.PropType
|
|
44
|
+
type: globalThis.PropType<`${import("../../constants").StorageType}`>;
|
|
45
45
|
default: import("../../constants").StorageType;
|
|
46
46
|
validator: (value: import("../../constants").StorageType) => boolean;
|
|
47
47
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionTag } from '../../constants';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
type: {
|
|
4
|
-
type: globalThis.PropType
|
|
4
|
+
type: globalThis.PropType<`${import("../../constants").ButtonType}`>;
|
|
5
5
|
default: import("../../constants").ButtonType;
|
|
6
6
|
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
7
7
|
};
|
|
@@ -48,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
48
48
|
[x: string]: (...args: any[]) => void;
|
|
49
49
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
50
50
|
type: {
|
|
51
|
-
type: globalThis.PropType
|
|
51
|
+
type: globalThis.PropType<`${import("../../constants").ButtonType}`>;
|
|
52
52
|
default: import("../../constants").ButtonType;
|
|
53
53
|
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
54
54
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const VvActionEvents: string[];
|
|
2
2
|
export declare const VvActionProps: {
|
|
3
3
|
type: {
|
|
4
|
-
type: globalThis.PropType
|
|
4
|
+
type: globalThis.PropType<`${import("../../constants").ButtonType}`>;
|
|
5
5
|
default: import("../../constants").ButtonType;
|
|
6
6
|
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
modifiers: {
|
|
3
|
-
type: globalThis.PropType<
|
|
3
|
+
type: globalThis.PropType<import("../../index.js").AlertModifier | import("../../index.js").AlertModifier[]>;
|
|
4
4
|
default: undefined;
|
|
5
5
|
};
|
|
6
6
|
dismissable: {
|
|
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
28
28
|
default: undefined;
|
|
29
29
|
};
|
|
30
30
|
role: {
|
|
31
|
-
type: globalThis.PropType
|
|
31
|
+
type: globalThis.PropType<`${import("../../constants.js").AlertRole}`>;
|
|
32
32
|
default: import("../../constants.js").AlertRole;
|
|
33
33
|
};
|
|
34
34
|
icon: {
|
|
@@ -36,7 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
36
|
default: undefined;
|
|
37
37
|
};
|
|
38
38
|
iconPosition: {
|
|
39
|
-
type: globalThis.PropType
|
|
39
|
+
type: globalThis.PropType<`${import("../../constants.js").Position}`>;
|
|
40
40
|
default: import("../../constants.js").Position;
|
|
41
41
|
validation: (value: import("../../constants.js").Position) => boolean;
|
|
42
42
|
};
|
|
@@ -47,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
47
47
|
[x: string]: (...args: any[]) => void;
|
|
48
48
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
49
49
|
modifiers: {
|
|
50
|
-
type: globalThis.PropType<
|
|
50
|
+
type: globalThis.PropType<import("../../index.js").AlertModifier | import("../../index.js").AlertModifier[]>;
|
|
51
51
|
default: undefined;
|
|
52
52
|
};
|
|
53
53
|
dismissable: {
|
|
@@ -75,7 +75,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
75
|
default: undefined;
|
|
76
76
|
};
|
|
77
77
|
role: {
|
|
78
|
-
type: globalThis.PropType
|
|
78
|
+
type: globalThis.PropType<`${import("../../constants.js").AlertRole}`>;
|
|
79
79
|
default: import("../../constants.js").AlertRole;
|
|
80
80
|
};
|
|
81
81
|
icon: {
|
|
@@ -83,7 +83,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
83
83
|
default: undefined;
|
|
84
84
|
};
|
|
85
85
|
iconPosition: {
|
|
86
|
-
type: globalThis.PropType
|
|
86
|
+
type: globalThis.PropType<`${import("../../constants.js").Position}`>;
|
|
87
87
|
default: import("../../constants.js").Position;
|
|
88
88
|
validation: (value: import("../../constants.js").Position) => boolean;
|
|
89
89
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { AlertRole } from '@/constants';
|
|
3
|
+
import type { AlertModifier } from '@/types';
|
|
3
4
|
export declare const VvAlertProps: {
|
|
4
5
|
/**
|
|
5
6
|
* Component BEM modifiers
|
|
6
7
|
*/
|
|
7
8
|
modifiers: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<AlertModifier | AlertModifier[]>;
|
|
9
10
|
default: undefined;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
@@ -71,7 +72,7 @@ export declare const VvAlertProps: {
|
|
|
71
72
|
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Alertdialog_role
|
|
72
73
|
*/
|
|
73
74
|
role: {
|
|
74
|
-
type: PropType
|
|
75
|
+
type: PropType<`${AlertRole}`>;
|
|
75
76
|
default: AlertRole;
|
|
76
77
|
};
|
|
77
78
|
icon: {
|
|
@@ -79,7 +80,7 @@ export declare const VvAlertProps: {
|
|
|
79
80
|
default: undefined;
|
|
80
81
|
};
|
|
81
82
|
iconPosition: {
|
|
82
|
-
type: PropType
|
|
83
|
+
type: PropType<`${import("@/constants").Position}`>;
|
|
83
84
|
default: import("@/constants").Position;
|
|
84
85
|
validation: (value: import("@/constants").Position) => boolean;
|
|
85
86
|
};
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
4
4
|
required: boolean;
|
|
5
5
|
};
|
|
6
6
|
items: {
|
|
7
|
-
type:
|
|
7
|
+
type: PropType<import("../../index.js").Alert[]>;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
10
|
stack: {
|
|
@@ -16,15 +16,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
inline: {
|
|
19
|
-
type:
|
|
19
|
+
type: PropType<"start" | "middle" | "end">;
|
|
20
20
|
default: undefined;
|
|
21
21
|
};
|
|
22
22
|
block: {
|
|
23
|
-
type:
|
|
23
|
+
type: PropType<"top" | "center" | "bottom">;
|
|
24
24
|
default: undefined;
|
|
25
25
|
};
|
|
26
26
|
position: {
|
|
27
|
-
type:
|
|
27
|
+
type: PropType<"absolute" | "fixed">;
|
|
28
28
|
default: undefined;
|
|
29
29
|
};
|
|
30
30
|
transition: {
|
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
required: boolean;
|
|
44
44
|
};
|
|
45
45
|
items: {
|
|
46
|
-
type:
|
|
46
|
+
type: PropType<import("../../index.js").Alert[]>;
|
|
47
47
|
default: () => never[];
|
|
48
48
|
};
|
|
49
49
|
stack: {
|
|
@@ -55,15 +55,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
57
|
inline: {
|
|
58
|
-
type:
|
|
58
|
+
type: PropType<"start" | "middle" | "end">;
|
|
59
59
|
default: undefined;
|
|
60
60
|
};
|
|
61
61
|
block: {
|
|
62
|
-
type:
|
|
62
|
+
type: PropType<"top" | "center" | "bottom">;
|
|
63
63
|
default: undefined;
|
|
64
64
|
};
|
|
65
65
|
position: {
|
|
66
|
-
type:
|
|
66
|
+
type: PropType<"absolute" | "fixed">;
|
|
67
67
|
default: undefined;
|
|
68
68
|
};
|
|
69
69
|
transition: {
|
|
@@ -75,8 +75,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
75
|
default: undefined;
|
|
76
76
|
};
|
|
77
77
|
}>>, {
|
|
78
|
-
modifiers: string | string[];
|
|
79
78
|
reverse: boolean;
|
|
79
|
+
modifiers: string | string[];
|
|
80
80
|
items: import("../../index.js").Alert[];
|
|
81
81
|
transition: string;
|
|
82
82
|
inline: "start" | "end" | "middle";
|
|
@@ -6,7 +6,7 @@ export declare const VvAlertGroupProps: {
|
|
|
6
6
|
required: boolean;
|
|
7
7
|
};
|
|
8
8
|
items: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<Alert[]>;
|
|
10
10
|
default: () => never[];
|
|
11
11
|
};
|
|
12
12
|
stack: {
|
|
@@ -18,15 +18,15 @@ export declare const VvAlertGroupProps: {
|
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
20
|
inline: {
|
|
21
|
-
type:
|
|
21
|
+
type: PropType<"start" | "middle" | "end">;
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
24
|
block: {
|
|
25
|
-
type:
|
|
25
|
+
type: PropType<"top" | "center" | "bottom">;
|
|
26
26
|
default: undefined;
|
|
27
27
|
};
|
|
28
28
|
position: {
|
|
29
|
-
type:
|
|
29
|
+
type: PropType<"absolute" | "fixed">;
|
|
30
30
|
default: undefined;
|
|
31
31
|
};
|
|
32
32
|
transition: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
items: {
|
|
3
|
-
type:
|
|
3
|
+
type: PropType<import("@/components/VvAvatarGroup").AvatarItem[]>;
|
|
4
4
|
default: () => never[];
|
|
5
5
|
required: boolean;
|
|
6
6
|
};
|
|
@@ -11,14 +11,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
11
|
totalItems: {
|
|
12
12
|
type: NumberConstructor;
|
|
13
13
|
};
|
|
14
|
-
avatarModifiers:
|
|
14
|
+
avatarModifiers: PropType<string | string[]>;
|
|
15
15
|
modifiers: {
|
|
16
16
|
type: globalThis.PropType<string | string[]>;
|
|
17
17
|
default: undefined;
|
|
18
18
|
};
|
|
19
19
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
20
20
|
items: {
|
|
21
|
-
type:
|
|
21
|
+
type: PropType<import("@/components/VvAvatarGroup").AvatarItem[]>;
|
|
22
22
|
default: () => never[];
|
|
23
23
|
required: boolean;
|
|
24
24
|
};
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
totalItems: {
|
|
30
30
|
type: NumberConstructor;
|
|
31
31
|
};
|
|
32
|
-
avatarModifiers:
|
|
32
|
+
avatarModifiers: PropType<string | string[]>;
|
|
33
33
|
modifiers: {
|
|
34
34
|
type: globalThis.PropType<string | string[]>;
|
|
35
35
|
default: undefined;
|
|
@@ -9,7 +9,7 @@ export declare const VvAvatarGroupProps: {
|
|
|
9
9
|
* avatar items
|
|
10
10
|
*/
|
|
11
11
|
items: {
|
|
12
|
-
type:
|
|
12
|
+
type: PropType<AvatarItem[]>;
|
|
13
13
|
default: () => never[];
|
|
14
14
|
required: boolean;
|
|
15
15
|
};
|
|
@@ -20,7 +20,7 @@ export declare const VvAvatarGroupProps: {
|
|
|
20
20
|
totalItems: {
|
|
21
21
|
type: NumberConstructor;
|
|
22
22
|
};
|
|
23
|
-
avatarModifiers:
|
|
23
|
+
avatarModifiers: PropType<string | string[]>;
|
|
24
24
|
modifiers: {
|
|
25
25
|
type: globalThis.PropType<string | string[]>;
|
|
26
26
|
default: undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
routes:
|
|
2
|
+
routes: PropType<import("../..").NavItem[]>;
|
|
3
3
|
modifiers: {
|
|
4
4
|
type: globalThis.PropType<string | string[]>;
|
|
5
5
|
default: undefined;
|
|
6
6
|
};
|
|
7
7
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
8
|
-
routes:
|
|
8
|
+
routes: PropType<import("../..").NavItem[]>;
|
|
9
9
|
modifiers: {
|
|
10
10
|
type: globalThis.PropType<string | string[]>;
|
|
11
11
|
default: undefined;
|
|
@@ -15,17 +15,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
}, {}>, {
|
|
16
16
|
label?(_: {
|
|
17
17
|
route: {
|
|
18
|
-
ariaLabel?: string
|
|
19
|
-
title?: string
|
|
20
|
-
to?: string | Record<string, unknown
|
|
21
|
-
href?: string
|
|
22
|
-
target?: string
|
|
23
|
-
rel?: string
|
|
24
|
-
disabled?: boolean
|
|
25
|
-
current?: boolean
|
|
26
|
-
class?: string | string[]
|
|
27
|
-
on?: Record<string, () => void
|
|
28
|
-
data?: Record<string, unknown
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
to?: string | Record<string, unknown>;
|
|
21
|
+
href?: string;
|
|
22
|
+
target?: string;
|
|
23
|
+
rel?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
current?: boolean;
|
|
26
|
+
class?: string | string[];
|
|
27
|
+
on?: Record<"click" | string, () => void>;
|
|
28
|
+
data?: Record<string, unknown>;
|
|
29
29
|
};
|
|
30
30
|
index: number;
|
|
31
31
|
}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Side } from '../../constants';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
iconPosition: {
|
|
4
|
-
type: globalThis.PropType
|
|
4
|
+
type: globalThis.PropType<`${Side}`>;
|
|
5
5
|
default: Side;
|
|
6
6
|
validator: (value: Side) => boolean;
|
|
7
7
|
};
|
|
@@ -47,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
47
47
|
};
|
|
48
48
|
id: (StringConstructor | NumberConstructor)[];
|
|
49
49
|
type: {
|
|
50
|
-
type: globalThis.PropType
|
|
50
|
+
type: globalThis.PropType<`${import("../../constants").ButtonType}`>;
|
|
51
51
|
default: import("../../constants").ButtonType;
|
|
52
52
|
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
53
53
|
};
|
|
@@ -94,7 +94,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
94
94
|
[x: string]: (...args: any[]) => void;
|
|
95
95
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
96
96
|
iconPosition: {
|
|
97
|
-
type: globalThis.PropType
|
|
97
|
+
type: globalThis.PropType<`${Side}`>;
|
|
98
98
|
default: Side;
|
|
99
99
|
validator: (value: Side) => boolean;
|
|
100
100
|
};
|
|
@@ -140,7 +140,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
140
140
|
};
|
|
141
141
|
id: (StringConstructor | NumberConstructor)[];
|
|
142
142
|
type: {
|
|
143
|
-
type: globalThis.PropType
|
|
143
|
+
type: globalThis.PropType<`${import("../../constants").ButtonType}`>;
|
|
144
144
|
default: import("../../constants").ButtonType;
|
|
145
145
|
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
146
146
|
};
|
|
@@ -7,7 +7,7 @@ export declare const VvButtonProps: {
|
|
|
7
7
|
* Button icon position
|
|
8
8
|
*/
|
|
9
9
|
iconPosition: {
|
|
10
|
-
type: PropType
|
|
10
|
+
type: PropType<`${Side}`>;
|
|
11
11
|
default: Side;
|
|
12
12
|
validator: (value: Side) => boolean;
|
|
13
13
|
};
|
|
@@ -68,7 +68,7 @@ export declare const VvButtonProps: {
|
|
|
68
68
|
};
|
|
69
69
|
id: (StringConstructor | NumberConstructor)[];
|
|
70
70
|
type: {
|
|
71
|
-
type: PropType
|
|
71
|
+
type: PropType<`${import("../../constants").ButtonType}`>;
|
|
72
72
|
default: import("../../constants").ButtonType;
|
|
73
73
|
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
74
74
|
};
|
|
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
};
|
|
5
5
|
itemModifiers: {
|
|
6
|
-
type:
|
|
6
|
+
type: PropType<string | string[]>;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
toggle: {
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
default: boolean;
|
|
16
16
|
};
|
|
17
17
|
modelValue: {
|
|
18
|
-
type:
|
|
18
|
+
type: PropType<string | number | boolean | (string | number | boolean)[] | undefined>;
|
|
19
19
|
default: undefined;
|
|
20
20
|
};
|
|
21
21
|
unselectable: {
|
|
@@ -37,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
};
|
|
39
39
|
itemModifiers: {
|
|
40
|
-
type:
|
|
40
|
+
type: PropType<string | string[]>;
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
43
|
toggle: {
|
|
@@ -49,7 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
51
|
modelValue: {
|
|
52
|
-
type:
|
|
52
|
+
type: PropType<string | number | boolean | (string | number | boolean)[] | undefined>;
|
|
53
53
|
default: undefined;
|
|
54
54
|
};
|
|
55
55
|
unselectable: {
|
|
@@ -6,7 +6,7 @@ export declare const VvButtonGroupProps: {
|
|
|
6
6
|
* String or String[] of css classes (modifiers) that will be provided to each button'
|
|
7
7
|
*/
|
|
8
8
|
itemModifiers: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<string | string[]>;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
12
|
toggle: {
|
|
@@ -18,7 +18,7 @@ export declare const VvButtonGroupProps: {
|
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
20
|
modelValue: {
|
|
21
|
-
type:
|
|
21
|
+
type: PropType<string | number | boolean | (string | number | boolean)[] | undefined>;
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
24
|
unselectable: {
|
|
@@ -136,8 +136,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
136
136
|
disabled: boolean;
|
|
137
137
|
modelValue: string | number | boolean | Record<string, any>;
|
|
138
138
|
modifiers: string | string[];
|
|
139
|
-
switch: boolean;
|
|
140
139
|
readonly: boolean;
|
|
140
|
+
switch: boolean;
|
|
141
141
|
loading: boolean;
|
|
142
142
|
loadingLabel: string;
|
|
143
143
|
hintLabel: string;
|
|
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
43
|
options: {
|
|
44
|
-
type: globalThis.PropType<(
|
|
44
|
+
type: globalThis.PropType<(Option | string)[]>;
|
|
45
45
|
default: () => never[];
|
|
46
46
|
};
|
|
47
47
|
labelKey: {
|
|
@@ -116,7 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
116
116
|
default: string;
|
|
117
117
|
};
|
|
118
118
|
options: {
|
|
119
|
-
type: globalThis.PropType<(
|
|
119
|
+
type: globalThis.PropType<(Option | string)[]>;
|
|
120
120
|
default: () => never[];
|
|
121
121
|
};
|
|
122
122
|
labelKey: {
|
|
@@ -148,7 +148,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
148
148
|
default: undefined;
|
|
149
149
|
};
|
|
150
150
|
}>>, {
|
|
151
|
-
options: (string | Option)[];
|
|
152
151
|
label: string | number;
|
|
153
152
|
disabled: boolean;
|
|
154
153
|
modelValue: string | number | boolean | symbol | unknown[];
|
|
@@ -162,6 +161,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
162
161
|
invalid: boolean;
|
|
163
162
|
invalidLabel: string | unknown[];
|
|
164
163
|
vertical: boolean;
|
|
164
|
+
options: (string | Option)[];
|
|
165
165
|
labelKey: string | Function;
|
|
166
166
|
valueKey: string | Function;
|
|
167
167
|
disabledKey: string | Function;
|
|
@@ -40,7 +40,7 @@ export declare const VvCheckboxGroupProps: {
|
|
|
40
40
|
default: string;
|
|
41
41
|
};
|
|
42
42
|
options: {
|
|
43
|
-
type: globalThis.PropType<(
|
|
43
|
+
type: globalThis.PropType<(import("../..").Option | string)[]>;
|
|
44
44
|
default: () => never[];
|
|
45
45
|
};
|
|
46
46
|
labelKey: {
|
|
@@ -2740,7 +2740,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2740
2740
|
return props.modelValue !== void 0 && props.modelValue !== null ? /* @__PURE__ */ new Set([props.modelValue]) : /* @__PURE__ */ new Set();
|
|
2741
2741
|
},
|
|
2742
2742
|
set: (value) => {
|
|
2743
|
-
emit("update:modelValue", props.multiple ? [...value] : [...value].pop());
|
|
2743
|
+
emit("update:modelValue", props.multiple || Array.isArray(props.modelValue) ? [...value] : [...value].pop());
|
|
2744
2744
|
}
|
|
2745
2745
|
});
|
|
2746
2746
|
const sizeOfModelValue = computed(() => localModelValue.value.size);
|
|
@@ -2846,6 +2846,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2846
2846
|
if (isSelected && isUnselectable.value) {
|
|
2847
2847
|
localModelValue.value.delete(getOptionValue(option));
|
|
2848
2848
|
} else if (!isSelected && isSelectable.value) {
|
|
2849
|
+
if (!props.multiple) {
|
|
2850
|
+
localModelValue.value.clear();
|
|
2851
|
+
}
|
|
2849
2852
|
localModelValue.value.add(getOptionValue(option));
|
|
2850
2853
|
}
|
|
2851
2854
|
localModelValue.value = new Set(localModelValue.value);
|