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