@owp/core 2.5.54 → 2.5.55

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