vlite3 1.2.2 → 1.2.5
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/README.md +18 -7
- package/components/AppShell/AppShellLayoutDashboard.vue.js +1 -1
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +1 -1
- package/components/AsyncSelect/createAsyncSelect.d.ts +88 -0
- package/components/AsyncSelect/createAsyncSelect.js +156 -0
- package/components/AsyncSelect/index.d.ts +1 -0
- package/components/AvatarGroup/AvatarGroup.vue.js +10 -9
- package/components/Beacon.vue.d.ts +13 -0
- package/components/CategoryManager/CategoryManager.vue.js +1 -1
- package/components/ChoiceBox/ChoiceBox.vue.js +4 -2
- package/components/{CopyButton.vue.d.ts → Clipboard.vue.d.ts} +4 -3
- package/components/{CopyButton.vue.js → Clipboard.vue.js} +19 -19
- package/components/Clipboard.vue2.js +4 -0
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/DataTable/types.d.ts +1 -1
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +1 -1
- package/components/List/ListFieldRow.vue.js +221 -144
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +92 -86
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Persona.vue.d.ts +25 -0
- package/components/Price/Price.vue.d.ts +1 -1
- package/components/Price/Price.vue.js +35 -13
- package/components/Rating/Rating.vue.d.ts +43 -0
- package/components/Rating/Rating.vue.js +7 -0
- package/components/Rating/Rating.vue2.js +92 -0
- package/components/Rating/ReviewSummary.vue.d.ts +5 -0
- package/components/Rating/ReviewSummary.vue.js +67 -0
- package/components/Rating/ReviewSummary.vue2.js +4 -0
- package/components/Rating/index.d.ts +3 -0
- package/components/Rating/types.d.ts +28 -0
- package/components/Screen/Screen.vue.d.ts +2 -2
- package/components/Screen/Screen.vue.js +3 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/SidePanel.vue.js +3 -3
- package/components/SidePanel.vue2.js +44 -56
- package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
- package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +3 -1
- package/components/SidebarMenu/SidebarMenuItem.vue.js +197 -178
- package/components/Stats/StatItem.vue.js +222 -164
- package/components/Stats/components/StatIconBox.vue.js +42 -42
- package/components/Stats/components/StatTrend.vue.js +20 -20
- package/components/ThemeToggle.vue.js +10 -10
- package/components/Timeline/Timeline.vue.js +21 -11
- package/components/Timeline/TimelineItem.vue.js +1 -1
- package/components/index.d.ts +2 -0
- package/index.d.ts +3 -1
- package/index.js +113 -107
- package/package.json +2 -1
- package/style.css +47 -32
- package/utils/status.js +16 -16
- package/components/CopyButton.vue2.js +0 -4
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, ref as N, inject as P, computed as f, markRaw as D, watch as h, onMounted as L, onUnmounted as V, openBlock as l, createElementBlock as i, Fragment as j, createElementVNode as y, mergeProps as w, withModifiers as K, renderSlot as c, createCommentVNode as a, createBlock as g, Teleport as M, normalizeClass as m, createVNode as F, Transition as R, withCtx as U, toDisplayString as $, resolveDynamicComponent as q } from "vue";
|
|
2
2
|
import G from "./Button.vue.js";
|
|
3
3
|
import { useKeyStroke as H } from "../composables/useKeyStroke.js";
|
|
4
|
-
import { $t as
|
|
4
|
+
import { $t as k } from "../utils/i18n.js";
|
|
5
5
|
const J = ["data-testid"], Q = ["data-testid"], W = { class: "text-lg font-bold text-foreground" }, X = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "mt-1 text-sm text-muted-foreground"
|
|
8
|
-
}, te = /* @__PURE__ */
|
|
8
|
+
}, te = /* @__PURE__ */ E({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "SidePanel",
|
|
11
11
|
props: {
|
|
@@ -29,91 +29,79 @@ const J = ["data-testid"], Q = ["data-testid"], W = { class: "text-lg font-bold
|
|
|
29
29
|
bodyProps: {}
|
|
30
30
|
},
|
|
31
31
|
emits: ["close", "update:show", "onOpen", "onAfterOpen", "onAfterClose"],
|
|
32
|
-
setup(o, { emit:
|
|
33
|
-
const t = o, v =
|
|
32
|
+
setup(o, { emit: x }) {
|
|
33
|
+
const t = o, v = x, s = N(t.show);
|
|
34
34
|
let u = null;
|
|
35
|
-
const
|
|
35
|
+
const r = P("dropdown-context", null), b = f(() => t.body ? D(t.body) : void 0);
|
|
36
36
|
h(
|
|
37
37
|
() => t.show,
|
|
38
38
|
(e) => {
|
|
39
|
-
s.value = e, e && (v("onOpen"),
|
|
39
|
+
s.value = e, e && (v("onOpen"), r?.close());
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
|
-
const
|
|
43
|
-
s.value = !0,
|
|
42
|
+
const B = () => {
|
|
43
|
+
s.value = !0, r?.close();
|
|
44
44
|
}, n = () => {
|
|
45
45
|
s.value = !1, v("update:show", !1), v("close");
|
|
46
|
-
},
|
|
46
|
+
}, T = () => {
|
|
47
47
|
t.closeOutside && n();
|
|
48
|
-
}, { onKeyStroke:
|
|
49
|
-
|
|
50
|
-
u && clearTimeout(u), e ? (
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
}),
|
|
54
|
-
s.value &&
|
|
55
|
-
}),
|
|
56
|
-
u && clearTimeout(u), s.value &&
|
|
48
|
+
}, { onKeyStroke: z } = H();
|
|
49
|
+
z("Escape", n), h(s, (e) => {
|
|
50
|
+
u && clearTimeout(u), e ? (r?.onChildToggle?.(!0), document.body.style.overflow = "hidden") : (document.body.style.overflow = "", u = setTimeout(() => {
|
|
51
|
+
r?.onChildToggle?.(!1);
|
|
52
|
+
}, 150));
|
|
53
|
+
}), L(() => {
|
|
54
|
+
s.value && r?.onChildToggle?.(!0);
|
|
55
|
+
}), V(() => {
|
|
56
|
+
u && clearTimeout(u), s.value && r?.onChildToggle?.(!1), document.body.style.overflow = "";
|
|
57
57
|
});
|
|
58
|
-
const
|
|
58
|
+
const A = {
|
|
59
59
|
sm: "max-w-sm",
|
|
60
60
|
md: "max-w-md",
|
|
61
61
|
lg: "max-w-lg",
|
|
62
62
|
xl: "max-w-xl",
|
|
63
63
|
full: "max-w-full"
|
|
64
|
-
},
|
|
65
|
-
() => t.descriptionI18n ?
|
|
64
|
+
}, O = f(() => t.position === "left" ? "left-0 rounded-r-lg" : "right-0 rounded-l-md"), S = f(() => t.position === "left" ? "slide-left" : "slide-right"), d = f(() => t.titleI18n ? k(t.titleI18n) : t.title), C = f(
|
|
65
|
+
() => t.descriptionI18n ? k(t.descriptionI18n) : t.description
|
|
66
66
|
);
|
|
67
|
-
return (e, p) => (l(),
|
|
67
|
+
return (e, p) => (l(), i(j, null, [
|
|
68
68
|
y("span", w({
|
|
69
|
-
onClick:
|
|
69
|
+
onClick: K(B, ["stop"]),
|
|
70
70
|
class: `${o.triggerClass}`
|
|
71
71
|
}, e.$attrs, {
|
|
72
|
-
"data-testid": e.$attrs["data-testid"] ? `${e.$attrs["data-testid"]}-trigger` :
|
|
72
|
+
"data-testid": e.$attrs["data-testid"] ? `${e.$attrs["data-testid"]}-trigger` : d.value ? `sidepanel-trigger-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel-trigger"
|
|
73
73
|
}), [
|
|
74
74
|
c(e.$slots, "trigger", {}, () => [
|
|
75
75
|
o.body ? c(e.$slots, "default", { key: 0 }, void 0, !0) : a("", !0)
|
|
76
76
|
], !0)
|
|
77
77
|
], 16, J),
|
|
78
|
-
(l(), g(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
(l(), g(M, { to: "body" }, [
|
|
79
|
+
s.value ? (l(), i("div", {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: m(["fixed inset-0 z-50 v-sidepanel-overlay", o.overlayClass]),
|
|
82
|
+
onClick: T
|
|
83
|
+
}, null, 2)) : a("", !0),
|
|
84
|
+
F(R, {
|
|
85
|
+
name: S.value,
|
|
86
|
+
onAfterEnter: p[0] || (p[0] = (I) => e.$emit("onAfterOpen")),
|
|
87
|
+
onAfterLeave: p[1] || (p[1] = (I) => e.$emit("onAfterClose"))
|
|
86
88
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
s.value ? (l(),
|
|
89
|
-
key: 0,
|
|
90
|
-
class: m(["fixed inset-0 z-50 v-sidepanel-overlay", o.overlayClass]),
|
|
91
|
-
onClick: O
|
|
92
|
-
}, null, 2)) : a("", !0)
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}),
|
|
96
|
-
$(k, {
|
|
97
|
-
name: N.value,
|
|
98
|
-
onAfterEnter: p[0] || (p[0] = (P) => e.$emit("onAfterOpen")),
|
|
99
|
-
onAfterLeave: p[1] || (p[1] = (P) => e.$emit("onAfterClose"))
|
|
100
|
-
}, {
|
|
101
|
-
default: x(() => [
|
|
102
|
-
s.value ? (l(), d("div", {
|
|
89
|
+
default: U(() => [
|
|
90
|
+
s.value ? (l(), i("div", {
|
|
103
91
|
key: 0,
|
|
104
92
|
role: "dialog",
|
|
105
93
|
"aria-modal": "true",
|
|
106
|
-
class: m(["sidepanel-body fixed inset-y-0 z-50 flex flex-col bg-body shadow-sm border
|
|
107
|
-
"data-testid": e.$attrs["data-testid"] || (
|
|
94
|
+
class: m(["sidepanel-body fixed inset-y-0 z-50 flex flex-col bg-body shadow-sm border border-border/80 w-full", [A[o.size], O.value, t.class]]),
|
|
95
|
+
"data-testid": e.$attrs["data-testid"] || (d.value ? `sidepanel-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel")
|
|
108
96
|
}, [
|
|
109
|
-
|
|
97
|
+
d.value || e.$slots.header ? (l(), i("div", {
|
|
110
98
|
key: 0,
|
|
111
99
|
class: m([o.headerClass, "flex-none flex items-center justify-between px-5 py-2 border-b border-border"])
|
|
112
100
|
}, [
|
|
113
101
|
c(e.$slots, "header", {}, () => [
|
|
114
102
|
y("div", null, [
|
|
115
|
-
y("h3", W,
|
|
116
|
-
|
|
103
|
+
y("h3", W, $(d.value), 1),
|
|
104
|
+
C.value ? (l(), i("p", X, $(C.value), 1)) : a("", !0)
|
|
117
105
|
])
|
|
118
106
|
], !0),
|
|
119
107
|
o.hideCloseButton ? a("", !0) : (l(), g(G, {
|
|
@@ -130,12 +118,12 @@ const J = ["data-testid"], Q = ["data-testid"], W = { class: "text-lg font-bold
|
|
|
130
118
|
y("div", {
|
|
131
119
|
class: m(["flex-1 overflow-y-auto px-6 py-4 scrollbar-thin scrollbar-stable", o.bodyClass])
|
|
132
120
|
}, [
|
|
133
|
-
|
|
121
|
+
b.value ? (l(), g(q(b.value), w({ key: 0 }, { ...o.bodyProps, ...e.$attrs }, { close: n }), null, 16)) : c(e.$slots, "default", {
|
|
134
122
|
key: 1,
|
|
135
123
|
close: n
|
|
136
124
|
}, void 0, !0)
|
|
137
125
|
], 2),
|
|
138
|
-
e.$slots.footer ? (l(),
|
|
126
|
+
e.$slots.footer ? (l(), i("div", {
|
|
139
127
|
key: 1,
|
|
140
128
|
class: m(["flex-none px-6 py-3 border-t border-border", o.footerClass])
|
|
141
129
|
}, [
|
|
@@ -25,7 +25,7 @@ const ue = {
|
|
|
25
25
|
compactIconSize: { default: "21px" },
|
|
26
26
|
labelClass: { default: "text-sm" },
|
|
27
27
|
compactLabelClass: { default: "text-[11.5px] mt-1" },
|
|
28
|
-
itemPadding: { default: "py-
|
|
28
|
+
itemPadding: { default: "py-2 px-2" },
|
|
29
29
|
compactItemPadding: { default: "py-2 px-1" },
|
|
30
30
|
nestedMenuWidth: { default: "220px" },
|
|
31
31
|
nestedMenuMaxHeight: { default: "300px" },
|
|
@@ -7,5 +7,7 @@ interface Props {
|
|
|
7
7
|
}
|
|
8
8
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
9
|
depth: number;
|
|
10
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
itemRef: HTMLDivElement;
|
|
12
|
+
}, HTMLDivElement>;
|
|
11
13
|
export default _default;
|