@volverjs/ui-vue 0.0.10-beta.58 → 0.0.10-beta.59
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/VvAccordion/VvAccordion.vue.d.ts +2 -2
- package/dist/components/VvAccordion/index.d.ts +2 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +10 -10
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +14 -14
- package/dist/components/VvAccordionGroup/index.d.ts +5 -5
- 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 +8 -8
- package/dist/components/VvAlert/index.d.ts +3 -4
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +11 -11
- package/dist/components/VvAlertGroup/index.d.ts +5 -5
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +2 -2
- package/dist/components/VvAvatar/index.d.ts +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +6 -6
- package/dist/components/VvAvatarGroup/index.d.ts +3 -3
- package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
- package/dist/components/VvBadge/index.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +15 -15
- package/dist/components/VvBreadcrumb/index.d.ts +2 -2
- package/dist/components/VvButton/VvButton.vue.d.ts +8 -8
- package/dist/components/VvButton/index.d.ts +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +6 -6
- package/dist/components/VvButtonGroup/index.d.ts +3 -3
- package/dist/components/VvCard/VvCard.vue.d.ts +2 -2
- package/dist/components/VvCard/index.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +3 -3
- package/dist/components/VvCheckbox/index.d.ts +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +6 -6
- package/dist/components/VvCheckboxGroup/index.d.ts +2 -2
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +560 -219
- package/dist/components/VvCombobox/index.d.ts +241 -21
- package/dist/components/VvDialog/VvDialog.vue.d.ts +2 -2
- package/dist/components/VvDialog/index.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +272 -37
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +8 -16
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +2 -2
- package/dist/components/VvDropdown/index.d.ts +117 -9
- package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +19 -19
- package/dist/components/VvInputFile/index.d.ts +8 -8
- package/dist/components/VvInputText/VvInputClearAction.d.ts +3 -3
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +5 -5
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +16 -16
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +21 -21
- package/dist/components/VvInputText/index.d.ts +24 -7
- package/dist/components/VvNav/VvNav.vue.d.ts +13 -13
- package/dist/components/VvNav/index.d.ts +2 -2
- package/dist/components/VvProgress/VvProgress.vue.d.ts +2 -2
- package/dist/components/VvProgress/index.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +3 -3
- package/dist/components/VvRadio/index.d.ts +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +6 -6
- package/dist/components/VvRadioGroup/index.d.ts +2 -2
- package/dist/components/VvSelect/VvSelect.vue.d.ts +183 -62
- package/dist/components/VvSelect/index.d.ts +8 -8
- package/dist/components/VvTab/VvTab.vue.d.ts +15 -15
- package/dist/components/VvTab/index.d.ts +3 -3
- package/dist/components/VvTextarea/VvTextarea.es.js +10 -10
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +11 -11
- package/dist/components/VvTextarea/index.d.ts +9 -6
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +4 -4
- package/dist/components/VvTooltip/index.d.ts +1 -1
- package/dist/components/index.es.js +16 -16
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +12 -12
- package/dist/composables/dropdown/useDropdownContextmenu.d.ts +1 -1
- package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +1 -1
- package/dist/composables/group/useGroupStateInject.d.ts +1 -1
- package/dist/composables/useBlurhash.d.ts +1 -1
- package/dist/composables/useOptions.d.ts +3 -3
- package/dist/composables/usePersistence.d.ts +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +121 -14
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +362 -298
- package/dist/test/expect.d.ts +1 -0
- package/dist/utils/DateUtilities.d.ts +9 -0
- package/dist/utils/ObjectUtilities.d.ts +1 -1
- package/package.json +30 -30
- 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/composables/usePersistence.ts +13 -12
- package/src/utils/DateUtilities.ts +24 -7
|
@@ -19,7 +19,7 @@ export declare const VvDropdownProps: {
|
|
|
19
19
|
* Dropdown role
|
|
20
20
|
*/
|
|
21
21
|
role: {
|
|
22
|
-
type: PropType
|
|
22
|
+
type: PropType<"listbox" | "menu">;
|
|
23
23
|
default: DropdownRole;
|
|
24
24
|
validator: (value: DropdownRole) => boolean;
|
|
25
25
|
};
|
|
@@ -28,12 +28,12 @@ export declare const VvDropdownProps: {
|
|
|
28
28
|
default: undefined;
|
|
29
29
|
};
|
|
30
30
|
placement: {
|
|
31
|
-
type: PropType
|
|
31
|
+
type: PropType<"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
32
32
|
default: import("../../constants").Side;
|
|
33
|
-
validator: (value:
|
|
33
|
+
validator: (value: never) => boolean;
|
|
34
34
|
};
|
|
35
35
|
strategy: {
|
|
36
|
-
type: PropType
|
|
36
|
+
type: PropType<"absolute" | "fixed">;
|
|
37
37
|
default: undefined;
|
|
38
38
|
validator: (value: import("../../constants").Strategy) => boolean;
|
|
39
39
|
};
|
|
@@ -42,25 +42,133 @@ export declare const VvDropdownProps: {
|
|
|
42
42
|
default: undefined;
|
|
43
43
|
};
|
|
44
44
|
offset: {
|
|
45
|
-
type: PropType<import("
|
|
45
|
+
type: PropType<string | import("@floating-ui/dom").OffsetOptions | undefined>;
|
|
46
46
|
default: number;
|
|
47
47
|
};
|
|
48
48
|
shift: {
|
|
49
|
-
type: PropType<
|
|
49
|
+
type: PropType<boolean | {
|
|
50
|
+
crossAxis?: boolean | undefined;
|
|
51
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
52
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
53
|
+
altBoundary?: boolean | undefined;
|
|
54
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
55
|
+
mainAxis?: boolean | undefined;
|
|
56
|
+
limiter?: {
|
|
57
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
58
|
+
options?: any;
|
|
59
|
+
} | undefined;
|
|
60
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
61
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
62
|
+
crossAxis?: boolean | undefined;
|
|
63
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
64
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
65
|
+
altBoundary?: boolean | undefined;
|
|
66
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
67
|
+
mainAxis?: boolean | undefined;
|
|
68
|
+
limiter?: {
|
|
69
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/utils").Coords;
|
|
70
|
+
options?: any;
|
|
71
|
+
} | undefined;
|
|
72
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
73
|
+
}> | undefined>;
|
|
50
74
|
default: boolean;
|
|
51
75
|
};
|
|
52
76
|
flip: {
|
|
53
|
-
type: PropType<
|
|
77
|
+
type: PropType<boolean | {
|
|
78
|
+
crossAxis?: boolean | undefined;
|
|
79
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
80
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
81
|
+
altBoundary?: boolean | undefined;
|
|
82
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
83
|
+
mainAxis?: boolean | undefined;
|
|
84
|
+
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
85
|
+
fallbackStrategy?: "initialPlacement" | "bestFit" | undefined;
|
|
86
|
+
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
87
|
+
flipAlignment?: boolean | undefined;
|
|
88
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
89
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
90
|
+
crossAxis?: boolean | undefined;
|
|
91
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
92
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
93
|
+
altBoundary?: boolean | undefined;
|
|
94
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
95
|
+
mainAxis?: boolean | undefined;
|
|
96
|
+
fallbackPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
97
|
+
fallbackStrategy?: "initialPlacement" | "bestFit" | undefined;
|
|
98
|
+
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
99
|
+
flipAlignment?: boolean | undefined;
|
|
100
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
101
|
+
}> | undefined>;
|
|
54
102
|
default: boolean;
|
|
55
103
|
};
|
|
56
104
|
size: {
|
|
57
|
-
type: PropType<
|
|
105
|
+
type: PropType<boolean | {
|
|
106
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
107
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
108
|
+
altBoundary?: boolean | undefined;
|
|
109
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
110
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
111
|
+
apply?: ((args: {
|
|
112
|
+
x: number;
|
|
113
|
+
y: number;
|
|
114
|
+
initialPlacement: import("@floating-ui/utils").Placement;
|
|
115
|
+
placement: import("@floating-ui/utils").Placement;
|
|
116
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
117
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
118
|
+
rects: import("@floating-ui/utils").ElementRects;
|
|
119
|
+
platform: import("@floating-ui/core").Platform;
|
|
120
|
+
elements: import("@floating-ui/dom").Elements;
|
|
121
|
+
} & {
|
|
122
|
+
availableWidth: number;
|
|
123
|
+
availableHeight: number;
|
|
124
|
+
}) => void | Promise<void>) | undefined;
|
|
125
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
126
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
127
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
128
|
+
altBoundary?: boolean | undefined;
|
|
129
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
130
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
131
|
+
apply?: ((args: {
|
|
132
|
+
x: number;
|
|
133
|
+
y: number;
|
|
134
|
+
initialPlacement: import("@floating-ui/utils").Placement;
|
|
135
|
+
placement: import("@floating-ui/utils").Placement;
|
|
136
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
137
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
138
|
+
rects: import("@floating-ui/utils").ElementRects;
|
|
139
|
+
platform: import("@floating-ui/core").Platform;
|
|
140
|
+
elements: import("@floating-ui/dom").Elements;
|
|
141
|
+
} & {
|
|
142
|
+
availableWidth: number;
|
|
143
|
+
availableHeight: number;
|
|
144
|
+
}) => void | Promise<void>) | undefined;
|
|
145
|
+
}> | undefined>;
|
|
58
146
|
default: () => {
|
|
59
147
|
padding: number;
|
|
60
148
|
};
|
|
61
149
|
};
|
|
62
150
|
autoPlacement: {
|
|
63
|
-
type: PropType<
|
|
151
|
+
type: PropType<boolean | {
|
|
152
|
+
crossAxis?: boolean | undefined;
|
|
153
|
+
alignment?: import("@floating-ui/utils").Alignment | null | undefined;
|
|
154
|
+
autoAlignment?: boolean | undefined;
|
|
155
|
+
allowedPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
156
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
157
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
158
|
+
altBoundary?: boolean | undefined;
|
|
159
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
160
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
161
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
162
|
+
crossAxis?: boolean | undefined;
|
|
163
|
+
alignment?: import("@floating-ui/utils").Alignment | null | undefined;
|
|
164
|
+
autoAlignment?: boolean | undefined;
|
|
165
|
+
allowedPlacements?: import("@floating-ui/utils").Placement[] | undefined;
|
|
166
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
167
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
168
|
+
altBoundary?: boolean | undefined;
|
|
169
|
+
padding?: import("@floating-ui/utils").Padding | undefined;
|
|
170
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
171
|
+
}> | undefined>;
|
|
64
172
|
default: boolean;
|
|
65
173
|
};
|
|
66
174
|
arrow: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VvIconProps } from '.';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<VvIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VvIconProps> & Readonly<{}>, {
|
|
3
|
-
prefix:
|
|
3
|
+
prefix: string;
|
|
4
4
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UploadedFile } from '../../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
3
|
modelValue: {
|
|
4
|
-
type: PropType<File | UploadedFile | (File | UploadedFile)[]>;
|
|
4
|
+
type: globalThis.PropType<File | UploadedFile | (File | UploadedFile)[]>;
|
|
5
5
|
};
|
|
6
6
|
progress: {
|
|
7
7
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -20,9 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
22
|
capture: {
|
|
23
|
-
type: PropType<"user" | "environment">;
|
|
23
|
+
type: globalThis.PropType<"user" | "environment">;
|
|
24
24
|
default: undefined;
|
|
25
|
-
validation: (value?: string) => boolean;
|
|
25
|
+
validation: (value?: string | undefined) => boolean;
|
|
26
26
|
};
|
|
27
27
|
max: {
|
|
28
28
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
43
|
iconAdd: {
|
|
44
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
44
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
45
45
|
default: "add";
|
|
46
46
|
};
|
|
47
47
|
labelReplace: {
|
|
@@ -49,7 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
51
|
iconReplace: {
|
|
52
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
52
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
53
53
|
default: "edit";
|
|
54
54
|
};
|
|
55
55
|
labelDownload: {
|
|
@@ -57,7 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
59
|
iconDownload: {
|
|
60
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
60
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
61
61
|
default: "download";
|
|
62
62
|
};
|
|
63
63
|
labelRemove: {
|
|
@@ -65,11 +65,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
65
65
|
default: string;
|
|
66
66
|
};
|
|
67
67
|
icon: {
|
|
68
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
68
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
69
69
|
default: undefined;
|
|
70
70
|
};
|
|
71
71
|
iconPosition: {
|
|
72
|
-
type: PropType
|
|
72
|
+
type: globalThis.PropType<"before" | "after">;
|
|
73
73
|
default: import("../../constants").Position;
|
|
74
74
|
validation: (value: import("../../constants").Position) => boolean;
|
|
75
75
|
};
|
|
@@ -118,7 +118,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
118
118
|
default: undefined;
|
|
119
119
|
};
|
|
120
120
|
modifiers: {
|
|
121
|
-
type: PropType<string | string[]>;
|
|
121
|
+
type: globalThis.PropType<string | string[]>;
|
|
122
122
|
default: undefined;
|
|
123
123
|
};
|
|
124
124
|
name: {
|
|
@@ -132,7 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
132
132
|
remove: (args_0: File | UploadedFile) => any;
|
|
133
133
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
134
134
|
modelValue: {
|
|
135
|
-
type: PropType<File | UploadedFile | (File | UploadedFile)[]>;
|
|
135
|
+
type: globalThis.PropType<File | UploadedFile | (File | UploadedFile)[]>;
|
|
136
136
|
};
|
|
137
137
|
progress: {
|
|
138
138
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -151,9 +151,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
151
151
|
default: boolean;
|
|
152
152
|
};
|
|
153
153
|
capture: {
|
|
154
|
-
type: PropType<"user" | "environment">;
|
|
154
|
+
type: globalThis.PropType<"user" | "environment">;
|
|
155
155
|
default: undefined;
|
|
156
|
-
validation: (value?: string) => boolean;
|
|
156
|
+
validation: (value?: string | undefined) => boolean;
|
|
157
157
|
};
|
|
158
158
|
max: {
|
|
159
159
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -172,7 +172,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
172
172
|
default: string;
|
|
173
173
|
};
|
|
174
174
|
iconAdd: {
|
|
175
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
175
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
176
176
|
default: "add";
|
|
177
177
|
};
|
|
178
178
|
labelReplace: {
|
|
@@ -180,7 +180,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
180
180
|
default: string;
|
|
181
181
|
};
|
|
182
182
|
iconReplace: {
|
|
183
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
183
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
184
184
|
default: "edit";
|
|
185
185
|
};
|
|
186
186
|
labelDownload: {
|
|
@@ -188,7 +188,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
188
188
|
default: string;
|
|
189
189
|
};
|
|
190
190
|
iconDownload: {
|
|
191
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
191
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
192
192
|
default: "download";
|
|
193
193
|
};
|
|
194
194
|
labelRemove: {
|
|
@@ -196,11 +196,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
196
196
|
default: string;
|
|
197
197
|
};
|
|
198
198
|
icon: {
|
|
199
|
-
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
199
|
+
type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
|
|
200
200
|
default: undefined;
|
|
201
201
|
};
|
|
202
202
|
iconPosition: {
|
|
203
|
-
type: PropType
|
|
203
|
+
type: globalThis.PropType<"before" | "after">;
|
|
204
204
|
default: import("../../constants").Position;
|
|
205
205
|
validation: (value: import("../../constants").Position) => boolean;
|
|
206
206
|
};
|
|
@@ -249,7 +249,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
249
249
|
default: undefined;
|
|
250
250
|
};
|
|
251
251
|
modifiers: {
|
|
252
|
-
type: PropType<string | string[]>;
|
|
252
|
+
type: globalThis.PropType<string | string[]>;
|
|
253
253
|
default: undefined;
|
|
254
254
|
};
|
|
255
255
|
name: {
|
|
@@ -265,6 +265,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
265
265
|
label: string | number;
|
|
266
266
|
disabled: boolean;
|
|
267
267
|
modifiers: string | string[];
|
|
268
|
+
invalid: boolean;
|
|
268
269
|
progress: string | number;
|
|
269
270
|
icon: string | import("../VvIcon").VvIconProps;
|
|
270
271
|
iconPosition: "before" | "after";
|
|
@@ -274,7 +275,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
|
|
|
274
275
|
multiple: boolean;
|
|
275
276
|
readonly: boolean;
|
|
276
277
|
hintLabel: string;
|
|
277
|
-
invalid: boolean;
|
|
278
278
|
invalidLabel: string | unknown[];
|
|
279
279
|
valid: boolean;
|
|
280
280
|
validLabel: string | unknown[];
|
|
@@ -16,7 +16,7 @@ export declare const VvInputFileProps: {
|
|
|
16
16
|
* Input value
|
|
17
17
|
*/
|
|
18
18
|
modelValue: {
|
|
19
|
-
type: PropType<File | UploadedFile | (File | UploadedFile)[]>;
|
|
19
|
+
type: globalThis.PropType<File | UploadedFile | (File | UploadedFile)[]>;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Whether to show progress bar
|
|
@@ -55,7 +55,7 @@ export declare const VvInputFileProps: {
|
|
|
55
55
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture
|
|
56
56
|
*/
|
|
57
57
|
capture: {
|
|
58
|
-
type: PropType<"user" | "environment">;
|
|
58
|
+
type: globalThis.PropType<"user" | "environment">;
|
|
59
59
|
default: undefined;
|
|
60
60
|
validation: (value?: string) => boolean;
|
|
61
61
|
};
|
|
@@ -92,7 +92,7 @@ export declare const VvInputFileProps: {
|
|
|
92
92
|
* @see VVIcon
|
|
93
93
|
*/
|
|
94
94
|
iconAdd: {
|
|
95
|
-
type: PropType<string | VvIconProps>;
|
|
95
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
96
96
|
default: "add";
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
@@ -107,7 +107,7 @@ export declare const VvInputFileProps: {
|
|
|
107
107
|
* @see VVIcon
|
|
108
108
|
*/
|
|
109
109
|
iconReplace: {
|
|
110
|
-
type: PropType<string | VvIconProps>;
|
|
110
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
111
111
|
default: "edit";
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
@@ -122,7 +122,7 @@ export declare const VvInputFileProps: {
|
|
|
122
122
|
* @see VVIcon
|
|
123
123
|
*/
|
|
124
124
|
iconDownload: {
|
|
125
|
-
type: PropType<string | VvIconProps>;
|
|
125
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
126
126
|
default: "download";
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
@@ -133,11 +133,11 @@ export declare const VvInputFileProps: {
|
|
|
133
133
|
default: string;
|
|
134
134
|
};
|
|
135
135
|
icon: {
|
|
136
|
-
type: PropType<string | VvIconProps>;
|
|
136
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
137
137
|
default: undefined;
|
|
138
138
|
};
|
|
139
139
|
iconPosition: {
|
|
140
|
-
type: PropType
|
|
140
|
+
type: globalThis.PropType<"before" | "after">;
|
|
141
141
|
default: import("../../constants").Position;
|
|
142
142
|
validation: (value: import("../../constants").Position) => boolean;
|
|
143
143
|
};
|
|
@@ -186,7 +186,7 @@ export declare const VvInputFileProps: {
|
|
|
186
186
|
default: undefined;
|
|
187
187
|
};
|
|
188
188
|
modifiers: {
|
|
189
|
-
type: PropType<string | string[]>;
|
|
189
|
+
type: globalThis.PropType<string | string[]>;
|
|
190
190
|
default: undefined;
|
|
191
191
|
};
|
|
192
192
|
name: {
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
icon: {
|
|
12
|
-
type: PropType<string | VvIconProps>;
|
|
12
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
}>, {
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
icon: {
|
|
28
|
-
type: PropType<string | VvIconProps>;
|
|
28
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}>> & Readonly<{
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
36
36
|
icon: string | VvIconProps;
|
|
37
37
|
}, {}, {
|
|
38
38
|
VvIcon: import("vue").DefineComponent<VvIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VvIconProps> & Readonly<{}>, {
|
|
39
|
-
prefix:
|
|
39
|
+
prefix: string;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
42
|
export default _default;
|
|
@@ -13,11 +13,11 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
iconShow: {
|
|
16
|
-
type: PropType<string | VvIconProps>;
|
|
16
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
17
17
|
default: "eye-on";
|
|
18
18
|
};
|
|
19
19
|
iconHide: {
|
|
20
|
-
type: PropType<string | VvIconProps>;
|
|
20
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
21
21
|
default: "eye-off";
|
|
22
22
|
};
|
|
23
23
|
}>, {
|
|
@@ -39,11 +39,11 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
39
39
|
default: string;
|
|
40
40
|
};
|
|
41
41
|
iconShow: {
|
|
42
|
-
type: PropType<string | VvIconProps>;
|
|
42
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
43
43
|
default: "eye-on";
|
|
44
44
|
};
|
|
45
45
|
iconHide: {
|
|
46
|
-
type: PropType<string | VvIconProps>;
|
|
46
|
+
type: globalThis.PropType<string | VvIconProps>;
|
|
47
47
|
default: "eye-off";
|
|
48
48
|
};
|
|
49
49
|
}>> & Readonly<{
|
|
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
56
56
|
iconHide: string | VvIconProps;
|
|
57
57
|
}, {}, {
|
|
58
58
|
VvIcon: import("vue").DefineComponent<VvIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VvIconProps> & Readonly<{}>, {
|
|
59
|
-
prefix:
|
|
59
|
+
prefix: string;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
61
61
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
62
|
export default _default;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
}, {}, {
|
|
37
37
|
VvIcon: import("vue").DefineComponent<import("../VvIcon/index.js").VvIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../VvIcon/index.js").VvIconProps> & Readonly<{}>, {
|
|
38
|
-
prefix:
|
|
38
|
+
prefix: string;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
export default _default;
|
|
@@ -4,6 +4,7 @@ import { autoPlacement, flip, shift, size, offset, arrow, useFloating, autoUpdat
|
|
|
4
4
|
import { useMutationObserver, useVModel, onClickOutside, useFocusWithin, useElementHover, onKeyStroke, useFocus, useStorage, useElementVisibility } from "@vueuse/core";
|
|
5
5
|
import mitt from "mitt";
|
|
6
6
|
import { iconExists, Icon, addIcon } from "@iconify/vue";
|
|
7
|
+
const padTwoDigits = (num) => num.toString().padStart(2, "0");
|
|
7
8
|
function isDateIsoString(dateString) {
|
|
8
9
|
if (typeof dateString !== "string") {
|
|
9
10
|
return false;
|
|
@@ -24,16 +25,15 @@ function getInputValueFromDate(date, typeOfInput = "date", withSeconds) {
|
|
|
24
25
|
if (Number.isNaN(currentDate.getTime())) {
|
|
25
26
|
return "";
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
let toReturn = `${currentDate.getFullYear()}-${span(currentDate.getMonth() + 1)}`;
|
|
28
|
+
let toReturn = `${currentDate.getFullYear()}-${padTwoDigits(currentDate.getMonth() + 1)}`;
|
|
29
29
|
if (typeOfInput === "month") {
|
|
30
30
|
return toReturn;
|
|
31
31
|
}
|
|
32
|
-
toReturn += `-${
|
|
32
|
+
toReturn += `-${padTwoDigits(currentDate.getDate())}`;
|
|
33
33
|
if (typeOfInput === "date") {
|
|
34
34
|
return toReturn;
|
|
35
35
|
}
|
|
36
|
-
const time = withSeconds ? `${
|
|
36
|
+
const time = withSeconds ? `${padTwoDigits(currentDate.getHours())}:${padTwoDigits(currentDate.getMinutes())}:${padTwoDigits(currentDate.getSeconds())}` : `${padTwoDigits(currentDate.getHours())}:${padTwoDigits(currentDate.getMinutes())}`;
|
|
37
37
|
if (typeOfInput === "time") {
|
|
38
38
|
return time;
|
|
39
39
|
}
|
|
@@ -64,9 +64,9 @@ function getDateFromInputValue(value, typeOfInput = "date") {
|
|
|
64
64
|
throw new Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
|
|
65
65
|
}
|
|
66
66
|
if (value.length === 8) {
|
|
67
|
-
return /* @__PURE__ */ new Date(`${currentYear}-${currentMonth + 1}-${currentDate}T${value}`);
|
|
67
|
+
return /* @__PURE__ */ new Date(`${currentYear}-${padTwoDigits(currentMonth + 1)}-${padTwoDigits(currentDate)}T${value}`);
|
|
68
68
|
}
|
|
69
|
-
return /* @__PURE__ */ new Date(`${currentYear}-${currentMonth + 1}-${currentDate}T${value}:00`);
|
|
69
|
+
return /* @__PURE__ */ new Date(`${currentYear}-${padTwoDigits(currentMonth + 1)}-${padTwoDigits(currentDate)}T${value}:00`);
|
|
70
70
|
}
|
|
71
71
|
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/.test(value)) {
|
|
72
72
|
throw new Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
|
|
@@ -2095,6 +2095,9 @@ function usePersistence(storageKey, storageType = StorageType.local, defaultValu
|
|
|
2095
2095
|
(storageValue == null ? void 0 : storageValue.value) ?? localValue.value,
|
|
2096
2096
|
storage
|
|
2097
2097
|
);
|
|
2098
|
+
if (storageValue.value) {
|
|
2099
|
+
localValue.value = storageValue.value;
|
|
2100
|
+
}
|
|
2098
2101
|
return;
|
|
2099
2102
|
}
|
|
2100
2103
|
storageValue = void 0;
|
|
@@ -2123,18 +2126,15 @@ function usePersistence(storageKey, storageType = StorageType.local, defaultValu
|
|
|
2123
2126
|
});
|
|
2124
2127
|
}
|
|
2125
2128
|
});
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
},
|
|
2130
|
-
set: (value) => {
|
|
2131
|
-
if (storageValue) {
|
|
2132
|
-
storageValue.value = value;
|
|
2133
|
-
return;
|
|
2134
|
-
}
|
|
2135
|
-
localValue.value = value;
|
|
2129
|
+
watch(localValue, (newValue) => {
|
|
2130
|
+
if (storageValue) {
|
|
2131
|
+
storageValue.value = newValue;
|
|
2136
2132
|
}
|
|
2133
|
+
}, {
|
|
2134
|
+
deep: true,
|
|
2135
|
+
immediate: true
|
|
2137
2136
|
});
|
|
2137
|
+
return localValue;
|
|
2138
2138
|
}
|
|
2139
2139
|
const _hoisted_1 = ["for"];
|
|
2140
2140
|
const _hoisted_2 = {
|