@owp/core 2.2.1 → 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.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +223 -196
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js +53 -0
- package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js.map +1 -0
- package/dist/components/OwpSection/OwpSection.js +35 -35
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +291 -192
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js +48 -46
- package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
- package/dist/components/OwpTreeGrid/perf.js +31 -0
- package/dist/components/OwpTreeGrid/perf.js.map +1 -0
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +34 -0
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -0
- package/dist/index.js +25 -23
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +2 -0
- package/dist/types/components/OwpMrtTable/OwpMrtTableNoDataOverlay.d.ts +14 -0
- package/dist/types/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/perf.d.ts +30 -0
- package/dist/types/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.d.ts +13 -0
- package/dist/types/components/OwpTreeGridResetChangesButton/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/preloadOnIdle.d.ts +7 -0
- package/dist/types/utils/treeGridBodyRowsEvent.d.ts +9 -0
- package/dist/utils/exceljsBrowser.js +6 -6
- package/dist/utils/exceljsBrowser.js.map +1 -1
- package/dist/utils/jszipBrowser.js +6 -6
- package/dist/utils/jszipBrowser.js.map +1 -1
- package/dist/utils/preloadOnIdle.js +27 -0
- package/dist/utils/preloadOnIdle.js.map +1 -0
- package/dist/utils/treeGridBodyRowsEvent.js +14 -0
- package/dist/utils/treeGridBodyRowsEvent.js.map +1 -0
- package/dist/utils/treeGridExportExcelUtil.js +306 -268
- package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
- package/dist/utils/treeGridUtil.js +79 -72
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +64 -62
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjs-dynamic-modules.js +0 -10
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +0 -1
- package/dist/_virtual/exceljs.min.js +0 -31
- package/dist/_virtual/exceljs.min.js.map +0 -1
- package/dist/_virtual/exceljs.min2.js +0 -5
- package/dist/_virtual/exceljs.min2.js.map +0 -1
- package/dist/_virtual/jszip.min.js +0 -31
- package/dist/_virtual/jszip.min.js.map +0 -1
- package/dist/_virtual/jszip.min2.js +0 -5
- package/dist/_virtual/jszip.min2.js.map +0 -1
- package/dist/node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js +0 -23540
- package/dist/node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js.map +0 -1
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -2385
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js.map +0 -1
package/dist/_virtual/index10.js
CHANGED
package/dist/_virtual/index12.js
CHANGED
package/dist/_virtual/index13.js
CHANGED
package/dist/_virtual/index14.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var o = (
|
|
3
|
-
import { jsx as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useGetCurrentLanguage as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
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
|
-
},
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
return (
|
|
34
|
-
const
|
|
35
|
-
return !
|
|
36
|
-
...
|
|
37
|
-
...
|
|
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"),
|
|
41
|
-
const
|
|
42
|
-
...
|
|
43
|
-
...
|
|
44
|
-
}), {}),
|
|
45
|
-
return
|
|
46
|
-
}, "mergeComponentProps"),
|
|
47
|
-
...
|
|
48
|
-
), "mergeResolvedProps"),
|
|
49
|
-
ArrowDownwardIcon: /* @__PURE__ */ o((
|
|
50
|
-
ClearAllIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
51
|
-
DensityLargeIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
52
|
-
DensityMediumIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
53
|
-
DensitySmallIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
54
|
-
DragHandleIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
55
|
-
FilterListIcon: /* @__PURE__ */ o((
|
|
56
|
-
FilterListOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
57
|
-
FullscreenExitIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
58
|
-
FullscreenIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
59
|
-
SearchIcon: /* @__PURE__ */ o((
|
|
60
|
-
SearchOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
61
|
-
ViewColumnIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
62
|
-
MoreVertIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
63
|
-
MoreHorizIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
64
|
-
SortIcon: /* @__PURE__ */ o((
|
|
65
|
-
PushPinIcon: /* @__PURE__ */ o((
|
|
66
|
-
VisibilityOffIcon: /* @__PURE__ */ o(() => /* @__PURE__ */
|
|
67
|
-
},
|
|
68
|
-
const { direction:
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
}, "TreeGridSyncAltIcon"),
|
|
71
|
-
ArrowDownwardIcon:
|
|
72
|
-
SyncAltIcon:
|
|
73
|
-
},
|
|
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
|
-
},
|
|
77
|
+
}, Co = {
|
|
76
78
|
elevation: 0,
|
|
77
79
|
square: !0,
|
|
78
80
|
className: "flex flex-col flex-auto h-full"
|
|
79
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
104
|
+
}, Po = {
|
|
92
105
|
sx: {
|
|
93
106
|
flex: 1,
|
|
94
107
|
minHeight: 0,
|
|
95
108
|
overflowX: "hidden"
|
|
96
109
|
}
|
|
97
|
-
},
|
|
110
|
+
}, So = {
|
|
98
111
|
sx: {
|
|
99
|
-
backgroundColor:
|
|
112
|
+
backgroundColor: C,
|
|
100
113
|
boxShadow: "none"
|
|
101
114
|
}
|
|
102
|
-
},
|
|
115
|
+
}, R = {
|
|
103
116
|
className: "w-48"
|
|
104
|
-
},
|
|
117
|
+
}, k = {
|
|
105
118
|
sx: {
|
|
106
119
|
display: "flex",
|
|
107
120
|
m: 0,
|
|
108
121
|
mx: "auto"
|
|
109
122
|
}
|
|
110
|
-
},
|
|
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:
|
|
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
|
-
},
|
|
149
|
-
row:
|
|
150
|
-
table:
|
|
161
|
+
}, Mo = /* @__PURE__ */ o(({
|
|
162
|
+
row: e,
|
|
163
|
+
table: n
|
|
151
164
|
}) => {
|
|
152
|
-
const { density:
|
|
153
|
-
return
|
|
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:
|
|
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:
|
|
178
|
+
height: e.getIsPinned() ? `${i === "comfortable" ? 53 : 69}px` : void 0
|
|
166
179
|
}
|
|
167
180
|
};
|
|
168
|
-
}, "getDefaultBodyRowProps"),
|
|
169
|
-
column:
|
|
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((
|
|
197
|
+
color: /* @__PURE__ */ o((n) => n.palette.text.disabled, "color"),
|
|
185
198
|
fontSize: 11
|
|
186
199
|
},
|
|
187
|
-
backgroundColor: /* @__PURE__ */ o((
|
|
200
|
+
backgroundColor: /* @__PURE__ */ o((n) => e.getIsPinned() ? n.palette.background.paper : "inherit", "backgroundColor")
|
|
188
201
|
}
|
|
189
|
-
}), "getDefaultHeadCellProps"),
|
|
190
|
-
column:
|
|
202
|
+
}), "getDefaultHeadCellProps"), Ro = /* @__PURE__ */ o(({
|
|
203
|
+
column: e
|
|
191
204
|
}) => {
|
|
192
|
-
const
|
|
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:
|
|
210
|
+
backgroundColor: C,
|
|
198
211
|
borderTop: "1px solid",
|
|
199
212
|
borderTopColor: "divider",
|
|
200
|
-
...
|
|
213
|
+
...i ? {
|
|
201
214
|
borderLeft: "1px solid",
|
|
202
215
|
borderLeftColor: "divider"
|
|
203
216
|
} : {},
|
|
204
|
-
...
|
|
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:
|
|
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":
|
|
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":
|
|
284
|
+
"& .MuiButtonBase-root": n ? {
|
|
272
285
|
display: "flex",
|
|
273
286
|
margin: "0 auto"
|
|
274
287
|
} : void 0
|
|
275
288
|
}
|
|
276
289
|
};
|
|
277
|
-
}, "getTreeGridHeadCellProps"),
|
|
278
|
-
column:
|
|
279
|
-
}) =>
|
|
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
|
|
289
|
-
const {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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:
|
|
329
|
+
density: r ? "compact" : "spacious",
|
|
314
330
|
showColumnFilters: !1,
|
|
315
|
-
showGlobalFilter: !
|
|
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
|
-
),
|
|
341
|
+
), h = I(
|
|
326
342
|
{
|
|
327
|
-
...
|
|
328
|
-
initialState:
|
|
343
|
+
...U,
|
|
344
|
+
initialState: S
|
|
329
345
|
},
|
|
330
346
|
{
|
|
331
|
-
initialState:
|
|
332
|
-
layoutMode:
|
|
333
|
-
enableTopToolbar:
|
|
334
|
-
enableColumnActions:
|
|
335
|
-
enableColumnDragging:
|
|
336
|
-
enableColumnFilters:
|
|
337
|
-
enableColumnOrdering: !
|
|
338
|
-
enableDensityToggle:
|
|
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:
|
|
341
|
-
enableGrouping: !
|
|
342
|
-
enableHiding:
|
|
343
|
-
enableColumnPinning: !
|
|
344
|
-
enableFacetedValues: !
|
|
345
|
-
enableRowActions: !
|
|
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:
|
|
348
|
-
enableRowOrdering:
|
|
363
|
+
enableRowDragging: r ? !1 : void 0,
|
|
364
|
+
enableRowOrdering: r ? !1 : void 0,
|
|
349
365
|
enableStickyHeader: !0,
|
|
350
|
-
enableToolbarInternalActions:
|
|
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__ */
|
|
399
|
+
renderTopToolbar: /* @__PURE__ */ o((t) => /* @__PURE__ */ l(ao, { ...t }), "renderTopToolbar")
|
|
384
400
|
}
|
|
385
|
-
),
|
|
386
|
-
...
|
|
387
|
-
columns:
|
|
388
|
-
data:
|
|
389
|
-
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
|
-
...
|
|
392
|
-
...
|
|
393
|
-
...
|
|
407
|
+
...mo,
|
|
408
|
+
...r ? ho : {},
|
|
409
|
+
...F ?? {}
|
|
394
410
|
},
|
|
395
|
-
muiBottomToolbarProps: /* @__PURE__ */ o((t) =>
|
|
411
|
+
muiBottomToolbarProps: /* @__PURE__ */ o((t) => d(
|
|
396
412
|
t,
|
|
397
|
-
|
|
398
|
-
|
|
413
|
+
To,
|
|
414
|
+
L
|
|
399
415
|
), "muiBottomToolbarProps"),
|
|
400
|
-
muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) =>
|
|
416
|
+
muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) => d(
|
|
401
417
|
t,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
418
|
+
R,
|
|
419
|
+
r ? k : void 0,
|
|
420
|
+
D
|
|
405
421
|
), "muiSelectAllCheckboxProps"),
|
|
406
|
-
muiSelectCheckboxProps: /* @__PURE__ */ o((t) =>
|
|
422
|
+
muiSelectCheckboxProps: /* @__PURE__ */ o((t) => d(
|
|
407
423
|
t,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
424
|
+
R,
|
|
425
|
+
r ? k : void 0,
|
|
426
|
+
G
|
|
411
427
|
), "muiSelectCheckboxProps"),
|
|
412
|
-
muiTableBodyCellProps: /* @__PURE__ */ o((t) =>
|
|
428
|
+
muiTableBodyCellProps: /* @__PURE__ */ o((t) => d(
|
|
413
429
|
t,
|
|
414
|
-
|
|
415
|
-
|
|
430
|
+
r ? ko : void 0,
|
|
431
|
+
O
|
|
416
432
|
), "muiTableBodyCellProps"),
|
|
417
|
-
muiTableBodyRowProps: /* @__PURE__ */ o((t) =>
|
|
433
|
+
muiTableBodyRowProps: /* @__PURE__ */ o((t) => d(
|
|
418
434
|
t,
|
|
419
|
-
|
|
420
|
-
|
|
435
|
+
Mo,
|
|
436
|
+
A
|
|
421
437
|
), "muiTableBodyRowProps"),
|
|
422
|
-
muiTableContainerProps: /* @__PURE__ */ o((t) =>
|
|
438
|
+
muiTableContainerProps: /* @__PURE__ */ o((t) => d(
|
|
423
439
|
t,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
440
|
+
yo,
|
|
441
|
+
r ? Po : void 0,
|
|
442
|
+
N,
|
|
443
|
+
y ? vo : void 0
|
|
427
444
|
), "muiTableContainerProps"),
|
|
428
|
-
muiTableHeadRowProps: /* @__PURE__ */ o((t) =>
|
|
445
|
+
muiTableHeadRowProps: /* @__PURE__ */ o((t) => d(
|
|
429
446
|
t,
|
|
430
|
-
|
|
431
|
-
|
|
447
|
+
r ? So : void 0,
|
|
448
|
+
w.muiTableHeadRowProps
|
|
432
449
|
), "muiTableHeadRowProps"),
|
|
433
|
-
muiTableHeadCellProps: /* @__PURE__ */ o((t) =>
|
|
450
|
+
muiTableHeadCellProps: /* @__PURE__ */ o((t) => d(
|
|
434
451
|
t,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
452
|
+
Io,
|
|
453
|
+
r ? Ro : void 0,
|
|
454
|
+
j
|
|
438
455
|
), "muiTableHeadCellProps"),
|
|
439
|
-
muiTablePaperProps: /* @__PURE__ */ o((t) =>
|
|
456
|
+
muiTablePaperProps: /* @__PURE__ */ o((t) => d(
|
|
440
457
|
t,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
458
|
+
Co,
|
|
459
|
+
r ? xo : void 0,
|
|
460
|
+
W,
|
|
461
|
+
y ? wo : void 0
|
|
444
462
|
), "muiTablePaperProps"),
|
|
445
|
-
muiTableProps: /* @__PURE__ */ o((t) =>
|
|
463
|
+
muiTableProps: /* @__PURE__ */ o((t) => d(
|
|
446
464
|
t,
|
|
447
|
-
|
|
448
|
-
|
|
465
|
+
r ? Bo : void 0,
|
|
466
|
+
V
|
|
449
467
|
), "muiTableProps"),
|
|
450
|
-
renderBottomToolbar:
|
|
451
|
-
|
|
452
|
-
/* @__PURE__ */
|
|
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
|
|
456
|
-
|
|
457
|
-
/* @__PURE__ */
|
|
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(
|
|
461
|
-
const
|
|
462
|
-
const
|
|
463
|
-
return
|
|
464
|
-
|
|
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
|
-
...
|
|
467
|
-
localization:
|
|
493
|
+
...e,
|
|
494
|
+
localization: e.localization ?? (n.id === "kr" ? lo : void 0)
|
|
468
495
|
}
|
|
469
496
|
);
|
|
470
497
|
}, "OwpMrtTable");
|
|
471
498
|
export {
|
|
472
|
-
|
|
499
|
+
Jo as OwpMrtTable
|
|
473
500
|
};
|
|
474
501
|
//# sourceMappingURL=OwpMrtTable.js.map
|