@owp/core 2.5.26 → 2.5.28
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/components/OwpExportExcelButton/OwpExportExcelButton.js +19 -19
- package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTable.js +334 -287
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpPicker/OwpDatePicker.js +251 -243
- package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/internal/useOwpPickerPopperTransition.js +13 -12
- package/dist/components/OwpPicker/internal/useOwpPickerPopperTransition.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +151 -156
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableTotalCount.js +23 -16
- package/dist/components/OwpTable/internal/OwpTableTotalCount.js.map +1 -1
- package/dist/components/OwpTable/internal/treeGridTableStyle.js +29 -28
- package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
- package/dist/components/OwpTable/utils/tableSx.js +11 -10
- package/dist/components/OwpTable/utils/tableSx.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +297 -265
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +310 -291
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1039 -385
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +435 -186
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js +10 -10
- package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js.map +1 -1
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +1 -1
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -1
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +1 -1
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -1
- package/dist/layout/components/logo/Logo.js +40 -53
- package/dist/layout/components/logo/Logo.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +27 -37
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +67 -42
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.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/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.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/OwpPicker/internal/useOwpPickerPopperTransition.d.ts +1 -0
- package/dist/types/components/OwpTable/internal/OwpTableTotalCount.d.ts +11 -4
- package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +5 -0
- package/dist/types/components/OwpTable/utils/tableSx.d.ts +15 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +11 -1
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +5 -2
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +14 -4
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +5 -0
- package/dist/types/utils/treeGridUtil.d.ts +4 -0
- package/dist/utils/treeGridUtil.js +154 -145
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -1
- package/treegrid/TextKR.xml +1 -1
|
@@ -7,6 +7,7 @@ type TreeGridAddRowOptions<T> = {
|
|
|
7
7
|
parent?: TRow & T;
|
|
8
8
|
anchorRow?: TRow & T;
|
|
9
9
|
initialValues?: T;
|
|
10
|
+
editableColumns?: readonly string[];
|
|
10
11
|
};
|
|
11
12
|
type TreeGridColumnVisibilityOptions = {
|
|
12
13
|
targetKey: string;
|
|
@@ -16,6 +17,7 @@ type TreeGridHighlightTargetOption = {
|
|
|
16
17
|
row: TRow;
|
|
17
18
|
col: string;
|
|
18
19
|
backgroundColor?: string;
|
|
20
|
+
refresh?: boolean;
|
|
19
21
|
};
|
|
20
22
|
/**
|
|
21
23
|
* addTreeGridRowById 생성 행 여부
|
|
@@ -82,6 +84,7 @@ export declare const reloadTreeGridBodyById: (gridId: string, rows: unknown) =>
|
|
|
82
84
|
* @param options.anchorRow above/below용 기준 행
|
|
83
85
|
* @param options.insertPosition 행 삽입 위치
|
|
84
86
|
* @param options.initialValues 신규 행 초기값
|
|
87
|
+
* @param options.editableColumns 신규 행 셀 단위 편집 가능 컬럼
|
|
85
88
|
*/
|
|
86
89
|
export declare const addTreeGridRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
|
|
87
90
|
/**
|
|
@@ -115,6 +118,7 @@ export declare const setTreeGridColumnVisibilityById: (gridId: string, options:
|
|
|
115
118
|
* @param gridId TreeGrid 인스턴스 ID
|
|
116
119
|
* @param targetOption.row 강조할 대상 행
|
|
117
120
|
* @param targetOption.col 강조할 대상 컬럼
|
|
121
|
+
* @param targetOption.refresh 강조 적용 후 셀 refresh 여부
|
|
118
122
|
*/
|
|
119
123
|
export declare const highlightTreeGridCellById: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
|
|
120
124
|
/**
|
|
@@ -1,258 +1,267 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
|
-
var l = (
|
|
3
|
-
import { TREEGRID_CELL_CHANGED_CLASS as
|
|
4
|
-
import { TREEGRID_INPUT_CELL_COLOR as
|
|
5
|
-
import { parseTreeGridXmlToJson as
|
|
2
|
+
var l = (t, e) => w(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { TREEGRID_CELL_CHANGED_CLASS as $, TREEGRID_CELL_HIGHLIGHT_COLOR as H } from "../constants/treeGrid.js";
|
|
4
|
+
import { TREEGRID_INPUT_CELL_COLOR as Ne, TREEGRID_WARNING_CELL_COLOR as Pe } from "../constants/treeGrid.js";
|
|
5
|
+
import { parseTreeGridXmlToJson as L } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
|
|
6
6
|
import { emitTreeGridBodyRowsChanged as C } from "./internal/treeGridBodyRowsEvent.js";
|
|
7
|
-
import { isArray as
|
|
7
|
+
import { isArray as h } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
|
|
8
8
|
import { lowerCase as x } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/lowerCase.js";
|
|
9
9
|
import { isPlainObject as j } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isPlainObject.js";
|
|
10
10
|
import { get as F } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
|
|
11
11
|
import { omit as K } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
|
|
12
12
|
import { isEmpty as D } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
13
13
|
import { without as v } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
|
|
14
|
-
const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, _ = "__owpAddedByAddTreeGridRowById", m = "__owpAddedRowHighlightColumns",
|
|
15
|
-
|
|
16
|
-
}, "markTreeGridRowAddedById"),
|
|
17
|
-
const
|
|
18
|
-
return !!
|
|
19
|
-
}, "isTreeGridRowAddedById"),
|
|
20
|
-
if (!
|
|
14
|
+
const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, _ = "__owpAddedByAddTreeGridRowById", m = "__owpAddedRowHighlightColumns", A = "__owpAddedRowInitialValueKeys", I = "__owpAddedRowBaselineValues", u = "__owpCellStyleBaselineValues", E = /* @__PURE__ */ l((t) => h(t) ? t.filter((e) => typeof e == "string" && e !== "") : [], "normalizeTreeGridStringValues"), y = E, z = /* @__PURE__ */ l((t) => {
|
|
15
|
+
t && (t[_] = 1);
|
|
16
|
+
}, "markTreeGridRowAddedById"), ye = /* @__PURE__ */ l((t) => {
|
|
17
|
+
const e = t == null ? void 0 : t[_];
|
|
18
|
+
return !!t && e !== 0 && e !== !1 && e !== void 0;
|
|
19
|
+
}, "isTreeGridRowAddedById"), he = /* @__PURE__ */ l((t, e) => {
|
|
20
|
+
if (!t || !e)
|
|
21
21
|
return;
|
|
22
|
-
const r =
|
|
22
|
+
const r = t, n = y(
|
|
23
23
|
r[m]
|
|
24
24
|
);
|
|
25
|
-
n.includes(
|
|
26
|
-
}, "appendTreeGridAddedRowHighlightColumn"), De = /* @__PURE__ */ l((
|
|
27
|
-
if (!
|
|
25
|
+
n.includes(e) || (r[m] = [...n, e]);
|
|
26
|
+
}, "appendTreeGridAddedRowHighlightColumn"), De = /* @__PURE__ */ l((t, e) => {
|
|
27
|
+
if (!t || !e)
|
|
28
28
|
return;
|
|
29
|
-
const r =
|
|
29
|
+
const r = t, s = y(
|
|
30
30
|
r[m]
|
|
31
|
-
).filter((c) => c !==
|
|
31
|
+
).filter((c) => c !== e);
|
|
32
32
|
if (s.length) {
|
|
33
33
|
r[m] = s;
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
delete r[m];
|
|
37
|
-
}, "removeTreeGridAddedRowHighlightColumn"), _e = /* @__PURE__ */ l((
|
|
38
|
-
|
|
39
|
-
), "getTreeGridAddedRowHighlightColumns"), W = /* @__PURE__ */ l((
|
|
40
|
-
var c,
|
|
41
|
-
const n = ((c =
|
|
37
|
+
}, "removeTreeGridAddedRowHighlightColumn"), _e = /* @__PURE__ */ l((t) => y(
|
|
38
|
+
t == null ? void 0 : t[m]
|
|
39
|
+
), "getTreeGridAddedRowHighlightColumns"), W = /* @__PURE__ */ l((t, e, r) => {
|
|
40
|
+
var c, a, i, d, T;
|
|
41
|
+
const n = ((c = t.GetType) == null ? void 0 : c.call(t, e, r)) || ((i = (a = t.Cols) == null ? void 0 : a[r]) == null ? void 0 : i.Type) || "", s = ((d = t.GetValue) == null ? void 0 : d.call(t, e, r)) ?? e[r];
|
|
42
42
|
if (n === "Enum" || n === "Select")
|
|
43
43
|
return s == null ? "" : `${s}`;
|
|
44
44
|
try {
|
|
45
|
-
const G = (
|
|
45
|
+
const G = (T = t.GetString) == null ? void 0 : T.call(t, e, r);
|
|
46
46
|
if (G != null)
|
|
47
47
|
return `${G}`;
|
|
48
48
|
} catch {
|
|
49
49
|
}
|
|
50
50
|
return s == null ? "" : `${s}`;
|
|
51
|
-
}, "getTreeGridCellComparableValue"),
|
|
51
|
+
}, "getTreeGridCellComparableValue"), U = /* @__PURE__ */ l((t, e) => {
|
|
52
52
|
const r = Object.fromEntries(
|
|
53
|
-
Object.keys(
|
|
53
|
+
Object.keys(t.Cols ?? {}).map((n) => [
|
|
54
54
|
n,
|
|
55
|
-
W(
|
|
55
|
+
W(t, e, n)
|
|
56
56
|
])
|
|
57
57
|
);
|
|
58
|
-
|
|
59
|
-
}, "markTreeGridAddedRowBaselineValues"),
|
|
58
|
+
e[I] = r;
|
|
59
|
+
}, "markTreeGridAddedRowBaselineValues"), Ae = /* @__PURE__ */ l((t, e) => {
|
|
60
60
|
var r;
|
|
61
|
-
return (r =
|
|
62
|
-
}, "getTreeGridAddedRowBaselineValue"),
|
|
61
|
+
return (r = t == null ? void 0 : t[I]) == null ? void 0 : r[e];
|
|
62
|
+
}, "getTreeGridAddedRowBaselineValue"), O = /* @__PURE__ */ l((t, e, r) => {
|
|
63
63
|
var s;
|
|
64
|
-
const n =
|
|
64
|
+
const n = e;
|
|
65
65
|
n[u] ?? (n[u] = {}), !((s = n[u]) != null && s[r]) && (n[u][r] = {
|
|
66
|
-
className:
|
|
67
|
-
color:
|
|
66
|
+
className: t.GetAttribute(e, r, "Class"),
|
|
67
|
+
color: t.GetAttribute(e, r, "Color")
|
|
68
68
|
});
|
|
69
|
-
}, "preserveTreeGridCellStyleBaseline"), X = /* @__PURE__ */ l((
|
|
69
|
+
}, "preserveTreeGridCellStyleBaseline"), X = /* @__PURE__ */ l((t, e) => {
|
|
70
70
|
var r;
|
|
71
|
-
return (r =
|
|
71
|
+
return (r = t[u]) == null ? void 0 : r[e];
|
|
72
72
|
}, "getTreeGridCellStyleBaseline"), Y = /* @__PURE__ */ l(async () => {
|
|
73
|
-
const { exportTreeGridExcel:
|
|
74
|
-
return
|
|
75
|
-
}, "loadExportTreeGridExcel"), M = /* @__PURE__ */ l((
|
|
73
|
+
const { exportTreeGridExcel: t } = await import("./treeGridExportExcelUtil.js");
|
|
74
|
+
return t;
|
|
75
|
+
}, "loadExportTreeGridExcel"), M = /* @__PURE__ */ l((t) => Object.values((t == null ? void 0 : t.Rows) ?? {}).filter((e) => e.Kind === "Data"), "getDataRows"), f = /* @__PURE__ */ l((t) => typeof t == "string" && k.test(t.trim()), "isTreeGridTimeDateFormat"), b = /* @__PURE__ */ l((t, e, r) => {
|
|
76
76
|
var c;
|
|
77
|
-
const n =
|
|
77
|
+
const n = e, s = (c = t.Cols) == null ? void 0 : c[r];
|
|
78
78
|
return (s == null ? void 0 : s.Type) === "Date" && (f(n[`${r}EditFormat`]) || f(n[`${r}Format`]) || f(s.EditFormat) || f(s.Format));
|
|
79
|
-
}, "isTreeGridTimeDateColumn"), S = /* @__PURE__ */ l((
|
|
79
|
+
}, "isTreeGridTimeDateColumn"), S = /* @__PURE__ */ l((t, e, r) => {
|
|
80
80
|
var s;
|
|
81
|
-
const n =
|
|
81
|
+
const n = e[r];
|
|
82
82
|
try {
|
|
83
|
-
const c = (s =
|
|
83
|
+
const c = (s = t.GetString) == null ? void 0 : s.call(t, e, r);
|
|
84
84
|
if (c != null && `${c}` != "")
|
|
85
85
|
return `${c}`;
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
return n == null ? "" : `${n}`;
|
|
89
|
-
}, "getTreeGridTimeDateDisplayValue"), J = /* @__PURE__ */ l((
|
|
90
|
-
const r = { ...
|
|
91
|
-
return Object.keys(
|
|
92
|
-
b(
|
|
89
|
+
}, "getTreeGridTimeDateDisplayValue"), J = /* @__PURE__ */ l((t, e) => {
|
|
90
|
+
const r = { ...e };
|
|
91
|
+
return Object.keys(t.Cols ?? {}).forEach((n) => {
|
|
92
|
+
b(t, e, n) && (r[n] = S(t, e, n));
|
|
93
93
|
}), r;
|
|
94
|
-
}, "normalizeTreeGridExternalRow"), B = /* @__PURE__ */ l((
|
|
95
|
-
const r = (
|
|
96
|
-
let c = n ?? (s ? s.parentNode : null) ??
|
|
94
|
+
}, "normalizeTreeGridExternalRow"), B = /* @__PURE__ */ l((t, e) => e.map((r) => J(t, r)), "normalizeTreeGridExternalRows"), g = /* @__PURE__ */ l((t, e) => {
|
|
95
|
+
const r = (e == null ? void 0 : e.insertPosition) ?? "top", n = e == null ? void 0 : e.parent, s = e == null ? void 0 : e.anchorRow;
|
|
96
|
+
let c = n ?? (s ? s.parentNode : null) ?? t.GetFirst(), a = null;
|
|
97
97
|
switch (r) {
|
|
98
98
|
case "top":
|
|
99
|
-
|
|
99
|
+
a = t.GetFirst();
|
|
100
100
|
break;
|
|
101
101
|
case "last":
|
|
102
|
-
c =
|
|
102
|
+
c = t.GetNext(t.GetLast(), t.RowCount > 0 ? t.RowCount + 1 : 0), a = c;
|
|
103
103
|
break;
|
|
104
104
|
case "above":
|
|
105
|
-
|
|
105
|
+
a = s ?? t.GetFirst();
|
|
106
106
|
break;
|
|
107
107
|
case "below":
|
|
108
|
-
|
|
108
|
+
a = (s == null ? void 0 : s.nextSibling) ?? t.GetFirst();
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
|
-
return { resolvedParent: c, next:
|
|
112
|
-
}, "resolveRowInsertionTarget"),
|
|
111
|
+
return { resolvedParent: c, next: a };
|
|
112
|
+
}, "resolveRowInsertionTarget"), q = /* @__PURE__ */ l((t, e, r) => {
|
|
113
113
|
if (!j(r))
|
|
114
114
|
return;
|
|
115
115
|
const n = Object.keys(r).filter(Boolean);
|
|
116
|
-
|
|
117
|
-
var
|
|
118
|
-
if (((
|
|
119
|
-
|
|
116
|
+
e[A] = n, Object.entries(r).forEach(([s, c]) => {
|
|
117
|
+
var a, i;
|
|
118
|
+
if (((i = (a = t.Cols) == null ? void 0 : a[s]) == null ? void 0 : i.Type) === "Date" && typeof c == "string") {
|
|
119
|
+
t.SetString(e, s, c, 0);
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
e[s] = c;
|
|
123
123
|
});
|
|
124
|
-
}, "assignInitialRowValues"),
|
|
124
|
+
}, "assignInitialRowValues"), Q = /* @__PURE__ */ l((t, e, r) => {
|
|
125
|
+
const n = E(r);
|
|
126
|
+
if (!n.length)
|
|
127
|
+
return;
|
|
128
|
+
const s = e;
|
|
129
|
+
n.forEach((c) => {
|
|
130
|
+
var a;
|
|
131
|
+
(a = t.Cols) != null && a[c] && (s[`${c}CanEdit`] = 1);
|
|
132
|
+
});
|
|
133
|
+
}, "assignEditableAddedRowColumns"), Z = /* @__PURE__ */ l((t) => P.some((e) => t.startsWith(e)), "isTreeGridDataKey"), p = /* @__PURE__ */ l((t) => t === 0 || t === !1 || t === "0", "isHiddenTreeGridValue"), ee = /* @__PURE__ */ l((t, e) => {
|
|
125
134
|
var r, n;
|
|
126
|
-
return !
|
|
127
|
-
}, "isVisibleTreeGridColumn"),
|
|
128
|
-
|
|
129
|
-
).includes(
|
|
135
|
+
return !p((n = (r = t == null ? void 0 : t.Cols) == null ? void 0 : r[e]) == null ? void 0 : n.Visible);
|
|
136
|
+
}, "isVisibleTreeGridColumn"), te = /* @__PURE__ */ l((t, e) => E(
|
|
137
|
+
t == null ? void 0 : t[A]
|
|
138
|
+
).includes(e), "isTreeGridAddedRowInitialValueKey"), re = /* @__PURE__ */ l((t, e) => {
|
|
130
139
|
var r;
|
|
131
|
-
return typeof
|
|
132
|
-
}, "getLiveTreeGridChangedRow"),
|
|
133
|
-
v(Object.keys(
|
|
134
|
-
), "normalizeAddedRow"),
|
|
135
|
-
(n) => r === "Changed" ? K(n, ["id", "Changed"]) :
|
|
136
|
-
).filter((n) => !D(n)), "getChangedRowsByStatus"),
|
|
137
|
-
const n = typeof r.id == "string" ?
|
|
140
|
+
return typeof e.id == "string" ? (r = t == null ? void 0 : t.Rows) == null ? void 0 : r[e.id] : null;
|
|
141
|
+
}, "getLiveTreeGridChangedRow"), ne = /* @__PURE__ */ l((t, e, r) => !Z(r) || D(e[r]) ? !1 : ee(t, r) ? !0 : te(re(t, e), r), "shouldIncludeAddedRowDataKey"), se = /* @__PURE__ */ l((t, e) => Object.fromEntries(
|
|
142
|
+
v(Object.keys(e), "id").filter((r) => ne(t, e, r)).map((r) => [r, e[r]])
|
|
143
|
+
), "normalizeAddedRow"), le = /* @__PURE__ */ l((t, e, r) => e.filter((n) => F(n, r) === "1" && n.Deleted !== "1").map(
|
|
144
|
+
(n) => r === "Changed" ? K(n, ["id", "Changed"]) : se(t, n)
|
|
145
|
+
).filter((n) => !D(n)), "getChangedRowsByStatus"), ce = /* @__PURE__ */ l((t, e) => t ? e.map((r) => {
|
|
146
|
+
const n = typeof r.id == "string" ? t.Rows[r.id] : null;
|
|
138
147
|
if (!n)
|
|
139
148
|
return r;
|
|
140
149
|
const s = { ...r };
|
|
141
150
|
return Object.keys(r).forEach((c) => {
|
|
142
|
-
b(
|
|
151
|
+
b(t, n, c) && (s[c] = S(t, n, c));
|
|
143
152
|
}), s;
|
|
144
|
-
}) :
|
|
145
|
-
const
|
|
146
|
-
return
|
|
147
|
-
}, "getTreeGridDataRowsById"),
|
|
148
|
-
const r =
|
|
153
|
+
}) : e, "normalizeTreeGridChangedRows"), o = /* @__PURE__ */ l((t) => Grids[t], "getTreeGridById"), Ie = /* @__PURE__ */ l((t) => {
|
|
154
|
+
const e = o(t);
|
|
155
|
+
return e ? B(e, M(e)) : [];
|
|
156
|
+
}, "getTreeGridDataRowsById"), be = /* @__PURE__ */ l((t, e) => {
|
|
157
|
+
const r = o(t);
|
|
149
158
|
if (!r)
|
|
150
159
|
return;
|
|
151
160
|
const n = r.Data.Data;
|
|
152
161
|
r.Data.Data = {
|
|
153
162
|
...n,
|
|
154
|
-
Data: { Body: [
|
|
163
|
+
Data: { Body: [e || []] },
|
|
155
164
|
Url: ""
|
|
156
165
|
}, r.ReloadBody(), window.setTimeout(() => {
|
|
157
|
-
C(
|
|
166
|
+
C(t);
|
|
158
167
|
}, 0);
|
|
159
|
-
}, "reloadTreeGridBodyById"),
|
|
160
|
-
const r =
|
|
168
|
+
}, "reloadTreeGridBodyById"), Se = /* @__PURE__ */ l((t, e) => {
|
|
169
|
+
const r = o(t);
|
|
161
170
|
if (!r)
|
|
162
171
|
return;
|
|
163
|
-
const n =
|
|
164
|
-
z(
|
|
165
|
-
C(
|
|
172
|
+
const n = e == null ? void 0 : e.canSelect, s = e == null ? void 0 : e.initialValues, c = e == null ? void 0 : e.editableColumns, { resolvedParent: a, next: i } = g(r, e), d = r.AddRow(a, i, 1);
|
|
173
|
+
z(d), q(r, d, s), U(r, d), d.CanEdit = 1, d.CanDelete = 1, d.CanSelect = n ? 1 : 0, Q(r, d, c), r.Focus(d), r.RefreshRow(d), window.setTimeout(() => {
|
|
174
|
+
C(t);
|
|
166
175
|
}, 0);
|
|
167
|
-
}, "addTreeGridRowById"),
|
|
168
|
-
const
|
|
169
|
-
return
|
|
176
|
+
}, "addTreeGridRowById"), Be = /* @__PURE__ */ l((t) => {
|
|
177
|
+
const e = o(t), r = L(e == null ? void 0 : e.GetXmlData("changes,allcols,nogrid,noio"));
|
|
178
|
+
return h(r) ? Object.fromEntries(
|
|
170
179
|
N.map((n) => [
|
|
171
180
|
x(n),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
181
|
+
le(
|
|
182
|
+
e,
|
|
183
|
+
ce(e, r),
|
|
175
184
|
n
|
|
176
185
|
)
|
|
177
186
|
])
|
|
178
187
|
) : { added: [], changed: [] };
|
|
179
|
-
}, "getTreeGridRowChangesById"),
|
|
180
|
-
const r =
|
|
188
|
+
}, "getTreeGridRowChangesById"), Ve = /* @__PURE__ */ l((t, e) => {
|
|
189
|
+
const r = o(t);
|
|
181
190
|
r && Y().then(
|
|
182
|
-
(n) => n(r, { exportName:
|
|
191
|
+
(n) => n(r, { exportName: e ?? "" })
|
|
183
192
|
);
|
|
184
|
-
}, "exportTreeGridToExcelById"),
|
|
185
|
-
const
|
|
186
|
-
return
|
|
187
|
-
}, "getTreeGridSelectedRowsById"),
|
|
188
|
-
const r =
|
|
189
|
-
if (!r || !(
|
|
193
|
+
}, "exportTreeGridToExcelById"), we = /* @__PURE__ */ l((t) => {
|
|
194
|
+
const e = o(t), r = e == null ? void 0 : e.GetSelRows();
|
|
195
|
+
return e && r ? B(e, r) : [];
|
|
196
|
+
}, "getTreeGridSelectedRowsById"), $e = /* @__PURE__ */ l((t, e) => {
|
|
197
|
+
const r = o(t);
|
|
198
|
+
if (!r || !(e != null && e.targetKey))
|
|
190
199
|
return;
|
|
191
|
-
const n =
|
|
192
|
-
if (
|
|
200
|
+
const n = e == null ? void 0 : e.targetKey;
|
|
201
|
+
if (e == null ? void 0 : e.canVisible) {
|
|
193
202
|
r.ShowCol(n);
|
|
194
203
|
return;
|
|
195
204
|
}
|
|
196
205
|
r.HideCol(n);
|
|
197
|
-
}, "setTreeGridColumnVisibilityById"), He = /* @__PURE__ */ l((
|
|
198
|
-
const r =
|
|
199
|
-
!r || !n || !s || (
|
|
200
|
-
}, "highlightTreeGridCellById"), Le = /* @__PURE__ */ l((
|
|
201
|
-
const r =
|
|
206
|
+
}, "setTreeGridColumnVisibilityById"), He = /* @__PURE__ */ l((t, e) => {
|
|
207
|
+
const r = o(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
|
|
208
|
+
!r || !n || !s || (O(r, n, s), r.SetValue(n, `${s}Class`, $), r.SetValue(n, `${s}Color`, e.backgroundColor ?? H), e.refresh !== !1 && r.RefreshCell(n, s));
|
|
209
|
+
}, "highlightTreeGridCellById"), Le = /* @__PURE__ */ l((t, e) => {
|
|
210
|
+
const r = o(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
|
|
202
211
|
if (!r || !n || !s)
|
|
203
212
|
return;
|
|
204
213
|
const c = X(n, s);
|
|
205
214
|
r.SetValue(n, `${s}Class`, (c == null ? void 0 : c.className) ?? ""), r.SetValue(n, `${s}Color`, (c == null ? void 0 : c.color) ?? ""), r.RefreshCell(n, s);
|
|
206
|
-
}, "clearTreeGridCellHighlightById"), V = /* @__PURE__ */ l((
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
}, "resetTreeGridSelectionById"),
|
|
210
|
-
|
|
211
|
-
}, "resetTreeGridSelectionsByIds"),
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
C(
|
|
215
|
+
}, "clearTreeGridCellHighlightById"), V = /* @__PURE__ */ l((t) => {
|
|
216
|
+
const e = o(t);
|
|
217
|
+
e && e.ActionDeselectAll(1, 0);
|
|
218
|
+
}, "resetTreeGridSelectionById"), xe = /* @__PURE__ */ l((t) => {
|
|
219
|
+
t.forEach(V);
|
|
220
|
+
}, "resetTreeGridSelectionsByIds"), ae = /* @__PURE__ */ l((t) => {
|
|
221
|
+
const e = o(t);
|
|
222
|
+
e && (e.ActionUndoAll(1, 0), V(t), window.setTimeout(() => {
|
|
223
|
+
C(t);
|
|
215
224
|
}, 0));
|
|
216
|
-
}, "resetTreeGridChangesById"),
|
|
217
|
-
|
|
218
|
-
}, "resetTreeGridChangesByIds"),
|
|
225
|
+
}, "resetTreeGridChangesById"), je = /* @__PURE__ */ l((t) => {
|
|
226
|
+
t.forEach(ae);
|
|
227
|
+
}, "resetTreeGridChangesByIds"), Fe = /* @__PURE__ */ l((t, e, r, n, s) => {
|
|
219
228
|
if (!(r != null && r.length))
|
|
220
229
|
return;
|
|
221
|
-
const c =
|
|
230
|
+
const c = o(t);
|
|
222
231
|
if (!c)
|
|
223
232
|
return;
|
|
224
|
-
const
|
|
225
|
-
const
|
|
226
|
-
return `${s.map((
|
|
227
|
-
}).join("|"),
|
|
228
|
-
c.SetAttribute(null,
|
|
233
|
+
const a = r.map((d) => {
|
|
234
|
+
const T = d;
|
|
235
|
+
return `${s.map((R) => T[R]).find((R) => R != null && R !== "") ?? ""}`;
|
|
236
|
+
}).join("|"), i = r.map((d) => `${d[n] ?? ""}`).join("|");
|
|
237
|
+
c.SetAttribute(null, e, "Type", "Enum", 0, 0), c.SetAttribute(null, e, "Enum", `|${a}`, 0, 0), c.SetAttribute(null, e, "EnumKeys", `|${i}`, 1, 0);
|
|
229
238
|
}, "setTreeGridColumnEnumOptionsById");
|
|
230
239
|
export {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
240
|
+
$ as TREEGRID_CELL_CHANGED_CLASS,
|
|
241
|
+
H as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
242
|
+
Ne as TREEGRID_INPUT_CELL_COLOR,
|
|
243
|
+
Pe as TREEGRID_WARNING_CELL_COLOR,
|
|
244
|
+
Se as addTreeGridRowById,
|
|
245
|
+
he as appendTreeGridAddedRowHighlightColumn,
|
|
237
246
|
Le as clearTreeGridCellHighlightById,
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
Ve as exportTreeGridToExcelById,
|
|
248
|
+
Ae as getTreeGridAddedRowBaselineValue,
|
|
240
249
|
_e as getTreeGridAddedRowHighlightColumns,
|
|
241
|
-
|
|
250
|
+
o as getTreeGridById,
|
|
242
251
|
W as getTreeGridCellComparableValue,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
252
|
+
Ie as getTreeGridDataRowsById,
|
|
253
|
+
Be as getTreeGridRowChangesById,
|
|
254
|
+
we as getTreeGridSelectedRowsById,
|
|
246
255
|
He as highlightTreeGridCellById,
|
|
247
|
-
|
|
256
|
+
ye as isTreeGridRowAddedById,
|
|
248
257
|
B as normalizeTreeGridExternalRows,
|
|
249
|
-
|
|
258
|
+
be as reloadTreeGridBodyById,
|
|
250
259
|
De as removeTreeGridAddedRowHighlightColumn,
|
|
251
|
-
|
|
252
|
-
|
|
260
|
+
ae as resetTreeGridChangesById,
|
|
261
|
+
je as resetTreeGridChangesByIds,
|
|
253
262
|
V as resetTreeGridSelectionById,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
263
|
+
xe as resetTreeGridSelectionsByIds,
|
|
264
|
+
Fe as setTreeGridColumnEnumOptionsById,
|
|
265
|
+
$e as setTreeGridColumnVisibilityById
|
|
257
266
|
};
|
|
258
267
|
//# sourceMappingURL=treeGridUtil.js.map
|