@owp/core 2.5.17 → 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/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpPicker/OwpTimePicker.js +149 -133
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +273 -224
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +442 -108
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +276 -195
- 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/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.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/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.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 +6 -6
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +3 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +33 -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 +163 -108
- 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,15 +1,13 @@
|
|
|
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 {
|
|
10
|
-
|
|
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 = {
|
|
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";
|
|
9
|
+
import { isEmpty as he } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
10
|
+
const dt = 300, Re = 3, pe = {
|
|
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
|
-
},
|
|
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(
|
|
30
28
|
Boolean
|
|
31
|
-
),
|
|
29
|
+
), F = /* @__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 =
|
|
31
|
+
const n = pe[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"),
|
|
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) => {
|
|
39
37
|
if (!e || !e.startsWith("data:"))
|
|
40
38
|
return e;
|
|
41
|
-
const t =
|
|
39
|
+
const t = V.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),
|
|
46
|
-
for (let p = 0; p <
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
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;
|
|
50
48
|
} catch {
|
|
51
49
|
return e;
|
|
52
50
|
}
|
|
53
|
-
}, "resolveTreeGridInlineUrl"),
|
|
51
|
+
}, "resolveTreeGridInlineUrl"), m = /* @__PURE__ */ c((e) => {
|
|
54
52
|
if (!e || q(e))
|
|
55
|
-
return
|
|
53
|
+
return we(e);
|
|
56
54
|
const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], d = n.includes("?") ? "&" : "?";
|
|
57
55
|
return `${n}${d}noCache=${Date.now()}${r}`;
|
|
58
|
-
}, "appendNoCacheQuery"),
|
|
56
|
+
}, "appendNoCacheQuery"), x = /* @__PURE__ */ c((e, t, n) => {
|
|
59
57
|
if (!e)
|
|
60
58
|
return;
|
|
61
|
-
const r = n.canEdit, d = n.highlightColumns ?? [],
|
|
59
|
+
const r = n.canEdit, d = n.highlightColumns ?? [], T = n.highlightBackgroundColor;
|
|
62
60
|
if (!(r === void 0 && !d.length)) {
|
|
63
61
|
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
64
62
|
try {
|
|
65
|
-
r !== void 0 && (t.CanEdit = r), d.forEach((
|
|
66
|
-
|
|
63
|
+
r !== void 0 && (t.CanEdit = r), d.forEach((l) => {
|
|
64
|
+
l && (e.SetValue(
|
|
67
65
|
t,
|
|
68
|
-
`${
|
|
69
|
-
|
|
66
|
+
`${l}Class`,
|
|
67
|
+
T ? j : "",
|
|
70
68
|
0
|
|
71
|
-
), e.SetValue(t, `${
|
|
69
|
+
), e.SetValue(t, `${l}Color`, T ?? "", 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"),
|
|
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) => {
|
|
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"),
|
|
84
|
+
}, "applyTreeGridBeforeRowUndeleteAction"), ge = /* @__PURE__ */ c((e, t, n) => e ? { Url: ve(t) } : { Data: { Body: [he(n) ? [] : n] } }, "buildTreeGridDataSource"), ft = /* @__PURE__ */ c(({
|
|
87
85
|
id: e,
|
|
88
86
|
layoutUrl: t,
|
|
89
87
|
layoutData: n,
|
|
90
88
|
dataUrl: r,
|
|
91
89
|
bodyData: d,
|
|
92
|
-
useDataUrl:
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
95
|
-
languageId:
|
|
90
|
+
useDataUrl: T,
|
|
91
|
+
width: l,
|
|
92
|
+
height: h,
|
|
93
|
+
languageId: C
|
|
96
94
|
}) => ({
|
|
97
95
|
id: e,
|
|
98
|
-
Layout: n ? { Data: n } : { Url:
|
|
99
|
-
Data:
|
|
96
|
+
Layout: n ? { Data: n } : { Url: m(t ?? "") },
|
|
97
|
+
Data: ge(T, r, d),
|
|
100
98
|
Text: {
|
|
101
|
-
Url:
|
|
99
|
+
Url: ue(C)
|
|
102
100
|
},
|
|
103
|
-
width:
|
|
104
|
-
height:
|
|
101
|
+
width: l,
|
|
102
|
+
height: h,
|
|
105
103
|
Debug: "Error"
|
|
106
|
-
}), "buildTreeGridInitializationOptions"),
|
|
104
|
+
}), "buildTreeGridInitializationOptions"), M = /* @__PURE__ */ c((e) => Ce(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), $ = /* @__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,114 +111,165 @@ 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"),
|
|
114
|
+
}, "parseTreeGridPositiveNumber"), P = /* @__PURE__ */ c((e, t, n, r) => {
|
|
117
115
|
if (!t || !n)
|
|
118
116
|
return;
|
|
119
|
-
const d = e.GetAttribute(t, n, r),
|
|
120
|
-
return
|
|
117
|
+
const d = e.GetAttribute(t, n, r), T = $(d);
|
|
118
|
+
return T !== void 0 ? T : $(
|
|
121
119
|
t[`${n}${r}`]
|
|
122
120
|
);
|
|
123
|
-
}, "getTreeGridHeaderCellSpanAttribute"),
|
|
124
|
-
const r = typeof performance < "u" ? performance.now() : Date.now(), d = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((
|
|
125
|
-
if (!d.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)
|
|
126
124
|
return;
|
|
127
|
-
const
|
|
128
|
-
let
|
|
125
|
+
const l = /* @__PURE__ */ new Set();
|
|
126
|
+
let h = 0;
|
|
129
127
|
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
130
128
|
try {
|
|
131
|
-
d.forEach((
|
|
132
|
-
|
|
133
|
-
|
|
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);
|
|
134
132
|
});
|
|
135
133
|
});
|
|
136
134
|
} finally {
|
|
137
135
|
typeof e.EndUpdate == "function" && e.EndUpdate();
|
|
138
136
|
}
|
|
139
|
-
|
|
140
|
-
typeof e.RefreshRow == "function" && e.RefreshRow(
|
|
137
|
+
l.size && (n && l.forEach((C) => {
|
|
138
|
+
typeof e.RefreshRow == "function" && e.RefreshRow(C);
|
|
141
139
|
}), X(t, "group header button attribute apply"), Y(t, "group header button attribute apply", r, {
|
|
142
|
-
updatedCellCount:
|
|
143
|
-
updatedRowCount:
|
|
140
|
+
updatedCellCount: h,
|
|
141
|
+
updatedRowCount: l.size
|
|
144
142
|
}));
|
|
145
|
-
}, "applyTreeGridGroupHeaderSortButtonAttributes"),
|
|
143
|
+
}, "applyTreeGridGroupHeaderSortButtonAttributes"), ke = /* @__PURE__ */ c((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Fe = /* @__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"),
|
|
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" || !
|
|
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) => {
|
|
152
201
|
const r = e.GetAttribute(t, n, "Color");
|
|
153
202
|
return r != null && r !== "";
|
|
154
|
-
}, "hasExplicitTreeGridCellColor"),
|
|
155
|
-
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)))
|
|
156
205
|
return r;
|
|
157
|
-
}, "getEditableTreeGridCellDefaultColor"),
|
|
158
|
-
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;
|
|
159
208
|
if (!(t === void 0 || !Number.isFinite(t)))
|
|
160
209
|
return [t >> 16 & 255, t >> 8 & 255, t & 255];
|
|
161
|
-
}, "resolveTreeGridColorRgb"),
|
|
162
|
-
const r = /* @__PURE__ */ c((d,
|
|
163
|
-
d * (1 - 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
|
|
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"),
|
|
171
|
-
const t = typeof e == "string" ?
|
|
172
|
-
return
|
|
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));
|
|
173
222
|
}, "hasTreeGridCellHighlightClass"), O = /* @__PURE__ */ c((e, t, n) => {
|
|
174
223
|
if (!t || !n || !S(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"),
|
|
179
|
-
if (!t || !O(e, t, n) || !
|
|
227
|
+
}, "isTreeGridSelectedCellState"), He = /* @__PURE__ */ c((e, t, n, r) => {
|
|
228
|
+
if (!t || !O(e, t, n) || !ee(e.GetAttribute(t, n, "Class")))
|
|
180
229
|
return;
|
|
181
|
-
const d =
|
|
182
|
-
e.GetAttribute(t, n, "Color") ??
|
|
230
|
+
const d = W(r), T = W(
|
|
231
|
+
e.GetAttribute(t, n, "Color") ?? ce
|
|
183
232
|
);
|
|
184
|
-
if (!(!d || !
|
|
185
|
-
return
|
|
186
|
-
|
|
233
|
+
if (!(!d || !T))
|
|
234
|
+
return J(
|
|
235
|
+
Z(
|
|
187
236
|
d,
|
|
188
|
-
|
|
189
|
-
|
|
237
|
+
T,
|
|
238
|
+
be
|
|
190
239
|
)
|
|
191
240
|
);
|
|
192
|
-
}, "resolveTreeGridSelectedHighlightBackgroundColor"),
|
|
193
|
-
if (!(r || !t || !O(e, t, n) || !
|
|
194
|
-
return
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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,
|
|
246
|
+
Le,
|
|
247
|
+
me
|
|
199
248
|
)
|
|
200
249
|
);
|
|
201
|
-
}, "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(({
|
|
202
251
|
grid: e,
|
|
203
252
|
row: t,
|
|
204
253
|
col: n,
|
|
205
254
|
r,
|
|
206
255
|
g: d,
|
|
207
|
-
b:
|
|
208
|
-
selectedCellBackgroundColor:
|
|
209
|
-
hoverCellBackgroundColor:
|
|
256
|
+
b: T,
|
|
257
|
+
selectedCellBackgroundColor: l,
|
|
258
|
+
hoverCellBackgroundColor: h
|
|
210
259
|
}) => {
|
|
211
|
-
const
|
|
260
|
+
const C = He(
|
|
212
261
|
e,
|
|
213
262
|
t,
|
|
214
263
|
n,
|
|
215
|
-
|
|
264
|
+
l
|
|
216
265
|
);
|
|
217
|
-
if (
|
|
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)))
|
|
266
|
+
if (C)
|
|
222
267
|
return C;
|
|
223
|
-
|
|
268
|
+
if (O(e, t, n) && y(r, d, T, _e))
|
|
269
|
+
return l;
|
|
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) => {
|
|
224
273
|
if (!e)
|
|
225
274
|
return !1;
|
|
226
275
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
@@ -233,7 +282,7 @@ const ut = 300, _e = 3, Se = {
|
|
|
233
282
|
return !1;
|
|
234
283
|
}
|
|
235
284
|
return Object.values(e.Rows ?? {}).some((t) => S(t));
|
|
236
|
-
}, "hasTreeGridDisplayDataRows"),
|
|
285
|
+
}, "hasTreeGridDisplayDataRows"), Tt = /* @__PURE__ */ c((e, t, n) => {
|
|
237
286
|
var d;
|
|
238
287
|
const r = (d = e.Data) == null ? void 0 : d.Data;
|
|
239
288
|
e.Data.Data = {
|
|
@@ -241,31 +290,28 @@ const ut = 300, _e = 3, Se = {
|
|
|
241
290
|
Data: { Body: [t || []] },
|
|
242
291
|
Url: ""
|
|
243
292
|
}, e.ReloadBody(n);
|
|
244
|
-
}, "replaceTreeGridBodyData"),
|
|
293
|
+
}, "replaceTreeGridBodyData"), at = /* @__PURE__ */ c(({
|
|
245
294
|
id: e,
|
|
246
295
|
latestEventHandlersRef: t,
|
|
247
296
|
layoutHasExplicitEnterModeRef: n,
|
|
248
297
|
highlightEditableCellsRef: r,
|
|
249
298
|
highlightChangedCellsRef: d,
|
|
250
|
-
syncDeletedRowCanEditRef:
|
|
251
|
-
editableCellBackgroundColorValueRef:
|
|
252
|
-
changedCellBackgroundColorRef:
|
|
253
|
-
selectedCellBackgroundColorRef:
|
|
299
|
+
syncDeletedRowCanEditRef: T,
|
|
300
|
+
editableCellBackgroundColorValueRef: l,
|
|
301
|
+
changedCellBackgroundColorRef: h,
|
|
302
|
+
selectedCellBackgroundColorRef: C,
|
|
254
303
|
hoverCellBackgroundColorRef: p,
|
|
255
|
-
|
|
304
|
+
changedCellBaselineRef: I,
|
|
305
|
+
treeGridInstanceRef: L,
|
|
256
306
|
treeGridInitStartedAtRef: B,
|
|
257
|
-
latestLayoutOverridesRef:
|
|
258
|
-
appliedLayoutOverridesRef:
|
|
259
|
-
appliedBodyDataPropRef:
|
|
260
|
-
|
|
261
|
-
latestColumnEditRuleLookupRef: w,
|
|
262
|
-
appliedColumnEditRulesRef: oe,
|
|
263
|
-
columnEditRulesStateRef: U,
|
|
264
|
-
hasAppliedInitialLayoutRef: N,
|
|
307
|
+
latestLayoutOverridesRef: te,
|
|
308
|
+
appliedLayoutOverridesRef: ne,
|
|
309
|
+
appliedBodyDataPropRef: re,
|
|
310
|
+
hasAppliedInitialLayoutRef: w,
|
|
265
311
|
syncHasDisplayDataRows: D,
|
|
266
|
-
setIsTreeGridReady:
|
|
312
|
+
setIsTreeGridReady: oe
|
|
267
313
|
}) => {
|
|
268
|
-
const
|
|
314
|
+
const a = t.current;
|
|
269
315
|
if (window.TGSetEvent("OnRowAdd", e, (i, o) => {
|
|
270
316
|
var u, s;
|
|
271
317
|
o.CanEdit = 1, o.CanDelete = 1, (s = (u = t.current) == null ? void 0 : u.onRowAdd) == null || s.call(u, i, o);
|
|
@@ -274,79 +320,114 @@ const ut = 300, _e = 3, Se = {
|
|
|
274
320
|
}), window.TGSetEvent("OnRowRemove", e, (i) => {
|
|
275
321
|
D(i);
|
|
276
322
|
}), window.TGSetEvent("OnCanRowDelete", e, (i, o, u) => {
|
|
277
|
-
var
|
|
323
|
+
var G;
|
|
278
324
|
if (u !== 3)
|
|
279
325
|
return u;
|
|
280
|
-
const s = (
|
|
326
|
+
const s = (G = t.current) == null ? void 0 : G.onBeforeRowUndelete;
|
|
281
327
|
if (typeof s != "function")
|
|
282
328
|
return u;
|
|
283
|
-
const f = /* @__PURE__ */ c((
|
|
329
|
+
const f = /* @__PURE__ */ c((E) => {
|
|
284
330
|
window.setTimeout(() => {
|
|
285
|
-
|
|
286
|
-
|
|
331
|
+
Ne(
|
|
332
|
+
L.current ?? i,
|
|
287
333
|
o,
|
|
288
|
-
|
|
334
|
+
E,
|
|
289
335
|
D
|
|
290
336
|
);
|
|
291
337
|
}, 0);
|
|
292
338
|
}, "scheduleAction");
|
|
293
339
|
try {
|
|
294
|
-
const
|
|
295
|
-
return
|
|
340
|
+
const E = s(i, o);
|
|
341
|
+
return Ue(E) ? (E.then(f).catch(() => {
|
|
296
342
|
f("undelete");
|
|
297
|
-
}), 0) : (f(
|
|
343
|
+
}), 0) : (f(E), 0);
|
|
298
344
|
} catch {
|
|
299
345
|
return f("undelete"), 0;
|
|
300
346
|
}
|
|
301
|
-
}), typeof (
|
|
302
|
-
const i =
|
|
303
|
-
var
|
|
304
|
-
(
|
|
305
|
-
|
|
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(
|
|
351
|
+
R,
|
|
306
352
|
o,
|
|
307
353
|
u,
|
|
308
354
|
s,
|
|
309
355
|
f,
|
|
310
|
-
|
|
311
|
-
|
|
356
|
+
G,
|
|
357
|
+
E
|
|
312
358
|
);
|
|
313
359
|
}, 300);
|
|
314
|
-
window.TGSetEvent("OnClick", e, (o, u, s, f,
|
|
315
|
-
var
|
|
316
|
-
const
|
|
317
|
-
|
|
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
|
+
_,
|
|
318
364
|
o,
|
|
319
365
|
u,
|
|
320
366
|
s,
|
|
321
367
|
f,
|
|
322
|
-
|
|
323
|
-
|
|
368
|
+
G,
|
|
369
|
+
E
|
|
324
370
|
);
|
|
325
|
-
if (
|
|
326
|
-
return
|
|
327
|
-
typeof ((
|
|
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);
|
|
328
374
|
});
|
|
329
375
|
}
|
|
330
|
-
typeof (
|
|
376
|
+
(typeof (a == null ? void 0 : a.onClickButton) == "function" || typeof (a == null ? void 0 : a.onInternalButtonClick) == "function") && window.TGSetEvent(
|
|
331
377
|
"OnClickButton",
|
|
332
378
|
e,
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
(
|
|
336
|
-
|
|
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,
|
|
337
383
|
i,
|
|
338
384
|
o,
|
|
339
385
|
u,
|
|
340
386
|
s
|
|
341
387
|
);
|
|
342
|
-
|
|
388
|
+
if (f !== void 0)
|
|
389
|
+
return f;
|
|
390
|
+
(_ = (R = t.current) == null ? void 0 : R.onClickButton) == null || _.call(
|
|
391
|
+
R,
|
|
392
|
+
i,
|
|
393
|
+
o,
|
|
394
|
+
u,
|
|
395
|
+
s
|
|
396
|
+
);
|
|
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
|
+
}
|
|
343
424
|
), window.TGSetEvent("OnRowDelete", e, (i, o, u) => {
|
|
344
|
-
var f,
|
|
345
|
-
const s =
|
|
346
|
-
|
|
347
|
-
canEdit:
|
|
425
|
+
var f, G;
|
|
426
|
+
const s = A(o) ? N(o) : [];
|
|
427
|
+
x(i, o, {
|
|
428
|
+
canEdit: T.current !== !1 ? 2 : void 0,
|
|
348
429
|
highlightColumns: s
|
|
349
|
-
}), D(i), (
|
|
430
|
+
}), D(i), (G = (f = t.current) == null ? void 0 : f.onRowDelete) == null || G.call(
|
|
350
431
|
f,
|
|
351
432
|
i,
|
|
352
433
|
o,
|
|
@@ -354,54 +435,56 @@ const ut = 300, _e = 3, Se = {
|
|
|
354
435
|
);
|
|
355
436
|
}), window.TGSetEvent("OnRowUndelete", e, (i, o) => {
|
|
356
437
|
var s, f;
|
|
357
|
-
const u =
|
|
358
|
-
|
|
359
|
-
canEdit:
|
|
438
|
+
const u = A(o) ? N(o) : [];
|
|
439
|
+
x(i, o, {
|
|
440
|
+
canEdit: T.current !== !1 ? 1 : void 0,
|
|
360
441
|
highlightColumns: u,
|
|
361
|
-
highlightBackgroundColor: u.length ?
|
|
442
|
+
highlightBackgroundColor: u.length ? h.current : void 0
|
|
362
443
|
}), D(i), (f = (s = t.current) == null ? void 0 : s.onRowUndelete) == null || f.call(s, i, o);
|
|
363
444
|
}), window.TGSetEvent("OnGetCellStyle", e, (i, o, u, s, f) => {
|
|
364
445
|
if (s === "TextColor")
|
|
365
|
-
return
|
|
446
|
+
return Qe(i, o, u, f);
|
|
366
447
|
}), window.TGSetEvent("OnGetDefaultColor", e, (i, o, u) => {
|
|
367
448
|
if (!(!r.current || !S(o)))
|
|
368
|
-
return
|
|
449
|
+
return Ye(
|
|
369
450
|
i,
|
|
370
451
|
o,
|
|
371
452
|
u,
|
|
372
|
-
|
|
453
|
+
l.current
|
|
373
454
|
);
|
|
374
|
-
}), window.TGSetEvent("OnGetColor", e, (i, o, u, s, f,
|
|
375
|
-
if (!
|
|
376
|
-
return
|
|
455
|
+
}), window.TGSetEvent("OnGetColor", e, (i, o, u, s, f, G, E) => {
|
|
456
|
+
if (!E)
|
|
457
|
+
return et({
|
|
377
458
|
grid: i,
|
|
378
459
|
row: o,
|
|
379
460
|
col: u,
|
|
380
461
|
r: s,
|
|
381
462
|
g: f,
|
|
382
|
-
b:
|
|
383
|
-
selectedCellBackgroundColor:
|
|
463
|
+
b: G,
|
|
464
|
+
selectedCellBackgroundColor: C.current,
|
|
384
465
|
hoverCellBackgroundColor: p.current
|
|
385
466
|
});
|
|
386
467
|
}), window.TGSetEvent("OnAfterValueChanged", e, (i, o, u, s) => {
|
|
387
|
-
var
|
|
388
|
-
|
|
389
|
-
|
|
468
|
+
var G, E;
|
|
469
|
+
d.current && S(o) && je({
|
|
470
|
+
gridId: e,
|
|
471
|
+
grid: i,
|
|
390
472
|
row: o,
|
|
391
473
|
col: u,
|
|
392
|
-
backgroundColor:
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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(
|
|
397
480
|
"OnSelect",
|
|
398
481
|
e,
|
|
399
|
-
|
|
482
|
+
b((i) => {
|
|
400
483
|
var u, s;
|
|
401
484
|
const o = i.GetSelRows() ?? [];
|
|
402
485
|
(s = (u = t.current) == null ? void 0 : u.onSelect) == null || s.call(u, o);
|
|
403
486
|
}, 100)
|
|
404
|
-
), typeof (
|
|
487
|
+
), typeof (a == null ? void 0 : a.onSave) == "function" && window.TGSetEvent("OnSave", e, (i, o, u) => {
|
|
405
488
|
var s, f;
|
|
406
489
|
(f = (s = t.current) == null ? void 0 : s.onSave) == null || f.call(
|
|
407
490
|
s,
|
|
@@ -411,27 +494,23 @@ const ut = 300, _e = 3, Se = {
|
|
|
411
494
|
);
|
|
412
495
|
}), window.TGSetEvent("OnSort", e, (i, o) => {
|
|
413
496
|
var u;
|
|
414
|
-
if (!(!o || !
|
|
415
|
-
return X(e, "group header sort blocked"),
|
|
497
|
+
if (!(!o || !H(i, i.ARow, o)))
|
|
498
|
+
return X(e, "group header sort blocked"), le(e, "group header sort blocked", {
|
|
416
499
|
rowId: (u = i.ARow) == null ? void 0 : u.id,
|
|
417
500
|
col: o
|
|
418
501
|
}), -1;
|
|
419
502
|
}), window.TGSetEvent("OnRenderStart", e, (i) => {
|
|
420
|
-
|
|
421
|
-
}), window.TGSetEvent("OnDataGet", e, (i, o, u) => ((o == null ? void 0 : o.Name) === "Layout" && typeof u == "string" && (n.current =
|
|
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(
|
|
422
505
|
"OnReady",
|
|
423
506
|
e,
|
|
424
|
-
|
|
507
|
+
b((i) => {
|
|
425
508
|
var o, u;
|
|
426
|
-
if (!
|
|
427
|
-
const s =
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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)
|
|
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)
|
|
435
514
|
)
|
|
436
515
|
}), B.current = null, (u = (o = t.current) == null ? void 0 : o.onReady) == null || u.call(o, i);
|
|
437
516
|
}
|
|
@@ -439,12 +518,14 @@ const ut = 300, _e = 3, Se = {
|
|
|
439
518
|
);
|
|
440
519
|
}, "bindTreeGridEvents");
|
|
441
520
|
export {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
|
449
530
|
};
|
|
450
531
|
//# sourceMappingURL=treeGridRuntime.js.map
|