@marimo-team/islands 0.23.9-dev3 → 0.23.9-dev5
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-2lBNiUv6.js → ConnectedDataExplorerComponent-OzrfMM5L.js} +20 -20
- package/dist/ErrorBoundary-rULOrC_p.js +175 -0
- package/dist/{ImageComparisonComponent-CNHIsPDj.js → ImageComparisonComponent-CHrI72em.js} +1 -1
- package/dist/{Plot-4wn-lMVn.js → Plot-CAYS29h9.js} +1 -1
- package/dist/{_baseUniq-CxZRxRRo.js → _baseUniq-B_2Hw7zG.js} +3 -3
- package/dist/{any-language-editor-VWs_7v27.js → any-language-editor-DfdpyDv_.js} +23 -23
- package/dist/architecture-7HQA4BMR-Kyc44TmC.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-CXVJxFhH.js → architectureDiagram-VXUJARFQ-CT2SuxNw.js} +15 -15
- package/dist/{arrays-CldYf7p7.js → arrays-sEtDRoG4.js} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DGDaxR8I.js → blockDiagram-VD42YOAC-Dy7hlFla.js} +7 -7
- package/dist/{button-Dj4BTre0.js → button-C5K9fIPF.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-C2hc6ne8.js → c4Diagram-YG6GDRKO-BXlAmZ8Z.js} +4 -4
- package/dist/{capabilities-C9rrYCzf.js → capabilities-BceAxrAW.js} +2 -2
- package/dist/{channel-BBoIVUrJ.js → channel-D_PHgcig.js} +1 -1
- package/dist/{chat-ui-D3XBept8.js → chat-ui-BDI3FMI8.js} +29 -29
- package/dist/{check-BcUIXnUT.js → check-DTbrK0zt.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-BZq7Kom7.js → chunk-4F5CHEZ2-D9nGEHV8.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BOg95xG5.js → chunk-5FQGJX7Z-BNjes6Yx.js} +5 -5
- package/dist/{chunk-ABZYJK2D-D0cLy8Bb.js → chunk-ABZYJK2D-Dz0-H2B5.js} +1 -1
- package/dist/{chunk-ATLVNIR6-BXsEjlHF.js → chunk-ATLVNIR6-o0Z5MZLd.js} +1 -1
- package/dist/{chunk-B2363JML-D9-XOau1.js → chunk-B2363JML-KEJpLGGP.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Q1usn6T3.js → chunk-B4BG7PRW-BL98U9B4.js} +4 -4
- package/dist/{chunk-DI55MBZ5-D1qLYNrb.js → chunk-DI55MBZ5-Dwkn0LWm.js} +4 -4
- package/dist/{chunk-EXTU4WIE-BKNXdLmD.js → chunk-EXTU4WIE-9sNjmQrB.js} +1 -1
- package/dist/{chunk-FRFDVMJY-BSBUAX7r.js → chunk-FRFDVMJY-DzQqMWrl.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-D6c6cOBG.js → chunk-JA3XYJ7Z-C32Y7Epf.js} +2 -2
- package/dist/{chunk-JZLCHNYA-BvsPHJmL.js → chunk-JZLCHNYA-C6ftyVMN.js} +4 -4
- package/dist/{chunk-N4CR4FBY-8ycT-O9a.js → chunk-N4CR4FBY-DUhGZhZs.js} +5 -5
- package/dist/{chunk-PL6DKKU2-B0MTXvyc.js → chunk-PL6DKKU2-D7km-08O.js} +1 -1
- package/dist/{chunk-QN33PNHL-Bb-eUBW3.js → chunk-QN33PNHL-0K6SDYn3.js} +1 -1
- package/dist/{chunk-QXUST7PY-DV8yRwBd.js → chunk-QXUST7PY-DMhsRpYK.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-mQeCz5CE.js → chunk-S3R3BYOJ-oAe3dEbO.js} +3 -3
- package/dist/{chunk-SJTYNZTY-CEG4F0pB.js → chunk-SJTYNZTY-BkJrPRFC.js} +1 -1
- package/dist/{chunk-TCCFYFTB-d3HOqL2I.js → chunk-TCCFYFTB-D58KeXnC.js} +6 -6
- package/dist/{chunk-TQ3KTPDO-DiCtqVSi.js → chunk-TQ3KTPDO-D_yA_wAb.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BqW10dHe.js → chunk-TZMSLE5B-yBKS_DQU.js} +1 -1
- package/dist/{chunk-UMXZTB3W-97iS1iEl.js → chunk-UMXZTB3W-D7uwvNjd.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG--Yh__LHb.js → classDiagram-2ON5EDUG-QjoAcuFE.js} +10 -10
- package/dist/{classDiagram-v2-WZHVMYZB-BC7X7Xtc.js → classDiagram-v2-WZHVMYZB-bUCv4gu2.js} +10 -10
- package/dist/{clone-BuIIsfA8.js → clone-Q4Fqwn6q.js} +1 -1
- package/dist/{code-block-37QAKDTI-BsGy1AOJ.js → code-block-37QAKDTI-m92Yc8pv.js} +2 -2
- package/dist/{code-visibility-BKxrBMod.js → code-visibility-DY2PjKMU.js} +7200 -7488
- package/dist/{constants-D0gkYoE2.js → constants-T20xxyNf.js} +2 -2
- package/dist/{copy-DLf4aN7I.js → copy-BuQpJEzp.js} +2 -2
- package/dist/{dagre-6UL2VRFP-DRBWoQUw.js → dagre-6UL2VRFP-J0JKgwOt.js} +11 -11
- package/dist/{dagre-VYEPqXIV.js → dagre-By_QsQgc.js} +11 -11
- package/dist/{data-grid-overlay-editor-efe5ZagF.js → data-grid-overlay-editor-mfEJ5475.js} +2 -2
- package/dist/{diagram-PSM6KHXK-H66ATWP2.js → diagram-PSM6KHXK-DYgJuNk9.js} +18 -18
- package/dist/{diagram-QEK2KX5R-DItl5Wns.js → diagram-QEK2KX5R-CKdBR2sb.js} +14 -14
- package/dist/{diagram-S2PKOQOG-CtuW_ZuL.js → diagram-S2PKOQOG-Dpi7mo5W.js} +14 -14
- package/dist/dist-0Fif7jnk.js +5 -0
- package/dist/{dist-Dh3wkoyH.js → dist-4j4c7bjm.js} +2 -2
- package/dist/{dist-CDFZi-QD.js → dist-B3P2fFpz.js} +1 -1
- package/dist/{dist-BNyrZfqT.js → dist-B3pZ0Ab6.js} +2 -2
- package/dist/dist-B5h_9sHB.js +6 -0
- package/dist/dist-B9M6R5ye.js +5 -0
- package/dist/dist-BCt3tnck.js +8 -0
- package/dist/{dist-BrBucRXs.js → dist-BTfv03uy.js} +2 -2
- package/dist/dist-BUIJwMwn.js +8 -0
- package/dist/{dist-CYEylvZA.js → dist-BbbIBDiQ.js} +1 -1
- package/dist/{dist-KnujRhFL.js → dist-BcuoonNH.js} +4 -4
- package/dist/{dist-DJ6zJQZ4.js → dist-Bde4a2kU.js} +2 -2
- package/dist/{dist-t_qL7eB8.js → dist-Bfwsv11D.js} +2 -2
- package/dist/{dist-CNtV21T_.js → dist-BhM8gdSO.js} +4 -4
- package/dist/{dist-nuW5EDYT.js → dist-BotSqB48.js} +2 -2
- package/dist/dist-BpquMd3k.js +5 -0
- package/dist/dist-BzJsqYfz.js +5 -0
- package/dist/{dist-D029TiHd.js → dist-Bz_sYWbr.js} +2 -2
- package/dist/{dist-D3ZI9nhS.js → dist-C1BYNeCR.js} +4 -4
- package/dist/{dist-Bc5pmZIw.js → dist-C5VC_yzu.js} +1 -1
- package/dist/dist-CA5ELXAf.js +6 -0
- package/dist/dist-CLBRs6Uv.js +5 -0
- package/dist/{dist-Dhk6FMb0.js → dist-CLJWPTX2.js} +3 -3
- package/dist/{dist-C34oIrQ9.js → dist-CLUtPrdy.js} +1 -1
- package/dist/dist-CStVCMbq.js +5 -0
- package/dist/{dist-B8RaFTRF.js → dist-CUCNs1ja.js} +2 -2
- package/dist/dist-CZRIEY3Y.js +8 -0
- package/dist/{dist-UcOPnRMa.js → dist-CcXxepx6.js} +3 -3
- package/dist/dist-CuUHbFD0.js +5 -0
- package/dist/{dist-B8BjrFUE.js → dist-Cy1WxgBD.js} +5 -5
- package/dist/{dist-WdPUFc56.js → dist-D4CewLk6.js} +1 -1
- package/dist/{dist-DMZNjfX4.js → dist-DRfcqpxJ.js} +2 -2
- package/dist/dist-DV7Iabxb.js +8 -0
- package/dist/{dist-usPCDYx8.js → dist-D_bzzWBm.js} +1 -1
- package/dist/{dist-BvCfQQQE.js → dist-DgnE8F-r.js} +1 -1
- package/dist/{dist-JEhxD_cn.js → dist-DhHh0jLg.js} +1 -1
- package/dist/{dist-DGAfI2rB.js → dist-DqAWR3CS.js} +2 -2
- package/dist/{dist--sWVZwjW.js → dist-Du8WkPuU.js} +1 -1
- package/dist/dist-DuEeHMvL.js +5 -0
- package/dist/{dist-BTyJtnNg.js → dist-DxvORzUR.js} +1 -1
- package/dist/{dist-B507mf_I.js → dist-RqXTaiir.js} +2 -2
- package/dist/{dist-Yrfc6L0I.js → dist-fQ0ViXGs.js} +3 -3
- package/dist/{dist-B4LJpMEg.js → dist-h2c8sZvT.js} +1 -1
- package/dist/{dist-C2ej4eOH.js → dist-luvabDEB.js} +2 -2
- package/dist/{dist-B52GXZbd.js → dist-p2qyWijU.js} +2 -2
- package/dist/{erDiagram-Q2GNP2WA--19X2kU5.js → erDiagram-Q2GNP2WA-BU-m41EQ.js} +10 -10
- package/dist/{error-banner-CVkfBUT3.js → error-banner-5bz0L9hS.js} +3 -3
- package/dist/{esm-CWp0KQeK.js → esm-BfhQmZjp.js} +4 -4
- package/dist/{esm-DjNnlmpf.js → esm-Duie8iU-.js} +23 -23
- package/dist/{extends-vAi97cpa.js → extends-BgdxCfYu.js} +6 -6
- package/dist/{flatten-CzBvFdvC.js → flatten-Bbw7g6-K.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-DQmWlo7f.js → flowDiagram-NV44I4VS-CRoXKjGq.js} +10 -10
- package/dist/{formats-Dsy9kkZu.js → formats-DQ5qjo_Q.js} +4 -4
- package/dist/{ganttDiagram-JELNMOA3-BOGXJ8Lk.js → ganttDiagram-JELNMOA3-7mq5f9cO.js} +7 -7
- package/dist/{gitGraph-G5XIXVHT-DGlbae5m.js → gitGraph-G5XIXVHT-DiniR35k.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-DjzxfF0P.js → gitGraphDiagram-V2S2FVAM-Dfuokq6w.js} +13 -13
- package/dist/{glide-data-editor-DucgdjRo.js → glide-data-editor-DqRY9naW.js} +557 -557
- package/dist/{graphlib-CVPKjKCS.js → graphlib-Ns7y5crs.js} +5 -5
- package/dist/{hasIn-COs6vImh.js → hasIn-Deg7jl_j.js} +3 -3
- package/dist/{html-to-image-CpggM7u1.js → html-to-image-CiSinpSR.js} +109 -109
- package/dist/{info-VBDWY6EO-D2lvLLw5.js → info-VBDWY6EO-DVZvGhkQ.js} +3 -3
- package/dist/{infoDiagram-HS3SLOUP-ChNufFsP.js → infoDiagram-HS3SLOUP-CEnzWruK.js} +13 -13
- package/dist/{input-D4kjoQUB.js → input-CZD2z6X2.js} +70 -67
- package/dist/{isEmpty-Dd8mx_WL.js → isEmpty-CJJMn-QP.js} +1 -1
- package/dist/{isSymbol-BvIfMnn6.js → isSymbol-CoUCgMCM.js} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BO_O4Ij1.js → journeyDiagram-XKPGCS4Q-8XYSU1GI.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-CPpiiiWk.js → kanban-definition-3W4ZIXB7--9pT9z1R.js} +7 -7
- package/dist/{label-BLqV33b1.js → label-LWtdw5i8.js} +3 -3
- package/dist/{linear-2NnK4cxi.js → linear-B5-AFRiR.js} +2 -2
- package/dist/{loader-Dr8Qem8p.js → loader-BWLPpjKK.js} +2 -2
- package/dist/main.js +1145 -989
- package/dist/{memoize-C9ltv0Cw.js → memoize-BOtf2yFf.js} +1 -1
- package/dist/{merge-CHn7Yx0N.js → merge-Be1CqGnU.js} +1 -1
- package/dist/mermaid-4DMBBIKO-DIdL224_.js +6 -0
- package/dist/{mermaid-DO-Daq7u.js → mermaid-IU93XzmY.js} +44 -44
- package/dist/{mermaid-parser.core-DreccfmS.js → mermaid-parser.core-C3XRsazI.js} +8 -8
- package/dist/{min-BNz2lZfk.js → min-Dtgc8txR.js} +4 -4
- package/dist/{mindmap-definition-VGOIOE7T-CC1_Vl0f.js → mindmap-definition-VGOIOE7T-B-4mnfFG.js} +9 -9
- package/dist/{now-Sgq5m3D-.js → now-Ch98bJO_.js} +2 -2
- package/dist/{number-overlay-editor-CpKi64Fy.js → number-overlay-editor-D-a0qCT8.js} +1 -1
- package/dist/{once-rJImu7SE.js → once-DPuqGUeo.js} +1 -1
- package/dist/{packet-DYOGHKS2-CmWtF3uO.js → packet-DYOGHKS2-34raHOiB.js} +3 -3
- package/dist/{pick-CRAXxDYn.js → pick-D1Qo8s2C.js} +4 -4
- package/dist/{pie-VRWISCQL-B6u8vus8.js → pie-VRWISCQL-BaLlzZa3.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-Di34MOFQ.js → pieDiagram-ADFJNKIX-Cr3cNpZY.js} +15 -15
- package/dist/{precisionRound-CnHPY_5v.js → precisionRound-Tqb4mg-H.js} +1 -1
- package/dist/{process-output-X8TR20AK.js → process-output-5qJjMRKh.js} +4 -4
- package/dist/{quadrantDiagram-AYHSOK5B-B9kVk1ny.js → quadrantDiagram-AYHSOK5B-BuNL8Q93.js} +4 -4
- package/dist/{radar-ZZBFDIW7-XAmXSa8s.js → radar-ZZBFDIW7-Ci7bfoZa.js} +3 -3
- package/dist/{react-vega-Dh6-UKKe.js → react-vega-B0sAlDTL.js} +9 -9
- package/dist/react-vega-B6ncY2Tp.js +9 -0
- package/dist/{requirementDiagram-UZGBJVZJ-BxGfGYEx.js → requirementDiagram-UZGBJVZJ-BG2lLUN1.js} +9 -9
- package/dist/{reveal-component-BMyi2UMr.js → reveal-component-Bq1iwOTq.js} +28 -28
- package/dist/{sankeyDiagram-TZEHDZUN-D09PBJ-n.js → sankeyDiagram-TZEHDZUN-DMal8sps.js} +3 -3
- package/dist/{sequenceDiagram-WL72ISMW-t_Dpemj0.js → sequenceDiagram-WL72ISMW-DT6Tk-Eo.js} +4 -4
- package/dist/{spec-hVaaZsY5.js → spec-a6DaqW__.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-B18gTP_j.js → stateDiagram-FKZM4ZOC-CB_lodq3.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-B6e_t14A.js → stateDiagram-v2-4FDKWEC3-E0RGjKsm.js} +10 -10
- package/dist/stex-KfRnSHzF.js +4 -0
- package/dist/{strings-BiIhGaI8.js → strings-Bu3vlb6W.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/{swiper-component-DlD2GU2g.js → swiper-component-B2t5sN1q.js} +3 -3
- package/dist/{time-C1SGcFMH.js → time-CsmIF9YZ.js} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-DJnh1ks5.js → timeline-definition-IT6M3QCI-NfSKRvH0.js} +2 -2
- package/dist/{toDate-CIpC_34u.js → toDate-ZVVIBmdk.js} +5 -5
- package/dist/{tooltip-DRaMBu06.js → tooltip-C5FYOpQc.js} +4 -4
- package/dist/{treemap-GDKQZRPO-Du95DV6u.js → treemap-GDKQZRPO-Cl6OQh8D.js} +3 -3
- package/dist/{types-Dzuoc3LN.js → types-CVvp1fKr.js} +2 -9
- package/dist/{useAsyncData-C56Khv_R.js → useAsyncData-C008zUPi.js} +2 -2
- package/dist/{useDateFormatter-B_9k85Ex.js → useDateFormatter-BA4FCquG.js} +2 -2
- package/dist/{useDeepCompareMemoize-Dt98v2ua.js → useDeepCompareMemoize-BrA3_n61.js} +1 -1
- package/dist/{useIframeCapabilities-BkYHTrss.js → useIframeCapabilities-C4JTXTIh.js} +1 -1
- package/dist/{useLifecycle-BF6-z62y.js → useLifecycle-BNaoJ5a4.js} +4 -4
- package/dist/{useTheme-DykuNHR2.js → useTheme-7O0YWlE5.js} +3 -3
- package/dist/{vega-component-cSdqoAxe.js → vega-component-DJNmOdUj.js} +18 -18
- package/dist/{vega-loader.browser-3_z8GoFC.js → vega-loader.browser-CZ-J8Py3.js} +3 -3
- package/dist/{xychartDiagram-PRI3JC2R-Dk2d_bX0.js → xychartDiagram-PRI3JC2R-BvwftqMA.js} +9 -9
- package/dist/{zod-BWkcDORu.js → zod-CoBiJ5v4.js} +3 -3
- package/package.json +1 -1
- package/src/components/data-table/TableBottomBar.tsx +30 -6
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +73 -0
- package/src/components/data-table/__tests__/column-header.test.tsx +110 -277
- package/src/components/data-table/__tests__/data-table.test.tsx +52 -1
- package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +33 -0
- package/src/components/data-table/__tests__/filter-pill-editor.test.tsx +75 -38
- package/src/components/data-table/__tests__/filter-pills.test.tsx +287 -0
- package/src/components/data-table/__tests__/filter-test-utils.ts +47 -0
- package/src/components/data-table/__tests__/filters.test.ts +5 -5
- package/src/components/data-table/__tests__/header-items.test.tsx +47 -1
- package/src/components/data-table/__tests__/useColumnVisibility.test.ts +42 -0
- package/src/components/data-table/add-filter-button.tsx +85 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +7 -1
- package/src/components/data-table/column-header.tsx +94 -691
- package/src/components/data-table/columns.tsx +3 -4
- package/src/components/data-table/context-menu.tsx +26 -12
- package/src/components/data-table/data-table.tsx +118 -56
- package/src/components/data-table/date-filter-inputs.tsx +13 -10
- package/src/components/data-table/filter-by-values-picker.tsx +13 -19
- package/src/components/data-table/filter-editor-context.tsx +34 -0
- package/src/components/data-table/filter-pill-editor.tsx +152 -175
- package/src/components/data-table/filter-pills.tsx +190 -153
- package/src/components/data-table/filters/builders.ts +102 -0
- package/src/components/data-table/filters/defaults.ts +31 -0
- package/src/components/data-table/filters/format.ts +131 -0
- package/src/components/data-table/filters/guards.ts +51 -0
- package/src/components/data-table/filters/index.ts +7 -0
- package/src/components/data-table/filters/operators.ts +76 -0
- package/src/components/data-table/filters/serialize.ts +186 -0
- package/src/components/data-table/filters/types.ts +33 -0
- package/src/components/data-table/header-items.tsx +25 -85
- package/src/components/data-table/hooks/use-column-visibility.ts +42 -0
- package/src/components/data-table/pagination.tsx +16 -3
- package/src/components/data-table/value-chips.tsx +52 -0
- package/src/components/ui/number-field.tsx +13 -1
- package/src/plugins/impl/DataTablePlugin.tsx +4 -0
- package/src/utils/dates.ts +39 -0
- package/dist/ErrorBoundary-D3wrPNma.js +0 -167
- package/dist/architecture-7HQA4BMR-CS9jOrqM.js +0 -6
- package/dist/dist-21ButRCu.js +0 -8
- package/dist/dist-B--tLnAP.js +0 -5
- package/dist/dist-BoHGySTM.js +0 -5
- package/dist/dist-ByAz19Qc.js +0 -5
- package/dist/dist-C1Ap5CYU.js +0 -5
- package/dist/dist-C93EysN4.js +0 -5
- package/dist/dist-CY-lVor6.js +0 -8
- package/dist/dist-CYDuv4bR.js +0 -8
- package/dist/dist-Cfo5EE2t.js +0 -6
- package/dist/dist-CjivSDvN.js +0 -5
- package/dist/dist-Cqwx-MH7.js +0 -5
- package/dist/dist-DbpcoFAV.js +0 -6
- package/dist/dist-FUNenbiQ.js +0 -5
- package/dist/dist-zhSud5X3.js +0 -8
- package/dist/mermaid-4DMBBIKO-B7VQMwJx.js +0 -6
- package/dist/react-vega-Cavbrg4l.js +0 -9
- package/dist/stex-ChDHQs3R.js +0 -4
- package/src/components/data-table/__tests__/column-header.test.ts +0 -65
- package/src/components/data-table/filters.ts +0 -386
- /package/dist/{_baseFor-BGiY-cm1.js → _baseFor-4jw-lnCC.js} +0 -0
- /package/dist/{clsx-CyyyQ8Ue.js → clsx-CIWA5tNO.js} +0 -0
- /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-BoHTsDG6.js} +0 -0
- /package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-u-3osm0P.js} +0 -0
- /package/dist/{dist-CCADb07R.js → dist-DNdhYsgW.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DtW2o230.js → emotion-is-prop-valid.esm-DzSb5hsH.js} +0 -0
- /package/dist/{invariant-UcGKQEhF.js → invariant-wRzNXIsJ.js} +0 -0
- /package/dist/{jsx-runtime-COBk7ree.js → jsx-runtime-DebpN0FN.js} +0 -0
- /package/dist/{main-CThhXnXU.js → main-Tj_-QTyF.js} +0 -0
- /package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-DF2w36zS.js} +0 -0
- /package/dist/{ordinal-B43ZeR68.js → ordinal-ArJavP1Q.js} +0 -0
- /package/dist/{purify.es-DT70lfR0.js → purify.es-H92eMd9-.js} +0 -0
- /package/dist/{range-BOiA8qqU.js → range-C-rmrM1O.js} +0 -0
- /package/dist/{react-dom-BWRJ_g_k.js → react-dom-BTJzcVJ9.js} +0 -0
- /package/dist/{stex-DrxP7bb3.js → stex-BIsgBmK4.js} +0 -0
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
"use no memo";
|
|
3
|
-
|
|
4
|
-
import type { ColumnFiltersState, RowData } from "@tanstack/react-table";
|
|
5
|
-
import type { DataType } from "@/core/kernel/messages";
|
|
6
|
-
import type {
|
|
7
|
-
FilterConditionType,
|
|
8
|
-
FilterGroupType,
|
|
9
|
-
} from "@/plugins/impl/data-frames/schema";
|
|
10
|
-
import type { ColumnId } from "@/plugins/impl/data-frames/types";
|
|
11
|
-
import type { OperatorType } from "@/plugins/impl/data-frames/utils/operators";
|
|
12
|
-
import { assertNever } from "@/utils/assertNever";
|
|
13
|
-
import { Logger } from "@/utils/Logger";
|
|
14
|
-
|
|
15
|
-
declare module "@tanstack/react-table" {
|
|
16
|
-
//allows us to define custom properties for our columns
|
|
17
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
18
|
-
rowHeader?: boolean;
|
|
19
|
-
dtype?: string;
|
|
20
|
-
dataType?: DataType;
|
|
21
|
-
filterType?: FilterType;
|
|
22
|
-
minFractionDigits?: number;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type FilterType =
|
|
27
|
-
| "text"
|
|
28
|
-
| "number"
|
|
29
|
-
| "date"
|
|
30
|
-
| "datetime"
|
|
31
|
-
| "time"
|
|
32
|
-
| "select"
|
|
33
|
-
| "boolean";
|
|
34
|
-
|
|
35
|
-
export const NULLISH_OPS = ["is_null", "is_not_null"] as const;
|
|
36
|
-
export const MEMBERSHIP_OPS = ["in", "not_in"] as const;
|
|
37
|
-
export const NUMBER_COMPARISON_OPS = [
|
|
38
|
-
"==",
|
|
39
|
-
"!=",
|
|
40
|
-
">",
|
|
41
|
-
">=",
|
|
42
|
-
"<",
|
|
43
|
-
"<=",
|
|
44
|
-
] as const;
|
|
45
|
-
export const TEXT_SCALAR_OPS = [
|
|
46
|
-
"contains",
|
|
47
|
-
"equals",
|
|
48
|
-
"does_not_equal",
|
|
49
|
-
"regex",
|
|
50
|
-
"starts_with",
|
|
51
|
-
"ends_with",
|
|
52
|
-
] as const;
|
|
53
|
-
|
|
54
|
-
export const DATETIME_COMPARISON_OPS = [
|
|
55
|
-
"==",
|
|
56
|
-
"!=",
|
|
57
|
-
">",
|
|
58
|
-
">=",
|
|
59
|
-
"<",
|
|
60
|
-
"<=",
|
|
61
|
-
] as const;
|
|
62
|
-
|
|
63
|
-
export const NUMBER_OPS = [
|
|
64
|
-
"between",
|
|
65
|
-
...NUMBER_COMPARISON_OPS,
|
|
66
|
-
...NULLISH_OPS,
|
|
67
|
-
] as const;
|
|
68
|
-
export const TEXT_OPS = [
|
|
69
|
-
...TEXT_SCALAR_OPS,
|
|
70
|
-
...MEMBERSHIP_OPS,
|
|
71
|
-
"is_empty",
|
|
72
|
-
...NULLISH_OPS,
|
|
73
|
-
] as const;
|
|
74
|
-
export const DATETIME_OPS = [
|
|
75
|
-
"between",
|
|
76
|
-
...DATETIME_COMPARISON_OPS,
|
|
77
|
-
...NULLISH_OPS,
|
|
78
|
-
] as const;
|
|
79
|
-
|
|
80
|
-
export type NullishOp = (typeof NULLISH_OPS)[number];
|
|
81
|
-
export type MembershipOp = (typeof MEMBERSHIP_OPS)[number];
|
|
82
|
-
export type NumberComparisonOp = (typeof NUMBER_COMPARISON_OPS)[number];
|
|
83
|
-
export type TextScalarOp = (typeof TEXT_SCALAR_OPS)[number];
|
|
84
|
-
export type DatetimeComparisonOp = (typeof DATETIME_COMPARISON_OPS)[number];
|
|
85
|
-
|
|
86
|
-
const makeOpGuard = <T extends OperatorType>(ops: readonly T[]) => {
|
|
87
|
-
const set = new Set<OperatorType>(ops);
|
|
88
|
-
return (op: OperatorType): op is T => set.has(op);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export const isNumberComparisonOp = makeOpGuard(NUMBER_COMPARISON_OPS);
|
|
92
|
-
export const isTextScalarOp = makeOpGuard(TEXT_SCALAR_OPS);
|
|
93
|
-
export const isDatetimeComparisonOp = makeOpGuard(DATETIME_COMPARISON_OPS);
|
|
94
|
-
|
|
95
|
-
interface NullishOpts {
|
|
96
|
-
operator: NullishOp;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
type NumberFilterOpts =
|
|
100
|
-
| { operator: "between"; min: number; max: number }
|
|
101
|
-
| { operator: NumberComparisonOp; value: number }
|
|
102
|
-
| NullishOpts;
|
|
103
|
-
|
|
104
|
-
type TextFilterOpts =
|
|
105
|
-
| { operator: TextScalarOp; text: string }
|
|
106
|
-
| { operator: MembershipOp; values: string[] }
|
|
107
|
-
| { operator: "is_empty" }
|
|
108
|
-
| NullishOpts;
|
|
109
|
-
|
|
110
|
-
type DateLikeFilterOpts =
|
|
111
|
-
| { operator: "between"; min: Date; max: Date }
|
|
112
|
-
| { operator: DatetimeComparisonOp; value: Date }
|
|
113
|
-
| NullishOpts;
|
|
114
|
-
|
|
115
|
-
// Filter is a factory function that creates a filter object
|
|
116
|
-
export const Filter = {
|
|
117
|
-
number(opts: NumberFilterOpts) {
|
|
118
|
-
return {
|
|
119
|
-
type: "number",
|
|
120
|
-
...opts,
|
|
121
|
-
} as const;
|
|
122
|
-
},
|
|
123
|
-
text(opts: TextFilterOpts) {
|
|
124
|
-
return {
|
|
125
|
-
type: "text",
|
|
126
|
-
...opts,
|
|
127
|
-
} as const;
|
|
128
|
-
},
|
|
129
|
-
date(opts: DateLikeFilterOpts) {
|
|
130
|
-
return {
|
|
131
|
-
type: "date",
|
|
132
|
-
...opts,
|
|
133
|
-
} as const;
|
|
134
|
-
},
|
|
135
|
-
datetime(opts: DateLikeFilterOpts) {
|
|
136
|
-
return {
|
|
137
|
-
type: "datetime",
|
|
138
|
-
...opts,
|
|
139
|
-
} as const;
|
|
140
|
-
},
|
|
141
|
-
time(opts: DateLikeFilterOpts) {
|
|
142
|
-
return {
|
|
143
|
-
type: "time",
|
|
144
|
-
...opts,
|
|
145
|
-
} as const;
|
|
146
|
-
},
|
|
147
|
-
boolean(opts: { value?: boolean; operator?: OperatorType }) {
|
|
148
|
-
return {
|
|
149
|
-
type: "boolean",
|
|
150
|
-
...opts,
|
|
151
|
-
} as const;
|
|
152
|
-
},
|
|
153
|
-
select(opts: { options: unknown[]; operator: OperatorType }) {
|
|
154
|
-
return {
|
|
155
|
-
type: "select",
|
|
156
|
-
...opts,
|
|
157
|
-
} as const;
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
export type ColumnFilterValue = ReturnType<
|
|
161
|
-
(typeof Filter)[keyof typeof Filter]
|
|
162
|
-
>;
|
|
163
|
-
export type ColumnFilterForType<T extends FilterType> = T extends FilterType
|
|
164
|
-
? Extract<ColumnFilterValue, { type: T }>
|
|
165
|
-
: never;
|
|
166
|
-
|
|
167
|
-
function pad2(n: number): string {
|
|
168
|
-
return n.toString().padStart(2, "0");
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function pad4(n: number): string {
|
|
172
|
-
return n.toString().padStart(4, "0");
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export function dateToISODate(d: Date): string {
|
|
176
|
-
return `${pad4(d.getFullYear())}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function dateToISOTime(d: Date): string {
|
|
180
|
-
return `${pad2(d.getHours())}:${pad2(d.getMinutes())}:${pad2(d.getSeconds())}`;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export function dateToISODateTime(d: Date): string {
|
|
184
|
-
return `${dateToISODate(d)}T${dateToISOTime(d)}`;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
function isNullishFilter(
|
|
188
|
-
filter: ColumnFilterValue,
|
|
189
|
-
): filter is Extract<
|
|
190
|
-
ColumnFilterValue,
|
|
191
|
-
{ operator: "is_null" | "is_not_null" }
|
|
192
|
-
> {
|
|
193
|
-
return filter.operator === "is_null" || filter.operator === "is_not_null";
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export function filterToFilterCondition(
|
|
197
|
-
columnIdString: string,
|
|
198
|
-
filter: ColumnFilterValue | undefined,
|
|
199
|
-
): FilterConditionType[] {
|
|
200
|
-
if (!filter) {
|
|
201
|
-
return [];
|
|
202
|
-
}
|
|
203
|
-
const columnId = columnIdString as ColumnId;
|
|
204
|
-
|
|
205
|
-
if (isNullishFilter(filter)) {
|
|
206
|
-
return [
|
|
207
|
-
{
|
|
208
|
-
column_id: columnId,
|
|
209
|
-
operator: filter.operator,
|
|
210
|
-
type: "condition",
|
|
211
|
-
negate: false,
|
|
212
|
-
},
|
|
213
|
-
];
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
switch (filter.type) {
|
|
217
|
-
case "number":
|
|
218
|
-
switch (filter.operator) {
|
|
219
|
-
case "between":
|
|
220
|
-
return [
|
|
221
|
-
{
|
|
222
|
-
column_id: columnId,
|
|
223
|
-
operator: "between",
|
|
224
|
-
value: { min: filter.min, max: filter.max },
|
|
225
|
-
type: "condition",
|
|
226
|
-
negate: false,
|
|
227
|
-
},
|
|
228
|
-
];
|
|
229
|
-
case "==":
|
|
230
|
-
case "!=":
|
|
231
|
-
case ">":
|
|
232
|
-
case ">=":
|
|
233
|
-
case "<":
|
|
234
|
-
case "<=":
|
|
235
|
-
return [
|
|
236
|
-
{
|
|
237
|
-
column_id: columnId,
|
|
238
|
-
operator: filter.operator,
|
|
239
|
-
value: filter.value,
|
|
240
|
-
type: "condition",
|
|
241
|
-
negate: false,
|
|
242
|
-
},
|
|
243
|
-
];
|
|
244
|
-
default:
|
|
245
|
-
assertNever(filter);
|
|
246
|
-
}
|
|
247
|
-
case "text":
|
|
248
|
-
switch (filter.operator) {
|
|
249
|
-
case "contains":
|
|
250
|
-
case "equals":
|
|
251
|
-
case "does_not_equal":
|
|
252
|
-
case "regex":
|
|
253
|
-
case "starts_with":
|
|
254
|
-
case "ends_with":
|
|
255
|
-
return [
|
|
256
|
-
{
|
|
257
|
-
column_id: columnId,
|
|
258
|
-
operator: filter.operator,
|
|
259
|
-
value: filter.text,
|
|
260
|
-
type: "condition",
|
|
261
|
-
negate: false,
|
|
262
|
-
},
|
|
263
|
-
];
|
|
264
|
-
case "in":
|
|
265
|
-
case "not_in":
|
|
266
|
-
return [
|
|
267
|
-
{
|
|
268
|
-
column_id: columnId,
|
|
269
|
-
operator: filter.operator,
|
|
270
|
-
value: filter.values,
|
|
271
|
-
type: "condition",
|
|
272
|
-
negate: false,
|
|
273
|
-
},
|
|
274
|
-
];
|
|
275
|
-
case "is_empty":
|
|
276
|
-
return [
|
|
277
|
-
{
|
|
278
|
-
column_id: columnId,
|
|
279
|
-
operator: "is_empty",
|
|
280
|
-
type: "condition",
|
|
281
|
-
negate: false,
|
|
282
|
-
},
|
|
283
|
-
];
|
|
284
|
-
default:
|
|
285
|
-
assertNever(filter);
|
|
286
|
-
}
|
|
287
|
-
case "date":
|
|
288
|
-
case "datetime":
|
|
289
|
-
case "time": {
|
|
290
|
-
const encode =
|
|
291
|
-
filter.type === "date"
|
|
292
|
-
? dateToISODate
|
|
293
|
-
: filter.type === "time"
|
|
294
|
-
? dateToISOTime
|
|
295
|
-
: dateToISODateTime;
|
|
296
|
-
switch (filter.operator) {
|
|
297
|
-
case "between":
|
|
298
|
-
return [
|
|
299
|
-
{
|
|
300
|
-
column_id: columnId,
|
|
301
|
-
operator: "between",
|
|
302
|
-
value: { min: encode(filter.min), max: encode(filter.max) },
|
|
303
|
-
type: "condition",
|
|
304
|
-
negate: false,
|
|
305
|
-
},
|
|
306
|
-
];
|
|
307
|
-
case "==":
|
|
308
|
-
case "!=":
|
|
309
|
-
case ">":
|
|
310
|
-
case ">=":
|
|
311
|
-
case "<":
|
|
312
|
-
case "<=":
|
|
313
|
-
return [
|
|
314
|
-
{
|
|
315
|
-
column_id: columnId,
|
|
316
|
-
operator: filter.operator,
|
|
317
|
-
value: encode(filter.value),
|
|
318
|
-
type: "condition",
|
|
319
|
-
negate: false,
|
|
320
|
-
},
|
|
321
|
-
];
|
|
322
|
-
default:
|
|
323
|
-
assertNever(filter);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
case "boolean":
|
|
327
|
-
if (filter.value) {
|
|
328
|
-
return [
|
|
329
|
-
{
|
|
330
|
-
column_id: columnId,
|
|
331
|
-
operator: "is_true",
|
|
332
|
-
type: "condition",
|
|
333
|
-
negate: false,
|
|
334
|
-
},
|
|
335
|
-
];
|
|
336
|
-
}
|
|
337
|
-
if (!filter.value) {
|
|
338
|
-
return [
|
|
339
|
-
{
|
|
340
|
-
column_id: columnId,
|
|
341
|
-
operator: "is_false",
|
|
342
|
-
type: "condition",
|
|
343
|
-
negate: false,
|
|
344
|
-
},
|
|
345
|
-
];
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
return [];
|
|
349
|
-
case "select": {
|
|
350
|
-
let operator = filter.operator;
|
|
351
|
-
if (filter.operator !== "in" && filter.operator !== "not_in") {
|
|
352
|
-
Logger.warn("Invalid operator for select filter", {
|
|
353
|
-
operator: filter.operator,
|
|
354
|
-
});
|
|
355
|
-
operator = "in";
|
|
356
|
-
}
|
|
357
|
-
return [
|
|
358
|
-
{
|
|
359
|
-
column_id: columnId,
|
|
360
|
-
operator,
|
|
361
|
-
value: filter.options,
|
|
362
|
-
type: "condition",
|
|
363
|
-
negate: false,
|
|
364
|
-
},
|
|
365
|
-
];
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
default:
|
|
369
|
-
assertNever(filter);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export function filtersToFilterGroup(
|
|
374
|
-
columnFilters: ColumnFiltersState,
|
|
375
|
-
): FilterGroupType {
|
|
376
|
-
const conditions = columnFilters.flatMap((filter) =>
|
|
377
|
-
filterToFilterCondition(filter.id, filter.value as ColumnFilterValue),
|
|
378
|
-
);
|
|
379
|
-
// To maintain existing behavior "and" all the conditions
|
|
380
|
-
return {
|
|
381
|
-
type: "group",
|
|
382
|
-
operator: "and",
|
|
383
|
-
children: conditions,
|
|
384
|
-
negate: false,
|
|
385
|
-
};
|
|
386
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{emotion-is-prop-valid.esm-DtW2o230.js → emotion-is-prop-valid.esm-DzSb5hsH.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|