@xwiki/cristal-dsvuetify 0.12.0 → 0.13.0
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/CHANGELOG.md +15 -0
- package/dist/{index-DCILSBLH.js → index-UP1o6s9t.js} +3070 -3035
- package/dist/index-UP1o6s9t.js.map +1 -0
- package/dist/index.es.js +5 -4
- package/dist/index.umd.js +9 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/vue/x-dialog.vue.d.ts +1 -0
- package/dist/x-alert-Bmt4mXHQ.js +45 -0
- package/dist/x-alert-Bmt4mXHQ.js.map +1 -0
- package/dist/x-avatar-But_Z7ic.js.map +1 -1
- package/dist/x-breadcrumb-C2iUd4Sf.js.map +1 -1
- package/dist/x-btn-DNlhiqjD.js.map +1 -1
- package/dist/x-card-CRM9KUby.js.map +1 -1
- package/dist/x-dialog-C-dMkFJk.js +49 -0
- package/dist/x-dialog-C-dMkFJk.js.map +1 -0
- package/dist/{x-file-input-BtGTZtfq.js → x-file-input-BsaodA0p.js} +10 -9
- package/dist/{x-file-input-BtGTZtfq.js.map → x-file-input-BsaodA0p.js.map} +1 -1
- package/dist/{x-form-pSj3365X.js → x-form-iQFXj1PW.js} +2 -2
- package/dist/{x-form-pSj3365X.js.map → x-form-iQFXj1PW.js.map} +1 -1
- package/dist/x-img-BYgs_O1F.js.map +1 -1
- package/dist/x-navigation-tree-DN2Qz7Sm.js +501 -0
- package/dist/x-navigation-tree-DN2Qz7Sm.js.map +1 -0
- package/dist/x-tab-group-ngNByee3.js.map +1 -1
- package/dist/x-text-field-CTsLZhLE.js +31 -0
- package/dist/{x-text-field-CAVD3OjY.js.map → x-text-field-CTsLZhLE.js.map} +1 -1
- package/langs/translation-de.json +4 -0
- package/package.json +17 -10
- package/src/components/vuetifyDesignSystemLoader.ts +2 -0
- package/src/vue/css/style.css +11 -4
- package/src/vue/form/x-text-field.vue +6 -1
- package/src/vue/x-alert.vue +2 -0
- package/src/vue/x-dialog.vue +14 -1
- package/src/vue/x-navigation-tree.vue +66 -58
- package/tsconfig.json +14 -8
- package/dist/index-DCILSBLH.js.map +0 -1
- package/dist/x-alert-C3nY6ghP.js +0 -42
- package/dist/x-alert-C3nY6ghP.js.map +0 -1
- package/dist/x-dialog-Ce8KWptm.js +0 -38
- package/dist/x-dialog-Ce8KWptm.js.map +0 -1
- package/dist/x-navigation-tree-W6QDS4uh.js +0 -499
- package/dist/x-navigation-tree-W6QDS4uh.js.map +0 -1
- package/dist/x-text-field-CAVD3OjY.js +0 -29
package/dist/x-alert-C3nY6ghP.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, resolveComponent as o, openBlock as l, createBlock as n, withCtx as a, createElementBlock as c, Fragment as i, renderList as m, createTextVNode as d, toDisplayString as u, renderSlot as _ } from "vue";
|
|
2
|
-
const y = /* @__PURE__ */ p({
|
|
3
|
-
__name: "x-alert",
|
|
4
|
-
props: {
|
|
5
|
-
title: {},
|
|
6
|
-
type: {},
|
|
7
|
-
description: {},
|
|
8
|
-
actions: {},
|
|
9
|
-
closable: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
setup(b) {
|
|
12
|
-
return (e, f) => {
|
|
13
|
-
const r = o("x-btn"), s = o("v-alert");
|
|
14
|
-
return l(), n(s, {
|
|
15
|
-
closable: e.closable,
|
|
16
|
-
title: e.title,
|
|
17
|
-
type: e.type,
|
|
18
|
-
text: e.description
|
|
19
|
-
}, {
|
|
20
|
-
default: a(() => [
|
|
21
|
-
(l(!0), c(i, null, m(e.actions, (t) => (l(), n(r, {
|
|
22
|
-
key: t.name,
|
|
23
|
-
size: "small",
|
|
24
|
-
variant: "text",
|
|
25
|
-
onClick: t.callback
|
|
26
|
-
}, {
|
|
27
|
-
default: a(() => [
|
|
28
|
-
d(u(t.name), 1)
|
|
29
|
-
]),
|
|
30
|
-
_: 2
|
|
31
|
-
}, 1032, ["onClick"]))), 128)),
|
|
32
|
-
_(e.$slots, "default")
|
|
33
|
-
]),
|
|
34
|
-
_: 3
|
|
35
|
-
}, 8, ["closable", "title", "type", "text"]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
y as default
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=x-alert-C3nY6ghP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-alert-C3nY6ghP.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, resolveComponent as o, openBlock as s, createBlock as _, withCtx as e, createElementVNode as p, normalizeProps as m, guardReactiveProps as u, renderSlot as a, createVNode as n } from "vue";
|
|
2
|
-
const w = /* @__PURE__ */ i({
|
|
3
|
-
__name: "x-dialog",
|
|
4
|
-
props: {
|
|
5
|
-
title: {},
|
|
6
|
-
width: {}
|
|
7
|
-
},
|
|
8
|
-
setup(v) {
|
|
9
|
-
return (t, f) => {
|
|
10
|
-
const r = o("v-card-text"), l = o("v-card"), d = o("v-dialog");
|
|
11
|
-
return s(), _(d, { width: t.width }, {
|
|
12
|
-
activator: e(({ props: c }) => [
|
|
13
|
-
p("span", m(u(c)), [
|
|
14
|
-
a(t.$slots, "activator")
|
|
15
|
-
], 16)
|
|
16
|
-
]),
|
|
17
|
-
default: e(() => [
|
|
18
|
-
n(l, { title: t.title }, {
|
|
19
|
-
default: e(() => [
|
|
20
|
-
n(r, null, {
|
|
21
|
-
default: e(() => [
|
|
22
|
-
a(t.$slots, "default")
|
|
23
|
-
]),
|
|
24
|
-
_: 3
|
|
25
|
-
})
|
|
26
|
-
]),
|
|
27
|
-
_: 3
|
|
28
|
-
}, 8, ["title"])
|
|
29
|
-
]),
|
|
30
|
-
_: 3
|
|
31
|
-
}, 8, ["width"]);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
w as default
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=x-dialog-Ce8KWptm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-dialog-Ce8KWptm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
import { ref as P, computed as V, createVNode as g, mergeProps as T, Fragment as G, inject as W, reactive as Y, withModifiers as H, toRaw as S, toRef as y, provide as Z, defineComponent as ee, onBeforeMount as te, watch as ne, openBlock as j, createBlock as ae, unref as ie, withCtx as le, createElementBlock as $, toDisplayString as R } from "vue";
|
|
2
|
-
import { p as O, o as D, m as oe, g as L, u as E, c as U, d as re, E as ce, I as x, e as de, f as se, h as M, i as ue, j as ve, k as fe, l as he, n as ge, q as me, r as Ie, s as B, t as we, v as pe, w as q } from "./index-DCILSBLH.js";
|
|
3
|
-
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const Ce = O({
|
|
5
|
-
...D(oe({
|
|
6
|
-
collapseIcon: "$treeviewCollapse",
|
|
7
|
-
expandIcon: "$treeviewExpand"
|
|
8
|
-
}), ["subgroup"])
|
|
9
|
-
}, "VTreeviewGroup"), z = L()({
|
|
10
|
-
name: "VTreeviewGroup",
|
|
11
|
-
props: Ce(),
|
|
12
|
-
setup(e, I) {
|
|
13
|
-
let {
|
|
14
|
-
slots: i
|
|
15
|
-
} = I;
|
|
16
|
-
const u = P(), p = V(() => {
|
|
17
|
-
var o;
|
|
18
|
-
return (o = u.value) != null && o.isOpen ? e.collapseIcon : e.expandIcon;
|
|
19
|
-
}), b = V(() => {
|
|
20
|
-
var o;
|
|
21
|
-
return {
|
|
22
|
-
VTreeviewItem: {
|
|
23
|
-
prependIcon: void 0,
|
|
24
|
-
appendIcon: void 0,
|
|
25
|
-
active: (o = u.value) == null ? void 0 : o.isOpen,
|
|
26
|
-
toggleIcon: p.value
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
|
-
return E(() => {
|
|
31
|
-
const o = U.filterProps(e);
|
|
32
|
-
return g(U, T(o, {
|
|
33
|
-
ref: u,
|
|
34
|
-
class: ["v-treeview-group", e.class],
|
|
35
|
-
subgroup: !0
|
|
36
|
-
}), {
|
|
37
|
-
...i,
|
|
38
|
-
activator: i.activator ? (v) => g(G, null, [g(re, {
|
|
39
|
-
defaults: b.value
|
|
40
|
-
}, {
|
|
41
|
-
default: () => {
|
|
42
|
-
var f;
|
|
43
|
-
return [(f = i.activator) == null ? void 0 : f.call(i, v)];
|
|
44
|
-
}
|
|
45
|
-
})]) : void 0
|
|
46
|
-
});
|
|
47
|
-
}), {};
|
|
48
|
-
}
|
|
49
|
-
}), J = Symbol.for("vuetify:v-treeview"), be = O({
|
|
50
|
-
loading: Boolean,
|
|
51
|
-
onToggleExpand: ce(),
|
|
52
|
-
toggleIcon: x,
|
|
53
|
-
...de({
|
|
54
|
-
slim: !0
|
|
55
|
-
})
|
|
56
|
-
}, "VTreeviewItem"), K = L()({
|
|
57
|
-
name: "VTreeviewItem",
|
|
58
|
-
props: be(),
|
|
59
|
-
setup(e, I) {
|
|
60
|
-
let {
|
|
61
|
-
attrs: i,
|
|
62
|
-
slots: u,
|
|
63
|
-
emit: p
|
|
64
|
-
} = I;
|
|
65
|
-
const b = se(e, i), o = P(), v = V(() => {
|
|
66
|
-
var s, w;
|
|
67
|
-
return ((s = o.value) == null ? void 0 : s.root.activatable.value) && ((w = o.value) == null ? void 0 : w.isGroupActivator);
|
|
68
|
-
}), f = V(() => {
|
|
69
|
-
var s;
|
|
70
|
-
return !e.disabled && e.link !== !1 && (e.link || b.isClickable.value || e.value != null && !!((s = o.value) != null && s.list) || v.value);
|
|
71
|
-
});
|
|
72
|
-
function d(s) {
|
|
73
|
-
var w, C, l, r;
|
|
74
|
-
!f.value || !v.value && ((w = o.value) != null && w.isGroupActivator) || (C = o.value) != null && C.root.activatable.value && ((r = o.value) == null || r.activate(!((l = o.value) != null && l.isActivated), s));
|
|
75
|
-
}
|
|
76
|
-
const k = W(J, {
|
|
77
|
-
visibleIds: P()
|
|
78
|
-
}).visibleIds;
|
|
79
|
-
return E(() => {
|
|
80
|
-
var C, l;
|
|
81
|
-
const s = D(M.filterProps(e), ["onClick"]), w = u.prepend || e.toggleIcon;
|
|
82
|
-
return g(M, T({
|
|
83
|
-
ref: o
|
|
84
|
-
}, s, {
|
|
85
|
-
active: (C = o.value) == null ? void 0 : C.isActivated,
|
|
86
|
-
class: ["v-treeview-item", {
|
|
87
|
-
"v-treeview-item--activatable-group-activator": v.value,
|
|
88
|
-
"v-treeview-item--filtered": k.value && !k.value.has((l = o.value) == null ? void 0 : l.id)
|
|
89
|
-
}, e.class],
|
|
90
|
-
ripple: !1,
|
|
91
|
-
onClick: e.onClick ?? d
|
|
92
|
-
}), {
|
|
93
|
-
...u,
|
|
94
|
-
prepend: w ? (r) => {
|
|
95
|
-
var t;
|
|
96
|
-
return g(G, null, [e.toggleIcon && g(ue, {
|
|
97
|
-
start: !1
|
|
98
|
-
}, {
|
|
99
|
-
default: () => [g(ve, {
|
|
100
|
-
density: "compact",
|
|
101
|
-
icon: e.toggleIcon,
|
|
102
|
-
loading: e.loading,
|
|
103
|
-
variant: "text",
|
|
104
|
-
onClick: e.onToggleExpand
|
|
105
|
-
}, {
|
|
106
|
-
loader() {
|
|
107
|
-
return g(fe, {
|
|
108
|
-
indeterminate: "disable-shrink",
|
|
109
|
-
size: "20",
|
|
110
|
-
width: "2"
|
|
111
|
-
}, null);
|
|
112
|
-
}
|
|
113
|
-
})]
|
|
114
|
-
}), (t = u.prepend) == null ? void 0 : t.call(u, r)]);
|
|
115
|
-
} : void 0
|
|
116
|
-
});
|
|
117
|
-
}), {};
|
|
118
|
-
}
|
|
119
|
-
}), Q = O({
|
|
120
|
-
loadChildren: Function,
|
|
121
|
-
loadingIcon: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: "$loading"
|
|
124
|
-
},
|
|
125
|
-
items: Array,
|
|
126
|
-
openOnClick: {
|
|
127
|
-
type: Boolean,
|
|
128
|
-
default: void 0
|
|
129
|
-
},
|
|
130
|
-
indeterminateIcon: {
|
|
131
|
-
type: x,
|
|
132
|
-
default: "$checkboxIndeterminate"
|
|
133
|
-
},
|
|
134
|
-
falseIcon: x,
|
|
135
|
-
trueIcon: x,
|
|
136
|
-
returnObject: Boolean,
|
|
137
|
-
selectable: Boolean,
|
|
138
|
-
selectedColor: String,
|
|
139
|
-
selectStrategy: [String, Function, Object]
|
|
140
|
-
}, "VTreeviewChildren"), A = L()({
|
|
141
|
-
name: "VTreeviewChildren",
|
|
142
|
-
props: Q(),
|
|
143
|
-
setup(e, I) {
|
|
144
|
-
let {
|
|
145
|
-
slots: i
|
|
146
|
-
} = I;
|
|
147
|
-
const u = Y(/* @__PURE__ */ new Set()), p = V(() => e.openOnClick != null ? e.openOnClick : e.selectable);
|
|
148
|
-
async function b(v) {
|
|
149
|
-
var f, d;
|
|
150
|
-
try {
|
|
151
|
-
if (!((f = e.items) != null && f.length) || !e.loadChildren) return;
|
|
152
|
-
((d = v == null ? void 0 : v.children) == null ? void 0 : d.length) === 0 && (u.add(v.value), await e.loadChildren(v.raw));
|
|
153
|
-
} finally {
|
|
154
|
-
u.delete(v.value);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
function o(v, f) {
|
|
158
|
-
e.selectable && v(!f);
|
|
159
|
-
}
|
|
160
|
-
return () => {
|
|
161
|
-
var v, f;
|
|
162
|
-
return ((v = i.default) == null ? void 0 : v.call(i)) ?? ((f = e.items) == null ? void 0 : f.map((d) => {
|
|
163
|
-
var t;
|
|
164
|
-
const {
|
|
165
|
-
children: k,
|
|
166
|
-
props: s
|
|
167
|
-
} = d, w = u.has(d.value), C = {
|
|
168
|
-
prepend: (n) => {
|
|
169
|
-
var a;
|
|
170
|
-
return g(G, null, [e.selectable && (!k || k && !["leaf", "single-leaf"].includes(e.selectStrategy)) && g("div", null, [g(he, {
|
|
171
|
-
key: d.value,
|
|
172
|
-
modelValue: n.isSelected,
|
|
173
|
-
loading: w,
|
|
174
|
-
color: e.selectedColor,
|
|
175
|
-
indeterminate: n.isIndeterminate,
|
|
176
|
-
indeterminateIcon: e.indeterminateIcon,
|
|
177
|
-
falseIcon: e.falseIcon,
|
|
178
|
-
trueIcon: e.trueIcon,
|
|
179
|
-
onClick: H(() => o(n.select, n.isSelected), ["stop"]),
|
|
180
|
-
onKeydown: (c) => {
|
|
181
|
-
["Enter", "Space"].includes(c.key) && (c.stopPropagation(), o(n.select, n.isSelected));
|
|
182
|
-
}
|
|
183
|
-
}, null)]), (a = i.prepend) == null ? void 0 : a.call(i, {
|
|
184
|
-
...n,
|
|
185
|
-
item: d.raw,
|
|
186
|
-
internalItem: d
|
|
187
|
-
})]);
|
|
188
|
-
},
|
|
189
|
-
append: i.append ? (n) => {
|
|
190
|
-
var a;
|
|
191
|
-
return (a = i.append) == null ? void 0 : a.call(i, {
|
|
192
|
-
...n,
|
|
193
|
-
item: d.raw,
|
|
194
|
-
internalItem: d
|
|
195
|
-
});
|
|
196
|
-
} : void 0,
|
|
197
|
-
title: i.title ? (n) => {
|
|
198
|
-
var a;
|
|
199
|
-
return (a = i.title) == null ? void 0 : a.call(i, {
|
|
200
|
-
...n,
|
|
201
|
-
item: d.raw,
|
|
202
|
-
internalItem: d
|
|
203
|
-
});
|
|
204
|
-
} : void 0
|
|
205
|
-
}, l = z.filterProps(s), r = A.filterProps(e);
|
|
206
|
-
return k ? g(z, T(l, {
|
|
207
|
-
value: e.returnObject ? d.raw : l == null ? void 0 : l.value
|
|
208
|
-
}), {
|
|
209
|
-
activator: (n) => {
|
|
210
|
-
let {
|
|
211
|
-
props: a
|
|
212
|
-
} = n;
|
|
213
|
-
const c = {
|
|
214
|
-
...s,
|
|
215
|
-
...a,
|
|
216
|
-
value: s == null ? void 0 : s.value,
|
|
217
|
-
onToggleExpand: [() => b(d), a.onClick],
|
|
218
|
-
onClick: p.value ? [() => b(d), a.onClick] : void 0
|
|
219
|
-
};
|
|
220
|
-
return g(K, T(c, {
|
|
221
|
-
value: e.returnObject ? S(d.raw) : s.value,
|
|
222
|
-
loading: w
|
|
223
|
-
}), C);
|
|
224
|
-
},
|
|
225
|
-
default: () => g(A, T(r, {
|
|
226
|
-
items: k,
|
|
227
|
-
returnObject: e.returnObject
|
|
228
|
-
}), i)
|
|
229
|
-
}) : ((t = i.item) == null ? void 0 : t.call(i, {
|
|
230
|
-
props: s,
|
|
231
|
-
item: d.raw,
|
|
232
|
-
internalItem: d
|
|
233
|
-
})) ?? g(K, T(s, {
|
|
234
|
-
value: e.returnObject ? S(d.raw) : s.value
|
|
235
|
-
}), C);
|
|
236
|
-
}));
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
function X(e) {
|
|
241
|
-
let I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
242
|
-
for (const i of e)
|
|
243
|
-
I.push(i), i.children && X(i.children, I);
|
|
244
|
-
return I;
|
|
245
|
-
}
|
|
246
|
-
const ye = O({
|
|
247
|
-
openAll: Boolean,
|
|
248
|
-
search: String,
|
|
249
|
-
...ge({
|
|
250
|
-
filterKeys: ["title"]
|
|
251
|
-
}),
|
|
252
|
-
...Q(),
|
|
253
|
-
...D(me({
|
|
254
|
-
collapseIcon: "$treeviewCollapse",
|
|
255
|
-
expandIcon: "$treeviewExpand",
|
|
256
|
-
slim: !0
|
|
257
|
-
}), ["itemType", "nav", "openStrategy"]),
|
|
258
|
-
modelValue: {
|
|
259
|
-
type: Array,
|
|
260
|
-
default: () => []
|
|
261
|
-
}
|
|
262
|
-
}, "VTreeview"), Ve = L()({
|
|
263
|
-
name: "VTreeview",
|
|
264
|
-
props: ye(),
|
|
265
|
-
emits: {
|
|
266
|
-
"update:opened": (e) => !0,
|
|
267
|
-
"update:activated": (e) => !0,
|
|
268
|
-
"update:selected": (e) => !0,
|
|
269
|
-
"update:modelValue": (e) => !0,
|
|
270
|
-
"click:open": (e) => !0,
|
|
271
|
-
"click:select": (e) => !0
|
|
272
|
-
},
|
|
273
|
-
setup(e, I) {
|
|
274
|
-
let {
|
|
275
|
-
slots: i
|
|
276
|
-
} = I;
|
|
277
|
-
const {
|
|
278
|
-
items: u
|
|
279
|
-
} = Ie(e), p = y(e, "activeColor"), b = y(e, "baseColor"), o = y(e, "color"), v = B(e, "activated"), f = B(e, "modelValue"), d = B(e, "selected", e.modelValue), k = V({
|
|
280
|
-
get: () => d.value,
|
|
281
|
-
set(c) {
|
|
282
|
-
d.value = c, f.value = c;
|
|
283
|
-
}
|
|
284
|
-
}), s = P(), w = V(() => e.openAll ? a(u.value) : e.opened), C = V(() => X(u.value)), l = y(e, "search"), {
|
|
285
|
-
filteredItems: r
|
|
286
|
-
} = we(e, C, l), t = V(() => {
|
|
287
|
-
var m;
|
|
288
|
-
if (!l.value) return null;
|
|
289
|
-
const c = (m = s.value) == null ? void 0 : m.getPath;
|
|
290
|
-
return c ? new Set(r.value.flatMap((h) => {
|
|
291
|
-
const _ = e.returnObject ? h.raw : h.props.value;
|
|
292
|
-
return [...c(_), ...n(_)].map(S);
|
|
293
|
-
})) : null;
|
|
294
|
-
});
|
|
295
|
-
function n(c) {
|
|
296
|
-
var _, F;
|
|
297
|
-
const m = [], h = (((_ = s.value) == null ? void 0 : _.children.get(c)) ?? []).slice();
|
|
298
|
-
for (; h.length; ) {
|
|
299
|
-
const N = h.shift();
|
|
300
|
-
N && (m.push(N), h.push(...(((F = s.value) == null ? void 0 : F.children.get(N)) ?? []).slice()));
|
|
301
|
-
}
|
|
302
|
-
return m;
|
|
303
|
-
}
|
|
304
|
-
function a(c) {
|
|
305
|
-
let m = [];
|
|
306
|
-
for (const h of c)
|
|
307
|
-
h.children && (m.push(e.returnObject ? S(h.raw) : h.value), h.children && (m = m.concat(a(h.children))));
|
|
308
|
-
return m;
|
|
309
|
-
}
|
|
310
|
-
return Z(J, {
|
|
311
|
-
visibleIds: t
|
|
312
|
-
}), pe({
|
|
313
|
-
VTreeviewGroup: {
|
|
314
|
-
activeColor: p,
|
|
315
|
-
baseColor: b,
|
|
316
|
-
color: o,
|
|
317
|
-
collapseIcon: y(e, "collapseIcon"),
|
|
318
|
-
expandIcon: y(e, "expandIcon")
|
|
319
|
-
},
|
|
320
|
-
VTreeviewItem: {
|
|
321
|
-
activeClass: y(e, "activeClass"),
|
|
322
|
-
activeColor: p,
|
|
323
|
-
baseColor: b,
|
|
324
|
-
color: o,
|
|
325
|
-
density: y(e, "density"),
|
|
326
|
-
disabled: y(e, "disabled"),
|
|
327
|
-
lines: y(e, "lines"),
|
|
328
|
-
variant: y(e, "variant")
|
|
329
|
-
}
|
|
330
|
-
}), E(() => {
|
|
331
|
-
const c = q.filterProps(e), m = A.filterProps(e);
|
|
332
|
-
return g(q, T({
|
|
333
|
-
ref: s
|
|
334
|
-
}, c, {
|
|
335
|
-
class: ["v-treeview", e.class],
|
|
336
|
-
"open-strategy": "multiple",
|
|
337
|
-
style: e.style,
|
|
338
|
-
opened: w.value,
|
|
339
|
-
activated: v.value,
|
|
340
|
-
"onUpdate:activated": (h) => v.value = h,
|
|
341
|
-
selected: k.value,
|
|
342
|
-
"onUpdate:selected": (h) => k.value = h
|
|
343
|
-
}), {
|
|
344
|
-
default: () => [g(A, T(m, {
|
|
345
|
-
returnObject: e.returnObject,
|
|
346
|
-
items: u.value
|
|
347
|
-
}), i)]
|
|
348
|
-
});
|
|
349
|
-
}), {};
|
|
350
|
-
}
|
|
351
|
-
}), Pe = ["href", "onClick"], Te = ["href"], _e = /* @__PURE__ */ ee({
|
|
352
|
-
__name: "x-navigation-tree",
|
|
353
|
-
props: {
|
|
354
|
-
clickAction: { type: Function },
|
|
355
|
-
currentPage: {}
|
|
356
|
-
},
|
|
357
|
-
setup(e) {
|
|
358
|
-
const I = W("cristal"), i = I.getContainer().get("DocumentService"), u = I.getContainer().get("NavigationTreeSourceProvider").get(), p = P([]), b = P(void 0), o = P(new Array()), v = P(new Array()), f = e;
|
|
359
|
-
te(async () => {
|
|
360
|
-
for (const l of await u.getChildNodes(""))
|
|
361
|
-
p.value.push({
|
|
362
|
-
id: l.id,
|
|
363
|
-
title: l.label,
|
|
364
|
-
href: l.url,
|
|
365
|
-
children: l.has_children ? [] : void 0,
|
|
366
|
-
_location: l.location
|
|
367
|
-
});
|
|
368
|
-
f.currentPage !== void 0 && await d(), i.registerDocumentChangeListener("delete", w), i.registerDocumentChangeListener("update", C);
|
|
369
|
-
}), ne(
|
|
370
|
-
() => f.currentPage,
|
|
371
|
-
async () => {
|
|
372
|
-
f.currentPage && await d();
|
|
373
|
-
}
|
|
374
|
-
);
|
|
375
|
-
async function d() {
|
|
376
|
-
var n;
|
|
377
|
-
const l = u.getParentNodesId(f.currentPage);
|
|
378
|
-
let r, t = p.value;
|
|
379
|
-
for (r = 0; r < l.length - 1; r++)
|
|
380
|
-
if (t)
|
|
381
|
-
for (const a of t)
|
|
382
|
-
a.id == l[r] && (((n = a.children) == null ? void 0 : n.length) == 0 && await k(a), v.value.includes(a.id) || v.value.push(a.id), t = a.children);
|
|
383
|
-
if (t)
|
|
384
|
-
for (const a of t)
|
|
385
|
-
a.id == l[r] && (o.value = [a.id], f.clickAction && f.clickAction({
|
|
386
|
-
id: a.id,
|
|
387
|
-
label: a.title,
|
|
388
|
-
location: a._location,
|
|
389
|
-
url: a.href,
|
|
390
|
-
has_children: a.children !== void 0
|
|
391
|
-
}));
|
|
392
|
-
}
|
|
393
|
-
async function k(l) {
|
|
394
|
-
var n;
|
|
395
|
-
const r = l, t = await u.getChildNodes(r.id);
|
|
396
|
-
for (const a of t)
|
|
397
|
-
(n = r.children) == null || n.push({
|
|
398
|
-
id: a.id,
|
|
399
|
-
title: a.label,
|
|
400
|
-
href: a.url,
|
|
401
|
-
children: a.has_children ? [] : void 0,
|
|
402
|
-
_location: a.location
|
|
403
|
-
});
|
|
404
|
-
t.length == 0 && (r.children = void 0);
|
|
405
|
-
}
|
|
406
|
-
function s() {
|
|
407
|
-
o.value.length > 1 && o.value.pop();
|
|
408
|
-
}
|
|
409
|
-
async function w(l) {
|
|
410
|
-
const r = u.getParentNodesId(l);
|
|
411
|
-
let t = p.value;
|
|
412
|
-
for (; t; )
|
|
413
|
-
for (const n of t.keys())
|
|
414
|
-
if (t[n].id == r[0])
|
|
415
|
-
if (r.length == 1) {
|
|
416
|
-
t.splice(n, 1);
|
|
417
|
-
return;
|
|
418
|
-
} else {
|
|
419
|
-
t = t[n].children, r.shift();
|
|
420
|
-
break;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
async function C(l) {
|
|
424
|
-
const r = u.getParentNodesId(l);
|
|
425
|
-
let t, n = p.value;
|
|
426
|
-
for (; n; ) {
|
|
427
|
-
for (const c of n.keys())
|
|
428
|
-
if (n[c].id == r[0])
|
|
429
|
-
if (r.length == 1) {
|
|
430
|
-
const m = await u.getChildNodes(
|
|
431
|
-
t || ""
|
|
432
|
-
);
|
|
433
|
-
for (const h of m)
|
|
434
|
-
if (h.id == n[c].id) {
|
|
435
|
-
n[c].title = h.label;
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
} else {
|
|
439
|
-
t = n[c].id, n = n[c].children, r.shift();
|
|
440
|
-
break;
|
|
441
|
-
}
|
|
442
|
-
const a = await u.getChildNodes(
|
|
443
|
-
t || ""
|
|
444
|
-
);
|
|
445
|
-
e: for (const c of a) {
|
|
446
|
-
for (const m of n.keys())
|
|
447
|
-
if (c.id == n[m].id)
|
|
448
|
-
continue e;
|
|
449
|
-
n.push({
|
|
450
|
-
id: c.id,
|
|
451
|
-
title: c.label,
|
|
452
|
-
href: c.url,
|
|
453
|
-
children: c.has_children ? [] : void 0,
|
|
454
|
-
_location: c.location
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
return (l, r) => (j(), ae(ie(Ve), {
|
|
460
|
-
ref_key: "tree",
|
|
461
|
-
ref: b,
|
|
462
|
-
opened: v.value,
|
|
463
|
-
"onUpdate:opened": r[0] || (r[0] = (t) => v.value = t),
|
|
464
|
-
density: "compact",
|
|
465
|
-
activated: o.value,
|
|
466
|
-
items: p.value,
|
|
467
|
-
"load-children": k,
|
|
468
|
-
activatable: "",
|
|
469
|
-
"active-strategy": "independent",
|
|
470
|
-
"item-value": "id",
|
|
471
|
-
"open-strategy": "multiple",
|
|
472
|
-
"onUpdate:activated": s
|
|
473
|
-
}, {
|
|
474
|
-
title: le(({ item: t }) => [
|
|
475
|
-
f.clickAction ? (j(), $("a", {
|
|
476
|
-
key: 0,
|
|
477
|
-
href: t.href,
|
|
478
|
-
onClick: H((n) => {
|
|
479
|
-
o.value = [t.id], l.clickAction({
|
|
480
|
-
id: t.id,
|
|
481
|
-
label: t.title,
|
|
482
|
-
location: t._location,
|
|
483
|
-
url: t.href,
|
|
484
|
-
has_children: t.children !== void 0
|
|
485
|
-
});
|
|
486
|
-
}, ["prevent"])
|
|
487
|
-
}, R(t.title), 9, Pe)) : (j(), $("a", {
|
|
488
|
-
key: 1,
|
|
489
|
-
href: t.href
|
|
490
|
-
}, R(t.title), 9, Te))
|
|
491
|
-
]),
|
|
492
|
-
_: 1
|
|
493
|
-
}, 8, ["opened", "activated", "items"]));
|
|
494
|
-
}
|
|
495
|
-
}), Oe = /* @__PURE__ */ ke(_e, [["__scopeId", "data-v-cf1d31bb"]]);
|
|
496
|
-
export {
|
|
497
|
-
Oe as default
|
|
498
|
-
};
|
|
499
|
-
//# sourceMappingURL=x-navigation-tree-W6QDS4uh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-navigation-tree-W6QDS4uh.js","sources":["../../../node_modules/.pnpm/vuetify@3.7.3_typescript@5.6.3_vite-plugin-vuetify@2.0.4_vue@3.5.12_typescript@5.6.3_/node_modules/vuetify/lib/labs/VTreeview/VTreeviewGroup.mjs","../../../node_modules/.pnpm/vuetify@3.7.3_typescript@5.6.3_vite-plugin-vuetify@2.0.4_vue@3.5.12_typescript@5.6.3_/node_modules/vuetify/lib/labs/VTreeview/shared.mjs","../../../node_modules/.pnpm/vuetify@3.7.3_typescript@5.6.3_vite-plugin-vuetify@2.0.4_vue@3.5.12_typescript@5.6.3_/node_modules/vuetify/lib/labs/VTreeview/VTreeviewItem.mjs","../../../node_modules/.pnpm/vuetify@3.7.3_typescript@5.6.3_vite-plugin-vuetify@2.0.4_vue@3.5.12_typescript@5.6.3_/node_modules/vuetify/lib/labs/VTreeview/VTreeviewChildren.mjs","../../../node_modules/.pnpm/vuetify@3.7.3_typescript@5.6.3_vite-plugin-vuetify@2.0.4_vue@3.5.12_typescript@5.6.3_/node_modules/vuetify/lib/labs/VTreeview/VTreeview.mjs","../src/vue/x-navigation-tree.vue"],"sourcesContent":["import { mergeProps as _mergeProps, createVNode as _createVNode, Fragment as _Fragment } from \"vue\";\n// Components\nimport { VDefaultsProvider } from \"../../components/VDefaultsProvider/index.mjs\";\nimport { makeVListGroupProps, VListGroup } from \"../../components/VList/VListGroup.mjs\"; // Utilities\nimport { computed, ref } from 'vue';\nimport { genericComponent, omit, propsFactory, useRender } from \"../../util/index.mjs\"; // Types\nexport const makeVTreeviewGroupProps = propsFactory({\n ...omit(makeVListGroupProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand'\n }), ['subgroup'])\n}, 'VTreeviewGroup');\nexport const VTreeviewGroup = genericComponent()({\n name: 'VTreeviewGroup',\n props: makeVTreeviewGroupProps(),\n setup(props, _ref) {\n let {\n slots\n } = _ref;\n const vListGroupRef = ref();\n const toggleIcon = computed(() => vListGroupRef.value?.isOpen ? props.collapseIcon : props.expandIcon);\n const activatorDefaults = computed(() => ({\n VTreeviewItem: {\n prependIcon: undefined,\n appendIcon: undefined,\n active: vListGroupRef.value?.isOpen,\n toggleIcon: toggleIcon.value\n }\n }));\n useRender(() => {\n const listGroupProps = VListGroup.filterProps(props);\n return _createVNode(VListGroup, _mergeProps(listGroupProps, {\n \"ref\": vListGroupRef,\n \"class\": ['v-treeview-group', props.class],\n \"subgroup\": true\n }), {\n ...slots,\n activator: slots.activator ? slotProps => _createVNode(_Fragment, null, [_createVNode(VDefaultsProvider, {\n \"defaults\": activatorDefaults.value\n }, {\n default: () => [slots.activator?.(slotProps)]\n })]) : undefined\n });\n });\n return {};\n }\n});\n//# sourceMappingURL=VTreeviewGroup.mjs.map","// Types\n\nexport const VTreeviewSymbol = Symbol.for('vuetify:v-treeview');\n//# sourceMappingURL=shared.mjs.map","import { mergeProps as _mergeProps, createVNode as _createVNode, Fragment as _Fragment } from \"vue\";\n// Styles\nimport \"./VTreeviewItem.css\";\n\n// Components\nimport { VBtn } from \"../../components/VBtn/index.mjs\";\nimport { VListItemAction } from \"../../components/VList/index.mjs\";\nimport { makeVListItemProps, VListItem } from \"../../components/VList/VListItem.mjs\";\nimport { VProgressCircular } from \"../../components/VProgressCircular/index.mjs\"; // Composables\nimport { IconValue } from \"../../composables/icons.mjs\";\nimport { useLink } from \"../../composables/router.mjs\"; // Utilities\nimport { computed, inject, ref } from 'vue';\nimport { EventProp, genericComponent, omit, propsFactory, useRender } from \"../../util/index.mjs\"; // Types\nimport { VTreeviewSymbol } from \"./shared.mjs\";\nexport const makeVTreeviewItemProps = propsFactory({\n loading: Boolean,\n onToggleExpand: EventProp(),\n toggleIcon: IconValue,\n ...makeVListItemProps({\n slim: true\n })\n}, 'VTreeviewItem');\nexport const VTreeviewItem = genericComponent()({\n name: 'VTreeviewItem',\n props: makeVTreeviewItemProps(),\n setup(props, _ref) {\n let {\n attrs,\n slots,\n emit\n } = _ref;\n const link = useLink(props, attrs);\n const vListItemRef = ref();\n const isActivatableGroupActivator = computed(() => vListItemRef.value?.root.activatable.value && vListItemRef.value?.isGroupActivator);\n const isClickable = computed(() => !props.disabled && props.link !== false && (props.link || link.isClickable.value || props.value != null && !!vListItemRef.value?.list || isActivatableGroupActivator.value));\n function activateItem(e) {\n if (!isClickable.value || !isActivatableGroupActivator.value && vListItemRef.value?.isGroupActivator) return;\n if (vListItemRef.value?.root.activatable.value) {\n vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e);\n }\n }\n const visibleIds = inject(VTreeviewSymbol, {\n visibleIds: ref()\n }).visibleIds;\n useRender(() => {\n const listItemProps = omit(VListItem.filterProps(props), ['onClick']);\n const hasPrepend = slots.prepend || props.toggleIcon;\n return _createVNode(VListItem, _mergeProps({\n \"ref\": vListItemRef\n }, listItemProps, {\n \"active\": vListItemRef.value?.isActivated,\n \"class\": ['v-treeview-item', {\n 'v-treeview-item--activatable-group-activator': isActivatableGroupActivator.value,\n 'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id)\n }, props.class],\n \"ripple\": false,\n \"onClick\": props.onClick ?? activateItem\n }), {\n ...slots,\n prepend: hasPrepend ? slotProps => {\n return _createVNode(_Fragment, null, [props.toggleIcon && _createVNode(VListItemAction, {\n \"start\": false\n }, {\n default: () => [_createVNode(VBtn, {\n \"density\": \"compact\",\n \"icon\": props.toggleIcon,\n \"loading\": props.loading,\n \"variant\": \"text\",\n \"onClick\": props.onToggleExpand\n }, {\n loader() {\n return _createVNode(VProgressCircular, {\n \"indeterminate\": \"disable-shrink\",\n \"size\": \"20\",\n \"width\": \"2\"\n }, null);\n }\n })]\n }), slots.prepend?.(slotProps)]);\n } : undefined\n });\n });\n return {};\n }\n});\n//# sourceMappingURL=VTreeviewItem.mjs.map","import { mergeProps as _mergeProps, resolveDirective as _resolveDirective, createVNode as _createVNode, Fragment as _Fragment } from \"vue\";\n// Components\nimport { VTreeviewGroup } from \"./VTreeviewGroup.mjs\";\nimport { VTreeviewItem } from \"./VTreeviewItem.mjs\";\nimport { VCheckboxBtn } from \"../../components/VCheckbox/index.mjs\"; // Composables\nimport { IconValue } from \"../../composables/icons.mjs\"; // Utilities\nimport { computed, reactive, toRaw, withModifiers } from 'vue';\nimport { genericComponent, propsFactory } from \"../../util/index.mjs\"; // Types\nexport const makeVTreeviewChildrenProps = propsFactory({\n loadChildren: Function,\n loadingIcon: {\n type: String,\n default: '$loading'\n },\n items: Array,\n openOnClick: {\n type: Boolean,\n default: undefined\n },\n indeterminateIcon: {\n type: IconValue,\n default: '$checkboxIndeterminate'\n },\n falseIcon: IconValue,\n trueIcon: IconValue,\n returnObject: Boolean,\n selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object]\n}, 'VTreeviewChildren');\nexport const VTreeviewChildren = genericComponent()({\n name: 'VTreeviewChildren',\n props: makeVTreeviewChildrenProps(),\n setup(props, _ref) {\n let {\n slots\n } = _ref;\n const isLoading = reactive(new Set());\n const isClickOnOpen = computed(() => props.openOnClick != null ? props.openOnClick : props.selectable);\n async function checkChildren(item) {\n try {\n if (!props.items?.length || !props.loadChildren) return;\n if (item?.children?.length === 0) {\n isLoading.add(item.value);\n await props.loadChildren(item.raw);\n }\n } finally {\n isLoading.delete(item.value);\n }\n }\n function selectItem(select, isSelected) {\n if (props.selectable) {\n select(!isSelected);\n }\n }\n return () => slots.default?.() ?? props.items?.map(item => {\n const {\n children,\n props: itemProps\n } = item;\n const loading = isLoading.has(item.value);\n const slotsWithItem = {\n prepend: slotProps => _createVNode(_Fragment, null, [props.selectable && (!children || children && !['leaf', 'single-leaf'].includes(props.selectStrategy)) && _createVNode(\"div\", null, [_createVNode(VCheckboxBtn, {\n \"key\": item.value,\n \"modelValue\": slotProps.isSelected,\n \"loading\": loading,\n \"color\": props.selectedColor,\n \"indeterminate\": slotProps.isIndeterminate,\n \"indeterminateIcon\": props.indeterminateIcon,\n \"falseIcon\": props.falseIcon,\n \"trueIcon\": props.trueIcon,\n \"onClick\": withModifiers(() => selectItem(slotProps.select, slotProps.isSelected), ['stop']),\n \"onKeydown\": e => {\n if (!['Enter', 'Space'].includes(e.key)) return;\n e.stopPropagation();\n selectItem(slotProps.select, slotProps.isSelected);\n }\n }, null)]), slots.prepend?.({\n ...slotProps,\n item: item.raw,\n internalItem: item\n })]),\n append: slots.append ? slotProps => slots.append?.({\n ...slotProps,\n item: item.raw,\n internalItem: item\n }) : undefined,\n title: slots.title ? slotProps => slots.title?.({\n ...slotProps,\n item: item.raw,\n internalItem: item\n }) : undefined\n };\n const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps);\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props);\n return children ? _createVNode(VTreeviewGroup, _mergeProps(treeviewGroupProps, {\n \"value\": props.returnObject ? item.raw : treeviewGroupProps?.value\n }), {\n activator: _ref2 => {\n let {\n props: activatorProps\n } = _ref2;\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n onToggleExpand: [() => checkChildren(item), activatorProps.onClick],\n onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] : undefined\n };\n return _createVNode(VTreeviewItem, _mergeProps(listItemProps, {\n \"value\": props.returnObject ? toRaw(item.raw) : itemProps.value,\n \"loading\": loading\n }), slotsWithItem);\n },\n default: () => _createVNode(VTreeviewChildren, _mergeProps(treeviewChildrenProps, {\n \"items\": children,\n \"returnObject\": props.returnObject\n }), slots)\n }) : slots.item?.({\n props: itemProps,\n item: item.raw,\n internalItem: item\n }) ?? _createVNode(VTreeviewItem, _mergeProps(itemProps, {\n \"value\": props.returnObject ? toRaw(item.raw) : itemProps.value\n }), slotsWithItem);\n });\n }\n});\n//# sourceMappingURL=VTreeviewChildren.mjs.map","import { createVNode as _createVNode, mergeProps as _mergeProps, resolveDirective as _resolveDirective } from \"vue\";\n// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from \"./VTreeviewChildren.mjs\";\nimport { makeVListProps, useListItems, VList } from \"../../components/VList/VList.mjs\"; // Composables\nimport { provideDefaults } from \"../../composables/defaults.mjs\";\nimport { makeFilterProps, useFilter } from \"../../composables/filter.mjs\";\nimport { useProxiedModel } from \"../../composables/proxiedModel.mjs\"; // Utilities\nimport { computed, provide, ref, toRaw, toRef } from 'vue';\nimport { genericComponent, omit, propsFactory, useRender } from \"../../util/index.mjs\"; // Types\nimport { VTreeviewSymbol } from \"./shared.mjs\";\nfunction flatten(items) {\n let flat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n for (const item of items) {\n flat.push(item);\n if (item.children) flatten(item.children, flat);\n }\n return flat;\n}\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n ...makeFilterProps({\n filterKeys: ['title']\n }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true\n }), ['itemType', 'nav', 'openStrategy']),\n modelValue: {\n type: Array,\n default: () => []\n }\n}, 'VTreeview');\nexport const VTreeview = genericComponent()({\n name: 'VTreeview',\n props: makeVTreeviewProps(),\n emits: {\n 'update:opened': val => true,\n 'update:activated': val => true,\n 'update:selected': val => true,\n 'update:modelValue': val => true,\n 'click:open': value => true,\n 'click:select': value => true\n },\n setup(props, _ref) {\n let {\n slots\n } = _ref;\n const {\n items\n } = useListItems(props);\n const activeColor = toRef(props, 'activeColor');\n const baseColor = toRef(props, 'baseColor');\n const color = toRef(props, 'color');\n const activated = useProxiedModel(props, 'activated');\n const model = useProxiedModel(props, 'modelValue');\n const _selected = useProxiedModel(props, 'selected', props.modelValue);\n const selected = computed({\n get: () => _selected.value,\n set(val) {\n _selected.value = val;\n model.value = val;\n }\n });\n const vListRef = ref();\n const opened = computed(() => props.openAll ? openAll(items.value) : props.opened);\n const flatItems = computed(() => flatten(items.value));\n const search = toRef(props, 'search');\n const {\n filteredItems\n } = useFilter(props, flatItems, search);\n const visibleIds = computed(() => {\n if (!search.value) return null;\n const getPath = vListRef.value?.getPath;\n if (!getPath) return null;\n return new Set(filteredItems.value.flatMap(item => {\n const itemVal = props.returnObject ? item.raw : item.props.value;\n return [...getPath(itemVal), ...getChildren(itemVal)].map(toRaw);\n }));\n });\n function getChildren(id) {\n const arr = [];\n const queue = (vListRef.value?.children.get(id) ?? []).slice();\n while (queue.length) {\n const child = queue.shift();\n if (!child) continue;\n arr.push(child);\n queue.push(...(vListRef.value?.children.get(child) ?? []).slice());\n }\n return arr;\n }\n function openAll(items) {\n let ids = [];\n for (const i of items) {\n if (!i.children) continue;\n ids.push(props.returnObject ? toRaw(i.raw) : i.value);\n if (i.children) {\n ids = ids.concat(openAll(i.children));\n }\n }\n return ids;\n }\n provide(VTreeviewSymbol, {\n visibleIds\n });\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon')\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant')\n }\n });\n useRender(() => {\n const listProps = VList.filterProps(props);\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props);\n return _createVNode(VList, _mergeProps({\n \"ref\": vListRef\n }, listProps, {\n \"class\": ['v-treeview', props.class],\n \"open-strategy\": \"multiple\",\n \"style\": props.style,\n \"opened\": opened.value,\n \"activated\": activated.value,\n \"onUpdate:activated\": $event => activated.value = $event,\n \"selected\": selected.value,\n \"onUpdate:selected\": $event => selected.value = $event\n }), {\n default: () => [_createVNode(VTreeviewChildren, _mergeProps(treeviewChildrenProps, {\n \"returnObject\": props.returnObject,\n \"items\": items.value\n }), slots)]\n });\n });\n return {};\n }\n});\n//# sourceMappingURL=VTreeview.mjs.map","<!--\nSee the LICENSE file distributed with this work for additional\ninformation regarding copyright ownership.\n\nThis is free software; you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 2.1 of\nthe License, or (at your option) any later version.\n\nThis software is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this software; if not, write to the Free\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\n/**\n * Navigation Tree implemented using Vuetify's VTreeView component.\n * In order to use the initial component as a proper Navigation Tree for\n * Cristal, a few changes were made:\n * - The only node activated matches the current page, or the clicked link if\n * the component has a custom clickAction. We want to use actual links so\n * that the user can click them normally (to e.g., open them in a new tab).\n * So the default behavior of activating a node by clicking anywhere on the\n * item was disabled. Default hover effects, such as darkening or changing\n * the cursor on items, were also disabled.\n */\nimport { inject, onBeforeMount, ref, watch } from \"vue\";\nimport { VTreeview } from \"vuetify/labs/VTreeview\";\nimport type { CristalApp, PageData } from \"@xwiki/cristal-api\";\nimport type { DocumentService } from \"@xwiki/cristal-document-api\";\nimport type {\n NavigationTreeNode,\n NavigationTreeSource,\n NavigationTreeSourceProvider,\n} from \"@xwiki/cristal-navigation-tree-api\";\nimport type { Ref } from \"vue\";\n\ntype TreeItem = {\n id: string;\n title: string;\n href: string;\n children?: Array<TreeItem>;\n _location: string;\n};\n\ntype OnClickAction = (node: NavigationTreeNode) => void;\n\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\nconst documentService: DocumentService = cristal\n .getContainer()\n .get<DocumentService>(\"DocumentService\");\nconst treeSource: NavigationTreeSource = cristal\n .getContainer()\n .get<NavigationTreeSourceProvider>(\"NavigationTreeSourceProvider\")\n .get();\n\nconst rootNodes: Ref<Array<TreeItem>> = ref([]);\nconst tree: Ref<VTreeview | undefined> = ref(undefined);\n\nconst activatedNodes: Ref<Array<string>> = ref(new Array<string>());\nconst expandedNodes: Ref<Array<string>> = ref(new Array<string>());\n\nconst props = defineProps<{\n clickAction?: OnClickAction;\n currentPage?: PageData;\n}>();\n\nonBeforeMount(async () => {\n for (const node of await treeSource.getChildNodes(\"\")) {\n rootNodes.value.push({\n id: node.id,\n title: node.label,\n href: node.url,\n children: node.has_children ? [] : undefined,\n _location: node.location,\n });\n }\n if (props.currentPage !== undefined) {\n await expandTree();\n }\n\n documentService.registerDocumentChangeListener(\"delete\", onDocumentDelete);\n documentService.registerDocumentChangeListener(\"update\", onDocumentUpdate);\n});\n\nwatch(\n () => props.currentPage,\n async () => {\n if (props.currentPage) {\n await expandTree();\n }\n },\n);\n\nasync function expandTree() {\n const newExpandedNodes = treeSource.getParentNodesId(props.currentPage);\n let i;\n let currentNodes = rootNodes.value;\n for (i = 0; i < newExpandedNodes.length - 1; i++) {\n if (currentNodes) {\n for (const node of currentNodes) {\n if (node.id == newExpandedNodes[i]) {\n if (node.children?.length == 0) {\n await lazyLoadChildren(node);\n }\n if (!expandedNodes.value.includes(node.id)) {\n expandedNodes.value.push(node.id);\n }\n currentNodes = node.children!;\n }\n }\n }\n }\n if (currentNodes) {\n for (const node of currentNodes) {\n if (node.id == newExpandedNodes[i]) {\n activatedNodes.value = [node.id];\n // If we have a custom click action, we want to use it on dynamic\n // selection.\n if (props.clickAction) {\n props.clickAction({\n id: node.id,\n label: node.title,\n location: node._location,\n url: node.href,\n has_children: node.children !== undefined,\n });\n }\n }\n }\n }\n}\n\nasync function lazyLoadChildren(item: unknown) {\n const treeItem = item as TreeItem;\n const childNodes = await treeSource.getChildNodes(treeItem.id);\n for (const child of childNodes) {\n treeItem.children?.push({\n id: child.id,\n title: child.label,\n href: child.url,\n children: child.has_children ? [] : undefined,\n _location: child.location,\n });\n }\n // If the node doesn't have any children, we update it.\n if (childNodes.length == 0) {\n treeItem.children = undefined;\n }\n}\n\nfunction clearSelection() {\n // Clicking on a node would activate it and this can't be disabled easily.\n // With this listener, we ensure that only the first activated node stays\n // active.\n if (activatedNodes.value.length > 1) {\n activatedNodes.value.pop();\n }\n}\n\nasync function onDocumentDelete(page: PageData) {\n const parents = treeSource.getParentNodesId(page);\n let currentItems: TreeItem[] | undefined = rootNodes.value;\n while (currentItems) {\n for (const i of currentItems.keys()) {\n if (currentItems[i].id == parents[0]) {\n if (parents.length == 1) {\n currentItems.splice(i, 1);\n return;\n } else {\n currentItems = currentItems[i].children;\n parents.shift();\n break;\n }\n }\n }\n }\n}\n\nasync function onDocumentUpdate(page: PageData) {\n const parents = treeSource.getParentNodesId(page);\n let currentParent: string | undefined = undefined;\n let currentItems: TreeItem[] | undefined = rootNodes.value;\n\n while (currentItems) {\n for (const i of currentItems.keys()) {\n if (currentItems[i].id == parents[0]) {\n if (parents.length == 1) {\n // Page update\n const newItems = await treeSource.getChildNodes(\n currentParent ? currentParent : \"\",\n );\n for (const newItem of newItems) {\n if (newItem.id == currentItems[i].id) {\n currentItems[i].title = newItem.label;\n return;\n }\n }\n } else {\n currentParent = currentItems[i].id;\n currentItems = currentItems[i].children;\n parents.shift();\n break;\n }\n }\n }\n\n // New page\n const newItems = await treeSource.getChildNodes(\n currentParent ? currentParent : \"\",\n );\n newItemsLoop: for (const newItem of newItems) {\n for (const i of currentItems!.keys()) {\n if (newItem.id == currentItems![i].id) {\n continue newItemsLoop;\n }\n }\n currentItems!.push({\n id: newItem.id,\n title: newItem.label,\n href: newItem.url,\n children: newItem.has_children ? [] : undefined,\n _location: newItem.location,\n });\n }\n }\n}\n</script>\n\n<template>\n <v-treeview\n ref=\"tree\"\n v-model:opened=\"expandedNodes\"\n density=\"compact\"\n :activated=\"activatedNodes\"\n :items=\"rootNodes\"\n :load-children=\"lazyLoadChildren\"\n activatable\n active-strategy=\"independent\"\n item-value=\"id\"\n open-strategy=\"multiple\"\n @update:activated=\"clearSelection\"\n >\n <template #title=\"{ item }: { item: any }\">\n <a\n v-if=\"props.clickAction\"\n :href=\"item.href\"\n @click.prevent=\"\n activatedNodes = [item.id];\n clickAction!({\n id: item.id,\n label: item.title,\n location: item._location,\n url: item.href,\n has_children: item.children !== undefined,\n });\n \"\n >{{ item.title }}</a\n >\n <a v-else :href=\"item.href\">{{ item.title }}</a>\n </template>\n </v-treeview>\n</template>\n\n<style scoped>\n.v-list {\n background: none;\n}\n:deep(a) {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hover on items. */\n:deep(.v-list-item__overlay) {\n --v-hover-opacity: 0;\n}\n/* Disable hand cursor on items, since we disable the default click action. */\n:deep(.v-list-item--link) {\n cursor: default;\n}\n</style>\n"],"names":["makeVTreeviewGroupProps","propsFactory","omit","makeVListGroupProps","VTreeviewGroup","genericComponent","props","_ref","slots","vListGroupRef","ref","toggleIcon","computed","_a","activatorDefaults","useRender","listGroupProps","VListGroup","_createVNode","_mergeProps","slotProps","_Fragment","VDefaultsProvider","VTreeviewSymbol","makeVTreeviewItemProps","EventProp","IconValue","makeVListItemProps","VTreeviewItem","attrs","emit","link","useLink","vListItemRef","isActivatableGroupActivator","_b","isClickable","activateItem","e","_d","_c","visibleIds","inject","listItemProps","VListItem","hasPrepend","VListItemAction","VBtn","VProgressCircular","makeVTreeviewChildrenProps","VTreeviewChildren","isLoading","reactive","isClickOnOpen","checkChildren","item","selectItem","select","isSelected","children","itemProps","loading","slotsWithItem","VCheckboxBtn","withModifiers","treeviewGroupProps","treeviewChildrenProps","_ref2","activatorProps","toRaw","flatten","items","flat","makeVTreeviewProps","makeFilterProps","makeVListProps","VTreeview","val","value","useListItems","activeColor","toRef","baseColor","color","activated","useProxiedModel","model","_selected","selected","vListRef","opened","openAll","flatItems","search","filteredItems","useFilter","getPath","itemVal","getChildren","id","arr","queue","child","ids","i","provide","provideDefaults","listProps","VList","$event","cristal","documentService","treeSource","rootNodes","tree","activatedNodes","expandedNodes","__props","onBeforeMount","node","expandTree","onDocumentDelete","onDocumentUpdate","watch","newExpandedNodes","currentNodes","lazyLoadChildren","treeItem","childNodes","clearSelection","page","parents","currentItems","currentParent","newItems","newItem","newItemsLoop"],"mappings":";;;AAMO,MAAMA,KAA0BC,EAAa;AAAA,EAClD,GAAGC,EAAKC,GAAoB;AAAA,IAC1B,cAAc;AAAA,IACd,YAAY;AAAA,EAChB,CAAG,GAAG,CAAC,UAAU,CAAC;AAClB,GAAG,g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