boardplot 0.0.0-stage → 0.52.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE +201 -0
- package/NOTICE.md +180 -0
- package/README.md +208 -2
- package/THIRD_PARTY_NOTICES.md +1110 -0
- package/dist/DiagnosticDetails-UNYNYCAH.js +69 -0
- package/dist/ReaderBox-VUNSFKZY.js +137 -0
- package/dist/annotateEngine-H7OW4H3W.js +30 -0
- package/dist/build-identity.json +6 -0
- package/dist/chunk-24WB3HMB.js +621 -0
- package/dist/chunk-263SZKIL.js +8 -0
- package/dist/chunk-27QQEWNV.js +18 -0
- package/dist/chunk-2AKWCMS4.js +24 -0
- package/dist/chunk-2DHJJ2EN.js +24 -0
- package/dist/chunk-2EQE4E3I.js +22 -0
- package/dist/chunk-2GELJH37.js +88 -0
- package/dist/chunk-2JAWQ7VV.js +3874 -0
- package/dist/chunk-2LMCD3ZR.js +6 -0
- package/dist/chunk-2MTWKMEG.js +841 -0
- package/dist/chunk-2SGIHKKU.js +33 -0
- package/dist/chunk-2UVTHU7A.js +1146 -0
- package/dist/chunk-33CBPK5Q.js +2800 -0
- package/dist/chunk-33PLBIMA.js +176 -0
- package/dist/chunk-35DZP2R2.js +22 -0
- package/dist/chunk-3D3D3D23.js +25 -0
- package/dist/chunk-3EZRM4YM.js +92 -0
- package/dist/chunk-3GZECHOK.js +802 -0
- package/dist/chunk-3HHNQPAH.js +68 -0
- package/dist/chunk-3I6RANBJ.js +1058 -0
- package/dist/chunk-3SIRPKMP.js +12 -0
- package/dist/chunk-3W23F7EY.js +185 -0
- package/dist/chunk-3XQ635KD.js +24 -0
- package/dist/chunk-3ZCKEANJ.js +24 -0
- package/dist/chunk-4DNOEV3Q.js +25857 -0
- package/dist/chunk-4GB7TBY7.js +373 -0
- package/dist/chunk-4SM2ONUC.js +18 -0
- package/dist/chunk-5C7TWNYZ.js +79 -0
- package/dist/chunk-5DJXJXDE.js +58 -0
- package/dist/chunk-5ENRZX6I.js +687 -0
- package/dist/chunk-5KWXRYAT.js +294 -0
- package/dist/chunk-5T5YW52S.js +47 -0
- package/dist/chunk-627P6T25.js +936 -0
- package/dist/chunk-62FR4FYJ.js +23 -0
- package/dist/chunk-6JUJ2DU3.js +67 -0
- package/dist/chunk-6KWIQ5KF.js +18 -0
- package/dist/chunk-6UBEGKIQ.js +25 -0
- package/dist/chunk-6XE3GVGU.js +116 -0
- package/dist/chunk-76ANFJOI.js +227 -0
- package/dist/chunk-7IFLQMJL.js +160 -0
- package/dist/chunk-7JVAQX6C.js +28 -0
- package/dist/chunk-7QDAHY5M.js +63 -0
- package/dist/chunk-7VXZDB45.js +149 -0
- package/dist/chunk-7X65ZQN4.js +38 -0
- package/dist/chunk-A2FHZH7E.js +1410 -0
- package/dist/chunk-A372DLQX.js +54 -0
- package/dist/chunk-A3ULWR5N.js +76 -0
- package/dist/chunk-A4QZXLXF.js +7 -0
- package/dist/chunk-A5JWFZVU.js +1467 -0
- package/dist/chunk-A5LZUYK4.js +59 -0
- package/dist/chunk-A6XCAQ52.js +89 -0
- package/dist/chunk-A7A4PDG5.js +24 -0
- package/dist/chunk-A7IEVBYI.js +35 -0
- package/dist/chunk-ACXX2JNL.js +6 -0
- package/dist/chunk-AFK47A6O.js +25 -0
- package/dist/chunk-ALKTNXMR.js +3650 -0
- package/dist/chunk-AOQ6VF5H.js +6 -0
- package/dist/chunk-ASAON7G4.js +648 -0
- package/dist/chunk-ATTE3FYC.js +24 -0
- package/dist/chunk-AZOUSKZD.js +728 -0
- package/dist/chunk-B2EBEXIS.js +113 -0
- package/dist/chunk-B67K5X4M.js +58 -0
- package/dist/chunk-BBL3R5YZ.js +186 -0
- package/dist/chunk-BIDIGDGH.js +6 -0
- package/dist/chunk-BKYMLFUG.js +69 -0
- package/dist/chunk-BLFWUMTD.js +12 -0
- package/dist/chunk-BM6SFFWF.js +6 -0
- package/dist/chunk-BUPLB3EX.js +129 -0
- package/dist/chunk-BVWU6GOB.js +47 -0
- package/dist/chunk-BW5VLBSZ.js +15 -0
- package/dist/chunk-C64FBRJO.js +290 -0
- package/dist/chunk-CAE2HK2G.js +295 -0
- package/dist/chunk-CCQNL33L.js +446 -0
- package/dist/chunk-CDZHNLO6.js +42 -0
- package/dist/chunk-COKHNEJP.js +24 -0
- package/dist/chunk-COYPDRJK.js +21 -0
- package/dist/chunk-CRZKGHZ6.js +1810 -0
- package/dist/chunk-CS4DHFNG.js +128 -0
- package/dist/chunk-CYDZP5W6.js +1589 -0
- package/dist/chunk-D4BIV6WG.js +1072 -0
- package/dist/chunk-D4SOADBD.js +19 -0
- package/dist/chunk-DCCJRLAJ.js +422 -0
- package/dist/chunk-DFKTS6XJ.js +75 -0
- package/dist/chunk-DGDOGOTQ.js +25 -0
- package/dist/chunk-DLC23CKC.js +53 -0
- package/dist/chunk-DRTA6JG5.js +160 -0
- package/dist/chunk-DVKBU23L.js +97 -0
- package/dist/chunk-E2HEVF23.js +692 -0
- package/dist/chunk-EC2NAYPQ.js +24 -0
- package/dist/chunk-EKQK5D6G.js +14 -0
- package/dist/chunk-EKQMYG2B.js +2353 -0
- package/dist/chunk-ELYU6TRQ.js +98 -0
- package/dist/chunk-EQT3EPTB.js +203 -0
- package/dist/chunk-ERAIVAK5.js +1359 -0
- package/dist/chunk-ETHWK2RZ.js +16 -0
- package/dist/chunk-EWVKBRLV.js +72 -0
- package/dist/chunk-F77BNDAT.js +43 -0
- package/dist/chunk-FGAGGPFF.js +566 -0
- package/dist/chunk-FIANWJXX.js +19 -0
- package/dist/chunk-FIWNDOMO.js +6 -0
- package/dist/chunk-FOKEGVPB.js +24 -0
- package/dist/chunk-FT3F72C3.js +30 -0
- package/dist/chunk-FT47HQ5U.js +47 -0
- package/dist/chunk-GDOW2KNP.js +19 -0
- package/dist/chunk-GDQ3NGDZ.js +17 -0
- package/dist/chunk-GH3ZMBFX.js +563 -0
- package/dist/chunk-GQPESFAF.js +3378 -0
- package/dist/chunk-GQS46LC3.js +50 -0
- package/dist/chunk-GULJ6KVT.js +587 -0
- package/dist/chunk-GWQIXU37.js +2774 -0
- package/dist/chunk-GZ2VNM4L.js +24 -0
- package/dist/chunk-GZ4RHGIW.js +836 -0
- package/dist/chunk-H4H4O62O.js +46 -0
- package/dist/chunk-H57TJD3B.js +72 -0
- package/dist/chunk-H7UZZ7KP.js +24 -0
- package/dist/chunk-HAAUJDGB.js +83 -0
- package/dist/chunk-HFG76JTS.js +296 -0
- package/dist/chunk-HJXXFPOL.js +211 -0
- package/dist/chunk-HTYFQHRC.js +24 -0
- package/dist/chunk-HUF6TQ2J.js +24 -0
- package/dist/chunk-HUFCSX2Y.js +89 -0
- package/dist/chunk-HX3MQ3H4.js +26 -0
- package/dist/chunk-HZQEQ34U.js +296 -0
- package/dist/chunk-I322G5UG.js +888 -0
- package/dist/chunk-IDDA5INB.js +60 -0
- package/dist/chunk-IDTLHPTK.js +60 -0
- package/dist/chunk-II7652VA.js +2918 -0
- package/dist/chunk-IN4QT33I.js +38 -0
- package/dist/chunk-IV2UXZXX.js +16 -0
- package/dist/chunk-IXSZ7OKR.js +133 -0
- package/dist/chunk-IYEFEBRN.js +41 -0
- package/dist/chunk-IZ35GMGB.js +2543 -0
- package/dist/chunk-IZCOG3FS.js +28 -0
- package/dist/chunk-JA755JHN.js +379 -0
- package/dist/chunk-JETXFF3M.js +33 -0
- package/dist/chunk-JFBEAUJ6.js +24 -0
- package/dist/chunk-JFG4DHKQ.js +48 -0
- package/dist/chunk-JL5BRMDT.js +179 -0
- package/dist/chunk-JLCAWQ3H.js +195 -0
- package/dist/chunk-JLZM7XMZ.js +525 -0
- package/dist/chunk-JMH5MD5A.js +19 -0
- package/dist/chunk-JRPI64AQ.js +3066 -0
- package/dist/chunk-JSX3C6LL.js +344 -0
- package/dist/chunk-JY4R3GML.js +83 -0
- package/dist/chunk-JYBT2JNY.js +61 -0
- package/dist/chunk-K2HNV4LE.js +2008 -0
- package/dist/chunk-KAXJFL7N.js +43 -0
- package/dist/chunk-KDMKHR5A.js +32 -0
- package/dist/chunk-KFFNCDX6.js +19 -0
- package/dist/chunk-KKWZWP67.js +24 -0
- package/dist/chunk-KOJ5QETJ.js +8 -0
- package/dist/chunk-KPMGGE4W.js +51 -0
- package/dist/chunk-KS7DXCXH.js +27 -0
- package/dist/chunk-KSYVTEKR.js +24 -0
- package/dist/chunk-KU4YS6HN.js +61 -0
- package/dist/chunk-KYELSLDJ.js +40 -0
- package/dist/chunk-LC3PSQJJ.js +383 -0
- package/dist/chunk-LC6DYCTG.js +85 -0
- package/dist/chunk-LNKY5Z2X.js +23 -0
- package/dist/chunk-LO2DANS6.js +302 -0
- package/dist/chunk-M4SPKUZE.js +7 -0
- package/dist/chunk-M4YLED7M.js +17 -0
- package/dist/chunk-M6KTNAND.js +746 -0
- package/dist/chunk-MCOIEWW6.js +54 -0
- package/dist/chunk-MDYLOIS2.js +48 -0
- package/dist/chunk-MEISCROL.js +24 -0
- package/dist/chunk-MFLH5ZDQ.js +69 -0
- package/dist/chunk-MIXKQJ64.js +935 -0
- package/dist/chunk-MJMJEURO.js +359 -0
- package/dist/chunk-MNJ2DHU6.js +526 -0
- package/dist/chunk-NEVSQGOI.js +63 -0
- package/dist/chunk-NG5IGZXC.js +1179 -0
- package/dist/chunk-NLOMCLKI.js +3303 -0
- package/dist/chunk-NMCOUVN5.js +24 -0
- package/dist/chunk-NT3HAZYT.js +51 -0
- package/dist/chunk-NXNQQ3DS.js +382 -0
- package/dist/chunk-NYEY6W5R.js +569 -0
- package/dist/chunk-OAPCJO6W.js +23 -0
- package/dist/chunk-OH7FA4TF.js +251 -0
- package/dist/chunk-OLNORNCT.js +331 -0
- package/dist/chunk-OQEBOVUO.js +30 -0
- package/dist/chunk-ORUJI3VB.js +83 -0
- package/dist/chunk-PEN2DK7T.js +49 -0
- package/dist/chunk-PGIQMQRU.js +1650 -0
- package/dist/chunk-PTVOXB5T.js +39 -0
- package/dist/chunk-PUVGWJQ5.js +24 -0
- package/dist/chunk-PWROWDZS.js +137 -0
- package/dist/chunk-Q6XJOJTY.js +29 -0
- package/dist/chunk-QBR6IKIX.js +50 -0
- package/dist/chunk-QETGGFH2.js +30 -0
- package/dist/chunk-QG6MOQLI.js +2934 -0
- package/dist/chunk-QGCEHR6S.js +13 -0
- package/dist/chunk-QHFQHQDC.js +43 -0
- package/dist/chunk-QHRE2M6V.js +26 -0
- package/dist/chunk-QKL7IY42.js +38 -0
- package/dist/chunk-QN6JHMGU.js +44 -0
- package/dist/chunk-QNHZXFRA.js +347 -0
- package/dist/chunk-QPWRHDLZ.js +17 -0
- package/dist/chunk-QVABTUDS.js +80 -0
- package/dist/chunk-QXILAMAU.js +28 -0
- package/dist/chunk-QZAT46PP.js +95 -0
- package/dist/chunk-R3WI7ZLE.js +545 -0
- package/dist/chunk-R5SWC3EW.js +30 -0
- package/dist/chunk-RJQ5YS3Q.js +40 -0
- package/dist/chunk-RNOD2UWF.js +613 -0
- package/dist/chunk-RNXITK5M.js +24 -0
- package/dist/chunk-ROXO4R3J.js +16 -0
- package/dist/chunk-RQ5DNYLG.js +10 -0
- package/dist/chunk-RSWVH7DB.js +24 -0
- package/dist/chunk-RTJXOIIQ.js +12 -0
- package/dist/chunk-RZNYW7UP.js +133 -0
- package/dist/chunk-S4F27M7N.js +37 -0
- package/dist/chunk-S4ONWRJE.js +28 -0
- package/dist/chunk-S53OGZL6.js +168 -0
- package/dist/chunk-S5ADHIZK.js +2508 -0
- package/dist/chunk-S62M63LU.js +19 -0
- package/dist/chunk-S7VDRUED.js +62 -0
- package/dist/chunk-SGD3ZHID.js +250 -0
- package/dist/chunk-SGSPYHFE.js +40 -0
- package/dist/chunk-SLTMRTXV.js +597 -0
- package/dist/chunk-SXGTRZFN.js +26 -0
- package/dist/chunk-SZPTTNW7.js +16 -0
- package/dist/chunk-T3IGJARD.js +22 -0
- package/dist/chunk-TA3TFKYZ.js +86 -0
- package/dist/chunk-TNEHPP3H.js +18 -0
- package/dist/chunk-TPYV2FTV.js +25 -0
- package/dist/chunk-TPZB2YWR.js +25 -0
- package/dist/chunk-TSR5YDPS.js +1266 -0
- package/dist/chunk-TTR7EWNH.js +170 -0
- package/dist/chunk-TVHLKVUO.js +24 -0
- package/dist/chunk-TXINIAFL.js +198 -0
- package/dist/chunk-TXZBBZOG.js +58 -0
- package/dist/chunk-UEU46Q3D.js +300 -0
- package/dist/chunk-UMDEWWXT.js +33 -0
- package/dist/chunk-UQSVWO7Z.js +334 -0
- package/dist/chunk-UZF3G2FN.js +942 -0
- package/dist/chunk-V422EKLW.js +24 -0
- package/dist/chunk-V4DYVLOO.js +433 -0
- package/dist/chunk-V4VC25UL.js +128 -0
- package/dist/chunk-V667FCIJ.js +12 -0
- package/dist/chunk-VABRPZVC.js +43 -0
- package/dist/chunk-VB2MJLET.js +19 -0
- package/dist/chunk-VDAKTZQP.js +18 -0
- package/dist/chunk-VDAZPGR2.js +79 -0
- package/dist/chunk-VXZFQKBJ.js +21 -0
- package/dist/chunk-VYMGZ27S.js +133 -0
- package/dist/chunk-W2RGSGRR.js +131 -0
- package/dist/chunk-W7UZXD5D.js +1109 -0
- package/dist/chunk-WDUNR2VI.js +2718 -0
- package/dist/chunk-WHSTEAVP.js +229 -0
- package/dist/chunk-WJMUMN3I.js +127 -0
- package/dist/chunk-WLZ54FWG.js +120 -0
- package/dist/chunk-WMJPFLF3.js +2980 -0
- package/dist/chunk-WRHFBCVY.js +24 -0
- package/dist/chunk-WVSNSWBJ.js +47 -0
- package/dist/chunk-WYJEOMNY.js +31 -0
- package/dist/chunk-WYJMV62X.js +24 -0
- package/dist/chunk-WZGJSQKN.js +29 -0
- package/dist/chunk-WZL4EEBS.js +11 -0
- package/dist/chunk-X7TXGKRX.js +272 -0
- package/dist/chunk-XB4KZ6WO.js +81 -0
- package/dist/chunk-XDLQRSSH.js +266 -0
- package/dist/chunk-XDS4UZGR.js +113 -0
- package/dist/chunk-XEGRWWNO.js +30 -0
- package/dist/chunk-XO5ONLVM.js +420 -0
- package/dist/chunk-XPWRD424.js +24 -0
- package/dist/chunk-XTNV2YMB.js +50 -0
- package/dist/chunk-XW5J5JAX.js +42 -0
- package/dist/chunk-XY5O74BH.js +33 -0
- package/dist/chunk-XYONCO5Q.js +984 -0
- package/dist/chunk-Y4PXIJMD.js +829 -0
- package/dist/chunk-YAYRRKC7.js +24 -0
- package/dist/chunk-YEDYBMCW.js +210 -0
- package/dist/chunk-YFG4E3N2.js +1161 -0
- package/dist/chunk-YHTO46W2.js +2670 -0
- package/dist/chunk-YI2ZVTCB.js +38 -0
- package/dist/chunk-YKO3VCTF.js +24 -0
- package/dist/chunk-YP3I6W7T.js +24 -0
- package/dist/chunk-YQ2B3YVF.js +687 -0
- package/dist/chunk-YS6KMYM4.js +91 -0
- package/dist/chunk-YTSSXSZR.js +197 -0
- package/dist/chunk-Z256ACGC.js +27 -0
- package/dist/chunk-Z2MGTKDR.js +20 -0
- package/dist/chunk-Z5VSLLNY.js +23 -0
- package/dist/chunk-Z7X3RGGA.js +22 -0
- package/dist/chunk-ZF43WRG3.js +29 -0
- package/dist/chunk-ZJKOLOVF.js +1754 -0
- package/dist/chunk-ZQ4VFQID.js +76 -0
- package/dist/chunk-ZSLGN6CO.js +89 -0
- package/dist/chunk-ZVTFZF4V.js +542 -0
- package/dist/cli/index.js +9 -0
- package/dist/core-5Z6UW5DS.js +31 -0
- package/dist/core-6ANZ2OWO.js +40 -0
- package/dist/core-6LLJNZ4O.js +37 -0
- package/dist/core-CPN2HF75.js +33 -0
- package/dist/core-CS7AKNME.js +37 -0
- package/dist/core-DBRILYNB.js +38 -0
- package/dist/core-DU77ZYPR.js +34 -0
- package/dist/core-E6YD7VU4.js +32 -0
- package/dist/core-EE55P6XK.js +56 -0
- package/dist/core-FFLPH5XK.js +41 -0
- package/dist/core-IV26EL5C.js +32 -0
- package/dist/core-IZVZ2B7Y.js +34 -0
- package/dist/core-JQV7STNF.js +34 -0
- package/dist/core-KBH3EJZV.js +32 -0
- package/dist/core-KFBW5PRT.js +36 -0
- package/dist/core-KWGXHBJE.js +37 -0
- package/dist/core-MZMR2DF4.js +32 -0
- package/dist/core-OK2ZY5OJ.js +29 -0
- package/dist/core-OV5MPTZP.js +43 -0
- package/dist/core-OW5V74Q4.js +40 -0
- package/dist/core-PL64QPOH.js +57 -0
- package/dist/core-PVINU5JJ.js +33 -0
- package/dist/core-QUYSNTC7.js +34 -0
- package/dist/core-RE3L6YCM.js +29 -0
- package/dist/core-RUA3EWW3.js +39 -0
- package/dist/core-RY6IFRKM.js +35 -0
- package/dist/core-SCWEVNUY.js +34 -0
- package/dist/core-SE67HHFG.js +55 -0
- package/dist/core-T5Q4DSH2.js +32 -0
- package/dist/core-TJX3I7KH.js +37 -0
- package/dist/core-ULUA5ZB2.js +55 -0
- package/dist/core-WLVU2HWX.js +46 -0
- package/dist/core-WQPHNVNY.js +51 -0
- package/dist/core-XXIOJY2X.js +52 -0
- package/dist/core-ZH7XTJTD.js +39 -0
- package/dist/core-ZHE7N4NS.js +50 -0
- package/dist/core-ZJYLJWZQ.js +38 -0
- package/dist/dataTable-IL7HVDHL.js +58 -0
- package/dist/engine-MYLZI5VH.js +961 -0
- package/dist/fixtures.d.ts +1 -0
- package/dist/fixtures.js +40 -0
- package/dist/fontTables-ZYBUCJ5N.js +18 -0
- package/dist/fonts.d.ts +1 -0
- package/dist/fonts.js +19 -0
- package/dist/geo/dach.d.ts +1 -0
- package/dist/geo/dach.js +14 -0
- package/dist/geo/de-states.d.ts +1 -0
- package/dist/geo/de-states.js +14 -0
- package/dist/geo/eu27.d.ts +1 -0
- package/dist/geo/eu27.js +14 -0
- package/dist/geo/europe.d.ts +1 -0
- package/dist/geo/europe.js +14 -0
- package/dist/geo/index.d.ts +1 -0
- package/dist/geo/index.js +41 -0
- package/dist/geo/us-states.d.ts +1 -0
- package/dist/geo/us-states.js +14 -0
- package/dist/geo/world.d.ts +1 -0
- package/dist/geo/world.js +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +363 -0
- package/dist/main-ISJ53IS5.js +568 -0
- package/dist/mcp/server.js +1023 -0
- package/dist/module-SVEW5ZUE.js +137233 -0
- package/dist/react/bar.d.ts +1 -0
- package/dist/react/bar.js +80 -0
- package/dist/react/bartable.d.ts +1 -0
- package/dist/react/bartable.js +70 -0
- package/dist/react/box.d.ts +1 -0
- package/dist/react/box.js +64 -0
- package/dist/react/bullet.d.ts +1 -0
- package/dist/react/bullet.js +71 -0
- package/dist/react/butterfly.d.ts +1 -0
- package/dist/react/butterfly.js +65 -0
- package/dist/react/choropleth.d.ts +1 -0
- package/dist/react/choropleth.js +67 -0
- package/dist/react/cohort.d.ts +1 -0
- package/dist/react/cohort.js +69 -0
- package/dist/react/column.d.ts +1 -0
- package/dist/react/column.js +85 -0
- package/dist/react/combo.d.ts +1 -0
- package/dist/react/combo.js +85 -0
- package/dist/react/creative.d.ts +1 -0
- package/dist/react/creative.js +61 -0
- package/dist/react/diagram.d.ts +1 -0
- package/dist/react/diagram.js +60 -0
- package/dist/react/dimswitch.d.ts +1 -0
- package/dist/react/dimswitch.js +71 -0
- package/dist/react/dot.d.ts +1 -0
- package/dist/react/dot.js +69 -0
- package/dist/react/export.d.ts +1 -0
- package/dist/react/export.js +657 -0
- package/dist/react/funnel.d.ts +1 -0
- package/dist/react/funnel.js +62 -0
- package/dist/react/gantt.d.ts +1 -0
- package/dist/react/gantt.js +62 -0
- package/dist/react/grid.d.ts +1 -0
- package/dist/react/grid.js +66 -0
- package/dist/react/heatmap.d.ts +1 -0
- package/dist/react/heatmap.js +67 -0
- package/dist/react/histogram.d.ts +1 -0
- package/dist/react/histogram.js +85 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +503 -0
- package/dist/react/kpi.d.ts +1 -0
- package/dist/react/kpi.js +67 -0
- package/dist/react/likert.d.ts +1 -0
- package/dist/react/likert.js +82 -0
- package/dist/react/line.d.ts +1 -0
- package/dist/react/line.js +80 -0
- package/dist/react/mekko.d.ts +1 -0
- package/dist/react/mekko.js +70 -0
- package/dist/react/pareto.d.ts +1 -0
- package/dist/react/pareto.js +89 -0
- package/dist/react/pie.d.ts +1 -0
- package/dist/react/pie.js +63 -0
- package/dist/react/prepare.d.ts +1 -0
- package/dist/react/prepare.js +277 -0
- package/dist/react/pvm.d.ts +1 -0
- package/dist/react/pvm.js +67 -0
- package/dist/react/pyramid.d.ts +1 -0
- package/dist/react/pyramid.js +66 -0
- package/dist/react/sankey.d.ts +1 -0
- package/dist/react/sankey.js +59 -0
- package/dist/react/scatter.d.ts +1 -0
- package/dist/react/scatter.js +62 -0
- package/dist/react/slope.d.ts +1 -0
- package/dist/react/slope.js +63 -0
- package/dist/react/sparkline.d.ts +1 -0
- package/dist/react/sparkline.js +59 -0
- package/dist/react/spec.d.ts +1 -0
- package/dist/react/spec.js +370 -0
- package/dist/react/status.d.ts +1 -0
- package/dist/react/status.js +64 -0
- package/dist/react/story.d.ts +1 -0
- package/dist/react/story.js +140 -0
- package/dist/react/table.d.ts +1 -0
- package/dist/react/table.js +68 -0
- package/dist/react/theme.d.ts +1 -0
- package/dist/react/theme.js +53 -0
- package/dist/react/tilemap.d.ts +1 -0
- package/dist/react/tilemap.js +66 -0
- package/dist/react/treemap.d.ts +1 -0
- package/dist/react/treemap.js +61 -0
- package/dist/react/variance.d.ts +1 -0
- package/dist/react/variance.js +64 -0
- package/dist/react/waffle.d.ts +1 -0
- package/dist/react/waffle.js +62 -0
- package/dist/react/waterfall.d.ts +1 -0
- package/dist/react/waterfall.js +67 -0
- package/dist/resvg-ZOVDIZTV.js +23 -0
- package/dist/rows.d.ts +1 -0
- package/dist/rows.js +23 -0
- package/dist/rowsModule-3Y4I3M3E.js +27 -0
- package/dist/schema-2BMZOHXI.js +22 -0
- package/dist/schema-2GUBWOBC.js +26 -0
- package/dist/schema-34ZELWRQ.js +25 -0
- package/dist/schema-3BHL2B76.js +22 -0
- package/dist/schema-4735XAZX.js +29 -0
- package/dist/schema-5YTNQ6JY.js +22 -0
- package/dist/schema-7J3NAIN2.js +27 -0
- package/dist/schema-AOJJ7JZB.js +22 -0
- package/dist/schema-CVMV4LRA.js +22 -0
- package/dist/schema-D3RCMN3T.js +22 -0
- package/dist/schema-E2ISJ65D.js +23 -0
- package/dist/schema-E6YOSOWB.js +28 -0
- package/dist/schema-EQQB43AY.js +22 -0
- package/dist/schema-EVLLL5UF.js +22 -0
- package/dist/schema-EYQ5IBLF.js +23 -0
- package/dist/schema-EYZVD73N.js +22 -0
- package/dist/schema-G4KFMQBL.js +22 -0
- package/dist/schema-GH7IKSOU.js +23 -0
- package/dist/schema-IF5N3J56.js +42 -0
- package/dist/schema-IG7JIR4H.js +23 -0
- package/dist/schema-JJYJOQTT.js +23 -0
- package/dist/schema-KFC4WYH4.js +32 -0
- package/dist/schema-L7263JMT.js +25 -0
- package/dist/schema-MEAFRXVH.js +53 -0
- package/dist/schema-P63S63GE.js +23 -0
- package/dist/schema-P7LJFJAJ.js +22 -0
- package/dist/schema-PA2MXYY4.js +23 -0
- package/dist/schema-PDZ6256H.js +23 -0
- package/dist/schema-PNC3Z7AH.js +25 -0
- package/dist/schema-QEVSIMGO.js +22 -0
- package/dist/schema-QJJPRRE7.js +22 -0
- package/dist/schema-S3EQKVOT.js +23 -0
- package/dist/schema-STGL44TL.js +22 -0
- package/dist/schema-T4NE2EAO.js +22 -0
- package/dist/schema-TQYTESG3.js +22 -0
- package/dist/schema-W376PAJG.js +22 -0
- package/dist/schema-XYYDUUHS.js +26 -0
- package/dist/specValidation-NVBIZMEE.js +48 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +24 -0
- package/dist/themeShapeRules-5C2463YH.js +11 -0
- package/dist/types/core/a11y/accessibility.d.ts +43 -0
- package/dist/types/core/a11y/recordsShared.d.ts +44 -0
- package/dist/types/core/a11y/structuralRecords.d.ts +6 -0
- package/dist/types/core/a11y/types.d.ts +116 -0
- package/dist/types/core/annotate.d.ts +300 -0
- package/dist/types/core/annotateArms.d.ts +37 -0
- package/dist/types/core/annotateFields.d.ts +30 -0
- package/dist/types/core/annotateGapBracket.d.ts +66 -0
- package/dist/types/core/annotateLinks.d.ts +47 -0
- package/dist/types/core/annotateTargets.d.ts +90 -0
- package/dist/types/core/axis.d.ts +179 -0
- package/dist/types/core/bandSelect.d.ts +10 -0
- package/dist/types/core/bands.d.ts +14 -0
- package/dist/types/core/calendarLabels.d.ts +101 -0
- package/dist/types/core/charts/band/stacks.d.ts +155 -0
- package/dist/types/core/charts/bar/fixtures.d.ts +9 -0
- package/dist/types/core/charts/bar/layout.d.ts +95 -0
- package/dist/types/core/charts/bartable/fixtures.d.ts +4 -0
- package/dist/types/core/charts/bartable/types.d.ts +192 -0
- package/dist/types/core/charts/box/fixtures.d.ts +12 -0
- package/dist/types/core/charts/box/types.d.ts +110 -0
- package/dist/types/core/charts/bullet/fixtures.d.ts +11 -0
- package/dist/types/core/charts/butterfly/fixtures.d.ts +9 -0
- package/dist/types/core/charts/choropleth/fixtures.d.ts +3 -0
- package/dist/types/core/charts/choropleth/overlayTypes.d.ts +68 -0
- package/dist/types/core/charts/choropleth/types.d.ts +117 -0
- package/dist/types/core/charts/cohort/fixtures.d.ts +12 -0
- package/dist/types/core/charts/cohort/types.d.ts +165 -0
- package/dist/types/core/charts/column/anomaly.d.ts +204 -0
- package/dist/types/core/charts/column/fixtures.d.ts +12 -0
- package/dist/types/core/charts/column/layout.d.ts +116 -0
- package/dist/types/core/charts/column/model.d.ts +295 -0
- package/dist/types/core/charts/column/types.d.ts +56 -0
- package/dist/types/core/charts/combo/endpoints.d.ts +165 -0
- package/dist/types/core/charts/combo/fixtures.d.ts +12 -0
- package/dist/types/core/charts/combo/layout.d.ts +48 -0
- package/dist/types/core/charts/creative/fixtures.d.ts +4 -0
- package/dist/types/core/charts/creative/types.d.ts +73 -0
- package/dist/types/core/charts/diagram/fixtures.d.ts +3 -0
- package/dist/types/core/charts/dimswitch/compile.d.ts +20 -0
- package/dist/types/core/charts/dimswitch/fixtures.d.ts +3 -0
- package/dist/types/core/charts/dimswitch/types.d.ts +152 -0
- package/dist/types/core/charts/dot/fixtures.d.ts +11 -0
- package/dist/types/core/charts/funnel/fixtures.d.ts +11 -0
- package/dist/types/core/charts/gantt/fixtures.d.ts +9 -0
- package/dist/types/core/charts/gantt/layout.d.ts +56 -0
- package/dist/types/core/charts/grid/fixtures.d.ts +3 -0
- package/dist/types/core/charts/grid/metricStack.d.ts +108 -0
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +74 -0
- package/dist/types/core/charts/grid/normalize.d.ts +99 -0
- package/dist/types/core/charts/grid/schema.d.ts +168 -0
- package/dist/types/core/charts/heatmap/fixtures.d.ts +11 -0
- package/dist/types/core/charts/histogram/fixtures.d.ts +15 -0
- package/dist/types/core/charts/histogram/types.d.ts +98 -0
- package/dist/types/core/charts/kpi/fixtures.d.ts +9 -0
- package/dist/types/core/charts/likert/fixtures.d.ts +11 -0
- package/dist/types/core/charts/likert/layout.d.ts +111 -0
- package/dist/types/core/charts/line/fixtures.d.ts +16 -0
- package/dist/types/core/charts/line/types.d.ts +6 -0
- package/dist/types/core/charts/mekko/fixtures.d.ts +13 -0
- package/dist/types/core/charts/pareto/fixtures.d.ts +5 -0
- package/dist/types/core/charts/pareto/layout.d.ts +68 -0
- package/dist/types/core/charts/pie/fixtures.d.ts +14 -0
- package/dist/types/core/charts/pvm/fixtures.d.ts +13 -0
- package/dist/types/core/charts/pvm/types.d.ts +118 -0
- package/dist/types/core/charts/pyramid/fixtures.d.ts +4 -0
- package/dist/types/core/charts/pyramid/types.d.ts +92 -0
- package/dist/types/core/charts/sankey/fixtures.d.ts +4 -0
- package/dist/types/core/charts/sankey/types.d.ts +116 -0
- package/dist/types/core/charts/scatter/fixtures.d.ts +12 -0
- package/dist/types/core/charts/scatter/types.d.ts +58 -0
- package/dist/types/core/charts/slope/fixtures.d.ts +13 -0
- package/dist/types/core/charts/sparkline/fixtures.d.ts +9 -0
- package/dist/types/core/charts/status/fixtures.d.ts +8 -0
- package/dist/types/core/charts/status/layout.d.ts +71 -0
- package/dist/types/core/charts/table/fitFormats.d.ts +67 -0
- package/dist/types/core/charts/table/fixtures.d.ts +7 -0
- package/dist/types/core/charts/table/resolve.d.ts +72 -0
- package/dist/types/core/charts/table/view.d.ts +156 -0
- package/dist/types/core/charts/tilemap/fixtures.d.ts +3 -0
- package/dist/types/core/charts/tilemap/types.d.ts +94 -0
- package/dist/types/core/charts/treemap/fixtures.d.ts +4 -0
- package/dist/types/core/charts/treemap/types.d.ts +78 -0
- package/dist/types/core/charts/variance/fixtures.d.ts +12 -0
- package/dist/types/core/charts/waffle/fixtures.d.ts +5 -0
- package/dist/types/core/charts/waffle/types.d.ts +117 -0
- package/dist/types/core/charts/waterfall/fixtures.d.ts +9 -0
- package/dist/types/core/claims/browser.d.ts +49 -0
- package/dist/types/core/claims/manifest.d.ts +22 -0
- package/dist/types/core/dateFormat.d.ts +39 -0
- package/dist/types/core/deferred.d.ts +121 -0
- package/dist/types/core/diagnostics/describe.d.ts +149 -0
- package/dist/types/core/diagnostics/jsonPatch.d.ts +36 -0
- package/dist/types/core/doc/bareChart.d.ts +2 -0
- package/dist/types/core/doc/diagnostics.d.ts +124 -0
- package/dist/types/core/doc/docExpand.d.ts +39 -0
- package/dist/types/core/doc/document.d.ts +43 -0
- package/dist/types/core/doc/ownedDocumentCopy.d.ts +5 -0
- package/dist/types/core/doc/specError.d.ts +6 -0
- package/dist/types/core/emptyData.d.ts +27 -0
- package/dist/types/core/eventLane.d.ts +208 -0
- package/dist/types/core/fontMetrics/index.d.ts +47 -0
- package/dist/types/core/fontMetrics/injected.d.ts +40 -0
- package/dist/types/core/fontMetrics/tableDocument.d.ts +73 -0
- package/dist/types/core/fontMetrics/tables.generated.d.ts +17 -0
- package/dist/types/core/footer.d.ts +59 -0
- package/dist/types/core/format.d.ts +149 -0
- package/dist/types/core/formatPrecision.d.ts +136 -0
- package/dist/types/core/formatSpec.d.ts +302 -0
- package/dist/types/core/frame.d.ts +583 -0
- package/dist/types/core/geo/packs/all.d.ts +7 -0
- package/dist/types/core/geo/packs/dach.d.ts +16 -0
- package/dist/types/core/geo/packs/de-states.d.ts +16 -0
- package/dist/types/core/geo/packs/eu27.d.ts +16 -0
- package/dist/types/core/geo/packs/europe.d.ts +16 -0
- package/dist/types/core/geo/packs/index.d.ts +22 -0
- package/dist/types/core/geo/packs/registry.d.ts +37 -0
- package/dist/types/core/geo/packs/us-states.d.ts +16 -0
- package/dist/types/core/geo/packs/world.d.ts +16 -0
- package/dist/types/core/geo/tiles/eu27.generated.d.ts +412 -0
- package/dist/types/core/geo/tiles/europe.generated.d.ts +842 -0
- package/dist/types/core/geo/tiles/index.d.ts +8 -0
- package/dist/types/core/geo/tiles/types.d.ts +36 -0
- package/dist/types/core/geo/tiles/us-states.generated.d.ts +952 -0
- package/dist/types/core/geo/tiles/world.generated.d.ts +968 -0
- package/dist/types/core/geo/types.d.ts +146 -0
- package/dist/types/core/geometry.d.ts +102 -0
- package/dist/types/core/grid/sharedScale.d.ts +82 -0
- package/dist/types/core/icons.d.ts +227 -0
- package/dist/types/core/inputError.d.ts +14 -0
- package/dist/types/core/isoDate.d.ts +2 -0
- package/dist/types/core/isoTime.d.ts +7 -0
- package/dist/types/core/label/categoryRow.d.ts +332 -0
- package/dist/types/core/label/occupied.d.ts +41 -0
- package/dist/types/core/label/ownership.d.ts +83 -0
- package/dist/types/core/label/solver.d.ts +380 -0
- package/dist/types/core/label/tickRow.d.ts +78 -0
- package/dist/types/core/live/types.d.ts +50 -0
- package/dist/types/core/normalize/shared.d.ts +56 -0
- package/dist/types/core/notes.d.ts +174 -0
- package/dist/types/core/othersShade.d.ts +9 -0
- package/dist/types/core/periodYears.d.ts +9 -0
- package/dist/types/core/polyline.d.ts +11 -0
- package/dist/types/core/rangeRules.d.ts +19 -0
- package/dist/types/core/ratioTier.d.ts +120 -0
- package/dist/types/core/readerStrings.d.ts +13 -0
- package/dist/types/core/reading.d.ts +120 -0
- package/dist/types/core/registry.d.ts +178 -0
- package/dist/types/core/repaintGeometry.d.ts +19 -0
- package/dist/types/core/request.d.ts +124 -0
- package/dist/types/core/rows.d.ts +45 -0
- package/dist/types/core/scale.d.ts +106 -0
- package/dist/types/core/schema/capability.d.ts +229 -0
- package/dist/types/core/schema/namedColumns.d.ts +45 -0
- package/dist/types/core/schema/reference.d.ts +31 -0
- package/dist/types/core/schema/refusals.d.ts +45 -0
- package/dist/types/core/schema/unknownKeys.d.ts +45 -0
- package/dist/types/core/seriesIdentity.d.ts +120 -0
- package/dist/types/core/shareRounding.d.ts +49 -0
- package/dist/types/core/sizing.d.ts +330 -0
- package/dist/types/core/staticFooter.d.ts +6 -0
- package/dist/types/core/story.d.ts +41 -0
- package/dist/types/core/structureCounts.d.ts +10 -0
- package/dist/types/core/svg/renderSvg.d.ts +51 -0
- package/dist/types/core/target.d.ts +89 -0
- package/dist/types/core/text.d.ts +113 -0
- package/dist/types/core/theme.d.ts +478 -0
- package/dist/types/core/themeFields.d.ts +11 -0
- package/dist/types/core/themeRules.d.ts +111 -0
- package/dist/types/core/themeShape.d.ts +87 -0
- package/dist/types/core/themeValidate.d.ts +15 -0
- package/dist/types/core/timeAxis.d.ts +106 -0
- package/dist/types/core/types/annotations.d.ts +223 -0
- package/dist/types/core/types/cell.d.ts +82 -0
- package/dist/types/core/types/data.d.ts +309 -0
- package/dist/types/core/types/diagram.d.ts +234 -0
- package/dist/types/core/types/index.d.ts +8 -0
- package/dist/types/core/types/options.d.ts +1583 -0
- package/dist/types/core/types/scene.d.ts +990 -0
- package/dist/types/core/types/sizing.d.ts +51 -0
- package/dist/types/core/types/table.d.ts +873 -0
- package/dist/types/core/types/theme.d.ts +806 -0
- package/dist/types/core/zoom.d.ts +106 -0
- package/dist/types/fixtures/index.d.ts +40 -0
- package/dist/types/fixtures/registry.d.ts +15 -0
- package/dist/types/fonts.d.ts +10 -0
- package/dist/types/index.d.ts +70 -0
- package/dist/types/react/BoardplotTheme.d.ts +9 -0
- package/dist/types/react/DimSwitchChart.d.ts +36 -0
- package/dist/types/react/ScaleGroup.d.ts +31 -0
- package/dist/types/react/SceneRenderer.d.ts +23 -0
- package/dist/types/react/SizePlaceholder.d.ts +51 -0
- package/dist/types/react/StoryFrame.d.ts +42 -0
- package/dist/types/react/TableChart.d.ts +220 -0
- package/dist/types/react/a11ySurface.d.ts +20 -0
- package/dist/types/react/barrelCharts.d.ts +1023 -0
- package/dist/types/react/charts/bar.d.ts +28 -0
- package/dist/types/react/charts/bartable.d.ts +27 -0
- package/dist/types/react/charts/box.d.ts +27 -0
- package/dist/types/react/charts/bullet.d.ts +28 -0
- package/dist/types/react/charts/butterfly.d.ts +28 -0
- package/dist/types/react/charts/choropleth.d.ts +27 -0
- package/dist/types/react/charts/cohort.d.ts +52 -0
- package/dist/types/react/charts/column.d.ts +27 -0
- package/dist/types/react/charts/combo.d.ts +7 -0
- package/dist/types/react/charts/creative.d.ts +27 -0
- package/dist/types/react/charts/diagram.d.ts +162 -0
- package/dist/types/react/charts/dimswitch.d.ts +6 -0
- package/dist/types/react/charts/dot.d.ts +28 -0
- package/dist/types/react/charts/funnel.d.ts +28 -0
- package/dist/types/react/charts/gantt.d.ts +28 -0
- package/dist/types/react/charts/grid.d.ts +29 -0
- package/dist/types/react/charts/heatmap.d.ts +28 -0
- package/dist/types/react/charts/histogram.d.ts +27 -0
- package/dist/types/react/charts/kpi.d.ts +28 -0
- package/dist/types/react/charts/likert.d.ts +27 -0
- package/dist/types/react/charts/line.d.ts +28 -0
- package/dist/types/react/charts/mekko.d.ts +28 -0
- package/dist/types/react/charts/pareto.d.ts +28 -0
- package/dist/types/react/charts/pie.d.ts +28 -0
- package/dist/types/react/charts/pvm.d.ts +27 -0
- package/dist/types/react/charts/pyramid.d.ts +27 -0
- package/dist/types/react/charts/sankey.d.ts +27 -0
- package/dist/types/react/charts/scatter.d.ts +28 -0
- package/dist/types/react/charts/slope.d.ts +28 -0
- package/dist/types/react/charts/sparkline.d.ts +28 -0
- package/dist/types/react/charts/status.d.ts +27 -0
- package/dist/types/react/charts/table.d.ts +6 -0
- package/dist/types/react/charts/tilemap.d.ts +27 -0
- package/dist/types/react/charts/treemap.d.ts +27 -0
- package/dist/types/react/charts/variance.d.ts +28 -0
- package/dist/types/react/charts/waffle.d.ts +28 -0
- package/dist/types/react/charts/waterfall.d.ts +28 -0
- package/dist/types/react/createChartComponent.d.ts +135 -0
- package/dist/types/react/export/clipboard.d.ts +8 -0
- package/dist/types/react/export/csv.d.ts +2 -0
- package/dist/types/react/export/frame.d.ts +35 -0
- package/dist/types/react/export/index.d.ts +7 -0
- package/dist/types/react/export/png.d.ts +14 -0
- package/dist/types/react/export/svg.d.ts +5 -0
- package/dist/types/react/export/types.d.ts +69 -0
- package/dist/types/react/export/useExport.d.ts +17 -0
- package/dist/types/react/exportLink.d.ts +49 -0
- package/dist/types/react/footerFrame.d.ts +25 -0
- package/dist/types/react/hover/dataTable.d.ts +13 -0
- package/dist/types/react/hover/engine.d.ts +210 -0
- package/dist/types/react/hover/keyboard.d.ts +44 -0
- package/dist/types/react/hover/labelCard.d.ts +170 -0
- package/dist/types/react/hover/placement.d.ts +49 -0
- package/dist/types/react/index.d.ts +16 -0
- package/dist/types/react/parseChartSpec.d.ts +16 -0
- package/dist/types/react/prepare.d.ts +32 -0
- package/dist/types/react/prepared.d.ts +53 -0
- package/dist/types/react/preparedTable.d.ts +15 -0
- package/dist/types/react/rowsInput.d.ts +55 -0
- package/dist/types/react/rowsModule.d.ts +18 -0
- package/dist/types/react/rowsStore.d.ts +50 -0
- package/dist/types/react/scale-group.d.ts +2 -0
- package/dist/types/react/scaleGroupContext.d.ts +22 -0
- package/dist/types/react/scenePaint.d.ts +10 -0
- package/dist/types/react/scrollState.d.ts +26 -0
- package/dist/types/react/spec.d.ts +65 -0
- package/dist/types/react/specValidation.d.ts +45 -0
- package/dist/types/react/story.d.ts +15 -0
- package/dist/types/react/theme.d.ts +9 -0
- package/dist/types/react/themeContext.d.ts +44 -0
- package/dist/types/react/useChartLayout.d.ts +22 -0
- package/dist/types/react/useContainerSize.d.ts +57 -0
- package/dist/types/react/useHover.d.ts +100 -0
- package/dist/types/react/useZoom.d.ts +50 -0
- package/dist/types/rows.d.ts +58 -0
- package/dist/types/tableLooks.d.ts +6 -0
- package/dist/types/theme.d.ts +3 -0
- package/dist/types/validate.d.ts +3 -0
- package/dist/validate.d.ts +1 -0
- package/dist/validate.js +222 -0
- package/docs/FONTS.md +68 -0
- package/docs/TELEMETRY.md +94 -0
- package/docs/manual.md +838 -0
- package/docs/reference/bar.md +222 -0
- package/docs/reference/bartable.md +143 -0
- package/docs/reference/box.md +93 -0
- package/docs/reference/bullet.md +118 -0
- package/docs/reference/butterfly.md +117 -0
- package/docs/reference/choropleth.md +148 -0
- package/docs/reference/cohort.md +149 -0
- package/docs/reference/column.md +275 -0
- package/docs/reference/combo.md +219 -0
- package/docs/reference/creative.md +147 -0
- package/docs/reference/diagram.md +191 -0
- package/docs/reference/dimswitch.md +1395 -0
- package/docs/reference/dot.md +117 -0
- package/docs/reference/fixtures.md +1088 -0
- package/docs/reference/funnel.md +121 -0
- package/docs/reference/gantt.md +132 -0
- package/docs/reference/grid.md +302 -0
- package/docs/reference/heatmap.md +127 -0
- package/docs/reference/histogram.md +77 -0
- package/docs/reference/kpi.md +115 -0
- package/docs/reference/likert.md +113 -0
- package/docs/reference/line.md +436 -0
- package/docs/reference/mekko.md +114 -0
- package/docs/reference/options.md +313 -0
- package/docs/reference/pareto.md +102 -0
- package/docs/reference/pie.md +114 -0
- package/docs/reference/pvm.md +114 -0
- package/docs/reference/pyramid.md +99 -0
- package/docs/reference/react.md +703 -0
- package/docs/reference/reading.md +28 -0
- package/docs/reference/sankey.md +110 -0
- package/docs/reference/scatter.md +211 -0
- package/docs/reference/slope.md +126 -0
- package/docs/reference/sparkline.md +74 -0
- package/docs/reference/status.md +107 -0
- package/docs/reference/table.md +673 -0
- package/docs/reference/theme.md +361 -0
- package/docs/reference/tilemap.md +121 -0
- package/docs/reference/treemap.md +86 -0
- package/docs/reference/variance.md +126 -0
- package/docs/reference/waffle.md +106 -0
- package/docs/reference/waterfall.md +164 -0
- package/llms.txt +57 -0
- package/package.json +437 -4
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table contract v1.
|
|
3
|
+
* ResolvedTable is the semantic, pixel-free IR: SVG layout and the HTML
|
|
4
|
+
* renderer consume it.
|
|
5
|
+
* The SVG scene is an output, never the shared model.
|
|
6
|
+
*/
|
|
7
|
+
import type { ValueBand } from '../bandSelect.js';
|
|
8
|
+
import type { Rect } from '../geometry.js';
|
|
9
|
+
import type { TextMeasurer } from '../text.js';
|
|
10
|
+
import type { Id, Scenario, Direction } from './cell.js';
|
|
11
|
+
import type { BaseOptionsFor } from './options.js';
|
|
12
|
+
import type { Theme } from './theme.js';
|
|
13
|
+
import type { Paint } from './scene.js';
|
|
14
|
+
/** `stickyLabels`: the 0.27 forms (`true`, a column count) and the object form that also pins the head to the page and the active section label. */
|
|
15
|
+
export type StickyLabels = boolean | number | {
|
|
16
|
+
head?: 'table' | 'page' | false;
|
|
17
|
+
columns?: number;
|
|
18
|
+
top?: number;
|
|
19
|
+
sections?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type CellTone = 'good' | 'bad' | 'warn' | 'neutral';
|
|
22
|
+
export type CellState = 'value' | 'missing' | 'na' | 'nm' | 'suppressed' | 'open';
|
|
23
|
+
/** Cell states beyond numbers carry distinct audit meanings. */
|
|
24
|
+
export interface TableCellObject {
|
|
25
|
+
/** Override the missing glyph for this cell, as on a row. */
|
|
26
|
+
missing?: 'blank' | 'dash';
|
|
27
|
+
v?: number | string | null;
|
|
28
|
+
note?: string;
|
|
29
|
+
tone?: CellTone;
|
|
30
|
+
/**
|
|
31
|
+
* Value bands for a numeric cell: ascending upper bounds in the cell's own
|
|
32
|
+
* units (before display formatting), each with a tone and a label. The cell
|
|
33
|
+
* takes the tone of the first band its value is at or under; a value under
|
|
34
|
+
* the first bound takes the first band, and one over the last bound takes
|
|
35
|
+
* the last. An explicit `tone` beats the bands, and the bands beat the
|
|
36
|
+
* automatic sign judgement of a change. A missing, n/a, n.m., suppressed or
|
|
37
|
+
* open cell is not judged, and a text cell ignores the bands.
|
|
38
|
+
*/
|
|
39
|
+
bands?: ValueBand[];
|
|
40
|
+
href?: string;
|
|
41
|
+
/** 'open': a period still to come, drawn empty on the band ground. */
|
|
42
|
+
state?: 'na' | 'nm' | 'suppressed' | 'open';
|
|
43
|
+
/**
|
|
44
|
+
* false: the cell stays out of its column's heat lane, unshaded
|
|
45
|
+
* and printed in the muted ink, and out of the lane's range. The M0
|
|
46
|
+
* diagonal of a cohort grid on the calendar axis is the case.
|
|
47
|
+
*/
|
|
48
|
+
heat?: false;
|
|
49
|
+
/**
|
|
50
|
+
* A value cell's own format-by-example. It beats the row's and the
|
|
51
|
+
* column's format: a percent YoY column prints a share KPI's change in
|
|
52
|
+
* points ('+1.2pp').
|
|
53
|
+
*/
|
|
54
|
+
format?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Presentation hints. `strong` is also an authored table field. `bar` and
|
|
57
|
+
* `muted` are compile hints set by dimswitch. `strong`: the judgment cleared its
|
|
58
|
+
* strong threshold, and a theme with `table.tones: 'fill'` paints a deeper
|
|
59
|
+
* ground. `bar`: the share of the row's scale the figure fills, 0 to 1,
|
|
60
|
+
* drawn as a grey bar from the cell's left edge. `muted`: the figure prints
|
|
61
|
+
* in the muted ink at the body weight, with no tone (an unjudged change).
|
|
62
|
+
*/
|
|
63
|
+
strong?: true;
|
|
64
|
+
bar?: number;
|
|
65
|
+
muted?: true;
|
|
66
|
+
}
|
|
67
|
+
export type TableCell = number | string | null | TableCellObject;
|
|
68
|
+
/**
|
|
69
|
+
* Calculation address. A column id still means that column on the current row.
|
|
70
|
+
* `{ row }` is the column being evaluated on another row. `{ row, previous: true }`
|
|
71
|
+
* is the preceding columnGroup member of that row (first member is n/a).
|
|
72
|
+
*/
|
|
73
|
+
export type CalcCellRef = Id | {
|
|
74
|
+
row: Id;
|
|
75
|
+
col?: Id;
|
|
76
|
+
previous?: true;
|
|
77
|
+
};
|
|
78
|
+
/** Typed calc AST — no strings, no eval. */
|
|
79
|
+
export type Calc = {
|
|
80
|
+
ref: CalcCellRef;
|
|
81
|
+
} | {
|
|
82
|
+
lit: number;
|
|
83
|
+
} | {
|
|
84
|
+
op: 'add' | 'sub' | 'mul' | 'div';
|
|
85
|
+
a: Calc;
|
|
86
|
+
b: Calc;
|
|
87
|
+
} | {
|
|
88
|
+
op: 'abs';
|
|
89
|
+
of: Calc;
|
|
90
|
+
} | {
|
|
91
|
+
op: 'delta';
|
|
92
|
+
a: CalcCellRef;
|
|
93
|
+
b: CalcCellRef;
|
|
94
|
+
} | {
|
|
95
|
+
op: 'percentDelta';
|
|
96
|
+
a: CalcCellRef;
|
|
97
|
+
b: CalcCellRef;
|
|
98
|
+
} | {
|
|
99
|
+
op: 'share';
|
|
100
|
+
of: CalcCellRef;
|
|
101
|
+
};
|
|
102
|
+
export type ColumnKind = 'rowLabel' | 'value' | 'computed' | 'text' | 'status' | 'date' | 'encoding';
|
|
103
|
+
interface TableColumnBase {
|
|
104
|
+
id: Id;
|
|
105
|
+
kind: ColumnKind;
|
|
106
|
+
label?: string;
|
|
107
|
+
/**
|
|
108
|
+
* A second head line under the column label, at the ladder's micro step in
|
|
109
|
+
* the muted ink: the weekday under a date ("Thu"), the ISO week under a
|
|
110
|
+
* week start ("W41"). Where one column in a head row carries one, every
|
|
111
|
+
* primary label still shares the same baseline.
|
|
112
|
+
*/
|
|
113
|
+
subLabel?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Width in px. React keeps it and scrolls. SVG narrows authored tracks only
|
|
116
|
+
* when the fixed frame needs it, with `table-overflow` and a wider-size fix.
|
|
117
|
+
* Value and computed tracks widen for figures, and a row-label track for its
|
|
118
|
+
* labels up to 180 px (`table-column-widened`).
|
|
119
|
+
* Other content may cut (`table-column-clipped`); remove width for automatic sizing.
|
|
120
|
+
*/
|
|
121
|
+
width?: number;
|
|
122
|
+
align?: 'left' | 'right' | 'center';
|
|
123
|
+
/**
|
|
124
|
+
* Print this column's cell notes as a SECOND LINE under the figure, at the
|
|
125
|
+
* ladder's inline step in the muted ink. A note stays inline after the
|
|
126
|
+
* figure by default, where a 90 px block track cuts it off: the block
|
|
127
|
+
* column of a KPI board says "sum" under its year-to-date figure and
|
|
128
|
+
* "vs FY25" under its year-on-year one. The note takes the first line slot
|
|
129
|
+
* the cell's own change lines leave empty; where they fill every slot, or
|
|
130
|
+
* where the row prints no line at all, the row grows by one inline line.
|
|
131
|
+
*/
|
|
132
|
+
noteLine?: boolean;
|
|
133
|
+
/** false: `options.fitFormats` leaves this column's format as authored, even where a figure is cut at its width. */
|
|
134
|
+
fitFormat?: false;
|
|
135
|
+
/** Typographic weight of the whole column: 'strong' sets the emphasis weight (700 by default), 'muted' paints it in inkMuted. */
|
|
136
|
+
emphasis?: ColumnEmphasis;
|
|
137
|
+
/**
|
|
138
|
+
* Carry the band ground down this column. A run of neighbouring banded
|
|
139
|
+
* columns reads as one block and the first of the run takes the hairline,
|
|
140
|
+
* so a block can be a part of a column group instead of a group of its own:
|
|
141
|
+
* the FY-to-date pair inside a twelve-month group is a band, and
|
|
142
|
+
* making it a group would split the toggle that covers the fiscal year.
|
|
143
|
+
*/
|
|
144
|
+
band?: boolean;
|
|
145
|
+
}
|
|
146
|
+
export type ColumnEmphasis = 'strong' | 'muted';
|
|
147
|
+
interface RowLabelColumn extends TableColumnBase {
|
|
148
|
+
kind: 'rowLabel';
|
|
149
|
+
/** Cap the measured label track, including indent and affix. Explicit width wins. */
|
|
150
|
+
maxWidth?: number;
|
|
151
|
+
/** Caps how much the label text adds to the column width. The indent, the affix and the collapsed hint come on top. Not a hard cap: a column made wider by other content lets labels use the room. Ignored when width is set; maxWidth still caps the whole track. */
|
|
152
|
+
maxTextWidth?: number;
|
|
153
|
+
}
|
|
154
|
+
interface ValueColumn extends TableColumnBase {
|
|
155
|
+
kind: 'value';
|
|
156
|
+
format?: string;
|
|
157
|
+
scenario?: Scenario;
|
|
158
|
+
polarity?: Direction;
|
|
159
|
+
/** Display de-emphasis threshold — value stays visible and recorded. */
|
|
160
|
+
materiality?: {
|
|
161
|
+
pct?: number;
|
|
162
|
+
abs?: number;
|
|
163
|
+
};
|
|
164
|
+
aggregate?: 'sum' | 'none' | 'source';
|
|
165
|
+
nulls?: 'propagate' | 'skip';
|
|
166
|
+
/** 'points': the percent values are already points (1.2 prints 1.2%), so percent-scale-suspect stays quiet. */
|
|
167
|
+
percentScale?: 'points';
|
|
168
|
+
}
|
|
169
|
+
interface ComputedColumn extends TableColumnBase {
|
|
170
|
+
kind: 'computed';
|
|
171
|
+
calc: Calc;
|
|
172
|
+
format?: string;
|
|
173
|
+
polarity?: Direction;
|
|
174
|
+
/** Display de-emphasis threshold — value stays visible and recorded. */
|
|
175
|
+
materiality?: {
|
|
176
|
+
pct?: number;
|
|
177
|
+
abs?: number;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
interface TextColumn extends TableColumnBase {
|
|
181
|
+
kind: 'text';
|
|
182
|
+
/** Prose may fall to two lines so the note does not set the table's width floor. */
|
|
183
|
+
wrap?: boolean;
|
|
184
|
+
}
|
|
185
|
+
interface StatusColumn extends TableColumnBase {
|
|
186
|
+
kind: 'status';
|
|
187
|
+
/** Display text per status key, e.g. { pending: 'Learning' }; the key keeps its tone. */
|
|
188
|
+
labels?: Partial<Record<'on-track' | 'at-risk' | 'off-track' | 'done' | 'pending', string>>;
|
|
189
|
+
/** 'chip' (default): a tone wash behind the text. 'square': a small tone square before ink text. */
|
|
190
|
+
mark?: 'chip' | 'square';
|
|
191
|
+
}
|
|
192
|
+
interface DateColumn extends TableColumnBase {
|
|
193
|
+
kind: 'date';
|
|
194
|
+
format?: string;
|
|
195
|
+
}
|
|
196
|
+
type SparklineKind = 'line' | 'column';
|
|
197
|
+
interface EncodingColumn extends TableColumnBase {
|
|
198
|
+
kind: 'encoding';
|
|
199
|
+
encoding: {
|
|
200
|
+
type: 'sparkline';
|
|
201
|
+
kind?: SparklineKind;
|
|
202
|
+
sourceColumns: Id[];
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
export type TableColumn = RowLabelColumn | ValueColumn | ComputedColumn | TextColumn | StatusColumn | DateColumn | EncodingColumn;
|
|
206
|
+
export type RowRole = 'data' | 'total' | 'section';
|
|
207
|
+
export type RowRelation = 'additive' | 'ofWhich' | 'displayOnly';
|
|
208
|
+
export type TotalPolicy = 'derive' | 'validate' | 'source';
|
|
209
|
+
/** Canonical flat row; `children` is accepted authoring sugar. */
|
|
210
|
+
export interface TableRow {
|
|
211
|
+
id: Id;
|
|
212
|
+
label?: string;
|
|
213
|
+
parentId?: Id;
|
|
214
|
+
/**
|
|
215
|
+
* Presentation kind. Statement kinds: 'subtotal' is a line its children
|
|
216
|
+
* add up to (Costs), on the theme's subtotal ground; 'result' is a
|
|
217
|
+
* statement result (margin = income - costs): bold, a rule above, never moved
|
|
218
|
+
* like a total; 'driver' explains a line and is never added (AOV, a
|
|
219
|
+
* margin %). 'result' and 'driver' imply relation 'displayOnly'.
|
|
220
|
+
*/
|
|
221
|
+
kind?: 'section' | 'member' | 'measure' | 'detail' | 'split' | 'subtotal' | 'result' | 'driver';
|
|
222
|
+
/**
|
|
223
|
+
* -1: the row subtracts from its additive parent (a cost authored as a
|
|
224
|
+
* positive amount). The contribution sign is the product over additive
|
|
225
|
+
* ancestors; `options.signs` decides how it prints.
|
|
226
|
+
*/
|
|
227
|
+
sign?: -1;
|
|
228
|
+
/** Glyph before the label under `options.signs: 'operators'`. A sign -1 or result kind takes priority. */
|
|
229
|
+
operator?: '+' | '−' | '×' | '÷' | '=';
|
|
230
|
+
/** The closing result of a statement: the theme's `table.finalRule` under it. */
|
|
231
|
+
final?: true;
|
|
232
|
+
/** Presentation rung override; independent of accounting depth. */
|
|
233
|
+
rung?: number;
|
|
234
|
+
/** DimSwitch compile hint, not an authored table field: the line above this row in the rule ink opens a family of rows. */
|
|
235
|
+
divider?: true;
|
|
236
|
+
role?: RowRole;
|
|
237
|
+
relation?: RowRelation;
|
|
238
|
+
totalPolicy?: TotalPolicy;
|
|
239
|
+
/** Row scale from drawn value cells without their own format. */
|
|
240
|
+
scale?: 'money' | 'perUnit' | 'count' | 'percent';
|
|
241
|
+
/** Row-level calc, evaluated per value/computed column. Requires ofWhich or displayOnly. */
|
|
242
|
+
calc?: Calc;
|
|
243
|
+
/** Format-by-example; overrides the column format for calc rows and inline rows. */
|
|
244
|
+
format?: string;
|
|
245
|
+
/** false: `options.fitFormats` leaves this row's format as authored, even where a figure is cut at its width. */
|
|
246
|
+
fitFormat?: false;
|
|
247
|
+
polarity?: Direction;
|
|
248
|
+
/**
|
|
249
|
+
* Print this row as a line under its parent's value, inside the same cell,
|
|
250
|
+
* instead of as a row of its own. Only a `displayOnly` child may do it.
|
|
251
|
+
*/
|
|
252
|
+
inline?: true;
|
|
253
|
+
/** Which switch hides this line; several rows may share one. Default: the row id. */
|
|
254
|
+
inlineGroup?: Id;
|
|
255
|
+
/**
|
|
256
|
+
* A short affix printed beside the row label, in the muted ink on the
|
|
257
|
+
* label's own line: the unit a KPI row reads in ("$M", "# orders"). It is
|
|
258
|
+
* not a note, so it takes no second line and
|
|
259
|
+
* the change lines under the label stay level with the ones under the
|
|
260
|
+
* values. A forced `options.magnitude` overrides it with the scale letter
|
|
261
|
+
* it hoists out of this row's cells.
|
|
262
|
+
*/
|
|
263
|
+
unitAffix?: string;
|
|
264
|
+
/**
|
|
265
|
+
* What a MISSING cell of this row prints: 'blank' leaves it empty, 'dash'
|
|
266
|
+
* prints the em dash. Omitted, the row takes `options.nulls`. A change
|
|
267
|
+
* line with no value in a block column is a slot with nothing to say, and
|
|
268
|
+
* a table-wide 'blank' would also empty the real gaps of the data rows.
|
|
269
|
+
* Named `missing` and not `nulls`: a row field that shares a
|
|
270
|
+
* column field's name overrides it (`format`, `polarity`), and a value
|
|
271
|
+
* column's `nulls` says how a parent sums, which this does not touch.
|
|
272
|
+
*/
|
|
273
|
+
missing?: 'blank' | 'dash';
|
|
274
|
+
/**
|
|
275
|
+
* Empty px before this row, the row twin of a column group's `spacer`:
|
|
276
|
+
* 6 px before each January row of a long cohort history. It draws no
|
|
277
|
+
* ground and no rule, and it replaces the rule above the row. The first
|
|
278
|
+
* drawn row takes none.
|
|
279
|
+
*/
|
|
280
|
+
spacer?: number;
|
|
281
|
+
/**
|
|
282
|
+
* false: a parent the reader cannot fold. It draws no toggle and
|
|
283
|
+
* no fold mark, and its children stay drawn whatever the expansion, the
|
|
284
|
+
* depth control or a controlled collapse state says.
|
|
285
|
+
*/
|
|
286
|
+
foldable?: false;
|
|
287
|
+
/** A status chip after a section heading's text, in the status chip paints. Section rows only. */
|
|
288
|
+
badge?: {
|
|
289
|
+
text: string;
|
|
290
|
+
tone?: 'good' | 'warn' | 'bad' | 'neutral';
|
|
291
|
+
};
|
|
292
|
+
cells?: Record<Id, TableCell>;
|
|
293
|
+
children?: TableRow[];
|
|
294
|
+
}
|
|
295
|
+
/** The noun a level's children are counted in, for the collapsed-row hint. */
|
|
296
|
+
interface LevelNoun {
|
|
297
|
+
one: string;
|
|
298
|
+
other: string;
|
|
299
|
+
}
|
|
300
|
+
/** One header group over contiguous member columns. */
|
|
301
|
+
interface TableColumnGroup {
|
|
302
|
+
id: Id;
|
|
303
|
+
label: string;
|
|
304
|
+
columns: Id[];
|
|
305
|
+
band?: boolean;
|
|
306
|
+
note?: string;
|
|
307
|
+
spacer?: number;
|
|
308
|
+
/**
|
|
309
|
+
* Draw the heading. Default true. `false` keeps everything else the group
|
|
310
|
+
* means: its membership (the hover series, `previous: true` calcs), its
|
|
311
|
+
* label as the hover noun, its band, its spacer and its divider. Where no
|
|
312
|
+
* group draws a heading, the head's group row goes.
|
|
313
|
+
*/
|
|
314
|
+
heading?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* What the sparkline hover card draws for a member column. 'shown', like
|
|
317
|
+
* absent, draws the members on screen. 'all' draws every member in
|
|
318
|
+
* `columns[]` order, those a column toggle hides included, so a block can
|
|
319
|
+
* show the history it does not draw ("FY22 YTD" to "FY27 YTD" behind one
|
|
320
|
+
* visible "FY27 YTD"). A hidden member still draws, measures and counts
|
|
321
|
+
* nowhere else.
|
|
322
|
+
*/
|
|
323
|
+
hoverSeries?: 'shown' | 'all';
|
|
324
|
+
}
|
|
325
|
+
export interface TableData {
|
|
326
|
+
/**
|
|
327
|
+
* Two-row headers. `note` prints after the heading as "· note" in the
|
|
328
|
+
* muted ink, lowercase and untracked: the period the block covers
|
|
329
|
+
* ("Jul 1-15", "full month"), which the heading itself never says.
|
|
330
|
+
*/
|
|
331
|
+
columnGroups?: TableColumnGroup[];
|
|
332
|
+
columnToggles?: {
|
|
333
|
+
id: Id;
|
|
334
|
+
label: string;
|
|
335
|
+
columns: Id[];
|
|
336
|
+
defaultVisible?: boolean;
|
|
337
|
+
}[];
|
|
338
|
+
columns: TableColumn[];
|
|
339
|
+
rows: TableRow[];
|
|
340
|
+
/**
|
|
341
|
+
* Nouns for the children of each level, indexed by the level they name
|
|
342
|
+
* (`levelNouns[1]` names level-1 children). A collapsed parent appends
|
|
343
|
+
* "· 4 markets" only where its children's level is authored here — the
|
|
344
|
+
* engine never invents the word.
|
|
345
|
+
*/
|
|
346
|
+
levelNouns?: LevelNoun[];
|
|
347
|
+
}
|
|
348
|
+
export type TableVariant = 'steering' | 'benchmark' | 'status' | 'receipts' | 'hierarchy';
|
|
349
|
+
type TableCellEncodingName = 'polarityBadge' | 'heat' | 'inCellBar' | 'arrow';
|
|
350
|
+
/**
|
|
351
|
+
* How a stepped heat lane finds the band a value belongs to; 'status' is the
|
|
352
|
+
* traffic light: good, warn or bad against the lane's centre.
|
|
353
|
+
*/
|
|
354
|
+
type HeatScale = 'column' | 'absolute' | 'diverging' | 'status';
|
|
355
|
+
/** The band around the centre of a 'status' lane that reads as warn: exactly one of the two. */
|
|
356
|
+
export interface HeatTolerance {
|
|
357
|
+
/** Percent of the centre. */
|
|
358
|
+
pct?: number;
|
|
359
|
+
/** Column units. */
|
|
360
|
+
abs?: number;
|
|
361
|
+
}
|
|
362
|
+
/** Heat with its authored lane settings; the bare string means these defaults. */
|
|
363
|
+
interface HeatEncodingOption {
|
|
364
|
+
type: 'heat';
|
|
365
|
+
/** Value that saturates the lane: `pct` on percent columns, `abs` elsewhere. */
|
|
366
|
+
cap?: {
|
|
367
|
+
pct?: number;
|
|
368
|
+
abs?: number;
|
|
369
|
+
};
|
|
370
|
+
/** Tint weight at the cap; default 0.18, and 0.26 on scale 'status'. */
|
|
371
|
+
alpha?: number;
|
|
372
|
+
/** Leave total rows untinted; default true. */
|
|
373
|
+
excludeTotals?: boolean;
|
|
374
|
+
/** Discrete ramp: how many bands the lane paints. Omitted stays continuous. */
|
|
375
|
+
steps?: number;
|
|
376
|
+
/** Where a value's band comes from; default 'column'. */
|
|
377
|
+
scale?: HeatScale;
|
|
378
|
+
/** Ascending band edges for 'absolute', |distance| edges for 'diverging'. */
|
|
379
|
+
bins?: number[];
|
|
380
|
+
/** On 'column': the narrowest spread that fills the ramp; a narrower column takes the bands from the lightest up. */
|
|
381
|
+
span?: number;
|
|
382
|
+
/** On 'diverging' and 'status': measure from the table's total row; omitted, from the data rows' mean. */
|
|
383
|
+
center?: 'total';
|
|
384
|
+
/**
|
|
385
|
+
* On 'status': how far from the centre a value still reads as warn
|
|
386
|
+
* (amber); farther above is good, farther below bad, the other way round
|
|
387
|
+
* on a lowerIsBetter column. Default `{ pct: 5 }`.
|
|
388
|
+
*/
|
|
389
|
+
tolerance?: HeatTolerance;
|
|
390
|
+
/** Columns this one rule paints, beside the key it is authored under. */
|
|
391
|
+
columns?: Id[];
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* An arrow with its cut. 'absolute' cuts the change itself at 10 and 2 (a percent
|
|
395
|
+
* column's points); 'relative' cuts its share of the column's largest change.
|
|
396
|
+
* Default: 'absolute' on a percent column, 'relative' elsewhere.
|
|
397
|
+
*/
|
|
398
|
+
interface ArrowEncodingOption {
|
|
399
|
+
type: 'arrow';
|
|
400
|
+
scale?: ArrowScale;
|
|
401
|
+
}
|
|
402
|
+
export type ArrowScale = 'absolute' | 'relative';
|
|
403
|
+
export type TableCellEncoding = TableCellEncodingName | HeatEncodingOption | ArrowEncodingOption;
|
|
404
|
+
/** What `resolveTable` hands the renderers: always an object, defaults filled. */
|
|
405
|
+
export type ResolvedCellEncoding = {
|
|
406
|
+
type: 'polarityBadge';
|
|
407
|
+
} | {
|
|
408
|
+
type: 'inCellBar';
|
|
409
|
+
} | {
|
|
410
|
+
type: 'arrow';
|
|
411
|
+
scale: ArrowScale;
|
|
412
|
+
} | {
|
|
413
|
+
type: 'heat';
|
|
414
|
+
cap?: {
|
|
415
|
+
pct?: number;
|
|
416
|
+
abs?: number;
|
|
417
|
+
};
|
|
418
|
+
alpha: number;
|
|
419
|
+
excludeTotals: boolean;
|
|
420
|
+
steps?: number;
|
|
421
|
+
scale?: HeatScale;
|
|
422
|
+
bins?: number[];
|
|
423
|
+
span?: number;
|
|
424
|
+
center?: 'total';
|
|
425
|
+
tolerance?: HeatTolerance;
|
|
426
|
+
};
|
|
427
|
+
type RowHighlightTone = Exclude<CellTone, 'neutral'> | 'highlight';
|
|
428
|
+
/**
|
|
429
|
+
* sort.categories reorders data rows within each sibling group (sheet default,
|
|
430
|
+
* reverse, or by the additive value-column total). sort.segments is refused.
|
|
431
|
+
* topN keeps n siblings per group and nests the rest under an Others parent
|
|
432
|
+
* so resolveTable still derives totals and claims; it does not sum text,
|
|
433
|
+
* status or non-aggregating columns.
|
|
434
|
+
*/
|
|
435
|
+
export interface TableOptions extends BaseOptionsFor<'table'> {
|
|
436
|
+
/**
|
|
437
|
+
* How rows with contribution sign -1 print. 'signed' (default): the value
|
|
438
|
+
* and its absolute changes print negated; relative and pp changes keep
|
|
439
|
+
* their sign. 'operators': values as authored, a glyph before the label
|
|
440
|
+
* (− for sign -1, = for a result, else the authored operator).
|
|
441
|
+
* 'plain': neither. Tables without sign -1 rows draw the same in all three.
|
|
442
|
+
*/
|
|
443
|
+
signs?: 'signed' | 'operators' | 'plain';
|
|
444
|
+
/**
|
|
445
|
+
* Whether a driver row (`kind: 'driver'`) shows the good, warn and bad
|
|
446
|
+
* tones its figures earn. 'grouped' (default): a driver with a `parentId`
|
|
447
|
+
* whose parent is not a section heading shows them, as the lines of a
|
|
448
|
+
* statement do; a flat driver keeps the driver ink. 'always': every driver
|
|
449
|
+
* shows them. 'never': a driver prints in the driver ink only (the 0.27
|
|
450
|
+
* look). A neutral figure and the label keep the driver ink, and the
|
|
451
|
+
* italic face stays.
|
|
452
|
+
*/
|
|
453
|
+
driverTones?: 'grouped' | 'always' | 'never';
|
|
454
|
+
/** 'exceptions' keeps only strong good and bad tones; good and warn print neutral. Default 'all'. */
|
|
455
|
+
judgements?: 'all' | 'exceptions';
|
|
456
|
+
/** Mount closed descendants. false removes them from the DOM. */
|
|
457
|
+
mountCollapsed?: boolean;
|
|
458
|
+
variant?: TableVariant;
|
|
459
|
+
encodings?: Record<Id, TableCellEncoding>;
|
|
460
|
+
totalPosition?: 'top' | 'bottom';
|
|
461
|
+
/**
|
|
462
|
+
* Cell spacing tier. Static output retries compact spacing, tight margins
|
|
463
|
+
* and automatic height before refusal, unless belowMinimum is refuse.
|
|
464
|
+
* The two cohort tiers are fixed grids rather than
|
|
465
|
+
* steps of the level ladder: a cohort table has one level and its rows are
|
|
466
|
+
* a 26 px (20 px) matrix the reader scans across, not a hierarchy.
|
|
467
|
+
*/
|
|
468
|
+
density?: 'compact' | 'regular' | 'relaxed' | 'cohort' | 'cohort-small';
|
|
469
|
+
/**
|
|
470
|
+
* What a missing cell prints. 'dash' (the default) keeps the em dash the
|
|
471
|
+
* contract has always drawn; 'blank' leaves it empty, which is what a
|
|
472
|
+
* cohort staircase needs: a cohort acquired in May has not been observed
|
|
473
|
+
* at M8, and a column of dashes draws a triangle of noise.
|
|
474
|
+
* Explicit states (na, nm, suppressed) keep their glyphs.
|
|
475
|
+
*/
|
|
476
|
+
nulls?: 'blank' | 'dash';
|
|
477
|
+
/**
|
|
478
|
+
* Print the cell figures. false draws the heat grounds alone, in cells
|
|
479
|
+
* small enough for a sixty-column triangle; the heads keep their labels
|
|
480
|
+
* and the numbers stay in the markup for a reader who cannot see the
|
|
481
|
+
* grounds. A heat cell is 22 px wide, over any width authored for
|
|
482
|
+
* its figures, and a row 14 px tall or the line box of the text it still
|
|
483
|
+
* prints where that is taller.
|
|
484
|
+
*/
|
|
485
|
+
figures?: boolean;
|
|
486
|
+
expansion?: {
|
|
487
|
+
/**
|
|
488
|
+
* Parents at levels below `depth` start expanded; `'all'` (the default)
|
|
489
|
+
* expands every parent. `'totals'` is the totals step of a depth control:
|
|
490
|
+
* every parent folds and the level-0 data rows hide, so the totals and
|
|
491
|
+
* the section headings show. A table without a total row keeps its
|
|
492
|
+
* level-0 rows, folded, under open section headings.
|
|
493
|
+
*/
|
|
494
|
+
depth?: number | 'all' | 'totals';
|
|
495
|
+
collapsed?: Id[];
|
|
496
|
+
expanded?: Id[];
|
|
497
|
+
/**
|
|
498
|
+
* Hide every level-0 data row with its subtree and keep the totals and
|
|
499
|
+
* the section headings: the totals-only step of a depth control.
|
|
500
|
+
* Collapsing a parent still draws the parent, so a depth
|
|
501
|
+
* control needs this second half to show the Total alone.
|
|
502
|
+
*/
|
|
503
|
+
rootsHidden?: boolean;
|
|
504
|
+
};
|
|
505
|
+
columnVisibility?: Record<Id, boolean>;
|
|
506
|
+
/** Inline-line visibility keyed by `inlineGroup`; an absent group is visible. */
|
|
507
|
+
inlineVisibility?: Record<Id, boolean>;
|
|
508
|
+
/**
|
|
509
|
+
* Force the magnitude every derived money format takes, instead of letting
|
|
510
|
+
* each column pick its own from its largest value. 'auto' is the default.
|
|
511
|
+
*/
|
|
512
|
+
magnitude?: 'auto' | 'thousand' | 'million';
|
|
513
|
+
anchorWash?: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* React only: what folds a parent row. 'row': a click on the row folds it
|
|
516
|
+
* (and, where the host made the row selectable, selects it too). 'toggle':
|
|
517
|
+
* only the fold mark folds, and a click on the row only selects. Default:
|
|
518
|
+
* 'toggle' for a selectable row, 'row' for any other. Enter and Space on a
|
|
519
|
+
* cell follow the same rule as the click.
|
|
520
|
+
*/
|
|
521
|
+
foldOn?: 'row' | 'toggle';
|
|
522
|
+
/**
|
|
523
|
+
* Which group rows carry the group ground (the emphasis and band grounds of
|
|
524
|
+
* the top two rungs, under a preset that draws them). 'expanded' (default,
|
|
525
|
+
* a 0.28 characteristic): only the header row of an open group, so a folded
|
|
526
|
+
* group row, and a leaf on its rung, look like normal rows. 'always': every
|
|
527
|
+
* group row and every leaf on its rung, folded or open, as in 0.27. 'none':
|
|
528
|
+
* no group ground. The Total keeps its own ground. Absent, the theme key
|
|
529
|
+
* `table.groupGround` decides.
|
|
530
|
+
*/
|
|
531
|
+
groupGround?: 'expanded' | 'always' | 'none';
|
|
532
|
+
/**
|
|
533
|
+
* Pin the header and the leading columns while the table scrolls. `true`
|
|
534
|
+
* pins one, a number pins that many, and the last pinned column carries a
|
|
535
|
+
* hairline shadow to its right so the reader sees where the scrolling
|
|
536
|
+
* starts. The object form names each part: `head` is 'table'
|
|
537
|
+
* (default: the head pins inside the table's own scroll box), 'page' (the
|
|
538
|
+
* head pins to the page scroll at `top` px, the body has no vertical
|
|
539
|
+
* scroll box and the head follows its sideways scroll) or false (no pinned
|
|
540
|
+
* head); `columns` is the count of pinned columns (default 1); `top` is the
|
|
541
|
+
* page offset in px for a host toolbar (default 0, page mode only); and
|
|
542
|
+
* `sections: true` keeps the active section label under the head until the
|
|
543
|
+
* next section starts (default false). `true` and a number keep their
|
|
544
|
+
* 0.27 meaning. Page mode is refused with React `fillHeight`.
|
|
545
|
+
*/
|
|
546
|
+
stickyLabels?: StickyLabels;
|
|
547
|
+
/**
|
|
548
|
+
* Frame fill. 'values' (default) grows automatic value tracks by at most maxGrowth.
|
|
549
|
+
* The unauthored label track takes the rest, so the table ends at the frame
|
|
550
|
+
* edge, a table with one value track too.
|
|
551
|
+
* A label track too narrow for a name takes width back from the value
|
|
552
|
+
* tracks' growth before the name wraps. 'none' keeps natural widths.
|
|
553
|
+
*/
|
|
554
|
+
frameFill?: 'values' | 'none';
|
|
555
|
+
/**
|
|
556
|
+
* Lines a row label may take before it is cut with an ellipsis (default 2).
|
|
557
|
+
* A label breaks at a space or after `_`, `-`, `/` or `.`, so a long
|
|
558
|
+
* campaign name such as `Brand_Paid-Social_FB_Q4` wraps instead of ending
|
|
559
|
+
* in "…". 1 keeps every label on one line. The hover card always prints
|
|
560
|
+
* the full name.
|
|
561
|
+
*/
|
|
562
|
+
rowLabelLines?: 1 | 2;
|
|
563
|
+
/**
|
|
564
|
+
* Let the last drawn track take the remaining frame width when it has no
|
|
565
|
+
* authored width. Both renderers use the same final pixel width. Default false.
|
|
566
|
+
* `rowExtent: 'frame'` takes precedence: its empty track owns the slack.
|
|
567
|
+
*/
|
|
568
|
+
lastTrackFlex?: boolean;
|
|
569
|
+
/**
|
|
570
|
+
* Row extent. Unset, rows and rules end at the last column when frame
|
|
571
|
+
* fill leaves width beside the table, and fill the frame otherwise.
|
|
572
|
+
* Explicit 'frame' fills the width inside frame margins and also extends
|
|
573
|
+
* rows through authored side margins. 'tracks' stops at the last column.
|
|
574
|
+
* Tables have no single end rule.
|
|
575
|
+
*/
|
|
576
|
+
rowExtent?: 'tracks' | 'frame';
|
|
577
|
+
/**
|
|
578
|
+
* Which sortable headers draw a chevron. 'all' (the default) draws one on
|
|
579
|
+
* every sortable header, saying which way the next click will sort it;
|
|
580
|
+
* 'sorted' draws it on the sorted header alone and keeps the reserve on
|
|
581
|
+
* the others, so nothing moves when the reader sorts.
|
|
582
|
+
*/
|
|
583
|
+
sortIndicator?: 'all' | 'sorted';
|
|
584
|
+
/**
|
|
585
|
+
* Shift every row's rung on the level ladder. A board whose top
|
|
586
|
+
* rows are groups rather than KPI lines reads one rung too heavy: `1`
|
|
587
|
+
* moves them down a rung in size, weight, air, ground, indent and label
|
|
588
|
+
* ink, `-1` moves them up one. Default 0, and the rungs stay floored at 0
|
|
589
|
+
* and at the ladder's deepest step. A total takes no offset: it restates
|
|
590
|
+
* its siblings and is not a rung.
|
|
591
|
+
*/
|
|
592
|
+
levelOffset?: number;
|
|
593
|
+
/**
|
|
594
|
+
* Horizontal air inside every cell, in px. The default steps down with the
|
|
595
|
+
* available width (12; only when needed, 5 for 20–24 columns or 3 for 25 or more); a
|
|
596
|
+
* board that draws 6 px of cell air names it here instead of overriding
|
|
597
|
+
* the grid's own variable.
|
|
598
|
+
*/
|
|
599
|
+
cellPadX?: number;
|
|
600
|
+
/**
|
|
601
|
+
* How far a column-group heading's hairline runs. 'span' (the default)
|
|
602
|
+
* runs it under every member, so a fiscal-year group over twelve months
|
|
603
|
+
* shows which months it holds; 'label' underlines the heading's text alone.
|
|
604
|
+
*/
|
|
605
|
+
groupRule?: 'label' | 'span';
|
|
606
|
+
/**
|
|
607
|
+
* Where a column-group heading sits over its columns. 'center' (the
|
|
608
|
+
* default) centres it; 'left' and 'right' put it at the first or the last
|
|
609
|
+
* column's cell air. In the React grid a heading stays in view while its
|
|
610
|
+
* group scrolls, and a centred heading over a group wider than the visible
|
|
611
|
+
* scroll area starts at the first column. A heading wider than its columns starts at the first.
|
|
612
|
+
*/
|
|
613
|
+
groupAlign?: 'left' | 'center' | 'right';
|
|
614
|
+
/**
|
|
615
|
+
* Shorten a number format until the widest figure fits its fixed track
|
|
616
|
+
* (a column with an authored `width`): one decimal less at a time, then
|
|
617
|
+
* the next unit up ($k to $M) at one decimal. A row format changes for the
|
|
618
|
+
* whole row, a column format for the whole column, so one row or one
|
|
619
|
+
* column reads in one format. Where the unit steps, a row's `unitAffix`
|
|
620
|
+
* that named the old unit names the new one. Default false.
|
|
621
|
+
*/
|
|
622
|
+
fitFormats?: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* Value-track growth cap in SVG and React frame fill. Default 2.5.
|
|
625
|
+
* false removes the cap. The label track takes the remaining width.
|
|
626
|
+
* Also caps React container fit growth.
|
|
627
|
+
*/
|
|
628
|
+
maxGrowth?: number | false;
|
|
629
|
+
/**
|
|
630
|
+
* Draw outline or fold marks beside parent rows in static SVG/PNG and
|
|
631
|
+
* read-only grids. Default false: no marks or gutter. true draws the
|
|
632
|
+
* marks and reserves their gutter. Interactive grids keep their fold
|
|
633
|
+
* buttons either way.
|
|
634
|
+
*/
|
|
635
|
+
outlineMarks?: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Where a tree table's labels start, in px from the row's edge with the
|
|
638
|
+
* cell air included, as a table ladder is usually written: rung 0
|
|
639
|
+
* at `base`, each rung `step` further (default 16). A label never starts
|
|
640
|
+
* inside the cell air. Absent, static output and read-only grids start at the cell air.
|
|
641
|
+
* outlineMarks: true and interactive grids add a 24 px mark gutter.
|
|
642
|
+
*/
|
|
643
|
+
labelIndent?: {
|
|
644
|
+
base: number;
|
|
645
|
+
step?: number;
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
export interface ResolvedCell {
|
|
649
|
+
rowId: Id;
|
|
650
|
+
colId: Id;
|
|
651
|
+
kind: ColumnKind;
|
|
652
|
+
raw: number | string | null;
|
|
653
|
+
state: CellState;
|
|
654
|
+
displayed: string;
|
|
655
|
+
note?: string;
|
|
656
|
+
tone: CellTone;
|
|
657
|
+
/** The value band this cell fell in (`TableCellObject.bands`): its label and bounds. `from` is the bound of the band below, absent for the first band. */
|
|
658
|
+
band?: {
|
|
659
|
+
to: number;
|
|
660
|
+
from?: number;
|
|
661
|
+
label?: string;
|
|
662
|
+
};
|
|
663
|
+
href?: string;
|
|
664
|
+
deEmphasized?: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* The figure prints as zero at its own precision ("0.0%" for −0.02 %) and
|
|
667
|
+
* nothing else colours it: no tone, no materiality mute. It is
|
|
668
|
+
* drawn in the tertiary ink, never the text colour, on the SVG and in the
|
|
669
|
+
* grid alike.
|
|
670
|
+
*/
|
|
671
|
+
zero?: true;
|
|
672
|
+
/** The authored heat opt-out: no ground, the muted ink. */
|
|
673
|
+
heat?: false;
|
|
674
|
+
/** The authored strong judgment (`TableCellObject.strong`). */
|
|
675
|
+
strong?: true;
|
|
676
|
+
/** The authored size mark, 0 to 1 (`TableCellObject.bar`). */
|
|
677
|
+
bar?: number;
|
|
678
|
+
/**
|
|
679
|
+
* The direction that judges this figure, where one does: the row's over
|
|
680
|
+
* the column's in a judged column, the row's on a change. A heat ground and
|
|
681
|
+
* an in-cell bar read it, since `tone` stays neutral on context rows.
|
|
682
|
+
*/
|
|
683
|
+
polarity?: Direction;
|
|
684
|
+
/** The value cell's own format-by-example, where it names one; it beats the row's and the column's. */
|
|
685
|
+
format?: string;
|
|
686
|
+
scenario?: Scenario;
|
|
687
|
+
role: RowRole;
|
|
688
|
+
relation: RowRelation;
|
|
689
|
+
level: number;
|
|
690
|
+
}
|
|
691
|
+
export interface ResolvedColumn {
|
|
692
|
+
id: Id;
|
|
693
|
+
kind: ColumnKind;
|
|
694
|
+
label: string;
|
|
695
|
+
/** Authored second head line, printed under the label at the micro step. */
|
|
696
|
+
subLabel?: string;
|
|
697
|
+
/** A total in this column skipped a missing value: the head carries the partial-aggregate mark. */
|
|
698
|
+
partial?: true;
|
|
699
|
+
format?: string;
|
|
700
|
+
scenario?: Scenario;
|
|
701
|
+
polarity?: Direction;
|
|
702
|
+
aggregate: 'sum' | 'none' | 'source';
|
|
703
|
+
groupId?: Id;
|
|
704
|
+
toggleGroup?: Id;
|
|
705
|
+
width?: number;
|
|
706
|
+
maxWidth?: number;
|
|
707
|
+
maxTextWidth?: number;
|
|
708
|
+
/** Text column authored with wrap: true, so prose wraps instead of widening the table. */
|
|
709
|
+
wrap?: boolean;
|
|
710
|
+
/** Status column authored with mark: 'square'. */
|
|
711
|
+
statusMark?: 'square';
|
|
712
|
+
encoding?: EncodingColumn['encoding'];
|
|
713
|
+
/** Resolved option-driven cell encoding for renderer parity. */
|
|
714
|
+
cellEncoding?: ResolvedCellEncoding;
|
|
715
|
+
/** Authored column emphasis; renderers paint it, layout never moves for it. */
|
|
716
|
+
emphasis?: ColumnEmphasis;
|
|
717
|
+
/** Authored column band; the ground and hairline of a banded column run. */
|
|
718
|
+
band?: boolean;
|
|
719
|
+
/** Authored `noteLine`: this column's cell notes print as a second line. */
|
|
720
|
+
noteLine?: boolean;
|
|
721
|
+
align: 'left' | 'right' | 'center';
|
|
722
|
+
/** Money unit hoisted out of cells when table units are MIXED. */
|
|
723
|
+
unitLabel?: string;
|
|
724
|
+
/** The hoisted unit names a magnitude the cells print without ("$k"), so a raw value drops it. */
|
|
725
|
+
unitScaled?: true;
|
|
726
|
+
/** Each cell prints its own magnitude ("950.0k", "1.1M"), so no unit names one. */
|
|
727
|
+
magnitudeInCells?: true;
|
|
728
|
+
}
|
|
729
|
+
export interface ResolvedRow {
|
|
730
|
+
/** Authored statement sign and closing rule. */
|
|
731
|
+
sign?: -1;
|
|
732
|
+
final?: true;
|
|
733
|
+
/** Resolved operator glyph; only present in operators mode. */
|
|
734
|
+
operator?: TableRow['operator'];
|
|
735
|
+
kind?: TableRow['kind'];
|
|
736
|
+
/** A driver row whose tones show (`options.driverTones`), decided once here so the SVG and the grid agree. */
|
|
737
|
+
driverTone?: true;
|
|
738
|
+
/** The authored divider (`TableRow.divider`): the line above the row in the rule ink. */
|
|
739
|
+
divider?: true;
|
|
740
|
+
id: Id;
|
|
741
|
+
label: string;
|
|
742
|
+
parentId?: Id;
|
|
743
|
+
hasChildren: boolean;
|
|
744
|
+
/** Present iff hasChildren. */
|
|
745
|
+
defaultExpanded?: boolean;
|
|
746
|
+
level: number;
|
|
747
|
+
/**
|
|
748
|
+
* The rung this row takes on the level ladder: size, weight, air, ground,
|
|
749
|
+
* indent and label ink. It is the row's depth with SECTION HEADINGS
|
|
750
|
+
* skipped, shifted by `options.levelOffset` (a total excepted) and
|
|
751
|
+
* floored at 0, so the KPI rows under a section heading read as the top
|
|
752
|
+
* rung, as a KPI board reads them. `level`
|
|
753
|
+
* stays the authored depth.
|
|
754
|
+
*/
|
|
755
|
+
step: number;
|
|
756
|
+
role: RowRole;
|
|
757
|
+
relation: RowRelation;
|
|
758
|
+
order: number;
|
|
759
|
+
/** Authored polarity of a calc row; an inline line with one is a signed change. */
|
|
760
|
+
polarity?: Direction;
|
|
761
|
+
/** This row prints as a line inside its parent's cells, never as a row. */
|
|
762
|
+
inline?: true;
|
|
763
|
+
/** The switch that hides this line; defaults to the row id. */
|
|
764
|
+
inlineGroup?: Id;
|
|
765
|
+
/** A parent's inline lines, in authored order. Absent where there are none. */
|
|
766
|
+
inlineRows?: ResolvedRow[];
|
|
767
|
+
/** Present only when the row is selected by options.highlight. */
|
|
768
|
+
highlightTone?: RowHighlightTone;
|
|
769
|
+
/**
|
|
770
|
+
* The unit this row's label carries after its label ('$k', '# orders'),
|
|
771
|
+
* in the muted ink at the ladder's inline step: authored as
|
|
772
|
+
* `rows[].unitAffix`, or hoisted out of the cells by a forced magnitude,
|
|
773
|
+
* which wins. It is its own field and not a cell note, because a note is a
|
|
774
|
+
* second line and a host's own note must keep it.
|
|
775
|
+
*/
|
|
776
|
+
unitAffix?: string;
|
|
777
|
+
/** Authored `spacer`: empty px before the row. */
|
|
778
|
+
spacer?: number;
|
|
779
|
+
/** Present only on a parent the reader cannot fold. */
|
|
780
|
+
foldable?: false;
|
|
781
|
+
/** A section heading's status chip, its tone resolved. */
|
|
782
|
+
badge?: {
|
|
783
|
+
text: string;
|
|
784
|
+
tone: 'good' | 'warn' | 'bad' | 'neutral';
|
|
785
|
+
};
|
|
786
|
+
cells: Record<Id, ResolvedCell>;
|
|
787
|
+
}
|
|
788
|
+
export interface ResolvedTable {
|
|
789
|
+
columns: ResolvedColumn[];
|
|
790
|
+
columnGroups: {
|
|
791
|
+
id: Id;
|
|
792
|
+
label: string;
|
|
793
|
+
columnIds: Id[];
|
|
794
|
+
band?: boolean;
|
|
795
|
+
note?: string;
|
|
796
|
+
spacer?: number;
|
|
797
|
+
heading?: boolean;
|
|
798
|
+
hoverSeries?: 'shown' | 'all';
|
|
799
|
+
}[];
|
|
800
|
+
columnToggles: {
|
|
801
|
+
id: Id;
|
|
802
|
+
label: string;
|
|
803
|
+
columnIds: Id[];
|
|
804
|
+
defaultVisible: boolean;
|
|
805
|
+
visible: boolean;
|
|
806
|
+
}[];
|
|
807
|
+
rows: ResolvedRow[];
|
|
808
|
+
/** Uniform money unit hoisted out of every cell ("in €M"). */
|
|
809
|
+
unit?: string;
|
|
810
|
+
/** Authored nouns for the children of each level; absent means no collapsed hint. */
|
|
811
|
+
levelNouns?: LevelNoun[];
|
|
812
|
+
footnotes: string[];
|
|
813
|
+
/** Columns whose aggregates skipped a null child; the partial footnote shows only while one of them is drawn. */
|
|
814
|
+
partialColumnIds?: Id[];
|
|
815
|
+
/** Judgments paint in theme.color.colorblind, so the notes name the good tone, not green. */
|
|
816
|
+
colorblindSafe?: true;
|
|
817
|
+
provenance: {
|
|
818
|
+
source?: string;
|
|
819
|
+
generatedNote?: string;
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
/** The claims sidecar consumes these verbatim. */
|
|
823
|
+
export interface ComputedCellRecord {
|
|
824
|
+
rowId: Id;
|
|
825
|
+
colId: Id;
|
|
826
|
+
op: string;
|
|
827
|
+
/**
|
|
828
|
+
* `role` distinguishes two operands drawn from the SAME cell — the raw value
|
|
829
|
+
* and the value that cell prints. `rounding-gap@1` needs both of every cell
|
|
830
|
+
* it reconciles, and without the role the two would collapse onto one ref
|
|
831
|
+
* (`dept-0:mtdActual` twice) and the reader could not tell which was which.
|
|
832
|
+
* Omitted everywhere else, so every existing record is byte-identical.
|
|
833
|
+
*/
|
|
834
|
+
inputs: {
|
|
835
|
+
rowId: Id;
|
|
836
|
+
colId: Id;
|
|
837
|
+
/** null only on a non-derivation record, where `state` says why. */
|
|
838
|
+
value: number | null;
|
|
839
|
+
role?: 'raw' | 'displayed';
|
|
840
|
+
state?: Exclude<CellState, 'value'>;
|
|
841
|
+
}[];
|
|
842
|
+
raw: number | null;
|
|
843
|
+
state: CellState;
|
|
844
|
+
displayed: string;
|
|
845
|
+
/**
|
|
846
|
+
* `unaudited` is the ONE kind here that promises no arithmetic: the engine
|
|
847
|
+
* produced no number and says which children stopped it. It exists so that a
|
|
848
|
+
* cell with nothing to derive leaves a record explaining itself instead of
|
|
849
|
+
* either (a) a `sum` receipt over no operands or (b) silence.
|
|
850
|
+
*/
|
|
851
|
+
kind: 'calc' | 'aggregate' | 'reconciliation' | 'rounding-adjustment' | 'unaudited';
|
|
852
|
+
}
|
|
853
|
+
export interface TableDerived {
|
|
854
|
+
table: ResolvedTable;
|
|
855
|
+
computedCells: ComputedCellRecord[];
|
|
856
|
+
}
|
|
857
|
+
/** Encoding emitters are layout plugins (renderers add nothing). */
|
|
858
|
+
export interface EncodingContext {
|
|
859
|
+
cell: ResolvedCell;
|
|
860
|
+
box: Rect;
|
|
861
|
+
theme: Theme;
|
|
862
|
+
/** Named semantic palette retained for symbolic renderer paints. */
|
|
863
|
+
palette?: string;
|
|
864
|
+
/** A toned cell's text colour on its row's ground. */
|
|
865
|
+
toneInk?: Paint;
|
|
866
|
+
measure: TextMeasurer;
|
|
867
|
+
nodeId: (suffix: string) => Id;
|
|
868
|
+
owner: {
|
|
869
|
+
rowId: Id;
|
|
870
|
+
colId: Id;
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
export {};
|