@owp/core 2.5.8 → 2.5.10
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/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/components/OwpDialog/OwpDialog.js +67 -46
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +162 -153
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +297 -283
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +98 -86
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +145 -127
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +21 -15
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +195 -147
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/constants/tableTheme.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +300 -263
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +148 -141
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js +168 -138
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewControls.js +410 -218
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js +145 -125
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
- package/dist/features/themePreview/configs/table.js +4 -2
- package/dist/features/themePreview/configs/table.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +124 -118
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js +275 -193
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +8 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewSettings.js +188 -151
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
- package/dist/features/themePreview.js +18 -17
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toolbar/ToolbarLayout.js +36 -35
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/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/RestartAltOutlined.js +9 -0
- package/dist/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/RestartAltOutlined.js.map +1 -0
- 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/CODE93/constants.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/ITF/constants.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/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
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +2 -0
- package/dist/types/components/OwpTable/OwpFieldTable.d.ts +3 -2
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +2 -0
- package/dist/types/constants/tableTheme.d.ts +1 -0
- package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +3 -1
- package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +4 -1
- package/dist/types/features/themePreview/configs/settings.d.ts +2 -0
- package/dist/types/features/themePreview/configs/table.d.ts +2 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +3 -0
- package/dist/types/features/themePreview/utils/index.d.ts +1 -1
- package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +11 -1
- package/dist/types/types/OwpTableThemeTypes.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (
|
|
1
|
+
var K = Object.defineProperty;
|
|
2
|
+
var c = (p, o) => K(p, "name", { value: o, configurable: !0 });
|
|
3
3
|
import { jsx as e, jsxs as r } 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
|
|
5
|
-
import
|
|
6
|
-
import { OwpDatePicker as
|
|
7
|
-
import { OwpDataTable as
|
|
8
|
-
import { OwpFieldTable as
|
|
4
|
+
import Z from "../defs/ThemePreviewGridDef.xml.js";
|
|
5
|
+
import ee from "../defs/ThemePreviewReadonlyGridDef.xml.js";
|
|
6
|
+
import { OwpDatePicker as le } from "../../../components/OwpPicker/OwpDatePicker.js";
|
|
7
|
+
import { OwpDataTable as _ } from "../../../components/OwpTable/OwpDataTable.js";
|
|
8
|
+
import { OwpFieldTable as I } from "../../../components/OwpTable/OwpFieldTable.js";
|
|
9
9
|
import { OwpTable as j } from "../../../components/OwpTable/OwpTable.js";
|
|
10
10
|
import { OwpStoreProvider as E } from "../../../contexts/OwpStoreProvider.js";
|
|
11
|
-
import { highlightTreeGridCellById as
|
|
11
|
+
import { highlightTreeGridCellById as re } from "../../../utils/treeGridUtil.js";
|
|
12
12
|
import O 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/Close.js";
|
|
13
|
-
import { Typography as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import { enqueueSnackbar as
|
|
16
|
-
import { memo as
|
|
17
|
-
import { getThemePreviewFieldTableSx as L, getThemePreviewFieldTableTitleSx as
|
|
13
|
+
import { Typography as m, Box as v, Paper as G, TextField as ie, Skeleton as k, Button as T, ButtonBase as ae, TableHead as oe, TableRow as $, TableCell as D, TableBody as te, Table as ne, IconButton as de } from "@mui/material";
|
|
14
|
+
import { useTheme as ce, alpha as F } from "@mui/material/styles";
|
|
15
|
+
import { enqueueSnackbar as se, closeSnackbar as A, SnackbarContent as he } from "notistack";
|
|
16
|
+
import { memo as y } from "react";
|
|
17
|
+
import { getThemePreviewFieldTableSx as L, getThemePreviewFieldTableTitleSx as V, tableFieldPreviewLayout as xe, tableFieldPreviewData as fe, getThemePreviewFieldTableCellSx as X, getThemePreviewBasicTableSx as me, tablePreviewRows as pe, tablePreviewHeaders as Y, getThemePreviewDataTableSx as ue, dataTablePreviewRows as H, dataTablePreviewHeadCells as q, gridCanvasPreviewRows as z, gridStyledTablePreviewRows as we, gridStyledDataTablePreviewRows as ve, previewNoop as S, previewChromeBorder as B, previewInnerCardSx as J, searchHeaderPreviewData as be, previewSectionCardClassName as ge, gridPreviewColumnLabels as Te, gridPreviewRows as ye, gridPreviewBodyText as Se } from "./themePreviewCanvas.shared.js";
|
|
18
18
|
import { OwpStyleProvider as M } from "../../../components/OwpStyleProvider/OwpStyleProvider.js";
|
|
19
|
-
import { OwpTreeGrid as
|
|
20
|
-
import { OwpSearchFilter as
|
|
21
|
-
import { OwpYesNoSelector as
|
|
19
|
+
import { OwpTreeGrid as U } from "../../../components/OwpTreeGrid/OwpTreeGrid.js";
|
|
20
|
+
import { OwpSearchFilter as Ce } from "../../../components/OwpSearchFilter/OwpSearchFilter.js";
|
|
21
|
+
import { OwpYesNoSelector as Re } from "../../../components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
22
22
|
import { OwpPageContent as Ne } from "../../../components/OwpPageContent/OwpPageContent.js";
|
|
23
23
|
import { OwpSection as Pe } from "../../../components/OwpSection/OwpSection.js";
|
|
24
|
-
function
|
|
25
|
-
children:
|
|
24
|
+
function C({
|
|
25
|
+
children: p,
|
|
26
26
|
fillContentHeight: o = !1,
|
|
27
27
|
gapClassName: t = "gap-16",
|
|
28
28
|
paperClassName: n = ge,
|
|
@@ -35,7 +35,7 @@ function S({
|
|
|
35
35
|
{
|
|
36
36
|
className: n,
|
|
37
37
|
sx: {
|
|
38
|
-
...
|
|
38
|
+
...J,
|
|
39
39
|
...a
|
|
40
40
|
},
|
|
41
41
|
children: /* @__PURE__ */ r(
|
|
@@ -43,25 +43,25 @@ function S({
|
|
|
43
43
|
{
|
|
44
44
|
className: `flex flex-col ${s ? t : ""} ${o ? "min-h-0 flex-1" : ""}`,
|
|
45
45
|
children: [
|
|
46
|
-
s ? /* @__PURE__ */ e(
|
|
47
|
-
|
|
46
|
+
s ? /* @__PURE__ */ e(m, { variant: "subtitle1", fontWeight: 700, children: l }) : null,
|
|
47
|
+
p
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
|
-
c(
|
|
55
|
-
const Je =
|
|
54
|
+
c(C, "PreviewSectionCard");
|
|
55
|
+
const Je = y(/* @__PURE__ */ c(function({
|
|
56
56
|
buttonPreviewItems: o,
|
|
57
57
|
mainTextSecondary: t,
|
|
58
58
|
previewSectionCardSx: n
|
|
59
59
|
}) {
|
|
60
|
-
return /* @__PURE__ */ e(
|
|
60
|
+
return /* @__PURE__ */ e(C, { title: "Buttons", sx: n, children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-12", children: [
|
|
61
61
|
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-12", children: [
|
|
62
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(m, { variant: "caption", sx: { minWidth: 56, color: t }, children: "contained" }),
|
|
63
63
|
o.map(({ label: a, color: l, previewContrastColor: s }) => /* @__PURE__ */ e(
|
|
64
|
-
|
|
64
|
+
T,
|
|
65
65
|
{
|
|
66
66
|
variant: "contained",
|
|
67
67
|
sx: {
|
|
@@ -74,9 +74,9 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
74
74
|
))
|
|
75
75
|
] }),
|
|
76
76
|
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-12", children: [
|
|
77
|
-
/* @__PURE__ */ e(
|
|
77
|
+
/* @__PURE__ */ e(m, { variant: "caption", sx: { minWidth: 56, color: t }, children: "outlined" }),
|
|
78
78
|
o.map(({ label: a, color: l }) => /* @__PURE__ */ e(
|
|
79
|
-
|
|
79
|
+
T,
|
|
80
80
|
{
|
|
81
81
|
variant: "outlined",
|
|
82
82
|
sx: {
|
|
@@ -93,39 +93,39 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
93
93
|
))
|
|
94
94
|
] })
|
|
95
95
|
] }) });
|
|
96
|
-
}, "ThemePreviewButtonsSection2")), Qe =
|
|
96
|
+
}, "ThemePreviewButtonsSection2")), Qe = y(/* @__PURE__ */ c(function({
|
|
97
97
|
previewSectionCardSx: o,
|
|
98
98
|
previewSnackbarKeysRef: t,
|
|
99
99
|
snackbarAnchorOrigin: n,
|
|
100
100
|
snackbarAutoHideDuration: a,
|
|
101
101
|
snackbarPreviewAnchorHorizontal: l,
|
|
102
102
|
snackbarPreviewAnchorVertical: s,
|
|
103
|
-
snackbarPreviewFontSize:
|
|
104
|
-
snackbarPreviewItems:
|
|
103
|
+
snackbarPreviewFontSize: u,
|
|
104
|
+
snackbarPreviewItems: x,
|
|
105
105
|
snackbarPreviewLineHeight: i,
|
|
106
106
|
snackbarPreviewMaxSnack: d
|
|
107
107
|
}) {
|
|
108
|
-
const
|
|
109
|
-
const
|
|
108
|
+
const h = ce(), b = /* @__PURE__ */ c((w, f, R, g, N, P) => {
|
|
109
|
+
const Q = se(f, {
|
|
110
110
|
anchorOrigin: n,
|
|
111
111
|
autoHideDuration: a,
|
|
112
|
-
variant:
|
|
112
|
+
variant: w,
|
|
113
113
|
content: /* @__PURE__ */ c((W) => /* @__PURE__ */ e(
|
|
114
|
-
|
|
114
|
+
he,
|
|
115
115
|
{
|
|
116
116
|
role: "alert",
|
|
117
117
|
style: {
|
|
118
|
-
backgroundColor:
|
|
119
|
-
borderRadius: `${
|
|
120
|
-
boxShadow:
|
|
121
|
-
color:
|
|
122
|
-
fontSize:
|
|
118
|
+
backgroundColor: R,
|
|
119
|
+
borderRadius: `${h.shape.borderRadius}px`,
|
|
120
|
+
boxShadow: h.shadows[2],
|
|
121
|
+
color: g,
|
|
122
|
+
fontSize: u,
|
|
123
123
|
lineHeight: i,
|
|
124
124
|
overflow: "hidden",
|
|
125
125
|
padding: 0
|
|
126
126
|
},
|
|
127
127
|
children: /* @__PURE__ */ r(
|
|
128
|
-
|
|
128
|
+
v,
|
|
129
129
|
{
|
|
130
130
|
sx: {
|
|
131
131
|
alignItems: "center",
|
|
@@ -138,7 +138,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
138
138
|
},
|
|
139
139
|
children: [
|
|
140
140
|
/* @__PURE__ */ r(
|
|
141
|
-
|
|
141
|
+
v,
|
|
142
142
|
{
|
|
143
143
|
sx: {
|
|
144
144
|
alignItems: "center",
|
|
@@ -150,7 +150,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
150
150
|
},
|
|
151
151
|
children: [
|
|
152
152
|
/* @__PURE__ */ e(
|
|
153
|
-
|
|
153
|
+
v,
|
|
154
154
|
{
|
|
155
155
|
sx: {
|
|
156
156
|
alignItems: "center",
|
|
@@ -165,26 +165,26 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
167
|
/* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
v,
|
|
169
169
|
{
|
|
170
170
|
sx: {
|
|
171
171
|
color: "inherit",
|
|
172
172
|
flex: 1,
|
|
173
|
-
fontSize:
|
|
173
|
+
fontSize: u,
|
|
174
174
|
lineHeight: i,
|
|
175
175
|
minWidth: 0
|
|
176
176
|
},
|
|
177
|
-
children:
|
|
177
|
+
children: f
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
]
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
183
|
/* @__PURE__ */ e(
|
|
184
|
-
|
|
184
|
+
de,
|
|
185
185
|
{
|
|
186
186
|
"aria-label": "close",
|
|
187
|
-
onClick: /* @__PURE__ */ c(() =>
|
|
187
|
+
onClick: /* @__PURE__ */ c(() => A(W), "onClick"),
|
|
188
188
|
size: "small",
|
|
189
189
|
sx: {
|
|
190
190
|
color: "inherit",
|
|
@@ -203,20 +203,20 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
203
203
|
}
|
|
204
204
|
), "content")
|
|
205
205
|
});
|
|
206
|
-
for (t.current.push(
|
|
206
|
+
for (t.current.push(Q); t.current.length > d; ) {
|
|
207
207
|
const W = t.current.shift();
|
|
208
|
-
W &&
|
|
208
|
+
W && A(W);
|
|
209
209
|
}
|
|
210
210
|
}, "openPreviewSnackbar");
|
|
211
211
|
return /* @__PURE__ */ e(
|
|
212
|
-
|
|
212
|
+
C,
|
|
213
213
|
{
|
|
214
214
|
fillContentHeight: !0,
|
|
215
215
|
paperClassName: "flex min-h-0 flex-1 flex-col rounded-lg p-14",
|
|
216
216
|
title: "Snackbars",
|
|
217
217
|
sx: o,
|
|
218
218
|
children: /* @__PURE__ */ r("div", { className: "flex min-h-0 flex-1 flex-col gap-10", children: [
|
|
219
|
-
/* @__PURE__ */ e(
|
|
219
|
+
/* @__PURE__ */ e(m, { variant: "body2", color: "text.secondary", children: "스넥바를 클릭하면 실제 동작을 바로 확인할 수 있습니다." }),
|
|
220
220
|
/* @__PURE__ */ e(
|
|
221
221
|
"div",
|
|
222
222
|
{
|
|
@@ -225,40 +225,40 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
225
225
|
alignItems: l === "left" ? "flex-start" : l === "right" ? "flex-end" : "center",
|
|
226
226
|
justifyContent: s === "bottom" ? "flex-end" : "flex-start"
|
|
227
227
|
},
|
|
228
|
-
children:
|
|
229
|
-
({ key:
|
|
230
|
-
|
|
228
|
+
children: x.map(
|
|
229
|
+
({ key: w, actionHoverColor: f, backgroundColor: R, color: g, icon: N, message: P }) => /* @__PURE__ */ r(
|
|
230
|
+
ae,
|
|
231
231
|
{
|
|
232
232
|
className: "flex items-center justify-between gap-10 px-16 py-10 text-left",
|
|
233
233
|
onClick: /* @__PURE__ */ c(() => {
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
b(
|
|
235
|
+
w,
|
|
236
236
|
P,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
R,
|
|
238
|
+
g,
|
|
239
|
+
f,
|
|
240
240
|
N
|
|
241
241
|
);
|
|
242
242
|
}, "onClick"),
|
|
243
243
|
style: {
|
|
244
|
-
backgroundColor:
|
|
244
|
+
backgroundColor: R,
|
|
245
245
|
borderRadius: 8,
|
|
246
246
|
boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",
|
|
247
|
-
color:
|
|
247
|
+
color: g,
|
|
248
248
|
width: "min(100%, 360px)"
|
|
249
249
|
},
|
|
250
250
|
children: [
|
|
251
251
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1 items-center gap-10", children: [
|
|
252
|
-
/* @__PURE__ */ e("div", { className: "flex shrink-0 items-center", style: { color:
|
|
252
|
+
/* @__PURE__ */ e("div", { className: "flex shrink-0 items-center", style: { color: g }, children: N }),
|
|
253
253
|
/* @__PURE__ */ e(
|
|
254
|
-
|
|
254
|
+
m,
|
|
255
255
|
{
|
|
256
256
|
variant: "body2",
|
|
257
257
|
className: "truncate",
|
|
258
258
|
sx: {
|
|
259
259
|
color: "inherit",
|
|
260
|
-
...
|
|
261
|
-
fontSize:
|
|
260
|
+
...u && {
|
|
261
|
+
fontSize: u
|
|
262
262
|
},
|
|
263
263
|
...i && {
|
|
264
264
|
lineHeight: i
|
|
@@ -273,15 +273,15 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
273
273
|
{
|
|
274
274
|
className: "flex h-28 w-28 shrink-0 items-center justify-center rounded-full",
|
|
275
275
|
style: {
|
|
276
|
-
backgroundColor:
|
|
277
|
-
color:
|
|
276
|
+
backgroundColor: f,
|
|
277
|
+
color: g
|
|
278
278
|
},
|
|
279
279
|
children: /* @__PURE__ */ e(O, { sx: { fontSize: 16 } })
|
|
280
280
|
}
|
|
281
281
|
)
|
|
282
282
|
]
|
|
283
283
|
},
|
|
284
|
-
|
|
284
|
+
w
|
|
285
285
|
)
|
|
286
286
|
)
|
|
287
287
|
}
|
|
@@ -289,26 +289,27 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
289
289
|
] })
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
|
-
}, "ThemePreviewSnackbarsSection2")), Ke =
|
|
292
|
+
}, "ThemePreviewSnackbarsSection2")), Ke = y(/* @__PURE__ */ c(function({
|
|
293
293
|
gridPreviewTable: o,
|
|
294
294
|
mainBackground: t,
|
|
295
295
|
mainPaper: n,
|
|
296
296
|
mainText: a,
|
|
297
297
|
mainThemePreviewStoreState: l,
|
|
298
298
|
previewSectionCardSx: s,
|
|
299
|
-
searchHeaderPreviewDate:
|
|
300
|
-
searchHeaderPreviewNumber:
|
|
299
|
+
searchHeaderPreviewDate: u,
|
|
300
|
+
searchHeaderPreviewNumber: x,
|
|
301
301
|
searchHeaderPreviewVersionKey: i,
|
|
302
302
|
tablePreviewCanTableRadiusZero: d,
|
|
303
|
-
tableTheme:
|
|
304
|
-
tableThemePreviewVersionKey:
|
|
303
|
+
tableTheme: h,
|
|
304
|
+
tableThemePreviewVersionKey: b
|
|
305
305
|
}) {
|
|
306
|
-
|
|
306
|
+
const w = X(h), f = V(h);
|
|
307
|
+
return /* @__PURE__ */ e(C, { paperClassName: "overflow-hidden rounded-lg p-0", sx: s, children: /* @__PURE__ */ e(
|
|
307
308
|
E,
|
|
308
309
|
{
|
|
309
310
|
preloadedState: l,
|
|
310
311
|
children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ r(
|
|
311
|
-
|
|
312
|
+
v,
|
|
312
313
|
{
|
|
313
314
|
className: "flex flex-col gap-16 p-16",
|
|
314
315
|
sx: {
|
|
@@ -330,33 +331,33 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
330
331
|
backgroundColor: "transparent",
|
|
331
332
|
boxShadow: "none"
|
|
332
333
|
},
|
|
333
|
-
children: /* @__PURE__ */ r(
|
|
334
|
+
children: /* @__PURE__ */ r(Ce, { onSubmit: S, onReset: S, children: [
|
|
334
335
|
/* @__PURE__ */ e(
|
|
335
|
-
|
|
336
|
+
le,
|
|
336
337
|
{
|
|
337
338
|
label: "작업일자",
|
|
338
|
-
value:
|
|
339
|
+
value: u,
|
|
339
340
|
variant: "standard",
|
|
340
|
-
onChange:
|
|
341
|
+
onChange: S
|
|
341
342
|
}
|
|
342
343
|
),
|
|
343
344
|
/* @__PURE__ */ e(
|
|
344
|
-
|
|
345
|
+
Re,
|
|
345
346
|
{
|
|
346
347
|
label: "사용여부",
|
|
347
348
|
yesLabel: "사용",
|
|
348
349
|
noLabel: "미사용",
|
|
349
350
|
value: "Y",
|
|
350
|
-
onChange:
|
|
351
|
+
onChange: S
|
|
351
352
|
}
|
|
352
353
|
),
|
|
353
354
|
/* @__PURE__ */ e(
|
|
354
|
-
|
|
355
|
+
ie,
|
|
355
356
|
{
|
|
356
357
|
label: "번호",
|
|
357
358
|
variant: "standard",
|
|
358
|
-
value:
|
|
359
|
-
onChange:
|
|
359
|
+
value: x,
|
|
360
|
+
onChange: S
|
|
360
361
|
}
|
|
361
362
|
)
|
|
362
363
|
] })
|
|
@@ -367,7 +368,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
367
368
|
{
|
|
368
369
|
className: "w-full rounded-lg p-16",
|
|
369
370
|
sx: {
|
|
370
|
-
...
|
|
371
|
+
...J,
|
|
371
372
|
backgroundColor: n,
|
|
372
373
|
border: `1px solid ${B}`
|
|
373
374
|
},
|
|
@@ -376,31 +377,37 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
376
377
|
{
|
|
377
378
|
title: "제목",
|
|
378
379
|
centerSlot: /* @__PURE__ */ e("div", { className: "w-[240px]", children: /* @__PURE__ */ e(
|
|
379
|
-
|
|
380
|
+
v,
|
|
380
381
|
{
|
|
381
382
|
sx: L(
|
|
382
|
-
|
|
383
|
+
h,
|
|
383
384
|
d
|
|
384
385
|
),
|
|
385
386
|
children: /* @__PURE__ */ e(
|
|
386
|
-
|
|
387
|
+
I,
|
|
387
388
|
{
|
|
388
389
|
canUseTreeGridStyle: !1,
|
|
389
|
-
cellSx:
|
|
390
|
+
cellSx: [
|
|
391
|
+
...Array.isArray(w) ? w : w ? [w] : [],
|
|
392
|
+
{ py: 0.5, textAlign: "center" }
|
|
393
|
+
],
|
|
390
394
|
data: be,
|
|
391
395
|
layout: [[{ title: "상태", key: "previewValue" }]],
|
|
392
|
-
titleSx:
|
|
396
|
+
titleSx: [
|
|
397
|
+
...Array.isArray(f) ? f : f ? [f] : [],
|
|
398
|
+
{ py: 0.5, textAlign: "center" }
|
|
399
|
+
],
|
|
393
400
|
titleWidth: 92
|
|
394
401
|
},
|
|
395
|
-
`search-header-field-table-${
|
|
402
|
+
`search-header-field-table-${b}`
|
|
396
403
|
)
|
|
397
404
|
}
|
|
398
405
|
) }),
|
|
399
406
|
actions: /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-8", children: [
|
|
400
|
-
/* @__PURE__ */ e(
|
|
401
|
-
/* @__PURE__ */ e(
|
|
402
|
-
/* @__PURE__ */ e(
|
|
403
|
-
/* @__PURE__ */ e(
|
|
407
|
+
/* @__PURE__ */ e(T, { color: "primary", size: "small", variant: "contained", children: "추가" }),
|
|
408
|
+
/* @__PURE__ */ e(T, { color: "secondary", size: "small", variant: "contained", children: "수정" }),
|
|
409
|
+
/* @__PURE__ */ e(T, { color: "error", size: "small", variant: "contained", children: "삭제" }),
|
|
410
|
+
/* @__PURE__ */ e(T, { color: "success", size: "small", variant: "contained", children: "다운로드" })
|
|
404
411
|
] }),
|
|
405
412
|
children: /* @__PURE__ */ r("div", { className: "flex min-h-0 flex-1 flex-col gap-12", children: [
|
|
406
413
|
o,
|
|
@@ -427,7 +434,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
427
434
|
},
|
|
428
435
|
`search-header-${i}`
|
|
429
436
|
) });
|
|
430
|
-
}, "ThemePreviewSearchHeaderSection2")), Ze =
|
|
437
|
+
}, "ThemePreviewSearchHeaderSection2")), Ze = y(/* @__PURE__ */ c(function({
|
|
431
438
|
editableThemePreviewGridId: o,
|
|
432
439
|
mainGridChangedBackgroundColor: t,
|
|
433
440
|
mainThemePreviewStoreKey: n,
|
|
@@ -435,7 +442,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
435
442
|
previewSectionCardSx: l,
|
|
436
443
|
readonlyThemePreviewGridId: s
|
|
437
444
|
}) {
|
|
438
|
-
return /* @__PURE__ */ e(
|
|
445
|
+
return /* @__PURE__ */ e(C, { title: "Grid", sx: l, children: /* @__PURE__ */ e(
|
|
439
446
|
E,
|
|
440
447
|
{
|
|
441
448
|
preloadedState: a,
|
|
@@ -449,32 +456,32 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
449
456
|
children: [
|
|
450
457
|
/* @__PURE__ */ r("div", { className: "grid min-h-0 flex-1 grid-rows-[minmax(0,1fr)_minmax(0,1fr)] gap-12", children: [
|
|
451
458
|
/* @__PURE__ */ e(
|
|
452
|
-
|
|
459
|
+
U,
|
|
453
460
|
{
|
|
454
|
-
data:
|
|
461
|
+
data: z,
|
|
455
462
|
height: "100%",
|
|
456
463
|
id: o,
|
|
457
|
-
layoutData:
|
|
464
|
+
layoutData: Z,
|
|
458
465
|
onReady: /* @__PURE__ */ c((i) => {
|
|
459
466
|
if (!i)
|
|
460
467
|
return;
|
|
461
|
-
const d = i.GetFirst(),
|
|
462
|
-
d && (i.SelectRow(d, 1),
|
|
463
|
-
row:
|
|
468
|
+
const d = i.GetFirst(), h = d ? i.GetNext(d) : null, b = h ? i.GetNext(h) : d;
|
|
469
|
+
d && (i.SelectRow(d, 1), h ? i.Focus(h, "OWP_THEME_PREVIEW.STATUS") : i.Focus(d, "OWP_THEME_PREVIEW.STATUS"), b && (re(o, {
|
|
470
|
+
row: b,
|
|
464
471
|
col: "OWP_THEME_PREVIEW.REMARK",
|
|
465
472
|
backgroundColor: t
|
|
466
|
-
}), i.RefreshRow(
|
|
473
|
+
}), i.RefreshRow(b)));
|
|
467
474
|
}, "handleEditableThemePreviewGridReady")
|
|
468
475
|
},
|
|
469
476
|
o
|
|
470
477
|
),
|
|
471
478
|
/* @__PURE__ */ e(
|
|
472
|
-
|
|
479
|
+
U,
|
|
473
480
|
{
|
|
474
|
-
data:
|
|
481
|
+
data: z,
|
|
475
482
|
height: "100%",
|
|
476
483
|
id: s,
|
|
477
|
-
layoutData:
|
|
484
|
+
layoutData: ee,
|
|
478
485
|
onReady: /* @__PURE__ */ c((i) => {
|
|
479
486
|
if (!i)
|
|
480
487
|
return;
|
|
@@ -487,27 +494,27 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
487
494
|
] }),
|
|
488
495
|
/* @__PURE__ */ r("div", { className: "grid shrink-0 grid-cols-2 gap-12", children: [
|
|
489
496
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
490
|
-
/* @__PURE__ */ e(
|
|
497
|
+
/* @__PURE__ */ e(m, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Basic Table (Grid Style)" }),
|
|
491
498
|
/* @__PURE__ */ e(
|
|
492
499
|
j,
|
|
493
500
|
{
|
|
494
501
|
canUseTreeGridStyle: !0,
|
|
495
|
-
headers:
|
|
502
|
+
headers: Y,
|
|
496
503
|
rows: we
|
|
497
504
|
}
|
|
498
505
|
)
|
|
499
506
|
] }),
|
|
500
507
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
501
|
-
/* @__PURE__ */ e(
|
|
508
|
+
/* @__PURE__ */ e(m, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Data Table (Grid Style)" }),
|
|
502
509
|
/* @__PURE__ */ e(
|
|
503
|
-
|
|
510
|
+
_,
|
|
504
511
|
{
|
|
505
512
|
canCheckbox: !1,
|
|
506
513
|
canTotalCountRow: !1,
|
|
507
514
|
canUseOrderBy: !1,
|
|
508
515
|
canUseTreeGridStyle: !0,
|
|
509
516
|
fixedRowCount: 1,
|
|
510
|
-
headCells:
|
|
517
|
+
headCells: q,
|
|
511
518
|
rows: ve,
|
|
512
519
|
sx: {
|
|
513
520
|
"& .MuiTableBody-root > .MuiTableRow-root, & .MuiTableBody-root > .MuiTableRow-root:hover, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover": {
|
|
@@ -527,49 +534,49 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
527
534
|
},
|
|
528
535
|
`grid-preview-${n}`
|
|
529
536
|
) });
|
|
530
|
-
}, "ThemePreviewGridSection2")), el =
|
|
537
|
+
}, "ThemePreviewGridSection2")), el = y(/* @__PURE__ */ c(function({
|
|
531
538
|
mainThemePreviewStoreState: o,
|
|
532
539
|
previewSectionCardSx: t,
|
|
533
540
|
tablePreviewCanTableRadiusZero: n,
|
|
534
541
|
tableTheme: a,
|
|
535
542
|
tableThemePreviewVersionKey: l
|
|
536
543
|
}) {
|
|
537
|
-
return /* @__PURE__ */ e(
|
|
544
|
+
return /* @__PURE__ */ e(C, { title: "Tables", sx: t, children: /* @__PURE__ */ e(
|
|
538
545
|
E,
|
|
539
546
|
{
|
|
540
547
|
preloadedState: o,
|
|
541
548
|
children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-14", children: [
|
|
542
549
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
543
|
-
/* @__PURE__ */ e(
|
|
544
|
-
/* @__PURE__ */ e(
|
|
545
|
-
|
|
550
|
+
/* @__PURE__ */ e(m, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Field Table" }),
|
|
551
|
+
/* @__PURE__ */ e(v, { sx: L(a, n), children: /* @__PURE__ */ e(
|
|
552
|
+
I,
|
|
546
553
|
{
|
|
547
554
|
canUseTreeGridStyle: !1,
|
|
548
|
-
cellSx:
|
|
549
|
-
data:
|
|
550
|
-
layout:
|
|
551
|
-
titleSx:
|
|
555
|
+
cellSx: X(a),
|
|
556
|
+
data: fe,
|
|
557
|
+
layout: xe,
|
|
558
|
+
titleSx: V(a),
|
|
552
559
|
titleWidth: 108
|
|
553
560
|
},
|
|
554
561
|
`field-table-${l}`
|
|
555
562
|
) })
|
|
556
563
|
] }),
|
|
557
564
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
558
|
-
/* @__PURE__ */ e(
|
|
559
|
-
/* @__PURE__ */ e(
|
|
565
|
+
/* @__PURE__ */ e(m, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Table" }),
|
|
566
|
+
/* @__PURE__ */ e(v, { sx: me(a, n), children: /* @__PURE__ */ e(
|
|
560
567
|
j,
|
|
561
568
|
{
|
|
562
569
|
canUseTreeGridStyle: !1,
|
|
563
|
-
headers:
|
|
570
|
+
headers: Y,
|
|
564
571
|
rows: pe
|
|
565
572
|
},
|
|
566
573
|
`basic-table-${l}`
|
|
567
574
|
) })
|
|
568
575
|
] }),
|
|
569
576
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
570
|
-
/* @__PURE__ */ e(
|
|
571
|
-
/* @__PURE__ */ e(
|
|
572
|
-
|
|
577
|
+
/* @__PURE__ */ e(m, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Data Table" }),
|
|
578
|
+
/* @__PURE__ */ e(v, { sx: ue(a, n), children: /* @__PURE__ */ e(
|
|
579
|
+
_,
|
|
573
580
|
{
|
|
574
581
|
canCheckbox: !1,
|
|
575
582
|
canTableRadiusZero: n,
|
|
@@ -577,9 +584,9 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
577
584
|
canUseOrderBy: !1,
|
|
578
585
|
canUseTreeGridStyle: !1,
|
|
579
586
|
fixedRowCount: 2,
|
|
580
|
-
headCells:
|
|
581
|
-
rows:
|
|
582
|
-
selected:
|
|
587
|
+
headCells: q,
|
|
588
|
+
rows: H,
|
|
589
|
+
selected: H.slice(0, 1)
|
|
583
590
|
},
|
|
584
591
|
`data-table-${l}`
|
|
585
592
|
) })
|
|
@@ -588,14 +595,14 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
588
595
|
},
|
|
589
596
|
`table-preview-${l}`
|
|
590
597
|
) });
|
|
591
|
-
}, "ThemePreviewTablesSection2")), ll =
|
|
598
|
+
}, "ThemePreviewTablesSection2")), ll = y(/* @__PURE__ */ c(function({
|
|
592
599
|
gridBodyBorder: o,
|
|
593
600
|
layoutPreviewGridCellBackground: t,
|
|
594
601
|
layoutPreviewGridCellFontSize: n,
|
|
595
602
|
layoutPreviewGridHeaderBackground: a,
|
|
596
603
|
layoutPreviewGridHeaderBorder: l,
|
|
597
604
|
layoutPreviewGridHeaderColor: s,
|
|
598
|
-
layoutPreviewGridHeaderFontSize:
|
|
605
|
+
layoutPreviewGridHeaderFontSize: u
|
|
599
606
|
}) {
|
|
600
607
|
return /* @__PURE__ */ e(
|
|
601
608
|
"div",
|
|
@@ -605,14 +612,14 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
605
612
|
borderColor: B
|
|
606
613
|
},
|
|
607
614
|
children: /* @__PURE__ */ r(
|
|
608
|
-
|
|
615
|
+
ne,
|
|
609
616
|
{
|
|
610
617
|
size: "small",
|
|
611
618
|
sx: {
|
|
612
619
|
tableLayout: "fixed"
|
|
613
620
|
},
|
|
614
621
|
children: [
|
|
615
|
-
/* @__PURE__ */ e(
|
|
622
|
+
/* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e($, { children: Te.map((x) => /* @__PURE__ */ e(
|
|
616
623
|
D,
|
|
617
624
|
{
|
|
618
625
|
sx: {
|
|
@@ -620,7 +627,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
620
627
|
borderBottom: `1px solid ${l}`,
|
|
621
628
|
borderRight: `1px solid ${l}`,
|
|
622
629
|
color: s,
|
|
623
|
-
fontSize:
|
|
630
|
+
fontSize: u,
|
|
624
631
|
fontWeight: 500,
|
|
625
632
|
px: 1.25,
|
|
626
633
|
py: 1,
|
|
@@ -629,17 +636,17 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
629
636
|
borderRight: "none"
|
|
630
637
|
}
|
|
631
638
|
},
|
|
632
|
-
children:
|
|
639
|
+
children: x
|
|
633
640
|
},
|
|
634
|
-
|
|
641
|
+
x
|
|
635
642
|
)) }) }),
|
|
636
|
-
/* @__PURE__ */ e(
|
|
643
|
+
/* @__PURE__ */ e(te, { children: ye.map((x) => /* @__PURE__ */ e(
|
|
637
644
|
$,
|
|
638
645
|
{
|
|
639
646
|
sx: {
|
|
640
647
|
backgroundColor: t
|
|
641
648
|
},
|
|
642
|
-
children:
|
|
649
|
+
children: x.map((i, d) => /* @__PURE__ */ e(
|
|
643
650
|
D,
|
|
644
651
|
{
|
|
645
652
|
sx: {
|
|
@@ -659,7 +666,7 @@ const Je = g(/* @__PURE__ */ c(function({
|
|
|
659
666
|
`${i}-${d}`
|
|
660
667
|
))
|
|
661
668
|
},
|
|
662
|
-
|
|
669
|
+
x.join("-")
|
|
663
670
|
)) })
|
|
664
671
|
]
|
|
665
672
|
}
|