@owp/core 2.5.4 → 2.5.6
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/configs/theme.d.ts +3 -0
- package/configs/theme.js +1 -0
- package/dist/_virtual/index11.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/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpTable/OwpDataTable.js +293 -327
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +102 -117
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +50 -0
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -0
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +47 -45
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +179 -161
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/configs/defaultConfig.js +1 -1
- package/dist/configs/theme.js +28 -0
- package/dist/configs/theme.js.map +1 -0
- package/dist/contexts/OwpAppProvider.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +492 -0
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +678 -0
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewColorField.js +372 -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 +1074 -0
- package/dist/features/themePreview/configs/presets.js.map +1 -0
- package/dist/features/themePreview/configs/previewStorage.js +94 -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 +441 -0
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -0
- package/dist/features/themePreview/hooks/useThemePreview.js +280 -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 +320 -0
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewSettings.js +211 -0
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -0
- package/dist/features/themePreview.js +75 -0
- package/dist/features/themePreview.js.map +1 -0
- package/dist/layout/components/logo/Logo.js +49 -45
- package/dist/layout/components/logo/Logo.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toggles/ThemePreviewToggle.js +51 -0
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -0
- package/dist/layout/components/toolbar/ToolbarLayout.js +8 -6
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CheckCircleOutline.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CheckCircleOutline.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DownloadOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DownloadOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ErrorOutline.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ErrorOutline.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/InfoOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/InfoOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NotificationsNoneOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NotificationsNoneOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PaletteOutlined.js +25 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PaletteOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestoreOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestoreOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SaveOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SaveOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UploadFileOutlined.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UploadFileOutlined.js.map +1 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/WarningAmberRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/WarningAmberRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/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/constants.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-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +49 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +6 -1
- package/dist/types/configs/theme/index.d.ts +6 -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 +1152 -0
- package/dist/types/features/themePreview/configs/previewStorage.d.ts +35 -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 +61 -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 +46 -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/utils/zipUtil.d.ts +1 -0
- package/dist/utils/zipUtil.js +38 -36
- package/dist/utils/zipUtil.js.map +1 -1
- package/features/themePreview.d.ts +3 -0
- package/features/themePreview.js +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
var J = Object.defineProperty;
|
|
2
|
+
var c = (f, o) => J(f, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsx as e, jsxs as r } 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 Q from "../defs/ThemePreviewGridDef.xml.js";
|
|
5
|
+
import K from "../defs/ThemePreviewReadonlyGridDef.xml.js";
|
|
6
|
+
import { OwpDatePicker as Z } from "../../../components/OwpPicker/OwpDatePicker.js";
|
|
7
|
+
import { OwpDataTable as I } from "../../../components/OwpTable/OwpDataTable.js";
|
|
8
|
+
import { OwpFieldTable as A } from "../../../components/OwpTable/OwpFieldTable.js";
|
|
9
|
+
import { OwpTable as j } from "../../../components/OwpTable/OwpTable.js";
|
|
10
|
+
import { OwpStoreProvider as E } from "../../../contexts/OwpStoreProvider.js";
|
|
11
|
+
import { highlightTreeGridCellById as ee } from "../../../utils/treeGridUtil.js";
|
|
12
|
+
import O from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Close.js";
|
|
13
|
+
import { Typography as x, Box as u, Paper as G, TextField as le, Skeleton as k, Button as b, ButtonBase as re, TableHead as ie, TableRow as $, TableCell as D, TableBody as ae, Table as oe, IconButton as te } from "@mui/material";
|
|
14
|
+
import { useTheme as ne, alpha as F } from "@mui/material/styles";
|
|
15
|
+
import { enqueueSnackbar as de, closeSnackbar as z, SnackbarContent as ce } from "notistack";
|
|
16
|
+
import { memo as g } from "react";
|
|
17
|
+
import { getThemePreviewFieldTableSx as L, getThemePreviewFieldTableTitleSx as se, tableFieldPreviewLayout as he, tableFieldPreviewData as xe, getThemePreviewFieldTableCellSx as fe, getThemePreviewBasicTableSx as me, tablePreviewRows as pe, tablePreviewHeaders as V, getThemePreviewDataTableSx as ue, dataTablePreviewRows as U, dataTablePreviewHeadCells as X, gridCanvasPreviewRows as _, gridStyledTablePreviewRows as we, gridStyledDataTablePreviewRows as ve, previewNoop as y, previewChromeBorder as B, previewInnerCardSx as Y, searchHeaderPreviewData as be, previewSectionCardClassName as ge, gridPreviewColumnLabels as Te, gridPreviewRows as ye, gridPreviewBodyText as Se } from "./themePreviewCanvas.shared.js";
|
|
18
|
+
import { OwpStyleProvider as M } from "../../../components/OwpStyleProvider/OwpStyleProvider.js";
|
|
19
|
+
import { OwpTreeGrid as H } from "../../../components/OwpTreeGrid/OwpTreeGrid.js";
|
|
20
|
+
import { OwpSearchFilter as Re } from "../../../components/OwpSearchFilter/OwpSearchFilter.js";
|
|
21
|
+
import { OwpYesNoSelector as Ce } from "../../../components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
22
|
+
import { OwpPageContent as Ne } from "../../../components/OwpPageContent/OwpPageContent.js";
|
|
23
|
+
import { OwpSection as Pe } from "../../../components/OwpSection/OwpSection.js";
|
|
24
|
+
function S({
|
|
25
|
+
children: f,
|
|
26
|
+
fillContentHeight: o = !1,
|
|
27
|
+
gapClassName: t = "gap-16",
|
|
28
|
+
paperClassName: n = ge,
|
|
29
|
+
sx: a,
|
|
30
|
+
title: l
|
|
31
|
+
}) {
|
|
32
|
+
const s = l != null && l !== "";
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
34
|
+
G,
|
|
35
|
+
{
|
|
36
|
+
className: n,
|
|
37
|
+
sx: {
|
|
38
|
+
...Y,
|
|
39
|
+
...a
|
|
40
|
+
},
|
|
41
|
+
children: /* @__PURE__ */ r(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: `flex flex-col ${s ? t : ""} ${o ? "min-h-0 flex-1" : ""}`,
|
|
45
|
+
children: [
|
|
46
|
+
s ? /* @__PURE__ */ e(x, { variant: "subtitle1", fontWeight: 700, children: l }) : null,
|
|
47
|
+
f
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
c(S, "PreviewSectionCard");
|
|
55
|
+
const Je = g(/* @__PURE__ */ c(function({
|
|
56
|
+
buttonPreviewItems: o,
|
|
57
|
+
mainTextSecondary: t,
|
|
58
|
+
previewSectionCardSx: n
|
|
59
|
+
}) {
|
|
60
|
+
return /* @__PURE__ */ e(S, { title: "Buttons", sx: n, children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-12", children: [
|
|
61
|
+
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-12", children: [
|
|
62
|
+
/* @__PURE__ */ e(x, { variant: "caption", sx: { minWidth: 56, color: t }, children: "contained" }),
|
|
63
|
+
o.map(({ label: a, color: l, previewContrastColor: s }) => /* @__PURE__ */ e(
|
|
64
|
+
b,
|
|
65
|
+
{
|
|
66
|
+
variant: "contained",
|
|
67
|
+
sx: {
|
|
68
|
+
backgroundColor: l,
|
|
69
|
+
color: s
|
|
70
|
+
},
|
|
71
|
+
children: a
|
|
72
|
+
},
|
|
73
|
+
`contained-${a}`
|
|
74
|
+
))
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-12", children: [
|
|
77
|
+
/* @__PURE__ */ e(x, { variant: "caption", sx: { minWidth: 56, color: t }, children: "outlined" }),
|
|
78
|
+
o.map(({ label: a, color: l }) => /* @__PURE__ */ e(
|
|
79
|
+
b,
|
|
80
|
+
{
|
|
81
|
+
variant: "outlined",
|
|
82
|
+
sx: {
|
|
83
|
+
borderColor: F(l, 0.52),
|
|
84
|
+
color: l,
|
|
85
|
+
"&:hover": {
|
|
86
|
+
borderColor: l,
|
|
87
|
+
backgroundColor: F(l, 0.08)
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
children: a
|
|
91
|
+
},
|
|
92
|
+
`outlined-${a}`
|
|
93
|
+
))
|
|
94
|
+
] })
|
|
95
|
+
] }) });
|
|
96
|
+
}, "ThemePreviewButtonsSection2")), Qe = g(/* @__PURE__ */ c(function({
|
|
97
|
+
previewSectionCardSx: o,
|
|
98
|
+
previewSnackbarKeysRef: t,
|
|
99
|
+
snackbarAnchorOrigin: n,
|
|
100
|
+
snackbarAutoHideDuration: a,
|
|
101
|
+
snackbarPreviewAnchorHorizontal: l,
|
|
102
|
+
snackbarPreviewAnchorVertical: s,
|
|
103
|
+
snackbarPreviewFontSize: m,
|
|
104
|
+
snackbarPreviewItems: h,
|
|
105
|
+
snackbarPreviewLineHeight: i,
|
|
106
|
+
snackbarPreviewMaxSnack: d
|
|
107
|
+
}) {
|
|
108
|
+
const p = ne(), w = /* @__PURE__ */ c((R, T, C, v, N, P) => {
|
|
109
|
+
const q = de(T, {
|
|
110
|
+
anchorOrigin: n,
|
|
111
|
+
autoHideDuration: a,
|
|
112
|
+
variant: R,
|
|
113
|
+
content: /* @__PURE__ */ c((W) => /* @__PURE__ */ e(
|
|
114
|
+
ce,
|
|
115
|
+
{
|
|
116
|
+
role: "alert",
|
|
117
|
+
style: {
|
|
118
|
+
backgroundColor: C,
|
|
119
|
+
borderRadius: `${p.shape.borderRadius}px`,
|
|
120
|
+
boxShadow: p.shadows[2],
|
|
121
|
+
color: v,
|
|
122
|
+
fontSize: m,
|
|
123
|
+
lineHeight: i,
|
|
124
|
+
overflow: "hidden",
|
|
125
|
+
padding: 0
|
|
126
|
+
},
|
|
127
|
+
children: /* @__PURE__ */ r(
|
|
128
|
+
u,
|
|
129
|
+
{
|
|
130
|
+
sx: {
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
color: "inherit",
|
|
133
|
+
display: "flex",
|
|
134
|
+
minWidth: 0,
|
|
135
|
+
px: 2,
|
|
136
|
+
py: 1.25,
|
|
137
|
+
width: "100%"
|
|
138
|
+
},
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ r(
|
|
141
|
+
u,
|
|
142
|
+
{
|
|
143
|
+
sx: {
|
|
144
|
+
alignItems: "center",
|
|
145
|
+
color: "inherit",
|
|
146
|
+
display: "flex",
|
|
147
|
+
flex: 1,
|
|
148
|
+
gap: 1.25,
|
|
149
|
+
minWidth: 0
|
|
150
|
+
},
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ e(
|
|
153
|
+
u,
|
|
154
|
+
{
|
|
155
|
+
sx: {
|
|
156
|
+
alignItems: "center",
|
|
157
|
+
color: "inherit",
|
|
158
|
+
display: "flex",
|
|
159
|
+
flexShrink: 0,
|
|
160
|
+
"& .MuiSvgIcon-root": {
|
|
161
|
+
fontSize: 20
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
children: P
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ e(
|
|
168
|
+
u,
|
|
169
|
+
{
|
|
170
|
+
sx: {
|
|
171
|
+
color: "inherit",
|
|
172
|
+
flex: 1,
|
|
173
|
+
fontSize: m,
|
|
174
|
+
lineHeight: i,
|
|
175
|
+
minWidth: 0
|
|
176
|
+
},
|
|
177
|
+
children: T
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ e(
|
|
184
|
+
te,
|
|
185
|
+
{
|
|
186
|
+
"aria-label": "close",
|
|
187
|
+
onClick: /* @__PURE__ */ c(() => z(W), "onClick"),
|
|
188
|
+
size: "small",
|
|
189
|
+
sx: {
|
|
190
|
+
color: "inherit",
|
|
191
|
+
flexShrink: 0,
|
|
192
|
+
ml: 1,
|
|
193
|
+
"&:hover": {
|
|
194
|
+
backgroundColor: N
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
children: /* @__PURE__ */ e(O, { fontSize: "small" })
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
), "content")
|
|
205
|
+
});
|
|
206
|
+
for (t.current.push(q); t.current.length > d; ) {
|
|
207
|
+
const W = t.current.shift();
|
|
208
|
+
W && z(W);
|
|
209
|
+
}
|
|
210
|
+
}, "openPreviewSnackbar");
|
|
211
|
+
return /* @__PURE__ */ e(
|
|
212
|
+
S,
|
|
213
|
+
{
|
|
214
|
+
fillContentHeight: !0,
|
|
215
|
+
paperClassName: "flex min-h-0 flex-1 flex-col rounded-lg p-14",
|
|
216
|
+
title: "Snackbars",
|
|
217
|
+
sx: o,
|
|
218
|
+
children: /* @__PURE__ */ r("div", { className: "flex min-h-0 flex-1 flex-col gap-10", children: [
|
|
219
|
+
/* @__PURE__ */ e(x, { variant: "body2", color: "text.secondary", children: "스넥바를 클릭하면 실제 동작을 바로 확인할 수 있습니다." }),
|
|
220
|
+
/* @__PURE__ */ e(
|
|
221
|
+
"div",
|
|
222
|
+
{
|
|
223
|
+
className: "flex min-h-0 flex-1 flex-col gap-10",
|
|
224
|
+
style: {
|
|
225
|
+
alignItems: l === "left" ? "flex-start" : l === "right" ? "flex-end" : "center",
|
|
226
|
+
justifyContent: s === "bottom" ? "flex-end" : "flex-start"
|
|
227
|
+
},
|
|
228
|
+
children: h.map(
|
|
229
|
+
({ key: R, actionHoverColor: T, backgroundColor: C, color: v, icon: N, message: P }) => /* @__PURE__ */ r(
|
|
230
|
+
re,
|
|
231
|
+
{
|
|
232
|
+
className: "flex items-center justify-between gap-10 px-16 py-10 text-left",
|
|
233
|
+
onClick: /* @__PURE__ */ c(() => {
|
|
234
|
+
w(
|
|
235
|
+
R,
|
|
236
|
+
P,
|
|
237
|
+
C,
|
|
238
|
+
v,
|
|
239
|
+
T,
|
|
240
|
+
N
|
|
241
|
+
);
|
|
242
|
+
}, "onClick"),
|
|
243
|
+
style: {
|
|
244
|
+
backgroundColor: C,
|
|
245
|
+
borderRadius: 8,
|
|
246
|
+
boxShadow: "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)",
|
|
247
|
+
color: v,
|
|
248
|
+
width: "min(100%, 360px)"
|
|
249
|
+
},
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1 items-center gap-10", children: [
|
|
252
|
+
/* @__PURE__ */ e("div", { className: "flex shrink-0 items-center", style: { color: v }, children: N }),
|
|
253
|
+
/* @__PURE__ */ e(
|
|
254
|
+
x,
|
|
255
|
+
{
|
|
256
|
+
variant: "body2",
|
|
257
|
+
className: "truncate",
|
|
258
|
+
sx: {
|
|
259
|
+
color: "inherit",
|
|
260
|
+
...m && {
|
|
261
|
+
fontSize: m
|
|
262
|
+
},
|
|
263
|
+
...i && {
|
|
264
|
+
lineHeight: i
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
children: P
|
|
268
|
+
}
|
|
269
|
+
)
|
|
270
|
+
] }),
|
|
271
|
+
/* @__PURE__ */ e(
|
|
272
|
+
"div",
|
|
273
|
+
{
|
|
274
|
+
className: "flex h-28 w-28 shrink-0 items-center justify-center rounded-full",
|
|
275
|
+
style: {
|
|
276
|
+
backgroundColor: T,
|
|
277
|
+
color: v
|
|
278
|
+
},
|
|
279
|
+
children: /* @__PURE__ */ e(O, { sx: { fontSize: 16 } })
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
R
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
] })
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
}, "ThemePreviewSnackbarsSection2")), Ke = g(/* @__PURE__ */ c(function({
|
|
293
|
+
gridPreviewTable: o,
|
|
294
|
+
mainBackground: t,
|
|
295
|
+
mainPaper: n,
|
|
296
|
+
mainText: a,
|
|
297
|
+
mainThemePreviewStoreState: l,
|
|
298
|
+
previewSectionCardSx: s,
|
|
299
|
+
searchHeaderPreviewDate: m,
|
|
300
|
+
searchHeaderPreviewNumber: h,
|
|
301
|
+
searchHeaderPreviewVersionKey: i,
|
|
302
|
+
tablePreviewCanTableRadiusZero: d,
|
|
303
|
+
tableTheme: p,
|
|
304
|
+
tableThemePreviewVersionKey: w
|
|
305
|
+
}) {
|
|
306
|
+
return /* @__PURE__ */ e(S, { paperClassName: "overflow-hidden rounded-lg p-0", sx: s, children: /* @__PURE__ */ e(
|
|
307
|
+
E,
|
|
308
|
+
{
|
|
309
|
+
preloadedState: l,
|
|
310
|
+
children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ r(
|
|
311
|
+
u,
|
|
312
|
+
{
|
|
313
|
+
className: "flex flex-col gap-16 p-16",
|
|
314
|
+
sx: {
|
|
315
|
+
backgroundColor: t,
|
|
316
|
+
color: a,
|
|
317
|
+
"& .OwpPageContent-header .MuiDivider-root": {
|
|
318
|
+
my: 1.5
|
|
319
|
+
},
|
|
320
|
+
"& form": {
|
|
321
|
+
width: "100%"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ e(
|
|
326
|
+
G,
|
|
327
|
+
{
|
|
328
|
+
className: "w-full",
|
|
329
|
+
sx: {
|
|
330
|
+
backgroundColor: "transparent",
|
|
331
|
+
boxShadow: "none"
|
|
332
|
+
},
|
|
333
|
+
children: /* @__PURE__ */ r(Re, { onSubmit: y, onReset: y, children: [
|
|
334
|
+
/* @__PURE__ */ e(
|
|
335
|
+
Z,
|
|
336
|
+
{
|
|
337
|
+
label: "작업일자",
|
|
338
|
+
value: m,
|
|
339
|
+
variant: "standard",
|
|
340
|
+
onChange: y
|
|
341
|
+
}
|
|
342
|
+
),
|
|
343
|
+
/* @__PURE__ */ e(
|
|
344
|
+
Ce,
|
|
345
|
+
{
|
|
346
|
+
label: "사용여부",
|
|
347
|
+
yesLabel: "사용",
|
|
348
|
+
noLabel: "미사용",
|
|
349
|
+
value: "Y",
|
|
350
|
+
onChange: y
|
|
351
|
+
}
|
|
352
|
+
),
|
|
353
|
+
/* @__PURE__ */ e(
|
|
354
|
+
le,
|
|
355
|
+
{
|
|
356
|
+
label: "번호",
|
|
357
|
+
variant: "standard",
|
|
358
|
+
value: h,
|
|
359
|
+
onChange: y
|
|
360
|
+
}
|
|
361
|
+
)
|
|
362
|
+
] })
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ e(
|
|
366
|
+
G,
|
|
367
|
+
{
|
|
368
|
+
className: "w-full rounded-lg p-16",
|
|
369
|
+
sx: {
|
|
370
|
+
...Y,
|
|
371
|
+
backgroundColor: n,
|
|
372
|
+
border: `1px solid ${B}`
|
|
373
|
+
},
|
|
374
|
+
children: /* @__PURE__ */ e(
|
|
375
|
+
Ne,
|
|
376
|
+
{
|
|
377
|
+
title: "제목",
|
|
378
|
+
centerSlot: /* @__PURE__ */ e("div", { className: "w-[240px]", children: /* @__PURE__ */ e(
|
|
379
|
+
u,
|
|
380
|
+
{
|
|
381
|
+
sx: L(
|
|
382
|
+
p,
|
|
383
|
+
d
|
|
384
|
+
),
|
|
385
|
+
children: /* @__PURE__ */ e(
|
|
386
|
+
A,
|
|
387
|
+
{
|
|
388
|
+
canUseTreeGridStyle: !1,
|
|
389
|
+
cellSx: { py: 0.5, textAlign: "center" },
|
|
390
|
+
data: be,
|
|
391
|
+
layout: [[{ title: "상태", key: "previewValue" }]],
|
|
392
|
+
titleSx: { py: 0.5, textAlign: "center" },
|
|
393
|
+
titleWidth: 92
|
|
394
|
+
},
|
|
395
|
+
`search-header-field-table-${w}`
|
|
396
|
+
)
|
|
397
|
+
}
|
|
398
|
+
) }),
|
|
399
|
+
actions: /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-8", children: [
|
|
400
|
+
/* @__PURE__ */ e(b, { color: "primary", size: "small", variant: "contained", children: "추가" }),
|
|
401
|
+
/* @__PURE__ */ e(b, { color: "secondary", size: "small", variant: "contained", children: "수정" }),
|
|
402
|
+
/* @__PURE__ */ e(b, { color: "error", size: "small", variant: "contained", children: "삭제" }),
|
|
403
|
+
/* @__PURE__ */ e(b, { color: "success", size: "small", variant: "contained", children: "다운로드" })
|
|
404
|
+
] }),
|
|
405
|
+
children: /* @__PURE__ */ r("div", { className: "flex min-h-0 flex-1 flex-col gap-12", children: [
|
|
406
|
+
o,
|
|
407
|
+
/* @__PURE__ */ e(Pe, { className: "min-h-0 flex-1", title: "섹션 제목", children: /* @__PURE__ */ r(
|
|
408
|
+
"div",
|
|
409
|
+
{
|
|
410
|
+
className: "flex min-h-0 flex-1 flex-col gap-10 pt-12",
|
|
411
|
+
style: { borderTop: `1px solid ${B}` },
|
|
412
|
+
children: [
|
|
413
|
+
/* @__PURE__ */ e(k, { animation: !1, height: 16, variant: "rounded", width: "100%" }),
|
|
414
|
+
/* @__PURE__ */ e(k, { animation: !1, height: 16, variant: "rounded", width: "78%" }),
|
|
415
|
+
/* @__PURE__ */ e(k, { animation: !1, className: "flex-1", variant: "rounded", width: "100%" })
|
|
416
|
+
]
|
|
417
|
+
}
|
|
418
|
+
) })
|
|
419
|
+
] })
|
|
420
|
+
}
|
|
421
|
+
)
|
|
422
|
+
}
|
|
423
|
+
)
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
) })
|
|
427
|
+
},
|
|
428
|
+
`search-header-${i}`
|
|
429
|
+
) });
|
|
430
|
+
}, "ThemePreviewSearchHeaderSection2")), Ze = g(/* @__PURE__ */ c(function({
|
|
431
|
+
editableThemePreviewGridId: o,
|
|
432
|
+
mainGridChangedBackgroundColor: t,
|
|
433
|
+
mainThemePreviewStoreKey: n,
|
|
434
|
+
mainThemePreviewStoreState: a,
|
|
435
|
+
previewSectionCardSx: l,
|
|
436
|
+
readonlyThemePreviewGridId: s
|
|
437
|
+
}) {
|
|
438
|
+
return /* @__PURE__ */ e(S, { title: "Grid", sx: l, children: /* @__PURE__ */ e(
|
|
439
|
+
E,
|
|
440
|
+
{
|
|
441
|
+
preloadedState: a,
|
|
442
|
+
children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ r(
|
|
443
|
+
"div",
|
|
444
|
+
{
|
|
445
|
+
className: "flex min-h-0 flex-col gap-12",
|
|
446
|
+
style: {
|
|
447
|
+
height: "min(640px, calc(100vh - 360px))"
|
|
448
|
+
},
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ r("div", { className: "grid min-h-0 flex-1 grid-rows-[minmax(0,1fr)_minmax(0,1fr)] gap-12", children: [
|
|
451
|
+
/* @__PURE__ */ e(
|
|
452
|
+
H,
|
|
453
|
+
{
|
|
454
|
+
data: _,
|
|
455
|
+
height: "100%",
|
|
456
|
+
id: o,
|
|
457
|
+
layoutData: Q,
|
|
458
|
+
onReady: /* @__PURE__ */ c((i) => {
|
|
459
|
+
if (!i)
|
|
460
|
+
return;
|
|
461
|
+
const d = i.GetFirst(), p = d ? i.GetNext(d) : null, w = p ? i.GetNext(p) : d;
|
|
462
|
+
d && (i.SelectRow(d, 1), p ? i.Focus(p, "OWP_THEME_PREVIEW.STATUS") : i.Focus(d, "OWP_THEME_PREVIEW.STATUS"), w && (ee(o, {
|
|
463
|
+
row: w,
|
|
464
|
+
col: "OWP_THEME_PREVIEW.REMARK",
|
|
465
|
+
backgroundColor: t
|
|
466
|
+
}), i.RefreshRow(w)));
|
|
467
|
+
}, "handleEditableThemePreviewGridReady")
|
|
468
|
+
},
|
|
469
|
+
o
|
|
470
|
+
),
|
|
471
|
+
/* @__PURE__ */ e(
|
|
472
|
+
H,
|
|
473
|
+
{
|
|
474
|
+
data: _,
|
|
475
|
+
height: "100%",
|
|
476
|
+
id: s,
|
|
477
|
+
layoutData: K,
|
|
478
|
+
onReady: /* @__PURE__ */ c((i) => {
|
|
479
|
+
if (!i)
|
|
480
|
+
return;
|
|
481
|
+
const d = i.GetFirst();
|
|
482
|
+
d && i.Focus(d, "OWP_THEME_PREVIEW.WORK_DATE");
|
|
483
|
+
}, "handleReadonlyThemePreviewGridReady")
|
|
484
|
+
},
|
|
485
|
+
s
|
|
486
|
+
)
|
|
487
|
+
] }),
|
|
488
|
+
/* @__PURE__ */ r("div", { className: "grid shrink-0 grid-cols-2 gap-12", children: [
|
|
489
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
490
|
+
/* @__PURE__ */ e(x, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Basic Table (Grid Style)" }),
|
|
491
|
+
/* @__PURE__ */ e(
|
|
492
|
+
j,
|
|
493
|
+
{
|
|
494
|
+
canUseTreeGridStyle: !0,
|
|
495
|
+
headers: V,
|
|
496
|
+
rows: we
|
|
497
|
+
}
|
|
498
|
+
)
|
|
499
|
+
] }),
|
|
500
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
501
|
+
/* @__PURE__ */ e(x, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Data Table (Grid Style)" }),
|
|
502
|
+
/* @__PURE__ */ e(
|
|
503
|
+
I,
|
|
504
|
+
{
|
|
505
|
+
canCheckbox: !1,
|
|
506
|
+
canTotalCountRow: !1,
|
|
507
|
+
canUseOrderBy: !1,
|
|
508
|
+
canUseTreeGridStyle: !0,
|
|
509
|
+
fixedRowCount: 1,
|
|
510
|
+
headCells: X,
|
|
511
|
+
rows: ve,
|
|
512
|
+
sx: {
|
|
513
|
+
"& .MuiTableBody-root > .MuiTableRow-root, & .MuiTableBody-root > .MuiTableRow-root:hover, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover": {
|
|
514
|
+
backgroundColor: "transparent"
|
|
515
|
+
},
|
|
516
|
+
"& .MuiTableBody-root > .MuiTableRow-root > .MuiTableCell-root": {
|
|
517
|
+
backgroundColor: "transparent"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
)
|
|
522
|
+
] })
|
|
523
|
+
] })
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
) })
|
|
527
|
+
},
|
|
528
|
+
`grid-preview-${n}`
|
|
529
|
+
) });
|
|
530
|
+
}, "ThemePreviewGridSection2")), el = g(/* @__PURE__ */ c(function({
|
|
531
|
+
mainThemePreviewStoreState: o,
|
|
532
|
+
previewSectionCardSx: t,
|
|
533
|
+
tablePreviewCanTableRadiusZero: n,
|
|
534
|
+
tableTheme: a,
|
|
535
|
+
tableThemePreviewVersionKey: l
|
|
536
|
+
}) {
|
|
537
|
+
return /* @__PURE__ */ e(S, { title: "Tables", sx: t, children: /* @__PURE__ */ e(
|
|
538
|
+
E,
|
|
539
|
+
{
|
|
540
|
+
preloadedState: o,
|
|
541
|
+
children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-14", children: [
|
|
542
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
543
|
+
/* @__PURE__ */ e(x, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Field Table" }),
|
|
544
|
+
/* @__PURE__ */ e(u, { sx: L(a, n), children: /* @__PURE__ */ e(
|
|
545
|
+
A,
|
|
546
|
+
{
|
|
547
|
+
canUseTreeGridStyle: !1,
|
|
548
|
+
cellSx: fe(a),
|
|
549
|
+
data: xe,
|
|
550
|
+
layout: he,
|
|
551
|
+
titleSx: se(a),
|
|
552
|
+
titleWidth: 108
|
|
553
|
+
},
|
|
554
|
+
`field-table-${l}`
|
|
555
|
+
) })
|
|
556
|
+
] }),
|
|
557
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
558
|
+
/* @__PURE__ */ e(x, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Table" }),
|
|
559
|
+
/* @__PURE__ */ e(u, { sx: me(a, n), children: /* @__PURE__ */ e(
|
|
560
|
+
j,
|
|
561
|
+
{
|
|
562
|
+
canUseTreeGridStyle: !1,
|
|
563
|
+
headers: V,
|
|
564
|
+
rows: pe
|
|
565
|
+
},
|
|
566
|
+
`basic-table-${l}`
|
|
567
|
+
) })
|
|
568
|
+
] }),
|
|
569
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: [
|
|
570
|
+
/* @__PURE__ */ e(x, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Data Table" }),
|
|
571
|
+
/* @__PURE__ */ e(u, { sx: ue(a, n), children: /* @__PURE__ */ e(
|
|
572
|
+
I,
|
|
573
|
+
{
|
|
574
|
+
canCheckbox: !1,
|
|
575
|
+
canTableRadiusZero: n,
|
|
576
|
+
canTotalCountRow: !1,
|
|
577
|
+
canUseOrderBy: !1,
|
|
578
|
+
canUseTreeGridStyle: !1,
|
|
579
|
+
fixedRowCount: 2,
|
|
580
|
+
headCells: X,
|
|
581
|
+
rows: U,
|
|
582
|
+
selected: U.slice(0, 1)
|
|
583
|
+
},
|
|
584
|
+
`data-table-${l}`
|
|
585
|
+
) })
|
|
586
|
+
] })
|
|
587
|
+
] }) })
|
|
588
|
+
},
|
|
589
|
+
`table-preview-${l}`
|
|
590
|
+
) });
|
|
591
|
+
}, "ThemePreviewTablesSection2")), ll = g(/* @__PURE__ */ c(function({
|
|
592
|
+
gridBodyBorder: o,
|
|
593
|
+
layoutPreviewGridCellBackground: t,
|
|
594
|
+
layoutPreviewGridCellFontSize: n,
|
|
595
|
+
layoutPreviewGridHeaderBackground: a,
|
|
596
|
+
layoutPreviewGridHeaderBorder: l,
|
|
597
|
+
layoutPreviewGridHeaderColor: s,
|
|
598
|
+
layoutPreviewGridHeaderFontSize: m
|
|
599
|
+
}) {
|
|
600
|
+
return /* @__PURE__ */ e(
|
|
601
|
+
"div",
|
|
602
|
+
{
|
|
603
|
+
className: "overflow-hidden border border-solid",
|
|
604
|
+
style: {
|
|
605
|
+
borderColor: B
|
|
606
|
+
},
|
|
607
|
+
children: /* @__PURE__ */ r(
|
|
608
|
+
oe,
|
|
609
|
+
{
|
|
610
|
+
size: "small",
|
|
611
|
+
sx: {
|
|
612
|
+
tableLayout: "fixed"
|
|
613
|
+
},
|
|
614
|
+
children: [
|
|
615
|
+
/* @__PURE__ */ e(ie, { children: /* @__PURE__ */ e($, { children: Te.map((h) => /* @__PURE__ */ e(
|
|
616
|
+
D,
|
|
617
|
+
{
|
|
618
|
+
sx: {
|
|
619
|
+
backgroundColor: a,
|
|
620
|
+
borderBottom: `1px solid ${l}`,
|
|
621
|
+
borderRight: `1px solid ${l}`,
|
|
622
|
+
color: s,
|
|
623
|
+
fontSize: m,
|
|
624
|
+
fontWeight: 500,
|
|
625
|
+
px: 1.25,
|
|
626
|
+
py: 1,
|
|
627
|
+
textAlign: "center",
|
|
628
|
+
"&:last-of-type": {
|
|
629
|
+
borderRight: "none"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
children: h
|
|
633
|
+
},
|
|
634
|
+
h
|
|
635
|
+
)) }) }),
|
|
636
|
+
/* @__PURE__ */ e(ae, { children: ye.map((h) => /* @__PURE__ */ e(
|
|
637
|
+
$,
|
|
638
|
+
{
|
|
639
|
+
sx: {
|
|
640
|
+
backgroundColor: t
|
|
641
|
+
},
|
|
642
|
+
children: h.map((i, d) => /* @__PURE__ */ e(
|
|
643
|
+
D,
|
|
644
|
+
{
|
|
645
|
+
sx: {
|
|
646
|
+
borderBottom: `1px solid ${o}`,
|
|
647
|
+
borderRight: `1px solid ${o}`,
|
|
648
|
+
color: Se,
|
|
649
|
+
fontSize: n,
|
|
650
|
+
px: 1.25,
|
|
651
|
+
py: 1,
|
|
652
|
+
textAlign: "center",
|
|
653
|
+
"&:last-of-type": {
|
|
654
|
+
borderRight: "none"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
children: i
|
|
658
|
+
},
|
|
659
|
+
`${i}-${d}`
|
|
660
|
+
))
|
|
661
|
+
},
|
|
662
|
+
h.join("-")
|
|
663
|
+
)) })
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
)
|
|
667
|
+
}
|
|
668
|
+
);
|
|
669
|
+
}, "ThemePreviewGridPreviewTable2"));
|
|
670
|
+
export {
|
|
671
|
+
Je as ThemePreviewButtonsSection,
|
|
672
|
+
ll as ThemePreviewGridPreviewTable,
|
|
673
|
+
Ze as ThemePreviewGridSection,
|
|
674
|
+
Ke as ThemePreviewSearchHeaderSection,
|
|
675
|
+
Qe as ThemePreviewSnackbarsSection,
|
|
676
|
+
el as ThemePreviewTablesSection
|
|
677
|
+
};
|
|
678
|
+
//# sourceMappingURL=ThemePreviewCanvasSections.js.map
|