@nuxt/ui 2.11.0 → 2.11.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 +196 -22
- package/dist/module.d.ts +196 -22
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -3
- package/dist/runtime/components/data/Table.vue +3 -3
- package/dist/runtime/components/data/Table.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Accordion.vue +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Alert.vue +6 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +8 -7
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
- package/dist/runtime/components/elements/Chip.vue +2 -2
- package/dist/runtime/components/elements/Chip.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Dropdown.vue +5 -5
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +5 -94
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +7 -7
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Form.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +2 -2
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
- package/dist/runtime/components/forms/Input.vue +7 -7
- package/dist/runtime/components/forms/Input.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Radio.vue +7 -7
- package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
- package/dist/runtime/components/forms/RadioGroup.vue +4 -4
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Range.vue +5 -5
- package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Select.vue +7 -7
- package/dist/runtime/components/forms/Select.vue.d.ts +9 -9
- package/dist/runtime/components/forms/SelectMenu.vue +18 -18
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Textarea.vue +3 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue +9 -9
- package/dist/runtime/components/forms/Toggle.vue.d.ts +14 -14
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Divider.vue +3 -8
- package/dist/runtime/components/layout/Divider.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Breadcrumb.vue +2 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +7 -7
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
- package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Modal.vue +3 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notification.vue +7 -7
- package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notifications.vue +2 -2
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +5 -4
- package/dist/runtime/components/overlays/Popover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/useFormGroup.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.mjs +1 -1
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/breadcrumb.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +1 -1
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/utils.d.ts +4 -4
- package/dist/runtime/ui.config/data/table.d.ts +2 -2
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/alert.mjs +1 -0
- package/dist/runtime/ui.config/elements/button.d.ts +4 -0
- package/dist/runtime/ui.config/elements/button.mjs +4 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
- package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
- package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
- package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
- package/dist/runtime/ui.config/forms/input.d.ts +2 -0
- package/dist/runtime/ui.config/forms/input.mjs +2 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
- package/dist/runtime/ui.config/forms/radio.mjs +3 -0
- package/dist/runtime/ui.config/forms/select.d.ts +2 -0
- package/dist/runtime/ui.config/forms/select.mjs +1 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +6 -1
- package/dist/runtime/ui.config/forms/selectMenu.mjs +7 -2
- package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
- package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
- package/dist/runtime/ui.config/layout/divider.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +1 -1
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
- package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
- package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
- package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
- package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
- package/dist/runtime/ui.config/{_popperArrow.mjs → popper.mjs} +2 -2
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.mjs +1 -1
- package/package.json +12 -14
|
@@ -20,11 +20,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
class: {
|
|
22
22
|
type: PropType<any>;
|
|
23
|
-
default:
|
|
23
|
+
default: () => string;
|
|
24
24
|
};
|
|
25
25
|
ui: {
|
|
26
|
-
type: PropType<
|
|
27
|
-
default:
|
|
26
|
+
type: PropType<any>;
|
|
27
|
+
default: () => {};
|
|
28
28
|
};
|
|
29
29
|
}, {
|
|
30
30
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -34,8 +34,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
listRef: import("vue").Ref<HTMLElement | undefined>;
|
|
35
35
|
itemRefs: import("vue").Ref<HTMLElement[]>;
|
|
36
36
|
markerRef: import("vue").Ref<HTMLElement | undefined>;
|
|
37
|
-
selectedIndex: import("vue").Ref<number>;
|
|
38
|
-
onChange: (index:
|
|
37
|
+
selectedIndex: import("vue").Ref<number | undefined>;
|
|
38
|
+
onChange: (index: number) => void;
|
|
39
39
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
40
|
modelValue: {
|
|
41
41
|
type: NumberConstructor;
|
|
@@ -56,18 +56,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
};
|
|
57
57
|
class: {
|
|
58
58
|
type: PropType<any>;
|
|
59
|
-
default:
|
|
59
|
+
default: () => string;
|
|
60
60
|
};
|
|
61
61
|
ui: {
|
|
62
|
-
type: PropType<
|
|
63
|
-
default:
|
|
62
|
+
type: PropType<any>;
|
|
63
|
+
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
}>> & {
|
|
66
66
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
orientation: "horizontal" | "vertical";
|
|
70
|
-
ui:
|
|
70
|
+
ui: any;
|
|
71
71
|
class: any;
|
|
72
72
|
modelValue: number;
|
|
73
73
|
items: TabItem[];
|
|
@@ -8,11 +8,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
10
10
|
type: PropType<any>;
|
|
11
|
-
default:
|
|
11
|
+
default: () => string;
|
|
12
12
|
};
|
|
13
13
|
ui: {
|
|
14
|
-
type: PropType<
|
|
15
|
-
default:
|
|
14
|
+
type: PropType<any>;
|
|
15
|
+
default: () => {};
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -27,14 +27,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
class: {
|
|
29
29
|
type: PropType<any>;
|
|
30
|
-
default:
|
|
30
|
+
default: () => string;
|
|
31
31
|
};
|
|
32
32
|
ui: {
|
|
33
|
-
type: PropType<
|
|
34
|
-
default:
|
|
33
|
+
type: PropType<any>;
|
|
34
|
+
default: () => {};
|
|
35
35
|
};
|
|
36
36
|
}>>, {
|
|
37
|
-
ui:
|
|
37
|
+
ui: any;
|
|
38
38
|
class: any;
|
|
39
39
|
links: VerticalNavigationLink[];
|
|
40
40
|
}, {}>;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<div v-if="isOpen" ref="container" :class="wrapperClass" v-bind="attrs">
|
|
3
3
|
<Transition appear v-bind="ui.transition">
|
|
4
4
|
<div>
|
|
5
|
-
<div v-if="popper.arrow" data-popper-arrow :class="
|
|
5
|
+
<div v-if="popper.arrow" data-popper-arrow :class="Object.values(ui.arrow)" />
|
|
6
|
+
|
|
6
7
|
<div :class="[ui.base, ui.ring, ui.rounded, ui.shadow, ui.background]">
|
|
7
8
|
<slot />
|
|
8
9
|
</div>
|
|
@@ -39,11 +40,11 @@ export default defineComponent({
|
|
|
39
40
|
},
|
|
40
41
|
class: {
|
|
41
42
|
type: [String, Object, Array],
|
|
42
|
-
default:
|
|
43
|
+
default: () => ""
|
|
43
44
|
},
|
|
44
45
|
ui: {
|
|
45
46
|
type: Object,
|
|
46
|
-
default:
|
|
47
|
+
default: () => ({})
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
emits: ["update:modelValue", "close"],
|
|
@@ -15,11 +15,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
class: {
|
|
17
17
|
type: PropType<any>;
|
|
18
|
-
default:
|
|
18
|
+
default: () => string;
|
|
19
19
|
};
|
|
20
20
|
ui: {
|
|
21
|
-
type: PropType<
|
|
22
|
-
default:
|
|
21
|
+
type: PropType<any>;
|
|
22
|
+
default: () => {};
|
|
23
23
|
};
|
|
24
24
|
}, {
|
|
25
25
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -45,17 +45,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
};
|
|
46
46
|
class: {
|
|
47
47
|
type: PropType<any>;
|
|
48
|
-
default:
|
|
48
|
+
default: () => string;
|
|
49
49
|
};
|
|
50
50
|
ui: {
|
|
51
|
-
type: PropType<
|
|
52
|
-
default:
|
|
51
|
+
type: PropType<any>;
|
|
52
|
+
default: () => {};
|
|
53
53
|
};
|
|
54
54
|
}>> & {
|
|
55
55
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
ui:
|
|
58
|
+
ui: any;
|
|
59
59
|
popper: PopperOptions;
|
|
60
60
|
class: any;
|
|
61
61
|
modelValue: boolean;
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
ui.background,
|
|
15
15
|
ui.ring,
|
|
16
16
|
ui.shadow,
|
|
17
|
-
fullscreen ?
|
|
18
|
-
fullscreen ? 'h-screen' : ui.height,
|
|
19
|
-
fullscreen ? 'rounded-none' : ui.rounded,
|
|
20
|
-
fullscreen ? 'm-0' : ui.margin
|
|
17
|
+
fullscreen ? ui.fullscreen : [ui.width, ui.height, ui.rounded, ui.margin],
|
|
21
18
|
]"
|
|
22
19
|
>
|
|
23
20
|
<slot />
|
|
@@ -72,11 +69,11 @@ export default defineComponent({
|
|
|
72
69
|
},
|
|
73
70
|
class: {
|
|
74
71
|
type: [String, Object, Array],
|
|
75
|
-
default:
|
|
72
|
+
default: () => ""
|
|
76
73
|
},
|
|
77
74
|
ui: {
|
|
78
75
|
type: Object,
|
|
79
|
-
default:
|
|
76
|
+
default: () => ({})
|
|
80
77
|
}
|
|
81
78
|
},
|
|
82
79
|
emits: ["update:modelValue", "close"],
|
|
@@ -26,11 +26,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
};
|
|
27
27
|
class: {
|
|
28
28
|
type: PropType<any>;
|
|
29
|
-
default:
|
|
29
|
+
default: () => string;
|
|
30
30
|
};
|
|
31
31
|
ui: {
|
|
32
|
-
type: PropType<
|
|
33
|
-
default:
|
|
32
|
+
type: PropType<any>;
|
|
33
|
+
default: () => {};
|
|
34
34
|
};
|
|
35
35
|
}, {
|
|
36
36
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -67,17 +67,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
};
|
|
68
68
|
class: {
|
|
69
69
|
type: PropType<any>;
|
|
70
|
-
default:
|
|
70
|
+
default: () => string;
|
|
71
71
|
};
|
|
72
72
|
ui: {
|
|
73
|
-
type: PropType<
|
|
74
|
-
default:
|
|
73
|
+
type: PropType<any>;
|
|
74
|
+
default: () => {};
|
|
75
75
|
};
|
|
76
76
|
}>> & {
|
|
77
77
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
78
78
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
79
79
|
}, {
|
|
80
|
-
ui:
|
|
80
|
+
ui: any;
|
|
81
81
|
class: any;
|
|
82
82
|
modelValue: boolean;
|
|
83
83
|
appear: boolean;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<UIcon v-if="icon" :name="icon" :class="iconClass" />
|
|
13
13
|
<UAvatar v-if="avatar" v-bind="{ size: ui.avatar.size, ...avatar }" :class="ui.avatar.base" />
|
|
14
14
|
|
|
15
|
-
<div class="
|
|
15
|
+
<div :class="ui.inner">
|
|
16
16
|
<p :class="ui.title">
|
|
17
17
|
<slot name="title" :title="title">
|
|
18
18
|
{{ title }}
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
27
|
<div v-if="(description || $slots.description) && actions.length" :class="ui.actions">
|
|
28
|
-
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="onAction(action)" />
|
|
28
|
+
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...(ui.default.actionButton || {}), ...action }" @click.stop="onAction(action)" />
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
<div v-if="closeButton || (!description && !$slots.description && actions.length)" :class="twMerge(ui.actions, 'mt-0')">
|
|
32
32
|
<template v-if="!description && !$slots.description && actions.length">
|
|
33
|
-
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="onAction(action)" />
|
|
33
|
+
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...(ui.default.actionButton || {}), ...action }" @click.stop="onAction(action)" />
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
|
-
<UButton v-if="closeButton" aria-label="Close" v-bind="{ ...ui.default.closeButton, ...closeButton }" @click.stop="onClose" />
|
|
36
|
+
<UButton v-if="closeButton" aria-label="Close" v-bind="{ ...(ui.default.closeButton || {}), ...closeButton }" @click.stop="onClose" />
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
<div v-if="timeout" :class="progressClass" :style="progressStyle" />
|
|
@@ -107,11 +107,11 @@ export default defineComponent({
|
|
|
107
107
|
},
|
|
108
108
|
class: {
|
|
109
109
|
type: [String, Object, Array],
|
|
110
|
-
default:
|
|
110
|
+
default: () => ""
|
|
111
111
|
},
|
|
112
112
|
ui: {
|
|
113
113
|
type: Object,
|
|
114
|
-
default:
|
|
114
|
+
default: () => ({})
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
emits: ["close"],
|
|
@@ -122,7 +122,7 @@ export default defineComponent({
|
|
|
122
122
|
const wrapperClass = computed(() => {
|
|
123
123
|
return twMerge(twJoin(
|
|
124
124
|
ui.value.wrapper,
|
|
125
|
-
ui.value.background,
|
|
125
|
+
ui.value.background?.replaceAll("{color}", props.color),
|
|
126
126
|
ui.value.rounded,
|
|
127
127
|
ui.value.shadow
|
|
128
128
|
), props.class);
|
|
@@ -44,11 +44,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
class: {
|
|
46
46
|
type: PropType<any>;
|
|
47
|
-
default:
|
|
47
|
+
default: () => "";
|
|
48
48
|
};
|
|
49
49
|
ui: {
|
|
50
|
-
type: PropType<
|
|
51
|
-
default:
|
|
50
|
+
type: PropType<any>;
|
|
51
|
+
default: () => {};
|
|
52
52
|
};
|
|
53
53
|
}, {
|
|
54
54
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -110,16 +110,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
};
|
|
111
111
|
class: {
|
|
112
112
|
type: PropType<any>;
|
|
113
|
-
default:
|
|
113
|
+
default: () => "";
|
|
114
114
|
};
|
|
115
115
|
ui: {
|
|
116
|
-
type: PropType<
|
|
117
|
-
default:
|
|
116
|
+
type: PropType<any>;
|
|
117
|
+
default: () => {};
|
|
118
118
|
};
|
|
119
119
|
}>> & {
|
|
120
120
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
ui:
|
|
122
|
+
ui: any;
|
|
123
123
|
description: string;
|
|
124
124
|
icon: string;
|
|
125
125
|
avatar: Avatar;
|
|
@@ -3,11 +3,11 @@ import type { Notification } from '../../types';
|
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
class: {
|
|
5
5
|
type: PropType<any>;
|
|
6
|
-
default:
|
|
6
|
+
default: () => string;
|
|
7
7
|
};
|
|
8
8
|
ui: {
|
|
9
|
-
type: PropType<
|
|
10
|
-
default:
|
|
9
|
+
type: PropType<any>;
|
|
10
|
+
default: () => {};
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -36,14 +36,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
class: {
|
|
38
38
|
type: PropType<any>;
|
|
39
|
-
default:
|
|
39
|
+
default: () => string;
|
|
40
40
|
};
|
|
41
41
|
ui: {
|
|
42
|
-
type: PropType<
|
|
43
|
-
default:
|
|
42
|
+
type: PropType<any>;
|
|
43
|
+
default: () => {};
|
|
44
44
|
};
|
|
45
45
|
}>>, {
|
|
46
|
-
ui:
|
|
46
|
+
ui: any;
|
|
47
47
|
class: any;
|
|
48
48
|
}, {}>;
|
|
49
49
|
export default _default;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
ref="trigger"
|
|
5
5
|
as="div"
|
|
6
6
|
:disabled="disabled"
|
|
7
|
-
class="
|
|
7
|
+
:class="ui.trigger"
|
|
8
8
|
role="button"
|
|
9
9
|
@mouseover="onMouseOver"
|
|
10
10
|
>
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
<div v-if="(open !== undefined) ? open : headlessOpen" ref="container" :class="[ui.container, ui.width]" :style="containerStyle" @mouseover="onMouseOver">
|
|
23
23
|
<Transition appear v-bind="ui.transition">
|
|
24
24
|
<div>
|
|
25
|
-
<div v-if="popper.arrow" data-popper-arrow :class="
|
|
25
|
+
<div v-if="popper.arrow" data-popper-arrow :class="Object.values(ui.arrow)" />
|
|
26
|
+
|
|
26
27
|
<HPopoverPanel :class="[ui.base, ui.background, ui.ring, ui.rounded, ui.shadow]" static>
|
|
27
28
|
<slot name="panel" :open="(open !== undefined) ? open : headlessOpen" :close="close" />
|
|
28
29
|
</HPopoverPanel>
|
|
@@ -81,11 +82,11 @@ export default defineComponent({
|
|
|
81
82
|
},
|
|
82
83
|
class: {
|
|
83
84
|
type: [String, Object, Array],
|
|
84
|
-
default:
|
|
85
|
+
default: () => ""
|
|
85
86
|
},
|
|
86
87
|
ui: {
|
|
87
88
|
type: Object,
|
|
88
|
-
default:
|
|
89
|
+
default: () => ({})
|
|
89
90
|
}
|
|
90
91
|
},
|
|
91
92
|
emits: ["update:open"],
|
|
@@ -32,11 +32,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
};
|
|
33
33
|
class: {
|
|
34
34
|
type: PropType<any>;
|
|
35
|
-
default:
|
|
35
|
+
default: () => string;
|
|
36
36
|
};
|
|
37
37
|
ui: {
|
|
38
|
-
type: PropType<
|
|
39
|
-
default:
|
|
38
|
+
type: PropType<any>;
|
|
39
|
+
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
}, {
|
|
42
42
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -92,16 +92,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
92
|
};
|
|
93
93
|
class: {
|
|
94
94
|
type: PropType<any>;
|
|
95
|
-
default:
|
|
95
|
+
default: () => string;
|
|
96
96
|
};
|
|
97
97
|
ui: {
|
|
98
|
-
type: PropType<
|
|
99
|
-
default:
|
|
98
|
+
type: PropType<any>;
|
|
99
|
+
default: () => {};
|
|
100
100
|
};
|
|
101
101
|
}>> & {
|
|
102
102
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
ui:
|
|
104
|
+
ui: any;
|
|
105
105
|
popper: PopperOptions;
|
|
106
106
|
class: any;
|
|
107
107
|
disabled: boolean;
|
|
@@ -58,11 +58,11 @@ export default defineComponent({
|
|
|
58
58
|
},
|
|
59
59
|
class: {
|
|
60
60
|
type: [String, Object, Array],
|
|
61
|
-
default:
|
|
61
|
+
default: () => ""
|
|
62
62
|
},
|
|
63
63
|
ui: {
|
|
64
64
|
type: Object,
|
|
65
|
-
default:
|
|
65
|
+
default: () => ({})
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
emits: ["update:modelValue", "close"],
|
|
@@ -82,10 +82,10 @@ export default defineComponent({
|
|
|
82
82
|
}
|
|
83
83
|
return {
|
|
84
84
|
...ui.value.transition,
|
|
85
|
-
enterFrom: props.side === "left" ?
|
|
86
|
-
enterTo:
|
|
87
|
-
leaveFrom:
|
|
88
|
-
leaveTo: props.side === "left" ?
|
|
85
|
+
enterFrom: props.side === "left" ? ui.value.translate.left : ui.value.translate.right,
|
|
86
|
+
enterTo: ui.value.translate.base,
|
|
87
|
+
leaveFrom: ui.value.translate.base,
|
|
88
|
+
leaveTo: props.side === "left" ? ui.value.translate.left : ui.value.translate.right
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
91
|
function close(value) {
|
|
@@ -27,11 +27,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
class: {
|
|
29
29
|
type: PropType<any>;
|
|
30
|
-
default:
|
|
30
|
+
default: () => string;
|
|
31
31
|
};
|
|
32
32
|
ui: {
|
|
33
|
-
type: PropType<
|
|
34
|
-
default:
|
|
33
|
+
type: PropType<any>;
|
|
34
|
+
default: () => {};
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
37
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -69,17 +69,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
};
|
|
70
70
|
class: {
|
|
71
71
|
type: PropType<any>;
|
|
72
|
-
default:
|
|
72
|
+
default: () => string;
|
|
73
73
|
};
|
|
74
74
|
ui: {
|
|
75
|
-
type: PropType<
|
|
76
|
-
default:
|
|
75
|
+
type: PropType<any>;
|
|
76
|
+
default: () => {};
|
|
77
77
|
};
|
|
78
78
|
}>> & {
|
|
79
79
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
80
80
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
}, {
|
|
82
|
-
ui:
|
|
82
|
+
ui: any;
|
|
83
83
|
class: any;
|
|
84
84
|
modelValue: boolean;
|
|
85
85
|
appear: boolean;
|
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
<div v-if="open && !prevent" ref="container" :class="[ui.container, ui.width]">
|
|
8
8
|
<Transition appear v-bind="ui.transition">
|
|
9
9
|
<div>
|
|
10
|
-
<div v-if="popper.arrow" data-popper-arrow :class="
|
|
10
|
+
<div v-if="popper.arrow" data-popper-arrow :class="Object.values(ui.arrow)" />
|
|
11
11
|
|
|
12
12
|
<div :class="[ui.base, ui.background, ui.color, ui.rounded, ui.shadow, ui.ring]">
|
|
13
13
|
<slot name="text">
|
|
14
14
|
{{ text }}
|
|
15
15
|
</slot>
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
<span v-if="shortcuts?.length" :class="ui.shortcuts">
|
|
18
|
-
<span class="
|
|
18
|
+
<span :class="ui.middot">·</span>
|
|
19
|
+
|
|
19
20
|
<UKbd v-for="shortcut of shortcuts" :key="shortcut" size="xs">
|
|
20
21
|
{{ shortcut }}
|
|
21
22
|
</Ukbd>
|
|
@@ -69,11 +70,11 @@ export default defineComponent({
|
|
|
69
70
|
},
|
|
70
71
|
class: {
|
|
71
72
|
type: [String, Object, Array],
|
|
72
|
-
default:
|
|
73
|
+
default: () => ""
|
|
73
74
|
},
|
|
74
75
|
ui: {
|
|
75
76
|
type: Object,
|
|
76
|
-
default:
|
|
77
|
+
default: () => ({})
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
setup(props) {
|
|
@@ -27,11 +27,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
class: {
|
|
29
29
|
type: PropType<any>;
|
|
30
|
-
default:
|
|
30
|
+
default: () => string;
|
|
31
31
|
};
|
|
32
32
|
ui: {
|
|
33
|
-
type: PropType<
|
|
34
|
-
default:
|
|
33
|
+
type: PropType<any>;
|
|
34
|
+
default: () => {};
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
37
|
ui: import("vue").ComputedRef<any>;
|
|
@@ -71,14 +71,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
};
|
|
72
72
|
class: {
|
|
73
73
|
type: PropType<any>;
|
|
74
|
-
default:
|
|
74
|
+
default: () => string;
|
|
75
75
|
};
|
|
76
76
|
ui: {
|
|
77
|
-
type: PropType<
|
|
78
|
-
default:
|
|
77
|
+
type: PropType<any>;
|
|
78
|
+
default: () => {};
|
|
79
79
|
};
|
|
80
80
|
}>>, {
|
|
81
|
-
ui:
|
|
81
|
+
ui: any;
|
|
82
82
|
popper: PopperOptions;
|
|
83
83
|
class: any;
|
|
84
84
|
text: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
type InputProps = {
|
|
2
|
-
id?: string
|
|
2
|
+
id?: string;
|
|
3
3
|
size?: string | number | symbol;
|
|
4
4
|
color?: string;
|
|
5
5
|
name?: string;
|
|
6
|
-
isFieldset?: boolean;
|
|
7
6
|
eagerValidation?: boolean;
|
|
7
|
+
legend?: string | null;
|
|
8
8
|
};
|
|
9
9
|
export declare const useFormGroup: (inputProps?: InputProps, config?: any) => {
|
|
10
|
-
inputId: import("vue").Ref<string |
|
|
10
|
+
inputId: import("vue").Ref<string | undefined>;
|
|
11
11
|
name: import("vue").ComputedRef<string | undefined>;
|
|
12
12
|
size: import("vue").ComputedRef<any>;
|
|
13
13
|
color: import("vue").ComputedRef<string | undefined>;
|
|
@@ -7,7 +7,7 @@ export const useFormGroup = (inputProps, config) => {
|
|
|
7
7
|
const formInputs = inject("form-inputs", void 0);
|
|
8
8
|
const inputId = ref(inputProps?.id);
|
|
9
9
|
onMounted(() => {
|
|
10
|
-
inputId.value = inputProps?.
|
|
10
|
+
inputId.value = inputProps?.legend === null || inputProps.legend ? void 0 : inputProps?.id ?? uid();
|
|
11
11
|
if (formGroup) {
|
|
12
12
|
formGroup.inputId.value = inputId.value;
|
|
13
13
|
if (formInputs) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { Strategy } from '../types';
|
|
3
|
-
export declare const useUI: <T>(key: any, $ui
|
|
4
|
-
strategy
|
|
5
|
-
}> | undefined
|
|
3
|
+
export declare const useUI: <T>(key: any, $ui?: Ref<(Partial<T> & {
|
|
4
|
+
strategy?: Strategy | undefined;
|
|
5
|
+
}) | undefined> | undefined, $config?: T | Ref<T> | undefined, $wrapperClass?: Ref<string>, withAppConfig?: boolean) => {
|
|
6
6
|
ui: import("vue").ComputedRef<T>;
|
|
7
7
|
attrs: import("vue").ComputedRef<Pick<{
|
|
8
8
|
[x: string]: unknown;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Placement, PositioningStrategy } from '@popperjs/core'
|
|
2
2
|
|
|
3
3
|
export interface PopperOptions {
|
|
4
|
+
// Workaround for weak types: https://mariusschulz.com/blog/weak-type-detection-in-typescript#workarounds-for-weak-types
|
|
5
|
+
[key: string]: unknown
|
|
4
6
|
locked?: boolean
|
|
5
7
|
overflowPadding?: number
|
|
6
8
|
offsetDistance?: number
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Strategy = 'merge' | 'override'
|
|
2
2
|
|
|
3
|
-
export type NestedKeyOf<ObjectType extends
|
|
4
|
-
[Key in keyof ObjectType]: ObjectType[Key] extends
|
|
3
|
+
export type NestedKeyOf<ObjectType extends Record<string, any>> = {
|
|
4
|
+
[Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any>
|
|
5
5
|
? NestedKeyOf<ObjectType[Key]>
|
|
6
6
|
: Key
|
|
7
7
|
}[keyof ObjectType]
|
|
@@ -20,9 +20,9 @@ type DeepKey<T, Keys extends string[]> =
|
|
|
20
20
|
: T
|
|
21
21
|
|
|
22
22
|
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
23
|
-
? Result extends
|
|
23
|
+
? Result extends Record<string, any> ? keyof Result : never
|
|
24
24
|
: never
|
|
25
25
|
|
|
26
26
|
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
27
|
-
? Result extends
|
|
27
|
+
? Result extends Record<string, any> ? Result : never
|
|
28
28
|
: never
|