@sheetxl/studio-mui 0.8.0-beta.15 → 0.8.0-beta.16
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/LICENSE.md +17 -7
- package/browser/esm/{CJWnWqGPw17cp9P3.mjs → 2DGUEeY8au7Hbmze.mjs} +2 -2
- package/browser/esm/{OmA1ClZ36ZMFrZe7.mjs → 9V0gwYl3BcajPwBD.mjs} +2 -2
- package/browser/esm/B0mscuFChIInl6Mo.mjs +119 -0
- package/browser/esm/{EFtp_C3sBnP3Nrns.mjs → BGg5TSbhaUimavRf.mjs} +7 -7
- package/browser/esm/BL-h4RElQAdaeHPF.mjs +360 -0
- package/browser/esm/{DOWfcHx0MO0J50de.mjs → BSrubs5qLEinR8Ew.mjs} +92 -87
- package/browser/esm/BUCQPr09aodgC88P.mjs +225 -0
- package/browser/esm/{BvpzsprI7cmVLuQn.mjs → Bg6bcIJsute7rxDL.mjs} +3 -3
- package/browser/esm/{CV-q-xCHVuNFhqEF.mjs → BjR7L3X6je3fXyQi.mjs} +2 -2
- package/browser/esm/{DMDi2lOps0veJKsM.mjs → Bo_18UwXk7eK6QaM.mjs} +3 -3
- package/browser/esm/{BfPTOOKhwUojRTef.mjs → Bp4rtdIKIFzTeJvr.mjs} +13 -9
- package/browser/esm/BxneVAXjYuQbCUQo.mjs +424 -0
- package/browser/esm/{BojGnpAWoIm5yCd8.mjs → C2V3kv29foh8dScC.mjs} +2 -2
- package/browser/esm/{BkxJY_YjMAEvhmuy.mjs → C8M4U_SswTd6auZd.mjs} +4 -4
- package/browser/esm/{BR51amBhaaHPBhpd.mjs → C9XRjC0yoGvS9Cm9.mjs} +3 -3
- package/browser/esm/{ghfcAaGu2CuZGdhi.mjs → CDgoQhayiKyo-7Br.mjs} +34 -33
- package/browser/esm/{Buzx8_zQYPX4DR7v.mjs → CLgar8cakFC22X3w.mjs} +2 -2
- package/browser/esm/{6SL2j-85OXrKJNZ5.mjs → CUh56URLD9Vh5Ak9.mjs} +1807 -1200
- package/browser/esm/{DLe9DT0DSurLSgiQ.mjs → CXgBRmauwDvHb3fQ.mjs} +2 -2
- package/browser/esm/{Bqba-3J9i8HsmusR.mjs → CYOaHHiaC7Ip5VLn.mjs} +2 -2
- package/browser/esm/C_qDBCzb8IHBlPhJ.mjs +294 -0
- package/browser/esm/{Cbkg5y4fYjLylYHF.mjs → CfsYKmwU44jlvh2Y.mjs} +2 -2
- package/browser/esm/Ch1y4AkETfKCYDwf.mjs +106 -0
- package/browser/esm/{By1IJOkvZJSlXs5f.mjs → CnId_LC0EekuwaAF.mjs} +3 -3
- package/browser/esm/{BsAoK_t2sn8IHtAO.mjs → CtVSJjciTocAi-ph.mjs} +3 -3
- package/browser/esm/{C8tci3dfo5lzeoK-.mjs → CuQsEoKZJrSL989Q.mjs} +6 -6
- package/browser/esm/{Cl_OUigCV04_zrRy.mjs → Cv99zJfRtzJQmM9a.mjs} +2 -2
- package/browser/esm/{BCDAnHFMvOd9XS8K.mjs → Cxk-oWZzE2jq5ul6.mjs} +3 -3
- package/browser/esm/{CcJHwg-rLMcCymSD.mjs → D3XdTSymYMag6tor.mjs} +6 -6
- package/browser/esm/{BH4eDAxZdwheO7d_.mjs → D4jGaUxHOgVc4qN0.mjs} +3 -3
- package/browser/esm/{BvbN9V67wFhTfq1-.mjs → DAdhaGB933dfni3E.mjs} +3 -3
- package/browser/esm/{DpAlQza0e5h3GGHC.mjs → DBx1Y3oFzB6gv-LQ.mjs} +3 -3
- package/browser/esm/{DJVpra0HoPH-4P7P.mjs → DIAnBUXPTvYAp5fm.mjs} +3 -3
- package/browser/esm/{idh3Y0jksygPSI3A.mjs → DIJh9jY37iVFn-tE.mjs} +2 -2
- package/browser/esm/{Ci74yk0whfoAP1TL.mjs → DK1K-M9iJV-DK3lK.mjs} +2 -2
- package/browser/esm/{BNas8wZuvrN45dRi.mjs → DMhFcJsnKSKTDivl.mjs} +2 -2
- package/browser/esm/{BWdpv2xf6GCyd4Te.mjs → DMj9kkIWw9chI5_u.mjs} +5 -5
- package/browser/esm/DUpW8HMoEhD3C9l6.mjs +235 -0
- package/browser/esm/{DzATG8XMcG6mmYbx.mjs → DVJ5AK0zcqSACGov.mjs} +9 -9
- package/browser/esm/{DYDnkmllpYTwfWir.mjs → DVaykBKx4eEsP4MI.mjs} +4 -4
- package/browser/esm/{C67SLDHwhVlVIMo0.mjs → Dex65RXS_A5CnMg3.mjs} +3 -3
- package/browser/esm/{BYnzaHXySiV-sc6w.mjs → DfYtGsqDIMAG4Sp8.mjs} +2 -2
- package/browser/esm/{IlX2PgLxvyTQu4Fh.mjs → Dj0VEFe2ckEWgQjy.mjs} +5 -5
- package/browser/esm/{DKkKac2vbeui2lDy.mjs → DjCDJhBfVI9O_Sq1.mjs} +6 -6
- package/browser/esm/DjjmLQLxU_U4JB3n.mjs +973 -0
- package/browser/esm/{CutWdrVA-c3x8IkL.mjs → DmOrKFaiUUr5hlFl.mjs} +5 -4
- package/browser/esm/{Bvq5aZyp5E79JB-s.mjs → DoYSmj1LQHAAqt5b.mjs} +2 -2
- package/browser/esm/{Dz20q7S5vmDWlO0p.mjs → KhOxaZS8EeSaYFXZ.mjs} +2 -2
- package/browser/esm/{DAYPqhHN3aQ2StjU.mjs → PvNtCGveCLbLAP3e.mjs} +14 -14
- package/browser/esm/{DfI4-5XM6AbILSti.mjs → ROOxAZY7YyHDmPcQ.mjs} +4 -4
- package/browser/esm/{DFAphWcDUw-gVtAl.mjs → TfUaejwwWzu5qFVE.mjs} +3 -3
- package/browser/esm/{DsM-NpB32hloRRR8.mjs → ZhI7zxDSTWb1DfaE.mjs} +3 -3
- package/browser/esm/{DY_EGsyx-zNiJS_0.mjs → fqZt7Z0jR4illVKU.mjs} +5 -5
- package/browser/esm/index.mjs +278 -277
- package/browser/esm/{OHvsc940xI-m_8cc.mjs → r7bLyFzJfaGLKP_7.mjs} +2 -2
- package/browser/esm/{DR9y7k4jB7stGPaZ.mjs → tffjGixzP1Ze4DqB.mjs} +3 -3
- package/browser/esm/{D90Bb0GPEwqYkf6R.mjs → tiC8hseLz66gO5BS.mjs} +804 -713
- package/node/esm/{-Adgw5-ltK-rfp33.mjs → -Il_piuBrbndDROB.mjs} +2 -2
- package/node/esm/0cm_0VYweOBWmzi7.mjs +972 -0
- package/node/esm/{CexPhV2NPh5ZGHus.mjs → 1gdwmt5CrQy4cGTH.mjs} +2 -2
- package/node/esm/{dUUbrmGMCILl8EOr.mjs → 3Geel3fylTwbPuxf.mjs} +2 -2
- package/node/esm/{CFi_Yls-gurU_CX3.mjs → 4pRKBhUYhbbE6qVT.mjs} +2 -2
- package/node/esm/{jGsHbOHP90nnx_hJ.mjs → 9qIZWfzxSaxNk6Cm.mjs} +16 -15
- package/node/esm/B9uLfbf5gMGnoUjH.mjs +224 -0
- package/node/esm/{BxIyViNSP0STSrfA.mjs → BFO2WxwRNbu-UmKe.mjs} +3 -3
- package/node/esm/{q2Byx8RdDnHk8YyG.mjs → BIJXqUbAalnd-gXD.mjs} +2 -2
- package/node/esm/{C4eVfVm_Omyt6NbE.mjs → BIviFvkWx6eP4dMd.mjs} +12 -12
- package/node/esm/{Cx4tBEsm3SjAafcw.mjs → BTOCej61y3MazK6r.mjs} +2 -2
- package/node/esm/{5etzEfk-28CCELyT.mjs → BV9hUarSGd3mWC8o.mjs} +3 -3
- package/node/esm/{DGtbmp72kfRXLtDu.mjs → BX1cTEV3SpcqLcXx.mjs} +81 -80
- package/node/esm/{DOuASwH2Lf83hMLe.mjs → BZu-8gEXwIzW_YX9.mjs} +2 -2
- package/node/esm/{CX13ASkhdJ0ZSAY4.mjs → B_jOG6MlKoiboP3D.mjs} +3 -3
- package/node/esm/{DwA7rfXJgzoNvjax.mjs → BgObBW8ZUr50OufC.mjs} +8 -8
- package/node/esm/{BKCNFVrdc_gTnOoS.mjs → BhiuBl2z87xThV1b.mjs} +2 -2
- package/node/esm/{B26ot2vO6Hd47uH0.mjs → Bm054Lh36PSa5m1P.mjs} +2 -2
- package/node/esm/BtxNP8JWe16vSXAs.mjs +106 -0
- package/node/esm/BzT_zks-KORaryRo.mjs +118 -0
- package/node/esm/{Bg3Yu66oJr6mNvAR.mjs → C5dRM0ExMHpFgKd0.mjs} +3 -3
- package/node/esm/{BZK6UksX7r-GgRms.mjs → CQxu_KONf2yyKKnD.mjs} +2 -2
- package/node/esm/{BaFRVcYZjcLoMQtk.mjs → CdoFRzEug2L0LwNb.mjs} +7 -7
- package/node/esm/{DybPyX8U-EqXKarV.mjs → Ch7Ebxf0bFrlCJpW.mjs} +2 -2
- package/node/esm/{CzKFdVrPSDYOUdWI.mjs → CsQTJ4JQRxLcJDiZ.mjs} +2 -2
- package/node/esm/{BFv2GzY6NjmJggAg.mjs → CyKOmz26TaZSFxmi.mjs} +3 -3
- package/node/esm/D3TsBlOewIFj-VDW.mjs +294 -0
- package/node/esm/{Ca31PUiJBGowHeob.mjs → D4TlOO7hjvqTR2HX.mjs} +3 -3
- package/node/esm/{TgwnKYh-WPxEgmyr.mjs → DYNM5HfUK0JbGHsx.mjs} +2 -2
- package/node/esm/{B7vbn_dO_cZnGyGM.mjs → DhPNzztIuq9WJwCz.mjs} +3 -3
- package/node/esm/{ISBEql8s7AnELTpd.mjs → cl-bDkq8M4STBYJy.mjs} +2 -2
- package/node/esm/fazR-cWd-2-W82Nk.mjs +425 -0
- package/node/esm/index.mjs +3391 -2778
- package/node/esm/{D9Ga7FFJDOO3Dpfu.mjs → iyOc5Rm5x746Qd3R.mjs} +2 -2
- package/node/esm/{CORxK68HpwPUYA6O.mjs → klLaIOeBuqaYuz_q.mjs} +2 -2
- package/node/esm/{D_JpopAVQopM26cb.mjs → mmzQ-lse6yBavXnw.mjs} +603 -514
- package/node/esm/{CkW8xNdW45Xg7jy7.mjs → rpHmm4X81z1orjHr.mjs} +3 -3
- package/node/esm/{HlNuwtpYoOARa894.mjs → tRnEFhRlzQPziQif.mjs} +2 -2
- package/package.json +10 -10
- package/resources/locales/de/groups.cmd.json +3 -0
- package/resources/locales/de/ui.msg.json +41 -0
- package/resources/locales/en/groups.cmd.json +3 -0
- package/resources/locales/en/ui.msg.json +41 -0
- package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
- package/types/src/command/index.d.ts +1 -0
- package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
- package/types/src/filter/PivotMenu.d.ts +31 -0
- package/types/src/filter/index.d.ts +1 -0
- package/types/src/pivot/PivotChipMenu.d.ts +10 -0
- package/types/src/pivot/PivotPlugin.d.ts +3 -0
- package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
- package/types/src/pivot/PivotTableHeader.d.ts +12 -0
- package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
- package/types/src/pivot/_pivotSource.d.ts +7 -0
- package/types/src/table/_drawStyleSwatch.d.ts +25 -0
- package/types/src/workbook/DefaultRenderers.d.ts +10 -4
- package/browser/esm/C4ir9dn7q0RUoOm_.mjs +0 -319
- package/browser/esm/DEUzUShfyJLvgd6_.mjs +0 -1379
- package/browser/esm/xe1B8ohea8qfZlFg.mjs +0 -582
- package/node/esm/CKtnUYKjsTf7dYKS.mjs +0 -318
- package/node/esm/vf5X26EJO7Q1b8Ln.mjs +0 -1379
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { DynamicIcon as e, KeyCodes as t, KeyModifiers as n, ReactUtils as r, keyEventCanonicals as o, keyStrokeToCanonical as l, useTranslator as i } from "@sheetxl/utils-react";
|
|
8
8
|
import a, { useCallback as s, useEffect as c, useMemo as p, useRef as d, useState as u } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { ICellRange as e } from "@sheetxl/sdk";
|
|
8
8
|
import { addRangeAnnotations as r, clearRangeAnnotations as o, useModelListener as a } from "@sheetxl/react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { FormulaField as e, InputField as t } from "./index.mjs";
|
|
8
8
|
import { useReferenceMode as a } from "@sheetxl/react";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { t
|
|
7
|
+
import { o as e } from "./BtxNP8JWe16vSXAs.mjs";
|
|
8
|
+
import { t } from "./B9uLfbf5gMGnoUjH.mjs";
|
|
9
|
+
import { t as o } from "./BIviFvkWx6eP4dMd.mjs";
|
|
9
10
|
import { IFill as l, ShapeStyleUtils as r } from "@sheetxl/sdk";
|
|
10
11
|
import { useGridColorScheme as s } from "@sheetxl/react";
|
|
11
12
|
import { useTranslator as i } from "@sheetxl/utils-react";
|
|
12
13
|
import { memo as a, useEffect as n, useReducer as p } from "react";
|
|
13
|
-
import { jsx as m, jsxs as
|
|
14
|
-
import { Box as
|
|
14
|
+
import { jsx as m, jsxs as d } from "react/jsx-runtime";
|
|
15
|
+
import { Box as c, Typography as h } from "@mui/material";
|
|
15
16
|
var u = (e, t, o) => {
|
|
16
17
|
const s = e.toJSON();
|
|
17
18
|
let i = null;
|
|
@@ -30,12 +31,12 @@ var u = (e, t, o) => {
|
|
|
30
31
|
component: "div",
|
|
31
32
|
children: e.children
|
|
32
33
|
}), g = a((l) => {
|
|
33
|
-
const { movable: r, sheet: a } = l, h = i(), g = r.getContent(), [,
|
|
34
|
-
n(() => g.addListeners({ onAnyChange:
|
|
35
|
-
const
|
|
34
|
+
const { movable: r, sheet: a } = l, h = i(), g = r.getContent(), [, f] = p((e) => e + 1, 0);
|
|
35
|
+
n(() => g.addListeners({ onAnyChange: f }), [g]);
|
|
36
|
+
const y = a.getStyles(), S = "dark" === s(), v = g.isReadOnly(), C = g.getStyle(), x = {
|
|
36
37
|
fill: C.getFill(),
|
|
37
|
-
styles:
|
|
38
|
-
schemeLookup:
|
|
38
|
+
styles: y,
|
|
39
|
+
schemeLookup: y.schemeLookup(),
|
|
39
40
|
darkMode: S,
|
|
40
41
|
disabled: v,
|
|
41
42
|
createCell: (e) => a.createCell(e),
|
|
@@ -45,16 +46,16 @@ var u = (e, t, o) => {
|
|
|
45
46
|
}, F = {
|
|
46
47
|
stroke: C.getStroke(),
|
|
47
48
|
stated: C.toJSON()?.stroke ?? null,
|
|
48
|
-
autoColor: u(g, r,
|
|
49
|
-
styles:
|
|
50
|
-
schemeLookup:
|
|
49
|
+
autoColor: u(g, r, y),
|
|
50
|
+
styles: y,
|
|
51
|
+
schemeLookup: y.schemeLookup(),
|
|
51
52
|
darkMode: S,
|
|
52
53
|
disabled: v,
|
|
53
54
|
applyStroke: (e, t) => {
|
|
54
55
|
C.setStroke(e, { description: t });
|
|
55
56
|
}
|
|
56
57
|
};
|
|
57
|
-
return c
|
|
58
|
+
return d(c, {
|
|
58
59
|
sx: {
|
|
59
60
|
...e,
|
|
60
61
|
gap: 2,
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { AutoColorPosition as e, ColorPopupButton as l, DEFAULT_GRADIENT as o, GradientEditor as r, PatternPopupButton as t, toGradientValue as a, toPatternSlots as n } from "./index.mjs";
|
|
8
|
+
import { a as i, i as d, o as p, r as s } from "./BtxNP8JWe16vSXAs.mjs";
|
|
9
|
+
import { Color as c, IColor as y, IFill as u } from "@sheetxl/sdk";
|
|
10
|
+
import { useCallbackRef as f, useCommands as m, useTranslator as g } from "@sheetxl/utils-react";
|
|
11
|
+
import { memo as h, useMemo as T } from "react";
|
|
12
|
+
import { Fragment as C, jsx as k, jsxs as b } from "react/jsx-runtime";
|
|
13
|
+
import { Box as S, FormControl as P, InputLabel as F, MenuItem as x, Select as G } from "@mui/material";
|
|
14
|
+
import { messageKey as N } from "@sheetxl/utils";
|
|
15
|
+
import L from "clsx";
|
|
16
|
+
var v = u.BuiltInSheetPattern.Gray125, M = new c(y.Named.Transparent), w = (e) => ({
|
|
17
|
+
fill: e.style.getFill(),
|
|
18
|
+
styles: e.styles,
|
|
19
|
+
schemeLookup: e.schemeLookup,
|
|
20
|
+
darkMode: e.darkMode,
|
|
21
|
+
disabled: e.disabled,
|
|
22
|
+
createCell: e.createCell,
|
|
23
|
+
applyFill: (l, o) => e.applyStyle({ fill: l }, o)
|
|
24
|
+
}), B = h((h) => {
|
|
25
|
+
const { selection: w, disabled: B, maxGradientStops: I, className: j, ...A } = h, K = g(), { fill: R, applyFill: q, createCell: z, schemeLookup: E, styles: W, darkMode: D } = w, H = B || w.disabled, J = f((e, l) => {
|
|
26
|
+
q(e.fill, l);
|
|
27
|
+
}, [q]), O = R.getType(), Q = O === u.Type.None ? u.Type.Solid : O, U = O === u.Type.Pattern ? R : null, V = U?.getPatternType() ?? v, X = U ? n(V, U.getForeground(), U.getBackground()) : null, Y = T(() => new c(y.Scheme.Tx1, E), [E]), Z = X?.foreground ?? Y, $ = X?.background ?? new c(y.Named.Transparent, E), _ = O === u.Type.Solid ? R.getColor() : null, ee = f(() => W.recentColors(), [W]), [le] = m(["formatFillColor"]), oe = le?.getContext(), re = oe?.quickColor ?? null, te = f((e, l) => {
|
|
28
|
+
e && l && W.addRecentColor(e), oe?.onColorSelect?.(e), e ? J({ fill: {
|
|
29
|
+
type: u.Type.Solid,
|
|
30
|
+
color: e.toString()
|
|
31
|
+
} }, N("op.setFillColor")) : J({ fill: { type: u.Type.None } }, N("op.setFillNone"));
|
|
32
|
+
}, [
|
|
33
|
+
J,
|
|
34
|
+
W,
|
|
35
|
+
oe
|
|
36
|
+
]), ae = f((e) => {
|
|
37
|
+
const l = e.patternType ?? V, o = n(l, e.foreground ?? Z.toString(), e.background ?? $.toString());
|
|
38
|
+
J({ fill: {
|
|
39
|
+
type: u.Type.Pattern,
|
|
40
|
+
patternType: l,
|
|
41
|
+
foreground: o.foreground,
|
|
42
|
+
background: o.background
|
|
43
|
+
} }, N("op.setFillPattern"));
|
|
44
|
+
}, [
|
|
45
|
+
J,
|
|
46
|
+
V,
|
|
47
|
+
Z,
|
|
48
|
+
$
|
|
49
|
+
]), ne = f((e) => {
|
|
50
|
+
J({ fill: {
|
|
51
|
+
type: u.Type.Gradient,
|
|
52
|
+
gradientType: e.gradientType,
|
|
53
|
+
angle: e.angle,
|
|
54
|
+
stops: e.stops.map((e) => ({
|
|
55
|
+
offset: e.offset,
|
|
56
|
+
color: e.color
|
|
57
|
+
}))
|
|
58
|
+
} }, N("op.setFillGradient"));
|
|
59
|
+
}, [J]), ie = f((e) => {
|
|
60
|
+
if (e !== Q) switch (e) {
|
|
61
|
+
case u.Type.Solid:
|
|
62
|
+
J({ fill: {
|
|
63
|
+
type: u.Type.Solid,
|
|
64
|
+
color: (re ?? R.getColor())?.toString() ?? "ffffff"
|
|
65
|
+
} }, N("op.setFillSolid"));
|
|
66
|
+
break;
|
|
67
|
+
case u.Type.Pattern:
|
|
68
|
+
ae({});
|
|
69
|
+
break;
|
|
70
|
+
case u.Type.Gradient: ne(o);
|
|
71
|
+
}
|
|
72
|
+
}, [
|
|
73
|
+
Q,
|
|
74
|
+
R,
|
|
75
|
+
re,
|
|
76
|
+
J,
|
|
77
|
+
ae,
|
|
78
|
+
ne
|
|
79
|
+
]), de = f(() => {
|
|
80
|
+
switch (O) {
|
|
81
|
+
case u.Type.Pattern:
|
|
82
|
+
ae({});
|
|
83
|
+
break;
|
|
84
|
+
case u.Type.Gradient:
|
|
85
|
+
ne(a(R));
|
|
86
|
+
break;
|
|
87
|
+
case u.Type.Solid:
|
|
88
|
+
J({ fill: {
|
|
89
|
+
type: u.Type.Solid,
|
|
90
|
+
color: R.getColor().toString()
|
|
91
|
+
} }, N("op.setFillColor"));
|
|
92
|
+
break;
|
|
93
|
+
default: J({ fill: { type: u.Type.None } }, N("op.setFillNone"));
|
|
94
|
+
}
|
|
95
|
+
}, [
|
|
96
|
+
O,
|
|
97
|
+
R,
|
|
98
|
+
J,
|
|
99
|
+
ae,
|
|
100
|
+
ne
|
|
101
|
+
]);
|
|
102
|
+
return b(S, {
|
|
103
|
+
className: L("sxl-format-fill-panel", j),
|
|
104
|
+
sx: p,
|
|
105
|
+
...A,
|
|
106
|
+
children: [
|
|
107
|
+
k(d, { children: b(P, {
|
|
108
|
+
size: "small",
|
|
109
|
+
fullWidth: !0,
|
|
110
|
+
children: [k(F, {
|
|
111
|
+
shrink: !0,
|
|
112
|
+
children: K("fill.type")
|
|
113
|
+
}), b(G, {
|
|
114
|
+
label: K("fill.type"),
|
|
115
|
+
notched: !0,
|
|
116
|
+
disabled: H,
|
|
117
|
+
value: Q,
|
|
118
|
+
onChange: (e) => ie(e.target.value),
|
|
119
|
+
children: [
|
|
120
|
+
k(x, {
|
|
121
|
+
value: u.Type.Solid,
|
|
122
|
+
onClick: i(Q, u.Type.Solid, de),
|
|
123
|
+
children: K("fill.typeSolid")
|
|
124
|
+
}),
|
|
125
|
+
k(x, {
|
|
126
|
+
value: u.Type.Pattern,
|
|
127
|
+
onClick: i(Q, u.Type.Pattern, de),
|
|
128
|
+
children: K("fill.typePattern")
|
|
129
|
+
}),
|
|
130
|
+
k(x, {
|
|
131
|
+
value: u.Type.Gradient,
|
|
132
|
+
onClick: i(Q, u.Type.Gradient, de),
|
|
133
|
+
children: K("fill.typeGradient")
|
|
134
|
+
}),
|
|
135
|
+
O === u.Type.Image ? k(x, {
|
|
136
|
+
value: u.Type.Image,
|
|
137
|
+
disabled: !0,
|
|
138
|
+
children: K("fill.typeImage")
|
|
139
|
+
}) : null
|
|
140
|
+
]
|
|
141
|
+
})]
|
|
142
|
+
}) }),
|
|
143
|
+
Q === u.Type.Solid ? k(d, {
|
|
144
|
+
label: K("fill.backgroundColor"),
|
|
145
|
+
children: k(s, { children: k(l, {
|
|
146
|
+
icon: "fill.colored",
|
|
147
|
+
disabled: H,
|
|
148
|
+
darkMode: D,
|
|
149
|
+
compareRGB: !0,
|
|
150
|
+
selectedColor: _,
|
|
151
|
+
onSelectColor: te,
|
|
152
|
+
propsPanel: {
|
|
153
|
+
disableAlpha: !0,
|
|
154
|
+
autoColor: M,
|
|
155
|
+
autoColorLabelKey: N("color.noFill"),
|
|
156
|
+
autoColorPosition: e.End,
|
|
157
|
+
schemeLookup: E,
|
|
158
|
+
recentColors: ee
|
|
159
|
+
}
|
|
160
|
+
}) })
|
|
161
|
+
}) : null,
|
|
162
|
+
O === u.Type.Pattern ? b(C, { children: [
|
|
163
|
+
k(d, {
|
|
164
|
+
label: K("fill.patternStyle"),
|
|
165
|
+
children: k(s, { children: k(t, {
|
|
166
|
+
disabled: H,
|
|
167
|
+
darkMode: D,
|
|
168
|
+
selectedPattern: V,
|
|
169
|
+
foreground: Z.toString(),
|
|
170
|
+
background: $.toString(),
|
|
171
|
+
createCell: z,
|
|
172
|
+
onSelectPattern: (e) => ae({ patternType: e })
|
|
173
|
+
}) })
|
|
174
|
+
}),
|
|
175
|
+
k(d, {
|
|
176
|
+
label: K("fill.patternForeground"),
|
|
177
|
+
children: k(s, { children: k(l, {
|
|
178
|
+
disabled: H,
|
|
179
|
+
darkMode: D,
|
|
180
|
+
selectedColor: Z,
|
|
181
|
+
onSelectColor: (e) => {
|
|
182
|
+
ae({ foreground: (e ?? Y).toString() });
|
|
183
|
+
},
|
|
184
|
+
propsPanel: {
|
|
185
|
+
disableAlpha: !0,
|
|
186
|
+
autoColor: Y,
|
|
187
|
+
schemeLookup: E,
|
|
188
|
+
recentColors: ee
|
|
189
|
+
}
|
|
190
|
+
}) })
|
|
191
|
+
}),
|
|
192
|
+
k(d, {
|
|
193
|
+
label: K("fill.patternBackground"),
|
|
194
|
+
children: k(s, { children: k(l, {
|
|
195
|
+
disabled: H,
|
|
196
|
+
darkMode: D,
|
|
197
|
+
selectedColor: $,
|
|
198
|
+
onSelectColor: (e) => {
|
|
199
|
+
ae({ background: (e ?? M).toString() });
|
|
200
|
+
},
|
|
201
|
+
propsPanel: {
|
|
202
|
+
disableAlpha: !0,
|
|
203
|
+
autoColor: M,
|
|
204
|
+
autoColorLabelKey: N("color.noFill"),
|
|
205
|
+
schemeLookup: E,
|
|
206
|
+
recentColors: ee
|
|
207
|
+
}
|
|
208
|
+
}) })
|
|
209
|
+
})
|
|
210
|
+
] }) : null,
|
|
211
|
+
O === u.Type.Gradient ? k(d, { children: k(r, {
|
|
212
|
+
disabled: H,
|
|
213
|
+
maxStops: I,
|
|
214
|
+
darkMode: D,
|
|
215
|
+
schemeLookup: E,
|
|
216
|
+
recentColors: ee,
|
|
217
|
+
value: a(R),
|
|
218
|
+
onChange: ne
|
|
219
|
+
}) }) : null
|
|
220
|
+
]
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
B.displayName = "FillPanel";
|
|
224
|
+
export { w as n, B as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { n as e, r as t, t as r } from "./
|
|
7
|
+
import { n as e, r as t, t as r } from "./CQxu_KONf2yyKKnD.mjs";
|
|
8
8
|
import { ItemCard as a, ItemsSearchField as n, c as s, o as i } from "./index.mjs";
|
|
9
9
|
import { DynamicIcon as o, NotifierType as l, useNotifier as c, useTranslator as d } from "@sheetxl/utils-react";
|
|
10
10
|
import { forwardRef as p, memo as g, useCallback as u, useEffect as m, useMemo as f, useReducer as h, useRef as x, useState as y } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { useTranslator as e } from "@sheetxl/utils-react";
|
|
8
8
|
import { useState as t } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { ColorPopupButton as e, StyledStrokeIcon as l } from "./index.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { i as n, n as i, o, r as t } from "./BtxNP8JWe16vSXAs.mjs";
|
|
9
9
|
import { IFill as a, IStroke as s } from "@sheetxl/sdk";
|
|
10
10
|
import { KeyCodes as d, useCallbackRef as r, useTranslator as p } from "@sheetxl/utils-react";
|
|
11
11
|
import { memo as h, useCallback as c, useMemo as y } from "react";
|
|
@@ -434,15 +434,15 @@ var N = (e) => {
|
|
|
434
434
|
});
|
|
435
435
|
return x(k, {
|
|
436
436
|
className: z("sxl-format-line-panel", c),
|
|
437
|
-
sx:
|
|
437
|
+
sx: o,
|
|
438
438
|
...D,
|
|
439
|
-
children: [b(
|
|
439
|
+
children: [b(n, { children: re(u("line.type"), H, [B, J], {
|
|
440
440
|
[B]: u("line.typeNone"),
|
|
441
441
|
[J]: u("line.typeSolid")
|
|
442
442
|
}, ee) }), U ? x(g, { children: [
|
|
443
|
-
b(
|
|
443
|
+
b(n, {
|
|
444
444
|
label: u("line.color"),
|
|
445
|
-
children: x(
|
|
445
|
+
children: x(t, { children: [b(e, {
|
|
446
446
|
icon: "stroke.colored",
|
|
447
447
|
disabled: G,
|
|
448
448
|
darkMode: A,
|
|
@@ -455,7 +455,7 @@ var N = (e) => {
|
|
|
455
455
|
schemeLookup: w,
|
|
456
456
|
recentColors: _
|
|
457
457
|
}
|
|
458
|
-
}), b(
|
|
458
|
+
}), b(i, {
|
|
459
459
|
label: u("line.width"),
|
|
460
460
|
value: m.getWidth(),
|
|
461
461
|
min: 0,
|
|
@@ -467,9 +467,9 @@ var N = (e) => {
|
|
|
467
467
|
onChange: ne
|
|
468
468
|
})] })
|
|
469
469
|
}),
|
|
470
|
-
b(
|
|
470
|
+
b(n, {
|
|
471
471
|
label: u("line.dashArrows"),
|
|
472
|
-
children: x(
|
|
472
|
+
children: x(t, { children: [
|
|
473
473
|
b(N, {
|
|
474
474
|
end: Y,
|
|
475
475
|
atStart: !0,
|
|
@@ -508,9 +508,9 @@ var N = (e) => {
|
|
|
508
508
|
})
|
|
509
509
|
] })
|
|
510
510
|
}),
|
|
511
|
-
b(
|
|
511
|
+
b(n, {
|
|
512
512
|
label: u("line.capJoin"),
|
|
513
|
-
children: x(
|
|
513
|
+
children: x(t, { children: [re(u("line.cap"), m.getLineCap(), F, se.cap, oe, 128), re(u("line.join"), m.getLineJoin(), I, se.join, te, 128)] })
|
|
514
514
|
})
|
|
515
515
|
] }) : null]
|
|
516
516
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { ICell as e, IRange as n } from "@sheetxl/sdk";
|
|
8
8
|
import { CommandContext as t } from "@sheetxl/react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BFO2WxwRNbu-UmKe.mjs";
|
|
8
8
|
import { PresetChip as t } from "./index.mjs";
|
|
9
9
|
import { externalBookFileName as n, externalBookLocation as r } from "@sheetxl/sdk";
|
|
10
10
|
import { DynamicIcon as a, NotifierType as i, useNotifier as l, useTranslator as s } from "@sheetxl/utils-react";
|