@owp/core 2.5.42 → 2.5.45

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