@marimo-team/islands 0.19.10-dev6 → 0.19.10-dev9
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/dist/{ConnectedDataExplorerComponent-BAeQ8DWw.js → ConnectedDataExplorerComponent-CkXO-pKy.js} +6 -6
- package/dist/{react-plotly-BuRa9xtI.js → Plot-CmsrWWji.js} +72 -286
- package/dist/{any-language-editor-D0UQItkS.js → any-language-editor-CKEbZakX.js} +10 -10
- package/dist/apl-C1bki_dE.js +4 -0
- package/dist/{arc-CEWBr4jc.js → arc-9nABupDE.js} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-DPPYVq8H.js → architectureDiagram-VXUJARFQ-DmJQhcJb.js} +6 -6
- package/dist/asciiarmor-BdlkCCRr.js +4 -0
- package/dist/asn1-CvE30hox.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-BA5N05Y9.js → blockDiagram-VD42YOAC-CRofISJs.js} +10 -10
- package/dist/brainfuck-BalwWy1a.js +4 -0
- package/dist/{c4Diagram-YG6GDRKO-DJLzuGJJ.js → c4Diagram-YG6GDRKO-Deqoag4I.js} +4 -4
- package/dist/{channel-Dob5kWXR.js → channel-CMsnebrL.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DZQibjKA.js → chunk-4BX2VUAB-WmXmzRBr.js} +1 -1
- package/dist/{chunk-55IACEB6-C3BASkh4.js → chunk-55IACEB6-irYMvHJu.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BEb20Lzt.js → chunk-5FQGJX7Z-pOElJy8t.js} +2 -2
- package/dist/{chunk-ABZYJK2D-BXTC53mt.js → chunk-ABZYJK2D-BGWvKte3.js} +2 -2
- package/dist/{chunk-ATLVNIR6-BJDjUR_c.js → chunk-ATLVNIR6-BYZB6C5T.js} +2 -2
- package/dist/{chunk-B4BG7PRW-DzmUUpfH.js → chunk-B4BG7PRW-CwYUp6Uj.js} +7 -7
- package/dist/{chunk-CVBHYZKI-Dhc_e3rA.js → chunk-CVBHYZKI-Bb2XMuXJ.js} +1 -1
- package/dist/{chunk-DI55MBZ5-gTd3J8Tu.js → chunk-DI55MBZ5-Gyro6dvN.js} +6 -6
- package/dist/{chunk-EXTU4WIE-DyoOs5QX.js → chunk-EXTU4WIE-BlA7aWEw.js} +2 -2
- package/dist/{chunk-FMBD7UC4-geNUIndh.js → chunk-FMBD7UC4-C0DZU_4q.js} +1 -1
- package/dist/{chunk-HN2XXSSU-CqPwpolw.js → chunk-HN2XXSSU-BsB4dtgF.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-BGnAIbOP.js → chunk-JA3XYJ7Z-Cm-pccR-.js} +3 -3
- package/dist/{chunk-JZLCHNYA-CIRgweVQ.js → chunk-JZLCHNYA-CoLqqXMe.js} +6 -6
- package/dist/{chunk-MI3HLSF2-DOJkNER1.js → chunk-MI3HLSF2-DeDZS-tQ.js} +1 -1
- package/dist/{chunk-N4CR4FBY-DKSvXAIS.js → chunk-N4CR4FBY-ByLbY9L-.js} +7 -7
- package/dist/{chunk-QN33PNHL-B6zC8BTi.js → chunk-QN33PNHL-eodIiY9F.js} +2 -2
- package/dist/{chunk-QXUST7PY-C7750n_u.js → chunk-QXUST7PY-CuJlDW6A.js} +10 -10
- package/dist/{chunk-QZHKN3VN-BF_oGUlG.js → chunk-QZHKN3VN-Diy_Cdek.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-CBkH6JZZ.js → chunk-S3R3BYOJ-CwDGYMVf.js} +3 -3
- package/dist/{chunk-TZMSLE5B-DObGL7xi.js → chunk-TZMSLE5B-DFDr5FCr.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-BDBX9etk.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-Bzj_L_BF.js +30 -0
- package/dist/{clike-B1zispTy.js → clike-B90WKs4D.js} +1 -1
- package/dist/clojure-CUC2I1hM.js +4 -0
- package/dist/cmake-8PcMxXnB.js +4 -0
- package/dist/cobol-DkkkDz5v.js +4 -0
- package/dist/{code-block-37QAKDTI-u5kgjqmr.js → code-block-37QAKDTI-zh5AeoJo.js} +1 -1
- package/dist/coffeescript-CCupxOZf.js +4 -0
- package/dist/commonlisp-DhUfGX6b.js +4 -0
- package/dist/{cose-bilkent-S5V4N54A-CO4ORQHF.js → cose-bilkent-S5V4N54A-BK1nIR2J.js} +1 -1
- package/dist/crystal-DSaw6rFQ.js +4 -0
- package/dist/css-D4QDewkG.js +4 -0
- package/dist/cypher-CrYVqw_F.js +4 -0
- package/dist/d-Cr3H3pPx.js +4 -0
- package/dist/{dagre-6UL2VRFP-C2C2XxsB.js → dagre-6UL2VRFP-r2rSdJYL.js} +9 -9
- package/dist/{data-grid-overlay-editor-BXqtz1ia.js → data-grid-overlay-editor-BVFT970w.js} +2 -2
- package/dist/{diagram-PSM6KHXK-DHBY-94p.js → diagram-PSM6KHXK-BpxVUe9U.js} +10 -10
- package/dist/{diagram-QEK2KX5R-CgMshOwn.js → diagram-QEK2KX5R-q3dHUcp6.js} +5 -5
- package/dist/{diagram-S2PKOQOG-F1KPva3Y.js → diagram-S2PKOQOG-MDBKrxSC.js} +5 -5
- package/dist/diff-ODiZJGls.js +4 -0
- package/dist/dist-BKTAAusE.js +5 -0
- package/dist/{dist-PZgrh2z6.js → dist-BNXv9Wjt.js} +1 -1
- package/dist/{dist-CHWVQZ6Z.js → dist-C-tlm9eD.js} +1 -1
- package/dist/dist-CgQuqOGS.js +5 -0
- package/dist/dist-CgkWmw0c.js +5 -0
- package/dist/{dist-C_Kw_Kc0.js → dist-CzKXtzDE.js} +1 -1
- package/dist/{dist-B1H2TQGB.js → dist-DGkeEIsV.js} +1 -1
- package/dist/dist-DOwZz8aI.js +5 -0
- package/dist/{dist-CG4LWTPv.js → dist-DRiJGkDN.js} +1 -1
- package/dist/{dist-DurmUshd.js → dist-GR6ABeNk.js} +1 -1
- package/dist/{dist-zVskjQcA.js → dist-NcujbSeH.js} +1 -1
- package/dist/{dist-BhBtK2sL.js → dist-WETuLs_C.js} +1 -1
- package/dist/dist-pNvwCQqJ.js +5 -0
- package/dist/dist-yK8yJfz2.js +5 -0
- package/dist/{dockerfile-BBT_Ira6.js → dockerfile-D1Q_4uCN.js} +1 -1
- package/dist/dtd-C-t2Rk7F.js +4 -0
- package/dist/dylan-B4ctBLGp.js +4 -0
- package/dist/ecl-DqWfymni.js +4 -0
- package/dist/eiffel-DjBKKAr7.js +4 -0
- package/dist/elm--fxeC0FV.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-18gGng8V.js → erDiagram-Q2GNP2WA-CX1XdqVD.js} +13 -13
- package/dist/erlang-CaKXCX6H.js +4 -0
- package/dist/{esm-CgRNPmz8.js → esm-QY6C-Sev.js} +96 -96
- package/dist/{factor-DdqWbSyy.js → factor--4HHM8Rw.js} +1 -1
- package/dist/factor-DlLO5EFS.js +4 -0
- package/dist/{flowDiagram-NV44I4VS-iHFiHYe0.js → flowDiagram-NV44I4VS-BCj-ONTw.js} +15 -15
- package/dist/forth-rOO6LVj_.js +4 -0
- package/dist/fortran-CUg15VGR.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-D7GixxiF.js → ganttDiagram-JELNMOA3-D1l5ewiQ.js} +8 -8
- package/dist/gas-BMRJspiW.js +4 -0
- package/dist/gherkin-DRxzijZU.js +4 -0
- package/dist/{gitGraphDiagram-NY62KEGX-CJFHytRK.js → gitGraphDiagram-NY62KEGX-KdZh0iiW.js} +5 -5
- package/dist/{glide-data-editor-BYwb17Bf.js → glide-data-editor-2RvcPqmc.js} +75 -76
- package/dist/groovy-BmrQ8pUP.js +4 -0
- package/dist/haskell-BuaYfKOz.js +4 -0
- package/dist/haxe-DcH9eA0a.js +5 -0
- package/dist/idl-DGlcm4Ls.js +4 -0
- package/dist/{infoDiagram-WHAUD3N6-B5Lkh3A9.js → infoDiagram-WHAUD3N6-PSH7lQ0D.js} +3 -3
- package/dist/javascript-CeTk7rzr.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-CV_9R9iP.js → journeyDiagram-XKPGCS4Q-BrTAxQ1J.js} +5 -5
- package/dist/julia-BoP_q1gm.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-Dp21D5Ym.js → kanban-definition-3W4ZIXB7-BoYCDp_9.js} +10 -10
- package/dist/{katex-CX2BKujk.js → katex-DaGuLbVh.js} +1 -1
- package/dist/{line-LK_5q2B9.js → line-Bc27KE1D.js} +3 -3
- package/dist/{linear-vWf1Qj0e.js → linear-Bnc6E9kA.js} +4 -4
- package/dist/livescript-B7IMN-ba.js +4 -0
- package/dist/{loader-B0KEFFi-.js → loader-C0-eIoas.js} +1 -1
- package/dist/lua-q1InavKb.js +4 -0
- package/dist/main.js +180 -180
- package/dist/mathematica-DvR8-_EI.js +4 -0
- package/dist/mbox-7h5MNBS_.js +4 -0
- package/dist/{mermaid-4DMBBIKO-BhDCqnO1.js → mermaid-4DMBBIKO-BmJdHPwx.js} +1 -1
- package/dist/{mermaid-B__BZSXU.js → mermaid-C2cSe5YL.js} +40 -40
- package/dist/{mhchem-w1tkUnWr.js → mhchem-B_tiMbKF.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-B_5mfdYp.js → mindmap-definition-VGOIOE7T-CmRjsKEt.js} +12 -12
- package/dist/mirc-D-XM8A5c.js +4 -0
- package/dist/mllike-BQGkkbmf.js +6 -0
- package/dist/modelica-D_yRj_WU.js +4 -0
- package/dist/mscgen-B-rltAjp.js +6 -0
- package/dist/mumps-2kh8TU2b.js +4 -0
- package/dist/{nsis-CunMjZ_n.js → nsis-B6EN9LWI.js} +1 -1
- package/dist/nsis-CtusEqwb.js +4 -0
- package/dist/ntriples-BdAXw6zV.js +4 -0
- package/dist/{number-overlay-editor-D-4WQAGX.js → number-overlay-editor-DKVJgXpp.js} +1 -1
- package/dist/octave-CsNFmVp5.js +4 -0
- package/dist/{ordinal-IlASfRja.js → ordinal-DLLbwLkP.js} +1 -1
- package/dist/oz-odIXCrKd.js +4 -0
- package/dist/pascal-B9Mfk3Fo.js +4 -0
- package/dist/perl-C48inLcz.js +4 -0
- package/dist/{pieDiagram-ADFJNKIX-B-DGEopK.js → pieDiagram-ADFJNKIX-CtxQlnsU.js} +10 -10
- package/dist/pig-uwRtAssU.js +4 -0
- package/dist/powershell-CXqlca-i.js +4 -0
- package/dist/{precisionRound-CGLoV26P.js → precisionRound-Duzbr5ur.js} +1 -1
- package/dist/properties-D6Zu1rpK.js +4 -0
- package/dist/protobuf-BlNNWZaR.js +4 -0
- package/dist/pug-DytcK7bv.js +4 -0
- package/dist/{pug-Dr-sA_9V.js → pug-xrm7jQ2R.js} +1 -1
- package/dist/puppet-lJ8Ok3iY.js +4 -0
- package/dist/python-cMaF7kUp.js +4 -0
- package/dist/q-Dgt2HYQh.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-M_yRSIZn.js → quadrantDiagram-AYHSOK5B-DllnB2Hl.js} +4 -4
- package/dist/r-Bm4S4awf.js +4 -0
- package/dist/react-vega-1ub36dPZ.js +9 -0
- package/dist/{react-vega-DLFvGrpJ.js → react-vega-CCNu2JE0.js} +18 -18
- package/dist/{requirementDiagram-UZGBJVZJ-9Wt82hOZ.js → requirementDiagram-UZGBJVZJ-D36MI1k0.js} +12 -12
- package/dist/rpm-_8LbzMVc.js +5 -0
- package/dist/ruby-Cr8IJ5VZ.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-x_aTXZeN.js → sankeyDiagram-TZEHDZUN-D1mygNPC.js} +4 -4
- package/dist/sas-CFcSfo2_.js +4 -0
- package/dist/scheme-N4XRoKgc.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-CXXmJqiQ.js → sequenceDiagram-WL72ISMW-CWdn91Rf.js} +6 -6
- package/dist/shell-B4L7f_ds.js +4 -0
- package/dist/sieve-UI6J3Gm0.js +4 -0
- package/dist/smalltalk-BuaPZAZU.js +4 -0
- package/dist/sparql-1rKrq463.js +4 -0
- package/dist/{src-szye8OCw.js → src-jICM_d2B.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-CiSKS_Mx.js → stateDiagram-FKZM4ZOC-CPxroWXd.js} +15 -15
- package/dist/{stateDiagram-v2-4FDKWEC3-A43Itnjp.js → stateDiagram-v2-4FDKWEC3-BpM9Q54b.js} +13 -13
- package/dist/{step-1PmBKr2y.js → step-BqVgkWtk.js} +1 -1
- package/dist/stylus-DvSovJEP.js +4 -0
- package/dist/swift-D-_E7Yyb.js +4 -0
- package/dist/tcl-Di5sAVHN.js +4 -0
- package/dist/textile-Benwt66z.js +4 -0
- package/dist/{time-DC4qQGmA.js → time-CrYsYnQU.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-DR26eWb4.js → timeline-definition-IT6M3QCI-CVnRHx_t.js} +3 -3
- package/dist/toml-CeOvPOkY.js +4 -0
- package/dist/troff-DJN9hfgu.js +4 -0
- package/dist/ttcn-DQW2Psjf.js +4 -0
- package/dist/ttcn-cfg-zFG_MNpg.js +4 -0
- package/dist/turtle-DHRyNlSc.js +4 -0
- package/dist/{types-Bb-6p8hv.js → types-Ckva8JJq.js} +203 -156
- package/dist/{useDeepCompareMemoize-BhZZsis0.js → useDeepCompareMemoize-ChviuF5n.js} +1 -1
- package/dist/vb-CXWH9DD-.js +4 -0
- package/dist/vbscript-qr8qVck5.js +4 -0
- package/dist/{vega-component-DCxUyPnb.js → vega-component-CnG0vAjf.js} +7 -7
- package/dist/{vega-loader.browser-BJ1uJidF.js → vega-loader.browser-DqHiiBeQ.js} +3 -3
- package/dist/velocity-C_9pUJRx.js +4 -0
- package/dist/verilog-DxBstgBa.js +4 -0
- package/dist/vhdl-odUxAbE6.js +4 -0
- package/dist/webidl-Dfn5Rku4.js +4 -0
- package/dist/xquery-CrJs6SXr.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BcVxCRox.js → xychartDiagram-PRI3JC2R-BltwMWKC.js} +11 -11
- package/dist/yacas-B-uDDLZe.js +4 -0
- package/dist/z80-51gxgAXE.js +4 -0
- package/package.json +2 -3
- package/src/components/data-table/__tests__/columns.test.tsx +47 -0
- package/src/components/data-table/column-header.tsx +3 -0
- package/src/components/data-table/columns.tsx +17 -2
- package/src/plugins/impl/plotly/Plot.tsx +171 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +5 -10
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +1 -0
- package/src/plugins/impl/plotly/__tests__/usePlotlyLayout.test.ts +2 -1
- package/src/plugins/impl/plotly/parse-from-template.ts +1 -0
- package/src/plugins/impl/plotly/usePlotlyLayout.ts +2 -1
- package/dist/apl-BuwKwesW.js +0 -4
- package/dist/asciiarmor-zAEd_wtn.js +0 -4
- package/dist/asn1-DWEA66J4.js +0 -4
- package/dist/brainfuck-mIPR6Ong.js +0 -4
- package/dist/classDiagram-2ON5EDUG-B9pkKjjc.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-CRhhA0tV.js +0 -30
- package/dist/clojure-DkhhNHNQ.js +0 -4
- package/dist/cmake-1obPvqtc.js +0 -4
- package/dist/cobol-oWNTiXPE.js +0 -4
- package/dist/coffeescript-LtYUvf6r.js +0 -4
- package/dist/commonlisp-C_06qBYF.js +0 -4
- package/dist/crystal-CDJkbx14.js +0 -4
- package/dist/css-Bi_Nk0uN.js +0 -4
- package/dist/cypher-TrG0NvZ0.js +0 -4
- package/dist/d-CFKOrZsi.js +0 -4
- package/dist/diff-CfnSF48q.js +0 -4
- package/dist/dist-2OSzSqy2.js +0 -5
- package/dist/dist-BNvasp6N.js +0 -5
- package/dist/dist-C_8-swED.js +0 -5
- package/dist/dist-DIhtur5b.js +0 -5
- package/dist/dist-DoQ7RS4e.js +0 -5
- package/dist/dist-DsMd-F9h.js +0 -5
- package/dist/dtd-Ctw8_JkU.js +0 -4
- package/dist/dylan-f7rMBKDP.js +0 -4
- package/dist/ecl-C2h3oBMY.js +0 -4
- package/dist/eiffel-Ce81wv20.js +0 -4
- package/dist/elm-BVV8QQcc.js +0 -4
- package/dist/erlang-DjB35ZUh.js +0 -4
- package/dist/factor-CIcp3U2B.js +0 -4
- package/dist/forth-CVgjsHhD.js +0 -4
- package/dist/fortran-CcTXj0d_.js +0 -4
- package/dist/gas-JWpamkLf.js +0 -4
- package/dist/gherkin-BveSCSJV.js +0 -4
- package/dist/groovy-Np3AZt00.js +0 -4
- package/dist/haskell-CVfmFALm.js +0 -4
- package/dist/haxe-C10xkMLg.js +0 -5
- package/dist/idl-CKBSGnKC.js +0 -4
- package/dist/javascript-Cur-15Bn.js +0 -4
- package/dist/julia-BZZH2Gnx.js +0 -4
- package/dist/livescript-D_rTTm_U.js +0 -4
- package/dist/lua-Mf_Of7eV.js +0 -4
- package/dist/mathematica-DCYjugDb.js +0 -4
- package/dist/mbox-KBWrT8JD.js +0 -4
- package/dist/mirc-JwEQJ8Fb.js +0 -4
- package/dist/mllike-C7TxLvh6.js +0 -6
- package/dist/modelica-uvNgvUyw.js +0 -4
- package/dist/mscgen-CGnokp5x.js +0 -6
- package/dist/mumps-Dl9QdOZz.js +0 -4
- package/dist/nsis-BbDhbgPN.js +0 -4
- package/dist/ntriples-ChL1mlp7.js +0 -4
- package/dist/octave-B9ZGG6zv.js +0 -4
- package/dist/oz-XHEu31wr.js +0 -4
- package/dist/pascal-BxtYw-iH.js +0 -4
- package/dist/perl-Br5BgHPb.js +0 -4
- package/dist/pig-BByO2hBz.js +0 -4
- package/dist/powershell-Cd4Zaef3.js +0 -4
- package/dist/prop-types-C9QZf2SY.js +0 -51
- package/dist/properties-B-BOCIOl.js +0 -4
- package/dist/protobuf-CaLimlho.js +0 -4
- package/dist/pug-bonARSG6.js +0 -4
- package/dist/puppet-BSlT-3sc.js +0 -4
- package/dist/python-BIJhGYYP.js +0 -4
- package/dist/q-D9TX8A0B.js +0 -4
- package/dist/r-BXelX7Rl.js +0 -4
- package/dist/react-vega-3WcLHYC7.js +0 -9
- package/dist/rpm-BxAh9B1A.js +0 -5
- package/dist/ruby-BCZLQyhc.js +0 -4
- package/dist/sas-Bo7lsyNX.js +0 -4
- package/dist/scheme-Brhptkt-.js +0 -4
- package/dist/shell-fWWb8_qx.js +0 -4
- package/dist/sieve-Ba8_hMLn.js +0 -4
- package/dist/smalltalk-7sHxwMDT.js +0 -4
- package/dist/sparql-BBFrPJ7z.js +0 -4
- package/dist/stylus-CIB0KT46.js +0 -4
- package/dist/swift-CZinekXz.js +0 -4
- package/dist/tcl-DCHZJVq_.js +0 -4
- package/dist/textile-ThTMxgkN.js +0 -4
- package/dist/toml-DK17wlJ7.js +0 -4
- package/dist/troff-CuUAOgMy.js +0 -4
- package/dist/ttcn-DS2tj6rW.js +0 -4
- package/dist/ttcn-cfg-CdZGarnc.js +0 -4
- package/dist/turtle-Bkz-FLZ7.js +0 -4
- package/dist/vb-ITdOmxvR.js +0 -4
- package/dist/vbscript-B7oeGyfL.js +0 -4
- package/dist/velocity-D__EkuSd.js +0 -4
- package/dist/verilog-CPH50gr9.js +0 -4
- package/dist/vhdl-CQAwKCk_.js +0 -4
- package/dist/webidl-BnEptfVX.js +0 -4
- package/dist/xquery-D7eTv-CR.js +0 -4
- package/dist/yacas-0x1rX89s.js +0 -4
- package/dist/z80-B25SJVDf.js +0 -4
- /package/dist/{ImageComparisonComponent-DkEXPki_.js → ImageComparisonComponent-CRbA-1eg.js} +0 -0
- /package/dist/{apl-D9gTcP3Q.js → apl-Oc3bL26_.js} +0 -0
- /package/dist/{array-D7wW5QoO.js → array-CEIRxyh3.js} +0 -0
- /package/dist/{asciiarmor-mLyg-Z5h.js → asciiarmor-DTbPh2VI.js} +0 -0
- /package/dist/{asn1-AE7eHomk.js → asn1-CGhwu1Ri.js} +0 -0
- /package/dist/{brainfuck-Bdd6NcL6.js → brainfuck-CA0L8lRq.js} +0 -0
- /package/dist/{click-outside-container-DNfggvIW.js → click-outside-container-C_k38vlR.js} +0 -0
- /package/dist/{clike-D_s3fKg5.js → clike-CEtUBPHD.js} +0 -0
- /package/dist/{clojure-zTYBCd80.js → clojure-BszjvdGo.js} +0 -0
- /package/dist/{cmake-BnJV90fC.js → cmake-B2Gvps8b.js} +0 -0
- /package/dist/{cobol-CH0OZO8A.js → cobol-DuMch8nn.js} +0 -0
- /package/dist/{coffeescript-CLhc1U6Q.js → coffeescript-L9aKXVsJ.js} +0 -0
- /package/dist/{colors-6DRQ0kEF.js → colors-DR_aHfmQ.js} +0 -0
- /package/dist/{commonlisp-8K2-IkUD.js → commonlisp-CrtdssxB.js} +0 -0
- /package/dist/{crystal-8to4H-ep.js → crystal-vvNY0LpY.js} +0 -0
- /package/dist/{css-BVo-JOy5.js → css-B1GdzqT1.js} +0 -0
- /package/dist/{cypher-BTFaDDd_.js → cypher-BtZvV7bW.js} +0 -0
- /package/dist/{d-c9bddW2W.js → d-B0UN3V-Z.js} +0 -0
- /package/dist/{defaultLocale-Bxoo2-30.js → defaultLocale-B_A76Zpk.js} +0 -0
- /package/dist/{defaultLocale-qS7DaAmi.js → defaultLocale-DjFHq3Xk.js} +0 -0
- /package/dist/{diff-PA28xMKg.js → diff-DOpgjj1W.js} +0 -0
- /package/dist/{dist-Cpj5BHNP.js → dist-BJUs1DAG.js} +0 -0
- /package/dist/{dist-C6p7UKkB.js → dist-BqYNqP5W.js} +0 -0
- /package/dist/{dist-BcXuIt-h.js → dist-BsBHh4jO.js} +0 -0
- /package/dist/{dist-9trj4p6n.js → dist-C-at-5cM.js} +0 -0
- /package/dist/{dist-DA1J6LvO.js → dist-C0e1aNzV.js} +0 -0
- /package/dist/{dist--Em7gfgX.js → dist-CsjsvW0K.js} +0 -0
- /package/dist/{dist-BbQ-5HAA.js → dist-Ct5hkOvC.js} +0 -0
- /package/dist/{dist-b7Sc3Tj8.js → dist-D1q38GZb.js} +0 -0
- /package/dist/{dist-MFzhAmKV.js → dist-D4ObdSdT.js} +0 -0
- /package/dist/{dist-BBYTEAvO.js → dist-DF_77D2B.js} +0 -0
- /package/dist/{dist--JwRU9u5.js → dist-DRtGOCCq.js} +0 -0
- /package/dist/{dist-CsN7lsea.js → dist-DiCjkKC2.js} +0 -0
- /package/dist/{dist-9J8_3DZN.js → dist-bRBEzJF8.js} +0 -0
- /package/dist/{dist-BKGWAN8J.js → dist-tdABwZK5.js} +0 -0
- /package/dist/{dist-DIVeCGlI.js → dist-yI-ah_iK.js} +0 -0
- /package/dist/{dtd-DRlC7Bx8.js → dtd-Ctnjxrle.js} +0 -0
- /package/dist/{dylan-d5ufc25E.js → dylan-DFXkoaZy.js} +0 -0
- /package/dist/{ecl-Ci3afVKc.js → ecl-C1NExZip.js} +0 -0
- /package/dist/{eiffel-G6DmeEi3.js → eiffel-uXVGgleg.js} +0 -0
- /package/dist/{elm-ByYWHu8b.js → elm-CBOFnnib.js} +0 -0
- /package/dist/{erlang-C7_LcVDw.js → erlang-DMnrT8XK.js} +0 -0
- /package/dist/{esm-CAd2HmbR.js → esm-0_ieXYNc.js} +0 -0
- /package/dist/{forth-BgUerAyz.js → forth-DDpxS4nw.js} +0 -0
- /package/dist/{fortran-BCXxm4xF.js → fortran-B6uYqQMz.js} +0 -0
- /package/dist/{gas-CKTQRKLl.js → gas-BKnWzuFz.js} +0 -0
- /package/dist/{gherkin-ByVP9cY_.js → gherkin-pBt0wT4X.js} +0 -0
- /package/dist/{groovy-BPbrw0GZ.js → groovy-DKsn4ppB.js} +0 -0
- /package/dist/{haskell-B8fq1DW4.js → haskell-BJVBJQcy.js} +0 -0
- /package/dist/{haxe-B7SHQmJo.js → haxe-rLN5UZU5.js} +0 -0
- /package/dist/{idl-CeJBDjsl.js → idl-B4mwMAo-.js} +0 -0
- /package/dist/{init-BfRhston.js → init-TaqZJsBY.js} +0 -0
- /package/dist/{javascript-dCv9_Kn8.js → javascript-Hf2NLNC0.js} +0 -0
- /package/dist/{julia-CD5lO88_.js → julia-GGpx21YN.js} +0 -0
- /package/dist/{katex-Db0k5oV_.js → katex-Ba7xZPrx.js} +0 -0
- /package/dist/{livescript-Cc8RvFBv.js → livescript-CSvXMspZ.js} +0 -0
- /package/dist/{lua-4nedfnvd.js → lua-CVMR5LMW.js} +0 -0
- /package/dist/{math-BbMyrONz.js → math-CTnb-N1W.js} +0 -0
- /package/dist/{mathematica-BIufdZr2.js → mathematica-JENNt-p4.js} +0 -0
- /package/dist/{mbox-DQkYSHKe.js → mbox-mzifoc8E.js} +0 -0
- /package/dist/{mirc-CI-RWqUR.js → mirc-BXoiItvN.js} +0 -0
- /package/dist/{mllike-DQzbf1xo.js → mllike-H-KR9OuH.js} +0 -0
- /package/dist/{modelica-BnF_cDWj.js → modelica-B6Hm3mMl.js} +0 -0
- /package/dist/{mscgen-MirFrDhW.js → mscgen-D8TF_Hei.js} +0 -0
- /package/dist/{mumps-eNRTuWOD.js → mumps-CD-kNPt4.js} +0 -0
- /package/dist/{ntriples-BLneip4i.js → ntriples-DgnpxU40.js} +0 -0
- /package/dist/{octave-C0eG-pKq.js → octave-CkobqyVm.js} +0 -0
- /package/dist/{oz-BPMLow2T.js → oz-ChDLd9tS.js} +0 -0
- /package/dist/{pascal-5eb9v5Dl.js → pascal-CvlkwK7E.js} +0 -0
- /package/dist/{path-C_x2ySFi.js → path-7gr7eZmp.js} +0 -0
- /package/dist/{perl-DOu6rCkF.js → perl-BNEFTNbM.js} +0 -0
- /package/dist/{pig-CRW0kne3.js → pig-Cd1DMS7P.js} +0 -0
- /package/dist/{powershell-CWgJhiiJ.js → powershell-CPxA0zpc.js} +0 -0
- /package/dist/{properties-CHxpmfXW.js → properties-BaFBm-Xa.js} +0 -0
- /package/dist/{protobuf-DGUXb_-T.js → protobuf-BQV_-X0H.js} +0 -0
- /package/dist/{puppet-C7uSiW6_.js → puppet-LXLST0mx.js} +0 -0
- /package/dist/{python-DAbhVcUr.js → python-DLjLzX4k.js} +0 -0
- /package/dist/{q-DKjWHias.js → q-DswTX1Y9.js} +0 -0
- /package/dist/{r-KD2KhyeL.js → r-CO7NpMwE.js} +0 -0
- /package/dist/{range-BYuZFTbA.js → range-DwpxnYuB.js} +0 -0
- /package/dist/{rpm-GFtnpQ6M.js → rpm-BlmEDT6r.js} +0 -0
- /package/dist/{ruby-CBAewzLY.js → ruby-BTPKgeZZ.js} +0 -0
- /package/dist/{sas-CCi_AaZi.js → sas-DTDTiNO8.js} +0 -0
- /package/dist/{scheme-CGGGD6kR.js → scheme-UzAAg4GJ.js} +0 -0
- /package/dist/{shell-b7vZ8ucI.js → shell-DQ0hQCsB.js} +0 -0
- /package/dist/{sieve-ClXOUV85.js → sieve-BVyYIx9u.js} +0 -0
- /package/dist/{simple-mode-Uad4lEG7.js → simple-mode-Dryu-fC9.js} +0 -0
- /package/dist/{slides-component-Dp-y50K9.js → slides-component-DfwLApNr.js} +0 -0
- /package/dist/{smalltalk-_PFt9_gp.js → smalltalk-DAdMAHTu.js} +0 -0
- /package/dist/{sparql-BCF6qcHt.js → sparql-Bi7quYgw.js} +0 -0
- /package/dist/{stylus-DMFZWz-G.js → stylus-jhpzcQ6Y.js} +0 -0
- /package/dist/{swift-De2YpSxT.js → swift-BrO8qThZ.js} +0 -0
- /package/dist/{tcl-jV8Xs_1k.js → tcl-s5QI5gv3.js} +0 -0
- /package/dist/{textile-D_zo778l.js → textile-ClhvJrxM.js} +0 -0
- /package/dist/{timer-pEiW44EO.js → timer-DV8t68ti.js} +0 -0
- /package/dist/{toml-_M0gsKn5.js → toml-TFa3EJQE.js} +0 -0
- /package/dist/{treemap-BzS5cW_6.js → treemap-CQJ0bIDy.js} +0 -0
- /package/dist/{troff-B06gyD33.js → troff-SqLg0heF.js} +0 -0
- /package/dist/{ttcn-DoQoQNUM.js → ttcn-Cfrap7HJ.js} +0 -0
- /package/dist/{ttcn-cfg-l_6PksD2.js → ttcn-cfg-Dopc-iwE.js} +0 -0
- /package/dist/{turtle-zEnD4bpn.js → turtle-Dt52DvVH.js} +0 -0
- /package/dist/{useAsyncData-Dyq3DyOF.js → useAsyncData-dr8GazGv.js} +0 -0
- /package/dist/{vb-fUsnAuzb.js → vb-D1pAvfDe.js} +0 -0
- /package/dist/{vbscript-CVlD7uZQ.js → vbscript-DZ7RBxn5.js} +0 -0
- /package/dist/{velocity-CHkEIdMC.js → velocity-Csau7eZy.js} +0 -0
- /package/dist/{verilog-B3ctZTB4.js → verilog-gXlZACs5.js} +0 -0
- /package/dist/{vhdl-rXdBgR5O.js → vhdl-NaUWbI1B.js} +0 -0
- /package/dist/{webidl-Cv9aQfcc.js → webidl-BJmPjW01.js} +0 -0
- /package/dist/{xquery-Du0w47aa.js → xquery-CJIPsC0g.js} +0 -0
- /package/dist/{yacas-Eq4p_g3L.js → yacas-8f2Vjiiz.js} +0 -0
- /package/dist/{z80-Dz4HTTRf.js → z80-s5Xk2hCP.js} +0 -0
|
@@ -10,7 +10,7 @@ import { s as Logger } from "./hotkeys-B5WnGZXF.js";
|
|
|
10
10
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
11
11
|
import { f as waitFor, p as isIslands, u as store, x as atom } from "./useTheme-SlKl8MlS.js";
|
|
12
12
|
import { r as KnownQueryParams } from "./constants-DrOu5vvd.js";
|
|
13
|
-
import { i as tableFromIPC } from "./loader-
|
|
13
|
+
import { i as tableFromIPC } from "./loader-C0-eIoas.js";
|
|
14
14
|
var CircleQuestionMark = createLucideIcon("circle-question-mark", [
|
|
15
15
|
["circle", {
|
|
16
16
|
cx: "12",
|
|
@@ -2,7 +2,7 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
2
2
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
3
3
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
4
4
|
import "./Combination-BTMrlhzT.js";
|
|
5
|
-
import { S as CircleQuestionMark, a as AlertTitle, m as asRemoteURL, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-
|
|
5
|
+
import { S as CircleQuestionMark, a as AlertTitle, m as asRemoteURL, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-ChviuF5n.js";
|
|
6
6
|
import { l as Events } from "./button-Cy0ElmIm.js";
|
|
7
7
|
import { o as Objects, s as Logger } from "./hotkeys-B5WnGZXF.js";
|
|
8
8
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
@@ -11,12 +11,12 @@ import { l as Tooltip, n as ErrorBanner } from "./error-banner-D2zjeN_a.js";
|
|
|
11
11
|
import { h as useEvent_default, n as useTheme } from "./useTheme-SlKl8MlS.js";
|
|
12
12
|
import { t as _baseUniq_default } from "./_baseUniq-4lqa8rDi.js";
|
|
13
13
|
import { i as debounce_default } from "./constants-DrOu5vvd.js";
|
|
14
|
-
import { a as tooltipHandler, n as vegaLoadData } from "./loader-
|
|
15
|
-
import { n as formats } from "./vega-loader.browser-
|
|
16
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
17
|
-
import { t as j } from "./react-vega-
|
|
18
|
-
import "./defaultLocale-
|
|
19
|
-
import "./defaultLocale-
|
|
14
|
+
import { a as tooltipHandler, n as vegaLoadData } from "./loader-C0-eIoas.js";
|
|
15
|
+
import { n as formats } from "./vega-loader.browser-DqHiiBeQ.js";
|
|
16
|
+
import { t as useAsyncData } from "./useAsyncData-dr8GazGv.js";
|
|
17
|
+
import { t as j } from "./react-vega-CCNu2JE0.js";
|
|
18
|
+
import "./defaultLocale-DjFHq3Xk.js";
|
|
19
|
+
import "./defaultLocale-B_A76Zpk.js";
|
|
20
20
|
function uniq(e) {
|
|
21
21
|
return e && e.length ? _baseUniq_default(e) : [];
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as tickStep, n as precisionPrefix_default, r as precisionFixed_default, s as bisector, t as precisionRound_default } from "./precisionRound-
|
|
2
|
-
import { i as formatSpecifier, n as formatPrefix, r as locale_default, t as format$1 } from "./defaultLocale-
|
|
3
|
-
import { C as timeMinute, N as millisecond, S as utcHour, T as second, _ as utcSunday, a as formatLocale, b as utcDay, c as timeMonth, i as utcParse, l as utcMonth, n as timeParse, o as timeYear, p as timeSunday, r as utcFormat, s as utcYear, t as timeFormat, v as timeDay, w as utcMinute, x as timeHour } from "./defaultLocale-
|
|
1
|
+
import { a as tickStep, n as precisionPrefix_default, r as precisionFixed_default, s as bisector, t as precisionRound_default } from "./precisionRound-Duzbr5ur.js";
|
|
2
|
+
import { i as formatSpecifier, n as formatPrefix, r as locale_default, t as format$1 } from "./defaultLocale-DjFHq3Xk.js";
|
|
3
|
+
import { C as timeMinute, N as millisecond, S as utcHour, T as second, _ as utcSunday, a as formatLocale, b as utcDay, c as timeMonth, i as utcParse, l as utcMonth, n as timeParse, o as timeYear, p as timeSunday, r as utcFormat, s as utcYear, t as timeFormat, v as timeDay, w as utcMinute, x as timeHour } from "./defaultLocale-B_A76Zpk.js";
|
|
4
4
|
function accessor(o, P, F) {
|
|
5
5
|
return o.fields = P || [], o.fname = F, o;
|
|
6
6
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
2
2
|
import "./purify.es-Brw-U87Q.js";
|
|
3
|
-
import { t as linear } from "./linear-
|
|
4
|
-
import { n as ordinal } from "./ordinal-
|
|
5
|
-
import { t as range } from "./range-
|
|
6
|
-
import "./defaultLocale-
|
|
7
|
-
import { t as line_default } from "./line-
|
|
8
|
-
import { i as cleanAndMerge } from "./chunk-S3R3BYOJ-
|
|
9
|
-
import { n as initRange } from "./init-
|
|
10
|
-
import { i as log, r as __name } from "./src-
|
|
11
|
-
import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-
|
|
12
|
-
import { t as selectSvgElement } from "./chunk-EXTU4WIE-
|
|
3
|
+
import { t as linear } from "./linear-Bnc6E9kA.js";
|
|
4
|
+
import { n as ordinal } from "./ordinal-DLLbwLkP.js";
|
|
5
|
+
import { t as range } from "./range-DwpxnYuB.js";
|
|
6
|
+
import "./defaultLocale-DjFHq3Xk.js";
|
|
7
|
+
import { t as line_default } from "./line-Bc27KE1D.js";
|
|
8
|
+
import { i as cleanAndMerge } from "./chunk-S3R3BYOJ-CwDGYMVf.js";
|
|
9
|
+
import { n as initRange } from "./init-TaqZJsBY.js";
|
|
10
|
+
import { i as log, r as __name } from "./src-jICM_d2B.js";
|
|
11
|
+
import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-BGWvKte3.js";
|
|
12
|
+
import { t as selectSvgElement } from "./chunk-EXTU4WIE-BlA7aWEw.js";
|
|
13
13
|
import "./dist-BYznkC5E.js";
|
|
14
|
-
import { t as computeDimensionOfText } from "./chunk-JA3XYJ7Z-
|
|
14
|
+
import { t as computeDimensionOfText } from "./chunk-JA3XYJ7Z-Cm-pccR-.js";
|
|
15
15
|
function band() {
|
|
16
16
|
var e = ordinal().unknown(void 0), w = e.domain, T = e.range, D = 0, O = 1, k, A, j = false, M = 0, N = 0, P = 0.5;
|
|
17
17
|
delete e.unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marimo-team/islands",
|
|
3
|
-
"version": "0.19.10-
|
|
3
|
+
"version": "0.19.10-dev9",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -157,7 +157,6 @@
|
|
|
157
157
|
"react-grid-layout": "^1.5.3",
|
|
158
158
|
"react-hook-form": "7.54.2",
|
|
159
159
|
"react-markdown": "^9.1.0",
|
|
160
|
-
"react-plotly.js": "^2.6.0",
|
|
161
160
|
"react-resizable-panels": "2.1.9",
|
|
162
161
|
"react-use-event-hook": "^0.9.6",
|
|
163
162
|
"react-vega": "^8.0.0",
|
|
@@ -227,9 +226,9 @@
|
|
|
227
226
|
"@types/katex": "^0.16.8",
|
|
228
227
|
"@types/lodash-es": "^4.17.12",
|
|
229
228
|
"@types/node": "^24.10.9",
|
|
229
|
+
"@types/plotly.js": "^2.33.4",
|
|
230
230
|
"@types/react": "^19.2.10",
|
|
231
231
|
"@types/react-dom": "^19.2.3",
|
|
232
|
-
"@types/react-plotly.js": "^2.6.4",
|
|
233
232
|
"@types/timestring": "^6.0.5",
|
|
234
233
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
235
234
|
"@typescript-eslint/parser": "^7.15.0",
|
|
@@ -243,6 +243,53 @@ describe("generateColumns", () => {
|
|
|
243
243
|
expect(cell?.props.className).toContain("center");
|
|
244
244
|
});
|
|
245
245
|
|
|
246
|
+
it("should apply text justification to column header parents", () => {
|
|
247
|
+
const columns = generateColumns({
|
|
248
|
+
rowHeaders: [],
|
|
249
|
+
selection: null,
|
|
250
|
+
fieldTypes,
|
|
251
|
+
textJustifyColumns: { name: "right", age: "center" },
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
const mockColumn = (col: (typeof columns)[number]) => ({
|
|
255
|
+
id: col.id,
|
|
256
|
+
getCanSort: () => true,
|
|
257
|
+
getCanFilter: () => false,
|
|
258
|
+
getIsSorted: () => false,
|
|
259
|
+
getSortIndex: () => -1,
|
|
260
|
+
getFilterValue: () => undefined,
|
|
261
|
+
columnDef: { meta: col.meta },
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
// Right-justified: parent wrapper should have items-end, sort/filter icons should flip to the left
|
|
265
|
+
const { container: rightContainer } = render(
|
|
266
|
+
<TooltipProvider>
|
|
267
|
+
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}
|
|
268
|
+
{(columns[0].header as any)({ column: mockColumn(columns[0]) })}
|
|
269
|
+
</TooltipProvider>,
|
|
270
|
+
);
|
|
271
|
+
const rightWrapper = rightContainer.firstElementChild;
|
|
272
|
+
expect(rightWrapper?.className).toContain("items-end");
|
|
273
|
+
const rightHeader = rightContainer.querySelector(
|
|
274
|
+
"[data-testid='data-table-sort-button']",
|
|
275
|
+
);
|
|
276
|
+
expect(rightHeader?.className).toContain("flex-row-reverse");
|
|
277
|
+
|
|
278
|
+
// Center-justified: parent wrapper should have items-center, no flex-row-reverse
|
|
279
|
+
const { container: centerContainer } = render(
|
|
280
|
+
<TooltipProvider>
|
|
281
|
+
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}
|
|
282
|
+
{(columns[1].header as any)({ column: mockColumn(columns[1]) })}
|
|
283
|
+
</TooltipProvider>,
|
|
284
|
+
);
|
|
285
|
+
const centerWrapper = centerContainer.firstElementChild;
|
|
286
|
+
expect(centerWrapper?.className).toContain("items-center");
|
|
287
|
+
const centerHeader = centerContainer.querySelector(
|
|
288
|
+
"[data-testid='data-table-sort-button']",
|
|
289
|
+
);
|
|
290
|
+
expect(centerHeader?.className).not.toContain("flex-row-reverse");
|
|
291
|
+
});
|
|
292
|
+
|
|
246
293
|
it("should not include index column if it exists", () => {
|
|
247
294
|
const columns = generateColumns({
|
|
248
295
|
rowHeaders: [],
|
|
@@ -67,6 +67,7 @@ interface DataTableColumnHeaderProps<TData, TValue>
|
|
|
67
67
|
extends React.HTMLAttributes<HTMLDivElement> {
|
|
68
68
|
column: Column<TData, TValue>;
|
|
69
69
|
header: React.ReactNode;
|
|
70
|
+
justify?: "left" | "center" | "right";
|
|
70
71
|
calculateTopKRows?: CalculateTopKRows;
|
|
71
72
|
table?: Table<TData>;
|
|
72
73
|
}
|
|
@@ -74,6 +75,7 @@ interface DataTableColumnHeaderProps<TData, TValue>
|
|
|
74
75
|
export const DataTableColumnHeader = <TData, TValue>({
|
|
75
76
|
column,
|
|
76
77
|
header,
|
|
78
|
+
justify,
|
|
77
79
|
className,
|
|
78
80
|
calculateTopKRows,
|
|
79
81
|
table,
|
|
@@ -101,6 +103,7 @@ export const DataTableColumnHeader = <TData, TValue>({
|
|
|
101
103
|
<div
|
|
102
104
|
className={cn(
|
|
103
105
|
"group flex items-center my-1 space-between w-full select-none gap-2 border hover:border-border border-transparent hover:bg-(--slate-3) data-[state=open]:bg-(--slate-3) data-[state=open]:border-border rounded px-1 -mx-1",
|
|
106
|
+
justify === "right" && "flex-row-reverse",
|
|
104
107
|
className,
|
|
105
108
|
)}
|
|
106
109
|
data-testid="data-table-sort-button"
|
|
@@ -186,8 +186,16 @@ export function generateColumns<T>({
|
|
|
186
186
|
</div>
|
|
187
187
|
) : null;
|
|
188
188
|
|
|
189
|
+
const justify = textJustifyColumns?.[key];
|
|
190
|
+
|
|
189
191
|
const headerWithType = (
|
|
190
|
-
<div
|
|
192
|
+
<div
|
|
193
|
+
className={cn(
|
|
194
|
+
"flex flex-col",
|
|
195
|
+
justify === "center" && "items-center",
|
|
196
|
+
justify === "right" && "items-end",
|
|
197
|
+
)}
|
|
198
|
+
>
|
|
191
199
|
<span
|
|
192
200
|
className={cn(
|
|
193
201
|
"font-bold",
|
|
@@ -212,6 +220,7 @@ export function generateColumns<T>({
|
|
|
212
220
|
<DataTableColumnHeader
|
|
213
221
|
header={headerWithTooltip}
|
|
214
222
|
column={column}
|
|
223
|
+
justify={justify}
|
|
215
224
|
calculateTopKRows={calculateTopKRows}
|
|
216
225
|
table={table}
|
|
217
226
|
/>
|
|
@@ -223,7 +232,13 @@ export function generateColumns<T>({
|
|
|
223
232
|
}
|
|
224
233
|
|
|
225
234
|
return (
|
|
226
|
-
<div
|
|
235
|
+
<div
|
|
236
|
+
className={cn(
|
|
237
|
+
"flex flex-col h-full pt-0.5 pb-3 justify-between items-start",
|
|
238
|
+
justify === "center" && "items-center",
|
|
239
|
+
justify === "right" && "items-end",
|
|
240
|
+
)}
|
|
241
|
+
>
|
|
227
242
|
{dataTableColumnHeader}
|
|
228
243
|
<TableColumnSummary columnId={key} />
|
|
229
244
|
</div>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import type * as PlotlyTypes from "plotly.js";
|
|
4
|
+
// Import the pre-built dist bundle, not the source entry point.
|
|
5
|
+
// The source entry point requires Node.js polyfills (e.g. `buffer/`)
|
|
6
|
+
// that are unavailable in the browser/bundler environment.
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8
|
+
// @ts-expect-error — no type declarations for dist path, we use PlotlyTypes above
|
|
9
|
+
import Plotly from "plotly.js/dist/plotly";
|
|
10
|
+
import { useEffect, useRef } from "react";
|
|
11
|
+
|
|
12
|
+
// Plotly attaches `on` and `removeListener` to the DOM element at runtime.
|
|
13
|
+
// The @types/plotly.js PlotlyHTMLElement type includes `on` and `removeAllListeners`
|
|
14
|
+
// but not the per-handler `removeListener`. We extend the type to include it.
|
|
15
|
+
interface PlotlyElement extends PlotlyTypes.PlotlyHTMLElement {
|
|
16
|
+
removeListener(event: string, handler: (...args: never[]) => void): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Figure {
|
|
20
|
+
data: PlotlyTypes.Data[];
|
|
21
|
+
layout: Partial<PlotlyTypes.Layout>;
|
|
22
|
+
frames: PlotlyTypes.Frame[] | null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface PlotProps {
|
|
26
|
+
data: PlotlyTypes.Data[];
|
|
27
|
+
layout: Partial<PlotlyTypes.Layout>;
|
|
28
|
+
frames?: PlotlyTypes.Frame[];
|
|
29
|
+
config?: Partial<PlotlyTypes.Config>;
|
|
30
|
+
className?: string;
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
useResizeHandler?: boolean;
|
|
33
|
+
divId?: string;
|
|
34
|
+
onRelayout?: (event: PlotlyTypes.PlotRelayoutEvent) => void;
|
|
35
|
+
onRelayouting?: (event: PlotlyTypes.PlotRelayoutEvent) => void;
|
|
36
|
+
onSelected?: (event: PlotlyTypes.PlotSelectionEvent) => void;
|
|
37
|
+
onDeselect?: () => void;
|
|
38
|
+
onSunburstClick?: (event: PlotlyTypes.PlotMouseEvent) => void;
|
|
39
|
+
onTreemapClick?: (event: PlotlyTypes.PlotMouseEvent) => void;
|
|
40
|
+
onError?: (err: Error) => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Plotly event name convention:
|
|
44
|
+
// - events are attached as `'plotly_' + name.toLowerCase()`
|
|
45
|
+
// - react props are `'on' + name`
|
|
46
|
+
const EVENT_NAMES = [
|
|
47
|
+
"Relayout",
|
|
48
|
+
"Relayouting",
|
|
49
|
+
"Selected",
|
|
50
|
+
"Deselect",
|
|
51
|
+
"SunburstClick",
|
|
52
|
+
"TreemapClick",
|
|
53
|
+
] as const;
|
|
54
|
+
|
|
55
|
+
type EventName = (typeof EVENT_NAMES)[number];
|
|
56
|
+
|
|
57
|
+
function propName(event: EventName): keyof PlotProps {
|
|
58
|
+
return `on${event}` as keyof PlotProps;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function plotlyEventName(event: EventName): string {
|
|
62
|
+
return `plotly_${event.toLowerCase()}`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export const Plot = (props: PlotProps) => {
|
|
66
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
67
|
+
|
|
68
|
+
const {
|
|
69
|
+
data,
|
|
70
|
+
layout,
|
|
71
|
+
config,
|
|
72
|
+
frames,
|
|
73
|
+
className,
|
|
74
|
+
style,
|
|
75
|
+
useResizeHandler,
|
|
76
|
+
divId,
|
|
77
|
+
onError,
|
|
78
|
+
} = props;
|
|
79
|
+
|
|
80
|
+
// Render / update the plot
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
const el = containerRef.current;
|
|
83
|
+
if (!el) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
Plotly.react(el, data, layout, config)
|
|
88
|
+
.then(() => {
|
|
89
|
+
if (frames && frames.length > 0) {
|
|
90
|
+
return Plotly.addFrames(el as unknown as PlotlyTypes.Root, frames);
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
.catch((error: Error) => {
|
|
94
|
+
onError?.(error);
|
|
95
|
+
});
|
|
96
|
+
}, [data, layout, config, frames, onError]);
|
|
97
|
+
|
|
98
|
+
// Sync event handlers
|
|
99
|
+
useEffect(
|
|
100
|
+
() => {
|
|
101
|
+
const el = containerRef.current;
|
|
102
|
+
if (!el) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const plotlyEl = el as unknown as PlotlyElement;
|
|
107
|
+
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/ban-types -- Plotly's event API uses generic function references
|
|
109
|
+
const attached: {
|
|
110
|
+
plotlyName: string;
|
|
111
|
+
handler: (...args: never[]) => void;
|
|
112
|
+
}[] = [];
|
|
113
|
+
|
|
114
|
+
for (const name of EVENT_NAMES) {
|
|
115
|
+
const handler = props[propName(name)];
|
|
116
|
+
if (typeof handler === "function") {
|
|
117
|
+
const plotlyName = plotlyEventName(name);
|
|
118
|
+
plotlyEl.on(plotlyName as never, handler as never);
|
|
119
|
+
attached.push({
|
|
120
|
+
plotlyName,
|
|
121
|
+
handler: handler as (...args: never[]) => void,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return () => {
|
|
127
|
+
for (const { plotlyName, handler } of attached) {
|
|
128
|
+
plotlyEl.removeListener(plotlyName, handler as never);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
// Re-sync whenever any event handler prop changes
|
|
132
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
133
|
+
},
|
|
134
|
+
EVENT_NAMES.map((name) => props[propName(name)]),
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
// Window resize handler
|
|
138
|
+
useEffect(() => {
|
|
139
|
+
if (!useResizeHandler) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const el = containerRef.current;
|
|
144
|
+
if (!el) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const handler = () => {
|
|
149
|
+
Plotly.Plots.resize(el as unknown as PlotlyTypes.Root);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
window.addEventListener("resize", handler);
|
|
153
|
+
return () => {
|
|
154
|
+
window.removeEventListener("resize", handler);
|
|
155
|
+
};
|
|
156
|
+
}, [useResizeHandler]);
|
|
157
|
+
|
|
158
|
+
// Cleanup on unmount
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
const el = containerRef.current;
|
|
161
|
+
return () => {
|
|
162
|
+
if (el) {
|
|
163
|
+
Plotly.purge(el as unknown as PlotlyTypes.Root);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}, []);
|
|
167
|
+
|
|
168
|
+
return (
|
|
169
|
+
<div id={divId} className={className} style={style} ref={containerRef} />
|
|
170
|
+
);
|
|
171
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import type * as Plotly from "plotly.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import type { IPlugin, IPluginProps, Setter } from "@/plugins/types";
|
|
6
6
|
import { Logger } from "@/utils/Logger";
|
|
7
|
+
import type { Figure } from "./Plot";
|
|
7
8
|
|
|
8
9
|
import "./plotly.css";
|
|
9
10
|
import "./mapbox.css";
|
|
@@ -70,13 +71,8 @@ interface PlotlyPluginProps extends Data {
|
|
|
70
71
|
host: HTMLElement;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
import("react-plotly.js").then((module) => {
|
|
76
|
-
return module.default as unknown as {
|
|
77
|
-
default: React.ComponentType<PlotParams>;
|
|
78
|
-
};
|
|
79
|
-
}),
|
|
74
|
+
const LazyPlot = lazy(() =>
|
|
75
|
+
import("./Plot").then((mod) => ({ default: mod.Plot })),
|
|
80
76
|
);
|
|
81
77
|
|
|
82
78
|
const SUNBURST_DATA_KEYS: (keyof Plotly.SunburstPlotDatum)[] = [
|
|
@@ -176,7 +172,6 @@ export const PlotlyComponent = memo(
|
|
|
176
172
|
};
|
|
177
173
|
});
|
|
178
174
|
})}
|
|
179
|
-
// @ts-expect-error We patched this prop here so it doesn't exist in the types
|
|
180
175
|
onTreemapClick={useEvent((evt: Readonly<Plotly.PlotMouseEvent>) => {
|
|
181
176
|
if (!evt) {
|
|
182
177
|
return;
|
|
@@ -215,7 +210,7 @@ export const PlotlyComponent = memo(
|
|
|
215
210
|
className="w-full"
|
|
216
211
|
useResizeHandler={true}
|
|
217
212
|
frames={figure.frames ?? undefined}
|
|
218
|
-
onError={useEvent((err) => {
|
|
213
|
+
onError={useEvent((err: Error) => {
|
|
219
214
|
Logger.error("PlotlyPlugin: ", err);
|
|
220
215
|
})}
|
|
221
216
|
/>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import type * as Plotly from "plotly.js";
|
|
4
4
|
import { describe, expect, it } from "vitest";
|
|
5
|
+
import type { Figure } from "../Plot";
|
|
5
6
|
import {
|
|
6
7
|
computeLayoutOnFigureChange,
|
|
7
8
|
computeLayoutUpdate,
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { usePrevious } from "@uidotdev/usehooks";
|
|
4
4
|
import { isEqual, pick } from "lodash-es";
|
|
5
|
+
import type * as Plotly from "plotly.js";
|
|
5
6
|
import { useEffect, useState } from "react";
|
|
6
|
-
import type { Figure } from "react-plotly.js";
|
|
7
7
|
import { Objects } from "@/utils/objects";
|
|
8
|
+
import type { Figure } from "./Plot";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Keys that are preserved across figure updates when set by user interaction.
|
package/dist/apl-BuwKwesW.js
DELETED
package/dist/asn1-DWEA66J4.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "./purify.es-Brw-U87Q.js";
|
|
2
|
-
import "./chunk-S3R3BYOJ-CBkH6JZZ.js";
|
|
3
|
-
import { r as __name } from "./src-szye8OCw.js";
|
|
4
|
-
import "./chunk-ABZYJK2D-BXTC53mt.js";
|
|
5
|
-
import "./chunk-HN2XXSSU-CqPwpolw.js";
|
|
6
|
-
import "./chunk-CVBHYZKI-Dhc_e3rA.js";
|
|
7
|
-
import "./chunk-ATLVNIR6-BJDjUR_c.js";
|
|
8
|
-
import "./dist-BYznkC5E.js";
|
|
9
|
-
import "./chunk-JA3XYJ7Z-BGnAIbOP.js";
|
|
10
|
-
import "./chunk-JZLCHNYA-CIRgweVQ.js";
|
|
11
|
-
import "./chunk-QXUST7PY-C7750n_u.js";
|
|
12
|
-
import "./chunk-N4CR4FBY-DKSvXAIS.js";
|
|
13
|
-
import "./chunk-FMBD7UC4-geNUIndh.js";
|
|
14
|
-
import "./chunk-55IACEB6-C3BASkh4.js";
|
|
15
|
-
import "./chunk-QN33PNHL-B6zC8BTi.js";
|
|
16
|
-
import { i as styles_default, n as classDiagram_default, r as classRenderer_v3_unified_default, t as ClassDB } from "./chunk-B4BG7PRW-DzmUUpfH.js";
|
|
17
|
-
var diagram = {
|
|
18
|
-
parser: classDiagram_default,
|
|
19
|
-
get db() {
|
|
20
|
-
return new ClassDB();
|
|
21
|
-
},
|
|
22
|
-
renderer: classRenderer_v3_unified_default,
|
|
23
|
-
styles: styles_default,
|
|
24
|
-
init: /* @__PURE__ */ __name((e) => {
|
|
25
|
-
e.class || (e.class = {}), e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
26
|
-
}, "init")
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
diagram
|
|
30
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "./purify.es-Brw-U87Q.js";
|
|
2
|
-
import "./chunk-S3R3BYOJ-CBkH6JZZ.js";
|
|
3
|
-
import { r as __name } from "./src-szye8OCw.js";
|
|
4
|
-
import "./chunk-ABZYJK2D-BXTC53mt.js";
|
|
5
|
-
import "./chunk-HN2XXSSU-CqPwpolw.js";
|
|
6
|
-
import "./chunk-CVBHYZKI-Dhc_e3rA.js";
|
|
7
|
-
import "./chunk-ATLVNIR6-BJDjUR_c.js";
|
|
8
|
-
import "./dist-BYznkC5E.js";
|
|
9
|
-
import "./chunk-JA3XYJ7Z-BGnAIbOP.js";
|
|
10
|
-
import "./chunk-JZLCHNYA-CIRgweVQ.js";
|
|
11
|
-
import "./chunk-QXUST7PY-C7750n_u.js";
|
|
12
|
-
import "./chunk-N4CR4FBY-DKSvXAIS.js";
|
|
13
|
-
import "./chunk-FMBD7UC4-geNUIndh.js";
|
|
14
|
-
import "./chunk-55IACEB6-C3BASkh4.js";
|
|
15
|
-
import "./chunk-QN33PNHL-B6zC8BTi.js";
|
|
16
|
-
import { i as styles_default, n as classDiagram_default, r as classRenderer_v3_unified_default, t as ClassDB } from "./chunk-B4BG7PRW-DzmUUpfH.js";
|
|
17
|
-
var diagram = {
|
|
18
|
-
parser: classDiagram_default,
|
|
19
|
-
get db() {
|
|
20
|
-
return new ClassDB();
|
|
21
|
-
},
|
|
22
|
-
renderer: classRenderer_v3_unified_default,
|
|
23
|
-
styles: styles_default,
|
|
24
|
-
init: /* @__PURE__ */ __name((e) => {
|
|
25
|
-
e.class || (e.class = {}), e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
26
|
-
}, "init")
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
diagram
|
|
30
|
-
};
|
package/dist/clojure-DkhhNHNQ.js
DELETED
package/dist/cmake-1obPvqtc.js
DELETED
package/dist/cobol-oWNTiXPE.js
DELETED