@xwiki/cristal-dsvuetify 0.18.0 → 0.19.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/index-BZqZR8-g.js +21866 -0
  3. package/dist/index-BZqZR8-g.js.map +1 -0
  4. package/dist/index.d.cts +2 -0
  5. package/dist/index.es.js +2 -2
  6. package/dist/index.umd.js +6 -6
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/x-alert-gEtl8xCI.js.map +1 -1
  9. package/dist/x-avatar-WnkeGyHH.js.map +1 -1
  10. package/dist/x-breadcrumb-CyjqjISE.js.map +1 -1
  11. package/dist/x-btn-DzH2bk-f.js.map +1 -1
  12. package/dist/x-card-BlUD5hbt.js.map +1 -1
  13. package/dist/{x-checkbox-D6cpCtlt.js → x-checkbox-CV2j3kg9.js} +2 -2
  14. package/dist/{x-checkbox-D6cpCtlt.js.map → x-checkbox-CV2j3kg9.js.map} +1 -1
  15. package/dist/x-dialog-Ccb-vGZ2.js.map +1 -1
  16. package/dist/x-divider-BOCxsH8h.js.map +1 -1
  17. package/dist/{x-file-input-DubSSwF4.js → x-file-input-WC5u-psN.js} +2 -2
  18. package/dist/{x-file-input-DubSSwF4.js.map → x-file-input-WC5u-psN.js.map} +1 -1
  19. package/dist/{x-form-B2T8k_wn.js → x-form-66u_n6Xf.js} +2 -2
  20. package/dist/{x-form-B2T8k_wn.js.map → x-form-66u_n6Xf.js.map} +1 -1
  21. package/dist/x-img-DWbVDNTs.js.map +1 -1
  22. package/dist/x-load-Bw4ftl3k.js.map +1 -1
  23. package/dist/x-menu-BeWrqcFy.js.map +1 -1
  24. package/dist/x-menu-item-CBdOhZc3.js.map +1 -1
  25. package/dist/x-menu-label-D-sFcG_g.js.map +1 -1
  26. package/dist/{x-navigation-tree-Cx21xHVH.js → x-navigation-tree-CA9rdB38.js} +137 -137
  27. package/dist/x-navigation-tree-CA9rdB38.js.map +1 -0
  28. package/dist/{x-navigation-tree-select-B3fRZYec.js → x-navigation-tree-select-D5olgFJB.js} +2 -2
  29. package/dist/{x-navigation-tree-select-B3fRZYec.js.map → x-navigation-tree-select-D5olgFJB.js.map} +1 -1
  30. package/dist/x-search-C7GhoCKj.js.map +1 -1
  31. package/dist/{x-select-CgIqNkk3.js → x-select-qbcXbRjw.js} +2 -2
  32. package/dist/{x-select-CgIqNkk3.js.map → x-select-qbcXbRjw.js.map} +1 -1
  33. package/dist/x-tab-group-BfEaq8Nj.js.map +1 -1
  34. package/dist/x-tab-panel-DysgiPCz.js.map +1 -1
  35. package/dist/x-tab-vRrbUjdK.js.map +1 -1
  36. package/dist/{x-text-field-KwBy_u7M.js → x-text-field-B2S1QZum.js} +2 -2
  37. package/dist/{x-text-field-KwBy_u7M.js.map → x-text-field-B2S1QZum.js.map} +1 -1
  38. package/package.json +22 -17
  39. package/dist/index-C-c8K0Z_.js +0 -21675
  40. package/dist/index-C-c8K0Z_.js.map +0 -1
  41. package/dist/x-navigation-tree-Cx21xHVH.js.map +0 -1
@@ -1,44 +1,44 @@
1
- import { ref as S, computed as V, createVNode as p, mergeProps as T, Fragment as R, inject as H, toRaw as O, reactive as Z, withModifiers as J, toRef as _, provide as ee, defineComponent as te, mergeDefaults as ne, onBeforeMount as ie, watch as le, createBlock as ae, openBlock as D, unref as re, withCtx as ce, createElementBlock as $, toDisplayString as U } from "vue";
2
- import { g as N, p as B, u as G, c as M, d as oe, o as F, m as se, e as q, f as de, h as ue, i as ve, j as fe, I as A, k as he, l as me, n as ge, q as j, r as Ie, s as we, t as pe, v as be, w as z } from "./index-C-c8K0Z_.js";
3
- import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const Ce = {
1
+ import { ref as S, computed as V, createVNode as C, mergeProps as T, createElementVNode as A, Fragment as G, inject as J, toRaw as L, reactive as ee, withModifiers as Q, toRef as _, provide as te, defineComponent as ne, mergeDefaults as ie, onBeforeMount as le, watch as ae, createBlock as re, openBlock as j, unref as ce, withCtx as oe, createElementBlock as U, toDisplayString as M } from "vue";
2
+ import { g as B, p as D, u as E, c as q, d as de, o as F, m as se, e as z, f as ue, h as ve, i as fe, j as he, I as O, k as me, l as ge, n as Ie, q as R, r as we, s as pe, t as be, v as ke, w as K } from "./index-BZqZR8-g.js";
3
+ import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const ye = {
5
5
  includeTerminals: !0
6
- }, ye = B({
6
+ }, _e = D({
7
7
  ...F(se({
8
8
  collapseIcon: "$treeviewCollapse",
9
9
  expandIcon: "$treeviewExpand"
10
10
  }), ["subgroup"])
11
- }, "VTreeviewGroup"), K = N()({
11
+ }, "VTreeviewGroup"), W = B()({
12
12
  name: "VTreeviewGroup",
13
- props: ye(),
14
- setup(e, C) {
13
+ props: _e(),
14
+ setup(e, k) {
15
15
  let {
16
16
  slots: l
17
- } = C;
18
- const h = S(), k = V(() => {
19
- var d;
20
- return (d = h.value) != null && d.isOpen ? e.collapseIcon : e.expandIcon;
21
- }), s = V(() => {
22
- var d;
17
+ } = k;
18
+ const h = S(), b = V(() => {
19
+ var s;
20
+ return (s = h.value) != null && s.isOpen ? e.collapseIcon : e.expandIcon;
21
+ }), d = V(() => {
22
+ var s;
23
23
  return {
24
24
  VTreeviewItem: {
25
25
  prependIcon: void 0,
26
26
  appendIcon: void 0,
27
- active: (d = h.value) == null ? void 0 : d.isOpen,
28
- toggleIcon: k.value
27
+ active: (s = h.value) == null ? void 0 : s.isOpen,
28
+ toggleIcon: b.value
29
29
  }
30
30
  };
31
31
  });
32
- return G(() => {
33
- const d = M.filterProps(e);
34
- return p(M, T(d, {
32
+ return E(() => {
33
+ const s = q.filterProps(e);
34
+ return C(q, T(s, {
35
35
  ref: h,
36
36
  class: ["v-treeview-group", e.class],
37
37
  subgroup: !0
38
38
  }), {
39
39
  ...l,
40
- activator: l.activator ? (u) => p(R, null, [p(oe, {
41
- defaults: s.value
40
+ activator: l.activator ? (u) => A(G, null, [C(de, {
41
+ defaults: d.value
42
42
  }, {
43
43
  default: () => {
44
44
  var c;
@@ -48,63 +48,63 @@ const Ce = {
48
48
  });
49
49
  }), {};
50
50
  }
51
- }), Q = Symbol.for("vuetify:v-treeview"), _e = B({
51
+ }), X = Symbol.for("vuetify:v-treeview"), Ve = D({
52
52
  loading: Boolean,
53
- toggleIcon: A,
54
- ...fe({
53
+ toggleIcon: O,
54
+ ...he({
55
55
  slim: !0
56
56
  })
57
- }, "VTreeviewItem"), W = N()({
57
+ }, "VTreeviewItem"), H = B()({
58
58
  name: "VTreeviewItem",
59
- props: _e(),
59
+ props: Ve(),
60
60
  emits: {
61
61
  toggleExpand: (e) => !0
62
62
  },
63
- setup(e, C) {
63
+ setup(e, k) {
64
64
  let {
65
65
  slots: l,
66
66
  emit: h
67
- } = C;
68
- const k = H(Q, {
67
+ } = k;
68
+ const b = J(X, {
69
69
  visibleIds: S()
70
- }).visibleIds, s = S(), d = V(() => {
71
- var v, b;
72
- return ((v = s.value) == null ? void 0 : v.root.activatable.value) && ((b = s.value) == null ? void 0 : b.isGroupActivator);
70
+ }).visibleIds, d = S(), s = V(() => {
71
+ var v, p;
72
+ return ((v = d.value) == null ? void 0 : v.root.activatable.value) && ((p = d.value) == null ? void 0 : p.isGroupActivator);
73
73
  }), u = V(() => {
74
- var v, b;
75
- return ((v = s.value) == null ? void 0 : v.link.isClickable.value) || e.value != null && !!((b = s.value) != null && b.list);
76
- }), c = V(() => !e.disabled && e.link !== !1 && (e.link || u.value || d.value)), a = V(() => {
74
+ var v, p;
75
+ return ((v = d.value) == null ? void 0 : v.link.isClickable.value) || e.value != null && !!((p = d.value) != null && p.list);
76
+ }), c = V(() => !e.disabled && e.link !== !1 && (e.link || u.value || s.value)), a = V(() => {
77
77
  var v;
78
- return k.value && !k.value.has(O((v = s.value) == null ? void 0 : v.id));
78
+ return b.value && !b.value.has(L((v = d.value) == null ? void 0 : v.id));
79
79
  });
80
80
  function y(v) {
81
- var b, I;
82
- c.value && d.value && ((I = s.value) == null || I.activate(!((b = s.value) != null && b.isActivated), v));
81
+ var p, I;
82
+ c.value && s.value && ((I = d.value) == null || I.activate(!((p = d.value) != null && p.isActivated), v));
83
83
  }
84
84
  function g(v) {
85
85
  v.preventDefault(), h("toggleExpand", v);
86
86
  }
87
- return G(() => {
87
+ return E(() => {
88
88
  var I;
89
- const v = F(q.filterProps(e), ["onClick"]), b = l.prepend || e.toggleIcon;
90
- return p(q, T({
91
- ref: s
89
+ const v = F(z.filterProps(e), ["onClick"]), p = l.prepend || e.toggleIcon;
90
+ return C(z, T({
91
+ ref: d
92
92
  }, v, {
93
- active: (I = s.value) == null ? void 0 : I.isActivated,
93
+ active: (I = d.value) == null ? void 0 : I.isActivated,
94
94
  class: ["v-treeview-item", {
95
- "v-treeview-item--activatable-group-activator": d.value,
95
+ "v-treeview-item--activatable-group-activator": s.value,
96
96
  "v-treeview-item--filtered": a.value
97
97
  }, e.class],
98
98
  ripple: !1,
99
99
  onClick: e.onClick ?? y
100
100
  }), {
101
101
  ...l,
102
- prepend: b ? (o) => {
102
+ prepend: p ? (o) => {
103
103
  var r;
104
- return p(R, null, [p(de, {
104
+ return A(G, null, [C(ue, {
105
105
  start: !1
106
106
  }, {
107
- default: () => [e.toggleIcon ? p(ue, {
107
+ default: () => [e.toggleIcon ? C(ve, {
108
108
  density: "compact",
109
109
  icon: e.toggleIcon,
110
110
  loading: e.loading,
@@ -112,13 +112,13 @@ const Ce = {
112
112
  onClick: g
113
113
  }, {
114
114
  loader() {
115
- return p(ve, {
115
+ return C(fe, {
116
116
  indeterminate: "disable-shrink",
117
117
  size: "20",
118
118
  width: "2"
119
119
  }, null);
120
120
  }
121
- }) : p("div", {
121
+ }) : A("div", {
122
122
  class: "v-treeview-item__level"
123
123
  }, null)]
124
124
  }), (r = l.prepend) == null ? void 0 : r.call(l, o)]);
@@ -126,7 +126,7 @@ const Ce = {
126
126
  });
127
127
  }), {};
128
128
  }
129
- }), X = B({
129
+ }), Y = D({
130
130
  disabled: Boolean,
131
131
  loadChildren: Function,
132
132
  loadingIcon: {
@@ -139,25 +139,25 @@ const Ce = {
139
139
  default: void 0
140
140
  },
141
141
  indeterminateIcon: {
142
- type: A,
142
+ type: O,
143
143
  default: "$checkboxIndeterminate"
144
144
  },
145
- falseIcon: A,
146
- trueIcon: A,
145
+ falseIcon: O,
146
+ trueIcon: O,
147
147
  returnObject: Boolean,
148
148
  selectable: Boolean,
149
149
  selectedColor: String,
150
150
  selectStrategy: [String, Function, Object],
151
- ...he()
152
- }, "VTreeviewChildren"), L = N()({
151
+ ...me()
152
+ }, "VTreeviewChildren"), N = B()({
153
153
  name: "VTreeviewChildren",
154
- props: X(),
155
- setup(e, C) {
154
+ props: Y(),
155
+ setup(e, k) {
156
156
  let {
157
157
  slots: l
158
- } = C;
159
- const h = Z(/* @__PURE__ */ new Set()), k = V(() => !e.disabled && (e.openOnClick != null ? e.openOnClick : e.selectable));
160
- async function s(u) {
158
+ } = k;
159
+ const h = ee(/* @__PURE__ */ new Set()), b = V(() => !e.disabled && (e.openOnClick != null ? e.openOnClick : e.selectable));
160
+ async function d(u) {
161
161
  var c, a;
162
162
  try {
163
163
  if (!((c = e.items) != null && c.length) || !e.loadChildren) return;
@@ -166,7 +166,7 @@ const Ce = {
166
166
  h.delete(u.value);
167
167
  }
168
168
  }
169
- function d(u, c) {
169
+ function s(u, c) {
170
170
  e.selectable && u(!c);
171
171
  }
172
172
  return () => {
@@ -176,10 +176,10 @@ const Ce = {
176
176
  const {
177
177
  children: y,
178
178
  props: g
179
- } = a, v = h.has(a.value), b = {
179
+ } = a, v = h.has(a.value), p = {
180
180
  prepend: (t) => {
181
181
  var n;
182
- return p(R, null, [e.selectable && (!y || y && !["leaf", "single-leaf"].includes(e.selectStrategy)) && p("div", null, [p(me, {
182
+ return A(G, null, [e.selectable && (!y || y && !["leaf", "single-leaf"].includes(e.selectStrategy)) && A("div", null, [C(ge, {
183
183
  key: a.value,
184
184
  modelValue: t.isSelected,
185
185
  disabled: e.disabled,
@@ -190,9 +190,9 @@ const Ce = {
190
190
  indeterminateIcon: e.indeterminateIcon,
191
191
  falseIcon: e.falseIcon,
192
192
  trueIcon: e.trueIcon,
193
- onClick: J(() => d(t.select, t.isSelected), ["stop"]),
193
+ onClick: Q(() => s(t.select, t.isSelected), ["stop"]),
194
194
  onKeydown: (i) => {
195
- ["Enter", "Space"].includes(i.key) && (i.stopPropagation(), d(t.select, t.isSelected));
195
+ ["Enter", "Space"].includes(i.key) && (i.stopPropagation(), s(t.select, t.isSelected));
196
196
  }
197
197
  }, null)]), (n = l.prepend) == null ? void 0 : n.call(l, {
198
198
  ...t,
@@ -224,8 +224,8 @@ const Ce = {
224
224
  internalItem: a
225
225
  });
226
226
  } : void 0
227
- }, I = K.filterProps(g), o = L.filterProps(e);
228
- return y ? p(K, T(I, {
227
+ }, I = W.filterProps(g), o = N.filterProps(e);
228
+ return y ? C(W, T(I, {
229
229
  value: e.returnObject ? a.raw : I == null ? void 0 : I.value
230
230
  }), {
231
231
  activator: (t) => {
@@ -236,15 +236,15 @@ const Ce = {
236
236
  ...g,
237
237
  ...n,
238
238
  value: g == null ? void 0 : g.value,
239
- onToggleExpand: [() => s(a), n.onClick],
240
- onClick: k.value ? [() => s(a), n.onClick] : void 0
239
+ onToggleExpand: [() => d(a), n.onClick],
240
+ onClick: b.value ? [() => d(a), n.onClick] : void 0
241
241
  };
242
- return p(W, T(i, {
242
+ return C(H, T(i, {
243
243
  value: e.returnObject ? a.raw : g.value,
244
244
  loading: v
245
- }), b);
245
+ }), p);
246
246
  },
247
- default: () => p(L, T(o, {
247
+ default: () => C(N, T(o, {
248
248
  items: y,
249
249
  returnObject: e.returnObject
250
250
  }), l)
@@ -252,28 +252,28 @@ const Ce = {
252
252
  props: g,
253
253
  item: a.raw,
254
254
  internalItem: a
255
- })) ?? p(W, T(g, {
256
- value: e.returnObject ? O(a.raw) : g.value
257
- }), b);
255
+ })) ?? C(H, T(g, {
256
+ value: e.returnObject ? L(a.raw) : g.value
257
+ }), p);
258
258
  }));
259
259
  };
260
260
  }
261
261
  });
262
- function Y(e) {
263
- let C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
262
+ function Z(e) {
263
+ let k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
264
264
  for (const l of e)
265
- C.push(l), l.children && Y(l.children, C);
266
- return C;
265
+ k.push(l), l.children && Z(l.children, k);
266
+ return k;
267
267
  }
268
- const Ve = B({
268
+ const Pe = D({
269
269
  fluid: Boolean,
270
270
  openAll: Boolean,
271
271
  search: String,
272
- ...pe({
272
+ ...be({
273
273
  filterKeys: ["title"]
274
274
  }),
275
- ...X(),
276
- ...F(be({
275
+ ...Y(),
276
+ ...F(ke({
277
277
  collapseIcon: "$treeviewCollapse",
278
278
  expandIcon: "$treeviewExpand",
279
279
  slim: !0
@@ -282,9 +282,9 @@ const Ve = B({
282
282
  type: Array,
283
283
  default: () => []
284
284
  }
285
- }, "VTreeview"), Pe = N()({
285
+ }, "VTreeview"), Te = B()({
286
286
  name: "VTreeview",
287
- props: Ve(),
287
+ props: Pe(),
288
288
  emits: {
289
289
  "update:opened": (e) => !0,
290
290
  "update:activated": (e) => !0,
@@ -293,26 +293,26 @@ const Ve = B({
293
293
  "click:open": (e) => !0,
294
294
  "click:select": (e) => !0
295
295
  },
296
- setup(e, C) {
296
+ setup(e, k) {
297
297
  let {
298
298
  slots: l
299
- } = C;
299
+ } = k;
300
300
  const {
301
301
  items: h
302
- } = ge(e), k = _(() => e.activeColor), s = _(() => e.baseColor), d = _(() => e.color), u = j(e, "activated"), c = j(e, "modelValue"), a = j(e, "selected", e.modelValue), y = V({
302
+ } = Ie(e), b = _(() => e.activeColor), d = _(() => e.baseColor), s = _(() => e.color), u = R(e, "activated"), c = R(e, "modelValue"), a = R(e, "selected", e.modelValue), y = V({
303
303
  get: () => a.value,
304
304
  set(i) {
305
305
  a.value = i, c.value = i;
306
306
  }
307
- }), g = S(), v = V(() => e.openAll ? n(h.value) : e.opened), b = V(() => Y(h.value)), I = _(() => e.search), {
307
+ }), g = S(), v = V(() => e.openAll ? n(h.value) : e.opened), p = V(() => Z(h.value)), I = _(() => e.search), {
308
308
  filteredItems: o
309
- } = Ie(e, b, I), r = V(() => {
309
+ } = we(e, p, I), r = V(() => {
310
310
  var m;
311
311
  if (!I.value) return null;
312
312
  const i = (m = g.value) == null ? void 0 : m.getPath;
313
313
  return i ? new Set(o.value.flatMap((w) => {
314
314
  const P = e.returnObject ? w.raw : w.props.value;
315
- return [...i(P), ...t(P)].map(O);
315
+ return [...i(P), ...t(P)].map(L);
316
316
  })) : null;
317
317
  });
318
318
  function t(i) {
@@ -327,32 +327,32 @@ const Ve = B({
327
327
  function n(i) {
328
328
  let m = [];
329
329
  for (const w of i)
330
- w.children && (m.push(e.returnObject ? O(w.raw) : w.value), w.children && (m = m.concat(n(w.children))));
330
+ w.children && (m.push(e.returnObject ? L(w.raw) : w.value), w.children && (m = m.concat(n(w.children))));
331
331
  return m;
332
332
  }
333
- return ee(Q, {
333
+ return te(X, {
334
334
  visibleIds: r
335
- }), we({
335
+ }), pe({
336
336
  VTreeviewGroup: {
337
- activeColor: k,
338
- baseColor: s,
339
- color: d,
337
+ activeColor: b,
338
+ baseColor: d,
339
+ color: s,
340
340
  collapseIcon: _(() => e.collapseIcon),
341
341
  expandIcon: _(() => e.expandIcon)
342
342
  },
343
343
  VTreeviewItem: {
344
344
  activeClass: _(() => e.activeClass),
345
- activeColor: k,
346
- baseColor: s,
347
- color: d,
345
+ activeColor: b,
346
+ baseColor: d,
347
+ color: s,
348
348
  density: _(() => e.density),
349
349
  disabled: _(() => e.disabled),
350
350
  lines: _(() => e.lines),
351
351
  variant: _(() => e.variant)
352
352
  }
353
- }), G(() => {
354
- const i = z.filterProps(e), m = L.filterProps(e);
355
- return p(z, T({
353
+ }), E(() => {
354
+ const i = K.filterProps(e), m = N.filterProps(e);
355
+ return C(K, T({
356
356
  ref: g
357
357
  }, i, {
358
358
  class: ["v-treeview", {
@@ -366,7 +366,7 @@ const Ve = B({
366
366
  selected: y.value,
367
367
  "onUpdate:selected": (w) => y.value = w
368
368
  }), {
369
- default: () => [p(L, T(m, {
369
+ default: () => [C(N, T(m, {
370
370
  density: e.density,
371
371
  returnObject: e.returnObject,
372
372
  items: h.value
@@ -374,20 +374,20 @@ const Ve = B({
374
374
  });
375
375
  }), {};
376
376
  }
377
- }), Te = ["href", "onClick"], xe = ["href"], Se = /* @__PURE__ */ te({
377
+ }), xe = ["href", "onClick"], Se = ["href"], Ae = /* @__PURE__ */ ne({
378
378
  __name: "x-navigation-tree",
379
- props: /* @__PURE__ */ ne({
379
+ props: /* @__PURE__ */ ie({
380
380
  clickAction: { type: Function },
381
381
  currentPageReference: {},
382
382
  includeTerminals: { type: Boolean }
383
- }, Ce),
383
+ }, ye),
384
384
  setup(e) {
385
- const C = H("cristal"), l = C.getContainer().get("DocumentService"), h = C.getContainer().get("NavigationTreeSourceProvider").get(), k = S([]), s = S(new Array()), d = S([]);
385
+ const k = J("cristal"), l = k.getContainer().get("DocumentService"), h = k.getContainer().get("NavigationTreeSourceProvider").get(), b = S([]), d = S(new Array()), s = S([]);
386
386
  var u = !1;
387
387
  const c = e;
388
- ie(async () => {
388
+ le(async () => {
389
389
  for (const o of await I(""))
390
- k.value.push({
390
+ b.value.push({
391
391
  id: o.id,
392
392
  title: o.label,
393
393
  href: o.url,
@@ -395,8 +395,8 @@ const Ve = B({
395
395
  _location: o.location,
396
396
  _is_terminal: o.is_terminal
397
397
  });
398
- await a(), l.registerDocumentChangeListener("delete", v), l.registerDocumentChangeListener("update", b);
399
- }), le(() => c.currentPageReference, a);
398
+ await a(), l.registerDocumentChangeListener("delete", v), l.registerDocumentChangeListener("update", p);
399
+ }), ae(() => c.currentPageReference, a);
400
400
  async function a() {
401
401
  var o;
402
402
  if (c.currentPageReference && !u) {
@@ -405,14 +405,14 @@ const Ve = B({
405
405
  c.currentPageReference,
406
406
  c.includeTerminals
407
407
  );
408
- let t, n = k.value;
408
+ let t, n = b.value;
409
409
  for (t = 0; t < r.length - 1; t++)
410
410
  if (n)
411
411
  for (const i of n)
412
- i.id == r[t] && (((o = i.children) == null ? void 0 : o.length) == 0 && await y(i), d.value.includes(i.id) || d.value.push(i.id), n = i.children);
412
+ i.id == r[t] && (((o = i.children) == null ? void 0 : o.length) == 0 && await y(i), s.value.includes(i.id) || s.value.push(i.id), n = i.children);
413
413
  if (n)
414
414
  for (const i of n)
415
- i.id == r[t] && (s.value = [i.id], c.clickAction && c.clickAction({
415
+ i.id == r[t] && (d.value = [i.id], c.clickAction && c.clickAction({
416
416
  id: i.id,
417
417
  label: i.title,
418
418
  location: i._location,
@@ -438,11 +438,11 @@ const Ve = B({
438
438
  t.length == 0 && (r.children = void 0);
439
439
  }
440
440
  function g() {
441
- s.value.length > 1 && s.value.pop();
441
+ d.value.length > 1 && d.value.pop();
442
442
  }
443
443
  async function v(o) {
444
444
  const r = h.getParentNodesId(o, c.includeTerminals);
445
- let t, n = k.value, i = !1;
445
+ let t, n = b.value, i = !1;
446
446
  e: for (; n && !i; ) {
447
447
  for (const m of n.keys())
448
448
  if (n[m].id == r[0])
@@ -456,9 +456,9 @@ const Ve = B({
456
456
  i = !0;
457
457
  }
458
458
  }
459
- async function b(o) {
459
+ async function p(o) {
460
460
  const r = h.getParentNodesId(o, c.includeTerminals);
461
- let t, n = k.value, i = !1, m = !0;
461
+ let t, n = b.value, i = !1, m = !0;
462
462
  e: for (; n && !i; ) {
463
463
  for (const f of n.keys())
464
464
  if (n[f].id == r[0])
@@ -466,9 +466,9 @@ const Ve = B({
466
466
  const x = await I(
467
467
  t || ""
468
468
  );
469
- for (const E of x)
470
- if (E.id == n[f].id) {
471
- n[f].title = E.label;
469
+ for (const $ of x)
470
+ if ($.id == n[f].id) {
471
+ n[f].title = $.label;
472
472
  return;
473
473
  }
474
474
  } else {
@@ -494,7 +494,7 @@ const Ve = B({
494
494
  children: f.has_children ? [] : void 0,
495
495
  _location: f.location,
496
496
  _is_terminal: f.is_terminal
497
- }), P.length > 0 && P[P.length - 1] === f.id && (s.value = [f.id]);
497
+ }), P.length > 0 && P[P.length - 1] === f.id && (d.value = [f.id]);
498
498
  }
499
499
  }
500
500
  async function I(o) {
@@ -502,24 +502,24 @@ const Ve = B({
502
502
  (r) => c.includeTerminals || !r.is_terminal
503
503
  );
504
504
  }
505
- return (o, r) => (D(), ae(re(Pe), {
506
- opened: d.value,
507
- "onUpdate:opened": r[0] || (r[0] = (t) => d.value = t),
505
+ return (o, r) => (j(), re(ce(Te), {
506
+ opened: s.value,
507
+ "onUpdate:opened": r[0] || (r[0] = (t) => s.value = t),
508
508
  density: "compact",
509
- activated: s.value,
510
- items: k.value,
509
+ activated: d.value,
510
+ items: b.value,
511
511
  "load-children": y,
512
512
  activatable: "",
513
513
  "active-strategy": "independent",
514
514
  "item-value": "id",
515
515
  "onUpdate:activated": g
516
516
  }, {
517
- title: ce(({ item: t }) => [
518
- c.clickAction ? (D(), $("a", {
517
+ title: oe(({ item: t }) => [
518
+ c.clickAction ? (j(), U("a", {
519
519
  key: 0,
520
520
  href: t.href,
521
- onClick: J((n) => {
522
- s.value = [t.id], o.clickAction({
521
+ onClick: Q((n) => {
522
+ d.value = [t.id], o.clickAction({
523
523
  id: t.id,
524
524
  label: t.title,
525
525
  location: t._location,
@@ -528,16 +528,16 @@ const Ve = B({
528
528
  is_terminal: t._is_terminal
529
529
  });
530
530
  }, ["prevent"])
531
- }, U(t.title), 9, Te)) : (D(), $("a", {
531
+ }, M(t.title), 9, xe)) : (j(), U("a", {
532
532
  key: 1,
533
533
  href: t.href
534
- }, U(t.title), 9, xe))
534
+ }, M(t.title), 9, Se))
535
535
  ]),
536
536
  _: 1
537
537
  }, 8, ["opened", "activated", "items"]));
538
538
  }
539
- }), Ne = /* @__PURE__ */ ke(Se, [["__scopeId", "data-v-515dbad6"]]);
539
+ }), Be = /* @__PURE__ */ Ce(Ae, [["__scopeId", "data-v-515dbad6"]]);
540
540
  export {
541
- Ne as default
541
+ Be as default
542
542
  };
543
- //# sourceMappingURL=x-navigation-tree-Cx21xHVH.js.map
543
+ //# sourceMappingURL=x-navigation-tree-CA9rdB38.js.map