@wirecore/wirelayer-vue 0.12.2 → 0.14.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 (69) hide show
  1. package/dist/{Button-BpMOPs8b.js → Button-WA6BonwF.js} +1 -1
  2. package/dist/{Checkbox-DS2qfQK1.js → Checkbox-DILwucBG.js} +1 -1
  3. package/dist/{CopyButton-Cv9QfFfS.js → CopyButton-BVRwSCRj.js} +2 -2
  4. package/dist/{Field-Cqe2BG_x.js → Field-DuZfFNFT.js} +3 -3
  5. package/dist/{Highlight-uwptdaUw.js → Highlight-BM-J3Jj0.js} +1 -1
  6. package/dist/{Input-C5dyvZfJ.js → Input-CH-ntEjv.js} +10 -10
  7. package/dist/RecipesProvider-DzlYvZ-I.js +2606 -0
  8. package/dist/{Select-q8FUIWLi.js → Select-B5c6Y3mf.js} +4 -4
  9. package/dist/{Slider-Cpv7Vj3B.js → Slider-Z-rsNeI1.js} +2 -2
  10. package/dist/Tree-C8vsEA6K.js +852 -0
  11. package/dist/chart.js +31 -31
  12. package/dist/code.js +7 -7
  13. package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
  14. package/dist/components/Confirm/confirm.d.ts +5 -0
  15. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  16. package/dist/components/DatePicker/DatePicker.vue.d.ts +3 -1
  17. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  18. package/dist/components/DatePicker/DatePickerBase.vue.d.ts +2 -0
  19. package/dist/components/DatePicker/DatePickerBase.vue.d.ts.map +1 -1
  20. package/dist/components/DatePicker/DatePickerCalendar.vue.d.ts +2 -0
  21. package/dist/components/DatePicker/DatePickerCalendar.vue.d.ts.map +1 -1
  22. package/dist/components/DatePicker/DatePickerTimes.vue.d.ts +24 -0
  23. package/dist/components/DatePicker/DatePickerTimes.vue.d.ts.map +1 -0
  24. package/dist/components/DatePicker/dates.d.ts +2 -0
  25. package/dist/components/DatePicker/dates.d.ts.map +1 -1
  26. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts +6 -1
  27. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts.map +1 -1
  28. package/dist/components/Dialog/DialogContent.vue.d.ts +16 -3
  29. package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
  30. package/dist/components/DialogService/DialogHost.vue.d.ts.map +1 -1
  31. package/dist/components/DialogService/dialogs.d.ts +5 -0
  32. package/dist/components/DialogService/dialogs.d.ts.map +1 -1
  33. package/dist/components/Drawer/DrawerContent.vue.d.ts +10 -1
  34. package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
  35. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +3 -0
  36. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
  37. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts +8 -1
  38. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts.map +1 -1
  39. package/dist/data-table/DataTable.vue.d.ts +26 -6
  40. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  41. package/dist/data-table/FilterMenu.vue.d.ts.map +1 -1
  42. package/dist/data-table/ValueInput.vue.d.ts +4 -0
  43. package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
  44. package/dist/data-table/features.d.ts +10 -0
  45. package/dist/data-table/features.d.ts.map +1 -1
  46. package/dist/data-table/index.d.ts +1 -1
  47. package/dist/data-table/index.d.ts.map +1 -1
  48. package/dist/data-table/inputs.d.ts +5 -0
  49. package/dist/data-table/inputs.d.ts.map +1 -1
  50. package/dist/data-table/types.d.ts +2 -0
  51. package/dist/data-table/types.d.ts.map +1 -1
  52. package/dist/data-table.js +1713 -1575
  53. package/dist/editor.js +4 -4
  54. package/dist/form.js +35 -35
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +4204 -4275
  58. package/dist/pdf.js +6 -6
  59. package/dist/{recipes-BlM9aKyt.js → recipes-CD2Ibsv9.js} +8 -1
  60. package/dist/recipes.d.ts +6 -0
  61. package/dist/recipes.d.ts.map +1 -1
  62. package/dist/sources/dateRangeInput.css +3 -0
  63. package/dist/{useTree-UhG1TMeM.js → useTree-DjkjHeoy.js} +114 -114
  64. package/dist/virtual.js +6 -6
  65. package/llms-full.txt +99 -18
  66. package/llms.txt +1 -0
  67. package/package.json +3 -3
  68. package/dist/ContextMenu-DC--vmIf.js +0 -2321
  69. package/dist/Tree-3o3OJASC.js +0 -840
package/dist/pdf.js CHANGED
@@ -1,8 +1,8 @@
1
- import { a as e, i as t, n } from "./recipes-BlM9aKyt.js";
2
- import { t as r } from "./Button-BpMOPs8b.js";
3
- import { t as i } from "./Field-Cqe2BG_x.js";
4
- import { i as a, t as o } from "./Select-q8FUIWLi.js";
5
- import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-3o3OJASC.js";
1
+ import { a as e, n as t, o as n } from "./recipes-CD2Ibsv9.js";
2
+ import { t as r } from "./Button-WA6BonwF.js";
3
+ import { t as i } from "./Field-DuZfFNFT.js";
4
+ import { i as a, t as o } from "./Select-B5c6Y3mf.js";
5
+ import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-C8vsEA6K.js";
6
6
  import { Fragment as f, computed as p, createBlock as re, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeProps as ie, nextTick as ae, normalizeClass as b, normalizeStyle as oe, onBeforeUnmount as se, onMounted as ce, openBlock as x, reactive as le, ref as S, renderList as ue, resolveDynamicComponent as de, toDisplayString as C, unref as w, useAttrs as fe, useId as pe, useTemplateRef as T, vModelText as me, watch as E, withCtx as D, withDirectives as he, withModifiers as ge } from "vue";
7
7
  import { CaseSensitive as _e, ChevronDown as ve, ChevronUp as ye, Download as be, FileWarning as xe, Maximize as Se, Minimize as Ce, PanelLeft as we, Printer as Te, RotateCw as Ee, Search as De, X as Oe, ZoomIn as ke, ZoomOut as Ae } from "@lucide/vue";
8
8
  import { PDF_ZOOM_MAX as je, PDF_ZOOM_MIN as Me, clampPdfPage as Ne, clampPdfZoom as Pe, downloadBytes as Fe, input as Ie, normalizePdfRotation as O, parsePdfPage as Le, pdfFileName as Re, pdfKeyAction as ze, pdfPrintDocument as k, pdfSearchText as Be, pdfThumbnailSize as Ve, pdfTools as A, pdfViewer as He, pdfZoomFromKey as Ue, pdfZoomKey as We, pdfZoomStep as Ge, pdfZoomSteps as j, pdfZoomSteps as Ke, resolvePdfTools as qe, setupToolbar as Je } from "@wirecore/wirelayer-recipes";
@@ -475,7 +475,7 @@ var et = [
475
475
  "error"
476
476
  ],
477
477
  setup(y, { expose: Pe, emit: Fe }) {
478
- let k = y, A = Fe, Ge = n("pdfViewer", He, () => k.classes), j = p(() => Ge()), M = Ie({ size: "sm" }), N = fe(), Xe = e(), P = Xe.pdfViewer, Ze = Xe.common, Qe = t(), F = pe(), I = p(() => new Set(qe(k.toolbar))), L = le(Ye(k.zoom, k.rotation, k.page)), R = p(() => L.status === "ready"), z = T("root"), Ot = T("container"), kt = T("pages"), At = T("toolbarElement"), B, V = S(String(k.page)), H = S(!1);
478
+ let k = y, A = Fe, Ge = t("pdfViewer", He, () => k.classes), j = p(() => Ge()), M = Ie({ size: "sm" }), N = fe(), Xe = n(), P = Xe.pdfViewer, Ze = Xe.common, Qe = e(), F = pe(), I = p(() => new Set(qe(k.toolbar))), L = le(Ye(k.zoom, k.rotation, k.page)), R = p(() => L.status === "ready"), z = T("root"), Ot = T("container"), kt = T("pages"), At = T("toolbarElement"), B, V = S(String(k.page)), H = S(!1);
479
479
  E(() => L.page, (e) => {
480
480
  H.value || (V.value = String(e));
481
481
  });
@@ -35,5 +35,12 @@ function h(e, n, i) {
35
35
  let a = t(p, null);
36
36
  return r(e), ((t) => o(n, [a?.value[e], i ? { classes: i() } : void 0])(t));
37
37
  }
38
+ function g(e, n) {
39
+ let r = t(p, null), i = n.defaultVariants;
40
+ return () => ({
41
+ ...i,
42
+ ...r?.value[e]?.defaultVariants
43
+ });
44
+ }
38
45
  //#endregion
39
- export { f as a, u as i, h as n, l as r, m as t };
46
+ export { u as a, l as i, h as n, f as o, g as r, m as t };
package/dist/recipes.d.ts CHANGED
@@ -6,4 +6,10 @@ export declare function provideRecipes(overrides: () => RecipeOverrides): void;
6
6
  * Call it in setup; it reads both on every call, so a computed or render that calls it follows changes.
7
7
  */
8
8
  export declare function useRecipe<R extends AnyRecipe>(name: string, recipe: R, classes?: () => RecipeClasses<R> | undefined): R;
9
+ /**
10
+ * The default variants of a recipe – its own, overridden by the nearest RecipesProvider. For props that change the
11
+ * markup as well as the classes (DialogContent `titlePosition` ↔ `titleInHeader`, DataTable `showFilters` …): the
12
+ * component reads the default here when the prop is not set. Call it in setup; the getter follows changes.
13
+ */
14
+ export declare function useRecipeDefaults<R extends AnyRecipe>(name: string, recipe: R): () => Partial<Omit<NonNullable<Parameters<R>[0]>, 'class' | 'className'>>;
9
15
  //# sourceMappingURL=recipes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACvB,MAAM,6BAA6B,CAAC;AAKrC,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,eAAe,QAM9D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,EACzC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,EACT,OAAO,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,GAC7C,CAAC,CAKH"}
1
+ {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACvB,MAAM,6BAA6B,CAAC;AAKrC,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,eAAe,QAM9D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,EACzC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,EACT,OAAO,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,GAC7C,CAAC,CAKH;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,SAAS,EACjD,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,GACV,MAAM,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC,CAO3E"}
@@ -0,0 +1,3 @@
1
+ /* Classes of dateRangeInput – generated by scripts/sources.ts, do not edit */
2
+ @import '@wirecore/wirelayer-recipes/sources/datePicker.css';
3
+ @import '@wirecore/wirelayer-recipes/sources/numberInput.css';
@@ -1,6 +1,6 @@
1
- import { a as e, i as t, n } from "./recipes-BlM9aKyt.js";
2
- import { t as r } from "./Button-BpMOPs8b.js";
3
- import { t as i } from "./Highlight-uwptdaUw.js";
1
+ import { a as e, n as t, o as n } from "./recipes-CD2Ibsv9.js";
2
+ import { t as r } from "./Button-WA6BonwF.js";
3
+ import { t as i } from "./Highlight-BM-J3Jj0.js";
4
4
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, inject as h, mergeProps as g, nextTick as ee, normalizeClass as _, normalizeProps as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S, renderList as te, renderSlot as C, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as ie, toDisplayString as w, unref as T, watch as E, withCtx as D, withModifiers as ae } from "vue";
5
5
  import { Check as O, ChevronRight as oe, LoaderCircle as se, Minus as k, RotateCw as A } from "@lucide/vue";
6
6
  import { ChildrenLoader as ce, filterTree as j, isLazyNode as M, locateTreeNode as N, moveTreeNode as P, pluralText as F, pruneTree as I, toggleTreeChecked as le, tree as L, treeBranchIds as R, treeCheckStates as ue, treeCheckedValue as de, treeDropMove as z, treeInsertPosition as fe, treeKeyboardMove as pe, treeMoveAnchor as me, treeRetryId as he, treeRetryParent as B, walkTree as ge, withLoadedChildren as _e } from "@wirecore/wirelayer-recipes";
@@ -17,8 +17,8 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
17
17
  posinset: {},
18
18
  setsize: {}
19
19
  },
20
- setup(t) {
21
- let r = t, p = n("tree", L)(), ee = e().tree, y = h(ye), b = h(H), S = (e) => y.drop.value?.id === e ? y.drop.value.position : void 0, ie = (e) => e === "indeterminate" ? "mixed" : e, E = o(() => !!r.node.children || M(r.node)), ce = o(() => B(r.node.id) !== void 0), j = o(() => b.loadingOf(r.node)), N = o(() => b.matches.value.has(r.node.id)), P = o(() => b.ownChecks.value), F = o(() => b.checkStates.value?.get(r.node.id) ?? !1), I = (e) => P.value ? F.value : e.checked, le = o(() => y.reorderable.value && !r.node.disabled && !ce.value ? "true" : void 0), R = (e) => ({
20
+ setup(e) {
21
+ let r = e, p = t("tree", L)(), ee = n().tree, y = h(ye), b = h(H), S = (e) => y.drop.value?.id === e ? y.drop.value.position : void 0, ie = (e) => e === "indeterminate" ? "mixed" : e, E = o(() => !!r.node.children || M(r.node)), ce = o(() => B(r.node.id) !== void 0), j = o(() => b.loadingOf(r.node)), N = o(() => b.matches.value.has(r.node.id)), P = o(() => b.ownChecks.value), F = o(() => b.checkStates.value?.get(r.node.id) ?? !1), I = (e) => P.value ? F.value : e.checked, le = o(() => y.reorderable.value && !r.node.disabled && !ce.value ? "true" : void 0), R = (e) => ({
22
22
  node: r.node,
23
23
  level: e.depth,
24
24
  selected: e.selected,
@@ -29,31 +29,31 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
29
29
  match: N.value,
30
30
  query: b.query.value
31
31
  });
32
- return (e, n) => {
32
+ return (t, n) => {
33
33
  let r = ne("TreeNodeView", !0);
34
34
  return x(), s(T(V).NodeProvider, {
35
- node: t.node,
36
- "index-path": t.indexPath
35
+ node: e.node,
36
+ "index-path": e.indexPath
37
37
  }, {
38
38
  default: D(() => [f(T(V).NodeContext, null, {
39
39
  default: D((o) => [E.value ? (x(), s(T(V).Branch, {
40
40
  key: 0,
41
- "data-node-id": t.node.id,
41
+ "data-node-id": e.node.id,
42
42
  "aria-keyshortcuts": T(y).reorderable.value ? G : void 0,
43
- "aria-checked": t.checkable ? ie(I(o)) : void 0,
43
+ "aria-checked": e.checkable ? ie(I(o)) : void 0,
44
44
  "aria-busy": j.value || void 0,
45
- "aria-posinset": t.posinset,
46
- "aria-setsize": t.setsize,
45
+ "aria-posinset": e.posinset,
46
+ "aria-setsize": e.setsize,
47
47
  "data-match": N.value || void 0
48
48
  }, {
49
49
  default: D(() => [f(T(V).BranchControl, {
50
50
  class: _(T(p).branch({ class: T(y).reorderable.value ? T(p).dropTarget() : void 0 })),
51
51
  draggable: le.value,
52
- "data-drop": S(t.node.id),
53
- "data-dragging": T(y).dragging.value === t.node.id || void 0,
54
- "data-cut": T(b).cutId.value === t.node.id || void 0,
55
- onDragstart: n[1] ||= (e) => T(y).onDragStart(t.node.id, e),
56
- onDragover: n[2] ||= (e) => T(y).onDragOver(t.node.id, !0, e),
52
+ "data-drop": S(e.node.id),
53
+ "data-dragging": T(y).dragging.value === e.node.id || void 0,
54
+ "data-cut": T(b).cutId.value === e.node.id || void 0,
55
+ onDragstart: n[1] ||= (t) => T(y).onDragStart(e.node.id, t),
56
+ onDragover: n[2] ||= (t) => T(y).onDragOver(e.node.id, !0, t),
57
57
  onDrop: T(y).onDrop,
58
58
  onDragend: T(y).onDragEnd
59
59
  }, {
@@ -65,21 +65,21 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
65
65
  }, null, 8, ["class"])]),
66
66
  _: 1
67
67
  }, 8, ["class"]),
68
- t.checkable && P.value ? (x(), l("span", {
68
+ e.checkable && P.value ? (x(), l("span", {
69
69
  key: 0,
70
70
  "data-part": "node-checkbox",
71
71
  "data-state": F.value === "indeterminate" ? "indeterminate" : F.value ? "checked" : "unchecked",
72
72
  role: "presentation",
73
73
  "aria-hidden": "true",
74
74
  class: _(T(p).checkbox()),
75
- onClick: n[0] ||= ae((e) => T(b).toggleCheck(t.node.id), ["stop"])
75
+ onClick: n[0] ||= ae((t) => T(b).toggleCheck(e.node.id), ["stop"])
76
76
  }, [F.value === "indeterminate" ? (x(), s(T(k), {
77
77
  key: 0,
78
78
  class: _(T(p).checkboxIcon())
79
79
  }, null, 8, ["class"])) : F.value ? (x(), s(T(O), {
80
80
  key: 1,
81
81
  class: _(T(p).checkboxIcon())
82
- }, null, 8, ["class"])) : c("", !0)], 10, W)) : t.checkable ? (x(), s(T(V).NodeCheckbox, {
82
+ }, null, 8, ["class"])) : c("", !0)], 10, W)) : e.checkable ? (x(), s(T(V).NodeCheckbox, {
83
83
  key: 1,
84
84
  class: _(T(p).checkbox()),
85
85
  role: "presentation",
@@ -98,17 +98,17 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
98
98
  })]),
99
99
  _: 1
100
100
  }, 8, ["class"])) : c("", !0),
101
- e.$slots.node ? C(e.$slots, "node", v(m(R(o))), void 0, void 0, 2) : (x(), l(a, { key: 3 }, [t.node.icon ? (x(), s(re(t.node.icon), {
101
+ t.$slots.node ? C(t.$slots, "node", v(m(R(o))), void 0, void 0, 2) : (x(), l(a, { key: 3 }, [e.node.icon ? (x(), s(re(e.node.icon), {
102
102
  key: 0,
103
103
  class: _(T(p).icon()),
104
104
  "aria-hidden": "true"
105
105
  }, null, 8, ["class"])) : c("", !0), f(T(V).BranchText, { class: _(T(p).text()) }, {
106
106
  default: D(() => [N.value ? (x(), s(i, {
107
107
  key: 0,
108
- text: t.node.label,
108
+ text: e.node.label,
109
109
  query: T(b).query.value,
110
110
  "ignore-accents": ""
111
- }, null, 8, ["text", "query"])) : (x(), l(a, { key: 1 }, [d(w(t.node.label), 1)], 64))]),
111
+ }, null, 8, ["text", "query"])) : (x(), l(a, { key: 1 }, [d(w(e.node.label), 1)], 64))]),
112
112
  _: 1
113
113
  }, 8, ["class"])], 64))
114
114
  ]),
@@ -121,19 +121,19 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
121
121
  "data-cut",
122
122
  "onDrop",
123
123
  "onDragend"
124
- ]), t.flat ? c("", !0) : (x(), s(T(V).BranchContent, v(g({ key: 0 }, T(b).showLines.value ? { class: T(p).lines() } : {})), {
124
+ ]), e.flat ? c("", !0) : (x(), s(T(V).BranchContent, v(g({ key: 0 }, T(b).showLines.value ? { class: T(p).lines() } : {})), {
125
125
  default: D(() => [j.value ? (x(), l("div", {
126
126
  key: 0,
127
127
  class: _(T(p).loadingRow()),
128
128
  "aria-hidden": "true"
129
- }, [f(T(se), { class: _(T(p).loadingIcon()) }, null, 8, ["class"]), d(" " + w(T(ee).loadingRow), 1)], 2)) : c("", !0), (x(!0), l(a, null, te(t.node.children ?? [], (n, i) => (x(), s(r, {
129
+ }, [f(T(se), { class: _(T(p).loadingIcon()) }, null, 8, ["class"]), d(" " + w(T(ee).loadingRow), 1)], 2)) : c("", !0), (x(!0), l(a, null, te(e.node.children ?? [], (n, i) => (x(), s(r, {
130
130
  key: n.id,
131
131
  node: n,
132
- "index-path": [...t.indexPath, i],
133
- checkable: t.checkable
134
- }, u({ _: 2 }, [e.$slots.node ? {
132
+ "index-path": [...e.indexPath, i],
133
+ checkable: e.checkable
134
+ }, u({ _: 2 }, [t.$slots.node ? {
135
135
  name: "node",
136
- fn: D((t) => [C(e.$slots, "node", g({ ref_for: !0 }, t))]),
136
+ fn: D((e) => [C(t.$slots, "node", g({ ref_for: !0 }, e))]),
137
137
  key: "0"
138
138
  } : void 0]), 1032, [
139
139
  "node",
@@ -154,15 +154,15 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
154
154
  ])) : ce.value ? (x(), s(T(V).Item, {
155
155
  key: 1,
156
156
  class: _(T(p).item({ class: T(p).retry() })),
157
- "data-node-id": t.node.id,
158
- "aria-posinset": t.posinset,
159
- "aria-setsize": t.setsize
157
+ "data-node-id": e.node.id,
158
+ "aria-posinset": e.posinset,
159
+ "aria-setsize": e.setsize
160
160
  }, {
161
161
  default: D(() => [f(T(A), {
162
162
  class: _(T(p).retryIcon()),
163
163
  "aria-hidden": "true"
164
164
  }, null, 8, ["class"]), f(T(V).ItemText, { class: _(T(p).text()) }, {
165
- default: D(() => [d(w(t.node.label), 1)]),
165
+ default: D(() => [d(w(e.node.label), 1)]),
166
166
  _: 1
167
167
  }, 8, ["class"])]),
168
168
  _: 1
@@ -174,33 +174,33 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
174
174
  ])) : (x(), s(T(V).Item, {
175
175
  key: 2,
176
176
  class: _(T(p).item({ class: T(y).reorderable.value ? T(p).dropTarget() : void 0 })),
177
- "data-node-id": t.node.id,
177
+ "data-node-id": e.node.id,
178
178
  "aria-keyshortcuts": T(y).reorderable.value ? G : void 0,
179
- "aria-checked": t.checkable ? ie(I(o)) : void 0,
180
- "aria-posinset": t.posinset,
181
- "aria-setsize": t.setsize,
179
+ "aria-checked": e.checkable ? ie(I(o)) : void 0,
180
+ "aria-posinset": e.posinset,
181
+ "aria-setsize": e.setsize,
182
182
  "data-match": N.value || void 0,
183
183
  draggable: le.value,
184
- "data-drop": S(t.node.id),
185
- "data-dragging": T(y).dragging.value === t.node.id || void 0,
186
- "data-cut": T(b).cutId.value === t.node.id || void 0,
187
- onDragstart: n[4] ||= (e) => T(y).onDragStart(t.node.id, e),
188
- onDragover: n[5] ||= (e) => T(y).onDragOver(t.node.id, !1, e),
184
+ "data-drop": S(e.node.id),
185
+ "data-dragging": T(y).dragging.value === e.node.id || void 0,
186
+ "data-cut": T(b).cutId.value === e.node.id || void 0,
187
+ onDragstart: n[4] ||= (t) => T(y).onDragStart(e.node.id, t),
188
+ onDragover: n[5] ||= (t) => T(y).onDragOver(e.node.id, !1, t),
189
189
  onDrop: T(y).onDrop,
190
190
  onDragend: T(y).onDragEnd
191
191
  }, {
192
- default: D(() => [t.checkable && P.value ? (x(), l("span", {
192
+ default: D(() => [e.checkable && P.value ? (x(), l("span", {
193
193
  key: 0,
194
194
  "data-part": "node-checkbox",
195
195
  "data-state": F.value ? "checked" : "unchecked",
196
196
  role: "presentation",
197
197
  "aria-hidden": "true",
198
198
  class: _(T(p).checkbox()),
199
- onClick: n[3] ||= ae((e) => T(b).toggleCheck(t.node.id), ["stop"])
199
+ onClick: n[3] ||= ae((t) => T(b).toggleCheck(e.node.id), ["stop"])
200
200
  }, [F.value ? (x(), s(T(O), {
201
201
  key: 0,
202
202
  class: _(T(p).checkboxIcon())
203
- }, null, 8, ["class"])) : c("", !0)], 10, be)) : t.checkable ? (x(), s(T(V).NodeCheckbox, {
203
+ }, null, 8, ["class"])) : c("", !0)], 10, be)) : e.checkable ? (x(), s(T(V).NodeCheckbox, {
204
204
  key: 1,
205
205
  class: _(T(p).checkbox()),
206
206
  role: "presentation",
@@ -218,17 +218,17 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
218
218
  _: 1
219
219
  })]),
220
220
  _: 1
221
- }, 8, ["class"])) : c("", !0), e.$slots.node ? C(e.$slots, "node", v(m(R(o))), void 0, void 0, 2) : (x(), l(a, { key: 3 }, [t.node.icon ? (x(), s(re(t.node.icon), {
221
+ }, 8, ["class"])) : c("", !0), t.$slots.node ? C(t.$slots, "node", v(m(R(o))), void 0, void 0, 2) : (x(), l(a, { key: 3 }, [e.node.icon ? (x(), s(re(e.node.icon), {
222
222
  key: 0,
223
223
  class: _(T(p).icon()),
224
224
  "aria-hidden": "true"
225
225
  }, null, 8, ["class"])) : c("", !0), f(T(V).ItemText, { class: _(T(p).text()) }, {
226
226
  default: D(() => [N.value ? (x(), s(i, {
227
227
  key: 0,
228
- text: t.node.label,
228
+ text: e.node.label,
229
229
  query: T(b).query.value,
230
230
  "ignore-accents": ""
231
- }, null, 8, ["text", "query"])) : (x(), l(a, { key: 1 }, [d(w(t.node.label), 1)], 64))]),
231
+ }, null, 8, ["text", "query"])) : (x(), l(a, { key: 1 }, [d(w(e.node.label), 1)], 64))]),
232
232
  _: 1
233
233
  }, 8, ["class"])], 64))]),
234
234
  _: 2
@@ -266,35 +266,35 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
266
266
  expandControls: { type: Boolean },
267
267
  classes: {}
268
268
  },
269
- setup(t) {
270
- let i = t, o = n("tree", L, () => i.classes)(), s = e(), u = s.tree;
269
+ setup(e) {
270
+ let i = e, o = t("tree", L, () => i.classes)(), s = n(), u = s.tree;
271
271
  function p(e) {
272
272
  e.key === "Enter" && i.filterMode === "highlight" && (e.preventDefault(), i.model.jump(e.shiftKey ? -1 : 1));
273
273
  }
274
- return (e, n) => t.filter || t.expandControls ? (x(), l("div", {
274
+ return (t, n) => e.filter || e.expandControls ? (x(), l("div", {
275
275
  key: 0,
276
276
  class: _(T(o).toolbar())
277
- }, [t.filter ? (x(), l("input", {
277
+ }, [e.filter ? (x(), l("input", {
278
278
  key: 0,
279
279
  type: "search",
280
280
  autocomplete: "off",
281
281
  class: _(T(o).search()),
282
282
  "aria-label": T(u).filter,
283
283
  placeholder: T(s).combobox.search,
284
- value: t.model.query.value,
285
- onInput: n[0] ||= (e) => t.model.setQuery(e.target.value),
284
+ value: e.model.query.value,
285
+ onInput: n[0] ||= (t) => e.model.setQuery(t.target.value),
286
286
  onKeydown: p
287
- }, null, 42, K)) : c("", !0), t.expandControls ? (x(), l(a, { key: 1 }, [f(r, {
287
+ }, null, 42, K)) : c("", !0), e.expandControls ? (x(), l(a, { key: 1 }, [f(r, {
288
288
  variant: "text",
289
289
  size: "sm",
290
- onClick: t.model.expandAll
290
+ onClick: e.model.expandAll
291
291
  }, {
292
292
  default: D(() => [d(w(T(u).expandAll), 1)]),
293
293
  _: 1
294
294
  }, 8, ["onClick"]), f(r, {
295
295
  variant: "text",
296
296
  size: "sm",
297
- onClick: t.model.collapseAll
297
+ onClick: e.model.collapseAll
298
298
  }, {
299
299
  default: D(() => [d(w(T(u).collapseAll), 1)]),
300
300
  _: 1
@@ -306,13 +306,13 @@ var ye = Symbol("TreeDrag"), H = Symbol("TreeModel"), U = S(null), W = ["data-st
306
306
  M(e) && (t = !0);
307
307
  }), t;
308
308
  };
309
- function J(n, r, i) {
310
- let a = e(), s = t(), c = a.tree, l = S(""), u = Symbol("tree"), d = ie({
309
+ function J(t, r, i) {
310
+ let a = n(), s = e(), c = a.tree, l = S(""), u = Symbol("tree"), d = ie({
311
311
  status: {},
312
312
  children: {},
313
313
  errors: {}
314
- }), f = S(/* @__PURE__ */ new Set()), p = o(() => _e(n.items, d.value.children)), m = (e) => q(p.value, e)?.label ?? e, h = new ce({
315
- load: (e, t) => n.loadChildren ? n.loadChildren(e, t) : n.dataSource.getChildren(e, t).then((e) => e.items),
314
+ }), f = S(/* @__PURE__ */ new Set()), p = o(() => _e(t.items, d.value.children)), m = (e) => q(p.value, e)?.label ?? e, h = new ce({
315
+ load: (e, n) => t.loadChildren ? t.loadChildren(e, n) : t.dataSource.getChildren(e, n).then((e) => e.items),
316
316
  onChange: (e) => {
317
317
  let t = d.value.status;
318
318
  d.value = e;
@@ -320,8 +320,8 @@ function J(n, r, i) {
320
320
  }
321
321
  });
322
322
  y(() => h.dispose());
323
- let g = () => !!n.loadChildren || !!n.dataSource?.getChildren, _ = (e) => M(e) && (d.value.status[e.id] === "loading" || !g() && f.value.has(e.id)), v = (e) => M(e) && d.value.status[e.id] === "error", x = S(!1);
324
- E(() => Ce(n.items), (e) => {
323
+ let g = () => !!t.loadChildren || !!t.dataSource?.getChildren, _ = (e) => M(e) && (d.value.status[e.id] === "loading" || !g() && f.value.has(e.id)), v = (e) => M(e) && d.value.status[e.id] === "error", x = S(!1);
324
+ E(() => Ce(t.items), (e) => {
325
325
  e && (x.value = !0);
326
326
  }, { immediate: !0 });
327
327
  let te = o(() => g() || x.value);
@@ -338,30 +338,30 @@ function J(n, r, i) {
338
338
  function re(e) {
339
339
  h.invalidate(e), f.value = e === void 0 ? /* @__PURE__ */ new Set() : new Set([...f.value].filter((t) => t !== e)), C(e === void 0 ? T.value : T.value.filter((t) => t === e));
340
340
  }
341
- let w = S(n.defaultExpandedValue ?? []), T = o(() => n.expandedValue ?? w.value);
341
+ let w = S(t.defaultExpandedValue ?? []), T = o(() => t.expandedValue ?? w.value);
342
342
  function D(e) {
343
343
  w.value = e, r("update:expandedValue", e);
344
344
  }
345
345
  E(T, (e, t) => C(e.filter((e) => !t.includes(e)))), b(() => C(T.value));
346
- let ae = () => D(R(p.value)), O = () => D([]), oe = S(n.defaultSelectedValue ?? []), se = o(() => n.selectedValue ?? oe.value);
346
+ let ae = () => D(R(p.value)), O = () => D([]), oe = S(t.defaultSelectedValue ?? []), se = o(() => t.selectedValue ?? oe.value);
347
347
  function k(e) {
348
348
  let t = e.find((e) => B(e) !== void 0);
349
349
  if (t) return ne(B(t));
350
350
  oe.value = e, r("update:selectedValue", e);
351
351
  }
352
- let A = o(() => !!n.checkable && (!!n.checkStrictly || n.checkedStrategy !== void 0 || te.value)), N = S(n.defaultCheckedValue ?? []), L = o(() => n.checkedValue ?? N.value), ge = o(() => A.value ? ue(p.value, L.value, n.checkStrictly) : void 0);
352
+ let A = o(() => !!t.checkable && (!!t.checkStrictly || t.checkedStrategy !== void 0 || te.value)), N = S(t.defaultCheckedValue ?? []), L = o(() => t.checkedValue ?? N.value), ge = o(() => A.value ? ue(p.value, L.value, t.checkStrictly) : void 0);
353
353
  function V(e) {
354
- let t = le(p.value, L.value, e, n.checkStrictly), i = de(p.value, t, n.checkedStrategy ?? "all", n.checkStrictly);
354
+ let n = le(p.value, L.value, e, t.checkStrictly), i = de(p.value, n, t.checkedStrategy ?? "all", t.checkStrictly);
355
355
  N.value = i, r("update:checkedValue", i);
356
356
  }
357
357
  function ye(e) {
358
358
  N.value = e, r("update:checkedValue", e);
359
359
  }
360
- let H = S(""), W = o(() => n.filterValue ?? H.value);
360
+ let H = S(""), W = o(() => t.filterValue ?? H.value);
361
361
  function be(e) {
362
362
  H.value = e, r("update:filterValue", e);
363
363
  }
364
- let G = o(() => j(p.value, W.value, (e) => e.label, n.filterMode ?? "filter")), xe = o(() => new Set(G.value.matches)), K = null;
364
+ let G = o(() => j(p.value, W.value, (e) => e.label, t.filterMode ?? "filter")), xe = o(() => new Set(G.value.matches)), K = null;
365
365
  function Se() {
366
366
  if (!W.value.trim()) {
367
367
  K && D(K), K = null;
@@ -406,15 +406,15 @@ function J(n, r, i) {
406
406
  (t?.matches("[data-part=branch]") ? t.querySelector(":scope > [data-part=branch-control]") : t)?.focus();
407
407
  }
408
408
  let X = null;
409
- E(() => n.items, async () => {
409
+ E(() => t.items, async () => {
410
410
  if (!X) return;
411
411
  let e = X;
412
412
  X = null, await ee(), Y(e);
413
413
  });
414
- let De = (e, t) => (e ? q(p.value, e)?.children ?? [] : p.value).filter((e) => e.id !== t).length + 1, Oe = (e, t) => {
415
- if (!e || !n.allowDrop) return !0;
416
- let r = me(p.value, t);
417
- return n.allowDrop(e, r.target, r.position);
414
+ let De = (e, t) => (e ? q(p.value, e)?.children ?? [] : p.value).filter((e) => e.id !== t).length + 1, Oe = (e, n) => {
415
+ if (!e || !t.allowDrop) return !0;
416
+ let r = me(p.value, n);
417
+ return t.allowDrop(e, r.target, r.position);
418
418
  };
419
419
  function ke(e) {
420
420
  if (!e) return;
@@ -428,74 +428,74 @@ function J(n, r, i) {
428
428
  items: P(p.value, e)
429
429
  } : e);
430
430
  }
431
- function Ae(e, t, i) {
431
+ function Ae(e, n, i) {
432
432
  let a = i.parentId ? m(i.parentId) : null;
433
433
  l.value = c.moved(e.label, a, i.index + 1, De(i.parentId, e.id)), X = e.id, r("transfer", {
434
434
  node: e,
435
- sourceTree: t,
436
- targetTree: n.name,
435
+ sourceTree: n,
436
+ targetTree: t.name,
437
437
  ...i
438
438
  });
439
439
  }
440
440
  let Z = (e) => {
441
- let t = U.value;
442
- return t && t.mode === e && t.tree !== u && n.group !== void 0 && t.group === n.group ? t : null;
441
+ let n = U.value;
442
+ return n && n.mode === e && n.tree !== u && t.group !== void 0 && n.group === t.group ? n : null;
443
443
  }, je = o(() => U.value?.mode === "cut" && U.value.tree === u ? U.value.node.id : null), Me = (e) => e.children ? "inside" : "after";
444
444
  function Ne(e) {
445
- let t = U.value;
446
- if (!t || t.mode !== "cut") return !1;
445
+ let n = U.value;
446
+ if (!n || n.mode !== "cut") return !1;
447
447
  let r = q(p.value, e);
448
448
  if (!r) return !1;
449
449
  let i = Me(r);
450
- if (n.allowDrop && !n.allowDrop(t.node, r, i)) return l.value = c.dropDenied, !0;
451
- if (t.tree === u) {
452
- if (!n.reorderable) return !1;
453
- let r = z(p.value, t.node.id, e, i);
450
+ if (t.allowDrop && !t.allowDrop(n.node, r, i)) return l.value = c.dropDenied, !0;
451
+ if (n.tree === u) {
452
+ if (!t.reorderable) return !1;
453
+ let r = z(p.value, n.node.id, e, i);
454
454
  r ? ke(r) : l.value = c.dropDenied;
455
455
  } else {
456
456
  if (!Z("cut")) return !1;
457
- let n = fe(p.value, e, i);
458
- n && Ae(t.node, t.name, n);
457
+ let t = fe(p.value, e, i);
458
+ t && Ae(n.node, n.name, t);
459
459
  }
460
460
  return U.value = null, !0;
461
461
  }
462
462
  function Pe(e) {
463
- if (!n.checkable || e.key !== " " || e.altKey) return;
464
- let t = e.target.querySelector(":scope > [data-part=\"node-checkbox\"]");
465
- t && (e.preventDefault(), e.stopPropagation(), t.click());
463
+ if (!t.checkable || e.key !== " " || e.altKey) return;
464
+ let n = e.target.querySelector(":scope > [data-part=\"node-checkbox\"]");
465
+ n && (e.preventDefault(), e.stopPropagation(), n.click());
466
466
  }
467
467
  let Fe = {
468
468
  ArrowUp: "up",
469
469
  ArrowDown: "down"
470
- }, Ie = o(() => n.reorderable || n.group !== void 0);
470
+ }, Ie = o(() => t.reorderable || t.group !== void 0);
471
471
  function Le(e) {
472
472
  Pe(e);
473
- let t = e.target.closest("[data-node-id]")?.dataset.nodeId;
474
- if (!t || B(t) !== void 0) return;
473
+ let n = e.target.closest("[data-node-id]")?.dataset.nodeId;
474
+ if (!n || B(n) !== void 0) return;
475
475
  let r = e.ctrlKey || e.metaKey;
476
476
  if (Ie.value && r && !e.altKey && (e.key === "x" || e.key === "X")) {
477
- let r = q(p.value, t);
477
+ let r = q(p.value, n);
478
478
  if (!r || r.disabled) return;
479
479
  e.preventDefault(), U.value = {
480
480
  mode: "cut",
481
481
  node: r,
482
482
  tree: u,
483
- group: n.group,
484
- name: n.name
483
+ group: t.group,
484
+ name: t.name
485
485
  }, l.value = c.cut(r.label);
486
486
  return;
487
487
  }
488
488
  if (r && !e.altKey && (e.key === "v" || e.key === "V")) {
489
- Ne(t) && e.preventDefault();
489
+ Ne(n) && e.preventDefault();
490
490
  return;
491
491
  }
492
492
  if (e.key === "Escape" && je.value) {
493
493
  e.preventDefault(), e.stopPropagation(), U.value = null, l.value = c.cutCancelled;
494
494
  return;
495
495
  }
496
- if (!n.reorderable || !e.altKey) return;
496
+ if (!t.reorderable || !e.altKey) return;
497
497
  let i = s.value.dir === "rtl", a = Fe[e.key] ?? (e.key === "ArrowRight" ? i ? "out" : "in" : e.key === "ArrowLeft" ? i ? "in" : "out" : void 0);
498
- a && (e.preventDefault(), e.stopPropagation(), ke(pe(p.value, t, a)));
498
+ a && (e.preventDefault(), e.stopPropagation(), ke(pe(p.value, n, a)));
499
499
  }
500
500
  let Q = S(null), $ = S(null);
501
501
  function Re(e, t) {
@@ -503,37 +503,37 @@ function J(n, r, i) {
503
503
  return t ? r < .25 ? "before" : r > .75 ? "after" : "inside" : r < .5 ? "before" : "after";
504
504
  }
505
505
  let ze = {
506
- reorderable: o(() => n.reorderable || n.group !== void 0),
506
+ reorderable: o(() => t.reorderable || t.group !== void 0),
507
507
  dragging: Q,
508
508
  drop: $,
509
- onDragStart(e, t) {
509
+ onDragStart(e, n) {
510
510
  let r = q(p.value, e);
511
511
  r && (Q.value = e, U.value = {
512
512
  mode: "drag",
513
513
  node: r,
514
514
  tree: u,
515
- group: n.group,
516
- name: n.name
517
- }, t.dataTransfer?.setData("text/plain", r.label), t.dataTransfer && (t.dataTransfer.effectAllowed = "move"));
515
+ group: t.group,
516
+ name: t.name
517
+ }, n.dataTransfer?.setData("text/plain", r.label), n.dataTransfer && (n.dataTransfer.effectAllowed = "move"));
518
518
  },
519
- onDragOver(e, t, r) {
519
+ onDragOver(e, n, r) {
520
520
  let i = Z("drag");
521
- if ((!Q.value || !n.reorderable) && !i || Q.value === e) return;
521
+ if ((!Q.value || !t.reorderable) && !i || Q.value === e) return;
522
522
  let a = q(p.value, e);
523
523
  a && M(a) && C([e]);
524
- let o = Re(r, t), s = i ? i.node : q(p.value, Q.value), c = i ? fe(p.value, e, o) : z(p.value, Q.value, e, o), l = q(p.value, e) ?? null;
525
- !c || !s || n.allowDrop && !n.allowDrop(s, l, o) ? $.value = null : (r.preventDefault(), $.value = {
524
+ let o = Re(r, n), s = i ? i.node : q(p.value, Q.value), c = i ? fe(p.value, e, o) : z(p.value, Q.value, e, o), l = q(p.value, e) ?? null;
525
+ !c || !s || t.allowDrop && !t.allowDrop(s, l, o) ? $.value = null : (r.preventDefault(), $.value = {
526
526
  id: e,
527
527
  position: o
528
528
  });
529
529
  },
530
530
  onDrop(e) {
531
531
  e.preventDefault();
532
- let t = Z("drag");
533
- if ($.value && Q.value && n.reorderable) ke(z(p.value, Q.value, $.value.id, $.value.position));
534
- else if ($.value && t) {
532
+ let n = Z("drag");
533
+ if ($.value && Q.value && t.reorderable) ke(z(p.value, Q.value, $.value.id, $.value.position));
534
+ else if ($.value && n) {
535
535
  let e = fe(p.value, $.value.id, $.value.position);
536
- e && Ae(t.node, t.name, e);
536
+ e && Ae(n.node, n.name, e);
537
537
  }
538
538
  Q.value = null, $.value = null;
539
539
  },
@@ -542,8 +542,8 @@ function J(n, r, i) {
542
542
  }
543
543
  };
544
544
  function Be(e) {
545
- let t = Z("drag");
546
- !t || n.allowDrop && !n.allowDrop(t.node, null, "inside") || e.preventDefault();
545
+ let n = Z("drag");
546
+ !n || t.allowDrop && !t.allowDrop(n.node, null, "inside") || e.preventDefault();
547
547
  }
548
548
  function Ve(e) {
549
549
  let t = Z("drag");
package/dist/virtual.js CHANGED
@@ -1,7 +1,7 @@
1
- import { a as e, n as t } from "./recipes-BlM9aKyt.js";
1
+ import { n as e, o as t } from "./recipes-CD2Ibsv9.js";
2
2
  import { t as n } from "./attrs-KNjeRUCf.js";
3
- import { a as r, i, n as a, r as o } from "./Highlight-uwptdaUw.js";
4
- import { a as ee, i as s, n as c, r as te, t as l } from "./useTree-UhG1TMeM.js";
3
+ import { a as r, i, n as a, r as o } from "./Highlight-BM-J3Jj0.js";
4
+ import { a as ee, i as s, n as c, r as te, t as l } from "./useTree-DjkjHeoy.js";
5
5
  import { Fragment as u, Teleport as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, openBlock as O, provide as k, ref as A, renderList as ne, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as re, useId as F, useSlots as I, watch as L, withCtx as R } from "vue";
6
6
  import { Check as z, ChevronDown as B, LoaderCircle as V, X as H } from "@lucide/vue";
7
7
  import { controlIds as ie, flattenTree as U, select as ae, tree as oe, virtualList as se, virtualListBox as W } from "@wirecore/wirelayer-recipes";
@@ -62,7 +62,7 @@ var de = ["aria-label", "onClick"], fe = [
62
62
  "loadMore"
63
63
  ],
64
64
  setup(i, { emit: ee }) {
65
- let s = e(), c = i, te = t("select", ae), l = t("virtualList", se), b = ee, k = re(), j = f(() => n(k)), I = f(() => te({
65
+ let s = t(), c = i, te = e("select", ae), l = e("virtualList", se), b = ee, k = re(), j = f(() => n(k)), I = f(() => te({
66
66
  size: c.size,
67
67
  clearable: c.clearable
68
68
  })), U = l(), oe = s.select, W = f(() => ({
@@ -400,7 +400,7 @@ var de = ["aria-label", "onClick"], fe = [
400
400
  },
401
401
  emits: ["loadMore", "endReached"],
402
402
  setup(n, { expose: r, emit: a }) {
403
- let o = n, ee = a, s = t("virtualListBox", W), c = re(), te = e(), l = s(), d = A(null), p = i({
403
+ let o = n, ee = a, s = e("virtualListBox", W), c = re(), te = t(), l = s(), d = A(null), p = i({
404
404
  source: () => o.dataSource,
405
405
  pageSize: () => o.pageSize,
406
406
  query: () => {
@@ -575,7 +575,7 @@ var de = ["aria-label", "onClick"], fe = [
575
575
  "loadChildren"
576
576
  ],
577
577
  setup(n, { expose: r, emit: i }) {
578
- let a = n, o = i, d = I(), b = t("tree", oe, () => a.classes)(), x = re(), C = e(), T = C.tree, D = A(null), M = l(a, o, f(() => D.value?.$el ?? null));
578
+ let a = n, o = i, d = I(), b = e("tree", oe, () => a.classes)(), x = re(), C = t(), T = C.tree, D = A(null), M = l(a, o, f(() => D.value?.$el ?? null));
579
579
  k(s, M.drag), k(ee, {
580
580
  ...M,
581
581
  showLines: f(() => !1)