@sheetxl/studio-mui 0.3.3 → 0.3.4
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/B1DCwLSJMTHSgdcP.cjs +6 -0
- package/browser/cjs/{YpWYrg3Eysqtr9aZ.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
- package/browser/cjs/{DAyHZyXZGsDWfbyd.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
- package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
- package/browser/cjs/{scolQa-PxnIvyiDb.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
- package/browser/cjs/{DSNu0kgR1_X-nK_Z.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
- package/browser/cjs/{B0-aLTQ0dAlPdRnQ.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
- package/browser/cjs/{C9TJkm0tBPD04idM.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
- package/browser/cjs/{D8qPzQKLyGrgGg08.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
- package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
- package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
- package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
- package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
- package/browser/cjs/{D69p4DRnZE5Oa52x.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
- package/browser/cjs/{CEx5ZMI8c4HYrxzW.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
- package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
- package/browser/cjs/{BL1st_QvuF5m8AaJ.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
- package/browser/cjs/{BlBsVySC7wICKf3b.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
- package/browser/cjs/{BH160EggM2K8qaSr.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
- package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
- package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
- package/browser/cjs/{CPKZW7FfYlmkNYbE.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
- package/browser/cjs/{Bh785l7WNSK7G3hU.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CP_eU6V1jkcP4WtQ.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
- package/browser/cjs/{BQyDL6TxMqPmkugH.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
- package/browser/esm/{DpJqkBHKECEClAah.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
- package/browser/esm/{C8eXD0cT7ZPGYNCl.mjs → B7spDz0f3MErGle0.mjs} +21 -20
- package/browser/esm/{DTW06ga7BIWfkpc3.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
- package/browser/esm/{QNCUQO7a-oixacNG.mjs → C0HMqAubZ7789bne.mjs} +1 -1
- package/browser/esm/{B1fKMAH-vx3TJ0ii.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
- package/browser/esm/{B9IRFHtuYz6_J4Sj.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
- package/browser/esm/{BLiRvSBEJD-6dWH0.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
- package/browser/esm/{DJVGX60ly4BfiFse.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
- package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
- package/browser/esm/{5uqs7KjiX3pi6cd5.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
- package/browser/esm/{BXvDIYhOIHqmZQQo.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
- package/browser/esm/{CE3LjR3RfccnMUQt.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
- package/browser/esm/{PbEXrCdkQc02gfVZ.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
- package/browser/esm/{BVjzMl2EkoD1ceqn.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
- package/browser/esm/{BIQXdDApQqsa7WWH.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
- package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
- package/browser/esm/{q1cTyqrb2yKNSDq5.mjs → Dig0J4i2Urjl9Z--.mjs} +170 -169
- package/browser/esm/{DrzfnYtbTkZ0Vztm.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
- package/browser/esm/{BeMVD9uqSXo5o9U7.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
- package/browser/esm/{CTdZQdi5BoNPu7rZ.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
- package/browser/esm/{BCiGYy5wMbcNSF3g.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
- package/browser/esm/{0qppnWkLyeMGOizg.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
- package/browser/esm/index.mjs +74 -73
- package/browser/esm/{Dy7xNyqd4jfUcj2t.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
- package/browser/esm/{B0k5xuPgYO9B-vto.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
- package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
- package/licenses/dependencies.txt +156 -178
- package/node/esm/{BiiNcUkTIcWxOabS.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
- package/node/esm/{tk69oRoeZHf4vk1z.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
- package/node/esm/{CZlpZhqzgcRkv_bX.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
- package/node/esm/{BnbhKW27rQ185mOb.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
- package/node/esm/{Br_lQeehvACsDkzu.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
- package/node/esm/{Ro_fz9s3_2DHfiE-.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
- package/node/esm/{zQ0ozpm04cC2OG19.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
- package/node/esm/{DbzTWKX0Q8SGsGA4.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
- package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
- package/node/esm/{CI3U9rEYT3a_Biw5.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
- package/node/esm/{cT4-HbwV7TBlRjja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
- package/node/esm/{Cd5wE06_wa41Z6Wt.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
- package/node/esm/{CZA-oIez6io5vwv1.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
- package/node/esm/{CBlVCA0uvCwlok1v.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
- package/node/esm/{6L7TnSLCvI3zabFK.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
- package/node/esm/{C0eiYtK0Lkx4fQGc.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
- package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
- package/node/esm/{D4ydLNNfUH8D41A7.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
- package/node/esm/{D6wjzUXEh-Q71uoB.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
- package/node/esm/{BY1cZ8MXawge5drQ.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
- package/node/esm/{BvOnjWMz5o3z-qWe.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
- package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
- package/node/esm/{fENiUIb3u1Oy7Amv.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
- package/node/esm/index.mjs +12873 -41673
- package/package.json +8 -8
- package/browser/cjs/BAGEDalcFwfUrDOV.cjs +0 -6
- package/browser/cjs/BMcvveT3JniLuWWw.cjs +0 -6
- package/browser/cjs/B_JRx-UyLNBI8Jr9.cjs +0 -6
- package/browser/cjs/BbCINWmJNJ1UoABX.cjs +0 -6
- package/browser/cjs/BdPTNgv6BQFiJXiH.cjs +0 -238
- package/browser/cjs/BgqUvcQGSrZtIsnp.cjs +0 -6
- package/browser/cjs/Bub0lBbzpOagYy-6.cjs +0 -12
- package/browser/cjs/BvV0mrFKi8cdsSFF.cjs +0 -6
- package/browser/cjs/BxCxDRRwMVIA9T0Q.cjs +0 -6
- package/browser/cjs/BxbbUhKRSHRfeoNL.cjs +0 -32
- package/browser/cjs/C3RxbodVdJ0MR0eY.cjs +0 -11
- package/browser/cjs/C4zc2Ll270E135fR.cjs +0 -6
- package/browser/cjs/CEkRIfptK2yyy4PS.cjs +0 -6
- package/browser/cjs/CGp4fzG2ZIsJmB72.cjs +0 -6
- package/browser/cjs/CT5f8xMCNbOhih6R.cjs +0 -12
- package/browser/cjs/CV6WjeLkZrGoM4SB.cjs +0 -6
- package/browser/cjs/CZA_Av5pG0M1RgJK.cjs +0 -6
- package/browser/cjs/Ca6YJnV2DBQrqx0b.cjs +0 -124
- package/browser/cjs/Ci7CqdgErq0IGcl5.cjs +0 -6
- package/browser/cjs/CmROQEOLO7s-rzZW.cjs +0 -6
- package/browser/cjs/Cnc0-T-tLmqyX7Mq.cjs +0 -6
- package/browser/cjs/Ct6nh7ILtW_PHbB3.cjs +0 -6
- package/browser/cjs/CtmTxxgCijL1ZuPa.cjs +0 -6
- package/browser/cjs/CyUaP6X--CmuILoU.cjs +0 -6
- package/browser/cjs/D598Bk4npBA6UESy.cjs +0 -6
- package/browser/cjs/D7asEaPB97YVwe1v.cjs +0 -6
- package/browser/cjs/D9lDObZe3CkEPPGI.cjs +0 -6
- package/browser/cjs/DFrTuKkfDctye00L.cjs +0 -7
- package/browser/cjs/DNquPukGj-6iRmmP.cjs +0 -13
- package/browser/cjs/DOXD9gLvRI-UN_9l.cjs +0 -6
- package/browser/cjs/DRhcrHz-whpKmHXb.cjs +0 -6
- package/browser/cjs/DdBygPkI15syG3qE.cjs +0 -1501
- package/browser/cjs/DrgfA0AIigevE5fO.cjs +0 -15
- package/browser/cjs/DyjUI4ZuHoE2UtYP.cjs +0 -6
- package/browser/cjs/Ou0ysDOtKXD_MCyi.cjs +0 -6
- package/browser/cjs/Tkr7WOf1Km7F6jc1.cjs +0 -6
- package/browser/cjs/Ui6MyVXLy4hSZZln.cjs +0 -6
- package/browser/cjs/ZSSSnynZ-cYurCZ4.cjs +0 -6
- package/browser/cjs/hDl6HNkylTvv-qT3.cjs +0 -6
- package/browser/cjs/tLWq6abRGIT6oIrd.cjs +0 -6
- package/browser/cjs/xS50A4hbimnAA3g8.cjs +0 -6
- package/browser/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
- package/browser/esm/91ZejdYNSNvEQyri.mjs +0 -43655
- package/browser/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
- package/browser/esm/BGfz8kkDQwuckxnU.mjs +0 -10
- package/browser/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
- package/browser/esm/BSB3k2C-vxhRI9pk.mjs +0 -5582
- package/browser/esm/Baiv07hkxLIkAcoq.mjs +0 -10
- package/browser/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
- package/browser/esm/BpfyDNlbLX4dOPvj.mjs +0 -24
- package/browser/esm/Bs0RJigDhPR1WzFT.mjs +0 -21
- package/browser/esm/BtP3Wpc2YRk8W2KZ.mjs +0 -12
- package/browser/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
- package/browser/esm/C7YTh7Sm32Nt_Kv5.mjs +0 -10
- package/browser/esm/CE1gssQmn8QAeBEI.mjs +0 -10
- package/browser/esm/CE3vBPdWXPf3M3h2.mjs +0 -51
- package/browser/esm/CJigh9OXZ04sdTLc.mjs +0 -1466
- package/browser/esm/CLHgqHwohIYlAAUF.mjs +0 -472
- package/browser/esm/CTuGnJMMNAi4EKiy.mjs +0 -10
- package/browser/esm/CUZmKq_NPR_OCibb.mjs +0 -10
- package/browser/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
- package/browser/esm/Cv8VSqfWEaftgiTH.mjs +0 -10
- package/browser/esm/CvJUNcDyz497Gxl7.mjs +0 -10
- package/browser/esm/D2OQwThnobBdsQ1x.mjs +0 -3934
- package/browser/esm/D73ljnqYKCXMdyPd.mjs +0 -1575
- package/browser/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
- package/browser/esm/Dsu3RRvUfCUWRZ6q.mjs +0 -10
- package/browser/esm/DxEtUnQEyEYWuqL7.mjs +0 -820
- package/browser/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
- package/browser/esm/JMr0jtu67PC8clGf.mjs +0 -10
- package/browser/esm/QhTxW6tFl-So20AH.mjs +0 -425
- package/browser/esm/_tXPsCW6hHTdj45y.mjs +0 -10
- package/browser/esm/bJWg5_Jxjizyivdn.mjs +0 -29
- package/browser/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
- package/browser/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
- package/browser/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
- package/node/esm/0CbEJyCpbWyFHdK1.mjs +0 -4002
- package/node/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
- package/node/esm/A5WewF_ecyRMfEW9.mjs +0 -80
- package/node/esm/B0rQMzpUsBE47H-k.mjs +0 -10
- package/node/esm/B3TBImEZBAbKsEAq.mjs +0 -10
- package/node/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
- package/node/esm/B8tFaB-W9JcM6xhy.mjs +0 -29
- package/node/esm/BGfz8kkDQwuckxnU.mjs +0 -10
- package/node/esm/BKb0zrP-OexxgIYb.mjs +0 -24
- package/node/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
- package/node/esm/BQBHsnvwWPo5kQhy.mjs +0 -10
- package/node/esm/BZTLlsc-NvE1_mTb.mjs +0 -555
- package/node/esm/Baiv07hkxLIkAcoq.mjs +0 -10
- package/node/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
- package/node/esm/BiVFM0O-4h4yY7oa.mjs +0 -10
- package/node/esm/Bq-gS5qqB1Jrllm2.mjs +0 -307
- package/node/esm/Bv7SpuMBfsaGEFxP.mjs +0 -16
- package/node/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
- package/node/esm/C0qF-AAqNGDMeSVO.mjs +0 -813
- package/node/esm/CE1gssQmn8QAeBEI.mjs +0 -10
- package/node/esm/CUZmKq_NPR_OCibb.mjs +0 -10
- package/node/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
- package/node/esm/CvJUNcDyz497Gxl7.mjs +0 -10
- package/node/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
- package/node/esm/DJtTsiROzkkD2wRx.mjs +0 -5642
- package/node/esm/DLEDFraKFWvZtfvX.mjs +0 -10
- package/node/esm/DNYPU79SNlXuHN8j.mjs +0 -10
- package/node/esm/DjhMNAleaI3hhcHG.mjs +0 -13
- package/node/esm/DtUFCYSrTGcBjdBN.mjs +0 -453
- package/node/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
- package/node/esm/EebvqIVFwWH3slRt.mjs +0 -14
- package/node/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
- package/node/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
- package/node/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
|
|
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.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
7
|
+
import { e as t } from "./index.mjs";
|
|
8
|
+
import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./D4HUF8JC55LqF87u.mjs";
|
|
9
|
+
import { IFont as a, IAutoFilter as c, Sort as u, IRange as h, AddressUtils as p, IFill as g, IStyle as m, ITextFrame as d, FormulaError as b, IBorder as f } from "@sheetxl/sdk";
|
|
9
10
|
class A {
|
|
10
11
|
constructor(t2) {
|
|
11
12
|
this.list = t2;
|
|
@@ -75,11 +76,11 @@ class w {
|
|
|
75
76
|
}
|
|
76
77
|
return 1 === s2.length ? s2[0] : 0 === s2.length ? null : new A(s2);
|
|
77
78
|
}
|
|
78
|
-
getFromPath(
|
|
79
|
-
return
|
|
79
|
+
getFromPath(e2, s2) {
|
|
80
|
+
return t.getFromPath(e2, s2);
|
|
80
81
|
}
|
|
81
|
-
setToPath(
|
|
82
|
-
return
|
|
82
|
+
setToPath(e2, s2, r2) {
|
|
83
|
+
return t.setToPath(e2, s2, r2);
|
|
83
84
|
}
|
|
84
85
|
getValAttrAsString(t2, e2) {
|
|
85
86
|
let s2 = this.evaluate(t2, e2);
|
|
@@ -146,10 +147,10 @@ class N {
|
|
|
146
147
|
t2.copyFromAttribute(e2, "Target", r2, "target"), t2.copyFromAttribute(e2, "Type", r2, "type"), t2.copyFromAttribute(e2, "TargetMode", r2, "targetMode"), s2[e2.getAttribute("Id")] = r2;
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
|
-
const O = (
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
-1e3 !==
|
|
150
|
+
const O = (e2, s2) => {
|
|
151
|
+
if (e2 || !e2.hasAttribute("rot")) return;
|
|
152
|
+
const r2 = e2.getAttribute("rot"), o2 = t.roundAccurately(n(r2), 2);
|
|
153
|
+
-1e3 !== o2 && (s2.rotation = o2);
|
|
153
154
|
}, T = (t2, e2, s2, r2, o2) => {
|
|
154
155
|
const i2 = t2.getValAttrAsString(r2, e2);
|
|
155
156
|
null !== i2 && (s2[o2] = i2);
|
|
@@ -237,27 +238,27 @@ class _ {
|
|
|
237
238
|
visit(t2, e2, s2) {
|
|
238
239
|
}
|
|
239
240
|
processStroke(t2, e2, s2) {
|
|
240
|
-
const r2 = {},
|
|
241
|
-
if (
|
|
242
|
-
|
|
243
|
-
const e3 = t2.evaluate("miter",
|
|
244
|
-
e3 && (r2.lineJoin = "miter", e3.hasAttribute("lim") && (r2.miter = parseFloat(e3.getAttribute("lim")))), t2.evaluate("bevel",
|
|
245
|
-
const
|
|
246
|
-
if (
|
|
247
|
-
const e4 = t2.evaluate("ds",
|
|
241
|
+
const r2 = {}, n2 = t2.evaluate("ln", e2);
|
|
242
|
+
if (n2) {
|
|
243
|
+
n2.hasAttribute("algn") && (r2.align = B.fromOoxmlAlignment(n2.getAttribute("algn"))), n2.hasAttribute("cap") && (r2.lineCap = B.fromOoxmlLineCap(n2.getAttribute("cap"))), n2.hasAttribute("cmpd") && (r2.compound = B.fromOoxmlCompound(n2.getAttribute("cmpd"))), n2.hasAttribute("w") && (r2.width = o(n2.getAttribute("w")));
|
|
244
|
+
const e3 = t2.evaluate("miter", n2);
|
|
245
|
+
e3 && (r2.lineJoin = "miter", e3.hasAttribute("lim") && (r2.miter = parseFloat(e3.getAttribute("lim")))), t2.evaluate("bevel", n2) && (r2.lineJoin = "bevel"), t2.evaluate("round", n2) && (r2.lineJoin = "round");
|
|
246
|
+
const l2 = t2.evaluate("custDash", n2);
|
|
247
|
+
if (l2) {
|
|
248
|
+
const e4 = t2.evaluate("ds", l2);
|
|
248
249
|
if (e4 && e4.length > 0) {
|
|
249
250
|
let t3 = "";
|
|
250
251
|
for (let s3 = 0; s3 < e4.length; s3++) {
|
|
251
252
|
const r3 = e4.item(s3);
|
|
252
|
-
t3 +=
|
|
253
|
+
t3 += i(r3.getAttribute("d")) + "," + i(r3.getAttribute("sp"));
|
|
253
254
|
}
|
|
254
255
|
r2.dash = t3;
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
r2.fill =
|
|
258
|
+
const a2 = t2.evaluate("prstDash", n2);
|
|
259
|
+
a2 && a2.hasAttribute("val") && (r2.dash = a2.getAttribute("val")), this.parseEndElement(t2, n2, r2, "headEnd", "head"), this.parseEndElement(t2, n2, r2, "tailEnd", "tail");
|
|
260
|
+
const c2 = this.processFill(t2, n2, s2);
|
|
261
|
+
r2.fill = c2;
|
|
261
262
|
}
|
|
262
263
|
return r2;
|
|
263
264
|
}
|
|
@@ -268,65 +269,65 @@ class _ {
|
|
|
268
269
|
s2[o2 + "Size"] = t3 + "-" + e3;
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
|
-
processFill(t2, e2,
|
|
272
|
-
const
|
|
273
|
-
if (t2.evaluate("noFill", e2)) return
|
|
274
|
-
const
|
|
275
|
-
if (o2) {
|
|
276
|
-
const e3 = this.processAdjColor(t2, o2);
|
|
277
|
-
return e3 && (r2.solid = e3), r2;
|
|
278
|
-
}
|
|
279
|
-
const i2 = t2.evaluate("gradFill", e2);
|
|
272
|
+
processFill(t2, e2, r2) {
|
|
273
|
+
const o2 = {};
|
|
274
|
+
if (t2.evaluate("noFill", e2)) return o2.none = true, o2;
|
|
275
|
+
const i2 = t2.evaluate("solidFill", e2);
|
|
280
276
|
if (i2) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
return r2.gradient = e3, r2;
|
|
277
|
+
const e3 = this.processAdjColor(t2, i2);
|
|
278
|
+
return e3 && (o2.solid = e3), o2;
|
|
284
279
|
}
|
|
285
|
-
const n2 = t2.evaluate("
|
|
280
|
+
const n2 = t2.evaluate("gradFill", e2);
|
|
286
281
|
if (n2) {
|
|
287
|
-
|
|
288
|
-
|
|
282
|
+
n2.hasAttribute("rotWithShape") && (o2.isRotated = "1" === n2.getAttribute("rotWithShape"));
|
|
283
|
+
const e3 = this.processGradFill(t2, n2);
|
|
284
|
+
return o2.gradient = e3, o2;
|
|
289
285
|
}
|
|
290
|
-
const l2 = t2.evaluate("
|
|
286
|
+
const l2 = t2.evaluate("pattFill", e2);
|
|
291
287
|
if (l2) {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
288
|
+
const e3 = this.processPatternFill(t2, l2);
|
|
289
|
+
return o2.pattern = e3, o2;
|
|
290
|
+
}
|
|
291
|
+
const a2 = t2.evaluate("blipFill", e2);
|
|
292
|
+
if (a2) {
|
|
293
|
+
a2.hasAttribute("rotWithShape") && (o2.isRotated = s(a2.getAttribute("rotWithShape"))), a2.hasAttribute("dpi") && (o2.dpi = a2.getAttribute("dpi"));
|
|
294
|
+
const e3 = this.processImageFill(t2, a2);
|
|
295
|
+
return o2.image = e3, o2;
|
|
295
296
|
}
|
|
296
|
-
return
|
|
297
|
+
return o2.none = true, o2;
|
|
297
298
|
}
|
|
298
299
|
processGradFill(t2, e2) {
|
|
299
|
-
const
|
|
300
|
-
if (
|
|
301
|
-
if (
|
|
302
|
-
const t3 =
|
|
303
|
-
|
|
300
|
+
const r2 = {}, o2 = t2.evaluate("lin", e2);
|
|
301
|
+
if (o2) {
|
|
302
|
+
if (r2.type = "linear", o2.hasAttribute("ang")) {
|
|
303
|
+
const t3 = n(o2.getAttribute("ang"));
|
|
304
|
+
r2.angle = t3;
|
|
304
305
|
}
|
|
305
|
-
if (
|
|
306
|
-
const t3 =
|
|
307
|
-
|
|
306
|
+
if (o2.hasAttribute("scaled")) {
|
|
307
|
+
const t3 = s(o2.getAttribute("scaled"));
|
|
308
|
+
r2.scaled = t3;
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
|
-
const
|
|
311
|
-
e2.hasAttribute("flip") && (
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
314
|
-
|
|
315
|
-
const e3 = t2.evaluate("fillToRect",
|
|
316
|
-
e3 && (
|
|
311
|
+
const l2 = {};
|
|
312
|
+
e2.hasAttribute("flip") && (l2.mirror = e2.getAttribute("flip")), Object.keys(l2).length > 0 && (r2.tile = l2);
|
|
313
|
+
const a2 = t2.evaluate("path", e2);
|
|
314
|
+
if (a2) {
|
|
315
|
+
a2.hasAttribute("path") && (r2.type = B.fromOoxmlGradientType(a2.getAttribute("path")));
|
|
316
|
+
const e3 = t2.evaluate("fillToRect", a2);
|
|
317
|
+
e3 && (r2.fillTo = this.getRect(e3));
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
for (let e3 = 0;
|
|
322
|
-
const
|
|
323
|
-
|
|
319
|
+
const c2 = t2.evaluate("tileRect", e2);
|
|
320
|
+
c2 && (r2.tile.bounds = this.getRect(c2));
|
|
321
|
+
const u2 = [], h2 = t2.evaluate("gsLst/gs", e2);
|
|
322
|
+
for (let e3 = 0; h2 && e3 < h2.length; e3++) {
|
|
323
|
+
const s2 = h2.item(e3), r3 = { offset: i(s2.getAttribute("pos")), color: this.processAdjColor(t2, s2) };
|
|
324
|
+
u2.push(r3);
|
|
324
325
|
}
|
|
325
|
-
return
|
|
326
|
+
return u2.length > 0 && (r2.stops = u2), r2;
|
|
326
327
|
}
|
|
327
328
|
getRect(t2) {
|
|
328
329
|
const e2 = {};
|
|
329
|
-
return t2.hasAttribute("t") && (e2.t =
|
|
330
|
+
return t2.hasAttribute("t") && (e2.t = i(t2.getAttribute("t"))), t2.hasAttribute("l") && (e2.l = i(t2.getAttribute("l"))), t2.hasAttribute("b") && (e2.b = i(t2.getAttribute("b"))), t2.hasAttribute("r") && (e2.r = i(t2.getAttribute("r"))), 0 === Object.keys(e2).length ? null : e2;
|
|
330
331
|
}
|
|
331
332
|
processImageFill(t2, e2) {
|
|
332
333
|
return { ref: "https://cdn.sheetxl.com/public/logo-color-square-onwhite.png", tile: false };
|
|
@@ -361,7 +362,7 @@ class _ {
|
|
|
361
362
|
return l2 ? this.processSrgbClrElement(t2, l2) : null;
|
|
362
363
|
}
|
|
363
364
|
processScrgbClrElement(t2, e2) {
|
|
364
|
-
let s2 = "lrgba(" +
|
|
365
|
+
let s2 = "lrgba(" + i(e2.getAttribute("r")) + "," + i(e2.getAttribute("g")) + "," + i(e2.getAttribute("b")) + ")";
|
|
365
366
|
return s2 += this.processAdjustments(t2, e2), s2;
|
|
366
367
|
}
|
|
367
368
|
processSrgbClrElement(t2, e2) {
|
|
@@ -369,7 +370,7 @@ class _ {
|
|
|
369
370
|
return s2 += this.processAdjustments(t2, e2), s2;
|
|
370
371
|
}
|
|
371
372
|
processHslClr(t2, e2) {
|
|
372
|
-
let s2 = "hsl(" +
|
|
373
|
+
let s2 = "hsl(" + n(e2.getAttribute("hue")) + "," + i(e2.getAttribute("sat")) + "," + i(e2.getAttribute("lum")) + ")";
|
|
373
374
|
return s2 += this.processAdjustments(t2, e2), s2;
|
|
374
375
|
}
|
|
375
376
|
processClrWithValAttribute(t2, e2) {
|
|
@@ -398,22 +399,22 @@ class _ {
|
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
401
|
class j extends _ {
|
|
401
|
-
visit(t2,
|
|
402
|
+
visit(t2, s2, r2) {
|
|
402
403
|
try {
|
|
403
|
-
const
|
|
404
|
-
if (
|
|
405
|
-
O(
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
const
|
|
409
|
-
|
|
404
|
+
const o2 = t2.evaluate("xfrm", s2);
|
|
405
|
+
if (o2) {
|
|
406
|
+
O(o2, r2);
|
|
407
|
+
const s3 = { x: 0, y: 0, width: 0, height: 0 }, i3 = t2.evaluate("off", o2);
|
|
408
|
+
i3 && (s3.x = e(i3.getAttribute("x")) ?? 0, s3.y = e(i3.getAttribute("y")) ?? 0);
|
|
409
|
+
const n3 = t2.evaluate("ext", o2);
|
|
410
|
+
i3 && (s3.width = e(n3.getAttribute("cx")) ?? 0, s3.height = e(n3.getAttribute("cy")) ?? 0), r2.bounds = s3;
|
|
410
411
|
}
|
|
411
|
-
const
|
|
412
|
-
|
|
413
|
-
const
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
return
|
|
412
|
+
const i2 = t2.evaluate("prstGeom", s2);
|
|
413
|
+
i2?.hasAttribute("prst") ? r2.geometry = i2?.getAttribute("prst") : t2.evaluate("customGeom", s2) && console.warn("customGeom not supported yet");
|
|
414
|
+
const n2 = this.processFill(t2, s2, r2);
|
|
415
|
+
n2 && Object.keys(n2).length > 0 && (r2.fill = n2);
|
|
416
|
+
const l2 = this.processStroke(t2, s2, r2);
|
|
417
|
+
return l2 && Object.keys(l2).length > 0 && (r2.stroke = l2), r2;
|
|
417
418
|
} catch (t3) {
|
|
418
419
|
throw console.warn(t3), new Error("Unexpected Error parsing Shape Properties element");
|
|
419
420
|
}
|
|
@@ -653,17 +654,17 @@ class W {
|
|
|
653
654
|
const a2 = t2.evaluate("bodyPr", e2);
|
|
654
655
|
a2 && O(a2, s2);
|
|
655
656
|
}
|
|
656
|
-
parseTextProperties(e2, s2
|
|
657
|
-
if (!
|
|
658
|
-
|
|
659
|
-
const
|
|
660
|
-
if (
|
|
661
|
-
const
|
|
662
|
-
if (
|
|
663
|
-
const
|
|
664
|
-
|
|
657
|
+
parseTextProperties(t2, e2, s2) {
|
|
658
|
+
if (!e2) return;
|
|
659
|
+
e2.hasAttribute("sz") && (s2.size = parseFloat(e2.getAttribute("sz")) / 100), e2.hasAttribute("b") && (s2.weight = "1" === e2.getAttribute("b") ? 700 : 400), e2.hasAttribute("i") && (s2.italic = "1" === e2.getAttribute("i")), e2.hasAttribute("u") && (s2.underline = e2.getAttribute("u")), e2.hasAttribute("strike") && (s2.strike = e2.getAttribute("strike"));
|
|
660
|
+
const r2 = t2.evaluate("latin", e2);
|
|
661
|
+
if (r2 && !r2.getAttribute("typeface").startsWith("+")) {
|
|
662
|
+
const t3 = s2.font ?? {};
|
|
663
|
+
if (r2.hasAttribute("typeface") && (t3.family = r2.getAttribute("typeface")), r2.hasAttribute("panose")) {
|
|
664
|
+
const e3 = r2.getAttribute("panose");
|
|
665
|
+
e3 && (t3.fallbacks = [a.getPanoseFallback(e3)]);
|
|
665
666
|
}
|
|
666
|
-
|
|
667
|
+
r2.hasAttribute("pitchFamily") && (t3.pitch = r2.getAttribute("pitchFamily")), r2.hasAttribute("charset") && (t3.charset = r2.getAttribute("charset")), Object.keys(t3).length > 0 && (s2.font = t3);
|
|
667
668
|
}
|
|
668
669
|
}
|
|
669
670
|
}
|
|
@@ -761,14 +762,14 @@ class Z {
|
|
|
761
762
|
const n2 = t2.evaluate("minorFont", e2), l2 = this.processFontElement(t2, n2, {});
|
|
762
763
|
return r2.minorFont = l2.family, i2.fallbacks && (r2.minorFallbacks = l2.fallbacks), s2.fonts = r2, r2;
|
|
763
764
|
}
|
|
764
|
-
processFontElement(e2, s2
|
|
765
|
-
if (!
|
|
766
|
-
const
|
|
767
|
-
if (!
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
return
|
|
765
|
+
processFontElement(t2, e2, s2) {
|
|
766
|
+
if (!e2) return;
|
|
767
|
+
const r2 = t2.evaluate("latin", e2);
|
|
768
|
+
if (!r2) return;
|
|
769
|
+
const o2 = r2.getAttribute("typeface");
|
|
770
|
+
o2 && (s2.family = o2);
|
|
771
|
+
const i2 = r2.getAttribute("panose");
|
|
772
|
+
return i2 && (s2.fallbacks = [a.getPanoseFallback(i2)]), s2;
|
|
772
773
|
}
|
|
773
774
|
}
|
|
774
775
|
class tt {
|
|
@@ -788,30 +789,30 @@ class et {
|
|
|
788
789
|
const r2 = {};
|
|
789
790
|
return t2.copyFromAttribute(e2, "ref", r2), this.processFilterColumns(t2, e2, r2), Object.keys(r2).length > 0 && (s2.filter = r2), r2;
|
|
790
791
|
}
|
|
791
|
-
processColorFilter(t2,
|
|
792
|
-
const
|
|
793
|
-
return t2.copyFromAttribute(
|
|
792
|
+
processColorFilter(t2, e2) {
|
|
793
|
+
const s2 = { type: c.Type.Color };
|
|
794
|
+
return t2.copyFromAttribute(e2, "cellColor", s2, "cellColor", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "dxfId", s2, "styleId", t2.INT_COPY), s2;
|
|
794
795
|
}
|
|
795
796
|
processCustomFilter(t2, e2) {
|
|
796
797
|
const s2 = {};
|
|
797
798
|
return t2.copyFromAttribute(e2, "operator", s2, "operator", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "val", s2, "val"), s2;
|
|
798
799
|
}
|
|
799
|
-
processCustomFilters(t2,
|
|
800
|
-
const
|
|
801
|
-
t2.copyFromAttribute(
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
for (let
|
|
805
|
-
const
|
|
806
|
-
if (1 !==
|
|
800
|
+
processCustomFilters(t2, e2) {
|
|
801
|
+
const s2 = { type: c.Type.Custom };
|
|
802
|
+
t2.copyFromAttribute(e2, "and", s2, "and", t2.BOOLEAN_COPY);
|
|
803
|
+
const r2 = e2.childNodes;
|
|
804
|
+
s2.filters = [];
|
|
805
|
+
for (let e3 = 0; e3 < r2.length; e3++) {
|
|
806
|
+
const o2 = r2.item(e3);
|
|
807
|
+
if (1 !== o2.nodeType) continue;
|
|
807
808
|
let i2 = null;
|
|
808
|
-
"customFilter" ===
|
|
809
|
+
"customFilter" === o2.localName && (i2 = this.processCustomFilter(t2, o2)), i2 && s2.filters.push(i2);
|
|
809
810
|
}
|
|
810
|
-
return
|
|
811
|
+
return s2;
|
|
811
812
|
}
|
|
812
|
-
processDynamicFilter(t2,
|
|
813
|
-
const
|
|
814
|
-
return t2.copyFromAttribute(
|
|
813
|
+
processDynamicFilter(t2, e2) {
|
|
814
|
+
const s2 = { type: c.Type.Dynamic };
|
|
815
|
+
return t2.copyFromAttribute(e2, "type", s2, "dynamicType"), t2.copyFromAttribute(e2, "val", s2, "val", t2.INT_COPY), t2.copyFromAttribute(e2, "maxVal", s2, "maxVal", t2.INT_COPY), s2;
|
|
815
816
|
}
|
|
816
817
|
processDateGroupItem(t2, e2) {
|
|
817
818
|
const s2 = {};
|
|
@@ -820,32 +821,32 @@ class et {
|
|
|
820
821
|
processFilterItem(t2, e2) {
|
|
821
822
|
if (e2.hasAttribute("val")) return e2.getAttribute("val");
|
|
822
823
|
}
|
|
823
|
-
processFilters(t2,
|
|
824
|
-
const
|
|
825
|
-
t2.copyFromAttribute(
|
|
826
|
-
let
|
|
827
|
-
const
|
|
828
|
-
for (let
|
|
829
|
-
const s3 =
|
|
824
|
+
processFilters(t2, e2) {
|
|
825
|
+
const s2 = { type: c.Type.Items };
|
|
826
|
+
t2.copyFromAttribute(e2, "blank", s2, "blank", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "calendarType", s2, "calendarType");
|
|
827
|
+
let r2 = [], o2 = [];
|
|
828
|
+
const i2 = e2.childNodes;
|
|
829
|
+
for (let e3 = 0; e3 < i2.length; e3++) {
|
|
830
|
+
const s3 = i2.item(e3);
|
|
830
831
|
if (1 === s3.nodeType) {
|
|
831
832
|
if ("dateGroupItem" === s3.localName) {
|
|
832
|
-
const
|
|
833
|
-
|
|
833
|
+
const e4 = this.processDateGroupItem(t2, s3);
|
|
834
|
+
e4 && r2.push(e4);
|
|
834
835
|
} else if ("filter" === s3.localName) {
|
|
835
|
-
const
|
|
836
|
-
void 0 !==
|
|
836
|
+
const e4 = this.processFilterItem(t2, s3);
|
|
837
|
+
void 0 !== e4 && o2.push(e4);
|
|
837
838
|
}
|
|
838
839
|
}
|
|
839
840
|
}
|
|
840
|
-
return
|
|
841
|
+
return r2.length > 0 && (s2.dateGroups = r2), o2.length > 0 && (s2.items = o2), s2;
|
|
841
842
|
}
|
|
842
|
-
processIcon(t2,
|
|
843
|
-
const
|
|
844
|
-
return t2.copyFromAttribute(
|
|
843
|
+
processIcon(t2, e2) {
|
|
844
|
+
const s2 = { type: c.Type.Icon };
|
|
845
|
+
return t2.copyFromAttribute(e2, "iconId", s2, "iconId", t2.INT_COPY), t2.copyFromAttribute(e2, "iconSet", s2), s2;
|
|
845
846
|
}
|
|
846
|
-
processTop10(t2,
|
|
847
|
-
const
|
|
848
|
-
return t2.copyFromAttribute(
|
|
847
|
+
processTop10(t2, e2) {
|
|
848
|
+
const s2 = { type: c.Type.Top10 };
|
|
849
|
+
return t2.copyFromAttribute(e2, "filterVal", s2, "filterVal", t2.FLOAT_COPY), t2.copyFromAttribute(e2, "percent", s2, "percent", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "top", s2, "top", t2.BOOLEAN_COPY), t2.copyFromAttribute(e2, "val", s2, "val", t2.FLOAT_COPY), s2;
|
|
849
850
|
}
|
|
850
851
|
processFilterCriteria(t2, e2, s2) {
|
|
851
852
|
if (!e2) return;
|
|
@@ -860,11 +861,11 @@ class et {
|
|
|
860
861
|
}
|
|
861
862
|
processFilterColumn(t2, e2) {
|
|
862
863
|
if (!e2) return null;
|
|
863
|
-
const
|
|
864
|
+
const r2 = {};
|
|
864
865
|
if (!e2.hasAttribute("colId")) return;
|
|
865
|
-
|
|
866
|
-
let
|
|
867
|
-
return e2.hasAttribute("hiddenButton") && (
|
|
866
|
+
r2.offset = parseInt(e2.getAttribute("colId"));
|
|
867
|
+
let o2 = false;
|
|
868
|
+
return e2.hasAttribute("hiddenButton") && (o2 = s(e2.getAttribute("hiddenButton"))), o2 && (r2.hiddenButton = true), e2.hasAttribute("showButton") && (r2.showButton = s(e2.getAttribute("showButton"))), this.processFilterCriteria(t2, e2, r2), r2;
|
|
868
869
|
}
|
|
869
870
|
processFilterColumns(t2, e2, s2) {
|
|
870
871
|
if (!e2) return;
|
|
@@ -880,27 +881,27 @@ class et {
|
|
|
880
881
|
}
|
|
881
882
|
}
|
|
882
883
|
class st {
|
|
883
|
-
visit(t2, e2,
|
|
884
|
+
visit(t2, e2, r2) {
|
|
884
885
|
if (!e2) return;
|
|
885
|
-
const
|
|
886
|
-
if (t2.copyFromAttribute(e2, "ref",
|
|
887
|
-
const t3 =
|
|
888
|
-
|
|
886
|
+
const o2 = {};
|
|
887
|
+
if (t2.copyFromAttribute(e2, "ref", o2), e2.hasAttribute("caseSensitive")) {
|
|
888
|
+
const t3 = s(e2.getAttribute("caseSensitive"));
|
|
889
|
+
o2.collatorOptions = t3 ? u.CaseSensitiveOptions : u.CaseInsensitiveOptions;
|
|
889
890
|
}
|
|
890
|
-
const
|
|
891
|
-
null !=
|
|
892
|
-
const
|
|
893
|
-
return this.processSortConditions(t2, e2,
|
|
891
|
+
const i2 = e2.getAttribute("sortMethod");
|
|
892
|
+
null != i2 && "none" !== i2 && ("stroke" === i2 ? o2.collatorOptions = { ...o2.collatorOptions, collation: "stroke" } : "pinYin" === i2 && (o2.collatorOptions = { ...o2.collatorOptions, collation: "pinyin" })), e2.hasAttribute("columnSort") && s(e2.getAttribute("columnSort")) && (o2.orientation = h.Orientation.Column);
|
|
893
|
+
const n2 = p.fastStringToRange(o2.ref);
|
|
894
|
+
return this.processSortConditions(t2, e2, o2, n2), Object.keys(o2).length > 0 && (r2.sort = o2), o2;
|
|
894
895
|
}
|
|
895
|
-
processSortCondition(t2, e2,
|
|
896
|
+
processSortCondition(t2, e2, r2) {
|
|
896
897
|
if (!e2) return null;
|
|
897
|
-
const
|
|
898
|
+
const o2 = {};
|
|
898
899
|
if (e2.hasAttribute("ref")) {
|
|
899
900
|
if (e2.hasAttribute("ref")) {
|
|
900
|
-
const t3 = e2.getAttribute("ref"),
|
|
901
|
-
|
|
901
|
+
const t3 = e2.getAttribute("ref"), s2 = p.fastStringToRange(t3);
|
|
902
|
+
o2.offset = r2 ? s2.colStart - r2.colStart : s2.colStart;
|
|
902
903
|
}
|
|
903
|
-
return
|
|
904
|
+
return o2.reverse = false, e2.hasAttribute("descending") && (o2.reverse = s(e2.getAttribute("descending"))), t2.copyFromAttribute(e2, "sortBy", o2, "sortOn"), t2.copyFromAttribute(e2, "dxfId", o2), t2.copyFromAttribute(e2, "iconSet", o2), t2.copyFromAttribute(e2, "customList", o2), o2;
|
|
904
905
|
}
|
|
905
906
|
console.warn("no ref for sort conditional", t2.getPath());
|
|
906
907
|
}
|
|
@@ -922,7 +923,7 @@ class rt {
|
|
|
922
923
|
}
|
|
923
924
|
processDataBarColor(t2, e2, s2, r2, o2 = "dk1") {
|
|
924
925
|
if (!e2) return;
|
|
925
|
-
const i2 =
|
|
926
|
+
const i2 = l((t3) => e2.getAttribute(t3), o2);
|
|
926
927
|
return i2 && (s2[r2] = i2), s2;
|
|
927
928
|
}
|
|
928
929
|
processFonts(t2, e2, s2) {
|
|
@@ -938,37 +939,37 @@ class rt {
|
|
|
938
939
|
}
|
|
939
940
|
return s2;
|
|
940
941
|
}
|
|
941
|
-
processFont(e2, s2
|
|
942
|
-
|
|
943
|
-
const
|
|
944
|
-
if (
|
|
945
|
-
const
|
|
946
|
-
|
|
942
|
+
processFont(t2, e2, s2) {
|
|
943
|
+
t2.getValAttrAsBoolean("b", e2, true) && (s2.weight = 700), t2.getValAttrAsBoolean("i", e2, true) && (s2.style = a.Style.Italic), t2.getValAttrAsBoolean("strike", e2, true) && (s2.strike = true);
|
|
944
|
+
const r2 = t2.evaluate("u", e2);
|
|
945
|
+
if (r2) {
|
|
946
|
+
const t3 = r2.getAttribute("val");
|
|
947
|
+
s2.underline = t3 || a.UnderlineStyle.Single;
|
|
947
948
|
}
|
|
948
|
-
T(e2, s2,
|
|
949
|
-
const
|
|
950
|
-
this.processDataBarColor(
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
954
|
-
if (
|
|
949
|
+
T(t2, e2, s2, "vertAlign", "verticalAlign"), "superscript" === s2.verticalAlign ? s2.verticalAlign = a.VerticalAlignment.Super : "subscript" === s2.verticalAlign && (s2.verticalAlign = a.VerticalAlignment.Sub), x(t2, e2, s2, "sz", "size");
|
|
950
|
+
const o2 = t2.evaluate("color", e2);
|
|
951
|
+
this.processDataBarColor(t2, o2, s2, "fill"), s2.fill || (s2.fill = "dk1"), T(t2, e2, s2, "name", "family"), T(t2, e2, s2, "rFont", "family");
|
|
952
|
+
const i2 = t2.evaluate("family", e2);
|
|
953
|
+
if (i2) {
|
|
954
|
+
const t3 = i2.getAttribute("val");
|
|
955
|
+
if (t3) switch (t3) {
|
|
955
956
|
case "1":
|
|
956
|
-
|
|
957
|
+
s2.fallbacks = ["serif"];
|
|
957
958
|
break;
|
|
958
959
|
case "2":
|
|
959
|
-
|
|
960
|
+
s2.fallbacks = ["sans-serif"];
|
|
960
961
|
break;
|
|
961
962
|
case "3":
|
|
962
|
-
|
|
963
|
+
s2.fallbacks = ["monospace"];
|
|
963
964
|
break;
|
|
964
965
|
case "4":
|
|
965
|
-
|
|
966
|
+
s2.fallbacks = ["cursive"];
|
|
966
967
|
break;
|
|
967
968
|
case "5":
|
|
968
|
-
|
|
969
|
+
s2.fallbacks = ["fantasy"];
|
|
969
970
|
}
|
|
970
971
|
}
|
|
971
|
-
return T(e2, s2,
|
|
972
|
+
return T(t2, e2, s2, "scheme", "scheme"), V(t2, e2, s2, "shadow", "shadow", true), V(t2, e2, s2, "outline", "outline", true), t2.getValAttrAsBoolean("condense", e2, true) && (s2.letterSpacing = -1), t2.getValAttrAsBoolean("extend", e2, true) && (s2.letterSpacing = 1), T(t2, e2, s2, "charset", "charset"), s2;
|
|
972
973
|
}
|
|
973
974
|
processFills(t2, e2, s2) {
|
|
974
975
|
if (!e2) return;
|
|
@@ -981,57 +982,57 @@ class rt {
|
|
|
981
982
|
return s2;
|
|
982
983
|
}
|
|
983
984
|
processFill(t2, e2, s2, r2) {
|
|
984
|
-
const o2 = { type:
|
|
985
|
-
let
|
|
986
|
-
for (let e3 = 0; !
|
|
987
|
-
const s3 =
|
|
988
|
-
1 === s3.nodeType && ("gradientFill" === s3.localName ? (this.processGradientFill(t2, s3, o2),
|
|
985
|
+
const o2 = { type: g.Type.None }, i2 = e2.childNodes;
|
|
986
|
+
let n2 = false;
|
|
987
|
+
for (let e3 = 0; !n2 && e3 < i2.length; e3++) {
|
|
988
|
+
const s3 = i2.item(e3);
|
|
989
|
+
1 === s3.nodeType && ("gradientFill" === s3.localName ? (this.processGradientFill(t2, s3, o2), n2 = true) : "patternFill" === s3.localName && (this.processPatternFill(t2, s3, o2), n2 = true));
|
|
989
990
|
}
|
|
990
991
|
return s2[r2] = o2, s2;
|
|
991
992
|
}
|
|
992
993
|
processGradientFill(t2, e2, s2) {
|
|
993
994
|
if (!e2) return;
|
|
994
|
-
s2.type =
|
|
995
|
+
s2.type = g.Type.Gradient;
|
|
995
996
|
const r2 = [];
|
|
996
997
|
s2.stops = r2, s2.angle = 90 + (e2.hasAttribute("degree") ? parseFloat(e2.getAttribute("degree")) : 0);
|
|
997
998
|
const o2 = e2.getAttribute("type");
|
|
998
999
|
o2 && (s2.gradientType = o2);
|
|
999
|
-
const
|
|
1000
|
+
const i2 = (t3) => {
|
|
1000
1001
|
if (!t3) return 0;
|
|
1001
1002
|
const e3 = parseFloat(t3);
|
|
1002
1003
|
return isNaN(e3) ? 0 : e3;
|
|
1003
1004
|
};
|
|
1004
|
-
(e2.hasAttribute("left") || e2.hasAttribute("top") || e2.hasAttribute("right") || e2.hasAttribute("bottom")) && (s2.fillTo = { left:
|
|
1005
|
-
const
|
|
1006
|
-
for (let e3 = 0; e3 <
|
|
1007
|
-
const s3 =
|
|
1005
|
+
(e2.hasAttribute("left") || e2.hasAttribute("top") || e2.hasAttribute("right") || e2.hasAttribute("bottom")) && (s2.fillTo = { left: i2(e2.getAttribute("left")), top: i2(e2.getAttribute("top")), right: i2(e2.getAttribute("right")), bottom: i2(e2.getAttribute("bottom")) });
|
|
1006
|
+
const n2 = e2.childNodes;
|
|
1007
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
1008
|
+
const s3 = n2.item(e3);
|
|
1008
1009
|
if (1 === s3.nodeType && "stop" === s3.localName) {
|
|
1009
1010
|
const e4 = {};
|
|
1010
1011
|
r2.push(e4);
|
|
1011
1012
|
const o3 = parseFloat(s3.getAttribute("position"));
|
|
1012
1013
|
e4.offset = o3;
|
|
1013
|
-
const
|
|
1014
|
-
this.processDataBarColor(t2,
|
|
1014
|
+
const i3 = t2.evaluate("color", s3);
|
|
1015
|
+
this.processDataBarColor(t2, i3, e4, "color");
|
|
1015
1016
|
}
|
|
1016
1017
|
}
|
|
1017
1018
|
return s2;
|
|
1018
1019
|
}
|
|
1019
1020
|
processPatternFill(t2, e2, s2) {
|
|
1020
1021
|
if (!e2) return;
|
|
1021
|
-
const r2 = t2.getVisitorParamsState().get("processingDXFs"), o2 = e2.getAttribute("patternType") || (r2 ?
|
|
1022
|
-
if (o2 ===
|
|
1023
|
-
s2.type =
|
|
1024
|
-
let
|
|
1025
|
-
const
|
|
1026
|
-
if (
|
|
1027
|
-
|
|
1028
|
-
const t3 =
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1031
|
-
const
|
|
1032
|
-
this.processDataBarColor(t2,
|
|
1033
|
-
const
|
|
1034
|
-
return this.processDataBarColor(t2,
|
|
1022
|
+
const r2 = t2.getVisitorParamsState().get("processingDXFs"), o2 = e2.getAttribute("patternType") || (r2 ? g.BuiltInSheetPattern.Solid : g.BuiltInSheetPattern.None);
|
|
1023
|
+
if (o2 === g.BuiltInSheetPattern.None) return { none: true };
|
|
1024
|
+
s2.type = g.Type.Pattern, o2 && (s2.patternType = o2);
|
|
1025
|
+
let i2, n2 = "foreground", l2 = "background";
|
|
1026
|
+
const a2 = s2.patternType === g.BuiltInSheetPattern.Solid && r2;
|
|
1027
|
+
if (a2) {
|
|
1028
|
+
i2 = "lt1";
|
|
1029
|
+
const t3 = n2;
|
|
1030
|
+
n2 = l2, l2 = t3;
|
|
1031
|
+
}
|
|
1032
|
+
const c2 = t2.evaluate("fgColor", e2);
|
|
1033
|
+
this.processDataBarColor(t2, c2, s2, n2, i2);
|
|
1034
|
+
const u2 = t2.evaluate("bgColor", e2);
|
|
1035
|
+
return this.processDataBarColor(t2, u2, s2, l2, i2), a2 && !s2.foreground && (s2.foreground = i2), s2;
|
|
1035
1036
|
}
|
|
1036
1037
|
processBorders(t2, e2, s2, r2) {
|
|
1037
1038
|
if (!e2) return;
|
|
@@ -1046,7 +1047,7 @@ class rt {
|
|
|
1046
1047
|
processBorder(t2, e2, s2, r2, o2) {
|
|
1047
1048
|
if (!e2) return;
|
|
1048
1049
|
const i2 = {};
|
|
1049
|
-
return this.processBorderStroke(t2, e2, i2,
|
|
1050
|
+
return this.processBorderStroke(t2, e2, i2, f.Edge.Left), this.processBorderStroke(t2, e2, i2, f.Edge.Right), o2 ? (i2.right || i2.left) && (i2.right ? i2.vertical = { ...i2.right } : i2.vertical = { ...i2.left }) : this.processBorderStroke(t2, e2, i2, f.Edge.Vertical), this.processBorderStroke(t2, e2, i2, f.Edge.Top), this.processBorderStroke(t2, e2, i2, f.Edge.Bottom), o2 ? (i2.bottom || i2.top) && (i2.right ? i2.horizontal = { ...i2.bottom } : i2.horizontal = { ...i2.top }) : this.processBorderStroke(t2, e2, i2, f.Edge.Horizontal), s2[r2] = i2, s2;
|
|
1050
1051
|
}
|
|
1051
1052
|
processBorderStroke(t2, e2, s2, r2) {
|
|
1052
1053
|
if (!e2) return;
|
|
@@ -1062,18 +1063,18 @@ class ot extends rt {
|
|
|
1062
1063
|
visit(t2, e2, s2) {
|
|
1063
1064
|
this.processNumFmts(t2, t2.evaluate("numFmts", e2), null), t2.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
|
|
1064
1065
|
const r2 = { fills: {}, fonts: {}, borders: {} };
|
|
1065
|
-
this.processFonts(t2, t2.evaluate("fonts", e2), r2.fonts), this.processFills(t2, t2.evaluate("fills", e2), r2.fills), this.processBorders(t2, t2.evaluate("borders", e2), r2.borders, true), r2.fills[0] = { type:
|
|
1066
|
+
this.processFonts(t2, t2.evaluate("fonts", e2), r2.fonts), this.processFills(t2, t2.evaluate("fills", e2), r2.fills), this.processBorders(t2, t2.evaluate("borders", e2), r2.borders, true), r2.fills[0] = { type: g.Type.None }, r2.fills[1] = { type: g.Type.Pattern, patternType: g.BuiltInSheetPattern.Gray125 }, r2.borders[0] = {};
|
|
1066
1067
|
const o2 = [];
|
|
1067
1068
|
this.processXFs(t2, t2.evaluate("cellStyleXfs", e2), o2, r2, null, false);
|
|
1068
|
-
const
|
|
1069
|
+
const i2 = /* @__PURE__ */ new Map();
|
|
1069
1070
|
if (o2.length > 0) {
|
|
1070
1071
|
const r3 = [];
|
|
1071
|
-
this.processCellStyles(t2, t2.evaluate("cellStyles", e2), r3, o2,
|
|
1072
|
+
this.processCellStyles(t2, t2.evaluate("cellStyles", e2), r3, o2, i2), s2.named = r3;
|
|
1072
1073
|
}
|
|
1074
|
+
const n2 = [];
|
|
1075
|
+
this.processXFs(t2, t2.evaluate("cellXfs", e2), n2, r2, i2), Object.keys(n2).length > 0 && (s2.direct = n2);
|
|
1073
1076
|
const l2 = [];
|
|
1074
|
-
this.
|
|
1075
|
-
const a2 = [];
|
|
1076
|
-
return this.processDXFs(t2, t2.evaluate("dxfs", e2), a2), this.processTableStyles(t2, t2.evaluate("tableStyles", e2), s2, a2), this.processIndexColors(t2, t2.evaluate("colors/indexedColors", e2), s2), this.processMruColors(t2, t2.evaluate("colors/mruColors", e2), s2), s2;
|
|
1077
|
+
return this.processDXFs(t2, t2.evaluate("dxfs", e2), l2), this.processTableStyles(t2, t2.evaluate("tableStyles", e2), s2, l2), this.processIndexColors(t2, t2.evaluate("colors/indexedColors", e2), s2), this.processMruColors(t2, t2.evaluate("colors/mruColors", e2), s2), s2;
|
|
1077
1078
|
}
|
|
1078
1079
|
processIndexColors(t2, e2, s2) {
|
|
1079
1080
|
if (!e2) return;
|
|
@@ -1126,58 +1127,58 @@ class ot extends rt {
|
|
|
1126
1127
|
}
|
|
1127
1128
|
}
|
|
1128
1129
|
}
|
|
1129
|
-
processXF(t2, e2,
|
|
1130
|
+
processXF(t2, e2, r2, o2, i2, n2) {
|
|
1130
1131
|
if (!e2) return;
|
|
1131
1132
|
const l2 = e2.getAttribute("xfId");
|
|
1132
|
-
if (l2 &&
|
|
1133
|
-
const t3 =
|
|
1134
|
-
t3 && t3 !==
|
|
1133
|
+
if (l2 && i2) {
|
|
1134
|
+
const t3 = i2.get(parseInt(l2));
|
|
1135
|
+
t3 && t3 !== m.BuiltInName.Normal && (r2.named = t3);
|
|
1135
1136
|
}
|
|
1136
|
-
const a2 = (t3) => !(!
|
|
1137
|
+
const a2 = (t3) => !(!n2 && e2.hasAttribute(t3)) || s(e2.getAttribute("applyFont"));
|
|
1137
1138
|
if (a2("applyFont")) {
|
|
1138
|
-
const t3 =
|
|
1139
|
-
t3 && (
|
|
1139
|
+
const t3 = o2.fonts[e2.getAttribute("fontId")];
|
|
1140
|
+
t3 && (r2.font = t3);
|
|
1140
1141
|
}
|
|
1141
1142
|
if (a2("applyFill")) {
|
|
1142
|
-
const t3 =
|
|
1143
|
-
t3 && Object.keys(t3).length > 0 && (
|
|
1143
|
+
const t3 = o2.fills[e2.getAttribute("fillId")];
|
|
1144
|
+
t3 && Object.keys(t3).length > 0 && (r2.fill = t3);
|
|
1144
1145
|
}
|
|
1145
1146
|
if (a2("applyBorder")) {
|
|
1146
|
-
const t3 =
|
|
1147
|
-
t3 && Object.keys(t3).length > 0 && (
|
|
1147
|
+
const t3 = o2.borders[e2.getAttribute("borderId")];
|
|
1148
|
+
t3 && Object.keys(t3).length > 0 && (r2.border = t3);
|
|
1148
1149
|
}
|
|
1149
1150
|
if (a2("applyNumberFormat")) {
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1152
|
-
const e3 = parseInt(
|
|
1151
|
+
const s2 = e2.getAttribute("numFmtId");
|
|
1152
|
+
if (s2) {
|
|
1153
|
+
const e3 = parseInt(s2);
|
|
1153
1154
|
let o3;
|
|
1154
1155
|
const i3 = t2.getVisitorParamsState();
|
|
1155
1156
|
if (i3) {
|
|
1156
1157
|
const t3 = i3.get("numFmts");
|
|
1157
|
-
t3 && (o3 = t3.get(e3)),
|
|
1158
|
+
t3 && (o3 = t3.get(e3)), r2.numberFormat = o3 ?? e3;
|
|
1158
1159
|
} else console.warn("no visitor params state");
|
|
1159
1160
|
}
|
|
1160
1161
|
}
|
|
1161
|
-
a2("applyAlignment") && this.processAlignment(t2, t2.evaluate("alignment", e2),
|
|
1162
|
-
const c2 =
|
|
1163
|
-
c2 && (
|
|
1162
|
+
a2("applyAlignment") && this.processAlignment(t2, t2.evaluate("alignment", e2), r2), a2("applyProtection") && this.processProtection(t2, t2.evaluate("protection", e2), r2);
|
|
1163
|
+
const c2 = s(e2.getAttribute("quotePrefix"));
|
|
1164
|
+
c2 && (r2.quotePrefix = c2);
|
|
1164
1165
|
}
|
|
1165
|
-
processAlignment(t2, e2,
|
|
1166
|
-
const
|
|
1167
|
-
if (e2?.hasAttribute("horizontal") ?
|
|
1166
|
+
processAlignment(t2, e2, r2) {
|
|
1167
|
+
const o2 = {};
|
|
1168
|
+
if (e2?.hasAttribute("horizontal") ? o2.horizontal = e2.getAttribute("horizontal") : o2.horizontal = d.HorizontalAlignment.General, e2?.hasAttribute("vertical") ? o2.vertical = e2.getAttribute("vertical") : o2.vertical = d.VerticalAlignment.Bottom, e2?.hasAttribute("indent") ? o2.indent = parseInt(e2.getAttribute("indent")) : o2.indent = 0, e2?.hasAttribute("relativeIndent") ? o2.relativeIndent = parseInt(e2.getAttribute("relativeIndent")) : o2.relativeIndent = 0, s(e2?.getAttribute("wrapText")) ? o2.overflow = d.Overflow.Wrap : o2.overflow = d.Overflow.Visible, s(e2?.getAttribute("shrinkToFit")) && (o2.overflow = d.Overflow.Shrink), e2?.hasAttribute("textRotation")) {
|
|
1168
1169
|
let t3 = parseFloat(e2.getAttribute("textRotation"));
|
|
1169
|
-
t3 > 0 && t3 <= 90 ? t3 = 360 - t3 : t3 > 90 && t3 <= 180 ? t3 -= 90 : 255 === t3 && (t3 = 0,
|
|
1170
|
-
} else
|
|
1171
|
-
e2?.hasAttribute("justifyLastLine") && (
|
|
1172
|
-
const
|
|
1173
|
-
return
|
|
1170
|
+
t3 > 0 && t3 <= 90 ? t3 = 360 - t3 : t3 > 90 && t3 <= 180 ? t3 -= 90 : 255 === t3 && (t3 = 0, o2.stacked = true), o2.rotation = t3;
|
|
1171
|
+
} else o2.rotation = 0;
|
|
1172
|
+
e2?.hasAttribute("justifyLastLine") && (o2.justifyLastLine = s(e2.getAttribute("justifyLastLine")));
|
|
1173
|
+
const i2 = e2?.getAttribute("readingOrder");
|
|
1174
|
+
return i2 && ("0" === i2 ? o2.readingDirection = d.ReadingDirection.Auto : "1" === i2 ? o2.readingDirection = d.ReadingDirection.LeftToRight : "2" === i2 ? o2.readingDirection = d.ReadingDirection.RightToLeft : console.warn(`invalid readingOrder: ${i2}`)), Object.keys(o2).length > 0 && (r2.alignment = o2), r2;
|
|
1174
1175
|
}
|
|
1175
|
-
processProtection(t2, e2,
|
|
1176
|
+
processProtection(t2, e2, r2) {
|
|
1176
1177
|
if (!e2) return;
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1179
|
-
const
|
|
1180
|
-
return
|
|
1178
|
+
const o2 = {}, i2 = e2.getAttribute("locked");
|
|
1179
|
+
i2 && !s(i2) && (o2.edit = true);
|
|
1180
|
+
const n2 = e2.getAttribute("hidden");
|
|
1181
|
+
return n2 && s(n2) && (o2.formulaHidden = true), Object.keys(o2).length > 0 && (r2.protection = o2), r2;
|
|
1181
1182
|
}
|
|
1182
1183
|
processDXF(t2, e2, s2) {
|
|
1183
1184
|
if (!e2) return;
|
|
@@ -1213,21 +1214,21 @@ class ot extends rt {
|
|
|
1213
1214
|
}
|
|
1214
1215
|
t2.getVisitorParamsState().delete("processingDXFs");
|
|
1215
1216
|
}
|
|
1216
|
-
processTableStyle(t2, e2,
|
|
1217
|
-
const
|
|
1218
|
-
e2.hasAttribute("table") && (
|
|
1219
|
-
const
|
|
1220
|
-
for (let t3 = 0; t3 <
|
|
1221
|
-
const e3 =
|
|
1217
|
+
processTableStyle(t2, e2, r2, o2, i2 = false) {
|
|
1218
|
+
const n2 = e2.getAttribute("name"), l2 = { name: n2 };
|
|
1219
|
+
e2.hasAttribute("table") && (l2.table = s(e2.getAttribute("table"))), e2.hasAttribute("pivot") && (l2.pivot = s(e2.getAttribute("pivot"))), i2 && !l2.pivot && o2.unshift(null);
|
|
1220
|
+
const a2 = e2.childNodes;
|
|
1221
|
+
for (let t3 = 0; t3 < a2.length; t3++) {
|
|
1222
|
+
const e3 = a2.item(t3);
|
|
1222
1223
|
if (1 === e3.nodeType && "tableStyleElement" === e3.localName) {
|
|
1223
|
-
const t4 = e3.getAttribute("type"),
|
|
1224
|
-
let
|
|
1225
|
-
|
|
1224
|
+
const t4 = e3.getAttribute("type"), s2 = e3.getAttribute("dxfId");
|
|
1225
|
+
let r3 = o2?.[s2];
|
|
1226
|
+
r3 || (console.warn("invalid dfx id", s2), r3 = {}), l2[t4] = r3;
|
|
1226
1227
|
let i3 = null;
|
|
1227
|
-
e3.hasAttribute("size") && (i3 = parseInt(e3.getAttribute("size"))), i3 && !isNaN(i3) && (
|
|
1228
|
+
e3.hasAttribute("size") && (i3 = parseInt(e3.getAttribute("size"))), i3 && !isNaN(i3) && (r3.size = i3);
|
|
1228
1229
|
}
|
|
1229
1230
|
}
|
|
1230
|
-
delete
|
|
1231
|
+
delete l2.name, r2[n2] = l2;
|
|
1231
1232
|
}
|
|
1232
1233
|
processTableStyles(t2, e2, s2, r2, o2) {
|
|
1233
1234
|
if (!e2) return;
|
|
@@ -1242,16 +1243,16 @@ class ot extends rt {
|
|
|
1242
1243
|
}
|
|
1243
1244
|
return Object.keys(c2).length > 0 && (i2.styles = c2), Object.keys(i2).length > 0 && (s2.tables = i2), s2;
|
|
1244
1245
|
}
|
|
1245
|
-
processCellStyles(t2, e2,
|
|
1246
|
+
processCellStyles(t2, e2, r2, o2, i2) {
|
|
1246
1247
|
if (!e2) return;
|
|
1247
|
-
const
|
|
1248
|
-
for (let t3 = 0; t3 <
|
|
1249
|
-
const e3 =
|
|
1248
|
+
const n2 = e2.childNodes;
|
|
1249
|
+
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
1250
|
+
const e3 = n2.item(t3);
|
|
1250
1251
|
if (1 === e3.nodeType && "cellStyle" === e3.localName) {
|
|
1251
|
-
const t4 = parseInt(e3.getAttribute("xfId")),
|
|
1252
|
-
if (
|
|
1253
|
-
const
|
|
1254
|
-
e3.getAttribute("hidden") && (
|
|
1252
|
+
const t4 = parseInt(e3.getAttribute("xfId")), n3 = e3.getAttribute("name");
|
|
1253
|
+
if (i2.set(t4, n3), !o2[t4]) continue;
|
|
1254
|
+
const l2 = { name: n3, style: o2[t4] };
|
|
1255
|
+
e3.getAttribute("hidden") && (l2.hidden = s(e3.getAttribute("hidden"))), e3.getAttribute("iLevel") && (l2.iLevel = parseInt(e3.getAttribute("iLevel"))), r2.push(l2);
|
|
1255
1256
|
}
|
|
1256
1257
|
}
|
|
1257
1258
|
}
|
|
@@ -1376,10 +1377,10 @@ class at {
|
|
|
1376
1377
|
const r2 = {};
|
|
1377
1378
|
return t2.copyFromAttribute(e2, "editAs", r2, "anchorType"), r2.anchor = {}, this.processOffsetCoord(t2, t2.evaluate("from", e2), r2.anchor, "from"), this.processOffsetCoord(t2, t2.evaluate("to", e2), r2.anchor, "to"), s2.movables || (s2.movables = []), s2.movables.push(r2), r2;
|
|
1378
1379
|
}
|
|
1379
|
-
processOffsetCoord(t2,
|
|
1380
|
-
if (!
|
|
1381
|
-
const
|
|
1382
|
-
return t2.evaluate("col",
|
|
1380
|
+
processOffsetCoord(t2, s2, r2, o2) {
|
|
1381
|
+
if (!s2) return;
|
|
1382
|
+
const i2 = { c: 0, r: 0, x: 0, y: 0 };
|
|
1383
|
+
return t2.evaluate("col", s2) && (i2.c = parseInt(t2.evaluate("col", s2).textContent)), t2.evaluate("row", s2) && (i2.r = parseInt(t2.evaluate("row", s2).textContent)), t2.evaluate("colOff", s2) && (i2.x = e(t2.evaluate("colOff", s2).textContent)), t2.evaluate("rowOff", s2) && (i2.y = e(t2.evaluate("rowOff", s2).textContent)), "from" === o2 ? r2.tl = i2 : r2.br = i2, r2;
|
|
1383
1384
|
}
|
|
1384
1385
|
}
|
|
1385
1386
|
class ct {
|
|
@@ -1478,7 +1479,7 @@ class gt extends ht {
|
|
|
1478
1479
|
return s2.content = { type: "grpSp", json: o2 }, o2;
|
|
1479
1480
|
}
|
|
1480
1481
|
}
|
|
1481
|
-
class
|
|
1482
|
+
class mt extends ht {
|
|
1482
1483
|
visit(t2, e2, s2) {
|
|
1483
1484
|
if (!e2) return;
|
|
1484
1485
|
s2 = super.visit(t2, e2, s2);
|
|
@@ -1496,11 +1497,11 @@ class dt extends ht {
|
|
|
1496
1497
|
return s2.content = { type: "cxnSp", json: o2 }, o2;
|
|
1497
1498
|
}
|
|
1498
1499
|
}
|
|
1499
|
-
const
|
|
1500
|
+
const dt = "richTypes";
|
|
1500
1501
|
class bt {
|
|
1501
1502
|
visit(t2, e2, s2) {
|
|
1502
|
-
let r2 = t2.getVisitorParamsState().get(
|
|
1503
|
-
r2 || (r2 = [], t2.getVisitorParamsState().set(
|
|
1503
|
+
let r2 = t2.getVisitorParamsState().get(dt);
|
|
1504
|
+
r2 || (r2 = [], t2.getVisitorParamsState().set(dt, r2));
|
|
1504
1505
|
const o2 = e2.childNodes, i2 = o2.length;
|
|
1505
1506
|
for (let e3 = 0; e3 < i2; e3++) {
|
|
1506
1507
|
const s3 = o2.item(e3);
|
|
@@ -1545,7 +1546,7 @@ class At {
|
|
|
1545
1546
|
if ("_error" === e2.type) {
|
|
1546
1547
|
const t3 = e2.errorType;
|
|
1547
1548
|
if (t3) try {
|
|
1548
|
-
e2 =
|
|
1549
|
+
e2 = b.getBuiltInById(t3 + 1);
|
|
1549
1550
|
} catch (t4) {
|
|
1550
1551
|
}
|
|
1551
1552
|
}
|
|
@@ -1600,23 +1601,23 @@ class Ft {
|
|
|
1600
1601
|
}
|
|
1601
1602
|
}
|
|
1602
1603
|
class Ct {
|
|
1603
|
-
visit(t2, e2,
|
|
1604
|
+
visit(t2, e2, o2) {
|
|
1604
1605
|
if (!e2) return;
|
|
1605
|
-
const
|
|
1606
|
-
return t2.copyFromAttribute(e2, "id",
|
|
1606
|
+
const i2 = {};
|
|
1607
|
+
return t2.copyFromAttribute(e2, "id", i2, "id", r), t2.copyFromAttribute(e2, "personId", i2, "personId", r), t2.copyFromAttribute(e2, "ref", i2), t2.copyFromAttribute(e2, "parentId", i2, "parentId", r), t2.copyFromAttribute(e2, "dT", i2), e2.hasAttribute("done") && (i2.done = s(e2.getAttribute("done"))), o2.push(i2), i2;
|
|
1607
1608
|
}
|
|
1608
1609
|
}
|
|
1609
1610
|
class wt {
|
|
1610
1611
|
visit(t2, e2, s2) {
|
|
1611
|
-
const
|
|
1612
|
-
for (let e3 = 0; e3 <
|
|
1613
|
-
const s3 =
|
|
1612
|
+
const o2 = [], i2 = e2.childNodes;
|
|
1613
|
+
for (let e3 = 0; e3 < i2.length; e3++) {
|
|
1614
|
+
const s3 = i2.item(e3);
|
|
1614
1615
|
if (1 === s3.nodeType && "person" === s3.localName) {
|
|
1615
1616
|
const e4 = {};
|
|
1616
|
-
t2.copyFromAttribute(s3, "id", e4, "id",
|
|
1617
|
+
t2.copyFromAttribute(s3, "id", e4, "id", r), t2.copyFromAttribute(s3, "displayName", e4), t2.copyFromAttribute(s3, "userId", e4, "userId", r), t2.copyFromAttribute(s3, "providerId", e4), o2.push(e4);
|
|
1617
1618
|
}
|
|
1618
1619
|
}
|
|
1619
|
-
return
|
|
1620
|
+
return o2.length > 0 && (s2.persons = o2), o2;
|
|
1620
1621
|
}
|
|
1621
1622
|
}
|
|
1622
1623
|
const Pt = {};
|
|
@@ -1627,7 +1628,7 @@ class Nt {
|
|
|
1627
1628
|
}
|
|
1628
1629
|
class Ot {
|
|
1629
1630
|
constructor() {
|
|
1630
|
-
this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new N()), this.registerVisitor("spPr", new j()), this.registerVisitor("txBody", new W()), this.registerVisitor("txPr", new W()), this.registerVisitor("c:chartSpace", new k()), this.registerVisitor("c:chartSpace", new L(), "chart"), this.registerVisitor("c:plotArea", new I()), this.registerVisitor("c:barChart", new E()), this.registerVisitor("c:doughnutChart", new R()), this.registerVisitor("c:lineChart", new R()), this.registerVisitor("c:ofPieType", new R()), this.registerVisitor("c:pieChart", new R()), this.registerVisitor("c:scatterChart", new R()), this.registerVisitor("c:barChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new M()), this.registerVisitor("c:dPt", new U()), this.registerVisitor("c:marker", new z()), this.registerVisitor("c:catAx", new G()), this.registerVisitor("c:valAx", new G()), this.registerVisitor("c:dateAx", new G()), this.registerVisitor("c:majorGridlines", new P("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new P("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new W("labels.text"), "txPr"), this.registerVisitor("c:valAx", new W("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new W("labels.text"), "txPr"), this.registerVisitor("c:legend", new $()), this.registerVisitor("c:legend", new W("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new X()), this.registerVisitor("c:ser", new K(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new Y("labels"), "dLbls"), this.registerVisitor("c:dLbl", new Y("points")), this.registerVisitor("c:title", new H()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new q()), this.registerVisitor("c:dispUnits", new P("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new H("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new W(), "tx/rich"), this.registerVisitor("a:theme", new J()), this.registerVisitor("a:theme", new Q(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new Z(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new et()), this.registerVisitor("sortState", new st()), this.registerVisitor("s:workbook", new it()), this.registerVisitor("styleSheet", new ot()), this.registerVisitor("table", new nt()), this.registerVisitor("hlinkClick", new tt()), this.registerVisitor("wsDr", new lt()), this.registerVisitor("twoCellAnchor", new at()), this.registerVisitor("oneCellAnchor", new at()), this.registerVisitor("absoluteAnchor", new at()), this.registerVisitor("graphicFrame", new ut()), this.registerVisitor("sp", new ht()), this.registerVisitor("grpSp", new gt()), this.registerVisitor("cxnSp", new
|
|
1631
|
+
this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new N()), this.registerVisitor("spPr", new j()), this.registerVisitor("txBody", new W()), this.registerVisitor("txPr", new W()), this.registerVisitor("c:chartSpace", new k()), this.registerVisitor("c:chartSpace", new L(), "chart"), this.registerVisitor("c:plotArea", new I()), this.registerVisitor("c:barChart", new E()), this.registerVisitor("c:doughnutChart", new R()), this.registerVisitor("c:lineChart", new R()), this.registerVisitor("c:ofPieType", new R()), this.registerVisitor("c:pieChart", new R()), this.registerVisitor("c:scatterChart", new R()), this.registerVisitor("c:barChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new Y("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new M()), this.registerVisitor("c:dPt", new U()), this.registerVisitor("c:marker", new z()), this.registerVisitor("c:catAx", new G()), this.registerVisitor("c:valAx", new G()), this.registerVisitor("c:dateAx", new G()), this.registerVisitor("c:majorGridlines", new P("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new P("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new W("labels.text"), "txPr"), this.registerVisitor("c:valAx", new W("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new W("labels.text"), "txPr"), this.registerVisitor("c:legend", new $()), this.registerVisitor("c:legend", new W("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new X()), this.registerVisitor("c:ser", new K(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new Y("labels"), "dLbls"), this.registerVisitor("c:dLbl", new Y("points")), this.registerVisitor("c:title", new H()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new q()), this.registerVisitor("c:dispUnits", new P("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new H("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new W(), "tx/rich"), this.registerVisitor("a:theme", new J()), this.registerVisitor("a:theme", new Q(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new Z(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new et()), this.registerVisitor("sortState", new st()), this.registerVisitor("s:workbook", new it()), this.registerVisitor("styleSheet", new ot()), this.registerVisitor("table", new nt()), this.registerVisitor("hlinkClick", new tt()), this.registerVisitor("wsDr", new lt()), this.registerVisitor("twoCellAnchor", new at()), this.registerVisitor("oneCellAnchor", new at()), this.registerVisitor("absoluteAnchor", new at()), this.registerVisitor("graphicFrame", new ut()), this.registerVisitor("sp", new ht()), this.registerVisitor("grpSp", new gt()), this.registerVisitor("cxnSp", new mt()), this.registerVisitor("pic", new pt()), this.registerVisitor("rvStructures", new bt()), this.registerVisitor("rvData", new At()), this.registerVisitor("comments", new yt()), this.registerVisitor("commentList", new vt(), "comment"), this.registerVisitor("comment", new W("content"), "text"), this.registerVisitor("ThreadedComments", new Ft()), this.registerVisitor("threadedComment", new Ct()), this.registerVisitor("threadedComment", new W("content"), "text"), this.registerVisitor("personList", new wt());
|
|
1631
1632
|
}
|
|
1632
1633
|
registerVisitor(t2, e2, s2 = null) {
|
|
1633
1634
|
-1 === t2.indexOf(":") && (t2 = "*:" + t2);
|