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