@owp/core 2.5.3 → 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/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/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/OwpMrtTable/OwpMrtTable.js +250 -258
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js +166 -0
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -0
- package/dist/components/OwpTable/OwpDataTable.js +321 -327
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +102 -58
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +158 -174
- 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/OwpTable/internal/treeGridTableStyle.js +77 -0
- package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -0
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +200 -253
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +183 -124
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +462 -0
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -0
- package/dist/configs/defaultConfig.js +67 -44
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/gridTheme.js +60 -10
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/tableTheme.js +16 -0
- package/dist/constants/tableTheme.js.map +1 -0
- package/dist/constants/treeGrid.js +44 -26
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +21 -20
- package/dist/contexts/OwpAppProvider.js.map +1 -1
- package/dist/contexts/OwpUiProvider.js +59 -38
- package/dist/contexts/OwpUiProvider.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/index.js +111 -110
- 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 +13 -10
- 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/OwpSnackbarContent/OwpSnackbarContent.d.ts +2 -0
- package/dist/types/components/OwpTable/OwpTable.d.ts +3 -1
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +49 -0
- package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +105 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +11 -2
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +20 -0
- package/dist/types/configs/defaultConfig.d.ts +22 -0
- package/dist/types/constants/gridTheme.d.ts +58 -0
- package/dist/types/constants/tableTheme.d.ts +18 -0
- package/dist/types/constants/treeGrid.d.ts +5 -0
- 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/dist/types/types/OwpGridThemeTypes.d.ts +34 -0
- package/dist/types/types/OwpSettingsTypes.d.ts +9 -0
- package/dist/types/types/OwpTableThemeTypes.d.ts +16 -0
- package/dist/types/types/index.d.ts +3 -2
- package/dist/types/utils/treeGridUtil.d.ts +1 -0
- package/dist/utils/exceljsBrowser.js +45 -48
- package/dist/utils/exceljsBrowser.js.map +1 -1
- package/dist/utils/treeGridUtil.js +66 -66
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/features/themePreview.d.ts +3 -0
- package/features/themePreview.js +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemePreviewCanvasSections.js","sources":["../../../../src/features/themePreview/components/ThemePreviewCanvasSections.tsx"],"sourcesContent":["import type {\n SnackbarProviderTheme,\n SnackbarVariantKey,\n} from '@/features/themePreview/configs/snackbar';\nimport type { ThemePreviewTableConfigType } from '@/features/themePreview/configs/table';\nimport ThemePreviewGridDefXmlRaw from '@/features/themePreview/defs/ThemePreviewGridDef.xml?raw';\nimport ThemePreviewReadonlyGridDefXmlRaw from '@/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml?raw';\nimport { OwpPageContent } from '@/components/OwpPageContent';\nimport { OwpDatePicker } from '@/components/OwpPicker/OwpDatePicker';\nimport { OwpSearchFilter } from '@/components/OwpSearchFilter';\nimport { OwpSection } from '@/components/OwpSection';\nimport { OwpStyleProvider } from '@/components/OwpStyleProvider';\nimport { OwpDataTable } from '@/components/OwpTable/OwpDataTable';\nimport { OwpFieldTable } from '@/components/OwpTable/OwpFieldTable';\nimport { OwpTable } from '@/components/OwpTable/OwpTable';\nimport { OwpTreeGrid } from '@/components/OwpTreeGrid';\nimport { OwpYesNoSelector } from '@/components/OwpYesNoSelector';\nimport { OwpStoreProvider } from '@/contexts';\nimport { highlightTreeGridCellById } from '@/utils';\nimport CloseIcon from '@mui/icons-material/Close';\nimport {\n Box,\n Button,\n ButtonBase,\n IconButton,\n Paper,\n Skeleton,\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableRow,\n TextField,\n Typography,\n} from '@mui/material';\nimport { alpha, type SxProps, type Theme, useTheme } from '@mui/material/styles';\nimport { closeSnackbar, enqueueSnackbar, SnackbarContent, type SnackbarKey } from 'notistack';\nimport { memo, type ComponentProps, type MutableRefObject, type ReactNode } from 'react';\nimport {\n dataTablePreviewHeadCells,\n dataTablePreviewRows,\n getThemePreviewBasicTableSx,\n getThemePreviewDataTableSx,\n getThemePreviewFieldTableCellSx,\n getThemePreviewFieldTableSx,\n getThemePreviewFieldTableTitleSx,\n gridCanvasPreviewRows,\n gridPreviewBodyText,\n gridPreviewColumnLabels,\n gridPreviewRows,\n gridStyledDataTablePreviewRows,\n gridStyledTablePreviewRows,\n previewChromeBorder,\n previewInnerCardSx,\n previewNoop,\n previewSectionCardClassName,\n searchHeaderPreviewData,\n tableFieldPreviewData,\n tableFieldPreviewLayout,\n tablePreviewHeaders,\n tablePreviewRows,\n} from './themePreviewCanvas.shared';\n\ntype ThemePreviewButtonPreviewItem = {\n label: string;\n color: string;\n previewContrastColor: string;\n};\n\ntype ThemePreviewSnackbarPreviewItem = {\n actionHoverColor: string;\n backgroundColor: string;\n color: string;\n icon: ReactNode;\n key: SnackbarVariantKey;\n message: string;\n};\n\ntype ThemePreviewStoreState = NonNullable<\n ComponentProps<typeof OwpStoreProvider>['preloadedState']\n>;\n\ninterface PreviewSectionCardProps {\n children: ReactNode;\n fillContentHeight?: boolean;\n gapClassName?: string;\n paperClassName?: string;\n sx?: SxProps<Theme>;\n title?: string;\n}\n\nfunction PreviewSectionCard({\n children,\n fillContentHeight = false,\n gapClassName = 'gap-16',\n paperClassName = previewSectionCardClassName,\n sx,\n title,\n}: PreviewSectionCardProps) {\n const hasTitle = title !== undefined && title !== null && title !== '';\n\n return (\n <Paper\n className={paperClassName}\n sx={{\n ...previewInnerCardSx,\n ...sx,\n }}\n >\n <div\n className={`flex flex-col ${hasTitle ? gapClassName : ''} ${\n fillContentHeight ? 'min-h-0 flex-1' : ''\n }`}\n >\n {hasTitle ? (\n <Typography variant=\"subtitle1\" fontWeight={700}>\n {title}\n </Typography>\n ) : null}\n {children}\n </div>\n </Paper>\n );\n}\n\ninterface ThemePreviewButtonsSectionProps {\n buttonPreviewItems: ThemePreviewButtonPreviewItem[];\n mainTextSecondary: string;\n previewSectionCardSx: SxProps<Theme>;\n}\n\nexport const ThemePreviewButtonsSection = memo(function ThemePreviewButtonsSection({\n buttonPreviewItems,\n mainTextSecondary,\n previewSectionCardSx,\n}: ThemePreviewButtonsSectionProps) {\n return (\n <PreviewSectionCard title=\"Buttons\" sx={previewSectionCardSx}>\n <div className=\"flex flex-col gap-12\">\n <div className=\"flex flex-wrap items-center gap-12\">\n <Typography variant=\"caption\" sx={{ minWidth: 56, color: mainTextSecondary }}>\n contained\n </Typography>\n {buttonPreviewItems.map(({ label, color, previewContrastColor }) => (\n <Button\n key={`contained-${label}`}\n variant=\"contained\"\n sx={{\n backgroundColor: color,\n color: previewContrastColor,\n }}\n >\n {label}\n </Button>\n ))}\n </div>\n <div className=\"flex flex-wrap items-center gap-12\">\n <Typography variant=\"caption\" sx={{ minWidth: 56, color: mainTextSecondary }}>\n outlined\n </Typography>\n {buttonPreviewItems.map(({ label, color }) => (\n <Button\n key={`outlined-${label}`}\n variant=\"outlined\"\n sx={{\n borderColor: alpha(color, 0.52),\n color,\n '&:hover': {\n borderColor: color,\n backgroundColor: alpha(color, 0.08),\n },\n }}\n >\n {label}\n </Button>\n ))}\n </div>\n </div>\n </PreviewSectionCard>\n );\n});\n\ninterface ThemePreviewSnackbarsSectionProps {\n previewSectionCardSx: SxProps<Theme>;\n previewSnackbarKeysRef: MutableRefObject<SnackbarKey[]>;\n snackbarAnchorOrigin: SnackbarProviderTheme['anchorOrigin'];\n snackbarPreviewAnchorHorizontal: 'center' | 'left' | 'right';\n snackbarPreviewAnchorVertical: 'bottom' | 'top';\n snackbarPreviewFontSize?: number | string;\n snackbarPreviewItems: ThemePreviewSnackbarPreviewItem[];\n snackbarPreviewLineHeight?: number | string;\n snackbarPreviewMaxSnack: number;\n snackbarAutoHideDuration: SnackbarProviderTheme['autoHideDuration'];\n}\n\nexport const ThemePreviewSnackbarsSection = memo(function ThemePreviewSnackbarsSection({\n previewSectionCardSx,\n previewSnackbarKeysRef,\n snackbarAnchorOrigin,\n snackbarAutoHideDuration,\n snackbarPreviewAnchorHorizontal,\n snackbarPreviewAnchorVertical,\n snackbarPreviewFontSize,\n snackbarPreviewItems,\n snackbarPreviewLineHeight,\n snackbarPreviewMaxSnack,\n}: ThemePreviewSnackbarsSectionProps) {\n const theme = useTheme();\n\n const openPreviewSnackbar = (\n snackbarKey: SnackbarVariantKey,\n message: string,\n backgroundColor: string,\n color: string,\n actionHoverColor: string,\n icon: ReactNode,\n ) => {\n const previewSnackbarKey = enqueueSnackbar(message, {\n anchorOrigin: snackbarAnchorOrigin,\n autoHideDuration: snackbarAutoHideDuration,\n variant: snackbarKey,\n content: (key: SnackbarKey) => (\n <SnackbarContent\n role=\"alert\"\n style={{\n backgroundColor,\n borderRadius: `${theme.shape.borderRadius}px`,\n boxShadow: theme.shadows[2],\n color,\n fontSize: snackbarPreviewFontSize,\n lineHeight: snackbarPreviewLineHeight,\n overflow: 'hidden',\n padding: 0,\n }}\n >\n <Box\n sx={{\n alignItems: 'center',\n color: 'inherit',\n display: 'flex',\n minWidth: 0,\n px: 2,\n py: 1.25,\n width: '100%',\n }}\n >\n <Box\n sx={{\n alignItems: 'center',\n color: 'inherit',\n display: 'flex',\n flex: 1,\n gap: 1.25,\n minWidth: 0,\n }}\n >\n <Box\n sx={{\n alignItems: 'center',\n color: 'inherit',\n display: 'flex',\n flexShrink: 0,\n '& .MuiSvgIcon-root': {\n fontSize: 20,\n },\n }}\n >\n {icon}\n </Box>\n <Box\n sx={{\n color: 'inherit',\n flex: 1,\n fontSize: snackbarPreviewFontSize,\n lineHeight: snackbarPreviewLineHeight,\n minWidth: 0,\n }}\n >\n {message}\n </Box>\n </Box>\n <IconButton\n aria-label=\"close\"\n onClick={() => closeSnackbar(key)}\n size=\"small\"\n sx={{\n color: 'inherit',\n flexShrink: 0,\n ml: 1,\n '&:hover': {\n backgroundColor: actionHoverColor,\n },\n }}\n >\n <CloseIcon fontSize=\"small\" />\n </IconButton>\n </Box>\n </SnackbarContent>\n ),\n });\n\n previewSnackbarKeysRef.current.push(previewSnackbarKey);\n\n while (previewSnackbarKeysRef.current.length > snackbarPreviewMaxSnack) {\n const oldestSnackbarKey = previewSnackbarKeysRef.current.shift();\n\n if (oldestSnackbarKey) {\n closeSnackbar(oldestSnackbarKey);\n }\n }\n };\n\n return (\n <PreviewSectionCard\n fillContentHeight\n paperClassName=\"flex min-h-0 flex-1 flex-col rounded-lg p-14\"\n title=\"Snackbars\"\n sx={previewSectionCardSx}\n >\n <div className=\"flex min-h-0 flex-1 flex-col gap-10\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n 스넥바를 클릭하면 실제 동작을 바로 확인할 수 있습니다.\n </Typography>\n <div\n className=\"flex min-h-0 flex-1 flex-col gap-10\"\n style={{\n alignItems:\n snackbarPreviewAnchorHorizontal === 'left'\n ? 'flex-start'\n : snackbarPreviewAnchorHorizontal === 'right'\n ? 'flex-end'\n : 'center',\n justifyContent: snackbarPreviewAnchorVertical === 'bottom' ? 'flex-end' : 'flex-start',\n }}\n >\n {snackbarPreviewItems.map(\n ({ key, actionHoverColor, backgroundColor, color, icon, message }) => (\n <ButtonBase\n key={key}\n className=\"flex items-center justify-between gap-10 px-16 py-10 text-left\"\n onClick={() => {\n openPreviewSnackbar(\n key,\n message,\n backgroundColor,\n color,\n actionHoverColor,\n icon,\n );\n }}\n style={{\n backgroundColor,\n borderRadius: 8,\n boxShadow:\n '0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)',\n color,\n width: 'min(100%, 360px)',\n }}\n >\n <div className=\"flex min-w-0 flex-1 items-center gap-10\">\n <div className=\"flex shrink-0 items-center\" style={{ color }}>\n {icon}\n </div>\n <Typography\n variant=\"body2\"\n className=\"truncate\"\n sx={{\n color: 'inherit',\n ...(snackbarPreviewFontSize && {\n fontSize: snackbarPreviewFontSize,\n }),\n ...(snackbarPreviewLineHeight && {\n lineHeight: snackbarPreviewLineHeight,\n }),\n }}\n >\n {message}\n </Typography>\n </div>\n <div\n className=\"flex h-28 w-28 shrink-0 items-center justify-center rounded-full\"\n style={{\n backgroundColor: actionHoverColor,\n color,\n }}\n >\n <CloseIcon sx={{ fontSize: 16 }} />\n </div>\n </ButtonBase>\n ),\n )}\n </div>\n </div>\n </PreviewSectionCard>\n );\n});\n\ninterface ThemePreviewSearchHeaderSectionProps {\n gridPreviewTable: ReactNode;\n mainBackground: string;\n mainPaper: string;\n mainText: string;\n mainThemePreviewStoreState: ThemePreviewStoreState;\n previewSectionCardSx: SxProps<Theme>;\n searchHeaderPreviewDate: string;\n searchHeaderPreviewNumber: string;\n searchHeaderPreviewVersionKey: string;\n tablePreviewCanTableRadiusZero: boolean;\n tableTheme: ThemePreviewTableConfigType;\n tableThemePreviewVersionKey: string;\n}\n\nexport const ThemePreviewSearchHeaderSection = memo(function ThemePreviewSearchHeaderSection({\n gridPreviewTable,\n mainBackground,\n mainPaper,\n mainText,\n mainThemePreviewStoreState,\n previewSectionCardSx,\n searchHeaderPreviewDate,\n searchHeaderPreviewNumber,\n searchHeaderPreviewVersionKey,\n tablePreviewCanTableRadiusZero,\n tableTheme,\n tableThemePreviewVersionKey,\n}: ThemePreviewSearchHeaderSectionProps) {\n return (\n <PreviewSectionCard paperClassName=\"overflow-hidden rounded-lg p-0\" sx={previewSectionCardSx}>\n <OwpStoreProvider\n key={`search-header-${searchHeaderPreviewVersionKey}`}\n preloadedState={mainThemePreviewStoreState}\n >\n <OwpStyleProvider>\n <Box\n className=\"flex flex-col gap-16 p-16\"\n sx={{\n backgroundColor: mainBackground,\n color: mainText,\n '& .OwpPageContent-header .MuiDivider-root': {\n my: 1.5,\n },\n '& form': {\n width: '100%',\n },\n }}\n >\n <Paper\n className=\"w-full\"\n sx={{\n backgroundColor: 'transparent',\n boxShadow: 'none',\n }}\n >\n <OwpSearchFilter onSubmit={previewNoop} onReset={previewNoop}>\n <OwpDatePicker\n label=\"작업일자\"\n value={searchHeaderPreviewDate}\n variant=\"standard\"\n onChange={previewNoop}\n />\n <OwpYesNoSelector\n label=\"사용여부\"\n yesLabel=\"사용\"\n noLabel=\"미사용\"\n value=\"Y\"\n onChange={previewNoop}\n />\n <TextField\n label=\"번호\"\n variant=\"standard\"\n value={searchHeaderPreviewNumber}\n onChange={previewNoop}\n />\n </OwpSearchFilter>\n </Paper>\n\n <Paper\n className=\"w-full rounded-lg p-16\"\n sx={{\n ...previewInnerCardSx,\n backgroundColor: mainPaper,\n border: `1px solid ${previewChromeBorder}`,\n }}\n >\n <OwpPageContent\n title=\"제목\"\n centerSlot={\n <div className=\"w-[240px]\">\n <Box\n sx={getThemePreviewFieldTableSx(\n tableTheme,\n tablePreviewCanTableRadiusZero,\n )}\n >\n <OwpFieldTable\n key={`search-header-field-table-${tableThemePreviewVersionKey}`}\n canUseTreeGridStyle={false}\n cellSx={{ py: 0.5, textAlign: 'center' }}\n data={searchHeaderPreviewData}\n layout={[[{ title: '상태', key: 'previewValue' }]]}\n titleSx={{ py: 0.5, textAlign: 'center' }}\n titleWidth={92}\n />\n </Box>\n </div>\n }\n actions={\n <div className=\"flex flex-wrap gap-8\">\n <Button color=\"primary\" size=\"small\" variant=\"contained\">\n 추가\n </Button>\n <Button color=\"secondary\" size=\"small\" variant=\"contained\">\n 수정\n </Button>\n <Button color=\"error\" size=\"small\" variant=\"contained\">\n 삭제\n </Button>\n <Button color=\"success\" size=\"small\" variant=\"contained\">\n 다운로드\n </Button>\n </div>\n }\n >\n <div className=\"flex min-h-0 flex-1 flex-col gap-12\">\n {gridPreviewTable}\n <OwpSection className=\"min-h-0 flex-1\" title=\"섹션 제목\">\n <div\n className=\"flex min-h-0 flex-1 flex-col gap-10 pt-12\"\n style={{ borderTop: `1px solid ${previewChromeBorder}` }}\n >\n <Skeleton animation={false} height={16} variant=\"rounded\" width=\"100%\" />\n <Skeleton animation={false} height={16} variant=\"rounded\" width=\"78%\" />\n <Skeleton animation={false} className=\"flex-1\" variant=\"rounded\" width=\"100%\" />\n </div>\n </OwpSection>\n </div>\n </OwpPageContent>\n </Paper>\n </Box>\n </OwpStyleProvider>\n </OwpStoreProvider>\n </PreviewSectionCard>\n );\n});\n\ninterface ThemePreviewGridSectionProps {\n editableThemePreviewGridId: string;\n mainGridChangedBackgroundColor?: string;\n mainThemePreviewStoreKey: string;\n mainThemePreviewStoreState: ThemePreviewStoreState;\n previewSectionCardSx: SxProps<Theme>;\n readonlyThemePreviewGridId: string;\n}\n\nexport const ThemePreviewGridSection = memo(function ThemePreviewGridSection({\n editableThemePreviewGridId,\n mainGridChangedBackgroundColor,\n mainThemePreviewStoreKey,\n mainThemePreviewStoreState,\n previewSectionCardSx,\n readonlyThemePreviewGridId,\n}: ThemePreviewGridSectionProps) {\n const handleEditableThemePreviewGridReady = (grid: TGrid) => {\n if (!grid) {\n return;\n }\n\n const selectedRow = grid.GetFirst();\n const focusedRow = selectedRow ? grid.GetNext(selectedRow) : null;\n const changedCellRow = focusedRow ? grid.GetNext(focusedRow) : selectedRow;\n\n if (!selectedRow) {\n return;\n }\n\n grid.SelectRow(selectedRow, 1);\n\n if (focusedRow) {\n grid.Focus(focusedRow, 'OWP_THEME_PREVIEW.STATUS');\n } else {\n grid.Focus(selectedRow, 'OWP_THEME_PREVIEW.STATUS');\n }\n\n if (changedCellRow) {\n highlightTreeGridCellById(editableThemePreviewGridId, {\n row: changedCellRow,\n col: 'OWP_THEME_PREVIEW.REMARK',\n backgroundColor: mainGridChangedBackgroundColor,\n });\n grid.RefreshRow(changedCellRow);\n }\n };\n\n const handleReadonlyThemePreviewGridReady = (grid: TGrid) => {\n if (!grid) {\n return;\n }\n\n const focusedRow = grid.GetFirst();\n\n if (!focusedRow) {\n return;\n }\n\n grid.Focus(focusedRow, 'OWP_THEME_PREVIEW.WORK_DATE');\n };\n\n return (\n <PreviewSectionCard title=\"Grid\" sx={previewSectionCardSx}>\n <OwpStoreProvider\n key={`grid-preview-${mainThemePreviewStoreKey}`}\n preloadedState={mainThemePreviewStoreState}\n >\n <OwpStyleProvider>\n <div\n className=\"flex min-h-0 flex-col gap-12\"\n style={{\n height: 'min(640px, calc(100vh - 360px))',\n }}\n >\n <div className=\"grid min-h-0 flex-1 grid-rows-[minmax(0,1fr)_minmax(0,1fr)] gap-12\">\n <OwpTreeGrid\n data={gridCanvasPreviewRows}\n height=\"100%\"\n id={editableThemePreviewGridId}\n key={editableThemePreviewGridId}\n layoutData={ThemePreviewGridDefXmlRaw}\n onReady={handleEditableThemePreviewGridReady}\n />\n <OwpTreeGrid\n data={gridCanvasPreviewRows}\n height=\"100%\"\n id={readonlyThemePreviewGridId}\n key={readonlyThemePreviewGridId}\n layoutData={ThemePreviewReadonlyGridDefXmlRaw}\n onReady={handleReadonlyThemePreviewGridReady}\n />\n </div>\n <div className=\"grid shrink-0 grid-cols-2 gap-12\">\n <div className=\"flex flex-col gap-8\">\n <Typography variant=\"body2\" color=\"text.secondary\" fontWeight={600}>\n Basic Table (Grid Style)\n </Typography>\n <OwpTable\n canUseTreeGridStyle\n headers={tablePreviewHeaders}\n rows={gridStyledTablePreviewRows}\n />\n </div>\n <div className=\"flex flex-col gap-8\">\n <Typography variant=\"body2\" color=\"text.secondary\" fontWeight={600}>\n Data Table (Grid Style)\n </Typography>\n <OwpDataTable\n canCheckbox={false}\n canTotalCountRow={false}\n canUseOrderBy={false}\n canUseTreeGridStyle\n fixedRowCount={1}\n headCells={dataTablePreviewHeadCells}\n rows={gridStyledDataTablePreviewRows}\n sx={{\n '& .MuiTableBody-root > .MuiTableRow-root, & .MuiTableBody-root > .MuiTableRow-root:hover, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover':\n {\n backgroundColor: 'transparent',\n },\n '& .MuiTableBody-root > .MuiTableRow-root > .MuiTableCell-root': {\n backgroundColor: 'transparent',\n },\n }}\n />\n </div>\n </div>\n </div>\n </OwpStyleProvider>\n </OwpStoreProvider>\n </PreviewSectionCard>\n );\n});\n\ninterface ThemePreviewTablesSectionProps {\n mainThemePreviewStoreState: ThemePreviewStoreState;\n previewSectionCardSx: SxProps<Theme>;\n tablePreviewCanTableRadiusZero: boolean;\n tableTheme: ThemePreviewTableConfigType;\n tableThemePreviewVersionKey: string;\n}\n\nexport const ThemePreviewTablesSection = memo(function ThemePreviewTablesSection({\n mainThemePreviewStoreState,\n previewSectionCardSx,\n tablePreviewCanTableRadiusZero,\n tableTheme,\n tableThemePreviewVersionKey,\n}: ThemePreviewTablesSectionProps) {\n return (\n <PreviewSectionCard title=\"Tables\" sx={previewSectionCardSx}>\n <OwpStoreProvider\n key={`table-preview-${tableThemePreviewVersionKey}`}\n preloadedState={mainThemePreviewStoreState}\n >\n <OwpStyleProvider>\n <div className=\"flex flex-col gap-14\">\n <div className=\"flex flex-col gap-8\">\n <Typography variant=\"body2\" color=\"text.secondary\" fontWeight={600}>\n Field Table\n </Typography>\n <Box sx={getThemePreviewFieldTableSx(tableTheme, tablePreviewCanTableRadiusZero)}>\n <OwpFieldTable\n key={`field-table-${tableThemePreviewVersionKey}`}\n canUseTreeGridStyle={false}\n cellSx={getThemePreviewFieldTableCellSx(tableTheme)}\n data={tableFieldPreviewData}\n layout={tableFieldPreviewLayout}\n titleSx={getThemePreviewFieldTableTitleSx(tableTheme)}\n titleWidth={108}\n />\n </Box>\n </div>\n <div className=\"flex flex-col gap-8\">\n <Typography variant=\"body2\" color=\"text.secondary\" fontWeight={600}>\n Table\n </Typography>\n <Box sx={getThemePreviewBasicTableSx(tableTheme, tablePreviewCanTableRadiusZero)}>\n <OwpTable\n key={`basic-table-${tableThemePreviewVersionKey}`}\n canUseTreeGridStyle={false}\n headers={tablePreviewHeaders}\n rows={tablePreviewRows}\n />\n </Box>\n </div>\n <div className=\"flex flex-col gap-8\">\n <Typography variant=\"body2\" color=\"text.secondary\" fontWeight={600}>\n Data Table\n </Typography>\n <Box sx={getThemePreviewDataTableSx(tableTheme, tablePreviewCanTableRadiusZero)}>\n <OwpDataTable\n key={`data-table-${tableThemePreviewVersionKey}`}\n canCheckbox={false}\n canTableRadiusZero={tablePreviewCanTableRadiusZero}\n canTotalCountRow={false}\n canUseOrderBy={false}\n canUseTreeGridStyle={false}\n fixedRowCount={2}\n headCells={dataTablePreviewHeadCells}\n rows={dataTablePreviewRows}\n selected={dataTablePreviewRows.slice(0, 1)}\n />\n </Box>\n </div>\n </div>\n </OwpStyleProvider>\n </OwpStoreProvider>\n </PreviewSectionCard>\n );\n});\n\ninterface ThemePreviewGridPreviewTableProps {\n gridBodyBorder: string;\n layoutPreviewGridCellBackground: string;\n layoutPreviewGridCellFontSize: string;\n layoutPreviewGridHeaderBackground: string;\n layoutPreviewGridHeaderBorder: string;\n layoutPreviewGridHeaderColor: string;\n layoutPreviewGridHeaderFontSize: string;\n}\n\nexport const ThemePreviewGridPreviewTable = memo(function ThemePreviewGridPreviewTable({\n gridBodyBorder,\n layoutPreviewGridCellBackground,\n layoutPreviewGridCellFontSize,\n layoutPreviewGridHeaderBackground,\n layoutPreviewGridHeaderBorder,\n layoutPreviewGridHeaderColor,\n layoutPreviewGridHeaderFontSize,\n}: ThemePreviewGridPreviewTableProps) {\n return (\n <div\n className=\"overflow-hidden border border-solid\"\n style={{\n borderColor: previewChromeBorder,\n }}\n >\n <Table\n size=\"small\"\n sx={{\n tableLayout: 'fixed',\n }}\n >\n <TableHead>\n <TableRow>\n {gridPreviewColumnLabels.map((label) => (\n <TableCell\n key={label}\n sx={{\n backgroundColor: layoutPreviewGridHeaderBackground,\n borderBottom: `1px solid ${layoutPreviewGridHeaderBorder}`,\n borderRight: `1px solid ${layoutPreviewGridHeaderBorder}`,\n color: layoutPreviewGridHeaderColor,\n fontSize: layoutPreviewGridHeaderFontSize,\n fontWeight: 500,\n px: 1.25,\n py: 1,\n textAlign: 'center',\n '&:last-of-type': {\n borderRight: 'none',\n },\n }}\n >\n {label}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {gridPreviewRows.map((row) => (\n <TableRow\n key={row.join('-')}\n sx={{\n backgroundColor: layoutPreviewGridCellBackground,\n }}\n >\n {row.map((value, cellIndex) => (\n <TableCell\n key={`${value}-${cellIndex}`}\n sx={{\n borderBottom: `1px solid ${gridBodyBorder}`,\n borderRight: `1px solid ${gridBodyBorder}`,\n color: gridPreviewBodyText,\n fontSize: layoutPreviewGridCellFontSize,\n px: 1.25,\n py: 1,\n textAlign: 'center',\n '&:last-of-type': {\n borderRight: 'none',\n },\n }}\n >\n {value}\n </TableCell>\n ))}\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </div>\n );\n});\n"],"names":["PreviewSectionCard","children","fillContentHeight","gapClassName","paperClassName","previewSectionCardClassName","sx","title","hasTitle","jsx","Paper","previewInnerCardSx","jsxs","Typography","__name","ThemePreviewButtonsSection","memo","buttonPreviewItems","mainTextSecondary","previewSectionCardSx","label","color","previewContrastColor","Button","alpha","ThemePreviewSnackbarsSection","previewSnackbarKeysRef","snackbarAnchorOrigin","snackbarAutoHideDuration","snackbarPreviewAnchorHorizontal","snackbarPreviewAnchorVertical","snackbarPreviewFontSize","snackbarPreviewItems","snackbarPreviewLineHeight","snackbarPreviewMaxSnack","theme","useTheme","openPreviewSnackbar","snackbarKey","message","backgroundColor","actionHoverColor","icon","previewSnackbarKey","enqueueSnackbar","key","SnackbarContent","Box","IconButton","closeSnackbar","CloseIcon","oldestSnackbarKey","ButtonBase","ThemePreviewSearchHeaderSection","gridPreviewTable","mainBackground","mainPaper","mainText","mainThemePreviewStoreState","searchHeaderPreviewDate","searchHeaderPreviewNumber","searchHeaderPreviewVersionKey","tablePreviewCanTableRadiusZero","tableTheme","tableThemePreviewVersionKey","OwpStoreProvider","OwpStyleProvider","OwpSearchFilter","previewNoop","OwpDatePicker","OwpYesNoSelector","TextField","previewChromeBorder","OwpPageContent","getThemePreviewFieldTableSx","OwpFieldTable","searchHeaderPreviewData","OwpSection","Skeleton","ThemePreviewGridSection","editableThemePreviewGridId","mainGridChangedBackgroundColor","mainThemePreviewStoreKey","readonlyThemePreviewGridId","OwpTreeGrid","gridCanvasPreviewRows","ThemePreviewGridDefXmlRaw","grid","selectedRow","focusedRow","changedCellRow","highlightTreeGridCellById","ThemePreviewReadonlyGridDefXmlRaw","OwpTable","tablePreviewHeaders","gridStyledTablePreviewRows","OwpDataTable","dataTablePreviewHeadCells","gridStyledDataTablePreviewRows","ThemePreviewTablesSection","getThemePreviewFieldTableCellSx","tableFieldPreviewData","tableFieldPreviewLayout","getThemePreviewFieldTableTitleSx","getThemePreviewBasicTableSx","tablePreviewRows","getThemePreviewDataTableSx","dataTablePreviewRows","ThemePreviewGridPreviewTable","gridBodyBorder","layoutPreviewGridCellBackground","layoutPreviewGridCellFontSize","layoutPreviewGridHeaderBackground","layoutPreviewGridHeaderBorder","layoutPreviewGridHeaderColor","layoutPreviewGridHeaderFontSize","Table","TableHead","TableRow","gridPreviewColumnLabels","TableCell","TableBody","gridPreviewRows","row","value","cellIndex","gridPreviewBodyText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA2FA,SAASA,EAAmB;AAAA,EAC1B,UAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,cAAAC,IAAe;AAAA,EACf,gBAAAC,IAAiB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YAAY;AAAA,kBACZ,IAAI;AAAA,kBACJ,IAAI;AAAA,kBACJ,WAAW;AAAA,kBACX,kBAAkB;AAAA,oBAChB,aAAa;AAAA,kBAAA;AAAA,gBACf;AAAA,gBAGD,UAAA/F;AAAA,cAAA;AAAA,cAhBIA;AAAA,YAAA,CAkBR,GACH,EAAA,CACF;AAAA,YACA,gBAAAX,EAACgH,IAAA,EACE,UAAAC,GAAgB,IAAI,CAACC,MACpB,gBAAAlH;AAAA,cAAC6G;AAAA,cAAA;AAAA,gBAEC,IAAI;AAAA,kBACF,iBAAiBR;AAAA,gBAAA;AAAA,gBAGlB,UAAAa,EAAI,IAAI,CAACC,GAAOC,MACf,gBAAApH;AAAA,kBAAC+G;AAAA,kBAAA;AAAA,oBAEC,IAAI;AAAA,sBACF,cAAc,aAAaX,CAAc;AAAA,sBACzC,aAAa,aAAaA,CAAc;AAAA,sBACxC,OAAOiB;AAAA,sBACP,UAAUf;AAAA,sBACV,IAAI;AAAA,sBACJ,IAAI;AAAA,sBACJ,WAAW;AAAA,sBACX,kBAAkB;AAAA,wBAChB,aAAa;AAAA,sBAAA;AAAA,oBACf;AAAA,oBAGD,UAAAa;AAAA,kBAAA;AAAA,kBAdI,GAAGA,CAAK,IAAIC,CAAS;AAAA,gBAAA,CAgB7B;AAAA,cAAA;AAAA,cAvBIF,EAAI,KAAK,GAAG;AAAA,YAAA,CAyBpB,EAAA,CACH;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAhFiD,gCAgFhD;"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
var G = Object.defineProperty;
|
|
2
|
+
var t = (a, e) => G(a, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsxs as h, jsx as l, Fragment as L } 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, TextField as R, Typography as f, Button as U, Box as _, Popover as K, InputAdornment as Y } from "@mui/material";
|
|
5
|
+
import { blue as q, lightBlue as J, cyan as Q, teal as X, green as Z, amber as ee, orange as re, deepOrange as le, red as te, pink as ae, purple as ne, deepPurple as oe, indigo as ue, grey as ie, blueGrey as ce } from "@mui/material/colors";
|
|
6
|
+
import { useState as g, useRef as se, useEffect as B } from "react";
|
|
7
|
+
import { getThemePreviewPaletteValue as pe } from "../utils/themePreviewSettings.js";
|
|
8
|
+
import { getColorAlphaValue as de, toColorPickerValue as S, applyColorPickerValue as j } from "../utils/color.js";
|
|
9
|
+
const me = {
|
|
10
|
+
"px-number": "px",
|
|
11
|
+
"rem-number": "rem"
|
|
12
|
+
}, he = [
|
|
13
|
+
"50",
|
|
14
|
+
"100",
|
|
15
|
+
"200",
|
|
16
|
+
"300",
|
|
17
|
+
"400",
|
|
18
|
+
"500",
|
|
19
|
+
"600",
|
|
20
|
+
"700",
|
|
21
|
+
"800",
|
|
22
|
+
"900",
|
|
23
|
+
"A100",
|
|
24
|
+
"A200",
|
|
25
|
+
"A400",
|
|
26
|
+
"A700"
|
|
27
|
+
], fe = [
|
|
28
|
+
["Blue", q],
|
|
29
|
+
["Light Blue", J],
|
|
30
|
+
["Cyan", Q],
|
|
31
|
+
["Teal", X],
|
|
32
|
+
["Green", Z],
|
|
33
|
+
["Amber", ee],
|
|
34
|
+
["Orange", re],
|
|
35
|
+
["Deep Orange", le],
|
|
36
|
+
["Red", te],
|
|
37
|
+
["Pink", ae],
|
|
38
|
+
["Purple", ne],
|
|
39
|
+
["Deep Purple", oe],
|
|
40
|
+
["Indigo", ue],
|
|
41
|
+
["Grey", ie],
|
|
42
|
+
["Blue Grey", ce]
|
|
43
|
+
], xe = fe.map(([a, e]) => ({
|
|
44
|
+
label: a,
|
|
45
|
+
colors: he.reduce((p, c) => {
|
|
46
|
+
const i = e[c];
|
|
47
|
+
return i && p.push({
|
|
48
|
+
key: `${a}-${c}`,
|
|
49
|
+
shade: c,
|
|
50
|
+
value: i
|
|
51
|
+
}), p;
|
|
52
|
+
}, [])
|
|
53
|
+
})), ge = 500;
|
|
54
|
+
function ve(a, e) {
|
|
55
|
+
return a.replace(new RegExp(`${e}$`, "i"), "");
|
|
56
|
+
}
|
|
57
|
+
t(ve, "getUnitInputDisplayValue");
|
|
58
|
+
function Pe(a, e) {
|
|
59
|
+
const p = a.replace(/[^0-9.,]/g, "").replace(/,/g, "."), [c = "", ...i] = p.split("."), x = i.join(""), m = x ? `${c}.${x}` : c;
|
|
60
|
+
return m ? `${m}${e}` : "";
|
|
61
|
+
}
|
|
62
|
+
t(Pe, "normalizeUnitInputValue");
|
|
63
|
+
function we(a) {
|
|
64
|
+
return (a ? me[a] : null) ?? null;
|
|
65
|
+
}
|
|
66
|
+
t(we, "getUnitValueFormat");
|
|
67
|
+
function Ae({
|
|
68
|
+
disabled: a = !1,
|
|
69
|
+
definition: e,
|
|
70
|
+
sectionKey: p,
|
|
71
|
+
settings: c,
|
|
72
|
+
onChange: i
|
|
73
|
+
}) {
|
|
74
|
+
var $, F;
|
|
75
|
+
const [x, m] = g(null), n = pe(c, p, e.path), o = we(e.valueFormat), V = e.showColorPicker !== !1, C = e.allowAlpha ? de(n) : null, A = [e.description];
|
|
76
|
+
e.allowAlpha && A.push(
|
|
77
|
+
C ? `알파값은 ${C}로 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.` : "알파값은 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다."
|
|
78
|
+
);
|
|
79
|
+
const H = A.filter(Boolean).join(" "), P = !!o, w = !!(($ = e.options) != null && $.length), y = !!(e.allowAlpha && V && !w && !o), v = o ? ve(n, o) : n, d = !w && !o && !y, [k, I] = g(v), [E, T] = g(!1), [M, O] = g(S(n)), [b, z] = g(!1), s = se(null);
|
|
80
|
+
B(() => {
|
|
81
|
+
!d || E || I(v);
|
|
82
|
+
}, [d, v, E]), B(() => {
|
|
83
|
+
b || O(S(n));
|
|
84
|
+
}, [b, n]), B(() => () => {
|
|
85
|
+
s.current && window.clearTimeout(s.current);
|
|
86
|
+
}, []);
|
|
87
|
+
const D = /* @__PURE__ */ t((r) => {
|
|
88
|
+
i(e.path, r);
|
|
89
|
+
}, "commitBufferedTextValue"), N = /* @__PURE__ */ t((r) => {
|
|
90
|
+
s.current && (window.clearTimeout(s.current), s.current = null), z(!1), i(e.path, j(n, r));
|
|
91
|
+
}, "commitBufferedPickerValue");
|
|
92
|
+
return /* @__PURE__ */ h("div", { className: "grid grid-cols-[minmax(0,1fr)_144px] gap-12", children: [
|
|
93
|
+
/* @__PURE__ */ l(
|
|
94
|
+
R,
|
|
95
|
+
{
|
|
96
|
+
select: w,
|
|
97
|
+
label: e.label,
|
|
98
|
+
value: d ? k : v,
|
|
99
|
+
disabled: a,
|
|
100
|
+
onChange: /* @__PURE__ */ t((r) => {
|
|
101
|
+
if (y)
|
|
102
|
+
return;
|
|
103
|
+
const u = o ? Pe(r.target.value, o) : r.target.value;
|
|
104
|
+
if (d) {
|
|
105
|
+
I(u);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
i(e.path, u);
|
|
109
|
+
}, "onChange"),
|
|
110
|
+
onFocus: /* @__PURE__ */ t(() => {
|
|
111
|
+
d && T(!0);
|
|
112
|
+
}, "onFocus"),
|
|
113
|
+
onBlur: /* @__PURE__ */ t(() => {
|
|
114
|
+
d && (T(!1), D(k));
|
|
115
|
+
}, "onBlur"),
|
|
116
|
+
onKeyDown: /* @__PURE__ */ t((r) => {
|
|
117
|
+
!d || r.key !== "Enter" || (r.preventDefault(), T(!1), D(k), r.currentTarget.blur());
|
|
118
|
+
}, "onKeyDown"),
|
|
119
|
+
helperText: H,
|
|
120
|
+
slotProps: {
|
|
121
|
+
htmlInput: {
|
|
122
|
+
...o ? {
|
|
123
|
+
inputMode: "decimal"
|
|
124
|
+
} : {},
|
|
125
|
+
...y ? {
|
|
126
|
+
readOnly: !0
|
|
127
|
+
} : {}
|
|
128
|
+
},
|
|
129
|
+
input: o ? {
|
|
130
|
+
endAdornment: /* @__PURE__ */ l(Y, { position: "end", children: o })
|
|
131
|
+
} : void 0
|
|
132
|
+
},
|
|
133
|
+
children: (F = e.options) == null ? void 0 : F.map((r) => /* @__PURE__ */ l(W, { value: r.value, children: r.label }, r.value))
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ h("div", { className: "flex flex-col gap-6", children: [
|
|
137
|
+
V ? /* @__PURE__ */ h(L, { children: [
|
|
138
|
+
/* @__PURE__ */ l(
|
|
139
|
+
R,
|
|
140
|
+
{
|
|
141
|
+
label: "Pick",
|
|
142
|
+
type: "color",
|
|
143
|
+
value: M,
|
|
144
|
+
disabled: a,
|
|
145
|
+
onChange: /* @__PURE__ */ t((r) => {
|
|
146
|
+
const u = r.target.value;
|
|
147
|
+
O(u), z(!0), s.current && window.clearTimeout(s.current), s.current = window.setTimeout(() => {
|
|
148
|
+
N(u);
|
|
149
|
+
}, ge);
|
|
150
|
+
}, "onChange"),
|
|
151
|
+
onBlur: /* @__PURE__ */ t(() => {
|
|
152
|
+
b && N(M);
|
|
153
|
+
}, "onBlur"),
|
|
154
|
+
sx: {
|
|
155
|
+
"& .MuiInputBase-input": {
|
|
156
|
+
minHeight: 56,
|
|
157
|
+
p: 0.5
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ l(
|
|
163
|
+
U,
|
|
164
|
+
{
|
|
165
|
+
size: "small",
|
|
166
|
+
variant: "outlined",
|
|
167
|
+
disabled: a,
|
|
168
|
+
onClick: /* @__PURE__ */ t((r) => {
|
|
169
|
+
m(r.currentTarget);
|
|
170
|
+
}, "onClick"),
|
|
171
|
+
children: "MUI"
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
x ? /* @__PURE__ */ l(
|
|
175
|
+
K,
|
|
176
|
+
{
|
|
177
|
+
open: !0,
|
|
178
|
+
anchorEl: x,
|
|
179
|
+
onClose: /* @__PURE__ */ t(() => {
|
|
180
|
+
m(null);
|
|
181
|
+
}, "onClose"),
|
|
182
|
+
anchorOrigin: {
|
|
183
|
+
vertical: "bottom",
|
|
184
|
+
horizontal: "left"
|
|
185
|
+
},
|
|
186
|
+
transformOrigin: {
|
|
187
|
+
vertical: "top",
|
|
188
|
+
horizontal: "left"
|
|
189
|
+
},
|
|
190
|
+
slotProps: {
|
|
191
|
+
paper: {
|
|
192
|
+
sx: {
|
|
193
|
+
maxHeight: 420,
|
|
194
|
+
p: 1.5,
|
|
195
|
+
width: "min(388px, calc(100vw - 48px))"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-10", children: xe.map((r) => /* @__PURE__ */ h(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: "grid grid-cols-[84px_264px] items-start gap-8",
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ l(f, { variant: "caption", color: "text.secondary", children: r.label }),
|
|
205
|
+
/* @__PURE__ */ l("div", { className: "overflow-x-auto", children: /* @__PURE__ */ l("div", { className: "flex w-max gap-6 pr-2", children: r.colors.map((u) => /* @__PURE__ */ h(
|
|
206
|
+
U,
|
|
207
|
+
{
|
|
208
|
+
size: "small",
|
|
209
|
+
variant: "outlined",
|
|
210
|
+
onClick: /* @__PURE__ */ t(() => {
|
|
211
|
+
i(
|
|
212
|
+
e.path,
|
|
213
|
+
j(n, u.value)
|
|
214
|
+
), m(null);
|
|
215
|
+
}, "onClick"),
|
|
216
|
+
sx: {
|
|
217
|
+
alignItems: "center",
|
|
218
|
+
display: "flex",
|
|
219
|
+
flexDirection: "column",
|
|
220
|
+
gap: 0.5,
|
|
221
|
+
minWidth: 0,
|
|
222
|
+
p: 0.5,
|
|
223
|
+
width: 68
|
|
224
|
+
},
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ l(
|
|
227
|
+
_,
|
|
228
|
+
{
|
|
229
|
+
sx: {
|
|
230
|
+
width: 30,
|
|
231
|
+
height: 30,
|
|
232
|
+
borderRadius: 1,
|
|
233
|
+
backgroundColor: u.value,
|
|
234
|
+
border: "1px solid",
|
|
235
|
+
borderColor: "divider"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ l(
|
|
240
|
+
f,
|
|
241
|
+
{
|
|
242
|
+
variant: "caption",
|
|
243
|
+
sx: {
|
|
244
|
+
color: "text.secondary",
|
|
245
|
+
fontSize: "0.75rem",
|
|
246
|
+
fontWeight: 600,
|
|
247
|
+
lineHeight: 1
|
|
248
|
+
},
|
|
249
|
+
children: u.shade
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
u.key
|
|
255
|
+
)) }) })
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
r.label
|
|
259
|
+
)) })
|
|
260
|
+
}
|
|
261
|
+
) : null
|
|
262
|
+
] }) : /* @__PURE__ */ l(
|
|
263
|
+
_,
|
|
264
|
+
{
|
|
265
|
+
className: "rounded border border-solid border-slate-200",
|
|
266
|
+
sx: {
|
|
267
|
+
height: 56,
|
|
268
|
+
alignItems: "center",
|
|
269
|
+
backgroundColor: e.allowAlpha ? n : "transparent",
|
|
270
|
+
display: "flex",
|
|
271
|
+
justifyContent: "center",
|
|
272
|
+
px: 1
|
|
273
|
+
},
|
|
274
|
+
children: e.allowAlpha ? null : /* @__PURE__ */ l(
|
|
275
|
+
f,
|
|
276
|
+
{
|
|
277
|
+
variant: P ? "caption" : "body2",
|
|
278
|
+
sx: {
|
|
279
|
+
...P ? {
|
|
280
|
+
color: "text.secondary"
|
|
281
|
+
} : {
|
|
282
|
+
fontSize: n || "inherit"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
children: P ? "Sample" : n || "-"
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
}
|
|
289
|
+
),
|
|
290
|
+
e.allowAlpha ? /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
291
|
+
/* @__PURE__ */ l(f, { variant: "caption", color: "text.secondary", children: "Current" }),
|
|
292
|
+
/* @__PURE__ */ l(f, { variant: "caption", color: "text.secondary", className: "truncate whitespace-nowrap", children: n || "-" })
|
|
293
|
+
] }) : /* @__PURE__ */ l(f, { variant: "caption", color: "text.secondary", children: "Preview" })
|
|
294
|
+
] })
|
|
295
|
+
] });
|
|
296
|
+
}
|
|
297
|
+
t(Ae, "ThemePreviewColorField");
|
|
298
|
+
export {
|
|
299
|
+
Ae as ThemePreviewColorField
|
|
300
|
+
};
|
|
301
|
+
//# sourceMappingURL=ThemePreviewColorField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemePreviewColorField.js","sources":["../../../../src/features/themePreview/components/ThemePreviewColorField.tsx"],"sourcesContent":["import {\n Box,\n Button,\n InputAdornment,\n MenuItem,\n Popover,\n TextField,\n Typography,\n} from '@mui/material';\nimport {\n amber,\n blue,\n blueGrey,\n cyan,\n deepOrange,\n deepPurple,\n green,\n grey,\n indigo,\n lightBlue,\n orange,\n pink,\n purple,\n red,\n teal,\n} from '@mui/material/colors';\nimport type {\n ThemePreviewFieldDefinition,\n ThemePreviewSectionKey,\n ThemePreviewSettings,\n} from '../types';\nimport {\n applyColorPickerValue,\n getColorAlphaValue,\n getThemePreviewPaletteValue,\n toColorPickerValue,\n} from '../utils';\nimport { useEffect, useRef, useState } from 'react';\n\ninterface ThemePreviewColorFieldProps {\n disabled?: boolean;\n definition: ThemePreviewFieldDefinition;\n sectionKey: ThemePreviewSectionKey;\n settings: ThemePreviewSettings;\n onChange: (path: string, value: string) => void;\n}\n\nconst themePreviewInputUnits = {\n 'px-number': 'px',\n 'rem-number': 'rem',\n} as const;\n\ntype ThemePreviewInputUnit = (typeof themePreviewInputUnits)[keyof typeof themePreviewInputUnits];\n\nconst themePreviewMuiColorShades = [\n '50',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n 'A100',\n 'A200',\n 'A400',\n 'A700',\n] as const;\nconst themePreviewMuiColorPalettes = [\n ['Blue', blue],\n ['Light Blue', lightBlue],\n ['Cyan', cyan],\n ['Teal', teal],\n ['Green', green],\n ['Amber', amber],\n ['Orange', orange],\n ['Deep Orange', deepOrange],\n ['Red', red],\n ['Pink', pink],\n ['Purple', purple],\n ['Deep Purple', deepPurple],\n ['Indigo', indigo],\n ['Grey', grey],\n ['Blue Grey', blueGrey],\n] as const;\nconst themePreviewMuiPaletteColorRows = themePreviewMuiColorPalettes.map(([label, palette]) => ({\n label,\n colors: themePreviewMuiColorShades.reduce<Array<{\n key: string;\n shade: string;\n value: string;\n }>>((acc, shade) => {\n const paletteValue = (palette as Record<string, string>)[shade];\n\n if (!paletteValue) {\n return acc;\n }\n\n acc.push({\n key: `${label}-${shade}`,\n shade,\n value: paletteValue,\n });\n\n return acc;\n }, []),\n}));\nconst THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS = 500;\n\nfunction getUnitInputDisplayValue(value: string, unit: ThemePreviewInputUnit) {\n return value.replace(new RegExp(`${unit}$`, 'i'), '');\n}\n\nfunction normalizeUnitInputValue(value: string, unit: ThemePreviewInputUnit) {\n const sanitizedValue = value.replace(/[^0-9.,]/g, '').replace(/,/g, '.');\n const [integerPart = '', ...decimalParts] = sanitizedValue.split('.');\n const decimalPart = decimalParts.join('');\n const normalizedValue = decimalPart ? `${integerPart}.${decimalPart}` : integerPart;\n\n return normalizedValue ? `${normalizedValue}${unit}` : '';\n}\n\nfunction getUnitValueFormat(valueFormat?: ThemePreviewFieldDefinition['valueFormat']) {\n return (valueFormat ? themePreviewInputUnits[valueFormat] : null) ?? null;\n}\n\nexport function ThemePreviewColorField({\n disabled = false,\n definition,\n sectionKey,\n settings,\n onChange,\n}: ThemePreviewColorFieldProps) {\n const [muiPaletteAnchorElement, setMuiPaletteAnchorElement] = useState<HTMLElement | null>(null);\n const value = getThemePreviewPaletteValue(settings, sectionKey, definition.path);\n const unitValueFormat = getUnitValueFormat(definition.valueFormat);\n const showColorPicker = definition.showColorPicker !== false;\n const alphaValue = definition.allowAlpha ? getColorAlphaValue(value) : null;\n const helperText = [definition.description];\n\n if (definition.allowAlpha) {\n helperText.push(\n alphaValue\n ? `알파값은 ${alphaValue}로 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.`\n : '알파값은 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.',\n );\n }\n\n const resolvedHelperText = helperText.filter(Boolean).join(' ');\n const isUnitPreview = Boolean(unitValueFormat);\n const hasOptions = Boolean(definition.options?.length);\n const isReadOnlyColorTextInput = Boolean(definition.allowAlpha && showColorPicker && !hasOptions && !unitValueFormat);\n const displayValue =\n unitValueFormat ? getUnitInputDisplayValue(value, unitValueFormat) : value;\n const canBufferTextInput =\n !hasOptions && !unitValueFormat && !isReadOnlyColorTextInput;\n const [bufferedTextValue, setBufferedTextValue] = useState(displayValue);\n const [isBufferedTextInputFocused, setIsBufferedTextInputFocused] = useState(false);\n const [bufferedPickerValue, setBufferedPickerValue] = useState(toColorPickerValue(value));\n const [isBufferedPickerDirty, setIsBufferedPickerDirty] = useState(false);\n const colorPickerApplyTimeoutRef = useRef<number | null>(null);\n\n useEffect(() => {\n if (!canBufferTextInput || isBufferedTextInputFocused) {\n return;\n }\n\n setBufferedTextValue(displayValue);\n }, [canBufferTextInput, displayValue, isBufferedTextInputFocused]);\n\n useEffect(() => {\n if (isBufferedPickerDirty) {\n return;\n }\n\n setBufferedPickerValue(toColorPickerValue(value));\n }, [isBufferedPickerDirty, value]);\n\n useEffect(() => {\n return () => {\n if (!colorPickerApplyTimeoutRef.current) {\n return;\n }\n\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n };\n }, []);\n\n const commitBufferedTextValue = (nextValue: string) => {\n onChange(definition.path, nextValue);\n };\n const commitBufferedPickerValue = (nextPickerValue: string) => {\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n colorPickerApplyTimeoutRef.current = null;\n }\n\n setIsBufferedPickerDirty(false);\n onChange(definition.path, applyColorPickerValue(value, nextPickerValue));\n };\n\n return (\n <div className=\"grid grid-cols-[minmax(0,1fr)_144px] gap-12\">\n <TextField\n select={hasOptions}\n label={definition.label}\n value={canBufferTextInput ? bufferedTextValue : displayValue}\n disabled={disabled}\n onChange={(event) => {\n if (isReadOnlyColorTextInput) {\n return;\n }\n\n const nextValue = unitValueFormat\n ? normalizeUnitInputValue(event.target.value, unitValueFormat)\n : event.target.value;\n\n if (canBufferTextInput) {\n setBufferedTextValue(nextValue);\n return;\n }\n\n onChange(definition.path, nextValue);\n }}\n onFocus={() => {\n if (!canBufferTextInput) {\n return;\n }\n\n setIsBufferedTextInputFocused(true);\n }}\n onBlur={() => {\n if (!canBufferTextInput) {\n return;\n }\n\n setIsBufferedTextInputFocused(false);\n commitBufferedTextValue(bufferedTextValue);\n }}\n onKeyDown={(event) => {\n if (!canBufferTextInput || event.key !== 'Enter') {\n return;\n }\n\n event.preventDefault();\n setIsBufferedTextInputFocused(false);\n commitBufferedTextValue(bufferedTextValue);\n event.currentTarget.blur();\n }}\n helperText={resolvedHelperText}\n slotProps={{\n htmlInput:\n {\n ...(unitValueFormat\n ? {\n inputMode: 'decimal',\n }\n : {}),\n ...(isReadOnlyColorTextInput\n ? {\n readOnly: true,\n }\n : {}),\n },\n input:\n unitValueFormat\n ? {\n endAdornment: <InputAdornment position=\"end\">{unitValueFormat}</InputAdornment>,\n }\n : undefined,\n }}\n >\n {definition.options?.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n\n <div className=\"flex flex-col gap-6\">\n {showColorPicker ? (\n <>\n <TextField\n label=\"Pick\"\n type=\"color\"\n value={bufferedPickerValue}\n disabled={disabled}\n onChange={(event) => {\n const nextPickerValue = event.target.value;\n\n setBufferedPickerValue(nextPickerValue);\n setIsBufferedPickerDirty(true);\n\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n }\n\n colorPickerApplyTimeoutRef.current = window.setTimeout(() => {\n commitBufferedPickerValue(nextPickerValue);\n }, THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS);\n }}\n onBlur={() => {\n if (!isBufferedPickerDirty) {\n return;\n }\n\n commitBufferedPickerValue(bufferedPickerValue);\n }}\n sx={{\n '& .MuiInputBase-input': {\n minHeight: 56,\n p: 0.5,\n },\n }}\n />\n <Button\n size=\"small\"\n variant=\"outlined\"\n disabled={disabled}\n onClick={(event) => {\n setMuiPaletteAnchorElement(event.currentTarget);\n }}\n >\n MUI\n </Button>\n {muiPaletteAnchorElement ? (\n <Popover\n open\n anchorEl={muiPaletteAnchorElement}\n onClose={() => {\n setMuiPaletteAnchorElement(null);\n }}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n slotProps={{\n paper: {\n sx: {\n maxHeight: 420,\n p: 1.5,\n width: 'min(388px, calc(100vw - 48px))',\n },\n },\n }}\n >\n <div className=\"flex flex-col gap-10\">\n {themePreviewMuiPaletteColorRows.map((paletteRow) => (\n <div\n key={paletteRow.label}\n className=\"grid grid-cols-[84px_264px] items-start gap-8\"\n >\n <Typography variant=\"caption\" color=\"text.secondary\">\n {paletteRow.label}\n </Typography>\n <div className=\"overflow-x-auto\">\n <div className=\"flex w-max gap-6 pr-2\">\n {paletteRow.colors.map((colorItem) => (\n <Button\n key={colorItem.key}\n size=\"small\"\n variant=\"outlined\"\n onClick={() => {\n onChange(\n definition.path,\n applyColorPickerValue(value, colorItem.value),\n );\n setMuiPaletteAnchorElement(null);\n }}\n sx={{\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n gap: 0.5,\n minWidth: 0,\n p: 0.5,\n width: 68,\n }}\n >\n <Box\n sx={{\n width: 30,\n height: 30,\n borderRadius: 1,\n backgroundColor: colorItem.value,\n border: '1px solid',\n borderColor: 'divider',\n }}\n />\n <Typography\n variant=\"caption\"\n sx={{\n color: 'text.secondary',\n fontSize: '0.75rem',\n fontWeight: 600,\n lineHeight: 1,\n }}\n >\n {colorItem.shade}\n </Typography>\n </Button>\n ))}\n </div>\n </div>\n </div>\n ))}\n </div>\n </Popover>\n ) : null}\n </>\n ) : (\n <Box\n className=\"rounded border border-solid border-slate-200\"\n sx={{\n height: 56,\n alignItems: 'center',\n backgroundColor: definition.allowAlpha ? value : 'transparent',\n display: 'flex',\n justifyContent: 'center',\n px: 1,\n }}\n >\n {!definition.allowAlpha ? (\n <Typography\n variant={isUnitPreview ? 'caption' : 'body2'}\n sx={{\n ...(isUnitPreview\n ? {\n color: 'text.secondary',\n }\n : {\n fontSize: value || 'inherit',\n }),\n }}\n >\n {isUnitPreview ? 'Sample' : value || '-'}\n </Typography>\n ) : null}\n </Box>\n )}\n {definition.allowAlpha ? (\n <div className=\"flex flex-col gap-2\">\n <Typography variant=\"caption\" color=\"text.secondary\">\n Current\n </Typography>\n <Typography variant=\"caption\" color=\"text.secondary\" className=\"truncate whitespace-nowrap\">\n {value || '-'}\n </Typography>\n </div>\n ) : (\n <Typography variant=\"caption\" color=\"text.secondary\">\n Preview\n </Typography>\n )}\n </div>\n </div>\n );\n}\n"],"names":["themePreviewInputUnits","themePreviewMuiColorShades","themePreviewMuiColorPalettes","blue","lightBlue","cyan","teal","green","amber","orange","deepOrange","red","pink","purple","deepPurple","indigo","grey","blueGrey","themePreviewMuiPaletteColorRows","label","palette","acc","shade","paletteValue","THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS","getUnitInputDisplayValue","value","unit","__name","normalizeUnitInputValue","sanitizedValue","integerPart","decimalParts","decimalPart","normalizedValue","getUnitValueFormat","valueFormat","ThemePreviewColorField","disabled","definition","sectionKey","settings","onChange","muiPaletteAnchorElement","setMuiPaletteAnchorElement","useState","getThemePreviewPaletteValue","unitValueFormat","showColorPicker","alphaValue","getColorAlphaValue","helperText","resolvedHelperText","isUnitPreview","hasOptions","_a","isReadOnlyColorTextInput","displayValue","canBufferTextInput","bufferedTextValue","setBufferedTextValue","isBufferedTextInputFocused","setIsBufferedTextInputFocused","bufferedPickerValue","setBufferedPickerValue","toColorPickerValue","isBufferedPickerDirty","setIsBufferedPickerDirty","colorPickerApplyTimeoutRef","useRef","useEffect","commitBufferedTextValue","nextValue","commitBufferedPickerValue","nextPickerValue","applyColorPickerValue","jsxs","jsx","TextField","event","InputAdornment","_b","option","MenuItem","Fragment","Button","Popover","paletteRow","Typography","colorItem","Box"],"mappings":";;;;;;;;AA+CA,MAAMA,KAAyB;AAAA,EAC7B,aAAa;AAAA,EACb,cAAc;AAChB,GAIMC,KAA6B;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACMC,KAA+B;AAAA,EACnC,CAAC,QAAQC,CAAI;AAAA,EACb,CAAC,cAAcC,CAAS;AAAA,EACxB,CAAC,QAAQC,CAAI;AAAA,EACb,CAAC,QAAQC,CAAI;AAAA,EACb,CAAC,SAASC,CAAK;AAAA,EACf,CAAC,SAASC,EAAK;AAAA,EACf,CAAC,UAAUC,EAAM;AAAA,EACjB,CAAC,eAAeC,EAAU;AAAA,EAC1B,CAAC,OAAOC,EAAG;AAAA,EACX,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,UAAUC,EAAM;AAAA,EACjB,CAAC,eAAeC,EAAU;AAAA,EAC1B,CAAC,UAAUC,EAAM;AAAA,EACjB,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,aAAaC,EAAQ;AACxB,GACMC,KAAkChB,GAA6B,IAAI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