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