@owp/core 2.5.52 → 2.5.53

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