vlite3 1.5.4 → 1.5.6

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 (78) hide show
  1. package/README.md +105 -0
  2. package/VLiteIconsVite.d.ts +36 -0
  3. package/components/AppShell/AppShell.vue.d.ts +1 -1
  4. package/components/AppShell/AppShellLayoutDashboard.vue.js +3 -2
  5. package/components/AppShell/AppShellLayoutDock.vue.js +3 -2
  6. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +28 -27
  7. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +3 -2
  8. package/components/AsyncSelect/createAsyncSelect.d.ts +4 -4
  9. package/components/AsyncSelect/createAsyncSelect.js +3 -2
  10. package/components/BackButton.vue.d.ts +1 -1
  11. package/components/Calendar/Calendar.vue.js +1 -1
  12. package/components/Calendar/Calendar.vue2.js +29 -29
  13. package/components/CategoryManager/CategoryManager.vue2.js +14 -14
  14. package/components/CategoryManager/CategoryNode.vue.js +16 -16
  15. package/components/CategoryMenu/CategoryMenu.vue.js +9 -8
  16. package/components/Chart/BarChart.vue.d.ts +1 -1
  17. package/components/Chart/GanttChart.vue.d.ts +3 -1
  18. package/components/Chart/GanttChart.vue.js +2 -2
  19. package/components/Chart/GanttChart.vue2.js +591 -656
  20. package/components/Chart/LineChart.vue.d.ts +1 -1
  21. package/components/Chart/TimelineChart.vue.d.ts +1 -1
  22. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  23. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  24. package/components/ConfirmationModal.vue.d.ts +4 -0
  25. package/components/ConfirmationModal.vue.js +47 -39
  26. package/components/DataTable/DataTable.vue.js +319 -294
  27. package/components/DataTable/DataTableRow.vue.d.ts +2 -0
  28. package/components/DataTable/DataTableRow.vue.js +2 -2
  29. package/components/DataTable/DataTableRow.vue2.js +57 -54
  30. package/components/DataTable/types.d.ts +2 -0
  31. package/components/DatePicker.vue.js +5 -4
  32. package/components/Empty/Empty.vue.js +3 -2
  33. package/components/ExportData/ExportData.vue.d.ts +1 -1
  34. package/components/Form/Form.vue2.js +44 -43
  35. package/components/Form/FormField.vue.js +24 -24
  36. package/components/Heatmap/Heatmap.vue2.js +3 -2
  37. package/components/Icon.vue.d.ts +3 -2
  38. package/components/Icon.vue.js +22 -12
  39. package/components/IconPicker.vue.js +5 -133
  40. package/components/IconPicker.vue2.js +218 -2
  41. package/components/ImportData/ImportData.vue.js +3 -2
  42. package/components/ImportData/ImportStep2.vue.js +3 -2
  43. package/components/Kanban/KanbanBoard.vue2.js +4 -2
  44. package/components/List/utils.js +5 -4
  45. package/components/Masonry/Masonry.vue2.js +14 -13
  46. package/components/Navbar/Navbar.vue.d.ts +1 -1
  47. package/components/Price/Price.vue.js +13 -12
  48. package/components/QRCode/QRCode.vue.d.ts +1 -1
  49. package/components/Rating/Rating.vue.js +2 -2
  50. package/components/Rating/Rating.vue2.js +41 -41
  51. package/components/Rating/ReviewSummary.vue.js +20 -20
  52. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +1 -1
  53. package/components/Screen/ScreenFilter.vue.js +5 -3
  54. package/components/Screen/components/ScreenExportModal.vue.d.ts +2 -2
  55. package/components/SidePanel.vue.js +2 -2
  56. package/components/SidePanel.vue2.js +18 -18
  57. package/components/Stats/StatItem.vue.js +3 -2
  58. package/components/StatusChip/StatusChip.vue.js +6 -5
  59. package/components/Workbook/Sheet.vue.js +11 -11
  60. package/core/CoreScale.d.ts +18 -0
  61. package/core/CoreScale.js +44 -0
  62. package/core/config.d.ts +66 -32
  63. package/core/config.js +24 -12
  64. package/core/index.d.ts +3 -2
  65. package/core/index.js +44 -32
  66. package/icons/IconRegistry.d.ts +38 -0
  67. package/icons/IconRegistry.js +166 -0
  68. package/icons/IconTypes.d.ts +37 -0
  69. package/index.d.ts +3 -1
  70. package/index.js +478 -452
  71. package/package.json +15 -3
  72. package/style.css +45 -15
  73. package/types/config.type.d.ts +23 -0
  74. package/utils/functions.js +44 -43
  75. package/utils/index.d.ts +1 -0
  76. package/vite.d.ts +6 -0
  77. package/vite.js +223 -0
  78. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, ref as z, computed as I, openBlock as r, createElementBlock as c, normalizeClass as u, Fragment as N, renderList as S, createVNode as h, unref as x, createElementVNode as y, normalizeStyle as T, renderSlot as $, createTextVNode as A, toDisplayString as g, createCommentVNode as E } from "vue";
2
- import { Icon as w } from "@iconify/vue";
3
- const F = ["onMousemove", "onClick"], H = {
1
+ import { defineComponent as k, ref as M, computed as z, openBlock as c, createElementBlock as r, normalizeClass as d, Fragment as N, renderList as S, createVNode as h, createElementVNode as x, normalizeStyle as T, renderSlot as $, createTextVNode as I, toDisplayString as y, createCommentVNode as A } from "vue";
2
+ import g from "../Icon.vue.js";
3
+ const E = ["onMousemove", "onClick"], F = {
4
4
  key: 0,
5
5
  class: "ml-2 text-sm text-foreground/80 font-medium whitespace-nowrap"
6
- }, L = { class: "text-xs text-muted-foreground font-normal" }, D = /* @__PURE__ */ M({
6
+ }, H = { class: "text-xs text-muted-foreground font-normal" }, p = /* @__PURE__ */ k({
7
7
  __name: "Rating",
8
8
  props: {
9
9
  modelValue: { default: 0 },
@@ -22,71 +22,71 @@ const F = ["onMousemove", "onClick"], H = {
22
22
  class: {}
23
23
  },
24
24
  emits: ["update:modelValue", "change", "hover"],
25
- setup(t, { emit: C }) {
26
- const l = t, s = C, n = z(0), d = I(() => n.value > 0 ? n.value : l.modelValue), m = {
25
+ setup(t, { emit: w }) {
26
+ const a = t, s = w, n = M(0), u = z(() => n.value > 0 ? n.value : a.modelValue), m = {
27
27
  sm: "w-4 h-4",
28
28
  md: "w-5 h-5",
29
29
  lg: "w-6 h-6",
30
30
  xl: "w-8 h-8"
31
31
  }, v = (o, e) => {
32
- const a = e === "active" ? l.activeIcon : l.icon;
33
- return Array.isArray(a) ? a[Math.min(o - 1, a.length - 1)] : a;
34
- }, V = (o, e) => {
35
- if (!(l.readonly || l.disabled))
36
- if (l.allowHalf) {
32
+ const l = e === "active" ? a.activeIcon : a.icon;
33
+ return Array.isArray(l) ? l[Math.min(o - 1, l.length - 1)] : l;
34
+ }, C = (o, e) => {
35
+ if (!(a.readonly || a.disabled))
36
+ if (a.allowHalf) {
37
37
  const i = o.currentTarget.getBoundingClientRect(), f = o.clientX - i.left < i.width / 2 ? e - 0.5 : e;
38
38
  n.value !== f && (n.value = f, s("hover", f));
39
39
  } else
40
40
  n.value !== e && (n.value = e, s("hover", e));
41
- }, b = () => {
42
- l.readonly || l.disabled || (n.value = 0, s("hover", 0));
43
- }, B = (o) => {
44
- if (l.readonly || l.disabled) return;
41
+ }, V = () => {
42
+ a.readonly || a.disabled || (n.value = 0, s("hover", 0));
43
+ }, b = (o) => {
44
+ if (a.readonly || a.disabled) return;
45
45
  let e = n.value || o;
46
- l.clearable && l.modelValue === e && (e = 0), s("update:modelValue", e), s("change", e);
47
- }, k = (o) => {
48
- const e = d.value - o + 1;
46
+ a.clearable && a.modelValue === e && (e = 0), s("update:modelValue", e), s("change", e);
47
+ }, B = (o) => {
48
+ const e = u.value - o + 1;
49
49
  return e >= 1 ? 100 : e > 0 ? e * 100 : 0;
50
50
  };
51
- return (o, e) => (r(), c("div", {
52
- class: u(["inline-flex items-center gap-1.5", [l.class, { "opacity-50 cursor-not-allowed": t.disabled }]]),
53
- onMouseleave: b
51
+ return (o, e) => (c(), r("div", {
52
+ class: d(["inline-flex items-center gap-1.5", [a.class, { "opacity-50 cursor-not-allowed": t.disabled }]]),
53
+ onMouseleave: V
54
54
  }, [
55
- (r(!0), c(N, null, S(t.max, (a) => (r(), c("div", {
56
- key: a,
57
- class: u(["relative flex items-center justify-center isolate transition-transform", {
55
+ (c(!0), r(N, null, S(t.max, (l) => (c(), r("div", {
56
+ key: l,
57
+ class: d(["relative flex items-center justify-center isolate transition-transform", {
58
58
  "cursor-pointer hover:scale-110 active:scale-95": !t.readonly && !t.disabled,
59
59
  "cursor-default pointer-events-none": t.readonly || t.disabled
60
60
  }]),
61
- onMousemove: (i) => V(i, a),
62
- onClick: (i) => B(a)
61
+ onMousemove: (i) => C(i, l),
62
+ onClick: (i) => b(l)
63
63
  }, [
64
- h(x(w), {
65
- icon: v(a, "inactive"),
66
- class: u([m[t.size], t.inactiveColor])
64
+ h(g, {
65
+ icon: v(l, "inactive"),
66
+ class: d([m[t.size], t.inactiveColor])
67
67
  }, null, 8, ["icon", "class"]),
68
- y("div", {
68
+ x("div", {
69
69
  class: "absolute inset-0 overflow-hidden",
70
- style: T({ width: `${k(a)}%` })
70
+ style: T({ width: `${B(l)}%` })
71
71
  }, [
72
- h(x(w), {
73
- icon: v(a, "active"),
74
- class: u([m[t.size], t.activeColor, { "is-solid": t.solid }])
72
+ h(g, {
73
+ icon: v(l, "active"),
74
+ class: d([m[t.size], t.activeColor, { "is-solid": t.solid }])
75
75
  }, null, 8, ["icon", "class"])
76
76
  ], 4)
77
- ], 42, F))), 128)),
77
+ ], 42, E))), 128)),
78
78
  $(o.$slots, "text", {
79
- value: d.value,
79
+ value: u.value,
80
80
  max: t.max
81
81
  }, () => [
82
- t.showText ? (r(), c("span", H, [
83
- A(g(d.value) + " ", 1),
84
- y("span", L, "/ " + g(t.max), 1)
85
- ])) : E("", !0)
82
+ t.showText ? (c(), r("span", F, [
83
+ I(y(u.value) + " ", 1),
84
+ x("span", H, "/ " + y(t.max), 1)
85
+ ])) : A("", !0)
86
86
  ], !0)
87
87
  ], 34));
88
88
  }
89
89
  });
90
90
  export {
91
- D as default
91
+ p as default
92
92
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as w, computed as u, openBlock as l, createElementBlock as i, normalizeClass as d, createElementVNode as r, toDisplayString as s, Fragment as m, renderList as f, createVNode as g, unref as x, createCommentVNode as _, createTextVNode as b, normalizeStyle as y } from "vue";
2
- import { Icon as v } from "@iconify/vue";
3
- const k = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-full shrink-0" }, R = { class: "text-5xl font-bold tracking-tighter text-foreground" }, D = { class: "flex items-center gap-1 mt-3 text-amber-400" }, N = {
1
+ import { defineComponent as h, computed as u, openBlock as l, createElementBlock as i, normalizeClass as d, createElementVNode as r, toDisplayString as s, Fragment as m, renderList as f, createVNode as g, createCommentVNode as w, createTextVNode as _, normalizeStyle as b } from "vue";
2
+ import x from "../Icon.vue.js";
3
+ const y = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-full shrink-0" }, k = { class: "text-5xl font-bold tracking-tighter text-foreground" }, R = { class: "flex items-center gap-1 mt-3 text-amber-400" }, D = {
4
4
  key: 0,
5
5
  class: "text-sm text-muted-foreground mt-2 font-medium"
6
- }, B = { class: "flex flex-col gap-2 w-full flex-grow" }, C = { class: "flex items-center gap-1 text-sm font-medium text-foreground min-w-[70px]" }, T = { class: "h-3.5 bg-muted rounded-full w-full overflow-hidden flex-grow shrink-0 relative shadow-inner" }, V = { class: "text-sm font-medium text-muted-foreground text-right min-w-[36px]" }, E = /* @__PURE__ */ w({
6
+ }, N = { class: "flex flex-col gap-2 w-full flex-grow" }, B = { class: "flex items-center gap-1 text-sm font-medium text-foreground min-w-[70px]" }, C = { class: "h-3.5 bg-muted rounded-full w-full overflow-hidden flex-grow shrink-0 relative shadow-inner" }, T = { class: "text-sm font-medium text-muted-foreground text-right min-w-[36px]" }, z = /* @__PURE__ */ h({
7
7
  __name: "ReviewSummary",
8
8
  props: {
9
9
  ratingDistribution: {},
@@ -13,21 +13,21 @@ const k = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-fu
13
13
  class: {}
14
14
  },
15
15
  setup(c) {
16
- const e = c, p = u(() => [...e.ratingDistribution].sort((n, o) => o.rating - n.rating)), a = u(() => {
16
+ const e = c, v = u(() => [...e.ratingDistribution].sort((n, o) => o.rating - n.rating)), a = u(() => {
17
17
  if (e.averageRating !== void 0) return e.averageRating;
18
18
  if (e.ratingDistribution.length === 0) return 0;
19
19
  let n = 0, o = 0;
20
20
  for (const t of e.ratingDistribution)
21
21
  t.count !== void 0 && (n += t.rating * t.count, o += t.count);
22
22
  return o > 0 ? Number((n / o).toFixed(1)) : 0;
23
- }), h = u(() => e.totalReviews !== void 0 ? e.totalReviews : e.ratingDistribution.reduce((n, o) => n + (o.count || 0), 0));
23
+ }), p = u(() => e.totalReviews !== void 0 ? e.totalReviews : e.ratingDistribution.reduce((n, o) => n + (o.count || 0), 0));
24
24
  return (n, o) => (l(), i("div", {
25
25
  class: d(["flex flex-col sm:flex-row gap-6 md:gap-10 items-start w-full", e.class])
26
26
  }, [
27
- r("div", k, [
28
- r("div", R, s(a.value), 1),
29
- r("div", D, [
30
- (l(), i(m, null, f(5, (t) => g(x(v), {
27
+ r("div", y, [
28
+ r("div", k, s(a.value), 1),
29
+ r("div", R, [
30
+ (l(), i(m, null, f(5, (t) => g(x, {
31
31
  key: t,
32
32
  icon: "lucide:star",
33
33
  class: d(["w-5 h-5 transition-all", {
@@ -36,32 +36,32 @@ const k = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-fu
36
36
  }])
37
37
  }, null, 8, ["class"])), 64))
38
38
  ]),
39
- c.showTotal ? (l(), i("p", N, " Based on " + s(h.value) + " global ratings ", 1)) : _("", !0)
39
+ c.showTotal ? (l(), i("p", D, " Based on " + s(p.value) + " global ratings ", 1)) : w("", !0)
40
40
  ]),
41
- r("div", B, [
42
- (l(!0), i(m, null, f(p.value, (t) => (l(), i("div", {
41
+ r("div", N, [
42
+ (l(!0), i(m, null, f(v.value, (t) => (l(), i("div", {
43
43
  key: t.rating,
44
44
  class: "flex items-center gap-3 w-full"
45
45
  }, [
46
- r("div", C, [
47
- b(s(t.rating) + " ", 1),
48
- g(x(v), {
46
+ r("div", B, [
47
+ _(s(t.rating) + " ", 1),
48
+ g(x, {
49
49
  icon: "lucide:star",
50
50
  class: "w-4 h-4 text-amber-400 fill-amber-400"
51
51
  })
52
52
  ]),
53
- r("div", T, [
53
+ r("div", C, [
54
54
  r("div", {
55
55
  class: "h-full bg-amber-400 rounded-full transition-all duration-1000 ease-out",
56
- style: y({ width: `${t.percentage}%` })
56
+ style: b({ width: `${t.percentage}%` })
57
57
  }, null, 4)
58
58
  ]),
59
- r("div", V, s(t.percentage) + "% ", 1)
59
+ r("div", T, s(t.percentage) + "% ", 1)
60
60
  ]))), 128))
61
61
  ])
62
62
  ], 2));
63
63
  }
64
64
  });
65
65
  export {
66
- E as default
66
+ z as default
67
67
  };
@@ -25,10 +25,10 @@ declare const __VLS_component: import('vue').DefineComponent<ScaleGeneratorProps
25
25
  "onUpdate:containerWidth"?: (value: number) => any;
26
26
  "onUpdate:ready"?: (value: boolean) => any;
27
27
  }>, {
28
+ scale: number | null;
28
29
  maxWidth: number;
29
30
  contentClass: string;
30
31
  enabled: boolean;
31
- scale: number | null;
32
32
  targetWidth: number;
33
33
  minScale: number;
34
34
  maxScale: number;
@@ -17,9 +17,11 @@ import "v-datepicker-lite/style.css";
17
17
  /* empty css */
18
18
  import "@jaames/iro";
19
19
  import "@vueuse/core";
20
- /* empty css */
20
+ /* empty css */
21
21
  import "iconify-icon-picker";
22
22
  import "iconify-icon-picker/style.css";
23
+ import "../../icons/IconRegistry.js";
24
+ /* empty css */
23
25
  /* empty css */
24
26
  /* empty css */
25
27
  /* empty css */
@@ -32,7 +34,7 @@ import "../../core/config.js";
32
34
  const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }, A = { style: { "will-change": "transform", contain: "layout style" } }, E = {
33
35
  class: "pt-2 px-2 min-w-[295px]",
34
36
  style: { "will-change": "transform", contain: "layout style" }
35
- }, de = /* @__PURE__ */ $({
37
+ }, fe = /* @__PURE__ */ $({
36
38
  __name: "ScreenFilter",
37
39
  props: {
38
40
  schema: {},
@@ -195,5 +197,5 @@ const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
195
197
  }
196
198
  });
197
199
  export {
198
- de as default
200
+ fe as default
199
201
  };
@@ -19,8 +19,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
19
19
  icon: string;
20
20
  }[]>;
21
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
22
- title: string;
23
22
  mode: "frontend" | "backend";
23
+ title: string;
24
24
  buttonText: string;
25
25
  buttonIcon: string;
26
26
  formats: import('../../ExportData').ExportFormat[];
@@ -39,8 +39,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
39
39
  icon: string;
40
40
  }[]>;
41
41
  }, {}, {}, {}, {
42
- title: string;
43
42
  mode: "frontend" | "backend";
43
+ title: string;
44
44
  buttonText: string;
45
45
  buttonIcon: string;
46
46
  formats: import('../../ExportData').ExportFormat[];
@@ -1,7 +1,7 @@
1
1
  import o from "./SidePanel.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10bfdf18"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c7083f88"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
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 p, 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, normalizeStyle as q, toDisplayString as k, resolveDynamicComponent as G } from "vue";
1
+ import { defineComponent as E, ref as N, inject as P, computed as f, markRaw as D, watch as w, onMounted as L, onUnmounted as V, openBlock as l, createElementBlock as i, Fragment as j, createElementVNode as p, mergeProps as h, withModifiers as K, renderSlot as m, createCommentVNode as a, createBlock as g, Teleport as M, normalizeClass as c, createVNode as F, Transition as R, withCtx as U, normalizeStyle as q, toDisplayString as k, resolveDynamicComponent as G } from "vue";
2
2
  import H from "./Button.vue.js";
3
3
  import { useKeyStroke as J } from "../composables/useKeyStroke.js";
4
4
  import { $t as $ } from "../utils/i18n.js";
@@ -34,7 +34,7 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
34
34
  const t = o, v = x, s = N(t.show);
35
35
  let u = null;
36
36
  const r = P("dropdown-context", null), b = f(() => t.body ? D(t.body) : void 0);
37
- h(
37
+ w(
38
38
  () => t.show,
39
39
  (e) => {
40
40
  s.value = e, e && (v("onOpen"), r?.close());
@@ -47,7 +47,7 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
47
47
  }, T = () => {
48
48
  t.closeOutside && n();
49
49
  }, { onKeyStroke: z } = J();
50
- z("Escape", n), h(s, (e) => {
50
+ z("Escape", n), w(s, (e) => {
51
51
  u && clearTimeout(u), e ? (r?.onChildToggle?.(!0), document.body.style.overflow = "hidden") : (document.body.style.overflow = "", u = setTimeout(() => {
52
52
  r?.onChildToggle?.(!1);
53
53
  }, 150));
@@ -57,29 +57,29 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
57
57
  u && clearTimeout(u), s.value && r?.onChildToggle?.(!1), document.body.style.overflow = "";
58
58
  });
59
59
  const S = {
60
- sm: "max-w-sm",
61
- md: "max-w-md",
62
- lg: "max-w-lg",
63
- xl: "max-w-xl",
60
+ sm: "max-w-full sm:max-w-sm",
61
+ md: "max-w-full sm:max-w-md",
62
+ lg: "max-w-full sm:max-w-lg",
63
+ xl: "max-w-full sm:max-w-xl",
64
64
  full: "max-w-full"
65
65
  }, A = f(() => t.position === "left" ? "start-0 rounded-e-lg" : "end-0 rounded-s-md"), O = f(() => t.position === "left" ? "slide-left" : "slide-right"), d = f(() => t.titleI18n ? $(t.titleI18n) : t.title), C = f(
66
66
  () => t.descriptionI18n ? $(t.descriptionI18n) : t.description
67
67
  );
68
68
  return (e, y) => (l(), i(j, null, [
69
- p("span", w({
69
+ p("span", h({
70
70
  onClick: K(B, ["stop"]),
71
71
  class: `${o.triggerClass}`
72
72
  }, e.$attrs, {
73
73
  "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"
74
74
  }), [
75
- c(e.$slots, "trigger", {}, () => [
76
- o.body ? c(e.$slots, "default", { key: 0 }, void 0, !0) : a("", !0)
75
+ m(e.$slots, "trigger", {}, () => [
76
+ o.body ? m(e.$slots, "default", { key: 0 }, void 0, !0) : a("", !0)
77
77
  ], !0)
78
78
  ], 16, Q),
79
79
  (l(), g(M, { to: "body" }, [
80
80
  s.value ? (l(), i("div", {
81
81
  key: 0,
82
- class: m(["fixed inset-0 z-50 v-sidepanel-overlay", o.overlayClass]),
82
+ class: c(["fixed inset-0 z-50 v-sidepanel-overlay", o.overlayClass]),
83
83
  onClick: T
84
84
  }, null, 2)) : a("", !0),
85
85
  F(R, {
@@ -93,14 +93,14 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
93
93
  role: "dialog",
94
94
  style: q(o.styles),
95
95
  "aria-modal": "true",
96
- class: m(["sidepanel-body fixed inset-y-0 z-50 flex flex-col bg-body shadow-sm border border-border/80 w-full", [S[o.size], A.value, t.class]]),
96
+ class: c(["sidepanel-body fixed inset-y-0 z-50 flex flex-col bg-body shadow-sm border border-border/80 w-full", [S[o.size], A.value, t.class]]),
97
97
  "data-testid": e.$attrs["data-testid"] || (d.value ? `sidepanel-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel")
98
98
  }, [
99
99
  d.value || e.$slots.header ? (l(), i("div", {
100
100
  key: 0,
101
- class: m([o.headerClass, "flex-none flex items-center justify-between px-5 py-2 border-b border-border"])
101
+ class: c([o.headerClass, "flex-none flex items-center justify-between px-5 py-2 border-b border-border"])
102
102
  }, [
103
- c(e.$slots, "header", {}, () => [
103
+ m(e.$slots, "header", {}, () => [
104
104
  p("div", null, [
105
105
  p("h3", X, k(d.value), 1),
106
106
  C.value ? (l(), i("p", Y, k(C.value), 1)) : a("", !0)
@@ -118,18 +118,18 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
118
118
  }))
119
119
  ], 2)) : a("", !0),
120
120
  p("div", {
121
- class: m(["flex-1 overflow-y-auto px-6 py-4 scrollbar-thin scrollbar-stable", o.bodyClass])
121
+ class: c(["flex-1 overflow-y-auto px-6 py-4 scrollbar-thin scrollbar-stable", o.bodyClass])
122
122
  }, [
123
- b.value ? (l(), g(G(b.value), w({ key: 0 }, { ...o.bodyProps, ...e.$attrs }, { close: n }), null, 16)) : c(e.$slots, "default", {
123
+ b.value ? (l(), g(G(b.value), h({ key: 0 }, { ...o.bodyProps, ...e.$attrs }, { close: n }), null, 16)) : m(e.$slots, "default", {
124
124
  key: 1,
125
125
  close: n
126
126
  }, void 0, !0)
127
127
  ], 2),
128
128
  e.$slots.footer ? (l(), i("div", {
129
129
  key: 1,
130
- class: m(["flex-none px-6 py-3 border-t border-border", o.footerClass])
130
+ class: c(["flex-none px-6 py-3 border-t border-border", o.footerClass])
131
131
  }, [
132
- c(e.$slots, "footer", { close: n }, void 0, !0)
132
+ m(e.$slots, "footer", { close: n }, void 0, !0)
133
133
  ], 2)) : a("", !0)
134
134
  ], 14, W)) : a("", !0)
135
135
  ]),
@@ -6,6 +6,7 @@ import z from "./components/StatIconBox.vue.js";
6
6
  import S from "../Tooltip.vue.js";
7
7
  import E from "../Chart/LineChart.vue.js";
8
8
  import { configState as L } from "../../core/config.js";
9
+ import "../../icons/IconRegistry.js";
9
10
  import { resolveColor as q } from "../Chart/utils.js";
10
11
  const A = { class: "flex items-start gap-3 w-full" }, G = { class: "flex-1 min-w-0" }, J = {
11
12
  key: 0,
@@ -37,7 +38,7 @@ const A = { class: "flex items-start gap-3 w-full" }, G = { class: "flex-1 min-w
37
38
  }, p = { class: "flex-1 flex flex-col justify-center min-w-0" }, _ = { class: "flex items-baseline gap-2 mt-1" }, tt = {
38
39
  key: 0,
39
40
  class: "h-8 w-24 bg-gray-50 animate-pulse rounded-md"
40
- }, ut = /* @__PURE__ */ M({
41
+ }, mt = /* @__PURE__ */ M({
41
42
  __name: "StatItem",
42
43
  props: {
43
44
  item: {},
@@ -415,5 +416,5 @@ const A = { class: "flex items-start gap-3 w-full" }, G = { class: "flex-1 min-w
415
416
  }
416
417
  });
417
418
  export {
418
- ut as default
419
+ mt as default
419
420
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as u, computed as l, openBlock as c, createBlock as f, unref as p, normalizeClass as m } from "vue";
1
+ import { defineComponent as u, computed as l, openBlock as c, createBlock as p, unref as f, normalizeClass as m } from "vue";
2
2
  import d from "../Chip/Chip.vue.js";
3
3
  /* empty css */
4
4
  import { resolveStatus as v } from "./status-map.js";
5
5
  import { $t as b } from "../../utils/i18n.js";
6
6
  import { useVLiteConfig as h } from "../../core/config.js";
7
- const S = /* @__PURE__ */ u({
7
+ import "../../icons/IconRegistry.js";
8
+ const k = /* @__PURE__ */ u({
8
9
  __name: "StatusChip",
9
10
  props: {
10
11
  status: {},
@@ -15,8 +16,8 @@ const S = /* @__PURE__ */ u({
15
16
  class: { default: "" }
16
17
  },
17
18
  setup(a) {
18
- const e = a, s = h(), n = l(() => s?.components?.statusChip), i = l(() => e.hideIcon !== null ? e.hideIcon : n.value?.hideIcon ?? !1), t = l(() => v(e.status, n.value?.customStatuses)), r = l(() => e.labelI18n ? b(e.labelI18n) : t.value.label ? t.value.label : e.label ? e.label : e.status.replace(/[_\-]+/g, " ").replace(/\b\w/g, (o) => o.toUpperCase()));
19
- return (o, I) => (c(), f(p(d), {
19
+ const e = a, s = h(), o = l(() => s?.components?.statusChip), i = l(() => e.hideIcon !== null ? e.hideIcon : o.value?.hideIcon ?? !1), t = l(() => v(e.status, o.value?.customStatuses)), r = l(() => e.labelI18n ? b(e.labelI18n) : t.value.label ? t.value.label : e.label ? e.label : e.status.replace(/[_\-]+/g, " ").replace(/\b\w/g, (n) => n.toUpperCase()));
20
+ return (n, I) => (c(), p(f(d), {
20
21
  text: r.value,
21
22
  variant: t.value.variant,
22
23
  icon: i.value ? void 0 : t.value.icon,
@@ -26,5 +27,5 @@ const S = /* @__PURE__ */ u({
26
27
  }
27
28
  });
28
29
  export {
29
- S as default
30
+ k as default
30
31
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, ref as b, computed as v, openBlock as r, createElementBlock as d, normalizeClass as $, createElementVNode as u, withModifiers as a, createBlock as S, withCtx as x, createVNode as m, createCommentVNode as V, withDirectives as j, withKeys as g, vModelText as z, toDisplayString as K, unref as M, nextTick as N } from "vue";
1
+ import { defineComponent as I, ref as b, computed as v, openBlock as r, createElementBlock as d, normalizeClass as S, createElementVNode as u, withModifiers as a, createBlock as $, withCtx as x, createVNode as m, createCommentVNode as V, withDirectives as j, withKeys as g, vModelText as z, toDisplayString as K, unref as M, nextTick as N } from "vue";
2
2
  import y from "../Icon.vue.js";
3
3
  import O from "../Dropdown/Dropdown.vue.js";
4
4
  import { $t as l } from "../../utils/i18n.js";
@@ -7,13 +7,13 @@ import { $t as l } from "../../utils/i18n.js";
7
7
  /* empty css */
8
8
  import R from "../Button.vue.js";
9
9
  import A from "../IconPicker.vue.js";
10
- const U = {
10
+ const P = {
11
11
  type: "button",
12
12
  class: "flex items-center justify-center rounded hover:bg-accent transition-colors p-0.5 outline-none focus-visible:ring-2 focus-visible:ring-primary/20 mt-1"
13
- }, q = {
13
+ }, U = {
14
14
  key: 1,
15
15
  class: "flex items-center justify-center p-0.5"
16
- }, F = { class: "flex-1 min-w-0 pr-1" }, G = ["onKeydown"], H = {
16
+ }, q = { class: "flex-1 min-w-0 pr-1" }, F = ["onKeydown"], G = {
17
17
  key: 1,
18
18
  class: "block truncate text-sm font-medium leading-normal"
19
19
  }, ee = /* @__PURE__ */ I({
@@ -88,7 +88,7 @@ const U = {
88
88
  e.isEditing ? "cursor-text" : ""
89
89
  ].filter(Boolean).join(" "));
90
90
  return (n, t) => (r(), d("div", {
91
- class: $(E.value),
91
+ class: S(E.value),
92
92
  onClick: t[5] || (t[5] = (c) => o("select", i.sheet.id)),
93
93
  onDblclick: h
94
94
  }, [
@@ -97,14 +97,14 @@ const U = {
97
97
  }, ["stop"])),
98
98
  class: "mr-2 flex items-center shrink-0"
99
99
  }, [
100
- (i.sheet.icon || i.isEditing) && i.allowIconChange ? (r(), S(A, {
100
+ (i.sheet.icon || i.isEditing) && i.allowIconChange ? (r(), $(A, {
101
101
  key: 0,
102
102
  value: i.sheet.icon || "lucide:file",
103
103
  position: "bottom-start",
104
104
  onOnSelect: t[0] || (t[0] = (c) => o("update:icon", i.sheet.id, c))
105
105
  }, {
106
106
  default: x(() => [
107
- u("button", U, [
107
+ u("button", P, [
108
108
  m(y, {
109
109
  icon: i.sheet.icon || "lucide:file",
110
110
  class: "w-4 h-4 opacity-70 hover:opacity-100 transition-opacity"
@@ -112,14 +112,14 @@ const U = {
112
112
  ])
113
113
  ]),
114
114
  _: 1
115
- }, 8, ["value"])) : i.sheet.icon ? (r(), d("div", q, [
115
+ }, 8, ["value"])) : i.sheet.icon ? (r(), d("div", U, [
116
116
  m(y, {
117
117
  icon: i.sheet.icon,
118
118
  class: "w-4 h-4 opacity-70"
119
119
  }, null, 8, ["icon"])
120
120
  ])) : V("", !0)
121
121
  ]),
122
- u("div", F, [
122
+ u("div", q, [
123
123
  i.isEditing ? j((r(), d("input", {
124
124
  key: 0,
125
125
  ref_key: "inputRef",
@@ -134,9 +134,9 @@ const U = {
134
134
  ],
135
135
  onClick: t[3] || (t[3] = a(() => {
136
136
  }, ["stop"]))
137
- }, null, 40, G)), [
137
+ }, null, 40, F)), [
138
138
  [z, s.value]
139
- ]) : (r(), d("span", H, K(C.value), 1))
139
+ ]) : (r(), d("span", G, K(C.value), 1))
140
140
  ]),
141
141
  u("div", {
142
142
  class: "opacity-0 group-hover:opacity-100 transition-opacity ml-auto pl-1 -mr-2 flex items-center",
@@ -0,0 +1,18 @@
1
+ import { VLiteScale } from '../types/config.type.ts';
2
+ export declare const DEFAULT_VLITE_SCALE: VLiteScale;
3
+ export declare const VLITE_SCALE_ATTRIBUTE = "data-vlite-scale";
4
+ export declare const VLITE_SCALE_STORAGE_KEY = "vlite-scale";
5
+ export declare function isVLiteScale(value: unknown): value is VLiteScale;
6
+ export declare function resolveVLiteScale(value: unknown): VLiteScale;
7
+ export declare function getStoredVLiteScale(): VLiteScale | null;
8
+ /**
9
+ * Applies the resolved scale without disturbing any other root attributes.
10
+ * User-initiated runtime changes are persisted synchronously for future loads.
11
+ * Safe to call repeatedly and in server-rendered environments.
12
+ */
13
+ export declare function applyVLiteScale(scale: VLiteScale): VLiteScale;
14
+ /**
15
+ * Restores a saved user preference before mount, falling back to application
16
+ * configuration and finally the backward-compatible large preset.
17
+ */
18
+ export declare function initializeVLiteScale(configuredScale: unknown): VLiteScale;
@@ -0,0 +1,44 @@
1
+ const r = "large", c = "data-vlite-scale", n = "vlite-scale", u = ["small", "medium", "large"];
2
+ function i(e) {
3
+ return typeof e == "string" && u.includes(e);
4
+ }
5
+ function o(e) {
6
+ return i(e) ? e : r;
7
+ }
8
+ function a() {
9
+ if (typeof window > "u") return null;
10
+ try {
11
+ const e = window.localStorage.getItem(n);
12
+ return i(e) ? e : (e !== null && window.localStorage.removeItem(n), null);
13
+ } catch {
14
+ return null;
15
+ }
16
+ }
17
+ function d(e) {
18
+ if (!(typeof window > "u"))
19
+ try {
20
+ window.localStorage.setItem(n, e);
21
+ } catch {
22
+ }
23
+ }
24
+ function l(e) {
25
+ typeof document > "u" || document.documentElement.setAttribute(c, e);
26
+ }
27
+ function s(e) {
28
+ const t = o(e);
29
+ return d(t), l(t), t;
30
+ }
31
+ function S(e) {
32
+ const t = a() ?? o(e);
33
+ return l(t), t;
34
+ }
35
+ export {
36
+ r as DEFAULT_VLITE_SCALE,
37
+ c as VLITE_SCALE_ATTRIBUTE,
38
+ n as VLITE_SCALE_STORAGE_KEY,
39
+ s as applyVLiteScale,
40
+ a as getStoredVLiteScale,
41
+ S as initializeVLiteScale,
42
+ i as isVLiteScale,
43
+ o as resolveVLiteScale
44
+ };