@nuxt/ui 2.17.0 → 2.18.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 +3 -1988
- package/dist/module.d.ts +3 -1988
- package/dist/module.json +6 -2
- package/dist/module.mjs +6 -71
- package/dist/runtime/components/data/Table.vue +54 -19
- package/dist/runtime/components/data/Table.vue.d.ts +247 -48
- package/dist/runtime/components/elements/Accordion.vue +1 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
- package/dist/runtime/components/elements/Alert.vue +2 -4
- package/dist/runtime/components/elements/Alert.vue.d.ts +107 -24
- package/dist/runtime/components/elements/Avatar.vue +1 -1
- package/dist/runtime/components/elements/Avatar.vue.d.ts +153 -32
- package/dist/runtime/components/elements/AvatarGroup.d.ts +17 -8
- package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +55 -18
- package/dist/runtime/components/elements/Button.vue +1 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
- package/dist/runtime/components/elements/ButtonGroup.d.ts +110 -6
- package/dist/runtime/components/elements/{ButtonGroup.mjs → ButtonGroup.js} +3 -3
- package/dist/runtime/components/elements/Carousel.vue.d.ts +75 -20
- package/dist/runtime/components/elements/Chip.vue.d.ts +97 -25
- package/dist/runtime/components/elements/Dropdown.vue +4 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
- package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
- package/dist/runtime/components/elements/Link.vue.d.ts +73 -73
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +178 -22
- package/dist/runtime/components/elements/MeterGroup.d.ts +70 -13
- package/dist/runtime/components/elements/{MeterGroup.mjs → MeterGroup.js} +3 -3
- package/dist/runtime/components/elements/Progress.vue +7 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +187 -31
- package/dist/runtime/components/forms/Checkbox.vue +5 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +76 -35
- package/dist/runtime/components/forms/Form.vue +1 -2
- package/dist/runtime/components/forms/Form.vue.d.ts +12 -11
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +80 -27
- package/dist/runtime/components/forms/Input.vue +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +276 -59
- package/dist/runtime/components/forms/InputMenu.vue +12 -10
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +434 -84
- package/dist/runtime/components/forms/Radio.vue +5 -3
- package/dist/runtime/components/forms/Radio.vue.d.ts +74 -35
- package/dist/runtime/components/forms/RadioGroup.vue +11 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +85 -27
- package/dist/runtime/components/forms/Range.vue.d.ts +155 -26
- package/dist/runtime/components/forms/Select.vue +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +273 -50
- package/dist/runtime/components/forms/SelectMenu.vue +50 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +451 -86
- package/dist/runtime/components/forms/Textarea.vue.d.ts +263 -48
- package/dist/runtime/components/forms/Toggle.vue +1 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +153 -26
- package/dist/runtime/components/layout/Card.vue.d.ts +55 -5
- package/dist/runtime/components/layout/Container.vue.d.ts +19 -5
- package/dist/runtime/components/layout/Divider.vue +1 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +121 -16
- package/dist/runtime/components/layout/Skeleton.vue +5 -1
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +27 -4
- package/dist/runtime/components/navigation/Breadcrumb.vue +1 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
- package/dist/runtime/components/navigation/CommandPalette.vue +8 -6
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +198 -40
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +1 -4
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +64 -9
- package/dist/runtime/components/navigation/Pagination.vue +2 -4
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +84 -12
- package/dist/runtime/components/navigation/Tabs.vue +10 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +86 -15
- package/dist/runtime/components/navigation/VerticalNavigation.vue +1 -5
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +78 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +71 -8
- package/dist/runtime/components/overlays/Modal.vue.d.ts +85 -11
- package/dist/runtime/components/overlays/Notification.vue +2 -4
- package/dist/runtime/components/overlays/Notification.vue.d.ts +130 -29
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +31 -16
- package/dist/runtime/components/overlays/Popover.vue +3 -6
- package/dist/runtime/components/overlays/Popover.vue.d.ts +110 -15
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +87 -15
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
- package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
- package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
- package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
- package/dist/runtime/composables/useFormGroup.d.ts +5 -5
- package/dist/runtime/composables/useFormGroup.js +49 -0
- package/dist/runtime/composables/useModal.d.ts +3 -3
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
- package/dist/runtime/composables/usePopper.d.ts +91 -55
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +3 -3
- package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
- package/dist/runtime/composables/useTimer.d.ts +1 -1
- package/dist/runtime/composables/useToast.d.ts +11 -11
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
- package/dist/runtime/plugins/colors.d.ts +1 -1
- package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/plugins/modals.d.ts +1 -1
- package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
- package/dist/runtime/plugins/slideovers.d.ts +1 -1
- package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
- package/dist/runtime/types/accordion.d.ts +6 -7
- package/dist/runtime/types/accordion.js +0 -0
- package/dist/runtime/types/alert.d.ts +8 -10
- package/dist/runtime/types/alert.js +0 -0
- package/dist/runtime/types/avatar.d.ts +13 -15
- package/dist/runtime/types/avatar.js +0 -0
- package/dist/runtime/types/badge.d.ts +11 -13
- package/dist/runtime/types/badge.js +0 -0
- package/dist/runtime/types/breadcrumb.d.ts +6 -8
- package/dist/runtime/types/breadcrumb.js +0 -0
- package/dist/runtime/types/button.d.ts +27 -29
- package/dist/runtime/types/button.js +0 -0
- package/dist/runtime/types/chip.d.ts +11 -13
- package/dist/runtime/types/chip.js +0 -0
- package/dist/runtime/types/clipboard.d.ts +7 -1
- package/dist/runtime/types/clipboard.js +0 -0
- package/dist/runtime/types/command-palette.d.ts +23 -24
- package/dist/runtime/types/command-palette.js +0 -0
- package/dist/runtime/types/component.d.ts +17 -14
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/divider.d.ts +2 -3
- package/dist/runtime/types/divider.js +0 -0
- package/dist/runtime/types/dropdown.d.ts +12 -13
- package/dist/runtime/types/dropdown.js +0 -0
- package/dist/runtime/types/form-group.d.ts +4 -5
- package/dist/runtime/types/form-group.js +0 -0
- package/dist/runtime/types/form.d.ts +29 -28
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
- package/dist/runtime/types/horizontal-navigation.js +0 -0
- package/dist/runtime/types/index.d.ts +31 -31
- package/dist/runtime/types/index.js +31 -0
- package/dist/runtime/types/input.d.ts +7 -8
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/kbd.d.ts +4 -5
- package/dist/runtime/types/kbd.js +0 -0
- package/dist/runtime/types/link.d.ts +9 -10
- package/dist/runtime/types/link.js +0 -0
- package/dist/runtime/types/meter.d.ts +4 -5
- package/dist/runtime/types/meter.js +0 -0
- package/dist/runtime/types/modal.d.ts +13 -15
- package/dist/runtime/types/modal.js +0 -0
- package/dist/runtime/types/notification.d.ts +17 -20
- package/dist/runtime/types/notification.js +0 -0
- package/dist/runtime/types/popper.d.ts +13 -15
- package/dist/runtime/types/popper.js +0 -0
- package/dist/runtime/types/progress.d.ts +5 -6
- package/dist/runtime/types/progress.js +0 -0
- package/dist/runtime/types/range.d.ts +6 -7
- package/dist/runtime/types/range.js +0 -0
- package/dist/runtime/types/select.d.ts +7 -8
- package/dist/runtime/types/select.js +0 -0
- package/dist/runtime/types/slideover.d.ts +10 -12
- package/dist/runtime/types/slideover.js +0 -0
- package/dist/runtime/types/tabs.d.ts +6 -5
- package/dist/runtime/types/tabs.js +0 -0
- package/dist/runtime/types/textarea.d.ts +7 -8
- package/dist/runtime/types/textarea.js +0 -0
- package/dist/runtime/types/toggle.d.ts +6 -7
- package/dist/runtime/types/toggle.js +0 -0
- package/dist/runtime/types/tooltip.d.ts +5 -5
- package/dist/runtime/types/tooltip.js +0 -0
- package/dist/runtime/types/utils.d.ts +15 -27
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/types/vertical-navigation.d.ts +10 -11
- package/dist/runtime/types/vertical-navigation.js +0 -0
- package/dist/runtime/ui.config/data/table.d.ts +10 -0
- package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
- package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
- package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
- package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
- package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
- package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
- package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
- package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
- package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
- package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
- package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
- package/dist/runtime/ui.config/index.d.ts +43 -43
- package/dist/runtime/ui.config/index.js +43 -0
- package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
- package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
- package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
- package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
- package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +2 -2
- package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
- package/dist/runtime/utils/colors.d.ts +2 -2
- package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/utils/index.d.ts +4 -4
- package/dist/runtime/utils/{index.mjs → index.js} +2 -2
- package/dist/runtime/utils/link.d.ts +26 -24
- package/dist/runtime/utils/{link.mjs → link.js} +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +20 -21
- package/dist/runtime/components/elements/Icon.vue +0 -29
- package/dist/runtime/components/elements/Icon.vue.d.ts +0 -24
- package/dist/runtime/composables/useFormGroup.mjs +0 -45
- package/dist/runtime/ui.config/index.mjs +0 -43
- /package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +0 -0
- /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
- /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
- /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
- /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
- /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
- /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
- /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
- /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
- /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
- /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
- /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
- /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
- /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
- /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
- /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
|
@@ -1,22 +1,47 @@
|
|
|
1
1
|
import type { Ref, PropType } from 'vue';
|
|
2
|
-
import type { FormGroupSize } from '../../types';
|
|
2
|
+
import type { FormGroupSize, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
inner: string;
|
|
6
|
+
label: {
|
|
7
|
+
wrapper: string;
|
|
8
|
+
base: string;
|
|
9
|
+
required: string;
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
'2xs': string;
|
|
13
|
+
xs: string;
|
|
14
|
+
sm: string;
|
|
15
|
+
md: string;
|
|
16
|
+
lg: string;
|
|
17
|
+
xl: string;
|
|
18
|
+
};
|
|
19
|
+
container: string;
|
|
20
|
+
description: string;
|
|
21
|
+
hint: string;
|
|
22
|
+
help: string;
|
|
23
|
+
error: string;
|
|
24
|
+
default: {
|
|
25
|
+
size: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
3
28
|
declare const _default: import("vue").DefineComponent<{
|
|
4
29
|
name: {
|
|
5
30
|
type: StringConstructor;
|
|
6
|
-
default:
|
|
31
|
+
default: any;
|
|
7
32
|
};
|
|
8
33
|
size: {
|
|
9
34
|
type: PropType<FormGroupSize>;
|
|
10
|
-
default:
|
|
35
|
+
default: any;
|
|
11
36
|
validator(value: string): boolean;
|
|
12
37
|
};
|
|
13
38
|
label: {
|
|
14
39
|
type: StringConstructor;
|
|
15
|
-
default:
|
|
40
|
+
default: any;
|
|
16
41
|
};
|
|
17
42
|
description: {
|
|
18
43
|
type: StringConstructor;
|
|
19
|
-
default:
|
|
44
|
+
default: any;
|
|
20
45
|
};
|
|
21
46
|
required: {
|
|
22
47
|
type: BooleanConstructor;
|
|
@@ -24,22 +49,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
49
|
};
|
|
25
50
|
help: {
|
|
26
51
|
type: StringConstructor;
|
|
27
|
-
default:
|
|
52
|
+
default: any;
|
|
28
53
|
};
|
|
29
54
|
error: {
|
|
30
|
-
type: (
|
|
31
|
-
default:
|
|
55
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
56
|
+
default: any;
|
|
32
57
|
};
|
|
33
58
|
hint: {
|
|
34
59
|
type: StringConstructor;
|
|
35
|
-
default:
|
|
60
|
+
default: any;
|
|
36
61
|
};
|
|
37
62
|
class: {
|
|
38
63
|
type: PropType<any>;
|
|
39
64
|
default: () => "";
|
|
40
65
|
};
|
|
41
66
|
ui: {
|
|
42
|
-
type: PropType<
|
|
67
|
+
type: PropType<Partial<typeof config> & {
|
|
68
|
+
strategy?: Strategy;
|
|
69
|
+
}>;
|
|
43
70
|
default: () => {};
|
|
44
71
|
};
|
|
45
72
|
eagerValidation: {
|
|
@@ -47,30 +74,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
74
|
default: boolean;
|
|
48
75
|
};
|
|
49
76
|
}, {
|
|
50
|
-
ui: import("vue").ComputedRef<
|
|
77
|
+
ui: import("vue").ComputedRef<{
|
|
78
|
+
wrapper: string;
|
|
79
|
+
inner: string;
|
|
80
|
+
label: {
|
|
81
|
+
wrapper: string;
|
|
82
|
+
base: string;
|
|
83
|
+
required: string;
|
|
84
|
+
};
|
|
85
|
+
size: {
|
|
86
|
+
'2xs': string;
|
|
87
|
+
xs: string;
|
|
88
|
+
sm: string;
|
|
89
|
+
md: string;
|
|
90
|
+
lg: string;
|
|
91
|
+
xl: string;
|
|
92
|
+
};
|
|
93
|
+
container: string;
|
|
94
|
+
description: string;
|
|
95
|
+
hint: string;
|
|
96
|
+
help: string;
|
|
97
|
+
error: string;
|
|
98
|
+
default: {
|
|
99
|
+
size: string;
|
|
100
|
+
};
|
|
101
|
+
}>;
|
|
51
102
|
attrs: import("vue").ComputedRef<Pick<{
|
|
52
103
|
[x: string]: unknown;
|
|
53
104
|
}, string>>;
|
|
54
|
-
inputId: Ref<
|
|
105
|
+
inputId: Ref<string>;
|
|
55
106
|
size: import("vue").ComputedRef<any>;
|
|
56
|
-
error: import("vue").ComputedRef<string | boolean
|
|
107
|
+
error: import("vue").ComputedRef<string | boolean>;
|
|
57
108
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
109
|
name: {
|
|
59
110
|
type: StringConstructor;
|
|
60
|
-
default:
|
|
111
|
+
default: any;
|
|
61
112
|
};
|
|
62
113
|
size: {
|
|
63
114
|
type: PropType<FormGroupSize>;
|
|
64
|
-
default:
|
|
115
|
+
default: any;
|
|
65
116
|
validator(value: string): boolean;
|
|
66
117
|
};
|
|
67
118
|
label: {
|
|
68
119
|
type: StringConstructor;
|
|
69
|
-
default:
|
|
120
|
+
default: any;
|
|
70
121
|
};
|
|
71
122
|
description: {
|
|
72
123
|
type: StringConstructor;
|
|
73
|
-
default:
|
|
124
|
+
default: any;
|
|
74
125
|
};
|
|
75
126
|
required: {
|
|
76
127
|
type: BooleanConstructor;
|
|
@@ -78,22 +129,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
129
|
};
|
|
79
130
|
help: {
|
|
80
131
|
type: StringConstructor;
|
|
81
|
-
default:
|
|
132
|
+
default: any;
|
|
82
133
|
};
|
|
83
134
|
error: {
|
|
84
|
-
type: (
|
|
85
|
-
default:
|
|
135
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
136
|
+
default: any;
|
|
86
137
|
};
|
|
87
138
|
hint: {
|
|
88
139
|
type: StringConstructor;
|
|
89
|
-
default:
|
|
140
|
+
default: any;
|
|
90
141
|
};
|
|
91
142
|
class: {
|
|
92
143
|
type: PropType<any>;
|
|
93
144
|
default: () => "";
|
|
94
145
|
};
|
|
95
146
|
ui: {
|
|
96
|
-
type: PropType<
|
|
147
|
+
type: PropType<Partial<typeof config> & {
|
|
148
|
+
strategy?: Strategy;
|
|
149
|
+
}>;
|
|
97
150
|
default: () => {};
|
|
98
151
|
};
|
|
99
152
|
eagerValidation: {
|
|
@@ -101,15 +154,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
154
|
default: boolean;
|
|
102
155
|
};
|
|
103
156
|
}>>, {
|
|
157
|
+
error: string | boolean;
|
|
104
158
|
size: FormGroupSize;
|
|
105
|
-
|
|
106
|
-
required: boolean;
|
|
159
|
+
ui: {};
|
|
107
160
|
label: string;
|
|
108
161
|
class: any;
|
|
109
|
-
ui: any;
|
|
110
|
-
help: string;
|
|
111
162
|
description: string;
|
|
112
|
-
|
|
163
|
+
name: string;
|
|
164
|
+
required: boolean;
|
|
165
|
+
help: string;
|
|
113
166
|
hint: string;
|
|
114
167
|
eagerValidation: boolean;
|
|
115
168
|
}, {}>;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<script>
|
|
35
35
|
import { ref, computed, toRef, onMounted, defineComponent } from "vue";
|
|
36
36
|
import { twMerge, twJoin } from "tailwind-merge";
|
|
37
|
-
import UIcon from "
|
|
37
|
+
import { UIcon } from "#components";
|
|
38
38
|
import { defu } from "defu";
|
|
39
39
|
import { useUI } from "../../composables/useUI";
|
|
40
40
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
@@ -163,7 +163,7 @@ export default defineComponent({
|
|
|
163
163
|
const { ui, attrs } = useUI("input", toRef(props, "ui"), config, toRef(props, "class"));
|
|
164
164
|
const { size: sizeButtonGroup, rounded } = useInjectButtonGroup({ ui, props });
|
|
165
165
|
const { emitFormBlur, emitFormInput, size: sizeFormGroup, color, inputId, name } = useFormGroup(props, config);
|
|
166
|
-
const size = computed(() => sizeButtonGroup.value
|
|
166
|
+
const size = computed(() => sizeButtonGroup.value ?? sizeFormGroup.value);
|
|
167
167
|
const modelModifiers = ref(defu({}, props.modelModifiers, { trim: false, lazy: false, number: false }));
|
|
168
168
|
const input2 = ref(null);
|
|
169
169
|
const autoFocus = () => {
|
|
@@ -1,8 +1,117 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { InputSize, InputVariant } from '../../types';
|
|
2
|
+
import type { InputSize, InputColor, InputVariant, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
base: string;
|
|
6
|
+
form: string;
|
|
7
|
+
rounded: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
file: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
'2xs': string;
|
|
14
|
+
xs: string;
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
xl: string;
|
|
19
|
+
};
|
|
20
|
+
gap: {
|
|
21
|
+
'2xs': string;
|
|
22
|
+
xs: string;
|
|
23
|
+
sm: string;
|
|
24
|
+
md: string;
|
|
25
|
+
lg: string;
|
|
26
|
+
xl: string;
|
|
27
|
+
};
|
|
28
|
+
padding: {
|
|
29
|
+
'2xs': string;
|
|
30
|
+
xs: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
md: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
xl: string;
|
|
35
|
+
};
|
|
36
|
+
leading: {
|
|
37
|
+
padding: {
|
|
38
|
+
'2xs': string;
|
|
39
|
+
xs: string;
|
|
40
|
+
sm: string;
|
|
41
|
+
md: string;
|
|
42
|
+
lg: string;
|
|
43
|
+
xl: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
trailing: {
|
|
47
|
+
padding: {
|
|
48
|
+
'2xs': string;
|
|
49
|
+
xs: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
xl: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
color: {
|
|
57
|
+
white: {
|
|
58
|
+
outline: string;
|
|
59
|
+
};
|
|
60
|
+
gray: {
|
|
61
|
+
outline: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
variant: {
|
|
65
|
+
outline: string;
|
|
66
|
+
none: string;
|
|
67
|
+
};
|
|
68
|
+
icon: {
|
|
69
|
+
base: string;
|
|
70
|
+
color: string;
|
|
71
|
+
loading: string;
|
|
72
|
+
size: {
|
|
73
|
+
'2xs': string;
|
|
74
|
+
xs: string;
|
|
75
|
+
sm: string;
|
|
76
|
+
md: string;
|
|
77
|
+
lg: string;
|
|
78
|
+
xl: string;
|
|
79
|
+
};
|
|
80
|
+
leading: {
|
|
81
|
+
wrapper: string;
|
|
82
|
+
pointer: string;
|
|
83
|
+
padding: {
|
|
84
|
+
'2xs': string;
|
|
85
|
+
xs: string;
|
|
86
|
+
sm: string;
|
|
87
|
+
md: string;
|
|
88
|
+
lg: string;
|
|
89
|
+
xl: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
trailing: {
|
|
93
|
+
wrapper: string;
|
|
94
|
+
pointer: string;
|
|
95
|
+
padding: {
|
|
96
|
+
'2xs': string;
|
|
97
|
+
xs: string;
|
|
98
|
+
sm: string;
|
|
99
|
+
md: string;
|
|
100
|
+
lg: string;
|
|
101
|
+
xl: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
default: {
|
|
106
|
+
size: string;
|
|
107
|
+
color: string;
|
|
108
|
+
variant: string;
|
|
109
|
+
loadingIcon: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
3
112
|
declare const _default: import("vue").DefineComponent<{
|
|
4
113
|
modelValue: {
|
|
5
|
-
type: (
|
|
114
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
6
115
|
default: string;
|
|
7
116
|
};
|
|
8
117
|
type: {
|
|
@@ -11,15 +120,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
120
|
};
|
|
12
121
|
id: {
|
|
13
122
|
type: StringConstructor;
|
|
14
|
-
default:
|
|
123
|
+
default: any;
|
|
15
124
|
};
|
|
16
125
|
name: {
|
|
17
126
|
type: StringConstructor;
|
|
18
|
-
default:
|
|
127
|
+
default: any;
|
|
19
128
|
};
|
|
20
129
|
placeholder: {
|
|
21
130
|
type: StringConstructor;
|
|
22
|
-
default:
|
|
131
|
+
default: any;
|
|
23
132
|
};
|
|
24
133
|
required: {
|
|
25
134
|
type: BooleanConstructor;
|
|
@@ -39,19 +148,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
148
|
};
|
|
40
149
|
icon: {
|
|
41
150
|
type: StringConstructor;
|
|
42
|
-
default:
|
|
151
|
+
default: any;
|
|
43
152
|
};
|
|
44
153
|
loadingIcon: {
|
|
45
154
|
type: StringConstructor;
|
|
46
|
-
default: () =>
|
|
155
|
+
default: () => string;
|
|
47
156
|
};
|
|
48
157
|
leadingIcon: {
|
|
49
158
|
type: StringConstructor;
|
|
50
|
-
default:
|
|
159
|
+
default: any;
|
|
51
160
|
};
|
|
52
161
|
trailingIcon: {
|
|
53
162
|
type: StringConstructor;
|
|
54
|
-
default:
|
|
163
|
+
default: any;
|
|
55
164
|
};
|
|
56
165
|
trailing: {
|
|
57
166
|
type: BooleanConstructor;
|
|
@@ -71,54 +180,164 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
180
|
};
|
|
72
181
|
size: {
|
|
73
182
|
type: PropType<InputSize>;
|
|
74
|
-
default:
|
|
183
|
+
default: any;
|
|
75
184
|
validator(value: string): boolean;
|
|
76
185
|
};
|
|
77
186
|
color: {
|
|
78
|
-
type: PropType<
|
|
79
|
-
default: () =>
|
|
187
|
+
type: PropType<InputColor>;
|
|
188
|
+
default: () => string;
|
|
80
189
|
validator(value: string): boolean;
|
|
81
190
|
};
|
|
82
191
|
variant: {
|
|
83
192
|
type: PropType<InputVariant>;
|
|
84
|
-
default: () =>
|
|
193
|
+
default: () => string;
|
|
85
194
|
validator(value: string): boolean;
|
|
86
195
|
};
|
|
87
196
|
inputClass: {
|
|
88
197
|
type: StringConstructor;
|
|
89
|
-
default:
|
|
198
|
+
default: any;
|
|
90
199
|
};
|
|
91
200
|
class: {
|
|
92
201
|
type: PropType<any>;
|
|
93
202
|
default: () => "";
|
|
94
203
|
};
|
|
95
204
|
ui: {
|
|
96
|
-
type: PropType<
|
|
205
|
+
type: PropType<Partial<typeof config> & {
|
|
206
|
+
strategy?: Strategy;
|
|
207
|
+
}>;
|
|
97
208
|
default: () => {};
|
|
98
209
|
};
|
|
99
210
|
modelModifiers: {
|
|
100
211
|
type: PropType<{
|
|
101
|
-
trim?: boolean
|
|
102
|
-
lazy?: boolean
|
|
103
|
-
number?: boolean
|
|
212
|
+
trim?: boolean;
|
|
213
|
+
lazy?: boolean;
|
|
214
|
+
number?: boolean;
|
|
104
215
|
}>;
|
|
105
216
|
default: () => {};
|
|
106
217
|
};
|
|
107
218
|
}, {
|
|
108
|
-
ui: import("vue").ComputedRef<
|
|
219
|
+
ui: import("vue").ComputedRef<{
|
|
220
|
+
wrapper: string;
|
|
221
|
+
base: string;
|
|
222
|
+
form: string;
|
|
223
|
+
rounded: string;
|
|
224
|
+
placeholder: string;
|
|
225
|
+
file: {
|
|
226
|
+
base: string;
|
|
227
|
+
};
|
|
228
|
+
size: {
|
|
229
|
+
'2xs': string;
|
|
230
|
+
xs: string;
|
|
231
|
+
sm: string;
|
|
232
|
+
md: string;
|
|
233
|
+
lg: string;
|
|
234
|
+
xl: string;
|
|
235
|
+
};
|
|
236
|
+
gap: {
|
|
237
|
+
'2xs': string;
|
|
238
|
+
xs: string;
|
|
239
|
+
sm: string;
|
|
240
|
+
md: string;
|
|
241
|
+
lg: string;
|
|
242
|
+
xl: string;
|
|
243
|
+
};
|
|
244
|
+
padding: {
|
|
245
|
+
'2xs': string;
|
|
246
|
+
xs: string;
|
|
247
|
+
sm: string;
|
|
248
|
+
md: string;
|
|
249
|
+
lg: string;
|
|
250
|
+
xl: string;
|
|
251
|
+
};
|
|
252
|
+
leading: {
|
|
253
|
+
padding: {
|
|
254
|
+
'2xs': string;
|
|
255
|
+
xs: string;
|
|
256
|
+
sm: string;
|
|
257
|
+
md: string;
|
|
258
|
+
lg: string;
|
|
259
|
+
xl: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
trailing: {
|
|
263
|
+
padding: {
|
|
264
|
+
'2xs': string;
|
|
265
|
+
xs: string;
|
|
266
|
+
sm: string;
|
|
267
|
+
md: string;
|
|
268
|
+
lg: string;
|
|
269
|
+
xl: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
color: {
|
|
273
|
+
white: {
|
|
274
|
+
outline: string;
|
|
275
|
+
};
|
|
276
|
+
gray: {
|
|
277
|
+
outline: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
variant: {
|
|
281
|
+
outline: string;
|
|
282
|
+
none: string;
|
|
283
|
+
};
|
|
284
|
+
icon: {
|
|
285
|
+
base: string;
|
|
286
|
+
color: string;
|
|
287
|
+
loading: string;
|
|
288
|
+
size: {
|
|
289
|
+
'2xs': string;
|
|
290
|
+
xs: string;
|
|
291
|
+
sm: string;
|
|
292
|
+
md: string;
|
|
293
|
+
lg: string;
|
|
294
|
+
xl: string;
|
|
295
|
+
};
|
|
296
|
+
leading: {
|
|
297
|
+
wrapper: string;
|
|
298
|
+
pointer: string;
|
|
299
|
+
padding: {
|
|
300
|
+
'2xs': string;
|
|
301
|
+
xs: string;
|
|
302
|
+
sm: string;
|
|
303
|
+
md: string;
|
|
304
|
+
lg: string;
|
|
305
|
+
xl: string;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
trailing: {
|
|
309
|
+
wrapper: string;
|
|
310
|
+
pointer: string;
|
|
311
|
+
padding: {
|
|
312
|
+
'2xs': string;
|
|
313
|
+
xs: string;
|
|
314
|
+
sm: string;
|
|
315
|
+
md: string;
|
|
316
|
+
lg: string;
|
|
317
|
+
xl: string;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
default: {
|
|
322
|
+
size: string;
|
|
323
|
+
color: string;
|
|
324
|
+
variant: string;
|
|
325
|
+
loadingIcon: string;
|
|
326
|
+
};
|
|
327
|
+
}>;
|
|
109
328
|
attrs: import("vue").ComputedRef<Pick<{
|
|
110
329
|
[x: string]: unknown;
|
|
111
330
|
}, string>>;
|
|
112
|
-
name: import("vue").ComputedRef<string
|
|
113
|
-
inputId: import("vue").ComputedRef<string
|
|
114
|
-
input: import("vue").Ref<HTMLInputElement
|
|
331
|
+
name: import("vue").ComputedRef<string>;
|
|
332
|
+
inputId: import("vue").ComputedRef<string>;
|
|
333
|
+
input: import("vue").Ref<HTMLInputElement>;
|
|
115
334
|
isLeading: import("vue").ComputedRef<string | true>;
|
|
116
335
|
isTrailing: import("vue").ComputedRef<string | true>;
|
|
117
336
|
inputClass: import("vue").ComputedRef<string>;
|
|
118
|
-
leadingIconName: import("vue").ComputedRef<string
|
|
337
|
+
leadingIconName: import("vue").ComputedRef<string>;
|
|
119
338
|
leadingIconClass: import("vue").ComputedRef<string>;
|
|
120
339
|
leadingWrapperIconClass: import("vue").ComputedRef<string>;
|
|
121
|
-
trailingIconName: import("vue").ComputedRef<string
|
|
340
|
+
trailingIconName: import("vue").ComputedRef<string>;
|
|
122
341
|
trailingIconClass: import("vue").ComputedRef<string>;
|
|
123
342
|
trailingWrapperIconClass: import("vue").ComputedRef<string>;
|
|
124
343
|
onInput: (event: Event) => void;
|
|
@@ -126,7 +345,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
345
|
onBlur: (event: FocusEvent) => void;
|
|
127
346
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "update:modelValue")[], "blur" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
347
|
modelValue: {
|
|
129
|
-
type: (
|
|
348
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
130
349
|
default: string;
|
|
131
350
|
};
|
|
132
351
|
type: {
|
|
@@ -135,15 +354,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
354
|
};
|
|
136
355
|
id: {
|
|
137
356
|
type: StringConstructor;
|
|
138
|
-
default:
|
|
357
|
+
default: any;
|
|
139
358
|
};
|
|
140
359
|
name: {
|
|
141
360
|
type: StringConstructor;
|
|
142
|
-
default:
|
|
361
|
+
default: any;
|
|
143
362
|
};
|
|
144
363
|
placeholder: {
|
|
145
364
|
type: StringConstructor;
|
|
146
|
-
default:
|
|
365
|
+
default: any;
|
|
147
366
|
};
|
|
148
367
|
required: {
|
|
149
368
|
type: BooleanConstructor;
|
|
@@ -163,19 +382,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
382
|
};
|
|
164
383
|
icon: {
|
|
165
384
|
type: StringConstructor;
|
|
166
|
-
default:
|
|
385
|
+
default: any;
|
|
167
386
|
};
|
|
168
387
|
loadingIcon: {
|
|
169
388
|
type: StringConstructor;
|
|
170
|
-
default: () =>
|
|
389
|
+
default: () => string;
|
|
171
390
|
};
|
|
172
391
|
leadingIcon: {
|
|
173
392
|
type: StringConstructor;
|
|
174
|
-
default:
|
|
393
|
+
default: any;
|
|
175
394
|
};
|
|
176
395
|
trailingIcon: {
|
|
177
396
|
type: StringConstructor;
|
|
178
|
-
default:
|
|
397
|
+
default: any;
|
|
179
398
|
};
|
|
180
399
|
trailing: {
|
|
181
400
|
type: BooleanConstructor;
|
|
@@ -195,71 +414,69 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
414
|
};
|
|
196
415
|
size: {
|
|
197
416
|
type: PropType<InputSize>;
|
|
198
|
-
default:
|
|
417
|
+
default: any;
|
|
199
418
|
validator(value: string): boolean;
|
|
200
419
|
};
|
|
201
420
|
color: {
|
|
202
|
-
type: PropType<
|
|
203
|
-
default: () =>
|
|
421
|
+
type: PropType<InputColor>;
|
|
422
|
+
default: () => string;
|
|
204
423
|
validator(value: string): boolean;
|
|
205
424
|
};
|
|
206
425
|
variant: {
|
|
207
426
|
type: PropType<InputVariant>;
|
|
208
|
-
default: () =>
|
|
427
|
+
default: () => string;
|
|
209
428
|
validator(value: string): boolean;
|
|
210
429
|
};
|
|
211
430
|
inputClass: {
|
|
212
431
|
type: StringConstructor;
|
|
213
|
-
default:
|
|
432
|
+
default: any;
|
|
214
433
|
};
|
|
215
434
|
class: {
|
|
216
435
|
type: PropType<any>;
|
|
217
436
|
default: () => "";
|
|
218
437
|
};
|
|
219
438
|
ui: {
|
|
220
|
-
type: PropType<
|
|
439
|
+
type: PropType<Partial<typeof config> & {
|
|
440
|
+
strategy?: Strategy;
|
|
441
|
+
}>;
|
|
221
442
|
default: () => {};
|
|
222
443
|
};
|
|
223
444
|
modelModifiers: {
|
|
224
445
|
type: PropType<{
|
|
225
|
-
trim?: boolean
|
|
226
|
-
lazy?: boolean
|
|
227
|
-
number?: boolean
|
|
446
|
+
trim?: boolean;
|
|
447
|
+
lazy?: boolean;
|
|
448
|
+
number?: boolean;
|
|
228
449
|
}>;
|
|
229
450
|
default: () => {};
|
|
230
451
|
};
|
|
231
452
|
}>> & {
|
|
232
|
-
onBlur?: (
|
|
233
|
-
onChange?: (
|
|
234
|
-
"onUpdate:modelValue"?: (
|
|
453
|
+
onBlur?: (...args: any[]) => any;
|
|
454
|
+
onChange?: (...args: any[]) => any;
|
|
455
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
235
456
|
}, {
|
|
236
457
|
size: InputSize;
|
|
237
|
-
|
|
458
|
+
ui: {};
|
|
238
459
|
type: string;
|
|
239
|
-
|
|
460
|
+
disabled: boolean;
|
|
461
|
+
color: InputColor;
|
|
462
|
+
variant: InputVariant;
|
|
463
|
+
icon: string;
|
|
464
|
+
id: string;
|
|
240
465
|
class: any;
|
|
241
466
|
leading: boolean;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
ui: any;
|
|
467
|
+
name: string;
|
|
468
|
+
modelValue: string | number;
|
|
469
|
+
required: boolean;
|
|
246
470
|
loading: boolean;
|
|
247
471
|
padded: boolean;
|
|
248
|
-
icon: string;
|
|
249
472
|
loadingIcon: string;
|
|
250
473
|
leadingIcon: string;
|
|
251
474
|
trailingIcon: string;
|
|
252
475
|
trailing: boolean;
|
|
253
|
-
id: string;
|
|
254
|
-
modelValue: string | number;
|
|
255
|
-
inputClass: string;
|
|
256
476
|
placeholder: string;
|
|
257
477
|
autofocus: boolean;
|
|
478
|
+
inputClass: string;
|
|
258
479
|
autofocusDelay: number;
|
|
259
|
-
modelModifiers: {
|
|
260
|
-
trim?: boolean | undefined;
|
|
261
|
-
lazy?: boolean | undefined;
|
|
262
|
-
number?: boolean | undefined;
|
|
263
|
-
};
|
|
480
|
+
modelModifiers: {};
|
|
264
481
|
}, {}>;
|
|
265
482
|
export default _default;
|