@owp/core 2.5.39 → 2.5.41

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 (20) hide show
  1. package/dist/_virtual/index3.js +2 -2
  2. package/dist/_virtual/index4.js +2 -2
  3. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +56 -25
  4. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
  5. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +476 -460
  6. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  7. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +2 -2
  8. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  9. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js +9 -0
  10. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js.map +1 -0
  11. package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
  12. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  13. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  14. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
  15. package/dist/owp-app.css +1 -1
  16. package/dist/types/utils/treeGridUtil.d.ts +5 -0
  17. package/dist/utils/treeGridUtil.js +267 -230
  18. package/dist/utils/treeGridUtil.js.map +1 -1
  19. package/dist/utils.js +41 -40
  20. package/package.json +1 -1
@@ -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 Rn = Object.defineProperty;
2
+ var o = (e, n) => Rn(e, "name", { value: n, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as An, TREEGRID_CELL_CHANGED_CLASS as Xe, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as gn } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as I, getTreeGridAddedRowHighlightColumns as q, getTreeGridAddedRowEditableColumns as _e, getTreeGridCellComparableValue as ue, clearTreeGridCellHighlightById as We, highlightTreeGridCellById as Je, normalizeTreeGridExternalRows as _n, getTreeGridAddedRowBaselineValue as mn, removeTreeGridAddedRowHighlightColumn as Ln, appendTreeGridAddedRowHighlightColumn as On } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as xn } from "./treeGridLayout.js";
6
+ import { resolveTreeGridSelectedRows as bn } from "./treeGridSelection.js";
7
+ import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as In, TREE_GRID_SELECT_ALL_CHECKED_CLASS as me, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Le, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Oe, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as xe, TREE_GRID_THEME_WRAPPER_CLASS as wn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Dn, TREE_GRID_ERROR_CELL_CLASS as yn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Pn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as $n } from "./treeGridTheme.js";
8
+ import { countTreeGridPerf as Ke, logTreeGridPerf as vn, measureTreeGridPerf as je } 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 Bn } 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 Pr = 300, Nn = 3, kn = {
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
+ }, Un = [240, 240, 240], Vn = [248, 248, 248], Mn = [255, 255, 255], Xn = [255, 255, 254], Wn = [242, 242, 242], Jn = [
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
+ ], Kn = "transparent", be = "Button", jn = /* @__PURE__ */ new Set(["Panel"]), Ie = Xe.split(/\s+/).filter(
34
34
  Boolean
35
- ), Kn = /* @__PURE__ */ new Set([
35
+ ), Hn = /* @__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"), zn = {
43
43
  Visible: "1",
44
44
  CanHide: "0",
45
45
  Delete: "1",
46
46
  Width: "33"
47
- }, Hn = {
47
+ }, Yn = {
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
+ }, He = "Panel", ze = ["Formula", "FormulaFormula"], Zn = /<Grid\b[^>]*>/i, qn = /<\/Grid\s*>/i, Qn = /<Toolbar\b[^>]*\/?>/i, et = [
54
54
  "Undo",
55
55
  "Deleting",
56
56
  "Selecting",
57
57
  "SelectingSingle",
58
58
  "SuppressCfg"
59
- ], Qn = {
59
+ ], nt = {
60
60
  addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
61
61
  deleteRow: [
62
62
  "Delete",
@@ -77,28 +77,28 @@ 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(), g = /* @__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"), tt = /* @__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"), Ye = /* @__PURE__ */ o((e) => {
81
81
  const n = e.Cfg;
82
- return Array.isArray(n) ? n.filter(A) : A(n) ? [n] : [];
82
+ return Array.isArray(n) ? n.filter(g) : g(n) ? [n] : [];
83
83
  }, "getTreeGridJsonCfgRecords"), ne = /* @__PURE__ */ o((e, n) => {
84
84
  let t;
85
- return ze(e).forEach((r) => {
85
+ return Ye(e).forEach((r) => {
86
86
  n in r && (t = r[n]);
87
87
  }), t;
88
- }, "getTreeGridJsonCfgValue"), Ye = /* @__PURE__ */ o((e, n) => {
88
+ }, "getTreeGridJsonCfgValue"), Ze = /* @__PURE__ */ o((e, n) => {
89
89
  const t = new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
90
90
  e
91
91
  );
92
92
  return t == null ? void 0 : t[2];
93
- }, "getTreeGridXmlTagAttributeValue"), B = /* @__PURE__ */ o((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Ze = /* @__PURE__ */ o((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), k = /* @__PURE__ */ o((e, n, t) => {
93
+ }, "getTreeGridXmlTagAttributeValue"), F = /* @__PURE__ */ o((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), qe = /* @__PURE__ */ o((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), k = /* @__PURE__ */ o((e, n, t) => {
94
94
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
95
- return `${e.slice(0, r)} ${n}="${Ze(
95
+ return `${e.slice(0, r)} ${n}="${qe(
96
96
  t
97
97
  )}"${e.slice(r)}`;
98
- }, "appendTreeGridXmlTagAttribute"), te = /* @__PURE__ */ o((e, n, t) => B(e, n) ? e.replace(
98
+ }, "appendTreeGridXmlTagAttribute"), te = /* @__PURE__ */ o((e, n, t) => F(e, n) ? e.replace(
99
99
  new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
100
- () => `${n}="${Ze(t)}"`
101
- ) : k(e, n, t), "setTreeGridXmlTagAttribute"), qe = /* @__PURE__ */ o((e, n) => {
100
+ () => `${n}="${qe(t)}"`
101
+ ) : k(e, n, t), "setTreeGridXmlTagAttribute"), Qe = /* @__PURE__ */ o((e, n) => {
102
102
  let t = e;
103
103
  return Object.entries(n).forEach(([r, i]) => {
104
104
  t = te(t, r, i);
@@ -106,51 +106,51 @@ const Dr = 300, vn = 3, Bn = {
106
106
  }, "setTreeGridXmlTagAttributes"), j = /* @__PURE__ */ o((e, n) => {
107
107
  let t = e;
108
108
  return Object.entries(n).forEach(([r, i]) => {
109
- B(t, r) || (t = k(t, r, i));
109
+ F(t, r) || (t = k(t, r, i));
110
110
  }), t;
111
- }, "appendMissingTreeGridXmlTagAttributes"), w = /* @__PURE__ */ o((e) => {
112
- var f;
111
+ }, "appendMissingTreeGridXmlTagAttributes"), b = /* @__PURE__ */ o((e) => {
112
+ var a;
113
113
  const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
114
114
  cfgValues: {}
115
115
  };
116
116
  let r, i = 0, c = !1;
117
117
  for (; r = n.exec(e); ) {
118
- const a = r[0], C = (f = r[1]) == null ? void 0 : f.toLowerCase();
119
- if (!C || a.startsWith("<!--") || a.startsWith("<?") || a.startsWith("<!"))
118
+ const f = r[0], C = (a = r[1]) == null ? void 0 : a.toLowerCase();
119
+ if (!C || f.startsWith("<!--") || f.startsWith("<?") || f.startsWith("<!"))
120
120
  continue;
121
- !t.hasFastPanel && B(a, "FastPanel") && (t.hasFastPanel = !0);
122
- const G = a.startsWith("</"), S = /\/>\s*$/.test(a);
121
+ !t.hasFastPanel && F(f, "FastPanel") && (t.hasFastPanel = !0);
122
+ const p = f.startsWith("</"), S = /\/>\s*$/.test(f);
123
123
  if (!c) {
124
- !G && C === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, i = S ? 0 : 1);
124
+ !p && C === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + f.length, i = S ? 0 : 1);
125
125
  continue;
126
126
  }
127
- if (G) {
127
+ if (p) {
128
128
  if (i = Math.max(0, i - 1), C === "grid" && i === 0)
129
129
  break;
130
130
  continue;
131
131
  }
132
132
  i === 1 && (C === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
133
133
  index: r.index,
134
- tag: a
135
- }), qn.forEach((h) => {
136
- const m = Ye(a, h);
137
- m !== void 0 && (t.cfgValues[h] = m);
138
- }), t.lastCfgEndIndex = r.index + a.length) : C === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
134
+ tag: f
135
+ }), et.forEach((R) => {
136
+ const m = Ze(f, R);
137
+ m !== void 0 && (t.cfgValues[R] = m);
138
+ }), t.lastCfgEndIndex = r.index + f.length) : C === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
139
139
  index: r.index,
140
- tag: a
141
- } : C === "panel" && !t.defaultPanelTag && nt(a) ? t.defaultPanelTag = {
140
+ tag: f
141
+ } : C === "panel" && !t.defaultPanelTag && rt(f) ? t.defaultPanelTag = {
142
142
  index: r.index,
143
- tag: a
143
+ tag: f
144
144
  } : C === "animations" && !t.animationsTag && (t.animationsTag = {
145
145
  index: r.index,
146
- tag: a
146
+ tag: f
147
147
  })), S || (i += 1);
148
148
  }
149
149
  return t;
150
- }, "scanTreeGridXmlDefaultLayout"), nt = /* @__PURE__ */ o((e) => {
151
- const n = Ye(e, "Name");
150
+ }, "scanTreeGridXmlDefaultLayout"), rt = /* @__PURE__ */ o((e) => {
151
+ const n = Ze(e, "Name");
152
152
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
153
- }, "isTreeGridXmlDefaultPanelTag"), tt = /* @__PURE__ */ o((e) => {
153
+ }, "isTreeGridXmlDefaultPanelTag"), it = /* @__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,21 +165,21 @@ 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"), ot = /* @__PURE__ */ o((e) => {
169
+ const n = it(e);
170
170
  if (n.length <= 1)
171
171
  return {
172
172
  headContent: e,
173
173
  isApplied: !1
174
174
  };
175
175
  const [t, ...r] = n;
176
- if (B(t.tag, "PanelRowSpan") || r.some(({ tag: c }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(c)))
176
+ if (F(t.tag, "PanelRowSpan") || r.some(({ tag: c }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(c)))
177
177
  return {
178
178
  headContent: e,
179
179
  isApplied: !1
180
180
  };
181
181
  let i = t.tag;
182
- return B(i, "Spanned") || (i = k(i, "Spanned", 1)), i = k(
182
+ return F(i, "Spanned") || (i = k(i, "Spanned", 1)), i = k(
183
183
  i,
184
184
  "PanelRowSpan",
185
185
  n.length
@@ -189,47 +189,47 @@ 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"), st = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), ct = /* @__PURE__ */ o((e) => !!e.defaultPanelTag || tn(e.cfgValues) || rn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), lt = /* @__PURE__ */ o((e, n) => {
193
+ if (n.gridOpenTagEndIndex === void 0 || !ct(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
+ Yn
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 = st(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"), dt = /* @__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
- (r, i, c, f) => {
217
- const a = rt(c);
218
- return a.isApplied ? (n = !0, `${i}${a.headContent}${f}`) : r;
216
+ (r, i, c, a) => {
217
+ const f = ot(c);
218
+ return f.isApplied ? (n = !0, `${i}${f.headContent}${a}`) : r;
219
219
  }
220
220
  );
221
- return n ? st(
221
+ return n ? lt(
222
222
  t,
223
- w(t)
223
+ b(t)
224
224
  ) : e;
225
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Qe = /* @__PURE__ */ o((e) => fe(
225
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), en = /* @__PURE__ */ o((e) => fe(
226
226
  ne(e, "Selecting"),
227
227
  ne(e, "SelectingSingle")
228
- ), "isTreeGridJsonCheckboxSelectionLayout"), en = /* @__PURE__ */ o((e) => fe(
228
+ ), "isTreeGridJsonCheckboxSelectionLayout"), nn = /* @__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) => {
232
- if (n.gridOpenTagEndIndex === void 0 || !nn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
231
+ ), "isTreeGridXmlCheckboxSelectionLayout"), tn = /* @__PURE__ */ o((e) => !y(e.Selecting), "isTreeGridXmlSelectingLayout"), rn = /* @__PURE__ */ o((e) => N(e.Undo, "1") && N(e.Deleting, "2") && N(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), ut = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), ft = /* @__PURE__ */ o((e, n) => {
232
+ if (n.gridOpenTagEndIndex === void 0 || !tn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
233
233
  return e;
234
234
  const t = n.defaultActionsTag;
235
235
  if (t) {
@@ -241,13 +241,13 @@ 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 = ut(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) => {
250
- if (n.gridOpenTagEndIndex === void 0 || !en(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
249
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), at = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), Tt = /* @__PURE__ */ o((e, n) => {
250
+ if (n.gridOpenTagEndIndex === void 0 || !nn(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
251
251
  return e;
252
252
  const t = n.defaultActionsTag;
253
253
  if (t) {
@@ -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 = at(n);
263
263
  return r === void 0 ? e : `${e.slice(
264
264
  0,
265
265
  r
@@ -267,106 +267,106 @@ 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) => {
271
- if (n.gridOpenTagEndIndex === void 0 || !tn(n.cfgValues))
270
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Ct = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Et = /* @__PURE__ */ o((e, n) => {
271
+ if (n.gridOpenTagEndIndex === void 0 || !rn(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
+ zn
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 = Ct(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) => {
289
- if (n.hasFastPanel || !en(n.cfgValues))
288
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), Gt = /* @__PURE__ */ o((e, n) => {
289
+ if (n.hasFastPanel || !nn(n.cfgValues))
290
290
  return e;
291
291
  const t = n.gridOpenTagEndIndex;
292
292
  return t === void 0 ? e : `${e.slice(0, t)}
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
- n.some((t) => A(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
299
+ n.some((t) => g(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
300
300
  return;
301
301
  }
302
- if (A(n)) {
302
+ if (g(n)) {
303
303
  "FastPanel" in n || (n.FastPanel = 0);
304
304
  return;
305
305
  }
306
306
  e.Cfg = { FastPanel: 0 };
307
- }, "applyTreeGridJsonFastPanelDefault"), pt = /* @__PURE__ */ o((e) => {
307
+ }, "applyTreeGridJsonFastPanelDefault"), St = /* @__PURE__ */ o((e) => {
308
308
  const n = e.Actions;
309
309
  if (Array.isArray(n)) {
310
310
  n.some(
311
- (t) => A(t) && "OnClickPanelSelectAll" in t
311
+ (t) => g(t) && "OnClickPanelSelectAll" in t
312
312
  ) || (e.Actions = [{ ...J }, ...n]);
313
313
  return;
314
314
  }
315
- if (A(n)) {
315
+ if (g(n)) {
316
316
  "OnClickPanelSelectAll" in n || (n.OnClickPanelSelectAll = J.OnClickPanelSelectAll);
317
317
  return;
318
318
  }
319
319
  n === void 0 && (e.Actions = { ...J });
320
- }, "applyTreeGridJsonSelectAllPanelActionDefault"), Gt = /* @__PURE__ */ o((e) => {
320
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), ht = /* @__PURE__ */ o((e) => {
321
321
  const n = e.Actions;
322
322
  if (Array.isArray(n)) {
323
- n.some((t) => A(t) && "OnClickCell" in t) || (e.Actions = [{ ...W }, ...n]);
323
+ n.some((t) => g(t) && "OnClickCell" in t) || (e.Actions = [{ ...W }, ...n]);
324
324
  return;
325
325
  }
326
- if (A(n)) {
326
+ if (g(n)) {
327
327
  "OnClickCell" in n || (n.OnClickCell = W.OnClickCell);
328
328
  return;
329
329
  }
330
330
  n === void 0 && (e.Actions = { ...W });
331
- }, "applyTreeGridJsonCellClickActionDefault"), St = /* @__PURE__ */ o((e) => {
331
+ }, "applyTreeGridJsonCellClickActionDefault"), Rt = /* @__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 !g(n) || y(ne(n, "Selecting")) ? e : (ht(n), JSON.stringify(n));
335
335
  } catch {
336
336
  return e;
337
337
  }
338
- }, "applyTreeGridJsonDefaultCellClickActionLayout"), be = /* @__PURE__ */ o((e, n) => {
338
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), De = /* @__PURE__ */ o((e, n) => {
339
339
  const t = e.trim();
340
- return t ? t.startsWith("{") ? St(e) : dt(
340
+ return t ? t.startsWith("{") ? Rt(e) : ft(
341
341
  e,
342
- n ?? w(e)
342
+ n ?? b(e)
343
343
  ) : e;
344
- }, "applyTreeGridDefaultCellClickActionLayout"), ht = /* @__PURE__ */ o((e) => {
344
+ }, "applyTreeGridDefaultCellClickActionLayout"), At = /* @__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 !g(n) || !en(n) ? e : (St(n), JSON.stringify(n));
348
348
  } catch {
349
349
  return e;
350
350
  }
351
- }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), De = /* @__PURE__ */ o((e, n) => {
351
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), ye = /* @__PURE__ */ o((e, n) => {
352
352
  const t = e.trim();
353
- return t ? t.startsWith("{") ? ht(e) : ft(
353
+ return t ? t.startsWith("{") ? At(e) : Tt(
354
354
  e,
355
- n ?? w(e)
355
+ n ?? b(e)
356
356
  ) : e;
357
- }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Rt = /* @__PURE__ */ o((e, n) => {
357
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), gt = /* @__PURE__ */ o((e, n) => {
358
358
  if (n === void 0)
359
359
  return e;
360
360
  try {
361
361
  const t = JSON.parse(e);
362
- if (!A(t))
362
+ if (!g(t))
363
363
  return e;
364
- const r = ze(t);
364
+ const r = Ye(t);
365
365
  return r.some((i) => "SuppressCfg" in i) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
366
366
  } catch {
367
367
  return e;
368
368
  }
369
- }, "applyTreeGridJsonDefaultSuppressCfgLayout"), At = /* @__PURE__ */ o((e, n, t) => {
369
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), _t = /* @__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,60 +381,60 @@ 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"), mt = /* @__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("{") ? gt(e, n) : _t(
387
387
  e,
388
- w(e),
388
+ b(e),
389
389
  n
390
390
  );
391
- }, "applyTreeGridDefaultSuppressCfgLayout"), _t = /* @__PURE__ */ o((e) => He.some((n) => n in e), "hasTreeGridToolbarFormulaField"), mt = /* @__PURE__ */ o((e) => {
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
- (c) => A(c) && N(c.Kind, "Toolbar")
394
- ) : A(t) && N(t.Kind, "Toolbar") ? [t] : [];
391
+ }, "applyTreeGridDefaultSuppressCfgLayout"), Lt = /* @__PURE__ */ o((e) => ze.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Ot = /* @__PURE__ */ o((e) => {
392
+ const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(g) : g(n) ? [n] : [], i = Array.isArray(t) ? t.filter(
393
+ (c) => g(c) && N(c.Kind, "Toolbar")
394
+ ) : g(t) && N(t.Kind, "Toolbar") ? [t] : [];
395
395
  return [...r, ...i];
396
- }, "getTreeGridJsonToolbarRecords"), Lt = /* @__PURE__ */ o((e, n) => {
396
+ }, "getTreeGridJsonToolbarRecords"), xt = /* @__PURE__ */ o((e, n) => {
397
397
  if (!n)
398
398
  return e;
399
399
  try {
400
400
  const t = JSON.parse(e);
401
- if (!A(t))
401
+ if (!g(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 = Ot(t);
404
+ return r.some(Lt) ? 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(
409
- (n) => B(e, n)
410
- ), "hasTreeGridXmlToolbarFormulaAttribute"), xt = /* @__PURE__ */ o((e, n) => {
408
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), bt = /* @__PURE__ */ o((e) => ze.some(
409
+ (n) => F(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
- const f = t[0];
416
- if (Ot(f))
415
+ const a = t[0];
416
+ if (bt(a))
417
417
  return e;
418
- const a = te(
419
- f,
418
+ const f = te(
419
+ a,
420
420
  "Formula",
421
421
  n
422
422
  );
423
- return `${e.slice(0, t.index)}${a}${e.slice(
424
- t.index + f.length
423
+ return `${e.slice(0, t.index)}${f}${e.slice(
424
+ t.index + a.length
425
425
  )}`;
426
426
  }
427
427
  const r = te(
428
428
  "<Toolbar />",
429
429
  "Formula",
430
430
  n
431
- ), i = Yn.exec(e);
431
+ ), i = qn.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 = Zn.exec(e);
438
438
  return c ? `${e.slice(
439
439
  0,
440
440
  c.index + c[0].length
@@ -442,41 +442,41 @@ ${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("{") ? xt(
446
446
  e,
447
447
  n
448
- ) : xt(e, n);
449
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), It = /* @__PURE__ */ o((e) => {
448
+ ) : It(e, n);
449
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), Dt = /* @__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 !g(n) || !en(n) ? e : (pt(n), JSON.stringify(n));
453
453
  } catch {
454
454
  return e;
455
455
  }
456
- }, "applyTreeGridJsonDefaultFastPanelLayout"), ye = /* @__PURE__ */ o((e, n) => {
456
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), Pe = /* @__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 : Dt(e) : Gt(
459
459
  e,
460
- n ?? w(e)
460
+ n ?? b(e)
461
461
  ) : e;
462
- }, "applyTreeGridDefaultFastPanelLayout"), bt = /* @__PURE__ */ o((e) => {
462
+ }, "applyTreeGridDefaultFastPanelLayout"), yt = /* @__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 = nt[t]) == null || r.forEach((i) => {
467
467
  n[i] = "";
468
468
  });
469
469
  }), n;
470
- }, "getTreeGridDisabledAnimationAttributes"), Dt = /* @__PURE__ */ o((e, n) => {
470
+ }, "getTreeGridDisabledAnimationAttributes"), Pt = /* @__PURE__ */ o((e, n) => {
471
471
  try {
472
472
  const t = JSON.parse(e);
473
- if (!A(t))
473
+ if (!g(t))
474
474
  return e;
475
475
  const r = t.Animations;
476
476
  if (Array.isArray(r)) {
477
- const i = r.find(A);
477
+ const i = r.find(g);
478
478
  i ? Object.assign(i, n) : r.unshift({ ...n });
479
- } else if (A(r))
479
+ } else if (g(r))
480
480
  Object.assign(r, n);
481
481
  else if (r === void 0)
482
482
  t.Animations = n;
@@ -486,62 +486,62 @@ ${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"), $t = /* @__PURE__ */ o((e) => Qe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), vt = /* @__PURE__ */ o((e, n) => {
490
+ const t = b(e);
491
491
  if (t.gridOpenTagEndIndex === void 0)
492
492
  return e;
493
493
  const r = t.animationsTag;
494
494
  if (r) {
495
- const c = qe(r.tag, n);
495
+ const c = Qe(r.tag, n);
496
496
  return c === r.tag ? e : `${e.slice(0, r.index)}${c}${e.slice(
497
497
  r.index + r.tag.length
498
498
  )}`;
499
499
  }
500
500
  const i = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
501
501
  return `${e.slice(0, i)}
502
- ${yt(
502
+ ${$t(
503
503
  n
504
504
  )}${e.slice(i)}`;
505
- }, "applyTreeGridXmlDisabledAnimationsLayout"), Pe = /* @__PURE__ */ o((e, n) => {
506
- const t = bt(n);
505
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), $e = /* @__PURE__ */ o((e, n) => {
506
+ const t = yt(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("{") ? Pt(e, t) : vt(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
+ dt(
514
+ mt(e, r)
515
515
  ),
516
516
  t
517
517
  ), c = i.trim();
518
518
  if (!c || c.startsWith("{"))
519
- return Pe(
520
- ye(
521
- be(
522
- De(i)
519
+ return $e(
520
+ Pe(
521
+ De(
522
+ ye(i)
523
523
  )
524
524
  ),
525
525
  n
526
526
  );
527
- const f = w(i), a = De(
527
+ const a = b(i), f = ye(
528
528
  i,
529
- f
530
- ), C = a === i ? f : w(a), G = be(
531
- a,
529
+ a
530
+ ), C = f === i ? a : b(f), p = De(
531
+ f,
532
532
  C
533
- ), S = G === a ? C : w(G);
534
- return Pe(
535
- Tt(
536
- ye(
537
- G,
533
+ ), S = p === f ? C : b(p);
534
+ return $e(
535
+ Et(
536
+ Pe(
537
+ p,
538
538
  S
539
539
  ),
540
540
  S
541
541
  ),
542
542
  n
543
543
  );
544
- }, "applyTreeGridDefaultLayout"), $t = /* @__PURE__ */ o((e) => {
544
+ }, "applyTreeGridDefaultLayout"), Bt = /* @__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) => {
@@ -551,37 +551,37 @@ ${e.slice(
551
551
  return "unchecked";
552
552
  let n = 0, t = 0;
553
553
  return U(e).forEach((r) => {
554
- !R(r) || y(r.CanSelect) || (n += 1, ee(e.IsSelected(r)) && (t += 1));
554
+ !A(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 = Bt(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(
566
- _e,
567
566
  me,
568
- Le
567
+ Le,
568
+ Oe
569
569
  );
570
570
  else {
571
- const f = Ft(e);
571
+ const a = Ft(e);
572
572
  t == null || t.classList.toggle(
573
- _e,
574
- f === "checked"
575
- ), t == null || t.classList.toggle(
576
573
  me,
577
- f === "indeterminate"
574
+ a === "checked"
578
575
  ), t == null || t.classList.toggle(
579
576
  Le,
580
- f === "unchecked"
577
+ a === "indeterminate"
578
+ ), t == null || t.classList.toggle(
579
+ Oe,
580
+ a === "unchecked"
581
581
  );
582
582
  }
583
583
  c && r && (c.CanSelect = i ? 1 : 0);
584
- }, "syncTreeGridSelectionPanelState"), Z = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ o((e, n) => {
584
+ }, "syncTreeGridSelectionPanelState"), Z = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ o((e, n) => {
585
585
  if (typeof window > "u")
586
586
  return;
587
587
  const t = Z.get(n);
@@ -590,54 +590,61 @@ ${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"), Nt = /* @__PURE__ */ o((e, n) => {
594
594
  e.EnterMode = n;
595
- const t = Bn[n];
595
+ const t = kn[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"), on = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Be = /* @__PURE__ */ new Map(), kt = /* @__PURE__ */ o((e) => {
601
601
  if (!e || !e.startsWith("data:"))
602
602
  return e;
603
- const n = Fe.get(e);
603
+ const n = Be.get(e);
604
604
  if (n)
605
605
  return n;
606
606
  try {
607
- const [t, r = ""] = e.split(",", 2), i = /^data:([^;]*)(;base64)?$/i.exec(t), c = (i == null ? void 0 : i[1]) || "application/octet-stream", f = i != null && i[2] ? atob(r) : decodeURIComponent(r), a = new Uint8Array(f.length);
608
- for (let G = 0; G < f.length; G += 1)
609
- a[G] = f.charCodeAt(G);
610
- const C = URL.createObjectURL(new Blob([a], { type: c }));
611
- return Fe.set(e, C), C;
607
+ const [t, r = ""] = e.split(",", 2), i = /^data:([^;]*)(;base64)?$/i.exec(t), c = (i == null ? void 0 : i[1]) || "application/octet-stream", a = i != null && i[2] ? atob(r) : decodeURIComponent(r), f = new Uint8Array(a.length);
608
+ for (let p = 0; p < a.length; p += 1)
609
+ f[p] = a.charCodeAt(p);
610
+ const C = URL.createObjectURL(new Blob([f], { type: c }));
611
+ return Be.set(e, C), C;
612
612
  } catch {
613
613
  return e;
614
614
  }
615
615
  }, "resolveTreeGridInlineUrl"), oe = /* @__PURE__ */ o((e) => {
616
- if (!e || rn(e))
617
- return Bt(e);
616
+ if (!e || on(e))
617
+ return kt(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
- const r = t.canEdit, i = t.highlightColumns ?? [], c = t.highlightBackgroundColor;
624
- if (!(r === void 0 && !i.length)) {
623
+ const r = t.canEdit, i = t.editableColumns ?? [], c = t.editableCanEdit, a = t.highlightColumns ?? [], f = t.highlightBackgroundColor;
624
+ if (!(r === void 0 && c === void 0 && !a.length)) {
625
625
  typeof e.StartUpdate == "function" && e.StartUpdate();
626
626
  try {
627
- r !== void 0 && (n.CanEdit = r), i.forEach((f) => {
628
- f && (e.SetValue(
627
+ if (r !== void 0 && (n.CanEdit = r), c !== void 0) {
628
+ const C = n;
629
+ i.forEach((p) => {
630
+ var S;
631
+ !p || !((S = e.Cols) != null && S[p]) || (C[`${p}CanEdit`] = c);
632
+ });
633
+ }
634
+ a.forEach((C) => {
635
+ C && (e.SetValue(
629
636
  n,
630
- `${f}Class`,
631
- c ? Me : "",
637
+ `${C}Class`,
638
+ f ? Xe : "",
632
639
  0
633
- ), e.SetValue(n, `${f}Color`, c ?? "", 0));
640
+ ), e.SetValue(n, `${C}Color`, f ?? "", 0));
634
641
  });
635
642
  } finally {
636
643
  typeof e.EndUpdate == "function" && e.EndUpdate();
637
644
  }
638
645
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
639
646
  }
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) => {
647
+ }, "syncTreeGridDeletedRowState"), Ut = /* @__PURE__ */ o((e) => e ? on(e) || e.includes("assets") ? oe(e) : oe(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Vt = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Mt = /* @__PURE__ */ o((e, n, t, r) => {
641
648
  if (!(!e || t === "cancel")) {
642
649
  if (t === "remove") {
643
650
  e.RemoveRow(n), r(e);
@@ -645,19 +652,19 @@ ${e.slice(
645
652
  }
646
653
  e.DeleteRowT(n, 3);
647
654
  }
648
- }, "applyTreeGridBeforeRowUndeleteAction"), Vt = /* @__PURE__ */ o((e, n, t) => e ? { Url: Nt(n) } : { Data: { Body: [$n(t) ? [] : t] } }, "buildTreeGridDataSource"), yr = /* @__PURE__ */ o(({
655
+ }, "applyTreeGridBeforeRowUndeleteAction"), Xt = /* @__PURE__ */ o((e, n, t) => e ? { Url: Ut(n) } : { Data: { Body: [Bn(t) ? [] : t] } }, "buildTreeGridDataSource"), $r = /* @__PURE__ */ o(({
649
656
  id: e,
650
657
  layoutUrl: n,
651
658
  layoutData: t,
652
659
  toolbarTotalCountFormula: r,
653
660
  suppressCfg: i,
654
661
  disabledAnimations: c,
655
- dataUrl: f,
656
- bodyData: a,
662
+ dataUrl: a,
663
+ bodyData: f,
657
664
  useDataUrl: C,
658
- width: G,
665
+ width: p,
659
666
  height: S,
660
- languageId: h
667
+ languageId: R
661
668
  }) => ({
662
669
  id: e,
663
670
  Layout: t ? {
@@ -668,14 +675,14 @@ ${e.slice(
668
675
  i
669
676
  )
670
677
  } : { Url: oe(n ?? "") },
671
- Data: Vt(C, f, a),
678
+ Data: Xt(C, a, f),
672
679
  Text: {
673
- Url: hn(h)
680
+ Url: An(R)
674
681
  },
675
- width: G,
682
+ width: p,
676
683
  height: S,
677
684
  Debug: "Error"
678
- }), "buildTreeGridInitializationOptions"), Be = /* @__PURE__ */ o((e) => Fn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Ne = /* @__PURE__ */ o((e) => {
685
+ }), "buildTreeGridInitializationOptions"), Ne = /* @__PURE__ */ o((e) => Fn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), ke = /* @__PURE__ */ o((e) => {
679
686
  if (typeof e == "number")
680
687
  return Number.isFinite(e) && e > 0 ? e : void 0;
681
688
  if (typeof e != "string")
@@ -688,101 +695,104 @@ ${e.slice(
688
695
  }, "parseTreeGridPositiveNumber"), se = /* @__PURE__ */ o((e, n, t, r) => {
689
696
  if (!n || !t)
690
697
  return;
691
- const i = e.GetAttribute(n, t, r), c = Ne(i);
692
- return c !== void 0 ? c : Ne(
698
+ const i = e.GetAttribute(n, t, r), c = ke(i);
699
+ return c !== void 0 ? c : ke(
693
700
  n[`${t}${r}`]
694
701
  );
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) => {
702
+ }, "getTreeGridHeaderCellSpanAttribute"), Wt = /* @__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"), Ue = /* @__PURE__ */ o((e, n, t) => {
696
703
  const r = e.get(n);
697
704
  if (r) {
698
705
  r.add(t);
699
706
  return;
700
707
  }
701
708
  e.set(n, /* @__PURE__ */ new Set([t]));
702
- }, "addTreeGridHeaderButtonAttributeTarget"), on = /* @__PURE__ */ o((e, n, t, r) => {
709
+ }, "addTreeGridHeaderButtonAttributeTarget"), sn = /* @__PURE__ */ o((e, n, t, r) => {
703
710
  const i = /* @__PURE__ */ new Map();
704
- return n.forEach((c, f) => {
705
- t.forEach((a, C) => {
706
- if (!Mt(e, c, a) || (ke(i, c, a), !r))
711
+ return n.forEach((c, a) => {
712
+ t.forEach((f, C) => {
713
+ if (!Wt(e, c, f) || (Ue(i, c, f), !r))
707
714
  return;
708
- const G = Math.floor(se(e, c, a, "Span") ?? 1), S = Math.min(t.length, C + G);
709
- for (let h = f + 1; h < n.length; h += 1) {
710
- const m = n[h];
715
+ const p = Math.floor(se(e, c, f, "Span") ?? 1), S = Math.min(t.length, C + p);
716
+ for (let R = a + 1; R < n.length; R += 1) {
717
+ const m = n[R];
711
718
  for (let L = C; L < S; L += 1)
712
- ke(i, m, t[L]);
719
+ Ue(i, m, t[L]);
713
720
  }
714
721
  });
715
722
  }), i;
716
- }, "getTreeGridGroupHeaderSortButtonTargets"), Xt = /* @__PURE__ */ o((e, n, t, r) => {
717
- var f;
723
+ }, "getTreeGridGroupHeaderSortButtonTargets"), Jt = /* @__PURE__ */ o((e, n, t, r) => {
724
+ var a;
718
725
  if (!n || !t || n.Fixed !== "Head")
719
726
  return !1;
720
- const i = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((a) => a.Fixed === "Head") : [], c = typeof e.GetCols == "function" ? e.GetCols() : [];
721
- return !i.length || !c.length ? !1 : ((f = on(
727
+ const i = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((f) => f.Fixed === "Head") : [], c = typeof e.GetCols == "function" ? e.GetCols() : [];
728
+ return !i.length || !c.length ? !1 : ((a = sn(
722
729
  e,
723
730
  i,
724
731
  c,
725
732
  r
726
- ).get(n)) == null ? void 0 : f.has(t)) === !0;
727
- }, "isTreeGridGroupHeaderSortButtonTarget"), Ue = /* @__PURE__ */ o((e, n, t = !1, r = !0) => {
728
- const i = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((S) => S.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
729
- if (!c.length || !f.length)
733
+ ).get(n)) == null ? void 0 : a.has(t)) === !0;
734
+ }, "isTreeGridGroupHeaderSortButtonTarget"), Ve = /* @__PURE__ */ o((e, n, t = !1, r = !0) => {
735
+ const i = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((S) => S.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
736
+ if (!c.length || !a.length)
730
737
  return;
731
- const a = /* @__PURE__ */ new Set();
738
+ const f = /* @__PURE__ */ new Set();
732
739
  let C = 0;
733
- const G = on(
740
+ const p = sn(
734
741
  e,
735
742
  c,
736
- f,
743
+ a,
737
744
  r
738
745
  );
739
- if (G.size) {
746
+ if (p.size) {
740
747
  typeof e.StartUpdate == "function" && e.StartUpdate();
741
748
  try {
742
- G.forEach((S, h) => {
749
+ p.forEach((S, R) => {
743
750
  S.forEach((m) => {
744
- e.GetAttribute(h, m, xe) !== "" && (e.SetAttribute(h, m, xe, "", 0, 0), a.add(h), C += 1);
751
+ e.GetAttribute(R, m, be) !== "" && (e.SetAttribute(R, m, be, "", 0, 0), f.add(R), C += 1);
745
752
  });
746
753
  });
747
754
  } finally {
748
755
  typeof e.EndUpdate == "function" && e.EndUpdate();
749
756
  }
750
- a.size && (t && a.forEach((S) => {
757
+ f.size && (t && f.forEach((S) => {
751
758
  typeof e.RefreshRow == "function" && e.RefreshRow(S);
752
- }), Je(n, "group header button attribute apply"), Ke(n, "group header button attribute apply", i, {
759
+ }), Ke(n, "group header button attribute apply"), je(n, "group header button attribute apply", i, {
753
760
  updatedCellCount: C,
754
- updatedRowCount: a.size
761
+ updatedRowCount: f.size
755
762
  }));
756
763
  }
757
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), Wt = /* @__PURE__ */ o((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Jt = /* @__PURE__ */ o((e) => {
764
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), Kt = /* @__PURE__ */ o((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), jt = /* @__PURE__ */ o((e) => {
758
765
  const n = e == null ? void 0 : e.Visible;
759
766
  return !!e && n !== 0 && n !== !1 && n !== "0";
760
767
  }, "isVisibleTreeGridRow"), P = /* @__PURE__ */ o((e) => {
761
768
  const n = e == null ? void 0 : e.Added;
762
769
  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) => {
770
+ }, "isAddedTreeGridRow"), cn = /* @__PURE__ */ o((e) => {
771
+ const n = e == null ? void 0 : e.Deleted;
772
+ return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
773
+ }, "isDeletedTreeGridRow"), A = /* @__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"), Ht = /* @__PURE__ */ o((e, n) => {
764
774
  var r;
765
775
  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) => {
776
+ return !!t && !y(t.Visible) && !tt(t.Hidden);
777
+ }, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ o((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), zt = /* @__PURE__ */ o((e) => {
768
778
  const n = Q.get(e);
769
779
  if (n)
770
780
  return n;
771
781
  const t = new Map(
772
- H(e).map((c, f) => [c, f])
782
+ H(e).map((c, a) => [c, a])
773
783
  ), r = [...t.keys()].filter(
774
- (c) => !Jn.has(c) && Kt(e, c)
775
- ).sort((c, f) => {
776
- var L, b;
777
- const a = (L = e.Cols) == null ? void 0 : L[c], C = (b = e.Cols) == null ? void 0 : b[f], G = t.get(c) ?? 0, S = t.get(f) ?? 0, h = X(a == null ? void 0 : a.Sec, G) - X(C == null ? void 0 : C.Sec, S);
778
- return h !== 0 ? h : X(a == null ? void 0 : a.Pos, G) - X(C == null ? void 0 : C.Pos, S) || G - S;
784
+ (c) => !jn.has(c) && Ht(e, c)
785
+ ).sort((c, a) => {
786
+ var L, w;
787
+ const f = (L = e.Cols) == null ? void 0 : L[c], C = (w = e.Cols) == null ? void 0 : w[a], p = t.get(c) ?? 0, S = t.get(a) ?? 0, R = X(f == null ? void 0 : f.Sec, p) - X(C == null ? void 0 : C.Sec, S);
788
+ return R !== 0 ? R : X(f == null ? void 0 : f.Pos, p) - X(C == null ? void 0 : C.Pos, S) || p - S;
779
789
  }), i = {
780
790
  columnSet: new Set(r),
781
791
  firstColumn: r[0],
782
792
  lastColumn: r[r.length - 1]
783
793
  };
784
794
  return Q.set(e, i), i;
785
- }, "getTreeGridAddedRowBoxColumnBounds"), F = /* @__PURE__ */ o((e) => {
795
+ }, "getTreeGridAddedRowBoxColumnBounds"), v = /* @__PURE__ */ o((e) => {
786
796
  e && Q.delete(e);
787
797
  }, "clearTreeGridAddedRowBoxColumnBounds"), U = /* @__PURE__ */ o((e) => {
788
798
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
@@ -793,68 +803,68 @@ ${e.slice(
793
803
  return n;
794
804
  }
795
805
  return Object.values(e.Rows ?? {});
796
- }, "getTreeGridRows"), ce = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ o((e) => {
806
+ }, "getTreeGridRows"), ce = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ o((e) => {
797
807
  e && ce.delete(e);
798
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), sn = /* @__PURE__ */ o((e, n) => {
808
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), ln = /* @__PURE__ */ o((e, n) => {
799
809
  const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], i = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
800
810
  return Number.isFinite(i) && i > 1 ? Math.floor(i) : 1;
801
- }, "getTreeGridRowSpanCount"), Ht = /* @__PURE__ */ o((e) => {
811
+ }, "getTreeGridRowSpanCount"), Yt = /* @__PURE__ */ o((e) => {
802
812
  const n = /* @__PURE__ */ new WeakMap();
803
813
  let t = null, r = -1;
804
814
  return U(e).forEach((i, c) => {
805
- if (!R(i)) {
815
+ if (!A(i)) {
806
816
  n.set(i, null);
807
817
  return;
808
818
  }
809
- const f = sn(i, je);
810
- if (f > 1) {
811
- t = i, r = c + f - 1, n.set(i, i);
819
+ const a = ln(i, He);
820
+ if (a > 1) {
821
+ t = i, r = c + a - 1, n.set(i, i);
812
822
  return;
813
823
  }
814
824
  n.set(i, t && c <= r ? t : null), c >= r && (t = null, r = -1);
815
825
  }), n;
816
826
  }, "createTreeGridSelectionRowSpanAnchorRowMap"), ae = /* @__PURE__ */ o((e, n) => {
817
- if (!n || !R(n))
827
+ if (!n || !A(n))
818
828
  return null;
819
829
  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) => {
830
+ return t != null && t.has(n) || (t = Yt(e), ce.set(e, t)), t.get(n) ?? null;
831
+ }, "getTreeGridSelectionRowSpanAnchorRow"), dn = /* @__PURE__ */ o((e, n) => {
822
832
  const t = ae(e, n);
823
833
  if (!t)
824
834
  return [];
825
- const r = sn(t, je), i = [];
835
+ const r = ln(t, He), i = [];
826
836
  let c = t;
827
- for (let f = 0; c && f < r; f += 1)
828
- R(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
837
+ for (let a = 0; c && a < r; a += 1)
838
+ A(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
829
839
  return i;
830
- }, "getTreeGridSelectionRowSpanRows"), zt = /* @__PURE__ */ o((e) => {
840
+ }, "getTreeGridSelectionRowSpanRows"), Zt = /* @__PURE__ */ o((e) => {
831
841
  const n = /* @__PURE__ */ new Set();
832
842
  return (e.GetSelRows() ?? []).forEach((t) => {
833
- cn(e, t).forEach((r) => {
843
+ dn(e, t).forEach((r) => {
834
844
  n.add(r);
835
845
  });
836
846
  }), [...n];
837
- }, "getTreeGridSelectedRowSpanRows"), Yt = /* @__PURE__ */ o((e, n) => {
847
+ }, "getTreeGridSelectedRowSpanRows"), qt = /* @__PURE__ */ o((e, n) => {
838
848
  if (!e)
839
849
  return;
840
850
  const t = H(e);
841
851
  U(e).forEach((r) => {
842
- R(r) && n.set(
852
+ A(r) && n.set(
843
853
  r,
844
854
  new Map(t.map((i) => [i, ue(e, r, i)]))
845
855
  );
846
856
  });
847
- }, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Zt = /* @__PURE__ */ o((e, n, t) => {
857
+ }, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Qt = /* @__PURE__ */ o((e, n, t) => {
848
858
  const r = n;
849
859
  return H(e).some((i) => i !== t && le(r[`${i}Changed`]));
850
- }, "hasOtherTreeGridChangedCells"), ln = /* @__PURE__ */ o((e, n, t) => {
860
+ }, "hasOtherTreeGridChangedCells"), un = /* @__PURE__ */ o((e, n, t) => {
851
861
  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) => {
862
+ r[`${t}Changed`] = 0, !P(n) && !I(n) && !Qt(e, n, t) && (r.Changed = 0);
863
+ }, "clearTreeGridCellChangedState"), er = /* @__PURE__ */ o((e, n, t) => {
854
864
  const r = e.get(n);
855
865
  if (r != null && r.has(t))
856
866
  return r.get(t);
857
- }, "resolveTreeGridCellBaselineValue"), Qt = /* @__PURE__ */ o(({
867
+ }, "resolveTreeGridCellBaselineValue"), nr = /* @__PURE__ */ o(({
858
868
  gridId: e,
859
869
  grid: n,
860
870
  row: t,
@@ -866,55 +876,55 @@ ${e.slice(
866
876
  return !1;
867
877
  if (n.CanEdit(t, r) !== 1)
868
878
  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, {
879
+ const a = mn(t, r), f = q(t).includes(r);
880
+ return a === void 0 ? !0 : ue(n, t, r) === a ? (Ln(t, r), f && We(e, { row: t, col: r }), un(n, t, r), !0) : (On(t, r), Je(e, {
871
881
  row: t,
872
882
  col: r,
873
883
  backgroundColor: i,
874
884
  refresh: c
875
885
  }), !0);
876
- }, "syncTreeGridAddedRowChangedCellHighlight"), er = /* @__PURE__ */ o(({
886
+ }, "syncTreeGridAddedRowChangedCellHighlight"), tr = /* @__PURE__ */ o(({
877
887
  gridId: e,
878
888
  grid: n,
879
889
  row: t,
880
890
  col: r,
881
891
  backgroundColor: i,
882
892
  baselineMap: c,
883
- highlightRefresh: f
893
+ highlightRefresh: a
884
894
  }) => {
885
- if (!R(t) || Qt({
895
+ if (!A(t) || nr({
886
896
  gridId: e,
887
897
  grid: n,
888
898
  row: t,
889
899
  col: r,
890
900
  backgroundColor: i,
891
- highlightRefresh: f
901
+ highlightRefresh: a
892
902
  }))
893
903
  return;
894
- const a = qt(c, t, r), C = ue(n, t, r);
895
- if (a !== void 0 && C === a) {
896
- Xe(e, { row: t, col: r }), ln(n, t, r);
904
+ const f = er(c, t, r), C = ue(n, t, r);
905
+ if (f !== void 0 && C === f) {
906
+ We(e, { row: t, col: r }), un(n, t, r);
897
907
  return;
898
908
  }
899
- We(e, {
909
+ Je(e, {
900
910
  row: t,
901
911
  col: r,
902
912
  backgroundColor: i,
903
- refresh: f
913
+ refresh: a
904
914
  });
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) => {
915
+ }, "syncTreeGridChangedCellHighlight"), rr = /* @__PURE__ */ o((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), fn = /* @__PURE__ */ o((e, n, t) => {
906
916
  const r = e.GetAttribute(n, t, "Color");
907
917
  if (typeof r == "number")
908
- return fn(r);
918
+ return Tn(r);
909
919
  if (typeof r == "string")
910
920
  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) => {
912
- if (!n || !t || !R(n))
921
+ }, "getExplicitTreeGridCellColor"), ir = /* @__PURE__ */ o((e, n, t) => fn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Te = /* @__PURE__ */ o((e, n, t) => {
922
+ if (!n || !t || !A(n))
913
923
  return !1;
914
924
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
915
925
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
916
926
  }, "isTreeGridFocusedCellState"), V = /* @__PURE__ */ o((e, n, t) => {
917
- if (!n || !t || !R(n))
927
+ if (!n || !t || !A(n))
918
928
  return !1;
919
929
  const r = e.IsSelected(n, t);
920
930
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
@@ -925,17 +935,17 @@ ${e.slice(
925
935
  const c = e.IsSelected(i, t);
926
936
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
927
937
  }, "isTreeGridSelectedCellState"), Ce = /* @__PURE__ */ o((e) => {
928
- if (!we.length)
938
+ if (!Ie.length)
929
939
  return !1;
930
940
  const n = e.split(/\s+/).filter(Boolean);
931
- return we.every(
941
+ return Ie.every(
932
942
  (t) => n.includes(t)
933
943
  );
934
- }, "hasTreeGridChangedCellDisplayClass"), rr = /* @__PURE__ */ o((e) => {
935
- if (!(!e || e.split(/\s+/).includes(Oe) || !Ce(e)))
936
- return `${e} ${Oe}`;
937
- }, "appendTreeGridSelectedChangedCellDisplayClass"), ir = /* @__PURE__ */ o((e) => !e || !R(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), or = /* @__PURE__ */ o((e, n) => {
938
- if (!n || !ir(n) || typeof e.RefreshRow != "function")
944
+ }, "hasTreeGridChangedCellDisplayClass"), or = /* @__PURE__ */ o((e) => {
945
+ if (!(!e || e.split(/\s+/).includes(xe) || !Ce(e)))
946
+ return `${e} ${xe}`;
947
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), sr = /* @__PURE__ */ o((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), cr = /* @__PURE__ */ o((e, n) => {
948
+ if (!n || !sr(n) || typeof e.RefreshRow != "function")
939
949
  return;
940
950
  const t = n;
941
951
  window.setTimeout(() => {
@@ -950,30 +960,30 @@ ${e.slice(
950
960
  e.RefreshRow(r);
951
961
  });
952
962
  }, 0);
953
- }, "scheduleTreeGridRowsRefresh"), sr = /* @__PURE__ */ o((e, n) => {
963
+ }, "scheduleTreeGridRowsRefresh"), lr = /* @__PURE__ */ o((e, n) => {
954
964
  if (!n)
955
965
  return;
956
- const t = cn(e, n);
966
+ const t = dn(e, n);
957
967
  t.length <= 1 || M(e, t);
958
- }, "scheduleTreeGridSelectionRowSpanRefresh"), cr = /* @__PURE__ */ o((e) => {
959
- const n = U(e).filter((t) => R(t) && ae(e, t));
968
+ }, "scheduleTreeGridSelectionRowSpanRefresh"), dr = /* @__PURE__ */ o((e) => {
969
+ const n = U(e).filter((t) => A(t) && ae(e, t));
960
970
  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)))
971
+ }, "scheduleTreeGridSelectionRowSpanRefreshAll"), an = /* @__PURE__ */ o((e, n, t, r) => {
972
+ if (!(!n || r === void 0 || !rr(e, n, t) || Te(e, n, t) || V(e, n, t) || ir(e, n, t)))
963
973
  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) => {
974
+ }, "getEditableTreeGridCellDefaultColor"), B = /* @__PURE__ */ o((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), ur = /* @__PURE__ */ o((e, n, t) => Jn.some(
975
+ (r) => B(e, n, t, r)
976
+ ), "isTreeGridNativeErrorBackgroundColor"), Tn = /* @__PURE__ */ o((e) => {
967
977
  if (!(e === void 0 || !Number.isFinite(e)))
968
978
  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) => {
979
+ }, "toTreeGridCssHexColor"), de = /* @__PURE__ */ o((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Ee = /* @__PURE__ */ o((e, n, t) => de(e, n, t) !== "", "hasTreeGridCellError"), fr = /* @__PURE__ */ o((e, n) => {
970
980
  if (!n)
971
981
  return;
972
982
  let t = !1;
973
983
  H(e).forEach((r) => {
974
984
  Ee(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
975
985
  }), t && e.RefreshRow(n);
976
- }, "clearTreeGridRowErrors"), ur = /* @__PURE__ */ o((e) => {
986
+ }, "clearTreeGridRowErrors"), ar = /* @__PURE__ */ o((e) => {
977
987
  const n = e == null ? void 0 : e.target;
978
988
  if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
979
989
  return null;
@@ -983,58 +993,60 @@ ${e.slice(
983
993
  return c instanceof HTMLElement ? c : i instanceof HTMLElement ? i : null;
984
994
  }
985
995
  return null;
986
- }, "getTreeGridMouseEventAnchorElement"), fr = /* @__PURE__ */ o((e, n) => {
987
- if (!e || !n || !R(e))
996
+ }, "getTreeGridMouseEventAnchorElement"), Tr = /* @__PURE__ */ o((e, n) => {
997
+ if (!e || !n || !A(e))
988
998
  return !1;
989
999
  const t = e, r = t[`${n}Class`], i = le(t[`${n}Changed`]) || typeof r == "string" && Ce(r);
990
1000
  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(({
1001
+ }, "isChangedTreeGridRowOrCell"), Cr = /* @__PURE__ */ o((e, n, t) => Hn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Er = /* @__PURE__ */ o((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Gr = /* @__PURE__ */ o((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), pr = /* @__PURE__ */ o((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), Sr = /* @__PURE__ */ o(({
992
1002
  grid: e,
993
1003
  row: n,
994
1004
  col: t,
995
1005
  r,
996
1006
  g: i,
997
1007
  b: c,
998
- focusedCellBackgroundColor: f,
999
- selectedCellBackgroundColor: a,
1008
+ focusedCellBackgroundColor: a,
1009
+ selectedCellBackgroundColor: f,
1000
1010
  hoverCellBackgroundColor: C,
1001
- changedCellBackgroundColor: G,
1011
+ changedCellBackgroundColor: p,
1002
1012
  editableCellBackgroundColorValue: S
1003
1013
  }) => {
1004
1014
  if (Te(e, n, t))
1005
- return f;
1006
- if (V(e, n, t))
1007
1015
  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)))
1016
+ if (V(e, n, t))
1017
+ return f;
1018
+ if (Er(e, n, t) && (B(r, i, c, Un) || B(r, i, c, Vn)) || Gr(e, n, t) && (B(r, i, c, Mn) || B(r, i, c, Xn) || B(r, i, c, Wn)))
1009
1019
  return C;
1010
- const h = P(n) || I(n), m = Ee(e, n, t) && lr(r, i, c);
1011
- if (!m && !h)
1020
+ if (cn(n))
1021
+ return;
1022
+ const R = P(n) || I(n), m = Ee(e, n, t) && ur(r, i, c);
1023
+ if (!m && !R)
1012
1024
  return;
1013
- const L = dn(e, n, t);
1025
+ const L = fn(e, n, t);
1014
1026
  if (m && L)
1015
1027
  return L;
1016
- if (fr(n, t))
1017
- return G;
1018
- const b = un(
1028
+ if (Tr(n, t))
1029
+ return p;
1030
+ const w = an(
1019
1031
  e,
1020
1032
  n,
1021
1033
  t,
1022
1034
  S
1023
1035
  );
1024
- return b !== void 0 ? fn(b) : h ? L ?? Rn : Wn;
1036
+ return w !== void 0 ? Tn(w) : R ? L ?? gn : Kn;
1025
1037
  }, "resolveTreeGridStateBackgroundColor"), K = /* @__PURE__ */ o((e, n) => {
1026
1038
  const t = e.split(/\s+/).filter(Boolean);
1027
1039
  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))
1040
+ }, "appendTreeGridClassToken"), hr = /* @__PURE__ */ o((e, n, t, r) => !Ee(e, n, t) || !n ? r : K(r, yn), "appendTreeGridErrorCellDisplayClass"), Rr = /* @__PURE__ */ o((e, n, t, r) => {
1041
+ if (!A(n) || cn(n) || !P(n) && !I(n) || pr(e, n) || V(e, n, t))
1030
1042
  return r;
1031
- const i = jt(e);
1043
+ const i = zt(e);
1032
1044
  if (!i.columnSet.has(t))
1033
1045
  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(
1046
+ let c = K(r, Dn);
1047
+ return t === i.firstColumn && (c = K(c, Pn)), t === i.lastColumn && (c = K(c, $n)), c;
1048
+ }, "appendTreeGridAddedRowBoxDisplayClass"), Ar = /* @__PURE__ */ o((e, n, t, r) => {
1049
+ const i = hr(e, n, t, r), c = Rr(
1038
1050
  e,
1039
1051
  n,
1040
1052
  t,
@@ -1042,29 +1054,29 @@ ${e.slice(
1042
1054
  );
1043
1055
  if (!V(e, n, t))
1044
1056
  return c === r ? void 0 : c;
1045
- const f = rr(c) ?? c;
1046
- 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);
1057
+ const a = or(c) ?? c;
1058
+ return a === r ? void 0 : a;
1059
+ }, "resolveTreeGridCellDisplayClass"), Cn = /* @__PURE__ */ o((e) => A(e) && (P(e) || I(e)), "isTreeGridAddedRowBoxDisplayRow"), Me = /* @__PURE__ */ o((e, n) => {
1060
+ const t = n.filter(Cn);
1049
1061
  t.length && M(e, t);
1050
- }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Rr = /* @__PURE__ */ o((e) => {
1051
- M(e, U(e).filter(an));
1052
- }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), Pr = /* @__PURE__ */ o((e) => {
1062
+ }, "scheduleTreeGridAddedRowBoxRowsRefresh"), gr = /* @__PURE__ */ o((e) => {
1063
+ M(e, U(e).filter(Cn));
1064
+ }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), vr = /* @__PURE__ */ o((e) => {
1053
1065
  if (!e)
1054
1066
  return !1;
1055
1067
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
1056
1068
  let n = e.GetFirst();
1057
1069
  for (; n; ) {
1058
- if (R(n))
1070
+ if (A(n))
1059
1071
  return !0;
1060
1072
  n = e.GetNext(n);
1061
1073
  }
1062
1074
  return !1;
1063
1075
  }
1064
- return Object.values(e.Rows ?? {}).some((n) => R(n));
1065
- }, "hasTreeGridDisplayDataRows"), $r = /* @__PURE__ */ o((e, n, t) => {
1076
+ return Object.values(e.Rows ?? {}).some((n) => A(n));
1077
+ }, "hasTreeGridDisplayDataRows"), Br = /* @__PURE__ */ o((e, n, t) => {
1066
1078
  var i;
1067
- O(e);
1079
+ x(e);
1068
1080
  const r = (i = e.Data) == null ? void 0 : i.Data;
1069
1081
  e.Data.Data = {
1070
1082
  ...r,
@@ -1078,123 +1090,123 @@ ${e.slice(
1078
1090
  highlightEditableCellsRef: r,
1079
1091
  highlightChangedCellsRef: i,
1080
1092
  syncDeletedRowCanEditRef: c,
1081
- editableCellBackgroundColorValueRef: f,
1082
- changedCellBackgroundColorRef: a,
1093
+ editableCellBackgroundColorValueRef: a,
1094
+ changedCellBackgroundColorRef: f,
1083
1095
  focusedCellBackgroundColorRef: C,
1084
- selectedCellBackgroundColorRef: G,
1096
+ selectedCellBackgroundColorRef: p,
1085
1097
  hoverCellBackgroundColorRef: S,
1086
- changedCellBaselineRef: h,
1098
+ changedCellBaselineRef: R,
1087
1099
  treeGridInstanceRef: m,
1088
1100
  treeGridInitStartedAtRef: L,
1089
- latestLayoutOverridesRef: b,
1090
- latestToolbarTotalCountFormulaRef: pe,
1091
- latestSuppressCfgRef: Ge,
1101
+ latestLayoutOverridesRef: w,
1102
+ latestToolbarTotalCountFormulaRef: Ge,
1103
+ latestSuppressCfgRef: pe,
1092
1104
  latestHideChildHeaderSortButtonsRef: z,
1093
- latestSelectionScopeRef: Tn,
1105
+ latestSelectionScopeRef: En,
1094
1106
  latestDisabledAnimationsRef: Se,
1095
- appliedLayoutOverridesRef: Cn,
1096
- appliedBodyDataPropRef: En,
1107
+ appliedLayoutOverridesRef: Gn,
1108
+ appliedBodyDataPropRef: pn,
1097
1109
  hasAppliedInitialLayoutRef: he,
1098
1110
  syncHasDisplayDataRows: $,
1099
- setIsTreeGridReady: pn,
1100
- showErrorTooltip: Gn,
1111
+ setIsTreeGridReady: Sn,
1112
+ showErrorTooltip: hn,
1101
1113
  hideErrorTooltip: D
1102
1114
  }) => {
1103
- const g = n.current;
1115
+ const _ = n.current;
1104
1116
  if (window.TGSetEvent("OnRowAdd", e, (s, l) => {
1105
1117
  var d, u;
1106
- O(s), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, s, l);
1118
+ x(s), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, s, l);
1107
1119
  }), window.TGSetEvent("OnRowAdded", e, (s) => {
1108
- O(s), $(s);
1120
+ x(s), $(s);
1109
1121
  }), window.TGSetEvent("OnRowRemove", e, (s) => {
1110
- O(s), D(), $(s);
1122
+ x(s), D(), $(s);
1111
1123
  }), window.TGSetEvent("OnColShow", e, (s) => {
1112
- F(s);
1124
+ v(s);
1113
1125
  }), window.TGSetEvent("OnAfterColumnsChanged", e, (s) => {
1114
- F(s);
1126
+ v(s);
1115
1127
  }), window.TGSetEvent("OnColMove", e, (s) => {
1116
- F(s);
1128
+ v(s);
1117
1129
  }), window.TGSetEvent("OnColsAdd", e, (s) => {
1118
- F(s);
1130
+ v(s);
1119
1131
  }), window.TGSetEvent("OnColDelete", e, (s) => {
1120
- F(s);
1132
+ v(s);
1121
1133
  }), window.TGSetEvent("OnColUndelete", e, (s) => {
1122
- F(s);
1123
- }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, E) => {
1124
- const p = de(s, l, d);
1125
- if (!p) {
1134
+ v(s);
1135
+ }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, G) => {
1136
+ const E = de(s, l, d);
1137
+ if (!E) {
1126
1138
  D();
1127
1139
  return;
1128
1140
  }
1129
- const _ = ur(E);
1130
- if (!_) {
1141
+ const h = ar(G);
1142
+ if (!h) {
1131
1143
  D();
1132
1144
  return;
1133
1145
  }
1134
- s.HideTip(), Gn({ anchorEl: _, row: l, col: d, message: p });
1146
+ s.HideTip(), hn({ anchorEl: h, row: l, col: d, message: E });
1135
1147
  }), window.TGSetEvent("OnFocus", e, (s, l, d, u) => {
1136
- l !== u && Ve(s, [l, u]);
1148
+ l !== u && Me(s, [l, u]);
1137
1149
  }), window.TGSetEvent("OnTip", e, (s, l, d, u) => de(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
1138
- var E;
1150
+ var G;
1139
1151
  if (d !== 3)
1140
1152
  return d;
1141
- const u = (E = n.current) == null ? void 0 : E.onBeforeRowUndelete;
1153
+ const u = (G = n.current) == null ? void 0 : G.onBeforeRowUndelete;
1142
1154
  if (typeof u != "function")
1143
1155
  return d;
1144
- const T = /* @__PURE__ */ o((p) => {
1156
+ const T = /* @__PURE__ */ o((E) => {
1145
1157
  window.setTimeout(() => {
1146
- Ut(
1158
+ Mt(
1147
1159
  m.current ?? s,
1148
1160
  l,
1149
- p,
1161
+ E,
1150
1162
  $
1151
1163
  );
1152
1164
  }, 0);
1153
1165
  }, "scheduleAction");
1154
1166
  try {
1155
- const p = u(s, l);
1156
- return kt(p) ? (p.then(T).catch(() => {
1167
+ const E = u(s, l);
1168
+ return Vt(E) ? (E.then(T).catch(() => {
1157
1169
  T("undelete");
1158
- }), 0) : (T(p), 0);
1170
+ }), 0) : (T(E), 0);
1159
1171
  } catch {
1160
1172
  return T("undelete"), 0;
1161
1173
  }
1162
- }), typeof (g == null ? void 0 : g.onRowClick) == "function" || typeof (g == null ? void 0 : g.onInternalCellClick) == "function") {
1163
- const s = Y((l, d, u, T, E, p) => {
1164
- var _, x;
1165
- (x = (_ = n.current) == null ? void 0 : _.onRowClick) == null || x.call(
1166
- _,
1174
+ }), typeof (_ == null ? void 0 : _.onRowClick) == "function" || typeof (_ == null ? void 0 : _.onInternalCellClick) == "function") {
1175
+ const s = Y((l, d, u, T, G, E) => {
1176
+ var h, O;
1177
+ (O = (h = n.current) == null ? void 0 : h.onRowClick) == null || O.call(
1178
+ h,
1167
1179
  l,
1168
1180
  d,
1169
1181
  u,
1170
1182
  T,
1171
- E,
1172
- p
1183
+ G,
1184
+ E
1173
1185
  );
1174
1186
  }, 300);
1175
- window.TGSetEvent("OnClick", e, (l, d, u, T, E, p) => {
1176
- var x, Ae, ge;
1177
- const _ = (Ae = (x = n.current) == null ? void 0 : x.onInternalCellClick) == null ? void 0 : Ae.call(
1178
- x,
1187
+ window.TGSetEvent("OnClick", e, (l, d, u, T, G, E) => {
1188
+ var O, Ae, ge;
1189
+ const h = (Ae = (O = n.current) == null ? void 0 : O.onInternalCellClick) == null ? void 0 : Ae.call(
1190
+ O,
1179
1191
  l,
1180
1192
  d,
1181
1193
  u,
1182
1194
  T,
1183
- E,
1184
- p
1195
+ G,
1196
+ E
1185
1197
  );
1186
- if (_ !== void 0)
1187
- return _;
1188
- typeof ((ge = n.current) == null ? void 0 : ge.onRowClick) == "function" && s(l, d, u, T, E, p);
1198
+ if (h !== void 0)
1199
+ return h;
1200
+ typeof ((ge = n.current) == null ? void 0 : ge.onRowClick) == "function" && s(l, d, u, T, G, E);
1189
1201
  });
1190
1202
  }
1191
- (typeof (g == null ? void 0 : g.onClickButton) == "function" || typeof (g == null ? void 0 : g.onInternalButtonClick) == "function") && window.TGSetEvent(
1203
+ (typeof (_ == null ? void 0 : _.onClickButton) == "function" || typeof (_ == null ? void 0 : _.onInternalButtonClick) == "function") && window.TGSetEvent(
1192
1204
  "OnClickButton",
1193
1205
  e,
1194
1206
  (s, l, d, u) => {
1195
- var E, p, _, x;
1196
- const T = (p = (E = n.current) == null ? void 0 : E.onInternalButtonClick) == null ? void 0 : p.call(
1197
- E,
1207
+ var G, E, h, O;
1208
+ const T = (E = (G = n.current) == null ? void 0 : G.onInternalButtonClick) == null ? void 0 : E.call(
1209
+ G,
1198
1210
  s,
1199
1211
  l,
1200
1212
  d,
@@ -1202,27 +1214,27 @@ ${e.slice(
1202
1214
  );
1203
1215
  if (T !== void 0)
1204
1216
  return T;
1205
- (x = (_ = n.current) == null ? void 0 : _.onClickButton) == null || x.call(
1206
- _,
1217
+ (O = (h = n.current) == null ? void 0 : h.onClickButton) == null || O.call(
1218
+ h,
1207
1219
  s,
1208
1220
  l,
1209
1221
  d,
1210
1222
  u
1211
1223
  );
1212
1224
  }
1213
- ), typeof (g == null ? void 0 : g.onInternalKeyDown) == "function" && (window.TGSetEvent(
1225
+ ), typeof (_ == null ? void 0 : _.onInternalKeyDown) == "function" && (window.TGSetEvent(
1214
1226
  "OnKeyDown",
1215
1227
  e,
1216
1228
  (s, l, d, u, T) => {
1217
- var E, p;
1218
- return (p = (E = n.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : p.call(E, s, l, d, u, T);
1229
+ var G, E;
1230
+ return (E = (G = n.current) == null ? void 0 : G.onInternalKeyDown) == null ? void 0 : E.call(G, s, l, d, u, T);
1219
1231
  }
1220
1232
  ), window.TGSetEvent(
1221
1233
  "OnKeyPress",
1222
1234
  e,
1223
1235
  (s, l, d, u, T) => {
1224
- var E, p;
1225
- return (p = (E = n.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : p.call(E, s, l, d, u, T);
1236
+ var G, E;
1237
+ return (E = (G = n.current) == null ? void 0 : G.onInternalKeyDown) == null ? void 0 : E.call(G, s, l, d, u, T);
1226
1238
  }
1227
1239
  )), window.TGSetEvent("OnStartEdit", e, (s, l, d) => {
1228
1240
  var u, T;
@@ -1233,87 +1245,91 @@ ${e.slice(
1233
1245
  d
1234
1246
  );
1235
1247
  }), window.TGSetEvent("OnRowDelete", e, (s, l, d) => {
1236
- 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, {
1240
- canEdit: c.current !== !1 ? 2 : void 0,
1241
- highlightColumns: u
1242
- }), $(s), (E = (T = n.current) == null ? void 0 : T.onRowDelete) == null || E.call(
1243
- T,
1248
+ var h, O;
1249
+ x(s), D(), fr(s, l), s.SelectRow(l, 0);
1250
+ const u = I(l), T = u ? q(l) : [], G = u ? _e(l) : [], E = c.current !== !1;
1251
+ Fe(s, l, {
1252
+ canEdit: E ? 2 : void 0,
1253
+ editableColumns: G,
1254
+ editableCanEdit: E && G.length ? 2 : void 0,
1255
+ highlightColumns: T
1256
+ }), $(s), (O = (h = n.current) == null ? void 0 : h.onRowDelete) == null || O.call(
1257
+ h,
1244
1258
  s,
1245
1259
  l,
1246
1260
  d
1247
1261
  );
1248
1262
  }), window.TGSetEvent("OnRowUndelete", e, (s, l) => {
1249
- var u, T;
1250
- O(s), D();
1251
- const d = I(l) ? q(l) : [];
1252
- ve(s, l, {
1253
- canEdit: c.current !== !1 ? 1 : void 0,
1254
- highlightColumns: d,
1255
- highlightBackgroundColor: d.length ? a.current : void 0
1256
- }), $(s), (T = (u = n.current) == null ? void 0 : u.onRowUndelete) == null || T.call(u, s, l);
1263
+ var E, h;
1264
+ x(s), D();
1265
+ const d = I(l), u = d ? q(l) : [], T = d ? _e(l) : [], G = c.current !== !1;
1266
+ Fe(s, l, {
1267
+ canEdit: G ? 1 : void 0,
1268
+ editableColumns: T,
1269
+ editableCanEdit: G && T.length ? 1 : void 0,
1270
+ highlightColumns: u,
1271
+ highlightBackgroundColor: u.length ? f.current : void 0
1272
+ }), $(s), (h = (E = n.current) == null ? void 0 : E.onRowUndelete) == null || h.call(E, s, l);
1257
1273
  }), window.TGSetEvent("OnGetDefaultColor", e, (s, l, d) => {
1258
- if (!(!r.current || !R(l)))
1259
- return un(
1274
+ if (!(!r.current || !A(l)))
1275
+ return an(
1260
1276
  s,
1261
1277
  l,
1262
1278
  d,
1263
- f.current
1279
+ a.current
1264
1280
  );
1265
- }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, E, p) => {
1266
- if (!p)
1267
- return pr({
1281
+ }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, G, E) => {
1282
+ if (!E)
1283
+ return Sr({
1268
1284
  grid: s,
1269
1285
  row: l,
1270
1286
  col: d,
1271
1287
  r: u,
1272
1288
  g: T,
1273
- b: E,
1289
+ b: G,
1274
1290
  focusedCellBackgroundColor: C.current,
1275
- selectedCellBackgroundColor: G.current,
1291
+ selectedCellBackgroundColor: p.current,
1276
1292
  hoverCellBackgroundColor: S.current,
1277
- changedCellBackgroundColor: a.current,
1278
- editableCellBackgroundColorValue: f.current
1293
+ changedCellBackgroundColor: f.current,
1294
+ editableCellBackgroundColorValue: a.current
1279
1295
  });
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) => {
1281
- var E, p;
1282
- if (D(), i.current && R(l)) {
1283
- const _ = !ar(s, l, d) || V(s, l, d) && !Te(s, l, d);
1284
- er({
1296
+ }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => Ar(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1297
+ var G, E;
1298
+ if (D(), i.current && A(l)) {
1299
+ const h = !Cr(s, l, d) || V(s, l, d) && !Te(s, l, d);
1300
+ tr({
1285
1301
  gridId: e,
1286
1302
  grid: s,
1287
1303
  row: l,
1288
1304
  col: d,
1289
- backgroundColor: a.current,
1290
- baselineMap: h.current,
1291
- highlightRefresh: _
1305
+ backgroundColor: f.current,
1306
+ baselineMap: R.current,
1307
+ highlightRefresh: h
1292
1308
  });
1293
1309
  }
1294
- const T = ((E = n.current) == null ? void 0 : E.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1310
+ const T = ((G = n.current) == null ? void 0 : G.onAfterValueChanged) ?? ((E = n.current) == null ? void 0 : E.onRowChange);
1295
1311
  T == null || T(s, l, d, u);
1296
1312
  });
1297
1313
  const Re = Y((s) => {
1298
1314
  var u, T;
1299
- const l = s.GetSelRows() ?? [], d = On(s, l, {
1300
- selectionScope: Tn.current
1315
+ const l = s.GetSelRows() ?? [], d = bn(s, l, {
1316
+ selectionScope: En.current
1301
1317
  });
1302
1318
  (T = (u = n.current) == null ? void 0 : u.onSelect) == null || T.call(
1303
1319
  u,
1304
- An(s, d)
1320
+ _n(s, d)
1305
1321
  );
1306
1322
  }, 100);
1307
1323
  window.TGSetEvent("OnSelect", e, (s, l, d, u, T) => {
1308
- var p;
1324
+ var E;
1309
1325
  if (T)
1310
1326
  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);
1327
+ const G = Zt(s);
1328
+ cr(s, l), Me(s, [l]), M(s, G), lr(s, l), ve(s, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && Re(s);
1313
1329
  }), window.TGSetEvent("OnSelectAll", e, (s, l, d, u) => {
1314
1330
  var T;
1315
- u || (cr(s), Rr(s), $e(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Re(s));
1316
- }), typeof (g == null ? void 0 : g.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
1331
+ u || (dr(s), gr(s), ve(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Re(s));
1332
+ }), typeof (_ == null ? void 0 : _.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
1317
1333
  var u, T;
1318
1334
  (T = (u = n.current) == null ? void 0 : u.onSave) == null || T.call(
1319
1335
  u,
@@ -1323,26 +1339,26 @@ ${e.slice(
1323
1339
  );
1324
1340
  }), window.TGSetEvent("OnSort", e, (s, l) => {
1325
1341
  var d;
1326
- if (!(!l || !Xt(
1342
+ if (!(!l || !Jt(
1327
1343
  s,
1328
1344
  s.ARow,
1329
1345
  l,
1330
1346
  z.current !== !1
1331
1347
  )))
1332
- return Je(e, "group header sort blocked"), Pn(e, "group header sort blocked", {
1348
+ return Ke(e, "group header sort blocked"), vn(e, "group header sort blocked", {
1333
1349
  rowId: (d = s.ARow) == null ? void 0 : d.id,
1334
1350
  col: l
1335
1351
  }), -1;
1336
1352
  }), window.TGSetEvent("OnSortFinish", e, (s) => {
1337
- O(s);
1353
+ x(s);
1338
1354
  }), window.TGSetEvent("OnFilterFinish", e, (s) => {
1339
- O(s);
1355
+ x(s);
1340
1356
  }), window.TGSetEvent("OnGroupFinish", e, (s) => {
1341
- O(s);
1357
+ x(s);
1342
1358
  }), window.TGSetEvent("OnSearchFinish", e, (s) => {
1343
- O(s);
1359
+ x(s);
1344
1360
  }), window.TGSetEvent("OnRenderStart", e, (s) => {
1345
- O(s), ie(s, e), Ue(
1361
+ x(s), ie(s, e), Ve(
1346
1362
  s,
1347
1363
  e,
1348
1364
  !1,
@@ -1352,24 +1368,24 @@ ${e.slice(
1352
1368
  ie(s, e);
1353
1369
  }), window.TGSetEvent("OnDataGet", e, (s, l, d) => {
1354
1370
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1355
- t.current = Ie(d);
1371
+ t.current = we(d);
1356
1372
  const u = re(
1357
1373
  d,
1358
1374
  Se.current,
1359
- pe.current,
1360
- Ge.current
1375
+ Ge.current,
1376
+ pe.current
1361
1377
  );
1362
1378
  return u === d ? null : u;
1363
1379
  }
1364
1380
  return null;
1365
1381
  }), window.TGSetEvent("OnDataParse", e, (s, l, d) => {
1366
1382
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1367
- t.current = Ie(d);
1383
+ t.current = we(d);
1368
1384
  const u = re(
1369
1385
  d,
1370
1386
  Se.current,
1371
- pe.current,
1372
- Ge.current
1387
+ Ge.current,
1388
+ pe.current
1373
1389
  );
1374
1390
  return u === d ? null : u;
1375
1391
  }
@@ -1380,15 +1396,15 @@ ${e.slice(
1380
1396
  Y((s) => {
1381
1397
  var l, d;
1382
1398
  if (!he.current) {
1383
- 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(
1399
+ const u = w.current;
1400
+ he.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && Nt(s, Nn), xn(s, u), m.current = s, Gn.current = u, pn.current = Ne(s), R.current = /* @__PURE__ */ new WeakMap(), qt(s, R.current), $(s), Sn(!0), Ve(
1385
1401
  s,
1386
1402
  e,
1387
1403
  !0,
1388
1404
  z.current !== !1
1389
- ), Ke(e, "TreeGrid init ready", L.current, {
1390
- bodyRowCount: Wt(
1391
- Be(s)
1405
+ ), je(e, "TreeGrid init ready", L.current, {
1406
+ bodyRowCount: Kt(
1407
+ Ne(s)
1392
1408
  )
1393
1409
  }), L.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, s);
1394
1410
  }
@@ -1396,14 +1412,14 @@ ${e.slice(
1396
1412
  );
1397
1413
  }, "bindTreeGridEvents");
1398
1414
  export {
1399
- Dr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1415
+ Pr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1400
1416
  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
1417
+ $r as buildTreeGridInitializationOptions,
1418
+ qt as captureTreeGridChangeBaselines,
1419
+ Kt as getTreeGridBodyDataCount,
1420
+ vr as hasTreeGridDisplayDataRows,
1421
+ we as hasTreeGridExplicitEnterMode,
1422
+ Br as replaceTreeGridBodyData,
1423
+ tr as syncTreeGridChangedCellHighlight
1408
1424
  };
1409
1425
  //# sourceMappingURL=treeGridRuntime.js.map