@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
|
@@ -5,6 +5,7 @@ export declare const TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS = 300;
|
|
|
5
5
|
type TreeGridInitializationInput<T> = {
|
|
6
6
|
id: string;
|
|
7
7
|
layoutUrl?: string;
|
|
8
|
+
layoutData?: string;
|
|
8
9
|
dataUrl?: string;
|
|
9
10
|
bodyData: OwpTreeGridBodyData<T>;
|
|
10
11
|
useDataUrl?: boolean;
|
|
@@ -17,6 +18,10 @@ export type TreeGridEventBindingOptions<T> = Pick<OwpTreeGridProps<T>, 'id'> & {
|
|
|
17
18
|
latestEventHandlersRef: RefObject<TreeGridEventHandlers<T>>;
|
|
18
19
|
highlightEditableCellsRef: RefObject<boolean>;
|
|
19
20
|
highlightChangedCellsRef: RefObject<boolean>;
|
|
21
|
+
editableCellBackgroundColorValueRef: RefObject<number | undefined>;
|
|
22
|
+
changedCellBackgroundColorRef: RefObject<string>;
|
|
23
|
+
selectedCellBackgroundColorRef: RefObject<string>;
|
|
24
|
+
hoverCellBackgroundColorRef: RefObject<string>;
|
|
20
25
|
treeGridInstanceRef: RefObject<TGrid>;
|
|
21
26
|
treeGridInitStartedAtRef: RefObject<number | null>;
|
|
22
27
|
latestLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;
|
|
@@ -34,10 +39,14 @@ export type TreeGridEventBindingOptions<T> = Pick<OwpTreeGridProps<T>, 'id'> & {
|
|
|
34
39
|
* TreeGrid 초기화 옵션 생성
|
|
35
40
|
* @param input 초기화 입력값
|
|
36
41
|
*/
|
|
37
|
-
export declare const buildTreeGridInitializationOptions: <T>({ id, layoutUrl, dataUrl, bodyData, useDataUrl, width, height, languageId, }: TreeGridInitializationInput<T>) => {
|
|
42
|
+
export declare const buildTreeGridInitializationOptions: <T>({ id, layoutUrl, layoutData, dataUrl, bodyData, useDataUrl, width, height, languageId, }: TreeGridInitializationInput<T>) => {
|
|
38
43
|
id: string;
|
|
39
44
|
Layout: {
|
|
45
|
+
Data: string;
|
|
46
|
+
Url?: undefined;
|
|
47
|
+
} | {
|
|
40
48
|
Url: string;
|
|
49
|
+
Data?: undefined;
|
|
41
50
|
};
|
|
42
51
|
Data: {
|
|
43
52
|
Url: string;
|
|
@@ -76,5 +85,5 @@ export declare const replaceTreeGridBodyData: <T>(grid: TGrid, bodyData: OwpTree
|
|
|
76
85
|
* TreeGrid 이벤트 바인딩
|
|
77
86
|
* @param options 이벤트 바인딩 옵션
|
|
78
87
|
*/
|
|
79
|
-
export declare const bindTreeGridEvents: <T>({ id, latestEventHandlersRef, highlightEditableCellsRef, highlightChangedCellsRef, treeGridInstanceRef, treeGridInitStartedAtRef, latestLayoutOverridesRef, appliedLayoutOverridesRef, appliedBodyDataPropRef, latestColumnEditRulesRef, latestColumnEditRuleLookupRef, appliedColumnEditRulesRef, columnEditRulesStateRef, hasAppliedInitialLayoutRef, syncHasDisplayDataRows, setIsTreeGridReady, }: TreeGridEventBindingOptions<T>) => void;
|
|
88
|
+
export declare const bindTreeGridEvents: <T>({ id, latestEventHandlersRef, highlightEditableCellsRef, highlightChangedCellsRef, editableCellBackgroundColorValueRef, changedCellBackgroundColorRef, selectedCellBackgroundColorRef, hoverCellBackgroundColorRef, treeGridInstanceRef, treeGridInitStartedAtRef, latestLayoutOverridesRef, appliedLayoutOverridesRef, appliedBodyDataPropRef, latestColumnEditRulesRef, latestColumnEditRuleLookupRef, appliedColumnEditRulesRef, columnEditRulesStateRef, hasAppliedInitialLayoutRef, syncHasDisplayDataRows, setIsTreeGridReady, }: TreeGridEventBindingOptions<T>) => void;
|
|
80
89
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OwpResolvedGridThemeConfigType } from '@/constants/gridTheme';
|
|
2
|
+
import type { OwpGridThemeConfigType } from '@/types/OwpGridThemeTypes';
|
|
3
|
+
import type { CSSProperties } from 'react';
|
|
4
|
+
type TreeGridThemeCssVariableName = '--owp-tree-grid-body-background-color' | '--owp-tree-grid-body-color' | '--owp-tree-grid-body-fill-background-color' | '--owp-tree-grid-row-background-color' | '--owp-tree-grid-row-solid-background-color' | '--owp-tree-grid-header-background-color' | '--owp-tree-grid-header-color' | '--owp-tree-grid-header-font-size' | '--owp-tree-grid-header-font-weight' | '--owp-tree-grid-cell-font-size' | '--owp-tree-grid-hover-row-background-color' | '--owp-tree-grid-hover-row-border-color' | '--owp-tree-grid-selected-cell-background-color' | '--owp-tree-grid-selected-row-background-color' | '--owp-tree-grid-focused-row-background-color' | '--owp-tree-grid-focused-row-border-color' | '--owp-tree-grid-hover-cell-background-color' | '--owp-tree-grid-hover-cell-border-color' | '--owp-tree-grid-focused-cell-background-color' | '--owp-tree-grid-focused-cell-border-color' | '--owp-tree-grid-editing-cell-border-color' | '--owp-tree-grid-focused-cell-rect-background-color' | '--owp-tree-grid-changed-background-color';
|
|
5
|
+
type TreeGridLayoutDimensionValue = string | number;
|
|
6
|
+
export type TreeGridThemeContainerStyle = CSSProperties & Partial<Record<TreeGridThemeCssVariableName, string>>;
|
|
7
|
+
export declare const TREE_GRID_THEME_WRAPPER_CLASS = "owp-tree-grid-theme";
|
|
8
|
+
export declare const treeGridThemeStyles: Record<string, CSSProperties>;
|
|
9
|
+
/**
|
|
10
|
+
* TreeGrid theme CSS 변수 컨테이너 스타일 생성
|
|
11
|
+
* @param input Grid theme 입력값
|
|
12
|
+
*/
|
|
13
|
+
export declare const createTreeGridThemeContainerStyle: ({ width, height, treeGridTheme, gridThemeConfig, containerStyle, }: {
|
|
14
|
+
width: TreeGridLayoutDimensionValue;
|
|
15
|
+
height: TreeGridLayoutDimensionValue;
|
|
16
|
+
treeGridTheme: OwpResolvedGridThemeConfigType;
|
|
17
|
+
gridThemeConfig?: OwpGridThemeConfigType | null;
|
|
18
|
+
containerStyle?: CSSProperties;
|
|
19
|
+
}) => TreeGridThemeContainerStyle;
|
|
20
|
+
export {};
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';
|
|
2
2
|
import { type ThemeOptions } from '@mui/material/styles';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
|
+
export declare const defaultSnackbarTheme: {
|
|
5
|
+
default: {
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
success: {
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
info: {
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
warning: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
error: {
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
4
26
|
/**
|
|
5
27
|
* 기본 layout 설정
|
|
6
28
|
* @param style layout 스타일
|
|
@@ -7,9 +7,38 @@ export type OwpResolvedGridThemeConfigType = {
|
|
|
7
7
|
fontWeight: number | string;
|
|
8
8
|
height: number | string;
|
|
9
9
|
};
|
|
10
|
+
body: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
color: string;
|
|
13
|
+
fillBackgroundColor: string;
|
|
14
|
+
};
|
|
15
|
+
row: {
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
solidBackgroundColor: string;
|
|
18
|
+
};
|
|
10
19
|
cell: {
|
|
11
20
|
fontSize: number | string;
|
|
12
21
|
};
|
|
22
|
+
state: {
|
|
23
|
+
hoverRowBackgroundColor: string;
|
|
24
|
+
hoverRowBorderColor: string;
|
|
25
|
+
selectedCellBackgroundColor: string;
|
|
26
|
+
selectedRowBackgroundColor: string;
|
|
27
|
+
focusedRowBackgroundColor: string;
|
|
28
|
+
focusedRowBorderColor: string;
|
|
29
|
+
hoverCellBackgroundColor: string;
|
|
30
|
+
hoverCellBorderColor: string;
|
|
31
|
+
focusedCellBackgroundColor: string;
|
|
32
|
+
focusedCellBorderColor: string;
|
|
33
|
+
editingCellBorderColor: string;
|
|
34
|
+
focusedCellRectBackgroundColor: string;
|
|
35
|
+
};
|
|
36
|
+
editable: {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
};
|
|
39
|
+
changed: {
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
};
|
|
13
42
|
};
|
|
14
43
|
export declare const defaultOwpGridTheme: {
|
|
15
44
|
header: {
|
|
@@ -19,9 +48,38 @@ export declare const defaultOwpGridTheme: {
|
|
|
19
48
|
fontWeight: string;
|
|
20
49
|
height: number;
|
|
21
50
|
};
|
|
51
|
+
body: {
|
|
52
|
+
backgroundColor: string;
|
|
53
|
+
color: string;
|
|
54
|
+
fillBackgroundColor: string;
|
|
55
|
+
};
|
|
56
|
+
row: {
|
|
57
|
+
backgroundColor: string;
|
|
58
|
+
solidBackgroundColor: string;
|
|
59
|
+
};
|
|
22
60
|
cell: {
|
|
23
61
|
fontSize: string;
|
|
24
62
|
};
|
|
63
|
+
state: {
|
|
64
|
+
hoverRowBackgroundColor: string;
|
|
65
|
+
hoverRowBorderColor: string;
|
|
66
|
+
selectedCellBackgroundColor: string;
|
|
67
|
+
selectedRowBackgroundColor: string;
|
|
68
|
+
focusedRowBackgroundColor: string;
|
|
69
|
+
focusedRowBorderColor: string;
|
|
70
|
+
hoverCellBackgroundColor: string;
|
|
71
|
+
hoverCellBorderColor: string;
|
|
72
|
+
focusedCellBackgroundColor: string;
|
|
73
|
+
focusedCellBorderColor: string;
|
|
74
|
+
editingCellBorderColor: string;
|
|
75
|
+
focusedCellRectBackgroundColor: string;
|
|
76
|
+
};
|
|
77
|
+
editable: {
|
|
78
|
+
backgroundColor: string;
|
|
79
|
+
};
|
|
80
|
+
changed: {
|
|
81
|
+
backgroundColor: string;
|
|
82
|
+
};
|
|
25
83
|
};
|
|
26
84
|
/**
|
|
27
85
|
* Grid theme 토큰 기본값 병합
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { OwpTableVariantThemeConfigType } from '@/types/OwpTableThemeTypes';
|
|
2
|
+
export type OwpResolvedTableThemeConfigType = {
|
|
3
|
+
header: {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
color: string;
|
|
6
|
+
fontSize: number | string;
|
|
7
|
+
fontWeight: number | string;
|
|
8
|
+
};
|
|
9
|
+
cell: {
|
|
10
|
+
fontSize: number | string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Table theme 토큰 기본값 병합
|
|
15
|
+
* @param tableTheme 앱 theme table 설정
|
|
16
|
+
* @param fallbackTheme 컴포넌트 기본값
|
|
17
|
+
*/
|
|
18
|
+
export declare const resolveOwpTableTheme: (tableTheme: OwpTableVariantThemeConfigType | null | undefined, fallbackTheme: OwpResolvedTableThemeConfigType) => OwpResolvedTableThemeConfigType;
|
|
@@ -10,6 +10,11 @@ export declare const getTreeGridAssetBasePath: () => string;
|
|
|
10
10
|
export declare const resolveTreeGridAssetUrl: (assetPath: string) => string;
|
|
11
11
|
/** TreeGrid 다국어 리소스 URL 조회 */
|
|
12
12
|
export declare const getTreeGridTextResourceUrl: (languageId: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* TreeGrid 색상 문자열 숫자 변환
|
|
15
|
+
* @param color CSS 색상 문자열
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveTreeGridColorNumber: (color?: string | null) => number;
|
|
13
18
|
/** TreeGrid 폰트 face 스타일 조회 */
|
|
14
19
|
export declare const getTreeGridFontFaceStyles: () => {
|
|
15
20
|
'@font-face': Record<string, string>;
|
|
@@ -63,6 +63,8 @@ export interface OwpAppEnv {
|
|
|
63
63
|
isNavigationActiveRouteRemountEnabled?: boolean;
|
|
64
64
|
isPasswordChangeEnabled?: boolean;
|
|
65
65
|
isRequestLogPayloadEnabled?: boolean;
|
|
66
|
+
isThemePreviewEnabled?: boolean;
|
|
67
|
+
themePreviewDialogLoader?: () => Promise<unknown>;
|
|
66
68
|
[key: string]: unknown;
|
|
67
69
|
}
|
|
68
70
|
export interface OwpAppContextValue extends OwpAppConfigs {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ThemePreviewSectionKey, ThemePreviewSettings } from '../types';
|
|
2
|
+
interface ThemePreviewCanvasProps {
|
|
3
|
+
activeSection: ThemePreviewSectionKey;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
settings: ThemePreviewSettings;
|
|
6
|
+
}
|
|
7
|
+
export declare function ThemePreviewCanvas({ activeSection, isLoading, settings, }: ThemePreviewCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { SnackbarProviderTheme, SnackbarVariantKey } from '@/features/themePreview/configs/snackbar';
|
|
2
|
+
import type { ThemePreviewTableConfigType } from '@/features/themePreview/configs/table';
|
|
3
|
+
import { OwpStoreProvider } from '@/contexts';
|
|
4
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
5
|
+
import { type SnackbarKey } from 'notistack';
|
|
6
|
+
import { type ComponentProps, type MutableRefObject, type ReactNode } from 'react';
|
|
7
|
+
type ThemePreviewButtonPreviewItem = {
|
|
8
|
+
label: string;
|
|
9
|
+
color: string;
|
|
10
|
+
previewContrastColor: string;
|
|
11
|
+
};
|
|
12
|
+
type ThemePreviewSnackbarPreviewItem = {
|
|
13
|
+
actionHoverColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
color: string;
|
|
16
|
+
icon: ReactNode;
|
|
17
|
+
key: SnackbarVariantKey;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
type ThemePreviewStoreState = NonNullable<ComponentProps<typeof OwpStoreProvider>['preloadedState']>;
|
|
21
|
+
interface ThemePreviewButtonsSectionProps {
|
|
22
|
+
buttonPreviewItems: ThemePreviewButtonPreviewItem[];
|
|
23
|
+
mainTextSecondary: string;
|
|
24
|
+
previewSectionCardSx: SxProps<Theme>;
|
|
25
|
+
}
|
|
26
|
+
export declare const ThemePreviewButtonsSection: import("react").NamedExoticComponent<ThemePreviewButtonsSectionProps>;
|
|
27
|
+
interface ThemePreviewSnackbarsSectionProps {
|
|
28
|
+
previewSectionCardSx: SxProps<Theme>;
|
|
29
|
+
previewSnackbarKeysRef: MutableRefObject<SnackbarKey[]>;
|
|
30
|
+
snackbarAnchorOrigin: SnackbarProviderTheme['anchorOrigin'];
|
|
31
|
+
snackbarPreviewAnchorHorizontal: 'center' | 'left' | 'right';
|
|
32
|
+
snackbarPreviewAnchorVertical: 'bottom' | 'top';
|
|
33
|
+
snackbarPreviewFontSize?: number | string;
|
|
34
|
+
snackbarPreviewItems: ThemePreviewSnackbarPreviewItem[];
|
|
35
|
+
snackbarPreviewLineHeight?: number | string;
|
|
36
|
+
snackbarPreviewMaxSnack: number;
|
|
37
|
+
snackbarAutoHideDuration: SnackbarProviderTheme['autoHideDuration'];
|
|
38
|
+
}
|
|
39
|
+
export declare const ThemePreviewSnackbarsSection: import("react").NamedExoticComponent<ThemePreviewSnackbarsSectionProps>;
|
|
40
|
+
interface ThemePreviewSearchHeaderSectionProps {
|
|
41
|
+
gridPreviewTable: ReactNode;
|
|
42
|
+
mainBackground: string;
|
|
43
|
+
mainPaper: string;
|
|
44
|
+
mainText: string;
|
|
45
|
+
mainThemePreviewStoreState: ThemePreviewStoreState;
|
|
46
|
+
previewSectionCardSx: SxProps<Theme>;
|
|
47
|
+
searchHeaderPreviewDate: string;
|
|
48
|
+
searchHeaderPreviewNumber: string;
|
|
49
|
+
searchHeaderPreviewVersionKey: string;
|
|
50
|
+
tablePreviewCanTableRadiusZero: boolean;
|
|
51
|
+
tableTheme: ThemePreviewTableConfigType;
|
|
52
|
+
tableThemePreviewVersionKey: string;
|
|
53
|
+
}
|
|
54
|
+
export declare const ThemePreviewSearchHeaderSection: import("react").NamedExoticComponent<ThemePreviewSearchHeaderSectionProps>;
|
|
55
|
+
interface ThemePreviewGridSectionProps {
|
|
56
|
+
editableThemePreviewGridId: string;
|
|
57
|
+
mainGridChangedBackgroundColor?: string;
|
|
58
|
+
mainThemePreviewStoreKey: string;
|
|
59
|
+
mainThemePreviewStoreState: ThemePreviewStoreState;
|
|
60
|
+
previewSectionCardSx: SxProps<Theme>;
|
|
61
|
+
readonlyThemePreviewGridId: string;
|
|
62
|
+
}
|
|
63
|
+
export declare const ThemePreviewGridSection: import("react").NamedExoticComponent<ThemePreviewGridSectionProps>;
|
|
64
|
+
interface ThemePreviewTablesSectionProps {
|
|
65
|
+
mainThemePreviewStoreState: ThemePreviewStoreState;
|
|
66
|
+
previewSectionCardSx: SxProps<Theme>;
|
|
67
|
+
tablePreviewCanTableRadiusZero: boolean;
|
|
68
|
+
tableTheme: ThemePreviewTableConfigType;
|
|
69
|
+
tableThemePreviewVersionKey: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const ThemePreviewTablesSection: import("react").NamedExoticComponent<ThemePreviewTablesSectionProps>;
|
|
72
|
+
interface ThemePreviewGridPreviewTableProps {
|
|
73
|
+
gridBodyBorder: string;
|
|
74
|
+
layoutPreviewGridCellBackground: string;
|
|
75
|
+
layoutPreviewGridCellFontSize: string;
|
|
76
|
+
layoutPreviewGridHeaderBackground: string;
|
|
77
|
+
layoutPreviewGridHeaderBorder: string;
|
|
78
|
+
layoutPreviewGridHeaderColor: string;
|
|
79
|
+
layoutPreviewGridHeaderFontSize: string;
|
|
80
|
+
}
|
|
81
|
+
export declare const ThemePreviewGridPreviewTable: import("react").NamedExoticComponent<ThemePreviewGridPreviewTableProps>;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ThemePreviewFieldDefinition, ThemePreviewSectionKey, ThemePreviewSettings } from '../types';
|
|
2
|
+
interface ThemePreviewColorFieldProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
definition: ThemePreviewFieldDefinition;
|
|
5
|
+
sectionKey: ThemePreviewSectionKey;
|
|
6
|
+
settings: ThemePreviewSettings;
|
|
7
|
+
onChange: (path: string, value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function ThemePreviewColorField({ disabled, definition, sectionKey, settings, onChange, }: ThemePreviewColorFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ThemePreviewMode, ThemePreviewPresetOption, ThemePreviewSectionKey, ThemePreviewSettings } from '../types';
|
|
2
|
+
interface ThemePreviewControlsProps {
|
|
3
|
+
activeSection: ThemePreviewSectionKey;
|
|
4
|
+
presetOptions: ThemePreviewPresetOption[];
|
|
5
|
+
selectedMode: ThemePreviewMode;
|
|
6
|
+
selectedPresetKey: string;
|
|
7
|
+
settings: ThemePreviewSettings;
|
|
8
|
+
onSectionChange: (sectionKey: ThemePreviewSectionKey) => void;
|
|
9
|
+
onPaletteValueChange: (path: string, value: string) => void;
|
|
10
|
+
onPaletteValuesChange: (updates: Array<{
|
|
11
|
+
path: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}>) => void;
|
|
14
|
+
onPresetKeyChange: (presetKey: string) => void;
|
|
15
|
+
onPresetModeChange: (mode: ThemePreviewMode) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function ThemePreviewControls({ activeSection, presetOptions, selectedMode, selectedPresetKey, settings, onSectionChange, onPaletteValueChange, onPaletteValuesChange, onPresetKeyChange, onPresetModeChange, }: ThemePreviewControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { OwpFieldTable } from '@/components/OwpTable/OwpFieldTable';
|
|
2
|
+
import type { SnackbarVariantKey } from '@/features/themePreview/configs/snackbar';
|
|
3
|
+
import type { ThemePreviewTableConfigType } from '@/features/themePreview/configs/table';
|
|
4
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
5
|
+
import type { ComponentProps } from 'react';
|
|
6
|
+
import type { ThemePreviewPaletteSectionKey, ThemePreviewSectionKey, ThemePreviewSettings } from '../types';
|
|
7
|
+
export declare const previewChromeBorder = "#e2e8f0";
|
|
8
|
+
export declare const previewSectionCardClassName = "rounded-lg p-14";
|
|
9
|
+
export declare const previewInnerCardSx: {
|
|
10
|
+
readonly boxShadow: "none";
|
|
11
|
+
};
|
|
12
|
+
export declare const themePreviewEditableTreeGridId = "ThemePreviewGrid";
|
|
13
|
+
export declare const themePreviewReadonlyTreeGridId = "ThemePreviewReadonlyGrid";
|
|
14
|
+
export declare const gridPreviewBodyBackground = "#ffffff";
|
|
15
|
+
export declare const gridPreviewBodyText = "rgb(17, 24, 39)";
|
|
16
|
+
export declare const defaultPreviewSectionOrder: readonly ["buttons", "searchHeader"];
|
|
17
|
+
export declare const gridPreviewColumnLabels: readonly ["부서명", "사용자ID", "성명", "사용여부"];
|
|
18
|
+
export declare const navbarPreviewItems: readonly ["Dashboard", "Theme Preview", "사용자 관리", "권한 그룹"];
|
|
19
|
+
export declare const previewUserNameById: {
|
|
20
|
+
readonly admin: "관리자";
|
|
21
|
+
readonly impix: "담당자1";
|
|
22
|
+
readonly owp: "담당자2";
|
|
23
|
+
};
|
|
24
|
+
export declare const snackbarPreviewMessageByVariant: Record<SnackbarVariantKey, string>;
|
|
25
|
+
export declare const searchHeaderPreviewData: {
|
|
26
|
+
previewValue: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const tableFieldPreviewData: {
|
|
29
|
+
departmentName: string;
|
|
30
|
+
managerName: "담당자1";
|
|
31
|
+
useYn: string;
|
|
32
|
+
locationName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const tableFieldPreviewLayout: {
|
|
35
|
+
title: string;
|
|
36
|
+
key: string;
|
|
37
|
+
}[][];
|
|
38
|
+
export declare const tablePreviewHeaders: {
|
|
39
|
+
departmentName: string;
|
|
40
|
+
managerName: string;
|
|
41
|
+
useYn: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const tablePreviewRows: ({
|
|
44
|
+
departmentName: string;
|
|
45
|
+
managerName: "담당자1";
|
|
46
|
+
useYn: string;
|
|
47
|
+
} | {
|
|
48
|
+
departmentName: string;
|
|
49
|
+
managerName: "담당자2";
|
|
50
|
+
useYn: string;
|
|
51
|
+
})[];
|
|
52
|
+
export declare const gridStyledTablePreviewRows: ({
|
|
53
|
+
departmentName: string;
|
|
54
|
+
managerName: "담당자1";
|
|
55
|
+
useYn: string;
|
|
56
|
+
} | {
|
|
57
|
+
departmentName: string;
|
|
58
|
+
managerName: "담당자2";
|
|
59
|
+
useYn: string;
|
|
60
|
+
})[];
|
|
61
|
+
export declare const dataTablePreviewHeadCells: {
|
|
62
|
+
id: string;
|
|
63
|
+
label: string;
|
|
64
|
+
align: string;
|
|
65
|
+
valueAlign: string;
|
|
66
|
+
}[];
|
|
67
|
+
export declare const dataTablePreviewRows: ({
|
|
68
|
+
userId: string;
|
|
69
|
+
userName: "담당자1";
|
|
70
|
+
useYn: string;
|
|
71
|
+
} | {
|
|
72
|
+
userId: string;
|
|
73
|
+
userName: "담당자2";
|
|
74
|
+
useYn: string;
|
|
75
|
+
})[];
|
|
76
|
+
export declare const gridStyledDataTablePreviewRows: ({
|
|
77
|
+
userId: string;
|
|
78
|
+
userName: "담당자1";
|
|
79
|
+
useYn: string;
|
|
80
|
+
} | {
|
|
81
|
+
userId: string;
|
|
82
|
+
userName: "담당자2";
|
|
83
|
+
useYn: string;
|
|
84
|
+
})[];
|
|
85
|
+
export declare const gridCanvasPreviewRows: ({
|
|
86
|
+
'OWP_THEME_PREVIEW.ITEM_NAME': string;
|
|
87
|
+
'OWP_THEME_PREVIEW.REMARK': string;
|
|
88
|
+
'OWP_THEME_PREVIEW.STATUS': string;
|
|
89
|
+
'OWP_THEME_PREVIEW.USER_ID': string;
|
|
90
|
+
'OWP_THEME_PREVIEW.WEIGHT': number;
|
|
91
|
+
'OWP_THEME_PREVIEW.WORK_DATE': string;
|
|
92
|
+
CanSelect: number;
|
|
93
|
+
Selected: number;
|
|
94
|
+
} | {
|
|
95
|
+
'OWP_THEME_PREVIEW.ITEM_NAME': string;
|
|
96
|
+
'OWP_THEME_PREVIEW.REMARK': string;
|
|
97
|
+
'OWP_THEME_PREVIEW.STATUS': string;
|
|
98
|
+
'OWP_THEME_PREVIEW.USER_ID': string;
|
|
99
|
+
'OWP_THEME_PREVIEW.WEIGHT': number;
|
|
100
|
+
'OWP_THEME_PREVIEW.WORK_DATE': string;
|
|
101
|
+
CanSelect: number;
|
|
102
|
+
Selected?: undefined;
|
|
103
|
+
})[];
|
|
104
|
+
export declare const previewNoop: () => void;
|
|
105
|
+
type ThemePreviewFieldTableCellSx = NonNullable<ComponentProps<typeof OwpFieldTable>['cellSx']>;
|
|
106
|
+
type ThemePreviewFieldTableTitleSx = NonNullable<ComponentProps<typeof OwpFieldTable>['titleSx']>;
|
|
107
|
+
export type ThemePreviewLayoutSectionKey = 'buttons' | 'snackbars' | 'searchHeader' | 'grid' | 'tables';
|
|
108
|
+
export declare const gridPreviewRows: readonly [readonly ["관리부", "admin", "관리자", "사용"], readonly ["생산1팀", "impix", "담당자1", "사용"], readonly ["품질팀", "owp", "담당자2", "미사용"]];
|
|
109
|
+
export declare function createThemePreviewVersionKey(sourceValue: unknown): string;
|
|
110
|
+
export declare function getPaletteValue(settings: ThemePreviewSettings, sectionKey: ThemePreviewPaletteSectionKey, path: string): string;
|
|
111
|
+
export declare function getThemePreviewStyleValue<T extends number | string | undefined>(value: T): T;
|
|
112
|
+
export declare function getThemePreviewResolvedBorderRadius(borderRadius: ThemePreviewTableConfigType['borderRadius'], canTableRadiusZero?: boolean): string | number;
|
|
113
|
+
export declare function getThemePreviewTableFrameSx(tableTheme: ThemePreviewTableConfigType, canTableRadiusZero?: boolean): SxProps<Theme>;
|
|
114
|
+
export declare function getThemePreviewFieldTableSx(tableTheme: ThemePreviewTableConfigType, canTableRadiusZero?: boolean): SxProps<Theme>;
|
|
115
|
+
export declare function getThemePreviewFieldTableTitleSx(tableTheme: ThemePreviewTableConfigType): ThemePreviewFieldTableTitleSx | undefined;
|
|
116
|
+
export declare function getThemePreviewFieldTableCellSx(tableTheme: ThemePreviewTableConfigType): ThemePreviewFieldTableCellSx | undefined;
|
|
117
|
+
export declare function getThemePreviewBasicTableSx(tableTheme: ThemePreviewTableConfigType, canTableRadiusZero?: boolean): SxProps<Theme>;
|
|
118
|
+
export declare function getThemePreviewDataTableSx(tableTheme: ThemePreviewTableConfigType, canTableRadiusZero?: boolean): SxProps<Theme>;
|
|
119
|
+
export declare function getPreviewContrastColor(color: string, fallbackColor: string): string;
|
|
120
|
+
export declare function getPreviewSectionOrder(activeSection: ThemePreviewSectionKey): ThemePreviewLayoutSectionKey[];
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const defaultGridTheme: {
|
|
2
|
+
header: {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
color: string;
|
|
5
|
+
fontSize: string;
|
|
6
|
+
fontWeight: string;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
body: {
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
fillBackgroundColor: string;
|
|
13
|
+
};
|
|
14
|
+
row: {
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
solidBackgroundColor: string;
|
|
17
|
+
};
|
|
18
|
+
cell: {
|
|
19
|
+
fontSize: string;
|
|
20
|
+
};
|
|
21
|
+
state: {
|
|
22
|
+
hoverRowBackgroundColor: string;
|
|
23
|
+
hoverRowBorderColor: string;
|
|
24
|
+
selectedCellBackgroundColor: string;
|
|
25
|
+
selectedRowBackgroundColor: string;
|
|
26
|
+
focusedRowBackgroundColor: string;
|
|
27
|
+
focusedRowBorderColor: string;
|
|
28
|
+
hoverCellBackgroundColor: string;
|
|
29
|
+
hoverCellBorderColor: string;
|
|
30
|
+
focusedCellBackgroundColor: string;
|
|
31
|
+
focusedCellBorderColor: string;
|
|
32
|
+
editingCellBorderColor: string;
|
|
33
|
+
focusedCellRectBackgroundColor: string;
|
|
34
|
+
};
|
|
35
|
+
editable: {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
};
|
|
38
|
+
changed: {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultGridTheme } from './grid';
|
|
2
|
+
export { darkPaletteText, defaultNavbarDivider, defaultNavbarSecondaryPalette, defaultPrimaryPalette, defaultSecondaryPalette, defaultToolbarDivider, defaultToolbarSecondaryPalette, designSystemPresetKeys, legacyPresetCleanupCandidateKeys, lightPaletteText, themePreviewPresetContractKeys, themesConfig, toolbarCuratedPresetKeys, } from './presets';
|
|
3
|
+
export { clearThemePreviewAppliedSettings, clearThemePreviewTemporaryState, getResolvedThemePreviewSettingsConfig, getThemePreviewAppliedSettings, getThemePreviewTemporaryState, persistThemePreviewAppliedSettings, persistThemePreviewTemporaryState, type ThemePreviewTemporarySelectionState, type ThemePreviewTemporarySettings, type ThemePreviewTemporaryState, } from './previewStorage';
|
|
4
|
+
export { defaultSettingsConfig } from './settings';
|
|
5
|
+
export { defaultSnackbarProviderProps, defaultSnackbarTheme, snackbarVariantKeys, type SnackbarProviderTheme, type SnackbarTheme, type SnackbarVariantKey, type SnackbarVariantTheme, } from './snackbar';
|
|
6
|
+
export { defaultLayoutSurface } from './surface';
|
|
7
|
+
export { defaultTableTheme, type ThemePreviewTableCellConfigType, type ThemePreviewTableConfigType, type ThemePreviewTableRowConfigType, type ThemePreviewTableVariantConfigType, } from './table';
|