@owp/core 2.5.53 → 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/components/OwpPicker/OwpTimePicker.js +223 -208
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/internal/DatePickerInput.js +56 -55
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +283 -273
- 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/hooks/useOwpTreeGridDatePickerEditor.js +189 -187
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1195 -1061
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +207 -182
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/defaultConfig.js +82 -81
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/gridTheme.js +37 -36
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/input.js +6 -0
- package/dist/constants/input.js.map +1 -0
- package/dist/constants/treeGrid.js +69 -49
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +57 -34
- 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/features/themePreview/configs/grid.js +26 -24
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +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/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/owp-app.css +1 -1
- package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +5 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/constants/input.d.ts +4 -0
- package/dist/types/constants/treeGrid.d.ts +40 -0
- package/dist/types/dayjs.d.ts +0 -2
- package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +0 -2
- package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +2 -0
- 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
|
|
11
|
-
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as
|
|
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
|
|
22
|
-
import { applyTreeGridLayoutToGrid as
|
|
23
|
-
import { OwpTreeGridAddedRowBoxOverlay as
|
|
24
|
-
import { OwpTreeGridLoadingOverlay as
|
|
25
|
-
import { OwpTreeGridNoDataOverlay as
|
|
26
|
-
import { OwpTreeGridScrollLoadingOverlay as
|
|
27
|
-
import { createTreeGridThemeContainerStyle as
|
|
28
|
-
import { isEmpty as
|
|
29
|
-
import { isEqual as
|
|
30
|
-
import { omit as
|
|
31
|
-
import { isPlainObject as
|
|
32
|
-
const
|
|
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
|
+
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Cr } from "../../utils/internal/treeGridBodyRowsEvent.js";
|
|
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
|
+
import { OwpTreeGridNoDataOverlay as gt } from "./internal/OwpTreeGridNoDataOverlay.js";
|
|
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
|
+
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 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
|
+
import { isPlainObject as Bt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
|
|
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:
|
|
72
|
-
height:
|
|
73
|
-
width:
|
|
75
|
+
containerClassName: f,
|
|
76
|
+
toolbarRowBackgroundColor: T,
|
|
77
|
+
className: G,
|
|
78
|
+
style: _r,
|
|
79
|
+
height: Ce = "100%",
|
|
80
|
+
width: ge = "100%",
|
|
74
81
|
canUseTableRadius: Ge = !1,
|
|
75
|
-
tableBorderRadius:
|
|
82
|
+
tableBorderRadius: wr = Zr,
|
|
76
83
|
suppressCfg: Z = 3,
|
|
77
|
-
showToolbarTotalCount:
|
|
78
|
-
hideChildHeaderSortButtons:
|
|
79
|
-
selectionScope:
|
|
80
|
-
layoutUrl:
|
|
84
|
+
showToolbarTotalCount: he = !0,
|
|
85
|
+
hideChildHeaderSortButtons: ve = !0,
|
|
86
|
+
selectionScope: ye = "native",
|
|
87
|
+
layoutUrl: Ir,
|
|
81
88
|
layoutData: ee,
|
|
82
|
-
disabledAnimations: re =
|
|
83
|
-
dataUrl:
|
|
84
|
-
layoutOverrides:
|
|
85
|
-
data:
|
|
89
|
+
disabledAnimations: re = Ht,
|
|
90
|
+
dataUrl: Or,
|
|
91
|
+
layoutOverrides: h,
|
|
92
|
+
data: m,
|
|
86
93
|
useDataUrl: be,
|
|
87
94
|
onSelect: De,
|
|
88
|
-
onRowClick:
|
|
89
|
-
onRowAdd:
|
|
90
|
-
onRowDelete:
|
|
91
|
-
onRowUndelete:
|
|
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
102
|
onReady: Se,
|
|
96
103
|
onAfterValueChanged: ke,
|
|
97
|
-
datePickerEditor:
|
|
104
|
+
datePickerEditor: Ar,
|
|
98
105
|
highlightEditableCells: Fe = !0,
|
|
99
|
-
highlightChangedCells:
|
|
100
|
-
syncDeletedRowCanEdit:
|
|
101
|
-
confirmDeletedRowRemoval:
|
|
102
|
-
loading:
|
|
103
|
-
showLoading:
|
|
106
|
+
highlightChangedCells: Pe = !0,
|
|
107
|
+
syncDeletedRowCanEdit: Ne = !0,
|
|
108
|
+
confirmDeletedRowRemoval: Sr = !0,
|
|
109
|
+
loading: H,
|
|
110
|
+
showLoading: u = !0
|
|
104
111
|
}) => {
|
|
105
|
-
var
|
|
106
|
-
const { t:
|
|
107
|
-
() =>
|
|
112
|
+
var mr, Rr;
|
|
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
|
-
),
|
|
115
|
-
|
|
116
|
-
), je = r(re),
|
|
117
|
-
title:
|
|
118
|
-
description:
|
|
119
|
-
okText:
|
|
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(
|
|
122
|
+
ye
|
|
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
128
|
onSelect: De,
|
|
122
|
-
onRowClick:
|
|
123
|
-
onRowAdd:
|
|
124
|
-
onRowDelete:
|
|
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
137
|
onReady: Se,
|
|
131
138
|
onAfterValueChanged: ke
|
|
132
|
-
}),
|
|
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
|
-
() =>
|
|
143
|
+
), [Nr, _] = A(!1), [Xe, Ze] = A(!1), [ce, xr] = A(!1), [de, Mr] = A(!1), q = tt(), a = vr(
|
|
144
|
+
() => Xr(ne),
|
|
138
145
|
[ne]
|
|
139
146
|
), er = r(
|
|
140
|
-
X(
|
|
147
|
+
X(a.editable.backgroundColor) ?? X(pr)
|
|
141
148
|
), ue = r(
|
|
142
|
-
|
|
143
|
-
), K = r(/* @__PURE__ */ new WeakMap()),
|
|
144
|
-
Ze(
|
|
145
|
-
}, "syncHasDisplayDataRows"),
|
|
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
156
|
grid: n,
|
|
150
|
-
row:
|
|
151
|
-
col:
|
|
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:
|
|
168
|
+
datePickerEditorElement: Ur,
|
|
169
|
+
handleDatePickerEditorButtonClick: zr,
|
|
170
|
+
handleDatePickerEditorCellClick: Wr,
|
|
171
|
+
handleDatePickerEditorKeyDown: jr,
|
|
172
|
+
handleDatePickerEditorStartEdit: $r
|
|
173
|
+
} = lt({
|
|
174
|
+
config: Ar,
|
|
175
|
+
treeGridInstanceRef: l,
|
|
169
176
|
isTreeGridReady: B,
|
|
170
|
-
onValueChange:
|
|
171
|
-
}), { errorTooltipElement:
|
|
177
|
+
onValueChange: Hr
|
|
178
|
+
}), { errorTooltipElement: qr, showErrorTooltip: Kr, hideErrorTooltip: w } = at();
|
|
172
179
|
U.current = {
|
|
173
180
|
onSelect: De,
|
|
174
|
-
onRowClick:
|
|
175
|
-
onRowAdd:
|
|
176
|
-
onRowDelete:
|
|
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
189
|
onReady: Se,
|
|
183
190
|
onAfterValueChanged: ke,
|
|
184
|
-
onInternalButtonClick:
|
|
185
|
-
onInternalCellClick:
|
|
186
|
-
onInternalKeyDown:
|
|
187
|
-
onInternalStartEdit:
|
|
191
|
+
onInternalButtonClick: zr,
|
|
192
|
+
onInternalCellClick: Wr,
|
|
193
|
+
onInternalKeyDown: jr,
|
|
194
|
+
onInternalStartEdit: $r
|
|
188
195
|
};
|
|
189
|
-
const
|
|
190
|
-
containerRef:
|
|
191
|
-
treeGridInstanceRef:
|
|
192
|
-
enabled: M &&
|
|
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
|
-
}),
|
|
200
|
-
containerRef:
|
|
201
|
-
treeGridInstanceRef:
|
|
206
|
+
}), fr = ct({
|
|
207
|
+
containerRef: F,
|
|
208
|
+
treeGridInstanceRef: l,
|
|
202
209
|
enabled: M && B
|
|
203
|
-
}),
|
|
204
|
-
|
|
205
|
-
}, "clearBindingLoadingHideTimeout"), J = /* @__PURE__ */
|
|
206
|
-
F.current !== void 0 && (window.clearTimeout(F.current), F.current = void 0);
|
|
207
|
-
}, "clearExternalLoadingHideTimeout"), Y = /* @__PURE__ */ s(() => {
|
|
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 n = /* @__PURE__ */
|
|
212
|
-
var
|
|
213
|
-
((
|
|
217
|
+
S(() => {
|
|
218
|
+
const n = /* @__PURE__ */ o((i) => {
|
|
219
|
+
var d;
|
|
220
|
+
((d = i.detail) == null ? void 0 : d.gridId) === e && Ze(Ee(l.current));
|
|
214
221
|
}, "handleBodyRowsChanged");
|
|
215
|
-
return window.addEventListener(
|
|
216
|
-
window.removeEventListener(
|
|
222
|
+
return window.addEventListener(Cr, n), () => {
|
|
223
|
+
window.removeEventListener(Cr, n);
|
|
217
224
|
};
|
|
218
|
-
}, [e]),
|
|
219
|
-
|
|
220
|
-
}, [
|
|
221
|
-
if (!
|
|
225
|
+
}, [e]), S(() => {
|
|
226
|
+
u || (J(), j.current = null, $(!1), Y(), V(), y.current = null, _(!1));
|
|
227
|
+
}, [u]), S(() => {
|
|
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,205 +235,208 @@ const bt = "NumberToString(count(5),',0')", Dt = ["Formula", "FormulaFormula"],
|
|
|
228
235
|
$(!1);
|
|
229
236
|
return;
|
|
230
237
|
}
|
|
231
|
-
J(), ce && (
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
}, [ce,
|
|
238
|
+
J(), ce && (P.current = window.setTimeout(() => {
|
|
239
|
+
P.current = void 0, j.current = null, $(!1);
|
|
240
|
+
}, br));
|
|
241
|
+
}, [ce, H, u]), S(() => {
|
|
235
242
|
if (!de || typeof window > "u")
|
|
236
243
|
return;
|
|
237
|
-
const n =
|
|
244
|
+
const n = F.current;
|
|
238
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
286
|
+
changedRowBackgroundColorRef: rr,
|
|
287
|
+
focusedRowBackgroundColorRef: tr,
|
|
288
|
+
focusedCellBackgroundColorRef: nr,
|
|
289
|
+
selectedCellBackgroundColorRef: or,
|
|
290
|
+
hoverCellBackgroundColorRef: ir,
|
|
291
|
+
hoverCellBorderColorRef: sr,
|
|
283
292
|
changedCellBaselineRef: K,
|
|
284
|
-
treeGridInstanceRef:
|
|
285
|
-
treeGridInitStartedAtRef:
|
|
293
|
+
treeGridInstanceRef: l,
|
|
294
|
+
treeGridInitStartedAtRef: Ve,
|
|
286
295
|
latestLayoutOverridesRef: se,
|
|
287
|
-
latestToolbarTotalCountFormulaRef:
|
|
296
|
+
latestToolbarTotalCountFormulaRef: He,
|
|
288
297
|
latestSuppressCfgRef: Ue,
|
|
289
298
|
latestHideChildHeaderSortButtonsRef: ze,
|
|
290
299
|
latestSelectionScopeRef: We,
|
|
291
300
|
latestDisabledAnimationsRef: je,
|
|
292
301
|
appliedLayoutOverridesRef: W,
|
|
293
|
-
appliedBodyDataPropRef:
|
|
302
|
+
appliedBodyDataPropRef: v,
|
|
294
303
|
hasAppliedInitialLayoutRef: Ke,
|
|
295
|
-
syncHasDisplayDataRows:
|
|
296
|
-
setIsTreeGridReady:
|
|
297
|
-
setCanRenderTreeGridOverlays:
|
|
298
|
-
setHasTreeGridSizeError:
|
|
299
|
-
showErrorTooltip:
|
|
300
|
-
hideErrorTooltip:
|
|
304
|
+
syncHasDisplayDataRows: dr,
|
|
305
|
+
setIsTreeGridReady: Fr,
|
|
306
|
+
setCanRenderTreeGridOverlays: xr,
|
|
307
|
+
setHasTreeGridSizeError: Mr,
|
|
308
|
+
showErrorTooltip: Kr,
|
|
309
|
+
hideErrorTooltip: w
|
|
301
310
|
});
|
|
302
|
-
const n =
|
|
303
|
-
|
|
311
|
+
const n = le.current;
|
|
312
|
+
Ve.current = Te(), gr(e, "init"), Gr(e, "TreeGrid init start", {
|
|
304
313
|
useDataUrl: !!be,
|
|
305
|
-
bodyRowCount:
|
|
314
|
+
bodyRowCount: pe(n)
|
|
306
315
|
});
|
|
307
|
-
const
|
|
308
|
-
|
|
316
|
+
const i = window.TreeGrid(
|
|
317
|
+
mt({
|
|
309
318
|
id: e,
|
|
310
|
-
layoutUrl:
|
|
319
|
+
layoutUrl: Ir,
|
|
311
320
|
layoutData: ee,
|
|
312
321
|
toolbarTotalCountFormula: oe,
|
|
313
322
|
suppressCfg: Z,
|
|
314
323
|
disabledAnimations: re,
|
|
315
|
-
dataUrl:
|
|
324
|
+
dataUrl: Or,
|
|
316
325
|
bodyData: n,
|
|
317
326
|
useDataUrl: be,
|
|
318
|
-
width:
|
|
319
|
-
height:
|
|
327
|
+
width: ge,
|
|
328
|
+
height: Ce,
|
|
320
329
|
languageId: q.id
|
|
321
330
|
}),
|
|
322
331
|
e,
|
|
323
332
|
e
|
|
324
333
|
);
|
|
325
|
-
return
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
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();
|
|
329
338
|
};
|
|
330
|
-
}, []),
|
|
331
|
-
const n =
|
|
332
|
-
if (
|
|
339
|
+
}, []), it(() => {
|
|
340
|
+
const n = l.current, i = se.current, c = le.current;
|
|
341
|
+
if (k(n) || !B)
|
|
333
342
|
return;
|
|
334
|
-
const
|
|
335
|
-
if (
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
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
|
|
340
349
|
});
|
|
341
350
|
}
|
|
342
|
-
if (
|
|
343
|
-
const
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
bodyRowCount:
|
|
347
|
-
}),
|
|
348
|
-
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)
|
|
349
358
|
return;
|
|
350
|
-
|
|
351
|
-
bodyRowCount:
|
|
352
|
-
}), ie.current = null,
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
355
|
-
|
|
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);
|
|
356
365
|
return;
|
|
357
366
|
}
|
|
358
|
-
const
|
|
367
|
+
const Tr = Math.max(
|
|
359
368
|
0,
|
|
360
|
-
|
|
369
|
+
br - (Date.now() - I)
|
|
361
370
|
);
|
|
362
|
-
if (
|
|
363
|
-
|
|
371
|
+
if (V(), Tr === 0) {
|
|
372
|
+
y.current = null, _(!1);
|
|
364
373
|
return;
|
|
365
374
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
},
|
|
375
|
+
N.current = window.setTimeout(() => {
|
|
376
|
+
L.current === s && (N.current = void 0, y.current = null, _(!1));
|
|
377
|
+
}, Tr);
|
|
369
378
|
});
|
|
370
379
|
}, "runBodyReload");
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}, 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();
|
|
374
383
|
}
|
|
375
384
|
}
|
|
376
|
-
}, [B,
|
|
377
|
-
|
|
378
|
-
}, [
|
|
379
|
-
const Q =
|
|
380
|
-
width:
|
|
381
|
-
height:
|
|
382
|
-
treeGridTheme:
|
|
385
|
+
}, [B, h, m, u, e, w]), S(() => () => {
|
|
386
|
+
w(), J(), Y(), V();
|
|
387
|
+
}, [w]);
|
|
388
|
+
const Q = ht({
|
|
389
|
+
width: ge,
|
|
390
|
+
height: Ce,
|
|
391
|
+
treeGridTheme: a,
|
|
383
392
|
gridThemeConfig: ne,
|
|
384
393
|
containerStyle: t,
|
|
385
|
-
tableBorderRadius: Ge ?
|
|
394
|
+
tableBorderRadius: Ge ? wr : void 0
|
|
386
395
|
});
|
|
387
|
-
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(
|
|
388
397
|
"div",
|
|
389
398
|
{
|
|
390
|
-
ref:
|
|
399
|
+
ref: F,
|
|
391
400
|
className: [
|
|
392
|
-
|
|
393
|
-
Ge &&
|
|
394
|
-
|
|
401
|
+
vt,
|
|
402
|
+
Ge && yt,
|
|
403
|
+
f
|
|
395
404
|
].filter(Boolean).join(" "),
|
|
396
405
|
style: Q,
|
|
397
406
|
children: [
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
/* @__PURE__ */
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
-
|
|
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(
|
|
411
|
+
gt,
|
|
403
412
|
{
|
|
404
|
-
visible:
|
|
405
|
-
message:
|
|
413
|
+
visible: cr,
|
|
414
|
+
message: b("Message.조회된 결과가 없습니다."),
|
|
406
415
|
overlayFrame: Re
|
|
407
416
|
}
|
|
408
417
|
),
|
|
409
|
-
/* @__PURE__ */
|
|
410
|
-
|
|
418
|
+
/* @__PURE__ */ O(
|
|
419
|
+
Gt,
|
|
411
420
|
{
|
|
412
|
-
visible:
|
|
413
|
-
overlayFrame:
|
|
421
|
+
visible: Jr,
|
|
422
|
+
overlayFrame: ur ?? Re,
|
|
423
|
+
panelLeftInset: Ft(l.current)
|
|
414
424
|
}
|
|
415
425
|
),
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
|
|
426
|
+
/* @__PURE__ */ O(
|
|
427
|
+
Ct,
|
|
418
428
|
{
|
|
419
|
-
visible:
|
|
429
|
+
visible: ar,
|
|
420
430
|
overlayFrame: Re
|
|
421
431
|
}
|
|
422
432
|
),
|
|
423
|
-
|
|
424
|
-
|
|
433
|
+
Ur,
|
|
434
|
+
qr
|
|
425
435
|
]
|
|
426
436
|
}
|
|
427
437
|
);
|
|
428
438
|
}, "OwpTreeGrid");
|
|
429
439
|
export {
|
|
430
|
-
|
|
440
|
+
Gn as OwpTreeGrid
|
|
431
441
|
};
|
|
432
442
|
//# sourceMappingURL=OwpTreeGrid.js.map
|