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