@owp/core 2.5.38 → 2.5.40

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
- var Sn = Object.defineProperty;
2
- var o = (e, n) => Sn(e, "name", { value: n, configurable: !0 });
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 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
- import { applyTreeGridLayoutToGrid as Ln } from "./treeGridLayout.js";
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 _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
- import { countTreeGridPerf as Je, logTreeGridPerf as Pn, measureTreeGridPerf as Ke } from "./utils/perf.js";
1
+ var hn = Object.defineProperty;
2
+ var o = (e, n) => hn(e, "name", { value: n, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as Rn, TREEGRID_CELL_CHANGED_CLASS as Me, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as An } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as q, getTreeGridCellComparableValue as ue, clearTreeGridCellHighlightById as Xe, highlightTreeGridCellById as We, normalizeTreeGridExternalRows as gn, getTreeGridAddedRowBaselineValue as _n, removeTreeGridAddedRowHighlightColumn as mn, appendTreeGridAddedRowHighlightColumn as Ln } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as On } from "./treeGridLayout.js";
6
+ import { resolveTreeGridSelectedRows as xn } from "./treeGridSelection.js";
7
+ import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as In, 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 bn, TREE_GRID_ERROR_CELL_CLASS as Dn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as yn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as Pn } from "./treeGridTheme.js";
8
+ import { countTreeGridPerf as Je, logTreeGridPerf as $n, 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
- import { isEmpty as $n } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
10
+ import { isEmpty as vn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
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 = {
12
+ const yr = 300, Bn = 3, Nn = {
13
13
  1: {
14
14
  onEnter: "TabDownEdit",
15
15
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -26,37 +26,37 @@ const Dr = 300, vn = 3, Bn = {
26
26
  onEnter: "TabRightEditAdd",
27
27
  onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
28
28
  }
29
- }, Nn = [240, 240, 240], kn = [248, 248, 248], Un = [255, 255, 255], Vn = [255, 255, 254], Mn = [242, 242, 242], Xn = [
29
+ }, kn = [240, 240, 240], Un = [248, 248, 248], Vn = [255, 255, 255], Mn = [255, 255, 254], Xn = [242, 242, 242], Wn = [
30
30
  [255, 210, 210],
31
31
  [249, 209, 209],
32
32
  [115, 16, 11]
33
- ], Wn = "transparent", xe = "Button", Jn = /* @__PURE__ */ new Set(["Panel"]), we = Me.split(/\s+/).filter(
33
+ ], Jn = "transparent", xe = "Button", Kn = /* @__PURE__ */ new Set(["Panel"]), Ie = Me.split(/\s+/).filter(
34
34
  Boolean
35
- ), Kn = /* @__PURE__ */ new Set([
35
+ ), jn = /* @__PURE__ */ new Set([
36
36
  "Text",
37
37
  "Lines",
38
38
  "Int",
39
39
  "Float",
40
40
  "Date",
41
41
  "Pass"
42
- ]), Ie = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), jn = {
42
+ ]), we = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), Hn = {
43
43
  Visible: "1",
44
44
  CanHide: "0",
45
45
  Delete: "1",
46
46
  Width: "33"
47
- }, Hn = {
47
+ }, zn = {
48
48
  Spanned: "1"
49
49
  }, W = {
50
50
  OnClickCell: "Focus"
51
51
  }, J = {
52
52
  OnClickPanelSelectAll: "SelectAll OR DeselectAll"
53
- }, je = "Panel", He = ["Formula", "FormulaFormula"], zn = /<Grid\b[^>]*>/i, Yn = /<\/Grid\s*>/i, Zn = /<Toolbar\b[^>]*\/?>/i, qn = [
53
+ }, je = "Panel", He = ["Formula", "FormulaFormula"], Yn = /<Grid\b[^>]*>/i, Zn = /<\/Grid\s*>/i, qn = /<Toolbar\b[^>]*\/?>/i, Qn = [
54
54
  "Undo",
55
55
  "Deleting",
56
56
  "Selecting",
57
57
  "SelectingSingle",
58
58
  "SuppressCfg"
59
- ], Qn = {
59
+ ], et = {
60
60
  addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
61
61
  deleteRow: [
62
62
  "Delete",
@@ -77,7 +77,7 @@ const Dr = 300, vn = 3, Bn = {
77
77
  "UndeleteVisibleRowsChildren"
78
78
  ],
79
79
  selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
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) => {
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"), nt = /* @__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
83
  }, "getTreeGridJsonCfgRecords"), ne = /* @__PURE__ */ o((e, n) => {
@@ -108,7 +108,7 @@ const Dr = 300, vn = 3, Bn = {
108
108
  return Object.entries(n).forEach(([r, i]) => {
109
109
  B(t, r) || (t = k(t, r, i));
110
110
  }), t;
111
- }, "appendMissingTreeGridXmlTagAttributes"), w = /* @__PURE__ */ o((e) => {
111
+ }, "appendMissingTreeGridXmlTagAttributes"), I = /* @__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,13 +132,13 @@ const Dr = 300, vn = 3, Bn = {
132
132
  i === 1 && (C === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
133
133
  index: r.index,
134
134
  tag: a
135
- }), qn.forEach((h) => {
135
+ }), Qn.forEach((h) => {
136
136
  const m = Ye(a, h);
137
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
141
- } : C === "panel" && !t.defaultPanelTag && nt(a) ? t.defaultPanelTag = {
141
+ } : C === "panel" && !t.defaultPanelTag && tt(a) ? t.defaultPanelTag = {
142
142
  index: r.index,
143
143
  tag: a
144
144
  } : C === "animations" && !t.animationsTag && (t.animationsTag = {
@@ -147,10 +147,10 @@ const Dr = 300, vn = 3, Bn = {
147
147
  })), S || (i += 1);
148
148
  }
149
149
  return t;
150
- }, "scanTreeGridXmlDefaultLayout"), nt = /* @__PURE__ */ o((e) => {
150
+ }, "scanTreeGridXmlDefaultLayout"), tt = /* @__PURE__ */ o((e) => {
151
151
  const n = Ye(e, "Name");
152
152
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
153
- }, "isTreeGridXmlDefaultPanelTag"), tt = /* @__PURE__ */ o((e) => {
153
+ }, "isTreeGridXmlDefaultPanelTag"), rt = /* @__PURE__ */ o((e) => {
154
154
  const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
155
155
  let r;
156
156
  for (; r = n.exec(e); ) {
@@ -165,8 +165,8 @@ const Dr = 300, vn = 3, Bn = {
165
165
  });
166
166
  }
167
167
  return t;
168
- }, "getLeadingTreeGridXmlHeaderTags"), rt = /* @__PURE__ */ o((e) => {
169
- const n = tt(e);
168
+ }, "getLeadingTreeGridXmlHeaderTags"), it = /* @__PURE__ */ o((e) => {
169
+ const n = rt(e);
170
170
  if (n.length <= 1)
171
171
  return {
172
172
  headContent: e,
@@ -189,38 +189,38 @@ const Dr = 300, vn = 3, Bn = {
189
189
  )}`,
190
190
  isApplied: !0
191
191
  };
192
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), it = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), ot = /* @__PURE__ */ o((e) => !!e.defaultPanelTag || nn(e.cfgValues) || tn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), st = /* @__PURE__ */ o((e, n) => {
193
- if (n.gridOpenTagEndIndex === void 0 || !ot(n))
192
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), ot = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), st = /* @__PURE__ */ o((e) => !!e.defaultPanelTag || nn(e.cfgValues) || tn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), ct = /* @__PURE__ */ o((e, n) => {
193
+ if (n.gridOpenTagEndIndex === void 0 || !st(n))
194
194
  return e;
195
195
  const t = n.defaultPanelTag;
196
196
  if (t) {
197
197
  const i = j(
198
198
  t.tag,
199
- Hn
199
+ zn
200
200
  );
201
201
  return i === t.tag ? e : `${e.slice(0, t.index)}${i}${e.slice(
202
202
  t.index + t.tag.length
203
203
  )}`;
204
204
  }
205
- const r = it(n);
205
+ const r = ot(n);
206
206
  return r === void 0 ? e : `${e.slice(0, r)}
207
207
  <Panel Spanned="1" />${e.slice(
208
208
  r
209
209
  )}`;
210
- }, "applyTreeGridXmlDefaultPanelSpannedLayout"), ct = /* @__PURE__ */ o((e) => {
210
+ }, "applyTreeGridXmlDefaultPanelSpannedLayout"), lt = /* @__PURE__ */ o((e) => {
211
211
  if (!/<Head\b/i.test(e) || /\bPanelRowSpan\s*[:=]/i.test(e))
212
212
  return e;
213
213
  let n = !1;
214
214
  const t = e.replace(
215
215
  /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
216
216
  (r, i, c, f) => {
217
- const a = rt(c);
217
+ const a = it(c);
218
218
  return a.isApplied ? (n = !0, `${i}${a.headContent}${f}`) : r;
219
219
  }
220
220
  );
221
- return n ? st(
221
+ return n ? ct(
222
222
  t,
223
- w(t)
223
+ I(t)
224
224
  ) : e;
225
225
  }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Qe = /* @__PURE__ */ o((e) => fe(
226
226
  ne(e, "Selecting"),
@@ -228,7 +228,7 @@ const Dr = 300, vn = 3, Bn = {
228
228
  ), "isTreeGridJsonCheckboxSelectionLayout"), en = /* @__PURE__ */ o((e) => fe(
229
229
  e.Selecting,
230
230
  e.SelectingSingle
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) => {
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"), dt = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), ut = /* @__PURE__ */ o((e, n) => {
232
232
  if (n.gridOpenTagEndIndex === void 0 || !nn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
233
233
  return e;
234
234
  const t = n.defaultActionsTag;
@@ -241,12 +241,12 @@ const Dr = 300, vn = 3, Bn = {
241
241
  t.index + t.tag.length
242
242
  )}`;
243
243
  }
244
- const r = lt(n);
244
+ const r = dt(n);
245
245
  return r === void 0 ? e : `${e.slice(0, r)}
246
246
  <Actions OnClickCell="Focus" />${e.slice(
247
247
  r
248
248
  )}`;
249
- }, "applyTreeGridXmlDefaultCellClickActionLayout"), ut = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), ft = /* @__PURE__ */ o((e, n) => {
249
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), ft = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), at = /* @__PURE__ */ o((e, n) => {
250
250
  if (n.gridOpenTagEndIndex === void 0 || !en(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
251
251
  return e;
252
252
  const t = n.defaultActionsTag;
@@ -259,7 +259,7 @@ const Dr = 300, vn = 3, Bn = {
259
259
  t.index + t.tag.length
260
260
  )}`;
261
261
  }
262
- const r = ut(n);
262
+ const r = ft(n);
263
263
  return r === void 0 ? e : `${e.slice(
264
264
  0,
265
265
  r
@@ -267,25 +267,25 @@ const Dr = 300, vn = 3, Bn = {
267
267
  <Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
268
268
  r
269
269
  )}`;
270
- }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), at = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Tt = /* @__PURE__ */ o((e, n) => {
270
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Tt = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Ct = /* @__PURE__ */ o((e, n) => {
271
271
  if (n.gridOpenTagEndIndex === void 0 || !tn(n.cfgValues))
272
272
  return e;
273
273
  const t = n.defaultPanelTag;
274
274
  if (t) {
275
275
  const c = j(
276
276
  t.tag,
277
- jn
277
+ Hn
278
278
  );
279
279
  return c === t.tag ? e : `${e.slice(0, t.index)}${c}${e.slice(
280
280
  t.index + t.tag.length
281
281
  )}`;
282
282
  }
283
- const r = at(n);
283
+ const r = Tt(n);
284
284
  return r === void 0 ? e : `${e.slice(0, r)}
285
285
  <Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
286
286
  r
287
287
  )}`;
288
- }, "applyTreeGridXmlDefaultDeletePanelLayout"), Ct = /* @__PURE__ */ o((e, n) => {
288
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), Et = /* @__PURE__ */ o((e, n) => {
289
289
  if (n.hasFastPanel || !en(n.cfgValues))
290
290
  return e;
291
291
  const t = n.gridOpenTagEndIndex;
@@ -293,7 +293,7 @@ const Dr = 300, vn = 3, Bn = {
293
293
  <Cfg FastPanel="0" />${e.slice(
294
294
  t
295
295
  )}`;
296
- }, "applyTreeGridXmlDefaultFastPanelLayout"), Et = /* @__PURE__ */ o((e) => {
296
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), pt = /* @__PURE__ */ o((e) => {
297
297
  const n = e.Cfg;
298
298
  if (Array.isArray(n)) {
299
299
  n.some((t) => A(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
@@ -304,7 +304,7 @@ const Dr = 300, vn = 3, Bn = {
304
304
  return;
305
305
  }
306
306
  e.Cfg = { FastPanel: 0 };
307
- }, "applyTreeGridJsonFastPanelDefault"), pt = /* @__PURE__ */ o((e) => {
307
+ }, "applyTreeGridJsonFastPanelDefault"), Gt = /* @__PURE__ */ o((e) => {
308
308
  const n = e.Actions;
309
309
  if (Array.isArray(n)) {
310
310
  n.some(
@@ -317,7 +317,7 @@ const Dr = 300, vn = 3, Bn = {
317
317
  return;
318
318
  }
319
319
  n === void 0 && (e.Actions = { ...J });
320
- }, "applyTreeGridJsonSelectAllPanelActionDefault"), Gt = /* @__PURE__ */ o((e) => {
320
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), St = /* @__PURE__ */ o((e) => {
321
321
  const n = e.Actions;
322
322
  if (Array.isArray(n)) {
323
323
  n.some((t) => A(t) && "OnClickCell" in t) || (e.Actions = [{ ...W }, ...n]);
@@ -328,33 +328,33 @@ const Dr = 300, vn = 3, Bn = {
328
328
  return;
329
329
  }
330
330
  n === void 0 && (e.Actions = { ...W });
331
- }, "applyTreeGridJsonCellClickActionDefault"), St = /* @__PURE__ */ o((e) => {
331
+ }, "applyTreeGridJsonCellClickActionDefault"), ht = /* @__PURE__ */ o((e) => {
332
332
  try {
333
333
  const n = JSON.parse(e);
334
- return !A(n) || y(ne(n, "Selecting")) ? e : (Gt(n), JSON.stringify(n));
334
+ return !A(n) || y(ne(n, "Selecting")) ? e : (St(n), JSON.stringify(n));
335
335
  } catch {
336
336
  return e;
337
337
  }
338
338
  }, "applyTreeGridJsonDefaultCellClickActionLayout"), be = /* @__PURE__ */ o((e, n) => {
339
339
  const t = e.trim();
340
- return t ? t.startsWith("{") ? St(e) : dt(
340
+ return t ? t.startsWith("{") ? ht(e) : ut(
341
341
  e,
342
- n ?? w(e)
342
+ n ?? I(e)
343
343
  ) : e;
344
- }, "applyTreeGridDefaultCellClickActionLayout"), ht = /* @__PURE__ */ o((e) => {
344
+ }, "applyTreeGridDefaultCellClickActionLayout"), Rt = /* @__PURE__ */ o((e) => {
345
345
  try {
346
346
  const n = JSON.parse(e);
347
- return !A(n) || !Qe(n) ? e : (pt(n), JSON.stringify(n));
347
+ return !A(n) || !Qe(n) ? e : (Gt(n), JSON.stringify(n));
348
348
  } catch {
349
349
  return e;
350
350
  }
351
351
  }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), De = /* @__PURE__ */ o((e, n) => {
352
352
  const t = e.trim();
353
- return t ? t.startsWith("{") ? ht(e) : ft(
353
+ return t ? t.startsWith("{") ? Rt(e) : at(
354
354
  e,
355
- n ?? w(e)
355
+ n ?? I(e)
356
356
  ) : e;
357
- }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Rt = /* @__PURE__ */ o((e, n) => {
357
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), At = /* @__PURE__ */ o((e, n) => {
358
358
  if (n === void 0)
359
359
  return e;
360
360
  try {
@@ -366,7 +366,7 @@ const Dr = 300, vn = 3, Bn = {
366
366
  } catch {
367
367
  return e;
368
368
  }
369
- }, "applyTreeGridJsonDefaultSuppressCfgLayout"), At = /* @__PURE__ */ o((e, n, t) => {
369
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), gt = /* @__PURE__ */ o((e, n, t) => {
370
370
  if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
371
371
  return e;
372
372
  const r = n.defaultCfgTag;
@@ -381,39 +381,39 @@ const Dr = 300, vn = 3, Bn = {
381
381
  <Cfg SuppressCfg="${t}" />${e.slice(
382
382
  i
383
383
  )}`;
384
- }, "applyTreeGridXmlDefaultSuppressCfgLayout"), gt = /* @__PURE__ */ o((e, n) => {
384
+ }, "applyTreeGridXmlDefaultSuppressCfgLayout"), _t = /* @__PURE__ */ o((e, n) => {
385
385
  const t = e.trim();
386
- return n === void 0 || !t ? e : t.startsWith("{") ? Rt(e, n) : At(
386
+ return n === void 0 || !t ? e : t.startsWith("{") ? At(e, n) : gt(
387
387
  e,
388
- w(e),
388
+ I(e),
389
389
  n
390
390
  );
391
- }, "applyTreeGridDefaultSuppressCfgLayout"), _t = /* @__PURE__ */ o((e) => He.some((n) => n in e), "hasTreeGridToolbarFormulaField"), mt = /* @__PURE__ */ o((e) => {
391
+ }, "applyTreeGridDefaultSuppressCfgLayout"), mt = /* @__PURE__ */ o((e) => He.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Lt = /* @__PURE__ */ o((e) => {
392
392
  const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(A) : A(n) ? [n] : [], i = Array.isArray(t) ? t.filter(
393
393
  (c) => A(c) && N(c.Kind, "Toolbar")
394
394
  ) : A(t) && N(t.Kind, "Toolbar") ? [t] : [];
395
395
  return [...r, ...i];
396
- }, "getTreeGridJsonToolbarRecords"), Lt = /* @__PURE__ */ o((e, n) => {
396
+ }, "getTreeGridJsonToolbarRecords"), Ot = /* @__PURE__ */ o((e, n) => {
397
397
  if (!n)
398
398
  return e;
399
399
  try {
400
400
  const t = JSON.parse(e);
401
401
  if (!A(t))
402
402
  return e;
403
- const r = mt(t);
404
- return r.some(_t) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
403
+ const r = Lt(t);
404
+ return r.some(mt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
405
405
  } catch {
406
406
  return e;
407
407
  }
408
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Ot = /* @__PURE__ */ o((e) => He.some(
408
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), xt = /* @__PURE__ */ o((e) => He.some(
409
409
  (n) => B(e, n)
410
- ), "hasTreeGridXmlToolbarFormulaAttribute"), xt = /* @__PURE__ */ o((e, n) => {
410
+ ), "hasTreeGridXmlToolbarFormulaAttribute"), It = /* @__PURE__ */ o((e, n) => {
411
411
  if (!n)
412
412
  return e;
413
- const t = Zn.exec(e);
413
+ const t = qn.exec(e);
414
414
  if (t) {
415
415
  const f = t[0];
416
- if (Ot(f))
416
+ if (xt(f))
417
417
  return e;
418
418
  const a = te(
419
419
  f,
@@ -428,13 +428,13 @@ const Dr = 300, vn = 3, Bn = {
428
428
  "<Toolbar />",
429
429
  "Formula",
430
430
  n
431
- ), i = Yn.exec(e);
431
+ ), i = Zn.exec(e);
432
432
  if (i)
433
433
  return `${e.slice(0, i.index)} ${r}
434
434
  ${e.slice(
435
435
  i.index
436
436
  )}`;
437
- const c = zn.exec(e);
437
+ const c = Yn.exec(e);
438
438
  return c ? `${e.slice(
439
439
  0,
440
440
  c.index + c[0].length
@@ -442,32 +442,32 @@ ${e.slice(
442
442
  ${r}${e.slice(c.index + c[0].length)}` : e;
443
443
  }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), wt = /* @__PURE__ */ o((e, n) => {
444
444
  const t = e.trim();
445
- return !n || !t ? e : t.startsWith("{") ? Lt(
445
+ return !n || !t ? e : t.startsWith("{") ? Ot(
446
446
  e,
447
447
  n
448
- ) : xt(e, n);
449
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), It = /* @__PURE__ */ o((e) => {
448
+ ) : It(e, n);
449
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), bt = /* @__PURE__ */ o((e) => {
450
450
  try {
451
451
  const n = JSON.parse(e);
452
- return !A(n) || !Qe(n) ? e : (Et(n), JSON.stringify(n));
452
+ return !A(n) || !Qe(n) ? e : (pt(n), JSON.stringify(n));
453
453
  } catch {
454
454
  return e;
455
455
  }
456
456
  }, "applyTreeGridJsonDefaultFastPanelLayout"), ye = /* @__PURE__ */ o((e, n) => {
457
457
  const t = e.trim();
458
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : It(e) : Ct(
458
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : bt(e) : Et(
459
459
  e,
460
- n ?? w(e)
460
+ n ?? I(e)
461
461
  ) : e;
462
- }, "applyTreeGridDefaultFastPanelLayout"), bt = /* @__PURE__ */ o((e) => {
462
+ }, "applyTreeGridDefaultFastPanelLayout"), Dt = /* @__PURE__ */ o((e) => {
463
463
  const n = {};
464
464
  return e == null || e.forEach((t) => {
465
465
  var r;
466
- (r = Qn[t]) == null || r.forEach((i) => {
466
+ (r = et[t]) == null || r.forEach((i) => {
467
467
  n[i] = "";
468
468
  });
469
469
  }), n;
470
- }, "getTreeGridDisabledAnimationAttributes"), Dt = /* @__PURE__ */ o((e, n) => {
470
+ }, "getTreeGridDisabledAnimationAttributes"), yt = /* @__PURE__ */ o((e, n) => {
471
471
  try {
472
472
  const t = JSON.parse(e);
473
473
  if (!A(t))
@@ -486,8 +486,8 @@ ${e.slice(
486
486
  } catch {
487
487
  return e;
488
488
  }
489
- }, "applyTreeGridJsonDisabledAnimationsLayout"), yt = /* @__PURE__ */ o((e) => qe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), Pt = /* @__PURE__ */ o((e, n) => {
490
- const t = w(e);
489
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), Pt = /* @__PURE__ */ o((e) => qe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), $t = /* @__PURE__ */ o((e, n) => {
490
+ const t = I(e);
491
491
  if (t.gridOpenTagEndIndex === void 0)
492
492
  return e;
493
493
  const r = t.animationsTag;
@@ -499,19 +499,19 @@ ${e.slice(
499
499
  }
500
500
  const i = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
501
501
  return `${e.slice(0, i)}
502
- ${yt(
502
+ ${Pt(
503
503
  n
504
504
  )}${e.slice(i)}`;
505
505
  }, "applyTreeGridXmlDisabledAnimationsLayout"), Pe = /* @__PURE__ */ o((e, n) => {
506
- const t = bt(n);
506
+ const t = Dt(n);
507
507
  if (!Object.keys(t).length)
508
508
  return e;
509
509
  const r = e.trim();
510
- return r ? r.startsWith("{") ? Dt(e, t) : Pt(e, t) : e;
510
+ return r ? r.startsWith("{") ? yt(e, t) : $t(e, t) : e;
511
511
  }, "applyTreeGridDisabledAnimationsLayout"), re = /* @__PURE__ */ o((e, n, t, r) => {
512
512
  const i = wt(
513
- ct(
514
- gt(e, r)
513
+ lt(
514
+ _t(e, r)
515
515
  ),
516
516
  t
517
517
  ), c = i.trim();
@@ -524,15 +524,15 @@ ${e.slice(
524
524
  ),
525
525
  n
526
526
  );
527
- const f = w(i), a = De(
527
+ const f = I(i), a = De(
528
528
  i,
529
529
  f
530
- ), C = a === i ? f : w(a), G = be(
530
+ ), C = a === i ? f : I(a), G = be(
531
531
  a,
532
532
  C
533
- ), S = G === a ? C : w(G);
533
+ ), S = G === a ? C : I(G);
534
534
  return Pe(
535
- Tt(
535
+ Ct(
536
536
  ye(
537
537
  G,
538
538
  S
@@ -541,7 +541,7 @@ ${e.slice(
541
541
  ),
542
542
  n
543
543
  );
544
- }, "applyTreeGridDefaultLayout"), $t = /* @__PURE__ */ o((e) => {
544
+ }, "applyTreeGridDefaultLayout"), vt = /* @__PURE__ */ o((e) => {
545
545
  var n;
546
546
  return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${wn}`)) ?? null;
547
547
  }, "getTreeGridWrapperElement"), Ft = /* @__PURE__ */ o((e) => {
@@ -554,12 +554,12 @@ ${e.slice(
554
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
556
  }, "getTreeGridSelectAllState"), ie = /* @__PURE__ */ o((e, n) => {
557
- const t = $t(n), r = !y(e.Selecting), i = fe(
557
+ const t = vt(n), r = !y(e.Selecting), i = fe(
558
558
  e.Selecting,
559
559
  e.SelectingSingle
560
560
  ), c = e.Header;
561
561
  if (t == null || t.classList.toggle(
562
- xn,
562
+ In,
563
563
  i
564
564
  ), !i)
565
565
  t == null || t.classList.remove(
@@ -590,17 +590,17 @@ ${e.slice(
590
590
  Z.delete(n), ie(e, n);
591
591
  }, 0);
592
592
  Z.set(n, r);
593
- }, "scheduleTreeGridSelectionPanelStateSync"), vt = /* @__PURE__ */ o((e, n) => {
593
+ }, "scheduleTreeGridSelectionPanelStateSync"), Bt = /* @__PURE__ */ o((e, n) => {
594
594
  e.EnterMode = n;
595
- const t = Bn[n];
595
+ const t = Nn[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"), rn = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Fe = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ o((e) => {
600
+ }, "applyTreeGridDefaultEnterMode"), rn = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), ve = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ o((e) => {
601
601
  if (!e || !e.startsWith("data:"))
602
602
  return e;
603
- const n = Fe.get(e);
603
+ const n = ve.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 < f.length; G += 1)
609
609
  a[G] = f.charCodeAt(G);
610
610
  const C = URL.createObjectURL(new Blob([a], { type: c }));
611
- return Fe.set(e, C), C;
611
+ return ve.set(e, C), C;
612
612
  } catch {
613
613
  return e;
614
614
  }
615
615
  }, "resolveTreeGridInlineUrl"), oe = /* @__PURE__ */ o((e) => {
616
616
  if (!e || rn(e))
617
- return Bt(e);
617
+ return Nt(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"), ve = /* @__PURE__ */ o((e, n, t) => {
620
+ }, "appendNoCacheQuery"), Fe = /* @__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") ? 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) => {
640
+ }, "syncTreeGridDeletedRowState"), kt = /* @__PURE__ */ o((e) => e ? rn(e) || e.includes("assets") ? oe(e) : oe(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Ut = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Vt = /* @__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"), yr = /* @__PURE__ */ o(({
648
+ }, "applyTreeGridBeforeRowUndeleteAction"), Mt = /* @__PURE__ */ o((e, n, t) => e ? { Url: kt(n) } : { Data: { Body: [vn(t) ? [] : t] } }, "buildTreeGridDataSource"), Pr = /* @__PURE__ */ o(({
649
649
  id: e,
650
650
  layoutUrl: n,
651
651
  layoutData: t,
@@ -668,9 +668,9 @@ ${e.slice(
668
668
  i
669
669
  )
670
670
  } : { Url: oe(n ?? "") },
671
- Data: Vt(C, f, a),
671
+ Data: Mt(C, f, a),
672
672
  Text: {
673
- Url: hn(h)
673
+ Url: Rn(h)
674
674
  },
675
675
  width: G,
676
676
  height: S,
@@ -692,7 +692,7 @@ ${e.slice(
692
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" || (se(e, n, t, "Span") ?? 1) <= 1 ? !1 : (se(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), ke = /* @__PURE__ */ o((e, n, t) => {
695
+ }, "getTreeGridHeaderCellSpanAttribute"), Xt = /* @__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,7 +703,7 @@ ${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) || (ke(i, c, a), !r))
706
+ if (!Xt(e, c, a) || (ke(i, c, a), !r))
707
707
  return;
708
708
  const G = Math.floor(se(e, c, a, "Span") ?? 1), S = Math.min(t.length, C + G);
709
709
  for (let h = f + 1; h < n.length; h += 1) {
@@ -713,7 +713,7 @@ ${e.slice(
713
713
  }
714
714
  });
715
715
  }), i;
716
- }, "getTreeGridGroupHeaderSortButtonTargets"), Xt = /* @__PURE__ */ o((e, n, t, r) => {
716
+ }, "getTreeGridGroupHeaderSortButtonTargets"), Wt = /* @__PURE__ */ o((e, n, t, r) => {
717
717
  var f;
718
718
  if (!n || !t || n.Fixed !== "Head")
719
719
  return !1;
@@ -754,24 +754,27 @@ ${e.slice(
754
754
  updatedRowCount: a.size
755
755
  }));
756
756
  }
757
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), Wt = /* @__PURE__ */ o((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Jt = /* @__PURE__ */ o((e) => {
757
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), Jt = /* @__PURE__ */ o((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Kt = /* @__PURE__ */ o((e) => {
758
758
  const n = e == null ? void 0 : e.Visible;
759
759
  return !!e && n !== 0 && n !== !1 && n !== "0";
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"), 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) => {
763
+ }, "isAddedTreeGridRow"), sn = /* @__PURE__ */ o((e) => {
764
+ const n = e == null ? void 0 : e.Deleted;
765
+ return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
766
+ }, "isDeletedTreeGridRow"), R = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !Kt(e) ? !1 : e.Kind === "Data" || P(e), "isDisplayTreeGridRow"), H = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), jt = /* @__PURE__ */ o((e, n) => {
764
767
  var r;
765
768
  const t = (r = e.Cols) == null ? void 0 : r[n];
766
- return !!t && !y(t.Visible) && !et(t.Hidden);
767
- }, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ o((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), jt = /* @__PURE__ */ o((e) => {
769
+ return !!t && !y(t.Visible) && !nt(t.Hidden);
770
+ }, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ o((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), Ht = /* @__PURE__ */ o((e) => {
768
771
  const n = Q.get(e);
769
772
  if (n)
770
773
  return n;
771
774
  const t = new Map(
772
775
  H(e).map((c, f) => [c, f])
773
776
  ), r = [...t.keys()].filter(
774
- (c) => !Jn.has(c) && Kt(e, c)
777
+ (c) => !Kn.has(c) && jt(e, c)
775
778
  ).sort((c, f) => {
776
779
  var L, b;
777
780
  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);
@@ -782,7 +785,7 @@ ${e.slice(
782
785
  lastColumn: r[r.length - 1]
783
786
  };
784
787
  return Q.set(e, i), i;
785
- }, "getTreeGridAddedRowBoxColumnBounds"), F = /* @__PURE__ */ o((e) => {
788
+ }, "getTreeGridAddedRowBoxColumnBounds"), v = /* @__PURE__ */ o((e) => {
786
789
  e && Q.delete(e);
787
790
  }, "clearTreeGridAddedRowBoxColumnBounds"), U = /* @__PURE__ */ o((e) => {
788
791
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
@@ -795,10 +798,10 @@ ${e.slice(
795
798
  return Object.values(e.Rows ?? {});
796
799
  }, "getTreeGridRows"), ce = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ o((e) => {
797
800
  e && ce.delete(e);
798
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), sn = /* @__PURE__ */ o((e, n) => {
801
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), cn = /* @__PURE__ */ o((e, n) => {
799
802
  const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], i = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
800
803
  return Number.isFinite(i) && i > 1 ? Math.floor(i) : 1;
801
- }, "getTreeGridRowSpanCount"), Ht = /* @__PURE__ */ o((e) => {
804
+ }, "getTreeGridRowSpanCount"), zt = /* @__PURE__ */ o((e) => {
802
805
  const n = /* @__PURE__ */ new WeakMap();
803
806
  let t = null, r = -1;
804
807
  return U(e).forEach((i, c) => {
@@ -806,7 +809,7 @@ ${e.slice(
806
809
  n.set(i, null);
807
810
  return;
808
811
  }
809
- const f = sn(i, je);
812
+ const f = cn(i, je);
810
813
  if (f > 1) {
811
814
  t = i, r = c + f - 1, n.set(i, i);
812
815
  return;
@@ -817,24 +820,24 @@ ${e.slice(
817
820
  if (!n || !R(n))
818
821
  return null;
819
822
  let t = ce.get(e);
820
- return t != null && t.has(n) || (t = Ht(e), ce.set(e, t)), t.get(n) ?? null;
821
- }, "getTreeGridSelectionRowSpanAnchorRow"), cn = /* @__PURE__ */ o((e, n) => {
823
+ return t != null && t.has(n) || (t = zt(e), ce.set(e, t)), t.get(n) ?? null;
824
+ }, "getTreeGridSelectionRowSpanAnchorRow"), ln = /* @__PURE__ */ o((e, n) => {
822
825
  const t = ae(e, n);
823
826
  if (!t)
824
827
  return [];
825
- const r = sn(t, je), i = [];
828
+ const r = cn(t, je), i = [];
826
829
  let c = t;
827
830
  for (let f = 0; c && f < r; f += 1)
828
831
  R(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
829
832
  return i;
830
- }, "getTreeGridSelectionRowSpanRows"), zt = /* @__PURE__ */ o((e) => {
833
+ }, "getTreeGridSelectionRowSpanRows"), Yt = /* @__PURE__ */ o((e) => {
831
834
  const n = /* @__PURE__ */ new Set();
832
835
  return (e.GetSelRows() ?? []).forEach((t) => {
833
- cn(e, t).forEach((r) => {
836
+ ln(e, t).forEach((r) => {
834
837
  n.add(r);
835
838
  });
836
839
  }), [...n];
837
- }, "getTreeGridSelectedRowSpanRows"), Yt = /* @__PURE__ */ o((e, n) => {
840
+ }, "getTreeGridSelectedRowSpanRows"), Zt = /* @__PURE__ */ o((e, n) => {
838
841
  if (!e)
839
842
  return;
840
843
  const t = H(e);
@@ -844,17 +847,17 @@ ${e.slice(
844
847
  new Map(t.map((i) => [i, ue(e, r, i)]))
845
848
  );
846
849
  });
847
- }, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Zt = /* @__PURE__ */ o((e, n, t) => {
850
+ }, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), qt = /* @__PURE__ */ o((e, n, t) => {
848
851
  const r = n;
849
852
  return H(e).some((i) => i !== t && le(r[`${i}Changed`]));
850
- }, "hasOtherTreeGridChangedCells"), ln = /* @__PURE__ */ o((e, n, t) => {
853
+ }, "hasOtherTreeGridChangedCells"), dn = /* @__PURE__ */ o((e, n, t) => {
851
854
  const r = n;
852
- r[`${t}Changed`] = 0, !P(n) && !I(n) && !Zt(e, n, t) && (r.Changed = 0);
853
- }, "clearTreeGridCellChangedState"), qt = /* @__PURE__ */ o((e, n, t) => {
855
+ r[`${t}Changed`] = 0, !P(n) && !w(n) && !qt(e, n, t) && (r.Changed = 0);
856
+ }, "clearTreeGridCellChangedState"), Qt = /* @__PURE__ */ o((e, n, t) => {
854
857
  const r = e.get(n);
855
858
  if (r != null && r.has(t))
856
859
  return r.get(t);
857
- }, "resolveTreeGridCellBaselineValue"), Qt = /* @__PURE__ */ o(({
860
+ }, "resolveTreeGridCellBaselineValue"), er = /* @__PURE__ */ o(({
858
861
  gridId: e,
859
862
  grid: n,
860
863
  row: t,
@@ -862,18 +865,18 @@ ${e.slice(
862
865
  backgroundColor: i,
863
866
  highlightRefresh: c
864
867
  }) => {
865
- if (!P(t) && !I(t))
868
+ if (!P(t) && !w(t))
866
869
  return !1;
867
870
  if (n.CanEdit(t, r) !== 1)
868
871
  return !0;
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, {
872
+ const f = _n(t, r), a = q(t).includes(r);
873
+ return f === void 0 ? !0 : ue(n, t, r) === f ? (mn(t, r), a && Xe(e, { row: t, col: r }), dn(n, t, r), !0) : (Ln(t, r), We(e, {
871
874
  row: t,
872
875
  col: r,
873
876
  backgroundColor: i,
874
877
  refresh: c
875
878
  }), !0);
876
- }, "syncTreeGridAddedRowChangedCellHighlight"), er = /* @__PURE__ */ o(({
879
+ }, "syncTreeGridAddedRowChangedCellHighlight"), nr = /* @__PURE__ */ o(({
877
880
  gridId: e,
878
881
  grid: n,
879
882
  row: t,
@@ -882,7 +885,7 @@ ${e.slice(
882
885
  baselineMap: c,
883
886
  highlightRefresh: f
884
887
  }) => {
885
- if (!R(t) || Qt({
888
+ if (!R(t) || er({
886
889
  gridId: e,
887
890
  grid: n,
888
891
  row: t,
@@ -891,9 +894,9 @@ ${e.slice(
891
894
  highlightRefresh: f
892
895
  }))
893
896
  return;
894
- const a = qt(c, t, r), C = ue(n, t, r);
897
+ const a = Qt(c, t, r), C = ue(n, t, r);
895
898
  if (a !== void 0 && C === a) {
896
- Xe(e, { row: t, col: r }), ln(n, t, r);
899
+ Xe(e, { row: t, col: r }), dn(n, t, r);
897
900
  return;
898
901
  }
899
902
  We(e, {
@@ -902,13 +905,13 @@ ${e.slice(
902
905
  backgroundColor: i,
903
906
  refresh: f
904
907
  });
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) => {
908
+ }, "syncTreeGridChangedCellHighlight"), tr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), un = /* @__PURE__ */ o((e, n, t) => {
906
909
  const r = e.GetAttribute(n, t, "Color");
907
910
  if (typeof r == "number")
908
- return fn(r);
911
+ return an(r);
909
912
  if (typeof r == "string")
910
913
  return r.trim() || void 0;
911
- }, "getExplicitTreeGridCellColor"), tr = /* @__PURE__ */ o((e, n, t) => dn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Te = /* @__PURE__ */ o((e, n, t) => {
914
+ }, "getExplicitTreeGridCellColor"), rr = /* @__PURE__ */ o((e, n, t) => un(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Te = /* @__PURE__ */ o((e, n, t) => {
912
915
  if (!n || !t || !R(n))
913
916
  return !1;
914
917
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
@@ -925,17 +928,17 @@ ${e.slice(
925
928
  const c = e.IsSelected(i, t);
926
929
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
927
930
  }, "isTreeGridSelectedCellState"), Ce = /* @__PURE__ */ o((e) => {
928
- if (!we.length)
931
+ if (!Ie.length)
929
932
  return !1;
930
933
  const n = e.split(/\s+/).filter(Boolean);
931
- return we.every(
934
+ return Ie.every(
932
935
  (t) => n.includes(t)
933
936
  );
934
- }, "hasTreeGridChangedCellDisplayClass"), rr = /* @__PURE__ */ o((e) => {
937
+ }, "hasTreeGridChangedCellDisplayClass"), ir = /* @__PURE__ */ o((e) => {
935
938
  if (!(!e || e.split(/\s+/).includes(Oe) || !Ce(e)))
936
939
  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
- if (!n || !ir(n) || typeof e.RefreshRow != "function")
940
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), or = /* @__PURE__ */ o((e) => !e || !R(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), sr = /* @__PURE__ */ o((e, n) => {
941
+ if (!n || !or(n) || typeof e.RefreshRow != "function")
939
942
  return;
940
943
  const t = n;
941
944
  window.setTimeout(() => {
@@ -950,30 +953,30 @@ ${e.slice(
950
953
  e.RefreshRow(r);
951
954
  });
952
955
  }, 0);
953
- }, "scheduleTreeGridRowsRefresh"), sr = /* @__PURE__ */ o((e, n) => {
956
+ }, "scheduleTreeGridRowsRefresh"), cr = /* @__PURE__ */ o((e, n) => {
954
957
  if (!n)
955
958
  return;
956
- const t = cn(e, n);
959
+ const t = ln(e, n);
957
960
  t.length <= 1 || M(e, t);
958
- }, "scheduleTreeGridSelectionRowSpanRefresh"), cr = /* @__PURE__ */ o((e) => {
961
+ }, "scheduleTreeGridSelectionRowSpanRefresh"), lr = /* @__PURE__ */ o((e) => {
959
962
  const n = U(e).filter((t) => R(t) && ae(e, t));
960
963
  M(e, n);
961
- }, "scheduleTreeGridSelectionRowSpanRefreshAll"), un = /* @__PURE__ */ o((e, n, t, r) => {
962
- if (!(!n || r === void 0 || !nr(e, n, t) || Te(e, n, t) || V(e, n, t) || tr(e, n, t)))
964
+ }, "scheduleTreeGridSelectionRowSpanRefreshAll"), fn = /* @__PURE__ */ o((e, n, t, r) => {
965
+ if (!(!n || r === void 0 || !tr(e, n, t) || Te(e, n, t) || V(e, n, t) || rr(e, n, t)))
963
966
  return 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
- ), "isTreeGridNativeErrorBackgroundColor"), fn = /* @__PURE__ */ o((e) => {
967
+ }, "getEditableTreeGridCellDefaultColor"), F = /* @__PURE__ */ o((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), dr = /* @__PURE__ */ o((e, n, t) => Wn.some(
968
+ (r) => F(e, n, t, r)
969
+ ), "isTreeGridNativeErrorBackgroundColor"), an = /* @__PURE__ */ o((e) => {
967
970
  if (!(e === void 0 || !Number.isFinite(e)))
968
971
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
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) => {
972
+ }, "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"), ur = /* @__PURE__ */ o((e, n) => {
970
973
  if (!n)
971
974
  return;
972
975
  let t = !1;
973
976
  H(e).forEach((r) => {
974
977
  Ee(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
975
978
  }), t && e.RefreshRow(n);
976
- }, "clearTreeGridRowErrors"), ur = /* @__PURE__ */ o((e) => {
979
+ }, "clearTreeGridRowErrors"), fr = /* @__PURE__ */ o((e) => {
977
980
  const n = e == null ? void 0 : e.target;
978
981
  if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
979
982
  return null;
@@ -983,12 +986,12 @@ ${e.slice(
983
986
  return c instanceof HTMLElement ? c : i instanceof HTMLElement ? i : null;
984
987
  }
985
988
  return null;
986
- }, "getTreeGridMouseEventAnchorElement"), fr = /* @__PURE__ */ o((e, n) => {
989
+ }, "getTreeGridMouseEventAnchorElement"), ar = /* @__PURE__ */ o((e, n) => {
987
990
  if (!e || !n || !R(e))
988
991
  return !1;
989
992
  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(({
993
+ return P(e) || w(e) ? i : i || le(t.Changed);
994
+ }, "isChangedTreeGridRowOrCell"), Tr = /* @__PURE__ */ o((e, n, t) => jn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Cr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Er = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), pr = /* @__PURE__ */ o((e, n) => !!n && R(n) && e.FRow === n, "isTreeGridFocusedRowState"), Gr = /* @__PURE__ */ o(({
992
995
  grid: e,
993
996
  row: n,
994
997
  col: t,
@@ -1005,36 +1008,38 @@ ${e.slice(
1005
1008
  return f;
1006
1009
  if (V(e, n, t))
1007
1010
  return a;
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)))
1011
+ if (Cr(e, n, t) && (F(r, i, c, kn) || F(r, i, c, Un)) || Er(e, n, t) && (F(r, i, c, Vn) || F(r, i, c, Mn) || F(r, i, c, Xn)))
1009
1012
  return C;
1010
- const h = P(n) || I(n), m = Ee(e, n, t) && lr(r, i, c);
1013
+ if (sn(n))
1014
+ return;
1015
+ const h = P(n) || w(n), m = Ee(e, n, t) && dr(r, i, c);
1011
1016
  if (!m && !h)
1012
1017
  return;
1013
- const L = dn(e, n, t);
1018
+ const L = un(e, n, t);
1014
1019
  if (m && L)
1015
1020
  return L;
1016
- if (fr(n, t))
1021
+ if (ar(n, t))
1017
1022
  return G;
1018
- const b = un(
1023
+ const b = fn(
1019
1024
  e,
1020
1025
  n,
1021
1026
  t,
1022
1027
  S
1023
1028
  );
1024
- return b !== void 0 ? fn(b) : h ? L ?? Rn : Wn;
1029
+ return b !== void 0 ? an(b) : h ? L ?? An : Jn;
1025
1030
  }, "resolveTreeGridStateBackgroundColor"), K = /* @__PURE__ */ o((e, n) => {
1026
1031
  const t = e.split(/\s+/).filter(Boolean);
1027
1032
  return t.includes(n) ? e : [...t, n].join(" ");
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))
1033
+ }, "appendTreeGridClassToken"), Sr = /* @__PURE__ */ o((e, n, t, r) => !Ee(e, n, t) || !n ? r : K(r, Dn), "appendTreeGridErrorCellDisplayClass"), hr = /* @__PURE__ */ o((e, n, t, r) => {
1034
+ if (!R(n) || sn(n) || !P(n) && !w(n) || pr(e, n) || V(e, n, t))
1030
1035
  return r;
1031
- const i = jt(e);
1036
+ const i = Ht(e);
1032
1037
  if (!i.columnSet.has(t))
1033
1038
  return r;
1034
- let c = K(r, In);
1035
- return t === i.firstColumn && (c = K(c, Dn)), t === i.lastColumn && (c = K(c, yn)), c;
1036
- }, "appendTreeGridAddedRowBoxDisplayClass"), hr = /* @__PURE__ */ o((e, n, t, r) => {
1037
- const i = Gr(e, n, t, r), c = Sr(
1039
+ let c = K(r, bn);
1040
+ return t === i.firstColumn && (c = K(c, yn)), t === i.lastColumn && (c = K(c, Pn)), c;
1041
+ }, "appendTreeGridAddedRowBoxDisplayClass"), Rr = /* @__PURE__ */ o((e, n, t, r) => {
1042
+ const i = Sr(e, n, t, r), c = hr(
1038
1043
  e,
1039
1044
  n,
1040
1045
  t,
@@ -1042,14 +1047,14 @@ ${e.slice(
1042
1047
  );
1043
1048
  if (!V(e, n, t))
1044
1049
  return c === r ? void 0 : c;
1045
- const f = rr(c) ?? c;
1050
+ const f = ir(c) ?? c;
1046
1051
  return f === r ? void 0 : f;
1047
- }, "resolveTreeGridCellDisplayClass"), an = /* @__PURE__ */ o((e) => R(e) && (P(e) || I(e)), "isTreeGridAddedRowBoxDisplayRow"), Ve = /* @__PURE__ */ o((e, n) => {
1048
- const t = n.filter(an);
1052
+ }, "resolveTreeGridCellDisplayClass"), Tn = /* @__PURE__ */ o((e) => R(e) && (P(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), Ve = /* @__PURE__ */ o((e, n) => {
1053
+ const t = n.filter(Tn);
1049
1054
  t.length && M(e, t);
1050
- }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Rr = /* @__PURE__ */ o((e) => {
1051
- M(e, U(e).filter(an));
1052
- }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), Pr = /* @__PURE__ */ o((e) => {
1055
+ }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Ar = /* @__PURE__ */ o((e) => {
1056
+ M(e, U(e).filter(Tn));
1057
+ }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), $r = /* @__PURE__ */ o((e) => {
1053
1058
  if (!e)
1054
1059
  return !1;
1055
1060
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
@@ -1062,7 +1067,7 @@ ${e.slice(
1062
1067
  return !1;
1063
1068
  }
1064
1069
  return Object.values(e.Rows ?? {}).some((n) => R(n));
1065
- }, "hasTreeGridDisplayDataRows"), $r = /* @__PURE__ */ o((e, n, t) => {
1070
+ }, "hasTreeGridDisplayDataRows"), vr = /* @__PURE__ */ o((e, n, t) => {
1066
1071
  var i;
1067
1072
  O(e);
1068
1073
  const r = (i = e.Data) == null ? void 0 : i.Data;
@@ -1090,14 +1095,14 @@ ${e.slice(
1090
1095
  latestToolbarTotalCountFormulaRef: pe,
1091
1096
  latestSuppressCfgRef: Ge,
1092
1097
  latestHideChildHeaderSortButtonsRef: z,
1093
- latestSelectionScopeRef: Tn,
1098
+ latestSelectionScopeRef: Cn,
1094
1099
  latestDisabledAnimationsRef: Se,
1095
- appliedLayoutOverridesRef: Cn,
1096
- appliedBodyDataPropRef: En,
1100
+ appliedLayoutOverridesRef: En,
1101
+ appliedBodyDataPropRef: pn,
1097
1102
  hasAppliedInitialLayoutRef: he,
1098
1103
  syncHasDisplayDataRows: $,
1099
- setIsTreeGridReady: pn,
1100
- showErrorTooltip: Gn,
1104
+ setIsTreeGridReady: Gn,
1105
+ showErrorTooltip: Sn,
1101
1106
  hideErrorTooltip: D
1102
1107
  }) => {
1103
1108
  const g = n.current;
@@ -1109,29 +1114,29 @@ ${e.slice(
1109
1114
  }), window.TGSetEvent("OnRowRemove", e, (s) => {
1110
1115
  O(s), D(), $(s);
1111
1116
  }), window.TGSetEvent("OnColShow", e, (s) => {
1112
- F(s);
1117
+ v(s);
1113
1118
  }), window.TGSetEvent("OnAfterColumnsChanged", e, (s) => {
1114
- F(s);
1119
+ v(s);
1115
1120
  }), window.TGSetEvent("OnColMove", e, (s) => {
1116
- F(s);
1121
+ v(s);
1117
1122
  }), window.TGSetEvent("OnColsAdd", e, (s) => {
1118
- F(s);
1123
+ v(s);
1119
1124
  }), window.TGSetEvent("OnColDelete", e, (s) => {
1120
- F(s);
1125
+ v(s);
1121
1126
  }), window.TGSetEvent("OnColUndelete", e, (s) => {
1122
- F(s);
1127
+ v(s);
1123
1128
  }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, E) => {
1124
1129
  const p = de(s, l, d);
1125
1130
  if (!p) {
1126
1131
  D();
1127
1132
  return;
1128
1133
  }
1129
- const _ = ur(E);
1134
+ const _ = fr(E);
1130
1135
  if (!_) {
1131
1136
  D();
1132
1137
  return;
1133
1138
  }
1134
- s.HideTip(), Gn({ anchorEl: _, row: l, col: d, message: p });
1139
+ s.HideTip(), Sn({ anchorEl: _, row: l, col: d, message: p });
1135
1140
  }), window.TGSetEvent("OnFocus", e, (s, l, d, u) => {
1136
1141
  l !== u && Ve(s, [l, u]);
1137
1142
  }), window.TGSetEvent("OnTip", e, (s, l, d, u) => de(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
@@ -1143,7 +1148,7 @@ ${e.slice(
1143
1148
  return d;
1144
1149
  const T = /* @__PURE__ */ o((p) => {
1145
1150
  window.setTimeout(() => {
1146
- Ut(
1151
+ Vt(
1147
1152
  m.current ?? s,
1148
1153
  l,
1149
1154
  p,
@@ -1153,7 +1158,7 @@ ${e.slice(
1153
1158
  }, "scheduleAction");
1154
1159
  try {
1155
1160
  const p = u(s, l);
1156
- return kt(p) ? (p.then(T).catch(() => {
1161
+ return Ut(p) ? (p.then(T).catch(() => {
1157
1162
  T("undelete");
1158
1163
  }), 0) : (T(p), 0);
1159
1164
  } catch {
@@ -1234,9 +1239,9 @@ ${e.slice(
1234
1239
  );
1235
1240
  }), window.TGSetEvent("OnRowDelete", e, (s, l, d) => {
1236
1241
  var T, E;
1237
- O(s), D(), dr(s, l), s.SelectRow(l, 0);
1238
- const u = I(l) ? q(l) : [];
1239
- ve(s, l, {
1242
+ O(s), D(), ur(s, l), s.SelectRow(l, 0);
1243
+ const u = w(l) ? q(l) : [];
1244
+ Fe(s, l, {
1240
1245
  canEdit: c.current !== !1 ? 2 : void 0,
1241
1246
  highlightColumns: u
1242
1247
  }), $(s), (E = (T = n.current) == null ? void 0 : T.onRowDelete) == null || E.call(
@@ -1248,15 +1253,15 @@ ${e.slice(
1248
1253
  }), window.TGSetEvent("OnRowUndelete", e, (s, l) => {
1249
1254
  var u, T;
1250
1255
  O(s), D();
1251
- const d = I(l) ? q(l) : [];
1252
- ve(s, l, {
1256
+ const d = w(l) ? q(l) : [];
1257
+ Fe(s, l, {
1253
1258
  canEdit: c.current !== !1 ? 1 : void 0,
1254
1259
  highlightColumns: d,
1255
1260
  highlightBackgroundColor: d.length ? a.current : void 0
1256
1261
  }), $(s), (T = (u = n.current) == null ? void 0 : u.onRowUndelete) == null || T.call(u, s, l);
1257
1262
  }), window.TGSetEvent("OnGetDefaultColor", e, (s, l, d) => {
1258
1263
  if (!(!r.current || !R(l)))
1259
- return un(
1264
+ return fn(
1260
1265
  s,
1261
1266
  l,
1262
1267
  d,
@@ -1264,7 +1269,7 @@ ${e.slice(
1264
1269
  );
1265
1270
  }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, E, p) => {
1266
1271
  if (!p)
1267
- return pr({
1272
+ return Gr({
1268
1273
  grid: s,
1269
1274
  row: l,
1270
1275
  col: d,
@@ -1277,11 +1282,11 @@ ${e.slice(
1277
1282
  changedCellBackgroundColor: a.current,
1278
1283
  editableCellBackgroundColorValue: f.current
1279
1284
  });
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) => {
1285
+ }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => Rr(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1281
1286
  var E, p;
1282
1287
  if (D(), i.current && R(l)) {
1283
- const _ = !ar(s, l, d) || V(s, l, d) && !Te(s, l, d);
1284
- er({
1288
+ const _ = !Tr(s, l, d) || V(s, l, d) && !Te(s, l, d);
1289
+ nr({
1285
1290
  gridId: e,
1286
1291
  grid: s,
1287
1292
  row: l,
@@ -1296,23 +1301,23 @@ ${e.slice(
1296
1301
  });
1297
1302
  const Re = Y((s) => {
1298
1303
  var u, T;
1299
- const l = s.GetSelRows() ?? [], d = On(s, l, {
1300
- selectionScope: Tn.current
1304
+ const l = s.GetSelRows() ?? [], d = xn(s, l, {
1305
+ selectionScope: Cn.current
1301
1306
  });
1302
1307
  (T = (u = n.current) == null ? void 0 : u.onSelect) == null || T.call(
1303
1308
  u,
1304
- An(s, d)
1309
+ gn(s, d)
1305
1310
  );
1306
1311
  }, 100);
1307
1312
  window.TGSetEvent("OnSelect", e, (s, l, d, u, T) => {
1308
1313
  var p;
1309
1314
  if (T)
1310
1315
  return;
1311
- const E = zt(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);
1316
+ const E = Yt(s);
1317
+ sr(s, l), Ve(s, [l]), M(s, E), cr(s, l), $e(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && Re(s);
1313
1318
  }), window.TGSetEvent("OnSelectAll", e, (s, l, d, u) => {
1314
1319
  var T;
1315
- u || (cr(s), Rr(s), $e(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Re(s));
1320
+ u || (lr(s), Ar(s), $e(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Re(s));
1316
1321
  }), typeof (g == null ? void 0 : g.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
1317
1322
  var u, T;
1318
1323
  (T = (u = n.current) == null ? void 0 : u.onSave) == null || T.call(
@@ -1323,13 +1328,13 @@ ${e.slice(
1323
1328
  );
1324
1329
  }), window.TGSetEvent("OnSort", e, (s, l) => {
1325
1330
  var d;
1326
- if (!(!l || !Xt(
1331
+ if (!(!l || !Wt(
1327
1332
  s,
1328
1333
  s.ARow,
1329
1334
  l,
1330
1335
  z.current !== !1
1331
1336
  )))
1332
- return Je(e, "group header sort blocked"), Pn(e, "group header sort blocked", {
1337
+ return Je(e, "group header sort blocked"), $n(e, "group header sort blocked", {
1333
1338
  rowId: (d = s.ARow) == null ? void 0 : d.id,
1334
1339
  col: l
1335
1340
  }), -1;
@@ -1352,7 +1357,7 @@ ${e.slice(
1352
1357
  ie(s, e);
1353
1358
  }), window.TGSetEvent("OnDataGet", e, (s, l, d) => {
1354
1359
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1355
- t.current = Ie(d);
1360
+ t.current = we(d);
1356
1361
  const u = re(
1357
1362
  d,
1358
1363
  Se.current,
@@ -1364,7 +1369,7 @@ ${e.slice(
1364
1369
  return null;
1365
1370
  }), window.TGSetEvent("OnDataParse", e, (s, l, d) => {
1366
1371
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1367
- t.current = Ie(d);
1372
+ t.current = we(d);
1368
1373
  const u = re(
1369
1374
  d,
1370
1375
  Se.current,
@@ -1381,13 +1386,13 @@ ${e.slice(
1381
1386
  var l, d;
1382
1387
  if (!he.current) {
1383
1388
  const u = b.current;
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(
1389
+ he.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && Bt(s, Bn), On(s, u), m.current = s, En.current = u, pn.current = Be(s), h.current = /* @__PURE__ */ new WeakMap(), Zt(s, h.current), $(s), Gn(!0), Ue(
1385
1390
  s,
1386
1391
  e,
1387
1392
  !0,
1388
1393
  z.current !== !1
1389
1394
  ), Ke(e, "TreeGrid init ready", L.current, {
1390
- bodyRowCount: Wt(
1395
+ bodyRowCount: Jt(
1391
1396
  Be(s)
1392
1397
  )
1393
1398
  }), L.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, s);
@@ -1396,14 +1401,14 @@ ${e.slice(
1396
1401
  );
1397
1402
  }, "bindTreeGridEvents");
1398
1403
  export {
1399
- Dr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1404
+ yr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1400
1405
  Fr as bindTreeGridEvents,
1401
- yr as buildTreeGridInitializationOptions,
1402
- Yt as captureTreeGridChangeBaselines,
1403
- Wt as getTreeGridBodyDataCount,
1404
- Pr as hasTreeGridDisplayDataRows,
1405
- Ie as hasTreeGridExplicitEnterMode,
1406
- $r as replaceTreeGridBodyData,
1407
- er as syncTreeGridChangedCellHighlight
1406
+ Pr as buildTreeGridInitializationOptions,
1407
+ Zt as captureTreeGridChangeBaselines,
1408
+ Jt as getTreeGridBodyDataCount,
1409
+ $r as hasTreeGridDisplayDataRows,
1410
+ we as hasTreeGridExplicitEnterMode,
1411
+ vr as replaceTreeGridBodyData,
1412
+ nr as syncTreeGridChangedCellHighlight
1408
1413
  };
1409
1414
  //# sourceMappingURL=treeGridRuntime.js.map