@vokril/ui-solid 0.20.1 → 0.20.2

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.
@@ -1,4 +1,4 @@
1
- import { createComponent as b, ssr as E, ssrAttribute as A, escape as d, ssrElement as de, mergeProps as he, memo as X, ssrStyleProperty as V } from "solid-js/web";
1
+ import { createComponent as b, ssr as E, ssrAttribute as A, escape as f, ssrElement as de, mergeProps as he, memo as X, ssrStyleProperty as V } from "solid-js/web";
2
2
  import { createMemo as O, Show as H, For as ke, createEffect as Y, Index as fe, createSelector as xe, createSignal as Q, onCleanup as Ce, useContext as be, untrack as Ie, on as Re } from "solid-js";
3
3
  import { O as Ae } from "./OverlayScrollArea-221dfKyz.js";
4
4
  import { t as Te } from "./i18n-DW9kcu0G.js";
@@ -6,12 +6,12 @@ import { c as _e } from "./errorHandler-BvPGW-Nm.js";
6
6
  import { V as Me } from "./VpLoader2-DO0zkwpY.js";
7
7
  import { V as Ee } from "./VpChevronRight-CwRCE60O.js";
8
8
  import { a as De } from "./useListCommands-BO_XrRHj.js";
9
- import { a as $e } from "./builtins-XOM9gfIx.js";
10
- import { V as Ke } from "./VpSearch-CzVlR0ue.js";
9
+ import { a as Ke } from "./builtins-XOM9gfIx.js";
10
+ import { V as $e } from "./VpSearch-CzVlR0ue.js";
11
11
  import { S as ne, c as Ge } from "./createVirtualWindow-CGPw2jm_.js";
12
12
  import { D as Oe } from "./DesktopContextMenuContext-DJ3PnqAv.js";
13
13
  import { n as He, i as pe } from "./keys-B2nlkpqc.js";
14
- import { B as Z } from "./bugIndicatingError-h3J5qkL6.js";
14
+ import { B as j } from "./bugIndicatingError-h3J5qkL6.js";
15
15
  const ge = {
16
16
  canExpand: !0,
17
17
  canMultiSelect: !0,
@@ -93,15 +93,15 @@ function Ue(e, t, n) {
93
93
  }
94
94
  return o.length > 0 ? o : [{ text: e, match: !1 }];
95
95
  }
96
- const Qe = "vk_treeStickyHost_6aT7a", We = "vk_treeViewport_Ku3yB", Ye = "vk_treeContainer_iMrOQ", qe = "vk_treeSlice_homAf", ze = "vk_treeRow_Hh9r0", Xe = "vk_treeRowCursor_QlUrp", Ze = "vk_treeRowSelected_UdZj-", je = "vk_treeIndentGuides_W4J04", Je = "vk_treeIndentGuideActive_9m4l3", et = "vk_treeRowChevron_6WMjE", tt = "vk_treeRowChevronSpacer_Jbp-q", nt = "vk_treeRowChevronIcon_KP24Y", rt = "vk_treeRowChevronIconOpen_fRKNn", ot = "vk_treeRowContent_RR7pP", at = "vk_treeRowActions_LYQUv", ct = "vk_treeEmpty_s8RQ-", lt = "vk_treeRowChevronBusy_lZT8a", ut = "vk_treeSpeedSearchBadge_9GHNi", st = "vk_treeSpeedSearchIcon_48Ae2", it = "vk_treeSpeedSearchText_F4SZ8", dt = "vk_treeMatchHighlight_NY75y", C = {
96
+ const Qe = "vk_treeStickyHost_6aT7a", We = "vk_treeViewport_Ku3yB", Ye = "vk_treeContainer_iMrOQ", qe = "vk_treeSlice_homAf", ze = "vk_treeRow_Hh9r0", Xe = "vk_treeRowCursor_QlUrp", je = "vk_treeRowSelected_UdZj-", Ze = "vk_treeIndentGuides_W4J04", Je = "vk_treeIndentGuideActive_9m4l3", et = "vk_treeRowChevron_6WMjE", tt = "vk_treeRowChevronSpacer_Jbp-q", nt = "vk_treeRowChevronIcon_KP24Y", rt = "vk_treeRowChevronIconOpen_fRKNn", ot = "vk_treeRowContent_RR7pP", at = "vk_treeRowActions_LYQUv", ct = "vk_treeEmpty_s8RQ-", lt = "vk_treeRowChevronBusy_lZT8a", ut = "vk_treeSpeedSearchBadge_9GHNi", st = "vk_treeSpeedSearchIcon_48Ae2", it = "vk_treeSpeedSearchText_F4SZ8", dt = "vk_treeMatchHighlight_NY75y", C = {
97
97
  treeStickyHost: Qe,
98
98
  treeViewport: We,
99
99
  treeContainer: Ye,
100
100
  treeSlice: qe,
101
101
  treeRow: ze,
102
102
  treeRowCursor: Xe,
103
- treeRowSelected: Ze,
104
- treeIndentGuides: je,
103
+ treeRowSelected: je,
104
+ treeIndentGuides: Ze,
105
105
  treeIndentGuideActive: Je,
106
106
  treeRowChevron: et,
107
107
  treeRowChevronSpacer: tt,
@@ -126,10 +126,10 @@ function we(e) {
126
126
  return e.row.expandable;
127
127
  },
128
128
  get fallback() {
129
- return E(re, A("class", d(C.treeRowChevronSpacer, !0), !1));
129
+ return E(re, A("class", f(C.treeRowChevronSpacer, !0), !1));
130
130
  },
131
131
  get children() {
132
- return E(ht, A("class", d(C.treeRowChevron, !0), !1), d(b(H, {
132
+ return E(ht, A("class", f(C.treeRowChevron, !0), !1), f(b(H, {
133
133
  get when() {
134
134
  return e.row.busy;
135
135
  },
@@ -160,7 +160,7 @@ function we(e) {
160
160
  } : e.aria, {
161
161
  get class() {
162
162
  var n;
163
- return `${`${C.treeRow} ${((n = e.dom) == null ? void 0 : n.class) ?? ""}` || ""} ${e.isCursor ? d(C.treeRowCursor, !0) : ""} ${e.isSelected ? d(C.treeRowSelected, !0) : ""}`;
163
+ return [C.treeRow, e.isCursor ? C.treeRowCursor : "", e.isSelected ? C.treeRowSelected : "", ((n = e.dom) == null ? void 0 : n.class) ?? ""].filter(Boolean).join(" ");
164
164
  },
165
165
  get style() {
166
166
  return {
@@ -219,33 +219,33 @@ function we(e) {
219
219
  return (n = e.dom) != null && n.onMouseLeave ? {
220
220
  onMouseLeave: e.dom.onMouseLeave
221
221
  } : {};
222
- }), [d(b(H, {
222
+ }), [f(b(H, {
223
223
  get when() {
224
224
  return X(() => e.indentGuide !== "none")() && e.row.depth > 0;
225
225
  },
226
226
  get children() {
227
- return E(re, A("class", d(C.treeIndentGuides, !0), !1));
227
+ return E(re, A("class", f(C.treeIndentGuides, !0), !1));
228
228
  }
229
- })), d(b(H, {
229
+ })), f(b(H, {
230
230
  get when() {
231
231
  return X(() => e.indentGuide === "active" && e.activeGuideDepth >= 0)() && e.row.depth > e.activeGuideDepth;
232
232
  },
233
233
  get children() {
234
- return E(ft, A("class", d(C.treeIndentGuideActive, !0), !1), V("--tree-active-col:", `${d(e.activeGuideDepth, !0)}`));
234
+ return E(ft, A("class", f(C.treeIndentGuideActive, !0), !1), V("--tree-active-col:", `${f(e.activeGuideDepth, !0)}`));
235
235
  }
236
- })), d(b(H, {
236
+ })), f(b(H, {
237
237
  get when() {
238
238
  return e.showChevronGutter;
239
239
  },
240
240
  get children() {
241
241
  return t();
242
242
  }
243
- })), E(gt, A("class", d(C.treeRowContent, !0), !1), d(e.content)), d(b(H, {
243
+ })), E(gt, A("class", f(C.treeRowContent, !0), !1), f(e.content)), f(b(H, {
244
244
  get when() {
245
245
  return e.actions;
246
246
  },
247
247
  get children() {
248
- return E(yt, A("class", d(C.treeRowActions, !0), !1), d(e.actions));
248
+ return E(yt, A("class", f(C.treeRowActions, !0), !1), f(e.actions));
249
249
  }
250
250
  }))], !1);
251
251
  }
@@ -276,7 +276,7 @@ function hn(e) {
276
276
  return r.text;
277
277
  },
278
278
  get children() {
279
- return E(wt, A("class", d(e.class ?? C.treeMatchHighlight, !0), !1), d(r.text));
279
+ return E(wt, A("class", f(e.class ?? C.treeMatchHighlight, !0), !1), f(r.text));
280
280
  }
281
281
  })
282
282
  });
@@ -289,11 +289,11 @@ const mt = "vk_treeStickyWidget_Q-8QQ", vt = "vk_treeStickyRow_7gWG2", oe = {
289
289
  };
290
290
  var St = ["<div", ' role="list"', ' style="', '">', "</div>"], kt = ["<div", ' role="listitem" style="', '">', "</div>"];
291
291
  function xt(e) {
292
- return E(St, A("class", d(oe.treeStickyWidget, !0), !1), A("aria-label", d(e.label, !0), !1), V("height:", `${d(e.height, !0)}px`), d(b(fe, {
292
+ return E(St, A("class", f(oe.treeStickyWidget, !0), !1), A("aria-label", f(e.label, !0), !1), V("height:", `${f(e.height, !0)}px`), f(b(fe, {
293
293
  get each() {
294
294
  return e.rows;
295
295
  },
296
- children: (t, n) => E(kt, A("class", d(oe.treeStickyRow, !0), !1), V("top:", `${d(t().top, !0)}px`) + V(";z-index:", `${d(e.rows.length, !0) - d(n, !0)}`), d(b(we, {
296
+ children: (t, n) => E(kt, A("class", f(oe.treeStickyRow, !0), !1), V("top:", `${f(t().top, !0)}px`) + V(";z-index:", `${f(e.rows.length, !0) - f(n, !0)}`), f(b(we, {
297
297
  sticky: !0,
298
298
  get row() {
299
299
  return t().row;
@@ -374,7 +374,7 @@ function fn(e) {
374
374
  verbs: {
375
375
  selectAll: () => n().selectAll()
376
376
  }
377
- }), $e();
377
+ }), Ke();
378
378
  const v = O(() => Le({
379
379
  treeId: t().id,
380
380
  label: t().ariaLabel,
@@ -382,7 +382,7 @@ function fn(e) {
382
382
  focusMode: ae,
383
383
  cursorKey: n().cursorKey(),
384
384
  flat: !o().canExpand
385
- })), u = () => r !== void 0, h = (g, m) => {
385
+ })), u = () => r !== void 0, d = (g, m) => {
386
386
  n().selectIndex(g, m);
387
387
  }, k = (g, m, T) => {
388
388
  var _, D;
@@ -395,18 +395,18 @@ function fn(e) {
395
395
  }, x = (g) => {
396
396
  e.surface.scroller.scrollToIndex(g, "auto", e.surface.stickyInsetFor(g));
397
397
  };
398
- return E(Rt, A("class", d(C.treeStickyHost, !0), !1), V("--tree-indent-base:", `${d(t().indentBaseRem ?? 0, !0)}rem`), d(b(H, {
398
+ return E(Rt, A("class", f(C.treeStickyHost, !0), !1), V("--tree-indent-base:", `${f(t().indentBaseRem ?? 0, !0)}rem`), f(b(H, {
399
399
  get when() {
400
400
  return n().typeAheadQuery().length > 0;
401
401
  },
402
402
  get children() {
403
- return E(Ct, A("class", d(C.treeSpeedSearchBadge, !0), !1), d(b(Ke, {
403
+ return E(Ct, A("class", f(C.treeSpeedSearchBadge, !0), !1), f(b($e, {
404
404
  get class() {
405
405
  return C.treeSpeedSearchIcon;
406
406
  }
407
- })), A("class", d(C.treeSpeedSearchText, !0), !1), d(n().typeAheadQuery()));
407
+ })), A("class", f(C.treeSpeedSearchText, !0), !1), f(n().typeAheadQuery()));
408
408
  }
409
- })), d(b(Ae, {
409
+ })), f(b(Ae, {
410
410
  viewportRef: (g) => {
411
411
  var m;
412
412
  e.surface.scroller.containerRef(g), (m = e.viewportRef) == null || m.call(e, g);
@@ -424,7 +424,7 @@ function fn(e) {
424
424
  height: `${e.surface.scroller.totalHeight()}px`
425
425
  };
426
426
  }
427
- }), E(bt, A("class", d(C.treeSlice, !0), !1), V("transform:", `translate3d(0, ${d(e.surface.scroller.offsetY(), !0)}px, 0)`), d(b(fe, {
427
+ }), E(bt, A("class", f(C.treeSlice, !0), !1), V("transform:", `translate3d(0, ${f(e.surface.scroller.offsetY(), !0)}px, 0)`), f(b(fe, {
428
428
  get each() {
429
429
  return y();
430
430
  },
@@ -470,21 +470,21 @@ function fn(e) {
470
470
  return l();
471
471
  },
472
472
  get dom() {
473
- var K, G;
474
- return (G = (K = t()).rowProps) == null ? void 0 : G.call(K, m());
473
+ var $, G;
474
+ return (G = ($ = t()).rowProps) == null ? void 0 : G.call($, m());
475
475
  },
476
476
  get content() {
477
477
  return t().renderContent(m());
478
478
  },
479
479
  get actions() {
480
- var K, G;
481
- return (G = (K = t()).renderActions) == null ? void 0 : G.call(K, m());
480
+ var $, G;
481
+ return (G = ($ = t()).renderActions) == null ? void 0 : G.call($, m());
482
482
  },
483
- onSelect: h,
484
- onFocusRow: (K) => n().focusIndex(K),
485
- onToggle: (K) => {
483
+ onSelect: d,
484
+ onFocusRow: ($) => n().focusIndex($),
485
+ onToggle: ($) => {
486
486
  var G, U;
487
- return (U = (G = t()).onToggle) == null ? void 0 : U.call(G, K);
487
+ return (U = (G = t()).onToggle) == null ? void 0 : U.call(G, $);
488
488
  },
489
489
  onActivateClick: k,
490
490
  onOpenMenu: I
@@ -495,11 +495,11 @@ function fn(e) {
495
495
  return X(() => e.surface.source().length === 0)() && t().emptyLabel;
496
496
  },
497
497
  get children() {
498
- return E(It, A("class", d(C.treeEmpty, !0), !1), d(t().emptyLabel));
498
+ return E(It, A("class", f(C.treeEmpty, !0), !1), f(t().emptyLabel));
499
499
  }
500
500
  })];
501
501
  }
502
- })), d(b(H, {
502
+ })), f(b(H, {
503
503
  get when() {
504
504
  return e.surface.stickyState().rows.length > 0;
505
505
  },
@@ -528,7 +528,7 @@ function fn(e) {
528
528
  },
529
529
  isCursor: (g) => n().cursorIndex() === g,
530
530
  isSelected: (g) => n().selectedKeys().has(g.key),
531
- onSelect: h,
531
+ onSelect: d,
532
532
  onFocusRow: (g) => n().focusIndex(g),
533
533
  onToggle: (g) => {
534
534
  var m, T;
@@ -600,13 +600,13 @@ function Mt(e, t, n) {
600
600
  const r = [...n].filter((v) => e.indexOfKey(v) >= 0), o = Et(e, t, r), a = Dt(e, o), l = (v) => v.selectable !== !1 && (a === void 0 || v.kind === a), y = new Set(r);
601
601
  let w = o < 0 ? -1 : e.parentIndex(o);
602
602
  for (; ; ) {
603
- const v = $t(e, w, l);
603
+ const v = Kt(e, w, l);
604
604
  if (w < 0) return v;
605
605
  const u = v.length === y.size && v.every((k) => y.has(k));
606
606
  if (v.length > 0 && !u) return v;
607
- const h = e.at(w);
608
- if (v.length > 0 && l(h))
609
- return [h.key, ...v];
607
+ const d = e.at(w);
608
+ if (v.length > 0 && l(d))
609
+ return [d.key, ...v];
610
610
  w = e.parentIndex(w);
611
611
  }
612
612
  }
@@ -627,7 +627,7 @@ function Dt(e, t) {
627
627
  if (o.selectable !== !1) return o.kind;
628
628
  }
629
629
  }
630
- function $t(e, t, n) {
630
+ function Kt(e, t, n) {
631
631
  const r = t < 0 ? 0 : t + 1, o = t < 0 ? e.length - 1 : e.subtreeEnd(t), a = [];
632
632
  for (let l = r; l <= o; l++) {
633
633
  const y = e.at(l);
@@ -654,7 +654,7 @@ function ue(e, t) {
654
654
  }
655
655
  return Math.min(t.index, e.length - 1);
656
656
  }
657
- function Kt(e) {
657
+ function $t(e) {
658
658
  const t = () => ({
659
659
  ...ge,
660
660
  ...e.capabilities,
@@ -670,17 +670,17 @@ function Kt(e) {
670
670
  Y(() => {
671
671
  const c = n(), s = w();
672
672
  if (c === null || s < 0) return;
673
- const i = e.rows(), f = i.at(s).key;
674
- if (f === c.key) {
673
+ const i = e.rows(), h = i.at(s).key;
674
+ if (h === c.key) {
675
675
  s !== c.index && r(z(i, s));
676
676
  return;
677
677
  }
678
- c.ancestors.includes(f) && r(z(i, s));
678
+ c.ancestors.includes(h) && r(z(i, s));
679
679
  });
680
- const [h, k] = Q("");
680
+ const [d, k] = Q("");
681
681
  let I = 0, x;
682
682
  const g = () => {
683
- x !== void 0 && (clearTimeout(x), x = void 0), h().length > 0 && k("");
683
+ x !== void 0 && (clearTimeout(x), x = void 0), d().length > 0 && k("");
684
684
  }, m = () => {
685
685
  x !== void 0 && (clearTimeout(x), x = void 0), x = setTimeout(() => {
686
686
  k(""), x = void 0;
@@ -693,22 +693,22 @@ function Kt(e) {
693
693
  const s = e.rows();
694
694
  return c >= 0 && c < s.length ? s.at(c) : void 0;
695
695
  }, _ = (c, s) => {
696
- var f;
696
+ var h;
697
697
  const i = z(e.rows(), c);
698
- r(i), s && y(i), (f = e.onScrollToIndex) == null || f.call(e, c);
698
+ r(i), s && y(i), (h = e.onScrollToIndex) == null || h.call(e, c);
699
699
  }, D = (c) => {
700
700
  const s = e.rows();
701
701
  c < 0 || c >= s.length || c === w() || _(c, !0);
702
- }, K = (c) => {
702
+ }, $ = (c) => {
703
703
  var i;
704
704
  const s = e.rows().indexOfKey(c);
705
705
  s < 0 || (s === w() ? (i = e.onScrollToIndex) == null || i.call(e, s) : D(s));
706
706
  }, G = (c, s) => {
707
707
  var L;
708
- const i = e.rows(), f = (L = T(c)) == null ? void 0 : L.kind, [S, R] = c <= s ? [c, s] : [s, c], M = /* @__PURE__ */ new Set();
708
+ const i = e.rows(), h = (L = T(c)) == null ? void 0 : L.kind, [S, R] = c <= s ? [c, s] : [s, c], M = /* @__PURE__ */ new Set();
709
709
  for (let F = Math.max(S, 0); F <= Math.min(R, i.length - 1); F++) {
710
710
  const P = i.at(F);
711
- P.selectable !== !1 && (f !== void 0 && P.kind !== f || M.add(P.key));
711
+ P.selectable !== !1 && (h !== void 0 && P.kind !== h || M.add(P.key));
712
712
  }
713
713
  return M;
714
714
  }, U = (c, s) => {
@@ -720,13 +720,13 @@ function Kt(e) {
720
720
  return;
721
721
  }
722
722
  if (s === "toggle" && t().canMultiSelect) {
723
- const f = new Set(o());
724
- f.has(i.key) ? f.delete(i.key) : f.add(i.key), a(f), _(c, !0);
723
+ const h = new Set(o());
724
+ h.has(i.key) ? h.delete(i.key) : h.add(i.key), a(h), _(c, !0);
725
725
  return;
726
726
  }
727
727
  if (s === "range" && t().canMultiSelect) {
728
- const f = v();
729
- a(G(f >= 0 ? f : c, c)), _(c, !1);
728
+ const h = v();
729
+ a(G(h >= 0 ? h : c, c)), _(c, !1);
730
730
  return;
731
731
  }
732
732
  a(/* @__PURE__ */ new Set([i.key])), _(c, !0);
@@ -736,10 +736,10 @@ function Kt(e) {
736
736
  i >= 0 && U(i, s);
737
737
  }, Se = () => {
738
738
  g(), o().size > 0 && a(/* @__PURE__ */ new Set());
739
- }, j = (c, s) => {
740
- const i = e.rows(), f = T(c);
741
- if (!f) return;
742
- const S = f.depth + 1, R = i.subtreeEnd(c);
739
+ }, Z = (c, s) => {
740
+ const i = e.rows(), h = T(c);
741
+ if (!h) return;
742
+ const S = h.depth + 1, R = i.subtreeEnd(c);
743
743
  for (let M = c + 1; M <= R; M = i.subtreeEnd(M) + 1) {
744
744
  const L = i.at(M);
745
745
  L.depth === S && s(L, M);
@@ -749,22 +749,22 @@ function Kt(e) {
749
749
  cursorIndex: w,
750
750
  cursorKey: u,
751
751
  selectedKeys: o,
752
- typeAheadQuery: h,
752
+ typeAheadQuery: d,
753
753
  get capabilities() {
754
754
  return t();
755
755
  },
756
756
  focusIndex: D,
757
- focusKey: K,
757
+ focusKey: $,
758
758
  selectIndex: U,
759
759
  selectKey: ve,
760
760
  clearSelection: Se,
761
761
  selectChildren: (c) => {
762
762
  const s = /* @__PURE__ */ new Set();
763
- let i, f = !1, S = -1;
764
- j(c, (R, M) => {
763
+ let i, h = !1, S = -1;
764
+ Z(c, (R, M) => {
765
765
  if (R.selectable !== !1) {
766
- if (!f)
767
- i = R.kind, S = M, f = !0;
766
+ if (!h)
767
+ i = R.kind, S = M, h = !0;
768
768
  else if (i !== void 0 && R.kind !== i) return;
769
769
  s.add(R.key);
770
770
  }
@@ -776,36 +776,36 @@ function Kt(e) {
776
776
  );
777
777
  },
778
778
  childKindsHomogeneous: (c) => {
779
- let s, i = !1, f = 0, S = 0;
780
- return j(c, (R) => {
781
- R.selectable !== !1 && (f++, i ? (s === void 0 || R.kind === s) && S++ : (s = R.kind, i = !0, S++));
779
+ let s, i = !1, h = 0, S = 0;
780
+ return Z(c, (R) => {
781
+ R.selectable !== !1 && (h++, i ? (s === void 0 || R.kind === s) && S++ : (s = R.kind, i = !0, S++));
782
782
  }), {
783
- homogeneous: f > 0 && f === S,
784
- total: f,
783
+ homogeneous: h > 0 && h === S,
784
+ total: h,
785
785
  selectable: S
786
786
  };
787
787
  },
788
788
  handleKeyDown: (c) => {
789
789
  var R, M, L, F, P, J, ee;
790
- if (pe(c, "Escape") && h().length > 0) {
790
+ if (pe(c, "Escape") && d().length > 0) {
791
791
  c.preventDefault(), c.stopPropagation(), g();
792
792
  return;
793
793
  }
794
- const s = e.rows(), i = w(), f = Tt(c, {
794
+ const s = e.rows(), i = w(), h = Tt(c, {
795
795
  index: i,
796
796
  rowCount: s.length,
797
797
  capabilities: t()
798
798
  });
799
- if (!f) return;
799
+ if (!h) return;
800
800
  const S = T(i);
801
- switch (f.type) {
801
+ switch (h.type) {
802
802
  case "move":
803
- c.preventDefault(), D(f.to);
803
+ c.preventDefault(), D(h.to);
804
804
  return;
805
805
  case "extend": {
806
806
  c.preventDefault();
807
- const $ = v();
808
- a(G($ >= 0 ? $ : i, f.to)), _(f.to, !1);
807
+ const K = v();
808
+ a(G(K >= 0 ? K : i, h.to)), _(h.to, !1);
809
809
  return;
810
810
  }
811
811
  case "expandOrDescend":
@@ -822,8 +822,8 @@ function Kt(e) {
822
822
  (M = e.onToggle) == null || M.call(e, S);
823
823
  return;
824
824
  }
825
- const $ = s.parentIndex(i);
826
- $ >= 0 && D($);
825
+ const K = s.parentIndex(i);
826
+ K >= 0 && D(K);
827
827
  return;
828
828
  }
829
829
  case "toggle":
@@ -831,7 +831,7 @@ function Kt(e) {
831
831
  c.preventDefault(), (L = e.onToggle) == null || L.call(e, S);
832
832
  return;
833
833
  case "flatNavigate":
834
- c.preventDefault(), (F = e.onFlatNavigate) == null || F.call(e, f.direction, S);
834
+ c.preventDefault(), (F = e.onFlatNavigate) == null || F.call(e, h.direction, S);
835
835
  return;
836
836
  case "activate":
837
837
  if (!S) return;
@@ -840,7 +840,7 @@ function Kt(e) {
840
840
  case "openMenu": {
841
841
  if (!S) return;
842
842
  c.preventDefault();
843
- const $ = c.target, p = $ == null ? void 0 : $.getBoundingClientRect();
843
+ const K = c.target, p = K == null ? void 0 : K.getBoundingClientRect();
844
844
  (J = e.onOpenMenu) == null || J.call(e, S, {
845
845
  x: Math.round((p == null ? void 0 : p.left) ?? 0),
846
846
  y: Math.round((p == null ? void 0 : p.bottom) ?? 0)
@@ -848,13 +848,13 @@ function Kt(e) {
848
848
  return;
849
849
  }
850
850
  case "typeAhead": {
851
- const $ = ((ee = e.now) == null ? void 0 : ee.call(e)) ?? Date.now(), p = $ - I > le, B = p ? "" : h(), q = B.length === 1 && B.toLowerCase() === f.char.toLowerCase() ? B : `${B}${f.char}`, te = _t(
851
+ const K = ((ee = e.now) == null ? void 0 : ee.call(e)) ?? Date.now(), p = K - I > le, B = p ? "" : d(), q = B.length === 1 && B.toLowerCase() === h.char.toLowerCase() ? B : `${B}${h.char}`, te = _t(
852
852
  s,
853
853
  i,
854
854
  q,
855
855
  q.length > 1 && !p
856
856
  );
857
- if (I = $, te < 0) {
857
+ if (I = K, te < 0) {
858
858
  k(B), B.length > 0 ? m() : g();
859
859
  return;
860
860
  }
@@ -864,9 +864,9 @@ function Kt(e) {
864
864
  }
865
865
  },
866
866
  openMenuAt: (c, s) => {
867
- var f;
867
+ var h;
868
868
  const i = T(c);
869
- i && ((f = e.onOpenMenu) == null || f.call(e, i, s));
869
+ i && ((h = e.onOpenMenu) == null || h.call(e, i, s));
870
870
  }
871
871
  };
872
872
  }
@@ -902,9 +902,9 @@ function Lt(e) {
902
902
  if (v < 0 || v >= t.length) break;
903
903
  const u = Ht(t, v, w);
904
904
  if (u === -1) break;
905
- const h = t.subtreeEnd(u);
906
- if (h === u || u === v && n === u * r - y) break;
907
- const k = (h + 1) * r - n, I = y, x = I + r > k && I <= k ? k - r : I;
905
+ const d = t.subtreeEnd(u);
906
+ if (d === u || u === v && n === u * r - y) break;
907
+ const k = (d + 1) * r - n, I = y, x = I + r > k && I <= k ? k - r : I;
908
908
  if (l.push({ index: u, row: t.at(u), top: x }), y = x + r, w = u, l.length >= a) break;
909
909
  }
910
910
  return pt(
@@ -956,37 +956,37 @@ function gn(e) {
956
956
  u,
957
957
  e.rowHeight,
958
958
  e.stickyScrollMaxCount ?? ie
959
- ) : 0, l = Kt({
959
+ ) : 0, l = $t({
960
960
  rows: n,
961
961
  ...e.capabilities ? { capabilities: e.capabilities } : {},
962
962
  onToggle: (u) => {
963
- var h;
964
- return (h = e.onToggle) == null ? void 0 : h.call(e, u);
963
+ var d;
964
+ return (d = e.onToggle) == null ? void 0 : d.call(e, u);
965
965
  },
966
966
  onActivate: (u) => {
967
- var h;
968
- return (h = e.onActivate) == null ? void 0 : h.call(e, u, "keyboard");
967
+ var d;
968
+ return (d = e.onActivate) == null ? void 0 : d.call(e, u, "keyboard");
969
969
  },
970
- onOpenMenu: (u, h) => v(u, h),
970
+ onOpenMenu: (u, d) => v(u, d),
971
971
  onCollapseAll: () => {
972
972
  var u;
973
973
  return (u = e.onCollapseAll) == null ? void 0 : u.call(e);
974
974
  },
975
- onFlatNavigate: (u, h) => {
975
+ onFlatNavigate: (u, d) => {
976
976
  var k;
977
977
  return (k = e.onFlatNavigate) == null ? void 0 : k.call(
978
978
  e,
979
979
  u,
980
- h
980
+ d
981
981
  );
982
982
  },
983
983
  onRename: (u) => {
984
- var h;
985
- return (h = e.onRename) == null ? void 0 : h.call(e, u);
984
+ var d;
985
+ return (d = e.onRename) == null ? void 0 : d.call(e, u);
986
986
  },
987
987
  onDestroy: (u) => {
988
- var h;
989
- return (h = e.onDestroy) == null ? void 0 : h.call(e, u);
988
+ var d;
989
+ return (d = e.onDestroy) == null ? void 0 : d.call(e, u);
990
990
  },
991
991
  // Arrow keys in a virtualized list are a lie without this: the row the
992
992
  // cursor lands on may not be mounted yet.
@@ -1014,13 +1014,13 @@ function gn(e) {
1014
1014
  Re(
1015
1015
  n,
1016
1016
  (u) => {
1017
- const h = Pt(
1017
+ const d = Pt(
1018
1018
  u,
1019
1019
  w,
1020
1020
  r.readScrollTop(),
1021
1021
  e.rowHeight
1022
1022
  );
1023
- h !== null && r.scrollToContentTop(h), w = se(
1023
+ d !== null && r.scrollToContentTop(d), w = se(
1024
1024
  u,
1025
1025
  r.readScrollTop(),
1026
1026
  e.rowHeight
@@ -1029,19 +1029,19 @@ function gn(e) {
1029
1029
  { defer: !0 }
1030
1030
  )
1031
1031
  );
1032
- function v(u, h, k) {
1032
+ function v(u, d, k) {
1033
1033
  if (e.openMenu) {
1034
- e.openMenu(u, h, k);
1034
+ e.openMenu(u, d, k);
1035
1035
  return;
1036
1036
  }
1037
1037
  if (!e.buildMenu) return;
1038
1038
  const I = e.buildMenu(u, l.selectedKeys());
1039
1039
  if (I.length !== 0) {
1040
1040
  if (!t)
1041
- throw new Z(
1041
+ throw new j(
1042
1042
  "createTreeSurface: descriptor builds a context menu but no DesktopContextMenuProvider is mounted"
1043
1043
  );
1044
- t.open(h.x, h.y, I, k);
1044
+ t.open(d.x, d.y, I, k);
1045
1045
  }
1046
1046
  }
1047
1047
  return {
@@ -1058,13 +1058,13 @@ function gn(e) {
1058
1058
  const yn = 0.85;
1059
1059
  function W(e, t) {
1060
1060
  if (!Number.isInteger(t) || t < 0 || t >= e.length)
1061
- throw new Z(
1061
+ throw new j(
1062
1062
  `tree row source: index ${t} is outside 0..${e.length - 1}`
1063
1063
  );
1064
1064
  }
1065
1065
  function Vt(e) {
1066
1066
  const t = e.length, n = new Int32Array(t), r = new Int32Array(t), o = new Int32Array(t), a = new Int32Array(t), l = [], y = [], w = [], v = [];
1067
- let u = -1, h = -1;
1067
+ let u = -1, d = -1;
1068
1068
  for (let k = 0; k < t; k++) {
1069
1069
  const I = e[k].depth;
1070
1070
  for (; y.length > 0 && e[y[y.length - 1]].depth >= I; )
@@ -1072,8 +1072,8 @@ function Vt(e) {
1072
1072
  const x = y.length - 1;
1073
1073
  n[k] = x < 0 ? -1 : y[x];
1074
1074
  const g = x < 0 ? u : w[x];
1075
- let m = x < 0 ? h : v[x];
1076
- g !== I && (m = l.length, l.push(0), x < 0 ? (u = I, h = m) : (w[x] = I, v[x] = m)), l[m] = l[m] + 1, a[k] = m, o[k] = l[m], y.push(k), w.push(-1), v.push(-1);
1075
+ let m = x < 0 ? d : v[x];
1076
+ g !== I && (m = l.length, l.push(0), x < 0 ? (u = I, d = m) : (w[x] = I, v[x] = m)), l[m] = l[m] + 1, a[k] = m, o[k] = l[m], y.push(k), w.push(-1), v.push(-1);
1077
1077
  }
1078
1078
  for (const k of y) r[k] = t - 1;
1079
1079
  return { parent: n, subtreeEnd: r, posInSet: o, group: a, groupSizes: l };
@@ -1083,7 +1083,7 @@ function Ut(e) {
1083
1083
  for (let n = 0; n < e.length; n++) {
1084
1084
  const r = e[n].key, o = t.get(r);
1085
1085
  if (o !== void 0)
1086
- throw new Z(
1086
+ throw new j(
1087
1087
  `tree row source: key "${r}" occurs at rows ${o} and ${n}`
1088
1088
  );
1089
1089
  t.set(r, n);
@@ -1114,7 +1114,7 @@ export {
1114
1114
  Le as e,
1115
1115
  Pe as f,
1116
1116
  Fe as g,
1117
- Kt as h,
1117
+ $t as h,
1118
1118
  gn as i,
1119
1119
  wn as j,
1120
1120
  Mt as s,