@owp/core 2.5.52 → 2.5.53
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/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/OwpErrorBoundary/OwpErrorBoundary.js +49 -32
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +142 -143
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +618 -572
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +513 -416
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/theme.js +26 -22
- package/dist/configs/theme.js.map +1 -1
- package/dist/constants/gridTheme.js +40 -29
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/contexts/OwpUiProvider.js +37 -34
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +8 -8
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +27 -27
- package/dist/features/themePreview/components/ThemePreviewColorField.js +4 -4
- package/dist/features/themePreview/components/ThemePreviewControls.js +8 -8
- package/dist/features/themePreview/configs/grid.js +5 -7
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/configs/previewStorage.js +26 -32
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
- package/dist/features/themePreview/configs/settings.js +13 -12
- package/dist/features/themePreview/configs/settings.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +5 -5
- package/dist/features/themePreview/dialogs/index.js +5 -0
- package/dist/features/themePreview/dialogs/index.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -12
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js +48 -37
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
- package/dist/index.js +67 -66
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toggles/ThemePreviewToggle.js +26 -27
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.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/OwpErrorBoundary/OwpErrorBoundary.d.ts +4 -0
- package/dist/types/components/OwpErrorBoundary/index.d.ts +1 -1
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +3 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +2 -0
- package/dist/types/configs/theme/index.d.ts +2 -0
- package/dist/types/constants/gridTheme.d.ts +4 -0
- package/dist/types/contexts/OwpAppContext.d.ts +1 -1
- package/dist/types/features/themePreview/configs/grid.d.ts +2 -4
- package/dist/types/features/themePreview/configs/settings.d.ts +14 -4
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +4 -0
- package/dist/types/types/OwpSettingsTypes.d.ts +7 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/utils/treeGridUtil.js +123 -118
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -2
- package/dist/features/themePreview.js +0 -76
- package/dist/features/themePreview.js.map +0 -1
- package/features/themePreview.d.ts +0 -3
- package/features/themePreview.js +0 -1
|
@@ -12,22 +12,22 @@ import { highlightTreeGridCellById as he } from "../../../utils/treeGridUtil.js"
|
|
|
12
12
|
import A from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Close.js";
|
|
13
13
|
import me from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Search.js";
|
|
14
14
|
import xe from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js";
|
|
15
|
-
import {
|
|
15
|
+
import { TableHead as fe, TableRow as F, TableCell as I, TableBody as pe, Table as ue, Typography as c, Box as v, Paper as D, TextField as E, Skeleton as M, Button as R, ButtonBase as ve, CircularProgress as U, LinearProgress as H, IconButton as ge } from "@mui/material";
|
|
16
16
|
import { useTheme as K, createTheme as be, ThemeProvider as we, alpha as j } from "@mui/material/styles";
|
|
17
17
|
import { enqueueSnackbar as ye, closeSnackbar as L, SnackbarContent as Te } from "notistack";
|
|
18
18
|
import { memo as N, useMemo as Se } from "react";
|
|
19
|
-
import { getThemePreviewFieldTableSx as z, getThemePreviewFieldTableTitleSx as Z, tableFieldPreviewLayout as ee, tableFieldPreviewData as le, getThemePreviewFieldTableCellSx as _, getThemePreviewBasicTableSx as
|
|
19
|
+
import { previewChromeBorder as P, gridPreviewColumnLabels as Ne, gridPreviewRows as Ce, gridPreviewBodyText as Re, getThemePreviewFieldTableSx as z, getThemePreviewFieldTableTitleSx as Z, tableFieldPreviewLayout as ee, tableFieldPreviewData as le, getThemePreviewFieldTableCellSx as _, getThemePreviewBasicTableSx as Pe, tablePreviewRows as We, tablePreviewHeaders as re, getThemePreviewDataTableSx as ke, dataTablePreviewRows as V, dataTablePreviewHeadCells as ie, gridCanvasPreviewRows as X, gridStyledTablePreviewRows as Ee, gridStyledDataTablePreviewRows as Be, previewNoop as T, previewInnerCardSx as ae, searchHeaderPreviewData as $e, previewSectionCardClassName as Ge } from "./themePreviewCanvas.shared.js";
|
|
20
20
|
import { OwpStyleProvider as G } from "../../../components/OwpStyleProvider/OwpStyleProvider.js";
|
|
21
21
|
import { OwpTreeGrid as Y } from "../../../components/OwpTreeGrid/OwpTreeGrid.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { OwpPageContent as De } from "../../../components/OwpPageContent/OwpPageContent.js";
|
|
22
|
+
import { OwpYesNoSelector as Me } from "../../../components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
23
|
+
import { OwpPageContent as Oe } from "../../../components/OwpPageContent/OwpPageContent.js";
|
|
25
24
|
import { OwpSection as q } from "../../../components/OwpSection/OwpSection.js";
|
|
25
|
+
import { OwpSearchFilter as De } from "../../../components/OwpSearchFilter/OwpSearchFilter.js";
|
|
26
26
|
function y({
|
|
27
27
|
children: s,
|
|
28
28
|
fillContentHeight: r = !1,
|
|
29
29
|
gapClassName: i = "gap-16",
|
|
30
|
-
paperClassName: a =
|
|
30
|
+
paperClassName: a = Ge,
|
|
31
31
|
sx: o,
|
|
32
32
|
title: n
|
|
33
33
|
}) {
|
|
@@ -138,10 +138,10 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
138
138
|
/* @__PURE__ */ e(xe, { color: "primary" }),
|
|
139
139
|
/* @__PURE__ */ e(c, { variant: "body2", color: "primary.main", fontWeight: 600, children: "primary" })
|
|
140
140
|
] }),
|
|
141
|
-
/* @__PURE__ */ e(
|
|
141
|
+
/* @__PURE__ */ e(U, { color: "primary", size: 18, thickness: 5 })
|
|
142
142
|
] }),
|
|
143
143
|
/* @__PURE__ */ e(
|
|
144
|
-
|
|
144
|
+
H,
|
|
145
145
|
{
|
|
146
146
|
color: "primary",
|
|
147
147
|
sx: { borderRadius: 999, height: 6, width: "100%" },
|
|
@@ -154,10 +154,10 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
154
154
|
/* @__PURE__ */ e(me, { color: "secondary" }),
|
|
155
155
|
/* @__PURE__ */ e(c, { variant: "body2", color: "secondary.main", fontWeight: 600, children: "secondary" })
|
|
156
156
|
] }),
|
|
157
|
-
/* @__PURE__ */ e(
|
|
157
|
+
/* @__PURE__ */ e(U, { color: "secondary", size: 18, thickness: 5 })
|
|
158
158
|
] }),
|
|
159
159
|
/* @__PURE__ */ e(
|
|
160
|
-
|
|
160
|
+
H,
|
|
161
161
|
{
|
|
162
162
|
color: "secondary",
|
|
163
163
|
sx: { borderRadius: 999, height: 6, width: "100%" },
|
|
@@ -395,7 +395,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
395
395
|
},
|
|
396
396
|
children: f.map(
|
|
397
397
|
({ key: S, actionHoverColor: u, backgroundColor: b, color: w, icon: C, message: W }) => /* @__PURE__ */ l(
|
|
398
|
-
|
|
398
|
+
ve,
|
|
399
399
|
{
|
|
400
400
|
className: "flex items-center justify-between gap-10 px-16 py-10 text-left",
|
|
401
401
|
onClick: /* @__PURE__ */ d(() => {
|
|
@@ -500,7 +500,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
500
500
|
backgroundColor: "transparent",
|
|
501
501
|
boxShadow: "none"
|
|
502
502
|
},
|
|
503
|
-
children: /* @__PURE__ */ l(
|
|
503
|
+
children: /* @__PURE__ */ l(De, { onSubmit: T, onReset: T, children: [
|
|
504
504
|
/* @__PURE__ */ e(
|
|
505
505
|
se,
|
|
506
506
|
{
|
|
@@ -511,7 +511,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
511
511
|
}
|
|
512
512
|
),
|
|
513
513
|
/* @__PURE__ */ e(
|
|
514
|
-
|
|
514
|
+
Me,
|
|
515
515
|
{
|
|
516
516
|
label: "사용여부",
|
|
517
517
|
yesLabel: "사용",
|
|
@@ -542,7 +542,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
542
542
|
border: `1px solid ${P}`
|
|
543
543
|
},
|
|
544
544
|
children: /* @__PURE__ */ e(
|
|
545
|
-
|
|
545
|
+
Oe,
|
|
546
546
|
{
|
|
547
547
|
title: "제목",
|
|
548
548
|
centerSlot: /* @__PURE__ */ e("div", { className: "w-[240px]", children: /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
|
|
@@ -560,7 +560,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
560
560
|
...Array.isArray(u) ? u : u ? [u] : [],
|
|
561
561
|
{ py: 0.5, textAlign: "center" }
|
|
562
562
|
],
|
|
563
|
-
data:
|
|
563
|
+
data: $e,
|
|
564
564
|
layout: [[{ title: "상태", key: "previewValue" }]],
|
|
565
565
|
titleSx: [
|
|
566
566
|
...Array.isArray(b) ? b : b ? [b] : [],
|
|
@@ -741,7 +741,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
741
741
|
{
|
|
742
742
|
canUseTreeGridStyle: !0,
|
|
743
743
|
headers: re,
|
|
744
|
-
rows:
|
|
744
|
+
rows: Ee
|
|
745
745
|
}
|
|
746
746
|
)
|
|
747
747
|
] }),
|
|
@@ -756,7 +756,7 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
756
756
|
canUseTreeGridStyle: !0,
|
|
757
757
|
fixedRowCount: 1,
|
|
758
758
|
headCells: ie,
|
|
759
|
-
rows:
|
|
759
|
+
rows: Be,
|
|
760
760
|
sx: {
|
|
761
761
|
"& .MuiTableBody-root > .MuiTableRow-root, & .MuiTableBody-root > .MuiTableRow-root:hover, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected, & .MuiTableBody-root > .MuiTableRow-root.Mui-selected:hover": {
|
|
762
762
|
backgroundColor: "transparent"
|
|
@@ -804,19 +804,19 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
804
804
|
] }),
|
|
805
805
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-8", children: [
|
|
806
806
|
/* @__PURE__ */ e(c, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Table" }),
|
|
807
|
-
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(v, { sx:
|
|
807
|
+
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(v, { sx: Pe(o, a), children: /* @__PURE__ */ e(
|
|
808
808
|
Q,
|
|
809
809
|
{
|
|
810
810
|
canUseTreeGridStyle: !1,
|
|
811
811
|
headers: re,
|
|
812
|
-
rows:
|
|
812
|
+
rows: We
|
|
813
813
|
},
|
|
814
814
|
`basic-table-${n}`
|
|
815
815
|
) }) })
|
|
816
816
|
] }),
|
|
817
817
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-8", children: [
|
|
818
818
|
/* @__PURE__ */ e(c, { variant: "body2", color: "text.secondary", fontWeight: 600, children: "Data Table" }),
|
|
819
|
-
/* @__PURE__ */ e(v, { sx:
|
|
819
|
+
/* @__PURE__ */ e(v, { sx: ke(o, a), children: /* @__PURE__ */ e(
|
|
820
820
|
J,
|
|
821
821
|
{
|
|
822
822
|
canCheckbox: !1,
|
|
@@ -853,15 +853,15 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
853
853
|
borderColor: P
|
|
854
854
|
},
|
|
855
855
|
children: /* @__PURE__ */ l(
|
|
856
|
-
|
|
856
|
+
ue,
|
|
857
857
|
{
|
|
858
858
|
size: "small",
|
|
859
859
|
sx: {
|
|
860
860
|
tableLayout: "fixed"
|
|
861
861
|
},
|
|
862
862
|
children: [
|
|
863
|
-
/* @__PURE__ */ e(
|
|
864
|
-
|
|
863
|
+
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(F, { children: Ne.map((f) => /* @__PURE__ */ e(
|
|
864
|
+
I,
|
|
865
865
|
{
|
|
866
866
|
sx: {
|
|
867
867
|
backgroundColor: o,
|
|
@@ -881,19 +881,19 @@ const nl = N(/* @__PURE__ */ d(function({
|
|
|
881
881
|
},
|
|
882
882
|
f
|
|
883
883
|
)) }) }),
|
|
884
|
-
/* @__PURE__ */ e(
|
|
885
|
-
|
|
884
|
+
/* @__PURE__ */ e(pe, { children: Ce.map((f) => /* @__PURE__ */ e(
|
|
885
|
+
F,
|
|
886
886
|
{
|
|
887
887
|
sx: {
|
|
888
888
|
backgroundColor: i
|
|
889
889
|
},
|
|
890
890
|
children: f.map((t, h) => /* @__PURE__ */ e(
|
|
891
|
-
|
|
891
|
+
I,
|
|
892
892
|
{
|
|
893
893
|
sx: {
|
|
894
894
|
borderBottom: `1px solid ${r}`,
|
|
895
895
|
borderRight: `1px solid ${r}`,
|
|
896
|
-
color:
|
|
896
|
+
color: Re,
|
|
897
897
|
fontSize: a,
|
|
898
898
|
px: 1.25,
|
|
899
899
|
py: 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ne = Object.defineProperty;
|
|
2
2
|
var l = (t, e) => ne(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as o, jsxs as d, Fragment as ae } from "../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
-
import { IconButton as ie, Typography as k, InputAdornment as ue, MenuItem as ce, TextField as Q,
|
|
4
|
+
import { IconButton as ie, Typography as k, InputAdornment as ue, MenuItem as ce, TextField as Q, Button as se, Box as g, Divider as pe, Popover as de } from "@mui/material";
|
|
5
5
|
import me from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestartAltOutlined.js";
|
|
6
6
|
import { blue as he, lightBlue as fe, cyan as xe, teal as ge, green as we, amber as be, orange as Pe, deepOrange as ve, red as ye, pink as Ce, purple as ke, deepPurple as Te, indigo as Ve, grey as Ie, blueGrey as Ee } from "@mui/material/colors";
|
|
7
7
|
import { useState as w, useRef as T, useEffect as b } from "react";
|
|
@@ -207,7 +207,7 @@ function Xe({
|
|
|
207
207
|
H ? /* @__PURE__ */ d("div", { className: "grid grid-cols-2 gap-6", children: [
|
|
208
208
|
/* @__PURE__ */ d(ae, { children: [
|
|
209
209
|
/* @__PURE__ */ o(
|
|
210
|
-
|
|
210
|
+
se,
|
|
211
211
|
{
|
|
212
212
|
size: "small",
|
|
213
213
|
fullWidth: !0,
|
|
@@ -281,7 +281,7 @@ function Xe({
|
|
|
281
281
|
}
|
|
282
282
|
),
|
|
283
283
|
v ? /* @__PURE__ */ o(
|
|
284
|
-
|
|
284
|
+
de,
|
|
285
285
|
{
|
|
286
286
|
open: !0,
|
|
287
287
|
anchorEl: v,
|
|
@@ -310,7 +310,7 @@ function Xe({
|
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
children: /* @__PURE__ */ o("div", { ref: O, className: "flex min-w-0 flex-col gap-10", children: re.map((r, u) => /* @__PURE__ */ d(g, { className: "flex flex-col gap-10", children: [
|
|
313
|
-
u > 0 ? /* @__PURE__ */ o(
|
|
313
|
+
u > 0 ? /* @__PURE__ */ o(pe, { flexItem: !0 }) : null,
|
|
314
314
|
/* @__PURE__ */ d(
|
|
315
315
|
g,
|
|
316
316
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var ae = Object.defineProperty;
|
|
2
2
|
var s = (r, d) => ae(r, "name", { value: d, configurable: !0 });
|
|
3
3
|
import { jsx as o, jsxs as h } from "../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
-
import { MenuItem as W, ButtonBase as se, Typography as x, Paper as A, TextField as
|
|
4
|
+
import { Divider as Z, MenuItem as W, ButtonBase as se, Typography as x, Paper as A, TextField as q, Box as de, IconButton as ce, FormControlLabel as ue, Checkbox as he } from "@mui/material";
|
|
5
5
|
import me from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestartAltOutlined.js";
|
|
6
|
-
import {
|
|
6
|
+
import { createTheme as fe, ThemeProvider as pe } from "@mui/material/styles";
|
|
7
7
|
import { useState as be, useRef as Ce, useMemo as B, useEffect as ge } from "react";
|
|
8
8
|
import { toolbarCuratedPresetKeys as ve, designSystemPresetKeys as xe } from "../configs/presets.js";
|
|
9
9
|
import { ThemePreviewColorField as J } from "./ThemePreviewColorField.js";
|
|
@@ -85,7 +85,7 @@ const Fe = Object.fromEntries(
|
|
|
85
85
|
}, M = "#d8dee8", Se = "#d1d7e0", Ee = "#f8fafc", D = "#ffffff", y = "#111827", v = "#6b7280", Q = "#ffffff", re = "#cbd5e1", Ne = "#94a3b8", z = "#1ea3e6", V = "#111827", Ie = "#f8fafc", We = "#f8fafc", ze = `특별한 경우가 아니면 연동 색상 편집은 권장하지 않습니다.
|
|
86
86
|
|
|
87
87
|
Primary Main 값을 선택하면 Light, Dark, Contrast 값이 자동으로 채워집니다.
|
|
88
|
-
특수한 디자인 조정이 필요한 경우에만 직접 편집하세요.`, je =
|
|
88
|
+
특수한 디자인 조정이 필요한 경우에만 직접 편집하세요.`, je = fe({
|
|
89
89
|
palette: {
|
|
90
90
|
mode: "light",
|
|
91
91
|
background: {
|
|
@@ -232,7 +232,7 @@ function Je({
|
|
|
232
232
|
const l = [];
|
|
233
233
|
return e.key === G && l.push(
|
|
234
234
|
/* @__PURE__ */ o(
|
|
235
|
-
|
|
235
|
+
Z,
|
|
236
236
|
{
|
|
237
237
|
component: "li",
|
|
238
238
|
role: "presentation",
|
|
@@ -390,7 +390,7 @@ function Je({
|
|
|
390
390
|
}) })
|
|
391
391
|
] }, e.key);
|
|
392
392
|
}, "renderFieldGroup");
|
|
393
|
-
return /* @__PURE__ */ o(
|
|
393
|
+
return /* @__PURE__ */ o(pe, { theme: je, children: /* @__PURE__ */ h(de, { sx: Ke, className: "flex h-full min-h-0 flex-col gap-16", children: [
|
|
394
394
|
/* @__PURE__ */ o("div", { className: "grid grid-cols-2 gap-12", children: ee.map((e) => {
|
|
395
395
|
const l = e.key === r;
|
|
396
396
|
return /* @__PURE__ */ o(
|
|
@@ -436,7 +436,7 @@ function Je({
|
|
|
436
436
|
/* @__PURE__ */ o(x, { variant: "h6", sx: { color: y }, children: K == null ? void 0 : K.label }),
|
|
437
437
|
E ? /* @__PURE__ */ h("div", { className: "grid gap-12 md:grid-cols-2", children: [
|
|
438
438
|
/* @__PURE__ */ h(
|
|
439
|
-
|
|
439
|
+
q,
|
|
440
440
|
{
|
|
441
441
|
select: !0,
|
|
442
442
|
label: "Mode",
|
|
@@ -451,7 +451,7 @@ function Je({
|
|
|
451
451
|
}
|
|
452
452
|
),
|
|
453
453
|
/* @__PURE__ */ h(
|
|
454
|
-
|
|
454
|
+
q,
|
|
455
455
|
{
|
|
456
456
|
select: !0,
|
|
457
457
|
label: "Preset",
|
|
@@ -468,7 +468,7 @@ function Je({
|
|
|
468
468
|
] }) : null
|
|
469
469
|
] }) }),
|
|
470
470
|
/* @__PURE__ */ o(
|
|
471
|
-
|
|
471
|
+
Z,
|
|
472
472
|
{
|
|
473
473
|
sx: {
|
|
474
474
|
borderColor: M
|
|
@@ -19,17 +19,15 @@ const o = {
|
|
|
19
19
|
fontSize: "13px"
|
|
20
20
|
},
|
|
21
21
|
state: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
hoverBackgroundColor: "#f5f5f5",
|
|
23
|
+
hoverBorderColor: "#e0e0e0",
|
|
24
24
|
selectedCellBackgroundColor: "#FFFFA6",
|
|
25
25
|
selectedRowBackgroundColor: "#EEE",
|
|
26
26
|
focusedRowBackgroundColor: "#EEE",
|
|
27
|
-
focusedRowBorderColor: "#
|
|
28
|
-
hoverCellBackgroundColor: "#BFDDF2",
|
|
29
|
-
hoverCellBorderColor: "#A7C6E0",
|
|
27
|
+
focusedRowBorderColor: "#f5f5f5",
|
|
30
28
|
focusedCellBackgroundColor: "#FFFFFE",
|
|
31
|
-
focusedCellBorderColor: "#
|
|
32
|
-
editingCellBorderColor: "#
|
|
29
|
+
focusedCellBorderColor: "#92979f",
|
|
30
|
+
editingCellBorderColor: "#252f3e",
|
|
33
31
|
errorCellBorderColor: "#c00000",
|
|
34
32
|
focusedCellRectBackgroundColor: "#D7FFCA"
|
|
35
33
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../../../../src/features/themePreview/configs/grid.ts"],"sourcesContent":null,"names":["defaultGridTheme"],"mappings":"AAKO,MAAMA,IAAmB;AAAA,EAC9B,QAAQ;AAAA,IACN,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,qBAAqB;AAAA,EAAA;AAAA,EAEvB,KAAK;AAAA,IACH,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,EAAA;AAAA,EAExB,MAAM;AAAA,IACJ,UAAU;AAAA,EAAA;AAAA,EAEZ,OAAO;AAAA,IACL,
|
|
1
|
+
{"version":3,"file":"grid.js","sources":["../../../../src/features/themePreview/configs/grid.ts"],"sourcesContent":null,"names":["defaultGridTheme"],"mappings":"AAKO,MAAMA,IAAmB;AAAA,EAC9B,QAAQ;AAAA,IACN,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,qBAAqB;AAAA,EAAA;AAAA,EAEvB,KAAK;AAAA,IACH,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,EAAA;AAAA,EAExB,MAAM;AAAA,IACJ,UAAU;AAAA,EAAA;AAAA,EAEZ,OAAO;AAAA,IACL,sBAAsB;AAAA,IACtB,kBAAkB;AAAA,IAClB,6BAA6B;AAAA,IAC7B,4BAA4B;AAAA,IAC5B,2BAA2B;AAAA,IAC3B,uBAAuB;AAAA,IACvB,4BAA4B;AAAA,IAC5B,wBAAwB;AAAA,IACxB,wBAAwB;AAAA,IACxB,sBAAsB;AAAA,IACtB,gCAAgC;AAAA,EAAA;AAAA,EAElC,UAAU;AAAA,IACR,iBAAiB;AAAA,EAAA;AAAA,EAEnB,SAAS;AAAA,IACP,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,YAAY;AAAA,EAAA;AAEhB;"}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var r = (e, t) => a(e, "name", { value: t, configurable: !0 });
|
|
3
3
|
import { merge as l } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
|
|
4
|
-
import { isObject as
|
|
5
|
-
const i = "theme_preview_applied_settings",
|
|
4
|
+
import { isObject as o } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isObject.js";
|
|
5
|
+
const i = "theme_preview_applied_settings", c = "theme_preview_temporary_state";
|
|
6
6
|
function s() {
|
|
7
7
|
return typeof window > "u" ? null : window.localStorage;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
r(s, "getLocalStorage");
|
|
10
10
|
function u() {
|
|
11
11
|
const e = s(), t = e == null ? void 0 : e.getItem(i);
|
|
12
12
|
if (!t)
|
|
13
13
|
return null;
|
|
14
14
|
try {
|
|
15
|
-
const
|
|
16
|
-
return
|
|
15
|
+
const n = JSON.parse(t);
|
|
16
|
+
return o(n) ? n : null;
|
|
17
17
|
} catch {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
function
|
|
21
|
+
r(u, "getThemePreviewAppliedSettings");
|
|
22
|
+
function f(e) {
|
|
23
23
|
const t = s();
|
|
24
24
|
if (!t)
|
|
25
25
|
return;
|
|
26
|
-
const
|
|
26
|
+
const n = {
|
|
27
27
|
snackbar: e.snackbar,
|
|
28
28
|
snackbarProviderProps: e.snackbarProviderProps,
|
|
29
29
|
theme: e.theme
|
|
30
30
|
};
|
|
31
31
|
t.setItem(
|
|
32
32
|
i,
|
|
33
|
-
JSON.stringify(
|
|
33
|
+
JSON.stringify(n)
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
function
|
|
36
|
+
r(f, "persistThemePreviewAppliedSettings");
|
|
37
|
+
function m() {
|
|
38
38
|
const e = s();
|
|
39
39
|
e && e.removeItem(i);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
r(m, "clearThemePreviewAppliedSettings");
|
|
42
42
|
function T() {
|
|
43
|
-
const e = s(), t = e == null ? void 0 : e.getItem(
|
|
43
|
+
const e = s(), t = e == null ? void 0 : e.getItem(c);
|
|
44
44
|
if (!t)
|
|
45
45
|
return null;
|
|
46
46
|
try {
|
|
47
|
-
const
|
|
48
|
-
return
|
|
47
|
+
const n = JSON.parse(t);
|
|
48
|
+
return o(n) ? n : null;
|
|
49
49
|
} catch {
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
r(T, "getThemePreviewTemporaryState");
|
|
54
54
|
function v(e) {
|
|
55
55
|
const t = s();
|
|
56
56
|
if (!t)
|
|
57
57
|
return;
|
|
58
|
-
const
|
|
58
|
+
const n = {
|
|
59
59
|
draftSettings: e.draftSettings,
|
|
60
60
|
savedAt: e.savedAt,
|
|
61
61
|
saveType: e.saveType,
|
|
@@ -67,28 +67,22 @@ function v(e) {
|
|
|
67
67
|
version: 1
|
|
68
68
|
};
|
|
69
69
|
t.setItem(
|
|
70
|
-
|
|
71
|
-
JSON.stringify(
|
|
70
|
+
c,
|
|
71
|
+
JSON.stringify(n)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
function g() {
|
|
76
|
-
const e = s();
|
|
77
|
-
e && e.removeItem(o);
|
|
78
|
-
}
|
|
79
|
-
n(g, "clearThemePreviewTemporaryState");
|
|
80
|
-
function P(e) {
|
|
74
|
+
r(v, "persistThemePreviewTemporaryState");
|
|
75
|
+
function g(e) {
|
|
81
76
|
const t = u();
|
|
82
77
|
return t ? l({}, e, t) : e;
|
|
83
78
|
}
|
|
84
|
-
|
|
79
|
+
r(g, "getResolvedThemePreviewSettingsConfig");
|
|
85
80
|
export {
|
|
86
|
-
|
|
87
|
-
g as
|
|
88
|
-
P as getResolvedThemePreviewSettingsConfig,
|
|
81
|
+
m as clearThemePreviewAppliedSettings,
|
|
82
|
+
g as getResolvedThemePreviewSettingsConfig,
|
|
89
83
|
u as getThemePreviewAppliedSettings,
|
|
90
84
|
T as getThemePreviewTemporaryState,
|
|
91
|
-
|
|
85
|
+
f as persistThemePreviewAppliedSettings,
|
|
92
86
|
v as persistThemePreviewTemporaryState
|
|
93
87
|
};
|
|
94
88
|
//# sourceMappingURL=previewStorage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewStorage.js","sources":["../../../../src/features/themePreview/configs/previewStorage.ts"],"sourcesContent":null,"names":["THEME_PREVIEW_APPLIED_SETTINGS_STORAGE_KEY","THEME_PREVIEW_TEMPORARY_STATE_STORAGE_KEY","getLocalStorage","__name","getThemePreviewAppliedSettings","storage","rawValue","parsedValue","isObject","persistThemePreviewAppliedSettings","settings","nextAppliedSettings","clearThemePreviewAppliedSettings","getThemePreviewTemporaryState","persistThemePreviewTemporaryState","temporaryState","nextTemporaryState","
|
|
1
|
+
{"version":3,"file":"previewStorage.js","sources":["../../../../src/features/themePreview/configs/previewStorage.ts"],"sourcesContent":null,"names":["THEME_PREVIEW_APPLIED_SETTINGS_STORAGE_KEY","THEME_PREVIEW_TEMPORARY_STATE_STORAGE_KEY","getLocalStorage","__name","getThemePreviewAppliedSettings","storage","rawValue","parsedValue","isObject","persistThemePreviewAppliedSettings","settings","nextAppliedSettings","clearThemePreviewAppliedSettings","getThemePreviewTemporaryState","persistThemePreviewTemporaryState","temporaryState","nextTemporaryState","getResolvedThemePreviewSettingsConfig","settingsConfig","persistedSettings","merge"],"mappings":";;;;AAQA,MAAMA,IAA6C,kCAC7CC,IAA4C;AAyDlD,SAASC,IAAkB;AACzB,SAAI,OAAO,SAAW,MACb,OAGF,OAAO;AAChB;AANSC,EAAAD,GAAA;AAWF,SAASE,IAAiC;AAC/C,QAAMC,IAAUH,EAAA,GACVI,IAAWD,KAAA,gBAAAA,EAAS,QAAQL;AAElC,MAAI,CAACM;AACH,WAAO;AAGT,MAAI;AACF,UAAMC,IAAc,KAAK,MAAMD,CAAQ;AAEvC,WAAOE,EAASD,CAAW,IAAKA,IAA8C;AAAA,EAChF,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAfgBJ,EAAAC,GAAA;AAqBT,SAASK,EAAmCC,GAAuC;AACxF,QAAML,IAAUH,EAAA;AAEhB,MAAI,CAACG;AACH;AAGF,QAAMM,IAAsB;AAAA,IAC1B,UAAUD,EAAS;AAAA,IACnB,uBAAuBA,EAAS;AAAA,IAChC,OAAOA,EAAS;AAAA,EAAA;AAGlB,EAAAL,EAAQ;AAAA,IACNL;AAAA,IACA,KAAK,UAAUW,CAAmB;AAAA,EAAA;AAEtC;AAjBgBR,EAAAM,GAAA;AAsBT,SAASG,IAAmC;AACjD,QAAMP,IAAUH,EAAA;AAEhB,EAAKG,KAILA,EAAQ,WAAWL,CAA0C;AAC/D;AARgBG,EAAAS,GAAA;AAaT,SAASC,IAAgC;AAC9C,QAAMR,IAAUH,EAAA,GACVI,IAAWD,KAAA,gBAAAA,EAAS,QAAQJ;AAElC,MAAI,CAACK;AACH,WAAO;AAGT,MAAI;AACF,UAAMC,IAAc,KAAK,MAAMD,CAAQ;AAEvC,WAAOE,EAASD,CAAW,IAAKA,IAA6C;AAAA,EAC/E,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAfgBJ,EAAAU,GAAA;AAqBT,SAASC,EACdC,GACA;AACA,QAAMV,IAAUH,EAAA;AAEhB,MAAI,CAACG;AACH;AAGF,QAAMW,IAAqB;AAAA,IACzB,eAAeD,EAAe;AAAA,IAC9B,SAASA,EAAe;AAAA,IACxB,UAAUA,EAAe;AAAA,IACzB,gBAAgB;AAAA,MACd,eAAeA,EAAe,eAAe;AAAA,MAC7C,eAAeA,EAAe,eAAe;AAAA,MAC7C,oBAAoBA,EAAe,eAAe;AAAA,IAAA;AAAA,IAEpD,SAAS;AAAA,EAAA;AAGX,EAAAV,EAAQ;AAAA,IACNJ;AAAA,IACA,KAAK,UAAUe,CAAkB;AAAA,EAAA;AAErC;AAzBgBb,EAAAW,GAAA;AA6CT,SAASG,EAGdC,GACA;AACA,QAAMC,IAAoBf,EAAA;AAE1B,SAAKe,IAIEC,EAAM,CAAA,GAAIF,GAAgBC,CAAiB,IAHzCD;AAIX;AAZgBf,EAAAc,GAAA;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { grey as a } from "@mui/material/colors";
|
|
2
2
|
import { defaultGridTheme as o } from "./grid.js";
|
|
3
|
-
import {
|
|
4
|
-
import { defaultTableTheme as
|
|
3
|
+
import { defaultSnackbarProviderProps as i, defaultSnackbarTheme as n } from "./snackbar.js";
|
|
4
|
+
import { defaultTableTheme as d } from "./table.js";
|
|
5
5
|
import { defaultLayoutSurface as r } from "./surface.js";
|
|
6
|
-
import { defaultSecondaryPalette as t, defaultPrimaryPalette as e, defaultToolbarSecondaryPalette as f, darkPaletteText as
|
|
7
|
-
const
|
|
6
|
+
import { defaultSecondaryPalette as t, defaultPrimaryPalette as e, defaultToolbarSecondaryPalette as f, darkPaletteText as c, defaultToolbarDivider as m, defaultNavbarSecondaryPalette as l, lightPaletteText as b, defaultNavbarDivider as s } from "./presets.js";
|
|
7
|
+
const k = {
|
|
8
8
|
customScrollbars: !0,
|
|
9
9
|
direction: "ltr",
|
|
10
|
-
snackbar:
|
|
10
|
+
snackbar: n,
|
|
11
11
|
theme: {
|
|
12
12
|
main: {
|
|
13
13
|
grid: o,
|
|
14
|
-
table:
|
|
14
|
+
table: d,
|
|
15
15
|
palette: {
|
|
16
16
|
mode: "light",
|
|
17
17
|
text: {
|
|
@@ -51,8 +51,8 @@ const T = {
|
|
|
51
51
|
navbar: {
|
|
52
52
|
palette: {
|
|
53
53
|
mode: "light",
|
|
54
|
-
divider:
|
|
55
|
-
text:
|
|
54
|
+
divider: s,
|
|
55
|
+
text: b,
|
|
56
56
|
common: {
|
|
57
57
|
black: "rgb(17, 24, 39)",
|
|
58
58
|
white: "rgb(255, 255, 255)"
|
|
@@ -62,7 +62,7 @@ const T = {
|
|
|
62
62
|
default: "#FFFFFF"
|
|
63
63
|
},
|
|
64
64
|
primary: r,
|
|
65
|
-
secondary:
|
|
65
|
+
secondary: l,
|
|
66
66
|
inputFocus: {
|
|
67
67
|
main: a[900]
|
|
68
68
|
},
|
|
@@ -86,7 +86,7 @@ const T = {
|
|
|
86
86
|
palette: {
|
|
87
87
|
mode: "dark",
|
|
88
88
|
divider: m,
|
|
89
|
-
text:
|
|
89
|
+
text: c,
|
|
90
90
|
common: {
|
|
91
91
|
black: "rgb(17, 24, 39)",
|
|
92
92
|
white: "rgb(255, 255, 255)"
|
|
@@ -153,9 +153,10 @@ const T = {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
}
|
|
156
|
+
},
|
|
157
|
+
snackbarProviderProps: i
|
|
157
158
|
};
|
|
158
159
|
export {
|
|
159
|
-
|
|
160
|
+
k as defaultSettingsConfig
|
|
160
161
|
};
|
|
161
162
|
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../../../src/features/themePreview/configs/settings.ts"],"sourcesContent":null,"names":["defaultSettingsConfig","defaultSnackbarTheme","defaultGridTheme","defaultTableTheme","defaultPrimaryPalette","defaultSecondaryPalette","grey","defaultNavbarDivider","lightPaletteText","defaultLayoutSurface","defaultNavbarSecondaryPalette","defaultToolbarDivider","darkPaletteText","defaultToolbarSecondaryPalette"],"mappings":"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
|
|
1
|
+
{"version":3,"file":"settings.js","sources":["../../../../src/features/themePreview/configs/settings.ts"],"sourcesContent":null,"names":["defaultSettingsConfig","defaultSnackbarTheme","defaultGridTheme","defaultTableTheme","defaultPrimaryPalette","defaultSecondaryPalette","grey","defaultNavbarDivider","lightPaletteText","defaultLayoutSurface","defaultNavbarSecondaryPalette","defaultToolbarDivider","darkPaletteText","defaultToolbarSecondaryPalette","defaultSnackbarProviderProps"],"mappings":"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"}
|
|
@@ -17,14 +17,14 @@ import { useState as I, useRef as u, useEffect as g } from "react";
|
|
|
17
17
|
import { useThemePreview as Le } from "../hooks/useThemePreview.js";
|
|
18
18
|
import { ThemePreviewControls as Fe } from "../components/ThemePreviewControls.js";
|
|
19
19
|
import { ThemePreviewCanvas as Ne } from "../components/ThemePreviewCanvas.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { createThemePreviewExportData as _e, createThemePreviewAppConfigFiles as Re } from "../utils/themePreviewExport.js";
|
|
21
|
+
import { resetThemePreviewSessionState as De } from "../utils/themePreviewSettings.js";
|
|
22
22
|
import { OwpDialog as V } from "../../../components/OwpDialog/OwpDialog.js";
|
|
23
23
|
const Me = we, Ie = ".owp,.zip,application/zip", D = 300 * 1e3, Ve = 2 * 1e3, Oe = 15 * 1e3;
|
|
24
24
|
function je(r) {
|
|
25
|
-
const i =
|
|
25
|
+
const i = _e(r);
|
|
26
26
|
return [
|
|
27
|
-
...
|
|
27
|
+
...Re(r).map(({ fileName: s, content: f }) => ({
|
|
28
28
|
fileName: s,
|
|
29
29
|
blob: new Blob([f], {
|
|
30
30
|
type: "text/plain;charset=utf-8"
|
|
@@ -202,7 +202,7 @@ const p = {
|
|
|
202
202
|
title: "변경된 값을 저장하겠습니까?"
|
|
203
203
|
}) ? (P("manual"), d("임시 저장되었습니다. 다시 실행하면 저장된 데이터를 불러옵니다.", {
|
|
204
204
|
variant: "info"
|
|
205
|
-
})) :
|
|
205
|
+
})) : De()), v(void 0);
|
|
206
206
|
}, "handleDialogClose"), me = /* @__PURE__ */ n(async (e) => {
|
|
207
207
|
var l, C;
|
|
208
208
|
const a = (l = e.target.files) == null ? void 0 : l[0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":null,"names":[],"mappings":";"}
|
|
@@ -307,12 +307,12 @@ const b = [
|
|
|
307
307
|
label: "State",
|
|
308
308
|
fields: [
|
|
309
309
|
{
|
|
310
|
-
path: "state.
|
|
311
|
-
label: "Hover
|
|
310
|
+
path: "state.hoverBackgroundColor",
|
|
311
|
+
label: "Hover Background"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
path: "state.
|
|
315
|
-
label: "Hover
|
|
314
|
+
path: "state.hoverBorderColor",
|
|
315
|
+
label: "Hover Border"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
path: "state.selectedCellBackgroundColor",
|
|
@@ -330,14 +330,6 @@ const b = [
|
|
|
330
330
|
path: "state.focusedRowBorderColor",
|
|
331
331
|
label: "Focused Row Border"
|
|
332
332
|
},
|
|
333
|
-
{
|
|
334
|
-
path: "state.hoverCellBackgroundColor",
|
|
335
|
-
label: "Hover Cell Background"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
path: "state.hoverCellBorderColor",
|
|
339
|
-
label: "Hover Cell Border"
|
|
340
|
-
},
|
|
341
333
|
{
|
|
342
334
|
path: "state.focusedCellBackgroundColor",
|
|
343
335
|
label: "Focused Cell Background"
|