@owp/core 2.5.52 → 2.5.54
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/OwpErrorBoundary/OwpErrorBoundary.js +49 -32
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpPicker/OwpTimePicker.js +223 -212
- 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 +228 -227
- package/dist/components/OwpTreeGrid/OwpTreeGrid.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 +1152 -1027
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +549 -427
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/theme.js +26 -22
- package/dist/configs/theme.js.map +1 -1
- package/dist/constants/gridTheme.js +53 -41
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +69 -49
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +53 -33
- package/dist/contexts/OwpUiProvider.js +37 -34
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +8 -8
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +27 -27
- package/dist/features/themePreview/components/ThemePreviewColorField.js +4 -4
- package/dist/features/themePreview/components/ThemePreviewControls.js +8 -8
- package/dist/features/themePreview/configs/grid.js +26 -26
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/configs/previewStorage.js +26 -32
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
- package/dist/features/themePreview/configs/settings.js +13 -12
- package/dist/features/themePreview/configs/settings.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +5 -5
- package/dist/features/themePreview/dialogs/index.js +5 -0
- package/dist/features/themePreview/dialogs/index.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +8 -12
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js +48 -37
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
- package/dist/index.js +67 -66
- package/dist/layout/components/toggles/ThemePreviewToggle.js +26 -27
- package/dist/layout/components/toggles/ThemePreviewToggle.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/CODE93/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/OwpErrorBoundary/OwpErrorBoundary.d.ts +4 -0
- package/dist/types/components/OwpErrorBoundary/index.d.ts +1 -1
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +7 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +3 -1
- package/dist/types/configs/theme/index.d.ts +2 -0
- package/dist/types/constants/gridTheme.d.ts +6 -0
- package/dist/types/constants/treeGrid.d.ts +40 -0
- package/dist/types/contexts/OwpAppContext.d.ts +1 -1
- package/dist/types/features/themePreview/configs/grid.d.ts +3 -4
- package/dist/types/features/themePreview/configs/settings.d.ts +15 -4
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +6 -0
- package/dist/types/types/OwpSettingsTypes.d.ts +7 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/utils/treeGridUtil.js +123 -118
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -2
- package/dist/features/themePreview.js +0 -76
- package/dist/features/themePreview.js.map +0 -1
- package/features/themePreview.d.ts +0 -3
- package/features/themePreview.js +0 -1
package/dist/constants.js
CHANGED
|
@@ -1,39 +1,59 @@
|
|
|
1
|
-
import { DEFAULT_CELL_ALIGNMENT as R, DEFAULT_HEADER_FILL as L, DEFAULT_HEADER_FONT as
|
|
2
|
-
import { FALLBACK_LANGUAGE_LIST as
|
|
3
|
-
import { CURRENT_LANGUAGE as
|
|
4
|
-
import { STORAGE_KEYS as
|
|
5
|
-
import { DEFAULT_TABLE_RADIUS as
|
|
6
|
-
import { TREEGRID_ADDED_ROW_BACKGROUND_COLOR as S, TREEGRID_CELL_CHANGED_CLASS as
|
|
7
|
-
import { TREEGRID_TABLE_BODY_BORDER_COLOR as
|
|
1
|
+
import { DEFAULT_CELL_ALIGNMENT as R, DEFAULT_HEADER_FILL as L, DEFAULT_HEADER_FONT as O, DEFAULT_THIN_BORDER as D, DEFAULT_VALUE_FONT as T, DEFAULT_WRAP_CELL_ALIGNMENT as C } from "./constants/excel.js";
|
|
2
|
+
import { FALLBACK_LANGUAGE_LIST as G } from "./constants/language.js";
|
|
3
|
+
import { CURRENT_LANGUAGE as U, LOCAL_STORAGE_KEYS as F, STORAGE_ACCESS_TOKEN_KEY as N } from "./constants/localStorageKeys.js";
|
|
4
|
+
import { STORAGE_KEYS as B } from "./constants/storageKeys.js";
|
|
5
|
+
import { DEFAULT_TABLE_RADIUS as H } from "./constants/table.js";
|
|
6
|
+
import { TREEGRID_ADDED_ROW_BACKGROUND_COLOR as S, TREEGRID_CELL_CHANGED_CLASS as o, TREEGRID_CELL_HIGHLIGHT_COLOR as t, TREEGRID_CELL_HIGHLIGHT_FONT_WEIGHT as W, TREEGRID_CELL_HIGHLIGHT_TEXT_COLOR as s, TREEGRID_CHANGED_ROW_BACKGROUND_COLOR as Y, TREEGRID_DEFAULT_BODY_BACKGROUND_COLOR as m, TREEGRID_DEFAULT_BODY_FILL_BACKGROUND_COLOR as x, TREEGRID_DEFAULT_BODY_TEXT_COLOR as f, TREEGRID_DEFAULT_EDITING_CELL_BORDER_COLOR as p, TREEGRID_DEFAULT_FOCUSED_CELL_BACKGROUND_COLOR as l, TREEGRID_DEFAULT_FOCUSED_CELL_BORDER_COLOR as M, TREEGRID_DEFAULT_FOCUSED_CELL_RECT_BACKGROUND_COLOR as d, TREEGRID_DEFAULT_FOCUSED_ROW_BACKGROUND_COLOR as i, TREEGRID_DEFAULT_FOCUSED_ROW_BORDER_COLOR as P, TREEGRID_DEFAULT_HEADER_BACKGROUND_COLOR as V, TREEGRID_DEFAULT_HEADER_TEXT_COLOR as a, TREEGRID_DEFAULT_HOVER_BACKGROUND_COLOR as g, TREEGRID_DEFAULT_HOVER_BORDER_COLOR as X, TREEGRID_DEFAULT_ROW_BACKGROUND_COLOR as c, TREEGRID_DEFAULT_ROW_SOLID_BACKGROUND_COLOR as u, TREEGRID_DEFAULT_SELECTED_CELL_BACKGROUND_COLOR as v, TREEGRID_DEFAULT_SELECTED_ROW_BACKGROUND_COLOR as b, TREEGRID_ERROR_CELL_BORDER_COLOR as h, TREEGRID_FONT_FAMILY as n, TREEGRID_FONT_FAMILY_STACK as y, TREEGRID_INPUT_CELL_COLOR as j, TREEGRID_THEME_PREVIEW_CHANGED_CELL_BACKGROUND_COLOR as k, TREEGRID_THEME_PREVIEW_EDITABLE_CELL_BACKGROUND_COLOR as q, TREEGRID_WARNING_CELL_COLOR as w, getTreeGridAssetBasePath as z, getTreeGridFontFaceStyles as J, getTreeGridTextResourceUrl as Q, resolveTreeGridAssetUrl as Z, resolveTreeGridColorNumber as $ } from "./constants/treeGrid.js";
|
|
7
|
+
import { TREEGRID_TABLE_BODY_BORDER_COLOR as _E, TREEGRID_TABLE_HEADER_BORDER_COLOR as RE } from "./components/OwpTable/internal/treeGridTableStyle.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
U as CURRENT_LANGUAGE,
|
|
10
10
|
R as DEFAULT_CELL_ALIGNMENT,
|
|
11
11
|
L as DEFAULT_HEADER_FILL,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
O as DEFAULT_HEADER_FONT,
|
|
13
|
+
H as DEFAULT_TABLE_RADIUS,
|
|
14
|
+
D as DEFAULT_THIN_BORDER,
|
|
15
|
+
T as DEFAULT_VALUE_FONT,
|
|
16
|
+
C as DEFAULT_WRAP_CELL_ALIGNMENT,
|
|
17
|
+
G as FALLBACK_LANGUAGE_LIST,
|
|
18
|
+
F as LOCAL_STORAGE_KEYS,
|
|
19
|
+
N as STORAGE_ACCESS_TOKEN_KEY,
|
|
20
|
+
B as STORAGE_KEYS,
|
|
21
21
|
S as TREEGRID_ADDED_ROW_BACKGROUND_COLOR,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
d as
|
|
34
|
-
i as
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
a as
|
|
22
|
+
o as TREEGRID_CELL_CHANGED_CLASS,
|
|
23
|
+
t as TREEGRID_CELL_HIGHLIGHT_COLOR,
|
|
24
|
+
W as TREEGRID_CELL_HIGHLIGHT_FONT_WEIGHT,
|
|
25
|
+
s as TREEGRID_CELL_HIGHLIGHT_TEXT_COLOR,
|
|
26
|
+
Y as TREEGRID_CHANGED_ROW_BACKGROUND_COLOR,
|
|
27
|
+
m as TREEGRID_DEFAULT_BODY_BACKGROUND_COLOR,
|
|
28
|
+
x as TREEGRID_DEFAULT_BODY_FILL_BACKGROUND_COLOR,
|
|
29
|
+
f as TREEGRID_DEFAULT_BODY_TEXT_COLOR,
|
|
30
|
+
p as TREEGRID_DEFAULT_EDITING_CELL_BORDER_COLOR,
|
|
31
|
+
l as TREEGRID_DEFAULT_FOCUSED_CELL_BACKGROUND_COLOR,
|
|
32
|
+
M as TREEGRID_DEFAULT_FOCUSED_CELL_BORDER_COLOR,
|
|
33
|
+
d as TREEGRID_DEFAULT_FOCUSED_CELL_RECT_BACKGROUND_COLOR,
|
|
34
|
+
i as TREEGRID_DEFAULT_FOCUSED_ROW_BACKGROUND_COLOR,
|
|
35
|
+
P as TREEGRID_DEFAULT_FOCUSED_ROW_BORDER_COLOR,
|
|
36
|
+
V as TREEGRID_DEFAULT_HEADER_BACKGROUND_COLOR,
|
|
37
|
+
a as TREEGRID_DEFAULT_HEADER_TEXT_COLOR,
|
|
38
|
+
g as TREEGRID_DEFAULT_HOVER_BACKGROUND_COLOR,
|
|
39
|
+
X as TREEGRID_DEFAULT_HOVER_BORDER_COLOR,
|
|
40
|
+
c as TREEGRID_DEFAULT_ROW_BACKGROUND_COLOR,
|
|
41
|
+
u as TREEGRID_DEFAULT_ROW_SOLID_BACKGROUND_COLOR,
|
|
42
|
+
v as TREEGRID_DEFAULT_SELECTED_CELL_BACKGROUND_COLOR,
|
|
43
|
+
b as TREEGRID_DEFAULT_SELECTED_ROW_BACKGROUND_COLOR,
|
|
44
|
+
h as TREEGRID_ERROR_CELL_BORDER_COLOR,
|
|
45
|
+
n as TREEGRID_FONT_FAMILY,
|
|
46
|
+
y as TREEGRID_FONT_FAMILY_STACK,
|
|
47
|
+
j as TREEGRID_INPUT_CELL_COLOR,
|
|
48
|
+
_E as TREEGRID_TABLE_BODY_BORDER_COLOR,
|
|
49
|
+
RE as TREEGRID_TABLE_HEADER_BORDER_COLOR,
|
|
50
|
+
k as TREEGRID_THEME_PREVIEW_CHANGED_CELL_BACKGROUND_COLOR,
|
|
51
|
+
q as TREEGRID_THEME_PREVIEW_EDITABLE_CELL_BACKGROUND_COLOR,
|
|
52
|
+
w as TREEGRID_WARNING_CELL_COLOR,
|
|
53
|
+
z as getTreeGridAssetBasePath,
|
|
54
|
+
J as getTreeGridFontFaceStyles,
|
|
55
|
+
Q as getTreeGridTextResourceUrl,
|
|
56
|
+
Z as resolveTreeGridAssetUrl,
|
|
57
|
+
$ as resolveTreeGridColorNumber
|
|
38
58
|
};
|
|
39
59
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as e, jsxs as
|
|
4
|
-
import { OwpAutoLogoutDialog as
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var l = (n, c) => d(n, "name", { value: c, configurable: !0 });
|
|
3
|
+
import { jsx as e, jsxs as h } 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 { OwpAutoLogoutDialog as S } from "../components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js";
|
|
5
5
|
import { OwpSnackbarContent as m } from "../components/OwpSnackbarContent/OwpSnackbarContent.js";
|
|
6
|
-
import { useAccessTokenGuard as
|
|
7
|
-
import { useGetCurrentLanguage as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
6
|
+
import { useAccessTokenGuard as w } from "../hooks/internal/useAccessTokenGuard.js";
|
|
7
|
+
import { useGetCurrentLanguage as O } from "../hooks/internal/useCurrentLanguage.js";
|
|
8
|
+
import { useGetCurrentSettings as x } from "../hooks/useOwpSettings.js";
|
|
9
|
+
import { useGetPageLockLoading as I } from "../hooks/usePageLockLoading.js";
|
|
10
|
+
import { useOwpTranslation as T } from "../hooks/useOwpTranslation.js";
|
|
11
|
+
import { getI18nextLanguageCode as y } from "../utils/language.js";
|
|
12
|
+
import A 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 z from "@mui/material/IconButton";
|
|
14
|
+
import { SnackbarProvider as G, closeSnackbar as D } from "notistack";
|
|
15
|
+
import { useEffect as E } from "react";
|
|
16
|
+
import { useOwpAppContext as M } from "./OwpAppContext.js";
|
|
17
|
+
import { OwpPageLockLoading as j } from "../components/OwpPageLockLoading/OwpPageLockLoading.js";
|
|
18
|
+
import { OwpDialogsProvider as H } from "../components/OwpDialogsProvider/OwpDialogsProvider.js";
|
|
19
|
+
import { OwpLoading as N } from "../components/OwpLoading/OwpLoading.js";
|
|
20
|
+
const R = {
|
|
20
21
|
default: m,
|
|
21
22
|
success: m,
|
|
22
23
|
info: m,
|
|
@@ -36,28 +37,30 @@ const j = {
|
|
|
36
37
|
classes: {
|
|
37
38
|
containerRoot: "bottom-0 right-0 mb-52 md:mb-68 mr-8 lg:mr-80"
|
|
38
39
|
},
|
|
39
|
-
Components:
|
|
40
|
-
action: /* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
Components: R,
|
|
41
|
+
action: /* @__PURE__ */ l((n) => /* @__PURE__ */ e(
|
|
42
|
+
z,
|
|
42
43
|
{
|
|
43
44
|
"aria-label": "close",
|
|
44
|
-
onClick: /* @__PURE__ */
|
|
45
|
+
onClick: /* @__PURE__ */ l(() => D(n), "onClick"),
|
|
45
46
|
size: "small",
|
|
46
47
|
sx: { color: "inherit" },
|
|
47
|
-
children: /* @__PURE__ */ e(
|
|
48
|
+
children: /* @__PURE__ */ e(A, { fontSize: "small" })
|
|
48
49
|
}
|
|
49
50
|
), "action")
|
|
50
51
|
};
|
|
51
|
-
function
|
|
52
|
+
function tt({
|
|
52
53
|
children: n,
|
|
53
|
-
dialogsProviderProps:
|
|
54
|
+
dialogsProviderProps: c,
|
|
54
55
|
snackbarProviderProps: t
|
|
55
56
|
}) {
|
|
56
|
-
const { env: o } =
|
|
57
|
+
const { env: o } = M(), f = x(), a = O(), { i18n: g } = T(), p = I(), r = w(), u = f.snackbarProviderProps, L = {
|
|
57
58
|
...i,
|
|
59
|
+
...u,
|
|
58
60
|
...t,
|
|
59
61
|
style: {
|
|
60
62
|
...i.style,
|
|
63
|
+
...u == null ? void 0 : u.style,
|
|
61
64
|
...t == null ? void 0 : t.style
|
|
62
65
|
},
|
|
63
66
|
classes: {
|
|
@@ -69,17 +72,17 @@ function b({
|
|
|
69
72
|
...t == null ? void 0 : t.Components
|
|
70
73
|
},
|
|
71
74
|
action: (t == null ? void 0 : t.action) ?? i.action
|
|
72
|
-
},
|
|
73
|
-
return
|
|
74
|
-
o != null && o.isI18nEnabled &&
|
|
75
|
-
}, [
|
|
75
|
+
}, s = Number(o == null ? void 0 : o.autoLogoutIdleTimeoutMs), C = Number.isFinite(s) ? s : void 0;
|
|
76
|
+
return E(() => {
|
|
77
|
+
o != null && o.isI18nEnabled && g.changeLanguage(y());
|
|
78
|
+
}, [a, o, g]), r ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ e(H, { ...c, children: /* @__PURE__ */ h(G, { ...L, children: [
|
|
76
79
|
n,
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
(o == null ? void 0 : o.isAutoLogoutEnabled) && /* @__PURE__ */ e(
|
|
80
|
+
/* @__PURE__ */ e(j, { ...p }),
|
|
81
|
+
(o == null ? void 0 : o.isAutoLogoutEnabled) && /* @__PURE__ */ e(S, { timeout: C })
|
|
79
82
|
] }) });
|
|
80
83
|
}
|
|
81
|
-
|
|
84
|
+
l(tt, "OwpUiProvider");
|
|
82
85
|
export {
|
|
83
|
-
|
|
86
|
+
tt as OwpUiProvider
|
|
84
87
|
};
|
|
85
88
|
//# sourceMappingURL=OwpUiProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpUiProvider.js","sources":["../../src/contexts/OwpUiProvider.tsx"],"sourcesContent":null,"names":["defaultSnackbarComponents","OwpSnackbarContent","defaultSnackbarProviderProps","__name","snackbarKey","jsx","IconButton","closeSnackbar","CloseIcon","OwpUiProvider","children","dialogsProviderProps","snackbarProviderProps","env","useOwpAppContext","currentLanguage","useGetCurrentLanguage","i18n","useOwpTranslation","pageLockLoadingProps","useGetPageLockLoading","shouldRedirectToLogin","useAccessTokenGuard","resolvedSnackbarProviderProps","resolvedAutoLogoutIdleTimeoutMs","autoLogoutIdleTimeoutMs","useEffect","getI18nextLanguageCode","OwpLoading","OwpDialogsProvider","jsxs","SnackbarProvider","OwpPageLockLoading","OwpAutoLogoutDialog"],"mappings":"
|
|
1
|
+
{"version":3,"file":"OwpUiProvider.js","sources":["../../src/contexts/OwpUiProvider.tsx"],"sourcesContent":null,"names":["defaultSnackbarComponents","OwpSnackbarContent","defaultSnackbarProviderProps","__name","snackbarKey","jsx","IconButton","closeSnackbar","CloseIcon","OwpUiProvider","children","dialogsProviderProps","snackbarProviderProps","env","useOwpAppContext","currentSettings","useGetCurrentSettings","currentLanguage","useGetCurrentLanguage","i18n","useOwpTranslation","pageLockLoadingProps","useGetPageLockLoading","shouldRedirectToLogin","useAccessTokenGuard","settingsSnackbarProviderProps","resolvedSnackbarProviderProps","resolvedAutoLogoutIdleTimeoutMs","autoLogoutIdleTimeoutMs","useEffect","getI18nextLanguageCode","OwpLoading","OwpDialogsProvider","jsxs","SnackbarProvider","OwpPageLockLoading","OwpAutoLogoutDialog"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,IAA4B;AAAA,EAChC,SAASC;AAAA,EACT,SAASA;AAAA,EACT,MAAMA;AAAA,EACN,SAASA;AAAA,EACT,OAAOA;AACT,GAcMC,IAAyD;AAAA,EAC7D,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,cAAc;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,EAAA;AAAA,EAEd,OAAO;AAAA,IACL,UAAU;AAAA,IACV,YAAY;AAAA,EAAA;AAAA,EAEd,SAAS;AAAA,IACP,eAAe;AAAA,EAAA;AAAA,EAEjB,YAAYF;AAAA,EACZ,QAAQ,gBAAAG,EAAA,CAACC,MACP,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,cAAW;AAAA,MACX,SAAS,gBAAAH,EAAA,MAAMI,EAAcH,CAAW,GAA/B;AAAA,MACT,MAAK;AAAA,MACL,IAAI,EAAE,OAAO,UAAA;AAAA,MAEb,UAAA,gBAAAC,EAACG,GAAA,EAAU,UAAS,QAAA,CAAQ;AAAA,IAAA;AAAA,EAAA,GAPxB;AAUV;AAMO,SAASC,GAAc;AAAA,EAC5B,UAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,uBAAAC;AACF,GAAuB;AACrB,QAAM,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACVC,IAAkBC,EAAA,GAClBC,IAAkBC,EAAA,GAClB,EAAE,MAAAC,EAAA,IAASC,EAAA,GACXC,IAAuBC,EAAA,GACvBC,IAAwBC,EAAA,GACxBC,IAAgCV,EAAgB,uBAChDW,IAA0D;AAAA,IAC9D,GAAGxB;AAAA,IACH,GAAGuB;AAAA,IACH,GAAGb;AAAA,IACH,OAAO;AAAA,MACL,GAAGV,EAA6B;AAAA,MAChC,GAAGuB,KAAA,gBAAAA,EAA+B;AAAA,MAClC,GAAGb,KAAA,gBAAAA,EAAuB;AAAA,IAAA;AAAA,IAE5B,SAAS;AAAA,MACP,GAAGV,EAA6B;AAAA,MAChC,GAAGU,KAAA,gBAAAA,EAAuB;AAAA,IAAA;AAAA,IAE5B,YAAY;AAAA,MACV,GAAGV,EAA6B;AAAA,MAChC,GAAGU,KAAA,gBAAAA,EAAuB;AAAA,IAAA;AAAA,IAE5B,SAAQA,KAAA,gBAAAA,EAAuB,WAAUV,EAA6B;AAAA,EAAA,GAElEyB,IAAkC,OAAOd,KAAA,gBAAAA,EAAK,uBAAuB,GACrEe,IAA0B,OAAO,SAASD,CAA+B,IAC3EA,IACA;AAUJ,SARAE,EAAU,MAAM;AACd,IAAKhB,KAAA,QAAAA,EAAK,iBAILM,EAAK,eAAeW,GAAwB;AAAA,EACnD,GAAG,CAACb,GAAiBJ,GAAKM,CAAI,CAAC,GAE3BI,sBACMQ,GAAA,EAAW,sBAIlBC,GAAA,EAAoB,GAAGrB,GACtB,UAAA,gBAAAsB,EAACC,GAAA,EAAkB,GAAGR,GACnB,UAAA;AAAA,IAAAhB;AAAA,IACD,gBAAAL,EAAC8B,GAAA,EAAoB,GAAGd,GAAsB;AAAA,KAC7CR,KAAA,gBAAAA,EAAK,wBAAuB,gBAAAR,EAAC+B,GAAA,EAAoB,SAASR,EAAA,CAAyB;AAAA,EAAA,EAAA,CACtF,EAAA,CACF;AAEJ;AAzDgBzB,EAAAM,IAAA;"}
|
|
@@ -14,7 +14,7 @@ import { owpDayjs as dr } from "../../../dayjs.js";
|
|
|
14
14
|
import { closeSnackbar as sr } from "notistack";
|
|
15
15
|
import { useRef as mr, useDeferredValue as br, useMemo as t, useEffect as vr, Fragment as hr } from "react";
|
|
16
16
|
import { getPaletteValue as a, previewChromeBorder as D, getPreviewContrastColor as Ce, createThemePreviewVersionKey as p, gridPreviewBodyBackground as ur, gridPreviewBodyText as fr, getThemePreviewStyleValue as Te, snackbarPreviewMessageByVariant as pr, getPreviewSectionOrder as xr, navbarPreviewItems as kr, themePreviewReadonlyTreeGridId as wr, themePreviewEditableTreeGridId as gr } from "./themePreviewCanvas.shared.js";
|
|
17
|
-
import {
|
|
17
|
+
import { ThemePreviewGridPreviewTable as yr, ThemePreviewTablesSection as Pr, ThemePreviewGridSection as Sr, ThemePreviewSearchHeaderSection as Cr, ThemePreviewSnackbarsSection as Tr, ThemePreviewButtonsSection as Br, ThemePreviewCommonSection as Nr } from "./ThemePreviewCanvasSections.js";
|
|
18
18
|
import { snackbarPreviewIconByVariant as Hr } from "./themePreviewCanvas.icons.js";
|
|
19
19
|
import { merge as Be } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
|
|
20
20
|
const $r = "#ff4d2d", zr = "rgba(255, 77, 45, 0.14)";
|
|
@@ -178,7 +178,7 @@ function qr({
|
|
|
178
178
|
]
|
|
179
179
|
), qe = t(
|
|
180
180
|
() => /* @__PURE__ */ r(
|
|
181
|
-
|
|
181
|
+
yr,
|
|
182
182
|
{
|
|
183
183
|
gridBodyBorder: fe,
|
|
184
184
|
layoutPreviewGridCellBackground: he,
|
|
@@ -209,7 +209,7 @@ function qr({
|
|
|
209
209
|
switch (o) {
|
|
210
210
|
case "common":
|
|
211
211
|
return /* @__PURE__ */ r(
|
|
212
|
-
|
|
212
|
+
Nr,
|
|
213
213
|
{
|
|
214
214
|
buttonPreviewItems: pe,
|
|
215
215
|
mainTextSecondary: ce,
|
|
@@ -219,7 +219,7 @@ function qr({
|
|
|
219
219
|
);
|
|
220
220
|
case "buttons":
|
|
221
221
|
return /* @__PURE__ */ r(
|
|
222
|
-
|
|
222
|
+
Br,
|
|
223
223
|
{
|
|
224
224
|
buttonPreviewItems: pe,
|
|
225
225
|
mainTextSecondary: ce,
|
|
@@ -228,7 +228,7 @@ function qr({
|
|
|
228
228
|
);
|
|
229
229
|
case "snackbars":
|
|
230
230
|
return /* @__PURE__ */ r(
|
|
231
|
-
|
|
231
|
+
Tr,
|
|
232
232
|
{
|
|
233
233
|
previewSectionCardSx: f,
|
|
234
234
|
previewSnackbarKeysRef: V,
|
|
@@ -244,7 +244,7 @@ function qr({
|
|
|
244
244
|
);
|
|
245
245
|
case "searchHeader":
|
|
246
246
|
return /* @__PURE__ */ r(
|
|
247
|
-
|
|
247
|
+
Cr,
|
|
248
248
|
{
|
|
249
249
|
activeSection: s === "navbar" || s === "toolbar" ? s : "main",
|
|
250
250
|
gridPreviewTable: qe,
|
|
@@ -263,7 +263,7 @@ function qr({
|
|
|
263
263
|
);
|
|
264
264
|
case "grid":
|
|
265
265
|
return /* @__PURE__ */ r(
|
|
266
|
-
|
|
266
|
+
Sr,
|
|
267
267
|
{
|
|
268
268
|
editableThemePreviewGridId: De,
|
|
269
269
|
mainGridChangedBackgroundColor: (c = v == null ? void 0 : v.changed) == null ? void 0 : c.backgroundColor,
|
|
@@ -275,7 +275,7 @@ function qr({
|
|
|
275
275
|
);
|
|
276
276
|
case "tables":
|
|
277
277
|
return /* @__PURE__ */ r(
|
|
278
|
-
|
|
278
|
+
Pr,
|
|
279
279
|
{
|
|
280
280
|
mainThemePreviewStoreState: I,
|
|
281
281
|
previewSectionCardSx: f,
|
|
@@ -12,22 +12,22 @@ import { highlightTreeGridCellById as he } from "../../../utils/treeGridUtil.js"
|
|
|
12
12
|
import A 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
13
|
import me 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";
|
|
14
14
|
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/SpaceDashboardOutlined.js";
|
|
15
|
-
import {
|
|
15
|
+
import { TableHead as fe, TableRow as F, TableCell as I, TableBody as pe, Table as ue, Typography as c, Box as v, Paper as D, TextField as E, Skeleton as M, Button as R, ButtonBase as ve, CircularProgress as U, LinearProgress as H, IconButton as ge } from "@mui/material";
|
|
16
16
|
import { useTheme as K, createTheme as be, ThemeProvider as we, alpha as j } from "@mui/material/styles";
|
|
17
17
|
import { enqueueSnackbar as ye, closeSnackbar as L, SnackbarContent as Te } from "notistack";
|
|
18
18
|
import { memo as N, useMemo as Se } from "react";
|
|
19
|
-
import { getThemePreviewFieldTableSx as z, getThemePreviewFieldTableTitleSx as Z, tableFieldPreviewLayout as ee, tableFieldPreviewData as le, getThemePreviewFieldTableCellSx as _, getThemePreviewBasicTableSx as
|
|
19
|
+
import { previewChromeBorder as P, gridPreviewColumnLabels as Ne, gridPreviewRows as Ce, gridPreviewBodyText as Re, getThemePreviewFieldTableSx as z, getThemePreviewFieldTableTitleSx as Z, tableFieldPreviewLayout as ee, tableFieldPreviewData as le, getThemePreviewFieldTableCellSx as _, getThemePreviewBasicTableSx as Pe, tablePreviewRows as We, tablePreviewHeaders as re, getThemePreviewDataTableSx as ke, dataTablePreviewRows as V, dataTablePreviewHeadCells as ie, gridCanvasPreviewRows as X, gridStyledTablePreviewRows as Ee, gridStyledDataTablePreviewRows as Be, previewNoop as T, previewInnerCardSx as ae, searchHeaderPreviewData as $e, previewSectionCardClassName as Ge } from "./themePreviewCanvas.shared.js";
|
|
20
20
|
import { OwpStyleProvider as G } from "../../../components/OwpStyleProvider/OwpStyleProvider.js";
|
|
21
21
|
import { OwpTreeGrid as Y } from "../../../components/OwpTreeGrid/OwpTreeGrid.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { OwpPageContent as De } from "../../../components/OwpPageContent/OwpPageContent.js";
|
|
22
|
+
import { OwpYesNoSelector as Me } from "../../../components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
23
|
+
import { OwpPageContent as Oe } from "../../../components/OwpPageContent/OwpPageContent.js";
|
|
25
24
|
import { OwpSection as q } from "../../../components/OwpSection/OwpSection.js";
|
|
25
|
+
import { OwpSearchFilter as De } from "../../../components/OwpSearchFilter/OwpSearchFilter.js";
|
|
26
26
|
function y({
|
|
27
27
|
children: s,
|
|
28
28
|
fillContentHeight: r = !1,
|
|
29
29
|
gapClassName: i = "gap-16",
|
|
30
|
-
paperClassName: a =
|
|
30
|
+
paperClassName: a = Ge,
|
|
31
31
|
sx: o,
|
|
32
32
|
title: n
|
|
33
33
|
}) {
|
|
@@ -138,10 +138,10 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
138
138
|
/* @__PURE__ */ e(xe, { color: "primary" }),
|
|
139
139
|
/* @__PURE__ */ e(c, { variant: "body2", color: "primary.main", fontWeight: 600, children: "primary" })
|
|
140
140
|
] }),
|
|
141
|
-
/* @__PURE__ */ e(
|
|
141
|
+
/* @__PURE__ */ e(U, { color: "primary", size: 18, thickness: 5 })
|
|
142
142
|
] }),
|
|
143
143
|
/* @__PURE__ */ e(
|
|
144
|
-
|
|
144
|
+
H,
|
|
145
145
|
{
|
|
146
146
|
color: "primary",
|
|
147
147
|
sx: { borderRadius: 999, height: 6, width: "100%" },
|
|
@@ -154,10 +154,10 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
154
154
|
/* @__PURE__ */ e(me, { color: "secondary" }),
|
|
155
155
|
/* @__PURE__ */ e(c, { variant: "body2", color: "secondary.main", fontWeight: 600, children: "secondary" })
|
|
156
156
|
] }),
|
|
157
|
-
/* @__PURE__ */ e(
|
|
157
|
+
/* @__PURE__ */ e(U, { color: "secondary", size: 18, thickness: 5 })
|
|
158
158
|
] }),
|
|
159
159
|
/* @__PURE__ */ e(
|
|
160
|
-
|
|
160
|
+
H,
|
|
161
161
|
{
|
|
162
162
|
color: "secondary",
|
|
163
163
|
sx: { borderRadius: 999, height: 6, width: "100%" },
|
|
@@ -395,7 +395,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
395
395
|
},
|
|
396
396
|
children: f.map(
|
|
397
397
|
({ key: S, actionHoverColor: u, backgroundColor: b, color: w, icon: C, message: W }) => /* @__PURE__ */ l(
|
|
398
|
-
|
|
398
|
+
ve,
|
|
399
399
|
{
|
|
400
400
|
className: "flex items-center justify-between gap-10 px-16 py-10 text-left",
|
|
401
401
|
onClick: /* @__PURE__ */ d(() => {
|
|
@@ -500,7 +500,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
500
500
|
backgroundColor: "transparent",
|
|
501
501
|
boxShadow: "none"
|
|
502
502
|
},
|
|
503
|
-
children: /* @__PURE__ */ l(
|
|
503
|
+
children: /* @__PURE__ */ l(De, { onSubmit: T, onReset: T, children: [
|
|
504
504
|
/* @__PURE__ */ e(
|
|
505
505
|
se,
|
|
506
506
|
{
|
|
@@ -511,7 +511,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
511
511
|
}
|
|
512
512
|
),
|
|
513
513
|
/* @__PURE__ */ e(
|
|
514
|
-
|
|
514
|
+
Me,
|
|
515
515
|
{
|
|
516
516
|
label: "사용여부",
|
|
517
517
|
yesLabel: "사용",
|
|
@@ -542,7 +542,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
542
542
|
border: `1px solid ${P}`
|
|
543
543
|
},
|
|
544
544
|
children: /* @__PURE__ */ e(
|
|
545
|
-
|
|
545
|
+
Oe,
|
|
546
546
|
{
|
|
547
547
|
title: "제목",
|
|
548
548
|
centerSlot: /* @__PURE__ */ e("div", { className: "w-[240px]", children: /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
|
|
@@ -560,7 +560,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
560
560
|
...Array.isArray(u) ? u : u ? [u] : [],
|
|
561
561
|
{ py: 0.5, textAlign: "center" }
|
|
562
562
|
],
|
|
563
|
-
data:
|
|
563
|
+
data: $e,
|
|
564
564
|
layout: [[{ title: "상태", key: "previewValue" }]],
|
|
565
565
|
titleSx: [
|
|
566
566
|
...Array.isArray(b) ? b : b ? [b] : [],
|
|
@@ -741,7 +741,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
741
741
|
{
|
|
742
742
|
canUseTreeGridStyle: !0,
|
|
743
743
|
headers: re,
|
|
744
|
-
rows:
|
|
744
|
+
rows: Ee
|
|
745
745
|
}
|
|
746
746
|
)
|
|
747
747
|
] }),
|
|
@@ -756,7 +756,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
756
756
|
canUseTreeGridStyle: !0,
|
|
757
757
|
fixedRowCount: 1,
|
|
758
758
|
headCells: ie,
|
|
759
|
-
rows:
|
|
759
|
+
rows: Be,
|
|
760
760
|
sx: {
|
|
761
761
|
"& .MuiTableBody-root > .MuiTableRow-root, & .MuiTableBody-root > .MuiTableRow-root:hover, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover": {
|
|
762
762
|
backgroundColor: "transparent"
|
|
@@ -804,19 +804,19 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
804
804
|
] }),
|
|
805
805
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-8", children: [
|
|
806
806
|
/* @__PURE__ */ e(c, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Table" }),
|
|
807
|
-
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(v, { sx:
|
|
807
|
+
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(v, { sx: Pe(o, a), children: /* @__PURE__ */ e(
|
|
808
808
|
Q,
|
|
809
809
|
{
|
|
810
810
|
canUseTreeGridStyle: !1,
|
|
811
811
|
headers: re,
|
|
812
|
-
rows:
|
|
812
|
+
rows: We
|
|
813
813
|
},
|
|
814
814
|
`basic-table-${n}`
|
|
815
815
|
) }) })
|
|
816
816
|
] }),
|
|
817
817
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-8", children: [
|
|
818
818
|
/* @__PURE__ */ e(c, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Data Table" }),
|
|
819
|
-
/* @__PURE__ */ e(v, { sx:
|
|
819
|
+
/* @__PURE__ */ e(v, { sx: ke(o, a), children: /* @__PURE__ */ e(
|
|
820
820
|
J,
|
|
821
821
|
{
|
|
822
822
|
canCheckbox: !1,
|
|
@@ -853,15 +853,15 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
853
853
|
borderColor: P
|
|
854
854
|
},
|
|
855
855
|
children: /* @__PURE__ */ l(
|
|
856
|
-
|
|
856
|
+
ue,
|
|
857
857
|
{
|
|
858
858
|
size: "small",
|
|
859
859
|
sx: {
|
|
860
860
|
tableLayout: "fixed"
|
|
861
861
|
},
|
|
862
862
|
children: [
|
|
863
|
-
/* @__PURE__ */ e(
|
|
864
|
-
|
|
863
|
+
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(F, { children: Ne.map((f) => /* @__PURE__ */ e(
|
|
864
|
+
I,
|
|
865
865
|
{
|
|
866
866
|
sx: {
|
|
867
867
|
backgroundColor: o,
|
|
@@ -881,19 +881,19 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
881
881
|
},
|
|
882
882
|
f
|
|
883
883
|
)) }) }),
|
|
884
|
-
/* @__PURE__ */ e(
|
|
885
|
-
|
|
884
|
+
/* @__PURE__ */ e(pe, { children: Ce.map((f) => /* @__PURE__ */ e(
|
|
885
|
+
F,
|
|
886
886
|
{
|
|
887
887
|
sx: {
|
|
888
888
|
backgroundColor: i
|
|
889
889
|
},
|
|
890
890
|
children: f.map((t, h) => /* @__PURE__ */ e(
|
|
891
|
-
|
|
891
|
+
I,
|
|
892
892
|
{
|
|
893
893
|
sx: {
|
|
894
894
|
borderBottom: `1px solid ${r}`,
|
|
895
895
|
borderRight: `1px solid ${r}`,
|
|
896
|
-
color:
|
|
896
|
+
color: Re,
|
|
897
897
|
fontSize: a,
|
|
898
898
|
px: 1.25,
|
|
899
899
|
py: 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ne = Object.defineProperty;
|
|
2
2
|
var l = (t, e) => ne(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as o, jsxs as d, Fragment as ae } 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 { IconButton as ie, Typography as k, InputAdornment as ue, MenuItem as ce, TextField as Q,
|
|
4
|
+
import { IconButton as ie, Typography as k, InputAdornment as ue, MenuItem as ce, TextField as Q, Button as se, Box as g, Divider as pe, Popover as de } from "@mui/material";
|
|
5
5
|
import me 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/RestartAltOutlined.js";
|
|
6
6
|
import { blue as he, lightBlue as fe, cyan as xe, teal as ge, green as we, amber as be, orange as Pe, deepOrange as ve, red as ye, pink as Ce, purple as ke, deepPurple as Te, indigo as Ve, grey as Ie, blueGrey as Ee } from "@mui/material/colors";
|
|
7
7
|
import { useState as w, useRef as T, useEffect as b } from "react";
|
|
@@ -207,7 +207,7 @@ function Xe({
|
|
|
207
207
|
H ? /* @__PURE__ */ d("div", { className: "grid grid-cols-2 gap-6", children: [
|
|
208
208
|
/* @__PURE__ */ d(ae, { children: [
|
|
209
209
|
/* @__PURE__ */ o(
|
|
210
|
-
|
|
210
|
+
se,
|
|
211
211
|
{
|
|
212
212
|
size: "small",
|
|
213
213
|
fullWidth: !0,
|
|
@@ -281,7 +281,7 @@ function Xe({
|
|
|
281
281
|
}
|
|
282
282
|
),
|
|
283
283
|
v ? /* @__PURE__ */ o(
|
|
284
|
-
|
|
284
|
+
de,
|
|
285
285
|
{
|
|
286
286
|
open: !0,
|
|
287
287
|
anchorEl: v,
|
|
@@ -310,7 +310,7 @@ function Xe({
|
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
children: /* @__PURE__ */ o("div", { ref: O, className: "flex min-w-0 flex-col gap-10", children: re.map((r, u) => /* @__PURE__ */ d(g, { className: "flex flex-col gap-10", children: [
|
|
313
|
-
u > 0 ? /* @__PURE__ */ o(
|
|
313
|
+
u > 0 ? /* @__PURE__ */ o(pe, { flexItem: !0 }) : null,
|
|
314
314
|
/* @__PURE__ */ d(
|
|
315
315
|
g,
|
|
316
316
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var ae = Object.defineProperty;
|
|
2
2
|
var s = (r, d) => ae(r, "name", { value: d, configurable: !0 });
|
|
3
3
|
import { jsx as o, jsxs as h } 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 { MenuItem as W, ButtonBase as se, Typography as x, Paper as A, TextField as
|
|
4
|
+
import { Divider as Z, MenuItem as W, ButtonBase as se, Typography as x, Paper as A, TextField as q, Box as de, IconButton as ce, FormControlLabel as ue, Checkbox as he } from "@mui/material";
|
|
5
5
|
import me 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/RestartAltOutlined.js";
|
|
6
|
-
import {
|
|
6
|
+
import { createTheme as fe, ThemeProvider as pe } from "@mui/material/styles";
|
|
7
7
|
import { useState as be, useRef as Ce, useMemo as B, useEffect as ge } from "react";
|
|
8
8
|
import { toolbarCuratedPresetKeys as ve, designSystemPresetKeys as xe } from "../configs/presets.js";
|
|
9
9
|
import { ThemePreviewColorField as J } from "./ThemePreviewColorField.js";
|
|
@@ -85,7 +85,7 @@ const Fe = Object.fromEntries(
|
|
|
85
85
|
}, M = "#d8dee8", Se = "#d1d7e0", Ee = "#f8fafc", D = "#ffffff", y = "#111827", v = "#6b7280", Q = "#ffffff", re = "#cbd5e1", Ne = "#94a3b8", z = "#1ea3e6", V = "#111827", Ie = "#f8fafc", We = "#f8fafc", ze = `특별한 경우가 아니면 연동 색상 편집은 권장하지 않습니다.
|
|
86
86
|
|
|
87
87
|
Primary Main 값을 선택하면 Light, Dark, Contrast 값이 자동으로 채워집니다.
|
|
88
|
-
특수한 디자인 조정이 필요한 경우에만 직접 편집하세요.`, je =
|
|
88
|
+
특수한 디자인 조정이 필요한 경우에만 직접 편집하세요.`, je = fe({
|
|
89
89
|
palette: {
|
|
90
90
|
mode: "light",
|
|
91
91
|
background: {
|
|
@@ -232,7 +232,7 @@ function Je({
|
|
|
232
232
|
const l = [];
|
|
233
233
|
return e.key === G && l.push(
|
|
234
234
|
/* @__PURE__ */ o(
|
|
235
|
-
|
|
235
|
+
Z,
|
|
236
236
|
{
|
|
237
237
|
component: "li",
|
|
238
238
|
role: "presentation",
|
|
@@ -390,7 +390,7 @@ function Je({
|
|
|
390
390
|
}) })
|
|
391
391
|
] }, e.key);
|
|
392
392
|
}, "renderFieldGroup");
|
|
393
|
-
return /* @__PURE__ */ o(
|
|
393
|
+
return /* @__PURE__ */ o(pe, { theme: je, children: /* @__PURE__ */ h(de, { sx: Ke, className: "flex h-full min-h-0 flex-col gap-16", children: [
|
|
394
394
|
/* @__PURE__ */ o("div", { className: "grid grid-cols-2 gap-12", children: ee.map((e) => {
|
|
395
395
|
const l = e.key === r;
|
|
396
396
|
return /* @__PURE__ */ o(
|
|
@@ -436,7 +436,7 @@ function Je({
|
|
|
436
436
|
/* @__PURE__ */ o(x, { variant: "h6", sx: { color: y }, children: K == null ? void 0 : K.label }),
|
|
437
437
|
E ? /* @__PURE__ */ h("div", { className: "grid gap-12 md:grid-cols-2", children: [
|
|
438
438
|
/* @__PURE__ */ h(
|
|
439
|
-
|
|
439
|
+
q,
|
|
440
440
|
{
|
|
441
441
|
select: !0,
|
|
442
442
|
label: "Mode",
|
|
@@ -451,7 +451,7 @@ function Je({
|
|
|
451
451
|
}
|
|
452
452
|
),
|
|
453
453
|
/* @__PURE__ */ h(
|
|
454
|
-
|
|
454
|
+
q,
|
|
455
455
|
{
|
|
456
456
|
select: !0,
|
|
457
457
|
label: "Preset",
|
|
@@ -468,7 +468,7 @@ function Je({
|
|
|
468
468
|
] }) : null
|
|
469
469
|
] }) }),
|
|
470
470
|
/* @__PURE__ */ o(
|
|
471
|
-
|
|
471
|
+
Z,
|
|
472
472
|
{
|
|
473
473
|
sx: {
|
|
474
474
|
borderColor: M
|