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