@owp/core 2.5.59 → 2.5.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +205 -203
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +667 -642
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +547 -387
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/constants/gridTheme.js +13 -12
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +46 -45
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +26 -25
- package/dist/features/themePreview/configs/grid.js +18 -17
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +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/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-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +5 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +5 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/treeGrid.d.ts +2 -0
- package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var s = (e, t) =>
|
|
3
|
-
import { getTreeGridTextResourceUrl as
|
|
4
|
-
import { isTreeGridRowAddedById as
|
|
5
|
-
import { applyTreeGridLayoutToGrid as
|
|
6
|
-
import { resolveTreeGridSelectedRows as
|
|
7
|
-
import { TREE_GRID_HOVER_CELL_BORDER_COLOR_CSS_VARIABLE as
|
|
8
|
-
import { countTreeGridPerf as
|
|
1
|
+
var fn = Object.defineProperty;
|
|
2
|
+
var s = (e, t) => fn(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { getTreeGridTextResourceUrl as an, TREEGRID_CELL_CHANGED_CLASS as gt, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Tn } from "../../../constants/treeGrid.js";
|
|
4
|
+
import { isTreeGridRowAddedById as b, getTreeGridAddedRowHighlightColumns as Te, getTreeGridAddedRowEditableColumns as je, getTreeGridCellComparableValue as Le, clearTreeGridCellHighlightById as mt, highlightTreeGridCellById as Ot, normalizeTreeGridExternalRows as Sn, getTreeGridAddedRowBaselineValue as Rn, removeTreeGridAddedRowHighlightColumn as En, appendTreeGridAddedRowHighlightColumn as pn } from "../../../utils/treeGridUtil.js";
|
|
5
|
+
import { applyTreeGridLayoutToGrid as Gn } from "./treeGridLayout.js";
|
|
6
|
+
import { resolveTreeGridSelectedRows as Cn } from "./treeGridSelection.js";
|
|
7
|
+
import { TREE_GRID_HOVER_CELL_BORDER_COLOR_CSS_VARIABLE as hn, TREE_GRID_EDITING_CELL_BORDER_COLOR_CSS_VARIABLE as An, TREE_GRID_HINT_BACKGROUND_COLOR_CSS_VARIABLE as _n, TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as gn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as Ke, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as ze, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Ye, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as qe, TREE_GRID_THEME_WRAPPER_CLASS as mn, TREE_GRID_STYLE_PREFIXES as On, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as wn, TREE_GRID_ERROR_CELL_CLASS as Ln, TREE_GRID_ADDED_ROW_BOX_START_CLASS as In, TREE_GRID_ADDED_ROW_BOX_END_CLASS as xn } from "./treeGridTheme.js";
|
|
8
|
+
import { countTreeGridPerf as wt, logTreeGridPerf as bn, measureTreeGridPerf as Lt } from "./utils/perf.js";
|
|
9
9
|
import { debounce as de } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
|
|
10
|
-
import { isEmpty as
|
|
11
|
-
import { get as
|
|
12
|
-
const
|
|
10
|
+
import { isEmpty as Dn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
11
|
+
import { get as yn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
|
|
12
|
+
const uo = 300, vn = 3, Pn = {
|
|
13
13
|
1: {
|
|
14
14
|
onEnter: "TabDownEdit",
|
|
15
15
|
onEnterEdit: "AcceptEdit AND TabDownEdit,1"
|
|
@@ -26,44 +26,44 @@ const to = 300, wn = 3, xn = {
|
|
|
26
26
|
onEnter: "TabRightEditAdd",
|
|
27
27
|
onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, $n = [240, 240, 240], Un = [248, 248, 248], Nn = [191, 221, 242], Bn = [255, 255, 255], Fn = [255, 255, 254], Mn = [242, 242, 242], kn = [
|
|
30
30
|
[255, 210, 210],
|
|
31
31
|
[249, 209, 209],
|
|
32
32
|
[115, 16, 11]
|
|
33
|
-
],
|
|
33
|
+
], Vn = "transparent", Ze = "Button", Xn = /* @__PURE__ */ new Set(["Panel"]), Qe = gt.split(/\s+/).filter(
|
|
34
34
|
Boolean
|
|
35
|
-
),
|
|
36
|
-
|
|
35
|
+
), Wn = new Set(
|
|
36
|
+
On.flatMap((e) => [
|
|
37
37
|
`${e}ColorFocused`,
|
|
38
38
|
`${e}ColorFocusedRow`,
|
|
39
39
|
`${e}ColorChanged`
|
|
40
40
|
])
|
|
41
|
-
),
|
|
41
|
+
), Jn = /* @__PURE__ */ new Set([
|
|
42
42
|
"Text",
|
|
43
43
|
"Lines",
|
|
44
44
|
"Int",
|
|
45
45
|
"Float",
|
|
46
46
|
"Date",
|
|
47
47
|
"Pass"
|
|
48
|
-
]),
|
|
48
|
+
]), et = /* @__PURE__ */ s((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), Hn = {
|
|
49
49
|
CustomScroll: "1",
|
|
50
50
|
TouchScroll: "1"
|
|
51
|
-
},
|
|
51
|
+
}, jn = {
|
|
52
52
|
Visible: "1",
|
|
53
53
|
CanHide: "0",
|
|
54
54
|
Delete: "1",
|
|
55
55
|
Width: "33"
|
|
56
|
-
},
|
|
56
|
+
}, Kn = {
|
|
57
57
|
Spanned: "1"
|
|
58
58
|
}, ee = {
|
|
59
59
|
OnClickCell: "Focus"
|
|
60
60
|
}, te = {
|
|
61
61
|
OnClickPanelSelectAll: "SelectAll OR DeselectAll"
|
|
62
|
-
},
|
|
62
|
+
}, y = {
|
|
63
63
|
LoadPage: "",
|
|
64
64
|
RenderPage: "",
|
|
65
65
|
RenderProgressText: ""
|
|
66
|
-
},
|
|
66
|
+
}, zn = {
|
|
67
67
|
EditFrom: "",
|
|
68
68
|
EditTo: "#OwpSoftChange 240ms",
|
|
69
69
|
ChangeFrom: "",
|
|
@@ -72,7 +72,7 @@ const to = 300, wn = 3, xn = {
|
|
|
72
72
|
UndoChangeTo: "#OwpSoftRevert 280ms",
|
|
73
73
|
RedoChangeFrom: "",
|
|
74
74
|
RedoChangeTo: "#OwpSoftChange 240ms"
|
|
75
|
-
},
|
|
75
|
+
}, Yn = {
|
|
76
76
|
Select: "#OwpSoftRowSelect 140ms",
|
|
77
77
|
SelectRows: "#OwpSoftRowSelect 140ms",
|
|
78
78
|
RedoSelect: "#OwpSoftRowSelect 140ms",
|
|
@@ -101,10 +101,16 @@ const to = 300, wn = 3, xn = {
|
|
|
101
101
|
RedoDeleteVisible: "#OwpSoftRowRemove 120ms",
|
|
102
102
|
UndoUndelete: "#OwpSoftRowRemove 120ms",
|
|
103
103
|
UndoUndeleteVisible: "#OwpSoftRowRemove 120ms"
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
}, qn = {
|
|
105
|
+
ShowMenu: "#OwpPickerMenuShowDown 225ms",
|
|
106
|
+
ShowMenuUp: "#OwpPickerMenuShowUp 225ms",
|
|
107
|
+
HideMenu: "#OwpPickerMenuHideDown 225ms",
|
|
108
|
+
HideMenuUp: "#OwpPickerMenuHideUp 225ms"
|
|
109
|
+
}, Zn = 240, W = {
|
|
110
|
+
...zn,
|
|
111
|
+
...Yn,
|
|
112
|
+
...qn
|
|
113
|
+
}, Ie = "Panel", Qn = /* @__PURE__ */ new Set([Ie]), Se = [], It = ["Formula", "FormulaFormula"], er = "Formula", tt = /* @__PURE__ */ new Set([
|
|
108
114
|
"Add",
|
|
109
115
|
"Delete",
|
|
110
116
|
"Show",
|
|
@@ -113,7 +119,7 @@ const to = 300, wn = 3, xn = {
|
|
|
113
119
|
"Search",
|
|
114
120
|
"Filtered",
|
|
115
121
|
"Searched"
|
|
116
|
-
]),
|
|
122
|
+
]), tr = /<Grid\b[^>]*>/i, nr = /<\/Grid\s*>/i, rr = /<Toolbar\b[^>]*\/?>/i, sr = [
|
|
117
123
|
"CustomScroll",
|
|
118
124
|
"CustomHScroll",
|
|
119
125
|
"Undo",
|
|
@@ -122,11 +128,11 @@ const to = 300, wn = 3, xn = {
|
|
|
122
128
|
"SelectingSingle",
|
|
123
129
|
"SuppressCfg",
|
|
124
130
|
"TouchScroll"
|
|
125
|
-
],
|
|
131
|
+
], xt = [
|
|
126
132
|
"CustomScroll",
|
|
127
133
|
"CustomHScroll",
|
|
128
134
|
"TouchScroll"
|
|
129
|
-
],
|
|
135
|
+
], or = {
|
|
130
136
|
addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
|
|
131
137
|
deleteRow: [
|
|
132
138
|
"Delete",
|
|
@@ -156,61 +162,61 @@ const to = 300, wn = 3, xn = {
|
|
|
156
162
|
"UndoSelect",
|
|
157
163
|
"RedoDeselect"
|
|
158
164
|
]
|
|
159
|
-
},
|
|
160
|
-
let
|
|
161
|
-
const
|
|
165
|
+
}, Re = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakSet();
|
|
166
|
+
let nt;
|
|
167
|
+
const rt = /* @__PURE__ */ s((e, t) => {
|
|
162
168
|
if (t) {
|
|
163
169
|
pe.add(e);
|
|
164
170
|
return;
|
|
165
171
|
}
|
|
166
172
|
pe.delete(e);
|
|
167
|
-
}, "setTreeGridFocusedState"), xe = /* @__PURE__ */ s((e) => pe.has(e), "isTreeGridFocusedStateActive"),
|
|
173
|
+
}, "setTreeGridFocusedState"), xe = /* @__PURE__ */ s((e) => pe.has(e), "isTreeGridFocusedStateActive"), C = /* @__PURE__ */ s((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), st = /* @__PURE__ */ s((e, t) => {
|
|
168
174
|
Object.entries(t).forEach(([n, r]) => {
|
|
169
175
|
n in e || (e[n] = r);
|
|
170
176
|
});
|
|
171
|
-
}, "assignMissingTreeGridJsonRecordFields"), B = /* @__PURE__ */ s((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), re = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"),
|
|
177
|
+
}, "assignMissingTreeGridJsonRecordFields"), B = /* @__PURE__ */ s((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), re = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), ir = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), K = /* @__PURE__ */ s((e, t) => String(e ?? "").trim().toLowerCase() === t.toLowerCase(), "isTreeGridConfigValue"), be = /* @__PURE__ */ s((e, t) => !B(e) && !re(t), "isTreeGridCheckboxSelectionMode"), bt = /* @__PURE__ */ s((e) => {
|
|
172
178
|
const t = e.Cfg;
|
|
173
|
-
return Array.isArray(t) ? t.filter(
|
|
179
|
+
return Array.isArray(t) ? t.filter(C) : C(t) ? [t] : [];
|
|
174
180
|
}, "getTreeGridJsonCfgRecords"), se = /* @__PURE__ */ s((e, t) => {
|
|
175
181
|
let n;
|
|
176
|
-
return
|
|
182
|
+
return bt(e).forEach((r) => {
|
|
177
183
|
t in r && (n = r[t]);
|
|
178
184
|
}), n;
|
|
179
|
-
}, "getTreeGridJsonCfgValue"),
|
|
185
|
+
}, "getTreeGridJsonCfgValue"), cr = /* @__PURE__ */ s((e, t) => {
|
|
180
186
|
const n = {};
|
|
181
187
|
return t.forEach((r) => {
|
|
182
188
|
const o = se(e, r);
|
|
183
189
|
o !== void 0 && (n[r] = o);
|
|
184
190
|
}), n;
|
|
185
|
-
}, "getTreeGridJsonCfgValues"),
|
|
191
|
+
}, "getTreeGridJsonCfgValues"), lr = /* @__PURE__ */ s((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), dr = /* @__PURE__ */ s((e) => xt.every((t) => {
|
|
186
192
|
const n = e[t];
|
|
187
|
-
return n === void 0 ||
|
|
188
|
-
}), "canApplyTreeGridStableScrollbarDefaults"),
|
|
193
|
+
return n === void 0 || lr(n);
|
|
194
|
+
}), "canApplyTreeGridStableScrollbarDefaults"), Dt = /* @__PURE__ */ s((e) => {
|
|
189
195
|
const t = {};
|
|
190
|
-
return
|
|
196
|
+
return dr(e) && Object.entries(Hn).forEach(
|
|
191
197
|
([n, r]) => {
|
|
192
198
|
e[n] === void 0 && (t[n] = r);
|
|
193
199
|
}
|
|
194
200
|
), t;
|
|
195
|
-
}, "getTreeGridStableScrollbarDefaultAttributes"),
|
|
201
|
+
}, "getTreeGridStableScrollbarDefaultAttributes"), yt = /* @__PURE__ */ s((e) => Object.keys(e).length > 0, "hasTreeGridDefaultAttributes"), vt = /* @__PURE__ */ s((e, t) => {
|
|
196
202
|
const n = new RegExp(`\\b${t}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
|
|
197
203
|
e
|
|
198
204
|
);
|
|
199
205
|
return n == null ? void 0 : n[2];
|
|
200
|
-
}, "getTreeGridXmlTagAttributeValue"), J = /* @__PURE__ */ s((e, t) => new RegExp(`\\b${t}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"),
|
|
206
|
+
}, "getTreeGridXmlTagAttributeValue"), J = /* @__PURE__ */ s((e, t) => new RegExp(`\\b${t}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Pt = /* @__PURE__ */ s((e) => String(e).replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), "escapeTreeGridXmlAttributeValue"), z = /* @__PURE__ */ s((e, t, n) => {
|
|
201
207
|
const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
|
|
202
|
-
return `${e.slice(0, r)} ${t}="${
|
|
208
|
+
return `${e.slice(0, r)} ${t}="${Pt(
|
|
203
209
|
n
|
|
204
210
|
)}"${e.slice(r)}`;
|
|
205
|
-
}, "appendTreeGridXmlTagAttribute"),
|
|
211
|
+
}, "appendTreeGridXmlTagAttribute"), Ge = /* @__PURE__ */ s((e, t, n) => J(e, t) ? e.replace(
|
|
206
212
|
new RegExp(`\\b${t}\\s*=\\s*(['"])(.*?)\\1`, "i"),
|
|
207
|
-
() => `${t}="${
|
|
213
|
+
() => `${t}="${Pt(n)}"`
|
|
208
214
|
) : z(e, t, n), "setTreeGridXmlTagAttribute"), Y = /* @__PURE__ */ s((e, t) => {
|
|
209
215
|
let n = e;
|
|
210
216
|
return Object.entries(t).forEach(([r, o]) => {
|
|
211
|
-
n =
|
|
217
|
+
n = Ge(n, r, o);
|
|
212
218
|
}), n;
|
|
213
|
-
}, "setTreeGridXmlTagAttributes"),
|
|
219
|
+
}, "setTreeGridXmlTagAttributes"), F = /* @__PURE__ */ s((e, t) => {
|
|
214
220
|
let n = e;
|
|
215
221
|
return Object.entries(t).forEach(([r, o]) => {
|
|
216
222
|
J(n, r) || (n = z(n, r, o));
|
|
@@ -222,42 +228,42 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
222
228
|
};
|
|
223
229
|
let r, o = 0, c = !1;
|
|
224
230
|
for (; r = t.exec(e); ) {
|
|
225
|
-
const
|
|
226
|
-
if (!T ||
|
|
231
|
+
const f = r[0], T = (d = r[1]) == null ? void 0 : d.toLowerCase();
|
|
232
|
+
if (!T || f.startsWith("<!--") || f.startsWith("<?") || f.startsWith("<!"))
|
|
227
233
|
continue;
|
|
228
|
-
!n.hasFastPanel && J(
|
|
229
|
-
const
|
|
234
|
+
!n.hasFastPanel && J(f, "FastPanel") && (n.hasFastPanel = !0);
|
|
235
|
+
const p = f.startsWith("</"), A = /\/>\s*$/.test(f);
|
|
230
236
|
if (!c) {
|
|
231
|
-
!
|
|
237
|
+
!p && T === "grid" && (c = !0, n.gridOpenTagEndIndex = r.index + f.length, o = A ? 0 : 1);
|
|
232
238
|
continue;
|
|
233
239
|
}
|
|
234
|
-
if (
|
|
240
|
+
if (p) {
|
|
235
241
|
if (o = Math.max(0, o - 1), T === "grid" && o === 0)
|
|
236
242
|
break;
|
|
237
243
|
continue;
|
|
238
244
|
}
|
|
239
245
|
o === 1 && (T === "cfg" ? (n.defaultCfgTag || (n.defaultCfgTag = {
|
|
240
246
|
index: r.index,
|
|
241
|
-
tag:
|
|
242
|
-
}),
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
}), n.lastCfgEndIndex = r.index +
|
|
247
|
+
tag: f
|
|
248
|
+
}), sr.forEach((g) => {
|
|
249
|
+
const I = vt(f, g);
|
|
250
|
+
I !== void 0 && (n.cfgValues[g] = I);
|
|
251
|
+
}), n.lastCfgEndIndex = r.index + f.length) : T === "actions" && !n.defaultActionsTag ? n.defaultActionsTag = {
|
|
246
252
|
index: r.index,
|
|
247
|
-
tag:
|
|
248
|
-
} : T === "panel" ? (n.hasTopLevelPanelTag = !0, !n.defaultPanelTag &&
|
|
253
|
+
tag: f
|
|
254
|
+
} : T === "panel" ? (n.hasTopLevelPanelTag = !0, !n.defaultPanelTag && ur(f) && (n.defaultPanelTag = {
|
|
249
255
|
index: r.index,
|
|
250
|
-
tag:
|
|
256
|
+
tag: f
|
|
251
257
|
})) : T === "animations" && !n.animationsTag && (n.animationsTag = {
|
|
252
258
|
index: r.index,
|
|
253
|
-
tag:
|
|
259
|
+
tag: f
|
|
254
260
|
})), A || (o += 1);
|
|
255
261
|
}
|
|
256
262
|
return n;
|
|
257
|
-
}, "scanTreeGridXmlDefaultLayout"),
|
|
258
|
-
const t =
|
|
263
|
+
}, "scanTreeGridXmlDefaultLayout"), ur = /* @__PURE__ */ s((e) => {
|
|
264
|
+
const t = vt(e, "Name");
|
|
259
265
|
return t === void 0 || t === "" || t.toLowerCase() === "panel";
|
|
260
|
-
}, "isTreeGridXmlDefaultPanelTag"),
|
|
266
|
+
}, "isTreeGridXmlDefaultPanelTag"), fr = /* @__PURE__ */ s((e) => {
|
|
261
267
|
const t = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, n = [];
|
|
262
268
|
let r;
|
|
263
269
|
for (; r = t.exec(e); ) {
|
|
@@ -272,8 +278,8 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
272
278
|
});
|
|
273
279
|
}
|
|
274
280
|
return n;
|
|
275
|
-
}, "getLeadingTreeGridXmlHeaderTags"),
|
|
276
|
-
const t =
|
|
281
|
+
}, "getLeadingTreeGridXmlHeaderTags"), ar = /* @__PURE__ */ s((e) => {
|
|
282
|
+
const t = fr(e);
|
|
277
283
|
if (t.length <= 1)
|
|
278
284
|
return {
|
|
279
285
|
headContent: e,
|
|
@@ -296,60 +302,60 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
296
302
|
)}`,
|
|
297
303
|
isApplied: !0
|
|
298
304
|
};
|
|
299
|
-
}, "applyTreeGridXmlHeadPanelRowSpanDefault"),
|
|
300
|
-
if (t.gridOpenTagEndIndex === void 0 ||
|
|
305
|
+
}, "applyTreeGridXmlHeadPanelRowSpanDefault"), Tr = /* @__PURE__ */ s((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), $t = /* @__PURE__ */ s((e) => Mt(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), Ut = /* @__PURE__ */ s((e) => $t(e) || kt(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), Nt = /* @__PURE__ */ s((e, t) => {
|
|
306
|
+
if (t.gridOpenTagEndIndex === void 0 || !Ut(t))
|
|
301
307
|
return e;
|
|
302
308
|
const n = t.defaultPanelTag;
|
|
303
309
|
if (n) {
|
|
304
|
-
const o =
|
|
310
|
+
const o = F(
|
|
305
311
|
n.tag,
|
|
306
|
-
|
|
312
|
+
Kn
|
|
307
313
|
);
|
|
308
314
|
return o === n.tag ? e : `${e.slice(0, n.index)}${o}${e.slice(
|
|
309
315
|
n.index + n.tag.length
|
|
310
316
|
)}`;
|
|
311
317
|
}
|
|
312
|
-
const r =
|
|
318
|
+
const r = Tr(t);
|
|
313
319
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
314
320
|
<Panel Spanned="1" />${e.slice(
|
|
315
321
|
r
|
|
316
322
|
)}`;
|
|
317
|
-
}, "applyTreeGridXmlDefaultPanelSpannedLayout"),
|
|
323
|
+
}, "applyTreeGridXmlDefaultPanelSpannedLayout"), Sr = /* @__PURE__ */ s((e, t) => $t(t) ? Nt(e, t) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), Rr = /* @__PURE__ */ s((e) => {
|
|
318
324
|
const t = e.trim();
|
|
319
|
-
return !t || t.startsWith("{") ? e :
|
|
325
|
+
return !t || t.startsWith("{") ? e : Sr(
|
|
320
326
|
e,
|
|
321
327
|
m(e)
|
|
322
328
|
);
|
|
323
|
-
}, "applyTreeGridDefaultPanelSpannedLayout"),
|
|
329
|
+
}, "applyTreeGridDefaultPanelSpannedLayout"), Er = /* @__PURE__ */ s((e) => {
|
|
324
330
|
if (!/<Head\b/i.test(e))
|
|
325
331
|
return e;
|
|
326
332
|
const t = m(e);
|
|
327
|
-
if (t.gridOpenTagEndIndex === void 0 ||
|
|
333
|
+
if (t.gridOpenTagEndIndex === void 0 || !Ut(t))
|
|
328
334
|
return e;
|
|
329
335
|
let n = !1;
|
|
330
336
|
const r = e.replace(
|
|
331
337
|
/(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
|
|
332
|
-
(o, c, d,
|
|
333
|
-
const T =
|
|
334
|
-
return T.isApplied ? (n = !0, `${c}${T.headContent}${
|
|
338
|
+
(o, c, d, f) => {
|
|
339
|
+
const T = ar(d);
|
|
340
|
+
return T.isApplied ? (n = !0, `${c}${T.headContent}${f}`) : o;
|
|
335
341
|
}
|
|
336
342
|
);
|
|
337
|
-
return n ?
|
|
343
|
+
return n ? Nt(
|
|
338
344
|
r,
|
|
339
345
|
m(r)
|
|
340
346
|
) : e;
|
|
341
|
-
}, "applyTreeGridDefaultHeaderPanelRowSpanLayout"),
|
|
347
|
+
}, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Bt = /* @__PURE__ */ s((e) => be(
|
|
342
348
|
se(e, "Selecting"),
|
|
343
349
|
se(e, "SelectingSingle")
|
|
344
|
-
), "isTreeGridJsonCheckboxSelectionLayout"),
|
|
350
|
+
), "isTreeGridJsonCheckboxSelectionLayout"), Ft = /* @__PURE__ */ s((e) => be(
|
|
345
351
|
e.Selecting,
|
|
346
352
|
e.SelectingSingle
|
|
347
|
-
), "isTreeGridXmlCheckboxSelectionLayout"),
|
|
348
|
-
if (t.gridOpenTagEndIndex === void 0 || !
|
|
353
|
+
), "isTreeGridXmlCheckboxSelectionLayout"), Mt = /* @__PURE__ */ s((e) => !B(e.Selecting), "isTreeGridXmlSelectingLayout"), kt = /* @__PURE__ */ s((e) => K(e.Undo, "1") && K(e.Deleting, "2") && K(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), pr = /* @__PURE__ */ s((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Gr = /* @__PURE__ */ s((e, t) => {
|
|
354
|
+
if (t.gridOpenTagEndIndex === void 0 || !Mt(t.cfgValues) || /\bOnClickCell\s*=/i.test(e))
|
|
349
355
|
return e;
|
|
350
356
|
const n = t.defaultActionsTag;
|
|
351
357
|
if (n) {
|
|
352
|
-
const o =
|
|
358
|
+
const o = F(
|
|
353
359
|
n.tag,
|
|
354
360
|
ee
|
|
355
361
|
);
|
|
@@ -357,17 +363,17 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
357
363
|
n.index + n.tag.length
|
|
358
364
|
)}`;
|
|
359
365
|
}
|
|
360
|
-
const r =
|
|
366
|
+
const r = pr(t);
|
|
361
367
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
362
368
|
<Actions OnClickCell="Focus" />${e.slice(
|
|
363
369
|
r
|
|
364
370
|
)}`;
|
|
365
|
-
}, "applyTreeGridXmlDefaultCellClickActionLayout"),
|
|
366
|
-
if (t.gridOpenTagEndIndex === void 0 || !
|
|
371
|
+
}, "applyTreeGridXmlDefaultCellClickActionLayout"), Cr = /* @__PURE__ */ s((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), hr = /* @__PURE__ */ s((e, t) => {
|
|
372
|
+
if (t.gridOpenTagEndIndex === void 0 || !Ft(t.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
|
|
367
373
|
return e;
|
|
368
374
|
const n = t.defaultActionsTag;
|
|
369
375
|
if (n) {
|
|
370
|
-
const o =
|
|
376
|
+
const o = F(
|
|
371
377
|
n.tag,
|
|
372
378
|
te
|
|
373
379
|
);
|
|
@@ -375,7 +381,7 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
375
381
|
n.index + n.tag.length
|
|
376
382
|
)}`;
|
|
377
383
|
}
|
|
378
|
-
const r =
|
|
384
|
+
const r = Cr(t);
|
|
379
385
|
return r === void 0 ? e : `${e.slice(
|
|
380
386
|
0,
|
|
381
387
|
r
|
|
@@ -383,126 +389,126 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
383
389
|
<Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
|
|
384
390
|
r
|
|
385
391
|
)}`;
|
|
386
|
-
}, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"),
|
|
387
|
-
if (t.gridOpenTagEndIndex === void 0 || !
|
|
392
|
+
}, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Ar = /* @__PURE__ */ s((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), _r = /* @__PURE__ */ s((e, t) => {
|
|
393
|
+
if (t.gridOpenTagEndIndex === void 0 || !kt(t.cfgValues))
|
|
388
394
|
return e;
|
|
389
395
|
const n = t.defaultPanelTag;
|
|
390
396
|
if (n) {
|
|
391
|
-
const c =
|
|
397
|
+
const c = F(
|
|
392
398
|
n.tag,
|
|
393
|
-
|
|
399
|
+
jn
|
|
394
400
|
);
|
|
395
401
|
return c === n.tag ? e : `${e.slice(0, n.index)}${c}${e.slice(
|
|
396
402
|
n.index + n.tag.length
|
|
397
403
|
)}`;
|
|
398
404
|
}
|
|
399
|
-
const r =
|
|
405
|
+
const r = Ar(t);
|
|
400
406
|
return r === void 0 ? e : `${e.slice(0, r)}
|
|
401
407
|
<Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
|
|
402
408
|
r
|
|
403
409
|
)}`;
|
|
404
|
-
}, "applyTreeGridXmlDefaultDeletePanelLayout"),
|
|
405
|
-
if (t.hasFastPanel || !
|
|
410
|
+
}, "applyTreeGridXmlDefaultDeletePanelLayout"), gr = /* @__PURE__ */ s((e, t) => {
|
|
411
|
+
if (t.hasFastPanel || !Ft(t.cfgValues))
|
|
406
412
|
return e;
|
|
407
413
|
const n = t.gridOpenTagEndIndex;
|
|
408
414
|
return n === void 0 ? e : `${e.slice(0, n)}
|
|
409
415
|
<Cfg FastPanel="0" />${e.slice(
|
|
410
416
|
n
|
|
411
417
|
)}`;
|
|
412
|
-
}, "applyTreeGridXmlDefaultFastPanelLayout"),
|
|
418
|
+
}, "applyTreeGridXmlDefaultFastPanelLayout"), mr = /* @__PURE__ */ s((e) => {
|
|
413
419
|
const t = e.Cfg;
|
|
414
420
|
if (Array.isArray(t)) {
|
|
415
|
-
t.some((n) =>
|
|
421
|
+
t.some((n) => C(n) && "FastPanel" in n) || (e.Cfg = [{ FastPanel: 0 }, ...t]);
|
|
416
422
|
return;
|
|
417
423
|
}
|
|
418
|
-
if (
|
|
424
|
+
if (C(t)) {
|
|
419
425
|
"FastPanel" in t || (t.FastPanel = 0);
|
|
420
426
|
return;
|
|
421
427
|
}
|
|
422
428
|
e.Cfg = { FastPanel: 0 };
|
|
423
|
-
}, "applyTreeGridJsonFastPanelDefault"),
|
|
429
|
+
}, "applyTreeGridJsonFastPanelDefault"), Or = /* @__PURE__ */ s((e) => {
|
|
424
430
|
const t = e.Actions;
|
|
425
431
|
if (Array.isArray(t)) {
|
|
426
432
|
t.some(
|
|
427
|
-
(n) =>
|
|
433
|
+
(n) => C(n) && "OnClickPanelSelectAll" in n
|
|
428
434
|
) || (e.Actions = [{ ...te }, ...t]);
|
|
429
435
|
return;
|
|
430
436
|
}
|
|
431
|
-
if (
|
|
437
|
+
if (C(t)) {
|
|
432
438
|
"OnClickPanelSelectAll" in t || (t.OnClickPanelSelectAll = te.OnClickPanelSelectAll);
|
|
433
439
|
return;
|
|
434
440
|
}
|
|
435
441
|
t === void 0 && (e.Actions = { ...te });
|
|
436
|
-
}, "applyTreeGridJsonSelectAllPanelActionDefault"),
|
|
442
|
+
}, "applyTreeGridJsonSelectAllPanelActionDefault"), wr = /* @__PURE__ */ s((e) => {
|
|
437
443
|
const t = e.Actions;
|
|
438
444
|
if (Array.isArray(t)) {
|
|
439
|
-
t.some((n) =>
|
|
445
|
+
t.some((n) => C(n) && "OnClickCell" in n) || (e.Actions = [{ ...ee }, ...t]);
|
|
440
446
|
return;
|
|
441
447
|
}
|
|
442
|
-
if (
|
|
448
|
+
if (C(t)) {
|
|
443
449
|
"OnClickCell" in t || (t.OnClickCell = ee.OnClickCell);
|
|
444
450
|
return;
|
|
445
451
|
}
|
|
446
452
|
t === void 0 && (e.Actions = { ...ee });
|
|
447
|
-
}, "applyTreeGridJsonCellClickActionDefault"),
|
|
453
|
+
}, "applyTreeGridJsonCellClickActionDefault"), Lr = /* @__PURE__ */ s((e) => {
|
|
448
454
|
try {
|
|
449
455
|
const t = JSON.parse(e);
|
|
450
|
-
return !
|
|
456
|
+
return !C(t) || B(se(t, "Selecting")) ? e : (wr(t), JSON.stringify(t));
|
|
451
457
|
} catch {
|
|
452
458
|
return e;
|
|
453
459
|
}
|
|
454
|
-
}, "applyTreeGridJsonDefaultCellClickActionLayout"),
|
|
460
|
+
}, "applyTreeGridJsonDefaultCellClickActionLayout"), ot = /* @__PURE__ */ s((e, t) => {
|
|
455
461
|
const n = e.trim();
|
|
456
|
-
return n ? n.startsWith("{") ?
|
|
462
|
+
return n ? n.startsWith("{") ? Lr(e) : Gr(
|
|
457
463
|
e,
|
|
458
464
|
t ?? m(e)
|
|
459
465
|
) : e;
|
|
460
|
-
}, "applyTreeGridDefaultCellClickActionLayout"),
|
|
466
|
+
}, "applyTreeGridDefaultCellClickActionLayout"), Ir = /* @__PURE__ */ s((e) => {
|
|
461
467
|
try {
|
|
462
468
|
const t = JSON.parse(e);
|
|
463
|
-
return !
|
|
469
|
+
return !C(t) || !Bt(t) ? e : (Or(t), JSON.stringify(t));
|
|
464
470
|
} catch {
|
|
465
471
|
return e;
|
|
466
472
|
}
|
|
467
|
-
}, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"),
|
|
473
|
+
}, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), it = /* @__PURE__ */ s((e, t) => {
|
|
468
474
|
const n = e.trim();
|
|
469
|
-
return n ? n.startsWith("{") ?
|
|
475
|
+
return n ? n.startsWith("{") ? Ir(e) : hr(
|
|
470
476
|
e,
|
|
471
477
|
t ?? m(e)
|
|
472
478
|
) : e;
|
|
473
|
-
}, "applyTreeGridDefaultSelectAllPanelActionLayout"),
|
|
474
|
-
const t =
|
|
475
|
-
|
|
479
|
+
}, "applyTreeGridDefaultSelectAllPanelActionLayout"), xr = /* @__PURE__ */ s((e) => {
|
|
480
|
+
const t = Dt(
|
|
481
|
+
cr(e, xt)
|
|
476
482
|
);
|
|
477
|
-
if (!
|
|
483
|
+
if (!yt(t))
|
|
478
484
|
return;
|
|
479
485
|
const n = e.Cfg;
|
|
480
486
|
if (Array.isArray(n)) {
|
|
481
|
-
const r = n.find(
|
|
487
|
+
const r = n.find(C);
|
|
482
488
|
r ? Object.assign(r, t) : e.Cfg = [t, ...n];
|
|
483
489
|
return;
|
|
484
490
|
}
|
|
485
|
-
if (
|
|
491
|
+
if (C(n)) {
|
|
486
492
|
Object.assign(n, t);
|
|
487
493
|
return;
|
|
488
494
|
}
|
|
489
495
|
e.Cfg = t;
|
|
490
|
-
}, "applyTreeGridJsonStableScrollbarDefaults"),
|
|
496
|
+
}, "applyTreeGridJsonStableScrollbarDefaults"), br = /* @__PURE__ */ s((e) => {
|
|
491
497
|
try {
|
|
492
498
|
const t = JSON.parse(e);
|
|
493
|
-
return
|
|
499
|
+
return C(t) ? (xr(t), JSON.stringify(t)) : e;
|
|
494
500
|
} catch {
|
|
495
501
|
return e;
|
|
496
502
|
}
|
|
497
|
-
}, "applyTreeGridJsonStableScrollbarDefaultLayout"),
|
|
498
|
-
const n =
|
|
503
|
+
}, "applyTreeGridJsonStableScrollbarDefaultLayout"), Dr = /* @__PURE__ */ s((e, t) => {
|
|
504
|
+
const n = Dt(
|
|
499
505
|
t.cfgValues
|
|
500
506
|
);
|
|
501
|
-
if (!
|
|
507
|
+
if (!yt(n))
|
|
502
508
|
return e;
|
|
503
509
|
const r = t.defaultCfgTag;
|
|
504
510
|
if (r) {
|
|
505
|
-
const d =
|
|
511
|
+
const d = F(
|
|
506
512
|
r.tag,
|
|
507
513
|
n
|
|
508
514
|
);
|
|
@@ -513,7 +519,7 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
513
519
|
const o = t.gridOpenTagEndIndex;
|
|
514
520
|
if (o === void 0)
|
|
515
521
|
return e;
|
|
516
|
-
const c =
|
|
522
|
+
const c = F(
|
|
517
523
|
"<Cfg />",
|
|
518
524
|
n
|
|
519
525
|
);
|
|
@@ -521,54 +527,54 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
521
527
|
${c}${e.slice(
|
|
522
528
|
o
|
|
523
529
|
)}`;
|
|
524
|
-
}, "applyTreeGridXmlStableScrollbarDefaultLayout"),
|
|
530
|
+
}, "applyTreeGridXmlStableScrollbarDefaultLayout"), yr = /* @__PURE__ */ s((e) => {
|
|
525
531
|
const t = e.trim();
|
|
526
|
-
return t ? t.startsWith("{") ?
|
|
532
|
+
return t ? t.startsWith("{") ? br(e) : Dr(
|
|
527
533
|
e,
|
|
528
534
|
m(e)
|
|
529
535
|
) : e;
|
|
530
|
-
}, "applyTreeGridStableScrollbarDefaultLayout"),
|
|
536
|
+
}, "applyTreeGridStableScrollbarDefaultLayout"), ct = /* @__PURE__ */ s((e) => {
|
|
531
537
|
const t = e.Text;
|
|
532
538
|
if (Array.isArray(t)) {
|
|
533
|
-
const n = t.find(
|
|
534
|
-
n ? Object.assign(n,
|
|
539
|
+
const n = t.find(C);
|
|
540
|
+
n ? Object.assign(n, y) : e.Text = [{ ...y }, ...t];
|
|
535
541
|
return;
|
|
536
542
|
}
|
|
537
|
-
if (
|
|
538
|
-
Object.assign(t,
|
|
543
|
+
if (C(t)) {
|
|
544
|
+
Object.assign(t, y);
|
|
539
545
|
return;
|
|
540
546
|
}
|
|
541
|
-
e.Text = {
|
|
542
|
-
}, "applyTreeGridJsonLangPageMessageTextDefaults"),
|
|
547
|
+
e.Text = { ...y };
|
|
548
|
+
}, "applyTreeGridJsonLangPageMessageTextDefaults"), vr = /* @__PURE__ */ s((e) => {
|
|
543
549
|
const t = e.Lang;
|
|
544
550
|
if (Array.isArray(t)) {
|
|
545
|
-
const n = t.find(
|
|
546
|
-
n ?
|
|
551
|
+
const n = t.find(C);
|
|
552
|
+
n ? ct(n) : e.Lang = [{ Text: { ...y } }, ...t];
|
|
547
553
|
return;
|
|
548
554
|
}
|
|
549
|
-
if (
|
|
550
|
-
|
|
555
|
+
if (C(t)) {
|
|
556
|
+
ct(t);
|
|
551
557
|
return;
|
|
552
558
|
}
|
|
553
|
-
e.Lang = { Text: {
|
|
554
|
-
}, "applyTreeGridJsonPageMessageTextDefaults"),
|
|
559
|
+
e.Lang = { Text: { ...y } };
|
|
560
|
+
}, "applyTreeGridJsonPageMessageTextDefaults"), Pr = /* @__PURE__ */ s((e) => {
|
|
555
561
|
try {
|
|
556
562
|
const t = JSON.parse(e);
|
|
557
|
-
return
|
|
563
|
+
return C(t) ? (vr(t), JSON.stringify(t)) : e;
|
|
558
564
|
} catch {
|
|
559
565
|
return e;
|
|
560
566
|
}
|
|
561
|
-
}, "applyTreeGridJsonPageMessageTextLayout"), Ce = /* @__PURE__ */ s(() => Y("<Text />",
|
|
567
|
+
}, "applyTreeGridJsonPageMessageTextLayout"), Ce = /* @__PURE__ */ s(() => Y("<Text />", y), "createTreeGridXmlPageMessageTextTag"), $r = /* @__PURE__ */ s((e) => {
|
|
562
568
|
let t = !1;
|
|
563
569
|
const n = e.replace(
|
|
564
570
|
/(<Lang\b[^>]*>)([\s\S]*?)(<\/Lang>)/i,
|
|
565
571
|
(r, o, c, d) => {
|
|
566
572
|
if (t = !0, /<Text\b/i.test(c)) {
|
|
567
|
-
const
|
|
573
|
+
const f = c.replace(
|
|
568
574
|
/<Text\b[^>]*(?:\/>|>)/i,
|
|
569
|
-
(T) => Y(T,
|
|
575
|
+
(T) => Y(T, y)
|
|
570
576
|
);
|
|
571
|
-
return `${o}${
|
|
577
|
+
return `${o}${f}${d}`;
|
|
572
578
|
}
|
|
573
579
|
return `${o}
|
|
574
580
|
${Ce()}${c}${d}`;
|
|
@@ -577,8 +583,8 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
577
583
|
return t ? n : e.replace(/<Lang\b[^>]*\/>/i, (r) => (t = !0, `${r.replace(/\s*\/>$/, ">")}
|
|
578
584
|
${Ce()}
|
|
579
585
|
</Lang>`));
|
|
580
|
-
}, "applyTreeGridXmlPageMessageTextToLangLayout"),
|
|
581
|
-
const t =
|
|
586
|
+
}, "applyTreeGridXmlPageMessageTextToLangLayout"), Ur = /* @__PURE__ */ s((e) => {
|
|
587
|
+
const t = $r(e);
|
|
582
588
|
if (t !== e)
|
|
583
589
|
return t;
|
|
584
590
|
const n = m(e), r = n.lastCfgEndIndex ?? n.gridOpenTagEndIndex;
|
|
@@ -588,22 +594,22 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
588
594
|
</Lang>${e.slice(
|
|
589
595
|
r
|
|
590
596
|
)}`;
|
|
591
|
-
}, "applyTreeGridXmlPageMessageTextLayout"),
|
|
597
|
+
}, "applyTreeGridXmlPageMessageTextLayout"), Nr = /* @__PURE__ */ s((e) => {
|
|
592
598
|
const t = e.trim();
|
|
593
|
-
return t ? t.startsWith("{") ?
|
|
594
|
-
}, "applyTreeGridPageMessageTextLayout"),
|
|
599
|
+
return t ? t.startsWith("{") ? Pr(e) : Ur(e) : e;
|
|
600
|
+
}, "applyTreeGridPageMessageTextLayout"), Br = /* @__PURE__ */ s((e, t) => {
|
|
595
601
|
if (t === void 0)
|
|
596
602
|
return e;
|
|
597
603
|
try {
|
|
598
604
|
const n = JSON.parse(e);
|
|
599
|
-
if (!
|
|
605
|
+
if (!C(n))
|
|
600
606
|
return e;
|
|
601
|
-
const r =
|
|
607
|
+
const r = bt(n);
|
|
602
608
|
return r.some((o) => "SuppressCfg" in o) ? e : (r[0] ? r[0].SuppressCfg = t : n.Cfg = { SuppressCfg: t }, JSON.stringify(n));
|
|
603
609
|
} catch {
|
|
604
610
|
return e;
|
|
605
611
|
}
|
|
606
|
-
}, "applyTreeGridJsonDefaultSuppressCfgLayout"),
|
|
612
|
+
}, "applyTreeGridJsonDefaultSuppressCfgLayout"), Fr = /* @__PURE__ */ s((e, t, n) => {
|
|
607
613
|
if (n === void 0 || t.cfgValues.SuppressCfg !== void 0)
|
|
608
614
|
return e;
|
|
609
615
|
const r = t.defaultCfgTag;
|
|
@@ -618,89 +624,89 @@ const et = /* @__PURE__ */ s((e, t) => {
|
|
|
618
624
|
<Cfg SuppressCfg="${n}" />${e.slice(
|
|
619
625
|
o
|
|
620
626
|
)}`;
|
|
621
|
-
}, "applyTreeGridXmlDefaultSuppressCfgLayout"),
|
|
627
|
+
}, "applyTreeGridXmlDefaultSuppressCfgLayout"), Mr = /* @__PURE__ */ s((e, t) => {
|
|
622
628
|
const n = e.trim();
|
|
623
|
-
return t === void 0 || !n ? e : n.startsWith("{") ?
|
|
629
|
+
return t === void 0 || !n ? e : n.startsWith("{") ? Br(e, t) : Fr(
|
|
624
630
|
e,
|
|
625
631
|
m(e),
|
|
626
632
|
t
|
|
627
633
|
);
|
|
628
|
-
}, "applyTreeGridDefaultSuppressCfgLayout"),
|
|
629
|
-
const t = e.Toolbar, n = e.Solid, r = Array.isArray(t) ? t.filter(
|
|
630
|
-
(c) =>
|
|
631
|
-
) :
|
|
634
|
+
}, "applyTreeGridDefaultSuppressCfgLayout"), kr = /* @__PURE__ */ s((e) => It.some((t) => t in e), "hasTreeGridToolbarFormulaField"), Vr = /* @__PURE__ */ s((e) => {
|
|
635
|
+
const t = e.Toolbar, n = e.Solid, r = Array.isArray(t) ? t.filter(C) : C(t) ? [t] : [], o = Array.isArray(n) ? n.filter(
|
|
636
|
+
(c) => C(c) && K(c.Kind, "Toolbar")
|
|
637
|
+
) : C(n) && K(n.Kind, "Toolbar") ? [n] : [];
|
|
632
638
|
return [...r, ...o];
|
|
633
|
-
}, "getTreeGridJsonToolbarRecords"),
|
|
639
|
+
}, "getTreeGridJsonToolbarRecords"), Xr = /* @__PURE__ */ s((e, t) => {
|
|
634
640
|
if (!t)
|
|
635
641
|
return e;
|
|
636
642
|
try {
|
|
637
643
|
const n = JSON.parse(e);
|
|
638
|
-
if (!
|
|
644
|
+
if (!C(n))
|
|
639
645
|
return e;
|
|
640
|
-
const r =
|
|
641
|
-
return r.some(
|
|
646
|
+
const r = Vr(n);
|
|
647
|
+
return r.some(kr) ? e : (r[0] ? r[0].FormulaFormula = t : n.Toolbar = { FormulaFormula: t }, JSON.stringify(n));
|
|
642
648
|
} catch {
|
|
643
649
|
return e;
|
|
644
650
|
}
|
|
645
|
-
}, "applyTreeGridJsonDefaultToolbarTotalCountLayout"),
|
|
651
|
+
}, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Wr = /* @__PURE__ */ s((e) => It.some(
|
|
646
652
|
(t) => J(e, t)
|
|
647
|
-
), "hasTreeGridXmlToolbarFormulaAttribute"),
|
|
653
|
+
), "hasTreeGridXmlToolbarFormulaAttribute"), Jr = /* @__PURE__ */ s((e, t) => {
|
|
648
654
|
if (!t)
|
|
649
655
|
return e;
|
|
650
|
-
const n =
|
|
656
|
+
const n = rr.exec(e);
|
|
651
657
|
if (n) {
|
|
652
658
|
const d = n[0];
|
|
653
|
-
if (
|
|
659
|
+
if (Wr(d))
|
|
654
660
|
return e;
|
|
655
|
-
const
|
|
661
|
+
const f = Ge(
|
|
656
662
|
d,
|
|
657
663
|
"Formula",
|
|
658
664
|
t
|
|
659
665
|
);
|
|
660
|
-
return `${e.slice(0, n.index)}${
|
|
666
|
+
return `${e.slice(0, n.index)}${f}${e.slice(
|
|
661
667
|
n.index + d.length
|
|
662
668
|
)}`;
|
|
663
669
|
}
|
|
664
|
-
const r =
|
|
670
|
+
const r = Ge(
|
|
665
671
|
"<Toolbar />",
|
|
666
672
|
"Formula",
|
|
667
673
|
t
|
|
668
|
-
), o =
|
|
674
|
+
), o = nr.exec(e);
|
|
669
675
|
if (o)
|
|
670
676
|
return `${e.slice(0, o.index)} ${r}
|
|
671
677
|
${e.slice(
|
|
672
678
|
o.index
|
|
673
679
|
)}`;
|
|
674
|
-
const c =
|
|
680
|
+
const c = tr.exec(e);
|
|
675
681
|
return c ? `${e.slice(
|
|
676
682
|
0,
|
|
677
683
|
c.index + c[0].length
|
|
678
684
|
)}
|
|
679
685
|
${r}${e.slice(c.index + c[0].length)}` : e;
|
|
680
|
-
}, "applyTreeGridXmlDefaultToolbarTotalCountLayout"),
|
|
686
|
+
}, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), Hr = /* @__PURE__ */ s((e, t) => {
|
|
681
687
|
const n = e.trim();
|
|
682
|
-
return !t || !n ? e : n.startsWith("{") ?
|
|
688
|
+
return !t || !n ? e : n.startsWith("{") ? Xr(
|
|
683
689
|
e,
|
|
684
690
|
t
|
|
685
|
-
) :
|
|
686
|
-
}, "applyTreeGridDefaultToolbarTotalCountLayout"),
|
|
691
|
+
) : Jr(e, t);
|
|
692
|
+
}, "applyTreeGridDefaultToolbarTotalCountLayout"), jr = /* @__PURE__ */ s((e) => {
|
|
687
693
|
try {
|
|
688
694
|
const t = JSON.parse(e);
|
|
689
|
-
return !
|
|
695
|
+
return !C(t) || !Bt(t) ? e : (mr(t), JSON.stringify(t));
|
|
690
696
|
} catch {
|
|
691
697
|
return e;
|
|
692
698
|
}
|
|
693
|
-
}, "applyTreeGridJsonDefaultFastPanelLayout"),
|
|
699
|
+
}, "applyTreeGridJsonDefaultFastPanelLayout"), lt = /* @__PURE__ */ s((e, t) => {
|
|
694
700
|
const n = e.trim();
|
|
695
|
-
return n ? n.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e :
|
|
701
|
+
return n ? n.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : jr(e) : gr(
|
|
696
702
|
e,
|
|
697
703
|
t ?? m(e)
|
|
698
704
|
) : e;
|
|
699
|
-
}, "applyTreeGridDefaultFastPanelLayout"),
|
|
705
|
+
}, "applyTreeGridDefaultFastPanelLayout"), Kr = /* @__PURE__ */ s((e) => {
|
|
700
706
|
const t = e.Animations;
|
|
701
707
|
if (Array.isArray(t)) {
|
|
702
|
-
const n = t.find(
|
|
703
|
-
n ?
|
|
708
|
+
const n = t.find(C);
|
|
709
|
+
n ? st(
|
|
704
710
|
n,
|
|
705
711
|
W
|
|
706
712
|
) : e.Animations = [
|
|
@@ -709,31 +715,31 @@ ${e.slice(
|
|
|
709
715
|
];
|
|
710
716
|
return;
|
|
711
717
|
}
|
|
712
|
-
if (
|
|
713
|
-
|
|
718
|
+
if (C(t)) {
|
|
719
|
+
st(
|
|
714
720
|
t,
|
|
715
721
|
W
|
|
716
722
|
);
|
|
717
723
|
return;
|
|
718
724
|
}
|
|
719
725
|
t === void 0 && (e.Animations = { ...W });
|
|
720
|
-
}, "applyTreeGridJsonDefaultAnimationDefaults"),
|
|
726
|
+
}, "applyTreeGridJsonDefaultAnimationDefaults"), zr = /* @__PURE__ */ s((e) => {
|
|
721
727
|
try {
|
|
722
728
|
const t = JSON.parse(e);
|
|
723
|
-
return
|
|
729
|
+
return C(t) ? (Kr(t), JSON.stringify(t)) : e;
|
|
724
730
|
} catch {
|
|
725
731
|
return e;
|
|
726
732
|
}
|
|
727
|
-
}, "applyTreeGridJsonDefaultAnimationLayout"),
|
|
733
|
+
}, "applyTreeGridJsonDefaultAnimationLayout"), Yr = /* @__PURE__ */ s(() => Y(
|
|
728
734
|
"<Animations />",
|
|
729
735
|
W
|
|
730
|
-
), "createTreeGridDefaultAnimationsTag"),
|
|
736
|
+
), "createTreeGridDefaultAnimationsTag"), qr = /* @__PURE__ */ s((e, t) => {
|
|
731
737
|
const n = m(e);
|
|
732
738
|
if (n.gridOpenTagEndIndex === void 0)
|
|
733
739
|
return e;
|
|
734
740
|
const r = n.animationsTag;
|
|
735
741
|
if (r) {
|
|
736
|
-
const c =
|
|
742
|
+
const c = F(
|
|
737
743
|
r.tag,
|
|
738
744
|
W
|
|
739
745
|
);
|
|
@@ -743,30 +749,30 @@ ${e.slice(
|
|
|
743
749
|
}
|
|
744
750
|
const o = n.lastCfgEndIndex ?? n.gridOpenTagEndIndex;
|
|
745
751
|
return `${e.slice(0, o)}
|
|
746
|
-
${
|
|
752
|
+
${Yr()}${e.slice(
|
|
747
753
|
o
|
|
748
754
|
)}`;
|
|
749
|
-
}, "applyTreeGridXmlDefaultAnimationLayout"),
|
|
755
|
+
}, "applyTreeGridXmlDefaultAnimationLayout"), dt = /* @__PURE__ */ s((e, t) => {
|
|
750
756
|
const n = e.trim();
|
|
751
|
-
return n ? n.startsWith("{") ?
|
|
752
|
-
}, "applyTreeGridDefaultAnimationLayout"),
|
|
757
|
+
return n ? n.startsWith("{") ? zr(e) : qr(e) : e;
|
|
758
|
+
}, "applyTreeGridDefaultAnimationLayout"), Zr = /* @__PURE__ */ s((e) => {
|
|
753
759
|
const t = {};
|
|
754
760
|
return e == null || e.forEach((n) => {
|
|
755
761
|
var r;
|
|
756
|
-
(r =
|
|
762
|
+
(r = or[n]) == null || r.forEach((o) => {
|
|
757
763
|
t[o] = "";
|
|
758
764
|
});
|
|
759
765
|
}), t;
|
|
760
|
-
}, "getTreeGridDisabledAnimationAttributes"),
|
|
766
|
+
}, "getTreeGridDisabledAnimationAttributes"), Qr = /* @__PURE__ */ s((e, t) => {
|
|
761
767
|
try {
|
|
762
768
|
const n = JSON.parse(e);
|
|
763
|
-
if (!
|
|
769
|
+
if (!C(n))
|
|
764
770
|
return e;
|
|
765
771
|
const r = n.Animations;
|
|
766
772
|
if (Array.isArray(r)) {
|
|
767
|
-
const o = r.find(
|
|
773
|
+
const o = r.find(C);
|
|
768
774
|
o ? Object.assign(o, t) : r.unshift({ ...t });
|
|
769
|
-
} else if (
|
|
775
|
+
} else if (C(r))
|
|
770
776
|
Object.assign(r, t);
|
|
771
777
|
else if (r === void 0)
|
|
772
778
|
n.Animations = t;
|
|
@@ -776,7 +782,7 @@ ${e.slice(
|
|
|
776
782
|
} catch {
|
|
777
783
|
return e;
|
|
778
784
|
}
|
|
779
|
-
}, "applyTreeGridJsonDisabledAnimationsLayout"),
|
|
785
|
+
}, "applyTreeGridJsonDisabledAnimationsLayout"), es = /* @__PURE__ */ s((e) => Y("<Animations />", e), "createTreeGridDisabledAnimationsTag"), ts = /* @__PURE__ */ s((e, t) => {
|
|
780
786
|
const n = m(e);
|
|
781
787
|
if (n.gridOpenTagEndIndex === void 0)
|
|
782
788
|
return e;
|
|
@@ -789,22 +795,22 @@ ${e.slice(
|
|
|
789
795
|
}
|
|
790
796
|
const o = n.lastCfgEndIndex ?? n.gridOpenTagEndIndex;
|
|
791
797
|
return `${e.slice(0, o)}
|
|
792
|
-
${
|
|
798
|
+
${es(
|
|
793
799
|
t
|
|
794
800
|
)}${e.slice(o)}`;
|
|
795
|
-
}, "applyTreeGridXmlDisabledAnimationsLayout"),
|
|
796
|
-
const n =
|
|
801
|
+
}, "applyTreeGridXmlDisabledAnimationsLayout"), ut = /* @__PURE__ */ s((e, t) => {
|
|
802
|
+
const n = Zr(t);
|
|
797
803
|
if (!Object.keys(n).length)
|
|
798
804
|
return e;
|
|
799
805
|
const r = e.trim();
|
|
800
|
-
return r ? r.startsWith("{") ?
|
|
801
|
-
}, "applyTreeGridDisabledAnimationsLayout"),
|
|
802
|
-
const o =
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
return r ? r.startsWith("{") ? Qr(e, n) : ts(e, n) : e;
|
|
807
|
+
}, "applyTreeGridDisabledAnimationsLayout"), ns = /* @__PURE__ */ s((e) => (e == null ? void 0 : e.join("")) ?? "", "getTreeGridDisabledAnimationsCacheKey"), rs = /* @__PURE__ */ s((e, t, n, r) => {
|
|
808
|
+
const o = Hr(
|
|
809
|
+
Nr(
|
|
810
|
+
Rr(
|
|
811
|
+
Er(
|
|
812
|
+
yr(
|
|
813
|
+
Mr(e, r)
|
|
808
814
|
)
|
|
809
815
|
)
|
|
810
816
|
)
|
|
@@ -812,28 +818,28 @@ ${e.slice(
|
|
|
812
818
|
n
|
|
813
819
|
), c = o.trim();
|
|
814
820
|
if (!c || c.startsWith("{"))
|
|
815
|
-
return
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
821
|
+
return ut(
|
|
822
|
+
dt(
|
|
823
|
+
lt(
|
|
824
|
+
ot(
|
|
825
|
+
it(o)
|
|
820
826
|
)
|
|
821
827
|
)
|
|
822
828
|
),
|
|
823
829
|
t
|
|
824
830
|
);
|
|
825
|
-
const d = m(o),
|
|
831
|
+
const d = m(o), f = it(
|
|
826
832
|
o,
|
|
827
833
|
d
|
|
828
|
-
), T =
|
|
829
|
-
|
|
834
|
+
), T = f === o ? d : m(f), p = ot(
|
|
835
|
+
f,
|
|
830
836
|
T
|
|
831
|
-
), A =
|
|
832
|
-
return
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
+
), A = p === f ? T : m(p);
|
|
838
|
+
return ut(
|
|
839
|
+
dt(
|
|
840
|
+
_r(
|
|
841
|
+
lt(
|
|
842
|
+
p,
|
|
837
843
|
A
|
|
838
844
|
),
|
|
839
845
|
A
|
|
@@ -841,130 +847,130 @@ ${e.slice(
|
|
|
841
847
|
),
|
|
842
848
|
t
|
|
843
849
|
);
|
|
844
|
-
}, "createTreeGridDefaultLayout"),
|
|
845
|
-
const o =
|
|
850
|
+
}, "createTreeGridDefaultLayout"), he = /* @__PURE__ */ s((e, t, n, r) => {
|
|
851
|
+
const o = ns(t), c = nt;
|
|
846
852
|
if ((c == null ? void 0 : c.layoutData) === e && c.disabledAnimationsKey === o && c.toolbarTotalCountFormula === n && c.suppressCfg === r)
|
|
847
853
|
return c.result;
|
|
848
|
-
const d =
|
|
854
|
+
const d = rs(
|
|
849
855
|
e,
|
|
850
856
|
t,
|
|
851
857
|
n,
|
|
852
858
|
r
|
|
853
859
|
);
|
|
854
|
-
return
|
|
860
|
+
return nt = {
|
|
855
861
|
layoutData: e,
|
|
856
862
|
disabledAnimationsKey: o,
|
|
857
863
|
toolbarTotalCountFormula: n,
|
|
858
864
|
suppressCfg: r,
|
|
859
865
|
result: d
|
|
860
866
|
}, d;
|
|
861
|
-
}, "applyTreeGridDefaultLayout"),
|
|
867
|
+
}, "applyTreeGridDefaultLayout"), ss = /* @__PURE__ */ s((e) => {
|
|
862
868
|
var t;
|
|
863
|
-
return typeof document > "u" ? null : ((t = document.getElementById(e)) == null ? void 0 : t.closest(`.${
|
|
864
|
-
}, "getTreeGridWrapperElement"),
|
|
869
|
+
return typeof document > "u" ? null : ((t = document.getElementById(e)) == null ? void 0 : t.closest(`.${mn}`)) ?? null;
|
|
870
|
+
}, "getTreeGridWrapperElement"), ue = /* @__PURE__ */ s((e, t) => {
|
|
865
871
|
var n;
|
|
866
872
|
typeof document > "u" || !t || (document.documentElement.style.setProperty(e, t), (n = document.body) == null || n.style.setProperty(e, t));
|
|
867
|
-
}, "setTreeGridFloatingLayerCssVariable"),
|
|
873
|
+
}, "setTreeGridFloatingLayerCssVariable"), os = /* @__PURE__ */ s((e) => {
|
|
868
874
|
if (re(e.AllSelected))
|
|
869
875
|
return "checked";
|
|
870
876
|
if (B(e.AllSelected))
|
|
871
877
|
return "unchecked";
|
|
872
878
|
let t = 0, n = 0;
|
|
873
|
-
return
|
|
874
|
-
!
|
|
879
|
+
return H(e).forEach((r) => {
|
|
880
|
+
!G(r) || B(r.CanSelect) || (t += 1, re(e.IsSelected(r)) && (n += 1));
|
|
875
881
|
}), n ? t > 0 && n >= t ? "checked" : "indeterminate" : "unchecked";
|
|
876
|
-
}, "getTreeGridSelectAllState"),
|
|
877
|
-
const n =
|
|
882
|
+
}, "getTreeGridSelectAllState"), Ae = /* @__PURE__ */ s((e, t) => {
|
|
883
|
+
const n = ss(t), r = !B(e.Selecting), o = be(
|
|
878
884
|
e.Selecting,
|
|
879
885
|
e.SelectingSingle
|
|
880
886
|
), c = e.Header;
|
|
881
887
|
if (n == null || n.classList.toggle(
|
|
882
|
-
|
|
888
|
+
gn,
|
|
883
889
|
o
|
|
884
890
|
), !o)
|
|
885
891
|
n == null || n.classList.remove(
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
892
|
+
Ke,
|
|
893
|
+
ze,
|
|
894
|
+
Ye
|
|
889
895
|
);
|
|
890
896
|
else {
|
|
891
|
-
const d =
|
|
897
|
+
const d = os(e);
|
|
892
898
|
n == null || n.classList.toggle(
|
|
893
|
-
|
|
899
|
+
Ke,
|
|
894
900
|
d === "checked"
|
|
895
901
|
), n == null || n.classList.toggle(
|
|
896
|
-
|
|
902
|
+
ze,
|
|
897
903
|
d === "indeterminate"
|
|
898
904
|
), n == null || n.classList.toggle(
|
|
899
|
-
|
|
905
|
+
Ye,
|
|
900
906
|
d === "unchecked"
|
|
901
907
|
);
|
|
902
908
|
}
|
|
903
909
|
c && r && (c.CanSelect = o ? 1 : 0);
|
|
904
|
-
}, "syncTreeGridSelectionPanelState"),
|
|
910
|
+
}, "syncTreeGridSelectionPanelState"), fe = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ s((e, t) => {
|
|
905
911
|
if (typeof window > "u")
|
|
906
912
|
return;
|
|
907
|
-
const n =
|
|
913
|
+
const n = fe.get(t);
|
|
908
914
|
n !== void 0 && window.clearTimeout(n);
|
|
909
915
|
const r = window.setTimeout(() => {
|
|
910
|
-
|
|
916
|
+
fe.delete(t), Ae(e, t);
|
|
911
917
|
}, 0);
|
|
912
|
-
|
|
913
|
-
}, "scheduleTreeGridSelectionPanelStateSync"),
|
|
918
|
+
fe.set(t, r);
|
|
919
|
+
}, "scheduleTreeGridSelectionPanelStateSync"), is = /* @__PURE__ */ s((e, t) => {
|
|
914
920
|
e.EnterMode = t;
|
|
915
|
-
const n =
|
|
921
|
+
const n = Pn[t];
|
|
916
922
|
if (!n)
|
|
917
923
|
return;
|
|
918
924
|
const r = e;
|
|
919
925
|
r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = n.onEnter, r.Actions.OnEnterEdit = n.onEnterEdit;
|
|
920
|
-
}, "applyTreeGridDefaultEnterMode"),
|
|
926
|
+
}, "applyTreeGridDefaultEnterMode"), Vt = /* @__PURE__ */ s((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), at = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ s((e) => {
|
|
921
927
|
if (!e || !e.startsWith("data:"))
|
|
922
928
|
return e;
|
|
923
|
-
const t =
|
|
929
|
+
const t = at.get(e);
|
|
924
930
|
if (t)
|
|
925
931
|
return t;
|
|
926
932
|
try {
|
|
927
|
-
const [n, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(n), c = (o == null ? void 0 : o[1]) || "application/octet-stream", d = o != null && o[2] ? atob(r) : decodeURIComponent(r),
|
|
928
|
-
for (let
|
|
929
|
-
|
|
930
|
-
const T = URL.createObjectURL(new Blob([
|
|
931
|
-
return
|
|
933
|
+
const [n, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(n), c = (o == null ? void 0 : o[1]) || "application/octet-stream", d = o != null && o[2] ? atob(r) : decodeURIComponent(r), f = new Uint8Array(d.length);
|
|
934
|
+
for (let p = 0; p < d.length; p += 1)
|
|
935
|
+
f[p] = d.charCodeAt(p);
|
|
936
|
+
const T = URL.createObjectURL(new Blob([f], { type: c }));
|
|
937
|
+
return at.set(e, T), T;
|
|
932
938
|
} catch {
|
|
933
939
|
return e;
|
|
934
940
|
}
|
|
935
|
-
}, "resolveTreeGridInlineUrl"),
|
|
936
|
-
if (!e ||
|
|
937
|
-
return
|
|
941
|
+
}, "resolveTreeGridInlineUrl"), _e = /* @__PURE__ */ s((e) => {
|
|
942
|
+
if (!e || Vt(e))
|
|
943
|
+
return cs(e);
|
|
938
944
|
const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], o = n.includes("?") ? "&" : "?";
|
|
939
945
|
return `${n}${o}noCache=${Date.now()}${r}`;
|
|
940
|
-
}, "appendNoCacheQuery"),
|
|
946
|
+
}, "appendNoCacheQuery"), Tt = /* @__PURE__ */ s((e, t, n) => {
|
|
941
947
|
if (!e)
|
|
942
948
|
return;
|
|
943
|
-
const r = n.canEdit, o = n.editableColumns ?? [], c = n.editableCanEdit, d = n.highlightColumns ?? [],
|
|
949
|
+
const r = n.canEdit, o = n.editableColumns ?? [], c = n.editableCanEdit, d = n.highlightColumns ?? [], f = n.highlightBackgroundColor;
|
|
944
950
|
if (!(r === void 0 && c === void 0 && !d.length)) {
|
|
945
951
|
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
946
952
|
try {
|
|
947
953
|
if (r !== void 0 && (t.CanEdit = r), c !== void 0) {
|
|
948
954
|
const T = t;
|
|
949
|
-
o.forEach((
|
|
955
|
+
o.forEach((p) => {
|
|
950
956
|
var A;
|
|
951
|
-
!
|
|
957
|
+
!p || !((A = e.Cols) != null && A[p]) || (T[`${p}CanEdit`] = c);
|
|
952
958
|
});
|
|
953
959
|
}
|
|
954
960
|
d.forEach((T) => {
|
|
955
961
|
T && (e.SetValue(
|
|
956
962
|
t,
|
|
957
963
|
`${T}Class`,
|
|
958
|
-
|
|
964
|
+
f ? gt : "",
|
|
959
965
|
0
|
|
960
|
-
), e.SetValue(t, `${T}Color`,
|
|
966
|
+
), e.SetValue(t, `${T}Color`, f ?? "", 0));
|
|
961
967
|
});
|
|
962
968
|
} finally {
|
|
963
969
|
typeof e.EndUpdate == "function" && e.EndUpdate();
|
|
964
970
|
}
|
|
965
971
|
typeof e.RefreshRow == "function" && e.RefreshRow(t);
|
|
966
972
|
}
|
|
967
|
-
}, "syncTreeGridDeletedRowState"),
|
|
973
|
+
}, "syncTreeGridDeletedRowState"), ls = /* @__PURE__ */ s((e) => e ? Vt(e) || e.includes("assets") ? _e(e) : _e(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), ds = /* @__PURE__ */ s((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), us = /* @__PURE__ */ s((e, t, n, r) => {
|
|
968
974
|
let o = !1;
|
|
969
975
|
const c = /* @__PURE__ */ s(() => {
|
|
970
976
|
o || (o = !0, e.RemoveRow(t), n(e), r(e, !0));
|
|
@@ -974,10 +980,10 @@ ${e.slice(
|
|
|
974
980
|
} catch {
|
|
975
981
|
c();
|
|
976
982
|
}
|
|
977
|
-
}, "removeTreeGridRowAfterDeleteAnimation"),
|
|
983
|
+
}, "removeTreeGridRowAfterDeleteAnimation"), fs = /* @__PURE__ */ s((e, t, n, r, o) => {
|
|
978
984
|
if (!(!e || n === "cancel")) {
|
|
979
985
|
if (n === "remove") {
|
|
980
|
-
|
|
986
|
+
us(
|
|
981
987
|
e,
|
|
982
988
|
t,
|
|
983
989
|
r,
|
|
@@ -987,7 +993,7 @@ ${e.slice(
|
|
|
987
993
|
}
|
|
988
994
|
e.DeleteRowT(t, 3);
|
|
989
995
|
}
|
|
990
|
-
}, "applyTreeGridBeforeRowUndeleteAction"),
|
|
996
|
+
}, "applyTreeGridBeforeRowUndeleteAction"), as = /* @__PURE__ */ s((e, t, n) => e ? { Url: ls(t) } : { Data: { Body: [Dn(n) ? [] : n] } }, "buildTreeGridDataSource"), fo = /* @__PURE__ */ s(({
|
|
991
997
|
id: e,
|
|
992
998
|
layoutUrl: t,
|
|
993
999
|
layoutData: n,
|
|
@@ -995,29 +1001,29 @@ ${e.slice(
|
|
|
995
1001
|
suppressCfg: o,
|
|
996
1002
|
disabledAnimations: c,
|
|
997
1003
|
dataUrl: d,
|
|
998
|
-
bodyData:
|
|
1004
|
+
bodyData: f,
|
|
999
1005
|
useDataUrl: T,
|
|
1000
|
-
width:
|
|
1006
|
+
width: p,
|
|
1001
1007
|
height: A,
|
|
1002
|
-
languageId:
|
|
1008
|
+
languageId: g
|
|
1003
1009
|
}) => ({
|
|
1004
1010
|
id: e,
|
|
1005
1011
|
Layout: n ? {
|
|
1006
|
-
Data:
|
|
1012
|
+
Data: he(
|
|
1007
1013
|
n,
|
|
1008
1014
|
c,
|
|
1009
1015
|
r,
|
|
1010
1016
|
o
|
|
1011
1017
|
)
|
|
1012
|
-
} : { Url:
|
|
1013
|
-
Data:
|
|
1018
|
+
} : { Url: _e(t ?? "") },
|
|
1019
|
+
Data: as(T, d, f),
|
|
1014
1020
|
Text: {
|
|
1015
|
-
Url:
|
|
1021
|
+
Url: an(g)
|
|
1016
1022
|
},
|
|
1017
|
-
width:
|
|
1023
|
+
width: p,
|
|
1018
1024
|
height: A,
|
|
1019
1025
|
Debug: "Error"
|
|
1020
|
-
}), "buildTreeGridInitializationOptions"),
|
|
1026
|
+
}), "buildTreeGridInitializationOptions"), St = /* @__PURE__ */ s((e) => yn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Rt = /* @__PURE__ */ s((e) => {
|
|
1021
1027
|
if (typeof e == "number")
|
|
1022
1028
|
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
1023
1029
|
if (typeof e != "string")
|
|
@@ -1030,60 +1036,60 @@ ${e.slice(
|
|
|
1030
1036
|
}, "parseTreeGridPositiveNumber"), ge = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1031
1037
|
if (!t || !n)
|
|
1032
1038
|
return;
|
|
1033
|
-
const o = e.GetAttribute(t, n, r), c =
|
|
1034
|
-
return c !== void 0 ? c :
|
|
1039
|
+
const o = e.GetAttribute(t, n, r), c = Rt(o);
|
|
1040
|
+
return c !== void 0 ? c : Rt(
|
|
1035
1041
|
t[`${n}${r}`]
|
|
1036
1042
|
);
|
|
1037
|
-
}, "getTreeGridHeaderCellSpanAttribute"),
|
|
1043
|
+
}, "getTreeGridHeaderCellSpanAttribute"), Ts = /* @__PURE__ */ s((e, t, n) => !t || !n || t.Fixed !== "Head" || (ge(e, t, n, "Span") ?? 1) <= 1 ? !1 : (ge(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Et = /* @__PURE__ */ s((e, t, n) => {
|
|
1038
1044
|
const r = e.get(t);
|
|
1039
1045
|
if (r) {
|
|
1040
1046
|
r.add(n);
|
|
1041
1047
|
return;
|
|
1042
1048
|
}
|
|
1043
1049
|
e.set(t, /* @__PURE__ */ new Set([n]));
|
|
1044
|
-
}, "addTreeGridHeaderButtonAttributeTarget"),
|
|
1050
|
+
}, "addTreeGridHeaderButtonAttributeTarget"), Ss = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1045
1051
|
const o = /* @__PURE__ */ new Map();
|
|
1046
1052
|
return t.forEach((c, d) => {
|
|
1047
|
-
n.forEach((
|
|
1048
|
-
if (!
|
|
1053
|
+
n.forEach((f, T) => {
|
|
1054
|
+
if (!Ts(e, c, f) || (Et(o, c, f), !r))
|
|
1049
1055
|
return;
|
|
1050
|
-
const
|
|
1051
|
-
for (let
|
|
1052
|
-
const
|
|
1056
|
+
const p = Math.floor(ge(e, c, f, "Span") ?? 1), A = Math.min(n.length, T + p);
|
|
1057
|
+
for (let g = d + 1; g < t.length; g += 1) {
|
|
1058
|
+
const I = t[g];
|
|
1053
1059
|
for (let O = T; O < A; O += 1)
|
|
1054
|
-
|
|
1060
|
+
Et(o, I, n[O]);
|
|
1055
1061
|
}
|
|
1056
1062
|
});
|
|
1057
1063
|
}), o;
|
|
1058
|
-
}, "getTreeGridGroupHeaderSortButtonTargets"),
|
|
1059
|
-
const n =
|
|
1064
|
+
}, "getTreeGridGroupHeaderSortButtonTargets"), Rs = /* @__PURE__ */ s((e) => typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((t) => t.Fixed === "Head") : [], "getTreeGridHeaderRows"), Es = /* @__PURE__ */ s((e) => typeof e.GetCols == "function" ? e.GetCols() : [], "getTreeGridCols"), Xt = /* @__PURE__ */ s((e, t) => {
|
|
1065
|
+
const n = Ee.get(e);
|
|
1060
1066
|
if ((n == null ? void 0 : n.includeChildHeaderCells) === t)
|
|
1061
1067
|
return n.targets;
|
|
1062
|
-
const r =
|
|
1068
|
+
const r = Rs(e), o = Es(e), c = r.length && o.length ? Ss(
|
|
1063
1069
|
e,
|
|
1064
1070
|
r,
|
|
1065
1071
|
o,
|
|
1066
1072
|
t
|
|
1067
1073
|
) : /* @__PURE__ */ new Map();
|
|
1068
|
-
return
|
|
1074
|
+
return Ee.set(e, {
|
|
1069
1075
|
includeChildHeaderCells: t,
|
|
1070
1076
|
targets: c
|
|
1071
1077
|
}), c;
|
|
1072
|
-
}, "getTreeGridGroupHeaderSortButtonTargetCache"),
|
|
1073
|
-
e &&
|
|
1074
|
-
}, "clearTreeGridGroupHeaderSortButtonTargetCache"),
|
|
1078
|
+
}, "getTreeGridGroupHeaderSortButtonTargetCache"), $ = /* @__PURE__ */ s((e) => {
|
|
1079
|
+
e && Ee.delete(e);
|
|
1080
|
+
}, "clearTreeGridGroupHeaderSortButtonTargetCache"), ps = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1075
1081
|
var o;
|
|
1076
|
-
return !t || !n || t.Fixed !== "Head" ? !1 : ((o =
|
|
1077
|
-
}, "isTreeGridGroupHeaderSortButtonTarget"),
|
|
1082
|
+
return !t || !n || t.Fixed !== "Head" ? !1 : ((o = Xt(e, r).get(t)) == null ? void 0 : o.has(n)) === !0;
|
|
1083
|
+
}, "isTreeGridGroupHeaderSortButtonTarget"), pt = /* @__PURE__ */ s((e, t, n = !1, r = !0) => {
|
|
1078
1084
|
const o = typeof performance < "u" ? performance.now() : Date.now(), c = /* @__PURE__ */ new Set();
|
|
1079
1085
|
let d = 0;
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1086
|
+
const f = Xt(e, r);
|
|
1087
|
+
if (f.size) {
|
|
1082
1088
|
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
1083
1089
|
try {
|
|
1084
|
-
|
|
1090
|
+
f.forEach((T, p) => {
|
|
1085
1091
|
T.forEach((A) => {
|
|
1086
|
-
e.GetAttribute(
|
|
1092
|
+
e.GetAttribute(p, A, Ze) !== "" && (e.SetAttribute(p, A, Ze, "", 0, 0), c.add(p), d += 1);
|
|
1087
1093
|
});
|
|
1088
1094
|
});
|
|
1089
1095
|
} finally {
|
|
@@ -1091,45 +1097,45 @@ ${e.slice(
|
|
|
1091
1097
|
}
|
|
1092
1098
|
c.size && (n && c.forEach((T) => {
|
|
1093
1099
|
typeof e.RefreshRow == "function" && e.RefreshRow(T);
|
|
1094
|
-
}),
|
|
1100
|
+
}), wt(t, "group header button attribute apply"), Lt(t, "group header button attribute apply", o, {
|
|
1095
1101
|
updatedCellCount: d,
|
|
1096
1102
|
updatedRowCount: c.size
|
|
1097
1103
|
}));
|
|
1098
1104
|
}
|
|
1099
|
-
}, "applyTreeGridGroupHeaderSortButtonAttributes"),
|
|
1105
|
+
}, "applyTreeGridGroupHeaderSortButtonAttributes"), Gs = /* @__PURE__ */ s((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Cs = /* @__PURE__ */ s((e) => {
|
|
1100
1106
|
const t = e == null ? void 0 : e.Visible;
|
|
1101
1107
|
return !!e && t !== 0 && t !== !1 && t !== "0";
|
|
1102
|
-
}, "isVisibleTreeGridRow"),
|
|
1108
|
+
}, "isVisibleTreeGridRow"), v = /* @__PURE__ */ s((e) => {
|
|
1103
1109
|
const t = e == null ? void 0 : e.Added;
|
|
1104
1110
|
return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
|
|
1105
|
-
}, "isAddedTreeGridRow"),
|
|
1111
|
+
}, "isAddedTreeGridRow"), Wt = /* @__PURE__ */ s((e) => {
|
|
1106
1112
|
const t = e == null ? void 0 : e.Deleted;
|
|
1107
1113
|
return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
|
|
1108
|
-
}, "isDeletedTreeGridRow"),
|
|
1114
|
+
}, "isDeletedTreeGridRow"), G = /* @__PURE__ */ s((e) => !e || e.Fixed === "Foot" || !Cs(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ s((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Jt = /* @__PURE__ */ s((e, t) => {
|
|
1109
1115
|
var r;
|
|
1110
1116
|
const n = (r = e.Cols) == null ? void 0 : r[t];
|
|
1111
|
-
return !!n && !B(n.Visible) && !
|
|
1112
|
-
}, "isVisibleTreeGridColumn"), Q = /* @__PURE__ */ s((e, t) => typeof e == "number" && Number.isFinite(e) ? e : t, "resolveTreeGridColumnOrderValue"),
|
|
1113
|
-
const t =
|
|
1117
|
+
return !!n && !B(n.Visible) && !ir(n.Hidden);
|
|
1118
|
+
}, "isVisibleTreeGridColumn"), Q = /* @__PURE__ */ s((e, t) => typeof e == "number" && Number.isFinite(e) ? e : t, "resolveTreeGridColumnOrderValue"), hs = /* @__PURE__ */ s((e) => {
|
|
1119
|
+
const t = Re.get(e);
|
|
1114
1120
|
if (t)
|
|
1115
1121
|
return t;
|
|
1116
1122
|
const n = new Map(
|
|
1117
1123
|
q(e).map((c, d) => [c, d])
|
|
1118
1124
|
), r = [...n.keys()].filter(
|
|
1119
|
-
(c) => !
|
|
1125
|
+
(c) => !Xn.has(c) && Jt(e, c)
|
|
1120
1126
|
).sort((c, d) => {
|
|
1121
|
-
var O,
|
|
1122
|
-
const
|
|
1123
|
-
return
|
|
1127
|
+
var O, P;
|
|
1128
|
+
const f = (O = e.Cols) == null ? void 0 : O[c], T = (P = e.Cols) == null ? void 0 : P[d], p = n.get(c) ?? 0, A = n.get(d) ?? 0, g = Q(f == null ? void 0 : f.Sec, p) - Q(T == null ? void 0 : T.Sec, A);
|
|
1129
|
+
return g !== 0 ? g : Q(f == null ? void 0 : f.Pos, p) - Q(T == null ? void 0 : T.Pos, A) || p - A;
|
|
1124
1130
|
}), o = {
|
|
1125
1131
|
columnSet: new Set(r),
|
|
1126
1132
|
firstColumn: r[0],
|
|
1127
1133
|
lastColumn: r[r.length - 1]
|
|
1128
1134
|
};
|
|
1129
|
-
return
|
|
1135
|
+
return Re.set(e, o), o;
|
|
1130
1136
|
}, "getTreeGridAddedRowBoxColumnBounds"), X = /* @__PURE__ */ s((e) => {
|
|
1131
|
-
e &&
|
|
1132
|
-
}, "clearTreeGridAddedRowBoxColumnBounds"),
|
|
1137
|
+
e && Re.delete(e);
|
|
1138
|
+
}, "clearTreeGridAddedRowBoxColumnBounds"), H = /* @__PURE__ */ s((e) => {
|
|
1133
1139
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
1134
1140
|
const t = [];
|
|
1135
1141
|
let n = e.GetFirst();
|
|
@@ -1138,10 +1144,10 @@ ${e.slice(
|
|
|
1138
1144
|
return t;
|
|
1139
1145
|
}
|
|
1140
1146
|
return Object.values(e.Rows ?? {});
|
|
1141
|
-
}, "getTreeGridRows"),
|
|
1147
|
+
}, "getTreeGridRows"), me = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ s((e, t, n = !1) => {
|
|
1142
1148
|
if (!e || !t)
|
|
1143
1149
|
return;
|
|
1144
|
-
const r =
|
|
1150
|
+
const r = ae.get(e);
|
|
1145
1151
|
if (r) {
|
|
1146
1152
|
n && (r.forceGridCalculate = !0);
|
|
1147
1153
|
return;
|
|
@@ -1150,7 +1156,7 @@ ${e.slice(
|
|
|
1150
1156
|
forceGridCalculate: n
|
|
1151
1157
|
};
|
|
1152
1158
|
window.requestAnimationFrame(() => {
|
|
1153
|
-
if (
|
|
1159
|
+
if (ae.delete(e), o.forceGridCalculate) {
|
|
1154
1160
|
try {
|
|
1155
1161
|
e.Calculate(1);
|
|
1156
1162
|
} catch {
|
|
@@ -1159,7 +1165,7 @@ ${e.slice(
|
|
|
1159
1165
|
return;
|
|
1160
1166
|
}
|
|
1161
1167
|
try {
|
|
1162
|
-
e.Recalculate(e.Toolbar,
|
|
1168
|
+
e.Recalculate(e.Toolbar, er, 1);
|
|
1163
1169
|
} catch {
|
|
1164
1170
|
try {
|
|
1165
1171
|
e.Calculate(1, 1);
|
|
@@ -1167,105 +1173,105 @@ ${e.slice(
|
|
|
1167
1173
|
return;
|
|
1168
1174
|
}
|
|
1169
1175
|
}
|
|
1170
|
-
}),
|
|
1171
|
-
}, "scheduleTreeGridToolbarTotalCountRefresh"),
|
|
1172
|
-
e && _e.delete(e);
|
|
1173
|
-
}, "clearTreeGridSelectionRowSpanAnchorRowMap"), U = /* @__PURE__ */ s((e) => {
|
|
1176
|
+
}), ae.set(e, o);
|
|
1177
|
+
}, "scheduleTreeGridToolbarTotalCountRefresh"), _s = /* @__PURE__ */ s((e) => {
|
|
1174
1178
|
e && me.delete(e);
|
|
1175
|
-
}, "
|
|
1176
|
-
|
|
1177
|
-
}, "
|
|
1179
|
+
}, "clearTreeGridSelectionRowSpanAnchorRowMap"), U = /* @__PURE__ */ s((e) => {
|
|
1180
|
+
e && Oe.delete(e);
|
|
1181
|
+
}, "clearTreeGridDataRowSpanGroupRowsMap"), L = /* @__PURE__ */ s((e) => {
|
|
1182
|
+
_s(e), U(e);
|
|
1183
|
+
}, "clearTreeGridRowSpanMaps"), De = /* @__PURE__ */ s((e, t) => {
|
|
1178
1184
|
const n = e, r = n == null ? void 0 : n[`${t}RowSpan`], o = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
|
|
1179
1185
|
return Number.isFinite(o) && o > 1 ? Math.floor(o) : 1;
|
|
1180
|
-
}, "getTreeGridRowSpanCount"),
|
|
1186
|
+
}, "getTreeGridRowSpanCount"), gs = /* @__PURE__ */ s((e) => {
|
|
1181
1187
|
const t = /* @__PURE__ */ new WeakMap();
|
|
1182
1188
|
let n = null, r = -1;
|
|
1183
|
-
return
|
|
1184
|
-
if (!
|
|
1189
|
+
return H(e).forEach((o, c) => {
|
|
1190
|
+
if (!G(o)) {
|
|
1185
1191
|
t.set(o, null);
|
|
1186
1192
|
return;
|
|
1187
1193
|
}
|
|
1188
|
-
const d =
|
|
1194
|
+
const d = De(o, Ie);
|
|
1189
1195
|
if (d > 1) {
|
|
1190
1196
|
n = o, r = c + d - 1, t.set(o, o);
|
|
1191
1197
|
return;
|
|
1192
1198
|
}
|
|
1193
1199
|
t.set(o, n && c <= r ? n : null), c >= r && (n = null, r = -1);
|
|
1194
1200
|
}), t;
|
|
1195
|
-
}, "createTreeGridSelectionRowSpanAnchorRowMap"),
|
|
1196
|
-
if (!t || !
|
|
1201
|
+
}, "createTreeGridSelectionRowSpanAnchorRowMap"), ye = /* @__PURE__ */ s((e, t) => {
|
|
1202
|
+
if (!t || !G(t))
|
|
1197
1203
|
return null;
|
|
1198
|
-
let n =
|
|
1199
|
-
return n != null && n.has(t) || (n =
|
|
1200
|
-
}, "getTreeGridSelectionRowSpanAnchorRow"),
|
|
1201
|
-
const n =
|
|
1204
|
+
let n = me.get(e);
|
|
1205
|
+
return n != null && n.has(t) || (n = gs(e), me.set(e, n)), n.get(t) ?? null;
|
|
1206
|
+
}, "getTreeGridSelectionRowSpanAnchorRow"), Ht = /* @__PURE__ */ s((e, t) => {
|
|
1207
|
+
const n = ye(e, t);
|
|
1202
1208
|
if (!n)
|
|
1203
1209
|
return [];
|
|
1204
|
-
const r =
|
|
1210
|
+
const r = De(n, Ie), o = [];
|
|
1205
1211
|
let c = n;
|
|
1206
1212
|
for (let d = 0; c && d < r; d += 1)
|
|
1207
|
-
|
|
1213
|
+
G(c) && o.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
|
|
1208
1214
|
return o;
|
|
1209
|
-
}, "getTreeGridSelectionRowSpanRows"),
|
|
1215
|
+
}, "getTreeGridSelectionRowSpanRows"), ms = /* @__PURE__ */ s((e) => {
|
|
1210
1216
|
const t = /* @__PURE__ */ new Set();
|
|
1211
1217
|
return (e.GetSelRows() ?? []).forEach((n) => {
|
|
1212
|
-
|
|
1218
|
+
Ht(e, n).forEach((r) => {
|
|
1213
1219
|
t.add(r);
|
|
1214
1220
|
});
|
|
1215
1221
|
}), [...t];
|
|
1216
|
-
}, "getTreeGridSelectedRowSpanRows"),
|
|
1222
|
+
}, "getTreeGridSelectedRowSpanRows"), Os = /* @__PURE__ */ s((e) => re(e) || e === 2 || e === "2", "isTreeGridSpannedColumnValue"), ws = /* @__PURE__ */ s((e, t) => {
|
|
1217
1223
|
var r;
|
|
1218
1224
|
const n = (r = e.Cols) == null ? void 0 : r[t];
|
|
1219
|
-
return !!n && !
|
|
1220
|
-
}, "isTreeGridDataRowSpanColumn"),
|
|
1221
|
-
const t = /* @__PURE__ */ new WeakMap(), n =
|
|
1222
|
-
(c) =>
|
|
1225
|
+
return !!n && !Qn.has(t) && Os(n.Spanned) && Jt(e, t);
|
|
1226
|
+
}, "isTreeGridDataRowSpanColumn"), Ls = /* @__PURE__ */ s((e) => {
|
|
1227
|
+
const t = /* @__PURE__ */ new WeakMap(), n = H(e), r = q(e).filter(
|
|
1228
|
+
(c) => ws(e, c)
|
|
1223
1229
|
), o = [];
|
|
1224
1230
|
return n.forEach((c, d) => {
|
|
1225
|
-
|
|
1226
|
-
const T =
|
|
1231
|
+
G(c) && (t.set(c, Se), r.forEach((f) => {
|
|
1232
|
+
const T = De(c, f);
|
|
1227
1233
|
T <= 1 || o.push({
|
|
1228
1234
|
startIndex: d,
|
|
1229
1235
|
endIndex: Math.min(n.length - 1, d + T - 1)
|
|
1230
1236
|
});
|
|
1231
1237
|
}));
|
|
1232
1238
|
}), o.length && o.sort((c, d) => c.startIndex - d.startIndex).reduce((c, d) => {
|
|
1233
|
-
const
|
|
1234
|
-
return !
|
|
1239
|
+
const f = c[c.length - 1];
|
|
1240
|
+
return !f || d.startIndex > f.endIndex ? (c.push({ ...d }), c) : (f.endIndex = Math.max(f.endIndex, d.endIndex), c);
|
|
1235
1241
|
}, []).forEach((c) => {
|
|
1236
|
-
const d = n.slice(c.startIndex, c.endIndex + 1).filter(
|
|
1237
|
-
d.length <= 1 || d.forEach((
|
|
1238
|
-
t.set(
|
|
1242
|
+
const d = n.slice(c.startIndex, c.endIndex + 1).filter(G);
|
|
1243
|
+
d.length <= 1 || d.forEach((f) => {
|
|
1244
|
+
t.set(f, d);
|
|
1239
1245
|
});
|
|
1240
1246
|
}), t;
|
|
1241
1247
|
}, "createTreeGridDataRowSpanGroupRowsMap"), oe = /* @__PURE__ */ s((e, t) => {
|
|
1242
|
-
if (!t || !
|
|
1243
|
-
return
|
|
1244
|
-
let n =
|
|
1245
|
-
return n != null && n.has(t) || (n =
|
|
1246
|
-
}, "getTreeGridDataRowSpanRows"),
|
|
1248
|
+
if (!t || !G(t))
|
|
1249
|
+
return Se;
|
|
1250
|
+
let n = Oe.get(e);
|
|
1251
|
+
return n != null && n.has(t) || (n = Ls(e), Oe.set(e, n)), n.get(t) ?? Se;
|
|
1252
|
+
}, "getTreeGridDataRowSpanRows"), Is = /* @__PURE__ */ s((e, t) => {
|
|
1247
1253
|
if (!e)
|
|
1248
1254
|
return;
|
|
1249
1255
|
const n = q(e);
|
|
1250
|
-
|
|
1251
|
-
if (!
|
|
1256
|
+
H(e).forEach((r) => {
|
|
1257
|
+
if (!G(r))
|
|
1252
1258
|
return;
|
|
1253
1259
|
const o = /* @__PURE__ */ new Map();
|
|
1254
1260
|
n.forEach((c) => {
|
|
1255
1261
|
o.set(c, Le(e, r, c));
|
|
1256
1262
|
}), t.set(r, o);
|
|
1257
1263
|
});
|
|
1258
|
-
}, "captureTreeGridChangeBaselines"), ie = /* @__PURE__ */ s((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"),
|
|
1264
|
+
}, "captureTreeGridChangeBaselines"), ie = /* @__PURE__ */ s((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), xs = /* @__PURE__ */ s((e, t, n) => {
|
|
1259
1265
|
const r = t;
|
|
1260
1266
|
return q(e).some((o) => o !== n && ie(r[`${o}Changed`]));
|
|
1261
|
-
}, "hasOtherTreeGridChangedCells"),
|
|
1267
|
+
}, "hasOtherTreeGridChangedCells"), jt = /* @__PURE__ */ s((e, t, n) => {
|
|
1262
1268
|
const r = t;
|
|
1263
|
-
r[`${n}Changed`] = 0, !
|
|
1264
|
-
}, "clearTreeGridCellChangedState"),
|
|
1269
|
+
r[`${n}Changed`] = 0, !v(t) && !b(t) && !xs(e, t, n) && (r.Changed = 0);
|
|
1270
|
+
}, "clearTreeGridCellChangedState"), bs = /* @__PURE__ */ s((e, t, n) => {
|
|
1265
1271
|
const r = e.get(t);
|
|
1266
1272
|
if (r != null && r.has(n))
|
|
1267
1273
|
return r.get(n);
|
|
1268
|
-
}, "resolveTreeGridCellBaselineValue"),
|
|
1274
|
+
}, "resolveTreeGridCellBaselineValue"), Ds = /* @__PURE__ */ s(({
|
|
1269
1275
|
gridId: e,
|
|
1270
1276
|
grid: t,
|
|
1271
1277
|
row: n,
|
|
@@ -1273,18 +1279,18 @@ ${e.slice(
|
|
|
1273
1279
|
backgroundColor: o,
|
|
1274
1280
|
highlightRefresh: c
|
|
1275
1281
|
}) => {
|
|
1276
|
-
if (!
|
|
1282
|
+
if (!v(n) && !b(n))
|
|
1277
1283
|
return !1;
|
|
1278
1284
|
if (t.CanEdit(n, r) !== 1)
|
|
1279
1285
|
return !0;
|
|
1280
|
-
const d =
|
|
1281
|
-
return d === void 0 ? !0 : Le(t, n, r) === d ? (
|
|
1286
|
+
const d = Rn(n, r), f = Te(n).includes(r);
|
|
1287
|
+
return d === void 0 ? !0 : Le(t, n, r) === d ? (En(n, r), f && mt(e, { row: n, col: r }), jt(t, n, r), !0) : (pn(n, r), Ot(e, {
|
|
1282
1288
|
row: n,
|
|
1283
1289
|
col: r,
|
|
1284
1290
|
backgroundColor: o,
|
|
1285
1291
|
refresh: c
|
|
1286
1292
|
}), !0);
|
|
1287
|
-
}, "syncTreeGridAddedRowChangedCellHighlight"),
|
|
1293
|
+
}, "syncTreeGridAddedRowChangedCellHighlight"), ys = /* @__PURE__ */ s(({
|
|
1288
1294
|
gridId: e,
|
|
1289
1295
|
grid: t,
|
|
1290
1296
|
row: n,
|
|
@@ -1293,7 +1299,7 @@ ${e.slice(
|
|
|
1293
1299
|
baselineMap: c,
|
|
1294
1300
|
highlightRefresh: d
|
|
1295
1301
|
}) => {
|
|
1296
|
-
if (!
|
|
1302
|
+
if (!G(n) || Ds({
|
|
1297
1303
|
gridId: e,
|
|
1298
1304
|
grid: t,
|
|
1299
1305
|
row: n,
|
|
@@ -1302,51 +1308,51 @@ ${e.slice(
|
|
|
1302
1308
|
highlightRefresh: d
|
|
1303
1309
|
}))
|
|
1304
1310
|
return;
|
|
1305
|
-
const
|
|
1306
|
-
if (
|
|
1307
|
-
|
|
1311
|
+
const f = bs(c, n, r), T = Le(t, n, r);
|
|
1312
|
+
if (f !== void 0 && T === f) {
|
|
1313
|
+
mt(e, { row: n, col: r }), jt(t, n, r), Gt(t, n);
|
|
1308
1314
|
return;
|
|
1309
1315
|
}
|
|
1310
|
-
|
|
1316
|
+
Ot(e, {
|
|
1311
1317
|
row: n,
|
|
1312
1318
|
col: r,
|
|
1313
1319
|
backgroundColor: o,
|
|
1314
1320
|
refresh: d
|
|
1315
|
-
}),
|
|
1316
|
-
}, "syncTreeGridChangedCellHighlight"),
|
|
1321
|
+
}), Gt(t, n);
|
|
1322
|
+
}, "syncTreeGridChangedCellHighlight"), Kt = /* @__PURE__ */ s((e, t, n) => !t || !n || !G(t) ? !1 : e.CanEdit(t, n) === 1, "isEditableTreeGridCell"), zt = /* @__PURE__ */ s((e, t, n) => {
|
|
1317
1323
|
const r = e.GetAttribute(t, n, "Color");
|
|
1318
1324
|
if (typeof r == "number")
|
|
1319
|
-
return
|
|
1325
|
+
return Qt(r);
|
|
1320
1326
|
if (typeof r == "string")
|
|
1321
1327
|
return r.trim() || void 0;
|
|
1322
|
-
}, "getExplicitTreeGridCellColor"),
|
|
1323
|
-
if (!xe(e) || !t || !n || !
|
|
1328
|
+
}, "getExplicitTreeGridCellColor"), Yt = /* @__PURE__ */ s((e, t, n) => zt(e, t, n) !== void 0, "hasExplicitTreeGridCellColor"), ve = /* @__PURE__ */ s((e, t, n) => {
|
|
1329
|
+
if (!xe(e) || !t || !n || !G(t))
|
|
1324
1330
|
return !1;
|
|
1325
1331
|
const r = typeof e.IsFocused == "function" ? e.IsFocused(t, n) : e.FRow === t && e.FCol === n;
|
|
1326
1332
|
return r !== 0 && r !== !1 && r !== void 0 && r !== null;
|
|
1327
1333
|
}, "isTreeGridFocusedCellState"), Z = /* @__PURE__ */ s((e, t, n) => {
|
|
1328
|
-
if (!t || !n || !
|
|
1334
|
+
if (!t || !n || !G(t))
|
|
1329
1335
|
return !1;
|
|
1330
1336
|
const r = e.IsSelected(t, n);
|
|
1331
1337
|
if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
|
|
1332
1338
|
return !0;
|
|
1333
|
-
const o =
|
|
1339
|
+
const o = ye(e, t);
|
|
1334
1340
|
if (!o || o === t)
|
|
1335
1341
|
return !1;
|
|
1336
1342
|
const c = e.IsSelected(o, n);
|
|
1337
1343
|
return c !== 0 && c !== !1 && c !== void 0 && c !== null;
|
|
1338
|
-
}, "isTreeGridSelectedCellState"),
|
|
1339
|
-
if (!
|
|
1344
|
+
}, "isTreeGridSelectedCellState"), Pe = /* @__PURE__ */ s((e) => {
|
|
1345
|
+
if (!Qe.length)
|
|
1340
1346
|
return !1;
|
|
1341
1347
|
const t = e.split(/\s+/).filter(Boolean);
|
|
1342
|
-
return
|
|
1348
|
+
return Qe.every(
|
|
1343
1349
|
(n) => t.includes(n)
|
|
1344
1350
|
);
|
|
1345
|
-
}, "hasTreeGridChangedCellDisplayClass"),
|
|
1346
|
-
if (!(!e || e.split(/\s+/).includes(
|
|
1347
|
-
return `${e} ${
|
|
1348
|
-
}, "appendTreeGridSelectedChangedCellDisplayClass"),
|
|
1349
|
-
if (!t || !
|
|
1351
|
+
}, "hasTreeGridChangedCellDisplayClass"), vs = /* @__PURE__ */ s((e) => {
|
|
1352
|
+
if (!(!e || e.split(/\s+/).includes(qe) || !Pe(e)))
|
|
1353
|
+
return `${e} ${qe}`;
|
|
1354
|
+
}, "appendTreeGridSelectedChangedCellDisplayClass"), qt = /* @__PURE__ */ s((e) => !e || !G(e) ? !1 : Object.entries(e).some(([t, n]) => t.endsWith("Class") && typeof n == "string" && Pe(n)), "hasTreeGridChangedCellDisplayClassInRow"), Ps = /* @__PURE__ */ s((e, t) => {
|
|
1355
|
+
if (!t || !qt(t) || typeof e.RefreshRow != "function")
|
|
1350
1356
|
return;
|
|
1351
1357
|
const n = t;
|
|
1352
1358
|
window.setTimeout(() => {
|
|
@@ -1361,43 +1367,43 @@ ${e.slice(
|
|
|
1361
1367
|
e.RefreshRow(r);
|
|
1362
1368
|
});
|
|
1363
1369
|
}, 0);
|
|
1364
|
-
}, "scheduleTreeGridRowsRefresh"),
|
|
1370
|
+
}, "scheduleTreeGridRowsRefresh"), $s = /* @__PURE__ */ s((e, t) => {
|
|
1365
1371
|
if (!t)
|
|
1366
1372
|
return;
|
|
1367
|
-
const n =
|
|
1373
|
+
const n = Ht(e, t);
|
|
1368
1374
|
n.length <= 1 || M(e, n);
|
|
1369
|
-
}, "scheduleTreeGridSelectionRowSpanRefresh"),
|
|
1370
|
-
if (!t || !
|
|
1375
|
+
}, "scheduleTreeGridSelectionRowSpanRefresh"), Gt = /* @__PURE__ */ s((e, t) => {
|
|
1376
|
+
if (!t || !G(t))
|
|
1371
1377
|
return;
|
|
1372
1378
|
const n = oe(e, t), r = n.length > 1 ? n : [t];
|
|
1373
1379
|
M(e, r);
|
|
1374
|
-
}, "scheduleTreeGridChangedStateRowsRefresh"),
|
|
1380
|
+
}, "scheduleTreeGridChangedStateRowsRefresh"), Ct = /* @__PURE__ */ s((e, t) => {
|
|
1375
1381
|
const n = t.flatMap((r) => {
|
|
1376
|
-
if (!r || !
|
|
1382
|
+
if (!r || !G(r))
|
|
1377
1383
|
return [];
|
|
1378
1384
|
const o = oe(e, r);
|
|
1379
1385
|
return o.length > 1 ? [...o] : [r];
|
|
1380
1386
|
});
|
|
1381
1387
|
M(e, n);
|
|
1382
|
-
}, "scheduleTreeGridFocusedRowStateRowsRefresh"),
|
|
1383
|
-
const t =
|
|
1388
|
+
}, "scheduleTreeGridFocusedRowStateRowsRefresh"), Us = /* @__PURE__ */ s((e) => {
|
|
1389
|
+
const t = H(e).filter((n) => G(n) && ye(e, n));
|
|
1384
1390
|
M(e, t);
|
|
1385
|
-
}, "scheduleTreeGridSelectionRowSpanRefreshAll"),
|
|
1386
|
-
if (!(!t || r === void 0 || !
|
|
1391
|
+
}, "scheduleTreeGridSelectionRowSpanRefreshAll"), Zt = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1392
|
+
if (!(!t || r === void 0 || !Kt(e, t, n) || ve(e, t, n) || Z(e, t, n) || Yt(e, t, n)))
|
|
1387
1393
|
return r;
|
|
1388
|
-
}, "getEditableTreeGridCellDefaultColor"),
|
|
1389
|
-
(r) =>
|
|
1390
|
-
), "isTreeGridNativeErrorBackgroundColor"),
|
|
1394
|
+
}, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ s((e, t, n, r) => e === r[0] && t === r[1] && n === r[2], "matchesTreeGridRgbColor"), Ns = /* @__PURE__ */ s((e, t, n) => kn.some(
|
|
1395
|
+
(r) => N(e, t, n, r)
|
|
1396
|
+
), "isTreeGridNativeErrorBackgroundColor"), Qt = /* @__PURE__ */ s((e) => {
|
|
1391
1397
|
if (!(e === void 0 || !Number.isFinite(e)))
|
|
1392
1398
|
return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
|
|
1393
|
-
}, "toTreeGridCssHexColor"),
|
|
1399
|
+
}, "toTreeGridCssHexColor"), we = /* @__PURE__ */ s((e, t, n) => !t || !n || !G(t) ? "" : e.GetAttribute(t, n, "Error") ?? "", "getTreeGridCellError"), $e = /* @__PURE__ */ s((e, t, n) => we(e, t, n) !== "", "hasTreeGridCellError"), Bs = /* @__PURE__ */ s((e, t) => {
|
|
1394
1400
|
if (!t)
|
|
1395
1401
|
return;
|
|
1396
1402
|
let n = !1;
|
|
1397
1403
|
q(e).forEach((r) => {
|
|
1398
|
-
|
|
1404
|
+
$e(e, t, r) && (e.SetAttribute(t, r, "Error", "", 0), n = !0);
|
|
1399
1405
|
}), n && e.RefreshRow(t);
|
|
1400
|
-
}, "clearTreeGridRowErrors"),
|
|
1406
|
+
}, "clearTreeGridRowErrors"), Fs = /* @__PURE__ */ s((e) => {
|
|
1401
1407
|
const t = e == null ? void 0 : e.target;
|
|
1402
1408
|
if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
|
|
1403
1409
|
return null;
|
|
@@ -1407,28 +1413,33 @@ ${e.slice(
|
|
|
1407
1413
|
return c instanceof HTMLElement ? c : o instanceof HTMLElement ? o : null;
|
|
1408
1414
|
}
|
|
1409
1415
|
return null;
|
|
1410
|
-
}, "getTreeGridMouseEventAnchorElement"),
|
|
1411
|
-
if (!e || !t || !
|
|
1416
|
+
}, "getTreeGridMouseEventAnchorElement"), en = /* @__PURE__ */ s((e, t) => {
|
|
1417
|
+
if (!e || !t || !G(e))
|
|
1412
1418
|
return !1;
|
|
1413
1419
|
const n = e, r = n[`${t}Class`];
|
|
1414
|
-
return ie(n[`${t}Changed`]) || typeof r == "string" &&
|
|
1415
|
-
}, "isChangedTreeGridCellDisplayState"),
|
|
1416
|
-
if (!e || !t || !
|
|
1420
|
+
return ie(n[`${t}Changed`]) || typeof r == "string" && Pe(r);
|
|
1421
|
+
}, "isChangedTreeGridCellDisplayState"), Ms = /* @__PURE__ */ s((e, t) => {
|
|
1422
|
+
if (!e || !t || !G(e))
|
|
1417
1423
|
return !1;
|
|
1418
|
-
const n = e, r =
|
|
1419
|
-
return
|
|
1420
|
-
}, "isChangedTreeGridRowOrCell"),
|
|
1424
|
+
const n = e, r = en(e, t);
|
|
1425
|
+
return v(e) || b(e) ? r : r || ie(n.Changed);
|
|
1426
|
+
}, "isChangedTreeGridRowOrCell"), ht = /* @__PURE__ */ s((e) => !e || !G(e) || v(e) || b(e) ? !1 : ie(e.Changed) || qt(e), "isChangedTreeGridRowDisplayState"), ks = /* @__PURE__ */ s((e, t, n) => Jn.has(e.GetType(t, n)), "isTreeGridNativeInputEditType"), tn = /* @__PURE__ */ s((e, t, n) => !t || !n ? !1 : e.GetType(t, n) === "Enum", "isTreeGridNativeEnumEditType"), Vs = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1427
|
+
if (!tn(e, t, n))
|
|
1428
|
+
return;
|
|
1429
|
+
const o = r;
|
|
1430
|
+
o.MaxHeight == null && (o.MaxHeight = Zn);
|
|
1431
|
+
}, "applyTreeGridNativeEnumMenuDefaults"), Ue = /* @__PURE__ */ s((e, t, n) => !!t && !!n && G(t) && e.ARow === t && e.ACol === n, "isTreeGridHoveredCellState"), Xs = /* @__PURE__ */ s((e, t, n) => !Ue(e, t, n) || !t ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), Ws = /* @__PURE__ */ s((e, t, n) => !Ue(e, t, n) || !t ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), nn = /* @__PURE__ */ s((e, t) => xe(e) && !!t && G(t) && e.FRow === t, "isTreeGridFocusedRowState"), Js = /* @__PURE__ */ s((e, t) => {
|
|
1421
1432
|
const n = e.FRow;
|
|
1422
|
-
if (!xe(e) || !n || !t || !
|
|
1433
|
+
if (!xe(e) || !n || !t || !G(t))
|
|
1423
1434
|
return !1;
|
|
1424
1435
|
const r = oe(e, n);
|
|
1425
1436
|
return r.length > 1 && r.includes(t);
|
|
1426
|
-
}, "isTreeGridFocusedDataRowSpanGroupState"),
|
|
1427
|
-
if (!t || !
|
|
1437
|
+
}, "isTreeGridFocusedDataRowSpanGroupState"), Hs = /* @__PURE__ */ s((e, t) => {
|
|
1438
|
+
if (!t || !G(t))
|
|
1428
1439
|
return !1;
|
|
1429
1440
|
const n = oe(e, t);
|
|
1430
|
-
return n.length <= 1 ?
|
|
1431
|
-
}, "isTreeGridChangedDataRowSpanGroupState"),
|
|
1441
|
+
return n.length <= 1 ? ht(t) : n.some(ht);
|
|
1442
|
+
}, "isTreeGridChangedDataRowSpanGroupState"), At = /* @__PURE__ */ s((e, t, n) => !t || !n || !G(t) || Yt(e, t, n) ? !1 : !Kt(e, t, n), "canApplyTreeGridRowStateBackground"), js = /* @__PURE__ */ s(({
|
|
1432
1443
|
grid: e,
|
|
1433
1444
|
row: t,
|
|
1434
1445
|
col: n,
|
|
@@ -1436,53 +1447,53 @@ ${e.slice(
|
|
|
1436
1447
|
g: o,
|
|
1437
1448
|
b: c,
|
|
1438
1449
|
focusedRowBackgroundColor: d,
|
|
1439
|
-
focusedCellBackgroundColor:
|
|
1450
|
+
focusedCellBackgroundColor: f,
|
|
1440
1451
|
selectedCellBackgroundColor: T,
|
|
1441
|
-
hoverCellBackgroundColor:
|
|
1452
|
+
hoverCellBackgroundColor: p,
|
|
1442
1453
|
changedCellBackgroundColor: A,
|
|
1443
|
-
changedRowBackgroundColor:
|
|
1444
|
-
editableCellBackgroundColorValue:
|
|
1454
|
+
changedRowBackgroundColor: g,
|
|
1455
|
+
editableCellBackgroundColorValue: I
|
|
1445
1456
|
}) => {
|
|
1446
|
-
if (
|
|
1447
|
-
return
|
|
1457
|
+
if (ve(e, t, n))
|
|
1458
|
+
return f;
|
|
1448
1459
|
if (Z(e, t, n))
|
|
1449
1460
|
return T;
|
|
1450
|
-
if (
|
|
1451
|
-
return
|
|
1452
|
-
if (
|
|
1461
|
+
if (Ue(e, t, n) && N(r, o, c, Nn) || Xs(e, t, n) && (N(r, o, c, $n) || N(r, o, c, Un)) || Ws(e, t, n) && (N(r, o, c, Bn) || N(r, o, c, Fn) || N(r, o, c, Mn)))
|
|
1462
|
+
return p;
|
|
1463
|
+
if (Wt(t))
|
|
1453
1464
|
return;
|
|
1454
|
-
const O = t &&
|
|
1455
|
-
if (
|
|
1465
|
+
const O = t && G(t) ? zt(e, t, n) : void 0, P = v(t) || b(t), j = $e(e, t, n) && Ns(r, o, c);
|
|
1466
|
+
if (j && O)
|
|
1456
1467
|
return O;
|
|
1457
|
-
if (
|
|
1468
|
+
if (en(t, n))
|
|
1458
1469
|
return O ?? A;
|
|
1459
|
-
const
|
|
1470
|
+
const k = Zt(
|
|
1460
1471
|
e,
|
|
1461
1472
|
t,
|
|
1462
1473
|
n,
|
|
1463
|
-
|
|
1474
|
+
I
|
|
1464
1475
|
);
|
|
1465
|
-
if (
|
|
1466
|
-
return
|
|
1467
|
-
if ((
|
|
1476
|
+
if (k !== void 0)
|
|
1477
|
+
return Qt(k);
|
|
1478
|
+
if ((nn(e, t) || Js(e, t)) && At(e, t, n))
|
|
1468
1479
|
return d;
|
|
1469
|
-
if (!
|
|
1470
|
-
return
|
|
1471
|
-
if (!(!
|
|
1472
|
-
return
|
|
1480
|
+
if (!j && Hs(e, t) && At(e, t, n))
|
|
1481
|
+
return g;
|
|
1482
|
+
if (!(!j && !P))
|
|
1483
|
+
return Ms(t, n) ? A : P ? O ?? Tn : Vn;
|
|
1473
1484
|
}, "resolveTreeGridStateBackgroundColor"), ne = /* @__PURE__ */ s((e, t) => {
|
|
1474
1485
|
const n = e.split(/\s+/).filter(Boolean);
|
|
1475
1486
|
return n.includes(t) ? e : [...n, t].join(" ");
|
|
1476
|
-
}, "appendTreeGridClassToken"),
|
|
1477
|
-
if (!
|
|
1487
|
+
}, "appendTreeGridClassToken"), Ks = /* @__PURE__ */ s((e) => e && e.split(/\s+/).filter((t) => t && !Wn.has(t)).join(" "), "stripTreeGridNativeRowStateClassTokens"), zs = /* @__PURE__ */ s((e, t, n, r) => !$e(e, t, n) || !t ? r : ne(r, Ln), "appendTreeGridErrorCellDisplayClass"), Ys = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1488
|
+
if (!G(t) || Wt(t) || !v(t) && !b(t) || nn(e, t) || Z(e, t, n))
|
|
1478
1489
|
return r;
|
|
1479
|
-
const o =
|
|
1490
|
+
const o = hs(e);
|
|
1480
1491
|
if (!o.columnSet.has(n))
|
|
1481
1492
|
return r;
|
|
1482
|
-
let c = ne(r,
|
|
1483
|
-
return n === o.firstColumn && (c = ne(c,
|
|
1484
|
-
}, "appendTreeGridAddedRowBoxDisplayClass"),
|
|
1485
|
-
const o =
|
|
1493
|
+
let c = ne(r, wn);
|
|
1494
|
+
return n === o.firstColumn && (c = ne(c, In)), n === o.lastColumn && (c = ne(c, xn)), c;
|
|
1495
|
+
}, "appendTreeGridAddedRowBoxDisplayClass"), qs = /* @__PURE__ */ s((e, t, n, r) => {
|
|
1496
|
+
const o = Ks(r), c = zs(e, t, n, o), d = Ys(
|
|
1486
1497
|
e,
|
|
1487
1498
|
t,
|
|
1488
1499
|
n,
|
|
@@ -1490,36 +1501,36 @@ ${e.slice(
|
|
|
1490
1501
|
);
|
|
1491
1502
|
if (!Z(e, t, n))
|
|
1492
1503
|
return d === r ? void 0 : d;
|
|
1493
|
-
const
|
|
1494
|
-
return
|
|
1495
|
-
}, "resolveTreeGridCellDisplayClass"),
|
|
1496
|
-
const n = t.filter(
|
|
1504
|
+
const f = vs(d) ?? d;
|
|
1505
|
+
return f === r ? void 0 : f;
|
|
1506
|
+
}, "resolveTreeGridCellDisplayClass"), rn = /* @__PURE__ */ s((e) => G(e) && (v(e) || b(e)), "isTreeGridAddedRowBoxDisplayRow"), _t = /* @__PURE__ */ s((e, t) => {
|
|
1507
|
+
const n = t.filter(rn);
|
|
1497
1508
|
n.length && M(e, n);
|
|
1498
|
-
}, "scheduleTreeGridAddedRowBoxRowsRefresh"),
|
|
1499
|
-
M(e,
|
|
1500
|
-
}, "scheduleTreeGridAddedRowBoxRowsRefreshAll"),
|
|
1509
|
+
}, "scheduleTreeGridAddedRowBoxRowsRefresh"), Zs = /* @__PURE__ */ s((e) => {
|
|
1510
|
+
M(e, H(e).filter(rn));
|
|
1511
|
+
}, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), ao = /* @__PURE__ */ s((e) => {
|
|
1501
1512
|
if (!e)
|
|
1502
1513
|
return !1;
|
|
1503
1514
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
1504
1515
|
let t = e.GetFirst();
|
|
1505
1516
|
for (; t; ) {
|
|
1506
|
-
if (
|
|
1517
|
+
if (G(t))
|
|
1507
1518
|
return !0;
|
|
1508
1519
|
t = e.GetNext(t);
|
|
1509
1520
|
}
|
|
1510
1521
|
return !1;
|
|
1511
1522
|
}
|
|
1512
|
-
return Object.values(e.Rows ?? {}).some((t) =>
|
|
1513
|
-
}, "hasTreeGridDisplayDataRows"),
|
|
1523
|
+
return Object.values(e.Rows ?? {}).some((t) => G(t));
|
|
1524
|
+
}, "hasTreeGridDisplayDataRows"), To = /* @__PURE__ */ s((e, t, n) => {
|
|
1514
1525
|
var o;
|
|
1515
|
-
|
|
1526
|
+
L(e);
|
|
1516
1527
|
const r = (o = e.Data) == null ? void 0 : o.Data;
|
|
1517
1528
|
e.Data.Data = {
|
|
1518
1529
|
...r,
|
|
1519
1530
|
Data: { Body: [t || []] },
|
|
1520
1531
|
Url: ""
|
|
1521
1532
|
}, e.ReloadBody(n);
|
|
1522
|
-
}, "replaceTreeGridBodyData"),
|
|
1533
|
+
}, "replaceTreeGridBodyData"), So = /* @__PURE__ */ s(({
|
|
1523
1534
|
id: e,
|
|
1524
1535
|
latestEventHandlersRef: t,
|
|
1525
1536
|
layoutHasExplicitEnterModeRef: n,
|
|
@@ -1527,362 +1538,376 @@ ${e.slice(
|
|
|
1527
1538
|
highlightChangedCellsRef: o,
|
|
1528
1539
|
syncDeletedRowCanEditRef: c,
|
|
1529
1540
|
editableCellBackgroundColorValueRef: d,
|
|
1530
|
-
changedCellBackgroundColorRef:
|
|
1541
|
+
changedCellBackgroundColorRef: f,
|
|
1531
1542
|
changedRowBackgroundColorRef: T,
|
|
1532
|
-
focusedRowBackgroundColorRef:
|
|
1543
|
+
focusedRowBackgroundColorRef: p,
|
|
1533
1544
|
focusedCellBackgroundColorRef: A,
|
|
1534
|
-
selectedCellBackgroundColorRef:
|
|
1535
|
-
hoverCellBackgroundColorRef:
|
|
1545
|
+
selectedCellBackgroundColorRef: g,
|
|
1546
|
+
hoverCellBackgroundColorRef: I,
|
|
1536
1547
|
hoverCellBorderColorRef: O,
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1548
|
+
editingCellBorderColorRef: P,
|
|
1549
|
+
hintBackgroundColorRef: j,
|
|
1550
|
+
changedCellBaselineRef: k,
|
|
1551
|
+
treeGridInstanceRef: Ne,
|
|
1552
|
+
treeGridInitStartedAtRef: Be,
|
|
1553
|
+
latestLayoutOverridesRef: sn,
|
|
1541
1554
|
latestToolbarTotalCountFormulaRef: ce,
|
|
1542
|
-
latestSuppressCfgRef:
|
|
1555
|
+
latestSuppressCfgRef: Fe,
|
|
1543
1556
|
latestHideChildHeaderSortButtonsRef: le,
|
|
1544
|
-
latestSelectionScopeRef:
|
|
1545
|
-
latestDisabledAnimationsRef:
|
|
1546
|
-
appliedLayoutOverridesRef:
|
|
1547
|
-
appliedBodyDataPropRef:
|
|
1548
|
-
hasAppliedInitialLayoutRef:
|
|
1549
|
-
syncHasDisplayDataRows:
|
|
1550
|
-
setIsTreeGridReady:
|
|
1551
|
-
setCanRenderTreeGridOverlays:
|
|
1552
|
-
setHasTreeGridSizeError:
|
|
1553
|
-
showErrorTooltip:
|
|
1554
|
-
hideErrorTooltip:
|
|
1557
|
+
latestSelectionScopeRef: on,
|
|
1558
|
+
latestDisabledAnimationsRef: Me,
|
|
1559
|
+
appliedLayoutOverridesRef: cn,
|
|
1560
|
+
appliedBodyDataPropRef: ln,
|
|
1561
|
+
hasAppliedInitialLayoutRef: ke,
|
|
1562
|
+
syncHasDisplayDataRows: V,
|
|
1563
|
+
setIsTreeGridReady: dn,
|
|
1564
|
+
setCanRenderTreeGridOverlays: Ve,
|
|
1565
|
+
setHasTreeGridSizeError: Xe,
|
|
1566
|
+
showErrorTooltip: un,
|
|
1567
|
+
hideErrorTooltip: D
|
|
1555
1568
|
}) => {
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1569
|
+
const _ = t.current, x = /* @__PURE__ */ s((i, l = !1) => {
|
|
1570
|
+
As(
|
|
1558
1571
|
i,
|
|
1559
1572
|
ce.current,
|
|
1560
1573
|
l
|
|
1561
1574
|
);
|
|
1562
1575
|
}, "refreshToolbarTotalCount");
|
|
1563
1576
|
if (window.TGSetEvent("OnRowAdd", e, (i, l) => {
|
|
1564
|
-
var
|
|
1565
|
-
|
|
1577
|
+
var u, a;
|
|
1578
|
+
L(i), l.CanEdit = 1, l.CanDelete = 1, (a = (u = t.current) == null ? void 0 : u.onRowAdd) == null || a.call(u, i, l);
|
|
1566
1579
|
}), window.TGSetEvent("OnRowAdded", e, (i) => {
|
|
1567
|
-
|
|
1580
|
+
L(i), V(i), x(i);
|
|
1568
1581
|
}), window.TGSetEvent("OnRowRemove", e, (i) => {
|
|
1569
|
-
|
|
1582
|
+
L(i), D(), V(i), x(i, !0);
|
|
1570
1583
|
}), window.TGSetEvent("OnColShow", e, (i) => {
|
|
1571
|
-
U(i), X(i),
|
|
1584
|
+
U(i), X(i), $(i);
|
|
1572
1585
|
}), window.TGSetEvent("OnAfterColumnsChanged", e, (i) => {
|
|
1573
|
-
U(i), X(i),
|
|
1586
|
+
U(i), X(i), $(i);
|
|
1574
1587
|
}), window.TGSetEvent("OnColMove", e, (i) => {
|
|
1575
|
-
U(i), X(i),
|
|
1588
|
+
U(i), X(i), $(i);
|
|
1576
1589
|
}), window.TGSetEvent("OnColsAdd", e, (i) => {
|
|
1577
|
-
U(i), X(i),
|
|
1590
|
+
U(i), X(i), $(i);
|
|
1578
1591
|
}), window.TGSetEvent("OnColDelete", e, (i) => {
|
|
1579
|
-
U(i), X(i),
|
|
1592
|
+
U(i), X(i), $(i);
|
|
1580
1593
|
}), window.TGSetEvent("OnColUndelete", e, (i) => {
|
|
1581
|
-
U(i), X(i),
|
|
1582
|
-
}), window.TGSetEvent("OnMouseOver", e, (i, l,
|
|
1583
|
-
const R =
|
|
1594
|
+
U(i), X(i), $(i);
|
|
1595
|
+
}), window.TGSetEvent("OnMouseOver", e, (i, l, u, a, S, E) => {
|
|
1596
|
+
const R = we(i, l, u);
|
|
1584
1597
|
if (!R) {
|
|
1585
|
-
|
|
1598
|
+
D();
|
|
1586
1599
|
return;
|
|
1587
1600
|
}
|
|
1588
|
-
const h =
|
|
1601
|
+
const h = Fs(E);
|
|
1589
1602
|
if (!h) {
|
|
1590
|
-
|
|
1603
|
+
D();
|
|
1591
1604
|
return;
|
|
1592
1605
|
}
|
|
1593
|
-
i.HideTip(),
|
|
1594
|
-
}), window.TGSetEvent("OnFocus", e, (i, l,
|
|
1595
|
-
|
|
1606
|
+
i.HideTip(), un({ anchorEl: h, row: l, col: u, message: R });
|
|
1607
|
+
}), window.TGSetEvent("OnFocus", e, (i, l, u, a) => {
|
|
1608
|
+
rt(i, !0), l !== a && _t(i, [l, a]), Ct(i, [l, a]);
|
|
1596
1609
|
}), window.TGSetEvent("OnBlur", e, (i, l) => {
|
|
1597
|
-
|
|
1598
|
-
}), window.TGSetEvent("OnTip", e, (i, l,
|
|
1599
|
-
var
|
|
1600
|
-
if (
|
|
1601
|
-
return
|
|
1602
|
-
const a = (
|
|
1610
|
+
rt(i, !1), Ct(i, [l, i.FRow]);
|
|
1611
|
+
}), window.TGSetEvent("OnTip", e, (i, l, u, a) => we(i, l, u) ? "" : a), window.TGSetEvent("OnCanRowDelete", e, (i, l, u) => {
|
|
1612
|
+
var E;
|
|
1613
|
+
if (u !== 3)
|
|
1614
|
+
return u;
|
|
1615
|
+
const a = (E = t.current) == null ? void 0 : E.onBeforeRowUndelete;
|
|
1603
1616
|
if (typeof a != "function")
|
|
1604
|
-
return
|
|
1617
|
+
return u;
|
|
1605
1618
|
const S = /* @__PURE__ */ s((R) => {
|
|
1606
1619
|
window.setTimeout(() => {
|
|
1607
|
-
|
|
1608
|
-
|
|
1620
|
+
fs(
|
|
1621
|
+
Ne.current ?? i,
|
|
1609
1622
|
l,
|
|
1610
1623
|
R,
|
|
1611
|
-
|
|
1612
|
-
|
|
1624
|
+
V,
|
|
1625
|
+
x
|
|
1613
1626
|
);
|
|
1614
1627
|
}, 0);
|
|
1615
1628
|
}, "scheduleAction");
|
|
1616
1629
|
try {
|
|
1617
1630
|
const R = a(i, l);
|
|
1618
|
-
return
|
|
1631
|
+
return ds(R) ? (R.then(S).catch(() => {
|
|
1619
1632
|
S("undelete");
|
|
1620
1633
|
}), 0) : (S(R), 0);
|
|
1621
1634
|
} catch {
|
|
1622
1635
|
return S("undelete"), 0;
|
|
1623
1636
|
}
|
|
1624
|
-
}), typeof (
|
|
1625
|
-
const i = de((l,
|
|
1626
|
-
var h,
|
|
1627
|
-
(
|
|
1637
|
+
}), typeof (_ == null ? void 0 : _.onRowClick) == "function" || typeof (_ == null ? void 0 : _.onInternalCellClick) == "function") {
|
|
1638
|
+
const i = de((l, u, a, S, E, R) => {
|
|
1639
|
+
var h, w;
|
|
1640
|
+
(w = (h = t.current) == null ? void 0 : h.onRowClick) == null || w.call(
|
|
1628
1641
|
h,
|
|
1629
1642
|
l,
|
|
1630
|
-
|
|
1643
|
+
u,
|
|
1631
1644
|
a,
|
|
1632
1645
|
S,
|
|
1633
|
-
|
|
1646
|
+
E,
|
|
1634
1647
|
R
|
|
1635
1648
|
);
|
|
1636
1649
|
}, 300);
|
|
1637
|
-
window.TGSetEvent("OnClick", e, (l,
|
|
1638
|
-
var
|
|
1639
|
-
const h = (
|
|
1640
|
-
|
|
1650
|
+
window.TGSetEvent("OnClick", e, (l, u, a, S, E, R) => {
|
|
1651
|
+
var w, Je, He;
|
|
1652
|
+
const h = (Je = (w = t.current) == null ? void 0 : w.onInternalCellClick) == null ? void 0 : Je.call(
|
|
1653
|
+
w,
|
|
1641
1654
|
l,
|
|
1642
|
-
|
|
1655
|
+
u,
|
|
1643
1656
|
a,
|
|
1644
1657
|
S,
|
|
1645
|
-
|
|
1658
|
+
E,
|
|
1646
1659
|
R
|
|
1647
1660
|
);
|
|
1648
1661
|
if (h !== void 0)
|
|
1649
1662
|
return h;
|
|
1650
|
-
typeof ((
|
|
1663
|
+
typeof ((He = t.current) == null ? void 0 : He.onRowClick) == "function" && i(l, u, a, S, E, R);
|
|
1651
1664
|
});
|
|
1652
1665
|
}
|
|
1653
|
-
(typeof (
|
|
1666
|
+
(typeof (_ == null ? void 0 : _.onClickButton) == "function" || typeof (_ == null ? void 0 : _.onInternalButtonClick) == "function") && window.TGSetEvent(
|
|
1654
1667
|
"OnClickButton",
|
|
1655
1668
|
e,
|
|
1656
|
-
(i, l,
|
|
1657
|
-
var
|
|
1658
|
-
const S = (R = (
|
|
1659
|
-
|
|
1669
|
+
(i, l, u, a) => {
|
|
1670
|
+
var E, R, h, w;
|
|
1671
|
+
const S = (R = (E = t.current) == null ? void 0 : E.onInternalButtonClick) == null ? void 0 : R.call(
|
|
1672
|
+
E,
|
|
1660
1673
|
i,
|
|
1661
1674
|
l,
|
|
1662
|
-
|
|
1675
|
+
u,
|
|
1663
1676
|
a
|
|
1664
1677
|
);
|
|
1665
1678
|
if (S !== void 0)
|
|
1666
1679
|
return S;
|
|
1667
|
-
(
|
|
1680
|
+
(w = (h = t.current) == null ? void 0 : h.onClickButton) == null || w.call(
|
|
1668
1681
|
h,
|
|
1669
1682
|
i,
|
|
1670
1683
|
l,
|
|
1671
|
-
|
|
1684
|
+
u,
|
|
1672
1685
|
a
|
|
1673
1686
|
);
|
|
1674
1687
|
}
|
|
1675
|
-
), typeof (
|
|
1688
|
+
), typeof (_ == null ? void 0 : _.onInternalKeyDown) == "function" && (window.TGSetEvent(
|
|
1676
1689
|
"OnKeyDown",
|
|
1677
1690
|
e,
|
|
1678
|
-
(i, l,
|
|
1679
|
-
var
|
|
1680
|
-
return (R = (
|
|
1691
|
+
(i, l, u, a, S) => {
|
|
1692
|
+
var E, R;
|
|
1693
|
+
return (R = (E = t.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : R.call(E, i, l, u, a, S);
|
|
1681
1694
|
}
|
|
1682
1695
|
), window.TGSetEvent(
|
|
1683
1696
|
"OnKeyPress",
|
|
1684
1697
|
e,
|
|
1685
|
-
(i, l,
|
|
1686
|
-
var
|
|
1687
|
-
return (R = (
|
|
1698
|
+
(i, l, u, a, S) => {
|
|
1699
|
+
var E, R;
|
|
1700
|
+
return (R = (E = t.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : R.call(E, i, l, u, a, S);
|
|
1688
1701
|
}
|
|
1689
|
-
)), window.TGSetEvent("OnStartEdit", e, (i, l,
|
|
1702
|
+
)), window.TGSetEvent("OnStartEdit", e, (i, l, u) => {
|
|
1690
1703
|
var a, S;
|
|
1691
|
-
return
|
|
1704
|
+
return D(), (S = (a = t.current) == null ? void 0 : a.onInternalStartEdit) == null ? void 0 : S.call(
|
|
1692
1705
|
a,
|
|
1693
1706
|
i,
|
|
1694
1707
|
l,
|
|
1695
|
-
|
|
1708
|
+
u
|
|
1696
1709
|
);
|
|
1697
|
-
}), window.TGSetEvent("
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1710
|
+
}), window.TGSetEvent("OnEndEdit", e, (i, l, u) => {
|
|
1711
|
+
tn(i, l, u) && window.setTimeout(() => {
|
|
1712
|
+
i.RefreshCell(l, u);
|
|
1713
|
+
}, 0);
|
|
1714
|
+
}), window.TGSetEvent("OnMenu", e, (i, l, u, a) => {
|
|
1715
|
+
Vs(i, l, u, a);
|
|
1716
|
+
}), window.TGSetEvent("OnRowDelete", e, (i, l, u) => {
|
|
1717
|
+
var h, w;
|
|
1718
|
+
L(i), D(), Bs(i, l), i.SelectRow(l, 0);
|
|
1719
|
+
const a = b(l), S = a ? Te(l) : [], E = a ? je(l) : [], R = c.current !== !1;
|
|
1720
|
+
Tt(i, l, {
|
|
1702
1721
|
canEdit: R ? 2 : void 0,
|
|
1703
|
-
editableColumns:
|
|
1704
|
-
editableCanEdit: R &&
|
|
1722
|
+
editableColumns: E,
|
|
1723
|
+
editableCanEdit: R && E.length ? 2 : void 0,
|
|
1705
1724
|
highlightColumns: S
|
|
1706
|
-
}),
|
|
1725
|
+
}), V(i), x(i), (w = (h = t.current) == null ? void 0 : h.onRowDelete) == null || w.call(
|
|
1707
1726
|
h,
|
|
1708
1727
|
i,
|
|
1709
1728
|
l,
|
|
1710
|
-
|
|
1729
|
+
u
|
|
1711
1730
|
);
|
|
1712
1731
|
}), window.TGSetEvent("OnRowUndelete", e, (i, l) => {
|
|
1713
1732
|
var R, h;
|
|
1714
|
-
|
|
1715
|
-
const
|
|
1716
|
-
|
|
1717
|
-
canEdit:
|
|
1733
|
+
L(i), D();
|
|
1734
|
+
const u = b(l), a = u ? Te(l) : [], S = u ? je(l) : [], E = c.current !== !1;
|
|
1735
|
+
Tt(i, l, {
|
|
1736
|
+
canEdit: E ? 1 : void 0,
|
|
1718
1737
|
editableColumns: S,
|
|
1719
|
-
editableCanEdit:
|
|
1738
|
+
editableCanEdit: E && S.length ? 1 : void 0,
|
|
1720
1739
|
highlightColumns: a,
|
|
1721
|
-
highlightBackgroundColor: a.length ?
|
|
1722
|
-
}),
|
|
1723
|
-
}), window.TGSetEvent("OnGetDefaultColor", e, (i, l,
|
|
1724
|
-
if (!(!r.current || !
|
|
1725
|
-
return
|
|
1740
|
+
highlightBackgroundColor: a.length ? f.current : void 0
|
|
1741
|
+
}), V(i), x(i), (h = (R = t.current) == null ? void 0 : R.onRowUndelete) == null || h.call(R, i, l);
|
|
1742
|
+
}), window.TGSetEvent("OnGetDefaultColor", e, (i, l, u) => {
|
|
1743
|
+
if (!(!r.current || !G(l)))
|
|
1744
|
+
return Zt(
|
|
1726
1745
|
i,
|
|
1727
1746
|
l,
|
|
1728
|
-
|
|
1747
|
+
u,
|
|
1729
1748
|
d.current
|
|
1730
1749
|
);
|
|
1731
|
-
}), window.TGSetEvent("OnGetColor", e, (i, l,
|
|
1750
|
+
}), window.TGSetEvent("OnGetColor", e, (i, l, u, a, S, E, R) => {
|
|
1732
1751
|
if (!R)
|
|
1733
|
-
return
|
|
1752
|
+
return js({
|
|
1734
1753
|
grid: i,
|
|
1735
1754
|
row: l,
|
|
1736
|
-
col:
|
|
1755
|
+
col: u,
|
|
1737
1756
|
r: a,
|
|
1738
1757
|
g: S,
|
|
1739
|
-
b:
|
|
1740
|
-
focusedRowBackgroundColor:
|
|
1758
|
+
b: E,
|
|
1759
|
+
focusedRowBackgroundColor: p.current,
|
|
1741
1760
|
focusedCellBackgroundColor: A.current,
|
|
1742
|
-
selectedCellBackgroundColor:
|
|
1743
|
-
hoverCellBackgroundColor:
|
|
1744
|
-
changedCellBackgroundColor:
|
|
1761
|
+
selectedCellBackgroundColor: g.current,
|
|
1762
|
+
hoverCellBackgroundColor: I.current,
|
|
1763
|
+
changedCellBackgroundColor: f.current,
|
|
1745
1764
|
changedRowBackgroundColor: T.current,
|
|
1746
1765
|
editableCellBackgroundColorValue: d.current
|
|
1747
1766
|
});
|
|
1748
1767
|
}), window.TGSetEvent("OnHint", e, () => {
|
|
1749
|
-
|
|
1750
|
-
|
|
1768
|
+
ue(
|
|
1769
|
+
hn,
|
|
1751
1770
|
O.current
|
|
1771
|
+
), ue(
|
|
1772
|
+
An,
|
|
1773
|
+
P.current
|
|
1774
|
+
), ue(
|
|
1775
|
+
_n,
|
|
1776
|
+
j.current
|
|
1752
1777
|
);
|
|
1753
|
-
}), window.TGSetEvent("OnGetClass", e, (i, l,
|
|
1754
|
-
var
|
|
1755
|
-
if (
|
|
1756
|
-
const h = !
|
|
1757
|
-
|
|
1778
|
+
}), window.TGSetEvent("OnGetClass", e, (i, l, u, a) => qs(i, l, u, typeof a == "string" ? a : "")), window.TGSetEvent("OnAfterValueChanged", e, (i, l, u, a) => {
|
|
1779
|
+
var E, R;
|
|
1780
|
+
if (D(), o.current && G(l)) {
|
|
1781
|
+
const h = !ks(i, l, u) || Z(i, l, u) && !ve(i, l, u);
|
|
1782
|
+
ys({
|
|
1758
1783
|
gridId: e,
|
|
1759
1784
|
grid: i,
|
|
1760
1785
|
row: l,
|
|
1761
|
-
col:
|
|
1762
|
-
backgroundColor:
|
|
1763
|
-
baselineMap:
|
|
1786
|
+
col: u,
|
|
1787
|
+
backgroundColor: f.current,
|
|
1788
|
+
baselineMap: k.current,
|
|
1764
1789
|
highlightRefresh: h
|
|
1765
1790
|
});
|
|
1766
1791
|
}
|
|
1767
|
-
const S = ((
|
|
1768
|
-
S == null || S(i, l,
|
|
1792
|
+
const S = ((E = t.current) == null ? void 0 : E.onAfterValueChanged) ?? ((R = t.current) == null ? void 0 : R.onRowChange);
|
|
1793
|
+
S == null || S(i, l, u, a);
|
|
1769
1794
|
});
|
|
1770
|
-
const
|
|
1795
|
+
const We = de((i) => {
|
|
1771
1796
|
var a, S;
|
|
1772
|
-
const l = i.GetSelRows() ?? [],
|
|
1773
|
-
selectionScope:
|
|
1797
|
+
const l = i.GetSelRows() ?? [], u = Cn(i, l, {
|
|
1798
|
+
selectionScope: on.current
|
|
1774
1799
|
});
|
|
1775
1800
|
(S = (a = t.current) == null ? void 0 : a.onSelect) == null || S.call(
|
|
1776
1801
|
a,
|
|
1777
|
-
|
|
1802
|
+
Sn(i, u)
|
|
1778
1803
|
);
|
|
1779
1804
|
}, 100);
|
|
1780
|
-
window.TGSetEvent("OnSelect", e, (i, l,
|
|
1805
|
+
window.TGSetEvent("OnSelect", e, (i, l, u, a, S) => {
|
|
1781
1806
|
var R;
|
|
1782
1807
|
if (S)
|
|
1783
1808
|
return;
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
}), window.TGSetEvent("OnSelectAll", e, (i, l,
|
|
1809
|
+
const E = ms(i);
|
|
1810
|
+
Ps(i, l), _t(i, [l]), M(i, E), $s(i, l), ft(i, e), typeof ((R = t.current) == null ? void 0 : R.onSelect) == "function" && We(i);
|
|
1811
|
+
}), window.TGSetEvent("OnSelectAll", e, (i, l, u, a) => {
|
|
1787
1812
|
var S;
|
|
1788
|
-
a || (
|
|
1789
|
-
}), typeof (
|
|
1813
|
+
a || (Us(i), Zs(i), ft(i, e), typeof ((S = t.current) == null ? void 0 : S.onSelect) == "function" && We(i));
|
|
1814
|
+
}), typeof (_ == null ? void 0 : _.onSave) == "function" && window.TGSetEvent("OnSave", e, (i, l, u) => {
|
|
1790
1815
|
var a, S;
|
|
1791
1816
|
(S = (a = t.current) == null ? void 0 : a.onSave) == null || S.call(
|
|
1792
1817
|
a,
|
|
1793
1818
|
i,
|
|
1794
1819
|
l,
|
|
1795
|
-
|
|
1820
|
+
u
|
|
1796
1821
|
);
|
|
1797
1822
|
}), window.TGSetEvent("OnSort", e, (i, l) => {
|
|
1798
|
-
var
|
|
1799
|
-
if (!(!l || !
|
|
1823
|
+
var u;
|
|
1824
|
+
if (!(!l || !ps(
|
|
1800
1825
|
i,
|
|
1801
1826
|
i.ARow,
|
|
1802
1827
|
l,
|
|
1803
1828
|
le.current !== !1
|
|
1804
1829
|
)))
|
|
1805
|
-
return
|
|
1806
|
-
rowId: (
|
|
1830
|
+
return wt(e, "group header sort blocked"), bn(e, "group header sort blocked", {
|
|
1831
|
+
rowId: (u = i.ARow) == null ? void 0 : u.id,
|
|
1807
1832
|
col: l
|
|
1808
1833
|
}), -1;
|
|
1809
1834
|
}), window.TGSetEvent("OnSortFinish", e, (i) => {
|
|
1810
|
-
|
|
1835
|
+
L(i);
|
|
1811
1836
|
}), window.TGSetEvent("OnFilterFinish", e, (i) => {
|
|
1812
|
-
|
|
1837
|
+
L(i), x(i);
|
|
1813
1838
|
}), window.TGSetEvent("OnGroupFinish", e, (i) => {
|
|
1814
|
-
|
|
1839
|
+
L(i);
|
|
1815
1840
|
}), window.TGSetEvent("OnSearchFinish", e, (i) => {
|
|
1816
|
-
|
|
1841
|
+
L(i), x(i);
|
|
1817
1842
|
}), window.TGSetEvent("OnUndo", e, (i, l) => {
|
|
1818
|
-
|
|
1843
|
+
tt.has(l) && x(i);
|
|
1819
1844
|
}), window.TGSetEvent("OnRedo", e, (i, l) => {
|
|
1820
|
-
|
|
1845
|
+
tt.has(l) && x(i);
|
|
1821
1846
|
}), window.TGSetEvent("OnRenderStart", e, (i) => {
|
|
1822
|
-
|
|
1847
|
+
L(i), $(i), Ae(i, e), pt(
|
|
1823
1848
|
i,
|
|
1824
1849
|
e,
|
|
1825
1850
|
!1,
|
|
1826
1851
|
le.current !== !1
|
|
1827
1852
|
);
|
|
1828
1853
|
}), window.TGSetEvent("OnRenderFinish", e, (i) => {
|
|
1829
|
-
|
|
1854
|
+
Xe((l) => l && !1), Ve((l) => l || !0), Ae(i, e);
|
|
1830
1855
|
}), window.TGSetEvent("OnSizeError", e, () => {
|
|
1831
|
-
|
|
1832
|
-
}), window.TGSetEvent("OnDataGet", e, (i, l,
|
|
1833
|
-
if ((l == null ? void 0 : l.Name) === "Layout" && typeof
|
|
1834
|
-
n.current =
|
|
1835
|
-
const a =
|
|
1836
|
-
|
|
1837
|
-
|
|
1856
|
+
D(), Ve((i) => i && !1), Xe((i) => i || !0);
|
|
1857
|
+
}), window.TGSetEvent("OnDataGet", e, (i, l, u) => {
|
|
1858
|
+
if ((l == null ? void 0 : l.Name) === "Layout" && typeof u == "string") {
|
|
1859
|
+
n.current = et(u);
|
|
1860
|
+
const a = he(
|
|
1861
|
+
u,
|
|
1862
|
+
Me.current,
|
|
1838
1863
|
ce.current,
|
|
1839
|
-
|
|
1864
|
+
Fe.current
|
|
1840
1865
|
);
|
|
1841
|
-
return a ===
|
|
1866
|
+
return a === u ? null : a;
|
|
1842
1867
|
}
|
|
1843
1868
|
return null;
|
|
1844
|
-
}), window.TGSetEvent("OnDataParse", e, (i, l,
|
|
1845
|
-
if ((l == null ? void 0 : l.Name) === "Layout" && typeof
|
|
1846
|
-
n.current =
|
|
1847
|
-
const a =
|
|
1848
|
-
|
|
1849
|
-
|
|
1869
|
+
}), window.TGSetEvent("OnDataParse", e, (i, l, u) => {
|
|
1870
|
+
if ((l == null ? void 0 : l.Name) === "Layout" && typeof u == "string") {
|
|
1871
|
+
n.current = et(u);
|
|
1872
|
+
const a = he(
|
|
1873
|
+
u,
|
|
1874
|
+
Me.current,
|
|
1850
1875
|
ce.current,
|
|
1851
|
-
|
|
1876
|
+
Fe.current
|
|
1852
1877
|
);
|
|
1853
|
-
return a ===
|
|
1878
|
+
return a === u ? null : a;
|
|
1854
1879
|
}
|
|
1855
1880
|
return null;
|
|
1856
1881
|
}), window.TGSetEvent(
|
|
1857
1882
|
"OnReady",
|
|
1858
1883
|
e,
|
|
1859
1884
|
de((i) => {
|
|
1860
|
-
var l,
|
|
1861
|
-
if (!
|
|
1862
|
-
const a =
|
|
1863
|
-
|
|
1885
|
+
var l, u;
|
|
1886
|
+
if (!ke.current) {
|
|
1887
|
+
const a = sn.current;
|
|
1888
|
+
ke.current = !0, !n.current && (i.EnterMode === void 0 || i.EnterMode === null || i.EnterMode === 0) && is(i, vn), Gn(i, a), Ne.current = i, cn.current = a, ln.current = St(i), k.current = /* @__PURE__ */ new WeakMap(), Is(i, k.current), V(i), dn(!0), pt(
|
|
1864
1889
|
i,
|
|
1865
1890
|
e,
|
|
1866
1891
|
!0,
|
|
1867
1892
|
le.current !== !1
|
|
1868
|
-
),
|
|
1869
|
-
bodyRowCount:
|
|
1870
|
-
|
|
1893
|
+
), Lt(e, "TreeGrid init ready", Be.current, {
|
|
1894
|
+
bodyRowCount: Gs(
|
|
1895
|
+
St(i)
|
|
1871
1896
|
)
|
|
1872
|
-
}),
|
|
1897
|
+
}), Be.current = null, (u = (l = t.current) == null ? void 0 : l.onReady) == null || u.call(l, i);
|
|
1873
1898
|
}
|
|
1874
1899
|
}, 100)
|
|
1875
1900
|
);
|
|
1876
1901
|
}, "bindTreeGridEvents");
|
|
1877
1902
|
export {
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1903
|
+
uo as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
|
|
1904
|
+
So as bindTreeGridEvents,
|
|
1905
|
+
fo as buildTreeGridInitializationOptions,
|
|
1906
|
+
Is as captureTreeGridChangeBaselines,
|
|
1907
|
+
Gs as getTreeGridBodyDataCount,
|
|
1908
|
+
ao as hasTreeGridDisplayDataRows,
|
|
1909
|
+
et as hasTreeGridExplicitEnterMode,
|
|
1910
|
+
To as replaceTreeGridBodyData,
|
|
1911
|
+
ys as syncTreeGridChangedCellHighlight
|
|
1887
1912
|
};
|
|
1888
1913
|
//# sourceMappingURL=treeGridRuntime.js.map
|