@owp/core 2.2.2 → 2.2.4

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