@marimo-team/islands 0.25.1-dev90 → 0.25.2-dev0
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-KVhjDMSe.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +8 -9
- package/dist/{ErrorBoundary-D7_peFI9.js → ErrorBoundary-2usl042r.js} +1 -1
- package/dist/{ImageComparisonComponent-Dlm5aWnH.js → ImageComparisonComponent-Cpfz30OZ.js} +51 -52
- package/dist/{abnfDiagram-VCTEODGH-CpN0FRda.js → abnfDiagram-VCTEODGH-AFhOQTt8.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-DDyj5SRB.js → architectureDiagram-5GKGNRK7-BngksAAQ.js} +5 -5
- package/dist/{blockDiagram-I7D4REHJ-BbXEXJRu.js → blockDiagram-I7D4REHJ-CvBmppdy.js} +9 -9
- package/dist/{c4Diagram-7LVT6UL2-DcLsbQmR.js → c4Diagram-7LVT6UL2-EceL4_jH.js} +7 -7
- package/dist/{cells-DYIkSxs6.js → cells-Cv93oav_.js} +4124 -4151
- package/dist/{channel-B5XnTarr.js → channel-z7HZXHwv.js} +1 -1
- package/dist/{chat-ui-BXj3uYjy.js → chat-ui-fVyVOhYN.js} +47 -47
- package/dist/{chunk-4HAMMTFA-D2qv8E0X.js → chunk-4HAMMTFA-BPTTOOC5.js} +5 -5
- package/dist/{chunk-75Z2AOVW-5_HsvXwr.js → chunk-75Z2AOVW-C4AOleKf.js} +1 -1
- package/dist/{chunk-DU6HZSFF-BUgAHvnM.js → chunk-DU6HZSFF-1TwWR6gh.js} +1 -1
- package/dist/{chunk-F27PBJKO-DHmYWZXr.js → chunk-F27PBJKO-DMI1PBe4.js} +1 -1
- package/dist/{chunk-GMAD6QVW-Czynz8aA.js → chunk-GMAD6QVW-vStrMz2P.js} +3 -3
- package/dist/{chunk-GVQU2GXP-yQEdulRS.js → chunk-GVQU2GXP-2HwWgs4u.js} +2 -2
- package/dist/{chunk-IMKFNOWR-BfwTebD0.js → chunk-IMKFNOWR-UOVZuZVn.js} +5 -5
- package/dist/{chunk-L3NEJ4N5-DwRWnDDK.js → chunk-L3NEJ4N5-RhC7i0I2.js} +5 -5
- package/dist/{chunk-OSK3NFVY-BBKU_Ign.js → chunk-OSK3NFVY-CZV09N-U.js} +6 -6
- package/dist/{chunk-P2QGCYS3-C0iGU29N.js → chunk-P2QGCYS3-0TAWai9C.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-BCbS3Ozc.js → chunk-POPQ4Y6H-Cc3_56GX.js} +1 -1
- package/dist/{chunk-PWAF6VOD-CTFCL0jI.js → chunk-PWAF6VOD-lNxB9k8z.js} +1 -1
- package/dist/{chunk-SHT3W25Y-BspJEJ5H.js → chunk-SHT3W25Y-CrEPyWy1.js} +7 -7
- package/dist/{chunk-SVP7TREG-DX3rFNTe.js → chunk-SVP7TREG-uIyyySp6.js} +2 -2
- package/dist/{chunk-TICWLB2K-fVF7Uujg.js → chunk-TICWLB2K-DdXM3eg6.js} +5 -5
- package/dist/classDiagram-ZZMXUADV-BiATbBE4.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-JnH97GYw.js +30 -0
- package/dist/{code-visibility-Cv2cG11L.js → code-visibility-rUDTB2Ce.js} +17 -17
- package/dist/{common-DVOYsne0.js → common-BVErJKjc.js} +6726 -6430
- package/dist/{cynefinDiagram-5FMLGOSQ-CFQrqzSX.js → cynefinDiagram-5FMLGOSQ-zknaAsGy.js} +3 -3
- package/dist/{dagre-GXQ25YYZ-xHNAUTyG.js → dagre-GXQ25YYZ-BhMOoMGJ.js} +10 -10
- package/dist/{data-grid-overlay-editor--Egdzm1k.js → data-grid-overlay-editor-7ANmo9c-.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bt1rPbAx.js → diagram-S7CK7UJ4-V5-Z-EDY.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-D1sq5FoZ.js → diagram-UQ7AKVKN-qw8AjDal.js} +3 -3
- package/dist/{diagram-VSXAHHWV-BKpmG23x.js → diagram-VSXAHHWV-CR7BJygZ.js} +2 -2
- package/dist/{diagram-VX7I27RA-BMwGFVD6.js → diagram-VX7I27RA-DfuqFb1E.js} +5 -5
- package/dist/{diagram-Z3DM3KII--KLDR9Pl.js → diagram-Z3DM3KII-DpWwlYZB.js} +3 -3
- package/dist/{dist-BaHjhkpZ.js → dist-CcyKTBTF.js} +1 -1
- package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
- package/dist/{ebnfDiagram-PWID7BFC-WnG4cvSQ.js → ebnfDiagram-PWID7BFC-C20OnNMZ.js} +3 -3
- package/dist/{erDiagram-RLTQ6QDP-DhzKiYHc.js → erDiagram-RLTQ6QDP-DBXLWO9v.js} +12 -12
- package/dist/{error-entries-C0NsUqXl.js → error-entries-DLl0XqoW.js} +18 -18
- package/dist/{feedback-button-WVepiUsI.js → feedback-button-K1inEVfd.js} +19 -19
- package/dist/flowDiagram-HODETNUW-DL52nMkt.js +16 -0
- package/dist/{formats-BR5iGb4s.js → formats-Cl_67ghI.js} +2 -2
- package/dist/{ganttDiagram-EL5Y4UJY-DbzEBLbl.js → ganttDiagram-EL5Y4UJY-cRRaDt88.js} +2 -2
- package/dist/{gitGraphDiagram-WWUBYQGX-BMf0iKi1.js → gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js} +2 -2
- package/dist/{glide-data-editor-S0WTUxUP.js → glide-data-editor-D2fDO5aG.js} +5 -5
- package/dist/{globals-B0NGznoE.js → globals-NylFP0CX.js} +1 -1
- package/dist/{html-to-image-CeYYvQNb.js → html-to-image-CmkwfNkf.js} +32 -31
- package/dist/{infoDiagram-27XIBGKW-BagtCX_5.js → infoDiagram-27XIBGKW-ntpxMfrq.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-DByDehYy.js → ishikawaDiagram-5VMMS53U-BllIlHE5.js} +3 -3
- package/dist/{journeyDiagram-3NMN7TZE-D2LcKDUO.js → journeyDiagram-3NMN7TZE-EPJDPlt0.js} +2 -2
- package/dist/{kanban-definition-UXKFOSKX-BxwkbBI_.js → kanban-definition-UXKFOSKX-GYtNMjtS.js} +9 -9
- package/dist/{katex-C6D4cX_N.js → katex-BNCmKUol.js} +983 -1120
- package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
- package/dist/{loader-D2W4oM-3.js → loader-DEZSzvma.js} +253 -248
- package/dist/main.js +670 -661
- package/dist/{mermaid-DPNuhemn.js → mermaid-Dnzoxjt1.js} +49 -49
- package/dist/{mhchem-DWCF06w9.js → mhchem-BEc7A1or.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-Cgvojw3y.js → mindmap-definition-YA3MSWOX-Cth76xgH.js} +11 -11
- package/dist/{number-overlay-editor-5uyVnQ6u.js → number-overlay-editor-B4XyCoMu.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DahHhYyN.js → pegDiagram-XKGWAZYB-Cu4uOXii.js} +3 -3
- package/dist/{pieDiagram-E7YTZNPT-CCtX0oCK.js → pieDiagram-E7YTZNPT-Bh3eDa9s.js} +3 -3
- package/dist/{process-output-BCTjlyuH.js → process-output-CYN5E-iO.js} +2 -2
- package/dist/{quadrantDiagram-AXDQQJYC-DftINo6g.js → quadrantDiagram-AXDQQJYC--kqzFC3w.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-Du5NsPUb.js → railroadDiagram-O6MQD6OU-DG-M6Rnc.js} +3 -3
- package/dist/{react-vega-5AcMW8gG.js → react-vega-ewj7q_U5.js} +1 -1
- package/dist/{requirementDiagram-BXWQKSXE-0pmmxL6_.js → requirementDiagram-BXWQKSXE-DCwsThh0.js} +11 -11
- package/dist/{reveal-component-CKpvbtfe.js → reveal-component-Dtm5GH3p.js} +744 -743
- package/dist/{sankeyDiagram-P5KCCOFB-CDKR5TJH.js → sankeyDiagram-P5KCCOFB-BdzhT0BM.js} +1 -1
- package/dist/{sequenceDiagram-WJ2MYXX4-DB-ChWwU.js → sequenceDiagram-WJ2MYXX4-CbXB1_PU.js} +4 -4
- package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
- package/dist/{stateDiagram-D77RDMKH-orN6AwMx.js → stateDiagram-D77RDMKH-A-Zf3Sb2.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-D9YMnUGx.js +30 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BkSDcqDT.js → swimlanes-42K2YHIH-B_pMf0J4.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-Ctgy-yGP.js +30 -0
- package/dist/{timeline-definition-24CTP7MA-BuqJUIRZ.js → timeline-definition-24CTP7MA-DTXFjTTM.js} +3 -3
- package/dist/{toDate-WXg1yLcI.js → toDate-C67bxMWn.js} +139 -111
- package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
- package/dist/{vega-component-D0QXopU8.js → vega-component-tFOzgarw.js} +12 -12
- package/dist/{vega-embed-container-CbnTccZi.js → vega-embed-container-sSR5hAsy.js} +2 -2
- package/dist/{vega-loader.browser-D95WfUcj.js → vega-loader.browser-DNST6uVf.js} +2 -2
- package/dist/{vennDiagram-4TSXK5OY-CTUlJ2PK.js → vennDiagram-4TSXK5OY-BPHjZo0R.js} +3 -3
- package/dist/{wardleyDiagram-VM6X3IG4-3evLUb0M.js → wardleyDiagram-VM6X3IG4-6fTLYBuD.js} +3 -3
- package/dist/{xychartDiagram-S5SC5T6Z-DL2E3K8-.js → xychartDiagram-S5SC5T6Z-BYjwjrzE.js} +5 -5
- package/package.json +1 -2
- package/src/__mocks__/common.ts +3 -3
- package/src/__tests__/CellStatus.test.tsx +1 -1
- package/src/__tests__/setup.ts +7 -7
- package/src/components/app-config/ai-config.tsx +2 -0
- package/src/components/app-config/optional-features.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +19 -8
- package/src/components/data-table/TableTopBar.tsx +2 -2
- package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +286 -0
- package/src/components/data-table/charts/charts.tsx +26 -13
- package/src/components/data-table/column-summary/chart-spec-model.tsx +4 -4
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/export-actions.tsx +642 -176
- package/src/components/data-table/schemas.ts +25 -3
- package/src/components/dependency-graph/elements.ts +2 -2
- package/src/components/editor/__tests__/package-alert.test.tsx +140 -0
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +107 -0
- package/src/components/editor/actions/pair-with-agent.tsx +119 -0
- package/src/components/editor/actions/useNotebookActions.tsx +2 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -0
- package/src/components/editor/ai/staged-cell-submission.ts +2 -2
- package/src/components/editor/ai/transport/chat-transport.tsx +1 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +6 -1
- package/src/components/editor/connections/database/as-code.ts +44 -44
- package/src/components/editor/connections/storage/as-code.ts +3 -3
- package/src/components/editor/file-tree/requesting-tree.tsx +16 -13
- package/src/components/editor/navigation/clipboard.ts +2 -2
- package/src/components/editor/notebook-cell.tsx +2 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +1 -1
- package/src/components/editor/output/VideoOutput.tsx +1 -1
- package/src/components/editor/output/ansi-reduce.ts +21 -17
- package/src/components/editor/output/console/ConsoleOutput.tsx +3 -3
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +59 -0
- package/src/components/editor/output/console/text-rendering.tsx +3 -1
- package/src/components/editor/package-alert.tsx +20 -7
- package/src/components/home/components.tsx +1 -0
- package/src/components/markdown/markdown-renderer.css +1 -1
- package/src/components/pages/run-page.tsx +1 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +7 -7
- package/src/components/slides/__tests__/minimap.test.ts +12 -12
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +8 -8
- package/src/components/static-html/__tests__/share-modal.test.tsx +154 -0
- package/src/components/static-html/__tests__/stage-for-publish.test.ts +111 -0
- package/src/components/static-html/share-modal.tsx +114 -144
- package/src/components/static-html/stage-for-publish.ts +56 -0
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/ui/links.tsx +6 -1
- package/src/components/ui/typography.tsx +16 -8
- package/src/core/ai/context/__tests__/registry.test.ts +31 -28
- package/src/core/ai/context/providers/cell-output.ts +8 -8
- package/src/core/ai/context/providers/datasource.ts +10 -7
- package/src/core/ai/context/providers/error.ts +7 -7
- package/src/core/ai/context/providers/file.ts +8 -8
- package/src/core/ai/context/providers/tables.ts +7 -7
- package/src/core/ai/context/providers/variable.ts +7 -7
- package/src/core/ai/context/registry.ts +18 -18
- package/src/core/ai/ids/ids.ts +5 -5
- package/src/core/ai/model-registry.ts +12 -9
- package/src/core/ai/staged-cells.ts +6 -6
- package/src/core/ai/tools/base.ts +6 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +6 -6
- package/src/core/ai/tools/registry.ts +4 -4
- package/src/core/ai/tools/run-cells-tool.ts +7 -7
- package/src/core/ai/tools/sample-tool.ts +6 -6
- package/src/core/cells/__tests__/cells.test.ts +27 -0
- package/src/core/cells/cells.ts +2 -1
- package/src/core/codemirror/cells/debugger-decorations.ts +13 -7
- package/src/core/codemirror/cells/line-timing-decorations.ts +9 -9
- package/src/core/codemirror/cells/traceback-decorations.ts +7 -4
- package/src/core/codemirror/code-lens/extension.ts +13 -13
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +6 -6
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +12 -12
- package/src/core/codemirror/copilot/language-server.ts +13 -13
- package/src/core/codemirror/copilot/transport.ts +1 -1
- package/src/core/codemirror/find-replace/search-highlight.ts +5 -5
- package/src/core/codemirror/go-to-definition/underline.ts +3 -3
- package/src/core/codemirror/keymaps/vim.ts +3 -3
- package/src/core/codemirror/language/languages/markdown.ts +8 -8
- package/src/core/codemirror/language/languages/python.ts +7 -7
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +5 -5
- package/src/core/codemirror/language/languages/sql/completion-store.ts +4 -4
- package/src/core/codemirror/language/languages/sql/sql.ts +21 -21
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +10 -10
- package/src/core/codemirror/lsp/federated-lsp.ts +29 -27
- package/src/core/codemirror/lsp/notebook-lsp.ts +21 -21
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +10 -10
- package/src/core/codemirror/misc/__tests__/paste.test.ts +7 -4
- package/src/core/codemirror/reactive-references/extension.ts +3 -3
- package/src/core/codemirror/rtc/loro/awareness.ts +12 -12
- package/src/core/codemirror/rtc/loro/sync.ts +5 -5
- package/src/core/codemirror/vim/cursor-visibility.ts +3 -3
- package/src/core/dom/ui-element.ts +5 -5
- package/src/core/dom/uiregistry.ts +10 -10
- package/src/core/hotkeys/hotkeys.ts +9 -9
- package/src/core/islands/__tests__/bridge.test.ts +4 -4
- package/src/core/islands/__tests__/test-utils.tsx +4 -4
- package/src/core/islands/bridge.ts +85 -82
- package/src/core/islands/components/web-components.tsx +7 -7
- package/src/core/islands/worker/__tests__/controller.test.ts +1 -1
- package/src/core/islands/worker/controller.ts +6 -3
- package/src/core/islands/worker-factory.ts +2 -2
- package/src/core/kernel/RuntimeState.ts +4 -4
- package/src/core/kernel/__tests__/session.test.ts +110 -1
- package/src/core/kernel/session.ts +46 -15
- package/src/core/lsp/__tests__/transport.test.ts +19 -19
- package/src/core/lsp/transport.ts +5 -5
- package/src/core/network/CachingRequestRegistry.ts +2 -2
- package/src/core/network/DeferredRequestRegistry.ts +4 -4
- package/src/core/network/__tests__/export-asset-url.test.ts +45 -0
- package/src/core/network/export-asset-url.ts +19 -0
- package/src/core/network/requests-network.ts +2 -7
- package/src/core/runtime/runtime.ts +25 -20
- package/src/core/static/virtual-file-tracker.ts +5 -5
- package/src/core/wasm/__tests__/bridge.test.ts +2 -2
- package/src/core/wasm/bridge.ts +132 -133
- package/src/core/wasm/router.ts +5 -5
- package/src/core/wasm/store.ts +4 -4
- package/src/core/wasm/worker/bootstrap.ts +8 -5
- package/src/core/wasm/worker/message-buffer.ts +3 -3
- package/src/core/websocket/transports/__tests__/ws.test.ts +8 -8
- package/src/core/websocket/transports/basic.ts +15 -8
- package/src/core/websocket/transports/sse.ts +7 -7
- package/src/core/websocket/transports/transport.ts +3 -3
- package/src/core/websocket/transports/ws.ts +9 -7
- package/src/css/globals.css +18 -21
- package/src/css/katex.min.css +260 -241
- package/src/hooks/__tests__/useOverflowDetection.test.tsx +5 -5
- package/src/hooks/__tests__/useResizeObserver.test.tsx +12 -12
- package/src/plugins/core/registerReactComponent.tsx +5 -5
- package/src/plugins/core/sidebar-element.tsx +2 -2
- package/src/plugins/impl/ButtonPlugin.tsx +3 -3
- package/src/plugins/impl/CheckboxPlugin.tsx +3 -3
- package/src/plugins/impl/CodeEditorPlugin.tsx +3 -3
- package/src/plugins/impl/DatePickerPlugin.tsx +3 -3
- package/src/plugins/impl/DateRangePlugin.tsx +3 -3
- package/src/plugins/impl/DateTimePickerPlugin.tsx +3 -3
- package/src/plugins/impl/DictPlugin.tsx +3 -3
- package/src/plugins/impl/DropdownPlugin.tsx +3 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +3 -3
- package/src/plugins/impl/MatrixPlugin.tsx +4 -4
- package/src/plugins/impl/MicrophonePlugin.tsx +3 -3
- package/src/plugins/impl/MultiselectPlugin.tsx +3 -3
- package/src/plugins/impl/NumberPlugin.tsx +3 -3
- package/src/plugins/impl/RadioPlugin.tsx +9 -5
- package/src/plugins/impl/RangeSliderPlugin.tsx +3 -3
- package/src/plugins/impl/RefreshPlugin.tsx +3 -3
- package/src/plugins/impl/SliderPlugin.tsx +3 -3
- package/src/plugins/impl/SwitchPlugin.tsx +3 -3
- package/src/plugins/impl/TabsPlugin.tsx +3 -3
- package/src/plugins/impl/TextAreaPlugin.tsx +3 -3
- package/src/plugins/impl/TextInputPlugin.tsx +3 -3
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +2 -2
- package/src/plugins/impl/anywidget/model.ts +10 -10
- package/src/plugins/impl/anywidget/registry.ts +12 -9
- package/src/plugins/impl/anywidget/runtime.ts +11 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +6 -6
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +7 -6
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +3 -3
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +2 -2
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +2 -2
- package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -10
- package/src/plugins/impl/panel/utils.ts +5 -5
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +3 -3
- package/src/plugins/impl/vega/VegaPlugin.tsx +3 -3
- package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +7 -7
- package/src/plugins/impl/vega/__tests__/utils.test.ts +16 -1
- package/src/plugins/impl/vega/__tests__/vega.test.ts +37 -0
- package/src/plugins/impl/vega/loader.ts +23 -1
- package/src/plugins/impl/vega/utils.ts +5 -4
- package/src/plugins/layout/AccordionPlugin.tsx +3 -3
- package/src/plugins/layout/CalloutPlugin.tsx +3 -3
- package/src/plugins/layout/ImageComparisonPlugin.tsx +5 -3
- package/src/plugins/layout/JsonOutputPlugin.tsx +3 -3
- package/src/plugins/layout/MimeRenderPlugin.tsx +3 -3
- package/src/plugins/layout/NavigationMenuPlugin.tsx +3 -3
- package/src/plugins/layout/OutlinePlugin.tsx +3 -3
- package/src/plugins/layout/ProgressPlugin.tsx +3 -3
- package/src/plugins/layout/RoutesPlugin.tsx +6 -8
- package/src/plugins/layout/StatPlugin.tsx +3 -3
- package/src/plugins/layout/TexPlugin.tsx +3 -3
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +4 -4
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +3 -3
- package/src/utils/Deferred.ts +6 -6
- package/src/utils/async-capture-tracker.ts +10 -7
- package/src/utils/errors.ts +5 -5
- package/src/utils/id-tree.tsx +83 -80
- package/src/utils/lru.ts +1 -1
- package/src/utils/multi-map.ts +14 -12
- package/src/utils/paths.ts +6 -6
- package/src/utils/pluralize.ts +3 -3
- package/src/utils/progress.ts +6 -6
- package/src/utils/python-poet/poet.ts +14 -14
- package/src/utils/routes.ts +4 -2
- package/src/utils/semaphore.ts +6 -6
- package/src/utils/storage/storage.ts +6 -6
- package/src/utils/storage/typed.ts +16 -12
- package/src/utils/time.ts +9 -9
- package/src/utils/timed-cache.ts +4 -4
- package/src/utils/tracer.ts +9 -6
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +0 -30
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +0 -16
- package/dist/katex-DFBiSucW.js +0 -21840
- package/dist/label-BJ49YTvk.js +0 -30
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +0 -30
package/dist/main.js
CHANGED
|
@@ -3,26 +3,25 @@ import { _ as a, c as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p,
|
|
|
3
3
|
import { t as y } from "./react-ofJbxM4x.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
5
|
import { i as x, n as S, r as C, t as w } from "./copy-icon-CLdENY__.js";
|
|
6
|
-
import { C as T, F as E, G as D, I as O, J as k, K as A, L as j, P as M, R as N, X as P, Z as F, _ as I, a as L, b as R, g as ee, i as z, j as te, k as B, n as ne, o as re, q as ie, v as ae, y as oe } from "./html-to-image-
|
|
6
|
+
import { C as T, F as E, G as D, I as O, J as k, K as A, L as j, P as M, R as N, X as P, Z as F, _ as I, a as L, b as R, g as ee, i as z, j as te, k as B, n as ne, o as re, q as ie, v as ae, y as oe } from "./html-to-image-CmkwfNkf.js";
|
|
7
7
|
import { a as se, f as ce, g as V, i as le, n as ue, o as de, p as fe, r as pe, t as me } from "./tooltip-qB8NlSqV.js";
|
|
8
|
-
import { $ as he, $t as ge,
|
|
9
|
-
import { D as
|
|
10
|
-
import { $t as
|
|
11
|
-
import { c as
|
|
12
|
-
import { t as
|
|
13
|
-
import { A as
|
|
14
|
-
import { B as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { a as wa, c as Ta, d as Ea, f as Da, i as Oa, l as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa } from "./process-output-
|
|
8
|
+
import { $ as he, $t as ge, B as _e, Bt as ve, C as ye, Ct as be, D as xe, Dt as Se, Et as Ce, F as we, G as Te, Gt as Ee, Ht as De, I as Oe, J as ke, Jt as Ae, Kt as je, L as Me, O as Ne, Ot as Pe, P as Fe, Pt as Ie, Q as Le, Qt as Re, Rt as ze, S as Be, St as Ve, T as He, Tt as Ue, U as We, W as Ge, Wt as Ke, bt as qe, c as Je, cn as Ye, ct as Xe, d as Ze, dn as Qe, dt as $e, en as et, f as tt, fn as nt, ft as rt, g as it, gt as at, h as ot, hn as st, k as ct, l as lt, ln as ut, m as dt, mn as ft, n as pt, o as mt, on as ht, ot as gt, p as _t, q as vt, qt as yt, r as bt, rn as xt, rt as St, sn as Ct, st as wt, tn as Tt, u as Et, v as Dt, w as Ot, wt as kt, zt as At } from "./cells-Cv93oav_.js";
|
|
9
|
+
import { D as jt, E as Mt, O as Nt, S as Pt, T as Ft, _ as It, a as Lt, c as Rt, d as zt, f as Bt, g as Vt, h as Ht, i as Ut, l as Wt, m as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as Xt, t as Zt, u as Qt, v as $t, w as en, x as tn, y as nn } from "./spec-DQBRQSba.js";
|
|
10
|
+
import { $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Ct as un, D as dn, Dt as fn, E as pn, Et as mn, F as hn, Ft as gn, G as _n, Gt as vn, H as yn, Ht as bn, I as xn, It as Sn, J as Cn, Jt as wn, K as Tn, Kt as En, L as Dn, Lt as On, M as kn, Mt as An, N as jn, Nt as Mn, O as Nn, Ot as Pn, P as Fn, Pt as In, Qt as Ln, R as Rn, Rt as zn, S as Bn, St as Vn, T as Hn, Tt as Un, U as Wn, Ut as Gn, V as Kn, Vt as qn, W as Jn, Wt as Yn, X as Xn, Xt as Zn, Y as Qn, Yt as $n, Zt as er, _ as tr, _t as nr, an as rr, at as ir, b as ar, c as or, cn as sr, ct as cr, d as lr, dn as ur, dt as dr, en as fr, et as pr, f as mr, fn as hr, ft as gr, g as _r, gt as vr, h as yr, hn as br, ht as xr, in as Sr, it as Cr, j as wr, jt as Tr, k as Er, kt as Dr, ln as Or, lt as kr, m as Ar, mn as jr, mt as Mr, nn as Nr, nt as Pr, ot as Fr, p as Ir, pn as Lr, pt as Rr, q as zr, qt as Br, r as Vr, rn as Hr, rt as Ur, sn as Wr, st as Gr, t as Kr, tn as qr, tt as Jr, u as Yr, un as Xr, ut as Zr, v as Qr, vt as $r, w as ei, wt as ti, x as ni, y as ri, yt as ii, z as ai, zt as oi } from "./common-BVErJKjc.js";
|
|
11
|
+
import { c as si, i as ci, n as li, o as ui, t as di } from "./useLifecycle-DPgiiwwU.js";
|
|
12
|
+
import { t as fi } from "./check-B7cIK6gb.js";
|
|
13
|
+
import { A as pi, C as mi, D as hi, E as gi, M as _i, O as vi, S as yi, T as bi, a as xi, b as Si, c as Ci, i as wi, k as Ti, l as Ei, n as Di, o as Oi, r as ki, s as Ai, t as ji, w as Mi, x as Ni } from "./select-C6plhmZr.js";
|
|
14
|
+
import { B as Pi, C as Fi, J as Ii, Mt as Li, Nt as Ri, S as zi, Vt as Bi, W as Vi, _ as Hi, a as Ui, at as Wi, c as Gi, dt as Ki, f as qi, fn as Ji, g as Yi, h as Xi, i as Zi, it as Qi, m as $i, n as ea, p as ta, pn as na, q as ra, r as ia, s as aa, t as oa, v as sa, vt as ca, x as la, z as ua } from "./dropdown-menu-CZy06LAq.js";
|
|
15
|
+
import { C as da, S as fa, T as pa, _ as ma, c as ha, d as ga, f as _a, g as va, h as ya, m as ba, u as xa, x as Sa, y as Ca } from "./toDate-C67bxMWn.js";
|
|
16
|
+
import { a as wa, c as Ta, d as Ea, f as Da, i as Oa, l as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa } from "./process-output-CYN5E-iO.js";
|
|
17
17
|
import { a as Fa, c as Ia, d as La, i as Ra, l as za, r as Ba, u as Va } from "./glide-utils-B3rUT5PI.js";
|
|
18
|
-
import { n as Ha, t as Ua } from "./ErrorBoundary-
|
|
19
|
-
import { n as Wa, t as Ga } from "./globals-
|
|
18
|
+
import { n as Ha, t as Ua } from "./ErrorBoundary-2usl042r.js";
|
|
19
|
+
import { n as Wa, t as Ga } from "./globals-NylFP0CX.js";
|
|
20
20
|
import { t as Ka } from "./react-dom-BUgJ-ab_.js";
|
|
21
21
|
import { t as qa } from "./jsx-runtime-DgDPJV9S.js";
|
|
22
22
|
import { B as Ja, C as H, Ct as Ya, D as Xa, E as Za, Et as Qa, F as U, G as $a, H as eo, I as to, L as no, M as W, N as ro, O as io, P as ao, Q as oo, R as so, S as G, St as co, Tt as lo, U as uo, W as fo, Y as po, Z as mo, _ as ho, a as go, b as _o, bt as vo, c as yo, d as bo, dt as xo, f as So, g as Co, gt as wo, h as To, i as Eo, j as K, k as Do, l as Oo, m as ko, n as Ao, o as jo, p as Mo, r as No, s as Po, u as Fo, v as Io, vt as Lo, w as Ro, wt as zo, x as Bo, xt as Vo, y as Ho, yt as Uo } from "./use-restore-focus-D5D9xEjZ.js";
|
|
23
23
|
import { i as Wo, n as Go, r as Ko, t as qo } from "./error-banner-B94dcDmP.js";
|
|
24
|
-
import {
|
|
25
|
-
import { i as Yo, r as Xo, t as Zo } from "./useNumberFormatter-BfDpa21j.js";
|
|
24
|
+
import { a as Jo, i as Yo, n as Xo, t as Zo } from "./label-BslhXqL6.js";
|
|
26
25
|
import { a as Qo } from "./hasIn-o2Us0uVx.js";
|
|
27
26
|
import { n as $o, t as es } from "./pick-CJeoxYOS.js";
|
|
28
27
|
import { t as ts } from "./debounce-C3jyATpc.js";
|
|
@@ -37,10 +36,10 @@ import { n as ks } from "./dist-BRxfaJgs.js";
|
|
|
37
36
|
import { i as As } from "./dist-C2KzV-vf.js";
|
|
38
37
|
import { n as js, t as Ms } from "./esm-h8f7-1CJ.js";
|
|
39
38
|
import { t as Ns } from "./useAsyncData-BD6AStMt.js";
|
|
40
|
-
import { i as Ps, n as Fs, r as Is } from "./formats-
|
|
41
|
-
import { M as Ls, N as Rs } from "./vega-loader.browser-
|
|
42
|
-
import { a as zs, n as Bs } from "./loader-
|
|
43
|
-
import { c as Vs, d as Hs, i as Us, l as Ws, o as Gs, s as Ks, t as qs, u as Js } from "./code-visibility-
|
|
39
|
+
import { i as Ps, n as Fs, r as Is } from "./formats-Cl_67ghI.js";
|
|
40
|
+
import { M as Ls, N as Rs } from "./vega-loader.browser-DNST6uVf.js";
|
|
41
|
+
import { a as zs, n as Bs } from "./loader-DEZSzvma.js";
|
|
42
|
+
import { c as Vs, d as Hs, i as Us, l as Ws, o as Gs, s as Ks, t as qs, u as Js } from "./code-visibility-rUDTB2Ce.js";
|
|
44
43
|
import { t as Ys } from "./useDeepCompareMemoize-D_HNdyvI.js";
|
|
45
44
|
import { t as Xs } from "./esm-BElI3qKH.js";
|
|
46
45
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
@@ -1859,8 +1858,8 @@ var { enableCache: tu, disableCache: nu, iconLoaded: ru, iconExists: iu, getIcon
|
|
|
1859
1858
|
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
1860
1859
|
key: "ih7n3h"
|
|
1861
1860
|
}]
|
|
1862
|
-
]), J = /* @__PURE__ */ e(y(), 1), sd = /* @__PURE__ */ e(Ka(), 1), Y = qa(), cd = "NavigationMenu", [ld, ud, dd] =
|
|
1863
|
-
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = "horizontal", dir: l, ...u } = e, [d, f] = J.useState(null), p = h(t, (e) => f(e)), m =
|
|
1861
|
+
]), J = /* @__PURE__ */ e(y(), 1), sd = /* @__PURE__ */ e(Ka(), 1), Y = qa(), cd = "NavigationMenu", [ld, ud, dd] = Ti(cd), [fd, pd, md] = Ti(cd), [hd, gd] = zo(cd, [dd, md]), [_d, vd] = hd(cd), [yd, bd] = hd(cd), xd = J.forwardRef((e, t) => {
|
|
1862
|
+
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = "horizontal", dir: l, ...u } = e, [d, f] = J.useState(null), p = h(t, (e) => f(e)), m = vi(l), g = J.useRef(0), _ = J.useRef(0), v = J.useRef(0), [y, b] = J.useState(!0), [x, S] = Vo({
|
|
1864
1863
|
prop: r,
|
|
1865
1864
|
onChange: (e) => {
|
|
1866
1865
|
let t = e !== "", n = s > 0;
|
|
@@ -1944,7 +1943,7 @@ var wd = (e) => {
|
|
|
1944
1943
|
isRootMenu: n,
|
|
1945
1944
|
rootNavigationMenu: r,
|
|
1946
1945
|
value: s,
|
|
1947
|
-
previousValue:
|
|
1946
|
+
previousValue: hi(s),
|
|
1948
1947
|
baseId: Uo(),
|
|
1949
1948
|
dir: i,
|
|
1950
1949
|
orientation: a,
|
|
@@ -2425,7 +2424,7 @@ var sf = xd, cf = Ed, lf = Ad, uf = Md, df = Fd, ff = Ld, pf = Bd, mf = Gd, hf =
|
|
|
2425
2424
|
"ArrowUp",
|
|
2426
2425
|
"ArrowLeft"
|
|
2427
2426
|
]
|
|
2428
|
-
}, vf = "Slider", [yf, bf, xf] =
|
|
2427
|
+
}, vf = "Slider", [yf, bf, xf] = Ti(vf), [Sf, Cf] = zo(vf, [xf]), [wf, Tf] = Sf(vf), Ef = J.forwardRef((e, t) => {
|
|
2429
2428
|
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: l = [r], value: u, onValueChange: d = () => {}, onValueCommit: f = () => {}, inverted: p = !1, form: m, ...h } = e, g = J.useRef(/* @__PURE__ */ new Set()), _ = J.useRef(0), v = o === "horizontal" ? kf : Af, [y = [], b] = Vo({
|
|
2430
2429
|
prop: u,
|
|
2431
2430
|
defaultProp: l,
|
|
@@ -2444,7 +2443,7 @@ var sf = xd, cf = Ed, lf = Ad, uf = Md, df = Fd, ff = Ld, pf = Bd, mf = Gd, hf =
|
|
|
2444
2443
|
y[_.current] !== e && f(y);
|
|
2445
2444
|
}
|
|
2446
2445
|
function T(e, t, { commit: n } = { commit: !1 }) {
|
|
2447
|
-
let o = Yf(a), s = Xf(Math.round((e - r) / a) * a + r, o), l =
|
|
2446
|
+
let o = Yf(a), s = Xf(Math.round((e - r) / a) * a + r, o), l = gi(s, [r, i]);
|
|
2448
2447
|
b((e = []) => {
|
|
2449
2448
|
let r = Vf(e, l, t);
|
|
2450
2449
|
if (qf(r, c * a)) {
|
|
@@ -2504,7 +2503,7 @@ var [Df, Of] = Sf(vf, {
|
|
|
2504
2503
|
size: "width",
|
|
2505
2504
|
direction: 1
|
|
2506
2505
|
}), kf = J.forwardRef((e, t) => {
|
|
2507
|
-
let { min: n, max: r, dir: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, [d, f] = J.useState(null), p = h(t, (e) => f(e)), m = J.useRef(void 0), g =
|
|
2506
|
+
let { min: n, max: r, dir: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, [d, f] = J.useState(null), p = h(t, (e) => f(e)), m = J.useRef(void 0), g = vi(i), _ = g === "ltr", v = _ && !a || !_ && a;
|
|
2508
2507
|
function y(e) {
|
|
2509
2508
|
let t = m.current || d.getBoundingClientRect(), i = Jf([0, t.width], v ? [n, r] : [r, n]);
|
|
2510
2509
|
return m.current = t, i(e - t.left);
|
|
@@ -2676,7 +2675,7 @@ var If = "SliderThumb", Lf = J.forwardRef((e, t) => {
|
|
|
2676
2675
|
});
|
|
2677
2676
|
Lf.displayName = If;
|
|
2678
2677
|
var zf = "RadioBubbleInput", Bf = J.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
2679
|
-
let i = J.useRef(null), a = h(i, r), o =
|
|
2678
|
+
let i = J.useRef(null), a = h(i, r), o = hi(t);
|
|
2680
2679
|
return J.useEffect(() => {
|
|
2681
2680
|
let e = i.current;
|
|
2682
2681
|
if (!e) return;
|
|
@@ -2699,7 +2698,7 @@ function Vf(e = [], t, n) {
|
|
|
2699
2698
|
}
|
|
2700
2699
|
function Hf(e, t, n) {
|
|
2701
2700
|
let r = 100 / (n - t) * (e - t);
|
|
2702
|
-
return
|
|
2701
|
+
return gi(r, [0, 100]);
|
|
2703
2702
|
}
|
|
2704
2703
|
function Uf(e, t) {
|
|
2705
2704
|
if (t > 2) return `Value ${e + 1} of ${t}`;
|
|
@@ -2762,15 +2761,15 @@ var rp = np;
|
|
|
2762
2761
|
//#endregion
|
|
2763
2762
|
//#region ../node_modules/.pnpm/@react-aria+button@3.14.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/button/dist/useToggleButton.mjs
|
|
2764
2763
|
function ip(e, t, n) {
|
|
2765
|
-
let { isSelected: r } = t, { isPressed: i, buttonProps: a } =
|
|
2764
|
+
let { isSelected: r } = t, { isPressed: i, buttonProps: a } = Wi({
|
|
2766
2765
|
...e,
|
|
2767
|
-
onPress:
|
|
2766
|
+
onPress: Bi(t.toggle, e.onPress)
|
|
2768
2767
|
}, n);
|
|
2769
2768
|
return {
|
|
2770
2769
|
isPressed: i,
|
|
2771
2770
|
isSelected: r,
|
|
2772
2771
|
isDisabled: e.isDisabled || !1,
|
|
2773
|
-
buttonProps:
|
|
2772
|
+
buttonProps: Ri(a, { "aria-pressed": r })
|
|
2774
2773
|
};
|
|
2775
2774
|
}
|
|
2776
2775
|
//#endregion
|
|
@@ -2800,7 +2799,7 @@ function ap(e, t, n) {
|
|
|
2800
2799
|
//#endregion
|
|
2801
2800
|
//#region ../node_modules/.pnpm/@react-stately+toggle@3.9.5_react@19.2.8/node_modules/@react-stately/toggle/dist/useToggleState.mjs
|
|
2802
2801
|
function op(e = {}) {
|
|
2803
|
-
let { isReadOnly: t } = e, [n, r] =
|
|
2802
|
+
let { isReadOnly: t } = e, [n, r] = ca(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, J.useState)(n);
|
|
2804
2803
|
function a(e) {
|
|
2805
2804
|
t || r(e);
|
|
2806
2805
|
}
|
|
@@ -2848,7 +2847,7 @@ function fp(e) {
|
|
|
2848
2847
|
}
|
|
2849
2848
|
//#endregion
|
|
2850
2849
|
//#region ../node_modules/.pnpm/react-hook-form@7.54.2_react@19.2.8/node_modules/react-hook-form/dist/index.esm.mjs
|
|
2851
|
-
var X = b(), pp = /* @__PURE__ */ e(
|
|
2850
|
+
var X = b(), pp = /* @__PURE__ */ e(at(), 1), mp = ya(), hp = (e) => e.type === "checkbox", gp = (e) => e instanceof Date, _p = (e) => e == null, vp = (e) => typeof e == "object", yp = (e) => !_p(e) && !Array.isArray(e) && vp(e) && !gp(e), bp = (e) => yp(e) && e.target ? hp(e.target) ? e.target.checked : e.target.value : e, xp = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Sp = (e, t) => e.has(xp(t)), Cp = (e) => {
|
|
2852
2851
|
let t = e.constructor && e.constructor.prototype;
|
|
2853
2852
|
return yp(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2854
2853
|
}, wp = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -4206,7 +4205,7 @@ var bh = J.forwardRef((e, t) => {
|
|
|
4206
4205
|
let s = a && "text-destructive", c;
|
|
4207
4206
|
n[3] !== r || n[4] !== s ? (c = l(s, r), n[3] = r, n[4] = s, n[5] = c) : c = n[5];
|
|
4208
4207
|
let u;
|
|
4209
|
-
return n[6] !== o || n[7] !== i || n[8] !== t || n[9] !== c ? (u = /* @__PURE__ */ (0, Y.jsx)(
|
|
4208
|
+
return n[6] !== o || n[7] !== i || n[8] !== t || n[9] !== c ? (u = /* @__PURE__ */ (0, Y.jsx)(Zo, {
|
|
4210
4209
|
ref: t,
|
|
4211
4210
|
className: c,
|
|
4212
4211
|
htmlFor: o,
|
|
@@ -4266,7 +4265,7 @@ var wh = (e) => {
|
|
|
4266
4265
|
let a;
|
|
4267
4266
|
t[0] === n ? a = t[1] : (a = l("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
4268
4267
|
let o;
|
|
4269
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
4268
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(ft, { className: a }), t[2] = a, t[3] = o);
|
|
4270
4269
|
let s;
|
|
4271
4270
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
4272
4271
|
content: i,
|
|
@@ -4277,7 +4276,7 @@ wh.displayName = "FormMessageTooltip";
|
|
|
4277
4276
|
//#endregion
|
|
4278
4277
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/SelectionIndicator.mjs
|
|
4279
4278
|
var Th = /*#__PURE__*/ (0, J.createContext)({ isSelected: !1 }), Eh = /*#__PURE__*/ (0, J.createContext)(null), Dh = /*#__PURE__*/ (0, J.createContext)({}), Oh = /*#__PURE__*/ (0, J.forwardRef)(function(e, t) {
|
|
4280
|
-
[e, t] =
|
|
4279
|
+
[e, t] = ua(e, t, Dh);
|
|
4281
4280
|
let n = (0, J.useContext)(Eh), r = op(n && e.id != null ? {
|
|
4282
4281
|
isSelected: n.selectedKeys.has(e.id),
|
|
4283
4282
|
onChange(t) {
|
|
@@ -4289,10 +4288,10 @@ var Th = /*#__PURE__*/ (0, J.createContext)({ isSelected: !1 }), Eh = /*#__PURE_
|
|
|
4289
4288
|
}, n, t) : ip({
|
|
4290
4289
|
...e,
|
|
4291
4290
|
id: e.id == null ? void 0 : String(e.id)
|
|
4292
|
-
}, r, t), { focusProps: c, isFocused: l, isFocusVisible: u } =
|
|
4291
|
+
}, r, t), { focusProps: c, isFocused: l, isFocusVisible: u } = Qi(e), { hoverProps: d, isHovered: f } = Ki({
|
|
4293
4292
|
...e,
|
|
4294
4293
|
isDisabled: s
|
|
4295
|
-
}), p =
|
|
4294
|
+
}), p = Pi({
|
|
4296
4295
|
...e,
|
|
4297
4296
|
id: void 0,
|
|
4298
4297
|
values: {
|
|
@@ -4305,9 +4304,9 @@ var Th = /*#__PURE__*/ (0, J.createContext)({ isSelected: !1 }), Eh = /*#__PURE_
|
|
|
4305
4304
|
state: r
|
|
4306
4305
|
},
|
|
4307
4306
|
defaultClassName: "react-aria-ToggleButton"
|
|
4308
|
-
}), m =
|
|
4309
|
-
return delete m.id, delete m.onClick, /*#__PURE__*/ J.createElement(
|
|
4310
|
-
...
|
|
4307
|
+
}), m = Li(e, { global: !0 });
|
|
4308
|
+
return delete m.id, delete m.onClick, /*#__PURE__*/ J.createElement(Vi.button, {
|
|
4309
|
+
...Ri(m, p, i, c, d),
|
|
4311
4310
|
ref: t,
|
|
4312
4311
|
slot: e.slot || void 0,
|
|
4313
4312
|
"data-focused": l || void 0,
|
|
@@ -4352,7 +4351,7 @@ var Ah = J.forwardRef((e, t) => {
|
|
|
4352
4351
|
delay: a.delay,
|
|
4353
4352
|
onChange: i
|
|
4354
4353
|
}, n[4] = i, n[5] = a.delay, n[6] = a.value, n[7] = o) : o = n[7];
|
|
4355
|
-
let { value: s, onChange: c } =
|
|
4354
|
+
let { value: s, onChange: c } = ra(o), l;
|
|
4356
4355
|
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
4357
4356
|
let u;
|
|
4358
4357
|
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, Y.jsx)(kh, {
|
|
@@ -4476,7 +4475,7 @@ var Rh = "\n", zh = (e) => {
|
|
|
4476
4475
|
className: s,
|
|
4477
4476
|
onChange: i,
|
|
4478
4477
|
placeholder: o ? `${o}: one per line` : "One value per line"
|
|
4479
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
4478
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(vn, {
|
|
4480
4479
|
placeholder: o,
|
|
4481
4480
|
displayValue: Hh,
|
|
4482
4481
|
className: l("w-full max-w-[400px]", c),
|
|
@@ -4541,7 +4540,7 @@ function Hh(e) {
|
|
|
4541
4540
|
return e;
|
|
4542
4541
|
}
|
|
4543
4542
|
function Uh(e) {
|
|
4544
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
4543
|
+
return /* @__PURE__ */ (0, Y.jsx)(En, {
|
|
4545
4544
|
value: e,
|
|
4546
4545
|
children: e
|
|
4547
4546
|
}, e);
|
|
@@ -4611,7 +4610,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4611
4610
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
4612
4611
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: i }),
|
|
4613
4612
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: a }),
|
|
4614
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4613
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(ta, {
|
|
4615
4614
|
...e,
|
|
4616
4615
|
onValueChange: e.onChange,
|
|
4617
4616
|
type: "time",
|
|
@@ -4629,7 +4628,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4629
4628
|
name: n,
|
|
4630
4629
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
4631
4630
|
className: l("flex flex-row gap-2", a ? "items-start" : "items-center"),
|
|
4632
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4631
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
4633
4632
|
"data-testid": "marimo-plugin-data-frames-boolean-checkbox",
|
|
4634
4633
|
checked: e.value,
|
|
4635
4634
|
onCheckedChange: e.onChange,
|
|
@@ -4658,7 +4657,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4658
4657
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
4659
4658
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: i }),
|
|
4660
4659
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: a }),
|
|
4661
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4660
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)($i, {
|
|
4662
4661
|
...e,
|
|
4663
4662
|
className: "my-0",
|
|
4664
4663
|
onValueChange: e.onChange
|
|
@@ -4674,7 +4673,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4674
4673
|
render: ({ field: t }) => /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
4675
4674
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: i }),
|
|
4676
4675
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: a }),
|
|
4677
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4676
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(ta, {
|
|
4678
4677
|
...t,
|
|
4679
4678
|
onValueChange: t.onChange,
|
|
4680
4679
|
type: e,
|
|
@@ -4717,7 +4716,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4717
4716
|
}
|
|
4718
4717
|
return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
4719
4718
|
className: "flex flex-col gap-1",
|
|
4720
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
4719
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Zo, { children: i }), /* @__PURE__ */ (0, Y.jsx)(qh, {
|
|
4721
4720
|
schema: e.element,
|
|
4722
4721
|
form: t,
|
|
4723
4722
|
path: n,
|
|
@@ -4777,7 +4776,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4777
4776
|
className: "flex flex-col mb-4 gap-1",
|
|
4778
4777
|
children: [
|
|
4779
4778
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: i }),
|
|
4780
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
4779
|
+
/* @__PURE__ */ (0, Y.jsx)(Ei, {
|
|
4781
4780
|
"data-testid": "marimo-plugin-data-frames-union-select",
|
|
4782
4781
|
...a,
|
|
4783
4782
|
children: c.map((e) => /* @__PURE__ */ (0, Y.jsx)("option", {
|
|
@@ -4919,7 +4918,7 @@ var qh = (e) => {
|
|
|
4919
4918
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
4920
4919
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: o }),
|
|
4921
4920
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: s }),
|
|
4922
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4921
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(ta, {
|
|
4923
4922
|
...t,
|
|
4924
4923
|
type: u,
|
|
4925
4924
|
value: t.value,
|
|
@@ -4970,19 +4969,19 @@ var qh = (e) => {
|
|
|
4970
4969
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
4971
4970
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: c }),
|
|
4972
4971
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: l }),
|
|
4973
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4972
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(Gn, {
|
|
4974
4973
|
className: "flex flex-row gap-2 pt-1 items-center",
|
|
4975
4974
|
value: t.value,
|
|
4976
4975
|
onValueChange: t.onChange,
|
|
4977
4976
|
children: a.map((e) => /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
4978
4977
|
className: "flex items-center gap-1",
|
|
4979
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
4978
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Yn, {
|
|
4980
4979
|
value: e,
|
|
4981
4980
|
id: `${i}-${e}`
|
|
4982
4981
|
}, e), /* @__PURE__ */ (0, Y.jsx)(bh, {
|
|
4983
4982
|
className: "whitespace-pre",
|
|
4984
4983
|
htmlFor: `${i}-${e}`,
|
|
4985
|
-
children:
|
|
4984
|
+
children: Si.startCase(e)
|
|
4986
4985
|
})]
|
|
4987
4986
|
}, e))
|
|
4988
4987
|
}) }),
|
|
@@ -5006,17 +5005,17 @@ var qh = (e) => {
|
|
|
5006
5005
|
children: c
|
|
5007
5006
|
}),
|
|
5008
5007
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: l }),
|
|
5009
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
5008
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
5010
5009
|
"data-testid": "marimo-plugin-data-frames-select",
|
|
5011
5010
|
value: t.value,
|
|
5012
5011
|
onValueChange: t.onChange,
|
|
5013
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
5012
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
5014
5013
|
className: "min-w-[180px]",
|
|
5015
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
5016
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
5014
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "--" })
|
|
5015
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Di, { children: /* @__PURE__ */ (0, Y.jsxs)(ki, { children: [a.map((e) => /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
5017
5016
|
value: e,
|
|
5018
5017
|
children: o?.(e) ?? e
|
|
5019
|
-
}, e)), a.length === 0 && /* @__PURE__ */ (0, Y.jsx)(
|
|
5018
|
+
}, e)), a.length === 0 && /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
5020
5019
|
disabled: !0,
|
|
5021
5020
|
value: "--",
|
|
5022
5021
|
children: "No options"
|
|
@@ -5051,7 +5050,7 @@ var qh = (e) => {
|
|
|
5051
5050
|
value: n,
|
|
5052
5051
|
options: a,
|
|
5053
5052
|
placeholder: p
|
|
5054
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
5053
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(vn, {
|
|
5055
5054
|
className: "min-w-[180px]",
|
|
5056
5055
|
placeholder: p,
|
|
5057
5056
|
displayValue: eg,
|
|
@@ -5079,10 +5078,10 @@ function $h(e) {
|
|
|
5079
5078
|
return e.preventDefault();
|
|
5080
5079
|
}
|
|
5081
5080
|
function eg(e) {
|
|
5082
|
-
return
|
|
5081
|
+
return Si.startCase(e);
|
|
5083
5082
|
}
|
|
5084
5083
|
function tg(e) {
|
|
5085
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
5084
|
+
return /* @__PURE__ */ (0, Y.jsx)(En, {
|
|
5086
5085
|
value: e,
|
|
5087
5086
|
children: e
|
|
5088
5087
|
}, e);
|
|
@@ -5249,18 +5248,18 @@ function ug(e) {
|
|
|
5249
5248
|
return typeof e == "function";
|
|
5250
5249
|
}
|
|
5251
5250
|
function dg(e) {
|
|
5252
|
-
return
|
|
5251
|
+
return Ge(e) && (lg(e.render) || ug(e.initialize));
|
|
5253
5252
|
}
|
|
5254
5253
|
function fg(e) {
|
|
5255
5254
|
return typeof e == "function" || dg(e);
|
|
5256
5255
|
}
|
|
5257
5256
|
function pg(e) {
|
|
5258
|
-
return
|
|
5257
|
+
return Ge(e) && fg(e.default);
|
|
5259
5258
|
}
|
|
5260
5259
|
var mg = /* @__PURE__ */ new Set(), hg = /* @__PURE__ */ new WeakMap();
|
|
5261
5260
|
function gg(e, t) {
|
|
5262
5261
|
if (pg(e)) return e.default;
|
|
5263
|
-
if (!
|
|
5262
|
+
if (!Ge(e) || e.default !== void 0) return null;
|
|
5264
5263
|
let n = lg(e.render) ? e.render : void 0, r = ug(e.initialize) ? e.initialize : void 0;
|
|
5265
5264
|
if (n === void 0 && r === void 0) return null;
|
|
5266
5265
|
let i = hg.get(e);
|
|
@@ -5273,8 +5272,8 @@ function gg(e, t) {
|
|
|
5273
5272
|
return hg.set(e, a), a;
|
|
5274
5273
|
}
|
|
5275
5274
|
function _g(e, t) {
|
|
5276
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
5277
|
-
if (
|
|
5275
|
+
let n = "https://anywidget.dev/en/afm/", r = Ge(e) && We(e, "render"), i = Ge(e) && We(e, "initialize");
|
|
5276
|
+
if (Ge(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
|
|
5278
5277
|
if (r || i) {
|
|
5279
5278
|
let e = [r ? "`render`" : null, i ? "`initialize`" : null].filter(Boolean).join(" and "), a = [r ? "render" : null, i ? "initialize" : null].filter((e) => e !== null), o = `export default { ${a.join(", ")} }`, s = a.length === 1 ? `export function ${a[0]}` : "named export function ...";
|
|
5280
5279
|
return /* @__PURE__ */ Error(`Anywidget module at ${t} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${o}\` (not \`${s}\`). See ${n}`);
|
|
@@ -5286,7 +5285,7 @@ function _g(e, t) {
|
|
|
5286
5285
|
function vg(e) {
|
|
5287
5286
|
return e.startsWith(".") ? e.slice(1) : e;
|
|
5288
5287
|
}
|
|
5289
|
-
function yg(e, t =
|
|
5288
|
+
function yg(e, t = xa()) {
|
|
5290
5289
|
let n = bg(e, t);
|
|
5291
5290
|
if (!n) return e;
|
|
5292
5291
|
let r = ka(n);
|
|
@@ -5343,8 +5342,8 @@ var Dg = class {
|
|
|
5343
5342
|
}
|
|
5344
5343
|
async #t(e, t = {}) {
|
|
5345
5344
|
if (!(Sg(e) || t.kernelAuthored === !0 && /^(https?:|data:)/.test(e))) throw Error(`Refusing to load anywidget module from untrusted URL: ${String(e)}`);
|
|
5346
|
-
let n =
|
|
5347
|
-
return
|
|
5345
|
+
let n = ha(e).toString();
|
|
5346
|
+
return ga() && (n = yg(n)), import(
|
|
5348
5347
|
/* @vite-ignore */
|
|
5349
5348
|
n
|
|
5350
5349
|
);
|
|
@@ -5451,7 +5450,7 @@ var Ag = class e {
|
|
|
5451
5450
|
#r;
|
|
5452
5451
|
#i;
|
|
5453
5452
|
#a = new AbortController();
|
|
5454
|
-
#o = new
|
|
5453
|
+
#o = new fa();
|
|
5455
5454
|
#s = /* @__PURE__ */ new Set();
|
|
5456
5455
|
#c = /* @__PURE__ */ new Map();
|
|
5457
5456
|
#l;
|
|
@@ -5691,7 +5690,7 @@ function Rg(e) {
|
|
|
5691
5690
|
//#endregion
|
|
5692
5691
|
//#region src/plugins/impl/anywidget/registry.ts
|
|
5693
5692
|
function zg() {
|
|
5694
|
-
let e = os.get(
|
|
5693
|
+
let e = os.get(Sa).mode;
|
|
5695
5694
|
return e === "edit" || e === "present";
|
|
5696
5695
|
}
|
|
5697
5696
|
var Bg = new class {
|
|
@@ -5761,7 +5760,7 @@ async function Vg(e, t) {
|
|
|
5761
5760
|
return;
|
|
5762
5761
|
}
|
|
5763
5762
|
e.createModel(n, (e) => {
|
|
5764
|
-
let t =
|
|
5763
|
+
let t = ga() ? {
|
|
5765
5764
|
sendUpdate: async () => void 0,
|
|
5766
5765
|
sendCustomMessage: async () => void 0
|
|
5767
5766
|
} : {
|
|
@@ -5771,7 +5770,7 @@ async function Vg(e, t) {
|
|
|
5771
5770
|
return;
|
|
5772
5771
|
}
|
|
5773
5772
|
let { state: r, buffers: i, bufferPaths: a } = Lg(t);
|
|
5774
|
-
await
|
|
5773
|
+
await Ve().sendModelValue({
|
|
5775
5774
|
modelId: n,
|
|
5776
5775
|
message: {
|
|
5777
5776
|
method: "update",
|
|
@@ -5786,7 +5785,7 @@ async function Vg(e, t) {
|
|
|
5786
5785
|
c.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);
|
|
5787
5786
|
return;
|
|
5788
5787
|
}
|
|
5789
|
-
await
|
|
5788
|
+
await Ve().sendModelValue({
|
|
5790
5789
|
modelId: n,
|
|
5791
5790
|
message: {
|
|
5792
5791
|
method: "custom",
|
|
@@ -5820,10 +5819,10 @@ async function Vg(e, t) {
|
|
|
5820
5819
|
sg(await e.getModel(n)).updateAndEmitDiffs(o);
|
|
5821
5820
|
return;
|
|
5822
5821
|
}
|
|
5823
|
-
default:
|
|
5822
|
+
default: yi(r);
|
|
5824
5823
|
}
|
|
5825
5824
|
}
|
|
5826
|
-
|
|
5825
|
+
gt(Bg, "WIDGET_REGISTRY");
|
|
5827
5826
|
//#endregion
|
|
5828
5827
|
//#region src/components/ui/navigation.tsx
|
|
5829
5828
|
var Hg = J.forwardRef((e, t) => {
|
|
@@ -6156,7 +6155,7 @@ function l_(e) {
|
|
|
6156
6155
|
}
|
|
6157
6156
|
function u_(e) {
|
|
6158
6157
|
let t = new URL(globalThis.location.href);
|
|
6159
|
-
return
|
|
6158
|
+
return _a({
|
|
6160
6159
|
href: e,
|
|
6161
6160
|
queryParams: t.search,
|
|
6162
6161
|
keys: [ss.filePath]
|
|
@@ -6190,7 +6189,7 @@ var f_ = class e {
|
|
|
6190
6189
|
let n = this.entries.get(e);
|
|
6191
6190
|
n === void 0 ? this.entries.set(e, {
|
|
6192
6191
|
objectId: e,
|
|
6193
|
-
value:
|
|
6192
|
+
value: ve(t, this),
|
|
6194
6193
|
elements: /* @__PURE__ */ new Set([t])
|
|
6195
6194
|
}) : n.elements.add(t);
|
|
6196
6195
|
}
|
|
@@ -6255,16 +6254,16 @@ var f_ = class e {
|
|
|
6255
6254
|
detail: { objectId: t }
|
|
6256
6255
|
})));
|
|
6257
6256
|
}
|
|
6258
|
-
}, p_ = f_.INSTANCE, m_ = new
|
|
6259
|
-
await
|
|
6257
|
+
}, p_ = f_.INSTANCE, m_ = new Le("function-call-result", async (e, t) => {
|
|
6258
|
+
await Ve().sendFunctionRequest({
|
|
6260
6259
|
functionCallId: e,
|
|
6261
6260
|
...t
|
|
6262
6261
|
});
|
|
6263
6262
|
}), h_ = (e) => {
|
|
6264
6263
|
let t = (0, X.c)(5), { children: n } = e, r = rs(hs), i;
|
|
6265
|
-
t[0] === r ? i = t[1] : (i =
|
|
6264
|
+
t[0] === r ? i = t[1] : (i = bn(r), t[0] = r, t[1] = i);
|
|
6266
6265
|
let a;
|
|
6267
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
6266
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(Jo, {
|
|
6268
6267
|
locale: i,
|
|
6269
6268
|
children: n
|
|
6270
6269
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
@@ -6295,7 +6294,7 @@ function v_(e, t) {
|
|
|
6295
6294
|
function y_(e, t) {
|
|
6296
6295
|
if (!t) return [];
|
|
6297
6296
|
let n = e;
|
|
6298
|
-
if (
|
|
6297
|
+
if (Un(t)) return [{
|
|
6299
6298
|
column_id: n,
|
|
6300
6299
|
operator: t.operator,
|
|
6301
6300
|
type: "condition",
|
|
@@ -6333,7 +6332,7 @@ function y_(e, t) {
|
|
|
6333
6332
|
type: "condition",
|
|
6334
6333
|
negate: !1
|
|
6335
6334
|
}];
|
|
6336
|
-
default:
|
|
6335
|
+
default: yi(t);
|
|
6337
6336
|
}
|
|
6338
6337
|
case "text": switch (t.operator) {
|
|
6339
6338
|
case "contains":
|
|
@@ -6362,12 +6361,12 @@ function y_(e, t) {
|
|
|
6362
6361
|
type: "condition",
|
|
6363
6362
|
negate: !1
|
|
6364
6363
|
}];
|
|
6365
|
-
default:
|
|
6364
|
+
default: yi(t);
|
|
6366
6365
|
}
|
|
6367
6366
|
case "date":
|
|
6368
6367
|
case "datetime":
|
|
6369
6368
|
case "time": {
|
|
6370
|
-
let e = t.type === "date" ?
|
|
6369
|
+
let e = t.type === "date" ? fn : t.type === "time" ? Dr : Pn;
|
|
6371
6370
|
switch (t.operator) {
|
|
6372
6371
|
case "between": return [{
|
|
6373
6372
|
column_id: n,
|
|
@@ -6391,7 +6390,7 @@ function y_(e, t) {
|
|
|
6391
6390
|
type: "condition",
|
|
6392
6391
|
negate: !1
|
|
6393
6392
|
}];
|
|
6394
|
-
default:
|
|
6393
|
+
default: yi(t);
|
|
6395
6394
|
}
|
|
6396
6395
|
}
|
|
6397
6396
|
case "boolean": return [{
|
|
@@ -6400,7 +6399,7 @@ function y_(e, t) {
|
|
|
6400
6399
|
type: "condition",
|
|
6401
6400
|
negate: !1
|
|
6402
6401
|
}];
|
|
6403
|
-
default:
|
|
6402
|
+
default: yi(t);
|
|
6404
6403
|
}
|
|
6405
6404
|
}
|
|
6406
6405
|
function b_(e) {
|
|
@@ -9010,7 +9009,7 @@ function Gx(e) {
|
|
|
9010
9009
|
let t = (0, X.c)(9), { option: n, checked: r, renderOption: i } = e, a = r || void 0, o = n.value, s;
|
|
9011
9010
|
t[0] !== r || t[1] !== n || t[2] !== i ? (s = i ? i(n, { checked: r }) : n.label, t[0] = r, t[1] = n, t[2] = i, t[3] = s) : s = t[3];
|
|
9012
9011
|
let c;
|
|
9013
|
-
return t[4] !== n.disabled || t[5] !== a || t[6] !== o || t[7] !== s ? (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
9012
|
+
return t[4] !== n.disabled || t[5] !== a || t[6] !== o || t[7] !== s ? (c = /* @__PURE__ */ (0, Y.jsx)(En, {
|
|
9014
9013
|
"data-slot": "select-option",
|
|
9015
9014
|
"data-checked": a,
|
|
9016
9015
|
value: o,
|
|
@@ -9043,7 +9042,7 @@ function Yx(e) {
|
|
|
9043
9042
|
allowSelectNone: s,
|
|
9044
9043
|
pinSelected: b
|
|
9045
9044
|
}, t[0] = s, t[1] = o, t[2] = a, t[3] = i, t[4] = n, t[5] = b, t[6] = r, t[7] = O) : O = t[7];
|
|
9046
|
-
let k =
|
|
9045
|
+
let k = Wn(O), A;
|
|
9047
9046
|
t[8] !== s || t[9] !== o || t[10] !== a || t[11] !== i ? (A = (e) => {
|
|
9048
9047
|
if (!a) {
|
|
9049
9048
|
if (e == null && !s) return;
|
|
@@ -9057,12 +9056,12 @@ function Yx(e) {
|
|
|
9057
9056
|
if (t[13] !== k.bulkActions) {
|
|
9058
9057
|
if (M = k.bulkActions.map(Xx), M.length > 0) {
|
|
9059
9058
|
let e;
|
|
9060
|
-
t[15] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(
|
|
9059
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Ln, { "data-slot": "select-separator" }, "_bulk_separator"), t[15] = e) : e = t[15], M.push(e);
|
|
9061
9060
|
}
|
|
9062
9061
|
t[13] = k.bulkActions, t[14] = M;
|
|
9063
9062
|
} else M = t[14];
|
|
9064
9063
|
let N;
|
|
9065
|
-
t[16] !== k.pinnedCount || t[17] !== k.visibleOptions.length ? (N = (e) => k.pinnedCount > 0 && e === k.pinnedCount && k.pinnedCount < k.visibleOptions.length ? /* @__PURE__ */ (0, Y.jsx)(
|
|
9064
|
+
t[16] !== k.pinnedCount || t[17] !== k.visibleOptions.length ? (N = (e) => k.pinnedCount > 0 && e === k.pinnedCount && k.pinnedCount < k.visibleOptions.length ? /* @__PURE__ */ (0, Y.jsx)(Ln, { "data-slot": "select-separator" }, "_pinned_separator") : null, t[16] = k.pinnedCount, t[17] = k.visibleOptions.length, t[18] = N) : N = t[18];
|
|
9066
9065
|
let P = N, F;
|
|
9067
9066
|
t[19] !== M || t[20] !== k || t[21] !== P || t[22] !== g || t[23] !== E || t[24] !== D ? (F = () => {
|
|
9068
9067
|
if (k.visibleOptions.length > E) return /* @__PURE__ */ (0, Y.jsx)(tx, {
|
|
@@ -9099,7 +9098,7 @@ function Yx(e) {
|
|
|
9099
9098
|
return t.length === 0 ? /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
9100
9099
|
className: "text-muted-foreground",
|
|
9101
9100
|
children: S
|
|
9102
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
9101
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(Jn, {
|
|
9103
9102
|
items: t.map(k.labelOf),
|
|
9104
9103
|
max: 3
|
|
9105
9104
|
});
|
|
@@ -9128,13 +9127,13 @@ function Yx(e) {
|
|
|
9128
9127
|
id: h
|
|
9129
9128
|
}, t[36] = C, t[37] = h, t[38] = k.open, t[39] = k.searchQuery, t[40] = k.setOpen, t[41] = k.setSearchQuery, t[42] = S, t[43] = ee, t[44] = z, t[45] = te, t[46] = B, t[47] = oe, t[48] = se) : se = t[48];
|
|
9130
9129
|
let ce = se, V;
|
|
9131
|
-
return t[49] !== ce || t[50] !== j || t[51] !== a || t[52] !== I || t[53] !== r ? (V = a ? /* @__PURE__ */ (0, Y.jsx)(
|
|
9130
|
+
return t[49] !== ce || t[50] !== j || t[51] !== a || t[52] !== I || t[53] !== r ? (V = a ? /* @__PURE__ */ (0, Y.jsx)(vn, {
|
|
9132
9131
|
...ce,
|
|
9133
9132
|
multiple: !0,
|
|
9134
9133
|
value: r,
|
|
9135
9134
|
onValueChange: j,
|
|
9136
9135
|
children: I()
|
|
9137
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
9136
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(vn, {
|
|
9138
9137
|
...ce,
|
|
9139
9138
|
multiple: !1,
|
|
9140
9139
|
value: r,
|
|
@@ -9144,7 +9143,7 @@ function Yx(e) {
|
|
|
9144
9143
|
}
|
|
9145
9144
|
function Xx(e) {
|
|
9146
9145
|
let t = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
9147
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
9146
|
+
return /* @__PURE__ */ (0, Y.jsx)(Zn, {
|
|
9148
9147
|
"data-slot": "select-bulk",
|
|
9149
9148
|
className: "pl-6 m-1 py-1",
|
|
9150
9149
|
value: `__bulk_${e.kind}`,
|
|
@@ -9183,7 +9182,7 @@ var Zx = ie, Qx = D, $x = A, eS = k, tS = (e) => {
|
|
|
9183
9182
|
className: "text-muted-foreground border-muted-foreground-20",
|
|
9184
9183
|
children: [o, /* @__PURE__ */ (0, Y.jsx)(Qx, {
|
|
9185
9184
|
className: "text-[0.84375rem]",
|
|
9186
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
9185
|
+
children: /* @__PURE__ */ (0, Y.jsx)(lr, { data: r })
|
|
9187
9186
|
})]
|
|
9188
9187
|
})
|
|
9189
9188
|
}), t[6] = r, t[7] = s);
|
|
@@ -9221,10 +9220,10 @@ function rS(e) {
|
|
|
9221
9220
|
//#region src/plugins/core/registerReactComponent.tsx
|
|
9222
9221
|
var iS = 3, aS = 150;
|
|
9223
9222
|
function oS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
9224
|
-
let [s, l] = (0, J.useState)(n), [u, d] = (0, J.useState)(r()), { theme: f } = fs(), [p, m] = (0, J.useState)(() => t.validator.safeParse(
|
|
9223
|
+
let [s, l] = (0, J.useState)(n), [u, d] = (0, J.useState)(r()), { theme: f } = fs(), [p, m] = (0, J.useState)(() => t.validator.safeParse(At(e))), [h, g] = (0, J.useState)(0);
|
|
9225
9224
|
(0, J.useImperativeHandle)(i, () => ({
|
|
9226
9225
|
reset: () => {
|
|
9227
|
-
d(r()), m(t.validator.safeParse(
|
|
9226
|
+
d(r()), m(t.validator.safeParse(At(e))), g((e) => e + 1);
|
|
9228
9227
|
},
|
|
9229
9228
|
setChildren: (e) => {
|
|
9230
9229
|
l(e);
|
|
@@ -9233,7 +9232,7 @@ function oS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9233
9232
|
t.detail.element === e && d(t.detail.value);
|
|
9234
9233
|
}), (0, J.useEffect)(() => {
|
|
9235
9234
|
let n = new MutationObserver((n) => {
|
|
9236
|
-
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(
|
|
9235
|
+
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(At(e)));
|
|
9237
9236
|
});
|
|
9238
9237
|
return n.observe(e, { attributes: !0 }), () => {
|
|
9239
9238
|
n.disconnect();
|
|
@@ -9251,10 +9250,10 @@ function oS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9251
9250
|
let { input: t, output: a } = i;
|
|
9252
9251
|
n[r] = async (...n) => {
|
|
9253
9252
|
xs(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
|
|
9254
|
-
let i =
|
|
9253
|
+
let i = ga(), o = De.findElementThroughShadowDOMs(e)?.id, s = o ? De.parse(o) : null;
|
|
9255
9254
|
if (s && !i) {
|
|
9256
|
-
let e = os.get(
|
|
9257
|
-
if (
|
|
9255
|
+
let e = os.get(Ze), t = e.cellRuntime[s], n = e.cellData[s];
|
|
9256
|
+
if (Ue({
|
|
9258
9257
|
executionTime: t.runElapsedTimeMs ?? n.lastExecutionTime,
|
|
9259
9258
|
status: t.status,
|
|
9260
9259
|
errored: t.errored,
|
|
@@ -9357,7 +9356,7 @@ function uS(e) {
|
|
|
9357
9356
|
hostElement: this,
|
|
9358
9357
|
plugin: e,
|
|
9359
9358
|
ref: this.pluginRef,
|
|
9360
|
-
getInitialValue: () =>
|
|
9359
|
+
getInitialValue: () => ve(this, f_.INSTANCE),
|
|
9361
9360
|
children: this.getChildren()
|
|
9362
9361
|
}) })
|
|
9363
9362
|
}));
|
|
@@ -9428,7 +9427,7 @@ function hS() {
|
|
|
9428
9427
|
inputListener = a.NOOP;
|
|
9429
9428
|
init() {
|
|
9430
9429
|
if (this.initialized) return;
|
|
9431
|
-
let e =
|
|
9430
|
+
let e = Ke.parseOrThrow(this);
|
|
9432
9431
|
this.inputListener = (n) => {
|
|
9433
9432
|
e !== null && n.detail.element === this.firstElementChild && (p_.has(e) || p_.registerInstance(e, t), p_.broadcastValueUpdate(t, e, n.detail.value));
|
|
9434
9433
|
};
|
|
@@ -9449,14 +9448,14 @@ function hS() {
|
|
|
9449
9448
|
}
|
|
9450
9449
|
connectedCallback() {
|
|
9451
9450
|
if (this.init(), this.initialized) {
|
|
9452
|
-
let e =
|
|
9451
|
+
let e = Ke.parseOrThrow(this), t = this.firstElementChild;
|
|
9453
9452
|
p_.registerInstance(e, t), document.addEventListener(wa.TYPE, this.inputListener);
|
|
9454
9453
|
}
|
|
9455
9454
|
}
|
|
9456
9455
|
disconnectedCallback() {
|
|
9457
9456
|
if (this.initialized) {
|
|
9458
9457
|
document.removeEventListener(wa.TYPE, this.inputListener);
|
|
9459
|
-
let e =
|
|
9458
|
+
let e = Ke.parseOrThrow(this);
|
|
9460
9459
|
p_.removeInstance(e, this.firstElementChild);
|
|
9461
9460
|
}
|
|
9462
9461
|
}
|
|
@@ -9465,7 +9464,7 @@ function hS() {
|
|
|
9465
9464
|
fS(e) ? e.reset() : c.error("[marimo-ui-element] first child must have a reset method");
|
|
9466
9465
|
}
|
|
9467
9466
|
static get observedAttributes() {
|
|
9468
|
-
return [
|
|
9467
|
+
return [yt];
|
|
9469
9468
|
}
|
|
9470
9469
|
attributeChangedCallback(e, t, n) {
|
|
9471
9470
|
if (this.initialized && e === "random-id" && t !== n) {
|
|
@@ -9479,16 +9478,16 @@ function hS() {
|
|
|
9479
9478
|
}
|
|
9480
9479
|
function gS(e) {
|
|
9481
9480
|
if (!e) return null;
|
|
9482
|
-
if (e.nodeName === mS) return
|
|
9481
|
+
if (e.nodeName === mS) return Ke.parseOrThrow(e);
|
|
9483
9482
|
let t = e.parentElement;
|
|
9484
|
-
return t?.nodeName === mS ?
|
|
9483
|
+
return t?.nodeName === mS ? Ke.parseOrThrow(t) : null;
|
|
9485
9484
|
}
|
|
9486
9485
|
function _S(e) {
|
|
9487
9486
|
return e.tagName === mS;
|
|
9488
9487
|
}
|
|
9489
9488
|
//#endregion
|
|
9490
9489
|
//#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
|
|
9491
|
-
var vS =
|
|
9490
|
+
var vS = Re({ isOpen: !0 }, (e, t) => {
|
|
9492
9491
|
if (!t) return e;
|
|
9493
9492
|
switch (t.type) {
|
|
9494
9493
|
case "toggle": return {
|
|
@@ -9520,21 +9519,21 @@ function bS() {
|
|
|
9520
9519
|
this.observer && (this.observer.disconnect(), this.unmountReactComponent());
|
|
9521
9520
|
}
|
|
9522
9521
|
mountReactComponent() {
|
|
9523
|
-
this.syncWidth(),
|
|
9524
|
-
name:
|
|
9522
|
+
this.syncWidth(), Xn.mount({
|
|
9523
|
+
name: Qn.SIDEBAR,
|
|
9525
9524
|
ref: this.uniqueId,
|
|
9526
9525
|
children: this.getContents()
|
|
9527
9526
|
});
|
|
9528
9527
|
}
|
|
9529
9528
|
unmountReactComponent() {
|
|
9530
|
-
|
|
9531
|
-
name:
|
|
9529
|
+
Xn.unmount({
|
|
9530
|
+
name: Qn.SIDEBAR,
|
|
9532
9531
|
ref: this.uniqueId
|
|
9533
9532
|
});
|
|
9534
9533
|
}
|
|
9535
9534
|
updateReactComponent() {
|
|
9536
|
-
this.syncWidth(),
|
|
9537
|
-
name:
|
|
9535
|
+
this.syncWidth(), Xn.update({
|
|
9536
|
+
name: Qn.SIDEBAR,
|
|
9538
9537
|
ref: this.uniqueId,
|
|
9539
9538
|
children: this.getContents()
|
|
9540
9539
|
});
|
|
@@ -9633,7 +9632,7 @@ var SS = xS("marimo-anywidget").withData(W({ modelId: Ro(rg, { message: "Expecte
|
|
|
9633
9632
|
let i, a, o;
|
|
9634
9633
|
if (t[1] !== r || t[2] !== n) {
|
|
9635
9634
|
let e = n.split("-");
|
|
9636
|
-
i =
|
|
9635
|
+
i = Gi, t[6] === r ? a = t[7] : (a = l("flex gap-1 items-center", r), t[6] = r, t[7] = a), o = e.map(ES).map(AS), t[1] = r, t[2] = n, t[3] = i, t[4] = a, t[5] = o;
|
|
9637
9636
|
} else i = t[3], a = t[4], o = t[5];
|
|
9638
9637
|
let s;
|
|
9639
9638
|
return t[8] !== i || t[9] !== a || t[10] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(i, {
|
|
@@ -9775,8 +9774,8 @@ function kS(e) {
|
|
|
9775
9774
|
tabIndex: -1,
|
|
9776
9775
|
content: t,
|
|
9777
9776
|
delayDuration: 300,
|
|
9778
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
9779
|
-
}, t) : /* @__PURE__ */ (0, Y.jsx)(
|
|
9777
|
+
children: /* @__PURE__ */ (0, Y.jsx)(cn, { children: n }, t)
|
|
9778
|
+
}, t) : /* @__PURE__ */ (0, Y.jsx)(cn, { children: OS(t) }, t);
|
|
9780
9779
|
}
|
|
9781
9780
|
function AS(e) {
|
|
9782
9781
|
let [t, n] = e;
|
|
@@ -9866,7 +9865,7 @@ var PS = (e) => {
|
|
|
9866
9865
|
t[12] !== c || t[13] !== d || t[14] !== f ? (p = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
9867
9866
|
part: "label",
|
|
9868
9867
|
className: "inline-flex items-center m-0 p-0",
|
|
9869
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
9868
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Zo, {
|
|
9870
9869
|
htmlFor: c,
|
|
9871
9870
|
className: d,
|
|
9872
9871
|
children: f
|
|
@@ -9895,7 +9894,7 @@ var PS = (e) => {
|
|
|
9895
9894
|
e !== "indeterminate" && r(e);
|
|
9896
9895
|
}, t[0] = r, t[1] = a);
|
|
9897
9896
|
let o = a, s = (0, J.useId)(), c;
|
|
9898
|
-
t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
9897
|
+
t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
9899
9898
|
"data-testid": "marimo-plugin-checkbox",
|
|
9900
9899
|
checked: n,
|
|
9901
9900
|
onCheckedChange: o,
|
|
@@ -9940,7 +9939,7 @@ var PS = (e) => {
|
|
|
9940
9939
|
onChange: u,
|
|
9941
9940
|
disabled: f
|
|
9942
9941
|
}, t[2] = e.setValue, t[3] = e.value, t[4] = l, t[5] = f, t[6] = p) : p = t[6];
|
|
9943
|
-
let { onChange: m } =
|
|
9942
|
+
let { onChange: m } = ra(p), h;
|
|
9944
9943
|
t[7] !== e || t[8] !== m ? (h = (t) => {
|
|
9945
9944
|
s((e) => t), typeof e.debounce == "number" ? m(t) : e.debounce || e.setValue(t);
|
|
9946
9945
|
}, t[7] = e, t[8] = m, t[9] = h) : h = t[9];
|
|
@@ -9992,7 +9991,7 @@ var PS = (e) => {
|
|
|
9992
9991
|
output: t
|
|
9993
9992
|
};
|
|
9994
9993
|
} };
|
|
9995
|
-
} }, BS = J.lazy(() => import("./chat-ui-
|
|
9994
|
+
} }, BS = J.lazy(() => import("./chat-ui-fVyVOhYN.js").then((e) => ({ default: e.Chatbot }))), VS = G(W({
|
|
9996
9995
|
id: U(),
|
|
9997
9996
|
role: Io([
|
|
9998
9997
|
"system",
|
|
@@ -10047,9 +10046,9 @@ var PS = (e) => {
|
|
|
10047
10046
|
let s = r || "rounded-md border", c;
|
|
10048
10047
|
t[2] === s ? c = t[3] : (c = l(s), t[2] = s, t[3] = c);
|
|
10049
10048
|
let u;
|
|
10050
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, Y.jsx)(
|
|
10049
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, Y.jsx)(Fr, { children: Array.from({ length: 1 }).map(qS) }), t[4] = u) : u = t[4];
|
|
10051
10050
|
let d;
|
|
10052
|
-
t[5] === a ? d = t[6] : (d = /* @__PURE__ */ (0, Y.jsxs)(
|
|
10051
|
+
t[5] === a ? d = t[6] : (d = /* @__PURE__ */ (0, Y.jsxs)(Pr, { children: [u, /* @__PURE__ */ (0, Y.jsx)(Ur, { children: Array.from({ length: a }).map(YS) })] }), t[5] = a, t[6] = d);
|
|
10053
10052
|
let f;
|
|
10054
10053
|
t[7] !== c || t[8] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
10055
10054
|
part: "table-wrapper",
|
|
@@ -10065,16 +10064,16 @@ var PS = (e) => {
|
|
|
10065
10064
|
}), t[11] = o, t[12] = f, t[13] = m) : m = t[13], m;
|
|
10066
10065
|
};
|
|
10067
10066
|
function KS(e, t) {
|
|
10068
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
10067
|
+
return /* @__PURE__ */ (0, Y.jsx)(ir, { children: /* @__PURE__ */ (0, Y.jsx)("div", { className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[70%]" }) }, t);
|
|
10069
10068
|
}
|
|
10070
10069
|
function qS(e, t) {
|
|
10071
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
10070
|
+
return /* @__PURE__ */ (0, Y.jsx)(Gr, { children: Array.from({ length: 8 }).map(KS) }, t);
|
|
10072
10071
|
}
|
|
10073
10072
|
function JS(e, t) {
|
|
10074
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
10073
|
+
return /* @__PURE__ */ (0, Y.jsx)(Cr, { children: /* @__PURE__ */ (0, Y.jsx)("div", { className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[90%]" }) }, t);
|
|
10075
10074
|
}
|
|
10076
10075
|
function YS(e, t) {
|
|
10077
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
10076
|
+
return /* @__PURE__ */ (0, Y.jsx)(Gr, { children: Array.from({ length: 8 }).map(JS) }, t);
|
|
10078
10077
|
}
|
|
10079
10078
|
//#endregion
|
|
10080
10079
|
//#region src/core/kernel/messages.ts
|
|
@@ -10396,7 +10395,7 @@ function LC(e) {
|
|
|
10396
10395
|
];
|
|
10397
10396
|
return new Map(i);
|
|
10398
10397
|
}
|
|
10399
|
-
default: return
|
|
10398
|
+
default: return mi(e), t;
|
|
10400
10399
|
}
|
|
10401
10400
|
}
|
|
10402
10401
|
//#endregion
|
|
@@ -10448,7 +10447,7 @@ function RC(e, t) {
|
|
|
10448
10447
|
newColumnName: e.newName
|
|
10449
10448
|
});
|
|
10450
10449
|
break;
|
|
10451
|
-
default:
|
|
10450
|
+
default: mi(e);
|
|
10452
10451
|
}
|
|
10453
10452
|
}
|
|
10454
10453
|
return {
|
|
@@ -10458,7 +10457,7 @@ function RC(e, t) {
|
|
|
10458
10457
|
}
|
|
10459
10458
|
//#endregion
|
|
10460
10459
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
10461
|
-
var zC = J.lazy(() => import("./glide-data-editor-
|
|
10460
|
+
var zC = J.lazy(() => import("./glide-data-editor-D2fDO5aG.js").then((e) => e.t)), BC = xS("marimo-data-editor", { cssStyles: [WS] }).withData(W({
|
|
10462
10461
|
initialValue: W({ edits: G(W({
|
|
10463
10462
|
rowIdx: K(),
|
|
10464
10463
|
columnId: U(),
|
|
@@ -10480,13 +10479,13 @@ var zC = J.lazy(() => import("./glide-data-editor-S0WTUxUP.js").then((e) => e.t)
|
|
|
10480
10479
|
})), VC = (e) => {
|
|
10481
10480
|
let t = (0, X.c)(20), [n, r] = (0, J.useState)(null), i, a;
|
|
10482
10481
|
t[0] !== e.columnNames || t[1] !== e.data || t[2] !== e.fieldTypes ? (i = async () => {
|
|
10483
|
-
let t =
|
|
10482
|
+
let t = un(e.fieldTypes ?? []), n = Array.isArray(e.data) ? e.data : await Bs(e.data, {
|
|
10484
10483
|
type: "csv",
|
|
10485
10484
|
parse: Rs(Object.fromEntries(t))
|
|
10486
10485
|
}, { handleBigIntAndNumberLike: !0 });
|
|
10487
10486
|
return {
|
|
10488
10487
|
data: n,
|
|
10489
|
-
columnFields: NC(
|
|
10488
|
+
columnFields: NC(un(e.fieldTypes ?? Zr(n)), e.columnNames)
|
|
10490
10489
|
};
|
|
10491
10490
|
}, a = [
|
|
10492
10491
|
e.fieldTypes,
|
|
@@ -10511,7 +10510,7 @@ var zC = J.lazy(() => import("./glide-data-editor-S0WTUxUP.js").then((e) => e.t)
|
|
|
10511
10510
|
}
|
|
10512
10511
|
if (n === null) {
|
|
10513
10512
|
let e;
|
|
10514
|
-
return t[12] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(
|
|
10513
|
+
return t[12] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Mr, {
|
|
10515
10514
|
milliseconds: 200,
|
|
10516
10515
|
children: /* @__PURE__ */ (0, Y.jsx)(GS, { pageSize: 10 })
|
|
10517
10516
|
}), t[12] = e) : e = t[12], e;
|
|
@@ -10751,7 +10750,7 @@ ${n}
|
|
|
10751
10750
|
}
|
|
10752
10751
|
function iw(e) {
|
|
10753
10752
|
let t = {};
|
|
10754
|
-
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = n === "field" && typeof r == "string" ? new ZC(
|
|
10753
|
+
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = n === "field" && typeof r == "string" ? new ZC(Mt(r)) : new ZC(r));
|
|
10755
10754
|
return t;
|
|
10756
10755
|
}
|
|
10757
10756
|
//#endregion
|
|
@@ -10759,7 +10758,7 @@ function iw(e) {
|
|
|
10759
10758
|
var aw = (0, J.createContext)({
|
|
10760
10759
|
fields: [],
|
|
10761
10760
|
saveForm: a.NOOP,
|
|
10762
|
-
chartType:
|
|
10761
|
+
chartType: Wt.LINE
|
|
10763
10762
|
}), ow = () => (0, J.use)(aw);
|
|
10764
10763
|
//#endregion
|
|
10765
10764
|
//#region src/hooks/useBoolean.ts
|
|
@@ -10793,7 +10792,7 @@ function cw(e) {
|
|
|
10793
10792
|
var lw = J.forwardRef((e, t) => {
|
|
10794
10793
|
let n = (0, X.c)(26), r, i, a;
|
|
10795
10794
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, valueMap: a, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
10796
|
-
let [o, s] = sw(!1), { locale: c } =
|
|
10795
|
+
let [o, s] = sw(!1), { locale: c } = Yo(), u;
|
|
10797
10796
|
n[4] === r ? u = n[5] : (u = l("relative flex touch-none select-none hover:cursor-pointer", "data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center", "data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center", "data-disabled:cursor-not-allowed", r), n[4] = r, n[5] = u);
|
|
10798
10797
|
let d;
|
|
10799
10798
|
n[6] === Symbol.for("react.memo_cache_sentinel") ? (d = l("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), n[6] = d) : d = n[6];
|
|
@@ -10819,7 +10818,7 @@ var lw = J.forwardRef((e, t) => {
|
|
|
10819
10818
|
})
|
|
10820
10819
|
}), n[8] = s.setFalse, n[9] = s.setTrue, n[10] = p) : p = n[10];
|
|
10821
10820
|
let m;
|
|
10822
|
-
n[11] !== c || n[12] !== i.value || n[13] !== a ? (m = i.value != null && i.value.length === 1 && /* @__PURE__ */ (0, Y.jsx)(ue, { children:
|
|
10821
|
+
n[11] !== c || n[12] !== i.value || n[13] !== a ? (m = i.value != null && i.value.length === 1 && /* @__PURE__ */ (0, Y.jsx)(ue, { children: zi(a(i.value[0]), { locale: c }) }, i.value[0]), n[11] = c, n[12] = i.value, n[13] = a, n[14] = m) : m = n[14];
|
|
10823
10822
|
let h;
|
|
10824
10823
|
n[15] === m ? h = n[16] : (h = /* @__PURE__ */ (0, Y.jsx)(pe, { children: m }), n[15] = m, n[16] = h);
|
|
10825
10824
|
let g;
|
|
@@ -10891,9 +10890,9 @@ function fw(e) {
|
|
|
10891
10890
|
//#endregion
|
|
10892
10891
|
//#region src/components/editor/cell/useAddCell.ts
|
|
10893
10892
|
function pw() {
|
|
10894
|
-
let e = (0, X.c)(4), t = rs(ls), n =
|
|
10893
|
+
let e = (0, X.c)(4), t = rs(ls), n = Ne(), { createNewCell: r } = ot(), i;
|
|
10895
10894
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
10896
|
-
e.includes("alt") &&
|
|
10895
|
+
e.includes("alt") && ct({
|
|
10897
10896
|
autoInstantiate: t,
|
|
10898
10897
|
createNewCell: r,
|
|
10899
10898
|
fromCellId: n
|
|
@@ -12164,7 +12163,7 @@ var hw = [mw({
|
|
|
12164
12163
|
borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
|
|
12165
12164
|
},
|
|
12166
12165
|
".mo-cm-reactive-reference-hover": { cursor: "pointer" }
|
|
12167
|
-
})], _w = [
|
|
12166
|
+
})], _w = [_e(), _s.lineWrapping], vw = [Os(), _s.lineWrapping], yw = [ks(), _s.lineWrapping];
|
|
12168
12167
|
function bw(e) {
|
|
12169
12168
|
switch (e) {
|
|
12170
12169
|
case "sql": return vw;
|
|
@@ -12248,10 +12247,10 @@ var Sw = (e) => {
|
|
|
12248
12247
|
}), t[3] = r, t[4] = a), a;
|
|
12249
12248
|
}, Cw = (e) => {
|
|
12250
12249
|
let t = (0, X.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
12251
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(
|
|
12250
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(ut, {
|
|
12252
12251
|
size: 14,
|
|
12253
12252
|
strokeWidth: 1.5
|
|
12254
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
12253
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(rr, {
|
|
12255
12254
|
size: 14,
|
|
12256
12255
|
strokeWidth: 1.5
|
|
12257
12256
|
}), t[0] = e.hidden, t[1] = i);
|
|
@@ -12303,7 +12302,7 @@ var Ew = (e) => {
|
|
|
12303
12302
|
let t = (0, X.c)(5), { text: n, tooltip: r } = e, i;
|
|
12304
12303
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
12305
12304
|
content: r,
|
|
12306
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12305
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ct, { className: "w-3 h-3 mt-0.5" })
|
|
12307
12306
|
}), t[0] = r, t[1] = i);
|
|
12308
12307
|
let a;
|
|
12309
12308
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, Y.jsxs)("h2", {
|
|
@@ -12387,7 +12386,7 @@ var Ew = (e) => {
|
|
|
12387
12386
|
let p = f, m;
|
|
12388
12387
|
t[10] !== p || t[11] !== r || t[12] !== n || t[13] !== s || t[14] !== o || t[15] !== i || t[16] !== d || t[17] !== l ? (m = (e) => {
|
|
12389
12388
|
let { field: t } = e;
|
|
12390
|
-
return /* @__PURE__ */ (0, Y.jsx)(yh, { children: /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
12389
|
+
return /* @__PURE__ */ (0, Y.jsx)(yh, { children: /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
12391
12390
|
...t,
|
|
12392
12391
|
onValueChange: (e) => {
|
|
12393
12392
|
if (e === Fw) {
|
|
@@ -12399,28 +12398,28 @@ var Ew = (e) => {
|
|
|
12399
12398
|
return;
|
|
12400
12399
|
}
|
|
12401
12400
|
let t = r.find((t) => t.name === e);
|
|
12402
|
-
t && (s.setValue(n, e), s.setValue(l, t.type), s.setValue(d,
|
|
12401
|
+
t && (s.setValue(n, e), s.setValue(l, t.type), s.setValue(d, Ut(t.type)), i?.(n, t.type));
|
|
12403
12402
|
},
|
|
12404
12403
|
value: t.value ?? "",
|
|
12405
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12404
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
12406
12405
|
className: "w-40 truncate",
|
|
12407
12406
|
onClear: t.value ? p : void 0,
|
|
12408
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12409
|
-
}), /* @__PURE__ */ (0, Y.jsxs)(
|
|
12410
|
-
t.value && /* @__PURE__ */ (0, Y.jsx)(
|
|
12407
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "Select column" })
|
|
12408
|
+
}), /* @__PURE__ */ (0, Y.jsxs)(Di, { children: [
|
|
12409
|
+
t.value && /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12411
12410
|
value: Fw,
|
|
12412
12411
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12413
12412
|
className: "flex items-center truncate",
|
|
12414
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12413
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(pi, { className: "w-3 h-3 mr-2" }), "Clear"]
|
|
12415
12414
|
})
|
|
12416
12415
|
}),
|
|
12417
|
-
o && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12416
|
+
o && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12418
12417
|
value: "__count__",
|
|
12419
12418
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12420
12419
|
className: "flex items-center truncate",
|
|
12421
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12420
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(jt, { className: "w-3 h-3 mr-2" }), "Count of records"]
|
|
12422
12421
|
})
|
|
12423
|
-
}, "__count__"), /* @__PURE__ */ (0, Y.jsx)(
|
|
12422
|
+
}, "__count__"), /* @__PURE__ */ (0, Y.jsx)(Oi, {})] }),
|
|
12424
12423
|
r.map(Yw)
|
|
12425
12424
|
] })]
|
|
12426
12425
|
}) }) });
|
|
@@ -12437,14 +12436,14 @@ var Ew = (e) => {
|
|
|
12437
12436
|
let { field: t } = e;
|
|
12438
12437
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, {
|
|
12439
12438
|
className: "flex flex-row items-center justify-between",
|
|
12440
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
12439
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
12441
12440
|
...t,
|
|
12442
12441
|
onValueChange: t.onChange,
|
|
12443
12442
|
value: t.value ?? a,
|
|
12444
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12443
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
12445
12444
|
className: "truncate",
|
|
12446
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12447
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
12445
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "Select an option" })
|
|
12446
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Di, { children: /* @__PURE__ */ (0, Y.jsx)(ki, { children: i.filter(Xw).map(Zw) }) })]
|
|
12448
12447
|
}) })]
|
|
12449
12448
|
});
|
|
12450
12449
|
}, t[0] = a, t[1] = r, t[2] = i, t[3] = s) : s = t[3];
|
|
@@ -12460,7 +12459,7 @@ var Ew = (e) => {
|
|
|
12460
12459
|
let { field: t } = e;
|
|
12461
12460
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, {
|
|
12462
12461
|
className: "flex flex-row gap-2 items-center",
|
|
12463
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12462
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(ta, {
|
|
12464
12463
|
...t,
|
|
12465
12464
|
value: t.value ?? "",
|
|
12466
12465
|
onValueChange: t.onChange,
|
|
@@ -12485,7 +12484,7 @@ var Ew = (e) => {
|
|
|
12485
12484
|
children: [/* @__PURE__ */ (0, Y.jsx)(bh, {
|
|
12486
12485
|
className: "whitespace-nowrap",
|
|
12487
12486
|
children: o
|
|
12488
|
-
}), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12487
|
+
}), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)($i, {
|
|
12489
12488
|
...t,
|
|
12490
12489
|
value: t.value,
|
|
12491
12490
|
onValueChange: t.onChange,
|
|
@@ -12509,7 +12508,7 @@ var Ew = (e) => {
|
|
|
12509
12508
|
let { field: t } = e;
|
|
12510
12509
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, {
|
|
12511
12510
|
className: l("flex flex-row items-center gap-2", i),
|
|
12512
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12511
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
12513
12512
|
checked: t.value ?? a ?? !1,
|
|
12514
12513
|
onCheckedChange: t.onChange,
|
|
12515
12514
|
className: "w-4 h-4"
|
|
@@ -12599,7 +12598,7 @@ var Ew = (e) => {
|
|
|
12599
12598
|
size: "sm",
|
|
12600
12599
|
onClick: () => h(t),
|
|
12601
12600
|
className: "h-4 w-4 p-0",
|
|
12602
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12601
|
+
children: /* @__PURE__ */ (0, Y.jsx)(pi, { className: "h-2 w-2" })
|
|
12603
12602
|
})
|
|
12604
12603
|
]
|
|
12605
12604
|
}, t)), /* @__PURE__ */ (0, Y.jsxs)(_, {
|
|
@@ -12627,27 +12626,27 @@ var Ew = (e) => {
|
|
|
12627
12626
|
let { field: t } = e;
|
|
12628
12627
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, {
|
|
12629
12628
|
className: "flex flex-row items-center justify-between w-full",
|
|
12630
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
12629
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
12631
12630
|
...t,
|
|
12632
12631
|
onValueChange: (e) => {
|
|
12633
12632
|
e === Fw ? o() : t.onChange(e);
|
|
12634
12633
|
},
|
|
12635
12634
|
value: t.value ?? "yearmonthdate",
|
|
12636
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12635
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
12637
12636
|
onClear: t.value ? o : void 0,
|
|
12638
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12639
|
-
}), /* @__PURE__ */ (0, Y.jsxs)(
|
|
12637
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "Select unit" })
|
|
12638
|
+
}), /* @__PURE__ */ (0, Y.jsxs)(Di, {
|
|
12640
12639
|
className: "w-72",
|
|
12641
|
-
children: [t.value && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12640
|
+
children: [t.value && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12642
12641
|
value: Fw,
|
|
12643
12642
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12644
12643
|
className: "flex items-center truncate",
|
|
12645
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12644
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(pi, { className: "w-3 h-3 mr-2" }), "Clear"]
|
|
12646
12645
|
})
|
|
12647
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
12648
|
-
|
|
12649
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
12650
|
-
|
|
12646
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Oi, {})] }), /* @__PURE__ */ (0, Y.jsxs)(ki, { children: [
|
|
12647
|
+
Rt.map(s),
|
|
12648
|
+
/* @__PURE__ */ (0, Y.jsx)(Oi, {}),
|
|
12649
|
+
Bt.map(s)
|
|
12651
12650
|
] })]
|
|
12652
12651
|
})]
|
|
12653
12652
|
}) })]
|
|
@@ -12665,7 +12664,7 @@ var Ew = (e) => {
|
|
|
12665
12664
|
let { field: t } = e;
|
|
12666
12665
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, {
|
|
12667
12666
|
className: "flex flex-row items-center justify-between w-full",
|
|
12668
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
12667
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }), /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
12669
12668
|
...t,
|
|
12670
12669
|
onValueChange: (e) => {
|
|
12671
12670
|
t.onChange(e), a?.(e);
|
|
@@ -12673,18 +12672,18 @@ var Ew = (e) => {
|
|
|
12673
12672
|
value: t.value ?? i,
|
|
12674
12673
|
open: o,
|
|
12675
12674
|
onOpenChange: s,
|
|
12676
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12677
|
-
let t =
|
|
12678
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
12675
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, { children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, Y.jsx)(Di, { children: /* @__PURE__ */ (0, Y.jsx)(ki, { children: zt.map((e) => {
|
|
12676
|
+
let t = rt[e], n = e === "string" ? "categorical" : e;
|
|
12677
|
+
return /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12679
12678
|
value: e,
|
|
12680
12679
|
className: "flex flex-col items-start justify-center",
|
|
12681
12680
|
subtitle: o && /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
12682
12681
|
className: "text-xs text-muted-foreground",
|
|
12683
|
-
children:
|
|
12682
|
+
children: en[e]
|
|
12684
12683
|
}),
|
|
12685
12684
|
children: /* @__PURE__ */ (0, Y.jsx)(Aw, {
|
|
12686
12685
|
Icon: t,
|
|
12687
|
-
text:
|
|
12686
|
+
text: Ni(n)
|
|
12688
12687
|
})
|
|
12689
12688
|
}, e);
|
|
12690
12689
|
}) }) })]
|
|
@@ -12698,7 +12697,7 @@ var Ew = (e) => {
|
|
|
12698
12697
|
render: l
|
|
12699
12698
|
}), t[5] = n, t[6] = c.control, t[7] = l, t[8] = u) : u = t[8], u;
|
|
12700
12699
|
}, Gw = (e) => {
|
|
12701
|
-
let t = (0, X.c)(12), { fieldName: n, selectedDataType: r, binFieldName: i, defaultAggregation: a } = e, o = Ip(), s = r === "string" ?
|
|
12700
|
+
let t = (0, X.c)(12), { fieldName: n, selectedDataType: r, binFieldName: i, defaultAggregation: a } = e, o = Ip(), s = r === "string" ? Gt : Lt, { chartType: c } = ow(), l = c !== Wt.HEATMAP, u = eT, d = tT, f;
|
|
12702
12701
|
t[0] !== i || t[1] !== o ? (f = (e) => {
|
|
12703
12702
|
let { value: t, previousValue: n, onChange: r } = e;
|
|
12704
12703
|
t === "bin" ? o.setValue(i, !0) : n === "bin" && o.setValue(i, !1), r(t);
|
|
@@ -12706,7 +12705,7 @@ var Ew = (e) => {
|
|
|
12706
12705
|
let p = f, m;
|
|
12707
12706
|
t[3] !== s || t[4] !== a || t[5] !== p || t[6] !== l ? (m = (e) => {
|
|
12708
12707
|
let { field: t } = e;
|
|
12709
|
-
return /* @__PURE__ */ (0, Y.jsx)(yh, { children: /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
12708
|
+
return /* @__PURE__ */ (0, Y.jsx)(yh, { children: /* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
12710
12709
|
...t,
|
|
12711
12710
|
value: (t.value ?? a ?? "none").toString(),
|
|
12712
12711
|
onValueChange: (e) => {
|
|
@@ -12716,16 +12715,16 @@ var Ew = (e) => {
|
|
|
12716
12715
|
onChange: t.onChange
|
|
12717
12716
|
});
|
|
12718
12717
|
},
|
|
12719
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12718
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
12720
12719
|
variant: "ghost",
|
|
12721
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12722
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
12723
|
-
let t =
|
|
12720
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, {})
|
|
12721
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Di, { children: /* @__PURE__ */ (0, Y.jsxs)(ki, { children: [/* @__PURE__ */ (0, Y.jsx)(xi, { children: "Aggregation" }), s.map((e) => {
|
|
12722
|
+
let t = It[e], n = u(Vt[e] ?? "Other"), r = d({
|
|
12724
12723
|
value: e,
|
|
12725
|
-
Icon: t ??
|
|
12724
|
+
Icon: t ?? jt,
|
|
12726
12725
|
subtitle: n
|
|
12727
12726
|
});
|
|
12728
|
-
return e === "bin" ? l ? /* @__PURE__ */ (0, Y.jsxs)("div", { children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
12727
|
+
return e === "bin" ? l ? /* @__PURE__ */ (0, Y.jsxs)("div", { children: [/* @__PURE__ */ (0, Y.jsx)(Oi, {}), r] }, e) : null : r;
|
|
12729
12728
|
})] }) })]
|
|
12730
12729
|
}) }) });
|
|
12731
12730
|
}, t[3] = s, t[4] = a, t[5] = p, t[6] = l, t[7] = m) : m = t[7];
|
|
@@ -12759,7 +12758,7 @@ var Ew = (e) => {
|
|
|
12759
12758
|
}), t[3] = n, t[4] = i.control, t[5] = s, t[6] = c) : c = t[6], c;
|
|
12760
12759
|
}, qw = (e) => {
|
|
12761
12760
|
let t = (0, X.c)(5), { fieldName: n, label: r, defaultValue: i } = e, a;
|
|
12762
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a =
|
|
12761
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = Jt.map(aT), t[0] = a) : a = t[0];
|
|
12763
12762
|
let o = i ?? "ascending", s;
|
|
12764
12763
|
return t[1] !== n || t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(Lw, {
|
|
12765
12764
|
fieldName: n,
|
|
@@ -12797,8 +12796,8 @@ var Ew = (e) => {
|
|
|
12797
12796
|
};
|
|
12798
12797
|
function Yw(e) {
|
|
12799
12798
|
if (e.name.trim() === "") return null;
|
|
12800
|
-
let t =
|
|
12801
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
12799
|
+
let t = rt[e.type];
|
|
12800
|
+
return /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12802
12801
|
value: e.name,
|
|
12803
12802
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12804
12803
|
className: "flex items-center truncate",
|
|
@@ -12810,7 +12809,7 @@ function Xw(e) {
|
|
|
12810
12809
|
return e.value !== "";
|
|
12811
12810
|
}
|
|
12812
12811
|
function Zw(e) {
|
|
12813
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
12812
|
+
return /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12814
12813
|
value: e.value,
|
|
12815
12814
|
children: e.display
|
|
12816
12815
|
}, e.value);
|
|
@@ -12819,8 +12818,8 @@ function Qw(e) {
|
|
|
12819
12818
|
return e;
|
|
12820
12819
|
}
|
|
12821
12820
|
function $w(e) {
|
|
12822
|
-
let [t, n] =
|
|
12823
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
12821
|
+
let [t, n] = Ft[e];
|
|
12822
|
+
return /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12824
12823
|
value: e,
|
|
12825
12824
|
className: "flex flex-row",
|
|
12826
12825
|
subtitle: /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
@@ -12838,13 +12837,13 @@ function eT(e) {
|
|
|
12838
12837
|
}
|
|
12839
12838
|
function tT(e) {
|
|
12840
12839
|
let { value: t, Icon: n, subtitle: r } = e;
|
|
12841
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
12840
|
+
return /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12842
12841
|
value: t,
|
|
12843
12842
|
className: "flex flex-col items-start justify-center",
|
|
12844
12843
|
subtitle: r,
|
|
12845
12844
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12846
12845
|
className: "flex items-center",
|
|
12847
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(n, { className: "w-3 h-3 mr-2" }),
|
|
12846
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(n, { className: "w-3 h-3 mr-2" }), Ni(t)]
|
|
12848
12847
|
})
|
|
12849
12848
|
}, t);
|
|
12850
12849
|
}
|
|
@@ -12863,8 +12862,8 @@ function iT(e) {
|
|
|
12863
12862
|
function aT(e) {
|
|
12864
12863
|
return {
|
|
12865
12864
|
display: /* @__PURE__ */ (0, Y.jsx)(Aw, {
|
|
12866
|
-
Icon: e === "ascending" ? Ou :
|
|
12867
|
-
text:
|
|
12865
|
+
Icon: e === "ascending" ? Ou : br,
|
|
12866
|
+
text: Ni(e)
|
|
12868
12867
|
}),
|
|
12869
12868
|
value: e
|
|
12870
12869
|
};
|
|
@@ -12872,7 +12871,7 @@ function aT(e) {
|
|
|
12872
12871
|
//#endregion
|
|
12873
12872
|
//#region src/components/data-table/charts/components/chart-items.tsx
|
|
12874
12873
|
function oT(e) {
|
|
12875
|
-
return
|
|
12874
|
+
return Yt(e?.field) && e?.field !== "__count__";
|
|
12876
12875
|
}
|
|
12877
12876
|
function sT(e) {
|
|
12878
12877
|
return e?.selectedDataType === "string" && oT(e);
|
|
@@ -12887,7 +12886,7 @@ function uT(e) {
|
|
|
12887
12886
|
return e?.selectedDataType !== "temporal" && oT(e);
|
|
12888
12887
|
}
|
|
12889
12888
|
function dT(e) {
|
|
12890
|
-
let t = e?.type ?
|
|
12889
|
+
let t = e?.type ? Ut(e.type) : "string";
|
|
12891
12890
|
return {
|
|
12892
12891
|
inferredDataType: t,
|
|
12893
12892
|
selectedDataType: e?.selectedDataType || t
|
|
@@ -12918,38 +12917,38 @@ var fT = (e) => {
|
|
|
12918
12917
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = p({
|
|
12919
12918
|
variant: "outline",
|
|
12920
12919
|
className: "user-select-none w-full justify-between px-3"
|
|
12921
|
-
}), a = /* @__PURE__ */ (0, Y.jsx)(
|
|
12920
|
+
}), a = /* @__PURE__ */ (0, Y.jsx)(Ci, {}), t[0] = i, t[1] = a) : (i = t[0], a = t[1]);
|
|
12922
12921
|
let o;
|
|
12923
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, Y.jsxs)(
|
|
12922
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, Y.jsxs)(bi, {
|
|
12924
12923
|
className: i,
|
|
12925
|
-
children: [a, /* @__PURE__ */ (0, Y.jsx)(
|
|
12924
|
+
children: [a, /* @__PURE__ */ (0, Y.jsx)(Mi, {
|
|
12926
12925
|
asChild: !0,
|
|
12927
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12926
|
+
children: /* @__PURE__ */ (0, Y.jsx)(_i, { className: "h-4 w-4 opacity-50" })
|
|
12928
12927
|
})]
|
|
12929
12928
|
}), t[2] = o) : o = t[2];
|
|
12930
12929
|
let s;
|
|
12931
12930
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12932
12931
|
className: "flex flex-row gap-2 items-center",
|
|
12933
|
-
children: [o, /* @__PURE__ */ (0, Y.jsx)(
|
|
12932
|
+
children: [o, /* @__PURE__ */ (0, Y.jsx)(Di, { children: qt.map(yT) })]
|
|
12934
12933
|
}), t[3] = s) : s = t[3];
|
|
12935
12934
|
let c;
|
|
12936
|
-
return t[4] !== r || t[5] !== n ? (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
12935
|
+
return t[4] !== r || t[5] !== n ? (c = /* @__PURE__ */ (0, Y.jsx)(ji, {
|
|
12937
12936
|
value: n,
|
|
12938
12937
|
onValueChange: r,
|
|
12939
12938
|
children: s
|
|
12940
12939
|
}), t[4] = r, t[5] = n, t[6] = c) : c = t[6], c;
|
|
12941
12940
|
}, mT = (e) => {
|
|
12942
|
-
let t = (0, X.c)(10), { chartType: n } = e, r =
|
|
12941
|
+
let t = (0, X.c)(10), { chartType: n } = e, r = $t[n], i;
|
|
12943
12942
|
t[0] === r ? i = t[1] : (i = /* @__PURE__ */ (0, Y.jsx)(r, { className: "w-4 h-4 mr-2" }), t[0] = r, t[1] = i);
|
|
12944
12943
|
let a;
|
|
12945
|
-
t[2] === n ? a = t[3] : (a =
|
|
12944
|
+
t[2] === n ? a = t[3] : (a = Ni(n), t[2] = n, t[3] = a);
|
|
12946
12945
|
let o;
|
|
12947
12946
|
t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
12948
12947
|
className: "flex items-center",
|
|
12949
12948
|
children: [i, a]
|
|
12950
12949
|
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6];
|
|
12951
12950
|
let s;
|
|
12952
|
-
return t[7] !== n || t[8] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(
|
|
12951
|
+
return t[7] !== n || t[8] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
12953
12952
|
value: n,
|
|
12954
12953
|
className: "gap-2",
|
|
12955
12954
|
children: o
|
|
@@ -12959,7 +12958,7 @@ var fT = (e) => {
|
|
|
12959
12958
|
e[0] === t.control ? n = e[1] : (n = { control: t.control }, e[0] = t.control, e[1] = n);
|
|
12960
12959
|
let r = qp(n), i = ow(), a = r.general?.xColumn, o;
|
|
12961
12960
|
e[2] === a ? o = e[3] : (o = dT(a), e[2] = a, e[3] = o);
|
|
12962
|
-
let { inferredDataType: s } = o, c = i.chartType ===
|
|
12961
|
+
let { inferredDataType: s } = o, c = i.chartType === Wt.LINE || i.chartType === Wt.BAR || i.chartType === Wt.AREA, l;
|
|
12963
12962
|
e[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, Y.jsx)(Ew, { text: "X-Axis" }), e[4] = l) : l = e[4];
|
|
12964
12963
|
let u;
|
|
12965
12964
|
e[5] !== i.fields || e[6] !== a ? (u = /* @__PURE__ */ (0, Y.jsx)(fT, {
|
|
@@ -12997,13 +12996,13 @@ var fT = (e) => {
|
|
|
12997
12996
|
let e = (0, X.c)(29), t = Ip(), n;
|
|
12998
12997
|
e[0] === t.control ? n = e[1] : (n = { control: t.control }, e[0] = t.control, e[1] = n);
|
|
12999
12998
|
let r = qp(n), i = ow(), a = r.general?.yColumn, o = a?.field, s;
|
|
13000
|
-
e[2] === o ? s = e[3] : (s =
|
|
12999
|
+
e[2] === o ? s = e[3] : (s = Yt(o), e[2] = o, e[3] = s);
|
|
13001
13000
|
let c = s, l = r.general?.xColumn?.field, u;
|
|
13002
|
-
e[4] === l ? u = e[5] : (u =
|
|
13001
|
+
e[4] === l ? u = e[5] : (u = Yt(l), e[4] = l, e[5] = u);
|
|
13003
13002
|
let d = u, f;
|
|
13004
13003
|
e[6] === a ? f = e[7] : (f = dT(a), e[6] = a, e[7] = f);
|
|
13005
13004
|
let { inferredDataType: p } = f, m;
|
|
13006
|
-
cT(a) ? m =
|
|
13005
|
+
cT(a) ? m = tn : sT(a) && (m = "count");
|
|
13007
13006
|
let h;
|
|
13008
13007
|
e[8] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(Ew, { text: "Y-Axis" }), e[8] = h) : h = e[8];
|
|
13009
13008
|
let g;
|
|
@@ -13068,14 +13067,14 @@ var fT = (e) => {
|
|
|
13068
13067
|
e[0] === n.control ? r = e[1] : (r = { control: n.control }, e[0] = n.control, e[1] = r);
|
|
13069
13068
|
let i = qp(r), a;
|
|
13070
13069
|
e[2] !== t || e[3] !== i.general?.facet ? (a = (e) => {
|
|
13071
|
-
let n = i.general?.facet?.[e], r =
|
|
13070
|
+
let n = i.general?.facet?.[e], r = Yt(n?.field), { inferredDataType: a } = dT(n), o = e === "row" ? "general.facet.row.linkYAxis" : "general.facet.column.linkXAxis";
|
|
13072
13071
|
return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
13073
13072
|
className: "flex flex-col gap-1",
|
|
13074
13073
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
13075
13074
|
className: "flex flex-row justify-between",
|
|
13076
13075
|
children: [/* @__PURE__ */ (0, Y.jsx)("p", {
|
|
13077
13076
|
className: "font-semibold",
|
|
13078
|
-
children:
|
|
13077
|
+
children: Ni(e)
|
|
13079
13078
|
}), /* @__PURE__ */ (0, Y.jsx)(Iw, {
|
|
13080
13079
|
fieldName: `general.facet.${e}.field`,
|
|
13081
13080
|
columns: t
|
|
@@ -13130,9 +13129,9 @@ var bT = () => {
|
|
|
13130
13129
|
let e = (0, X.c)(17), t = Ip(), n;
|
|
13131
13130
|
e[0] === t.control ? n = e[1] : (n = { control: t.control }, e[0] = t.control, e[1] = n);
|
|
13132
13131
|
let r = qp(n), i = r.general?.yColumn, a = r.general?.colorByColumn, o = i?.field, s;
|
|
13133
|
-
e[2] === o ? s = e[3] : (s =
|
|
13132
|
+
e[2] === o ? s = e[3] : (s = Yt(o), e[2] = o, e[3] = s);
|
|
13134
13133
|
let c = s, { chartType: l } = ow(), u;
|
|
13135
|
-
e[4] !== l || e[5] !== a?.field ? (u =
|
|
13134
|
+
e[4] !== l || e[5] !== a?.field ? (u = Yt(a?.field) && (l === Wt.BAR || l === Wt.LINE), e[4] = l, e[5] = a?.field, e[6] = u) : u = e[6];
|
|
13136
13135
|
let d = u, f, p, m;
|
|
13137
13136
|
e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
13138
13137
|
delayDuration: 100,
|
|
@@ -13175,7 +13174,7 @@ var bT = () => {
|
|
|
13175
13174
|
label: "Plot title",
|
|
13176
13175
|
fieldName: "general.title"
|
|
13177
13176
|
}), e[1] = r) : r = e[1];
|
|
13178
|
-
let i = t ===
|
|
13177
|
+
let i = t === Wt.SCATTER, a;
|
|
13179
13178
|
e[2] === i ? a = e[3] : (a = /* @__PURE__ */ (0, Y.jsxs)(Mw, {
|
|
13180
13179
|
value: "general",
|
|
13181
13180
|
children: [n, /* @__PURE__ */ (0, Y.jsxs)(Nw, { children: [r, /* @__PURE__ */ (0, Y.jsx)(Bw, {
|
|
@@ -13222,15 +13221,15 @@ var bT = () => {
|
|
|
13222
13221
|
e[9] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, Y.jsx)(Lw, {
|
|
13223
13222
|
fieldName: "color.field",
|
|
13224
13223
|
label: "Field",
|
|
13225
|
-
options:
|
|
13226
|
-
defaultValue:
|
|
13224
|
+
options: Xt.map(CT),
|
|
13225
|
+
defaultValue: Qt
|
|
13227
13226
|
}), e[9] = d) : d = e[9];
|
|
13228
13227
|
let f, p;
|
|
13229
13228
|
e[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsx)(Lw, {
|
|
13230
13229
|
fieldName: "color.scheme",
|
|
13231
13230
|
label: "Color scheme",
|
|
13232
|
-
defaultValue:
|
|
13233
|
-
options:
|
|
13231
|
+
defaultValue: Pt,
|
|
13232
|
+
options: nn.map(wT)
|
|
13234
13233
|
}), p = /* @__PURE__ */ (0, Y.jsx)(Hw, {
|
|
13235
13234
|
fieldName: "color.range",
|
|
13236
13235
|
label: "Color range"
|
|
@@ -13244,7 +13243,7 @@ var bT = () => {
|
|
|
13244
13243
|
p,
|
|
13245
13244
|
/* @__PURE__ */ (0, Y.jsxs)("p", {
|
|
13246
13245
|
className: "text-xs",
|
|
13247
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13246
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ct, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
13248
13247
|
})
|
|
13249
13248
|
] })]
|
|
13250
13249
|
}), e[12] = m) : m = e[12];
|
|
@@ -13300,13 +13299,13 @@ var bT = () => {
|
|
|
13300
13299
|
};
|
|
13301
13300
|
function CT(e) {
|
|
13302
13301
|
return {
|
|
13303
|
-
display:
|
|
13302
|
+
display: Ni(e),
|
|
13304
13303
|
value: e
|
|
13305
13304
|
};
|
|
13306
13305
|
}
|
|
13307
13306
|
function wT(e) {
|
|
13308
13307
|
return {
|
|
13309
|
-
display:
|
|
13308
|
+
display: Ni(e),
|
|
13310
13309
|
value: e
|
|
13311
13310
|
};
|
|
13312
13311
|
}
|
|
@@ -13316,9 +13315,9 @@ var TT = () => {
|
|
|
13316
13315
|
let e = (0, X.c)(17), t = Ip(), n;
|
|
13317
13316
|
e[0] === t.control ? n = e[1] : (n = { control: t.control }, e[0] = t.control, e[1] = n);
|
|
13318
13317
|
let r = qp(n), i = r.general?.xColumn?.field, a;
|
|
13319
|
-
e[2] === i ? a = e[3] : (a =
|
|
13318
|
+
e[2] === i ? a = e[3] : (a = Yt(i), e[2] = i, e[3] = a);
|
|
13320
13319
|
let o = a, s = r.general?.yColumn?.field, c;
|
|
13321
|
-
e[4] === s ? c = e[5] : (c =
|
|
13320
|
+
e[4] === s ? c = e[5] : (c = Yt(s), e[4] = s, e[5] = c);
|
|
13322
13321
|
let l = c, u;
|
|
13323
13322
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, Y.jsx)(hT, {}), e[6] = u) : u = e[6];
|
|
13324
13323
|
let d;
|
|
@@ -13352,7 +13351,7 @@ var TT = () => {
|
|
|
13352
13351
|
let i = qp(r), a = i.general?.colorByColumn, o = i.general?.yColumn?.selectedDataType;
|
|
13353
13352
|
(o === "" || !o) && (o = "string");
|
|
13354
13353
|
let s;
|
|
13355
|
-
e[2] === a ? s = e[3] : (s = a?.type ?
|
|
13354
|
+
e[2] === a ? s = e[3] : (s = a?.type ? Ut(a.type) : "string", e[2] = a, e[3] = s);
|
|
13356
13355
|
let c = s, l;
|
|
13357
13356
|
e[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, Y.jsx)(Ew, { text: "Color by" }), e[4] = l) : l = e[4];
|
|
13358
13357
|
let u;
|
|
@@ -13362,7 +13361,7 @@ var TT = () => {
|
|
|
13362
13361
|
includeCountField: !1
|
|
13363
13362
|
}), e[5] = n, e[6] = u);
|
|
13364
13363
|
let d;
|
|
13365
|
-
e[7] !== a?.field || e[8] !== c ? (d =
|
|
13364
|
+
e[7] !== a?.field || e[8] !== c ? (d = Yt(a?.field) && /* @__PURE__ */ (0, Y.jsx)(Ww, {
|
|
13366
13365
|
fieldName: "general.colorByColumn.selectedDataType",
|
|
13367
13366
|
label: "Data Type",
|
|
13368
13367
|
defaultValue: c
|
|
@@ -13410,11 +13409,11 @@ var TT = () => {
|
|
|
13410
13409
|
}
|
|
13411
13410
|
let o;
|
|
13412
13411
|
t[1] !== r || t[2] !== i || t[3] !== a ? (o = (e) => {
|
|
13413
|
-
if (typeof e == "string") return /* @__PURE__ */ (0, Y.jsx)(
|
|
13414
|
-
let t =
|
|
13412
|
+
if (typeof e == "string") return /* @__PURE__ */ (0, Y.jsx)(gn, { children: e });
|
|
13413
|
+
let t = Zt(e, r);
|
|
13415
13414
|
return /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
13416
13415
|
fallback: /* @__PURE__ */ (0, Y.jsx)(OT, {}),
|
|
13417
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
13416
|
+
children: /* @__PURE__ */ (0, Y.jsx)(On, {
|
|
13418
13417
|
spec: t,
|
|
13419
13418
|
"data-container-width": Ls(t),
|
|
13420
13419
|
options: {
|
|
@@ -13440,7 +13439,7 @@ var TT = () => {
|
|
|
13440
13439
|
}), t[5] = n, t[6] = s, t[7] = c) : c = t[7], c;
|
|
13441
13440
|
}, OT = () => {
|
|
13442
13441
|
let e = (0, X.c)(1), t;
|
|
13443
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, Y.jsx)(
|
|
13442
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, Y.jsx)(gn, {
|
|
13444
13443
|
className: "mt-14",
|
|
13445
13444
|
children: "Loading chart..."
|
|
13446
13445
|
}), e[0] = t) : t = e[0], t;
|
|
@@ -13451,10 +13450,10 @@ var TT = () => {
|
|
|
13451
13450
|
}), AT = W({
|
|
13452
13451
|
field: U().optional(),
|
|
13453
13452
|
type: Io([...XS, ""]).catch("unknown").optional(),
|
|
13454
|
-
selectedDataType: Io([...
|
|
13455
|
-
sort: Io(
|
|
13456
|
-
timeUnit: Io(
|
|
13457
|
-
}), jT = AT.extend({ aggregate: Io(
|
|
13453
|
+
selectedDataType: Io([...zt, ""]).optional(),
|
|
13454
|
+
sort: Io(Jt).default("ascending").optional(),
|
|
13455
|
+
timeUnit: Io(Ht).optional()
|
|
13456
|
+
}), jT = AT.extend({ aggregate: Io(Lt).default(Qt).optional() }), MT = AT.extend({
|
|
13458
13457
|
linkYAxis: H().default(!0),
|
|
13459
13458
|
binned: H().default(!0),
|
|
13460
13459
|
maxbins: K().default(6)
|
|
@@ -13486,8 +13485,8 @@ var TT = () => {
|
|
|
13486
13485
|
bin: kT.optional()
|
|
13487
13486
|
}).optional(),
|
|
13488
13487
|
color: W({
|
|
13489
|
-
field: Io([...
|
|
13490
|
-
scheme: U().default(
|
|
13488
|
+
field: Io([...Xt, Qt]).default(Qt),
|
|
13489
|
+
scheme: U().default(Pt).optional(),
|
|
13491
13490
|
range: G(U()).optional(),
|
|
13492
13491
|
domain: G(U()).optional(),
|
|
13493
13492
|
bin: kT.optional()
|
|
@@ -13522,7 +13521,7 @@ function FT() {
|
|
|
13522
13521
|
}
|
|
13523
13522
|
} },
|
|
13524
13523
|
color: {
|
|
13525
|
-
field:
|
|
13524
|
+
field: Qt,
|
|
13526
13525
|
scheme: "default"
|
|
13527
13526
|
},
|
|
13528
13527
|
tooltips: {
|
|
@@ -13537,7 +13536,7 @@ var IT = "marimo:charts:v2", LT = W({
|
|
|
13537
13536
|
tabName: U().transform((e) => e),
|
|
13538
13537
|
chartType: U().transform((e) => e),
|
|
13539
13538
|
config: PT
|
|
13540
|
-
}), RT = G(to([U().transform((e) => e), G(LT)])), zT = new
|
|
13539
|
+
}), RT = G(to([U().transform((e) => e), G(LT)])), zT = new Ie(IT, RT, () => []), BT = {
|
|
13541
13540
|
getItem: (e) => {
|
|
13542
13541
|
try {
|
|
13543
13542
|
let t = zT.get(e);
|
|
@@ -13552,9 +13551,9 @@ var IT = "marimo:charts:v2", LT = W({
|
|
|
13552
13551
|
removeItem: (e) => {
|
|
13553
13552
|
zT.remove(e);
|
|
13554
13553
|
}
|
|
13555
|
-
}, VT =
|
|
13554
|
+
}, VT = ge(IT, /* @__PURE__ */ new Map(), BT);
|
|
13556
13555
|
function HT(e, t) {
|
|
13557
|
-
let n =
|
|
13556
|
+
let n = Ni(t);
|
|
13558
13557
|
return e === 0 ? `${n} Chart` : `${n} Chart ${e + 1}`;
|
|
13559
13558
|
}
|
|
13560
13559
|
var UT = BT.getItem(IT);
|
|
@@ -13612,24 +13611,24 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13612
13611
|
} : e), o = new Map(u).set(e, a);
|
|
13613
13612
|
d(o), m(a[i].tabName);
|
|
13614
13613
|
}, C = r === "too_many" || r > JT || i > YT;
|
|
13615
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
13614
|
+
return /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
13616
13615
|
value: p,
|
|
13617
13616
|
className: "-mt-1",
|
|
13618
13617
|
children: [
|
|
13619
|
-
/* @__PURE__ */ (0, Y.jsxs)(
|
|
13618
|
+
/* @__PURE__ */ (0, Y.jsxs)(An, {
|
|
13620
13619
|
part: "table-tabs",
|
|
13621
13620
|
children: [
|
|
13622
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
13621
|
+
/* @__PURE__ */ (0, Y.jsx)(Mn, {
|
|
13623
13622
|
className: "text-xs",
|
|
13624
13623
|
value: KT,
|
|
13625
13624
|
onClick: () => m(KT),
|
|
13626
13625
|
children: "Table"
|
|
13627
13626
|
}),
|
|
13628
|
-
f.map((e, t) => /* @__PURE__ */ (0, Y.jsxs)(
|
|
13627
|
+
f.map((e, t) => /* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
13629
13628
|
className: "text-xs",
|
|
13630
13629
|
value: e.tabName,
|
|
13631
13630
|
onClick: () => m(e.tabName),
|
|
13632
|
-
children: [e.tabName, /* @__PURE__ */ (0, Y.jsx)(
|
|
13631
|
+
children: [e.tabName, /* @__PURE__ */ (0, Y.jsx)(pi, {
|
|
13633
13632
|
className: "w-3 h-3 ml-1 mt-[0.5px] hover:text-red-500 hover:font-semibold",
|
|
13634
13633
|
onClick: (t) => {
|
|
13635
13634
|
t.stopPropagation(), b(e.tabName);
|
|
@@ -13645,12 +13644,12 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13645
13644
|
})
|
|
13646
13645
|
]
|
|
13647
13646
|
}),
|
|
13648
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
13647
|
+
/* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
13649
13648
|
className: "mt-1 overflow-hidden",
|
|
13650
13649
|
value: KT,
|
|
13651
13650
|
children: n
|
|
13652
13651
|
}),
|
|
13653
|
-
f.map((e, r) => /* @__PURE__ */ (0, Y.jsx)(
|
|
13652
|
+
f.map((e, r) => /* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
13654
13653
|
value: e.tabName,
|
|
13655
13654
|
className: "h-[400px] mt-0",
|
|
13656
13655
|
children: /* @__PURE__ */ (0, Y.jsx)($T, {
|
|
@@ -13668,26 +13667,33 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13668
13667
|
S(e.tabName, t);
|
|
13669
13668
|
},
|
|
13670
13669
|
getDataUrl: a,
|
|
13671
|
-
|
|
13670
|
+
hasSchema: !!o?.length,
|
|
13671
|
+
fieldTypes: XT(o ?? Zr(n.props.data), s),
|
|
13672
13672
|
isLargeDataset: C
|
|
13673
13673
|
})
|
|
13674
13674
|
}, r))
|
|
13675
13675
|
]
|
|
13676
13676
|
});
|
|
13677
|
-
}, QT = "X and Y columns are not set", $T = ({ tableData: e, chartConfig: t, chartType: n, saveChart: r, saveChartType: i, getDataUrl: a, fieldTypes: o,
|
|
13678
|
-
let { theme:
|
|
13677
|
+
}, QT = "X and Y columns are not set", $T = ({ tableData: e, chartConfig: t, chartType: n, saveChart: r, saveChartType: i, getDataUrl: a, fieldTypes: o, hasSchema: s = !!o?.length, isLargeDataset: c }) => {
|
|
13678
|
+
let { theme: l } = fs(), u = Qm({
|
|
13679
13679
|
defaultValues: t ?? FT(),
|
|
13680
13680
|
resolver: ch(PT)
|
|
13681
|
-
}), [
|
|
13682
|
-
if (!a || e.length === 0 || !
|
|
13681
|
+
}), [d, f] = (0, J.useState)(n), [p, m] = (0, J.useState)(!1), [h, g] = (0, J.useState)(!c), { ref: v } = WC(), y = Ys(s ? o : null), { data: b, isPending: x, error: S } = Ns(async () => {
|
|
13682
|
+
if (!a || e.length === 0 || !h) return [];
|
|
13683
13683
|
let t = await a({});
|
|
13684
|
-
|
|
13684
|
+
if (Array.isArray(t.data_url)) return t.data_url;
|
|
13685
|
+
let n;
|
|
13686
|
+
return n = t.format === "arrow" ? { type: "arrow" } : t.format === "json" ? { type: "json" } : {
|
|
13685
13687
|
type: "csv",
|
|
13686
|
-
parse:
|
|
13687
|
-
},
|
|
13688
|
-
}, [
|
|
13689
|
-
|
|
13690
|
-
|
|
13688
|
+
parse: Rs(y && Object.fromEntries(y.map(([e, [t]]) => [e, t])), { parseDates: !0 })
|
|
13689
|
+
}, Bs(t.data_url, n);
|
|
13690
|
+
}, [
|
|
13691
|
+
e,
|
|
13692
|
+
h,
|
|
13693
|
+
y
|
|
13694
|
+
]), C = u.watch(), w = (0, J.useMemo)(() => structuredClone(C), [C]), T = Kt(d, w, l, "container", qT), E = (0, J.useMemo)(() => x ? /* @__PURE__ */ (0, Y.jsx)(Sn, {}) : S ? /* @__PURE__ */ (0, Y.jsx)(In, { error: S }) : h ? /* @__PURE__ */ (0, Y.jsx)(DT, {
|
|
13695
|
+
baseSpec: T,
|
|
13696
|
+
data: b,
|
|
13691
13697
|
height: qT
|
|
13692
13698
|
}) : /* @__PURE__ */ (0, Y.jsxs)(Fs, {
|
|
13693
13699
|
variant: "warning",
|
|
@@ -13696,56 +13702,56 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13696
13702
|
className: "flex flex-row justify-between items-center w-full",
|
|
13697
13703
|
children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: "Rendering large datasets is not well supported and may crash the browser" }), /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
13698
13704
|
variant: "warn",
|
|
13699
|
-
onClick: () =>
|
|
13705
|
+
onClick: () => g(!0),
|
|
13700
13706
|
className: "h-8",
|
|
13701
13707
|
children: "Proceed"
|
|
13702
13708
|
})]
|
|
13703
13709
|
})]
|
|
13704
13710
|
}), [
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13711
|
+
x,
|
|
13712
|
+
S,
|
|
13713
|
+
h,
|
|
13714
|
+
T,
|
|
13715
|
+
b
|
|
13710
13716
|
]);
|
|
13711
13717
|
return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
13712
13718
|
className: "flex flex-row gap-2 h-full rounded-md border-t pr-2",
|
|
13713
13719
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
13714
|
-
className: `relative flex flex-col gap-2 overflow-auto px-2 py-3 scrollbar-thin transition-width duration-200 ${
|
|
13715
|
-
children: [!
|
|
13716
|
-
value:
|
|
13720
|
+
className: `relative flex flex-col gap-2 overflow-auto px-2 py-3 scrollbar-thin transition-width duration-200 ${p ? "w-8" : "w-[300px]"}`,
|
|
13721
|
+
children: [!p && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(pT, {
|
|
13722
|
+
value: d,
|
|
13717
13723
|
onValueChange: (e) => {
|
|
13718
|
-
|
|
13724
|
+
f(e), i(e);
|
|
13719
13725
|
}
|
|
13720
13726
|
}), /* @__PURE__ */ (0, Y.jsx)(eE, {
|
|
13721
|
-
form:
|
|
13727
|
+
form: u,
|
|
13722
13728
|
saveChart: r,
|
|
13723
13729
|
fieldTypes: o,
|
|
13724
|
-
chartType:
|
|
13730
|
+
chartType: d
|
|
13725
13731
|
})] }), /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
13726
13732
|
variant: "outline",
|
|
13727
13733
|
size: "icon",
|
|
13728
13734
|
className: "border-border ml-auto",
|
|
13729
|
-
onClick: () =>
|
|
13730
|
-
title:
|
|
13731
|
-
children:
|
|
13735
|
+
onClick: () => m((e) => !e),
|
|
13736
|
+
title: p ? "Expand sidebar" : "Collapse sidebar",
|
|
13737
|
+
children: p ? /* @__PURE__ */ (0, Y.jsx)(na, { className: "w-4 h-5" }) : /* @__PURE__ */ (0, Y.jsx)(jr, { className: "w-4 h-5" })
|
|
13732
13738
|
})]
|
|
13733
13739
|
}), /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
13734
13740
|
className: "flex-1 overflow-auto h-full w-full mt-3",
|
|
13735
13741
|
children: (() => {
|
|
13736
13742
|
let e = QT;
|
|
13737
|
-
return typeof
|
|
13743
|
+
return typeof T != "string" && (e = rw(T, "_df", "_chart")), /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
13738
13744
|
defaultValue: "chart",
|
|
13739
13745
|
children: [
|
|
13740
13746
|
/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
13741
13747
|
className: "flex flex-row gap-1.5 items-center",
|
|
13742
|
-
children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
13743
|
-
/* @__PURE__ */ (0, Y.jsxs)(
|
|
13748
|
+
children: /* @__PURE__ */ (0, Y.jsxs)(An, { children: [
|
|
13749
|
+
/* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
13744
13750
|
value: "chart",
|
|
13745
13751
|
className: "h-6",
|
|
13746
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13752
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Nt, { className: "text-muted-foreground mr-2 w-4 h-4" }), "Chart"]
|
|
13747
13753
|
}),
|
|
13748
|
-
/* @__PURE__ */ (0, Y.jsxs)(
|
|
13754
|
+
/* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
13749
13755
|
value: "code",
|
|
13750
13756
|
className: "h-6",
|
|
13751
13757
|
children: [/* @__PURE__ */ (0, Y.jsx)(GC, { className: "text-muted-foreground mr-2" }), "Python code"]
|
|
@@ -13753,12 +13759,12 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13753
13759
|
!1
|
|
13754
13760
|
] })
|
|
13755
13761
|
}),
|
|
13756
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
13762
|
+
/* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
13757
13763
|
value: "chart",
|
|
13758
|
-
ref:
|
|
13759
|
-
children:
|
|
13764
|
+
ref: v,
|
|
13765
|
+
children: E
|
|
13760
13766
|
}),
|
|
13761
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
13767
|
+
/* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
13762
13768
|
value: "code",
|
|
13763
13769
|
children: /* @__PURE__ */ (0, Y.jsx)(Pw, {
|
|
13764
13770
|
code: e,
|
|
@@ -13785,8 +13791,8 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13785
13791
|
let e = n.getValues();
|
|
13786
13792
|
r(e);
|
|
13787
13793
|
}, t[3] = n, t[4] = r, t[5] = c) : c = t[5];
|
|
13788
|
-
let l =
|
|
13789
|
-
a ===
|
|
13794
|
+
let l = Ii(c, 300), u = bT;
|
|
13795
|
+
a === Wt.PIE ? u = ET : a === Wt.HEATMAP && (u = TT);
|
|
13790
13796
|
let d;
|
|
13791
13797
|
t[6] !== a || t[7] !== l || t[8] !== s ? (d = {
|
|
13792
13798
|
fields: s,
|
|
@@ -13794,36 +13800,36 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13794
13800
|
chartType: a
|
|
13795
13801
|
}, t[6] = a, t[7] = l, t[8] = s, t[9] = d) : d = t[9];
|
|
13796
13802
|
let f;
|
|
13797
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(
|
|
13803
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
13798
13804
|
value: "data",
|
|
13799
13805
|
className: "w-1/2 h-6",
|
|
13800
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13806
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Qe, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
13801
13807
|
}), t[10] = f) : f = t[10];
|
|
13802
13808
|
let p;
|
|
13803
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(
|
|
13809
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(An, {
|
|
13804
13810
|
className: "w-full",
|
|
13805
|
-
children: [f, /* @__PURE__ */ (0, Y.jsxs)(
|
|
13811
|
+
children: [f, /* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
13806
13812
|
value: "style",
|
|
13807
13813
|
className: "w-1/2 h-6",
|
|
13808
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13814
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(xt, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
13809
13815
|
})]
|
|
13810
13816
|
}), t[11] = p) : p = t[11];
|
|
13811
13817
|
let m;
|
|
13812
13818
|
t[12] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, Y.jsx)("hr", { className: "my-2" }), t[12] = m) : m = t[12];
|
|
13813
13819
|
let h;
|
|
13814
|
-
t[13] === u ? h = t[14] : (h = /* @__PURE__ */ (0, Y.jsxs)(
|
|
13820
|
+
t[13] === u ? h = t[14] : (h = /* @__PURE__ */ (0, Y.jsxs)(Tr, {
|
|
13815
13821
|
value: "data",
|
|
13816
13822
|
children: [m, /* @__PURE__ */ (0, Y.jsx)(Dw, { children: /* @__PURE__ */ (0, Y.jsx)(u, {}) })]
|
|
13817
13823
|
}), t[13] = u, t[14] = h);
|
|
13818
13824
|
let g;
|
|
13819
13825
|
t[15] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, Y.jsx)("hr", { className: "my-2" }), t[15] = g) : g = t[15];
|
|
13820
13826
|
let _;
|
|
13821
|
-
t[16] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ (0, Y.jsxs)(
|
|
13827
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ (0, Y.jsxs)(Tr, {
|
|
13822
13828
|
value: "style",
|
|
13823
13829
|
children: [g, /* @__PURE__ */ (0, Y.jsx)(Dw, { children: /* @__PURE__ */ (0, Y.jsx)(xT, {}) })]
|
|
13824
13830
|
}), t[16] = _) : _ = t[16];
|
|
13825
13831
|
let v;
|
|
13826
|
-
t[17] === h ? v = t[18] : (v = /* @__PURE__ */ (0, Y.jsxs)(
|
|
13832
|
+
t[17] === h ? v = t[18] : (v = /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
13827
13833
|
defaultValue: "data",
|
|
13828
13834
|
children: [
|
|
13829
13835
|
p,
|
|
@@ -13860,7 +13866,7 @@ function nE(e) {
|
|
|
13860
13866
|
//#endregion
|
|
13861
13867
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
13862
13868
|
function rE(e, t) {
|
|
13863
|
-
let n = (0, X.c)(16), r = rs(w_), { focusCell: i } =
|
|
13869
|
+
let n = (0, X.c)(16), r = rs(w_), { focusCell: i } = xe(), a = Ne(), [o, s] = as(S_), [l, u] = as(x_), [d, f] = as(C_), p = iE(e, t);
|
|
13864
13870
|
!t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
13865
13871
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && aE(l, t);
|
|
13866
13872
|
r && h && l !== p && !g && u(p);
|
|
@@ -13885,12 +13891,19 @@ function aE(e, t) {
|
|
|
13885
13891
|
}
|
|
13886
13892
|
//#endregion
|
|
13887
13893
|
//#region src/components/data-table/schemas.ts
|
|
13888
|
-
var oE = zS.input(W({
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
+
var oE = zS.input(W({
|
|
13895
|
+
format: Io([
|
|
13896
|
+
"csv",
|
|
13897
|
+
"json",
|
|
13898
|
+
"parquet",
|
|
13899
|
+
"tsv"
|
|
13900
|
+
]),
|
|
13901
|
+
options: W({
|
|
13902
|
+
separator: U().optional(),
|
|
13903
|
+
encoding: U().optional(),
|
|
13904
|
+
ensure_ascii: H().optional()
|
|
13905
|
+
}).optional()
|
|
13906
|
+
})).output(W({
|
|
13894
13907
|
url: U(),
|
|
13895
13908
|
filename: U(),
|
|
13896
13909
|
error: U().nullish(),
|
|
@@ -13901,7 +13914,7 @@ var oE = zS.input(W({ format: Io([
|
|
|
13901
13914
|
function sE({ error: e, missingPackages: t, refetchPreview: n }) {
|
|
13902
13915
|
return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
13903
13916
|
className: "text-xs text-muted-foreground p-2 border border-border rounded flex items-center justify-between",
|
|
13904
|
-
children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: e }), t && /* @__PURE__ */ (0, Y.jsx)(
|
|
13917
|
+
children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: e }), t && /* @__PURE__ */ (0, Y.jsx)(_r, {
|
|
13905
13918
|
packages: t,
|
|
13906
13919
|
showMaxPackages: 1,
|
|
13907
13920
|
className: "w-32",
|
|
@@ -13917,11 +13930,11 @@ function cE({ stats: e, dataType: t, locale: n }) {
|
|
|
13917
13930
|
children: [
|
|
13918
13931
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
13919
13932
|
className: "text-xs min-w-[60px] capitalize",
|
|
13920
|
-
children:
|
|
13933
|
+
children: qe(e, t)
|
|
13921
13934
|
}),
|
|
13922
13935
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
13923
13936
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
13924
|
-
children:
|
|
13937
|
+
children: la(r, n)
|
|
13925
13938
|
}),
|
|
13926
13939
|
/* @__PURE__ */ (0, Y.jsx)(w, {
|
|
13927
13940
|
className: "h-3 w-3 invisible group-hover:visible",
|
|
@@ -13938,7 +13951,7 @@ var lE = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
|
13938
13951
|
function uE(e, t) {
|
|
13939
13952
|
return /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
13940
13953
|
fallback: lE,
|
|
13941
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
13954
|
+
children: /* @__PURE__ */ (0, Y.jsx)(On, {
|
|
13942
13955
|
"data-container-width": "container",
|
|
13943
13956
|
spec: ((e) => ({
|
|
13944
13957
|
...e,
|
|
@@ -13959,9 +13972,9 @@ function uE(e, t) {
|
|
|
13959
13972
|
});
|
|
13960
13973
|
}
|
|
13961
13974
|
var dE = (e) => {
|
|
13962
|
-
let t = (0, X.c)(10), { chartCode: n } = e, r = rs(ls), i =
|
|
13975
|
+
let t = (0, X.c)(10), { chartCode: n } = e, r = rs(ls), i = Ne(), { createNewCell: a } = ot(), o;
|
|
13963
13976
|
t[0] !== r || t[1] !== a || t[2] !== i ? (o = (e) => {
|
|
13964
|
-
e.includes("alt") &&
|
|
13977
|
+
e.includes("alt") && ct({
|
|
13965
13978
|
autoInstantiate: r,
|
|
13966
13979
|
createNewCell: a,
|
|
13967
13980
|
fromCellId: i
|
|
@@ -13991,7 +14004,7 @@ var dE = (e) => {
|
|
|
13991
14004
|
//#endregion
|
|
13992
14005
|
//#region src/components/data-table/column-explorer-panel/column-explorer.tsx
|
|
13993
14006
|
function fE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, tableId: i, table: a }) {
|
|
13994
|
-
let [o, s] = (0, J.useState)(""), { locale: c } =
|
|
14007
|
+
let [o, s] = (0, J.useState)(""), { locale: c } = Yo(), l = t?.filter(([e]) => !(e === "__select__" || e === "_marimo_row_id" || e.startsWith("__m_column__"))), u = l?.filter(([e]) => rn(o, e)), { totalColumns: d, hiddenColumns: f } = jn(a, r), { visible: p } = hn(a), m = Fn(a), { rowsAndColumns: h, hiddenSuffix: g } = wr({
|
|
13995
14008
|
numRows: n,
|
|
13996
14009
|
totalColumns: d,
|
|
13997
14010
|
locale: c,
|
|
@@ -14021,7 +14034,7 @@ function fE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
14021
14034
|
className: "gap-1",
|
|
14022
14035
|
disabled: f === 0,
|
|
14023
14036
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
14024
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14037
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(ut, { className: "w-3 h-3" }), "Show all"]
|
|
14025
14038
|
})
|
|
14026
14039
|
}), /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
14027
14040
|
content: "Hide all columns",
|
|
@@ -14033,21 +14046,21 @@ function fE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
14033
14046
|
className: "gap-1",
|
|
14034
14047
|
disabled: p === 0,
|
|
14035
14048
|
onClick: () => a.toggleAllColumnsVisible(!1),
|
|
14036
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14049
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(rr, { className: "w-3 h-3" }), "Hide all"]
|
|
14037
14050
|
})
|
|
14038
14051
|
})]
|
|
14039
14052
|
})
|
|
14040
14053
|
]
|
|
14041
|
-
}), /* @__PURE__ */ (0, Y.jsxs)(
|
|
14054
|
+
}), /* @__PURE__ */ (0, Y.jsxs)(Br, {
|
|
14042
14055
|
className: "h-5/6 bg-background",
|
|
14043
14056
|
shouldFilter: !1,
|
|
14044
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14057
|
+
children: [/* @__PURE__ */ (0, Y.jsx)($n, {
|
|
14045
14058
|
placeholder: "Search columns...",
|
|
14046
14059
|
value: o,
|
|
14047
14060
|
onValueChange: (e) => s(e)
|
|
14048
|
-
}), /* @__PURE__ */ (0, Y.jsxs)(
|
|
14061
|
+
}), /* @__PURE__ */ (0, Y.jsxs)(er, {
|
|
14049
14062
|
className: "max-h-full",
|
|
14050
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14063
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(wn, { children: "No results." }), u?.map(([t, [n, r]], o) => {
|
|
14051
14064
|
let s = a.getColumn(t);
|
|
14052
14065
|
return /* @__PURE__ */ (0, Y.jsx)(pE, {
|
|
14053
14066
|
columnName: t,
|
|
@@ -14066,12 +14079,12 @@ function fE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
14066
14079
|
}
|
|
14067
14080
|
function pE({ columnName: e, column: t, dataType: n, externalType: r, previewColumn: i, table: a, showOnlyColumnState: o, defaultExpanded: s = !1 }) {
|
|
14068
14081
|
let [c, u] = (0, J.useState)(s);
|
|
14069
|
-
return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)(
|
|
14082
|
+
return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)(Zn, {
|
|
14070
14083
|
onSelect: () => u(!c),
|
|
14071
14084
|
className: "flex flex-row items-center gap-1.5 group w-full cursor-pointer",
|
|
14072
14085
|
children: [
|
|
14073
|
-
c ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14074
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
14086
|
+
c ? /* @__PURE__ */ (0, Y.jsx)(_i, { className: "w-3 h-3 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ (0, Y.jsx)(na, { className: "w-3 h-3 shrink-0 text-muted-foreground" }),
|
|
14087
|
+
/* @__PURE__ */ (0, Y.jsx)(pn, {
|
|
14075
14088
|
columnName: /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
14076
14089
|
className: c ? "font-semibold" : "",
|
|
14077
14090
|
children: e
|
|
@@ -14087,10 +14100,10 @@ function pE({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
14087
14100
|
className: "h-3 w-3",
|
|
14088
14101
|
buttonClassName: l("inline-flex items-center justify-center rounded-md h-6 w-6", "group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-primary")
|
|
14089
14102
|
}),
|
|
14090
|
-
t?.getCanHide() && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14103
|
+
t?.getCanHide() && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(Hn, {
|
|
14091
14104
|
table: a,
|
|
14092
14105
|
columnIds: [e],
|
|
14093
|
-
disabled:
|
|
14106
|
+
disabled: xn(o, [e]),
|
|
14094
14107
|
className: l(t.getIsVisible() ? "group-hover:opacity-100 opacity-0" : "opacity-100")
|
|
14095
14108
|
}), /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
14096
14109
|
content: t.getIsVisible() ? "Hide column" : "Show column",
|
|
@@ -14104,10 +14117,10 @@ function pE({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
14104
14117
|
onClick: (e) => {
|
|
14105
14118
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
14106
14119
|
},
|
|
14107
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14120
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(ut, {
|
|
14108
14121
|
className: "h-3 w-3",
|
|
14109
14122
|
strokeWidth: 2.5
|
|
14110
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
14123
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(rr, {
|
|
14111
14124
|
className: "h-3 w-3",
|
|
14112
14125
|
strokeWidth: 2.5
|
|
14113
14126
|
})
|
|
@@ -14127,10 +14140,10 @@ function pE({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
14127
14140
|
}) })] });
|
|
14128
14141
|
}
|
|
14129
14142
|
var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
14130
|
-
let { theme: r } = fs(), { locale: i } =
|
|
14131
|
-
if (o) return /* @__PURE__ */ (0, Y.jsx)(
|
|
14132
|
-
if (s) return /* @__PURE__ */ (0, Y.jsx)(
|
|
14133
|
-
if (!a) return /* @__PURE__ */ (0, Y.jsx)(
|
|
14143
|
+
let { theme: r } = fs(), { locale: i } = Yo(), { data: a, error: o, isPending: s, refetch: c } = Ns(async () => await e({ column: t }), []);
|
|
14144
|
+
if (o) return /* @__PURE__ */ (0, Y.jsx)(Er, { error: o });
|
|
14145
|
+
if (s) return /* @__PURE__ */ (0, Y.jsx)(an, { message: "Loading..." });
|
|
14146
|
+
if (!a) return /* @__PURE__ */ (0, Y.jsx)(Nn, {
|
|
14134
14147
|
content: "No data",
|
|
14135
14148
|
className: "pl-4"
|
|
14136
14149
|
});
|
|
@@ -14143,7 +14156,7 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14143
14156
|
dataType: n,
|
|
14144
14157
|
locale: i
|
|
14145
14158
|
}), g = l && uE(l, r);
|
|
14146
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
14159
|
+
return /* @__PURE__ */ (0, Y.jsxs)(dn, {
|
|
14147
14160
|
className: "px-2 py-1",
|
|
14148
14161
|
children: [
|
|
14149
14162
|
m,
|
|
@@ -14153,7 +14166,7 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14153
14166
|
]
|
|
14154
14167
|
});
|
|
14155
14168
|
}, hE = ({ rowIdx: e, setRowIdx: t, totalRows: n, fieldTypes: r, getRow: i, isSelectable: a, isRowSelected: o, handleRowSelectionChange: s }) => {
|
|
14156
|
-
let [c, l] = (0, J.useState)(""), u = (0, J.useRef)(null), d = (0, J.useId)(), { locale: f } =
|
|
14169
|
+
let [c, l] = (0, J.useState)(""), u = (0, J.useRef)(null), d = (0, J.useId)(), { locale: f } = Yo(), p = n === Vn, { data: m, error: h } = Ns(async () => (await i(e)).rows, [
|
|
14157
14170
|
i,
|
|
14158
14171
|
e,
|
|
14159
14172
|
n
|
|
@@ -14197,7 +14210,7 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14197
14210
|
title: "Select/unselect the current row",
|
|
14198
14211
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
14199
14212
|
className: "flex items-center gap-1.5",
|
|
14200
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14213
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
14201
14214
|
id: d,
|
|
14202
14215
|
checked: o,
|
|
14203
14216
|
onCheckedChange: v,
|
|
@@ -14219,7 +14232,7 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14219
14232
|
onClick: () => g(0),
|
|
14220
14233
|
disabled: e === 0,
|
|
14221
14234
|
"aria-label": "Go to first row",
|
|
14222
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14235
|
+
children: /* @__PURE__ */ (0, Y.jsx)(hr, {})
|
|
14223
14236
|
}),
|
|
14224
14237
|
/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
14225
14238
|
variant: "outline",
|
|
@@ -14228,11 +14241,11 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14228
14241
|
onClick: () => g(e - 1),
|
|
14229
14242
|
disabled: e === 0,
|
|
14230
14243
|
"aria-label": "Previous row",
|
|
14231
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14244
|
+
children: /* @__PURE__ */ (0, Y.jsx)(jr, {})
|
|
14232
14245
|
}),
|
|
14233
14246
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
14234
14247
|
className: "text-xs",
|
|
14235
|
-
children: p ? `Row ${e + 1}` : `Row ${e + 1} of ${
|
|
14248
|
+
children: p ? `Row ${e + 1}` : `Row ${e + 1} of ${kn(n, f)}`
|
|
14236
14249
|
}),
|
|
14237
14250
|
/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
14238
14251
|
variant: "outline",
|
|
@@ -14241,7 +14254,7 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14241
14254
|
onClick: () => g(e + 1),
|
|
14242
14255
|
disabled: !p && e === n - 1,
|
|
14243
14256
|
"aria-label": "Next row",
|
|
14244
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14257
|
+
children: /* @__PURE__ */ (0, Y.jsx)(na, {})
|
|
14245
14258
|
}),
|
|
14246
14259
|
/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
14247
14260
|
variant: "outline",
|
|
@@ -14252,14 +14265,14 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14252
14265
|
},
|
|
14253
14266
|
disabled: p || e === n - 1,
|
|
14254
14267
|
"aria-label": "Go to last row",
|
|
14255
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14268
|
+
children: /* @__PURE__ */ (0, Y.jsx)(ur, {})
|
|
14256
14269
|
})
|
|
14257
14270
|
]
|
|
14258
14271
|
}),
|
|
14259
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
14272
|
+
/* @__PURE__ */ (0, Y.jsx)(Br, {
|
|
14260
14273
|
className: "bg-background",
|
|
14261
14274
|
shouldFilter: !1,
|
|
14262
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14275
|
+
children: /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
14263
14276
|
placeholder: "Search",
|
|
14264
14277
|
value: c,
|
|
14265
14278
|
onValueChange: l,
|
|
@@ -14273,10 +14286,10 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14273
14286
|
});
|
|
14274
14287
|
if (n === 0) return /* @__PURE__ */ (0, Y.jsx)(_E, {
|
|
14275
14288
|
kind: "info",
|
|
14276
|
-
Icon:
|
|
14289
|
+
Icon: Ct,
|
|
14277
14290
|
message: "No rows selected"
|
|
14278
14291
|
});
|
|
14279
|
-
if (!m) return /* @__PURE__ */ (0, Y.jsx)(
|
|
14292
|
+
if (!m) return /* @__PURE__ */ (0, Y.jsx)(Mr, {
|
|
14280
14293
|
milliseconds: 200,
|
|
14281
14294
|
children: /* @__PURE__ */ (0, Y.jsx)(ne, {
|
|
14282
14295
|
size: "medium",
|
|
@@ -14298,23 +14311,23 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14298
14311
|
message: "Row is not an object. Please report the issue."
|
|
14299
14312
|
});
|
|
14300
14313
|
let t = {};
|
|
14301
|
-
for (let [n, r] of Object.entries(e)) n !== "__select__" && n !== "_marimo_row_id" && (n.startsWith("__m_column__") ? t[n.slice(
|
|
14302
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
14314
|
+
for (let [n, r] of Object.entries(e)) n !== "__select__" && n !== "_marimo_row_id" && (n.startsWith("__m_column__") ? t[n.slice(cr.length)] = r : t[n] = r);
|
|
14315
|
+
return /* @__PURE__ */ (0, Y.jsxs)(Pr, {
|
|
14303
14316
|
className: "mb-4",
|
|
14304
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14317
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Fr, { children: /* @__PURE__ */ (0, Y.jsxs)(Gr, { children: [/* @__PURE__ */ (0, Y.jsx)(ir, {
|
|
14305
14318
|
className: "w-1/4",
|
|
14306
14319
|
children: "Column"
|
|
14307
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
14320
|
+
}), /* @__PURE__ */ (0, Y.jsx)(ir, {
|
|
14308
14321
|
className: "w-3/4",
|
|
14309
14322
|
children: "Value"
|
|
14310
|
-
})] }) }), /* @__PURE__ */ (0, Y.jsx)(
|
|
14323
|
+
})] }) }), /* @__PURE__ */ (0, Y.jsx)(Ur, { children: r?.map(([e, [n, r]]) => {
|
|
14311
14324
|
let i = t[e];
|
|
14312
14325
|
if (!gE({
|
|
14313
14326
|
columnName: e,
|
|
14314
14327
|
columnValue: i,
|
|
14315
14328
|
searchQuery: c
|
|
14316
14329
|
})) return null;
|
|
14317
|
-
let a =
|
|
14330
|
+
let a = dr({
|
|
14318
14331
|
column: {
|
|
14319
14332
|
id: e,
|
|
14320
14333
|
columnDef: { meta: {
|
|
@@ -14329,12 +14342,12 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14329
14342
|
selectCell: void 0,
|
|
14330
14343
|
cellStyles: "text-left break-word"
|
|
14331
14344
|
}), o = typeof i == "object" ? JSON.stringify(i) : String(i);
|
|
14332
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
14345
|
+
return /* @__PURE__ */ (0, Y.jsxs)(Gr, {
|
|
14333
14346
|
className: "group",
|
|
14334
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14347
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Cr, { children: /* @__PURE__ */ (0, Y.jsx)(pn, {
|
|
14335
14348
|
columnName: /* @__PURE__ */ (0, Y.jsx)("span", { children: e }),
|
|
14336
14349
|
dataType: n
|
|
14337
|
-
}) }), /* @__PURE__ */ (0, Y.jsx)(
|
|
14350
|
+
}) }), /* @__PURE__ */ (0, Y.jsx)(Cr, { children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
14338
14351
|
className: "flex flex-row items-center justify-between gap-1",
|
|
14339
14352
|
children: [a, /* @__PURE__ */ (0, Y.jsx)(w, {
|
|
14340
14353
|
value: o,
|
|
@@ -14383,22 +14396,22 @@ function xE({ rowIdx: e, setRowIdx: t, totalRows: n, fieldTypes: r, getRow: i, i
|
|
|
14383
14396
|
table: f
|
|
14384
14397
|
});
|
|
14385
14398
|
if (!v) return p ? y : m ? b : null;
|
|
14386
|
-
let x = h ??
|
|
14387
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
14399
|
+
let x = h ?? Cn.ROW_VIEWER;
|
|
14400
|
+
return /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
14388
14401
|
value: x,
|
|
14389
14402
|
onValueChange: (e) => g(e),
|
|
14390
14403
|
className: "flex flex-col min-w-[350px]",
|
|
14391
14404
|
children: [
|
|
14392
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
14393
|
-
name:
|
|
14405
|
+
/* @__PURE__ */ (0, Y.jsx)(pr, {
|
|
14406
|
+
name: Qn.CONTEXT_AWARE_PANEL_HEADER,
|
|
14394
14407
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
14395
14408
|
className: "flex items-center gap-1",
|
|
14396
14409
|
children: [
|
|
14397
14410
|
/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
14398
14411
|
variant: "text",
|
|
14399
14412
|
size: "xs",
|
|
14400
|
-
onClick: () => g(
|
|
14401
|
-
className: l(vE, x ===
|
|
14413
|
+
onClick: () => g(Cn.ROW_VIEWER),
|
|
14414
|
+
className: l(vE, x === Cn.ROW_VIEWER ? yE : bE),
|
|
14402
14415
|
children: "Rows"
|
|
14403
14416
|
}),
|
|
14404
14417
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
@@ -14408,20 +14421,20 @@ function xE({ rowIdx: e, setRowIdx: t, totalRows: n, fieldTypes: r, getRow: i, i
|
|
|
14408
14421
|
/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
14409
14422
|
variant: "text",
|
|
14410
14423
|
size: "xs",
|
|
14411
|
-
onClick: () => g(
|
|
14412
|
-
className: l(vE, x ===
|
|
14424
|
+
onClick: () => g(Cn.COLUMN_EXPLORER),
|
|
14425
|
+
className: l(vE, x === Cn.COLUMN_EXPLORER ? yE : bE),
|
|
14413
14426
|
children: "Columns"
|
|
14414
14427
|
})
|
|
14415
14428
|
]
|
|
14416
14429
|
})
|
|
14417
14430
|
}),
|
|
14418
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
14419
|
-
value:
|
|
14431
|
+
/* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
14432
|
+
value: Cn.ROW_VIEWER,
|
|
14420
14433
|
className: "flex-1 overflow-auto",
|
|
14421
14434
|
children: y
|
|
14422
14435
|
}),
|
|
14423
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
14424
|
-
value:
|
|
14436
|
+
/* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
14437
|
+
value: Cn.COLUMN_EXPLORER,
|
|
14425
14438
|
className: "flex-1 overflow-auto",
|
|
14426
14439
|
children: b
|
|
14427
14440
|
})
|
|
@@ -14484,7 +14497,7 @@ var CE = no([
|
|
|
14484
14497
|
label: U().nullable(),
|
|
14485
14498
|
data: no([U(), G(W({}).passthrough())]),
|
|
14486
14499
|
rawData: no([U(), G(io({}))]).nullish(),
|
|
14487
|
-
totalRows: no([K(), Xa(
|
|
14500
|
+
totalRows: no([K(), Xa(Vn)]),
|
|
14488
14501
|
pagination: H().default(!1),
|
|
14489
14502
|
pageSize: K().default(10),
|
|
14490
14503
|
selection: Io([
|
|
@@ -14546,7 +14559,7 @@ var CE = no([
|
|
|
14546
14559
|
max_columns: K().nullable().optional()
|
|
14547
14560
|
})).output(W({
|
|
14548
14561
|
data: no([U(), G(W({}).passthrough())]),
|
|
14549
|
-
total_rows: no([K(), Xa(
|
|
14562
|
+
total_rows: no([K(), Xa(Vn)]),
|
|
14550
14563
|
cell_styles: ao(U(), ao(U(), W({}).passthrough())).nullable(),
|
|
14551
14564
|
cell_hover_texts: DE.nullable(),
|
|
14552
14565
|
raw_data: no([U(), G(io({}))]).nullish()
|
|
@@ -14599,8 +14612,8 @@ function jE(e, t) {
|
|
|
14599
14612
|
var ME = (e) => {
|
|
14600
14613
|
let t = (0, X.c)(13), { isLazy: n, children: r, preload: i, host: a } = e, o, s, c, l;
|
|
14601
14614
|
if (t[0] !== a || t[1] !== n || t[2] !== i) {
|
|
14602
|
-
let e = a.closest(`[${
|
|
14603
|
-
l = e ?
|
|
14615
|
+
let e = a.closest(`[${je}]`);
|
|
14616
|
+
l = e ? Ke.parse(e) : null, o = a.closest(`[${yt}]`)?.getAttribute(yt), s = J.useState, c = n && !i && !AE(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
|
|
14604
14617
|
} else o = t[3], s = t[4], c = t[5], l = t[6];
|
|
14605
14618
|
let [u, d] = s(c);
|
|
14606
14619
|
if (u) {
|
|
@@ -14609,7 +14622,7 @@ var ME = (e) => {
|
|
|
14609
14622
|
jE(l, o), d(!1);
|
|
14610
14623
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
14611
14624
|
let n;
|
|
14612
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(
|
|
14625
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(Tt, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
14613
14626
|
let r;
|
|
14614
14627
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
14615
14628
|
className: "flex h-20 items-center justify-center",
|
|
@@ -14624,7 +14637,7 @@ var ME = (e) => {
|
|
|
14624
14637
|
return r;
|
|
14625
14638
|
}, NE = (0, J.memo)((e) => {
|
|
14626
14639
|
let t = (0, X.c)(119), n;
|
|
14627
|
-
t[0] === e.host ? n = t[1] : (n =
|
|
14640
|
+
t[0] === e.host ? n = t[1] : (n = Ee(e.host), t[0] = e.host, t[1] = n);
|
|
14628
14641
|
let r = n, i = e.search, a = e.setValue, o;
|
|
14629
14642
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[2] = o) : o = t[2];
|
|
14630
14643
|
let [s, l] = (0, J.useState)(o), u;
|
|
@@ -14674,7 +14687,7 @@ var ME = (e) => {
|
|
|
14674
14687
|
let e = await f;
|
|
14675
14688
|
t = e.data, n = e.raw_data, r = e.total_rows, a = e.cell_styles || {}, o = e.cell_hover_texts || {};
|
|
14676
14689
|
}
|
|
14677
|
-
let [m, h] = await
|
|
14690
|
+
let [m, h] = await $r(t, n);
|
|
14678
14691
|
return t = m, {
|
|
14679
14692
|
rows: t,
|
|
14680
14693
|
rawRows: h,
|
|
@@ -14698,7 +14711,7 @@ var ME = (e) => {
|
|
|
14698
14711
|
d.pageSize,
|
|
14699
14712
|
d.pageIndex
|
|
14700
14713
|
], t[35] = g, t[36] = d.pageIndex, t[37] = d.pageSize, t[38] = e.cellHoverTexts, t[39] = e.cellStyles, t[40] = e.data, t[41] = e.lazy, t[42] = e.totalRows, t[43] = i, t[44] = p, t[45] = s, t[46] = E, t[47] = D) : D = t[47];
|
|
14701
|
-
let { data: O, error: k, isPending: A, isFetching: j } = Ns(T, D), M = rs(
|
|
14714
|
+
let { data: O, error: k, isPending: A, isFetching: j } = Ns(T, D), M = rs(ei), N;
|
|
14702
14715
|
t[48] !== M || t[49] !== e ? (N = async () => !M || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[48] = M, t[49] = e, t[50] = N) : N = t[50];
|
|
14703
14716
|
let P = e.showDownload, F = e.get_size_bytes, I = e.lazy, L = e.totalRows, R = Ys(g), ee = Ys(s), z;
|
|
14704
14717
|
t[51] !== M || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !== R || t[58] !== ee ? (z = [
|
|
@@ -14721,7 +14734,7 @@ var ME = (e) => {
|
|
|
14721
14734
|
filters: b_(g),
|
|
14722
14735
|
max_columns: null
|
|
14723
14736
|
});
|
|
14724
|
-
return { rows: await
|
|
14737
|
+
return { rows: await ii(n.data) };
|
|
14725
14738
|
}, t[60] = g, t[61] = i, t[62] = p, t[63] = s, t[64] = ie) : ie = t[64];
|
|
14726
14739
|
let ae = ie, oe;
|
|
14727
14740
|
t[65] === Symbol.for("react.memo_cache_sentinel") ? (oe = () => {
|
|
@@ -14731,7 +14744,7 @@ var ME = (e) => {
|
|
|
14731
14744
|
t[66] === se ? ce = t[67] : (ce = [se], t[66] = se, t[67] = ce), (0, J.useEffect)(oe, ce);
|
|
14732
14745
|
let V;
|
|
14733
14746
|
t[68] === e ? V = t[69] : (V = async () => {
|
|
14734
|
-
let t =
|
|
14747
|
+
let t = ga();
|
|
14735
14748
|
return e.totalRows === 0 || !e.showColumnSummaries || t ? {
|
|
14736
14749
|
data: null,
|
|
14737
14750
|
stats: {},
|
|
@@ -14754,7 +14767,7 @@ var ME = (e) => {
|
|
|
14754
14767
|
de && c.error(de);
|
|
14755
14768
|
}, pe = [de], t[77] = de, t[78] = fe, t[79] = pe), (0, J.useEffect)(fe, pe), A) {
|
|
14756
14769
|
let n = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, r;
|
|
14757
|
-
return t[80] === n ? r = t[81] : (r = /* @__PURE__ */ (0, Y.jsx)(
|
|
14770
|
+
return t[80] === n ? r = t[81] : (r = /* @__PURE__ */ (0, Y.jsx)(Mr, {
|
|
14758
14771
|
milliseconds: 200,
|
|
14759
14772
|
children: /* @__PURE__ */ (0, Y.jsx)(GS, { pageSize: n })
|
|
14760
14773
|
}), t[80] = n, t[81] = r), r;
|
|
@@ -14763,7 +14776,7 @@ var ME = (e) => {
|
|
|
14763
14776
|
if (k) {
|
|
14764
14777
|
c.error(k);
|
|
14765
14778
|
let e;
|
|
14766
|
-
t[82] === k ? e = t[83] : (e = !
|
|
14779
|
+
t[82] === k ? e = t[83] : (e = !ga() && /* @__PURE__ */ (0, Y.jsxs)(Fs, {
|
|
14767
14780
|
variant: "destructive",
|
|
14768
14781
|
className: "mb-2",
|
|
14769
14782
|
children: [/* @__PURE__ */ (0, Y.jsx)(Ps, { children: "Error" }), /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -14815,34 +14828,34 @@ var ME = (e) => {
|
|
|
14815
14828
|
rowHeaders: e.rowHeaders,
|
|
14816
14829
|
cellId: r
|
|
14817
14830
|
}) : we, t[105] = r, t[106] = we, t[107] = O?.rows, t[108] = y, t[109] = e.fieldTypes, t[110] = e.get_data_url, t[111] = e.rowHeaders, t[112] = e.showChartBuilder, t[113] = e.totalColumns, t[114] = e.totalRows, t[115] = Te) : Te = t[115];
|
|
14818
|
-
let
|
|
14819
|
-
return t[116] !== me || t[117] !== Te ? (
|
|
14831
|
+
let De;
|
|
14832
|
+
return t[116] !== me || t[117] !== Te ? (De = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [me, Te] }), t[116] = me, t[117] = Te, t[118] = De) : De = t[118], De;
|
|
14820
14833
|
});
|
|
14821
14834
|
NE.displayName = "LoadingDataTableComponent";
|
|
14822
14835
|
var PE = (e) => {
|
|
14823
|
-
let t = (0, X.c)(142), { label: n, data: r, rawData: i, totalRows: o, sizeBytes: s, sizeBytesIsLoading: c, maxColumns: l, pagination: u, selection: d, value: f, showFilters: p, showDownload: m, showPageSizeSelector: h, showColumnExplorer: g, showRowExplorer: _, showChartBuilder: v, showDataTypes: y, rowHeaders: b, fieldTypes: x, paginationState: S, setPaginationState: C, download_as: w, columnSummaries: T, className: E, setValue: D, sorting: O, setSorting: k, showSearch: A, searchQuery: j, setSearchQuery: M, filters: N, setFilters: P, reloading: F, freezeColumnsLeft: I, freezeColumnsRight: L, hiddenColumns: R, textJustifyColumns: ee, wrappedColumns: z, columnWidths: te, headerTooltip: B, totalColumns: ne, get_row_ids: re, cellStyles: ie, hoverTemplate: ae, cellHoverTexts: oe, toggleDisplayHeader: se, isChartBuilderOpen: ce, calculate_top_k_rows: V, preview_column: le, getRow: ue, cellId: de, maxHeight: fe } = e, pe = d, me = y, he = (0, J.useId)(), { locale: ge } =
|
|
14824
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (we =
|
|
14836
|
+
let t = (0, X.c)(142), { label: n, data: r, rawData: i, totalRows: o, sizeBytes: s, sizeBytesIsLoading: c, maxColumns: l, pagination: u, selection: d, value: f, showFilters: p, showDownload: m, showPageSizeSelector: h, showColumnExplorer: g, showRowExplorer: _, showChartBuilder: v, showDataTypes: y, rowHeaders: b, fieldTypes: x, paginationState: S, setPaginationState: C, download_as: w, columnSummaries: T, className: E, setValue: D, sorting: O, setSorting: k, showSearch: A, searchQuery: j, setSearchQuery: M, filters: N, setFilters: P, reloading: F, freezeColumnsLeft: I, freezeColumnsRight: L, hiddenColumns: R, textJustifyColumns: ee, wrappedColumns: z, columnWidths: te, headerTooltip: B, totalColumns: ne, get_row_ids: re, cellStyles: ie, hoverTemplate: ae, cellHoverTexts: oe, toggleDisplayHeader: se, isChartBuilderOpen: ce, calculate_top_k_rows: V, preview_column: le, getRow: ue, cellId: de, maxHeight: fe } = e, pe = d, me = y, he = (0, J.useId)(), { locale: ge } = Yo(), [_e, ve] = (0, J.useState)(0), { isPanelOpen: ye, isAnyPanelOpen: be, togglePanel: xe, panelType: Se, setPanelType: Ce } = rE(he, de), we;
|
|
14837
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (we = ga(), t[0] = we) : we = t[0];
|
|
14825
14838
|
let Te = we, Ee;
|
|
14826
14839
|
bb0: {
|
|
14827
14840
|
if (!T) {
|
|
14828
|
-
Ee =
|
|
14841
|
+
Ee = Rr.EMPTY;
|
|
14829
14842
|
break bb0;
|
|
14830
14843
|
}
|
|
14831
14844
|
if (!x || !T.stats) {
|
|
14832
|
-
Ee =
|
|
14845
|
+
Ee = Rr.EMPTY;
|
|
14833
14846
|
break bb0;
|
|
14834
14847
|
}
|
|
14835
14848
|
let e;
|
|
14836
14849
|
if (t[1] !== T.bin_values || t[2] !== T.data || t[3] !== T.show_charts || t[4] !== T.stats || t[5] !== T.value_counts || t[6] !== x) {
|
|
14837
|
-
let n =
|
|
14838
|
-
e = new
|
|
14850
|
+
let n = un(x);
|
|
14851
|
+
e = new Rr(T.data || [], n, T.stats, T.bin_values, T.value_counts, { includeCharts: T.show_charts }), t[1] = T.bin_values, t[2] = T.data, t[3] = T.show_charts, t[4] = T.stats, t[5] = T.value_counts, t[6] = x, t[7] = e;
|
|
14839
14852
|
} else e = t[7];
|
|
14840
14853
|
Ee = e;
|
|
14841
14854
|
}
|
|
14842
14855
|
let De = Ee, Oe;
|
|
14843
14856
|
t[8] === b ? Oe = t[9] : (Oe = new Set(b.map(BE)), t[8] = b, t[9] = Oe);
|
|
14844
14857
|
let ke = Oe, Ae;
|
|
14845
|
-
t[10] !== r || t[11] !== x || t[12] !== ke ? (Ae = x ??
|
|
14858
|
+
t[10] !== r || t[11] !== x || t[12] !== ke ? (Ae = x ?? Zr(r).filter((e) => {
|
|
14846
14859
|
let [t] = e;
|
|
14847
14860
|
return !ke.has(t);
|
|
14848
14861
|
}), t[10] = r, t[11] = x, t[12] = ke, t[13] = Ae) : Ae = t[13];
|
|
@@ -14875,7 +14888,7 @@ var PE = (e) => {
|
|
|
14875
14888
|
let Fe = Pe, Ie = Ys(b), Le = Ys(ee), Re = Ys(z), ze = Ys(te), Be = Ys(De), Ve = Ys(Fe), He = Ne.length;
|
|
14876
14889
|
x || (me = !1), Te && (pe = null);
|
|
14877
14890
|
let Ue;
|
|
14878
|
-
t[20] !== V || t[21] !== Ve || t[22] !== B || t[23] !== Be || t[24] !== Ne || t[25] !== ze || t[26] !== Ie || t[27] !== Le || t[28] !== Re || t[29] !== pe || t[30] !== me ? (Ue =
|
|
14891
|
+
t[20] !== V || t[21] !== Ve || t[22] !== B || t[23] !== Be || t[24] !== Ne || t[25] !== ze || t[26] !== Ie || t[27] !== Le || t[28] !== Re || t[29] !== pe || t[30] !== me ? (Ue = kr({
|
|
14879
14892
|
rowHeaders: Ie,
|
|
14880
14893
|
selection: pe,
|
|
14881
14894
|
chartSpecModel: Be,
|
|
@@ -14904,7 +14917,7 @@ var PE = (e) => {
|
|
|
14904
14917
|
let Je = ns(qe), Ye;
|
|
14905
14918
|
t[38] !== S || t[39] !== C || t[40] !== ve || t[41] !== o ? (Ye = (e) => {
|
|
14906
14919
|
if (ve(e), e < 0 || typeof o == "number" && e >= o || o === "too_many") return;
|
|
14907
|
-
let t =
|
|
14920
|
+
let t = nr(e, S.pageIndex, S.pageSize);
|
|
14908
14921
|
t !== null && C((e) => ({
|
|
14909
14922
|
...e,
|
|
14910
14923
|
pageIndex: t
|
|
@@ -14934,7 +14947,7 @@ var PE = (e) => {
|
|
|
14934
14947
|
break bb2;
|
|
14935
14948
|
}
|
|
14936
14949
|
let e;
|
|
14937
|
-
t[51] !== nt || t[52] !== ue || t[53] !== Je || t[54] !== he || t[55] !== tt || t[56] !== je || t[57] !== Se || t[58] !== le || t[59] !== Ke || t[60] !== Ce || t[61] !== Xe || t[62] !== _ || t[63] !== ne || t[64] !== o || t[65] !== _e ? (e = (e) => /* @__PURE__ */ (0, Y.jsx)(
|
|
14950
|
+
t[51] !== nt || t[52] !== ue || t[53] !== Je || t[54] !== he || t[55] !== tt || t[56] !== je || t[57] !== Se || t[58] !== le || t[59] !== Ke || t[60] !== Ce || t[61] !== Xe || t[62] !== _ || t[63] !== ne || t[64] !== o || t[65] !== _e ? (e = (e) => /* @__PURE__ */ (0, Y.jsx)(zr, { children: /* @__PURE__ */ (0, Y.jsx)(xE, {
|
|
14938
14951
|
rowIdx: _e,
|
|
14939
14952
|
setRowIdx: Xe,
|
|
14940
14953
|
totalRows: o,
|
|
@@ -14978,10 +14991,10 @@ var PE = (e) => {
|
|
|
14978
14991
|
className: "mb-1 rounded",
|
|
14979
14992
|
children: [
|
|
14980
14993
|
"Showing the first ",
|
|
14981
|
-
/* @__PURE__ */ (0, Y.jsx)("strong", { children:
|
|
14994
|
+
/* @__PURE__ */ (0, Y.jsx)("strong", { children: la(r.length, ge) }),
|
|
14982
14995
|
" ",
|
|
14983
14996
|
"of ",
|
|
14984
|
-
/* @__PURE__ */ (0, Y.jsx)("strong", { children:
|
|
14997
|
+
/* @__PURE__ */ (0, Y.jsx)("strong", { children: la(o, ge) }),
|
|
14985
14998
|
" rows. Increase the table's ",
|
|
14986
14999
|
/* @__PURE__ */ (0, Y.jsx)("code", { children: "page_size" }),
|
|
14987
15000
|
" to embed more in the static export."
|
|
@@ -14995,7 +15008,7 @@ var PE = (e) => {
|
|
|
14995
15008
|
let pt = m ? w : void 0, mt = v && !ot, ht = (_ || nt) && !it && !ot, gt;
|
|
14996
15009
|
t[81] === ve ? gt = t[82] : (gt = (e) => ve(e), t[81] = ve, t[82] = gt);
|
|
14997
15010
|
let _t;
|
|
14998
|
-
t[83] !== V || t[84] !== oe || t[85] !== Qe || t[86] !== ie || t[87] !== E || t[88] !== We || t[89] !== r || t[90] !== N || t[91] !== I || t[92] !== L || t[93] !== re || t[94] !== et || t[95] !== Je || t[96] !== R || t[97] !== ae || t[98] !== be || t[99] !== ce || t[100] !== ye || t[101] !== fe || t[102] !== u || t[103] !== S || t[104] !== i || t[105] !== F || t[106] !== ct || t[107] !== Ke || t[108] !== j || t[109] !== pe || t[110] !== P || t[111] !== C || t[112] !== M || t[113] !== k || t[114] !== p || t[115] !== h || t[116] !== A || t[117] !== s || t[118] !== c || t[119] !== O || t[120] !== pt || t[121] !== mt || t[122] !== ht || t[123] !== gt || t[124] !== se || t[125] !== xe || t[126] !== ne || t[127] !== o || t[128] !== _e ? (_t = /* @__PURE__ */ (0, Y.jsx)(
|
|
15011
|
+
t[83] !== V || t[84] !== oe || t[85] !== Qe || t[86] !== ie || t[87] !== E || t[88] !== We || t[89] !== r || t[90] !== N || t[91] !== I || t[92] !== L || t[93] !== re || t[94] !== et || t[95] !== Je || t[96] !== R || t[97] !== ae || t[98] !== be || t[99] !== ce || t[100] !== ye || t[101] !== fe || t[102] !== u || t[103] !== S || t[104] !== i || t[105] !== F || t[106] !== ct || t[107] !== Ke || t[108] !== j || t[109] !== pe || t[110] !== P || t[111] !== C || t[112] !== M || t[113] !== k || t[114] !== p || t[115] !== h || t[116] !== A || t[117] !== s || t[118] !== c || t[119] !== O || t[120] !== pt || t[121] !== mt || t[122] !== ht || t[123] !== gt || t[124] !== se || t[125] !== xe || t[126] !== ne || t[127] !== o || t[128] !== _e ? (_t = /* @__PURE__ */ (0, Y.jsx)(Ar, {
|
|
14999
15012
|
data: r,
|
|
15000
15013
|
rawData: i,
|
|
15001
15014
|
columns: We,
|
|
@@ -15053,7 +15066,7 @@ var PE = (e) => {
|
|
|
15053
15066
|
children: _t
|
|
15054
15067
|
}), t[130] = n, t[131] = _t, t[132] = vt) : vt = t[132];
|
|
15055
15068
|
let yt;
|
|
15056
|
-
t[133] !== De || t[134] !== vt ? (yt = /* @__PURE__ */ (0, Y.jsx)(
|
|
15069
|
+
t[133] !== De || t[134] !== vt ? (yt = /* @__PURE__ */ (0, Y.jsx)(gr, {
|
|
15057
15070
|
value: De,
|
|
15058
15071
|
children: vt
|
|
15059
15072
|
}), t[133] = De, t[134] = vt, t[135] = yt) : yt = t[135];
|
|
@@ -15069,8 +15082,8 @@ var PE = (e) => {
|
|
|
15069
15082
|
let t = (0, X.c)(2), { children: n } = e, r;
|
|
15070
15083
|
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, Y.jsx)(Ua, { children: /* @__PURE__ */ (0, Y.jsx)(gs, {
|
|
15071
15084
|
store: os,
|
|
15072
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15073
|
-
controller:
|
|
15085
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Jr, {
|
|
15086
|
+
controller: Xn,
|
|
15074
15087
|
children: n
|
|
15075
15088
|
})
|
|
15076
15089
|
}) }), t[0] = n, t[1] = r), r;
|
|
@@ -15135,13 +15148,13 @@ var UE = class {
|
|
|
15135
15148
|
e.setValue(n);
|
|
15136
15149
|
}, t[0] = e, t[1] = n);
|
|
15137
15150
|
let r = n, i = e.label, a = e.fullWidth, o;
|
|
15138
|
-
t[2] === e.value ? o = t[3] : (o =
|
|
15151
|
+
t[2] === e.value ? o = t[3] : (o = qr(e.value), t[2] = e.value, t[3] = o);
|
|
15139
15152
|
let s = e.label ?? "date picker", c;
|
|
15140
|
-
t[4] === e.start ? c = t[5] : (c =
|
|
15153
|
+
t[4] === e.start ? c = t[5] : (c = qr(e.start), t[4] = e.start, t[5] = c);
|
|
15141
15154
|
let l;
|
|
15142
|
-
t[6] === e.stop ? l = t[7] : (l =
|
|
15155
|
+
t[6] === e.stop ? l = t[7] : (l = qr(e.stop), t[6] = e.stop, t[7] = l);
|
|
15143
15156
|
let u;
|
|
15144
|
-
t[8] !== r || t[9] !== e.disabled || t[10] !== o || t[11] !== s || t[12] !== c || t[13] !== l ? (u = /* @__PURE__ */ (0, Y.jsx)(
|
|
15157
|
+
t[8] !== r || t[9] !== e.disabled || t[10] !== o || t[11] !== s || t[12] !== c || t[13] !== l ? (u = /* @__PURE__ */ (0, Y.jsx)(_n, {
|
|
15145
15158
|
granularity: "day",
|
|
15146
15159
|
value: o,
|
|
15147
15160
|
onChange: r,
|
|
@@ -15182,20 +15195,20 @@ var UE = class {
|
|
|
15182
15195
|
e.setValue(i);
|
|
15183
15196
|
}, t[0] = e, t[1] = n);
|
|
15184
15197
|
let r = n, i = e.label, a = e.fullWidth, o;
|
|
15185
|
-
t[2] === e.value[0] ? o = t[3] : (o =
|
|
15198
|
+
t[2] === e.value[0] ? o = t[3] : (o = qr(e.value[0]), t[2] = e.value[0], t[3] = o);
|
|
15186
15199
|
let s;
|
|
15187
|
-
t[4] === e.value[1] ? s = t[5] : (s =
|
|
15200
|
+
t[4] === e.value[1] ? s = t[5] : (s = qr(e.value[1]), t[4] = e.value[1], t[5] = s);
|
|
15188
15201
|
let c;
|
|
15189
15202
|
t[6] !== o || t[7] !== s ? (c = {
|
|
15190
15203
|
start: o,
|
|
15191
15204
|
end: s
|
|
15192
15205
|
}, t[6] = o, t[7] = s, t[8] = c) : c = t[8];
|
|
15193
15206
|
let l = e.label ?? "date range picker", u;
|
|
15194
|
-
t[9] === e.start ? u = t[10] : (u =
|
|
15207
|
+
t[9] === e.start ? u = t[10] : (u = qr(e.start), t[9] = e.start, t[10] = u);
|
|
15195
15208
|
let d;
|
|
15196
|
-
t[11] === e.stop ? d = t[12] : (d =
|
|
15209
|
+
t[11] === e.stop ? d = t[12] : (d = qr(e.stop), t[11] = e.stop, t[12] = d);
|
|
15197
15210
|
let f;
|
|
15198
|
-
t[13] !== r || t[14] !== e.disabled || t[15] !== c || t[16] !== l || t[17] !== u || t[18] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)(
|
|
15211
|
+
t[13] !== r || t[14] !== e.disabled || t[15] !== c || t[16] !== l || t[17] !== u || t[18] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)(Tn, {
|
|
15199
15212
|
granularity: "day",
|
|
15200
15213
|
value: c,
|
|
15201
15214
|
onChange: r,
|
|
@@ -15241,13 +15254,13 @@ var UE = class {
|
|
|
15241
15254
|
e.setValue(n);
|
|
15242
15255
|
}, t[0] = e, t[1] = n);
|
|
15243
15256
|
let r = n, i;
|
|
15244
|
-
t[2] === e.value ? i = t[3] : (i = e.value ?
|
|
15257
|
+
t[2] === e.value ? i = t[3] : (i = e.value ? fr(e.value) : void 0, t[2] = e.value, t[3] = i);
|
|
15245
15258
|
let a = i, o = e.label, s = e.fullWidth, c = e.precision, l = e.label ?? "date time picker", u;
|
|
15246
|
-
t[4] === e.start ? u = t[5] : (u =
|
|
15259
|
+
t[4] === e.start ? u = t[5] : (u = fr(e.start), t[4] = e.start, t[5] = u);
|
|
15247
15260
|
let d;
|
|
15248
|
-
t[6] === e.stop ? d = t[7] : (d =
|
|
15261
|
+
t[6] === e.stop ? d = t[7] : (d = fr(e.stop), t[6] = e.stop, t[7] = d);
|
|
15249
15262
|
let f;
|
|
15250
|
-
t[8] !== r || t[9] !== a || t[10] !== e.disabled || t[11] !== e.precision || t[12] !== l || t[13] !== u || t[14] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)(
|
|
15263
|
+
t[8] !== r || t[9] !== a || t[10] !== e.disabled || t[11] !== e.precision || t[12] !== l || t[13] !== u || t[14] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)(_n, {
|
|
15251
15264
|
granularity: c,
|
|
15252
15265
|
value: a,
|
|
15253
15266
|
onChange: r,
|
|
@@ -15380,7 +15393,7 @@ var $E = class {
|
|
|
15380
15393
|
}, e), t[10] = i, t[11] = e), g = r.map(e), t[7] = r, t[8] = i, t[9] = g;
|
|
15381
15394
|
} else g = t[9];
|
|
15382
15395
|
let _;
|
|
15383
|
-
t[12] !== c || t[13] !== u || t[14] !== f || t[15] !== p || t[16] !== m || t[17] !== h || t[18] !== g ? (_ = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15396
|
+
t[12] !== c || t[13] !== u || t[14] !== f || t[15] !== p || t[16] !== m || t[17] !== h || t[18] !== g ? (_ = /* @__PURE__ */ (0, Y.jsxs)(Ei, {
|
|
15384
15397
|
"data-testid": "marimo-plugin-dropdown",
|
|
15385
15398
|
onChange: p,
|
|
15386
15399
|
className: m,
|
|
@@ -15396,7 +15409,7 @@ var $E = class {
|
|
|
15396
15409
|
fullWidth: s,
|
|
15397
15410
|
children: _
|
|
15398
15411
|
}), t[20] = s, t[21] = u, t[22] = n, t[23] = _, t[24] = v) : v = t[24], v;
|
|
15399
|
-
}, nD = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15412
|
+
}, nD = J.lazy(() => import("./ConnectedDataExplorerComponent-C2d9ysUI.js")), rD = xS("marimo-data-explorer").withData(W({
|
|
15400
15413
|
label: U().nullish(),
|
|
15401
15414
|
data: U()
|
|
15402
15415
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(nD, {
|
|
@@ -15408,7 +15421,7 @@ var $E = class {
|
|
|
15408
15421
|
too_many_values: !1
|
|
15409
15422
|
})), sD = (e) => {
|
|
15410
15423
|
let t = (0, X.c)(4), { type: n } = e, r;
|
|
15411
|
-
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(Au, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(Mu, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(
|
|
15424
|
+
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(Au, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(Mu, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(si, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(ui, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(st, { size: 14 }), t[0] = n, t[1] = r);
|
|
15412
15425
|
let i = r, a;
|
|
15413
15426
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
15414
15427
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -15427,7 +15440,7 @@ var $E = class {
|
|
|
15427
15440
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
15428
15441
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: i }),
|
|
15429
15442
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: a }),
|
|
15430
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
15443
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
15431
15444
|
"data-testid": "marimo-plugin-data-frames-column-select",
|
|
15432
15445
|
value: e.value == null ? e.value : JSON.stringify(e.value),
|
|
15433
15446
|
onValueChange: (t) => {
|
|
@@ -15436,11 +15449,11 @@ var $E = class {
|
|
|
15436
15449
|
},
|
|
15437
15450
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
15438
15451
|
className: "flex items-center gap-1",
|
|
15439
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15452
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
15440
15453
|
className: "min-w-[180px]",
|
|
15441
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15454
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "--" })
|
|
15442
15455
|
}), /* @__PURE__ */ (0, Y.jsx)(pD, {})]
|
|
15443
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
15456
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Di, { children: /* @__PURE__ */ (0, Y.jsxs)(ki, { children: [[...r.entries()].map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
15444
15457
|
value: JSON.stringify(e),
|
|
15445
15458
|
children: /* @__PURE__ */ (0, Y.jsxs)("span", {
|
|
15446
15459
|
className: "flex items-center gap-2 flex-1",
|
|
@@ -15460,7 +15473,7 @@ var $E = class {
|
|
|
15460
15473
|
})
|
|
15461
15474
|
]
|
|
15462
15475
|
})
|
|
15463
|
-
}, e)), r.size === 0 && /* @__PURE__ */ (0, Y.jsx)(
|
|
15476
|
+
}, e)), r.size === 0 && /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
15464
15477
|
disabled: !0,
|
|
15465
15478
|
value: "--",
|
|
15466
15479
|
children: "No columns"
|
|
@@ -15497,7 +15510,7 @@ var $E = class {
|
|
|
15497
15510
|
return /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
15498
15511
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: a }),
|
|
15499
15512
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: c }),
|
|
15500
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15513
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(vn, {
|
|
15501
15514
|
className: "min-w-[180px]",
|
|
15502
15515
|
placeholder: u,
|
|
15503
15516
|
displayValue: String,
|
|
@@ -15535,7 +15548,7 @@ var $E = class {
|
|
|
15535
15548
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(yh, { children: [
|
|
15536
15549
|
/* @__PURE__ */ (0, Y.jsx)(bh, { children: r }),
|
|
15537
15550
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: i }),
|
|
15538
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15551
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(ta, {
|
|
15539
15552
|
...e,
|
|
15540
15553
|
value: e.value,
|
|
15541
15554
|
onValueChange: e.onChange,
|
|
@@ -15555,14 +15568,14 @@ var $E = class {
|
|
|
15555
15568
|
children: r
|
|
15556
15569
|
}),
|
|
15557
15570
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: i }),
|
|
15558
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15571
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsx)(vn, {
|
|
15559
15572
|
className: "min-w-[180px]",
|
|
15560
15573
|
placeholder: a,
|
|
15561
15574
|
multiple: !1,
|
|
15562
15575
|
displayValue: (e) => e,
|
|
15563
15576
|
value: Array.isArray(e.value) ? e.value[0] : e.value,
|
|
15564
15577
|
onValueChange: e.onChange,
|
|
15565
|
-
children: d.map((e) => /* @__PURE__ */ (0, Y.jsx)(
|
|
15578
|
+
children: d.map((e) => /* @__PURE__ */ (0, Y.jsx)(En, {
|
|
15566
15579
|
value: e,
|
|
15567
15580
|
children: e
|
|
15568
15581
|
}, e))
|
|
@@ -15665,14 +15678,14 @@ var $E = class {
|
|
|
15665
15678
|
children: " "
|
|
15666
15679
|
}),
|
|
15667
15680
|
/* @__PURE__ */ (0, Y.jsx)(Sh, { children: o }),
|
|
15668
|
-
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
15681
|
+
/* @__PURE__ */ (0, Y.jsx)(xh, { children: /* @__PURE__ */ (0, Y.jsxs)(ji, {
|
|
15669
15682
|
"data-testid": "marimo-plugin-data-frames-filter-operator-select",
|
|
15670
15683
|
value: t.value,
|
|
15671
15684
|
onValueChange: t.onChange,
|
|
15672
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15685
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ai, {
|
|
15673
15686
|
className: "min-w-[140px]",
|
|
15674
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15675
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
15687
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ci, { placeholder: "--" })
|
|
15688
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Di, { children: /* @__PURE__ */ (0, Y.jsx)(ki, { children: i.map(yD) }) })]
|
|
15676
15689
|
}) }),
|
|
15677
15690
|
/* @__PURE__ */ (0, Y.jsx)(Ch, {})
|
|
15678
15691
|
] });
|
|
@@ -15715,7 +15728,7 @@ var $E = class {
|
|
|
15715
15728
|
];
|
|
15716
15729
|
function _D(e) {
|
|
15717
15730
|
let [t, n] = e;
|
|
15718
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
15731
|
+
return /* @__PURE__ */ (0, Y.jsx)(En, {
|
|
15719
15732
|
value: t,
|
|
15720
15733
|
children: /* @__PURE__ */ (0, Y.jsxs)("span", {
|
|
15721
15734
|
className: "flex items-center gap-2 flex-1",
|
|
@@ -15742,9 +15755,9 @@ function vD(e) {
|
|
|
15742
15755
|
return t === "column_id";
|
|
15743
15756
|
}
|
|
15744
15757
|
function yD(e) {
|
|
15745
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
15758
|
+
return /* @__PURE__ */ (0, Y.jsx)(wi, {
|
|
15746
15759
|
value: e,
|
|
15747
|
-
children:
|
|
15760
|
+
children: Si.startCase(e)
|
|
15748
15761
|
}, e);
|
|
15749
15762
|
}
|
|
15750
15763
|
//#endregion
|
|
@@ -15886,7 +15899,7 @@ var xD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
15886
15899
|
"to automatically apply transformations."
|
|
15887
15900
|
] })]
|
|
15888
15901
|
}),
|
|
15889
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
15902
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ct, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
15890
15903
|
})]
|
|
15891
15904
|
})
|
|
15892
15905
|
]
|
|
@@ -15904,7 +15917,7 @@ var xD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
15904
15917
|
className: l("flex flex-row min-h-[40px] items-center px-2 cursor-pointer hover:bg-accent/50 text-sm overflow-hidden hover-actions-parent border border-muted border-l-2 border-l-transparent", { "border-l-primary bg-accent text-accent-foreground": r === t }),
|
|
15905
15918
|
children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
15906
15919
|
className: "grow text-ellipsis",
|
|
15907
|
-
children:
|
|
15920
|
+
children: Si.startCase(e.type)
|
|
15908
15921
|
}), /* @__PURE__ */ (0, Y.jsx)(P, {
|
|
15909
15922
|
className: "w-3 h-3 hover-action text-muted-foreground hover:text-destructive",
|
|
15910
15923
|
onClick: (e) => {
|
|
@@ -15941,24 +15954,24 @@ var xD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
15941
15954
|
}), t[14] = c, t[15] = d, t[16] = f) : f = t[16], f;
|
|
15942
15955
|
}, CD = (e) => {
|
|
15943
15956
|
let t = (0, X.c)(12), { onAdd: n, children: r } = e, i;
|
|
15944
|
-
t[0] === r ? i = t[1] : (i = /* @__PURE__ */ (0, Y.jsx)(
|
|
15957
|
+
t[0] === r ? i = t[1] : (i = /* @__PURE__ */ (0, Y.jsx)(qi, {
|
|
15945
15958
|
asChild: !0,
|
|
15946
15959
|
children: r
|
|
15947
15960
|
}), t[0] = r, t[1] = i);
|
|
15948
15961
|
let a, o;
|
|
15949
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
15962
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, Y.jsx)(Ui, { children: "Add Transform" }), o = /* @__PURE__ */ (0, Y.jsx)(aa, {}), t[2] = a, t[3] = o) : (a = t[2], o = t[3]);
|
|
15950
15963
|
let s;
|
|
15951
15964
|
t[4] === n ? s = t[5] : (s = Object.values(jC.options).map((e) => {
|
|
15952
15965
|
let t = Ph(e), r = wD[t.value];
|
|
15953
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
15966
|
+
return /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
15954
15967
|
onSelect: (t) => {
|
|
15955
15968
|
t.stopPropagation(), n(e);
|
|
15956
15969
|
},
|
|
15957
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(r, { className: "w-3.5 h-3.5 mr-2" }), /* @__PURE__ */ (0, Y.jsx)("span", { children:
|
|
15970
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(r, { className: "w-3.5 h-3.5 mr-2" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: Si.startCase(t.value) })]
|
|
15958
15971
|
}, t.value);
|
|
15959
15972
|
}), t[4] = n, t[5] = s);
|
|
15960
15973
|
let c;
|
|
15961
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
15974
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, Y.jsx)(Zi, {
|
|
15962
15975
|
onSelect: TD,
|
|
15963
15976
|
children: /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
15964
15977
|
className: "underline text-primary text-xs cursor-pointer",
|
|
@@ -15966,23 +15979,23 @@ var xD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
15966
15979
|
})
|
|
15967
15980
|
}, "_request_"), t[6] = c) : c = t[6];
|
|
15968
15981
|
let l;
|
|
15969
|
-
t[7] === s ? l = t[8] : (l = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15982
|
+
t[7] === s ? l = t[8] : (l = /* @__PURE__ */ (0, Y.jsxs)(ea, {
|
|
15970
15983
|
className: "w-56",
|
|
15971
15984
|
children: [
|
|
15972
15985
|
a,
|
|
15973
15986
|
o,
|
|
15974
|
-
/* @__PURE__ */ (0, Y.jsxs)(
|
|
15987
|
+
/* @__PURE__ */ (0, Y.jsxs)(ia, { children: [s, c] })
|
|
15975
15988
|
]
|
|
15976
15989
|
}), t[7] = s, t[8] = l);
|
|
15977
15990
|
let u;
|
|
15978
|
-
return t[9] !== i || t[10] !== l ? (u = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15991
|
+
return t[9] !== i || t[10] !== l ? (u = /* @__PURE__ */ (0, Y.jsxs)(oa, {
|
|
15979
15992
|
modal: !1,
|
|
15980
15993
|
children: [i, l]
|
|
15981
15994
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
15982
15995
|
}, wD = {
|
|
15983
|
-
aggregate:
|
|
15984
|
-
column_conversion:
|
|
15985
|
-
filter_rows:
|
|
15996
|
+
aggregate: jt,
|
|
15997
|
+
column_conversion: nt,
|
|
15998
|
+
filter_rows: Sr,
|
|
15986
15999
|
group_by: Ku,
|
|
15987
16000
|
rename_column: La,
|
|
15988
16001
|
select_columns: nd,
|
|
@@ -15992,7 +16005,7 @@ var xD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
15992
16005
|
explode_columns: ju,
|
|
15993
16006
|
expand_dict: Lu,
|
|
15994
16007
|
unique: Fu,
|
|
15995
|
-
pivot:
|
|
16008
|
+
pivot: Tt
|
|
15996
16009
|
};
|
|
15997
16010
|
function TD(e) {
|
|
15998
16011
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
@@ -16078,27 +16091,27 @@ var ED = xS("marimo-dataframe").withData(W({
|
|
|
16078
16091
|
c
|
|
16079
16092
|
], t[13] = v, t[14] = c, t[15] = R, t[16] = ee) : ee = t[16], (0, J.useEffect)(L, ee);
|
|
16080
16093
|
let z;
|
|
16081
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ (0, Y.jsxs)(
|
|
16094
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
16082
16095
|
value: "transform",
|
|
16083
16096
|
className: "text-xs py-1",
|
|
16084
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16097
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(jt, { className: "w-3 h-3 mr-2" }), "Transform"]
|
|
16085
16098
|
}), t[17] = z) : z = t[17];
|
|
16086
16099
|
let te;
|
|
16087
|
-
t[18] === D ? te = t[19] : (te = D && /* @__PURE__ */ (0, Y.jsxs)(
|
|
16100
|
+
t[18] === D ? te = t[19] : (te = D && /* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
16088
16101
|
value: "python-code",
|
|
16089
16102
|
className: "text-xs py-1",
|
|
16090
16103
|
children: [/* @__PURE__ */ (0, Y.jsx)(Nu, { className: "w-3 h-3 mr-2" }), "Python Code"]
|
|
16091
16104
|
}), t[18] = D, t[19] = te);
|
|
16092
16105
|
let B;
|
|
16093
|
-
t[20] === O ? B = t[21] : (B = O && /* @__PURE__ */ (0, Y.jsxs)(
|
|
16106
|
+
t[20] === O ? B = t[21] : (B = O && /* @__PURE__ */ (0, Y.jsxs)(Mn, {
|
|
16094
16107
|
value: "sql-code",
|
|
16095
16108
|
className: "text-xs py-1",
|
|
16096
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16109
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Qe, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
16097
16110
|
}), t[20] = O, t[21] = B);
|
|
16098
16111
|
let re;
|
|
16099
16112
|
t[22] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = re) : re = t[22];
|
|
16100
16113
|
let ie;
|
|
16101
|
-
t[23] !== te || t[24] !== B ? (ie = /* @__PURE__ */ (0, Y.jsxs)(
|
|
16114
|
+
t[23] !== te || t[24] !== B ? (ie = /* @__PURE__ */ (0, Y.jsxs)(An, {
|
|
16102
16115
|
className: "h-8",
|
|
16103
16116
|
children: [
|
|
16104
16117
|
z,
|
|
@@ -16119,7 +16132,7 @@ var ED = xS("marimo-dataframe").withData(W({
|
|
|
16119
16132
|
ds(e, s) || (c(e), j(e));
|
|
16120
16133
|
}, t[31] = c, t[32] = s, t[33] = se) : se = t[33];
|
|
16121
16134
|
let ce;
|
|
16122
|
-
t[34] !== E || t[35] !== n || t[36] !== u || t[37] !== A || t[38] !== o || t[39] !== se ? (ce = /* @__PURE__ */ (0, Y.jsx)(
|
|
16135
|
+
t[34] !== E || t[35] !== n || t[36] !== u || t[37] !== A || t[38] !== o || t[39] !== se ? (ce = /* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
16123
16136
|
value: "transform",
|
|
16124
16137
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16125
16138
|
children: /* @__PURE__ */ (0, Y.jsx)(xD, {
|
|
@@ -16134,7 +16147,7 @@ var ED = xS("marimo-dataframe").withData(W({
|
|
|
16134
16147
|
})
|
|
16135
16148
|
}), t[34] = E, t[35] = n, t[36] = u, t[37] = A, t[38] = o, t[39] = se, t[40] = ce) : ce = t[40];
|
|
16136
16149
|
let V;
|
|
16137
|
-
t[41] === D ? V = t[42] : (V = D && /* @__PURE__ */ (0, Y.jsx)(
|
|
16150
|
+
t[41] === D ? V = t[42] : (V = D && /* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
16138
16151
|
value: "python-code",
|
|
16139
16152
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16140
16153
|
children: /* @__PURE__ */ (0, Y.jsx)(xw, {
|
|
@@ -16145,7 +16158,7 @@ var ED = xS("marimo-dataframe").withData(W({
|
|
|
16145
16158
|
})
|
|
16146
16159
|
}), t[41] = D, t[42] = V);
|
|
16147
16160
|
let le;
|
|
16148
|
-
t[43] === O ? le = t[44] : (le = O && /* @__PURE__ */ (0, Y.jsx)(
|
|
16161
|
+
t[43] === O ? le = t[44] : (le = O && /* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
16149
16162
|
value: "sql-code",
|
|
16150
16163
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16151
16164
|
children: /* @__PURE__ */ (0, Y.jsx)(xw, {
|
|
@@ -16156,7 +16169,7 @@ var ED = xS("marimo-dataframe").withData(W({
|
|
|
16156
16169
|
})
|
|
16157
16170
|
}), t[43] = O, t[44] = le);
|
|
16158
16171
|
let ue;
|
|
16159
|
-
t[45] !== P || t[46] !== oe || t[47] !== ce || t[48] !== V || t[49] !== le ? (ue = /* @__PURE__ */ (0, Y.jsxs)(
|
|
16172
|
+
t[45] !== P || t[46] !== oe || t[47] !== ce || t[48] !== V || t[49] !== le ? (ue = /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
16160
16173
|
defaultValue: "transform",
|
|
16161
16174
|
onValueChange: P,
|
|
16162
16175
|
children: [
|
|
@@ -16268,12 +16281,12 @@ var MD = {
|
|
|
16268
16281
|
python: Ru,
|
|
16269
16282
|
code: Ru,
|
|
16270
16283
|
json: Lu,
|
|
16271
|
-
text:
|
|
16284
|
+
text: Ye,
|
|
16272
16285
|
image: qu,
|
|
16273
16286
|
audio: zu,
|
|
16274
16287
|
video: Bu,
|
|
16275
16288
|
data: Vu,
|
|
16276
|
-
pdf:
|
|
16289
|
+
pdf: Ye,
|
|
16277
16290
|
zip: Hu,
|
|
16278
16291
|
unknown: Da
|
|
16279
16292
|
};
|
|
@@ -16333,7 +16346,7 @@ function ID(e) {
|
|
|
16333
16346
|
let s = !r, c;
|
|
16334
16347
|
t[2] === s ? c = t[3] : (c = l({ "hidden group-hover:flex group-focus:flex": s }), t[2] = s, t[3] = c);
|
|
16335
16348
|
let u;
|
|
16336
|
-
t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, Y.jsx)(
|
|
16349
|
+
t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
16337
16350
|
checked: r,
|
|
16338
16351
|
"aria-label": e,
|
|
16339
16352
|
tabIndex: -1,
|
|
@@ -16360,7 +16373,7 @@ function ID(e) {
|
|
|
16360
16373
|
}), t[18] = a, t[19] = s), s;
|
|
16361
16374
|
}
|
|
16362
16375
|
var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: c }) => {
|
|
16363
|
-
let [u, d] =
|
|
16376
|
+
let [u, d] = yn(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(!1), [g, v] = (0, J.useState)(0), y = (0, J.useRef)([]), b = (0, J.useRef)(null), S = (0, J.useRef)(!1), C = c.closest(`[${yt}]`)?.getAttribute(yt), { data: w, error: T, isPending: D } = Ns(() => s({ path: u }), [
|
|
16364
16377
|
u,
|
|
16365
16378
|
C,
|
|
16366
16379
|
s
|
|
@@ -16392,7 +16405,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16392
16405
|
kind: "danger",
|
|
16393
16406
|
children: T.message
|
|
16394
16407
|
});
|
|
16395
|
-
let L =
|
|
16408
|
+
let L = vt.guessDeliminator(n).deliminator, R = e.map((e) => /* @__PURE__ */ (0, Y.jsx)("li", { children: e.path }, e.id));
|
|
16396
16409
|
function ee(e) {
|
|
16397
16410
|
if (f) return;
|
|
16398
16411
|
if (p(!0), e === FD) {
|
|
@@ -16400,7 +16413,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16400
16413
|
p(!1);
|
|
16401
16414
|
return;
|
|
16402
16415
|
}
|
|
16403
|
-
e =
|
|
16416
|
+
e = ke.dirname(u), e === "" && (e = L);
|
|
16404
16417
|
}
|
|
16405
16418
|
let t = e.length < n.length;
|
|
16406
16419
|
if (o && t) {
|
|
@@ -16430,7 +16443,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16430
16443
|
M.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
16431
16444
|
}
|
|
16432
16445
|
function B() {
|
|
16433
|
-
t(e.filter((e) =>
|
|
16446
|
+
t(e.filter((e) => ke.dirname(e.path) !== u));
|
|
16434
16447
|
}
|
|
16435
16448
|
function re() {
|
|
16436
16449
|
let n = [];
|
|
@@ -16500,14 +16513,14 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16500
16513
|
delimiter: L,
|
|
16501
16514
|
initialPath: n,
|
|
16502
16515
|
restrictNavigation: o
|
|
16503
|
-
}), ce = r === "all" ?
|
|
16516
|
+
}), ce = r === "all" ? $e.of("file", "folder") : r === "directory" ? $e.of("folder") : $e.of("file");
|
|
16504
16517
|
return /* @__PURE__ */ (0, Y.jsxs)("div", { children: [
|
|
16505
16518
|
T && /* @__PURE__ */ (0, Y.jsx)(qo, {
|
|
16506
16519
|
kind: "danger",
|
|
16507
16520
|
children: T.message
|
|
16508
16521
|
}),
|
|
16509
16522
|
(() => {
|
|
16510
|
-
let e = a ?? `Select ${ce.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(
|
|
16523
|
+
let e = a ?? `Select ${ce.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Zo, { children: E({ html: e }) });
|
|
16511
16524
|
return i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16512
16525
|
className: "flex items-center justify-between border px-2",
|
|
16513
16526
|
children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -16521,7 +16534,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16521
16534
|
}) })]
|
|
16522
16535
|
}) : t;
|
|
16523
16536
|
})(),
|
|
16524
|
-
/* @__PURE__ */ (0, Y.jsx)(
|
|
16537
|
+
/* @__PURE__ */ (0, Y.jsx)(Ei, {
|
|
16525
16538
|
className: "mt-2 w-full",
|
|
16526
16539
|
placeholder: u,
|
|
16527
16540
|
value: u,
|
|
@@ -16544,13 +16557,13 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16544
16557
|
className: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",
|
|
16545
16558
|
role: "status",
|
|
16546
16559
|
children: [/* @__PURE__ */ (0, Y.jsx)(ne, { size: "small" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "Listing files..." })]
|
|
16547
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
16560
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Pr, {
|
|
16548
16561
|
ref: b,
|
|
16549
16562
|
className: "cursor-pointer table-fixed",
|
|
16550
16563
|
role: "grid",
|
|
16551
16564
|
"aria-label": "File browser",
|
|
16552
16565
|
"aria-multiselectable": i,
|
|
16553
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16566
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ur, { children: ie.map((e, t) => /* @__PURE__ */ (0, Y.jsxs)(Gr, {
|
|
16554
16567
|
role: "row",
|
|
16555
16568
|
ref: (e) => {
|
|
16556
16569
|
y.current[t] = e;
|
|
@@ -16561,7 +16574,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16561
16574
|
className: l("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", { "bg-primary/25 hover:bg-primary/35": e.isSelected }),
|
|
16562
16575
|
"aria-selected": e.canSelect ? e.isSelected : void 0,
|
|
16563
16576
|
onClick: e.onPrimary,
|
|
16564
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16577
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Cr, {
|
|
16565
16578
|
role: "gridcell",
|
|
16566
16579
|
className: "w-[50px] pl-4",
|
|
16567
16580
|
children: /* @__PURE__ */ (0, Y.jsx)(ID, {
|
|
@@ -16571,7 +16584,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16571
16584
|
Icon: e.Icon,
|
|
16572
16585
|
onSelect: () => e.onToggleSelect?.()
|
|
16573
16586
|
})
|
|
16574
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
16587
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Cr, {
|
|
16575
16588
|
role: "gridcell",
|
|
16576
16589
|
children: e.name
|
|
16577
16590
|
})]
|
|
@@ -19278,7 +19291,7 @@ var Wk = (e) => {
|
|
|
19278
19291
|
variant: "secondary",
|
|
19279
19292
|
onClick: n,
|
|
19280
19293
|
className: "w-[50px]",
|
|
19281
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
19294
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ji, {
|
|
19282
19295
|
className: l("w-6 h-6 border border-input rounded-full"),
|
|
19283
19296
|
strokeWidth: 1.5,
|
|
19284
19297
|
fill: "var(--red-9)"
|
|
@@ -19294,7 +19307,7 @@ var Wk = (e) => {
|
|
|
19294
19307
|
className: "w-5 h-5 rounded-sm",
|
|
19295
19308
|
fill: "var(--red-9)",
|
|
19296
19309
|
strokeWidth: 1.5
|
|
19297
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
19310
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Ji, {
|
|
19298
19311
|
className: l("w-6 h-6 absolute opacity-20 animate-ping"),
|
|
19299
19312
|
fill: "var(--red-9)",
|
|
19300
19313
|
style: { animationDuration: "1.5s" },
|
|
@@ -19324,7 +19337,7 @@ function Gk() {
|
|
|
19324
19337
|
minimumFractionDigits: 1,
|
|
19325
19338
|
maximumFractionDigits: 1
|
|
19326
19339
|
}, e[0] = i) : i = e[0];
|
|
19327
|
-
let a =
|
|
19340
|
+
let a = Xo(i), o;
|
|
19328
19341
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
19329
19342
|
r.current = window.setInterval(() => {
|
|
19330
19343
|
n(Kk);
|
|
@@ -19380,7 +19393,7 @@ function qk(e) {
|
|
|
19380
19393
|
let v = ns(_), y;
|
|
19381
19394
|
t[8] === f ? y = t[9] : (y = () => {
|
|
19382
19395
|
o.current?.stream.getTracks().forEach(Jk), o.current?.stop(), f.stop();
|
|
19383
|
-
}, t[8] = f, t[9] = y),
|
|
19396
|
+
}, t[8] = f, t[9] = y), li(y);
|
|
19384
19397
|
let b;
|
|
19385
19398
|
return t[10] !== s || t[11] !== v || t[12] !== u || t[13] !== i || t[14] !== m || t[15] !== g || t[16] !== f.time ? (b = {
|
|
19386
19399
|
start: m,
|
|
@@ -20015,7 +20028,7 @@ var yA = (e) => {
|
|
|
20015
20028
|
else if (e.type === "binary" && n && n.length > 0) t.receiveBinary(n[0]);
|
|
20016
20029
|
else if (e.type === "download" && n && n.length > 0) {
|
|
20017
20030
|
let t = e.format || "png", r = n[0], i = r.buffer.slice(r.byteOffset, r.byteOffset + r.byteLength);
|
|
20018
|
-
|
|
20031
|
+
Qr(new Blob([i], { type: `image/${t}` }), `figure.${t}`);
|
|
20019
20032
|
}
|
|
20020
20033
|
}
|
|
20021
20034
|
};
|
|
@@ -20103,14 +20116,14 @@ var yA = (e) => {
|
|
|
20103
20116
|
disabled: a,
|
|
20104
20117
|
onChange: e.setValue
|
|
20105
20118
|
}, t[2] = i, t[3] = e.setValue, t[4] = a, t[5] = o) : o = t[5];
|
|
20106
|
-
let { value: s, onChange: c } =
|
|
20119
|
+
let { value: s, onChange: c } = ra(o), u;
|
|
20107
20120
|
t[6] === c ? u = t[7] : (u = (e) => {
|
|
20108
20121
|
c(SA(e));
|
|
20109
20122
|
}, t[6] = c, t[7] = u);
|
|
20110
20123
|
let d = u, f = e.label, p = n, m = e.fullWidth, h = e.fullWidth && "w-full", g;
|
|
20111
20124
|
t[8] === h ? g = t[9] : (g = l("min-w-[3em]", h), t[8] = h, t[9] = g);
|
|
20112
20125
|
let _ = e.start ?? void 0, v = e.stop ?? void 0, y = s ?? NaN, b = e.label || "Number input", x;
|
|
20113
|
-
t[10] !== d || t[11] !== n || t[12] !== e.disabled || t[13] !== e.step || t[14] !== v || t[15] !== y || t[16] !== b || t[17] !== g || t[18] !== _ ? (x = /* @__PURE__ */ (0, Y.jsx)(
|
|
20126
|
+
t[10] !== d || t[11] !== n || t[12] !== e.disabled || t[13] !== e.step || t[14] !== v || t[15] !== y || t[16] !== b || t[17] !== g || t[18] !== _ ? (x = /* @__PURE__ */ (0, Y.jsx)(Hi, {
|
|
20114
20127
|
"data-testid": "marimo-plugin-number-input",
|
|
20115
20128
|
className: g,
|
|
20116
20129
|
minValue: _,
|
|
@@ -20581,7 +20594,7 @@ function fj(e) {
|
|
|
20581
20594
|
}, t[5] = n, t[6] = p);
|
|
20582
20595
|
let m;
|
|
20583
20596
|
t[7] !== a || t[8] !== n ? (m = [n, a], t[7] = a, t[8] = n, t[9] = m) : m = t[9], (0, J.useEffect)(p, m);
|
|
20584
|
-
let h =
|
|
20597
|
+
let h = vr(s) ?? s, g, _;
|
|
20585
20598
|
t[10] !== s.layout || t[11] !== h.layout ? (g = () => {
|
|
20586
20599
|
f((e) => dj(s.layout, h.layout, e));
|
|
20587
20600
|
}, _ = [s.layout, h.layout], t[10] = s.layout, t[11] = h.layout, t[12] = g, t[13] = _) : (g = t[12], _ = t[13]), (0, J.useEffect)(g, _);
|
|
@@ -20770,11 +20783,12 @@ var yj = class {
|
|
|
20770
20783
|
if (t[2] !== n || t[3] !== e.options) {
|
|
20771
20784
|
let r;
|
|
20772
20785
|
t[5] === n ? r = t[6] : (r = (e, t) => /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
20773
|
-
className: "flex items-
|
|
20774
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
20786
|
+
className: "flex items-start space-x-2",
|
|
20787
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Yn, {
|
|
20775
20788
|
value: e,
|
|
20776
|
-
id: `${n}-${t.toString()}
|
|
20777
|
-
|
|
20789
|
+
id: `${n}-${t.toString()}`,
|
|
20790
|
+
className: "shrink-0"
|
|
20791
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Zo, {
|
|
20778
20792
|
htmlFor: `${n}-${t.toString()}`,
|
|
20779
20793
|
className: "text-sm font-normal",
|
|
20780
20794
|
children: e
|
|
@@ -20782,7 +20796,7 @@ var yj = class {
|
|
|
20782
20796
|
}, t), t[5] = n, t[6] = r), d = e.options.map(r), t[2] = n, t[3] = e.options, t[4] = d;
|
|
20783
20797
|
} else d = t[4];
|
|
20784
20798
|
let f;
|
|
20785
|
-
t[7] !== e.disabled || t[8] !== e.setValue || t[9] !== a || t[10] !== c || t[11] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)(
|
|
20799
|
+
t[7] !== e.disabled || t[8] !== e.setValue || t[9] !== a || t[10] !== c || t[11] !== d ? (f = /* @__PURE__ */ (0, Y.jsx)(Gn, {
|
|
20786
20800
|
"data-testid": "marimo-plugin-radio",
|
|
20787
20801
|
value: a,
|
|
20788
20802
|
onValueChange: o,
|
|
@@ -20801,7 +20815,7 @@ var yj = class {
|
|
|
20801
20815
|
}, xj = J.forwardRef((e, t) => {
|
|
20802
20816
|
let n = (0, X.c)(56), r, i, a;
|
|
20803
20817
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, valueMap: a, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
20804
|
-
let [o, s] = sw(!1), { locale: c } =
|
|
20818
|
+
let [o, s] = sw(!1), { locale: c } = Yo(), u = J.useRef(!1), d = J.useRef(0), f = J.useRef(0), p;
|
|
20805
20819
|
n[4] === Symbol.for("react.memo_cache_sentinel") ? (p = [], n[4] = p) : p = n[4];
|
|
20806
20820
|
let m = J.useRef(p), h;
|
|
20807
20821
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (h = [], n[5] = h) : h = n[5];
|
|
@@ -20866,7 +20880,7 @@ var yj = class {
|
|
|
20866
20880
|
})
|
|
20867
20881
|
}), n[23] = s.setFalse, n[24] = s.setTrue, n[25] = M) : M = n[25];
|
|
20868
20882
|
let N;
|
|
20869
|
-
n[26] !== c || n[27] !== i.value || n[28] !== a ? (N = i.value != null && i.value.length === 2 && /* @__PURE__ */ (0, Y.jsx)(ue, { children:
|
|
20883
|
+
n[26] !== c || n[27] !== i.value || n[28] !== a ? (N = i.value != null && i.value.length === 2 && /* @__PURE__ */ (0, Y.jsx)(ue, { children: zi(a(i.value[0]), { locale: c }) }, i.value[0]), n[26] = c, n[27] = i.value, n[28] = a, n[29] = N) : N = n[29];
|
|
20870
20884
|
let P;
|
|
20871
20885
|
n[30] === N ? P = n[31] : (P = /* @__PURE__ */ (0, Y.jsx)(pe, { children: N }), n[30] = N, n[31] = P);
|
|
20872
20886
|
let F;
|
|
@@ -20888,7 +20902,7 @@ var yj = class {
|
|
|
20888
20902
|
})
|
|
20889
20903
|
}), n[36] = s.setFalse, n[37] = s.setTrue, n[38] = I) : I = n[38];
|
|
20890
20904
|
let L;
|
|
20891
|
-
n[39] !== c || n[40] !== i.value || n[41] !== a ? (L = i.value != null && i.value.length === 2 && /* @__PURE__ */ (0, Y.jsx)(ue, { children:
|
|
20905
|
+
n[39] !== c || n[40] !== i.value || n[41] !== a ? (L = i.value != null && i.value.length === 2 && /* @__PURE__ */ (0, Y.jsx)(ue, { children: zi(a(i.value[1]), { locale: c }) }, i.value[1]), n[39] = c, n[40] = i.value, n[41] = a, n[42] = L) : L = n[42];
|
|
20892
20906
|
let R;
|
|
20893
20907
|
n[43] === L ? R = n[44] : (R = /* @__PURE__ */ (0, Y.jsx)(pe, { children: L }), n[43] = L, n[44] = R);
|
|
20894
20908
|
let ee;
|
|
@@ -20937,7 +20951,7 @@ var Sj = class {
|
|
|
20937
20951
|
});
|
|
20938
20952
|
}
|
|
20939
20953
|
}, Cj = (e) => {
|
|
20940
|
-
let t = (0, X.c)(50), { label: n, setValue: r, value: i, start: a, stop: o, step: s, debounce: c, orientation: u, showValue: d, fullWidth: f, disabled: p, valueMap: m } = e, h = (0, J.useId)(), { locale: g } =
|
|
20954
|
+
let t = (0, X.c)(50), { label: n, setValue: r, value: i, start: a, stop: o, step: s, debounce: c, orientation: u, showValue: d, fullWidth: f, disabled: p, valueMap: m } = e, h = (0, J.useId)(), { locale: g } = Yo(), [_, v] = (0, J.useState)(i), y, b;
|
|
20941
20955
|
t[0] === i ? (y = t[1], b = t[2]) : (y = () => {
|
|
20942
20956
|
v(i);
|
|
20943
20957
|
}, b = [i], t[0] = i, t[1] = y, t[2] = b), (0, J.useEffect)(y, b);
|
|
@@ -20978,7 +20992,7 @@ var Sj = class {
|
|
|
20978
20992
|
let P;
|
|
20979
20993
|
t[34] !== _ || t[35] !== g || t[36] !== d || t[37] !== m ? (P = d && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
20980
20994
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
20981
|
-
children: `${
|
|
20995
|
+
children: `${zi(m(_[0]), { locale: g })}, ${zi(m(_[1]), { locale: g })}`
|
|
20982
20996
|
}), t[34] = _, t[35] = g, t[36] = d, t[37] = m, t[38] = P) : P = t[38];
|
|
20983
20997
|
let F;
|
|
20984
20998
|
t[39] !== N || t[40] !== P || t[41] !== E ? (F = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -21134,7 +21148,7 @@ var Sj = class {
|
|
|
21134
21148
|
className: l(s, "border mb-0 rounded", c && "border-r-0 rounded-tr-none rounded-br-none"),
|
|
21135
21149
|
onClick: o,
|
|
21136
21150
|
children: /* @__PURE__ */ (0, Y.jsx)(Zu, { className: l("w-3.5 h-3.5", i && "animate-spin") })
|
|
21137
|
-
}), /* @__PURE__ */ (0, Y.jsxs)(
|
|
21151
|
+
}), /* @__PURE__ */ (0, Y.jsxs)(Ei, {
|
|
21138
21152
|
"data-testid": "marimo-plugin-refresh-select",
|
|
21139
21153
|
onChange: (e) => {
|
|
21140
21154
|
r(e.target.value);
|
|
@@ -21196,13 +21210,13 @@ function Nj(e) {
|
|
|
21196
21210
|
r > 0 && r < n && (n = r);
|
|
21197
21211
|
}
|
|
21198
21212
|
(!Number.isFinite(n) || n <= 0) && (n = 1);
|
|
21199
|
-
let r =
|
|
21213
|
+
let r = sa(e, n);
|
|
21200
21214
|
return {
|
|
21201
21215
|
steps: e,
|
|
21202
21216
|
fractionDigits: r,
|
|
21203
|
-
minValue:
|
|
21204
|
-
maxValue:
|
|
21205
|
-
inputStep:
|
|
21217
|
+
minValue: Fi(t[0], r),
|
|
21218
|
+
maxValue: Fi(t[t.length - 1], r),
|
|
21219
|
+
inputStep: Fi(n, r),
|
|
21206
21220
|
formatOptions: {
|
|
21207
21221
|
minimumFractionDigits: 0,
|
|
21208
21222
|
maximumFractionDigits: r
|
|
@@ -21210,7 +21224,7 @@ function Nj(e) {
|
|
|
21210
21224
|
};
|
|
21211
21225
|
}
|
|
21212
21226
|
var Pj = (e) => {
|
|
21213
|
-
let t = (0, X.c)(64), { label: n, setValue: r, value: i, start: a, stop: o, step: s, steps: c, debounce: u, orientation: d, showValue: f, fullWidth: p, valueMap: m, includeInput: h, disabled: g } = e, _ = (0, J.useId)(), { locale: v } =
|
|
21227
|
+
let t = (0, X.c)(64), { label: n, setValue: r, value: i, start: a, stop: o, step: s, steps: c, debounce: u, orientation: d, showValue: f, fullWidth: p, valueMap: m, includeInput: h, disabled: g } = e, _ = (0, J.useId)(), { locale: v } = Yo(), [y, b] = (0, J.useState)(i), x, S;
|
|
21214
21228
|
t[0] === i ? (x = t[1], S = t[2]) : (x = () => {
|
|
21215
21229
|
b(i);
|
|
21216
21230
|
}, S = [i], t[0] = i, t[1] = x, t[2] = S), (0, J.useEffect)(x, S);
|
|
@@ -21224,7 +21238,7 @@ var Pj = (e) => {
|
|
|
21224
21238
|
b(0), r(0);
|
|
21225
21239
|
return;
|
|
21226
21240
|
}
|
|
21227
|
-
let i =
|
|
21241
|
+
let i = Fi(e, n), a = Mj(t, i), o = Fi(t[y] ?? t[0], n);
|
|
21228
21242
|
a === y && i !== o && (a = i > o ? Math.min(y + 1, t.length - 1) : Math.max(y - 1, 0)), b(a), r(a);
|
|
21229
21243
|
return;
|
|
21230
21244
|
}
|
|
@@ -21233,7 +21247,7 @@ var Pj = (e) => {
|
|
|
21233
21247
|
}, t[5] = y, t[6] = r, t[7] = a, t[8] = w, t[9] = T) : T = t[9];
|
|
21234
21248
|
let E = T, D;
|
|
21235
21249
|
t[10] !== y || t[11] !== a || t[12] !== s || t[13] !== w || t[14] !== o || t[15] !== m ? (D = w ? {
|
|
21236
|
-
value:
|
|
21250
|
+
value: Fi(m(y), w.fractionDigits),
|
|
21237
21251
|
minValue: w.minValue,
|
|
21238
21252
|
maxValue: w.maxValue,
|
|
21239
21253
|
step: w.inputStep,
|
|
@@ -21277,10 +21291,10 @@ var Pj = (e) => {
|
|
|
21277
21291
|
let z;
|
|
21278
21292
|
t[41] !== y || t[42] !== v || t[43] !== f || t[44] !== m ? (z = f && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
21279
21293
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
21280
|
-
children:
|
|
21294
|
+
children: zi(m(y), { locale: v })
|
|
21281
21295
|
}), t[41] = y, t[42] = v, t[43] = f, t[44] = m, t[45] = z) : z = t[45];
|
|
21282
21296
|
let te;
|
|
21283
|
-
t[46] !== g || t[47] !== E || t[48] !== h || t[49] !== O || t[50] !== n ? (te = h && /* @__PURE__ */ (0, Y.jsx)(
|
|
21297
|
+
t[46] !== g || t[47] !== E || t[48] !== h || t[49] !== O || t[50] !== n ? (te = h && /* @__PURE__ */ (0, Y.jsx)(Hi, {
|
|
21284
21298
|
...O,
|
|
21285
21299
|
onChange: E,
|
|
21286
21300
|
className: "w-24",
|
|
@@ -21317,7 +21331,7 @@ var Pj = (e) => {
|
|
|
21317
21331
|
}
|
|
21318
21332
|
}, Ij = (e) => {
|
|
21319
21333
|
let t = (0, X.c)(9), { value: n, setValue: r, data: i } = e, a = (0, J.useId)(), o;
|
|
21320
|
-
t[0] !== i.disabled || t[1] !== a || t[2] !== r || t[3] !== n ? (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
21334
|
+
t[0] !== i.disabled || t[1] !== a || t[2] !== r || t[3] !== n ? (o = /* @__PURE__ */ (0, Y.jsx)(yr, {
|
|
21321
21335
|
"data-testid": "marimo-plugin-switch",
|
|
21322
21336
|
checked: n,
|
|
21323
21337
|
onCheckedChange: r,
|
|
@@ -21364,14 +21378,14 @@ var Pj = (e) => {
|
|
|
21364
21378
|
let b;
|
|
21365
21379
|
if (t[8] !== p || t[9] !== n) {
|
|
21366
21380
|
let e;
|
|
21367
|
-
t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsx)(
|
|
21381
|
+
t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsx)(Mn, {
|
|
21368
21382
|
value: t.toString(),
|
|
21369
21383
|
className: l(p && "w-full justify-start"),
|
|
21370
21384
|
children: E({ html: e })
|
|
21371
21385
|
}, t), t[11] = p, t[12] = e), b = n.map(e), t[8] = p, t[9] = n, t[10] = b;
|
|
21372
21386
|
} else b = t[10];
|
|
21373
21387
|
let x;
|
|
21374
|
-
t[13] !== y || t[14] !== b ? (x = /* @__PURE__ */ (0, Y.jsx)(
|
|
21388
|
+
t[13] !== y || t[14] !== b ? (x = /* @__PURE__ */ (0, Y.jsx)(An, {
|
|
21375
21389
|
className: y,
|
|
21376
21390
|
children: b
|
|
21377
21391
|
}), t[13] = y, t[14] = b, t[15] = x) : x = t[15];
|
|
@@ -21385,7 +21399,7 @@ var Pj = (e) => {
|
|
|
21385
21399
|
children: w
|
|
21386
21400
|
}), t[20] = C, t[21] = w, t[22] = T) : T = t[22];
|
|
21387
21401
|
let D;
|
|
21388
|
-
t[23] !== f || t[24] !== c || t[25] !== i || t[26] !== T || t[27] !== _ || t[28] !== x ? (D = /* @__PURE__ */ (0, Y.jsxs)(
|
|
21402
|
+
t[23] !== f || t[24] !== c || t[25] !== i || t[26] !== T || t[27] !== _ || t[28] !== x ? (D = /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
21389
21403
|
value: c,
|
|
21390
21404
|
onValueChange: f,
|
|
21391
21405
|
orientation: i,
|
|
@@ -21401,7 +21415,7 @@ var Pj = (e) => {
|
|
|
21401
21415
|
}), t[30] = r, t[31] = D, t[32] = O) : O = t[32], O;
|
|
21402
21416
|
};
|
|
21403
21417
|
function zj(e, t) {
|
|
21404
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
21418
|
+
return /* @__PURE__ */ (0, Y.jsx)(Tr, {
|
|
21405
21419
|
value: t.toString(),
|
|
21406
21420
|
children: e
|
|
21407
21421
|
}, t);
|
|
@@ -21535,7 +21549,7 @@ var Bj = class {
|
|
|
21535
21549
|
passwordHasValue: H().optional()
|
|
21536
21550
|
});
|
|
21537
21551
|
render(e) {
|
|
21538
|
-
let t = e.data.kind === "password" ? e.host.closest(`[${
|
|
21552
|
+
let t = e.data.kind === "password" ? e.host.closest(`[${yt}]`)?.getAttribute(yt) : void 0;
|
|
21539
21553
|
return /* @__PURE__ */ (0, Y.jsx)(Wj, {
|
|
21540
21554
|
...e.data,
|
|
21541
21555
|
value: e.value,
|
|
@@ -21577,7 +21591,7 @@ var Bj = class {
|
|
|
21577
21591
|
let w = C, T;
|
|
21578
21592
|
if (e.debounce === !0) {
|
|
21579
21593
|
let n = y[e.kind], r = e.minLength != null && e.minLength > 0, i;
|
|
21580
|
-
t[15] !== x || t[16] !== w || t[17] !== f || t[18] !== s || t[19] !== e.disabled || t[20] !== e.kind || t[21] !== e.maxLength || t[22] !== e.minLength || t[23] !== u || t[24] !== n || t[25] !== r || t[26] !== o ? (i = /* @__PURE__ */ (0, Y.jsx)(
|
|
21594
|
+
t[15] !== x || t[16] !== w || t[17] !== f || t[18] !== s || t[19] !== e.disabled || t[20] !== e.kind || t[21] !== e.maxLength || t[22] !== e.minLength || t[23] !== u || t[24] !== n || t[25] !== r || t[26] !== o ? (i = /* @__PURE__ */ (0, Y.jsx)(Yi, {
|
|
21581
21595
|
"data-testid": "marimo-plugin-text-input",
|
|
21582
21596
|
type: e.kind,
|
|
21583
21597
|
icon: n,
|
|
@@ -21596,7 +21610,7 @@ var Bj = class {
|
|
|
21596
21610
|
let n = y[e.kind], r = e.minLength != null && e.minLength > 0, i;
|
|
21597
21611
|
t[28] === Symbol.for("react.memo_cache_sentinel") ? (i = (e) => m(e.currentTarget.value), t[28] = i) : i = t[28];
|
|
21598
21612
|
let a;
|
|
21599
|
-
t[29] !== x || t[30] !== w || t[31] !== f || t[32] !== s || t[33] !== e.debounce || t[34] !== e.disabled || t[35] !== e.kind || t[36] !== e.maxLength || t[37] !== e.minLength || t[38] !== u || t[39] !== n || t[40] !== r || t[41] !== o ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
21613
|
+
t[29] !== x || t[30] !== w || t[31] !== f || t[32] !== s || t[33] !== e.debounce || t[34] !== e.disabled || t[35] !== e.kind || t[36] !== e.maxLength || t[37] !== e.minLength || t[38] !== u || t[39] !== n || t[40] !== r || t[41] !== o ? (a = /* @__PURE__ */ (0, Y.jsx)(ta, {
|
|
21600
21614
|
"data-testid": "marimo-plugin-text-input",
|
|
21601
21615
|
type: e.kind,
|
|
21602
21616
|
icon: n,
|
|
@@ -21619,7 +21633,7 @@ var Bj = class {
|
|
|
21619
21633
|
let a;
|
|
21620
21634
|
t[45] === Symbol.for("react.memo_cache_sentinel") ? (a = (e) => m(e.currentTarget.value), t[45] = a) : a = t[45];
|
|
21621
21635
|
let c;
|
|
21622
|
-
t[46] !== x || t[47] !== w || t[48] !== f || t[49] !== s || t[50] !== e.disabled || t[51] !== e.kind || t[52] !== e.maxLength || t[53] !== e.minLength || t[54] !== n || t[55] !== r || t[56] !== i || t[57] !== o ? (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
21636
|
+
t[46] !== x || t[47] !== w || t[48] !== f || t[49] !== s || t[50] !== e.disabled || t[51] !== e.kind || t[52] !== e.maxLength || t[53] !== e.minLength || t[54] !== n || t[55] !== r || t[56] !== i || t[57] !== o ? (c = /* @__PURE__ */ (0, Y.jsx)(Xi, {
|
|
21623
21637
|
"data-testid": "marimo-plugin-text-input",
|
|
21624
21638
|
type: e.kind,
|
|
21625
21639
|
icon: n,
|
|
@@ -21653,7 +21667,7 @@ function Gj(e, t) {
|
|
|
21653
21667
|
}
|
|
21654
21668
|
//#endregion
|
|
21655
21669
|
//#region src/plugins/impl/vega/VegaPlugin.tsx
|
|
21656
|
-
var Kj = J.lazy(() => import("./vega-component-
|
|
21670
|
+
var Kj = J.lazy(() => import("./vega-component-tFOzgarw.js")), qj = class {
|
|
21657
21671
|
tagName = "marimo-vega";
|
|
21658
21672
|
validator = W({
|
|
21659
21673
|
spec: W({}).passthrough().transform((e) => e),
|
|
@@ -21731,7 +21745,7 @@ var Kj = J.lazy(() => import("./vega-component-D0QXopU8.js")), qj = class {
|
|
|
21731
21745
|
children: i
|
|
21732
21746
|
}), t[2] = i, t[3] = s);
|
|
21733
21747
|
let c;
|
|
21734
|
-
t[4] === n ? c = t[5] : (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
21748
|
+
t[4] === n ? c = t[5] : (c = /* @__PURE__ */ (0, Y.jsx)(qn, {
|
|
21735
21749
|
html: n,
|
|
21736
21750
|
alwaysSanitizeHtml: !0
|
|
21737
21751
|
}), t[4] = n, t[5] = c);
|
|
@@ -21799,13 +21813,13 @@ var Qj = class {
|
|
|
21799
21813
|
return;
|
|
21800
21814
|
}
|
|
21801
21815
|
if (n.preventDefault(), !e.lazy) {
|
|
21802
|
-
|
|
21816
|
+
ri(e.data, e.filename ?? void 0);
|
|
21803
21817
|
return;
|
|
21804
21818
|
}
|
|
21805
21819
|
r(!0);
|
|
21806
21820
|
try {
|
|
21807
21821
|
let n = await t({});
|
|
21808
|
-
|
|
21822
|
+
ri(n.data || e.data, n.filename ?? e.filename ?? void 0);
|
|
21809
21823
|
} catch (e) {
|
|
21810
21824
|
x({
|
|
21811
21825
|
title: "Failed to download",
|
|
@@ -21814,7 +21828,7 @@ var Qj = class {
|
|
|
21814
21828
|
} finally {
|
|
21815
21829
|
r(!1);
|
|
21816
21830
|
}
|
|
21817
|
-
}, a = n ? F :
|
|
21831
|
+
}, a = n ? F : sr, o = e.label ? E({ html: e.label }) : "Download";
|
|
21818
21832
|
return /* @__PURE__ */ (0, Y.jsxs)("a", {
|
|
21819
21833
|
href: e.data,
|
|
21820
21834
|
download: e.filename ?? "",
|
|
@@ -21825,7 +21839,7 @@ var Qj = class {
|
|
|
21825
21839
|
}),
|
|
21826
21840
|
children: [/* @__PURE__ */ (0, Y.jsx)(a, { className: l("w-3 h-3", e.label && "mr-2", n && "animate-spin") }), o]
|
|
21827
21841
|
});
|
|
21828
|
-
}, uM = J.lazy(() => import("./ImageComparisonComponent-
|
|
21842
|
+
}, uM = J.lazy(() => import("./ImageComparisonComponent-Cpfz30OZ.js")), dM = class {
|
|
21829
21843
|
tagName = "marimo-image-comparison";
|
|
21830
21844
|
validator = W({
|
|
21831
21845
|
beforeSrc: U(),
|
|
@@ -21850,7 +21864,7 @@ var Qj = class {
|
|
|
21850
21864
|
});
|
|
21851
21865
|
render({ data: e }) {
|
|
21852
21866
|
let t = e.name === void 0 ? !1 : e.name || "";
|
|
21853
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
21867
|
+
return /* @__PURE__ */ (0, Y.jsx)(lr, {
|
|
21854
21868
|
data: e.jsonData,
|
|
21855
21869
|
format: "auto",
|
|
21856
21870
|
valueTypes: e.valueTypes,
|
|
@@ -21869,7 +21883,7 @@ var Qj = class {
|
|
|
21869
21883
|
root: null,
|
|
21870
21884
|
rootMargin: "0px"
|
|
21871
21885
|
}, t[0] = o) : o = t[0];
|
|
21872
|
-
let [s, c] =
|
|
21886
|
+
let [s, c] = xr(o);
|
|
21873
21887
|
c?.isIntersecting && !i && a(!0);
|
|
21874
21888
|
let l;
|
|
21875
21889
|
t[1] !== n || t[2] !== i ? (l = (e) => i ? n({}) : (e.previous(), Promise.resolve(void 0)), t[1] = n, t[2] = i, t[3] = l) : l = t[3];
|
|
@@ -21900,7 +21914,7 @@ var Qj = class {
|
|
|
21900
21914
|
]).transform((e) => e)
|
|
21901
21915
|
});
|
|
21902
21916
|
render({ data: e }) {
|
|
21903
|
-
return e.data ? /* @__PURE__ */ (0, Y.jsx)(
|
|
21917
|
+
return e.data ? /* @__PURE__ */ (0, Y.jsx)(Ir, { message: {
|
|
21904
21918
|
data: e.data,
|
|
21905
21919
|
channel: "output",
|
|
21906
21920
|
mimetype: e.mime
|
|
@@ -21920,11 +21934,11 @@ var Qj = class {
|
|
|
21920
21934
|
themeVariables: e.data.theme_variables
|
|
21921
21935
|
});
|
|
21922
21936
|
}
|
|
21923
|
-
}, _M = (0, J.lazy)(() => import("./mermaid-
|
|
21937
|
+
}, _M = (0, J.lazy)(() => import("./mermaid-Dnzoxjt1.js").then((e) => e.t));
|
|
21924
21938
|
//#endregion
|
|
21925
21939
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
21926
21940
|
function vM() {
|
|
21927
|
-
return
|
|
21941
|
+
return va() === "edit" ? document.getElementById("App") : void 0;
|
|
21928
21942
|
}
|
|
21929
21943
|
function yM(e) {
|
|
21930
21944
|
let t = (0, X.c)(7), [n, r] = (0, J.useState)(void 0), [i, a] = (0, J.useState)(void 0), o = (0, J.useRef)(null), s = (0, J.useRef)(null), c;
|
|
@@ -21936,7 +21950,7 @@ function yM(e) {
|
|
|
21936
21950
|
let n = e.target;
|
|
21937
21951
|
e.isIntersecting ? (!s.current || n.getBoundingClientRect().top < s.current.getBoundingClientRect().top) && (s.current = n, t = !0) : n === s.current && (s.current = null, t = !0);
|
|
21938
21952
|
}), t && s.current) {
|
|
21939
|
-
let e =
|
|
21953
|
+
let e = He(s.current), t = "id" in e ? e.id : e.path;
|
|
21940
21954
|
r(t), a(l.current.get(s.current));
|
|
21941
21955
|
}
|
|
21942
21956
|
}, {
|
|
@@ -21945,7 +21959,7 @@ function yM(e) {
|
|
|
21945
21959
|
threshold: 0
|
|
21946
21960
|
}), e.forEach((t) => {
|
|
21947
21961
|
if (t) {
|
|
21948
|
-
let n =
|
|
21962
|
+
let n = He(t[0]), r = e.map(bM).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
|
|
21949
21963
|
l.current.set(t[0], r), o.current?.observe(t[0]);
|
|
21950
21964
|
}
|
|
21951
21965
|
}), () => {
|
|
@@ -21990,7 +22004,7 @@ function CM(e, t) {
|
|
|
21990
22004
|
//#endregion
|
|
21991
22005
|
//#region src/components/editor/chrome/panels/outline/floating-outline.tsx
|
|
21992
22006
|
var wM = () => {
|
|
21993
|
-
let e = (0, X.c)(19), { items: t } = rs(
|
|
22007
|
+
let e = (0, X.c)(19), { items: t } = rs(tt), n;
|
|
21994
22008
|
e[0] === t ? n = e[1] : (n = xM(t), e[0] = t, e[1] = n);
|
|
21995
22009
|
let { activeHeaderId: r, activeOccurrences: i } = yM(n), [a, o] = J.useState(!1);
|
|
21996
22010
|
if (t.length < 2) return null;
|
|
@@ -22061,7 +22075,7 @@ var wM = () => {
|
|
|
22061
22075
|
children: s
|
|
22062
22076
|
}), t[8] = o, t[9] = s, t[10] = c) : c = t[10], c;
|
|
22063
22077
|
}, DM = (e) => {
|
|
22064
|
-
let t = (0, X.c)(12), { label: n } = e, { items: r } = rs(
|
|
22078
|
+
let t = (0, X.c)(12), { label: n } = e, { items: r } = rs(tt), i;
|
|
22065
22079
|
t[0] === r ? i = t[1] : (i = xM(r), t[0] = r, t[1] = i);
|
|
22066
22080
|
let { activeHeaderId: a, activeOccurrences: o } = yM(i);
|
|
22067
22081
|
if (r.length === 0) {
|
|
@@ -22871,7 +22885,7 @@ var wM = () => {
|
|
|
22871
22885
|
let t = (0, X.c)(24), { title: n, subtitle: r, progress: i, total: a, eta: o, rate: s } = e, c = typeof i == "number" ? "items-start" : "items-center", l;
|
|
22872
22886
|
t[0] !== i || t[1] !== a ? (l = () => typeof i == "number" && a != null && a > 0 ? /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
22873
22887
|
className: "flex gap-3 text-sm text-muted-foreground items-baseline",
|
|
22874
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
22888
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Bn, { value: MM(i / a * 100) }), /* @__PURE__ */ (0, Y.jsxs)("span", {
|
|
22875
22889
|
className: "shrink-0",
|
|
22876
22890
|
children: [
|
|
22877
22891
|
i,
|
|
@@ -23133,7 +23147,7 @@ var FM = (/* @__PURE__ */ i(((e) => {
|
|
|
23133
23147
|
});
|
|
23134
23148
|
}
|
|
23135
23149
|
}, RM = (e) => {
|
|
23136
|
-
let t = (0, X.c)(
|
|
23150
|
+
let t = (0, X.c)(11), { routes: n, children: r } = e, i = J.Children.count(r);
|
|
23137
23151
|
if (i !== n.length) throw Error(`Expected ${n.length} children, but got ${i}`);
|
|
23138
23152
|
let a;
|
|
23139
23153
|
t[0] === n ? a = t[1] : (a = new IM(n), t[0] = n, t[1] = a);
|
|
@@ -23155,14 +23169,9 @@ var FM = (/* @__PURE__ */ i(((e) => {
|
|
|
23155
23169
|
return window.addEventListener("hashchange", e), window.addEventListener("popstate", e), () => {
|
|
23156
23170
|
window.removeEventListener("hashchange", e), window.removeEventListener("popstate", e);
|
|
23157
23171
|
};
|
|
23158
|
-
}, p = [d], t[6] = d, t[7] = f, t[8] = p), (0, J.useEffect)(f, p), !c)
|
|
23159
|
-
let e;
|
|
23160
|
-
return t[9] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, {}), t[9] = e) : e = t[9], e;
|
|
23161
|
-
}
|
|
23172
|
+
}, p = [d], t[6] = d, t[7] = f, t[8] = p), (0, J.useEffect)(f, p), !c) return null;
|
|
23162
23173
|
let m = n.indexOf(c), h;
|
|
23163
|
-
t[
|
|
23164
|
-
let g = h[m], _;
|
|
23165
|
-
return t[12] === g ? _ = t[13] : (_ = /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: g }), t[12] = g, t[13] = _), _;
|
|
23174
|
+
return t[9] === r ? h = t[10] : (h = J.Children.toArray(r), t[9] = r, t[10] = h), h[m];
|
|
23166
23175
|
}, zM = class {
|
|
23167
23176
|
tagName = "marimo-stat";
|
|
23168
23177
|
validator = W({
|
|
@@ -23182,11 +23191,11 @@ var FM = (/* @__PURE__ */ i(((e) => {
|
|
|
23182
23191
|
return /* @__PURE__ */ (0, Y.jsx)(BM, { ...e });
|
|
23183
23192
|
}
|
|
23184
23193
|
}, BM = (e) => {
|
|
23185
|
-
let t = (0, X.c)(31), { value: n, label: r, caption: i, bordered: a, direction: o, target_direction: s, slot: u } = e, { locale: d } =
|
|
23186
|
-
t[0] !== d || t[1] !== n ? (f = () => n == null ? /* @__PURE__ */ (0, Y.jsx)("i", { children: "No value" }) : typeof n == "string" ? n : typeof n == "number" ?
|
|
23194
|
+
let t = (0, X.c)(31), { value: n, label: r, caption: i, bordered: a, direction: o, target_direction: s, slot: u } = e, { locale: d } = Yo(), f;
|
|
23195
|
+
t[0] !== d || t[1] !== n ? (f = () => n == null ? /* @__PURE__ */ (0, Y.jsx)("i", { children: "No value" }) : typeof n == "string" ? n : typeof n == "number" ? la(n, d) : typeof n == "boolean" ? n ? "True" : "False" : String(n), t[0] = d, t[1] = n, t[2] = f) : f = t[2];
|
|
23187
23196
|
let p = f, m = o === s, h = m ? "var(--grass-8)" : "var(--red-8)", g = m ? "var(--grass-9)" : "var(--red-9)", _;
|
|
23188
23197
|
t[3] === u ? _ = t[4] : (_ = () => {
|
|
23189
|
-
let e =
|
|
23198
|
+
let e = ti(u);
|
|
23190
23199
|
if (e?.[0]) {
|
|
23191
23200
|
let { mimetype: t, data: n } = e[0];
|
|
23192
23201
|
return t !== "text/html" && c.warn(`Expected text/html, got ${t}`), E({
|
|
@@ -23255,8 +23264,8 @@ var FM = (/* @__PURE__ */ i(((e) => {
|
|
|
23255
23264
|
tex: e.host.textContent || e.host.innerHTML
|
|
23256
23265
|
});
|
|
23257
23266
|
}
|
|
23258
|
-
}, HM = Ds(async () => (await import("./katex-
|
|
23259
|
-
await import("./mhchem-
|
|
23267
|
+
}, HM = Ds(async () => (await import("./katex-BNCmKUol.js").then((e) => e.n)).default), UM = Ds(async () => {
|
|
23268
|
+
await import("./mhchem-BEc7A1or.js");
|
|
23260
23269
|
}), WM = { "\\mbox": "\\text{#1}" };
|
|
23261
23270
|
async function GM(e, t) {
|
|
23262
23271
|
let [n] = await Promise.all([HM(), UM()]);
|
|
@@ -26426,7 +26435,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
|
|
|
26426
26435
|
t[7] === v ? (y = t[8], b = t[9]) : ({isDragging: b, ...y} = v, t[7] = v, t[8] = y, t[9] = b);
|
|
26427
26436
|
let x = !o && !f, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, ee, z, te, B, ne, re, ie, ae, oe;
|
|
26428
26437
|
if (t[10] !== i || t[11] !== h || t[12] !== y || t[13] !== u || t[14] !== x || t[15] !== c || t[16] !== b || t[17] !== o || t[18] !== n || t[19] !== a || t[20] !== r) {
|
|
26429
|
-
let e =
|
|
26438
|
+
let e = mn.keyBy(n.cells, pP), s;
|
|
26430
26439
|
t[47] !== n || t[48] !== r ? (s = (e) => (t) => {
|
|
26431
26440
|
let i = new Set(n.scrollableCells);
|
|
26432
26441
|
t ? i.add(e) : i.delete(e), r({
|
|
@@ -26474,7 +26483,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
|
|
|
26474
26483
|
cellId: t.id,
|
|
26475
26484
|
output: t.output,
|
|
26476
26485
|
status: t.status,
|
|
26477
|
-
stale:
|
|
26486
|
+
stale: Ot(t, !1),
|
|
26478
26487
|
isScrollable: o,
|
|
26479
26488
|
side: s,
|
|
26480
26489
|
hidden: t.errored || t.interrupted || t.stopped
|
|
@@ -26550,7 +26559,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
|
|
|
26550
26559
|
cellId: e.id,
|
|
26551
26560
|
output: e.output,
|
|
26552
26561
|
status: e.status,
|
|
26553
|
-
stale:
|
|
26562
|
+
stale: Ot(e, !1),
|
|
26554
26563
|
isScrollable: !1,
|
|
26555
26564
|
hidden: !1
|
|
26556
26565
|
}, e.id), t[130] = a, t[131] = r), me = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [ce, /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -26608,7 +26617,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
|
|
|
26608
26617
|
output: e.output,
|
|
26609
26618
|
isScrollable: !1,
|
|
26610
26619
|
status: e.status,
|
|
26611
|
-
stale:
|
|
26620
|
+
stale: Ot(e, !1),
|
|
26612
26621
|
hidden: !1
|
|
26613
26622
|
})
|
|
26614
26623
|
}, e.id), t[146] = n.columns, t[147] = n.rowHeight, t[148] = a, t[149] = m) : m = t[149], ue = s.map(m);
|
|
@@ -26642,7 +26651,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
|
|
|
26642
26651
|
let h = s && "invisible", g = c ? "overflow-y-auto" : "overflow-y-hidden", _ = u === "top" && "flex items-start", v = u === "bottom" && "flex items-end", y = u === "left" && "flex justify-start", b = u === "right" && "flex justify-end", x;
|
|
26643
26652
|
t[5] !== d || t[6] !== h || t[7] !== g || t[8] !== _ || t[9] !== v || t[10] !== y || t[11] !== b ? (x = l(d, "h-full w-full p-2 overflow-x-auto", h, g, _, v, y, b), t[5] = d, t[6] = h, t[7] = g, t[8] = _, t[9] = v, t[10] = y, t[11] = b, t[12] = x) : x = t[12];
|
|
26644
26653
|
let S;
|
|
26645
|
-
t[13] !== r || t[14] !== m || t[15] !== n || t[16] !== f ? (S = /* @__PURE__ */ (0, Y.jsx)(
|
|
26654
|
+
t[13] !== r || t[14] !== m || t[15] !== n || t[16] !== f ? (S = /* @__PURE__ */ (0, Y.jsx)(mr, {
|
|
26646
26655
|
allowExpand: !1,
|
|
26647
26656
|
output: n,
|
|
26648
26657
|
cellId: r,
|
|
@@ -26658,7 +26667,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
|
|
|
26658
26667
|
oP.displayName = "GridCell";
|
|
26659
26668
|
var sP = (e) => {
|
|
26660
26669
|
let t = (0, X.c)(38), { layout: n, setLayout: r, isLocked: i, setIsLocked: a } = e, o;
|
|
26661
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
26670
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, Y.jsx)(Zo, {
|
|
26662
26671
|
htmlFor: "columns",
|
|
26663
26672
|
children: "Columns"
|
|
26664
26673
|
}), t[0] = o) : o = t[0];
|
|
@@ -26672,7 +26681,7 @@ var sP = (e) => {
|
|
|
26672
26681
|
let c;
|
|
26673
26682
|
t[4] !== n.columns || t[5] !== s ? (c = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
26674
26683
|
className: "flex flex-row items-center gap-2",
|
|
26675
|
-
children: [o, /* @__PURE__ */ (0, Y.jsx)(
|
|
26684
|
+
children: [o, /* @__PURE__ */ (0, Y.jsx)(Hi, {
|
|
26676
26685
|
"data-testid": "grid-columns-input",
|
|
26677
26686
|
id: "columns",
|
|
26678
26687
|
value: n.columns,
|
|
@@ -26683,7 +26692,7 @@ var sP = (e) => {
|
|
|
26683
26692
|
})]
|
|
26684
26693
|
}), t[4] = n.columns, t[5] = s, t[6] = c) : c = t[6];
|
|
26685
26694
|
let l;
|
|
26686
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, Y.jsx)(
|
|
26695
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, Y.jsx)(Zo, {
|
|
26687
26696
|
htmlFor: "rowHeight",
|
|
26688
26697
|
children: "Row Height (px)"
|
|
26689
26698
|
}), t[7] = l) : l = t[7];
|
|
@@ -26697,7 +26706,7 @@ var sP = (e) => {
|
|
|
26697
26706
|
let d;
|
|
26698
26707
|
t[11] !== n.rowHeight || t[12] !== u ? (d = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
26699
26708
|
className: "flex flex-row items-center gap-2",
|
|
26700
|
-
children: [l, /* @__PURE__ */ (0, Y.jsx)(
|
|
26709
|
+
children: [l, /* @__PURE__ */ (0, Y.jsx)(Hi, {
|
|
26701
26710
|
"data-testid": "grid-row-height-input",
|
|
26702
26711
|
id: "rowHeight",
|
|
26703
26712
|
value: n.rowHeight,
|
|
@@ -26708,7 +26717,7 @@ var sP = (e) => {
|
|
|
26708
26717
|
})]
|
|
26709
26718
|
}), t[11] = n.rowHeight, t[12] = u, t[13] = d) : d = t[13];
|
|
26710
26719
|
let f;
|
|
26711
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsx)(
|
|
26720
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsx)(Zo, {
|
|
26712
26721
|
htmlFor: "maxWidth",
|
|
26713
26722
|
children: "Max Width (px)"
|
|
26714
26723
|
}), t[14] = f) : f = t[14];
|
|
@@ -26722,7 +26731,7 @@ var sP = (e) => {
|
|
|
26722
26731
|
let m;
|
|
26723
26732
|
t[18] !== n.maxWidth || t[19] !== p ? (m = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
26724
26733
|
className: "flex flex-row items-center gap-2",
|
|
26725
|
-
children: [f, /* @__PURE__ */ (0, Y.jsx)(
|
|
26734
|
+
children: [f, /* @__PURE__ */ (0, Y.jsx)(Hi, {
|
|
26726
26735
|
"data-testid": "grid-max-width-input",
|
|
26727
26736
|
id: "maxWidth",
|
|
26728
26737
|
value: n.maxWidth,
|
|
@@ -26733,7 +26742,7 @@ var sP = (e) => {
|
|
|
26733
26742
|
})]
|
|
26734
26743
|
}), t[18] = n.maxWidth, t[19] = p, t[20] = m) : m = t[20];
|
|
26735
26744
|
let h;
|
|
26736
|
-
t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsxs)(
|
|
26745
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsxs)(Zo, {
|
|
26737
26746
|
className: "flex flex-row items-center gap-1",
|
|
26738
26747
|
htmlFor: "lock",
|
|
26739
26748
|
children: [/* @__PURE__ */ (0, Y.jsx)(R, { className: "h-3 w-3" }), "Bordered"]
|
|
@@ -26748,7 +26757,7 @@ var sP = (e) => {
|
|
|
26748
26757
|
let _;
|
|
26749
26758
|
t[25] !== n.bordered || t[26] !== g ? (_ = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
26750
26759
|
className: "flex flex-row items-center gap-2",
|
|
26751
|
-
children: [h, /* @__PURE__ */ (0, Y.jsx)(
|
|
26760
|
+
children: [h, /* @__PURE__ */ (0, Y.jsx)(yr, {
|
|
26752
26761
|
"data-testid": "grid-bordered-switch",
|
|
26753
26762
|
id: "lock",
|
|
26754
26763
|
checked: n.bordered,
|
|
@@ -26757,7 +26766,7 @@ var sP = (e) => {
|
|
|
26757
26766
|
})]
|
|
26758
26767
|
}), t[25] = n.bordered, t[26] = g, t[27] = _) : _ = t[27];
|
|
26759
26768
|
let v;
|
|
26760
|
-
t[28] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ (0, Y.jsxs)(
|
|
26769
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ (0, Y.jsxs)(Zo, {
|
|
26761
26770
|
className: "flex flex-row items-center gap-1",
|
|
26762
26771
|
htmlFor: "lock",
|
|
26763
26772
|
children: [/* @__PURE__ */ (0, Y.jsx)(Ju, { className: "h-3 w-3" }), "Lock Grid"]
|
|
@@ -26765,7 +26774,7 @@ var sP = (e) => {
|
|
|
26765
26774
|
let y;
|
|
26766
26775
|
t[29] !== i || t[30] !== a ? (y = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
26767
26776
|
className: "flex flex-row items-center gap-2",
|
|
26768
|
-
children: [v, /* @__PURE__ */ (0, Y.jsx)(
|
|
26777
|
+
children: [v, /* @__PURE__ */ (0, Y.jsx)(yr, {
|
|
26769
26778
|
"data-testid": "grid-lock-switch",
|
|
26770
26779
|
id: "lock",
|
|
26771
26780
|
checked: i,
|
|
@@ -26815,32 +26824,32 @@ var lP = (e) => {
|
|
|
26815
26824
|
let g = c === "side", _;
|
|
26816
26825
|
t[4] === u ? _ = t[5] : (_ = (e) => u(e ? "side" : void 0), t[4] = u, t[5] = _);
|
|
26817
26826
|
let v;
|
|
26818
|
-
t[6] === d ? v = t[7] : (v = /* @__PURE__ */ (0, Y.jsx)(
|
|
26827
|
+
t[6] === d ? v = t[7] : (v = /* @__PURE__ */ (0, Y.jsx)(qi, {
|
|
26819
26828
|
asChild: !0,
|
|
26820
26829
|
children: d ? /* @__PURE__ */ (0, Y.jsx)(d, { className: "h-4 w-4 opacity-60 hover:opacity-100" }) : /* @__PURE__ */ (0, Y.jsx)(Tu, { className: "h-4 w-4 opacity-60 hover:opacity-100" })
|
|
26821
26830
|
}), t[6] = d, t[7] = v);
|
|
26822
26831
|
let y;
|
|
26823
26832
|
t[8] !== a || t[9] !== i ? (y = Es.entries(dP).map((e) => {
|
|
26824
26833
|
let [t, n] = e;
|
|
26825
|
-
return /* @__PURE__ */ (0, Y.jsxs)(
|
|
26834
|
+
return /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
26826
26835
|
onSelect: () => a(t),
|
|
26827
26836
|
children: [
|
|
26828
26837
|
/* @__PURE__ */ (0, Y.jsx)(n, { className: "h-4 w-3 mr-2" }),
|
|
26829
26838
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
26830
26839
|
className: "flex-1",
|
|
26831
|
-
children:
|
|
26840
|
+
children: Si.startCase(t)
|
|
26832
26841
|
}),
|
|
26833
|
-
t === i && /* @__PURE__ */ (0, Y.jsx)(
|
|
26842
|
+
t === i && /* @__PURE__ */ (0, Y.jsx)(fi, { className: "h-4 w-4" })
|
|
26834
26843
|
]
|
|
26835
26844
|
}, t);
|
|
26836
26845
|
}), t[8] = a, t[9] = i, t[10] = y) : y = t[10];
|
|
26837
26846
|
let b;
|
|
26838
|
-
t[11] === y ? b = t[12] : (b = /* @__PURE__ */ (0, Y.jsx)(
|
|
26847
|
+
t[11] === y ? b = t[12] : (b = /* @__PURE__ */ (0, Y.jsx)(ea, {
|
|
26839
26848
|
side: "bottom",
|
|
26840
26849
|
children: y
|
|
26841
26850
|
}), t[11] = y, t[12] = b);
|
|
26842
26851
|
let x;
|
|
26843
|
-
t[13] !== g || t[14] !== _ || t[15] !== v || t[16] !== b ? (x = /* @__PURE__ */ (0, Y.jsxs)(
|
|
26852
|
+
t[13] !== g || t[14] !== _ || t[15] !== v || t[16] !== b ? (x = /* @__PURE__ */ (0, Y.jsxs)(oa, {
|
|
26844
26853
|
open: g,
|
|
26845
26854
|
onOpenChange: _,
|
|
26846
26855
|
children: [v, b]
|
|
@@ -26848,7 +26857,7 @@ var lP = (e) => {
|
|
|
26848
26857
|
let S = c === "scroll", C;
|
|
26849
26858
|
t[18] === u ? C = t[19] : (C = (e) => u(e ? "scroll" : void 0), t[18] = u, t[19] = C);
|
|
26850
26859
|
let w;
|
|
26851
|
-
t[20] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, Y.jsx)(
|
|
26860
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, Y.jsx)(qi, {
|
|
26852
26861
|
asChild: !0,
|
|
26853
26862
|
children: /* @__PURE__ */ (0, Y.jsx)(Qu, { className: "h-4 w-4 opacity-60 hover:opacity-100" })
|
|
26854
26863
|
}), t[20] = w) : w = t[20];
|
|
@@ -26860,30 +26869,30 @@ var lP = (e) => {
|
|
|
26860
26869
|
children: "Scrollable"
|
|
26861
26870
|
}), t[24] = E) : E = t[24];
|
|
26862
26871
|
let D;
|
|
26863
|
-
t[25] !== o || t[26] !== s ? (D = /* @__PURE__ */ (0, Y.jsx)(
|
|
26872
|
+
t[25] !== o || t[26] !== s ? (D = /* @__PURE__ */ (0, Y.jsx)(yr, {
|
|
26864
26873
|
"data-testid": "grid-scrollable-switch",
|
|
26865
26874
|
checked: o,
|
|
26866
26875
|
size: "sm",
|
|
26867
26876
|
onCheckedChange: s
|
|
26868
26877
|
}), t[25] = o, t[26] = s, t[27] = D) : D = t[27];
|
|
26869
26878
|
let O;
|
|
26870
|
-
t[28] !== T || t[29] !== D ? (O = /* @__PURE__ */ (0, Y.jsx)(
|
|
26879
|
+
t[28] !== T || t[29] !== D ? (O = /* @__PURE__ */ (0, Y.jsx)(ea, {
|
|
26871
26880
|
side: "bottom",
|
|
26872
|
-
children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
26881
|
+
children: /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
26873
26882
|
onSelect: T,
|
|
26874
26883
|
children: [E, D]
|
|
26875
26884
|
})
|
|
26876
26885
|
}), t[28] = T, t[29] = D, t[30] = O) : O = t[30];
|
|
26877
26886
|
let k;
|
|
26878
|
-
t[31] !== S || t[32] !== C || t[33] !== O ? (k = /* @__PURE__ */ (0, Y.jsxs)(
|
|
26887
|
+
t[31] !== S || t[32] !== C || t[33] !== O ? (k = /* @__PURE__ */ (0, Y.jsxs)(oa, {
|
|
26879
26888
|
open: S,
|
|
26880
26889
|
onOpenChange: C,
|
|
26881
26890
|
children: [w, O]
|
|
26882
26891
|
}), t[31] = S, t[32] = C, t[33] = O, t[34] = k) : k = t[34];
|
|
26883
26892
|
let A;
|
|
26884
|
-
t[35] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ (0, Y.jsx)(
|
|
26893
|
+
t[35] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ (0, Y.jsx)(Hr, { className: l(iP, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100") }), t[35] = A) : A = t[35];
|
|
26885
26894
|
let j;
|
|
26886
|
-
t[36] === r ? j = t[37] : (j = /* @__PURE__ */ (0, Y.jsx)(
|
|
26895
|
+
t[36] === r ? j = t[37] : (j = /* @__PURE__ */ (0, Y.jsx)(pi, {
|
|
26887
26896
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
26888
26897
|
onClick: () => r()
|
|
26889
26898
|
}), t[36] = r, t[37] = j);
|
|
@@ -26975,7 +26984,7 @@ var gP = {
|
|
|
26975
26984
|
};
|
|
26976
26985
|
},
|
|
26977
26986
|
serializeLayout: (e, t) => {
|
|
26978
|
-
let n =
|
|
26987
|
+
let n = mn.keyBy(e.cells, (e) => e.i), r = t.map((t) => {
|
|
26979
26988
|
let r = n.get(t.id);
|
|
26980
26989
|
if (!r) return { position: null };
|
|
26981
26990
|
let i = { position: [
|
|
@@ -27054,10 +27063,10 @@ var yP = (e) => {
|
|
|
27054
27063
|
//#endregion
|
|
27055
27064
|
//#region src/components/editor/cell/useDeleteCell.tsx
|
|
27056
27065
|
function bP() {
|
|
27057
|
-
let e = (0, X.c)(4), { deleteCell: t, undoDeleteCell: n } =
|
|
27066
|
+
let e = (0, X.c)(4), { deleteCell: t, undoDeleteCell: n } = ot(), { sendDeleteCell: r } = kt(), i;
|
|
27058
27067
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
27059
|
-
if (os.get(
|
|
27060
|
-
let { cellId: i } = e, a = (os.get(
|
|
27068
|
+
if (os.get(lt)) return;
|
|
27069
|
+
let { cellId: i } = e, a = (os.get(Ze).cellData[i]?.code ?? "").trim() === "";
|
|
27061
27070
|
if (t({ cellId: i }), r({ cellId: i }).catch(() => {
|
|
27062
27071
|
n();
|
|
27063
27072
|
}), !a) {
|
|
@@ -29530,7 +29539,7 @@ var ZL = (e) => {
|
|
|
29530
29539
|
//#region src/components/slides/minimap.tsx
|
|
29531
29540
|
function QL(e) {
|
|
29532
29541
|
if (!e || e === "slide") return null;
|
|
29533
|
-
let { label: t, description: n, Icon: r } =
|
|
29542
|
+
let { label: t, description: n, Icon: r } = or[e];
|
|
29534
29543
|
return {
|
|
29535
29544
|
label: t,
|
|
29536
29545
|
description: n,
|
|
@@ -29587,7 +29596,7 @@ function cR() {
|
|
|
29587
29596
|
return /* @__PURE__ */ new Set();
|
|
29588
29597
|
}
|
|
29589
29598
|
var lR = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: s }) => {
|
|
29590
|
-
let l =
|
|
29599
|
+
let l = it(), { moveCellToIndex: u, createNewCell: d } = ot(), f = bP(), p = (0, J.useRef)(null), m = sR(p), [h, g] = (0, J.useState)(null), [_, v] = (0, J.useState)(null), y = nR(t), b = (e, t) => {
|
|
29591
29600
|
d({
|
|
29592
29601
|
cellId: e,
|
|
29593
29602
|
before: t,
|
|
@@ -29671,7 +29680,7 @@ var lR = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
29671
29680
|
ref: p,
|
|
29672
29681
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
29673
29682
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
29674
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
29683
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ct, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
29675
29684
|
}), e.map((e, t) => /* @__PURE__ */ (0, Y.jsx)(fR, {
|
|
29676
29685
|
cell: e,
|
|
29677
29686
|
dimensions: y,
|
|
@@ -29771,31 +29780,31 @@ var lR = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
29771
29780
|
let j = A;
|
|
29772
29781
|
if (!f && !u) return j;
|
|
29773
29782
|
let M;
|
|
29774
|
-
t[46] === j ? M = t[47] : (M = /* @__PURE__ */ (0, Y.jsx)(
|
|
29783
|
+
t[46] === j ? M = t[47] : (M = /* @__PURE__ */ (0, Y.jsx)(Kn, {
|
|
29775
29784
|
asChild: !0,
|
|
29776
29785
|
children: j
|
|
29777
29786
|
}), t[46] = j, t[47] = M);
|
|
29778
29787
|
let N;
|
|
29779
|
-
t[48] === f ? N = t[49] : (N = f && /* @__PURE__ */ (0, Y.jsxs)(
|
|
29788
|
+
t[48] === f ? N = t[49] : (N = f && /* @__PURE__ */ (0, Y.jsxs)(ai, {
|
|
29780
29789
|
onSelect: f,
|
|
29781
29790
|
children: [/* @__PURE__ */ (0, Y.jsx)(Ha, { className: "mr-2 h-3.5 w-3.5" }), "Add cell"]
|
|
29782
29791
|
}), t[48] = f, t[49] = N);
|
|
29783
29792
|
let F;
|
|
29784
|
-
t[50] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, Y.jsx)(
|
|
29793
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, Y.jsx)(sn, {}), t[50] = F) : F = t[50];
|
|
29785
29794
|
let I;
|
|
29786
|
-
t[51] === u ? I = t[52] : (I = u && /* @__PURE__ */ (0, Y.jsxs)(
|
|
29795
|
+
t[51] === u ? I = t[52] : (I = u && /* @__PURE__ */ (0, Y.jsxs)(ai, {
|
|
29787
29796
|
variant: "danger",
|
|
29788
29797
|
onSelect: u,
|
|
29789
29798
|
children: [/* @__PURE__ */ (0, Y.jsx)(P, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
|
|
29790
29799
|
}), t[51] = u, t[52] = I);
|
|
29791
29800
|
let L;
|
|
29792
|
-
t[53] !== N || t[54] !== I ? (L = /* @__PURE__ */ (0, Y.jsxs)(
|
|
29801
|
+
t[53] !== N || t[54] !== I ? (L = /* @__PURE__ */ (0, Y.jsxs)(Rn, { children: [
|
|
29793
29802
|
N,
|
|
29794
29803
|
F,
|
|
29795
29804
|
I
|
|
29796
29805
|
] }), t[53] = N, t[54] = I, t[55] = L) : L = t[55];
|
|
29797
29806
|
let R;
|
|
29798
|
-
return t[56] !== M || t[57] !== L ? (R = /* @__PURE__ */ (0, Y.jsxs)(
|
|
29807
|
+
return t[56] !== M || t[57] !== L ? (R = /* @__PURE__ */ (0, Y.jsxs)(Dn, { children: [M, L] }), t[56] = M, t[57] = L, t[58] = R) : R = t[58], R;
|
|
29799
29808
|
}, pR = (e) => {
|
|
29800
29809
|
let t = (0, X.c)(10), { position: n, onInsert: r } = e, i = n === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", a;
|
|
29801
29810
|
t[0] === i ? a = t[1] : (a = l("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", i), t[0] = i, t[1] = a);
|
|
@@ -29855,11 +29864,11 @@ var lR = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
29855
29864
|
width: b / S,
|
|
29856
29865
|
height: x / S
|
|
29857
29866
|
},
|
|
29858
|
-
children: y ? /* @__PURE__ */ (0, Y.jsx)(hR, { code: n.code }) : /* @__PURE__ */ (0, Y.jsx)(
|
|
29867
|
+
children: y ? /* @__PURE__ */ (0, Y.jsx)(hR, { code: n.code }) : /* @__PURE__ */ (0, Y.jsx)(Yr, {
|
|
29859
29868
|
cellId: n.id,
|
|
29860
29869
|
status: n.status,
|
|
29861
29870
|
output: n.output,
|
|
29862
|
-
stale:
|
|
29871
|
+
stale: Ot(n, !1)
|
|
29863
29872
|
})
|
|
29864
29873
|
}), t[30] = n, t[31] = x, t[32] = y, t[33] = S, t[34] = k, t[35] = b, t[36] = P) : P = t[36];
|
|
29865
29874
|
let F;
|
|
@@ -29932,12 +29941,12 @@ function bR(e) {
|
|
|
29932
29941
|
}
|
|
29933
29942
|
//#endregion
|
|
29934
29943
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
29935
|
-
var xR = J.lazy(() => import("./reveal-component-
|
|
29936
|
-
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = rs(
|
|
29944
|
+
var xR = J.lazy(() => import("./reveal-component-Dtm5GH3p.js")), SR = (e) => {
|
|
29945
|
+
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = rs(Ca), s = a === "read" || o, c = rs(_t) > 1, [l, u] = (0, J.useState)(null), d;
|
|
29937
29946
|
t[0] !== i || t[1] !== n ? (d = vP(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
29938
29947
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
29939
29948
|
t[3] !== l || t[4] !== f || t[5] !== g ? (_ = l ? f.findIndex((e) => e.id === l) : g, t[3] = l, t[4] = f, t[5] = g, t[6] = _) : _ = t[6];
|
|
29940
|
-
let v = _, y = v === -1 ? g : v, b =
|
|
29949
|
+
let v = _, y = v === -1 ? g : v, b = Vr(o, window.location.search), x = s && l == null && window.location.hash.startsWith("#/"), S = b || x ? void 0 : y, C;
|
|
29941
29950
|
t[7] === f ? C = t[8] : (C = (e) => {
|
|
29942
29951
|
let t = f[e];
|
|
29943
29952
|
t && u(t.id);
|
|
@@ -30139,7 +30148,7 @@ var jR = (e) => {
|
|
|
30139
30148
|
let m;
|
|
30140
30149
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
30141
30150
|
let h;
|
|
30142
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
30151
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(ht, {
|
|
30143
30152
|
fontSize: 36,
|
|
30144
30153
|
className: "w-5 h-5"
|
|
30145
30154
|
}), t[14] = h) : h = t[14];
|
|
@@ -30158,7 +30167,7 @@ var jR = (e) => {
|
|
|
30158
30167
|
let v;
|
|
30159
30168
|
t[17] === n ? v = t[18] : (v = () => n("help"), t[17] = n, t[18] = v);
|
|
30160
30169
|
let y;
|
|
30161
|
-
t[19] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0, Y.jsx)(
|
|
30170
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0, Y.jsx)(pa, {
|
|
30162
30171
|
fontSize: 36,
|
|
30163
30172
|
className: "w-5 h-5"
|
|
30164
30173
|
}), t[19] = y) : y = t[19];
|
|
@@ -30220,13 +30229,13 @@ function MR(e = !0) {
|
|
|
30220
30229
|
//#endregion
|
|
30221
30230
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
30222
30231
|
var NR = (e) => {
|
|
30223
|
-
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } =
|
|
30232
|
+
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } = ot(), o;
|
|
30224
30233
|
t[0] !== r || t[1] !== a ? (o = (e) => a({
|
|
30225
30234
|
cellId: r,
|
|
30226
30235
|
name: e
|
|
30227
30236
|
}), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
|
|
30228
30237
|
let s = PR(n, o);
|
|
30229
|
-
if (
|
|
30238
|
+
if (we(n)) return null;
|
|
30230
30239
|
let c = s.focusing ? "" : "text-ellipsis", u;
|
|
30231
30240
|
t[3] !== i || t[4] !== c ? (u = l("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", c, i), t[3] = i, t[4] = c, t[5] = u) : u = t[5];
|
|
30232
30241
|
let d;
|
|
@@ -30248,28 +30257,28 @@ function PR(e, t) {
|
|
|
30248
30257
|
let n = (0, X.c)(13), [r, i] = (0, J.useState)(e), [a, o] = (0, J.useState)(!1), s;
|
|
30249
30258
|
n[0] !== t || n[1] !== e ? (s = (n) => {
|
|
30250
30259
|
if (n !== e) {
|
|
30251
|
-
if (!n ||
|
|
30260
|
+
if (!n || we(n)) {
|
|
30252
30261
|
t(n);
|
|
30253
30262
|
return;
|
|
30254
30263
|
}
|
|
30255
|
-
t(
|
|
30264
|
+
t(Fe(n, mt()));
|
|
30256
30265
|
}
|
|
30257
30266
|
}, n[0] = t, n[1] = e, n[2] = s) : s = n[2];
|
|
30258
30267
|
let c = s, l;
|
|
30259
|
-
n[3] === r ? l = n[4] : (l =
|
|
30268
|
+
n[3] === r ? l = n[4] : (l = we(r) ? "" : r, n[3] = r, n[4] = l);
|
|
30260
30269
|
let u;
|
|
30261
30270
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
|
|
30262
|
-
let t = e.target.value, n =
|
|
30271
|
+
let t = e.target.value, n = Oe(t);
|
|
30263
30272
|
i(n);
|
|
30264
30273
|
}, n[5] = u) : u = n[5];
|
|
30265
30274
|
let d;
|
|
30266
30275
|
n[6] === c ? d = n[7] : (d = (e) => {
|
|
30267
30276
|
if (e.target instanceof HTMLInputElement) {
|
|
30268
30277
|
let t = e.target.value;
|
|
30269
|
-
c(
|
|
30278
|
+
c(Oe(t));
|
|
30270
30279
|
} else if (e.target instanceof HTMLSpanElement) {
|
|
30271
30280
|
let t = e.target.innerText.trim();
|
|
30272
|
-
c(
|
|
30281
|
+
c(Oe(t)), e.target.scrollLeft = 0, o(!1);
|
|
30273
30282
|
}
|
|
30274
30283
|
}, n[6] = c, n[7] = d);
|
|
30275
30284
|
let f;
|
|
@@ -30290,7 +30299,7 @@ function FR(e) {
|
|
|
30290
30299
|
}
|
|
30291
30300
|
//#endregion
|
|
30292
30301
|
//#region src/components/editor/output/useWrapText.ts
|
|
30293
|
-
var IR =
|
|
30302
|
+
var IR = ge("marimo:console:wrapText", !1, St);
|
|
30294
30303
|
function LR() {
|
|
30295
30304
|
let e = (0, X.c)(3), [t, n] = as(IR), r;
|
|
30296
30305
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -30315,13 +30324,13 @@ var zR = (e) => {
|
|
|
30315
30324
|
value: s,
|
|
30316
30325
|
setValue: c
|
|
30317
30326
|
}, t[0] = s, t[1] = u);
|
|
30318
|
-
let d = kR(u), { consoleOutputs: f, stale: p, interrupted: m, cellName: h, cellId: g, onSubmitDebugger: v, onClear: y, onRefactorWithAI: b, className: x } = e, S = RR(f), C = S.length > 0, T = MR(C), E =
|
|
30327
|
+
let d = kR(u), { consoleOutputs: f, stale: p, interrupted: m, cellName: h, cellId: g, onSubmitDebugger: v, onClear: y, onRefactorWithAI: b, className: x } = e, S = RR(f), C = S.length > 0, T = MR(C), E = zn(n, C), D;
|
|
30319
30328
|
if (t[2] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
30320
30329
|
let e = n.current;
|
|
30321
30330
|
if (!e) return;
|
|
30322
30331
|
let t = e.scrollHeight - e.clientHeight;
|
|
30323
30332
|
t - e.scrollTop < 120 && (e.scrollTop = t);
|
|
30324
|
-
}, t[2] = D) : D = t[2], (0, J.useLayoutEffect)(D), !C &&
|
|
30333
|
+
}, t[2] = D) : D = t[2], (0, J.useLayoutEffect)(D), !C && we(h)) return null;
|
|
30325
30334
|
let O, k, A, j, M, N, P, F, I, L;
|
|
30326
30335
|
if (t[3] !== g || t[4] !== x || t[5] !== S || t[6] !== C || t[7] !== d || t[8] !== m || t[9] !== a || t[10] !== E || t[11] !== y || t[12] !== b || t[13] !== v || t[14] !== T || t[15] !== o || t[16] !== i || t[17] !== p || t[18] !== s || t[19] !== r) {
|
|
30327
30336
|
let e = S.toReversed(), u = e.some(WR), f = e.findIndex(GR), h;
|
|
@@ -30342,7 +30351,7 @@ var zR = (e) => {
|
|
|
30342
30351
|
className: "p-1 rounded bg-transparent text-muted-foreground data-hovered:text-foreground data-selected:text-foreground",
|
|
30343
30352
|
isSelected: r,
|
|
30344
30353
|
onChange: i,
|
|
30345
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
30354
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Nr, { className: "h-4 w-4" })
|
|
30346
30355
|
}) })
|
|
30347
30356
|
}),
|
|
30348
30357
|
(E || a) && /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
@@ -30353,10 +30362,10 @@ var zR = (e) => {
|
|
|
30353
30362
|
variant: null,
|
|
30354
30363
|
children: a ? /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
30355
30364
|
content: "Collapse output",
|
|
30356
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
30365
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Lr, { className: "h-4 w-4" })
|
|
30357
30366
|
}) : /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
30358
30367
|
content: "Expand output",
|
|
30359
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
30368
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xr, { className: "h-4 w-4 " })
|
|
30360
30369
|
})
|
|
30361
30370
|
})
|
|
30362
30371
|
]
|
|
@@ -30383,7 +30392,7 @@ var zR = (e) => {
|
|
|
30383
30392
|
interrupted: m
|
|
30384
30393
|
}, t);
|
|
30385
30394
|
}
|
|
30386
|
-
return /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
30395
|
+
return /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: /* @__PURE__ */ (0, Y.jsx)(Ir, {
|
|
30387
30396
|
cellId: g,
|
|
30388
30397
|
onRefactorWithAI: b,
|
|
30389
30398
|
message: e,
|
|
@@ -30414,26 +30423,26 @@ var zR = (e) => {
|
|
|
30414
30423
|
children: [k, ee]
|
|
30415
30424
|
}), t[59] = O, t[60] = k, t[61] = ee, t[62] = z) : z = t[62], z;
|
|
30416
30425
|
}, VR = (e) => {
|
|
30417
|
-
let t = (0, X.c)(
|
|
30426
|
+
let t = (0, X.c)(26), { value: n, setValue: r, inputHistory: i, output: a, isPassword: o, isPdb: s, onSubmit: c, onClear: l } = e, { navigateUp: u, navigateDown: d, addToHistory: f } = i, p;
|
|
30418
30427
|
t[0] === a ? p = t[1] : (p = UR(a), t[0] = a, t[1] = p);
|
|
30419
30428
|
let m = o ? "password" : "text", h;
|
|
30420
30429
|
t[2] === r ? h = t[3] : (h = (e) => r(e.target.value), t[2] = r, t[3] = h);
|
|
30421
30430
|
let g;
|
|
30422
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, Y.jsx)(
|
|
30431
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, Y.jsx)(na, { className: "w-5 h-5" }), t[4] = g) : g = t[4];
|
|
30423
30432
|
let _;
|
|
30424
|
-
t[5] !== f || t[6] !==
|
|
30425
|
-
if (e.key === "ArrowUp") {
|
|
30433
|
+
t[5] !== f || t[6] !== o || t[7] !== d || t[8] !== u || t[9] !== c || t[10] !== r || t[11] !== n ? (_ = (e) => {
|
|
30434
|
+
if (!o && e.key === "ArrowUp") {
|
|
30426
30435
|
u(), e.preventDefault();
|
|
30427
30436
|
return;
|
|
30428
30437
|
}
|
|
30429
|
-
if (e.key === "ArrowDown") {
|
|
30438
|
+
if (!o && e.key === "ArrowDown") {
|
|
30430
30439
|
d(), e.preventDefault();
|
|
30431
30440
|
return;
|
|
30432
30441
|
}
|
|
30433
|
-
e.key === "Enter" && !e.shiftKey && (n && f(n), c(n), r(""), e.preventDefault(), e.stopPropagation()), e.key === "Enter" && e.metaKey && (e.preventDefault(), e.stopPropagation());
|
|
30434
|
-
}, t[5] = f, t[6] =
|
|
30442
|
+
e.key === "Enter" && !e.shiftKey && (n && !o && f(n), c(n), r(""), e.preventDefault(), e.stopPropagation()), e.key === "Enter" && e.metaKey && (e.preventDefault(), e.stopPropagation());
|
|
30443
|
+
}, t[5] = f, t[6] = o, t[7] = d, t[8] = u, t[9] = c, t[10] = r, t[11] = n, t[12] = _) : _ = t[12];
|
|
30435
30444
|
let v;
|
|
30436
|
-
t[
|
|
30445
|
+
t[13] !== m || t[14] !== h || t[15] !== _ || t[16] !== n ? (v = /* @__PURE__ */ (0, Y.jsx)(Xi, {
|
|
30437
30446
|
"data-testid": "console-input",
|
|
30438
30447
|
"data-stdin-blocking": !0,
|
|
30439
30448
|
type: m,
|
|
@@ -30445,21 +30454,21 @@ var zR = (e) => {
|
|
|
30445
30454
|
className: "m-0 h-8 focus-visible:shadow-xs-solid",
|
|
30446
30455
|
placeholder: "stdin",
|
|
30447
30456
|
onKeyDownCapture: _
|
|
30448
|
-
}), t[
|
|
30457
|
+
}), t[13] = m, t[14] = h, t[15] = _, t[16] = n, t[17] = v) : v = t[17];
|
|
30449
30458
|
let y;
|
|
30450
|
-
t[
|
|
30459
|
+
t[18] !== s || t[19] !== l || t[20] !== c ? (y = s && /* @__PURE__ */ (0, Y.jsx)(jR, {
|
|
30451
30460
|
onSubmit: c,
|
|
30452
30461
|
onClear: l
|
|
30453
|
-
}), t[
|
|
30462
|
+
}), t[18] = s, t[19] = l, t[20] = c, t[21] = y) : y = t[21];
|
|
30454
30463
|
let b;
|
|
30455
|
-
return t[
|
|
30464
|
+
return t[22] !== p || t[23] !== v || t[24] !== y ? (b = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
30456
30465
|
className: "flex gap-2 items-center pt-2",
|
|
30457
30466
|
children: [
|
|
30458
30467
|
p,
|
|
30459
30468
|
v,
|
|
30460
30469
|
y
|
|
30461
30470
|
]
|
|
30462
|
-
}), t[
|
|
30471
|
+
}), t[22] = p, t[23] = v, t[24] = y, t[25] = b) : b = t[25], b;
|
|
30463
30472
|
}, HR = (e) => {
|
|
30464
30473
|
let t = (0, X.c)(10), { output: n, response: r, isPassword: i, interrupted: a } = e, o = r != null && r !== "", s = a && !o, c;
|
|
30465
30474
|
t[0] === n ? c = t[1] : (c = UR(n), t[0] = n, t[1] = c);
|
|
@@ -30467,7 +30476,7 @@ var zR = (e) => {
|
|
|
30467
30476
|
t[2] !== o || t[3] !== i || t[4] !== r || t[5] !== s ? (l = !i && !s && /* @__PURE__ */ (0, Y.jsxs)("span", {
|
|
30468
30477
|
className: "inline-flex items-center gap-1 text-(--sky-11)",
|
|
30469
30478
|
"aria-label": "stdin response",
|
|
30470
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
30479
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(na, { className: "w-4 h-4 shrink-0 opacity-70" }), o ? r : /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
30471
30480
|
className: "italic opacity-70",
|
|
30472
30481
|
children: "(empty)"
|
|
30473
30482
|
})]
|
|
@@ -30477,7 +30486,7 @@ var zR = (e) => {
|
|
|
30477
30486
|
className: "flex gap-2 items-center",
|
|
30478
30487
|
children: [c, l]
|
|
30479
30488
|
}), t[7] = c, t[8] = l, t[9] = u) : u = t[9], u;
|
|
30480
|
-
}, UR = (e) => e ? /* @__PURE__ */ (0, Y.jsx)(
|
|
30489
|
+
}, UR = (e) => e ? /* @__PURE__ */ (0, Y.jsx)(oi, { text: e }) : null;
|
|
30481
30490
|
function WR(e) {
|
|
30482
30491
|
return typeof e.data == "string" && e.data.includes("(Pdb)");
|
|
30483
30492
|
}
|
|
@@ -30492,7 +30501,7 @@ function qR(e) {
|
|
|
30492
30501
|
}
|
|
30493
30502
|
//#endregion
|
|
30494
30503
|
//#region src/core/cells/readonly-code-display.ts
|
|
30495
|
-
var JR = new
|
|
30504
|
+
var JR = new Xe(), YR = new wt();
|
|
30496
30505
|
function XR(e) {
|
|
30497
30506
|
let t = e.trim();
|
|
30498
30507
|
return t ? JR.isSupported(t) ? {
|
|
@@ -30512,7 +30521,7 @@ function XR(e) {
|
|
|
30512
30521
|
//#endregion
|
|
30513
30522
|
//#region src/core/export/layout.ts
|
|
30514
30523
|
async function ZR() {
|
|
30515
|
-
return await
|
|
30524
|
+
return await Be(), Dz();
|
|
30516
30525
|
}
|
|
30517
30526
|
//#endregion
|
|
30518
30527
|
//#region src/core/static/virtual-file-tracker.ts
|
|
@@ -30553,13 +30562,13 @@ function ez(e) {
|
|
|
30553
30562
|
//#endregion
|
|
30554
30563
|
//#region src/core/static/download-html.ts
|
|
30555
30564
|
async function tz(e) {
|
|
30556
|
-
let t =
|
|
30565
|
+
let t = Ve(), { includeCode: n } = e, r = await t.exportAsHTML({
|
|
30557
30566
|
download: !0,
|
|
30558
30567
|
includeCode: n,
|
|
30559
30568
|
files: $R.INSTANCE.filenames(),
|
|
30560
30569
|
layout: await ZR()
|
|
30561
30570
|
});
|
|
30562
|
-
|
|
30571
|
+
ar(r);
|
|
30563
30572
|
}
|
|
30564
30573
|
//#endregion
|
|
30565
30574
|
//#region src/components/editor/renderers/vertical-layout/useDelayVisibility.ts
|
|
@@ -30575,7 +30584,7 @@ function rz(e, t) {
|
|
|
30575
30584
|
i(!1);
|
|
30576
30585
|
}, n);
|
|
30577
30586
|
return () => clearTimeout(r);
|
|
30578
|
-
}, n[0] = t, n[1] = e, n[2] = a) : a = n[2],
|
|
30587
|
+
}, n[0] = t, n[1] = e, n[2] = a) : a = n[2], di(a);
|
|
30579
30588
|
let o;
|
|
30580
30589
|
return n[3] === r ? o = n[4] : (o = { invisible: r }, n[3] = r, n[4] = o), o;
|
|
30581
30590
|
}
|
|
@@ -30584,10 +30593,10 @@ function rz(e, t) {
|
|
|
30584
30593
|
function iz({ showCodeInRunModePreference: e, kioskMode: t }) {
|
|
30585
30594
|
if (!e) return !1;
|
|
30586
30595
|
let n = new URLSearchParams(window.location.search).get(ss.showCode);
|
|
30587
|
-
return n === null ?
|
|
30596
|
+
return n === null ? ga() || da() || t : n === "true";
|
|
30588
30597
|
}
|
|
30589
30598
|
function az(e) {
|
|
30590
|
-
|
|
30599
|
+
ga() && ba((t) => {
|
|
30591
30600
|
t.set(ss.showCode, String(e));
|
|
30592
30601
|
});
|
|
30593
30602
|
}
|
|
@@ -30599,7 +30608,7 @@ function oz(e) {
|
|
|
30599
30608
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
30600
30609
|
}
|
|
30601
30610
|
function sz(e, t) {
|
|
30602
|
-
let n = new
|
|
30611
|
+
let n = new Te().isSupported(e), r = t !== null && !L(t);
|
|
30603
30612
|
return n && r || e.trim() === "";
|
|
30604
30613
|
}
|
|
30605
30614
|
//#endregion
|
|
@@ -30620,7 +30629,7 @@ var cz = (e) => {
|
|
|
30620
30629
|
children: h
|
|
30621
30630
|
}), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
|
|
30622
30631
|
}, lz = (e) => {
|
|
30623
|
-
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = rz(n.length, i), o = rs(
|
|
30632
|
+
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = rz(n.length, i), o = rs(Ca), s = rs(Gs), [c] = ps(), u = rs(Us), d;
|
|
30624
30633
|
t[0] !== o || t[1] !== u ? (d = () => iz({
|
|
30625
30634
|
showCodeInRunModePreference: u,
|
|
30626
30635
|
kioskMode: o
|
|
@@ -30703,13 +30712,13 @@ var cz = (e) => {
|
|
|
30703
30712
|
]
|
|
30704
30713
|
}), t[28] = r, t[29] = a, t[30] = w, t[31] = T, t[32] = D) : D = t[32], D;
|
|
30705
30714
|
}, uz = (e) => {
|
|
30706
|
-
let t = (0, X.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } =
|
|
30715
|
+
let t = (0, X.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = kt(), o = mz, s = hz, c;
|
|
30707
30716
|
t[0] === a ? c = t[1] : (c = async () => {
|
|
30708
30717
|
let e = await a();
|
|
30709
|
-
|
|
30718
|
+
Qr(new Blob([e.contents], { type: "text/plain" }), ln.toPY(document.title));
|
|
30710
30719
|
}, t[0] = a, t[1] = c);
|
|
30711
30720
|
let u = c, d;
|
|
30712
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (d =
|
|
30721
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (d = ga(), t[2] = d) : d = t[2];
|
|
30713
30722
|
let f = d, p;
|
|
30714
30723
|
if (t[3] !== n || t[4] !== u || t[5] !== i || t[6] !== r) {
|
|
30715
30724
|
if (p = [], n) {
|
|
@@ -30723,9 +30732,9 @@ var cz = (e) => {
|
|
|
30723
30732
|
children: "Show code"
|
|
30724
30733
|
}), t[8] = e, t[9] = n) : (e = t[8], n = t[9]);
|
|
30725
30734
|
let a;
|
|
30726
|
-
t[10] === r ? a = t[11] : (a = r && /* @__PURE__ */ (0, Y.jsx)(
|
|
30735
|
+
t[10] === r ? a = t[11] : (a = r && /* @__PURE__ */ (0, Y.jsx)(fi, { className: "h-4 w-4" }), t[10] = r, t[11] = a);
|
|
30727
30736
|
let o;
|
|
30728
|
-
t[12] !== i || t[13] !== a ? (o = /* @__PURE__ */ (0, Y.jsxs)(
|
|
30737
|
+
t[12] !== i || t[13] !== a ? (o = /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
30729
30738
|
onSelect: i,
|
|
30730
30739
|
"data-testid": "notebook-action-show-code",
|
|
30731
30740
|
children: [
|
|
@@ -30735,11 +30744,11 @@ var cz = (e) => {
|
|
|
30735
30744
|
]
|
|
30736
30745
|
}, "show-code"), t[12] = i, t[13] = a, t[14] = o) : o = t[14];
|
|
30737
30746
|
let s;
|
|
30738
|
-
t[15] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(
|
|
30747
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(aa, {}, "show-code-separator"), t[15] = s) : s = t[15], p.push(o, s);
|
|
30739
30748
|
}
|
|
30740
30749
|
if (!f) {
|
|
30741
30750
|
let e;
|
|
30742
|
-
if (t[16] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsxs)(
|
|
30751
|
+
if (t[16] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
30743
30752
|
onSelect: s,
|
|
30744
30753
|
"data-testid": "notebook-action-download-html",
|
|
30745
30754
|
children: [/* @__PURE__ */ (0, Y.jsx)(Uu, {
|
|
@@ -30749,22 +30758,22 @@ var cz = (e) => {
|
|
|
30749
30758
|
}), "Download as HTML"]
|
|
30750
30759
|
}, "download-html"), t[16] = e) : e = t[16], p.push(e), n) {
|
|
30751
30760
|
let e;
|
|
30752
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(
|
|
30761
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Or, {
|
|
30753
30762
|
className: "mr-2",
|
|
30754
30763
|
size: 14,
|
|
30755
30764
|
strokeWidth: 1.5
|
|
30756
30765
|
}), t[17] = e) : e = t[17];
|
|
30757
30766
|
let n;
|
|
30758
|
-
t[18] === u ? n = t[19] : (n = /* @__PURE__ */ (0, Y.jsxs)(
|
|
30767
|
+
t[18] === u ? n = t[19] : (n = /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
30759
30768
|
onSelect: u,
|
|
30760
30769
|
"data-testid": "notebook-action-download-python",
|
|
30761
30770
|
children: [e, "Download notebook source"]
|
|
30762
30771
|
}, "download-python"), t[18] = u, t[19] = n), p.push(n);
|
|
30763
30772
|
}
|
|
30764
30773
|
let r;
|
|
30765
|
-
t[20] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, Y.jsx)(
|
|
30774
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, Y.jsx)(aa, {}, "download-separator"), t[20] = r) : r = t[20];
|
|
30766
30775
|
let i;
|
|
30767
|
-
t[21] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, Y.jsxs)(
|
|
30776
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, Y.jsxs)(Zi, {
|
|
30768
30777
|
onSelect: o,
|
|
30769
30778
|
"data-testid": "notebook-action-download-png",
|
|
30770
30779
|
children: [/* @__PURE__ */ (0, Y.jsx)(qu, {
|
|
@@ -30778,23 +30787,23 @@ var cz = (e) => {
|
|
|
30778
30787
|
} else p = t[7];
|
|
30779
30788
|
if (p.length === 0) return null;
|
|
30780
30789
|
let m;
|
|
30781
|
-
t[22] === Symbol.for("react.memo_cache_sentinel") ? (m = l("right-0 top-0 z-50 m-4 print:hidden flex gap-2",
|
|
30790
|
+
t[22] === Symbol.for("react.memo_cache_sentinel") ? (m = l("right-0 top-0 z-50 m-4 print:hidden flex gap-2", ga() ? "absolute" : "fixed"), t[22] = m) : m = t[22];
|
|
30782
30791
|
let h;
|
|
30783
|
-
t[23] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
30792
|
+
t[23] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(qi, {
|
|
30784
30793
|
asChild: !0,
|
|
30785
30794
|
children: /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
30786
30795
|
variant: "secondary",
|
|
30787
30796
|
size: "xs",
|
|
30788
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
30797
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Wr, { className: "w-4 h-4" })
|
|
30789
30798
|
})
|
|
30790
30799
|
}), t[23] = h) : h = t[23];
|
|
30791
30800
|
let g;
|
|
30792
30801
|
return t[24] === p ? g = t[25] : (g = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
30793
30802
|
"data-testid": "notebook-actions-dropdown",
|
|
30794
30803
|
className: m,
|
|
30795
|
-
children: /* @__PURE__ */ (0, Y.jsxs)(
|
|
30804
|
+
children: /* @__PURE__ */ (0, Y.jsxs)(oa, {
|
|
30796
30805
|
modal: !1,
|
|
30797
|
-
children: [h, /* @__PURE__ */ (0, Y.jsx)(
|
|
30806
|
+
children: [h, /* @__PURE__ */ (0, Y.jsx)(ea, {
|
|
30798
30807
|
align: "end",
|
|
30799
30808
|
className: "print:hidden w-[220px]",
|
|
30800
30809
|
children: p
|
|
@@ -30803,7 +30812,7 @@ var cz = (e) => {
|
|
|
30803
30812
|
}), t[24] = p, t[25] = g), g;
|
|
30804
30813
|
}, dz = (0, J.memo)((e) => {
|
|
30805
30814
|
let t = (0, X.c)(57), { output: n, consoleOutputs: r, cellOutputArea: i, cellId: a, status: o, stopped: s, errored: c, config: u, interrupted: d, staleInputs: f, runStartTimestamp: p, code: m, showCode: h, mode: g, name: _, kiosk: v, showErrorTracebacks: y } = e, b = (0, J.useRef)(null), x;
|
|
30806
|
-
t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x =
|
|
30815
|
+
t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = Ot({
|
|
30807
30816
|
status: o,
|
|
30808
30817
|
output: n,
|
|
30809
30818
|
interrupted: d,
|
|
@@ -30814,8 +30823,8 @@ var cz = (e) => {
|
|
|
30814
30823
|
t[6] === o ? C = t[7] : (C = ye(o), t[6] = o, t[7] = C);
|
|
30815
30824
|
let w = C, T = v && g !== "present", E;
|
|
30816
30825
|
if (t[8] !== m || t[9] !== c || t[10] !== T || t[11] !== h || t[12] !== s) {
|
|
30817
|
-
let e = new
|
|
30818
|
-
E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ?
|
|
30826
|
+
let e = new Te().isSupported(m);
|
|
30827
|
+
E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? Se({
|
|
30819
30828
|
errored: c,
|
|
30820
30829
|
stopped: s
|
|
30821
30830
|
}) : {
|
|
@@ -30827,7 +30836,7 @@ var cz = (e) => {
|
|
|
30827
30836
|
let D = E;
|
|
30828
30837
|
if (g === "read" && h || T) {
|
|
30829
30838
|
let e;
|
|
30830
|
-
t[14] !== a || t[15] !== w || t[16] !== n || t[17] !== S ? (e = /* @__PURE__ */ (0, Y.jsx)(
|
|
30839
|
+
t[14] !== a || t[15] !== w || t[16] !== n || t[17] !== S ? (e = /* @__PURE__ */ (0, Y.jsx)(mr, {
|
|
30831
30840
|
allowExpand: !0,
|
|
30832
30841
|
output: n,
|
|
30833
30842
|
className: ms.outputArea,
|
|
@@ -30840,7 +30849,7 @@ var cz = (e) => {
|
|
|
30840
30849
|
let c = s, l;
|
|
30841
30850
|
t[22] !== m || t[23] !== c ? (l = c ? null : XR(m), t[22] = m, t[23] = c, t[24] = l) : l = t[24];
|
|
30842
30851
|
let f = l, p;
|
|
30843
|
-
t[25] !== a || t[26] !== _ ? (p =
|
|
30852
|
+
t[25] !== a || t[26] !== _ ? (p = Kr(a, _), t[25] = a, t[26] = _, t[27] = p) : p = t[27];
|
|
30844
30853
|
let h = i === "above" && o, g;
|
|
30845
30854
|
t[28] !== u || t[29] !== f ? (g = f && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
30846
30855
|
className: "tray",
|
|
@@ -30874,7 +30883,7 @@ var cz = (e) => {
|
|
|
30874
30883
|
]
|
|
30875
30884
|
}), t[37] = D, t[38] = v, t[39] = y, t[40] = p, t[41] = h, t[42] = g, t[43] = x) : x = t[43], x;
|
|
30876
30885
|
}
|
|
30877
|
-
if (
|
|
30886
|
+
if (Pe({
|
|
30878
30887
|
errored: c,
|
|
30879
30888
|
interrupted: d,
|
|
30880
30889
|
stopped: s,
|
|
@@ -30882,9 +30891,9 @@ var cz = (e) => {
|
|
|
30882
30891
|
showErrorTracebacks: y
|
|
30883
30892
|
})) return null;
|
|
30884
30893
|
let O;
|
|
30885
|
-
t[44] !== a || t[45] !== _ ? (O =
|
|
30894
|
+
t[44] !== a || t[45] !== _ ? (O = Kr(a, _), t[44] = a, t[45] = _, t[46] = O) : O = t[46];
|
|
30886
30895
|
let k = g === "edit", A;
|
|
30887
|
-
t[47] !== a || t[48] !== w || t[49] !== n || t[50] !== S || t[51] !== k ? (A = /* @__PURE__ */ (0, Y.jsx)(
|
|
30896
|
+
t[47] !== a || t[48] !== w || t[49] !== n || t[50] !== S || t[51] !== k ? (A = /* @__PURE__ */ (0, Y.jsx)(mr, {
|
|
30888
30897
|
allowExpand: k,
|
|
30889
30898
|
output: n,
|
|
30890
30899
|
className: ms.outputArea,
|
|
@@ -30917,10 +30926,10 @@ function pz(e) {
|
|
|
30917
30926
|
}
|
|
30918
30927
|
async function mz() {
|
|
30919
30928
|
let e = document.getElementById("App");
|
|
30920
|
-
e && await
|
|
30929
|
+
e && await ni({
|
|
30921
30930
|
element: e,
|
|
30922
30931
|
filename: document.title,
|
|
30923
|
-
prepare:
|
|
30932
|
+
prepare: tr
|
|
30924
30933
|
});
|
|
30925
30934
|
}
|
|
30926
30935
|
async function hz() {
|
|
@@ -30972,7 +30981,7 @@ function Sz(e, t) {
|
|
|
30972
30981
|
selectedLayout: t
|
|
30973
30982
|
};
|
|
30974
30983
|
}
|
|
30975
|
-
var { valueAtom: Cz, useActions: wz } =
|
|
30984
|
+
var { valueAtom: Cz, useActions: wz } = ci(xz, {
|
|
30976
30985
|
setLayoutView: Sz,
|
|
30977
30986
|
setLayoutData: ({ pendingLayout: e, ...t }, n) => ({
|
|
30978
30987
|
...t,
|
|
@@ -31012,11 +31021,11 @@ function Ez({ state: e, plugin: t, cells: n }) {
|
|
|
31012
31021
|
}) : t.getInitialLayout(n));
|
|
31013
31022
|
}
|
|
31014
31023
|
function Dz() {
|
|
31015
|
-
let e =
|
|
31024
|
+
let e = Je(), t = os.get(Cz), { selectedLayout: n } = t;
|
|
31016
31025
|
if (n === "vertical") return null;
|
|
31017
31026
|
let r = _z.find((e) => e.type === n);
|
|
31018
31027
|
if (r === void 0) return c.error(`Unknown layout type: ${n}`), null;
|
|
31019
|
-
let i =
|
|
31028
|
+
let i = Ce(e), a = Ez({
|
|
31020
31029
|
state: t,
|
|
31021
31030
|
plugin: r,
|
|
31022
31031
|
cells: i
|
|
@@ -31032,7 +31041,7 @@ function Oz(e) {
|
|
|
31032
31041
|
let { codes: t, names: n, configs: r, cell_ids: i, last_executed_code: a, last_execution_time: o } = e, s = a || {}, c = o || {};
|
|
31033
31042
|
return t.map((e, t) => {
|
|
31034
31043
|
let a = i[t], o = s[a];
|
|
31035
|
-
return
|
|
31044
|
+
return Dt({
|
|
31036
31045
|
id: a,
|
|
31037
31046
|
code: e,
|
|
31038
31047
|
edited: o ? o !== e : !1,
|
|
@@ -31072,7 +31081,7 @@ function jz(e, t) {
|
|
|
31072
31081
|
return;
|
|
31073
31082
|
}
|
|
31074
31083
|
let { objectIds: y, values: b } = Az(), x = g ? Object.fromEntries(n.map((e) => [e.id, e.code])) : void 0;
|
|
31075
|
-
|
|
31084
|
+
Ve().sendInstantiate({
|
|
31076
31085
|
objectIds: y,
|
|
31077
31086
|
values: b,
|
|
31078
31087
|
autoRun: r,
|
|
@@ -31323,10 +31332,10 @@ function Qz(e) {
|
|
|
31323
31332
|
return null;
|
|
31324
31333
|
}
|
|
31325
31334
|
function $z(e) {
|
|
31326
|
-
return
|
|
31335
|
+
return Ge(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && (e.dependencies === void 0 || Array.isArray(e.dependencies) && e.dependencies.every((e) => typeof e == "string")) && Array.isArray(e.cells) && e.cells.every(eB) : !1;
|
|
31327
31336
|
}
|
|
31328
31337
|
function eB(e) {
|
|
31329
|
-
return
|
|
31338
|
+
return Ge(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
|
|
31330
31339
|
}
|
|
31331
31340
|
//#endregion
|
|
31332
31341
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -31346,7 +31355,7 @@ var tB = (e) => {
|
|
|
31346
31355
|
children: a
|
|
31347
31356
|
}), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
|
|
31348
31357
|
}, nB = (e) => {
|
|
31349
|
-
let t = (0, X.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } =
|
|
31358
|
+
let t = (0, X.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = kt(), o;
|
|
31350
31359
|
t[0] === r ? o = t[1] : (o = () => {
|
|
31351
31360
|
S(r());
|
|
31352
31361
|
}, t[0] = r, t[1] = o);
|
|
@@ -31420,7 +31429,7 @@ var aB = (e) => {
|
|
|
31420
31429
|
let t = (0, X.c)(19), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = rB(i), s = (0, J.useRef)(null), c;
|
|
31421
31430
|
t[0] === n ? c = t[1] : (c = (e) => e.cellRuntime[n], t[0] = n, t[1] = c);
|
|
31422
31431
|
let l = c, u;
|
|
31423
|
-
t[2] === l ? u = t[3] : (u =
|
|
31432
|
+
t[2] === l ? u = t[3] : (u = et(Ze, l), t[2] = l, t[3] = u);
|
|
31424
31433
|
let d = rs(u), f = rs(Ks);
|
|
31425
31434
|
if (oB(s, d?.status ?? "idle"), !f || !d?.output) {
|
|
31426
31435
|
let e;
|
|
@@ -31435,7 +31444,7 @@ var aB = (e) => {
|
|
|
31435
31444
|
return t[6] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)("div", { ref: s }), t[6] = e) : e = t[6], e;
|
|
31436
31445
|
}
|
|
31437
31446
|
let p;
|
|
31438
|
-
t[7] === d.output ? p = t[8] : (p = /* @__PURE__ */ (0, Y.jsx)(
|
|
31447
|
+
t[7] === d.output ? p = t[8] : (p = /* @__PURE__ */ (0, Y.jsx)(Ir, { message: d.output }), t[7] = d.output, t[8] = p);
|
|
31439
31448
|
let m;
|
|
31440
31449
|
t[9] === d ? m = t[10] : (m = /* @__PURE__ */ (0, Y.jsx)(sB, { state: d }), t[9] = d, t[10] = m);
|
|
31441
31450
|
let h;
|
|
@@ -31510,7 +31519,7 @@ var sB = (e) => {
|
|
|
31510
31519
|
return Yz(this);
|
|
31511
31520
|
}
|
|
31512
31521
|
getCellIdFromIndex(e) {
|
|
31513
|
-
let { cellIds: t } = os.get(
|
|
31522
|
+
let { cellIds: t } = os.get(Ze);
|
|
31514
31523
|
return t.inOrderIds.at(e);
|
|
31515
31524
|
}
|
|
31516
31525
|
connectedCallback() {
|
|
@@ -31524,7 +31533,7 @@ var sB = (e) => {
|
|
|
31524
31533
|
};
|
|
31525
31534
|
syncCellIdsSubscription() {
|
|
31526
31535
|
if (this.isReactive) {
|
|
31527
|
-
this.unsubscribeCellIds ??= os.sub(
|
|
31536
|
+
this.unsubscribeCellIds ??= os.sub(pt, () => {
|
|
31528
31537
|
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
31529
31538
|
});
|
|
31530
31539
|
return;
|
|
@@ -31537,7 +31546,7 @@ var sB = (e) => {
|
|
|
31537
31546
|
code: r,
|
|
31538
31547
|
output: t
|
|
31539
31548
|
});
|
|
31540
|
-
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(
|
|
31549
|
+
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(je);
|
|
31541
31550
|
return {
|
|
31542
31551
|
html: t,
|
|
31543
31552
|
codeCallback: n && i ? () => {
|
|
@@ -31596,7 +31605,7 @@ function pB() {
|
|
|
31596
31605
|
//#region src/core/islands/bootstrap.ts
|
|
31597
31606
|
async function mB(e) {
|
|
31598
31607
|
let t = e.store || os, n = e.root || document, r = e.bridge;
|
|
31599
|
-
t.set(
|
|
31608
|
+
t.set(be, r), t.set(ma, "read"), t.set(Ws, null), e.autoInitializePlugins !== !1 && YM();
|
|
31600
31609
|
let i = Array.from(n.querySelectorAll(yu.ISLAND));
|
|
31601
31610
|
if (i.length === 0) {
|
|
31602
31611
|
c.log("No islands found, skipping initialization");
|
|
@@ -31604,8 +31613,8 @@ async function mB(e) {
|
|
|
31604
31613
|
}
|
|
31605
31614
|
c.log(`Initializing ${i.length} island(s)`);
|
|
31606
31615
|
for (let e of i) e.classList.add(Cu.NAMESPACE);
|
|
31607
|
-
let a =
|
|
31608
|
-
t.set(
|
|
31616
|
+
let a = bt((e) => {
|
|
31617
|
+
t.set(Ze, (t) => dt(t, e));
|
|
31609
31618
|
});
|
|
31610
31619
|
t.sub(Js, () => {
|
|
31611
31620
|
let e = t.get(Js), r = n.querySelectorAll(yu.ISLAND);
|
|
@@ -31624,7 +31633,7 @@ async function mB(e) {
|
|
|
31624
31633
|
}
|
|
31625
31634
|
function hB(e, t, n, r) {
|
|
31626
31635
|
try {
|
|
31627
|
-
let i =
|
|
31636
|
+
let i = Ae(e);
|
|
31628
31637
|
switch (c.debug("Islands received message:", i.op), i.op) {
|
|
31629
31638
|
case "banner":
|
|
31630
31639
|
case "missing-package-alert":
|
|
@@ -31710,7 +31719,7 @@ function hB(e, t, n, r) {
|
|
|
31710
31719
|
return;
|
|
31711
31720
|
case "consumer-capabilities": return;
|
|
31712
31721
|
default:
|
|
31713
|
-
|
|
31722
|
+
mi(i);
|
|
31714
31723
|
return;
|
|
31715
31724
|
}
|
|
31716
31725
|
} catch (e) {
|
|
@@ -31969,12 +31978,12 @@ var MB = class {
|
|
|
31969
31978
|
store;
|
|
31970
31979
|
root;
|
|
31971
31980
|
session;
|
|
31972
|
-
sessionReady = new
|
|
31981
|
+
sessionReady = new fa();
|
|
31973
31982
|
nextSessionGeneration = 0;
|
|
31974
31983
|
activeSessionGenerations = /* @__PURE__ */ new Set();
|
|
31975
31984
|
appTransition = Promise.resolve();
|
|
31976
|
-
workerReady = new
|
|
31977
|
-
initialized = new
|
|
31985
|
+
workerReady = new fa();
|
|
31986
|
+
initialized = new fa();
|
|
31978
31987
|
constructor(e = {}) {
|
|
31979
31988
|
this.store = e.store || os, this.root = e.root || document;
|
|
31980
31989
|
try {
|
|
@@ -32017,7 +32026,7 @@ var MB = class {
|
|
|
32017
32026
|
appId: n.id,
|
|
32018
32027
|
sessionGeneration: ++this.nextSessionGeneration
|
|
32019
32028
|
}, a = this.session, o = t && a !== void 0;
|
|
32020
|
-
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(
|
|
32029
|
+
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(Ze, Et()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new fa()), this.session = {
|
|
32021
32030
|
...r,
|
|
32022
32031
|
code: t ? e : void 0
|
|
32023
32032
|
});
|
|
@@ -32035,7 +32044,7 @@ var MB = class {
|
|
|
32035
32044
|
t?.code === void 0 || e && t.appId !== e || (this.activeSessionGenerations.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
|
|
32036
32045
|
appId: t.appId,
|
|
32037
32046
|
sessionGeneration: t.sessionGeneration
|
|
32038
|
-
}), this.store.set(Ws, null), this.session = void 0, this.sessionReady = new
|
|
32047
|
+
}), this.store.set(Ws, null), this.session = void 0, this.sessionReady = new fa(), this.store.set(Ze, Et()));
|
|
32039
32048
|
});
|
|
32040
32049
|
}
|
|
32041
32050
|
enqueueAppTransition(e) {
|
|
@@ -32051,7 +32060,7 @@ var MB = class {
|
|
|
32051
32060
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
32052
32061
|
type: "update-ui-element",
|
|
32053
32062
|
...e,
|
|
32054
|
-
token:
|
|
32063
|
+
token: he()
|
|
32055
32064
|
}), null);
|
|
32056
32065
|
sendInstantiate = async () => null;
|
|
32057
32066
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|