@sheetxl/studio-vanilla 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{C-YXuaIn5H1e3gGL.cjs → -aNm3r-RpjcRRCbw.cjs} +2 -2
- package/browser/cjs/6e91IXsvk9_k3W5c.cjs +6 -0
- package/browser/cjs/{TJOJ_VEsTmCJ4d0P.cjs → BLHbDre9R0bvyb9G.cjs} +2 -2
- package/browser/cjs/BN0MiwKQ8NjKXgue.cjs +7 -0
- package/browser/cjs/BNtn_2pcq6Dd-2HL.cjs +11 -0
- package/browser/cjs/{-mcHZst9U0zNDZao.cjs → BW_fZwvTtMLqteuJ.cjs} +1 -1
- package/browser/cjs/{Dh5RBi3PW-5ty2QU.cjs → Bg9KIoDuqtkhIYfN.cjs} +1 -1
- package/browser/cjs/{D4a_UoEEluqny9gi.cjs → BiiW2FlRZHxGIWso.cjs} +1 -1
- package/browser/cjs/{pPJG7KbyLkcVi77H.cjs → Biyqj-Wu75uxLHv1.cjs} +2 -2
- package/browser/cjs/BwocMiKAPb8s__1Z.cjs +6 -0
- package/browser/cjs/{CSZ-Bfo-TZpVumqr.cjs → CdWBtYv7LuuDLPL2.cjs} +1 -1
- package/browser/cjs/CuY7mAREmYhHuYWx.cjs +6 -0
- package/browser/cjs/CvESC6HiL0-peppq.cjs +12 -0
- package/browser/cjs/{VXCGmehGJvuKNhXg.cjs → Cxt39d6l0pu9k1vT.cjs} +8 -8
- package/browser/cjs/{DbSTC90BuNxq2k-j.cjs → D7NgrO__M-IUmM8o.cjs} +1 -1
- package/browser/cjs/{DnkioRlJqXrbcW-8.cjs → DCWZ2ZkLp-Horeca.cjs} +1 -1
- package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +301 -0
- package/browser/cjs/{Bhq8u8Q04XpLmF4K.cjs → DIawrhwQ7E_1l99b.cjs} +6 -6
- package/browser/cjs/{BoBKeal3_qovATWu.cjs → DKit140jXAUUSf-_.cjs} +2 -2
- package/browser/cjs/DKsZXMMHWKP9IZ4E.cjs +12 -0
- package/browser/cjs/DeAt9vyyaeB2vbxQ.cjs +6 -0
- package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +6 -0
- package/browser/cjs/Ya4f5p9go_UndgNy.cjs +6 -0
- package/browser/cjs/{BnYTCcol8RjTTC3U.cjs → hSI9QVPgIxqt3pXc.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/qjPE6k7aYlu-R90s.cjs +6 -0
- package/browser/cjs/{WKvz7zs0yI8-TRzJ.cjs → yvA5FY7oe6FILMqB.cjs} +1 -1
- package/{cdn/assets/DAC77jdtNbZopLX5.js → browser/esm/BLsIMzjofsOnRFrU.mjs} +16 -16
- package/{cdn/assets/DQQK1YdQWQGsESk_.js → browser/esm/BTQ-TGJnw7w1Y0CX.mjs} +14 -14
- package/browser/esm/{BNixyL5UPlHciWwi.mjs → BdLAPrmXIfjGFhhA.mjs} +152 -152
- package/browser/esm/BsDYj6xix3mlXry2.mjs +46 -0
- package/browser/esm/Btk74VwCVJ1T5LQD.mjs +46 -0
- package/browser/esm/{DhFd9KX61TdmTNyk.mjs → C60KakDbde-A4anI.mjs} +1 -1
- package/browser/esm/{1Esqj-uAqAeHBGzU.mjs → CAm14rTtmPL5-rvQ.mjs} +193 -192
- package/browser/esm/{CZ9K3g_56s3hfJO0.mjs → CLTP12OHGQ2k4_Kt.mjs} +21 -20
- package/browser/esm/{BXkh5kfYj7Zx_PAe.mjs → CPWh2H15145LP-d5.mjs} +1 -1
- package/browser/esm/CYXzmWJtZn5OJVBF.mjs +24861 -0
- package/{cdn/assets/BQFdL0Ou_nLqI7lR.js → browser/esm/ChMaIhqaEhF3SLLt.mjs} +6 -6
- package/browser/esm/{nT3k8GnD4H3I293i.mjs → CntwHkPpskE88Ixu.mjs} +11 -10
- package/{cdn/assets/C1opHAkl00_vHPMO.js → browser/esm/CsVV_QnEl77BQM3V.mjs} +1 -1
- package/{cdn/assets/iHc25sW_jPEvAQNG.js → browser/esm/CvFAAktSd9TQK1h4.mjs} +1 -1
- package/browser/esm/{DwLRqrlPfv8xcbxB.mjs → D0-tgawYa4KXYT2c.mjs} +2 -2
- package/browser/esm/{B3iFtnvwZZ0izvkj.mjs → D244UwY3qPC_LNc5.mjs} +2 -2
- package/{cdn/assets/B1bRlKApOQZbRHvx.js → browser/esm/DCuLWmzd9eLWgI03.mjs} +1 -1
- package/{cdn/assets/Dwd9xRP6sCbvd7-2.js → browser/esm/DDD5zfwNNPKuc_zZ.mjs} +1 -1
- package/browser/esm/{BZD8sqVzxMPTV1eH.mjs → DFa_tXqv1VN1OZdv.mjs} +75 -74
- package/{cdn/assets/Cqq1J11IdNmbXlgF.js → browser/esm/DJxioSY-hxyM7dmk.mjs} +24 -23
- package/{cdn/assets/Dkcj5uYhkoaa5JJt.js → browser/esm/DdrICyX8Ead15N32.mjs} +7 -7
- package/{cdn/assets/vw_ELbpa8MGzVBfc.js → browser/esm/Di2tNceI3NodSsgU.mjs} +10 -10
- package/browser/esm/{B7RdrgkvZilWOBgD.mjs → Did46-x6ZVwk_-r-.mjs} +1 -1
- package/browser/esm/Q1yWEkJBu4cVEF33.mjs +1467 -0
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/CtW_m0lUeW_X_FHB.js → browser/esm/mq5uPzTIc1x8unBP.mjs} +1 -1
- package/browser/esm/wziCLl5xvHu6Guu_.mjs +22 -0
- package/cdn/assets/B41q92oKD_VR31Dd.js +46 -0
- package/cdn/assets/{DJ3siDIdJVpw0GCs.js → BOl7blN8JotSzCHJ.js} +2 -2
- package/{browser/esm/CaLAEGMKeQ3INVEV.mjs → cdn/assets/Bs-psXrTRw1jFety.js} +14 -14
- package/cdn/assets/{3ijH6Pl-l2q9T5Ky.js → BzptX9H_YCM2l0DE.js} +11 -10
- package/cdn/assets/{DhFd9KX61TdmTNyk.js → C60KakDbde-A4anI.js} +1 -1
- package/{browser/esm/Bz98C5-blFN81GJ-.mjs → cdn/assets/C8omEbSXHWI_wNjp.js} +10 -10
- package/{browser/esm/C7cRxJLNfGjCT_Hk.mjs → cdn/assets/CEXK9SXjFf1dGHZe.js} +16 -16
- package/cdn/assets/{BXkh5kfYj7Zx_PAe.js → CPWh2H15145LP-d5.js} +1 -1
- package/cdn/assets/C_E1C68wCcRpC6XN.js +46 -0
- package/cdn/assets/{D5Ns-uBNTj4-Jo0p.js → ClFGbVy7cnhMW-dO.js} +2 -2
- package/cdn/assets/{C4Vp4GoCEGQgWaGc.js → CoCIP7n4THmzOggq.js} +75 -74
- package/{browser/esm/C1opHAkl00_vHPMO.mjs → cdn/assets/CsVV_QnEl77BQM3V.js} +1 -1
- package/{browser/esm/iHc25sW_jPEvAQNG.mjs → cdn/assets/CvFAAktSd9TQK1h4.js} +1 -1
- package/{browser/esm/CdJVpNbmXP_fHybW.mjs → cdn/assets/Cz33L9W3cdQckAL5.js} +24 -23
- package/{browser/esm/DTHujOSrUxuBuwud.mjs → cdn/assets/DBgbBl_3O65WhfWN.js} +6 -6
- package/{browser/esm/B1bRlKApOQZbRHvx.mjs → cdn/assets/DCuLWmzd9eLWgI03.js} +1 -1
- package/{browser/esm/Dwd9xRP6sCbvd7-2.mjs → cdn/assets/DDD5zfwNNPKuc_zZ.js} +1 -1
- package/cdn/assets/DLYF-18qErpwF9Q-.js +1467 -0
- package/cdn/assets/{Dk8MDG7PNGIWw80U.js → DXMyzCcyP7039z13.js} +238 -238
- package/{browser/esm/FXy016gXiiQkH7aF.mjs → cdn/assets/DdrICyX8Ead15N32.js} +7 -7
- package/cdn/assets/{B7RdrgkvZilWOBgD.js → Did46-x6ZVwk_-r-.js} +1 -1
- package/cdn/assets/{ukDxhSJqMPzLXoCP.js → Dj3GhNedlKE9TeTn.js} +193 -192
- package/cdn/assets/F-RqJeKWiW4i5344.js +24708 -0
- package/cdn/assets/{DirkLhQ9-HVY0eDv.js → NHbXgEQMftGzY01r.js} +21 -20
- package/cdn/assets/lM5it-aJgI7DLNH9.js +22 -0
- package/{browser/esm/CtW_m0lUeW_X_FHB.mjs → cdn/assets/mq5uPzTIc1x8unBP.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -2
- package/browser/cjs/-q2o2lS8jxJdArvq.cjs +0 -6
- package/browser/cjs/-wP4OG5GpQTxGLJN.cjs +0 -6
- package/browser/cjs/2TmE8J3tbgenWyNa.cjs +0 -6
- package/browser/cjs/3ghCxtNVxZjrbziE.cjs +0 -6
- package/browser/cjs/6AlZR3dVayTg7C5E.cjs +0 -452
- package/browser/cjs/B0BcYYAX9Qq_i5Iv.cjs +0 -6
- package/browser/cjs/B237Hj6a3Klw9rQn.cjs +0 -12
- package/browser/cjs/B24aLncmXYgEQNjl.cjs +0 -6
- package/browser/cjs/B9C-V-MR_epPI-2J.cjs +0 -6
- package/browser/cjs/BASowCefqJFspuu-.cjs +0 -6
- package/browser/cjs/BeDnbSWoeqV6GajE.cjs +0 -6
- package/browser/cjs/BucBlzmuZS_nYU9N.cjs +0 -6
- package/browser/cjs/C662YNYNcFb-AwnS.cjs +0 -6
- package/browser/cjs/CGg3vZ0YENmM73uu.cjs +0 -6
- package/browser/cjs/CJ9WKDMLDxv2vmlL.cjs +0 -6
- package/browser/cjs/CcxjUuuq3eq1io9D.cjs +0 -6
- package/browser/cjs/Ch4kNO1QwQ4Dqczw.cjs +0 -124
- package/browser/cjs/CrXR8mOrQVdukohR.cjs +0 -6
- package/browser/cjs/CuLinKNAohDMFqJU.cjs +0 -6
- package/browser/cjs/D0Ruzl2vdZGdUhjE.cjs +0 -12
- package/browser/cjs/D4CfqUrC04nbs39G.cjs +0 -6
- package/browser/cjs/D6cHa8Tv5I8L_uAO.cjs +0 -6
- package/browser/cjs/D7MyL7xgt0wGGz3I.cjs +0 -13
- package/browser/cjs/D7U5Wmdc51Op-pty.cjs +0 -6
- package/browser/cjs/D9SYWsd_viMxXbL_.cjs +0 -6
- package/browser/cjs/DMIPzZRAbLsma6rR.cjs +0 -7
- package/browser/cjs/DPTxGnV0pA87nrhG.cjs +0 -32
- package/browser/cjs/DTtUhkXmo3x2L2GG.cjs +0 -6
- package/browser/cjs/DgBFcVOVhZuytQ4k.cjs +0 -6
- package/browser/cjs/DoCfDJUgwatpHG4J.cjs +0 -1501
- package/browser/cjs/Dwc5vGQ4nkaSmift.cjs +0 -6
- package/browser/cjs/GbU6d05bhcxQrAUD.cjs +0 -15
- package/browser/cjs/OW7aZPHGxXjRF38A.cjs +0 -6
- package/browser/cjs/WQBNSYPbQzvO23r-.cjs +0 -6
- package/browser/cjs/XF920uRM7LSmFp49.cjs +0 -6
- package/browser/cjs/XazDEHRGho7wJTUR.cjs +0 -6
- package/browser/cjs/Zjw2XvR7-Zfykt20.cjs +0 -6
- package/browser/cjs/eM5uLWq0QtvNN4O-.cjs +0 -6
- package/browser/cjs/gjPOOFOH_THG1O-L.cjs +0 -6
- package/browser/cjs/hhZA8Q_VAVRnX3Rz.cjs +0 -7
- package/browser/cjs/qjCnEqCfcXzLIady.cjs +0 -6
- package/browser/cjs/s238D5kFNyDNYzIV.cjs +0 -6
- package/browser/cjs/t-6Fa6b5-CXTHDjn.cjs +0 -6
- package/browser/cjs/zvHV2c0_QPS3v2Wt.cjs +0 -11
- package/browser/esm/B-v14ikVOXpmpHCI.mjs +0 -5560
- package/browser/esm/B1M7fpFXcO34FZ5C.mjs +0 -29
- package/browser/esm/B6nZCfPr7UmxzAi6.mjs +0 -48671
- package/browser/esm/B7k3pb4haBsw-Yvr.mjs +0 -10
- package/browser/esm/B8ajmWm1J-ZsmBzK.mjs +0 -10
- package/browser/esm/BGvKR9TNj2ORlcKm.mjs +0 -10
- package/browser/esm/Bc8y371ooCwvBkRs.mjs +0 -10
- package/browser/esm/BezHCUZawkIGzzUm.mjs +0 -422
- package/browser/esm/BnxMjyy6JPTUe9Lg.mjs +0 -10
- package/browser/esm/BskzQvqHyjuVccIH.mjs +0 -22
- package/browser/esm/BzS_V6RkpVpk_d1w.mjs +0 -472
- package/browser/esm/CM--Vw5PcrLIXc8O.mjs +0 -12
- package/browser/esm/CflOcniWVa_VR5Wy.mjs +0 -10
- package/browser/esm/Cn9w-KgbsxAKNj6s.mjs +0 -10
- package/browser/esm/D6KdwQgZEBMy0260.mjs +0 -10
- package/browser/esm/DAOw8vm-XsJ_n7BK.mjs +0 -10
- package/browser/esm/DIKvxkHBBvYo2rnC.mjs +0 -10
- package/browser/esm/DNVkA-vwqtIw6aKf.mjs +0 -1575
- package/browser/esm/DTS0EgQuwHdS5aQN.mjs +0 -10
- package/browser/esm/DaeiyDhcdRvg5nGs.mjs +0 -1466
- package/browser/esm/DeSyxK8Ibb-tIa67.mjs +0 -10
- package/browser/esm/DgPz063GFvbhOHHK.mjs +0 -10
- package/browser/esm/Di8gWiOWhfFzcOuw.mjs +0 -21
- package/browser/esm/Dlg7LT4wsJCPSTCT.mjs +0 -46
- package/browser/esm/DqDxWoCftkWurpDk.mjs +0 -10
- package/browser/esm/DupExqAEenu5ZS6G.mjs +0 -820
- package/browser/esm/Dy1zdTKMeT50nXcy.mjs +0 -10
- package/browser/esm/Dz_O3du2SrhYK47v.mjs +0 -10
- package/browser/esm/IbCi65rCiiLS_OGe.mjs +0 -46
- package/browser/esm/R2Li5a5IPMuoQEGD.mjs +0 -10
- package/browser/esm/SWzqhkO1HABv0bfG.mjs +0 -10
- package/browser/esm/VDflSVY_vwi7ZcHQ.mjs +0 -3922
- package/browser/esm/dAJOajC7rsn3_hWk.mjs +0 -10
- package/browser/esm/fvsQWBiDZg7zRYOa.mjs +0 -10
- package/browser/esm/o8Z04Tjc17JBUDsL.mjs +0 -10
- package/browser/esm/qbGHKDeXrxvghjMt.mjs +0 -24
- package/browser/esm/uk5NsqjbkRuKv1vU.mjs +0 -10
- package/cdn/assets/B2P82Dvadjo7-hRY.js +0 -1466
- package/cdn/assets/B7k3pb4haBsw-Yvr.js +0 -10
- package/cdn/assets/B8ajmWm1J-ZsmBzK.js +0 -10
- package/cdn/assets/BFDOApZozGNnJdxs.js +0 -46
- package/cdn/assets/BGvKR9TNj2ORlcKm.js +0 -10
- package/cdn/assets/BJgFwyqDjKdTH0xW.js +0 -422
- package/cdn/assets/BKxjmGpW0pe8KUzm.js +0 -472
- package/cdn/assets/Bc8y371ooCwvBkRs.js +0 -10
- package/cdn/assets/BnxMjyy6JPTUe9Lg.js +0 -10
- package/cdn/assets/CM--Vw5PcrLIXc8O.js +0 -12
- package/cdn/assets/COS-oUtP1lQi0Hd8.js +0 -22
- package/cdn/assets/CSxbcCsSh3AdRzkk.js +0 -3922
- package/cdn/assets/CflOcniWVa_VR5Wy.js +0 -10
- package/cdn/assets/Cn9w-KgbsxAKNj6s.js +0 -10
- package/cdn/assets/Cqyz2pkIcU2pAivO.js +0 -5560
- package/cdn/assets/CuYtiG4SP9OK6dJP.js +0 -1575
- package/cdn/assets/D6KdwQgZEBMy0260.js +0 -10
- package/cdn/assets/DAOw8vm-XsJ_n7BK.js +0 -10
- package/cdn/assets/DCwhACFXcpYD60H9.js +0 -820
- package/cdn/assets/DIKvxkHBBvYo2rnC.js +0 -10
- package/cdn/assets/DOLBqVto8cJdYLWp.js +0 -46
- package/cdn/assets/DTS0EgQuwHdS5aQN.js +0 -10
- package/cdn/assets/DeSyxK8Ibb-tIa67.js +0 -10
- package/cdn/assets/Dew12-owBXPNmL1S.js +0 -29
- package/cdn/assets/DgPz063GFvbhOHHK.js +0 -10
- package/cdn/assets/Di8gWiOWhfFzcOuw.js +0 -21
- package/cdn/assets/DqDxWoCftkWurpDk.js +0 -10
- package/cdn/assets/Dy1zdTKMeT50nXcy.js +0 -10
- package/cdn/assets/Dz_O3du2SrhYK47v.js +0 -10
- package/cdn/assets/G9bfOnISYlZUeW4U.js +0 -48518
- package/cdn/assets/R2Li5a5IPMuoQEGD.js +0 -10
- package/cdn/assets/SWzqhkO1HABv0bfG.js +0 -10
- package/cdn/assets/dAJOajC7rsn3_hWk.js +0 -10
- package/cdn/assets/fvsQWBiDZg7zRYOa.js +0 -10
- package/cdn/assets/o8Z04Tjc17JBUDsL.js +0 -10
- package/cdn/assets/qbGHKDeXrxvghjMt.js +0 -24
- package/cdn/assets/uk5NsqjbkRuKv1vU.js +0 -10
|
@@ -1,150 +1,151 @@
|
|
|
1
1
|
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { memo as oe, useRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { memo as oe, useRef as C, useState as b, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
|
|
3
|
+
import { ICell as c, IRange as R } from "@sheetxl/sdk";
|
|
4
|
+
import { r as D, t as H, av as ue, V as fe, aA as ge, aB as me, B as O, aC as m, ah as x, aD as xe, a8 as y, aE as he, a as _, b as k, aF as Oe, aG as Ce, aH as ye, aI as be, ay as w, aJ as ve, aK as Te, ak as Re, az as ke, F as we, aw as Ee, ax as Fe } from "./F-RqJeKWiW4i5344.js";
|
|
5
|
+
import { C as ee } from "./Dj3GhNedlKE9TeTn.js";
|
|
5
6
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
7
8
|
*
|
|
8
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
10
11
|
*/
|
|
11
|
-
const
|
|
12
|
-
const { label: h, value: r, options:
|
|
12
|
+
const Se = D(i("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack"), Ie = D(i("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), Le = D(i("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward"), De = D(i("path", { d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z" }), "ArrowUpward"), z = oe((E) => {
|
|
13
|
+
const { label: h, value: r, options: a, onSelect: d, tabIndex: v = 0, ...A } = E, [K, T] = b(() => ie(r, a));
|
|
13
14
|
L(() => {
|
|
14
|
-
T(ie(r,
|
|
15
|
-
}, [r,
|
|
16
|
-
const
|
|
17
|
-
T(u.target.value), d?.(
|
|
18
|
-
}, [d,
|
|
19
|
-
return p(we, { sx: { minWidth: 135 }, size: "small", children: [i(Ee, { children: h }), i(
|
|
20
|
-
}), te = { Workbook: "workbook", Sheet: "sheet" }, ne = { enter: 140, exit: 140 },
|
|
21
|
-
delete
|
|
22
|
-
const
|
|
15
|
+
T(ie(r, a));
|
|
16
|
+
}, [r, a]);
|
|
17
|
+
const P = H((u) => {
|
|
18
|
+
T(u.target.value), d?.(a[u.target.value]);
|
|
19
|
+
}, [d, a]), s = de(() => Object.keys(a).map((u) => i(ke, { value: u, children: u }, u)), [a]);
|
|
20
|
+
return p(we, { sx: { minWidth: 135 }, size: "small", children: [i(Ee, { children: h }), i(Fe, { inputProps: { tabIndex: v }, value: K, label: h, onChange: P, sx: { backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, ...A, children: s })] });
|
|
21
|
+
}), te = { Workbook: "workbook", Sheet: "sheet" }, ne = { enter: 140, exit: 140 }, ae = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...ae };
|
|
22
|
+
delete se.Values;
|
|
23
|
+
const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
23
24
|
const r = Object.keys(h);
|
|
24
|
-
for (let
|
|
25
|
-
const d = r[
|
|
25
|
+
for (let a = 0; a < r.length; a++) {
|
|
26
|
+
const d = r[a];
|
|
26
27
|
if (h[d] === E) return d;
|
|
27
28
|
}
|
|
28
|
-
},
|
|
29
|
-
const { replace: h = !1, findText: r, replaceText:
|
|
29
|
+
}, ze = oe((E) => {
|
|
30
|
+
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), $ = C(null), W = C(null), j = C(null), N = C(null), G = (e, t) => {
|
|
30
31
|
t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
|
|
31
|
-
}, [
|
|
32
|
+
}, [J, I] = b(!1), [V, le] = b(!1), [f, B] = b(h), [U, M] = b(!1), [X, q] = b(!1), [o, l] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), F = H(async (e, t, n, S) => {
|
|
32
33
|
if (!T) return;
|
|
33
34
|
const g = { ...o };
|
|
34
35
|
g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
|
|
35
|
-
const ce = await T({ autoFocus:
|
|
36
|
-
|
|
36
|
+
const ce = await T({ autoFocus: S, ...g });
|
|
37
|
+
M(ce === 0);
|
|
37
38
|
}, [o, T]);
|
|
38
39
|
L(() => {
|
|
39
|
-
|
|
40
|
-
}, [o,
|
|
41
|
-
const Q =
|
|
40
|
+
M(!1);
|
|
41
|
+
}, [o, V, f]);
|
|
42
|
+
const Q = H((e, t) => {
|
|
42
43
|
if (e.keyCode === ue.Enter) {
|
|
43
44
|
if (!o.findText) return;
|
|
44
|
-
let n = !0,
|
|
45
|
-
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (
|
|
45
|
+
let n = !0, S = !1;
|
|
46
|
+
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), G(e, S ? N.current : j.current)) : G(e, n ? W.current : $.current), F(n, t, S, !1);
|
|
46
47
|
}
|
|
47
|
-
}, [o]), Y =
|
|
48
|
+
}, [o]), Y = C(null);
|
|
48
49
|
pe(() => {
|
|
49
|
-
|
|
50
|
+
l((e) => {
|
|
50
51
|
const t = { ...e };
|
|
51
|
-
t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0),
|
|
52
|
-
const n = !(!v &&
|
|
53
|
-
return n &&
|
|
54
|
-
}),
|
|
55
|
-
}, [r,
|
|
52
|
+
t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), a !== void 0 && (t.replaceText = a), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
|
|
53
|
+
const n = !(!v && a === void 0);
|
|
54
|
+
return n && B(n), t;
|
|
55
|
+
}), X || Y.current?.focus();
|
|
56
|
+
}, [r, a, d, v]), L(() => {
|
|
56
57
|
f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
|
|
57
58
|
}, [f]), L(() => {
|
|
58
|
-
if (
|
|
59
|
-
|
|
59
|
+
if (J && s.current && o.findText === s.current.value) return s.current === document.activeElement || s.current.contains(document.activeElement) ? (s.current?.select(), void I(!1)) : void s.current.addEventListener("focus", () => {
|
|
60
|
+
s.current?.select(), I(!1);
|
|
60
61
|
}, { once: !0 });
|
|
61
|
-
}, [
|
|
62
|
+
}, [J, o]);
|
|
62
63
|
const [re, { width: Z }] = fe();
|
|
63
|
-
return i(ge, { title:
|
|
64
|
-
|
|
65
|
-
}, PaperProps: { elevation:
|
|
66
|
-
if (e.key === "h" && e.ctrlKey)
|
|
67
|
-
else if (e.key === "f" && e.ctrlKey)
|
|
68
|
-
else if (e.key === "c" && e.altKey)
|
|
64
|
+
return i(ge, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: Y, onHide: K, onFocus: () => q(!0), onBlur: () => {
|
|
65
|
+
q(!1), M(!1);
|
|
66
|
+
}, PaperProps: { elevation: X ? 3 : 1 }, ...P, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
67
|
+
if (e.key === "h" && e.ctrlKey) B(!0), s.current?.contains(document.activeElement) && u.current?.focus();
|
|
68
|
+
else if (e.key === "f" && e.ctrlKey) s.current?.focus();
|
|
69
|
+
else if (e.key === "c" && e.altKey) l((t) => {
|
|
69
70
|
const n = { ...t };
|
|
70
71
|
return n.findOptions.matchCase = !t.findOptions.matchCase, n;
|
|
71
72
|
});
|
|
72
|
-
else if (e.key === "e" && e.altKey)
|
|
73
|
+
else if (e.key === "e" && e.altKey) l((t) => {
|
|
73
74
|
const n = { ...t };
|
|
74
75
|
return n.findOptions.matchEntireCell = !t.findOptions.matchEntireCell, n;
|
|
75
76
|
});
|
|
76
77
|
else {
|
|
77
78
|
if (e.key !== "r" || !e.altKey) return;
|
|
78
|
-
|
|
79
|
+
l((t) => {
|
|
79
80
|
const n = { ...t };
|
|
80
81
|
return n.findOptions.useRegex = !t.findOptions.useRegex, n;
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
84
|
e.preventDefault();
|
|
84
|
-
}, children: [p(
|
|
85
|
-
|
|
85
|
+
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: V, onSelectToggle: (e) => {
|
|
86
|
+
le(e);
|
|
86
87
|
}, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(xe, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
|
|
87
|
-
|
|
88
|
-
}, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), shortcut: { key: f ? "F" : "H", modifiers: [
|
|
89
|
-
|
|
88
|
+
B(e);
|
|
89
|
+
}, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), shortcut: { key: f ? "F" : "H", modifiers: [y.Ctrl] } })] }), p(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(_, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Z > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { draggable: !1, ref: s, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(Oe, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
|
|
90
|
+
l((t) => {
|
|
90
91
|
const n = { ...t };
|
|
91
92
|
return n.findOptions.matchCase = e, n;
|
|
92
93
|
});
|
|
93
|
-
}, label: "Match Case", shortcut: { key: "C", modifiers: [
|
|
94
|
-
|
|
94
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [y.Alt] }, icon: x(i(Ce, {})) }), i(m, { selected: o.findOptions.matchEntireCell, onSelectToggle: (e) => {
|
|
95
|
+
l((t) => {
|
|
95
96
|
const n = { ...t };
|
|
96
97
|
return n.findOptions.matchEntireCell = e, n;
|
|
97
98
|
});
|
|
98
|
-
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [
|
|
99
|
-
|
|
99
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(ye, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
|
|
100
|
+
l((t) => {
|
|
100
101
|
const n = { ...t };
|
|
101
102
|
return n.findOptions.useRegex = e, n;
|
|
102
103
|
});
|
|
103
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [
|
|
104
|
-
|
|
104
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => U ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => U ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
|
|
105
|
+
l((t) => {
|
|
105
106
|
const n = { ...t };
|
|
106
107
|
return n.findText = e.target.value, n;
|
|
107
108
|
});
|
|
108
109
|
}, onKeyDown: (e) => Q(e, !1), onContextMenu: (e) => {
|
|
109
110
|
e.stopPropagation();
|
|
110
111
|
} }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
|
|
111
|
-
|
|
112
|
-
}, touchRippleRef:
|
|
113
|
-
|
|
112
|
+
F(!1, !1);
|
|
113
|
+
}, touchRippleRef: $, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Se, {}) : i(De, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
|
|
114
|
+
F(!0, !1);
|
|
114
115
|
}, touchRippleRef: W, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Le, {}) : i(Ie, {})), disabled: !o.findText })] }), i(ee, { in: f, timeout: ne, onExit: () => {
|
|
115
|
-
|
|
116
|
-
}, children: p(
|
|
117
|
-
|
|
116
|
+
s.current?.focus();
|
|
117
|
+
}, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(_, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { ref: u, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
|
|
118
|
+
l((t) => {
|
|
118
119
|
const n = { ...t };
|
|
119
120
|
return n.replaceText = e.target.value, n;
|
|
120
121
|
});
|
|
121
122
|
}, onKeyDown: (e) => Q(e, !0), onContextMenu: (e) => {
|
|
122
123
|
e.stopPropagation();
|
|
123
124
|
} }), i(m, { onSelectToggle: (e) => {
|
|
124
|
-
|
|
125
|
+
F(!0, !0);
|
|
125
126
|
}, touchRippleRef: j, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(ve, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
|
|
126
|
-
|
|
127
|
-
}, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [
|
|
128
|
-
|
|
129
|
-
}, children: p(
|
|
130
|
-
|
|
127
|
+
F(!0, !0, !0);
|
|
128
|
+
}, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in: V, timeout: ne, onExit: () => {
|
|
129
|
+
s.current?.focus();
|
|
130
|
+
}, children: p(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(Re, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Z >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(z, { label: "Within", value: o.scope, options: te, onSelect: (e) => {
|
|
131
|
+
l((t) => {
|
|
131
132
|
const n = { ...t };
|
|
132
133
|
return n.scope = e, n;
|
|
133
134
|
});
|
|
134
|
-
} }), i(
|
|
135
|
-
|
|
135
|
+
} }), i(z, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Ae, onSelect: (e) => {
|
|
136
|
+
l((t) => {
|
|
136
137
|
const n = { ...t };
|
|
137
138
|
return n.findOptions.orientation = e ? R.Orientation.Row : R.Orientation.Column, n;
|
|
138
139
|
});
|
|
139
|
-
} }), i(
|
|
140
|
-
|
|
140
|
+
} }), i(z, { label: "Look in", value: f && o.findOptions.fields?.[0] === c.Content.Values ? c.Content.Formulas : o.findOptions.fields?.[0], options: f ? se : ae, onSelect: (e) => {
|
|
141
|
+
l((t) => {
|
|
141
142
|
const n = { ...t };
|
|
142
143
|
return n.findOptions.fields = [e], n;
|
|
143
144
|
});
|
|
144
145
|
} })] })] }) })] }) });
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
ze as FindReplaceWindow,
|
|
148
149
|
te as ScopeOptions,
|
|
149
|
-
|
|
150
|
+
ze as default
|
|
150
151
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-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-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as x, b as f, r as
|
|
1
|
+
import { Q as Y } from "./F-RqJeKWiW4i5344.js";
|
|
2
|
+
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./DLYF-18qErpwF9Q-.js";
|
|
3
|
+
import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
|
|
3
4
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
5
6
|
*
|
|
6
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -211,7 +212,7 @@ class pt {
|
|
|
211
212
|
return s.plotArea = r, r;
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
|
-
class
|
|
215
|
+
class L {
|
|
215
216
|
EnumMappings() {
|
|
216
217
|
}
|
|
217
218
|
static fromOoxmlGradientType(t) {
|
|
@@ -236,7 +237,7 @@ class q {
|
|
|
236
237
|
processStroke(t, e, s) {
|
|
237
238
|
const r = {}, o = t.evaluate("ln", e);
|
|
238
239
|
if (o) {
|
|
239
|
-
o.hasAttribute("algn") && (r.align =
|
|
240
|
+
o.hasAttribute("algn") && (r.align = L.fromOoxmlAlignment(o.getAttribute("algn"))), o.hasAttribute("cap") && (r.lineCap = L.fromOoxmlLineCap(o.getAttribute("cap"))), o.hasAttribute("cmpd") && (r.compound = L.fromOoxmlCompound(o.getAttribute("cmpd"))), o.hasAttribute("w") && (r.width = Z(o.getAttribute("w")));
|
|
240
241
|
const i = t.evaluate("miter", o);
|
|
241
242
|
i && (r.lineJoin = "miter", i.hasAttribute("lim") && (r.miter = parseFloat(i.getAttribute("lim")))), t.evaluate("bevel", o) && (r.lineJoin = "bevel"), t.evaluate("round", o) && (r.lineJoin = "round");
|
|
242
243
|
const n = t.evaluate("custDash", o);
|
|
@@ -308,7 +309,7 @@ class q {
|
|
|
308
309
|
e.hasAttribute("flip") && (o.mirror = e.getAttribute("flip")), Object.keys(o).length > 0 && (s.tile = o);
|
|
309
310
|
const i = t.evaluate("path", e);
|
|
310
311
|
if (i) {
|
|
311
|
-
i.hasAttribute("path") && (s.type =
|
|
312
|
+
i.hasAttribute("path") && (s.type = L.fromOoxmlGradientType(i.getAttribute("path")));
|
|
312
313
|
const c = t.evaluate("fillToRect", i);
|
|
313
314
|
c && (s.fillTo = this.getRect(c));
|
|
314
315
|
}
|
|
@@ -885,7 +886,7 @@ class Ot {
|
|
|
885
886
|
r.collatorOptions = n ? G.CaseSensitiveOptions : G.CaseInsensitiveOptions;
|
|
886
887
|
}
|
|
887
888
|
const o = e.getAttribute("sortMethod");
|
|
888
|
-
o != null && o !== "none" && (o === "stroke" ? r.collatorOptions = { ...r.collatorOptions, collation: "stroke" } : o === "pinYin" && (r.collatorOptions = { ...r.collatorOptions, collation: "pinyin" })), e.hasAttribute("columnSort") && f(e.getAttribute("columnSort")) && (r.orientation =
|
|
889
|
+
o != null && o !== "none" && (o === "stroke" ? r.collatorOptions = { ...r.collatorOptions, collation: "stroke" } : o === "pinYin" && (r.collatorOptions = { ...r.collatorOptions, collation: "pinyin" })), e.hasAttribute("columnSort") && f(e.getAttribute("columnSort")) && (r.orientation = et.Orientation.Column);
|
|
889
890
|
const i = W.fastStringToRange(r.ref);
|
|
890
891
|
return this.processSortConditions(t, e, r, i), Object.keys(r).length > 0 && (s.sort = r), r;
|
|
891
892
|
}
|
|
@@ -914,12 +915,12 @@ class Ot {
|
|
|
914
915
|
return i.length > 0 && (s.fields = i), i;
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
|
-
class
|
|
918
|
+
class Q {
|
|
918
919
|
visit(t, e, s) {
|
|
919
920
|
}
|
|
920
921
|
processDataBarColor(t, e, s, r, o = "dk1") {
|
|
921
922
|
if (!e) return;
|
|
922
|
-
const i =
|
|
923
|
+
const i = tt((n) => e.getAttribute(n), o);
|
|
923
924
|
return i && (s[r] = i), s;
|
|
924
925
|
}
|
|
925
926
|
processFonts(t, e, s) {
|
|
@@ -1055,7 +1056,7 @@ class Z {
|
|
|
1055
1056
|
return n && this.processDataBarColor(t, n, i, "color"), Object.keys(i).length > 0 ? s[r] = i : null;
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
1058
|
-
class Tt extends
|
|
1059
|
+
class Tt extends Q {
|
|
1059
1060
|
visit(t, e, s) {
|
|
1060
1061
|
this.processNumFmts(t, t.evaluate("numFmts", e), null), t.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
|
|
1061
1062
|
const r = { fills: {}, fonts: {}, borders: {} };
|
|
@@ -1128,7 +1129,7 @@ class Tt extends Z {
|
|
|
1128
1129
|
const n = e.getAttribute("xfId");
|
|
1129
1130
|
if (n && o) {
|
|
1130
1131
|
const c = o.get(parseInt(n));
|
|
1131
|
-
c && c !==
|
|
1132
|
+
c && c !== rt.BuiltInName.Normal && (s.named = c);
|
|
1132
1133
|
}
|
|
1133
1134
|
const l = (c) => !(!i && e.hasAttribute(c)) || f(e.getAttribute("applyFont"));
|
|
1134
1135
|
if (l("applyFont")) {
|
|
@@ -1255,7 +1256,7 @@ class Tt extends Z {
|
|
|
1255
1256
|
afterVisit(t, e, s) {
|
|
1256
1257
|
}
|
|
1257
1258
|
}
|
|
1258
|
-
class Vt extends
|
|
1259
|
+
class Vt extends Q {
|
|
1259
1260
|
visit(t, e, s) {
|
|
1260
1261
|
return this.processSheetRefs(t, t.evaluate("sheets", e), s), this.processBookViews(t, t.evaluate("bookViews", e), s), this.processDefinedNames(t, t.evaluate("definedNames", e), s), this.processCalcPr(t, t.evaluate("calcPr", e), s), this.processWorkbookProtection(t, t.evaluate("workbookProtection", e), s), this.processWorkbookPr(t, t.evaluate("workbookPr", e), s), s;
|
|
1261
1262
|
}
|
|
@@ -1362,7 +1363,7 @@ class St {
|
|
|
1362
1363
|
o.length > 0 && (s.columns = o);
|
|
1363
1364
|
}
|
|
1364
1365
|
}
|
|
1365
|
-
class
|
|
1366
|
+
class xt {
|
|
1366
1367
|
visit(t, e, s) {
|
|
1367
1368
|
return s;
|
|
1368
1369
|
}
|
|
@@ -1386,7 +1387,7 @@ class U {
|
|
|
1386
1387
|
return r && (t.copyFromAttribute(r, "name", s), t.copyFromAttribute(r, "desc", s), t.copyFromAttribute(r, "hidden", s, "hidden", t.BOOLEAN_COPY), t.copyFromAttribute(r, "id", s)), s;
|
|
1387
1388
|
}
|
|
1388
1389
|
}
|
|
1389
|
-
class
|
|
1390
|
+
class kt extends U {
|
|
1390
1391
|
visit(t, e, s) {
|
|
1391
1392
|
if (!e) return;
|
|
1392
1393
|
s = super.visit(t, e, s);
|
|
@@ -1433,7 +1434,7 @@ class z extends U {
|
|
|
1433
1434
|
return s.content = { type: "sp", json: o }, o;
|
|
1434
1435
|
}
|
|
1435
1436
|
}
|
|
1436
|
-
class
|
|
1437
|
+
class It extends U {
|
|
1437
1438
|
visit(t, e, s) {
|
|
1438
1439
|
if (!e) return;
|
|
1439
1440
|
const r = super.visit(t, e, s), o = t.evaluate("nvPicPr/cNvPicPr", e);
|
|
@@ -1457,7 +1458,7 @@ class Lt extends U {
|
|
|
1457
1458
|
return s.content = { type: "picture", json: l }, r;
|
|
1458
1459
|
}
|
|
1459
1460
|
}
|
|
1460
|
-
class
|
|
1461
|
+
class Lt extends z {
|
|
1461
1462
|
visit(t, e, s) {
|
|
1462
1463
|
if (!e) return;
|
|
1463
1464
|
s = super.visit(t, e, s);
|
|
@@ -1542,7 +1543,7 @@ class jt {
|
|
|
1542
1543
|
if (e.type === "_error") {
|
|
1543
1544
|
const s = e.errorType;
|
|
1544
1545
|
if (s) try {
|
|
1545
|
-
e =
|
|
1546
|
+
e = st.getBuiltInById(s + 1);
|
|
1546
1547
|
} catch {
|
|
1547
1548
|
}
|
|
1548
1549
|
}
|
|
@@ -1600,7 +1601,7 @@ class Dt {
|
|
|
1600
1601
|
visit(t, e, s) {
|
|
1601
1602
|
if (!e) return;
|
|
1602
1603
|
const r = {};
|
|
1603
|
-
return t.copyFromAttribute(e, "id", r, "id",
|
|
1604
|
+
return t.copyFromAttribute(e, "id", r, "id", I), t.copyFromAttribute(e, "personId", r, "personId", I), t.copyFromAttribute(e, "ref", r), t.copyFromAttribute(e, "parentId", r, "parentId", I), t.copyFromAttribute(e, "dT", r), e.hasAttribute("done") && (r.done = f(e.getAttribute("done"))), s.push(r), r;
|
|
1604
1605
|
}
|
|
1605
1606
|
}
|
|
1606
1607
|
class Mt {
|
|
@@ -1610,7 +1611,7 @@ class Mt {
|
|
|
1610
1611
|
const n = o.item(i);
|
|
1611
1612
|
if (n.nodeType === 1 && n.localName === "person") {
|
|
1612
1613
|
const l = {};
|
|
1613
|
-
t.copyFromAttribute(n, "id", l, "id",
|
|
1614
|
+
t.copyFromAttribute(n, "id", l, "id", I), t.copyFromAttribute(n, "displayName", l), t.copyFromAttribute(n, "userId", l, "userId", I), t.copyFromAttribute(n, "providerId", l), r.push(l);
|
|
1614
1615
|
}
|
|
1615
1616
|
}
|
|
1616
1617
|
return r.length > 0 && (s.persons = r), r;
|
|
@@ -1622,9 +1623,9 @@ class zt {
|
|
|
1622
1623
|
this.path = t, this.visitor = e;
|
|
1623
1624
|
}
|
|
1624
1625
|
}
|
|
1625
|
-
class
|
|
1626
|
+
class $t {
|
|
1626
1627
|
constructor() {
|
|
1627
|
-
this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new ct()), this.registerVisitor("spPr", new M()), this.registerVisitor("txBody", new F()), this.registerVisitor("txPr", new F()), this.registerVisitor("c:chartSpace", new ut()), this.registerVisitor("c:chartSpace", new ht(), "chart"), this.registerVisitor("c:plotArea", new pt()), this.registerVisitor("c:barChart", new gt()), this.registerVisitor("c:doughnutChart", new S()), this.registerVisitor("c:lineChart", new S()), this.registerVisitor("c:ofPieType", new S()), this.registerVisitor("c:pieChart", new S()), this.registerVisitor("c:scatterChart", new S()), this.registerVisitor("c:barChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new N("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new dt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new R()), this.registerVisitor("c:valAx", new R()), this.registerVisitor("c:dateAx", new R()), this.registerVisitor("c:majorGridlines", new j("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new j("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new F("labels.text"), "txPr"), this.registerVisitor("c:valAx", new F("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new F("labels.text"), "txPr"), this.registerVisitor("c:legend", new At()), this.registerVisitor("c:legend", new F("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new ft()), this.registerVisitor("c:ser", new yt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new N("labels"), "dLbls"), this.registerVisitor("c:dLbl", new N("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new vt()), this.registerVisitor("c:dispUnits", new j("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new F(), "tx/rich"), this.registerVisitor("a:theme", new Ft()), this.registerVisitor("a:theme", new Ct(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new wt(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new Nt()), this.registerVisitor("sortState", new Ot()), this.registerVisitor("s:workbook", new Vt()), this.registerVisitor("styleSheet", new Tt()), this.registerVisitor("table", new St()), this.registerVisitor("hlinkClick", new Pt()), this.registerVisitor("wsDr", new
|
|
1628
|
+
this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new ct()), this.registerVisitor("spPr", new M()), this.registerVisitor("txBody", new F()), this.registerVisitor("txPr", new F()), this.registerVisitor("c:chartSpace", new ut()), this.registerVisitor("c:chartSpace", new ht(), "chart"), this.registerVisitor("c:plotArea", new pt()), this.registerVisitor("c:barChart", new gt()), this.registerVisitor("c:doughnutChart", new S()), this.registerVisitor("c:lineChart", new S()), this.registerVisitor("c:ofPieType", new S()), this.registerVisitor("c:pieChart", new S()), this.registerVisitor("c:scatterChart", new S()), this.registerVisitor("c:barChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new N("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new dt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new R()), this.registerVisitor("c:valAx", new R()), this.registerVisitor("c:dateAx", new R()), this.registerVisitor("c:majorGridlines", new j("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new j("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new F("labels.text"), "txPr"), this.registerVisitor("c:valAx", new F("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new F("labels.text"), "txPr"), this.registerVisitor("c:legend", new At()), this.registerVisitor("c:legend", new F("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new ft()), this.registerVisitor("c:ser", new yt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new N("labels"), "dLbls"), this.registerVisitor("c:dLbl", new N("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new vt()), this.registerVisitor("c:dispUnits", new j("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new F(), "tx/rich"), this.registerVisitor("a:theme", new Ft()), this.registerVisitor("a:theme", new Ct(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new wt(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new Nt()), this.registerVisitor("sortState", new Ot()), this.registerVisitor("s:workbook", new Vt()), this.registerVisitor("styleSheet", new Tt()), this.registerVisitor("table", new St()), this.registerVisitor("hlinkClick", new Pt()), this.registerVisitor("wsDr", new xt()), this.registerVisitor("twoCellAnchor", new E()), this.registerVisitor("oneCellAnchor", new E()), this.registerVisitor("absoluteAnchor", new E()), this.registerVisitor("graphicFrame", new kt()), this.registerVisitor("sp", new z()), this.registerVisitor("grpSp", new Lt()), this.registerVisitor("cxnSp", new Bt()), this.registerVisitor("pic", new It()), this.registerVisitor("rvStructures", new _t()), this.registerVisitor("rvData", new jt()), this.registerVisitor("comments", new Rt()), this.registerVisitor("commentList", new Et(), "comment"), this.registerVisitor("comment", new F("content"), "text"), this.registerVisitor("ThreadedComments", new Yt()), this.registerVisitor("threadedComment", new Dt()), this.registerVisitor("threadedComment", new F("content"), "text"), this.registerVisitor("personList", new Mt());
|
|
1628
1629
|
}
|
|
1629
1630
|
registerVisitor(t, e, s = null) {
|
|
1630
1631
|
t.indexOf(":") === -1 && (t = "*:" + t);
|
|
@@ -1697,6 +1698,6 @@ class Xt {
|
|
|
1697
1698
|
}
|
|
1698
1699
|
}
|
|
1699
1700
|
export {
|
|
1700
|
-
|
|
1701
|
-
|
|
1701
|
+
$t as FromOOXMLConverter,
|
|
1702
|
+
$t as default
|
|
1702
1703
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as M, useState as x, useCallback as j } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { t as r, m as S, B as V, F as $, a as z, b as h, ay as C } from "./F-RqJeKWiW4i5344.js";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
10
|
const G = ["Ok", "Cancel"], U = E((O) => {
|
|
11
|
-
const { initialComments:
|
|
12
|
-
const n =
|
|
11
|
+
const { initialComments: y = null, onUpdateComments: m, context: F, onOption: u, onValidateOption: l, onDone: p, options: d = G, defaultOption: c = d?.[0], cancelOption: s = "Cancel", sx: b, ...k } = O, g = M(() => {
|
|
12
|
+
const n = y ?? F?.()?.getComments();
|
|
13
13
|
let t = "";
|
|
14
14
|
if (n && n.content && n.content.runs) {
|
|
15
15
|
const a = n.content.runs;
|
|
@@ -19,7 +19,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
|
-
}, []), [e, w] = x(g), [
|
|
22
|
+
}, []), [e, w] = x(g), [P, T] = x(!1), f = j(async (n, t) => null, []), v = r(async (n) => {
|
|
23
23
|
const t = e === "" ? [] : e.split(`
|
|
24
24
|
`);
|
|
25
25
|
if (n !== s) {
|
|
@@ -39,7 +39,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
39
39
|
return t ?? !0;
|
|
40
40
|
}, [l, e]);
|
|
41
41
|
return i(S, { title: (g ? "Edit" : "Insert") + " Comments", options: d, onDone: p, onOption: (n) => v(n), onValidateOption: I, defaultOption: c, cancelOption: s, autoFocusSel: ".autoFocus", sx: { width: "480px", ...b }, ...k, children: i(V, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: i($, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(z, { label: "Comments", placeholder: "Enter a comment.", onFocus: (n) => {
|
|
42
|
-
|
|
42
|
+
P || n.target?.select(), T(!0);
|
|
43
43
|
}, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${h("#fff", C(5))}, ${h("#fff", C(5))})` } } }, value: e, onChange: D, onContextMenu: (n) => {
|
|
44
44
|
n.stopPropagation();
|
|
45
45
|
} }) }) }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Je from "react";
|
|
2
2
|
import { createElement as $r, forwardRef as Ya, useRef as Xa, useImperativeHandle as Wa, useEffect as Ha } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|