@owp/core 2.5.36 → 2.5.38
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/index5.js +2 -2
- package/dist/components/OwpTable/OwpDataTable.js +187 -183
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +279 -311
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +567 -486
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +284 -243
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/defaultConfig.js +7 -7
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/treeGrid.js +17 -16
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +24 -23
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/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/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-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +4 -1
- package/dist/types/configs/defaultConfig.d.ts +7 -7
- package/dist/types/constants/treeGrid.d.ts +1 -0
- package/package.json +1 -1
- package/treegrid/Defaults.xml +1 -1
|
@@ -1,387 +1,355 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { resolveOwpGridTheme as
|
|
5
|
-
import { DEFAULT_TABLE_RADIUS as
|
|
6
|
-
import { resolveTreeGridColorNumber as
|
|
7
|
-
import { useGetCurrentSettings as
|
|
8
|
-
import { useOwpTranslation as
|
|
9
|
-
import { useGetCurrentLanguage as
|
|
10
|
-
import { useConfirm as
|
|
11
|
-
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as
|
|
12
|
-
import {
|
|
13
|
-
import { getTreeGridPerfTimestamp as
|
|
14
|
-
import { useMemo as
|
|
15
|
-
import
|
|
16
|
-
import { useOwpTreeGridDatePickerEditor as
|
|
17
|
-
import { useOwpTreeGridErrorTooltip as
|
|
18
|
-
import { useOwpTreeGridOverlayFrame as
|
|
19
|
-
import { hasTreeGridExplicitEnterMode as
|
|
20
|
-
import { applyTreeGridLayoutToGrid as
|
|
21
|
-
import { OwpTreeGridLoadingOverlay as
|
|
22
|
-
import { OwpTreeGridNoDataOverlay as
|
|
23
|
-
import { createTreeGridThemeContainerStyle as
|
|
24
|
-
import { isEmpty as
|
|
25
|
-
import { delay as
|
|
26
|
-
import { isEqual as
|
|
27
|
-
import { omit as
|
|
28
|
-
import { isPlainObject as
|
|
29
|
-
const
|
|
1
|
+
var hr = Object.defineProperty;
|
|
2
|
+
var n = (e, t) => hr(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as vr, jsx as F } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { resolveOwpGridTheme as Ir } from "../../constants/gridTheme.js";
|
|
5
|
+
import { DEFAULT_TABLE_RADIUS as Lr } from "../../constants/table.js";
|
|
6
|
+
import { resolveTreeGridColorNumber as M, TREEGRID_INPUT_CELL_COLOR as Je, TREEGRID_CELL_HIGHLIGHT_COLOR as Ye } from "../../constants/treeGrid.js";
|
|
7
|
+
import { useGetCurrentSettings as Or } from "../../hooks/useOwpSettings.js";
|
|
8
|
+
import { useOwpTranslation as Ar } from "../../hooks/useOwpTranslation.js";
|
|
9
|
+
import { useGetCurrentLanguage as kr } from "../../hooks/internal/useCurrentLanguage.js";
|
|
10
|
+
import { useConfirm as wr } from "../../hooks/useConfirm.js";
|
|
11
|
+
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Qe } from "../../utils/internal/treeGridBodyRowsEvent.js";
|
|
12
|
+
import { getTreeGridCellComparableValue as Sr } from "../../utils/treeGridUtil.js";
|
|
13
|
+
import { getTreeGridPerfTimestamp as ee, countTreeGridPerf as Xe, logTreeGridPerf as Ze, measureTreeGridPerf as er } from "./internal/utils/perf.js";
|
|
14
|
+
import { useMemo as rr, useRef as r, useState as re, useEffect as N, useLayoutEffect as Pr } from "react";
|
|
15
|
+
import Fr from "@mui/material/GlobalStyles";
|
|
16
|
+
import { useOwpTreeGridDatePickerEditor as Mr } from "./internal/hooks/useOwpTreeGridDatePickerEditor.js";
|
|
17
|
+
import { useOwpTreeGridErrorTooltip as Nr } from "./internal/hooks/useOwpTreeGridErrorTooltip.js";
|
|
18
|
+
import { useOwpTreeGridOverlayFrame as Vr } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
|
|
19
|
+
import { hasTreeGridExplicitEnterMode as tr, bindTreeGridEvents as xr, getTreeGridBodyDataCount as te, buildTreeGridInitializationOptions as Hr, hasTreeGridDisplayDataRows as or, replaceTreeGridBodyData as Ur, syncTreeGridChangedCellHighlight as jr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as Wr } from "./internal/treeGridRuntime.js";
|
|
20
|
+
import { applyTreeGridLayoutToGrid as $r } from "./internal/treeGridLayout.js";
|
|
21
|
+
import { OwpTreeGridLoadingOverlay as qr } from "./internal/OwpTreeGridLoadingOverlay.js";
|
|
22
|
+
import { OwpTreeGridNoDataOverlay as Kr } from "./internal/OwpTreeGridNoDataOverlay.js";
|
|
23
|
+
import { createTreeGridThemeContainerStyle as zr, TREE_GRID_THEME_WRAPPER_CLASS as Jr, TREE_GRID_THEME_TABLE_RADIUS_CLASS as Yr, treeGridThemeStyles as Qr } from "./internal/treeGridTheme.js";
|
|
24
|
+
import { isEmpty as V } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
25
|
+
import { delay as Xr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
|
|
26
|
+
import { isEqual as Zr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
|
|
27
|
+
import { omit as et } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
|
|
28
|
+
import { isPlainObject as rt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
|
|
29
|
+
const tt = "NumberToString(count(5),',0')", ot = ["Formula", "FormulaFormula"], nt = Object.prototype.hasOwnProperty, nr = /* @__PURE__ */ n((e) => JSON.stringify(e) ?? '""', "toTreeGridFormulaStringLiteral"), it = /* @__PURE__ */ n((e, t) => `${nr(
|
|
30
30
|
`${e} : `
|
|
31
|
-
)}+${
|
|
32
|
-
` ${
|
|
33
|
-
)}`, "buildTreeGridTotalCountToolbarFormula"),
|
|
34
|
-
(
|
|
35
|
-
) : !1, "hasTreeGridToolbarFormulaField"),
|
|
36
|
-
const
|
|
37
|
-
return !!e &&
|
|
38
|
-
}, "isVisibleTreeGridRow"),
|
|
39
|
-
const
|
|
40
|
-
return !!e &&
|
|
41
|
-
}, "isAddedTreeGridRow"),
|
|
31
|
+
)}+${tt}+${nr(
|
|
32
|
+
` ${t}`
|
|
33
|
+
)}`, "buildTreeGridTotalCountToolbarFormula"), st = /* @__PURE__ */ n((e) => rt(e) ? ot.some(
|
|
34
|
+
(t) => nt.call(e, t)
|
|
35
|
+
) : !1, "hasTreeGridToolbarFormulaField"), lt = /* @__PURE__ */ n((e) => {
|
|
36
|
+
const t = e == null ? void 0 : e.Visible;
|
|
37
|
+
return !!e && t !== 0 && t !== !1 && t !== "0";
|
|
38
|
+
}, "isVisibleTreeGridRow"), at = /* @__PURE__ */ n((e) => {
|
|
39
|
+
const t = e == null ? void 0 : e.Added;
|
|
40
|
+
return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
|
|
41
|
+
}, "isAddedTreeGridRow"), ct = /* @__PURE__ */ n((e) => !e || e.Fixed === "Foot" || !lt(e) ? !1 : e.Kind === "Data" || at(e), "isDisplayTreeGridRow"), ut = /* @__PURE__ */ n((e) => {
|
|
42
42
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
43
|
-
const
|
|
44
|
-
let
|
|
45
|
-
for (;
|
|
46
|
-
|
|
47
|
-
return
|
|
43
|
+
const t = [];
|
|
44
|
+
let d = e.GetFirst();
|
|
45
|
+
for (; d; )
|
|
46
|
+
t.push(d), d = e.GetNext(d);
|
|
47
|
+
return t;
|
|
48
48
|
}
|
|
49
49
|
return Object.values(e.Rows ?? {});
|
|
50
|
-
}, "getTreeGridRows"),
|
|
50
|
+
}, "getTreeGridRows"), dt = /* @__PURE__ */ n((e, t) => {
|
|
51
51
|
if (!e)
|
|
52
52
|
return;
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
new Map(
|
|
53
|
+
const d = Object.keys(e.Cols ?? {}).filter(Boolean);
|
|
54
|
+
ut(e).forEach((E) => {
|
|
55
|
+
ct(E) && t.set(
|
|
56
|
+
E,
|
|
57
|
+
new Map(d.map((v) => [v, Sr(e, E, v)]))
|
|
58
58
|
);
|
|
59
59
|
});
|
|
60
|
-
}, "captureTreeGridChangeBaselines"),
|
|
61
|
-
const n = r;
|
|
62
|
-
return Object.keys(e.Cols ?? {}).some((d) => d !== o && Tt(n[`${d}Changed`]));
|
|
63
|
-
}, "hasOtherTreeGridChangedCells"), pt = /* @__PURE__ */ i((e, r, o) => {
|
|
64
|
-
const n = r;
|
|
65
|
-
n[`${o}Changed`] = 0, !le(r) && !lr(r) && !Rt(e, r, o) && (n.Changed = 0);
|
|
66
|
-
}, "clearTreeGridCellChangedState"), Ct = /* @__PURE__ */ i((e, r, o) => {
|
|
67
|
-
const n = e.get(r);
|
|
68
|
-
if (n != null && n.has(o))
|
|
69
|
-
return n.get(o);
|
|
70
|
-
}, "resolveTreeGridCellBaselineValue"), gt = /* @__PURE__ */ i(({
|
|
71
|
-
gridId: e,
|
|
72
|
-
grid: r,
|
|
73
|
-
row: o,
|
|
74
|
-
col: n,
|
|
75
|
-
backgroundColor: d,
|
|
76
|
-
baselineMap: j,
|
|
77
|
-
highlightRefresh: L
|
|
78
|
-
}) => {
|
|
79
|
-
if (!cr(o) || le(o) || lr(o))
|
|
80
|
-
return;
|
|
81
|
-
const h = Ct(j, o, n), O = ar(r, o, n);
|
|
82
|
-
if (h !== void 0 && O === h) {
|
|
83
|
-
wr(e, { row: o, col: n }), pt(r, o, n);
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
Vr(e, {
|
|
87
|
-
row: o,
|
|
88
|
-
col: n,
|
|
89
|
-
backgroundColor: d,
|
|
90
|
-
refresh: L
|
|
91
|
-
});
|
|
92
|
-
}, "syncTreeGridChangedCellHighlightById"), Gt = [
|
|
60
|
+
}, "captureTreeGridChangeBaselines"), ft = [
|
|
93
61
|
"addRow",
|
|
94
62
|
"deleteRow",
|
|
95
63
|
"selectRow"
|
|
96
|
-
],
|
|
64
|
+
], Ht = /* @__PURE__ */ n(({
|
|
97
65
|
id: e = "treeGridWrapper",
|
|
98
|
-
containerStyle:
|
|
99
|
-
containerClassName:
|
|
100
|
-
toolbarRowBackgroundColor:
|
|
101
|
-
className:
|
|
102
|
-
style:
|
|
103
|
-
height:
|
|
104
|
-
width:
|
|
105
|
-
canUseTableRadius:
|
|
106
|
-
tableBorderRadius:
|
|
107
|
-
suppressCfg:
|
|
108
|
-
showToolbarTotalCount:
|
|
109
|
-
hideChildHeaderSortButtons:
|
|
110
|
-
selectionScope:
|
|
111
|
-
layoutUrl:
|
|
112
|
-
layoutData:
|
|
113
|
-
disabledAnimations:
|
|
114
|
-
dataUrl:
|
|
115
|
-
layoutOverrides:
|
|
116
|
-
data:
|
|
117
|
-
useDataUrl:
|
|
118
|
-
onSelect:
|
|
119
|
-
onRowClick:
|
|
120
|
-
onRowAdd:
|
|
121
|
-
onRowDelete:
|
|
66
|
+
containerStyle: t,
|
|
67
|
+
containerClassName: d,
|
|
68
|
+
toolbarRowBackgroundColor: E,
|
|
69
|
+
className: v,
|
|
70
|
+
style: ir,
|
|
71
|
+
height: oe = "100%",
|
|
72
|
+
width: ne = "100%",
|
|
73
|
+
canUseTableRadius: ie = !1,
|
|
74
|
+
tableBorderRadius: sr = Lr,
|
|
75
|
+
suppressCfg: x = 3,
|
|
76
|
+
showToolbarTotalCount: se = !0,
|
|
77
|
+
hideChildHeaderSortButtons: le = !0,
|
|
78
|
+
selectionScope: ae = "native",
|
|
79
|
+
layoutUrl: lr,
|
|
80
|
+
layoutData: H,
|
|
81
|
+
disabledAnimations: U = ft,
|
|
82
|
+
dataUrl: ar,
|
|
83
|
+
layoutOverrides: R,
|
|
84
|
+
data: c,
|
|
85
|
+
useDataUrl: ce,
|
|
86
|
+
onSelect: ue,
|
|
87
|
+
onRowClick: de,
|
|
88
|
+
onRowAdd: fe,
|
|
89
|
+
onRowDelete: me,
|
|
122
90
|
onRowUndelete: pe,
|
|
123
|
-
onRowChange:
|
|
124
|
-
onClickButton:
|
|
125
|
-
onSave:
|
|
126
|
-
onReady:
|
|
127
|
-
onAfterValueChanged:
|
|
128
|
-
datePickerEditor:
|
|
129
|
-
highlightEditableCells:
|
|
91
|
+
onRowChange: Re,
|
|
92
|
+
onClickButton: Te,
|
|
93
|
+
onSave: Ee,
|
|
94
|
+
onReady: Ce,
|
|
95
|
+
onAfterValueChanged: Ge,
|
|
96
|
+
datePickerEditor: cr,
|
|
97
|
+
highlightEditableCells: ge = !0,
|
|
130
98
|
highlightChangedCells: be = !0,
|
|
131
|
-
syncDeletedRowCanEdit:
|
|
132
|
-
confirmDeletedRowRemoval:
|
|
133
|
-
loading:
|
|
134
|
-
showLoading:
|
|
99
|
+
syncDeletedRowCanEdit: ye = !0,
|
|
100
|
+
confirmDeletedRowRemoval: ur = !0,
|
|
101
|
+
loading: dr,
|
|
102
|
+
showLoading: u = !0
|
|
135
103
|
}) => {
|
|
136
|
-
var
|
|
137
|
-
const { t:
|
|
138
|
-
() =>
|
|
104
|
+
var $e, qe;
|
|
105
|
+
const { t: C } = Ar(), { confirmDelete: fr } = wr(), j = Or(), W = (qe = ($e = j == null ? void 0 : j.theme) == null ? void 0 : $e.main) == null ? void 0 : qe.grid, De = C("Common.전체"), Be = C("Common.건"), $ = rr(
|
|
106
|
+
() => se && !st(R == null ? void 0 : R.Toolbar) ? it(De, Be) : void 0,
|
|
139
107
|
[
|
|
140
|
-
|
|
141
|
-
|
|
108
|
+
R,
|
|
109
|
+
Be,
|
|
142
110
|
De,
|
|
143
|
-
|
|
111
|
+
se
|
|
144
112
|
]
|
|
145
|
-
),
|
|
146
|
-
|
|
147
|
-
),
|
|
148
|
-
title:
|
|
149
|
-
description:
|
|
150
|
-
okText:
|
|
151
|
-
}) ? "remove" : "undelete" : void 0,
|
|
152
|
-
onSelect:
|
|
153
|
-
onRowClick:
|
|
154
|
-
onRowAdd:
|
|
155
|
-
onRowDelete:
|
|
156
|
-
onBeforeRowUndelete:
|
|
113
|
+
), l = r(null), _e = r(null), he = r(null), q = r(null), K = r(R), ve = r($), Ie = r(x), Le = r(le), Oe = r(
|
|
114
|
+
ae
|
|
115
|
+
), Ae = r(U), ke = r(c), we = r(tr(H)), Se = ur ? async () => await fr({
|
|
116
|
+
title: C("Message.삭제된 항목을 완전히 삭제하시겠습니까?"),
|
|
117
|
+
description: C("Message.취소하면 삭제 상태가 해제됩니다."),
|
|
118
|
+
okText: C("Button.완전 삭제")
|
|
119
|
+
}) ? "remove" : "undelete" : void 0, I = r({
|
|
120
|
+
onSelect: ue,
|
|
121
|
+
onRowClick: de,
|
|
122
|
+
onRowAdd: fe,
|
|
123
|
+
onRowDelete: me,
|
|
124
|
+
onBeforeRowUndelete: Se,
|
|
157
125
|
onRowUndelete: pe,
|
|
158
|
-
onRowChange:
|
|
159
|
-
onClickButton:
|
|
160
|
-
onSave:
|
|
161
|
-
onReady:
|
|
162
|
-
onAfterValueChanged:
|
|
163
|
-
}), b =
|
|
164
|
-
() =>
|
|
165
|
-
[
|
|
166
|
-
),
|
|
167
|
-
|
|
168
|
-
),
|
|
169
|
-
|
|
170
|
-
),
|
|
171
|
-
|
|
172
|
-
}, "syncHasDisplayDataRows"),
|
|
173
|
-
var
|
|
174
|
-
|
|
126
|
+
onRowChange: Re,
|
|
127
|
+
onClickButton: Te,
|
|
128
|
+
onSave: Ee,
|
|
129
|
+
onReady: Ce,
|
|
130
|
+
onAfterValueChanged: Ge
|
|
131
|
+
}), b = r(void 0), z = r(!1), L = r(void 0), O = r(void 0), mr = r(!1), y = r(0), G = r(null), D = r(void 0), B = r(void 0), Pe = r(ge), J = r(be), Fe = r(ye), [A, pr] = re(!1), [Rr, _] = re(!1), [Tr, Me] = re(!1), k = kr(), s = rr(
|
|
132
|
+
() => Ir(W),
|
|
133
|
+
[W]
|
|
134
|
+
), Ne = r(
|
|
135
|
+
M(s.editable.backgroundColor) ?? M(Je)
|
|
136
|
+
), Y = r(
|
|
137
|
+
s.changed.backgroundColor ?? Ye
|
|
138
|
+
), w = r(/* @__PURE__ */ new WeakMap()), Ve = r(s.state.focusedCellBackgroundColor), xe = r(s.state.selectedCellBackgroundColor), He = r(s.state.hoverCellBackgroundColor), Ue = r(k.id), Er = u && c !== void 0 && A && O.current !== c, Q = u && dr === !0 || u && (Rr || Er), X = !Q && c !== void 0 && V(c) && !Tr, je = /* @__PURE__ */ n((o) => {
|
|
139
|
+
Me(or(o));
|
|
140
|
+
}, "syncHasDisplayDataRows"), Cr = /* @__PURE__ */ n((o, i, f, T, m) => {
|
|
141
|
+
var h, p;
|
|
142
|
+
J.current && i.Fixed !== "Foot" && jr({
|
|
175
143
|
gridId: e,
|
|
176
|
-
grid:
|
|
177
|
-
row:
|
|
178
|
-
col:
|
|
179
|
-
backgroundColor:
|
|
180
|
-
baselineMap:
|
|
181
|
-
highlightRefresh:
|
|
144
|
+
grid: o,
|
|
145
|
+
row: i,
|
|
146
|
+
col: f,
|
|
147
|
+
backgroundColor: Y.current,
|
|
148
|
+
baselineMap: w.current,
|
|
149
|
+
highlightRefresh: m == null ? void 0 : m.highlightRefresh
|
|
182
150
|
});
|
|
183
|
-
const
|
|
184
|
-
|
|
151
|
+
const a = ((h = I.current) == null ? void 0 : h.onAfterValueChanged) ?? ((p = I.current) == null ? void 0 : p.onRowChange);
|
|
152
|
+
a == null || a(o, i, f, T);
|
|
185
153
|
}, "handleDatePickerEditorValueChange");
|
|
186
|
-
|
|
154
|
+
K.current = R, ve.current = $, Ie.current = x, Le.current = le, Oe.current = ae, Ae.current = U, ke.current = c, we.current = tr(H), Pe.current = ge, J.current = be, Fe.current = ye, Ne.current = M(s.editable.backgroundColor) ?? M(Je), Y.current = s.changed.backgroundColor ?? Ye, Ve.current = s.state.focusedCellBackgroundColor, xe.current = s.state.selectedCellBackgroundColor, He.current = s.state.hoverCellBackgroundColor;
|
|
187
155
|
const {
|
|
188
|
-
datePickerEditorElement:
|
|
189
|
-
handleDatePickerEditorButtonClick:
|
|
190
|
-
handleDatePickerEditorCellClick:
|
|
191
|
-
handleDatePickerEditorKeyDown:
|
|
192
|
-
handleDatePickerEditorStartEdit:
|
|
193
|
-
} =
|
|
194
|
-
config:
|
|
195
|
-
treeGridInstanceRef:
|
|
196
|
-
isTreeGridReady:
|
|
197
|
-
onValueChange:
|
|
198
|
-
}), { errorTooltipElement:
|
|
199
|
-
|
|
200
|
-
onSelect:
|
|
201
|
-
onRowClick:
|
|
202
|
-
onRowAdd:
|
|
203
|
-
onRowDelete:
|
|
204
|
-
onBeforeRowUndelete:
|
|
156
|
+
datePickerEditorElement: Gr,
|
|
157
|
+
handleDatePickerEditorButtonClick: gr,
|
|
158
|
+
handleDatePickerEditorCellClick: br,
|
|
159
|
+
handleDatePickerEditorKeyDown: yr,
|
|
160
|
+
handleDatePickerEditorStartEdit: Dr
|
|
161
|
+
} = Mr({
|
|
162
|
+
config: cr,
|
|
163
|
+
treeGridInstanceRef: l,
|
|
164
|
+
isTreeGridReady: A,
|
|
165
|
+
onValueChange: Cr
|
|
166
|
+
}), { errorTooltipElement: Br, showErrorTooltip: _r, hideErrorTooltip: g } = Nr();
|
|
167
|
+
I.current = {
|
|
168
|
+
onSelect: ue,
|
|
169
|
+
onRowClick: de,
|
|
170
|
+
onRowAdd: fe,
|
|
171
|
+
onRowDelete: me,
|
|
172
|
+
onBeforeRowUndelete: Se,
|
|
205
173
|
onRowUndelete: pe,
|
|
206
|
-
onRowChange:
|
|
207
|
-
onClickButton:
|
|
208
|
-
onSave:
|
|
209
|
-
onReady:
|
|
210
|
-
onAfterValueChanged:
|
|
211
|
-
onInternalButtonClick:
|
|
212
|
-
onInternalCellClick:
|
|
213
|
-
onInternalKeyDown:
|
|
214
|
-
onInternalStartEdit:
|
|
174
|
+
onRowChange: Re,
|
|
175
|
+
onClickButton: Te,
|
|
176
|
+
onSave: Ee,
|
|
177
|
+
onReady: Ce,
|
|
178
|
+
onAfterValueChanged: Ge,
|
|
179
|
+
onInternalButtonClick: gr,
|
|
180
|
+
onInternalCellClick: br,
|
|
181
|
+
onInternalKeyDown: yr,
|
|
182
|
+
onInternalStartEdit: Dr
|
|
215
183
|
};
|
|
216
|
-
const
|
|
217
|
-
visible:
|
|
184
|
+
const We = Vr({
|
|
185
|
+
visible: Q || X,
|
|
218
186
|
containerRef: _e,
|
|
219
|
-
treeGridInstanceRef:
|
|
187
|
+
treeGridInstanceRef: l,
|
|
220
188
|
debugId: e
|
|
221
|
-
}),
|
|
189
|
+
}), S = /* @__PURE__ */ n(() => {
|
|
222
190
|
D.current !== void 0 && (window.clearTimeout(D.current), D.current = void 0);
|
|
223
|
-
}, "clearBindingLoadingHideTimeout"),
|
|
224
|
-
|
|
191
|
+
}, "clearBindingLoadingHideTimeout"), Z = /* @__PURE__ */ n(() => {
|
|
192
|
+
B.current !== void 0 && (window.clearTimeout(B.current), B.current = void 0);
|
|
225
193
|
}, "clearBodyReloadStartTimeout");
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
var
|
|
229
|
-
((
|
|
194
|
+
N(() => {
|
|
195
|
+
const o = /* @__PURE__ */ n((i) => {
|
|
196
|
+
var T;
|
|
197
|
+
((T = i.detail) == null ? void 0 : T.gridId) === e && Me(or(l.current));
|
|
230
198
|
}, "handleBodyRowsChanged");
|
|
231
|
-
return window.addEventListener(
|
|
232
|
-
window.removeEventListener(
|
|
199
|
+
return window.addEventListener(Qe, o), () => {
|
|
200
|
+
window.removeEventListener(Qe, o);
|
|
233
201
|
};
|
|
234
|
-
}, [e]),
|
|
235
|
-
|
|
236
|
-
}, [
|
|
237
|
-
var
|
|
238
|
-
if (
|
|
239
|
-
return
|
|
202
|
+
}, [e]), N(() => {
|
|
203
|
+
u || (Z(), S(), G.current = null, _(!1));
|
|
204
|
+
}, [u]), N(() => {
|
|
205
|
+
var o;
|
|
206
|
+
if (k.id !== Ue.current && !V(l.current) && ((o = l.current) == null || o.Dispose(), l.current = null, Ue.current = k.id), !!V(l.current))
|
|
207
|
+
return xr({
|
|
240
208
|
id: e,
|
|
241
|
-
latestEventHandlersRef:
|
|
242
|
-
layoutHasExplicitEnterModeRef:
|
|
243
|
-
highlightEditableCellsRef:
|
|
244
|
-
highlightChangedCellsRef:
|
|
245
|
-
syncDeletedRowCanEditRef:
|
|
246
|
-
editableCellBackgroundColorValueRef:
|
|
247
|
-
changedCellBackgroundColorRef:
|
|
248
|
-
focusedCellBackgroundColorRef:
|
|
249
|
-
selectedCellBackgroundColorRef:
|
|
250
|
-
hoverCellBackgroundColorRef:
|
|
251
|
-
changedCellBaselineRef:
|
|
252
|
-
treeGridInstanceRef:
|
|
253
|
-
treeGridInitStartedAtRef:
|
|
254
|
-
latestLayoutOverridesRef:
|
|
255
|
-
latestToolbarTotalCountFormulaRef:
|
|
256
|
-
latestSuppressCfgRef:
|
|
257
|
-
latestHideChildHeaderSortButtonsRef:
|
|
258
|
-
latestSelectionScopeRef:
|
|
259
|
-
latestDisabledAnimationsRef:
|
|
260
|
-
appliedLayoutOverridesRef:
|
|
261
|
-
appliedBodyDataPropRef:
|
|
262
|
-
hasAppliedInitialLayoutRef:
|
|
263
|
-
syncHasDisplayDataRows:
|
|
264
|
-
setIsTreeGridReady:
|
|
265
|
-
showErrorTooltip:
|
|
266
|
-
hideErrorTooltip:
|
|
267
|
-
}),
|
|
268
|
-
useDataUrl: !!
|
|
269
|
-
bodyRowCount:
|
|
209
|
+
latestEventHandlersRef: I,
|
|
210
|
+
layoutHasExplicitEnterModeRef: we,
|
|
211
|
+
highlightEditableCellsRef: Pe,
|
|
212
|
+
highlightChangedCellsRef: J,
|
|
213
|
+
syncDeletedRowCanEditRef: Fe,
|
|
214
|
+
editableCellBackgroundColorValueRef: Ne,
|
|
215
|
+
changedCellBackgroundColorRef: Y,
|
|
216
|
+
focusedCellBackgroundColorRef: Ve,
|
|
217
|
+
selectedCellBackgroundColorRef: xe,
|
|
218
|
+
hoverCellBackgroundColorRef: He,
|
|
219
|
+
changedCellBaselineRef: w,
|
|
220
|
+
treeGridInstanceRef: l,
|
|
221
|
+
treeGridInitStartedAtRef: he,
|
|
222
|
+
latestLayoutOverridesRef: K,
|
|
223
|
+
latestToolbarTotalCountFormulaRef: ve,
|
|
224
|
+
latestSuppressCfgRef: Ie,
|
|
225
|
+
latestHideChildHeaderSortButtonsRef: Le,
|
|
226
|
+
latestSelectionScopeRef: Oe,
|
|
227
|
+
latestDisabledAnimationsRef: Ae,
|
|
228
|
+
appliedLayoutOverridesRef: L,
|
|
229
|
+
appliedBodyDataPropRef: O,
|
|
230
|
+
hasAppliedInitialLayoutRef: mr,
|
|
231
|
+
syncHasDisplayDataRows: je,
|
|
232
|
+
setIsTreeGridReady: pr,
|
|
233
|
+
showErrorTooltip: _r,
|
|
234
|
+
hideErrorTooltip: g
|
|
235
|
+
}), he.current = ee(), Xe(e, "init"), Ze(e, "TreeGrid init start", {
|
|
236
|
+
useDataUrl: !!ce,
|
|
237
|
+
bodyRowCount: te(c)
|
|
270
238
|
}), window.TreeGrid(
|
|
271
|
-
|
|
239
|
+
Hr({
|
|
272
240
|
id: e,
|
|
273
|
-
layoutUrl:
|
|
274
|
-
layoutData:
|
|
275
|
-
toolbarTotalCountFormula:
|
|
276
|
-
suppressCfg:
|
|
277
|
-
disabledAnimations:
|
|
278
|
-
dataUrl:
|
|
279
|
-
bodyData:
|
|
280
|
-
useDataUrl:
|
|
281
|
-
width:
|
|
282
|
-
height:
|
|
283
|
-
languageId:
|
|
241
|
+
layoutUrl: lr,
|
|
242
|
+
layoutData: H,
|
|
243
|
+
toolbarTotalCountFormula: $,
|
|
244
|
+
suppressCfg: x,
|
|
245
|
+
disabledAnimations: U,
|
|
246
|
+
dataUrl: ar,
|
|
247
|
+
bodyData: c,
|
|
248
|
+
useDataUrl: ce,
|
|
249
|
+
width: ne,
|
|
250
|
+
height: oe,
|
|
251
|
+
languageId: k.id
|
|
284
252
|
}),
|
|
285
253
|
e,
|
|
286
254
|
e
|
|
287
255
|
), () => {
|
|
288
|
-
|
|
289
|
-
var
|
|
290
|
-
(
|
|
256
|
+
g(), Xr(() => {
|
|
257
|
+
var i;
|
|
258
|
+
(i = l.current) == null || i.Dispose();
|
|
291
259
|
}, 200);
|
|
292
260
|
};
|
|
293
|
-
}, []),
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
261
|
+
}, []), Pr(() => {
|
|
262
|
+
const o = l.current, i = K.current, f = ke.current;
|
|
263
|
+
if (V(o) || !A)
|
|
296
264
|
return;
|
|
297
|
-
const
|
|
298
|
-
if (!(!
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
disableBodyReload: !!
|
|
265
|
+
const T = L.current !== i && !Zr(L.current, i), m = O.current !== f && (!z.current || b.current !== f);
|
|
266
|
+
if (!(!T && !m)) {
|
|
267
|
+
if (g(), T) {
|
|
268
|
+
const a = ee();
|
|
269
|
+
$r(o, i, m), L.current = i, er(e, "apply layout", a, {
|
|
270
|
+
disableBodyReload: !!m
|
|
303
271
|
});
|
|
304
272
|
}
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
273
|
+
if (m) {
|
|
274
|
+
const a = y.current + 1, h = /* @__PURE__ */ n(() => {
|
|
307
275
|
const p = b.current;
|
|
308
|
-
|
|
309
|
-
bodyRowCount:
|
|
310
|
-
}),
|
|
311
|
-
if (
|
|
276
|
+
B.current = void 0, q.current = ee(), Xe(e, "reload"), Ze(e, "ReloadBody start", {
|
|
277
|
+
bodyRowCount: te(p)
|
|
278
|
+
}), Ur(o, p, () => {
|
|
279
|
+
if (y.current !== a)
|
|
312
280
|
return;
|
|
313
|
-
|
|
314
|
-
bodyRowCount:
|
|
315
|
-
}),
|
|
316
|
-
const
|
|
317
|
-
if (!
|
|
318
|
-
|
|
281
|
+
O.current = p, w.current = /* @__PURE__ */ new WeakMap(), dt(o, w.current), je(o), er(e, "ReloadBody end", q.current, {
|
|
282
|
+
bodyRowCount: te(p)
|
|
283
|
+
}), q.current = null, b.current === p && (b.current = void 0, z.current = !1);
|
|
284
|
+
const Ke = G.current;
|
|
285
|
+
if (!u || Ke === null) {
|
|
286
|
+
G.current = null, _(!1);
|
|
319
287
|
return;
|
|
320
288
|
}
|
|
321
|
-
const
|
|
289
|
+
const ze = Math.max(
|
|
322
290
|
0,
|
|
323
|
-
|
|
291
|
+
Wr - (Date.now() - Ke)
|
|
324
292
|
);
|
|
325
|
-
if (
|
|
326
|
-
|
|
293
|
+
if (S(), ze === 0) {
|
|
294
|
+
G.current = null, _(!1);
|
|
327
295
|
return;
|
|
328
296
|
}
|
|
329
297
|
D.current = window.setTimeout(() => {
|
|
330
|
-
|
|
331
|
-
},
|
|
298
|
+
y.current === a && (D.current = void 0, G.current = null, _(!1));
|
|
299
|
+
}, ze);
|
|
332
300
|
});
|
|
333
301
|
}, "runBodyReload");
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}, 0)) :
|
|
302
|
+
y.current = a, b.current = f, z.current = !0, u && f !== void 0 ? (Z(), S(), G.current = Date.now(), _(!0), B.current = window.setTimeout(() => {
|
|
303
|
+
y.current === a && h();
|
|
304
|
+
}, 0)) : h();
|
|
337
305
|
}
|
|
338
306
|
}
|
|
339
|
-
}, [
|
|
340
|
-
|
|
341
|
-
}, [
|
|
342
|
-
const
|
|
343
|
-
width:
|
|
344
|
-
height:
|
|
345
|
-
treeGridTheme:
|
|
346
|
-
gridThemeConfig:
|
|
347
|
-
containerStyle:
|
|
348
|
-
tableBorderRadius:
|
|
307
|
+
}, [A, R, c, u, e, g]), N(() => () => {
|
|
308
|
+
g(), Z(), S();
|
|
309
|
+
}, [g]);
|
|
310
|
+
const P = zr({
|
|
311
|
+
width: ne,
|
|
312
|
+
height: oe,
|
|
313
|
+
treeGridTheme: s,
|
|
314
|
+
gridThemeConfig: W,
|
|
315
|
+
containerStyle: t,
|
|
316
|
+
tableBorderRadius: ie ? sr : void 0
|
|
349
317
|
});
|
|
350
|
-
return
|
|
318
|
+
return E !== void 0 && (P["--owp-tree-grid-toolbar-row-background-color"] = String(E)), (u || X) && (P.position = t != null && t.position && t.position !== "static" ? t.position : "relative", P.isolation = "isolate"), /* @__PURE__ */ vr(
|
|
351
319
|
"div",
|
|
352
320
|
{
|
|
353
321
|
ref: _e,
|
|
354
322
|
className: [
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
323
|
+
Jr,
|
|
324
|
+
ie && Yr,
|
|
325
|
+
d
|
|
358
326
|
].filter(Boolean).join(" "),
|
|
359
|
-
style:
|
|
327
|
+
style: P,
|
|
360
328
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
|
|
329
|
+
/* @__PURE__ */ F(Fr, { styles: Qr }),
|
|
330
|
+
/* @__PURE__ */ F("div", { id: e, className: v, style: et(ir, ["height", "width"]) }),
|
|
331
|
+
/* @__PURE__ */ F(
|
|
332
|
+
Kr,
|
|
365
333
|
{
|
|
366
|
-
visible:
|
|
367
|
-
message:
|
|
368
|
-
overlayFrame:
|
|
334
|
+
visible: X,
|
|
335
|
+
message: C("Message.조회된 결과가 없습니다."),
|
|
336
|
+
overlayFrame: We
|
|
369
337
|
}
|
|
370
338
|
),
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
|
|
339
|
+
/* @__PURE__ */ F(
|
|
340
|
+
qr,
|
|
373
341
|
{
|
|
374
|
-
visible:
|
|
375
|
-
overlayFrame:
|
|
342
|
+
visible: Q,
|
|
343
|
+
overlayFrame: We
|
|
376
344
|
}
|
|
377
345
|
),
|
|
378
|
-
|
|
379
|
-
|
|
346
|
+
Gr,
|
|
347
|
+
Br
|
|
380
348
|
]
|
|
381
349
|
}
|
|
382
350
|
);
|
|
383
351
|
}, "OwpTreeGrid");
|
|
384
352
|
export {
|
|
385
|
-
|
|
353
|
+
Ht as OwpTreeGrid
|
|
386
354
|
};
|
|
387
355
|
//# sourceMappingURL=OwpTreeGrid.js.map
|