@nuxt/ui 2.17.0 → 2.18.1
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 +53 -15
- package/dist/runtime/components/data/Table.vue.d.ts +249 -50
- package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
- package/dist/runtime/components/elements/Alert.vue +1 -1
- package/dist/runtime/components/elements/Alert.vue.d.ts +106 -23
- package/dist/runtime/components/elements/Avatar.vue.d.ts +146 -25
- package/dist/runtime/components/elements/AvatarGroup.d.ts +20 -11
- package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +53 -16
- package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
- package/dist/runtime/components/elements/ButtonGroup.d.ts +113 -9
- 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 +95 -23
- package/dist/runtime/components/elements/Dropdown.vue +3 -6
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
- package/dist/runtime/components/elements/Icon.vue +16 -15
- package/dist/runtime/components/elements/Icon.vue.d.ts +33 -10
- package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
- package/dist/runtime/components/elements/Link.vue.d.ts +72 -72
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +179 -23
- package/dist/runtime/components/elements/MeterGroup.d.ts +72 -15
- 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 +188 -32
- package/dist/runtime/components/forms/Checkbox.vue +5 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +73 -32
- package/dist/runtime/components/forms/Form.vue +1 -2
- package/dist/runtime/components/forms/Form.vue.d.ts +11 -10
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +78 -25
- package/dist/runtime/components/forms/Input.vue +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +272 -55
- package/dist/runtime/components/forms/InputMenu.vue +11 -8
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +431 -81
- package/dist/runtime/components/forms/Radio.vue +5 -3
- package/dist/runtime/components/forms/Radio.vue.d.ts +71 -32
- package/dist/runtime/components/forms/RadioGroup.vue +11 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +83 -25
- package/dist/runtime/components/forms/Range.vue.d.ts +153 -24
- package/dist/runtime/components/forms/Select.vue +1 -1
- package/dist/runtime/components/forms/Select.vue.d.ts +272 -49
- package/dist/runtime/components/forms/SelectMenu.vue +49 -23
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +449 -84
- package/dist/runtime/components/forms/Textarea.vue.d.ts +258 -43
- package/dist/runtime/components/forms/Toggle.vue.d.ts +152 -25
- package/dist/runtime/components/layout/Card.vue.d.ts +54 -4
- package/dist/runtime/components/layout/Container.vue.d.ts +18 -4
- 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.d.ts +52 -9
- package/dist/runtime/components/navigation/CommandPalette.vue +7 -4
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +193 -35
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
- 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 +83 -11
- package/dist/runtime/components/navigation/Tabs.vue +10 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +85 -14
- 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 +1 -1
- package/dist/runtime/components/overlays/Notification.vue.d.ts +127 -26
- 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 +86 -14
- 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 +90 -54
- 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 +19 -21
- 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,10 +1,81 @@
|
|
|
1
1
|
import type { ComputedRef, PropType, ComponentPublicInstance } from 'vue';
|
|
2
2
|
import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
3
|
-
import type { Group, Command, Button } from '../../types';
|
|
3
|
+
import type { Group, Command, Button, Strategy } from '../../types.js';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
container: string;
|
|
7
|
+
input: {
|
|
8
|
+
wrapper: string;
|
|
9
|
+
base: string;
|
|
10
|
+
padding: string;
|
|
11
|
+
height: string;
|
|
12
|
+
size: string;
|
|
13
|
+
icon: {
|
|
14
|
+
base: string;
|
|
15
|
+
loading: string;
|
|
16
|
+
size: string;
|
|
17
|
+
padding: string;
|
|
18
|
+
};
|
|
19
|
+
closeButton: {
|
|
20
|
+
base: string;
|
|
21
|
+
padding: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
emptyState: {
|
|
25
|
+
wrapper: string;
|
|
26
|
+
label: string;
|
|
27
|
+
queryLabel: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
};
|
|
30
|
+
group: {
|
|
31
|
+
wrapper: string;
|
|
32
|
+
label: string;
|
|
33
|
+
container: string;
|
|
34
|
+
command: {
|
|
35
|
+
base: string;
|
|
36
|
+
active: string;
|
|
37
|
+
inactive: string;
|
|
38
|
+
label: string;
|
|
39
|
+
prefix: string;
|
|
40
|
+
suffix: string;
|
|
41
|
+
container: string;
|
|
42
|
+
icon: {
|
|
43
|
+
base: string;
|
|
44
|
+
active: string;
|
|
45
|
+
inactive: string;
|
|
46
|
+
};
|
|
47
|
+
selectedIcon: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
avatar: {
|
|
51
|
+
base: string;
|
|
52
|
+
size: "2xs";
|
|
53
|
+
};
|
|
54
|
+
chip: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
disabled: string;
|
|
58
|
+
shortcuts: string;
|
|
59
|
+
};
|
|
60
|
+
active: string;
|
|
61
|
+
inactive: string;
|
|
62
|
+
};
|
|
63
|
+
default: {
|
|
64
|
+
icon: string;
|
|
65
|
+
loadingIcon: string;
|
|
66
|
+
emptyState: {
|
|
67
|
+
icon: string;
|
|
68
|
+
label: string;
|
|
69
|
+
queryLabel: string;
|
|
70
|
+
};
|
|
71
|
+
closeButton: any;
|
|
72
|
+
selectedIcon: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
4
75
|
declare const _default: import("vue").DefineComponent<{
|
|
5
76
|
modelValue: {
|
|
6
|
-
type: (StringConstructor |
|
|
7
|
-
default:
|
|
77
|
+
type: (StringConstructor | NumberConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
78
|
+
default: any;
|
|
8
79
|
};
|
|
9
80
|
by: {
|
|
10
81
|
type: StringConstructor;
|
|
@@ -28,19 +99,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
99
|
};
|
|
29
100
|
groups: {
|
|
30
101
|
type: PropType<Group[]>;
|
|
31
|
-
default: () =>
|
|
102
|
+
default: () => any[];
|
|
32
103
|
};
|
|
33
104
|
icon: {
|
|
34
105
|
type: StringConstructor;
|
|
35
|
-
default: () =>
|
|
106
|
+
default: () => string;
|
|
36
107
|
};
|
|
37
108
|
loadingIcon: {
|
|
38
109
|
type: StringConstructor;
|
|
39
|
-
default: () =>
|
|
110
|
+
default: () => string;
|
|
40
111
|
};
|
|
41
112
|
selectedIcon: {
|
|
42
113
|
type: StringConstructor;
|
|
43
|
-
default: () =>
|
|
114
|
+
default: () => string;
|
|
44
115
|
};
|
|
45
116
|
closeButton: {
|
|
46
117
|
type: PropType<Button>;
|
|
@@ -52,7 +123,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
123
|
label: string;
|
|
53
124
|
queryLabel: string;
|
|
54
125
|
}>;
|
|
55
|
-
default: () =>
|
|
126
|
+
default: () => {
|
|
127
|
+
icon: string;
|
|
128
|
+
label: string;
|
|
129
|
+
queryLabel: string;
|
|
130
|
+
};
|
|
56
131
|
};
|
|
57
132
|
placeholder: {
|
|
58
133
|
type: StringConstructor;
|
|
@@ -87,33 +162,110 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
162
|
default: () => string;
|
|
88
163
|
};
|
|
89
164
|
ui: {
|
|
90
|
-
type: PropType<
|
|
165
|
+
type: PropType<Partial<typeof config> & {
|
|
166
|
+
strategy?: Strategy;
|
|
167
|
+
}>;
|
|
91
168
|
default: () => {};
|
|
92
169
|
};
|
|
93
170
|
}, {
|
|
94
|
-
ui: ComputedRef<
|
|
171
|
+
ui: ComputedRef<{
|
|
172
|
+
wrapper: string;
|
|
173
|
+
container: string;
|
|
174
|
+
input: {
|
|
175
|
+
wrapper: string;
|
|
176
|
+
base: string;
|
|
177
|
+
padding: string;
|
|
178
|
+
height: string;
|
|
179
|
+
size: string;
|
|
180
|
+
icon: {
|
|
181
|
+
base: string;
|
|
182
|
+
loading: string;
|
|
183
|
+
size: string;
|
|
184
|
+
padding: string;
|
|
185
|
+
};
|
|
186
|
+
closeButton: {
|
|
187
|
+
base: string;
|
|
188
|
+
padding: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
emptyState: {
|
|
192
|
+
wrapper: string;
|
|
193
|
+
label: string;
|
|
194
|
+
queryLabel: string;
|
|
195
|
+
icon: string;
|
|
196
|
+
};
|
|
197
|
+
group: {
|
|
198
|
+
wrapper: string;
|
|
199
|
+
label: string;
|
|
200
|
+
container: string;
|
|
201
|
+
command: {
|
|
202
|
+
base: string;
|
|
203
|
+
active: string;
|
|
204
|
+
inactive: string;
|
|
205
|
+
label: string;
|
|
206
|
+
prefix: string;
|
|
207
|
+
suffix: string;
|
|
208
|
+
container: string;
|
|
209
|
+
icon: {
|
|
210
|
+
base: string;
|
|
211
|
+
active: string;
|
|
212
|
+
inactive: string;
|
|
213
|
+
};
|
|
214
|
+
selectedIcon: {
|
|
215
|
+
base: string;
|
|
216
|
+
};
|
|
217
|
+
avatar: {
|
|
218
|
+
base: string;
|
|
219
|
+
size: "2xs";
|
|
220
|
+
};
|
|
221
|
+
chip: {
|
|
222
|
+
base: string;
|
|
223
|
+
};
|
|
224
|
+
disabled: string;
|
|
225
|
+
shortcuts: string;
|
|
226
|
+
};
|
|
227
|
+
active: string;
|
|
228
|
+
inactive: string;
|
|
229
|
+
};
|
|
230
|
+
default: {
|
|
231
|
+
icon: string;
|
|
232
|
+
loadingIcon: string;
|
|
233
|
+
emptyState: {
|
|
234
|
+
icon: string;
|
|
235
|
+
label: string;
|
|
236
|
+
queryLabel: string;
|
|
237
|
+
};
|
|
238
|
+
closeButton: any;
|
|
239
|
+
selectedIcon: string;
|
|
240
|
+
};
|
|
241
|
+
}>;
|
|
95
242
|
attrs: ComputedRef<Pick<{
|
|
96
243
|
[x: string]: unknown;
|
|
97
244
|
}, string>>;
|
|
98
245
|
groups: ComputedRef<(Group | {
|
|
99
246
|
commands: Command[];
|
|
100
247
|
key: string;
|
|
101
|
-
active?: string
|
|
102
|
-
inactive?: string
|
|
103
|
-
search?:
|
|
104
|
-
filter?:
|
|
105
|
-
|
|
106
|
-
|
|
248
|
+
active?: string;
|
|
249
|
+
inactive?: string;
|
|
250
|
+
search?: (...args: any[]) => any[] | Promise<any[]>;
|
|
251
|
+
filter?: (...args: any[]) => Command[];
|
|
252
|
+
static?: Boolean;
|
|
253
|
+
})[]>;
|
|
254
|
+
comboboxInput: import("vue").Ref<ComponentPublicInstance<HTMLInputElement>>;
|
|
107
255
|
query: import("vue").Ref<string>;
|
|
108
|
-
iconName: ComputedRef<string
|
|
256
|
+
iconName: ComputedRef<string>;
|
|
109
257
|
iconClass: ComputedRef<string>;
|
|
110
|
-
emptyState: ComputedRef<
|
|
258
|
+
emptyState: ComputedRef<{
|
|
259
|
+
icon: string;
|
|
260
|
+
label: string;
|
|
261
|
+
queryLabel: string;
|
|
262
|
+
}>;
|
|
111
263
|
onSelect: (option: Command | Command[]) => void;
|
|
112
264
|
onClear: () => void;
|
|
113
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
265
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue")[], "close" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
266
|
modelValue: {
|
|
115
|
-
type: (StringConstructor |
|
|
116
|
-
default:
|
|
267
|
+
type: (StringConstructor | NumberConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
268
|
+
default: any;
|
|
117
269
|
};
|
|
118
270
|
by: {
|
|
119
271
|
type: StringConstructor;
|
|
@@ -137,19 +289,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
137
289
|
};
|
|
138
290
|
groups: {
|
|
139
291
|
type: PropType<Group[]>;
|
|
140
|
-
default: () =>
|
|
292
|
+
default: () => any[];
|
|
141
293
|
};
|
|
142
294
|
icon: {
|
|
143
295
|
type: StringConstructor;
|
|
144
|
-
default: () =>
|
|
296
|
+
default: () => string;
|
|
145
297
|
};
|
|
146
298
|
loadingIcon: {
|
|
147
299
|
type: StringConstructor;
|
|
148
|
-
default: () =>
|
|
300
|
+
default: () => string;
|
|
149
301
|
};
|
|
150
302
|
selectedIcon: {
|
|
151
303
|
type: StringConstructor;
|
|
152
|
-
default: () =>
|
|
304
|
+
default: () => string;
|
|
153
305
|
};
|
|
154
306
|
closeButton: {
|
|
155
307
|
type: PropType<Button>;
|
|
@@ -161,7 +313,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
313
|
label: string;
|
|
162
314
|
queryLabel: string;
|
|
163
315
|
}>;
|
|
164
|
-
default: () =>
|
|
316
|
+
default: () => {
|
|
317
|
+
icon: string;
|
|
318
|
+
label: string;
|
|
319
|
+
queryLabel: string;
|
|
320
|
+
};
|
|
165
321
|
};
|
|
166
322
|
placeholder: {
|
|
167
323
|
type: StringConstructor;
|
|
@@ -196,28 +352,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
352
|
default: () => string;
|
|
197
353
|
};
|
|
198
354
|
ui: {
|
|
199
|
-
type: PropType<
|
|
355
|
+
type: PropType<Partial<typeof config> & {
|
|
356
|
+
strategy?: Strategy;
|
|
357
|
+
}>;
|
|
200
358
|
default: () => {};
|
|
201
359
|
};
|
|
202
360
|
}>> & {
|
|
203
|
-
|
|
204
|
-
|
|
361
|
+
onClose?: (...args: any[]) => any;
|
|
362
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
205
363
|
}, {
|
|
206
364
|
class: any;
|
|
207
|
-
ui:
|
|
208
|
-
loading: boolean;
|
|
365
|
+
ui: {};
|
|
209
366
|
icon: string;
|
|
210
|
-
|
|
367
|
+
closeButton: Button;
|
|
211
368
|
modelValue: string | number | Record<string, any> | unknown[];
|
|
212
|
-
|
|
369
|
+
loading: boolean;
|
|
370
|
+
loadingIcon: string;
|
|
213
371
|
emptyState: {
|
|
214
372
|
icon: string;
|
|
215
373
|
label: string;
|
|
216
374
|
queryLabel: string;
|
|
217
375
|
};
|
|
376
|
+
by: string;
|
|
218
377
|
multiple: boolean;
|
|
219
378
|
placeholder: string;
|
|
220
|
-
closeButton: Button;
|
|
221
379
|
nullable: boolean;
|
|
222
380
|
selectedIcon: string;
|
|
223
381
|
debounce: number;
|
|
@@ -227,6 +385,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
385
|
groups: Group[];
|
|
228
386
|
autoselect: boolean;
|
|
229
387
|
autoclear: boolean;
|
|
230
|
-
fuse:
|
|
388
|
+
fuse: {};
|
|
231
389
|
}, {}>;
|
|
232
390
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Group } from '../../types';
|
|
2
|
+
import type { Command, Group } from '../../types.js';
|
|
3
|
+
import { commandPalette } from '#ui/ui.config';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
group: {
|
|
5
6
|
type: PropType<Group>;
|
|
@@ -22,15 +23,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
23
|
required: true;
|
|
23
24
|
};
|
|
24
25
|
ui: {
|
|
25
|
-
type: PropType<
|
|
26
|
+
type: PropType<typeof commandPalette>;
|
|
26
27
|
required: true;
|
|
27
28
|
};
|
|
28
29
|
}, {
|
|
29
30
|
label: import("vue").ComputedRef<any>;
|
|
30
|
-
highlight: (text: string, { indices, value }:
|
|
31
|
-
indices: number[][];
|
|
32
|
-
value: string;
|
|
33
|
-
}) => string;
|
|
31
|
+
highlight: (text: string, { indices, value }: Command["matches"][number]) => string;
|
|
34
32
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
33
|
group: {
|
|
36
34
|
type: PropType<Group>;
|
|
@@ -53,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
51
|
required: true;
|
|
54
52
|
};
|
|
55
53
|
ui: {
|
|
56
|
-
type: PropType<
|
|
54
|
+
type: PropType<typeof commandPalette>;
|
|
57
55
|
required: true;
|
|
58
56
|
};
|
|
59
57
|
}>>, {
|
|
@@ -1,21 +1,74 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { twJoin } from 'tailwind-merge';
|
|
3
|
-
import type { HorizontalNavigationLink } from '../../types';
|
|
3
|
+
import type { HorizontalNavigationLink, Strategy } from '../../types.js';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
container: string;
|
|
7
|
+
inner: string;
|
|
8
|
+
base: string;
|
|
9
|
+
before: string;
|
|
10
|
+
after: string;
|
|
11
|
+
active: string;
|
|
12
|
+
inactive: string;
|
|
13
|
+
label: string;
|
|
14
|
+
icon: {
|
|
15
|
+
base: string;
|
|
16
|
+
active: string;
|
|
17
|
+
inactive: string;
|
|
18
|
+
};
|
|
19
|
+
avatar: {
|
|
20
|
+
base: string;
|
|
21
|
+
size: "2xs";
|
|
22
|
+
};
|
|
23
|
+
badge: {
|
|
24
|
+
base: string;
|
|
25
|
+
color: "gray";
|
|
26
|
+
variant: "solid";
|
|
27
|
+
size: "xs";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
4
30
|
declare const _default: import("vue").DefineComponent<{
|
|
5
31
|
links: {
|
|
6
|
-
type: PropType<HorizontalNavigationLink[] | HorizontalNavigationLink[]
|
|
7
|
-
default: () =>
|
|
32
|
+
type: PropType<HorizontalNavigationLink[][] | HorizontalNavigationLink[]>;
|
|
33
|
+
default: () => any[];
|
|
8
34
|
};
|
|
9
35
|
class: {
|
|
10
36
|
type: PropType<any>;
|
|
11
37
|
default: () => string;
|
|
12
38
|
};
|
|
13
39
|
ui: {
|
|
14
|
-
type: PropType<
|
|
40
|
+
type: PropType<Partial<typeof config> & {
|
|
41
|
+
strategy?: Strategy;
|
|
42
|
+
}>;
|
|
15
43
|
default: () => {};
|
|
16
44
|
};
|
|
17
45
|
}, {
|
|
18
|
-
ui: import("vue").ComputedRef<
|
|
46
|
+
ui: import("vue").ComputedRef<{
|
|
47
|
+
wrapper: string;
|
|
48
|
+
container: string;
|
|
49
|
+
inner: string;
|
|
50
|
+
base: string;
|
|
51
|
+
before: string;
|
|
52
|
+
after: string;
|
|
53
|
+
active: string;
|
|
54
|
+
inactive: string;
|
|
55
|
+
label: string;
|
|
56
|
+
icon: {
|
|
57
|
+
base: string;
|
|
58
|
+
active: string;
|
|
59
|
+
inactive: string;
|
|
60
|
+
};
|
|
61
|
+
avatar: {
|
|
62
|
+
base: string;
|
|
63
|
+
size: "2xs";
|
|
64
|
+
};
|
|
65
|
+
badge: {
|
|
66
|
+
base: string;
|
|
67
|
+
color: "gray";
|
|
68
|
+
variant: "solid";
|
|
69
|
+
size: "xs";
|
|
70
|
+
};
|
|
71
|
+
}>;
|
|
19
72
|
attrs: import("vue").ComputedRef<Pick<{
|
|
20
73
|
[x: string]: unknown;
|
|
21
74
|
}, string>>;
|
|
@@ -25,20 +78,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
78
|
twJoin: typeof twJoin;
|
|
26
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
80
|
links: {
|
|
28
|
-
type: PropType<HorizontalNavigationLink[] | HorizontalNavigationLink[]
|
|
29
|
-
default: () =>
|
|
81
|
+
type: PropType<HorizontalNavigationLink[][] | HorizontalNavigationLink[]>;
|
|
82
|
+
default: () => any[];
|
|
30
83
|
};
|
|
31
84
|
class: {
|
|
32
85
|
type: PropType<any>;
|
|
33
86
|
default: () => string;
|
|
34
87
|
};
|
|
35
88
|
ui: {
|
|
36
|
-
type: PropType<
|
|
89
|
+
type: PropType<Partial<typeof config> & {
|
|
90
|
+
strategy?: Strategy;
|
|
91
|
+
}>;
|
|
37
92
|
default: () => {};
|
|
38
93
|
};
|
|
39
94
|
}>>, {
|
|
40
95
|
class: any;
|
|
41
|
-
ui:
|
|
96
|
+
ui: {};
|
|
42
97
|
links: HorizontalNavigationLink[] | HorizontalNavigationLink[][];
|
|
43
98
|
}, {}>;
|
|
44
99
|
export default _default;
|
|
@@ -190,8 +190,7 @@ export default defineComponent({
|
|
|
190
190
|
return items;
|
|
191
191
|
}
|
|
192
192
|
items.push(1);
|
|
193
|
-
if (beforeWrapped)
|
|
194
|
-
items.push(props.divider);
|
|
193
|
+
if (beforeWrapped) items.push(props.divider);
|
|
195
194
|
if (!afterWrapped) {
|
|
196
195
|
const addedItems = current + r + 2 - totalPages;
|
|
197
196
|
for (let i = current - r - addedItems; i <= current - r - 1; i++) {
|
|
@@ -207,8 +206,7 @@ export default defineComponent({
|
|
|
207
206
|
items.push(i);
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
|
-
if (afterWrapped)
|
|
211
|
-
items.push(props.divider);
|
|
209
|
+
if (afterWrapped) items.push(props.divider);
|
|
212
210
|
if (r2 < totalPages) {
|
|
213
211
|
items.push(totalPages);
|
|
214
212
|
}
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RouteLocationRaw } from '#vue-router';
|
|
3
|
+
import type { Button, ButtonSize, Strategy } from '../../types.js';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
base: string;
|
|
7
|
+
rounded: string;
|
|
8
|
+
default: {
|
|
9
|
+
size: string;
|
|
10
|
+
activeButton: {
|
|
11
|
+
color: "primary";
|
|
12
|
+
};
|
|
13
|
+
inactiveButton: {
|
|
14
|
+
color: "white";
|
|
15
|
+
};
|
|
16
|
+
firstButton: {
|
|
17
|
+
color: "white";
|
|
18
|
+
class: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
};
|
|
21
|
+
lastButton: {
|
|
22
|
+
color: "white";
|
|
23
|
+
class: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
};
|
|
26
|
+
prevButton: {
|
|
27
|
+
color: "white";
|
|
28
|
+
class: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
};
|
|
31
|
+
nextButton: {
|
|
32
|
+
color: "white";
|
|
33
|
+
class: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
3
38
|
declare const _default: import("vue").DefineComponent<{
|
|
4
39
|
modelValue: {
|
|
5
40
|
type: NumberConstructor;
|
|
@@ -24,12 +59,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
59
|
};
|
|
25
60
|
size: {
|
|
26
61
|
type: PropType<ButtonSize>;
|
|
27
|
-
default: () =>
|
|
62
|
+
default: () => string;
|
|
28
63
|
validator(value: string): boolean;
|
|
29
64
|
};
|
|
30
65
|
to: {
|
|
31
66
|
type: PropType<(page: number) => RouteLocationRaw>;
|
|
32
|
-
default:
|
|
67
|
+
default: any;
|
|
33
68
|
};
|
|
34
69
|
activeButton: {
|
|
35
70
|
type: PropType<Button>;
|
|
@@ -72,11 +107,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
107
|
default: () => "";
|
|
73
108
|
};
|
|
74
109
|
ui: {
|
|
75
|
-
type: PropType<
|
|
110
|
+
type: PropType<Partial<typeof config> & {
|
|
111
|
+
strategy?: Strategy;
|
|
112
|
+
}>;
|
|
76
113
|
default: () => {};
|
|
77
114
|
};
|
|
78
115
|
}, {
|
|
79
|
-
ui: import("vue").ComputedRef<
|
|
116
|
+
ui: import("vue").ComputedRef<{
|
|
117
|
+
wrapper: string;
|
|
118
|
+
base: string;
|
|
119
|
+
rounded: string;
|
|
120
|
+
default: {
|
|
121
|
+
size: string;
|
|
122
|
+
activeButton: {
|
|
123
|
+
color: "primary";
|
|
124
|
+
};
|
|
125
|
+
inactiveButton: {
|
|
126
|
+
color: "white";
|
|
127
|
+
};
|
|
128
|
+
firstButton: {
|
|
129
|
+
color: "white";
|
|
130
|
+
class: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
};
|
|
133
|
+
lastButton: {
|
|
134
|
+
color: "white";
|
|
135
|
+
class: string;
|
|
136
|
+
icon: string;
|
|
137
|
+
};
|
|
138
|
+
prevButton: {
|
|
139
|
+
color: "white";
|
|
140
|
+
class: string;
|
|
141
|
+
icon: string;
|
|
142
|
+
};
|
|
143
|
+
nextButton: {
|
|
144
|
+
color: "white";
|
|
145
|
+
class: string;
|
|
146
|
+
icon: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}>;
|
|
80
150
|
attrs: import("vue").ComputedRef<Pick<{
|
|
81
151
|
[x: string]: unknown;
|
|
82
152
|
}, string>>;
|
|
@@ -114,12 +184,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
184
|
};
|
|
115
185
|
size: {
|
|
116
186
|
type: PropType<ButtonSize>;
|
|
117
|
-
default: () =>
|
|
187
|
+
default: () => string;
|
|
118
188
|
validator(value: string): boolean;
|
|
119
189
|
};
|
|
120
190
|
to: {
|
|
121
191
|
type: PropType<(page: number) => RouteLocationRaw>;
|
|
122
|
-
default:
|
|
192
|
+
default: any;
|
|
123
193
|
};
|
|
124
194
|
activeButton: {
|
|
125
195
|
type: PropType<Button>;
|
|
@@ -162,17 +232,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
232
|
default: () => "";
|
|
163
233
|
};
|
|
164
234
|
ui: {
|
|
165
|
-
type: PropType<
|
|
235
|
+
type: PropType<Partial<typeof config> & {
|
|
236
|
+
strategy?: Strategy;
|
|
237
|
+
}>;
|
|
166
238
|
default: () => {};
|
|
167
239
|
};
|
|
168
240
|
}>> & {
|
|
169
|
-
"onUpdate:modelValue"?: (
|
|
241
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
170
242
|
}, {
|
|
171
243
|
size: ButtonSize;
|
|
172
244
|
class: any;
|
|
173
|
-
disabled: boolean;
|
|
174
245
|
to: (page: number) => RouteLocationRaw;
|
|
175
|
-
|
|
246
|
+
disabled: boolean;
|
|
247
|
+
ui: {};
|
|
176
248
|
max: number;
|
|
177
249
|
prevButton: Button;
|
|
178
250
|
nextButton: Button;
|
|
@@ -25,6 +25,16 @@
|
|
|
25
25
|
as="template"
|
|
26
26
|
>
|
|
27
27
|
<button :class="[ui.list.tab.base, ui.list.tab.background, ui.list.tab.height, ui.list.tab.padding, ui.list.tab.size, ui.list.tab.font, ui.list.tab.rounded, ui.list.tab.shadow, selected ? ui.list.tab.active : ui.list.tab.inactive]">
|
|
28
|
+
<slot
|
|
29
|
+
name="icon"
|
|
30
|
+
:item="item"
|
|
31
|
+
:index="index"
|
|
32
|
+
:selected="selected"
|
|
33
|
+
:disabled="disabled"
|
|
34
|
+
>
|
|
35
|
+
<UIcon v-if="item.icon" :name="item.icon" :class="ui.list.tab.icon" />
|
|
36
|
+
</slot>
|
|
37
|
+
|
|
28
38
|
<slot :item="item" :index="index" :selected="selected" :disabled="disabled">
|
|
29
39
|
<span class="truncate">{{ item.label }}</span>
|
|
30
40
|
</slot>
|