vlite3 0.7.14 → 0.8.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.
Files changed (68) hide show
  1. package/components/Accordion/Accordion.vue.js +35 -22
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/Accordion/AccordionContent.vue2.js +1 -1
  4. package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
  5. package/components/Breadcrumb/Breadcrumb.vue2.js +44 -44
  6. package/components/Carousel/Carousel.vue.js +1 -1
  7. package/components/Carousel/Carousel.vue2.js +3 -3
  8. package/components/ColorPicker/ColorPicker.vue.js +16 -15
  9. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  10. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  11. package/components/DataList/DataList.vue.js +53 -50
  12. package/components/DataTable/DataTable.vue.js +185 -173
  13. package/components/DatePicker.vue.js +3 -2
  14. package/components/DateRangePicker.vue.js +26 -25
  15. package/components/Dropdown/Dropdown.vue.js +20 -20
  16. package/components/Dropdown/DropdownMenu.vue.js +5 -256
  17. package/components/Dropdown/DropdownMenu.vue2.js +256 -2
  18. package/components/FilePicker/FilePicker.vue.js +16 -16
  19. package/components/FileTree/FileTree.vue.js +5 -147
  20. package/components/FileTree/FileTree.vue2.js +164 -2
  21. package/components/FileTree/FileTreeNode.vue.js +89 -84
  22. package/components/Form/CustomFields.vue.js +2 -2
  23. package/components/Form/CustomFields.vue2.js +102 -97
  24. package/components/Form/Form.vue.d.ts +0 -1
  25. package/components/Form/Form.vue.js +2 -2
  26. package/components/Form/Form.vue2.js +137 -133
  27. package/components/Form/FormField.vue.d.ts +3 -0
  28. package/components/Form/FormField.vue.js +85 -82
  29. package/components/Form/FormFields.vue.d.ts +2 -0
  30. package/components/Form/FormFields.vue.js +1 -1
  31. package/components/Form/FormFields.vue2.js +96 -81
  32. package/components/Form/composables/useForm.d.ts +2 -0
  33. package/components/Form/composables/useForm.js +113 -107
  34. package/components/IconPicker.vue.js +3 -2
  35. package/components/ImportData/ImportData.vue.js +157 -142
  36. package/components/ImportData/ImportStep1.vue.d.ts +6 -0
  37. package/components/ImportData/ImportStep1.vue.js +69 -61
  38. package/components/ImportData/ImportStep2.vue.js +5 -97
  39. package/components/ImportData/ImportStep2.vue2.js +105 -2
  40. package/components/List/List.vue.js +205 -180
  41. package/components/Modal.vue.js +2 -2
  42. package/components/Modal.vue2.js +82 -96
  43. package/components/MultiSelect/MultiSelect.vue.js +7 -7
  44. package/components/Navbar/Navbar.vue.js +12 -12
  45. package/components/NavbarCommandPalette.vue.js +1 -1
  46. package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -0
  47. package/components/PermissionMatrix/PermissionEditor.vue.js +25 -23
  48. package/components/PermissionMatrix/PermissionEditorList.vue.js +1 -1
  49. package/components/PermissionMatrix/PermissionEditorList.vue2.js +84 -75
  50. package/components/PermissionMatrix/PermissionEditorMatrix.vue.d.ts +4 -1
  51. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +1 -1
  52. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +130 -112
  53. package/components/PermissionMatrix/PermissionMatrix.vue.js +2 -2
  54. package/components/PermissionMatrix/PermissionMatrix.vue2.js +161 -138
  55. package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
  56. package/components/Screen/Screen.vue.js +169 -166
  57. package/components/Screen/ScreenFilter.vue.js +3 -2
  58. package/components/SidePanel.vue.js +5 -146
  59. package/components/SidePanel.vue2.js +146 -2
  60. package/components/SidebarMenu/SidebarMenuItem.vue.js +26 -25
  61. package/components/Timeline/Timeline.vue.js +62 -57
  62. package/components/ToastNotification.vue.js +2 -2
  63. package/components/ToastNotification.vue2.js +103 -88
  64. package/components/Workbook/Sheet.vue.js +3 -2
  65. package/components/Workbook/Workbook.vue.js +5 -152
  66. package/components/Workbook/Workbook.vue2.js +166 -2
  67. package/package.json +1 -1
  68. package/style.css +3 -3
@@ -1,6 +1,6 @@
1
- import { defineComponent as y, ref as I, watch as f, computed as B, openBlock as s, createElementBlock as m, normalizeClass as b, renderSlot as r, Fragment as k, renderList as p, createBlock as z, createSlots as $, withCtx as v, mergeProps as g } from "vue";
2
- import x from "./AccordionItem.vue.js";
3
- const S = /* @__PURE__ */ y({
1
+ import { defineComponent as C, shallowRef as y, watch as u, computed as b, openBlock as f, createElementBlock as m, normalizeClass as z, renderSlot as s, Fragment as B, renderList as $, withMemo as k, createVNode as x, createSlots as M, withCtx as v, mergeProps as g } from "vue";
2
+ import A from "./AccordionItem.vue.js";
3
+ const E = /* @__PURE__ */ C({
4
4
  __name: "Accordion",
5
5
  props: {
6
6
  modelValue: {},
@@ -23,44 +23,55 @@ const S = /* @__PURE__ */ y({
23
23
  },
24
24
  emits: ["update:modelValue", "change"],
25
25
  setup(a, { emit: h }) {
26
- const l = a, c = h, t = I([]), u = (e) => Array.isArray(e) ? e : typeof e == "string" && e ? [e] : [];
27
- f(
26
+ const l = a, c = h, t = y([]), d = (e) => Array.isArray(e) ? e : typeof e == "string" && e ? [e] : [];
27
+ u(
28
28
  () => l.modelValue,
29
29
  (e) => {
30
- t.value = u(e);
30
+ t.value = d(e);
31
31
  },
32
32
  { immediate: !0 }
33
- ), f(
33
+ ), u(
34
34
  () => l.defaultValue,
35
35
  (e) => {
36
- !l.modelValue && e && (t.value = u(e));
36
+ !l.modelValue && e && (t.value = d(e));
37
37
  },
38
38
  { immediate: !0 }
39
39
  );
40
- const d = (e) => {
40
+ const r = (e) => {
41
41
  if (l.disabled) return;
42
42
  const i = t.value.includes(e);
43
43
  l.allowMultiple ? i ? t.value = t.value.filter((n) => n !== e) : t.value = [...t.value, e] : i ? t.value = [] : t.value = [e], V();
44
44
  }, V = () => {
45
45
  const e = l.allowMultiple ? t.value : t.value[0] || "";
46
46
  c("update:modelValue", e), c("change", e);
47
- }, C = B(() => {
47
+ }, w = b(() => {
48
48
  const e = ["w-full", l.class];
49
49
  return l.attached && (e.push("rounded-lg overflow-hidden"), (l.variant === "outline" || l.variant === "default" || l.variant === "solid") && e.push("border")), e.join(" ");
50
50
  });
51
- return (e, i) => (s(), m("div", {
52
- class: b(C.value)
51
+ return (e, i) => (f(), m("div", {
52
+ class: z(w.value)
53
53
  }, [
54
- r(e.$slots, "default", {}, () => [
55
- (s(!0), m(k, null, p(a.items, (n, w) => (s(), z(x, {
56
- key: n.id,
54
+ s(e.$slots, "default", {}, () => [
55
+ (f(!0), m(B, null, $(a.items, (n, I) => k([
56
+ n,
57
+ t.value.includes(n.id),
58
+ a.variant,
59
+ a.size,
60
+ a.attached,
61
+ a.disabled,
62
+ a.showIndex,
63
+ a.openIcon,
64
+ a.closeIcon,
65
+ a.iconVariant,
66
+ a.activeIconVariant
67
+ ], () => x(A, {
57
68
  item: n,
58
69
  "is-open": t.value.includes(n.id),
59
70
  variant: a.variant,
60
71
  size: a.size,
61
72
  attached: a.attached,
62
73
  disabled: a.disabled,
63
- index: w + 1,
74
+ index: I + 1,
64
75
  "show-index": a.showIndex,
65
76
  "open-icon": a.openIcon,
66
77
  "close-icon": a.closeIcon,
@@ -69,27 +80,29 @@ const S = /* @__PURE__ */ y({
69
80
  "trigger-class": a.triggerClass,
70
81
  "content-class": a.contentClass,
71
82
  "item-class": a.itemClass,
72
- onToggle: d
73
- }, $({ _: 2 }, [
83
+ onToggle: r
84
+ }, M({ _: 2 }, [
74
85
  e.$slots.trigger ? {
75
86
  name: "trigger",
76
87
  fn: v((o) => [
77
- r(e.$slots, "trigger", g({ ref_for: !0 }, o))
88
+ s(e.$slots, "trigger", g({ ref_for: !0 }, o))
78
89
  ]),
79
90
  key: "0"
80
91
  } : void 0,
81
92
  e.$slots.content ? {
82
93
  name: "content",
83
94
  fn: v((o) => [
84
- r(e.$slots, "content", g({ ref_for: !0 }, o, { close: d }))
95
+ s(e.$slots, "content", g({ ref_for: !0 }, o, { close: r }))
85
96
  ]),
86
97
  key: "1"
87
98
  } : void 0
88
- ]), 1032, ["item", "is-open", "variant", "size", "attached", "disabled", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "trigger-class", "content-class", "item-class"]))), 128))
99
+ ]), 1032, ["item", "is-open", "variant", "size", "attached", "disabled", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "trigger-class", "content-class", "item-class"]), {
100
+ key: n.id
101
+ }, 0)), 128))
89
102
  ])
90
103
  ], 2));
91
104
  }
92
105
  });
93
106
  export {
94
- S as default
107
+ E as default
95
108
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AccordionContent.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-aa189e08"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0075dffb"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, openBlock as h, createBlock as f, Transition as m, withCtx as p, createElementVNode as n, normalizeClass as u, renderSlot as v } from "vue";
2
- const _ = { class: "overflow-hidden text-sm transition-all duration-300 ease-in-out" }, E = /* @__PURE__ */ d({
2
+ const _ = { class: "overflow-hidden text-sm transition-all duration-300 ease-in-out content-wrapper" }, E = /* @__PURE__ */ d({
3
3
  __name: "AccordionContent",
4
4
  props: {
5
5
  class: { default: "" }
@@ -1,7 +1,7 @@
1
1
  import o from "./Breadcrumb.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-12cf2491"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4ca31ff0"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as B, ref as w, computed as l, openBlock as i, createElementBlock as m, normalizeClass as p, createElementVNode as s, Fragment as u, renderList as M, toDisplayString as v, createCommentVNode as h, createVNode as N, mergeProps as S, renderSlot as V } from "vue";
2
- import E from "./BreadcrumbItem.vue.js";
3
- const O = { class: "breadcrumb-list" }, _ = {
1
+ import { defineComponent as B, ref as M, computed as i, openBlock as m, createElementBlock as o, normalizeClass as p, createElementVNode as n, Fragment as b, renderList as N, withMemo as v, toDisplayString as h, createCommentVNode as g, createVNode as S, mergeProps as V, renderSlot as E } from "vue";
2
+ import O from "./BreadcrumbItem.vue.js";
3
+ const j = { class: "breadcrumb-list" }, D = {
4
4
  class: "breadcrumb-separator",
5
5
  "aria-hidden": "true"
6
- }, F = /* @__PURE__ */ B({
6
+ }, P = /* @__PURE__ */ B({
7
7
  __name: "Breadcrumb",
8
8
  props: {
9
9
  items: {},
@@ -14,82 +14,82 @@ const O = { class: "breadcrumb-list" }, _ = {
14
14
  class: { default: "" }
15
15
  },
16
16
  emits: ["item-click"],
17
- setup(n, { emit: x }) {
18
- const e = n, k = x, d = w(!0), c = l(() => !e.maxItems || !e.items ? !1 : e.items.length > e.maxItems && d.value), b = l(() => {
17
+ setup(s, { emit: k }) {
18
+ const e = s, x = k, f = M(!0), u = i(() => !e.maxItems || !e.items ? !1 : e.items.length > e.maxItems && f.value), c = i(() => {
19
19
  if (!e.items) return [];
20
- if (!c.value) return e.items;
21
- const t = e.maxItems, r = Math.max(t - 1, 1);
22
- return [e.items[0], ...e.items.slice(-r)];
23
- }), g = l(() => c.value ? 1 : -1);
24
- function C() {
25
- d.value = !1;
20
+ if (!u.value) return e.items;
21
+ const t = e.maxItems, a = Math.max(t - 1, 1);
22
+ return [e.items[0], ...e.items.slice(-a)];
23
+ }), C = i(() => u.value ? 1 : -1);
24
+ function z() {
25
+ f.value = !1;
26
26
  }
27
27
  function I(t) {
28
- if (!e.items || !c.value) return t;
29
- const r = e.maxItems, o = Math.max(r - 1, 1), a = e.items.length - o;
30
- return t === 0 ? 0 : a + (t - 1);
28
+ if (!e.items || !u.value) return t;
29
+ const a = e.maxItems, l = Math.max(a - 1, 1), r = e.items.length - l;
30
+ return t === 0 ? 0 : r + (t - 1);
31
31
  }
32
- function z(t) {
33
- k("item-click", { item: t.item, index: I(t.index) });
32
+ function w(t) {
33
+ x("item-click", { item: t.item, index: I(t.index) });
34
34
  }
35
- const y = l(() => {
35
+ const y = i(() => {
36
36
  const t = {
37
37
  default: "breadcrumb--default",
38
38
  contained: "breadcrumb--contained",
39
39
  pills: "breadcrumb--pills",
40
40
  arrow: "breadcrumb--arrow"
41
- }, r = {
41
+ }, a = {
42
42
  sm: "breadcrumb--sm",
43
43
  md: "breadcrumb--md",
44
44
  lg: "breadcrumb--lg"
45
45
  };
46
- return ["breadcrumb", t[e.variant], r[e.size], e.class].filter(Boolean).join(" ");
47
- }), f = l(() => ({
46
+ return ["breadcrumb", t[e.variant], a[e.size], e.class].filter(Boolean).join(" ");
47
+ }), d = i(() => ({
48
48
  slash: "/",
49
49
  chevron: "›",
50
50
  dot: "·",
51
51
  arrow: "→"
52
52
  })[e.separator] || "›");
53
- return (t, r) => (i(), m("nav", {
53
+ return (t, a) => (m(), o("nav", {
54
54
  class: p(y.value),
55
55
  "aria-label": "Breadcrumb"
56
56
  }, [
57
- s("ol", O, [
58
- n.items && n.items.length ? (i(!0), m(u, { key: 0 }, M(b.value, (o, a) => (i(), m(u, {
59
- key: o.label + a
57
+ n("ol", j, [
58
+ s.items && s.items.length ? (m(!0), o(b, { key: 0 }, N(c.value, (l, r) => (m(), o(b, {
59
+ key: l.label + r
60
60
  }, [
61
- a > 0 ? (i(), m("li", {
61
+ r > 0 ? v([d.value, e.separator], () => (m(), o("li", {
62
62
  key: 0,
63
63
  class: p(["breadcrumb-separator", (e.separator == "chevron" || e?.separator === "dot") && "text-fs-3!"]),
64
64
  "aria-hidden": "true"
65
65
  }, [
66
- s("span", null, v(f.value), 1)
67
- ], 2)) : h("", !0),
68
- a === g.value ? (i(), m(u, { key: 1 }, [
69
- s("li", _, [
70
- s("span", null, v(f.value), 1)
66
+ n("span", null, h(d.value), 1)
67
+ ], 2)), a, 0) : g("", !0),
68
+ r === C.value ? (m(), o(b, { key: 1 }, [
69
+ n("li", D, [
70
+ n("span", null, h(d.value), 1)
71
71
  ]),
72
- s("li", { class: "breadcrumb-ellipsis" }, [
73
- s("button", {
72
+ n("li", { class: "breadcrumb-ellipsis" }, [
73
+ n("button", {
74
74
  type: "button",
75
75
  class: "breadcrumb-ellipsis-btn",
76
76
  "aria-label": "Show all breadcrumb items",
77
- onClick: C
77
+ onClick: z
78
78
  }, " … ")
79
79
  ])
80
- ], 64)) : h("", !0),
81
- N(E, S({ ref_for: !0 }, o, {
82
- size: n.size,
83
- variant: n.variant,
84
- "is-current": a === b.value.length - 1,
85
- "item-index": a,
86
- onItemClick: z
87
- }), null, 16, ["size", "variant", "is-current", "item-index"])
88
- ], 64))), 128)) : V(t.$slots, "default", { key: 1 }, void 0, !0)
80
+ ], 64)) : g("", !0),
81
+ v([l, s.size, s.variant, r === c.value.length - 1], () => S(O, V({ ref_for: !0 }, l, {
82
+ size: s.size,
83
+ variant: s.variant,
84
+ "is-current": r === c.value.length - 1,
85
+ "item-index": r,
86
+ onItemClick: w
87
+ }), null, 16, ["size", "variant", "is-current", "item-index"]), a, 1)
88
+ ], 64))), 128)) : E(t.$slots, "default", { key: 1 }, void 0, !0)
89
89
  ])
90
90
  ], 2));
91
91
  }
92
92
  });
93
93
  export {
94
- F as default
94
+ P as default
95
95
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Carousel.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-655a78c8"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4034dab4"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as g, ref as f, openBlock as p, createElementBlock as m, createVNode as c, unref as v, mergeProps as P, createSlots as h, renderList as y, withCtx as S, renderSlot as x, normalizeProps as B, guardReactiveProps as N } from "vue";
1
+ import { defineComponent as g, shallowRef as f, openBlock as p, createElementBlock as m, createVNode as c, unref as v, mergeProps as P, createSlots as h, renderList as y, withCtx as S, renderSlot as x, normalizeProps as B, guardReactiveProps as N } from "vue";
2
2
  import _ from "vue-carousel-lite";
3
3
  import "vue-carousel-lite/style.css";
4
- const T = { class: "carousel-wrapper" }, V = /* @__PURE__ */ g({
4
+ const w = { class: "carousel-wrapper" }, V = /* @__PURE__ */ g({
5
5
  __name: "Carousel",
6
6
  props: {
7
7
  data: { default: () => [] },
@@ -45,7 +45,7 @@ const T = { class: "carousel-wrapper" }, V = /* @__PURE__ */ g({
45
45
  goPrevPage: (e) => {
46
46
  o.value?.goPrevPage(e);
47
47
  }
48
- }), (e, t) => (p(), m("div", T, [
48
+ }), (e, t) => (p(), m("div", w, [
49
49
  c(v(_), P({
50
50
  ref_key: "carouselRef",
51
51
  ref: o
@@ -1,9 +1,10 @@
1
- import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as c, createCommentVNode as m, createElementVNode as $, mergeProps as w } from "vue";
1
+ import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as m, createCommentVNode as c, createElementVNode as $, mergeProps as w } from "vue";
2
2
  import B from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
4
  import O from "../Input.vue.js";
5
5
  /* empty css */
6
6
  import "../../core/config.js";
7
+ /* empty css */
7
8
  import y from "../Button.vue.js";
8
9
  import E from "./ColorIro.vue.js";
9
10
  /* empty css */
@@ -14,7 +15,7 @@ const I = {
14
15
  }, N = {
15
16
  key: 0,
16
17
  class: "flex items-center gap-1.5 w-full"
17
- }, D = { class: "w-32" }, K = /* @__PURE__ */ z({
18
+ }, D = { class: "w-32" }, L = /* @__PURE__ */ z({
18
19
  __name: "ColorPicker",
19
20
  props: {
20
21
  modelValue: { default: "#000000" },
@@ -26,7 +27,7 @@ const I = {
26
27
  },
27
28
  emits: ["update:modelValue", "change"],
28
29
  setup(o, { emit: V }) {
29
- const n = o, d = V, r = p(!1), t = p(n.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
30
+ const r = o, d = V, n = p(!1), t = p(r.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
30
31
  i(k, (e) => {
31
32
  e && (t.value = e);
32
33
  });
@@ -38,12 +39,12 @@ const I = {
38
39
  }
39
40
  };
40
41
  i(
41
- () => n.modelValue,
42
+ () => r.modelValue,
42
43
  (e) => {
43
44
  e && e !== t.value && (t.value = e);
44
45
  }
45
46
  ), i(t, (e) => {
46
- /^#([0-9A-F]{3,8})$/i.test(e) && e !== n.modelValue && (d("update:modelValue", e), d("change", e));
47
+ /^#([0-9A-F]{3,8})$/i.test(e) && e !== r.modelValue && (d("update:modelValue", e), d("change", e));
47
48
  });
48
49
  const C = (e) => {
49
50
  t.value = e;
@@ -55,11 +56,11 @@ const I = {
55
56
  offset: [0, 8],
56
57
  searchable: !1,
57
58
  "close-on-select": !1,
58
- onOnOpen: l[1] || (l[1] = (s) => r.value = !0),
59
- onOnClose: l[2] || (l[2] = (s) => r.value = !1)
59
+ onOnOpen: l[1] || (l[1] = (s) => n.value = !0),
60
+ onOnClose: l[2] || (l[2] = (s) => n.value = !1)
60
61
  }, {
61
62
  trigger: u(({ isOpen: s }) => [
62
- c(y, w({
63
+ m(y, w({
63
64
  style: { backgroundColor: o.modelValue }
64
65
  }, {
65
66
  rounded: "full",
@@ -70,8 +71,8 @@ const I = {
70
71
  }), null, 16, ["style"])
71
72
  ]),
72
73
  default: u(() => [
73
- r.value ? (a(), h("div", I, [
74
- c(E, {
74
+ n.value ? (a(), h("div", I, [
75
+ m(E, {
75
76
  color: o.modelValue,
76
77
  "show-header": !1,
77
78
  size: o.size,
@@ -86,9 +87,9 @@ const I = {
86
87
  variant: "outline",
87
88
  size: "sm",
88
89
  class: "px-2 shrink-0"
89
- })) : m("", !0),
90
+ })) : c("", !0),
90
91
  $("div", D, [
91
- c(O, {
92
+ m(O, {
92
93
  modelValue: t.value,
93
94
  "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
94
95
  size: "sm",
@@ -98,16 +99,16 @@ const I = {
98
99
  "input-class": "font-mono text-xs uppercase "
99
100
  }, null, 8, ["modelValue"])
100
101
  ])
101
- ])) : m("", !0)
102
+ ])) : c("", !0)
102
103
  ]),
103
104
  _: 1
104
105
  }, 8, ["color", "size"])
105
- ])) : m("", !0)
106
+ ])) : c("", !0)
106
107
  ]),
107
108
  _: 1
108
109
  }, 8, ["disabled", "position"]));
109
110
  }
110
111
  });
111
112
  export {
112
- K as default
113
+ L as default
113
114
  };
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem.vue2.js";
7
+ import ee from "./CommandPaletteItem.vue.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3.5 border-b border-border/60 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -1,13 +1,13 @@
1
- import { defineComponent as N, ref as b, watch as d, computed as u, openBlock as a, createElementBlock as i, normalizeClass as f, Fragment as P, renderList as y, renderSlot as s, createBlock as I, resolveDynamicComponent as k, createVNode as h, unref as v, mergeProps as p, createCommentVNode as T } from "vue";
2
- import L from "../Pagination/Pagination.vue.js";
3
- import x from "../Empty/Empty.vue.js";
4
- const z = { class: "flex flex-col w-full" }, E = {
1
+ import { defineComponent as x, ref as z, computed as m, markRaw as P, watch as y, openBlock as n, createElementBlock as l, normalizeClass as p, Fragment as I, renderList as k, renderSlot as g, withMemo as v, createBlock as h, resolveDynamicComponent as w, createVNode as T, unref as C, mergeProps as $, createCommentVNode as B } from "vue";
2
+ import E from "../Pagination/Pagination.vue.js";
3
+ import F from "../Empty/Empty.vue.js";
4
+ const M = { class: "flex flex-col w-full" }, O = {
5
5
  key: 1,
6
6
  class: "h-48 rounded-lg bg-gray-200 animate-pulse w-full"
7
- }, F = {
7
+ }, R = {
8
8
  key: 3,
9
9
  class: "mt-8 w-full"
10
- }, j = /* @__PURE__ */ N({
10
+ }, A = /* @__PURE__ */ x({
11
11
  __name: "DataList",
12
12
  props: {
13
13
  data: { default: () => [] },
@@ -34,84 +34,87 @@ const z = { class: "flex flex-col w-full" }, E = {
34
34
  delete: {}
35
35
  },
36
36
  emits: ["change"],
37
- setup(e, { emit: C }) {
38
- const n = e, w = C, o = b(n.pageInfo?.itemsPerPage || n.paginationProps?.itemsPerPage || 10);
39
- d(
40
- () => n.pageInfo?.itemsPerPage,
37
+ setup(e, { emit: N }) {
38
+ const a = e, D = N, i = z(a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10), d = m(() => a.item ? P(a.item) : void 0), u = m(() => {
39
+ const t = a.skeleton || a.skelton;
40
+ return t ? P(t) : void 0;
41
+ });
42
+ y(
43
+ () => a.pageInfo?.itemsPerPage,
41
44
  (t) => {
42
- t !== void 0 && (o.value = t);
45
+ t !== void 0 && (i.value = t);
43
46
  }
44
- ), d(
45
- () => n.paginationProps?.itemsPerPage,
47
+ ), y(
48
+ () => a.paginationProps?.itemsPerPage,
46
49
  (t) => {
47
- t !== void 0 && (o.value = t);
50
+ t !== void 0 && (i.value = t);
48
51
  }
49
52
  );
50
- let m = null;
51
- const g = (t, r) => {
52
- m && clearTimeout(m), m = setTimeout(() => {
53
- w("change", { page: t, limit: r });
53
+ let c = null;
54
+ const f = (t, s) => {
55
+ c && clearTimeout(c), c = setTimeout(() => {
56
+ D("change", { page: t, limit: s });
54
57
  }, 10);
55
- }, $ = (t) => {
56
- g(t, o.value);
57
- }, B = (t) => {
58
- o.value = t, g(n.pageInfo?.currentPage || 1, t);
58
+ }, b = (t) => {
59
+ f(t, i.value);
60
+ }, L = (t) => {
61
+ i.value = t, f(a.pageInfo?.currentPage || 1, t);
59
62
  };
60
- u(() => n.pageInfo?.currentPage || 1);
61
- const D = u(() => n.pageInfo?.totalPages || 1);
62
- return (t, r) => (a(), i("div", z, [
63
- e.loading ? (a(), i("div", {
63
+ m(() => a.pageInfo?.currentPage || 1);
64
+ const S = m(() => a.pageInfo?.totalPages || 1);
65
+ return (t, s) => (n(), l("div", M, [
66
+ e.loading ? (n(), l("div", {
64
67
  key: 0,
65
- class: f(e.className)
68
+ class: p(e.className)
66
69
  }, [
67
- (a(), i(P, null, y(8, (l) => s(t.$slots, "skeleton", {
68
- key: "skeleton-" + l,
69
- index: l
70
+ (n(), l(I, null, k(8, (o) => g(t.$slots, "skeleton", {
71
+ key: "skeleton-" + o,
72
+ index: o
70
73
  }, () => [
71
- s(t.$slots, "skelton", { index: l }, () => [
72
- e.skeleton || e.skelton ? (a(), I(k(e.skeleton || e.skelton), { key: 0 })) : (a(), i("div", E))
74
+ g(t.$slots, "skelton", { index: o }, () => [
75
+ u.value ? v([o], () => (n(), h(w(u.value), { key: 0 })), s, 0) : (n(), l("div", O))
73
76
  ])
74
77
  ])), 64))
75
- ], 2)) : !e.data || e.data.length === 0 ? s(t.$slots, "empty", { key: 1 }, () => [
76
- h(v(x), {
78
+ ], 2)) : !e.data || e.data.length === 0 ? g(t.$slots, "empty", { key: 1 }, () => [
79
+ T(C(F), {
77
80
  title: e.emptyTitle,
78
81
  titleI18n: e.emptyTitleI18n,
79
82
  description: e.emptyDescription,
80
83
  descriptionI18n: e.emptyDescriptionI18n,
81
84
  icon: e.emptyIcon
82
85
  }, null, 8, ["title", "titleI18n", "description", "descriptionI18n", "icon"])
83
- ]) : (a(), i("div", {
86
+ ]) : (n(), l("div", {
84
87
  key: 2,
85
- class: f(e.className)
88
+ class: p(e.className)
86
89
  }, [
87
- (a(!0), i(P, null, y(e.data, (l, c) => s(t.$slots, "item", {
88
- key: c,
89
- item: l,
90
+ (n(!0), l(I, null, k(e.data, (o, r) => g(t.$slots, "item", {
91
+ key: r,
92
+ item: o,
90
93
  data: e.data,
91
- index: c
94
+ index: r
92
95
  }, () => [
93
- e.item ? (a(), I(k(e.item), p({
96
+ d.value ? v([o, r], () => (n(), h(w(d.value), $({
94
97
  key: 0,
95
- item: l,
98
+ item: o,
96
99
  data: e.data,
97
- index: c
98
- }, { ref_for: !0 }, e.itemProps), null, 16, ["item", "data", "index"])) : T("", !0)
100
+ index: r
101
+ }, { ref_for: !0 }, e.itemProps), null, 16, ["item", "data", "index"])), s, 1) : B("", !0)
99
102
  ])), 128))
100
103
  ], 2)),
101
- e.showPagination && e.pageInfo && D.value > 1 ? (a(), i("div", F, [
102
- h(v(L), p({
104
+ e.showPagination && e.pageInfo && S.value > 1 ? (n(), l("div", R, [
105
+ T(C(E), $({
103
106
  "current-page": e.pageInfo?.currentPage,
104
107
  "total-pages": e.pageInfo?.totalPages,
105
108
  "total-items": e.pageInfo?.totalItems,
106
109
  navType: "icon"
107
110
  }, e.paginationProps, {
108
- onChange: $,
109
- "onUpdate:itemsPerPage": B
111
+ onChange: b,
112
+ "onUpdate:itemsPerPage": L
110
113
  }), null, 16, ["current-page", "total-pages", "total-items"])
111
- ])) : T("", !0)
114
+ ])) : B("", !0)
112
115
  ]));
113
116
  }
114
117
  });
115
118
  export {
116
- j as default
119
+ A as default
117
120
  };