@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.
- package/dist/components/OwpPicker/OwpTimePicker.js +186 -208
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +298 -227
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +487 -0
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +369 -248
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +201 -117
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/constants/gridTheme.js +7 -6
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +27 -26
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +23 -22
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +3 -1
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +14 -6
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +17 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +41 -7
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/treeGrid.d.ts +2 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/treeGridUtil.d.ts +27 -0
- package/dist/utils/treeGridUtil.js +172 -112
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +85 -83
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js +0 -84
- package/dist/components/OwpTreeGrid/internal/treeGridColumnEditRules.js.map +0 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridColumnEditRules.d.ts +0 -60
- package/dist/types/utils/normalizeTimeToHourMinute.d.ts +0 -11
- package/dist/utils/normalizeTimeToHourMinute.js +0 -34
- package/dist/utils/normalizeTimeToHourMinute.js.map +0 -1
|
@@ -1,57 +1,79 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (e, t) =>
|
|
3
|
-
import { getTreeGridTextResourceUrl as
|
|
4
|
-
import { isTreeGridRowAddedById as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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
|
|
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
|
-
),
|
|
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 =
|
|
39
|
+
const t = V.get(e);
|
|
18
40
|
if (t)
|
|
19
41
|
return t;
|
|
20
42
|
try {
|
|
21
|
-
const [n, r = ""] = e.split(",", 2),
|
|
22
|
-
for (let
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
return
|
|
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"),
|
|
30
|
-
if (!e ||
|
|
31
|
-
return
|
|
32
|
-
const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""],
|
|
33
|
-
return `${n}${
|
|
34
|
-
}, "appendNoCacheQuery"),
|
|
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,
|
|
38
|
-
if (!(r === void 0 && !
|
|
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),
|
|
42
|
-
|
|
63
|
+
r !== void 0 && (t.CanEdit = r), d.forEach((l) => {
|
|
64
|
+
l && (e.SetValue(
|
|
43
65
|
t,
|
|
44
|
-
`${
|
|
45
|
-
|
|
66
|
+
`${l}Class`,
|
|
67
|
+
T ? j : "",
|
|
46
68
|
0
|
|
47
|
-
), e.SetValue(t, `${
|
|
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"),
|
|
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"),
|
|
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:
|
|
68
|
-
useDataUrl:
|
|
69
|
-
width:
|
|
70
|
-
height:
|
|
71
|
-
languageId:
|
|
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:
|
|
75
|
-
Data:
|
|
96
|
+
Layout: n ? { Data: n } : { Url: m(t ?? "") },
|
|
97
|
+
Data: ge(T, r, d),
|
|
76
98
|
Text: {
|
|
77
|
-
Url:
|
|
99
|
+
Url: ue(C)
|
|
78
100
|
},
|
|
79
|
-
width:
|
|
80
|
-
height:
|
|
101
|
+
width: l,
|
|
102
|
+
height: h,
|
|
81
103
|
Debug: "Error"
|
|
82
|
-
}), "buildTreeGridInitializationOptions"),
|
|
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"),
|
|
114
|
+
}, "parseTreeGridPositiveNumber"), P = /* @__PURE__ */ c((e, t, n, r) => {
|
|
93
115
|
if (!t || !n)
|
|
94
116
|
return;
|
|
95
|
-
const
|
|
96
|
-
return
|
|
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"),
|
|
100
|
-
const r = typeof performance < "u" ? performance.now() : Date.now(),
|
|
101
|
-
if (!
|
|
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
|
|
104
|
-
let
|
|
125
|
+
const l = /* @__PURE__ */ new Set();
|
|
126
|
+
let h = 0;
|
|
105
127
|
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
106
128
|
try {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
116
|
-
typeof e.RefreshRow == "function" && e.RefreshRow(
|
|
117
|
-
}),
|
|
118
|
-
updatedCellCount:
|
|
119
|
-
updatedRowCount:
|
|
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"),
|
|
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"),
|
|
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"),
|
|
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"),
|
|
131
|
-
if (!(!t || r === void 0 || !
|
|
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"),
|
|
134
|
-
const t = typeof e == "number" ? e : typeof e == "string" ?
|
|
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"),
|
|
138
|
-
const r = /* @__PURE__ */ c((
|
|
139
|
-
|
|
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"),
|
|
147
|
-
const t = typeof e == "string" ?
|
|
148
|
-
return
|
|
149
|
-
}, "hasTreeGridCellHighlightClass"),
|
|
150
|
-
if (!t || !n || !
|
|
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"),
|
|
155
|
-
if (!t || !
|
|
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
|
|
158
|
-
e.GetAttribute(t, n, "Color") ??
|
|
230
|
+
const d = W(r), T = W(
|
|
231
|
+
e.GetAttribute(t, n, "Color") ?? ce
|
|
159
232
|
);
|
|
160
|
-
if (!(!
|
|
161
|
-
return
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
233
|
+
if (!(!d || !T))
|
|
234
|
+
return J(
|
|
235
|
+
Z(
|
|
236
|
+
d,
|
|
237
|
+
T,
|
|
238
|
+
be
|
|
166
239
|
)
|
|
167
240
|
);
|
|
168
|
-
}, "resolveTreeGridSelectedHighlightBackgroundColor"),
|
|
169
|
-
if (!(r || !t || !
|
|
170
|
-
return
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
247
|
+
me
|
|
175
248
|
)
|
|
176
249
|
);
|
|
177
|
-
}, "resolveTreeGridSelectedHighlightTextColor"),
|
|
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:
|
|
183
|
-
b:
|
|
184
|
-
selectedCellBackgroundColor:
|
|
185
|
-
hoverCellBackgroundColor:
|
|
255
|
+
g: d,
|
|
256
|
+
b: T,
|
|
257
|
+
selectedCellBackgroundColor: l,
|
|
258
|
+
hoverCellBackgroundColor: h
|
|
186
259
|
}) => {
|
|
187
|
-
const
|
|
260
|
+
const C = He(
|
|
188
261
|
e,
|
|
189
262
|
t,
|
|
190
263
|
n,
|
|
191
|
-
|
|
264
|
+
l
|
|
192
265
|
);
|
|
193
|
-
if (
|
|
266
|
+
if (C)
|
|
267
|
+
return C;
|
|
268
|
+
if (O(e, t, n) && y(r, d, T, _e))
|
|
194
269
|
return l;
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
|
|
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 (
|
|
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) =>
|
|
212
|
-
}, "hasTreeGridDisplayDataRows"),
|
|
213
|
-
var
|
|
214
|
-
const r = (
|
|
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"),
|
|
293
|
+
}, "replaceTreeGridBodyData"), at = /* @__PURE__ */ c(({
|
|
221
294
|
id: e,
|
|
222
295
|
latestEventHandlersRef: t,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
|
244
|
-
window.TGSetEvent("OnRowAdd", e, (
|
|
245
|
-
var u,
|
|
246
|
-
|
|
247
|
-
}), window.TGSetEvent("OnRowAdded", e, (
|
|
248
|
-
|
|
249
|
-
}), window.TGSetEvent("OnRowRemove", e, (
|
|
250
|
-
|
|
251
|
-
}), window.TGSetEvent("OnCanRowDelete", e, (
|
|
252
|
-
var
|
|
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
|
|
256
|
-
if (typeof
|
|
326
|
+
const s = (G = t.current) == null ? void 0 : G.onBeforeRowUndelete;
|
|
327
|
+
if (typeof s != "function")
|
|
257
328
|
return u;
|
|
258
|
-
const
|
|
329
|
+
const f = /* @__PURE__ */ c((E) => {
|
|
259
330
|
window.setTimeout(() => {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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
|
|
270
|
-
return
|
|
271
|
-
|
|
272
|
-
}), 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
|
|
345
|
+
return f("undelete"), 0;
|
|
275
346
|
}
|
|
276
|
-
}), typeof (
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
-
|
|
288
|
-
|
|
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
|
-
|
|
291
|
-
|
|
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
|
-
|
|
295
|
-
var
|
|
296
|
-
(
|
|
297
|
-
|
|
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
|
-
|
|
395
|
+
s
|
|
302
396
|
);
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
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, (
|
|
317
|
-
var
|
|
318
|
-
const u =
|
|
319
|
-
|
|
320
|
-
canEdit:
|
|
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 ?
|
|
323
|
-
}),
|
|
324
|
-
}), window.TGSetEvent("OnGetCellStyle", e, (
|
|
325
|
-
if (
|
|
326
|
-
return
|
|
327
|
-
}), window.TGSetEvent("OnGetDefaultColor", e, (
|
|
328
|
-
if (!(!
|
|
329
|
-
return
|
|
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
|
-
|
|
453
|
+
l.current
|
|
334
454
|
);
|
|
335
|
-
}), window.TGSetEvent("OnGetColor", e, (
|
|
336
|
-
if (!
|
|
337
|
-
return
|
|
338
|
-
grid:
|
|
339
|
-
row:
|
|
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:
|
|
342
|
-
g:
|
|
343
|
-
b:
|
|
344
|
-
selectedCellBackgroundColor:
|
|
345
|
-
hoverCellBackgroundColor:
|
|
461
|
+
r: s,
|
|
462
|
+
g: f,
|
|
463
|
+
b: G,
|
|
464
|
+
selectedCellBackgroundColor: C.current,
|
|
465
|
+
hoverCellBackgroundColor: p.current
|
|
346
466
|
});
|
|
347
|
-
}), window.TGSetEvent("OnAfterValueChanged", e, (
|
|
348
|
-
var
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
-
|
|
361
|
-
var u,
|
|
362
|
-
const
|
|
363
|
-
(
|
|
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 (
|
|
366
|
-
var
|
|
367
|
-
(
|
|
368
|
-
|
|
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, (
|
|
495
|
+
}), window.TGSetEvent("OnSort", e, (i, o) => {
|
|
374
496
|
var u;
|
|
375
|
-
if (!(!
|
|
376
|
-
return
|
|
377
|
-
rowId: (u =
|
|
378
|
-
col:
|
|
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, (
|
|
381
|
-
|
|
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
|
-
|
|
386
|
-
var
|
|
387
|
-
if (!
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
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
|