@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,5 +1,54 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Avatar, Button, NotificationAction } from '../../types';
|
|
2
|
+
import type { Avatar, Button, NotificationColor, NotificationAction, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
container: string;
|
|
6
|
+
inner: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
actions: string;
|
|
10
|
+
background: string;
|
|
11
|
+
shadow: string;
|
|
12
|
+
rounded: string;
|
|
13
|
+
padding: string;
|
|
14
|
+
gap: string;
|
|
15
|
+
ring: string;
|
|
16
|
+
icon: {
|
|
17
|
+
base: string;
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
avatar: {
|
|
21
|
+
base: string;
|
|
22
|
+
size: "md";
|
|
23
|
+
};
|
|
24
|
+
progress: {
|
|
25
|
+
base: string;
|
|
26
|
+
background: string;
|
|
27
|
+
};
|
|
28
|
+
transition: {
|
|
29
|
+
enterActiveClass: string;
|
|
30
|
+
enterFromClass: string;
|
|
31
|
+
enterToClass: string;
|
|
32
|
+
leaveActiveClass: string;
|
|
33
|
+
leaveFromClass: string;
|
|
34
|
+
leaveToClass: string;
|
|
35
|
+
};
|
|
36
|
+
default: {
|
|
37
|
+
color: string;
|
|
38
|
+
icon: any;
|
|
39
|
+
timeout: number;
|
|
40
|
+
closeButton: {
|
|
41
|
+
icon: string;
|
|
42
|
+
color: "gray";
|
|
43
|
+
variant: "link";
|
|
44
|
+
padded: boolean;
|
|
45
|
+
};
|
|
46
|
+
actionButton: {
|
|
47
|
+
size: "xs";
|
|
48
|
+
color: "white";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
3
52
|
declare const _default: import("vue").DefineComponent<{
|
|
4
53
|
id: {
|
|
5
54
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -7,11 +56,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
56
|
};
|
|
8
57
|
title: {
|
|
9
58
|
type: StringConstructor;
|
|
10
|
-
default:
|
|
59
|
+
default: any;
|
|
11
60
|
};
|
|
12
61
|
description: {
|
|
13
62
|
type: StringConstructor;
|
|
14
|
-
default:
|
|
63
|
+
default: any;
|
|
15
64
|
};
|
|
16
65
|
icon: {
|
|
17
66
|
type: StringConstructor;
|
|
@@ -19,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
68
|
};
|
|
20
69
|
avatar: {
|
|
21
70
|
type: PropType<Avatar>;
|
|
22
|
-
default:
|
|
71
|
+
default: any;
|
|
23
72
|
};
|
|
24
73
|
closeButton: {
|
|
25
74
|
type: PropType<Button>;
|
|
@@ -27,19 +76,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
76
|
};
|
|
28
77
|
timeout: {
|
|
29
78
|
type: NumberConstructor;
|
|
30
|
-
default: () =>
|
|
79
|
+
default: () => number;
|
|
31
80
|
};
|
|
32
81
|
actions: {
|
|
33
82
|
type: PropType<NotificationAction[]>;
|
|
34
|
-
default: () =>
|
|
83
|
+
default: () => any[];
|
|
35
84
|
};
|
|
36
85
|
callback: {
|
|
37
86
|
type: FunctionConstructor;
|
|
38
|
-
default:
|
|
87
|
+
default: any;
|
|
39
88
|
};
|
|
40
89
|
color: {
|
|
41
|
-
type: PropType<
|
|
42
|
-
default: () =>
|
|
90
|
+
type: PropType<NotificationColor>;
|
|
91
|
+
default: () => string;
|
|
43
92
|
validator(value: string): boolean;
|
|
44
93
|
};
|
|
45
94
|
class: {
|
|
@@ -47,11 +96,61 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
96
|
default: () => "";
|
|
48
97
|
};
|
|
49
98
|
ui: {
|
|
50
|
-
type: PropType<
|
|
99
|
+
type: PropType<Partial<typeof config> & {
|
|
100
|
+
strategy?: Strategy;
|
|
101
|
+
}>;
|
|
51
102
|
default: () => {};
|
|
52
103
|
};
|
|
53
104
|
}, {
|
|
54
|
-
ui: import("vue").ComputedRef<
|
|
105
|
+
ui: import("vue").ComputedRef<{
|
|
106
|
+
wrapper: string;
|
|
107
|
+
container: string;
|
|
108
|
+
inner: string;
|
|
109
|
+
title: string;
|
|
110
|
+
description: string;
|
|
111
|
+
actions: string;
|
|
112
|
+
background: string;
|
|
113
|
+
shadow: string;
|
|
114
|
+
rounded: string;
|
|
115
|
+
padding: string;
|
|
116
|
+
gap: string;
|
|
117
|
+
ring: string;
|
|
118
|
+
icon: {
|
|
119
|
+
base: string;
|
|
120
|
+
color: string;
|
|
121
|
+
};
|
|
122
|
+
avatar: {
|
|
123
|
+
base: string;
|
|
124
|
+
size: "md";
|
|
125
|
+
};
|
|
126
|
+
progress: {
|
|
127
|
+
base: string;
|
|
128
|
+
background: string;
|
|
129
|
+
};
|
|
130
|
+
transition: {
|
|
131
|
+
enterActiveClass: string;
|
|
132
|
+
enterFromClass: string;
|
|
133
|
+
enterToClass: string;
|
|
134
|
+
leaveActiveClass: string;
|
|
135
|
+
leaveFromClass: string;
|
|
136
|
+
leaveToClass: string;
|
|
137
|
+
};
|
|
138
|
+
default: {
|
|
139
|
+
color: string;
|
|
140
|
+
icon: any;
|
|
141
|
+
timeout: number;
|
|
142
|
+
closeButton: {
|
|
143
|
+
icon: string;
|
|
144
|
+
color: "gray";
|
|
145
|
+
variant: "link";
|
|
146
|
+
padded: boolean;
|
|
147
|
+
};
|
|
148
|
+
actionButton: {
|
|
149
|
+
size: "xs";
|
|
150
|
+
color: "white";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
}>;
|
|
55
154
|
attrs: import("vue").ComputedRef<Pick<{
|
|
56
155
|
[x: string]: unknown;
|
|
57
156
|
}, string>>;
|
|
@@ -73,11 +172,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
172
|
};
|
|
74
173
|
title: {
|
|
75
174
|
type: StringConstructor;
|
|
76
|
-
default:
|
|
175
|
+
default: any;
|
|
77
176
|
};
|
|
78
177
|
description: {
|
|
79
178
|
type: StringConstructor;
|
|
80
|
-
default:
|
|
179
|
+
default: any;
|
|
81
180
|
};
|
|
82
181
|
icon: {
|
|
83
182
|
type: StringConstructor;
|
|
@@ -85,7 +184,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
184
|
};
|
|
86
185
|
avatar: {
|
|
87
186
|
type: PropType<Avatar>;
|
|
88
|
-
default:
|
|
187
|
+
default: any;
|
|
89
188
|
};
|
|
90
189
|
closeButton: {
|
|
91
190
|
type: PropType<Button>;
|
|
@@ -93,19 +192,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
192
|
};
|
|
94
193
|
timeout: {
|
|
95
194
|
type: NumberConstructor;
|
|
96
|
-
default: () =>
|
|
195
|
+
default: () => number;
|
|
97
196
|
};
|
|
98
197
|
actions: {
|
|
99
198
|
type: PropType<NotificationAction[]>;
|
|
100
|
-
default: () =>
|
|
199
|
+
default: () => any[];
|
|
101
200
|
};
|
|
102
201
|
callback: {
|
|
103
202
|
type: FunctionConstructor;
|
|
104
|
-
default:
|
|
203
|
+
default: any;
|
|
105
204
|
};
|
|
106
205
|
color: {
|
|
107
|
-
type: PropType<
|
|
108
|
-
default: () =>
|
|
206
|
+
type: PropType<NotificationColor>;
|
|
207
|
+
default: () => string;
|
|
109
208
|
validator(value: string): boolean;
|
|
110
209
|
};
|
|
111
210
|
class: {
|
|
@@ -113,22 +212,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
212
|
default: () => "";
|
|
114
213
|
};
|
|
115
214
|
ui: {
|
|
116
|
-
type: PropType<
|
|
215
|
+
type: PropType<Partial<typeof config> & {
|
|
216
|
+
strategy?: Strategy;
|
|
217
|
+
}>;
|
|
117
218
|
default: () => {};
|
|
118
219
|
};
|
|
119
220
|
}>> & {
|
|
120
|
-
onClose?: (
|
|
221
|
+
onClose?: (...args: any[]) => any;
|
|
121
222
|
}, {
|
|
122
|
-
title: string;
|
|
123
223
|
class: any;
|
|
124
|
-
|
|
125
|
-
color:
|
|
126
|
-
|
|
224
|
+
ui: {};
|
|
225
|
+
color: NotificationColor;
|
|
226
|
+
avatar: any;
|
|
127
227
|
icon: string;
|
|
228
|
+
title: string;
|
|
128
229
|
description: string;
|
|
129
230
|
closeButton: Button;
|
|
130
|
-
actions: NotificationAction[];
|
|
131
231
|
timeout: number;
|
|
232
|
+
actions: NotificationAction[];
|
|
132
233
|
callback: Function;
|
|
133
234
|
}, {}>;
|
|
134
235
|
export default _default;
|
|
@@ -1,39 +1,52 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Notification } from '../../types';
|
|
2
|
+
import type { Notification, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
position: string;
|
|
6
|
+
width: string;
|
|
7
|
+
container: string;
|
|
8
|
+
};
|
|
3
9
|
declare const _default: import("vue").DefineComponent<{
|
|
4
10
|
class: {
|
|
5
11
|
type: PropType<any>;
|
|
6
12
|
default: () => string;
|
|
7
13
|
};
|
|
8
14
|
ui: {
|
|
9
|
-
type: PropType<
|
|
15
|
+
type: PropType<Partial<typeof config> & {
|
|
16
|
+
strategy?: Strategy;
|
|
17
|
+
}>;
|
|
10
18
|
default: () => {};
|
|
11
19
|
};
|
|
12
20
|
}, {
|
|
13
|
-
ui: import("vue").ComputedRef<
|
|
21
|
+
ui: import("vue").ComputedRef<{
|
|
22
|
+
wrapper: string;
|
|
23
|
+
position: string;
|
|
24
|
+
width: string;
|
|
25
|
+
container: string;
|
|
26
|
+
}>;
|
|
14
27
|
attrs: import("vue").ComputedRef<Pick<{
|
|
15
28
|
[x: string]: unknown;
|
|
16
29
|
}, string>>;
|
|
17
30
|
toast: {
|
|
18
31
|
add: (notification: Partial<Notification>) => {
|
|
19
32
|
id: string;
|
|
20
|
-
title?: string
|
|
21
|
-
description?: string
|
|
22
|
-
icon?: string
|
|
23
|
-
avatar?: import("../../types").Avatar
|
|
24
|
-
closeButton?: import("../../types").Button
|
|
25
|
-
timeout?: number
|
|
26
|
-
actions?: import("../../types").NotificationAction[]
|
|
27
|
-
click?:
|
|
28
|
-
callback?:
|
|
29
|
-
color?:
|
|
33
|
+
title?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
icon?: string;
|
|
36
|
+
avatar?: import("../../types").Avatar;
|
|
37
|
+
closeButton?: import("../../types").Button;
|
|
38
|
+
timeout?: number;
|
|
39
|
+
actions?: import("../../types").NotificationAction[];
|
|
40
|
+
click?: (...args: any[]) => void;
|
|
41
|
+
callback?: (...args: any[]) => void;
|
|
42
|
+
color?: import("../../types").NotificationColor;
|
|
30
43
|
ui?: any;
|
|
31
44
|
};
|
|
32
45
|
remove: (id: string) => void;
|
|
33
46
|
update: (id: string, notification: Partial<Notification>) => void;
|
|
34
47
|
clear: () => void;
|
|
35
48
|
};
|
|
36
|
-
notifications:
|
|
49
|
+
notifications: import("vue").Ref<Notification[]>;
|
|
37
50
|
wrapperClass: import("vue").ComputedRef<string>;
|
|
38
51
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
52
|
class: {
|
|
@@ -41,11 +54,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
54
|
default: () => string;
|
|
42
55
|
};
|
|
43
56
|
ui: {
|
|
44
|
-
type: PropType<
|
|
57
|
+
type: PropType<Partial<typeof config> & {
|
|
58
|
+
strategy?: Strategy;
|
|
59
|
+
}>;
|
|
45
60
|
default: () => {};
|
|
46
61
|
};
|
|
47
62
|
}>>, {
|
|
48
63
|
class: any;
|
|
49
|
-
ui:
|
|
64
|
+
ui: {};
|
|
50
65
|
}, {}>;
|
|
51
66
|
export default _default;
|
|
@@ -181,10 +181,8 @@ export default defineComponent({
|
|
|
181
181
|
}, props.closeDelay);
|
|
182
182
|
}
|
|
183
183
|
watch(() => props.open, (newValue, oldValue) => {
|
|
184
|
-
if (!popoverApi.value)
|
|
185
|
-
|
|
186
|
-
if (oldValue === void 0 || newValue === oldValue)
|
|
187
|
-
return;
|
|
184
|
+
if (!popoverApi.value) return;
|
|
185
|
+
if (oldValue === void 0 || newValue === oldValue) return;
|
|
188
186
|
if (newValue) {
|
|
189
187
|
popoverApi.value.popoverState = 0;
|
|
190
188
|
} else {
|
|
@@ -192,8 +190,7 @@ export default defineComponent({
|
|
|
192
190
|
}
|
|
193
191
|
});
|
|
194
192
|
watch(() => popoverApi.value?.popoverState, (newValue, oldValue) => {
|
|
195
|
-
if (oldValue === void 0 || newValue === oldValue)
|
|
196
|
-
return;
|
|
193
|
+
if (oldValue === void 0 || newValue === oldValue) return;
|
|
197
194
|
emit("update:open", newValue === 0);
|
|
198
195
|
});
|
|
199
196
|
provideUseId(() => useId());
|
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { PopperOptions } from '../../types';
|
|
2
|
+
import type { PopperOptions, Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
container: string;
|
|
6
|
+
trigger: string;
|
|
7
|
+
width: string;
|
|
8
|
+
background: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
ring: string;
|
|
12
|
+
base: string;
|
|
13
|
+
transition: {
|
|
14
|
+
enterActiveClass: string;
|
|
15
|
+
enterFromClass: string;
|
|
16
|
+
enterToClass: string;
|
|
17
|
+
leaveActiveClass: string;
|
|
18
|
+
leaveFromClass: string;
|
|
19
|
+
leaveToClass: string;
|
|
20
|
+
};
|
|
21
|
+
overlay: {
|
|
22
|
+
base: string;
|
|
23
|
+
background: string;
|
|
24
|
+
transition: {
|
|
25
|
+
enterActiveClass: string;
|
|
26
|
+
enterFromClass: string;
|
|
27
|
+
enterToClass: string;
|
|
28
|
+
leaveActiveClass: string;
|
|
29
|
+
leaveFromClass: string;
|
|
30
|
+
leaveToClass: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
popper: {
|
|
34
|
+
strategy: string;
|
|
35
|
+
};
|
|
36
|
+
default: {
|
|
37
|
+
openDelay: number;
|
|
38
|
+
closeDelay: number;
|
|
39
|
+
};
|
|
40
|
+
arrow: {
|
|
41
|
+
base: string;
|
|
42
|
+
ring: string;
|
|
43
|
+
rounded: string;
|
|
44
|
+
background: string;
|
|
45
|
+
shadow: string;
|
|
46
|
+
placement: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
3
49
|
declare const _default: import("vue").DefineComponent<{
|
|
4
50
|
mode: {
|
|
5
51
|
type: PropType<"click" | "hover">;
|
|
@@ -8,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
54
|
};
|
|
9
55
|
open: {
|
|
10
56
|
type: BooleanConstructor;
|
|
11
|
-
default:
|
|
57
|
+
default: any;
|
|
12
58
|
};
|
|
13
59
|
disabled: {
|
|
14
60
|
type: BooleanConstructor;
|
|
@@ -16,11 +62,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
62
|
};
|
|
17
63
|
openDelay: {
|
|
18
64
|
type: NumberConstructor;
|
|
19
|
-
default: () =>
|
|
65
|
+
default: () => number;
|
|
20
66
|
};
|
|
21
67
|
closeDelay: {
|
|
22
68
|
type: NumberConstructor;
|
|
23
|
-
default: () =>
|
|
69
|
+
default: () => number;
|
|
24
70
|
};
|
|
25
71
|
overlay: {
|
|
26
72
|
type: BooleanConstructor;
|
|
@@ -35,11 +81,58 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
81
|
default: () => string;
|
|
36
82
|
};
|
|
37
83
|
ui: {
|
|
38
|
-
type: PropType<
|
|
84
|
+
type: PropType<Partial<typeof config> & {
|
|
85
|
+
strategy?: Strategy;
|
|
86
|
+
}>;
|
|
39
87
|
default: () => {};
|
|
40
88
|
};
|
|
41
89
|
}, {
|
|
42
|
-
ui: import("vue").ComputedRef<
|
|
90
|
+
ui: import("vue").ComputedRef<{
|
|
91
|
+
wrapper: string;
|
|
92
|
+
container: string;
|
|
93
|
+
trigger: string;
|
|
94
|
+
width: string;
|
|
95
|
+
background: string;
|
|
96
|
+
shadow: string;
|
|
97
|
+
rounded: string;
|
|
98
|
+
ring: string;
|
|
99
|
+
base: string;
|
|
100
|
+
transition: {
|
|
101
|
+
enterActiveClass: string;
|
|
102
|
+
enterFromClass: string;
|
|
103
|
+
enterToClass: string;
|
|
104
|
+
leaveActiveClass: string;
|
|
105
|
+
leaveFromClass: string;
|
|
106
|
+
leaveToClass: string;
|
|
107
|
+
};
|
|
108
|
+
overlay: {
|
|
109
|
+
base: string;
|
|
110
|
+
background: string;
|
|
111
|
+
transition: {
|
|
112
|
+
enterActiveClass: string;
|
|
113
|
+
enterFromClass: string;
|
|
114
|
+
enterToClass: string;
|
|
115
|
+
leaveActiveClass: string;
|
|
116
|
+
leaveFromClass: string;
|
|
117
|
+
leaveToClass: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
popper: {
|
|
121
|
+
strategy: string;
|
|
122
|
+
};
|
|
123
|
+
default: {
|
|
124
|
+
openDelay: number;
|
|
125
|
+
closeDelay: number;
|
|
126
|
+
};
|
|
127
|
+
arrow: {
|
|
128
|
+
base: string;
|
|
129
|
+
ring: string;
|
|
130
|
+
rounded: string;
|
|
131
|
+
background: string;
|
|
132
|
+
shadow: string;
|
|
133
|
+
placement: string;
|
|
134
|
+
};
|
|
135
|
+
}>;
|
|
43
136
|
attrs: import("vue").ComputedRef<Pick<{
|
|
44
137
|
[x: string]: unknown;
|
|
45
138
|
}, string>>;
|
|
@@ -79,7 +172,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
172
|
};
|
|
80
173
|
open: {
|
|
81
174
|
type: BooleanConstructor;
|
|
82
|
-
default:
|
|
175
|
+
default: any;
|
|
83
176
|
};
|
|
84
177
|
disabled: {
|
|
85
178
|
type: BooleanConstructor;
|
|
@@ -87,11 +180,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
180
|
};
|
|
88
181
|
openDelay: {
|
|
89
182
|
type: NumberConstructor;
|
|
90
|
-
default: () =>
|
|
183
|
+
default: () => number;
|
|
91
184
|
};
|
|
92
185
|
closeDelay: {
|
|
93
186
|
type: NumberConstructor;
|
|
94
|
-
default: () =>
|
|
187
|
+
default: () => number;
|
|
95
188
|
};
|
|
96
189
|
overlay: {
|
|
97
190
|
type: BooleanConstructor;
|
|
@@ -106,20 +199,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
199
|
default: () => string;
|
|
107
200
|
};
|
|
108
201
|
ui: {
|
|
109
|
-
type: PropType<
|
|
202
|
+
type: PropType<Partial<typeof config> & {
|
|
203
|
+
strategy?: Strategy;
|
|
204
|
+
}>;
|
|
110
205
|
default: () => {};
|
|
111
206
|
};
|
|
112
207
|
}>> & {
|
|
113
|
-
"onUpdate:open"?: (
|
|
208
|
+
"onUpdate:open"?: (...args: any[]) => any;
|
|
114
209
|
}, {
|
|
210
|
+
mode: "click" | "hover";
|
|
115
211
|
class: any;
|
|
116
|
-
popper: PopperOptions;
|
|
117
212
|
disabled: boolean;
|
|
118
|
-
ui:
|
|
213
|
+
ui: {};
|
|
214
|
+
popper: PopperOptions;
|
|
215
|
+
overlay: boolean;
|
|
119
216
|
open: boolean;
|
|
120
|
-
mode: "click" | "hover";
|
|
121
217
|
openDelay: number;
|
|
122
218
|
closeDelay: number;
|
|
123
|
-
overlay: boolean;
|
|
124
219
|
}, {}>;
|
|
125
220
|
export default _default;
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
import type { WritableComputedRef, PropType } from 'vue';
|
|
2
|
+
import type { Strategy } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
overlay: {
|
|
6
|
+
base: string;
|
|
7
|
+
background: string;
|
|
8
|
+
transition: {
|
|
9
|
+
enter: string;
|
|
10
|
+
enterFrom: string;
|
|
11
|
+
enterTo: string;
|
|
12
|
+
leave: string;
|
|
13
|
+
leaveFrom: string;
|
|
14
|
+
leaveTo: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
base: string;
|
|
18
|
+
background: string;
|
|
19
|
+
ring: string;
|
|
20
|
+
rounded: string;
|
|
21
|
+
padding: string;
|
|
22
|
+
shadow: string;
|
|
23
|
+
width: string;
|
|
24
|
+
height: string;
|
|
25
|
+
translate: {
|
|
26
|
+
base: string;
|
|
27
|
+
left: string;
|
|
28
|
+
right: string;
|
|
29
|
+
top: string;
|
|
30
|
+
bottom: string;
|
|
31
|
+
};
|
|
32
|
+
transition: {
|
|
33
|
+
enter: string;
|
|
34
|
+
leave: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
2
37
|
declare const _default: import("vue").DefineComponent<{
|
|
3
38
|
modelValue: {
|
|
4
39
|
type: PropType<boolean>;
|
|
@@ -9,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
44
|
default: boolean;
|
|
10
45
|
};
|
|
11
46
|
side: {
|
|
12
|
-
type: PropType<"
|
|
47
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
13
48
|
default: string;
|
|
14
49
|
validator: (value: string) => boolean;
|
|
15
50
|
};
|
|
@@ -30,20 +65,55 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
65
|
default: () => string;
|
|
31
66
|
};
|
|
32
67
|
ui: {
|
|
33
|
-
type: PropType<
|
|
68
|
+
type: PropType<Partial<typeof config> & {
|
|
69
|
+
strategy?: Strategy;
|
|
70
|
+
}>;
|
|
34
71
|
default: () => {};
|
|
35
72
|
};
|
|
36
73
|
}, {
|
|
37
|
-
ui: import("vue").ComputedRef<
|
|
74
|
+
ui: import("vue").ComputedRef<{
|
|
75
|
+
wrapper: string;
|
|
76
|
+
overlay: {
|
|
77
|
+
base: string;
|
|
78
|
+
background: string;
|
|
79
|
+
transition: {
|
|
80
|
+
enter: string;
|
|
81
|
+
enterFrom: string;
|
|
82
|
+
enterTo: string;
|
|
83
|
+
leave: string;
|
|
84
|
+
leaveFrom: string;
|
|
85
|
+
leaveTo: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
base: string;
|
|
89
|
+
background: string;
|
|
90
|
+
ring: string;
|
|
91
|
+
rounded: string;
|
|
92
|
+
padding: string;
|
|
93
|
+
shadow: string;
|
|
94
|
+
width: string;
|
|
95
|
+
height: string;
|
|
96
|
+
translate: {
|
|
97
|
+
base: string;
|
|
98
|
+
left: string;
|
|
99
|
+
right: string;
|
|
100
|
+
top: string;
|
|
101
|
+
bottom: string;
|
|
102
|
+
};
|
|
103
|
+
transition: {
|
|
104
|
+
enter: string;
|
|
105
|
+
leave: string;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
38
108
|
attrs: import("vue").ComputedRef<Pick<{
|
|
39
109
|
[x: string]: unknown;
|
|
40
110
|
}, string>>;
|
|
41
111
|
isOpen: WritableComputedRef<boolean>;
|
|
42
|
-
transitionClass: import("vue").ComputedRef<
|
|
112
|
+
transitionClass: import("vue").ComputedRef<{}>;
|
|
43
113
|
sideType: import("vue").ComputedRef<"right" | "horizontal" | "vertical">;
|
|
44
114
|
onAfterLeave: () => void;
|
|
45
115
|
close: (value: boolean) => void;
|
|
46
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
116
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue" | "close-prevented" | "after-leave")[], "close" | "update:modelValue" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
117
|
modelValue: {
|
|
48
118
|
type: PropType<boolean>;
|
|
49
119
|
default: boolean;
|
|
@@ -53,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
123
|
default: boolean;
|
|
54
124
|
};
|
|
55
125
|
side: {
|
|
56
|
-
type: PropType<"
|
|
126
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
57
127
|
default: string;
|
|
58
128
|
validator: (value: string) => boolean;
|
|
59
129
|
};
|
|
@@ -74,22 +144,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
144
|
default: () => string;
|
|
75
145
|
};
|
|
76
146
|
ui: {
|
|
77
|
-
type: PropType<
|
|
147
|
+
type: PropType<Partial<typeof config> & {
|
|
148
|
+
strategy?: Strategy;
|
|
149
|
+
}>;
|
|
78
150
|
default: () => {};
|
|
79
151
|
};
|
|
80
152
|
}>> & {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"onClose-prevented"?: (
|
|
84
|
-
"onAfter-leave"?: (
|
|
153
|
+
onClose?: (...args: any[]) => any;
|
|
154
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
155
|
+
"onClose-prevented"?: (...args: any[]) => any;
|
|
156
|
+
"onAfter-leave"?: (...args: any[]) => any;
|
|
85
157
|
}, {
|
|
86
158
|
class: any;
|
|
159
|
+
ui: {};
|
|
87
160
|
transition: boolean;
|
|
88
|
-
ui: any;
|
|
89
|
-
modelValue: boolean;
|
|
90
161
|
appear: boolean;
|
|
91
162
|
overlay: boolean;
|
|
92
163
|
preventClose: boolean;
|
|
93
|
-
side: "
|
|
164
|
+
side: "right" | "left" | "top" | "bottom";
|
|
165
|
+
modelValue: boolean;
|
|
94
166
|
}, {}>;
|
|
95
167
|
export default _default;
|