@owp/core 2.5.33 → 2.5.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/dist/_virtual/index16.js +4 -4
  2. package/dist/_virtual/index17.js +4 -4
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/_virtual/index20.js +2 -2
  6. package/dist/_virtual/index21.js +2 -2
  7. package/dist/_virtual/index22.js +2 -2
  8. package/dist/components/OwpPicker/OwpDatePicker.js +103 -103
  9. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  10. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +229 -222
  11. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  12. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  13. package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js +1 -1
  14. package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js +1 -1
  15. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  16. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  17. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  18. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  19. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  20. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  21. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
  var dn = Object.defineProperty;
2
2
  var o = (e, n) => dn(e, "name", { value: n, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as un, TREEGRID_CELL_CHANGED_CLASS as Pe } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as P, getTreeGridAddedRowHighlightColumns as Te, getTreeGridCellComparableValue as $e, clearTreeGridCellHighlightById as fn, highlightTreeGridCellById as an, normalizeTreeGridExternalRows as Tn } from "../../../utils/treeGridUtil.js";
5
- import { applyTreeGridLayoutToGrid as pn } from "./treeGridLayout.js";
6
- import { resolveTreeGridSelectedRows as En } from "./treeGridSelection.js";
7
- import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Cn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as pe, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Ee, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Ce, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as Ge, TREE_GRID_THEME_WRAPPER_CLASS as Gn, TREE_GRID_ERROR_CELL_CLASS as Sn } from "./treeGridTheme.js";
8
- import { countTreeGridPerf as De, logTreeGridPerf as hn, measureTreeGridPerf as Fe } from "./utils/perf.js";
3
+ import { getTreeGridTextResourceUrl as un, TREEGRID_CELL_CHANGED_CLASS as De } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as P, getTreeGridAddedRowHighlightColumns as pe, getTreeGridCellComparableValue as Fe, clearTreeGridCellHighlightById as fn, highlightTreeGridCellById as an, normalizeTreeGridExternalRows as Tn } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as En } from "./treeGridLayout.js";
6
+ import { resolveTreeGridSelectedRows as pn } from "./treeGridSelection.js";
7
+ import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Cn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as Ce, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Ge, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Se, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as he, TREE_GRID_THEME_WRAPPER_CLASS as Gn, TREE_GRID_ERROR_CELL_CLASS as Sn } from "./treeGridTheme.js";
8
+ import { countTreeGridPerf as Ne, logTreeGridPerf as hn, measureTreeGridPerf as ve } from "./utils/perf.js";
9
9
  import { debounce as W } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
- import { isEmpty as gn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
- import { get as Rn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
- const fr = 300, An = 3, _n = {
10
+ import { isEmpty as Rn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
+ import { get as gn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
+ const ar = 300, An = 3, _n = {
13
13
  1: {
14
14
  onEnter: "TabDownEdit",
15
15
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -30,7 +30,7 @@ const fr = 300, An = 3, _n = {
30
30
  [255, 210, 210],
31
31
  [249, 209, 209],
32
32
  [115, 16, 11]
33
- ], wn = "#D7FFD7", yn = "transparent", Se = "Button", he = Pe.split(/\s+/).filter(
33
+ ], wn = "#D7FFD7", yn = "transparent", Re = "Button", ge = De.split(/\s+/).filter(
34
34
  Boolean
35
35
  ), Pn = /* @__PURE__ */ new Set([
36
36
  "Text",
@@ -39,7 +39,7 @@ const fr = 300, An = 3, _n = {
39
39
  "Float",
40
40
  "Date",
41
41
  "Pass"
42
- ]), ge = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), $n = {
42
+ ]), Ae = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), $n = {
43
43
  Visible: "1",
44
44
  CanHide: "0",
45
45
  Delete: "1",
@@ -50,7 +50,7 @@ const fr = 300, An = 3, _n = {
50
50
  OnClickCell: "Focus"
51
51
  }, U = {
52
52
  OnClickPanelSelectAll: "SelectAll OR DeselectAll"
53
- }, Ne = "Panel", ve = ["Formula", "FormulaFormula"], Fn = /<Grid\b[^>]*>/i, Nn = /<\/Grid\s*>/i, vn = /<Toolbar\b[^>]*\/?>/i, kn = [
53
+ }, ke = "Panel", Ue = ["Formula", "FormulaFormula"], Fn = /<Grid\b[^>]*>/i, Nn = /<\/Grid\s*>/i, vn = /<Toolbar\b[^>]*\/?>/i, kn = [
54
54
  "Undo",
55
55
  "Deleting",
56
56
  "Selecting",
@@ -77,28 +77,28 @@ const fr = 300, An = 3, _n = {
77
77
  "UndeleteVisibleRowsChildren"
78
78
  ],
79
79
  selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
80
- }, S = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), $ = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), K = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), F = /* @__PURE__ */ o((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), te = /* @__PURE__ */ o((e, n) => !$(e) && !K(n), "isTreeGridCheckboxSelectionMode"), ke = /* @__PURE__ */ o((e) => {
80
+ }, S = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), $ = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), K = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), F = /* @__PURE__ */ o((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), te = /* @__PURE__ */ o((e, n) => !$(e) && !K(n), "isTreeGridCheckboxSelectionMode"), Be = /* @__PURE__ */ o((e) => {
81
81
  const n = e.Cfg;
82
82
  return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
83
83
  }, "getTreeGridJsonCfgRecords"), j = /* @__PURE__ */ o((e, n) => {
84
84
  let t;
85
- return ke(e).forEach((r) => {
85
+ return Be(e).forEach((r) => {
86
86
  n in r && (t = r[n]);
87
87
  }), t;
88
- }, "getTreeGridJsonCfgValue"), Ue = /* @__PURE__ */ o((e, n) => {
88
+ }, "getTreeGridJsonCfgValue"), Ve = /* @__PURE__ */ o((e, n) => {
89
89
  const t = new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
90
90
  e
91
91
  );
92
92
  return t == null ? void 0 : t[2];
93
- }, "getTreeGridXmlTagAttributeValue"), D = /* @__PURE__ */ o((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Be = /* @__PURE__ */ o((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), N = /* @__PURE__ */ o((e, n, t) => {
93
+ }, "getTreeGridXmlTagAttributeValue"), D = /* @__PURE__ */ o((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Me = /* @__PURE__ */ o((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), N = /* @__PURE__ */ o((e, n, t) => {
94
94
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
95
- return `${e.slice(0, r)} ${n}="${Be(
95
+ return `${e.slice(0, r)} ${n}="${Me(
96
96
  t
97
97
  )}"${e.slice(r)}`;
98
98
  }, "appendTreeGridXmlTagAttribute"), z = /* @__PURE__ */ o((e, n, t) => D(e, n) ? e.replace(
99
99
  new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
100
- () => `${n}="${Be(t)}"`
101
- ) : N(e, n, t), "setTreeGridXmlTagAttribute"), Ve = /* @__PURE__ */ o((e, n) => {
100
+ () => `${n}="${Me(t)}"`
101
+ ) : N(e, n, t), "setTreeGridXmlTagAttribute"), Xe = /* @__PURE__ */ o((e, n) => {
102
102
  let t = e;
103
103
  return Object.entries(n).forEach(([r, i]) => {
104
104
  t = z(t, r, i);
@@ -132,9 +132,9 @@ const fr = 300, An = 3, _n = {
132
132
  i === 1 && (C === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
133
133
  index: r.index,
134
134
  tag: f
135
- }), kn.forEach((g) => {
136
- const m = Ue(f, g);
137
- m !== void 0 && (t.cfgValues[g] = m);
135
+ }), kn.forEach((R) => {
136
+ const m = Ve(f, R);
137
+ m !== void 0 && (t.cfgValues[R] = m);
138
138
  }), t.lastCfgEndIndex = r.index + f.length) : C === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
139
139
  index: r.index,
140
140
  tag: f
@@ -148,7 +148,7 @@ const fr = 300, An = 3, _n = {
148
148
  }
149
149
  return t;
150
150
  }, "scanTreeGridXmlDefaultLayout"), Bn = /* @__PURE__ */ o((e) => {
151
- const n = Ue(e, "Name");
151
+ const n = Ve(e, "Name");
152
152
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
153
153
  }, "isTreeGridXmlDefaultPanelTag"), Vn = /* @__PURE__ */ o((e) => {
154
154
  const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
@@ -189,7 +189,7 @@ const fr = 300, An = 3, _n = {
189
189
  )}`,
190
190
  isApplied: !0
191
191
  };
192
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), Xn = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), Wn = /* @__PURE__ */ o((e) => !!e.defaultPanelTag || We(e.cfgValues) || Je(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), Jn = /* @__PURE__ */ o((e, n) => {
192
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), Xn = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), Wn = /* @__PURE__ */ o((e) => !!e.defaultPanelTag || Ke(e.cfgValues) || je(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), Jn = /* @__PURE__ */ o((e, n) => {
193
193
  if (n.gridOpenTagEndIndex === void 0 || !Wn(n))
194
194
  return e;
195
195
  const t = n.defaultPanelTag;
@@ -222,14 +222,14 @@ const fr = 300, An = 3, _n = {
222
222
  t,
223
223
  x(t)
224
224
  ) : e;
225
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Me = /* @__PURE__ */ o((e) => te(
225
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), We = /* @__PURE__ */ o((e) => te(
226
226
  j(e, "Selecting"),
227
227
  j(e, "SelectingSingle")
228
- ), "isTreeGridJsonCheckboxSelectionLayout"), Xe = /* @__PURE__ */ o((e) => te(
228
+ ), "isTreeGridJsonCheckboxSelectionLayout"), Je = /* @__PURE__ */ o((e) => te(
229
229
  e.Selecting,
230
230
  e.SelectingSingle
231
- ), "isTreeGridXmlCheckboxSelectionLayout"), We = /* @__PURE__ */ o((e) => !$(e.Selecting), "isTreeGridXmlSelectingLayout"), Je = /* @__PURE__ */ o((e) => F(e.Undo, "1") && F(e.Deleting, "2") && F(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), jn = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), zn = /* @__PURE__ */ o((e, n) => {
232
- if (n.gridOpenTagEndIndex === void 0 || !We(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
231
+ ), "isTreeGridXmlCheckboxSelectionLayout"), Ke = /* @__PURE__ */ o((e) => !$(e.Selecting), "isTreeGridXmlSelectingLayout"), je = /* @__PURE__ */ o((e) => F(e.Undo, "1") && F(e.Deleting, "2") && F(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), jn = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), zn = /* @__PURE__ */ o((e, n) => {
232
+ if (n.gridOpenTagEndIndex === void 0 || !Ke(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
233
233
  return e;
234
234
  const t = n.defaultActionsTag;
235
235
  if (t) {
@@ -247,7 +247,7 @@ const fr = 300, An = 3, _n = {
247
247
  r
248
248
  )}`;
249
249
  }, "applyTreeGridXmlDefaultCellClickActionLayout"), Hn = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), Yn = /* @__PURE__ */ o((e, n) => {
250
- if (n.gridOpenTagEndIndex === void 0 || !Xe(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
250
+ if (n.gridOpenTagEndIndex === void 0 || !Je(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
251
251
  return e;
252
252
  const t = n.defaultActionsTag;
253
253
  if (t) {
@@ -268,7 +268,7 @@ const fr = 300, An = 3, _n = {
268
268
  r
269
269
  )}`;
270
270
  }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Zn = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), qn = /* @__PURE__ */ o((e, n) => {
271
- if (n.gridOpenTagEndIndex === void 0 || !Je(n.cfgValues))
271
+ if (n.gridOpenTagEndIndex === void 0 || !je(n.cfgValues))
272
272
  return e;
273
273
  const t = n.defaultPanelTag;
274
274
  if (t) {
@@ -286,7 +286,7 @@ const fr = 300, An = 3, _n = {
286
286
  r
287
287
  )}`;
288
288
  }, "applyTreeGridXmlDefaultDeletePanelLayout"), Qn = /* @__PURE__ */ o((e, n) => {
289
- if (n.hasFastPanel || !Xe(n.cfgValues))
289
+ if (n.hasFastPanel || !Je(n.cfgValues))
290
290
  return e;
291
291
  const t = n.gridOpenTagEndIndex;
292
292
  return t === void 0 ? e : `${e.slice(0, t)}
@@ -335,7 +335,7 @@ const fr = 300, An = 3, _n = {
335
335
  } catch {
336
336
  return e;
337
337
  }
338
- }, "applyTreeGridJsonDefaultCellClickActionLayout"), Re = /* @__PURE__ */ o((e, n) => {
338
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), _e = /* @__PURE__ */ o((e, n) => {
339
339
  const t = e.trim();
340
340
  return t ? t.startsWith("{") ? rt(e) : zn(
341
341
  e,
@@ -344,11 +344,11 @@ const fr = 300, An = 3, _n = {
344
344
  }, "applyTreeGridDefaultCellClickActionLayout"), it = /* @__PURE__ */ o((e) => {
345
345
  try {
346
346
  const n = JSON.parse(e);
347
- return !S(n) || !Me(n) ? e : (nt(n), JSON.stringify(n));
347
+ return !S(n) || !We(n) ? e : (nt(n), JSON.stringify(n));
348
348
  } catch {
349
349
  return e;
350
350
  }
351
- }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Ae = /* @__PURE__ */ o((e, n) => {
351
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), me = /* @__PURE__ */ o((e, n) => {
352
352
  const t = e.trim();
353
353
  return t ? t.startsWith("{") ? it(e) : Yn(
354
354
  e,
@@ -361,7 +361,7 @@ const fr = 300, An = 3, _n = {
361
361
  const t = JSON.parse(e);
362
362
  if (!S(t))
363
363
  return e;
364
- const r = ke(t);
364
+ const r = Be(t);
365
365
  return r.some((i) => "SuppressCfg" in i) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
366
366
  } catch {
367
367
  return e;
@@ -388,7 +388,7 @@ const fr = 300, An = 3, _n = {
388
388
  x(e),
389
389
  n
390
390
  );
391
- }, "applyTreeGridDefaultSuppressCfgLayout"), lt = /* @__PURE__ */ o((e) => ve.some((n) => n in e), "hasTreeGridToolbarFormulaField"), dt = /* @__PURE__ */ o((e) => {
391
+ }, "applyTreeGridDefaultSuppressCfgLayout"), lt = /* @__PURE__ */ o((e) => Ue.some((n) => n in e), "hasTreeGridToolbarFormulaField"), dt = /* @__PURE__ */ o((e) => {
392
392
  const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], i = Array.isArray(t) ? t.filter(
393
393
  (c) => S(c) && F(c.Kind, "Toolbar")
394
394
  ) : S(t) && F(t.Kind, "Toolbar") ? [t] : [];
@@ -405,7 +405,7 @@ const fr = 300, An = 3, _n = {
405
405
  } catch {
406
406
  return e;
407
407
  }
408
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), ft = /* @__PURE__ */ o((e) => ve.some(
408
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), ft = /* @__PURE__ */ o((e) => Ue.some(
409
409
  (n) => D(e, n)
410
410
  ), "hasTreeGridXmlToolbarFormulaAttribute"), at = /* @__PURE__ */ o((e, n) => {
411
411
  if (!n)
@@ -446,20 +446,20 @@ ${e.slice(
446
446
  e,
447
447
  n
448
448
  ) : at(e, n);
449
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), pt = /* @__PURE__ */ o((e) => {
449
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), Et = /* @__PURE__ */ o((e) => {
450
450
  try {
451
451
  const n = JSON.parse(e);
452
- return !S(n) || !Me(n) ? e : (et(n), JSON.stringify(n));
452
+ return !S(n) || !We(n) ? e : (et(n), JSON.stringify(n));
453
453
  } catch {
454
454
  return e;
455
455
  }
456
- }, "applyTreeGridJsonDefaultFastPanelLayout"), _e = /* @__PURE__ */ o((e, n) => {
456
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), Le = /* @__PURE__ */ o((e, n) => {
457
457
  const t = e.trim();
458
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : pt(e) : Qn(
458
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : Et(e) : Qn(
459
459
  e,
460
460
  n ?? x(e)
461
461
  ) : e;
462
- }, "applyTreeGridDefaultFastPanelLayout"), Et = /* @__PURE__ */ o((e) => {
462
+ }, "applyTreeGridDefaultFastPanelLayout"), pt = /* @__PURE__ */ o((e) => {
463
463
  const n = {};
464
464
  return e == null || e.forEach((t) => {
465
465
  var r;
@@ -486,13 +486,13 @@ ${e.slice(
486
486
  } catch {
487
487
  return e;
488
488
  }
489
- }, "applyTreeGridJsonDisabledAnimationsLayout"), Gt = /* @__PURE__ */ o((e) => Ve("<Animations />", e), "createTreeGridDisabledAnimationsTag"), St = /* @__PURE__ */ o((e, n) => {
489
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), Gt = /* @__PURE__ */ o((e) => Xe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), St = /* @__PURE__ */ o((e, n) => {
490
490
  const t = x(e);
491
491
  if (t.gridOpenTagEndIndex === void 0)
492
492
  return e;
493
493
  const r = t.animationsTag;
494
494
  if (r) {
495
- const c = Ve(r.tag, n);
495
+ const c = Xe(r.tag, n);
496
496
  return c === r.tag ? e : `${e.slice(0, r.index)}${c}${e.slice(
497
497
  r.index + r.tag.length
498
498
  )}`;
@@ -502,8 +502,8 @@ ${e.slice(
502
502
  ${Gt(
503
503
  n
504
504
  )}${e.slice(i)}`;
505
- }, "applyTreeGridXmlDisabledAnimationsLayout"), me = /* @__PURE__ */ o((e, n) => {
506
- const t = Et(n);
505
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), Oe = /* @__PURE__ */ o((e, n) => {
506
+ const t = pt(n);
507
507
  if (!Object.keys(t).length)
508
508
  return e;
509
509
  const r = e.trim();
@@ -516,24 +516,24 @@ ${e.slice(
516
516
  t
517
517
  ), c = i.trim();
518
518
  if (!c || c.startsWith("{"))
519
- return me(
520
- _e(
521
- Re(
522
- Ae(i)
519
+ return Oe(
520
+ Le(
521
+ _e(
522
+ me(i)
523
523
  )
524
524
  ),
525
525
  n
526
526
  );
527
- const a = x(i), f = Ae(
527
+ const a = x(i), f = me(
528
528
  i,
529
529
  a
530
- ), C = f === i ? a : x(f), G = Re(
530
+ ), C = f === i ? a : x(f), G = _e(
531
531
  f,
532
532
  C
533
533
  ), h = G === f ? C : x(G);
534
- return me(
534
+ return Oe(
535
535
  qn(
536
- _e(
536
+ Le(
537
537
  G,
538
538
  h
539
539
  ),
@@ -544,14 +544,14 @@ ${e.slice(
544
544
  }, "applyTreeGridDefaultLayout"), ht = /* @__PURE__ */ o((e) => {
545
545
  var n;
546
546
  return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Gn}`)) ?? null;
547
- }, "getTreeGridWrapperElement"), gt = /* @__PURE__ */ o((e) => {
547
+ }, "getTreeGridWrapperElement"), Rt = /* @__PURE__ */ o((e) => {
548
548
  if (K(e.AllSelected))
549
549
  return "checked";
550
550
  if ($(e.AllSelected))
551
551
  return "unchecked";
552
552
  let n = 0, t = 0;
553
553
  return V(e).forEach((r) => {
554
- !R(r) || $(r.CanSelect) || (n += 1, K(e.IsSelected(r)) && (t += 1));
554
+ !g(r) || $(r.CanSelect) || (n += 1, K(e.IsSelected(r)) && (t += 1));
555
555
  }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
556
556
  }, "getTreeGridSelectAllState"), Y = /* @__PURE__ */ o((e, n) => {
557
557
  const t = ht(n), r = !$(e.Selecting), i = te(
@@ -563,25 +563,25 @@ ${e.slice(
563
563
  i
564
564
  ), !i)
565
565
  t == null || t.classList.remove(
566
- pe,
567
- Ee,
568
- Ce
566
+ Ce,
567
+ Ge,
568
+ Se
569
569
  );
570
570
  else {
571
- const a = gt(e);
571
+ const a = Rt(e);
572
572
  t == null || t.classList.toggle(
573
- pe,
573
+ Ce,
574
574
  a === "checked"
575
575
  ), t == null || t.classList.toggle(
576
- Ee,
576
+ Ge,
577
577
  a === "indeterminate"
578
578
  ), t == null || t.classList.toggle(
579
- Ce,
579
+ Se,
580
580
  a === "unchecked"
581
581
  );
582
582
  }
583
583
  c && r && (c.CanSelect = i ? 1 : 0);
584
- }, "syncTreeGridSelectionPanelState"), J = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ o((e, n) => {
584
+ }, "syncTreeGridSelectionPanelState"), J = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ o((e, n) => {
585
585
  if (typeof window > "u")
586
586
  return;
587
587
  const t = J.get(n);
@@ -590,17 +590,17 @@ ${e.slice(
590
590
  J.delete(n), Y(e, n);
591
591
  }, 0);
592
592
  J.set(n, r);
593
- }, "scheduleTreeGridSelectionPanelStateSync"), Rt = /* @__PURE__ */ o((e, n) => {
593
+ }, "scheduleTreeGridSelectionPanelStateSync"), gt = /* @__PURE__ */ o((e, n) => {
594
594
  e.EnterMode = n;
595
595
  const t = _n[n];
596
596
  if (!t)
597
597
  return;
598
598
  const r = e;
599
599
  r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = t.onEnter, r.Actions.OnEnterEdit = t.onEnterEdit;
600
- }, "applyTreeGridDefaultEnterMode"), Ke = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Oe = /* @__PURE__ */ new Map(), At = /* @__PURE__ */ o((e) => {
600
+ }, "applyTreeGridDefaultEnterMode"), ze = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Ie = /* @__PURE__ */ new Map(), At = /* @__PURE__ */ o((e) => {
601
601
  if (!e || !e.startsWith("data:"))
602
602
  return e;
603
- const n = Oe.get(e);
603
+ const n = Ie.get(e);
604
604
  if (n)
605
605
  return n;
606
606
  try {
@@ -608,16 +608,16 @@ ${e.slice(
608
608
  for (let G = 0; G < a.length; G += 1)
609
609
  f[G] = a.charCodeAt(G);
610
610
  const C = URL.createObjectURL(new Blob([f], { type: c }));
611
- return Oe.set(e, C), C;
611
+ return Ie.set(e, C), C;
612
612
  } catch {
613
613
  return e;
614
614
  }
615
615
  }, "resolveTreeGridInlineUrl"), Z = /* @__PURE__ */ o((e) => {
616
- if (!e || Ke(e))
616
+ if (!e || ze(e))
617
617
  return At(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"), xe = /* @__PURE__ */ o((e, n, t) => {
620
+ }, "appendNoCacheQuery"), be = /* @__PURE__ */ o((e, n, t) => {
621
621
  if (!e)
622
622
  return;
623
623
  const r = t.canEdit, i = t.highlightColumns ?? [], c = t.highlightBackgroundColor;
@@ -628,7 +628,7 @@ ${e.slice(
628
628
  a && (e.SetValue(
629
629
  n,
630
630
  `${a}Class`,
631
- c ? Pe : "",
631
+ c ? De : "",
632
632
  0
633
633
  ), e.SetValue(n, `${a}Color`, c ?? "", 0));
634
634
  });
@@ -637,7 +637,7 @@ ${e.slice(
637
637
  }
638
638
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
639
639
  }
640
- }, "syncTreeGridDeletedRowState"), _t = /* @__PURE__ */ o((e) => e ? Ke(e) || e.includes("assets") ? Z(e) : Z(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), mt = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Lt = /* @__PURE__ */ o((e, n, t, r) => {
640
+ }, "syncTreeGridDeletedRowState"), _t = /* @__PURE__ */ o((e) => e ? ze(e) || e.includes("assets") ? Z(e) : Z(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), mt = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Lt = /* @__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"), Ot = /* @__PURE__ */ o((e, n, t) => e ? { Url: _t(n) } : { Data: { Body: [gn(t) ? [] : t] } }, "buildTreeGridDataSource"), ar = /* @__PURE__ */ o(({
648
+ }, "applyTreeGridBeforeRowUndeleteAction"), Ot = /* @__PURE__ */ o((e, n, t) => e ? { Url: _t(n) } : { Data: { Body: [Rn(t) ? [] : t] } }, "buildTreeGridDataSource"), Tr = /* @__PURE__ */ o(({
649
649
  id: e,
650
650
  layoutUrl: n,
651
651
  layoutData: t,
@@ -657,7 +657,7 @@ ${e.slice(
657
657
  useDataUrl: C,
658
658
  width: G,
659
659
  height: h,
660
- languageId: g
660
+ languageId: R
661
661
  }) => ({
662
662
  id: e,
663
663
  Layout: t ? {
@@ -670,12 +670,12 @@ ${e.slice(
670
670
  } : { Url: Z(n ?? "") },
671
671
  Data: Ot(C, a, f),
672
672
  Text: {
673
- Url: un(g)
673
+ Url: un(R)
674
674
  },
675
675
  width: G,
676
676
  height: h,
677
677
  Debug: "Error"
678
- }), "buildTreeGridInitializationOptions"), Ie = /* @__PURE__ */ o((e) => Rn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), be = /* @__PURE__ */ o((e) => {
678
+ }), "buildTreeGridInitializationOptions"), we = /* @__PURE__ */ o((e) => gn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), ye = /* @__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")
@@ -688,28 +688,28 @@ ${e.slice(
688
688
  }, "parseTreeGridPositiveNumber"), q = /* @__PURE__ */ o((e, n, t, r) => {
689
689
  if (!n || !t)
690
690
  return;
691
- const i = e.GetAttribute(n, t, r), c = be(i);
692
- return c !== void 0 ? c : be(
691
+ const i = e.GetAttribute(n, t, r), c = ye(i);
692
+ return c !== void 0 ? c : ye(
693
693
  n[`${t}${r}`]
694
694
  );
695
- }, "getTreeGridHeaderCellSpanAttribute"), xt = /* @__PURE__ */ o((e, n, t) => !n || !t || n.Fixed !== "Head" || (q(e, n, t, "Span") ?? 1) <= 1 ? !1 : (q(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), we = /* @__PURE__ */ o((e, n, t) => {
695
+ }, "getTreeGridHeaderCellSpanAttribute"), xt = /* @__PURE__ */ o((e, n, t) => !n || !t || n.Fixed !== "Head" || (q(e, n, t, "Span") ?? 1) <= 1 ? !1 : (q(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Pe = /* @__PURE__ */ o((e, n, t) => {
696
696
  const r = e.get(n);
697
697
  if (r) {
698
698
  r.add(t);
699
699
  return;
700
700
  }
701
701
  e.set(n, /* @__PURE__ */ new Set([t]));
702
- }, "addTreeGridHeaderButtonAttributeTarget"), je = /* @__PURE__ */ o((e, n, t, r) => {
702
+ }, "addTreeGridHeaderButtonAttributeTarget"), He = /* @__PURE__ */ o((e, n, t, r) => {
703
703
  const i = /* @__PURE__ */ new Map();
704
704
  return n.forEach((c, a) => {
705
705
  t.forEach((f, C) => {
706
- if (!xt(e, c, f) || (we(i, c, f), !r))
706
+ if (!xt(e, c, f) || (Pe(i, c, f), !r))
707
707
  return;
708
708
  const G = Math.floor(q(e, c, f, "Span") ?? 1), h = Math.min(t.length, C + G);
709
- for (let g = a + 1; g < n.length; g += 1) {
710
- const m = n[g];
709
+ for (let R = a + 1; R < n.length; R += 1) {
710
+ const m = n[R];
711
711
  for (let b = C; b < h; b += 1)
712
- we(i, m, t[b]);
712
+ Pe(i, m, t[b]);
713
713
  }
714
714
  });
715
715
  }), i;
@@ -718,19 +718,19 @@ ${e.slice(
718
718
  if (!n || !t || n.Fixed !== "Head")
719
719
  return !1;
720
720
  const i = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((f) => f.Fixed === "Head") : [], c = typeof e.GetCols == "function" ? e.GetCols() : [];
721
- return !i.length || !c.length ? !1 : ((a = je(
721
+ return !i.length || !c.length ? !1 : ((a = He(
722
722
  e,
723
723
  i,
724
724
  c,
725
725
  r
726
726
  ).get(n)) == null ? void 0 : a.has(t)) === !0;
727
- }, "isTreeGridGroupHeaderSortButtonTarget"), ye = /* @__PURE__ */ o((e, n, t = !1, r = !0) => {
727
+ }, "isTreeGridGroupHeaderSortButtonTarget"), $e = /* @__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((h) => h.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
729
729
  if (!c.length || !a.length)
730
730
  return;
731
731
  const f = /* @__PURE__ */ new Set();
732
732
  let C = 0;
733
- const G = je(
733
+ const G = He(
734
734
  e,
735
735
  c,
736
736
  a,
@@ -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((h, g) => {
742
+ G.forEach((h, R) => {
743
743
  h.forEach((m) => {
744
- e.GetAttribute(g, m, Se) !== "" && (e.SetAttribute(g, m, Se, "", 0, 0), f.add(g), C += 1);
744
+ e.GetAttribute(R, m, Re) !== "" && (e.SetAttribute(R, m, Re, "", 0, 0), f.add(R), C += 1);
745
745
  });
746
746
  });
747
747
  } finally {
@@ -749,7 +749,7 @@ ${e.slice(
749
749
  }
750
750
  f.size && (t && f.forEach((h) => {
751
751
  typeof e.RefreshRow == "function" && e.RefreshRow(h);
752
- }), De(n, "group header button attribute apply"), Fe(n, "group header button attribute apply", i, {
752
+ }), Ne(n, "group header button attribute apply"), ve(n, "group header button attribute apply", i, {
753
753
  updatedCellCount: C,
754
754
  updatedRowCount: f.size
755
755
  }));
@@ -760,7 +760,7 @@ ${e.slice(
760
760
  }, "isVisibleTreeGridRow"), v = /* @__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"), R = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !wt(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), ze = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), V = /* @__PURE__ */ o((e) => {
763
+ }, "isAddedTreeGridRow"), g = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !wt(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), re = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), V = /* @__PURE__ */ o((e) => {
764
764
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
765
765
  const n = [];
766
766
  let t = e.GetFirst();
@@ -771,58 +771,58 @@ ${e.slice(
771
771
  return Object.values(e.Rows ?? {});
772
772
  }, "getTreeGridRows"), Q = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ o((e) => {
773
773
  e && Q.delete(e);
774
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), He = /* @__PURE__ */ o((e, n) => {
774
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), Ye = /* @__PURE__ */ o((e, n) => {
775
775
  const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], i = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
776
776
  return Number.isFinite(i) && i > 1 ? Math.floor(i) : 1;
777
777
  }, "getTreeGridRowSpanCount"), yt = /* @__PURE__ */ o((e) => {
778
778
  const n = /* @__PURE__ */ new WeakMap();
779
779
  let t = null, r = -1;
780
780
  return V(e).forEach((i, c) => {
781
- if (!R(i)) {
781
+ if (!g(i)) {
782
782
  n.set(i, null);
783
783
  return;
784
784
  }
785
- const a = He(i, Ne);
785
+ const a = Ye(i, ke);
786
786
  if (a > 1) {
787
787
  t = i, r = c + a - 1, n.set(i, i);
788
788
  return;
789
789
  }
790
790
  n.set(i, t && c <= r ? t : null), c >= r && (t = null, r = -1);
791
791
  }), n;
792
- }, "createTreeGridSelectionRowSpanAnchorRowMap"), re = /* @__PURE__ */ o((e, n) => {
793
- if (!n || !R(n))
792
+ }, "createTreeGridSelectionRowSpanAnchorRowMap"), ie = /* @__PURE__ */ o((e, n) => {
793
+ if (!n || !g(n))
794
794
  return null;
795
795
  let t = Q.get(e);
796
796
  return t != null && t.has(n) || (t = yt(e), Q.set(e, t)), t.get(n) ?? null;
797
- }, "getTreeGridSelectionRowSpanAnchorRow"), Ye = /* @__PURE__ */ o((e, n) => {
798
- const t = re(e, n);
797
+ }, "getTreeGridSelectionRowSpanAnchorRow"), Ze = /* @__PURE__ */ o((e, n) => {
798
+ const t = ie(e, n);
799
799
  if (!t)
800
800
  return [];
801
- const r = He(t, Ne), i = [];
801
+ const r = Ye(t, ke), i = [];
802
802
  let c = t;
803
803
  for (let a = 0; c && a < r; a += 1)
804
- R(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
804
+ g(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
805
805
  return i;
806
806
  }, "getTreeGridSelectionRowSpanRows"), Pt = /* @__PURE__ */ o((e) => {
807
807
  const n = /* @__PURE__ */ new Set();
808
808
  return (e.GetSelRows() ?? []).forEach((t) => {
809
- Ye(e, t).forEach((r) => {
809
+ Ze(e, t).forEach((r) => {
810
810
  n.add(r);
811
811
  });
812
812
  }), [...n];
813
813
  }, "getTreeGridSelectedRowSpanRows"), $t = /* @__PURE__ */ o((e, n) => {
814
814
  if (!e)
815
815
  return;
816
- const t = ze(e);
816
+ const t = re(e);
817
817
  V(e).forEach((r) => {
818
- R(r) && n.set(
818
+ g(r) && n.set(
819
819
  r,
820
- new Map(t.map((i) => [i, $e(e, r, i)]))
820
+ new Map(t.map((i) => [i, Fe(e, r, i)]))
821
821
  );
822
822
  });
823
823
  }, "captureTreeGridChangeBaselines"), ee = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Dt = /* @__PURE__ */ o((e, n, t) => {
824
824
  const r = n;
825
- return ze(e).some((i) => i !== t && ee(r[`${i}Changed`]));
825
+ return re(e).some((i) => i !== t && ee(r[`${i}Changed`]));
826
826
  }, "hasOtherTreeGridChangedCells"), Ft = /* @__PURE__ */ o((e, n, t) => {
827
827
  const r = n;
828
828
  r[`${t}Changed`] = 0, !v(n) && !P(n) && !Dt(e, n, t) && (r.Changed = 0);
@@ -839,9 +839,9 @@ ${e.slice(
839
839
  baselineMap: c,
840
840
  highlightRefresh: a
841
841
  }) => {
842
- if (!R(t) || v(t) || P(t))
842
+ if (!g(t) || v(t) || P(t))
843
843
  return;
844
- const f = Nt(c, t, r), C = $e(n, t, r);
844
+ const f = Nt(c, t, r), C = Fe(n, t, r);
845
845
  if (f !== void 0 && C === f) {
846
846
  fn(e, { row: t, col: r }), Ft(n, t, r);
847
847
  return;
@@ -852,46 +852,46 @@ ${e.slice(
852
852
  backgroundColor: i,
853
853
  refresh: a
854
854
  });
855
- }, "syncTreeGridChangedCellHighlight"), kt = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), Ze = /* @__PURE__ */ o((e, n, t) => {
855
+ }, "syncTreeGridChangedCellHighlight"), kt = /* @__PURE__ */ o((e, n, t) => !n || !t || !g(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), qe = /* @__PURE__ */ o((e, n, t) => {
856
856
  const r = e.GetAttribute(n, t, "Color");
857
857
  if (typeof r == "number")
858
- return en(r);
858
+ return nn(r);
859
859
  if (typeof r == "string")
860
860
  return r.trim() || void 0;
861
- }, "getExplicitTreeGridCellColor"), Ut = /* @__PURE__ */ o((e, n, t) => Ze(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), ie = /* @__PURE__ */ o((e, n, t) => {
862
- if (!n || !t || !R(n))
861
+ }, "getExplicitTreeGridCellColor"), Ut = /* @__PURE__ */ o((e, n, t) => qe(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), oe = /* @__PURE__ */ o((e, n, t) => {
862
+ if (!n || !t || !g(n))
863
863
  return !1;
864
864
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
865
865
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
866
866
  }, "isTreeGridFocusedCellState"), M = /* @__PURE__ */ o((e, n, t) => {
867
- if (!n || !t || !R(n))
867
+ if (!n || !t || !g(n))
868
868
  return !1;
869
869
  const r = e.IsSelected(n, t);
870
870
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
871
871
  return !0;
872
- const i = re(e, n);
872
+ const i = ie(e, n);
873
873
  if (!i || i === n)
874
874
  return !1;
875
875
  const c = e.IsSelected(i, t);
876
876
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
877
- }, "isTreeGridSelectedCellState"), qe = /* @__PURE__ */ o((e) => {
878
- if (!he.length)
877
+ }, "isTreeGridSelectedCellState"), Qe = /* @__PURE__ */ o((e) => {
878
+ if (!ge.length)
879
879
  return !1;
880
880
  const n = e.split(/\s+/).filter(Boolean);
881
- return he.every(
881
+ return ge.every(
882
882
  (t) => n.includes(t)
883
883
  );
884
884
  }, "hasTreeGridChangedCellDisplayClass"), Bt = /* @__PURE__ */ o((e) => {
885
- if (!(!e || e.split(/\s+/).includes(Ge) || !qe(e)))
886
- return `${e} ${Ge}`;
887
- }, "appendTreeGridSelectedChangedCellDisplayClass"), Vt = /* @__PURE__ */ o((e) => !e || !R(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && qe(t)), "hasTreeGridChangedCellDisplayClassInRow"), Mt = /* @__PURE__ */ o((e, n) => {
885
+ if (!(!e || e.split(/\s+/).includes(he) || !Qe(e)))
886
+ return `${e} ${he}`;
887
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), Vt = /* @__PURE__ */ o((e) => !e || !g(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Qe(t)), "hasTreeGridChangedCellDisplayClassInRow"), Mt = /* @__PURE__ */ o((e, n) => {
888
888
  if (!n || !Vt(n) || typeof e.RefreshRow != "function")
889
889
  return;
890
890
  const t = n;
891
891
  window.setTimeout(() => {
892
892
  e.RefreshRow(t);
893
893
  }, 0);
894
- }, "scheduleTreeGridSelectionChangedClassRefresh"), oe = /* @__PURE__ */ o((e, n) => {
894
+ }, "scheduleTreeGridSelectionChangedClassRefresh"), se = /* @__PURE__ */ o((e, n) => {
895
895
  if (!n.length || typeof window > "u" || typeof e.RefreshRow != "function")
896
896
  return;
897
897
  const t = [...new Set(n)];
@@ -903,20 +903,27 @@ ${e.slice(
903
903
  }, "scheduleTreeGridRowsRefresh"), Xt = /* @__PURE__ */ o((e, n) => {
904
904
  if (!n)
905
905
  return;
906
- const t = Ye(e, n);
907
- t.length <= 1 || oe(e, t);
906
+ const t = Ze(e, n);
907
+ t.length <= 1 || se(e, t);
908
908
  }, "scheduleTreeGridSelectionRowSpanRefresh"), Wt = /* @__PURE__ */ o((e) => {
909
- const n = V(e).filter((t) => R(t) && re(e, t));
910
- oe(e, n);
911
- }, "scheduleTreeGridSelectionRowSpanRefreshAll"), Qe = /* @__PURE__ */ o((e, n, t, r) => {
912
- if (!(!n || r === void 0 || !kt(e, n, t) || v(n) || P(n) || ie(e, n, t) || M(e, n, t) || Ut(e, n, t)))
909
+ const n = V(e).filter((t) => g(t) && ie(e, t));
910
+ se(e, n);
911
+ }, "scheduleTreeGridSelectionRowSpanRefreshAll"), en = /* @__PURE__ */ o((e, n, t, r) => {
912
+ if (!(!n || r === void 0 || !kt(e, n, t) || v(n) || P(n) || oe(e, n, t) || M(e, n, t) || Ut(e, n, t)))
913
913
  return r;
914
914
  }, "getEditableTreeGridCellDefaultColor"), y = /* @__PURE__ */ o((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Jt = /* @__PURE__ */ o((e, n, t) => bn.some(
915
915
  (r) => y(e, n, t, r)
916
- ), "isTreeGridNativeErrorBackgroundColor"), en = /* @__PURE__ */ o((e) => {
916
+ ), "isTreeGridNativeErrorBackgroundColor"), nn = /* @__PURE__ */ o((e) => {
917
917
  if (!(e === void 0 || !Number.isFinite(e)))
918
918
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
919
- }, "toTreeGridCssHexColor"), ne = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), nn = /* @__PURE__ */ o((e, n, t) => ne(e, n, t) !== "", "hasTreeGridCellError"), Kt = /* @__PURE__ */ o((e) => {
919
+ }, "toTreeGridCssHexColor"), ne = /* @__PURE__ */ o((e, n, t) => !n || !t || !g(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), ce = /* @__PURE__ */ o((e, n, t) => ne(e, n, t) !== "", "hasTreeGridCellError"), Kt = /* @__PURE__ */ o((e, n) => {
920
+ if (!n)
921
+ return;
922
+ let t = !1;
923
+ re(e).forEach((r) => {
924
+ ce(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
925
+ }), t && e.RefreshRow(n);
926
+ }, "clearTreeGridRowErrors"), jt = /* @__PURE__ */ o((e) => {
920
927
  const n = e == null ? void 0 : e.target;
921
928
  if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
922
929
  return null;
@@ -926,12 +933,12 @@ ${e.slice(
926
933
  return c instanceof HTMLElement ? c : i instanceof HTMLElement ? i : null;
927
934
  }
928
935
  return null;
929
- }, "getTreeGridMouseEventAnchorElement"), jt = /* @__PURE__ */ o((e, n) => {
930
- if (!e || !n || !R(e))
936
+ }, "getTreeGridMouseEventAnchorElement"), zt = /* @__PURE__ */ o((e, n) => {
937
+ if (!e || !n || !g(e))
931
938
  return !1;
932
939
  const t = e;
933
940
  return ee(t[`${n}Changed`]) || ee(t.Changed);
934
- }, "isChangedTreeGridRowOrCell"), zt = /* @__PURE__ */ o((e, n, t) => Pn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Ht = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Yt = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Zt = /* @__PURE__ */ o(({
941
+ }, "isChangedTreeGridRowOrCell"), Ht = /* @__PURE__ */ o((e, n, t) => Pn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Yt = /* @__PURE__ */ o((e, n, t) => !n || !t || !g(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Zt = /* @__PURE__ */ o((e, n, t) => !n || !t || !g(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), qt = /* @__PURE__ */ o(({
935
942
  grid: e,
936
943
  row: n,
937
944
  col: t,
@@ -944,50 +951,50 @@ ${e.slice(
944
951
  changedCellBackgroundColor: G,
945
952
  editableCellBackgroundColorValue: h
946
953
  }) => {
947
- if (ie(e, n, t))
954
+ if (oe(e, n, t))
948
955
  return a;
949
956
  if (M(e, n, t))
950
957
  return f;
951
- if (Ht(e, n, t) && (y(r, i, c, mn) || y(r, i, c, Ln)) || Yt(e, n, t) && (y(r, i, c, On) || y(r, i, c, xn) || y(r, i, c, In)))
958
+ if (Yt(e, n, t) && (y(r, i, c, mn) || y(r, i, c, Ln)) || Zt(e, n, t) && (y(r, i, c, On) || y(r, i, c, xn) || y(r, i, c, In)))
952
959
  return C;
953
- if (!nn(e, n, t) || !Jt(r, i, c))
960
+ if (!ce(e, n, t) || !Jt(r, i, c))
954
961
  return;
955
- const g = Ze(e, n, t);
956
- if (g)
957
- return g;
962
+ const R = qe(e, n, t);
963
+ if (R)
964
+ return R;
958
965
  if (v(n) || P(n))
959
966
  return wn;
960
- if (jt(n, t))
967
+ if (zt(n, t))
961
968
  return G;
962
- const m = Qe(
969
+ const m = en(
963
970
  e,
964
971
  n,
965
972
  t,
966
973
  h
967
974
  );
968
- return en(m) ?? yn;
969
- }, "resolveTreeGridStateBackgroundColor"), qt = /* @__PURE__ */ o((e, n) => {
975
+ return nn(m) ?? yn;
976
+ }, "resolveTreeGridStateBackgroundColor"), Qt = /* @__PURE__ */ o((e, n) => {
970
977
  const t = e.split(/\s+/).filter(Boolean);
971
978
  return t.includes(n) ? e : [...t, n].join(" ");
972
- }, "appendTreeGridClassToken"), Qt = /* @__PURE__ */ o((e, n, t, r) => !nn(e, n, t) || !n ? r : qt(r, Sn), "appendTreeGridErrorCellDisplayClass"), er = /* @__PURE__ */ o((e, n, t, r) => {
973
- const i = Qt(e, n, t, r);
979
+ }, "appendTreeGridClassToken"), er = /* @__PURE__ */ o((e, n, t, r) => !ce(e, n, t) || !n ? r : Qt(r, Sn), "appendTreeGridErrorCellDisplayClass"), nr = /* @__PURE__ */ o((e, n, t, r) => {
980
+ const i = er(e, n, t, r);
974
981
  if (!M(e, n, t))
975
982
  return i === r ? void 0 : i;
976
983
  const c = Bt(i) ?? i;
977
984
  return c === r ? void 0 : c;
978
- }, "resolveTreeGridCellDisplayClass"), Tr = /* @__PURE__ */ o((e) => {
985
+ }, "resolveTreeGridCellDisplayClass"), Er = /* @__PURE__ */ o((e) => {
979
986
  if (!e)
980
987
  return !1;
981
988
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
982
989
  let n = e.GetFirst();
983
990
  for (; n; ) {
984
- if (R(n))
991
+ if (g(n))
985
992
  return !0;
986
993
  n = e.GetNext(n);
987
994
  }
988
995
  return !1;
989
996
  }
990
- return Object.values(e.Rows ?? {}).some((n) => R(n));
997
+ return Object.values(e.Rows ?? {}).some((n) => g(n));
991
998
  }, "hasTreeGridDisplayDataRows"), pr = /* @__PURE__ */ o((e, n, t) => {
992
999
  var i;
993
1000
  L(e);
@@ -997,7 +1004,7 @@ ${e.slice(
997
1004
  Data: { Body: [n || []] },
998
1005
  Url: ""
999
1006
  }, e.ReloadBody(t);
1000
- }, "replaceTreeGridBodyData"), Er = /* @__PURE__ */ o(({
1007
+ }, "replaceTreeGridBodyData"), Cr = /* @__PURE__ */ o(({
1001
1008
  id: e,
1002
1009
  latestEventHandlersRef: n,
1003
1010
  layoutHasExplicitEnterModeRef: t,
@@ -1009,18 +1016,18 @@ ${e.slice(
1009
1016
  focusedCellBackgroundColorRef: C,
1010
1017
  selectedCellBackgroundColorRef: G,
1011
1018
  hoverCellBackgroundColorRef: h,
1012
- changedCellBaselineRef: g,
1019
+ changedCellBaselineRef: R,
1013
1020
  treeGridInstanceRef: m,
1014
1021
  treeGridInitStartedAtRef: b,
1015
1022
  latestLayoutOverridesRef: tn,
1016
- latestToolbarTotalCountFormulaRef: se,
1017
- latestSuppressCfgRef: ce,
1023
+ latestToolbarTotalCountFormulaRef: le,
1024
+ latestSuppressCfgRef: de,
1018
1025
  latestHideChildHeaderSortButtonsRef: X,
1019
1026
  latestSelectionScopeRef: rn,
1020
- latestDisabledAnimationsRef: le,
1027
+ latestDisabledAnimationsRef: ue,
1021
1028
  appliedLayoutOverridesRef: on,
1022
1029
  appliedBodyDataPropRef: sn,
1023
- hasAppliedInitialLayoutRef: de,
1030
+ hasAppliedInitialLayoutRef: fe,
1024
1031
  syncHasDisplayDataRows: w,
1025
1032
  setIsTreeGridReady: cn,
1026
1033
  showErrorTooltip: ln,
@@ -1034,45 +1041,45 @@ ${e.slice(
1034
1041
  L(s), w(s);
1035
1042
  }), window.TGSetEvent("OnRowRemove", e, (s) => {
1036
1043
  L(s), I(), w(s);
1037
- }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, p) => {
1038
- const E = ne(s, l, d);
1039
- if (!E) {
1044
+ }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, E) => {
1045
+ const p = ne(s, l, d);
1046
+ if (!p) {
1040
1047
  I();
1041
1048
  return;
1042
1049
  }
1043
- const _ = Kt(p);
1050
+ const _ = jt(E);
1044
1051
  if (!_) {
1045
1052
  I();
1046
1053
  return;
1047
1054
  }
1048
- s.HideTip(), ln({ anchorEl: _, row: l, col: d, message: E });
1055
+ s.HideTip(), ln({ anchorEl: _, row: l, col: d, message: p });
1049
1056
  }), window.TGSetEvent("OnTip", e, (s, l, d, u) => ne(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
1050
- var p;
1057
+ var E;
1051
1058
  if (d !== 3)
1052
1059
  return d;
1053
- const u = (p = n.current) == null ? void 0 : p.onBeforeRowUndelete;
1060
+ const u = (E = n.current) == null ? void 0 : E.onBeforeRowUndelete;
1054
1061
  if (typeof u != "function")
1055
1062
  return d;
1056
- const T = /* @__PURE__ */ o((E) => {
1063
+ const T = /* @__PURE__ */ o((p) => {
1057
1064
  window.setTimeout(() => {
1058
1065
  Lt(
1059
1066
  m.current ?? s,
1060
1067
  l,
1061
- E,
1068
+ p,
1062
1069
  w
1063
1070
  );
1064
1071
  }, 0);
1065
1072
  }, "scheduleAction");
1066
1073
  try {
1067
- const E = u(s, l);
1068
- return mt(E) ? (E.then(T).catch(() => {
1074
+ const p = u(s, l);
1075
+ return mt(p) ? (p.then(T).catch(() => {
1069
1076
  T("undelete");
1070
- }), 0) : (T(E), 0);
1077
+ }), 0) : (T(p), 0);
1071
1078
  } catch {
1072
1079
  return T("undelete"), 0;
1073
1080
  }
1074
1081
  }), typeof (A == null ? void 0 : A.onRowClick) == "function" || typeof (A == null ? void 0 : A.onInternalCellClick) == "function") {
1075
- const s = W((l, d, u, T, p, E) => {
1082
+ const s = W((l, d, u, T, E, p) => {
1076
1083
  var _, O;
1077
1084
  (O = (_ = n.current) == null ? void 0 : _.onRowClick) == null || O.call(
1078
1085
  _,
@@ -1080,33 +1087,33 @@ ${e.slice(
1080
1087
  d,
1081
1088
  u,
1082
1089
  T,
1083
- p,
1084
- E
1090
+ E,
1091
+ p
1085
1092
  );
1086
1093
  }, 300);
1087
- window.TGSetEvent("OnClick", e, (l, d, u, T, p, E) => {
1088
- var O, fe, ae;
1089
- const _ = (fe = (O = n.current) == null ? void 0 : O.onInternalCellClick) == null ? void 0 : fe.call(
1094
+ window.TGSetEvent("OnClick", e, (l, d, u, T, E, p) => {
1095
+ var O, Te, Ee;
1096
+ const _ = (Te = (O = n.current) == null ? void 0 : O.onInternalCellClick) == null ? void 0 : Te.call(
1090
1097
  O,
1091
1098
  l,
1092
1099
  d,
1093
1100
  u,
1094
1101
  T,
1095
- p,
1096
- E
1102
+ E,
1103
+ p
1097
1104
  );
1098
1105
  if (_ !== void 0)
1099
1106
  return _;
1100
- typeof ((ae = n.current) == null ? void 0 : ae.onRowClick) == "function" && s(l, d, u, T, p, E);
1107
+ typeof ((Ee = n.current) == null ? void 0 : Ee.onRowClick) == "function" && s(l, d, u, T, E, p);
1101
1108
  });
1102
1109
  }
1103
1110
  (typeof (A == null ? void 0 : A.onClickButton) == "function" || typeof (A == null ? void 0 : A.onInternalButtonClick) == "function") && window.TGSetEvent(
1104
1111
  "OnClickButton",
1105
1112
  e,
1106
1113
  (s, l, d, u) => {
1107
- var p, E, _, O;
1108
- const T = (E = (p = n.current) == null ? void 0 : p.onInternalButtonClick) == null ? void 0 : E.call(
1109
- p,
1114
+ var E, p, _, O;
1115
+ const T = (p = (E = n.current) == null ? void 0 : E.onInternalButtonClick) == null ? void 0 : p.call(
1116
+ E,
1110
1117
  s,
1111
1118
  l,
1112
1119
  d,
@@ -1126,15 +1133,15 @@ ${e.slice(
1126
1133
  "OnKeyDown",
1127
1134
  e,
1128
1135
  (s, l, d, u, T) => {
1129
- var p, E;
1130
- return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, s, l, d, u, T);
1136
+ var E, p;
1137
+ return (p = (E = n.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : p.call(E, s, l, d, u, T);
1131
1138
  }
1132
1139
  ), window.TGSetEvent(
1133
1140
  "OnKeyPress",
1134
1141
  e,
1135
1142
  (s, l, d, u, T) => {
1136
- var p, E;
1137
- return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, s, l, d, u, T);
1143
+ var E, p;
1144
+ return (p = (E = n.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : p.call(E, s, l, d, u, T);
1138
1145
  }
1139
1146
  )), window.TGSetEvent("OnStartEdit", e, (s, l, d) => {
1140
1147
  var u, T;
@@ -1145,13 +1152,13 @@ ${e.slice(
1145
1152
  d
1146
1153
  );
1147
1154
  }), window.TGSetEvent("OnRowDelete", e, (s, l, d) => {
1148
- var T, p;
1149
- L(s), I();
1150
- const u = P(l) ? Te(l) : [];
1151
- xe(s, l, {
1155
+ var T, E;
1156
+ L(s), I(), Kt(s, l), s.SelectRow(l, 0);
1157
+ const u = P(l) ? pe(l) : [];
1158
+ be(s, l, {
1152
1159
  canEdit: c.current !== !1 ? 2 : void 0,
1153
1160
  highlightColumns: u
1154
- }), w(s), (p = (T = n.current) == null ? void 0 : T.onRowDelete) == null || p.call(
1161
+ }), w(s), (E = (T = n.current) == null ? void 0 : T.onRowDelete) == null || E.call(
1155
1162
  T,
1156
1163
  s,
1157
1164
  l,
@@ -1160,55 +1167,55 @@ ${e.slice(
1160
1167
  }), window.TGSetEvent("OnRowUndelete", e, (s, l) => {
1161
1168
  var u, T;
1162
1169
  L(s), I();
1163
- const d = P(l) ? Te(l) : [];
1164
- xe(s, l, {
1170
+ const d = P(l) ? pe(l) : [];
1171
+ be(s, l, {
1165
1172
  canEdit: c.current !== !1 ? 1 : void 0,
1166
1173
  highlightColumns: d,
1167
1174
  highlightBackgroundColor: d.length ? f.current : void 0
1168
1175
  }), w(s), (T = (u = n.current) == null ? void 0 : u.onRowUndelete) == null || T.call(u, s, l);
1169
1176
  }), window.TGSetEvent("OnGetDefaultColor", e, (s, l, d) => {
1170
- if (!(!r.current || !R(l)))
1171
- return Qe(
1177
+ if (!(!r.current || !g(l)))
1178
+ return en(
1172
1179
  s,
1173
1180
  l,
1174
1181
  d,
1175
1182
  a.current
1176
1183
  );
1177
- }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, p, E) => {
1178
- if (!E)
1179
- return Zt({
1184
+ }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, E, p) => {
1185
+ if (!p)
1186
+ return qt({
1180
1187
  grid: s,
1181
1188
  row: l,
1182
1189
  col: d,
1183
1190
  r: u,
1184
1191
  g: T,
1185
- b: p,
1192
+ b: E,
1186
1193
  focusedCellBackgroundColor: C.current,
1187
1194
  selectedCellBackgroundColor: G.current,
1188
1195
  hoverCellBackgroundColor: h.current,
1189
1196
  changedCellBackgroundColor: f.current,
1190
1197
  editableCellBackgroundColorValue: a.current
1191
1198
  });
1192
- }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => er(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1193
- var p, E;
1194
- if (I(), i.current && R(l)) {
1195
- const _ = !zt(s, l, d) || M(s, l, d) && !ie(s, l, d);
1199
+ }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => nr(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1200
+ var E, p;
1201
+ if (I(), i.current && g(l)) {
1202
+ const _ = !Ht(s, l, d) || M(s, l, d) && !oe(s, l, d);
1196
1203
  vt({
1197
1204
  gridId: e,
1198
1205
  grid: s,
1199
1206
  row: l,
1200
1207
  col: d,
1201
1208
  backgroundColor: f.current,
1202
- baselineMap: g.current,
1209
+ baselineMap: R.current,
1203
1210
  highlightRefresh: _
1204
1211
  });
1205
1212
  }
1206
- const T = ((p = n.current) == null ? void 0 : p.onAfterValueChanged) ?? ((E = n.current) == null ? void 0 : E.onRowChange);
1213
+ const T = ((E = n.current) == null ? void 0 : E.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1207
1214
  T == null || T(s, l, d, u);
1208
1215
  });
1209
- const ue = W((s) => {
1216
+ const ae = W((s) => {
1210
1217
  var u, T;
1211
- const l = s.GetSelRows() ?? [], d = En(s, l, {
1218
+ const l = s.GetSelRows() ?? [], d = pn(s, l, {
1212
1219
  selectionScope: rn.current
1213
1220
  });
1214
1221
  (T = (u = n.current) == null ? void 0 : u.onSelect) == null || T.call(
@@ -1217,14 +1224,14 @@ ${e.slice(
1217
1224
  );
1218
1225
  }, 100);
1219
1226
  window.TGSetEvent("OnSelect", e, (s, l, d, u, T) => {
1220
- var E;
1227
+ var p;
1221
1228
  if (T)
1222
1229
  return;
1223
- const p = Pt(s);
1224
- Mt(s, l), oe(s, p), Xt(s, l), Le(s, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && ue(s);
1230
+ const E = Pt(s);
1231
+ Mt(s, l), se(s, E), Xt(s, l), xe(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && ae(s);
1225
1232
  }), window.TGSetEvent("OnSelectAll", e, (s, l, d, u) => {
1226
1233
  var T;
1227
- u || (Wt(s), Le(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && ue(s));
1234
+ u || (Wt(s), xe(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && ae(s));
1228
1235
  }), typeof (A == null ? void 0 : A.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
1229
1236
  var u, T;
1230
1237
  (T = (u = n.current) == null ? void 0 : u.onSave) == null || T.call(
@@ -1241,7 +1248,7 @@ ${e.slice(
1241
1248
  l,
1242
1249
  X.current !== !1
1243
1250
  )))
1244
- return De(e, "group header sort blocked"), hn(e, "group header sort blocked", {
1251
+ return Ne(e, "group header sort blocked"), hn(e, "group header sort blocked", {
1245
1252
  rowId: (d = s.ARow) == null ? void 0 : d.id,
1246
1253
  col: l
1247
1254
  }), -1;
@@ -1254,7 +1261,7 @@ ${e.slice(
1254
1261
  }), window.TGSetEvent("OnSearchFinish", e, (s) => {
1255
1262
  L(s);
1256
1263
  }), window.TGSetEvent("OnRenderStart", e, (s) => {
1257
- L(s), Y(s, e), ye(
1264
+ L(s), Y(s, e), $e(
1258
1265
  s,
1259
1266
  e,
1260
1267
  !1,
@@ -1264,24 +1271,24 @@ ${e.slice(
1264
1271
  Y(s, e);
1265
1272
  }), window.TGSetEvent("OnDataGet", e, (s, l, d) => {
1266
1273
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1267
- t.current = ge(d);
1274
+ t.current = Ae(d);
1268
1275
  const u = H(
1269
1276
  d,
1277
+ ue.current,
1270
1278
  le.current,
1271
- se.current,
1272
- ce.current
1279
+ de.current
1273
1280
  );
1274
1281
  return u === d ? null : u;
1275
1282
  }
1276
1283
  return null;
1277
1284
  }), window.TGSetEvent("OnDataParse", e, (s, l, d) => {
1278
1285
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1279
- t.current = ge(d);
1286
+ t.current = Ae(d);
1280
1287
  const u = H(
1281
1288
  d,
1289
+ ue.current,
1282
1290
  le.current,
1283
- se.current,
1284
- ce.current
1291
+ de.current
1285
1292
  );
1286
1293
  return u === d ? null : u;
1287
1294
  }
@@ -1291,16 +1298,16 @@ ${e.slice(
1291
1298
  e,
1292
1299
  W((s) => {
1293
1300
  var l, d;
1294
- if (!de.current) {
1301
+ if (!fe.current) {
1295
1302
  const u = tn.current;
1296
- de.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && Rt(s, An), pn(s, u), m.current = s, on.current = u, sn.current = Ie(s), g.current = /* @__PURE__ */ new WeakMap(), $t(s, g.current), w(s), cn(!0), ye(
1303
+ fe.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && gt(s, An), En(s, u), m.current = s, on.current = u, sn.current = we(s), R.current = /* @__PURE__ */ new WeakMap(), $t(s, R.current), w(s), cn(!0), $e(
1297
1304
  s,
1298
1305
  e,
1299
1306
  !0,
1300
1307
  X.current !== !1
1301
- ), Fe(e, "TreeGrid init ready", b.current, {
1308
+ ), ve(e, "TreeGrid init ready", b.current, {
1302
1309
  bodyRowCount: bt(
1303
- Ie(s)
1310
+ we(s)
1304
1311
  )
1305
1312
  }), b.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, s);
1306
1313
  }
@@ -1308,13 +1315,13 @@ ${e.slice(
1308
1315
  );
1309
1316
  }, "bindTreeGridEvents");
1310
1317
  export {
1311
- fr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1312
- Er as bindTreeGridEvents,
1313
- ar as buildTreeGridInitializationOptions,
1318
+ ar as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1319
+ Cr as bindTreeGridEvents,
1320
+ Tr as buildTreeGridInitializationOptions,
1314
1321
  $t as captureTreeGridChangeBaselines,
1315
1322
  bt as getTreeGridBodyDataCount,
1316
- Tr as hasTreeGridDisplayDataRows,
1317
- ge as hasTreeGridExplicitEnterMode,
1323
+ Er as hasTreeGridDisplayDataRows,
1324
+ Ae as hasTreeGridExplicitEnterMode,
1318
1325
  pr as replaceTreeGridBodyData,
1319
1326
  vt as syncTreeGridChangedCellHighlight
1320
1327
  };