@owp/core 2.5.17 → 2.5.19

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