@owp/core 2.2.3 → 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 (32) hide show
  1. package/dist/_virtual/index15.js +2 -5
  2. package/dist/_virtual/index15.js.map +1 -1
  3. package/dist/_virtual/index16.js +5 -2
  4. package/dist/_virtual/index16.js.map +1 -1
  5. package/dist/_virtual/index17.js +2 -2
  6. package/dist/_virtual/index5.js +2 -2
  7. package/dist/components/OwpMrtTable/OwpMrtTable.js +186 -162
  8. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  9. package/dist/components/OwpPageTitle/OwpPageTitle.js +74 -18
  10. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
  11. package/dist/components/OwpSearchFilter/OwpSearchFilter.js +44 -29
  12. package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
  13. package/dist/components/OwpSection/OwpSection.js +102 -41
  14. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  15. package/dist/hooks/useHeaderWrapState.js +48 -0
  16. package/dist/hooks/useHeaderWrapState.js.map +1 -0
  17. package/dist/hooks.js +40 -38
  18. package/dist/hooks.js.map +1 -1
  19. package/dist/layout/components/navigation/vertical/NavVerticalLayout.js +63 -27
  20. package/dist/layout/components/navigation/vertical/NavVerticalLayout.js.map +1 -1
  21. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  22. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  23. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  24. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  25. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
  26. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  27. 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
  28. package/dist/owp-app.css +1 -1
  29. package/dist/types/components/OwpSection/OwpSection.d.ts +3 -1
  30. package/dist/types/hooks/index.d.ts +1 -0
  31. package/dist/types/hooks/useHeaderWrapState.d.ts +14 -0
  32. package/package.json +1 -1
@@ -1,8 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
1
+ var r = {};
5
2
  export {
6
- s as default
3
+ r as __exports
7
4
  };
8
5
  //# sourceMappingURL=index15.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index15.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index15.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,8 @@
1
- var p = { exports: {} };
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
2
5
  export {
3
- p as __module
6
+ s as default
4
7
  };
5
8
  //# sourceMappingURL=index16.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +1,5 @@
1
- var e = { exports: {} };
1
+ var p = { exports: {} };
2
2
  export {
3
- e as __module
3
+ p as __module
4
4
  };
5
5
  //# sourceMappingURL=index17.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ e as __module
4
4
  };
5
5
  //# sourceMappingURL=index5.js.map
@@ -1,53 +1,53 @@
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";
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
18
  import { OwpSvgIcon as a } from "../OwpSvgIcon/OwpSvgIcon.js";
19
- const C = "#586980", b = "#cbd5e1", co = {
19
+ const w = "#586980", f = "#cbd5e1", mo = {
20
20
  "@font-face": {
21
21
  fontFamily: "RobotoLight",
22
22
  fontStyle: "normal",
23
23
  fontWeight: "normal",
24
24
  src: "url('/assets/vendors/Grid/Styles/Roboto-Light.ttf') format('truetype')"
25
25
  }
26
- }, m = {
26
+ }, h = {
27
27
  color: "#ffffff",
28
28
  fontFamily: "RobotoLight, sans-serif",
29
29
  fontSize: "14px",
30
30
  fontWeight: "normal",
31
31
  lineHeight: "16px"
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 : {
32
+ }, fo = /* @__PURE__ */ o((...e) => {
33
+ const i = e.flatMap((n) => n ? g(n) ? n : [n] : []);
34
+ if (i.length !== 0)
35
+ return (n) => i.reduce((c, s) => {
36
+ const r = typeof s == "function" ? s(n) : s;
37
+ return !r || g(r) ? c : {
38
38
  ...c,
39
39
  ...r
40
40
  };
41
41
  }, {});
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) => ({
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
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 = {
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
51
  ArrowDownwardIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 20, ...e, children: "heroicons-outline:arrow-down-circle" }), "ArrowDownwardIcon"),
52
52
  ClearAllIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:adjustments-horizontal" }), "ClearAllIcon"),
53
53
  DensityLargeIcon: /* @__PURE__ */ o(() => /* @__PURE__ */ l(a, { size: 20, children: "heroicons-outline:bars-3-bottom-left" }), "DensityLargeIcon"),
@@ -66,19 +66,19 @@ const C = "#586980", b = "#cbd5e1", co = {
66
66
  SortIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 20, ...e, children: "heroicons-outline:arrows-up-down" }), "SortIcon"),
67
67
  PushPinIcon: /* @__PURE__ */ o((e) => /* @__PURE__ */ l(a, { size: 20, ...e, children: "heroicons-outline:bookmark" }), "PushPinIcon"),
68
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 = {
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 = {
76
76
  className: "flex items-center min-h-56 h-56"
77
- }, Co = {
77
+ }, yo = {
78
78
  elevation: 0,
79
79
  square: !0,
80
80
  className: "flex flex-col flex-auto h-full"
81
- }, xo = {
81
+ }, Po = {
82
82
  sx: {
83
83
  display: "flex",
84
84
  height: "100%",
@@ -88,46 +88,51 @@ const C = "#586980", b = "#cbd5e1", co = {
88
88
  borderRadius: 0,
89
89
  boxShadow: "none"
90
90
  }
91
- }, wo = {
91
+ }, So = {
92
92
  sx: {
93
93
  border: 0
94
94
  }
95
- }, vo = {
95
+ }, Bo = {
96
96
  sx: {
97
97
  borderTop: "1px solid",
98
98
  borderRight: "1px solid",
99
99
  borderLeft: "1px solid",
100
100
  borderColor: "divider"
101
101
  }
102
- }, yo = {
102
+ }, Mo = {
103
103
  className: "flex-auto"
104
- }, Po = {
104
+ }, u = 40, L = {
105
+ width: u,
106
+ minWidth: u,
107
+ maxWidth: u
108
+ }, Io = {
105
109
  sx: {
106
110
  flex: 1,
107
111
  minHeight: 0,
108
- overflowX: "hidden"
112
+ overflowX: "hidden",
113
+ overflowY: "auto"
109
114
  }
110
- }, So = {
115
+ }, Ro = {
111
116
  sx: {
112
- backgroundColor: C,
117
+ backgroundColor: w,
113
118
  boxShadow: "none"
114
119
  }
115
- }, R = {
120
+ }, F = {
116
121
  className: "w-48"
117
- }, k = {
122
+ }, H = {
118
123
  sx: {
119
124
  display: "flex",
120
125
  m: 0,
121
126
  mx: "auto"
122
127
  }
123
- }, Bo = {
128
+ }, ko = {
124
129
  sx: {
125
130
  borderSpacing: 0,
126
131
  width: "100%",
127
132
  tableLayout: "fixed",
128
133
  "& .MuiTableHead-root .MuiTableCell-root": {
129
- ...m,
130
- backgroundColor: C,
134
+ ...h,
135
+ backgroundColor: w,
131
136
  borderTop: "1px solid",
132
137
  py: 0.75,
133
138
  borderRight: "1px solid",
@@ -158,12 +163,12 @@ const C = "#586980", b = "#cbd5e1", co = {
158
163
  borderRight: "none"
159
164
  }
160
165
  }
161
- }, Mo = /* @__PURE__ */ o(({
166
+ }, zo = /* @__PURE__ */ o(({
162
167
  row: e,
163
- table: n
168
+ table: i
164
169
  }) => {
165
- const { density: i } = n.getState();
166
- return i === "compact" ? {
170
+ const { density: n } = i.getState();
171
+ return n === "compact" ? {
167
172
  sx: {
168
173
  backgroundColor: "initial",
169
174
  opacity: 1,
@@ -175,10 +180,10 @@ const C = "#586980", b = "#cbd5e1", co = {
175
180
  backgroundColor: "initial",
176
181
  opacity: 1,
177
182
  boxShadow: "none",
178
- height: e.getIsPinned() ? `${i === "comfortable" ? 53 : 69}px` : void 0
183
+ height: e.getIsPinned() ? `${n === "comfortable" ? 53 : 69}px` : void 0
179
184
  }
180
185
  };
181
- }, "getDefaultBodyRowProps"), Io = /* @__PURE__ */ o(({
186
+ }, "getDefaultBodyRowProps"), Fo = /* @__PURE__ */ o(({
182
187
  column: e
183
188
  }) => ({
184
189
  sx: {
@@ -194,23 +199,24 @@ const C = "#586980", b = "#cbd5e1", co = {
194
199
  "& .MuiFormHelperText-root": {
195
200
  textAlign: "center",
196
201
  marginX: 0,
197
- color: /* @__PURE__ */ o((n) => n.palette.text.disabled, "color"),
202
+ color: /* @__PURE__ */ o((i) => i.palette.text.disabled, "color"),
198
203
  fontSize: 11
199
204
  },
200
- backgroundColor: /* @__PURE__ */ o((n) => e.getIsPinned() ? n.palette.background.paper : "inherit", "backgroundColor")
205
+ backgroundColor: /* @__PURE__ */ o((i) => e.getIsPinned() ? i.palette.background.paper : "inherit", "backgroundColor")
201
206
  }
202
- }), "getDefaultHeadCellProps"), Ro = /* @__PURE__ */ o(({
207
+ }), "getDefaultHeadCellProps"), Ho = /* @__PURE__ */ o(({
203
208
  column: e
204
209
  }) => {
205
- const n = e.id === "mrt-row-select", i = e.getIsFirstColumn(), c = e.getIsLastColumn();
210
+ const i = e.id === "mrt-row-select", n = e.getIsFirstColumn(), c = e.getIsLastColumn();
206
211
  return {
207
212
  align: "center",
208
213
  sx: {
209
- ...m,
210
- backgroundColor: C,
214
+ ...i ? L : {},
215
+ ...h,
216
+ backgroundColor: w,
211
217
  borderTop: "1px solid",
212
218
  borderTopColor: "divider",
213
- ...i ? {
219
+ ...n ? {
214
220
  borderLeft: "1px solid",
215
221
  borderLeftColor: "divider"
216
222
  } : {},
@@ -219,7 +225,7 @@ const C = "#586980", b = "#cbd5e1", co = {
219
225
  borderRightColor: "divider"
220
226
  } : {},
221
227
  "& .Mui-TableHeadCell-Content": {
222
- ...m,
228
+ ...h,
223
229
  backgroundColor: "inherit",
224
230
  justifyContent: "center",
225
231
  position: "relative",
@@ -236,17 +242,17 @@ const C = "#586980", b = "#cbd5e1", co = {
236
242
  overflow: "hidden",
237
243
  position: "relative",
238
244
  pl: 0,
239
- pr: n ? 0 : "24px",
245
+ pr: i ? 0 : "24px",
240
246
  width: "100%"
241
247
  },
242
248
  "& .Mui-TableHeadCell-Content-Wrapper": {
243
- ...m,
249
+ ...h,
244
250
  backgroundColor: "inherit",
245
251
  overflow: "hidden",
246
252
  textOverflow: "ellipsis",
247
253
  whiteSpace: "nowrap"
248
254
  },
249
- "&& .MuiBadge-root": n ? void 0 : {
255
+ "&& .MuiBadge-root": i ? void 0 : {
250
256
  alignItems: "center",
251
257
  display: "inline-flex",
252
258
  justifyContent: "center",
@@ -259,7 +265,7 @@ const C = "#586980", b = "#cbd5e1", co = {
259
265
  },
260
266
  "&& .MuiTableSortLabel-root": {
261
267
  alignItems: "center",
262
- color: b,
268
+ color: f,
263
269
  display: "inline-flex",
264
270
  justifyContent: "center",
265
271
  minWidth: "16px",
@@ -268,63 +274,74 @@ const C = "#586980", b = "#cbd5e1", co = {
268
274
  width: "16px"
269
275
  },
270
276
  "&& .MuiTableSortLabel-root:hover": {
271
- color: b
277
+ color: f
272
278
  },
273
279
  "&& .MuiTableSortLabel-root.Mui-active": {
274
- color: b
280
+ color: f
275
281
  },
276
282
  "&& .MuiTableSortLabel-icon": {
277
- color: `${b} !important`,
283
+ color: `${f} !important`,
278
284
  display: "block",
279
285
  fontSize: "18px",
280
286
  margin: 0,
281
287
  opacity: "1 !important",
282
288
  overflow: "visible"
283
289
  },
284
- "& .MuiButtonBase-root": n ? {
290
+ "& .MuiButtonBase-root": i ? {
285
291
  display: "flex",
286
292
  margin: "0 auto"
287
293
  } : void 0
288
294
  }
289
295
  };
290
- }, "getTreeGridHeadCellProps"), ko = /* @__PURE__ */ o(({
296
+ }, "getTreeGridHeadCellProps"), Go = /* @__PURE__ */ o(({
291
297
  column: e
292
298
  }) => e.id !== "mrt-row-select" ? {} : {
293
299
  align: "center",
294
300
  sx: {
301
+ ...L,
295
302
  "& > .MuiButtonBase-root, & .MuiButtonBase-root": {
296
303
  display: "flex",
297
304
  margin: "0 auto"
298
305
  }
299
306
  }
300
307
  }, "getTreeGridBodyCellProps");
301
- function zo(e) {
302
- const { t: n } = oo(), {
303
- canHideTotalCountFooterBorder: i = !1,
308
+ function Lo(e) {
309
+ const { t: i } = lo(), {
310
+ canHideTotalCountFooterBorder: n = !1,
304
311
  canUseNoDataOverlay: c = !1,
305
- canTotalCountRow: s = !1,
306
- canUseTreeGridStyle: r = !1,
307
- columns: g,
308
- data: u,
309
- totalCount: x,
310
- ...w
312
+ canTotalCountRow: s = !0,
313
+ canUseTreeGridStyle: r = !0,
314
+ columns: T,
315
+ data: b,
316
+ totalCount: v,
317
+ ...y
311
318
  } = 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,
323
- renderBottomToolbar: p,
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 ?? {} },
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 ?? {} },
328
345
  {
329
346
  density: r ? "compact" : "spacious",
330
347
  showColumnFilters: !1,
@@ -338,14 +355,18 @@ function zo(e) {
338
355
  },
339
356
  enableFullScreenToggle: !1
340
357
  }
341
- ), h = I(
358
+ ), C = z(
342
359
  {
343
- ...U,
344
- initialState: S
360
+ ...Y,
361
+ displayColumnDefOptions: M,
362
+ initialState: I
345
363
  },
346
364
  {
347
- initialState: S,
365
+ displayColumnDefOptions: M,
366
+ initialState: I,
348
367
  layoutMode: r ? "semantic" : void 0,
368
+ enablePagination: r ? !1 : void 0,
369
+ enableBottomToolbar: r ? !1 : void 0,
349
370
  enableTopToolbar: r ? !1 : void 0,
350
371
  enableColumnActions: r ? !1 : void 0,
351
372
  enableColumnDragging: r ? !1 : void 0,
@@ -358,12 +379,15 @@ function zo(e) {
358
379
  enableHiding: r ? !1 : void 0,
359
380
  enableColumnPinning: !r,
360
381
  enableFacetedValues: !r,
382
+ enableMultiRowSelection: r ? !0 : void 0,
361
383
  enableRowActions: !r,
362
384
  enableRowSelection: !0,
363
385
  enableRowDragging: r ? !1 : void 0,
364
386
  enableRowOrdering: r ? !1 : void 0,
387
+ enableSelectAll: r ? !1 : void 0,
365
388
  enableStickyHeader: !0,
366
389
  enableToolbarInternalActions: r ? !1 : void 0,
390
+ getRowId: r ? (t) => String(t.id) : void 0,
367
391
  paginationDisplayMode: "pages",
368
392
  positionToolbarAlertBanner: "top",
369
393
  muiPaginationProps: {
@@ -396,106 +420,106 @@ function zo(e) {
396
420
  pinnedRowBackgroundColor: t.palette.background.paper,
397
421
  pinnedColumnBackgroundColor: t.palette.background.paper
398
422
  }), "mrtTheme"),
399
- renderTopToolbar: /* @__PURE__ */ o((t) => /* @__PURE__ */ l(ao, { ...t }), "renderTopToolbar")
423
+ renderTopToolbar: /* @__PURE__ */ o((t) => /* @__PURE__ */ l(po, { ...t }), "renderTopToolbar")
400
424
  }
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,
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,
406
430
  icons: {
407
- ...mo,
408
- ...r ? ho : {},
409
- ...F ?? {}
431
+ ...To,
432
+ ...r ? wo : {},
433
+ ...D ?? {}
410
434
  },
411
435
  muiBottomToolbarProps: /* @__PURE__ */ o((t) => d(
412
436
  t,
413
- To,
414
- L
437
+ vo,
438
+ A
415
439
  ), "muiBottomToolbarProps"),
416
440
  muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) => d(
417
441
  t,
418
- R,
419
- r ? k : void 0,
420
- D
442
+ F,
443
+ r ? H : void 0,
444
+ N
421
445
  ), "muiSelectAllCheckboxProps"),
422
446
  muiSelectCheckboxProps: /* @__PURE__ */ o((t) => d(
423
447
  t,
424
- R,
425
- r ? k : void 0,
426
- G
448
+ F,
449
+ r ? H : void 0,
450
+ W
427
451
  ), "muiSelectCheckboxProps"),
428
452
  muiTableBodyCellProps: /* @__PURE__ */ o((t) => d(
429
453
  t,
430
- r ? ko : void 0,
431
- O
454
+ r ? Go : void 0,
455
+ j
432
456
  ), "muiTableBodyCellProps"),
433
457
  muiTableBodyRowProps: /* @__PURE__ */ o((t) => d(
434
458
  t,
435
- Mo,
436
- A
459
+ zo,
460
+ V
437
461
  ), "muiTableBodyRowProps"),
438
462
  muiTableContainerProps: /* @__PURE__ */ o((t) => d(
439
463
  t,
440
- yo,
441
- r ? Po : void 0,
442
- N,
443
- y ? vo : void 0
464
+ Mo,
465
+ r ? Io : void 0,
466
+ E,
467
+ S ? Bo : void 0
444
468
  ), "muiTableContainerProps"),
445
469
  muiTableHeadRowProps: /* @__PURE__ */ o((t) => d(
446
470
  t,
447
- r ? So : void 0,
448
- w.muiTableHeadRowProps
471
+ r ? Ro : void 0,
472
+ y.muiTableHeadRowProps
449
473
  ), "muiTableHeadRowProps"),
450
474
  muiTableHeadCellProps: /* @__PURE__ */ o((t) => d(
451
475
  t,
452
- Io,
453
- r ? Ro : void 0,
454
- j
476
+ Fo,
477
+ r ? Ho : void 0,
478
+ U
455
479
  ), "muiTableHeadCellProps"),
456
480
  muiTablePaperProps: /* @__PURE__ */ o((t) => d(
457
481
  t,
458
- Co,
459
- r ? xo : void 0,
460
- W,
461
- y ? wo : void 0
482
+ yo,
483
+ r ? Po : void 0,
484
+ X,
485
+ S ? So : void 0
462
486
  ), "muiTablePaperProps"),
463
487
  muiTableProps: /* @__PURE__ */ o((t) => d(
464
488
  t,
465
- r ? Bo : void 0,
466
- V
489
+ r ? ko : void 0,
490
+ _
467
491
  ), "muiTableProps"),
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
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, {}) : $
473
497
  });
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,
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,
479
503
  {
480
- visible: X,
481
- message: n("Message.조회된 결과가 없습니다."),
482
- table: B
504
+ visible: q,
505
+ message: i("Message.조회된 결과가 없습니다."),
506
+ table: R
483
507
  }
484
508
  )
485
509
  ] });
486
510
  }
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,
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,
492
516
  {
493
517
  ...e,
494
- localization: e.localization ?? (n.id === "kr" ? lo : void 0)
518
+ localization: e.localization ?? (i.id === "kr" ? so : void 0)
495
519
  }
496
520
  );
497
521
  }, "OwpMrtTable");
498
522
  export {
499
- Jo as OwpMrtTable
523
+ ee as OwpMrtTable
500
524
  };
501
525
  //# sourceMappingURL=OwpMrtTable.js.map