@owp/core 2.5.49 → 2.5.51

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 (65) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index16.js +4 -4
  6. package/dist/_virtual/index17.js +4 -4
  7. package/dist/_virtual/index18.js +4 -4
  8. package/dist/_virtual/index19.js +4 -4
  9. package/dist/_virtual/index3.js +2 -2
  10. package/dist/_virtual/index4.js +2 -2
  11. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +80 -74
  12. package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
  13. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  14. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +362 -348
  15. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  16. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +362 -316
  17. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  18. package/dist/contexts/OwpAppContext.js.map +1 -1
  19. package/dist/exceljs.js +5 -0
  20. package/dist/exceljs.js.map +1 -0
  21. package/dist/hooks/useCurrentUser.js.map +1 -1
  22. package/dist/hooks/useFormDataUploadMutation.js.map +1 -1
  23. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  24. package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
  25. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  30. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  31. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  32. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  33. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
  34. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  35. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  36. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  37. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  38. 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
  39. package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +1 -1
  40. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +2 -2
  41. package/dist/types/components/OwpQuerySelector/types/index.d.ts +1 -1
  42. package/dist/types/components/OwpQuerySelector/types/types.d.ts +14 -13
  43. package/dist/types/components/OwpTable/OwpFieldTable.d.ts +6 -7
  44. package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
  45. package/dist/types/contexts/OwpAppContext.d.ts +10 -0
  46. package/dist/types/exceljs.d.ts +3 -0
  47. package/dist/types/hooks/useCurrentUser.d.ts +5 -2
  48. package/dist/types/hooks/useFormDataUploadMutation.d.ts +9 -3
  49. package/dist/types/hooks/useNavigation.d.ts +1 -1
  50. package/dist/types/index.d.ts +1 -0
  51. package/dist/types/types/OwpApiTypes.d.ts +27 -0
  52. package/dist/types/types/OwpDialogTypes.d.ts +16 -0
  53. package/dist/types/types/OwpExcelTypes.d.ts +5 -0
  54. package/dist/types/types/OwpRouteTypes.d.ts +10 -0
  55. package/dist/types/types/index.d.ts +8 -2
  56. package/dist/types/utils/fetchFile.d.ts +1 -1
  57. package/dist/types/utils/internal/exceljsBrowser.d.ts +1 -2
  58. package/dist/types/utils/treeGridUtil.d.ts +21 -7
  59. package/dist/utils/internal/exceljsBrowser.js.map +1 -1
  60. package/dist/utils/treeGridUtil.js +103 -85
  61. package/dist/utils/treeGridUtil.js.map +1 -1
  62. package/dist/utils.js +51 -49
  63. package/exceljs.d.ts +3 -0
  64. package/exceljs.js +1 -0
  65. package/package.json +3 -1
@@ -1,7 +1,7 @@
1
1
  var $n = Object.defineProperty;
2
2
  var i = (e, n) => $n(e, "name", { value: n, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as Pn, TREEGRID_CELL_CHANGED_CLASS as Ye, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as vn } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as Oe, getTreeGridCellComparableValue as Ce, clearTreeGridCellHighlightById as Ze, highlightTreeGridCellById as qe, normalizeTreeGridExternalRows as Dn, getTreeGridAddedRowBaselineValue as Bn, removeTreeGridAddedRowHighlightColumn as Fn, appendTreeGridAddedRowHighlightColumn as Nn } from "../../../utils/treeGridUtil.js";
3
+ import { getTreeGridTextResourceUrl as Pn, TREEGRID_CELL_CHANGED_CLASS as Ye, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Dn } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as xe, getTreeGridCellComparableValue as Ee, clearTreeGridCellHighlightById as Ze, highlightTreeGridCellById as qe, normalizeTreeGridExternalRows as vn, getTreeGridAddedRowBaselineValue as Bn, removeTreeGridAddedRowHighlightColumn as Fn, appendTreeGridAddedRowHighlightColumn as Nn } from "../../../utils/treeGridUtil.js";
5
5
  import { applyTreeGridLayoutToGrid as Un } from "./treeGridLayout.js";
6
6
  import { resolveTreeGridSelectedRows as kn } from "./treeGridSelection.js";
7
7
  import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Mn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as be, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Ie, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as we, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as ye, TREE_GRID_THEME_WRAPPER_CLASS as Vn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Xn, TREE_GRID_ERROR_CELL_CLASS as Jn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Wn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as jn } from "./treeGridTheme.js";
@@ -9,7 +9,7 @@ import { countTreeGridPerf as Qe, logTreeGridPerf as Kn, measureTreeGridPerf as
9
9
  import { debounce as ee } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
10
  import { isEmpty as Hn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
11
  import { get as zn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
- const li = 300, Yn = 3, Zn = {
12
+ const ui = 300, Yn = 3, Zn = {
13
13
  1: {
14
14
  onEnter: "TabDownEdit",
15
15
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -39,7 +39,7 @@ const li = 300, Yn = 3, Zn = {
39
39
  "Float",
40
40
  "Date",
41
41
  "Pass"
42
- ]), ve = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), ct = {
42
+ ]), De = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), ct = {
43
43
  CustomScroll: "1",
44
44
  TouchScroll: "1"
45
45
  }, lt = {
@@ -57,7 +57,7 @@ const li = 300, Yn = 3, Zn = {
57
57
  LoadPage: "",
58
58
  RenderPage: "",
59
59
  RenderProgressText: ""
60
- }, U = {
60
+ }, ut = {
61
61
  EditFrom: "",
62
62
  EditTo: "#OwpSoftChange 240ms",
63
63
  ChangeFrom: "",
@@ -66,7 +66,21 @@ const li = 300, Yn = 3, Zn = {
66
66
  UndoChangeTo: "#OwpSoftRevert 280ms",
67
67
  RedoChangeFrom: "",
68
68
  RedoChangeTo: "#OwpSoftChange 240ms"
69
- }, nn = "Panel", tn = ["Formula", "FormulaFormula"], ut = /<Grid\b[^>]*>/i, ft = /<\/Grid\s*>/i, at = /<Toolbar\b[^>]*\/?>/i, Tt = [
69
+ }, ft = {
70
+ Add: "#OwpSoftRowAdd 220ms",
71
+ AddRows: "#OwpSoftRowAdd 220ms",
72
+ RedoAdd: "#OwpSoftRowAdd 220ms",
73
+ Delete: "#OwpSoftRowRemove 220ms",
74
+ DeleteRows: "#OwpSoftRowRemove 220ms",
75
+ DeleteVisible: "#OwpSoftRowRemove 220ms",
76
+ DeleteVisibleRows: "#OwpSoftRowRemove 220ms",
77
+ UndoAdd: "#OwpSoftRowRemove 220ms",
78
+ RedoDelete: "#OwpSoftRowRemove 220ms",
79
+ RedoDeleteVisible: "#OwpSoftRowRemove 220ms"
80
+ }, U = {
81
+ ...ut,
82
+ ...ft
83
+ }, nn = "Panel", tn = ["Formula", "FormulaFormula"], at = /<Grid\b[^>]*>/i, Tt = /<\/Grid\s*>/i, Et = /<Toolbar\b[^>]*\/?>/i, pt = [
70
84
  "CustomScroll",
71
85
  "CustomHScroll",
72
86
  "Undo",
@@ -100,11 +114,11 @@ const li = 300, Yn = 3, Zn = {
100
114
  "UndeleteVisibleRowsChildren"
101
115
  ],
102
116
  selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
103
- }, re = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), De = /* @__PURE__ */ i((e, n) => {
117
+ }, re = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), ve = /* @__PURE__ */ i((e, n) => {
104
118
  Object.entries(n).forEach(([t, r]) => {
105
119
  t in e || (e[t] = r);
106
120
  });
107
- }, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), Et = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), M = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), Ee = /* @__PURE__ */ i((e, n) => !P(e) && !ie(n), "isTreeGridCheckboxSelectionMode"), sn = /* @__PURE__ */ i((e) => {
121
+ }, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), St = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), M = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), pe = /* @__PURE__ */ i((e, n) => !P(e) && !ie(n), "isTreeGridCheckboxSelectionMode"), sn = /* @__PURE__ */ i((e) => {
108
122
  const n = e.Cfg;
109
123
  return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
110
124
  }, "getTreeGridJsonCfgRecords"), Z = /* @__PURE__ */ i((e, n) => {
@@ -112,18 +126,18 @@ const li = 300, Yn = 3, Zn = {
112
126
  return sn(e).forEach((r) => {
113
127
  n in r && (t = r[n]);
114
128
  }), t;
115
- }, "getTreeGridJsonCfgValue"), pt = /* @__PURE__ */ i((e, n) => {
129
+ }, "getTreeGridJsonCfgValue"), Gt = /* @__PURE__ */ i((e, n) => {
116
130
  const t = {};
117
131
  return n.forEach((r) => {
118
132
  const s = Z(e, r);
119
133
  s !== void 0 && (t[r] = s);
120
134
  }), t;
121
- }, "getTreeGridJsonCfgValues"), St = /* @__PURE__ */ i((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), Gt = /* @__PURE__ */ i((e) => rn.every((n) => {
135
+ }, "getTreeGridJsonCfgValues"), Rt = /* @__PURE__ */ i((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), gt = /* @__PURE__ */ i((e) => rn.every((n) => {
122
136
  const t = e[n];
123
- return t === void 0 || St(t);
137
+ return t === void 0 || Rt(t);
124
138
  }), "canApplyTreeGridStableScrollbarDefaults"), on = /* @__PURE__ */ i((e) => {
125
139
  const n = {};
126
- return Gt(e) && Object.entries(ct).forEach(
140
+ return gt(e) && Object.entries(ct).forEach(
127
141
  ([t, r]) => {
128
142
  e[t] === void 0 && (n[t] = r);
129
143
  }
@@ -146,7 +160,7 @@ const li = 300, Yn = 3, Zn = {
146
160
  return Object.entries(n).forEach(([r, s]) => {
147
161
  t = se(t, r, s);
148
162
  }), t;
149
- }, "setTreeGridXmlTagAttributes"), v = /* @__PURE__ */ i((e, n) => {
163
+ }, "setTreeGridXmlTagAttributes"), D = /* @__PURE__ */ i((e, n) => {
150
164
  let t = e;
151
165
  return Object.entries(n).forEach(([r, s]) => {
152
166
  k(t, r) || (t = V(t, r, s));
@@ -162,9 +176,9 @@ const li = 300, Yn = 3, Zn = {
162
176
  if (!T || a.startsWith("<!--") || a.startsWith("<?") || a.startsWith("<!"))
163
177
  continue;
164
178
  !t.hasFastPanel && k(a, "FastPanel") && (t.hasFastPanel = !0);
165
- const G = a.startsWith("</"), g = /\/>\s*$/.test(a);
179
+ const G = a.startsWith("</"), R = /\/>\s*$/.test(a);
166
180
  if (!c) {
167
- !G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s = g ? 0 : 1);
181
+ !G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s = R ? 0 : 1);
168
182
  continue;
169
183
  }
170
184
  if (G) {
@@ -175,25 +189,25 @@ const li = 300, Yn = 3, Zn = {
175
189
  s === 1 && (T === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
176
190
  index: r.index,
177
191
  tag: a
178
- }), Tt.forEach((R) => {
179
- const m = ln(a, R);
180
- m !== void 0 && (t.cfgValues[R] = m);
192
+ }), pt.forEach((h) => {
193
+ const _ = ln(a, h);
194
+ _ !== void 0 && (t.cfgValues[h] = _);
181
195
  }), t.lastCfgEndIndex = r.index + a.length) : T === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
182
196
  index: r.index,
183
197
  tag: a
184
- } : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && gt(a) && (t.defaultPanelTag = {
198
+ } : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && ht(a) && (t.defaultPanelTag = {
185
199
  index: r.index,
186
200
  tag: a
187
201
  })) : T === "animations" && !t.animationsTag && (t.animationsTag = {
188
202
  index: r.index,
189
203
  tag: a
190
- })), g || (s += 1);
204
+ })), R || (s += 1);
191
205
  }
192
206
  return t;
193
- }, "scanTreeGridXmlDefaultLayout"), gt = /* @__PURE__ */ i((e) => {
207
+ }, "scanTreeGridXmlDefaultLayout"), ht = /* @__PURE__ */ i((e) => {
194
208
  const n = ln(e, "Name");
195
209
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
196
- }, "isTreeGridXmlDefaultPanelTag"), ht = /* @__PURE__ */ i((e) => {
210
+ }, "isTreeGridXmlDefaultPanelTag"), At = /* @__PURE__ */ i((e) => {
197
211
  const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
198
212
  let r;
199
213
  for (; r = n.exec(e); ) {
@@ -208,8 +222,8 @@ const li = 300, Yn = 3, Zn = {
208
222
  });
209
223
  }
210
224
  return t;
211
- }, "getLeadingTreeGridXmlHeaderTags"), Rt = /* @__PURE__ */ i((e) => {
212
- const n = ht(e);
225
+ }, "getLeadingTreeGridXmlHeaderTags"), mt = /* @__PURE__ */ i((e) => {
226
+ const n = At(e);
213
227
  if (n.length <= 1)
214
228
  return {
215
229
  headContent: e,
@@ -232,12 +246,12 @@ const li = 300, Yn = 3, Zn = {
232
246
  )}`,
233
247
  isApplied: !0
234
248
  };
235
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), At = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), un = /* @__PURE__ */ i((e) => En(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), fn = /* @__PURE__ */ i((e) => un(e) || pn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), an = /* @__PURE__ */ i((e, n) => {
249
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), _t = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), un = /* @__PURE__ */ i((e) => pn(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), fn = /* @__PURE__ */ i((e) => un(e) || Cn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), an = /* @__PURE__ */ i((e, n) => {
236
250
  if (n.gridOpenTagEndIndex === void 0 || !fn(n))
237
251
  return e;
238
252
  const t = n.defaultPanelTag;
239
253
  if (t) {
240
- const s = v(
254
+ const s = D(
241
255
  t.tag,
242
256
  dt
243
257
  );
@@ -245,18 +259,18 @@ const li = 300, Yn = 3, Zn = {
245
259
  t.index + t.tag.length
246
260
  )}`;
247
261
  }
248
- const r = At(n);
262
+ const r = _t(n);
249
263
  return r === void 0 ? e : `${e.slice(0, r)}
250
264
  <Panel Spanned="1" />${e.slice(
251
265
  r
252
266
  )}`;
253
- }, "applyTreeGridXmlDefaultPanelSpannedLayout"), _t = /* @__PURE__ */ i((e, n) => un(n) ? an(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), mt = /* @__PURE__ */ i((e) => {
267
+ }, "applyTreeGridXmlDefaultPanelSpannedLayout"), Lt = /* @__PURE__ */ i((e, n) => un(n) ? an(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), Ot = /* @__PURE__ */ i((e) => {
254
268
  const n = e.trim();
255
- return !n || n.startsWith("{") ? e : _t(
269
+ return !n || n.startsWith("{") ? e : Lt(
256
270
  e,
257
271
  L(e)
258
272
  );
259
- }, "applyTreeGridDefaultPanelSpannedLayout"), Lt = /* @__PURE__ */ i((e) => {
273
+ }, "applyTreeGridDefaultPanelSpannedLayout"), xt = /* @__PURE__ */ i((e) => {
260
274
  if (!/<Head\b/i.test(e))
261
275
  return e;
262
276
  const n = L(e);
@@ -266,7 +280,7 @@ const li = 300, Yn = 3, Zn = {
266
280
  const r = e.replace(
267
281
  /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
268
282
  (s, c, f, a) => {
269
- const T = Rt(f);
283
+ const T = mt(f);
270
284
  return T.isApplied ? (t = !0, `${c}${T.headContent}${a}`) : s;
271
285
  }
272
286
  );
@@ -274,18 +288,18 @@ const li = 300, Yn = 3, Zn = {
274
288
  r,
275
289
  L(r)
276
290
  ) : e;
277
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Tn = /* @__PURE__ */ i((e) => Ee(
291
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Tn = /* @__PURE__ */ i((e) => pe(
278
292
  Z(e, "Selecting"),
279
293
  Z(e, "SelectingSingle")
280
- ), "isTreeGridJsonCheckboxSelectionLayout"), Cn = /* @__PURE__ */ i((e) => Ee(
294
+ ), "isTreeGridJsonCheckboxSelectionLayout"), En = /* @__PURE__ */ i((e) => pe(
281
295
  e.Selecting,
282
296
  e.SelectingSingle
283
- ), "isTreeGridXmlCheckboxSelectionLayout"), En = /* @__PURE__ */ i((e) => !P(e.Selecting), "isTreeGridXmlSelectingLayout"), pn = /* @__PURE__ */ i((e) => M(e.Undo, "1") && M(e.Deleting, "2") && M(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), xt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Ot = /* @__PURE__ */ i((e, n) => {
284
- if (n.gridOpenTagEndIndex === void 0 || !En(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
297
+ ), "isTreeGridXmlCheckboxSelectionLayout"), pn = /* @__PURE__ */ i((e) => !P(e.Selecting), "isTreeGridXmlSelectingLayout"), Cn = /* @__PURE__ */ i((e) => M(e.Undo, "1") && M(e.Deleting, "2") && M(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), bt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), It = /* @__PURE__ */ i((e, n) => {
298
+ if (n.gridOpenTagEndIndex === void 0 || !pn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
285
299
  return e;
286
300
  const t = n.defaultActionsTag;
287
301
  if (t) {
288
- const s = v(
302
+ const s = D(
289
303
  t.tag,
290
304
  H
291
305
  );
@@ -293,17 +307,17 @@ const li = 300, Yn = 3, Zn = {
293
307
  t.index + t.tag.length
294
308
  )}`;
295
309
  }
296
- const r = xt(n);
310
+ const r = bt(n);
297
311
  return r === void 0 ? e : `${e.slice(0, r)}
298
312
  <Actions OnClickCell="Focus" />${e.slice(
299
313
  r
300
314
  )}`;
301
- }, "applyTreeGridXmlDefaultCellClickActionLayout"), bt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), It = /* @__PURE__ */ i((e, n) => {
302
- if (n.gridOpenTagEndIndex === void 0 || !Cn(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
315
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), wt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), yt = /* @__PURE__ */ i((e, n) => {
316
+ if (n.gridOpenTagEndIndex === void 0 || !En(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
303
317
  return e;
304
318
  const t = n.defaultActionsTag;
305
319
  if (t) {
306
- const s = v(
320
+ const s = D(
307
321
  t.tag,
308
322
  z
309
323
  );
@@ -311,7 +325,7 @@ const li = 300, Yn = 3, Zn = {
311
325
  t.index + t.tag.length
312
326
  )}`;
313
327
  }
314
- const r = bt(n);
328
+ const r = wt(n);
315
329
  return r === void 0 ? e : `${e.slice(
316
330
  0,
317
331
  r
@@ -319,12 +333,12 @@ const li = 300, Yn = 3, Zn = {
319
333
  <Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
320
334
  r
321
335
  )}`;
322
- }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), wt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), yt = /* @__PURE__ */ i((e, n) => {
323
- if (n.gridOpenTagEndIndex === void 0 || !pn(n.cfgValues))
336
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), $t = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Pt = /* @__PURE__ */ i((e, n) => {
337
+ if (n.gridOpenTagEndIndex === void 0 || !Cn(n.cfgValues))
324
338
  return e;
325
339
  const t = n.defaultPanelTag;
326
340
  if (t) {
327
- const c = v(
341
+ const c = D(
328
342
  t.tag,
329
343
  lt
330
344
  );
@@ -332,20 +346,20 @@ const li = 300, Yn = 3, Zn = {
332
346
  t.index + t.tag.length
333
347
  )}`;
334
348
  }
335
- const r = wt(n);
349
+ const r = $t(n);
336
350
  return r === void 0 ? e : `${e.slice(0, r)}
337
351
  <Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
338
352
  r
339
353
  )}`;
340
- }, "applyTreeGridXmlDefaultDeletePanelLayout"), $t = /* @__PURE__ */ i((e, n) => {
341
- if (n.hasFastPanel || !Cn(n.cfgValues))
354
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), Dt = /* @__PURE__ */ i((e, n) => {
355
+ if (n.hasFastPanel || !En(n.cfgValues))
342
356
  return e;
343
357
  const t = n.gridOpenTagEndIndex;
344
358
  return t === void 0 ? e : `${e.slice(0, t)}
345
359
  <Cfg FastPanel="0" />${e.slice(
346
360
  t
347
361
  )}`;
348
- }, "applyTreeGridXmlDefaultFastPanelLayout"), Pt = /* @__PURE__ */ i((e) => {
362
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), vt = /* @__PURE__ */ i((e) => {
349
363
  const n = e.Cfg;
350
364
  if (Array.isArray(n)) {
351
365
  n.some((t) => S(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
@@ -356,7 +370,7 @@ const li = 300, Yn = 3, Zn = {
356
370
  return;
357
371
  }
358
372
  e.Cfg = { FastPanel: 0 };
359
- }, "applyTreeGridJsonFastPanelDefault"), vt = /* @__PURE__ */ i((e) => {
373
+ }, "applyTreeGridJsonFastPanelDefault"), Bt = /* @__PURE__ */ i((e) => {
360
374
  const n = e.Actions;
361
375
  if (Array.isArray(n)) {
362
376
  n.some(
@@ -369,7 +383,7 @@ const li = 300, Yn = 3, Zn = {
369
383
  return;
370
384
  }
371
385
  n === void 0 && (e.Actions = { ...z });
372
- }, "applyTreeGridJsonSelectAllPanelActionDefault"), Dt = /* @__PURE__ */ i((e) => {
386
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), Ft = /* @__PURE__ */ i((e) => {
373
387
  const n = e.Actions;
374
388
  if (Array.isArray(n)) {
375
389
  n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...H }, ...n]);
@@ -380,35 +394,35 @@ const li = 300, Yn = 3, Zn = {
380
394
  return;
381
395
  }
382
396
  n === void 0 && (e.Actions = { ...H });
383
- }, "applyTreeGridJsonCellClickActionDefault"), Bt = /* @__PURE__ */ i((e) => {
397
+ }, "applyTreeGridJsonCellClickActionDefault"), Nt = /* @__PURE__ */ i((e) => {
384
398
  try {
385
399
  const n = JSON.parse(e);
386
- return !S(n) || P(Z(n, "Selecting")) ? e : (Dt(n), JSON.stringify(n));
400
+ return !S(n) || P(Z(n, "Selecting")) ? e : (Ft(n), JSON.stringify(n));
387
401
  } catch {
388
402
  return e;
389
403
  }
390
404
  }, "applyTreeGridJsonDefaultCellClickActionLayout"), Be = /* @__PURE__ */ i((e, n) => {
391
405
  const t = e.trim();
392
- return t ? t.startsWith("{") ? Bt(e) : Ot(
406
+ return t ? t.startsWith("{") ? Nt(e) : It(
393
407
  e,
394
408
  n ?? L(e)
395
409
  ) : e;
396
- }, "applyTreeGridDefaultCellClickActionLayout"), Ft = /* @__PURE__ */ i((e) => {
410
+ }, "applyTreeGridDefaultCellClickActionLayout"), Ut = /* @__PURE__ */ i((e) => {
397
411
  try {
398
412
  const n = JSON.parse(e);
399
- return !S(n) || !Tn(n) ? e : (vt(n), JSON.stringify(n));
413
+ return !S(n) || !Tn(n) ? e : (Bt(n), JSON.stringify(n));
400
414
  } catch {
401
415
  return e;
402
416
  }
403
417
  }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Fe = /* @__PURE__ */ i((e, n) => {
404
418
  const t = e.trim();
405
- return t ? t.startsWith("{") ? Ft(e) : It(
419
+ return t ? t.startsWith("{") ? Ut(e) : yt(
406
420
  e,
407
421
  n ?? L(e)
408
422
  ) : e;
409
- }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Nt = /* @__PURE__ */ i((e) => {
423
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), kt = /* @__PURE__ */ i((e) => {
410
424
  const n = on(
411
- pt(e, rn)
425
+ Gt(e, rn)
412
426
  );
413
427
  if (!cn(n))
414
428
  return;
@@ -423,14 +437,14 @@ const li = 300, Yn = 3, Zn = {
423
437
  return;
424
438
  }
425
439
  e.Cfg = n;
426
- }, "applyTreeGridJsonStableScrollbarDefaults"), Ut = /* @__PURE__ */ i((e) => {
440
+ }, "applyTreeGridJsonStableScrollbarDefaults"), Mt = /* @__PURE__ */ i((e) => {
427
441
  try {
428
442
  const n = JSON.parse(e);
429
- return S(n) ? (Nt(n), JSON.stringify(n)) : e;
443
+ return S(n) ? (kt(n), JSON.stringify(n)) : e;
430
444
  } catch {
431
445
  return e;
432
446
  }
433
- }, "applyTreeGridJsonStableScrollbarDefaultLayout"), kt = /* @__PURE__ */ i((e, n) => {
447
+ }, "applyTreeGridJsonStableScrollbarDefaultLayout"), Vt = /* @__PURE__ */ i((e, n) => {
434
448
  const t = on(
435
449
  n.cfgValues
436
450
  );
@@ -438,7 +452,7 @@ const li = 300, Yn = 3, Zn = {
438
452
  return e;
439
453
  const r = n.defaultCfgTag;
440
454
  if (r) {
441
- const f = v(
455
+ const f = D(
442
456
  r.tag,
443
457
  t
444
458
  );
@@ -449,7 +463,7 @@ const li = 300, Yn = 3, Zn = {
449
463
  const s = n.gridOpenTagEndIndex;
450
464
  if (s === void 0)
451
465
  return e;
452
- const c = v(
466
+ const c = D(
453
467
  "<Cfg />",
454
468
  t
455
469
  );
@@ -457,9 +471,9 @@ const li = 300, Yn = 3, Zn = {
457
471
  ${c}${e.slice(
458
472
  s
459
473
  )}`;
460
- }, "applyTreeGridXmlStableScrollbarDefaultLayout"), Mt = /* @__PURE__ */ i((e) => {
474
+ }, "applyTreeGridXmlStableScrollbarDefaultLayout"), Xt = /* @__PURE__ */ i((e) => {
461
475
  const n = e.trim();
462
- return n ? n.startsWith("{") ? Ut(e) : kt(
476
+ return n ? n.startsWith("{") ? Mt(e) : Vt(
463
477
  e,
464
478
  L(e)
465
479
  ) : e;
@@ -475,7 +489,7 @@ const li = 300, Yn = 3, Zn = {
475
489
  return;
476
490
  }
477
491
  e.Text = { ...I };
478
- }, "applyTreeGridJsonLangPageMessageTextDefaults"), Vt = /* @__PURE__ */ i((e) => {
492
+ }, "applyTreeGridJsonLangPageMessageTextDefaults"), Jt = /* @__PURE__ */ i((e) => {
479
493
  const n = e.Lang;
480
494
  if (Array.isArray(n)) {
481
495
  const t = n.find(S);
@@ -487,14 +501,14 @@ const li = 300, Yn = 3, Zn = {
487
501
  return;
488
502
  }
489
503
  e.Lang = { Text: { ...I } };
490
- }, "applyTreeGridJsonPageMessageTextDefaults"), Xt = /* @__PURE__ */ i((e) => {
504
+ }, "applyTreeGridJsonPageMessageTextDefaults"), Wt = /* @__PURE__ */ i((e) => {
491
505
  try {
492
506
  const n = JSON.parse(e);
493
- return S(n) ? (Vt(n), JSON.stringify(n)) : e;
507
+ return S(n) ? (Jt(n), JSON.stringify(n)) : e;
494
508
  } catch {
495
509
  return e;
496
510
  }
497
- }, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", I), "createTreeGridXmlPageMessageTextTag"), Jt = /* @__PURE__ */ i((e) => {
511
+ }, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", I), "createTreeGridXmlPageMessageTextTag"), jt = /* @__PURE__ */ i((e) => {
498
512
  let n = !1;
499
513
  const t = e.replace(
500
514
  /(<Lang\b[^>]*>)([\s\S]*?)(<\/Lang>)/i,
@@ -513,8 +527,8 @@ const li = 300, Yn = 3, Zn = {
513
527
  return n ? t : e.replace(/<Lang\b[^>]*\/>/i, (r) => (n = !0, `${r.replace(/\s*\/>$/, ">")}
514
528
  ${oe()}
515
529
  </Lang>`));
516
- }, "applyTreeGridXmlPageMessageTextToLangLayout"), Wt = /* @__PURE__ */ i((e) => {
517
- const n = Jt(e);
530
+ }, "applyTreeGridXmlPageMessageTextToLangLayout"), Kt = /* @__PURE__ */ i((e) => {
531
+ const n = jt(e);
518
532
  if (n !== e)
519
533
  return n;
520
534
  const t = L(e), r = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
@@ -524,10 +538,10 @@ const li = 300, Yn = 3, Zn = {
524
538
  </Lang>${e.slice(
525
539
  r
526
540
  )}`;
527
- }, "applyTreeGridXmlPageMessageTextLayout"), jt = /* @__PURE__ */ i((e) => {
541
+ }, "applyTreeGridXmlPageMessageTextLayout"), Ht = /* @__PURE__ */ i((e) => {
528
542
  const n = e.trim();
529
- return n ? n.startsWith("{") ? Xt(e) : Wt(e) : e;
530
- }, "applyTreeGridPageMessageTextLayout"), Kt = /* @__PURE__ */ i((e, n) => {
543
+ return n ? n.startsWith("{") ? Wt(e) : Kt(e) : e;
544
+ }, "applyTreeGridPageMessageTextLayout"), zt = /* @__PURE__ */ i((e, n) => {
531
545
  if (n === void 0)
532
546
  return e;
533
547
  try {
@@ -539,7 +553,7 @@ const li = 300, Yn = 3, Zn = {
539
553
  } catch {
540
554
  return e;
541
555
  }
542
- }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Ht = /* @__PURE__ */ i((e, n, t) => {
556
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Yt = /* @__PURE__ */ i((e, n, t) => {
543
557
  if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
544
558
  return e;
545
559
  const r = n.defaultCfgTag;
@@ -554,39 +568,39 @@ const li = 300, Yn = 3, Zn = {
554
568
  <Cfg SuppressCfg="${t}" />${e.slice(
555
569
  s
556
570
  )}`;
557
- }, "applyTreeGridXmlDefaultSuppressCfgLayout"), zt = /* @__PURE__ */ i((e, n) => {
571
+ }, "applyTreeGridXmlDefaultSuppressCfgLayout"), Zt = /* @__PURE__ */ i((e, n) => {
558
572
  const t = e.trim();
559
- return n === void 0 || !t ? e : t.startsWith("{") ? Kt(e, n) : Ht(
573
+ return n === void 0 || !t ? e : t.startsWith("{") ? zt(e, n) : Yt(
560
574
  e,
561
575
  L(e),
562
576
  n
563
577
  );
564
- }, "applyTreeGridDefaultSuppressCfgLayout"), Yt = /* @__PURE__ */ i((e) => tn.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Zt = /* @__PURE__ */ i((e) => {
578
+ }, "applyTreeGridDefaultSuppressCfgLayout"), qt = /* @__PURE__ */ i((e) => tn.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Qt = /* @__PURE__ */ i((e) => {
565
579
  const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], s = Array.isArray(t) ? t.filter(
566
580
  (c) => S(c) && M(c.Kind, "Toolbar")
567
581
  ) : S(t) && M(t.Kind, "Toolbar") ? [t] : [];
568
582
  return [...r, ...s];
569
- }, "getTreeGridJsonToolbarRecords"), qt = /* @__PURE__ */ i((e, n) => {
583
+ }, "getTreeGridJsonToolbarRecords"), er = /* @__PURE__ */ i((e, n) => {
570
584
  if (!n)
571
585
  return e;
572
586
  try {
573
587
  const t = JSON.parse(e);
574
588
  if (!S(t))
575
589
  return e;
576
- const r = Zt(t);
577
- return r.some(Yt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
590
+ const r = Qt(t);
591
+ return r.some(qt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
578
592
  } catch {
579
593
  return e;
580
594
  }
581
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Qt = /* @__PURE__ */ i((e) => tn.some(
595
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), nr = /* @__PURE__ */ i((e) => tn.some(
582
596
  (n) => k(e, n)
583
- ), "hasTreeGridXmlToolbarFormulaAttribute"), er = /* @__PURE__ */ i((e, n) => {
597
+ ), "hasTreeGridXmlToolbarFormulaAttribute"), tr = /* @__PURE__ */ i((e, n) => {
584
598
  if (!n)
585
599
  return e;
586
- const t = at.exec(e);
600
+ const t = Et.exec(e);
587
601
  if (t) {
588
602
  const f = t[0];
589
- if (Qt(f))
603
+ if (nr(f))
590
604
  return e;
591
605
  const a = se(
592
606
  f,
@@ -601,42 +615,42 @@ const li = 300, Yn = 3, Zn = {
601
615
  "<Toolbar />",
602
616
  "Formula",
603
617
  n
604
- ), s = ft.exec(e);
618
+ ), s = Tt.exec(e);
605
619
  if (s)
606
620
  return `${e.slice(0, s.index)} ${r}
607
621
  ${e.slice(
608
622
  s.index
609
623
  )}`;
610
- const c = ut.exec(e);
624
+ const c = at.exec(e);
611
625
  return c ? `${e.slice(
612
626
  0,
613
627
  c.index + c[0].length
614
628
  )}
615
629
  ${r}${e.slice(c.index + c[0].length)}` : e;
616
- }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), nr = /* @__PURE__ */ i((e, n) => {
630
+ }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), rr = /* @__PURE__ */ i((e, n) => {
617
631
  const t = e.trim();
618
- return !n || !t ? e : t.startsWith("{") ? qt(
632
+ return !n || !t ? e : t.startsWith("{") ? er(
619
633
  e,
620
634
  n
621
- ) : er(e, n);
622
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), tr = /* @__PURE__ */ i((e) => {
635
+ ) : tr(e, n);
636
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), ir = /* @__PURE__ */ i((e) => {
623
637
  try {
624
638
  const n = JSON.parse(e);
625
- return !S(n) || !Tn(n) ? e : (Pt(n), JSON.stringify(n));
639
+ return !S(n) || !Tn(n) ? e : (vt(n), JSON.stringify(n));
626
640
  } catch {
627
641
  return e;
628
642
  }
629
643
  }, "applyTreeGridJsonDefaultFastPanelLayout"), Ue = /* @__PURE__ */ i((e, n) => {
630
644
  const t = e.trim();
631
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : tr(e) : $t(
645
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : ir(e) : Dt(
632
646
  e,
633
647
  n ?? L(e)
634
648
  ) : e;
635
- }, "applyTreeGridDefaultFastPanelLayout"), rr = /* @__PURE__ */ i((e) => {
649
+ }, "applyTreeGridDefaultFastPanelLayout"), sr = /* @__PURE__ */ i((e) => {
636
650
  const n = e.Animations;
637
651
  if (Array.isArray(n)) {
638
652
  const t = n.find(S);
639
- t ? De(
653
+ t ? ve(
640
654
  t,
641
655
  U
642
656
  ) : e.Animations = [
@@ -646,30 +660,30 @@ ${e.slice(
646
660
  return;
647
661
  }
648
662
  if (S(n)) {
649
- De(
663
+ ve(
650
664
  n,
651
665
  U
652
666
  );
653
667
  return;
654
668
  }
655
669
  n === void 0 && (e.Animations = { ...U });
656
- }, "applyTreeGridJsonEditCellAnimationDefaults"), ir = /* @__PURE__ */ i((e) => {
670
+ }, "applyTreeGridJsonDefaultAnimationDefaults"), or = /* @__PURE__ */ i((e) => {
657
671
  try {
658
672
  const n = JSON.parse(e);
659
- return S(n) ? (rr(n), JSON.stringify(n)) : e;
673
+ return S(n) ? (sr(n), JSON.stringify(n)) : e;
660
674
  } catch {
661
675
  return e;
662
676
  }
663
- }, "applyTreeGridJsonEditCellAnimationLayout"), sr = /* @__PURE__ */ i(() => X(
677
+ }, "applyTreeGridJsonDefaultAnimationLayout"), cr = /* @__PURE__ */ i(() => X(
664
678
  "<Animations />",
665
679
  U
666
- ), "createTreeGridDefaultEditCellAnimationsTag"), or = /* @__PURE__ */ i((e, n) => {
680
+ ), "createTreeGridDefaultAnimationsTag"), lr = /* @__PURE__ */ i((e, n) => {
667
681
  const t = L(e);
668
682
  if (t.gridOpenTagEndIndex === void 0)
669
683
  return e;
670
684
  const r = t.animationsTag;
671
685
  if (r) {
672
- const c = v(
686
+ const c = D(
673
687
  r.tag,
674
688
  U
675
689
  );
@@ -679,13 +693,13 @@ ${e.slice(
679
693
  }
680
694
  const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
681
695
  return `${e.slice(0, s)}
682
- ${sr()}${e.slice(
696
+ ${cr()}${e.slice(
683
697
  s
684
698
  )}`;
685
- }, "applyTreeGridXmlDefaultEditCellAnimationLayout"), ke = /* @__PURE__ */ i((e, n) => {
699
+ }, "applyTreeGridXmlDefaultAnimationLayout"), ke = /* @__PURE__ */ i((e, n) => {
686
700
  const t = e.trim();
687
- return t ? t.startsWith("{") ? ir(e) : or(e) : e;
688
- }, "applyTreeGridDefaultEditCellAnimationLayout"), cr = /* @__PURE__ */ i((e) => {
701
+ return t ? t.startsWith("{") ? or(e) : lr(e) : e;
702
+ }, "applyTreeGridDefaultAnimationLayout"), dr = /* @__PURE__ */ i((e) => {
689
703
  const n = {};
690
704
  return e == null || e.forEach((t) => {
691
705
  var r;
@@ -693,7 +707,7 @@ ${e.slice(
693
707
  n[s] = "";
694
708
  });
695
709
  }), n;
696
- }, "getTreeGridDisabledAnimationAttributes"), lr = /* @__PURE__ */ i((e, n) => {
710
+ }, "getTreeGridDisabledAnimationAttributes"), ur = /* @__PURE__ */ i((e, n) => {
697
711
  try {
698
712
  const t = JSON.parse(e);
699
713
  if (!S(t))
@@ -712,7 +726,7 @@ ${e.slice(
712
726
  } catch {
713
727
  return e;
714
728
  }
715
- }, "applyTreeGridJsonDisabledAnimationsLayout"), dr = /* @__PURE__ */ i((e) => X("<Animations />", e), "createTreeGridDisabledAnimationsTag"), ur = /* @__PURE__ */ i((e, n) => {
729
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), fr = /* @__PURE__ */ i((e) => X("<Animations />", e), "createTreeGridDisabledAnimationsTag"), ar = /* @__PURE__ */ i((e, n) => {
716
730
  const t = L(e);
717
731
  if (t.gridOpenTagEndIndex === void 0)
718
732
  return e;
@@ -725,22 +739,22 @@ ${e.slice(
725
739
  }
726
740
  const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
727
741
  return `${e.slice(0, s)}
728
- ${dr(
742
+ ${fr(
729
743
  n
730
744
  )}${e.slice(s)}`;
731
745
  }, "applyTreeGridXmlDisabledAnimationsLayout"), Me = /* @__PURE__ */ i((e, n) => {
732
- const t = cr(n);
746
+ const t = dr(n);
733
747
  if (!Object.keys(t).length)
734
748
  return e;
735
749
  const r = e.trim();
736
- return r ? r.startsWith("{") ? lr(e, t) : ur(e, t) : e;
750
+ return r ? r.startsWith("{") ? ur(e, t) : ar(e, t) : e;
737
751
  }, "applyTreeGridDisabledAnimationsLayout"), ce = /* @__PURE__ */ i((e, n, t, r) => {
738
- const s = nr(
739
- jt(
740
- mt(
741
- Lt(
742
- Mt(
743
- zt(e, r)
752
+ const s = rr(
753
+ Ht(
754
+ Ot(
755
+ xt(
756
+ Xt(
757
+ Zt(e, r)
744
758
  )
745
759
  )
746
760
  )
@@ -764,23 +778,23 @@ ${e.slice(
764
778
  ), T = a === s ? f : L(a), G = Be(
765
779
  a,
766
780
  T
767
- ), g = G === a ? T : L(G);
781
+ ), R = G === a ? T : L(G);
768
782
  return Me(
769
783
  ke(
770
- yt(
784
+ Pt(
771
785
  Ue(
772
786
  G,
773
- g
787
+ R
774
788
  ),
775
- g
789
+ R
776
790
  )
777
791
  ),
778
792
  n
779
793
  );
780
- }, "applyTreeGridDefaultLayout"), fr = /* @__PURE__ */ i((e) => {
794
+ }, "applyTreeGridDefaultLayout"), Tr = /* @__PURE__ */ i((e) => {
781
795
  var n;
782
796
  return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Vn}`)) ?? null;
783
- }, "getTreeGridWrapperElement"), ar = /* @__PURE__ */ i((e) => {
797
+ }, "getTreeGridWrapperElement"), Er = /* @__PURE__ */ i((e) => {
784
798
  if (ie(e.AllSelected))
785
799
  return "checked";
786
800
  if (P(e.AllSelected))
@@ -790,7 +804,7 @@ ${e.slice(
790
804
  !A(r) || P(r.CanSelect) || (n += 1, ie(e.IsSelected(r)) && (t += 1));
791
805
  }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
792
806
  }, "getTreeGridSelectAllState"), le = /* @__PURE__ */ i((e, n) => {
793
- const t = fr(n), r = !P(e.Selecting), s = Ee(
807
+ const t = Tr(n), r = !P(e.Selecting), s = pe(
794
808
  e.Selecting,
795
809
  e.SelectingSingle
796
810
  ), c = e.Header;
@@ -804,7 +818,7 @@ ${e.slice(
804
818
  we
805
819
  );
806
820
  else {
807
- const f = ar(e);
821
+ const f = Er(e);
808
822
  t == null || t.classList.toggle(
809
823
  be,
810
824
  f === "checked"
@@ -826,7 +840,7 @@ ${e.slice(
826
840
  ne.delete(n), le(e, n);
827
841
  }, 0);
828
842
  ne.set(n, r);
829
- }, "scheduleTreeGridSelectionPanelStateSync"), Tr = /* @__PURE__ */ i((e, n) => {
843
+ }, "scheduleTreeGridSelectionPanelStateSync"), pr = /* @__PURE__ */ i((e, n) => {
830
844
  e.EnterMode = n;
831
845
  const t = Zn[n];
832
846
  if (!t)
@@ -863,8 +877,8 @@ ${e.slice(
863
877
  if (r !== void 0 && (n.CanEdit = r), c !== void 0) {
864
878
  const T = n;
865
879
  s.forEach((G) => {
866
- var g;
867
- !G || !((g = e.Cols) != null && g[G]) || (T[`${G}CanEdit`] = c);
880
+ var R;
881
+ !G || !((R = e.Cols) != null && R[G]) || (T[`${G}CanEdit`] = c);
868
882
  });
869
883
  }
870
884
  f.forEach((T) => {
@@ -880,7 +894,7 @@ ${e.slice(
880
894
  }
881
895
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
882
896
  }
883
- }, "syncTreeGridDeletedRowState"), Er = /* @__PURE__ */ i((e) => e ? Sn(e) || e.includes("assets") ? de(e) : de(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), pr = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Sr = /* @__PURE__ */ i((e, n, t, r) => {
897
+ }, "syncTreeGridDeletedRowState"), Sr = /* @__PURE__ */ i((e) => e ? Sn(e) || e.includes("assets") ? de(e) : de(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Gr = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Rr = /* @__PURE__ */ i((e, n, t, r) => {
884
898
  if (!(!e || t === "cancel")) {
885
899
  if (t === "remove") {
886
900
  e.RemoveRow(n), r(e);
@@ -888,7 +902,7 @@ ${e.slice(
888
902
  }
889
903
  e.DeleteRowT(n, 3);
890
904
  }
891
- }, "applyTreeGridBeforeRowUndeleteAction"), Gr = /* @__PURE__ */ i((e, n, t) => e ? { Url: Er(n) } : { Data: { Body: [Hn(t) ? [] : t] } }, "buildTreeGridDataSource"), di = /* @__PURE__ */ i(({
905
+ }, "applyTreeGridBeforeRowUndeleteAction"), gr = /* @__PURE__ */ i((e, n, t) => e ? { Url: Sr(n) } : { Data: { Body: [Hn(t) ? [] : t] } }, "buildTreeGridDataSource"), fi = /* @__PURE__ */ i(({
892
906
  id: e,
893
907
  layoutUrl: n,
894
908
  layoutData: t,
@@ -899,8 +913,8 @@ ${e.slice(
899
913
  bodyData: a,
900
914
  useDataUrl: T,
901
915
  width: G,
902
- height: g,
903
- languageId: R
916
+ height: R,
917
+ languageId: h
904
918
  }) => ({
905
919
  id: e,
906
920
  Layout: t ? {
@@ -911,12 +925,12 @@ ${e.slice(
911
925
  s
912
926
  )
913
927
  } : { Url: de(n ?? "") },
914
- Data: Gr(T, f, a),
928
+ Data: gr(T, f, a),
915
929
  Text: {
916
- Url: Pn(R)
930
+ Url: Pn(h)
917
931
  },
918
932
  width: G,
919
- height: g,
933
+ height: R,
920
934
  Debug: "Error"
921
935
  }), "buildTreeGridInitializationOptions"), We = /* @__PURE__ */ i((e) => zn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), je = /* @__PURE__ */ i((e) => {
922
936
  if (typeof e == "number")
@@ -935,7 +949,7 @@ ${e.slice(
935
949
  return c !== void 0 ? c : je(
936
950
  n[`${t}${r}`]
937
951
  );
938
- }, "getTreeGridHeaderCellSpanAttribute"), gr = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (ue(e, n, t, "Span") ?? 1) <= 1 ? !1 : (ue(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ke = /* @__PURE__ */ i((e, n, t) => {
952
+ }, "getTreeGridHeaderCellSpanAttribute"), hr = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (ue(e, n, t, "Span") ?? 1) <= 1 ? !1 : (ue(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ke = /* @__PURE__ */ i((e, n, t) => {
939
953
  const r = e.get(n);
940
954
  if (r) {
941
955
  r.add(t);
@@ -946,17 +960,17 @@ ${e.slice(
946
960
  const s = /* @__PURE__ */ new Map();
947
961
  return n.forEach((c, f) => {
948
962
  t.forEach((a, T) => {
949
- if (!gr(e, c, a) || (Ke(s, c, a), !r))
963
+ if (!hr(e, c, a) || (Ke(s, c, a), !r))
950
964
  return;
951
- const G = Math.floor(ue(e, c, a, "Span") ?? 1), g = Math.min(t.length, T + G);
952
- for (let R = f + 1; R < n.length; R += 1) {
953
- const m = n[R];
954
- for (let x = T; x < g; x += 1)
955
- Ke(s, m, t[x]);
965
+ const G = Math.floor(ue(e, c, a, "Span") ?? 1), R = Math.min(t.length, T + G);
966
+ for (let h = f + 1; h < n.length; h += 1) {
967
+ const _ = n[h];
968
+ for (let O = T; O < R; O += 1)
969
+ Ke(s, _, t[O]);
956
970
  }
957
971
  });
958
972
  }), s;
959
- }, "getTreeGridGroupHeaderSortButtonTargets"), hr = /* @__PURE__ */ i((e, n, t, r) => {
973
+ }, "getTreeGridGroupHeaderSortButtonTargets"), Ar = /* @__PURE__ */ i((e, n, t, r) => {
960
974
  var f;
961
975
  if (!n || !t || n.Fixed !== "Head")
962
976
  return !1;
@@ -968,7 +982,7 @@ ${e.slice(
968
982
  r
969
983
  ).get(n)) == null ? void 0 : f.has(t)) === !0;
970
984
  }, "isTreeGridGroupHeaderSortButtonTarget"), He = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
971
- const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((g) => g.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
985
+ const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((R) => R.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
972
986
  if (!c.length || !f.length)
973
987
  return;
974
988
  const a = /* @__PURE__ */ new Set();
@@ -982,46 +996,46 @@ ${e.slice(
982
996
  if (G.size) {
983
997
  typeof e.StartUpdate == "function" && e.StartUpdate();
984
998
  try {
985
- G.forEach((g, R) => {
986
- g.forEach((m) => {
987
- e.GetAttribute(R, m, $e) !== "" && (e.SetAttribute(R, m, $e, "", 0, 0), a.add(R), T += 1);
999
+ G.forEach((R, h) => {
1000
+ R.forEach((_) => {
1001
+ e.GetAttribute(h, _, $e) !== "" && (e.SetAttribute(h, _, $e, "", 0, 0), a.add(h), T += 1);
988
1002
  });
989
1003
  });
990
1004
  } finally {
991
1005
  typeof e.EndUpdate == "function" && e.EndUpdate();
992
1006
  }
993
- a.size && (t && a.forEach((g) => {
994
- typeof e.RefreshRow == "function" && e.RefreshRow(g);
1007
+ a.size && (t && a.forEach((R) => {
1008
+ typeof e.RefreshRow == "function" && e.RefreshRow(R);
995
1009
  }), Qe(n, "group header button attribute apply"), en(n, "group header button attribute apply", s, {
996
1010
  updatedCellCount: T,
997
1011
  updatedRowCount: a.size
998
1012
  }));
999
1013
  }
1000
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), Rr = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Ar = /* @__PURE__ */ i((e) => {
1014
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), mr = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), _r = /* @__PURE__ */ i((e) => {
1001
1015
  const n = e == null ? void 0 : e.Visible;
1002
1016
  return !!e && n !== 0 && n !== !1 && n !== "0";
1003
- }, "isVisibleTreeGridRow"), D = /* @__PURE__ */ i((e) => {
1017
+ }, "isVisibleTreeGridRow"), v = /* @__PURE__ */ i((e) => {
1004
1018
  const n = e == null ? void 0 : e.Added;
1005
1019
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
1006
- }, "isAddedTreeGridRow"), gn = /* @__PURE__ */ i((e) => {
1020
+ }, "isAddedTreeGridRow"), Rn = /* @__PURE__ */ i((e) => {
1007
1021
  const n = e == null ? void 0 : e.Deleted;
1008
1022
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
1009
- }, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !Ar(e) ? !1 : e.Kind === "Data" || D(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), _r = /* @__PURE__ */ i((e, n) => {
1023
+ }, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !_r(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Lr = /* @__PURE__ */ i((e, n) => {
1010
1024
  var r;
1011
1025
  const t = (r = e.Cols) == null ? void 0 : r[n];
1012
- return !!t && !P(t.Visible) && !Et(t.Hidden);
1013
- }, "isVisibleTreeGridColumn"), K = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), mr = /* @__PURE__ */ i((e) => {
1026
+ return !!t && !P(t.Visible) && !St(t.Hidden);
1027
+ }, "isVisibleTreeGridColumn"), K = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), Or = /* @__PURE__ */ i((e) => {
1014
1028
  const n = re.get(e);
1015
1029
  if (n)
1016
1030
  return n;
1017
1031
  const t = new Map(
1018
1032
  q(e).map((c, f) => [c, f])
1019
1033
  ), r = [...t.keys()].filter(
1020
- (c) => !st.has(c) && _r(e, c)
1034
+ (c) => !st.has(c) && Lr(e, c)
1021
1035
  ).sort((c, f) => {
1022
- var x, y;
1023
- const a = (x = e.Cols) == null ? void 0 : x[c], T = (y = e.Cols) == null ? void 0 : y[f], G = t.get(c) ?? 0, g = t.get(f) ?? 0, R = K(a == null ? void 0 : a.Sec, G) - K(T == null ? void 0 : T.Sec, g);
1024
- return R !== 0 ? R : K(a == null ? void 0 : a.Pos, G) - K(T == null ? void 0 : T.Pos, g) || G - g;
1036
+ var O, y;
1037
+ const a = (O = e.Cols) == null ? void 0 : O[c], T = (y = e.Cols) == null ? void 0 : y[f], G = t.get(c) ?? 0, R = t.get(f) ?? 0, h = K(a == null ? void 0 : a.Sec, G) - K(T == null ? void 0 : T.Sec, R);
1038
+ return h !== 0 ? h : K(a == null ? void 0 : a.Pos, G) - K(T == null ? void 0 : T.Pos, R) || G - R;
1025
1039
  }), s = {
1026
1040
  columnSet: new Set(r),
1027
1041
  firstColumn: r[0],
@@ -1041,10 +1055,10 @@ ${e.slice(
1041
1055
  return Object.values(e.Rows ?? {});
1042
1056
  }, "getTreeGridRows"), fe = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ i((e) => {
1043
1057
  e && fe.delete(e);
1044
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), hn = /* @__PURE__ */ i((e, n) => {
1058
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), gn = /* @__PURE__ */ i((e, n) => {
1045
1059
  const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], s = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
1046
1060
  return Number.isFinite(s) && s > 1 ? Math.floor(s) : 1;
1047
- }, "getTreeGridRowSpanCount"), Lr = /* @__PURE__ */ i((e) => {
1061
+ }, "getTreeGridRowSpanCount"), xr = /* @__PURE__ */ i((e) => {
1048
1062
  const n = /* @__PURE__ */ new WeakMap();
1049
1063
  let t = null, r = -1;
1050
1064
  return J(e).forEach((s, c) => {
@@ -1052,55 +1066,55 @@ ${e.slice(
1052
1066
  n.set(s, null);
1053
1067
  return;
1054
1068
  }
1055
- const f = hn(s, nn);
1069
+ const f = gn(s, nn);
1056
1070
  if (f > 1) {
1057
1071
  t = s, r = c + f - 1, n.set(s, s);
1058
1072
  return;
1059
1073
  }
1060
1074
  n.set(s, t && c <= r ? t : null), c >= r && (t = null, r = -1);
1061
1075
  }), n;
1062
- }, "createTreeGridSelectionRowSpanAnchorRowMap"), pe = /* @__PURE__ */ i((e, n) => {
1076
+ }, "createTreeGridSelectionRowSpanAnchorRowMap"), Ce = /* @__PURE__ */ i((e, n) => {
1063
1077
  if (!n || !A(n))
1064
1078
  return null;
1065
1079
  let t = fe.get(e);
1066
- return t != null && t.has(n) || (t = Lr(e), fe.set(e, t)), t.get(n) ?? null;
1067
- }, "getTreeGridSelectionRowSpanAnchorRow"), Rn = /* @__PURE__ */ i((e, n) => {
1068
- const t = pe(e, n);
1080
+ return t != null && t.has(n) || (t = xr(e), fe.set(e, t)), t.get(n) ?? null;
1081
+ }, "getTreeGridSelectionRowSpanAnchorRow"), hn = /* @__PURE__ */ i((e, n) => {
1082
+ const t = Ce(e, n);
1069
1083
  if (!t)
1070
1084
  return [];
1071
- const r = hn(t, nn), s = [];
1085
+ const r = gn(t, nn), s = [];
1072
1086
  let c = t;
1073
1087
  for (let f = 0; c && f < r; f += 1)
1074
1088
  A(c) && s.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
1075
1089
  return s;
1076
- }, "getTreeGridSelectionRowSpanRows"), xr = /* @__PURE__ */ i((e) => {
1090
+ }, "getTreeGridSelectionRowSpanRows"), br = /* @__PURE__ */ i((e) => {
1077
1091
  const n = /* @__PURE__ */ new Set();
1078
1092
  return (e.GetSelRows() ?? []).forEach((t) => {
1079
- Rn(e, t).forEach((r) => {
1093
+ hn(e, t).forEach((r) => {
1080
1094
  n.add(r);
1081
1095
  });
1082
1096
  }), [...n];
1083
- }, "getTreeGridSelectedRowSpanRows"), Or = /* @__PURE__ */ i((e, n) => {
1097
+ }, "getTreeGridSelectedRowSpanRows"), Ir = /* @__PURE__ */ i((e, n) => {
1084
1098
  if (!e)
1085
1099
  return;
1086
1100
  const t = q(e);
1087
1101
  J(e).forEach((r) => {
1088
1102
  A(r) && n.set(
1089
1103
  r,
1090
- new Map(t.map((s) => [s, Ce(e, r, s)]))
1104
+ new Map(t.map((s) => [s, Ee(e, r, s)]))
1091
1105
  );
1092
1106
  });
1093
- }, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), br = /* @__PURE__ */ i((e, n, t) => {
1107
+ }, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), wr = /* @__PURE__ */ i((e, n, t) => {
1094
1108
  const r = n;
1095
1109
  return q(e).some((s) => s !== t && ae(r[`${s}Changed`]));
1096
1110
  }, "hasOtherTreeGridChangedCells"), An = /* @__PURE__ */ i((e, n, t) => {
1097
1111
  const r = n;
1098
- r[`${t}Changed`] = 0, !D(n) && !w(n) && !br(e, n, t) && (r.Changed = 0);
1099
- }, "clearTreeGridCellChangedState"), Ir = /* @__PURE__ */ i((e, n, t) => {
1112
+ r[`${t}Changed`] = 0, !v(n) && !w(n) && !wr(e, n, t) && (r.Changed = 0);
1113
+ }, "clearTreeGridCellChangedState"), yr = /* @__PURE__ */ i((e, n, t) => {
1100
1114
  const r = e.get(n);
1101
1115
  if (r != null && r.has(t))
1102
1116
  return r.get(t);
1103
- }, "resolveTreeGridCellBaselineValue"), wr = /* @__PURE__ */ i(({
1117
+ }, "resolveTreeGridCellBaselineValue"), $r = /* @__PURE__ */ i(({
1104
1118
  gridId: e,
1105
1119
  grid: n,
1106
1120
  row: t,
@@ -1108,18 +1122,18 @@ ${e.slice(
1108
1122
  backgroundColor: s,
1109
1123
  highlightRefresh: c
1110
1124
  }) => {
1111
- if (!D(t) && !w(t))
1125
+ if (!v(t) && !w(t))
1112
1126
  return !1;
1113
1127
  if (n.CanEdit(t, r) !== 1)
1114
1128
  return !0;
1115
1129
  const f = Bn(t, r), a = te(t).includes(r);
1116
- return f === void 0 ? !0 : Ce(n, t, r) === f ? (Fn(t, r), a && Ze(e, { row: t, col: r }), An(n, t, r), !0) : (Nn(t, r), qe(e, {
1130
+ return f === void 0 ? !0 : Ee(n, t, r) === f ? (Fn(t, r), a && Ze(e, { row: t, col: r }), An(n, t, r), !0) : (Nn(t, r), qe(e, {
1117
1131
  row: t,
1118
1132
  col: r,
1119
1133
  backgroundColor: s,
1120
1134
  refresh: c
1121
1135
  }), !0);
1122
- }, "syncTreeGridAddedRowChangedCellHighlight"), yr = /* @__PURE__ */ i(({
1136
+ }, "syncTreeGridAddedRowChangedCellHighlight"), Pr = /* @__PURE__ */ i(({
1123
1137
  gridId: e,
1124
1138
  grid: n,
1125
1139
  row: t,
@@ -1128,7 +1142,7 @@ ${e.slice(
1128
1142
  baselineMap: c,
1129
1143
  highlightRefresh: f
1130
1144
  }) => {
1131
- if (!A(t) || wr({
1145
+ if (!A(t) || $r({
1132
1146
  gridId: e,
1133
1147
  grid: n,
1134
1148
  row: t,
@@ -1137,7 +1151,7 @@ ${e.slice(
1137
1151
  highlightRefresh: f
1138
1152
  }))
1139
1153
  return;
1140
- const a = Ir(c, t, r), T = Ce(n, t, r);
1154
+ const a = yr(c, t, r), T = Ee(n, t, r);
1141
1155
  if (a !== void 0 && T === a) {
1142
1156
  Ze(e, { row: t, col: r }), An(n, t, r);
1143
1157
  return;
@@ -1148,13 +1162,13 @@ ${e.slice(
1148
1162
  backgroundColor: s,
1149
1163
  refresh: f
1150
1164
  });
1151
- }, "syncTreeGridChangedCellHighlight"), $r = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), _n = /* @__PURE__ */ i((e, n, t) => {
1165
+ }, "syncTreeGridChangedCellHighlight"), Dr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), mn = /* @__PURE__ */ i((e, n, t) => {
1152
1166
  const r = e.GetAttribute(n, t, "Color");
1153
1167
  if (typeof r == "number")
1154
1168
  return Ln(r);
1155
1169
  if (typeof r == "string")
1156
1170
  return r.trim() || void 0;
1157
- }, "getExplicitTreeGridCellColor"), Pr = /* @__PURE__ */ i((e, n, t) => _n(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Se = /* @__PURE__ */ i((e, n, t) => {
1171
+ }, "getExplicitTreeGridCellColor"), vr = /* @__PURE__ */ i((e, n, t) => mn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Se = /* @__PURE__ */ i((e, n, t) => {
1158
1172
  if (!n || !t || !A(n))
1159
1173
  return !1;
1160
1174
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
@@ -1165,7 +1179,7 @@ ${e.slice(
1165
1179
  const r = e.IsSelected(n, t);
1166
1180
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
1167
1181
  return !0;
1168
- const s = pe(e, n);
1182
+ const s = Ce(e, n);
1169
1183
  if (!s || s === n)
1170
1184
  return !1;
1171
1185
  const c = e.IsSelected(s, t);
@@ -1177,11 +1191,11 @@ ${e.slice(
1177
1191
  return Pe.every(
1178
1192
  (t) => n.includes(t)
1179
1193
  );
1180
- }, "hasTreeGridChangedCellDisplayClass"), vr = /* @__PURE__ */ i((e) => {
1194
+ }, "hasTreeGridChangedCellDisplayClass"), Br = /* @__PURE__ */ i((e) => {
1181
1195
  if (!(!e || e.split(/\s+/).includes(ye) || !Ge(e)))
1182
1196
  return `${e} ${ye}`;
1183
- }, "appendTreeGridSelectedChangedCellDisplayClass"), Dr = /* @__PURE__ */ i((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ge(t)), "hasTreeGridChangedCellDisplayClassInRow"), Br = /* @__PURE__ */ i((e, n) => {
1184
- if (!n || !Dr(n) || typeof e.RefreshRow != "function")
1197
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), Fr = /* @__PURE__ */ i((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ge(t)), "hasTreeGridChangedCellDisplayClassInRow"), Nr = /* @__PURE__ */ i((e, n) => {
1198
+ if (!n || !Fr(n) || typeof e.RefreshRow != "function")
1185
1199
  return;
1186
1200
  const t = n;
1187
1201
  window.setTimeout(() => {
@@ -1196,30 +1210,30 @@ ${e.slice(
1196
1210
  e.RefreshRow(r);
1197
1211
  });
1198
1212
  }, 0);
1199
- }, "scheduleTreeGridRowsRefresh"), Fr = /* @__PURE__ */ i((e, n) => {
1213
+ }, "scheduleTreeGridRowsRefresh"), Ur = /* @__PURE__ */ i((e, n) => {
1200
1214
  if (!n)
1201
1215
  return;
1202
- const t = Rn(e, n);
1216
+ const t = hn(e, n);
1203
1217
  t.length <= 1 || j(e, t);
1204
- }, "scheduleTreeGridSelectionRowSpanRefresh"), Nr = /* @__PURE__ */ i((e) => {
1205
- const n = J(e).filter((t) => A(t) && pe(e, t));
1218
+ }, "scheduleTreeGridSelectionRowSpanRefresh"), kr = /* @__PURE__ */ i((e) => {
1219
+ const n = J(e).filter((t) => A(t) && Ce(e, t));
1206
1220
  j(e, n);
1207
- }, "scheduleTreeGridSelectionRowSpanRefreshAll"), mn = /* @__PURE__ */ i((e, n, t, r) => {
1208
- if (!(!n || r === void 0 || !$r(e, n, t) || Se(e, n, t) || W(e, n, t) || Pr(e, n, t)))
1221
+ }, "scheduleTreeGridSelectionRowSpanRefreshAll"), _n = /* @__PURE__ */ i((e, n, t, r) => {
1222
+ if (!(!n || r === void 0 || !Dr(e, n, t) || Se(e, n, t) || W(e, n, t) || vr(e, n, t)))
1209
1223
  return r;
1210
- }, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Ur = /* @__PURE__ */ i((e, n, t) => rt.some(
1224
+ }, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Mr = /* @__PURE__ */ i((e, n, t) => rt.some(
1211
1225
  (r) => N(e, n, t, r)
1212
1226
  ), "isTreeGridNativeErrorBackgroundColor"), Ln = /* @__PURE__ */ i((e) => {
1213
1227
  if (!(e === void 0 || !Number.isFinite(e)))
1214
1228
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
1215
- }, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), ge = /* @__PURE__ */ i((e, n, t) => Te(e, n, t) !== "", "hasTreeGridCellError"), kr = /* @__PURE__ */ i((e, n) => {
1229
+ }, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Re = /* @__PURE__ */ i((e, n, t) => Te(e, n, t) !== "", "hasTreeGridCellError"), Vr = /* @__PURE__ */ i((e, n) => {
1216
1230
  if (!n)
1217
1231
  return;
1218
1232
  let t = !1;
1219
1233
  q(e).forEach((r) => {
1220
- ge(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
1234
+ Re(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
1221
1235
  }), t && e.RefreshRow(n);
1222
- }, "clearTreeGridRowErrors"), Mr = /* @__PURE__ */ i((e) => {
1236
+ }, "clearTreeGridRowErrors"), Xr = /* @__PURE__ */ i((e) => {
1223
1237
  const n = e == null ? void 0 : e.target;
1224
1238
  if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
1225
1239
  return null;
@@ -1229,12 +1243,12 @@ ${e.slice(
1229
1243
  return c instanceof HTMLElement ? c : s instanceof HTMLElement ? s : null;
1230
1244
  }
1231
1245
  return null;
1232
- }, "getTreeGridMouseEventAnchorElement"), Vr = /* @__PURE__ */ i((e, n) => {
1246
+ }, "getTreeGridMouseEventAnchorElement"), Jr = /* @__PURE__ */ i((e, n) => {
1233
1247
  if (!e || !n || !A(e))
1234
1248
  return !1;
1235
1249
  const t = e, r = t[`${n}Class`], s = ae(t[`${n}Changed`]) || typeof r == "string" && Ge(r);
1236
- return D(e) || w(e) ? s : s || ae(t.Changed);
1237
- }, "isChangedTreeGridRowOrCell"), Xr = /* @__PURE__ */ i((e, n, t) => ot.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Jr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Wr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), jr = /* @__PURE__ */ i((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), Kr = /* @__PURE__ */ i(({
1250
+ return v(e) || w(e) ? s : s || ae(t.Changed);
1251
+ }, "isChangedTreeGridRowOrCell"), Wr = /* @__PURE__ */ i((e, n, t) => ot.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), jr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Kr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Hr = /* @__PURE__ */ i((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), zr = /* @__PURE__ */ i(({
1238
1252
  grid: e,
1239
1253
  row: n,
1240
1254
  col: t,
@@ -1245,44 +1259,44 @@ ${e.slice(
1245
1259
  selectedCellBackgroundColor: a,
1246
1260
  hoverCellBackgroundColor: T,
1247
1261
  changedCellBackgroundColor: G,
1248
- editableCellBackgroundColorValue: g
1262
+ editableCellBackgroundColorValue: R
1249
1263
  }) => {
1250
1264
  if (Se(e, n, t))
1251
1265
  return f;
1252
1266
  if (W(e, n, t))
1253
1267
  return a;
1254
- if (Jr(e, n, t) && (N(r, s, c, qn) || N(r, s, c, Qn)) || Wr(e, n, t) && (N(r, s, c, et) || N(r, s, c, nt) || N(r, s, c, tt)))
1268
+ if (jr(e, n, t) && (N(r, s, c, qn) || N(r, s, c, Qn)) || Kr(e, n, t) && (N(r, s, c, et) || N(r, s, c, nt) || N(r, s, c, tt)))
1255
1269
  return T;
1256
- if (gn(n))
1270
+ if (Rn(n))
1257
1271
  return;
1258
- const R = D(n) || w(n), m = ge(e, n, t) && Ur(r, s, c);
1259
- if (!m && !R)
1272
+ const h = v(n) || w(n), _ = Re(e, n, t) && Mr(r, s, c);
1273
+ if (!_ && !h)
1260
1274
  return;
1261
- const x = _n(e, n, t);
1262
- if (m && x)
1263
- return x;
1264
- if (Vr(n, t))
1275
+ const O = mn(e, n, t);
1276
+ if (_ && O)
1277
+ return O;
1278
+ if (Jr(n, t))
1265
1279
  return G;
1266
- const y = mn(
1280
+ const y = _n(
1267
1281
  e,
1268
1282
  n,
1269
1283
  t,
1270
- g
1284
+ R
1271
1285
  );
1272
- return y !== void 0 ? Ln(y) : R ? x ?? vn : it;
1286
+ return y !== void 0 ? Ln(y) : h ? O ?? Dn : it;
1273
1287
  }, "resolveTreeGridStateBackgroundColor"), Y = /* @__PURE__ */ i((e, n) => {
1274
1288
  const t = e.split(/\s+/).filter(Boolean);
1275
1289
  return t.includes(n) ? e : [...t, n].join(" ");
1276
- }, "appendTreeGridClassToken"), Hr = /* @__PURE__ */ i((e, n, t, r) => !ge(e, n, t) || !n ? r : Y(r, Jn), "appendTreeGridErrorCellDisplayClass"), zr = /* @__PURE__ */ i((e, n, t, r) => {
1277
- if (!A(n) || gn(n) || !D(n) && !w(n) || jr(e, n) || W(e, n, t))
1290
+ }, "appendTreeGridClassToken"), Yr = /* @__PURE__ */ i((e, n, t, r) => !Re(e, n, t) || !n ? r : Y(r, Jn), "appendTreeGridErrorCellDisplayClass"), Zr = /* @__PURE__ */ i((e, n, t, r) => {
1291
+ if (!A(n) || Rn(n) || !v(n) && !w(n) || Hr(e, n) || W(e, n, t))
1278
1292
  return r;
1279
- const s = mr(e);
1293
+ const s = Or(e);
1280
1294
  if (!s.columnSet.has(t))
1281
1295
  return r;
1282
1296
  let c = Y(r, Xn);
1283
1297
  return t === s.firstColumn && (c = Y(c, Wn)), t === s.lastColumn && (c = Y(c, jn)), c;
1284
- }, "appendTreeGridAddedRowBoxDisplayClass"), Yr = /* @__PURE__ */ i((e, n, t, r) => {
1285
- const s = Hr(e, n, t, r), c = zr(
1298
+ }, "appendTreeGridAddedRowBoxDisplayClass"), qr = /* @__PURE__ */ i((e, n, t, r) => {
1299
+ const s = Yr(e, n, t, r), c = Zr(
1286
1300
  e,
1287
1301
  n,
1288
1302
  t,
@@ -1290,14 +1304,14 @@ ${e.slice(
1290
1304
  );
1291
1305
  if (!W(e, n, t))
1292
1306
  return c === r ? void 0 : c;
1293
- const f = vr(c) ?? c;
1307
+ const f = Br(c) ?? c;
1294
1308
  return f === r ? void 0 : f;
1295
- }, "resolveTreeGridCellDisplayClass"), xn = /* @__PURE__ */ i((e) => A(e) && (D(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), ze = /* @__PURE__ */ i((e, n) => {
1296
- const t = n.filter(xn);
1309
+ }, "resolveTreeGridCellDisplayClass"), On = /* @__PURE__ */ i((e) => A(e) && (v(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), ze = /* @__PURE__ */ i((e, n) => {
1310
+ const t = n.filter(On);
1297
1311
  t.length && j(e, t);
1298
- }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Zr = /* @__PURE__ */ i((e) => {
1299
- j(e, J(e).filter(xn));
1300
- }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), ui = /* @__PURE__ */ i((e) => {
1312
+ }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Qr = /* @__PURE__ */ i((e) => {
1313
+ j(e, J(e).filter(On));
1314
+ }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), ai = /* @__PURE__ */ i((e) => {
1301
1315
  if (!e)
1302
1316
  return !1;
1303
1317
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
@@ -1310,7 +1324,7 @@ ${e.slice(
1310
1324
  return !1;
1311
1325
  }
1312
1326
  return Object.values(e.Rows ?? {}).some((n) => A(n));
1313
- }, "hasTreeGridDisplayDataRows"), fi = /* @__PURE__ */ i((e, n, t) => {
1327
+ }, "hasTreeGridDisplayDataRows"), Ti = /* @__PURE__ */ i((e, n, t) => {
1314
1328
  var s;
1315
1329
  b(e);
1316
1330
  const r = (s = e.Data) == null ? void 0 : s.Data;
@@ -1319,7 +1333,7 @@ ${e.slice(
1319
1333
  Data: { Body: [n || []] },
1320
1334
  Url: ""
1321
1335
  }, e.ReloadBody(t);
1322
- }, "replaceTreeGridBodyData"), ai = /* @__PURE__ */ i(({
1336
+ }, "replaceTreeGridBodyData"), Ei = /* @__PURE__ */ i(({
1323
1337
  id: e,
1324
1338
  latestEventHandlersRef: n,
1325
1339
  layoutHasExplicitEnterModeRef: t,
@@ -1330,25 +1344,25 @@ ${e.slice(
1330
1344
  changedCellBackgroundColorRef: a,
1331
1345
  focusedCellBackgroundColorRef: T,
1332
1346
  selectedCellBackgroundColorRef: G,
1333
- hoverCellBackgroundColorRef: g,
1334
- changedCellBaselineRef: R,
1335
- treeGridInstanceRef: m,
1336
- treeGridInitStartedAtRef: x,
1347
+ hoverCellBackgroundColorRef: R,
1348
+ changedCellBaselineRef: h,
1349
+ treeGridInstanceRef: _,
1350
+ treeGridInitStartedAtRef: O,
1337
1351
  latestLayoutOverridesRef: y,
1338
- latestToolbarTotalCountFormulaRef: he,
1339
- latestSuppressCfgRef: Re,
1352
+ latestToolbarTotalCountFormulaRef: ge,
1353
+ latestSuppressCfgRef: he,
1340
1354
  latestHideChildHeaderSortButtonsRef: Q,
1341
- latestSelectionScopeRef: On,
1355
+ latestSelectionScopeRef: xn,
1342
1356
  latestDisabledAnimationsRef: Ae,
1343
1357
  appliedLayoutOverridesRef: bn,
1344
1358
  appliedBodyDataPropRef: In,
1345
- hasAppliedInitialLayoutRef: _e,
1359
+ hasAppliedInitialLayoutRef: me,
1346
1360
  syncHasDisplayDataRows: B,
1347
1361
  setIsTreeGridReady: wn,
1348
1362
  showErrorTooltip: yn,
1349
1363
  hideErrorTooltip: $
1350
1364
  }) => {
1351
- const _ = n.current;
1365
+ const m = n.current;
1352
1366
  if (window.TGSetEvent("OnRowAdd", e, (o, l) => {
1353
1367
  var d, u;
1354
1368
  b(o), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, o, l);
@@ -1368,206 +1382,206 @@ ${e.slice(
1368
1382
  F(o);
1369
1383
  }), window.TGSetEvent("OnColUndelete", e, (o) => {
1370
1384
  F(o);
1371
- }), window.TGSetEvent("OnMouseOver", e, (o, l, d, u, C, p) => {
1372
- const E = Te(o, l, d);
1373
- if (!E) {
1385
+ }), window.TGSetEvent("OnMouseOver", e, (o, l, d, u, E, C) => {
1386
+ const p = Te(o, l, d);
1387
+ if (!p) {
1374
1388
  $();
1375
1389
  return;
1376
1390
  }
1377
- const h = Mr(p);
1378
- if (!h) {
1391
+ const g = Xr(C);
1392
+ if (!g) {
1379
1393
  $();
1380
1394
  return;
1381
1395
  }
1382
- o.HideTip(), yn({ anchorEl: h, row: l, col: d, message: E });
1396
+ o.HideTip(), yn({ anchorEl: g, row: l, col: d, message: p });
1383
1397
  }), window.TGSetEvent("OnFocus", e, (o, l, d, u) => {
1384
1398
  l !== u && ze(o, [l, u]);
1385
1399
  }), window.TGSetEvent("OnTip", e, (o, l, d, u) => Te(o, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (o, l, d) => {
1386
- var p;
1400
+ var C;
1387
1401
  if (d !== 3)
1388
1402
  return d;
1389
- const u = (p = n.current) == null ? void 0 : p.onBeforeRowUndelete;
1403
+ const u = (C = n.current) == null ? void 0 : C.onBeforeRowUndelete;
1390
1404
  if (typeof u != "function")
1391
1405
  return d;
1392
- const C = /* @__PURE__ */ i((E) => {
1406
+ const E = /* @__PURE__ */ i((p) => {
1393
1407
  window.setTimeout(() => {
1394
- Sr(
1395
- m.current ?? o,
1408
+ Rr(
1409
+ _.current ?? o,
1396
1410
  l,
1397
- E,
1411
+ p,
1398
1412
  B
1399
1413
  );
1400
1414
  }, 0);
1401
1415
  }, "scheduleAction");
1402
1416
  try {
1403
- const E = u(o, l);
1404
- return pr(E) ? (E.then(C).catch(() => {
1405
- C("undelete");
1406
- }), 0) : (C(E), 0);
1417
+ const p = u(o, l);
1418
+ return Gr(p) ? (p.then(E).catch(() => {
1419
+ E("undelete");
1420
+ }), 0) : (E(p), 0);
1407
1421
  } catch {
1408
- return C("undelete"), 0;
1422
+ return E("undelete"), 0;
1409
1423
  }
1410
- }), typeof (_ == null ? void 0 : _.onRowClick) == "function" || typeof (_ == null ? void 0 : _.onInternalCellClick) == "function") {
1411
- const o = ee((l, d, u, C, p, E) => {
1412
- var h, O;
1413
- (O = (h = n.current) == null ? void 0 : h.onRowClick) == null || O.call(
1414
- h,
1424
+ }), typeof (m == null ? void 0 : m.onRowClick) == "function" || typeof (m == null ? void 0 : m.onInternalCellClick) == "function") {
1425
+ const o = ee((l, d, u, E, C, p) => {
1426
+ var g, x;
1427
+ (x = (g = n.current) == null ? void 0 : g.onRowClick) == null || x.call(
1428
+ g,
1415
1429
  l,
1416
1430
  d,
1417
1431
  u,
1432
+ E,
1418
1433
  C,
1419
- p,
1420
- E
1434
+ p
1421
1435
  );
1422
1436
  }, 300);
1423
- window.TGSetEvent("OnClick", e, (l, d, u, C, p, E) => {
1424
- var O, Le, xe;
1425
- const h = (Le = (O = n.current) == null ? void 0 : O.onInternalCellClick) == null ? void 0 : Le.call(
1426
- O,
1437
+ window.TGSetEvent("OnClick", e, (l, d, u, E, C, p) => {
1438
+ var x, Le, Oe;
1439
+ const g = (Le = (x = n.current) == null ? void 0 : x.onInternalCellClick) == null ? void 0 : Le.call(
1440
+ x,
1427
1441
  l,
1428
1442
  d,
1429
1443
  u,
1444
+ E,
1430
1445
  C,
1431
- p,
1432
- E
1446
+ p
1433
1447
  );
1434
- if (h !== void 0)
1435
- return h;
1436
- typeof ((xe = n.current) == null ? void 0 : xe.onRowClick) == "function" && o(l, d, u, C, p, E);
1448
+ if (g !== void 0)
1449
+ return g;
1450
+ typeof ((Oe = n.current) == null ? void 0 : Oe.onRowClick) == "function" && o(l, d, u, E, C, p);
1437
1451
  });
1438
1452
  }
1439
- (typeof (_ == null ? void 0 : _.onClickButton) == "function" || typeof (_ == null ? void 0 : _.onInternalButtonClick) == "function") && window.TGSetEvent(
1453
+ (typeof (m == null ? void 0 : m.onClickButton) == "function" || typeof (m == null ? void 0 : m.onInternalButtonClick) == "function") && window.TGSetEvent(
1440
1454
  "OnClickButton",
1441
1455
  e,
1442
1456
  (o, l, d, u) => {
1443
- var p, E, h, O;
1444
- const C = (E = (p = n.current) == null ? void 0 : p.onInternalButtonClick) == null ? void 0 : E.call(
1445
- p,
1457
+ var C, p, g, x;
1458
+ const E = (p = (C = n.current) == null ? void 0 : C.onInternalButtonClick) == null ? void 0 : p.call(
1459
+ C,
1446
1460
  o,
1447
1461
  l,
1448
1462
  d,
1449
1463
  u
1450
1464
  );
1451
- if (C !== void 0)
1452
- return C;
1453
- (O = (h = n.current) == null ? void 0 : h.onClickButton) == null || O.call(
1454
- h,
1465
+ if (E !== void 0)
1466
+ return E;
1467
+ (x = (g = n.current) == null ? void 0 : g.onClickButton) == null || x.call(
1468
+ g,
1455
1469
  o,
1456
1470
  l,
1457
1471
  d,
1458
1472
  u
1459
1473
  );
1460
1474
  }
1461
- ), typeof (_ == null ? void 0 : _.onInternalKeyDown) == "function" && (window.TGSetEvent(
1475
+ ), typeof (m == null ? void 0 : m.onInternalKeyDown) == "function" && (window.TGSetEvent(
1462
1476
  "OnKeyDown",
1463
1477
  e,
1464
- (o, l, d, u, C) => {
1465
- var p, E;
1466
- return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, o, l, d, u, C);
1478
+ (o, l, d, u, E) => {
1479
+ var C, p;
1480
+ return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, o, l, d, u, E);
1467
1481
  }
1468
1482
  ), window.TGSetEvent(
1469
1483
  "OnKeyPress",
1470
1484
  e,
1471
- (o, l, d, u, C) => {
1472
- var p, E;
1473
- return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, o, l, d, u, C);
1485
+ (o, l, d, u, E) => {
1486
+ var C, p;
1487
+ return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, o, l, d, u, E);
1474
1488
  }
1475
1489
  )), window.TGSetEvent("OnStartEdit", e, (o, l, d) => {
1476
- var u, C;
1477
- return $(), (C = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : C.call(
1490
+ var u, E;
1491
+ return $(), (E = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : E.call(
1478
1492
  u,
1479
1493
  o,
1480
1494
  l,
1481
1495
  d
1482
1496
  );
1483
1497
  }), window.TGSetEvent("OnRowDelete", e, (o, l, d) => {
1484
- var h, O;
1485
- b(o), $(), kr(o, l), o.SelectRow(l, 0);
1486
- const u = w(l), C = u ? te(l) : [], p = u ? Oe(l) : [], E = c.current !== !1;
1498
+ var g, x;
1499
+ b(o), $(), Vr(o, l), o.SelectRow(l, 0);
1500
+ const u = w(l), E = u ? te(l) : [], C = u ? xe(l) : [], p = c.current !== !1;
1487
1501
  Je(o, l, {
1488
- canEdit: E ? 2 : void 0,
1489
- editableColumns: p,
1490
- editableCanEdit: E && p.length ? 2 : void 0,
1491
- highlightColumns: C
1492
- }), B(o), (O = (h = n.current) == null ? void 0 : h.onRowDelete) == null || O.call(
1493
- h,
1502
+ canEdit: p ? 2 : void 0,
1503
+ editableColumns: C,
1504
+ editableCanEdit: p && C.length ? 2 : void 0,
1505
+ highlightColumns: E
1506
+ }), B(o), (x = (g = n.current) == null ? void 0 : g.onRowDelete) == null || x.call(
1507
+ g,
1494
1508
  o,
1495
1509
  l,
1496
1510
  d
1497
1511
  );
1498
1512
  }), window.TGSetEvent("OnRowUndelete", e, (o, l) => {
1499
- var E, h;
1513
+ var p, g;
1500
1514
  b(o), $();
1501
- const d = w(l), u = d ? te(l) : [], C = d ? Oe(l) : [], p = c.current !== !1;
1515
+ const d = w(l), u = d ? te(l) : [], E = d ? xe(l) : [], C = c.current !== !1;
1502
1516
  Je(o, l, {
1503
- canEdit: p ? 1 : void 0,
1504
- editableColumns: C,
1505
- editableCanEdit: p && C.length ? 1 : void 0,
1517
+ canEdit: C ? 1 : void 0,
1518
+ editableColumns: E,
1519
+ editableCanEdit: C && E.length ? 1 : void 0,
1506
1520
  highlightColumns: u,
1507
1521
  highlightBackgroundColor: u.length ? a.current : void 0
1508
- }), B(o), (h = (E = n.current) == null ? void 0 : E.onRowUndelete) == null || h.call(E, o, l);
1522
+ }), B(o), (g = (p = n.current) == null ? void 0 : p.onRowUndelete) == null || g.call(p, o, l);
1509
1523
  }), window.TGSetEvent("OnGetDefaultColor", e, (o, l, d) => {
1510
1524
  if (!(!r.current || !A(l)))
1511
- return mn(
1525
+ return _n(
1512
1526
  o,
1513
1527
  l,
1514
1528
  d,
1515
1529
  f.current
1516
1530
  );
1517
- }), window.TGSetEvent("OnGetColor", e, (o, l, d, u, C, p, E) => {
1518
- if (!E)
1519
- return Kr({
1531
+ }), window.TGSetEvent("OnGetColor", e, (o, l, d, u, E, C, p) => {
1532
+ if (!p)
1533
+ return zr({
1520
1534
  grid: o,
1521
1535
  row: l,
1522
1536
  col: d,
1523
1537
  r: u,
1524
- g: C,
1525
- b: p,
1538
+ g: E,
1539
+ b: C,
1526
1540
  focusedCellBackgroundColor: T.current,
1527
1541
  selectedCellBackgroundColor: G.current,
1528
- hoverCellBackgroundColor: g.current,
1542
+ hoverCellBackgroundColor: R.current,
1529
1543
  changedCellBackgroundColor: a.current,
1530
1544
  editableCellBackgroundColorValue: f.current
1531
1545
  });
1532
- }), window.TGSetEvent("OnGetClass", e, (o, l, d, u) => Yr(o, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (o, l, d, u) => {
1533
- var p, E;
1546
+ }), window.TGSetEvent("OnGetClass", e, (o, l, d, u) => qr(o, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (o, l, d, u) => {
1547
+ var C, p;
1534
1548
  if ($(), s.current && A(l)) {
1535
- const h = !Xr(o, l, d) || W(o, l, d) && !Se(o, l, d);
1536
- yr({
1549
+ const g = !Wr(o, l, d) || W(o, l, d) && !Se(o, l, d);
1550
+ Pr({
1537
1551
  gridId: e,
1538
1552
  grid: o,
1539
1553
  row: l,
1540
1554
  col: d,
1541
1555
  backgroundColor: a.current,
1542
- baselineMap: R.current,
1543
- highlightRefresh: h
1556
+ baselineMap: h.current,
1557
+ highlightRefresh: g
1544
1558
  });
1545
1559
  }
1546
- const C = ((p = n.current) == null ? void 0 : p.onAfterValueChanged) ?? ((E = n.current) == null ? void 0 : E.onRowChange);
1547
- C == null || C(o, l, d, u);
1560
+ const E = ((C = n.current) == null ? void 0 : C.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1561
+ E == null || E(o, l, d, u);
1548
1562
  });
1549
- const me = ee((o) => {
1550
- var u, C;
1563
+ const _e = ee((o) => {
1564
+ var u, E;
1551
1565
  const l = o.GetSelRows() ?? [], d = kn(o, l, {
1552
- selectionScope: On.current
1566
+ selectionScope: xn.current
1553
1567
  });
1554
- (C = (u = n.current) == null ? void 0 : u.onSelect) == null || C.call(
1568
+ (E = (u = n.current) == null ? void 0 : u.onSelect) == null || E.call(
1555
1569
  u,
1556
- Dn(o, d)
1570
+ vn(o, d)
1557
1571
  );
1558
1572
  }, 100);
1559
- window.TGSetEvent("OnSelect", e, (o, l, d, u, C) => {
1560
- var E;
1561
- if (C)
1573
+ window.TGSetEvent("OnSelect", e, (o, l, d, u, E) => {
1574
+ var p;
1575
+ if (E)
1562
1576
  return;
1563
- const p = xr(o);
1564
- Br(o, l), ze(o, [l]), j(o, p), Fr(o, l), Ve(o, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && me(o);
1577
+ const C = br(o);
1578
+ Nr(o, l), ze(o, [l]), j(o, C), Ur(o, l), Ve(o, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && _e(o);
1565
1579
  }), window.TGSetEvent("OnSelectAll", e, (o, l, d, u) => {
1566
- var C;
1567
- u || (Nr(o), Zr(o), Ve(o, e), typeof ((C = n.current) == null ? void 0 : C.onSelect) == "function" && me(o));
1568
- }), typeof (_ == null ? void 0 : _.onSave) == "function" && window.TGSetEvent("OnSave", e, (o, l, d) => {
1569
- var u, C;
1570
- (C = (u = n.current) == null ? void 0 : u.onSave) == null || C.call(
1580
+ var E;
1581
+ u || (kr(o), Qr(o), Ve(o, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && _e(o));
1582
+ }), typeof (m == null ? void 0 : m.onSave) == "function" && window.TGSetEvent("OnSave", e, (o, l, d) => {
1583
+ var u, E;
1584
+ (E = (u = n.current) == null ? void 0 : u.onSave) == null || E.call(
1571
1585
  u,
1572
1586
  o,
1573
1587
  l,
@@ -1575,7 +1589,7 @@ ${e.slice(
1575
1589
  );
1576
1590
  }), window.TGSetEvent("OnSort", e, (o, l) => {
1577
1591
  var d;
1578
- if (!(!l || !hr(
1592
+ if (!(!l || !Ar(
1579
1593
  o,
1580
1594
  o.ARow,
1581
1595
  l,
@@ -1604,24 +1618,24 @@ ${e.slice(
1604
1618
  le(o, e);
1605
1619
  }), window.TGSetEvent("OnDataGet", e, (o, l, d) => {
1606
1620
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1607
- t.current = ve(d);
1621
+ t.current = De(d);
1608
1622
  const u = ce(
1609
1623
  d,
1610
1624
  Ae.current,
1611
- he.current,
1612
- Re.current
1625
+ ge.current,
1626
+ he.current
1613
1627
  );
1614
1628
  return u === d ? null : u;
1615
1629
  }
1616
1630
  return null;
1617
1631
  }), window.TGSetEvent("OnDataParse", e, (o, l, d) => {
1618
1632
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1619
- t.current = ve(d);
1633
+ t.current = De(d);
1620
1634
  const u = ce(
1621
1635
  d,
1622
1636
  Ae.current,
1623
- he.current,
1624
- Re.current
1637
+ ge.current,
1638
+ he.current
1625
1639
  );
1626
1640
  return u === d ? null : u;
1627
1641
  }
@@ -1631,31 +1645,31 @@ ${e.slice(
1631
1645
  e,
1632
1646
  ee((o) => {
1633
1647
  var l, d;
1634
- if (!_e.current) {
1648
+ if (!me.current) {
1635
1649
  const u = y.current;
1636
- _e.current = !0, !t.current && (o.EnterMode === void 0 || o.EnterMode === null || o.EnterMode === 0) && Tr(o, Yn), Un(o, u), m.current = o, bn.current = u, In.current = We(o), R.current = /* @__PURE__ */ new WeakMap(), Or(o, R.current), B(o), wn(!0), He(
1650
+ me.current = !0, !t.current && (o.EnterMode === void 0 || o.EnterMode === null || o.EnterMode === 0) && pr(o, Yn), Un(o, u), _.current = o, bn.current = u, In.current = We(o), h.current = /* @__PURE__ */ new WeakMap(), Ir(o, h.current), B(o), wn(!0), He(
1637
1651
  o,
1638
1652
  e,
1639
1653
  !0,
1640
1654
  Q.current !== !1
1641
- ), en(e, "TreeGrid init ready", x.current, {
1642
- bodyRowCount: Rr(
1655
+ ), en(e, "TreeGrid init ready", O.current, {
1656
+ bodyRowCount: mr(
1643
1657
  We(o)
1644
1658
  )
1645
- }), x.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, o);
1659
+ }), O.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, o);
1646
1660
  }
1647
1661
  }, 100)
1648
1662
  );
1649
1663
  }, "bindTreeGridEvents");
1650
1664
  export {
1651
- li as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1652
- ai as bindTreeGridEvents,
1653
- di as buildTreeGridInitializationOptions,
1654
- Or as captureTreeGridChangeBaselines,
1655
- Rr as getTreeGridBodyDataCount,
1656
- ui as hasTreeGridDisplayDataRows,
1657
- ve as hasTreeGridExplicitEnterMode,
1658
- fi as replaceTreeGridBodyData,
1659
- yr as syncTreeGridChangedCellHighlight
1665
+ ui as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1666
+ Ei as bindTreeGridEvents,
1667
+ fi as buildTreeGridInitializationOptions,
1668
+ Ir as captureTreeGridChangeBaselines,
1669
+ mr as getTreeGridBodyDataCount,
1670
+ ai as hasTreeGridDisplayDataRows,
1671
+ De as hasTreeGridExplicitEnterMode,
1672
+ Ti as replaceTreeGridBodyData,
1673
+ Pr as syncTreeGridChangedCellHighlight
1660
1674
  };
1661
1675
  //# sourceMappingURL=treeGridRuntime.js.map