@owp/core 2.2.2 → 2.2.3

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 (58) 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/index15.js +5 -2
  6. package/dist/_virtual/index15.js.map +1 -1
  7. package/dist/_virtual/index16.js +2 -5
  8. package/dist/_virtual/index16.js.map +1 -1
  9. package/dist/_virtual/index17.js +2 -2
  10. package/dist/components/OwpMrtTable/OwpMrtTable.js +223 -196
  11. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  12. package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js +53 -0
  13. package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js.map +1 -0
  14. package/dist/components/OwpSection/OwpSection.js +35 -35
  15. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  16. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +291 -192
  17. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  18. package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js +48 -46
  19. package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
  20. package/dist/components/OwpTreeGrid/perf.js +31 -0
  21. package/dist/components/OwpTreeGrid/perf.js.map +1 -0
  22. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +34 -0
  23. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -0
  24. package/dist/index.js +25 -23
  25. package/dist/index.js.map +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  30. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  31. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  32. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  33. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  34. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  35. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  36. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  37. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
  38. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  39. 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
  40. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +2 -0
  41. package/dist/types/components/OwpMrtTable/OwpMrtTableNoDataOverlay.d.ts +14 -0
  42. package/dist/types/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.d.ts +2 -1
  43. package/dist/types/components/OwpTreeGrid/perf.d.ts +30 -0
  44. package/dist/types/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.d.ts +13 -0
  45. package/dist/types/components/OwpTreeGridResetChangesButton/index.d.ts +1 -0
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/utils/index.d.ts +1 -0
  48. package/dist/types/utils/preloadOnIdle.d.ts +7 -0
  49. package/dist/types/utils/treeGridBodyRowsEvent.d.ts +9 -0
  50. package/dist/utils/preloadOnIdle.js +27 -0
  51. package/dist/utils/preloadOnIdle.js.map +1 -0
  52. package/dist/utils/treeGridBodyRowsEvent.js +14 -0
  53. package/dist/utils/treeGridBodyRowsEvent.js.map +1 -0
  54. package/dist/utils/treeGridUtil.js +79 -72
  55. package/dist/utils/treeGridUtil.js.map +1 -1
  56. package/dist/utils.js +64 -62
  57. package/dist/utils.js.map +1 -1
  58. package/package.json +1 -1
@@ -1,20 +1,22 @@
1
- var W = Object.defineProperty;
2
- var o = (r, i) => W(r, "name", { value: i, configurable: !0 });
3
- import { jsx as n, jsxs as T, Fragment as x } 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 V from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js";
5
- import X from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js";
6
- import _ from "@mui/material/GlobalStyles";
7
- import { useGetCurrentLanguage as $ } from "../../hooks/useCurrentLanguage.js";
8
- import { clsx as E } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
9
- import { MaterialReactTable as y, useMaterialReactTable as U, MRT_BottomToolbar as q } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
10
- import { MRT_Localization_KO as K } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js";
11
- import { OwpTableTotalCount as Y } from "../OwpTable/OwpTable.js";
12
- import J from "./OwpMrtTableTopToolbar.js";
13
- import { defaults as C } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js";
14
- import { isNumber as Q } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
15
- import { OwpSvgIcon as l } from "../OwpSvgIcon/OwpSvgIcon.js";
16
- import { isArray as w } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
17
- const g = "#586980", b = "#cbd5e1", Z = {
1
+ var K = Object.defineProperty;
2
+ var o = (e, n) => K(e, "name", { value: n, configurable: !0 });
3
+ import { jsx as l, jsxs as M, Fragment as T } 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 Y from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js";
5
+ import J from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js";
6
+ import Q from "@mui/material/GlobalStyles";
7
+ import { useGetCurrentLanguage as Z } from "../../hooks/useCurrentLanguage.js";
8
+ import { useOwpTranslation as oo } from "../../hooks/useOwpTranslation.js";
9
+ import { clsx as eo } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
10
+ import { MaterialReactTable as z, useMaterialReactTable as ro, MRT_BottomToolbar as to } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
11
+ import { MRT_Localization_KO as lo } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js";
12
+ import { OwpTableTotalCount as no } from "../OwpTable/OwpTable.js";
13
+ import { OwpMrtTableNoDataOverlay as io } from "./OwpMrtTableNoDataOverlay.js";
14
+ import ao from "./OwpMrtTableTopToolbar.js";
15
+ import { isArray as f } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
16
+ import { defaults as I } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js";
17
+ import { isNumber as so } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
18
+ import { OwpSvgIcon as a } from "../OwpSvgIcon/OwpSvgIcon.js";
19
+ const C = "#586980", b = "#cbd5e1", co = {
18
20
  "@font-face": {
19
21
  fontFamily: "RobotoLight",
20
22
  fontStyle: "normal",
@@ -27,56 +29,56 @@ const g = "#586980", b = "#cbd5e1", Z = {
27
29
  fontSize: "14px",
28
30
  fontWeight: "normal",
29
31
  lineHeight: "16px"
30
- }, ee = /* @__PURE__ */ o((...r) => {
31
- const i = r.flatMap((e) => e ? w(e) ? e : [e] : []);
32
- if (i.length !== 0)
33
- return (e) => i.reduce((d, c) => {
34
- const a = typeof c == "function" ? c(e) : c;
35
- return !a || w(a) ? d : {
36
- ...d,
37
- ...a
32
+ }, uo = /* @__PURE__ */ o((...e) => {
33
+ const n = e.flatMap((i) => i ? f(i) ? i : [i] : []);
34
+ if (n.length !== 0)
35
+ return (i) => n.reduce((c, s) => {
36
+ const r = typeof s == "function" ? s(i) : s;
37
+ return !r || f(r) ? c : {
38
+ ...c,
39
+ ...r
38
40
  };
39
41
  }, {});
40
- }, "mergeSxValues"), oe = /* @__PURE__ */ o((r, i) => typeof r == "function" ? r(i) : r, "resolvePropValue"), re = /* @__PURE__ */ o((...r) => {
41
- const i = r.filter(Boolean), e = i.reduce((a, u) => ({
42
- ...a,
43
- ...u
44
- }), {}), d = E(i.map((a) => a.className)), c = ee(...i.map((a) => a.sx));
45
- return d && (e.className = d), c && (e.sx = c), e;
46
- }, "mergeComponentProps"), s = /* @__PURE__ */ o((r, ...i) => re(
47
- ...i.map((e) => oe(e, r))
48
- ), "mergeResolvedProps"), te = {
49
- ArrowDownwardIcon: /* @__PURE__ */ o((r) => /* @__PURE__ */ n(l, { size: 20, ...r, children: "heroicons-outline:arrow-down-circle" }), "ArrowDownwardIcon"),
50
- ClearAllIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:adjustments-horizontal" }), "ClearAllIcon"),
51
- DensityLargeIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:bars-3-bottom-left" }), "DensityLargeIcon"),
52
- DensityMediumIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:bars-3" }), "DensityMediumIcon"),
53
- DensitySmallIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:bars-2" }), "DensitySmallIcon"),
54
- DragHandleIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { className: "rotate-45", size: 14, children: "heroicons-outline:arrows-pointing-out" }), "DragHandleIcon"),
55
- FilterListIcon: /* @__PURE__ */ o((r) => /* @__PURE__ */ n(l, { size: 16, ...r, children: "heroicons-outline:funnel" }), "FilterListIcon"),
56
- FilterListOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:funnel" }), "FilterListOffIcon"),
57
- FullscreenExitIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:arrows-pointing-in" }), "FullscreenExitIcon"),
58
- FullscreenIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:arrows-pointing-out" }), "FullscreenIcon"),
59
- SearchIcon: /* @__PURE__ */ o((r) => /* @__PURE__ */ n(l, { color: "action", size: 20, ...r, children: "heroicons-outline:magnifying-glass" }), "SearchIcon"),
60
- SearchOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:magnifying-glass" }), "SearchOffIcon"),
61
- ViewColumnIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:view-columns" }), "ViewColumnIcon"),
62
- MoreVertIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:ellipsis-vertical" }), "MoreVertIcon"),
63
- MoreHorizIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:ellipsis-horizontal" }), "MoreHorizIcon"),
64
- SortIcon: /* @__PURE__ */ o((r) => /* @__PURE__ */ n(l, { size: 20, ...r, children: "heroicons-outline:arrows-up-down" }), "SortIcon"),
65
- PushPinIcon: /* @__PURE__ */ o((r) => /* @__PURE__ */ n(l, { size: 20, ...r, children: "heroicons-outline:bookmark" }), "PushPinIcon"),
66
- VisibilityOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ n(l, { size: 20, children: "heroicons-outline:eye-slash" }), "VisibilityOffIcon")
67
- }, ie = /* @__PURE__ */ o((r) => /* @__PURE__ */ n(V, { fontSize: "small", ...r }), "TreeGridArrowDownwardIcon"), ne = /* @__PURE__ */ o((r) => {
68
- const { direction: i, ...e } = r;
69
- return /* @__PURE__ */ n(X, { fontSize: "small", ...e });
70
- }, "TreeGridSyncAltIcon"), le = {
71
- ArrowDownwardIcon: ie,
72
- SyncAltIcon: ne
73
- }, ae = {
42
+ }, "mergeSxValues"), po = /* @__PURE__ */ o((e, n) => typeof e == "function" ? e(n) : e, "resolvePropValue"), bo = /* @__PURE__ */ o((...e) => {
43
+ const n = e.filter(Boolean), i = n.reduce((r, g) => ({
44
+ ...r,
45
+ ...g
46
+ }), {}), c = eo(n.map((r) => r.className)), s = uo(...n.map((r) => r.sx));
47
+ return c && (i.className = c), s && (i.sx = s), i;
48
+ }, "mergeComponentProps"), d = /* @__PURE__ */ o((e, ...n) => bo(
49
+ ...n.map((i) => po(i, e))
50
+ ), "mergeResolvedProps"), mo = {
51
+ ArrowDownwardIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 20, ...e, children: "heroicons-outline:arrow-down-circle" }), "ArrowDownwardIcon"),
52
+ ClearAllIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:adjustments-horizontal" }), "ClearAllIcon"),
53
+ DensityLargeIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:bars-3-bottom-left" }), "DensityLargeIcon"),
54
+ DensityMediumIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:bars-3" }), "DensityMediumIcon"),
55
+ DensitySmallIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:bars-2" }), "DensitySmallIcon"),
56
+ DragHandleIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { className: "rotate-45", size: 14, children: "heroicons-outline:arrows-pointing-out" }), "DragHandleIcon"),
57
+ FilterListIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 16, ...e, children: "heroicons-outline:funnel" }), "FilterListIcon"),
58
+ FilterListOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:funnel" }), "FilterListOffIcon"),
59
+ FullscreenExitIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:arrows-pointing-in" }), "FullscreenExitIcon"),
60
+ FullscreenIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:arrows-pointing-out" }), "FullscreenIcon"),
61
+ SearchIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { color: "action", size: 20, ...e, children: "heroicons-outline:magnifying-glass" }), "SearchIcon"),
62
+ SearchOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:magnifying-glass" }), "SearchOffIcon"),
63
+ ViewColumnIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:view-columns" }), "ViewColumnIcon"),
64
+ MoreVertIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:ellipsis-vertical" }), "MoreVertIcon"),
65
+ MoreHorizIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:ellipsis-horizontal" }), "MoreHorizIcon"),
66
+ SortIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 20, ...e, children: "heroicons-outline:arrows-up-down" }), "SortIcon"),
67
+ PushPinIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 20, ...e, children: "heroicons-outline:bookmark" }), "PushPinIcon"),
68
+ VisibilityOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:eye-slash" }), "VisibilityOffIcon")
69
+ }, fo = /* @__PURE__ */ o((e) => /* @__PURE__ */ l(Y, { fontSize: "small", ...e }), "TreeGridArrowDownwardIcon"), go = /* @__PURE__ */ o((e) => {
70
+ const { direction: n, ...i } = e;
71
+ return /* @__PURE__ */ l(J, { fontSize: "small", ...i });
72
+ }, "TreeGridSyncAltIcon"), ho = {
73
+ ArrowDownwardIcon: fo,
74
+ SyncAltIcon: go
75
+ }, To = {
74
76
  className: "flex items-center min-h-56 h-56"
75
- }, se = {
77
+ }, Co = {
76
78
  elevation: 0,
77
79
  square: !0,
78
80
  className: "flex flex-col flex-auto h-full"
79
- }, de = {
81
+ }, xo = {
80
82
  sx: {
81
83
  display: "flex",
82
84
  height: "100%",
@@ -86,35 +88,46 @@ const g = "#586980", b = "#cbd5e1", Z = {
86
88
  borderRadius: 0,
87
89
  boxShadow: "none"
88
90
  }
89
- }, ce = {
91
+ }, wo = {
92
+ sx: {
93
+ border: 0
94
+ }
95
+ }, vo = {
96
+ sx: {
97
+ borderTop: "1px solid",
98
+ borderRight: "1px solid",
99
+ borderLeft: "1px solid",
100
+ borderColor: "divider"
101
+ }
102
+ }, yo = {
90
103
  className: "flex-auto"
91
- }, ue = {
104
+ }, Po = {
92
105
  sx: {
93
106
  flex: 1,
94
107
  minHeight: 0,
95
108
  overflowX: "hidden"
96
109
  }
97
- }, pe = {
110
+ }, So = {
98
111
  sx: {
99
- backgroundColor: g,
112
+ backgroundColor: C,
100
113
  boxShadow: "none"
101
114
  }
102
- }, P = {
115
+ }, R = {
103
116
  className: "w-48"
104
- }, v = {
117
+ }, k = {
105
118
  sx: {
106
119
  display: "flex",
107
120
  m: 0,
108
121
  mx: "auto"
109
122
  }
110
- }, be = {
123
+ }, Bo = {
111
124
  sx: {
112
125
  borderSpacing: 0,
113
126
  width: "100%",
114
127
  tableLayout: "fixed",
115
128
  "& .MuiTableHead-root .MuiTableCell-root": {
116
129
  ...m,
117
- backgroundColor: g,
130
+ backgroundColor: C,
118
131
  borderTop: "1px solid",
119
132
  py: 0.75,
120
133
  borderRight: "1px solid",
@@ -145,28 +158,28 @@ const g = "#586980", b = "#cbd5e1", Z = {
145
158
  borderRight: "none"
146
159
  }
147
160
  }
148
- }, me = /* @__PURE__ */ o(({
149
- row: r,
150
- table: i
161
+ }, Mo = /* @__PURE__ */ o(({
162
+ row: e,
163
+ table: n
151
164
  }) => {
152
- const { density: e } = i.getState();
153
- return e === "compact" ? {
165
+ const { density: i } = n.getState();
166
+ return i === "compact" ? {
154
167
  sx: {
155
168
  backgroundColor: "initial",
156
169
  opacity: 1,
157
170
  boxShadow: "none",
158
- height: r.getIsPinned() ? "37px" : void 0
171
+ height: e.getIsPinned() ? "37px" : void 0
159
172
  }
160
173
  } : {
161
174
  sx: {
162
175
  backgroundColor: "initial",
163
176
  opacity: 1,
164
177
  boxShadow: "none",
165
- height: r.getIsPinned() ? `${e === "comfortable" ? 53 : 69}px` : void 0
178
+ height: e.getIsPinned() ? `${i === "comfortable" ? 53 : 69}px` : void 0
166
179
  }
167
180
  };
168
- }, "getDefaultBodyRowProps"), fe = /* @__PURE__ */ o(({
169
- column: r
181
+ }, "getDefaultBodyRowProps"), Io = /* @__PURE__ */ o(({
182
+ column: e
170
183
  }) => ({
171
184
  sx: {
172
185
  "& .Mui-TableHeadCell-Content-Labels": {
@@ -181,27 +194,27 @@ const g = "#586980", b = "#cbd5e1", Z = {
181
194
  "& .MuiFormHelperText-root": {
182
195
  textAlign: "center",
183
196
  marginX: 0,
184
- color: /* @__PURE__ */ o((i) => i.palette.text.disabled, "color"),
197
+ color: /* @__PURE__ */ o((n) => n.palette.text.disabled, "color"),
185
198
  fontSize: 11
186
199
  },
187
- backgroundColor: /* @__PURE__ */ o((i) => r.getIsPinned() ? i.palette.background.paper : "inherit", "backgroundColor")
200
+ backgroundColor: /* @__PURE__ */ o((n) => e.getIsPinned() ? n.palette.background.paper : "inherit", "backgroundColor")
188
201
  }
189
- }), "getDefaultHeadCellProps"), ge = /* @__PURE__ */ o(({
190
- column: r
202
+ }), "getDefaultHeadCellProps"), Ro = /* @__PURE__ */ o(({
203
+ column: e
191
204
  }) => {
192
- const i = r.id === "mrt-row-select", e = r.getIsFirstColumn(), d = r.getIsLastColumn();
205
+ const n = e.id === "mrt-row-select", i = e.getIsFirstColumn(), c = e.getIsLastColumn();
193
206
  return {
194
207
  align: "center",
195
208
  sx: {
196
209
  ...m,
197
- backgroundColor: g,
210
+ backgroundColor: C,
198
211
  borderTop: "1px solid",
199
212
  borderTopColor: "divider",
200
- ...e ? {
213
+ ...i ? {
201
214
  borderLeft: "1px solid",
202
215
  borderLeftColor: "divider"
203
216
  } : {},
204
- ...d ? {
217
+ ...c ? {
205
218
  borderRight: "1px solid",
206
219
  borderRightColor: "divider"
207
220
  } : {},
@@ -223,7 +236,7 @@ const g = "#586980", b = "#cbd5e1", Z = {
223
236
  overflow: "hidden",
224
237
  position: "relative",
225
238
  pl: 0,
226
- pr: i ? 0 : "24px",
239
+ pr: n ? 0 : "24px",
227
240
  width: "100%"
228
241
  },
229
242
  "& .Mui-TableHeadCell-Content-Wrapper": {
@@ -233,7 +246,7 @@ const g = "#586980", b = "#cbd5e1", Z = {
233
246
  textOverflow: "ellipsis",
234
247
  whiteSpace: "nowrap"
235
248
  },
236
- "&& .MuiBadge-root": i ? void 0 : {
249
+ "&& .MuiBadge-root": n ? void 0 : {
237
250
  alignItems: "center",
238
251
  display: "inline-flex",
239
252
  justifyContent: "center",
@@ -268,15 +281,15 @@ const g = "#586980", b = "#cbd5e1", Z = {
268
281
  opacity: "1 !important",
269
282
  overflow: "visible"
270
283
  },
271
- "& .MuiButtonBase-root": i ? {
284
+ "& .MuiButtonBase-root": n ? {
272
285
  display: "flex",
273
286
  margin: "0 auto"
274
287
  } : void 0
275
288
  }
276
289
  };
277
- }, "getTreeGridHeadCellProps"), he = /* @__PURE__ */ o(({
278
- column: r
279
- }) => r.id !== "mrt-row-select" ? {} : {
290
+ }, "getTreeGridHeadCellProps"), ko = /* @__PURE__ */ o(({
291
+ column: e
292
+ }) => e.id !== "mrt-row-select" ? {} : {
280
293
  align: "center",
281
294
  sx: {
282
295
  "& > .MuiButtonBase-root, & .MuiButtonBase-root": {
@@ -285,34 +298,37 @@ const g = "#586980", b = "#cbd5e1", Z = {
285
298
  }
286
299
  }
287
300
  }, "getTreeGridBodyCellProps");
288
- function Te(r) {
289
- const {
290
- canTotalCountRow: i = !1,
291
- canUseTreeGridStyle: e = !1,
292
- columns: d,
293
- data: c,
294
- totalCount: a,
295
- ...u
296
- } = r, {
297
- icons: S,
298
- initialState: B,
299
- muiBottomToolbarProps: M,
300
- muiSelectAllCheckboxProps: I,
301
- muiSelectCheckboxProps: R,
302
- muiTableBodyCellProps: k,
303
- muiTableBodyRowProps: z,
304
- muiTableContainerProps: H,
305
- muiTableHeadCellProps: F,
306
- muiTablePaperProps: G,
307
- muiTableProps: L,
301
+ function zo(e) {
302
+ const { t: n } = oo(), {
303
+ canHideTotalCountFooterBorder: i = !1,
304
+ canUseNoDataOverlay: c = !1,
305
+ canTotalCountRow: s = !1,
306
+ canUseTreeGridStyle: r = !1,
307
+ columns: g,
308
+ data: u,
309
+ totalCount: x,
310
+ ...w
311
+ } = e, {
312
+ icons: F,
313
+ initialState: H,
314
+ muiBottomToolbarProps: L,
315
+ muiSelectAllCheckboxProps: D,
316
+ muiSelectCheckboxProps: G,
317
+ muiTableBodyCellProps: O,
318
+ muiTableBodyRowProps: A,
319
+ muiTableContainerProps: N,
320
+ muiTableHeadCellProps: j,
321
+ muiTablePaperProps: W,
322
+ muiTableProps: V,
308
323
  renderBottomToolbar: p,
309
- ...A
310
- } = u, h = C(
311
- { ...B ?? {} },
324
+ renderEmptyRowsFallback: E,
325
+ ...U
326
+ } = w, v = f(u) ? u : [], X = f(u) && u.length === 0, y = s && (r || i), P = r || c, S = I(
327
+ { ...H ?? {} },
312
328
  {
313
- density: e ? "compact" : "spacious",
329
+ density: r ? "compact" : "spacious",
314
330
  showColumnFilters: !1,
315
- showGlobalFilter: !e,
331
+ showGlobalFilter: !r,
316
332
  columnPinning: {
317
333
  left: ["mrt-row-expand", "mrt-row-select"],
318
334
  right: ["mrt-row-actions"]
@@ -322,32 +338,32 @@ function Te(r) {
322
338
  },
323
339
  enableFullScreenToggle: !1
324
340
  }
325
- ), f = C(
341
+ ), h = I(
326
342
  {
327
- ...A,
328
- initialState: h
343
+ ...U,
344
+ initialState: S
329
345
  },
330
346
  {
331
- initialState: h,
332
- layoutMode: e ? "semantic" : void 0,
333
- enableTopToolbar: e ? !1 : void 0,
334
- enableColumnActions: e ? !1 : void 0,
335
- enableColumnDragging: e ? !1 : void 0,
336
- enableColumnFilters: e ? !1 : void 0,
337
- enableColumnOrdering: !e,
338
- enableDensityToggle: e ? !1 : void 0,
347
+ initialState: S,
348
+ layoutMode: r ? "semantic" : void 0,
349
+ enableTopToolbar: r ? !1 : void 0,
350
+ enableColumnActions: r ? !1 : void 0,
351
+ enableColumnDragging: r ? !1 : void 0,
352
+ enableColumnFilters: r ? !1 : void 0,
353
+ enableColumnOrdering: !r,
354
+ enableDensityToggle: r ? !1 : void 0,
339
355
  enableFullScreenToggle: !1,
340
- enableGlobalFilter: e ? !1 : void 0,
341
- enableGrouping: !e,
342
- enableHiding: e ? !1 : void 0,
343
- enableColumnPinning: !e,
344
- enableFacetedValues: !e,
345
- enableRowActions: !e,
356
+ enableGlobalFilter: r ? !1 : void 0,
357
+ enableGrouping: !r,
358
+ enableHiding: r ? !1 : void 0,
359
+ enableColumnPinning: !r,
360
+ enableFacetedValues: !r,
361
+ enableRowActions: !r,
346
362
  enableRowSelection: !0,
347
- enableRowDragging: e ? !1 : void 0,
348
- enableRowOrdering: e ? !1 : void 0,
363
+ enableRowDragging: r ? !1 : void 0,
364
+ enableRowOrdering: r ? !1 : void 0,
349
365
  enableStickyHeader: !0,
350
- enableToolbarInternalActions: e ? !1 : void 0,
366
+ enableToolbarInternalActions: r ? !1 : void 0,
351
367
  paginationDisplayMode: "pages",
352
368
  positionToolbarAlertBanner: "top",
353
369
  muiPaginationProps: {
@@ -380,95 +396,106 @@ function Te(r) {
380
396
  pinnedRowBackgroundColor: t.palette.background.paper,
381
397
  pinnedColumnBackgroundColor: t.palette.background.paper
382
398
  }), "mrtTheme"),
383
- renderTopToolbar: /* @__PURE__ */ o((t) => /* @__PURE__ */ n(J, { ...t }), "renderTopToolbar")
399
+ renderTopToolbar: /* @__PURE__ */ o((t) => /* @__PURE__ */ l(ao, { ...t }), "renderTopToolbar")
384
400
  }
385
- ), D = f.enableBottomToolbar !== !1, O = Q(a) ? a : c.length, N = /* @__PURE__ */ o((t) => D ? typeof p == "function" ? p({ table: t }) : p ?? /* @__PURE__ */ n(q, { table: t }) : null, "renderBaseBottomToolbar"), j = U({
386
- ...f,
387
- columns: d,
388
- data: c,
389
- enableBottomToolbar: i ? !0 : f.enableBottomToolbar,
401
+ ), _ = h.enableBottomToolbar !== !1, $ = so(x) ? x : v.length, q = /* @__PURE__ */ o((t) => _ ? typeof p == "function" ? p({ table: t }) : p ?? /* @__PURE__ */ l(to, { table: t }) : null, "renderBaseBottomToolbar"), B = ro({
402
+ ...h,
403
+ columns: g,
404
+ data: v,
405
+ enableBottomToolbar: s ? !0 : h.enableBottomToolbar,
390
406
  icons: {
391
- ...te,
392
- ...e ? le : {},
393
- ...S ?? {}
407
+ ...mo,
408
+ ...r ? ho : {},
409
+ ...F ?? {}
394
410
  },
395
- muiBottomToolbarProps: /* @__PURE__ */ o((t) => s(
411
+ muiBottomToolbarProps: /* @__PURE__ */ o((t) => d(
396
412
  t,
397
- ae,
398
- M
413
+ To,
414
+ L
399
415
  ), "muiBottomToolbarProps"),
400
- muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) => s(
416
+ muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) => d(
401
417
  t,
402
- P,
403
- e ? v : void 0,
404
- I
418
+ R,
419
+ r ? k : void 0,
420
+ D
405
421
  ), "muiSelectAllCheckboxProps"),
406
- muiSelectCheckboxProps: /* @__PURE__ */ o((t) => s(
422
+ muiSelectCheckboxProps: /* @__PURE__ */ o((t) => d(
407
423
  t,
408
- P,
409
- e ? v : void 0,
410
- R
424
+ R,
425
+ r ? k : void 0,
426
+ G
411
427
  ), "muiSelectCheckboxProps"),
412
- muiTableBodyCellProps: /* @__PURE__ */ o((t) => s(
428
+ muiTableBodyCellProps: /* @__PURE__ */ o((t) => d(
413
429
  t,
414
- e ? he : void 0,
415
- k
430
+ r ? ko : void 0,
431
+ O
416
432
  ), "muiTableBodyCellProps"),
417
- muiTableBodyRowProps: /* @__PURE__ */ o((t) => s(
433
+ muiTableBodyRowProps: /* @__PURE__ */ o((t) => d(
418
434
  t,
419
- me,
420
- z
435
+ Mo,
436
+ A
421
437
  ), "muiTableBodyRowProps"),
422
- muiTableContainerProps: /* @__PURE__ */ o((t) => s(
438
+ muiTableContainerProps: /* @__PURE__ */ o((t) => d(
423
439
  t,
424
- ce,
425
- e ? ue : void 0,
426
- H
440
+ yo,
441
+ r ? Po : void 0,
442
+ N,
443
+ y ? vo : void 0
427
444
  ), "muiTableContainerProps"),
428
- muiTableHeadRowProps: /* @__PURE__ */ o((t) => s(
445
+ muiTableHeadRowProps: /* @__PURE__ */ o((t) => d(
429
446
  t,
430
- e ? pe : void 0,
431
- u.muiTableHeadRowProps
447
+ r ? So : void 0,
448
+ w.muiTableHeadRowProps
432
449
  ), "muiTableHeadRowProps"),
433
- muiTableHeadCellProps: /* @__PURE__ */ o((t) => s(
450
+ muiTableHeadCellProps: /* @__PURE__ */ o((t) => d(
434
451
  t,
435
- fe,
436
- e ? ge : void 0,
437
- F
452
+ Io,
453
+ r ? Ro : void 0,
454
+ j
438
455
  ), "muiTableHeadCellProps"),
439
- muiTablePaperProps: /* @__PURE__ */ o((t) => s(
456
+ muiTablePaperProps: /* @__PURE__ */ o((t) => d(
440
457
  t,
441
- se,
442
- e ? de : void 0,
443
- G
458
+ Co,
459
+ r ? xo : void 0,
460
+ W,
461
+ y ? wo : void 0
444
462
  ), "muiTablePaperProps"),
445
- muiTableProps: /* @__PURE__ */ o((t) => s(
463
+ muiTableProps: /* @__PURE__ */ o((t) => d(
446
464
  t,
447
- e ? be : void 0,
448
- L
465
+ r ? Bo : void 0,
466
+ V
449
467
  ), "muiTableProps"),
450
- renderBottomToolbar: i ? ({ table: t }) => /* @__PURE__ */ T(x, { children: [
451
- N(t),
452
- /* @__PURE__ */ n(Y, { totalCount: O })
453
- ] }) : p
468
+ renderBottomToolbar: s ? ({ table: t }) => /* @__PURE__ */ M(T, { children: [
469
+ q(t),
470
+ /* @__PURE__ */ l(no, { totalCount: $ })
471
+ ] }) : p,
472
+ renderEmptyRowsFallback: P ? () => /* @__PURE__ */ l(T, {}) : E
454
473
  });
455
- return /* @__PURE__ */ T(x, { children: [
456
- e && /* @__PURE__ */ n(_, { styles: Z }),
457
- /* @__PURE__ */ n(y, { table: j })
474
+ return /* @__PURE__ */ M(T, { children: [
475
+ r && /* @__PURE__ */ l(Q, { styles: co }),
476
+ /* @__PURE__ */ l(z, { table: B }),
477
+ P && /* @__PURE__ */ l(
478
+ io,
479
+ {
480
+ visible: X,
481
+ message: n("Message.조회된 결과가 없습니다."),
482
+ table: B
483
+ }
484
+ )
458
485
  ] });
459
486
  }
460
- o(Te, "DataTable");
461
- const xe = /* @__PURE__ */ o((r) => "table" in r && r.table !== void 0, "hasTableInstance"), Le = /* @__PURE__ */ o((r) => {
462
- const i = $();
463
- return xe(r) ? /* @__PURE__ */ n(y, { table: r.table }) : /* @__PURE__ */ n(
464
- Te,
487
+ o(zo, "DataTable");
488
+ const Fo = /* @__PURE__ */ o((e) => "table" in e && e.table !== void 0, "hasTableInstance"), Jo = /* @__PURE__ */ o((e) => {
489
+ const n = Z();
490
+ return Fo(e) ? /* @__PURE__ */ l(z, { table: e.table }) : /* @__PURE__ */ l(
491
+ zo,
465
492
  {
466
- ...r,
467
- localization: r.localization ?? (i.id === "kr" ? K : void 0)
493
+ ...e,
494
+ localization: e.localization ?? (n.id === "kr" ? lo : void 0)
468
495
  }
469
496
  );
470
497
  }, "OwpMrtTable");
471
498
  export {
472
- Le as OwpMrtTable
499
+ Jo as OwpMrtTable
473
500
  };
474
501
  //# sourceMappingURL=OwpMrtTable.js.map