@owp/core 2.5.9 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index20.js +2 -2
- package/dist/_virtual/index21.js +2 -2
- package/dist/_virtual/index22.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +195 -147
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js +10 -11
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewControls.js +232 -198
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js +214 -199
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewSettings.js +188 -151
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
- package/dist/features/themePreview.js +18 -17
- package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js +1 -1
- package/dist/node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/features/themePreview/utils/index.d.ts +1 -1
- package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +11 -1
- package/package.json +1 -1
package/dist/_virtual/index10.js
CHANGED
package/dist/_virtual/index12.js
CHANGED
package/dist/_virtual/index13.js
CHANGED
package/dist/_virtual/index14.js
CHANGED
package/dist/_virtual/index15.js
CHANGED
package/dist/_virtual/index20.js
CHANGED
package/dist/_virtual/index21.js
CHANGED
package/dist/_virtual/index22.js
CHANGED
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,86 +1,125 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { getTreeGridTextResourceUrl as
|
|
4
|
-
import { highlightTreeGridCellById as
|
|
5
|
-
import { enqueueSnackbar as
|
|
6
|
-
import { applyTreeGridLayoutToGrid as
|
|
7
|
-
import { resolveTreeGridColumnEditValue as
|
|
8
|
-
import { measureTreeGridPerf as
|
|
9
|
-
import { debounce as
|
|
10
|
-
import { get as
|
|
11
|
-
import { isEmpty as
|
|
12
|
-
const
|
|
1
|
+
var K = Object.defineProperty;
|
|
2
|
+
var f = (e, t) => K(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { getTreeGridTextResourceUrl as Q } from "../../../constants/treeGrid.js";
|
|
4
|
+
import { highlightTreeGridCellById as J } from "../../../utils/treeGridUtil.js";
|
|
5
|
+
import { enqueueSnackbar as X } from "notistack";
|
|
6
|
+
import { applyTreeGridLayoutToGrid as Z } from "./treeGridLayout.js";
|
|
7
|
+
import { resolveTreeGridColumnEditValue as g, resetTreeGridColumnEditRulesState as H, syncTreeGridColumnEditRules as ee } from "./treeGridColumnEditRules.js";
|
|
8
|
+
import { countTreeGridPerf as F, logTreeGridPerf as te, measureTreeGridPerf as k } from "./utils/perf.js";
|
|
9
|
+
import { debounce as b } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
|
|
10
|
+
import { get as ne } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
|
|
11
|
+
import { isEmpty as re } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
12
|
+
const Le = 300, oe = [255, 255, 166], ue = [240, 240, 240], ce = [248, 248, 248], ie = [255, 255, 255], se = [255, 255, 254], fe = [242, 242, 242], U = "Button", P = /* @__PURE__ */ f((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), v = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ f((e) => {
|
|
13
13
|
if (!e || !e.startsWith("data:"))
|
|
14
14
|
return e;
|
|
15
15
|
const t = v.get(e);
|
|
16
16
|
if (t)
|
|
17
17
|
return t;
|
|
18
18
|
try {
|
|
19
|
-
const [n,
|
|
20
|
-
for (let
|
|
21
|
-
l[
|
|
22
|
-
const
|
|
23
|
-
return v.set(e,
|
|
19
|
+
const [n, o = ""] = e.split(",", 2), s = /^data:([^;]*)(;base64)?$/i.exec(n), a = (s == null ? void 0 : s[1]) || "application/octet-stream", p = s != null && s[2] ? atob(o) : decodeURIComponent(o), l = new Uint8Array(p.length);
|
|
20
|
+
for (let C = 0; C < p.length; C += 1)
|
|
21
|
+
l[C] = p.charCodeAt(C);
|
|
22
|
+
const T = URL.createObjectURL(new Blob([l], { type: a }));
|
|
23
|
+
return v.set(e, T), T;
|
|
24
24
|
} catch {
|
|
25
25
|
return e;
|
|
26
26
|
}
|
|
27
|
-
}, "resolveTreeGridInlineUrl"),
|
|
28
|
-
if (!e ||
|
|
29
|
-
return
|
|
30
|
-
const t = e.indexOf("#"), [n,
|
|
31
|
-
return `${n}${
|
|
32
|
-
}, "appendNoCacheQuery"),
|
|
27
|
+
}, "resolveTreeGridInlineUrl"), h = /* @__PURE__ */ f((e) => {
|
|
28
|
+
if (!e || P(e))
|
|
29
|
+
return ae(e);
|
|
30
|
+
const t = e.indexOf("#"), [n, o] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], s = n.includes("?") ? "&" : "?";
|
|
31
|
+
return `${n}${s}noCache=${Date.now()}${o}`;
|
|
32
|
+
}, "appendNoCacheQuery"), de = /* @__PURE__ */ f((e) => e ? P(e) || e.includes("assets") ? h(e) : h(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Ge = /* @__PURE__ */ f((e, t, n) => e ? { Url: de(t) } : { Data: { Body: [re(n) ? [] : n] } }, "buildTreeGridDataSource"), xe = /* @__PURE__ */ f(({
|
|
33
33
|
id: e,
|
|
34
34
|
layoutUrl: t,
|
|
35
35
|
layoutData: n,
|
|
36
|
-
dataUrl:
|
|
37
|
-
bodyData:
|
|
36
|
+
dataUrl: o,
|
|
37
|
+
bodyData: s,
|
|
38
38
|
useDataUrl: a,
|
|
39
|
-
width:
|
|
39
|
+
width: p,
|
|
40
40
|
height: l,
|
|
41
|
-
languageId:
|
|
41
|
+
languageId: T
|
|
42
42
|
}) => ({
|
|
43
43
|
id: e,
|
|
44
|
-
Layout: n ? { Data: n } : { Url:
|
|
45
|
-
Data:
|
|
44
|
+
Layout: n ? { Data: n } : { Url: h(t ?? "") },
|
|
45
|
+
Data: Ge(a, o, s),
|
|
46
46
|
Text: {
|
|
47
|
-
Url:
|
|
47
|
+
Url: Q(T)
|
|
48
48
|
},
|
|
49
|
-
width:
|
|
49
|
+
width: p,
|
|
50
50
|
height: l,
|
|
51
51
|
Debug: "Error"
|
|
52
|
-
}), "buildTreeGridInitializationOptions"),
|
|
52
|
+
}), "buildTreeGridInitializationOptions"), L = /* @__PURE__ */ f((e) => ne(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), x = /* @__PURE__ */ f((e) => {
|
|
53
|
+
if (typeof e == "number")
|
|
54
|
+
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
55
|
+
if (typeof e != "string")
|
|
56
|
+
return;
|
|
57
|
+
const t = e.trim();
|
|
58
|
+
if (!t)
|
|
59
|
+
return;
|
|
60
|
+
const n = Number(t);
|
|
61
|
+
return Number.isFinite(n) && n > 0 ? n : void 0;
|
|
62
|
+
}, "parseTreeGridPositiveNumber"), N = /* @__PURE__ */ f((e, t, n, o) => {
|
|
63
|
+
if (!t || !n)
|
|
64
|
+
return;
|
|
65
|
+
const s = e.GetAttribute(t, n, o), a = x(s);
|
|
66
|
+
return a !== void 0 ? a : x(
|
|
67
|
+
t[`${n}${o}`]
|
|
68
|
+
);
|
|
69
|
+
}, "getTreeGridHeaderCellSpanAttribute"), $ = /* @__PURE__ */ f((e, t, n) => !t || !n || t.Fixed !== "Head" || (N(e, t, n, "Span") ?? 1) <= 1 ? !1 : (N(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), V = /* @__PURE__ */ f((e, t, n = !1) => {
|
|
70
|
+
const o = typeof performance < "u" ? performance.now() : Date.now(), s = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((T) => T.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
|
|
71
|
+
if (!s.length || !a.length)
|
|
72
|
+
return;
|
|
73
|
+
const p = /* @__PURE__ */ new Set();
|
|
74
|
+
let l = 0;
|
|
75
|
+
typeof e.StartUpdate == "function" && e.StartUpdate();
|
|
76
|
+
try {
|
|
77
|
+
s.forEach((T) => {
|
|
78
|
+
a.forEach((C) => {
|
|
79
|
+
$(e, T, C) && e.GetAttribute(T, C, U) !== "" && (e.SetAttribute(T, C, U, "", 0, 0), p.add(T), l += 1);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
} finally {
|
|
83
|
+
typeof e.EndUpdate == "function" && e.EndUpdate();
|
|
84
|
+
}
|
|
85
|
+
p.size && (n && p.forEach((T) => {
|
|
86
|
+
typeof e.RefreshRow == "function" && e.RefreshRow(T);
|
|
87
|
+
}), F(t, "group header button attribute apply"), k(t, "group header button attribute apply", o, {
|
|
88
|
+
updatedCellCount: l,
|
|
89
|
+
updatedRowCount: p.size
|
|
90
|
+
}));
|
|
91
|
+
}, "applyTreeGridGroupHeaderSortButtonAttributes"), Te = /* @__PURE__ */ f((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), pe = /* @__PURE__ */ f((e) => {
|
|
53
92
|
const t = e == null ? void 0 : e.Visible;
|
|
54
93
|
return !!e && t !== 0 && t !== !1 && t !== "0";
|
|
55
|
-
}, "isVisibleTreeGridRow"),
|
|
94
|
+
}, "isVisibleTreeGridRow"), Re = /* @__PURE__ */ f((e) => {
|
|
56
95
|
const t = e == null ? void 0 : e.Added;
|
|
57
96
|
return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
|
|
58
|
-
}, "isAddedTreeGridRow"), E = /* @__PURE__ */
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
}, "hasExplicitTreeGridCellColor"),
|
|
62
|
-
if (!(!t ||
|
|
63
|
-
return
|
|
64
|
-
}, "getEditableTreeGridCellDefaultColor"),
|
|
97
|
+
}, "isAddedTreeGridRow"), E = /* @__PURE__ */ f((e) => !e || e.Fixed === "Foot" || !pe(e) ? !1 : e.Kind === "Data" || Re(e), "isDisplayTreeGridRow"), le = /* @__PURE__ */ f((e, t, n) => !t || !n || !E(t) ? !1 : e.CanEdit(t, n) === 1, "isEditableTreeGridCell"), Ce = /* @__PURE__ */ f((e, t, n) => {
|
|
98
|
+
const o = e.GetAttribute(t, n, "Color");
|
|
99
|
+
return o != null && o !== "";
|
|
100
|
+
}, "hasExplicitTreeGridCellColor"), Se = /* @__PURE__ */ f((e, t, n, o) => {
|
|
101
|
+
if (!(!t || o === void 0 || !le(e, t, n) || Ce(e, t, n)))
|
|
102
|
+
return o;
|
|
103
|
+
}, "getEditableTreeGridCellDefaultColor"), y = /* @__PURE__ */ f((e, t, n, o) => e === o[0] && t === o[1] && n === o[2], "matchesTreeGridRgbColor"), Ee = /* @__PURE__ */ f((e, t, n) => {
|
|
65
104
|
if (!t || !n || !E(t))
|
|
66
105
|
return !1;
|
|
67
|
-
const
|
|
68
|
-
return
|
|
69
|
-
}, "isTreeGridSelectedCellState"),
|
|
106
|
+
const o = e.IsSelected(t, n);
|
|
107
|
+
return o !== 0 && o !== !1 && o !== void 0 && o !== null;
|
|
108
|
+
}, "isTreeGridSelectedCellState"), _e = /* @__PURE__ */ f((e, t, n) => !t || !n || !E(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), ye = /* @__PURE__ */ f((e, t, n) => !t || !n || !E(t) || e.ARow !== t || e.ACol !== n ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), me = /* @__PURE__ */ f(({
|
|
70
109
|
grid: e,
|
|
71
110
|
row: t,
|
|
72
111
|
col: n,
|
|
73
|
-
r:
|
|
74
|
-
g:
|
|
112
|
+
r: o,
|
|
113
|
+
g: s,
|
|
75
114
|
b: a,
|
|
76
|
-
selectedCellBackgroundColor:
|
|
115
|
+
selectedCellBackgroundColor: p,
|
|
77
116
|
hoverCellBackgroundColor: l
|
|
78
117
|
}) => {
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
if (
|
|
118
|
+
if (Ee(e, t, n) && y(o, s, a, oe))
|
|
119
|
+
return p;
|
|
120
|
+
if (_e(e, t, n) && (y(o, s, a, ue) || y(o, s, a, ce)) || ye(e, t, n) && (y(o, s, a, ie) || y(o, s, a, se) || y(o, s, a, fe)))
|
|
82
121
|
return l;
|
|
83
|
-
}, "resolveTreeGridStateBackgroundColor"),
|
|
122
|
+
}, "resolveTreeGridStateBackgroundColor"), Ne = /* @__PURE__ */ f((e) => {
|
|
84
123
|
if (!e)
|
|
85
124
|
return !1;
|
|
86
125
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
@@ -93,157 +132,166 @@ const Be = 300, Z = [255, 255, 166], g = [240, 240, 240], H = [248, 248, 248], e
|
|
|
93
132
|
return !1;
|
|
94
133
|
}
|
|
95
134
|
return Object.values(e.Rows ?? {}).some((t) => E(t));
|
|
96
|
-
}, "hasTreeGridDisplayDataRows"),
|
|
97
|
-
var
|
|
98
|
-
const
|
|
135
|
+
}, "hasTreeGridDisplayDataRows"), Ve = /* @__PURE__ */ f((e, t, n) => {
|
|
136
|
+
var s;
|
|
137
|
+
const o = (s = e.Data) == null ? void 0 : s.Data;
|
|
99
138
|
e.Data.Data = {
|
|
100
|
-
...
|
|
139
|
+
...o,
|
|
101
140
|
Data: { Body: [t || []] },
|
|
102
141
|
Url: ""
|
|
103
142
|
}, e.ReloadBody(n);
|
|
104
|
-
}, "replaceTreeGridBodyData"),
|
|
143
|
+
}, "replaceTreeGridBodyData"), Fe = /* @__PURE__ */ f(({
|
|
105
144
|
id: e,
|
|
106
145
|
latestEventHandlersRef: t,
|
|
107
146
|
highlightEditableCellsRef: n,
|
|
108
|
-
highlightChangedCellsRef:
|
|
109
|
-
editableCellBackgroundColorValueRef:
|
|
147
|
+
highlightChangedCellsRef: o,
|
|
148
|
+
editableCellBackgroundColorValueRef: s,
|
|
110
149
|
changedCellBackgroundColorRef: a,
|
|
111
|
-
selectedCellBackgroundColorRef:
|
|
150
|
+
selectedCellBackgroundColorRef: p,
|
|
112
151
|
hoverCellBackgroundColorRef: l,
|
|
113
|
-
treeGridInstanceRef:
|
|
114
|
-
treeGridInitStartedAtRef:
|
|
115
|
-
latestLayoutOverridesRef:
|
|
116
|
-
appliedLayoutOverridesRef:
|
|
117
|
-
appliedBodyDataPropRef:
|
|
118
|
-
latestColumnEditRulesRef:
|
|
119
|
-
latestColumnEditRuleLookupRef:
|
|
120
|
-
appliedColumnEditRulesRef:
|
|
121
|
-
columnEditRulesStateRef:
|
|
122
|
-
hasAppliedInitialLayoutRef:
|
|
123
|
-
syncHasDisplayDataRows:
|
|
124
|
-
setIsTreeGridReady:
|
|
152
|
+
treeGridInstanceRef: T,
|
|
153
|
+
treeGridInitStartedAtRef: C,
|
|
154
|
+
latestLayoutOverridesRef: W,
|
|
155
|
+
appliedLayoutOverridesRef: M,
|
|
156
|
+
appliedBodyDataPropRef: z,
|
|
157
|
+
latestColumnEditRulesRef: j,
|
|
158
|
+
latestColumnEditRuleLookupRef: w,
|
|
159
|
+
appliedColumnEditRulesRef: q,
|
|
160
|
+
columnEditRulesStateRef: O,
|
|
161
|
+
hasAppliedInitialLayoutRef: A,
|
|
162
|
+
syncHasDisplayDataRows: _,
|
|
163
|
+
setIsTreeGridReady: Y
|
|
125
164
|
}) => {
|
|
126
|
-
const
|
|
127
|
-
window.TGSetEvent("OnRowAdd", e, (r,
|
|
128
|
-
var
|
|
129
|
-
|
|
165
|
+
const d = t.current;
|
|
166
|
+
window.TGSetEvent("OnRowAdd", e, (r, c) => {
|
|
167
|
+
var u, i;
|
|
168
|
+
c.CanEdit = 1, c.CanDelete = 1, (i = (u = t.current) == null ? void 0 : u.onRowAdd) == null || i.call(u, r, c);
|
|
130
169
|
}), window.TGSetEvent("OnRowAdded", e, (r) => {
|
|
131
|
-
|
|
132
|
-
}), typeof (
|
|
170
|
+
_(r);
|
|
171
|
+
}), typeof (d == null ? void 0 : d.onRowClick) == "function" && window.TGSetEvent(
|
|
133
172
|
"OnClick",
|
|
134
173
|
e,
|
|
135
|
-
|
|
136
|
-
var
|
|
137
|
-
(
|
|
138
|
-
|
|
174
|
+
b((r, c, u, i, G, R) => {
|
|
175
|
+
var S, m;
|
|
176
|
+
(m = (S = t.current) == null ? void 0 : S.onRowClick) == null || m.call(
|
|
177
|
+
S,
|
|
139
178
|
r,
|
|
179
|
+
c,
|
|
140
180
|
u,
|
|
141
|
-
o,
|
|
142
181
|
i,
|
|
143
|
-
|
|
144
|
-
|
|
182
|
+
G,
|
|
183
|
+
R
|
|
145
184
|
);
|
|
146
185
|
}, 300)
|
|
147
|
-
), typeof (
|
|
186
|
+
), typeof (d == null ? void 0 : d.onClickButton) == "function" && window.TGSetEvent(
|
|
148
187
|
"OnClickButton",
|
|
149
188
|
e,
|
|
150
|
-
|
|
151
|
-
var
|
|
152
|
-
(
|
|
153
|
-
|
|
189
|
+
b((r, c, u, i) => {
|
|
190
|
+
var G, R;
|
|
191
|
+
(R = (G = t.current) == null ? void 0 : G.onClickButton) == null || R.call(
|
|
192
|
+
G,
|
|
154
193
|
r,
|
|
194
|
+
c,
|
|
155
195
|
u,
|
|
156
|
-
o,
|
|
157
196
|
i
|
|
158
197
|
);
|
|
159
198
|
}, 300)
|
|
160
|
-
), typeof (
|
|
161
|
-
var i,
|
|
162
|
-
|
|
199
|
+
), typeof (d == null ? void 0 : d.onRowDelete) == "function" ? window.TGSetEvent("OnRowDelete", e, (r, c, u) => {
|
|
200
|
+
var i, G;
|
|
201
|
+
_(r), (G = (i = t.current) == null ? void 0 : i.onRowDelete) == null || G.call(
|
|
163
202
|
i,
|
|
164
203
|
r,
|
|
165
|
-
|
|
166
|
-
|
|
204
|
+
c,
|
|
205
|
+
u
|
|
167
206
|
);
|
|
168
207
|
}) : window.TGSetEvent("OnRowDelete", e, (r) => {
|
|
169
|
-
|
|
170
|
-
}), typeof (
|
|
171
|
-
var
|
|
172
|
-
|
|
208
|
+
_(r);
|
|
209
|
+
}), typeof (d == null ? void 0 : d.onRowUndelete) == "function" ? window.TGSetEvent("OnRowUndelete", e, (r, c) => {
|
|
210
|
+
var u, i;
|
|
211
|
+
_(r), (i = (u = t.current) == null ? void 0 : u.onRowUndelete) == null || i.call(u, r, c);
|
|
173
212
|
}) : window.TGSetEvent("OnRowUndelete", e, (r) => {
|
|
174
|
-
|
|
175
|
-
}), window.TGSetEvent("OnGetDefaultColor", e, (r,
|
|
176
|
-
if (!(!n.current || !E(
|
|
177
|
-
return
|
|
213
|
+
_(r);
|
|
214
|
+
}), window.TGSetEvent("OnGetDefaultColor", e, (r, c, u) => {
|
|
215
|
+
if (!(!n.current || !E(c)))
|
|
216
|
+
return Se(
|
|
178
217
|
r,
|
|
218
|
+
c,
|
|
179
219
|
u,
|
|
180
|
-
|
|
181
|
-
G.current
|
|
220
|
+
s.current
|
|
182
221
|
);
|
|
183
|
-
}), window.TGSetEvent("OnGetColor", e, (r,
|
|
184
|
-
if (!
|
|
185
|
-
return
|
|
222
|
+
}), window.TGSetEvent("OnGetColor", e, (r, c, u, i, G, R, S) => {
|
|
223
|
+
if (!S)
|
|
224
|
+
return me({
|
|
186
225
|
grid: r,
|
|
187
|
-
row:
|
|
188
|
-
col:
|
|
226
|
+
row: c,
|
|
227
|
+
col: u,
|
|
189
228
|
r: i,
|
|
190
|
-
g:
|
|
191
|
-
b:
|
|
192
|
-
selectedCellBackgroundColor:
|
|
229
|
+
g: G,
|
|
230
|
+
b: R,
|
|
231
|
+
selectedCellBackgroundColor: p.current,
|
|
193
232
|
hoverCellBackgroundColor: l.current
|
|
194
233
|
});
|
|
195
|
-
}), window.TGSetEvent("OnAfterValueChanged", e, (r,
|
|
196
|
-
var
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
row:
|
|
200
|
-
col:
|
|
234
|
+
}), window.TGSetEvent("OnAfterValueChanged", e, (r, c, u, i) => {
|
|
235
|
+
var B, I;
|
|
236
|
+
const G = w.current, R = G ? g(G, u, i) : void 0, S = R == null ? void 0 : R.value, m = S ?? i;
|
|
237
|
+
R != null && R.invalidText && X(R.invalidText, { variant: "warning" }), S !== void 0 && r.SetValue(c, u, S, 1), o.current && E(c) && J(e, {
|
|
238
|
+
row: c,
|
|
239
|
+
col: u,
|
|
201
240
|
backgroundColor: a.current
|
|
202
241
|
});
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
}), typeof (
|
|
242
|
+
const D = ((B = t.current) == null ? void 0 : B.onAfterValueChanged) ?? ((I = t.current) == null ? void 0 : I.onRowChange);
|
|
243
|
+
D == null || D(r, c, u, m);
|
|
244
|
+
}), typeof (d == null ? void 0 : d.onSelect) == "function" && window.TGSetEvent(
|
|
206
245
|
"OnSelect",
|
|
207
246
|
e,
|
|
208
|
-
|
|
209
|
-
var
|
|
210
|
-
const
|
|
211
|
-
(i = (
|
|
247
|
+
b((r) => {
|
|
248
|
+
var u, i;
|
|
249
|
+
const c = r.GetSelRows() ?? [];
|
|
250
|
+
(i = (u = t.current) == null ? void 0 : u.onSelect) == null || i.call(u, c);
|
|
212
251
|
}, 100)
|
|
213
|
-
), typeof (
|
|
214
|
-
var i,
|
|
215
|
-
(
|
|
252
|
+
), typeof (d == null ? void 0 : d.onSave) == "function" && window.TGSetEvent("OnSave", e, (r, c, u) => {
|
|
253
|
+
var i, G;
|
|
254
|
+
(G = (i = t.current) == null ? void 0 : i.onSave) == null || G.call(
|
|
216
255
|
i,
|
|
217
256
|
r,
|
|
218
|
-
|
|
219
|
-
|
|
257
|
+
c,
|
|
258
|
+
u
|
|
220
259
|
);
|
|
260
|
+
}), window.TGSetEvent("OnSort", e, (r, c) => {
|
|
261
|
+
var u;
|
|
262
|
+
if (!(!c || !$(r, r.ARow, c)))
|
|
263
|
+
return F(e, "group header sort blocked"), te(e, "group header sort blocked", {
|
|
264
|
+
rowId: (u = r.ARow) == null ? void 0 : u.id,
|
|
265
|
+
col: c
|
|
266
|
+
}), -1;
|
|
267
|
+
}), window.TGSetEvent("OnRenderStart", e, (r) => {
|
|
268
|
+
V(r, e, !1);
|
|
221
269
|
}), window.TGSetEvent(
|
|
222
270
|
"OnReady",
|
|
223
271
|
e,
|
|
224
|
-
|
|
225
|
-
var
|
|
226
|
-
if (!
|
|
227
|
-
const i =
|
|
228
|
-
|
|
272
|
+
b((r) => {
|
|
273
|
+
var c, u;
|
|
274
|
+
if (!A.current) {
|
|
275
|
+
const i = W.current;
|
|
276
|
+
A.current = !0, Z(r, i), H(O.current), ee(
|
|
229
277
|
r,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
),
|
|
233
|
-
bodyRowCount:
|
|
234
|
-
|
|
278
|
+
w.current,
|
|
279
|
+
O.current
|
|
280
|
+
), T.current = r, M.current = i, z.current = L(r), q.current = j.current, _(r), Y(!0), V(r, e, !0), k(e, "TreeGrid init ready", C.current, {
|
|
281
|
+
bodyRowCount: Te(
|
|
282
|
+
L(r)
|
|
235
283
|
)
|
|
236
|
-
}),
|
|
284
|
+
}), C.current = null, (u = (c = t.current) == null ? void 0 : c.onReady) == null || u.call(c, r);
|
|
237
285
|
}
|
|
238
286
|
}, 100)
|
|
239
287
|
);
|
|
240
288
|
}, "bindTreeGridEvents");
|
|
241
289
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
290
|
+
Le as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
|
|
291
|
+
Fe as bindTreeGridEvents,
|
|
292
|
+
xe as buildTreeGridInitializationOptions,
|
|
293
|
+
Te as getTreeGridBodyDataCount,
|
|
294
|
+
Ne as hasTreeGridDisplayDataRows,
|
|
295
|
+
Ve as replaceTreeGridBodyData
|
|
248
296
|
};
|
|
249
297
|
//# sourceMappingURL=treeGridRuntime.js.map
|