@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.
- package/dist/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +41 -25
- package/dist/dialecte/create-document-store.js +4 -4
- package/dist/explorer/explorer-search.js +2 -1
- package/dist/explorer/explorer.js +1 -1
- package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +123 -112
- 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
- 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
- package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/index.js +6 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/external/.pnpm/@dialecte_core@0.14.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/index.d.ts +25 -12
- package/dist/tree/collect-expandable-node-ids.js +8 -10
- package/dist/tree/flatten-tree.js +25 -24
- package/dist/tree/has-children.js +6 -0
- package/dist/tree/tree-index.js +21 -23
- package/dist/tree/tree.js +1 -1
- package/dist/tree/tree.vue_vue_type_script_setup_true_lang.js +37 -38
- package/dist/tree/use-tree-virtualization.js +54 -34
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.12.1/node_modules/@dialecte/core/dist/index.js +0 -6
- 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,
|
|
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
|
|
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
|
-
},
|
|
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:
|
|
16
|
-
let
|
|
17
|
-
left: `${
|
|
18
|
-
top: `${
|
|
19
|
-
display:
|
|
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
|
|
22
|
-
e(),
|
|
29
|
+
function C(e) {
|
|
30
|
+
e.disabled || (e.action(), (e.autoClose ?? !0) && x("close"));
|
|
23
31
|
}
|
|
24
|
-
return (n, s) => (
|
|
32
|
+
return (n, s) => (u(), a("div", {
|
|
25
33
|
class: "absolute z-10",
|
|
26
34
|
"data-testid": "context-menu",
|
|
27
|
-
style:
|
|
28
|
-
}, [o("ul",
|
|
29
|
-
t.
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
},
|
|
39
|
-
t.type === "parent" ? (
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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] ||=
|
|
48
|
-
onContextmenu: s[1] ||=
|
|
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 {
|
|
69
|
+
export { y as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import { G as t } from "../external/.pnpm/@dialecte_core@0.
|
|
4
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
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) {
|
|
@@ -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-
|
|
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 {
|
|
7
|
-
import
|
|
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
|
|
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
|
|
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
|
|
14
|
-
|
|
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
|
-
},
|
|
18
|
-
key:
|
|
17
|
+
}, B = {
|
|
18
|
+
key: 0,
|
|
19
19
|
class: "explorer__viewport"
|
|
20
|
-
},
|
|
20
|
+
}, V = { class: "pl-2 truncate" }, H = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "rounded-sm bg-warning/40 text-inherit"
|
|
23
|
-
},
|
|
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
|
-
|
|
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(
|
|
41
|
-
let U =
|
|
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),
|
|
45
|
-
|
|
46
|
-
e === void 0 || !J.value || !q.value.byId.has(e) || Y.value.visibleIds?.has(e) || (
|
|
47
|
-
}),
|
|
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 &&
|
|
59
|
+
r !== void 0 && G("update:expanded", te(U.expanded, r));
|
|
53
60
|
});
|
|
54
|
-
function
|
|
55
|
-
|
|
61
|
+
function ce() {
|
|
62
|
+
G("update:expanded", {
|
|
56
63
|
scoped: [],
|
|
57
|
-
all: !
|
|
64
|
+
all: !X.value
|
|
58
65
|
});
|
|
59
66
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
67
|
+
function Z(e) {
|
|
68
|
+
G("update:expanded", s(se.value, e));
|
|
62
69
|
}
|
|
63
|
-
function
|
|
64
|
-
e.selectable === !1 && e
|
|
70
|
+
function le(e) {
|
|
71
|
+
e.selectable === !1 && a(e) && Z(e.id);
|
|
65
72
|
}
|
|
66
|
-
function
|
|
67
|
-
K.value = e.id,
|
|
73
|
+
function ue(e) {
|
|
74
|
+
K.value = e.id, G("select", e);
|
|
68
75
|
}
|
|
69
|
-
function
|
|
70
|
-
J.value ||
|
|
76
|
+
function Q(e) {
|
|
77
|
+
J.value || G("update:expanded", e);
|
|
71
78
|
}
|
|
72
79
|
function $() {
|
|
73
|
-
|
|
80
|
+
W.value = "";
|
|
74
81
|
}
|
|
75
|
-
return (a, o) => (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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:
|
|
99
|
-
})
|
|
100
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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 {
|
|
168
|
+
export { U as default };
|