@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,4 +1,28 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
base: string;
|
|
5
|
+
background: string;
|
|
6
|
+
divide: string;
|
|
7
|
+
ring: string;
|
|
8
|
+
rounded: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
body: {
|
|
11
|
+
base: string;
|
|
12
|
+
background: string;
|
|
13
|
+
padding: string;
|
|
14
|
+
};
|
|
15
|
+
header: {
|
|
16
|
+
base: string;
|
|
17
|
+
background: string;
|
|
18
|
+
padding: string;
|
|
19
|
+
};
|
|
20
|
+
footer: {
|
|
21
|
+
base: string;
|
|
22
|
+
background: string;
|
|
23
|
+
padding: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
2
26
|
declare const _default: import("vue").DefineComponent<{
|
|
3
27
|
as: {
|
|
4
28
|
type: StringConstructor;
|
|
@@ -9,11 +33,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
33
|
default: () => string;
|
|
10
34
|
};
|
|
11
35
|
ui: {
|
|
12
|
-
type: PropType<
|
|
36
|
+
type: PropType<Partial<typeof config> & {
|
|
37
|
+
strategy?: Strategy;
|
|
38
|
+
}>;
|
|
13
39
|
default: () => {};
|
|
14
40
|
};
|
|
15
41
|
}, {
|
|
16
|
-
ui: import("vue").ComputedRef<
|
|
42
|
+
ui: import("vue").ComputedRef<{
|
|
43
|
+
base: string;
|
|
44
|
+
background: string;
|
|
45
|
+
divide: string;
|
|
46
|
+
ring: string;
|
|
47
|
+
rounded: string;
|
|
48
|
+
shadow: string;
|
|
49
|
+
body: {
|
|
50
|
+
base: string;
|
|
51
|
+
background: string;
|
|
52
|
+
padding: string;
|
|
53
|
+
};
|
|
54
|
+
header: {
|
|
55
|
+
base: string;
|
|
56
|
+
background: string;
|
|
57
|
+
padding: string;
|
|
58
|
+
};
|
|
59
|
+
footer: {
|
|
60
|
+
base: string;
|
|
61
|
+
background: string;
|
|
62
|
+
padding: string;
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
17
65
|
attrs: import("vue").ComputedRef<Pick<{
|
|
18
66
|
[x: string]: unknown;
|
|
19
67
|
}, string>>;
|
|
@@ -28,12 +76,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
76
|
default: () => string;
|
|
29
77
|
};
|
|
30
78
|
ui: {
|
|
31
|
-
type: PropType<
|
|
79
|
+
type: PropType<Partial<typeof config> & {
|
|
80
|
+
strategy?: Strategy;
|
|
81
|
+
}>;
|
|
32
82
|
default: () => {};
|
|
33
83
|
};
|
|
34
84
|
}>>, {
|
|
35
85
|
class: any;
|
|
36
86
|
as: string;
|
|
37
|
-
ui:
|
|
87
|
+
ui: {};
|
|
38
88
|
}, {}>;
|
|
39
89
|
export default _default;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
base: string;
|
|
5
|
+
padding: string;
|
|
6
|
+
constrained: string;
|
|
7
|
+
};
|
|
2
8
|
declare const _default: import("vue").DefineComponent<{
|
|
3
9
|
as: {
|
|
4
10
|
type: StringConstructor;
|
|
@@ -9,11 +15,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
15
|
default: () => string;
|
|
10
16
|
};
|
|
11
17
|
ui: {
|
|
12
|
-
type: PropType<
|
|
18
|
+
type: PropType<Partial<typeof config> & {
|
|
19
|
+
strategy?: Strategy;
|
|
20
|
+
}>;
|
|
13
21
|
default: () => {};
|
|
14
22
|
};
|
|
15
23
|
}, {
|
|
16
|
-
ui: import("vue").ComputedRef<
|
|
24
|
+
ui: import("vue").ComputedRef<{
|
|
25
|
+
base: string;
|
|
26
|
+
padding: string;
|
|
27
|
+
constrained: string;
|
|
28
|
+
}>;
|
|
17
29
|
attrs: import("vue").ComputedRef<Pick<{
|
|
18
30
|
[x: string]: unknown;
|
|
19
31
|
}, string>>;
|
|
@@ -28,12 +40,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
40
|
default: () => string;
|
|
29
41
|
};
|
|
30
42
|
ui: {
|
|
31
|
-
type: PropType<
|
|
43
|
+
type: PropType<Partial<typeof config> & {
|
|
44
|
+
strategy?: Strategy;
|
|
45
|
+
}>;
|
|
32
46
|
default: () => {};
|
|
33
47
|
};
|
|
34
48
|
}>>, {
|
|
35
49
|
class: any;
|
|
36
50
|
as: string;
|
|
37
|
-
ui:
|
|
51
|
+
ui: {};
|
|
38
52
|
}, {}>;
|
|
39
53
|
export default _default;
|
|
@@ -1,21 +1,72 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Avatar, DividerSize } from '../../types';
|
|
2
|
+
import type { Avatar, DividerSize, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: {
|
|
5
|
+
base: string;
|
|
6
|
+
horizontal: string;
|
|
7
|
+
vertical: string;
|
|
8
|
+
};
|
|
9
|
+
container: {
|
|
10
|
+
base: string;
|
|
11
|
+
horizontal: string;
|
|
12
|
+
vertical: string;
|
|
13
|
+
};
|
|
14
|
+
border: {
|
|
15
|
+
base: string;
|
|
16
|
+
horizontal: string;
|
|
17
|
+
vertical: string;
|
|
18
|
+
size: {
|
|
19
|
+
horizontal: {
|
|
20
|
+
'2xs': string;
|
|
21
|
+
xs: string;
|
|
22
|
+
sm: string;
|
|
23
|
+
md: string;
|
|
24
|
+
lg: string;
|
|
25
|
+
xl: string;
|
|
26
|
+
};
|
|
27
|
+
vertical: {
|
|
28
|
+
'2xs': string;
|
|
29
|
+
xs: string;
|
|
30
|
+
sm: string;
|
|
31
|
+
md: string;
|
|
32
|
+
lg: string;
|
|
33
|
+
xl: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type: {
|
|
37
|
+
solid: string;
|
|
38
|
+
dotted: string;
|
|
39
|
+
dashed: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
icon: {
|
|
43
|
+
base: string;
|
|
44
|
+
};
|
|
45
|
+
avatar: {
|
|
46
|
+
base: string;
|
|
47
|
+
size: "2xs";
|
|
48
|
+
};
|
|
49
|
+
label: string;
|
|
50
|
+
default: {
|
|
51
|
+
size: "2xs";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
3
54
|
declare const _default: import("vue").DefineComponent<{
|
|
4
55
|
label: {
|
|
5
56
|
type: StringConstructor;
|
|
6
|
-
default:
|
|
57
|
+
default: any;
|
|
7
58
|
};
|
|
8
59
|
icon: {
|
|
9
60
|
type: StringConstructor;
|
|
10
|
-
default:
|
|
61
|
+
default: any;
|
|
11
62
|
};
|
|
12
63
|
avatar: {
|
|
13
64
|
type: PropType<Avatar>;
|
|
14
|
-
default:
|
|
65
|
+
default: any;
|
|
15
66
|
};
|
|
16
67
|
size: {
|
|
17
68
|
type: PropType<DividerSize>;
|
|
18
|
-
default: () =>
|
|
69
|
+
default: () => "2xs";
|
|
19
70
|
validator(value: string): boolean;
|
|
20
71
|
};
|
|
21
72
|
orientation: {
|
|
@@ -33,11 +84,63 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
84
|
default: () => "";
|
|
34
85
|
};
|
|
35
86
|
ui: {
|
|
36
|
-
type: PropType<
|
|
87
|
+
type: PropType<Partial<typeof config> & {
|
|
88
|
+
strategy?: Strategy;
|
|
89
|
+
}>;
|
|
37
90
|
default: () => {};
|
|
38
91
|
};
|
|
39
92
|
}, {
|
|
40
|
-
ui: import("vue").ComputedRef<
|
|
93
|
+
ui: import("vue").ComputedRef<{
|
|
94
|
+
wrapper: {
|
|
95
|
+
base: string;
|
|
96
|
+
horizontal: string;
|
|
97
|
+
vertical: string;
|
|
98
|
+
};
|
|
99
|
+
container: {
|
|
100
|
+
base: string;
|
|
101
|
+
horizontal: string;
|
|
102
|
+
vertical: string;
|
|
103
|
+
};
|
|
104
|
+
border: {
|
|
105
|
+
base: string;
|
|
106
|
+
horizontal: string;
|
|
107
|
+
vertical: string;
|
|
108
|
+
size: {
|
|
109
|
+
horizontal: {
|
|
110
|
+
'2xs': string;
|
|
111
|
+
xs: string;
|
|
112
|
+
sm: string;
|
|
113
|
+
md: string;
|
|
114
|
+
lg: string;
|
|
115
|
+
xl: string;
|
|
116
|
+
};
|
|
117
|
+
vertical: {
|
|
118
|
+
'2xs': string;
|
|
119
|
+
xs: string;
|
|
120
|
+
sm: string;
|
|
121
|
+
md: string;
|
|
122
|
+
lg: string;
|
|
123
|
+
xl: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
type: {
|
|
127
|
+
solid: string;
|
|
128
|
+
dotted: string;
|
|
129
|
+
dashed: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
icon: {
|
|
133
|
+
base: string;
|
|
134
|
+
};
|
|
135
|
+
avatar: {
|
|
136
|
+
base: string;
|
|
137
|
+
size: "2xs";
|
|
138
|
+
};
|
|
139
|
+
label: string;
|
|
140
|
+
default: {
|
|
141
|
+
size: "2xs";
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
41
144
|
attrs: import("vue").ComputedRef<Pick<{
|
|
42
145
|
[x: string]: unknown;
|
|
43
146
|
}, string>>;
|
|
@@ -47,19 +150,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
150
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
151
|
label: {
|
|
49
152
|
type: StringConstructor;
|
|
50
|
-
default:
|
|
153
|
+
default: any;
|
|
51
154
|
};
|
|
52
155
|
icon: {
|
|
53
156
|
type: StringConstructor;
|
|
54
|
-
default:
|
|
157
|
+
default: any;
|
|
55
158
|
};
|
|
56
159
|
avatar: {
|
|
57
160
|
type: PropType<Avatar>;
|
|
58
|
-
default:
|
|
161
|
+
default: any;
|
|
59
162
|
};
|
|
60
163
|
size: {
|
|
61
164
|
type: PropType<DividerSize>;
|
|
62
|
-
default: () =>
|
|
165
|
+
default: () => "2xs";
|
|
63
166
|
validator(value: string): boolean;
|
|
64
167
|
};
|
|
65
168
|
orientation: {
|
|
@@ -77,17 +180,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
180
|
default: () => "";
|
|
78
181
|
};
|
|
79
182
|
ui: {
|
|
80
|
-
type: PropType<
|
|
183
|
+
type: PropType<Partial<typeof config> & {
|
|
184
|
+
strategy?: Strategy;
|
|
185
|
+
}>;
|
|
81
186
|
default: () => {};
|
|
82
187
|
};
|
|
83
188
|
}>>, {
|
|
84
189
|
size: DividerSize;
|
|
85
190
|
type: "solid" | "dotted" | "dashed";
|
|
86
|
-
label: string;
|
|
87
191
|
class: any;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
192
|
+
ui: {};
|
|
193
|
+
avatar: any;
|
|
194
|
+
label: string;
|
|
91
195
|
icon: string;
|
|
196
|
+
orientation: "horizontal" | "vertical";
|
|
92
197
|
}, {}>;
|
|
93
198
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<component :is="as" :class="skeletonClass" v-bind="attrs" />
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
@@ -13,6 +13,10 @@ const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.skeleton, skeleto
|
|
|
13
13
|
export default defineComponent({
|
|
14
14
|
inheritAttrs: false,
|
|
15
15
|
props: {
|
|
16
|
+
as: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "div"
|
|
19
|
+
},
|
|
16
20
|
class: {
|
|
17
21
|
type: [String, Object, Array],
|
|
18
22
|
default: () => ""
|
|
@@ -1,30 +1,53 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
base: string;
|
|
5
|
+
background: string;
|
|
6
|
+
rounded: string;
|
|
7
|
+
};
|
|
2
8
|
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
as: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
3
13
|
class: {
|
|
4
14
|
type: PropType<any>;
|
|
5
15
|
default: () => string;
|
|
6
16
|
};
|
|
7
17
|
ui: {
|
|
8
|
-
type: PropType<
|
|
18
|
+
type: PropType<Partial<typeof config> & {
|
|
19
|
+
strategy?: Strategy;
|
|
20
|
+
}>;
|
|
9
21
|
default: () => {};
|
|
10
22
|
};
|
|
11
23
|
}, {
|
|
12
|
-
ui: import("vue").ComputedRef<
|
|
24
|
+
ui: import("vue").ComputedRef<{
|
|
25
|
+
base: string;
|
|
26
|
+
background: string;
|
|
27
|
+
rounded: string;
|
|
28
|
+
}>;
|
|
13
29
|
attrs: import("vue").ComputedRef<Pick<{
|
|
14
30
|
[x: string]: unknown;
|
|
15
31
|
}, string>>;
|
|
16
32
|
skeletonClass: import("vue").ComputedRef<string>;
|
|
17
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
as: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
18
38
|
class: {
|
|
19
39
|
type: PropType<any>;
|
|
20
40
|
default: () => string;
|
|
21
41
|
};
|
|
22
42
|
ui: {
|
|
23
|
-
type: PropType<
|
|
43
|
+
type: PropType<Partial<typeof config> & {
|
|
44
|
+
strategy?: Strategy;
|
|
45
|
+
}>;
|
|
24
46
|
default: () => {};
|
|
25
47
|
};
|
|
26
48
|
}>>, {
|
|
27
49
|
class: any;
|
|
28
|
-
|
|
50
|
+
as: string;
|
|
51
|
+
ui: {};
|
|
29
52
|
}, {}>;
|
|
30
53
|
export default _default;
|
|
@@ -1,25 +1,66 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { twJoin } from 'tailwind-merge';
|
|
3
|
-
import type { BreadcrumbLink } from '../../types';
|
|
3
|
+
import type { BreadcrumbLink, Strategy } from '../../types.js';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
ol: string;
|
|
7
|
+
li: string;
|
|
8
|
+
base: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: {
|
|
11
|
+
base: string;
|
|
12
|
+
active: string;
|
|
13
|
+
inactive: string;
|
|
14
|
+
};
|
|
15
|
+
divider: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
active: string;
|
|
19
|
+
inactive: string;
|
|
20
|
+
default: {
|
|
21
|
+
divider: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
4
24
|
declare const _default: import("vue").DefineComponent<{
|
|
5
25
|
links: {
|
|
6
26
|
type: PropType<BreadcrumbLink[]>;
|
|
7
|
-
default: () =>
|
|
27
|
+
default: () => any[];
|
|
8
28
|
};
|
|
9
29
|
divider: {
|
|
10
30
|
type: StringConstructor;
|
|
11
|
-
default: () =>
|
|
31
|
+
default: () => string;
|
|
12
32
|
};
|
|
13
33
|
class: {
|
|
14
34
|
type: PropType<any>;
|
|
15
35
|
default: () => string;
|
|
16
36
|
};
|
|
17
37
|
ui: {
|
|
18
|
-
type: PropType<
|
|
38
|
+
type: PropType<Partial<typeof config> & {
|
|
39
|
+
strategy?: Strategy;
|
|
40
|
+
}>;
|
|
19
41
|
default: () => {};
|
|
20
42
|
};
|
|
21
43
|
}, {
|
|
22
|
-
ui: import("vue").ComputedRef<
|
|
44
|
+
ui: import("vue").ComputedRef<{
|
|
45
|
+
wrapper: string;
|
|
46
|
+
ol: string;
|
|
47
|
+
li: string;
|
|
48
|
+
base: string;
|
|
49
|
+
label: string;
|
|
50
|
+
icon: {
|
|
51
|
+
base: string;
|
|
52
|
+
active: string;
|
|
53
|
+
inactive: string;
|
|
54
|
+
};
|
|
55
|
+
divider: {
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
active: string;
|
|
59
|
+
inactive: string;
|
|
60
|
+
default: {
|
|
61
|
+
divider: string;
|
|
62
|
+
};
|
|
63
|
+
}>;
|
|
23
64
|
attrs: import("vue").ComputedRef<Pick<{
|
|
24
65
|
[x: string]: unknown;
|
|
25
66
|
}, string>>;
|
|
@@ -29,23 +70,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
70
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
71
|
links: {
|
|
31
72
|
type: PropType<BreadcrumbLink[]>;
|
|
32
|
-
default: () =>
|
|
73
|
+
default: () => any[];
|
|
33
74
|
};
|
|
34
75
|
divider: {
|
|
35
76
|
type: StringConstructor;
|
|
36
|
-
default: () =>
|
|
77
|
+
default: () => string;
|
|
37
78
|
};
|
|
38
79
|
class: {
|
|
39
80
|
type: PropType<any>;
|
|
40
81
|
default: () => string;
|
|
41
82
|
};
|
|
42
83
|
ui: {
|
|
43
|
-
type: PropType<
|
|
84
|
+
type: PropType<Partial<typeof config> & {
|
|
85
|
+
strategy?: Strategy;
|
|
86
|
+
}>;
|
|
44
87
|
default: () => {};
|
|
45
88
|
};
|
|
46
89
|
}>>, {
|
|
47
90
|
class: any;
|
|
48
|
-
ui:
|
|
91
|
+
ui: {};
|
|
49
92
|
divider: string;
|
|
50
93
|
links: BreadcrumbLink[];
|
|
51
94
|
}, {}>;
|
|
@@ -205,7 +205,7 @@ export default defineComponent({
|
|
|
205
205
|
const commands = computed(() => {
|
|
206
206
|
const commands2 = [];
|
|
207
207
|
for (const group of props.groups) {
|
|
208
|
-
if (!group.search) {
|
|
208
|
+
if (!group.search && !group.static) {
|
|
209
209
|
commands2.push(...group.commands?.map((command) => ({ ...command, group: group.key })) || []);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -249,9 +249,13 @@ export default defineComponent({
|
|
|
249
249
|
const commands2 = searchResults.value[group.key] || [];
|
|
250
250
|
return getGroupWithCommands(group, [...commands2]);
|
|
251
251
|
});
|
|
252
|
+
const staticGroups = props.groups.filter((group) => group.static && group.commands?.length).map((group) => {
|
|
253
|
+
return getGroupWithCommands(group, group.commands);
|
|
254
|
+
});
|
|
252
255
|
return [
|
|
253
256
|
...groups2,
|
|
254
|
-
...searchGroups
|
|
257
|
+
...searchGroups,
|
|
258
|
+
...staticGroups
|
|
255
259
|
];
|
|
256
260
|
});
|
|
257
261
|
const debouncedSearch = useDebounceFn(async () => {
|
|
@@ -284,8 +288,7 @@ export default defineComponent({
|
|
|
284
288
|
);
|
|
285
289
|
});
|
|
286
290
|
const emptyState = computed(() => {
|
|
287
|
-
if (props.emptyState === null)
|
|
288
|
-
return null;
|
|
291
|
+
if (props.emptyState === null) return null;
|
|
289
292
|
return { ...ui.value.default.emptyState, ...props.emptyState };
|
|
290
293
|
});
|
|
291
294
|
function activateFirstOption() {
|