@nuxt/ui 2.21.0 → 2.22.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 +19 -14
- package/dist/module.d.mts +6 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +6 -12
- package/dist/runtime/components/data/Table.vue +19 -24
- package/dist/runtime/components/data/Table.vue.d.ts +44 -348
- package/dist/runtime/components/elements/Accordion.vue +4 -4
- package/dist/runtime/components/elements/Accordion.vue.d.ts +16 -16
- package/dist/runtime/components/elements/Alert.vue +7 -7
- package/dist/runtime/components/elements/Alert.vue.d.ts +41 -38
- package/dist/runtime/components/elements/Avatar.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Carousel.vue +3 -3
- package/dist/runtime/components/elements/Carousel.vue.d.ts +22 -22
- package/dist/runtime/components/elements/Chip.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Dropdown.vue +1 -1
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +19 -19
- package/dist/runtime/components/elements/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Link.vue +13 -11
- package/dist/runtime/components/elements/Link.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Progress.vue +1 -1
- package/dist/runtime/components/elements/Progress.vue.d.ts +5 -5
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Form.vue +8 -30
- package/dist/runtime/components/forms/Form.vue.d.ts +7 -8
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue +3 -3
- package/dist/runtime/components/forms/Input.vue.d.ts +3 -3
- package/dist/runtime/components/forms/InputMenu.vue +3 -3
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +16 -16
- package/dist/runtime/components/forms/Radio.vue.d.ts +3 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Range.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Select.vue +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +2 -2
- package/dist/runtime/components/forms/SelectMenu.vue +10 -5
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +25 -16
- package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Toggle.vue.d.ts +2 -2
- 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 +15 -15
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/CommandPalette.vue +1 -1
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +33 -33
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +30 -30
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +5 -5
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +36 -36
- package/dist/runtime/components/navigation/Pagination.vue +5 -5
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +34 -34
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/VerticalNavigation.vue +5 -5
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +58 -58
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Modal.vue +6 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Modals.client.vue +5 -7
- package/dist/runtime/components/overlays/Modals.client.vue.d.ts +2 -0
- package/dist/runtime/components/overlays/Notification.vue +6 -6
- package/dist/runtime/components/overlays/Notification.vue.d.ts +45 -42
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +71 -67
- package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Slideovers.client.vue +5 -7
- package/dist/runtime/components/overlays/Slideovers.client.vue.d.ts +2 -0
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +5 -5
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useShortcuts.d.ts +2 -2
- package/dist/runtime/composables/useToast.d.ts +4 -4
- package/dist/runtime/ui.config/elements/alert.d.ts +1 -0
- package/dist/runtime/ui.config/elements/alert.js +1 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/notification.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/notification.js +1 -0
- package/dist/runtime/utils/link.js +4 -2
- package/dist/types.d.mts +3 -1
- package/package.json +64 -38
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -36
- package/dist/types.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="
|
|
2
|
+
<div :class="type === 'hidden' ? 'hidden' : ui.wrapper">
|
|
3
3
|
<input
|
|
4
4
|
:id="inputId"
|
|
5
5
|
ref="input"
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
>
|
|
17
17
|
<slot />
|
|
18
18
|
|
|
19
|
-
<span v-if="
|
|
19
|
+
<span v-if="isLeading && leadingIconName || $slots.leading" :class="leadingWrapperIconClass">
|
|
20
20
|
<slot name="leading" :disabled="disabled" :loading="loading">
|
|
21
21
|
<UIcon :name="leadingIconName" :class="leadingIconClass" />
|
|
22
22
|
</slot>
|
|
23
23
|
</span>
|
|
24
24
|
|
|
25
|
-
<span v-if="
|
|
25
|
+
<span v-if="isTrailing && trailingIconName || $slots.trailing" :class="trailingWrapperIconClass">
|
|
26
26
|
<slot name="trailing" :disabled="disabled" :loading="loading">
|
|
27
27
|
<UIcon :name="trailingIconName" :class="trailingIconClass" />
|
|
28
28
|
</slot>
|
|
@@ -452,16 +452,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
452
452
|
default: () => {};
|
|
453
453
|
};
|
|
454
454
|
}>> & Readonly<{
|
|
455
|
-
onBlur?: (...args: any[]) => any;
|
|
456
455
|
onChange?: (...args: any[]) => any;
|
|
457
456
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
457
|
+
onBlur?: (...args: any[]) => any;
|
|
458
458
|
}>, {
|
|
459
459
|
name: string;
|
|
460
460
|
type: string;
|
|
461
461
|
required: boolean;
|
|
462
462
|
size: InputSize;
|
|
463
|
-
class: any;
|
|
464
|
-
disabled: boolean;
|
|
465
463
|
ui: {
|
|
466
464
|
wrapper?: string;
|
|
467
465
|
base?: string;
|
|
@@ -578,8 +576,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
578
576
|
color: InputColor;
|
|
579
577
|
variant: InputVariant;
|
|
580
578
|
leading: boolean;
|
|
579
|
+
disabled: boolean;
|
|
581
580
|
id: string;
|
|
582
581
|
icon: string;
|
|
582
|
+
class: any;
|
|
583
583
|
modelValue: string | number;
|
|
584
584
|
loading: boolean;
|
|
585
585
|
padded: boolean;
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
@change="onQueryChange"
|
|
25
25
|
/>
|
|
26
26
|
|
|
27
|
-
<span v-if="
|
|
27
|
+
<span v-if="isLeading && leadingIconName || $slots.leading" :class="leadingWrapperIconClass">
|
|
28
28
|
<slot name="leading" :disabled="disabled" :loading="loading">
|
|
29
29
|
<UIcon :name="leadingIconName" :class="leadingIconClass" />
|
|
30
30
|
</slot>
|
|
31
31
|
</span>
|
|
32
32
|
|
|
33
|
-
<HComboboxButton v-if="
|
|
33
|
+
<HComboboxButton v-if="isTrailing && trailingIconName || $slots.trailing" ref="trigger" :class="trailingWrapperIconClass">
|
|
34
34
|
<slot name="trailing" :disabled="disabled" :loading="loading">
|
|
35
35
|
<UIcon :name="trailingIconName" :class="trailingIconClass" />
|
|
36
36
|
</slot>
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
import { computedAsync, useDebounceFn } from "@vueuse/core";
|
|
104
104
|
import { defu } from "defu";
|
|
105
105
|
import { twJoin } from "tailwind-merge";
|
|
106
|
-
import { isEqual } from "ohash";
|
|
106
|
+
import { isEqual } from "ohash/utils";
|
|
107
107
|
import UIcon from "../elements/Icon.vue";
|
|
108
108
|
import UAvatar from "../elements/Avatar.vue";
|
|
109
109
|
import { useUI } from "../../composables/useUI";
|
|
@@ -145,7 +145,7 @@ declare const configMenu: {
|
|
|
145
145
|
};
|
|
146
146
|
avatar: {
|
|
147
147
|
base: string;
|
|
148
|
-
size: import("../../types/avatar").AvatarSize;
|
|
148
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
149
149
|
};
|
|
150
150
|
chip: {
|
|
151
151
|
base: string;
|
|
@@ -467,7 +467,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
467
467
|
};
|
|
468
468
|
avatar: {
|
|
469
469
|
base: string;
|
|
470
|
-
size: import("../../types/avatar").AvatarSize;
|
|
470
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
471
471
|
};
|
|
472
472
|
chip: {
|
|
473
473
|
base: string;
|
|
@@ -668,8 +668,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
668
668
|
default: () => {};
|
|
669
669
|
};
|
|
670
670
|
}>> & Readonly<{
|
|
671
|
-
onChange?: (...args: any[]) => any;
|
|
672
671
|
onClose?: (...args: any[]) => any;
|
|
672
|
+
onChange?: (...args: any[]) => any;
|
|
673
673
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
674
674
|
onOpen?: (...args: any[]) => any;
|
|
675
675
|
"onUpdate:query"?: (...args: any[]) => any;
|
|
@@ -677,8 +677,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
677
677
|
name: string;
|
|
678
678
|
required: boolean;
|
|
679
679
|
size: InputSize;
|
|
680
|
-
class: any;
|
|
681
|
-
disabled: boolean;
|
|
682
680
|
ui: {
|
|
683
681
|
wrapper?: string;
|
|
684
682
|
base?: string;
|
|
@@ -797,9 +795,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
797
795
|
search: (query: string) => Promise<any[]> | any[];
|
|
798
796
|
leading: boolean;
|
|
799
797
|
popper: PopperOptions;
|
|
798
|
+
disabled: boolean;
|
|
800
799
|
query: string;
|
|
801
800
|
id: string;
|
|
802
801
|
icon: string;
|
|
802
|
+
class: any;
|
|
803
803
|
options: string[] | {
|
|
804
804
|
[key: string]: any;
|
|
805
805
|
disabled?: boolean;
|
|
@@ -857,7 +857,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
857
857
|
};
|
|
858
858
|
avatar: {
|
|
859
859
|
base: string;
|
|
860
|
-
size: import("../../types/avatar").AvatarSize;
|
|
860
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
861
861
|
};
|
|
862
862
|
chip: {
|
|
863
863
|
base: string;
|
|
@@ -1258,17 +1258,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1258
1258
|
default: () => any;
|
|
1259
1259
|
};
|
|
1260
1260
|
size: {
|
|
1261
|
-
type: PropType<import("../../types/avatar").AvatarSize>;
|
|
1261
|
+
type: PropType<import("../../types/avatar.js").AvatarSize>;
|
|
1262
1262
|
default: () => string;
|
|
1263
1263
|
validator(value: string): boolean;
|
|
1264
1264
|
};
|
|
1265
1265
|
chipColor: {
|
|
1266
|
-
type: PropType<import("../../types/avatar").AvatarChipColor>;
|
|
1266
|
+
type: PropType<import("../../types/avatar.js").AvatarChipColor>;
|
|
1267
1267
|
default: () => any;
|
|
1268
1268
|
validator(value: string): boolean;
|
|
1269
1269
|
};
|
|
1270
1270
|
chipPosition: {
|
|
1271
|
-
type: PropType<import("../../types/avatar").AvatarChipPosition>;
|
|
1271
|
+
type: PropType<import("../../types/avatar.js").AvatarChipPosition>;
|
|
1272
1272
|
default: () => string;
|
|
1273
1273
|
validator(value: string): boolean;
|
|
1274
1274
|
};
|
|
@@ -1441,17 +1441,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1441
1441
|
default: () => any;
|
|
1442
1442
|
};
|
|
1443
1443
|
size: {
|
|
1444
|
-
type: PropType<import("../../types/avatar").AvatarSize>;
|
|
1444
|
+
type: PropType<import("../../types/avatar.js").AvatarSize>;
|
|
1445
1445
|
default: () => string;
|
|
1446
1446
|
validator(value: string): boolean;
|
|
1447
1447
|
};
|
|
1448
1448
|
chipColor: {
|
|
1449
|
-
type: PropType<import("../../types/avatar").AvatarChipColor>;
|
|
1449
|
+
type: PropType<import("../../types/avatar.js").AvatarChipColor>;
|
|
1450
1450
|
default: () => any;
|
|
1451
1451
|
validator(value: string): boolean;
|
|
1452
1452
|
};
|
|
1453
1453
|
chipPosition: {
|
|
1454
|
-
type: PropType<import("../../types/avatar").AvatarChipPosition>;
|
|
1454
|
+
type: PropType<import("../../types/avatar.js").AvatarChipPosition>;
|
|
1455
1455
|
default: () => string;
|
|
1456
1456
|
validator(value: string): boolean;
|
|
1457
1457
|
};
|
|
@@ -1532,8 +1532,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1532
1532
|
default: () => {};
|
|
1533
1533
|
};
|
|
1534
1534
|
}>> & Readonly<{}>, {
|
|
1535
|
-
size: import("../../types/avatar").AvatarSize;
|
|
1536
|
-
class: any;
|
|
1535
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
1537
1536
|
ui: {
|
|
1538
1537
|
wrapper?: string;
|
|
1539
1538
|
background?: string;
|
|
@@ -1598,11 +1597,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1598
1597
|
strategy?: Strategy;
|
|
1599
1598
|
};
|
|
1600
1599
|
as: string | Record<string, any>;
|
|
1601
|
-
text: string;
|
|
1602
1600
|
alt: string;
|
|
1603
1601
|
icon: string;
|
|
1602
|
+
class: any;
|
|
1603
|
+
text: string;
|
|
1604
1604
|
src: string | boolean;
|
|
1605
|
-
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
1605
|
+
chipColor: import("../../types/avatar.js").AvatarChipColor;
|
|
1606
1606
|
chipPosition: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
1607
1607
|
chipText: string | number;
|
|
1608
1608
|
imgClass: string;
|
|
@@ -154,8 +154,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
154
154
|
}>, {
|
|
155
155
|
name: string;
|
|
156
156
|
required: boolean;
|
|
157
|
-
class: any;
|
|
158
|
-
disabled: boolean;
|
|
159
157
|
ui: {
|
|
160
158
|
wrapper?: string;
|
|
161
159
|
container?: string;
|
|
@@ -178,10 +176,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
178
176
|
strategy?: Strategy;
|
|
179
177
|
};
|
|
180
178
|
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
181
|
-
|
|
179
|
+
disabled: boolean;
|
|
182
180
|
id: string;
|
|
181
|
+
class: any;
|
|
183
182
|
modelValue: string | number | boolean | object;
|
|
184
183
|
value: string | number | boolean;
|
|
184
|
+
label: string;
|
|
185
185
|
help: string;
|
|
186
186
|
inputClass: string;
|
|
187
187
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -162,8 +162,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
162
162
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
163
163
|
}>, {
|
|
164
164
|
name: string;
|
|
165
|
-
class: any;
|
|
166
|
-
disabled: boolean;
|
|
167
165
|
ui: {
|
|
168
166
|
wrapper?: string;
|
|
169
167
|
fieldset?: string;
|
|
@@ -177,11 +175,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
177
175
|
strategy?: Strategy;
|
|
178
176
|
};
|
|
179
177
|
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
180
|
-
|
|
178
|
+
disabled: boolean;
|
|
179
|
+
class: any;
|
|
181
180
|
options: unknown[];
|
|
182
181
|
modelValue: string | number | boolean | object;
|
|
183
182
|
optionAttribute: string;
|
|
184
183
|
valueAttribute: string;
|
|
184
|
+
legend: string;
|
|
185
185
|
uiRadio: {
|
|
186
186
|
wrapper?: string;
|
|
187
187
|
container?: string;
|
|
@@ -372,8 +372,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
372
372
|
}>, {
|
|
373
373
|
name: string;
|
|
374
374
|
required: boolean;
|
|
375
|
-
class: any;
|
|
376
|
-
disabled: boolean;
|
|
377
375
|
ui: {
|
|
378
376
|
wrapper?: string;
|
|
379
377
|
container?: string;
|
|
@@ -396,10 +394,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
396
394
|
strategy?: Strategy;
|
|
397
395
|
};
|
|
398
396
|
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
399
|
-
|
|
397
|
+
disabled: boolean;
|
|
400
398
|
id: string;
|
|
399
|
+
class: any;
|
|
401
400
|
modelValue: string | number | boolean | object;
|
|
402
401
|
value: string | number | boolean;
|
|
402
|
+
label: string;
|
|
403
403
|
help: string;
|
|
404
404
|
inputClass: string;
|
|
405
405
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -254,9 +254,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
254
254
|
}>, {
|
|
255
255
|
name: string;
|
|
256
256
|
size: RangeSize;
|
|
257
|
-
class: any;
|
|
258
|
-
disabled: boolean;
|
|
259
|
-
max: number;
|
|
260
257
|
ui: {
|
|
261
258
|
wrapper?: string;
|
|
262
259
|
base?: string;
|
|
@@ -326,8 +323,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
326
323
|
};
|
|
327
324
|
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
328
325
|
step: number;
|
|
326
|
+
disabled: boolean;
|
|
329
327
|
id: string;
|
|
328
|
+
class: any;
|
|
330
329
|
modelValue: number;
|
|
330
|
+
max: number;
|
|
331
331
|
inputClass: string;
|
|
332
332
|
min: number;
|
|
333
333
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
</select>
|
|
40
40
|
|
|
41
|
-
<span v-if="
|
|
41
|
+
<span v-if="isLeading && leadingIconName || $slots.leading" :class="leadingWrapperIconClass">
|
|
42
42
|
<slot name="leading" :disabled="disabled" :loading="loading">
|
|
43
43
|
<UIcon :name="leadingIconName" :class="leadingIconClass" />
|
|
44
44
|
</slot>
|
|
45
45
|
</span>
|
|
46
46
|
|
|
47
|
-
<span v-if="
|
|
47
|
+
<span v-if="isTrailing && trailingIconName || $slots.trailing" :class="trailingWrapperIconClass">
|
|
48
48
|
<slot name="trailing" :disabled="disabled" :loading="loading">
|
|
49
49
|
<UIcon :name="trailingIconName" :class="trailingIconClass" aria-hidden="true" />
|
|
50
50
|
</slot>
|
|
@@ -447,8 +447,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
447
447
|
name: string;
|
|
448
448
|
required: boolean;
|
|
449
449
|
size: SelectSize;
|
|
450
|
-
class: any;
|
|
451
|
-
disabled: boolean;
|
|
452
450
|
ui: {
|
|
453
451
|
form?: string;
|
|
454
452
|
placeholder?: string;
|
|
@@ -566,8 +564,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
566
564
|
color: SelectColor;
|
|
567
565
|
variant: SelectVariant;
|
|
568
566
|
leading: boolean;
|
|
567
|
+
disabled: boolean;
|
|
569
568
|
id: string;
|
|
570
569
|
icon: string;
|
|
570
|
+
class: any;
|
|
571
571
|
options: unknown[];
|
|
572
572
|
modelValue: string | number | object;
|
|
573
573
|
loading: boolean;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-slot="{ open }"
|
|
5
5
|
:by="by"
|
|
6
6
|
:name="name"
|
|
7
|
-
:model-value="multiple ?
|
|
7
|
+
:model-value="multiple ? Array.isArray(modelValue) ? modelValue : [] : modelValue"
|
|
8
8
|
:multiple="multiple"
|
|
9
9
|
:disabled="disabled"
|
|
10
10
|
as="div"
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
:value="modelValue"
|
|
17
17
|
:required="required"
|
|
18
18
|
:class="uiMenu.required"
|
|
19
|
+
:form="inputTargetForm"
|
|
19
20
|
tabindex="-1"
|
|
20
21
|
aria-hidden="true"
|
|
21
22
|
>
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
>
|
|
30
31
|
<slot :open="open" :disabled="disabled" :loading="loading">
|
|
31
32
|
<button :id="inputId" :class="selectClass" :disabled="disabled" type="button" v-bind="attrs">
|
|
32
|
-
<span v-if="
|
|
33
|
+
<span v-if="isLeading && leadingIconName || $slots.leading" :class="leadingWrapperIconClass">
|
|
33
34
|
<slot name="leading" :selected="selected" :disabled="disabled" :loading="loading">
|
|
34
35
|
<UIcon :name="leadingIconName" :class="leadingIconClass" />
|
|
35
36
|
</slot>
|
|
@@ -37,10 +38,10 @@
|
|
|
37
38
|
|
|
38
39
|
<slot name="label" :selected="selected">
|
|
39
40
|
<span v-if="label" :class="uiMenu.label">{{ label }}</span>
|
|
40
|
-
<span v-else :class="uiMenu.label">{{ placeholder || '
|
|
41
|
+
<span v-else :class="uiMenu.label">{{ placeholder || '\xA0' }}</span>
|
|
41
42
|
</slot>
|
|
42
43
|
|
|
43
|
-
<span v-if="
|
|
44
|
+
<span v-if="isTrailing && trailingIconName || $slots.trailing" :class="trailingWrapperIconClass">
|
|
44
45
|
<slot name="trailing" :selected="selected" :disabled="disabled" :loading="loading">
|
|
45
46
|
<UIcon :name="trailingIconName" :class="trailingIconClass" aria-hidden="true" />
|
|
46
47
|
</slot>
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
import { computedAsync, useDebounceFn } from "@vueuse/core";
|
|
140
141
|
import { defu } from "defu";
|
|
141
142
|
import { twJoin } from "tailwind-merge";
|
|
142
|
-
import { isEqual } from "ohash";
|
|
143
|
+
import { isEqual } from "ohash/utils";
|
|
143
144
|
import UIcon from "../elements/Icon.vue";
|
|
144
145
|
import UAvatar from "../elements/Avatar.vue";
|
|
145
146
|
import { useUI } from "../../composables/useUI";
|
|
@@ -308,6 +309,10 @@ export default defineComponent({
|
|
|
308
309
|
type: Array,
|
|
309
310
|
default: null
|
|
310
311
|
},
|
|
312
|
+
inputTargetForm: {
|
|
313
|
+
type: String,
|
|
314
|
+
default: null
|
|
315
|
+
},
|
|
311
316
|
popper: {
|
|
312
317
|
type: Object,
|
|
313
318
|
default: () => ({})
|
|
@@ -140,7 +140,7 @@ declare const configMenu: {
|
|
|
140
140
|
};
|
|
141
141
|
avatar: {
|
|
142
142
|
base: string;
|
|
143
|
-
size: import("../../types/avatar").AvatarSize;
|
|
143
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
144
144
|
};
|
|
145
145
|
chip: {
|
|
146
146
|
base: string;
|
|
@@ -323,6 +323,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
323
323
|
type: ArrayConstructor;
|
|
324
324
|
default: any;
|
|
325
325
|
};
|
|
326
|
+
inputTargetForm: {
|
|
327
|
+
type: StringConstructor;
|
|
328
|
+
default: any;
|
|
329
|
+
};
|
|
326
330
|
popper: {
|
|
327
331
|
type: PropType<PopperOptions>;
|
|
328
332
|
default: () => {};
|
|
@@ -488,7 +492,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
488
492
|
};
|
|
489
493
|
avatar: {
|
|
490
494
|
base: string;
|
|
491
|
-
size: import("../../types/avatar").AvatarSize;
|
|
495
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
492
496
|
};
|
|
493
497
|
chip: {
|
|
494
498
|
base: string;
|
|
@@ -699,6 +703,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
699
703
|
type: ArrayConstructor;
|
|
700
704
|
default: any;
|
|
701
705
|
};
|
|
706
|
+
inputTargetForm: {
|
|
707
|
+
type: StringConstructor;
|
|
708
|
+
default: any;
|
|
709
|
+
};
|
|
702
710
|
popper: {
|
|
703
711
|
type: PropType<PopperOptions>;
|
|
704
712
|
default: () => {};
|
|
@@ -724,8 +732,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
724
732
|
default: () => {};
|
|
725
733
|
};
|
|
726
734
|
}>> & Readonly<{
|
|
727
|
-
onChange?: (...args: any[]) => any;
|
|
728
735
|
onClose?: (...args: any[]) => any;
|
|
736
|
+
onChange?: (...args: any[]) => any;
|
|
729
737
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
730
738
|
onOpen?: (...args: any[]) => any;
|
|
731
739
|
"onUpdate:query"?: (...args: any[]) => any;
|
|
@@ -733,8 +741,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
733
741
|
name: string;
|
|
734
742
|
required: boolean;
|
|
735
743
|
size: SelectSize;
|
|
736
|
-
class: any;
|
|
737
|
-
disabled: boolean;
|
|
738
744
|
ui: {
|
|
739
745
|
form?: string;
|
|
740
746
|
placeholder?: string;
|
|
@@ -853,9 +859,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
853
859
|
variant: SelectVariant;
|
|
854
860
|
leading: boolean;
|
|
855
861
|
popper: PopperOptions;
|
|
862
|
+
disabled: boolean;
|
|
856
863
|
query: string;
|
|
857
864
|
id: string;
|
|
858
865
|
icon: string;
|
|
866
|
+
class: any;
|
|
859
867
|
options: string[] | {
|
|
860
868
|
[key: string]: any;
|
|
861
869
|
disabled?: boolean;
|
|
@@ -905,7 +913,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
905
913
|
};
|
|
906
914
|
avatar: {
|
|
907
915
|
base: string;
|
|
908
|
-
size: import("../../types/avatar").AvatarSize;
|
|
916
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
909
917
|
};
|
|
910
918
|
chip: {
|
|
911
919
|
base: string;
|
|
@@ -964,6 +972,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
964
972
|
clearSearchOnClose: boolean;
|
|
965
973
|
creatable: boolean;
|
|
966
974
|
showCreateOptionWhen: "empty" | "always" | ((query: string, results: any[]) => boolean);
|
|
975
|
+
inputTargetForm: string;
|
|
967
976
|
}, {}, {
|
|
968
977
|
HCombobox: import("vue").DefineComponent<{
|
|
969
978
|
as: {
|
|
@@ -1528,17 +1537,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1528
1537
|
default: () => any;
|
|
1529
1538
|
};
|
|
1530
1539
|
size: {
|
|
1531
|
-
type: PropType<import("../../types/avatar").AvatarSize>;
|
|
1540
|
+
type: PropType<import("../../types/avatar.js").AvatarSize>;
|
|
1532
1541
|
default: () => string;
|
|
1533
1542
|
validator(value: string): boolean;
|
|
1534
1543
|
};
|
|
1535
1544
|
chipColor: {
|
|
1536
|
-
type: PropType<import("../../types/avatar").AvatarChipColor>;
|
|
1545
|
+
type: PropType<import("../../types/avatar.js").AvatarChipColor>;
|
|
1537
1546
|
default: () => any;
|
|
1538
1547
|
validator(value: string): boolean;
|
|
1539
1548
|
};
|
|
1540
1549
|
chipPosition: {
|
|
1541
|
-
type: PropType<import("../../types/avatar").AvatarChipPosition>;
|
|
1550
|
+
type: PropType<import("../../types/avatar.js").AvatarChipPosition>;
|
|
1542
1551
|
default: () => string;
|
|
1543
1552
|
validator(value: string): boolean;
|
|
1544
1553
|
};
|
|
@@ -1711,17 +1720,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1711
1720
|
default: () => any;
|
|
1712
1721
|
};
|
|
1713
1722
|
size: {
|
|
1714
|
-
type: PropType<import("../../types/avatar").AvatarSize>;
|
|
1723
|
+
type: PropType<import("../../types/avatar.js").AvatarSize>;
|
|
1715
1724
|
default: () => string;
|
|
1716
1725
|
validator(value: string): boolean;
|
|
1717
1726
|
};
|
|
1718
1727
|
chipColor: {
|
|
1719
|
-
type: PropType<import("../../types/avatar").AvatarChipColor>;
|
|
1728
|
+
type: PropType<import("../../types/avatar.js").AvatarChipColor>;
|
|
1720
1729
|
default: () => any;
|
|
1721
1730
|
validator(value: string): boolean;
|
|
1722
1731
|
};
|
|
1723
1732
|
chipPosition: {
|
|
1724
|
-
type: PropType<import("../../types/avatar").AvatarChipPosition>;
|
|
1733
|
+
type: PropType<import("../../types/avatar.js").AvatarChipPosition>;
|
|
1725
1734
|
default: () => string;
|
|
1726
1735
|
validator(value: string): boolean;
|
|
1727
1736
|
};
|
|
@@ -1802,8 +1811,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1802
1811
|
default: () => {};
|
|
1803
1812
|
};
|
|
1804
1813
|
}>> & Readonly<{}>, {
|
|
1805
|
-
size: import("../../types/avatar").AvatarSize;
|
|
1806
|
-
class: any;
|
|
1814
|
+
size: import("../../types/avatar.js").AvatarSize;
|
|
1807
1815
|
ui: {
|
|
1808
1816
|
wrapper?: string;
|
|
1809
1817
|
background?: string;
|
|
@@ -1868,11 +1876,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1868
1876
|
strategy?: Strategy;
|
|
1869
1877
|
};
|
|
1870
1878
|
as: string | Record<string, any>;
|
|
1871
|
-
text: string;
|
|
1872
1879
|
alt: string;
|
|
1873
1880
|
icon: string;
|
|
1881
|
+
class: any;
|
|
1882
|
+
text: string;
|
|
1874
1883
|
src: string | boolean;
|
|
1875
|
-
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
1884
|
+
chipColor: import("../../types/avatar.js").AvatarChipColor;
|
|
1876
1885
|
chipPosition: "top-right" | "bottom-right" | "top-left" | "bottom-left";
|
|
1877
1886
|
chipText: string | number;
|
|
1878
1887
|
imgClass: string;
|
|
@@ -410,15 +410,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
410
410
|
default: () => {};
|
|
411
411
|
};
|
|
412
412
|
}>> & Readonly<{
|
|
413
|
-
onBlur?: (...args: any[]) => any;
|
|
414
413
|
onChange?: (...args: any[]) => any;
|
|
415
414
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
415
|
+
onBlur?: (...args: any[]) => any;
|
|
416
416
|
}>, {
|
|
417
417
|
name: string;
|
|
418
418
|
required: boolean;
|
|
419
419
|
size: TextareaSize;
|
|
420
|
-
class: any;
|
|
421
|
-
disabled: boolean;
|
|
422
420
|
ui: {
|
|
423
421
|
form?: string;
|
|
424
422
|
default?: DeepPartial<{
|
|
@@ -534,7 +532,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
534
532
|
color: TextareaColor;
|
|
535
533
|
variant: TextareaVariant;
|
|
536
534
|
resize: boolean;
|
|
535
|
+
disabled: boolean;
|
|
537
536
|
id: string;
|
|
537
|
+
class: any;
|
|
538
538
|
modelValue: string | number;
|
|
539
539
|
padded: boolean;
|
|
540
540
|
rows: number;
|
|
@@ -248,8 +248,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
248
248
|
}>, {
|
|
249
249
|
name: string;
|
|
250
250
|
size: ToggleSize;
|
|
251
|
-
class: any;
|
|
252
|
-
disabled: boolean;
|
|
253
251
|
ui: {
|
|
254
252
|
base?: string;
|
|
255
253
|
rounded?: string;
|
|
@@ -317,7 +315,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
317
315
|
strategy?: Strategy;
|
|
318
316
|
};
|
|
319
317
|
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
318
|
+
disabled: boolean;
|
|
320
319
|
id: string;
|
|
320
|
+
class: any;
|
|
321
321
|
modelValue: boolean;
|
|
322
322
|
loading: boolean;
|
|
323
323
|
loadingIcon: string;
|
|
@@ -82,7 +82,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
82
|
default: () => {};
|
|
83
83
|
};
|
|
84
84
|
}>> & Readonly<{}>, {
|
|
85
|
-
class: any;
|
|
86
85
|
ui: {
|
|
87
86
|
base?: string;
|
|
88
87
|
background?: string;
|
|
@@ -111,5 +110,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
110
|
strategy?: Strategy;
|
|
112
111
|
};
|
|
113
112
|
as: string;
|
|
113
|
+
class: any;
|
|
114
114
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
115
|
export default _default;
|
|
@@ -46,7 +46,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
default: () => {};
|
|
47
47
|
};
|
|
48
48
|
}>> & Readonly<{}>, {
|
|
49
|
-
class: any;
|
|
50
49
|
ui: {
|
|
51
50
|
base?: string;
|
|
52
51
|
padding?: string;
|
|
@@ -57,5 +56,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
56
|
strategy?: Strategy;
|
|
58
57
|
};
|
|
59
58
|
as: string;
|
|
59
|
+
class: any;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
61
|
export default _default;
|