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.
Files changed (57) hide show
  1. package/README.md +18 -7
  2. package/components/AppShell/AppShellLayoutDashboard.vue.js +1 -1
  3. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +1 -1
  4. package/components/AsyncSelect/createAsyncSelect.d.ts +88 -0
  5. package/components/AsyncSelect/createAsyncSelect.js +156 -0
  6. package/components/AsyncSelect/index.d.ts +1 -0
  7. package/components/AvatarGroup/AvatarGroup.vue.js +10 -9
  8. package/components/Beacon.vue.d.ts +13 -0
  9. package/components/CategoryManager/CategoryManager.vue.js +1 -1
  10. package/components/ChoiceBox/ChoiceBox.vue.js +4 -2
  11. package/components/{CopyButton.vue.d.ts → Clipboard.vue.d.ts} +4 -3
  12. package/components/{CopyButton.vue.js → Clipboard.vue.js} +19 -19
  13. package/components/Clipboard.vue2.js +4 -0
  14. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  15. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  16. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  17. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  18. package/components/DataTable/types.d.ts +1 -1
  19. package/components/Form/Form.vue.js +1 -1
  20. package/components/Form/Form.vue2.js +1 -1
  21. package/components/List/ListFieldRow.vue.js +221 -144
  22. package/components/Modal.vue.js +1 -1
  23. package/components/Modal.vue2.js +92 -86
  24. package/components/NavbarCommandPalette.vue.js +1 -1
  25. package/components/Persona.vue.d.ts +25 -0
  26. package/components/Price/Price.vue.d.ts +1 -1
  27. package/components/Price/Price.vue.js +35 -13
  28. package/components/Rating/Rating.vue.d.ts +43 -0
  29. package/components/Rating/Rating.vue.js +7 -0
  30. package/components/Rating/Rating.vue2.js +92 -0
  31. package/components/Rating/ReviewSummary.vue.d.ts +5 -0
  32. package/components/Rating/ReviewSummary.vue.js +67 -0
  33. package/components/Rating/ReviewSummary.vue2.js +4 -0
  34. package/components/Rating/index.d.ts +3 -0
  35. package/components/Rating/types.d.ts +28 -0
  36. package/components/Screen/Screen.vue.d.ts +2 -2
  37. package/components/Screen/Screen.vue.js +3 -1
  38. package/components/Screen/ScreenFilter.vue.js +1 -1
  39. package/components/SidePanel.vue.js +3 -3
  40. package/components/SidePanel.vue2.js +44 -56
  41. package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
  42. package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +3 -1
  43. package/components/SidebarMenu/SidebarMenuItem.vue.js +197 -178
  44. package/components/Stats/StatItem.vue.js +222 -164
  45. package/components/Stats/components/StatIconBox.vue.js +42 -42
  46. package/components/Stats/components/StatTrend.vue.js +20 -20
  47. package/components/ThemeToggle.vue.js +10 -10
  48. package/components/Timeline/Timeline.vue.js +21 -11
  49. package/components/Timeline/TimelineItem.vue.js +1 -1
  50. package/components/index.d.ts +2 -0
  51. package/index.d.ts +3 -1
  52. package/index.js +113 -107
  53. package/package.json +2 -1
  54. package/style.css +47 -32
  55. package/utils/status.js +16 -16
  56. package/components/CopyButton.vue2.js +0 -4
  57. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -1,11 +1,11 @@
1
- import { defineComponent as D, ref as L, inject as V, computed as f, markRaw as j, watch as h, onMounted as K, onUnmounted as M, openBlock as l, createElementBlock as d, Fragment as F, createElementVNode as y, mergeProps as w, withModifiers as R, renderSlot as c, createCommentVNode as a, createBlock as g, Teleport as U, createVNode as $, Transition as k, withCtx as x, normalizeClass as m, toDisplayString as B, resolveDynamicComponent as q } from "vue";
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 T } from "../utils/i18n.js";
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__ */ D({
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: z }) {
33
- const t = o, v = z, s = L(t.show);
32
+ setup(o, { emit: x }) {
33
+ const t = o, v = x, s = N(t.show);
34
34
  let u = null;
35
- const i = V("dropdown-context", null), C = f(() => t.body ? j(t.body) : void 0);
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"), i?.close());
39
+ s.value = e, e && (v("onOpen"), r?.close());
40
40
  }
41
41
  );
42
- const A = () => {
43
- s.value = !0, i?.close();
42
+ const B = () => {
43
+ s.value = !0, r?.close();
44
44
  }, n = () => {
45
45
  s.value = !1, v("update:show", !1), v("close");
46
- }, O = () => {
46
+ }, T = () => {
47
47
  t.closeOutside && n();
48
- }, { onKeyStroke: S } = H();
49
- S("Escape", n), h(s, (e) => {
50
- u && clearTimeout(u), e ? (i?.onChildToggle?.(!0), document.body.style.overflow = "hidden") : (document.body.style.overflow = "", u = setTimeout(() => {
51
- i?.onChildToggle?.(!1);
52
- }, 300));
53
- }), K(() => {
54
- s.value && i?.onChildToggle?.(!0);
55
- }), M(() => {
56
- u && clearTimeout(u), s.value && i?.onChildToggle?.(!1), document.body.style.overflow = "";
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 I = {
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
- }, E = f(() => t.position === "left" ? "left-0" : "right-0"), N = f(() => t.position === "left" ? "slide-left" : "slide-right"), r = f(() => t.titleI18n ? T(t.titleI18n) : t.title), b = f(
65
- () => t.descriptionI18n ? T(t.descriptionI18n) : t.description
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(), d(F, null, [
67
+ return (e, p) => (l(), i(j, null, [
68
68
  y("span", w({
69
- onClick: R(A, ["stop"]),
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` : r.value ? `sidepanel-trigger-${r.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel-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(U, { to: "body" }, [
79
- $(k, {
80
- "enter-active-class": "transition-opacity duration-300 ease-out",
81
- "enter-from-class": "opacity-0",
82
- "enter-to-class": "opacity-100",
83
- "leave-active-class": "transition-opacity duration-200 ease-in",
84
- "leave-from-class": "opacity-100",
85
- "leave-to-class": "opacity-0"
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: x(() => [
88
- s.value ? (l(), d("div", {
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 transition-transform duration-300 ease-in-out w-full", [I[o.size], E.value, t.class]]),
107
- "data-testid": e.$attrs["data-testid"] || (r.value ? `sidepanel-${r.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel")
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
- r.value || e.$slots.header ? (l(), d("div", {
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, B(r.value), 1),
116
- b.value ? (l(), d("p", X, B(b.value), 1)) : a("", !0)
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
- C.value ? (l(), g(q(C.value), w({ key: 0 }, { ...o.bodyProps, ...e.$attrs }, { close: n }), null, 16)) : c(e.$slots, "default", {
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(), d("div", {
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-1.5 px-2" },
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, {}, HTMLDivElement>;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
11
+ itemRef: HTMLDivElement;
12
+ }, HTMLDivElement>;
11
13
  export default _default;