@sheetxl/studio-mui 0.8.0-beta.2 → 0.8.0-beta.3
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/browser/cjs/{BNqyPYRxYISp-uEg.cjs → BQMCM3iFn4MNWAkB.cjs} +1 -1
- package/browser/cjs/{CuqM721PsKey3yMP.cjs → Bi26L7L89ZK_y5Pk.cjs} +1 -1
- package/browser/cjs/{rCZbExyf1Q3aHloQ.cjs → CucKgy044KxMHXrx.cjs} +1 -1
- package/browser/cjs/{Dy6O3OWbDBKIj_Ak.cjs → Dq9lIOzvxW3EKYkD.cjs} +1 -1
- package/browser/cjs/iFPhqab5w95hHEsT.cjs +1 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/esm/{xGJU5xUJx3HF317Q.mjs → 5g7MBAjbFzuopMX2.mjs} +2 -2
- package/browser/esm/{BQSamOMBAoFdQdJe.mjs → B1W2xsRdzsYUrUHN.mjs} +9 -9
- package/browser/esm/{894KM-_Oc5cB6ExA.mjs → B4D1LSp8TE_B0AMm.mjs} +1 -1
- package/browser/esm/{D7fA9EyCNSzQMgxg.mjs → B52mSQ33rrDgVfpp.mjs} +1 -1
- package/browser/esm/{DSGFnb1gYyL22p0t.mjs → BPrlXHjf0rCkbBBI.mjs} +1 -1
- package/browser/esm/{B1YOQZHyO_dmHUN4.mjs → BZd916TsMZ7YvxWP.mjs} +1 -1
- package/browser/esm/{DIGlcemS7napWyKW.mjs → BaEXUwMO4qxI8cAG.mjs} +1 -1
- package/browser/esm/{z3zkU7Jf3WJ2_Z_P.mjs → BbIR6fcRDFkeZXY0.mjs} +1 -1
- package/browser/esm/{CyHNVjgkMYZYlJpY.mjs → BmThVkDnqURs7csb.mjs} +16 -16
- package/browser/esm/{_v6Wbw_y3QgJy3qY.mjs → Bz1JPslneg_PywLn.mjs} +1 -1
- package/browser/esm/{DN4cwAPYCrtR4gS9.mjs → CBtvZnCU5MNRuW6b.mjs} +3 -3
- package/browser/esm/{C5-J1xiO3O1-qaaP.mjs → CWSv0l0QyooaSl9L.mjs} +2 -2
- package/browser/esm/{iM5uEM9H4e8HGt5y.mjs → Cq9FaaUpYJPogPlO.mjs} +2 -2
- package/browser/esm/{CppDmJ4ckCH3alQf.mjs → D0TdGLsNoKJ8y8nS.mjs} +2 -2
- package/browser/esm/{GmQ9XFFY3hi1L_Ej.mjs → D5VhIdFEqZBP23Ch.mjs} +1 -1
- package/browser/esm/{BlZiWp3SB3wH5O38.mjs → DAmyMhko6L63rwJo.mjs} +2 -2
- package/browser/esm/{DE7MVTTfExTzvyMW.mjs → DKyW2a-ZhqkFjZvH.mjs} +2 -2
- package/browser/esm/{CIbDvsCeLOFHzzId.mjs → DSAOtFgAoMMKXSJb.mjs} +3 -3
- package/browser/esm/{CNLLwRPWnd4PJgPO.mjs → De_bbgjFGMBk8KXa.mjs} +3 -3
- package/browser/esm/{D8VPmFDvXDE778_x.mjs → Dkw9Yr0Bp5RI5pRw.mjs} +2 -2
- package/browser/esm/{DEEnXLhYlUARg6MU.mjs → MplcRTnOYfsuQGe3.mjs} +3 -3
- package/browser/esm/{Bo74PCF42KVYJF0j.mjs → U9pABiBV0P__iZJE.mjs} +3 -3
- package/browser/esm/{C2Eke_9Dj_m6mtMj.mjs → _7FBRywOYc4gCFK2.mjs} +2 -2
- package/browser/esm/{DlEshYp6NPfHxFvI.mjs → cLX3kRi9vDkGiZwr.mjs} +2 -2
- package/browser/esm/index.mjs +8 -8
- package/browser/esm/{Dv3hSCyjvwo6GcH1.mjs → krJU2tCMk9QwcRcw.mjs} +2 -2
- package/node/esm/{OmUP1AfaJcOxWQAg.mjs → BSj2vMFtYCJk4miD.mjs} +12 -12
- package/node/esm/{DVaQ6xIbKQgBk0uw.mjs → Byoa9Sx18Y73xJBM.mjs} +1 -1
- package/node/esm/{BI8XFczUY--Db2n3.mjs → C0yEFO9L8odxQW-z.mjs} +1 -1
- package/node/esm/{DvMAUBSQsZmIsRxi.mjs → C6ookLy8qjozoGUP.mjs} +1 -1
- package/node/esm/{DN-bhyNbuBbNB0Ky.mjs → CF-mBw8E2TnnbVJp.mjs} +1 -1
- package/node/esm/{cJDXopFIX6f3_oi3.mjs → CQtseVjtpzUKq41p.mjs} +1 -1
- package/node/esm/{BoDCV8cDmFVAYtaW.mjs → C_xnlCmxuBdmK2nV.mjs} +1 -1
- package/node/esm/{C0M1VbsIRuRauUI-.mjs → CvZ05tWUwCH6MJas.mjs} +2 -2
- package/node/esm/{BJi0FlhIqCMEwROu.mjs → D1uCpJvXqZ16A3-X.mjs} +1 -1
- package/node/esm/{Dbv0IltYad9SQrj3.mjs → DbzH9CwsCrtCs4Ug.mjs} +1 -1
- package/node/esm/{DVshSSmP5QZU7GoY.mjs → DdBJbvx8UwH8CmkE.mjs} +1 -1
- package/node/esm/{DAji2BXelmIUxioS.mjs → DlNtuQ_K-rgj0iJU.mjs} +1 -1
- package/node/esm/{BgxeTfCn3jZHGwd7.mjs → Dsc5FSbIPxmlRzwV.mjs} +8 -8
- package/node/esm/index.mjs +4 -4
- package/node/esm/{C_oV7ldFStOF_fAd.mjs → k8Q5jiL-22BAHe4i.mjs} +2 -2
- package/node/esm/{CCWQ116Z67Kz78Uo.mjs → oLdQArapyVclkMMy.mjs} +1 -1
- package/node/esm/{BMoRatciTqOi1HkT.mjs → pZBq3MVKHmZiBS8U.mjs} +1 -1
- package/package.json +9 -9
- package/browser/cjs/D948H7ell-f87BX3.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
8
|
-
import { t } from "./
|
|
7
|
+
import { n as e } from "./Dkw9Yr0Bp5RI5pRw.mjs";
|
|
8
|
+
import { t } from "./DSAOtFgAoMMKXSJb.mjs";
|
|
9
9
|
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
10
|
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
11
|
import { memo as a, useEffect as o, useId as ee, useMemo as s, useRef as c, useState as l } from "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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as t, n, r, t as i } from "./
|
|
7
|
+
import { a as e, i as t, n, r, t as i } from "./MplcRTnOYfsuQGe3.mjs";
|
|
8
8
|
import { VERSION as a } from "@sheetxl/sdk";
|
|
9
9
|
import { LogoTextNoPaddingIcon as o } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as s, useTranslator as c } from "@sheetxl/utils-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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./Bz1JPslneg_PywLn.mjs";
|
|
8
8
|
import { ReactUtils as t } from "@sheetxl/utils-react";
|
|
9
9
|
import { Component as n, PureComponent as r, memo as i, useCallback as a, useLayoutEffect as o, useState as s } from "react";
|
|
10
10
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -116,7 +116,7 @@ function F(n) {
|
|
|
116
116
|
}, [C, r]), K = u(() => F ? G.filter((e) => e.scope === F) : G, [G, F]), [q, se] = d(null);
|
|
117
117
|
l(() => {
|
|
118
118
|
let e = !1;
|
|
119
|
-
return import("./
|
|
119
|
+
return import("./D5VhIdFEqZBP23Ch.mjs").then((t) => {
|
|
120
120
|
e || se(new t.default(K, {
|
|
121
121
|
threshold: .3,
|
|
122
122
|
ignoreLocation: !0,
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e, r as t, t as n } from "./
|
|
7
|
+
import { n as e, r as t, t as n } from "./DKyW2a-ZhqkFjZvH.mjs";
|
|
8
8
|
import { IRange as r, ISort as i, Sort as a } from "@sheetxl/sdk";
|
|
9
9
|
import { DynamicIcon as o, useCallbackRef as s, useTranslator as c } from "@sheetxl/utils-react";
|
|
10
10
|
import { memo as l, useMemo as u, useRef as d, useState as f } from "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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BaEXUwMO4qxI8cAG.mjs";
|
|
8
8
|
import t, { createContext as n, memo as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
|
|
9
9
|
import { jsx as f } from "react/jsx-runtime";
|
|
10
10
|
import { Box as p } from "@mui/material";
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { r as t } from "./
|
|
7
|
+
import { t as e } from "./BaEXUwMO4qxI8cAG.mjs";
|
|
8
|
+
import { r as t } from "./Dkw9Yr0Bp5RI5pRw.mjs";
|
|
9
9
|
import { useInputField as n } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as r, useTextSelectionDrag as i, useTranslator as a } from "@sheetxl/utils-react";
|
|
11
11
|
import { forwardRef as o, memo as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d } 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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
8
|
-
import { t } from "./
|
|
7
|
+
import { n as e } from "./Dkw9Yr0Bp5RI5pRw.mjs";
|
|
8
|
+
import { t } from "./DSAOtFgAoMMKXSJb.mjs";
|
|
9
9
|
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
10
|
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
11
|
import { memo as a, useCallback as o, useMemo as s, useState as c } from "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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BaEXUwMO4qxI8cAG.mjs";
|
|
8
8
|
import { useFormulaInput as ee, useFormulaInputParts as t } from "@sheetxl/react";
|
|
9
9
|
import { DynamicIcon as n, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
10
|
import i, { forwardRef as a, memo as o, useEffect as s, useId as c, useImperativeHandle as l, useMemo as te, useRef as u } from "react";
|
|
@@ -1,17 +1,17 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BaEXUwMO4qxI8cAG.mjs";
|
|
8
8
|
import { useGridColorScheme as t } from "@sheetxl/react";
|
|
9
9
|
import { DynamicIcon as n, ReactUtils as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
10
10
|
import { forwardRef as a, memo as o, useCallback as s, useEffect as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
11
11
|
import { ExhibitIconButton as p } from "@sheetxl/utils-mui";
|
|
12
12
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
13
|
import { Box as g, Button as _, ButtonBase as v, InputAdornment as y, Skeleton as b, TextField as x, Typography as S } from "@mui/material";
|
|
14
|
-
import { listResources as C } from "@sheetxl/utils
|
|
14
|
+
import { listResources as C } from "@sheetxl/utils";
|
|
15
15
|
var w = "8 / 5", T = (e) => {
|
|
16
16
|
let { entry: n } = e, r = (t() === "dark" ? n.thumbnailDarkUrl : void 0) ?? n.thumbnailUrl;
|
|
17
17
|
return m(E, { src: r }, r);
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
8
|
-
import { t } from "./
|
|
7
|
+
import { n as e } from "./Dkw9Yr0Bp5RI5pRw.mjs";
|
|
8
|
+
import { t } from "./DSAOtFgAoMMKXSJb.mjs";
|
|
9
9
|
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
10
|
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
11
|
import { memo as a, useCallback as o, useMemo as s, useState as c } from "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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BbIR6fcRDFkeZXY0.mjs";
|
|
8
8
|
import { ICell as t, IRange as n } from "@sheetxl/sdk";
|
|
9
9
|
import { CommandContext as r } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as i, KeyCodes as a, KeyModifiers as o, useCallbackRef as s, useTranslator as c } from "@sheetxl/utils-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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as t, n, r } from "./
|
|
7
|
+
import { a as e, i as t, n, r } from "./MplcRTnOYfsuQGe3.mjs";
|
|
8
8
|
import { useTranslator as i } from "@sheetxl/utils-react";
|
|
9
9
|
import { useCallback as a, useMemo as o, useState as s } from "react";
|
|
10
10
|
import { InternalWindow as c } from "@sheetxl/utils-mui";
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._sheetxl-reset_11z3j_1{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{user-select:none;grid-template-columns:1fr;display:grid;@container (width>600px){grid-template-rows:repeat(3,auto);grid-auto-columns:1fr;grid-auto-flow:column;gap:2px}}._range-row_1yps2_1{flex-direction:column;flex:100%;align-items:center;row-gap:8px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_1yps2_17{flex-direction:column;align-items:start;gap:4px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-evenly;align-items:center}}._details-panel_mdq6z_1{box-sizing:border-box;background:0 0;flex-direction:column;flex:auto;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden}._editor_mdq6z_13{flex-direction:column;height:100%;display:flex}._editor-panel_mdq6z_19{flex-direction:column;display:flex}._editor-buttons_mdq6z_24{justify-content:flex-end;display:flex}._card_mdq6z_29{flex-direction:column;display:flex}._stats-items_151a8_1{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;min-width:0;max-height:1rem;display:flex;overflow:hidden}._stats-item_151a8_1{flex-shrink:0}._stats-item-label_151a8_15{user-select:none;white-space:nowrap;cursor:pointer;border-radius:2px;align-items:center;gap:4px;padding:0 4px;transition:background-color .2s;display:flex}._stats-item-label_151a8_15:hover{background-color:#0000000a}._stats-item-label_151a8_15:active{background-color:#00000014}._formula-bar_uer84_1{flex-direction:row;flex:100%;align-items:start;display:flex}._card_h0jnt_7{width:100%}._actionRoot_h0jnt_11{justify-content:space-between;padding:8px 8px 8px 16px}._icons_h0jnt_16{align-items:center;margin-left:auto;display:flex}._expand_h0jnt_22{color:var(--sxl-color-error-content);padding:8px;transition:all .2s ease-in-out;transform:rotate(0)}._expandOpen_h0jnt_29{transform:rotate(180deg)}._stackTraceContainer_h0jnt_33{padding:16px}._paper_h0jnt_37{background-color:#fff;padding:16px}._checkIcon_h0jnt_42{padding-right:4px;font-size:20px}._button_h0jnt_47{text-transform:none;padding:0}._styled-resizer_fdl5y_3{background-color:var(--sxl-color-neutral,grey)}._styled-resizer_fdl5y_3:hover,.splitPane.dragging ._styled-resizer_fdl5y_3{background-color:var(--sxl-color-primary,blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.3
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
import { $ as e, $t as t, A as n, An as r, At as i, B as a, C as o, Cn as s, Ct as c, D as l, Dn as u, Dt as d, E as f, En as p, Et as m, F as h, G as g, H as _, I as v, J as y, Jt as b, K as x, L as S, M as C, Mn as ee, N as te, Nn as ne, O as re, On as ie, Ot as ae, P as oe, Pn as se, Q as ce, Qt as le, R as ue, S as de, Sn as fe, St as pe, T as me, Tn as he, Tt as ge, U as _e, V as ve, W as ye, X as be, Xt as xe, Y as Se, Yt as Ce, Z as we, Zt as Te, _ as Ee, _n as De, _t as Oe, an as ke, at as Ae, b as je, bn as Me, bt as Ne, c as Pe, cn as Fe, ct as Ie, d as Le, dn as Re, dt as ze, en as Be, et as Ve, f as He, fn as Ue, ft as We, g as Ge, gn as Ke, gt as qe, h as Je, hn as Ye, ht as Xe, i as Ze, in as Qe, it as $e, j as et, jn as tt, k as nt, kn as rt, kt as it, ln as at, lt as ot, m as st, mn as ct, mt as lt, n as ut, nn as dt, nt as ft, ot as pt, p as mt, pn as ht, pt as gt, q as _t, qt as vt, r as yt, rn as bt, rt as xt, s as St, sn as Ct, st as wt, tn as Tt, tt as Et, u as Dt, un as Ot, ut as kt, v as At, vn as jt, vt as Mt, w as Nt, wn as Pt, wt as Ft, x as It, xn as Lt, xt as Rt, y as zt, yn as Bt, yt as Vt, z as Ht } from "./
|
|
9
|
-
import { t as Ut } from "./
|
|
10
|
-
import { i as w, n as T, r as E } from "./
|
|
11
|
-
import { n as Wt, t as Gt } from "./
|
|
12
|
-
import { t as Kt } from "./
|
|
13
|
-
import { a as qt, i as Jt, n as Yt, o as Xt, r as Zt, t as Qt } from "./
|
|
8
|
+
import { $ as e, $t as t, A as n, An as r, At as i, B as a, C as o, Cn as s, Ct as c, D as l, Dn as u, Dt as d, E as f, En as p, Et as m, F as h, G as g, H as _, I as v, J as y, Jt as b, K as x, L as S, M as C, Mn as ee, N as te, Nn as ne, O as re, On as ie, Ot as ae, P as oe, Pn as se, Q as ce, Qt as le, R as ue, S as de, Sn as fe, St as pe, T as me, Tn as he, Tt as ge, U as _e, V as ve, W as ye, X as be, Xt as xe, Y as Se, Yt as Ce, Z as we, Zt as Te, _ as Ee, _n as De, _t as Oe, an as ke, at as Ae, b as je, bn as Me, bt as Ne, c as Pe, cn as Fe, ct as Ie, d as Le, dn as Re, dt as ze, en as Be, et as Ve, f as He, fn as Ue, ft as We, g as Ge, gn as Ke, gt as qe, h as Je, hn as Ye, ht as Xe, i as Ze, in as Qe, it as $e, j as et, jn as tt, k as nt, kn as rt, kt as it, ln as at, lt as ot, m as st, mn as ct, mt as lt, n as ut, nn as dt, nt as ft, ot as pt, p as mt, pn as ht, pt as gt, q as _t, qt as vt, r as yt, rn as bt, rt as xt, s as St, sn as Ct, st as wt, tn as Tt, tt as Et, u as Dt, un as Ot, ut as kt, v as At, vn as jt, vt as Mt, w as Nt, wn as Pt, wt as Ft, x as It, xn as Lt, xt as Rt, y as zt, yn as Bt, yt as Vt, z as Ht } from "./B1W2xsRdzsYUrUHN.mjs";
|
|
9
|
+
import { t as Ut } from "./BaEXUwMO4qxI8cAG.mjs";
|
|
10
|
+
import { i as w, n as T, r as E } from "./BbIR6fcRDFkeZXY0.mjs";
|
|
11
|
+
import { n as Wt, t as Gt } from "./Dkw9Yr0Bp5RI5pRw.mjs";
|
|
12
|
+
import { t as Kt } from "./DSAOtFgAoMMKXSJb.mjs";
|
|
13
|
+
import { a as qt, i as Jt, n as Yt, o as Xt, r as Zt, t as Qt } from "./krJU2tCMk9QwcRcw.mjs";
|
|
14
14
|
import { LicenseManager as $t, LicenseManager as en } from "@sheetxl/sdk";
|
|
15
15
|
import { DefaultTaskPaneRegistry as tn, ThemeStateKey as nn, WorkbookIO as rn, WorkbookIO as D, setPrintExamplesOnLoad as an, useModelListener as on, useRangeListener as sn, useWindowChrome as cn, useWorkbook as ln, useWorkbookFormat as un, useWorkbookName as dn } from "@sheetxl/react";
|
|
16
16
|
import { CommandButtonType as O, createThemeScopeClass as fn, lazyComponent as pn, useCallbackRef as k, useCommandButtonEntry as A, useCommandButtonRegistry as mn, useCommands as j, usePersistenceState as hn, useResolvedThemeMode as gn, useTranslator as _n } from "@sheetxl/utils-react";
|
|
@@ -348,7 +348,7 @@ var Pn = An({
|
|
|
348
348
|
]
|
|
349
349
|
})
|
|
350
350
|
});
|
|
351
|
-
}, Fn = /* @__PURE__ */ new Set(/* @__PURE__ */ "square.elevation.variant.title.onKeyDown.workbook.onWorkbookChange.onDocumentError.propsDocumentError.renderDocumentError.propsDocumentLoading.renderDocumentLoading.propsWorkbook.onWorkbookLoad.propsTaskPaneArea.renderTaskPaneArea.taskPaneSide.logo.onDirtyChange.propsDocumentTitle.showFormulaBar.propsFormulaBar.renderFormulaBar.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), In = () => G(W, {}), Ln = kn("studio:eagerStudio", () => import("./
|
|
351
|
+
}, Fn = /* @__PURE__ */ new Set(/* @__PURE__ */ "square.elevation.variant.title.onKeyDown.workbook.onWorkbookChange.onDocumentError.propsDocumentError.renderDocumentError.propsDocumentLoading.renderDocumentLoading.propsWorkbook.onWorkbookLoad.propsTaskPaneArea.renderTaskPaneArea.taskPaneSide.logo.onDirtyChange.propsDocumentTitle.showFormulaBar.propsFormulaBar.renderFormulaBar.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), In = () => G(W, {}), Ln = kn("studio:eagerStudio", () => import("./BmThVkDnqURs7csb.mjs"), { tier: "startup" }), Rn = ({ error: e, onShown: t }) => (I(() => {
|
|
352
352
|
t();
|
|
353
353
|
}, []), G(Sn, { error: e })), zn = P(N((e, t) => {
|
|
354
354
|
let { sx: n, style: r, className: i, licenseKey: a, prefetch: o = "common", renderDocumentLoading: s = St, propsDocumentLoading: c, onWorkbookLoad: l, onDocumentError: u, ...d } = e, [f, p] = ((e) => {
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e, t } from "./
|
|
7
|
+
import { n as e, t } from "./Dkw9Yr0Bp5RI5pRw.mjs";
|
|
8
8
|
import { FunctionArgIcons as n, FunctionPreviewContent as r, FunctionSignature as i, NamedItemLabel as a, argTypeKey as o, assembleCall as s, createFunctionDescriptor as c, createFunctionHint as l, formatEvalValue as u, toArgRows as d, useWorkbook as f } from "@sheetxl/react";
|
|
9
9
|
import { DynamicIcon as p, KeyCodes as m, useCallbackRef as h, useTranslator as ee } from "@sheetxl/utils-react";
|
|
10
10
|
import { memo as g, useEffect as _, useId as te, useMemo as v, useRef as y, useState as b } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -2918,7 +2918,7 @@ function Zn(e, t) {
|
|
|
2918
2918
|
s = !0, i && (i.current = null);
|
|
2919
2919
|
};
|
|
2920
2920
|
}
|
|
2921
|
-
var er = St(vo("studio:shortcutKeysDialog", () => import("./
|
|
2921
|
+
var er = St(vo("studio:shortcutKeysDialog", () => import("./D1uCpJvXqZ16A3-X.mjs")).load);
|
|
2922
2922
|
D(), O();
|
|
2923
2923
|
var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
|
|
2924
2924
|
const t = (e) => {
|
|
@@ -3223,16 +3223,16 @@ var rr = ({ renderWorkbook: e }) => {
|
|
|
3223
3223
|
});
|
|
3224
3224
|
ar.displayName = "CommandsWrapper";
|
|
3225
3225
|
var lr = {
|
|
3226
|
-
sort: vo("studio:sortDialog", () => import("./
|
|
3227
|
-
hyperlink: vo("studio:hyperlinkDialog", () => import("./
|
|
3228
|
-
comments: vo("studio:commentsDialog", () => import("./
|
|
3229
|
-
find: vo("studio:findReplaceWindow", () => import("./
|
|
3230
|
-
tableNew: vo("studio:tableNewDialog", () => import("./
|
|
3231
|
-
namedDetails: vo("studio:namedReferenceDialog", () => import("./
|
|
3232
|
-
insertFunction: vo("studio:insertFunctionDialog", () => import("./
|
|
3233
|
-
resizeHeader: vo("studio:resizeHeaderDialog", () => import("./
|
|
3234
|
-
fillSeries: vo("studio:fillSeriesDialog", () => import("./
|
|
3235
|
-
workbookStatistics: vo("studio:workbookStatisticsDialog", () => import("./
|
|
3226
|
+
sort: vo("studio:sortDialog", () => import("./DdBJbvx8UwH8CmkE.mjs"), { tier: "common" }).load,
|
|
3227
|
+
hyperlink: vo("studio:hyperlinkDialog", () => import("./DbzH9CwsCrtCs4Ug.mjs"), { tier: "common" }).load,
|
|
3228
|
+
comments: vo("studio:commentsDialog", () => import("./C0yEFO9L8odxQW-z.mjs"), { tier: "common" }).load,
|
|
3229
|
+
find: vo("studio:findReplaceWindow", () => import("./Byoa9Sx18Y73xJBM.mjs"), { tier: "common" }).load,
|
|
3230
|
+
tableNew: vo("studio:tableNewDialog", () => import("./DlNtuQ_K-rgj0iJU.mjs"), { tier: "common" }).load,
|
|
3231
|
+
namedDetails: vo("studio:namedReferenceDialog", () => import("./C_xnlCmxuBdmK2nV.mjs")).load,
|
|
3232
|
+
insertFunction: vo("studio:insertFunctionDialog", () => import("./pZBq3MVKHmZiBS8U.mjs"), { tier: "common" }).load,
|
|
3233
|
+
resizeHeader: vo("studio:resizeHeaderDialog", () => import("./C6ookLy8qjozoGUP.mjs")).load,
|
|
3234
|
+
fillSeries: vo("studio:fillSeriesDialog", () => import("./CQtseVjtpzUKq41p.mjs")).load,
|
|
3235
|
+
workbookStatistics: vo("studio:workbookStatisticsDialog", () => import("./oLdQArapyVclkMMy.mjs")).load,
|
|
3236
3236
|
password: vo("studio:passwordDialog", () => import("./index.mjs").then((e) => e.o)).load
|
|
3237
3237
|
}, ir = ["find"], sr = rt((e) => {
|
|
3238
3238
|
const { children: t } = e, o = Po(), n = o ? o.enqueueSnackbar : () => {}, r = o ? o.closeSnackbar : () => {}, a = dt(/* @__PURE__ */ new Set()), l = dt(null), i = dt(null), [s, d] = ct({
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as o, n as t, r as i, t as l } from "./
|
|
7
|
+
import { a as e, i as o, n as t, r as i, t as l } from "./Dsc5FSbIPxmlRzwV.mjs";
|
|
8
8
|
import { VERSION as n } from "@sheetxl/sdk";
|
|
9
9
|
import { LogoTextNoPaddingIcon as a } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as r, useTranslator as d } from "@sheetxl/utils-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -10,8 +10,8 @@ import { forwardRef as n, memo as o, useCallback as l, useEffect as s, useLayout
|
|
|
10
10
|
import { ExhibitIconButton as u } from "@sheetxl/utils-mui";
|
|
11
11
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
12
|
import { Box as f, Button as y, ButtonBase as x, InputAdornment as b, Skeleton as v, TextField as w, Typography as k } from "@mui/material";
|
|
13
|
-
import C from "
|
|
14
|
-
import
|
|
13
|
+
import { listResources as C } from "@sheetxl/utils";
|
|
14
|
+
import $ from "clsx";
|
|
15
15
|
var A = "8 / 5", M = (t) => {
|
|
16
16
|
const { entry: r } = t, a = ("dark" === e() ? r.thumbnailDarkUrl : void 0) ?? r.thumbnailUrl;
|
|
17
17
|
return h(D, { src: a }, a);
|
|
@@ -123,7 +123,7 @@ var A = "8 / 5", M = (t) => {
|
|
|
123
123
|
})
|
|
124
124
|
]
|
|
125
125
|
}), E = o(n((e, t) => {
|
|
126
|
-
const { catalog: i, onSelect: n, filter: o, groupBy: l, renderTile: u, tileMinWidth: x = 180, emptyLabel: b, visibleRows: v, sx: w = r.EmptyCssProperties, style:
|
|
126
|
+
const { catalog: i, onSelect: n, filter: o, groupBy: l, renderTile: u, tileMinWidth: x = 180, emptyLabel: b, visibleRows: v, sx: w = r.EmptyCssProperties, style: C, className: A, onKeyDown: M, ...D } = e, E = a(), N = p(null), [U, z] = m(0), T = p(null);
|
|
127
127
|
T.current = () => {
|
|
128
128
|
const e = N.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
|
|
129
129
|
t && z(t);
|
|
@@ -228,15 +228,15 @@ var A = "8 / 5", M = (t) => {
|
|
|
228
228
|
})]
|
|
229
229
|
}, e.key ?? "")), h(f, {
|
|
230
230
|
ref: t,
|
|
231
|
-
className:
|
|
231
|
+
className: $(A, "template-panel"),
|
|
232
232
|
sx: w,
|
|
233
233
|
style: v && U ? {
|
|
234
234
|
boxSizing: "content-box",
|
|
235
235
|
scrollbarGutter: "stable",
|
|
236
236
|
height: `${Math.ceil(v * U + 8 * (v - 1))}px`,
|
|
237
237
|
minHeight: `${Math.ceil(U)}px`,
|
|
238
|
-
|
|
239
|
-
} :
|
|
238
|
+
...C
|
|
239
|
+
} : C,
|
|
240
240
|
...D,
|
|
241
241
|
children: h(f, {
|
|
242
242
|
ref: N,
|
|
@@ -331,7 +331,7 @@ var N = (e, t, r) => {
|
|
|
331
331
|
}, L = (e) => "string" == typeof e && e ? e : void 0, P = /* @__PURE__ */ new Map(), W = (e = z) => {
|
|
332
332
|
let t = P.get(e);
|
|
333
333
|
return t || (t = (async () => {
|
|
334
|
-
const t = (await
|
|
334
|
+
const t = (await C("templates", T, e)).find((e) => void 0 !== e.meta?.schema);
|
|
335
335
|
if (!t) throw new Error(`No template catalog found at '${e}'.`);
|
|
336
336
|
return 1 !== Math.floor(Number(t.meta?.schema)) ? (console.warn(`Template catalog at '${e}' has schema ${t.meta?.schema}; expected 1.`), {
|
|
337
337
|
categories: [],
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1527,7 +1527,7 @@ var Bn = {
|
|
|
1527
1527
|
a?.set(d, s);
|
|
1528
1528
|
const c = s.toRGBA().toString();
|
|
1529
1529
|
l?.set(c, s);
|
|
1530
|
-
}, Vn = We(_o("studio:customColorPanel", () => import("./
|
|
1530
|
+
}, Vn = We(_o("studio:customColorPanel", () => import("./CF-mBw8E2TnnbVJp.mjs")).load, { renderError: (e) => ro(Et, { error: e }) }), Gn = pt(dt((e, o) => {
|
|
1531
1531
|
const { selectedColor: n = null, previewColor: r = e.selectedColor ?? null, recentColors: a, schemeLookup: l, disableAlpha: i = !1, previewDebounceTime: s = 100, initialPanelType: d, defaultButtonSize: c = 24, width: p, onElementLoad: m, onDone: u, onEyeDropStart: g, onEyeDropStop: h, onPreviewColor: f, onPreviewColorImmediate: b, onSelectColor: x, autoColor: w, autoColorLabel: k, autoColorLabelKey: S, autoColorPosition: v = In.Start, compareRGB: C = !1, darkMode: T = !1, style: F, ...D } = e, P = nt(), R = k ?? P(S ?? Zo("color.automatic")), N = r || n, B = Ve(f ?? ((e) => {}), [f]), I = Ve(b ?? ((e) => {}), [b]), M = Ve(x ?? ((e, t) => {}), [x]), A = Ve(g ?? (() => {}), [g]), L = Ve(h ?? (() => {}), [h]), [O, K] = wt(!1), E = Vo(), z = bt(() => l || t.getDefaultSchemeLookup(), [l]), W = bt(() => {
|
|
1532
1532
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), o = [];
|
|
1533
1533
|
Hn(P("color.scheme.bg1"), "bg1", z, o, e, t), Hn(P("color.scheme.tx1"), "tx1", z, o, e, t), Hn(P("color.scheme.bg2"), "bg2", z, o, e, t), Hn(P("color.scheme.tx2"), "tx2", z, o, e, t), Hn(P("color.scheme.accent", { n: 1 }), "accent1", z, o, e, t), Hn(P("color.scheme.accent", { n: 2 }), "accent2", z, o, e, t), Hn(P("color.scheme.accent", { n: 3 }), "accent3", z, o, e, t), Hn(P("color.scheme.accent", { n: 4 }), "accent4", z, o, e, t), Hn(P("color.scheme.accent", { n: 5 }), "accent5", z, o, e, t), Hn(P("color.scheme.accent", { n: 6 }), "accent6", z, o, e, t);
|
|
@@ -14400,7 +14400,7 @@ var xd = /* @__PURE__ */ new Set([
|
|
|
14400
14400
|
"autoFocus",
|
|
14401
14401
|
"licenseKey",
|
|
14402
14402
|
"prefetch"
|
|
14403
|
-
]), wd = () => ro(no, {}), kd = _o("studio:eagerStudio", () => import("./
|
|
14403
|
+
]), wd = () => ro(no, {}), kd = _o("studio:eagerStudio", () => import("./BSj2vMFtYCJk4miD.mjs"), { tier: "startup" }), Sd = ({ error: e, onShown: t }) => (ut(() => {
|
|
14404
14404
|
t();
|
|
14405
14405
|
}, []), ro(Et, { error: e })), vd = pt(dt((e, t) => {
|
|
14406
14406
|
const { sx: o, style: n, className: r, licenseKey: a, prefetch: l = "common", renderDocumentLoading: i = sd, propsDocumentLoading: s, onWorkbookLoad: d, onDocumentError: c, ...p } = e, [m, u] = ((e) => {
|
|
@@ -14483,7 +14483,7 @@ var xd = /* @__PURE__ */ new Set([
|
|
|
14483
14483
|
});
|
|
14484
14484
|
}));
|
|
14485
14485
|
vd.displayName = "Studio";
|
|
14486
|
-
var Cd = Yt(_o("studio:templateDialog", () => import("./
|
|
14486
|
+
var Cd = Yt(_o("studio:templateDialog", () => import("./k8Q5jiL-22BAHe4i.mjs")).load), Td = _o("studio:welcomeDialog", () => import("./CvZ05tWUwCH6MJas.mjs")), Fd = Yt(Td.load), Dd = pt((e) => {
|
|
14487
14487
|
const { scope: t } = e, { showModal: o } = oo(), n = Xe(), r = xt(void 0), [a, l] = et("studio.welcome.showAtStartup", !0), i = (e, o) => {
|
|
14488
14488
|
t.resolve(e)?.execute(o);
|
|
14489
14489
|
}, s = (e) => {
|
|
@@ -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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as t, n as l, r as a } from "./
|
|
7
|
+
import { a as e, i as t, n as l, r as a } from "./Dsc5FSbIPxmlRzwV.mjs";
|
|
8
8
|
import { useTranslator as i } from "@sheetxl/utils-react";
|
|
9
9
|
import { useCallback as o, useMemo as n, useState as p } from "react";
|
|
10
10
|
import { InternalWindow as s } from "@sheetxl/utils-mui";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/studio-mui",
|
|
3
3
|
"description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.3",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
53
53
|
"@dnd-kit/sortable": "^10.0.0",
|
|
54
54
|
"@dnd-kit/utilities": "^3.2.2",
|
|
55
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
56
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
57
|
-
"@sheetxl/react": "^0.8.0-beta.
|
|
58
|
-
"@sheetxl/scripting-react": "^0.8.0-beta.
|
|
59
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
60
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
61
|
-
"@sheetxl/utils-mui": "^0.8.0-beta.
|
|
62
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
55
|
+
"@sheetxl/grid-react": "^0.8.0-beta.3",
|
|
56
|
+
"@sheetxl/io": "^0.8.0-beta.3",
|
|
57
|
+
"@sheetxl/react": "^0.8.0-beta.3",
|
|
58
|
+
"@sheetxl/scripting-react": "^0.8.0-beta.3",
|
|
59
|
+
"@sheetxl/sdk": "^0.8.0-beta.3",
|
|
60
|
+
"@sheetxl/utils": "^0.8.0-beta.3",
|
|
61
|
+
"@sheetxl/utils-mui": "^0.8.0-beta.3",
|
|
62
|
+
"@sheetxl/utils-react": "^0.8.0-beta.3",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
64
|
"csstype": "^3.2.3",
|
|
65
65
|
"file-saver": "^2.0.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./Bo9Kx3L_XQkGPBJ5.cjs"),t=require("./CPcBvw4ZPwHVTUZF.cjs");let n=require("@sheetxl/react"),r=require("@sheetxl/utils-react"),i=require("react");i=e.n(i,1);let a=require("@sheetxl/utils-mui"),o=require("react/jsx-runtime"),s=require("@mui/material"),c=require("@sheetxl/utils/resource");var l=`8 / 5`,u=e=>{let{entry:t}=e,r=((0,n.useGridColorScheme)()===`dark`?t.thumbnailDarkUrl:void 0)??t.thumbnailUrl;return(0,o.jsx)(d,{src:r},r)},d=e=>{let{src:t}=e,[n,a]=(0,i.useState)(t?`loading`:`failed`);return(0,o.jsx)(s.Box,{className:`template-thumbnail`,sx:{position:`relative`,width:`100%`,aspectRatio:l,overflow:`hidden`,borderRadius:1,border:e=>`1px solid ${e.palette.divider}`,background:e=>e.palette.background.paper,transition:`border-color 150ms, box-shadow 150ms`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:n===`failed`?(0,o.jsx)(r.DynamicIcon,{iconKey:`FileNew`,style:{fontSize:`2.5rem`,opacity:.4}}):(0,o.jsx)(`img`,{src:t,alt:``,loading:`lazy`,draggable:!1,onLoad:()=>a(`loaded`),onError:()=>a(`failed`),style:{width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`top left`,opacity:+(n===`loaded`),transition:`opacity 150ms ease-out`}})})},f=e=>{let{entry:t,category:n,onSelect:r}=e;return(0,o.jsxs)(s.ButtonBase,{className:`template-tile`,disableRipple:!0,onClick:r,"aria-label":n?`${t.title}, ${n.title}`:t.title,title:t.description,sx:{display:`flex`,flexDirection:`column`,alignItems:`stretch`,textAlign:`left`,gap:.75,padding:1,borderRadius:1,"&:hover .template-thumbnail, &.Mui-focusVisible .template-thumbnail":{borderColor:e=>e.palette.primary.main,boxShadow:3},"&.Mui-focusVisible":{outline:e=>`2px solid ${e.palette.primary.main}`,outlineOffset:`-2px`}},children:[(0,o.jsx)(u,{entry:t}),(0,o.jsxs)(s.Box,{sx:{minWidth:0},children:[(0,o.jsx)(s.Typography,{variant:`subtitle2`,component:`div`,noWrap:!0,children:t.title}),n?(0,o.jsx)(s.Typography,{variant:`caption`,component:`div`,noWrap:!0,sx:{color:`text.secondary`},children:n.title}):null]})]})},p=()=>(0,o.jsxs)(s.Box,{sx:{padding:1,display:`flex`,flexDirection:`column`,gap:.75},children:[(0,o.jsx)(s.Skeleton,{variant:`rectangular`,sx:{width:`100%`,height:`auto`,aspectRatio:l,borderRadius:1}}),(0,o.jsx)(s.Skeleton,{variant:`text`,width:`60%`}),(0,o.jsx)(s.Skeleton,{variant:`text`,width:`35%`})]}),m=(0,i.memo)((0,i.forwardRef)((e,n)=>{let{catalog:a,onSelect:c,filter:l,groupBy:u,renderTile:d,tileMinWidth:m=180,emptyLabel:h,visibleRows:g,sx:_=r.ReactUtils.EmptyCssProperties,style:v,className:y,onKeyDown:b,...x}=e,S=(0,r.useTranslator)(),C=(0,i.useRef)(null),[w,T]=(0,i.useState)(0),E=(0,i.useRef)(null);E.current=()=>{let e=C.current?.querySelector(`.template-grid`)?.firstElementChild,t=(e?.offsetHeight?e:e?.firstElementChild)?.getBoundingClientRect().height;t&&T(t)},(0,i.useLayoutEffect)(()=>{g&&E.current?.()}),(0,i.useEffect)(()=>{let e=C.current;if(!g||!e)return;let t=new ResizeObserver(()=>E.current?.());return t.observe(e),()=>t.disconnect()},[g]);let D=(0,i.useMemo)(()=>new Map(a.categories.map(e=>[e.id,e])),[a.categories]),O=(0,i.useMemo)(()=>{let e=l?a.entries.filter(l):a.entries;if(!u)return[{key:null,entries:e}];let t=new Map;for(let e of a.categories)t.set(e.id,[]);for(let n of e){let e=u(n),r=t.get(e);r||t.set(e,r=[]),r.push(n)}return[...t].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,title:D.get(e)?.title??e,entries:t}))},[a.entries,a.categories,D,l,u]),k={display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(${m}px, 1fr))`,gap:`8px`},A;return A=a.status===`loading`?(0,o.jsx)(s.Box,{className:`template-grid`,sx:k,"aria-busy":`true`,"aria-label":S(`template.loading`),children:Array.from({length:6},(e,t)=>(0,o.jsx)(p,{},t))}):a.status===`error`?(0,o.jsxs)(s.Box,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1,padding:4,textAlign:`center`},children:[(0,o.jsx)(s.Typography,{variant:`body2`,sx:{color:`text.secondary`},children:S(`template.loadFailed`)}),(0,o.jsx)(s.Button,{variant:`outlined`,size:`small`,onClick:a.retry,children:S(`template.retry`)})]}):O.every(e=>e.entries.length===0)?(0,o.jsx)(s.Typography,{variant:`body2`,sx:{color:`text.secondary`,padding:4,textAlign:`center`},children:h??S(`template.empty`)}):O.map(e=>(0,o.jsxs)(s.Box,{role:`group`,"aria-label":e.title,children:[e.title?(0,o.jsx)(s.Typography,{variant:`overline`,component:`div`,sx:{color:`text.secondary`,paddingX:1},children:e.title}):null,(0,o.jsx)(s.Box,{className:`template-grid`,sx:k,children:e.entries.map(e=>{let t={category:D.get(e.category),onSelect:()=>c?.(e)};return d?(0,o.jsx)(s.Box,{sx:{display:`contents`},children:d(e,t)},e.id):(0,o.jsx)(f,{entry:e,...t},e.id)})})]},e.key??``)),(0,o.jsx)(s.Box,{ref:n,className:t.t(y,`template-panel`),sx:_,style:g&&w?{boxSizing:`content-box`,scrollbarGutter:`stable`,height:`${Math.ceil(g*w+8*(g-1))}px`,minHeight:`${Math.ceil(w)}px`,...v}:v,...x,children:(0,o.jsx)(s.Box,{ref:C,onKeyDown:e=>{if(b?.(e),e.defaultPrevented)return;let t=C.current;if(!t)return;let n=Array.from(t.querySelectorAll(`.template-tile`)),r=n.indexOf(document.activeElement);if(r<0)return;let i=n[r].offsetTop,a=n.findIndex(e=>e.offsetTop===i&&e.parentElement===n[r].parentElement),o=0;for(;n[a+o]?.offsetTop===i;)o++;let s=r;switch(e.key){case`ArrowRight`:s=r+1;break;case`ArrowLeft`:s=r-1;break;case`ArrowDown`:s=r+Math.max(1,o);break;case`ArrowUp`:s=r-Math.max(1,o);break;case`Home`:s=0;break;case`End`:s=n.length-1;break;default:return}s=Math.max(0,Math.min(n.length-1,s)),e.preventDefault(),n[s].focus()},children:A})})}));m.displayName=`TemplatePanel`;var h=(e,t,n)=>{let r=t.trim().toLowerCase();return!r||[e.title,e.description,n?.title,...e.tags??[]].some(e=>e?.toLowerCase().includes(r))},g=e=>{let{value:t,onChange:n,sx:i}=e,c=(0,r.useTranslator)();return(0,o.jsx)(s.TextField,{size:`small`,value:t,placeholder:c(`template.search`),onChange:e=>n(e.target.value),onKeyDown:e=>{e.key===`Escape`&&t&&(e.stopPropagation(),n(``))},sx:i,slotProps:{input:{sx:{backgroundColor:`background.paper`},startAdornment:(0,o.jsx)(s.InputAdornment,{position:`start`,children:(0,o.jsx)(r.DynamicIcon,{iconKey:`Find`})}),endAdornment:t?(0,o.jsx)(s.InputAdornment,{position:`end`,children:(0,o.jsx)(a.ExhibitIconButton,{"aria-label":c(`template.clearSearch`),propsTooltip:{label:c(`template.clearSearch`)},onMouseDown:e=>{e.button===0&&e.preventDefault()},onClick:()=>n(``),icon:(0,o.jsx)(r.DynamicIcon,{iconKey:`Close`}),size:`small`})}):void 0},htmlInput:{spellCheck:!1,autoComplete:`off`,"aria-label":c(`template.search`)}}})},_=`https://unpkg.com/@sheetxl/workbook-templates/dist`,v=`workbook-templates`,y=e=>e.replace(/\.[^/.]+$/,``).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/[-_]+/g,` `).trim().replace(/\b\w/g,e=>e.toUpperCase()),b=(e,t)=>{let n=`${e}${e.endsWith(`/`)?``:`/`}${v}/${t}`;return typeof document>`u`?n:new URL(n,document.baseURI).href},x=e=>typeof e==`string`&&e?e:void 0,S=new Map,C=(e=_)=>{let t=S.get(e);return t||(t=(async()=>{let t=(await(0,c.listResources)(`templates`,v,e)).find(e=>e.meta?.schema!==void 0);if(!t)throw Error(`No template catalog found at '${e}'.`);return Math.floor(Number(t.meta?.schema))===1?((e,t)=>{let n=Array.isArray(e.meta?.categories)?e.meta.categories:[],r=[],i=new Set;for(let e of n){let t=x(e?.id);t&&!i.has(t)&&(i.add(t),r.push({id:t,title:x(e.title)??y(t),description:x(e.description),icon:x(e.icon)}))}let a=[];for(let n of e.entries){let e=n.path,o=e.split(`/`);if(o.length!==2||!/\.(?:xlsx|sxl|csv)$/i.test(e))continue;let s=x(n.category)??o[0];i.has(s)||(i.add(s),r.push({id:s,title:y(s)}));let c=x(n.thumbnail),l=x(n.thumbnailDark);a.push({id:e,title:x(n.title)??y(o[1]),category:s,description:x(n.description),tags:Array.isArray(n.tags)?n.tags.filter(e=>typeof e==`string`):void 0,thumbnailUrl:c?b(t,c):void 0,thumbnailDarkUrl:l?b(t,l):void 0,sourceUrl:b(t,e)})}return{categories:r,entries:a}})(t,e):(console.warn(`Template catalog at '${e}' has schema ${t.meta?.schema}; expected 1.`),{categories:[],entries:[]})})(),S.set(e,t),t.catch(()=>{S.delete(e)})),t},w=(e={})=>{let{path:t=_}=e,[n,r]=(0,i.useState)(0),[a,o]=(0,i.useState)({status:`loading`,categories:[],entries:[]});return(0,i.useEffect)(()=>{let e=!1;return o(e=>e.status===`loading`?e:{status:`loading`,categories:[],entries:[]}),C(t).then(t=>{e||o({status:`ready`,...t})},t=>{e||o({status:`error`,categories:[],entries:[],error:t})}),()=>{e=!0}},[t,n]),{...a,retry:(0,i.useCallback)(()=>{r(e=>e+1)},[])}};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return C}});
|