@owp/core 2.5.53 → 2.5.55
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/components/OwpPicker/OwpTimePicker.js +223 -208
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/internal/DatePickerInput.js +56 -55
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +283 -273
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js +68 -38
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +189 -187
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1195 -1061
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +207 -182
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/defaultConfig.js +82 -81
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/gridTheme.js +37 -36
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/input.js +6 -0
- package/dist/constants/input.js.map +1 -0
- package/dist/constants/treeGrid.js +69 -49
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +57 -34
- package/dist/constants.js.map +1 -1
- package/dist/dayjs.js +17 -15
- package/dist/dayjs.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +247 -251
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +385 -356
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
- package/dist/features/themePreview/configs/grid.js +26 -24
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.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/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/owp-app.css +1 -1
- package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +5 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
- package/dist/types/constants/gridTheme.d.ts +2 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/constants/input.d.ts +4 -0
- package/dist/types/constants/treeGrid.d.ts +40 -0
- package/dist/types/dayjs.d.ts +0 -2
- package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +0 -2
- package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +2 -0
- package/package.json +1 -1
- package/dist/_virtual/en.js +0 -3
- package/dist/_virtual/en.js.map +0 -1
- package/dist/_virtual/en2.js +0 -5
- package/dist/_virtual/en2.js.map +0 -1
- package/dist/_virtual/ko.js +0 -3
- package/dist/_virtual/ko.js.map +0 -1
- package/dist/_virtual/ko2.js +0 -5
- package/dist/_virtual/ko2.js.map +0 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/en.js +0 -21
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/en.js.map +0 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/ko.js +0 -28
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/ko.js.map +0 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as r, jsxs as
|
|
4
|
-
import { defaultSnackbarTheme as
|
|
5
|
-
import { defaultTableTheme as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Typography as
|
|
12
|
-
import { alpha as n, darken as
|
|
13
|
-
import { owpDayjs as
|
|
14
|
-
import { closeSnackbar as
|
|
15
|
-
import { useRef as
|
|
16
|
-
import { getPaletteValue as a, previewChromeBorder as
|
|
17
|
-
import { ThemePreviewGridPreviewTable as
|
|
18
|
-
import { snackbarPreviewIconByVariant as
|
|
19
|
-
import { merge as
|
|
20
|
-
const
|
|
21
|
-
function
|
|
22
|
-
activeSection:
|
|
23
|
-
isLoading:
|
|
1
|
+
var Ze = Object.defineProperty;
|
|
2
|
+
var z = (k, W) => Ze(k, "name", { value: W, configurable: !0 });
|
|
3
|
+
import { jsx as r, jsxs as c } 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 { defaultSnackbarTheme as qe, defaultSnackbarProviderProps as I, snackbarVariantKeys as Je } from "../configs/snackbar.js";
|
|
5
|
+
import { defaultTableTheme as Qe } from "../configs/table.js";
|
|
6
|
+
import Xe 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/KeyboardArrowUpRounded.js";
|
|
7
|
+
import er 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/MenuRounded.js";
|
|
8
|
+
import Pe 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/NavigateNext.js";
|
|
9
|
+
import rr 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/Search.js";
|
|
10
|
+
import or 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/SpaceDashboardOutlined.js";
|
|
11
|
+
import { Typography as i, ButtonBase as ar, CircularProgress as nr } from "@mui/material";
|
|
12
|
+
import { alpha as n, darken as tr } from "@mui/material/styles";
|
|
13
|
+
import { owpDayjs as cr } from "../../../dayjs.js";
|
|
14
|
+
import { closeSnackbar as ir } from "notistack";
|
|
15
|
+
import { useRef as lr, useDeferredValue as dr, useMemo as t, useEffect as sr, Fragment as mr } from "react";
|
|
16
|
+
import { getPaletteValue as a, previewChromeBorder as $, getPreviewContrastColor as Se, createThemePreviewVersionKey as x, gridPreviewBodyBackground as br, gridPreviewBodyText as vr, getThemePreviewStyleValue as Te, snackbarPreviewMessageByVariant as hr, getPreviewSectionOrder as ur, navbarPreviewItems as fr, themePreviewReadonlyTreeGridId as pr, themePreviewEditableTreeGridId as xr } from "./themePreviewCanvas.shared.js";
|
|
17
|
+
import { ThemePreviewGridPreviewTable as kr, ThemePreviewTablesSection as wr, ThemePreviewGridSection as gr, ThemePreviewSearchHeaderSection as yr, ThemePreviewSnackbarsSection as Pr, ThemePreviewButtonsSection as Sr, ThemePreviewCommonSection as Tr } from "./ThemePreviewCanvasSections.js";
|
|
18
|
+
import { snackbarPreviewIconByVariant as Cr } from "./themePreviewCanvas.icons.js";
|
|
19
|
+
import { merge as Ce } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
|
|
20
|
+
const Br = "#ff4d2d", Nr = "rgba(255, 77, 45, 0.14)";
|
|
21
|
+
function _r({
|
|
22
|
+
activeSection: k,
|
|
23
|
+
isLoading: W = !1,
|
|
24
24
|
settings: e
|
|
25
25
|
}) {
|
|
26
|
-
var ke, we, ge, ye
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
26
|
+
var xe, ke, we, ge, ye;
|
|
27
|
+
const A = lr([]), s = dr(k), F = !1, Y = t(
|
|
28
|
+
() => Ce(
|
|
29
29
|
{},
|
|
30
|
-
|
|
30
|
+
Qe,
|
|
31
31
|
e.theme.main.table
|
|
32
32
|
),
|
|
33
33
|
[e.theme.main.table]
|
|
34
|
-
), m = e.theme.toolbar.palette.mode,
|
|
35
|
-
|
|
34
|
+
), m = e.theme.toolbar.palette.mode, K = a(e, "toolbar", "background.default"), Be = a(e, "toolbar", "background.paper"), w = a(e, "toolbar", "text.primary"), Ne = a(e, "toolbar", "divider"), g = a(e, "toolbar", "common.white"), He = a(e, "toolbar", "common.black"), U = n(g, m === "dark" ? 0.06 : 0.78), _ = n(g, m === "dark" ? 0.1 : 0.62), L = n(g, m === "dark" ? 0.05 : 0.54), l = e.theme.navbar.palette.mode, D = a(e, "navbar", "background.default"), O = a(e, "navbar", "divider") || $, b = a(e, "navbar", "text.primary"), Z = a(e, "navbar", "text.secondary"), h = a(e, "navbar", "secondary.main"), y = a(e, "navbar", "secondary.dark") || h, q = Se(
|
|
35
|
+
D,
|
|
36
36
|
b || "#111827"
|
|
37
|
-
), ze = n(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
),
|
|
37
|
+
), ze = n(q, l === "dark" ? 0.72 : 0.64), J = n(
|
|
38
|
+
h,
|
|
39
|
+
l === "dark" ? 0.2 : 0.12
|
|
40
|
+
), Q = n(h, l === "dark" ? 0.42 : 0.28), X = n(
|
|
41
|
+
y,
|
|
42
|
+
l === "dark" ? 0.22 : 0.14
|
|
43
|
+
), ee = n(
|
|
44
|
+
y,
|
|
45
|
+
l === "dark" ? 0.56 : 0.36
|
|
46
|
+
), re = h, oe = Z || n(b, l === "dark" ? 0.78 : 0.72), Ie = n(h, l === "dark" ? 0.22 : 0.12), $e = tr(D, l === "dark" ? 0.08 : 0.05), We = Z || n(b, l === "dark" ? 0.78 : 0.62), j = a(e, "main", "background.default"), P = a(e, "main", "background.paper"), ae = a(e, "main", "text.primary"), ne = a(e, "main", "text.secondary"), S = a(e, "main", "success.main"), te = a(e, "main", "success.contrastText"), T = a(e, "main", "info.main"), ce = a(e, "main", "info.contrastText"), C = a(e, "main", "warning.main"), ie = a(e, "main", "warning.contrastText"), B = a(e, "main", "error.main"), le = a(e, "main", "error.contrastText"), G = e.theme.main.grid, N = x(e.theme.main.table), V = x({
|
|
47
47
|
palette: e.theme.main.palette ?? {},
|
|
48
48
|
table: e.theme.main.table ?? {}
|
|
49
|
-
}),
|
|
49
|
+
}), de = "#586980", M = "#ffffff", se = "14px", me = "13px", be = ((xe = G == null ? void 0 : G.body) == null ? void 0 : xe.backgroundColor) ?? br, ve = n(M, 0.22), he = n(vr, 0.14), f = t(
|
|
50
50
|
() => ({
|
|
51
51
|
...e,
|
|
52
52
|
theme: {
|
|
@@ -56,375 +56,371 @@ function qr({
|
|
|
56
56
|
}
|
|
57
57
|
}),
|
|
58
58
|
[e]
|
|
59
|
-
),
|
|
60
|
-
|
|
61
|
-
),
|
|
59
|
+
), ue = x(
|
|
60
|
+
f.theme.main
|
|
61
|
+
), H = t(
|
|
62
62
|
() => ({
|
|
63
63
|
owpSettings: {
|
|
64
|
-
current:
|
|
65
|
-
defaults:
|
|
66
|
-
initial:
|
|
64
|
+
current: f,
|
|
65
|
+
defaults: f,
|
|
66
|
+
initial: f
|
|
67
67
|
}
|
|
68
68
|
}),
|
|
69
|
-
[
|
|
70
|
-
),
|
|
71
|
-
() => `OWP-${
|
|
72
|
-
[
|
|
73
|
-
),
|
|
69
|
+
[f]
|
|
70
|
+
), R = cr().format("YYYY-MM-DD"), Ae = t(
|
|
71
|
+
() => `OWP-${R.replace(/-/g, "")}-001`,
|
|
72
|
+
[R]
|
|
73
|
+
), u = t(
|
|
74
74
|
() => ({
|
|
75
|
-
backgroundColor:
|
|
76
|
-
border: `1px solid ${
|
|
75
|
+
backgroundColor: P,
|
|
76
|
+
border: `1px solid ${$}`
|
|
77
77
|
}),
|
|
78
|
-
[
|
|
79
|
-
),
|
|
78
|
+
[P]
|
|
79
|
+
), De = s === "navbar" ? "navbar" : s === "toolbar" ? "toolbar" : "main", Oe = W || s !== k, je = t(
|
|
80
80
|
() => ({
|
|
81
|
-
backgroundColor:
|
|
82
|
-
borderColor:
|
|
83
|
-
boxShadow: `inset 0 1px 0 ${
|
|
81
|
+
backgroundColor: U,
|
|
82
|
+
borderColor: _,
|
|
83
|
+
boxShadow: `inset 0 1px 0 ${L}`
|
|
84
84
|
}),
|
|
85
|
-
[
|
|
86
|
-
),
|
|
85
|
+
[U, _, L]
|
|
86
|
+
), Ge = t(
|
|
87
87
|
() => ({
|
|
88
|
-
backgroundColor:
|
|
89
|
-
borderColor:
|
|
90
|
-
color:
|
|
88
|
+
backgroundColor: J,
|
|
89
|
+
borderColor: Q,
|
|
90
|
+
color: re,
|
|
91
91
|
transition: "background-color 160ms ease, border-color 160ms ease, color 160ms ease",
|
|
92
92
|
"&:hover, &:focus-visible, &:active": {
|
|
93
|
-
backgroundColor:
|
|
94
|
-
borderColor:
|
|
95
|
-
color:
|
|
93
|
+
backgroundColor: X,
|
|
94
|
+
borderColor: ee,
|
|
95
|
+
color: y
|
|
96
96
|
}
|
|
97
97
|
}),
|
|
98
98
|
[
|
|
99
|
-
ae,
|
|
100
|
-
P,
|
|
101
|
-
X,
|
|
102
|
-
ee,
|
|
103
99
|
re,
|
|
104
|
-
|
|
100
|
+
y,
|
|
101
|
+
J,
|
|
102
|
+
Q,
|
|
103
|
+
X,
|
|
104
|
+
ee
|
|
105
105
|
]
|
|
106
|
-
),
|
|
106
|
+
), fe = t(
|
|
107
107
|
() => [
|
|
108
|
-
{ label: "info", color: T, contrastColor:
|
|
109
|
-
{ label: "warning", color:
|
|
110
|
-
{ label: "error", color:
|
|
111
|
-
{ label: "success", color:
|
|
108
|
+
{ label: "info", color: T, contrastColor: ce },
|
|
109
|
+
{ label: "warning", color: C, contrastColor: ie },
|
|
110
|
+
{ label: "error", color: B, contrastColor: le },
|
|
111
|
+
{ label: "success", color: S, contrastColor: te }
|
|
112
112
|
].map((o) => ({
|
|
113
113
|
...o,
|
|
114
|
-
previewContrastColor: o.label === "error" || o.label === "success" ?
|
|
114
|
+
previewContrastColor: o.label === "error" || o.label === "success" ? Se(o.color, o.contrastColor) : o.contrastColor
|
|
115
115
|
})),
|
|
116
116
|
[
|
|
117
|
-
|
|
118
|
-
se,
|
|
119
|
-
T,
|
|
117
|
+
B,
|
|
120
118
|
le,
|
|
119
|
+
T,
|
|
120
|
+
ce,
|
|
121
|
+
S,
|
|
122
|
+
te,
|
|
121
123
|
C,
|
|
122
|
-
ie
|
|
123
|
-
B,
|
|
124
|
-
de
|
|
124
|
+
ie
|
|
125
125
|
]
|
|
126
|
-
),
|
|
127
|
-
() =>
|
|
126
|
+
), pe = e.snackbar ?? qe, v = t(
|
|
127
|
+
() => Ce({}, I, e.snackbarProviderProps),
|
|
128
128
|
[e.snackbarProviderProps]
|
|
129
|
-
),
|
|
130
|
-
(
|
|
131
|
-
),
|
|
132
|
-
() =>
|
|
133
|
-
const
|
|
129
|
+
), Ve = ((ke = v.anchorOrigin) == null ? void 0 : ke.horizontal) ?? I.anchorOrigin.horizontal, Me = ((we = v.anchorOrigin) == null ? void 0 : we.vertical) ?? I.anchorOrigin.vertical, Re = v.maxSnack ?? I.maxSnack, Ee = Te((ge = v.style) == null ? void 0 : ge.fontSize), Fe = Te(
|
|
130
|
+
(ye = v.style) == null ? void 0 : ye.lineHeight
|
|
131
|
+
), Ye = t(
|
|
132
|
+
() => Je.map((o) => {
|
|
133
|
+
const d = pe[o];
|
|
134
134
|
return {
|
|
135
135
|
actionHoverColor: n(
|
|
136
|
-
|
|
136
|
+
d.color,
|
|
137
137
|
o === "default" ? 0.18 : 0.16
|
|
138
138
|
),
|
|
139
|
-
backgroundColor:
|
|
140
|
-
color:
|
|
141
|
-
icon:
|
|
139
|
+
backgroundColor: d.backgroundColor,
|
|
140
|
+
color: d.color,
|
|
141
|
+
icon: Cr[o],
|
|
142
142
|
key: o,
|
|
143
|
-
message:
|
|
143
|
+
message: hr[o]
|
|
144
144
|
};
|
|
145
145
|
}),
|
|
146
|
-
[
|
|
147
|
-
),
|
|
148
|
-
() =>
|
|
146
|
+
[pe]
|
|
147
|
+
), Ke = t(
|
|
148
|
+
() => ur(s),
|
|
149
149
|
[s]
|
|
150
|
-
),
|
|
150
|
+
), Ue = t(
|
|
151
151
|
() => ({
|
|
152
|
-
common:
|
|
153
|
-
buttons:
|
|
154
|
-
error:
|
|
152
|
+
common: ue,
|
|
153
|
+
buttons: x({
|
|
154
|
+
error: B,
|
|
155
155
|
info: T,
|
|
156
|
-
success:
|
|
157
|
-
warning:
|
|
156
|
+
success: S,
|
|
157
|
+
warning: C
|
|
158
158
|
}),
|
|
159
|
-
grid:
|
|
160
|
-
searchHeader:
|
|
161
|
-
snackbars:
|
|
159
|
+
grid: "grid",
|
|
160
|
+
searchHeader: V,
|
|
161
|
+
snackbars: x({
|
|
162
162
|
provider: e.snackbarProviderProps,
|
|
163
163
|
snackbar: e.snackbar
|
|
164
164
|
}),
|
|
165
|
-
tables:
|
|
165
|
+
tables: N
|
|
166
166
|
}),
|
|
167
167
|
[
|
|
168
|
-
|
|
169
|
-
N,
|
|
168
|
+
B,
|
|
170
169
|
T,
|
|
170
|
+
S,
|
|
171
|
+
ue,
|
|
171
172
|
C,
|
|
172
|
-
|
|
173
|
-
B,
|
|
174
|
-
R,
|
|
173
|
+
V,
|
|
175
174
|
e.snackbar,
|
|
176
175
|
e.snackbarProviderProps,
|
|
177
|
-
|
|
176
|
+
N
|
|
178
177
|
]
|
|
179
|
-
),
|
|
178
|
+
), _e = t(
|
|
180
179
|
() => /* @__PURE__ */ r(
|
|
181
|
-
|
|
180
|
+
kr,
|
|
182
181
|
{
|
|
183
|
-
gridBodyBorder:
|
|
184
|
-
layoutPreviewGridCellBackground:
|
|
185
|
-
layoutPreviewGridCellFontSize:
|
|
186
|
-
layoutPreviewGridHeaderBackground:
|
|
187
|
-
layoutPreviewGridHeaderBorder:
|
|
188
|
-
layoutPreviewGridHeaderColor:
|
|
189
|
-
layoutPreviewGridHeaderFontSize:
|
|
182
|
+
gridBodyBorder: he,
|
|
183
|
+
layoutPreviewGridCellBackground: be,
|
|
184
|
+
layoutPreviewGridCellFontSize: me,
|
|
185
|
+
layoutPreviewGridHeaderBackground: de,
|
|
186
|
+
layoutPreviewGridHeaderBorder: ve,
|
|
187
|
+
layoutPreviewGridHeaderColor: M,
|
|
188
|
+
layoutPreviewGridHeaderFontSize: se
|
|
190
189
|
}
|
|
191
190
|
),
|
|
192
191
|
[
|
|
193
|
-
fe,
|
|
194
192
|
he,
|
|
195
|
-
|
|
193
|
+
be,
|
|
196
194
|
me,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
de,
|
|
196
|
+
ve,
|
|
197
|
+
M,
|
|
198
|
+
se
|
|
200
199
|
]
|
|
201
200
|
);
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}),
|
|
201
|
+
sr(() => () => {
|
|
202
|
+
A.current.forEach((o) => {
|
|
203
|
+
ir(o);
|
|
204
|
+
}), A.current = [];
|
|
206
205
|
}, []);
|
|
207
|
-
const
|
|
208
|
-
var c;
|
|
206
|
+
const Le = /* @__PURE__ */ z((o) => {
|
|
209
207
|
switch (o) {
|
|
210
208
|
case "common":
|
|
211
209
|
return /* @__PURE__ */ r(
|
|
212
|
-
|
|
210
|
+
Tr,
|
|
213
211
|
{
|
|
214
|
-
buttonPreviewItems:
|
|
215
|
-
mainTextSecondary:
|
|
216
|
-
mainThemePreviewStoreState:
|
|
217
|
-
previewSectionCardSx:
|
|
212
|
+
buttonPreviewItems: fe,
|
|
213
|
+
mainTextSecondary: ne,
|
|
214
|
+
mainThemePreviewStoreState: H,
|
|
215
|
+
previewSectionCardSx: u
|
|
218
216
|
}
|
|
219
217
|
);
|
|
220
218
|
case "buttons":
|
|
221
219
|
return /* @__PURE__ */ r(
|
|
222
|
-
|
|
220
|
+
Sr,
|
|
223
221
|
{
|
|
224
|
-
buttonPreviewItems:
|
|
225
|
-
mainTextSecondary:
|
|
226
|
-
previewSectionCardSx:
|
|
222
|
+
buttonPreviewItems: fe,
|
|
223
|
+
mainTextSecondary: ne,
|
|
224
|
+
previewSectionCardSx: u
|
|
227
225
|
}
|
|
228
226
|
);
|
|
229
227
|
case "snackbars":
|
|
230
228
|
return /* @__PURE__ */ r(
|
|
231
|
-
|
|
229
|
+
Pr,
|
|
232
230
|
{
|
|
233
|
-
previewSectionCardSx:
|
|
234
|
-
previewSnackbarKeysRef:
|
|
235
|
-
snackbarAnchorOrigin:
|
|
236
|
-
snackbarAutoHideDuration:
|
|
237
|
-
snackbarPreviewAnchorHorizontal:
|
|
238
|
-
snackbarPreviewAnchorVertical:
|
|
239
|
-
snackbarPreviewFontSize:
|
|
240
|
-
snackbarPreviewItems:
|
|
241
|
-
snackbarPreviewLineHeight:
|
|
242
|
-
snackbarPreviewMaxSnack:
|
|
231
|
+
previewSectionCardSx: u,
|
|
232
|
+
previewSnackbarKeysRef: A,
|
|
233
|
+
snackbarAnchorOrigin: v.anchorOrigin,
|
|
234
|
+
snackbarAutoHideDuration: v.autoHideDuration,
|
|
235
|
+
snackbarPreviewAnchorHorizontal: Ve,
|
|
236
|
+
snackbarPreviewAnchorVertical: Me,
|
|
237
|
+
snackbarPreviewFontSize: Ee,
|
|
238
|
+
snackbarPreviewItems: Ye,
|
|
239
|
+
snackbarPreviewLineHeight: Fe,
|
|
240
|
+
snackbarPreviewMaxSnack: Re
|
|
243
241
|
}
|
|
244
242
|
);
|
|
245
243
|
case "searchHeader":
|
|
246
244
|
return /* @__PURE__ */ r(
|
|
247
|
-
|
|
245
|
+
yr,
|
|
248
246
|
{
|
|
249
247
|
activeSection: s === "navbar" || s === "toolbar" ? s : "main",
|
|
250
|
-
gridPreviewTable:
|
|
251
|
-
mainBackground:
|
|
252
|
-
mainPaper:
|
|
253
|
-
mainText:
|
|
254
|
-
mainThemePreviewStoreState:
|
|
255
|
-
previewSectionCardSx:
|
|
256
|
-
searchHeaderPreviewDate:
|
|
257
|
-
searchHeaderPreviewNumber:
|
|
258
|
-
searchHeaderPreviewVersionKey:
|
|
259
|
-
tablePreviewCanTableRadiusZero:
|
|
260
|
-
tableTheme:
|
|
261
|
-
tableThemePreviewVersionKey:
|
|
248
|
+
gridPreviewTable: _e,
|
|
249
|
+
mainBackground: j,
|
|
250
|
+
mainPaper: P,
|
|
251
|
+
mainText: ae,
|
|
252
|
+
mainThemePreviewStoreState: H,
|
|
253
|
+
previewSectionCardSx: u,
|
|
254
|
+
searchHeaderPreviewDate: R,
|
|
255
|
+
searchHeaderPreviewNumber: Ae,
|
|
256
|
+
searchHeaderPreviewVersionKey: V,
|
|
257
|
+
tablePreviewCanTableRadiusZero: F,
|
|
258
|
+
tableTheme: Y,
|
|
259
|
+
tableThemePreviewVersionKey: N
|
|
262
260
|
}
|
|
263
261
|
);
|
|
264
262
|
case "grid":
|
|
265
263
|
return /* @__PURE__ */ r(
|
|
266
|
-
|
|
264
|
+
gr,
|
|
267
265
|
{
|
|
268
|
-
editableThemePreviewGridId:
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
previewSectionCardSx: f,
|
|
273
|
-
readonlyThemePreviewGridId: Oe
|
|
266
|
+
editableThemePreviewGridId: xr,
|
|
267
|
+
mainThemePreviewStoreState: H,
|
|
268
|
+
previewSectionCardSx: u,
|
|
269
|
+
readonlyThemePreviewGridId: pr
|
|
274
270
|
}
|
|
275
271
|
);
|
|
276
272
|
case "tables":
|
|
277
273
|
return /* @__PURE__ */ r(
|
|
278
|
-
|
|
274
|
+
wr,
|
|
279
275
|
{
|
|
280
|
-
mainThemePreviewStoreState:
|
|
281
|
-
previewSectionCardSx:
|
|
282
|
-
tablePreviewCanTableRadiusZero:
|
|
283
|
-
tableTheme:
|
|
284
|
-
tableThemePreviewVersionKey:
|
|
276
|
+
mainThemePreviewStoreState: H,
|
|
277
|
+
previewSectionCardSx: u,
|
|
278
|
+
tablePreviewCanTableRadiusZero: F,
|
|
279
|
+
tableTheme: Y,
|
|
280
|
+
tableThemePreviewVersionKey: N
|
|
285
281
|
}
|
|
286
282
|
);
|
|
287
283
|
default:
|
|
288
284
|
return null;
|
|
289
285
|
}
|
|
290
|
-
}, "renderPreviewSection"),
|
|
286
|
+
}, "renderPreviewSection"), E = /* @__PURE__ */ z((o, d, p = 0) => De === o ? /* @__PURE__ */ r(
|
|
291
287
|
"div",
|
|
292
288
|
{
|
|
293
289
|
"aria-hidden": !0,
|
|
294
290
|
className: "pointer-events-none absolute z-[2]",
|
|
295
291
|
style: {
|
|
296
|
-
inset:
|
|
297
|
-
border: `4px solid ${
|
|
298
|
-
borderRadius:
|
|
299
|
-
boxShadow: `0 0 0 1px ${
|
|
292
|
+
inset: d,
|
|
293
|
+
border: `4px solid ${Br}`,
|
|
294
|
+
borderRadius: p,
|
|
295
|
+
boxShadow: `0 0 0 1px ${Nr}`
|
|
300
296
|
}
|
|
301
297
|
}
|
|
302
298
|
) : null, "renderHighlightOverlay");
|
|
303
|
-
return /* @__PURE__ */ r("div", { className: "flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden", children: /* @__PURE__ */
|
|
299
|
+
return /* @__PURE__ */ r("div", { className: "flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ c(
|
|
304
300
|
"div",
|
|
305
301
|
{
|
|
306
302
|
className: "grid min-h-0 flex-1 grid-cols-[224px_minmax(0,1fr)] grid-rows-[76px_minmax(0,1fr)] overflow-hidden rounded-lg border border-solid",
|
|
307
303
|
style: {
|
|
308
|
-
backgroundColor:
|
|
309
|
-
borderColor:
|
|
304
|
+
backgroundColor: j,
|
|
305
|
+
borderColor: $
|
|
310
306
|
},
|
|
311
307
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ c(
|
|
313
309
|
"div",
|
|
314
310
|
{
|
|
315
311
|
className: "col-span-2 relative flex items-center justify-between px-20",
|
|
316
312
|
style: {
|
|
317
|
-
backgroundColor:
|
|
318
|
-
backgroundImage: `linear-gradient(180deg, ${
|
|
319
|
-
borderBottom: `1px solid ${
|
|
320
|
-
boxShadow: `inset 0 1px 0 ${n(
|
|
321
|
-
color:
|
|
313
|
+
backgroundColor: K,
|
|
314
|
+
backgroundImage: `linear-gradient(180deg, ${K} 0%, ${Be} 100%)`,
|
|
315
|
+
borderBottom: `1px solid ${Ne}`,
|
|
316
|
+
boxShadow: `inset 0 1px 0 ${n(g, m === "dark" ? 0.06 : 0.82)}, 0 4px 16px ${n(He, m === "dark" ? 0.18 : 0.05)}`,
|
|
317
|
+
color: w
|
|
322
318
|
},
|
|
323
319
|
children: [
|
|
324
|
-
|
|
325
|
-
/* @__PURE__ */ r("div", { className: "flex items-center gap-12", children: /* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
320
|
+
E("toolbar", 0, 0),
|
|
321
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-12", children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
322
|
+
/* @__PURE__ */ c(
|
|
327
323
|
"div",
|
|
328
324
|
{
|
|
329
325
|
className: "flex items-center gap-2",
|
|
330
326
|
style: {
|
|
331
|
-
color: n(
|
|
327
|
+
color: n(w, m === "dark" ? 0.72 : 0.64)
|
|
332
328
|
},
|
|
333
329
|
children: [
|
|
334
|
-
/* @__PURE__ */ r(
|
|
335
|
-
/* @__PURE__ */ r(
|
|
336
|
-
/* @__PURE__ */ r(
|
|
330
|
+
/* @__PURE__ */ r(i, { variant: "caption", children: "OWP" }),
|
|
331
|
+
/* @__PURE__ */ r(Pe, { sx: { fontSize: 18 } }),
|
|
332
|
+
/* @__PURE__ */ r(i, { variant: "caption", children: "Theme Preview" })
|
|
337
333
|
]
|
|
338
334
|
}
|
|
339
335
|
),
|
|
340
|
-
/* @__PURE__ */ r(
|
|
336
|
+
/* @__PURE__ */ r(i, { variant: "subtitle1", fontWeight: 700, children: "Toolbar" })
|
|
341
337
|
] }) }),
|
|
342
|
-
/* @__PURE__ */ r("div", { className: "pointer-events-none absolute left-1/2 top-1/2 flex w-full max-w-[520px] -translate-x-1/2 -translate-y-1/2 justify-center px-12 text-center", children: /* @__PURE__ */
|
|
343
|
-
|
|
338
|
+
/* @__PURE__ */ r("div", { className: "pointer-events-none absolute left-1/2 top-1/2 flex w-full max-w-[520px] -translate-x-1/2 -translate-y-1/2 justify-center px-12 text-center", children: /* @__PURE__ */ c(
|
|
339
|
+
i,
|
|
344
340
|
{
|
|
345
341
|
variant: "body2",
|
|
346
342
|
sx: {
|
|
347
|
-
color: n(
|
|
343
|
+
color: n(w, m === "dark" ? 0.92 : 0.84),
|
|
348
344
|
fontSize: 13,
|
|
349
345
|
fontWeight: 700
|
|
350
346
|
},
|
|
351
347
|
children: [
|
|
352
348
|
"로그인 화면 배경색은 Toolbar",
|
|
353
349
|
" ",
|
|
354
|
-
/* @__PURE__ */ r(
|
|
350
|
+
/* @__PURE__ */ r(Pe, { sx: { mx: 0.25, fontSize: 18, verticalAlign: "middle" } }),
|
|
355
351
|
" ",
|
|
356
352
|
"Background Default 색상을 따라갑니다."
|
|
357
353
|
]
|
|
358
354
|
}
|
|
359
355
|
) }),
|
|
360
|
-
/* @__PURE__ */ r("div", { className: "flex items-center gap-8", children: [
|
|
356
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-8", children: [rr, or].map((o, d) => /* @__PURE__ */ r(
|
|
361
357
|
"div",
|
|
362
358
|
{
|
|
363
359
|
className: "flex h-32 w-32 items-center justify-center rounded-[10px] border border-solid",
|
|
364
|
-
style:
|
|
365
|
-
children: /* @__PURE__ */ r(o, { sx: { color:
|
|
360
|
+
style: je,
|
|
361
|
+
children: /* @__PURE__ */ r(o, { sx: { color: w, fontSize: 18 } })
|
|
366
362
|
},
|
|
367
|
-
`${
|
|
363
|
+
`${d}`
|
|
368
364
|
)) })
|
|
369
365
|
]
|
|
370
366
|
}
|
|
371
367
|
),
|
|
372
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ c(
|
|
373
369
|
"div",
|
|
374
370
|
{
|
|
375
371
|
className: "relative flex min-h-0 flex-col",
|
|
376
372
|
style: {
|
|
377
|
-
backgroundColor:
|
|
378
|
-
borderRight: `1px solid ${
|
|
373
|
+
backgroundColor: D,
|
|
374
|
+
borderRight: `1px solid ${O}`,
|
|
379
375
|
color: b
|
|
380
376
|
},
|
|
381
377
|
children: [
|
|
382
|
-
|
|
383
|
-
/* @__PURE__ */
|
|
378
|
+
E("navbar", 0, 0),
|
|
379
|
+
/* @__PURE__ */ c(
|
|
384
380
|
"div",
|
|
385
381
|
{
|
|
386
382
|
className: "flex items-center justify-between gap-8 px-16 py-14",
|
|
387
383
|
style: {
|
|
388
|
-
borderBottom: `1px solid ${
|
|
384
|
+
borderBottom: `1px solid ${O}`
|
|
389
385
|
},
|
|
390
386
|
children: [
|
|
391
|
-
/* @__PURE__ */ r("div", { className: "flex items-center gap-10", children: /* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-10", children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
392
388
|
/* @__PURE__ */ r(
|
|
393
|
-
|
|
389
|
+
i,
|
|
394
390
|
{
|
|
395
391
|
variant: "subtitle2",
|
|
396
392
|
fontWeight: 700,
|
|
397
393
|
sx: {
|
|
398
|
-
color:
|
|
394
|
+
color: q
|
|
399
395
|
},
|
|
400
396
|
children: "Navbar"
|
|
401
397
|
}
|
|
402
398
|
),
|
|
403
|
-
/* @__PURE__ */ r(
|
|
399
|
+
/* @__PURE__ */ r(i, { variant: "caption", sx: { color: ze }, children: "Navigation" })
|
|
404
400
|
] }) }),
|
|
405
401
|
/* @__PURE__ */ r(
|
|
406
|
-
|
|
402
|
+
ar,
|
|
407
403
|
{
|
|
408
404
|
"aria-label": "navbar menu",
|
|
409
405
|
className: "flex h-28 w-28 items-center justify-center rounded-[10px] border border-solid",
|
|
410
|
-
sx:
|
|
411
|
-
children: /* @__PURE__ */ r(
|
|
406
|
+
sx: Ge,
|
|
407
|
+
children: /* @__PURE__ */ r(er, { sx: { color: "inherit", fontSize: 16 } })
|
|
412
408
|
}
|
|
413
409
|
)
|
|
414
410
|
]
|
|
415
411
|
}
|
|
416
412
|
),
|
|
417
|
-
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-4 px-10 py-10", children:
|
|
418
|
-
const
|
|
413
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-4 px-10 py-10", children: fr.map((o, d) => {
|
|
414
|
+
const p = d === 1;
|
|
419
415
|
return /* @__PURE__ */ r(
|
|
420
416
|
"div",
|
|
421
417
|
{
|
|
422
418
|
className: "rounded-lg px-12 py-10",
|
|
423
419
|
style: {
|
|
424
|
-
backgroundColor:
|
|
425
|
-
color:
|
|
420
|
+
backgroundColor: p ? Ie : "transparent",
|
|
421
|
+
color: p ? h : oe
|
|
426
422
|
},
|
|
427
|
-
children: /* @__PURE__ */ r(
|
|
423
|
+
children: /* @__PURE__ */ r(i, { variant: "body2", fontWeight: p ? 700 : 500, children: o })
|
|
428
424
|
},
|
|
429
425
|
o
|
|
430
426
|
);
|
|
@@ -434,9 +430,9 @@ function qr({
|
|
|
434
430
|
{
|
|
435
431
|
className: "px-12 py-12",
|
|
436
432
|
style: {
|
|
437
|
-
borderTop: `1px solid ${
|
|
433
|
+
borderTop: `1px solid ${O}`
|
|
438
434
|
},
|
|
439
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ c(
|
|
440
436
|
"div",
|
|
441
437
|
{
|
|
442
438
|
className: "flex min-h-[56px] items-center gap-12 rounded-lg px-8 py-8",
|
|
@@ -447,15 +443,15 @@ function qr({
|
|
|
447
443
|
{
|
|
448
444
|
className: "flex h-36 w-36 shrink-0 items-center justify-center rounded-full",
|
|
449
445
|
style: {
|
|
450
|
-
backgroundColor:
|
|
451
|
-
color:
|
|
446
|
+
backgroundColor: $e,
|
|
447
|
+
color: We
|
|
452
448
|
},
|
|
453
|
-
children: /* @__PURE__ */ r(
|
|
449
|
+
children: /* @__PURE__ */ r(i, { sx: { fontSize: 18, fontWeight: 700, lineHeight: 1 }, children: "관" })
|
|
454
450
|
}
|
|
455
451
|
),
|
|
456
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
457
453
|
/* @__PURE__ */ r(
|
|
458
|
-
|
|
454
|
+
i,
|
|
459
455
|
{
|
|
460
456
|
className: "truncate",
|
|
461
457
|
sx: {
|
|
@@ -469,11 +465,11 @@ function qr({
|
|
|
469
465
|
}
|
|
470
466
|
),
|
|
471
467
|
/* @__PURE__ */ r(
|
|
472
|
-
|
|
468
|
+
i,
|
|
473
469
|
{
|
|
474
470
|
className: "truncate",
|
|
475
471
|
sx: {
|
|
476
|
-
color:
|
|
472
|
+
color: oe,
|
|
477
473
|
fontSize: 14,
|
|
478
474
|
fontWeight: 500,
|
|
479
475
|
letterSpacing: "-0.02em",
|
|
@@ -483,7 +479,7 @@ function qr({
|
|
|
483
479
|
}
|
|
484
480
|
)
|
|
485
481
|
] }),
|
|
486
|
-
/* @__PURE__ */ r("div", { className: "flex shrink-0 items-center justify-center", style: { color: b }, children: /* @__PURE__ */ r(
|
|
482
|
+
/* @__PURE__ */ r("div", { className: "flex shrink-0 items-center justify-center", style: { color: b }, children: /* @__PURE__ */ r(Xe, { sx: { fontSize: 16 } }) })
|
|
487
483
|
]
|
|
488
484
|
}
|
|
489
485
|
)
|
|
@@ -492,31 +488,31 @@ function qr({
|
|
|
492
488
|
]
|
|
493
489
|
}
|
|
494
490
|
),
|
|
495
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ c(
|
|
496
492
|
"div",
|
|
497
493
|
{
|
|
498
494
|
className: "relative flex min-h-0 flex-col gap-14 overflow-y-auto overflow-x-hidden p-14",
|
|
499
495
|
style: {
|
|
500
|
-
backgroundColor:
|
|
501
|
-
color:
|
|
496
|
+
backgroundColor: j,
|
|
497
|
+
color: ae
|
|
502
498
|
},
|
|
503
499
|
children: [
|
|
504
|
-
|
|
505
|
-
|
|
500
|
+
E("main", 8),
|
|
501
|
+
Oe ? /* @__PURE__ */ r(
|
|
506
502
|
"div",
|
|
507
503
|
{
|
|
508
504
|
className: "absolute inset-14 z-10 flex items-center justify-center rounded-lg",
|
|
509
505
|
style: {
|
|
510
|
-
backgroundColor: n(
|
|
511
|
-
border: `1px solid ${
|
|
506
|
+
backgroundColor: n(P, 0.88),
|
|
507
|
+
border: `1px solid ${$}`
|
|
512
508
|
},
|
|
513
|
-
children: /* @__PURE__ */
|
|
514
|
-
/* @__PURE__ */ r(
|
|
515
|
-
/* @__PURE__ */ r(
|
|
509
|
+
children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center gap-10", children: [
|
|
510
|
+
/* @__PURE__ */ r(nr, { color: "secondary", size: 34, thickness: 4.5 }),
|
|
511
|
+
/* @__PURE__ */ r(i, { variant: "body2", color: "text.secondary", fontWeight: 700, children: "로딩 중..." })
|
|
516
512
|
] })
|
|
517
513
|
}
|
|
518
514
|
) : null,
|
|
519
|
-
|
|
515
|
+
Ke.map((o) => /* @__PURE__ */ r(mr, { children: Le(o) }, `${o}-${Ue[o]}`))
|
|
520
516
|
]
|
|
521
517
|
}
|
|
522
518
|
)
|
|
@@ -524,8 +520,8 @@ function qr({
|
|
|
524
520
|
}
|
|
525
521
|
) });
|
|
526
522
|
}
|
|
527
|
-
|
|
523
|
+
z(_r, "ThemePreviewCanvas");
|
|
528
524
|
export {
|
|
529
|
-
|
|
525
|
+
_r as ThemePreviewCanvas
|
|
530
526
|
};
|
|
531
527
|
//# sourceMappingURL=ThemePreviewCanvas.js.map
|