@owp/core 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- 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/_virtual/index5.js +2 -2
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpTable/OwpDataTable.js +293 -327
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +102 -117
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +50 -0
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -0
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +47 -45
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +179 -161
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/contexts/OwpAppProvider.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +492 -0
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +678 -0
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewColorField.js +301 -0
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewControls.js +306 -0
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -0
- package/dist/features/themePreview/components/themePreviewCanvas.icons.js +17 -0
- package/dist/features/themePreview/components/themePreviewCanvas.icons.js.map +1 -0
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js +296 -0
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -0
- package/dist/features/themePreview/configs/grid.js +45 -0
- package/dist/features/themePreview/configs/grid.js.map +1 -0
- package/dist/features/themePreview/configs/presets.js +1106 -0
- package/dist/features/themePreview/configs/presets.js.map +1 -0
- package/dist/features/themePreview/configs/previewStorage.js +93 -0
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -0
- package/dist/features/themePreview/configs/settings.js +148 -0
- package/dist/features/themePreview/configs/settings.js.map +1 -0
- package/dist/features/themePreview/configs/snackbar.js +39 -0
- package/dist/features/themePreview/configs/snackbar.js.map +1 -0
- package/dist/features/themePreview/configs/surface.js +10 -0
- package/dist/features/themePreview/configs/surface.js.map +1 -0
- package/dist/features/themePreview/configs/table.js +30 -0
- package/dist/features/themePreview/configs/table.js.map +1 -0
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +43 -0
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -0
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +43 -0
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -0
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +429 -0
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -0
- package/dist/features/themePreview/hooks/useThemePreview.js +235 -0
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -0
- package/dist/features/themePreview/utils/color.js +79 -0
- package/dist/features/themePreview/utils/color.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +526 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewExport.js +111 -0
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewSettings.js +211 -0
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -0
- package/dist/features/themePreview.js +75 -0
- package/dist/features/themePreview.js.map +1 -0
- package/dist/layout/components/logo/Logo.js +49 -45
- package/dist/layout/components/logo/Logo.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toggles/ThemePreviewToggle.js +51 -0
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -0
- package/dist/layout/components/toolbar/ToolbarLayout.js +8 -6
- 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/CheckCircleOutline.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/CheckCircleOutline.js.map +1 -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/DownloadOutlined.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/DownloadOutlined.js.map +1 -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/ErrorOutline.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/ErrorOutline.js.map +1 -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/InfoOutlined.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/InfoOutlined.js.map +1 -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/KeyboardArrowUpRounded.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/KeyboardArrowUpRounded.js.map +1 -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/MenuRounded.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/MenuRounded.js.map +1 -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/NotificationsNoneOutlined.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/NotificationsNoneOutlined.js.map +1 -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/PaletteOutlined.js +25 -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/PaletteOutlined.js.map +1 -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/RestoreOutlined.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/RestoreOutlined.js.map +1 -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/SaveOutlined.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/SaveOutlined.js.map +1 -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/SpaceDashboardOutlined.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/SpaceDashboardOutlined.js.map +1 -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/UploadFileOutlined.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/UploadFileOutlined.js.map +1 -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/WarningAmberRounded.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/WarningAmberRounded.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/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.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/OwpTable/internal/defaultTableStyle.d.ts +49 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +6 -1
- package/dist/types/contexts/OwpAppProvider.d.ts +2 -0
- package/dist/types/features/themePreview/components/ThemePreviewCanvas.d.ts +8 -0
- package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +82 -0
- package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +10 -0
- package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +18 -0
- package/dist/types/features/themePreview/components/index.d.ts +3 -0
- package/dist/types/features/themePreview/components/themePreviewCanvas.icons.d.ts +3 -0
- package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +121 -0
- package/dist/types/features/themePreview/configs/grid.d.ts +41 -0
- package/dist/types/features/themePreview/configs/index.d.ts +7 -0
- package/dist/types/features/themePreview/configs/presets.d.ts +1153 -0
- package/dist/types/features/themePreview/configs/previewStorage.d.ts +34 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +271 -0
- package/dist/types/features/themePreview/configs/snackbar.d.ts +43 -0
- package/dist/types/features/themePreview/configs/surface.d.ts +6 -0
- package/dist/types/features/themePreview/configs/table.d.ts +47 -0
- package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +3 -0
- package/dist/types/features/themePreview/dialogs/index.d.ts +1 -0
- package/dist/types/features/themePreview/hooks/index.d.ts +1 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +60 -0
- package/dist/types/features/themePreview/index.d.ts +6 -0
- package/dist/types/features/themePreview/types/index.d.ts +1 -0
- package/dist/types/features/themePreview/types/themePreview.d.ts +44 -0
- package/dist/types/features/themePreview/utils/color.d.ts +14 -0
- package/dist/types/features/themePreview/utils/index.d.ts +4 -0
- package/dist/types/features/themePreview/utils/themePreviewDefinitions.d.ts +10 -0
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1091 -0
- package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +54 -0
- package/dist/types/layout/components/toggles/ThemePreviewToggle.d.ts +5 -0
- package/features/themePreview.d.ts +3 -0
- package/features/themePreview.js +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var a = (e, r) => f(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { getContrastRatio as P } from "@mui/material/styles";
|
|
4
|
+
import { getThemePreviewPaletteValue as g } from "../utils/themePreviewSettings.js";
|
|
5
|
+
const C = "#e2e8f0", S = "rounded-lg p-14", I = {
|
|
6
|
+
boxShadow: "none"
|
|
7
|
+
}, p = "ThemePreviewGrid", h = "ThemePreviewReadonlyGrid", k = "#ffffff", y = "rgb(17, 24, 39)", T = ["buttons", "searchHeader"], H = ["부서명", "사용자ID", "성명", "사용여부"], O = ["Dashboard", "Theme Preview", "사용자 관리", "권한 그룹"], s = {
|
|
8
|
+
admin: "관리자",
|
|
9
|
+
impix: "담당자1",
|
|
10
|
+
owp: "담당자2"
|
|
11
|
+
}, V = {
|
|
12
|
+
default: "기본 snackbar 메시지",
|
|
13
|
+
success: "정상적으로 처리되었습니다.",
|
|
14
|
+
info: "확인이 필요한 안내 메시지입니다.",
|
|
15
|
+
warning: "입력값을 다시 확인해주세요.",
|
|
16
|
+
error: "오류가 발생했습니다."
|
|
17
|
+
}, B = { previewValue: "적용 대기" }, N = {
|
|
18
|
+
departmentName: "생산1팀",
|
|
19
|
+
managerName: s.impix,
|
|
20
|
+
useYn: "사용",
|
|
21
|
+
locationName: "제1공장"
|
|
22
|
+
}, x = [
|
|
23
|
+
[
|
|
24
|
+
{ title: "부서명", key: "departmentName" },
|
|
25
|
+
{ title: "담당자", key: "managerName" }
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
{ title: "사용여부", key: "useYn" },
|
|
29
|
+
{ title: "위치", key: "locationName" }
|
|
30
|
+
]
|
|
31
|
+
], A = {
|
|
32
|
+
departmentName: "부서명",
|
|
33
|
+
managerName: "담당자",
|
|
34
|
+
useYn: "사용여부"
|
|
35
|
+
}, v = [
|
|
36
|
+
{
|
|
37
|
+
departmentName: "생산1팀",
|
|
38
|
+
managerName: s.impix,
|
|
39
|
+
useYn: "사용"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
departmentName: "품질팀",
|
|
43
|
+
managerName: s.owp,
|
|
44
|
+
useYn: "사용"
|
|
45
|
+
}
|
|
46
|
+
], D = v.slice(0, 1), z = [
|
|
47
|
+
{ id: "userId", label: "사용자ID", align: "center", valueAlign: "center" },
|
|
48
|
+
{ id: "userName", label: "성명", align: "center", valueAlign: "center" },
|
|
49
|
+
{ id: "useYn", label: "사용여부", align: "center", valueAlign: "center" }
|
|
50
|
+
], b = [
|
|
51
|
+
{
|
|
52
|
+
userId: "impix",
|
|
53
|
+
userName: s.impix,
|
|
54
|
+
useYn: "사용"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
userId: "owp",
|
|
58
|
+
userName: s.owp,
|
|
59
|
+
useYn: "미사용"
|
|
60
|
+
}
|
|
61
|
+
], F = b.slice(0, 1), Y = [
|
|
62
|
+
{
|
|
63
|
+
"OWP_THEME_PREVIEW.ITEM_NAME": "원자재",
|
|
64
|
+
"OWP_THEME_PREVIEW.REMARK": "초기 점검",
|
|
65
|
+
"OWP_THEME_PREVIEW.STATUS": "READY",
|
|
66
|
+
"OWP_THEME_PREVIEW.USER_ID": "admin",
|
|
67
|
+
"OWP_THEME_PREVIEW.WEIGHT": 12.5,
|
|
68
|
+
"OWP_THEME_PREVIEW.WORK_DATE": "2026-04-18",
|
|
69
|
+
CanSelect: 1,
|
|
70
|
+
Selected: 1
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"OWP_THEME_PREVIEW.ITEM_NAME": "가공품",
|
|
74
|
+
"OWP_THEME_PREVIEW.REMARK": "조건 확인",
|
|
75
|
+
"OWP_THEME_PREVIEW.STATUS": "DONE",
|
|
76
|
+
"OWP_THEME_PREVIEW.USER_ID": "impix",
|
|
77
|
+
"OWP_THEME_PREVIEW.WEIGHT": 8.2,
|
|
78
|
+
"OWP_THEME_PREVIEW.WORK_DATE": "2026-04-17",
|
|
79
|
+
CanSelect: 1
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"OWP_THEME_PREVIEW.ITEM_NAME": "완제품",
|
|
83
|
+
"OWP_THEME_PREVIEW.REMARK": "샘플 데이터",
|
|
84
|
+
"OWP_THEME_PREVIEW.STATUS": "READY",
|
|
85
|
+
"OWP_THEME_PREVIEW.USER_ID": "owp",
|
|
86
|
+
"OWP_THEME_PREVIEW.WEIGHT": 15.75,
|
|
87
|
+
"OWP_THEME_PREVIEW.WORK_DATE": "2026-04-16",
|
|
88
|
+
CanSelect: 1
|
|
89
|
+
}
|
|
90
|
+
], G = /* @__PURE__ */ a(() => {
|
|
91
|
+
}, "previewNoop");
|
|
92
|
+
function R() {
|
|
93
|
+
return [
|
|
94
|
+
["관리부", "admin", s.admin, "사용"],
|
|
95
|
+
["생산1팀", "impix", s.impix, "사용"],
|
|
96
|
+
["품질팀", "owp", s.owp, "미사용"]
|
|
97
|
+
];
|
|
98
|
+
}
|
|
99
|
+
a(R, "createGridPreviewRows");
|
|
100
|
+
const K = R();
|
|
101
|
+
function U(e) {
|
|
102
|
+
const r = JSON.stringify(e ?? {});
|
|
103
|
+
let o = 0;
|
|
104
|
+
for (let t = 0; t < r.length; t += 1)
|
|
105
|
+
o = Math.imul(31, o) + r.charCodeAt(t), o |= 0;
|
|
106
|
+
return Math.abs(o).toString(36);
|
|
107
|
+
}
|
|
108
|
+
a(U, "createThemePreviewVersionKey");
|
|
109
|
+
function L(e, r, o) {
|
|
110
|
+
return g(e, r, o);
|
|
111
|
+
}
|
|
112
|
+
a(L, "getPaletteValue");
|
|
113
|
+
function c(e) {
|
|
114
|
+
if (typeof e != "string")
|
|
115
|
+
return e;
|
|
116
|
+
const r = e.trim();
|
|
117
|
+
return r || void 0;
|
|
118
|
+
}
|
|
119
|
+
a(c, "getThemePreviewStyleValue");
|
|
120
|
+
function m(e, r = !1) {
|
|
121
|
+
return r ? 0 : c(e);
|
|
122
|
+
}
|
|
123
|
+
a(m, "getThemePreviewResolvedBorderRadius");
|
|
124
|
+
function u(e, r = !1) {
|
|
125
|
+
const o = m(
|
|
126
|
+
e.borderRadius,
|
|
127
|
+
r
|
|
128
|
+
);
|
|
129
|
+
return typeof o > "u" ? {} : {
|
|
130
|
+
"& > .MuiPaper-root, & > .MuiTableContainer-root.MuiPaper-root": {
|
|
131
|
+
borderRadius: o,
|
|
132
|
+
overflow: "hidden"
|
|
133
|
+
},
|
|
134
|
+
"& > .MuiPaper-root > .MuiTableContainer-root": {
|
|
135
|
+
borderRadius: o,
|
|
136
|
+
overflow: "hidden"
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
a(u, "getThemePreviewTableFrameSx");
|
|
141
|
+
function J(e, r = !1) {
|
|
142
|
+
var n, i, l, d;
|
|
143
|
+
const o = c((i = (n = e.field) == null ? void 0 : n.cell) == null ? void 0 : i.backgroundColor), t = c((d = (l = e.field) == null ? void 0 : l.cell) == null ? void 0 : d.fontSize);
|
|
144
|
+
return {
|
|
145
|
+
...u(e, r),
|
|
146
|
+
...(o || t) && {
|
|
147
|
+
"& tbody td": {
|
|
148
|
+
...o && { backgroundColor: o },
|
|
149
|
+
...t && { fontSize: t }
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
a(J, "getThemePreviewFieldTableSx");
|
|
155
|
+
function j(e) {
|
|
156
|
+
var t, n, i, l;
|
|
157
|
+
const r = c((n = (t = e.field) == null ? void 0 : t.header) == null ? void 0 : n.fontSize), o = c((l = (i = e.field) == null ? void 0 : i.header) == null ? void 0 : l.fontWeight);
|
|
158
|
+
if (!(!r && !o))
|
|
159
|
+
return {
|
|
160
|
+
...r && {
|
|
161
|
+
fontSize: r
|
|
162
|
+
},
|
|
163
|
+
...o && {
|
|
164
|
+
fontWeight: o
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
a(j, "getThemePreviewFieldTableTitleSx");
|
|
169
|
+
function q(e) {
|
|
170
|
+
var t, n, i, l;
|
|
171
|
+
const r = c((n = (t = e.field) == null ? void 0 : t.cell) == null ? void 0 : n.backgroundColor), o = c((l = (i = e.field) == null ? void 0 : i.cell) == null ? void 0 : l.fontSize);
|
|
172
|
+
if (!(!r && !o))
|
|
173
|
+
return {
|
|
174
|
+
...r && {
|
|
175
|
+
backgroundColor: r
|
|
176
|
+
},
|
|
177
|
+
...o && {
|
|
178
|
+
fontSize: o
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
a(q, "getThemePreviewFieldTableCellSx");
|
|
183
|
+
function Q(e, r = !1) {
|
|
184
|
+
var i, l, d;
|
|
185
|
+
const o = c((i = e.row) == null ? void 0 : i.backgroundColor), t = c((l = e.row) == null ? void 0 : l.hoverBackgroundColor), n = c((d = e.cell) == null ? void 0 : d.fontSize);
|
|
186
|
+
return {
|
|
187
|
+
...u(e, r),
|
|
188
|
+
...o && {
|
|
189
|
+
"& tbody > .MuiTableRow-root": {
|
|
190
|
+
backgroundColor: o
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
...t && {
|
|
194
|
+
"& tbody > .MuiTableRow-root:hover": {
|
|
195
|
+
backgroundColor: t
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
...n && {
|
|
199
|
+
"& tbody > .MuiTableRow-root > .MuiTableCell-root": {
|
|
200
|
+
fontSize: n
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
a(Q, "getThemePreviewBasicTableSx");
|
|
206
|
+
function X(e, r = !1) {
|
|
207
|
+
var l, d, E, w;
|
|
208
|
+
const o = c((l = e.row) == null ? void 0 : l.backgroundColor), t = c((d = e.row) == null ? void 0 : d.hoverBackgroundColor), n = c(
|
|
209
|
+
(E = e.row) == null ? void 0 : E.selectedBackgroundColor
|
|
210
|
+
), i = c((w = e.cell) == null ? void 0 : w.fontSize);
|
|
211
|
+
return {
|
|
212
|
+
...u(e, r),
|
|
213
|
+
...o && {
|
|
214
|
+
"& .MuiTableBody-root > .MuiTableRow-root:not(.Mui-selected)": {
|
|
215
|
+
backgroundColor: o
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
...t && {
|
|
219
|
+
"& .MuiTableBody-root > .MuiTableRow-root.MuiTableRow-hover:hover:not(.Mui-selected)": {
|
|
220
|
+
backgroundColor: t
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
...n && {
|
|
224
|
+
"& .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover": {
|
|
225
|
+
backgroundColor: n
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
...i && {
|
|
229
|
+
"& .MuiTableBody-root > .MuiTableRow-root > .MuiTableCell-root": {
|
|
230
|
+
fontSize: i
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
a(X, "getThemePreviewDataTableSx");
|
|
236
|
+
function Z(e, r) {
|
|
237
|
+
const o = "#ffffff", t = "#0f172a", n = P(e, o), i = P(e, t);
|
|
238
|
+
return n === i ? r : n > i ? o : t;
|
|
239
|
+
}
|
|
240
|
+
a(Z, "getPreviewContrastColor");
|
|
241
|
+
function $(e) {
|
|
242
|
+
switch (e) {
|
|
243
|
+
case "main":
|
|
244
|
+
case "navbar":
|
|
245
|
+
case "toolbar":
|
|
246
|
+
return [...T];
|
|
247
|
+
case "grid":
|
|
248
|
+
return ["grid"];
|
|
249
|
+
case "snackbar":
|
|
250
|
+
return ["snackbars"];
|
|
251
|
+
case "table":
|
|
252
|
+
return ["tables"];
|
|
253
|
+
default:
|
|
254
|
+
return [...T];
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
a($, "getPreviewSectionOrder");
|
|
258
|
+
export {
|
|
259
|
+
U as createThemePreviewVersionKey,
|
|
260
|
+
z as dataTablePreviewHeadCells,
|
|
261
|
+
b as dataTablePreviewRows,
|
|
262
|
+
T as defaultPreviewSectionOrder,
|
|
263
|
+
L as getPaletteValue,
|
|
264
|
+
Z as getPreviewContrastColor,
|
|
265
|
+
$ as getPreviewSectionOrder,
|
|
266
|
+
Q as getThemePreviewBasicTableSx,
|
|
267
|
+
X as getThemePreviewDataTableSx,
|
|
268
|
+
q as getThemePreviewFieldTableCellSx,
|
|
269
|
+
J as getThemePreviewFieldTableSx,
|
|
270
|
+
j as getThemePreviewFieldTableTitleSx,
|
|
271
|
+
m as getThemePreviewResolvedBorderRadius,
|
|
272
|
+
c as getThemePreviewStyleValue,
|
|
273
|
+
u as getThemePreviewTableFrameSx,
|
|
274
|
+
Y as gridCanvasPreviewRows,
|
|
275
|
+
k as gridPreviewBodyBackground,
|
|
276
|
+
y as gridPreviewBodyText,
|
|
277
|
+
H as gridPreviewColumnLabels,
|
|
278
|
+
K as gridPreviewRows,
|
|
279
|
+
F as gridStyledDataTablePreviewRows,
|
|
280
|
+
D as gridStyledTablePreviewRows,
|
|
281
|
+
O as navbarPreviewItems,
|
|
282
|
+
C as previewChromeBorder,
|
|
283
|
+
I as previewInnerCardSx,
|
|
284
|
+
G as previewNoop,
|
|
285
|
+
S as previewSectionCardClassName,
|
|
286
|
+
s as previewUserNameById,
|
|
287
|
+
B as searchHeaderPreviewData,
|
|
288
|
+
V as snackbarPreviewMessageByVariant,
|
|
289
|
+
N as tableFieldPreviewData,
|
|
290
|
+
x as tableFieldPreviewLayout,
|
|
291
|
+
A as tablePreviewHeaders,
|
|
292
|
+
v as tablePreviewRows,
|
|
293
|
+
p as themePreviewEditableTreeGridId,
|
|
294
|
+
h as themePreviewReadonlyTreeGridId
|
|
295
|
+
};
|
|
296
|
+
//# sourceMappingURL=themePreviewCanvas.shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themePreviewCanvas.shared.js","sources":["../../../../src/features/themePreview/components/themePreviewCanvas.shared.ts"],"sourcesContent":["import type { OwpFieldTable } from '@/components/OwpTable/OwpFieldTable';\nimport type { SnackbarVariantKey } from '@/features/themePreview/configs/snackbar';\nimport type { ThemePreviewTableConfigType } from '@/features/themePreview/configs/table';\nimport { getContrastRatio, type SxProps, type Theme } from '@mui/material/styles';\nimport type { ComponentProps } from 'react';\nimport type {\n ThemePreviewPaletteSectionKey,\n ThemePreviewSectionKey,\n ThemePreviewSettings,\n} from '../types';\nimport { getThemePreviewPaletteValue } from '../utils';\n\nexport const previewChromeBorder = '#e2e8f0';\nexport const previewSectionCardClassName = 'rounded-lg p-14';\nexport const previewInnerCardSx = {\n boxShadow: 'none',\n} as const;\nexport const themePreviewEditableTreeGridId = 'ThemePreviewGrid';\nexport const themePreviewReadonlyTreeGridId = 'ThemePreviewReadonlyGrid';\nexport const gridPreviewBodyBackground = '#ffffff';\nexport const gridPreviewBodyText = 'rgb(17, 24, 39)';\nexport const defaultPreviewSectionOrder = ['buttons', 'searchHeader'] as const;\nexport const gridPreviewColumnLabels = ['부서명', '사용자ID', '성명', '사용여부'] as const;\nexport const navbarPreviewItems = ['Dashboard', 'Theme Preview', '사용자 관리', '권한 그룹'] as const;\nexport const previewUserNameById = {\n admin: '관리자',\n impix: '담당자1',\n owp: '담당자2',\n} as const;\nexport const snackbarPreviewMessageByVariant: Record<SnackbarVariantKey, string> = {\n default: '기본 snackbar 메시지',\n success: '정상적으로 처리되었습니다.',\n info: '확인이 필요한 안내 메시지입니다.',\n warning: '입력값을 다시 확인해주세요.',\n error: '오류가 발생했습니다.',\n};\nexport const searchHeaderPreviewData = { previewValue: '적용 대기' };\nexport const tableFieldPreviewData = {\n departmentName: '생산1팀',\n managerName: previewUserNameById.impix,\n useYn: '사용',\n locationName: '제1공장',\n};\nexport const tableFieldPreviewLayout = [\n [\n { title: '부서명', key: 'departmentName' },\n { title: '담당자', key: 'managerName' },\n ],\n [\n { title: '사용여부', key: 'useYn' },\n { title: '위치', key: 'locationName' },\n ],\n];\nexport const tablePreviewHeaders = {\n departmentName: '부서명',\n managerName: '담당자',\n useYn: '사용여부',\n};\nexport const tablePreviewRows = [\n {\n departmentName: '생산1팀',\n managerName: previewUserNameById.impix,\n useYn: '사용',\n },\n {\n departmentName: '품질팀',\n managerName: previewUserNameById.owp,\n useYn: '사용',\n },\n];\nexport const gridStyledTablePreviewRows = tablePreviewRows.slice(0, 1);\nexport const dataTablePreviewHeadCells = [\n { id: 'userId', label: '사용자ID', align: 'center', valueAlign: 'center' },\n { id: 'userName', label: '성명', align: 'center', valueAlign: 'center' },\n { id: 'useYn', label: '사용여부', align: 'center', valueAlign: 'center' },\n];\nexport const dataTablePreviewRows = [\n {\n userId: 'impix',\n userName: previewUserNameById.impix,\n useYn: '사용',\n },\n {\n userId: 'owp',\n userName: previewUserNameById.owp,\n useYn: '미사용',\n },\n];\nexport const gridStyledDataTablePreviewRows = dataTablePreviewRows.slice(0, 1);\nexport const gridCanvasPreviewRows = [\n {\n 'OWP_THEME_PREVIEW.ITEM_NAME': '원자재',\n 'OWP_THEME_PREVIEW.REMARK': '초기 점검',\n 'OWP_THEME_PREVIEW.STATUS': 'READY',\n 'OWP_THEME_PREVIEW.USER_ID': 'admin',\n 'OWP_THEME_PREVIEW.WEIGHT': 12.5,\n 'OWP_THEME_PREVIEW.WORK_DATE': '2026-04-18',\n CanSelect: 1,\n Selected: 1,\n },\n {\n 'OWP_THEME_PREVIEW.ITEM_NAME': '가공품',\n 'OWP_THEME_PREVIEW.REMARK': '조건 확인',\n 'OWP_THEME_PREVIEW.STATUS': 'DONE',\n 'OWP_THEME_PREVIEW.USER_ID': 'impix',\n 'OWP_THEME_PREVIEW.WEIGHT': 8.2,\n 'OWP_THEME_PREVIEW.WORK_DATE': '2026-04-17',\n CanSelect: 1,\n },\n {\n 'OWP_THEME_PREVIEW.ITEM_NAME': '완제품',\n 'OWP_THEME_PREVIEW.REMARK': '샘플 데이터',\n 'OWP_THEME_PREVIEW.STATUS': 'READY',\n 'OWP_THEME_PREVIEW.USER_ID': 'owp',\n 'OWP_THEME_PREVIEW.WEIGHT': 15.75,\n 'OWP_THEME_PREVIEW.WORK_DATE': '2026-04-16',\n CanSelect: 1,\n },\n];\nexport const previewNoop = () => {};\n\ntype ThemePreviewFieldTableCellSx = NonNullable<ComponentProps<typeof OwpFieldTable>['cellSx']>;\ntype ThemePreviewFieldTableTitleSx = NonNullable<ComponentProps<typeof OwpFieldTable>['titleSx']>;\n\nexport type ThemePreviewLayoutSectionKey =\n | 'buttons'\n | 'snackbars'\n | 'searchHeader'\n | 'grid'\n | 'tables';\n\nfunction createGridPreviewRows() {\n return [\n ['관리부', 'admin', previewUserNameById.admin, '사용'],\n ['생산1팀', 'impix', previewUserNameById.impix, '사용'],\n ['품질팀', 'owp', previewUserNameById.owp, '미사용'],\n ] as const;\n}\n\nexport const gridPreviewRows = createGridPreviewRows();\n\nexport function createThemePreviewVersionKey(sourceValue: unknown) {\n const source = JSON.stringify(sourceValue ?? {});\n let hash = 0;\n\n for (let index = 0; index < source.length; index += 1) {\n hash = Math.imul(31, hash) + source.charCodeAt(index);\n hash |= 0;\n }\n\n return Math.abs(hash).toString(36);\n}\n\nexport function getPaletteValue(\n settings: ThemePreviewSettings,\n sectionKey: ThemePreviewPaletteSectionKey,\n path: string,\n) {\n return getThemePreviewPaletteValue(settings, sectionKey, path);\n}\n\nexport function getThemePreviewStyleValue<T extends number | string | undefined>(value: T) {\n if (typeof value !== 'string') {\n return value;\n }\n\n const trimmedValue = value.trim();\n\n return trimmedValue ? (trimmedValue as T) : undefined;\n}\n\nexport function getThemePreviewResolvedBorderRadius(\n borderRadius: ThemePreviewTableConfigType['borderRadius'],\n canTableRadiusZero = false,\n) {\n return canTableRadiusZero ? 0 : getThemePreviewStyleValue(borderRadius);\n}\n\nexport function getThemePreviewTableFrameSx(\n tableTheme: ThemePreviewTableConfigType,\n canTableRadiusZero = false,\n): SxProps<Theme> {\n const borderRadius = getThemePreviewResolvedBorderRadius(\n tableTheme.borderRadius,\n canTableRadiusZero,\n );\n\n if (typeof borderRadius === 'undefined') {\n return {};\n }\n\n return {\n '& > .MuiPaper-root, & > .MuiTableContainer-root.MuiPaper-root': {\n borderRadius,\n overflow: 'hidden',\n },\n '& > .MuiPaper-root > .MuiTableContainer-root': {\n borderRadius,\n overflow: 'hidden',\n },\n };\n}\n\nexport function getThemePreviewFieldTableSx(\n tableTheme: ThemePreviewTableConfigType,\n canTableRadiusZero = false,\n): SxProps<Theme> {\n const cellBackgroundColor = getThemePreviewStyleValue(tableTheme.field?.cell?.backgroundColor);\n const cellFontSize = getThemePreviewStyleValue(tableTheme.field?.cell?.fontSize);\n\n return {\n ...getThemePreviewTableFrameSx(tableTheme, canTableRadiusZero),\n ...((cellBackgroundColor || cellFontSize) && {\n '& tbody td': {\n ...(cellBackgroundColor && { backgroundColor: cellBackgroundColor }),\n ...(cellFontSize && { fontSize: cellFontSize }),\n },\n }),\n };\n}\n\nexport function getThemePreviewFieldTableTitleSx(\n tableTheme: ThemePreviewTableConfigType,\n): ThemePreviewFieldTableTitleSx | undefined {\n const titleFontSize = getThemePreviewStyleValue(tableTheme.field?.header?.fontSize);\n const titleFontWeight = getThemePreviewStyleValue(tableTheme.field?.header?.fontWeight);\n\n if (!titleFontSize && !titleFontWeight) {\n return undefined;\n }\n\n return {\n ...(titleFontSize && {\n fontSize: titleFontSize,\n }),\n ...(titleFontWeight && {\n fontWeight: titleFontWeight,\n }),\n };\n}\n\nexport function getThemePreviewFieldTableCellSx(\n tableTheme: ThemePreviewTableConfigType,\n): ThemePreviewFieldTableCellSx | undefined {\n const cellBackgroundColor = getThemePreviewStyleValue(tableTheme.field?.cell?.backgroundColor);\n const cellFontSize = getThemePreviewStyleValue(tableTheme.field?.cell?.fontSize);\n\n if (!cellBackgroundColor && !cellFontSize) {\n return undefined;\n }\n\n return {\n ...(cellBackgroundColor && {\n backgroundColor: cellBackgroundColor,\n }),\n ...(cellFontSize && {\n fontSize: cellFontSize,\n }),\n };\n}\n\nexport function getThemePreviewBasicTableSx(\n tableTheme: ThemePreviewTableConfigType,\n canTableRadiusZero = false,\n): SxProps<Theme> {\n const rowBackgroundColor = getThemePreviewStyleValue(tableTheme.row?.backgroundColor);\n const hoverBackgroundColor = getThemePreviewStyleValue(tableTheme.row?.hoverBackgroundColor);\n const cellFontSize = getThemePreviewStyleValue(tableTheme.cell?.fontSize);\n\n return {\n ...getThemePreviewTableFrameSx(tableTheme, canTableRadiusZero),\n ...(rowBackgroundColor && {\n '& tbody > .MuiTableRow-root': {\n backgroundColor: rowBackgroundColor,\n },\n }),\n ...(hoverBackgroundColor && {\n '& tbody > .MuiTableRow-root:hover': {\n backgroundColor: hoverBackgroundColor,\n },\n }),\n ...(cellFontSize && {\n '& tbody > .MuiTableRow-root > .MuiTableCell-root': {\n fontSize: cellFontSize,\n },\n }),\n };\n}\n\nexport function getThemePreviewDataTableSx(\n tableTheme: ThemePreviewTableConfigType,\n canTableRadiusZero = false,\n): SxProps<Theme> {\n const rowBackgroundColor = getThemePreviewStyleValue(tableTheme.row?.backgroundColor);\n const hoverBackgroundColor = getThemePreviewStyleValue(tableTheme.row?.hoverBackgroundColor);\n const selectedBackgroundColor = getThemePreviewStyleValue(\n tableTheme.row?.selectedBackgroundColor,\n );\n const cellFontSize = getThemePreviewStyleValue(tableTheme.cell?.fontSize);\n\n return {\n ...getThemePreviewTableFrameSx(tableTheme, canTableRadiusZero),\n ...(rowBackgroundColor && {\n '& .MuiTableBody-root > .MuiTableRow-root:not(.Mui-selected)': {\n backgroundColor: rowBackgroundColor,\n },\n }),\n ...(hoverBackgroundColor && {\n '& .MuiTableBody-root > .MuiTableRow-root.MuiTableRow-hover:hover:not(.Mui-selected)': {\n backgroundColor: hoverBackgroundColor,\n },\n }),\n ...(selectedBackgroundColor && {\n '& .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover':\n {\n backgroundColor: selectedBackgroundColor,\n },\n }),\n ...(cellFontSize && {\n '& .MuiTableBody-root > .MuiTableRow-root > .MuiTableCell-root': {\n fontSize: cellFontSize,\n },\n }),\n };\n}\n\nexport function getPreviewContrastColor(color: string, fallbackColor: string) {\n const lightTextColor = '#ffffff';\n const darkTextColor = '#0f172a';\n const lightContrastRatio = getContrastRatio(color, lightTextColor);\n const darkContrastRatio = getContrastRatio(color, darkTextColor);\n\n if (lightContrastRatio === darkContrastRatio) {\n return fallbackColor;\n }\n\n return lightContrastRatio > darkContrastRatio ? lightTextColor : darkTextColor;\n}\n\nexport function getPreviewSectionOrder(\n activeSection: ThemePreviewSectionKey,\n): ThemePreviewLayoutSectionKey[] {\n switch (activeSection) {\n case 'main':\n case 'navbar':\n case 'toolbar':\n return [...defaultPreviewSectionOrder];\n case 'grid':\n return ['grid'];\n case 'snackbar':\n return ['snackbars'];\n case 'table':\n return ['tables'];\n default:\n return [...defaultPreviewSectionOrder];\n }\n}\n"],"names":["previewChromeBorder","previewSectionCardClassName","previewInnerCardSx","themePreviewEditableTreeGridId","themePreviewReadonlyTreeGridId","gridPreviewBodyBackground","gridPreviewBodyText","defaultPreviewSectionOrder","gridPreviewColumnLabels","navbarPreviewItems","previewUserNameById","snackbarPreviewMessageByVariant","searchHeaderPreviewData","tableFieldPreviewData","tableFieldPreviewLayout","tablePreviewHeaders","tablePreviewRows","gridStyledTablePreviewRows","dataTablePreviewHeadCells","dataTablePreviewRows","gridStyledDataTablePreviewRows","gridCanvasPreviewRows","previewNoop","__name","createGridPreviewRows","gridPreviewRows","createThemePreviewVersionKey","sourceValue","source","hash","index","getPaletteValue","settings","sectionKey","path","getThemePreviewPaletteValue","getThemePreviewStyleValue","value","trimmedValue","getThemePreviewResolvedBorderRadius","borderRadius","canTableRadiusZero","getThemePreviewTableFrameSx","tableTheme","getThemePreviewFieldTableSx","cellBackgroundColor","_b","_a","cellFontSize","_d","_c","getThemePreviewFieldTableTitleSx","titleFontSize","titleFontWeight","getThemePreviewFieldTableCellSx","getThemePreviewBasicTableSx","rowBackgroundColor","hoverBackgroundColor","getThemePreviewDataTableSx","selectedBackgroundColor","getPreviewContrastColor","color","fallbackColor","lightTextColor","darkTextColor","lightContrastRatio","getContrastRatio","darkContrastRatio","getPreviewSectionOrder","activeSection"],"mappings":";;;;AAYO,MAAMA,IAAsB,WACtBC,IAA8B,mBAC9BC,IAAqB;AAAA,EAChC,WAAW;AACb,GACaC,IAAiC,oBACjCC,IAAiC,4BACjCC,IAA4B,WAC5BC,IAAsB,mBACtBC,IAA6B,CAAC,WAAW,cAAc,GACvDC,IAA0B,CAAC,OAAO,SAAS,MAAM,MAAM,GACvDC,IAAqB,CAAC,aAAa,iBAAiB,UAAU,OAAO,GACrEC,IAAsB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,KAAK;AACP,GACaC,IAAsE;AAAA,EACjF,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACT,GACaC,IAA0B,EAAE,cAAc,QAAA,GAC1CC,IAAwB;AAAA,EACnC,gBAAgB;AAAA,EAChB,aAAaH,EAAoB;AAAA,EACjC,OAAO;AAAA,EACP,cAAc;AAChB,GACaI,IAA0B;AAAA,EACrC;AAAA,IACE,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A;AAE3C;AAjBgBgB,EAAA6C,GAAA;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
header: {
|
|
3
|
+
backgroundColor: "#586980",
|
|
4
|
+
color: "#ffffff",
|
|
5
|
+
fontSize: "14px",
|
|
6
|
+
fontWeight: "normal",
|
|
7
|
+
height: 33
|
|
8
|
+
},
|
|
9
|
+
body: {
|
|
10
|
+
backgroundColor: "#FFFFFF",
|
|
11
|
+
color: "#111112",
|
|
12
|
+
fillBackgroundColor: "#F7F7F7"
|
|
13
|
+
},
|
|
14
|
+
row: {
|
|
15
|
+
backgroundColor: "#FFFFFE",
|
|
16
|
+
solidBackgroundColor: "#F6F7F8"
|
|
17
|
+
},
|
|
18
|
+
cell: {
|
|
19
|
+
fontSize: "13px"
|
|
20
|
+
},
|
|
21
|
+
state: {
|
|
22
|
+
hoverRowBackgroundColor: "#EEE",
|
|
23
|
+
hoverRowBorderColor: "#A7C6E0",
|
|
24
|
+
selectedCellBackgroundColor: "#FFFFA6",
|
|
25
|
+
selectedRowBackgroundColor: "#EEE",
|
|
26
|
+
focusedRowBackgroundColor: "#EEE",
|
|
27
|
+
focusedRowBorderColor: "#87BFE7",
|
|
28
|
+
hoverCellBackgroundColor: "#BFDDF2",
|
|
29
|
+
hoverCellBorderColor: "#A7C6E0",
|
|
30
|
+
focusedCellBackgroundColor: "#FFFFFE",
|
|
31
|
+
focusedCellBorderColor: "#6EACD9",
|
|
32
|
+
editingCellBorderColor: "#D37C89",
|
|
33
|
+
focusedCellRectBackgroundColor: "#D7FFCA"
|
|
34
|
+
},
|
|
35
|
+
editable: {
|
|
36
|
+
backgroundColor: "#ffd6a8"
|
|
37
|
+
},
|
|
38
|
+
changed: {
|
|
39
|
+
backgroundColor: "#ff8904"
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
o as defaultGridTheme
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.js","sources":["../../../../src/features/themePreview/configs/grid.ts"],"sourcesContent":["import type { OwpGridThemeConfigType } from '@/types';\n\nexport const defaultGridTheme = {\n header: {\n backgroundColor: '#586980',\n color: '#ffffff',\n fontSize: '14px',\n fontWeight: 'normal',\n height: 33,\n },\n body: {\n backgroundColor: '#FFFFFF',\n color: '#111112',\n fillBackgroundColor: '#F7F7F7',\n },\n row: {\n backgroundColor: '#FFFFFE',\n solidBackgroundColor: '#F6F7F8',\n },\n cell: {\n fontSize: '13px',\n },\n state: {\n hoverRowBackgroundColor: '#EEE',\n hoverRowBorderColor: '#A7C6E0',\n selectedCellBackgroundColor: '#FFFFA6',\n selectedRowBackgroundColor: '#EEE',\n focusedRowBackgroundColor: '#EEE',\n focusedRowBorderColor: '#87BFE7',\n hoverCellBackgroundColor: '#BFDDF2',\n hoverCellBorderColor: '#A7C6E0',\n focusedCellBackgroundColor: '#FFFFFE',\n focusedCellBorderColor: '#6EACD9',\n editingCellBorderColor: '#D37C89',\n focusedCellRectBackgroundColor: '#D7FFCA',\n },\n editable: {\n backgroundColor: '#ffd6a8',\n },\n changed: {\n backgroundColor: '#ff8904',\n },\n} satisfies OwpGridThemeConfigType;\n"],"names":["defaultGridTheme"],"mappings":"AAEO,MAAMA,IAAmB;AAAA,EAC9B,QAAQ;AAAA,IACN,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,qBAAqB;AAAA,EAAA;AAAA,EAEvB,KAAK;AAAA,IACH,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,EAAA;AAAA,EAExB,MAAM;AAAA,IACJ,UAAU;AAAA,EAAA;AAAA,EAEZ,OAAO;AAAA,IACL,yBAAyB;AAAA,IACzB,qBAAqB;AAAA,IACrB,6BAA6B;AAAA,IAC7B,4BAA4B;AAAA,IAC5B,2BAA2B;AAAA,IAC3B,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,wBAAwB;AAAA,IACxB,wBAAwB;AAAA,IACxB,gCAAgC;AAAA,EAAA;AAAA,EAElC,UAAU;AAAA,IACR,iBAAiB;AAAA,EAAA;AAAA,EAEnB,SAAS;AAAA,IACP,iBAAiB;AAAA,EAAA;AAErB;"}
|