@owp/core 2.5.16 → 2.5.18

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 (40) hide show
  1. package/dist/components/OwpPicker/OwpTimePicker.js +186 -208
  2. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  3. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +298 -227
  4. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  5. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +487 -0
  6. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -0
  7. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +369 -248
  8. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  9. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +201 -117
  10. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  11. package/dist/constants/gridTheme.js +7 -6
  12. package/dist/constants/gridTheme.js.map +1 -1
  13. package/dist/constants/treeGrid.js +27 -26
  14. package/dist/constants/treeGrid.js.map +1 -1
  15. package/dist/constants.js +23 -22
  16. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  17. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  18. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  19. package/dist/owp-app.css +1 -1
  20. package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +3 -1
  21. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +14 -6
  22. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +17 -0
  23. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +41 -7
  24. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
  25. package/dist/types/constants/gridTheme.d.ts +2 -0
  26. package/dist/types/constants/treeGrid.d.ts +2 -1
  27. package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
  28. package/dist/types/utils/index.d.ts +0 -1
  29. package/dist/types/utils/treeGridUtil.d.ts +27 -0
  30. package/dist/utils/treeGridUtil.js +172 -112
  31. package/dist/utils/treeGridUtil.js.map +1 -1
  32. package/dist/utils.js +85 -83
  33. package/dist/utils.js.map +1 -1
  34. package/package.json +1 -1
  35. package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js +0 -84
  36. package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js.map +0 -1
  37. package/dist/types/components/OwpTreeGrid/internal/treeGridColumnEditRules.d.ts +0 -60
  38. package/dist/types/utils/normalizeTimeToHourMinute.d.ts +0 -11
  39. package/dist/utils/normalizeTimeToHourMinute.js +0 -34
  40. package/dist/utils/normalizeTimeToHourMinute.js.map +0 -1
@@ -1,57 +1,79 @@
1
- var oe = Object.defineProperty;
2
- var c = (e, t) => oe(e, "name", { value: t, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as ie, TREEGRID_CELL_HIGHLIGHT_CLASS as W, TREEGRID_CELL_HIGHLIGHT_COLOR as ue, resolveTreeGridColorNumber as ce } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as b, getTreeGridAddedRowHighlightColumns as x, highlightTreeGridCellById as se, appendTreeGridAddedRowHighlightColumn as fe } from "../../../utils/treeGridUtil.js";
5
- import { enqueueSnackbar as de } from "notistack";
6
- import { applyTreeGridLayoutToGrid as ae } from "./treeGridLayout.js";
7
- import { resolveTreeGridColumnEditValue as Ge, resetTreeGridColumnEditRulesState as Te, syncTreeGridColumnEditRules as le } from "./treeGridColumnEditRules.js";
8
- import { countTreeGridPerf as j, logTreeGridPerf as Re, measureTreeGridPerf as z } from "./utils/perf.js";
9
- import { debounce as y } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
- import { get as Ee } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
1
+ var ie = Object.defineProperty;
2
+ var c = (e, t) => ie(e, "name", { value: t, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as ue, TREEGRID_CELL_HIGHLIGHT_CLASS as j, TREEGRID_CELL_HIGHLIGHT_COLOR as ce, resolveTreeGridColorNumber as se } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as A, getTreeGridAddedRowHighlightColumns as N, getTreeGridCellComparableValue as z, clearTreeGridCellHighlightById as de, removeTreeGridAddedRowHighlightColumn as fe, highlightTreeGridCellById as Ge, appendTreeGridAddedRowHighlightColumn as Te, getTreeGridAddedRowBaselineValue as ae } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as Ee } from "./treeGridLayout.js";
6
+ import { countTreeGridPerf as X, logTreeGridPerf as le, measureTreeGridPerf as Y } from "./utils/perf.js";
7
+ import { debounce as b } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
8
+ import { get as Ce } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
9
  import { isEmpty as he } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
12
- const tt = 300, Ce = [255, 255, 166], pe = [240, 240, 240], _e = [248, 248, 248], Se = [255, 255, 255], me = [255, 255, 254], ye = [242, 242, 242], k = "Button", De = 0.75, be = 0.5, Ie = [255, 255, 255], Le = [17, 17, 18], V = W.split(/\s+/).filter(
10
+ const dt = 300, Re = 3, pe = {
11
+ 1: {
12
+ onEnter: "TabDownEdit",
13
+ onEnterEdit: "AcceptEdit AND TabDownEdit,1"
14
+ },
15
+ 2: {
16
+ onEnter: "GoDownEditAdd",
17
+ onEnterEdit: "AcceptEdit AND GoDownEditAdd,1"
18
+ },
19
+ 3: {
20
+ onEnter: "TabRightEdit",
21
+ onEnterEdit: "AcceptEdit AND TabRightEdit,1"
22
+ },
23
+ 4: {
24
+ onEnter: "TabRightEditAdd",
25
+ onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
26
+ }
27
+ }, _e = [255, 255, 166], Se = [240, 240, 240], De = [248, 248, 248], ye = [255, 255, 255], Ae = [255, 255, 254], Ie = [242, 242, 242], g = "Button", be = 0.75, me = 0.5, Oe = [255, 255, 255], Le = [17, 17, 18], k = j.split(/\s+/).filter(
13
28
  Boolean
14
- ), X = /* @__PURE__ */ c((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), F = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ c((e) => {
29
+ ), F = /* @__PURE__ */ c((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), Be = /* @__PURE__ */ c((e, t) => {
30
+ e.EnterMode = t;
31
+ const n = pe[t];
32
+ if (!n)
33
+ return;
34
+ const r = e;
35
+ r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = n.onEnter, r.Actions.OnEnterEdit = n.onEnterEdit;
36
+ }, "applyTreeGridDefaultEnterMode"), q = /* @__PURE__ */ c((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), V = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ c((e) => {
15
37
  if (!e || !e.startsWith("data:"))
16
38
  return e;
17
- const t = F.get(e);
39
+ const t = V.get(e);
18
40
  if (t)
19
41
  return t;
20
42
  try {
21
- const [n, r = ""] = e.split(",", 2), s = /^data:([^;]*)(;base64)?$/i.exec(n), a = (s == null ? void 0 : s[1]) || "application/octet-stream", G = s != null && s[2] ? atob(r) : decodeURIComponent(r), E = new Uint8Array(G.length);
22
- for (let C = 0; C < G.length; C += 1)
23
- E[C] = G.charCodeAt(C);
24
- const l = URL.createObjectURL(new Blob([E], { type: a }));
25
- return F.set(e, l), l;
43
+ const [n, r = ""] = e.split(",", 2), d = /^data:([^;]*)(;base64)?$/i.exec(n), T = (d == null ? void 0 : d[1]) || "application/octet-stream", l = d != null && d[2] ? atob(r) : decodeURIComponent(r), h = new Uint8Array(l.length);
44
+ for (let p = 0; p < l.length; p += 1)
45
+ h[p] = l.charCodeAt(p);
46
+ const C = URL.createObjectURL(new Blob([h], { type: T }));
47
+ return V.set(e, C), C;
26
48
  } catch {
27
49
  return e;
28
50
  }
29
- }, "resolveTreeGridInlineUrl"), I = /* @__PURE__ */ c((e) => {
30
- if (!e || X(e))
31
- return ve(e);
32
- const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], s = n.includes("?") ? "&" : "?";
33
- return `${n}${s}noCache=${Date.now()}${r}`;
34
- }, "appendNoCacheQuery"), N = /* @__PURE__ */ c((e, t, n) => {
51
+ }, "resolveTreeGridInlineUrl"), m = /* @__PURE__ */ c((e) => {
52
+ if (!e || q(e))
53
+ return we(e);
54
+ const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], d = n.includes("?") ? "&" : "?";
55
+ return `${n}${d}noCache=${Date.now()}${r}`;
56
+ }, "appendNoCacheQuery"), x = /* @__PURE__ */ c((e, t, n) => {
35
57
  if (!e)
36
58
  return;
37
- const r = n.canEdit, s = n.highlightColumns ?? [], a = n.highlightBackgroundColor;
38
- if (!(r === void 0 && !s.length)) {
59
+ const r = n.canEdit, d = n.highlightColumns ?? [], T = n.highlightBackgroundColor;
60
+ if (!(r === void 0 && !d.length)) {
39
61
  typeof e.StartUpdate == "function" && e.StartUpdate();
40
62
  try {
41
- r !== void 0 && (t.CanEdit = r), s.forEach((G) => {
42
- G && (e.SetValue(
63
+ r !== void 0 && (t.CanEdit = r), d.forEach((l) => {
64
+ l && (e.SetValue(
43
65
  t,
44
- `${G}Class`,
45
- a ? W : "",
66
+ `${l}Class`,
67
+ T ? j : "",
46
68
  0
47
- ), e.SetValue(t, `${G}Color`, a ?? "", 0));
69
+ ), e.SetValue(t, `${l}Color`, T ?? "", 0));
48
70
  });
49
71
  } finally {
50
72
  typeof e.EndUpdate == "function" && e.EndUpdate();
51
73
  }
52
74
  typeof e.RefreshRow == "function" && e.RefreshRow(t);
53
75
  }
54
- }, "syncTreeGridDeletedRowState"), Ae = /* @__PURE__ */ c((e) => e ? X(e) || e.includes("assets") ? I(e) : I(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Be = /* @__PURE__ */ c((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Oe = /* @__PURE__ */ c((e, t, n, r) => {
76
+ }, "syncTreeGridDeletedRowState"), ve = /* @__PURE__ */ c((e) => e ? q(e) || e.includes("assets") ? m(e) : m(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Ue = /* @__PURE__ */ c((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Ne = /* @__PURE__ */ c((e, t, n, r) => {
55
77
  if (!(!e || n === "cancel")) {
56
78
  if (n === "remove") {
57
79
  e.RemoveRow(t), r(e);
@@ -59,27 +81,27 @@ const tt = 300, Ce = [255, 255, 166], pe = [240, 240, 240], _e = [248, 248, 248]
59
81
  }
60
82
  e.DeleteRowT(t, 3);
61
83
  }
62
- }, "applyTreeGridBeforeRowUndeleteAction"), Ue = /* @__PURE__ */ c((e, t, n) => e ? { Url: Ae(t) } : { Data: { Body: [he(n) ? [] : n] } }, "buildTreeGridDataSource"), nt = /* @__PURE__ */ c(({
84
+ }, "applyTreeGridBeforeRowUndeleteAction"), ge = /* @__PURE__ */ c((e, t, n) => e ? { Url: ve(t) } : { Data: { Body: [he(n) ? [] : n] } }, "buildTreeGridDataSource"), ft = /* @__PURE__ */ c(({
63
85
  id: e,
64
86
  layoutUrl: t,
65
87
  layoutData: n,
66
88
  dataUrl: r,
67
- bodyData: s,
68
- useDataUrl: a,
69
- width: G,
70
- height: E,
71
- languageId: l
89
+ bodyData: d,
90
+ useDataUrl: T,
91
+ width: l,
92
+ height: h,
93
+ languageId: C
72
94
  }) => ({
73
95
  id: e,
74
- Layout: n ? { Data: n } : { Url: I(t ?? "") },
75
- Data: Ue(a, r, s),
96
+ Layout: n ? { Data: n } : { Url: m(t ?? "") },
97
+ Data: ge(T, r, d),
76
98
  Text: {
77
- Url: ie(l)
99
+ Url: ue(C)
78
100
  },
79
- width: G,
80
- height: E,
101
+ width: l,
102
+ height: h,
81
103
  Debug: "Error"
82
- }), "buildTreeGridInitializationOptions"), H = /* @__PURE__ */ c((e) => Ee(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), g = /* @__PURE__ */ c((e) => {
104
+ }), "buildTreeGridInitializationOptions"), M = /* @__PURE__ */ c((e) => Ce(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), $ = /* @__PURE__ */ c((e) => {
83
105
  if (typeof e == "number")
84
106
  return Number.isFinite(e) && e > 0 ? e : void 0;
85
107
  if (typeof e != "string")
@@ -89,322 +111,421 @@ const tt = 300, Ce = [255, 255, 166], pe = [240, 240, 240], _e = [248, 248, 248]
89
111
  return;
90
112
  const n = Number(t);
91
113
  return Number.isFinite(n) && n > 0 ? n : void 0;
92
- }, "parseTreeGridPositiveNumber"), $ = /* @__PURE__ */ c((e, t, n, r) => {
114
+ }, "parseTreeGridPositiveNumber"), P = /* @__PURE__ */ c((e, t, n, r) => {
93
115
  if (!t || !n)
94
116
  return;
95
- const s = e.GetAttribute(t, n, r), a = g(s);
96
- return a !== void 0 ? a : g(
117
+ const d = e.GetAttribute(t, n, r), T = $(d);
118
+ return T !== void 0 ? T : $(
97
119
  t[`${n}${r}`]
98
120
  );
99
- }, "getTreeGridHeaderCellSpanAttribute"), Y = /* @__PURE__ */ c((e, t, n) => !t || !n || t.Fixed !== "Head" || ($(e, t, n, "Span") ?? 1) <= 1 ? !1 : ($(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), P = /* @__PURE__ */ c((e, t, n = !1) => {
100
- const r = typeof performance < "u" ? performance.now() : Date.now(), s = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((l) => l.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
101
- if (!s.length || !a.length)
121
+ }, "getTreeGridHeaderCellSpanAttribute"), H = /* @__PURE__ */ c((e, t, n) => !t || !n || t.Fixed !== "Head" || (P(e, t, n, "Span") ?? 1) <= 1 ? !1 : (P(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), K = /* @__PURE__ */ c((e, t, n = !1) => {
122
+ const r = typeof performance < "u" ? performance.now() : Date.now(), d = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((C) => C.Fixed === "Head") : [], T = typeof e.GetCols == "function" ? e.GetCols() : [];
123
+ if (!d.length || !T.length)
102
124
  return;
103
- const G = /* @__PURE__ */ new Set();
104
- let E = 0;
125
+ const l = /* @__PURE__ */ new Set();
126
+ let h = 0;
105
127
  typeof e.StartUpdate == "function" && e.StartUpdate();
106
128
  try {
107
- s.forEach((l) => {
108
- a.forEach((C) => {
109
- Y(e, l, C) && e.GetAttribute(l, C, k) !== "" && (e.SetAttribute(l, C, k, "", 0, 0), G.add(l), E += 1);
129
+ d.forEach((C) => {
130
+ T.forEach((p) => {
131
+ H(e, C, p) && e.GetAttribute(C, p, g) !== "" && (e.SetAttribute(C, p, g, "", 0, 0), l.add(C), h += 1);
110
132
  });
111
133
  });
112
134
  } finally {
113
135
  typeof e.EndUpdate == "function" && e.EndUpdate();
114
136
  }
115
- G.size && (n && G.forEach((l) => {
116
- typeof e.RefreshRow == "function" && e.RefreshRow(l);
117
- }), j(t, "group header button attribute apply"), z(t, "group header button attribute apply", r, {
118
- updatedCellCount: E,
119
- updatedRowCount: G.size
137
+ l.size && (n && l.forEach((C) => {
138
+ typeof e.RefreshRow == "function" && e.RefreshRow(C);
139
+ }), X(t, "group header button attribute apply"), Y(t, "group header button attribute apply", r, {
140
+ updatedCellCount: h,
141
+ updatedRowCount: l.size
120
142
  }));
121
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), we = /* @__PURE__ */ c((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), xe = /* @__PURE__ */ c((e) => {
143
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), ke = /* @__PURE__ */ c((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Fe = /* @__PURE__ */ c((e) => {
122
144
  const t = e == null ? void 0 : e.Visible;
123
145
  return !!e && t !== 0 && t !== !1 && t !== "0";
124
- }, "isVisibleTreeGridRow"), ke = /* @__PURE__ */ c((e) => {
146
+ }, "isVisibleTreeGridRow"), Ve = /* @__PURE__ */ c((e) => {
125
147
  const t = e == null ? void 0 : e.Added;
126
148
  return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
127
- }, "isAddedTreeGridRow"), p = /* @__PURE__ */ c((e) => !e || e.Fixed === "Foot" || !xe(e) ? !1 : e.Kind === "Data" || ke(e), "isDisplayTreeGridRow"), Ve = /* @__PURE__ */ c((e, t, n) => !t || !n || !p(t) ? !1 : e.CanEdit(t, n) === 1, "isEditableTreeGridCell"), Fe = /* @__PURE__ */ c((e, t, n) => {
149
+ }, "isAddedTreeGridRow"), S = /* @__PURE__ */ c((e) => !e || e.Fixed === "Foot" || !Fe(e) ? !1 : e.Kind === "Data" || Ve(e), "isDisplayTreeGridRow"), Q = /* @__PURE__ */ c((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), xe = /* @__PURE__ */ c((e) => {
150
+ if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
151
+ const t = [];
152
+ let n = e.GetFirst();
153
+ for (; n; )
154
+ t.push(n), n = e.GetNext(n);
155
+ return t;
156
+ }
157
+ return Object.values(e.Rows ?? {});
158
+ }, "getTreeGridRows"), Me = /* @__PURE__ */ c((e, t) => {
159
+ if (!e)
160
+ return;
161
+ const n = Q(e);
162
+ xe(e).forEach((r) => {
163
+ S(r) && t.set(
164
+ r,
165
+ new Map(n.map((d) => [d, z(e, r, d)]))
166
+ );
167
+ });
168
+ }, "captureTreeGridChangeBaselines"), $e = /* @__PURE__ */ c((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Pe = /* @__PURE__ */ c((e, t, n) => {
169
+ const r = t;
170
+ return Q(e).some((d) => d !== n && $e(r[`${d}Changed`]));
171
+ }, "hasOtherTreeGridChangedCells"), Ke = /* @__PURE__ */ c((e, t, n) => {
172
+ const r = t;
173
+ r[`${n}Changed`] = 0, !A(t) && !Pe(e, t, n) && (r.Changed = 0);
174
+ }, "clearTreeGridCellChangedState"), We = /* @__PURE__ */ c((e, t, n) => {
175
+ const r = e.get(t);
176
+ if (r != null && r.has(n))
177
+ return r.get(n);
178
+ if (A(t))
179
+ return ae(t, n) ?? "";
180
+ }, "resolveTreeGridCellBaselineValue"), je = /* @__PURE__ */ c(({
181
+ gridId: e,
182
+ grid: t,
183
+ row: n,
184
+ col: r,
185
+ backgroundColor: d,
186
+ baselineMap: T
187
+ }) => {
188
+ if (!S(n))
189
+ return;
190
+ const l = We(T, n, r), h = z(t, n, r);
191
+ if (l !== void 0 && h === l) {
192
+ de(e, { row: n, col: r }), Ke(t, n, r), A(n) && fe(n, r);
193
+ return;
194
+ }
195
+ Ge(e, {
196
+ row: n,
197
+ col: r,
198
+ backgroundColor: d
199
+ }), A(n) && Te(n, r);
200
+ }, "syncTreeGridChangedCellHighlight"), ze = /* @__PURE__ */ c((e, t, n) => !t || !n || !S(t) ? !1 : e.CanEdit(t, n) === 1, "isEditableTreeGridCell"), Xe = /* @__PURE__ */ c((e, t, n) => {
128
201
  const r = e.GetAttribute(t, n, "Color");
129
202
  return r != null && r !== "";
130
- }, "hasExplicitTreeGridCellColor"), Ne = /* @__PURE__ */ c((e, t, n, r) => {
131
- if (!(!t || r === void 0 || !Ve(e, t, n) || Fe(e, t, n)))
203
+ }, "hasExplicitTreeGridCellColor"), Ye = /* @__PURE__ */ c((e, t, n, r) => {
204
+ if (!(!t || r === void 0 || !ze(e, t, n) || Xe(e, t, n)))
132
205
  return r;
133
- }, "getEditableTreeGridCellDefaultColor"), S = /* @__PURE__ */ c((e, t, n, r) => e === r[0] && t === r[1] && n === r[2], "matchesTreeGridRgbColor"), M = /* @__PURE__ */ c((e) => {
134
- const t = typeof e == "number" ? e : typeof e == "string" ? ce(e) : void 0;
206
+ }, "getEditableTreeGridCellDefaultColor"), y = /* @__PURE__ */ c((e, t, n, r) => e === r[0] && t === r[1] && n === r[2], "matchesTreeGridRgbColor"), W = /* @__PURE__ */ c((e) => {
207
+ const t = typeof e == "number" ? e : typeof e == "string" ? se(e) : void 0;
135
208
  if (!(t === void 0 || !Number.isFinite(t)))
136
209
  return [t >> 16 & 255, t >> 8 & 255, t & 255];
137
- }, "resolveTreeGridColorRgb"), q = /* @__PURE__ */ c((e) => `#${e.map((t) => Math.max(0, Math.min(255, t)).toString(16).padStart(2, "0")).join("")}`, "stringifyTreeGridRgbColor"), K = /* @__PURE__ */ c((e, t, n) => {
138
- const r = /* @__PURE__ */ c((s, a) => Math.round(
139
- s * (1 - n) + a * n
210
+ }, "resolveTreeGridColorRgb"), J = /* @__PURE__ */ c((e) => `#${e.map((t) => Math.max(0, Math.min(255, t)).toString(16).padStart(2, "0")).join("")}`, "stringifyTreeGridRgbColor"), Z = /* @__PURE__ */ c((e, t, n) => {
211
+ const r = /* @__PURE__ */ c((d, T) => Math.round(
212
+ d * (1 - n) + T * n
140
213
  ), "blendChannel");
141
214
  return [
142
215
  r(e[0], t[0]),
143
216
  r(e[1], t[1]),
144
217
  r(e[2], t[2])
145
218
  ];
146
- }, "blendTreeGridRgbColor"), He = /* @__PURE__ */ c((e) => (e == null ? void 0 : e.split(/\s+/).filter(Boolean)) ?? [], "getTreeGridClassTokens"), Q = /* @__PURE__ */ c((e) => {
147
- const t = typeof e == "string" ? He(e) : [];
148
- return V.length > 0 && V.every((n) => t.includes(n));
149
- }, "hasTreeGridCellHighlightClass"), L = /* @__PURE__ */ c((e, t, n) => {
150
- if (!t || !n || !p(t))
219
+ }, "blendTreeGridRgbColor"), qe = /* @__PURE__ */ c((e) => (e == null ? void 0 : e.split(/\s+/).filter(Boolean)) ?? [], "getTreeGridClassTokens"), ee = /* @__PURE__ */ c((e) => {
220
+ const t = typeof e == "string" ? qe(e) : [];
221
+ return k.length > 0 && k.every((n) => t.includes(n));
222
+ }, "hasTreeGridCellHighlightClass"), O = /* @__PURE__ */ c((e, t, n) => {
223
+ if (!t || !n || !S(t))
151
224
  return !1;
152
225
  const r = e.IsSelected(t, n);
153
226
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
154
- }, "isTreeGridSelectedCellState"), ge = /* @__PURE__ */ c((e, t, n, r) => {
155
- if (!t || !L(e, t, n) || !Q(e.GetAttribute(t, n, "Class")))
227
+ }, "isTreeGridSelectedCellState"), He = /* @__PURE__ */ c((e, t, n, r) => {
228
+ if (!t || !O(e, t, n) || !ee(e.GetAttribute(t, n, "Class")))
156
229
  return;
157
- const s = M(r), a = M(
158
- e.GetAttribute(t, n, "Color") ?? ue
230
+ const d = W(r), T = W(
231
+ e.GetAttribute(t, n, "Color") ?? ce
159
232
  );
160
- if (!(!s || !a))
161
- return q(
162
- K(
163
- s,
164
- a,
165
- De
233
+ if (!(!d || !T))
234
+ return J(
235
+ Z(
236
+ d,
237
+ T,
238
+ be
166
239
  )
167
240
  );
168
- }, "resolveTreeGridSelectedHighlightBackgroundColor"), $e = /* @__PURE__ */ c((e, t, n, r) => {
169
- if (!(r || !t || !L(e, t, n) || !Q(e.GetAttribute(t, n, "Class"))))
170
- return q(
171
- K(
172
- Ie,
241
+ }, "resolveTreeGridSelectedHighlightBackgroundColor"), Qe = /* @__PURE__ */ c((e, t, n, r) => {
242
+ if (!(r || !t || !O(e, t, n) || !ee(e.GetAttribute(t, n, "Class"))))
243
+ return J(
244
+ Z(
245
+ Oe,
173
246
  Le,
174
- be
247
+ me
175
248
  )
176
249
  );
177
- }, "resolveTreeGridSelectedHighlightTextColor"), Pe = /* @__PURE__ */ c((e, t, n) => !t || !n || !p(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), Me = /* @__PURE__ */ c((e, t, n) => !t || !n || !p(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), We = /* @__PURE__ */ c(({
250
+ }, "resolveTreeGridSelectedHighlightTextColor"), Je = /* @__PURE__ */ c((e, t, n) => !t || !n || !S(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), Ze = /* @__PURE__ */ c((e, t, n) => !t || !n || !S(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), et = /* @__PURE__ */ c(({
178
251
  grid: e,
179
252
  row: t,
180
253
  col: n,
181
254
  r,
182
- g: s,
183
- b: a,
184
- selectedCellBackgroundColor: G,
185
- hoverCellBackgroundColor: E
255
+ g: d,
256
+ b: T,
257
+ selectedCellBackgroundColor: l,
258
+ hoverCellBackgroundColor: h
186
259
  }) => {
187
- const l = ge(
260
+ const C = He(
188
261
  e,
189
262
  t,
190
263
  n,
191
- G
264
+ l
192
265
  );
193
- if (l)
266
+ if (C)
267
+ return C;
268
+ if (O(e, t, n) && y(r, d, T, _e))
194
269
  return l;
195
- if (L(e, t, n) && S(r, s, a, Ce))
196
- return G;
197
- if (Pe(e, t, n) && (S(r, s, a, pe) || S(r, s, a, _e)) || Me(e, t, n) && (S(r, s, a, Se) || S(r, s, a, me) || S(r, s, a, ye)))
198
- return E;
199
- }, "resolveTreeGridStateBackgroundColor"), rt = /* @__PURE__ */ c((e) => {
270
+ if (Je(e, t, n) && (y(r, d, T, Se) || y(r, d, T, De)) || Ze(e, t, n) && (y(r, d, T, ye) || y(r, d, T, Ae) || y(r, d, T, Ie)))
271
+ return h;
272
+ }, "resolveTreeGridStateBackgroundColor"), Gt = /* @__PURE__ */ c((e) => {
200
273
  if (!e)
201
274
  return !1;
202
275
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
203
276
  let t = e.GetFirst();
204
277
  for (; t; ) {
205
- if (p(t))
278
+ if (S(t))
206
279
  return !0;
207
280
  t = e.GetNext(t);
208
281
  }
209
282
  return !1;
210
283
  }
211
- return Object.values(e.Rows ?? {}).some((t) => p(t));
212
- }, "hasTreeGridDisplayDataRows"), ot = /* @__PURE__ */ c((e, t, n) => {
213
- var s;
214
- const r = (s = e.Data) == null ? void 0 : s.Data;
284
+ return Object.values(e.Rows ?? {}).some((t) => S(t));
285
+ }, "hasTreeGridDisplayDataRows"), Tt = /* @__PURE__ */ c((e, t, n) => {
286
+ var d;
287
+ const r = (d = e.Data) == null ? void 0 : d.Data;
215
288
  e.Data.Data = {
216
289
  ...r,
217
290
  Data: { Body: [t || []] },
218
291
  Url: ""
219
292
  }, e.ReloadBody(n);
220
- }, "replaceTreeGridBodyData"), it = /* @__PURE__ */ c(({
293
+ }, "replaceTreeGridBodyData"), at = /* @__PURE__ */ c(({
221
294
  id: e,
222
295
  latestEventHandlersRef: t,
223
- highlightEditableCellsRef: n,
224
- highlightChangedCellsRef: r,
225
- syncDeletedRowCanEditRef: s,
226
- editableCellBackgroundColorValueRef: a,
227
- changedCellBackgroundColorRef: G,
228
- selectedCellBackgroundColorRef: E,
229
- hoverCellBackgroundColorRef: l,
230
- treeGridInstanceRef: C,
231
- treeGridInitStartedAtRef: v,
232
- latestLayoutOverridesRef: J,
233
- appliedLayoutOverridesRef: Z,
234
- appliedBodyDataPropRef: ee,
235
- latestColumnEditRulesRef: te,
236
- latestColumnEditRuleLookupRef: A,
237
- appliedColumnEditRulesRef: ne,
238
- columnEditRulesStateRef: B,
239
- hasAppliedInitialLayoutRef: O,
240
- syncHasDisplayDataRows: _,
241
- setIsTreeGridReady: re
296
+ layoutHasExplicitEnterModeRef: n,
297
+ highlightEditableCellsRef: r,
298
+ highlightChangedCellsRef: d,
299
+ syncDeletedRowCanEditRef: T,
300
+ editableCellBackgroundColorValueRef: l,
301
+ changedCellBackgroundColorRef: h,
302
+ selectedCellBackgroundColorRef: C,
303
+ hoverCellBackgroundColorRef: p,
304
+ changedCellBaselineRef: I,
305
+ treeGridInstanceRef: L,
306
+ treeGridInitStartedAtRef: B,
307
+ latestLayoutOverridesRef: te,
308
+ appliedLayoutOverridesRef: ne,
309
+ appliedBodyDataPropRef: re,
310
+ hasAppliedInitialLayoutRef: w,
311
+ syncHasDisplayDataRows: D,
312
+ setIsTreeGridReady: oe
242
313
  }) => {
243
- const h = t.current;
244
- window.TGSetEvent("OnRowAdd", e, (o, i) => {
245
- var u, f;
246
- i.CanEdit = 1, i.CanDelete = 1, (f = (u = t.current) == null ? void 0 : u.onRowAdd) == null || f.call(u, o, i);
247
- }), window.TGSetEvent("OnRowAdded", e, (o) => {
248
- _(o);
249
- }), window.TGSetEvent("OnRowRemove", e, (o) => {
250
- _(o);
251
- }), window.TGSetEvent("OnCanRowDelete", e, (o, i, u) => {
252
- var T;
314
+ const a = t.current;
315
+ if (window.TGSetEvent("OnRowAdd", e, (i, o) => {
316
+ var u, s;
317
+ o.CanEdit = 1, o.CanDelete = 1, (s = (u = t.current) == null ? void 0 : u.onRowAdd) == null || s.call(u, i, o);
318
+ }), window.TGSetEvent("OnRowAdded", e, (i) => {
319
+ D(i);
320
+ }), window.TGSetEvent("OnRowRemove", e, (i) => {
321
+ D(i);
322
+ }), window.TGSetEvent("OnCanRowDelete", e, (i, o, u) => {
323
+ var G;
253
324
  if (u !== 3)
254
325
  return u;
255
- const f = (T = t.current) == null ? void 0 : T.onBeforeRowUndelete;
256
- if (typeof f != "function")
326
+ const s = (G = t.current) == null ? void 0 : G.onBeforeRowUndelete;
327
+ if (typeof s != "function")
257
328
  return u;
258
- const d = /* @__PURE__ */ c((R) => {
329
+ const f = /* @__PURE__ */ c((E) => {
259
330
  window.setTimeout(() => {
260
- Oe(
261
- C.current ?? o,
262
- i,
263
- R,
264
- _
331
+ Ne(
332
+ L.current ?? i,
333
+ o,
334
+ E,
335
+ D
265
336
  );
266
337
  }, 0);
267
338
  }, "scheduleAction");
268
339
  try {
269
- const R = f(o, i);
270
- return Be(R) ? (R.then(d).catch(() => {
271
- d("undelete");
272
- }), 0) : (d(R), 0);
340
+ const E = s(i, o);
341
+ return Ue(E) ? (E.then(f).catch(() => {
342
+ f("undelete");
343
+ }), 0) : (f(E), 0);
273
344
  } catch {
274
- return d("undelete"), 0;
345
+ return f("undelete"), 0;
275
346
  }
276
- }), typeof (h == null ? void 0 : h.onRowClick) == "function" && window.TGSetEvent(
277
- "OnClick",
278
- e,
279
- y((o, i, u, f, d, T) => {
280
- var R, m;
281
- (m = (R = t.current) == null ? void 0 : R.onRowClick) == null || m.call(
347
+ }), typeof (a == null ? void 0 : a.onRowClick) == "function" || typeof (a == null ? void 0 : a.onInternalCellClick) == "function") {
348
+ const i = b((o, u, s, f, G, E) => {
349
+ var R, _;
350
+ (_ = (R = t.current) == null ? void 0 : R.onRowClick) == null || _.call(
282
351
  R,
283
352
  o,
284
- i,
285
353
  u,
354
+ s,
286
355
  f,
287
- d,
288
- T
356
+ G,
357
+ E
358
+ );
359
+ }, 300);
360
+ window.TGSetEvent("OnClick", e, (o, u, s, f, G, E) => {
361
+ var _, v, U;
362
+ const R = (v = (_ = t.current) == null ? void 0 : _.onInternalCellClick) == null ? void 0 : v.call(
363
+ _,
364
+ o,
365
+ u,
366
+ s,
367
+ f,
368
+ G,
369
+ E
289
370
  );
290
- }, 300)
291
- ), typeof (h == null ? void 0 : h.onClickButton) == "function" && window.TGSetEvent(
371
+ if (R !== void 0)
372
+ return R;
373
+ typeof ((U = t.current) == null ? void 0 : U.onRowClick) == "function" && i(o, u, s, f, G, E);
374
+ });
375
+ }
376
+ (typeof (a == null ? void 0 : a.onClickButton) == "function" || typeof (a == null ? void 0 : a.onInternalButtonClick) == "function") && window.TGSetEvent(
292
377
  "OnClickButton",
293
378
  e,
294
- y((o, i, u, f) => {
295
- var d, T;
296
- (T = (d = t.current) == null ? void 0 : d.onClickButton) == null || T.call(
297
- d,
379
+ (i, o, u, s) => {
380
+ var G, E, R, _;
381
+ const f = (E = (G = t.current) == null ? void 0 : G.onInternalButtonClick) == null ? void 0 : E.call(
382
+ G,
383
+ i,
298
384
  o,
385
+ u,
386
+ s
387
+ );
388
+ if (f !== void 0)
389
+ return f;
390
+ (_ = (R = t.current) == null ? void 0 : R.onClickButton) == null || _.call(
391
+ R,
299
392
  i,
393
+ o,
300
394
  u,
301
- f
395
+ s
302
396
  );
303
- }, 300)
304
- ), window.TGSetEvent("OnRowDelete", e, (o, i, u) => {
305
- var d, T;
306
- const f = b(i) ? x(i) : [];
307
- N(o, i, {
308
- canEdit: s.current !== !1 ? 2 : void 0,
309
- highlightColumns: f
310
- }), _(o), (T = (d = t.current) == null ? void 0 : d.onRowDelete) == null || T.call(
311
- d,
312
- o,
397
+ }
398
+ ), typeof (a == null ? void 0 : a.onInternalKeyDown) == "function" && (window.TGSetEvent(
399
+ "OnKeyDown",
400
+ e,
401
+ (i, o, u, s, f) => {
402
+ var G, E;
403
+ return (E = (G = t.current) == null ? void 0 : G.onInternalKeyDown) == null ? void 0 : E.call(G, i, o, u, s, f);
404
+ }
405
+ ), window.TGSetEvent(
406
+ "OnKeyPress",
407
+ e,
408
+ (i, o, u, s, f) => {
409
+ var G, E;
410
+ return (E = (G = t.current) == null ? void 0 : G.onInternalKeyDown) == null ? void 0 : E.call(G, i, o, u, s, f);
411
+ }
412
+ )), typeof (a == null ? void 0 : a.onInternalStartEdit) == "function" && window.TGSetEvent(
413
+ "OnStartEdit",
414
+ e,
415
+ (i, o, u) => {
416
+ var s, f;
417
+ return (f = (s = t.current) == null ? void 0 : s.onInternalStartEdit) == null ? void 0 : f.call(
418
+ s,
419
+ i,
420
+ o,
421
+ u
422
+ );
423
+ }
424
+ ), window.TGSetEvent("OnRowDelete", e, (i, o, u) => {
425
+ var f, G;
426
+ const s = A(o) ? N(o) : [];
427
+ x(i, o, {
428
+ canEdit: T.current !== !1 ? 2 : void 0,
429
+ highlightColumns: s
430
+ }), D(i), (G = (f = t.current) == null ? void 0 : f.onRowDelete) == null || G.call(
431
+ f,
313
432
  i,
433
+ o,
314
434
  u
315
435
  );
316
- }), window.TGSetEvent("OnRowUndelete", e, (o, i) => {
317
- var f, d;
318
- const u = b(i) ? x(i) : [];
319
- N(o, i, {
320
- canEdit: s.current !== !1 ? 1 : void 0,
436
+ }), window.TGSetEvent("OnRowUndelete", e, (i, o) => {
437
+ var s, f;
438
+ const u = A(o) ? N(o) : [];
439
+ x(i, o, {
440
+ canEdit: T.current !== !1 ? 1 : void 0,
321
441
  highlightColumns: u,
322
- highlightBackgroundColor: u.length ? G.current : void 0
323
- }), _(o), (d = (f = t.current) == null ? void 0 : f.onRowUndelete) == null || d.call(f, o, i);
324
- }), window.TGSetEvent("OnGetCellStyle", e, (o, i, u, f, d) => {
325
- if (f === "TextColor")
326
- return $e(o, i, u, d);
327
- }), window.TGSetEvent("OnGetDefaultColor", e, (o, i, u) => {
328
- if (!(!n.current || !p(i)))
329
- return Ne(
330
- o,
442
+ highlightBackgroundColor: u.length ? h.current : void 0
443
+ }), D(i), (f = (s = t.current) == null ? void 0 : s.onRowUndelete) == null || f.call(s, i, o);
444
+ }), window.TGSetEvent("OnGetCellStyle", e, (i, o, u, s, f) => {
445
+ if (s === "TextColor")
446
+ return Qe(i, o, u, f);
447
+ }), window.TGSetEvent("OnGetDefaultColor", e, (i, o, u) => {
448
+ if (!(!r.current || !S(o)))
449
+ return Ye(
331
450
  i,
451
+ o,
332
452
  u,
333
- a.current
453
+ l.current
334
454
  );
335
- }), window.TGSetEvent("OnGetColor", e, (o, i, u, f, d, T, R) => {
336
- if (!R)
337
- return We({
338
- grid: o,
339
- row: i,
455
+ }), window.TGSetEvent("OnGetColor", e, (i, o, u, s, f, G, E) => {
456
+ if (!E)
457
+ return et({
458
+ grid: i,
459
+ row: o,
340
460
  col: u,
341
- r: f,
342
- g: d,
343
- b: T,
344
- selectedCellBackgroundColor: E.current,
345
- hoverCellBackgroundColor: l.current
461
+ r: s,
462
+ g: f,
463
+ b: G,
464
+ selectedCellBackgroundColor: C.current,
465
+ hoverCellBackgroundColor: p.current
346
466
  });
347
- }), window.TGSetEvent("OnAfterValueChanged", e, (o, i, u, f) => {
348
- var U, w;
349
- const d = A.current, T = d ? Ge(d, u, f) : void 0, R = T == null ? void 0 : T.value, m = R ?? f;
350
- T != null && T.invalidText && de(T.invalidText, { variant: "warning" }), R !== void 0 && o.SetValue(i, u, R, 1), r.current && p(i) && (se(e, {
351
- row: i,
467
+ }), window.TGSetEvent("OnAfterValueChanged", e, (i, o, u, s) => {
468
+ var G, E;
469
+ d.current && S(o) && je({
470
+ gridId: e,
471
+ grid: i,
472
+ row: o,
352
473
  col: u,
353
- backgroundColor: G.current
354
- }), b(i) && fe(i, u));
355
- const D = ((U = t.current) == null ? void 0 : U.onAfterValueChanged) ?? ((w = t.current) == null ? void 0 : w.onRowChange);
356
- D == null || D(o, i, u, m);
357
- }), typeof (h == null ? void 0 : h.onSelect) == "function" && window.TGSetEvent(
474
+ backgroundColor: h.current,
475
+ baselineMap: I.current
476
+ });
477
+ const f = ((G = t.current) == null ? void 0 : G.onAfterValueChanged) ?? ((E = t.current) == null ? void 0 : E.onRowChange);
478
+ f == null || f(i, o, u, s);
479
+ }), typeof (a == null ? void 0 : a.onSelect) == "function" && window.TGSetEvent(
358
480
  "OnSelect",
359
481
  e,
360
- y((o) => {
361
- var u, f;
362
- const i = o.GetSelRows() ?? [];
363
- (f = (u = t.current) == null ? void 0 : u.onSelect) == null || f.call(u, i);
482
+ b((i) => {
483
+ var u, s;
484
+ const o = i.GetSelRows() ?? [];
485
+ (s = (u = t.current) == null ? void 0 : u.onSelect) == null || s.call(u, o);
364
486
  }, 100)
365
- ), typeof (h == null ? void 0 : h.onSave) == "function" && window.TGSetEvent("OnSave", e, (o, i, u) => {
366
- var f, d;
367
- (d = (f = t.current) == null ? void 0 : f.onSave) == null || d.call(
368
- f,
369
- o,
487
+ ), typeof (a == null ? void 0 : a.onSave) == "function" && window.TGSetEvent("OnSave", e, (i, o, u) => {
488
+ var s, f;
489
+ (f = (s = t.current) == null ? void 0 : s.onSave) == null || f.call(
490
+ s,
370
491
  i,
492
+ o,
371
493
  u
372
494
  );
373
- }), window.TGSetEvent("OnSort", e, (o, i) => {
495
+ }), window.TGSetEvent("OnSort", e, (i, o) => {
374
496
  var u;
375
- if (!(!i || !Y(o, o.ARow, i)))
376
- return j(e, "group header sort blocked"), Re(e, "group header sort blocked", {
377
- rowId: (u = o.ARow) == null ? void 0 : u.id,
378
- col: i
497
+ if (!(!o || !H(i, i.ARow, o)))
498
+ return X(e, "group header sort blocked"), le(e, "group header sort blocked", {
499
+ rowId: (u = i.ARow) == null ? void 0 : u.id,
500
+ col: o
379
501
  }), -1;
380
- }), window.TGSetEvent("OnRenderStart", e, (o) => {
381
- P(o, e, !1);
382
- }), window.TGSetEvent(
502
+ }), window.TGSetEvent("OnRenderStart", e, (i) => {
503
+ K(i, e, !1);
504
+ }), window.TGSetEvent("OnDataGet", e, (i, o, u) => ((o == null ? void 0 : o.Name) === "Layout" && typeof u == "string" && (n.current = F(u)), null)), window.TGSetEvent("OnDataParse", e, (i, o, u) => ((o == null ? void 0 : o.Name) === "Layout" && typeof u == "string" && (n.current = F(u)), null)), window.TGSetEvent(
383
505
  "OnReady",
384
506
  e,
385
- y((o) => {
386
- var i, u;
387
- if (!O.current) {
388
- const f = J.current;
389
- O.current = !0, ae(o, f), Te(B.current), le(
390
- o,
391
- A.current,
392
- B.current
393
- ), C.current = o, Z.current = f, ee.current = H(o), ne.current = te.current, _(o), re(!0), P(o, e, !0), z(e, "TreeGrid init ready", v.current, {
394
- bodyRowCount: we(
395
- H(o)
507
+ b((i) => {
508
+ var o, u;
509
+ if (!w.current) {
510
+ const s = te.current;
511
+ w.current = !0, !n.current && (i.EnterMode === void 0 || i.EnterMode === null || i.EnterMode === 0) && Be(i, Re), Ee(i, s), L.current = i, ne.current = s, re.current = M(i), I.current = /* @__PURE__ */ new WeakMap(), Me(i, I.current), D(i), oe(!0), K(i, e, !0), Y(e, "TreeGrid init ready", B.current, {
512
+ bodyRowCount: ke(
513
+ M(i)
396
514
  )
397
- }), v.current = null, (u = (i = t.current) == null ? void 0 : i.onReady) == null || u.call(i, o);
515
+ }), B.current = null, (u = (o = t.current) == null ? void 0 : o.onReady) == null || u.call(o, i);
398
516
  }
399
517
  }, 100)
400
518
  );
401
519
  }, "bindTreeGridEvents");
402
520
  export {
403
- tt as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
404
- it as bindTreeGridEvents,
405
- nt as buildTreeGridInitializationOptions,
406
- we as getTreeGridBodyDataCount,
407
- rt as hasTreeGridDisplayDataRows,
408
- ot as replaceTreeGridBodyData
521
+ dt as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
522
+ at as bindTreeGridEvents,
523
+ ft as buildTreeGridInitializationOptions,
524
+ Me as captureTreeGridChangeBaselines,
525
+ ke as getTreeGridBodyDataCount,
526
+ Gt as hasTreeGridDisplayDataRows,
527
+ F as hasTreeGridExplicitEnterMode,
528
+ Tt as replaceTreeGridBodyData,
529
+ je as syncTreeGridChangedCellHighlight
409
530
  };
410
531
  //# sourceMappingURL=treeGridRuntime.js.map