@owp/core 2.5.53 → 2.5.54

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