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