@owp/core 2.5.31 → 2.5.33

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