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