@owp/core 2.5.29 → 2.5.31

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 (51) 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/components/OwpTable/OwpDataTable.js +109 -104
  10. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +475 -427
  12. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +335 -288
  14. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  15. package/dist/constants/gridTheme.js +8 -7
  16. package/dist/constants/gridTheme.js.map +1 -1
  17. package/dist/constants/treeGrid.js +26 -25
  18. package/dist/constants/treeGrid.js.map +1 -1
  19. package/dist/constants.js +25 -24
  20. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +120 -114
  21. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  22. package/dist/features/themePreview/configs/grid.js +1 -0
  23. package/dist/features/themePreview/configs/grid.js.map +1 -1
  24. package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
  25. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  26. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  30. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  31. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  32. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  33. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  34. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  35. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  36. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  37. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  38. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  39. 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
  40. package/dist/owp-app.css +1 -1
  41. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +2 -1
  42. package/dist/types/constants/gridTheme.d.ts +2 -0
  43. package/dist/types/constants/treeGrid.d.ts +1 -0
  44. package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
  45. package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
  46. package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
  47. package/dist/types/utils/treeGridUtil.d.ts +42 -0
  48. package/dist/utils/treeGridUtil.js +282 -177
  49. package/dist/utils/treeGridUtil.js.map +1 -1
  50. package/dist/utils.js +31 -30
  51. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- var We = Object.defineProperty;
2
- var i = (e, n) => We(e, "name", { value: n, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as Ke, TREEGRID_CELL_CHANGED_CLASS as me } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as $, getTreeGridAddedRowHighlightColumns as se, getTreeGridCellComparableValue as xe, clearTreeGridCellHighlightById as je, highlightTreeGridCellById as ze, normalizeTreeGridExternalRows as Ye } from "../../../utils/treeGridUtil.js";
5
- import { applyTreeGridLayoutToGrid as Ze } from "./treeGridLayout.js";
6
- import { TREE_GRID_SELECTED_CHANGED_CELL_CLASS as ce, TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as qe, TREE_GRID_SELECT_ALL_CHECKED_CLASS as le, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as de, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as fe, TREE_GRID_THEME_WRAPPER_CLASS as Qe } from "./treeGridTheme.js";
7
- import { countTreeGridPerf as Ie, logTreeGridPerf as He, measureTreeGridPerf as Oe } from "./utils/perf.js";
1
+ var Ze = Object.defineProperty;
2
+ var i = (e, n) => Ze(e, "name", { value: n, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as qe, TREEGRID_CELL_CHANGED_CLASS as xe } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as P, getTreeGridAddedRowHighlightColumns as ce, getTreeGridCellComparableValue as Ie, clearTreeGridCellHighlightById as Qe, highlightTreeGridCellById as He, normalizeTreeGridExternalRows as en } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as nn } from "./treeGridLayout.js";
6
+ import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as tn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as le, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as de, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as ue, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as fe, TREE_GRID_THEME_WRAPPER_CLASS as rn, TREE_GRID_ERROR_CELL_CLASS as on } from "./treeGridTheme.js";
7
+ import { countTreeGridPerf as Oe, logTreeGridPerf as sn, measureTreeGridPerf as be } from "./utils/perf.js";
8
8
  import { debounce as V } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
9
- import { isEmpty as en } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
10
- import { get as nn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
- const Ft = 300, tn = 3, rn = {
9
+ import { isEmpty as cn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
10
+ import { get as ln } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
+ const jt = 300, dn = 3, un = {
12
12
  1: {
13
13
  onEnter: "TabDownEdit",
14
14
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -25,33 +25,37 @@ const Ft = 300, tn = 3, rn = {
25
25
  onEnter: "TabRightEditAdd",
26
26
  onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
27
27
  }
28
- }, on = [240, 240, 240], sn = [248, 248, 248], cn = [255, 255, 255], ln = [255, 255, 254], dn = [242, 242, 242], ue = "Button", Te = me.split(/\s+/).filter(
28
+ }, fn = [240, 240, 240], Tn = [248, 248, 248], an = [255, 255, 255], Cn = [255, 255, 254], En = [242, 242, 242], pn = [
29
+ [255, 210, 210],
30
+ [249, 209, 209],
31
+ [115, 16, 11]
32
+ ], Gn = "#D7FFD7", gn = "transparent", Te = "Button", ae = xe.split(/\s+/).filter(
29
33
  Boolean
30
- ), fn = /* @__PURE__ */ new Set([
34
+ ), Sn = /* @__PURE__ */ new Set([
31
35
  "Text",
32
36
  "Lines",
33
37
  "Int",
34
38
  "Float",
35
39
  "Date",
36
40
  "Pass"
37
- ]), ae = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), un = {
41
+ ]), Ce = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), hn = {
38
42
  Visible: "1",
39
43
  CanHide: "0",
40
44
  Delete: "1",
41
45
  Width: "33"
42
- }, Tn = {
46
+ }, An = {
43
47
  Spanned: "1"
44
- }, F = {
48
+ }, N = {
45
49
  OnClickCell: "Focus"
46
50
  }, k = {
47
51
  OnClickPanelSelectAll: "SelectAll OR DeselectAll"
48
- }, be = ["Formula", "FormulaFormula"], an = /<Grid\b[^>]*>/i, pn = /<\/Grid\s*>/i, En = /<Toolbar\b[^>]*\/?>/i, Cn = [
52
+ }, Pe = ["Formula", "FormulaFormula"], Rn = /<Grid\b[^>]*>/i, _n = /<\/Grid\s*>/i, Ln = /<Toolbar\b[^>]*\/?>/i, mn = [
49
53
  "Undo",
50
54
  "Deleting",
51
55
  "Selecting",
52
56
  "SelectingSingle",
53
57
  "SuppressCfg"
54
- ], Gn = {
58
+ ], xn = {
55
59
  addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
56
60
  deleteRow: [
57
61
  "Delete",
@@ -72,28 +76,28 @@ const Ft = 300, tn = 3, rn = {
72
76
  "UndeleteVisibleRowsChildren"
73
77
  ],
74
78
  selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
75
- }, S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), b = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), M = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), y = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), Z = /* @__PURE__ */ i((e, n) => !b(e) && !M(n), "isTreeGridCheckboxSelectionMode"), Pe = /* @__PURE__ */ i((e) => {
79
+ }, S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), y = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), M = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), D = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), q = /* @__PURE__ */ i((e, n) => !y(e) && !M(n), "isTreeGridCheckboxSelectionMode"), ye = /* @__PURE__ */ i((e) => {
76
80
  const n = e.Cfg;
77
81
  return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
78
82
  }, "getTreeGridJsonCfgRecords"), J = /* @__PURE__ */ i((e, n) => {
79
83
  let t;
80
- return Pe(e).forEach((r) => {
84
+ return ye(e).forEach((r) => {
81
85
  n in r && (t = r[n]);
82
86
  }), t;
83
- }, "getTreeGridJsonCfgValue"), we = /* @__PURE__ */ i((e, n) => {
87
+ }, "getTreeGridJsonCfgValue"), $e = /* @__PURE__ */ i((e, n) => {
84
88
  const t = new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
85
89
  e
86
90
  );
87
91
  return t == null ? void 0 : t[2];
88
- }, "getTreeGridXmlTagAttributeValue"), P = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), ye = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), D = /* @__PURE__ */ i((e, n, t) => {
92
+ }, "getTreeGridXmlTagAttributeValue"), $ = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), De = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), w = /* @__PURE__ */ i((e, n, t) => {
89
93
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
90
- return `${e.slice(0, r)} ${n}="${ye(
94
+ return `${e.slice(0, r)} ${n}="${De(
91
95
  t
92
96
  )}"${e.slice(r)}`;
93
- }, "appendTreeGridXmlTagAttribute"), W = /* @__PURE__ */ i((e, n, t) => P(e, n) ? e.replace(
97
+ }, "appendTreeGridXmlTagAttribute"), W = /* @__PURE__ */ i((e, n, t) => $(e, n) ? e.replace(
94
98
  new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
95
- () => `${n}="${ye(t)}"`
96
- ) : D(e, n, t), "setTreeGridXmlTagAttribute"), $e = /* @__PURE__ */ i((e, n) => {
99
+ () => `${n}="${De(t)}"`
100
+ ) : w(e, n, t), "setTreeGridXmlTagAttribute"), we = /* @__PURE__ */ i((e, n) => {
97
101
  let t = e;
98
102
  return Object.entries(n).forEach(([r, o]) => {
99
103
  t = W(t, r, o);
@@ -101,51 +105,51 @@ const Ft = 300, tn = 3, rn = {
101
105
  }, "setTreeGridXmlTagAttributes"), U = /* @__PURE__ */ i((e, n) => {
102
106
  let t = e;
103
107
  return Object.entries(n).forEach(([r, o]) => {
104
- P(t, r) || (t = D(t, r, o));
108
+ $(t, r) || (t = w(t, r, o));
105
109
  }), t;
106
110
  }, "appendMissingTreeGridXmlTagAttributes"), x = /* @__PURE__ */ i((e) => {
107
111
  var a;
108
112
  const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
109
113
  cfgValues: {}
110
114
  };
111
- let r, o = 0, d = !1;
115
+ let r, o = 0, l = !1;
112
116
  for (; r = n.exec(e); ) {
113
- const u = r[0], E = (a = r[1]) == null ? void 0 : a.toLowerCase();
114
- if (!E || u.startsWith("<!--") || u.startsWith("<?") || u.startsWith("<!"))
117
+ const f = r[0], E = (a = r[1]) == null ? void 0 : a.toLowerCase();
118
+ if (!E || f.startsWith("<!--") || f.startsWith("<?") || f.startsWith("<!"))
115
119
  continue;
116
- !t.hasFastPanel && P(u, "FastPanel") && (t.hasFastPanel = !0);
117
- const g = u.startsWith("</"), h = /\/>\s*$/.test(u);
118
- if (!d) {
119
- !g && E === "grid" && (d = !0, t.gridOpenTagEndIndex = r.index + u.length, o = h ? 0 : 1);
120
+ !t.hasFastPanel && $(f, "FastPanel") && (t.hasFastPanel = !0);
121
+ const G = f.startsWith("</"), h = /\/>\s*$/.test(f);
122
+ if (!l) {
123
+ !G && E === "grid" && (l = !0, t.gridOpenTagEndIndex = r.index + f.length, o = h ? 0 : 1);
120
124
  continue;
121
125
  }
122
- if (g) {
126
+ if (G) {
123
127
  if (o = Math.max(0, o - 1), E === "grid" && o === 0)
124
128
  break;
125
129
  continue;
126
130
  }
127
131
  o === 1 && (E === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
128
132
  index: r.index,
129
- tag: u
130
- }), Cn.forEach((A) => {
131
- const L = we(u, A);
133
+ tag: f
134
+ }), mn.forEach((A) => {
135
+ const L = $e(f, A);
132
136
  L !== void 0 && (t.cfgValues[A] = L);
133
- }), t.lastCfgEndIndex = r.index + u.length) : E === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
137
+ }), t.lastCfgEndIndex = r.index + f.length) : E === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
134
138
  index: r.index,
135
- tag: u
136
- } : E === "panel" && !t.defaultPanelTag && gn(u) ? t.defaultPanelTag = {
139
+ tag: f
140
+ } : E === "panel" && !t.defaultPanelTag && In(f) ? t.defaultPanelTag = {
137
141
  index: r.index,
138
- tag: u
142
+ tag: f
139
143
  } : E === "animations" && !t.animationsTag && (t.animationsTag = {
140
144
  index: r.index,
141
- tag: u
145
+ tag: f
142
146
  })), h || (o += 1);
143
147
  }
144
148
  return t;
145
- }, "scanTreeGridXmlDefaultLayout"), gn = /* @__PURE__ */ i((e) => {
146
- const n = we(e, "Name");
149
+ }, "scanTreeGridXmlDefaultLayout"), In = /* @__PURE__ */ i((e) => {
150
+ const n = $e(e, "Name");
147
151
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
148
- }, "isTreeGridXmlDefaultPanelTag"), Sn = /* @__PURE__ */ i((e) => {
152
+ }, "isTreeGridXmlDefaultPanelTag"), On = /* @__PURE__ */ i((e) => {
149
153
  const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
150
154
  let r;
151
155
  for (; r = n.exec(e); ) {
@@ -160,21 +164,21 @@ const Ft = 300, tn = 3, rn = {
160
164
  });
161
165
  }
162
166
  return t;
163
- }, "getLeadingTreeGridXmlHeaderTags"), hn = /* @__PURE__ */ i((e) => {
164
- const n = Sn(e);
167
+ }, "getLeadingTreeGridXmlHeaderTags"), bn = /* @__PURE__ */ i((e) => {
168
+ const n = On(e);
165
169
  if (n.length <= 1)
166
170
  return {
167
171
  headContent: e,
168
172
  isApplied: !1
169
173
  };
170
174
  const [t, ...r] = n;
171
- if (P(t.tag, "PanelRowSpan") || r.some(({ tag: d }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(d)))
175
+ if ($(t.tag, "PanelRowSpan") || r.some(({ tag: l }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(l)))
172
176
  return {
173
177
  headContent: e,
174
178
  isApplied: !1
175
179
  };
176
180
  let o = t.tag;
177
- return P(o, "Spanned") || (o = D(o, "Spanned", 1)), o = D(
181
+ return $(o, "Spanned") || (o = w(o, "Spanned", 1)), o = w(
178
182
  o,
179
183
  "PanelRowSpan",
180
184
  n.length
@@ -184,65 +188,65 @@ const Ft = 300, tn = 3, rn = {
184
188
  )}`,
185
189
  isApplied: !0
186
190
  };
187
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), An = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), Rn = /* @__PURE__ */ i((e) => !!e.defaultPanelTag || q(e.cfgValues) || Fe(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), _n = /* @__PURE__ */ i((e, n) => {
188
- if (n.gridOpenTagEndIndex === void 0 || !Rn(n))
191
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), Pn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), yn = /* @__PURE__ */ i((e) => !!e.defaultPanelTag || Q(e.cfgValues) || Ne(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), $n = /* @__PURE__ */ i((e, n) => {
192
+ if (n.gridOpenTagEndIndex === void 0 || !yn(n))
189
193
  return e;
190
194
  const t = n.defaultPanelTag;
191
195
  if (t) {
192
196
  const o = U(
193
197
  t.tag,
194
- Tn
198
+ An
195
199
  );
196
200
  return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
197
201
  t.index + t.tag.length
198
202
  )}`;
199
203
  }
200
- const r = An(n);
204
+ const r = Pn(n);
201
205
  return r === void 0 ? e : `${e.slice(0, r)}
202
206
  <Panel Spanned="1" />${e.slice(
203
207
  r
204
208
  )}`;
205
- }, "applyTreeGridXmlDefaultPanelSpannedLayout"), Ln = /* @__PURE__ */ i((e) => {
209
+ }, "applyTreeGridXmlDefaultPanelSpannedLayout"), Dn = /* @__PURE__ */ i((e) => {
206
210
  if (!/<Head\b/i.test(e) || /\bPanelRowSpan\s*[:=]/i.test(e))
207
211
  return e;
208
212
  let n = !1;
209
213
  const t = e.replace(
210
214
  /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
211
- (r, o, d, a) => {
212
- const u = hn(d);
213
- return u.isApplied ? (n = !0, `${o}${u.headContent}${a}`) : r;
215
+ (r, o, l, a) => {
216
+ const f = bn(l);
217
+ return f.isApplied ? (n = !0, `${o}${f.headContent}${a}`) : r;
214
218
  }
215
219
  );
216
- return n ? _n(
220
+ return n ? $n(
217
221
  t,
218
222
  x(t)
219
223
  ) : e;
220
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), De = /* @__PURE__ */ i((e) => Z(
224
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Fe = /* @__PURE__ */ i((e) => q(
221
225
  J(e, "Selecting"),
222
226
  J(e, "SelectingSingle")
223
- ), "isTreeGridJsonCheckboxSelectionLayout"), q = /* @__PURE__ */ i((e) => Z(
227
+ ), "isTreeGridJsonCheckboxSelectionLayout"), Q = /* @__PURE__ */ i((e) => q(
224
228
  e.Selecting,
225
229
  e.SelectingSingle
226
- ), "isTreeGridXmlCheckboxSelectionLayout"), mn = /* @__PURE__ */ i((e) => !b(e.Selecting), "isTreeGridXmlSelectingLayout"), Fe = /* @__PURE__ */ i((e) => y(e.Undo, "1") && y(e.Deleting, "2") && y(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), xn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), In = /* @__PURE__ */ i((e, n) => {
227
- if (n.gridOpenTagEndIndex === void 0 || !mn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
230
+ ), "isTreeGridXmlCheckboxSelectionLayout"), wn = /* @__PURE__ */ i((e) => !y(e.Selecting), "isTreeGridXmlSelectingLayout"), Ne = /* @__PURE__ */ i((e) => D(e.Undo, "1") && D(e.Deleting, "2") && D(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), Fn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Nn = /* @__PURE__ */ i((e, n) => {
231
+ if (n.gridOpenTagEndIndex === void 0 || !wn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
228
232
  return e;
229
233
  const t = n.defaultActionsTag;
230
234
  if (t) {
231
235
  const o = U(
232
236
  t.tag,
233
- F
237
+ N
234
238
  );
235
239
  return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
236
240
  t.index + t.tag.length
237
241
  )}`;
238
242
  }
239
- const r = xn(n);
243
+ const r = Fn(n);
240
244
  return r === void 0 ? e : `${e.slice(0, r)}
241
245
  <Actions OnClickCell="Focus" />${e.slice(
242
246
  r
243
247
  )}`;
244
- }, "applyTreeGridXmlDefaultCellClickActionLayout"), On = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), bn = /* @__PURE__ */ i((e, n) => {
245
- if (n.gridOpenTagEndIndex === void 0 || !q(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
248
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), kn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), Un = /* @__PURE__ */ i((e, n) => {
249
+ if (n.gridOpenTagEndIndex === void 0 || !Q(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
246
250
  return e;
247
251
  const t = n.defaultActionsTag;
248
252
  if (t) {
@@ -254,7 +258,7 @@ const Ft = 300, tn = 3, rn = {
254
258
  t.index + t.tag.length
255
259
  )}`;
256
260
  }
257
- const r = On(n);
261
+ const r = kn(n);
258
262
  return r === void 0 ? e : `${e.slice(
259
263
  0,
260
264
  r
@@ -262,33 +266,33 @@ const Ft = 300, tn = 3, rn = {
262
266
  <Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
263
267
  r
264
268
  )}`;
265
- }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Pn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), wn = /* @__PURE__ */ i((e, n) => {
266
- if (n.gridOpenTagEndIndex === void 0 || !Fe(n.cfgValues))
269
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), vn = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Bn = /* @__PURE__ */ i((e, n) => {
270
+ if (n.gridOpenTagEndIndex === void 0 || !Ne(n.cfgValues))
267
271
  return e;
268
272
  const t = n.defaultPanelTag;
269
273
  if (t) {
270
- const d = U(
274
+ const l = U(
271
275
  t.tag,
272
- un
276
+ hn
273
277
  );
274
- return d === t.tag ? e : `${e.slice(0, t.index)}${d}${e.slice(
278
+ return l === t.tag ? e : `${e.slice(0, t.index)}${l}${e.slice(
275
279
  t.index + t.tag.length
276
280
  )}`;
277
281
  }
278
- const r = Pn(n);
282
+ const r = vn(n);
279
283
  return r === void 0 ? e : `${e.slice(0, r)}
280
284
  <Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
281
285
  r
282
286
  )}`;
283
- }, "applyTreeGridXmlDefaultDeletePanelLayout"), yn = /* @__PURE__ */ i((e, n) => {
284
- if (n.hasFastPanel || !q(n.cfgValues))
287
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), Vn = /* @__PURE__ */ i((e, n) => {
288
+ if (n.hasFastPanel || !Q(n.cfgValues))
285
289
  return e;
286
290
  const t = n.gridOpenTagEndIndex;
287
291
  return t === void 0 ? e : `${e.slice(0, t)}
288
292
  <Cfg FastPanel="0" />${e.slice(
289
293
  t
290
294
  )}`;
291
- }, "applyTreeGridXmlDefaultFastPanelLayout"), $n = /* @__PURE__ */ i((e) => {
295
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), Xn = /* @__PURE__ */ i((e) => {
292
296
  const n = e.Cfg;
293
297
  if (Array.isArray(n)) {
294
298
  n.some((t) => S(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
@@ -299,7 +303,7 @@ const Ft = 300, tn = 3, rn = {
299
303
  return;
300
304
  }
301
305
  e.Cfg = { FastPanel: 0 };
302
- }, "applyTreeGridJsonFastPanelDefault"), Dn = /* @__PURE__ */ i((e) => {
306
+ }, "applyTreeGridJsonFastPanelDefault"), Mn = /* @__PURE__ */ i((e) => {
303
307
  const n = e.Actions;
304
308
  if (Array.isArray(n)) {
305
309
  n.some(
@@ -312,62 +316,62 @@ const Ft = 300, tn = 3, rn = {
312
316
  return;
313
317
  }
314
318
  n === void 0 && (e.Actions = { ...k });
315
- }, "applyTreeGridJsonSelectAllPanelActionDefault"), Fn = /* @__PURE__ */ i((e) => {
319
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), Jn = /* @__PURE__ */ i((e) => {
316
320
  const n = e.Actions;
317
321
  if (Array.isArray(n)) {
318
- n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...F }, ...n]);
322
+ n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...N }, ...n]);
319
323
  return;
320
324
  }
321
325
  if (S(n)) {
322
- "OnClickCell" in n || (n.OnClickCell = F.OnClickCell);
326
+ "OnClickCell" in n || (n.OnClickCell = N.OnClickCell);
323
327
  return;
324
328
  }
325
- n === void 0 && (e.Actions = { ...F });
326
- }, "applyTreeGridJsonCellClickActionDefault"), kn = /* @__PURE__ */ i((e) => {
329
+ n === void 0 && (e.Actions = { ...N });
330
+ }, "applyTreeGridJsonCellClickActionDefault"), Wn = /* @__PURE__ */ i((e) => {
327
331
  try {
328
332
  const n = JSON.parse(e);
329
- return !S(n) || b(J(n, "Selecting")) ? e : (Fn(n), JSON.stringify(n));
333
+ return !S(n) || y(J(n, "Selecting")) ? e : (Jn(n), JSON.stringify(n));
330
334
  } catch {
331
335
  return e;
332
336
  }
333
- }, "applyTreeGridJsonDefaultCellClickActionLayout"), pe = /* @__PURE__ */ i((e, n) => {
337
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), Ee = /* @__PURE__ */ i((e, n) => {
334
338
  const t = e.trim();
335
- return t ? t.startsWith("{") ? kn(e) : In(
339
+ return t ? t.startsWith("{") ? Wn(e) : Nn(
336
340
  e,
337
341
  n ?? x(e)
338
342
  ) : e;
339
- }, "applyTreeGridDefaultCellClickActionLayout"), Nn = /* @__PURE__ */ i((e) => {
343
+ }, "applyTreeGridDefaultCellClickActionLayout"), Kn = /* @__PURE__ */ i((e) => {
340
344
  try {
341
345
  const n = JSON.parse(e);
342
- return !S(n) || !De(n) ? e : (Dn(n), JSON.stringify(n));
346
+ return !S(n) || !Fe(n) ? e : (Mn(n), JSON.stringify(n));
343
347
  } catch {
344
348
  return e;
345
349
  }
346
- }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Ee = /* @__PURE__ */ i((e, n) => {
350
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), pe = /* @__PURE__ */ i((e, n) => {
347
351
  const t = e.trim();
348
- return t ? t.startsWith("{") ? Nn(e) : bn(
352
+ return t ? t.startsWith("{") ? Kn(e) : Un(
349
353
  e,
350
354
  n ?? x(e)
351
355
  ) : e;
352
- }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Un = /* @__PURE__ */ i((e, n) => {
356
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), jn = /* @__PURE__ */ i((e, n) => {
353
357
  if (n === void 0)
354
358
  return e;
355
359
  try {
356
360
  const t = JSON.parse(e);
357
361
  if (!S(t))
358
362
  return e;
359
- const r = Pe(t);
363
+ const r = ye(t);
360
364
  return r.some((o) => "SuppressCfg" in o) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
361
365
  } catch {
362
366
  return e;
363
367
  }
364
- }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Bn = /* @__PURE__ */ i((e, n, t) => {
368
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), zn = /* @__PURE__ */ i((e, n, t) => {
365
369
  if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
366
370
  return e;
367
371
  const r = n.defaultCfgTag;
368
372
  if (r) {
369
- const d = D(r.tag, "SuppressCfg", t);
370
- return `${e.slice(0, r.index)}${d}${e.slice(
373
+ const l = w(r.tag, "SuppressCfg", t);
374
+ return `${e.slice(0, r.index)}${l}${e.slice(
371
375
  r.index + r.tag.length
372
376
  )}`;
373
377
  }
@@ -376,46 +380,46 @@ const Ft = 300, tn = 3, rn = {
376
380
  <Cfg SuppressCfg="${t}" />${e.slice(
377
381
  o
378
382
  )}`;
379
- }, "applyTreeGridXmlDefaultSuppressCfgLayout"), vn = /* @__PURE__ */ i((e, n) => {
383
+ }, "applyTreeGridXmlDefaultSuppressCfgLayout"), Yn = /* @__PURE__ */ i((e, n) => {
380
384
  const t = e.trim();
381
- return n === void 0 || !t ? e : t.startsWith("{") ? Un(e, n) : Bn(
385
+ return n === void 0 || !t ? e : t.startsWith("{") ? jn(e, n) : zn(
382
386
  e,
383
387
  x(e),
384
388
  n
385
389
  );
386
- }, "applyTreeGridDefaultSuppressCfgLayout"), Vn = /* @__PURE__ */ i((e) => be.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Xn = /* @__PURE__ */ i((e) => {
390
+ }, "applyTreeGridDefaultSuppressCfgLayout"), Zn = /* @__PURE__ */ i((e) => Pe.some((n) => n in e), "hasTreeGridToolbarFormulaField"), qn = /* @__PURE__ */ i((e) => {
387
391
  const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], o = Array.isArray(t) ? t.filter(
388
- (d) => S(d) && y(d.Kind, "Toolbar")
389
- ) : S(t) && y(t.Kind, "Toolbar") ? [t] : [];
392
+ (l) => S(l) && D(l.Kind, "Toolbar")
393
+ ) : S(t) && D(t.Kind, "Toolbar") ? [t] : [];
390
394
  return [...r, ...o];
391
- }, "getTreeGridJsonToolbarRecords"), Mn = /* @__PURE__ */ i((e, n) => {
395
+ }, "getTreeGridJsonToolbarRecords"), Qn = /* @__PURE__ */ i((e, n) => {
392
396
  if (!n)
393
397
  return e;
394
398
  try {
395
399
  const t = JSON.parse(e);
396
400
  if (!S(t))
397
401
  return e;
398
- const r = Xn(t);
399
- return r.some(Vn) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
402
+ const r = qn(t);
403
+ return r.some(Zn) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
400
404
  } catch {
401
405
  return e;
402
406
  }
403
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Jn = /* @__PURE__ */ i((e) => be.some(
404
- (n) => P(e, n)
405
- ), "hasTreeGridXmlToolbarFormulaAttribute"), Wn = /* @__PURE__ */ i((e, n) => {
407
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Hn = /* @__PURE__ */ i((e) => Pe.some(
408
+ (n) => $(e, n)
409
+ ), "hasTreeGridXmlToolbarFormulaAttribute"), et = /* @__PURE__ */ i((e, n) => {
406
410
  if (!n)
407
411
  return e;
408
- const t = En.exec(e);
412
+ const t = Ln.exec(e);
409
413
  if (t) {
410
414
  const a = t[0];
411
- if (Jn(a))
415
+ if (Hn(a))
412
416
  return e;
413
- const u = W(
417
+ const f = W(
414
418
  a,
415
419
  "Formula",
416
420
  n
417
421
  );
418
- return `${e.slice(0, t.index)}${u}${e.slice(
422
+ return `${e.slice(0, t.index)}${f}${e.slice(
419
423
  t.index + a.length
420
424
  )}`;
421
425
  }
@@ -423,46 +427,46 @@ const Ft = 300, tn = 3, rn = {
423
427
  "<Toolbar />",
424
428
  "Formula",
425
429
  n
426
- ), o = pn.exec(e);
430
+ ), o = _n.exec(e);
427
431
  if (o)
428
432
  return `${e.slice(0, o.index)} ${r}
429
433
  ${e.slice(
430
434
  o.index
431
435
  )}`;
432
- const d = an.exec(e);
433
- return d ? `${e.slice(
436
+ const l = Rn.exec(e);
437
+ return l ? `${e.slice(
434
438
  0,
435
- d.index + d[0].length
439
+ l.index + l[0].length
436
440
  )}
437
- ${r}${e.slice(d.index + d[0].length)}` : e;
438
- }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), Kn = /* @__PURE__ */ i((e, n) => {
441
+ ${r}${e.slice(l.index + l[0].length)}` : e;
442
+ }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), nt = /* @__PURE__ */ i((e, n) => {
439
443
  const t = e.trim();
440
- return !n || !t ? e : t.startsWith("{") ? Mn(
444
+ return !n || !t ? e : t.startsWith("{") ? Qn(
441
445
  e,
442
446
  n
443
- ) : Wn(e, n);
444
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), jn = /* @__PURE__ */ i((e) => {
447
+ ) : et(e, n);
448
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), tt = /* @__PURE__ */ i((e) => {
445
449
  try {
446
450
  const n = JSON.parse(e);
447
- return !S(n) || !De(n) ? e : ($n(n), JSON.stringify(n));
451
+ return !S(n) || !Fe(n) ? e : (Xn(n), JSON.stringify(n));
448
452
  } catch {
449
453
  return e;
450
454
  }
451
- }, "applyTreeGridJsonDefaultFastPanelLayout"), Ce = /* @__PURE__ */ i((e, n) => {
455
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), Ge = /* @__PURE__ */ i((e, n) => {
452
456
  const t = e.trim();
453
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : jn(e) : yn(
457
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : tt(e) : Vn(
454
458
  e,
455
459
  n ?? x(e)
456
460
  ) : e;
457
- }, "applyTreeGridDefaultFastPanelLayout"), zn = /* @__PURE__ */ i((e) => {
461
+ }, "applyTreeGridDefaultFastPanelLayout"), rt = /* @__PURE__ */ i((e) => {
458
462
  const n = {};
459
463
  return e == null || e.forEach((t) => {
460
464
  var r;
461
- (r = Gn[t]) == null || r.forEach((o) => {
465
+ (r = xn[t]) == null || r.forEach((o) => {
462
466
  n[o] = "";
463
467
  });
464
468
  }), n;
465
- }, "getTreeGridDisabledAnimationAttributes"), Yn = /* @__PURE__ */ i((e, n) => {
469
+ }, "getTreeGridDisabledAnimationAttributes"), it = /* @__PURE__ */ i((e, n) => {
466
470
  try {
467
471
  const t = JSON.parse(e);
468
472
  if (!S(t))
@@ -481,89 +485,89 @@ ${e.slice(
481
485
  } catch {
482
486
  return e;
483
487
  }
484
- }, "applyTreeGridJsonDisabledAnimationsLayout"), Zn = /* @__PURE__ */ i((e) => $e("<Animations />", e), "createTreeGridDisabledAnimationsTag"), qn = /* @__PURE__ */ i((e, n) => {
488
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), ot = /* @__PURE__ */ i((e) => we("<Animations />", e), "createTreeGridDisabledAnimationsTag"), st = /* @__PURE__ */ i((e, n) => {
485
489
  const t = x(e);
486
490
  if (t.gridOpenTagEndIndex === void 0)
487
491
  return e;
488
492
  const r = t.animationsTag;
489
493
  if (r) {
490
- const d = $e(r.tag, n);
491
- return d === r.tag ? e : `${e.slice(0, r.index)}${d}${e.slice(
494
+ const l = we(r.tag, n);
495
+ return l === r.tag ? e : `${e.slice(0, r.index)}${l}${e.slice(
492
496
  r.index + r.tag.length
493
497
  )}`;
494
498
  }
495
499
  const o = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
496
500
  return `${e.slice(0, o)}
497
- ${Zn(
501
+ ${ot(
498
502
  n
499
503
  )}${e.slice(o)}`;
500
- }, "applyTreeGridXmlDisabledAnimationsLayout"), Ge = /* @__PURE__ */ i((e, n) => {
501
- const t = zn(n);
504
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), ge = /* @__PURE__ */ i((e, n) => {
505
+ const t = rt(n);
502
506
  if (!Object.keys(t).length)
503
507
  return e;
504
508
  const r = e.trim();
505
- return r ? r.startsWith("{") ? Yn(e, t) : qn(e, t) : e;
509
+ return r ? r.startsWith("{") ? it(e, t) : st(e, t) : e;
506
510
  }, "applyTreeGridDisabledAnimationsLayout"), K = /* @__PURE__ */ i((e, n, t, r) => {
507
- const o = Kn(
508
- Ln(
509
- vn(e, r)
511
+ const o = nt(
512
+ Dn(
513
+ Yn(e, r)
510
514
  ),
511
515
  t
512
- ), d = o.trim();
513
- if (!d || d.startsWith("{"))
514
- return Ge(
515
- Ce(
516
- pe(
517
- Ee(o)
516
+ ), l = o.trim();
517
+ if (!l || l.startsWith("{"))
518
+ return ge(
519
+ Ge(
520
+ Ee(
521
+ pe(o)
518
522
  )
519
523
  ),
520
524
  n
521
525
  );
522
- const a = x(o), u = Ee(
526
+ const a = x(o), f = pe(
523
527
  o,
524
528
  a
525
- ), E = u === o ? a : x(u), g = pe(
526
- u,
529
+ ), E = f === o ? a : x(f), G = Ee(
530
+ f,
527
531
  E
528
- ), h = g === u ? E : x(g);
529
- return Ge(
530
- wn(
531
- Ce(
532
- g,
532
+ ), h = G === f ? E : x(G);
533
+ return ge(
534
+ Bn(
535
+ Ge(
536
+ G,
533
537
  h
534
538
  ),
535
539
  h
536
540
  ),
537
541
  n
538
542
  );
539
- }, "applyTreeGridDefaultLayout"), Qn = /* @__PURE__ */ i((e) => {
543
+ }, "applyTreeGridDefaultLayout"), ct = /* @__PURE__ */ i((e) => {
540
544
  var n;
541
- return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Qe}`)) ?? null;
542
- }, "getTreeGridWrapperElement"), Hn = /* @__PURE__ */ i((e) => {
545
+ return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${rn}`)) ?? null;
546
+ }, "getTreeGridWrapperElement"), lt = /* @__PURE__ */ i((e) => {
543
547
  if (M(e.AllSelected))
544
548
  return "checked";
545
- if (b(e.AllSelected))
549
+ if (y(e.AllSelected))
546
550
  return "unchecked";
547
551
  let n = 0, t = 0;
548
552
  return Be(e).forEach((r) => {
549
- !_(r) || b(r.CanSelect) || (n += 1, M(e.IsSelected(r)) && (t += 1));
553
+ !R(r) || y(r.CanSelect) || (n += 1, M(e.IsSelected(r)) && (t += 1));
550
554
  }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
551
555
  }, "getTreeGridSelectAllState"), j = /* @__PURE__ */ i((e, n) => {
552
- const t = Qn(n), r = !b(e.Selecting), o = Z(
556
+ const t = ct(n), r = !y(e.Selecting), o = q(
553
557
  e.Selecting,
554
558
  e.SelectingSingle
555
- ), d = e.Header;
559
+ ), l = e.Header;
556
560
  if (t == null || t.classList.toggle(
557
- qe,
561
+ tn,
558
562
  o
559
563
  ), !o)
560
564
  t == null || t.classList.remove(
561
565
  le,
562
566
  de,
563
- fe
567
+ ue
564
568
  );
565
569
  else {
566
- const a = Hn(e);
570
+ const a = lt(e);
567
571
  t == null || t.classList.toggle(
568
572
  le,
569
573
  a === "checked"
@@ -571,12 +575,12 @@ ${e.slice(
571
575
  de,
572
576
  a === "indeterminate"
573
577
  ), t == null || t.classList.toggle(
574
- fe,
578
+ ue,
575
579
  a === "unchecked"
576
580
  );
577
581
  }
578
- d && r && (d.CanSelect = o ? 1 : 0);
579
- }, "syncTreeGridSelectionPanelState"), X = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ i((e, n) => {
582
+ l && r && (l.CanSelect = o ? 1 : 0);
583
+ }, "syncTreeGridSelectionPanelState"), X = /* @__PURE__ */ new Map(), Se = /* @__PURE__ */ i((e, n) => {
580
584
  if (typeof window > "u")
581
585
  return;
582
586
  const t = X.get(n);
@@ -585,37 +589,37 @@ ${e.slice(
585
589
  X.delete(n), j(e, n);
586
590
  }, 0);
587
591
  X.set(n, r);
588
- }, "scheduleTreeGridSelectionPanelStateSync"), et = /* @__PURE__ */ i((e, n) => {
592
+ }, "scheduleTreeGridSelectionPanelStateSync"), dt = /* @__PURE__ */ i((e, n) => {
589
593
  e.EnterMode = n;
590
- const t = rn[n];
594
+ const t = un[n];
591
595
  if (!t)
592
596
  return;
593
597
  const r = e;
594
598
  r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = t.onEnter, r.Actions.OnEnterEdit = t.onEnterEdit;
595
- }, "applyTreeGridDefaultEnterMode"), ke = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Se = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ i((e) => {
599
+ }, "applyTreeGridDefaultEnterMode"), ke = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), he = /* @__PURE__ */ new Map(), ut = /* @__PURE__ */ i((e) => {
596
600
  if (!e || !e.startsWith("data:"))
597
601
  return e;
598
- const n = Se.get(e);
602
+ const n = he.get(e);
599
603
  if (n)
600
604
  return n;
601
605
  try {
602
- const [t, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(t), d = (o == null ? void 0 : o[1]) || "application/octet-stream", a = o != null && o[2] ? atob(r) : decodeURIComponent(r), u = new Uint8Array(a.length);
603
- for (let g = 0; g < a.length; g += 1)
604
- u[g] = a.charCodeAt(g);
605
- const E = URL.createObjectURL(new Blob([u], { type: d }));
606
- return Se.set(e, E), E;
606
+ const [t, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(t), l = (o == null ? void 0 : o[1]) || "application/octet-stream", a = o != null && o[2] ? atob(r) : decodeURIComponent(r), f = new Uint8Array(a.length);
607
+ for (let G = 0; G < a.length; G += 1)
608
+ f[G] = a.charCodeAt(G);
609
+ const E = URL.createObjectURL(new Blob([f], { type: l }));
610
+ return he.set(e, E), E;
607
611
  } catch {
608
612
  return e;
609
613
  }
610
614
  }, "resolveTreeGridInlineUrl"), z = /* @__PURE__ */ i((e) => {
611
615
  if (!e || ke(e))
612
- return nt(e);
616
+ return ut(e);
613
617
  const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], o = t.includes("?") ? "&" : "?";
614
618
  return `${t}${o}noCache=${Date.now()}${r}`;
615
- }, "appendNoCacheQuery"), he = /* @__PURE__ */ i((e, n, t) => {
619
+ }, "appendNoCacheQuery"), Ae = /* @__PURE__ */ i((e, n, t) => {
616
620
  if (!e)
617
621
  return;
618
- const r = t.canEdit, o = t.highlightColumns ?? [], d = t.highlightBackgroundColor;
622
+ const r = t.canEdit, o = t.highlightColumns ?? [], l = t.highlightBackgroundColor;
619
623
  if (!(r === void 0 && !o.length)) {
620
624
  typeof e.StartUpdate == "function" && e.StartUpdate();
621
625
  try {
@@ -623,16 +627,16 @@ ${e.slice(
623
627
  a && (e.SetValue(
624
628
  n,
625
629
  `${a}Class`,
626
- d ? me : "",
630
+ l ? xe : "",
627
631
  0
628
- ), e.SetValue(n, `${a}Color`, d ?? "", 0));
632
+ ), e.SetValue(n, `${a}Color`, l ?? "", 0));
629
633
  });
630
634
  } finally {
631
635
  typeof e.EndUpdate == "function" && e.EndUpdate();
632
636
  }
633
637
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
634
638
  }
635
- }, "syncTreeGridDeletedRowState"), tt = /* @__PURE__ */ i((e) => e ? ke(e) || e.includes("assets") ? z(e) : z(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), rt = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), it = /* @__PURE__ */ i((e, n, t, r) => {
639
+ }, "syncTreeGridDeletedRowState"), ft = /* @__PURE__ */ i((e) => e ? ke(e) || e.includes("assets") ? z(e) : z(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Tt = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), at = /* @__PURE__ */ i((e, n, t, r) => {
636
640
  if (!(!e || t === "cancel")) {
637
641
  if (t === "remove") {
638
642
  e.RemoveRow(n), r(e);
@@ -640,17 +644,17 @@ ${e.slice(
640
644
  }
641
645
  e.DeleteRowT(n, 3);
642
646
  }
643
- }, "applyTreeGridBeforeRowUndeleteAction"), ot = /* @__PURE__ */ i((e, n, t) => e ? { Url: tt(n) } : { Data: { Body: [en(t) ? [] : t] } }, "buildTreeGridDataSource"), kt = /* @__PURE__ */ i(({
647
+ }, "applyTreeGridBeforeRowUndeleteAction"), Ct = /* @__PURE__ */ i((e, n, t) => e ? { Url: ft(n) } : { Data: { Body: [cn(t) ? [] : t] } }, "buildTreeGridDataSource"), zt = /* @__PURE__ */ i(({
644
648
  id: e,
645
649
  layoutUrl: n,
646
650
  layoutData: t,
647
651
  toolbarTotalCountFormula: r,
648
652
  suppressCfg: o,
649
- disabledAnimations: d,
653
+ disabledAnimations: l,
650
654
  dataUrl: a,
651
- bodyData: u,
655
+ bodyData: f,
652
656
  useDataUrl: E,
653
- width: g,
657
+ width: G,
654
658
  height: h,
655
659
  languageId: A
656
660
  }) => ({
@@ -658,19 +662,19 @@ ${e.slice(
658
662
  Layout: t ? {
659
663
  Data: K(
660
664
  t,
661
- d,
665
+ l,
662
666
  r,
663
667
  o
664
668
  )
665
669
  } : { Url: z(n ?? "") },
666
- Data: ot(E, a, u),
670
+ Data: Ct(E, a, f),
667
671
  Text: {
668
- Url: Ke(A)
672
+ Url: qe(A)
669
673
  },
670
- width: g,
674
+ width: G,
671
675
  height: h,
672
676
  Debug: "Error"
673
- }), "buildTreeGridInitializationOptions"), Ae = /* @__PURE__ */ i((e) => nn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Re = /* @__PURE__ */ i((e) => {
677
+ }), "buildTreeGridInitializationOptions"), Re = /* @__PURE__ */ i((e) => ln(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), _e = /* @__PURE__ */ i((e) => {
674
678
  if (typeof e == "number")
675
679
  return Number.isFinite(e) && e > 0 ? e : void 0;
676
680
  if (typeof e != "string")
@@ -683,79 +687,79 @@ ${e.slice(
683
687
  }, "parseTreeGridPositiveNumber"), Y = /* @__PURE__ */ i((e, n, t, r) => {
684
688
  if (!n || !t)
685
689
  return;
686
- const o = e.GetAttribute(n, t, r), d = Re(o);
687
- return d !== void 0 ? d : Re(
690
+ const o = e.GetAttribute(n, t, r), l = _e(o);
691
+ return l !== void 0 ? l : _e(
688
692
  n[`${t}${r}`]
689
693
  );
690
- }, "getTreeGridHeaderCellSpanAttribute"), st = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (Y(e, n, t, "Span") ?? 1) <= 1 ? !1 : (Y(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), _e = /* @__PURE__ */ i((e, n, t) => {
694
+ }, "getTreeGridHeaderCellSpanAttribute"), Et = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (Y(e, n, t, "Span") ?? 1) <= 1 ? !1 : (Y(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Le = /* @__PURE__ */ i((e, n, t) => {
691
695
  const r = e.get(n);
692
696
  if (r) {
693
697
  r.add(t);
694
698
  return;
695
699
  }
696
700
  e.set(n, /* @__PURE__ */ new Set([t]));
697
- }, "addTreeGridHeaderButtonAttributeTarget"), Ne = /* @__PURE__ */ i((e, n, t, r) => {
701
+ }, "addTreeGridHeaderButtonAttributeTarget"), Ue = /* @__PURE__ */ i((e, n, t, r) => {
698
702
  const o = /* @__PURE__ */ new Map();
699
- return n.forEach((d, a) => {
700
- t.forEach((u, E) => {
701
- if (!st(e, d, u) || (_e(o, d, u), !r))
703
+ return n.forEach((l, a) => {
704
+ t.forEach((f, E) => {
705
+ if (!Et(e, l, f) || (Le(o, l, f), !r))
702
706
  return;
703
- const g = Math.floor(Y(e, d, u, "Span") ?? 1), h = Math.min(t.length, E + g);
707
+ const G = Math.floor(Y(e, l, f, "Span") ?? 1), h = Math.min(t.length, E + G);
704
708
  for (let A = a + 1; A < n.length; A += 1) {
705
709
  const L = n[A];
706
710
  for (let I = E; I < h; I += 1)
707
- _e(o, L, t[I]);
711
+ Le(o, L, t[I]);
708
712
  }
709
713
  });
710
714
  }), o;
711
- }, "getTreeGridGroupHeaderSortButtonTargets"), ct = /* @__PURE__ */ i((e, n, t, r) => {
715
+ }, "getTreeGridGroupHeaderSortButtonTargets"), pt = /* @__PURE__ */ i((e, n, t, r) => {
712
716
  var a;
713
717
  if (!n || !t || n.Fixed !== "Head")
714
718
  return !1;
715
- const o = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((u) => u.Fixed === "Head") : [], d = typeof e.GetCols == "function" ? e.GetCols() : [];
716
- return !o.length || !d.length ? !1 : ((a = Ne(
719
+ const o = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((f) => f.Fixed === "Head") : [], l = typeof e.GetCols == "function" ? e.GetCols() : [];
720
+ return !o.length || !l.length ? !1 : ((a = Ue(
717
721
  e,
718
722
  o,
719
- d,
723
+ l,
720
724
  r
721
725
  ).get(n)) == null ? void 0 : a.has(t)) === !0;
722
- }, "isTreeGridGroupHeaderSortButtonTarget"), Le = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
723
- const o = typeof performance < "u" ? performance.now() : Date.now(), d = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((h) => h.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
724
- if (!d.length || !a.length)
726
+ }, "isTreeGridGroupHeaderSortButtonTarget"), me = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
727
+ const o = typeof performance < "u" ? performance.now() : Date.now(), l = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((h) => h.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
728
+ if (!l.length || !a.length)
725
729
  return;
726
- const u = /* @__PURE__ */ new Set();
730
+ const f = /* @__PURE__ */ new Set();
727
731
  let E = 0;
728
- const g = Ne(
732
+ const G = Ue(
729
733
  e,
730
- d,
734
+ l,
731
735
  a,
732
736
  r
733
737
  );
734
- if (g.size) {
738
+ if (G.size) {
735
739
  typeof e.StartUpdate == "function" && e.StartUpdate();
736
740
  try {
737
- g.forEach((h, A) => {
741
+ G.forEach((h, A) => {
738
742
  h.forEach((L) => {
739
- e.GetAttribute(A, L, ue) !== "" && (e.SetAttribute(A, L, ue, "", 0, 0), u.add(A), E += 1);
743
+ e.GetAttribute(A, L, Te) !== "" && (e.SetAttribute(A, L, Te, "", 0, 0), f.add(A), E += 1);
740
744
  });
741
745
  });
742
746
  } finally {
743
747
  typeof e.EndUpdate == "function" && e.EndUpdate();
744
748
  }
745
- u.size && (t && u.forEach((h) => {
749
+ f.size && (t && f.forEach((h) => {
746
750
  typeof e.RefreshRow == "function" && e.RefreshRow(h);
747
- }), Ie(n, "group header button attribute apply"), Oe(n, "group header button attribute apply", o, {
751
+ }), Oe(n, "group header button attribute apply"), be(n, "group header button attribute apply", o, {
748
752
  updatedCellCount: E,
749
- updatedRowCount: u.size
753
+ updatedRowCount: f.size
750
754
  }));
751
755
  }
752
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), lt = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), dt = /* @__PURE__ */ i((e) => {
756
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), Gt = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), gt = /* @__PURE__ */ i((e) => {
753
757
  const n = e == null ? void 0 : e.Visible;
754
758
  return !!e && n !== 0 && n !== !1 && n !== "0";
755
- }, "isVisibleTreeGridRow"), B = /* @__PURE__ */ i((e) => {
759
+ }, "isVisibleTreeGridRow"), F = /* @__PURE__ */ i((e) => {
756
760
  const n = e == null ? void 0 : e.Added;
757
761
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
758
- }, "isAddedTreeGridRow"), _ = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !dt(e) ? !1 : e.Kind === "Data" || B(e), "isDisplayTreeGridRow"), Ue = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Be = /* @__PURE__ */ i((e) => {
762
+ }, "isAddedTreeGridRow"), R = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !gt(e) ? !1 : e.Kind === "Data" || F(e), "isDisplayTreeGridRow"), ve = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Be = /* @__PURE__ */ i((e) => {
759
763
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
760
764
  const n = [];
761
765
  let t = e.GetFirst();
@@ -764,112 +768,157 @@ ${e.slice(
764
768
  return n;
765
769
  }
766
770
  return Object.values(e.Rows ?? {});
767
- }, "getTreeGridRows"), ft = /* @__PURE__ */ i((e, n) => {
771
+ }, "getTreeGridRows"), St = /* @__PURE__ */ i((e, n) => {
768
772
  if (!e)
769
773
  return;
770
- const t = Ue(e);
774
+ const t = ve(e);
771
775
  Be(e).forEach((r) => {
772
- _(r) && n.set(
776
+ R(r) && n.set(
773
777
  r,
774
- new Map(t.map((o) => [o, xe(e, r, o)]))
778
+ new Map(t.map((o) => [o, Ie(e, r, o)]))
775
779
  );
776
780
  });
777
- }, "captureTreeGridChangeBaselines"), ut = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Tt = /* @__PURE__ */ i((e, n, t) => {
781
+ }, "captureTreeGridChangeBaselines"), Z = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), ht = /* @__PURE__ */ i((e, n, t) => {
778
782
  const r = n;
779
- return Ue(e).some((o) => o !== t && ut(r[`${o}Changed`]));
780
- }, "hasOtherTreeGridChangedCells"), at = /* @__PURE__ */ i((e, n, t) => {
783
+ return ve(e).some((o) => o !== t && Z(r[`${o}Changed`]));
784
+ }, "hasOtherTreeGridChangedCells"), At = /* @__PURE__ */ i((e, n, t) => {
781
785
  const r = n;
782
- r[`${t}Changed`] = 0, !B(n) && !$(n) && !Tt(e, n, t) && (r.Changed = 0);
783
- }, "clearTreeGridCellChangedState"), pt = /* @__PURE__ */ i((e, n, t) => {
786
+ r[`${t}Changed`] = 0, !F(n) && !P(n) && !ht(e, n, t) && (r.Changed = 0);
787
+ }, "clearTreeGridCellChangedState"), Rt = /* @__PURE__ */ i((e, n, t) => {
784
788
  const r = e.get(n);
785
789
  if (r != null && r.has(t))
786
790
  return r.get(t);
787
- }, "resolveTreeGridCellBaselineValue"), Et = /* @__PURE__ */ i(({
791
+ }, "resolveTreeGridCellBaselineValue"), _t = /* @__PURE__ */ i(({
788
792
  gridId: e,
789
793
  grid: n,
790
794
  row: t,
791
795
  col: r,
792
796
  backgroundColor: o,
793
- baselineMap: d,
797
+ baselineMap: l,
794
798
  highlightRefresh: a
795
799
  }) => {
796
- if (!_(t) || B(t) || $(t))
800
+ if (!R(t) || F(t) || P(t))
797
801
  return;
798
- const u = pt(d, t, r), E = xe(n, t, r);
799
- if (u !== void 0 && E === u) {
800
- je(e, { row: t, col: r }), at(n, t, r);
802
+ const f = Rt(l, t, r), E = Ie(n, t, r);
803
+ if (f !== void 0 && E === f) {
804
+ Qe(e, { row: t, col: r }), At(n, t, r);
801
805
  return;
802
806
  }
803
- ze(e, {
807
+ He(e, {
804
808
  row: t,
805
809
  col: r,
806
810
  backgroundColor: o,
807
811
  refresh: a
808
812
  });
809
- }, "syncTreeGridChangedCellHighlight"), Ct = /* @__PURE__ */ i((e, n, t) => !n || !t || !_(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), Gt = /* @__PURE__ */ i((e, n, t) => {
813
+ }, "syncTreeGridChangedCellHighlight"), Lt = /* @__PURE__ */ i((e, n, t) => !n || !t || !R(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), Ve = /* @__PURE__ */ i((e, n, t) => {
810
814
  const r = e.GetAttribute(n, t, "Color");
811
- return r != null && r !== "";
812
- }, "hasExplicitTreeGridCellColor"), Q = /* @__PURE__ */ i((e, n, t) => {
813
- if (!n || !t || !_(n))
815
+ if (typeof r == "number")
816
+ return Je(r);
817
+ if (typeof r == "string")
818
+ return r.trim() || void 0;
819
+ }, "getExplicitTreeGridCellColor"), mt = /* @__PURE__ */ i((e, n, t) => Ve(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), H = /* @__PURE__ */ i((e, n, t) => {
820
+ if (!n || !t || !R(n))
814
821
  return !1;
815
822
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
816
823
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
817
- }, "isTreeGridFocusedCellState"), N = /* @__PURE__ */ i((e, n, t) => {
818
- if (!n || !t || !_(n))
824
+ }, "isTreeGridFocusedCellState"), v = /* @__PURE__ */ i((e, n, t) => {
825
+ if (!n || !t || !R(n))
819
826
  return !1;
820
827
  const r = e.IsSelected(n, t);
821
828
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
822
- }, "isTreeGridSelectedCellState"), ve = /* @__PURE__ */ i((e) => {
823
- if (!Te.length)
829
+ }, "isTreeGridSelectedCellState"), Xe = /* @__PURE__ */ i((e) => {
830
+ if (!ae.length)
824
831
  return !1;
825
832
  const n = e.split(/\s+/).filter(Boolean);
826
- return Te.every(
833
+ return ae.every(
827
834
  (t) => n.includes(t)
828
835
  );
829
- }, "hasTreeGridChangedCellDisplayClass"), gt = /* @__PURE__ */ i((e) => {
830
- if (!(!e || e.split(/\s+/).includes(ce) || !ve(e)))
831
- return `${e} ${ce}`;
832
- }, "appendTreeGridSelectedChangedCellDisplayClass"), St = /* @__PURE__ */ i((e) => !e || !_(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && ve(t)), "hasTreeGridChangedCellDisplayClassInRow"), ht = /* @__PURE__ */ i((e, n) => {
833
- if (!n || !St(n) || typeof e.RefreshRow != "function")
836
+ }, "hasTreeGridChangedCellDisplayClass"), xt = /* @__PURE__ */ i((e) => {
837
+ if (!(!e || e.split(/\s+/).includes(fe) || !Xe(e)))
838
+ return `${e} ${fe}`;
839
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), It = /* @__PURE__ */ i((e) => !e || !R(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Xe(t)), "hasTreeGridChangedCellDisplayClassInRow"), Ot = /* @__PURE__ */ i((e, n) => {
840
+ if (!n || !It(n) || typeof e.RefreshRow != "function")
834
841
  return;
835
842
  const t = n;
836
843
  window.setTimeout(() => {
837
844
  e.RefreshRow(t);
838
845
  }, 0);
839
- }, "scheduleTreeGridSelectionChangedClassRefresh"), At = /* @__PURE__ */ i((e, n, t, r) => {
840
- if (!(!n || r === void 0 || !Ct(e, n, t) || B(n) || $(n) || Q(e, n, t) || N(e, n, t) || Gt(e, n, t)))
846
+ }, "scheduleTreeGridSelectionChangedClassRefresh"), Me = /* @__PURE__ */ i((e, n, t, r) => {
847
+ if (!(!n || r === void 0 || !Lt(e, n, t) || F(n) || P(n) || H(e, n, t) || v(e, n, t) || mt(e, n, t)))
841
848
  return r;
842
- }, "getEditableTreeGridCellDefaultColor"), w = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Rt = /* @__PURE__ */ i((e, n, t) => fn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), _t = /* @__PURE__ */ i((e, n, t) => !n || !t || !_(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Lt = /* @__PURE__ */ i((e, n, t) => !n || !t || !_(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), mt = /* @__PURE__ */ i(({
849
+ }, "getEditableTreeGridCellDefaultColor"), b = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), bt = /* @__PURE__ */ i((e, n, t) => pn.some(
850
+ (r) => b(e, n, t, r)
851
+ ), "isTreeGridNativeErrorBackgroundColor"), Je = /* @__PURE__ */ i((e) => {
852
+ if (!(e === void 0 || !Number.isFinite(e)))
853
+ return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
854
+ }, "toTreeGridCssHexColor"), We = /* @__PURE__ */ i((e, n, t) => {
855
+ if (!n || !t || !R(n))
856
+ return !1;
857
+ const r = e.GetAttribute(n, t, "Error");
858
+ return r != null && r !== "";
859
+ }, "hasTreeGridCellError"), Pt = /* @__PURE__ */ i((e, n) => {
860
+ if (!e || !n || !R(e))
861
+ return !1;
862
+ const t = e;
863
+ return Z(t[`${n}Changed`]) || Z(t.Changed);
864
+ }, "isChangedTreeGridRowOrCell"), yt = /* @__PURE__ */ i((e, n, t) => Sn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), $t = /* @__PURE__ */ i((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Dt = /* @__PURE__ */ i((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), wt = /* @__PURE__ */ i(({
843
865
  grid: e,
844
866
  row: n,
845
867
  col: t,
846
868
  r,
847
869
  g: o,
848
- b: d,
870
+ b: l,
849
871
  focusedCellBackgroundColor: a,
850
- selectedCellBackgroundColor: u,
851
- hoverCellBackgroundColor: E
872
+ selectedCellBackgroundColor: f,
873
+ hoverCellBackgroundColor: E,
874
+ changedCellBackgroundColor: G,
875
+ editableCellBackgroundColorValue: h
852
876
  }) => {
853
- if (Q(e, n, t))
877
+ if (H(e, n, t))
854
878
  return a;
855
- if (N(e, n, t))
856
- return u;
857
- if (_t(e, n, t) && (w(r, o, d, on) || w(r, o, d, sn)) || Lt(e, n, t) && (w(r, o, d, cn) || w(r, o, d, ln) || w(r, o, d, dn)))
879
+ if (v(e, n, t))
880
+ return f;
881
+ if ($t(e, n, t) && (b(r, o, l, fn) || b(r, o, l, Tn)) || Dt(e, n, t) && (b(r, o, l, an) || b(r, o, l, Cn) || b(r, o, l, En)))
858
882
  return E;
859
- }, "resolveTreeGridStateBackgroundColor"), Nt = /* @__PURE__ */ i((e) => {
883
+ if (!We(e, n, t) || !bt(r, o, l))
884
+ return;
885
+ const A = Ve(e, n, t);
886
+ if (A)
887
+ return A;
888
+ if (F(n) || P(n))
889
+ return Gn;
890
+ if (Pt(n, t))
891
+ return G;
892
+ const L = Me(
893
+ e,
894
+ n,
895
+ t,
896
+ h
897
+ );
898
+ return Je(L) ?? gn;
899
+ }, "resolveTreeGridStateBackgroundColor"), Ft = /* @__PURE__ */ i((e, n) => {
900
+ const t = e.split(/\s+/).filter(Boolean);
901
+ return t.includes(n) ? e : [...t, n].join(" ");
902
+ }, "appendTreeGridClassToken"), Nt = /* @__PURE__ */ i((e, n, t, r) => !We(e, n, t) || !n ? r : Ft(r, on), "appendTreeGridErrorCellDisplayClass"), kt = /* @__PURE__ */ i((e, n, t, r) => {
903
+ const o = Nt(e, n, t, r);
904
+ if (!v(e, n, t))
905
+ return o === r ? void 0 : o;
906
+ const l = xt(o) ?? o;
907
+ return l === r ? void 0 : l;
908
+ }, "resolveTreeGridCellDisplayClass"), Yt = /* @__PURE__ */ i((e) => {
860
909
  if (!e)
861
910
  return !1;
862
911
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
863
912
  let n = e.GetFirst();
864
913
  for (; n; ) {
865
- if (_(n))
914
+ if (R(n))
866
915
  return !0;
867
916
  n = e.GetNext(n);
868
917
  }
869
918
  return !1;
870
919
  }
871
- return Object.values(e.Rows ?? {}).some((n) => _(n));
872
- }, "hasTreeGridDisplayDataRows"), Ut = /* @__PURE__ */ i((e, n, t) => {
920
+ return Object.values(e.Rows ?? {}).some((n) => R(n));
921
+ }, "hasTreeGridDisplayDataRows"), Zt = /* @__PURE__ */ i((e, n, t) => {
873
922
  var o;
874
923
  const r = (o = e.Data) == null ? void 0 : o.Data;
875
924
  e.Data.Data = {
@@ -877,300 +926,299 @@ ${e.slice(
877
926
  Data: { Body: [n || []] },
878
927
  Url: ""
879
928
  }, e.ReloadBody(t);
880
- }, "replaceTreeGridBodyData"), Bt = /* @__PURE__ */ i(({
929
+ }, "replaceTreeGridBodyData"), qt = /* @__PURE__ */ i(({
881
930
  id: e,
882
931
  latestEventHandlersRef: n,
883
932
  layoutHasExplicitEnterModeRef: t,
884
933
  highlightEditableCellsRef: r,
885
934
  highlightChangedCellsRef: o,
886
- syncDeletedRowCanEditRef: d,
935
+ syncDeletedRowCanEditRef: l,
887
936
  editableCellBackgroundColorValueRef: a,
888
- changedCellBackgroundColorRef: u,
937
+ changedCellBackgroundColorRef: f,
889
938
  focusedCellBackgroundColorRef: E,
890
- selectedCellBackgroundColorRef: g,
939
+ selectedCellBackgroundColorRef: G,
891
940
  hoverCellBackgroundColorRef: h,
892
941
  changedCellBaselineRef: A,
893
942
  treeGridInstanceRef: L,
894
943
  treeGridInitStartedAtRef: I,
895
- latestLayoutOverridesRef: Ve,
896
- latestToolbarTotalCountFormulaRef: H,
897
- latestSuppressCfgRef: ee,
898
- latestHideChildHeaderSortButtonsRef: v,
899
- latestDisabledAnimationsRef: ne,
900
- appliedLayoutOverridesRef: Xe,
901
- appliedBodyDataPropRef: Me,
902
- hasAppliedInitialLayoutRef: te,
944
+ latestLayoutOverridesRef: Ke,
945
+ latestToolbarTotalCountFormulaRef: ee,
946
+ latestSuppressCfgRef: ne,
947
+ latestHideChildHeaderSortButtonsRef: B,
948
+ latestDisabledAnimationsRef: te,
949
+ appliedLayoutOverridesRef: je,
950
+ appliedBodyDataPropRef: ze,
951
+ hasAppliedInitialLayoutRef: re,
903
952
  syncHasDisplayDataRows: O,
904
- setIsTreeGridReady: Je
953
+ setIsTreeGridReady: Ye
905
954
  }) => {
906
- const G = n.current;
955
+ const g = n.current;
907
956
  if (window.TGSetEvent("OnRowAdd", e, (s, c) => {
908
- var l, f;
909
- c.CanEdit = 1, c.CanDelete = 1, (f = (l = n.current) == null ? void 0 : l.onRowAdd) == null || f.call(l, s, c);
957
+ var d, u;
958
+ c.CanEdit = 1, c.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, s, c);
910
959
  }), window.TGSetEvent("OnRowAdded", e, (s) => {
911
960
  O(s);
912
961
  }), window.TGSetEvent("OnRowRemove", e, (s) => {
913
962
  O(s);
914
- }), window.TGSetEvent("OnCanRowDelete", e, (s, c, l) => {
915
- var p;
916
- if (l !== 3)
917
- return l;
918
- const f = (p = n.current) == null ? void 0 : p.onBeforeRowUndelete;
919
- if (typeof f != "function")
920
- return l;
921
- const T = /* @__PURE__ */ i((C) => {
963
+ }), window.TGSetEvent("OnCanRowDelete", e, (s, c, d) => {
964
+ var C;
965
+ if (d !== 3)
966
+ return d;
967
+ const u = (C = n.current) == null ? void 0 : C.onBeforeRowUndelete;
968
+ if (typeof u != "function")
969
+ return d;
970
+ const T = /* @__PURE__ */ i((p) => {
922
971
  window.setTimeout(() => {
923
- it(
972
+ at(
924
973
  L.current ?? s,
925
974
  c,
926
- C,
975
+ p,
927
976
  O
928
977
  );
929
978
  }, 0);
930
979
  }, "scheduleAction");
931
980
  try {
932
- const C = f(s, c);
933
- return rt(C) ? (C.then(T).catch(() => {
981
+ const p = u(s, c);
982
+ return Tt(p) ? (p.then(T).catch(() => {
934
983
  T("undelete");
935
- }), 0) : (T(C), 0);
984
+ }), 0) : (T(p), 0);
936
985
  } catch {
937
986
  return T("undelete"), 0;
938
987
  }
939
- }), typeof (G == null ? void 0 : G.onRowClick) == "function" || typeof (G == null ? void 0 : G.onInternalCellClick) == "function") {
940
- const s = V((c, l, f, T, p, C) => {
941
- var R, m;
942
- (m = (R = n.current) == null ? void 0 : R.onRowClick) == null || m.call(
943
- R,
988
+ }), typeof (g == null ? void 0 : g.onRowClick) == "function" || typeof (g == null ? void 0 : g.onInternalCellClick) == "function") {
989
+ const s = V((c, d, u, T, C, p) => {
990
+ var _, m;
991
+ (m = (_ = n.current) == null ? void 0 : _.onRowClick) == null || m.call(
992
+ _,
944
993
  c,
945
- l,
946
- f,
994
+ d,
995
+ u,
947
996
  T,
948
- p,
949
- C
997
+ C,
998
+ p
950
999
  );
951
1000
  }, 300);
952
- window.TGSetEvent("OnClick", e, (c, l, f, T, p, C) => {
953
- var m, ie, oe;
954
- const R = (ie = (m = n.current) == null ? void 0 : m.onInternalCellClick) == null ? void 0 : ie.call(
1001
+ window.TGSetEvent("OnClick", e, (c, d, u, T, C, p) => {
1002
+ var m, oe, se;
1003
+ const _ = (oe = (m = n.current) == null ? void 0 : m.onInternalCellClick) == null ? void 0 : oe.call(
955
1004
  m,
956
1005
  c,
957
- l,
958
- f,
1006
+ d,
1007
+ u,
959
1008
  T,
960
- p,
961
- C
1009
+ C,
1010
+ p
962
1011
  );
963
- if (R !== void 0)
964
- return R;
965
- typeof ((oe = n.current) == null ? void 0 : oe.onRowClick) == "function" && s(c, l, f, T, p, C);
1012
+ if (_ !== void 0)
1013
+ return _;
1014
+ typeof ((se = n.current) == null ? void 0 : se.onRowClick) == "function" && s(c, d, u, T, C, p);
966
1015
  });
967
1016
  }
968
- (typeof (G == null ? void 0 : G.onClickButton) == "function" || typeof (G == null ? void 0 : G.onInternalButtonClick) == "function") && window.TGSetEvent(
1017
+ (typeof (g == null ? void 0 : g.onClickButton) == "function" || typeof (g == null ? void 0 : g.onInternalButtonClick) == "function") && window.TGSetEvent(
969
1018
  "OnClickButton",
970
1019
  e,
971
- (s, c, l, f) => {
972
- var p, C, R, m;
973
- const T = (C = (p = n.current) == null ? void 0 : p.onInternalButtonClick) == null ? void 0 : C.call(
974
- p,
1020
+ (s, c, d, u) => {
1021
+ var C, p, _, m;
1022
+ const T = (p = (C = n.current) == null ? void 0 : C.onInternalButtonClick) == null ? void 0 : p.call(
1023
+ C,
975
1024
  s,
976
1025
  c,
977
- l,
978
- f
1026
+ d,
1027
+ u
979
1028
  );
980
1029
  if (T !== void 0)
981
1030
  return T;
982
- (m = (R = n.current) == null ? void 0 : R.onClickButton) == null || m.call(
983
- R,
1031
+ (m = (_ = n.current) == null ? void 0 : _.onClickButton) == null || m.call(
1032
+ _,
984
1033
  s,
985
1034
  c,
986
- l,
987
- f
1035
+ d,
1036
+ u
988
1037
  );
989
1038
  }
990
- ), typeof (G == null ? void 0 : G.onInternalKeyDown) == "function" && (window.TGSetEvent(
1039
+ ), typeof (g == null ? void 0 : g.onInternalKeyDown) == "function" && (window.TGSetEvent(
991
1040
  "OnKeyDown",
992
1041
  e,
993
- (s, c, l, f, T) => {
994
- var p, C;
995
- return (C = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : C.call(p, s, c, l, f, T);
1042
+ (s, c, d, u, T) => {
1043
+ var C, p;
1044
+ return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, s, c, d, u, T);
996
1045
  }
997
1046
  ), window.TGSetEvent(
998
1047
  "OnKeyPress",
999
1048
  e,
1000
- (s, c, l, f, T) => {
1001
- var p, C;
1002
- return (C = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : C.call(p, s, c, l, f, T);
1049
+ (s, c, d, u, T) => {
1050
+ var C, p;
1051
+ return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, s, c, d, u, T);
1003
1052
  }
1004
- )), typeof (G == null ? void 0 : G.onInternalStartEdit) == "function" && window.TGSetEvent(
1053
+ )), typeof (g == null ? void 0 : g.onInternalStartEdit) == "function" && window.TGSetEvent(
1005
1054
  "OnStartEdit",
1006
1055
  e,
1007
- (s, c, l) => {
1008
- var f, T;
1009
- return (T = (f = n.current) == null ? void 0 : f.onInternalStartEdit) == null ? void 0 : T.call(
1010
- f,
1056
+ (s, c, d) => {
1057
+ var u, T;
1058
+ return (T = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : T.call(
1059
+ u,
1011
1060
  s,
1012
1061
  c,
1013
- l
1062
+ d
1014
1063
  );
1015
1064
  }
1016
- ), window.TGSetEvent("OnRowDelete", e, (s, c, l) => {
1017
- var T, p;
1018
- const f = $(c) ? se(c) : [];
1019
- he(s, c, {
1020
- canEdit: d.current !== !1 ? 2 : void 0,
1021
- highlightColumns: f
1022
- }), O(s), (p = (T = n.current) == null ? void 0 : T.onRowDelete) == null || p.call(
1065
+ ), window.TGSetEvent("OnRowDelete", e, (s, c, d) => {
1066
+ var T, C;
1067
+ const u = P(c) ? ce(c) : [];
1068
+ Ae(s, c, {
1069
+ canEdit: l.current !== !1 ? 2 : void 0,
1070
+ highlightColumns: u
1071
+ }), O(s), (C = (T = n.current) == null ? void 0 : T.onRowDelete) == null || C.call(
1023
1072
  T,
1024
1073
  s,
1025
1074
  c,
1026
- l
1075
+ d
1027
1076
  );
1028
1077
  }), window.TGSetEvent("OnRowUndelete", e, (s, c) => {
1029
- var f, T;
1030
- const l = $(c) ? se(c) : [];
1031
- he(s, c, {
1032
- canEdit: d.current !== !1 ? 1 : void 0,
1033
- highlightColumns: l,
1034
- highlightBackgroundColor: l.length ? u.current : void 0
1035
- }), O(s), (T = (f = n.current) == null ? void 0 : f.onRowUndelete) == null || T.call(f, s, c);
1036
- }), window.TGSetEvent("OnGetDefaultColor", e, (s, c, l) => {
1037
- if (!(!r.current || !_(c)))
1038
- return At(
1078
+ var u, T;
1079
+ const d = P(c) ? ce(c) : [];
1080
+ Ae(s, c, {
1081
+ canEdit: l.current !== !1 ? 1 : void 0,
1082
+ highlightColumns: d,
1083
+ highlightBackgroundColor: d.length ? f.current : void 0
1084
+ }), O(s), (T = (u = n.current) == null ? void 0 : u.onRowUndelete) == null || T.call(u, s, c);
1085
+ }), window.TGSetEvent("OnGetDefaultColor", e, (s, c, d) => {
1086
+ if (!(!r.current || !R(c)))
1087
+ return Me(
1039
1088
  s,
1040
1089
  c,
1041
- l,
1090
+ d,
1042
1091
  a.current
1043
1092
  );
1044
- }), window.TGSetEvent("OnGetColor", e, (s, c, l, f, T, p, C) => {
1045
- if (!C)
1046
- return mt({
1093
+ }), window.TGSetEvent("OnGetColor", e, (s, c, d, u, T, C, p) => {
1094
+ if (!p)
1095
+ return wt({
1047
1096
  grid: s,
1048
1097
  row: c,
1049
- col: l,
1050
- r: f,
1098
+ col: d,
1099
+ r: u,
1051
1100
  g: T,
1052
- b: p,
1101
+ b: C,
1053
1102
  focusedCellBackgroundColor: E.current,
1054
- selectedCellBackgroundColor: g.current,
1055
- hoverCellBackgroundColor: h.current
1103
+ selectedCellBackgroundColor: G.current,
1104
+ hoverCellBackgroundColor: h.current,
1105
+ changedCellBackgroundColor: f.current,
1106
+ editableCellBackgroundColorValue: a.current
1056
1107
  });
1057
- }), window.TGSetEvent("OnGetClass", e, (s, c, l, f) => {
1058
- if (!(typeof f != "string" || !N(s, c, l)))
1059
- return gt(f);
1060
- }), window.TGSetEvent("OnAfterValueChanged", e, (s, c, l, f) => {
1061
- var p, C;
1062
- if (o.current && _(c)) {
1063
- const R = !Rt(s, c, l) || N(s, c, l) && !Q(s, c, l);
1064
- Et({
1108
+ }), window.TGSetEvent("OnGetClass", e, (s, c, d, u) => kt(s, c, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, c, d, u) => {
1109
+ var C, p;
1110
+ if (o.current && R(c)) {
1111
+ const _ = !yt(s, c, d) || v(s, c, d) && !H(s, c, d);
1112
+ _t({
1065
1113
  gridId: e,
1066
1114
  grid: s,
1067
1115
  row: c,
1068
- col: l,
1069
- backgroundColor: u.current,
1116
+ col: d,
1117
+ backgroundColor: f.current,
1070
1118
  baselineMap: A.current,
1071
- highlightRefresh: R
1119
+ highlightRefresh: _
1072
1120
  });
1073
1121
  }
1074
- const T = ((p = n.current) == null ? void 0 : p.onAfterValueChanged) ?? ((C = n.current) == null ? void 0 : C.onRowChange);
1075
- T == null || T(s, c, l, f);
1122
+ const T = ((C = n.current) == null ? void 0 : C.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1123
+ T == null || T(s, c, d, u);
1076
1124
  });
1077
- const re = V((s) => {
1078
- var l, f;
1125
+ const ie = V((s) => {
1126
+ var d, u;
1079
1127
  const c = s.GetSelRows() ?? [];
1080
- (f = (l = n.current) == null ? void 0 : l.onSelect) == null || f.call(
1081
- l,
1082
- Ye(s, c)
1128
+ (u = (d = n.current) == null ? void 0 : d.onSelect) == null || u.call(
1129
+ d,
1130
+ en(s, c)
1083
1131
  );
1084
1132
  }, 100);
1085
- window.TGSetEvent("OnSelect", e, (s, c, l, f, T) => {
1086
- var p;
1087
- T || (ht(s, c), ge(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && re(s));
1088
- }), window.TGSetEvent("OnSelectAll", e, (s, c, l, f) => {
1133
+ window.TGSetEvent("OnSelect", e, (s, c, d, u, T) => {
1134
+ var C;
1135
+ T || (Ot(s, c), Se(s, e), typeof ((C = n.current) == null ? void 0 : C.onSelect) == "function" && ie(s));
1136
+ }), window.TGSetEvent("OnSelectAll", e, (s, c, d, u) => {
1089
1137
  var T;
1090
- f || (ge(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && re(s));
1091
- }), typeof (G == null ? void 0 : G.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, c, l) => {
1092
- var f, T;
1093
- (T = (f = n.current) == null ? void 0 : f.onSave) == null || T.call(
1094
- f,
1138
+ u || (Se(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && ie(s));
1139
+ }), typeof (g == null ? void 0 : g.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, c, d) => {
1140
+ var u, T;
1141
+ (T = (u = n.current) == null ? void 0 : u.onSave) == null || T.call(
1142
+ u,
1095
1143
  s,
1096
1144
  c,
1097
- l
1145
+ d
1098
1146
  );
1099
1147
  }), window.TGSetEvent("OnSort", e, (s, c) => {
1100
- var l;
1101
- if (!(!c || !ct(
1148
+ var d;
1149
+ if (!(!c || !pt(
1102
1150
  s,
1103
1151
  s.ARow,
1104
1152
  c,
1105
- v.current !== !1
1153
+ B.current !== !1
1106
1154
  )))
1107
- return Ie(e, "group header sort blocked"), He(e, "group header sort blocked", {
1108
- rowId: (l = s.ARow) == null ? void 0 : l.id,
1155
+ return Oe(e, "group header sort blocked"), sn(e, "group header sort blocked", {
1156
+ rowId: (d = s.ARow) == null ? void 0 : d.id,
1109
1157
  col: c
1110
1158
  }), -1;
1111
1159
  }), window.TGSetEvent("OnRenderStart", e, (s) => {
1112
- j(s, e), Le(
1160
+ j(s, e), me(
1113
1161
  s,
1114
1162
  e,
1115
1163
  !1,
1116
- v.current !== !1
1164
+ B.current !== !1
1117
1165
  );
1118
1166
  }), window.TGSetEvent("OnRenderFinish", e, (s) => {
1119
1167
  j(s, e);
1120
- }), window.TGSetEvent("OnDataGet", e, (s, c, l) => {
1121
- if ((c == null ? void 0 : c.Name) === "Layout" && typeof l == "string") {
1122
- t.current = ae(l);
1123
- const f = K(
1124
- l,
1125
- ne.current,
1126
- H.current,
1127
- ee.current
1168
+ }), window.TGSetEvent("OnDataGet", e, (s, c, d) => {
1169
+ if ((c == null ? void 0 : c.Name) === "Layout" && typeof d == "string") {
1170
+ t.current = Ce(d);
1171
+ const u = K(
1172
+ d,
1173
+ te.current,
1174
+ ee.current,
1175
+ ne.current
1128
1176
  );
1129
- return f === l ? null : f;
1177
+ return u === d ? null : u;
1130
1178
  }
1131
1179
  return null;
1132
- }), window.TGSetEvent("OnDataParse", e, (s, c, l) => {
1133
- if ((c == null ? void 0 : c.Name) === "Layout" && typeof l == "string") {
1134
- t.current = ae(l);
1135
- const f = K(
1136
- l,
1137
- ne.current,
1138
- H.current,
1139
- ee.current
1180
+ }), window.TGSetEvent("OnDataParse", e, (s, c, d) => {
1181
+ if ((c == null ? void 0 : c.Name) === "Layout" && typeof d == "string") {
1182
+ t.current = Ce(d);
1183
+ const u = K(
1184
+ d,
1185
+ te.current,
1186
+ ee.current,
1187
+ ne.current
1140
1188
  );
1141
- return f === l ? null : f;
1189
+ return u === d ? null : u;
1142
1190
  }
1143
1191
  return null;
1144
1192
  }), window.TGSetEvent(
1145
1193
  "OnReady",
1146
1194
  e,
1147
1195
  V((s) => {
1148
- var c, l;
1149
- if (!te.current) {
1150
- const f = Ve.current;
1151
- te.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && et(s, tn), Ze(s, f), L.current = s, Xe.current = f, Me.current = Ae(s), A.current = /* @__PURE__ */ new WeakMap(), ft(s, A.current), O(s), Je(!0), Le(
1196
+ var c, d;
1197
+ if (!re.current) {
1198
+ const u = Ke.current;
1199
+ re.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && dt(s, dn), nn(s, u), L.current = s, je.current = u, ze.current = Re(s), A.current = /* @__PURE__ */ new WeakMap(), St(s, A.current), O(s), Ye(!0), me(
1152
1200
  s,
1153
1201
  e,
1154
1202
  !0,
1155
- v.current !== !1
1156
- ), Oe(e, "TreeGrid init ready", I.current, {
1157
- bodyRowCount: lt(
1158
- Ae(s)
1203
+ B.current !== !1
1204
+ ), be(e, "TreeGrid init ready", I.current, {
1205
+ bodyRowCount: Gt(
1206
+ Re(s)
1159
1207
  )
1160
- }), I.current = null, (l = (c = n.current) == null ? void 0 : c.onReady) == null || l.call(c, s);
1208
+ }), I.current = null, (d = (c = n.current) == null ? void 0 : c.onReady) == null || d.call(c, s);
1161
1209
  }
1162
1210
  }, 100)
1163
1211
  );
1164
1212
  }, "bindTreeGridEvents");
1165
1213
  export {
1166
- Ft as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1167
- Bt as bindTreeGridEvents,
1168
- kt as buildTreeGridInitializationOptions,
1169
- ft as captureTreeGridChangeBaselines,
1170
- lt as getTreeGridBodyDataCount,
1171
- Nt as hasTreeGridDisplayDataRows,
1172
- ae as hasTreeGridExplicitEnterMode,
1173
- Ut as replaceTreeGridBodyData,
1174
- Et as syncTreeGridChangedCellHighlight
1214
+ jt as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1215
+ qt as bindTreeGridEvents,
1216
+ zt as buildTreeGridInitializationOptions,
1217
+ St as captureTreeGridChangeBaselines,
1218
+ Gt as getTreeGridBodyDataCount,
1219
+ Yt as hasTreeGridDisplayDataRows,
1220
+ Ce as hasTreeGridExplicitEnterMode,
1221
+ Zt as replaceTreeGridBodyData,
1222
+ _t as syncTreeGridChangedCellHighlight
1175
1223
  };
1176
1224
  //# sourceMappingURL=treeGridRuntime.js.map