boardplot 0.57.0 → 0.58.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 +298 -0
- package/README.md +48 -14
- package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
- package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-MHMXIDAJ.js} +8 -7
- package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-753KQBNN.js} +2 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
- package/dist/{chunk-Q7VPTN5X.js → chunk-2ETK5TSA.js} +4 -4
- package/dist/{chunk-NO7GRVUU.js → chunk-2ETSI2EL.js} +8 -8
- package/dist/{chunk-4RN4OM6I.js → chunk-2GRXHWRH.js} +3 -3
- package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
- package/dist/{chunk-K6Y4HBK7.js → chunk-2LC2H3ZM.js} +1000 -904
- package/dist/{chunk-KF3ZHLHQ.js → chunk-2NX7EO7H.js} +5 -5
- package/dist/{chunk-D5G67OER.js → chunk-2QI2PK2O.js} +1 -1
- package/dist/{chunk-AFA32LHN.js → chunk-2VKQQLP7.js} +62 -36
- package/dist/chunk-3DOVXJ6K.js +602 -0
- package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
- package/dist/{chunk-D5RAVZ5C.js → chunk-3HA4IJTO.js} +9 -8
- package/dist/{chunk-OTGNVAI4.js → chunk-3HPPTQEW.js} +4 -4
- package/dist/{chunk-TGR6PRKG.js → chunk-3KT2647F.js} +4 -2
- package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
- package/dist/{chunk-JKXJWCJ5.js → chunk-3P3FKPFN.js} +116 -54
- package/dist/{chunk-JMOBA5ES.js → chunk-3XAJSMYD.js} +2 -2
- package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
- package/dist/{chunk-Y5IKCXQR.js → chunk-44JU3VOT.js} +5 -5
- package/dist/{chunk-YBYV56FS.js → chunk-44K75CYE.js} +3 -3
- package/dist/{chunk-WKWCNS6K.js → chunk-4FNM4D57.js} +5 -5
- package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
- package/dist/{chunk-LO3AGGE3.js → chunk-4VV3KUFT.js} +5 -5
- package/dist/{chunk-6ZN2XJFI.js → chunk-54YO56IK.js} +1 -1
- package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
- package/dist/{chunk-SHAAMKN7.js → chunk-5JEU6MWC.js} +18 -18
- package/dist/{chunk-I7KDPCC7.js → chunk-5JIB4VJA.js} +18 -10
- package/dist/{chunk-C5SQEYTQ.js → chunk-5OP3E2ZD.js} +153 -65
- package/dist/{chunk-BDCKHLUB.js → chunk-5SLBD4BT.js} +72 -304
- package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
- package/dist/chunk-5U567TYU.js +23 -0
- package/dist/{chunk-BFDPY7JM.js → chunk-5ZLF4S7X.js} +11 -6
- package/dist/{chunk-73O6AOAA.js → chunk-5ZMTQATF.js} +241 -140
- package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
- package/dist/chunk-64K3V4VN.js +25 -0
- package/dist/{chunk-BM2A3IGQ.js → chunk-67YJJJIB.js} +1 -1
- package/dist/{chunk-TDDSWNGD.js → chunk-6DJNFT2K.js} +30 -28
- package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
- package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
- package/dist/{chunk-H2POQ4LB.js → chunk-6XPV6M3Q.js} +4 -4
- package/dist/{chunk-XFCBH3TI.js → chunk-6ZDSEITW.js} +3 -3
- package/dist/{chunk-LFX5BERN.js → chunk-72HVDLMT.js} +46 -32
- package/dist/chunk-75NU5RLX.js +24 -0
- package/dist/chunk-76GPN6AT.js +72 -0
- package/dist/{chunk-EFKFZNQC.js → chunk-7CAYRPJV.js} +34 -20
- package/dist/{chunk-EWR6WVOV.js → chunk-7GWWBHVQ.js} +6 -6
- package/dist/{chunk-H6EJ63QN.js → chunk-7NYUFMLJ.js} +143 -82
- package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
- package/dist/chunk-A65B23JK.js +113 -0
- package/dist/{chunk-XNV7VOIT.js → chunk-A7R6FUS6.js} +4 -4
- package/dist/{chunk-KIXNHDXS.js → chunk-AEVGUOPB.js} +5 -5
- package/dist/{chunk-IXM6BAM4.js → chunk-AHIK2N72.js} +1 -1
- package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
- package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
- package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
- package/dist/{chunk-CT4RFZO4.js → chunk-AN2V2LC4.js} +37 -22
- package/dist/{chunk-T5MBORBK.js → chunk-AOFUA5XP.js} +1 -1
- package/dist/{chunk-7FAO4ICF.js → chunk-BCMEGJRX.js} +2 -2
- package/dist/{chunk-H3EWFSWI.js → chunk-BDIKWR45.js} +43 -29
- package/dist/{chunk-DJBMA4FW.js → chunk-BG6AIWAK.js} +4 -6
- package/dist/{chunk-6XU5XGYV.js → chunk-BOT6W3VB.js} +5 -5
- package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
- package/dist/{chunk-6LQKU6YN.js → chunk-BZ67BJBH.js} +11 -10
- package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
- package/dist/{chunk-FJKFYQ5I.js → chunk-C5OBPO4Z.js} +36 -28
- package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
- package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
- package/dist/{chunk-WE5WVQE4.js → chunk-CMPHT2LS.js} +3 -3
- package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
- package/dist/{chunk-JSA3ESEJ.js → chunk-CR5FP5SF.js} +1 -1
- package/dist/{chunk-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
- package/dist/{chunk-5TUDYKNL.js → chunk-DEANHDXU.js} +42 -29
- package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
- package/dist/{chunk-ZSYU6LIH.js → chunk-DIHX6NUB.js} +5 -5
- package/dist/{chunk-W7Q6PLT4.js → chunk-DILQ34NW.js} +37 -37
- package/dist/{chunk-IZRTNCJQ.js → chunk-DJKRYJP7.js} +5 -5
- package/dist/{chunk-43PCSBVQ.js → chunk-DKLC6QLF.js} +634 -8
- package/dist/{chunk-I6QGYRY4.js → chunk-DNHTMCUP.js} +2 -2
- package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
- package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
- package/dist/chunk-E262NRFP.js +39 -0
- package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
- package/dist/{chunk-5H4HFRDO.js → chunk-EBUK7HJP.js} +5 -5
- package/dist/{chunk-YGPLUENN.js → chunk-ECBHC272.js} +132 -83
- package/dist/{chunk-KLQKHA3T.js → chunk-EFW43JQJ.js} +5 -5
- package/dist/{chunk-VM5CQ7CG.js → chunk-EHRRHSPV.js} +2 -2
- package/dist/{chunk-PYGEIPPH.js → chunk-EILNJQMN.js} +32 -12
- package/dist/{chunk-KGS5Z7SL.js → chunk-ERDKMZ7O.js} +2 -2
- package/dist/{chunk-AFGQXMKT.js → chunk-ETRAPN5G.js} +143 -62
- package/dist/{chunk-USFIDSTO.js → chunk-ETUKDEGL.js} +18 -11
- package/dist/chunk-F2ET5ZTT.js +49 -0
- package/dist/{chunk-HVX2E26J.js → chunk-F3XOBFS4.js} +9 -8
- package/dist/{chunk-I4NUYVP5.js → chunk-FB6X7QHA.js} +1 -1
- package/dist/{chunk-LW4ZQGVL.js → chunk-FGW54I23.js} +7 -8
- package/dist/{chunk-UCIAHSJK.js → chunk-FP5B5XIL.js} +7 -3
- package/dist/{chunk-QRZESG66.js → chunk-FRHQGA5Q.js} +64 -239
- package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
- package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
- package/dist/{chunk-54HEIM2A.js → chunk-FWSMENKH.js} +2 -2
- package/dist/{chunk-F4JAGDPD.js → chunk-FWTUGNSF.js} +8 -8
- package/dist/{chunk-HB3TH7GY.js → chunk-FZKDZQ6U.js} +10 -6
- package/dist/{chunk-6EE6XEMA.js → chunk-G4FF6G3I.js} +25 -16
- package/dist/{chunk-72OJBDRB.js → chunk-GB6BZSTL.js} +52 -41
- package/dist/{chunk-QLWUFEKR.js → chunk-GCIHRRDJ.js} +8 -8
- package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
- package/dist/chunk-GO66OCN7.js +24 -0
- package/dist/chunk-GOFS336W.js +24 -0
- package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
- package/dist/{chunk-TWRFVW3J.js → chunk-GUTLXO7Q.js} +138 -89
- package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
- package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
- package/dist/{chunk-7P7D6WXR.js → chunk-HBQHSZ6S.js} +3 -3
- package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
- package/dist/{chunk-VY67Q6CJ.js → chunk-HUQRO6VF.js} +36 -33
- package/dist/{chunk-WSKZZ2ZB.js → chunk-I5VDW2XZ.js} +538 -503
- package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
- package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
- package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
- package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
- package/dist/chunk-IU335UO7.js +27 -0
- package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
- package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
- package/dist/{chunk-PSYPB22T.js → chunk-J4QRB6DQ.js} +5 -5
- package/dist/{chunk-CEMXGMQN.js → chunk-JCMGKQVS.js} +3 -3
- package/dist/{chunk-XR7VOF2V.js → chunk-JM7UTLF3.js} +25 -13
- package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
- package/dist/{chunk-SHCW2TCA.js → chunk-JSRQTDZZ.js} +25 -23
- package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
- package/dist/{chunk-BO5EJBLH.js → chunk-JUYRDZSV.js} +63 -43
- package/dist/{chunk-I5ZADE2U.js → chunk-JVGL2SCN.js} +1 -1
- package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
- package/dist/chunk-K7XPTQBJ.js +267 -0
- package/dist/{chunk-JIH52I36.js → chunk-KGBUXMFP.js} +119 -85
- package/dist/{chunk-2KCK63DD.js → chunk-KIE5V3DA.js} +2 -2
- package/dist/{chunk-A33MFWHW.js → chunk-KU4PCG4W.js} +2 -2
- package/dist/{chunk-MQ5EKWIG.js → chunk-KVBLTAO7.js} +5 -5
- package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
- package/dist/{chunk-BY5JGQFZ.js → chunk-KWIP5YRA.js} +4 -4
- package/dist/{chunk-JRRSKCGG.js → chunk-LG6M2JTH.js} +3 -3
- package/dist/{chunk-KUMJI5B6.js → chunk-LIE2WSB4.js} +17 -14
- package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
- package/dist/{chunk-EHNGPUTO.js → chunk-LMMS675D.js} +5 -5
- package/dist/{chunk-ANNQJWDX.js → chunk-LPKGZ664.js} +285 -34
- package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
- package/dist/chunk-LQWINE7K.js +211 -0
- package/dist/{chunk-RHBQ2Q5H.js → chunk-MKMMQDIY.js} +60 -43
- package/dist/{chunk-RMVCKO6N.js → chunk-MQ4IEDM5.js} +458 -136
- package/dist/{chunk-J22ETKDJ.js → chunk-MRM4KJ2O.js} +2 -2
- package/dist/{chunk-Z2BDTZDT.js → chunk-MX2OZHIT.js} +97 -39
- package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
- package/dist/{chunk-IUVJVMKS.js → chunk-NHU26HQ7.js} +55 -32
- package/dist/{chunk-6KHRMK3I.js → chunk-NQVJ4FPY.js} +158 -75
- package/dist/chunk-NZ7FX3AE.js +65 -0
- package/dist/{chunk-L2XRUG4P.js → chunk-OALBVELJ.js} +5 -5
- package/dist/{chunk-3DUGZ7ML.js → chunk-OGZ4UPYK.js} +46 -31
- package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
- package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
- package/dist/{chunk-RHVP62HI.js → chunk-OPYDTW5Q.js} +5 -5
- package/dist/{chunk-4U2WSW6F.js → chunk-OSJN7KDS.js} +65 -36
- package/dist/{chunk-EY4OA4OF.js → chunk-OSJXIW6I.js} +370 -785
- package/dist/{chunk-NRYERHEI.js → chunk-OVVE42P4.js} +5 -5
- package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
- package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
- package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
- package/dist/{chunk-CIDOL4FO.js → chunk-PDTIQL3B.js} +5 -5
- package/dist/{chunk-TQ5HHNM3.js → chunk-PJ5BYZPN.js} +2 -2
- package/dist/{chunk-EHQLLZCQ.js → chunk-PK7Z7WRJ.js} +59 -34
- package/dist/{chunk-KJLH5EHD.js → chunk-PL6NWB5U.js} +175 -110
- package/dist/chunk-PMT75APP.js +94 -0
- package/dist/{chunk-KQ2WZ6BY.js → chunk-PP6A4X55.js} +1 -1
- package/dist/{chunk-O7Y6RJ4D.js → chunk-PPCH3PLO.js} +11 -11
- package/dist/{chunk-IRXTNSZL.js → chunk-PPE6S7WU.js} +40 -22
- package/dist/{chunk-VT7PBGL2.js → chunk-PT7KSIEO.js} +23 -36
- package/dist/{chunk-GADI2DU7.js → chunk-QAUGRVRU.js} +121 -23
- package/dist/{chunk-2X6XY4K4.js → chunk-QMFWZG2P.js} +39 -19
- package/dist/{chunk-YB6QGOCO.js → chunk-QZGGCE45.js} +2 -2
- package/dist/{chunk-5P4MXWKP.js → chunk-R2RJQ3BM.js} +4 -4
- package/dist/{chunk-FAFUMSPR.js → chunk-R7HBIQ63.js} +83 -51
- package/dist/{chunk-76UL4CT4.js → chunk-RBNDZLYS.js} +27 -22
- package/dist/{chunk-XN7JDII2.js → chunk-RCSY4CT4.js} +230 -107
- package/dist/{chunk-OAT6FWKL.js → chunk-RHQRPJHS.js} +5 -5
- package/dist/chunk-RI6XQKWJ.js +26 -0
- package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
- package/dist/{chunk-NINK4G7U.js → chunk-RLAVNCQJ.js} +2 -2
- package/dist/{chunk-FERP4WS3.js → chunk-ROPPWJQB.js} +11 -10
- package/dist/{chunk-SSZB3VXG.js → chunk-SELOV32X.js} +102 -47
- package/dist/{chunk-EEBMK6T6.js → chunk-SQI4NWTQ.js} +8 -8
- package/dist/{chunk-2WTD3GCR.js → chunk-SRJ74CMG.js} +2 -2
- package/dist/{chunk-LSR3SBJ4.js → chunk-STWOURLG.js} +234 -136
- package/dist/{chunk-BQIADGJB.js → chunk-SWMFXSVW.js} +5 -5
- package/dist/{chunk-5HTGSB6Y.js → chunk-SZ5VGWDY.js} +3 -3
- package/dist/{chunk-EDBUVDRI.js → chunk-T26G23RS.js} +359 -86
- package/dist/chunk-T7GPIJ4L.js +89 -0
- package/dist/{chunk-LGMV7ZV4.js → chunk-TAEB3RU6.js} +5 -5
- package/dist/{chunk-YFI5PN5O.js → chunk-TBDIMTRD.js} +34 -11
- package/dist/{chunk-HDSHS2QZ.js → chunk-TFFPEWNP.js} +70 -47
- package/dist/{chunk-YO5UKKCQ.js → chunk-TMEUK2WS.js} +6 -2
- package/dist/{chunk-X5OVVMZX.js → chunk-TVOMGNFQ.js} +1 -1
- package/dist/{chunk-JARJP576.js → chunk-TX5FSNAU.js} +435 -29
- package/dist/{chunk-LUZ7HXBT.js → chunk-U52PNFPX.js} +1 -1
- package/dist/chunk-U74AWJ3X.js +24 -0
- package/dist/chunk-UC7LBW7N.js +26 -0
- package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
- package/dist/{chunk-62JZL6FW.js → chunk-UCYL3YA7.js} +56 -42
- package/dist/{chunk-AKJO6N4K.js → chunk-UD2GI3CS.js} +11 -4
- package/dist/{chunk-MOQFYJ3F.js → chunk-ULQIC76A.js} +5 -5
- package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
- package/dist/{chunk-2I76VFMZ.js → chunk-UYMFLWM6.js} +49 -37
- package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
- package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
- package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
- package/dist/{chunk-HGPFEG2L.js → chunk-VRFJAF3R.js} +5 -5
- package/dist/chunk-VS2R3OGN.js +34 -0
- package/dist/{chunk-EEL2N4Y6.js → chunk-VS5B4J2D.js} +5 -5
- package/dist/{chunk-G5BUGYIL.js → chunk-W4R6SGU3.js} +192 -113
- package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
- package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
- package/dist/{chunk-YCUNFAEE.js → chunk-WJS6SAWA.js} +238 -127
- package/dist/{chunk-VFLMBA2M.js → chunk-WQYNKF33.js} +19 -18
- package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
- package/dist/{chunk-4JNHF6JW.js → chunk-X24WAHHV.js} +84 -40
- package/dist/{chunk-GKQLKUMF.js → chunk-X3UCQPVV.js} +41 -32
- package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
- package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
- package/dist/{chunk-AOIZJ7GR.js → chunk-XDIAQEYK.js} +6 -6
- package/dist/{chunk-7EQU2TUN.js → chunk-XFPNYHX3.js} +84 -53
- package/dist/{chunk-NCCDEUHD.js → chunk-XIBVAKCO.js} +1 -1
- package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
- package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
- package/dist/{chunk-Y5WHM2Q5.js → chunk-XTFO6D4L.js} +1 -1
- package/dist/chunk-XWRI3N5O.js +70 -0
- package/dist/{chunk-IVQT2E3Y.js → chunk-XXPLPSOE.js} +13 -13
- package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
- package/dist/{chunk-QZMLSK43.js → chunk-YEJZ2OYS.js} +294 -145
- package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
- package/dist/{chunk-D3PQAVFW.js → chunk-Z6DUNKFU.js} +152 -29
- package/dist/{chunk-FF7MV4D4.js → chunk-Z6H5ED2I.js} +1 -1
- package/dist/{chunk-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
- package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
- package/dist/{chunk-OKM5LYYP.js → chunk-ZGZLEUKM.js} +5 -5
- package/dist/{chunk-QHPJ5ZKS.js → chunk-ZHRGX225.js} +5 -5
- package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
- package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
- package/dist/{chunk-UFZXZJJG.js → chunk-ZSLTSCTI.js} +5 -5
- package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
- package/dist/cli/index.js +8 -3
- package/dist/{core-UNX4ZV4M.js → core-43GLGBOY.js} +5 -1
- package/dist/{core-T3OSZOVV.js → core-5GI3ERXO.js} +3 -1
- package/dist/{core-AMWCZTOT.js → core-5L7TMK7I.js} +5 -1
- package/dist/{core-5S5CJHBG.js → core-7TO4OVY5.js} +2 -1
- package/dist/{core-BJZEJ63L.js → core-BJVENHFQ.js} +3 -1
- package/dist/{core-A7HXVSKB.js → core-BX4MFWKC.js} +2 -1
- package/dist/{core-4PW4MXWR.js → core-C3KXTOIZ.js} +4 -1
- package/dist/{core-SKMHEA4Y.js → core-C5Y6BFLL.js} +3 -1
- package/dist/{core-FTQBESDS.js → core-CLUSJ2SK.js} +3 -1
- package/dist/{core-QM34237W.js → core-E3IN2VVH.js} +2 -1
- package/dist/{core-4M4RY7MX.js → core-FD67NQOV.js} +3 -1
- package/dist/{core-WXZJ7V7S.js → core-FDKMLRAK.js} +4 -1
- package/dist/{core-L3UR75IJ.js → core-FL6Z3VVX.js} +4 -1
- package/dist/{core-XKXDXALI.js → core-JC7JUFPY.js} +6 -1
- package/dist/{core-WP73P4CW.js → core-JF33TADA.js} +5 -1
- package/dist/{core-DMDAXVMY.js → core-JH32ZAKM.js} +2 -1
- package/dist/{core-GS4DXDDG.js → core-JYYZPPQV.js} +4 -1
- package/dist/{core-N2JEWJ7D.js → core-KJTKCV4U.js} +2 -1
- package/dist/{core-7XKNJM7Y.js → core-LCQPE5Y6.js} +5 -1
- package/dist/{core-ZACFV6XR.js → core-LHVGWE54.js} +5 -1
- package/dist/{core-VT35VDVS.js → core-OVSNBOCE.js} +6 -1
- package/dist/{core-AVA4XLQ2.js → core-PPEC236B.js} +2 -1
- package/dist/{core-QFAVWFI3.js → core-QTJZDK5H.js} +2 -1
- package/dist/{core-VWYXK2R3.js → core-R3YZCOUZ.js} +4 -1
- package/dist/{core-OFPPRHYY.js → core-RIBW5XU4.js} +3 -1
- package/dist/{core-MAW4S3KA.js → core-RJFILBWL.js} +5 -1
- package/dist/{core-FCSA74RT.js → core-RWSXEKTE.js} +3 -1
- package/dist/{core-WPEYRK6Y.js → core-SOPPZLEH.js} +4 -1
- package/dist/{core-EMSJRGSE.js → core-TBUZCXLX.js} +2 -1
- package/dist/{core-OBPTBKX6.js → core-TZ5QLTAX.js} +2 -1
- package/dist/{core-JDZDBTID.js → core-U7E5W4MY.js} +2 -1
- package/dist/{core-ZSERZGK6.js → core-UBNVSL44.js} +3 -1
- package/dist/{core-WNT6ZMRO.js → core-UDRD4WIU.js} +2 -1
- package/dist/{core-VRVL6LIM.js → core-UVJZ4HY2.js} +3 -1
- package/dist/{core-7TTM4KRP.js → core-X7WWYQH4.js} +3 -1
- package/dist/{core-D2OIGYC7.js → core-XP56X47I.js} +4 -1
- package/dist/{core-CCB3IXGD.js → core-XQG54CYG.js} +3 -1
- package/dist/{dataTable-7IO546LM.js → dataTable-U7W4I6IF.js} +7 -2
- package/dist/{engine-US3N6UCH.js → engine-O5V26MGR.js} +23 -18
- package/dist/fixtures.js +2 -1
- package/dist/flags-BVLSAXT3.js +10 -0
- package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +27 -20
- package/dist/{main-2UWKGUHR.js → main-35GS47XC.js} +50 -119
- package/dist/mcp/server.js +121 -118
- package/dist/react/bar.js +5 -1
- package/dist/react/bartable.js +3 -1
- package/dist/react/box.js +3 -1
- package/dist/react/bullet.js +4 -1
- package/dist/react/butterfly.js +5 -1
- package/dist/react/choropleth.js +3 -1
- package/dist/react/cohort.js +3 -1
- package/dist/react/column.js +5 -1
- package/dist/react/combo.js +5 -1
- package/dist/react/creative.js +4 -1
- package/dist/react/diagram.js +3 -1
- package/dist/react/dimswitch.js +6 -1
- package/dist/react/dot.js +4 -1
- package/dist/react/export.js +29 -18
- package/dist/react/funnel.js +4 -1
- package/dist/react/gantt.js +3 -1
- package/dist/react/grid.js +6 -1
- package/dist/react/heatmap.js +3 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +92 -85
- package/dist/react/kpi.js +4 -1
- package/dist/react/likert.js +6 -1
- package/dist/react/line.js +4 -1
- package/dist/react/mekko.js +5 -1
- package/dist/react/pareto.js +6 -1
- package/dist/react/pie.js +4 -1
- package/dist/react/prepare.js +35 -22
- package/dist/react/pvm.js +6 -1
- package/dist/react/pyramid.js +5 -1
- package/dist/react/sankey.js +3 -1
- package/dist/react/scatter.js +3 -1
- package/dist/react/slope.js +4 -1
- package/dist/react/sparkline.js +4 -1
- package/dist/react/spec.js +17 -13
- package/dist/react/status.js +3 -1
- package/dist/react/story.js +3 -2
- package/dist/react/table.js +4 -1
- package/dist/react/theme.js +5 -3
- package/dist/react/tilemap.js +3 -1
- package/dist/react/treemap.js +3 -1
- package/dist/react/variance.js +5 -1
- package/dist/react/waffle.js +3 -1
- package/dist/react/waterfall.js +5 -1
- package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
- package/dist/rows.js +2 -2
- package/dist/{rowsModule-DYDVHBAX.js → rowsModule-H2S6WW4D.js} +1 -1
- package/dist/{schema-YDZCGL56.js → schema-2R32F6AW.js} +1 -3
- package/dist/{schema-A2XUZUCV.js → schema-2TPGJGVR.js} +1 -3
- package/dist/{schema-MD22QYZU.js → schema-47BG2TZA.js} +1 -3
- package/dist/{schema-HEB6ZDI5.js → schema-56MOEOVR.js} +1 -3
- package/dist/{schema-K4V4PYBO.js → schema-5MSR4LNN.js} +1 -3
- package/dist/{schema-NOBNFD2F.js → schema-5RIYEWE6.js} +1 -3
- package/dist/{schema-PHIHMDVB.js → schema-A26ZNGTZ.js} +1 -3
- package/dist/{schema-OXO2XY4Y.js → schema-ALBF6V7Y.js} +1 -3
- package/dist/{schema-F2Q6MH7W.js → schema-BA6WP5YZ.js} +1 -3
- package/dist/{schema-G5KSSI5W.js → schema-CBL2SMVR.js} +1 -3
- package/dist/{schema-WFGDVBJK.js → schema-CWKGLDSR.js} +1 -3
- package/dist/{schema-DHMMGDTI.js → schema-DBIQFL56.js} +1 -3
- package/dist/{schema-626QXX4G.js → schema-DL7V6NN2.js} +1 -3
- package/dist/{schema-FC6J6KZC.js → schema-DUVJMFKQ.js} +1 -3
- package/dist/{schema-LGLQBRC4.js → schema-ECJERHKF.js} +1 -2
- package/dist/{schema-4JRNXEZF.js → schema-EDSEKZDJ.js} +1 -3
- package/dist/{schema-I44IDRGD.js → schema-ESR6ZIK4.js} +1 -3
- package/dist/{schema-FSYDLMGD.js → schema-F7TWGLRZ.js} +1 -3
- package/dist/{schema-JCU6LTYD.js → schema-FGB6IGZM.js} +1 -3
- package/dist/{schema-MGETMQYC.js → schema-FKGGTM4Z.js} +1 -2
- package/dist/{schema-6PL46VXZ.js → schema-FU2AFIEE.js} +1 -3
- package/dist/{schema-XIHAKX3B.js → schema-JNJFCYBM.js} +1 -1
- package/dist/{schema-6V5K3J2V.js → schema-JYZ4RF6S.js} +1 -3
- package/dist/{schema-GXOG4MXL.js → schema-K7F6TEDK.js} +1 -2
- package/dist/{schema-NMIYKGHE.js → schema-KAK6DZX4.js} +1 -3
- package/dist/{schema-XRSORYBI.js → schema-MOKWIGF7.js} +1 -3
- package/dist/{schema-3KMU5737.js → schema-MQT6BMNK.js} +1 -3
- package/dist/{schema-JJWORI7D.js → schema-MR3BPPQR.js} +1 -3
- package/dist/{schema-IFTIMTS3.js → schema-OPXZYIW7.js} +1 -3
- package/dist/{schema-UXWKA3PI.js → schema-PV7JGX5H.js} +1 -3
- package/dist/{schema-CNJ4Y6CT.js → schema-PWPQF5RC.js} +1 -3
- package/dist/{schema-WBOPCTPC.js → schema-PYQEUC5P.js} +1 -3
- package/dist/{schema-J4HCSD5C.js → schema-QPIC5MAG.js} +6 -2
- package/dist/{schema-IUY7VYHJ.js → schema-R42VXFIS.js} +1 -3
- package/dist/{schema-WX2RS4OU.js → schema-TVUJNEX7.js} +1 -3
- package/dist/{schema-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
- package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
- package/dist/{specValidation-XGELWQUU.js → specValidation-2NHJT7TQ.js} +3 -1
- package/dist/theme.js +4 -3
- package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
- package/dist/types/core/annotate.d.ts +27 -2
- package/dist/types/core/annotateArms.d.ts +3 -1
- package/dist/types/core/annotateTargets.d.ts +4 -0
- package/dist/types/core/annotationOrigin.d.ts +13 -0
- package/dist/types/core/axis.d.ts +2 -2
- package/dist/types/core/charts/band/stacks.d.ts +7 -1
- package/dist/types/core/charts/column/model.d.ts +13 -0
- package/dist/types/core/charts/combo/layout.d.ts +7 -0
- package/dist/types/core/charts/gantt/calendar.d.ts +4 -0
- package/dist/types/core/charts/grid/normalize.d.ts +5 -0
- package/dist/types/core/charts/grid/schema.d.ts +2 -2
- package/dist/types/core/charts/pareto/layout.d.ts +2 -0
- package/dist/types/core/charts/pvm/types.d.ts +1 -0
- package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
- package/dist/types/core/charts/scatter/model.d.ts +5 -0
- package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
- package/dist/types/core/charts/table/resolve.d.ts +8 -3
- package/dist/types/core/charts/table/view.d.ts +24 -1
- package/dist/types/core/claims/browser.d.ts +2 -0
- package/dist/types/core/claims/ids.d.ts +38 -0
- package/dist/types/core/deferred.d.ts +1 -0
- package/dist/types/core/doc/diagnostics.d.ts +3 -2
- package/dist/types/core/formatSpec.d.ts +33 -14
- package/dist/types/core/frame.d.ts +25 -58
- package/dist/types/core/frameText.d.ts +203 -0
- package/dist/types/core/geometry.d.ts +2 -0
- package/dist/types/core/label/categoryRow.d.ts +19 -2
- package/dist/types/core/label/solver.d.ts +23 -2
- package/dist/types/core/normalize/shared.d.ts +12 -2
- package/dist/types/core/notes.d.ts +15 -2
- package/dist/types/core/reading.d.ts +12 -1
- package/dist/types/core/request.d.ts +1 -1
- package/dist/types/core/schema/capability.d.ts +12 -0
- package/dist/types/core/seriesIdentity.d.ts +4 -1
- package/dist/types/core/sizing.d.ts +32 -1
- package/dist/types/core/structureCounts.d.ts +3 -1
- package/dist/types/core/theme.d.ts +33 -4
- package/dist/types/core/themeRules.d.ts +2 -0
- package/dist/types/core/types/annotations.d.ts +74 -4
- package/dist/types/core/types/options.d.ts +35 -3
- package/dist/types/core/types/scene.d.ts +30 -2
- package/dist/types/core/types/table.d.ts +6 -0
- package/dist/types/core/types/theme.d.ts +23 -0
- package/dist/types/react/TableChart.d.ts +5 -0
- package/dist/validate.js +13 -6
- package/docs/TELEMETRY.md +2 -2
- package/docs/manual.md +252 -62
- package/docs/reference/bar.md +12 -4
- package/docs/reference/bartable.md +2 -2
- package/docs/reference/box.md +8 -4
- package/docs/reference/bullet.md +9 -5
- package/docs/reference/butterfly.md +10 -5
- package/docs/reference/choropleth.md +3 -5
- package/docs/reference/cohort.md +1 -1
- package/docs/reference/column.md +18 -4
- package/docs/reference/combo.md +10 -5
- package/docs/reference/creative.md +3 -7
- package/docs/reference/diagram.md +1 -1
- package/docs/reference/dimswitch.md +23 -88
- package/docs/reference/dot.md +9 -5
- package/docs/reference/fixtures.md +37 -1
- package/docs/reference/funnel.md +9 -5
- package/docs/reference/gantt.md +8 -15
- package/docs/reference/grid.md +5 -2
- package/docs/reference/heatmap.md +10 -6
- package/docs/reference/kpi.md +1 -1
- package/docs/reference/likert.md +9 -4
- package/docs/reference/line.md +18 -5
- package/docs/reference/mekko.md +10 -5
- package/docs/reference/options.md +17 -13
- package/docs/reference/pareto.md +8 -4
- package/docs/reference/pie.md +9 -5
- package/docs/reference/pvm.md +9 -5
- package/docs/reference/pyramid.md +8 -4
- package/docs/reference/react.md +5 -5
- package/docs/reference/sankey.md +2 -2
- package/docs/reference/scatter.md +8 -4
- package/docs/reference/slope.md +9 -5
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +1 -1
- package/docs/reference/table.md +33 -114
- package/docs/reference/theme.md +12 -4
- package/docs/reference/tilemap.md +2 -4
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/variance.md +12 -6
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/warnings.md +1077 -0
- package/docs/reference/waterfall.md +16 -4
- package/docs/use-cases.md +25 -13
- package/llms.txt +19 -6
- package/package.json +18 -3
- package/dist/chunk-5RHP7YTL.js +0 -24
- package/dist/chunk-6VU2XI3W.js +0 -89
- package/dist/chunk-6WJOHZPW.js +0 -26
- package/dist/chunk-FL3FQ2YA.js +0 -27
- package/dist/chunk-G5CELEUR.js +0 -26
- package/dist/chunk-M4SPKUZE.js +0 -7
- package/dist/chunk-OF7FMGH5.js +0 -24
- package/dist/chunk-S2TSXUYP.js +0 -24
- package/dist/chunk-TKERVBJ3.js +0 -23
- package/dist/chunk-VMGTNB6H.js +0 -25
- package/dist/chunk-WZL4EEBS.js +0 -11
- package/dist/chunk-YJGFT63R.js +0 -27
- package/dist/chunk-ZNX5J7D7.js +0 -47
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutButterfly
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7HBIQ63.js";
|
|
4
4
|
import {
|
|
5
5
|
calendarCategories,
|
|
6
|
-
chartSizing
|
|
7
|
-
|
|
6
|
+
chartSizing,
|
|
7
|
+
sideKeyGivesWay
|
|
8
|
+
} from "./chunk-ETRAPN5G.js";
|
|
8
9
|
import {
|
|
9
10
|
prepareFractionData
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-42QKUSHJ.js";
|
|
11
12
|
|
|
12
13
|
// src/core/charts/butterfly/core.ts
|
|
13
14
|
var butterflyCore = {
|
|
@@ -15,11 +16,14 @@ var butterflyCore = {
|
|
|
15
16
|
sizing: chartSizing("butterfly"),
|
|
16
17
|
title: "Butterfly / tornado",
|
|
17
18
|
summary: "Two mirrored horizontal panes around a shared center category column",
|
|
18
|
-
layout: (data, options) =>
|
|
19
|
+
layout: (data, options) => {
|
|
20
|
+
let prepared = prepareFractionData(data), geo = layoutButterfly(prepared, options);
|
|
21
|
+
return options === void 0 ? geo : sideKeyGivesWay(options, geo, (keyAbove) => layoutButterfly(prepared, keyAbove));
|
|
22
|
+
},
|
|
19
23
|
categoryLabels: calendarCategories,
|
|
20
24
|
prepare: prepareFractionData,
|
|
21
25
|
defaults: { sortBy: "sheet", sharedScale: !0, negatives: "direction" },
|
|
22
|
-
annotationKinds: ["cagr", "delta", "diff", "note", "callout", "abs"]
|
|
26
|
+
annotationKinds: ["cagr", "delta", "diff", "note", "callout", "abs", "text", "line", "arrow", "box"]
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
export {
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-PZ3TQFSY.js";
|
|
9
9
|
import {
|
|
10
10
|
getGeoPack
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CR5FP5SF.js";
|
|
12
12
|
import {
|
|
13
13
|
WRITTEN_NUMBER,
|
|
14
14
|
adaptNamedColumns
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-62BDQTO6.js";
|
|
16
16
|
import {
|
|
17
17
|
receivedDescription
|
|
18
18
|
} from "./chunk-RZNYW7UP.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-O3VN6BTL.js";
|
|
24
24
|
import {
|
|
25
25
|
NormalizeError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RJICOOB3.js";
|
|
27
27
|
|
|
28
28
|
// src/core/inputError.ts
|
|
29
29
|
function parseSpecString(spec, warnings) {
|
|
@@ -221,14 +221,16 @@ function readColumns(columns, shape) {
|
|
|
221
221
|
if (missing !== void 0)
|
|
222
222
|
throw new InputError("invalid-argument", `columns.${missing} must name the source column that holds the ${missing}`, {
|
|
223
223
|
path: `/columns/${missing}`,
|
|
224
|
-
expected: { types: ["string"] }
|
|
224
|
+
expected: { types: ["string"] },
|
|
225
|
+
// One series is still a series column: the rows carry no default series name.
|
|
226
|
+
suggest: missing === "series" ? "For one series, add a source column with the same series name on every row and name it in columns.series." : `Name the source column that holds the ${missing} in columns.${missing}.`
|
|
225
227
|
});
|
|
226
228
|
return { contract, valueKind };
|
|
227
229
|
}
|
|
228
|
-
function valueCell(value, kind, decimalComma,
|
|
230
|
+
function valueCell(value, kind, decimalComma, source) {
|
|
229
231
|
if (decimalComma && typeof value == "string" && /^\s*-?[1-9]\d{0,2}\.\d{3}\s*$/.test(value))
|
|
230
|
-
throw new InputError("invalid-value", `${
|
|
231
|
-
|
|
232
|
+
throw new InputError("invalid-value", `${source.displayPath}: '${value.trim()}' in a semicolon CSV is either ${value.trim().replace(/\./g, "")} with a thousands dot or ${value.trim()} with a decimal point`, {
|
|
233
|
+
...source,
|
|
232
234
|
received: receivedDescription(value),
|
|
233
235
|
suggest: "Write the number without the thousands dot, or with a decimal comma."
|
|
234
236
|
});
|
|
@@ -268,7 +270,7 @@ function adaptItemRows(shape, rows, contract, data, valueKind, decimalComma, row
|
|
|
268
270
|
let raw = row[column];
|
|
269
271
|
if (!((role === "type" || role === "group" || role === "size") && (raw == null || raw === "")) && !(role === "label" && shape === "scatter" && raw == null)) {
|
|
270
272
|
if (["value", "x", "y", "size"].includes(role)) {
|
|
271
|
-
let kind = role === "size" ? "number" : valueKind, value = valueCell(raw, kind, decimalComma,
|
|
273
|
+
let kind = role === "size" ? "number" : valueKind, value = valueCell(raw, kind, decimalComma, source);
|
|
272
274
|
if (typeof value == "string") throw new InputError("invalid-value", `${source.displayPath}: '${value}' is not a numeric cell`, {
|
|
273
275
|
...source,
|
|
274
276
|
received: receivedDescription(raw),
|
|
@@ -400,7 +402,7 @@ function adaptTableRows(rows, contract, data, inputs, decimalComma, rowsArgument
|
|
|
400
402
|
received: receivedDescription(raw),
|
|
401
403
|
suggest: 'Write the value as text, such as "yes" or "no", or as a number.'
|
|
402
404
|
});
|
|
403
|
-
let cell = raw === void 0 || raw === "" && input.kind !== "text" ? null : input.kind === "value" ? valueCell(raw, "number", decimalComma,
|
|
405
|
+
let cell = raw === void 0 || raw === "" && input.kind !== "text" ? null : input.kind === "value" ? valueCell(raw, "number", decimalComma, source) : raw;
|
|
404
406
|
if (input.kind === "value" && typeof cell == "string")
|
|
405
407
|
throw new InputError("invalid-value", `${source.displayPath}: '${cell}' is not a numeric cell`, {
|
|
406
408
|
...source,
|
|
@@ -426,7 +428,7 @@ function adaptTableRows(rows, contract, data, inputs, decimalComma, rowsArgument
|
|
|
426
428
|
return { data: { ...data, rows: entries }, pathMap, ignoredColumns: [...present].filter((column) => !read.has(column)).sort() };
|
|
427
429
|
}
|
|
428
430
|
function readObservation(shape, row, index, contract, decimalComma, rowsArgument) {
|
|
429
|
-
let column = contract.value, raw = own(row, column), source = sourceField(rowsArgument, contract, index, column), received = receivedDescription(raw, raw !== void 0), value = raw === void 0 || typeof raw == "string" && !raw.trim() ? null : valueCell(raw, "number", decimalComma,
|
|
431
|
+
let column = contract.value, raw = own(row, column), source = sourceField(rowsArgument, contract, index, column), received = receivedDescription(raw, raw !== void 0), value = raw === void 0 || typeof raw == "string" && !raw.trim() ? null : valueCell(raw, "number", decimalComma, source);
|
|
430
432
|
if (value === null)
|
|
431
433
|
throw new InputError("missing-value", `${source.displayPath}: the observation is missing; a ${shape} draws every row and takes no missing value`, {
|
|
432
434
|
...source,
|
|
@@ -535,26 +537,33 @@ function adaptRows(spec, columns, source) {
|
|
|
535
537
|
let adapted2 = shape === "table" ? adaptTableRows(sourceRows, rowContract, template, tableInputs, decimalComma, rowsArgument) : shape === "histogram" || shape === "box" ? adaptObservationRows(shape, sourceRows, rowContract, template, decimalComma, rowsArgument) : adaptItemRows(shape, sourceRows, rowContract, template, valueKind, decimalComma, rowsArgument);
|
|
536
538
|
return { spec: { ...spec, data: adapted2.data }, pathMap: adapted2.pathMap, rows: loaded.rows.length, ignoredColumns: adapted2.ignoredColumns, states: [] };
|
|
537
539
|
}
|
|
538
|
-
let contract = rowContract, rows = sourceRows.map((row, index) => Object.hasOwn(row, contract.value) ? { ...row, [contract.value]: valueCell(row[contract.value], valueKind, decimalComma,
|
|
540
|
+
let contract = rowContract, rows = sourceRows.map((row, index) => Object.hasOwn(row, contract.value) ? { ...row, [contract.value]: valueCell(row[contract.value], valueKind, decimalComma, {
|
|
541
|
+
path: argumentPath(`rows[${index}].${contract.value}`, rowsArgument, contract),
|
|
542
|
+
displayPath: `${rowsArgument.slice(1)} row ${index + 1}.${contract.value}`
|
|
543
|
+
}) } : row), mapSeriesColumn = "__map_measure";
|
|
539
544
|
for (; rows.some((row) => Object.hasOwn(row, mapSeriesColumn)) || Object.values(contract).includes(mapSeriesColumn); ) mapSeriesColumn += "_";
|
|
540
545
|
let adaptedContract = map ? { ...contract, series: mapSeriesColumn } : contract, adaptedRows = map ? rows.map((row) => ({ ...row, [mapSeriesColumn]: "value" })) : rows, adapted;
|
|
541
546
|
try {
|
|
542
547
|
adapted = adaptNamedColumns({ contract: adaptedContract, rows: adaptedRows });
|
|
543
548
|
} catch (error) {
|
|
544
549
|
if (!(error instanceof NormalizeError)) throw error;
|
|
545
|
-
let [, row, column] = /^rows\[(\d+)\]\.(.+)$/.exec(error.path) ?? [], source2 = row === void 0 ? void 0 : loaded.rows[Number(row)], cell = source2 && Object.hasOwn(source2, column) ? source2[column] : void 0, suggest = column === contract.value && typeof cell == "string" && WRITTEN_NUMBER.test(cell) ? plainNumberAdvice(cell, valueKind, decimalComma) : error.suggest
|
|
546
|
-
throw new InputError(error.code, `${error.path
|
|
550
|
+
let [, row, column] = /^rows\[(\d+)\]\.(.+)$/.exec(error.path) ?? [], source2 = row === void 0 ? void 0 : loaded.rows[Number(row)], cell = source2 && Object.hasOwn(source2, column) ? source2[column] : void 0, suggest = column === contract.value && typeof cell == "string" && WRITTEN_NUMBER.test(cell) ? plainNumberAdvice(cell, valueKind, decimalComma) : error.suggest, displayPath = row === void 0 ? void 0 : `${rowsArgument.slice(1)} row ${Number(row) + 1}.${map && column === mapSeriesColumn ? contract.category : column}`;
|
|
551
|
+
throw new InputError(error.code, `${displayPath ?? error.path}${displayPath ?? error.path ? ": " : ""}${error.message}`, {
|
|
547
552
|
path: argumentPath(map ? error.path.replace(`.${mapSeriesColumn}`, `.${contract.category}`) : error.path, rowsArgument, contract),
|
|
548
553
|
...suggest ? { suggest } : {},
|
|
554
|
+
...displayPath ? { displayPath } : {},
|
|
549
555
|
...source2 && Object.hasOwn(source2, column) ? { received: receivedDescription(cell) } : {}
|
|
550
556
|
});
|
|
551
557
|
}
|
|
552
558
|
let data = isRecord(spec.data) ? spec.data : {};
|
|
553
559
|
map && adapted.data.series[0]?.values.forEach((cell, index) => {
|
|
554
|
-
if (cell !== null && typeof cell == "object" && "date" in cell)
|
|
555
|
-
|
|
556
|
-
|
|
560
|
+
if (cell !== null && typeof cell == "object" && "date" in cell) {
|
|
561
|
+
let displayPath = `${rowsArgument.slice(1)} row ${index + 1}.${contract.value}`;
|
|
562
|
+
throw new InputError("invalid-value", `${displayPath}: a map needs a number or null, not a date`, {
|
|
563
|
+
path: argumentPath(`rows[${index}].${contract.value}`, rowsArgument, contract),
|
|
564
|
+
displayPath
|
|
557
565
|
});
|
|
566
|
+
}
|
|
558
567
|
});
|
|
559
568
|
let bartable = type === "bartable", pathMap = /* @__PURE__ */ new Map(), sourceField2 = (generated, row, column) => {
|
|
560
569
|
!column || pathMap.has(generated) || pathMap.set(generated, {
|
|
@@ -2,32 +2,33 @@ import {
|
|
|
2
2
|
ENGINE_NOTES,
|
|
3
3
|
LABEL_WRAP_FLOOR,
|
|
4
4
|
SOFT_LABEL_CAP
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3XOBFS4.js";
|
|
6
|
+
import {
|
|
7
|
+
chartString
|
|
8
|
+
} from "./chunk-PMT75APP.js";
|
|
6
9
|
import {
|
|
7
10
|
bandFor
|
|
8
11
|
} from "./chunk-263SZKIL.js";
|
|
9
12
|
import {
|
|
10
13
|
closestKey
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZNRSYS76.js";
|
|
12
15
|
import {
|
|
13
16
|
EMPTY_DATA
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QZGGCE45.js";
|
|
15
18
|
import {
|
|
16
19
|
generatedIdWarnings
|
|
17
20
|
} from "./chunk-SXAZDIGM.js";
|
|
18
21
|
import {
|
|
19
22
|
cappedItems,
|
|
20
|
-
cleanDiff,
|
|
21
|
-
cleanSum,
|
|
22
23
|
saysToDate
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I5VDW2XZ.js";
|
|
24
25
|
import {
|
|
25
26
|
defaultNotePlacement,
|
|
26
27
|
disclosureNote,
|
|
27
28
|
disclosuresShown,
|
|
28
29
|
engineNote,
|
|
29
30
|
shownNoteKinds
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DZYTXZNS.js";
|
|
31
32
|
import {
|
|
32
33
|
emptyIdRecord
|
|
33
34
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -39,19 +40,23 @@ import {
|
|
|
39
40
|
parseFormatExample,
|
|
40
41
|
specUnitKind,
|
|
41
42
|
unitMagnitude
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
43
44
|
import {
|
|
44
45
|
formatAutomaticPercent,
|
|
45
46
|
formatPercentagePoints,
|
|
46
47
|
localeStrings,
|
|
47
48
|
stringFields
|
|
48
49
|
} from "./chunk-MSYTF3DZ.js";
|
|
50
|
+
import {
|
|
51
|
+
cleanDiff,
|
|
52
|
+
cleanSum
|
|
53
|
+
} from "./chunk-TX5FSNAU.js";
|
|
49
54
|
import {
|
|
50
55
|
toJsonPointer
|
|
51
56
|
} from "./chunk-ZQ4VFQID.js";
|
|
52
57
|
import {
|
|
53
58
|
NormalizeError
|
|
54
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RJICOOB3.js";
|
|
55
60
|
import {
|
|
56
61
|
maxOf
|
|
57
62
|
} from "./chunk-WYJEOMNY.js";
|
|
@@ -119,6 +124,9 @@ function currentDimSwitchOptions(compiled, options, form, effectLabel) {
|
|
|
119
124
|
var fields = (expr) => typeof expr == "number" || "measure" in expr ? [] : "field" in expr ? [expr.field] : "total" in expr ? [] : [...fields(expr.a), ...fields(expr.b)], refs = (expr) => typeof expr == "number" || "field" in expr ? [] : "measure" in expr ? [expr.measure] : "total" in expr ? refs(expr.total) : [...refs(expr.a), ...refs(expr.b)], usesTotal = (expr) => typeof expr == "number" || "field" in expr || "measure" in expr ? !1 : "total" in expr || usesTotal(expr.a) || usesTotal(expr.b), percentMeasure = (m) => m.scale === "percent" || m.format !== void 0 && specUnitKind(parseFormatExample(m.format)) === "percent", affix = (m) => {
|
|
120
125
|
let kind = m.format ? specUnitKind(parseFormatExample(m.format)) : m.scale === "percent" ? "percent" : void 0;
|
|
121
126
|
return (m.unit === "%" || m.unit === "pp") && (kind === "percent" || kind === "pp") ? void 0 : m.unit;
|
|
127
|
+
}, pointAt = (at, list, id, ...field) => {
|
|
128
|
+
let hits = list.flatMap((entry, index) => entry.id === id ? [index] : []);
|
|
129
|
+
return hits.length === 1 ? [...at, hits[0], ...field] : [];
|
|
122
130
|
}, combine = (op, a, b) => op === "sub" ? cleanDiff(a, b) : op === "add" ? cleanSum([a, b]) : op === "mul" ? a * b : a / b;
|
|
123
131
|
function evaluate(expr, sums, total) {
|
|
124
132
|
if (typeof expr == "number") return { raw: expr, state: "value" };
|
|
@@ -194,34 +202,34 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
194
202
|
let decimals = formatDecimals.get(format);
|
|
195
203
|
return decimals === void 0 && (decimals = parseFormatExample(format).decimals, formatDecimals.set(format, decimals)), decimals;
|
|
196
204
|
}, variant = options.variant ?? "by-measure", depth = options.depth ?? 1;
|
|
197
|
-
if (!data.periods.length || !data.facts.length) throw new NormalizeError(EMPTY_DATA, data.periods.length ? "facts" : "periods", `dimswitch requires at least one ${data.periods.length ? "fact" : "period"}
|
|
205
|
+
if (!data.periods.length || !data.facts.length) throw new NormalizeError(EMPTY_DATA, data.periods.length ? "facts" : "periods", `dimswitch requires at least one ${data.periods.length ? "fact" : "period"}`, void 0, void 0, ["data", data.periods.length ? "facts" : "periods"]);
|
|
198
206
|
let range = data.periods.find((p) => p.kind === "range"), prior = data.periods.find((p) => p.kind === "prior");
|
|
199
|
-
if (!range || !prior) throw new NormalizeError("invalid-data", "periods", "dimswitch requires one range and one prior period", "
|
|
207
|
+
if (!range || !prior) throw new NormalizeError("invalid-data", "periods", "dimswitch requires one range and one prior period", "Give periods one period of kind range and one of kind prior. To hide their columns, keep both and set options.columnVisibility to { range: false, pp: false }.", void 0, ["data", "periods"]);
|
|
200
208
|
let authoredPeriods = hostPeriods(data, options), plan = data.periods.find((p) => p.kind === "plan"), hidden = authoredPeriods.slice(0, form.hide ?? 0), periods = authoredPeriods.slice(hidden.length), blockColumns = ["range", "pp", ...plan ? ["pl"] : []].filter((id) => options.columnVisibility?.[id] !== !1), drawnBlock = new Set(blockColumns), rangeDrawn = drawnBlock.has("range"), blockCells = () => {
|
|
201
209
|
let cells = emptyIdRecord();
|
|
202
210
|
for (let id of blockColumns) cells[id] = null;
|
|
203
211
|
return cells;
|
|
204
212
|
};
|
|
205
|
-
if (data.periods.filter((p) => p.kind === "plan").length > 1) throw new NormalizeError("invalid-count", "periods", "dimswitch permits at most one plan period", "keep one period of kind plan");
|
|
213
|
+
if (data.periods.filter((p) => p.kind === "plan").length > 1) throw new NormalizeError("invalid-count", "periods", "dimswitch permits at most one plan period", "keep one period of kind plan", void 0, ["data", "periods"]);
|
|
206
214
|
for (let setting of [options.thresholds, options.thresholds?.period, options.thresholds?.prior, options.thresholds?.plan]) for (let family of ["volume", "cost", "rate", "effect"]) {
|
|
207
215
|
let pair = setting?.[family];
|
|
208
216
|
if (pair && (!pair.every(Number.isFinite) || !(pair[0] >= 0 && pair[0] <= pair[1]))) throw new NormalizeError("invalid-number", "options.thresholds", `dimswitch thresholds.${family} must satisfy 0 <= first <= second.`);
|
|
209
217
|
}
|
|
210
218
|
let memberIndex = new Map(data.dimension.members.map((m) => [m.id, m])), memberLevels = 0;
|
|
211
219
|
for (let member of data.dimension.members) {
|
|
212
|
-
let seen = /* @__PURE__ */ new Set(), current = member, level = 0;
|
|
220
|
+
let seen = /* @__PURE__ */ new Set(), current = member, level = 0, child;
|
|
213
221
|
for (; current; ) {
|
|
214
|
-
if (seen.has(current.id)) throw new NormalizeError("parent-cycle", "dimension.members", "dimswitch member hierarchy contains a cycle");
|
|
222
|
+
if (seen.has(current.id)) throw new NormalizeError("parent-cycle", "dimension.members", "dimswitch member hierarchy contains a cycle", void 0, void 0, pointAt(["data", "dimension", "members"], data.dimension.members, child.id, "parentId"));
|
|
215
223
|
seen.add(current.id), level++;
|
|
216
224
|
let parent = current.parentId;
|
|
217
|
-
if (parent && !memberIndex.has(parent)) throw new NormalizeError("parent-missing", "dimension.members", `Unknown dimswitch parent ${parent}
|
|
218
|
-
current = parent ? memberIndex.get(parent) : void 0;
|
|
225
|
+
if (parent && !memberIndex.has(parent)) throw new NormalizeError("parent-missing", "dimension.members", `Unknown dimswitch parent ${parent}`, void 0, void 0, pointAt(["data", "dimension", "members"], data.dimension.members, current.id, "parentId"));
|
|
226
|
+
child = current, current = parent ? memberIndex.get(parent) : void 0;
|
|
219
227
|
}
|
|
220
228
|
memberLevels = Math.max(memberLevels, level);
|
|
221
229
|
}
|
|
222
|
-
let measures = new Map(data.measures.map((m) => [m.id, m])), measure = (id, from) => {
|
|
230
|
+
let measures = new Map(data.measures.map((m) => [m.id, m])), measure = (id, from, field) => {
|
|
223
231
|
let m = measures.get(id);
|
|
224
|
-
if (!m) throw new NormalizeError("calc-ref-missing", "measures", `dimswitch measure '${from}' names unknown measure '${id}'; use a measures[].id
|
|
232
|
+
if (!m) throw new NormalizeError("calc-ref-missing", "measures", `dimswitch measure '${from}' names unknown measure '${id}'; use a measures[].id.`, void 0, void 0, pointAt(["data", "measures"], data.measures, from, field));
|
|
225
233
|
return m;
|
|
226
234
|
}, warnings = [], totalHidden = options.rowVisibility?.[data.dimension.total.id] === !1, headHidden = (group) => `group:${group}` !== data.dimension.total.id && options.rowVisibility?.[`group:${group}`] === !1, headIds = /* @__PURE__ */ new Set(), hostHidEveryPeriod = !authoredPeriods.length && data.periods.some((p) => !p.kind), generatedIds = ["label", "range", "pp", ...plan ? ["pl"] : []], allPeriodIds = data.periods.filter((p) => !p.kind).map((p) => p.id);
|
|
227
235
|
warnings.push(
|
|
@@ -260,52 +268,55 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
260
268
|
});
|
|
261
269
|
});
|
|
262
270
|
let driverOwner = /* @__PURE__ */ new Map();
|
|
263
|
-
for (let m of data.measures) if (m.drivers !== void 0) {
|
|
271
|
+
for (let [index, m] of data.measures.entries()) if (m.drivers !== void 0) {
|
|
264
272
|
let ids = refs(m.drivers);
|
|
265
|
-
if (!ids.length || fields(m.drivers).length || usesTotal(m.drivers)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': drivers is a formula over { measure } references and numbers, not sums fields
|
|
266
|
-
if (new Set(ids).size > 6) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': at most 6 drivers; the effect split evaluates every order of them
|
|
273
|
+
if (!ids.length || fields(m.drivers).length || usesTotal(m.drivers)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': drivers is a formula over { measure } references and numbers, not sums fields.`, void 0, void 0, ["data", "measures", index, "drivers"]);
|
|
274
|
+
if (new Set(ids).size > 6) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': at most 6 drivers; the effect split evaluates every order of them.`, void 0, void 0, ["data", "measures", index, "drivers"]);
|
|
267
275
|
for (let id of ids) {
|
|
268
|
-
let driver = measure(id, m.id);
|
|
269
|
-
if (id === m.id || driverOwner.has(id) && driverOwner.get(id) !== m.id) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver explains one other line; '${m.id}' and '${driverOwner.get(id) ?? m.id}' both name it
|
|
270
|
-
if (driver.sign !== void 0 || driver.result || driver.drivers !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver takes no sign, result or drivers; it is printed, never added
|
|
276
|
+
let driver = measure(id, m.id, "drivers");
|
|
277
|
+
if (id === m.id || driverOwner.has(id) && driverOwner.get(id) !== m.id) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver explains one other line; '${m.id}' and '${driverOwner.get(id) ?? m.id}' both name it.`, void 0, void 0, ["data", "measures", index, "drivers"]);
|
|
278
|
+
if (driver.sign !== void 0 || driver.result || driver.drivers !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver takes no sign, result or drivers; it is printed, never added.`, void 0, void 0, pointAt(["data", "measures"], data.measures, id, driver.sign !== void 0 ? "sign" : driver.result ? "result" : "drivers"));
|
|
271
279
|
driverOwner.set(id, m.id);
|
|
272
280
|
}
|
|
273
281
|
}
|
|
274
282
|
let placed = /* @__PURE__ */ new Set();
|
|
275
283
|
for (let start of data.measures) {
|
|
276
|
-
let path = /* @__PURE__ */ new Map(), edges = [], current = start;
|
|
284
|
+
let path = /* @__PURE__ */ new Map(), edges = [], child, current = start;
|
|
277
285
|
for (; current && !placed.has(current.id); ) {
|
|
278
286
|
let cycleAt = path.get(current.id);
|
|
279
287
|
if (cycleAt !== void 0) throw new NormalizeError(
|
|
280
288
|
"invalid-data",
|
|
281
289
|
"measures",
|
|
282
290
|
`dimswitch measure placement forms a cycle: ${edges.slice(cycleAt).join("; ")}.`,
|
|
283
|
-
"remove one partOf or drivers reference in this cycle"
|
|
291
|
+
"remove one partOf or drivers reference in this cycle",
|
|
292
|
+
void 0,
|
|
293
|
+
// The edge out of the line before closes the cycle: its partOf, or the drivers of its owner.
|
|
294
|
+
child.partOf !== void 0 ? pointAt(["data", "measures"], data.measures, child.id, "partOf") : pointAt(["data", "measures"], data.measures, driverOwner.get(child.id), "drivers")
|
|
284
295
|
);
|
|
285
296
|
path.set(current.id, edges.length);
|
|
286
297
|
let parent = current.partOf ?? driverOwner.get(current.id);
|
|
287
298
|
if (parent === void 0) break;
|
|
288
|
-
edges.push(current.partOf !== void 0 ? `'${current.id}'.partOf -> '${parent}'` : `'${current.id}' is a driver in '${parent}'.drivers`), current = measure(parent, current.id);
|
|
299
|
+
edges.push(current.partOf !== void 0 ? `'${current.id}'.partOf -> '${parent}'` : `'${current.id}' is a driver in '${parent}'.drivers`), child = current, current = measure(parent, current.id, "partOf");
|
|
289
300
|
}
|
|
290
301
|
for (let id of path.keys()) placed.add(id);
|
|
291
302
|
}
|
|
292
303
|
let isDriver = (m) => driverOwner.has(m.id), placeOf = (m) => m.partOf ?? (isDriver(m) ? measures.get(driverOwner.get(m.id)).partOf : void 0), partsOf = (id) => data.measures.filter((m) => m.partOf === id && !isDriver(m)), childrenOf = (id) => data.measures.filter((m) => placeOf(m) === id), isSubtotal = (m) => partsOf(m.id).length > 0;
|
|
293
|
-
for (let m of data.measures) {
|
|
304
|
+
for (let [index, m] of data.measures.entries()) {
|
|
294
305
|
if (m.partOf !== void 0) {
|
|
295
|
-
let parent = measure(m.partOf, m.id);
|
|
296
|
-
if (m.parentId !== void 0 || m.splitOf !== void 0 || parent.parentId !== void 0 || parent.splitOf !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': partOf and split fields (parentId, splitOf) do not mix
|
|
297
|
-
if (parent.result) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result has no parts; name its lines in its value instead
|
|
306
|
+
let parent = measure(m.partOf, m.id, "partOf");
|
|
307
|
+
if (m.parentId !== void 0 || m.splitOf !== void 0 || parent.parentId !== void 0 || parent.splitOf !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': partOf and split fields (parentId, splitOf) do not mix.`, void 0, void 0, ["data", "measures", index, "partOf"]);
|
|
308
|
+
if (parent.result) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result has no parts; name its lines in its value instead.`, void 0, void 0, ["data", "measures", index, "partOf"]);
|
|
298
309
|
}
|
|
299
|
-
if (m.result && (m.sign !== void 0 || m.partOf !== void 0 || m.value === void 0)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result is a top-level line with a value that names its lines, e.g. { "op": "sub", "a": { "measure": "income" }, "b": { "measure": "costs" } }; it takes no sign or partOf
|
|
300
|
-
if (m.change === "absolute" && percentMeasure(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a percent measure changes in points; use change 'pp', not 'absolute'
|
|
301
|
-
if (m.value === void 0 && !isSubtotal(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}' has no value and no measure names it in partOf; add a value or make it a subtotal
|
|
310
|
+
if (m.result && (m.sign !== void 0 || m.partOf !== void 0 || m.value === void 0)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result is a top-level line with a value that names its lines, e.g. { "op": "sub", "a": { "measure": "income" }, "b": { "measure": "costs" } }; it takes no sign or partOf.`, void 0, void 0, ["data", "measures", index, "result"]);
|
|
311
|
+
if (m.change === "absolute" && percentMeasure(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a percent measure changes in points; use change 'pp', not 'absolute'.`, void 0, void 0, ["data", "measures", index, "change"]);
|
|
312
|
+
if (m.value === void 0 && !isSubtotal(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}' has no value and no measure names it in partOf; add a value or make it a subtotal.`, void 0, void 0, ["data", "measures", index, "value"]);
|
|
302
313
|
}
|
|
303
314
|
let statementGroups = /* @__PURE__ */ new Set(), statementField = (m) => m.partOf !== void 0 || m.sign !== void 0 || m.result === !0 || m.drivers !== void 0 || isDriver(m) || isSubtotal(m), groupOf = (m) => m.group ?? (placeOf(m) !== void 0 ? groupOf(measures.get(placeOf(m))) : isDriver(m) ? groupOf(measures.get(driverOwner.get(m.id))) : void 0);
|
|
304
|
-
for (let m of data.measures) if (statementField(m)) {
|
|
315
|
+
for (let [index, m] of data.measures.entries()) if (statementField(m)) {
|
|
305
316
|
let g = groupOf(m);
|
|
306
|
-
if (g === void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a statement line needs a group; the group is the statement (e.g. "Contribution margin")
|
|
317
|
+
if (g === void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a statement line needs a group; the group is the statement (e.g. "Contribution margin").`, void 0, void 0, ["data", "measures", index, "group"]);
|
|
307
318
|
let place = placeOf(m);
|
|
308
|
-
if (place !== void 0 && m.group !== void 0 && groupOf(measures.get(place)) !== m.group) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': its group differs from the group of '${place}'; a line sits in its subtotal's group
|
|
319
|
+
if (place !== void 0 && m.group !== void 0 && groupOf(measures.get(place)) !== m.group) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': its group differs from the group of '${place}'; a line sits in its subtotal's group.`, void 0, void 0, ["data", "measures", index, "group"]);
|
|
309
320
|
statementGroups.add(g);
|
|
310
321
|
}
|
|
311
322
|
let inStatement = (m) => {
|
|
@@ -315,19 +326,19 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
315
326
|
if (effectMeasures.length) {
|
|
316
327
|
for (let kind of ["prior", ...periods.length ? ["period"] : [], ...plan ? ["plan"] : []]) if (!thresholdFor("effect", kind, options)) throw new NormalizeError("invalid-number", "options.thresholds", `dimswitch options.thresholds.effect or thresholds.${kind}.effect is required for judge family effect: two ascending numbers in the statement unit.`);
|
|
317
328
|
let scales = new Set(effectMeasures.filter((m) => !isDriver(m)).map((m) => m.scale ?? m.format ?? ""));
|
|
318
|
-
if (scales.size > 1) throw new NormalizeError("invalid-data", "measures", `dimswitch effect lines must share one scale and format; ${[...scales].map((s) => `'${s}'`).join(" and ")} differ. One threshold pair cannot judge two units
|
|
329
|
+
if (scales.size > 1) throw new NormalizeError("invalid-data", "measures", `dimswitch effect lines must share one scale and format; ${[...scales].map((s) => `'${s}'`).join(" and ")} differ. One threshold pair cannot judge two units.`, void 0, void 0, ["data", "measures"]);
|
|
319
330
|
}
|
|
320
331
|
let resolved = /* @__PURE__ */ new Map(), resolving = /* @__PURE__ */ new Set(), valueOf = (id) => {
|
|
321
332
|
let done = resolved.get(id);
|
|
322
333
|
if (done !== void 0) return done;
|
|
323
|
-
if (resolving.has(id)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}' refers to itself through { measure } references
|
|
334
|
+
if (resolving.has(id)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}' refers to itself through { measure } references.`, void 0, void 0, pointAt(["data", "measures"], data.measures, id, ...measures.get(id)?.value === void 0 ? [] : ["value"]));
|
|
324
335
|
resolving.add(id);
|
|
325
336
|
let m = measures.get(id), expr = m.value === void 0 ? composed(id) : inline(m.value, id);
|
|
326
337
|
return resolving.delete(id), resolved.set(id, expr), expr;
|
|
327
338
|
}, inline = (e, from) => {
|
|
328
339
|
if (typeof e == "number" || "field" in e) return e;
|
|
329
340
|
if ("measure" in e) {
|
|
330
|
-
let m = measure(e.measure, from), v = valueOf(m.id);
|
|
341
|
+
let m = measure(e.measure, from, "value"), v = valueOf(m.id);
|
|
331
342
|
return percentMeasure(m) ? { op: "mul", a: v, b: 0.01 } : v;
|
|
332
343
|
}
|
|
333
344
|
return "total" in e ? { total: inline(e.total, from) } : { ...e, a: inline(e.a, from), b: inline(e.b, from) };
|
|
@@ -713,7 +724,7 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
713
724
|
{ id: "label", kind: "rowLabel", label: headOf("label", variant === "by-measure" ? "KPI" : data.dimension.label), ...aligned("label"), ...labelWidth === void 0 && !form.card ? { maxTextWidth: labelCap } : { maxWidth: labelCap } },
|
|
714
725
|
...periodsFirst ? [...periodTracks, ...blockTracks] : [...blockTracks, ...periodTracks]
|
|
715
726
|
// Range and its comparisons form one block between labels and periods.
|
|
716
|
-
], columnGroups: [{ id: "labels", label: "
|
|
727
|
+
], columnGroups: [{ id: "labels", label: chartString(options, "dimswitchLabels"), heading: !1, columns: ["label"] }, ...blockColumns.length ? [{ id: "block", label: chartString(options, "dimswitchRange"), heading: !1, columns: blockColumns }] : []], rows },
|
|
717
728
|
// No rowExtent: under the default the rules end at the last track.
|
|
718
729
|
options: {
|
|
719
730
|
...tableDefaults(form, pinned),
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
} from "./chunk-7BQK2UDV.js";
|
|
6
6
|
import {
|
|
7
7
|
optionKeyCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z6H5ED2I.js";
|
|
9
9
|
import {
|
|
10
10
|
createChartComponent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5SLBD4BT.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
ganttCore
|
|
14
|
+
} from "./chunk-XFPNYHX3.js";
|
|
15
15
|
import {
|
|
16
16
|
registeredType
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2QI2PK2O.js";
|
|
18
18
|
|
|
19
|
-
// src/react/charts/
|
|
20
|
-
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,
|
|
19
|
+
// src/react/charts/gantt.ts
|
|
20
|
+
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, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, scaleGroup: { y: 0, id: 0 }, bandFraction: 0, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, today: 0, elapsed: 0, weekends: 0, rowTint: 0, calendar: { weeks: 0, span: 0 }, colHeaders: 0, columnOverrides: { "*": { width: 0, align: 0, headAlign: 0, label: 0 } }, columnOrder: 0 }, labels: ["valueLine", "annotation", "activity", "item"] }), GanttChart = createChartComponent(registeredType(ganttCore), checkOptionKeys);
|
|
21
21
|
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
GanttChart
|
|
24
24
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
columnOrderOption,
|
|
3
3
|
columnOverridesOption
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H3VICNTN.js";
|
|
5
5
|
import {
|
|
6
6
|
addDuplicateIdIssues,
|
|
7
7
|
baseOptionsSchema,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
legendWithoutOrder,
|
|
10
10
|
optionShapeSchema,
|
|
11
11
|
refusedBaseOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZIVCPXXL.js";
|
|
13
13
|
|
|
14
14
|
// src/core/charts/likert/schema.ts
|
|
15
15
|
import * as z from "zod";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sharedKeys10,
|
|
3
|
+
sharedKeys5,
|
|
4
|
+
sharedKeys9
|
|
5
|
+
} from "./chunk-7BQK2UDV.js";
|
|
6
|
+
import {
|
|
7
|
+
optionKeyCheck
|
|
8
|
+
} from "./chunk-Z6H5ED2I.js";
|
|
9
|
+
import {
|
|
10
|
+
createChartComponent
|
|
11
|
+
} from "./chunk-5SLBD4BT.js";
|
|
12
|
+
import {
|
|
13
|
+
waterfallCore
|
|
14
|
+
} from "./chunk-JCMGKQVS.js";
|
|
15
|
+
import {
|
|
16
|
+
registeredType
|
|
17
|
+
} from "./chunk-2QI2PK2O.js";
|
|
18
|
+
|
|
19
|
+
// src/react/charts/waterfall.ts
|
|
20
|
+
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, smallValues: 0, palette: 0, labelDensity: 0, labelPosition: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: { break: { from: 0, to: 0, style: 0 } }, scaleGroup: { y: 0, id: 0 }, bandFraction: 0, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, axisTitles: { primary: 0 }, variant: 0, build: 0, signColor: 0, bracketRow: 0, columnOverrides: { "*": { width: 0 } } } }), WaterfallChart = createChartComponent(registeredType(waterfallCore), checkOptionKeys);
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
WaterfallChart
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chartStrings
|
|
3
|
+
} from "./chunk-MSYTF3DZ.js";
|
|
4
|
+
|
|
5
|
+
// src/core/strings/sparkline.ts
|
|
6
|
+
var EN = {
|
|
7
|
+
// reader-facing wording linked only by its consumers.
|
|
8
|
+
sparklineName: "Sparkline",
|
|
9
|
+
sparklineDesc: "Trend over {v1} points{v2}{v3}.",
|
|
10
|
+
endingAt: ", ending at {v1}",
|
|
11
|
+
referenceClause: ", reference {v1}",
|
|
12
|
+
noValue: "no value"
|
|
13
|
+
}, DE = {
|
|
14
|
+
// reader-facing wording linked only by its consumers.
|
|
15
|
+
sparklineName: "Minidiagramm",
|
|
16
|
+
sparklineDesc: "Verlauf \xFCber {v1} {v1|Punkt|Punkte}{v2}{v3}.",
|
|
17
|
+
endingAt: " mit Endwert {v1}",
|
|
18
|
+
referenceClause: " mit Referenz {v1}",
|
|
19
|
+
noValue: "kein Wert"
|
|
20
|
+
}, { chartString } = chartStrings(EN, DE);
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
chartString
|
|
24
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
columnOverridesOption
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H3VICNTN.js";
|
|
4
4
|
import {
|
|
5
5
|
REFUSED_OPTIONS
|
|
6
6
|
} from "./chunk-M4YLED7M.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
colorRoleField,
|
|
11
11
|
idSchema,
|
|
12
12
|
refusedBaseOptions
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZIVCPXXL.js";
|
|
14
14
|
|
|
15
15
|
// src/core/charts/pyramid/schema.ts
|
|
16
16
|
import * as z from "zod";
|