@owp/core 2.5.50 → 2.5.52

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