@marimo-team/islands 0.25.1-dev90 → 0.25.1
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-1wHWKFoG.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-DMcT7AsU.js} +17 -17
- package/dist/{common-DVOYsne0.js → common-B58G5YN_.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-DUWqrgYI.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-BmlXbdJI.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-DnxrqL3c.js} +5 -5
- package/dist/{globals-B0NGznoE.js → globals-C6IYCw1c.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-BO78Sr4W.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-C1yOCuj8.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
|
@@ -2,7 +2,7 @@ import { n as e } from "./ordinal-c7efuCSS.js";
|
|
|
2
2
|
import { t } from "./colors-Bf2kJUGb.js";
|
|
3
3
|
import { t as n } from "./src-CA_m4ONl.js";
|
|
4
4
|
import { n as r } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
5
|
-
import { H as i, J as a, K as o, U as s, a as c, d as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-
|
|
5
|
+
import { H as i, J as a, K as o, U as s, a as c, d as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-1TwWR6gh.js";
|
|
6
6
|
//#region ../node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js
|
|
7
7
|
var h = t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
8
8
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as e, p as t } from "./chunk-75Z2AOVW-
|
|
1
|
+
import { g as e, p as t } from "./chunk-75Z2AOVW-C4AOleKf.js";
|
|
2
2
|
import { n, t as r } from "./src-CA_m4ONl.js";
|
|
3
3
|
import { n as i } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
|
-
import { A as a, F as o, G as s, H as c, K as l, O as u, U as d, a as f, b as p, c as m, i as h, r as g, s as _, v, w as y, x as b, y as x, z as S } from "./chunk-DU6HZSFF-
|
|
4
|
+
import { A as a, F as o, G as s, H as c, K as l, O as u, U as d, a as f, b as p, c as m, i as h, r as g, s as _, v, w as y, x as b, y as x, z as S } from "./chunk-DU6HZSFF-1TwWR6gh.js";
|
|
5
5
|
import { t as C } from "./dist-DUAh96QY.js";
|
|
6
|
-
import { a as w, i as T } from "./mermaid-
|
|
7
|
-
import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-
|
|
6
|
+
import { a as w, i as T } from "./mermaid-Dnzoxjt1.js";
|
|
7
|
+
import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-DMI1PBe4.js";
|
|
8
8
|
import { t as M } from "./chunk-2Q5K7J3B-BMkUkeuy.js";
|
|
9
9
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WJ2MYXX4.mjs
|
|
10
10
|
var N = C(), P = (function() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as e } from "./tooltip-qB8NlSqV.js";
|
|
2
2
|
import { s as t } from "./useLifecycle-DPgiiwwU.js";
|
|
3
|
-
import {
|
|
4
|
-
import { C as
|
|
5
|
-
var
|
|
3
|
+
import { a as n } from "./useDateFormatter-BXQGu86d.js";
|
|
4
|
+
import { C as r } from "./select-C6plhmZr.js";
|
|
5
|
+
var i = e("align-center-vertical", [
|
|
6
6
|
["path", {
|
|
7
7
|
d: "M12 2v20",
|
|
8
8
|
key: "t6zp3m"
|
|
@@ -23,7 +23,7 @@ var a = e("align-center-vertical", [
|
|
|
23
23
|
d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",
|
|
24
24
|
key: "1euafb"
|
|
25
25
|
}]
|
|
26
|
-
]),
|
|
26
|
+
]), a = e("arrow-down-to-line", [
|
|
27
27
|
["path", {
|
|
28
28
|
d: "M12 17V3",
|
|
29
29
|
key: "1cwfxf"
|
|
@@ -36,7 +36,7 @@ var a = e("align-center-vertical", [
|
|
|
36
36
|
d: "M19 21H5",
|
|
37
37
|
key: "150jfl"
|
|
38
38
|
}]
|
|
39
|
-
]),
|
|
39
|
+
]), o = e("arrow-up-to-line", [
|
|
40
40
|
["path", {
|
|
41
41
|
d: "M5 3h14",
|
|
42
42
|
key: "7usisc"
|
|
@@ -49,7 +49,7 @@ var a = e("align-center-vertical", [
|
|
|
49
49
|
d: "M12 7v14",
|
|
50
50
|
key: "1akyts"
|
|
51
51
|
}]
|
|
52
|
-
]),
|
|
52
|
+
]), s = e("baseline", [
|
|
53
53
|
["path", {
|
|
54
54
|
d: "M4 20h16",
|
|
55
55
|
key: "14thso"
|
|
@@ -62,13 +62,13 @@ var a = e("align-center-vertical", [
|
|
|
62
62
|
d: "M8 12h8",
|
|
63
63
|
key: "1wcyev"
|
|
64
64
|
}]
|
|
65
|
-
]),
|
|
65
|
+
]), c = e("chart-area", [["path", {
|
|
66
66
|
d: "M3 3v16a2 2 0 0 0 2 2h16",
|
|
67
67
|
key: "c24i48"
|
|
68
68
|
}], ["path", {
|
|
69
69
|
d: "M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",
|
|
70
70
|
key: "q0gr47"
|
|
71
|
-
}]]),
|
|
71
|
+
}]]), l = e("chart-column", [
|
|
72
72
|
["path", {
|
|
73
73
|
d: "M3 3v16a2 2 0 0 0 2 2h16",
|
|
74
74
|
key: "c24i48"
|
|
@@ -85,13 +85,13 @@ var a = e("align-center-vertical", [
|
|
|
85
85
|
d: "M8 17v-3",
|
|
86
86
|
key: "17ska0"
|
|
87
87
|
}]
|
|
88
|
-
]),
|
|
88
|
+
]), u = e("chart-line", [["path", {
|
|
89
89
|
d: "M3 3v16a2 2 0 0 0 2 2h16",
|
|
90
90
|
key: "c24i48"
|
|
91
91
|
}], ["path", {
|
|
92
92
|
d: "m19 9-5 5-4-4-3 3",
|
|
93
93
|
key: "2osh9i"
|
|
94
|
-
}]]),
|
|
94
|
+
}]]), d = e("chart-no-axes-column-increasing", [
|
|
95
95
|
["path", {
|
|
96
96
|
d: "M5 21v-6",
|
|
97
97
|
key: "1hz6c0"
|
|
@@ -104,7 +104,7 @@ var a = e("align-center-vertical", [
|
|
|
104
104
|
d: "M19 21V3",
|
|
105
105
|
key: "11j9sm"
|
|
106
106
|
}]
|
|
107
|
-
]),
|
|
107
|
+
]), f = e("chart-no-axes-column", [
|
|
108
108
|
["path", {
|
|
109
109
|
d: "M5 21v-6",
|
|
110
110
|
key: "1hz6c0"
|
|
@@ -117,7 +117,7 @@ var a = e("align-center-vertical", [
|
|
|
117
117
|
d: "M19 21V9",
|
|
118
118
|
key: "unv183"
|
|
119
119
|
}]
|
|
120
|
-
]),
|
|
120
|
+
]), p = e("chart-scatter", [
|
|
121
121
|
["circle", {
|
|
122
122
|
cx: "7.5",
|
|
123
123
|
cy: "7.5",
|
|
@@ -157,7 +157,7 @@ var a = e("align-center-vertical", [
|
|
|
157
157
|
d: "M3 3v16a2 2 0 0 0 2 2h16",
|
|
158
158
|
key: "c24i48"
|
|
159
159
|
}]
|
|
160
|
-
]),
|
|
160
|
+
]), m = e("ruler-dimension-line", [
|
|
161
161
|
["path", {
|
|
162
162
|
d: "M10 15v-3",
|
|
163
163
|
key: "1pjskw"
|
|
@@ -194,10 +194,10 @@ var a = e("align-center-vertical", [
|
|
|
194
194
|
rx: "2",
|
|
195
195
|
key: "1tqiko"
|
|
196
196
|
}]
|
|
197
|
-
]),
|
|
197
|
+
]), h = e("sigma", [["path", {
|
|
198
198
|
d: "M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",
|
|
199
199
|
key: "wuwx1p"
|
|
200
|
-
}]]),
|
|
200
|
+
}]]), g = e("square-function", [
|
|
201
201
|
["rect", {
|
|
202
202
|
width: "18",
|
|
203
203
|
height: "18",
|
|
@@ -215,6 +215,27 @@ var a = e("align-center-vertical", [
|
|
|
215
215
|
d: "M9 11.2h5.7",
|
|
216
216
|
key: "3zgcl2"
|
|
217
217
|
}]
|
|
218
|
+
]), _ = e("table", [
|
|
219
|
+
["path", {
|
|
220
|
+
d: "M12 3v18",
|
|
221
|
+
key: "108xh3"
|
|
222
|
+
}],
|
|
223
|
+
["rect", {
|
|
224
|
+
width: "18",
|
|
225
|
+
height: "18",
|
|
226
|
+
x: "3",
|
|
227
|
+
y: "3",
|
|
228
|
+
rx: "2",
|
|
229
|
+
key: "afitv7"
|
|
230
|
+
}],
|
|
231
|
+
["path", {
|
|
232
|
+
d: "M3 9h18",
|
|
233
|
+
key: "1pudct"
|
|
234
|
+
}],
|
|
235
|
+
["path", {
|
|
236
|
+
d: "M3 15h18",
|
|
237
|
+
key: "5xshup"
|
|
238
|
+
}]
|
|
218
239
|
]);
|
|
219
240
|
//#endregion
|
|
220
241
|
//#region src/components/data-table/charts/chart-spec/utils.ts
|
|
@@ -223,29 +244,29 @@ function v(e) {
|
|
|
223
244
|
}
|
|
224
245
|
//#endregion
|
|
225
246
|
//#region src/components/data-table/charts/constants.ts
|
|
226
|
-
var y = "__count__", b = "default",
|
|
227
|
-
line:
|
|
228
|
-
bar:
|
|
229
|
-
pie:
|
|
230
|
-
scatter:
|
|
231
|
-
heatmap:
|
|
232
|
-
area:
|
|
233
|
-
}, S = "mean",
|
|
234
|
-
none:
|
|
247
|
+
var y = "__count__", b = "default", ee = "yearmonthdate", x = {
|
|
248
|
+
line: u,
|
|
249
|
+
bar: d,
|
|
250
|
+
pie: n,
|
|
251
|
+
scatter: p,
|
|
252
|
+
heatmap: _,
|
|
253
|
+
area: c
|
|
254
|
+
}, S = "mean", te = {
|
|
255
|
+
none: g,
|
|
235
256
|
count: t,
|
|
236
|
-
sum:
|
|
237
|
-
mean:
|
|
238
|
-
median:
|
|
239
|
-
min:
|
|
240
|
-
max:
|
|
257
|
+
sum: h,
|
|
258
|
+
mean: s,
|
|
259
|
+
median: i,
|
|
260
|
+
min: a,
|
|
261
|
+
max: o,
|
|
241
262
|
distinct: t,
|
|
242
263
|
valid: t,
|
|
243
|
-
stdev:
|
|
244
|
-
stdevp:
|
|
245
|
-
variance:
|
|
246
|
-
variancep:
|
|
247
|
-
bin:
|
|
248
|
-
},
|
|
264
|
+
stdev: f,
|
|
265
|
+
stdevp: f,
|
|
266
|
+
variance: l,
|
|
267
|
+
variancep: l,
|
|
268
|
+
bin: m
|
|
269
|
+
}, ne = {
|
|
249
270
|
none: "No aggregation",
|
|
250
271
|
count: "Count of records",
|
|
251
272
|
sum: "Sum of values",
|
|
@@ -260,7 +281,7 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
|
|
|
260
281
|
variance: "Variance",
|
|
261
282
|
variancep: "Variance of population",
|
|
262
283
|
bin: "Group values into bins"
|
|
263
|
-
},
|
|
284
|
+
}, re = [
|
|
264
285
|
b,
|
|
265
286
|
"accent",
|
|
266
287
|
"category10",
|
|
@@ -306,11 +327,11 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
|
|
|
306
327
|
"spectral",
|
|
307
328
|
"rainbow",
|
|
308
329
|
"sinebow"
|
|
309
|
-
],
|
|
330
|
+
], C = {
|
|
310
331
|
number: "Continuous numerical scale",
|
|
311
332
|
string: "Discrete categorical scale (inputs treated as strings)",
|
|
312
333
|
temporal: "Continuous temporal scale"
|
|
313
|
-
},
|
|
334
|
+
}, w = {
|
|
314
335
|
year: ["Year", "2025"],
|
|
315
336
|
quarter: ["Quarter", "Q1 2025"],
|
|
316
337
|
month: ["Month", "Jan 2025"],
|
|
@@ -325,11 +346,11 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
|
|
|
325
346
|
yearmonth: ["Year Month", "Jan 2025"],
|
|
326
347
|
yearmonthdate: ["Year Month Date", "Jan 01, 2025"],
|
|
327
348
|
monthdate: ["Month Date", "Jan 01"]
|
|
328
|
-
},
|
|
349
|
+
}, T = [
|
|
329
350
|
"number",
|
|
330
351
|
"string",
|
|
331
352
|
"temporal"
|
|
332
|
-
],
|
|
353
|
+
], E = [
|
|
333
354
|
"year",
|
|
334
355
|
"quarter",
|
|
335
356
|
"month",
|
|
@@ -341,14 +362,14 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
|
|
|
341
362
|
"minutes",
|
|
342
363
|
"seconds",
|
|
343
364
|
"milliseconds"
|
|
344
|
-
],
|
|
365
|
+
], D = [
|
|
345
366
|
"yearmonth",
|
|
346
367
|
"yearmonthdate",
|
|
347
368
|
"monthdate"
|
|
348
|
-
],
|
|
349
|
-
[...
|
|
350
|
-
var
|
|
351
|
-
|
|
369
|
+
], O = [...E, ...D];
|
|
370
|
+
[...O];
|
|
371
|
+
var k = ["ascending", "descending"], A = "none", j = [
|
|
372
|
+
A,
|
|
352
373
|
"bin",
|
|
353
374
|
"count",
|
|
354
375
|
"sum",
|
|
@@ -362,27 +383,27 @@ var O = ["ascending", "descending"], k = "none", A = [
|
|
|
362
383
|
"stdevp",
|
|
363
384
|
"variance",
|
|
364
385
|
"variancep"
|
|
365
|
-
],
|
|
366
|
-
|
|
386
|
+
], M = [
|
|
387
|
+
A,
|
|
367
388
|
"count",
|
|
368
389
|
"distinct",
|
|
369
390
|
"valid"
|
|
370
|
-
],
|
|
391
|
+
], N = {
|
|
371
392
|
LINE: "line",
|
|
372
393
|
BAR: "bar",
|
|
373
394
|
PIE: "pie",
|
|
374
395
|
SCATTER: "scatter",
|
|
375
396
|
HEATMAP: "heatmap",
|
|
376
397
|
AREA: "area"
|
|
377
|
-
},
|
|
398
|
+
}, P = Object.values(N), ie = [
|
|
378
399
|
"X",
|
|
379
400
|
"Y",
|
|
380
401
|
"Color",
|
|
381
|
-
|
|
402
|
+
A
|
|
382
403
|
];
|
|
383
404
|
//#endregion
|
|
384
405
|
//#region src/components/data-table/charts/chart-spec/types.ts
|
|
385
|
-
function
|
|
406
|
+
function F(e) {
|
|
386
407
|
switch (e) {
|
|
387
408
|
case "number":
|
|
388
409
|
case "integer": return "quantitative";
|
|
@@ -394,10 +415,10 @@ function P(e) {
|
|
|
394
415
|
case "datetime":
|
|
395
416
|
case "time":
|
|
396
417
|
case "temporal": return "temporal";
|
|
397
|
-
default: return
|
|
418
|
+
default: return r(e), "nominal";
|
|
398
419
|
}
|
|
399
420
|
}
|
|
400
|
-
function
|
|
421
|
+
function I(e) {
|
|
401
422
|
switch (e) {
|
|
402
423
|
case "number":
|
|
403
424
|
case "integer": return "number";
|
|
@@ -408,34 +429,34 @@ function F(e) {
|
|
|
408
429
|
case "date":
|
|
409
430
|
case "datetime":
|
|
410
431
|
case "time": return "temporal";
|
|
411
|
-
default: return
|
|
432
|
+
default: return r(e), "string";
|
|
412
433
|
}
|
|
413
434
|
}
|
|
414
|
-
function
|
|
435
|
+
function L(e) {
|
|
415
436
|
switch (e) {
|
|
416
|
-
case
|
|
417
|
-
case
|
|
418
|
-
case
|
|
437
|
+
case N.PIE: return "arc";
|
|
438
|
+
case N.SCATTER: return "point";
|
|
439
|
+
case N.HEATMAP: return "rect";
|
|
419
440
|
default: return e;
|
|
420
441
|
}
|
|
421
442
|
}
|
|
422
443
|
//#endregion
|
|
423
444
|
//#region src/components/data-table/charts/chart-spec/encodings.ts
|
|
424
|
-
function
|
|
425
|
-
if (e ===
|
|
445
|
+
function R(e, t, n, r) {
|
|
446
|
+
if (e === N.HEATMAP) return n?.maxbins ? { maxbins: n?.maxbins } : void 0;
|
|
426
447
|
if (t !== "number") return;
|
|
427
448
|
if (!n?.binned) return r;
|
|
428
449
|
let i = {};
|
|
429
450
|
return n.step !== void 0 && (i.step = n.step), n.maxbins !== void 0 && (i.maxbins = n.maxbins), Object.keys(i).length === 0 || i;
|
|
430
451
|
}
|
|
431
|
-
function
|
|
452
|
+
function z(e) {
|
|
432
453
|
let t = e.color?.range;
|
|
433
454
|
if (t?.length) return { range: t };
|
|
434
455
|
let n = e.color?.scheme;
|
|
435
456
|
if (n && n !== "default") return { scheme: n };
|
|
436
457
|
}
|
|
437
|
-
function
|
|
438
|
-
if (e ===
|
|
458
|
+
function B(e, t) {
|
|
459
|
+
if (e === N.PIE) return;
|
|
439
460
|
let n;
|
|
440
461
|
if (Q(t.general?.colorByColumn?.field)) n = t.general?.colorByColumn;
|
|
441
462
|
else if (Q(t.color?.field)) switch (t.color?.field) {
|
|
@@ -459,28 +480,28 @@ function z(e, t) {
|
|
|
459
480
|
let r = t.color?.bin, i = n.selectedDataType || "string", a = n?.aggregate;
|
|
460
481
|
return {
|
|
461
482
|
field: v(n.field),
|
|
462
|
-
type:
|
|
463
|
-
scale:
|
|
464
|
-
aggregate:
|
|
465
|
-
bin:
|
|
483
|
+
type: F(i),
|
|
484
|
+
scale: z(t),
|
|
485
|
+
aggregate: H(a, i),
|
|
486
|
+
bin: R(e, i, r)
|
|
466
487
|
};
|
|
467
488
|
}
|
|
468
|
-
function
|
|
469
|
-
if (!(t.general?.stacking || !Q(t.general?.colorByColumn?.field) || e !==
|
|
489
|
+
function V(e, t) {
|
|
490
|
+
if (!(t.general?.stacking || !Q(t.general?.colorByColumn?.field) || e !== N.BAR)) return { field: v(t.general?.colorByColumn?.field) };
|
|
470
491
|
}
|
|
471
|
-
function
|
|
472
|
-
if (t !== "temporal" && e !== "none" && e !== "bin") return e ? t === "string" ?
|
|
492
|
+
function H(e, t, n) {
|
|
493
|
+
if (t !== "temporal" && e !== "none" && e !== "bin") return e ? t === "string" ? M.includes(e) ? e : void 0 : e : n || void 0;
|
|
473
494
|
}
|
|
474
495
|
//#endregion
|
|
475
496
|
//#region src/components/data-table/charts/chart-spec/tooltips.ts
|
|
476
|
-
function
|
|
497
|
+
function U(e) {
|
|
477
498
|
switch (e) {
|
|
478
499
|
case "integer": return ",.0f";
|
|
479
500
|
case "number": return ",.2f";
|
|
480
501
|
default: return;
|
|
481
502
|
}
|
|
482
503
|
}
|
|
483
|
-
function
|
|
504
|
+
function W(e) {
|
|
484
505
|
let { formValues: t, xEncoding: n, yEncoding: r, colorByEncoding: i } = e;
|
|
485
506
|
if (!t.tooltips) return;
|
|
486
507
|
function a(e, t, n) {
|
|
@@ -489,7 +510,7 @@ function U(e) {
|
|
|
489
510
|
field: e.field,
|
|
490
511
|
aggregate: e.aggregate,
|
|
491
512
|
timeUnit: e.timeUnit,
|
|
492
|
-
format:
|
|
513
|
+
format: U(t),
|
|
493
514
|
title: n,
|
|
494
515
|
bin: e.bin
|
|
495
516
|
};
|
|
@@ -526,20 +547,20 @@ function U(e) {
|
|
|
526
547
|
}
|
|
527
548
|
//#endregion
|
|
528
549
|
//#region src/components/data-table/charts/chart-spec/spec.ts
|
|
529
|
-
var
|
|
530
|
-
function
|
|
550
|
+
var G = "X-axis column is required", K = "Y-axis column is required";
|
|
551
|
+
function q(e, t, n, r, i) {
|
|
531
552
|
let { xColumn: a, yColumn: o, colorByColumn: s, horizontal: c, stacking: l, title: u, facet: d } = t.general ?? {};
|
|
532
|
-
if (e ===
|
|
533
|
-
if (!Q(a?.field)) return
|
|
534
|
-
if (!Q(o?.field)) return
|
|
535
|
-
let f =
|
|
553
|
+
if (e === N.PIE) return ae(t, n, r, i);
|
|
554
|
+
if (!Q(a?.field)) return G;
|
|
555
|
+
if (!Q(o?.field)) return K;
|
|
556
|
+
let f = Y(a, t.xAxis?.bin, $(t.xAxis?.label), s?.field && c ? l : void 0, e), p = S;
|
|
536
557
|
o?.selectedDataType === "string" && (p = "count");
|
|
537
|
-
let m =
|
|
558
|
+
let m = Y(o, t.yAxis?.bin, $(t.yAxis?.label), s?.field && !c ? l : void 0, e, p), h = d?.row.field ? X(d.row, e) : void 0, g = d?.column.field ? X(d.column, e) : void 0, _ = B(e, t), v = Z(e, t, n, r, i, u), y = {
|
|
538
559
|
x: c ? m : f,
|
|
539
560
|
y: c ? f : m,
|
|
540
|
-
xOffset:
|
|
561
|
+
xOffset: V(e, t),
|
|
541
562
|
color: _,
|
|
542
|
-
tooltip:
|
|
563
|
+
tooltip: W({
|
|
543
564
|
formValues: t,
|
|
544
565
|
xEncoding: f,
|
|
545
566
|
yEncoding: m,
|
|
@@ -550,38 +571,38 @@ function K(e, t, n, r, i) {
|
|
|
550
571
|
}, b = ce(d?.column, d?.row);
|
|
551
572
|
return {
|
|
552
573
|
...v,
|
|
553
|
-
mark: { type:
|
|
574
|
+
mark: { type: L(e) },
|
|
554
575
|
encoding: y,
|
|
555
576
|
...b
|
|
556
577
|
};
|
|
557
578
|
}
|
|
558
|
-
function
|
|
579
|
+
function J(e, t) {
|
|
559
580
|
return {
|
|
560
581
|
...e,
|
|
561
582
|
data: { values: t }
|
|
562
583
|
};
|
|
563
584
|
}
|
|
564
|
-
function
|
|
585
|
+
function Y(e, t, n, r, i, a) {
|
|
565
586
|
let o = e.selectedDataType || "string";
|
|
566
587
|
return e.field === "__count__" ? {
|
|
567
588
|
aggregate: "count",
|
|
568
589
|
type: "quantitative",
|
|
569
|
-
bin:
|
|
590
|
+
bin: R(i, o, t),
|
|
570
591
|
title: n === "__count__" ? void 0 : n,
|
|
571
592
|
stack: r
|
|
572
593
|
} : {
|
|
573
594
|
field: v(e.field),
|
|
574
|
-
type:
|
|
575
|
-
bin:
|
|
595
|
+
type: F(e.selectedDataType || "unknown"),
|
|
596
|
+
bin: R(i, o, t),
|
|
576
597
|
title: n,
|
|
577
598
|
stack: r,
|
|
578
|
-
aggregate:
|
|
599
|
+
aggregate: H(e.aggregate, o, a),
|
|
579
600
|
sort: e.sort,
|
|
580
601
|
timeUnit: oe(e)
|
|
581
602
|
};
|
|
582
603
|
}
|
|
583
|
-
function
|
|
584
|
-
let n =
|
|
604
|
+
function X(e, t) {
|
|
605
|
+
let n = R(t, e.selectedDataType || "string", {
|
|
585
606
|
maxbins: e.maxbins,
|
|
586
607
|
binned: e.binned
|
|
587
608
|
}, { maxbins: 6 });
|
|
@@ -589,30 +610,30 @@ function Y(e, t) {
|
|
|
589
610
|
field: v(e.field),
|
|
590
611
|
sort: e.sort,
|
|
591
612
|
timeUnit: se(e),
|
|
592
|
-
type:
|
|
613
|
+
type: F(e.selectedDataType || "unknown"),
|
|
593
614
|
bin: n
|
|
594
615
|
};
|
|
595
616
|
}
|
|
596
|
-
function
|
|
617
|
+
function ae(e, t, n, r) {
|
|
597
618
|
let { yColumn: i, colorByColumn: a, title: o } = e.general ?? {};
|
|
598
619
|
if (!Q(a?.field)) return "Color by column is required";
|
|
599
620
|
if (!Q(i?.field)) return "Size by column is required";
|
|
600
|
-
let s =
|
|
621
|
+
let s = Y(i, e.xAxis?.bin, $(e.xAxis?.label), void 0, N.PIE), c = {
|
|
601
622
|
field: v(a.field),
|
|
602
|
-
type:
|
|
603
|
-
scale:
|
|
623
|
+
type: F(a.selectedDataType || "unknown"),
|
|
624
|
+
scale: z(e),
|
|
604
625
|
title: $(e.yAxis?.label)
|
|
605
626
|
};
|
|
606
627
|
return {
|
|
607
|
-
...Z(
|
|
628
|
+
...Z(N.PIE, e, t, n, r, o),
|
|
608
629
|
mark: {
|
|
609
|
-
type:
|
|
630
|
+
type: L(N.PIE),
|
|
610
631
|
innerRadius: e.style?.innerRadius
|
|
611
632
|
},
|
|
612
633
|
encoding: {
|
|
613
634
|
theta: s,
|
|
614
635
|
color: c,
|
|
615
|
-
tooltip:
|
|
636
|
+
tooltip: W({
|
|
616
637
|
formValues: e,
|
|
617
638
|
xEncoding: s,
|
|
618
639
|
yEncoding: s,
|
|
@@ -623,7 +644,7 @@ function X(e, t, n, r) {
|
|
|
623
644
|
}
|
|
624
645
|
function Z(e, t, n, r, i, a) {
|
|
625
646
|
let o = t.style?.gridLines ?? !1;
|
|
626
|
-
return e ===
|
|
647
|
+
return e === N.SCATTER && (o = !0), {
|
|
627
648
|
$schema: "https://vega.github.io/schema/vega-lite/v6.json",
|
|
628
649
|
background: n === "dark" ? "dark" : "white",
|
|
629
650
|
title: a,
|
|
@@ -651,4 +672,4 @@ function ce(e, t) {
|
|
|
651
672
|
return e?.linkXAxis === !1 && (n.x = "independent"), t?.linkYAxis === !1 && (n.y = "independent"), Object.keys(n).length > 0 ? { resolve: { axis: n } } : void 0;
|
|
652
673
|
}
|
|
653
674
|
//#endregion
|
|
654
|
-
export {
|
|
675
|
+
export { ee as C, g as D, v as E, l as O, b as S, w as T, te as _, j as a, y as b, D as c, T as d, E as f, ne as g, O as h, I as i, N as l, M as m, q as n, P as o, k as p, Q as r, ie as s, J as t, A as u, x as v, C as w, S as x, re as y };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./dagre-BGSfXNEb.js";
|
|
2
2
|
import { t } from "./graphlib-BmY_CCV9.js";
|
|
3
3
|
import { K as n, q as r } from "./cubic-OaEBhQPK.js";
|
|
4
|
-
import { g as i } from "./chunk-75Z2AOVW-
|
|
4
|
+
import { g as i } from "./chunk-75Z2AOVW-C4AOleKf.js";
|
|
5
5
|
import { n as a, t as o } from "./src-CA_m4ONl.js";
|
|
6
6
|
import { n as s } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
7
|
-
import { O as c, c as l, s as u, x as d } from "./chunk-DU6HZSFF-
|
|
8
|
-
import "./chunk-P2QGCYS3-
|
|
9
|
-
import "./chunk-PWAF6VOD-
|
|
10
|
-
import "./chunk-GMAD6QVW-
|
|
11
|
-
import "./chunk-4HAMMTFA-
|
|
12
|
-
import "./chunk-GVQU2GXP-
|
|
13
|
-
import "./chunk-L3NEJ4N5-
|
|
14
|
-
import "./chunk-OSK3NFVY-
|
|
15
|
-
import "./mermaid-
|
|
16
|
-
import "./chunk-F27PBJKO-
|
|
7
|
+
import { O as c, c as l, s as u, x as d } from "./chunk-DU6HZSFF-1TwWR6gh.js";
|
|
8
|
+
import "./chunk-P2QGCYS3-0TAWai9C.js";
|
|
9
|
+
import "./chunk-PWAF6VOD-lNxB9k8z.js";
|
|
10
|
+
import "./chunk-GMAD6QVW-vStrMz2P.js";
|
|
11
|
+
import "./chunk-4HAMMTFA-BPTTOOC5.js";
|
|
12
|
+
import "./chunk-GVQU2GXP-2HwWgs4u.js";
|
|
13
|
+
import "./chunk-L3NEJ4N5-RhC7i0I2.js";
|
|
14
|
+
import "./chunk-OSK3NFVY-CZV09N-U.js";
|
|
15
|
+
import "./mermaid-Dnzoxjt1.js";
|
|
16
|
+
import "./chunk-F27PBJKO-DMI1PBe4.js";
|
|
17
17
|
import "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
18
|
-
import "./chunk-POPQ4Y6H-
|
|
19
|
-
import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-
|
|
18
|
+
import "./chunk-POPQ4Y6H-Cc3_56GX.js";
|
|
19
|
+
import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-UOVZuZVn.js";
|
|
20
20
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-D77RDMKH.mjs
|
|
21
21
|
var h = /* @__PURE__ */ s((e) => e.append("circle").attr("class", "start-state").attr("r", d().state.sizeUnit).attr("cx", d().state.padding + d().state.sizeUnit).attr("cy", d().state.padding + d().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ s((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", d().state.textHeight).attr("class", "divider").attr("x2", d().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ s((e, t) => {
|
|
22
22
|
let n = e.append("text").attr("x", 2 * d().state.padding).attr("y", d().state.textHeight + 2 * d().state.padding).attr("font-size", d().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./chunk-75Z2AOVW-C4AOleKf.js";
|
|
2
|
+
import "./src-CA_m4ONl.js";
|
|
3
|
+
import { n as e } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
|
+
import "./chunk-DU6HZSFF-1TwWR6gh.js";
|
|
5
|
+
import "./chunk-P2QGCYS3-0TAWai9C.js";
|
|
6
|
+
import "./chunk-PWAF6VOD-lNxB9k8z.js";
|
|
7
|
+
import "./chunk-GMAD6QVW-vStrMz2P.js";
|
|
8
|
+
import "./chunk-4HAMMTFA-BPTTOOC5.js";
|
|
9
|
+
import "./chunk-GVQU2GXP-2HwWgs4u.js";
|
|
10
|
+
import "./chunk-L3NEJ4N5-RhC7i0I2.js";
|
|
11
|
+
import "./chunk-OSK3NFVY-CZV09N-U.js";
|
|
12
|
+
import "./mermaid-Dnzoxjt1.js";
|
|
13
|
+
import "./chunk-F27PBJKO-DMI1PBe4.js";
|
|
14
|
+
import "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
15
|
+
import "./chunk-POPQ4Y6H-Cc3_56GX.js";
|
|
16
|
+
import { i as t, n, r, t as i } from "./chunk-IMKFNOWR-UOVZuZVn.js";
|
|
17
|
+
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-MP3YSRHH.mjs
|
|
18
|
+
var a = {
|
|
19
|
+
parser: n,
|
|
20
|
+
get db() {
|
|
21
|
+
return new i(2);
|
|
22
|
+
},
|
|
23
|
+
renderer: r,
|
|
24
|
+
styles: t,
|
|
25
|
+
init: /* @__PURE__ */ e((e) => {
|
|
26
|
+
e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
27
|
+
}, "init")
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as diagram };
|