@owp/core 2.5.38 → 2.5.40
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/OwpErrorBoundary/OwpErrorBoundary.js +56 -25
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +222 -217
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +2 -2
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/utils/treeGridUtil.js +250 -210
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var o = (e, n) =>
|
|
3
|
-
import { getTreeGridTextResourceUrl as
|
|
4
|
-
import { isTreeGridRowAddedById as
|
|
5
|
-
import { applyTreeGridLayoutToGrid as
|
|
6
|
-
import { resolveTreeGridSelectedRows as
|
|
7
|
-
import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as
|
|
8
|
-
import { countTreeGridPerf as Je, logTreeGridPerf as
|
|
1
|
+
var hn = Object.defineProperty;
|
|
2
|
+
var o = (e, n) => hn(e, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { getTreeGridTextResourceUrl as Rn, TREEGRID_CELL_CHANGED_CLASS as Me, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as An } from "../../../constants/treeGrid.js";
|
|
4
|
+
import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as q, getTreeGridCellComparableValue as ue, clearTreeGridCellHighlightById as Xe, highlightTreeGridCellById as We, normalizeTreeGridExternalRows as gn, getTreeGridAddedRowBaselineValue as _n, removeTreeGridAddedRowHighlightColumn as mn, appendTreeGridAddedRowHighlightColumn as Ln } from "../../../utils/treeGridUtil.js";
|
|
5
|
+
import { applyTreeGridLayoutToGrid as On } from "./treeGridLayout.js";
|
|
6
|
+
import { resolveTreeGridSelectedRows as xn } from "./treeGridSelection.js";
|
|
7
|
+
import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as In, TREE_GRID_SELECT_ALL_CHECKED_CLASS as _e, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as me, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Le, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as Oe, TREE_GRID_THEME_WRAPPER_CLASS as wn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as bn, TREE_GRID_ERROR_CELL_CLASS as Dn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as yn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as Pn } from "./treeGridTheme.js";
|
|
8
|
+
import { countTreeGridPerf as Je, logTreeGridPerf as $n, measureTreeGridPerf as Ke } from "./utils/perf.js";
|
|
9
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 { isEmpty as
|
|
10
|
+
import { isEmpty as vn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
11
11
|
import { get as Fn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
|
|
12
|
-
const
|
|
12
|
+
const yr = 300, Bn = 3, Nn = {
|
|
13
13
|
1: {
|
|
14
14
|
onEnter: "TabDownEdit",
|
|
15
15
|
onEnterEdit: "AcceptEdit AND TabDownEdit,1"
|
|
@@ -26,37 +26,37 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
26
26
|
onEnter: "TabRightEditAdd",
|
|
27
27
|
onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, kn = [240, 240, 240], Un = [248, 248, 248], Vn = [255, 255, 255], Mn = [255, 255, 254], Xn = [242, 242, 242], Wn = [
|
|
30
30
|
[255, 210, 210],
|
|
31
31
|
[249, 209, 209],
|
|
32
32
|
[115, 16, 11]
|
|
33
|
-
],
|
|
33
|
+
], Jn = "transparent", xe = "Button", Kn = /* @__PURE__ */ new Set(["Panel"]), Ie = Me.split(/\s+/).filter(
|
|
34
34
|
Boolean
|
|
35
|
-
),
|
|
35
|
+
), jn = /* @__PURE__ */ new Set([
|
|
36
36
|
"Text",
|
|
37
37
|
"Lines",
|
|
38
38
|
"Int",
|
|
39
39
|
"Float",
|
|
40
40
|
"Date",
|
|
41
41
|
"Pass"
|
|
42
|
-
]),
|
|
42
|
+
]), we = /* @__PURE__ */ o((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), Hn = {
|
|
43
43
|
Visible: "1",
|
|
44
44
|
CanHide: "0",
|
|
45
45
|
Delete: "1",
|
|
46
46
|
Width: "33"
|
|
47
|
-
},
|
|
47
|
+
}, zn = {
|
|
48
48
|
Spanned: "1"
|
|
49
49
|
}, W = {
|
|
50
50
|
OnClickCell: "Focus"
|
|
51
51
|
}, J = {
|
|
52
52
|
OnClickPanelSelectAll: "SelectAll OR DeselectAll"
|
|
53
|
-
}, je = "Panel", He = ["Formula", "FormulaFormula"],
|
|
53
|
+
}, je = "Panel", He = ["Formula", "FormulaFormula"], Yn = /<Grid\b[^>]*>/i, Zn = /<\/Grid\s*>/i, qn = /<Toolbar\b[^>]*\/?>/i, Qn = [
|
|
54
54
|
"Undo",
|
|
55
55
|
"Deleting",
|
|
56
56
|
"Selecting",
|
|
57
57
|
"SelectingSingle",
|
|
58
58
|
"SuppressCfg"
|
|
59
|
-
],
|
|
59
|
+
], et = {
|
|
60
60
|
addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
|
|
61
61
|
deleteRow: [
|
|
62
62
|
"Delete",
|
|
@@ -77,7 +77,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
77
77
|
"UndeleteVisibleRowsChildren"
|
|
78
78
|
],
|
|
79
79
|
selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
|
|
80
|
-
}, Q = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), y = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ee = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"),
|
|
80
|
+
}, Q = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), y = /* @__PURE__ */ o((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ee = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), nt = /* @__PURE__ */ o((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), N = /* @__PURE__ */ o((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), fe = /* @__PURE__ */ o((e, n) => !y(e) && !ee(n), "isTreeGridCheckboxSelectionMode"), ze = /* @__PURE__ */ o((e) => {
|
|
81
81
|
const n = e.Cfg;
|
|
82
82
|
return Array.isArray(n) ? n.filter(A) : A(n) ? [n] : [];
|
|
83
83
|
}, "getTreeGridJsonCfgRecords"), ne = /* @__PURE__ */ o((e, n) => {
|
|
@@ -108,7 +108,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
108
108
|
return Object.entries(n).forEach(([r, i]) => {
|
|
109
109
|
B(t, r) || (t = k(t, r, i));
|
|
110
110
|
}), t;
|
|
111
|
-
}, "appendMissingTreeGridXmlTagAttributes"),
|
|
111
|
+
}, "appendMissingTreeGridXmlTagAttributes"), I = /* @__PURE__ */ o((e) => {
|
|
112
112
|
var f;
|
|
113
113
|
const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
|
|
114
114
|
cfgValues: {}
|
|
@@ -132,13 +132,13 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
132
132
|
i === 1 && (C === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
|
|
133
133
|
index: r.index,
|
|
134
134
|
tag: a
|
|
135
|
-
}),
|
|
135
|
+
}), Qn.forEach((h) => {
|
|
136
136
|
const m = Ye(a, h);
|
|
137
137
|
m !== void 0 && (t.cfgValues[h] = m);
|
|
138
138
|
}), t.lastCfgEndIndex = r.index + a.length) : C === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
|
|
139
139
|
index: r.index,
|
|
140
140
|
tag: a
|
|
141
|
-
} : C === "panel" && !t.defaultPanelTag &&
|
|
141
|
+
} : C === "panel" && !t.defaultPanelTag && tt(a) ? t.defaultPanelTag = {
|
|
142
142
|
index: r.index,
|
|
143
143
|
tag: a
|
|
144
144
|
} : C === "animations" && !t.animationsTag && (t.animationsTag = {
|
|
@@ -147,10 +147,10 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
147
147
|
})), S || (i += 1);
|
|
148
148
|
}
|
|
149
149
|
return t;
|
|
150
|
-
}, "scanTreeGridXmlDefaultLayout"),
|
|
150
|
+
}, "scanTreeGridXmlDefaultLayout"), tt = /* @__PURE__ */ o((e) => {
|
|
151
151
|
const n = Ye(e, "Name");
|
|
152
152
|
return n === void 0 || n === "" || n.toLowerCase() === "panel";
|
|
153
|
-
}, "isTreeGridXmlDefaultPanelTag"),
|
|
153
|
+
}, "isTreeGridXmlDefaultPanelTag"), rt = /* @__PURE__ */ o((e) => {
|
|
154
154
|
const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
|
|
155
155
|
let r;
|
|
156
156
|
for (; r = n.exec(e); ) {
|
|
@@ -165,8 +165,8 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
return t;
|
|
168
|
-
}, "getLeadingTreeGridXmlHeaderTags"),
|
|
169
|
-
const n =
|
|
168
|
+
}, "getLeadingTreeGridXmlHeaderTags"), it = /* @__PURE__ */ o((e) => {
|
|
169
|
+
const n = rt(e);
|
|
170
170
|
if (n.length <= 1)
|
|
171
171
|
return {
|
|
172
172
|
headContent: e,
|
|
@@ -189,38 +189,38 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
189
189
|
)}`,
|
|
190
190
|
isApplied: !0
|
|
191
191
|
};
|
|
192
|
-
}, "applyTreeGridXmlHeadPanelRowSpanDefault"),
|
|
193
|
-
if (n.gridOpenTagEndIndex === void 0 || !
|
|
192
|
+
}, "applyTreeGridXmlHeadPanelRowSpanDefault"), ot = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), st = /* @__PURE__ */ o((e) => !!e.defaultPanelTag || nn(e.cfgValues) || tn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), ct = /* @__PURE__ */ o((e, n) => {
|
|
193
|
+
if (n.gridOpenTagEndIndex === void 0 || !st(n))
|
|
194
194
|
return e;
|
|
195
195
|
const t = n.defaultPanelTag;
|
|
196
196
|
if (t) {
|
|
197
197
|
const i = j(
|
|
198
198
|
t.tag,
|
|
199
|
-
|
|
199
|
+
zn
|
|
200
200
|
);
|
|
201
201
|
return i === t.tag ? e : `${e.slice(0, t.index)}${i}${e.slice(
|
|
202
202
|
t.index + t.tag.length
|
|
203
203
|
)}`;
|
|
204
204
|
}
|
|
205
|
-
const r =
|
|
205
|
+
const r = ot(n);
|
|
206
206
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
207
207
|
<Panel Spanned="1" />${e.slice(
|
|
208
208
|
r
|
|
209
209
|
)}`;
|
|
210
|
-
}, "applyTreeGridXmlDefaultPanelSpannedLayout"),
|
|
210
|
+
}, "applyTreeGridXmlDefaultPanelSpannedLayout"), lt = /* @__PURE__ */ o((e) => {
|
|
211
211
|
if (!/<Head\b/i.test(e) || /\bPanelRowSpan\s*[:=]/i.test(e))
|
|
212
212
|
return e;
|
|
213
213
|
let n = !1;
|
|
214
214
|
const t = e.replace(
|
|
215
215
|
/(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
|
|
216
216
|
(r, i, c, f) => {
|
|
217
|
-
const a =
|
|
217
|
+
const a = it(c);
|
|
218
218
|
return a.isApplied ? (n = !0, `${i}${a.headContent}${f}`) : r;
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
|
-
return n ?
|
|
221
|
+
return n ? ct(
|
|
222
222
|
t,
|
|
223
|
-
|
|
223
|
+
I(t)
|
|
224
224
|
) : e;
|
|
225
225
|
}, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Qe = /* @__PURE__ */ o((e) => fe(
|
|
226
226
|
ne(e, "Selecting"),
|
|
@@ -228,7 +228,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
228
228
|
), "isTreeGridJsonCheckboxSelectionLayout"), en = /* @__PURE__ */ o((e) => fe(
|
|
229
229
|
e.Selecting,
|
|
230
230
|
e.SelectingSingle
|
|
231
|
-
), "isTreeGridXmlCheckboxSelectionLayout"), nn = /* @__PURE__ */ o((e) => !y(e.Selecting), "isTreeGridXmlSelectingLayout"), tn = /* @__PURE__ */ o((e) => N(e.Undo, "1") && N(e.Deleting, "2") && N(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"),
|
|
231
|
+
), "isTreeGridXmlCheckboxSelectionLayout"), nn = /* @__PURE__ */ o((e) => !y(e.Selecting), "isTreeGridXmlSelectingLayout"), tn = /* @__PURE__ */ o((e) => N(e.Undo, "1") && N(e.Deleting, "2") && N(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), dt = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), ut = /* @__PURE__ */ o((e, n) => {
|
|
232
232
|
if (n.gridOpenTagEndIndex === void 0 || !nn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
|
|
233
233
|
return e;
|
|
234
234
|
const t = n.defaultActionsTag;
|
|
@@ -241,12 +241,12 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
241
241
|
t.index + t.tag.length
|
|
242
242
|
)}`;
|
|
243
243
|
}
|
|
244
|
-
const r =
|
|
244
|
+
const r = dt(n);
|
|
245
245
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
246
246
|
<Actions OnClickCell="Focus" />${e.slice(
|
|
247
247
|
r
|
|
248
248
|
)}`;
|
|
249
|
-
}, "applyTreeGridXmlDefaultCellClickActionLayout"),
|
|
249
|
+
}, "applyTreeGridXmlDefaultCellClickActionLayout"), ft = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), at = /* @__PURE__ */ o((e, n) => {
|
|
250
250
|
if (n.gridOpenTagEndIndex === void 0 || !en(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
|
|
251
251
|
return e;
|
|
252
252
|
const t = n.defaultActionsTag;
|
|
@@ -259,7 +259,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
259
259
|
t.index + t.tag.length
|
|
260
260
|
)}`;
|
|
261
261
|
}
|
|
262
|
-
const r =
|
|
262
|
+
const r = ft(n);
|
|
263
263
|
return r === void 0 ? e : `${e.slice(
|
|
264
264
|
0,
|
|
265
265
|
r
|
|
@@ -267,25 +267,25 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
267
267
|
<Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
|
|
268
268
|
r
|
|
269
269
|
)}`;
|
|
270
|
-
}, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"),
|
|
270
|
+
}, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Tt = /* @__PURE__ */ o((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Ct = /* @__PURE__ */ o((e, n) => {
|
|
271
271
|
if (n.gridOpenTagEndIndex === void 0 || !tn(n.cfgValues))
|
|
272
272
|
return e;
|
|
273
273
|
const t = n.defaultPanelTag;
|
|
274
274
|
if (t) {
|
|
275
275
|
const c = j(
|
|
276
276
|
t.tag,
|
|
277
|
-
|
|
277
|
+
Hn
|
|
278
278
|
);
|
|
279
279
|
return c === t.tag ? e : `${e.slice(0, t.index)}${c}${e.slice(
|
|
280
280
|
t.index + t.tag.length
|
|
281
281
|
)}`;
|
|
282
282
|
}
|
|
283
|
-
const r =
|
|
283
|
+
const r = Tt(n);
|
|
284
284
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
285
285
|
<Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
|
|
286
286
|
r
|
|
287
287
|
)}`;
|
|
288
|
-
}, "applyTreeGridXmlDefaultDeletePanelLayout"),
|
|
288
|
+
}, "applyTreeGridXmlDefaultDeletePanelLayout"), Et = /* @__PURE__ */ o((e, n) => {
|
|
289
289
|
if (n.hasFastPanel || !en(n.cfgValues))
|
|
290
290
|
return e;
|
|
291
291
|
const t = n.gridOpenTagEndIndex;
|
|
@@ -293,7 +293,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
293
293
|
<Cfg FastPanel="0" />${e.slice(
|
|
294
294
|
t
|
|
295
295
|
)}`;
|
|
296
|
-
}, "applyTreeGridXmlDefaultFastPanelLayout"),
|
|
296
|
+
}, "applyTreeGridXmlDefaultFastPanelLayout"), pt = /* @__PURE__ */ o((e) => {
|
|
297
297
|
const n = e.Cfg;
|
|
298
298
|
if (Array.isArray(n)) {
|
|
299
299
|
n.some((t) => A(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
|
|
@@ -304,7 +304,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
306
|
e.Cfg = { FastPanel: 0 };
|
|
307
|
-
}, "applyTreeGridJsonFastPanelDefault"),
|
|
307
|
+
}, "applyTreeGridJsonFastPanelDefault"), Gt = /* @__PURE__ */ o((e) => {
|
|
308
308
|
const n = e.Actions;
|
|
309
309
|
if (Array.isArray(n)) {
|
|
310
310
|
n.some(
|
|
@@ -317,7 +317,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
319
|
n === void 0 && (e.Actions = { ...J });
|
|
320
|
-
}, "applyTreeGridJsonSelectAllPanelActionDefault"),
|
|
320
|
+
}, "applyTreeGridJsonSelectAllPanelActionDefault"), St = /* @__PURE__ */ o((e) => {
|
|
321
321
|
const n = e.Actions;
|
|
322
322
|
if (Array.isArray(n)) {
|
|
323
323
|
n.some((t) => A(t) && "OnClickCell" in t) || (e.Actions = [{ ...W }, ...n]);
|
|
@@ -328,33 +328,33 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
330
|
n === void 0 && (e.Actions = { ...W });
|
|
331
|
-
}, "applyTreeGridJsonCellClickActionDefault"),
|
|
331
|
+
}, "applyTreeGridJsonCellClickActionDefault"), ht = /* @__PURE__ */ o((e) => {
|
|
332
332
|
try {
|
|
333
333
|
const n = JSON.parse(e);
|
|
334
|
-
return !A(n) || y(ne(n, "Selecting")) ? e : (
|
|
334
|
+
return !A(n) || y(ne(n, "Selecting")) ? e : (St(n), JSON.stringify(n));
|
|
335
335
|
} catch {
|
|
336
336
|
return e;
|
|
337
337
|
}
|
|
338
338
|
}, "applyTreeGridJsonDefaultCellClickActionLayout"), be = /* @__PURE__ */ o((e, n) => {
|
|
339
339
|
const t = e.trim();
|
|
340
|
-
return t ? t.startsWith("{") ?
|
|
340
|
+
return t ? t.startsWith("{") ? ht(e) : ut(
|
|
341
341
|
e,
|
|
342
|
-
n ??
|
|
342
|
+
n ?? I(e)
|
|
343
343
|
) : e;
|
|
344
|
-
}, "applyTreeGridDefaultCellClickActionLayout"),
|
|
344
|
+
}, "applyTreeGridDefaultCellClickActionLayout"), Rt = /* @__PURE__ */ o((e) => {
|
|
345
345
|
try {
|
|
346
346
|
const n = JSON.parse(e);
|
|
347
|
-
return !A(n) || !Qe(n) ? e : (
|
|
347
|
+
return !A(n) || !Qe(n) ? e : (Gt(n), JSON.stringify(n));
|
|
348
348
|
} catch {
|
|
349
349
|
return e;
|
|
350
350
|
}
|
|
351
351
|
}, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), De = /* @__PURE__ */ o((e, n) => {
|
|
352
352
|
const t = e.trim();
|
|
353
|
-
return t ? t.startsWith("{") ?
|
|
353
|
+
return t ? t.startsWith("{") ? Rt(e) : at(
|
|
354
354
|
e,
|
|
355
|
-
n ??
|
|
355
|
+
n ?? I(e)
|
|
356
356
|
) : e;
|
|
357
|
-
}, "applyTreeGridDefaultSelectAllPanelActionLayout"),
|
|
357
|
+
}, "applyTreeGridDefaultSelectAllPanelActionLayout"), At = /* @__PURE__ */ o((e, n) => {
|
|
358
358
|
if (n === void 0)
|
|
359
359
|
return e;
|
|
360
360
|
try {
|
|
@@ -366,7 +366,7 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
366
366
|
} catch {
|
|
367
367
|
return e;
|
|
368
368
|
}
|
|
369
|
-
}, "applyTreeGridJsonDefaultSuppressCfgLayout"),
|
|
369
|
+
}, "applyTreeGridJsonDefaultSuppressCfgLayout"), gt = /* @__PURE__ */ o((e, n, t) => {
|
|
370
370
|
if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
|
|
371
371
|
return e;
|
|
372
372
|
const r = n.defaultCfgTag;
|
|
@@ -381,39 +381,39 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
381
381
|
<Cfg SuppressCfg="${t}" />${e.slice(
|
|
382
382
|
i
|
|
383
383
|
)}`;
|
|
384
|
-
}, "applyTreeGridXmlDefaultSuppressCfgLayout"),
|
|
384
|
+
}, "applyTreeGridXmlDefaultSuppressCfgLayout"), _t = /* @__PURE__ */ o((e, n) => {
|
|
385
385
|
const t = e.trim();
|
|
386
|
-
return n === void 0 || !t ? e : t.startsWith("{") ?
|
|
386
|
+
return n === void 0 || !t ? e : t.startsWith("{") ? At(e, n) : gt(
|
|
387
387
|
e,
|
|
388
|
-
|
|
388
|
+
I(e),
|
|
389
389
|
n
|
|
390
390
|
);
|
|
391
|
-
}, "applyTreeGridDefaultSuppressCfgLayout"),
|
|
391
|
+
}, "applyTreeGridDefaultSuppressCfgLayout"), mt = /* @__PURE__ */ o((e) => He.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Lt = /* @__PURE__ */ o((e) => {
|
|
392
392
|
const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(A) : A(n) ? [n] : [], i = Array.isArray(t) ? t.filter(
|
|
393
393
|
(c) => A(c) && N(c.Kind, "Toolbar")
|
|
394
394
|
) : A(t) && N(t.Kind, "Toolbar") ? [t] : [];
|
|
395
395
|
return [...r, ...i];
|
|
396
|
-
}, "getTreeGridJsonToolbarRecords"),
|
|
396
|
+
}, "getTreeGridJsonToolbarRecords"), Ot = /* @__PURE__ */ o((e, n) => {
|
|
397
397
|
if (!n)
|
|
398
398
|
return e;
|
|
399
399
|
try {
|
|
400
400
|
const t = JSON.parse(e);
|
|
401
401
|
if (!A(t))
|
|
402
402
|
return e;
|
|
403
|
-
const r =
|
|
404
|
-
return r.some(
|
|
403
|
+
const r = Lt(t);
|
|
404
|
+
return r.some(mt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
|
|
405
405
|
} catch {
|
|
406
406
|
return e;
|
|
407
407
|
}
|
|
408
|
-
}, "applyTreeGridJsonDefaultToolbarTotalCountLayout"),
|
|
408
|
+
}, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), xt = /* @__PURE__ */ o((e) => He.some(
|
|
409
409
|
(n) => B(e, n)
|
|
410
|
-
), "hasTreeGridXmlToolbarFormulaAttribute"),
|
|
410
|
+
), "hasTreeGridXmlToolbarFormulaAttribute"), It = /* @__PURE__ */ o((e, n) => {
|
|
411
411
|
if (!n)
|
|
412
412
|
return e;
|
|
413
|
-
const t =
|
|
413
|
+
const t = qn.exec(e);
|
|
414
414
|
if (t) {
|
|
415
415
|
const f = t[0];
|
|
416
|
-
if (
|
|
416
|
+
if (xt(f))
|
|
417
417
|
return e;
|
|
418
418
|
const a = te(
|
|
419
419
|
f,
|
|
@@ -428,13 +428,13 @@ const Dr = 300, vn = 3, Bn = {
|
|
|
428
428
|
"<Toolbar />",
|
|
429
429
|
"Formula",
|
|
430
430
|
n
|
|
431
|
-
), i =
|
|
431
|
+
), i = Zn.exec(e);
|
|
432
432
|
if (i)
|
|
433
433
|
return `${e.slice(0, i.index)} ${r}
|
|
434
434
|
${e.slice(
|
|
435
435
|
i.index
|
|
436
436
|
)}`;
|
|
437
|
-
const c =
|
|
437
|
+
const c = Yn.exec(e);
|
|
438
438
|
return c ? `${e.slice(
|
|
439
439
|
0,
|
|
440
440
|
c.index + c[0].length
|
|
@@ -442,32 +442,32 @@ ${e.slice(
|
|
|
442
442
|
${r}${e.slice(c.index + c[0].length)}` : e;
|
|
443
443
|
}, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), wt = /* @__PURE__ */ o((e, n) => {
|
|
444
444
|
const t = e.trim();
|
|
445
|
-
return !n || !t ? e : t.startsWith("{") ?
|
|
445
|
+
return !n || !t ? e : t.startsWith("{") ? Ot(
|
|
446
446
|
e,
|
|
447
447
|
n
|
|
448
|
-
) :
|
|
449
|
-
}, "applyTreeGridDefaultToolbarTotalCountLayout"),
|
|
448
|
+
) : It(e, n);
|
|
449
|
+
}, "applyTreeGridDefaultToolbarTotalCountLayout"), bt = /* @__PURE__ */ o((e) => {
|
|
450
450
|
try {
|
|
451
451
|
const n = JSON.parse(e);
|
|
452
|
-
return !A(n) || !Qe(n) ? e : (
|
|
452
|
+
return !A(n) || !Qe(n) ? e : (pt(n), JSON.stringify(n));
|
|
453
453
|
} catch {
|
|
454
454
|
return e;
|
|
455
455
|
}
|
|
456
456
|
}, "applyTreeGridJsonDefaultFastPanelLayout"), ye = /* @__PURE__ */ o((e, n) => {
|
|
457
457
|
const t = e.trim();
|
|
458
|
-
return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e :
|
|
458
|
+
return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : bt(e) : Et(
|
|
459
459
|
e,
|
|
460
|
-
n ??
|
|
460
|
+
n ?? I(e)
|
|
461
461
|
) : e;
|
|
462
|
-
}, "applyTreeGridDefaultFastPanelLayout"),
|
|
462
|
+
}, "applyTreeGridDefaultFastPanelLayout"), Dt = /* @__PURE__ */ o((e) => {
|
|
463
463
|
const n = {};
|
|
464
464
|
return e == null || e.forEach((t) => {
|
|
465
465
|
var r;
|
|
466
|
-
(r =
|
|
466
|
+
(r = et[t]) == null || r.forEach((i) => {
|
|
467
467
|
n[i] = "";
|
|
468
468
|
});
|
|
469
469
|
}), n;
|
|
470
|
-
}, "getTreeGridDisabledAnimationAttributes"),
|
|
470
|
+
}, "getTreeGridDisabledAnimationAttributes"), yt = /* @__PURE__ */ o((e, n) => {
|
|
471
471
|
try {
|
|
472
472
|
const t = JSON.parse(e);
|
|
473
473
|
if (!A(t))
|
|
@@ -486,8 +486,8 @@ ${e.slice(
|
|
|
486
486
|
} catch {
|
|
487
487
|
return e;
|
|
488
488
|
}
|
|
489
|
-
}, "applyTreeGridJsonDisabledAnimationsLayout"),
|
|
490
|
-
const t =
|
|
489
|
+
}, "applyTreeGridJsonDisabledAnimationsLayout"), Pt = /* @__PURE__ */ o((e) => qe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), $t = /* @__PURE__ */ o((e, n) => {
|
|
490
|
+
const t = I(e);
|
|
491
491
|
if (t.gridOpenTagEndIndex === void 0)
|
|
492
492
|
return e;
|
|
493
493
|
const r = t.animationsTag;
|
|
@@ -499,19 +499,19 @@ ${e.slice(
|
|
|
499
499
|
}
|
|
500
500
|
const i = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
|
|
501
501
|
return `${e.slice(0, i)}
|
|
502
|
-
${
|
|
502
|
+
${Pt(
|
|
503
503
|
n
|
|
504
504
|
)}${e.slice(i)}`;
|
|
505
505
|
}, "applyTreeGridXmlDisabledAnimationsLayout"), Pe = /* @__PURE__ */ o((e, n) => {
|
|
506
|
-
const t =
|
|
506
|
+
const t = Dt(n);
|
|
507
507
|
if (!Object.keys(t).length)
|
|
508
508
|
return e;
|
|
509
509
|
const r = e.trim();
|
|
510
|
-
return r ? r.startsWith("{") ?
|
|
510
|
+
return r ? r.startsWith("{") ? yt(e, t) : $t(e, t) : e;
|
|
511
511
|
}, "applyTreeGridDisabledAnimationsLayout"), re = /* @__PURE__ */ o((e, n, t, r) => {
|
|
512
512
|
const i = wt(
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
lt(
|
|
514
|
+
_t(e, r)
|
|
515
515
|
),
|
|
516
516
|
t
|
|
517
517
|
), c = i.trim();
|
|
@@ -524,15 +524,15 @@ ${e.slice(
|
|
|
524
524
|
),
|
|
525
525
|
n
|
|
526
526
|
);
|
|
527
|
-
const f =
|
|
527
|
+
const f = I(i), a = De(
|
|
528
528
|
i,
|
|
529
529
|
f
|
|
530
|
-
), C = a === i ? f :
|
|
530
|
+
), C = a === i ? f : I(a), G = be(
|
|
531
531
|
a,
|
|
532
532
|
C
|
|
533
|
-
), S = G === a ? C :
|
|
533
|
+
), S = G === a ? C : I(G);
|
|
534
534
|
return Pe(
|
|
535
|
-
|
|
535
|
+
Ct(
|
|
536
536
|
ye(
|
|
537
537
|
G,
|
|
538
538
|
S
|
|
@@ -541,7 +541,7 @@ ${e.slice(
|
|
|
541
541
|
),
|
|
542
542
|
n
|
|
543
543
|
);
|
|
544
|
-
}, "applyTreeGridDefaultLayout"),
|
|
544
|
+
}, "applyTreeGridDefaultLayout"), vt = /* @__PURE__ */ o((e) => {
|
|
545
545
|
var n;
|
|
546
546
|
return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${wn}`)) ?? null;
|
|
547
547
|
}, "getTreeGridWrapperElement"), Ft = /* @__PURE__ */ o((e) => {
|
|
@@ -554,12 +554,12 @@ ${e.slice(
|
|
|
554
554
|
!R(r) || y(r.CanSelect) || (n += 1, ee(e.IsSelected(r)) && (t += 1));
|
|
555
555
|
}), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
|
|
556
556
|
}, "getTreeGridSelectAllState"), ie = /* @__PURE__ */ o((e, n) => {
|
|
557
|
-
const t =
|
|
557
|
+
const t = vt(n), r = !y(e.Selecting), i = fe(
|
|
558
558
|
e.Selecting,
|
|
559
559
|
e.SelectingSingle
|
|
560
560
|
), c = e.Header;
|
|
561
561
|
if (t == null || t.classList.toggle(
|
|
562
|
-
|
|
562
|
+
In,
|
|
563
563
|
i
|
|
564
564
|
), !i)
|
|
565
565
|
t == null || t.classList.remove(
|
|
@@ -590,17 +590,17 @@ ${e.slice(
|
|
|
590
590
|
Z.delete(n), ie(e, n);
|
|
591
591
|
}, 0);
|
|
592
592
|
Z.set(n, r);
|
|
593
|
-
}, "scheduleTreeGridSelectionPanelStateSync"),
|
|
593
|
+
}, "scheduleTreeGridSelectionPanelStateSync"), Bt = /* @__PURE__ */ o((e, n) => {
|
|
594
594
|
e.EnterMode = n;
|
|
595
|
-
const t =
|
|
595
|
+
const t = Nn[n];
|
|
596
596
|
if (!t)
|
|
597
597
|
return;
|
|
598
598
|
const r = e;
|
|
599
599
|
r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = t.onEnter, r.Actions.OnEnterEdit = t.onEnterEdit;
|
|
600
|
-
}, "applyTreeGridDefaultEnterMode"), rn = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"),
|
|
600
|
+
}, "applyTreeGridDefaultEnterMode"), rn = /* @__PURE__ */ o((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), ve = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ o((e) => {
|
|
601
601
|
if (!e || !e.startsWith("data:"))
|
|
602
602
|
return e;
|
|
603
|
-
const n =
|
|
603
|
+
const n = ve.get(e);
|
|
604
604
|
if (n)
|
|
605
605
|
return n;
|
|
606
606
|
try {
|
|
@@ -608,16 +608,16 @@ ${e.slice(
|
|
|
608
608
|
for (let G = 0; G < f.length; G += 1)
|
|
609
609
|
a[G] = f.charCodeAt(G);
|
|
610
610
|
const C = URL.createObjectURL(new Blob([a], { type: c }));
|
|
611
|
-
return
|
|
611
|
+
return ve.set(e, C), C;
|
|
612
612
|
} catch {
|
|
613
613
|
return e;
|
|
614
614
|
}
|
|
615
615
|
}, "resolveTreeGridInlineUrl"), oe = /* @__PURE__ */ o((e) => {
|
|
616
616
|
if (!e || rn(e))
|
|
617
|
-
return
|
|
617
|
+
return Nt(e);
|
|
618
618
|
const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], i = t.includes("?") ? "&" : "?";
|
|
619
619
|
return `${t}${i}noCache=${Date.now()}${r}`;
|
|
620
|
-
}, "appendNoCacheQuery"),
|
|
620
|
+
}, "appendNoCacheQuery"), Fe = /* @__PURE__ */ o((e, n, t) => {
|
|
621
621
|
if (!e)
|
|
622
622
|
return;
|
|
623
623
|
const r = t.canEdit, i = t.highlightColumns ?? [], c = t.highlightBackgroundColor;
|
|
@@ -637,7 +637,7 @@ ${e.slice(
|
|
|
637
637
|
}
|
|
638
638
|
typeof e.RefreshRow == "function" && e.RefreshRow(n);
|
|
639
639
|
}
|
|
640
|
-
}, "syncTreeGridDeletedRowState"),
|
|
640
|
+
}, "syncTreeGridDeletedRowState"), kt = /* @__PURE__ */ o((e) => e ? rn(e) || e.includes("assets") ? oe(e) : oe(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Ut = /* @__PURE__ */ o((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Vt = /* @__PURE__ */ o((e, n, t, r) => {
|
|
641
641
|
if (!(!e || t === "cancel")) {
|
|
642
642
|
if (t === "remove") {
|
|
643
643
|
e.RemoveRow(n), r(e);
|
|
@@ -645,7 +645,7 @@ ${e.slice(
|
|
|
645
645
|
}
|
|
646
646
|
e.DeleteRowT(n, 3);
|
|
647
647
|
}
|
|
648
|
-
}, "applyTreeGridBeforeRowUndeleteAction"),
|
|
648
|
+
}, "applyTreeGridBeforeRowUndeleteAction"), Mt = /* @__PURE__ */ o((e, n, t) => e ? { Url: kt(n) } : { Data: { Body: [vn(t) ? [] : t] } }, "buildTreeGridDataSource"), Pr = /* @__PURE__ */ o(({
|
|
649
649
|
id: e,
|
|
650
650
|
layoutUrl: n,
|
|
651
651
|
layoutData: t,
|
|
@@ -668,9 +668,9 @@ ${e.slice(
|
|
|
668
668
|
i
|
|
669
669
|
)
|
|
670
670
|
} : { Url: oe(n ?? "") },
|
|
671
|
-
Data:
|
|
671
|
+
Data: Mt(C, f, a),
|
|
672
672
|
Text: {
|
|
673
|
-
Url:
|
|
673
|
+
Url: Rn(h)
|
|
674
674
|
},
|
|
675
675
|
width: G,
|
|
676
676
|
height: S,
|
|
@@ -692,7 +692,7 @@ ${e.slice(
|
|
|
692
692
|
return c !== void 0 ? c : Ne(
|
|
693
693
|
n[`${t}${r}`]
|
|
694
694
|
);
|
|
695
|
-
}, "getTreeGridHeaderCellSpanAttribute"),
|
|
695
|
+
}, "getTreeGridHeaderCellSpanAttribute"), Xt = /* @__PURE__ */ o((e, n, t) => !n || !t || n.Fixed !== "Head" || (se(e, n, t, "Span") ?? 1) <= 1 ? !1 : (se(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), ke = /* @__PURE__ */ o((e, n, t) => {
|
|
696
696
|
const r = e.get(n);
|
|
697
697
|
if (r) {
|
|
698
698
|
r.add(t);
|
|
@@ -703,7 +703,7 @@ ${e.slice(
|
|
|
703
703
|
const i = /* @__PURE__ */ new Map();
|
|
704
704
|
return n.forEach((c, f) => {
|
|
705
705
|
t.forEach((a, C) => {
|
|
706
|
-
if (!
|
|
706
|
+
if (!Xt(e, c, a) || (ke(i, c, a), !r))
|
|
707
707
|
return;
|
|
708
708
|
const G = Math.floor(se(e, c, a, "Span") ?? 1), S = Math.min(t.length, C + G);
|
|
709
709
|
for (let h = f + 1; h < n.length; h += 1) {
|
|
@@ -713,7 +713,7 @@ ${e.slice(
|
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
715
|
}), i;
|
|
716
|
-
}, "getTreeGridGroupHeaderSortButtonTargets"),
|
|
716
|
+
}, "getTreeGridGroupHeaderSortButtonTargets"), Wt = /* @__PURE__ */ o((e, n, t, r) => {
|
|
717
717
|
var f;
|
|
718
718
|
if (!n || !t || n.Fixed !== "Head")
|
|
719
719
|
return !1;
|
|
@@ -754,24 +754,27 @@ ${e.slice(
|
|
|
754
754
|
updatedRowCount: a.size
|
|
755
755
|
}));
|
|
756
756
|
}
|
|
757
|
-
}, "applyTreeGridGroupHeaderSortButtonAttributes"),
|
|
757
|
+
}, "applyTreeGridGroupHeaderSortButtonAttributes"), Jt = /* @__PURE__ */ o((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Kt = /* @__PURE__ */ o((e) => {
|
|
758
758
|
const n = e == null ? void 0 : e.Visible;
|
|
759
759
|
return !!e && n !== 0 && n !== !1 && n !== "0";
|
|
760
760
|
}, "isVisibleTreeGridRow"), P = /* @__PURE__ */ o((e) => {
|
|
761
761
|
const n = e == null ? void 0 : e.Added;
|
|
762
762
|
return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
|
|
763
|
-
}, "isAddedTreeGridRow"),
|
|
763
|
+
}, "isAddedTreeGridRow"), sn = /* @__PURE__ */ o((e) => {
|
|
764
|
+
const n = e == null ? void 0 : e.Deleted;
|
|
765
|
+
return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
|
|
766
|
+
}, "isDeletedTreeGridRow"), R = /* @__PURE__ */ o((e) => !e || e.Fixed === "Foot" || !Kt(e) ? !1 : e.Kind === "Data" || P(e), "isDisplayTreeGridRow"), H = /* @__PURE__ */ o((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), jt = /* @__PURE__ */ o((e, n) => {
|
|
764
767
|
var r;
|
|
765
768
|
const t = (r = e.Cols) == null ? void 0 : r[n];
|
|
766
|
-
return !!t && !y(t.Visible) && !
|
|
767
|
-
}, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ o((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"),
|
|
769
|
+
return !!t && !y(t.Visible) && !nt(t.Hidden);
|
|
770
|
+
}, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ o((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), Ht = /* @__PURE__ */ o((e) => {
|
|
768
771
|
const n = Q.get(e);
|
|
769
772
|
if (n)
|
|
770
773
|
return n;
|
|
771
774
|
const t = new Map(
|
|
772
775
|
H(e).map((c, f) => [c, f])
|
|
773
776
|
), r = [...t.keys()].filter(
|
|
774
|
-
(c) => !
|
|
777
|
+
(c) => !Kn.has(c) && jt(e, c)
|
|
775
778
|
).sort((c, f) => {
|
|
776
779
|
var L, b;
|
|
777
780
|
const a = (L = e.Cols) == null ? void 0 : L[c], C = (b = e.Cols) == null ? void 0 : b[f], G = t.get(c) ?? 0, S = t.get(f) ?? 0, h = X(a == null ? void 0 : a.Sec, G) - X(C == null ? void 0 : C.Sec, S);
|
|
@@ -782,7 +785,7 @@ ${e.slice(
|
|
|
782
785
|
lastColumn: r[r.length - 1]
|
|
783
786
|
};
|
|
784
787
|
return Q.set(e, i), i;
|
|
785
|
-
}, "getTreeGridAddedRowBoxColumnBounds"),
|
|
788
|
+
}, "getTreeGridAddedRowBoxColumnBounds"), v = /* @__PURE__ */ o((e) => {
|
|
786
789
|
e && Q.delete(e);
|
|
787
790
|
}, "clearTreeGridAddedRowBoxColumnBounds"), U = /* @__PURE__ */ o((e) => {
|
|
788
791
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
@@ -795,10 +798,10 @@ ${e.slice(
|
|
|
795
798
|
return Object.values(e.Rows ?? {});
|
|
796
799
|
}, "getTreeGridRows"), ce = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ o((e) => {
|
|
797
800
|
e && ce.delete(e);
|
|
798
|
-
}, "clearTreeGridSelectionRowSpanAnchorRowMap"),
|
|
801
|
+
}, "clearTreeGridSelectionRowSpanAnchorRowMap"), cn = /* @__PURE__ */ o((e, n) => {
|
|
799
802
|
const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], i = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
|
|
800
803
|
return Number.isFinite(i) && i > 1 ? Math.floor(i) : 1;
|
|
801
|
-
}, "getTreeGridRowSpanCount"),
|
|
804
|
+
}, "getTreeGridRowSpanCount"), zt = /* @__PURE__ */ o((e) => {
|
|
802
805
|
const n = /* @__PURE__ */ new WeakMap();
|
|
803
806
|
let t = null, r = -1;
|
|
804
807
|
return U(e).forEach((i, c) => {
|
|
@@ -806,7 +809,7 @@ ${e.slice(
|
|
|
806
809
|
n.set(i, null);
|
|
807
810
|
return;
|
|
808
811
|
}
|
|
809
|
-
const f =
|
|
812
|
+
const f = cn(i, je);
|
|
810
813
|
if (f > 1) {
|
|
811
814
|
t = i, r = c + f - 1, n.set(i, i);
|
|
812
815
|
return;
|
|
@@ -817,24 +820,24 @@ ${e.slice(
|
|
|
817
820
|
if (!n || !R(n))
|
|
818
821
|
return null;
|
|
819
822
|
let t = ce.get(e);
|
|
820
|
-
return t != null && t.has(n) || (t =
|
|
821
|
-
}, "getTreeGridSelectionRowSpanAnchorRow"),
|
|
823
|
+
return t != null && t.has(n) || (t = zt(e), ce.set(e, t)), t.get(n) ?? null;
|
|
824
|
+
}, "getTreeGridSelectionRowSpanAnchorRow"), ln = /* @__PURE__ */ o((e, n) => {
|
|
822
825
|
const t = ae(e, n);
|
|
823
826
|
if (!t)
|
|
824
827
|
return [];
|
|
825
|
-
const r =
|
|
828
|
+
const r = cn(t, je), i = [];
|
|
826
829
|
let c = t;
|
|
827
830
|
for (let f = 0; c && f < r; f += 1)
|
|
828
831
|
R(c) && i.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
|
|
829
832
|
return i;
|
|
830
|
-
}, "getTreeGridSelectionRowSpanRows"),
|
|
833
|
+
}, "getTreeGridSelectionRowSpanRows"), Yt = /* @__PURE__ */ o((e) => {
|
|
831
834
|
const n = /* @__PURE__ */ new Set();
|
|
832
835
|
return (e.GetSelRows() ?? []).forEach((t) => {
|
|
833
|
-
|
|
836
|
+
ln(e, t).forEach((r) => {
|
|
834
837
|
n.add(r);
|
|
835
838
|
});
|
|
836
839
|
}), [...n];
|
|
837
|
-
}, "getTreeGridSelectedRowSpanRows"),
|
|
840
|
+
}, "getTreeGridSelectedRowSpanRows"), Zt = /* @__PURE__ */ o((e, n) => {
|
|
838
841
|
if (!e)
|
|
839
842
|
return;
|
|
840
843
|
const t = H(e);
|
|
@@ -844,17 +847,17 @@ ${e.slice(
|
|
|
844
847
|
new Map(t.map((i) => [i, ue(e, r, i)]))
|
|
845
848
|
);
|
|
846
849
|
});
|
|
847
|
-
}, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"),
|
|
850
|
+
}, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ o((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), qt = /* @__PURE__ */ o((e, n, t) => {
|
|
848
851
|
const r = n;
|
|
849
852
|
return H(e).some((i) => i !== t && le(r[`${i}Changed`]));
|
|
850
|
-
}, "hasOtherTreeGridChangedCells"),
|
|
853
|
+
}, "hasOtherTreeGridChangedCells"), dn = /* @__PURE__ */ o((e, n, t) => {
|
|
851
854
|
const r = n;
|
|
852
|
-
r[`${t}Changed`] = 0, !P(n) && !
|
|
853
|
-
}, "clearTreeGridCellChangedState"),
|
|
855
|
+
r[`${t}Changed`] = 0, !P(n) && !w(n) && !qt(e, n, t) && (r.Changed = 0);
|
|
856
|
+
}, "clearTreeGridCellChangedState"), Qt = /* @__PURE__ */ o((e, n, t) => {
|
|
854
857
|
const r = e.get(n);
|
|
855
858
|
if (r != null && r.has(t))
|
|
856
859
|
return r.get(t);
|
|
857
|
-
}, "resolveTreeGridCellBaselineValue"),
|
|
860
|
+
}, "resolveTreeGridCellBaselineValue"), er = /* @__PURE__ */ o(({
|
|
858
861
|
gridId: e,
|
|
859
862
|
grid: n,
|
|
860
863
|
row: t,
|
|
@@ -862,18 +865,18 @@ ${e.slice(
|
|
|
862
865
|
backgroundColor: i,
|
|
863
866
|
highlightRefresh: c
|
|
864
867
|
}) => {
|
|
865
|
-
if (!P(t) && !
|
|
868
|
+
if (!P(t) && !w(t))
|
|
866
869
|
return !1;
|
|
867
870
|
if (n.CanEdit(t, r) !== 1)
|
|
868
871
|
return !0;
|
|
869
|
-
const f =
|
|
870
|
-
return f === void 0 ? !0 : ue(n, t, r) === f ? (
|
|
872
|
+
const f = _n(t, r), a = q(t).includes(r);
|
|
873
|
+
return f === void 0 ? !0 : ue(n, t, r) === f ? (mn(t, r), a && Xe(e, { row: t, col: r }), dn(n, t, r), !0) : (Ln(t, r), We(e, {
|
|
871
874
|
row: t,
|
|
872
875
|
col: r,
|
|
873
876
|
backgroundColor: i,
|
|
874
877
|
refresh: c
|
|
875
878
|
}), !0);
|
|
876
|
-
}, "syncTreeGridAddedRowChangedCellHighlight"),
|
|
879
|
+
}, "syncTreeGridAddedRowChangedCellHighlight"), nr = /* @__PURE__ */ o(({
|
|
877
880
|
gridId: e,
|
|
878
881
|
grid: n,
|
|
879
882
|
row: t,
|
|
@@ -882,7 +885,7 @@ ${e.slice(
|
|
|
882
885
|
baselineMap: c,
|
|
883
886
|
highlightRefresh: f
|
|
884
887
|
}) => {
|
|
885
|
-
if (!R(t) ||
|
|
888
|
+
if (!R(t) || er({
|
|
886
889
|
gridId: e,
|
|
887
890
|
grid: n,
|
|
888
891
|
row: t,
|
|
@@ -891,9 +894,9 @@ ${e.slice(
|
|
|
891
894
|
highlightRefresh: f
|
|
892
895
|
}))
|
|
893
896
|
return;
|
|
894
|
-
const a =
|
|
897
|
+
const a = Qt(c, t, r), C = ue(n, t, r);
|
|
895
898
|
if (a !== void 0 && C === a) {
|
|
896
|
-
Xe(e, { row: t, col: r }),
|
|
899
|
+
Xe(e, { row: t, col: r }), dn(n, t, r);
|
|
897
900
|
return;
|
|
898
901
|
}
|
|
899
902
|
We(e, {
|
|
@@ -902,13 +905,13 @@ ${e.slice(
|
|
|
902
905
|
backgroundColor: i,
|
|
903
906
|
refresh: f
|
|
904
907
|
});
|
|
905
|
-
}, "syncTreeGridChangedCellHighlight"),
|
|
908
|
+
}, "syncTreeGridChangedCellHighlight"), tr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), un = /* @__PURE__ */ o((e, n, t) => {
|
|
906
909
|
const r = e.GetAttribute(n, t, "Color");
|
|
907
910
|
if (typeof r == "number")
|
|
908
|
-
return
|
|
911
|
+
return an(r);
|
|
909
912
|
if (typeof r == "string")
|
|
910
913
|
return r.trim() || void 0;
|
|
911
|
-
}, "getExplicitTreeGridCellColor"),
|
|
914
|
+
}, "getExplicitTreeGridCellColor"), rr = /* @__PURE__ */ o((e, n, t) => un(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Te = /* @__PURE__ */ o((e, n, t) => {
|
|
912
915
|
if (!n || !t || !R(n))
|
|
913
916
|
return !1;
|
|
914
917
|
const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
|
|
@@ -925,17 +928,17 @@ ${e.slice(
|
|
|
925
928
|
const c = e.IsSelected(i, t);
|
|
926
929
|
return c !== 0 && c !== !1 && c !== void 0 && c !== null;
|
|
927
930
|
}, "isTreeGridSelectedCellState"), Ce = /* @__PURE__ */ o((e) => {
|
|
928
|
-
if (!
|
|
931
|
+
if (!Ie.length)
|
|
929
932
|
return !1;
|
|
930
933
|
const n = e.split(/\s+/).filter(Boolean);
|
|
931
|
-
return
|
|
934
|
+
return Ie.every(
|
|
932
935
|
(t) => n.includes(t)
|
|
933
936
|
);
|
|
934
|
-
}, "hasTreeGridChangedCellDisplayClass"),
|
|
937
|
+
}, "hasTreeGridChangedCellDisplayClass"), ir = /* @__PURE__ */ o((e) => {
|
|
935
938
|
if (!(!e || e.split(/\s+/).includes(Oe) || !Ce(e)))
|
|
936
939
|
return `${e} ${Oe}`;
|
|
937
|
-
}, "appendTreeGridSelectedChangedCellDisplayClass"),
|
|
938
|
-
if (!n || !
|
|
940
|
+
}, "appendTreeGridSelectedChangedCellDisplayClass"), or = /* @__PURE__ */ o((e) => !e || !R(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), sr = /* @__PURE__ */ o((e, n) => {
|
|
941
|
+
if (!n || !or(n) || typeof e.RefreshRow != "function")
|
|
939
942
|
return;
|
|
940
943
|
const t = n;
|
|
941
944
|
window.setTimeout(() => {
|
|
@@ -950,30 +953,30 @@ ${e.slice(
|
|
|
950
953
|
e.RefreshRow(r);
|
|
951
954
|
});
|
|
952
955
|
}, 0);
|
|
953
|
-
}, "scheduleTreeGridRowsRefresh"),
|
|
956
|
+
}, "scheduleTreeGridRowsRefresh"), cr = /* @__PURE__ */ o((e, n) => {
|
|
954
957
|
if (!n)
|
|
955
958
|
return;
|
|
956
|
-
const t =
|
|
959
|
+
const t = ln(e, n);
|
|
957
960
|
t.length <= 1 || M(e, t);
|
|
958
|
-
}, "scheduleTreeGridSelectionRowSpanRefresh"),
|
|
961
|
+
}, "scheduleTreeGridSelectionRowSpanRefresh"), lr = /* @__PURE__ */ o((e) => {
|
|
959
962
|
const n = U(e).filter((t) => R(t) && ae(e, t));
|
|
960
963
|
M(e, n);
|
|
961
|
-
}, "scheduleTreeGridSelectionRowSpanRefreshAll"),
|
|
962
|
-
if (!(!n || r === void 0 || !
|
|
964
|
+
}, "scheduleTreeGridSelectionRowSpanRefreshAll"), fn = /* @__PURE__ */ o((e, n, t, r) => {
|
|
965
|
+
if (!(!n || r === void 0 || !tr(e, n, t) || Te(e, n, t) || V(e, n, t) || rr(e, n, t)))
|
|
963
966
|
return r;
|
|
964
|
-
}, "getEditableTreeGridCellDefaultColor"),
|
|
965
|
-
(r) =>
|
|
966
|
-
), "isTreeGridNativeErrorBackgroundColor"),
|
|
967
|
+
}, "getEditableTreeGridCellDefaultColor"), F = /* @__PURE__ */ o((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), dr = /* @__PURE__ */ o((e, n, t) => Wn.some(
|
|
968
|
+
(r) => F(e, n, t, r)
|
|
969
|
+
), "isTreeGridNativeErrorBackgroundColor"), an = /* @__PURE__ */ o((e) => {
|
|
967
970
|
if (!(e === void 0 || !Number.isFinite(e)))
|
|
968
971
|
return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
|
|
969
|
-
}, "toTreeGridCssHexColor"), de = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Ee = /* @__PURE__ */ o((e, n, t) => de(e, n, t) !== "", "hasTreeGridCellError"),
|
|
972
|
+
}, "toTreeGridCssHexColor"), de = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Ee = /* @__PURE__ */ o((e, n, t) => de(e, n, t) !== "", "hasTreeGridCellError"), ur = /* @__PURE__ */ o((e, n) => {
|
|
970
973
|
if (!n)
|
|
971
974
|
return;
|
|
972
975
|
let t = !1;
|
|
973
976
|
H(e).forEach((r) => {
|
|
974
977
|
Ee(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
|
|
975
978
|
}), t && e.RefreshRow(n);
|
|
976
|
-
}, "clearTreeGridRowErrors"),
|
|
979
|
+
}, "clearTreeGridRowErrors"), fr = /* @__PURE__ */ o((e) => {
|
|
977
980
|
const n = e == null ? void 0 : e.target;
|
|
978
981
|
if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
|
|
979
982
|
return null;
|
|
@@ -983,12 +986,12 @@ ${e.slice(
|
|
|
983
986
|
return c instanceof HTMLElement ? c : i instanceof HTMLElement ? i : null;
|
|
984
987
|
}
|
|
985
988
|
return null;
|
|
986
|
-
}, "getTreeGridMouseEventAnchorElement"),
|
|
989
|
+
}, "getTreeGridMouseEventAnchorElement"), ar = /* @__PURE__ */ o((e, n) => {
|
|
987
990
|
if (!e || !n || !R(e))
|
|
988
991
|
return !1;
|
|
989
992
|
const t = e, r = t[`${n}Class`], i = le(t[`${n}Changed`]) || typeof r == "string" && Ce(r);
|
|
990
|
-
return P(e) ||
|
|
991
|
-
}, "isChangedTreeGridRowOrCell"),
|
|
993
|
+
return P(e) || w(e) ? i : i || le(t.Changed);
|
|
994
|
+
}, "isChangedTreeGridRowOrCell"), Tr = /* @__PURE__ */ o((e, n, t) => jn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Cr = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Er = /* @__PURE__ */ o((e, n, t) => !n || !t || !R(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), pr = /* @__PURE__ */ o((e, n) => !!n && R(n) && e.FRow === n, "isTreeGridFocusedRowState"), Gr = /* @__PURE__ */ o(({
|
|
992
995
|
grid: e,
|
|
993
996
|
row: n,
|
|
994
997
|
col: t,
|
|
@@ -1005,36 +1008,38 @@ ${e.slice(
|
|
|
1005
1008
|
return f;
|
|
1006
1009
|
if (V(e, n, t))
|
|
1007
1010
|
return a;
|
|
1008
|
-
if (
|
|
1011
|
+
if (Cr(e, n, t) && (F(r, i, c, kn) || F(r, i, c, Un)) || Er(e, n, t) && (F(r, i, c, Vn) || F(r, i, c, Mn) || F(r, i, c, Xn)))
|
|
1009
1012
|
return C;
|
|
1010
|
-
|
|
1013
|
+
if (sn(n))
|
|
1014
|
+
return;
|
|
1015
|
+
const h = P(n) || w(n), m = Ee(e, n, t) && dr(r, i, c);
|
|
1011
1016
|
if (!m && !h)
|
|
1012
1017
|
return;
|
|
1013
|
-
const L =
|
|
1018
|
+
const L = un(e, n, t);
|
|
1014
1019
|
if (m && L)
|
|
1015
1020
|
return L;
|
|
1016
|
-
if (
|
|
1021
|
+
if (ar(n, t))
|
|
1017
1022
|
return G;
|
|
1018
|
-
const b =
|
|
1023
|
+
const b = fn(
|
|
1019
1024
|
e,
|
|
1020
1025
|
n,
|
|
1021
1026
|
t,
|
|
1022
1027
|
S
|
|
1023
1028
|
);
|
|
1024
|
-
return b !== void 0 ?
|
|
1029
|
+
return b !== void 0 ? an(b) : h ? L ?? An : Jn;
|
|
1025
1030
|
}, "resolveTreeGridStateBackgroundColor"), K = /* @__PURE__ */ o((e, n) => {
|
|
1026
1031
|
const t = e.split(/\s+/).filter(Boolean);
|
|
1027
1032
|
return t.includes(n) ? e : [...t, n].join(" ");
|
|
1028
|
-
}, "appendTreeGridClassToken"),
|
|
1029
|
-
if (!R(n) || !P(n) && !
|
|
1033
|
+
}, "appendTreeGridClassToken"), Sr = /* @__PURE__ */ o((e, n, t, r) => !Ee(e, n, t) || !n ? r : K(r, Dn), "appendTreeGridErrorCellDisplayClass"), hr = /* @__PURE__ */ o((e, n, t, r) => {
|
|
1034
|
+
if (!R(n) || sn(n) || !P(n) && !w(n) || pr(e, n) || V(e, n, t))
|
|
1030
1035
|
return r;
|
|
1031
|
-
const i =
|
|
1036
|
+
const i = Ht(e);
|
|
1032
1037
|
if (!i.columnSet.has(t))
|
|
1033
1038
|
return r;
|
|
1034
|
-
let c = K(r,
|
|
1035
|
-
return t === i.firstColumn && (c = K(c,
|
|
1036
|
-
}, "appendTreeGridAddedRowBoxDisplayClass"),
|
|
1037
|
-
const i =
|
|
1039
|
+
let c = K(r, bn);
|
|
1040
|
+
return t === i.firstColumn && (c = K(c, yn)), t === i.lastColumn && (c = K(c, Pn)), c;
|
|
1041
|
+
}, "appendTreeGridAddedRowBoxDisplayClass"), Rr = /* @__PURE__ */ o((e, n, t, r) => {
|
|
1042
|
+
const i = Sr(e, n, t, r), c = hr(
|
|
1038
1043
|
e,
|
|
1039
1044
|
n,
|
|
1040
1045
|
t,
|
|
@@ -1042,14 +1047,14 @@ ${e.slice(
|
|
|
1042
1047
|
);
|
|
1043
1048
|
if (!V(e, n, t))
|
|
1044
1049
|
return c === r ? void 0 : c;
|
|
1045
|
-
const f =
|
|
1050
|
+
const f = ir(c) ?? c;
|
|
1046
1051
|
return f === r ? void 0 : f;
|
|
1047
|
-
}, "resolveTreeGridCellDisplayClass"),
|
|
1048
|
-
const t = n.filter(
|
|
1052
|
+
}, "resolveTreeGridCellDisplayClass"), Tn = /* @__PURE__ */ o((e) => R(e) && (P(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), Ve = /* @__PURE__ */ o((e, n) => {
|
|
1053
|
+
const t = n.filter(Tn);
|
|
1049
1054
|
t.length && M(e, t);
|
|
1050
|
-
}, "scheduleTreeGridAddedRowBoxRowsRefresh"),
|
|
1051
|
-
M(e, U(e).filter(
|
|
1052
|
-
}, "scheduleTreeGridAddedRowBoxRowsRefreshAll"),
|
|
1055
|
+
}, "scheduleTreeGridAddedRowBoxRowsRefresh"), Ar = /* @__PURE__ */ o((e) => {
|
|
1056
|
+
M(e, U(e).filter(Tn));
|
|
1057
|
+
}, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), $r = /* @__PURE__ */ o((e) => {
|
|
1053
1058
|
if (!e)
|
|
1054
1059
|
return !1;
|
|
1055
1060
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
@@ -1062,7 +1067,7 @@ ${e.slice(
|
|
|
1062
1067
|
return !1;
|
|
1063
1068
|
}
|
|
1064
1069
|
return Object.values(e.Rows ?? {}).some((n) => R(n));
|
|
1065
|
-
}, "hasTreeGridDisplayDataRows"),
|
|
1070
|
+
}, "hasTreeGridDisplayDataRows"), vr = /* @__PURE__ */ o((e, n, t) => {
|
|
1066
1071
|
var i;
|
|
1067
1072
|
O(e);
|
|
1068
1073
|
const r = (i = e.Data) == null ? void 0 : i.Data;
|
|
@@ -1090,14 +1095,14 @@ ${e.slice(
|
|
|
1090
1095
|
latestToolbarTotalCountFormulaRef: pe,
|
|
1091
1096
|
latestSuppressCfgRef: Ge,
|
|
1092
1097
|
latestHideChildHeaderSortButtonsRef: z,
|
|
1093
|
-
latestSelectionScopeRef:
|
|
1098
|
+
latestSelectionScopeRef: Cn,
|
|
1094
1099
|
latestDisabledAnimationsRef: Se,
|
|
1095
|
-
appliedLayoutOverridesRef:
|
|
1096
|
-
appliedBodyDataPropRef:
|
|
1100
|
+
appliedLayoutOverridesRef: En,
|
|
1101
|
+
appliedBodyDataPropRef: pn,
|
|
1097
1102
|
hasAppliedInitialLayoutRef: he,
|
|
1098
1103
|
syncHasDisplayDataRows: $,
|
|
1099
|
-
setIsTreeGridReady:
|
|
1100
|
-
showErrorTooltip:
|
|
1104
|
+
setIsTreeGridReady: Gn,
|
|
1105
|
+
showErrorTooltip: Sn,
|
|
1101
1106
|
hideErrorTooltip: D
|
|
1102
1107
|
}) => {
|
|
1103
1108
|
const g = n.current;
|
|
@@ -1109,29 +1114,29 @@ ${e.slice(
|
|
|
1109
1114
|
}), window.TGSetEvent("OnRowRemove", e, (s) => {
|
|
1110
1115
|
O(s), D(), $(s);
|
|
1111
1116
|
}), window.TGSetEvent("OnColShow", e, (s) => {
|
|
1112
|
-
|
|
1117
|
+
v(s);
|
|
1113
1118
|
}), window.TGSetEvent("OnAfterColumnsChanged", e, (s) => {
|
|
1114
|
-
|
|
1119
|
+
v(s);
|
|
1115
1120
|
}), window.TGSetEvent("OnColMove", e, (s) => {
|
|
1116
|
-
|
|
1121
|
+
v(s);
|
|
1117
1122
|
}), window.TGSetEvent("OnColsAdd", e, (s) => {
|
|
1118
|
-
|
|
1123
|
+
v(s);
|
|
1119
1124
|
}), window.TGSetEvent("OnColDelete", e, (s) => {
|
|
1120
|
-
|
|
1125
|
+
v(s);
|
|
1121
1126
|
}), window.TGSetEvent("OnColUndelete", e, (s) => {
|
|
1122
|
-
|
|
1127
|
+
v(s);
|
|
1123
1128
|
}), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, T, E) => {
|
|
1124
1129
|
const p = de(s, l, d);
|
|
1125
1130
|
if (!p) {
|
|
1126
1131
|
D();
|
|
1127
1132
|
return;
|
|
1128
1133
|
}
|
|
1129
|
-
const _ =
|
|
1134
|
+
const _ = fr(E);
|
|
1130
1135
|
if (!_) {
|
|
1131
1136
|
D();
|
|
1132
1137
|
return;
|
|
1133
1138
|
}
|
|
1134
|
-
s.HideTip(),
|
|
1139
|
+
s.HideTip(), Sn({ anchorEl: _, row: l, col: d, message: p });
|
|
1135
1140
|
}), window.TGSetEvent("OnFocus", e, (s, l, d, u) => {
|
|
1136
1141
|
l !== u && Ve(s, [l, u]);
|
|
1137
1142
|
}), window.TGSetEvent("OnTip", e, (s, l, d, u) => de(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
|
|
@@ -1143,7 +1148,7 @@ ${e.slice(
|
|
|
1143
1148
|
return d;
|
|
1144
1149
|
const T = /* @__PURE__ */ o((p) => {
|
|
1145
1150
|
window.setTimeout(() => {
|
|
1146
|
-
|
|
1151
|
+
Vt(
|
|
1147
1152
|
m.current ?? s,
|
|
1148
1153
|
l,
|
|
1149
1154
|
p,
|
|
@@ -1153,7 +1158,7 @@ ${e.slice(
|
|
|
1153
1158
|
}, "scheduleAction");
|
|
1154
1159
|
try {
|
|
1155
1160
|
const p = u(s, l);
|
|
1156
|
-
return
|
|
1161
|
+
return Ut(p) ? (p.then(T).catch(() => {
|
|
1157
1162
|
T("undelete");
|
|
1158
1163
|
}), 0) : (T(p), 0);
|
|
1159
1164
|
} catch {
|
|
@@ -1234,9 +1239,9 @@ ${e.slice(
|
|
|
1234
1239
|
);
|
|
1235
1240
|
}), window.TGSetEvent("OnRowDelete", e, (s, l, d) => {
|
|
1236
1241
|
var T, E;
|
|
1237
|
-
O(s), D(),
|
|
1238
|
-
const u =
|
|
1239
|
-
|
|
1242
|
+
O(s), D(), ur(s, l), s.SelectRow(l, 0);
|
|
1243
|
+
const u = w(l) ? q(l) : [];
|
|
1244
|
+
Fe(s, l, {
|
|
1240
1245
|
canEdit: c.current !== !1 ? 2 : void 0,
|
|
1241
1246
|
highlightColumns: u
|
|
1242
1247
|
}), $(s), (E = (T = n.current) == null ? void 0 : T.onRowDelete) == null || E.call(
|
|
@@ -1248,15 +1253,15 @@ ${e.slice(
|
|
|
1248
1253
|
}), window.TGSetEvent("OnRowUndelete", e, (s, l) => {
|
|
1249
1254
|
var u, T;
|
|
1250
1255
|
O(s), D();
|
|
1251
|
-
const d =
|
|
1252
|
-
|
|
1256
|
+
const d = w(l) ? q(l) : [];
|
|
1257
|
+
Fe(s, l, {
|
|
1253
1258
|
canEdit: c.current !== !1 ? 1 : void 0,
|
|
1254
1259
|
highlightColumns: d,
|
|
1255
1260
|
highlightBackgroundColor: d.length ? a.current : void 0
|
|
1256
1261
|
}), $(s), (T = (u = n.current) == null ? void 0 : u.onRowUndelete) == null || T.call(u, s, l);
|
|
1257
1262
|
}), window.TGSetEvent("OnGetDefaultColor", e, (s, l, d) => {
|
|
1258
1263
|
if (!(!r.current || !R(l)))
|
|
1259
|
-
return
|
|
1264
|
+
return fn(
|
|
1260
1265
|
s,
|
|
1261
1266
|
l,
|
|
1262
1267
|
d,
|
|
@@ -1264,7 +1269,7 @@ ${e.slice(
|
|
|
1264
1269
|
);
|
|
1265
1270
|
}), window.TGSetEvent("OnGetColor", e, (s, l, d, u, T, E, p) => {
|
|
1266
1271
|
if (!p)
|
|
1267
|
-
return
|
|
1272
|
+
return Gr({
|
|
1268
1273
|
grid: s,
|
|
1269
1274
|
row: l,
|
|
1270
1275
|
col: d,
|
|
@@ -1277,11 +1282,11 @@ ${e.slice(
|
|
|
1277
1282
|
changedCellBackgroundColor: a.current,
|
|
1278
1283
|
editableCellBackgroundColorValue: f.current
|
|
1279
1284
|
});
|
|
1280
|
-
}), window.TGSetEvent("OnGetClass", e, (s, l, d, u) =>
|
|
1285
|
+
}), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => Rr(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
|
|
1281
1286
|
var E, p;
|
|
1282
1287
|
if (D(), i.current && R(l)) {
|
|
1283
|
-
const _ = !
|
|
1284
|
-
|
|
1288
|
+
const _ = !Tr(s, l, d) || V(s, l, d) && !Te(s, l, d);
|
|
1289
|
+
nr({
|
|
1285
1290
|
gridId: e,
|
|
1286
1291
|
grid: s,
|
|
1287
1292
|
row: l,
|
|
@@ -1296,23 +1301,23 @@ ${e.slice(
|
|
|
1296
1301
|
});
|
|
1297
1302
|
const Re = Y((s) => {
|
|
1298
1303
|
var u, T;
|
|
1299
|
-
const l = s.GetSelRows() ?? [], d =
|
|
1300
|
-
selectionScope:
|
|
1304
|
+
const l = s.GetSelRows() ?? [], d = xn(s, l, {
|
|
1305
|
+
selectionScope: Cn.current
|
|
1301
1306
|
});
|
|
1302
1307
|
(T = (u = n.current) == null ? void 0 : u.onSelect) == null || T.call(
|
|
1303
1308
|
u,
|
|
1304
|
-
|
|
1309
|
+
gn(s, d)
|
|
1305
1310
|
);
|
|
1306
1311
|
}, 100);
|
|
1307
1312
|
window.TGSetEvent("OnSelect", e, (s, l, d, u, T) => {
|
|
1308
1313
|
var p;
|
|
1309
1314
|
if (T)
|
|
1310
1315
|
return;
|
|
1311
|
-
const E =
|
|
1312
|
-
|
|
1316
|
+
const E = Yt(s);
|
|
1317
|
+
sr(s, l), Ve(s, [l]), M(s, E), cr(s, l), $e(s, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && Re(s);
|
|
1313
1318
|
}), window.TGSetEvent("OnSelectAll", e, (s, l, d, u) => {
|
|
1314
1319
|
var T;
|
|
1315
|
-
u || (
|
|
1320
|
+
u || (lr(s), Ar(s), $e(s, e), typeof ((T = n.current) == null ? void 0 : T.onSelect) == "function" && Re(s));
|
|
1316
1321
|
}), typeof (g == null ? void 0 : g.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
|
|
1317
1322
|
var u, T;
|
|
1318
1323
|
(T = (u = n.current) == null ? void 0 : u.onSave) == null || T.call(
|
|
@@ -1323,13 +1328,13 @@ ${e.slice(
|
|
|
1323
1328
|
);
|
|
1324
1329
|
}), window.TGSetEvent("OnSort", e, (s, l) => {
|
|
1325
1330
|
var d;
|
|
1326
|
-
if (!(!l || !
|
|
1331
|
+
if (!(!l || !Wt(
|
|
1327
1332
|
s,
|
|
1328
1333
|
s.ARow,
|
|
1329
1334
|
l,
|
|
1330
1335
|
z.current !== !1
|
|
1331
1336
|
)))
|
|
1332
|
-
return Je(e, "group header sort blocked"),
|
|
1337
|
+
return Je(e, "group header sort blocked"), $n(e, "group header sort blocked", {
|
|
1333
1338
|
rowId: (d = s.ARow) == null ? void 0 : d.id,
|
|
1334
1339
|
col: l
|
|
1335
1340
|
}), -1;
|
|
@@ -1352,7 +1357,7 @@ ${e.slice(
|
|
|
1352
1357
|
ie(s, e);
|
|
1353
1358
|
}), window.TGSetEvent("OnDataGet", e, (s, l, d) => {
|
|
1354
1359
|
if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
|
|
1355
|
-
t.current =
|
|
1360
|
+
t.current = we(d);
|
|
1356
1361
|
const u = re(
|
|
1357
1362
|
d,
|
|
1358
1363
|
Se.current,
|
|
@@ -1364,7 +1369,7 @@ ${e.slice(
|
|
|
1364
1369
|
return null;
|
|
1365
1370
|
}), window.TGSetEvent("OnDataParse", e, (s, l, d) => {
|
|
1366
1371
|
if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
|
|
1367
|
-
t.current =
|
|
1372
|
+
t.current = we(d);
|
|
1368
1373
|
const u = re(
|
|
1369
1374
|
d,
|
|
1370
1375
|
Se.current,
|
|
@@ -1381,13 +1386,13 @@ ${e.slice(
|
|
|
1381
1386
|
var l, d;
|
|
1382
1387
|
if (!he.current) {
|
|
1383
1388
|
const u = b.current;
|
|
1384
|
-
he.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) &&
|
|
1389
|
+
he.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && Bt(s, Bn), On(s, u), m.current = s, En.current = u, pn.current = Be(s), h.current = /* @__PURE__ */ new WeakMap(), Zt(s, h.current), $(s), Gn(!0), Ue(
|
|
1385
1390
|
s,
|
|
1386
1391
|
e,
|
|
1387
1392
|
!0,
|
|
1388
1393
|
z.current !== !1
|
|
1389
1394
|
), Ke(e, "TreeGrid init ready", L.current, {
|
|
1390
|
-
bodyRowCount:
|
|
1395
|
+
bodyRowCount: Jt(
|
|
1391
1396
|
Be(s)
|
|
1392
1397
|
)
|
|
1393
1398
|
}), L.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, s);
|
|
@@ -1396,14 +1401,14 @@ ${e.slice(
|
|
|
1396
1401
|
);
|
|
1397
1402
|
}, "bindTreeGridEvents");
|
|
1398
1403
|
export {
|
|
1399
|
-
|
|
1404
|
+
yr as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
|
|
1400
1405
|
Fr as bindTreeGridEvents,
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1406
|
+
Pr as buildTreeGridInitializationOptions,
|
|
1407
|
+
Zt as captureTreeGridChangeBaselines,
|
|
1408
|
+
Jt as getTreeGridBodyDataCount,
|
|
1409
|
+
$r as hasTreeGridDisplayDataRows,
|
|
1410
|
+
we as hasTreeGridExplicitEnterMode,
|
|
1411
|
+
vr as replaceTreeGridBodyData,
|
|
1412
|
+
nr as syncTreeGridChangedCellHighlight
|
|
1408
1413
|
};
|
|
1409
1414
|
//# sourceMappingURL=treeGridRuntime.js.map
|