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