@nuxt/ui 2.15.1 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -18
- package/dist/module.d.mts +4 -24
- package/dist/module.d.ts +4 -24
- package/dist/module.json +1 -1
- package/dist/module.mjs +108 -329
- package/dist/runtime/components/data/Table.vue +35 -4
- package/dist/runtime/components/data/Table.vue.d.ts +25 -35
- package/dist/runtime/components/elements/Accordion.vue +25 -7
- package/dist/runtime/components/elements/Accordion.vue.d.ts +10 -1
- package/dist/runtime/components/elements/Alert.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Avatar.vue.d.ts +10 -10
- package/dist/runtime/components/elements/Badge.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Button.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Carousel.vue +10 -4
- package/dist/runtime/components/elements/Carousel.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Chip.vue.d.ts +8 -8
- package/dist/runtime/components/elements/Dropdown.vue +2 -2
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Link.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Meter.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Progress.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Form.vue.d.ts +2 -2
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
- package/dist/runtime/components/forms/Input.vue +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +14 -14
- package/dist/runtime/components/forms/InputMenu.vue +6 -0
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +30 -21
- package/dist/runtime/components/forms/Radio.vue.d.ts +11 -11
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Select.vue.d.ts +13 -13
- package/dist/runtime/components/forms/SelectMenu.vue +6 -0
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +30 -21
- package/dist/runtime/components/forms/Textarea.vue.d.ts +12 -12
- package/dist/runtime/components/forms/Toggle.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue.d.ts +5 -5
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue +1 -0
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +10 -10
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Pagination.vue +5 -0
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +10 -1
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Modal.vue +6 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -5
- package/dist/runtime/components/overlays/Modals.client.vue +8 -2
- package/dist/runtime/components/overlays/Notification.vue +8 -3
- package/dist/runtime/components/overlays/Notification.vue.d.ts +8 -8
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +3 -1
- package/dist/runtime/components/overlays/Popover.vue +2 -2
- package/dist/runtime/components/overlays/Popover.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Slideover.vue +6 -2
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +10 -8
- package/dist/runtime/components/overlays/Slideovers.client.vue +2 -1
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useModal.d.ts +3 -2
- package/dist/runtime/composables/useModal.mjs +13 -3
- package/dist/runtime/composables/usePopper.d.ts +8 -8
- package/dist/runtime/composables/useSlideover.d.ts +2 -1
- package/dist/runtime/composables/useSlideover.mjs +8 -1
- package/dist/runtime/composables/useToast.d.ts +2 -0
- package/dist/runtime/composables/useToast.mjs +13 -1
- package/dist/runtime/types/slideover.d.ts +11 -12
- package/dist/runtime/ui.config/data/table.d.ts +4 -0
- package/dist/runtime/ui.config/data/table.mjs +4 -0
- package/dist/runtime/ui.config/forms/input.d.ts +0 -8
- package/dist/runtime/ui.config/forms/input.mjs +1 -9
- package/dist/runtime/ui.config/forms/select.d.ts +0 -8
- package/dist/runtime/ui.config/forms/textarea.d.ts +0 -8
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +1 -1
- package/dist/runtime/utils/colors.d.ts +11 -0
- package/dist/runtime/utils/colors.mjs +299 -0
- package/package.json +22 -25
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
default: () => null;
|
|
6
6
|
};
|
|
7
7
|
value: {
|
|
8
|
-
type: (
|
|
8
|
+
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
9
9
|
default: null;
|
|
10
10
|
};
|
|
11
11
|
modelValue: {
|
|
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
default: () => null;
|
|
70
70
|
};
|
|
71
71
|
value: {
|
|
72
|
-
type: (
|
|
72
|
+
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
73
73
|
default: null;
|
|
74
74
|
};
|
|
75
75
|
modelValue: {
|
|
@@ -118,20 +118,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
default: () => {};
|
|
119
119
|
};
|
|
120
120
|
}>> & {
|
|
121
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
122
121
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
ui: any;
|
|
125
124
|
value: string | number | boolean | Record<string, any>;
|
|
126
|
-
id: string;
|
|
127
|
-
color: any;
|
|
128
|
-
class: any;
|
|
129
125
|
name: string;
|
|
130
|
-
|
|
126
|
+
required: boolean;
|
|
131
127
|
label: string;
|
|
132
|
-
|
|
128
|
+
class: any;
|
|
129
|
+
color: any;
|
|
133
130
|
disabled: boolean;
|
|
134
|
-
|
|
131
|
+
ui: any;
|
|
132
|
+
id: string;
|
|
133
|
+
modelValue: boolean | unknown[];
|
|
134
|
+
indeterminate: boolean;
|
|
135
135
|
help: string;
|
|
136
136
|
inputClass: string;
|
|
137
137
|
}, {}>;
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
onSubmit: (payload: Event) => Promise<void>;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
28
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "error")[], "submit" | "error", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
schema: {
|
|
30
30
|
type: PropType<ZodSchema<any, import("zod").ZodTypeDef, any>> | PropType<YupObjectSchema<any, import("yup").AnyObject, any, "">> | PropType<JoiSchema> | PropType<ValibotObjectSchema<any, undefined, {
|
|
31
31
|
[x: string]: any;
|
|
@@ -45,8 +45,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
default: () => string[];
|
|
46
46
|
};
|
|
47
47
|
}>> & {
|
|
48
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
49
48
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
schema: ZodSchema<any, import("zod").ZodTypeDef, any> | YupObjectSchema<any, import("yup").AnyObject, any, ""> | import("joi").AnySchema<any> | ValibotObjectSchema<any, undefined, {
|
|
52
52
|
[x: string]: any;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
default: null;
|
|
28
28
|
};
|
|
29
29
|
error: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
31
31
|
default: null;
|
|
32
32
|
};
|
|
33
33
|
hint: {
|
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
default: null;
|
|
82
82
|
};
|
|
83
83
|
error: {
|
|
84
|
-
type: (
|
|
84
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
85
85
|
default: null;
|
|
86
86
|
};
|
|
87
87
|
hint: {
|
|
@@ -101,15 +101,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
103
|
}>>, {
|
|
104
|
-
error: string | boolean;
|
|
105
104
|
size: FormGroupSize;
|
|
106
|
-
ui: any;
|
|
107
|
-
description: string;
|
|
108
|
-
class: any;
|
|
109
105
|
name: string;
|
|
110
|
-
label: string;
|
|
111
106
|
required: boolean;
|
|
107
|
+
label: string;
|
|
108
|
+
class: any;
|
|
109
|
+
ui: any;
|
|
112
110
|
help: string;
|
|
111
|
+
description: string;
|
|
112
|
+
error: string | boolean;
|
|
113
113
|
hint: string;
|
|
114
114
|
eagerValidation: boolean;
|
|
115
115
|
}, {}>;
|
|
@@ -217,7 +217,7 @@ export default defineComponent({
|
|
|
217
217
|
ui.value.form,
|
|
218
218
|
rounded.value,
|
|
219
219
|
ui.value.placeholder,
|
|
220
|
-
props.type === "file" &&
|
|
220
|
+
props.type === "file" && ui.value.file.base,
|
|
221
221
|
ui.value.size[size.value],
|
|
222
222
|
props.padded ? ui.value.padding[size.value] : "p-0",
|
|
223
223
|
variant?.replaceAll("{color}", color.value),
|
|
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { InputSize, InputVariant } from '../../types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
type: {
|
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
126
|
onBlur: (event: FocusEvent) => void;
|
|
127
127
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "update:modelValue")[], "blur" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
128
|
modelValue: {
|
|
129
|
-
type: (
|
|
129
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
130
130
|
default: string;
|
|
131
131
|
};
|
|
132
132
|
type: {
|
|
@@ -229,32 +229,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
229
|
default: () => {};
|
|
230
230
|
};
|
|
231
231
|
}>> & {
|
|
232
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
233
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
234
232
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
233
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
234
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
235
235
|
}, {
|
|
236
236
|
size: InputSize;
|
|
237
|
-
|
|
238
|
-
id: string;
|
|
239
|
-
icon: string;
|
|
240
|
-
color: any;
|
|
237
|
+
name: string;
|
|
241
238
|
type: string;
|
|
239
|
+
required: boolean;
|
|
242
240
|
class: any;
|
|
243
|
-
name: string;
|
|
244
|
-
modelValue: string | number;
|
|
245
241
|
leading: boolean;
|
|
242
|
+
color: any;
|
|
246
243
|
variant: InputVariant;
|
|
247
|
-
loading: boolean;
|
|
248
244
|
disabled: boolean;
|
|
249
|
-
|
|
245
|
+
ui: any;
|
|
246
|
+
loading: boolean;
|
|
250
247
|
padded: boolean;
|
|
248
|
+
icon: string;
|
|
251
249
|
loadingIcon: string;
|
|
252
250
|
leadingIcon: string;
|
|
253
251
|
trailingIcon: string;
|
|
254
252
|
trailing: boolean;
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
id: string;
|
|
254
|
+
modelValue: string | number;
|
|
257
255
|
inputClass: string;
|
|
256
|
+
placeholder: string;
|
|
257
|
+
autofocus: boolean;
|
|
258
258
|
autofocusDelay: number;
|
|
259
259
|
modelModifiers: {
|
|
260
260
|
trim?: boolean | undefined;
|
|
@@ -243,6 +243,10 @@ export default defineComponent({
|
|
|
243
243
|
type: Array,
|
|
244
244
|
default: null
|
|
245
245
|
},
|
|
246
|
+
searchLazy: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: false
|
|
249
|
+
},
|
|
246
250
|
debounce: {
|
|
247
251
|
type: Number,
|
|
248
252
|
default: 200
|
|
@@ -376,6 +380,8 @@ export default defineComponent({
|
|
|
376
380
|
return child !== null && child !== void 0 && String(child).search(new RegExp(query.value, "i")) !== -1;
|
|
377
381
|
});
|
|
378
382
|
});
|
|
383
|
+
}, [], {
|
|
384
|
+
lazy: props.searchLazy
|
|
379
385
|
});
|
|
380
386
|
watch(container, (value) => {
|
|
381
387
|
if (value) {
|
|
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { InputSize, InputVariant, PopperOptions } from '../../types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (
|
|
5
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
query: {
|
|
@@ -111,6 +111,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
type: ArrayConstructor;
|
|
112
112
|
default: null;
|
|
113
113
|
};
|
|
114
|
+
searchLazy: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
114
118
|
debounce: {
|
|
115
119
|
type: NumberConstructor;
|
|
116
120
|
default: number;
|
|
@@ -160,9 +164,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
164
|
query: import("vue").WritableComputedRef<string>;
|
|
161
165
|
onUpdate: (value: any) => void;
|
|
162
166
|
onQueryChange: (event: any) => void;
|
|
163
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "
|
|
167
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "open" | "close" | "update:query")[], "change" | "update:modelValue" | "open" | "close" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
164
168
|
modelValue: {
|
|
165
|
-
type: (
|
|
169
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
166
170
|
default: string;
|
|
167
171
|
};
|
|
168
172
|
query: {
|
|
@@ -271,6 +275,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
275
|
type: ArrayConstructor;
|
|
272
276
|
default: null;
|
|
273
277
|
};
|
|
278
|
+
searchLazy: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
274
282
|
debounce: {
|
|
275
283
|
type: NumberConstructor;
|
|
276
284
|
default: number;
|
|
@@ -296,45 +304,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
296
304
|
default: () => {};
|
|
297
305
|
};
|
|
298
306
|
}>> & {
|
|
299
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
300
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
301
307
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
308
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
302
309
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
310
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
303
311
|
"onUpdate:query"?: ((...args: any[]) => any) | undefined;
|
|
304
312
|
}, {
|
|
313
|
+
search: (query: string) => Promise<any[]> | any[];
|
|
305
314
|
size: InputSize;
|
|
306
|
-
ui: any;
|
|
307
|
-
id: string;
|
|
308
|
-
icon: string;
|
|
309
|
-
color: any;
|
|
310
|
-
class: any;
|
|
311
|
-
options: string[] | {
|
|
312
|
-
[key: string]: any;
|
|
313
|
-
disabled?: boolean | undefined;
|
|
314
|
-
}[];
|
|
315
|
-
popper: PopperOptions;
|
|
316
315
|
name: string;
|
|
317
|
-
|
|
316
|
+
required: boolean;
|
|
317
|
+
class: any;
|
|
318
318
|
leading: boolean;
|
|
319
|
-
|
|
319
|
+
popper: PopperOptions;
|
|
320
|
+
color: any;
|
|
320
321
|
variant: InputVariant;
|
|
321
|
-
by: string;
|
|
322
|
-
loading: boolean;
|
|
323
322
|
disabled: boolean;
|
|
324
|
-
|
|
323
|
+
ui: any;
|
|
324
|
+
loading: boolean;
|
|
325
325
|
padded: boolean;
|
|
326
|
+
icon: string;
|
|
326
327
|
loadingIcon: string;
|
|
327
328
|
leadingIcon: string;
|
|
328
329
|
trailingIcon: string;
|
|
329
330
|
trailing: boolean;
|
|
330
|
-
|
|
331
|
+
id: string;
|
|
332
|
+
modelValue: string | number | Record<string, any> | unknown[];
|
|
331
333
|
inputClass: string;
|
|
334
|
+
by: string;
|
|
335
|
+
placeholder: string;
|
|
336
|
+
options: string[] | {
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
disabled?: boolean | undefined;
|
|
339
|
+
}[];
|
|
332
340
|
nullable: boolean;
|
|
333
341
|
query: string;
|
|
334
342
|
selectedIcon: string;
|
|
335
343
|
optionAttribute: string;
|
|
336
344
|
valueAttribute: string;
|
|
337
345
|
searchAttributes: unknown[];
|
|
346
|
+
searchLazy: boolean;
|
|
338
347
|
debounce: number;
|
|
339
348
|
uiMenu: any;
|
|
340
349
|
}, {}>;
|
|
@@ -5,11 +5,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
default: null;
|
|
6
6
|
};
|
|
7
7
|
value: {
|
|
8
|
-
type: (
|
|
8
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
9
9
|
default: null;
|
|
10
10
|
};
|
|
11
11
|
modelValue: {
|
|
12
|
-
type: (
|
|
12
|
+
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
13
13
|
default: null;
|
|
14
14
|
};
|
|
15
15
|
name: {
|
|
@@ -65,11 +65,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
default: null;
|
|
66
66
|
};
|
|
67
67
|
value: {
|
|
68
|
-
type: (
|
|
68
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
69
69
|
default: null;
|
|
70
70
|
};
|
|
71
71
|
modelValue: {
|
|
72
|
-
type: (
|
|
72
|
+
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
73
73
|
default: null;
|
|
74
74
|
};
|
|
75
75
|
name: {
|
|
@@ -110,19 +110,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
default: () => {};
|
|
111
111
|
};
|
|
112
112
|
}>> & {
|
|
113
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
114
113
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
115
115
|
}, {
|
|
116
|
-
ui: any;
|
|
117
116
|
value: string | number | boolean;
|
|
118
|
-
id: string;
|
|
119
|
-
color: any;
|
|
120
|
-
class: any;
|
|
121
117
|
name: string;
|
|
122
|
-
|
|
118
|
+
required: boolean;
|
|
123
119
|
label: string;
|
|
120
|
+
class: any;
|
|
121
|
+
color: any;
|
|
124
122
|
disabled: boolean;
|
|
125
|
-
|
|
123
|
+
ui: any;
|
|
124
|
+
id: string;
|
|
125
|
+
modelValue: string | number | boolean | Record<string, any>;
|
|
126
126
|
help: string;
|
|
127
127
|
inputClass: string;
|
|
128
128
|
}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
modelValue: {
|
|
4
|
-
type: (
|
|
4
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
name: {
|
|
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
onUpdate: (value: any) => void;
|
|
56
56
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
57
|
modelValue: {
|
|
58
|
-
type: (
|
|
58
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
59
59
|
default: string;
|
|
60
60
|
};
|
|
61
61
|
name: {
|
|
@@ -100,17 +100,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
100
|
default: () => {};
|
|
101
101
|
};
|
|
102
102
|
}>> & {
|
|
103
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
104
103
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
ui: any;
|
|
107
|
-
color: any;
|
|
108
|
-
class: any;
|
|
109
|
-
options: unknown[];
|
|
110
106
|
name: string;
|
|
111
|
-
modelValue: string | number | Record<string, any>;
|
|
112
107
|
legend: string;
|
|
108
|
+
class: any;
|
|
109
|
+
color: any;
|
|
113
110
|
disabled: boolean;
|
|
111
|
+
ui: any;
|
|
112
|
+
modelValue: string | number | Record<string, any>;
|
|
113
|
+
options: unknown[];
|
|
114
114
|
optionAttribute: string;
|
|
115
115
|
valueAttribute: string;
|
|
116
116
|
uiRadio: any;
|
|
@@ -120,20 +120,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
default: () => {};
|
|
121
121
|
};
|
|
122
122
|
}>> & {
|
|
123
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
124
123
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
size: RangeSize;
|
|
127
|
-
ui: any;
|
|
128
|
-
id: string;
|
|
129
|
-
color: any;
|
|
130
|
-
class: any;
|
|
131
127
|
name: string;
|
|
132
|
-
|
|
128
|
+
class: any;
|
|
129
|
+
color: any;
|
|
133
130
|
disabled: boolean;
|
|
131
|
+
ui: any;
|
|
134
132
|
max: number;
|
|
135
|
-
min: number;
|
|
136
|
-
inputClass: string;
|
|
137
133
|
step: number;
|
|
134
|
+
id: string;
|
|
135
|
+
modelValue: number;
|
|
136
|
+
inputClass: string;
|
|
137
|
+
min: number;
|
|
138
138
|
}, {}>;
|
|
139
139
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import type { PropType, ComputedRef } from 'vue';
|
|
|
2
2
|
import type { SelectSize, SelectVariant } from '../../types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (
|
|
5
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
id: {
|
|
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
onChange: (event: Event) => void;
|
|
124
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
125
125
|
modelValue: {
|
|
126
|
-
type: (
|
|
126
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
127
127
|
default: string;
|
|
128
128
|
};
|
|
129
129
|
id: {
|
|
@@ -218,29 +218,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
218
218
|
default: () => {};
|
|
219
219
|
};
|
|
220
220
|
}>> & {
|
|
221
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
222
221
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
222
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
size: SelectSize;
|
|
225
|
-
ui: any;
|
|
226
|
-
id: string;
|
|
227
|
-
icon: string;
|
|
228
|
-
color: any;
|
|
229
|
-
class: any;
|
|
230
|
-
options: unknown[];
|
|
231
225
|
name: string;
|
|
232
|
-
|
|
226
|
+
required: boolean;
|
|
227
|
+
class: any;
|
|
233
228
|
leading: boolean;
|
|
229
|
+
color: any;
|
|
234
230
|
variant: SelectVariant;
|
|
235
|
-
loading: boolean;
|
|
236
231
|
disabled: boolean;
|
|
237
|
-
|
|
232
|
+
ui: any;
|
|
233
|
+
loading: boolean;
|
|
238
234
|
padded: boolean;
|
|
235
|
+
icon: string;
|
|
239
236
|
loadingIcon: string;
|
|
240
237
|
leadingIcon: string;
|
|
241
238
|
trailingIcon: string;
|
|
242
239
|
trailing: boolean;
|
|
243
|
-
|
|
240
|
+
id: string;
|
|
241
|
+
modelValue: string | number | Record<string, any>;
|
|
242
|
+
placeholder: string;
|
|
243
|
+
options: unknown[];
|
|
244
244
|
optionAttribute: string;
|
|
245
245
|
valueAttribute: string;
|
|
246
246
|
selectClass: string;
|
|
@@ -243,6 +243,10 @@ export default defineComponent({
|
|
|
243
243
|
type: String,
|
|
244
244
|
default: "Search..."
|
|
245
245
|
},
|
|
246
|
+
searchableLazy: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: false
|
|
249
|
+
},
|
|
246
250
|
clearSearchOnClose: {
|
|
247
251
|
type: Boolean,
|
|
248
252
|
default: () => configMenu.default.clearSearchOnClose
|
|
@@ -439,6 +443,8 @@ export default defineComponent({
|
|
|
439
443
|
return child !== null && child !== void 0 && String(child).search(new RegExp(query.value, "i")) !== -1;
|
|
440
444
|
});
|
|
441
445
|
});
|
|
446
|
+
}, [], {
|
|
447
|
+
lazy: props.searchableLazy
|
|
442
448
|
});
|
|
443
449
|
const createOption = computed(() => {
|
|
444
450
|
if (query.value === "") {
|
|
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { SelectSize, SelectVariant, PopperOptions } from '../../types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (
|
|
5
|
+
type: (StringConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
query: {
|
|
@@ -80,6 +80,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
type: StringConstructor;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
|
+
searchableLazy: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
83
87
|
clearSearchOnClose: {
|
|
84
88
|
type: BooleanConstructor;
|
|
85
89
|
default: () => any;
|
|
@@ -179,9 +183,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
183
|
query: import("vue").WritableComputedRef<string>;
|
|
180
184
|
onUpdate: (value: any) => void;
|
|
181
185
|
onQueryChange: (event: any) => void;
|
|
182
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "
|
|
186
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "open" | "close" | "update:query")[], "change" | "update:modelValue" | "open" | "close" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
183
187
|
modelValue: {
|
|
184
|
-
type: (
|
|
188
|
+
type: (StringConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
185
189
|
default: string;
|
|
186
190
|
};
|
|
187
191
|
query: {
|
|
@@ -259,6 +263,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
263
|
type: StringConstructor;
|
|
260
264
|
default: string;
|
|
261
265
|
};
|
|
266
|
+
searchableLazy: {
|
|
267
|
+
type: BooleanConstructor;
|
|
268
|
+
default: boolean;
|
|
269
|
+
};
|
|
262
270
|
clearSearchOnClose: {
|
|
263
271
|
type: BooleanConstructor;
|
|
264
272
|
default: () => any;
|
|
@@ -331,38 +339,38 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
339
|
default: () => {};
|
|
332
340
|
};
|
|
333
341
|
}>> & {
|
|
334
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
335
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
336
342
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
343
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
337
344
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
345
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
338
346
|
"onUpdate:query"?: ((...args: any[]) => any) | undefined;
|
|
339
347
|
}, {
|
|
340
348
|
size: SelectSize;
|
|
341
|
-
ui: any;
|
|
342
|
-
id: string;
|
|
343
|
-
icon: string;
|
|
344
|
-
color: any;
|
|
345
|
-
class: any;
|
|
346
|
-
options: string[] | {
|
|
347
|
-
[key: string]: any;
|
|
348
|
-
disabled?: boolean | undefined;
|
|
349
|
-
}[];
|
|
350
|
-
popper: PopperOptions;
|
|
351
349
|
name: string;
|
|
352
|
-
|
|
350
|
+
required: boolean;
|
|
351
|
+
class: any;
|
|
353
352
|
leading: boolean;
|
|
353
|
+
popper: PopperOptions;
|
|
354
|
+
color: any;
|
|
354
355
|
variant: SelectVariant;
|
|
355
|
-
by: string;
|
|
356
|
-
loading: boolean;
|
|
357
356
|
disabled: boolean;
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
ui: any;
|
|
358
|
+
loading: boolean;
|
|
360
359
|
padded: boolean;
|
|
360
|
+
icon: string;
|
|
361
361
|
loadingIcon: string;
|
|
362
362
|
leadingIcon: string;
|
|
363
363
|
trailingIcon: string;
|
|
364
364
|
trailing: boolean;
|
|
365
|
-
|
|
365
|
+
id: string;
|
|
366
|
+
modelValue: string | number | boolean | Record<string, any> | unknown[];
|
|
367
|
+
by: string;
|
|
368
|
+
multiple: boolean;
|
|
369
|
+
placeholder: string;
|
|
370
|
+
options: string[] | {
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
disabled?: boolean | undefined;
|
|
373
|
+
}[];
|
|
366
374
|
query: string;
|
|
367
375
|
selectedIcon: string;
|
|
368
376
|
optionAttribute: string;
|
|
@@ -373,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
373
381
|
selectClass: string;
|
|
374
382
|
searchable: boolean | ((query: string) => Promise<any[]> | any[]);
|
|
375
383
|
searchablePlaceholder: string;
|
|
384
|
+
searchableLazy: boolean;
|
|
376
385
|
clearSearchOnClose: boolean;
|
|
377
386
|
creatable: boolean;
|
|
378
387
|
showCreateOptionWhen: "empty" | "always";
|
|
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { TextareaSize, TextareaVariant } from '../../types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
id: {
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
onBlur: (event: FocusEvent) => void;
|
|
103
103
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "update:modelValue")[], "blur" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
104
104
|
modelValue: {
|
|
105
|
-
type: (
|
|
105
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
108
|
id: {
|
|
@@ -189,24 +189,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
189
|
default: () => {};
|
|
190
190
|
};
|
|
191
191
|
}>> & {
|
|
192
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
193
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
194
192
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
193
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
194
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
195
195
|
}, {
|
|
196
|
-
resize: boolean;
|
|
197
196
|
size: TextareaSize;
|
|
197
|
+
name: string;
|
|
198
|
+
required: boolean;
|
|
199
|
+
class: any;
|
|
200
|
+
resize: boolean;
|
|
201
|
+
color: any;
|
|
202
|
+
variant: TextareaVariant;
|
|
203
|
+
disabled: boolean;
|
|
198
204
|
ui: any;
|
|
205
|
+
padded: boolean;
|
|
199
206
|
id: string;
|
|
200
|
-
color: any;
|
|
201
|
-
class: any;
|
|
202
|
-
name: string;
|
|
203
207
|
modelValue: string | number;
|
|
204
|
-
variant: TextareaVariant;
|
|
205
208
|
rows: number;
|
|
206
|
-
disabled: boolean;
|
|
207
209
|
placeholder: string;
|
|
208
|
-
padded: boolean;
|
|
209
|
-
required: boolean;
|
|
210
210
|
autofocus: boolean;
|
|
211
211
|
autofocusDelay: number;
|
|
212
212
|
modelModifiers: {
|