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