@owp/core 2.5.59 → 2.5.61

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