boardplot 0.58.2 → 0.59.0
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/CHANGELOG.md +61 -0
- package/dist/{ReaderBox-WVOT7VVJ.js → ReaderBox-4PNFZO56.js} +4 -4
- package/dist/{annotateEngine-IJ7RDLUI.js → annotateEngine-DL4KRQ6B.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-54YO56IK.js → chunk-25JXYOSX.js} +1 -1
- package/dist/{chunk-DZUF4V4F.js → chunk-266ENWFM.js} +3 -3
- package/dist/{chunk-FRR7BJ3B.js → chunk-2E2MK4XM.js} +2 -2
- package/dist/{chunk-K5LIUWJO.js → chunk-2GVW5WDD.js} +3 -3
- package/dist/{chunk-4ROZ4TFL.js → chunk-2HRDOBPS.js} +1 -1
- package/dist/chunk-2Q7IAWON.js +18 -0
- package/dist/{chunk-JQSDRXLX.js → chunk-33SPSKTP.js} +4 -4
- package/dist/{chunk-Z6DUNKFU.js → chunk-3JG764MI.js} +688 -140
- package/dist/{chunk-OZLKEBCD.js → chunk-3V7Y7CHI.js} +1 -1
- package/dist/{chunk-3BMPYY26.js → chunk-3WC2TA6C.js} +4 -4
- package/dist/{chunk-LX6X33C7.js → chunk-3WFJDXZO.js} +3 -3
- package/dist/{chunk-OGWZT3PH.js → chunk-3ZR7ZE64.js} +2 -2
- package/dist/{chunk-UISHXPGJ.js → chunk-4DLIXTDH.js} +5 -5
- package/dist/{chunk-FL57NWM7.js → chunk-4EEK4AMC.js} +2 -2
- package/dist/{chunk-5OBA4IKC.js → chunk-4LCQO46F.js} +144 -55
- package/dist/{chunk-DXNVL67C.js → chunk-4NIIQFDA.js} +147 -104
- package/dist/{chunk-ED7GLWTF.js → chunk-4PKUS5MG.js} +2 -1
- package/dist/{chunk-ECL7CSPJ.js → chunk-4WH2YGO6.js} +3 -3
- package/dist/{chunk-MXUPMGRY.js → chunk-4YKS2JDE.js} +3 -3
- package/dist/{chunk-ZQHMZUFD.js → chunk-4YZQY3AA.js} +1 -1
- package/dist/{chunk-ZDITBL4Z.js → chunk-56CDMSE5.js} +2 -2
- package/dist/{chunk-SBKM6XFS.js → chunk-5AXWSGS7.js} +3 -3
- package/dist/{chunk-XZXZNI7A.js → chunk-5HOIOQK3.js} +1 -1
- package/dist/{chunk-ERDKMZ7O.js → chunk-5OV7VOGV.js} +2 -2
- package/dist/{chunk-AICO24HJ.js → chunk-5QMM354E.js} +6 -5
- package/dist/{chunk-DIN62FP4.js → chunk-5UXK5BAA.js} +37 -38
- package/dist/{chunk-7Q4T5TPZ.js → chunk-5YULK4DY.js} +6 -10
- package/dist/{chunk-QRIEJAM5.js → chunk-5ZE7SHRM.js} +3 -3
- package/dist/{chunk-KNT3GSVB.js → chunk-67744WKZ.js} +1 -1
- package/dist/{chunk-HTY6XK32.js → chunk-6CZGFTGK.js} +51 -47
- package/dist/{chunk-FVQRFBOP.js → chunk-6IIYLDSQ.js} +3 -3
- package/dist/{chunk-U5CBQHTX.js → chunk-6TH5NVKS.js} +19 -14
- package/dist/{chunk-I5VNHDPR.js → chunk-6TZDPQDE.js} +2 -2
- package/dist/{chunk-TMEUK2WS.js → chunk-77L6QGIG.js} +1 -1
- package/dist/{chunk-IU2PONEI.js → chunk-7IONS4Z7.js} +3 -3
- package/dist/{chunk-ETUKDEGL.js → chunk-7QUWM5W6.js} +6 -6
- package/dist/{chunk-24PMVRVW.js → chunk-7SIZGM5S.js} +78 -53
- package/dist/{chunk-QVLHI3BE.js → chunk-7TZIPGFH.js} +8 -6
- package/dist/{chunk-76GPN6AT.js → chunk-7UUSHA7H.js} +1 -1
- package/dist/{chunk-OZA7HA6L.js → chunk-7UZUXPFM.js} +1 -1
- package/dist/{chunk-U5D5NUFA.js → chunk-7YJSSPQX.js} +31 -28
- package/dist/{chunk-4GKVFHJH.js → chunk-7ZXIHEZS.js} +4 -4
- package/dist/{chunk-FJA5EUE7.js → chunk-A3SOYL6F.js} +3 -3
- package/dist/{chunk-CAE6E3NW.js → chunk-ADLKZEML.js} +31 -64
- package/dist/{chunk-KNGC2STY.js → chunk-AFQZBCME.js} +4 -4
- package/dist/{chunk-TVOMGNFQ.js → chunk-AGR4VJ2Y.js} +1 -1
- package/dist/{chunk-2HII2B6S.js → chunk-AH2L44TR.js} +3 -3
- package/dist/{chunk-WFBN2HXR.js → chunk-AIPOSNVG.js} +1 -1
- package/dist/{chunk-D3UPBA4R.js → chunk-AUSZDYGE.js} +9 -7
- package/dist/{chunk-ZUG7EYEM.js → chunk-AVYRC2T3.js} +50 -28
- package/dist/{chunk-NSMYIUBZ.js → chunk-B5FT4YAX.js} +1 -1
- package/dist/{chunk-H3VICNTN.js → chunk-B7UWG6XJ.js} +1 -1
- package/dist/{chunk-COQSFON4.js → chunk-BJJYNTVJ.js} +1 -1
- package/dist/{chunk-NS4SBO47.js → chunk-BOUZKVIY.js} +17 -19
- package/dist/{chunk-WUP6C4ZD.js → chunk-BXZNLMMH.js} +1 -1
- package/dist/{chunk-OMNB27GM.js → chunk-C26Z5AEW.js} +3 -3
- package/dist/{chunk-JDLT4YV6.js → chunk-CV5KCQD3.js} +72 -79
- package/dist/{chunk-QRQFHNRF.js → chunk-CX7WUNMO.js} +22 -18
- package/dist/{chunk-YWPBYL6P.js → chunk-DANKUHCX.js} +41 -40
- package/dist/{chunk-IDXYHDQY.js → chunk-DBKMJWPO.js} +1 -1
- package/dist/{chunk-K672I6R6.js → chunk-DEJ27Y2P.js} +138 -91
- package/dist/{chunk-HTQGJQZN.js → chunk-DITI57ZB.js} +1 -1
- package/dist/{chunk-WRI44CHA.js → chunk-DO7MMF4C.js} +86 -43
- package/dist/{chunk-NTUTJY33.js → chunk-DUDVHQD6.js} +7 -7
- package/dist/{chunk-RKPN6KN7.js → chunk-DXLWMK24.js} +3 -3
- package/dist/{chunk-DQECTZPF.js → chunk-DYD7W3Y6.js} +15 -16
- package/dist/{chunk-AU5PXIE3.js → chunk-DZBT7AWJ.js} +2 -2
- package/dist/{chunk-I7V6LXHD.js → chunk-E4KHHC46.js} +16 -16
- package/dist/{chunk-K2AOKBGW.js → chunk-E62SXDRT.js} +2 -2
- package/dist/{chunk-BAT77TKB.js → chunk-EADD6NNQ.js} +73 -79
- package/dist/{chunk-CMPHT2LS.js → chunk-EH23CIC5.js} +4 -4
- package/dist/{chunk-DTIV2NIZ.js → chunk-EJA5EANI.js} +47 -26
- package/dist/{chunk-VZWIRNQ4.js → chunk-EWGFOEJB.js} +126 -65
- package/dist/{chunk-SVPSNDLL.js → chunk-EWMPUCIG.js} +37 -37
- package/dist/{chunk-H6WX7J5M.js → chunk-EZ5KUBYF.js} +38 -27
- package/dist/{chunk-IUEUVLT3.js → chunk-F2N5BUBK.js} +12 -13
- package/dist/{chunk-VJ7VBB6S.js → chunk-F7QCIJAY.js} +1 -1
- package/dist/{chunk-ANKBTBWD.js → chunk-FB36HSY2.js} +4 -4
- package/dist/{chunk-F3XOBFS4.js → chunk-FBIMTKYK.js} +3 -10
- package/dist/{chunk-4NEXP7IB.js → chunk-FMVXXKSW.js} +3 -3
- package/dist/{chunk-GOJI2HVL.js → chunk-FP3ORYCG.js} +22 -21
- package/dist/{chunk-P6DEFCMQ.js → chunk-FWPPZB4G.js} +2 -2
- package/dist/{chunk-MSYTF3DZ.js → chunk-FYFXOLWI.js} +116 -89
- package/dist/{chunk-L3BVYKA6.js → chunk-GDE2JINW.js} +11 -11
- package/dist/{chunk-RLB7QCTK.js → chunk-GEEHXLFQ.js} +7 -6
- package/dist/{chunk-S6XM22RZ.js → chunk-GGFT6IIM.js} +3 -3
- package/dist/{chunk-KTOWOMQP.js → chunk-GIJM4MP4.js} +5 -5
- package/dist/{chunk-UY34DDUM.js → chunk-GNK7RTO4.js} +3 -3
- package/dist/{chunk-BAOUMAH6.js → chunk-GSHRYDJM.js} +1 -1
- package/dist/{chunk-RXDCT5TD.js → chunk-GWDKUKOJ.js} +96 -321
- package/dist/{chunk-XMX4PCFL.js → chunk-GZYMHC44.js} +2 -2
- package/dist/{chunk-RK5JTZFI.js → chunk-HBKZC5BH.js} +2 -2
- package/dist/{chunk-WXMH66N5.js → chunk-HC4UW7MB.js} +4 -4
- package/dist/{chunk-ZRI6VYNF.js → chunk-HFDU2E7C.js} +27 -21
- package/dist/{chunk-M6PYA4FO.js → chunk-HW67YGJC.js} +1 -1
- package/dist/{chunk-C4DN27QI.js → chunk-I65BCUVH.js} +3 -3
- package/dist/{chunk-SHFXHUKJ.js → chunk-ICERP2YF.js} +3 -3
- package/dist/{chunk-KG7LKHD7.js → chunk-ICJUN47O.js} +2 -2
- package/dist/{chunk-QMUCI2UU.js → chunk-ID5PE4KM.js} +3 -3
- package/dist/{chunk-DOYJ2O2C.js → chunk-IDJVUZAA.js} +3 -3
- package/dist/{chunk-WDDPQUT2.js → chunk-IQRRT32Q.js} +2 -2
- package/dist/{chunk-WHIO5L6Z.js → chunk-ISMFUWOP.js} +3 -3
- package/dist/{chunk-4X7FNGGM.js → chunk-IX2SLULO.js} +3 -3
- package/dist/{chunk-4G5QQ5TH.js → chunk-IXZI4SN4.js} +116 -46
- package/dist/chunk-J6LGZPKI.js +89 -0
- package/dist/{chunk-CCAAI56H.js → chunk-JF743NNC.js} +7 -0
- package/dist/{chunk-UK5LXRUN.js → chunk-JIB74SQS.js} +6 -6
- package/dist/{chunk-ZIVCPXXL.js → chunk-JOX252XQ.js} +5 -5
- package/dist/{chunk-YC6W7EVG.js → chunk-JRM22ULA.js} +54 -45
- package/dist/{chunk-V5CWUATF.js → chunk-JYSS5ZZF.js} +5 -5
- package/dist/{chunk-OJ5CCTNY.js → chunk-KRIYGX3N.js} +3 -3
- package/dist/{chunk-XRRG4MBM.js → chunk-KWMQNKGX.js} +2 -2
- package/dist/{chunk-4EDPXQR7.js → chunk-LADFOYH7.js} +40 -27
- package/dist/{chunk-P6KEM5N7.js → chunk-LC4KDLUE.js} +3 -3
- package/dist/{chunk-SAMTYEWB.js → chunk-LLECS747.js} +4 -4
- package/dist/{chunk-XO4DJM33.js → chunk-LM4GVVPM.js} +16 -10
- package/dist/{chunk-EHRRHSPV.js → chunk-LPLRXEOT.js} +55 -19
- package/dist/{chunk-S4L7LXWX.js → chunk-M2FF4IPF.js} +16 -7
- package/dist/{chunk-4JGBCBDZ.js → chunk-MF6XGFHB.js} +1 -1
- package/dist/{chunk-O3U6IOIO.js → chunk-MOBRWYUQ.js} +2 -2
- package/dist/{chunk-CDUR3KWV.js → chunk-MOPY5REE.js} +2 -2
- package/dist/{chunk-LLEDONMT.js → chunk-MTOBNHAU.js} +2 -2
- package/dist/{chunk-DORE2RHL.js → chunk-MYBBZNYN.js} +2 -2
- package/dist/{chunk-V7NUJEJE.js → chunk-MZCJ22O4.js} +1 -1
- package/dist/{chunk-NM6IWRTB.js → chunk-NIL6TYAN.js} +4 -4
- package/dist/{chunk-VGEHOB25.js → chunk-NPDF7HEH.js} +2 -2
- package/dist/{chunk-JMMKOICP.js → chunk-NUASZPS7.js} +1 -1
- package/dist/{chunk-QI47HSZD.js → chunk-NWUEA42V.js} +3 -3
- package/dist/{chunk-O4FCIOOY.js → chunk-NZGQLR4X.js} +8 -8
- package/dist/{chunk-TRGQLVJV.js → chunk-O32L5FK2.js} +3 -3
- package/dist/{chunk-DJRPY7AR.js → chunk-O623CYPA.js} +3 -3
- package/dist/{chunk-7OZCLJAG.js → chunk-OJR5GPCN.js} +3 -3
- package/dist/{chunk-C47POAC5.js → chunk-OL6HVC6K.js} +1 -1
- package/dist/{chunk-3MGXQARA.js → chunk-OM5MAJST.js} +68 -57
- package/dist/{chunk-CLJWE3JQ.js → chunk-OTOASFG4.js} +92 -35
- package/dist/{chunk-KF2HYUXN.js → chunk-P3N74SZ5.js} +3 -3
- package/dist/{chunk-J3GUMT27.js → chunk-PHQGGR5O.js} +3 -3
- package/dist/{chunk-YQZCMPN7.js → chunk-POHML4N4.js} +107 -50
- package/dist/{chunk-KVBLTAO7.js → chunk-PP23D6QV.js} +4 -5
- package/dist/{chunk-F2ET5ZTT.js → chunk-PPOUKS24.js} +0 -1
- package/dist/{chunk-V7FV66KL.js → chunk-PRVX4PAO.js} +1 -1
- package/dist/{chunk-JY4LTPOV.js → chunk-PSUSHJFV.js} +1 -1
- package/dist/{chunk-AJGSCVVW.js → chunk-PZZAVTLQ.js} +2 -2
- package/dist/{chunk-CRTRY3IQ.js → chunk-QDFX2KAP.js} +2 -2
- package/dist/{chunk-RAPIBQ6W.js → chunk-QKDDGDRF.js} +10 -10
- package/dist/{chunk-P2WZQQCC.js → chunk-QM6IW5BL.js} +3 -3
- package/dist/chunk-QMQZC2KW.js +408 -0
- package/dist/{chunk-42QKUSHJ.js → chunk-QXHFELIA.js} +1 -1
- package/dist/{chunk-JNDWRV34.js → chunk-R2RLERPT.js} +1 -1
- package/dist/{chunk-E5YF236N.js → chunk-R4MVXUAG.js} +1 -1
- package/dist/{chunk-BYPUPHRW.js → chunk-REIIGIJG.js} +3 -3
- package/dist/{chunk-K4OR5AP5.js → chunk-RF2REMRV.js} +6 -6
- package/dist/{chunk-3MFVJMP6.js → chunk-RF6ZHX5F.js} +1 -1
- package/dist/{chunk-AYIK7HVV.js → chunk-RLX6VODQ.js} +9 -2
- package/dist/{chunk-KWIP5YRA.js → chunk-RPS7G77V.js} +3 -3
- package/dist/{chunk-LBCSRQGW.js → chunk-RSDGBNXP.js} +5 -5
- package/dist/{chunk-MP5UOUGM.js → chunk-RYYB7REV.js} +3 -3
- package/dist/{chunk-LPMSGO7L.js → chunk-SBYKLBDV.js} +3 -3
- package/dist/{chunk-JT3UTEWZ.js → chunk-SDAVHADX.js} +2 -2
- package/dist/{chunk-V7MFF5A4.js → chunk-SE6LBMRJ.js} +137 -62
- package/dist/{chunk-MCRRURTO.js → chunk-SFRMBCVY.js} +3 -3
- package/dist/{chunk-UUK73ZCT.js → chunk-SNJ3FZXC.js} +14 -12
- package/dist/{chunk-H7GFUA6G.js → chunk-SXCFMPNM.js} +3 -3
- package/dist/{chunk-SGDWLXUC.js → chunk-SY7JC3PH.js} +1 -1
- package/dist/{chunk-UXPR6TEZ.js → chunk-T4CFY4YT.js} +4 -4
- package/dist/{chunk-5SVGTQTW.js → chunk-TASEX7VA.js} +1 -1
- package/dist/{chunk-UB7LT72S.js → chunk-TCWJQIVQ.js} +123 -71
- package/dist/{chunk-SFBB4GVQ.js → chunk-TEZWFQB7.js} +6 -6
- package/dist/{chunk-GHCU6OSE.js → chunk-TLKRYDH3.js} +2 -2
- package/dist/{chunk-MH6MGYPS.js → chunk-TMVERETB.js} +23 -332
- package/dist/{chunk-5LPLVLLA.js → chunk-TQFBLSZJ.js} +44 -27
- package/dist/{chunk-5FOB6QGF.js → chunk-U4WG46QP.js} +117 -43
- package/dist/{chunk-LJDATBPB.js → chunk-U75MMLNQ.js} +3 -6
- package/dist/{chunk-SB7MASJU.js → chunk-UFGJNSSL.js} +1 -1
- package/dist/{chunk-FB6X7QHA.js → chunk-UGHJHJKY.js} +1 -1
- package/dist/{chunk-MIJPESMQ.js → chunk-UI2MKLON.js} +1 -1
- package/dist/{chunk-3E6NLODZ.js → chunk-UKEI7JDA.js} +1 -1
- package/dist/{chunk-6JFQCVNN.js → chunk-USATDW6O.js} +1 -1
- package/dist/{chunk-CQBPNE7Z.js → chunk-UTWLJ6AZ.js} +6 -5
- package/dist/{chunk-OCPVQZCC.js → chunk-UV77Y7QK.js} +11 -5
- package/dist/{chunk-PMT75APP.js → chunk-UXJXA4NP.js} +1 -1
- package/dist/{chunk-CPPFF3OB.js → chunk-UZDQFUHO.js} +3 -3
- package/dist/{chunk-S3I6F4IO.js → chunk-V3XYFLOZ.js} +3 -3
- package/dist/{chunk-OQQMDSCC.js → chunk-VGOZOBNB.js} +1 -1
- package/dist/{chunk-K7XPTQBJ.js → chunk-VHZ4MXJO.js} +1 -1
- package/dist/{chunk-YFQW73AV.js → chunk-VLMKGQ33.js} +13 -13
- package/dist/{chunk-3AWE5535.js → chunk-VMLVZW4F.js} +39 -36
- package/dist/{chunk-YT5MTKED.js → chunk-VT6PDWUA.js} +78 -78
- package/dist/{chunk-GQYT7G4F.js → chunk-VTUSC24F.js} +2 -2
- package/dist/{chunk-NMQH4S2F.js → chunk-VVWTD4XP.js} +9 -9
- package/dist/{chunk-OQA3DJH4.js → chunk-VZVPN7NT.js} +3 -3
- package/dist/{chunk-Z3WQXVFV.js → chunk-W4ZLMK6Z.js} +1 -1
- package/dist/{chunk-LOFR5HOQ.js → chunk-W6NEWQZU.js} +20 -18
- package/dist/{chunk-DZYTXZNS.js → chunk-WD5NJHZG.js} +2 -2
- package/dist/{chunk-2WQSH3HV.js → chunk-WTH3KQDM.js} +2 -2
- package/dist/{chunk-UQBNY2UU.js → chunk-WTWM4RK6.js} +1 -1
- package/dist/{chunk-XJC37XXA.js → chunk-WZNO3LUF.js} +3 -3
- package/dist/{chunk-GQ3CMAOD.js → chunk-X3AMBFGF.js} +3 -3
- package/dist/{chunk-DHGE46UK.js → chunk-X725AGYP.js} +1 -1
- package/dist/{chunk-TX5FSNAU.js → chunk-XAH4EWJT.js} +1 -1
- package/dist/{chunk-IJU5PAIS.js → chunk-XETSLYFD.js} +3 -3
- package/dist/{chunk-Z7EAEWR3.js → chunk-XFDNAR4S.js} +16 -27
- package/dist/{chunk-IXQNKI6G.js → chunk-XGTSZ7NC.js} +3 -3
- package/dist/{chunk-HAG3K6PQ.js → chunk-XHEG2BG6.js} +1 -1
- package/dist/{chunk-D2TQX7UJ.js → chunk-XLX3TUFO.js} +2 -2
- package/dist/{chunk-ESSNZ3VQ.js → chunk-XMII3G47.js} +3 -3
- package/dist/{chunk-QNEVEBIR.js → chunk-XRPZJDAK.js} +101 -72
- package/dist/{chunk-IPBOREIY.js → chunk-XUEX5WTR.js} +1 -1
- package/dist/{chunk-ZYCB2CJJ.js → chunk-XUGEYHOQ.js} +2 -2
- package/dist/{chunk-OO63YP35.js → chunk-XVFUJRRC.js} +1 -1
- package/dist/{chunk-IVDTP6SV.js → chunk-XWGAANY4.js} +3 -3
- package/dist/{chunk-36RTBB37.js → chunk-XWUHUTXX.js} +24 -18
- package/dist/{chunk-AIU3Y4L5.js → chunk-XXYV5UEM.js} +50 -49
- package/dist/{chunk-KVIWD6MV.js → chunk-XZBX6LIC.js} +20 -12
- package/dist/{chunk-ZDJ7C64T.js → chunk-Y4BJ7D5F.js} +1 -1
- package/dist/{chunk-KW4JXWHO.js → chunk-YDYZWCUQ.js} +1 -1
- package/dist/{chunk-46JPQLR2.js → chunk-YJN54OZS.js} +52 -41
- package/dist/{chunk-X46PSAJ7.js → chunk-YJXIHVNK.js} +2 -2
- package/dist/{chunk-UCKUAKYQ.js → chunk-YKYK6C7F.js} +1 -1
- package/dist/{chunk-F6IPP33V.js → chunk-YM4MVABU.js} +56 -24
- package/dist/{chunk-GOFS336W.js → chunk-YM7MO7WI.js} +1 -1
- package/dist/{chunk-A64R244B.js → chunk-YOUYJHW3.js} +3 -3
- package/dist/{chunk-Z7LBIXNV.js → chunk-YPELB4Q7.js} +3 -3
- package/dist/{chunk-HXGSNLIW.js → chunk-YRCIG4IO.js} +8 -7
- package/dist/{chunk-B6BEPKEE.js → chunk-ZIQR2CNM.js} +7 -7
- package/dist/{chunk-ZHGFJL3O.js → chunk-ZK22I3NF.js} +3 -3
- package/dist/{chunk-A6N24NGW.js → chunk-ZNA4JHHG.js} +2 -2
- package/dist/{chunk-VESSIKBG.js → chunk-ZOQRX5V7.js} +4 -4
- package/dist/{chunk-FVWHEM2N.js → chunk-ZPQ3VOAE.js} +1 -1
- package/dist/{chunk-NZ7FX3AE.js → chunk-ZQ5ILQ5A.js} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{core-VA3SBRCT.js → core-2PT7IROA.js} +2 -1
- package/dist/{core-JDNTWP3D.js → core-34YTH4KN.js} +1 -1
- package/dist/{core-VVHFCKCO.js → core-4ZEVWU43.js} +1 -1
- package/dist/{core-QWG23TDT.js → core-64EHPUVV.js} +1 -1
- package/dist/{core-SQUKC752.js → core-6KO5AEUH.js} +1 -1
- package/dist/{core-Y7Q7FR65.js → core-7WLD237S.js} +1 -1
- package/dist/{core-TBPO7LER.js → core-A2MERE3C.js} +1 -1
- package/dist/{core-PARPIO5L.js → core-AVNB2Q3G.js} +2 -1
- package/dist/{core-DIVRGZGD.js → core-B7KOBTRL.js} +1 -1
- package/dist/{core-HEQ4MJA5.js → core-BOOD7ZUQ.js} +1 -1
- package/dist/{core-QRRWZUTR.js → core-BOU34T23.js} +1 -1
- package/dist/{core-G2TWJHKM.js → core-BQ2I77OF.js} +2 -1
- package/dist/{core-6YHAYDG2.js → core-BSEXRZD6.js} +1 -1
- package/dist/{core-DSI2ZK5C.js → core-CXEEM26F.js} +1 -1
- package/dist/{core-YMX3VETP.js → core-EHMPBG6Q.js} +1 -1
- package/dist/{core-B3AVFEWH.js → core-FXC4TB2K.js} +1 -1
- package/dist/{core-PJHQY3CR.js → core-HMS72VO6.js} +1 -1
- package/dist/{core-LZF7CC2E.js → core-I2GPMB2B.js} +1 -1
- package/dist/{core-PL2T5XOC.js → core-IQC6H4A7.js} +1 -1
- package/dist/{core-HKKPL444.js → core-IYEFTP6C.js} +1 -1
- package/dist/{core-HWDAFGAI.js → core-J2QTOU4D.js} +1 -1
- package/dist/{core-FS3AFDBX.js → core-JJLIPTEW.js} +1 -1
- package/dist/{core-I23MMHHJ.js → core-LCP44UYI.js} +1 -2
- package/dist/{core-Y74GS6HN.js → core-MBNVENCZ.js} +1 -1
- package/dist/{core-VZT7F5AI.js → core-MVIK7FAJ.js} +2 -1
- package/dist/{core-FKW6RSGU.js → core-N4OKPNXQ.js} +1 -1
- package/dist/{core-7K35DCB7.js → core-Q4IILTGO.js} +1 -1
- package/dist/{core-WXPK24YD.js → core-QCPDOQEJ.js} +2 -1
- package/dist/{core-7UMZLBSB.js → core-RVTF336C.js} +1 -1
- package/dist/{core-JWYT46N3.js → core-VGMMKEU4.js} +1 -1
- package/dist/{core-PVD4MX3R.js → core-VUVJOMUC.js} +1 -1
- package/dist/{core-3TLA5IU3.js → core-VWISBHXE.js} +1 -1
- package/dist/{core-LCK3P3DS.js → core-W3UBWZR3.js} +1 -1
- package/dist/{core-XYTCGP3I.js → core-XYQRB5WF.js} +1 -1
- package/dist/{core-SVIYWQVR.js → core-Y6DJHIYT.js} +1 -1
- package/dist/{core-NRNTVPSJ.js → core-YHWVJULU.js} +1 -1
- package/dist/{core-RHYZULNG.js → core-YJXOVNIE.js} +1 -1
- package/dist/{dataTable-HTQMPQB6.js → dataTable-3ZK3ZEZP.js} +3 -2
- package/dist/{engine-RHDMQS7T.js → engine-FSWLRWZR.js} +19 -17
- package/dist/fixtures.js +1 -1
- package/dist/index.js +14 -13
- package/dist/{main-7SMEJF5Q.js → main-NYMXWJGJ.js} +6 -5
- package/dist/mcp/server.js +11 -10
- package/dist/react/bar.js +1 -1
- package/dist/react/bartable.js +1 -1
- package/dist/react/box.js +1 -1
- package/dist/react/bullet.js +1 -1
- package/dist/react/butterfly.js +1 -1
- package/dist/react/choropleth.js +1 -1
- package/dist/react/cohort.js +2 -1
- package/dist/react/column.js +1 -1
- package/dist/react/combo.js +1 -1
- package/dist/react/creative.js +1 -1
- package/dist/react/diagram.js +1 -1
- package/dist/react/dimswitch.js +1 -1
- package/dist/react/dot.js +1 -1
- package/dist/react/export.js +24 -19
- package/dist/react/funnel.js +1 -1
- package/dist/react/gantt.js +1 -1
- package/dist/react/grid.js +1 -1
- package/dist/react/heatmap.js +2 -1
- package/dist/react/histogram.js +1 -1
- package/dist/react/index.js +84 -83
- package/dist/react/kpi.js +1 -1
- package/dist/react/likert.js +1 -1
- package/dist/react/line.js +2 -1
- package/dist/react/mekko.js +1 -1
- package/dist/react/pareto.js +1 -1
- package/dist/react/pie.js +1 -1
- package/dist/react/prepare.js +22 -20
- package/dist/react/pvm.js +1 -1
- package/dist/react/pyramid.js +1 -1
- package/dist/react/sankey.js +1 -1
- package/dist/react/scatter.js +2 -1
- package/dist/react/slope.js +1 -1
- package/dist/react/sparkline.js +1 -1
- package/dist/react/spec.js +10 -10
- package/dist/react/status.js +2 -1
- package/dist/react/story.js +3 -3
- package/dist/react/table.js +1 -1
- package/dist/react/theme.js +3 -3
- package/dist/react/tilemap.js +1 -1
- package/dist/react/treemap.js +1 -1
- package/dist/react/variance.js +1 -1
- package/dist/react/waffle.js +1 -1
- package/dist/react/waterfall.js +1 -1
- package/dist/{rowsModule-YBW6OQUZ.js → rowsModule-43LCK2Q7.js} +1 -1
- package/dist/{schema-MQT6BMNK.js → schema-2ACHQTR3.js} +1 -1
- package/dist/{schema-WZOSDDDJ.js → schema-3LRC5TOZ.js} +1 -1
- package/dist/{schema-F7TWGLRZ.js → schema-4HGZZNUL.js} +1 -1
- package/dist/{schema-PWPQF5RC.js → schema-4YIYGGOJ.js} +1 -1
- package/dist/{schema-ECJERHKF.js → schema-5OLQ54J5.js} +1 -1
- package/dist/{schema-CWKGLDSR.js → schema-5SVPR3EU.js} +1 -1
- package/dist/{schema-BA6WP5YZ.js → schema-A4U4RDKJ.js} +1 -1
- package/dist/{schema-JYZ4RF6S.js → schema-AM2KS6ZC.js} +1 -1
- package/dist/{schema-PYQEUC5P.js → schema-C25ECGJL.js} +1 -1
- package/dist/{schema-56MOEOVR.js → schema-CBLNGK2F.js} +1 -1
- package/dist/{schema-ESR6ZIK4.js → schema-D3ELHESU.js} +1 -1
- package/dist/{schema-5MSR4LNN.js → schema-FBIEOKO2.js} +1 -1
- package/dist/{schema-DUVJMFKQ.js → schema-FPDLOIA6.js} +1 -1
- package/dist/{schema-ALBF6V7Y.js → schema-FQWENOJY.js} +1 -1
- package/dist/{schema-DBIQFL56.js → schema-GTLGAPCU.js} +1 -1
- package/dist/{schema-YRLZRQ2F.js → schema-GUDG343K.js} +2 -2
- package/dist/{schema-47BG2TZA.js → schema-GYTWCCNA.js} +1 -1
- package/dist/{schema-DL7V6NN2.js → schema-GYVYJEL3.js} +1 -1
- package/dist/{schema-ZU2EU2VP.js → schema-HAMPGUH3.js} +1 -1
- package/dist/{schema-TVUJNEX7.js → schema-IYBZPCM4.js} +1 -1
- package/dist/{schema-2TPGJGVR.js → schema-IYLRZNFB.js} +1 -1
- package/dist/{schema-KAK6DZX4.js → schema-KBV2JB2A.js} +1 -1
- package/dist/{schema-PV7JGX5H.js → schema-KWCIIIGP.js} +1 -1
- package/dist/{schema-Y4TI2T3T.js → schema-LDF6HORS.js} +1 -1
- package/dist/{schema-FKGGTM4Z.js → schema-LGYHJPXU.js} +1 -1
- package/dist/{schema-CBL2SMVR.js → schema-LX4EXDTI.js} +1 -1
- package/dist/{schema-2R32F6AW.js → schema-NNNG7CWG.js} +1 -1
- package/dist/{schema-OPXZYIW7.js → schema-P2JYSV32.js} +1 -1
- package/dist/{schema-FGB6IGZM.js → schema-PAKZIYQF.js} +1 -1
- package/dist/{schema-R42VXFIS.js → schema-SQ2GYLMI.js} +1 -1
- package/dist/{schema-KCJ6WTGV.js → schema-SUDJBIHX.js} +1 -1
- package/dist/{schema-MR3BPPQR.js → schema-TRPPZCIR.js} +1 -1
- package/dist/{schema-FYY72W63.js → schema-UNYDUIL5.js} +1 -1
- package/dist/{schema-5RIYEWE6.js → schema-VH4AW62Z.js} +1 -1
- package/dist/{schema-EDSEKZDJ.js → schema-WDKBCN3V.js} +1 -1
- package/dist/{schema-MOKWIGF7.js → schema-YCKUQ3FF.js} +1 -1
- package/dist/{schema-K7F6TEDK.js → schema-YVBUY7NH.js} +1 -1
- package/dist/{specValidation-PWS6G27I.js → specValidation-FKHSTMMR.js} +1 -1
- package/dist/theme.js +2 -2
- package/dist/types/core/a11y/recordsShared.d.ts +15 -4
- package/dist/types/core/a11y/types.d.ts +0 -3
- package/dist/types/core/annotate.d.ts +17 -1
- package/dist/types/core/annotateTargets.d.ts +8 -0
- package/dist/types/core/charts/band/stacks.d.ts +4 -3
- package/dist/types/core/charts/bar/layout.d.ts +3 -1
- package/dist/types/core/charts/bartable/types.d.ts +3 -0
- package/dist/types/core/charts/box/types.d.ts +5 -0
- package/dist/types/core/charts/column/anomaly.d.ts +12 -5
- package/dist/types/core/charts/column/model.d.ts +4 -0
- package/dist/types/core/charts/combo/endpoints.d.ts +11 -1
- package/dist/types/core/charts/combo/layout.d.ts +7 -1
- package/dist/types/core/charts/dimswitch/compile.d.ts +20 -3
- package/dist/types/core/charts/grid/metricStack.d.ts +2 -4
- package/dist/types/core/charts/histogram/types.d.ts +3 -0
- package/dist/types/core/charts/likert/layout.d.ts +5 -2
- package/dist/types/core/charts/logAxis.d.ts +0 -5
- package/dist/types/core/charts/scatter/logAxis.d.ts +1 -1
- package/dist/types/core/charts/scatter/model.d.ts +10 -1
- package/dist/types/core/charts/scatter/trend.d.ts +19 -0
- package/dist/types/core/charts/table/view.d.ts +7 -0
- package/dist/types/core/charts/waffle/types.d.ts +8 -0
- package/dist/types/core/formatPrecision.d.ts +24 -0
- package/dist/types/core/formatSpec.d.ts +213 -61
- package/dist/types/core/label/solver.d.ts +3 -1
- package/dist/types/core/numberRule.d.ts +109 -0
- package/dist/types/core/numberSets.d.ts +43 -0
- package/dist/types/core/shownMarks.d.ts +16 -0
- package/dist/types/core/types/options.d.ts +8 -8
- package/dist/types/core/types/scene.d.ts +24 -0
- package/dist/types/core/types/table.d.ts +0 -13
- package/dist/types/react/TableChart.d.ts +9 -7
- package/dist/types/react/hover/engine.d.ts +6 -4
- package/dist/types/react/hover/labelCard.d.ts +4 -3
- package/dist/validate.js +5 -4
- package/docs/manual.md +15 -7
- package/docs/reference/bartable.md +2 -2
- package/docs/reference/cohort.md +1 -1
- package/docs/reference/column.md +1 -1
- package/docs/reference/dimswitch.md +2 -3
- package/docs/reference/fixtures.md +1 -1
- package/docs/reference/grid.md +12 -6
- package/docs/reference/heatmap.md +1 -1
- package/docs/reference/line.md +2 -2
- package/docs/reference/options.md +3 -3
- package/docs/reference/react.md +1 -1
- package/docs/reference/table.md +5 -8
- package/docs/reference/warnings.md +0 -1
- package/package.json +1 -1
- package/dist/chunk-RYFRYLU6.js +0 -89
- package/dist/chunk-VAR3DPXR.js +0 -125
- package/dist/types/core/charts/table/fitFormats.d.ts +0 -67
- package/dist/types/core/charts/table/resolve.d.ts +0 -84
- package/dist/types/core/format.d.ts +0 -156
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-7ADUVRG5.js";
|
|
14
14
|
import {
|
|
15
15
|
chartString as chartString2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UXJXA4NP.js";
|
|
17
17
|
import {
|
|
18
18
|
toneTextPaint
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2HRDOBPS.js";
|
|
20
20
|
import {
|
|
21
21
|
bandFor
|
|
22
22
|
} from "./chunk-263SZKIL.js";
|
|
@@ -26,21 +26,23 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
caseInsensitiveValue,
|
|
28
28
|
copyPlannedValue,
|
|
29
|
+
fixedNumbersId,
|
|
29
30
|
inputConversion,
|
|
31
|
+
isFixedNumbers,
|
|
30
32
|
memoExactInputKey,
|
|
31
33
|
ownPlanInput
|
|
32
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YM4MVABU.js";
|
|
33
35
|
import {
|
|
34
36
|
formatDate,
|
|
35
37
|
isNumberAlone,
|
|
36
38
|
numericVariant,
|
|
37
39
|
readDateFormat,
|
|
38
40
|
unitPrinted
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AUSZDYGE.js";
|
|
40
42
|
import {
|
|
41
43
|
disclosureNote,
|
|
42
44
|
disclosuresShown
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WD5NJHZG.js";
|
|
44
46
|
import {
|
|
45
47
|
emptyIdRecord
|
|
46
48
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -51,10 +53,14 @@ import {
|
|
|
51
53
|
MAGNITUDE_FIGURES,
|
|
52
54
|
MAGNITUDE_GROUP,
|
|
53
55
|
MAGNITUDE_LABEL,
|
|
56
|
+
PERIOD_FIGURES,
|
|
57
|
+
RULE_SET,
|
|
54
58
|
compileNumberFormat,
|
|
59
|
+
defaultSetSpec,
|
|
55
60
|
differenceExample,
|
|
56
61
|
effectiveScale,
|
|
57
62
|
formatWithSpec,
|
|
63
|
+
isExactExample,
|
|
58
64
|
nonAdditiveSpec,
|
|
59
65
|
parseFormatExample,
|
|
60
66
|
parseISODate,
|
|
@@ -63,8 +69,9 @@ import {
|
|
|
63
69
|
specUnitKind,
|
|
64
70
|
unitMagnitude,
|
|
65
71
|
unitOfSpec,
|
|
72
|
+
withChartFormats,
|
|
66
73
|
withChartMarks
|
|
67
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-3JG764MI.js";
|
|
68
75
|
import {
|
|
69
76
|
MINUS,
|
|
70
77
|
chartNumberMarks,
|
|
@@ -72,13 +79,14 @@ import {
|
|
|
72
79
|
currencyWholeNumbers,
|
|
73
80
|
currentSmallValues,
|
|
74
81
|
formatExactNumber,
|
|
82
|
+
formatScopeKey,
|
|
75
83
|
intervalText,
|
|
76
84
|
localeStrings,
|
|
77
85
|
nonzeroDecimals,
|
|
78
86
|
typicalDecimals,
|
|
79
|
-
|
|
87
|
+
withNumberMarks,
|
|
80
88
|
zeroLifts
|
|
81
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-FYFXOLWI.js";
|
|
82
90
|
import {
|
|
83
91
|
clamp,
|
|
84
92
|
cleanDiff,
|
|
@@ -95,7 +103,7 @@ import {
|
|
|
95
103
|
signedFillPaint,
|
|
96
104
|
tableEmphasis,
|
|
97
105
|
tableHeadFloorPx
|
|
98
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-XAH4EWJT.js";
|
|
99
107
|
import {
|
|
100
108
|
DEFAULT_TARGET,
|
|
101
109
|
NormalizeError,
|
|
@@ -117,8 +125,6 @@ function printsInCell(record) {
|
|
|
117
125
|
case "calc":
|
|
118
126
|
case "aggregate":
|
|
119
127
|
return !0;
|
|
120
|
-
case "rounding-adjustment":
|
|
121
|
-
return record.op === "share-reconcile";
|
|
122
128
|
case "reconciliation":
|
|
123
129
|
return record.printedInCell === !0;
|
|
124
130
|
default:
|
|
@@ -564,7 +570,7 @@ function emitHeat(context, range, options = {}) {
|
|
|
564
570
|
}
|
|
565
571
|
|
|
566
572
|
// src/core/charts/table/resolve.ts
|
|
567
|
-
var ZERO_LIFT = /* @__PURE__ */ Symbol("tableZeroLift"), SUPPRESSED_MARKER = "*", STATE_GLYPHS = {
|
|
573
|
+
var percentChangeCalc = (calc) => "op" in calc && calc.op === "percentDelta", ZERO_LIFT = /* @__PURE__ */ Symbol("tableZeroLift"), SUPPRESSED_MARKER = "*", STATE_GLYPHS = {
|
|
568
574
|
missing: "\u2014",
|
|
569
575
|
na: "n/a",
|
|
570
576
|
nm: "n.m.",
|
|
@@ -612,7 +618,20 @@ function columnHeaderAffix(column) {
|
|
|
612
618
|
let affix = [column.scenario, column.unitLabel].filter(Boolean).join(", ");
|
|
613
619
|
return `${affix ? ` (${affix})` : ""}${column.partial ? ` ${PARTIAL_MARKER}` : ""}`;
|
|
614
620
|
}
|
|
615
|
-
var preparedData = /* @__PURE__ */ new WeakMap(),
|
|
621
|
+
var preparedData = /* @__PURE__ */ new WeakMap(), listReads = /* @__PURE__ */ new WeakMap();
|
|
622
|
+
function readList(list, what, spec, read) {
|
|
623
|
+
if (spec[RULE_SET] !== void 0 || !isFixedNumbers(list)) return read();
|
|
624
|
+
let key = `${what}\0${currentSmallValues()}\0${JSON.stringify(spec)}`, reads = listReads.get(list);
|
|
625
|
+
if (reads || listReads.set(list, reads = /* @__PURE__ */ new Map()), reads.has(key)) return reads.get(key);
|
|
626
|
+
let value = read();
|
|
627
|
+
return reads.set(key, value), value;
|
|
628
|
+
}
|
|
629
|
+
var listLargest = /* @__PURE__ */ new WeakMap();
|
|
630
|
+
function largestOfList(list) {
|
|
631
|
+
let most = listLargest.get(list);
|
|
632
|
+
return most === void 0 && (most = list.reduce((n, v) => Math.max(n, Math.abs(v)), 0), isFixedNumbers(list) && listLargest.set(list, most)), most;
|
|
633
|
+
}
|
|
634
|
+
var sharedPreparedData = /* @__PURE__ */ new Map(), MAX_SHARED_KEY_CHARS = 128 * 1024, MAX_SHARED_TOTAL_CHARS = 2 * 1024 * 1024, sharedKeyChars = 0, modelSymbols = new Map([AUTOMATIC_FORMAT, MAGNITUDE_GROUP, MAGNITUDE_FIGURES, ZERO_LIFT, LABEL_ONLY_ROW, PERIOD_FIGURES].map((symbol, index) => [symbol, index]));
|
|
616
635
|
function modelContentKey(value) {
|
|
617
636
|
let parts = [], seen = /* @__PURE__ */ new Map(), active = /* @__PURE__ */ new Set(), supported = !0, write = (value2) => {
|
|
618
637
|
if (!supported) return;
|
|
@@ -653,6 +672,10 @@ function modelContentKey(value) {
|
|
|
653
672
|
parts.push("ref", String(known), ";");
|
|
654
673
|
return;
|
|
655
674
|
}
|
|
675
|
+
if (array && isFixedNumbers(value2)) {
|
|
676
|
+
seen.set(value2, seen.size), parts.push("fixed", String(fixedNumbersId(value2)), ";");
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
656
679
|
seen.set(value2, seen.size), active.add(value2), parts.push(array ? `array${value2.length}{` : prototype === null ? "record{" : "object{");
|
|
657
680
|
for (let key of Reflect.ownKeys(value2)) {
|
|
658
681
|
if (array && key === "length") continue;
|
|
@@ -675,7 +698,7 @@ function modelContentKey(value) {
|
|
|
675
698
|
return write(value), supported ? parts.join("") : void 0;
|
|
676
699
|
}
|
|
677
700
|
function prepareTableData(data, options = {}, magnitudeSource = data) {
|
|
678
|
-
return
|
|
701
|
+
return withChartFormats(options, () => {
|
|
679
702
|
let theme = resolveTheme(options.theme), semantic = {
|
|
680
703
|
locale: options.locale,
|
|
681
704
|
strings: options.strings,
|
|
@@ -703,7 +726,7 @@ function prepareTableData(data, options = {}, magnitudeSource = data) {
|
|
|
703
726
|
theme: { glyphs: theme.table?.glyphs, noPrevious: theme.table?.noPrevious, dataGap: theme.table?.dataGap },
|
|
704
727
|
// Top-N ranks the complete formatted table before folding it. Its inner resolution must retain the current precision.
|
|
705
728
|
...options.topN ? { columnVisibility: options.columnVisibility, [ZERO_LIFT]: options[ZERO_LIFT] } : {}
|
|
706
|
-
}, dataContent = memoExactInputKey(data, modelContentKey), magnitudeContent = magnitudeSource === data ? "same;" : memoExactInputKey(magnitudeSource, modelContentKey), semanticContent = modelContentKey([semantic, currentSmallValues()]), content = dataContent === void 0 || magnitudeContent === void 0 || semanticContent === void 0 ? void 0 : dataContent.length + ":" + dataContent + magnitudeContent.length + ":" + magnitudeContent + semanticContent, key = content, models = key === void 0 ? void 0 : preparedData.get(data);
|
|
729
|
+
}, dataContent = memoExactInputKey(data, modelContentKey), magnitudeContent = magnitudeSource === data ? "same;" : memoExactInputKey(magnitudeSource, modelContentKey), semanticContent = modelContentKey([semantic, currentSmallValues(), formatScopeKey()]), content = dataContent === void 0 || magnitudeContent === void 0 || semanticContent === void 0 ? void 0 : dataContent.length + ":" + dataContent + magnitudeContent.length + ":" + magnitudeContent + semanticContent, key = content, models = key === void 0 ? void 0 : preparedData.get(data);
|
|
707
730
|
!models && key !== void 0 && preparedData.set(data, models = /* @__PURE__ */ new Map());
|
|
708
731
|
let model = key === void 0 ? void 0 : models.get(key) ?? (content === void 0 ? void 0 : sharedPreparedData.get(content));
|
|
709
732
|
if (!model) {
|
|
@@ -728,16 +751,16 @@ function prepareTableData(data, options = {}, magnitudeSource = data) {
|
|
|
728
751
|
});
|
|
729
752
|
}
|
|
730
753
|
function resolvePreparedTable(model, options = {}) {
|
|
731
|
-
return
|
|
754
|
+
return withChartFormats(options, () => model.resolve(options));
|
|
732
755
|
}
|
|
733
756
|
function resolveTable(data, options = {}, magnitudeSource = data) {
|
|
734
757
|
let borrowed = resolvePreparedTable(prepareTableData(data, options, magnitudeSource), options), owned = copyPlannedValue(borrowed);
|
|
735
758
|
return evaluatedStates.set(owned, evaluatedStates.get(borrowed)), owned;
|
|
736
759
|
}
|
|
737
760
|
function compileTableData(data, options, magnitudeSource) {
|
|
738
|
-
let source = data, modelLiftsBefore = zeroLifts.count, formats = /* @__PURE__ */ new Map(), markedLanguage = options.locale?.language, parseFormatExample2 = (example) => {
|
|
739
|
-
let spec = formats.get(
|
|
740
|
-
return spec === void 0 && (spec = parseFormatExample(example), spec.locale = markedLanguage, formats.set(
|
|
761
|
+
let source = data, modelLiftsBefore = zeroLifts.count, formats = /* @__PURE__ */ new Map(), markedLanguage = options.locale?.language, parseFormatExample2 = (example, keepWord = !1) => {
|
|
762
|
+
let key = keepWord ? `w${example}` : `n${example}`, spec = formats.get(key);
|
|
763
|
+
return spec === void 0 && (spec = parseFormatExample(example, keepWord), spec.locale = markedLanguage, formats.set(key, spec)), { ...spec };
|
|
741
764
|
}, warnings = [], datePatterns = /* @__PURE__ */ new Map();
|
|
742
765
|
data.columns.forEach((column, index) => {
|
|
743
766
|
if (column.kind === "date") {
|
|
@@ -1049,28 +1072,41 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1049
1072
|
function formatTable(options2) {
|
|
1050
1073
|
let liftsBefore = zeroLifts.count, liftMode = options2[ZERO_LIFT], automaticAs = (on) => on && liftMode !== "none" ? liftMode ?? !0 : !1, warnings2 = rawWarnings.slice(), records2 = rawRecords.map((record) => ({ ...record })), autoFootnotes2 = new Set(rawFootnotes), lowerJudged = /* @__PURE__ */ new Set(), higherJudged = /* @__PURE__ */ new Set(), rawState2 = new Map([...rawCells].map(([id, cells]) => [id, new Map(cells)]));
|
|
1051
1074
|
partitionLeafIds.set(rawState2, partitionLeafIds.get(rawCells));
|
|
1052
|
-
let childrenOf2 = new Map([...childGroups].map(([id, rows]) => [id, rows.slice()])), locale = localeDefaults(options2.locale), sourceRows = magnitudeSource === data ? flatById : new Map(flattenRows(magnitudeSource.rows).map((row) => [row.id, row])), sourceColumns = new Map(magnitudeSource.columns.map((col) => [col.id, col])), scales = (example) => scalesWithMagnitude(parseFormatExample2(example)), specs = /* @__PURE__ */ new Map(), formatExamples = /* @__PURE__ */ new Map(), forcedColumns = /* @__PURE__ */ new Set(), localeDerivedColumns = /* @__PURE__ */ new Set()
|
|
1075
|
+
let childrenOf2 = new Map([...childGroups].map(([id, rows]) => [id, rows.slice()])), locale = localeDefaults(options2.locale), sourceRows = magnitudeSource === data ? flatById : new Map(flattenRows(magnitudeSource.rows).map((row) => [row.id, row])), sourceColumns = new Map(magnitudeSource.columns.map((col) => [col.id, col])), scales = (example) => scalesWithMagnitude(parseFormatExample2(example)), specs = /* @__PURE__ */ new Map(), formatExamples = /* @__PURE__ */ new Map(), forcedColumns = /* @__PURE__ */ new Set(), localeDerivedColumns = /* @__PURE__ */ new Set(), ruleLanguage = withNumberMarks(options2).locale.language, forcedMagnitudeOption = options2.magnitude === "million" || options2.magnitude === "thousand" ? options2.magnitude : void 0, columnRuleSpec = (col) => {
|
|
1076
|
+
let points = col.kind === "computed" && calcYieldsPoints(col.calc), change = col.kind === "computed" && percentChangeCalc(col.calc), own = columnOwnsFormat(col), values = flat.flatMap((row) => {
|
|
1077
|
+
if (row.calc !== void 0 || row.inline === !0 || cellFormat(row.cells[col.id]) !== void 0 || !own && (row.format !== void 0 || row.scale !== void 0 || sourceRows.get(row.id)?.[MAGNITUDE_GROUP] !== void 0)) return [];
|
|
1078
|
+
let raw = rawState2.get(row.id)?.get(col.id)?.raw;
|
|
1079
|
+
return typeof raw == "number" && Number.isFinite(raw) ? [raw] : [];
|
|
1080
|
+
}), spec = defaultSetSpec(values, ruleLanguage, points ? void 0 : options2.unit, { cell: !0, ...points ? { kind: "percent" } : {}, ...change ? { change: !0 } : {} });
|
|
1081
|
+
return points ? { ...spec, suffix: "%", ...change ? { signed: !0 } : {} } : spec;
|
|
1082
|
+
};
|
|
1053
1083
|
for (let col of [...valueCols, ...computedCols]) {
|
|
1054
1084
|
let inherited = col.kind === "computed" && !calcPreservesScale(col.calc) ? void 0 : options2.format, authoredExample = col.format ?? inherited, example = authoredExample ?? defaultExample(col);
|
|
1055
1085
|
authoredExample === void 0 && localeDerivedColumns.add(col.id), formatExamples.set(col.id, example);
|
|
1056
|
-
let spec = parseFormatExample2(example), sourceExample = sourceColumns.get(col.id)?.format ?? inherited;
|
|
1057
|
-
spec.automatic = automaticAs(sourceExample === void 0 && options2.unit === void 0 && options2.magnitude !== "million" && options2.magnitude !== "thousand"), authoredExample === void 0 && currencyWholeNumbers(options2.unit, options2.target) && (col.kind !== "computed" || calcPreservesScale(col.calc)) && (spec.currencyWhole = !0), scales(sourceColumns.get(col.id)?.format ?? inherited ?? defaultExample(col)) && (options2.magnitude === "million" || options2.magnitude === "thousand") && (forceScale(spec, options2.magnitude === "million" ? "m" : "k", locale.thousands), spec.lockMagnitude && forcedColumns.add(col.id)), sourceExample !== void 0 && holdAuthoredScale(spec, locale.thousands)
|
|
1086
|
+
let sourceColumn = sourceColumns.get(col.id), written = col.format !== void 0 ? sourceColumn?.format === col.format && sourceColumn[AUTOMATIC_FORMAT] !== !0 : authoredExample !== void 0, spec = parseFormatExample2(example, written && isExactExample(example)), sourceExample = sourceColumns.get(col.id)?.format ?? inherited;
|
|
1087
|
+
spec.automatic = automaticAs(sourceExample === void 0 && options2.unit === void 0 && options2.magnitude !== "million" && options2.magnitude !== "thousand"), authoredExample === void 0 && currencyWholeNumbers(options2.unit, options2.target) && (col.kind !== "computed" || calcPreservesScale(col.calc)) && (spec.currencyWhole = !0), scales(sourceColumns.get(col.id)?.format ?? inherited ?? defaultExample(col)) && (options2.magnitude === "million" || options2.magnitude === "thousand") && (forceScale(spec, options2.magnitude === "million" ? "m" : "k", locale.thousands), spec.lockMagnitude && forcedColumns.add(col.id)), sourceExample !== void 0 && holdAuthoredScale(spec, locale.thousands);
|
|
1088
|
+
let share = col.kind === "computed" && "op" in col.calc && col.calc.op === "share";
|
|
1089
|
+
specs.set(col.id, authoredExample === void 0 && forcedMagnitudeOption === void 0 && !share ? columnRuleSpec(col) : spec);
|
|
1058
1090
|
}
|
|
1059
|
-
let rowSpecs = /* @__PURE__ */ new Map(), rowById = /* @__PURE__ */ new Map(), forcedMagnitude = options2.magnitude === "million" ? "m" : options2.magnitude === "thousand" ? "k" : void 0, authoredSpec = (example, sourceExample = example) => {
|
|
1060
|
-
let spec = parseFormatExample2(example);
|
|
1091
|
+
let rowSpecs = /* @__PURE__ */ new Map(), rowById = /* @__PURE__ */ new Map(), forcedMagnitude = options2.magnitude === "million" ? "m" : options2.magnitude === "thousand" ? "k" : void 0, authoredSpec = (example, sourceExample = example, written = !1) => {
|
|
1092
|
+
let spec = parseFormatExample2(example, written && isExactExample(example));
|
|
1061
1093
|
return forcedMagnitude !== void 0 && scales(sourceExample) && forceScale(spec, forcedMagnitude, locale.thousands), spec;
|
|
1062
1094
|
}, cellsOfRow = /* @__PURE__ */ new Map(), rowCells = (row) => {
|
|
1063
1095
|
let cells = cellsOfRow.get(row.id);
|
|
1064
1096
|
return cells === void 0 && cellsOfRow.set(row.id, cells = rowCellsUncached(row)), cells;
|
|
1065
|
-
}, rowValues = (row) => rowCells(row).map(([, value]) => value),
|
|
1097
|
+
}, rowValues = (row) => rowCells(row).map(([, value]) => value), toggledOff = (colId) => (data.columnToggles ?? []).some((toggle) => toggle.columns.includes(colId) && (options2.columnVisibility?.[toggle.id] ?? toggle.defaultVisible ?? !1) === !1), rowCellsUncached = (row) => valueCols.filter((col) => col.format === void 0 && cellFormat(row.cells[col.id]) === void 0 && !toggledOff(col.id)).flatMap((col) => {
|
|
1066
1098
|
let raw = rawState2.get(row.id)?.get(col.id)?.raw;
|
|
1067
1099
|
return typeof raw == "number" ? [[col.id, raw]] : [];
|
|
1068
|
-
}), largest = (values) => values.reduce((n, v) => Math.max(n, Math.abs(v)), 0),
|
|
1100
|
+
}), largest = (values) => values.reduce((n, v) => Math.max(n, Math.abs(v)), 0), rowRuleValues = (row) => [...valueCols, ...computedCols].flatMap((col) => {
|
|
1101
|
+
if (row.calc === void 0 && row.inline !== !0 && columnOwnsFormat(col) || cellFormat(row.cells[col.id]) !== void 0 || toggledOff(col.id)) return [];
|
|
1102
|
+
let raw = rawState2.get(row.id)?.get(col.id)?.raw;
|
|
1103
|
+
return typeof raw == "number" && Number.isFinite(raw) ? [raw] : [];
|
|
1104
|
+
}), groupOf = (row) => sourceRows.get(row.id)?.[MAGNITUDE_GROUP], groupMax = /* @__PURE__ */ new Map(), groupColumns = /* @__PURE__ */ new Map(), groupPeriods = /* @__PURE__ */ new Map();
|
|
1069
1105
|
for (let row of flat) {
|
|
1070
1106
|
let group = groupOf(row);
|
|
1071
1107
|
if (group === void 0) continue;
|
|
1072
|
-
let kept = sourceRows.get(row.id)?.[MAGNITUDE_FIGURES], figures = kept === void 0 ? rowCells(row) : [...rowCells(row), ...kept];
|
|
1073
|
-
groupMax.set(group, Math.max(groupMax.get(group) ?? 0, largest(kept === void 0 ? rowValues(row) : figures.map(([, value]) => value))));
|
|
1108
|
+
let kept = sourceRows.get(row.id)?.[MAGNITUDE_FIGURES], figures = kept === void 0 ? rowCells(row) : [...rowCells(row), ...kept], periods = sourceRows.get(row.id)?.[PERIOD_FIGURES] ?? [];
|
|
1109
|
+
periods.length > 0 && groupPeriods.set(group, [...groupPeriods.get(group) ?? [], ...periods]), groupMax.set(group, Math.max(groupMax.get(group) ?? 0, largest(kept === void 0 ? rowValues(row) : figures.map(([, value]) => value)), ...periods.map(largestOfList)));
|
|
1074
1110
|
let columns2 = groupColumns.get(group);
|
|
1075
1111
|
columns2 === void 0 && groupColumns.set(group, columns2 = /* @__PURE__ */ new Map());
|
|
1076
1112
|
for (let [colId, value] of figures) {
|
|
@@ -1078,7 +1114,16 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1078
1114
|
column === void 0 ? columns2.set(colId, [value]) : column.push(value);
|
|
1079
1115
|
}
|
|
1080
1116
|
}
|
|
1081
|
-
let
|
|
1117
|
+
let joinedCells = /* @__PURE__ */ new Map();
|
|
1118
|
+
for (let row of flat) for (let col of [...valueCols, ...computedCols]) {
|
|
1119
|
+
let joined = sourceRows.get(row.id)?.cells[col.id]?.[MAGNITUDE_GROUP], raw = rawState2.get(row.id)?.get(col.id)?.raw, columns2 = joined === void 0 ? void 0 : groupColumns.get(joined);
|
|
1120
|
+
if (columns2 === void 0 || typeof raw != "number" || !Number.isFinite(raw) || toggledOff(col.id)) continue;
|
|
1121
|
+
let column = columns2.get(col.id);
|
|
1122
|
+
column === void 0 ? columns2.set(col.id, [raw]) : column.push(raw);
|
|
1123
|
+
let inRow = joinedCells.get(row.id);
|
|
1124
|
+
inRow === void 0 && joinedCells.set(row.id, inRow = /* @__PURE__ */ new Map()), inRow.set(col.id, joined);
|
|
1125
|
+
}
|
|
1126
|
+
let groupRules = /* @__PURE__ */ new Map(), scaleChangingColumns = new Set(computedCols.filter((col) => !calcPreservesScale(col.calc)).map((col) => col.id)), unfitColumns = forcedMagnitude === void 0 ? [...valueCols, ...computedCols].filter((col) => !scaleChangingColumns.has(col.id)).filter((col) => {
|
|
1082
1127
|
let spec = specs.get(col.id);
|
|
1083
1128
|
return localeDerivedColumns.has(col.id) && spec.magnitude !== "none" && flat.some((row) => {
|
|
1084
1129
|
let raw = rawState2.get(row.id)?.get(col.id)?.raw;
|
|
@@ -1095,39 +1140,56 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1095
1140
|
let raw = rawState2.get(rowId)?.get(col.id)?.raw;
|
|
1096
1141
|
return printsAsZero(raw, specs.get(col.id)) && !printsAsZero(raw, parseFormatExample2(example));
|
|
1097
1142
|
})) || ownScaleExamples.clear();
|
|
1098
|
-
let groupCellSpecs = /* @__PURE__ */ new Map()
|
|
1143
|
+
let groupCellSpecs = /* @__PURE__ */ new Map(), drawnValuesOf = (row) => {
|
|
1144
|
+
let kept = sourceRows.get(row.id)?.[MAGNITUDE_FIGURES];
|
|
1145
|
+
return kept === void 0 ? rowValues(row) : [...rowValues(row), ...kept.map(([, value]) => value)];
|
|
1146
|
+
}, periodDecimals = (group, spec, bound) => Math.max(spec.decimals, ...(groupPeriods.get(group) ?? []).map((list) => readList(list, `decimals ${bound}`, spec, () => {
|
|
1147
|
+
let probe = { ...spec };
|
|
1148
|
+
for (let value of list)
|
|
1149
|
+
for (; value !== 0 && probe.decimals < 20 && Math.abs(roundedNumber(value, probe) - value) > bound; ) probe.decimals++;
|
|
1150
|
+
return probe.decimals;
|
|
1151
|
+
}))), groupRuleInput = /* @__PURE__ */ new Map(), groupRuleValues = (group) => {
|
|
1152
|
+
let values = groupRuleInput.get(group);
|
|
1153
|
+
if (values === void 0) {
|
|
1154
|
+
values = [...groupColumns.get(group).values()].flat();
|
|
1155
|
+
for (let list of groupPeriods.get(group) ?? []) values.push(...list);
|
|
1156
|
+
groupRuleInput.set(group, values);
|
|
1157
|
+
}
|
|
1158
|
+
return values;
|
|
1159
|
+
};
|
|
1099
1160
|
for (let row of flat) {
|
|
1100
1161
|
rowById.set(row.id, row);
|
|
1101
1162
|
let example = row.format ?? ownScaleExamples.get(row.id) ?? (row.scale ? row.scale === "percent" ? "1.2%" : "1,234" : void 0) ?? (row.calc && calcYieldsPoints(row.calc) ? `1${locale.decimal}2%` : void 0);
|
|
1102
1163
|
if (example) {
|
|
1103
|
-
let ownScale = row.scale === "count" || row.scale === "percent", spec = ownScale ? parseFormatExample2(example) : authoredSpec(example, sourceRows.get(row.id)?.format ?? example),
|
|
1164
|
+
let ownScale = row.scale === "count" || row.scale === "percent", authoredRow = sourceRows.get(row.id), written = authoredRow?.format !== void 0 && authoredRow[AUTOMATIC_FORMAT] !== !0 && authoredRow.format === row.format, spec = ownScale ? parseFormatExample2(example, written && isExactExample(example)) : authoredSpec(example, sourceRows.get(row.id)?.format ?? example, written), exactRow = authoredRow?.format !== void 0 && authoredRow[AUTOMATIC_FORMAT] !== !0 && row.scale !== "money" && row.scale !== "perUnit" && forcedMagnitude === void 0 && isExactExample(example);
|
|
1104
1165
|
authoredRow?.format !== void 0 && authoredRow[AUTOMATIC_FORMAT] !== !0 && holdAuthoredScale(spec, locale.thousands);
|
|
1105
1166
|
let group = groupOf(row), rowScale = row.scale === "money" || row.scale === "perUnit";
|
|
1106
1167
|
if (rowScale || specUnitKind(spec) === "number") {
|
|
1107
|
-
let
|
|
1168
|
+
let drawn = drawnValuesOf(row), periods = sourceRows.get(row.id)?.[PERIOD_FIGURES] ?? [], joined, values = () => joined ??= periods.length === 0 ? drawn : [...drawn, ...periods.flat()], max = group === void 0 ? Math.max(largest(drawn), ...periods.map(largestOfList)) : groupMax.get(group), climb = (from) => max >= 1e9 ? "bn" : max >= 1e6 ? "m" : max >= from ? "k" : "none", authoredFormat = sourceRows.get(row.id)?.format !== void 0;
|
|
1108
1169
|
if (rowScale && !spec.magnitudeInAffix && !spec.exponent && !spec.ordinal) {
|
|
1109
1170
|
let heldMoney = row.scale === "money" && forcedMagnitude !== void 0;
|
|
1110
1171
|
if (spec.magnitude = heldMoney ? forcedMagnitude : row.scale === "money" ? climb(1e3) : "none", row.scale === "money")
|
|
1111
1172
|
spec.decimals = max >= 1e3 && !(heldMoney && forcedMagnitude === "k" && max >= 1e5) ? 1 : 0;
|
|
1112
|
-
else if ((!authoredFormat ||
|
|
1113
|
-
for (let value of values)
|
|
1173
|
+
else if ((!authoredFormat || drawn.every(Number.isInteger) && periods.every((list) => readList(list, "integers", spec, () => list.every(Number.isInteger)))) && (spec.decimals = max >= 10 ? 0 : 1, !authoredFormat))
|
|
1174
|
+
for (let value of values())
|
|
1114
1175
|
for (; value !== 0 && spec.decimals < 20 && Math.abs(roundedNumber(value, spec) - value) > Math.abs(value) * 0.01; ) spec.decimals++;
|
|
1115
1176
|
spec.prefix = "", spec.suffix = "", spec.lockMagnitude = heldMoney, spec.rollMagnitude = !1, spec.thousandsSep === "" && (spec.thousandsSep = locale.thousands);
|
|
1116
1177
|
} else row.scale === "count" && !authoredFormat && max >= 1e6 && spec.magnitude === "none" && !spec.signed && (spec.magnitude = climb(1 / 0), spec.decimals = 1, spec.lockMagnitude = !1, spec.rollMagnitude = !1);
|
|
1117
|
-
let smallMoney = !spec.magnitudeInAffix && !spec.exponent && !spec.ordinal && !rowScale && !ownScale && forcedMagnitude && scales(example) && values.every((v) => Math.abs(v) < 1e3), changeLine = row.inline === !0 || spec.signed;
|
|
1118
|
-
if ((smallMoney || !changeLine && group === void 0 &&
|
|
1178
|
+
let smallMoney = !spec.magnitudeInAffix && !spec.exponent && !spec.ordinal && !rowScale && !ownScale && forcedMagnitude && scales(example) && values().every((v) => Math.abs(v) < 1e3), changeLine = row.inline === !0 || spec.signed, printsZero = (list) => list.some((v) => v !== 0 && roundedNumber(v, spec) === 0);
|
|
1179
|
+
if ((smallMoney || !changeLine && group === void 0 && (printsZero(drawn) || periods.some((list) => readList(list, "zero", spec, () => printsZero(list))))) && !spec.magnitudeInAffix && (smallMoney || !rowScale && spec.lockMagnitude && spec.magnitude === "k" || row.scale === "money" && spec.magnitude === "k")) {
|
|
1119
1180
|
let authored = parseFormatExample2(example);
|
|
1120
|
-
spec.decimals = !rowScale && authored.magnitude === "none" ? authored.decimals : 0, spec.magnitude = "none", spec.decimals = values.reduce((decimals, value) => nonzeroDecimals(value / MAGNITUDE_DIVISOR[spec.magnitude], decimals), spec.decimals);
|
|
1181
|
+
spec.decimals = !rowScale && authored.magnitude === "none" ? authored.decimals : 0, spec.magnitude = "none", spec.decimals = values().reduce((decimals, value) => nonzeroDecimals(value / MAGNITUDE_DIVISOR[spec.magnitude], decimals), spec.decimals);
|
|
1121
1182
|
}
|
|
1122
1183
|
if (!changeLine && (spec.magnitude !== "none" || group !== void 0 && row.scale === "money") && !(spec.lockMagnitude && spec.magnitude === "k") && (row.scale === "money" || row.scale === "count" && !authoredFormat))
|
|
1123
1184
|
if (group === void 0)
|
|
1124
|
-
for (let value of values)
|
|
1185
|
+
for (let value of values())
|
|
1125
1186
|
for (; value !== 0 && spec.decimals < 20 && Math.abs(roundedNumber(value, spec) - value) > Math.abs(value) * 0.01; ) spec.decimals++;
|
|
1126
1187
|
else {
|
|
1127
1188
|
let columns2 = groupColumns.get(group);
|
|
1128
1189
|
for (let column of columns2.values())
|
|
1129
1190
|
for (let value of column)
|
|
1130
1191
|
for (; value !== 0 && spec.decimals < 20 && Math.abs(roundedNumber(value, spec) - value) > max * 0.01; ) spec.decimals++;
|
|
1192
|
+
spec.decimals = periodDecimals(group, spec, max * 0.01);
|
|
1131
1193
|
let inRow = /* @__PURE__ */ new Map();
|
|
1132
1194
|
for (let [colId, column] of columns2) {
|
|
1133
1195
|
let cellSpec = { ...spec }, bound = largest(column) * 0.01;
|
|
@@ -1137,7 +1199,7 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1137
1199
|
}
|
|
1138
1200
|
groupCellSpecs.set(row.id, inRow);
|
|
1139
1201
|
}
|
|
1140
|
-
if (!changeLine && group === void 0) {
|
|
1202
|
+
if (!changeLine && group === void 0 && !exactRow) {
|
|
1141
1203
|
let inRow = /* @__PURE__ */ new Map();
|
|
1142
1204
|
for (let col of [...valueCols, ...computedCols]) {
|
|
1143
1205
|
if (row.calc === void 0 && columnOwnsFormat(col) || cellFormat(row.cells[col.id]) !== void 0 || !rowScaleReaches(row.id, col.id)) continue;
|
|
@@ -1150,28 +1212,47 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1150
1212
|
let sourceRow = sourceRows.get(row.id);
|
|
1151
1213
|
spec.automatic = automaticAs(group !== void 0 || (sourceRow?.format === void 0 || sourceRow[AUTOMATIC_FORMAT] === !0) && options2.format === void 0 && options2.unit === void 0 && forcedMagnitude === void 0);
|
|
1152
1214
|
for (let cellSpec of groupCellSpecs.get(row.id)?.values() ?? []) cellSpec.automatic = spec.automatic;
|
|
1153
|
-
|
|
1215
|
+
if ((authoredRow?.format === void 0 || authoredRow[AUTOMATIC_FORMAT] === !0) && row.format === authoredRow?.format && forcedMagnitude === void 0 && options2.format === void 0 && !spec.magnitudeInAffix) {
|
|
1216
|
+
groupCellSpecs.delete(row.id);
|
|
1217
|
+
let percent = specUnitKind(spec) === "percent", change = row.calc !== void 0 && percentChangeCalc(row.calc), rule = defaultSetSpec(
|
|
1218
|
+
group === void 0 ? rowRuleValues(row) : groupRuleValues(group),
|
|
1219
|
+
ruleLanguage,
|
|
1220
|
+
percent ? void 0 : options2.unit,
|
|
1221
|
+
{ cell: !0, ...percent ? { kind: "percent" } : {}, ...change ? { change: !0 } : {} }
|
|
1222
|
+
);
|
|
1223
|
+
rowSpecs.set(row.id, { ...rule, prefix: spec.prefix, suffix: spec.suffix, signed: spec.signed || change }), group !== void 0 && !groupRules.has(group) && groupRules.set(group, { ...rule, prefix: spec.prefix, suffix: spec.suffix });
|
|
1224
|
+
} else rowSpecs.set(row.id, spec);
|
|
1154
1225
|
}
|
|
1155
1226
|
}
|
|
1156
|
-
let cellSpecs = /* @__PURE__ */ new Map(), cellFormatCols = [...valueCols, ...computedCols];
|
|
1227
|
+
let cellSpecs = /* @__PURE__ */ new Map(), authoredCells = /* @__PURE__ */ new Map(), cellFormatCols = [...valueCols, ...computedCols];
|
|
1157
1228
|
for (let row of flat)
|
|
1158
1229
|
for (let col of cellFormatCols) {
|
|
1159
1230
|
let example = cellFormat(row.cells[col.id]);
|
|
1160
1231
|
if (example !== void 0) {
|
|
1161
1232
|
let sourceRow = sourceRows.get(row.id), sourceColumn = sourceColumns.get(col.id), sourceExample = cellFormat(sourceRow?.cells[col.id]) ?? sourceColumn?.format ?? sourceRow?.format ?? options2.format ?? defaultExample(col), inRow = cellSpecs.get(row.id);
|
|
1162
1233
|
inRow || cellSpecs.set(row.id, inRow = /* @__PURE__ */ new Map());
|
|
1163
|
-
let
|
|
1164
|
-
|
|
1234
|
+
let sourceCell = sourceRow?.cells[col.id], joined = joinedCells.get(row.id)?.get(col.id), groupRule = joined === void 0 ? void 0 : groupRules.get(joined);
|
|
1235
|
+
if (groupRule !== void 0) {
|
|
1236
|
+
inRow.set(col.id, { ...groupRule, signed: !0 });
|
|
1237
|
+
continue;
|
|
1238
|
+
}
|
|
1239
|
+
let spec = authoredSpec(example, sourceExample, cellFormat(sourceRow?.cells[col.id]) === example && sourceCell?.[AUTOMATIC_FORMAT] !== !0);
|
|
1240
|
+
if (cellFormat(sourceRow?.cells[col.id]) !== void 0 && sourceCell?.[AUTOMATIC_FORMAT] !== !0) {
|
|
1241
|
+
holdAuthoredScale(spec, locale.thousands);
|
|
1242
|
+
let authored = authoredCells.get(row.id);
|
|
1243
|
+
authored || authoredCells.set(row.id, authored = /* @__PURE__ */ new Set()), authored.add(col.id);
|
|
1244
|
+
}
|
|
1245
|
+
sourceCell?.[AUTOMATIC_FORMAT] === !0 && (spec.automatic = automaticAs(!0)), inRow.set(col.id, spec);
|
|
1165
1246
|
}
|
|
1166
1247
|
}
|
|
1167
|
-
let cellNamesOtherUnit = (rowId, colId, spec) => {
|
|
1248
|
+
let namedUnit = (spec) => unitOfSpec(spec.magnitudeWord ? { ...spec, magnitudeWord: void 0 } : spec), cellNamesOtherUnit = (rowId, colId, spec) => {
|
|
1168
1249
|
let own = cellSpecs.get(rowId)?.get(colId);
|
|
1169
|
-
return own !== void 0 && typeof rawState2.get(rowId)?.get(colId)?.raw == "number" &&
|
|
1250
|
+
return own !== void 0 && typeof rawState2.get(rowId)?.get(colId)?.raw == "number" && namedUnit(own) !== namedUnit(spec);
|
|
1170
1251
|
}, hoistedRowUnits = /* @__PURE__ */ new Map();
|
|
1171
1252
|
if (forcedMagnitude !== void 0)
|
|
1172
1253
|
for (let [rowId, spec] of rowSpecs) {
|
|
1173
1254
|
if (rowById.get(rowId)?.scale !== void 0 || rowById.get(rowId)?.calc !== void 0 || !scales(sourceRows.get(rowId)?.format ?? "1,234") || valueCols.some((col) => cellNamesOtherUnit(rowId, col.id, spec))) continue;
|
|
1174
|
-
let unit = spec.magnitude === "none" ? null :
|
|
1255
|
+
let unit = spec.magnitude === "none" ? null : namedUnit(spec);
|
|
1175
1256
|
unit !== null && hoistedRowUnits.set(rowId, unit);
|
|
1176
1257
|
}
|
|
1177
1258
|
let ownFormatColumns = new Set([...valueCols, ...computedCols].filter(columnOwnsFormat).map((col) => col.id)), rowFormattedColumns = /* @__PURE__ */ new Set();
|
|
@@ -1220,7 +1301,7 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1220
1301
|
}), lettersInCells = /* @__PURE__ */ new Set(), figurelessColumns = /* @__PURE__ */ new Set();
|
|
1221
1302
|
for (let col of [...valueCols, ...computedCols]) {
|
|
1222
1303
|
let spec = specs.get(col.id);
|
|
1223
|
-
flat.some((row) => typeof rawState2.get(row.id)?.get(col.id)?.raw == "number" && !printsThroughRow(row, col.id)) || figurelessColumns.add(col.id), !rowFormattedColumns.has(col.id) && (rollsOff(col.id, spec) || flat.some((row) => cellNamesOtherUnit(row.id, col.id, spec))) && lettersInCells.add(col.id), unitByCol.set(col.id, rowFormattedColumns.has(col.id) || lettersInCells.has(col.id) || figurelessColumns.has(col.id) ? null :
|
|
1304
|
+
flat.some((row) => typeof rawState2.get(row.id)?.get(col.id)?.raw == "number" && !printsThroughRow(row, col.id)) || figurelessColumns.add(col.id), !rowFormattedColumns.has(col.id) && (rollsOff(col.id, spec) || flat.some((row) => cellNamesOtherUnit(row.id, col.id, spec))) && lettersInCells.add(col.id), unitByCol.set(col.id, rowFormattedColumns.has(col.id) || lettersInCells.has(col.id) || figurelessColumns.has(col.id) ? null : namedUnit(spec));
|
|
1224
1305
|
}
|
|
1225
1306
|
let figureColumns = [...valueCols, ...computedCols].filter((col) => !figurelessColumns.has(col.id)), headerUnitFor = (id) => unitByCol.get(id) ?? (rowFormattedColumns.has(id) ? headUnit ?? null : null), headerScaledFor = (id) => unitByCol.get(id) != null ? specs.get(id).magnitude !== "none" : rowFormattedColumns.has(id) && headUnit !== void 0 && figureRows.some((row) => (rowSpecs.get(row.id)?.magnitude ?? "none") !== "none"), distinctUnits = [...new Set([...unitByCol.keys()].map(headerUnitFor).filter((u) => u !== null))], candidateUnit = distinctUnits.length === 1 && figureColumns.every((col) => {
|
|
1226
1307
|
let kind = specUnitKind(specs.get(col.id));
|
|
@@ -1247,6 +1328,10 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1247
1328
|
let rowOverridesColumn = (rowId) => {
|
|
1248
1329
|
let row = rowById.get(rowId);
|
|
1249
1330
|
return row?.calc !== void 0 || row?.inline === !0;
|
|
1331
|
+
}, unruled = /* @__PURE__ */ new Map(), withoutRule = (spec) => {
|
|
1332
|
+
if (spec[RULE_SET] === void 0) return spec;
|
|
1333
|
+
let face = unruled.get(spec);
|
|
1334
|
+
return face === void 0 && (face = { ...spec }, delete face[RULE_SET], unruled.set(spec, face)), face;
|
|
1250
1335
|
}, specFor = (colId, rowId) => {
|
|
1251
1336
|
let cellSpec = rowId ? cellSpecs.get(rowId)?.get(colId) : void 0;
|
|
1252
1337
|
if (cellSpec) return cellSpec;
|
|
@@ -1267,65 +1352,18 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1267
1352
|
variants.set(key, format = compileNumberFormat(spec));
|
|
1268
1353
|
}
|
|
1269
1354
|
return format;
|
|
1270
|
-
}, formatNumber = (raw, colId, rowId
|
|
1271
|
-
let cellSpec = rowId ? cellSpecs.get(rowId)?.get(colId) : void 0, rowSpec = rowId ? rowSpecs.get(rowId) : void 0, rowPath = rowSpec !== void 0 && (rowOverridesColumn(rowId) || !ownFormatColumns.has(colId) && rowScaleReaches(rowId, colId)),
|
|
1272
|
-
if (cellSpec && !sameUnit2(cellSpec, base)) return displayFormat(cellSpec, cellSpec.decimals,
|
|
1355
|
+
}, formatNumber = (raw, colId, rowId) => {
|
|
1356
|
+
let cellSpec = rowId ? cellSpecs.get(rowId)?.get(colId) : void 0, rowSpec = rowId ? rowSpecs.get(rowId) : void 0, rowPath = rowSpec !== void 0 && (rowOverridesColumn(rowId) || !ownFormatColumns.has(colId) && rowScaleReaches(rowId, colId)), ruled = rowPath ? rowSpec : specs.get(colId), base = rowId !== void 0 && authoredCells.get(rowId)?.has(colId) ? withoutRule(ruled) : ruled;
|
|
1357
|
+
if (cellSpec && !sameUnit2(cellSpec, base)) return displayFormat(cellSpec, cellSpec.decimals, cellSpec.automatic, !1)(raw);
|
|
1273
1358
|
let decimals = cellSpec?.decimals ?? (rowPath ? groupCellSpecs.get(rowId)?.get(colId)?.decimals : void 0) ?? base.decimals;
|
|
1274
1359
|
if (rowPath) {
|
|
1275
|
-
if (raw === 0 &&
|
|
1276
|
-
let hoisted = rowId !== void 0 && hoistedRowUnits.has(rowId), automatic2 =
|
|
1360
|
+
if (raw === 0 && !cellSpec && groupOf(rowById.get(rowId)) !== void 0) return "0";
|
|
1361
|
+
let hoisted = rowId !== void 0 && hoistedRowUnits.has(rowId), automatic2 = cellSpec ? cellSpec.automatic : rowSpec.automatic, printed = displayFormat(base, decimals, automatic2, hoisted)(raw);
|
|
1277
1362
|
return ownScaleExamples.has(rowId) && !cellSpec && locale.minusGlyph === "-" && printed.startsWith(MINUS) ? `-${printed.slice(MINUS.length)}` : printed;
|
|
1278
1363
|
}
|
|
1279
|
-
let automatic =
|
|
1364
|
+
let automatic = cellSpec ? cellSpec.automatic : base.automatic, rendered = displayFormat(base, decimals, automatic, unitByCol.get(colId) != null, cellSpec !== void 0)(raw);
|
|
1280
1365
|
return localeDerivedColumns.has(colId) && locale.minusGlyph === "-" && rendered.startsWith(MINUS) ? `-${rendered.slice(MINUS.length)}` : rendered;
|
|
1281
|
-
},
|
|
1282
|
-
for (let record of records2) {
|
|
1283
|
-
if (record.kind !== "calc" || record.state !== "value") continue;
|
|
1284
|
-
let baseInput = record.op === "percentDelta($0,$1)" ? record.inputs[1] : void 0, nearZeroBase = baseInput !== void 0 && baseInput.value !== null && !/[1-9]/.test(formatNumber(baseInput.value, baseInput.colId, baseInput.rowId, !1));
|
|
1285
|
-
!nearZeroBase && (madeNm.size === 0 || !record.inputs.some((input) => madeNm.has(JSON.stringify([input.rowId, input.colId])))) || (record.raw = null, record.state = "nm", rawState2.get(record.rowId)?.set(record.colId, { raw: null, state: "nm" }), madeNm.add(JSON.stringify([record.rowId, record.colId])), nearZeroBase && autoFootnotes2.add(options2.strings?.nearZeroChange ?? localeStrings(options2.locale?.language).nearZeroChange));
|
|
1286
|
-
}
|
|
1287
|
-
let displayOverride = /* @__PURE__ */ new Map(), overrideAmount = /* @__PURE__ */ new Map();
|
|
1288
|
-
for (let col of computedCols) {
|
|
1289
|
-
if (!("op" in col.calc) || col.calc.op !== "share") continue;
|
|
1290
|
-
let spec = specs.get(col.id);
|
|
1291
|
-
reconcileShares(col.id, spec);
|
|
1292
|
-
}
|
|
1293
|
-
function reconcileShares(colId, spec) {
|
|
1294
|
-
let entries = [
|
|
1295
|
-
...leafRows.map((r) => ({ r, s: rawState2.get(r.id).get(colId), shown: !0 })),
|
|
1296
|
-
...hiddenLeaves.map(([id, h]) => ({ r: { id }, s: h.states.get(colId), shown: !1 }))
|
|
1297
|
-
].filter((e) => e.s?.state === "value" && typeof e.s.raw == "number"), LAST = Number.MAX_SAFE_INTEGER;
|
|
1298
|
-
if (entries.sort((a, b) => (folded.leafOrder.get(a.r.id) ?? LAST) - (folded.leafOrder.get(b.r.id) ?? LAST)), entries.length !== leafRows.length + hiddenLeaves.length || entries.length === 0) return;
|
|
1299
|
-
let decimals = spec.decimals ?? 1, unit = Math.pow(10, -decimals), floors = entries.map((e) => Math.floor(e.s.raw / unit) * unit), remainders = entries.map((e, i) => e.s.raw - floors[i]), deficit = Math.round((100 - floors.reduce((a, b) => a + b, 0)) / unit), ownPrecision = entries.map((e) => {
|
|
1300
|
-
let cellSpec = cellSpecs.get(e.r.id)?.get(colId);
|
|
1301
|
-
return cellSpec !== void 0 && (cellSpec.decimals ?? 1) !== decimals;
|
|
1302
|
-
}), order = entries.map((_, i) => i).filter((i) => !ownPrecision[i]).sort((a, b) => remainders[b] - remainders[a] || a - b), adjusted = /* @__PURE__ */ new Set();
|
|
1303
|
-
for (let i of order) {
|
|
1304
|
-
if (deficit <= 0) break;
|
|
1305
|
-
adjusted.add(i), deficit--;
|
|
1306
|
-
}
|
|
1307
|
-
entries.forEach((e, i) => {
|
|
1308
|
-
if (ownPrecision[i] || !e.shown) return;
|
|
1309
|
-
let shown = floors[i] + (adjusted.has(i) ? unit : 0), cellSpec = cellSpecs.get(e.r.id)?.get(colId);
|
|
1310
|
-
displayOverride.set(tableCellKey(e.r.id, colId), shown === 0 && e.s.raw > 0 && spec.automatic && !cellSpec ? `<${formatNumber(unit, colId)}` : formatNumber(shown, colId, e.r.id)), overrideAmount.set(tableCellKey(e.r.id, colId), shown), adjusted.has(i) && Math.abs(shown - e.s.raw) > 1e-9 && records2.push({
|
|
1311
|
-
rowId: e.r.id,
|
|
1312
|
-
colId,
|
|
1313
|
-
op: "share-reconcile",
|
|
1314
|
-
// The display UNIT is half the calculation: this record says "the
|
|
1315
|
-
// exact share, rounded up by one unit". With only the exact share in
|
|
1316
|
-
// the receipt, the adjustment could not be checked against anything.
|
|
1317
|
-
inputs: [
|
|
1318
|
-
{ rowId: e.r.id, colId, value: e.s.raw },
|
|
1319
|
-
{ rowId: SHARE_UNIT_ROW_ID, colId, value: unit }
|
|
1320
|
-
],
|
|
1321
|
-
raw: shown,
|
|
1322
|
-
state: "value",
|
|
1323
|
-
displayed: formatNumber(shown, colId, e.r.id),
|
|
1324
|
-
kind: "rounding-adjustment"
|
|
1325
|
-
});
|
|
1326
|
-
});
|
|
1327
|
-
}
|
|
1328
|
-
let scaledBy100 = (calc) => "op" in calc && calc.op === "mul" && [calc.a, calc.b].some((side) => "lit" in side && side.lit === 100);
|
|
1366
|
+
}, scaledBy100 = (calc) => "op" in calc && calc.op === "mul" && [calc.a, calc.b].some((side) => "lit" in side && side.lit === 100);
|
|
1329
1367
|
for (let col of [...valueCols, ...computedCols]) {
|
|
1330
1368
|
if (col.kind === "computed" ? calcYieldsPoints(col.calc) || scaledBy100(col.calc) : col.percentScale === "points") continue;
|
|
1331
1369
|
let spec = col.kind === "computed" || col.format ? specs.get(col.id) : void 0;
|
|
@@ -1525,7 +1563,7 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1525
1563
|
displayed = state === "missing" && gapWord && missing === void 0 && evaluated !== void 0 && !(noPreviousColumn && noPrevious === "missing") && !blankInputs(row, col) ? glyphs.na : state === "missing" || noPreviousValue ? missingGlyph : glyphs[state];
|
|
1526
1564
|
} else {
|
|
1527
1565
|
let relativeChange = (row.inline === !0 || row.calc !== void 0 || col.kind === "computed") && (specUnitKind(specFor(col.id, row.id)) !== "number" || row.calc !== void 0 && calcYieldsPoints(row.calc) || col.kind === "computed" && calcYieldsPoints(col.calc)), negate = (options2.signs ?? "signed") === "signed" && row.kind !== "driver" && row.kind !== "result" && !relativeChange && signTo(row, null) === -1 && (col.kind !== "computed" || row.calc !== void 0 || calcFlipsWithInputs(col.calc));
|
|
1528
|
-
negated = negate && s.raw !== 0, displayed =
|
|
1566
|
+
negated = negate && s.raw !== 0, displayed = formatNumber(negate && s.raw !== 0 ? -s.raw : s.raw, col.id, row.id), negate && locale.minusGlyph === "-" && (displayed = displayed.replace(MINUS, "-")), s.partial && !(headMarksPartial && partialColumnIds.has(col.id)) && (displayed = `${displayed} ${options2.strings?.incomplete ?? localeStrings(options2.locale?.language).incomplete}`);
|
|
1529
1567
|
}
|
|
1530
1568
|
let band = obj?.bands !== void 0 && s.state === "value" && typeof s.raw == "number" ? bandFor(s.raw, obj.bands) : void 0, bandIndex = band === void 0 ? -1 : obj.bands.indexOf(band), tone = obj?.tone ?? band?.tone ?? "neutral", deEmphasized, judgmentRow = row.relation === "additive" || row.calc !== void 0 || row.inline === !0 && row.polarity !== void 0, polarity = col.polarity !== void 0 ? row.polarity ?? col.polarity : row.calc !== void 0 || row.inline === !0 || specFor(col.id, row.id).signed ? row.polarity : void 0;
|
|
1531
1569
|
if (s.state === "value" && typeof s.raw == "number" && judgmentRow) {
|
|
@@ -1539,7 +1577,7 @@ function compileTableData(data, options, magnitudeSource) {
|
|
|
1539
1577
|
threshold !== void 0 && Math.abs(roundedNumber(s.raw, specFor(col.id, row.id))) < threshold && (deEmphasized = !0, tone = "neutral");
|
|
1540
1578
|
}
|
|
1541
1579
|
obj?.muted === !0 && (deEmphasized = !0, tone = "neutral"), tone = judgementTone(tone, obj?.strong);
|
|
1542
|
-
let
|
|
1580
|
+
let zero = tone === "neutral" && !deEmphasized && s.state === "value" && typeof s.raw == "number" && roundedNumber(s.raw, specFor(col.id, row.id)) === 0;
|
|
1543
1581
|
return {
|
|
1544
1582
|
...base,
|
|
1545
1583
|
raw: s.raw,
|
|
@@ -1834,6 +1872,7 @@ function flattenRows(rows) {
|
|
|
1834
1872
|
order: order++,
|
|
1835
1873
|
...row[MAGNITUDE_GROUP] === void 0 ? {} : { [MAGNITUDE_GROUP]: row[MAGNITUDE_GROUP] },
|
|
1836
1874
|
...row[MAGNITUDE_FIGURES] === void 0 ? {} : { [MAGNITUDE_FIGURES]: row[MAGNITUDE_FIGURES] },
|
|
1875
|
+
...row[PERIOD_FIGURES] === void 0 ? {} : { [PERIOD_FIGURES]: row[PERIOD_FIGURES] },
|
|
1837
1876
|
...row[AUTOMATIC_FORMAT] === !0 ? { [AUTOMATIC_FORMAT]: !0 } : {}
|
|
1838
1877
|
});
|
|
1839
1878
|
for (let child of row.children ?? []) walk(child, row.id, level + 1);
|
|
@@ -2052,7 +2091,7 @@ function validateCalcRefs(columns, colById) {
|
|
|
2052
2091
|
for (let c of columns)
|
|
2053
2092
|
c.kind === "computed" && check(c.calc, c.id);
|
|
2054
2093
|
}
|
|
2055
|
-
var LEAF_TOTAL_ROW_ID = "__leafTotal"
|
|
2094
|
+
var LEAF_TOTAL_ROW_ID = "__leafTotal";
|
|
2056
2095
|
function pushCalcRecord(records, rowId, colId, res) {
|
|
2057
2096
|
records.push({
|
|
2058
2097
|
rowId,
|
|
@@ -2470,6 +2509,9 @@ function rowGrounds(table) {
|
|
|
2470
2509
|
return grounds;
|
|
2471
2510
|
}
|
|
2472
2511
|
var SORTABLE_COLUMNS = /* @__PURE__ */ new Set(["value", "computed", "date", "text"]);
|
|
2512
|
+
function sortReadsRaw(kind) {
|
|
2513
|
+
return SORTABLE_COLUMNS.has(kind) && kind !== "text";
|
|
2514
|
+
}
|
|
2473
2515
|
function sortableColumnIds(table, sortable) {
|
|
2474
2516
|
if (sortable === void 0 || sortable === !1) return /* @__PURE__ */ new Set();
|
|
2475
2517
|
let authored = sortable === !0 ? void 0 : new Set(sortable);
|
|
@@ -2626,6 +2668,7 @@ export {
|
|
|
2626
2668
|
visibleRows,
|
|
2627
2669
|
finalClosers,
|
|
2628
2670
|
rowGrounds,
|
|
2671
|
+
sortReadsRaw,
|
|
2629
2672
|
sortableColumnIds,
|
|
2630
2673
|
sortRows,
|
|
2631
2674
|
visibleInlineRows,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WYJEOMNY.js";
|
|
4
4
|
|
|
5
5
|
// src/core/charts/bar/model.ts
|
|
6
|
-
var OTHERS_ID = "__others", LABEL_GAP = 5, CAT_BAND_GAP = 10, CAT_MAX_LINES = 3, RIGHT_ROOM = /* @__PURE__ */ Symbol("rightRoom"), NO_NAME_COLUMN = /* @__PURE__ */ Symbol("noNameColumn"), NAME_TRACK = /* @__PURE__ */ Symbol("nameTrack"), LEFT_ROOM = /* @__PURE__ */ Symbol("leftRoom"), TOTAL_TRACK = /* @__PURE__ */ Symbol("totalTrack"), TOTAL_COLUMN = /* @__PURE__ */ Symbol("totalColumn"), EXACT_DOMAIN = /* @__PURE__ */ Symbol("exactDomain"), DEFER_ADJACENT = /* @__PURE__ */ Symbol("deferAdjacent"), CUT_NOTES = /* @__PURE__ */ Symbol("barCutNotes"), CAGR_ROOM = 36, CAGR_INSET_ROOM = 26;
|
|
6
|
+
var OTHERS_ID = "__others", LABEL_GAP = 5, CAT_BAND_GAP = 10, CAT_MAX_LINES = 3, RIGHT_ROOM = /* @__PURE__ */ Symbol("rightRoom"), NO_NAME_COLUMN = /* @__PURE__ */ Symbol("noNameColumn"), NAME_TRACK = /* @__PURE__ */ Symbol("nameTrack"), LEFT_ROOM = /* @__PURE__ */ Symbol("leftRoom"), TOTAL_TRACK = /* @__PURE__ */ Symbol("totalTrack"), TOTAL_COLUMN = /* @__PURE__ */ Symbol("totalColumn"), EXACT_DOMAIN = /* @__PURE__ */ Symbol("exactDomain"), DEFER_ADJACENT = /* @__PURE__ */ Symbol("deferAdjacent"), CUT_NOTES = /* @__PURE__ */ Symbol("barCutNotes"), SHOWN_SLOT = /* @__PURE__ */ Symbol("barShownSlot"), CAGR_ROOM = 36, CAGR_INSET_ROOM = 26;
|
|
7
7
|
function cagrInset(domain) {
|
|
8
8
|
return domain.variant === "grouped" && domain.dataSeries.length > 1;
|
|
9
9
|
}
|
|
@@ -38,6 +38,7 @@ export {
|
|
|
38
38
|
EXACT_DOMAIN,
|
|
39
39
|
DEFER_ADJACENT,
|
|
40
40
|
CUT_NOTES,
|
|
41
|
+
SHOWN_SLOT,
|
|
41
42
|
CAGR_ROOM,
|
|
42
43
|
CAGR_INSET_ROOM,
|
|
43
44
|
cagrInset,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-Z6H5ED2I.js";
|
|
11
11
|
import {
|
|
12
12
|
createChartComponent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E4KHHC46.js";
|
|
14
14
|
import {
|
|
15
15
|
lineCore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SE6LBMRJ.js";
|
|
17
17
|
import {
|
|
18
18
|
registeredType
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4YZQY3AA.js";
|
|
20
20
|
|
|
21
21
|
// src/react/charts/line.ts
|
|
22
22
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: { show: 0, min: 0, max: 0, tickStep: 0, includeZero: 0, percent: 0, log: 0, reverse: 0, gridlines: 0 }, categoryAxis: { crossesBetween: 0, dateTicks: 0 }, scaleGroup: { y: 0, id: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, rounding: 0, interactive: 0, annotations: sharedKeys9, trend: { label: 0 }, window: { last: 0, decimate: 0, maxPoints: 0 }, viewDomain: { x: 0 }, xAxis: { type: 0, zone: 0, min: 0, max: 0, tickStep: { unit: 0, step: 0 }, ticks: { "[]": { value: 0, label: 0 } }, format: 0, title: 0, unit: 0, maxTicks: 0 }, anomaly: { method: 0, k: 0, baseline: 0, label: 0, low: 0, high: 0 }, events: sharedKeys1, axisTitles: { primary: 0 }, endLabelPlacement: 0, variant: 0, bump: { direction: 0, focus: 0 }, seriesLabels: { only: 0 }, pointLabelSide: 0, valueLabels: 0, latestPoint: { series: 0, marker: 0 }, emphasis: 0, othersShade: 0, highlightMode: 0, scenarioStyle: { "*": { width: 0, ink: 0 } }, rebase100: { at: 0 }, ratioTier: sharedKeys2, interpolate: 0, phases: { "[]": { id: 0, label: 0, from: 0, to: 0, tone: 0, rank: 0 } }, gapFill: { between: 0, positiveTone: 0, negativeTone: 0 }, fan: { of: 0, bands: { "[]": { low: 0, high: 0, label: 0 } }, showBounds: 0 }, targets: { "[]": { at: 0, value: 0, label: 0, seriesId: 0 } }, methodNote: 0, referenceBands: { "[]": { id: 0, value: 0, low: 0, high: 0, label: 0, description: 0 } } }, labels: ["category", "series", "point", "restSeries", "percentIndicator", "axisTitle"] }), LineChart = createChartComponent(registeredType(lineCore), checkOptionKeys);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
quietMethodNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WD5NJHZG.js";
|
|
4
4
|
import {
|
|
5
5
|
formatWithSpec,
|
|
6
6
|
withChartMarks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3JG764MI.js";
|
|
8
8
|
import {
|
|
9
9
|
chartStrings,
|
|
10
10
|
formatPercent,
|
|
11
11
|
roundHalfUp,
|
|
12
12
|
shareSetDecimals,
|
|
13
13
|
shareText
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FYFXOLWI.js";
|
|
15
15
|
|
|
16
16
|
// src/core/strings/shareRounding.ts
|
|
17
17
|
var EN = {
|