@owp/core 2.5.36 → 2.5.37

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