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