@owp/core 2.5.37 → 2.5.38

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,15 +1,15 @@
1
1
  var Sn = Object.defineProperty;
2
2
  var o = (e, n) => Sn(e, "name", { value: n, configurable: !0 });
3
3
  import { getTreeGridTextResourceUrl as hn, TREEGRID_CELL_CHANGED_CLASS as Me, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Rn } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as Q, getTreeGridCellComparableValue as fe, clearTreeGridCellHighlightById as Xe, highlightTreeGridCellById as We, normalizeTreeGridExternalRows as An, getTreeGridAddedRowBaselineValue as gn, removeTreeGridAddedRowHighlightColumn as _n, appendTreeGridAddedRowHighlightColumn as mn } from "../../../utils/treeGridUtil.js";
4
+ import { isTreeGridRowAddedById as I, getTreeGridAddedRowHighlightColumns as q, getTreeGridCellComparableValue as ue, clearTreeGridCellHighlightById as Xe, highlightTreeGridCellById as We, normalizeTreeGridExternalRows as An, getTreeGridAddedRowBaselineValue as gn, removeTreeGridAddedRowHighlightColumn as _n, appendTreeGridAddedRowHighlightColumn as mn } from "../../../utils/treeGridUtil.js";
5
5
  import { applyTreeGridLayoutToGrid as Ln } from "./treeGridLayout.js";
6
6
  import { resolveTreeGridSelectedRows as On } from "./treeGridSelection.js";
7
- import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as xn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as me, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Le, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Oe, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as xe, TREE_GRID_THEME_WRAPPER_CLASS as In, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as wn, TREE_GRID_ERROR_CELL_CLASS as bn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Dn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as yn } from "./treeGridTheme.js";
7
+ import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as xn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as _e, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as me, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Le, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as Oe, TREE_GRID_THEME_WRAPPER_CLASS as wn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as In, TREE_GRID_ERROR_CELL_CLASS as bn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Dn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as yn } from "./treeGridTheme.js";
8
8
  import { countTreeGridPerf as Je, logTreeGridPerf as Pn, measureTreeGridPerf as Ke } from "./utils/perf.js";
9
9
  import { debounce as Y } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
10
  import { isEmpty as $n } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
- import { get as vn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
- const yr = 300, Fn = 3, Bn = {
11
+ import { get as Fn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
+ const Dr = 300, vn = 3, Bn = {
13
13
  1: {
14
14
  onEnter: "TabDownEdit",
15
15
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -30,7 +30,7 @@ const yr = 300, Fn = 3, Bn = {
30
30
  [255, 210, 210],
31
31
  [249, 209, 209],
32
32
  [115, 16, 11]
33
- ], Wn = "transparent", Ie = "Button", Jn = /* @__PURE__ */ new Set(["Panel"]), we = Me.split(/\s+/).filter(
33
+ ], Wn = "transparent", xe = "Button", Jn = /* @__PURE__ */ new Set(["Panel"]), we = Me.split(/\s+/).filter(
34
34
  Boolean
35
35
  ), Kn = /* @__PURE__ */ new Set([
36
36
  "Text",
@@ -39,7 +39,7 @@ const yr = 300, Fn = 3, Bn = {
39
39
  "Float",
40
40
  "Date",
41
41
  "Pass"
42
- ]), be = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), jn = {
42
+ ]), Ie = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), jn = {
43
43
  Visible: "1",
44
44
  CanHide: "0",
45
45
  Delete: "1",
@@ -77,10 +77,10 @@ const yr = 300, Fn = 3, Bn = {
77
77
  "UndeleteVisibleRowsChildren"
78
78
  ],
79
79
  selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
80
- }, ee = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), y = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ne = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), et = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), N = /* @__PURE__ */ o((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), ae = /* @__PURE__ */ o((e, n) => !y(e) && !ne(n), "isTreeGridCheckboxSelectionMode"), ze = /* @__PURE__ */ o((e) => {
80
+ }, Q = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), y = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ee = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), et = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), N = /* @__PURE__ */ o((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), fe = /* @__PURE__ */ o((e, n) => !y(e) && !ee(n), "isTreeGridCheckboxSelectionMode"), ze = /* @__PURE__ */ o((e) => {
81
81
  const n = e.Cfg;
82
82
  return Array.isArray(n) ? n.filter(A) : A(n) ? [n] : [];
83
- }, "getTreeGridJsonCfgRecords"), te = /* @__PURE__ */ o((e, n) => {
83
+ }, "getTreeGridJsonCfgRecords"), ne = /* @__PURE__ */ o((e, n) => {
84
84
  let t;
85
85
  return ze(e).forEach((r) => {
86
86
  n in r && (t = r[n]);
@@ -95,20 +95,20 @@ const yr = 300, Fn = 3, Bn = {
95
95
  return `${e.slice(0, r)} ${n}="${Ze(
96
96
  t
97
97
  )}"${e.slice(r)}`;
98
- }, "appendTreeGridXmlTagAttribute"), re = /* @__PURE__ */ o((e, n, t) => B(e, n) ? e.replace(
98
+ }, "appendTreeGridXmlTagAttribute"), te = /* @__PURE__ */ o((e, n, t) => B(e, n) ? e.replace(
99
99
  new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
100
100
  () => `${n}="${Ze(t)}"`
101
101
  ) : k(e, n, t), "setTreeGridXmlTagAttribute"), qe = /* @__PURE__ */ o((e, n) => {
102
102
  let t = e;
103
103
  return Object.entries(n).forEach(([r, i]) => {
104
- t = re(t, r, i);
104
+ t = te(t, r, i);
105
105
  }), t;
106
106
  }, "setTreeGridXmlTagAttributes"), j = /* @__PURE__ */ o((e, n) => {
107
107
  let t = e;
108
108
  return Object.entries(n).forEach(([r, i]) => {
109
109
  B(t, r) || (t = k(t, r, i));
110
110
  }), t;
111
- }, "appendMissingTreeGridXmlTagAttributes"), I = /* @__PURE__ */ o((e) => {
111
+ }, "appendMissingTreeGridXmlTagAttributes"), w = /* @__PURE__ */ o((e) => {
112
112
  var f;
113
113
  const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
114
114
  cfgValues: {}
@@ -132,9 +132,9 @@ const yr = 300, Fn = 3, Bn = {
132
132
  i === 1 && (C === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
133
133
  index: r.index,
134
134
  tag: a
135
- }), qn.forEach((R) => {
136
- const m = Ye(a, R);
137
- m !== void 0 && (t.cfgValues[R] = m);
135
+ }), qn.forEach((h) => {
136
+ const m = Ye(a, h);
137
+ m !== void 0 && (t.cfgValues[h] = m);
138
138
  }), t.lastCfgEndIndex = r.index + a.length) : C === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
139
139
  index: r.index,
140
140
  tag: a
@@ -220,12 +220,12 @@ const yr = 300, Fn = 3, Bn = {
220
220
  );
221
221
  return n ? st(
222
222
  t,
223
- I(t)
223
+ w(t)
224
224
  ) : e;
225
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Qe = /* @__PURE__ */ o((e) => ae(
226
- te(e, "Selecting"),
227
- te(e, "SelectingSingle")
228
- ), "isTreeGridJsonCheckboxSelectionLayout"), en = /* @__PURE__ */ o((e) => ae(
225
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Qe = /* @__PURE__ */ o((e) => fe(
226
+ ne(e, "Selecting"),
227
+ ne(e, "SelectingSingle")
228
+ ), "isTreeGridJsonCheckboxSelectionLayout"), en = /* @__PURE__ */ o((e) => fe(
229
229
  e.Selecting,
230
230
  e.SelectingSingle
231
231
  ), "isTreeGridXmlCheckboxSelectionLayout"), nn = /* @__PURE__ */ o((e) => !y(e.Selecting), "isTreeGridXmlSelectingLayout"), tn = /* @__PURE__ */ o((e) => N(e.Undo, "1") && N(e.Deleting, "2") && N(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), lt = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), dt = /* @__PURE__ */ o((e, n) => {
@@ -331,15 +331,15 @@ const yr = 300, Fn = 3, Bn = {
331
331
  }, "applyTreeGridJsonCellClickActionDefault"), St = /* @__PURE__ */ o((e) => {
332
332
  try {
333
333
  const n = JSON.parse(e);
334
- return !A(n) || y(te(n, "Selecting")) ? e : (Gt(n), JSON.stringify(n));
334
+ return !A(n) || y(ne(n, "Selecting")) ? e : (Gt(n), JSON.stringify(n));
335
335
  } catch {
336
336
  return e;
337
337
  }
338
- }, "applyTreeGridJsonDefaultCellClickActionLayout"), De = /* @__PURE__ */ o((e, n) => {
338
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), be = /* @__PURE__ */ o((e, n) => {
339
339
  const t = e.trim();
340
340
  return t ? t.startsWith("{") ? St(e) : dt(
341
341
  e,
342
- n ?? I(e)
342
+ n ?? w(e)
343
343
  ) : e;
344
344
  }, "applyTreeGridDefaultCellClickActionLayout"), ht = /* @__PURE__ */ o((e) => {
345
345
  try {
@@ -348,11 +348,11 @@ const yr = 300, Fn = 3, Bn = {
348
348
  } catch {
349
349
  return e;
350
350
  }
351
- }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), ye = /* @__PURE__ */ o((e, n) => {
351
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), De = /* @__PURE__ */ o((e, n) => {
352
352
  const t = e.trim();
353
353
  return t ? t.startsWith("{") ? ht(e) : ft(
354
354
  e,
355
- n ?? I(e)
355
+ n ?? w(e)
356
356
  ) : e;
357
357
  }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Rt = /* @__PURE__ */ o((e, n) => {
358
358
  if (n === void 0)
@@ -385,7 +385,7 @@ const yr = 300, Fn = 3, Bn = {
385
385
  const t = e.trim();
386
386
  return n === void 0 || !t ? e : t.startsWith("{") ? Rt(e, n) : At(
387
387
  e,
388
- I(e),
388
+ w(e),
389
389
  n
390
390
  );
391
391
  }, "applyTreeGridDefaultSuppressCfgLayout"), _t = /* @__PURE__ */ o((e) => He.some((n) => n in e), "hasTreeGridToolbarFormulaField"), mt = /* @__PURE__ */ o((e) => {
@@ -415,7 +415,7 @@ const yr = 300, Fn = 3, Bn = {
415
415
  const f = t[0];
416
416
  if (Ot(f))
417
417
  return e;
418
- const a = re(
418
+ const a = te(
419
419
  f,
420
420
  "Formula",
421
421
  n
@@ -424,7 +424,7 @@ const yr = 300, Fn = 3, Bn = {
424
424
  t.index + f.length
425
425
  )}`;
426
426
  }
427
- const r = re(
427
+ const r = te(
428
428
  "<Toolbar />",
429
429
  "Formula",
430
430
  n
@@ -440,24 +440,24 @@ ${e.slice(
440
440
  c.index + c[0].length
441
441
  )}
442
442
  ${r}${e.slice(c.index + c[0].length)}` : e;
443
- }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), It = /* @__PURE__ */ o((e, n) => {
443
+ }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), wt = /* @__PURE__ */ o((e, n) => {
444
444
  const t = e.trim();
445
445
  return !n || !t ? e : t.startsWith("{") ? Lt(
446
446
  e,
447
447
  n
448
448
  ) : xt(e, n);
449
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), wt = /* @__PURE__ */ o((e) => {
449
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), It = /* @__PURE__ */ o((e) => {
450
450
  try {
451
451
  const n = JSON.parse(e);
452
452
  return !A(n) || !Qe(n) ? e : (Et(n), JSON.stringify(n));
453
453
  } catch {
454
454
  return e;
455
455
  }
456
- }, "applyTreeGridJsonDefaultFastPanelLayout"), Pe = /* @__PURE__ */ o((e, n) => {
456
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), ye = /* @__PURE__ */ o((e, n) => {
457
457
  const t = e.trim();
458
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : wt(e) : Ct(
458
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : It(e) : Ct(
459
459
  e,
460
- n ?? I(e)
460
+ n ?? w(e)
461
461
  ) : e;
462
462
  }, "applyTreeGridDefaultFastPanelLayout"), bt = /* @__PURE__ */ o((e) => {
463
463
  const n = {};
@@ -487,7 +487,7 @@ ${e.slice(
487
487
  return e;
488
488
  }
489
489
  }, "applyTreeGridJsonDisabledAnimationsLayout"), yt = /* @__PURE__ */ o((e) => qe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), Pt = /* @__PURE__ */ o((e, n) => {
490
- const t = I(e);
490
+ const t = w(e);
491
491
  if (t.gridOpenTagEndIndex === void 0)
492
492
  return e;
493
493
  const r = t.animationsTag;
@@ -502,38 +502,38 @@ ${e.slice(
502
502
  ${yt(
503
503
  n
504
504
  )}${e.slice(i)}`;
505
- }, "applyTreeGridXmlDisabledAnimationsLayout"), $e = /* @__PURE__ */ o((e, n) => {
505
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), Pe = /* @__PURE__ */ o((e, n) => {
506
506
  const t = bt(n);
507
507
  if (!Object.keys(t).length)
508
508
  return e;
509
509
  const r = e.trim();
510
510
  return r ? r.startsWith("{") ? Dt(e, t) : Pt(e, t) : e;
511
- }, "applyTreeGridDisabledAnimationsLayout"), ie = /* @__PURE__ */ o((e, n, t, r) => {
512
- const i = It(
511
+ }, "applyTreeGridDisabledAnimationsLayout"), re = /* @__PURE__ */ o((e, n, t, r) => {
512
+ const i = wt(
513
513
  ct(
514
514
  gt(e, r)
515
515
  ),
516
516
  t
517
517
  ), c = i.trim();
518
518
  if (!c || c.startsWith("{"))
519
- return $e(
520
- Pe(
521
- De(
522
- ye(i)
519
+ return Pe(
520
+ ye(
521
+ be(
522
+ De(i)
523
523
  )
524
524
  ),
525
525
  n
526
526
  );
527
- const f = I(i), a = ye(
527
+ const f = w(i), a = De(
528
528
  i,
529
529
  f
530
- ), C = a === i ? f : I(a), G = De(
530
+ ), C = a === i ? f : w(a), G = be(
531
531
  a,
532
532
  C
533
- ), S = G === a ? C : I(G);
534
- return $e(
533
+ ), S = G === a ? C : w(G);
534
+ return Pe(
535
535
  Tt(
536
- Pe(
536
+ ye(
537
537
  G,
538
538
  S
539
539
  ),
@@ -543,18 +543,18 @@ ${e.slice(
543
543
  );
544
544
  }, "applyTreeGridDefaultLayout"), $t = /* @__PURE__ */ o((e) => {
545
545
  var n;
546
- return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${In}`)) ?? null;
547
- }, "getTreeGridWrapperElement"), vt = /* @__PURE__ */ o((e) => {
548
- if (ne(e.AllSelected))
546
+ return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${wn}`)) ?? null;
547
+ }, "getTreeGridWrapperElement"), Ft = /* @__PURE__ */ o((e) => {
548
+ if (ee(e.AllSelected))
549
549
  return "checked";
550
550
  if (y(e.AllSelected))
551
551
  return "unchecked";
552
552
  let n = 0, t = 0;
553
553
  return U(e).forEach((r) => {
554
- !h(r) || y(r.CanSelect) || (n += 1, ne(e.IsSelected(r)) && (t += 1));
554
+ !R(r) || y(r.CanSelect) || (n += 1, ee(e.IsSelected(r)) && (t += 1));
555
555
  }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
556
- }, "getTreeGridSelectAllState"), oe = /* @__PURE__ */ o((e, n) => {
557
- const t = $t(n), r = !y(e.Selecting), i = ae(
556
+ }, "getTreeGridSelectAllState"), ie = /* @__PURE__ */ o((e, n) => {
557
+ const t = $t(n), r = !y(e.Selecting), i = fe(
558
558
  e.Selecting,
559
559
  e.SelectingSingle
560
560
  ), c = e.Header;
@@ -563,34 +563,34 @@ ${e.slice(
563
563
  i
564
564
  ), !i)
565
565
  t == null || t.classList.remove(
566
+ _e,
566
567
  me,
567
- Le,
568
- Oe
568
+ Le
569
569
  );
570
570
  else {
571
- const f = vt(e);
571
+ const f = Ft(e);
572
572
  t == null || t.classList.toggle(
573
- me,
573
+ _e,
574
574
  f === "checked"
575
575
  ), t == null || t.classList.toggle(
576
- Le,
576
+ me,
577
577
  f === "indeterminate"
578
578
  ), t == null || t.classList.toggle(
579
- Oe,
579
+ Le,
580
580
  f === "unchecked"
581
581
  );
582
582
  }
583
583
  c && r && (c.CanSelect = i ? 1 : 0);
584
- }, "syncTreeGridSelectionPanelState"), Z = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ o((e, n) => {
584
+ }, "syncTreeGridSelectionPanelState"), Z = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ o((e, n) => {
585
585
  if (typeof window > "u")
586
586
  return;
587
587
  const t = Z.get(n);
588
588
  t !== void 0 && window.clearTimeout(t);
589
589
  const r = window.setTimeout(() => {
590
- Z.delete(n), oe(e, n);
590
+ Z.delete(n), ie(e, n);
591
591
  }, 0);
592
592
  Z.set(n, r);
593
- }, "scheduleTreeGridSelectionPanelStateSync"), Ft = /* @__PURE__ */ o((e, n) => {
593
+ }, "scheduleTreeGridSelectionPanelStateSync"), vt = /* @__PURE__ */ o((e, n) => {
594
594
  e.EnterMode = n;
595
595
  const t = Bn[n];
596
596
  if (!t)
@@ -612,12 +612,12 @@ ${e.slice(
612
612
  } catch {
613
613
  return e;
614
614
  }
615
- }, "resolveTreeGridInlineUrl"), se = /* @__PURE__ */ o((e) => {
615
+ }, "resolveTreeGridInlineUrl"), oe = /* @__PURE__ */ o((e) => {
616
616
  if (!e || rn(e))
617
617
  return Bt(e);
618
618
  const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], i = t.includes("?") ? "&" : "?";
619
619
  return `${t}${i}noCache=${Date.now()}${r}`;
620
- }, "appendNoCacheQuery"), Be = /* @__PURE__ */ o((e, n, t) => {
620
+ }, "appendNoCacheQuery"), ve = /* @__PURE__ */ o((e, n, t) => {
621
621
  if (!e)
622
622
  return;
623
623
  const r = t.canEdit, i = t.highlightColumns ?? [], c = t.highlightBackgroundColor;
@@ -637,7 +637,7 @@ ${e.slice(
637
637
  }
638
638
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
639
639
  }
640
- }, "syncTreeGridDeletedRowState"), Nt = /* @__PURE__ */ o((e) => e ? rn(e) || e.includes("assets") ? se(e) : se(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), kt = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Ut = /* @__PURE__ */ o((e, n, t, r) => {
640
+ }, "syncTreeGridDeletedRowState"), Nt = /* @__PURE__ */ o((e) => e ? rn(e) || e.includes("assets") ? oe(e) : oe(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), kt = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Ut = /* @__PURE__ */ o((e, n, t, r) => {
641
641
  if (!(!e || t === "cancel")) {
642
642
  if (t === "remove") {
643
643
  e.RemoveRow(n), r(e);
@@ -645,7 +645,7 @@ ${e.slice(
645
645
  }
646
646
  e.DeleteRowT(n, 3);
647
647
  }
648
- }, "applyTreeGridBeforeRowUndeleteAction"), Vt = /* @__PURE__ */ o((e, n, t) => e ? { Url: Nt(n) } : { Data: { Body: [$n(t) ? [] : t] } }, "buildTreeGridDataSource"), Pr = /* @__PURE__ */ o(({
648
+ }, "applyTreeGridBeforeRowUndeleteAction"), Vt = /* @__PURE__ */ o((e, n, t) => e ? { Url: Nt(n) } : { Data: { Body: [$n(t) ? [] : t] } }, "buildTreeGridDataSource"), yr = /* @__PURE__ */ o(({
649
649
  id: e,
650
650
  layoutUrl: n,
651
651
  layoutData: t,
@@ -657,25 +657,25 @@ ${e.slice(
657
657
  useDataUrl: C,
658
658
  width: G,
659
659
  height: S,
660
- languageId: R
660
+ languageId: h
661
661
  }) => ({
662
662
  id: e,
663
663
  Layout: t ? {
664
- Data: ie(
664
+ Data: re(
665
665
  t,
666
666
  c,
667
667
  r,
668
668
  i
669
669
  )
670
- } : { Url: se(n ?? "") },
670
+ } : { Url: oe(n ?? "") },
671
671
  Data: Vt(C, f, a),
672
672
  Text: {
673
- Url: hn(R)
673
+ Url: hn(h)
674
674
  },
675
675
  width: G,
676
676
  height: S,
677
677
  Debug: "Error"
678
- }), "buildTreeGridInitializationOptions"), Ne = /* @__PURE__ */ o((e) => vn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), ke = /* @__PURE__ */ o((e) => {
678
+ }), "buildTreeGridInitializationOptions"), Be = /* @__PURE__ */ o((e) => Fn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Ne = /* @__PURE__ */ o((e) => {
679
679
  if (typeof e == "number")
680
680
  return Number.isFinite(e) && e > 0 ? e : void 0;
681
681
  if (typeof e != "string")
@@ -685,14 +685,14 @@ ${e.slice(
685
685
  return;
686
686
  const t = Number(n);
687
687
  return Number.isFinite(t) && t > 0 ? t : void 0;
688
- }, "parseTreeGridPositiveNumber"), ce = /* @__PURE__ */ o((e, n, t, r) => {
688
+ }, "parseTreeGridPositiveNumber"), se = /* @__PURE__ */ o((e, n, t, r) => {
689
689
  if (!n || !t)
690
690
  return;
691
- const i = e.GetAttribute(n, t, r), c = ke(i);
692
- return c !== void 0 ? c : ke(
691
+ const i = e.GetAttribute(n, t, r), c = Ne(i);
692
+ return c !== void 0 ? c : Ne(
693
693
  n[`${t}${r}`]
694
694
  );
695
- }, "getTreeGridHeaderCellSpanAttribute"), Mt = /* @__PURE__ */ o((e, n, t) => !n || !t || n.Fixed !== "Head" || (ce(e, n, t, "Span") ?? 1) <= 1 ? !1 : (ce(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ue = /* @__PURE__ */ o((e, n, t) => {
695
+ }, "getTreeGridHeaderCellSpanAttribute"), Mt = /* @__PURE__ */ o((e, n, t) => !n || !t || n.Fixed !== "Head" || (se(e, n, t, "Span") ?? 1) <= 1 ? !1 : (se(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), ke = /* @__PURE__ */ o((e, n, t) => {
696
696
  const r = e.get(n);
697
697
  if (r) {
698
698
  r.add(t);
@@ -703,13 +703,13 @@ ${e.slice(
703
703
  const i = /* @__PURE__ */ new Map();
704
704
  return n.forEach((c, f) => {
705
705
  t.forEach((a, C) => {
706
- if (!Mt(e, c, a) || (Ue(i, c, a), !r))
706
+ if (!Mt(e, c, a) || (ke(i, c, a), !r))
707
707
  return;
708
- const G = Math.floor(ce(e, c, a, "Span") ?? 1), S = Math.min(t.length, C + G);
709
- for (let R = f + 1; R < n.length; R += 1) {
710
- const m = n[R];
708
+ const G = Math.floor(se(e, c, a, "Span") ?? 1), S = Math.min(t.length, C + G);
709
+ for (let h = f + 1; h < n.length; h += 1) {
710
+ const m = n[h];
711
711
  for (let L = C; L < S; L += 1)
712
- Ue(i, m, t[L]);
712
+ ke(i, m, t[L]);
713
713
  }
714
714
  });
715
715
  }), i;
@@ -724,7 +724,7 @@ ${e.slice(
724
724
  c,
725
725
  r
726
726
  ).get(n)) == null ? void 0 : f.has(t)) === !0;
727
- }, "isTreeGridGroupHeaderSortButtonTarget"), Ve = /* @__PURE__ */ o((e, n, t = !1, r = !0) => {
727
+ }, "isTreeGridGroupHeaderSortButtonTarget"), Ue = /* @__PURE__ */ o((e, n, t = !1, r = !0) => {
728
728
  const i = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((S) => S.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
729
729
  if (!c.length || !f.length)
730
730
  return;
@@ -739,9 +739,9 @@ ${e.slice(
739
739
  if (G.size) {
740
740
  typeof e.StartUpdate == "function" && e.StartUpdate();
741
741
  try {
742
- G.forEach((S, R) => {
742
+ G.forEach((S, h) => {
743
743
  S.forEach((m) => {
744
- e.GetAttribute(R, m, Ie) !== "" && (e.SetAttribute(R, m, Ie, "", 0, 0), a.add(R), C += 1);
744
+ e.GetAttribute(h, m, xe) !== "" && (e.SetAttribute(h, m, xe, "", 0, 0), a.add(h), C += 1);
745
745
  });
746
746
  });
747
747
  } finally {
@@ -760,12 +760,12 @@ ${e.slice(
760
760
  }, "isVisibleTreeGridRow"), P = /* @__PURE__ */ o((e) => {
761
761
  const n = e == null ? void 0 : e.Added;
762
762
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
763
- }, "isAddedTreeGridRow"), h = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !Jt(e) ? !1 : e.Kind === "Data" || P(e), "isDisplayTreeGridRow"), H = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Kt = /* @__PURE__ */ o((e, n) => {
763
+ }, "isAddedTreeGridRow"), R = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !Jt(e) ? !1 : e.Kind === "Data" || P(e), "isDisplayTreeGridRow"), H = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Kt = /* @__PURE__ */ o((e, n) => {
764
764
  var r;
765
765
  const t = (r = e.Cols) == null ? void 0 : r[n];
766
766
  return !!t && !y(t.Visible) && !et(t.Hidden);
767
767
  }, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ o((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), jt = /* @__PURE__ */ o((e) => {
768
- const n = ee.get(e);
768
+ const n = Q.get(e);
769
769
  if (n)
770
770
  return n;
771
771
  const t = new Map(
@@ -774,16 +774,16 @@ ${e.slice(
774
774
  (c) => !Jn.has(c) && Kt(e, c)
775
775
  ).sort((c, f) => {
776
776
  var L, b;
777
- const a = (L = e.Cols) == null ? void 0 : L[c], C = (b = e.Cols) == null ? void 0 : b[f], G = t.get(c) ?? 0, S = t.get(f) ?? 0, R = X(a == null ? void 0 : a.Sec, G) - X(C == null ? void 0 : C.Sec, S);
778
- return R !== 0 ? R : X(a == null ? void 0 : a.Pos, G) - X(C == null ? void 0 : C.Pos, S) || G - S;
777
+ const a = (L = e.Cols) == null ? void 0 : L[c], C = (b = e.Cols) == null ? void 0 : b[f], G = t.get(c) ?? 0, S = t.get(f) ?? 0, h = X(a == null ? void 0 : a.Sec, G) - X(C == null ? void 0 : C.Sec, S);
778
+ return h !== 0 ? h : X(a == null ? void 0 : a.Pos, G) - X(C == null ? void 0 : C.Pos, S) || G - S;
779
779
  }), i = {
780
780
  columnSet: new Set(r),
781
781
  firstColumn: r[0],
782
782
  lastColumn: r[r.length - 1]
783
783
  };
784
- return ee.set(e, i), i;
785
- }, "getTreeGridAddedRowBoxColumnBounds"), v = /* @__PURE__ */ o((e) => {
786
- e && ee.delete(e);
784
+ return Q.set(e, i), i;
785
+ }, "getTreeGridAddedRowBoxColumnBounds"), F = /* @__PURE__ */ o((e) => {
786
+ e && Q.delete(e);
787
787
  }, "clearTreeGridAddedRowBoxColumnBounds"), U = /* @__PURE__ */ o((e) => {
788
788
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
789
789
  const n = [];
@@ -793,8 +793,8 @@ ${e.slice(
793
793
  return n;
794
794
  }
795
795
  return Object.values(e.Rows ?? {});
796
- }, "getTreeGridRows"), le = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ o((e) => {
797
- e && le.delete(e);
796
+ }, "getTreeGridRows"), ce = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ o((e) => {
797
+ e && ce.delete(e);
798
798
  }, "clearTreeGridSelectionRowSpanAnchorRowMap"), sn = /* @__PURE__ */ o((e, n) => {
799
799
  const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], i = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
800
800
  return Number.isFinite(i) && i > 1 ? Math.floor(i) : 1;
@@ -802,7 +802,7 @@ ${e.slice(
802
802
  const n = /* @__PURE__ */ new WeakMap();
803
803
  let t = null, r = -1;
804
804
  return U(e).forEach((i, c) => {
805
- if (!h(i)) {
805
+ if (!R(i)) {
806
806
  n.set(i, null);
807
807
  return;
808
808
  }
@@ -813,19 +813,19 @@ ${e.slice(
813
813
  }
814
814
  n.set(i, t && c <= r ? t : null), c >= r && (t = null, r = -1);
815
815
  }), n;
816
- }, "createTreeGridSelectionRowSpanAnchorRowMap"), Te = /* @__PURE__ */ o((e, n) => {
817
- if (!n || !h(n))
816
+ }, "createTreeGridSelectionRowSpanAnchorRowMap"), ae = /* @__PURE__ */ o((e, n) => {
817
+ if (!n || !R(n))
818
818
  return null;
819
- let t = le.get(e);
820
- return t != null && t.has(n) || (t = Ht(e), le.set(e, t)), t.get(n) ?? null;
819
+ let t = ce.get(e);
820
+ return t != null && t.has(n) || (t = Ht(e), ce.set(e, t)), t.get(n) ?? null;
821
821
  }, "getTreeGridSelectionRowSpanAnchorRow"), cn = /* @__PURE__ */ o((e, n) => {
822
- const t = Te(e, n);
822
+ const t = ae(e, n);
823
823
  if (!t)
824
824
  return [];
825
825
  const r = sn(t, je), i = [];
826
826
  let c = t;
827
827
  for (let f = 0; c && f < r; f += 1)
828
- h(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
828
+ R(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
829
829
  return i;
830
830
  }, "getTreeGridSelectionRowSpanRows"), zt = /* @__PURE__ */ o((e) => {
831
831
  const n = /* @__PURE__ */ new Set();
@@ -839,17 +839,17 @@ ${e.slice(
839
839
  return;
840
840
  const t = H(e);
841
841
  U(e).forEach((r) => {
842
- h(r) && n.set(
842
+ R(r) && n.set(
843
843
  r,
844
- new Map(t.map((i) => [i, fe(e, r, i)]))
844
+ new Map(t.map((i) => [i, ue(e, r, i)]))
845
845
  );
846
846
  });
847
- }, "captureTreeGridChangeBaselines"), de = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Zt = /* @__PURE__ */ o((e, n, t) => {
847
+ }, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Zt = /* @__PURE__ */ o((e, n, t) => {
848
848
  const r = n;
849
- return H(e).some((i) => i !== t && de(r[`${i}Changed`]));
849
+ return H(e).some((i) => i !== t && le(r[`${i}Changed`]));
850
850
  }, "hasOtherTreeGridChangedCells"), ln = /* @__PURE__ */ o((e, n, t) => {
851
851
  const r = n;
852
- r[`${t}Changed`] = 0, !P(n) && !w(n) && !Zt(e, n, t) && (r.Changed = 0);
852
+ r[`${t}Changed`] = 0, !P(n) && !I(n) && !Zt(e, n, t) && (r.Changed = 0);
853
853
  }, "clearTreeGridCellChangedState"), qt = /* @__PURE__ */ o((e, n, t) => {
854
854
  const r = e.get(n);
855
855
  if (r != null && r.has(t))
@@ -862,12 +862,12 @@ ${e.slice(
862
862
  backgroundColor: i,
863
863
  highlightRefresh: c
864
864
  }) => {
865
- if (!P(t) && !w(t))
865
+ if (!P(t) && !I(t))
866
866
  return !1;
867
867
  if (n.CanEdit(t, r) !== 1)
868
868
  return !0;
869
- const f = gn(t, r), a = Q(t).includes(r);
870
- return f === void 0 ? !0 : fe(n, t, r) === f ? (_n(t, r), a && Xe(e, { row: t, col: r }), ln(n, t, r), !0) : (mn(t, r), We(e, {
869
+ const f = gn(t, r), a = q(t).includes(r);
870
+ return f === void 0 ? !0 : ue(n, t, r) === f ? (_n(t, r), a && Xe(e, { row: t, col: r }), ln(n, t, r), !0) : (mn(t, r), We(e, {
871
871
  row: t,
872
872
  col: r,
873
873
  backgroundColor: i,
@@ -882,7 +882,7 @@ ${e.slice(
882
882
  baselineMap: c,
883
883
  highlightRefresh: f
884
884
  }) => {
885
- if (!h(t) || Qt({
885
+ if (!R(t) || Qt({
886
886
  gridId: e,
887
887
  grid: n,
888
888
  row: t,
@@ -891,7 +891,7 @@ ${e.slice(
891
891
  highlightRefresh: f
892
892
  }))
893
893
  return;
894
- const a = qt(c, t, r), C = fe(n, t, r);
894
+ const a = qt(c, t, r), C = ue(n, t, r);
895
895
  if (a !== void 0 && C === a) {
896
896
  Xe(e, { row: t, col: r }), ln(n, t, r);
897
897
  return;
@@ -902,29 +902,29 @@ ${e.slice(
902
902
  backgroundColor: i,
903
903
  refresh: f
904
904
  });
905
- }, "syncTreeGridChangedCellHighlight"), nr = /* @__PURE__ */ o((e, n, t) => !n || !t || !h(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), dn = /* @__PURE__ */ o((e, n, t) => {
905
+ }, "syncTreeGridChangedCellHighlight"), nr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), dn = /* @__PURE__ */ o((e, n, t) => {
906
906
  const r = e.GetAttribute(n, t, "Color");
907
907
  if (typeof r == "number")
908
908
  return fn(r);
909
909
  if (typeof r == "string")
910
910
  return r.trim() || void 0;
911
- }, "getExplicitTreeGridCellColor"), tr = /* @__PURE__ */ o((e, n, t) => dn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Ce = /* @__PURE__ */ o((e, n, t) => {
912
- if (!n || !t || !h(n))
911
+ }, "getExplicitTreeGridCellColor"), tr = /* @__PURE__ */ o((e, n, t) => dn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Te = /* @__PURE__ */ o((e, n, t) => {
912
+ if (!n || !t || !R(n))
913
913
  return !1;
914
914
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
915
915
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
916
916
  }, "isTreeGridFocusedCellState"), V = /* @__PURE__ */ o((e, n, t) => {
917
- if (!n || !t || !h(n))
917
+ if (!n || !t || !R(n))
918
918
  return !1;
919
919
  const r = e.IsSelected(n, t);
920
920
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
921
921
  return !0;
922
- const i = Te(e, n);
922
+ const i = ae(e, n);
923
923
  if (!i || i === n)
924
924
  return !1;
925
925
  const c = e.IsSelected(i, t);
926
926
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
927
- }, "isTreeGridSelectedCellState"), Ee = /* @__PURE__ */ o((e) => {
927
+ }, "isTreeGridSelectedCellState"), Ce = /* @__PURE__ */ o((e) => {
928
928
  if (!we.length)
929
929
  return !1;
930
930
  const n = e.split(/\s+/).filter(Boolean);
@@ -932,9 +932,9 @@ ${e.slice(
932
932
  (t) => n.includes(t)
933
933
  );
934
934
  }, "hasTreeGridChangedCellDisplayClass"), rr = /* @__PURE__ */ o((e) => {
935
- if (!(!e || e.split(/\s+/).includes(xe) || !Ee(e)))
936
- return `${e} ${xe}`;
937
- }, "appendTreeGridSelectedChangedCellDisplayClass"), ir = /* @__PURE__ */ o((e) => !e || !h(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ee(t)), "hasTreeGridChangedCellDisplayClassInRow"), or = /* @__PURE__ */ o((e, n) => {
935
+ if (!(!e || e.split(/\s+/).includes(Oe) || !Ce(e)))
936
+ return `${e} ${Oe}`;
937
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), ir = /* @__PURE__ */ o((e) => !e || !R(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), or = /* @__PURE__ */ o((e, n) => {
938
938
  if (!n || !ir(n) || typeof e.RefreshRow != "function")
939
939
  return;
940
940
  const t = n;
@@ -956,22 +956,22 @@ ${e.slice(
956
956
  const t = cn(e, n);
957
957
  t.length <= 1 || M(e, t);
958
958
  }, "scheduleTreeGridSelectionRowSpanRefresh"), cr = /* @__PURE__ */ o((e) => {
959
- const n = U(e).filter((t) => h(t) && Te(e, t));
959
+ const n = U(e).filter((t) => R(t) && ae(e, t));
960
960
  M(e, n);
961
961
  }, "scheduleTreeGridSelectionRowSpanRefreshAll"), un = /* @__PURE__ */ o((e, n, t, r) => {
962
- if (!(!n || r === void 0 || !nr(e, n, t) || Ce(e, n, t) || V(e, n, t) || tr(e, n, t)))
962
+ if (!(!n || r === void 0 || !nr(e, n, t) || Te(e, n, t) || V(e, n, t) || tr(e, n, t)))
963
963
  return r;
964
- }, "getEditableTreeGridCellDefaultColor"), F = /* @__PURE__ */ o((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), lr = /* @__PURE__ */ o((e, n, t) => Xn.some(
965
- (r) => F(e, n, t, r)
964
+ }, "getEditableTreeGridCellDefaultColor"), v = /* @__PURE__ */ o((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), lr = /* @__PURE__ */ o((e, n, t) => Xn.some(
965
+ (r) => v(e, n, t, r)
966
966
  ), "isTreeGridNativeErrorBackgroundColor"), fn = /* @__PURE__ */ o((e) => {
967
967
  if (!(e === void 0 || !Number.isFinite(e)))
968
968
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
969
- }, "toTreeGridCssHexColor"), ue = /* @__PURE__ */ o((e, n, t) => !n || !t || !h(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), pe = /* @__PURE__ */ o((e, n, t) => ue(e, n, t) !== "", "hasTreeGridCellError"), dr = /* @__PURE__ */ o((e, n) => {
969
+ }, "toTreeGridCssHexColor"), de = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Ee = /* @__PURE__ */ o((e, n, t) => de(e, n, t) !== "", "hasTreeGridCellError"), dr = /* @__PURE__ */ o((e, n) => {
970
970
  if (!n)
971
971
  return;
972
972
  let t = !1;
973
973
  H(e).forEach((r) => {
974
- pe(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
974
+ Ee(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
975
975
  }), t && e.RefreshRow(n);
976
976
  }, "clearTreeGridRowErrors"), ur = /* @__PURE__ */ o((e) => {
977
977
  const n = e == null ? void 0 : e.target;
@@ -984,11 +984,11 @@ ${e.slice(
984
984
  }
985
985
  return null;
986
986
  }, "getTreeGridMouseEventAnchorElement"), fr = /* @__PURE__ */ o((e, n) => {
987
- if (!e || !n || !h(e))
987
+ if (!e || !n || !R(e))
988
988
  return !1;
989
- const t = e, r = t[`${n}Class`], i = de(t[`${n}Changed`]) || typeof r == "string" && Ee(r);
990
- return P(e) || w(e) ? i : i || de(t.Changed);
991
- }, "isChangedTreeGridRowOrCell"), ar = /* @__PURE__ */ o((e, n, t) => Kn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Tr = /* @__PURE__ */ o((e, n, t) => !n || !t || !h(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Cr = /* @__PURE__ */ o((e, n, t) => !n || !t || !h(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Er = /* @__PURE__ */ o((e, n) => !!n && h(n) && e.FRow === n, "isTreeGridFocusedRowState"), pr = /* @__PURE__ */ o((e, n) => !!n && h(n) && e.ARow === n, "isTreeGridHoveredRowState"), Gr = /* @__PURE__ */ o(({
989
+ const t = e, r = t[`${n}Class`], i = le(t[`${n}Changed`]) || typeof r == "string" && Ce(r);
990
+ return P(e) || I(e) ? i : i || le(t.Changed);
991
+ }, "isChangedTreeGridRowOrCell"), ar = /* @__PURE__ */ o((e, n, t) => Kn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Tr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Cr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Er = /* @__PURE__ */ o((e, n) => !!n && R(n) && e.FRow === n, "isTreeGridFocusedRowState"), pr = /* @__PURE__ */ o(({
992
992
  grid: e,
993
993
  row: n,
994
994
  col: t,
@@ -1001,14 +1001,14 @@ ${e.slice(
1001
1001
  changedCellBackgroundColor: G,
1002
1002
  editableCellBackgroundColorValue: S
1003
1003
  }) => {
1004
- if (Ce(e, n, t))
1004
+ if (Te(e, n, t))
1005
1005
  return f;
1006
1006
  if (V(e, n, t))
1007
1007
  return a;
1008
- if (Tr(e, n, t) && (F(r, i, c, Nn) || F(r, i, c, kn)) || Cr(e, n, t) && (F(r, i, c, Un) || F(r, i, c, Vn) || F(r, i, c, Mn)))
1008
+ if (Tr(e, n, t) && (v(r, i, c, Nn) || v(r, i, c, kn)) || Cr(e, n, t) && (v(r, i, c, Un) || v(r, i, c, Vn) || v(r, i, c, Mn)))
1009
1009
  return C;
1010
- const R = P(n) || w(n), m = pe(e, n, t) && lr(r, i, c);
1011
- if (!m && !R)
1010
+ const h = P(n) || I(n), m = Ee(e, n, t) && lr(r, i, c);
1011
+ if (!m && !h)
1012
1012
  return;
1013
1013
  const L = dn(e, n, t);
1014
1014
  if (m && L)
@@ -1021,20 +1021,20 @@ ${e.slice(
1021
1021
  t,
1022
1022
  S
1023
1023
  );
1024
- return b !== void 0 ? fn(b) : R ? L ?? Rn : Wn;
1024
+ return b !== void 0 ? fn(b) : h ? L ?? Rn : Wn;
1025
1025
  }, "resolveTreeGridStateBackgroundColor"), K = /* @__PURE__ */ o((e, n) => {
1026
1026
  const t = e.split(/\s+/).filter(Boolean);
1027
1027
  return t.includes(n) ? e : [...t, n].join(" ");
1028
- }, "appendTreeGridClassToken"), Sr = /* @__PURE__ */ o((e, n, t, r) => !pe(e, n, t) || !n ? r : K(r, bn), "appendTreeGridErrorCellDisplayClass"), hr = /* @__PURE__ */ o((e, n, t, r) => {
1029
- if (!h(n) || !P(n) && !w(n) || Er(e, n) || V(e, n, t) || pr(e, n))
1028
+ }, "appendTreeGridClassToken"), Gr = /* @__PURE__ */ o((e, n, t, r) => !Ee(e, n, t) || !n ? r : K(r, bn), "appendTreeGridErrorCellDisplayClass"), Sr = /* @__PURE__ */ o((e, n, t, r) => {
1029
+ if (!R(n) || !P(n) && !I(n) || Er(e, n) || V(e, n, t))
1030
1030
  return r;
1031
1031
  const i = jt(e);
1032
1032
  if (!i.columnSet.has(t))
1033
1033
  return r;
1034
- let c = K(r, wn);
1034
+ let c = K(r, In);
1035
1035
  return t === i.firstColumn && (c = K(c, Dn)), t === i.lastColumn && (c = K(c, yn)), c;
1036
- }, "appendTreeGridAddedRowBoxDisplayClass"), Rr = /* @__PURE__ */ o((e, n, t, r) => {
1037
- const i = Sr(e, n, t, r), c = hr(
1036
+ }, "appendTreeGridAddedRowBoxDisplayClass"), hr = /* @__PURE__ */ o((e, n, t, r) => {
1037
+ const i = Gr(e, n, t, r), c = Sr(
1038
1038
  e,
1039
1039
  n,
1040
1040
  t,
@@ -1044,25 +1044,25 @@ ${e.slice(
1044
1044
  return c === r ? void 0 : c;
1045
1045
  const f = rr(c) ?? c;
1046
1046
  return f === r ? void 0 : f;
1047
- }, "resolveTreeGridCellDisplayClass"), an = /* @__PURE__ */ o((e) => h(e) && (P(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), q = /* @__PURE__ */ o((e, n) => {
1047
+ }, "resolveTreeGridCellDisplayClass"), an = /* @__PURE__ */ o((e) => R(e) && (P(e) || I(e)), "isTreeGridAddedRowBoxDisplayRow"), Ve = /* @__PURE__ */ o((e, n) => {
1048
1048
  const t = n.filter(an);
1049
1049
  t.length && M(e, t);
1050
- }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Ar = /* @__PURE__ */ o((e) => {
1050
+ }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Rr = /* @__PURE__ */ o((e) => {
1051
1051
  M(e, U(e).filter(an));
1052
- }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), $r = /* @__PURE__ */ o((e) => {
1052
+ }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), Pr = /* @__PURE__ */ o((e) => {
1053
1053
  if (!e)
1054
1054
  return !1;
1055
1055
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
1056
1056
  let n = e.GetFirst();
1057
1057
  for (; n; ) {
1058
- if (h(n))
1058
+ if (R(n))
1059
1059
  return !0;
1060
1060
  n = e.GetNext(n);
1061
1061
  }
1062
1062
  return !1;
1063
1063
  }
1064
- return Object.values(e.Rows ?? {}).some((n) => h(n));
1065
- }, "hasTreeGridDisplayDataRows"), vr = /* @__PURE__ */ o((e, n, t) => {
1064
+ return Object.values(e.Rows ?? {}).some((n) => R(n));
1065
+ }, "hasTreeGridDisplayDataRows"), $r = /* @__PURE__ */ o((e, n, t) => {
1066
1066
  var i;
1067
1067
  O(e);
1068
1068
  const r = (i = e.Data) == null ? void 0 : i.Data;
@@ -1083,18 +1083,18 @@ ${e.slice(
1083
1083
  focusedCellBackgroundColorRef: C,
1084
1084
  selectedCellBackgroundColorRef: G,
1085
1085
  hoverCellBackgroundColorRef: S,
1086
- changedCellBaselineRef: R,
1086
+ changedCellBaselineRef: h,
1087
1087
  treeGridInstanceRef: m,
1088
1088
  treeGridInitStartedAtRef: L,
1089
1089
  latestLayoutOverridesRef: b,
1090
- latestToolbarTotalCountFormulaRef: Ge,
1091
- latestSuppressCfgRef: Se,
1090
+ latestToolbarTotalCountFormulaRef: pe,
1091
+ latestSuppressCfgRef: Ge,
1092
1092
  latestHideChildHeaderSortButtonsRef: z,
1093
1093
  latestSelectionScopeRef: Tn,
1094
- latestDisabledAnimationsRef: he,
1094
+ latestDisabledAnimationsRef: Se,
1095
1095
  appliedLayoutOverridesRef: Cn,
1096
1096
  appliedBodyDataPropRef: En,
1097
- hasAppliedInitialLayoutRef: Re,
1097
+ hasAppliedInitialLayoutRef: he,
1098
1098
  syncHasDisplayDataRows: $,
1099
1099
  setIsTreeGridReady: pn,
1100
1100
  showErrorTooltip: Gn,
@@ -1109,20 +1109,19 @@ ${e.slice(
1109
1109
  }), window.TGSetEvent("OnRowRemove", e, (s) => {
1110
1110
  O(s), D(), $(s);
1111
1111
  }), window.TGSetEvent("OnColShow", e, (s) => {
1112
- v(s);
1112
+ F(s);
1113
1113
  }), window.TGSetEvent("OnAfterColumnsChanged", e, (s) => {
1114
- v(s);
1114
+ F(s);
1115
1115
  }), window.TGSetEvent("OnColMove", e, (s) => {
1116
- v(s);
1116
+ F(s);
1117
1117
  }), window.TGSetEvent("OnColsAdd", e, (s) => {
1118
- v(s);
1118
+ F(s);
1119
1119
  }), window.TGSetEvent("OnColDelete", e, (s) => {
1120
- v(s);
1120
+ F(s);
1121
1121
  }), window.TGSetEvent("OnColUndelete", e, (s) => {
1122
- v(s);
1122
+ F(s);
1123
1123
  }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, E) => {
1124
- l !== u && q(s, [l, u]);
1125
- const p = ue(s, l, d);
1124
+ const p = de(s, l, d);
1126
1125
  if (!p) {
1127
1126
  D();
1128
1127
  return;
@@ -1134,8 +1133,8 @@ ${e.slice(
1134
1133
  }
1135
1134
  s.HideTip(), Gn({ anchorEl: _, row: l, col: d, message: p });
1136
1135
  }), window.TGSetEvent("OnFocus", e, (s, l, d, u) => {
1137
- l !== u && q(s, [l, u]);
1138
- }), window.TGSetEvent("OnTip", e, (s, l, d, u) => ue(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
1136
+ l !== u && Ve(s, [l, u]);
1137
+ }), window.TGSetEvent("OnTip", e, (s, l, d, u) => de(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
1139
1138
  var E;
1140
1139
  if (d !== 3)
1141
1140
  return d;
@@ -1174,8 +1173,8 @@ ${e.slice(
1174
1173
  );
1175
1174
  }, 300);
1176
1175
  window.TGSetEvent("OnClick", e, (l, d, u, T, E, p) => {
1177
- var x, ge, _e;
1178
- const _ = (ge = (x = n.current) == null ? void 0 : x.onInternalCellClick) == null ? void 0 : ge.call(
1176
+ var x, Ae, ge;
1177
+ const _ = (Ae = (x = n.current) == null ? void 0 : x.onInternalCellClick) == null ? void 0 : Ae.call(
1179
1178
  x,
1180
1179
  l,
1181
1180
  d,
@@ -1186,7 +1185,7 @@ ${e.slice(
1186
1185
  );
1187
1186
  if (_ !== void 0)
1188
1187
  return _;
1189
- typeof ((_e = n.current) == null ? void 0 : _e.onRowClick) == "function" && s(l, d, u, T, E, p);
1188
+ typeof ((ge = n.current) == null ? void 0 : ge.onRowClick) == "function" && s(l, d, u, T, E, p);
1190
1189
  });
1191
1190
  }
1192
1191
  (typeof (g == null ? void 0 : g.onClickButton) == "function" || typeof (g == null ? void 0 : g.onInternalButtonClick) == "function") && window.TGSetEvent(
@@ -1236,8 +1235,8 @@ ${e.slice(
1236
1235
  }), window.TGSetEvent("OnRowDelete", e, (s, l, d) => {
1237
1236
  var T, E;
1238
1237
  O(s), D(), dr(s, l), s.SelectRow(l, 0);
1239
- const u = w(l) ? Q(l) : [];
1240
- Be(s, l, {
1238
+ const u = I(l) ? q(l) : [];
1239
+ ve(s, l, {
1241
1240
  canEdit: c.current !== !1 ? 2 : void 0,
1242
1241
  highlightColumns: u
1243
1242
  }), $(s), (E = (T = n.current) == null ? void 0 : T.onRowDelete) == null || E.call(
@@ -1249,14 +1248,14 @@ ${e.slice(
1249
1248
  }), window.TGSetEvent("OnRowUndelete", e, (s, l) => {
1250
1249
  var u, T;
1251
1250
  O(s), D();
1252
- const d = w(l) ? Q(l) : [];
1253
- Be(s, l, {
1251
+ const d = I(l) ? q(l) : [];
1252
+ ve(s, l, {
1254
1253
  canEdit: c.current !== !1 ? 1 : void 0,
1255
1254
  highlightColumns: d,
1256
1255
  highlightBackgroundColor: d.length ? a.current : void 0
1257
1256
  }), $(s), (T = (u = n.current) == null ? void 0 : u.onRowUndelete) == null || T.call(u, s, l);
1258
1257
  }), window.TGSetEvent("OnGetDefaultColor", e, (s, l, d) => {
1259
- if (!(!r.current || !h(l)))
1258
+ if (!(!r.current || !R(l)))
1260
1259
  return un(
1261
1260
  s,
1262
1261
  l,
@@ -1265,7 +1264,7 @@ ${e.slice(
1265
1264
  );
1266
1265
  }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, E, p) => {
1267
1266
  if (!p)
1268
- return Gr({
1267
+ return pr({
1269
1268
  grid: s,
1270
1269
  row: l,
1271
1270
  col: d,
@@ -1278,24 +1277,24 @@ ${e.slice(
1278
1277
  changedCellBackgroundColor: a.current,
1279
1278
  editableCellBackgroundColorValue: f.current
1280
1279
  });
1281
- }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => Rr(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1280
+ }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => hr(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1282
1281
  var E, p;
1283
- if (D(), i.current && h(l)) {
1284
- const _ = !ar(s, l, d) || V(s, l, d) && !Ce(s, l, d);
1282
+ if (D(), i.current && R(l)) {
1283
+ const _ = !ar(s, l, d) || V(s, l, d) && !Te(s, l, d);
1285
1284
  er({
1286
1285
  gridId: e,
1287
1286
  grid: s,
1288
1287
  row: l,
1289
1288
  col: d,
1290
1289
  backgroundColor: a.current,
1291
- baselineMap: R.current,
1290
+ baselineMap: h.current,
1292
1291
  highlightRefresh: _
1293
1292
  });
1294
1293
  }
1295
1294
  const T = ((E = n.current) == null ? void 0 : E.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1296
1295
  T == null || T(s, l, d, u);
1297
1296
  });
1298
- const Ae = Y((s) => {
1297
+ const Re = Y((s) => {
1299
1298
  var u, T;
1300
1299
  const l = s.GetSelRows() ?? [], d = On(s, l, {
1301
1300
  selectionScope: Tn.current
@@ -1310,10 +1309,10 @@ ${e.slice(
1310
1309
  if (T)
1311
1310
  return;
1312
1311
  const E = zt(s);
1313
- or(s, l), q(s, [l]), M(s, E), sr(s, l), ve(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && Ae(s);
1312
+ or(s, l), Ve(s, [l]), M(s, E), sr(s, l), $e(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && Re(s);
1314
1313
  }), window.TGSetEvent("OnSelectAll", e, (s, l, d, u) => {
1315
1314
  var T;
1316
- u || (cr(s), Ar(s), ve(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Ae(s));
1315
+ u || (cr(s), Rr(s), $e(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Re(s));
1317
1316
  }), typeof (g == null ? void 0 : g.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
1318
1317
  var u, T;
1319
1318
  (T = (u = n.current) == null ? void 0 : u.onSave) == null || T.call(
@@ -1343,34 +1342,34 @@ ${e.slice(
1343
1342
  }), window.TGSetEvent("OnSearchFinish", e, (s) => {
1344
1343
  O(s);
1345
1344
  }), window.TGSetEvent("OnRenderStart", e, (s) => {
1346
- O(s), oe(s, e), Ve(
1345
+ O(s), ie(s, e), Ue(
1347
1346
  s,
1348
1347
  e,
1349
1348
  !1,
1350
1349
  z.current !== !1
1351
1350
  );
1352
1351
  }), window.TGSetEvent("OnRenderFinish", e, (s) => {
1353
- oe(s, e);
1352
+ ie(s, e);
1354
1353
  }), window.TGSetEvent("OnDataGet", e, (s, l, d) => {
1355
1354
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1356
- t.current = be(d);
1357
- const u = ie(
1355
+ t.current = Ie(d);
1356
+ const u = re(
1358
1357
  d,
1359
- he.current,
1360
- Ge.current,
1361
- Se.current
1358
+ Se.current,
1359
+ pe.current,
1360
+ Ge.current
1362
1361
  );
1363
1362
  return u === d ? null : u;
1364
1363
  }
1365
1364
  return null;
1366
1365
  }), window.TGSetEvent("OnDataParse", e, (s, l, d) => {
1367
1366
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1368
- t.current = be(d);
1369
- const u = ie(
1367
+ t.current = Ie(d);
1368
+ const u = re(
1370
1369
  d,
1371
- he.current,
1372
- Ge.current,
1373
- Se.current
1370
+ Se.current,
1371
+ pe.current,
1372
+ Ge.current
1374
1373
  );
1375
1374
  return u === d ? null : u;
1376
1375
  }
@@ -1380,16 +1379,16 @@ ${e.slice(
1380
1379
  e,
1381
1380
  Y((s) => {
1382
1381
  var l, d;
1383
- if (!Re.current) {
1382
+ if (!he.current) {
1384
1383
  const u = b.current;
1385
- Re.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && Ft(s, Fn), Ln(s, u), m.current = s, Cn.current = u, En.current = Ne(s), R.current = /* @__PURE__ */ new WeakMap(), Yt(s, R.current), $(s), pn(!0), Ve(
1384
+ he.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && vt(s, vn), Ln(s, u), m.current = s, Cn.current = u, En.current = Be(s), h.current = /* @__PURE__ */ new WeakMap(), Yt(s, h.current), $(s), pn(!0), Ue(
1386
1385
  s,
1387
1386
  e,
1388
1387
  !0,
1389
1388
  z.current !== !1
1390
1389
  ), Ke(e, "TreeGrid init ready", L.current, {
1391
1390
  bodyRowCount: Wt(
1392
- Ne(s)
1391
+ Be(s)
1393
1392
  )
1394
1393
  }), L.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, s);
1395
1394
  }
@@ -1397,14 +1396,14 @@ ${e.slice(
1397
1396
  );
1398
1397
  }, "bindTreeGridEvents");
1399
1398
  export {
1400
- yr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1399
+ Dr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1401
1400
  Fr as bindTreeGridEvents,
1402
- Pr as buildTreeGridInitializationOptions,
1401
+ yr as buildTreeGridInitializationOptions,
1403
1402
  Yt as captureTreeGridChangeBaselines,
1404
1403
  Wt as getTreeGridBodyDataCount,
1405
- $r as hasTreeGridDisplayDataRows,
1406
- be as hasTreeGridExplicitEnterMode,
1407
- vr as replaceTreeGridBodyData,
1404
+ Pr as hasTreeGridDisplayDataRows,
1405
+ Ie as hasTreeGridExplicitEnterMode,
1406
+ $r as replaceTreeGridBodyData,
1408
1407
  er as syncTreeGridChangedCellHighlight
1409
1408
  };
1410
1409
  //# sourceMappingURL=treeGridRuntime.js.map