wave-ui 3.2.0 → 3.3.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.
@@ -9,7 +9,7 @@ var X = (e, t, l) => (ae(e, t, "read from private field"), l ? l.call(e) : t.get
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  t instanceof WeakSet ? t.add(e) : t.set(e, l);
11
11
  }, te = (e, t, l, o) => (ae(e, t, "write to private field"), o ? o.call(e, l) : t.set(e, l), l);
12
- import { reactive as G, resolveComponent as $, openBlock as s, createBlock as b, Teleport as ke, createVNode as I, TransitionGroup as pe, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as _, renderList as T, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as E, renderSlot as p, toHandlers as A, createTextVNode as B, toDisplayString as k, Transition as x, normalizeStyle as L, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as ge, vModelText as me, vModelDynamic as Se, KeepAlive as $e } from "vue";
12
+ import { reactive as G, resolveComponent as $, openBlock as s, createBlock as b, Teleport as ke, createVNode as I, TransitionGroup as pe, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as _, renderList as x, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as E, renderSlot as p, toHandlers as A, createTextVNode as B, toDisplayString as k, Transition as P, normalizeStyle as L, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as ge, vModelText as me, vModelDynamic as Se, KeepAlive as $e } from "vue";
13
13
  const Ve = G({
14
14
  on: "#app",
15
15
  breakpoints: {
@@ -71,7 +71,7 @@ function Re(e, t, l, o, n, i) {
71
71
  appear: ""
72
72
  }, {
73
73
  default: g(() => [
74
- (s(!0), u(_, null, T(i.notifications, (r) => (s(), u(_, null, [
74
+ (s(!0), u(_, null, x(i.notifications, (r) => (s(), u(_, null, [
75
75
  r._value ? (s(), b(a, C({
76
76
  class: "white--bg",
77
77
  key: r._uid,
@@ -743,7 +743,7 @@ function Ue(e, t, l, o, n, i) {
743
743
  return s(), u("div", {
744
744
  class: f(["w-accordion", i.accordionClasses])
745
745
  }, [
746
- (s(!0), u(_, null, T(e.accordionItems, (d, h) => (s(), u("div", {
746
+ (s(!0), u(_, null, x(e.accordionItems, (d, h) => (s(), u("div", {
747
747
  class: f(["w-accordion__item", i.itemClasses(d)]),
748
748
  key: h,
749
749
  "aria-expanded": d._expanded ? "true" : "false"
@@ -1049,7 +1049,7 @@ const tt = {
1049
1049
  function it(e, t, l, o, n, i) {
1050
1050
  return s(), u("div", C({ class: "w-badge-wrap" }, A(e.$attrs, !0)), [
1051
1051
  p(e.$slots, "default"),
1052
- I(x, {
1052
+ I(P, {
1053
1053
  name: `${l.transition}`
1054
1054
  }, {
1055
1055
  default: g(() => [
@@ -1140,7 +1140,7 @@ function nt(e, t, l, o, n, i) {
1140
1140
  return s(), u("div", {
1141
1141
  class: f(["w-breadcrumbs", i.classes])
1142
1142
  }, [
1143
- (s(!0), u(_, null, T(l.items, (r, d) => (s(), u(_, null, [
1143
+ (s(!0), u(_, null, x(l.items, (r, d) => (s(), u(_, null, [
1144
1144
  d && e.$slots.separator ? (s(), u("span", {
1145
1145
  class: f(["w-breadcrumbs__separator", l.separatorColor]),
1146
1146
  key: `${d}a`
@@ -1248,7 +1248,7 @@ function ct(e, t, l, o, n, i) {
1248
1248
  ]),
1249
1249
  _: 1
1250
1250
  }, 16)) : p(e.$slots, "default", { key: 1 }),
1251
- I(x, { name: "scale-fade" }, {
1251
+ I(P, { name: "scale-fade" }, {
1252
1252
  default: g(() => [
1253
1253
  l.loading ? (s(), u("div", ut, [
1254
1254
  p(e.$slots, "loading", {}, () => [
@@ -1694,7 +1694,7 @@ function Ot(e, t, l, o, n, i) {
1694
1694
  class: i.classes
1695
1695
  }), {
1696
1696
  default: g(() => [
1697
- (s(!0), u(_, null, T(i.checkboxItems, (r, d) => (s(), b(a, C({
1697
+ (s(!0), u(_, null, x(i.checkboxItems, (r, d) => (s(), b(a, C({
1698
1698
  key: d,
1699
1699
  "model-value": r._isChecked,
1700
1700
  "onUpdate:modelValue": (h) => i.toggleCheck(r, h),
@@ -1976,7 +1976,7 @@ function Ft(e, t, l, o, n, i) {
1976
1976
  opacity: l.overlayOpacity
1977
1977
  }, {
1978
1978
  default: g(() => [
1979
- I(x, {
1979
+ I(P, {
1980
1980
  name: l.transition,
1981
1981
  appear: "",
1982
1982
  onAfterLeave: i.onBeforeClose
@@ -2144,7 +2144,7 @@ function Jt(e, t, l, o, n, i) {
2144
2144
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2145
2145
  p(e.$slots, "pushable")
2146
2146
  ]),
2147
- I(x, {
2147
+ I(P, {
2148
2148
  name: "fade",
2149
2149
  onBeforeLeave: i.onBeforeClose,
2150
2150
  onAfterLeave: i.onClose
@@ -2175,7 +2175,7 @@ function Jt(e, t, l, o, n, i) {
2175
2175
  "bg-color": l.overlayColor,
2176
2176
  opacity: l.overlayOpacity
2177
2177
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2178
- I(x, {
2178
+ I(P, {
2179
2179
  name: i.transitionName,
2180
2180
  appear: "",
2181
2181
  onBeforeLeave: i.onBeforeClose,
@@ -2713,7 +2713,7 @@ function yl(e, t, l, o, n, i) {
2713
2713
  style: L(i.wrapperStyles)
2714
2714
  }, {
2715
2715
  default: g(() => [
2716
- I(x, {
2716
+ I(P, {
2717
2717
  name: l.transition,
2718
2718
  appear: ""
2719
2719
  }, {
@@ -2945,7 +2945,7 @@ function Ll(e, t, l, o, n, i) {
2945
2945
  ], 64)) : c("", !0)
2946
2946
  ])
2947
2947
  ])) : c("", !0),
2948
- (s(!0), u(_, null, T(n.inputFiles, (d, h) => (s(), u("span", {
2948
+ (s(!0), u(_, null, x(n.inputFiles, (d, h) => (s(), u("span", {
2949
2949
  key: d.lastModified
2950
2950
  }, [
2951
2951
  B(k(h ? ", " : ""), 1),
@@ -2995,7 +2995,7 @@ function Ll(e, t, l, o, n, i) {
2995
2995
  class: "d-flex",
2996
2996
  for: `w-input--${e._.uid}`
2997
2997
  }, [
2998
- (s(!0), u(_, null, T(n.inputFiles, (d, h) => (s(), u(_, null, [
2998
+ (s(!0), u(_, null, x(n.inputFiles, (d, h) => (s(), u(_, null, [
2999
2999
  d.progress < 100 ? (s(), u("i", {
3000
3000
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3001
3001
  key: `${h}a`
@@ -3199,7 +3199,7 @@ function Pl(e, t, l, o, n, i) {
3199
3199
  return s(), u("ul", {
3200
3200
  class: f(["w-list", i.classes])
3201
3201
  }, [
3202
- (s(!0), u(_, null, T(e.listItems, (d, h) => (s(), u("li", {
3202
+ (s(!0), u(_, null, x(e.listItems, (d, h) => (s(), u("li", {
3203
3203
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3204
3204
  key: h
3205
3205
  }, [
@@ -3597,7 +3597,7 @@ function El(e, t, l, o, n, i) {
3597
3597
  const a = $("w-card"), r = $("w-overlay");
3598
3598
  return s(), u(_, null, [
3599
3599
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
3600
- I(x, {
3600
+ I(P, {
3601
3601
  name: i.transitionName,
3602
3602
  appear: ""
3603
3603
  }, {
@@ -3791,7 +3791,7 @@ const Ml = {
3791
3791
  }, Al = /* @__PURE__ */ v(Ml, [["render", El]]);
3792
3792
  function Nl(e, t, l, o, n, i) {
3793
3793
  const a = $("w-alert");
3794
- return s(), b(x, {
3794
+ return s(), b(P, {
3795
3795
  name: i.transitionName,
3796
3796
  appear: ""
3797
3797
  }, {
@@ -3940,7 +3940,7 @@ const Wl = {
3940
3940
  }, Kl = /* @__PURE__ */ v(Wl, [["render", Nl]]);
3941
3941
  function Dl(e, t, l, o, n, i) {
3942
3942
  const a = fe("focus");
3943
- return s(), b(x, {
3943
+ return s(), b(P, {
3944
3944
  name: "fade",
3945
3945
  appear: "",
3946
3946
  onAfterLeave: i.onClose
@@ -4279,7 +4279,7 @@ function ci(e, t, l, o, n, i) {
4279
4279
  class: i.classes
4280
4280
  }), {
4281
4281
  default: g(() => [
4282
- (s(!0), u(_, null, T(i.radioItems, (r, d) => (s(), b(a, C({
4282
+ (s(!0), u(_, null, x(i.radioItems, (r, d) => (s(), b(a, C({
4283
4283
  key: d,
4284
4284
  "model-value": r.value === l.modelValue,
4285
4285
  "onUpdate:modelValue": (h) => i.onInput(r),
@@ -4371,7 +4371,7 @@ function bi(e, t, l, o, n, i) {
4371
4371
  type: "hidden",
4372
4372
  value: n.rating
4373
4373
  }, null, 8, gi),
4374
- (s(!0), u(_, null, T(l.max, (a) => (s(), u(_, { key: a }, [
4374
+ (s(!0), u(_, null, x(l.max, (a) => (s(), u(_, { key: a }, [
4375
4375
  e.$slots.item ? p(e.$slots, "item", {
4376
4376
  key: 0,
4377
4377
  index: a + 1
@@ -4575,7 +4575,7 @@ function Ti(e, t, l, o, n, i) {
4575
4575
  tabindex: e.tabindex || null,
4576
4576
  innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
4577
4577
  }, null, 42, Vi),
4578
- (s(!0), u(_, null, T(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
4578
+ (s(!0), u(_, null, x(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
4579
4579
  key: S,
4580
4580
  type: "hidden",
4581
4581
  value: y.value === void 0 ? "" : y.value.toString(),
@@ -4625,7 +4625,7 @@ function Ti(e, t, l, o, n, i) {
4625
4625
  role: "listbox",
4626
4626
  tabindex: "-1"
4627
4627
  }, Z({ _: 2 }, [
4628
- T(l.items.length, (h) => ({
4628
+ x(l.items.length, (h) => ({
4629
4629
  name: `item.${h}`,
4630
4630
  fn: g(({ item: y, selected: S, index: m }) => [
4631
4631
  e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S, m) ? p(e.$slots, `item.${h}`, {
@@ -4920,7 +4920,7 @@ function ji(e, t, l, o, n, i) {
4920
4920
  class: "w-slider__step-label",
4921
4921
  onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
4922
4922
  }, k(this.minVal), 1),
4923
- (s(!0), u(_, null, T(~~i.numberOfSteps, (a) => (s(), u("div", {
4923
+ (s(!0), u(_, null, x(~~i.numberOfSteps, (a) => (s(), u("div", {
4924
4924
  class: "w-slider__step-label",
4925
4925
  key: a,
4926
4926
  onClick: (r) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
@@ -5320,7 +5320,7 @@ function ys(e, t, l, o, n, i) {
5320
5320
  class: f(["w-tabs__bar", i.tabsBarClasses]),
5321
5321
  ref: "tabs-bar"
5322
5322
  }, [
5323
- (s(!0), u(_, null, T(i.tabsItems, (r, d) => (s(), u("div", {
5323
+ (s(!0), u(_, null, x(i.tabsItems, (r, d) => (s(), u("div", {
5324
5324
  class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
5325
5325
  key: d,
5326
5326
  onClick: (h) => !r._disabled && i.openTab(r),
@@ -5356,7 +5356,7 @@ function ys(e, t, l, o, n, i) {
5356
5356
  }, null, 6)) : c("", !0)
5357
5357
  ], 2),
5358
5358
  i.tabsItems.length ? (s(), u("div", ms, [
5359
- I(x, {
5359
+ I(P, {
5360
5360
  name: i.transitionName,
5361
5361
  mode: i.transitionMode
5362
5362
  }, {
@@ -5572,7 +5572,7 @@ function Xs(e, t, l, o, n, i) {
5572
5572
  onMouseout: t[7] || (t[7] = (...m) => i.onMouseOut && i.onMouseOut(...m))
5573
5573
  }, [
5574
5574
  w("colgroup", ks, [
5575
- (s(!0), u(_, null, T(l.headers, (m, R) => (s(), u("col", {
5575
+ (s(!0), u(_, null, x(l.headers, (m, R) => (s(), u("col", {
5576
5576
  class: f(["w-table__col", i.colClasses[R]]),
5577
5577
  key: R,
5578
5578
  width: m.width || null
@@ -5580,10 +5580,10 @@ function Xs(e, t, l, o, n, i) {
5580
5580
  ], 512),
5581
5581
  l.noHeaders ? c("", !0) : (s(), u("thead", Cs, [
5582
5582
  w("tr", null, [
5583
- (s(!0), u(_, null, T(l.headers, (m, R) => (s(), u("th", {
5583
+ (s(!0), u(_, null, x(l.headers, (m, R) => (s(), u("th", {
5584
5584
  class: f(["w-table__header", i.headerClasses(m)]),
5585
5585
  key: R,
5586
- onClick: (P) => !e.colResizing.dragging && m.sortable !== !1 && i.sortTable(m)
5586
+ onClick: (T) => !e.colResizing.dragging && m.sortable !== !1 && i.sortTable(m)
5587
5587
  }, [
5588
5588
  m.sortable !== !1 && m.align === "right" ? (s(), b(a, {
5589
5589
  key: 0,
@@ -5659,7 +5659,7 @@ function Xs(e, t, l, o, n, i) {
5659
5659
  ])
5660
5660
  ], 8, xs)
5661
5661
  ])),
5662
- i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, T(i.paginatedItems, (m, R) => (s(), u(_, { key: R }, [
5662
+ i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, x(i.paginatedItems, (m, R) => (s(), u(_, { key: R }, [
5663
5663
  e.$slots.item ? p(e.$slots, "item", {
5664
5664
  key: 0,
5665
5665
  item: m,
@@ -5669,31 +5669,31 @@ function Xs(e, t, l, o, n, i) {
5669
5669
  }) : (s(), u("tr", {
5670
5670
  key: 1,
5671
5671
  class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[m._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[m._uid] !== void 0 }]),
5672
- onClick: (P) => i.doSelectRow(m, R)
5672
+ onClick: (T) => i.doSelectRow(m, R)
5673
5673
  }, [
5674
- (s(!0), u(_, null, T(l.headers, (P, O) => (s(), u(_, null, [
5675
- e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
5676
- class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
5674
+ (s(!0), u(_, null, x(l.headers, (T, O) => (s(), u(_, null, [
5675
+ e.$slots[`item-cell.${T.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
5676
+ class: f(["w-table__cell", { [`text-${T.align || "left"}`]: !0, "w-table__cell--sticky": T.sticky }]),
5677
5677
  key: `${O}-a`,
5678
- "data-label": P.label
5678
+ "data-label": T.label
5679
5679
  }, [
5680
- e.$slots[`item-cell.${P.key}`] ? p(e.$slots, `item-cell.${P.key}`, {
5680
+ e.$slots[`item-cell.${T.key}`] ? p(e.$slots, `item-cell.${T.key}`, {
5681
5681
  key: 0,
5682
- header: P,
5682
+ header: T,
5683
5683
  item: m,
5684
- label: m[P.key] || "",
5684
+ label: m[T.key] || "",
5685
5685
  index: R + 1
5686
5686
  }) : e.$slots[`item-cell.${O + 1}`] ? p(e.$slots, `item-cell.${O + 1}`, {
5687
5687
  key: 1,
5688
- header: P,
5688
+ header: T,
5689
5689
  item: m,
5690
- label: m[P.key] || "",
5690
+ label: m[T.key] || "",
5691
5691
  index: R + 1
5692
5692
  }) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
5693
5693
  key: 2,
5694
- header: P,
5694
+ header: T,
5695
5695
  item: m,
5696
- label: m[P.key] || "",
5696
+ label: m[T.key] || "",
5697
5697
  index: R + 1
5698
5698
  }) : c("", !0),
5699
5699
  O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
@@ -5701,12 +5701,12 @@ function Xs(e, t, l, o, n, i) {
5701
5701
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
5702
5702
  }, null, 2)) : c("", !0)
5703
5703
  ], 10, Os)) : (s(), u("td", {
5704
- class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
5704
+ class: f(["w-table__cell", { [`text-${T.align || "left"}`]: !0, "w-table__cell--sticky": T.sticky }]),
5705
5705
  key: `${O}-b`,
5706
- "data-label": P.label
5706
+ "data-label": T.label
5707
5707
  }, [
5708
5708
  w("div", {
5709
- innerHTML: m[P.key] || ""
5709
+ innerHTML: m[T.key] || ""
5710
5710
  }, null, 8, Es),
5711
5711
  O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5712
5712
  key: 0,
@@ -5781,7 +5781,7 @@ function Xs(e, t, l, o, n, i) {
5781
5781
  text: "",
5782
5782
  lg: ""
5783
5783
  }, null, 8, ["disabled"]),
5784
- (s(!0), u(_, null, T(e.paginationConfig.pagesCount, (m) => (s(), b(S, {
5784
+ (s(!0), u(_, null, x(e.paginationConfig.pagesCount, (m) => (s(), b(S, {
5785
5785
  class: f(["w-pagination__page", { "w-pagination__page--active": m === e.paginationConfig.page }]),
5786
5786
  key: m,
5787
5787
  onClick: (R) => m !== e.paginationConfig.page && i.goToPage(m),
@@ -6384,7 +6384,7 @@ function ha(e, t, l, o, n, i) {
6384
6384
  return s(), u("ul", {
6385
6385
  class: f(["w-timeline", i.classes])
6386
6386
  }, [
6387
- (s(!0), u(_, null, T(l.items, (a, r) => (s(), u("li", {
6387
+ (s(!0), u(_, null, x(l.items, (a, r) => (s(), u("li", {
6388
6388
  class: "w-timeline-item",
6389
6389
  key: r
6390
6390
  }, [
@@ -6501,7 +6501,7 @@ const ga = {
6501
6501
  function ba(e, t, l, o, n, i) {
6502
6502
  return s(), u(_, null, [
6503
6503
  p(e.$slots, "activator", { on: i.activatorEventHandlers }),
6504
- I(x, {
6504
+ I(P, {
6505
6505
  name: i.transitionName,
6506
6506
  appear: ""
6507
6507
  }, {
@@ -6607,7 +6607,7 @@ const ya = {
6607
6607
  }
6608
6608
  }, wa = /* @__PURE__ */ v(ya, [["render", ba]]);
6609
6609
  function va(e, t, l, o, n, i) {
6610
- return s(), b(x, C({ name: "bounce" }, e.$props), {
6610
+ return s(), b(P, C({ name: "bounce" }, e.$props), {
6611
6611
  default: g(() => [
6612
6612
  p(e.$slots, "default")
6613
6613
  ]),
@@ -6622,7 +6622,7 @@ const ka = {
6622
6622
  }
6623
6623
  }, _a = /* @__PURE__ */ v(ka, [["render", va]]);
6624
6624
  function Ca(e, t, l, o, n, i) {
6625
- return s(), b(x, {
6625
+ return s(), b(P, {
6626
6626
  name: "expand",
6627
6627
  mode: "out-in",
6628
6628
  css: !1,
@@ -6734,7 +6734,7 @@ const Ba = {
6734
6734
  }
6735
6735
  }, Sa = /* @__PURE__ */ v(Ba, [["render", Ca]]);
6736
6736
  function $a(e, t, l, o, n, i) {
6737
- return s(), b(x, C({ name: "fade" }, e.$props), {
6737
+ return s(), b(P, C({ name: "fade" }, e.$props), {
6738
6738
  default: g(() => [
6739
6739
  p(e.$slots, "default")
6740
6740
  ]),
@@ -6749,7 +6749,7 @@ const Va = {
6749
6749
  }
6750
6750
  }, Ia = /* @__PURE__ */ v(Va, [["render", $a]]);
6751
6751
  function Ra(e, t, l, o, n, i) {
6752
- return s(), b(x, C({ name: "scale" }, e.$props), {
6752
+ return s(), b(P, C({ name: "scale" }, e.$props), {
6753
6753
  default: g(() => [
6754
6754
  p(e.$slots, "default")
6755
6755
  ]),
@@ -6764,7 +6764,7 @@ const La = {
6764
6764
  }
6765
6765
  }, Ta = /* @__PURE__ */ v(La, [["render", Ra]]);
6766
6766
  function xa(e, t, l, o, n, i) {
6767
- return s(), b(x, C({ name: "scale-fade" }, e.$props), {
6767
+ return s(), b(P, C({ name: "scale-fade" }, e.$props), {
6768
6768
  default: g(() => [
6769
6769
  p(e.$slots, "default")
6770
6770
  ]),
@@ -6779,7 +6779,7 @@ const Pa = {
6779
6779
  }
6780
6780
  }, Oa = /* @__PURE__ */ v(Pa, [["render", xa]]);
6781
6781
  function za(e, t, l, o, n, i) {
6782
- return s(), b(x, C({ name: i.transitionName }, e.$props), {
6782
+ return s(), b(P, C({ name: i.transitionName }, e.$props), {
6783
6783
  default: g(() => [
6784
6784
  p(e.$slots, "default")
6785
6785
  ]),
@@ -6806,7 +6806,7 @@ const Ea = {
6806
6806
  }
6807
6807
  }, Ma = /* @__PURE__ */ v(Ea, [["render", za]]);
6808
6808
  function Aa(e, t, l, o, n, i) {
6809
- return s(), b(x, C({ name: i.transitionName }, e.$props), {
6809
+ return s(), b(P, C({ name: i.transitionName }, e.$props), {
6810
6810
  default: g(() => [
6811
6811
  p(e.$slots, "default")
6812
6812
  ]),
@@ -6833,7 +6833,7 @@ const Na = {
6833
6833
  }
6834
6834
  }, Wa = /* @__PURE__ */ v(Na, [["render", Aa]]);
6835
6835
  function Ka(e, t, l, o, n, i) {
6836
- return s(), b(x, C({ name: "twist" }, e.$props), {
6836
+ return s(), b(P, C({ name: "twist" }, e.$props), {
6837
6837
  default: g(() => [
6838
6838
  p(e.$slots, "default")
6839
6839
  ]),
@@ -6855,14 +6855,14 @@ function Ua(e, t, l, o, n, i) {
6855
6855
  return s(), u("ul", {
6856
6856
  class: f(["w-tree", i.classes])
6857
6857
  }, [
6858
- (s(!0), u(_, null, T(e.currentDepthItems, (h, y) => (s(), u("li", {
6858
+ (s(!0), u(_, null, x(e.currentDepthItems, (h, y) => (s(), u("li", {
6859
6859
  class: f(["w-tree__item", i.itemClasses(h)]),
6860
6860
  key: y
6861
6861
  }, [
6862
- (s(), b(V(!l.disabled && !h.disabled && h.route ? !e.$router || i.hasExternalLink(h) ? "a" : "router-link" : "div"), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
6862
+ (s(), b(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
6863
6863
  onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
6864
6864
  onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
6865
- tabindex: !l.disabled && !h.disabled && (h.children || h.branch || l.selectable) && !(l.unexpandableEmpty && !h.children) ? 0 : null
6865
+ tabindex: i.getTreeItemTabindex(h)
6866
6866
  }), {
6867
6867
  default: g(() => [
6868
6868
  (h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), b(a, {
@@ -6880,6 +6880,7 @@ function Ua(e, t, l, o, n, i) {
6880
6880
  p(e.$slots, "item", {
6881
6881
  item: h.originalItem,
6882
6882
  depth: l.depth,
6883
+ path: h.path,
6883
6884
  open: h.open
6884
6885
  }, () => {
6885
6886
  var S;
@@ -6905,13 +6906,14 @@ function Ua(e, t, l, o, n, i) {
6905
6906
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
6906
6907
  (s(), b(V(l.noTransition ? "div" : "w-transition-expand"), {
6907
6908
  y: !l.noTransition || null,
6908
- onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth }),
6909
- onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth })
6909
+ onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) }),
6910
+ onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) })
6910
6911
  }, {
6911
6912
  default: g(() => [
6912
6913
  h.children && h.open ? (s(), b(d, C({ key: 0 }, e.$props, {
6913
6914
  depth: l.depth + 1,
6914
6915
  data: h.originalItem.children,
6916
+ parent: h,
6915
6917
  onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
6916
6918
  onOpen: t[1] || (t[1] = (S) => e.$emit("open", S)),
6917
6919
  onBeforeClose: t[2] || (t[2] = (S) => e.$emit("before-close", S)),
@@ -6920,15 +6922,16 @@ function Ua(e, t, l, o, n, i) {
6920
6922
  onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
6921
6923
  "onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
6922
6924
  }), {
6923
- item: g(({ item: S, depth: m, open: R }) => [
6925
+ item: g(({ item: S, depth: m, path: R, open: T }) => [
6924
6926
  p(e.$slots, "item", {
6925
6927
  item: S,
6926
6928
  depth: m,
6927
- open: R
6929
+ path: R,
6930
+ open: T
6928
6931
  })
6929
6932
  ]),
6930
6933
  _: 2
6931
- }, 1040, ["depth", "data"])) : c("", !0)
6934
+ }, 1040, ["depth", "data", "parent"])) : c("", !0)
6932
6935
  ]),
6933
6936
  _: 2
6934
6937
  }, 1064, ["y", "onAfterEnter", "onAfterLeave"]))
@@ -6941,6 +6944,7 @@ const qa = {
6941
6944
  modelValue: { type: [Object, Array] },
6942
6945
  data: { type: [Object, Array], required: !0 },
6943
6946
  depth: { type: Number, default: 0 },
6947
+ parent: { type: Object, default: null },
6944
6948
  branchClass: { type: String },
6945
6949
  leafClass: { type: String },
6946
6950
  branchIcon: { type: String },
@@ -6983,8 +6987,8 @@ const qa = {
6983
6987
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
6984
6988
  return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
6985
6989
  Array.isArray(e) || (e = [e]), e.forEach((l, o) => {
6986
- var n;
6987
- this.currentDepthItems.push({
6990
+ var i;
6991
+ const n = {
6988
6992
  originalItem: l,
6989
6993
  _uid: this.depth.toString() + (o + 1),
6990
6994
  label: l[this.itemLabelKey],
@@ -6993,20 +6997,54 @@ const qa = {
6993
6997
  route: l[this.itemRouteKey],
6994
6998
  disabled: l[this.itemDisabledKey],
6995
6999
  depth: this.depth,
6996
- open: !!(((n = t[o]) == null ? void 0 : n.open) || this.expandAll || l[this.itemOpenKey])
6997
- });
7000
+ open: !!(((i = t[o]) == null ? void 0 : i.open) || this.expandAll || l[this.itemOpenKey]),
7001
+ parent: this.parent || null,
7002
+ path: []
7003
+ };
7004
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
6998
7005
  });
6999
7006
  },
7007
+ getTreeItemComponent(e) {
7008
+ return !this.disabled && !e.disabled && e.route ? !this.$router || this.hasExternalLink(e) ? "a" : "router-link" : "div";
7009
+ },
7010
+ getTreeItemTabindex(e) {
7011
+ return !this.disabled && !e.disabled && (e.children || e.branch || this.selectable) && !(this.unexpandableEmpty && !e.children) ? 0 : null;
7012
+ },
7013
+ getTreeItemPath(e) {
7014
+ const t = [e];
7015
+ let l = e.parent;
7016
+ for (; l; )
7017
+ t.push(l), l = l.parent;
7018
+ return t.reverse(), t;
7019
+ },
7020
+ getTreeItemPathForOutput(e) {
7021
+ return e.path.map((t) => t.originalItem);
7022
+ },
7000
7023
  expandDepth(e, t) {
7001
7024
  typeof t == "boolean" ? e.open = t : e.open = !e.open;
7002
- const l = { item: e.originalItem, open: e.open, depth: this.depth };
7025
+ const l = {
7026
+ item: e.originalItem,
7027
+ open: e.open,
7028
+ depth: this.depth,
7029
+ path: this.getTreeItemPathForOutput(e)
7030
+ };
7003
7031
  return this.$emit(e.open ? "before-open" : "before-close", l), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", l), !0;
7004
7032
  },
7005
7033
  onLabelClick(e, t) {
7006
- e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this.$emit("click", { item: e.originalItem, depth: this.depth, e: t }), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && this.emitItemSelection(e, t);
7034
+ e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this.$emit("click", {
7035
+ item: e.originalItem,
7036
+ depth: this.depth,
7037
+ path: this.getTreeItemPathForOutput(e),
7038
+ e: t
7039
+ }), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && this.emitItemSelection(e, t);
7007
7040
  },
7008
7041
  emitItemSelection(e, t) {
7009
- const l = { item: e.originalItem, depth: this.depth, e: t };
7042
+ const l = {
7043
+ item: e.originalItem,
7044
+ depth: this.depth,
7045
+ path: this.getTreeItemPathForOutput(e),
7046
+ e: t
7047
+ };
7010
7048
  (e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.$emit("update:model-value", l), this.$emit("select", l);
7011
7049
  },
7012
7050
  onLabelKeydown(e, t) {