@nuxt/ui 2.11.0 → 2.12.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/dist/module.d.mts +294 -48
- package/dist/module.d.ts +294 -48
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -4
- package/dist/runtime/components/data/Table.vue +29 -21
- package/dist/runtime/components/data/Table.vue.d.ts +28 -19
- package/dist/runtime/components/elements/Accordion.vue +10 -6
- package/dist/runtime/components/elements/Accordion.vue.d.ts +11 -11
- package/dist/runtime/components/elements/Alert.vue +12 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +12 -17
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +9 -8
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
- package/dist/runtime/components/elements/Chip.vue +2 -2
- package/dist/runtime/components/elements/Chip.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Dropdown.vue +68 -19
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +37 -9
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Link.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +5 -94
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +7 -7
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Form.vue +17 -8
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +2 -2
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
- package/dist/runtime/components/forms/Input.vue +8 -8
- package/dist/runtime/components/forms/Input.vue.d.ts +11 -11
- package/dist/runtime/components/forms/InputMenu.vue +410 -0
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +331 -0
- package/dist/runtime/components/forms/Radio.vue +7 -7
- package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
- package/dist/runtime/components/forms/RadioGroup.vue +5 -5
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Range.vue +5 -5
- package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Select.vue +8 -8
- package/dist/runtime/components/forms/Select.vue.d.ts +10 -10
- package/dist/runtime/components/forms/SelectMenu.vue +69 -36
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +40 -20
- package/dist/runtime/components/forms/Textarea.vue +3 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue +10 -10
- package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -15
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Divider.vue +3 -8
- package/dist/runtime/components/layout/Divider.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Breadcrumb.vue +9 -6
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +10 -7
- package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +16 -9
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +16 -11
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +16 -7
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
- package/dist/runtime/components/navigation/VerticalNavigation.vue +56 -39
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +14 -10
- package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Modal.vue +3 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +8 -8
- package/dist/runtime/components/overlays/Notification.vue +7 -7
- package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notifications.vue +2 -2
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +54 -17
- package/dist/runtime/components/overlays/Popover.vue.d.ts +21 -11
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/useFormGroup.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.mjs +1 -1
- package/dist/runtime/composables/useShortcuts.mjs +3 -1
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/alert.d.ts +5 -0
- package/dist/runtime/types/breadcrumb.d.ts +3 -0
- package/dist/runtime/types/dropdown.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/utils.d.ts +4 -4
- package/dist/runtime/types/vertical-navigation.d.ts +1 -0
- package/dist/runtime/ui.config/data/table.d.ts +2 -2
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/alert.mjs +1 -0
- package/dist/runtime/ui.config/elements/button.d.ts +4 -0
- package/dist/runtime/ui.config/elements/button.mjs +4 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
- package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
- package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
- package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
- package/dist/runtime/ui.config/forms/input.d.ts +2 -0
- package/dist/runtime/ui.config/forms/input.mjs +14 -12
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +64 -0
- package/dist/runtime/ui.config/forms/inputMenu.mjs +62 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
- package/dist/runtime/ui.config/forms/radio.mjs +3 -0
- package/dist/runtime/ui.config/forms/select.d.ts +2 -0
- package/dist/runtime/ui.config/forms/select.mjs +1 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +18 -11
- package/dist/runtime/ui.config/forms/selectMenu.mjs +12 -41
- package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
- package/dist/runtime/ui.config/index.d.ts +1 -0
- package/dist/runtime/ui.config/index.mjs +1 -0
- package/dist/runtime/ui.config/layout/card.mjs +1 -1
- package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
- package/dist/runtime/ui.config/layout/divider.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +2 -1
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
- package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +6 -1
- package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +5 -0
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
- package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
- package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
- package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
- package/dist/runtime/ui.config/popper.mjs +9 -0
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.mjs +11 -3
- package/dist/runtime/utils/uid.mjs +2 -1
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +29 -28
- package/dist/runtime/ui.config/_popperArrow.mjs +0 -8
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { InputSize, InputVariant, PopperOptions } from '../../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: (ObjectConstructor | NumberConstructor | ArrayConstructor | StringConstructor)[];
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
query: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
by: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
options: {
|
|
17
|
+
type: PropType<string[] | {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
}[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
id: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
name: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: null;
|
|
30
|
+
};
|
|
31
|
+
required: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
icon: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
loadingIcon: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: () => any;
|
|
42
|
+
};
|
|
43
|
+
leadingIcon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
trailingIcon: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: () => any;
|
|
50
|
+
};
|
|
51
|
+
trailing: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
leading: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
loading: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
selectedIcon: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: () => any;
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
placeholder: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: null;
|
|
74
|
+
};
|
|
75
|
+
padded: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
type: PropType<InputSize>;
|
|
81
|
+
default: null;
|
|
82
|
+
validator(value: string): boolean;
|
|
83
|
+
};
|
|
84
|
+
color: {
|
|
85
|
+
type: PropType<any>;
|
|
86
|
+
default: () => any;
|
|
87
|
+
validator(value: string): boolean;
|
|
88
|
+
};
|
|
89
|
+
variant: {
|
|
90
|
+
type: PropType<InputVariant>;
|
|
91
|
+
default: () => any;
|
|
92
|
+
validator(value: string): boolean;
|
|
93
|
+
};
|
|
94
|
+
optionAttribute: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
valueAttribute: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: null;
|
|
101
|
+
};
|
|
102
|
+
search: {
|
|
103
|
+
type: PropType<(query: string) => Promise<any[]> | any[]>;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
searchAttributes: {
|
|
107
|
+
type: ArrayConstructor;
|
|
108
|
+
default: null;
|
|
109
|
+
};
|
|
110
|
+
debounce: {
|
|
111
|
+
type: NumberConstructor;
|
|
112
|
+
default: number;
|
|
113
|
+
};
|
|
114
|
+
popper: {
|
|
115
|
+
type: PropType<PopperOptions>;
|
|
116
|
+
default: () => {};
|
|
117
|
+
};
|
|
118
|
+
inputClass: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: null;
|
|
121
|
+
};
|
|
122
|
+
class: {
|
|
123
|
+
type: PropType<any>;
|
|
124
|
+
default: () => "";
|
|
125
|
+
};
|
|
126
|
+
ui: {
|
|
127
|
+
type: PropType<any>;
|
|
128
|
+
default: () => {};
|
|
129
|
+
};
|
|
130
|
+
uiMenu: {
|
|
131
|
+
type: PropType<any>;
|
|
132
|
+
default: () => {};
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
ui: import("vue").ComputedRef<any>;
|
|
136
|
+
uiMenu: import("vue").ComputedRef<any>;
|
|
137
|
+
attrs: import("vue").ComputedRef<Pick<{
|
|
138
|
+
[x: string]: unknown;
|
|
139
|
+
}, string>>;
|
|
140
|
+
name: import("vue").ComputedRef<string | undefined>;
|
|
141
|
+
inputId: import("vue").Ref<string | undefined>;
|
|
142
|
+
popper: import("vue").ComputedRef<PopperOptions>;
|
|
143
|
+
trigger: import("vue").Ref<import("@vueuse/core").MaybeElement>;
|
|
144
|
+
container: import("vue").Ref<import("@vueuse/core").MaybeElement>;
|
|
145
|
+
isLeading: import("vue").ComputedRef<string | true>;
|
|
146
|
+
isTrailing: import("vue").ComputedRef<string | true | undefined>;
|
|
147
|
+
inputClass: import("vue").ComputedRef<string>;
|
|
148
|
+
leadingIconName: import("vue").ComputedRef<string | undefined>;
|
|
149
|
+
leadingIconClass: import("vue").ComputedRef<string>;
|
|
150
|
+
leadingWrapperIconClass: import("vue").ComputedRef<string>;
|
|
151
|
+
trailingIconName: import("vue").ComputedRef<string | undefined>;
|
|
152
|
+
trailingIconClass: import("vue").ComputedRef<string>;
|
|
153
|
+
trailingWrapperIconClass: import("vue").ComputedRef<string>;
|
|
154
|
+
filteredOptions: import("vue").Ref<any[]>;
|
|
155
|
+
query: import("vue").WritableComputedRef<string>;
|
|
156
|
+
onUpdate: (event: any) => void;
|
|
157
|
+
onChange: (event: any) => void;
|
|
158
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "update:modelValue" | "open" | "update:query")[], "change" | "close" | "update:modelValue" | "open" | "update:query", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
159
|
+
modelValue: {
|
|
160
|
+
type: (ObjectConstructor | NumberConstructor | ArrayConstructor | StringConstructor)[];
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
query: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: null;
|
|
166
|
+
};
|
|
167
|
+
by: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: undefined;
|
|
170
|
+
};
|
|
171
|
+
options: {
|
|
172
|
+
type: PropType<string[] | {
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
disabled?: boolean | undefined;
|
|
175
|
+
}[]>;
|
|
176
|
+
default: () => never[];
|
|
177
|
+
};
|
|
178
|
+
id: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: null;
|
|
181
|
+
};
|
|
182
|
+
name: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
default: null;
|
|
185
|
+
};
|
|
186
|
+
required: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
icon: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: null;
|
|
193
|
+
};
|
|
194
|
+
loadingIcon: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: () => any;
|
|
197
|
+
};
|
|
198
|
+
leadingIcon: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: null;
|
|
201
|
+
};
|
|
202
|
+
trailingIcon: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: () => any;
|
|
205
|
+
};
|
|
206
|
+
trailing: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
leading: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
loading: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: boolean;
|
|
217
|
+
};
|
|
218
|
+
selectedIcon: {
|
|
219
|
+
type: StringConstructor;
|
|
220
|
+
default: () => any;
|
|
221
|
+
};
|
|
222
|
+
disabled: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
placeholder: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: null;
|
|
229
|
+
};
|
|
230
|
+
padded: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
default: boolean;
|
|
233
|
+
};
|
|
234
|
+
size: {
|
|
235
|
+
type: PropType<InputSize>;
|
|
236
|
+
default: null;
|
|
237
|
+
validator(value: string): boolean;
|
|
238
|
+
};
|
|
239
|
+
color: {
|
|
240
|
+
type: PropType<any>;
|
|
241
|
+
default: () => any;
|
|
242
|
+
validator(value: string): boolean;
|
|
243
|
+
};
|
|
244
|
+
variant: {
|
|
245
|
+
type: PropType<InputVariant>;
|
|
246
|
+
default: () => any;
|
|
247
|
+
validator(value: string): boolean;
|
|
248
|
+
};
|
|
249
|
+
optionAttribute: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
valueAttribute: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
default: null;
|
|
256
|
+
};
|
|
257
|
+
search: {
|
|
258
|
+
type: PropType<(query: string) => Promise<any[]> | any[]>;
|
|
259
|
+
default: undefined;
|
|
260
|
+
};
|
|
261
|
+
searchAttributes: {
|
|
262
|
+
type: ArrayConstructor;
|
|
263
|
+
default: null;
|
|
264
|
+
};
|
|
265
|
+
debounce: {
|
|
266
|
+
type: NumberConstructor;
|
|
267
|
+
default: number;
|
|
268
|
+
};
|
|
269
|
+
popper: {
|
|
270
|
+
type: PropType<PopperOptions>;
|
|
271
|
+
default: () => {};
|
|
272
|
+
};
|
|
273
|
+
inputClass: {
|
|
274
|
+
type: StringConstructor;
|
|
275
|
+
default: null;
|
|
276
|
+
};
|
|
277
|
+
class: {
|
|
278
|
+
type: PropType<any>;
|
|
279
|
+
default: () => "";
|
|
280
|
+
};
|
|
281
|
+
ui: {
|
|
282
|
+
type: PropType<any>;
|
|
283
|
+
default: () => {};
|
|
284
|
+
};
|
|
285
|
+
uiMenu: {
|
|
286
|
+
type: PropType<any>;
|
|
287
|
+
default: () => {};
|
|
288
|
+
};
|
|
289
|
+
}>> & {
|
|
290
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
291
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
"onUpdate:query"?: ((...args: any[]) => any) | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
size: InputSize;
|
|
297
|
+
ui: any;
|
|
298
|
+
id: string;
|
|
299
|
+
icon: string;
|
|
300
|
+
color: any;
|
|
301
|
+
options: string[] | {
|
|
302
|
+
[key: string]: any;
|
|
303
|
+
disabled?: boolean | undefined;
|
|
304
|
+
}[];
|
|
305
|
+
popper: PopperOptions;
|
|
306
|
+
name: string;
|
|
307
|
+
leading: boolean;
|
|
308
|
+
search: (query: string) => Promise<any[]> | any[];
|
|
309
|
+
class: any;
|
|
310
|
+
modelValue: string | number | unknown[] | Record<string, any>;
|
|
311
|
+
by: string;
|
|
312
|
+
loading: boolean;
|
|
313
|
+
disabled: boolean;
|
|
314
|
+
variant: InputVariant;
|
|
315
|
+
required: boolean;
|
|
316
|
+
placeholder: string;
|
|
317
|
+
padded: boolean;
|
|
318
|
+
loadingIcon: string;
|
|
319
|
+
leadingIcon: string;
|
|
320
|
+
trailingIcon: string;
|
|
321
|
+
trailing: boolean;
|
|
322
|
+
inputClass: string;
|
|
323
|
+
query: string;
|
|
324
|
+
selectedIcon: string;
|
|
325
|
+
optionAttribute: string;
|
|
326
|
+
valueAttribute: string;
|
|
327
|
+
searchAttributes: unknown[];
|
|
328
|
+
debounce: number;
|
|
329
|
+
uiMenu: any;
|
|
330
|
+
}, {}>;
|
|
331
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="ui.wrapper">
|
|
3
|
-
<div class="
|
|
3
|
+
<div :class="ui.container">
|
|
4
4
|
<input
|
|
5
5
|
:id="inputId"
|
|
6
6
|
v-model="pick"
|
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
:value="value"
|
|
10
10
|
:disabled="disabled"
|
|
11
11
|
type="radio"
|
|
12
|
-
class="form-radio"
|
|
13
12
|
:class="inputClass"
|
|
14
13
|
v-bind="attrs"
|
|
15
14
|
>
|
|
16
15
|
</div>
|
|
17
|
-
<div v-if="label || $slots.label" class="
|
|
16
|
+
<div v-if="label || $slots.label" :class="ui.inner">
|
|
18
17
|
<label :for="inputId" :class="ui.label">
|
|
19
18
|
<slot name="label">{{ label }}</slot>
|
|
20
19
|
<span v-if="required" :class="ui.required">*</span>
|
|
@@ -84,11 +83,11 @@ export default defineComponent({
|
|
|
84
83
|
},
|
|
85
84
|
class: {
|
|
86
85
|
type: [String, Object, Array],
|
|
87
|
-
default:
|
|
86
|
+
default: () => ""
|
|
88
87
|
},
|
|
89
88
|
ui: {
|
|
90
89
|
type: Object,
|
|
91
|
-
default:
|
|
90
|
+
default: () => ({})
|
|
92
91
|
}
|
|
93
92
|
},
|
|
94
93
|
emits: ["update:modelValue", "change"],
|
|
@@ -117,10 +116,11 @@ export default defineComponent({
|
|
|
117
116
|
const inputClass = computed(() => {
|
|
118
117
|
return twMerge(twJoin(
|
|
119
118
|
ui.value.base,
|
|
119
|
+
ui.value.form,
|
|
120
120
|
ui.value.background,
|
|
121
121
|
ui.value.border,
|
|
122
|
-
ui.value.ring.replaceAll("{color}", color.value),
|
|
123
|
-
ui.value.color.replaceAll("{color}", color.value)
|
|
122
|
+
color.value && ui.value.ring.replaceAll("{color}", color.value),
|
|
123
|
+
color.value && ui.value.color.replaceAll("{color}", color.value)
|
|
124
124
|
), props.inputClass);
|
|
125
125
|
});
|
|
126
126
|
return {
|
|
@@ -43,11 +43,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
};
|
|
44
44
|
class: {
|
|
45
45
|
type: PropType<any>;
|
|
46
|
-
default:
|
|
46
|
+
default: () => "";
|
|
47
47
|
};
|
|
48
48
|
ui: {
|
|
49
|
-
type: PropType<
|
|
50
|
-
default:
|
|
49
|
+
type: PropType<any>;
|
|
50
|
+
default: () => {};
|
|
51
51
|
};
|
|
52
52
|
}, {
|
|
53
53
|
inputId: import("vue").Ref<string>;
|
|
@@ -102,17 +102,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
};
|
|
103
103
|
class: {
|
|
104
104
|
type: PropType<any>;
|
|
105
|
-
default:
|
|
105
|
+
default: () => "";
|
|
106
106
|
};
|
|
107
107
|
ui: {
|
|
108
|
-
type: PropType<
|
|
109
|
-
default:
|
|
108
|
+
type: PropType<any>;
|
|
109
|
+
default: () => {};
|
|
110
110
|
};
|
|
111
111
|
}>> & {
|
|
112
112
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
114
114
|
}, {
|
|
115
|
-
ui:
|
|
115
|
+
ui: any;
|
|
116
116
|
value: string | number | boolean;
|
|
117
117
|
id: string;
|
|
118
118
|
color: any;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:label="option.label"
|
|
13
13
|
:model-value="modelValue"
|
|
14
14
|
:value="option.value"
|
|
15
|
-
:disabled="disabled"
|
|
15
|
+
:disabled="option.disabled || disabled"
|
|
16
16
|
:ui="uiRadio"
|
|
17
17
|
@change="onUpdate(option.value)"
|
|
18
18
|
>
|
|
@@ -77,22 +77,22 @@ export default defineComponent({
|
|
|
77
77
|
},
|
|
78
78
|
class: {
|
|
79
79
|
type: [String, Object, Array],
|
|
80
|
-
default:
|
|
80
|
+
default: () => ""
|
|
81
81
|
},
|
|
82
82
|
ui: {
|
|
83
83
|
type: Object,
|
|
84
|
-
default:
|
|
84
|
+
default: () => ({})
|
|
85
85
|
},
|
|
86
86
|
uiRadio: {
|
|
87
87
|
type: Object,
|
|
88
|
-
default:
|
|
88
|
+
default: () => ({})
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
emits: ["update:modelValue", "change"],
|
|
92
92
|
setup(props, { emit }) {
|
|
93
93
|
const { ui, attrs } = useUI("radioGroup", toRef(props, "ui"), config, toRef(props, "class"));
|
|
94
94
|
const { ui: uiRadio } = useUI("radio", toRef(props, "uiRadio"), configRadio);
|
|
95
|
-
const { emitFormChange, color, name } = useFormGroup(
|
|
95
|
+
const { emitFormChange, color, name } = useFormGroup(props, config);
|
|
96
96
|
provide("radio-group", { color, name });
|
|
97
97
|
const onUpdate = (value) => {
|
|
98
98
|
emit("update:modelValue", value);
|
|
@@ -35,15 +35,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
};
|
|
36
36
|
class: {
|
|
37
37
|
type: PropType<any>;
|
|
38
|
-
default:
|
|
38
|
+
default: () => "";
|
|
39
39
|
};
|
|
40
40
|
ui: {
|
|
41
|
-
type: PropType<
|
|
42
|
-
default:
|
|
41
|
+
type: PropType<any>;
|
|
42
|
+
default: () => {};
|
|
43
43
|
};
|
|
44
44
|
uiRadio: {
|
|
45
|
-
type: PropType<
|
|
46
|
-
default:
|
|
45
|
+
type: PropType<any>;
|
|
46
|
+
default: () => {};
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
49
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -89,30 +89,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
};
|
|
90
90
|
class: {
|
|
91
91
|
type: PropType<any>;
|
|
92
|
-
default:
|
|
92
|
+
default: () => "";
|
|
93
93
|
};
|
|
94
94
|
ui: {
|
|
95
|
-
type: PropType<
|
|
96
|
-
default:
|
|
95
|
+
type: PropType<any>;
|
|
96
|
+
default: () => {};
|
|
97
97
|
};
|
|
98
98
|
uiRadio: {
|
|
99
|
-
type: PropType<
|
|
100
|
-
default:
|
|
99
|
+
type: PropType<any>;
|
|
100
|
+
default: () => {};
|
|
101
101
|
};
|
|
102
102
|
}>> & {
|
|
103
103
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
104
104
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
ui:
|
|
106
|
+
ui: any;
|
|
107
107
|
color: any;
|
|
108
|
+
legend: string;
|
|
108
109
|
options: unknown[];
|
|
109
110
|
name: string;
|
|
110
111
|
class: any;
|
|
111
|
-
legend: string;
|
|
112
112
|
modelValue: string | number | Record<string, any>;
|
|
113
113
|
disabled: boolean;
|
|
114
114
|
optionAttribute: string;
|
|
115
115
|
valueAttribute: string;
|
|
116
|
-
uiRadio:
|
|
116
|
+
uiRadio: any;
|
|
117
117
|
}, {}>;
|
|
118
118
|
export default _default;
|
|
@@ -79,11 +79,11 @@ export default defineComponent({
|
|
|
79
79
|
},
|
|
80
80
|
class: {
|
|
81
81
|
type: [String, Object, Array],
|
|
82
|
-
default:
|
|
82
|
+
default: () => ""
|
|
83
83
|
},
|
|
84
84
|
ui: {
|
|
85
85
|
type: Object,
|
|
86
|
-
default:
|
|
86
|
+
default: () => ({})
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
emits: ["update:modelValue", "change"],
|
|
@@ -113,7 +113,7 @@ export default defineComponent({
|
|
|
113
113
|
ui.value.base,
|
|
114
114
|
ui.value.background,
|
|
115
115
|
ui.value.rounded,
|
|
116
|
-
ui.value.ring.replaceAll("{color}", color.value),
|
|
116
|
+
color.value && ui.value.ring.replaceAll("{color}", color.value),
|
|
117
117
|
ui.value.size[size.value]
|
|
118
118
|
), props.inputClass);
|
|
119
119
|
});
|
|
@@ -121,7 +121,7 @@ export default defineComponent({
|
|
|
121
121
|
return twJoin(
|
|
122
122
|
ui.value.thumb.base,
|
|
123
123
|
// Intermediate class to allow thumb ring or background color (set to `current`) as it's impossible to safelist with arbitrary values
|
|
124
|
-
ui.value.thumb.color.replaceAll("{color}", color.value),
|
|
124
|
+
color.value && ui.value.thumb.color.replaceAll("{color}", color.value),
|
|
125
125
|
ui.value.thumb.ring,
|
|
126
126
|
ui.value.thumb.background,
|
|
127
127
|
ui.value.thumb.size[size.value]
|
|
@@ -139,7 +139,7 @@ export default defineComponent({
|
|
|
139
139
|
return twJoin(
|
|
140
140
|
ui.value.progress.base,
|
|
141
141
|
ui.value.progress.rounded,
|
|
142
|
-
ui.value.progress.background.replaceAll("{color}", color.value),
|
|
142
|
+
color.value && ui.value.progress.background.replaceAll("{color}", color.value),
|
|
143
143
|
ui.value.progress.size[size.value]
|
|
144
144
|
);
|
|
145
145
|
});
|
|
@@ -45,11 +45,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
};
|
|
46
46
|
class: {
|
|
47
47
|
type: PropType<any>;
|
|
48
|
-
default:
|
|
48
|
+
default: () => "";
|
|
49
49
|
};
|
|
50
50
|
ui: {
|
|
51
|
-
type: PropType<
|
|
52
|
-
default:
|
|
51
|
+
type: PropType<any>;
|
|
52
|
+
default: () => {};
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
[x: string]: unknown;
|
|
58
58
|
}, string>>;
|
|
59
59
|
name: import("vue").ComputedRef<string | undefined>;
|
|
60
|
-
inputId: import("vue").Ref<string |
|
|
60
|
+
inputId: import("vue").Ref<string | undefined>;
|
|
61
61
|
value: import("vue").WritableComputedRef<number>;
|
|
62
62
|
wrapperClass: import("vue").ComputedRef<string>;
|
|
63
63
|
inputClass: import("vue").ComputedRef<string>;
|
|
@@ -113,18 +113,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
113
|
};
|
|
114
114
|
class: {
|
|
115
115
|
type: PropType<any>;
|
|
116
|
-
default:
|
|
116
|
+
default: () => "";
|
|
117
117
|
};
|
|
118
118
|
ui: {
|
|
119
|
-
type: PropType<
|
|
120
|
-
default:
|
|
119
|
+
type: PropType<any>;
|
|
120
|
+
default: () => {};
|
|
121
121
|
};
|
|
122
122
|
}>> & {
|
|
123
123
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
size: RangeSize;
|
|
127
|
-
ui:
|
|
127
|
+
ui: any;
|
|
128
128
|
id: string;
|
|
129
129
|
color: any;
|
|
130
130
|
name: string;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
:name="name"
|
|
6
6
|
:value="modelValue"
|
|
7
7
|
:required="required"
|
|
8
|
-
:disabled="disabled
|
|
9
|
-
class="form-select"
|
|
8
|
+
:disabled="disabled"
|
|
10
9
|
:class="selectClass"
|
|
11
10
|
v-bind="attrs"
|
|
12
11
|
@input="onInput"
|
|
@@ -168,11 +167,11 @@ export default defineComponent({
|
|
|
168
167
|
},
|
|
169
168
|
class: {
|
|
170
169
|
type: [String, Object, Array],
|
|
171
|
-
default:
|
|
170
|
+
default: () => ""
|
|
172
171
|
},
|
|
173
172
|
ui: {
|
|
174
173
|
type: Object,
|
|
175
|
-
default:
|
|
174
|
+
default: () => ({})
|
|
176
175
|
}
|
|
177
176
|
},
|
|
178
177
|
emits: ["update:modelValue", "change"],
|
|
@@ -235,6 +234,7 @@ export default defineComponent({
|
|
|
235
234
|
const variant = ui.value.color?.[color.value]?.[props.variant] || ui.value.variant[props.variant];
|
|
236
235
|
return twMerge(twJoin(
|
|
237
236
|
ui.value.base,
|
|
237
|
+
ui.value.form,
|
|
238
238
|
rounded.value,
|
|
239
239
|
ui.value.size[size.value],
|
|
240
240
|
props.padded ? ui.value.padding[size.value] : "p-0",
|
|
@@ -271,9 +271,9 @@ export default defineComponent({
|
|
|
271
271
|
const leadingIconClass = computed(() => {
|
|
272
272
|
return twJoin(
|
|
273
273
|
ui.value.icon.base,
|
|
274
|
-
appConfig.ui.colors.includes(color.value) && ui.value.icon.color.replaceAll("{color}", color.value),
|
|
274
|
+
color.value && appConfig.ui.colors.includes(color.value) && ui.value.icon.color.replaceAll("{color}", color.value),
|
|
275
275
|
ui.value.icon.size[size.value],
|
|
276
|
-
props.loading &&
|
|
276
|
+
props.loading && ui.value.icon.loading
|
|
277
277
|
);
|
|
278
278
|
});
|
|
279
279
|
const trailingWrapperIconClass = computed(() => {
|
|
@@ -286,9 +286,9 @@ export default defineComponent({
|
|
|
286
286
|
const trailingIconClass = computed(() => {
|
|
287
287
|
return twJoin(
|
|
288
288
|
ui.value.icon.base,
|
|
289
|
-
appConfig.ui.colors.includes(color.value) && ui.value.icon.color.replaceAll("{color}", color.value),
|
|
289
|
+
color.value && appConfig.ui.colors.includes(color.value) && ui.value.icon.color.replaceAll("{color}", color.value),
|
|
290
290
|
ui.value.icon.size[size.value],
|
|
291
|
-
props.loading && !isLeading.value &&
|
|
291
|
+
props.loading && !isLeading.value && ui.value.icon.loading
|
|
292
292
|
);
|
|
293
293
|
});
|
|
294
294
|
return {
|