@owp/core 2.5.49 → 2.5.50
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/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +362 -348
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +362 -316
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/exceljs.js +5 -0
- package/dist/exceljs.js.map +1 -0
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- 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/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.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/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/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
- package/dist/types/exceljs.d.ts +3 -0
- package/dist/types/types/OwpExcelTypes.d.ts +5 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/utils/fetchFile.d.ts +1 -1
- package/dist/types/utils/internal/exceljsBrowser.d.ts +1 -2
- package/dist/utils/internal/exceljsBrowser.js.map +1 -1
- package/exceljs.d.ts +3 -0
- package/exceljs.js +1 -0
- package/package.json +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $n = Object.defineProperty;
|
|
2
2
|
var i = (e, n) => $n(e, "name", { value: n, configurable: !0 });
|
|
3
|
-
import { getTreeGridTextResourceUrl as Pn, TREEGRID_CELL_CHANGED_CLASS as Ye, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as
|
|
4
|
-
import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as
|
|
3
|
+
import { getTreeGridTextResourceUrl as Pn, TREEGRID_CELL_CHANGED_CLASS as Ye, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Dn } from "../../../constants/treeGrid.js";
|
|
4
|
+
import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as xe, getTreeGridCellComparableValue as Ee, clearTreeGridCellHighlightById as Ze, highlightTreeGridCellById as qe, normalizeTreeGridExternalRows as vn, getTreeGridAddedRowBaselineValue as Bn, removeTreeGridAddedRowHighlightColumn as Fn, appendTreeGridAddedRowHighlightColumn as Nn } from "../../../utils/treeGridUtil.js";
|
|
5
5
|
import { applyTreeGridLayoutToGrid as Un } from "./treeGridLayout.js";
|
|
6
6
|
import { resolveTreeGridSelectedRows as kn } from "./treeGridSelection.js";
|
|
7
7
|
import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Mn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as be, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Ie, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as we, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as ye, TREE_GRID_THEME_WRAPPER_CLASS as Vn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Xn, TREE_GRID_ERROR_CELL_CLASS as Jn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Wn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as jn } from "./treeGridTheme.js";
|
|
@@ -9,7 +9,7 @@ import { countTreeGridPerf as Qe, logTreeGridPerf as Kn, measureTreeGridPerf as
|
|
|
9
9
|
import { debounce as ee } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
|
|
10
10
|
import { isEmpty as Hn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
11
11
|
import { get as zn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
|
|
12
|
-
const
|
|
12
|
+
const ui = 300, Yn = 3, Zn = {
|
|
13
13
|
1: {
|
|
14
14
|
onEnter: "TabDownEdit",
|
|
15
15
|
onEnterEdit: "AcceptEdit AND TabDownEdit,1"
|
|
@@ -39,7 +39,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
39
39
|
"Float",
|
|
40
40
|
"Date",
|
|
41
41
|
"Pass"
|
|
42
|
-
]),
|
|
42
|
+
]), De = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), ct = {
|
|
43
43
|
CustomScroll: "1",
|
|
44
44
|
TouchScroll: "1"
|
|
45
45
|
}, lt = {
|
|
@@ -57,7 +57,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
57
57
|
LoadPage: "",
|
|
58
58
|
RenderPage: "",
|
|
59
59
|
RenderProgressText: ""
|
|
60
|
-
},
|
|
60
|
+
}, ut = {
|
|
61
61
|
EditFrom: "",
|
|
62
62
|
EditTo: "#OwpSoftChange 240ms",
|
|
63
63
|
ChangeFrom: "",
|
|
@@ -66,7 +66,21 @@ const li = 300, Yn = 3, Zn = {
|
|
|
66
66
|
UndoChangeTo: "#OwpSoftRevert 280ms",
|
|
67
67
|
RedoChangeFrom: "",
|
|
68
68
|
RedoChangeTo: "#OwpSoftChange 240ms"
|
|
69
|
-
},
|
|
69
|
+
}, ft = {
|
|
70
|
+
Add: "#OwpSoftRowAdd 220ms",
|
|
71
|
+
AddRows: "#OwpSoftRowAdd 220ms",
|
|
72
|
+
RedoAdd: "#OwpSoftRowAdd 220ms",
|
|
73
|
+
Delete: "#OwpSoftRowRemove 220ms",
|
|
74
|
+
DeleteRows: "#OwpSoftRowRemove 220ms",
|
|
75
|
+
DeleteVisible: "#OwpSoftRowRemove 220ms",
|
|
76
|
+
DeleteVisibleRows: "#OwpSoftRowRemove 220ms",
|
|
77
|
+
UndoAdd: "#OwpSoftRowRemove 220ms",
|
|
78
|
+
RedoDelete: "#OwpSoftRowRemove 220ms",
|
|
79
|
+
RedoDeleteVisible: "#OwpSoftRowRemove 220ms"
|
|
80
|
+
}, U = {
|
|
81
|
+
...ut,
|
|
82
|
+
...ft
|
|
83
|
+
}, nn = "Panel", tn = ["Formula", "FormulaFormula"], at = /<Grid\b[^>]*>/i, Tt = /<\/Grid\s*>/i, Et = /<Toolbar\b[^>]*\/?>/i, pt = [
|
|
70
84
|
"CustomScroll",
|
|
71
85
|
"CustomHScroll",
|
|
72
86
|
"Undo",
|
|
@@ -100,11 +114,11 @@ const li = 300, Yn = 3, Zn = {
|
|
|
100
114
|
"UndeleteVisibleRowsChildren"
|
|
101
115
|
],
|
|
102
116
|
selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
|
|
103
|
-
}, re = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"),
|
|
117
|
+
}, re = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), ve = /* @__PURE__ */ i((e, n) => {
|
|
104
118
|
Object.entries(n).forEach(([t, r]) => {
|
|
105
119
|
t in e || (e[t] = r);
|
|
106
120
|
});
|
|
107
|
-
}, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"),
|
|
121
|
+
}, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), St = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), M = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), pe = /* @__PURE__ */ i((e, n) => !P(e) && !ie(n), "isTreeGridCheckboxSelectionMode"), sn = /* @__PURE__ */ i((e) => {
|
|
108
122
|
const n = e.Cfg;
|
|
109
123
|
return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
|
|
110
124
|
}, "getTreeGridJsonCfgRecords"), Z = /* @__PURE__ */ i((e, n) => {
|
|
@@ -112,18 +126,18 @@ const li = 300, Yn = 3, Zn = {
|
|
|
112
126
|
return sn(e).forEach((r) => {
|
|
113
127
|
n in r && (t = r[n]);
|
|
114
128
|
}), t;
|
|
115
|
-
}, "getTreeGridJsonCfgValue"),
|
|
129
|
+
}, "getTreeGridJsonCfgValue"), Gt = /* @__PURE__ */ i((e, n) => {
|
|
116
130
|
const t = {};
|
|
117
131
|
return n.forEach((r) => {
|
|
118
132
|
const s = Z(e, r);
|
|
119
133
|
s !== void 0 && (t[r] = s);
|
|
120
134
|
}), t;
|
|
121
|
-
}, "getTreeGridJsonCfgValues"),
|
|
135
|
+
}, "getTreeGridJsonCfgValues"), Rt = /* @__PURE__ */ i((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), gt = /* @__PURE__ */ i((e) => rn.every((n) => {
|
|
122
136
|
const t = e[n];
|
|
123
|
-
return t === void 0 ||
|
|
137
|
+
return t === void 0 || Rt(t);
|
|
124
138
|
}), "canApplyTreeGridStableScrollbarDefaults"), on = /* @__PURE__ */ i((e) => {
|
|
125
139
|
const n = {};
|
|
126
|
-
return
|
|
140
|
+
return gt(e) && Object.entries(ct).forEach(
|
|
127
141
|
([t, r]) => {
|
|
128
142
|
e[t] === void 0 && (n[t] = r);
|
|
129
143
|
}
|
|
@@ -146,7 +160,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
146
160
|
return Object.entries(n).forEach(([r, s]) => {
|
|
147
161
|
t = se(t, r, s);
|
|
148
162
|
}), t;
|
|
149
|
-
}, "setTreeGridXmlTagAttributes"),
|
|
163
|
+
}, "setTreeGridXmlTagAttributes"), D = /* @__PURE__ */ i((e, n) => {
|
|
150
164
|
let t = e;
|
|
151
165
|
return Object.entries(n).forEach(([r, s]) => {
|
|
152
166
|
k(t, r) || (t = V(t, r, s));
|
|
@@ -162,9 +176,9 @@ const li = 300, Yn = 3, Zn = {
|
|
|
162
176
|
if (!T || a.startsWith("<!--") || a.startsWith("<?") || a.startsWith("<!"))
|
|
163
177
|
continue;
|
|
164
178
|
!t.hasFastPanel && k(a, "FastPanel") && (t.hasFastPanel = !0);
|
|
165
|
-
const G = a.startsWith("</"),
|
|
179
|
+
const G = a.startsWith("</"), R = /\/>\s*$/.test(a);
|
|
166
180
|
if (!c) {
|
|
167
|
-
!G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s =
|
|
181
|
+
!G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s = R ? 0 : 1);
|
|
168
182
|
continue;
|
|
169
183
|
}
|
|
170
184
|
if (G) {
|
|
@@ -175,25 +189,25 @@ const li = 300, Yn = 3, Zn = {
|
|
|
175
189
|
s === 1 && (T === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
|
|
176
190
|
index: r.index,
|
|
177
191
|
tag: a
|
|
178
|
-
}),
|
|
179
|
-
const
|
|
180
|
-
|
|
192
|
+
}), pt.forEach((h) => {
|
|
193
|
+
const _ = ln(a, h);
|
|
194
|
+
_ !== void 0 && (t.cfgValues[h] = _);
|
|
181
195
|
}), t.lastCfgEndIndex = r.index + a.length) : T === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
|
|
182
196
|
index: r.index,
|
|
183
197
|
tag: a
|
|
184
|
-
} : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag &&
|
|
198
|
+
} : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && ht(a) && (t.defaultPanelTag = {
|
|
185
199
|
index: r.index,
|
|
186
200
|
tag: a
|
|
187
201
|
})) : T === "animations" && !t.animationsTag && (t.animationsTag = {
|
|
188
202
|
index: r.index,
|
|
189
203
|
tag: a
|
|
190
|
-
})),
|
|
204
|
+
})), R || (s += 1);
|
|
191
205
|
}
|
|
192
206
|
return t;
|
|
193
|
-
}, "scanTreeGridXmlDefaultLayout"),
|
|
207
|
+
}, "scanTreeGridXmlDefaultLayout"), ht = /* @__PURE__ */ i((e) => {
|
|
194
208
|
const n = ln(e, "Name");
|
|
195
209
|
return n === void 0 || n === "" || n.toLowerCase() === "panel";
|
|
196
|
-
}, "isTreeGridXmlDefaultPanelTag"),
|
|
210
|
+
}, "isTreeGridXmlDefaultPanelTag"), At = /* @__PURE__ */ i((e) => {
|
|
197
211
|
const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
|
|
198
212
|
let r;
|
|
199
213
|
for (; r = n.exec(e); ) {
|
|
@@ -208,8 +222,8 @@ const li = 300, Yn = 3, Zn = {
|
|
|
208
222
|
});
|
|
209
223
|
}
|
|
210
224
|
return t;
|
|
211
|
-
}, "getLeadingTreeGridXmlHeaderTags"),
|
|
212
|
-
const n =
|
|
225
|
+
}, "getLeadingTreeGridXmlHeaderTags"), mt = /* @__PURE__ */ i((e) => {
|
|
226
|
+
const n = At(e);
|
|
213
227
|
if (n.length <= 1)
|
|
214
228
|
return {
|
|
215
229
|
headContent: e,
|
|
@@ -232,12 +246,12 @@ const li = 300, Yn = 3, Zn = {
|
|
|
232
246
|
)}`,
|
|
233
247
|
isApplied: !0
|
|
234
248
|
};
|
|
235
|
-
}, "applyTreeGridXmlHeadPanelRowSpanDefault"),
|
|
249
|
+
}, "applyTreeGridXmlHeadPanelRowSpanDefault"), _t = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), un = /* @__PURE__ */ i((e) => pn(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), fn = /* @__PURE__ */ i((e) => un(e) || Cn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), an = /* @__PURE__ */ i((e, n) => {
|
|
236
250
|
if (n.gridOpenTagEndIndex === void 0 || !fn(n))
|
|
237
251
|
return e;
|
|
238
252
|
const t = n.defaultPanelTag;
|
|
239
253
|
if (t) {
|
|
240
|
-
const s =
|
|
254
|
+
const s = D(
|
|
241
255
|
t.tag,
|
|
242
256
|
dt
|
|
243
257
|
);
|
|
@@ -245,18 +259,18 @@ const li = 300, Yn = 3, Zn = {
|
|
|
245
259
|
t.index + t.tag.length
|
|
246
260
|
)}`;
|
|
247
261
|
}
|
|
248
|
-
const r =
|
|
262
|
+
const r = _t(n);
|
|
249
263
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
250
264
|
<Panel Spanned="1" />${e.slice(
|
|
251
265
|
r
|
|
252
266
|
)}`;
|
|
253
|
-
}, "applyTreeGridXmlDefaultPanelSpannedLayout"),
|
|
267
|
+
}, "applyTreeGridXmlDefaultPanelSpannedLayout"), Lt = /* @__PURE__ */ i((e, n) => un(n) ? an(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), Ot = /* @__PURE__ */ i((e) => {
|
|
254
268
|
const n = e.trim();
|
|
255
|
-
return !n || n.startsWith("{") ? e :
|
|
269
|
+
return !n || n.startsWith("{") ? e : Lt(
|
|
256
270
|
e,
|
|
257
271
|
L(e)
|
|
258
272
|
);
|
|
259
|
-
}, "applyTreeGridDefaultPanelSpannedLayout"),
|
|
273
|
+
}, "applyTreeGridDefaultPanelSpannedLayout"), xt = /* @__PURE__ */ i((e) => {
|
|
260
274
|
if (!/<Head\b/i.test(e))
|
|
261
275
|
return e;
|
|
262
276
|
const n = L(e);
|
|
@@ -266,7 +280,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
266
280
|
const r = e.replace(
|
|
267
281
|
/(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
|
|
268
282
|
(s, c, f, a) => {
|
|
269
|
-
const T =
|
|
283
|
+
const T = mt(f);
|
|
270
284
|
return T.isApplied ? (t = !0, `${c}${T.headContent}${a}`) : s;
|
|
271
285
|
}
|
|
272
286
|
);
|
|
@@ -274,18 +288,18 @@ const li = 300, Yn = 3, Zn = {
|
|
|
274
288
|
r,
|
|
275
289
|
L(r)
|
|
276
290
|
) : e;
|
|
277
|
-
}, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Tn = /* @__PURE__ */ i((e) =>
|
|
291
|
+
}, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Tn = /* @__PURE__ */ i((e) => pe(
|
|
278
292
|
Z(e, "Selecting"),
|
|
279
293
|
Z(e, "SelectingSingle")
|
|
280
|
-
), "isTreeGridJsonCheckboxSelectionLayout"),
|
|
294
|
+
), "isTreeGridJsonCheckboxSelectionLayout"), En = /* @__PURE__ */ i((e) => pe(
|
|
281
295
|
e.Selecting,
|
|
282
296
|
e.SelectingSingle
|
|
283
|
-
), "isTreeGridXmlCheckboxSelectionLayout"),
|
|
284
|
-
if (n.gridOpenTagEndIndex === void 0 || !
|
|
297
|
+
), "isTreeGridXmlCheckboxSelectionLayout"), pn = /* @__PURE__ */ i((e) => !P(e.Selecting), "isTreeGridXmlSelectingLayout"), Cn = /* @__PURE__ */ i((e) => M(e.Undo, "1") && M(e.Deleting, "2") && M(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), bt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), It = /* @__PURE__ */ i((e, n) => {
|
|
298
|
+
if (n.gridOpenTagEndIndex === void 0 || !pn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
|
|
285
299
|
return e;
|
|
286
300
|
const t = n.defaultActionsTag;
|
|
287
301
|
if (t) {
|
|
288
|
-
const s =
|
|
302
|
+
const s = D(
|
|
289
303
|
t.tag,
|
|
290
304
|
H
|
|
291
305
|
);
|
|
@@ -293,17 +307,17 @@ const li = 300, Yn = 3, Zn = {
|
|
|
293
307
|
t.index + t.tag.length
|
|
294
308
|
)}`;
|
|
295
309
|
}
|
|
296
|
-
const r =
|
|
310
|
+
const r = bt(n);
|
|
297
311
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
298
312
|
<Actions OnClickCell="Focus" />${e.slice(
|
|
299
313
|
r
|
|
300
314
|
)}`;
|
|
301
|
-
}, "applyTreeGridXmlDefaultCellClickActionLayout"),
|
|
302
|
-
if (n.gridOpenTagEndIndex === void 0 || !
|
|
315
|
+
}, "applyTreeGridXmlDefaultCellClickActionLayout"), wt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), yt = /* @__PURE__ */ i((e, n) => {
|
|
316
|
+
if (n.gridOpenTagEndIndex === void 0 || !En(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
|
|
303
317
|
return e;
|
|
304
318
|
const t = n.defaultActionsTag;
|
|
305
319
|
if (t) {
|
|
306
|
-
const s =
|
|
320
|
+
const s = D(
|
|
307
321
|
t.tag,
|
|
308
322
|
z
|
|
309
323
|
);
|
|
@@ -311,7 +325,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
311
325
|
t.index + t.tag.length
|
|
312
326
|
)}`;
|
|
313
327
|
}
|
|
314
|
-
const r =
|
|
328
|
+
const r = wt(n);
|
|
315
329
|
return r === void 0 ? e : `${e.slice(
|
|
316
330
|
0,
|
|
317
331
|
r
|
|
@@ -319,12 +333,12 @@ const li = 300, Yn = 3, Zn = {
|
|
|
319
333
|
<Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
|
|
320
334
|
r
|
|
321
335
|
)}`;
|
|
322
|
-
}, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"),
|
|
323
|
-
if (n.gridOpenTagEndIndex === void 0 || !
|
|
336
|
+
}, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), $t = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Pt = /* @__PURE__ */ i((e, n) => {
|
|
337
|
+
if (n.gridOpenTagEndIndex === void 0 || !Cn(n.cfgValues))
|
|
324
338
|
return e;
|
|
325
339
|
const t = n.defaultPanelTag;
|
|
326
340
|
if (t) {
|
|
327
|
-
const c =
|
|
341
|
+
const c = D(
|
|
328
342
|
t.tag,
|
|
329
343
|
lt
|
|
330
344
|
);
|
|
@@ -332,20 +346,20 @@ const li = 300, Yn = 3, Zn = {
|
|
|
332
346
|
t.index + t.tag.length
|
|
333
347
|
)}`;
|
|
334
348
|
}
|
|
335
|
-
const r =
|
|
349
|
+
const r = $t(n);
|
|
336
350
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
337
351
|
<Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
|
|
338
352
|
r
|
|
339
353
|
)}`;
|
|
340
|
-
}, "applyTreeGridXmlDefaultDeletePanelLayout"),
|
|
341
|
-
if (n.hasFastPanel || !
|
|
354
|
+
}, "applyTreeGridXmlDefaultDeletePanelLayout"), Dt = /* @__PURE__ */ i((e, n) => {
|
|
355
|
+
if (n.hasFastPanel || !En(n.cfgValues))
|
|
342
356
|
return e;
|
|
343
357
|
const t = n.gridOpenTagEndIndex;
|
|
344
358
|
return t === void 0 ? e : `${e.slice(0, t)}
|
|
345
359
|
<Cfg FastPanel="0" />${e.slice(
|
|
346
360
|
t
|
|
347
361
|
)}`;
|
|
348
|
-
}, "applyTreeGridXmlDefaultFastPanelLayout"),
|
|
362
|
+
}, "applyTreeGridXmlDefaultFastPanelLayout"), vt = /* @__PURE__ */ i((e) => {
|
|
349
363
|
const n = e.Cfg;
|
|
350
364
|
if (Array.isArray(n)) {
|
|
351
365
|
n.some((t) => S(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
|
|
@@ -356,7 +370,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
356
370
|
return;
|
|
357
371
|
}
|
|
358
372
|
e.Cfg = { FastPanel: 0 };
|
|
359
|
-
}, "applyTreeGridJsonFastPanelDefault"),
|
|
373
|
+
}, "applyTreeGridJsonFastPanelDefault"), Bt = /* @__PURE__ */ i((e) => {
|
|
360
374
|
const n = e.Actions;
|
|
361
375
|
if (Array.isArray(n)) {
|
|
362
376
|
n.some(
|
|
@@ -369,7 +383,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
369
383
|
return;
|
|
370
384
|
}
|
|
371
385
|
n === void 0 && (e.Actions = { ...z });
|
|
372
|
-
}, "applyTreeGridJsonSelectAllPanelActionDefault"),
|
|
386
|
+
}, "applyTreeGridJsonSelectAllPanelActionDefault"), Ft = /* @__PURE__ */ i((e) => {
|
|
373
387
|
const n = e.Actions;
|
|
374
388
|
if (Array.isArray(n)) {
|
|
375
389
|
n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...H }, ...n]);
|
|
@@ -380,35 +394,35 @@ const li = 300, Yn = 3, Zn = {
|
|
|
380
394
|
return;
|
|
381
395
|
}
|
|
382
396
|
n === void 0 && (e.Actions = { ...H });
|
|
383
|
-
}, "applyTreeGridJsonCellClickActionDefault"),
|
|
397
|
+
}, "applyTreeGridJsonCellClickActionDefault"), Nt = /* @__PURE__ */ i((e) => {
|
|
384
398
|
try {
|
|
385
399
|
const n = JSON.parse(e);
|
|
386
|
-
return !S(n) || P(Z(n, "Selecting")) ? e : (
|
|
400
|
+
return !S(n) || P(Z(n, "Selecting")) ? e : (Ft(n), JSON.stringify(n));
|
|
387
401
|
} catch {
|
|
388
402
|
return e;
|
|
389
403
|
}
|
|
390
404
|
}, "applyTreeGridJsonDefaultCellClickActionLayout"), Be = /* @__PURE__ */ i((e, n) => {
|
|
391
405
|
const t = e.trim();
|
|
392
|
-
return t ? t.startsWith("{") ?
|
|
406
|
+
return t ? t.startsWith("{") ? Nt(e) : It(
|
|
393
407
|
e,
|
|
394
408
|
n ?? L(e)
|
|
395
409
|
) : e;
|
|
396
|
-
}, "applyTreeGridDefaultCellClickActionLayout"),
|
|
410
|
+
}, "applyTreeGridDefaultCellClickActionLayout"), Ut = /* @__PURE__ */ i((e) => {
|
|
397
411
|
try {
|
|
398
412
|
const n = JSON.parse(e);
|
|
399
|
-
return !S(n) || !Tn(n) ? e : (
|
|
413
|
+
return !S(n) || !Tn(n) ? e : (Bt(n), JSON.stringify(n));
|
|
400
414
|
} catch {
|
|
401
415
|
return e;
|
|
402
416
|
}
|
|
403
417
|
}, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Fe = /* @__PURE__ */ i((e, n) => {
|
|
404
418
|
const t = e.trim();
|
|
405
|
-
return t ? t.startsWith("{") ?
|
|
419
|
+
return t ? t.startsWith("{") ? Ut(e) : yt(
|
|
406
420
|
e,
|
|
407
421
|
n ?? L(e)
|
|
408
422
|
) : e;
|
|
409
|
-
}, "applyTreeGridDefaultSelectAllPanelActionLayout"),
|
|
423
|
+
}, "applyTreeGridDefaultSelectAllPanelActionLayout"), kt = /* @__PURE__ */ i((e) => {
|
|
410
424
|
const n = on(
|
|
411
|
-
|
|
425
|
+
Gt(e, rn)
|
|
412
426
|
);
|
|
413
427
|
if (!cn(n))
|
|
414
428
|
return;
|
|
@@ -423,14 +437,14 @@ const li = 300, Yn = 3, Zn = {
|
|
|
423
437
|
return;
|
|
424
438
|
}
|
|
425
439
|
e.Cfg = n;
|
|
426
|
-
}, "applyTreeGridJsonStableScrollbarDefaults"),
|
|
440
|
+
}, "applyTreeGridJsonStableScrollbarDefaults"), Mt = /* @__PURE__ */ i((e) => {
|
|
427
441
|
try {
|
|
428
442
|
const n = JSON.parse(e);
|
|
429
|
-
return S(n) ? (
|
|
443
|
+
return S(n) ? (kt(n), JSON.stringify(n)) : e;
|
|
430
444
|
} catch {
|
|
431
445
|
return e;
|
|
432
446
|
}
|
|
433
|
-
}, "applyTreeGridJsonStableScrollbarDefaultLayout"),
|
|
447
|
+
}, "applyTreeGridJsonStableScrollbarDefaultLayout"), Vt = /* @__PURE__ */ i((e, n) => {
|
|
434
448
|
const t = on(
|
|
435
449
|
n.cfgValues
|
|
436
450
|
);
|
|
@@ -438,7 +452,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
438
452
|
return e;
|
|
439
453
|
const r = n.defaultCfgTag;
|
|
440
454
|
if (r) {
|
|
441
|
-
const f =
|
|
455
|
+
const f = D(
|
|
442
456
|
r.tag,
|
|
443
457
|
t
|
|
444
458
|
);
|
|
@@ -449,7 +463,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
449
463
|
const s = n.gridOpenTagEndIndex;
|
|
450
464
|
if (s === void 0)
|
|
451
465
|
return e;
|
|
452
|
-
const c =
|
|
466
|
+
const c = D(
|
|
453
467
|
"<Cfg />",
|
|
454
468
|
t
|
|
455
469
|
);
|
|
@@ -457,9 +471,9 @@ const li = 300, Yn = 3, Zn = {
|
|
|
457
471
|
${c}${e.slice(
|
|
458
472
|
s
|
|
459
473
|
)}`;
|
|
460
|
-
}, "applyTreeGridXmlStableScrollbarDefaultLayout"),
|
|
474
|
+
}, "applyTreeGridXmlStableScrollbarDefaultLayout"), Xt = /* @__PURE__ */ i((e) => {
|
|
461
475
|
const n = e.trim();
|
|
462
|
-
return n ? n.startsWith("{") ?
|
|
476
|
+
return n ? n.startsWith("{") ? Mt(e) : Vt(
|
|
463
477
|
e,
|
|
464
478
|
L(e)
|
|
465
479
|
) : e;
|
|
@@ -475,7 +489,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
475
489
|
return;
|
|
476
490
|
}
|
|
477
491
|
e.Text = { ...I };
|
|
478
|
-
}, "applyTreeGridJsonLangPageMessageTextDefaults"),
|
|
492
|
+
}, "applyTreeGridJsonLangPageMessageTextDefaults"), Jt = /* @__PURE__ */ i((e) => {
|
|
479
493
|
const n = e.Lang;
|
|
480
494
|
if (Array.isArray(n)) {
|
|
481
495
|
const t = n.find(S);
|
|
@@ -487,14 +501,14 @@ const li = 300, Yn = 3, Zn = {
|
|
|
487
501
|
return;
|
|
488
502
|
}
|
|
489
503
|
e.Lang = { Text: { ...I } };
|
|
490
|
-
}, "applyTreeGridJsonPageMessageTextDefaults"),
|
|
504
|
+
}, "applyTreeGridJsonPageMessageTextDefaults"), Wt = /* @__PURE__ */ i((e) => {
|
|
491
505
|
try {
|
|
492
506
|
const n = JSON.parse(e);
|
|
493
|
-
return S(n) ? (
|
|
507
|
+
return S(n) ? (Jt(n), JSON.stringify(n)) : e;
|
|
494
508
|
} catch {
|
|
495
509
|
return e;
|
|
496
510
|
}
|
|
497
|
-
}, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", I), "createTreeGridXmlPageMessageTextTag"),
|
|
511
|
+
}, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", I), "createTreeGridXmlPageMessageTextTag"), jt = /* @__PURE__ */ i((e) => {
|
|
498
512
|
let n = !1;
|
|
499
513
|
const t = e.replace(
|
|
500
514
|
/(<Lang\b[^>]*>)([\s\S]*?)(<\/Lang>)/i,
|
|
@@ -513,8 +527,8 @@ const li = 300, Yn = 3, Zn = {
|
|
|
513
527
|
return n ? t : e.replace(/<Lang\b[^>]*\/>/i, (r) => (n = !0, `${r.replace(/\s*\/>$/, ">")}
|
|
514
528
|
${oe()}
|
|
515
529
|
</Lang>`));
|
|
516
|
-
}, "applyTreeGridXmlPageMessageTextToLangLayout"),
|
|
517
|
-
const n =
|
|
530
|
+
}, "applyTreeGridXmlPageMessageTextToLangLayout"), Kt = /* @__PURE__ */ i((e) => {
|
|
531
|
+
const n = jt(e);
|
|
518
532
|
if (n !== e)
|
|
519
533
|
return n;
|
|
520
534
|
const t = L(e), r = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
|
|
@@ -524,10 +538,10 @@ const li = 300, Yn = 3, Zn = {
|
|
|
524
538
|
</Lang>${e.slice(
|
|
525
539
|
r
|
|
526
540
|
)}`;
|
|
527
|
-
}, "applyTreeGridXmlPageMessageTextLayout"),
|
|
541
|
+
}, "applyTreeGridXmlPageMessageTextLayout"), Ht = /* @__PURE__ */ i((e) => {
|
|
528
542
|
const n = e.trim();
|
|
529
|
-
return n ? n.startsWith("{") ?
|
|
530
|
-
}, "applyTreeGridPageMessageTextLayout"),
|
|
543
|
+
return n ? n.startsWith("{") ? Wt(e) : Kt(e) : e;
|
|
544
|
+
}, "applyTreeGridPageMessageTextLayout"), zt = /* @__PURE__ */ i((e, n) => {
|
|
531
545
|
if (n === void 0)
|
|
532
546
|
return e;
|
|
533
547
|
try {
|
|
@@ -539,7 +553,7 @@ const li = 300, Yn = 3, Zn = {
|
|
|
539
553
|
} catch {
|
|
540
554
|
return e;
|
|
541
555
|
}
|
|
542
|
-
}, "applyTreeGridJsonDefaultSuppressCfgLayout"),
|
|
556
|
+
}, "applyTreeGridJsonDefaultSuppressCfgLayout"), Yt = /* @__PURE__ */ i((e, n, t) => {
|
|
543
557
|
if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
|
|
544
558
|
return e;
|
|
545
559
|
const r = n.defaultCfgTag;
|
|
@@ -554,39 +568,39 @@ const li = 300, Yn = 3, Zn = {
|
|
|
554
568
|
<Cfg SuppressCfg="${t}" />${e.slice(
|
|
555
569
|
s
|
|
556
570
|
)}`;
|
|
557
|
-
}, "applyTreeGridXmlDefaultSuppressCfgLayout"),
|
|
571
|
+
}, "applyTreeGridXmlDefaultSuppressCfgLayout"), Zt = /* @__PURE__ */ i((e, n) => {
|
|
558
572
|
const t = e.trim();
|
|
559
|
-
return n === void 0 || !t ? e : t.startsWith("{") ?
|
|
573
|
+
return n === void 0 || !t ? e : t.startsWith("{") ? zt(e, n) : Yt(
|
|
560
574
|
e,
|
|
561
575
|
L(e),
|
|
562
576
|
n
|
|
563
577
|
);
|
|
564
|
-
}, "applyTreeGridDefaultSuppressCfgLayout"),
|
|
578
|
+
}, "applyTreeGridDefaultSuppressCfgLayout"), qt = /* @__PURE__ */ i((e) => tn.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Qt = /* @__PURE__ */ i((e) => {
|
|
565
579
|
const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], s = Array.isArray(t) ? t.filter(
|
|
566
580
|
(c) => S(c) && M(c.Kind, "Toolbar")
|
|
567
581
|
) : S(t) && M(t.Kind, "Toolbar") ? [t] : [];
|
|
568
582
|
return [...r, ...s];
|
|
569
|
-
}, "getTreeGridJsonToolbarRecords"),
|
|
583
|
+
}, "getTreeGridJsonToolbarRecords"), er = /* @__PURE__ */ i((e, n) => {
|
|
570
584
|
if (!n)
|
|
571
585
|
return e;
|
|
572
586
|
try {
|
|
573
587
|
const t = JSON.parse(e);
|
|
574
588
|
if (!S(t))
|
|
575
589
|
return e;
|
|
576
|
-
const r =
|
|
577
|
-
return r.some(
|
|
590
|
+
const r = Qt(t);
|
|
591
|
+
return r.some(qt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
|
|
578
592
|
} catch {
|
|
579
593
|
return e;
|
|
580
594
|
}
|
|
581
|
-
}, "applyTreeGridJsonDefaultToolbarTotalCountLayout"),
|
|
595
|
+
}, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), nr = /* @__PURE__ */ i((e) => tn.some(
|
|
582
596
|
(n) => k(e, n)
|
|
583
|
-
), "hasTreeGridXmlToolbarFormulaAttribute"),
|
|
597
|
+
), "hasTreeGridXmlToolbarFormulaAttribute"), tr = /* @__PURE__ */ i((e, n) => {
|
|
584
598
|
if (!n)
|
|
585
599
|
return e;
|
|
586
|
-
const t =
|
|
600
|
+
const t = Et.exec(e);
|
|
587
601
|
if (t) {
|
|
588
602
|
const f = t[0];
|
|
589
|
-
if (
|
|
603
|
+
if (nr(f))
|
|
590
604
|
return e;
|
|
591
605
|
const a = se(
|
|
592
606
|
f,
|
|
@@ -601,42 +615,42 @@ const li = 300, Yn = 3, Zn = {
|
|
|
601
615
|
"<Toolbar />",
|
|
602
616
|
"Formula",
|
|
603
617
|
n
|
|
604
|
-
), s =
|
|
618
|
+
), s = Tt.exec(e);
|
|
605
619
|
if (s)
|
|
606
620
|
return `${e.slice(0, s.index)} ${r}
|
|
607
621
|
${e.slice(
|
|
608
622
|
s.index
|
|
609
623
|
)}`;
|
|
610
|
-
const c =
|
|
624
|
+
const c = at.exec(e);
|
|
611
625
|
return c ? `${e.slice(
|
|
612
626
|
0,
|
|
613
627
|
c.index + c[0].length
|
|
614
628
|
)}
|
|
615
629
|
${r}${e.slice(c.index + c[0].length)}` : e;
|
|
616
|
-
}, "applyTreeGridXmlDefaultToolbarTotalCountLayout"),
|
|
630
|
+
}, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), rr = /* @__PURE__ */ i((e, n) => {
|
|
617
631
|
const t = e.trim();
|
|
618
|
-
return !n || !t ? e : t.startsWith("{") ?
|
|
632
|
+
return !n || !t ? e : t.startsWith("{") ? er(
|
|
619
633
|
e,
|
|
620
634
|
n
|
|
621
|
-
) :
|
|
622
|
-
}, "applyTreeGridDefaultToolbarTotalCountLayout"),
|
|
635
|
+
) : tr(e, n);
|
|
636
|
+
}, "applyTreeGridDefaultToolbarTotalCountLayout"), ir = /* @__PURE__ */ i((e) => {
|
|
623
637
|
try {
|
|
624
638
|
const n = JSON.parse(e);
|
|
625
|
-
return !S(n) || !Tn(n) ? e : (
|
|
639
|
+
return !S(n) || !Tn(n) ? e : (vt(n), JSON.stringify(n));
|
|
626
640
|
} catch {
|
|
627
641
|
return e;
|
|
628
642
|
}
|
|
629
643
|
}, "applyTreeGridJsonDefaultFastPanelLayout"), Ue = /* @__PURE__ */ i((e, n) => {
|
|
630
644
|
const t = e.trim();
|
|
631
|
-
return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e :
|
|
645
|
+
return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : ir(e) : Dt(
|
|
632
646
|
e,
|
|
633
647
|
n ?? L(e)
|
|
634
648
|
) : e;
|
|
635
|
-
}, "applyTreeGridDefaultFastPanelLayout"),
|
|
649
|
+
}, "applyTreeGridDefaultFastPanelLayout"), sr = /* @__PURE__ */ i((e) => {
|
|
636
650
|
const n = e.Animations;
|
|
637
651
|
if (Array.isArray(n)) {
|
|
638
652
|
const t = n.find(S);
|
|
639
|
-
t ?
|
|
653
|
+
t ? ve(
|
|
640
654
|
t,
|
|
641
655
|
U
|
|
642
656
|
) : e.Animations = [
|
|
@@ -646,30 +660,30 @@ ${e.slice(
|
|
|
646
660
|
return;
|
|
647
661
|
}
|
|
648
662
|
if (S(n)) {
|
|
649
|
-
|
|
663
|
+
ve(
|
|
650
664
|
n,
|
|
651
665
|
U
|
|
652
666
|
);
|
|
653
667
|
return;
|
|
654
668
|
}
|
|
655
669
|
n === void 0 && (e.Animations = { ...U });
|
|
656
|
-
}, "
|
|
670
|
+
}, "applyTreeGridJsonDefaultAnimationDefaults"), or = /* @__PURE__ */ i((e) => {
|
|
657
671
|
try {
|
|
658
672
|
const n = JSON.parse(e);
|
|
659
|
-
return S(n) ? (
|
|
673
|
+
return S(n) ? (sr(n), JSON.stringify(n)) : e;
|
|
660
674
|
} catch {
|
|
661
675
|
return e;
|
|
662
676
|
}
|
|
663
|
-
}, "
|
|
677
|
+
}, "applyTreeGridJsonDefaultAnimationLayout"), cr = /* @__PURE__ */ i(() => X(
|
|
664
678
|
"<Animations />",
|
|
665
679
|
U
|
|
666
|
-
), "
|
|
680
|
+
), "createTreeGridDefaultAnimationsTag"), lr = /* @__PURE__ */ i((e, n) => {
|
|
667
681
|
const t = L(e);
|
|
668
682
|
if (t.gridOpenTagEndIndex === void 0)
|
|
669
683
|
return e;
|
|
670
684
|
const r = t.animationsTag;
|
|
671
685
|
if (r) {
|
|
672
|
-
const c =
|
|
686
|
+
const c = D(
|
|
673
687
|
r.tag,
|
|
674
688
|
U
|
|
675
689
|
);
|
|
@@ -679,13 +693,13 @@ ${e.slice(
|
|
|
679
693
|
}
|
|
680
694
|
const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
|
|
681
695
|
return `${e.slice(0, s)}
|
|
682
|
-
${
|
|
696
|
+
${cr()}${e.slice(
|
|
683
697
|
s
|
|
684
698
|
)}`;
|
|
685
|
-
}, "
|
|
699
|
+
}, "applyTreeGridXmlDefaultAnimationLayout"), ke = /* @__PURE__ */ i((e, n) => {
|
|
686
700
|
const t = e.trim();
|
|
687
|
-
return t ? t.startsWith("{") ?
|
|
688
|
-
}, "
|
|
701
|
+
return t ? t.startsWith("{") ? or(e) : lr(e) : e;
|
|
702
|
+
}, "applyTreeGridDefaultAnimationLayout"), dr = /* @__PURE__ */ i((e) => {
|
|
689
703
|
const n = {};
|
|
690
704
|
return e == null || e.forEach((t) => {
|
|
691
705
|
var r;
|
|
@@ -693,7 +707,7 @@ ${e.slice(
|
|
|
693
707
|
n[s] = "";
|
|
694
708
|
});
|
|
695
709
|
}), n;
|
|
696
|
-
}, "getTreeGridDisabledAnimationAttributes"),
|
|
710
|
+
}, "getTreeGridDisabledAnimationAttributes"), ur = /* @__PURE__ */ i((e, n) => {
|
|
697
711
|
try {
|
|
698
712
|
const t = JSON.parse(e);
|
|
699
713
|
if (!S(t))
|
|
@@ -712,7 +726,7 @@ ${e.slice(
|
|
|
712
726
|
} catch {
|
|
713
727
|
return e;
|
|
714
728
|
}
|
|
715
|
-
}, "applyTreeGridJsonDisabledAnimationsLayout"),
|
|
729
|
+
}, "applyTreeGridJsonDisabledAnimationsLayout"), fr = /* @__PURE__ */ i((e) => X("<Animations />", e), "createTreeGridDisabledAnimationsTag"), ar = /* @__PURE__ */ i((e, n) => {
|
|
716
730
|
const t = L(e);
|
|
717
731
|
if (t.gridOpenTagEndIndex === void 0)
|
|
718
732
|
return e;
|
|
@@ -725,22 +739,22 @@ ${e.slice(
|
|
|
725
739
|
}
|
|
726
740
|
const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
|
|
727
741
|
return `${e.slice(0, s)}
|
|
728
|
-
${
|
|
742
|
+
${fr(
|
|
729
743
|
n
|
|
730
744
|
)}${e.slice(s)}`;
|
|
731
745
|
}, "applyTreeGridXmlDisabledAnimationsLayout"), Me = /* @__PURE__ */ i((e, n) => {
|
|
732
|
-
const t =
|
|
746
|
+
const t = dr(n);
|
|
733
747
|
if (!Object.keys(t).length)
|
|
734
748
|
return e;
|
|
735
749
|
const r = e.trim();
|
|
736
|
-
return r ? r.startsWith("{") ?
|
|
750
|
+
return r ? r.startsWith("{") ? ur(e, t) : ar(e, t) : e;
|
|
737
751
|
}, "applyTreeGridDisabledAnimationsLayout"), ce = /* @__PURE__ */ i((e, n, t, r) => {
|
|
738
|
-
const s =
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
752
|
+
const s = rr(
|
|
753
|
+
Ht(
|
|
754
|
+
Ot(
|
|
755
|
+
xt(
|
|
756
|
+
Xt(
|
|
757
|
+
Zt(e, r)
|
|
744
758
|
)
|
|
745
759
|
)
|
|
746
760
|
)
|
|
@@ -764,23 +778,23 @@ ${e.slice(
|
|
|
764
778
|
), T = a === s ? f : L(a), G = Be(
|
|
765
779
|
a,
|
|
766
780
|
T
|
|
767
|
-
),
|
|
781
|
+
), R = G === a ? T : L(G);
|
|
768
782
|
return Me(
|
|
769
783
|
ke(
|
|
770
|
-
|
|
784
|
+
Pt(
|
|
771
785
|
Ue(
|
|
772
786
|
G,
|
|
773
|
-
|
|
787
|
+
R
|
|
774
788
|
),
|
|
775
|
-
|
|
789
|
+
R
|
|
776
790
|
)
|
|
777
791
|
),
|
|
778
792
|
n
|
|
779
793
|
);
|
|
780
|
-
}, "applyTreeGridDefaultLayout"),
|
|
794
|
+
}, "applyTreeGridDefaultLayout"), Tr = /* @__PURE__ */ i((e) => {
|
|
781
795
|
var n;
|
|
782
796
|
return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Vn}`)) ?? null;
|
|
783
|
-
}, "getTreeGridWrapperElement"),
|
|
797
|
+
}, "getTreeGridWrapperElement"), Er = /* @__PURE__ */ i((e) => {
|
|
784
798
|
if (ie(e.AllSelected))
|
|
785
799
|
return "checked";
|
|
786
800
|
if (P(e.AllSelected))
|
|
@@ -790,7 +804,7 @@ ${e.slice(
|
|
|
790
804
|
!A(r) || P(r.CanSelect) || (n += 1, ie(e.IsSelected(r)) && (t += 1));
|
|
791
805
|
}), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
|
|
792
806
|
}, "getTreeGridSelectAllState"), le = /* @__PURE__ */ i((e, n) => {
|
|
793
|
-
const t =
|
|
807
|
+
const t = Tr(n), r = !P(e.Selecting), s = pe(
|
|
794
808
|
e.Selecting,
|
|
795
809
|
e.SelectingSingle
|
|
796
810
|
), c = e.Header;
|
|
@@ -804,7 +818,7 @@ ${e.slice(
|
|
|
804
818
|
we
|
|
805
819
|
);
|
|
806
820
|
else {
|
|
807
|
-
const f =
|
|
821
|
+
const f = Er(e);
|
|
808
822
|
t == null || t.classList.toggle(
|
|
809
823
|
be,
|
|
810
824
|
f === "checked"
|
|
@@ -826,7 +840,7 @@ ${e.slice(
|
|
|
826
840
|
ne.delete(n), le(e, n);
|
|
827
841
|
}, 0);
|
|
828
842
|
ne.set(n, r);
|
|
829
|
-
}, "scheduleTreeGridSelectionPanelStateSync"),
|
|
843
|
+
}, "scheduleTreeGridSelectionPanelStateSync"), pr = /* @__PURE__ */ i((e, n) => {
|
|
830
844
|
e.EnterMode = n;
|
|
831
845
|
const t = Zn[n];
|
|
832
846
|
if (!t)
|
|
@@ -863,8 +877,8 @@ ${e.slice(
|
|
|
863
877
|
if (r !== void 0 && (n.CanEdit = r), c !== void 0) {
|
|
864
878
|
const T = n;
|
|
865
879
|
s.forEach((G) => {
|
|
866
|
-
var
|
|
867
|
-
!G || !((
|
|
880
|
+
var R;
|
|
881
|
+
!G || !((R = e.Cols) != null && R[G]) || (T[`${G}CanEdit`] = c);
|
|
868
882
|
});
|
|
869
883
|
}
|
|
870
884
|
f.forEach((T) => {
|
|
@@ -880,7 +894,7 @@ ${e.slice(
|
|
|
880
894
|
}
|
|
881
895
|
typeof e.RefreshRow == "function" && e.RefreshRow(n);
|
|
882
896
|
}
|
|
883
|
-
}, "syncTreeGridDeletedRowState"),
|
|
897
|
+
}, "syncTreeGridDeletedRowState"), Sr = /* @__PURE__ */ i((e) => e ? Sn(e) || e.includes("assets") ? de(e) : de(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Gr = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Rr = /* @__PURE__ */ i((e, n, t, r) => {
|
|
884
898
|
if (!(!e || t === "cancel")) {
|
|
885
899
|
if (t === "remove") {
|
|
886
900
|
e.RemoveRow(n), r(e);
|
|
@@ -888,7 +902,7 @@ ${e.slice(
|
|
|
888
902
|
}
|
|
889
903
|
e.DeleteRowT(n, 3);
|
|
890
904
|
}
|
|
891
|
-
}, "applyTreeGridBeforeRowUndeleteAction"),
|
|
905
|
+
}, "applyTreeGridBeforeRowUndeleteAction"), gr = /* @__PURE__ */ i((e, n, t) => e ? { Url: Sr(n) } : { Data: { Body: [Hn(t) ? [] : t] } }, "buildTreeGridDataSource"), fi = /* @__PURE__ */ i(({
|
|
892
906
|
id: e,
|
|
893
907
|
layoutUrl: n,
|
|
894
908
|
layoutData: t,
|
|
@@ -899,8 +913,8 @@ ${e.slice(
|
|
|
899
913
|
bodyData: a,
|
|
900
914
|
useDataUrl: T,
|
|
901
915
|
width: G,
|
|
902
|
-
height:
|
|
903
|
-
languageId:
|
|
916
|
+
height: R,
|
|
917
|
+
languageId: h
|
|
904
918
|
}) => ({
|
|
905
919
|
id: e,
|
|
906
920
|
Layout: t ? {
|
|
@@ -911,12 +925,12 @@ ${e.slice(
|
|
|
911
925
|
s
|
|
912
926
|
)
|
|
913
927
|
} : { Url: de(n ?? "") },
|
|
914
|
-
Data:
|
|
928
|
+
Data: gr(T, f, a),
|
|
915
929
|
Text: {
|
|
916
|
-
Url: Pn(
|
|
930
|
+
Url: Pn(h)
|
|
917
931
|
},
|
|
918
932
|
width: G,
|
|
919
|
-
height:
|
|
933
|
+
height: R,
|
|
920
934
|
Debug: "Error"
|
|
921
935
|
}), "buildTreeGridInitializationOptions"), We = /* @__PURE__ */ i((e) => zn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), je = /* @__PURE__ */ i((e) => {
|
|
922
936
|
if (typeof e == "number")
|
|
@@ -935,7 +949,7 @@ ${e.slice(
|
|
|
935
949
|
return c !== void 0 ? c : je(
|
|
936
950
|
n[`${t}${r}`]
|
|
937
951
|
);
|
|
938
|
-
}, "getTreeGridHeaderCellSpanAttribute"),
|
|
952
|
+
}, "getTreeGridHeaderCellSpanAttribute"), hr = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (ue(e, n, t, "Span") ?? 1) <= 1 ? !1 : (ue(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ke = /* @__PURE__ */ i((e, n, t) => {
|
|
939
953
|
const r = e.get(n);
|
|
940
954
|
if (r) {
|
|
941
955
|
r.add(t);
|
|
@@ -946,17 +960,17 @@ ${e.slice(
|
|
|
946
960
|
const s = /* @__PURE__ */ new Map();
|
|
947
961
|
return n.forEach((c, f) => {
|
|
948
962
|
t.forEach((a, T) => {
|
|
949
|
-
if (!
|
|
963
|
+
if (!hr(e, c, a) || (Ke(s, c, a), !r))
|
|
950
964
|
return;
|
|
951
|
-
const G = Math.floor(ue(e, c, a, "Span") ?? 1),
|
|
952
|
-
for (let
|
|
953
|
-
const
|
|
954
|
-
for (let
|
|
955
|
-
Ke(s,
|
|
965
|
+
const G = Math.floor(ue(e, c, a, "Span") ?? 1), R = Math.min(t.length, T + G);
|
|
966
|
+
for (let h = f + 1; h < n.length; h += 1) {
|
|
967
|
+
const _ = n[h];
|
|
968
|
+
for (let O = T; O < R; O += 1)
|
|
969
|
+
Ke(s, _, t[O]);
|
|
956
970
|
}
|
|
957
971
|
});
|
|
958
972
|
}), s;
|
|
959
|
-
}, "getTreeGridGroupHeaderSortButtonTargets"),
|
|
973
|
+
}, "getTreeGridGroupHeaderSortButtonTargets"), Ar = /* @__PURE__ */ i((e, n, t, r) => {
|
|
960
974
|
var f;
|
|
961
975
|
if (!n || !t || n.Fixed !== "Head")
|
|
962
976
|
return !1;
|
|
@@ -968,7 +982,7 @@ ${e.slice(
|
|
|
968
982
|
r
|
|
969
983
|
).get(n)) == null ? void 0 : f.has(t)) === !0;
|
|
970
984
|
}, "isTreeGridGroupHeaderSortButtonTarget"), He = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
|
|
971
|
-
const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((
|
|
985
|
+
const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((R) => R.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
|
|
972
986
|
if (!c.length || !f.length)
|
|
973
987
|
return;
|
|
974
988
|
const a = /* @__PURE__ */ new Set();
|
|
@@ -982,46 +996,46 @@ ${e.slice(
|
|
|
982
996
|
if (G.size) {
|
|
983
997
|
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
984
998
|
try {
|
|
985
|
-
G.forEach((
|
|
986
|
-
|
|
987
|
-
e.GetAttribute(
|
|
999
|
+
G.forEach((R, h) => {
|
|
1000
|
+
R.forEach((_) => {
|
|
1001
|
+
e.GetAttribute(h, _, $e) !== "" && (e.SetAttribute(h, _, $e, "", 0, 0), a.add(h), T += 1);
|
|
988
1002
|
});
|
|
989
1003
|
});
|
|
990
1004
|
} finally {
|
|
991
1005
|
typeof e.EndUpdate == "function" && e.EndUpdate();
|
|
992
1006
|
}
|
|
993
|
-
a.size && (t && a.forEach((
|
|
994
|
-
typeof e.RefreshRow == "function" && e.RefreshRow(
|
|
1007
|
+
a.size && (t && a.forEach((R) => {
|
|
1008
|
+
typeof e.RefreshRow == "function" && e.RefreshRow(R);
|
|
995
1009
|
}), Qe(n, "group header button attribute apply"), en(n, "group header button attribute apply", s, {
|
|
996
1010
|
updatedCellCount: T,
|
|
997
1011
|
updatedRowCount: a.size
|
|
998
1012
|
}));
|
|
999
1013
|
}
|
|
1000
|
-
}, "applyTreeGridGroupHeaderSortButtonAttributes"),
|
|
1014
|
+
}, "applyTreeGridGroupHeaderSortButtonAttributes"), mr = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), _r = /* @__PURE__ */ i((e) => {
|
|
1001
1015
|
const n = e == null ? void 0 : e.Visible;
|
|
1002
1016
|
return !!e && n !== 0 && n !== !1 && n !== "0";
|
|
1003
|
-
}, "isVisibleTreeGridRow"),
|
|
1017
|
+
}, "isVisibleTreeGridRow"), v = /* @__PURE__ */ i((e) => {
|
|
1004
1018
|
const n = e == null ? void 0 : e.Added;
|
|
1005
1019
|
return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
|
|
1006
|
-
}, "isAddedTreeGridRow"),
|
|
1020
|
+
}, "isAddedTreeGridRow"), Rn = /* @__PURE__ */ i((e) => {
|
|
1007
1021
|
const n = e == null ? void 0 : e.Deleted;
|
|
1008
1022
|
return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
|
|
1009
|
-
}, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !
|
|
1023
|
+
}, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !_r(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Lr = /* @__PURE__ */ i((e, n) => {
|
|
1010
1024
|
var r;
|
|
1011
1025
|
const t = (r = e.Cols) == null ? void 0 : r[n];
|
|
1012
|
-
return !!t && !P(t.Visible) && !
|
|
1013
|
-
}, "isVisibleTreeGridColumn"), K = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"),
|
|
1026
|
+
return !!t && !P(t.Visible) && !St(t.Hidden);
|
|
1027
|
+
}, "isVisibleTreeGridColumn"), K = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), Or = /* @__PURE__ */ i((e) => {
|
|
1014
1028
|
const n = re.get(e);
|
|
1015
1029
|
if (n)
|
|
1016
1030
|
return n;
|
|
1017
1031
|
const t = new Map(
|
|
1018
1032
|
q(e).map((c, f) => [c, f])
|
|
1019
1033
|
), r = [...t.keys()].filter(
|
|
1020
|
-
(c) => !st.has(c) &&
|
|
1034
|
+
(c) => !st.has(c) && Lr(e, c)
|
|
1021
1035
|
).sort((c, f) => {
|
|
1022
|
-
var
|
|
1023
|
-
const a = (
|
|
1024
|
-
return
|
|
1036
|
+
var O, y;
|
|
1037
|
+
const a = (O = e.Cols) == null ? void 0 : O[c], T = (y = e.Cols) == null ? void 0 : y[f], G = t.get(c) ?? 0, R = t.get(f) ?? 0, h = K(a == null ? void 0 : a.Sec, G) - K(T == null ? void 0 : T.Sec, R);
|
|
1038
|
+
return h !== 0 ? h : K(a == null ? void 0 : a.Pos, G) - K(T == null ? void 0 : T.Pos, R) || G - R;
|
|
1025
1039
|
}), s = {
|
|
1026
1040
|
columnSet: new Set(r),
|
|
1027
1041
|
firstColumn: r[0],
|
|
@@ -1041,10 +1055,10 @@ ${e.slice(
|
|
|
1041
1055
|
return Object.values(e.Rows ?? {});
|
|
1042
1056
|
}, "getTreeGridRows"), fe = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ i((e) => {
|
|
1043
1057
|
e && fe.delete(e);
|
|
1044
|
-
}, "clearTreeGridSelectionRowSpanAnchorRowMap"),
|
|
1058
|
+
}, "clearTreeGridSelectionRowSpanAnchorRowMap"), gn = /* @__PURE__ */ i((e, n) => {
|
|
1045
1059
|
const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], s = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
|
|
1046
1060
|
return Number.isFinite(s) && s > 1 ? Math.floor(s) : 1;
|
|
1047
|
-
}, "getTreeGridRowSpanCount"),
|
|
1061
|
+
}, "getTreeGridRowSpanCount"), xr = /* @__PURE__ */ i((e) => {
|
|
1048
1062
|
const n = /* @__PURE__ */ new WeakMap();
|
|
1049
1063
|
let t = null, r = -1;
|
|
1050
1064
|
return J(e).forEach((s, c) => {
|
|
@@ -1052,55 +1066,55 @@ ${e.slice(
|
|
|
1052
1066
|
n.set(s, null);
|
|
1053
1067
|
return;
|
|
1054
1068
|
}
|
|
1055
|
-
const f =
|
|
1069
|
+
const f = gn(s, nn);
|
|
1056
1070
|
if (f > 1) {
|
|
1057
1071
|
t = s, r = c + f - 1, n.set(s, s);
|
|
1058
1072
|
return;
|
|
1059
1073
|
}
|
|
1060
1074
|
n.set(s, t && c <= r ? t : null), c >= r && (t = null, r = -1);
|
|
1061
1075
|
}), n;
|
|
1062
|
-
}, "createTreeGridSelectionRowSpanAnchorRowMap"),
|
|
1076
|
+
}, "createTreeGridSelectionRowSpanAnchorRowMap"), Ce = /* @__PURE__ */ i((e, n) => {
|
|
1063
1077
|
if (!n || !A(n))
|
|
1064
1078
|
return null;
|
|
1065
1079
|
let t = fe.get(e);
|
|
1066
|
-
return t != null && t.has(n) || (t =
|
|
1067
|
-
}, "getTreeGridSelectionRowSpanAnchorRow"),
|
|
1068
|
-
const t =
|
|
1080
|
+
return t != null && t.has(n) || (t = xr(e), fe.set(e, t)), t.get(n) ?? null;
|
|
1081
|
+
}, "getTreeGridSelectionRowSpanAnchorRow"), hn = /* @__PURE__ */ i((e, n) => {
|
|
1082
|
+
const t = Ce(e, n);
|
|
1069
1083
|
if (!t)
|
|
1070
1084
|
return [];
|
|
1071
|
-
const r =
|
|
1085
|
+
const r = gn(t, nn), s = [];
|
|
1072
1086
|
let c = t;
|
|
1073
1087
|
for (let f = 0; c && f < r; f += 1)
|
|
1074
1088
|
A(c) && s.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
|
|
1075
1089
|
return s;
|
|
1076
|
-
}, "getTreeGridSelectionRowSpanRows"),
|
|
1090
|
+
}, "getTreeGridSelectionRowSpanRows"), br = /* @__PURE__ */ i((e) => {
|
|
1077
1091
|
const n = /* @__PURE__ */ new Set();
|
|
1078
1092
|
return (e.GetSelRows() ?? []).forEach((t) => {
|
|
1079
|
-
|
|
1093
|
+
hn(e, t).forEach((r) => {
|
|
1080
1094
|
n.add(r);
|
|
1081
1095
|
});
|
|
1082
1096
|
}), [...n];
|
|
1083
|
-
}, "getTreeGridSelectedRowSpanRows"),
|
|
1097
|
+
}, "getTreeGridSelectedRowSpanRows"), Ir = /* @__PURE__ */ i((e, n) => {
|
|
1084
1098
|
if (!e)
|
|
1085
1099
|
return;
|
|
1086
1100
|
const t = q(e);
|
|
1087
1101
|
J(e).forEach((r) => {
|
|
1088
1102
|
A(r) && n.set(
|
|
1089
1103
|
r,
|
|
1090
|
-
new Map(t.map((s) => [s,
|
|
1104
|
+
new Map(t.map((s) => [s, Ee(e, r, s)]))
|
|
1091
1105
|
);
|
|
1092
1106
|
});
|
|
1093
|
-
}, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"),
|
|
1107
|
+
}, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), wr = /* @__PURE__ */ i((e, n, t) => {
|
|
1094
1108
|
const r = n;
|
|
1095
1109
|
return q(e).some((s) => s !== t && ae(r[`${s}Changed`]));
|
|
1096
1110
|
}, "hasOtherTreeGridChangedCells"), An = /* @__PURE__ */ i((e, n, t) => {
|
|
1097
1111
|
const r = n;
|
|
1098
|
-
r[`${t}Changed`] = 0, !
|
|
1099
|
-
}, "clearTreeGridCellChangedState"),
|
|
1112
|
+
r[`${t}Changed`] = 0, !v(n) && !w(n) && !wr(e, n, t) && (r.Changed = 0);
|
|
1113
|
+
}, "clearTreeGridCellChangedState"), yr = /* @__PURE__ */ i((e, n, t) => {
|
|
1100
1114
|
const r = e.get(n);
|
|
1101
1115
|
if (r != null && r.has(t))
|
|
1102
1116
|
return r.get(t);
|
|
1103
|
-
}, "resolveTreeGridCellBaselineValue"),
|
|
1117
|
+
}, "resolveTreeGridCellBaselineValue"), $r = /* @__PURE__ */ i(({
|
|
1104
1118
|
gridId: e,
|
|
1105
1119
|
grid: n,
|
|
1106
1120
|
row: t,
|
|
@@ -1108,18 +1122,18 @@ ${e.slice(
|
|
|
1108
1122
|
backgroundColor: s,
|
|
1109
1123
|
highlightRefresh: c
|
|
1110
1124
|
}) => {
|
|
1111
|
-
if (!
|
|
1125
|
+
if (!v(t) && !w(t))
|
|
1112
1126
|
return !1;
|
|
1113
1127
|
if (n.CanEdit(t, r) !== 1)
|
|
1114
1128
|
return !0;
|
|
1115
1129
|
const f = Bn(t, r), a = te(t).includes(r);
|
|
1116
|
-
return f === void 0 ? !0 :
|
|
1130
|
+
return f === void 0 ? !0 : Ee(n, t, r) === f ? (Fn(t, r), a && Ze(e, { row: t, col: r }), An(n, t, r), !0) : (Nn(t, r), qe(e, {
|
|
1117
1131
|
row: t,
|
|
1118
1132
|
col: r,
|
|
1119
1133
|
backgroundColor: s,
|
|
1120
1134
|
refresh: c
|
|
1121
1135
|
}), !0);
|
|
1122
|
-
}, "syncTreeGridAddedRowChangedCellHighlight"),
|
|
1136
|
+
}, "syncTreeGridAddedRowChangedCellHighlight"), Pr = /* @__PURE__ */ i(({
|
|
1123
1137
|
gridId: e,
|
|
1124
1138
|
grid: n,
|
|
1125
1139
|
row: t,
|
|
@@ -1128,7 +1142,7 @@ ${e.slice(
|
|
|
1128
1142
|
baselineMap: c,
|
|
1129
1143
|
highlightRefresh: f
|
|
1130
1144
|
}) => {
|
|
1131
|
-
if (!A(t) ||
|
|
1145
|
+
if (!A(t) || $r({
|
|
1132
1146
|
gridId: e,
|
|
1133
1147
|
grid: n,
|
|
1134
1148
|
row: t,
|
|
@@ -1137,7 +1151,7 @@ ${e.slice(
|
|
|
1137
1151
|
highlightRefresh: f
|
|
1138
1152
|
}))
|
|
1139
1153
|
return;
|
|
1140
|
-
const a =
|
|
1154
|
+
const a = yr(c, t, r), T = Ee(n, t, r);
|
|
1141
1155
|
if (a !== void 0 && T === a) {
|
|
1142
1156
|
Ze(e, { row: t, col: r }), An(n, t, r);
|
|
1143
1157
|
return;
|
|
@@ -1148,13 +1162,13 @@ ${e.slice(
|
|
|
1148
1162
|
backgroundColor: s,
|
|
1149
1163
|
refresh: f
|
|
1150
1164
|
});
|
|
1151
|
-
}, "syncTreeGridChangedCellHighlight"),
|
|
1165
|
+
}, "syncTreeGridChangedCellHighlight"), Dr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), mn = /* @__PURE__ */ i((e, n, t) => {
|
|
1152
1166
|
const r = e.GetAttribute(n, t, "Color");
|
|
1153
1167
|
if (typeof r == "number")
|
|
1154
1168
|
return Ln(r);
|
|
1155
1169
|
if (typeof r == "string")
|
|
1156
1170
|
return r.trim() || void 0;
|
|
1157
|
-
}, "getExplicitTreeGridCellColor"),
|
|
1171
|
+
}, "getExplicitTreeGridCellColor"), vr = /* @__PURE__ */ i((e, n, t) => mn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Se = /* @__PURE__ */ i((e, n, t) => {
|
|
1158
1172
|
if (!n || !t || !A(n))
|
|
1159
1173
|
return !1;
|
|
1160
1174
|
const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
|
|
@@ -1165,7 +1179,7 @@ ${e.slice(
|
|
|
1165
1179
|
const r = e.IsSelected(n, t);
|
|
1166
1180
|
if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
|
|
1167
1181
|
return !0;
|
|
1168
|
-
const s =
|
|
1182
|
+
const s = Ce(e, n);
|
|
1169
1183
|
if (!s || s === n)
|
|
1170
1184
|
return !1;
|
|
1171
1185
|
const c = e.IsSelected(s, t);
|
|
@@ -1177,11 +1191,11 @@ ${e.slice(
|
|
|
1177
1191
|
return Pe.every(
|
|
1178
1192
|
(t) => n.includes(t)
|
|
1179
1193
|
);
|
|
1180
|
-
}, "hasTreeGridChangedCellDisplayClass"),
|
|
1194
|
+
}, "hasTreeGridChangedCellDisplayClass"), Br = /* @__PURE__ */ i((e) => {
|
|
1181
1195
|
if (!(!e || e.split(/\s+/).includes(ye) || !Ge(e)))
|
|
1182
1196
|
return `${e} ${ye}`;
|
|
1183
|
-
}, "appendTreeGridSelectedChangedCellDisplayClass"),
|
|
1184
|
-
if (!n || !
|
|
1197
|
+
}, "appendTreeGridSelectedChangedCellDisplayClass"), Fr = /* @__PURE__ */ i((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ge(t)), "hasTreeGridChangedCellDisplayClassInRow"), Nr = /* @__PURE__ */ i((e, n) => {
|
|
1198
|
+
if (!n || !Fr(n) || typeof e.RefreshRow != "function")
|
|
1185
1199
|
return;
|
|
1186
1200
|
const t = n;
|
|
1187
1201
|
window.setTimeout(() => {
|
|
@@ -1196,30 +1210,30 @@ ${e.slice(
|
|
|
1196
1210
|
e.RefreshRow(r);
|
|
1197
1211
|
});
|
|
1198
1212
|
}, 0);
|
|
1199
|
-
}, "scheduleTreeGridRowsRefresh"),
|
|
1213
|
+
}, "scheduleTreeGridRowsRefresh"), Ur = /* @__PURE__ */ i((e, n) => {
|
|
1200
1214
|
if (!n)
|
|
1201
1215
|
return;
|
|
1202
|
-
const t =
|
|
1216
|
+
const t = hn(e, n);
|
|
1203
1217
|
t.length <= 1 || j(e, t);
|
|
1204
|
-
}, "scheduleTreeGridSelectionRowSpanRefresh"),
|
|
1205
|
-
const n = J(e).filter((t) => A(t) &&
|
|
1218
|
+
}, "scheduleTreeGridSelectionRowSpanRefresh"), kr = /* @__PURE__ */ i((e) => {
|
|
1219
|
+
const n = J(e).filter((t) => A(t) && Ce(e, t));
|
|
1206
1220
|
j(e, n);
|
|
1207
|
-
}, "scheduleTreeGridSelectionRowSpanRefreshAll"),
|
|
1208
|
-
if (!(!n || r === void 0 ||
|
|
1221
|
+
}, "scheduleTreeGridSelectionRowSpanRefreshAll"), _n = /* @__PURE__ */ i((e, n, t, r) => {
|
|
1222
|
+
if (!(!n || r === void 0 || !Dr(e, n, t) || Se(e, n, t) || W(e, n, t) || vr(e, n, t)))
|
|
1209
1223
|
return r;
|
|
1210
|
-
}, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"),
|
|
1224
|
+
}, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Mr = /* @__PURE__ */ i((e, n, t) => rt.some(
|
|
1211
1225
|
(r) => N(e, n, t, r)
|
|
1212
1226
|
), "isTreeGridNativeErrorBackgroundColor"), Ln = /* @__PURE__ */ i((e) => {
|
|
1213
1227
|
if (!(e === void 0 || !Number.isFinite(e)))
|
|
1214
1228
|
return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
|
|
1215
|
-
}, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"),
|
|
1229
|
+
}, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Re = /* @__PURE__ */ i((e, n, t) => Te(e, n, t) !== "", "hasTreeGridCellError"), Vr = /* @__PURE__ */ i((e, n) => {
|
|
1216
1230
|
if (!n)
|
|
1217
1231
|
return;
|
|
1218
1232
|
let t = !1;
|
|
1219
1233
|
q(e).forEach((r) => {
|
|
1220
|
-
|
|
1234
|
+
Re(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
|
|
1221
1235
|
}), t && e.RefreshRow(n);
|
|
1222
|
-
}, "clearTreeGridRowErrors"),
|
|
1236
|
+
}, "clearTreeGridRowErrors"), Xr = /* @__PURE__ */ i((e) => {
|
|
1223
1237
|
const n = e == null ? void 0 : e.target;
|
|
1224
1238
|
if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
|
|
1225
1239
|
return null;
|
|
@@ -1229,12 +1243,12 @@ ${e.slice(
|
|
|
1229
1243
|
return c instanceof HTMLElement ? c : s instanceof HTMLElement ? s : null;
|
|
1230
1244
|
}
|
|
1231
1245
|
return null;
|
|
1232
|
-
}, "getTreeGridMouseEventAnchorElement"),
|
|
1246
|
+
}, "getTreeGridMouseEventAnchorElement"), Jr = /* @__PURE__ */ i((e, n) => {
|
|
1233
1247
|
if (!e || !n || !A(e))
|
|
1234
1248
|
return !1;
|
|
1235
1249
|
const t = e, r = t[`${n}Class`], s = ae(t[`${n}Changed`]) || typeof r == "string" && Ge(r);
|
|
1236
|
-
return
|
|
1237
|
-
}, "isChangedTreeGridRowOrCell"),
|
|
1250
|
+
return v(e) || w(e) ? s : s || ae(t.Changed);
|
|
1251
|
+
}, "isChangedTreeGridRowOrCell"), Wr = /* @__PURE__ */ i((e, n, t) => ot.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), jr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Kr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Hr = /* @__PURE__ */ i((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), zr = /* @__PURE__ */ i(({
|
|
1238
1252
|
grid: e,
|
|
1239
1253
|
row: n,
|
|
1240
1254
|
col: t,
|
|
@@ -1245,44 +1259,44 @@ ${e.slice(
|
|
|
1245
1259
|
selectedCellBackgroundColor: a,
|
|
1246
1260
|
hoverCellBackgroundColor: T,
|
|
1247
1261
|
changedCellBackgroundColor: G,
|
|
1248
|
-
editableCellBackgroundColorValue:
|
|
1262
|
+
editableCellBackgroundColorValue: R
|
|
1249
1263
|
}) => {
|
|
1250
1264
|
if (Se(e, n, t))
|
|
1251
1265
|
return f;
|
|
1252
1266
|
if (W(e, n, t))
|
|
1253
1267
|
return a;
|
|
1254
|
-
if (
|
|
1268
|
+
if (jr(e, n, t) && (N(r, s, c, qn) || N(r, s, c, Qn)) || Kr(e, n, t) && (N(r, s, c, et) || N(r, s, c, nt) || N(r, s, c, tt)))
|
|
1255
1269
|
return T;
|
|
1256
|
-
if (
|
|
1270
|
+
if (Rn(n))
|
|
1257
1271
|
return;
|
|
1258
|
-
const
|
|
1259
|
-
if (!
|
|
1272
|
+
const h = v(n) || w(n), _ = Re(e, n, t) && Mr(r, s, c);
|
|
1273
|
+
if (!_ && !h)
|
|
1260
1274
|
return;
|
|
1261
|
-
const
|
|
1262
|
-
if (
|
|
1263
|
-
return
|
|
1264
|
-
if (
|
|
1275
|
+
const O = mn(e, n, t);
|
|
1276
|
+
if (_ && O)
|
|
1277
|
+
return O;
|
|
1278
|
+
if (Jr(n, t))
|
|
1265
1279
|
return G;
|
|
1266
|
-
const y =
|
|
1280
|
+
const y = _n(
|
|
1267
1281
|
e,
|
|
1268
1282
|
n,
|
|
1269
1283
|
t,
|
|
1270
|
-
|
|
1284
|
+
R
|
|
1271
1285
|
);
|
|
1272
|
-
return y !== void 0 ? Ln(y) :
|
|
1286
|
+
return y !== void 0 ? Ln(y) : h ? O ?? Dn : it;
|
|
1273
1287
|
}, "resolveTreeGridStateBackgroundColor"), Y = /* @__PURE__ */ i((e, n) => {
|
|
1274
1288
|
const t = e.split(/\s+/).filter(Boolean);
|
|
1275
1289
|
return t.includes(n) ? e : [...t, n].join(" ");
|
|
1276
|
-
}, "appendTreeGridClassToken"),
|
|
1277
|
-
if (!A(n) ||
|
|
1290
|
+
}, "appendTreeGridClassToken"), Yr = /* @__PURE__ */ i((e, n, t, r) => !Re(e, n, t) || !n ? r : Y(r, Jn), "appendTreeGridErrorCellDisplayClass"), Zr = /* @__PURE__ */ i((e, n, t, r) => {
|
|
1291
|
+
if (!A(n) || Rn(n) || !v(n) && !w(n) || Hr(e, n) || W(e, n, t))
|
|
1278
1292
|
return r;
|
|
1279
|
-
const s =
|
|
1293
|
+
const s = Or(e);
|
|
1280
1294
|
if (!s.columnSet.has(t))
|
|
1281
1295
|
return r;
|
|
1282
1296
|
let c = Y(r, Xn);
|
|
1283
1297
|
return t === s.firstColumn && (c = Y(c, Wn)), t === s.lastColumn && (c = Y(c, jn)), c;
|
|
1284
|
-
}, "appendTreeGridAddedRowBoxDisplayClass"),
|
|
1285
|
-
const s =
|
|
1298
|
+
}, "appendTreeGridAddedRowBoxDisplayClass"), qr = /* @__PURE__ */ i((e, n, t, r) => {
|
|
1299
|
+
const s = Yr(e, n, t, r), c = Zr(
|
|
1286
1300
|
e,
|
|
1287
1301
|
n,
|
|
1288
1302
|
t,
|
|
@@ -1290,14 +1304,14 @@ ${e.slice(
|
|
|
1290
1304
|
);
|
|
1291
1305
|
if (!W(e, n, t))
|
|
1292
1306
|
return c === r ? void 0 : c;
|
|
1293
|
-
const f =
|
|
1307
|
+
const f = Br(c) ?? c;
|
|
1294
1308
|
return f === r ? void 0 : f;
|
|
1295
|
-
}, "resolveTreeGridCellDisplayClass"),
|
|
1296
|
-
const t = n.filter(
|
|
1309
|
+
}, "resolveTreeGridCellDisplayClass"), On = /* @__PURE__ */ i((e) => A(e) && (v(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), ze = /* @__PURE__ */ i((e, n) => {
|
|
1310
|
+
const t = n.filter(On);
|
|
1297
1311
|
t.length && j(e, t);
|
|
1298
|
-
}, "scheduleTreeGridAddedRowBoxRowsRefresh"),
|
|
1299
|
-
j(e, J(e).filter(
|
|
1300
|
-
}, "scheduleTreeGridAddedRowBoxRowsRefreshAll"),
|
|
1312
|
+
}, "scheduleTreeGridAddedRowBoxRowsRefresh"), Qr = /* @__PURE__ */ i((e) => {
|
|
1313
|
+
j(e, J(e).filter(On));
|
|
1314
|
+
}, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), ai = /* @__PURE__ */ i((e) => {
|
|
1301
1315
|
if (!e)
|
|
1302
1316
|
return !1;
|
|
1303
1317
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
@@ -1310,7 +1324,7 @@ ${e.slice(
|
|
|
1310
1324
|
return !1;
|
|
1311
1325
|
}
|
|
1312
1326
|
return Object.values(e.Rows ?? {}).some((n) => A(n));
|
|
1313
|
-
}, "hasTreeGridDisplayDataRows"),
|
|
1327
|
+
}, "hasTreeGridDisplayDataRows"), Ti = /* @__PURE__ */ i((e, n, t) => {
|
|
1314
1328
|
var s;
|
|
1315
1329
|
b(e);
|
|
1316
1330
|
const r = (s = e.Data) == null ? void 0 : s.Data;
|
|
@@ -1319,7 +1333,7 @@ ${e.slice(
|
|
|
1319
1333
|
Data: { Body: [n || []] },
|
|
1320
1334
|
Url: ""
|
|
1321
1335
|
}, e.ReloadBody(t);
|
|
1322
|
-
}, "replaceTreeGridBodyData"),
|
|
1336
|
+
}, "replaceTreeGridBodyData"), Ei = /* @__PURE__ */ i(({
|
|
1323
1337
|
id: e,
|
|
1324
1338
|
latestEventHandlersRef: n,
|
|
1325
1339
|
layoutHasExplicitEnterModeRef: t,
|
|
@@ -1330,25 +1344,25 @@ ${e.slice(
|
|
|
1330
1344
|
changedCellBackgroundColorRef: a,
|
|
1331
1345
|
focusedCellBackgroundColorRef: T,
|
|
1332
1346
|
selectedCellBackgroundColorRef: G,
|
|
1333
|
-
hoverCellBackgroundColorRef:
|
|
1334
|
-
changedCellBaselineRef:
|
|
1335
|
-
treeGridInstanceRef:
|
|
1336
|
-
treeGridInitStartedAtRef:
|
|
1347
|
+
hoverCellBackgroundColorRef: R,
|
|
1348
|
+
changedCellBaselineRef: h,
|
|
1349
|
+
treeGridInstanceRef: _,
|
|
1350
|
+
treeGridInitStartedAtRef: O,
|
|
1337
1351
|
latestLayoutOverridesRef: y,
|
|
1338
|
-
latestToolbarTotalCountFormulaRef:
|
|
1339
|
-
latestSuppressCfgRef:
|
|
1352
|
+
latestToolbarTotalCountFormulaRef: ge,
|
|
1353
|
+
latestSuppressCfgRef: he,
|
|
1340
1354
|
latestHideChildHeaderSortButtonsRef: Q,
|
|
1341
|
-
latestSelectionScopeRef:
|
|
1355
|
+
latestSelectionScopeRef: xn,
|
|
1342
1356
|
latestDisabledAnimationsRef: Ae,
|
|
1343
1357
|
appliedLayoutOverridesRef: bn,
|
|
1344
1358
|
appliedBodyDataPropRef: In,
|
|
1345
|
-
hasAppliedInitialLayoutRef:
|
|
1359
|
+
hasAppliedInitialLayoutRef: me,
|
|
1346
1360
|
syncHasDisplayDataRows: B,
|
|
1347
1361
|
setIsTreeGridReady: wn,
|
|
1348
1362
|
showErrorTooltip: yn,
|
|
1349
1363
|
hideErrorTooltip: $
|
|
1350
1364
|
}) => {
|
|
1351
|
-
const
|
|
1365
|
+
const m = n.current;
|
|
1352
1366
|
if (window.TGSetEvent("OnRowAdd", e, (o, l) => {
|
|
1353
1367
|
var d, u;
|
|
1354
1368
|
b(o), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, o, l);
|
|
@@ -1368,206 +1382,206 @@ ${e.slice(
|
|
|
1368
1382
|
F(o);
|
|
1369
1383
|
}), window.TGSetEvent("OnColUndelete", e, (o) => {
|
|
1370
1384
|
F(o);
|
|
1371
|
-
}), window.TGSetEvent("OnMouseOver", e, (o, l, d, u,
|
|
1372
|
-
const
|
|
1373
|
-
if (!
|
|
1385
|
+
}), window.TGSetEvent("OnMouseOver", e, (o, l, d, u, E, C) => {
|
|
1386
|
+
const p = Te(o, l, d);
|
|
1387
|
+
if (!p) {
|
|
1374
1388
|
$();
|
|
1375
1389
|
return;
|
|
1376
1390
|
}
|
|
1377
|
-
const
|
|
1378
|
-
if (!
|
|
1391
|
+
const g = Xr(C);
|
|
1392
|
+
if (!g) {
|
|
1379
1393
|
$();
|
|
1380
1394
|
return;
|
|
1381
1395
|
}
|
|
1382
|
-
o.HideTip(), yn({ anchorEl:
|
|
1396
|
+
o.HideTip(), yn({ anchorEl: g, row: l, col: d, message: p });
|
|
1383
1397
|
}), window.TGSetEvent("OnFocus", e, (o, l, d, u) => {
|
|
1384
1398
|
l !== u && ze(o, [l, u]);
|
|
1385
1399
|
}), window.TGSetEvent("OnTip", e, (o, l, d, u) => Te(o, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (o, l, d) => {
|
|
1386
|
-
var
|
|
1400
|
+
var C;
|
|
1387
1401
|
if (d !== 3)
|
|
1388
1402
|
return d;
|
|
1389
|
-
const u = (
|
|
1403
|
+
const u = (C = n.current) == null ? void 0 : C.onBeforeRowUndelete;
|
|
1390
1404
|
if (typeof u != "function")
|
|
1391
1405
|
return d;
|
|
1392
|
-
const
|
|
1406
|
+
const E = /* @__PURE__ */ i((p) => {
|
|
1393
1407
|
window.setTimeout(() => {
|
|
1394
|
-
|
|
1395
|
-
|
|
1408
|
+
Rr(
|
|
1409
|
+
_.current ?? o,
|
|
1396
1410
|
l,
|
|
1397
|
-
|
|
1411
|
+
p,
|
|
1398
1412
|
B
|
|
1399
1413
|
);
|
|
1400
1414
|
}, 0);
|
|
1401
1415
|
}, "scheduleAction");
|
|
1402
1416
|
try {
|
|
1403
|
-
const
|
|
1404
|
-
return
|
|
1405
|
-
|
|
1406
|
-
}), 0) : (
|
|
1417
|
+
const p = u(o, l);
|
|
1418
|
+
return Gr(p) ? (p.then(E).catch(() => {
|
|
1419
|
+
E("undelete");
|
|
1420
|
+
}), 0) : (E(p), 0);
|
|
1407
1421
|
} catch {
|
|
1408
|
-
return
|
|
1422
|
+
return E("undelete"), 0;
|
|
1409
1423
|
}
|
|
1410
|
-
}), typeof (
|
|
1411
|
-
const o = ee((l, d, u, C, p
|
|
1412
|
-
var
|
|
1413
|
-
(
|
|
1414
|
-
|
|
1424
|
+
}), typeof (m == null ? void 0 : m.onRowClick) == "function" || typeof (m == null ? void 0 : m.onInternalCellClick) == "function") {
|
|
1425
|
+
const o = ee((l, d, u, E, C, p) => {
|
|
1426
|
+
var g, x;
|
|
1427
|
+
(x = (g = n.current) == null ? void 0 : g.onRowClick) == null || x.call(
|
|
1428
|
+
g,
|
|
1415
1429
|
l,
|
|
1416
1430
|
d,
|
|
1417
1431
|
u,
|
|
1432
|
+
E,
|
|
1418
1433
|
C,
|
|
1419
|
-
p
|
|
1420
|
-
E
|
|
1434
|
+
p
|
|
1421
1435
|
);
|
|
1422
1436
|
}, 300);
|
|
1423
|
-
window.TGSetEvent("OnClick", e, (l, d, u, C, p
|
|
1424
|
-
var
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1437
|
+
window.TGSetEvent("OnClick", e, (l, d, u, E, C, p) => {
|
|
1438
|
+
var x, Le, Oe;
|
|
1439
|
+
const g = (Le = (x = n.current) == null ? void 0 : x.onInternalCellClick) == null ? void 0 : Le.call(
|
|
1440
|
+
x,
|
|
1427
1441
|
l,
|
|
1428
1442
|
d,
|
|
1429
1443
|
u,
|
|
1444
|
+
E,
|
|
1430
1445
|
C,
|
|
1431
|
-
p
|
|
1432
|
-
E
|
|
1446
|
+
p
|
|
1433
1447
|
);
|
|
1434
|
-
if (
|
|
1435
|
-
return
|
|
1436
|
-
typeof ((
|
|
1448
|
+
if (g !== void 0)
|
|
1449
|
+
return g;
|
|
1450
|
+
typeof ((Oe = n.current) == null ? void 0 : Oe.onRowClick) == "function" && o(l, d, u, E, C, p);
|
|
1437
1451
|
});
|
|
1438
1452
|
}
|
|
1439
|
-
(typeof (
|
|
1453
|
+
(typeof (m == null ? void 0 : m.onClickButton) == "function" || typeof (m == null ? void 0 : m.onInternalButtonClick) == "function") && window.TGSetEvent(
|
|
1440
1454
|
"OnClickButton",
|
|
1441
1455
|
e,
|
|
1442
1456
|
(o, l, d, u) => {
|
|
1443
|
-
var
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1457
|
+
var C, p, g, x;
|
|
1458
|
+
const E = (p = (C = n.current) == null ? void 0 : C.onInternalButtonClick) == null ? void 0 : p.call(
|
|
1459
|
+
C,
|
|
1446
1460
|
o,
|
|
1447
1461
|
l,
|
|
1448
1462
|
d,
|
|
1449
1463
|
u
|
|
1450
1464
|
);
|
|
1451
|
-
if (
|
|
1452
|
-
return
|
|
1453
|
-
(
|
|
1454
|
-
|
|
1465
|
+
if (E !== void 0)
|
|
1466
|
+
return E;
|
|
1467
|
+
(x = (g = n.current) == null ? void 0 : g.onClickButton) == null || x.call(
|
|
1468
|
+
g,
|
|
1455
1469
|
o,
|
|
1456
1470
|
l,
|
|
1457
1471
|
d,
|
|
1458
1472
|
u
|
|
1459
1473
|
);
|
|
1460
1474
|
}
|
|
1461
|
-
), typeof (
|
|
1475
|
+
), typeof (m == null ? void 0 : m.onInternalKeyDown) == "function" && (window.TGSetEvent(
|
|
1462
1476
|
"OnKeyDown",
|
|
1463
1477
|
e,
|
|
1464
|
-
(o, l, d, u,
|
|
1465
|
-
var
|
|
1466
|
-
return (
|
|
1478
|
+
(o, l, d, u, E) => {
|
|
1479
|
+
var C, p;
|
|
1480
|
+
return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, o, l, d, u, E);
|
|
1467
1481
|
}
|
|
1468
1482
|
), window.TGSetEvent(
|
|
1469
1483
|
"OnKeyPress",
|
|
1470
1484
|
e,
|
|
1471
|
-
(o, l, d, u,
|
|
1472
|
-
var
|
|
1473
|
-
return (
|
|
1485
|
+
(o, l, d, u, E) => {
|
|
1486
|
+
var C, p;
|
|
1487
|
+
return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, o, l, d, u, E);
|
|
1474
1488
|
}
|
|
1475
1489
|
)), window.TGSetEvent("OnStartEdit", e, (o, l, d) => {
|
|
1476
|
-
var u,
|
|
1477
|
-
return $(), (
|
|
1490
|
+
var u, E;
|
|
1491
|
+
return $(), (E = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : E.call(
|
|
1478
1492
|
u,
|
|
1479
1493
|
o,
|
|
1480
1494
|
l,
|
|
1481
1495
|
d
|
|
1482
1496
|
);
|
|
1483
1497
|
}), window.TGSetEvent("OnRowDelete", e, (o, l, d) => {
|
|
1484
|
-
var
|
|
1485
|
-
b(o), $(),
|
|
1486
|
-
const u = w(l),
|
|
1498
|
+
var g, x;
|
|
1499
|
+
b(o), $(), Vr(o, l), o.SelectRow(l, 0);
|
|
1500
|
+
const u = w(l), E = u ? te(l) : [], C = u ? xe(l) : [], p = c.current !== !1;
|
|
1487
1501
|
Je(o, l, {
|
|
1488
|
-
canEdit:
|
|
1489
|
-
editableColumns:
|
|
1490
|
-
editableCanEdit:
|
|
1491
|
-
highlightColumns:
|
|
1492
|
-
}), B(o), (
|
|
1493
|
-
|
|
1502
|
+
canEdit: p ? 2 : void 0,
|
|
1503
|
+
editableColumns: C,
|
|
1504
|
+
editableCanEdit: p && C.length ? 2 : void 0,
|
|
1505
|
+
highlightColumns: E
|
|
1506
|
+
}), B(o), (x = (g = n.current) == null ? void 0 : g.onRowDelete) == null || x.call(
|
|
1507
|
+
g,
|
|
1494
1508
|
o,
|
|
1495
1509
|
l,
|
|
1496
1510
|
d
|
|
1497
1511
|
);
|
|
1498
1512
|
}), window.TGSetEvent("OnRowUndelete", e, (o, l) => {
|
|
1499
|
-
var
|
|
1513
|
+
var p, g;
|
|
1500
1514
|
b(o), $();
|
|
1501
|
-
const d = w(l), u = d ? te(l) : [],
|
|
1515
|
+
const d = w(l), u = d ? te(l) : [], E = d ? xe(l) : [], C = c.current !== !1;
|
|
1502
1516
|
Je(o, l, {
|
|
1503
|
-
canEdit:
|
|
1504
|
-
editableColumns:
|
|
1505
|
-
editableCanEdit:
|
|
1517
|
+
canEdit: C ? 1 : void 0,
|
|
1518
|
+
editableColumns: E,
|
|
1519
|
+
editableCanEdit: C && E.length ? 1 : void 0,
|
|
1506
1520
|
highlightColumns: u,
|
|
1507
1521
|
highlightBackgroundColor: u.length ? a.current : void 0
|
|
1508
|
-
}), B(o), (
|
|
1522
|
+
}), B(o), (g = (p = n.current) == null ? void 0 : p.onRowUndelete) == null || g.call(p, o, l);
|
|
1509
1523
|
}), window.TGSetEvent("OnGetDefaultColor", e, (o, l, d) => {
|
|
1510
1524
|
if (!(!r.current || !A(l)))
|
|
1511
|
-
return
|
|
1525
|
+
return _n(
|
|
1512
1526
|
o,
|
|
1513
1527
|
l,
|
|
1514
1528
|
d,
|
|
1515
1529
|
f.current
|
|
1516
1530
|
);
|
|
1517
|
-
}), window.TGSetEvent("OnGetColor", e, (o, l, d, u, C, p
|
|
1518
|
-
if (!
|
|
1519
|
-
return
|
|
1531
|
+
}), window.TGSetEvent("OnGetColor", e, (o, l, d, u, E, C, p) => {
|
|
1532
|
+
if (!p)
|
|
1533
|
+
return zr({
|
|
1520
1534
|
grid: o,
|
|
1521
1535
|
row: l,
|
|
1522
1536
|
col: d,
|
|
1523
1537
|
r: u,
|
|
1524
|
-
g:
|
|
1525
|
-
b:
|
|
1538
|
+
g: E,
|
|
1539
|
+
b: C,
|
|
1526
1540
|
focusedCellBackgroundColor: T.current,
|
|
1527
1541
|
selectedCellBackgroundColor: G.current,
|
|
1528
|
-
hoverCellBackgroundColor:
|
|
1542
|
+
hoverCellBackgroundColor: R.current,
|
|
1529
1543
|
changedCellBackgroundColor: a.current,
|
|
1530
1544
|
editableCellBackgroundColorValue: f.current
|
|
1531
1545
|
});
|
|
1532
|
-
}), window.TGSetEvent("OnGetClass", e, (o, l, d, u) =>
|
|
1533
|
-
var
|
|
1546
|
+
}), window.TGSetEvent("OnGetClass", e, (o, l, d, u) => qr(o, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (o, l, d, u) => {
|
|
1547
|
+
var C, p;
|
|
1534
1548
|
if ($(), s.current && A(l)) {
|
|
1535
|
-
const
|
|
1536
|
-
|
|
1549
|
+
const g = !Wr(o, l, d) || W(o, l, d) && !Se(o, l, d);
|
|
1550
|
+
Pr({
|
|
1537
1551
|
gridId: e,
|
|
1538
1552
|
grid: o,
|
|
1539
1553
|
row: l,
|
|
1540
1554
|
col: d,
|
|
1541
1555
|
backgroundColor: a.current,
|
|
1542
|
-
baselineMap:
|
|
1543
|
-
highlightRefresh:
|
|
1556
|
+
baselineMap: h.current,
|
|
1557
|
+
highlightRefresh: g
|
|
1544
1558
|
});
|
|
1545
1559
|
}
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1560
|
+
const E = ((C = n.current) == null ? void 0 : C.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
|
|
1561
|
+
E == null || E(o, l, d, u);
|
|
1548
1562
|
});
|
|
1549
|
-
const
|
|
1550
|
-
var u,
|
|
1563
|
+
const _e = ee((o) => {
|
|
1564
|
+
var u, E;
|
|
1551
1565
|
const l = o.GetSelRows() ?? [], d = kn(o, l, {
|
|
1552
|
-
selectionScope:
|
|
1566
|
+
selectionScope: xn.current
|
|
1553
1567
|
});
|
|
1554
|
-
(
|
|
1568
|
+
(E = (u = n.current) == null ? void 0 : u.onSelect) == null || E.call(
|
|
1555
1569
|
u,
|
|
1556
|
-
|
|
1570
|
+
vn(o, d)
|
|
1557
1571
|
);
|
|
1558
1572
|
}, 100);
|
|
1559
|
-
window.TGSetEvent("OnSelect", e, (o, l, d, u,
|
|
1560
|
-
var
|
|
1561
|
-
if (
|
|
1573
|
+
window.TGSetEvent("OnSelect", e, (o, l, d, u, E) => {
|
|
1574
|
+
var p;
|
|
1575
|
+
if (E)
|
|
1562
1576
|
return;
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1577
|
+
const C = br(o);
|
|
1578
|
+
Nr(o, l), ze(o, [l]), j(o, C), Ur(o, l), Ve(o, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && _e(o);
|
|
1565
1579
|
}), window.TGSetEvent("OnSelectAll", e, (o, l, d, u) => {
|
|
1566
|
-
var
|
|
1567
|
-
u || (
|
|
1568
|
-
}), typeof (
|
|
1569
|
-
var u,
|
|
1570
|
-
(
|
|
1580
|
+
var E;
|
|
1581
|
+
u || (kr(o), Qr(o), Ve(o, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && _e(o));
|
|
1582
|
+
}), typeof (m == null ? void 0 : m.onSave) == "function" && window.TGSetEvent("OnSave", e, (o, l, d) => {
|
|
1583
|
+
var u, E;
|
|
1584
|
+
(E = (u = n.current) == null ? void 0 : u.onSave) == null || E.call(
|
|
1571
1585
|
u,
|
|
1572
1586
|
o,
|
|
1573
1587
|
l,
|
|
@@ -1575,7 +1589,7 @@ ${e.slice(
|
|
|
1575
1589
|
);
|
|
1576
1590
|
}), window.TGSetEvent("OnSort", e, (o, l) => {
|
|
1577
1591
|
var d;
|
|
1578
|
-
if (!(!l || !
|
|
1592
|
+
if (!(!l || !Ar(
|
|
1579
1593
|
o,
|
|
1580
1594
|
o.ARow,
|
|
1581
1595
|
l,
|
|
@@ -1604,24 +1618,24 @@ ${e.slice(
|
|
|
1604
1618
|
le(o, e);
|
|
1605
1619
|
}), window.TGSetEvent("OnDataGet", e, (o, l, d) => {
|
|
1606
1620
|
if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
|
|
1607
|
-
t.current =
|
|
1621
|
+
t.current = De(d);
|
|
1608
1622
|
const u = ce(
|
|
1609
1623
|
d,
|
|
1610
1624
|
Ae.current,
|
|
1611
|
-
|
|
1612
|
-
|
|
1625
|
+
ge.current,
|
|
1626
|
+
he.current
|
|
1613
1627
|
);
|
|
1614
1628
|
return u === d ? null : u;
|
|
1615
1629
|
}
|
|
1616
1630
|
return null;
|
|
1617
1631
|
}), window.TGSetEvent("OnDataParse", e, (o, l, d) => {
|
|
1618
1632
|
if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
|
|
1619
|
-
t.current =
|
|
1633
|
+
t.current = De(d);
|
|
1620
1634
|
const u = ce(
|
|
1621
1635
|
d,
|
|
1622
1636
|
Ae.current,
|
|
1623
|
-
|
|
1624
|
-
|
|
1637
|
+
ge.current,
|
|
1638
|
+
he.current
|
|
1625
1639
|
);
|
|
1626
1640
|
return u === d ? null : u;
|
|
1627
1641
|
}
|
|
@@ -1631,31 +1645,31 @@ ${e.slice(
|
|
|
1631
1645
|
e,
|
|
1632
1646
|
ee((o) => {
|
|
1633
1647
|
var l, d;
|
|
1634
|
-
if (!
|
|
1648
|
+
if (!me.current) {
|
|
1635
1649
|
const u = y.current;
|
|
1636
|
-
|
|
1650
|
+
me.current = !0, !t.current && (o.EnterMode === void 0 || o.EnterMode === null || o.EnterMode === 0) && pr(o, Yn), Un(o, u), _.current = o, bn.current = u, In.current = We(o), h.current = /* @__PURE__ */ new WeakMap(), Ir(o, h.current), B(o), wn(!0), He(
|
|
1637
1651
|
o,
|
|
1638
1652
|
e,
|
|
1639
1653
|
!0,
|
|
1640
1654
|
Q.current !== !1
|
|
1641
|
-
), en(e, "TreeGrid init ready",
|
|
1642
|
-
bodyRowCount:
|
|
1655
|
+
), en(e, "TreeGrid init ready", O.current, {
|
|
1656
|
+
bodyRowCount: mr(
|
|
1643
1657
|
We(o)
|
|
1644
1658
|
)
|
|
1645
|
-
}),
|
|
1659
|
+
}), O.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, o);
|
|
1646
1660
|
}
|
|
1647
1661
|
}, 100)
|
|
1648
1662
|
);
|
|
1649
1663
|
}, "bindTreeGridEvents");
|
|
1650
1664
|
export {
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1665
|
+
ui as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
|
|
1666
|
+
Ei as bindTreeGridEvents,
|
|
1667
|
+
fi as buildTreeGridInitializationOptions,
|
|
1668
|
+
Ir as captureTreeGridChangeBaselines,
|
|
1669
|
+
mr as getTreeGridBodyDataCount,
|
|
1670
|
+
ai as hasTreeGridDisplayDataRows,
|
|
1671
|
+
De as hasTreeGridExplicitEnterMode,
|
|
1672
|
+
Ti as replaceTreeGridBodyData,
|
|
1673
|
+
Pr as syncTreeGridChangedCellHighlight
|
|
1660
1674
|
};
|
|
1661
1675
|
//# sourceMappingURL=treeGridRuntime.js.map
|