@marimo-team/islands 0.25.3-dev12 → 0.25.3-dev121
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-CNMliVzw.js → ConnectedDataExplorerComponent-CFzqIsUg.js} +14 -14
- package/dist/{ErrorBoundary-CUd8VnYI.js → ErrorBoundary-DMV_LmQz.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-D-Ez91gV.js → abnfDiagram-VCTEODGH-Di400kYu.js} +2 -2
- package/dist/any-language-editor-k2B8YI3Y.js +75 -0
- package/dist/{architectureDiagram-5GKGNRK7-CTpcNtO8.js → architectureDiagram-5GKGNRK7-BdTJcsNJ.js} +1 -1
- package/dist/{arrays-CN1djC4k.js → arrays-R6JsImiT.js} +8 -0
- package/dist/assets/__vite-browser-external-SaDYcg7x.js +1 -0
- package/dist/assets/{worker-HPY9fbhz.js → worker-CfME3uyi.js} +3 -2
- package/dist/{button-CvjkwdSk.js → button-BxB3RDjN.js} +1 -1
- package/dist/{capabilities-CQ5IjhzL.js → capabilities-BgR0osfN.js} +2 -2
- package/dist/{chat-ui-DaHynk8g.js → chat-ui-DA8zEZ1I.js} +1141 -1141
- package/dist/{check-EDwSwP89.js → check-P35dc2dH.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DGxi-zeo.js → chunk-IMKFNOWR-mtD7aJBw.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CV9J3rAB.js → chunk-SHT3W25Y-DybB1ShH.js} +1 -1
- package/dist/{chunk-SVP7TREG-BL-9Fqgg.js → chunk-SVP7TREG-DNhhdCex.js} +1 -1
- package/dist/{chunk-TICWLB2K-Cu_XMjDM.js → chunk-TICWLB2K-NhAQhlDf.js} +1 -1
- package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
- package/dist/{classDiagram-ZZMXUADV-BXXV13Hq.js → classDiagram-ZZMXUADV-GTL0l5xS.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js → classDiagram-v2-VYDZK3BY-BWrM2ruI.js} +2 -2
- package/dist/{code-visibility-P0Ornave.js → code-visibility-DH5nTo0j.js} +6 -6
- package/dist/{common-BtO98PuE.js → common-5eNT-fXN.js} +5559 -5453
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-CPoxUG7G.js} +3 -3
- package/dist/{cynefinDiagram-5FMLGOSQ-CH96rwba.js → cynefinDiagram-5FMLGOSQ-CX22wa7c.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BD3PmpFY.js → dagre-GXQ25YYZ-Df6Pp-cl.js} +1 -1
- package/dist/{data-grid-overlay-editor-B801aMeG.js → data-grid-overlay-editor-Chb0ro0y.js} +5 -5
- package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-0PJ-9N5n.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BsSJJldB.js → diagram-S7CK7UJ4-CctU9kVx.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-muQtNZc4.js → diagram-UQ7AKVKN-FVHjCF9j.js} +1 -1
- package/dist/{diagram-VX7I27RA-CdhuZAqR.js → diagram-VX7I27RA-BSDbwFFv.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BD8mXjOj.js → diagram-Z3DM3KII-BX8kW7Nc.js} +1 -1
- package/dist/{dialog-CEBFZNyc.js → dialog-C1PcpCqX.js} +3 -3
- package/dist/{dist-DpBpA_n1.js → dist-Lm-D-Vr6.js} +3 -3
- package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-B_7xD2X4.js} +177 -169
- package/dist/{ebnfDiagram-PWID7BFC-BIN1sweE.js → ebnfDiagram-PWID7BFC-DtapdLet.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Ctp5cfoN.js → erDiagram-RLTQ6QDP-BAru9jHt.js} +1 -1
- package/dist/{error-banner-D-WCIiMt.js → error-banner-Sl2FlSJ4.js} +2 -2
- package/dist/{error-entries-Bv6bZPF3.js → error-entries-g9iQiVIT.js} +844 -811
- package/dist/{feedback-button-Bpu-arCP.js → feedback-button-DWp0Qlyy.js} +29 -29
- package/dist/{flowDiagram-HODETNUW-3EfLrlFb.js → flowDiagram-HODETNUW-CjaeFeea.js} +2 -2
- package/dist/{formats-27CW_UP4.js → formats-V8ifA0Bk.js} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
- package/dist/{glide-data-editor-XZB3u4tH.js → glide-data-editor-DkAUNAn6.js} +370 -368
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-Bt8_pBa2.js} +16 -16
- package/dist/{globals-BIQc0DK0.js → globals-CUq9S0hL.js} +3 -3
- package/dist/{highlighted-body-KPVGNVTW-zwjq21tf.js → highlighted-body-KPVGNVTW-3Ziwfz-V.js} +2 -2
- package/dist/{html-to-image-Bf8QMGi4.js → html-to-image-Bg5ZoSO-.js} +29 -29
- package/dist/{infoDiagram-27XIBGKW-DipQoHxl.js → infoDiagram-27XIBGKW-B1hmUggC.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DgFMjSGz.js → ishikawaDiagram-5VMMS53U-DUeT3t-d.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-w1ACVjgl.js → kanban-definition-UXKFOSKX-DEUnNNgc.js} +1 -1
- package/dist/{label-BDKF3Afc.js → label-BRnUC0NX.js} +2 -2
- package/dist/{linear-Cnaq3Tfb.js → linear-DWERh7eI.js} +121 -73
- package/dist/{loader-BQOfjTIJ.js → loader-Bm8cy3e8.js} +12 -12
- package/dist/main.js +3272 -3030
- package/dist/{mermaid-CHo49Yv-.js → mermaid-B0fXpsNP.js} +38 -38
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
- package/dist/{mindmap-definition-YA3MSWOX-CrT0KSfX.js → mindmap-definition-YA3MSWOX-CPexlhDQ.js} +1 -1
- package/dist/{number-overlay-editor-CEO_7tD7.js → number-overlay-editor-CKqpdMbo.js} +3 -3
- package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
- package/dist/{once-BtE-wKRL.js → once-eG8Vmvjd.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BqvywNJA.js → pegDiagram-XKGWAZYB-CMpp1OOQ.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BfxJ_XCc.js → pieDiagram-E7YTZNPT-DlMWg5t1.js} +1 -1
- package/dist/precisionRound-DhAzeRcm.js +49 -0
- package/dist/{process-output-BZg56CCb.js → process-output-BtVPCGeI.js} +4 -4
- package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-8vFLVTPu.js → railroadDiagram-O6MQD6OU-DBJfseeO.js} +2 -2
- package/dist/{react-vega-BED0DjiB.js → react-vega-C4T9Rb_w.js} +12284 -12270
- package/dist/{requirementDiagram-BXWQKSXE-a_MxGvxe.js → requirementDiagram-BXWQKSXE-BC7V639r.js} +1 -1
- package/dist/{reveal-component-LPCUNcgp.js → reveal-component-BImvqVXl.js} +23 -23
- package/dist/{select-BButFi-d.js → select-B0LRDH0g.js} +4 -4
- package/dist/{sequenceDiagram-WJ2MYXX4-CXFMnxGh.js → sequenceDiagram-WJ2MYXX4-CgesU6F-.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-DTiOPKyk.js} +41 -11
- package/dist/{stateDiagram-D77RDMKH-DQeA_CwI.js → stateDiagram-D77RDMKH-lH_BUhs3.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BxxQucm1.js → stateDiagram-v2-MP3YSRHH-8LL6FrBe.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Do6L-cYg.js → swimlanes-42K2YHIH-Cuf9B9kE.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-DUzPvSVU.js → swimlanesDiagram-VR7AAH4N-BoMMtOPh.js} +2 -2
- package/dist/{swiper-component-DKntyn8p.js → swiper-component-DfhRvAFi.js} +2 -2
- package/dist/{time-BieKwdYS.js → time-BaMbJs4z.js} +18 -18
- package/dist/{timeline-definition-24CTP7MA-D3c46WM5.js → timeline-definition-24CTP7MA-yzzw4TF4.js} +1 -1
- package/dist/{toDate-UtiwmnH2.js → toDate-DKH0_kMo.js} +15 -18
- package/dist/{toast-B9UMEi8u.js → toast-CFWpihJU.js} +4 -4
- package/dist/{tooltip-BO1REbqs.js → tooltip-CKO1pHJo.js} +2 -2
- package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-DBCITLeF.js} +1 -1
- package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-D0mLJstx.js} +15 -14
- package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-c_yJtkAe.js} +2 -2
- package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-BpPWi3G3.js} +1 -1
- package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-BkdeVdXC.js} +1 -1
- package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-Dum8WSXq.js} +3 -3
- package/dist/{useTheme-CRnjkku0.js → useTheme-CfeaVw5D.js} +6 -6
- package/dist/{vega-component-BeF9dfyO.js → vega-component-DgytCKrL.js} +147 -147
- package/dist/{vega-embed-container-BNHE18G9.js → vega-embed-container--LYZqguO.js} +2 -2
- package/dist/{vega-loader.browser-DNST6uVf.js → vega-loader.browser-B9Pz0EGP.js} +298 -507
- package/dist/{vennDiagram-4TSXK5OY-BSZD8JcZ.js → vennDiagram-4TSXK5OY-eJOrTqqC.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-48cUWkfA.js → wardleyDiagram-VM6X3IG4-TILPvee6.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CswYgYeu.js → xychartDiagram-S5SC5T6Z-DUPvRwwJ.js} +2 -2
- package/package.json +12 -12
- package/src/__tests__/host-imports.test.ts +1 -0
- package/src/__tests__/mount.test.ts +0 -20
- package/src/components/app-config/ai-config.tsx +7 -2
- package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/blocks.tsx +2 -2
- package/src/components/chat/chat-components.tsx +2 -0
- package/src/components/chat/chat-panel.tsx +9 -8
- package/src/components/chat/chat-utils.ts +4 -8
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/__tests__/column-explorer.test.tsx +27 -1
- package/src/components/data-table/__tests__/columns.test.tsx +105 -0
- package/src/components/data-table/__tests__/context-menu-interaction.test.tsx +130 -0
- package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +105 -0
- package/src/components/data-table/__tests__/search-highlight.test.tsx +109 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +74 -0
- package/src/components/data-table/cell-selection/feature.ts +2 -2
- package/src/components/data-table/cell-selection/types.ts +2 -2
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +74 -1
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/__tests__/storage.test.ts +4 -1
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +40 -30
- package/src/components/data-table/charts/storage.ts +16 -5
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/data-table/column-summary/column-summary.tsx +2 -4
- package/src/components/data-table/column-visibility-dropdown.tsx +8 -13
- package/src/components/data-table/columns.tsx +45 -46
- package/src/components/data-table/context-menu.tsx +36 -20
- package/src/components/data-table/data-table.tsx +7 -1
- package/src/components/data-table/date-popover.tsx +6 -4
- package/src/components/data-table/export-actions.tsx +76 -48
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +2 -2
- package/src/components/data-table/search-highlight.tsx +79 -0
- package/src/components/data-table/types.ts +1 -0
- package/src/components/data-table/url-detector.tsx +49 -9
- package/src/components/datasources/__tests__/column-actions.test.tsx +97 -0
- package/src/components/datasources/__tests__/column-preview.test.tsx +63 -2
- package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
- package/src/components/datasources/column-preview.tsx +8 -2
- package/src/components/datasources/datasources.tsx +47 -35
- package/src/components/debugger/debugger-code.tsx +5 -0
- package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
- package/src/components/dependency-graph/elements.ts +24 -21
- package/src/components/dependency-graph/panels.tsx +2 -1
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/SortableCell.tsx +1 -3
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +24 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +18 -15
- package/src/components/editor/ai/add-cell-with-ai.tsx +3 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -0
- package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
- package/src/components/editor/cell/CreateCellButton.tsx +8 -10
- package/src/components/editor/cell/DeleteButton.tsx +1 -0
- package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +54 -0
- package/src/components/editor/cell/code/cell-editor.tsx +1 -1
- package/src/components/editor/cell/code/language-toggle.tsx +8 -7
- package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +30 -1
- package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +12 -18
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +58 -1
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +12 -2
- package/src/components/editor/chrome/wrapper/storage.ts +1 -1
- package/src/components/editor/connections/components.tsx +1 -1
- package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
- package/src/components/editor/controls/command-palette.tsx +22 -10
- package/src/components/editor/dynamic-favicon.tsx +21 -40
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +12 -23
- package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
- package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
- package/src/components/editor/file-tree/file-explorer.tsx +10 -5
- package/src/components/editor/file-tree/file-viewer.tsx +4 -2
- package/src/components/editor/file-tree/use-file-search.ts +35 -21
- package/src/components/editor/notebook-banner.tsx +1 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
- package/src/components/editor/output/ansi-reduce.ts +33 -20
- package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
- package/src/components/editor/package-alert.tsx +6 -4
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +12 -6
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
- package/src/components/home/components.tsx +17 -31
- package/src/components/icons/__tests__/large-spinner.test.tsx +39 -0
- package/src/components/icons/large-spinner.tsx +3 -14
- package/src/components/icons/spinner.tsx +1 -1
- package/src/components/mcp/mcp-status-indicator.tsx +1 -1
- package/src/components/pages/__tests__/home-page.test.tsx +116 -0
- package/src/components/pages/home-page.tsx +164 -91
- package/src/components/scratchpad/scratchpad.tsx +2 -2
- package/src/components/slides/reveal-component.tsx +4 -2
- package/src/components/slides/slide-cell-view.tsx +1 -1
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/tracing/tracing.tsx +2 -2
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/core/ai/context/providers/datasource.ts +6 -2
- package/src/core/ai/tools/base.ts +16 -7
- package/src/core/ai/tools/edit-notebook-tool.ts +47 -45
- package/src/core/ai/tools/registry.ts +13 -8
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/attachments/state.ts +5 -8
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +4 -0
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/__tests__/cells.test.ts +3 -1
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +54 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +113 -0
- package/src/core/cells/__tests__/session.test.ts +117 -36
- package/src/core/cells/cell.ts +14 -3
- package/src/core/cells/cells.ts +3 -1
- package/src/core/cells/pending-delete-service.ts +2 -6
- package/src/core/cells/session.ts +1 -1
- package/src/core/cells/types.ts +10 -1
- package/src/core/codemirror/__tests__/setup.test.ts +29 -29
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -0
- package/src/core/codemirror/cells/extensions.ts +7 -3
- package/src/core/codemirror/keymaps/vim.ts +2 -6
- package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
- package/src/core/codemirror/language/extension.ts +8 -8
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +16 -10
- package/src/core/codemirror/language/languages/sql/sql.ts +9 -7
- package/src/core/codemirror/language/panel/panel.tsx +1 -0
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/rtc/extension.ts +24 -12
- package/src/core/codemirror/rtc/loro/awareness.ts +34 -19
- package/src/core/codemirror/rtc/loro/sync.ts +1 -0
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +4 -4
- package/src/core/datasets/data-source-discovery.ts +4 -6
- package/src/core/document/__tests__/codemirror.test.ts +483 -0
- package/src/core/document/__tests__/draft.test.ts +322 -0
- package/src/core/document/__tests__/fixtures.ts +92 -0
- package/src/core/document/__tests__/hooks.test.tsx +386 -0
- package/src/core/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/document/__tests__/model.test.ts +158 -0
- package/src/core/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/document/__tests__/recovery-scenarios.test.ts +230 -0
- package/src/core/document/__tests__/scenario-fixture.ts +42 -0
- package/src/core/document/__tests__/scenarios.test.ts +205 -0
- package/src/core/document/__tests__/state.test.ts +438 -0
- package/src/core/document/__tests__/submission.test.ts +203 -0
- package/src/core/document/__tests__/test-host.test.ts +92 -0
- package/src/core/document/__tests__/test-host.ts +247 -0
- package/src/core/document/__tests__/test-notebook.ts +139 -0
- package/src/core/document/__tests__/user.ts +61 -0
- package/src/core/document/codemirror.ts +311 -0
- package/src/core/document/draft.ts +472 -0
- package/src/core/document/hooks.tsx +118 -0
- package/src/core/document/index.ts +22 -0
- package/src/core/document/model.ts +52 -0
- package/src/core/document/select.ts +41 -0
- package/src/core/document/state.ts +374 -0
- package/src/core/document/sync.ts +363 -0
- package/src/core/host/AGENTS.md +12 -2
- package/src/core/host/__tests__/attachments.test.ts +56 -0
- package/src/core/host/__tests__/document.test.ts +126 -0
- package/src/core/host/__tests__/fixtures.ts +41 -0
- package/src/core/host/__tests__/notebook-client.test.ts +511 -132
- package/src/core/host/__tests__/static.test.ts +167 -0
- package/src/core/host/__tests__/wasm.test.ts +152 -0
- package/src/core/host/backend.ts +10 -0
- package/src/core/host/connection.ts +1 -40
- package/src/core/host/notebook-client.ts +204 -133
- package/src/core/host/resources/attachments.ts +22 -0
- package/src/core/host/resources/document.ts +101 -0
- package/src/core/host/static.ts +70 -0
- package/src/core/host/wasm.ts +92 -0
- package/src/core/hotkeys/actions.ts +2 -4
- package/src/core/islands/__tests__/bootstrap.test.ts +0 -26
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
- package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
- package/src/core/network/connection.ts +4 -2
- package/src/core/network/useConnectionNotice.ts +8 -2
- package/src/core/runtime/__tests__/createWsUrl.test.ts +77 -7
- package/src/core/runtime/__tests__/runtime.test.ts +15 -58
- package/src/core/runtime/runtime.ts +25 -42
- package/src/core/runtime/types.ts +0 -2
- package/src/core/state/__tests__/jotai.test.tsx +108 -0
- package/src/core/state/jotai.ts +1 -1
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/core/static/files.ts +2 -0
- package/src/core/wasm/bridge.ts +38 -10
- package/src/core/wasm/store.ts +3 -3
- package/src/core/wasm/worker/bootstrap.ts +2 -1
- package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
- package/src/core/wasm/worker/types.ts +11 -0
- package/src/core/wasm/worker/worker.ts +48 -0
- package/src/core/websocket/__tests__/connection-state.test.ts +0 -12
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +153 -70
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +151 -428
- package/src/core/websocket/connection-state.ts +0 -10
- package/src/core/websocket/state.ts +7 -0
- package/src/core/websocket/transports/__tests__/notebook.test.ts +502 -0
- package/src/core/websocket/transports/notebook.ts +213 -0
- package/src/core/websocket/useNotebookClient.ts +38 -29
- package/src/core/websocket/useNotebookSession.tsx +1 -14
- package/src/css/globals.css +5 -0
- package/src/hooks/__tests__/useAsyncData.test.tsx +148 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +51 -0
- package/src/hooks/__tests__/useDeepCompareMemoize.test.tsx +39 -0
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +28 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +20 -0
- package/src/hooks/__tests__/useScript.test.tsx +77 -0
- package/src/hooks/__tests__/useStateForKey.test.tsx +257 -0
- package/src/hooks/useAsyncData.ts +3 -3
- package/src/hooks/useDataSourceDiscovery.ts +6 -4
- package/src/hooks/useDebounce.ts +6 -10
- package/src/hooks/useDeepCompareMemoize.ts +1 -1
- package/src/hooks/useDelayElapsed.ts +14 -10
- package/src/hooks/useElapsedTime.ts +3 -3
- package/src/hooks/useEventListener.ts +1 -2
- package/src/hooks/useInputHistory.ts +4 -7
- package/src/hooks/useInternalStateWithSync.ts +6 -6
- package/src/hooks/useResizeObserver.ts +4 -7
- package/src/hooks/useScript.ts +67 -70
- package/src/hooks/useStateForKey.ts +93 -0
- package/src/mount.tsx +0 -4
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/core/registerReactComponent.tsx +1 -1
- package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +29 -33
- package/src/plugins/impl/DropdownPlugin.tsx +2 -6
- package/src/plugins/impl/FileBrowserPlugin.tsx +4 -16
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +0 -1
- package/src/plugins/impl/RefreshPlugin.tsx +1 -0
- package/src/plugins/impl/SliderPlugin.tsx +6 -8
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +117 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +24 -3
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +2 -0
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
- package/src/plugins/impl/anywidget/runtime.ts +21 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +160 -82
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +93 -0
- package/src/plugins/impl/chat/chat-ui.tsx +12 -10
- package/src/plugins/impl/code/any-language-editor.tsx +2 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +8 -5
- package/src/plugins/impl/data-editor/glide-utils.ts +3 -1
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
- package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -2
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +5 -3
- package/src/plugins/impl/panel/PanelPlugin.tsx +16 -17
- package/src/plugins/impl/panel/__tests__/utils.test.ts +39 -1
- package/src/plugins/impl/panel/utils.ts +17 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/plugins/impl/vega/make-selectable.ts +4 -7
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/stories/__tests__/editor-story.test.tsx +33 -0
- package/src/stories/button.stories.tsx +1 -0
- package/src/stories/editor.stories.tsx +24 -17
- package/src/stories/form-wrapper.stories.tsx +2 -2
- package/src/stories/select.stories.tsx +2 -2
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/__tests__/arrays.test.ts +35 -0
- package/src/utils/__tests__/batch-requests.test.ts +3 -3
- package/src/utils/__tests__/numbers.test.ts +48 -1
- package/src/utils/__tests__/objects.test.ts +21 -0
- package/src/utils/arrays.ts +10 -0
- package/src/utils/blob.ts +1 -1
- package/src/utils/numbers.ts +28 -17
- package/src/utils/objects.ts +3 -7
- package/src/utils/once.ts +19 -19
- package/src/utils/tracer.ts +9 -5
- package/src/utils/zod-utils.ts +1 -3
- package/dist/any-language-editor-DZ_YTVus.js +0 -76
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
- package/dist/precisionRound-DMIVQrt2.js +0 -97
- package/src/core/host/__tests__/events.test.ts +0 -46
- package/src/core/host/__tests__/protocol.test.ts +0 -214
- package/src/core/host/events.ts +0 -60
- package/src/core/host/protocol.ts +0 -1943
- package/src/core/state/__tests__/jotai.test.ts +0 -25
- package/src/core/websocket/__tests__/createConnectionTransport.test.ts +0 -49
- package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
- package/src/core/websocket/transports/__tests__/sse.test.ts +0 -335
- package/src/core/websocket/transports/__tests__/transport.test.ts +0 -308
- package/src/core/websocket/transports/__tests__/ws.test.ts +0 -125
- package/src/core/websocket/transports/basic.ts +0 -102
- package/src/core/websocket/transports/create.ts +0 -31
- package/src/core/websocket/transports/sse.ts +0 -308
- package/src/core/websocket/transports/transport.ts +0 -50
- package/src/core/websocket/transports/ws.ts +0 -98
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as t, h as n, m as r, p as i, u as a } from "./button-
|
|
2
|
+
import { g as t, h as n, m as r, p as i, u as a } from "./button-BxB3RDjN.js";
|
|
3
3
|
import { t as o } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { c, h as l, l as u, s as d, u as f } from "./tooltip-
|
|
6
|
-
import { t as p } from "./check-
|
|
7
|
-
import { A as m, M as h, O as g, _, f as v, g as y, h as b, j as x, k as S, m as C, p as w, v as T, y as E } from "./select-
|
|
5
|
+
import { c, h as l, l as u, s as d, u as f } from "./tooltip-CKO1pHJo.js";
|
|
6
|
+
import { t as p } from "./check-P35dc2dH.js";
|
|
7
|
+
import { A as m, M as h, O as g, _, f as v, g as y, h as b, j as x, k as S, m as C, p as w, v as T, y as E } from "./select-B0LRDH0g.js";
|
|
8
8
|
import { t as D } from "./clsx-CoeGtWvn.js";
|
|
9
9
|
import { t as O } from "./react-dom-DUmH0GXv.js";
|
|
10
10
|
import { t as ee } from "./jsx-runtime-3BD1kT0s.js";
|
|
11
|
-
import { Ct as k, K as A, Q as j, St as M, Tt as N, X as P, Y as F, _t as I, bt as te, ct as ne, dt as re, ft as ie, ht as ae, lt as oe, pt as se, vt as ce, wt as L, xt as le, yt as ue } from "./use-restore-focus-
|
|
12
|
-
import { i as de, n as fe, r as pe, s as me } from "./label-
|
|
11
|
+
import { Ct as k, K as A, Q as j, St as M, Tt as N, X as P, Y as F, _t as I, bt as te, ct as ne, dt as re, ft as ie, ht as ae, lt as oe, pt as se, vt as ce, wt as L, xt as le, yt as ue } from "./use-restore-focus-DBCITLeF.js";
|
|
12
|
+
import { i as de, n as fe, r as pe, s as me } from "./label-BRnUC0NX.js";
|
|
13
13
|
import { t as he } from "./debounce-C3jyATpc.js";
|
|
14
|
-
import { A as ge } from "./useTheme-
|
|
15
|
-
import { t as _e } from "./once-
|
|
14
|
+
import { A as ge } from "./useTheme-CfeaVw5D.js";
|
|
15
|
+
import { t as _e } from "./once-eG8Vmvjd.js";
|
|
16
16
|
var ve = l("chevron-right", [["path", {
|
|
17
17
|
d: "m9 18 6-6-6-6",
|
|
18
18
|
key: "mthhwq"
|
|
@@ -3725,9 +3725,21 @@ function Sc(e) {
|
|
|
3725
3725
|
};
|
|
3726
3726
|
}
|
|
3727
3727
|
//#endregion
|
|
3728
|
+
//#region src/hooks/useInternalStateWithSync.ts
|
|
3729
|
+
var $ = s(), Cc = (e, t) => e === t;
|
|
3730
|
+
function wc(e, t) {
|
|
3731
|
+
let n = (0, $.c)(6), r = t === void 0 ? Cc : t, i;
|
|
3732
|
+
n[0] === e ? i = n[1] : (i = () => e, n[0] = e, n[1] = i);
|
|
3733
|
+
let [a, o] = (0, R.useState)(i), s;
|
|
3734
|
+
n[2] === e ? s = n[3] : (s = () => e, n[2] = e, n[3] = s);
|
|
3735
|
+
let [c, l] = (0, R.useState)(s);
|
|
3736
|
+
r(c, e) || (o(() => e), l(() => e));
|
|
3737
|
+
let u;
|
|
3738
|
+
return n[4] === a ? u = n[5] : (u = [a, o], n[4] = a, n[5] = u), u;
|
|
3739
|
+
}
|
|
3740
|
+
//#endregion
|
|
3728
3741
|
//#region src/hooks/useDebounce.ts
|
|
3729
|
-
|
|
3730
|
-
function Cc(e, t) {
|
|
3742
|
+
function Tc(e, t) {
|
|
3731
3743
|
let n = (0, $.c)(4), [r, i] = (0, R.useState)(e), a, o;
|
|
3732
3744
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
3733
3745
|
let n = setTimeout(() => i(e), t);
|
|
@@ -3736,47 +3748,43 @@ function Cc(e, t) {
|
|
|
3736
3748
|
};
|
|
3737
3749
|
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, R.useEffect)(a, o), r;
|
|
3738
3750
|
}
|
|
3739
|
-
function
|
|
3740
|
-
let t = (0, $.c)(
|
|
3741
|
-
t[0]
|
|
3742
|
-
s(n);
|
|
3743
|
-
}, d = [n], t[0] = n, t[1] = u, t[2] = d), (0, R.useEffect)(u, d);
|
|
3744
|
-
let f;
|
|
3745
|
-
t[3] !== c || t[4] !== a || t[5] !== n || t[6] !== l ? (f = () => {
|
|
3751
|
+
function Ec(e) {
|
|
3752
|
+
let t = (0, $.c)(16), { initialValue: n, onChange: r, delay: i, disabled: a } = e, [o, s] = wc(n, Object.is), c = Tc(o, i || 200), l = ge(r), u;
|
|
3753
|
+
t[0] !== c || t[1] !== a || t[2] !== n || t[3] !== l ? (u = () => {
|
|
3746
3754
|
a || c !== n && l(c);
|
|
3747
|
-
}, t[
|
|
3748
|
-
let
|
|
3749
|
-
if (t[
|
|
3755
|
+
}, t[0] = c, t[1] = a, t[2] = n, t[3] = l, t[4] = u) : u = t[4];
|
|
3756
|
+
let d;
|
|
3757
|
+
if (t[5] !== c || t[6] !== a || t[7] !== l ? (d = [
|
|
3750
3758
|
c,
|
|
3751
3759
|
a,
|
|
3752
3760
|
l
|
|
3753
|
-
], t[
|
|
3761
|
+
], t[5] = c, t[6] = a, t[7] = l, t[8] = d) : d = t[8], (0, R.useEffect)(u, d), a) {
|
|
3754
3762
|
let e;
|
|
3755
|
-
return t[
|
|
3763
|
+
return t[9] !== o || t[10] !== r ? (e = {
|
|
3756
3764
|
value: o,
|
|
3757
3765
|
debouncedValue: o,
|
|
3758
3766
|
onChange: r
|
|
3759
|
-
}, t[
|
|
3767
|
+
}, t[9] = o, t[10] = r, t[11] = e) : e = t[11], e;
|
|
3760
3768
|
}
|
|
3761
|
-
let
|
|
3762
|
-
return t[
|
|
3769
|
+
let f;
|
|
3770
|
+
return t[12] !== c || t[13] !== o || t[14] !== s ? (f = {
|
|
3763
3771
|
value: o,
|
|
3764
3772
|
debouncedValue: c,
|
|
3765
3773
|
onChange: s
|
|
3766
|
-
}, t[
|
|
3774
|
+
}, t[12] = c, t[13] = o, t[14] = s, t[15] = f) : f = t[15], f;
|
|
3767
3775
|
}
|
|
3768
|
-
function
|
|
3776
|
+
function Dc(e, t) {
|
|
3769
3777
|
let n = (0, $.c)(3), r = ge(e), i;
|
|
3770
3778
|
return n[0] !== t || n[1] !== r ? (i = he(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
|
|
3771
3779
|
}
|
|
3772
3780
|
//#endregion
|
|
3773
3781
|
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/utils.mjs
|
|
3774
|
-
var
|
|
3775
|
-
function
|
|
3782
|
+
var Oc = Symbol("default");
|
|
3783
|
+
function kc({ values: e, children: t }) {
|
|
3776
3784
|
for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
|
|
3777
3785
|
return t;
|
|
3778
3786
|
}
|
|
3779
|
-
function
|
|
3787
|
+
function Ac(e) {
|
|
3780
3788
|
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
|
|
3781
3789
|
return (0, R.useMemo)(() => {
|
|
3782
3790
|
let e, l, u;
|
|
@@ -3810,14 +3818,14 @@ function Oc(e) {
|
|
|
3810
3818
|
c
|
|
3811
3819
|
]);
|
|
3812
3820
|
}
|
|
3813
|
-
function
|
|
3821
|
+
function jc(e, t) {
|
|
3814
3822
|
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
3815
3823
|
}
|
|
3816
|
-
function
|
|
3824
|
+
function Mc(e, t) {
|
|
3817
3825
|
let n = (0, R.useContext)(e);
|
|
3818
3826
|
if (t === null) return null;
|
|
3819
3827
|
if (n && typeof n == "object" && "slots" in n && n.slots) {
|
|
3820
|
-
let e = t ||
|
|
3828
|
+
let e = t || Oc;
|
|
3821
3829
|
if (!n.slots[e]) {
|
|
3822
3830
|
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
3823
3831
|
throw Error(`${r} Valid slot names are ${e}.`);
|
|
@@ -3826,8 +3834,8 @@ function Ac(e, t) {
|
|
|
3826
3834
|
}
|
|
3827
3835
|
return n;
|
|
3828
3836
|
}
|
|
3829
|
-
function
|
|
3830
|
-
let { ref: r, ...i } =
|
|
3837
|
+
function Nc(e, t, n) {
|
|
3838
|
+
let { ref: r, ...i } = Mc(n, e.slot) || {}, a = Qi((0, R.useMemo)(() => Fi(t, r), [t, r])), o = X(i, e);
|
|
3831
3839
|
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
|
|
3832
3840
|
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
3833
3841
|
...t.defaultStyle,
|
|
@@ -3845,7 +3853,7 @@ function jc(e, t, n) {
|
|
|
3845
3853
|
...e.style
|
|
3846
3854
|
}), [o, a];
|
|
3847
3855
|
}
|
|
3848
|
-
function
|
|
3856
|
+
function Pc(e = !0) {
|
|
3849
3857
|
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
|
|
3850
3858
|
r.current = !0, n(!!e);
|
|
3851
3859
|
}, []);
|
|
@@ -3853,12 +3861,12 @@ function Mc(e = !0) {
|
|
|
3853
3861
|
r.current || n(!1);
|
|
3854
3862
|
}, []), [i, t];
|
|
3855
3863
|
}
|
|
3856
|
-
function
|
|
3864
|
+
function Fc(e) {
|
|
3857
3865
|
let t = /^(data-.*)$/, n = {};
|
|
3858
3866
|
for (let r in e) t.test(r) || (n[r] = e[r]);
|
|
3859
3867
|
return n;
|
|
3860
3868
|
}
|
|
3861
|
-
function
|
|
3869
|
+
function Ic(e, t, n) {
|
|
3862
3870
|
let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => Fi(n, a), [n, a]);
|
|
3863
3871
|
Y(() => {}, [e, r]);
|
|
3864
3872
|
let s = {
|
|
@@ -3867,22 +3875,22 @@ function Pc(e, t, n) {
|
|
|
3867
3875
|
};
|
|
3868
3876
|
return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
|
|
3869
3877
|
}
|
|
3870
|
-
var
|
|
3878
|
+
var Lc = {}, Rc = new Proxy({}, { get(e, t) {
|
|
3871
3879
|
if (typeof t != "string") return;
|
|
3872
|
-
let n =
|
|
3873
|
-
return n || (n = /*#__PURE__*/ (0, R.forwardRef)(
|
|
3874
|
-
} }),
|
|
3875
|
-
[e, t] =
|
|
3876
|
-
let { elementType: n = "label", ...r } = e, i =
|
|
3880
|
+
let n = Lc[t];
|
|
3881
|
+
return n || (n = /*#__PURE__*/ (0, R.forwardRef)(Ic.bind(null, t)), Lc[t] = n), n;
|
|
3882
|
+
} }), zc = /*#__PURE__*/ (0, R.createContext)({}), Bc = /*#__PURE__*/ ia(function(e, t) {
|
|
3883
|
+
[e, t] = Nc(e, t, zc);
|
|
3884
|
+
let { elementType: n = "label", ...r } = e, i = Rc[n];
|
|
3877
3885
|
return /*#__PURE__*/ R.createElement(i, {
|
|
3878
3886
|
className: "react-aria-Label",
|
|
3879
3887
|
...r,
|
|
3880
3888
|
ref: t
|
|
3881
3889
|
});
|
|
3882
|
-
}),
|
|
3883
|
-
[e, t] =
|
|
3890
|
+
}), Vc = /*#__PURE__*/ (0, R.createContext)(null), Hc = /*#__PURE__*/ (0, R.createContext)({}), Uc = /*#__PURE__*/ ia(function(e, t) {
|
|
3891
|
+
[e, t] = Nc(e, t, Hc);
|
|
3884
3892
|
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = eo(e, t);
|
|
3885
|
-
i =
|
|
3893
|
+
i = Gc(i, r);
|
|
3886
3894
|
let { focusProps: o, isFocused: s, isFocusVisible: c } = gc(e), { hoverProps: l, isHovered: u } = Sc({
|
|
3887
3895
|
...e,
|
|
3888
3896
|
isDisabled: e.isDisabled || r
|
|
@@ -3893,7 +3901,7 @@ var Fc = {}, Ic = new Proxy({}, { get(e, t) {
|
|
|
3893
3901
|
isFocusVisible: c,
|
|
3894
3902
|
isDisabled: e.isDisabled || !1,
|
|
3895
3903
|
isPending: r ?? !1
|
|
3896
|
-
}, f =
|
|
3904
|
+
}, f = Ac({
|
|
3897
3905
|
...e,
|
|
3898
3906
|
values: d,
|
|
3899
3907
|
defaultClassName: "react-aria-Button"
|
|
@@ -3910,7 +3918,7 @@ var Fc = {}, Ic = new Proxy({}, { get(e, t) {
|
|
|
3910
3918
|
p
|
|
3911
3919
|
]);
|
|
3912
3920
|
let _ = Aa(e, { global: !0 });
|
|
3913
|
-
return delete _.onClick, /*#__PURE__*/ R.createElement(
|
|
3921
|
+
return delete _.onClick, /*#__PURE__*/ R.createElement(Rc.button, {
|
|
3914
3922
|
...X(_, f, i, o, l),
|
|
3915
3923
|
type: i.type === "submit" && r ? "button" : i.type,
|
|
3916
3924
|
id: p,
|
|
@@ -3924,46 +3932,46 @@ var Fc = {}, Ic = new Proxy({}, { get(e, t) {
|
|
|
3924
3932
|
"data-focused": s || void 0,
|
|
3925
3933
|
"data-pending": r || void 0,
|
|
3926
3934
|
"data-focus-visible": c || void 0
|
|
3927
|
-
}, /*#__PURE__*/ R.createElement(
|
|
3928
|
-
}),
|
|
3929
|
-
function
|
|
3935
|
+
}, /*#__PURE__*/ R.createElement(Vc.Provider, { value: { id: m } }, f.children));
|
|
3936
|
+
}), Wc = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
3937
|
+
function Gc(e, t) {
|
|
3930
3938
|
if (t) {
|
|
3931
|
-
for (let t in e) t.startsWith("on") && !
|
|
3939
|
+
for (let t in e) t.startsWith("on") && !Wc.test(t) && (e[t] = void 0);
|
|
3932
3940
|
e.href = void 0, e.target = void 0;
|
|
3933
3941
|
}
|
|
3934
3942
|
return e;
|
|
3935
3943
|
}
|
|
3936
3944
|
//#endregion
|
|
3937
3945
|
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Text.mjs
|
|
3938
|
-
var
|
|
3939
|
-
[e, t] =
|
|
3940
|
-
let { elementType: n = "span", ...r } = e, i =
|
|
3946
|
+
var Kc = /*#__PURE__*/ (0, R.createContext)({}), qc = /*#__PURE__*/ ia(function(e, t) {
|
|
3947
|
+
[e, t] = Nc(e, t, Kc);
|
|
3948
|
+
let { elementType: n = "span", ...r } = e, i = Rc[n];
|
|
3941
3949
|
return /*#__PURE__*/ R.createElement(i, {
|
|
3942
3950
|
className: "react-aria-Text",
|
|
3943
3951
|
...r,
|
|
3944
3952
|
ref: t
|
|
3945
3953
|
});
|
|
3946
|
-
}),
|
|
3947
|
-
return (0, R.useContext)(
|
|
3954
|
+
}), Jc = /*#__PURE__*/ (0, R.createContext)(null), Yc = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
|
|
3955
|
+
return (0, R.useContext)(Jc)?.isInvalid ? /*#__PURE__*/ R.createElement(Xc, {
|
|
3948
3956
|
...e,
|
|
3949
3957
|
ref: t
|
|
3950
3958
|
}) : null;
|
|
3951
|
-
}),
|
|
3952
|
-
let n = (0, R.useContext)(
|
|
3959
|
+
}), Xc = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
|
|
3960
|
+
let n = (0, R.useContext)(Jc), { elementType: r, ...i } = e, a = Aa(i, { global: !0 }), o = Ac({
|
|
3953
3961
|
...i,
|
|
3954
3962
|
defaultClassName: "react-aria-FieldError",
|
|
3955
3963
|
defaultChildren: n.validationErrors.length === 0 ? void 0 : n.validationErrors.join(" "),
|
|
3956
3964
|
values: n
|
|
3957
3965
|
});
|
|
3958
|
-
return o.children == null ? null : /*#__PURE__*/ R.createElement(
|
|
3966
|
+
return o.children == null ? null : /*#__PURE__*/ R.createElement(qc, {
|
|
3959
3967
|
slot: "errorMessage",
|
|
3960
3968
|
elementType: r,
|
|
3961
3969
|
...a,
|
|
3962
3970
|
...o,
|
|
3963
3971
|
ref: t
|
|
3964
3972
|
});
|
|
3965
|
-
}),
|
|
3966
|
-
[e, t] =
|
|
3973
|
+
}), Zc = /*#__PURE__*/ (0, R.createContext)(null), Qc = /*#__PURE__*/ (0, R.createContext)({}), $c = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
|
|
3974
|
+
[e, t] = Nc(e, t, Qc);
|
|
3967
3975
|
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
|
|
3968
3976
|
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
|
|
3969
3977
|
let { hoverProps: l, isHovered: u } = Sc({
|
|
@@ -3971,7 +3979,7 @@ var Wc = /*#__PURE__*/ (0, R.createContext)({}), Gc = /*#__PURE__*/ ia(function(
|
|
|
3971
3979
|
onHoverChange: o,
|
|
3972
3980
|
onHoverEnd: s,
|
|
3973
3981
|
isDisabled: n
|
|
3974
|
-
}), { isFocused: d, isFocusVisible: f, focusProps: p } = gc({ within: !0 }), m =
|
|
3982
|
+
}), { isFocused: d, isFocusVisible: f, focusProps: p } = gc({ within: !0 }), m = Ac({
|
|
3975
3983
|
...e,
|
|
3976
3984
|
values: {
|
|
3977
3985
|
isHovered: u,
|
|
@@ -3982,7 +3990,7 @@ var Wc = /*#__PURE__*/ (0, R.createContext)({}), Gc = /*#__PURE__*/ ia(function(
|
|
|
3982
3990
|
},
|
|
3983
3991
|
defaultClassName: "react-aria-Group"
|
|
3984
3992
|
});
|
|
3985
|
-
return /*#__PURE__*/ R.createElement(
|
|
3993
|
+
return /*#__PURE__*/ R.createElement(Rc.div, {
|
|
3986
3994
|
...X(c, p, l),
|
|
3987
3995
|
...m,
|
|
3988
3996
|
ref: t,
|
|
@@ -3995,18 +4003,18 @@ var Wc = /*#__PURE__*/ (0, R.createContext)({}), Gc = /*#__PURE__*/ ia(function(
|
|
|
3995
4003
|
"data-invalid": r || void 0,
|
|
3996
4004
|
"data-readonly": i || void 0
|
|
3997
4005
|
}, m.children);
|
|
3998
|
-
}),
|
|
4006
|
+
}), el = /*#__PURE__*/ (0, R.createContext)({}), tl = (e) => {
|
|
3999
4007
|
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
|
|
4000
4008
|
return i;
|
|
4001
|
-
},
|
|
4002
|
-
[e, t] =
|
|
4009
|
+
}, nl = /*#__PURE__*/ ia(function(e, t) {
|
|
4010
|
+
[e, t] = Nc(e, t, el);
|
|
4003
4011
|
let { hoverProps: n, isHovered: r } = Sc({
|
|
4004
4012
|
...e,
|
|
4005
4013
|
isDisabled: e.disabled
|
|
4006
4014
|
}), { isFocused: i, isFocusVisible: a, focusProps: o } = gc({
|
|
4007
4015
|
isTextInput: !0,
|
|
4008
4016
|
autoFocus: e.autoFocus
|
|
4009
|
-
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c =
|
|
4017
|
+
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Ac({
|
|
4010
4018
|
...e,
|
|
4011
4019
|
values: {
|
|
4012
4020
|
isHovered: r,
|
|
@@ -4017,8 +4025,8 @@ var Wc = /*#__PURE__*/ (0, R.createContext)({}), Gc = /*#__PURE__*/ ia(function(
|
|
|
4017
4025
|
},
|
|
4018
4026
|
defaultClassName: "react-aria-Input"
|
|
4019
4027
|
});
|
|
4020
|
-
return /*#__PURE__*/ R.createElement(
|
|
4021
|
-
...X(
|
|
4028
|
+
return /*#__PURE__*/ R.createElement(Rc.input, {
|
|
4029
|
+
...X(tl(e), o, n),
|
|
4022
4030
|
...c,
|
|
4023
4031
|
ref: t,
|
|
4024
4032
|
"data-focused": i || void 0,
|
|
@@ -4030,7 +4038,7 @@ var Wc = /*#__PURE__*/ (0, R.createContext)({}), Gc = /*#__PURE__*/ ia(function(
|
|
|
4030
4038
|
});
|
|
4031
4039
|
//#endregion
|
|
4032
4040
|
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.3.0/node_modules/react-stately/dist/private/numberfield/useNumberFieldState.mjs
|
|
4033
|
-
function
|
|
4041
|
+
function rl(e) {
|
|
4034
4042
|
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u, commitBehavior: d = "snap" } = e;
|
|
4035
4043
|
a === null && (a = NaN);
|
|
4036
4044
|
let f = (0, R.useCallback)((e) => r === void 0 || isNaN(r) ? ko(e, t, n) : jo(e, t, n, r), [
|
|
@@ -4052,7 +4060,7 @@ function tl(e) {
|
|
|
4052
4060
|
}), w = r !== void 0 && !isNaN(r) ? r : 1;
|
|
4053
4061
|
x.style === "percent" && (r === void 0 || isNaN(r)) && (w = .01);
|
|
4054
4062
|
let [T, E] = (0, R.useState)(p), [D, O] = (0, R.useState)(c), [ee, k] = (0, R.useState)(i);
|
|
4055
|
-
(!Object.is(p, T) || c !== D || !
|
|
4063
|
+
(!Object.is(p, T) || c !== D || !il(i, ee)) && (_(S(p)), E(p), O(c), k(i));
|
|
4056
4064
|
let A = (0, R.useMemo)(() => v.parse(g), [v, g]), j = (e) => {
|
|
4057
4065
|
let t = e === void 0 ? g : e, n = A;
|
|
4058
4066
|
if (e !== void 0 && (n = v.parse(t)), !t.length) {
|
|
@@ -4072,7 +4080,7 @@ function tl(e) {
|
|
|
4072
4080
|
if (isNaN(i)) return jo(isNaN(r) ? 0 : r, t, n, w);
|
|
4073
4081
|
{
|
|
4074
4082
|
let r = jo(i, t, n, w);
|
|
4075
|
-
return e === "+" && r > i || e === "-" && r < i ? r : jo(
|
|
4083
|
+
return e === "+" && r > i || e === "-" && r < i ? r : jo(al(e, i, w), t, n, w);
|
|
4076
4084
|
}
|
|
4077
4085
|
}, N = () => {
|
|
4078
4086
|
let e = M("+", t);
|
|
@@ -4084,14 +4092,14 @@ function tl(e) {
|
|
|
4084
4092
|
n != null && (m(jo(n, t, n, w)), C.commitValidation());
|
|
4085
4093
|
}, I = () => {
|
|
4086
4094
|
t != null && (m(t), C.commitValidation());
|
|
4087
|
-
}, te = (0, R.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || jo(A, t, n, w) > A ||
|
|
4095
|
+
}, te = (0, R.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || jo(A, t, n, w) > A || al("+", A, w) <= n), [
|
|
4088
4096
|
l,
|
|
4089
4097
|
u,
|
|
4090
4098
|
t,
|
|
4091
4099
|
n,
|
|
4092
4100
|
w,
|
|
4093
4101
|
A
|
|
4094
|
-
]), ne = (0, R.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || jo(A, t, n, w) < A ||
|
|
4102
|
+
]), ne = (0, R.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || jo(A, t, n, w) < A || al("-", A, w) >= t), [
|
|
4095
4103
|
l,
|
|
4096
4104
|
u,
|
|
4097
4105
|
t,
|
|
@@ -4118,7 +4126,7 @@ function tl(e) {
|
|
|
4118
4126
|
commit: j
|
|
4119
4127
|
};
|
|
4120
4128
|
}
|
|
4121
|
-
function
|
|
4129
|
+
function il(e, t) {
|
|
4122
4130
|
if (e === t) return !0;
|
|
4123
4131
|
if (!e || !t) return !1;
|
|
4124
4132
|
let n = Object.keys(e), r = Object.keys(t);
|
|
@@ -4126,7 +4134,7 @@ function nl(e, t) {
|
|
|
4126
4134
|
for (let r of n) if (t[r] !== e[r]) return !1;
|
|
4127
4135
|
return !0;
|
|
4128
4136
|
}
|
|
4129
|
-
function
|
|
4137
|
+
function al(e, t, n) {
|
|
4130
4138
|
let r = e === "+" ? t + n : t - n;
|
|
4131
4139
|
if (t % 1 != 0 || n % 1 != 0) {
|
|
4132
4140
|
let i = t.toString().split("."), a = n.toString().split("."), o = i[1] && i[1].length || 0, s = a[1] && a[1].length || 0, c = 10 ** Math.max(o, s);
|
|
@@ -4136,17 +4144,17 @@ function rl(e, t, n) {
|
|
|
4136
4144
|
}
|
|
4137
4145
|
//#endregion
|
|
4138
4146
|
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/NumberField.mjs
|
|
4139
|
-
var
|
|
4140
|
-
[e, t] =
|
|
4141
|
-
let { validationBehavior: n } =
|
|
4147
|
+
var ol = /*#__PURE__*/ (0, R.createContext)(null), sl = /*#__PURE__*/ (0, R.createContext)(null), cl = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
|
|
4148
|
+
[e, t] = Nc(e, t, ol);
|
|
4149
|
+
let { validationBehavior: n } = Mc(Zc) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = de(), a = rl({
|
|
4142
4150
|
...e,
|
|
4143
4151
|
locale: i,
|
|
4144
4152
|
validationBehavior: r
|
|
4145
|
-
}), o = (0, R.useRef)(null), [s, c] =
|
|
4146
|
-
...
|
|
4153
|
+
}), o = (0, R.useRef)(null), [s, c] = Pc(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: h, ...g } = mc({
|
|
4154
|
+
...Fc(e),
|
|
4147
4155
|
label: c,
|
|
4148
4156
|
validationBehavior: r
|
|
4149
|
-
}, a, o), _ =
|
|
4157
|
+
}, a, o), _ = Ac({
|
|
4150
4158
|
...e,
|
|
4151
4159
|
values: {
|
|
4152
4160
|
state: a,
|
|
@@ -4157,27 +4165,27 @@ var il = /*#__PURE__*/ (0, R.createContext)(null), al = /*#__PURE__*/ (0, R.crea
|
|
|
4157
4165
|
},
|
|
4158
4166
|
defaultClassName: "react-aria-NumberField"
|
|
4159
4167
|
}), v = Aa(e, { global: !0 });
|
|
4160
|
-
return delete v.id, /*#__PURE__*/ R.createElement(
|
|
4161
|
-
[
|
|
4162
|
-
[
|
|
4163
|
-
[
|
|
4168
|
+
return delete v.id, /*#__PURE__*/ R.createElement(kc, { values: [
|
|
4169
|
+
[sl, a],
|
|
4170
|
+
[Qc, u],
|
|
4171
|
+
[el, {
|
|
4164
4172
|
...d,
|
|
4165
4173
|
ref: o
|
|
4166
4174
|
}],
|
|
4167
|
-
[
|
|
4175
|
+
[zc, {
|
|
4168
4176
|
...l,
|
|
4169
4177
|
ref: s
|
|
4170
4178
|
}],
|
|
4171
|
-
[
|
|
4179
|
+
[Hc, { slots: {
|
|
4172
4180
|
increment: f,
|
|
4173
4181
|
decrement: p
|
|
4174
4182
|
} }],
|
|
4175
|
-
[
|
|
4183
|
+
[Kc, { slots: {
|
|
4176
4184
|
description: m,
|
|
4177
4185
|
errorMessage: h
|
|
4178
4186
|
} }],
|
|
4179
|
-
[
|
|
4180
|
-
] }, /*#__PURE__*/ R.createElement(
|
|
4187
|
+
[Jc, g]
|
|
4188
|
+
] }, /*#__PURE__*/ R.createElement(Rc.div, {
|
|
4181
4189
|
...v,
|
|
4182
4190
|
..._,
|
|
4183
4191
|
ref: t,
|
|
@@ -4193,7 +4201,7 @@ var il = /*#__PURE__*/ (0, R.createContext)(null), al = /*#__PURE__*/ (0, R.crea
|
|
|
4193
4201
|
value: isNaN(a.numberValue) ? "" : a.numberValue,
|
|
4194
4202
|
disabled: e.isDisabled || void 0
|
|
4195
4203
|
}));
|
|
4196
|
-
}),
|
|
4204
|
+
}), ll = _e((e) => {
|
|
4197
4205
|
for (let n of [
|
|
4198
4206
|
100,
|
|
4199
4207
|
20,
|
|
@@ -4208,48 +4216,51 @@ var il = /*#__PURE__*/ (0, R.createContext)(null), al = /*#__PURE__*/ (0, R.crea
|
|
|
4208
4216
|
t.error(e);
|
|
4209
4217
|
}
|
|
4210
4218
|
return 0;
|
|
4211
|
-
})
|
|
4212
|
-
|
|
4219
|
+
}), ul = _e((e) => new Intl.NumberFormat(e, {
|
|
4220
|
+
minimumFractionDigits: 1,
|
|
4221
|
+
maximumFractionDigits: 1,
|
|
4222
|
+
notation: "scientific"
|
|
4223
|
+
})), dl = _e((e) => new Intl.NumberFormat(e, {
|
|
4224
|
+
minimumFractionDigits: 0,
|
|
4225
|
+
maximumFractionDigits: 2
|
|
4226
|
+
})), fl = _e((e) => new Intl.NumberFormat(e, {
|
|
4227
|
+
notation: "engineering",
|
|
4228
|
+
maximumSignificantDigits: 3
|
|
4229
|
+
}));
|
|
4230
|
+
function pl(e) {
|
|
4213
4231
|
if (!Number.isFinite(e) || e === 0) return 0;
|
|
4214
4232
|
let t = e.toFixed(12).replace(/\.?0+$/, ""), n = t.indexOf(".");
|
|
4215
4233
|
return n === -1 ? 0 : t.length - n - 1;
|
|
4216
4234
|
}
|
|
4217
|
-
function
|
|
4218
|
-
let n =
|
|
4219
|
-
for (let t of e) n = Math.max(n,
|
|
4235
|
+
function ml(e, t) {
|
|
4236
|
+
let n = pl(t);
|
|
4237
|
+
for (let t of e) n = Math.max(n, pl(t));
|
|
4220
4238
|
return n;
|
|
4221
4239
|
}
|
|
4222
|
-
function
|
|
4240
|
+
function hl(e, t) {
|
|
4223
4241
|
return Number(e.toFixed(t));
|
|
4224
4242
|
}
|
|
4225
|
-
function
|
|
4243
|
+
function gl(e, t) {
|
|
4226
4244
|
return e == null ? "" : Array.isArray(e) ? String(e) : typeof e == "string" ? e : typeof e == "boolean" ? String(e) : typeof e == "number" || typeof e == "bigint" ? e.toLocaleString(t, {
|
|
4227
4245
|
minimumFractionDigits: 0,
|
|
4228
4246
|
maximumFractionDigits: 2
|
|
4229
4247
|
}) : String(e);
|
|
4230
4248
|
}
|
|
4231
|
-
function
|
|
4249
|
+
function _l(e) {
|
|
4232
4250
|
return e === 0 ? "0" : Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? null : e > 0 ? "Infinity" : "-Infinity";
|
|
4233
4251
|
}
|
|
4234
|
-
function
|
|
4235
|
-
let n =
|
|
4252
|
+
function vl(e, t) {
|
|
4253
|
+
let n = _l(e);
|
|
4236
4254
|
if (n !== null) return n;
|
|
4237
4255
|
let r = Math.abs(e);
|
|
4238
|
-
if (r < .01 || r >= 1e6) return
|
|
4239
|
-
minimumFractionDigits: 1,
|
|
4240
|
-
maximumFractionDigits: 1,
|
|
4241
|
-
notation: "scientific"
|
|
4242
|
-
}).format(e).toLowerCase();
|
|
4256
|
+
if (r < .01 || r >= 1e6) return ul(t.locale).format(e).toLowerCase();
|
|
4243
4257
|
let { shouldRound: i, locale: a } = t;
|
|
4244
|
-
return i ?
|
|
4245
|
-
minimumFractionDigits: 0,
|
|
4246
|
-
maximumFractionDigits: 2
|
|
4247
|
-
}).format(e) : e.toLocaleString(a, {
|
|
4258
|
+
return i ? dl(a).format(e) : e.toLocaleString(a, {
|
|
4248
4259
|
minimumFractionDigits: 0,
|
|
4249
|
-
maximumFractionDigits:
|
|
4260
|
+
maximumFractionDigits: ll(a)
|
|
4250
4261
|
});
|
|
4251
4262
|
}
|
|
4252
|
-
var
|
|
4263
|
+
var yl = {
|
|
4253
4264
|
24: "Y",
|
|
4254
4265
|
21: "Z",
|
|
4255
4266
|
18: "E",
|
|
@@ -4268,22 +4279,19 @@ var ml = {
|
|
|
4268
4279
|
"-21": "z",
|
|
4269
4280
|
"-24": "y"
|
|
4270
4281
|
};
|
|
4271
|
-
function
|
|
4272
|
-
let n =
|
|
4282
|
+
function bl(e, t) {
|
|
4283
|
+
let n = _l(e);
|
|
4273
4284
|
if (n !== null) return n;
|
|
4274
|
-
let [r, i] =
|
|
4275
|
-
|
|
4276
|
-
maximumSignificantDigits: 3
|
|
4277
|
-
}).format(e).split("E");
|
|
4278
|
-
return i in ml ? r + ml[i] : `${r}E${i}`;
|
|
4285
|
+
let [r, i] = fl(t).format(e).split("E");
|
|
4286
|
+
return i in yl ? r + yl[i] : `${r}E${i}`;
|
|
4279
4287
|
}
|
|
4280
4288
|
//#endregion
|
|
4281
4289
|
//#region src/components/ui/number-field.tsx
|
|
4282
|
-
var
|
|
4290
|
+
var xl = R.forwardRef((e, t) => {
|
|
4283
4291
|
let r = (0, $.c)(53), i, a, o, s, c;
|
|
4284
4292
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
4285
4293
|
let l = c === void 0 ? "default" : c, { locale: u } = de(), d;
|
|
4286
|
-
r[6] === u ? d = r[7] : (d =
|
|
4294
|
+
r[6] === u ? d = r[7] : (d = ll(u), r[6] = u, r[7] = d);
|
|
4287
4295
|
let f;
|
|
4288
4296
|
r[8] !== i || r[9] !== d ? (f = {
|
|
4289
4297
|
minimumFractionDigits: 0,
|
|
@@ -4297,11 +4305,11 @@ var gl = R.forwardRef((e, t) => {
|
|
|
4297
4305
|
let y = l === "default" ? "px-1.5" : "px-1", b;
|
|
4298
4306
|
r[17] === y ? b = r[18] : (b = n("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", y), r[17] = y, r[18] = b);
|
|
4299
4307
|
let S;
|
|
4300
|
-
r[19] !== o || r[20] !== s.isDisabled || r[21] !== t || r[22] !== b || r[23] !== v ? (S = /* @__PURE__ */ (0, z.jsx)(
|
|
4308
|
+
r[19] !== o || r[20] !== s.isDisabled || r[21] !== t || r[22] !== b || r[23] !== v ? (S = /* @__PURE__ */ (0, z.jsx)(nl, {
|
|
4301
4309
|
ref: t,
|
|
4302
4310
|
disabled: _,
|
|
4303
4311
|
placeholder: o,
|
|
4304
|
-
onKeyDown:
|
|
4312
|
+
onKeyDown: Cl,
|
|
4305
4313
|
onInput: v,
|
|
4306
4314
|
className: b
|
|
4307
4315
|
}), r[19] = o, r[20] = s.isDisabled, r[21] = t, r[22] = b, r[23] = v, r[24] = S) : S = r[24];
|
|
@@ -4313,7 +4321,7 @@ var gl = R.forwardRef((e, t) => {
|
|
|
4313
4321
|
className: T
|
|
4314
4322
|
}), r[27] = T, r[28] = E);
|
|
4315
4323
|
let D;
|
|
4316
|
-
r[29] !== s.isDisabled || r[30] !== E || r[31] !== l ? (D = /* @__PURE__ */ (0, z.jsx)(
|
|
4324
|
+
r[29] !== s.isDisabled || r[30] !== E || r[31] !== l ? (D = /* @__PURE__ */ (0, z.jsx)(Sl, {
|
|
4317
4325
|
slot: "increment",
|
|
4318
4326
|
isDisabled: C,
|
|
4319
4327
|
variant: l,
|
|
@@ -4330,7 +4338,7 @@ var gl = R.forwardRef((e, t) => {
|
|
|
4330
4338
|
className: A
|
|
4331
4339
|
}), r[36] = A, r[37] = j);
|
|
4332
4340
|
let M;
|
|
4333
|
-
r[38] !== s.isDisabled || r[39] !== j || r[40] !== l ? (M = /* @__PURE__ */ (0, z.jsx)(
|
|
4341
|
+
r[38] !== s.isDisabled || r[39] !== j || r[40] !== l ? (M = /* @__PURE__ */ (0, z.jsx)(Sl, {
|
|
4334
4342
|
slot: "decrement",
|
|
4335
4343
|
isDisabled: ee,
|
|
4336
4344
|
variant: l,
|
|
@@ -4352,28 +4360,28 @@ var gl = R.forwardRef((e, t) => {
|
|
|
4352
4360
|
children: [S, N]
|
|
4353
4361
|
}), r[45] = S, r[46] = N, r[47] = g, r[48] = P) : P = r[48];
|
|
4354
4362
|
let F;
|
|
4355
|
-
return r[49] !== s || r[50] !== P || r[51] !== f ? (F = /* @__PURE__ */ (0, z.jsx)(
|
|
4363
|
+
return r[49] !== s || r[50] !== P || r[51] !== f ? (F = /* @__PURE__ */ (0, z.jsx)(cl, {
|
|
4356
4364
|
...s,
|
|
4357
4365
|
formatOptions: f,
|
|
4358
4366
|
children: P
|
|
4359
4367
|
}), r[49] = s, r[50] = P, r[51] = f, r[52] = F) : F = r[52], F;
|
|
4360
4368
|
});
|
|
4361
|
-
|
|
4362
|
-
var
|
|
4369
|
+
xl.displayName = "NumberField";
|
|
4370
|
+
var Sl = (e) => {
|
|
4363
4371
|
let t = (0, $.c)(6), r = !e.isDisabled && "hover:text-primary hover:bg-muted", i = e.variant === "default" ? "px-0.5" : "px-0.25", a;
|
|
4364
4372
|
t[0] !== r || t[1] !== i ? (a = n("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", r, i), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
|
|
4365
4373
|
let o;
|
|
4366
|
-
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, z.jsx)(
|
|
4374
|
+
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, z.jsx)(Uc, {
|
|
4367
4375
|
...e,
|
|
4368
4376
|
className: a
|
|
4369
4377
|
}), t[3] = e, t[4] = a, t[5] = o) : o = t[5], o;
|
|
4370
4378
|
};
|
|
4371
|
-
function
|
|
4379
|
+
function Cl(e) {
|
|
4372
4380
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
4373
4381
|
}
|
|
4374
4382
|
//#endregion
|
|
4375
4383
|
//#region src/components/ui/input.tsx
|
|
4376
|
-
var
|
|
4384
|
+
var wl = /* @__PURE__ */ (0, z.jsx)(be, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), Tl = R.forwardRef((e, t) => {
|
|
4377
4385
|
let i = (0, $.c)(29), a, o, s, c;
|
|
4378
4386
|
i[0] === e ? (a = i[1], o = i[2], s = i[3], c = i[4]) : ({className: a, type: c, endAdornment: o, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s, i[4] = c);
|
|
4379
4387
|
let l = s.icon;
|
|
@@ -4419,8 +4427,8 @@ var yl = /* @__PURE__ */ (0, z.jsx)(be, { className: "mr-2 h-4 w-4 shrink-0 opac
|
|
|
4419
4427
|
]
|
|
4420
4428
|
}), i[24] = u, i[25] = d, i[26] = g, i[27] = _, i[28] = v) : v = i[28], v;
|
|
4421
4429
|
});
|
|
4422
|
-
|
|
4423
|
-
var
|
|
4430
|
+
Tl.displayName = "Input";
|
|
4431
|
+
var El = R.forwardRef((e, t) => {
|
|
4424
4432
|
let n = (0, $.c)(16), r, i, a;
|
|
4425
4433
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4426
4434
|
let o;
|
|
@@ -4429,10 +4437,10 @@ var xl = R.forwardRef((e, t) => {
|
|
|
4429
4437
|
delay: a.delay,
|
|
4430
4438
|
onChange: i
|
|
4431
4439
|
}, n[4] = i, n[5] = a.delay, n[6] = a.value, n[7] = o) : o = n[7];
|
|
4432
|
-
let { value: s, onChange: c } =
|
|
4440
|
+
let { value: s, onChange: c } = Ec(o), l;
|
|
4433
4441
|
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
4434
4442
|
let u;
|
|
4435
|
-
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, z.jsx)(
|
|
4443
|
+
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, z.jsx)(Tl, {
|
|
4436
4444
|
ref: t,
|
|
4437
4445
|
className: r,
|
|
4438
4446
|
...a,
|
|
@@ -4440,8 +4448,8 @@ var xl = R.forwardRef((e, t) => {
|
|
|
4440
4448
|
value: s
|
|
4441
4449
|
}), n[10] = r, n[11] = a, n[12] = t, n[13] = l, n[14] = s, n[15] = u) : u = n[15], u;
|
|
4442
4450
|
});
|
|
4443
|
-
|
|
4444
|
-
var
|
|
4451
|
+
El.displayName = "DebouncedInput";
|
|
4452
|
+
var Dl = R.forwardRef((e, t) => {
|
|
4445
4453
|
let n = (0, $.c)(13), r, i, a;
|
|
4446
4454
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4447
4455
|
let o;
|
|
@@ -4450,8 +4458,8 @@ var Sl = R.forwardRef((e, t) => {
|
|
|
4450
4458
|
delay: 200,
|
|
4451
4459
|
onChange: i
|
|
4452
4460
|
}, n[4] = i, n[5] = a.value, n[6] = o) : o = n[6];
|
|
4453
|
-
let { value: s, onChange: c } =
|
|
4454
|
-
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, z.jsx)(
|
|
4461
|
+
let { value: s, onChange: c } = Ec(o), l;
|
|
4462
|
+
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, z.jsx)(xl, {
|
|
4455
4463
|
ref: t,
|
|
4456
4464
|
className: r,
|
|
4457
4465
|
...a,
|
|
@@ -4459,11 +4467,11 @@ var Sl = R.forwardRef((e, t) => {
|
|
|
4459
4467
|
value: s
|
|
4460
4468
|
}), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
|
|
4461
4469
|
});
|
|
4462
|
-
|
|
4463
|
-
var
|
|
4470
|
+
Dl.displayName = "DebouncedNumberInput";
|
|
4471
|
+
var Ol = R.forwardRef((e, t) => {
|
|
4464
4472
|
let r = (0, $.c)(24), i, a, o, s, c;
|
|
4465
4473
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({className: i, rootClassName: o, icon: s, clearable: c, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
4466
|
-
let l = s === void 0 ?
|
|
4474
|
+
let l = s === void 0 ? wl : s, u = c === void 0 || c, d = R.useId(), f = a.id || d, p;
|
|
4467
4475
|
r[6] === o ? p = r[7] : (p = n("flex items-center border-b px-3", o), r[6] = o, r[7] = p);
|
|
4468
4476
|
let h;
|
|
4469
4477
|
r[8] === i ? h = r[9] : (h = n("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", i), r[8] = i, r[9] = h);
|
|
@@ -4498,8 +4506,8 @@ var Cl = R.forwardRef((e, t) => {
|
|
|
4498
4506
|
]
|
|
4499
4507
|
}), r[19] = l, r[20] = p, r[21] = g, r[22] = _, r[23] = v) : v = r[23], v;
|
|
4500
4508
|
});
|
|
4501
|
-
|
|
4502
|
-
var
|
|
4509
|
+
Ol.displayName = "SearchInput";
|
|
4510
|
+
var kl = R.forwardRef((e, t) => {
|
|
4503
4511
|
let n = (0, $.c)(23), r, i, a;
|
|
4504
4512
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4505
4513
|
let [o, s] = R.useState(a.value), c;
|
|
@@ -4519,7 +4527,7 @@ var wl = R.forwardRef((e, t) => {
|
|
|
4519
4527
|
e.key !== "Enter" || e.shiftKey || u(o || "");
|
|
4520
4528
|
}, n[12] = o, n[13] = u, n[14] = m, n[15] = h) : (m = n[14], h = n[15]);
|
|
4521
4529
|
let g;
|
|
4522
|
-
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, z.jsx)(
|
|
4530
|
+
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, z.jsx)(Tl, {
|
|
4523
4531
|
ref: t,
|
|
4524
4532
|
className: r,
|
|
4525
4533
|
...a,
|
|
@@ -4529,10 +4537,10 @@ var wl = R.forwardRef((e, t) => {
|
|
|
4529
4537
|
onKeyDown: h
|
|
4530
4538
|
}), n[16] = r, n[17] = o, n[18] = a, n[19] = t, n[20] = m, n[21] = h, n[22] = g) : g = n[22], g;
|
|
4531
4539
|
});
|
|
4532
|
-
|
|
4540
|
+
kl.displayName = "OnBlurredInput";
|
|
4533
4541
|
//#endregion
|
|
4534
4542
|
//#region src/components/ui/dropdown-menu.tsx
|
|
4535
|
-
var
|
|
4543
|
+
var Al = Jn, jl = Yn, Ml = Qn, Nl = F(Xn), Pl = P(Zn), Fl = P(sr), Il = ar, Ll = R.forwardRef((e, t) => {
|
|
4536
4544
|
let n = (0, $.c)(17), r, i, a, o, s;
|
|
4537
4545
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
4538
4546
|
let c = s === void 0 || s, l;
|
|
@@ -4550,21 +4558,21 @@ var Tl = Jn, El = Yn, Dl = Qn, Ol = F(Xn), kl = P(Zn), Al = P(sr), jl = ar, Ml =
|
|
|
4550
4558
|
children: [r, u]
|
|
4551
4559
|
}), n[11] = r, n[12] = o, n[13] = t, n[14] = l, n[15] = u, n[16] = d) : d = n[16], d;
|
|
4552
4560
|
});
|
|
4553
|
-
|
|
4554
|
-
var
|
|
4561
|
+
Ll.displayName = or.displayName;
|
|
4562
|
+
var Rl = R.forwardRef((e, t) => {
|
|
4555
4563
|
let r = (0, $.c)(9), i, a;
|
|
4556
4564
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
4557
4565
|
let o;
|
|
4558
4566
|
r[3] === i ? o = r[4] : (o = n(w({ subcontent: !0 }), "animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", i), r[3] = i, r[4] = o);
|
|
4559
4567
|
let s;
|
|
4560
|
-
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, z.jsx)(
|
|
4568
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, z.jsx)(Fl, {
|
|
4561
4569
|
ref: t,
|
|
4562
4570
|
className: o,
|
|
4563
4571
|
...a
|
|
4564
4572
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
4565
4573
|
});
|
|
4566
|
-
|
|
4567
|
-
var
|
|
4574
|
+
Rl.displayName = sr.displayName;
|
|
4575
|
+
var zl = R.forwardRef((e, t) => {
|
|
4568
4576
|
let r = (0, $.c)(17), i, a, o, s;
|
|
4569
4577
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
4570
4578
|
let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
|
|
@@ -4575,7 +4583,7 @@ var Pl = R.forwardRef((e, t) => {
|
|
|
4575
4583
|
maxHeight: d
|
|
4576
4584
|
}, r[8] = a.style, r[9] = d, r[10] = f) : f = r[10];
|
|
4577
4585
|
let p;
|
|
4578
|
-
return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, z.jsx)(
|
|
4586
|
+
return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, z.jsx)(Nl, { children: /* @__PURE__ */ (0, z.jsx)(j, { children: /* @__PURE__ */ (0, z.jsx)(Pl, {
|
|
4579
4587
|
ref: t,
|
|
4580
4588
|
sideOffset: l,
|
|
4581
4589
|
className: u,
|
|
@@ -4583,8 +4591,8 @@ var Pl = R.forwardRef((e, t) => {
|
|
|
4583
4591
|
...a
|
|
4584
4592
|
}) }) }), r[11] = a, r[12] = t, r[13] = l, r[14] = u, r[15] = f, r[16] = p) : p = r[16], p;
|
|
4585
4593
|
});
|
|
4586
|
-
|
|
4587
|
-
var
|
|
4594
|
+
zl.displayName = Zn.displayName;
|
|
4595
|
+
var Bl = R.forwardRef((e, t) => {
|
|
4588
4596
|
let n = (0, $.c)(13), r, i, a, o;
|
|
4589
4597
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: r, inset: i, variant: o, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
4590
4598
|
let s;
|
|
@@ -4600,8 +4608,8 @@ var Fl = R.forwardRef((e, t) => {
|
|
|
4600
4608
|
...a
|
|
4601
4609
|
}), n[9] = a, n[10] = t, n[11] = s, n[12] = c) : c = n[12], c;
|
|
4602
4610
|
});
|
|
4603
|
-
|
|
4604
|
-
var
|
|
4611
|
+
Bl.displayName = er.displayName;
|
|
4612
|
+
var Vl = R.forwardRef((e, t) => {
|
|
4605
4613
|
let n = (0, $.c)(15), r, i, a, o;
|
|
4606
4614
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: a, children: i, checked: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
4607
4615
|
let s;
|
|
@@ -4622,8 +4630,8 @@ var Il = R.forwardRef((e, t) => {
|
|
|
4622
4630
|
children: [l, i]
|
|
4623
4631
|
}), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
|
|
4624
4632
|
});
|
|
4625
|
-
|
|
4626
|
-
var
|
|
4633
|
+
Vl.displayName = tr.displayName;
|
|
4634
|
+
var Hl = R.forwardRef((e, t) => {
|
|
4627
4635
|
let n = (0, $.c)(13), r, i, a;
|
|
4628
4636
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: i, children: r, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4629
4637
|
let o;
|
|
@@ -4643,8 +4651,8 @@ var Ll = R.forwardRef((e, t) => {
|
|
|
4643
4651
|
children: [c, r]
|
|
4644
4652
|
}), n[8] = r, n[9] = a, n[10] = t, n[11] = o, n[12] = l) : l = n[12], l;
|
|
4645
4653
|
});
|
|
4646
|
-
|
|
4647
|
-
var
|
|
4654
|
+
Hl.displayName = nr.displayName;
|
|
4655
|
+
var Ul = R.forwardRef((e, t) => {
|
|
4648
4656
|
let n = (0, $.c)(11), r, i, a;
|
|
4649
4657
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, inset: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4650
4658
|
let o;
|
|
@@ -4659,8 +4667,8 @@ var Rl = R.forwardRef((e, t) => {
|
|
|
4659
4667
|
...a
|
|
4660
4668
|
}), n[7] = a, n[8] = t, n[9] = o, n[10] = s) : s = n[10], s;
|
|
4661
4669
|
});
|
|
4662
|
-
|
|
4663
|
-
var
|
|
4670
|
+
Ul.displayName = $n.displayName;
|
|
4671
|
+
var Wl = R.forwardRef((e, t) => {
|
|
4664
4672
|
let n = (0, $.c)(9), r, i;
|
|
4665
4673
|
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
4666
4674
|
let a;
|
|
@@ -4672,7 +4680,7 @@ var zl = R.forwardRef((e, t) => {
|
|
|
4672
4680
|
...i
|
|
4673
4681
|
}), n[5] = i, n[6] = t, n[7] = a, n[8] = o) : o = n[8], o;
|
|
4674
4682
|
});
|
|
4675
|
-
|
|
4676
|
-
var
|
|
4683
|
+
Wl.displayName = ir.displayName;
|
|
4684
|
+
var Gl = v;
|
|
4677
4685
|
//#endregion
|
|
4678
|
-
export {
|
|
4686
|
+
export { ko as $, vn as $t, Jc as A, Ei as At, Pc as B, K as Bt, hl as C, aa as Ct, Qc as D, X as Dt, $c as E, Zi as Et, zc as F, qr as Ft, Mc as G, br as Gt, Oc as H, q as Ht, Bc as I, Wr as It, wc as J, W as Jt, Ec as K, vr as Kt, kc as L, Y as Lt, Kc as M, hi as Mt, Hc as N, Kr as Nt, Zc as O, Pi as Ot, Uc as P, Gr as Pt, Po as Q, fn as Qt, Nc as R, Ar as Rt, vl as S, Z as St, nl as T, Qi as Tt, Rc as U, xr as Ut, jc as V, Sr as Vt, Fc as W, J as Wt, gc as X, _r as Xt, Sc as Y, G as Yt, fc as Z, cr as Zt, xl as _, be as _n, Ca as _t, Ul as a, pn as an, fo as at, bl as b, la as bt, Gl as c, dn as cn, so as ct, Ll as d, Tn as dn, eo as dt, mn as en, Oo as et, jl as f, wn as fn, Ka as ft, kl as g, Re as gn, Sa as gt, Tl as h, Xe as hn, Aa as ht, Bl as i, gn as in, go as it, qc as j, Ti as jt, Yc as k, Mi as kt, Il as l, Sn as ln, oo as lt, Dl as m, Ze as mn, Ra as mt, zl as n, _n as nn, To as nt, Nl as o, yn as on, mo as ot, El as p, ut as pn, za as pt, Dc as q, gr as qt, Ml as r, xn as rn, Co as rt, Wl as s, bn as sn, _o as st, Al as t, hn as tn, Eo as tt, Rl as u, Cn as un, ro as ut, ml as v, ye as vn, ya as vt, el as w, ea as wt, gl as x, ca as xt, ll as y, ve as yn, pa as yt, Ac as z, jr as zt };
|