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