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