@septkit/ui 0.0.92 → 0.0.94

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 (27) hide show
  1. package/dist/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +41 -25
  2. package/dist/dialecte/create-document-store.js +4 -4
  3. package/dist/explorer/explorer-search.js +2 -1
  4. package/dist/explorer/explorer.js +1 -1
  5. package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +123 -112
  6. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/dialecte-BEbOM6IE.js} +1808 -1564
  7. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/helpers-Bfv2XDC-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/helpers-v10NItuU.js} +82 -82
  8. package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js +6 -0
  9. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/open-connections-ClJo0-Af.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/open-connections-CWORY1A2.js} +2 -2
  10. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/project-key-DD8DyQ8-.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/project-key-WGrHzudb.js} +199 -199
  11. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/qname-definition-C6GUFWL8.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/qname-definition-Cnw9CbiG.js} +8 -8
  12. package/dist/external/.pnpm/{@dialecte_core@0.12.1 → @dialecte_core@0.14.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  13. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/same-json-value-DTtSsGUF.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/same-json-value-Co-vqEAg.js} +66 -66
  14. package/dist/external/.pnpm/{@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js → @dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js} +2 -2
  15. package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js +2 -0
  16. package/dist/index.d.ts +25 -12
  17. package/dist/tree/collect-expandable-node-ids.js +8 -10
  18. package/dist/tree/flatten-tree.js +25 -24
  19. package/dist/tree/has-children.js +6 -0
  20. package/dist/tree/tree-index.js +21 -23
  21. package/dist/tree/tree.js +1 -1
  22. package/dist/tree/tree.vue_vue_type_script_setup_true_lang.js +37 -38
  23. package/dist/tree/use-tree-virtualization.js +54 -34
  24. package/dist/ui.css +1 -1
  25. package/package.json +3 -3
  26. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +0 -6
  27. package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js +0 -2
@@ -1,9 +1,17 @@
1
- import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeStyle as c, openBlock as l, renderList as u, toDisplayString as d, withModifiers as f } from "vue";
1
+ import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderList as d, toDisplayString as f, withModifiers as p } from "vue";
2
2
  //#region lib/context-menu/context-menu.vue?vue&type=script&setup=true&lang.ts
3
- var p = { class: "menu w-46 rounded-(--radius-box) border border-(--color-ocean-gray-150) bg-(--color-base-200)" }, m = ["data-testid", "onClick"], h = ["data-testid"], g = {
3
+ var m = { class: "menu w-46 rounded-(--radius-box) border border-(--color-ocean-gray-150) bg-(--color-base-200)" }, h = [
4
+ "data-testid",
5
+ "aria-disabled",
6
+ "onClick"
7
+ ], g = ["data-testid"], _ = {
4
8
  key: 2,
5
9
  class: "menu fixed m-0 hidden translate-x-40 rounded-(--radius-box) border border-(--color-ocean-gray-150) bg-(--color-base-200) peer-hover:block hover:block [&::before]:hidden"
6
- }, _ = ["data-testid", "onClick"], v = /*@__PURE__*/ s({
10
+ }, v = [
11
+ "data-testid",
12
+ "aria-disabled",
13
+ "onClick"
14
+ ], y = /*@__PURE__*/ s({
7
15
  __name: "context-menu",
8
16
  props: {
9
17
  x: {},
@@ -12,42 +20,50 @@ var p = { class: "menu w-46 rounded-(--radius-box) border border-(--color-ocean-
12
20
  items: {}
13
21
  },
14
22
  emits: ["close"],
15
- setup(s, { emit: v }) {
16
- let y = s, b = v, x = n(() => ({
17
- left: `${y.x}px`,
18
- top: `${y.y}px`,
19
- display: y.visible ? "flex" : "none"
23
+ setup(s, { emit: y }) {
24
+ let b = s, x = y, S = n(() => ({
25
+ left: `${b.x}px`,
26
+ top: `${b.y}px`,
27
+ display: b.visible ? "flex" : "none"
20
28
  }));
21
- function S(e, t = !0) {
22
- e(), t && b("close");
29
+ function C(e) {
30
+ e.disabled || (e.action(), (e.autoClose ?? !0) && x("close"));
23
31
  }
24
- return (n, s) => (l(), a("div", {
32
+ return (n, s) => (u(), a("div", {
25
33
  class: "absolute z-10",
26
34
  "data-testid": "context-menu",
27
- style: c(x.value)
28
- }, [o("ul", p, [(l(!0), a(e, null, u(y.items, (t) => (l(), a("li", { key: t.label }, [
29
- t.type === "action" ? (l(), a("div", {
35
+ style: l(S.value)
36
+ }, [o("ul", m, [(u(!0), a(e, null, d(b.items, (t) => (u(), a("li", {
37
+ key: t.label,
38
+ class: c({ "menu-disabled": t.type === "action" && t.disabled })
39
+ }, [
40
+ t.type === "action" ? (u(), a("div", {
30
41
  key: 0,
31
42
  "data-testid": `context-menu-action-${t.label}`,
32
- onClick: (e) => S(t.action, t.autoClose)
33
- }, [o("a", null, d(t.label), 1)], 8, m)) : i("", !0),
34
- t.type === "parent" ? (l(), a("span", {
43
+ "aria-disabled": t.disabled ? "true" : void 0,
44
+ onClick: (e) => C(t)
45
+ }, [o("a", null, f(t.label), 1)], 8, h)) : i("", !0),
46
+ t.type === "parent" ? (u(), a("span", {
35
47
  key: 1,
36
48
  class: "peer after:pointer-events-none after:block after:h-1.5 after:w-1.5 after:-translate-y-px after:rotate-135 after:justify-self-end after:shadow-[inset_2px_2px] after:transition-[rotate,translate] after:duration-200 after:content-['']",
37
49
  "data-testid": `context-menu-parent-${t.label}`
38
- }, d(t.label), 9, h)) : i("", !0),
39
- t.type === "parent" ? (l(), a("ul", g, [(l(!0), a(e, null, u(t.children, (e) => (l(), a("li", { key: e.label }, [o("div", {
50
+ }, f(t.label), 9, g)) : i("", !0),
51
+ t.type === "parent" ? (u(), a("ul", _, [(u(!0), a(e, null, d(t.children, (e) => (u(), a("li", {
52
+ key: e.label,
53
+ class: c({ "menu-disabled": e.disabled })
54
+ }, [o("div", {
40
55
  "data-testid": `context-menu-action-${e.label}`,
41
- onClick: (t) => S(e.action, e.autoClose)
42
- }, [o("a", null, d(e.label), 1)], 8, _)]))), 128))])) : i("", !0)
43
- ]))), 128))]), (l(), r(t, { to: "body" }, [y.visible ? (l(), a("div", {
56
+ "aria-disabled": e.disabled ? "true" : void 0,
57
+ onClick: (t) => C(e)
58
+ }, [o("a", null, f(e.label), 1)], 8, v)], 2))), 128))])) : i("", !0)
59
+ ], 2))), 128))]), (u(), r(t, { to: "body" }, [b.visible ? (u(), a("div", {
44
60
  key: 0,
45
61
  class: "fixed inset-0 z-5 h-screen w-screen bg-transparent",
46
62
  "data-testid": "context-menu-backdrop",
47
- onClick: s[0] ||= f((e) => n.$emit("close"), ["prevent"]),
48
- onContextmenu: s[1] ||= f((e) => n.$emit("close"), ["prevent"])
63
+ onClick: s[0] ||= p((e) => n.$emit("close"), ["prevent"]),
64
+ onContextmenu: s[1] ||= p((e) => n.$emit("close"), ["prevent"])
49
65
  }, null, 32)) : i("", !0)]))], 4));
50
66
  }
51
67
  });
52
68
  //#endregion
53
- export { v as default };
69
+ export { y as default };
@@ -1,7 +1,7 @@
1
- import { f as e } from "../external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils-Q5zsKl3Y.js";
2
- import "../external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/utils.js";
3
- import { G as t } from "../external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/dialecte-DHj8__Ch.js";
4
- import "../external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js";
1
+ import { p as e } from "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils-9L5_yIvs.js";
2
+ import "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js";
3
+ import { G as t } from "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/dialecte-BEbOM6IE.js";
4
+ import "../external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js";
5
5
  import { computed as n, shallowRef as r } from "vue";
6
6
  //#region lib/dialecte/create-document-store.ts
7
7
  function i(i) {
@@ -18,7 +18,8 @@ function t(t, n) {
18
18
  if (!i.has(e.id)) continue;
19
19
  let t = {
20
20
  ...e,
21
- children: void 0
21
+ children: void 0,
22
+ hasChildren: void 0
22
23
  };
23
24
  o.set(e.id, t);
24
25
  let r = n === void 0 ? void 0 : o.get(n);
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./explorer.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region lib/explorer/explorer.vue
5
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-956831c2"]]);
5
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-3296f33f"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -3,26 +3,26 @@ import t from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_
3
3
  import n from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/chevrons-up-down.js";
4
4
  import r from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/search.js";
5
5
  import i from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js";
6
- import { expandedIdsOf as a, isAllExpanded as o, revealIds as s, toggleExpandedId as c } from "../tree/expansion.js";
7
- import l from "../tree/tree.js";
6
+ import { hasChildren as a } from "../tree/has-children.js";
7
+ import { expandedIdsOf as o, isAllExpanded as ee, revealIds as te, toggleExpandedId as s } from "../tree/expansion.js";
8
+ import c from "../tree/tree.js";
8
9
  import "../tree/index.js";
9
- import { buildTreeIndex as ee, findAncestorIds as u } from "../tree/tree-index.js";
10
+ import { buildTreeIndex as l, findAncestorIds as u } from "../tree/tree-index.js";
10
11
  import { filterExplorerTree as d, splitByMatch as f } from "./explorer-search.js";
11
- import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as b, createVNode as x, defineComponent as S, normalizeClass as te, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, vModelText as ne, watch as k, withCtx as A, withDirectives as j, withKeys as M, withModifiers as N } from "vue";
12
+ import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as ne, createTextVNode as y, createVNode as b, defineComponent as x, mergeModels as S, normalizeClass as C, openBlock as w, ref as re, renderList as ie, renderSlot as T, toDisplayString as E, unref as D, useModel as O, vModelText as k, watch as A, withCtx as j, withDirectives as M, withKeys as N, withModifiers as P } from "vue";
12
13
  //#region lib/explorer/explorer.vue?vue&type=script&setup=true&lang.ts
13
- var P = { class: "explorer" }, F = { class: "explorer__controls flex items-center gap-1 bg-base-100" }, I = { class: "input input-sm flex-1" }, L = ["disabled", "aria-label"], R = {
14
- key: 0,
15
- class: "label",
14
+ var F = { class: "explorer" }, I = { class: "explorer__controls flex items-center gap-1 bg-base-100" }, L = { class: "input input-sm flex-1" }, R = ["disabled", "aria-label"], z = {
15
+ class: "label empty:hidden",
16
16
  role: "status"
17
- }, z = {
18
- key: 1,
17
+ }, B = {
18
+ key: 0,
19
19
  class: "explorer__viewport"
20
- }, B = { class: "pl-2 truncate" }, V = {
20
+ }, V = { class: "pl-2 truncate" }, H = {
21
21
  key: 0,
22
22
  class: "rounded-sm bg-warning/40 text-inherit"
23
- }, H = /*@__PURE__*/ S({
23
+ }, U = /*@__PURE__*/ x({
24
24
  __name: "explorer",
25
- props: {
25
+ props: /*@__PURE__*/ S({
26
26
  items: {},
27
27
  expanded: { default: () => ({
28
28
  scoped: [],
@@ -30,128 +30,139 @@ var P = { class: "explorer" }, F = { class: "explorer__controls flex items-cente
30
30
  }) },
31
31
  ariaLabel: { default: "SCL Tree" },
32
32
  selected: {},
33
- rowLabel: {}
34
- },
35
- emits: [
33
+ rowLabel: {},
34
+ searchLoading: {
35
+ type: Boolean,
36
+ default: !1
37
+ }
38
+ }, {
39
+ term: { default: "" },
40
+ termModifiers: {}
41
+ }),
42
+ emits: /*@__PURE__*/ S([
36
43
  "select",
37
44
  "contextmenu",
38
45
  "update:expanded"
39
- ],
40
- setup(S, { emit: H }) {
41
- let U = S, W = H, G = w(""), K = w(), q = m(() => ee(U.items)), J = m(() => G.value.trim().length > 0), Y = m(() => d(q.value, G.value)), X = m(() => J.value ? {
46
+ ], ["update:term"]),
47
+ setup(x, { emit: S }) {
48
+ let U = x, W = O(x, "term"), G = S, K = re(), q = m(() => l(U.items)), J = m(() => W.value.trim().length > 0), Y = m(() => d(q.value, W.value)), ae = m(() => J.value ? U.searchLoading ? "Searching..." : Y.value.items.length ? "" : "No results" : ""), oe = m(() => J.value ? {
42
49
  scoped: [],
43
50
  all: !0
44
- } : U.expanded), re = m(() => a(U.expanded, q.value.expandableIds)), Z = m(() => o(U.expanded, q.value.expandableIds));
45
- k(() => U.selected, (e) => {
46
- e === void 0 || !J.value || !q.value.byId.has(e) || Y.value.visibleIds?.has(e) || (G.value = "");
47
- }), k(G, (e, t) => {
51
+ } : U.expanded), se = m(() => o(U.expanded, q.value.expandableIds)), X = m(() => ee(U.expanded, q.value.expandableIds));
52
+ A(() => U.selected, (e) => {
53
+ e === void 0 || !J.value || !q.value.byId.has(e) || Y.value.visibleIds?.has(e) || (W.value = "");
54
+ }), A(W, (e, t) => {
48
55
  if (!t.trim() || e.trim()) return;
49
56
  let n = U.selected ?? K.value;
50
57
  if (n === void 0 || U.expanded.all) return;
51
58
  let r = u(q.value, n);
52
- r !== void 0 && W("update:expanded", s(U.expanded, r));
59
+ r !== void 0 && G("update:expanded", te(U.expanded, r));
53
60
  });
54
- function ie() {
55
- W("update:expanded", {
61
+ function ce() {
62
+ G("update:expanded", {
56
63
  scoped: [],
57
- all: !Z.value
64
+ all: !X.value
58
65
  });
59
66
  }
60
- function Q(e) {
61
- W("update:expanded", c(re.value, e));
67
+ function Z(e) {
68
+ G("update:expanded", s(se.value, e));
62
69
  }
63
- function ae(e) {
64
- e.selectable === !1 && e.children?.length && Q(e.id);
70
+ function le(e) {
71
+ e.selectable === !1 && a(e) && Z(e.id);
65
72
  }
66
- function oe(e) {
67
- K.value = e.id, W("select", e);
73
+ function ue(e) {
74
+ K.value = e.id, G("select", e);
68
75
  }
69
- function se(e) {
70
- J.value || W("update:expanded", e);
76
+ function Q(e) {
77
+ J.value || G("update:expanded", e);
71
78
  }
72
79
  function $() {
73
- G.value = "";
80
+ W.value = "";
74
81
  }
75
- return (a, o) => (C(), _("div", P, [v("div", F, [v("label", I, [
76
- x(O(r), {
77
- "aria-hidden": "true",
78
- size: 14,
79
- class: "opacity-50"
80
- }),
81
- j(v("input", {
82
- "onUpdate:modelValue": o[0] ||= (e) => G.value = e,
83
- type: "text",
84
- class: "grow",
85
- placeholder: "Search by name",
86
- "aria-label": "Search by name",
87
- "data-testid": "explorer-search",
88
- onKeydown: M($, ["esc"])
89
- }, null, 544), [[ne, G.value]]),
90
- G.value ? (C(), _("button", {
91
- key: 0,
82
+ return (a, o) => (w(), _("div", F, [
83
+ v("div", I, [v("label", L, [
84
+ b(D(r), {
85
+ "aria-hidden": "true",
86
+ size: 14,
87
+ class: "opacity-50"
88
+ }),
89
+ M(v("input", {
90
+ "onUpdate:modelValue": o[0] ||= (e) => W.value = e,
91
+ type: "text",
92
+ class: "grow",
93
+ placeholder: "Search by name",
94
+ "aria-label": "Search by name",
95
+ "data-testid": "explorer-search",
96
+ onKeydown: N($, ["esc"])
97
+ }, null, 544), [[k, W.value]]),
98
+ W.value ? (w(), _("button", {
99
+ key: 0,
100
+ type: "button",
101
+ class: "btn btn-ghost btn-circle btn-xs",
102
+ "aria-label": "Clear search",
103
+ onClick: $
104
+ }, [b(D(i), {
105
+ "aria-hidden": "true",
106
+ size: 14
107
+ })])) : g("", !0)
108
+ ]), v("button", {
92
109
  type: "button",
93
- class: "btn btn-ghost btn-circle btn-xs",
94
- "aria-label": "Clear search",
95
- onClick: $
96
- }, [x(O(i), {
110
+ class: "btn btn-ghost btn-square btn-sm",
111
+ disabled: J.value || !q.value.expandableIds.length,
112
+ "aria-label": X.value ? "Collapse all" : "Expand all",
113
+ onClick: ce
114
+ }, [X.value ? (w(), h(D(n), {
115
+ key: 0,
97
116
  "aria-hidden": "true",
98
- size: 14
99
- })])) : g("", !0)
100
- ]), v("button", {
101
- type: "button",
102
- class: "btn btn-ghost btn-square btn-sm",
103
- disabled: J.value || !q.value.expandableIds.length,
104
- "aria-label": Z.value ? "Collapse all" : "Expand all",
105
- onClick: ie
106
- }, [Z.value ? (C(), h(O(n), {
107
- key: 0,
108
- "aria-hidden": "true",
109
- size: 16
110
- })) : (C(), h(O(t), {
111
- key: 1,
112
- "aria-hidden": "true",
113
- size: 16
114
- }))], 8, L)]), J.value && !Y.value.items.length ? (C(), _("p", R, "No results")) : (C(), _("div", z, [x(O(l), {
115
- items: Y.value.items,
116
- expanded: X.value,
117
- selected: U.selected ?? K.value,
118
- "aria-label": U.ariaLabel,
119
- "row-label": U.rowLabel,
120
- onSelect: oe,
121
- onRowClick: ae,
122
- onContextmenu: o[1] ||= (e) => W("contextmenu", e),
123
- "onUpdate:expanded": se
124
- }, y({
125
- "node-toggle": A(({ node: t, hasChildren: n, expanded: r }) => [x(O(e), {
117
+ size: 16
118
+ })) : (w(), h(D(t), {
119
+ key: 1,
126
120
  "aria-hidden": "true",
127
- size: 16,
128
- class: te(["explorer__chevron shrink-0", {
129
- invisible: !n || J.value,
130
- "explorer__chevron--open": r
131
- }]),
132
- onClick: N((e) => Q(t.id), ["stop"])
133
- }, null, 8, ["class", "onClick"])]),
134
- "node-label": A(({ node: e }) => [E(a.$slots, "node-label", {
135
- node: e,
136
- term: G.value
137
- }, () => [v("span", B, [(C(!0), _(p, null, T(O(f)(e.name, G.value), (e, t) => (C(), _(p, { key: t }, [e.match ? (C(), _("mark", V, D(e.text), 1)) : (C(), _(p, { key: 1 }, [b(D(e.text), 1)], 64))], 64))), 128))])], !0)]),
138
- _: 2
139
- }, [a.$slots["node-prefix"] ? {
140
- name: "node-prefix",
141
- fn: A(({ node: e }) => [E(a.$slots, "node-prefix", { node: e }, void 0, !0)]),
142
- key: "0"
143
- } : void 0, a.$slots["node-suffix"] ? {
144
- name: "node-suffix",
145
- fn: A(({ node: e }) => [E(a.$slots, "node-suffix", { node: e }, void 0, !0)]),
146
- key: "1"
147
- } : void 0]), 1032, [
148
- "items",
149
- "expanded",
150
- "selected",
151
- "aria-label",
152
- "row-label"
153
- ])]))]));
121
+ size: 16
122
+ }))], 8, R)]),
123
+ v("p", z, E(ae.value), 1),
124
+ !J.value || Y.value.items.length ? (w(), _("div", B, [b(D(c), {
125
+ items: Y.value.items,
126
+ expanded: oe.value,
127
+ selected: U.selected ?? K.value,
128
+ "aria-label": U.ariaLabel,
129
+ "row-label": U.rowLabel,
130
+ onSelect: ue,
131
+ onRowClick: le,
132
+ onContextmenu: o[1] ||= (e) => G("contextmenu", e),
133
+ "onUpdate:expanded": Q
134
+ }, ne({
135
+ "node-toggle": j(({ node: t, hasChildren: n, expanded: r }) => [b(D(e), {
136
+ "aria-hidden": "true",
137
+ size: 16,
138
+ class: C(["explorer__chevron shrink-0", {
139
+ invisible: !n || J.value,
140
+ "explorer__chevron--open": r
141
+ }]),
142
+ onClick: P((e) => Z(t.id), ["stop"])
143
+ }, null, 8, ["class", "onClick"])]),
144
+ "node-label": j(({ node: e }) => [T(a.$slots, "node-label", {
145
+ node: e,
146
+ term: W.value
147
+ }, () => [v("span", V, [(w(!0), _(p, null, ie(D(f)(e.name, W.value), (e, t) => (w(), _(p, { key: t }, [e.match ? (w(), _("mark", H, E(e.text), 1)) : (w(), _(p, { key: 1 }, [y(E(e.text), 1)], 64))], 64))), 128))])], !0)]),
148
+ _: 2
149
+ }, [a.$slots["node-prefix"] ? {
150
+ name: "node-prefix",
151
+ fn: j(({ node: e }) => [T(a.$slots, "node-prefix", { node: e }, void 0, !0)]),
152
+ key: "0"
153
+ } : void 0, a.$slots["node-suffix"] ? {
154
+ name: "node-suffix",
155
+ fn: j(({ node: e }) => [T(a.$slots, "node-suffix", { node: e }, void 0, !0)]),
156
+ key: "1"
157
+ } : void 0]), 1032, [
158
+ "items",
159
+ "expanded",
160
+ "selected",
161
+ "aria-label",
162
+ "row-label"
163
+ ])])) : g("", !0)
164
+ ]));
154
165
  }
155
166
  });
156
167
  //#endregion
157
- export { H as default };
168
+ export { U as default };