vlite3 0.7.15 → 0.8.2

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/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/ColorIro.vue3.js +2 -2
  9. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  10. package/components/CommandPalette/CommandPaletteContent.vue.js +1 -1
  11. package/components/CommandPalette/CommandPaletteContent.vue2.js +2 -2
  12. package/components/Dropdown/DropdownTrigger.vue.js +1 -1
  13. package/components/FilePicker/FilePicker.vue.js +16 -16
  14. package/components/FileTree/FileTree.vue.js +5 -147
  15. package/components/FileTree/FileTree.vue2.js +164 -2
  16. package/components/FileTree/FileTreeNode.vue.js +89 -84
  17. package/components/Form/CustomFields.vue.js +2 -2
  18. package/components/Form/CustomFields.vue2.js +1 -1
  19. package/components/Form/Form.vue.js +1 -1
  20. package/components/Form/Form.vue2.js +133 -129
  21. package/components/Form/FormField.vue.d.ts +3 -0
  22. package/components/Form/FormField.vue.js +85 -82
  23. package/components/Form/FormFields.vue.d.ts +2 -0
  24. package/components/Form/FormFields.vue.js +2 -2
  25. package/components/Form/FormFields.vue2.js +55 -52
  26. package/components/Form/composables/useForm.d.ts +2 -0
  27. package/components/Form/composables/useForm.js +113 -107
  28. package/components/ImportData/ImportData.vue.js +157 -142
  29. package/components/ImportData/ImportStep1.vue.d.ts +6 -0
  30. package/components/ImportData/ImportStep1.vue.js +69 -61
  31. package/components/ImportData/ImportStep2.vue.js +5 -98
  32. package/components/ImportData/ImportStep2.vue2.js +105 -2
  33. package/components/Kanban/Kanban.vue.js +1 -1
  34. package/components/Kanban/Kanban.vue2.js +1 -1
  35. package/components/Kanban/KanbanBoard.vue.js +1 -1
  36. package/components/Kanban/KanbanBoard.vue2.js +92 -83
  37. package/components/Kanban/useKanbanBoard.d.ts +1 -1
  38. package/components/Kanban/useKanbanBoard.js +17 -17
  39. package/components/List/ListFieldRow.vue.js +4 -6
  40. package/components/MultiSelect/MultiSelect.vue.js +10 -4
  41. package/components/NavbarCommandPalette.vue.js +2 -2
  42. package/components/NumberInput.vue.js +2 -2
  43. package/components/NumberInput.vue2.js +1 -1
  44. package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -0
  45. package/components/PermissionMatrix/PermissionEditor.vue.js +25 -23
  46. package/components/PermissionMatrix/PermissionEditorMatrix.vue.d.ts +4 -1
  47. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +2 -2
  48. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +48 -45
  49. package/components/Screen/ScreenFilter.vue.js +1 -1
  50. package/components/Timeline/Timeline.vue.js +62 -57
  51. package/components/ToastNotification.vue.js +2 -2
  52. package/components/ToastNotification.vue2.js +103 -88
  53. package/components/Workbook/Workbook.vue.js +5 -152
  54. package/components/Workbook/Workbook.vue2.js +166 -2
  55. package/package.json +1 -1
  56. package/style.css +3 -3
  57. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
@@ -1,4 +1,166 @@
1
- import f from "./FileTree.vue.js";
1
+ import { defineComponent as Q, ref as E, shallowRef as T, watch as C, computed as g, openBlock as v, createElementBlock as k, normalizeClass as q, Fragment as V, renderList as z, isMemoSame as F, createBlock as $, toDisplayString as A } from "vue";
2
+ import P from "./FileTreeNode.vue.js";
3
+ import { $t as w } from "../../utils/i18n.js";
4
+ const R = {
5
+ key: 1,
6
+ class: "text-sm text-muted-foreground p-4 text-center"
7
+ }, J = /* @__PURE__ */ Q({
8
+ __name: "FileTree",
9
+ props: {
10
+ modelValue: { default: () => [] },
11
+ data: { default: () => [] },
12
+ selectionMode: { default: "single" },
13
+ showCheckboxes: { type: Boolean, default: !1 },
14
+ defaultExpandedKeys: { default: () => [] },
15
+ loadData: {},
16
+ highlightSearch: { type: Boolean, default: !1 },
17
+ searchQuery: {},
18
+ class: {},
19
+ emptyText: {},
20
+ emptyTextI18n: {}
21
+ },
22
+ emits: ["update:modelValue", "select", "expand", "node-click"],
23
+ setup(h, { emit: L }) {
24
+ const s = h, m = L, o = E(new Set(s.defaultExpandedKeys)), f = E(/* @__PURE__ */ new Set()), p = T(/* @__PURE__ */ new Map()), S = T(/* @__PURE__ */ new Map()), I = (t, l) => {
25
+ const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = (n, c) => {
26
+ for (const r of n)
27
+ e.set(r.id, r), c && i.set(r.id, c), r.children && a(r.children, r.id);
28
+ };
29
+ a(t, l), p.value = e, S.value = i;
30
+ };
31
+ C(
32
+ () => s.data,
33
+ (t) => {
34
+ I(t);
35
+ },
36
+ { immediate: !0, deep: !0 }
37
+ );
38
+ const x = (t) => {
39
+ let l = [];
40
+ if (t.children)
41
+ for (const e of t.children)
42
+ l.push(e.id), l = l.concat(x(e));
43
+ return l;
44
+ }, y = g(() => new Set(s.modelValue)), b = g(() => {
45
+ const t = /* @__PURE__ */ new Set();
46
+ if (s.selectionMode !== "multiple") return t;
47
+ const l = (e) => {
48
+ if (!e.children || e.children.length === 0)
49
+ return y.value.has(e.id) ? { status: "checked" } : { status: "unchecked" };
50
+ let i = !1, a = !1, n = !1;
51
+ for (const c of e.children) {
52
+ const r = l(c);
53
+ r.status === "checked" && (i = !0), r.status === "unchecked" && (a = !0), r.status === "indeterminate" && (n = !0);
54
+ }
55
+ return n || i && a ? (t.add(e.id), { status: "indeterminate" }) : i ? { status: "checked" } : { status: "unchecked" };
56
+ };
57
+ return s.data.forEach(l), t;
58
+ }), D = async (t) => {
59
+ if (t.disabled) return;
60
+ if (o.value.has(t.id)) {
61
+ const e = new Set(o.value);
62
+ e.delete(t.id);
63
+ const i = p.value.get(t.id) || t;
64
+ x(i).forEach((n) => e.delete(n)), o.value = e, m("expand", t, !1);
65
+ } else {
66
+ const e = new Set(o.value);
67
+ if (e.add(t.id), o.value = e, m("expand", t, !0), s.loadData && !t.isLoaded && (!t.children || t.children.length === 0)) {
68
+ const i = new Set(f.value);
69
+ i.add(t.id), f.value = i;
70
+ try {
71
+ await s.loadData(t);
72
+ } finally {
73
+ const a = new Set(f.value);
74
+ a.delete(t.id), f.value = a;
75
+ }
76
+ }
77
+ }
78
+ }, K = (t) => {
79
+ if (t.disabled) return;
80
+ const l = p.value.get(t.id) || t;
81
+ let e = new Set(y.value);
82
+ const i = e.has(t.id);
83
+ if (s.selectionMode === "single")
84
+ e.clear(), i || e.add(t.id);
85
+ else if (s.selectionMode === "multiple") {
86
+ const a = x(l), n = !i, c = (d, u) => {
87
+ u ? e.add(d) : e.delete(d);
88
+ };
89
+ c(t.id, n), a.forEach((d) => c(d, n));
90
+ let r = l;
91
+ for (; ; ) {
92
+ const d = S.value.get(r.id);
93
+ if (!d) break;
94
+ const u = p.value.get(d);
95
+ if (!u || !u.children) break;
96
+ u.children.every((N) => e.has(N.id)) ? e.add(u.id) : e.delete(u.id), r = u;
97
+ }
98
+ }
99
+ m("update:modelValue", Array.from(e)), m("select", l, !i);
100
+ }, M = g(() => {
101
+ if (!s.searchQuery) return s.data;
102
+ const t = s.searchQuery.toLowerCase(), l = (e) => {
103
+ const a = (e.labelI18n ? w(e.labelI18n) : e.label).toLowerCase().includes(t), n = !!e.searchMatch;
104
+ let c = [];
105
+ return e.children && (c = e.children.map(l).filter((r) => r !== null)), a || n || c.length > 0 ? {
106
+ ...e,
107
+ children: c
108
+ } : null;
109
+ };
110
+ return s.data.map(l).filter((e) => e !== null);
111
+ });
112
+ C(
113
+ () => [s.searchQuery, s.data],
114
+ ([t]) => {
115
+ if (t) {
116
+ const l = t.toLowerCase(), e = /* @__PURE__ */ new Set(), i = (a) => {
117
+ let n = !1;
118
+ if (a.children)
119
+ for (const d of a.children)
120
+ i(d) && (n = !0);
121
+ const r = (a.labelI18n ? w(a.labelI18n) : a.label).toLowerCase().includes(l) || !!a.searchMatch;
122
+ return n && e.add(a.id), r || n;
123
+ };
124
+ if (s.data.forEach(i), e.size > 0) {
125
+ const a = new Set(o.value);
126
+ e.forEach((n) => a.add(n)), o.value = a;
127
+ }
128
+ }
129
+ },
130
+ { deep: !0 }
131
+ );
132
+ const B = g(() => {
133
+ if (s.emptyTextI18n) return w(s.emptyTextI18n);
134
+ if (s.emptyText) return s.emptyText;
135
+ const t = w("vlite.fileTree.emptyText");
136
+ return t !== "vlite.fileTree.emptyText" ? t : "No results found.";
137
+ });
138
+ return (t, l) => (v(), k("div", {
139
+ class: q(["w-full h-full overflow-y-auto file-tree-container", s.class])
140
+ }, [
141
+ M.value.length > 0 ? (v(!0), k(V, { key: 0 }, z(M.value, (e, i, a, n) => {
142
+ const c = [e, y.value, o.value, b.value, f.value, h.highlightSearch, h.searchQuery];
143
+ if (n && n.key === e.id && F(n, c)) return n;
144
+ const r = (v(), $(P, {
145
+ key: e.id,
146
+ node: e,
147
+ "selection-mode": h.selectionMode,
148
+ "selected-keys": y.value,
149
+ "expanded-keys": o.value,
150
+ "indeterminate-keys": b.value,
151
+ "loading-keys": f.value,
152
+ "show-checkboxes": h.showCheckboxes,
153
+ "highlight-search": h.highlightSearch,
154
+ "search-query": h.searchQuery,
155
+ onToggleExpand: D,
156
+ onToggleSelect: K,
157
+ onClickNode: l[0] || (l[0] = (d) => m("node-click", d))
158
+ }, null, 8, ["node", "selection-mode", "selected-keys", "expanded-keys", "indeterminate-keys", "loading-keys", "show-checkboxes", "highlight-search", "search-query"]));
159
+ return r.memo = c, r;
160
+ }, l, 1), 128)) : (v(), k("div", R, A(B.value), 1))
161
+ ], 2));
162
+ }
163
+ });
2
164
  export {
3
- f as default
165
+ J as default
4
166
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as q, computed as c, resolveComponent as z, openBlock as s, createElementBlock as d, createElementVNode as r, normalizeClass as y, normalizeStyle as f, withModifiers as M, createVNode as N, createCommentVNode as k, createBlock as u, Fragment as v, renderList as p, toDisplayString as w } from "vue";
2
- import g from "../Icon.vue.js";
3
- import V from "../CheckBox.vue.js";
4
- import { $t as D } from "../../utils/i18n.js";
5
- const O = { class: "flex flex-col select-none" }, j = ["title"], U = {
1
+ import { defineComponent as O, computed as a, resolveComponent as j, openBlock as s, createElementBlock as d, createElementVNode as c, normalizeClass as k, normalizeStyle as b, withModifiers as $, createVNode as B, createCommentVNode as v, createBlock as g, Fragment as K, renderList as C, toDisplayString as M, isMemoSame as U } from "vue";
2
+ import m from "../Icon.vue.js";
3
+ import A from "../CheckBox.vue.js";
4
+ import { $t as G } from "../../utils/i18n.js";
5
+ const H = { class: "flex flex-col select-none" }, J = ["title"], R = {
6
6
  key: 1,
7
7
  class: "w-6 mr-1"
8
- }, A = { class: "mr-2 text-muted-foreground shrink-0" }, G = { class: "flex-1 truncate text-sm font-medium" }, H = { class: "mr-2 text-gray-400 select-none shrink-0" }, J = { class: "truncate" }, R = {
8
+ }, W = { class: "mr-2 text-muted-foreground shrink-0" }, X = { class: "flex-1 truncate text-sm font-medium" }, Y = { class: "mr-2 text-gray-400 select-none shrink-0" }, Z = { class: "truncate" }, _ = {
9
9
  key: 0,
10
10
  class: "relative flex flex-col"
11
- }, _ = /* @__PURE__ */ q({
11
+ }, oe = /* @__PURE__ */ O({
12
12
  name: "FileTreeNode",
13
13
  __name: "FileTreeNode",
14
14
  props: {
@@ -24,19 +24,19 @@ const O = { class: "flex flex-col select-none" }, j = ["title"], U = {
24
24
  searchQuery: {}
25
25
  },
26
26
  emits: ["toggle-expand", "toggle-select", "click-node"],
27
- setup(e, { emit: S }) {
28
- const n = e, m = S, b = c(() => n.selectedKeys.has(n.node.id)), F = c(() => n.indeterminateKeys.has(n.node.id)), x = c(() => n.expandedKeys.has(n.node.id)), C = c(() => n.loadingKeys.has(n.node.id)), h = c(
27
+ setup(e, { emit: E }) {
28
+ const n = e, y = E, w = a(() => n.selectedKeys.has(n.node.id)), I = a(() => n.indeterminateKeys.has(n.node.id)), x = a(() => n.expandedKeys.has(n.node.id)), L = a(() => n.loadingKeys.has(n.node.id)), h = a(
29
29
  () => n.node.isFolder || n.node.children && n.node.children.length > 0
30
- ), T = c(() => n.depth * 20 + "px"), K = c(() => n.node.labelI18n ? D(n.node.labelI18n) : n.node.label), $ = c(() => {
31
- const t = K.value, l = 35;
30
+ ), Q = a(() => n.depth * 20 + "px"), S = a(() => n.node.labelI18n ? G(n.node.labelI18n) : n.node.label), P = a(() => {
31
+ const t = S.value, l = 35;
32
32
  if (t.length <= l) return t;
33
33
  const o = t.lastIndexOf(".");
34
34
  if (o === -1 || t.length - o > 10)
35
35
  return t.substring(0, l) + "...";
36
- const i = t.substring(o), a = t.substring(0, o), Q = Math.max(0, l - i.length - 3);
37
- return a.substring(0, Q) + "..." + i;
38
- }), B = c(() => {
39
- const t = $.value;
36
+ const i = t.substring(o), r = t.substring(0, o), N = Math.max(0, l - i.length - 3);
37
+ return r.substring(0, N) + "..." + i;
38
+ }), q = a(() => {
39
+ const t = P.value;
40
40
  if (!n.highlightSearch || !n.searchQuery)
41
41
  return [{ text: t, highlight: !1 }];
42
42
  const l = n.searchQuery.toLowerCase(), o = t.toLowerCase().indexOf(l);
@@ -48,7 +48,7 @@ const O = { class: "flex flex-col select-none" }, j = ["title"], U = {
48
48
  },
49
49
  { text: t.slice(o + l.length), highlight: !1 }
50
50
  ];
51
- }), E = c(() => {
51
+ }), z = a(() => {
52
52
  const t = n.node.searchMatch;
53
53
  if (!t) return [];
54
54
  const l = t.line_content, o = t.match_start, i = t.match_length;
@@ -57,129 +57,134 @@ const O = { class: "flex flex-col select-none" }, j = ["title"], U = {
57
57
  { text: l.substring(o, o + i), highlight: !0 },
58
58
  { text: l.substring(o + i), highlight: !1 }
59
59
  ];
60
- }), L = (t) => {
61
- t && t.stopPropagation(), m("toggle-expand", n.node);
62
- }, I = () => {
63
- m("toggle-select", n.node);
64
- }, P = (t) => {
65
- t.stopPropagation(), h.value ? L() : n.selectionMode !== "none" && m("toggle-select", n.node), m("click-node", n.node);
60
+ }), p = (t) => {
61
+ t && t.stopPropagation(), y("toggle-expand", n.node);
62
+ }, V = () => {
63
+ y("toggle-select", n.node);
64
+ }, D = (t) => {
65
+ t.stopPropagation(), h.value ? p() : n.selectionMode !== "none" && y("toggle-select", n.node), y("click-node", n.node);
66
66
  };
67
67
  return (t, l) => {
68
- const o = z("FileTreeNode", !0);
69
- return s(), d("div", O, [
70
- r("div", {
71
- class: y(["group flex flex-col rounded-md transition-colors cursor-pointer", {
72
- "bg-accent/50 text-accent-foreground": b.value && e.selectionMode === "single" && !e.showCheckboxes,
73
- "hover:bg-accent/50": !b.value || e.selectionMode !== "single",
68
+ const o = j("FileTreeNode", !0);
69
+ return s(), d("div", H, [
70
+ c("div", {
71
+ class: k(["group flex flex-col rounded-md transition-colors cursor-pointer", {
72
+ "bg-accent/50 text-accent-foreground": w.value && e.selectionMode === "single" && !e.showCheckboxes,
73
+ "hover:bg-accent/50": !w.value || e.selectionMode !== "single",
74
74
  "opacity-50 pointer-events-none": e.node.disabled
75
75
  }]),
76
- onClick: P,
77
- title: K.value
76
+ onClick: D,
77
+ title: S.value
78
78
  }, [
79
- r("div", {
79
+ c("div", {
80
80
  class: "flex items-center py-1 pr-2 min-h-[32px]",
81
- style: f({ paddingLeft: T.value })
81
+ style: b({ paddingLeft: Q.value })
82
82
  }, [
83
83
  h.value ? (s(), d("button", {
84
84
  key: 0,
85
85
  type: "button",
86
- class: y(["p-1 mr-1 rounded-sm hover:bg-muted text-muted-foreground transition-transform duration-200 focus:outline-none", { "rotate-90": x.value }]),
87
- onClick: M(L, ["stop"])
86
+ class: k(["p-1 mr-1 rounded-sm hover:bg-muted text-muted-foreground transition-transform duration-200 focus:outline-none", { "rotate-90": x.value }]),
87
+ onClick: $(p, ["stop"])
88
88
  }, [
89
- N(g, {
89
+ B(m, {
90
90
  icon: "lucide:chevron-right",
91
91
  class: "w-4 h-4"
92
92
  })
93
- ], 2)) : (s(), d("div", U)),
93
+ ], 2)) : (s(), d("div", R)),
94
94
  e.showCheckboxes && e.selectionMode !== "none" ? (s(), d("div", {
95
95
  key: 2,
96
96
  class: "mr-2 flex items-center justify-center bg-transparent",
97
- onClick: l[0] || (l[0] = M(() => {
97
+ onClick: l[0] || (l[0] = $(() => {
98
98
  }, ["stop"]))
99
99
  }, [
100
- N(V, {
101
- checked: b.value,
102
- indeterminate: F.value,
100
+ B(A, {
101
+ checked: w.value,
102
+ indeterminate: I.value,
103
103
  disabled: e.node.disabled,
104
- "onUpdate:checked": I,
104
+ "onUpdate:checked": V,
105
105
  rounded: "sm",
106
106
  size: "sm"
107
107
  }, null, 8, ["checked", "indeterminate", "disabled"])
108
- ])) : k("", !0),
109
- r("div", A, [
110
- C.value ? (s(), u(g, {
108
+ ])) : v("", !0),
109
+ c("div", W, [
110
+ L.value ? (s(), g(m, {
111
111
  key: 0,
112
112
  icon: "lucide:loader-2",
113
113
  class: "w-4 h-4 animate-spin"
114
- })) : e.node.icon ? (s(), u(g, {
114
+ })) : e.node.icon ? (s(), g(m, {
115
115
  key: 1,
116
116
  icon: e.node.icon,
117
117
  class: "w-4 h-4"
118
- }, null, 8, ["icon"])) : h.value ? (s(), u(g, {
118
+ }, null, 8, ["icon"])) : h.value ? (s(), g(m, {
119
119
  key: 2,
120
120
  icon: x.value ? "lucide:folder-open" : "lucide:folder",
121
121
  class: "w-4 h-4"
122
- }, null, 8, ["icon"])) : (s(), u(g, {
122
+ }, null, 8, ["icon"])) : (s(), g(m, {
123
123
  key: 3,
124
124
  icon: "lucide:file",
125
125
  class: "w-4 h-4"
126
126
  }))
127
127
  ]),
128
- r("div", G, [
129
- (s(!0), d(v, null, p(B.value, (i, a) => (s(), d("span", {
130
- key: a,
131
- class: y({
128
+ c("div", X, [
129
+ (s(!0), d(K, null, C(q.value, (i, r) => (s(), d("span", {
130
+ key: r,
131
+ class: k({
132
132
  "bg-yellow-100 text-yellow-900 rounded-sm px-0.5": i.highlight
133
133
  })
134
- }, w(i.text), 3))), 128))
134
+ }, M(i.text), 3))), 128))
135
135
  ])
136
136
  ], 4),
137
137
  e.node.searchMatch ? (s(), d("div", {
138
138
  key: 0,
139
139
  class: "flex items-center text-[11px] text-gray-500 font-mono pr-2 pb-1.5 truncate",
140
- style: f({ paddingLeft: e.depth * 20 + 28 + "px" })
140
+ style: b({ paddingLeft: e.depth * 20 + 28 + "px" })
141
141
  }, [
142
- r("span", H, "L" + w(e.node.searchMatch.line_number), 1),
143
- r("div", J, [
144
- (s(!0), d(v, null, p(E.value, (i, a) => (s(), d("span", {
145
- key: a,
146
- class: y({
142
+ c("span", Y, "L" + M(e.node.searchMatch.line_number), 1),
143
+ c("div", Z, [
144
+ (s(!0), d(K, null, C(z.value, (i, r) => (s(), d("span", {
145
+ key: r,
146
+ class: k({
147
147
  "bg-yellow-500/20 text-gray-900 px-0.5 rounded-[1px] font-medium border border-yellow-600/30": i.highlight
148
148
  })
149
- }, w(i.text), 3))), 128))
149
+ }, M(i.text), 3))), 128))
150
150
  ])
151
- ], 4)) : k("", !0)
152
- ], 10, j),
153
- x.value && h.value && !C.value ? (s(), d("div", R, [
154
- r("div", {
151
+ ], 4)) : v("", !0)
152
+ ], 10, J),
153
+ x.value && h.value && !L.value ? (s(), d("div", _, [
154
+ c("div", {
155
155
  class: "absolute top-1 bottom-1 border-l border-border",
156
- style: f({ left: e.depth * 20 + 10 + "px" })
156
+ style: b({ left: e.depth * 20 + 10 + "px" })
157
157
  }, null, 4),
158
- e.node.children && e.node.children.length > 0 ? (s(!0), d(v, { key: 0 }, p(e.node.children, (i) => (s(), u(o, {
159
- key: i.id,
160
- node: i,
161
- depth: e.depth + 1,
162
- "selection-mode": e.selectionMode,
163
- "selected-keys": e.selectedKeys,
164
- "expanded-keys": e.expandedKeys,
165
- "indeterminate-keys": e.indeterminateKeys,
166
- "loading-keys": e.loadingKeys,
167
- "show-checkboxes": e.showCheckboxes,
168
- "highlight-search": e.highlightSearch,
169
- "search-query": e.searchQuery,
170
- onToggleExpand: l[1] || (l[1] = (a) => t.$emit("toggle-expand", a)),
171
- onToggleSelect: l[2] || (l[2] = (a) => t.$emit("toggle-select", a)),
172
- onClickNode: l[3] || (l[3] = (a) => t.$emit("click-node", a))
173
- }, null, 8, ["node", "depth", "selection-mode", "selected-keys", "expanded-keys", "indeterminate-keys", "loading-keys", "show-checkboxes", "highlight-search", "search-query"]))), 128)) : x.value && h.value && (!e.node.children || e.node.children.length === 0) ? (s(), d("div", {
158
+ e.node.children && e.node.children.length > 0 ? (s(!0), d(K, { key: 0 }, C(e.node.children, (i, r, N, f) => {
159
+ const F = [i, e.selectedKeys, e.expandedKeys, e.indeterminateKeys, e.loadingKeys, e.highlightSearch, e.searchQuery];
160
+ if (f && f.key === i.id && U(f, F)) return f;
161
+ const T = (s(), g(o, {
162
+ key: i.id,
163
+ node: i,
164
+ depth: e.depth + 1,
165
+ "selection-mode": e.selectionMode,
166
+ "selected-keys": e.selectedKeys,
167
+ "expanded-keys": e.expandedKeys,
168
+ "indeterminate-keys": e.indeterminateKeys,
169
+ "loading-keys": e.loadingKeys,
170
+ "show-checkboxes": e.showCheckboxes,
171
+ "highlight-search": e.highlightSearch,
172
+ "search-query": e.searchQuery,
173
+ onToggleExpand: l[1] || (l[1] = (u) => t.$emit("toggle-expand", u)),
174
+ onToggleSelect: l[2] || (l[2] = (u) => t.$emit("toggle-select", u)),
175
+ onClickNode: l[3] || (l[3] = (u) => t.$emit("click-node", u))
176
+ }, null, 8, ["node", "depth", "selection-mode", "selected-keys", "expanded-keys", "indeterminate-keys", "loading-keys", "show-checkboxes", "highlight-search", "search-query"]));
177
+ return T.memo = F, T;
178
+ }, l, 4), 128)) : x.value && h.value && (!e.node.children || e.node.children.length === 0) ? (s(), d("div", {
174
179
  key: 1,
175
180
  class: "py-0.5 text-xs text-muted-foreground italic",
176
- style: f({ paddingLeft: (e.depth + 1) * 20 + 26 + "px" })
177
- }, null, 4)) : k("", !0)
178
- ])) : k("", !0)
181
+ style: b({ paddingLeft: (e.depth + 1) * 20 + 26 + "px" })
182
+ }, null, 4)) : v("", !0)
183
+ ])) : v("", !0)
179
184
  ]);
180
185
  };
181
186
  }
182
187
  });
183
188
  export {
184
- _ as default
189
+ oe as default
185
190
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CustomFields.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-41abc1b3"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0cced8cd"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, computed as c, ref as G, watch as H, openBlock as o, createElementBlock as n, createElementVNode as b, createBlock as q, withCtx as N, createTextVNode as J, toDisplayString as m, createCommentVNode as u, createVNode as v, Fragment as x, renderList as y, normalizeClass as F, TransitionGroup as K, isMemoSame as O } from "vue";
1
+ import { defineComponent as M, computed as c, shallowRef as G, watch as H, openBlock as o, createElementBlock as n, createElementVNode as b, createBlock as q, withCtx as N, createTextVNode as J, toDisplayString as m, createCommentVNode as u, createVNode as v, Fragment as x, renderList as y, normalizeClass as F, TransitionGroup as K, isMemoSame as O } from "vue";
2
2
  import P from "./FormField.vue.js";
3
3
  import B from "../Button.vue.js";
4
4
  import Q from "../Label.vue.js";
@@ -1,7 +1,7 @@
1
1
  import o from "./Form.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c368964e"]]);
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d34e8931"]]);
5
5
  export {
6
6
  _ as default
7
7
  };