@affino/datagrid-vue-app 0.1.30 → 0.1.32

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,11 +1,11 @@
1
- import { defineComponent as xt, computed as d, resolveComponent as al, openBlock as u, createBlock as se, unref as l, withCtx as le, createVNode as Se, createElementVNode as M, toDisplayString as q, normalizeStyle as T, createElementBlock as m, Fragment as oe, renderList as fe, ref as N, inject as Jn, watch as He, renderSlot as vr, createTextVNode as ei, createCommentVNode as D, withModifiers as b, normalizeClass as Y, withDirectives as nl, vModelText as il, toRef as it, provide as ol, toRefs as ll, shallowRef as dl, nextTick as Nr, onBeforeUnmount as sl, onMounted as ul } from "vue";
1
+ import { defineComponent as xt, computed as d, resolveComponent as al, openBlock as u, createBlock as se, unref as l, withCtx as le, createVNode as _e, createElementVNode as M, toDisplayString as q, normalizeStyle as T, createElementBlock as m, Fragment as oe, renderList as fe, ref as N, inject as Jn, watch as He, renderSlot as vr, createTextVNode as ei, createCommentVNode as D, withModifiers as b, normalizeClass as Y, withDirectives as nl, vModelText as il, toRef as it, provide as ol, toRefs as ll, shallowRef as dl, nextTick as Nr, onBeforeUnmount as sl, onMounted as ul } from "vue";
2
2
  import { resolveDataGridCellInteraction as jn, buildDataGridCellRenderModel as cl, getDataGridRowRenderMeta as gl, invokeDataGridCellInteraction as pl } from "@affino/datagrid-vue";
3
3
  import { useDataGridLinkedPaneScrollSync as vl, useDataGridManagedWheelScroll as ml } from "@affino/datagrid-vue/advanced";
4
4
  import { buildDataGridChromeRenderModel as ka } from "@affino/datagrid-chrome";
5
5
  import { UiSubMenu as ti, UiSubMenuTrigger as ri, UiSubMenuContent as ai, UiMenuItem as Ht, UiMenu as fl, UiMenuTrigger as hl, UiMenuContent as bl, UiMenuLabel as yl, UiMenuSeparator as qr } from "@affino/menu-vue";
6
6
  import { d as xl, r as wl } from "./dataGridOverlayThemeVars-vzY74EIz.js";
7
7
  import { _ as kl } from "./DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-Dc5SowKk.js";
8
- const Cl = ["title"], Sl = /* @__PURE__ */ xt({
8
+ const Cl = ["title"], _l = /* @__PURE__ */ xt({
9
9
  __name: "DataGridColumnMenuCustomEntry",
10
10
  props: {
11
11
  item: {},
@@ -22,14 +22,14 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
22
22
  function A() {
23
23
  F.value && z("select", F.value);
24
24
  }
25
- return (p, _) => {
25
+ return (p, S) => {
26
26
  const y = al("DataGridColumnMenuCustomEntry", !0);
27
27
  return p.item.kind === "submenu" && W.value.length > 0 ? (u(), se(l(ti), {
28
28
  key: 0,
29
29
  options: p.submenuOptions
30
30
  }, {
31
31
  default: le(() => [
32
- Se(l(ri), {
32
+ _e(l(ri), {
33
33
  class: "datagrid-column-menu__item datagrid-column-menu__item--submenu",
34
34
  "data-datagrid-column-menu-action": B.value,
35
35
  "data-datagrid-column-menu-custom-key": p.item.key,
@@ -44,7 +44,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
44
44
  ]),
45
45
  _: 1
46
46
  }, 8, ["data-datagrid-column-menu-action", "data-datagrid-column-menu-custom-key", "data-disabled-reason", "aria-disabled", "disabled", "title"]),
47
- Se(l(ai), {
47
+ _e(l(ai), {
48
48
  "class-name": "ui-submenu-content datagrid-column-menu__submenu-panel",
49
49
  style: T(p.menuThemeVars)
50
50
  }, {
@@ -55,7 +55,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
55
55
  "path-prefix": k.value,
56
56
  "menu-theme-vars": p.menuThemeVars,
57
57
  "submenu-options": p.submenuOptions,
58
- onSelect: _[0] || (_[0] = (R) => p.$emit("select", R))
58
+ onSelect: S[0] || (S[0] = (R) => p.$emit("select", R))
59
59
  }, null, 8, ["item", "path-prefix", "menu-theme-vars", "submenu-options"]))), 128))
60
60
  ]),
61
61
  _: 1
@@ -80,7 +80,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
80
80
  }, 8, ["data-datagrid-column-menu-action", "data-datagrid-column-menu-custom-key", "data-disabled-reason", "disabled", "title"]));
81
81
  };
82
82
  }
83
- }), _l = ["title"], Rl = {
83
+ }), Sl = ["title"], Rl = {
84
84
  key: 0,
85
85
  class: "datagrid-column-menu__state"
86
86
  }, Ml = ["title"], Al = {
@@ -151,7 +151,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
151
151
  },
152
152
  emits: ["sort", "pin", "group", "apply-filter", "clear-filter", "update-text-filter"],
153
153
  setup(a, { emit: C }) {
154
- const x = a, z = C, k = N(null), B = Jn(xl, N(null)), K = N(!1), F = N(""), W = N(!1), A = N([]), p = N([]), _ = N({}), y = d(() => vt(x.columnDataType)), G = d(() => new Set(x.disabledItems)), R = d(() => x.triggerMode !== "button"), _e = d(() => !x.grouped || !Number.isFinite(x.groupOrder) ? null : `Level ${Number(x.groupOrder) + 1}`), g = d(() => {
154
+ const x = a, z = C, k = N(null), B = Jn(xl, N(null)), K = N(!1), F = N(""), W = N(!1), A = N([]), p = N([]), S = N({}), y = d(() => vt(x.columnDataType)), G = d(() => new Set(x.disabledItems)), R = d(() => x.triggerMode !== "button"), Se = d(() => !x.grouped || !Number.isFinite(x.groupOrder) ? null : `Level ${Number(x.groupOrder) + 1}`), g = d(() => {
155
155
  const v = Number.isFinite(x.valueFilterRowLimit) && x.valueFilterRowLimit >= 0 ? x.valueFilterRowLimit : Number.POSITIVE_INFINITY;
156
156
  return Math.min(v, od);
157
157
  }), V = d(() => x.filterEnabled ? x.rowCount <= g.value : !1), ge = d(() => x.filterEnabled && !V.value), ue = d(() => x.items.filter((v) => v === "sort" ? ne("sortAsc") || ne("sortDesc") || ne("clearSort") : v === "group" ? ne("toggleGroup") : v === "pin" ? X.value : v === "filter" ? w.value : !0)), ke = d(() => $e(ue.value, x.customItems)), he = d(() => G.value.has("sort")), ae = d(() => G.value.has("group")), re = d(() => G.value.has("pin")), O = d(() => G.value.has("filter")), $ = d(() => new Set(p.value)), w = d(() => V.value || x.textFilterEnabled), Z = d(() => x.textFilterEnabled && !V.value), E = d(() => F.value.trim().length > 0), X = d(() => ne("pinMenu") && (ne("pinLeft") || ne("pinRight") || ne("unpin"))), rr = d(() => de(
@@ -296,7 +296,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
296
296
  We(v);
297
297
  }
298
298
  function Je() {
299
- _.value = wl(B.value);
299
+ S.value = wl(B.value);
300
300
  }
301
301
  function kt() {
302
302
  if (F.value = "", W.value = !1, !V.value) {
@@ -419,16 +419,16 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
419
419
  open: K.value,
420
420
  toggleMenuFromElement: Qe
421
421
  }),
422
- Se(l(bl), {
422
+ _e(l(bl), {
423
423
  "class-name": "ui-menu-content datagrid-column-menu__panel",
424
424
  align: "start",
425
425
  gutter: 6,
426
- style: T(_.value),
426
+ style: T(S.value),
427
427
  "data-affino-menu-root": "",
428
428
  "data-datagrid-column-menu-panel": "true"
429
429
  }, {
430
430
  default: le(() => [
431
- Se(l(yl), { class: "datagrid-column-menu__title" }, {
431
+ _e(l(yl), { class: "datagrid-column-menu__title" }, {
432
432
  default: le(() => [
433
433
  ei(q(v.columnLabel), 1)
434
434
  ]),
@@ -452,7 +452,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
452
452
  default: le(() => [
453
453
  M("span", {
454
454
  title: U("sortAsc", he.value || !v.sortEnabled, "sort")
455
- }, q(ar.value), 9, _l),
455
+ }, q(ar.value), 9, Sl),
456
456
  v.sortDirection === "asc" ? (u(), m("span", Rl, "Active")) : D("", !0)
457
457
  ]),
458
458
  _: 1
@@ -503,7 +503,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
503
503
  M("span", {
504
504
  title: U("toggleGroup", ae.value || !v.groupEnabled, "group")
505
505
  }, q(rr.value), 9, El),
506
- v.grouped && _e.value ? (u(), m("span", Bl, q(_e.value), 1)) : D("", !0)
506
+ v.grouped && Se.value ? (u(), m("span", Bl, q(Se.value), 1)) : D("", !0)
507
507
  ]),
508
508
  _: 1
509
509
  }, 8, ["data-disabled-reason", "disabled", "title"])) : j.kind === "section" && j.key === "pin" && X.value ? (u(), se(l(ti), {
@@ -511,7 +511,7 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
511
511
  options: pt
512
512
  }, {
513
513
  default: le(() => [
514
- Se(l(ri), {
514
+ _e(l(ri), {
515
515
  class: "datagrid-column-menu__item datagrid-column-menu__item--submenu",
516
516
  "data-datagrid-column-menu-action": "pin-submenu",
517
517
  "data-disabled-reason": U("pinMenu", re.value, "pin"),
@@ -524,9 +524,9 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
524
524
  ]),
525
525
  _: 1
526
526
  }, 8, ["data-disabled-reason", "aria-disabled", "disabled", "title"]),
527
- Se(l(ai), {
527
+ _e(l(ai), {
528
528
  "class-name": "ui-submenu-content datagrid-column-menu__submenu-panel",
529
- style: T(_.value)
529
+ style: T(S.value)
530
530
  }, {
531
531
  default: le(() => [
532
532
  ne("pinLeft") ? (u(), se(l(Ht), {
@@ -737,10 +737,10 @@ const Cl = ["title"], Sl = /* @__PURE__ */ xt({
737
737
  onClick: It
738
738
  }, q(wt.value), 9, id)) : D("", !0)
739
739
  ])) : D("", !0)
740
- ], 34)) : j.kind === "custom" ? (u(), se(Sl, {
740
+ ], 34)) : j.kind === "custom" ? (u(), se(_l, {
741
741
  key: 5,
742
742
  item: j.item,
743
- "menu-theme-vars": _.value,
743
+ "menu-theme-vars": S.value,
744
744
  "submenu-options": pt,
745
745
  onSelect: Oe
746
746
  }, null, 8, ["item", "menu-theme-vars"])) : D("", !0)
@@ -865,10 +865,10 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
865
865
  }, Cd = {
866
866
  key: 1,
867
867
  d: "M9 11V6.75M9 6.75 7.25 8.5M9 6.75 10.75 8.5"
868
- }, Sd = {
868
+ }, _d = {
869
869
  key: 2,
870
870
  d: "M9 5v4.25M9 9.25 7.25 7.5M9 9.25 10.75 7.5"
871
- }, _d = {
871
+ }, Sd = {
872
872
  key: 3,
873
873
  d: "M5.5 6.5 8 9l2.5-2.5"
874
874
  }, Rd = ["onMousedown", "onDblclick"], Md = ["data-column-key"], Ad = { class: "col-head col-head--index" }, Id = ["role", "aria-label", "aria-checked"], Ed = ["data-column-key", "draggable", "onClick", "onDragstart", "onDragover", "onDrop"], Bd = { class: "col-head" }, Dd = ["title"], Ld = {
@@ -955,10 +955,10 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
955
955
  }
956
956
  },
957
957
  setup(a) {
958
- const C = Da(), x = oi(), z = La(), k = li(), B = Pa(), K = di(), F = d(() => B.value.sourceRows ?? []), W = d(() => k.value.visibleColumns), A = d(() => k.value.renderedColumns), p = d(() => W.value.filter((s) => s.pin === "left")), _ = d(() => W.value.filter((s) => s.pin === "right")), y = d(() => C.value !== "pivot" ? 0 : W.value.reduce((s, o) => {
958
+ const C = Da(), x = oi(), z = La(), k = li(), B = Pa(), K = di(), F = d(() => B.value.sourceRows ?? []), W = d(() => k.value.visibleColumns), A = d(() => k.value.renderedColumns), p = d(() => W.value.filter((s) => s.pin === "left")), S = d(() => W.value.filter((s) => s.pin === "right")), y = d(() => C.value !== "pivot" ? 0 : W.value.reduce((s, o) => {
959
959
  const n = ie(o);
960
960
  return Math.max(s, n?.groupLabels?.length ?? 0);
961
- }, 0)), G = d(() => y.value > 0), R = d(() => Rt(p.value)), _e = d(() => Rt(A.value)), g = d(() => Rt(_.value)), V = d(() => x.value.mainTrackStyle), ge = d(() => z.value.leftColumnSpacerWidth), ue = d(() => z.value.rightColumnSpacerWidth), ke = d(() => k.value.columnFilterTextByKey), he = d(() => typeof k.value.columnMenuMaxFilterValues == "number" ? k.value.columnMenuMaxFilterValues : 250), ae = d(() => typeof k.value.columnMenuValueFilterRowLimit == "number" ? k.value.columnMenuValueFilterRowLimit : Number.MAX_SAFE_INTEGER), re = N(null), O = N(null), $ = N(null);
961
+ }, 0)), G = d(() => y.value > 0), R = d(() => Rt(p.value)), Se = d(() => Rt(A.value)), g = d(() => Rt(S.value)), V = d(() => x.value.mainTrackStyle), ge = d(() => z.value.leftColumnSpacerWidth), ue = d(() => z.value.rightColumnSpacerWidth), ke = d(() => k.value.columnFilterTextByKey), he = d(() => typeof k.value.columnMenuMaxFilterValues == "number" ? k.value.columnMenuMaxFilterValues : 250), ae = d(() => typeof k.value.columnMenuValueFilterRowLimit == "number" ? k.value.columnMenuValueFilterRowLimit : Number.MAX_SAFE_INTEGER), re = N(null), O = N(null), $ = N(null);
962
962
  let w = !1;
963
963
  function Z() {
964
964
  return k.value.columnMenuEnabled === !0 ? !0 : typeof k.value.applyColumnMenuSort == "function" || typeof k.value.applyColumnMenuPin == "function" || typeof k.value.applyColumnMenuFilter == "function" || typeof k.value.clearColumnMenuFilter == "function";
@@ -1461,7 +1461,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
1461
1461
  }, [
1462
1462
  (u(), m("svg", wd, [
1463
1463
  Qe(n.key) ? (u(), m("path", kd)) : D("", !0),
1464
- Je(n.key) ? (u(), m("path", Cd)) : kt(n.key) ? (u(), m("path", Sd)) : (u(), m("path", _d))
1464
+ Je(n.key) ? (u(), m("path", Cd)) : kt(n.key) ? (u(), m("path", _d)) : (u(), m("path", Sd))
1465
1465
  ]))
1466
1466
  ], 42, xd)) : D("", !0),
1467
1467
  M("button", {
@@ -1571,7 +1571,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
1571
1571
  onWheel: o[19] || (o[19] = //@ts-ignore
1572
1572
  (...n) => a.onLinkedViewportWheel && a.onLinkedViewportWheel(...n))
1573
1573
  }, [
1574
- (u(!0), m(oe, null, fe(_e.value, (n, h) => (u(), m("div", {
1574
+ (u(!0), m(oe, null, fe(Se.value, (n, h) => (u(), m("div", {
1575
1575
  key: `center-pivot-group-row-${h}`,
1576
1576
  class: "grid-header-row grid-center-track grid-header-row--pivot-groups",
1577
1577
  style: T(V.value)
@@ -1779,7 +1779,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
1779
1779
  class: "grid-header-row grid-pane-track",
1780
1780
  style: T(a.rightTrackStyle)
1781
1781
  }, [
1782
- E() ? (u(!0), m(oe, { key: 0 }, fe(_.value, (n) => (u(), se(Ca, {
1782
+ E() ? (u(!0), m(oe, { key: 0 }, fe(S.value, (n) => (u(), se(Ca, {
1783
1783
  key: be(n.key),
1784
1784
  "row-count": F.value.length,
1785
1785
  "resolve-value-entries": () => It(n.key),
@@ -1863,7 +1863,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
1863
1863
  ], 46, as)
1864
1864
  ]),
1865
1865
  _: 2
1866
- }, 1032, ["row-count", "resolve-value-entries", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "custom-items", "trigger-mode", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (u(!0), m(oe, { key: 1 }, fe(_.value, (n) => (u(), m("div", {
1866
+ }, 1032, ["row-count", "resolve-value-entries", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "custom-items", "trigger-mode", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (u(!0), m(oe, { key: 1 }, fe(S.value, (n) => (u(), m("div", {
1867
1867
  key: `header-right-${n.key}`,
1868
1868
  class: Y(["grid-cell grid-cell--header grid-cell--header-sortable grid-cell--pinned-right", Pe(n)]),
1869
1869
  style: T([ze(n.key), Ge(n)]),
@@ -2014,7 +2014,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2014
2014
  ], 10, xs))), 128))
2015
2015
  ], 64));
2016
2016
  }
2017
- }), ws = ["data-row-index", "onClick", "onMouseenter"], ks = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "aria-pressed", "aria-label", "aria-disabled", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], Cs = ["name", "type", "value"], Ss = ["name", "value"], Nn = /* @__PURE__ */ xt({
2017
+ }), ws = ["data-row-index", "onClick", "onMouseenter"], ks = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "aria-pressed", "aria-label", "aria-disabled", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], Cs = ["name", "type", "value"], _s = ["name", "value"], Nn = /* @__PURE__ */ xt({
2018
2018
  __name: "DataGridTableStageCenterPane",
2019
2019
  props: {
2020
2020
  viewportRef: {
@@ -2078,18 +2078,18 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2078
2078
  const C = a, x = Da(), z = ii(), k = oi(), B = La(), K = li(), F = Pa(), W = si(), {
2079
2079
  displayRows: A,
2080
2080
  viewportClass: p,
2081
- viewportRef: _,
2081
+ viewportRef: S,
2082
2082
  selectionOverlaySegments: y,
2083
2083
  fillPreviewOverlaySegments: G,
2084
2084
  movePreviewOverlaySegments: R,
2085
- overlayLanes: _e,
2085
+ overlayLanes: Se,
2086
2086
  renderApi: g
2087
2087
  } = ll(C), V = d(() => C.topSpacerHeight ?? B.value.topSpacerHeight), ge = d(() => C.bottomSpacerHeight ?? B.value.bottomSpacerHeight), ue = d(() => C.handleScroll ?? g.value.handleCenterViewportScroll), ke = d(() => C.handleWheel ?? g.value.handleBodyViewportWheel), he = d(() => C.handleKeydown ?? g.value.handleViewportKeydown), ae = d(() => C.handleContextMenu), re = d(() => [
2088
2088
  p.value,
2089
2089
  z.value === "auto-height" ? "grid-body-viewport--layout-auto-height" : "grid-body-viewport--layout-fill"
2090
2090
  ]);
2091
2091
  return (O, $) => (u(), m("div", {
2092
- ref: l(_) ?? void 0,
2092
+ ref: l(S) ?? void 0,
2093
2093
  class: Y(re.value),
2094
2094
  tabindex: "0",
2095
2095
  onScroll: $[14] || ($[14] = //@ts-ignore
@@ -2215,7 +2215,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2215
2215
  )),
2216
2216
  onBlur: $[12] || ($[12] = //@ts-ignore
2217
2217
  (...X) => l(g).handleTextEditorBlur && l(g).handleTextEditorBlur(...X))
2218
- }, null, 40, Ss)) : l(g).shouldRenderCheckboxCell(w, E) ? (u(), m("span", {
2218
+ }, null, 40, _s)) : l(g).shouldRenderCheckboxCell(w, E) ? (u(), m("span", {
2219
2219
  key: 4,
2220
2220
  class: Y(["grid-checkbox-indicator", l(g).checkboxIndicatorClass(w, E)]),
2221
2221
  "aria-hidden": "true"
@@ -2239,16 +2239,16 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2239
2239
  class: "grid-spacer",
2240
2240
  style: T({ height: `${ge.value}px` })
2241
2241
  }, null, 4)) : D("", !0),
2242
- Se(Ma, {
2242
+ _e(Ma, {
2243
2243
  "selection-segments": l(y),
2244
2244
  "fill-preview-segments": l(G),
2245
2245
  "move-preview-segments": l(R),
2246
- lanes: l(_e)
2246
+ lanes: l(Se)
2247
2247
  }, null, 8, ["selection-segments", "fill-preview-segments", "move-preview-segments", "lanes"])
2248
2248
  ], 4)
2249
2249
  ], 34));
2250
2250
  }
2251
- }), _s = ["aria-expanded"], Rs = {
2251
+ }), Ss = ["aria-expanded"], Rs = {
2252
2252
  key: 0,
2253
2253
  class: "grid-fill-action__menu",
2254
2254
  role: "menu"
@@ -2285,7 +2285,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2285
2285
  onMousedown: F[0] || (F[0] = b(() => {
2286
2286
  }, ["stop"])),
2287
2287
  onClick: F[1] || (F[1] = b((W) => x("toggle", W), ["stop"]))
2288
- }, " v ", 40, _s),
2288
+ }, " v ", 40, Ss),
2289
2289
  a.isOpen ? (u(), m("div", Rs, [
2290
2290
  M("button", {
2291
2291
  type: "button",
@@ -2332,7 +2332,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2332
2332
  (...p) => a.renderApi.handleLinkedViewportWheel && a.renderApi.handleLinkedViewportWheel(...p))
2333
2333
  }, [
2334
2334
  vr(W.$slots, "chrome"),
2335
- Se(Ma, {
2335
+ _e(Ma, {
2336
2336
  "layer-class": "grid-selection-overlay--pane-seam",
2337
2337
  "selection-segments": a.pane.selectionSeamOverlaySegments,
2338
2338
  "fill-preview-segments": a.pane.fillPreviewSeamOverlaySegments,
@@ -2351,42 +2351,42 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2351
2351
  class: "grid-spacer",
2352
2352
  style: T({ height: `${a.pane.topSpacerHeight ?? l(k).topSpacerHeight}px` })
2353
2353
  }, null, 4)) : D("", !0),
2354
- (u(!0), m(oe, null, fe(a.pane.displayRows, (p, _) => (u(), m("div", {
2354
+ (u(!0), m(oe, null, fe(a.pane.displayRows, (p, S) => (u(), m("div", {
2355
2355
  key: `${String(p.rowId)}-${a.pane.side}-row`,
2356
- class: Y(["grid-row", [l(B).rowClass(p), a.renderApi.rowStateClasses(p, _), { "grid-row--autosize-probe": l(B).isRowAutosizeProbe(p, a.renderApi.viewportRowOffset(p, _)) }]]),
2357
- style: T(a.renderApi.paneRowStyle(p, _, a.pane.width)),
2358
- "data-row-index": a.renderApi.absoluteRowIndex(p, _),
2356
+ class: Y(["grid-row", [l(B).rowClass(p), a.renderApi.rowStateClasses(p, S), { "grid-row--autosize-probe": l(B).isRowAutosizeProbe(p, a.renderApi.viewportRowOffset(p, S)) }]]),
2357
+ style: T(a.renderApi.paneRowStyle(p, S, a.pane.width)),
2358
+ "data-row-index": a.renderApi.absoluteRowIndex(p, S),
2359
2359
  onClick: (y) => a.renderApi.handleRowContainerClick(p),
2360
- onMouseenter: (y) => a.renderApi.setHoveredRow(p, _)
2360
+ onMouseenter: (y) => a.renderApi.setHoveredRow(p, S)
2361
2361
  }, [
2362
2362
  a.pane.showIndexColumn ? (u(), m("div", {
2363
2363
  key: 0,
2364
2364
  class: Y(["grid-cell grid-cell--index grid-cell--index-number datagrid-stage__row-index-cell", [
2365
- a.renderApi.rowIndexCellClasses(p, a.renderApi.viewportRowOffset(p, _)),
2365
+ a.renderApi.rowIndexCellClasses(p, a.renderApi.viewportRowOffset(p, S)),
2366
2366
  {
2367
2367
  "grid-cell--pinned-divider-right": a.pane.side === "left" && a.pane.columns.length > 0
2368
2368
  }
2369
2369
  ]]),
2370
- style: T(a.renderApi.rowIndexCellStyle(p, a.renderApi.viewportRowOffset(p, _))),
2370
+ style: T(a.renderApi.rowIndexCellStyle(p, a.renderApi.viewportRowOffset(p, S))),
2371
2371
  "data-row-id": String(p.rowId),
2372
- "data-row-index": a.renderApi.absoluteRowIndex(p, _),
2372
+ "data-row-index": a.renderApi.absoluteRowIndex(p, S),
2373
2373
  tabindex: a.renderApi.rowIndexTabIndex(p),
2374
2374
  draggable: a.renderApi.isRowIndexDraggable(p),
2375
- onClick: b((y) => a.renderApi.handleRowIndexClickSafe(p, a.renderApi.viewportRowOffset(p, _), y), ["stop"]),
2376
- onKeydown: b((y) => a.renderApi.handleRowIndexKeydown(y, p, a.renderApi.viewportRowOffset(p, _)), ["stop"]),
2377
- onDragstart: b((y) => a.renderApi.handleRowIndexDragStart(y, p, a.renderApi.viewportRowOffset(p, _)), ["stop"]),
2378
- onDragover: b((y) => a.renderApi.handleRowIndexDragOver(y, p, a.renderApi.viewportRowOffset(p, _)), ["stop", "prevent"]),
2379
- onDrop: b((y) => a.renderApi.handleRowIndexDrop(y, p, a.renderApi.viewportRowOffset(p, _)), ["stop", "prevent"]),
2375
+ onClick: b((y) => a.renderApi.handleRowIndexClickSafe(p, a.renderApi.viewportRowOffset(p, S), y), ["stop"]),
2376
+ onKeydown: b((y) => a.renderApi.handleRowIndexKeydown(y, p, a.renderApi.viewportRowOffset(p, S)), ["stop"]),
2377
+ onDragstart: b((y) => a.renderApi.handleRowIndexDragStart(y, p, a.renderApi.viewportRowOffset(p, S)), ["stop"]),
2378
+ onDragover: b((y) => a.renderApi.handleRowIndexDragOver(y, p, a.renderApi.viewportRowOffset(p, S)), ["stop", "prevent"]),
2379
+ onDrop: b((y) => a.renderApi.handleRowIndexDrop(y, p, a.renderApi.viewportRowOffset(p, S)), ["stop", "prevent"]),
2380
2380
  onDragend: A[0] || (A[0] = b((y) => a.renderApi.handleRowIndexDragEnd(), ["stop"]))
2381
2381
  }, [
2382
- ei(q(l(B).rowIndexLabel(p, a.renderApi.viewportRowOffset(p, _))) + " ", 1),
2382
+ ei(q(l(B).rowIndexLabel(p, a.renderApi.viewportRowOffset(p, S))) + " ", 1),
2383
2383
  l(x) === "base" ? (u(), m("button", {
2384
2384
  key: 0,
2385
2385
  type: "button",
2386
2386
  class: "row-resize-handle",
2387
2387
  "aria-label": "Resize rows",
2388
- onMousedown: b((y) => l(B).startRowResize(y, p, a.renderApi.viewportRowOffset(p, _)), ["stop", "prevent"]),
2389
- onDblclick: b((y) => l(B).autosizeRow(y, p, a.renderApi.viewportRowOffset(p, _)), ["stop", "prevent"])
2388
+ onMousedown: b((y) => l(B).startRowResize(y, p, a.renderApi.viewportRowOffset(p, S)), ["stop", "prevent"]),
2389
+ onDblclick: b((y) => l(B).autosizeRow(y, p, a.renderApi.viewportRowOffset(p, S)), ["stop", "prevent"])
2390
2390
  }, null, 40, Ds)) : D("", !0)
2391
2391
  ], 46, Bs)) : D("", !0),
2392
2392
  (u(!0), m(oe, null, fe(a.pane.columns, (y, G) => (u(), m("div", {
@@ -2396,34 +2396,34 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2396
2396
  a.pane.side === "left" ? "grid-cell--pinned-left" : "grid-cell--pinned-right",
2397
2397
  a.pane.side === "left" && G < a.pane.columns.length - 1 ? "grid-cell--pinned-divider-right" : null,
2398
2398
  a.pane.side === "right" && G > 0 ? "grid-cell--pinned-divider-left" : null,
2399
- a.renderApi.builtInCellClasses(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)),
2400
- a.renderApi.cellStateClasses(p, a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)),
2401
- a.renderApi.resolveCellCustomClass(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key))
2399
+ a.renderApi.builtInCellClasses(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)),
2400
+ a.renderApi.cellStateClasses(p, a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)),
2401
+ a.renderApi.resolveCellCustomClass(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key))
2402
2402
  ]]),
2403
2403
  style: T([
2404
2404
  a.renderApi.columnStyle(y.key),
2405
2405
  a.renderApi.bodyCellPresentationStyle(y),
2406
- a.renderApi.bodyCellSelectionStyle(p, y, a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)),
2407
- a.renderApi.resolveCellCustomStyle(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key))
2406
+ a.renderApi.bodyCellSelectionStyle(p, y, a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)),
2407
+ a.renderApi.resolveCellCustomStyle(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key))
2408
2408
  ]),
2409
2409
  "data-row-id": String(p.rowId),
2410
2410
  "data-column-key": y.key,
2411
- "data-row-index": a.renderApi.absoluteRowIndex(p, _),
2411
+ "data-row-index": a.renderApi.absoluteRowIndex(p, S),
2412
2412
  "data-column-index": a.renderApi.columnIndexByKey(y.key),
2413
- tabindex: a.renderApi.cellTabIndex(a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)),
2414
- role: a.renderApi.cellAriaRole(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)),
2415
- "aria-checked": a.renderApi.cellAriaChecked(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)),
2416
- "aria-pressed": a.renderApi.cellAriaPressed(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)),
2417
- "aria-label": a.renderApi.cellAriaLabel(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)),
2418
- "aria-disabled": a.renderApi.cellAriaDisabled(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)),
2419
- onMousedown: b((R) => a.renderApi.handleCellMouseDown(R, p, a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)), ["prevent", "stop"]),
2420
- onClick: b((R) => a.renderApi.handleBodyCellClick(R, p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)), ["stop"]),
2421
- onMousemove: (R) => a.renderApi.handleCellMouseMove(R, a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)),
2413
+ tabindex: a.renderApi.cellTabIndex(a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)),
2414
+ role: a.renderApi.cellAriaRole(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)),
2415
+ "aria-checked": a.renderApi.cellAriaChecked(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)),
2416
+ "aria-pressed": a.renderApi.cellAriaPressed(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)),
2417
+ "aria-label": a.renderApi.cellAriaLabel(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)),
2418
+ "aria-disabled": a.renderApi.cellAriaDisabled(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)),
2419
+ onMousedown: b((R) => a.renderApi.handleCellMouseDown(R, p, a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)), ["prevent", "stop"]),
2420
+ onClick: b((R) => a.renderApi.handleBodyCellClick(R, p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)), ["stop"]),
2421
+ onMousemove: (R) => a.renderApi.handleCellMouseMove(R, a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)),
2422
2422
  onMouseleave: A[14] || (A[14] = (R) => a.renderApi.clearRangeMoveHandleHover()),
2423
- onKeydown: b((R) => a.renderApi.handleCellKeydown(R, p, a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)), ["stop"]),
2424
- onDblclick: b((R) => a.renderApi.startInlineEditIfAllowed(p, y, a.renderApi.viewportRowOffset(p, _)), ["stop", "prevent"])
2423
+ onKeydown: b((R) => a.renderApi.handleCellKeydown(R, p, a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)), ["stop"]),
2424
+ onDblclick: b((R) => a.renderApi.startInlineEditIfAllowed(p, y, a.renderApi.viewportRowOffset(p, S)), ["stop", "prevent"])
2425
2425
  }, [
2426
- l(x) === "base" && a.renderApi.isCellEditableSafe(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)) && a.renderApi.isFillHandleCellSafe(a.renderApi.viewportRowOffset(p, _), a.renderApi.columnIndexByKey(y.key)) && !a.renderApi.isEditingCellSafe(p, y.key) ? (u(), m("button", {
2426
+ l(x) === "base" && a.renderApi.isCellEditableSafe(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)) && a.renderApi.isFillHandleCellSafe(a.renderApi.viewportRowOffset(p, S), a.renderApi.columnIndexByKey(y.key)) && !a.renderApi.isEditingCellSafe(p, y.key) ? (u(), m("button", {
2427
2427
  key: 0,
2428
2428
  type: "button",
2429
2429
  class: "cell-fill-handle",
@@ -2432,7 +2432,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2432
2432
  onMousedown: A[1] || (A[1] = b((R) => a.renderApi.handleFillHandleMouseDown(R), ["stop", "prevent"])),
2433
2433
  onDblclick: A[2] || (A[2] = b((R) => a.renderApi.handleFillHandleDoubleClick(R), ["stop", "prevent"]))
2434
2434
  }, null, 32)) : D("", !0),
2435
- a.renderApi.isSelectEditorCell(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)) ? (u(), se(ui, {
2435
+ a.renderApi.isSelectEditorCell(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)) ? (u(), se(ui, {
2436
2436
  key: 1,
2437
2437
  value: a.renderApi.resolveSelectEditorValue(p, y),
2438
2438
  options: a.renderApi.resolveSelectEditorOptions(p, y),
@@ -2442,7 +2442,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2442
2442
  onCommit: a.renderApi.handleSelectEditorCommit,
2443
2443
  onCancel: a.renderApi.handleSelectEditorCancel,
2444
2444
  onOptionsResolved: (R) => a.renderApi.handleSelectEditorOptionsResolved(p, y, R)
2445
- }, null, 8, ["value", "options", "load-options", "initial-filter", "open-on-mount", "onCommit", "onCancel", "onOptionsResolved"])) : a.renderApi.isDateEditorCell(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)) ? (u(), m("input", {
2445
+ }, null, 8, ["value", "options", "load-options", "initial-filter", "open-on-mount", "onCommit", "onCancel", "onOptionsResolved"])) : a.renderApi.isDateEditorCell(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)) ? (u(), m("input", {
2446
2446
  key: 2,
2447
2447
  class: "cell-editor-control cell-editor-input cell-editor-input--date",
2448
2448
  name: `datagrid-cell-editor-${y.key}`,
@@ -2462,7 +2462,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2462
2462
  )),
2463
2463
  onBlur: A[8] || (A[8] = //@ts-ignore
2464
2464
  (...R) => a.renderApi.handleTextEditorBlur && a.renderApi.handleTextEditorBlur(...R))
2465
- }, null, 40, Ps)) : a.renderApi.isTextEditorCell(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key)) ? (u(), m("input", {
2465
+ }, null, 40, Ps)) : a.renderApi.isTextEditorCell(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key)) ? (u(), m("input", {
2466
2466
  key: 3,
2467
2467
  class: "cell-editor-control cell-editor-input",
2468
2468
  name: `datagrid-cell-editor-${y.key}`,
@@ -2490,7 +2490,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2490
2490
  }, null, 2)
2491
2491
  ], 2)) : (u(), se(l(ci), {
2492
2492
  key: 5,
2493
- content: a.renderApi.renderResolvedCellContent(p, a.renderApi.viewportRowOffset(p, _), y, a.renderApi.columnIndexByKey(y.key))
2493
+ content: a.renderApi.renderResolvedCellContent(p, a.renderApi.viewportRowOffset(p, S), y, a.renderApi.columnIndexByKey(y.key))
2494
2494
  }, null, 8, ["content"]))
2495
2495
  ], 46, Ls))), 128))
2496
2496
  ], 46, Es))), 128)),
@@ -2499,7 +2499,7 @@ const ud = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
2499
2499
  class: "grid-spacer",
2500
2500
  style: T({ height: `${a.pane.bottomSpacerHeight ?? l(k).bottomSpacerHeight}px` })
2501
2501
  }, null, 4)) : D("", !0),
2502
- Se(Ma, {
2502
+ _e(Ma, {
2503
2503
  "selection-segments": a.pane.selectionOverlaySegments,
2504
2504
  "fill-preview-segments": a.pane.fillPreviewOverlaySegments,
2505
2505
  "move-preview-segments": a.pane.movePreviewOverlaySegments,
@@ -2576,19 +2576,19 @@ function $s(a) {
2576
2576
  const A = C.container?.isConnected ? C.container : z(F.target);
2577
2577
  if (!A)
2578
2578
  return;
2579
- const p = W.clientX - C.startX, _ = W.clientY - C.startY, y = Math.max(0, A.scrollHeight - A.clientHeight), G = Math.max(0, A.scrollWidth - A.clientWidth);
2579
+ const p = W.clientX - C.startX, S = W.clientY - C.startY, y = Math.max(0, A.scrollHeight - A.clientHeight), G = Math.max(0, A.scrollWidth - A.clientWidth);
2580
2580
  !C.lockedAxis && (C.lockedAxis = Os({
2581
2581
  deltaX: p,
2582
- deltaY: _,
2582
+ deltaY: S,
2583
2583
  maxScrollLeft: G,
2584
2584
  maxScrollTop: y
2585
- }), !C.lockedAxis) || (F.preventDefault(), C.lockedAxis === "x" && G > Yr && (A.scrollLeft = Un(C.startScrollLeft - p, G)), C.lockedAxis === "y" && y > Yr && (A.scrollTop = Un(C.startScrollTop - _, y)));
2585
+ }), !C.lockedAxis) || (F.preventDefault(), C.lockedAxis === "x" && G > Yr && (A.scrollLeft = Un(C.startScrollLeft - p, G)), C.lockedAxis === "y" && y > Yr && (A.scrollTop = Un(C.startScrollTop - S, y)));
2586
2586
  };
2587
2587
  return a.root.addEventListener("touchstart", B, { capture: !0, passive: !0 }), a.root.addEventListener("touchmove", K, { capture: !0, passive: !1 }), a.root.addEventListener("touchend", k, !0), a.root.addEventListener("touchcancel", k, !0), () => {
2588
2588
  a.root.removeEventListener("touchstart", B, !0), a.root.removeEventListener("touchmove", K, !0), a.root.removeEventListener("touchend", k, !0), a.root.removeEventListener("touchcancel", k, !0);
2589
2589
  };
2590
2590
  }
2591
- const Xn = "affino-datagrid-vue-app-styles", Sa = `
2591
+ const Xn = "affino-datagrid-vue-app-styles", _a = `
2592
2592
  .affino-datagrid-app-root {
2593
2593
  display: flex;
2594
2594
  min-width: 0;
@@ -4977,13 +4977,26 @@ body.datagrid-fill-drag-cursor * {
4977
4977
  font-weight: 600;
4978
4978
  }
4979
4979
 
4980
+ .datagrid-context-menu__submenu {
4981
+ position: relative;
4982
+ }
4983
+
4980
4984
  .datagrid-context-menu__submenu-panel {
4985
+ position: absolute;
4986
+ top: -6px;
4987
+ left: calc(100% + 6px);
4988
+ z-index: 1;
4989
+ min-width: 188px;
4990
+ max-height: calc(100vh - 16px);
4991
+ overflow-y: auto;
4992
+ padding: 6px;
4993
+ border: 1px solid var(--datagrid-glass-border);
4994
+ border-radius: 10px;
4995
+ background: color-mix(in srgb, var(--datagrid-surface-elevated-color) 94%, white 6%);
4996
+ box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
4981
4997
  display: flex;
4982
4998
  flex-direction: column;
4983
4999
  gap: 2px;
4984
- margin-left: 10px;
4985
- padding-left: 8px;
4986
- border-left: 1px solid color-mix(in srgb, var(--datagrid-glass-border) 72%, transparent);
4987
5000
  }
4988
5001
 
4989
5002
  .datagrid-context-menu__submenu-arrow {
@@ -5803,11 +5816,11 @@ function Vs() {
5803
5816
  return;
5804
5817
  const a = document.getElementById(Xn);
5805
5818
  if (a instanceof HTMLStyleElement) {
5806
- a.textContent !== Sa && (a.textContent = Sa);
5819
+ a.textContent !== _a && (a.textContent = _a);
5807
5820
  return;
5808
5821
  }
5809
5822
  const C = document.createElement("style");
5810
- C.id = Xn, C.textContent = Sa, document.head.append(C);
5823
+ C.id = Xn, C.textContent = _a, document.head.append(C);
5811
5824
  }
5812
5825
  const Lr = ["edit", "paste", "toggle"];
5813
5826
  function Yn(a) {
@@ -5908,47 +5921,47 @@ function Ns(a, C, x) {
5908
5921
  };
5909
5922
  }
5910
5923
  function su(a) {
5911
- const C = d(() => Math.max(0, a.totalBodyRows.value + a.placeholderRows.value.count)), x = dl(null), z = (_) => {
5912
- if (!Number.isFinite(_))
5924
+ const C = d(() => Math.max(0, a.totalBodyRows.value + a.placeholderRows.value.count)), x = dl(null), z = (S) => {
5925
+ if (!Number.isFinite(S))
5913
5926
  return null;
5914
- const y = Math.max(0, Math.trunc(_));
5927
+ const y = Math.max(0, Math.trunc(S));
5915
5928
  return y < a.totalBodyRows.value ? a.runtime.getBodyRowAtIndex(y) : y >= C.value ? null : js(y);
5916
- }, k = (_) => {
5917
- const y = Ws(_);
5918
- return y >= 0 ? y : a.runtime.resolveBodyRowIndexById(_);
5919
- }, B = (_) => a.placeholderRows.value.createRowAt != null && _?.column.capabilities?.editable !== !1, K = (_, y) => {
5929
+ }, k = (S) => {
5930
+ const y = Ws(S);
5931
+ return y >= 0 ? y : a.runtime.resolveBodyRowIndexById(S);
5932
+ }, B = (S) => a.placeholderRows.value.createRowAt != null && S?.column.capabilities?.editable !== !1, K = (S, y) => {
5920
5933
  if (a.totalBodyRows.value <= 0)
5921
5934
  return;
5922
5935
  const G = a.totalBodyRows.value, R = Ba({
5923
- start: Math.min(_.start, G - 1),
5924
- end: Math.min(_.end, G - 1)
5936
+ start: Math.min(S.start, G - 1),
5937
+ end: Math.min(S.end, G - 1)
5925
5938
  }, G);
5926
5939
  if (y === "viewport") {
5927
5940
  a.runtime.setViewportRange(R);
5928
5941
  return;
5929
5942
  }
5930
5943
  (a.runtime.setVirtualWindowRange ?? a.runtime.setViewportRange)?.(R);
5931
- }, F = (_, y) => {
5932
- const G = Ba(_, C.value);
5944
+ }, F = (S, y) => {
5945
+ const G = Ba(S, C.value);
5933
5946
  return x.value = G, K(G, y), G;
5934
5947
  }, W = d(() => Ns(
5935
5948
  a.runtime.virtualWindow.value,
5936
5949
  x.value,
5937
5950
  C.value
5938
- )), A = (_, y) => {
5939
- const G = Math.max(0, Math.trunc(_));
5951
+ )), A = (S, y) => {
5952
+ const G = Math.max(0, Math.trunc(S));
5940
5953
  if (G < a.totalBodyRows.value)
5941
5954
  return a.runtime.getBodyRowAtIndex(G);
5942
5955
  const R = a.placeholderRows.value;
5943
5956
  if (!R.enabled || !R.createRowAt || !Gs(R, y) || G >= C.value)
5944
5957
  return null;
5945
- const _e = [...a.sourceRows.value];
5958
+ const Se = [...a.sourceRows.value];
5946
5959
  let g = a.totalBodyRows.value;
5947
5960
  for (; g <= G; ) {
5948
5961
  const V = R.createRowAt({
5949
5962
  visualRowIndex: g,
5950
5963
  materializedRowCount: g,
5951
- sourceRows: _e,
5964
+ sourceRows: Se,
5952
5965
  reason: y
5953
5966
  });
5954
5967
  if (!V)
@@ -5962,7 +5975,7 @@ function su(a) {
5962
5975
  a.runtime.setRows([ge]);
5963
5976
  else
5964
5977
  return null;
5965
- _e.push(ge), g += 1;
5978
+ Se.push(ge), g += 1;
5966
5979
  }
5967
5980
  return a.runtime.getBodyRowAtIndex(G);
5968
5981
  }, p = {
@@ -5972,22 +5985,22 @@ function su(a) {
5972
5985
  ...a.runtime.rowPartition.value,
5973
5986
  bodyRowCount: C.value
5974
5987
  })),
5975
- syncBodyRowsInRange: (_) => {
5976
- const y = F(_, "virtual-window");
5977
- if (_.end < _.start)
5988
+ syncBodyRowsInRange: (S) => {
5989
+ const y = F(S, "virtual-window");
5990
+ if (S.end < S.start)
5978
5991
  return [];
5979
5992
  const G = [];
5980
5993
  for (let R = y.start; R <= y.end; R += 1) {
5981
- const _e = z(R);
5982
- _e && G.push(_e);
5994
+ const Se = z(R);
5995
+ Se && G.push(Se);
5983
5996
  }
5984
5997
  return G;
5985
5998
  },
5986
- setViewportRange: (_) => {
5987
- F(_, "viewport");
5999
+ setViewportRange: (S) => {
6000
+ F(S, "viewport");
5988
6001
  },
5989
- setVirtualWindowRange: (_) => {
5990
- F(_, "virtual-window");
6002
+ setVirtualWindowRange: (S) => {
6003
+ F(S, "virtual-window");
5991
6004
  },
5992
6005
  getBodyRowAtIndex: z,
5993
6006
  resolveBodyRowIndexById: k
@@ -6000,7 +6013,7 @@ function su(a) {
6000
6013
  ensureMaterializedRowAt: A
6001
6014
  };
6002
6015
  }
6003
- const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATAGRID_PERF__", Zn = 400, Xs = 6, Ys = ".grid-fill-action", ot = 14, qe = 8, Ra = 10, Qn = 72, Xr = "datagrid-fill-drag-cursor", uu = /* @__PURE__ */ xt({
6016
+ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", Sa = "__AFFINO_DATAGRID_PERF__", Zn = 400, Xs = 6, Ys = ".grid-fill-action", ot = 14, qe = 8, Ra = 10, Qn = 72, Xr = "datagrid-fill-drag-cursor", uu = /* @__PURE__ */ xt({
6004
6017
  __name: "DataGridTableStage",
6005
6018
  props: {
6006
6019
  mode: {
@@ -6116,12 +6129,12 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6116
6129
  i.push(r.totalMs), t.set(r.scope, i);
6117
6130
  }
6118
6131
  return Array.from(t.entries()).map(([r, i]) => {
6119
- const c = [...i].sort((P, J) => P - J), f = c.reduce((P, J) => P + J, 0), S = Math.min(c.length - 1, Math.max(0, Math.ceil(c.length * 0.95) - 1));
6132
+ const c = [...i].sort((P, J) => P - J), f = c.reduce((P, J) => P + J, 0), _ = Math.min(c.length - 1, Math.max(0, Math.ceil(c.length * 0.95) - 1));
6120
6133
  return {
6121
6134
  scope: r,
6122
6135
  count: c.length,
6123
6136
  meanMs: f / Math.max(1, c.length),
6124
- p95Ms: c[S] ?? 0,
6137
+ p95Ms: c[_] ?? 0,
6125
6138
  maxMs: c.length > 0 ? c[c.length - 1] ?? 0 : 0
6126
6139
  };
6127
6140
  });
@@ -6132,7 +6145,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6132
6145
  if (typeof window > "u")
6133
6146
  return null;
6134
6147
  const e = window;
6135
- return e[_a] || (e[_a] = B()), e[_a] ?? null;
6148
+ return e[Sa] || (e[Sa] = B()), e[Sa] ?? null;
6136
6149
  }
6137
6150
  function F(e) {
6138
6151
  K()?.push(e);
@@ -6141,9 +6154,9 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6141
6154
  W
6142
6155
  );
6143
6156
  sd(A);
6144
- const p = A.mode, _ = A.rowHeightMode, y = A.layoutMode, G = A.layout, R = A.viewport, _e = A.columns, g = A.rows, V = A.selection, ge = A.editing, ue = A.cells, ke = A.interaction, he = z();
6157
+ const p = A.mode, S = A.rowHeightMode, y = A.layoutMode, G = A.layout, R = A.viewport, Se = A.columns, g = A.rows, V = A.selection, ge = A.editing, ue = A.cells, ke = A.interaction, he = z();
6145
6158
  he && K();
6146
- const ae = d(() => _e.value?.visibleColumns ?? []), re = d(() => _e.value?.renderedColumns ?? []), O = d(() => g.value?.displayRows ?? []), $ = d(() => g.value?.pinnedBottomRows ?? []), w = d(() => V.value?.selectionRange ?? null), Z = d(() => {
6159
+ const ae = d(() => Se.value?.visibleColumns ?? []), re = d(() => Se.value?.renderedColumns ?? []), O = d(() => g.value?.displayRows ?? []), $ = d(() => g.value?.pinnedBottomRows ?? []), w = d(() => V.value?.selectionRange ?? null), Z = d(() => {
6147
6160
  const e = V.value?.selectionRanges;
6148
6161
  return Array.isArray(e) && e.length > 0 ? e : w.value ? [w.value] : [];
6149
6162
  }), E = d(() => V.value?.isFillDragging === !0), X = d(() => ae.value.some((e) => Wt(e)));
@@ -6256,14 +6269,14 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6256
6269
  };
6257
6270
  if (!ct(r))
6258
6271
  return c;
6259
- const f = ct(r - 1), S = ct(r + 1);
6272
+ const f = ct(r - 1), _ = ct(r + 1);
6260
6273
  return {
6261
6274
  ...c,
6262
6275
  "grid-cell--index-selected": !0,
6263
- "grid-cell--index-selected-single": !f && !S,
6264
- "grid-cell--index-selected-top": !f && S,
6265
- "grid-cell--index-selected-middle": f && S,
6266
- "grid-cell--index-selected-bottom": f && !S
6276
+ "grid-cell--index-selected-single": !f && !_,
6277
+ "grid-cell--index-selected-top": !f && _,
6278
+ "grid-cell--index-selected-middle": f && _,
6279
+ "grid-cell--index-selected-bottom": f && !_
6267
6280
  };
6268
6281
  }
6269
6282
  function Ie(e, t, r, i) {
@@ -6289,8 +6302,8 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6289
6302
  const c = i.getBoundingClientRect();
6290
6303
  if (c.width <= 0)
6291
6304
  return !1;
6292
- const f = e.clientX - c.left, S = Math.min(24, Math.max(16, Math.floor(c.width * 0.22)));
6293
- return f >= c.width - S;
6305
+ const f = e.clientX - c.left, _ = Math.min(24, Math.max(16, Math.floor(c.width * 0.22)));
6306
+ return f >= c.width - _;
6294
6307
  }
6295
6308
  function Ye(e, t, r) {
6296
6309
  const i = t.kind === "group" ? "none" : Ct(t, r);
@@ -6302,8 +6315,8 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6302
6315
  const f = c.getBoundingClientRect();
6303
6316
  if (f.width <= 0)
6304
6317
  return !1;
6305
- const S = e.clientX - f.left, P = Math.min(24, Math.max(16, Math.floor(f.width * 0.22)));
6306
- return S >= f.width - P;
6318
+ const _ = e.clientX - f.left, P = Math.min(24, Math.max(16, Math.floor(f.width * 0.22)));
6319
+ return _ >= f.width - P;
6307
6320
  }
6308
6321
  function ne(e, t) {
6309
6322
  return et(e, t) ? 0 : -1;
@@ -6534,13 +6547,13 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6534
6547
  return r === "true" || r === "1" || r === "yes" || r === "on";
6535
6548
  }
6536
6549
  function Ua(e, t, r, i) {
6537
- const c = e.kind !== "group" ? Ct(e, r) : "none", f = v(e, t, r, i), S = sr(e, t, r, i);
6550
+ const c = e.kind !== "group" ? Ct(e, r) : "none", f = v(e, t, r, i), _ = sr(e, t, r, i);
6538
6551
  return {
6539
6552
  "grid-cell--checkbox": kr(e, r),
6540
6553
  "grid-cell--row-selection": qa(r),
6541
6554
  "grid-cell--select": f && c === "select",
6542
6555
  "grid-cell--date": f && (c === "date" || c === "datetime"),
6543
- "grid-cell--interactive": S !== null
6556
+ "grid-cell--interactive": _ !== null
6544
6557
  };
6545
6558
  }
6546
6559
  function sr(e, t, r, i) {
@@ -6640,7 +6653,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6640
6653
  if (!i)
6641
6654
  return;
6642
6655
  const c = Pe.value.get(i);
6643
- if (c && c.length === r.length && c.every((S, P) => S.value === r[P]?.value && S.label === r[P]?.label))
6656
+ if (c && c.length === r.length && c.every((_, P) => _.value === r[P]?.value && _.label === r[P]?.label))
6644
6657
  return;
6645
6658
  const f = new Map(Pe.value);
6646
6659
  f.set(i, [...r]), Pe.value = f;
@@ -6653,7 +6666,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6653
6666
  if (i.length === 0)
6654
6667
  return r;
6655
6668
  const c = nn(e, t);
6656
- return i.find((S) => S.value === String(c ?? ""))?.label ?? r;
6669
+ return i.find((_) => _.value === String(c ?? ""))?.label ?? r;
6657
6670
  }
6658
6671
  function mi(e) {
6659
6672
  return {
@@ -6661,11 +6674,11 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6661
6674
  };
6662
6675
  }
6663
6676
  function sn(e, t, r, i) {
6664
- const c = sa(e, r), f = mi(e), S = v(e, t, r, i), P = jn({
6677
+ const c = sa(e, r), f = mi(e), _ = v(e, t, r, i), P = jn({
6665
6678
  column: r.column,
6666
6679
  row: e.kind !== "group" ? e.data : void 0,
6667
6680
  rowId: e.rowId,
6668
- editable: S
6681
+ editable: _
6669
6682
  }), J = P ? {
6670
6683
  enabled: P.disabled !== !0,
6671
6684
  click: P.click,
@@ -6679,7 +6692,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6679
6692
  column: r.column,
6680
6693
  row: e.kind !== "group" ? e.data : void 0,
6681
6694
  rowId: e.rowId,
6682
- editable: S,
6695
+ editable: _,
6683
6696
  trigger: we ?? "click"
6684
6697
  })
6685
6698
  } : null;
@@ -6796,18 +6809,18 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6796
6809
  const f = e.currentTarget instanceof HTMLElement ? e.currentTarget : null;
6797
6810
  if (!f)
6798
6811
  return !1;
6799
- const S = f.getBoundingClientRect();
6800
- if (S.width <= 0 || S.height <= 0)
6812
+ const _ = f.getBoundingClientRect();
6813
+ if (_.width <= 0 || _.height <= 0)
6801
6814
  return !1;
6802
6815
  const P = Math.max(
6803
6816
  1,
6804
6817
  Math.min(
6805
6818
  Xs,
6806
- Math.floor(S.width / 2),
6807
- Math.floor(S.height / 2)
6819
+ Math.floor(_.width / 2),
6820
+ Math.floor(_.height / 2)
6808
6821
  )
6809
- ), J = e.clientX - S.left, me = e.clientY - S.top;
6810
- return me <= P && Tr(t, r, "top") || S.height - me <= P && Tr(t, r, "bottom") || J <= P && Tr(t, r, "left") || S.width - J <= P && Tr(t, r, "right");
6822
+ ), J = e.clientX - _.left, me = e.clientY - _.top;
6823
+ return me <= P && Tr(t, r, "top") || _.height - me <= P && Tr(t, r, "bottom") || J <= P && Tr(t, r, "left") || _.width - J <= P && Tr(t, r, "right");
6811
6824
  }
6812
6825
  function wn(e, t, r) {
6813
6826
  if (E.value || V.value.rangeMoveEnabled !== !0) {
@@ -6870,7 +6883,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6870
6883
  }
6871
6884
  return null;
6872
6885
  }
6873
- function Si(e) {
6886
+ function _i(e) {
6874
6887
  const t = `.grid-cell[data-row-index="${e}"]`;
6875
6888
  for (const r of [
6876
6889
  H.value,
@@ -6919,7 +6932,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6919
6932
  }
6920
6933
  o.value?.focus({ preventScroll: !0 });
6921
6934
  }
6922
- function _i() {
6935
+ function Si() {
6923
6936
  ga(), Nr(() => {
6924
6937
  ga(), typeof window < "u" && window.requestAnimationFrame(() => {
6925
6938
  ga();
@@ -6930,7 +6943,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6930
6943
  o.value = dt(e), R.value.bodyViewportRef(e), Qt(), An(), Ot();
6931
6944
  }
6932
6945
  function Mi(e) {
6933
- n.value = dt(e), Sn(), va();
6946
+ n.value = dt(e), _n(), va();
6934
6947
  }
6935
6948
  function Ai(e) {
6936
6949
  H.value = dt(e);
@@ -6987,7 +7000,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6987
7000
  const e = n.value;
6988
7001
  !e || e.scrollLeft === Tt.value || (e.scrollLeft = Tt.value);
6989
7002
  }
6990
- function Sn() {
7003
+ function _n() {
6991
7004
  ta.value = n.value?.clientHeight ?? 0;
6992
7005
  }
6993
7006
  function Qt() {
@@ -6996,12 +7009,12 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
6996
7009
  return;
6997
7010
  pa(e);
6998
7011
  const r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
6999
- ra.value = Math.max(0, r.top - i.top), hr.value = Fr()?.getBoundingClientRect().height ?? 0, ea.value = ca()?.clientWidth ?? Ft.value, Sn(), va();
7012
+ ra.value = Math.max(0, r.top - i.top), hr.value = Fr()?.getBoundingClientRect().height ?? 0, ea.value = ca()?.clientWidth ?? Ft.value, _n(), va();
7000
7013
  }
7001
7014
  function ma() {
7002
7015
  return typeof window > "u" ? 1 : Math.max(1, window.devicePixelRatio || 1);
7003
7016
  }
7004
- function _n(e) {
7017
+ function Sn(e) {
7005
7018
  if (typeof window > "u")
7006
7019
  return "";
7007
7020
  let t = s.value;
@@ -7014,30 +7027,30 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7014
7027
  return window.getComputedStyle(document.documentElement).getPropertyValue(e).trim();
7015
7028
  }
7016
7029
  function bt(e, t) {
7017
- return _n(e) || t;
7030
+ return Sn(e) || t;
7018
7031
  }
7019
7032
  function fa(e, t) {
7020
- const r = _n(e);
7033
+ const r = Sn(e);
7021
7034
  if (r.length === 0)
7022
7035
  return t;
7023
7036
  const i = Number.parseFloat(r);
7024
7037
  return Number.isFinite(i) && i >= 0 ? i : t;
7025
7038
  }
7026
- function St(e, t, r) {
7039
+ function _t(e, t, r) {
7027
7040
  if (!e || t <= 0 || r <= 0)
7028
7041
  return e && e.getContext("2d")?.clearRect(0, 0, e.width, e.height), null;
7029
7042
  const i = ma(), c = Math.max(1, Math.round(t * i)), f = Math.max(1, Math.round(r * i));
7030
7043
  e.width !== c && (e.width = c), e.height !== f && (e.height = f);
7031
- const S = e.getContext("2d");
7032
- return S ? (S.setTransform(i, 0, 0, i, 0, 0), S.clearRect(0, 0, t, r), S) : null;
7044
+ const _ = e.getContext("2d");
7045
+ return _ ? (_.setTransform(i, 0, 0, i, 0, 0), _.clearRect(0, 0, t, r), _) : null;
7033
7046
  }
7034
7047
  function Di(e, t, r, i) {
7035
7048
  if (t.width <= 0 || t.height <= 0 || i <= 0)
7036
7049
  return;
7037
7050
  const c = ma(), f = Aa(i, c);
7038
7051
  e.save(), e.strokeStyle = r, e.lineWidth = f, e.beginPath();
7039
- for (const S of t.horizontalLines) {
7040
- const P = qn(S.position, f, c);
7052
+ for (const _ of t.horizontalLines) {
7053
+ const P = qn(_.position, f, c);
7041
7054
  P < -f || P > t.height + f || (e.moveTo(0, P), e.lineTo(t.width, P));
7042
7055
  }
7043
7056
  e.stroke(), e.restore();
@@ -7090,8 +7103,8 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7090
7103
  const i = Li(r.kind);
7091
7104
  if (!i)
7092
7105
  continue;
7093
- const c = Math.round(r.top), f = Math.max(1, Math.round(r.height)), S = Math.max(0, c), J = Math.min(t.height, c + f) - S;
7094
- J <= 0 || (e.fillStyle = i, e.fillRect(0, S, t.width, J));
7106
+ const c = Math.round(r.top), f = Math.max(1, Math.round(r.height)), _ = Math.max(0, c), J = Math.min(t.height, c + f) - _;
7107
+ J <= 0 || (e.fillStyle = i, e.fillRect(0, _, t.width, J));
7095
7108
  }
7096
7109
  e.restore();
7097
7110
  }
@@ -7101,10 +7114,10 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7101
7114
  return;
7102
7115
  const c = ma(), f = Aa(i, c);
7103
7116
  e.save(), e.strokeStyle = r, e.lineWidth = f, e.beginPath();
7104
- for (const S of t.verticalLines) {
7105
- if (S.position <= 0.5 || S.position >= t.width - 0.5)
7117
+ for (const _ of t.verticalLines) {
7118
+ if (_.position <= 0.5 || _.position >= t.width - 0.5)
7106
7119
  continue;
7107
- const P = qn(S.position, f, c);
7120
+ const P = qn(_.position, f, c);
7108
7121
  P < -f || P > t.width + f || (e.moveTo(P, 0), e.lineTo(P, t.height));
7109
7122
  }
7110
7123
  e.stroke(), e.restore();
@@ -7117,52 +7130,52 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7117
7130
  }
7118
7131
  function Mn(e = "full") {
7119
7132
  Zt = 0, yr = "full";
7120
- const t = Ti.value, r = zi.value, i = bt("--datagrid-row-divider-color", "rgba(0, 0, 0, 0.08)"), c = bt("--datagrid-column-divider-color", "rgba(0, 0, 0, 0.08)"), f = bt("--datagrid-header-column-divider-color", c), S = fa("--datagrid-row-divider-size", 1), P = fa("--datagrid-column-divider-size", 1), J = fa("--datagrid-header-column-divider-size", P), me = e === "full" ? St(
7133
+ const t = Ti.value, r = zi.value, i = bt("--datagrid-row-divider-color", "rgba(0, 0, 0, 0.08)"), c = bt("--datagrid-column-divider-color", "rgba(0, 0, 0, 0.08)"), f = bt("--datagrid-header-column-divider-color", c), _ = fa("--datagrid-row-divider-size", 1), P = fa("--datagrid-column-divider-size", 1), J = fa("--datagrid-header-column-divider-size", P), me = e === "full" ? _t(
7121
7134
  Pr.value,
7122
7135
  t.left.width,
7123
7136
  t.left.height
7124
7137
  ) : null;
7125
7138
  me && ha(me, t.left, f, J);
7126
- const we = St(
7139
+ const we = _t(
7127
7140
  za.value,
7128
7141
  t.center.width,
7129
7142
  t.center.height
7130
7143
  );
7131
7144
  ha(we, t.center, f, J);
7132
- const Be = e === "full" ? St(
7145
+ const Be = e === "full" ? _t(
7133
7146
  Ta.value,
7134
7147
  t.right.width,
7135
7148
  t.right.height
7136
7149
  ) : null;
7137
7150
  Be && ha(Be, t.right, f, J);
7138
- const De = e === "full" ? St(Fa.value, r.left.width, r.left.height) : null;
7151
+ const De = e === "full" ? _t(Fa.value, r.left.width, r.left.height) : null;
7139
7152
  De && ur(
7140
7153
  De,
7141
7154
  r.left,
7142
7155
  i,
7143
- S,
7156
+ _,
7144
7157
  c,
7145
7158
  0
7146
7159
  );
7147
- const at = St(Oa.value, r.center.width, r.center.height);
7160
+ const at = _t(Oa.value, r.center.width, r.center.height);
7148
7161
  ur(
7149
7162
  at,
7150
7163
  r.center,
7151
7164
  i,
7152
- S,
7165
+ _,
7153
7166
  c,
7154
7167
  P
7155
7168
  );
7156
- const Le = e === "full" ? St($a.value, r.right.width, r.right.height) : null;
7169
+ const Le = e === "full" ? _t($a.value, r.right.width, r.right.height) : null;
7157
7170
  Le && ur(
7158
7171
  Le,
7159
7172
  r.right,
7160
7173
  i,
7161
- S,
7174
+ _,
7162
7175
  c,
7163
7176
  0
7164
7177
  );
7165
- const te = Oi.value, Ce = e === "full" ? St(
7178
+ const te = Oi.value, Ce = e === "full" ? _t(
7166
7179
  Va.value,
7167
7180
  te.left.width,
7168
7181
  te.left.height
@@ -7171,11 +7184,11 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7171
7184
  Ce,
7172
7185
  te.left,
7173
7186
  i,
7174
- S,
7187
+ _,
7175
7188
  c,
7176
7189
  0
7177
7190
  );
7178
- const tr = St(
7191
+ const tr = _t(
7179
7192
  Ha.value,
7180
7193
  te.center.width,
7181
7194
  te.center.height
@@ -7184,11 +7197,11 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7184
7197
  tr,
7185
7198
  te.center,
7186
7199
  i,
7187
- S,
7200
+ _,
7188
7201
  c,
7189
7202
  P
7190
7203
  );
7191
- const pr = e === "full" ? St(
7204
+ const pr = e === "full" ? _t(
7192
7205
  Ga.value,
7193
7206
  te.right.width,
7194
7207
  te.right.height
@@ -7197,7 +7210,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7197
7210
  pr,
7198
7211
  te.right,
7199
7212
  i,
7200
- S,
7213
+ _,
7201
7214
  c,
7202
7215
  0
7203
7216
  );
@@ -7299,7 +7312,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7299
7312
  const e = V.value.fillActionAnchorCell;
7300
7313
  if (!e)
7301
7314
  return null;
7302
- const t = Oe(), r = Oe() + Math.max(0, O.value.length - 1), i = w.value, c = i ? Math.min(i.startRow, i.endRow) : e.rowIndex, f = i ? Math.max(i.startRow, i.endRow) : e.rowIndex, S = i ? Math.min(i.startColumn, i.endColumn) : e.columnIndex, P = i ? Math.max(i.startColumn, i.endColumn) : e.columnIndex, J = Math.max(c, t), me = Math.min(f, r), we = J <= me ? $t(e.rowIndex, J, me) : e.rowIndex, Be = new Set((re.value ?? []).map((Le) => Le.key)), De = ae.value.map((Le, te) => ({ column: Le, columnIndex: te })).filter(({ column: Le, columnIndex: te }) => te < S || te > P ? !1 : Le.pin === "left" || Le.pin === "right" || Be.has(Le.key)).map(({ columnIndex: Le }) => Le), at = De.length > 0 ? $t(
7315
+ const t = Oe(), r = Oe() + Math.max(0, O.value.length - 1), i = w.value, c = i ? Math.min(i.startRow, i.endRow) : e.rowIndex, f = i ? Math.max(i.startRow, i.endRow) : e.rowIndex, _ = i ? Math.min(i.startColumn, i.endColumn) : e.columnIndex, P = i ? Math.max(i.startColumn, i.endColumn) : e.columnIndex, J = Math.max(c, t), me = Math.min(f, r), we = J <= me ? $t(e.rowIndex, J, me) : e.rowIndex, Be = new Set((re.value ?? []).map((Le) => Le.key)), De = ae.value.map((Le, te) => ({ column: Le, columnIndex: te })).filter(({ column: Le, columnIndex: te }) => te < _ || te > P ? !1 : Le.pin === "left" || Le.pin === "right" || Be.has(Le.key)).map(({ columnIndex: Le }) => Le), at = De.length > 0 ? $t(
7303
7316
  e.columnIndex,
7304
7317
  De[0] ?? e.columnIndex,
7305
7318
  De[De.length - 1] ?? e.columnIndex
@@ -7324,24 +7337,24 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7324
7337
  if (!r)
7325
7338
  return null;
7326
7339
  if (r.pin === "left") {
7327
- let S = Q.value;
7340
+ let _ = Q.value;
7328
7341
  for (const P of xe.value)
7329
- if (S += ie(P), P.key === r.key)
7342
+ if (_ += ie(P), P.key === r.key)
7330
7343
  break;
7331
7344
  return $t(
7332
- S - ot,
7345
+ _ - ot,
7333
7346
  qe,
7334
7347
  Math.max(qe, ee.value - ot - qe)
7335
7348
  );
7336
7349
  }
7337
7350
  if (r.pin === "right") {
7338
- let S = ee.value + Or.value;
7351
+ let _ = ee.value + Or.value;
7339
7352
  for (const J of pe.value)
7340
- if (S += ie(J), J.key === r.key)
7353
+ if (_ += ie(J), J.key === r.key)
7341
7354
  break;
7342
7355
  const P = ee.value + Or.value;
7343
7356
  return $t(
7344
- S - ot,
7357
+ _ - ot,
7345
7358
  P + qe,
7346
7359
  Math.max(
7347
7360
  P + qe,
@@ -7350,8 +7363,8 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7350
7363
  );
7351
7364
  }
7352
7365
  let i = ee.value - Tt.value;
7353
- for (const S of $i.value)
7354
- if (i += ie(S), S.key === r.key)
7366
+ for (const _ of $i.value)
7367
+ if (i += ie(_), _.key === r.key)
7355
7368
  break;
7356
7369
  const c = ee.value + qe, f = ee.value + Or.value - ot - qe;
7357
7370
  return $t(i - ot, c, f);
@@ -7372,10 +7385,10 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7372
7385
  e,
7373
7386
  t
7374
7387
  );
7375
- const f = h.value?.getBoundingClientRect(), S = i ? Si(i.rowIndex) : null;
7376
- if (!f || !S)
7388
+ const f = h.value?.getBoundingClientRect(), _ = i ? _i(i.rowIndex) : null;
7389
+ if (!f || !_)
7377
7390
  return t;
7378
- const J = S.getBoundingClientRect().bottom - f.top - ot - Ra;
7391
+ const J = _.getBoundingClientRect().bottom - f.top - ot - Ra;
7379
7392
  return $t(J, e, t);
7380
7393
  }
7381
7394
  const Dn = d(() => {
@@ -7390,7 +7403,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7390
7403
  He(
7391
7404
  () => V.value.fillPreviewRange,
7392
7405
  (e, t) => {
7393
- t && !e && _i();
7406
+ t && !e && Si();
7394
7407
  }
7395
7408
  ), He(
7396
7409
  () => V.value.fillActionAnchorCell ? `${V.value.fillActionAnchorCell.rowIndex}:${V.value.fillActionAnchorCell.columnIndex}` : "",
@@ -7500,7 +7513,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7500
7513
  }
7501
7514
  const cr = d(() => {
7502
7515
  const e = qi();
7503
- return p.value === "base" && _.value === "auto" ? (br.value, Fn(e)) : e;
7516
+ return p.value === "base" && S.value === "auto" ? (br.value, Fn(e)) : e;
7504
7517
  });
7505
7518
  function Ui() {
7506
7519
  return cr.value ?? [];
@@ -7653,12 +7666,12 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7653
7666
  const r = 0, i = ae.value.length - 1, c = Math.max(e.startColumn, r), f = Math.min(e.endColumn, i);
7654
7667
  if (c > f)
7655
7668
  return null;
7656
- let S = null, P = null;
7669
+ let _ = null, P = null;
7657
7670
  return t.forEach((J, me) => {
7658
7671
  const we = rt(J, me);
7659
- we < e.startRow || we > e.endRow || (S == null && (S = me), P = me);
7660
- }), S == null || P == null ? null : {
7661
- startRowOffset: S,
7672
+ we < e.startRow || we > e.endRow || (_ == null && (_ = me), P = me);
7673
+ }), _ == null || P == null ? null : {
7674
+ startRowOffset: _,
7662
7675
  endRowOffset: P,
7663
7676
  startColumnIndex: c,
7664
7677
  endColumnIndex: f
@@ -7667,10 +7680,10 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7667
7680
  function ya(e) {
7668
7681
  return $n(e, O.value);
7669
7682
  }
7670
- function Sr(e) {
7683
+ function _r(e) {
7671
7684
  return $n(e, $.value);
7672
7685
  }
7673
- function _r(e, t = cr.value) {
7686
+ function Sr(e, t = cr.value) {
7674
7687
  if (!e)
7675
7688
  return null;
7676
7689
  const r = t[e.startRowOffset], i = t[e.endRowOffset];
@@ -7689,15 +7702,15 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7689
7702
  } : e : t;
7690
7703
  }
7691
7704
  function xa(e, t, r, i, c, f) {
7692
- const S = Math.max(0, f?.topBleed ?? 1), P = Math.max(0, f?.bottomBleed ?? 1), J = f?.omitLeftBorder ? 0 : Math.max(0, f?.leftBleed ?? 1), me = f?.omitRightBorder ? 0 : Math.max(0, f?.rightBleed ?? 1);
7705
+ const _ = Math.max(0, f?.topBleed ?? 1), P = Math.max(0, f?.bottomBleed ?? 1), J = f?.omitLeftBorder ? 0 : Math.max(0, f?.leftBleed ?? 1), me = f?.omitRightBorder ? 0 : Math.max(0, f?.rightBleed ?? 1);
7693
7706
  return {
7694
7707
  key: e,
7695
7708
  style: {
7696
7709
  position: "absolute",
7697
- top: `${t - S}px`,
7710
+ top: `${t - _}px`,
7698
7711
  left: `${r - J}px`,
7699
7712
  width: `${Math.max(1, i + J + me)}px`,
7700
- height: `${Math.max(1, c + S + P)}px`,
7713
+ height: `${Math.max(1, c + _ + P)}px`,
7701
7714
  border: `${f?.hideBorder ? 0 : 2}px ${f?.borderStyle ?? "solid"} ${f?.borderColor ?? "var(--datagrid-selection-overlay-border)"}`,
7702
7715
  borderLeftWidth: f?.hideBorder || f?.omitLeftBorder ? "0px" : "2px",
7703
7716
  borderRightWidth: f?.hideBorder || f?.omitRightBorder ? "0px" : "2px",
@@ -7715,7 +7728,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7715
7728
  };
7716
7729
  }
7717
7730
  function Hn(e, t, r, i, c) {
7718
- const f = Math.max(0, c?.topBleed ?? 1), S = Math.max(0, c?.bottomBleed ?? 1);
7731
+ const f = Math.max(0, c?.topBleed ?? 1), _ = Math.max(0, c?.bottomBleed ?? 1);
7719
7732
  return {
7720
7733
  key: e,
7721
7734
  style: {
@@ -7723,7 +7736,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7723
7736
  top: `${t - f}px`,
7724
7737
  left: i === "left" ? "calc(100% - var(--datagrid-pinned-pane-separator-size))" : "0px",
7725
7738
  width: "var(--datagrid-pinned-pane-separator-size)",
7726
- height: `${Math.max(1, r + f + S)}px`,
7739
+ height: `${Math.max(1, r + f + _)}px`,
7727
7740
  border: `${c?.hideBorder ? 0 : 2}px ${c?.borderStyle ?? "solid"} ${c?.borderColor ?? "var(--datagrid-selection-overlay-border)"}`,
7728
7741
  borderLeftWidth: "0px",
7729
7742
  borderRightWidth: "0px",
@@ -7736,12 +7749,12 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7736
7749
  }
7737
7750
  };
7738
7751
  }
7739
- function _t(e, t, r, i, c = Math.max(0, ft.value)) {
7752
+ function St(e, t, r, i, c = Math.max(0, ft.value)) {
7740
7753
  if (!e)
7741
7754
  return [];
7742
7755
  if (i?.hideSingleCell === !0 && e.startRowOffset === e.endRowOffset && e.startColumnIndex === e.endColumnIndex)
7743
7756
  return [];
7744
- const S = e.top <= 0 ? 0 : 1, P = c > 0 && e.top + e.height >= c ? 0 : 1;
7757
+ const _ = e.top <= 0 ? 0 : 1, P = c > 0 && e.top + e.height >= c ? 0 : 1;
7745
7758
  if (t === "left") {
7746
7759
  const we = xe.value.filter((De) => {
7747
7760
  const at = Ee(De.key);
@@ -7757,7 +7770,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7757
7770
  e.height,
7758
7771
  "left",
7759
7772
  {
7760
- topBleed: S,
7773
+ topBleed: _,
7761
7774
  bottomBleed: P,
7762
7775
  borderColor: i?.borderColor,
7763
7776
  backgroundColor: i?.backgroundColor,
@@ -7781,7 +7794,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7781
7794
  e.height,
7782
7795
  "right",
7783
7796
  {
7784
- topBleed: S,
7797
+ topBleed: _,
7785
7798
  bottomBleed: P,
7786
7799
  borderColor: i?.borderColor,
7787
7800
  backgroundColor: i?.backgroundColor,
@@ -7797,7 +7810,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7797
7810
  const f = i?.hideSingleCell === !0 && e.startRowOffset === e.endRowOffset && e.startColumnIndex === e.endColumnIndex;
7798
7811
  if (f)
7799
7812
  return [];
7800
- const S = e.top <= 0 ? 0 : 1, P = c > 0 && e.top + e.height >= c ? 0 : 1;
7813
+ const _ = e.top <= 0 ? 0 : 1, P = c > 0 && e.top + e.height >= c ? 0 : 1;
7801
7814
  if (t === "left") {
7802
7815
  const te = xe.value.filter((Vt) => {
7803
7816
  const nt = Ee(Vt.key);
@@ -7822,7 +7835,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7822
7835
  {
7823
7836
  hideBorder: f,
7824
7837
  omitRightBorder: e.endColumnIndex > pr,
7825
- topBleed: S,
7838
+ topBleed: _,
7826
7839
  bottomBleed: P,
7827
7840
  leftBleed: Wr,
7828
7841
  rightBleed: wa,
@@ -7862,7 +7875,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7862
7875
  hideBorder: f,
7863
7876
  omitLeftBorder: e.startColumnIndex < pr,
7864
7877
  omitRightBorder: e.endColumnIndex > Kr,
7865
- topBleed: S,
7878
+ topBleed: _,
7866
7879
  bottomBleed: P,
7867
7880
  leftBleed: wa,
7868
7881
  rightBleed: Vt,
@@ -7897,7 +7910,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7897
7910
  {
7898
7911
  hideBorder: f,
7899
7912
  omitLeftBorder: e.startColumnIndex < Be,
7900
- topBleed: S,
7913
+ topBleed: _,
7901
7914
  bottomBleed: P,
7902
7915
  leftBleed: at,
7903
7916
  rightBleed: Le,
@@ -7910,22 +7923,22 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7910
7923
  ];
7911
7924
  }
7912
7925
  function Vr(e, t, r = cr.value) {
7913
- return e.map((i) => _r(t(i), r)).filter((i) => i != null);
7926
+ return e.map((i) => Sr(t(i), r)).filter((i) => i != null);
7914
7927
  }
7915
7928
  function er(e, t, r, i, c = Math.max(0, ft.value)) {
7916
- return e.length === 0 ? [] : e.flatMap((f, S) => Ve(
7929
+ return e.length === 0 ? [] : e.flatMap((f, _) => Ve(
7917
7930
  f,
7918
7931
  t,
7919
- e.length === 1 ? r : `${r}-${S}`,
7932
+ e.length === 1 ? r : `${r}-${_}`,
7920
7933
  i,
7921
7934
  c
7922
7935
  ));
7923
7936
  }
7924
7937
  function Rr(e, t, r, i, c = Math.max(0, ft.value)) {
7925
- return e.length === 0 ? [] : e.flatMap((f, S) => _t(
7938
+ return e.length === 0 ? [] : e.flatMap((f, _) => St(
7926
7939
  f,
7927
7940
  t,
7928
- e.length === 1 ? r : `${r}-${S}`,
7941
+ e.length === 1 ? r : `${r}-${_}`,
7929
7942
  i,
7930
7943
  c
7931
7944
  ));
@@ -7978,7 +7991,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
7978
7991
  body: Vr(e.ranges, ya),
7979
7992
  pinnedBottom: Vr(
7980
7993
  e.ranges,
7981
- Sr,
7994
+ _r,
7982
7995
  Jt.value
7983
7996
  )
7984
7997
  }))), go = d(() => yt.value.map(({ overlay: e, body: t }) => gr(e, "left", t)).filter((e) => e != null)), po = d(() => yt.value.map(({ overlay: e, body: t }) => gr(e, "center", t)).filter((e) => e != null)), vo = d(() => yt.value.map(({ overlay: e, body: t }) => gr(e, "right", t)).filter((e) => e != null)), mo = d(() => yt.value.map(({ overlay: e, body: t }) => Hr(e, "left", t)).filter((e) => e != null)), fo = d(() => yt.value.map(({ overlay: e, body: t }) => Hr(e, "right", t)).filter((e) => e != null)), ho = d(() => yt.value.map(({ overlay: e, pinnedBottom: t }) => gr(
@@ -8006,18 +8019,18 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8006
8019
  "right",
8007
8020
  t,
8008
8021
  n.value?.clientHeight ?? 0
8009
- )).filter((e) => e != null)), Gn = d(() => !V.value.isRangeMoving || !V.value.rangeMovePreviewRange || uo(V.value.rangeMovePreviewRange, w.value) ? null : V.value.rangeMovePreviewRange), ko = d(() => $r.value ? Vn(oo.value, $r.value) : null), Mr = d(() => $r.value ? [] : Vr(Z.value, ya)), Ar = d(() => _r(ko.value)), Ir = d(() => _r(ya(Gn.value))), Er = d(() => $r.value ? [] : Vr(
8022
+ )).filter((e) => e != null)), Gn = d(() => !V.value.isRangeMoving || !V.value.rangeMovePreviewRange || uo(V.value.rangeMovePreviewRange, w.value) ? null : V.value.rangeMovePreviewRange), ko = d(() => $r.value ? Vn(oo.value, $r.value) : null), Mr = d(() => $r.value ? [] : Vr(Z.value, ya)), Ar = d(() => Sr(ko.value)), Ir = d(() => Sr(ya(Gn.value))), Er = d(() => $r.value ? [] : Vr(
8010
8023
  Z.value,
8011
- Sr,
8024
+ _r,
8012
8025
  Jt.value
8013
- )), Br = d(() => _r(
8026
+ )), Br = d(() => Sr(
8014
8027
  Vn(
8015
- Sr(w.value),
8016
- Sr(V.value.fillPreviewRange)
8028
+ _r(w.value),
8029
+ _r(V.value.fillPreviewRange)
8017
8030
  ),
8018
8031
  Jt.value
8019
- )), Dr = d(() => _r(
8020
- Sr(Gn.value),
8032
+ )), Dr = d(() => Sr(
8033
+ _r(Gn.value),
8021
8034
  Jt.value
8022
8035
  )), Co = d(() => er(
8023
8036
  Mr.value,
@@ -8027,7 +8040,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8027
8040
  borderColor: "var(--datagrid-selection-overlay-border)",
8028
8041
  hideSingleCell: !0
8029
8042
  }
8030
- )), So = d(() => Rr(
8043
+ )), _o = d(() => Rr(
8031
8044
  Mr.value,
8032
8045
  "left",
8033
8046
  "selection",
@@ -8035,7 +8048,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8035
8048
  borderColor: "var(--datagrid-selection-overlay-border)",
8036
8049
  hideSingleCell: !0
8037
8050
  }
8038
- )), _o = d(() => er(
8051
+ )), So = d(() => er(
8039
8052
  Mr.value,
8040
8053
  "center",
8041
8054
  "selection",
@@ -8107,7 +8120,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8107
8120
  )), Lo = d(() => Ve(Ar.value, "left", "fill-preview", {
8108
8121
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8109
8122
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8110
- })), Po = d(() => _t(Ar.value, "left", "fill-preview", {
8123
+ })), Po = d(() => St(Ar.value, "left", "fill-preview", {
8111
8124
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8112
8125
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8113
8126
  })), zo = d(() => Ve(Ar.value, "center", "fill-preview", {
@@ -8116,13 +8129,13 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8116
8129
  })), To = d(() => Ve(Ar.value, "right", "fill-preview", {
8117
8130
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8118
8131
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8119
- })), Fo = d(() => _t(Ar.value, "right", "fill-preview", {
8132
+ })), Fo = d(() => St(Ar.value, "right", "fill-preview", {
8120
8133
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8121
8134
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8122
8135
  })), Oo = d(() => Ve(Br.value, "left", "fill-preview", {
8123
8136
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8124
8137
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8125
- }, n.value?.clientHeight ?? 0)), $o = d(() => _t(Br.value, "left", "fill-preview", {
8138
+ }, n.value?.clientHeight ?? 0)), $o = d(() => St(Br.value, "left", "fill-preview", {
8126
8139
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8127
8140
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8128
8141
  }, n.value?.clientHeight ?? 0)), Vo = d(() => Ve(Br.value, "center", "fill-preview", {
@@ -8131,14 +8144,14 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8131
8144
  }, n.value?.clientHeight ?? 0)), Ho = d(() => Ve(Br.value, "right", "fill-preview", {
8132
8145
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8133
8146
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8134
- }, n.value?.clientHeight ?? 0)), Go = d(() => _t(Br.value, "right", "fill-preview", {
8147
+ }, n.value?.clientHeight ?? 0)), Go = d(() => St(Br.value, "right", "fill-preview", {
8135
8148
  borderColor: "var(--datagrid-selection-overlay-fill-border)",
8136
8149
  backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
8137
8150
  }, n.value?.clientHeight ?? 0)), Ko = d(() => Ve(Ir.value, "left", "move-preview", {
8138
8151
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8139
8152
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8140
8153
  borderStyle: "dashed"
8141
- })), Wo = d(() => _t(Ir.value, "left", "move-preview", {
8154
+ })), Wo = d(() => St(Ir.value, "left", "move-preview", {
8142
8155
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8143
8156
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8144
8157
  borderStyle: "dashed"
@@ -8150,7 +8163,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8150
8163
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8151
8164
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8152
8165
  borderStyle: "dashed"
8153
- })), qo = d(() => _t(Ir.value, "right", "move-preview", {
8166
+ })), qo = d(() => St(Ir.value, "right", "move-preview", {
8154
8167
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8155
8168
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8156
8169
  borderStyle: "dashed"
@@ -8158,7 +8171,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8158
8171
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8159
8172
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8160
8173
  borderStyle: "dashed"
8161
- }, n.value?.clientHeight ?? 0)), Xo = d(() => _t(Dr.value, "left", "move-preview", {
8174
+ }, n.value?.clientHeight ?? 0)), Xo = d(() => St(Dr.value, "left", "move-preview", {
8162
8175
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8163
8176
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8164
8177
  borderStyle: "dashed"
@@ -8170,7 +8183,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8170
8183
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8171
8184
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8172
8185
  borderStyle: "dashed"
8173
- }, n.value?.clientHeight ?? 0)), Qo = d(() => _t(Dr.value, "right", "move-preview", {
8186
+ }, n.value?.clientHeight ?? 0)), Qo = d(() => St(Dr.value, "right", "move-preview", {
8174
8187
  borderColor: "var(--datagrid-selection-overlay-move-border)",
8175
8188
  backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
8176
8189
  borderStyle: "dashed"
@@ -8311,7 +8324,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8311
8324
  fillPreviewOverlaySegments: Lo.value,
8312
8325
  movePreviewOverlaySegments: Ko.value,
8313
8326
  overlayLanes: go.value,
8314
- selectionSeamOverlaySegments: So.value,
8327
+ selectionSeamOverlaySegments: _o.value,
8315
8328
  fillPreviewSeamOverlaySegments: Po.value,
8316
8329
  movePreviewSeamOverlaySegments: Wo.value,
8317
8330
  seamOverlayLanes: mo.value
@@ -8394,7 +8407,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8394
8407
  ref: s,
8395
8408
  class: Y(["grid-stage", {
8396
8409
  "grid-stage--canvas-chrome": !0,
8397
- "grid-stage--auto-row-height": l(p) === "base" && l(_) === "auto",
8410
+ "grid-stage--auto-row-height": l(p) === "base" && l(S) === "auto",
8398
8411
  "grid-stage--layout-fill": l(y) === "fill",
8399
8412
  "grid-stage--layout-auto-height": l(y) === "auto-height",
8400
8413
  "grid-stage--fill-dragging": E.value,
@@ -8403,7 +8416,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8403
8416
  }]),
8404
8417
  style: T(l(G).stageStyle)
8405
8418
  }, [
8406
- Se(ys, {
8419
+ _e(ys, {
8407
8420
  "pane-layout-style": Ut.value,
8408
8421
  "left-pane-style": ye.value,
8409
8422
  "right-pane-style": Lt.value,
@@ -8454,7 +8467,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8454
8467
  style: T(Qr.value),
8455
8468
  "aria-hidden": "true"
8456
8469
  }, null, 4),
8457
- Se(Ur, {
8470
+ _e(Ur, {
8458
8471
  pane: Jo.value,
8459
8472
  "render-api": Gr,
8460
8473
  "handle-context-menu": a.onViewportContextMenu
@@ -8469,19 +8482,19 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8469
8482
  ]),
8470
8483
  _: 1
8471
8484
  }, 8, ["pane", "handle-context-menu"]),
8472
- Se(Nn, {
8485
+ _e(Nn, {
8473
8486
  "display-rows": l(g).displayRows,
8474
8487
  "top-spacer-height": l(R).topSpacerHeight,
8475
8488
  "bottom-spacer-height": l(R).bottomSpacerHeight,
8476
8489
  "viewport-ref": Ri,
8477
8490
  "handle-context-menu": a.onViewportContextMenu,
8478
- "selection-overlay-segments": _o.value,
8491
+ "selection-overlay-segments": So.value,
8479
8492
  "fill-preview-overlay-segments": zo.value,
8480
8493
  "move-preview-overlay-segments": jo.value,
8481
8494
  "overlay-lanes": po.value,
8482
8495
  "render-api": Kn
8483
8496
  }, null, 8, ["display-rows", "top-spacer-height", "bottom-spacer-height", "handle-context-menu", "selection-overlay-segments", "fill-preview-overlay-segments", "move-preview-overlay-segments", "overlay-lanes"]),
8484
- Se(Ur, {
8497
+ _e(Ur, {
8485
8498
  pane: el.value,
8486
8499
  "render-api": Gr,
8487
8500
  "handle-context-menu": a.onViewportContextMenu
@@ -8496,7 +8509,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8496
8509
  ]),
8497
8510
  _: 1
8498
8511
  }, 8, ["pane", "handle-context-menu"]),
8499
- Se(Is, {
8512
+ _e(Is, {
8500
8513
  "is-open": mt.value,
8501
8514
  style: T(Dn.value),
8502
8515
  onToggle: kt,
@@ -8516,7 +8529,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8516
8529
  style: T(or.value),
8517
8530
  "aria-hidden": "true"
8518
8531
  }, null, 4),
8519
- Se(Ur, {
8532
+ _e(Ur, {
8520
8533
  pane: tl.value,
8521
8534
  "render-api": Gr,
8522
8535
  "handle-context-menu": a.onViewportContextMenu
@@ -8531,7 +8544,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8531
8544
  ]),
8532
8545
  _: 1
8533
8546
  }, 8, ["pane", "handle-context-menu"]),
8534
- Se(Nn, {
8547
+ _e(Nn, {
8535
8548
  "display-rows": l(g).pinnedBottomRows,
8536
8549
  "viewport-class": "grid-body-viewport grid-body-viewport--pinned-bottom",
8537
8550
  "viewport-ref": Mi,
@@ -8545,7 +8558,7 @@ const qs = "dgPerfTrace", Us = "affino-datagrid-perf-trace", _a = "__AFFINO_DATA
8545
8558
  "overlay-lanes": bo.value,
8546
8559
  "render-api": Kn
8547
8560
  }, null, 8, ["display-rows", "handle-context-menu", "selection-overlay-segments", "fill-preview-overlay-segments", "move-preview-overlay-segments", "overlay-lanes"]),
8548
- Se(Ur, {
8561
+ _e(Ur, {
8549
8562
  pane: rl.value,
8550
8563
  "render-api": Gr,
8551
8564
  "handle-context-menu": a.onViewportContextMenu