@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.
- 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/_virtual/index15.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +252 -201
- 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/OwpPageTitle/OwpPageTitle.js +74 -18
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
- package/dist/components/OwpSearchFilter/OwpSearchFilter.js +44 -29
- package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +104 -43
- 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/hooks/useHeaderWrapState.js +48 -0
- package/dist/hooks/useHeaderWrapState.js.map +1 -0
- package/dist/hooks.js +40 -38
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +25 -23
- package/dist/index.js.map +1 -1
- package/dist/layout/components/navigation/vertical/NavVerticalLayout.js +63 -27
- package/dist/layout/components/navigation/vertical/NavVerticalLayout.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +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/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/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/owp-app.css +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/OwpSection/OwpSection.d.ts +3 -1
- 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/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useHeaderWrapState.d.ts +14 -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/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/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
|
@@ -1,82 +1,84 @@
|
|
|
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 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
|
-
},
|
|
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
|
-
},
|
|
31
|
-
const i =
|
|
32
|
+
}, fo = /* @__PURE__ */ o((...e) => {
|
|
33
|
+
const i = e.flatMap((n) => n ? g(n) ? n : [n] : []);
|
|
32
34
|
if (i.length !== 0)
|
|
33
|
-
return (
|
|
34
|
-
const
|
|
35
|
-
return !
|
|
36
|
-
...
|
|
37
|
-
...
|
|
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"),
|
|
41
|
-
const i =
|
|
42
|
-
...
|
|
43
|
-
...
|
|
44
|
-
}), {}),
|
|
45
|
-
return
|
|
46
|
-
}, "mergeComponentProps"),
|
|
47
|
-
...i.map((
|
|
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: i, ...
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
}, "TreeGridSyncAltIcon"),
|
|
71
|
-
ArrowDownwardIcon:
|
|
72
|
-
SyncAltIcon:
|
|
73
|
-
},
|
|
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
|
-
},
|
|
77
|
+
}, yo = {
|
|
76
78
|
elevation: 0,
|
|
77
79
|
square: !0,
|
|
78
80
|
className: "flex flex-col flex-auto h-full"
|
|
79
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
115
|
+
}, Ro = {
|
|
98
116
|
sx: {
|
|
99
|
-
backgroundColor:
|
|
117
|
+
backgroundColor: w,
|
|
100
118
|
boxShadow: "none"
|
|
101
119
|
}
|
|
102
|
-
},
|
|
120
|
+
}, F = {
|
|
103
121
|
className: "w-48"
|
|
104
|
-
},
|
|
122
|
+
}, H = {
|
|
105
123
|
sx: {
|
|
106
124
|
display: "flex",
|
|
107
125
|
m: 0,
|
|
108
126
|
mx: "auto"
|
|
109
127
|
}
|
|
110
|
-
},
|
|
128
|
+
}, ko = {
|
|
111
129
|
sx: {
|
|
112
130
|
borderSpacing: 0,
|
|
113
131
|
width: "100%",
|
|
114
132
|
tableLayout: "fixed",
|
|
115
133
|
"& .MuiTableHead-root .MuiTableCell-root": {
|
|
116
|
-
...
|
|
117
|
-
backgroundColor:
|
|
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
|
-
},
|
|
149
|
-
row:
|
|
166
|
+
}, zo = /* @__PURE__ */ o(({
|
|
167
|
+
row: e,
|
|
150
168
|
table: i
|
|
151
169
|
}) => {
|
|
152
|
-
const { density:
|
|
153
|
-
return
|
|
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:
|
|
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:
|
|
183
|
+
height: e.getIsPinned() ? `${n === "comfortable" ? 53 : 69}px` : void 0
|
|
166
184
|
}
|
|
167
185
|
};
|
|
168
|
-
}, "getDefaultBodyRowProps"),
|
|
169
|
-
column:
|
|
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) =>
|
|
205
|
+
backgroundColor: /* @__PURE__ */ o((i) => e.getIsPinned() ? i.palette.background.paper : "inherit", "backgroundColor")
|
|
188
206
|
}
|
|
189
|
-
}), "getDefaultHeadCellProps"),
|
|
190
|
-
column:
|
|
207
|
+
}), "getDefaultHeadCellProps"), Ho = /* @__PURE__ */ o(({
|
|
208
|
+
column: e
|
|
191
209
|
}) => {
|
|
192
|
-
const i =
|
|
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
|
-
...
|
|
197
|
-
|
|
214
|
+
...i ? L : {},
|
|
215
|
+
...h,
|
|
216
|
+
backgroundColor: w,
|
|
198
217
|
borderTop: "1px solid",
|
|
199
218
|
borderTopColor: "divider",
|
|
200
|
-
...
|
|
219
|
+
...n ? {
|
|
201
220
|
borderLeft: "1px solid",
|
|
202
221
|
borderLeftColor: "divider"
|
|
203
222
|
} : {},
|
|
204
|
-
...
|
|
223
|
+
...c ? {
|
|
205
224
|
borderRight: "1px solid",
|
|
206
225
|
borderRightColor: "divider"
|
|
207
226
|
} : {},
|
|
208
227
|
"& .Mui-TableHeadCell-Content": {
|
|
209
|
-
...
|
|
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
|
-
...
|
|
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:
|
|
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:
|
|
277
|
+
color: f
|
|
259
278
|
},
|
|
260
279
|
"&& .MuiTableSortLabel-root.Mui-active": {
|
|
261
|
-
color:
|
|
280
|
+
color: f
|
|
262
281
|
},
|
|
263
282
|
"&& .MuiTableSortLabel-icon": {
|
|
264
|
-
color: `${
|
|
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"),
|
|
278
|
-
column:
|
|
279
|
-
}) =>
|
|
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
|
|
289
|
-
const {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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:
|
|
346
|
+
density: r ? "compact" : "spacious",
|
|
314
347
|
showColumnFilters: !1,
|
|
315
|
-
showGlobalFilter: !
|
|
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
|
-
),
|
|
358
|
+
), C = z(
|
|
326
359
|
{
|
|
327
|
-
...
|
|
328
|
-
|
|
360
|
+
...Y,
|
|
361
|
+
displayColumnDefOptions: M,
|
|
362
|
+
initialState: I
|
|
329
363
|
},
|
|
330
364
|
{
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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:
|
|
341
|
-
enableGrouping: !
|
|
342
|
-
enableHiding:
|
|
343
|
-
enableColumnPinning: !
|
|
344
|
-
enableFacetedValues: !
|
|
345
|
-
|
|
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:
|
|
348
|
-
enableRowOrdering:
|
|
385
|
+
enableRowDragging: r ? !1 : void 0,
|
|
386
|
+
enableRowOrdering: r ? !1 : void 0,
|
|
387
|
+
enableSelectAll: r ? !1 : void 0,
|
|
349
388
|
enableStickyHeader: !0,
|
|
350
|
-
enableToolbarInternalActions:
|
|
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__ */
|
|
423
|
+
renderTopToolbar: /* @__PURE__ */ o((t) => /* @__PURE__ */ l(po, { ...t }), "renderTopToolbar")
|
|
384
424
|
}
|
|
385
|
-
),
|
|
386
|
-
...
|
|
387
|
-
columns:
|
|
388
|
-
data:
|
|
389
|
-
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
|
-
...
|
|
392
|
-
...
|
|
393
|
-
...
|
|
431
|
+
...To,
|
|
432
|
+
...r ? wo : {},
|
|
433
|
+
...D ?? {}
|
|
394
434
|
},
|
|
395
|
-
muiBottomToolbarProps: /* @__PURE__ */ o((t) =>
|
|
435
|
+
muiBottomToolbarProps: /* @__PURE__ */ o((t) => d(
|
|
396
436
|
t,
|
|
397
|
-
|
|
398
|
-
|
|
437
|
+
vo,
|
|
438
|
+
A
|
|
399
439
|
), "muiBottomToolbarProps"),
|
|
400
|
-
muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) =>
|
|
440
|
+
muiSelectAllCheckboxProps: /* @__PURE__ */ o((t) => d(
|
|
401
441
|
t,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
442
|
+
F,
|
|
443
|
+
r ? H : void 0,
|
|
444
|
+
N
|
|
405
445
|
), "muiSelectAllCheckboxProps"),
|
|
406
|
-
muiSelectCheckboxProps: /* @__PURE__ */ o((t) =>
|
|
446
|
+
muiSelectCheckboxProps: /* @__PURE__ */ o((t) => d(
|
|
407
447
|
t,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
448
|
+
F,
|
|
449
|
+
r ? H : void 0,
|
|
450
|
+
W
|
|
411
451
|
), "muiSelectCheckboxProps"),
|
|
412
|
-
muiTableBodyCellProps: /* @__PURE__ */ o((t) =>
|
|
452
|
+
muiTableBodyCellProps: /* @__PURE__ */ o((t) => d(
|
|
413
453
|
t,
|
|
414
|
-
|
|
415
|
-
|
|
454
|
+
r ? Go : void 0,
|
|
455
|
+
j
|
|
416
456
|
), "muiTableBodyCellProps"),
|
|
417
|
-
muiTableBodyRowProps: /* @__PURE__ */ o((t) =>
|
|
457
|
+
muiTableBodyRowProps: /* @__PURE__ */ o((t) => d(
|
|
418
458
|
t,
|
|
419
|
-
|
|
420
|
-
|
|
459
|
+
zo,
|
|
460
|
+
V
|
|
421
461
|
), "muiTableBodyRowProps"),
|
|
422
|
-
muiTableContainerProps: /* @__PURE__ */ o((t) =>
|
|
462
|
+
muiTableContainerProps: /* @__PURE__ */ o((t) => d(
|
|
423
463
|
t,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
464
|
+
Mo,
|
|
465
|
+
r ? Io : void 0,
|
|
466
|
+
E,
|
|
467
|
+
S ? Bo : void 0
|
|
427
468
|
), "muiTableContainerProps"),
|
|
428
|
-
muiTableHeadRowProps: /* @__PURE__ */ o((t) =>
|
|
469
|
+
muiTableHeadRowProps: /* @__PURE__ */ o((t) => d(
|
|
429
470
|
t,
|
|
430
|
-
|
|
431
|
-
|
|
471
|
+
r ? Ro : void 0,
|
|
472
|
+
y.muiTableHeadRowProps
|
|
432
473
|
), "muiTableHeadRowProps"),
|
|
433
|
-
muiTableHeadCellProps: /* @__PURE__ */ o((t) =>
|
|
474
|
+
muiTableHeadCellProps: /* @__PURE__ */ o((t) => d(
|
|
434
475
|
t,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
476
|
+
Fo,
|
|
477
|
+
r ? Ho : void 0,
|
|
478
|
+
U
|
|
438
479
|
), "muiTableHeadCellProps"),
|
|
439
|
-
muiTablePaperProps: /* @__PURE__ */ o((t) =>
|
|
480
|
+
muiTablePaperProps: /* @__PURE__ */ o((t) => d(
|
|
440
481
|
t,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
482
|
+
yo,
|
|
483
|
+
r ? Po : void 0,
|
|
484
|
+
X,
|
|
485
|
+
S ? So : void 0
|
|
444
486
|
), "muiTablePaperProps"),
|
|
445
|
-
muiTableProps: /* @__PURE__ */ o((t) =>
|
|
487
|
+
muiTableProps: /* @__PURE__ */ o((t) => d(
|
|
446
488
|
t,
|
|
447
|
-
|
|
448
|
-
|
|
489
|
+
r ? ko : void 0,
|
|
490
|
+
_
|
|
449
491
|
), "muiTableProps"),
|
|
450
|
-
renderBottomToolbar:
|
|
451
|
-
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
] }) :
|
|
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__ */
|
|
456
|
-
|
|
457
|
-
/* @__PURE__ */
|
|
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(
|
|
461
|
-
const
|
|
462
|
-
const i =
|
|
463
|
-
return
|
|
464
|
-
|
|
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
|
-
...
|
|
467
|
-
localization:
|
|
517
|
+
...e,
|
|
518
|
+
localization: e.localization ?? (i.id === "kr" ? so : void 0)
|
|
468
519
|
}
|
|
469
520
|
);
|
|
470
521
|
}, "OwpMrtTable");
|
|
471
522
|
export {
|
|
472
|
-
|
|
523
|
+
ee as OwpMrtTable
|
|
473
524
|
};
|
|
474
525
|
//# sourceMappingURL=OwpMrtTable.js.map
|