@marimo-team/islands 0.25.3-dev26 → 0.25.3-dev262
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-DfG3PRaJ.js → ConnectedDataExplorerComponent-DjlwdMQT.js} +120 -116
- package/dist/{ErrorBoundary-MDk-fuIJ.js → ErrorBoundary-Bmn7yFxG.js} +16 -16
- package/dist/_baseSet-BfI5FjBM.js +328 -0
- package/dist/{abnfDiagram-VCTEODGH-B3w-XWX8.js → abnfDiagram-VCTEODGH-DzrZZXRD.js} +2 -2
- package/dist/any-language-editor-Be7dA2VK.js +75 -0
- package/dist/{architectureDiagram-5GKGNRK7-C18U9A6k.js → architectureDiagram-5GKGNRK7-iF_snyFL.js} +1 -1
- package/dist/{arrays-CN1djC4k.js → arrays-DoQ-AILx.js} +15 -27
- package/dist/assets/__vite-browser-external-BKBpimif.js +1 -0
- package/dist/assets/worker-CgoMtD-_.js +113 -0
- package/dist/{blockDiagram-I7D4REHJ-Cg25UrxT.js → blockDiagram-I7D4REHJ-Dkhe6_PP.js} +1 -1
- package/dist/{button-CvjkwdSk.js → button-0-RqY1DW.js} +229 -218
- package/dist/{capabilities-CQ5IjhzL.js → capabilities-B6yy_CBN.js} +2 -2
- package/dist/{chat-ui-w8SVynkn.js → chat-ui-Bl_I-evE.js} +822 -755
- package/dist/{check-BMKBBrdc.js → check-CSvxZk5I.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CrS5bzqW.js → chunk-IMKFNOWR-B7xytD4B.js} +1 -1
- package/dist/{chunk-SHT3W25Y-StpvPvUG.js → chunk-SHT3W25Y-I8ZFP5L1.js} +1 -1
- package/dist/{chunk-SVP7TREG-CBXjbYZC.js → chunk-SVP7TREG-Di-uAPdT.js} +1 -1
- package/dist/{chunk-TICWLB2K-Dp6bIb-q.js → chunk-TICWLB2K-BFpUy0ud.js} +1 -1
- package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
- package/dist/{classDiagram-ZZMXUADV-BFYuxV5g.js → classDiagram-ZZMXUADV-Cqm4JGpx.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-D_tjXVMl.js → classDiagram-v2-VYDZK3BY-DFHRJpN3.js} +2 -2
- package/dist/code-visibility-CIz56feH.js +134 -0
- package/dist/{common-Bo1ahZJz.js → common-B736tDHW.js} +9850 -9619
- package/dist/config-mwEjAmvP.js +636 -0
- package/dist/{copy-icon-BgUO8jsi.js → copy-icon-DD8bdw4L.js} +3 -3
- package/dist/createReducer-C_syF8Td.js +67 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-DSgYrHB2.js → cynefinDiagram-5FMLGOSQ-cuGOeTBC.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-GYlruCBf.js → dagre-GXQ25YYZ-DJ76aC4k.js} +3 -3
- package/dist/{dagre-BGSfXNEb.js → dagre-mqiMAsFY.js} +531 -680
- package/dist/{data-grid-overlay-editor-BcbqpDrL.js → data-grid-overlay-editor-Dit5MC8K.js} +5 -5
- package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-0PJ-9N5n.js} +1 -1
- package/dist/{debounce-C3jyATpc.js → debounce-DrhhziJv.js} +2 -2
- package/dist/{diagram-S7CK7UJ4-DRu5LX5_.js → diagram-S7CK7UJ4-DLLc0sw7.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DD7uiejP.js → diagram-UQ7AKVKN-Tz_d6qmk.js} +1 -1
- package/dist/{diagram-VX7I27RA-ByH9KAJJ.js → diagram-VX7I27RA-D7SzPrDN.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BsQHPRke.js → diagram-Z3DM3KII-qr37XV58.js} +1 -1
- package/dist/{dialog-Cc479ZEH.js → dialog-BHYPX87J.js} +26 -26
- package/dist/{dist-Bvs24R_E.js → dist-11T5wq3_.js} +31 -30
- package/dist/{dist-F8Ep36rk.js → dist-17ugwGZc.js} +59 -58
- package/dist/{dist-BMQf5zIS.js → dist-7cRjf--y.js} +123 -122
- package/dist/{dist-diIx5qJW.js → dist-B8pkfkzc.js} +31 -30
- package/dist/{dist-CN_BeG2I.js → dist-B9UoM_wq.js} +58 -57
- package/dist/{dist-CLdpGQVr.js → dist-BGuMTs1i.js} +118 -117
- package/dist/{dist-BK4Oj99o.js → dist-BHW11fni.js} +18 -17
- package/dist/dist-BLY4m1Wi.js +850 -0
- package/dist/{dist-PXYI_yuP.js → dist-BNlcVoxs.js} +24 -23
- package/dist/{dist-D6d86eNJ.js → dist-BQYe5Bju.js} +47 -46
- package/dist/{dist-CkTTIdBe.js → dist-BX1mn8na.js} +337 -337
- package/dist/{dist-DiDibOYr.js → dist-Bh0PTKUW.js} +151 -150
- package/dist/{dist-CSJ0MDRw.js → dist-CKaXK92p.js} +56 -55
- package/dist/{dist-C8fAKSH1.js → dist-CLhwfhpJ.js} +53 -52
- package/dist/{dist-DoE4XJBC.js → dist-CYeqK4Xw.js} +9801 -10649
- package/dist/{dist-BLfKmR-l.js → dist-Cxlp3WH6.js} +16 -15
- package/dist/{dist-D-wwqlzJ.js → dist-DSJPGj42.js} +158 -157
- package/dist/{dist-BorMD-uX.js → dist-DU9ICsWZ.js} +75 -74
- package/dist/{dist-DBtSl3sf.js → dist-DWv0ALBi.js} +47 -46
- package/dist/{dist-OR1OnN-y.js → dist-DiBpWEsB.js} +31 -30
- package/dist/{dist-CrSP_H1M.js → dist-DiLFTlnl.js} +242 -242
- package/dist/{dist-DpBpA_n1.js → dist-Lm-D-Vr6.js} +3 -3
- package/dist/{dist-CSbh1PNP.js → dist-cVDV5IuI.js} +23 -22
- package/dist/{dist-BuaRHxOc.js → dist-fRfaOoq8.js} +44 -43
- package/dist/{dist-Cg7gzw-a.js → dist-gTTI-9Px.js} +78 -77
- package/dist/dropdown-menu-Blu7V6Mk.js +6083 -0
- package/dist/{ebnfDiagram-PWID7BFC-CQRK5_eT.js → ebnfDiagram-PWID7BFC-BKOQb4J0.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BKtWrDVh.js → erDiagram-RLTQ6QDP-CM15Vq68.js} +1 -1
- package/dist/{error-banner-CFPHFw4h.js → error-banner-DbRFOd2O.js} +84 -83
- package/dist/error-entries-DFhMo601.js +2505 -0
- package/dist/{esm-D2gTsXEV.js → esm-BgKjMvWw.js} +530 -529
- package/dist/{esm-AMFssoNp.js → esm-CHjVSexr.js} +328 -329
- package/dist/feedback-button-BiQv1ZDP.js +374 -0
- package/dist/{flowDiagram-HODETNUW-1IN-ih2E.js → flowDiagram-HODETNUW-Dt3N5yFT.js} +2 -2
- package/dist/{formats-X4mMQWzX.js → formats-gGospKWJ.js} +6 -6
- package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
- package/dist/{glide-data-editor-h-P3W8Rc.js → glide-data-editor-DMDC25_Z.js} +417 -415
- package/dist/{glide-utils-DM9zBO4W.js → glide-utils-qbkRZpEy.js} +16 -16
- package/dist/{globals-4XAS0Mmd.js → globals-C6o26_z-.js} +3 -3
- package/dist/{graphlib-BmY_CCV9.js → graphlib-nlwT3Wvy.js} +177 -220
- package/dist/hasIn-C20JsQ2m.js +28 -0
- package/dist/{highlighted-body-KPVGNVTW-zwjq21tf.js → highlighted-body-KPVGNVTW-3Ziwfz-V.js} +2 -2
- package/dist/{error-entries-Damuuclv.js → html-to-image-BPs9Vo-H.js} +26928 -26781
- package/dist/{infoDiagram-27XIBGKW-CkB-zr4p.js → infoDiagram-27XIBGKW-C7axJMCl.js} +1 -1
- package/dist/isArrayLikeObject-B-HXCsex.js +626 -0
- package/dist/isEmpty-CdX7MTE1.js +14 -0
- package/dist/{ishikawaDiagram-5VMMS53U-wlyLjBmM.js → ishikawaDiagram-5VMMS53U-CdC9Eur7.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-C2usY0i-.js → kanban-definition-UXKFOSKX-BHnMIgD7.js} +1 -1
- package/dist/{linear-Cnaq3Tfb.js → linear-DWERh7eI.js} +121 -73
- package/dist/{loader-BQOfjTIJ.js → loader-BVEtQ4F3.js} +12 -12
- package/dist/main.js +10241 -8111
- package/dist/{mermaid-BA-Z6wGL.js → mermaid-DFYN_PXd.js} +54 -54
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
- package/dist/{mindmap-definition-YA3MSWOX-nKOWS8RR.js → mindmap-definition-YA3MSWOX-BagHoCGU.js} +1 -1
- package/dist/{now-jM8-M7IR.js → now-BKZCLE5P.js} +12 -13
- package/dist/{number-overlay-editor-DVBm-B8V.js → number-overlay-editor-CMiX0eIR.js} +3 -3
- package/dist/{dist-CN8zI-XC.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +262 -240
- package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
- package/dist/{once-BtE-wKRL.js → once-NnpX_HnX.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-Dac9EIKD.js → pegDiagram-XKGWAZYB-8IIZczip.js} +2 -2
- package/dist/pick-tCszMUbm.js +35 -0
- package/dist/{pieDiagram-E7YTZNPT-B7S-DsW_.js → pieDiagram-E7YTZNPT-CE6dKBIr.js} +1 -1
- package/dist/precisionRound-DhAzeRcm.js +49 -0
- package/dist/{process-output-CTPTtxXB.js → process-output-c6xaHokq.js} +4 -4
- package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-Cfa5Q-hr.js → railroadDiagram-O6MQD6OU-CkexPq3b.js} +2 -2
- package/dist/{react-vega-BED0DjiB.js → react-vega-C4T9Rb_w.js} +12284 -12270
- package/dist/{requirementDiagram-BXWQKSXE-d8zXCJIk.js → requirementDiagram-BXWQKSXE-B0-OkuAe.js} +1 -1
- package/dist/{reveal-component-DtPzCmeW.js → reveal-component-D9SrIaYo.js} +430 -407
- package/dist/schemas-CdscWNy_.js +4747 -0
- package/dist/select-CcidPqlM.js +1200 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-b6pei3lJ.js → sequenceDiagram-WJ2MYXX4-Dxysg8DX.js} +1 -1
- package/dist/{spec-BJzgmvVa.js → spec-ZwfZcgsm.js} +41 -11
- package/dist/{stateDiagram-D77RDMKH-Be-xSpaZ.js → stateDiagram-D77RDMKH-DTEN3-OJ.js} +4 -4
- package/dist/{stateDiagram-v2-MP3YSRHH-5Y-FxesJ.js → stateDiagram-v2-MP3YSRHH-vktk3Xc5.js} +2 -2
- package/dist/static-state-BldGd99T.js +72 -0
- package/dist/strings-BYJNyKmg.js +507 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-nRRl4NU0.js → swimlanes-42K2YHIH-Cjveh9OM.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BS79510V.js → swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js} +2 -2
- package/dist/{swiper-component-DKntyn8p.js → swiper-component-Dvj-goaD.js} +2 -2
- package/dist/{time-BieKwdYS.js → time-BaMbJs4z.js} +18 -18
- package/dist/{timeline-definition-24CTP7MA-Cfzf8WPf.js → timeline-definition-24CTP7MA-KIuDcefn.js} +1 -1
- package/dist/toast-CkB5Jq9K.js +491 -0
- package/dist/{tooltip-CtBZ5q8p.js → tooltip-Bzl4k00l.js} +329 -305
- package/dist/use-restore-focus-CmflVLWJ.js +1672 -0
- package/dist/{useAsyncData-BD534XmW.js → useAsyncData-DsZMvNXn.js} +15 -14
- package/dist/{useDateFormatter-DkajGwwd.js → useDateFormatter-CYo5fm8s.js} +2 -2
- package/dist/{useDeepCompareMemoize-C72_RNsu.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
- package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-BIolGsF1.js} +1 -1
- package/dist/useLifecycle-GNgvNwI-.js +112 -0
- package/dist/useTheme-BZ2GGLgm.js +339 -0
- package/dist/utils-DXkj82sK.js +813 -0
- package/dist/{vega-component-DfcYgj-Y.js → vega-component-DOtem7Hf.js} +171 -170
- 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-CeY6Z1xZ.js → vennDiagram-4TSXK5OY-DrIOUHfb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Cxs9NtVi.js → wardleyDiagram-VM6X3IG4-CJNjf4OH.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DNWbvPK7.js → xychartDiagram-S5SC5T6Z-DEshFho-.js} +2 -2
- package/package.json +16 -20
- package/src/__mocks__/document.tsx +63 -0
- package/src/__mocks__/notebook.ts +3 -4
- package/src/__mocks__/partial.ts +26 -0
- package/src/__mocks__/requests.ts +1 -4
- package/src/__tests__/fixtures/pair-config.ts +1 -1
- package/src/__tests__/main.test.tsx +24 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +1 -21
- package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +12 -11
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/app-config/__tests__/state.test.tsx +50 -0
- package/src/components/app-config/ai-config.tsx +156 -150
- package/src/components/app-config/app-config-button.tsx +6 -5
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/app-config/common.tsx +7 -9
- package/src/components/app-config/data-form.tsx +112 -113
- package/src/components/app-config/mcp-config.tsx +30 -53
- package/src/components/app-config/user-config-form.css +91 -0
- package/src/components/app-config/user-config-form.tsx +266 -349
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
- package/src/components/chat/__tests__/chat-display.test.tsx +125 -0
- package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +51 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
- package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +4 -3
- package/src/components/chat/acp/blocks.tsx +13 -12
- package/src/components/chat/acp/common.tsx +4 -5
- package/src/components/chat/acp/model-selector.tsx +1 -1
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/chat/capabilities-popover.tsx +2 -11
- package/src/components/chat/chat-components.tsx +9 -4
- package/src/components/chat/chat-display.tsx +51 -6
- package/src/components/chat/chat-history-popover.tsx +6 -1
- package/src/components/chat/chat-markdown.tsx +15 -0
- package/src/components/chat/chat-panel.tsx +119 -214
- package/src/components/chat/chat-typography.css +108 -0
- package/src/components/chat/chat-utils.ts +12 -11
- package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
- package/src/components/chat/notebook-access-selector.tsx +100 -0
- package/src/components/chat/reasoning-accordion.tsx +3 -3
- package/src/components/chat/tool-call/tool-activity-group.tsx +49 -0
- package/src/components/chat/tool-call/tool-history-row.tsx +3 -30
- package/src/components/chat/tool-call/tool-result.tsx +1 -1
- package/src/components/chat/use-chat-generation.ts +19 -0
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/TableTopBar.tsx +2 -0
- 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__/data-table.test.tsx +1 -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__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
- 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-formatting/types.ts +1 -2
- 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 +17 -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/pagination.tsx +44 -33
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +4 -4
- 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 +96 -5
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +181 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
- package/src/components/datasources/__tests__/utils.test.ts +57 -6
- package/src/components/datasources/column-preview.tsx +17 -12
- package/src/components/datasources/datasources.tsx +56 -43
- package/src/components/datasources/utils.ts +32 -23
- package/src/components/debugger/debugger-code.tsx +5 -0
- package/src/components/dependency-graph/custom-node.tsx +1 -1
- 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/minimap-content.tsx +13 -19
- package/src/components/dependency-graph/panels.tsx +4 -2
- 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__/Output.test.tsx +50 -32
- package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +28 -14
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
- package/src/components/editor/__tests__/output-persistence.test.tsx +6 -2
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +69 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +21 -40
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +41 -14
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +6 -24
- package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +113 -0
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/pair-with-agent-commands.ts +10 -7
- package/src/components/editor/actions/pair-with-agent-modal.tsx +29 -30
- package/src/components/editor/actions/pair-with-agent.tsx +16 -39
- package/src/components/editor/actions/useCellActionButton.tsx +37 -32
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +25 -29
- package/src/components/editor/actions/useRestartKernel.tsx +1 -1
- package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
- package/src/components/editor/actions/useSetOutputsExpanded.ts +14 -19
- package/src/components/editor/ai/ai-completion-editor.tsx +2 -1
- package/src/components/editor/ai/prompt-input.tsx +189 -0
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
- package/src/components/editor/alerts/connection-notice.tsx +1 -1
- package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +1 -1
- package/src/components/editor/cell/CreateCellButton.tsx +15 -21
- package/src/components/editor/cell/DeleteButton.tsx +3 -2
- package/src/components/editor/cell/RunButton.tsx +2 -2
- package/src/components/editor/cell/StagedAICell.tsx +13 -5
- package/src/components/editor/cell/StopButton.tsx +2 -2
- package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
- package/src/components/editor/cell/cell-actions.tsx +12 -1
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +54 -0
- package/src/components/editor/cell/code/cell-editor.tsx +59 -165
- package/src/components/editor/cell/code/language-toggle.tsx +8 -7
- package/src/components/editor/cell/collapse.tsx +11 -4
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +2 -5
- package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
- package/src/components/editor/cell/useSplitCell.tsx +10 -6
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +31 -2
- package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
- package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
- package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
- package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
- package/src/components/editor/chrome/types.ts +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +7 -9
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +102 -35
- package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +89 -72
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +4 -4
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -2
- package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +17 -10
- package/src/components/editor/chrome/wrapper/storage.ts +1 -1
- package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +2 -2
- package/src/components/editor/connections/components.tsx +5 -10
- package/src/components/editor/controls/Controls.tsx +4 -4
- package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
- package/src/components/editor/controls/command-palette.tsx +22 -10
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/dynamic-favicon.tsx +21 -40
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +25 -20
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/errors/send-error-report-button.tsx +3 -6
- package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
- package/src/components/editor/file-tree/file-explorer.tsx +48 -15
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- 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/header/__tests__/filename-form.test.tsx +1 -4
- package/src/components/editor/header/__tests__/status.test.tsx +5 -3
- package/src/components/editor/header/app-header.tsx +1 -1
- package/src/components/editor/header/filename-form.tsx +1 -1
- package/src/components/editor/header/status.tsx +40 -20
- package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/links/cell-link.tsx +17 -7
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +108 -85
- package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
- package/src/components/editor/navigation/clipboard.ts +17 -14
- package/src/components/editor/navigation/focus-utils.ts +23 -4
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
- package/src/components/editor/navigation/navigation.ts +71 -70
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-banner.tsx +1 -0
- package/src/components/editor/notebook-cell.tsx +29 -32
- package/src/components/editor/output/MarimoErrorOutput.tsx +2 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +19 -17
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/VideoOutput.tsx +6 -0
- package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +33 -20
- package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
- package/src/components/editor/package-alert.tsx +14 -7
- package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
- package/src/components/editor/renderers/cell-array.tsx +32 -100
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +12 -6
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/editor/stdin-blocking-alert.tsx +1 -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/markdown/markdown-renderer.tsx +39 -28
- package/src/components/mcp/mcp-status-indicator.tsx +18 -14
- package/src/components/pages/__tests__/home-page.test.tsx +116 -0
- package/src/components/pages/edit-page.tsx +19 -17
- package/src/components/pages/home-page.tsx +164 -91
- package/src/components/scratchpad/scratchpad.test.tsx +89 -0
- package/src/components/scratchpad/scratchpad.tsx +43 -32
- package/src/components/scratchpad/state.ts +7 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +22 -29
- package/src/components/slides/__tests__/minimap.test.ts +38 -19
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
- package/src/components/slides/minimap.tsx +17 -12
- package/src/components/slides/reveal-component.tsx +58 -26
- package/src/components/slides/reveal-slides.css +5 -4
- package/src/components/slides/slide-cell-view.tsx +4 -5
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-scroll-hint.tsx +3 -1
- package/src/components/sort/SortableCellsProvider.tsx +8 -25
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing.tsx +46 -42
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/__tests__/fullscreen.test.tsx +44 -2
- package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/components/ui/fullscreen.tsx +25 -1
- package/src/components/ui/range-slider.tsx +22 -9
- package/src/core/MarimoApp.tsx +3 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +15 -482
- package/src/core/ai/context/context.ts +2 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +8 -12
- package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
- package/src/core/ai/context/providers/cell-output.ts +2 -2
- package/src/core/ai/context/providers/cell.ts +54 -0
- package/src/core/ai/context/providers/datasource.ts +6 -2
- package/src/core/ai/staged-cells.ts +17 -294
- package/src/core/ai/state.ts +3 -0
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +40 -88
- package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
- package/src/core/ai/tools/base.ts +18 -15
- package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
- package/src/core/ai/tools/registry.ts +13 -10
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +4 -37
- package/src/core/cells/__tests__/actions.test.ts +624 -35
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/arrange.test.ts +432 -0
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/__tests__/cells.test.ts +251 -2540
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +54 -0
- package/src/core/cells/__tests__/document.test.ts +164 -0
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/flush-document.test.ts +40 -0
- package/src/core/cells/__tests__/harness.ts +106 -0
- package/src/core/cells/__tests__/layout.test.ts +177 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +122 -0
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/__tests__/session.test.ts +445 -211
- package/src/core/cells/__tests__/utils.test.ts +9 -108
- package/src/core/cells/actions.ts +675 -6
- package/src/core/cells/add-missing-import.ts +47 -43
- package/src/core/cells/arrange.ts +529 -0
- package/src/core/cells/cell.ts +14 -3
- package/src/core/cells/cells.ts +126 -1363
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/document.ts +178 -0
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/layout.ts +221 -0
- package/src/core/cells/outputs.ts +12 -28
- package/src/core/cells/pending-delete-service.ts +3 -7
- package/src/core/cells/session.ts +76 -53
- package/src/core/cells/types.ts +22 -6
- package/src/core/cells/utils.ts +10 -8
- package/src/core/codemirror/__tests__/format.test.ts +0 -34
- package/src/core/codemirror/__tests__/setup.test.ts +61 -29
- package/src/core/codemirror/ai/__tests__/resources.test.ts +117 -0
- package/src/core/codemirror/ai/resources.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +2 -6
- package/src/core/codemirror/cells/extensions.ts +30 -28
- package/src/core/codemirror/cells/state.ts +2 -6
- package/src/core/codemirror/cm.ts +5 -1
- package/src/core/codemirror/config/types.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +6 -7
- package/src/core/codemirror/copilot/getCodes.ts +2 -2
- package/src/core/codemirror/format.ts +6 -23
- package/src/core/codemirror/keymaps/vim.ts +4 -8
- package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
- package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +52 -35
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +19 -13
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -24
- package/src/core/codemirror/language/panel/panel.tsx +1 -0
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/lsp/utils.ts +1 -1
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +16 -0
- package/src/core/codemirror/placeholder/extensions.ts +57 -19
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +56 -6
- package/src/core/config/config-schema.ts +17 -4
- package/src/core/config/config.ts +65 -20
- package/src/core/config/feature-flag.tsx +0 -2
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +5 -5
- package/src/core/datasets/data-source-discovery.ts +4 -6
- package/src/core/documentation/doc-lookup.ts +1 -1
- package/src/core/edit-app.tsx +21 -28
- package/src/core/errors/error-entries.ts +4 -1
- package/src/core/export/hooks.ts +1 -1
- package/src/core/export/layout.ts +2 -2
- package/src/core/hotkeys/actions.ts +2 -4
- package/src/core/hotkeys/hotkeys.ts +2 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
- package/src/core/islands/__tests__/bridge.test.ts +85 -27
- package/src/core/islands/bootstrap.ts +46 -53
- package/src/core/islands/bridge.ts +84 -25
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
- package/src/core/islands/components/web-components.tsx +1 -1
- package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
- package/src/core/islands/worker/controller.ts +4 -10
- package/src/core/islands/worker/worker.tsx +33 -33
- package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
- package/src/core/kernel/__tests__/handlers.test.ts +7 -153
- package/src/core/kernel/handlers.ts +19 -72
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/network/__tests__/connection.test.ts +1 -1
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -3
- package/src/core/network/connection-notice.ts +1 -1
- package/src/core/network/connection.ts +1 -1
- package/src/core/network/requests-lazy.ts +2 -5
- package/src/core/network/requests-network.ts +5 -31
- package/src/core/network/requests-static.ts +1 -4
- package/src/core/network/requests-toasting.tsx +1 -4
- package/src/core/network/types.ts +6 -14
- package/src/core/network/useConnectionNotice.ts +8 -2
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/attachments.ts +38 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +759 -0
- package/src/core/notebook/document/__tests__/draft.test.ts +363 -0
- package/src/core/notebook/document/__tests__/fixtures.ts +92 -0
- package/src/core/notebook/document/__tests__/hooks.test.tsx +391 -0
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/notebook/document/__tests__/model.test.ts +247 -0
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +230 -0
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +43 -0
- package/src/core/notebook/document/__tests__/scenarios.test.ts +205 -0
- package/src/core/notebook/document/__tests__/state.test.ts +459 -0
- package/src/core/notebook/document/__tests__/submission.test.ts +203 -0
- package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
- package/src/core/notebook/document/__tests__/test-host.ts +247 -0
- package/src/core/notebook/document/__tests__/test-notebook.ts +149 -0
- package/src/core/notebook/document/__tests__/user.ts +61 -0
- package/src/core/notebook/document/codemirror.ts +216 -0
- package/src/core/notebook/document/draft.ts +502 -0
- package/src/core/notebook/document/hooks.tsx +118 -0
- package/src/core/notebook/document/index.ts +24 -0
- package/src/core/notebook/document/model.ts +102 -0
- package/src/core/notebook/document/select.ts +41 -0
- package/src/core/notebook/document/state.ts +378 -0
- package/src/core/notebook/document/sync.ts +369 -0
- package/src/core/notebook/index.ts +19 -0
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/notebook/replica/AGENTS.md +11 -0
- package/src/core/{host → notebook/replica}/__tests__/attachments.test.ts +9 -10
- package/src/core/{host → notebook/replica}/__tests__/document.test.ts +18 -16
- package/src/core/notebook/replica/__tests__/executions.test.ts +200 -0
- package/src/core/notebook/replica/__tests__/fixtures.ts +79 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +559 -0
- package/src/core/notebook/replica/__tests__/results.test.ts +193 -0
- package/src/core/notebook/replica/__tests__/runtime.test.ts +78 -0
- package/src/core/notebook/replica/backend.ts +19 -0
- package/src/core/notebook/replica/connection.ts +42 -0
- package/src/core/notebook/replica/index.ts +20 -0
- package/src/core/notebook/replica/replica.ts +336 -0
- package/src/core/{host → notebook/replica}/resources/attachments.ts +6 -3
- package/src/core/{host → notebook/replica}/resources/document.ts +3 -3
- package/src/core/notebook/replica/resources/executions.ts +157 -0
- package/src/core/notebook/replica/resources/results.ts +48 -0
- package/src/core/notebook/replica/resources/runtime.ts +14 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
- package/src/core/packages/useSandboxController.ts +1 -1
- package/src/core/run-app.tsx +48 -51
- package/src/core/runtime/__tests__/adapter.test.ts +1 -1
- package/src/core/runtime/__tests__/createWsUrl.test.ts +77 -7
- package/src/core/runtime/__tests__/runtime.test.ts +32 -74
- package/src/core/runtime/adapter.ts +1 -1
- package/src/core/runtime/config.ts +2 -2
- package/src/core/runtime/runtime.ts +33 -46
- package/src/core/runtime/types.ts +0 -2
- package/src/core/saving/__tests__/document.test.tsx +123 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
- package/src/core/saving/document.ts +33 -0
- package/src/core/saving/filename.ts +1 -1
- package/src/core/saving/save-component.tsx +39 -60
- package/src/core/saving/state.ts +38 -39
- package/src/core/saving/useAutoSave.ts +17 -53
- package/src/core/session/__tests__/backend.test.ts +236 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +186 -0
- package/src/core/{websocket → session}/__tests__/useNotebookSession.hook.test.tsx +213 -262
- package/src/core/session/active-notebook.ts +28 -0
- package/src/core/session/backend.ts +123 -0
- package/src/core/session/embedded.ts +7 -0
- package/src/core/{websocket → session}/types.ts +2 -2
- package/src/core/session/useNotebookReplica.ts +74 -0
- package/src/core/{websocket → session}/useNotebookSession.tsx +77 -64
- 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/{websocket → transports}/__tests__/connection-state.test.ts +1 -13
- package/src/core/transports/__tests__/server.test.ts +408 -0
- package/src/core/transports/__tests__/static.test.ts +306 -0
- package/src/core/transports/__tests__/wasm.test.ts +166 -0
- package/src/core/{websocket → transports}/connection-state.ts +9 -16
- package/src/core/transports/server.ts +152 -0
- package/src/core/transports/static.ts +166 -0
- package/src/core/transports/wasm.ts +97 -0
- package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
- package/src/core/vscode/vscode-bindings.ts +14 -2
- package/src/core/wasm/__tests__/bridge.test.ts +210 -64
- package/src/core/wasm/__tests__/worker.test.ts +188 -0
- package/src/core/wasm/bridge.ts +119 -72
- package/src/core/wasm/rpc.ts +15 -3
- package/src/core/wasm/store.ts +3 -3
- package/src/core/wasm/worker/bootstrap.ts +55 -51
- package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
- package/src/core/wasm/worker/save-worker.ts +9 -10
- package/src/core/wasm/worker/types.ts +30 -18
- package/src/core/wasm/worker/worker.ts +118 -72
- package/src/css/app/codemirror.css +1 -1
- package/src/css/common.css +1 -1
- package/src/css/globals.css +66 -22
- 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 +20 -15
- 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 +69 -37
- 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 +16 -2
- package/src/plugins/impl/RefreshPlugin.tsx +1 -0
- package/src/plugins/impl/SliderPlugin.tsx +6 -8
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +387 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +24 -3
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +153 -0
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
- package/src/plugins/impl/anywidget/model.ts +3 -1
- package/src/plugins/impl/anywidget/registry.ts +18 -14
- 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 +15 -12
- 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/components/column-summary.tsx +4 -2
- 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/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
- package/src/plugins/impl/data-frames/panel.tsx +44 -16
- 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/DownloadPlugin.tsx +7 -11
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/plugins/layout/__test__/DownloadPlugin.test.tsx +205 -0
- package/src/stories/__tests__/editor-story.test.tsx +33 -0
- package/src/stories/button.stories.tsx +1 -0
- package/src/stories/cell.stories.tsx +2 -5
- package/src/stories/data-table.stories.tsx +31 -0
- package/src/stories/editor.stories.tsx +24 -17
- package/src/stories/form-wrapper.stories.tsx +2 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +28 -23
- package/src/stories/runtime-story.tsx +23 -17
- 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__/{createReducer.test.ts → createReducer.test.tsx} +127 -1
- package/src/utils/__tests__/download.test.tsx +183 -23
- package/src/utils/__tests__/numbers.test.ts +105 -1
- package/src/utils/__tests__/objects.test.ts +21 -0
- package/src/utils/arrays.ts +11 -2
- package/src/utils/blob.ts +1 -1
- package/src/utils/createReducer.ts +115 -79
- package/src/utils/download.ts +67 -6
- package/src/utils/maps.ts +0 -3
- package/src/utils/numbers.ts +79 -18
- package/src/utils/objects.ts +4 -9
- package/src/utils/tracer.ts +9 -5
- package/src/utils/zod-utils.ts +1 -3
- package/dist/_baseMerge-BiGRwuqv.js +0 -165
- package/dist/any-language-editor-D4q-IFcM.js +0 -76
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/dist/assets/worker-HPY9fbhz.js +0 -114
- package/dist/code-visibility-XgDUZz2f.js +0 -138
- package/dist/dropdown-menu-DHP9P4VE.js +0 -4678
- package/dist/feedback-button-CoWyGXbB.js +0 -379
- package/dist/hasIn-o2Us0uVx.js +0 -132
- package/dist/html-to-image-BdA59IUD.js +0 -3251
- package/dist/isArrayLikeObject-BZl-15ir.js +0 -450
- package/dist/isEmpty-BSZ1LaUo.js +0 -35
- package/dist/isSymbol-kQcfYbNX.js +0 -8
- package/dist/label-DoysmLMW.js +0 -281
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
- package/dist/pick-CJeoxYOS.js +0 -51
- package/dist/precisionRound-DMIVQrt2.js +0 -97
- package/dist/select-DemoKT4G.js +0 -1344
- package/dist/toDate-B5mIgxwZ.js +0 -1185
- package/dist/toast-PkdZraM8.js +0 -1830
- package/dist/use-restore-focus-CKjfFjLM.js +0 -6369
- package/dist/useLifecycle-BGWzTwHK.js +0 -169
- package/dist/useTheme-BhQvec43.js +0 -904
- package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
- package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
- package/src/components/editor/ai/staged-cell-submission.ts +0 -46
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -64
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +0 -50
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +0 -65
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
- package/src/core/ai/tools/run-cells-tool.ts +0 -303
- package/src/core/attachments/state.ts +0 -18
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
- package/src/core/codemirror/rtc/extension.ts +0 -453
- package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +0 -52
- package/src/core/codemirror/rtc/loro/awareness.ts +0 -531
- package/src/core/codemirror/rtc/loro/colors.ts +0 -38
- package/src/core/codemirror/rtc/loro/sync.ts +0 -168
- package/src/core/host/AGENTS.md +0 -11
- package/src/core/host/__tests__/events.test.ts +0 -46
- package/src/core/host/__tests__/fixtures.ts +0 -39
- package/src/core/host/__tests__/notebook-client.test.ts +0 -433
- package/src/core/host/__tests__/protocol.test.ts +0 -214
- package/src/core/host/__tests__/stream.test.ts +0 -209
- package/src/core/host/connection.ts +0 -81
- package/src/core/host/events.ts +0 -61
- package/src/core/host/notebook-client.ts +0 -290
- package/src/core/host/protocol.ts +0 -1943
- package/src/core/host/resources/resource.ts +0 -47
- package/src/core/host/stream.ts +0 -211
- package/src/core/rtc/state.ts +0 -34
- package/src/core/state/__tests__/jotai.test.ts +0 -25
- package/src/core/wasm/worker/message-buffer.ts +0 -33
- package/src/core/websocket/__tests__/createConnectionTransport.test.ts +0 -49
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -170
- package/src/core/websocket/state.ts +0 -7
- 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
- package/src/core/websocket/useNotebookClient.ts +0 -88
- package/src/utils/__tests__/id-tree.test.ts +0 -2145
- package/src/utils/id-tree.tsx +0 -1134
- /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
- /package/src/core/{websocket → session}/connection-utils.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as e, r as t, t as n } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { m as r, t as i } from "./button-
|
|
2
|
+
import { m as r, t as i } from "./button-0-RqY1DW.js";
|
|
3
3
|
import { t as a } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as o } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { i as s, n as c, r as l } from "./copy-icon-
|
|
6
|
-
import {
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as E, d as D, l as O, n as k, o as A, s as ee, t as j, u as te } from "./glide-utils-
|
|
9
|
-
import { n as ne, t as re } from "./ErrorBoundary-
|
|
10
|
-
import {
|
|
11
|
-
import { t as N } from "./
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { A as I, C as L, D as
|
|
5
|
+
import { i as s, n as c, r as l } from "./copy-icon-DD8bdw4L.js";
|
|
6
|
+
import { c as u, d, i as f, n as p, s as m, t as h } from "./select-CcidPqlM.js";
|
|
7
|
+
import { d as g, h as _, i as v, l as y, n as b, o as x, q as S, s as C, t as w, u as T } from "./dropdown-menu-Blu7V6Mk.js";
|
|
8
|
+
import { c as E, d as D, l as O, n as k, o as A, s as ee, t as j, u as te } from "./glide-utils-qbkRZpEy.js";
|
|
9
|
+
import { n as ne, t as re } from "./ErrorBoundary-Bmn7yFxG.js";
|
|
10
|
+
import { i as ie, n as M } from "./strings-BYJNyKmg.js";
|
|
11
|
+
import { t as N } from "./react-dom-DUmH0GXv.js";
|
|
12
|
+
import { t as P } from "./jsx-runtime-3BD1kT0s.js";
|
|
13
|
+
import { n as F } from "./useTheme-BZ2GGLgm.js";
|
|
14
|
+
import { D as ae } from "./utils-DXkj82sK.js";
|
|
15
|
+
import { A as I, C as L, D as R, E as oe, F as se, I as ce, L as le, M as ue, N as de, O as fe, P as pe, R as me, S as he, T as z, _ as ge, a as _e, b as ve, c as ye, d as be, f as B, g as xe, h as V, i as Se, j as H, k as U, l as Ce, m as we, n as Te, o as Ee, p as De, r as W, s as Oe, t as G, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./data-grid-types-0PJ-9N5n.js";
|
|
16
16
|
//#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
17
17
|
function Fe(e) {
|
|
18
18
|
var t = Object.create(null);
|
|
@@ -1401,7 +1401,7 @@ var We = Ue, Ge = /*#__PURE__*/ We("div")({
|
|
|
1401
1401
|
return e && e.__esModule ? e : { default: e };
|
|
1402
1402
|
}
|
|
1403
1403
|
})), ot = /* @__PURE__ */ n(((e, t) => {
|
|
1404
|
-
var n =
|
|
1404
|
+
var n = le();
|
|
1405
1405
|
t.exports = function() {
|
|
1406
1406
|
return n.Date.now();
|
|
1407
1407
|
};
|
|
@@ -1419,7 +1419,7 @@ var We = Ue, Ge = /*#__PURE__*/ We("div")({
|
|
|
1419
1419
|
}
|
|
1420
1420
|
t.exports = i;
|
|
1421
1421
|
})), lt = /* @__PURE__ */ n(((e, t) => {
|
|
1422
|
-
var n = ct(), r = H(), i =
|
|
1422
|
+
var n = ct(), r = H(), i = de(), a = NaN, o = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i, l = parseInt;
|
|
1423
1423
|
function u(e) {
|
|
1424
1424
|
if (typeof e == "number") return e;
|
|
1425
1425
|
if (i(e)) return a;
|
|
@@ -1615,7 +1615,7 @@ function At(e) {
|
|
|
1615
1615
|
return xe(e, t.current) || (t.current = e), t.current;
|
|
1616
1616
|
}
|
|
1617
1617
|
//#endregion
|
|
1618
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
1618
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/image-overlay-editor.js
|
|
1619
1619
|
var jt = at(), Mt = (e) => {
|
|
1620
1620
|
let { urls: t, canWrite: n, onEditClick: r, renderImage: i } = e, a = t.filter((e) => e !== "");
|
|
1621
1621
|
if (a.length === 0) return null;
|
|
@@ -1648,7 +1648,7 @@ var jt = at(), Mt = (e) => {
|
|
|
1648
1648
|
renderMarkdownIntoDiv() {
|
|
1649
1649
|
let { targetElement: e, props: t } = this;
|
|
1650
1650
|
if (e === null) return;
|
|
1651
|
-
let { contents: n, createNode: r } = t, i =
|
|
1651
|
+
let { contents: n, createNode: r } = t, i = S(n), a = document.createRange();
|
|
1652
1652
|
a.selectNodeContents(e), a.deleteContents();
|
|
1653
1653
|
let o = r?.(i);
|
|
1654
1654
|
if (o === void 0) {
|
|
@@ -1842,7 +1842,7 @@ function tn(e, t, n, r, i, a) {
|
|
|
1842
1842
|
return c = c.map((e, t) => t === 0 ? e.trimEnd() : e.trim()), Jt.set(o, c), Jt.size > 500 && Jt.delete(Jt.keys().next().value), c;
|
|
1843
1843
|
}
|
|
1844
1844
|
//#endregion
|
|
1845
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
1845
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid-lib.js
|
|
1846
1846
|
function nn(e, t) {
|
|
1847
1847
|
return K.useMemo(() => e.map((e, n) => ({
|
|
1848
1848
|
group: e.group,
|
|
@@ -2139,7 +2139,7 @@ function Ln(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m) {
|
|
|
2139
2139
|
return h;
|
|
2140
2140
|
}
|
|
2141
2141
|
//#endregion
|
|
2142
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
2142
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/common/render-state-provider.js
|
|
2143
2143
|
var Rn = 1 << 21;
|
|
2144
2144
|
function zn(e, t) {
|
|
2145
2145
|
return (t + 2) * Rn + e;
|
|
@@ -2215,7 +2215,7 @@ var Un = class {
|
|
|
2215
2215
|
}
|
|
2216
2216
|
};
|
|
2217
2217
|
//#endregion
|
|
2218
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
2218
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/common/styles.js
|
|
2219
2219
|
function Kn(e) {
|
|
2220
2220
|
return {
|
|
2221
2221
|
"--gdg-accent-color": e.accentColor,
|
|
@@ -2308,7 +2308,7 @@ function Xn(e, ...t) {
|
|
|
2308
2308
|
return (n.headerFontFull === void 0 || e.fontFamily !== n.fontFamily || e.headerFontStyle !== n.headerFontStyle) && (n.headerFontFull = `${n.headerFontStyle} ${n.fontFamily}`), (n.baseFontFull === void 0 || e.fontFamily !== n.fontFamily || e.baseFontStyle !== n.baseFontStyle) && (n.baseFontFull = `${n.baseFontStyle} ${n.fontFamily}`), (n.markerFontFull === void 0 || e.fontFamily !== n.fontFamily || e.markerFontStyle !== n.markerFontStyle) && (n.markerFontFull = `${n.markerFontStyle} ${n.fontFamily}`), n;
|
|
2309
2309
|
}
|
|
2310
2310
|
//#endregion
|
|
2311
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
2311
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/use-column-sizer.js
|
|
2312
2312
|
var Zn = 150;
|
|
2313
2313
|
function Qn(e, t, n, r) {
|
|
2314
2314
|
return r(t)?.measure?.(e, t, n) ?? Zn;
|
|
@@ -2481,7 +2481,7 @@ var tr = /* @__PURE__ */ n(((e, t) => {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
t.exports = n;
|
|
2483
2483
|
})), fr = /* @__PURE__ */ n(((e, t) => {
|
|
2484
|
-
t.exports =
|
|
2484
|
+
t.exports = fe()(le(), "Set");
|
|
2485
2485
|
})), pr = /* @__PURE__ */ n(((e, t) => {
|
|
2486
2486
|
function n() {}
|
|
2487
2487
|
t.exports = n;
|
|
@@ -2531,7 +2531,7 @@ var tr = /* @__PURE__ */ n(((e, t) => {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
t.exports = n;
|
|
2533
2533
|
})), yr = /* @__PURE__ */ n(((e, t) => {
|
|
2534
|
-
var n =
|
|
2534
|
+
var n = ce(), r = he(), i = Pe(), a = n ? n.isConcatSpreadable : void 0;
|
|
2535
2535
|
function o(e) {
|
|
2536
2536
|
return i(e) || r(e) || !!(a && e && e[a]);
|
|
2537
2537
|
}
|
|
@@ -2567,7 +2567,7 @@ var tr = /* @__PURE__ */ n(((e, t) => {
|
|
|
2567
2567
|
}
|
|
2568
2568
|
t.exports = i;
|
|
2569
2569
|
})), wr = /* @__PURE__ */ n(((e, t) => {
|
|
2570
|
-
var n =
|
|
2570
|
+
var n = R(), r = Cr(), i = Me(), a = H();
|
|
2571
2571
|
function o(e, t, o) {
|
|
2572
2572
|
if (!a(o)) return !1;
|
|
2573
2573
|
var s = typeof t;
|
|
@@ -2815,7 +2815,7 @@ var tr = /* @__PURE__ */ n(((e, t) => {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
};
|
|
2817
2817
|
//#endregion
|
|
2818
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
2818
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/data-grid-sprites.js
|
|
2819
2819
|
function Ir(e, t) {
|
|
2820
2820
|
return e === "normal" ? [t.bgIconHeader, t.fgIconHeader] : e === "selected" ? ["white", t.accentColor] : [t.accentColor, t.bgHeader];
|
|
2821
2821
|
}
|
|
@@ -2851,7 +2851,7 @@ var Lr = class {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
};
|
|
2853
2853
|
//#endregion
|
|
2854
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
2854
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid-render.walk.js
|
|
2855
2855
|
function Rr(e) {
|
|
2856
2856
|
if (e.length === 0) return;
|
|
2857
2857
|
let t;
|
|
@@ -2924,7 +2924,7 @@ function Hr(e, t, n, r, i, a, o) {
|
|
|
2924
2924
|
return [l, u];
|
|
2925
2925
|
}
|
|
2926
2926
|
//#endregion
|
|
2927
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
2927
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/common/math.js
|
|
2928
2928
|
function Ur(e, t, n, r) {
|
|
2929
2929
|
if (r === "any") return Kr(e, {
|
|
2930
2930
|
x: t,
|
|
@@ -3145,34 +3145,34 @@ function Yr(e, t, n, r, i) {
|
|
|
3145
3145
|
return _;
|
|
3146
3146
|
}
|
|
3147
3147
|
//#endregion
|
|
3148
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
3148
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid-render.cells.js
|
|
3149
3149
|
var Xr = {
|
|
3150
3150
|
kind: W.Loading,
|
|
3151
3151
|
allowOverlay: !1
|
|
3152
3152
|
};
|
|
3153
3153
|
function Zr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, ee, j, te, ne) {
|
|
3154
|
-
let re = y?.size ?? 2 ** 53 - 1,
|
|
3155
|
-
e.font =
|
|
3156
|
-
let
|
|
3157
|
-
return Br(t, s, a, o, i, (t, a, o, s,
|
|
3158
|
-
let
|
|
3154
|
+
let re = y?.size ?? 2 ** 53 - 1, ie = performance.now(), M = k.baseFontFull;
|
|
3155
|
+
e.font = M;
|
|
3156
|
+
let N = { ctx: e }, P = [0, 0], F = g > 0 ? mn(c, g, l) : 0, ae, I, L = Rr(v);
|
|
3157
|
+
return Br(t, s, a, o, i, (t, a, o, s, R) => {
|
|
3158
|
+
let oe = Math.max(0, s - a), se = a + oe, ce = i + 1, le = t.width - oe, ue = r - i - 1;
|
|
3159
3159
|
if (v.length > 0) {
|
|
3160
3160
|
let e = !1;
|
|
3161
3161
|
for (let t = 0; t < v.length; t++) {
|
|
3162
3162
|
let n = v[t];
|
|
3163
|
-
if (Wr(ce, le, ue,
|
|
3163
|
+
if (Wr(se, ce, le, ue, n.x, n.y, n.width, n.height)) {
|
|
3164
3164
|
e = !0;
|
|
3165
3165
|
break;
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
3168
|
if (!e) return;
|
|
3169
3169
|
}
|
|
3170
|
-
let
|
|
3171
|
-
e.save(), e.beginPath(), e.rect(ce, le, ue
|
|
3172
|
-
},
|
|
3173
|
-
he !==
|
|
3170
|
+
let de = () => {
|
|
3171
|
+
e.save(), e.beginPath(), e.rect(se, ce, le, ue), e.clip();
|
|
3172
|
+
}, fe = b.columns.hasIndex(t.sourceIndex), pe = d(t.group ?? "").overrideTheme, me = t.themeOverride === void 0 && pe === void 0 ? k : Xn(k, pe, t.themeOverride), he = me.baseFontFull;
|
|
3173
|
+
he !== M && (M = he, e.font = he), de();
|
|
3174
3174
|
let z;
|
|
3175
|
-
return zr(
|
|
3175
|
+
return zr(R, o, r, c, l, g, _, L, (i, o, l, d, g) => {
|
|
3176
3176
|
if (o < 0 || (P[0] = t.sourceIndex, P[1] = o, y !== void 0 && !y.has(P))) return;
|
|
3177
3177
|
if (v.length > 0) {
|
|
3178
3178
|
let e = !1;
|
|
@@ -3185,32 +3185,32 @@ function Zr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S,
|
|
|
3185
3185
|
}
|
|
3186
3186
|
if (!e) return;
|
|
3187
3187
|
}
|
|
3188
|
-
let _ = b.rows.hasIndex(o), L = p.hasIndex(o),
|
|
3189
|
-
if (
|
|
3190
|
-
let [r, c] =
|
|
3188
|
+
let _ = b.rows.hasIndex(o), L = p.hasIndex(o), R = o < c ? u(P) : Xr, oe = a, se = t.width, ce = !1, le = !1;
|
|
3189
|
+
if (R.span !== void 0) {
|
|
3190
|
+
let [r, c] = R.span, u = `${o},${r},${c},${t.sticky}`;
|
|
3191
3191
|
if (I === void 0 && (I = /* @__PURE__ */ new Set()), I.has(u)) {
|
|
3192
3192
|
re--;
|
|
3193
3193
|
return;
|
|
3194
3194
|
}
|
|
3195
3195
|
{
|
|
3196
|
-
let r = Hr(
|
|
3197
|
-
if (!t.sticky && r[0] !== void 0 && (
|
|
3198
|
-
|
|
3196
|
+
let r = Hr(R.span, a, i, t.width, l, t, n), o = t.sticky ? r[0] : r[1];
|
|
3197
|
+
if (!t.sticky && r[0] !== void 0 && (le = !0), o !== void 0) {
|
|
3198
|
+
oe = o.x, se = o.width, I.add(u), e.restore(), z = void 0, e.save(), e.beginPath();
|
|
3199
3199
|
let t = Math.max(0, s - o.x);
|
|
3200
3200
|
e.rect(o.x + t, i, o.width - t, l), ae === void 0 && (ae = []), ae.push({
|
|
3201
3201
|
x: o.x + t,
|
|
3202
3202
|
y: i,
|
|
3203
3203
|
width: o.width - t,
|
|
3204
3204
|
height: l
|
|
3205
|
-
}), e.clip(),
|
|
3205
|
+
}), e.clip(), ce = !0;
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
3208
3208
|
}
|
|
3209
|
-
let
|
|
3209
|
+
let ue = f?.(o), pe = g && t.trailingRowOptions?.themeOverride !== void 0 ? t.trailingRowOptions?.themeOverride : void 0, ge = R.themeOverride === void 0 && ue === void 0 && pe === void 0 ? me : Xn(me, ue, pe, R.themeOverride);
|
|
3210
3210
|
e.beginPath();
|
|
3211
|
-
let _e = on(P,
|
|
3212
|
-
_e && !m && h ? ve = 0 : _e && h && (ve = Math.max(ve, 1)), ye && ve++, _e || (_ && ve++,
|
|
3213
|
-
let be =
|
|
3211
|
+
let _e = on(P, R, b), ve = dn(P, R, b, h), ye = R.span !== void 0 && b.columns.some((e) => R.span !== void 0 && e >= R.span[0] && e <= R.span[1]);
|
|
3212
|
+
_e && !m && h ? ve = 0 : _e && h && (ve = Math.max(ve, 1)), ye && ve++, _e || (_ && ve++, fe && !g && ve++);
|
|
3213
|
+
let be = R.kind === W.Protected ? ge.bgCellMedium : ge.bgCell, B;
|
|
3214
3214
|
if ((d || be !== k.bgCell) && (B = qt(be, B)), ve > 0 || L) {
|
|
3215
3215
|
L && (B = qt(ge.bgHeader, B));
|
|
3216
3216
|
for (let e = 0; e < ve; e++) B = qt(ge.accentLight, B);
|
|
@@ -3227,10 +3227,10 @@ function Zr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S,
|
|
|
3227
3227
|
let xe = !1;
|
|
3228
3228
|
if (y !== void 0) {
|
|
3229
3229
|
let t = i + 1, n = (d ? t + l - 1 : Math.min(t + l - 1, r - F)) - t;
|
|
3230
|
-
(n !== l - 1 ||
|
|
3230
|
+
(n !== l - 1 || oe + 1 <= s) && (xe = !0, e.save(), e.beginPath(), e.rect(oe + 1, t, se - 1, n), e.clip()), B = B === void 0 ? ge.bgCell : qt(B, ge.bgCell);
|
|
3231
3231
|
}
|
|
3232
3232
|
let V = t.sourceIndex === n.length - 1, Se = o === c - 1;
|
|
3233
|
-
B !== void 0 && (e.fillStyle = B, z !== void 0 && (z.fillStyle = B), y === void 0 ? e.fillRect(
|
|
3233
|
+
B !== void 0 && (e.fillStyle = B, z !== void 0 && (z.fillStyle = B), y === void 0 ? e.fillRect(oe, i, se, l) : e.fillRect(oe + 1, i + 1, se - (V ? 2 : 1), l - (Se ? 2 : 1))), R.style === "faded" && (e.globalAlpha = .6);
|
|
3234
3234
|
let H;
|
|
3235
3235
|
for (let e = 0; e < T.length; e++) {
|
|
3236
3236
|
let n = T[e];
|
|
@@ -3239,11 +3239,11 @@ function Zr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S,
|
|
|
3239
3239
|
break;
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
|
-
if (
|
|
3242
|
+
if (se > ne && !le) {
|
|
3243
3243
|
let n = ge.baseFontFull;
|
|
3244
|
-
n !==
|
|
3244
|
+
n !== M && (e.font = n, M = n), z = ri(e, R, t.sourceIndex, o, V, Se, oe, i, se, l, ve > 0, ge, B ?? ge.bgCell, C, w, H?.hoverAmount ?? 0, E, O, ie, D, z, A, ee, j, te);
|
|
3245
3245
|
}
|
|
3246
|
-
return xe && e.restore(),
|
|
3246
|
+
return xe && e.restore(), R.style === "faded" && (e.globalAlpha = 1), re--, ce && (e.restore(), z?.deprep?.(N), z = void 0, de(), M = he, e.font = he), re <= 0;
|
|
3247
3247
|
}), e.restore(), re <= 0;
|
|
3248
3248
|
}), ae;
|
|
3249
3249
|
}
|
|
@@ -3294,7 +3294,7 @@ function ri(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S,
|
|
|
3294
3294
|
return (k || ti) && x?.(Qr), D;
|
|
3295
3295
|
}
|
|
3296
3296
|
//#endregion
|
|
3297
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
3297
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/draw-checkbox.js
|
|
3298
3298
|
function ii(e, t, n, r, i, a, o, s, c = -20, l = -20, u = void 0, d = "center", f = "square") {
|
|
3299
3299
|
let p = Math.floor(i + o / 2), m = f === "circle" ? 1e4 : t.roundingRadius ?? 4, h = vt(u ?? t.checkboxMaxSize, o, t.cellVerticalPadding), g = h / 2, _ = _t(d, r, a, t.cellHorizontalPadding, h), v = gt(_, p, h), y = yt(r + c, i + l, v);
|
|
3300
3300
|
switch (n) {
|
|
@@ -3312,7 +3312,7 @@ function ii(e, t, n, r, i, a, o, s, c = -20, l = -20, u = void 0, d = "center",
|
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
3314
|
//#endregion
|
|
3315
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
3315
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid-render.header.js
|
|
3316
3316
|
function ai(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
3317
3317
|
let y = o + s;
|
|
3318
3318
|
if (y <= 0) return;
|
|
@@ -3505,7 +3505,7 @@ function pi(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
|
3505
3505
|
//#endregion
|
|
3506
3506
|
//#region ../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js
|
|
3507
3507
|
var mi = /* @__PURE__ */ n(((e, t) => {
|
|
3508
|
-
var n =
|
|
3508
|
+
var n = fe();
|
|
3509
3509
|
t.exports = function() {
|
|
3510
3510
|
try {
|
|
3511
3511
|
var e = n(Object, "defineProperty");
|
|
@@ -3557,10 +3557,10 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3557
3557
|
}
|
|
3558
3558
|
t.exports = n;
|
|
3559
3559
|
})), xi = /* @__PURE__ */ n(((e, t) => {
|
|
3560
|
-
var n =
|
|
3560
|
+
var n = le(), r = bi(), i = typeof e == "object" && e && !e.nodeType && e, a = i && typeof t == "object" && t && !t.nodeType && t, o = a && a.exports === i ? n.Buffer : void 0;
|
|
3561
3561
|
t.exports = (o ? o.isBuffer : void 0) || r;
|
|
3562
3562
|
})), Si = /* @__PURE__ */ n(((e, t) => {
|
|
3563
|
-
var n =
|
|
3563
|
+
var n = se(), r = ve(), i = pe(), a = "[object Arguments]", o = "[object Array]", s = "[object Boolean]", c = "[object Date]", l = "[object Error]", u = "[object Function]", d = "[object Map]", f = "[object Number]", p = "[object Object]", m = "[object RegExp]", h = "[object Set]", g = "[object String]", _ = "[object WeakMap]", v = "[object ArrayBuffer]", y = "[object DataView]", b = "[object Float32Array]", x = "[object Float64Array]", S = "[object Int8Array]", C = "[object Int16Array]", w = "[object Int32Array]", T = "[object Uint8Array]", E = "[object Uint8ClampedArray]", D = "[object Uint16Array]", O = "[object Uint32Array]", k = {};
|
|
3564
3564
|
k[b] = k[x] = k[S] = k[C] = k[w] = k[T] = k[E] = k[D] = k[O] = !0, k[a] = k[o] = k[v] = k[s] = k[y] = k[c] = k[l] = k[u] = k[d] = k[f] = k[p] = k[m] = k[h] = k[g] = k[_] = !1;
|
|
3565
3565
|
function A(e) {
|
|
3566
3566
|
return i(e) && r(e.length) && !!k[n(e)];
|
|
@@ -3651,7 +3651,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
t.exports = r;
|
|
3653
3653
|
})), Ii = /* @__PURE__ */ n(((e, t) => {
|
|
3654
|
-
var n =
|
|
3654
|
+
var n = oe();
|
|
3655
3655
|
function r() {
|
|
3656
3656
|
this.__data__ = new n(), this.size = 0;
|
|
3657
3657
|
}
|
|
@@ -3673,7 +3673,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3673
3673
|
}
|
|
3674
3674
|
t.exports = n;
|
|
3675
3675
|
})), Bi = /* @__PURE__ */ n(((e, t) => {
|
|
3676
|
-
var n =
|
|
3676
|
+
var n = oe(), r = z(), i = je(), a = 200;
|
|
3677
3677
|
function o(e, t) {
|
|
3678
3678
|
var o = this.__data__;
|
|
3679
3679
|
if (o instanceof n) {
|
|
@@ -3685,7 +3685,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3685
3685
|
}
|
|
3686
3686
|
t.exports = o;
|
|
3687
3687
|
})), Vi = /* @__PURE__ */ n(((e, t) => {
|
|
3688
|
-
var n =
|
|
3688
|
+
var n = oe(), r = Ii(), i = Li(), a = Ri(), o = zi(), s = Bi();
|
|
3689
3689
|
function c(e) {
|
|
3690
3690
|
var t = this.__data__ = new n(e);
|
|
3691
3691
|
this.size = t.size;
|
|
@@ -3729,7 +3729,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
t.exports = s;
|
|
3731
3731
|
})), Wi = /* @__PURE__ */ n(((e, t) => {
|
|
3732
|
-
t.exports =
|
|
3732
|
+
t.exports = le().Uint8Array;
|
|
3733
3733
|
})), Gi = /* @__PURE__ */ n(((e, t) => {
|
|
3734
3734
|
function n(e) {
|
|
3735
3735
|
var t = -1, n = Array(e.size);
|
|
@@ -3739,7 +3739,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
t.exports = n;
|
|
3741
3741
|
})), Ki = /* @__PURE__ */ n(((e, t) => {
|
|
3742
|
-
var n =
|
|
3742
|
+
var n = ce(), r = Wi(), i = R(), a = Ui(), o = Gi(), s = mr(), c = 1, l = 2, u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Map]", m = "[object Number]", h = "[object RegExp]", g = "[object Set]", _ = "[object String]", v = "[object Symbol]", y = "[object ArrayBuffer]", b = "[object DataView]", x = n ? n.prototype : void 0, S = x ? x.valueOf : void 0;
|
|
3743
3743
|
function C(e, t, n, x, C, w, T) {
|
|
3744
3744
|
switch (n) {
|
|
3745
3745
|
case b:
|
|
@@ -3831,13 +3831,13 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
t.exports = a;
|
|
3833
3833
|
})), $i = /* @__PURE__ */ n(((e, t) => {
|
|
3834
|
-
t.exports =
|
|
3834
|
+
t.exports = fe()(le(), "DataView");
|
|
3835
3835
|
})), ea = /* @__PURE__ */ n(((e, t) => {
|
|
3836
|
-
t.exports =
|
|
3836
|
+
t.exports = fe()(le(), "Promise");
|
|
3837
3837
|
})), ta = /* @__PURE__ */ n(((e, t) => {
|
|
3838
|
-
t.exports =
|
|
3838
|
+
t.exports = fe()(le(), "WeakMap");
|
|
3839
3839
|
})), na = /* @__PURE__ */ n(((e, t) => {
|
|
3840
|
-
var n = $i(), r = z(), i = ea(), a = fr(), o = ta(), s =
|
|
3840
|
+
var n = $i(), r = z(), i = ea(), a = fr(), o = ta(), s = se(), c = U(), l = "[object Map]", u = "[object Object]", d = "[object Promise]", f = "[object Set]", p = "[object WeakMap]", m = "[object DataView]", h = c(n), g = c(r), _ = c(i), v = c(a), y = c(o), b = s;
|
|
3841
3841
|
(n && b(new n(/* @__PURE__ */ new ArrayBuffer(1))) != m || r && b(new r()) != l || i && b(i.resolve()) != d || a && b(new a()) != f || o && b(new o()) != p) && (b = function(e) {
|
|
3842
3842
|
var t = s(e), n = t == u ? e.constructor : void 0, r = n ? c(n) : "";
|
|
3843
3843
|
if (r) switch (r) {
|
|
@@ -3962,7 +3962,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3962
3962
|
}
|
|
3963
3963
|
t.exports = i;
|
|
3964
3964
|
})), ma = /* @__PURE__ */ n(((e, t) => {
|
|
3965
|
-
var n = ia(), r = da(), i = pa(), a =
|
|
3965
|
+
var n = ia(), r = da(), i = pa(), a = ue(), o = oa(), s = ca(), c = Ne(), l = 1, u = 2;
|
|
3966
3966
|
function d(e, t) {
|
|
3967
3967
|
return a(e) && o(t) ? s(c(e), t) : function(a) {
|
|
3968
3968
|
var o = r(a, e);
|
|
@@ -3991,7 +3991,7 @@ var mi = /* @__PURE__ */ n(((e, t) => {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
t.exports = r;
|
|
3993
3993
|
})), va = /* @__PURE__ */ n(((e, t) => {
|
|
3994
|
-
var n = ga(), r = _a(), i =
|
|
3994
|
+
var n = ga(), r = _a(), i = ue(), a = Ne();
|
|
3995
3995
|
function o(e) {
|
|
3996
3996
|
return i(e) ? n(a(e)) : r(e);
|
|
3997
3997
|
}
|
|
@@ -4155,7 +4155,7 @@ function Ea(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _ = !1) {
|
|
|
4155
4155
|
c !== void 0 && e.restore();
|
|
4156
4156
|
}
|
|
4157
4157
|
//#endregion
|
|
4158
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4158
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid-render.blit.js
|
|
4159
4159
|
function Da(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
4160
4160
|
let y = [];
|
|
4161
4161
|
e.imageSmoothingEnabled = !1;
|
|
@@ -4246,7 +4246,7 @@ function ka(e, t) {
|
|
|
4246
4246
|
return !0;
|
|
4247
4247
|
}
|
|
4248
4248
|
//#endregion
|
|
4249
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4249
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid.render.rings.js
|
|
4250
4250
|
function Aa(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
4251
4251
|
let g = m?.filter((e) => e.style !== "no-outline");
|
|
4252
4252
|
if (g === void 0 || g.length === 0) return;
|
|
@@ -4323,7 +4323,7 @@ function Ma(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g) {
|
|
|
4323
4323
|
return A(), A;
|
|
4324
4324
|
}
|
|
4325
4325
|
//#endregion
|
|
4326
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4326
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/data-grid-render.js
|
|
4327
4327
|
function Na(e, t, n, r, i, a, o, s, c) {
|
|
4328
4328
|
c !== void 0 && c.size !== 0 && (e.beginPath(), Vr(t, n, a, r, (t, n, r, i, a, o) => {
|
|
4329
4329
|
c.hasItemInRectangle({
|
|
@@ -4344,20 +4344,20 @@ function Pa(e, t, n, r, i, a, o, s, c, l) {
|
|
|
4344
4344
|
}), !0)), u;
|
|
4345
4345
|
}
|
|
4346
4346
|
function Fa(e, t) {
|
|
4347
|
-
let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: d, freezeColumns: f, dragAndDropState: p, theme: m, drawFocus: h, headerHeight: g, groupHeaderHeight: _, disabledRows: v, rowHeight: y, verticalBorder: b, overrideCursor: x, isResizing: S, selection: C, fillHandle: w, freezeTrailingRows: T, rows: E, getCellContent: D, getGroupDetails: O, getRowThemeOverride: k, isFocused: A, drawHeaderCallback: ee, prelightCells: j, drawCellCallback: te, highlightRegions: ne, resizeCol: re, imageLoader:
|
|
4347
|
+
let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: d, freezeColumns: f, dragAndDropState: p, theme: m, drawFocus: h, headerHeight: g, groupHeaderHeight: _, disabledRows: v, rowHeight: y, verticalBorder: b, overrideCursor: x, isResizing: S, selection: C, fillHandle: w, freezeTrailingRows: T, rows: E, getCellContent: D, getGroupDetails: O, getRowThemeOverride: k, isFocused: A, drawHeaderCallback: ee, prelightCells: j, drawCellCallback: te, highlightRegions: ne, resizeCol: re, imageLoader: ie, lastBlitData: M, hoverValues: N, hyperWrapping: P, hoverInfo: F, spriteManager: ae, maxScaleFactor: I, hasAppendRow: L, touchMode: R, enqueue: oe, renderStateProvider: se, getCellRenderer: ce, renderStrategy: le, bufferACtx: ue, bufferBCtx: de, damage: fe, minimumCellWidth: pe, resizeIndicator: me } = e;
|
|
4348
4348
|
if (i === 0 || a === 0) return;
|
|
4349
|
-
let he =
|
|
4349
|
+
let he = le === "double-buffer", z = Math.min(I, Math.ceil(window.devicePixelRatio ?? 1)), ge = le !== "direct" && ka(e, t), _e = n.canvas;
|
|
4350
4350
|
(_e.width !== i * z || _e.height !== a * z) && (_e.width = i * z, _e.height = a * z, _e.style.width = i + "px", _e.style.height = a + "px");
|
|
4351
4351
|
let ve = r.canvas, ye = d ? _ + g : g, be = ye + 1;
|
|
4352
4352
|
(ve.width !== i * z || ve.height !== be * z) && (ve.width = i * z, ve.height = be * z, ve.style.width = i + "px", ve.style.height = be + "px");
|
|
4353
|
-
let B =
|
|
4354
|
-
he && (B.width !== i * z || B.height !== a * z) && (B.width = i * z, B.height = a * z,
|
|
4355
|
-
let V =
|
|
4353
|
+
let B = ue.canvas, xe = de.canvas;
|
|
4354
|
+
he && (B.width !== i * z || B.height !== a * z) && (B.width = i * z, B.height = a * z, M.current !== void 0 && (M.current.aBufferScroll = void 0)), he && (xe.width !== i * z || xe.height !== a * z) && (xe.width = i * z, xe.height = a * z, M.current !== void 0 && (M.current.bBufferScroll = void 0));
|
|
4355
|
+
let V = M.current;
|
|
4356
4356
|
if (ge === !0 && o === V?.cellXOffset && s === V?.cellYOffset && c === V?.translateX && l === V?.translateY) return;
|
|
4357
4357
|
let Se = null;
|
|
4358
4358
|
he && (Se = n);
|
|
4359
4359
|
let H = r, U;
|
|
4360
|
-
U = he ?
|
|
4360
|
+
U = he ? fe === void 0 ? V?.lastBuffer === "b" ? ue : de : V?.lastBuffer === "b" ? de : ue : n;
|
|
4361
4361
|
let Ce = U.canvas, Te = he ? Ce === B ? xe : B : _e, Ee = typeof y == "number" ? () => y : y;
|
|
4362
4362
|
H.save(), U.save(), H.beginPath(), U.beginPath(), H.textBaseline = "middle", U.textBaseline = "middle", z !== 1 && (H.scale(z, z), U.scale(z, z));
|
|
4363
4363
|
let De = hn(u, o, i, p, c), W = [], Oe = h && C.current?.cell[1] === s && l === 0, G = !1;
|
|
@@ -4368,10 +4368,10 @@ function Fa(e, t) {
|
|
|
4368
4368
|
}
|
|
4369
4369
|
}
|
|
4370
4370
|
let ke = () => {
|
|
4371
|
-
ai(H, De, d, F, i, c, g, _, p, S, C, m, ae,
|
|
4371
|
+
ai(H, De, d, F, i, c, g, _, p, S, C, m, ae, N, b, O, fe, ee, R), Ea(H, De, s, c, l, i, a, void 0, void 0, _, ye, Ee, k, b, T, E, m, !0), H.beginPath(), H.moveTo(0, be - .5), H.lineTo(i, be - .5), H.strokeStyle = qt(m.headerBottomBorderColor ?? m.horizontalBorderColor ?? m.borderColor, m.bgHeader), H.stroke(), G && Aa(H, i, a, o, s, c, l, u, f, g, _, y, T, E, ne, m), Oe && Ma(H, i, a, s, c, l, De, u, m, ye, C, Ee, D, T, L, w, E);
|
|
4372
4372
|
};
|
|
4373
|
-
if (
|
|
4374
|
-
let e = De[De.length - 1].sourceIndex + 1, t =
|
|
4373
|
+
if (fe !== void 0) {
|
|
4374
|
+
let e = De[De.length - 1].sourceIndex + 1, t = fe.hasItemInRegion([
|
|
4375
4375
|
{
|
|
4376
4376
|
x: o,
|
|
4377
4377
|
y: -2,
|
|
@@ -4404,11 +4404,11 @@ function Fa(e, t) {
|
|
|
4404
4404
|
when: T > 0
|
|
4405
4405
|
}
|
|
4406
4406
|
]), n = (e) => {
|
|
4407
|
-
Zr(e, De, u, a, ye, c, l, s, E, Ee, D, O, k, v, A, h, T, L, W,
|
|
4407
|
+
Zr(e, De, u, a, ye, c, l, s, E, Ee, D, O, k, v, A, h, T, L, W, fe, C, j, ne, ie, ae, N, F, te, P, m, oe, se, ce, x, pe);
|
|
4408
4408
|
let t = C.current;
|
|
4409
|
-
w !== !1 && w !== void 0 && h && t !== void 0 &&
|
|
4409
|
+
w !== !1 && w !== void 0 && h && t !== void 0 && fe.has(ln(t.range)) && Ma(e, i, a, s, c, l, De, u, m, ye, C, Ee, D, T, L, w, E);
|
|
4410
4410
|
};
|
|
4411
|
-
t && (n(U), Se !== null && (Se.save(), Se.scale(z, z), Se.textBaseline = "middle", n(Se), Se.restore()),
|
|
4411
|
+
t && (n(U), Se !== null && (Se.save(), Se.scale(z, z), Se.textBaseline = "middle", n(Se), Se.restore()), fe.hasHeader() && (Na(H, De, i, _, ye, c, l, s, fe), ke())), U.restore(), H.restore();
|
|
4412
4412
|
return;
|
|
4413
4413
|
}
|
|
4414
4414
|
if ((ge !== !0 || o !== V?.cellXOffset || c !== V?.translateX || Oe !== V?.mustDrawFocusOnHeader || G !== V?.mustDrawHighlightRingsOnHeader) && ke(), ge === !0) {
|
|
@@ -4423,17 +4423,17 @@ function Fa(e, t) {
|
|
|
4423
4423
|
for (let e of W) U.rect(e.x, e.y, e.width, e.height);
|
|
4424
4424
|
U.clip(), U.fill(), U.beginPath();
|
|
4425
4425
|
} else U.fillRect(0, 0, i, a);
|
|
4426
|
-
let Me = Zr(U, De, u, a, ye, c, l, s, E, Ee, D, O, k, v, A, h, T, L, W,
|
|
4427
|
-
Sa(U, De, u, i, a, ye, c, l, s, E, Ee, k, C.rows, v, T, L, W,
|
|
4426
|
+
let Me = Zr(U, De, u, a, ye, c, l, s, E, Ee, D, O, k, v, A, h, T, L, W, fe, C, j, ne, ie, ae, N, F, te, P, m, oe, se, ce, x, pe);
|
|
4427
|
+
Sa(U, De, u, i, a, ye, c, l, s, E, Ee, k, C.rows, v, T, L, W, fe, m), Ta(U, De, s, c, l, i, a, W, ye, Ee, k, b, T, E, m), Ea(U, De, s, c, l, i, a, W, Me, _, ye, Ee, k, b, T, E, m), Ae?.(), je?.(), S && me !== "none" && Br(De, 0, c, 0, ye, (e, t) => e.sourceIndex === re && (ja(H, t + e.width, 0, ye + 1, qt(m.resizeIndicatorColor ?? m.accentLight, m.bgHeader)), me === "full" && ja(U, t + e.width, ye, a, qt(m.resizeIndicatorColor ?? m.accentLight, m.bgCell)), !0)), Se !== null && (Se.fillStyle = m.bgCell, Se.fillRect(0, 0, i, a), Se.drawImage(U.canvas, 0, 0));
|
|
4428
4428
|
let Ne = Pa(De, a, ye, c, l, s, E, Ee, T, L);
|
|
4429
|
-
|
|
4429
|
+
ie?.setWindow({
|
|
4430
4430
|
x: o,
|
|
4431
4431
|
y: s,
|
|
4432
4432
|
width: De.length,
|
|
4433
4433
|
height: Ne - s
|
|
4434
4434
|
}, f, Array.from({ length: T }, (e, t) => E - 1 - t));
|
|
4435
4435
|
let Pe = V !== void 0 && (o !== V.cellXOffset || c !== V.translateX), Fe = V !== void 0 && (s !== V.cellYOffset || l !== V.translateY);
|
|
4436
|
-
|
|
4436
|
+
M.current = {
|
|
4437
4437
|
cellXOffset: o,
|
|
4438
4438
|
cellYOffset: s,
|
|
4439
4439
|
translateX: c,
|
|
@@ -4446,7 +4446,7 @@ function Fa(e, t) {
|
|
|
4446
4446
|
}, U.restore(), H.restore();
|
|
4447
4447
|
}
|
|
4448
4448
|
//#endregion
|
|
4449
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4449
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/animation-manager.js
|
|
4450
4450
|
var Ia = /* @__PURE__ */ e(X(), 1), La = 80;
|
|
4451
4451
|
function Ra(e) {
|
|
4452
4452
|
let t = e - 1;
|
|
@@ -4516,7 +4516,7 @@ function Va(e) {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
var Ha = Va(() => window.navigator.userAgent.includes("Firefox")), Ua = Va(() => window.navigator.userAgent.includes("Mac OS") && window.navigator.userAgent.includes("Safari") && !window.navigator.userAgent.includes("Chrome")), Wa = Va(() => window.navigator.platform.toLowerCase().startsWith("mac"));
|
|
4518
4518
|
//#endregion
|
|
4519
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4519
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/use-animation-queue.js
|
|
4520
4520
|
function Ga(e) {
|
|
4521
4521
|
let t = K.useRef([]), n = K.useRef(0), r = K.useRef(e);
|
|
4522
4522
|
r.current = e;
|
|
@@ -4534,7 +4534,7 @@ function Ga(e) {
|
|
|
4534
4534
|
}, [i]);
|
|
4535
4535
|
}
|
|
4536
4536
|
//#endregion
|
|
4537
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4537
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/event-args.js
|
|
4538
4538
|
var Ka = "header", qa = "group-header", Ja = "out-of-bounds", Ya;
|
|
4539
4539
|
(function(e) {
|
|
4540
4540
|
e[e.Start = -2] = "Start", e[e.StartPadding = -1] = "StartPadding", e[e.Center = 0] = "Center", e[e.EndPadding = 1] = "EndPadding", e[e.End = 2] = "End";
|
|
@@ -4543,9 +4543,9 @@ function Xa(e, t) {
|
|
|
4543
4543
|
return e === t ? !0 : e?.kind === "out-of-bounds" ? e?.kind === t?.kind && e?.location[0] === t?.location[0] && e?.location[1] === t?.location[1] && e?.region[0] === t?.region[0] && e?.region[1] === t?.region[1] : e?.kind === t?.kind && e?.location[0] === t?.location[0] && e?.location[1] === t?.location[1];
|
|
4544
4544
|
}
|
|
4545
4545
|
//#endregion
|
|
4546
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
4546
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/data-grid.js
|
|
4547
4547
|
var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copyData : (t?.(e))?.getAccessibilityString(e) ?? "", $a = K.memo(K.forwardRef((e, t) => {
|
|
4548
|
-
let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = !1, groupHeaderHeight: u, rowHeight: d, rows: f, getCellContent: p, getRowThemeOverride: m, onHeaderMenuClick: h, onHeaderIndicatorClick: g, enableGroups: _, isFilling: v, onCanvasFocused: y, onCanvasBlur: b, isFocused: x, selection: S, freezeColumns: C, onContextMenu: w, freezeTrailingRows: T, fixedShadowX: E = !0, fixedShadowY: D = !0, drawFocusRing: O, onMouseDown: k, onMouseUp: A, onMouseMoveRaw: ee, onMouseMove: j, onItemHovered: te, dragAndDropState: ne, firstColAccessible: re, onKeyDown:
|
|
4548
|
+
let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = !1, groupHeaderHeight: u, rowHeight: d, rows: f, getCellContent: p, getRowThemeOverride: m, onHeaderMenuClick: h, onHeaderIndicatorClick: g, enableGroups: _, isFilling: v, onCanvasFocused: y, onCanvasBlur: b, isFocused: x, selection: S, freezeColumns: C, onContextMenu: w, freezeTrailingRows: T, fixedShadowX: E = !0, fixedShadowY: D = !0, drawFocusRing: O, onMouseDown: k, onMouseUp: A, onMouseMoveRaw: ee, onMouseMove: j, onItemHovered: te, dragAndDropState: ne, firstColAccessible: re, onKeyDown: ie, onKeyUp: M, highlightRegions: N, canvasRef: P, onDragStart: F, onDragEnd: ae, eventTargetRef: I, isResizing: L, resizeColumn: R, isDragging: oe, isDraggable: se = !1, allowResize: ce, disabledRows: le, hasAppendRow: ue, getGroupDetails: de, theme: fe, prelightCells: pe, headerIcons: me, verticalBorder: he, drawCell: z, drawHeader: ge, onCellFocused: _e, onDragOverCell: ve, onDrop: ye, onDragLeave: B, imageWindowLoader: xe, smoothScrollX: V = !1, smoothScrollY: Se = !1, experimental: H, getCellRenderer: U, resizeIndicator: De = "full" } = e, ke = e.translateX ?? 0, Ae = e.translateY ?? 0, je = Math.max(C, Math.min(a.length - 1, o)), Me = K.useRef(null), Ne = K.useRef(H?.eventTarget ?? window), Pe = Ne.current, Fe = xe, Ie = K.useRef(), [Le, Re] = K.useState(!1), ze = K.useRef([]), Be = K.useRef(), [Ve, He] = K.useState(), [Ue, We] = K.useState(), Ge = K.useRef(null), [Ke, qe] = K.useState(), [Je, Ye] = K.useState(!1), Xe = K.useRef(Je);
|
|
4549
4549
|
Xe.current = Je;
|
|
4550
4550
|
let Ze = K.useMemo(() => new Lr(me, () => {
|
|
4551
4551
|
ht.current = void 0, yt.current();
|
|
@@ -4728,30 +4728,30 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4728
4728
|
enableGroups: _,
|
|
4729
4729
|
freezeColumns: C,
|
|
4730
4730
|
dragAndDropState: ne,
|
|
4731
|
-
theme:
|
|
4731
|
+
theme: fe,
|
|
4732
4732
|
headerHeight: c,
|
|
4733
4733
|
groupHeaderHeight: u,
|
|
4734
|
-
disabledRows:
|
|
4734
|
+
disabledRows: le ?? G.empty(),
|
|
4735
4735
|
rowHeight: d,
|
|
4736
4736
|
verticalBorder: he,
|
|
4737
4737
|
isResizing: L,
|
|
4738
|
-
resizeCol:
|
|
4738
|
+
resizeCol: R,
|
|
4739
4739
|
isFocused: x,
|
|
4740
4740
|
selection: S,
|
|
4741
4741
|
fillHandle: l,
|
|
4742
4742
|
drawCellCallback: z,
|
|
4743
|
-
hasAppendRow:
|
|
4743
|
+
hasAppendRow: ue,
|
|
4744
4744
|
overrideCursor: a,
|
|
4745
4745
|
maxScaleFactor: pt,
|
|
4746
4746
|
freezeTrailingRows: T,
|
|
4747
4747
|
rows: f,
|
|
4748
4748
|
drawFocus: O,
|
|
4749
4749
|
getCellContent: p,
|
|
4750
|
-
getGroupDetails:
|
|
4750
|
+
getGroupDetails: de ?? ((e) => ({ name: e })),
|
|
4751
4751
|
getRowThemeOverride: m,
|
|
4752
4752
|
drawHeaderCallback: ge,
|
|
4753
4753
|
prelightCells: pe,
|
|
4754
|
-
highlightRegions:
|
|
4754
|
+
highlightRegions: N,
|
|
4755
4755
|
imageLoader: Fe,
|
|
4756
4756
|
lastBlitData: Be,
|
|
4757
4757
|
damage: Ie.current,
|
|
@@ -4782,15 +4782,15 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4782
4782
|
_,
|
|
4783
4783
|
C,
|
|
4784
4784
|
ne,
|
|
4785
|
-
|
|
4785
|
+
fe,
|
|
4786
4786
|
c,
|
|
4787
4787
|
u,
|
|
4788
|
-
|
|
4788
|
+
le,
|
|
4789
4789
|
d,
|
|
4790
4790
|
he,
|
|
4791
4791
|
L,
|
|
4792
|
-
|
|
4793
|
-
|
|
4792
|
+
ue,
|
|
4793
|
+
R,
|
|
4794
4794
|
x,
|
|
4795
4795
|
S,
|
|
4796
4796
|
l,
|
|
@@ -4799,12 +4799,12 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4799
4799
|
O,
|
|
4800
4800
|
pt,
|
|
4801
4801
|
p,
|
|
4802
|
-
|
|
4802
|
+
de,
|
|
4803
4803
|
m,
|
|
4804
4804
|
z,
|
|
4805
4805
|
ge,
|
|
4806
4806
|
pe,
|
|
4807
|
-
|
|
4807
|
+
N,
|
|
4808
4808
|
Fe,
|
|
4809
4809
|
Ze,
|
|
4810
4810
|
Le,
|
|
@@ -4836,25 +4836,25 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4836
4836
|
let e = p([Dt, Ot], !0);
|
|
4837
4837
|
jt = e.kind === Ee.NewRow || e.kind === Ee.Marker && e.markerKind !== "number", Mt = e.kind === W.Boolean && Oe(e), Nt = e.cursor;
|
|
4838
4838
|
}
|
|
4839
|
-
let Pt =
|
|
4839
|
+
let Pt = oe ? "grabbing" : (Ue ?? !1) || L ? "col-resize" : Ct || v ? "crosshair" : Nt === void 0 ? kt || jt || Mt || At ? "pointer" : "default" : Nt, Ft = K.useMemo(() => ({
|
|
4840
4840
|
contain: "strict",
|
|
4841
4841
|
display: "block",
|
|
4842
4842
|
cursor: Pt
|
|
4843
4843
|
}), [Pt]), It = K.useRef("default"), Lt = I?.current;
|
|
4844
4844
|
Lt != null && It.current !== Ft.cursor && (Lt.style.cursor = It.current = Ft.cursor);
|
|
4845
4845
|
let Rt = K.useCallback((e, t, n, r) => {
|
|
4846
|
-
if (
|
|
4847
|
-
let i =
|
|
4846
|
+
if (de === void 0) return;
|
|
4847
|
+
let i = de(e);
|
|
4848
4848
|
if (i.actions !== void 0) {
|
|
4849
4849
|
let e = li(t, i.actions);
|
|
4850
4850
|
for (let [a, o] of e.entries()) if (Gr(o, n + t.x, r + o.y)) return i.actions[a];
|
|
4851
4851
|
}
|
|
4852
|
-
}, [
|
|
4852
|
+
}, [de]), zt = K.useCallback((e, t, n, r) => {
|
|
4853
4853
|
let i = nt[t];
|
|
4854
|
-
if (!
|
|
4854
|
+
if (!oe && !L && !(Ue ?? !1)) {
|
|
4855
4855
|
let a = it(e, t, -1);
|
|
4856
4856
|
we(a !== void 0);
|
|
4857
|
-
let o = di(void 0, i, a.x, a.y, a.width, a.height,
|
|
4857
|
+
let o = di(void 0, i, a.x, a.y, a.width, a.height, fe, wt(i.title) === "rtl");
|
|
4858
4858
|
if (i.hasMenu === !0 && o.menuBounds !== void 0 && Gr(o.menuBounds, n, r)) return {
|
|
4859
4859
|
area: "menu",
|
|
4860
4860
|
bounds: o.menuBounds
|
|
@@ -4868,9 +4868,9 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4868
4868
|
nt,
|
|
4869
4869
|
it,
|
|
4870
4870
|
Ue,
|
|
4871
|
-
|
|
4871
|
+
oe,
|
|
4872
4872
|
L,
|
|
4873
|
-
|
|
4873
|
+
fe
|
|
4874
4874
|
]), Bt = K.useRef(0), Vt = K.useRef(), Ht = K.useRef(!1);
|
|
4875
4875
|
ft("pointerdown", K.useCallback((e) => {
|
|
4876
4876
|
let t = Me.current, n = I?.current;
|
|
@@ -4882,10 +4882,10 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4882
4882
|
if (r > e.right || i > e.bottom) return;
|
|
4883
4883
|
}
|
|
4884
4884
|
let a = at(t, r, i, e);
|
|
4885
|
-
Vt.current = a.location, a.isTouch && (Bt.current = Date.now()), Xe.current !== a.isTouch && Ye(a.isTouch), (a.kind !== "header" || zt(t, a.location[0], r, i) === void 0) && (a.kind !== "group-header" || Rt(a.group, a.bounds, a.localEventX, a.localEventY) === void 0) && (k?.(a), !a.isTouch &&
|
|
4885
|
+
Vt.current = a.location, a.isTouch && (Bt.current = Date.now()), Xe.current !== a.isTouch && Ye(a.isTouch), (a.kind !== "header" || zt(t, a.location[0], r, i) === void 0) && (a.kind !== "group-header" || Rt(a.group, a.bounds, a.localEventX, a.localEventY) === void 0) && (k?.(a), !a.isTouch && se !== !0 && se !== a.kind && a.button < 3 && a.button !== 1 && e.preventDefault());
|
|
4886
4886
|
}, [
|
|
4887
4887
|
I,
|
|
4888
|
-
|
|
4888
|
+
se,
|
|
4889
4889
|
at,
|
|
4890
4890
|
Rt,
|
|
4891
4891
|
zt,
|
|
@@ -4990,12 +4990,12 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
4990
4990
|
a(n, t), ct.current = n, e && bt(new Gn([i.location]));
|
|
4991
4991
|
}
|
|
4992
4992
|
let o = i.location[0] >= +!re;
|
|
4993
|
-
We(i.kind === "header" && i.isEdge && o &&
|
|
4993
|
+
We(i.kind === "header" && i.isEdge && o && ce === !0), Tt(i.kind === "cell" && i.isFillHandle), ee?.(e), j(i);
|
|
4994
4994
|
}, [
|
|
4995
4995
|
I,
|
|
4996
4996
|
at,
|
|
4997
4997
|
re,
|
|
4998
|
-
|
|
4998
|
+
ce,
|
|
4999
4999
|
ee,
|
|
5000
5000
|
j,
|
|
5001
5001
|
te,
|
|
@@ -5007,7 +5007,7 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5007
5007
|
let t = Me.current;
|
|
5008
5008
|
if (t === null) return;
|
|
5009
5009
|
let n, r;
|
|
5010
|
-
S.current !== void 0 && (n = it(t, S.current.cell[0], S.current.cell[1]), r = S.current.cell),
|
|
5010
|
+
S.current !== void 0 && (n = it(t, S.current.cell[0], S.current.cell[1]), r = S.current.cell), ie?.({
|
|
5011
5011
|
bounds: n,
|
|
5012
5012
|
stopPropagation: () => e.stopPropagation(),
|
|
5013
5013
|
preventDefault: () => e.preventDefault(),
|
|
@@ -5022,14 +5022,14 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5022
5022
|
location: r
|
|
5023
5023
|
});
|
|
5024
5024
|
}, [
|
|
5025
|
-
|
|
5025
|
+
ie,
|
|
5026
5026
|
S,
|
|
5027
5027
|
it
|
|
5028
5028
|
]), Yt = K.useCallback((e) => {
|
|
5029
5029
|
let t = Me.current;
|
|
5030
5030
|
if (t === null) return;
|
|
5031
5031
|
let n, r;
|
|
5032
|
-
S.current !== void 0 && (n = it(t, S.current.cell[0], S.current.cell[1]), r = S.current.cell),
|
|
5032
|
+
S.current !== void 0 && (n = it(t, S.current.cell[0], S.current.cell[1]), r = S.current.cell), M?.({
|
|
5033
5033
|
bounds: n,
|
|
5034
5034
|
stopPropagation: () => e.stopPropagation(),
|
|
5035
5035
|
preventDefault: () => e.preventDefault(),
|
|
@@ -5044,7 +5044,7 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5044
5044
|
location: r
|
|
5045
5045
|
});
|
|
5046
5046
|
}, [
|
|
5047
|
-
|
|
5047
|
+
M,
|
|
5048
5048
|
S,
|
|
5049
5049
|
it
|
|
5050
5050
|
]), Xt = K.useCallback((e) => {
|
|
@@ -5057,12 +5057,12 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5057
5057
|
}, [P, H?.eventTarget]);
|
|
5058
5058
|
ft("dragstart", K.useCallback((e) => {
|
|
5059
5059
|
let t = Me.current;
|
|
5060
|
-
if (t === null ||
|
|
5060
|
+
if (t === null || se === !1 || L) {
|
|
5061
5061
|
e.preventDefault();
|
|
5062
5062
|
return;
|
|
5063
5063
|
}
|
|
5064
5064
|
let n, r, i = at(t, e.clientX, e.clientY);
|
|
5065
|
-
if (
|
|
5065
|
+
if (se !== !0 && i.kind !== se) {
|
|
5066
5066
|
e.preventDefault();
|
|
5067
5067
|
return;
|
|
5068
5068
|
}
|
|
@@ -5087,19 +5087,19 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5087
5087
|
let o = Math.ceil(window.devicePixelRatio ?? 1);
|
|
5088
5088
|
i.width = a.width * o, i.height = a.height * o;
|
|
5089
5089
|
let s = i.getContext("2d");
|
|
5090
|
-
s !== null && (s.scale(o, o), s.textBaseline = "middle", r === -1 ? (s.font =
|
|
5090
|
+
s !== null && (s.scale(o, o), s.textBaseline = "middle", r === -1 ? (s.font = fe.headerFontFull, s.fillStyle = fe.bgHeader, s.fillRect(0, 0, i.width, i.height), pi(s, 0, 0, a.width, a.height, nt[n], !1, fe, !1, void 0, void 0, !1, 0, Ze, ge, !1)) : (s.font = fe.baseFontFull, s.fillStyle = fe.bgCell, s.fillRect(0, 0, i.width, i.height), ri(s, p([n, r]), 0, r, !1, !1, 0, 0, a.width, a.height, !1, fe, fe.bgCell, Fe, Ze, 1, void 0, !1, 0, void 0, void 0, void 0, dt, U, () => void 0))), i.style.left = "-100%", i.style.position = "absolute", i.style.width = `${a.width}px`, i.style.height = `${a.height}px`, document.body.append(i), e.dataTransfer.setDragImage(i, a.width / 2, a.height / 2), window.setTimeout(() => {
|
|
5091
5091
|
i.remove();
|
|
5092
5092
|
}, 0);
|
|
5093
5093
|
}
|
|
5094
5094
|
}
|
|
5095
5095
|
} else e.preventDefault();
|
|
5096
5096
|
}, [
|
|
5097
|
-
|
|
5097
|
+
se,
|
|
5098
5098
|
L,
|
|
5099
5099
|
at,
|
|
5100
5100
|
F,
|
|
5101
5101
|
it,
|
|
5102
|
-
|
|
5102
|
+
fe,
|
|
5103
5103
|
nt,
|
|
5104
5104
|
Ze,
|
|
5105
5105
|
ge,
|
|
@@ -5197,7 +5197,7 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5197
5197
|
"data-testid": u,
|
|
5198
5198
|
onClick: () => {
|
|
5199
5199
|
let e = P?.current;
|
|
5200
|
-
if (e != null) return
|
|
5200
|
+
if (e != null) return ie?.({
|
|
5201
5201
|
bounds: it(e, i, n),
|
|
5202
5202
|
cancel: () => void 0,
|
|
5203
5203
|
preventDefault: () => void 0,
|
|
@@ -5232,7 +5232,7 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5232
5232
|
q,
|
|
5233
5233
|
p,
|
|
5234
5234
|
P,
|
|
5235
|
-
|
|
5235
|
+
ie,
|
|
5236
5236
|
it,
|
|
5237
5237
|
_e
|
|
5238
5238
|
], 200), rn = C === 0 || !E ? 0 : je > C ? 1 : (0, Ia.default)(-ke / 100, 0, 1), an = -s * 32 + Ae, on = D ? (0, Ia.default)(-an / 100, 0, 1) : 0, sn = K.useMemo(() => {
|
|
@@ -5294,36 +5294,36 @@ var Za = /* @__PURE__ */ e(Dr(), 1), Qa = (e, t) => e.kind === W.Custom ? e.copy
|
|
|
5294
5294
|
}), sn);
|
|
5295
5295
|
}));
|
|
5296
5296
|
//#endregion
|
|
5297
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
5297
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-dnd/data-grid-dnd.js
|
|
5298
5298
|
function eo(e, t, n, r) {
|
|
5299
5299
|
return (0, Ia.default)(Math.round(t - (e.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
|
|
5300
5300
|
}
|
|
5301
5301
|
var to = (e) => {
|
|
5302
|
-
let [t, n] = K.useState(), [r, i] = K.useState(), [a, o] = K.useState(), [s, c] = K.useState(), [l, u] = K.useState(!1), [d, f] = K.useState(), [p, m] = K.useState(), [h, g] = K.useState(), [_, v] = K.useState(!1), [y, b] = K.useState(), { onHeaderMenuClick: x, onHeaderIndicatorClick: S, getCellContent: C, onColumnMoved: w, onColumnResize: T, onColumnResizeStart: E, onColumnResizeEnd: D, gridRef: O, maxColumnWidth: k, minColumnWidth: A, onRowMoved: ee, lockColumns: j, onColumnProposeMove: te, onMouseDown: ne, onMouseUp: re, onItemHovered:
|
|
5302
|
+
let [t, n] = K.useState(), [r, i] = K.useState(), [a, o] = K.useState(), [s, c] = K.useState(), [l, u] = K.useState(!1), [d, f] = K.useState(), [p, m] = K.useState(), [h, g] = K.useState(), [_, v] = K.useState(!1), [y, b] = K.useState(), { onHeaderMenuClick: x, onHeaderIndicatorClick: S, getCellContent: C, onColumnMoved: w, onColumnResize: T, onColumnResizeStart: E, onColumnResizeEnd: D, gridRef: O, maxColumnWidth: k, minColumnWidth: A, onRowMoved: ee, lockColumns: j, onColumnProposeMove: te, onMouseDown: ne, onMouseUp: re, onItemHovered: ie, onDragStart: M, canvasRef: N } = e, P = (T ?? D ?? E) !== void 0, { columns: F, selection: ae } = e, I = ae.columns, L = K.useCallback((e) => {
|
|
5303
5303
|
let [t, n] = e.location;
|
|
5304
|
-
a !== void 0 && s !== t && t >= j ? (u(!0), c(t)) : p !== void 0 && n !== void 0 ? (v(!0), g(Math.max(0, n))) : r === void 0 && !l && !_ &&
|
|
5304
|
+
a !== void 0 && s !== t && t >= j ? (u(!0), c(t)) : p !== void 0 && n !== void 0 ? (v(!0), g(Math.max(0, n))) : r === void 0 && !l && !_ && ie?.(e);
|
|
5305
5305
|
}, [
|
|
5306
5306
|
a,
|
|
5307
5307
|
p,
|
|
5308
5308
|
s,
|
|
5309
|
-
|
|
5309
|
+
ie,
|
|
5310
5310
|
j,
|
|
5311
5311
|
r,
|
|
5312
5312
|
l,
|
|
5313
5313
|
_
|
|
5314
|
-
]),
|
|
5314
|
+
]), R = w !== void 0, oe = K.useCallback((e) => {
|
|
5315
5315
|
if (e.button === 0) {
|
|
5316
5316
|
let [t, r] = e.location;
|
|
5317
5317
|
if (e.kind === "out-of-bounds" && e.isEdge && P) {
|
|
5318
5318
|
let e = O?.current?.getBounds(F.length - 1, -1);
|
|
5319
5319
|
e !== void 0 && (n(e.x), i(F.length - 1));
|
|
5320
5320
|
} else if (e.kind === "header" && t >= j) {
|
|
5321
|
-
let r =
|
|
5321
|
+
let r = N?.current;
|
|
5322
5322
|
if (e.isEdge && P && r) {
|
|
5323
5323
|
n(e.bounds.x), i(t);
|
|
5324
5324
|
let a = r.getBoundingClientRect().width / r.offsetWidth, o = e.bounds.width / a;
|
|
5325
5325
|
E?.(F[t], o, t, o + (F[t].growOffset ?? 0));
|
|
5326
|
-
} else e.kind === "header" &&
|
|
5326
|
+
} else e.kind === "header" && R && (f(e.bounds.x), o(t));
|
|
5327
5327
|
} else e.kind === "cell" && j > 0 && t === 0 && r !== void 0 && ee !== void 0 && (b(e.bounds.y), m(r));
|
|
5328
5328
|
}
|
|
5329
5329
|
ne?.(e);
|
|
@@ -5334,39 +5334,39 @@ var to = (e) => {
|
|
|
5334
5334
|
ee,
|
|
5335
5335
|
O,
|
|
5336
5336
|
F,
|
|
5337
|
-
|
|
5337
|
+
R,
|
|
5338
5338
|
E,
|
|
5339
|
-
|
|
5340
|
-
]),
|
|
5339
|
+
N
|
|
5340
|
+
]), se = K.useCallback((e, t) => {
|
|
5341
5341
|
l || _ || x?.(e, t);
|
|
5342
5342
|
}, [
|
|
5343
5343
|
l,
|
|
5344
5344
|
_,
|
|
5345
5345
|
x
|
|
5346
|
-
]),
|
|
5346
|
+
]), ce = K.useCallback((e, t) => {
|
|
5347
5347
|
l || _ || S?.(e, t);
|
|
5348
5348
|
}, [
|
|
5349
5349
|
l,
|
|
5350
5350
|
_,
|
|
5351
5351
|
S
|
|
5352
|
-
]),
|
|
5353
|
-
|
|
5354
|
-
}, []),
|
|
5352
|
+
]), le = K.useRef(-1), ue = K.useCallback(() => {
|
|
5353
|
+
le.current = -1, m(void 0), g(void 0), b(void 0), v(!1), o(void 0), c(void 0), f(void 0), u(!1), i(void 0), n(void 0);
|
|
5354
|
+
}, []), de = K.useCallback((e, t) => {
|
|
5355
5355
|
if (e.button === 0) {
|
|
5356
5356
|
if (r !== void 0) {
|
|
5357
5357
|
if (I?.hasIndex(r) === !0) for (let e of I) {
|
|
5358
5358
|
if (e === r) continue;
|
|
5359
|
-
let t = F[e], n = eo(t,
|
|
5359
|
+
let t = F[e], n = eo(t, le.current, A, k);
|
|
5360
5360
|
T?.(t, n, e, n + (t.growOffset ?? 0));
|
|
5361
5361
|
}
|
|
5362
|
-
let e = eo(F[r],
|
|
5362
|
+
let e = eo(F[r], le.current, A, k);
|
|
5363
5363
|
if (D?.(F[r], e, r, e + (F[r].growOffset ?? 0)), I.hasIndex(r)) for (let e of I) {
|
|
5364
5364
|
if (e === r) continue;
|
|
5365
|
-
let t = F[e], n = eo(t,
|
|
5365
|
+
let t = F[e], n = eo(t, le.current, A, k);
|
|
5366
5366
|
D?.(t, n, e, n + (t.growOffset ?? 0));
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
|
-
|
|
5369
|
+
ue(), a !== void 0 && s !== void 0 && te?.(a, s) !== !1 && w?.(a, s), p !== void 0 && h !== void 0 && ee?.(p, h);
|
|
5370
5370
|
}
|
|
5371
5371
|
re?.(e, t);
|
|
5372
5372
|
}, [
|
|
@@ -5384,9 +5384,9 @@ var to = (e) => {
|
|
|
5384
5384
|
T,
|
|
5385
5385
|
w,
|
|
5386
5386
|
ee,
|
|
5387
|
-
|
|
5387
|
+
ue,
|
|
5388
5388
|
te
|
|
5389
|
-
]),
|
|
5389
|
+
]), fe = K.useMemo(() => {
|
|
5390
5390
|
if (a !== void 0 && s !== void 0 && a !== s && te?.(a, s) !== !1) return {
|
|
5391
5391
|
src: a,
|
|
5392
5392
|
dest: s
|
|
@@ -5396,14 +5396,14 @@ var to = (e) => {
|
|
|
5396
5396
|
s,
|
|
5397
5397
|
te
|
|
5398
5398
|
]), pe = K.useCallback((e) => {
|
|
5399
|
-
let n =
|
|
5399
|
+
let n = N?.current;
|
|
5400
5400
|
if (a !== void 0 && d !== void 0) Math.abs(e.clientX - d) > 20 && u(!0);
|
|
5401
5401
|
else if (p !== void 0 && y !== void 0) Math.abs(e.clientY - y) > 20 && v(!0);
|
|
5402
5402
|
else if (r !== void 0 && t !== void 0 && n) {
|
|
5403
5403
|
let i = n.getBoundingClientRect().width / n.offsetWidth, a = (e.clientX - t) / i, o = F[r], s = eo(o, a, A, k);
|
|
5404
|
-
if (T?.(o, s, r, s + (o.growOffset ?? 0)),
|
|
5404
|
+
if (T?.(o, s, r, s + (o.growOffset ?? 0)), le.current = a, I?.first() === r) for (let e of I) {
|
|
5405
5405
|
if (e === r) continue;
|
|
5406
|
-
let t = F[e], n = eo(t,
|
|
5406
|
+
let t = F[e], n = eo(t, le.current, A, k);
|
|
5407
5407
|
T?.(t, n, e, n + (t.growOffset ?? 0));
|
|
5408
5408
|
}
|
|
5409
5409
|
}
|
|
@@ -5419,7 +5419,7 @@ var to = (e) => {
|
|
|
5419
5419
|
k,
|
|
5420
5420
|
T,
|
|
5421
5421
|
I,
|
|
5422
|
-
|
|
5422
|
+
N
|
|
5423
5423
|
]), me = K.useCallback((e, t) => {
|
|
5424
5424
|
if (p === void 0 || h === void 0) return C(e, t);
|
|
5425
5425
|
let [n, r] = e;
|
|
@@ -5429,8 +5429,8 @@ var to = (e) => {
|
|
|
5429
5429
|
h,
|
|
5430
5430
|
C
|
|
5431
5431
|
]), he = K.useCallback((e) => {
|
|
5432
|
-
|
|
5433
|
-
}, [
|
|
5432
|
+
M?.(e), e.defaultPrevented() || ue();
|
|
5433
|
+
}, [ue, M]);
|
|
5434
5434
|
return K.createElement($a, {
|
|
5435
5435
|
accessibilityHeight: e.accessibilityHeight,
|
|
5436
5436
|
canvasRef: e.canvasRef,
|
|
@@ -5489,21 +5489,21 @@ var to = (e) => {
|
|
|
5489
5489
|
width: e.width,
|
|
5490
5490
|
getCellContent: me,
|
|
5491
5491
|
isResizing: r !== void 0,
|
|
5492
|
-
onHeaderMenuClick:
|
|
5493
|
-
onHeaderIndicatorClick:
|
|
5492
|
+
onHeaderMenuClick: se,
|
|
5493
|
+
onHeaderIndicatorClick: ce,
|
|
5494
5494
|
isDragging: l,
|
|
5495
5495
|
onItemHovered: L,
|
|
5496
5496
|
onDragStart: he,
|
|
5497
|
-
onMouseDown:
|
|
5497
|
+
onMouseDown: oe,
|
|
5498
5498
|
allowResize: P,
|
|
5499
|
-
onMouseUp:
|
|
5500
|
-
dragAndDropState:
|
|
5499
|
+
onMouseUp: de,
|
|
5500
|
+
dragAndDropState: fe,
|
|
5501
5501
|
onMouseMoveRaw: pe,
|
|
5502
5502
|
ref: O
|
|
5503
5503
|
});
|
|
5504
5504
|
};
|
|
5505
5505
|
//#endregion
|
|
5506
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
5506
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/common/resize-detector.js
|
|
5507
5507
|
function no(e) {
|
|
5508
5508
|
let t = (0, K.useRef)(null), [n, r] = (0, K.useState)({
|
|
5509
5509
|
width: e?.[0],
|
|
@@ -5528,7 +5528,7 @@ function no(e) {
|
|
|
5528
5528
|
};
|
|
5529
5529
|
}
|
|
5530
5530
|
//#endregion
|
|
5531
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
5531
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/scrolling-data-grid/use-kinetic-scroll.js
|
|
5532
5532
|
var ro = (e, t, n) => {
|
|
5533
5533
|
let r = (0, K.useRef)(null), i = (0, K.useRef)(null), a = (0, K.useRef)(null), o = (0, K.useRef)(0), s = (0, K.useRef)(t);
|
|
5534
5534
|
s.current = t;
|
|
@@ -5632,28 +5632,28 @@ var co = (e) => {
|
|
|
5632
5632
|
]);
|
|
5633
5633
|
let ne = K.useCallback((e) => {
|
|
5634
5634
|
x.current = e, m !== void 0 && (m.current = e);
|
|
5635
|
-
}, [m]), re = 0,
|
|
5635
|
+
}, [m]), re = 0, ie = 0, M = Math.min(r, ao);
|
|
5636
5636
|
for (g.push(K.createElement("div", {
|
|
5637
5637
|
key: re++,
|
|
5638
5638
|
style: {
|
|
5639
5639
|
width: i,
|
|
5640
5640
|
height: 0
|
|
5641
5641
|
}
|
|
5642
|
-
}));
|
|
5643
|
-
let e = Math.min(oo,
|
|
5642
|
+
})); ie < M;) {
|
|
5643
|
+
let e = Math.min(oo, M - ie);
|
|
5644
5644
|
g.push(K.createElement("div", {
|
|
5645
5645
|
key: re++,
|
|
5646
5646
|
style: {
|
|
5647
5647
|
width: 0,
|
|
5648
5648
|
height: e
|
|
5649
5649
|
}
|
|
5650
|
-
})),
|
|
5650
|
+
})), ie += e;
|
|
5651
5651
|
}
|
|
5652
|
-
let { ref:
|
|
5652
|
+
let { ref: N, width: P, height: F } = no(h);
|
|
5653
5653
|
return typeof window < "u" && (j.current?.height !== F || j.current?.width !== P) && (window.setTimeout(() => ee.current(), 0), j.current = {
|
|
5654
5654
|
width: P,
|
|
5655
5655
|
height: F
|
|
5656
|
-
}), (P ?? 0) === 0 || (F ?? 0) === 0 ? K.createElement("div", { ref:
|
|
5656
|
+
}), (P ?? 0) === 0 || (F ?? 0) === 0 ? K.createElement("div", { ref: N }) : K.createElement("div", { ref: N }, K.createElement(io, { isSafari: Ua.value }, K.createElement("div", { className: "dvn-underlay" }, t), K.createElement("div", {
|
|
5657
5657
|
ref: ne,
|
|
5658
5658
|
style: j.current,
|
|
5659
5659
|
draggable: o,
|
|
@@ -5983,7 +5983,7 @@ var co = (e) => {
|
|
|
5983
5983
|
return () => clearTimeout(e);
|
|
5984
5984
|
}
|
|
5985
5985
|
}, [d]);
|
|
5986
|
-
let
|
|
5986
|
+
let ie = K.useMemo(() => {
|
|
5987
5987
|
if (!d && !ne) return null;
|
|
5988
5988
|
let e;
|
|
5989
5989
|
v !== void 0 && (e = v.results >= 1e3 ? "over 1000" : `${v.results} result${v.results === 1 ? "" : "s"}`, v.selectedIndex >= 0 && (e = `${v.selectedIndex + 1} of ${e}`));
|
|
@@ -6125,7 +6125,7 @@ var co = (e) => {
|
|
|
6125
6125
|
smoothScrollX: e.smoothScrollX,
|
|
6126
6126
|
smoothScrollY: e.smoothScrollY,
|
|
6127
6127
|
resizeIndicator: e.resizeIndicator
|
|
6128
|
-
}),
|
|
6128
|
+
}), ie);
|
|
6129
6129
|
}, _o = class extends K.PureComponent {
|
|
6130
6130
|
wrapperRef = K.createRef();
|
|
6131
6131
|
componentDidMount() {
|
|
@@ -6184,7 +6184,7 @@ var co = (e) => {
|
|
|
6184
6184
|
}));
|
|
6185
6185
|
};
|
|
6186
6186
|
//#endregion
|
|
6187
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6187
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/common/is-hotkey.js
|
|
6188
6188
|
function bo(e, t) {
|
|
6189
6189
|
return e === void 0 ? !1 : e.length > 1 && e.startsWith("_") ? Number.parseInt(e.slice(1)) === t.keyCode : e.length === 1 && e >= "a" && e <= "z" ? e.toUpperCase().codePointAt(0) === t.keyCode : e === t.key;
|
|
6190
6190
|
}
|
|
@@ -6220,7 +6220,7 @@ function xo(e, t) {
|
|
|
6220
6220
|
return t.altKey === i && t.ctrlKey === n && t.shiftKey === r && t.metaKey === a;
|
|
6221
6221
|
}
|
|
6222
6222
|
//#endregion
|
|
6223
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6223
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/use-selection-behavior.js
|
|
6224
6224
|
function So(e, t, n, r, i, a, o) {
|
|
6225
6225
|
return [
|
|
6226
6226
|
K.useCallback((s, c, l, u) => {
|
|
@@ -6315,7 +6315,7 @@ function So(e, t, n, r, i, a, o) {
|
|
|
6315
6315
|
];
|
|
6316
6316
|
}
|
|
6317
6317
|
//#endregion
|
|
6318
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6318
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/use-cells-for-selection.js
|
|
6319
6319
|
function Co(e, t, n, r, i) {
|
|
6320
6320
|
let a = K.useCallback((n) => {
|
|
6321
6321
|
if (e === !0) {
|
|
@@ -6362,7 +6362,7 @@ function Co(e, t, n, r, i) {
|
|
|
6362
6362
|
return [e === void 0 ? void 0 : s, o];
|
|
6363
6363
|
}
|
|
6364
6364
|
//#endregion
|
|
6365
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6365
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/copy-paste.js
|
|
6366
6366
|
function wo(e) {
|
|
6367
6367
|
if (e.copyData !== void 0) return {
|
|
6368
6368
|
formatted: e.copyData,
|
|
@@ -6522,7 +6522,7 @@ function No(e) {
|
|
|
6522
6522
|
return a !== void 0 && i.push(a), i;
|
|
6523
6523
|
}
|
|
6524
6524
|
//#endregion
|
|
6525
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6525
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor-fns.js
|
|
6526
6526
|
function Po(e, t, n, r, i) {
|
|
6527
6527
|
let a = e;
|
|
6528
6528
|
if (r === "allowPartial" || e.current === void 0 || t === void 0) return e;
|
|
@@ -6625,7 +6625,7 @@ function Ro(e) {
|
|
|
6625
6625
|
return e !== !0;
|
|
6626
6626
|
}
|
|
6627
6627
|
//#endregion
|
|
6628
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6628
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-editor-container/data-grid-container.js
|
|
6629
6629
|
function zo(e) {
|
|
6630
6630
|
return typeof e == "string" ? e : `${e}px`;
|
|
6631
6631
|
}
|
|
@@ -6675,7 +6675,7 @@ function Wo(e, t, n) {
|
|
|
6675
6675
|
]);
|
|
6676
6676
|
}
|
|
6677
6677
|
//#endregion
|
|
6678
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6678
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/use-rem-adjuster.js
|
|
6679
6679
|
function Go({ rowHeight: e, headerHeight: t, groupHeaderHeight: n, theme: r, overscrollX: i, overscrollY: a, scaleToRem: o, remSize: s }) {
|
|
6680
6680
|
let [c, l, u, d, f, p] = K.useMemo(() => {
|
|
6681
6681
|
if (!o || s === 16) return [
|
|
@@ -6720,7 +6720,7 @@ function Go({ rowHeight: e, headerHeight: t, groupHeaderHeight: n, theme: r, ove
|
|
|
6720
6720
|
};
|
|
6721
6721
|
}
|
|
6722
6722
|
//#endregion
|
|
6723
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6723
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor-keybindings.js
|
|
6724
6724
|
var Ko = {
|
|
6725
6725
|
downFill: !1,
|
|
6726
6726
|
rightFill: !1,
|
|
@@ -6839,7 +6839,7 @@ function Jo(e) {
|
|
|
6839
6839
|
}, [t]);
|
|
6840
6840
|
}
|
|
6841
6841
|
//#endregion
|
|
6842
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6842
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/row-grouping.js
|
|
6843
6843
|
function Yo(e) {
|
|
6844
6844
|
function t(e, n, r) {
|
|
6845
6845
|
if (typeof e == "number") return {
|
|
@@ -6968,7 +6968,7 @@ function Qo(e, t, n, r) {
|
|
|
6968
6968
|
};
|
|
6969
6969
|
}
|
|
6970
6970
|
//#endregion
|
|
6971
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
6971
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/row-grouping-api.js
|
|
6972
6972
|
function $o(e, t) {
|
|
6973
6973
|
let n = K.useMemo(() => e === void 0 ? void 0 : Xo(e, t), [e, t]);
|
|
6974
6974
|
return {
|
|
@@ -6999,7 +6999,7 @@ function ts(e, t) {
|
|
|
6999
6999
|
return r[0] === -1 ? e[n] : ts(e[n].subGroups ?? [], r);
|
|
7000
7000
|
}
|
|
7001
7001
|
//#endregion
|
|
7002
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
7002
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/use-initial-scroll-offset.js
|
|
7003
7003
|
function ns(e, t) {
|
|
7004
7004
|
let [n] = K.useState(() => ({
|
|
7005
7005
|
value: e,
|
|
@@ -7061,8 +7061,8 @@ function rs(e, t, n, r, i) {
|
|
|
7061
7061
|
};
|
|
7062
7062
|
}
|
|
7063
7063
|
//#endregion
|
|
7064
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
7065
|
-
var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7064
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
|
|
7065
|
+
var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-Dit5MC8K.js")), ss = 0;
|
|
7066
7066
|
function cs(e) {
|
|
7067
7067
|
return (0, is.default)((0, as.default)((0, as.default)(e).filter((e) => e.span !== void 0).map((e) => (0, Za.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
7068
7068
|
}
|
|
@@ -7091,7 +7091,7 @@ var us = {
|
|
|
7091
7091
|
rows: G.empty(),
|
|
7092
7092
|
current: void 0
|
|
7093
7093
|
}, fs = K.forwardRef((e, t) => {
|
|
7094
|
-
let [n, r] = K.useState(ds), [i, a] = K.useState(), o = K.useRef(null), s = K.useRef(null), [c, l] = K.useState(), u = K.useRef(), d = typeof window > "u" ? null : window, { imageEditorOverride: f, getRowThemeOverride: p, markdownDivCreateNode: m, width: h, height: g, columns: _, rows: v, getCellContent: y, onCellClicked: b, onCellActivated: x, onFillPattern: S, onFinishedEditing: C, coercePasteValue: w, drawHeader: T, drawCell: E, editorBloom: D, onHeaderClicked: O, onColumnProposeMove: k, rangeSelectionColumnSpanning: A = !0, spanRangeBehavior: ee = "default", onGroupHeaderClicked: j, onCellContextMenu: te, className: ne, onHeaderContextMenu: re, getCellsForSelection:
|
|
7094
|
+
let [n, r] = K.useState(ds), [i, a] = K.useState(), o = K.useRef(null), s = K.useRef(null), [c, l] = K.useState(), u = K.useRef(), d = typeof window > "u" ? null : window, { imageEditorOverride: f, getRowThemeOverride: p, markdownDivCreateNode: m, width: h, height: g, columns: _, rows: v, getCellContent: y, onCellClicked: b, onCellActivated: x, onFillPattern: S, onFinishedEditing: C, coercePasteValue: w, drawHeader: T, drawCell: E, editorBloom: D, onHeaderClicked: O, onColumnProposeMove: k, rangeSelectionColumnSpanning: A = !0, spanRangeBehavior: ee = "default", onGroupHeaderClicked: j, onCellContextMenu: te, className: ne, onHeaderContextMenu: re, getCellsForSelection: ie, onGroupHeaderContextMenu: M, onGroupHeaderRenamed: N, onCellEdited: P, onCellsEdited: F, onSearchResultsChanged: ae, searchResults: I, onSearchValueChange: L, searchValue: R, onKeyDown: oe, onKeyUp: se, keybindings: ce, editOnType: le = !0, onRowAppended: ue, onColumnAppended: de, onColumnMoved: fe, validateCell: pe, highlightRegions: me, rangeSelect: he = "rect", columnSelect: z = "multi", rowSelect: _e = "multi", rangeSelectionBlending: ve = "exclusive", columnSelectionBlending: B = "exclusive", rowSelectionBlending: xe = "exclusive", onDelete: Se, onDragStart: H, onMouseMove: U, onPaste: Te, copyHeaders: De = !1, freezeColumns: Oe = 0, cellActivationBehavior: Ae = "second-click", rowSelectionMode: je = "auto", columnSelectionMode: Me = "auto", onHeaderMenuClick: Ne, onHeaderIndicatorClick: Pe, getGroupDetails: Fe, rowGrouping: Ie, onSearchClose: Le, onItemHovered: Re, onSelectionCleared: ze, showSearch: Be, onVisibleRegionChanged: Ve, gridSelection: He, onGridSelectionChange: Ue, minColumnWidth: We = 50, maxColumnWidth: Ge = 500, maxColumnAutoWidth: Ke, provideEditor: qe, trailingRowOptions: Je, freezeTrailingRows: Ye = 0, allowedFillDirections: Xe = "orthogonal", scrollOffsetX: Ze, scrollOffsetY: Qe, verticalBorder: $e, onDragOverCell: et, onDrop: tt, onColumnResize: nt, onColumnResizeEnd: rt, onColumnResizeStart: it, customRenderers: at, fillHandle: ot, experimental: st, fixedShadowX: ct, fixedShadowY: lt, headerIcons: ut, imageWindowLoader: mt, initialSize: ht, isDraggable: gt, onDragLeave: _t, onRowMoved: vt, overscrollX: yt, overscrollY: bt, preventDiagonalScrolling: xt, rightElement: St, rightElementProps: Ct, trapFocus: wt = !1, smoothScrollX: Tt, smoothScrollY: Dt, scaleToRem: Ot = !1, rowHeight: kt = 34, headerHeight: At = 36, groupHeaderHeight: jt = At, theme: Mt, isOutsideClick: Nt, renderers: Pt, resizeIndicator: Ft, scrollToActiveCell: It = !0, drawFocusRing: Lt = !0, portalElementRef: Rt } = e, zt = Lt === "no-editor" ? i === void 0 : Lt, Bt = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, Vt = Bt?.kind ?? e.rowMarkers ?? "none", Ht = Bt?.width ?? e.rowMarkerWidth, Ut = Bt?.startIndex ?? e.rowMarkerStartIndex ?? 1, Gt = Bt?.theme ?? e.rowMarkerTheme, Kt = Bt?.headerTheme, qt = Bt?.headerAlwaysVisible, Jt = _e !== "multi" || Bt?.headerDisabled === !0, Yt = Bt?.checkboxStyle ?? "square", Xt = Math.max(We, 20), Zt = Math.max(Ge, Xt), Qt = Math.max(Ke ?? Zt, Xt), $t = K.useMemo(() => typeof window > "u" ? { fontSize: "16px" } : window.getComputedStyle(document.documentElement), []), { rows: q, rowNumberMapper: en, rowHeight: tn, getRowThemeOverride: nn } = Qo(Ie, v, kt, p), { rowHeight: on, headerHeight: ln, groupHeaderHeight: un, theme: dn, overscrollX: fn, overscrollY: pn } = Go({
|
|
7095
7095
|
groupHeaderHeight: jt,
|
|
7096
7096
|
headerHeight: At,
|
|
7097
7097
|
overscrollX: yt,
|
|
@@ -7100,11 +7100,11 @@ var us = {
|
|
|
7100
7100
|
rowHeight: tn,
|
|
7101
7101
|
scaleToRem: Ot,
|
|
7102
7102
|
theme: Mt
|
|
7103
|
-
}), hn = Jo(
|
|
7103
|
+
}), hn = Jo(ce), gn = Ht ?? (v > 1e4 ? 48 : v > 1e3 ? 44 : v > 100 ? 36 : 32), _n = Vt !== "none", J = +!!_n, vn = Je !== void 0, yn = Je?.sticky === !0, [bn, xn] = K.useState(!1), Sn = Be ?? bn, Cn = K.useCallback(() => {
|
|
7104
7104
|
Le === void 0 ? xn(!1) : Le();
|
|
7105
7105
|
}, [Le]), Y = K.useMemo(() => He === void 0 ? void 0 : ls(He, J), [He, J]) ?? n, wn = K.useRef();
|
|
7106
7106
|
wn.current === void 0 && (wn.current = new AbortController()), K.useEffect(() => () => wn?.current.abort(), []);
|
|
7107
|
-
let [Tn, En] = Co(
|
|
7107
|
+
let [Tn, En] = Co(ie, y, J, wn.current, q), Dn = K.useCallback((e, t, n) => {
|
|
7108
7108
|
if (pe === void 0) return !0;
|
|
7109
7109
|
let r = [e[0] - J, e[1]];
|
|
7110
7110
|
return pe?.(r, t, n);
|
|
@@ -7308,7 +7308,7 @@ var us = {
|
|
|
7308
7308
|
y
|
|
7309
7309
|
]), Sr = K.useCallback((e) => {
|
|
7310
7310
|
let t = Fe?.(e) ?? { name: e };
|
|
7311
|
-
return
|
|
7311
|
+
return N !== void 0 && e !== "" && (t = {
|
|
7312
7312
|
icon: t.icon,
|
|
7313
7313
|
name: t.name,
|
|
7314
7314
|
overrideTheme: t.overrideTheme,
|
|
@@ -7321,7 +7321,7 @@ var us = {
|
|
|
7321
7321
|
})
|
|
7322
7322
|
}]
|
|
7323
7323
|
}), t;
|
|
7324
|
-
}, [Fe,
|
|
7324
|
+
}, [Fe, N]), Cr = K.useCallback((e) => {
|
|
7325
7325
|
let [t, n] = e.cell, r = X[t], i = r?.group === void 0 ? void 0 : Sr(r.group)?.overrideTheme, o = r?.themeOverride, s = nn?.(n);
|
|
7326
7326
|
a({
|
|
7327
7327
|
...e,
|
|
@@ -7471,7 +7471,7 @@ var us = {
|
|
|
7471
7471
|
Ar.current = X.length;
|
|
7472
7472
|
let jr = K.useCallback(async (e, t = !0, n) => {
|
|
7473
7473
|
if (X[e]?.trailingRowOptions?.disabled === !0) return;
|
|
7474
|
-
let r =
|
|
7474
|
+
let r = ue?.(), i, a = !0;
|
|
7475
7475
|
r !== void 0 && (i = await r, i === "top" && (a = !1), typeof i == "number" && (a = !1));
|
|
7476
7476
|
let o = 0, s = () => {
|
|
7477
7477
|
if (kr.current <= q) {
|
|
@@ -7496,12 +7496,12 @@ var us = {
|
|
|
7496
7496
|
s();
|
|
7497
7497
|
}, [
|
|
7498
7498
|
X,
|
|
7499
|
-
|
|
7499
|
+
ue,
|
|
7500
7500
|
J,
|
|
7501
7501
|
q,
|
|
7502
7502
|
In
|
|
7503
7503
|
]), Mr = K.useCallback(async (e, t = !0) => {
|
|
7504
|
-
let n =
|
|
7504
|
+
let n = de?.(), r, i = !0;
|
|
7505
7505
|
n !== void 0 && (r = await n, r === "left" && (i = !1), typeof r == "number" && (i = !1));
|
|
7506
7506
|
let a = 0, o = () => {
|
|
7507
7507
|
if (Ar.current <= X.length) {
|
|
@@ -7526,7 +7526,7 @@ var us = {
|
|
|
7526
7526
|
o();
|
|
7527
7527
|
}, [
|
|
7528
7528
|
X,
|
|
7529
|
-
|
|
7529
|
+
de,
|
|
7530
7530
|
J,
|
|
7531
7531
|
Er,
|
|
7532
7532
|
In
|
|
@@ -7864,7 +7864,7 @@ var us = {
|
|
|
7864
7864
|
}
|
|
7865
7865
|
if (e.kind === "group-header") {
|
|
7866
7866
|
if (d < 0) return;
|
|
7867
|
-
|
|
7867
|
+
M?.(d, {
|
|
7868
7868
|
...e,
|
|
7869
7869
|
preventDefault: s
|
|
7870
7870
|
});
|
|
@@ -7912,7 +7912,7 @@ var us = {
|
|
|
7912
7912
|
wr,
|
|
7913
7913
|
te,
|
|
7914
7914
|
re,
|
|
7915
|
-
|
|
7915
|
+
M,
|
|
7916
7916
|
zr,
|
|
7917
7917
|
j,
|
|
7918
7918
|
O,
|
|
@@ -7980,11 +7980,11 @@ var us = {
|
|
|
7980
7980
|
Ye,
|
|
7981
7981
|
ir,
|
|
7982
7982
|
Ve
|
|
7983
|
-
]), ui = pt(k, K.useCallback((e, t) => k?.(e - J, t - J) !== !1, [k, J])), di = pt(
|
|
7984
|
-
|
|
7983
|
+
]), ui = pt(k, K.useCallback((e, t) => k?.(e - J, t - J) !== !1, [k, J])), di = pt(fe, K.useCallback((e, t) => {
|
|
7984
|
+
fe?.(e - J, t - J), z !== "none" && Rn(G.fromSingleSelection(t), void 0, !0);
|
|
7985
7985
|
}, [
|
|
7986
7986
|
z,
|
|
7987
|
-
|
|
7987
|
+
fe,
|
|
7988
7988
|
J,
|
|
7989
7989
|
Rn
|
|
7990
7990
|
])), fi = K.useRef(!1), pi = K.useCallback((e) => {
|
|
@@ -8193,12 +8193,12 @@ var us = {
|
|
|
8193
8193
|
let [n, r] = t;
|
|
8194
8194
|
if (Y.current !== void 0 && (n !== 0 || r !== 0)) {
|
|
8195
8195
|
let t = Y.current.cell[1] === dr - 1 && e !== void 0, i = Y.current.cell[0] === X.length - 1 && e !== void 0, a = !0;
|
|
8196
|
-
if (t && r === 1 &&
|
|
8196
|
+
if (t && r === 1 && ue !== void 0) {
|
|
8197
8197
|
a = !1;
|
|
8198
8198
|
let e = Y.current.cell[0] + n, t = Nr(e);
|
|
8199
8199
|
jr(t ?? e, !1);
|
|
8200
8200
|
}
|
|
8201
|
-
if (i && n === 1 &&
|
|
8201
|
+
if (i && n === 1 && de !== void 0) {
|
|
8202
8202
|
a = !1;
|
|
8203
8203
|
let e = Y.current.cell[1] + r;
|
|
8204
8204
|
Mr(e, !1);
|
|
@@ -8217,8 +8217,8 @@ var us = {
|
|
|
8217
8217
|
X.length,
|
|
8218
8218
|
jr,
|
|
8219
8219
|
Mr,
|
|
8220
|
+
ue,
|
|
8220
8221
|
de,
|
|
8221
|
-
fe,
|
|
8222
8222
|
Nr
|
|
8223
8223
|
]), Ci = K.useMemo(() => `gdg-overlay-${ss++}`, []), wi = K.useCallback((e) => {
|
|
8224
8224
|
ur();
|
|
@@ -8349,7 +8349,7 @@ var us = {
|
|
|
8349
8349
|
yi
|
|
8350
8350
|
]), Di = K.useCallback((e) => {
|
|
8351
8351
|
let t = !1;
|
|
8352
|
-
if (
|
|
8352
|
+
if (oe !== void 0 && oe({
|
|
8353
8353
|
...e,
|
|
8354
8354
|
...e.location && { location: [e.location[0] - J, e.location[1]] },
|
|
8355
8355
|
cancel: () => {
|
|
@@ -8357,7 +8357,7 @@ var us = {
|
|
|
8357
8357
|
}
|
|
8358
8358
|
}), t || Ei(e) || Y.current === void 0) return;
|
|
8359
8359
|
let [n, r] = Y.current.cell, i = nr.current;
|
|
8360
|
-
if (
|
|
8360
|
+
if (le && !e.metaKey && !e.ctrlKey && Y.current !== void 0 && e.key.length === 1 && /[\p{L}\p{M}\p{N}\p{S}\p{P}]/u.test(e.key) && e.bounds !== void 0 && be(y([n - J, Math.max(0, Math.min(r, q - 1))]))) {
|
|
8361
8361
|
if ((!vn || r !== q) && (i.y > r || r > i.y + i.height || i.x > n || n > i.x + i.width)) return;
|
|
8362
8362
|
let t = {
|
|
8363
8363
|
inputType: "keyboard",
|
|
@@ -8366,8 +8366,8 @@ var us = {
|
|
|
8366
8366
|
x?.([n - J, r], t), wr(e.bounds, t, e.key), e.stopPropagation(), e.preventDefault();
|
|
8367
8367
|
}
|
|
8368
8368
|
}, [
|
|
8369
|
-
|
|
8370
|
-
|
|
8369
|
+
le,
|
|
8370
|
+
oe,
|
|
8371
8371
|
Ei,
|
|
8372
8372
|
Y,
|
|
8373
8373
|
y,
|
|
@@ -8383,7 +8383,7 @@ var us = {
|
|
|
8383
8383
|
preventDefault: t
|
|
8384
8384
|
}), e.kind === "group-header") {
|
|
8385
8385
|
if (n < 0) return;
|
|
8386
|
-
|
|
8386
|
+
M?.(n, {
|
|
8387
8387
|
...e,
|
|
8388
8388
|
preventDefault: t
|
|
8389
8389
|
});
|
|
@@ -8398,7 +8398,7 @@ var us = {
|
|
|
8398
8398
|
}, [
|
|
8399
8399
|
Y,
|
|
8400
8400
|
te,
|
|
8401
|
-
|
|
8401
|
+
M,
|
|
8402
8402
|
re,
|
|
8403
8403
|
J,
|
|
8404
8404
|
xi
|
|
@@ -8599,10 +8599,10 @@ var us = {
|
|
|
8599
8599
|
canvasBounds: n,
|
|
8600
8600
|
onClose: () => Yr(void 0),
|
|
8601
8601
|
onFinish: (e) => {
|
|
8602
|
-
Yr(void 0),
|
|
8602
|
+
Yr(void 0), N?.(t, e);
|
|
8603
8603
|
}
|
|
8604
8604
|
});
|
|
8605
|
-
}, [
|
|
8605
|
+
}, [N, Jr]), zi = Math.min(X.length, Oe + +!!_n);
|
|
8606
8606
|
K.useImperativeHandle(t, () => ({
|
|
8607
8607
|
appendRow: (e, t) => jr(e + J, t),
|
|
8608
8608
|
appendColumn: (e, t) => Mr(e, t),
|
|
@@ -8834,7 +8834,7 @@ var us = {
|
|
|
8834
8834
|
isFilling: c?.fillHandle === !0,
|
|
8835
8835
|
onMouseMove: ai,
|
|
8836
8836
|
onKeyDown: Di,
|
|
8837
|
-
onKeyUp:
|
|
8837
|
+
onKeyUp: se,
|
|
8838
8838
|
onMouseDown: qr,
|
|
8839
8839
|
onMouseUp: ii,
|
|
8840
8840
|
onDragOverCell: et,
|
|
@@ -8844,7 +8844,7 @@ var us = {
|
|
|
8844
8844
|
clientSize: Bn,
|
|
8845
8845
|
rowHeight: on,
|
|
8846
8846
|
searchResults: I,
|
|
8847
|
-
searchValue:
|
|
8847
|
+
searchValue: R,
|
|
8848
8848
|
onSearchValueChange: L,
|
|
8849
8849
|
rows: dr,
|
|
8850
8850
|
scrollRef: or,
|
|
@@ -8872,7 +8872,7 @@ var us = {
|
|
|
8872
8872
|
}))));
|
|
8873
8873
|
});
|
|
8874
8874
|
//#endregion
|
|
8875
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
8875
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/boolean-cell.js
|
|
8876
8876
|
function ps(e) {
|
|
8877
8877
|
let { cell: t, posX: n, posY: r, bounds: i, theme: a } = e, { width: o, height: s, x: c, y: l } = i, u = t.maxSize ?? a.checkboxMaxSize, d = Math.floor(i.y + s / 2), f = vt(u, s, a.cellVerticalPadding), p = gt(_t(t.contentAlign ?? "center", c, o, a.cellHorizontalPadding, f), d, f), m = yt(c + n, l + r, p);
|
|
8878
8878
|
return Oe(t) && m;
|
|
@@ -8917,7 +8917,7 @@ function hs(e, t, n, r, i) {
|
|
|
8917
8917
|
ii(a, s, t, p, m, h, g, l, u, d, r, f), _ && (a.globalAlpha = 1);
|
|
8918
8918
|
}
|
|
8919
8919
|
//#endregion
|
|
8920
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
8920
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/bubbles-overlay-editor-style.js
|
|
8921
8921
|
var gs = /*#__PURE__*/ We("div")({
|
|
8922
8922
|
name: "BubblesOverlayEditorStyle",
|
|
8923
8923
|
class: "gdg-b1ygi5by",
|
|
@@ -8964,7 +8964,7 @@ function ys(e, t) {
|
|
|
8964
8964
|
for (let [e, n] of d.entries()) i.beginPath(), i.fillStyle = r.textBubble, i.fillText(t[e], n.x + r.bubblePadding, s + l / 2 + Y(i, r));
|
|
8965
8965
|
}
|
|
8966
8966
|
//#endregion
|
|
8967
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
8967
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/drilldown-overlay-editor.js
|
|
8968
8968
|
var bs = /*#__PURE__*/ We("div")({
|
|
8969
8969
|
name: "DrilldownOverlayEditorStyle",
|
|
8970
8970
|
class: "gdg-d4zsq0x",
|
|
@@ -9044,7 +9044,7 @@ function Ts(e, t) {
|
|
|
9044
9044
|
}
|
|
9045
9045
|
}
|
|
9046
9046
|
//#endregion
|
|
9047
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9047
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/image-cell.js
|
|
9048
9048
|
var Es = {
|
|
9049
9049
|
getAccessibilityString: (e) => e.data.join(", "),
|
|
9050
9050
|
kind: W.Image,
|
|
@@ -9109,7 +9109,7 @@ function Os(e, t, n, r) {
|
|
|
9109
9109
|
}
|
|
9110
9110
|
}
|
|
9111
9111
|
//#endregion
|
|
9112
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9112
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/loading-cell.js
|
|
9113
9113
|
function ks(e, t) {
|
|
9114
9114
|
let n = e * 49632 + t * 325176;
|
|
9115
9115
|
return n ^= n << 13, n ^= n >> 17, n ^= n << 5, n / 4294967295 * 2;
|
|
@@ -9244,7 +9244,7 @@ function Ls(e, t, n, r, i, a) {
|
|
|
9244
9244
|
}
|
|
9245
9245
|
}
|
|
9246
9246
|
//#endregion
|
|
9247
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9247
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/new-row-cell.js
|
|
9248
9248
|
var Rs = {
|
|
9249
9249
|
getAccessibilityString: () => "",
|
|
9250
9250
|
kind: Ee.NewRow,
|
|
@@ -9269,7 +9269,7 @@ function zs(e, t, n) {
|
|
|
9269
9269
|
r.fillStyle = o.textMedium, r.fillText(t, p + c + o.cellHorizontalPadding + .5, l + d / 2 + Y(r, o)), r.beginPath();
|
|
9270
9270
|
}
|
|
9271
9271
|
//#endregion
|
|
9272
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9272
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/render/draw-edit-hover-indicator.js
|
|
9273
9273
|
function Bs(e, t, n, r, i, a, o) {
|
|
9274
9274
|
e.textBaseline = "alphabetic";
|
|
9275
9275
|
let s = Vs(e, i, r, t, n?.fullSize ?? !1);
|
|
@@ -9292,8 +9292,8 @@ function Vs(e, t, n, r, i) {
|
|
|
9292
9292
|
};
|
|
9293
9293
|
}
|
|
9294
9294
|
//#endregion
|
|
9295
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9296
|
-
var Hs = K.lazy(async () => await import("./number-overlay-editor-
|
|
9295
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
|
|
9296
|
+
var Hs = K.lazy(async () => await import("./number-overlay-editor-CMiX0eIR.js")), Us = {
|
|
9297
9297
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9298
9298
|
kind: W.Number,
|
|
9299
9299
|
needsHover: (e) => e.hoverEffect === !0,
|
|
@@ -9351,7 +9351,7 @@ function Gs(e) {
|
|
|
9351
9351
|
t.lineWidth = 1.1, t.lineCap = "square", t.strokeStyle = n.textLight, t.stroke();
|
|
9352
9352
|
}
|
|
9353
9353
|
//#endregion
|
|
9354
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9354
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/row-id-cell.js
|
|
9355
9355
|
var Ks = {
|
|
9356
9356
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9357
9357
|
kind: W.RowID,
|
|
@@ -9447,7 +9447,7 @@ var Ks = {
|
|
|
9447
9447
|
}));
|
|
9448
9448
|
};
|
|
9449
9449
|
//#endregion
|
|
9450
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9450
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/uri-cell.js
|
|
9451
9451
|
function Xs(e, t, n, r) {
|
|
9452
9452
|
let i = n.cellHorizontalPadding, a = t.height / 2 - e.actualBoundingBoxAscent / 2, o = e.width, s = e.actualBoundingBoxAscent;
|
|
9453
9453
|
return r === "right" ? i = t.width - o - n.cellHorizontalPadding : r === "center" && (i = t.width / 2 - o / 2), {
|
|
@@ -9471,7 +9471,7 @@ function Zs(e) {
|
|
|
9471
9471
|
}, r, i);
|
|
9472
9472
|
}
|
|
9473
9473
|
//#endregion
|
|
9474
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.
|
|
9474
|
+
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/index.js
|
|
9475
9475
|
var Qs = [
|
|
9476
9476
|
Ps,
|
|
9477
9477
|
Rs,
|
|
@@ -9671,7 +9671,7 @@ function ic(e) {
|
|
|
9671
9671
|
}
|
|
9672
9672
|
//#endregion
|
|
9673
9673
|
//#region src/plugins/impl/data-editor/components.tsx
|
|
9674
|
-
var $ =
|
|
9674
|
+
var $ = P(), ac = (e) => {
|
|
9675
9675
|
let t = (0, rc.c)(21), { currentColumnName: n, onRename: r, onCancel: a } = e, [o, s] = (0, K.useState)(""), c;
|
|
9676
9676
|
t[0] !== n || t[1] !== o || t[2] !== r ? (c = () => {
|
|
9677
9677
|
o.trim() && (r(o.trim()), s(n));
|
|
@@ -9680,43 +9680,43 @@ var $ = N(), ac = (e) => {
|
|
|
9680
9680
|
t[4] !== l || t[5] !== a ? (u = (e) => {
|
|
9681
9681
|
e.key === "Enter" ? l() : e.key === "Escape" && a();
|
|
9682
9682
|
}, t[4] = l, t[5] = a, t[6] = u) : u = t[6];
|
|
9683
|
-
let
|
|
9684
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
9685
|
-
let
|
|
9686
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
9683
|
+
let f = u, p;
|
|
9684
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, $.jsxs)(g, { children: [/* @__PURE__ */ (0, $.jsx)(D, { className: "mr-2 h-3.5 w-3.5" }), "Rename column"] }), t[7] = p) : p = t[7];
|
|
9685
|
+
let m;
|
|
9686
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, $.jsx)(d, {
|
|
9687
9687
|
htmlFor: "rename-input",
|
|
9688
9688
|
children: "Column name"
|
|
9689
|
-
}), t[8] =
|
|
9690
|
-
let m;
|
|
9691
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (m = (e) => s(e.target.value), t[9] = m) : m = t[9];
|
|
9689
|
+
}), t[8] = m) : m = t[8];
|
|
9692
9690
|
let h;
|
|
9693
|
-
t[
|
|
9691
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = (e) => s(e.target.value), t[9] = h) : h = t[9];
|
|
9692
|
+
let v;
|
|
9693
|
+
t[10] !== f || t[11] !== o ? (v = /* @__PURE__ */ (0, $.jsxs)("div", { children: [m, /* @__PURE__ */ (0, $.jsx)(_, {
|
|
9694
9694
|
value: o,
|
|
9695
|
-
onChange:
|
|
9695
|
+
onChange: h,
|
|
9696
9696
|
placeholder: "Enter new column name",
|
|
9697
9697
|
className: "mt-1",
|
|
9698
|
-
onKeyDown:
|
|
9699
|
-
})] }), t[10] =
|
|
9700
|
-
let
|
|
9701
|
-
t[13] === o ?
|
|
9702
|
-
let
|
|
9703
|
-
t[15] !== l || t[16] !==
|
|
9698
|
+
onKeyDown: f
|
|
9699
|
+
})] }), t[10] = f, t[11] = o, t[12] = v) : v = t[12];
|
|
9700
|
+
let b;
|
|
9701
|
+
t[13] === o ? b = t[14] : (b = o.trim(), t[13] = o, t[14] = b);
|
|
9702
|
+
let S = !b, C;
|
|
9703
|
+
t[15] !== l || t[16] !== S ? (C = /* @__PURE__ */ (0, $.jsx)(i, {
|
|
9704
9704
|
onClick: l,
|
|
9705
|
-
disabled:
|
|
9705
|
+
disabled: S,
|
|
9706
9706
|
size: "sm",
|
|
9707
9707
|
className: "w-full",
|
|
9708
9708
|
children: "Rename"
|
|
9709
|
-
}), t[15] = l, t[16] =
|
|
9710
|
-
let
|
|
9711
|
-
return t[18] !==
|
|
9709
|
+
}), t[15] = l, t[16] = S, t[17] = C) : C = t[17];
|
|
9710
|
+
let w;
|
|
9711
|
+
return t[18] !== v || t[19] !== C ? (w = /* @__PURE__ */ (0, $.jsxs)(y, { children: [p, /* @__PURE__ */ (0, $.jsx)(x, { children: /* @__PURE__ */ (0, $.jsx)(T, {
|
|
9712
9712
|
className: "w-64 p-4",
|
|
9713
9713
|
children: /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
9714
9714
|
className: "space-y-3",
|
|
9715
|
-
children: [
|
|
9715
|
+
children: [v, C]
|
|
9716
9716
|
})
|
|
9717
|
-
}) })] }), t[18] =
|
|
9717
|
+
}) })] }), t[18] = v, t[19] = C, t[20] = w) : w = t[20], w;
|
|
9718
9718
|
}, oc = (e) => {
|
|
9719
|
-
let t = (0, rc.c)(79), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, K.useState)(""), [c, l] = (0, K.useState)("string"),
|
|
9719
|
+
let t = (0, rc.c)(79), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, K.useState)(""), [c, l] = (0, K.useState)("string"), f, v, b, S, C, w, E, D, O, k, A, ee, j, te, re;
|
|
9720
9720
|
if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
|
|
9721
9721
|
let e = [
|
|
9722
9722
|
"string",
|
|
@@ -9726,95 +9726,95 @@ var $ = N(), ac = (e) => {
|
|
|
9726
9726
|
], i;
|
|
9727
9727
|
t[20] !== o || t[21] !== c || t[22] !== r ? (i = () => {
|
|
9728
9728
|
o.trim() && (r(o.trim(), c), s(""), l("string"));
|
|
9729
|
-
}, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23],
|
|
9730
|
-
let
|
|
9731
|
-
t[24] !==
|
|
9732
|
-
e.key === "Enter" ?
|
|
9733
|
-
}, t[24] =
|
|
9734
|
-
let M =
|
|
9735
|
-
|
|
9729
|
+
}, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23], w = i;
|
|
9730
|
+
let ie;
|
|
9731
|
+
t[24] !== w || t[25] !== a ? (ie = (e) => {
|
|
9732
|
+
e.key === "Enter" ? w() : e.key === "Escape" && a();
|
|
9733
|
+
}, t[24] = w, t[25] = a, t[26] = ie) : ie = t[26];
|
|
9734
|
+
let M = ie;
|
|
9735
|
+
C = y;
|
|
9736
9736
|
let N;
|
|
9737
|
-
t[27] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, $.jsx)(ne, { className: "mr-2 h-3.5 w-3.5" }), t[27] = N) : N = t[27], t[28] === n ?
|
|
9737
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, $.jsx)(ne, { className: "mr-2 h-3.5 w-3.5" }), t[27] = N) : N = t[27], t[28] === n ? re = t[29] : (re = /* @__PURE__ */ (0, $.jsxs)(g, { children: [
|
|
9738
9738
|
N,
|
|
9739
9739
|
"Add column to the ",
|
|
9740
9740
|
n
|
|
9741
|
-
] }), t[28] = n, t[29] =
|
|
9741
|
+
] }), t[28] = n, t[29] = re), S = x, b = T, te = "w-64 p-4", ee = "space-y-3";
|
|
9742
9742
|
let P = `add-column-input-${n}`, F;
|
|
9743
|
-
t[30] === P ? F = t[31] : (F = /* @__PURE__ */ (0, $.jsx)(
|
|
9743
|
+
t[30] === P ? F = t[31] : (F = /* @__PURE__ */ (0, $.jsx)(d, {
|
|
9744
9744
|
htmlFor: P,
|
|
9745
9745
|
children: "Column name"
|
|
9746
9746
|
}), t[30] = P, t[31] = F);
|
|
9747
9747
|
let ae = `add-column-input-${n}`, I;
|
|
9748
9748
|
t[32] === Symbol.for("react.memo_cache_sentinel") ? (I = (e) => s(e.target.value), t[32] = I) : I = t[32];
|
|
9749
9749
|
let L;
|
|
9750
|
-
t[33] !== o || t[34] !== M || t[35] !== ae ? (L = /* @__PURE__ */ (0, $.jsx)(
|
|
9750
|
+
t[33] !== o || t[34] !== M || t[35] !== ae ? (L = /* @__PURE__ */ (0, $.jsx)(_, {
|
|
9751
9751
|
id: ae,
|
|
9752
9752
|
value: o,
|
|
9753
9753
|
onChange: I,
|
|
9754
9754
|
placeholder: "Enter column name",
|
|
9755
9755
|
className: "mt-1",
|
|
9756
9756
|
onKeyDown: M
|
|
9757
|
-
}), t[33] = o, t[34] = M, t[35] = ae, t[36] = L) : L = t[36], t[37] !== F || t[38] !== L ? (
|
|
9758
|
-
let
|
|
9759
|
-
t[40] ===
|
|
9760
|
-
htmlFor:
|
|
9757
|
+
}), t[33] = o, t[34] = M, t[35] = ae, t[36] = L) : L = t[36], t[37] !== F || t[38] !== L ? (j = /* @__PURE__ */ (0, $.jsxs)("div", { children: [F, L] }), t[37] = F, t[38] = L, t[39] = j) : j = t[39];
|
|
9758
|
+
let R = `add-column-type-${n}`;
|
|
9759
|
+
t[40] === R ? A = t[41] : (A = /* @__PURE__ */ (0, $.jsx)(d, {
|
|
9760
|
+
htmlFor: R,
|
|
9761
9761
|
children: "Data type"
|
|
9762
|
-
}), t[40] =
|
|
9763
|
-
let
|
|
9764
|
-
t[43] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
9765
|
-
id:
|
|
9762
|
+
}), t[40] = R, t[41] = A), v = h, D = c, t[42] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => l(e), t[42] = O) : O = t[42];
|
|
9763
|
+
let oe = `add-column-type-${n}`, se;
|
|
9764
|
+
t[43] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ (0, $.jsx)(u, {}), t[43] = se) : se = t[43], t[44] === oe ? k = t[45] : (k = /* @__PURE__ */ (0, $.jsx)(m, {
|
|
9765
|
+
id: oe,
|
|
9766
9766
|
className: "mt-1",
|
|
9767
|
-
children:
|
|
9768
|
-
}), t[44] =
|
|
9769
|
-
} else
|
|
9770
|
-
let
|
|
9771
|
-
t[46] !==
|
|
9767
|
+
children: se
|
|
9768
|
+
}), t[44] = oe, t[45] = k), f = p, E = e.map(sc), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = f, t[6] = v, t[7] = b, t[8] = S, t[9] = C, t[10] = w, t[11] = E, t[12] = D, t[13] = O, t[14] = k, t[15] = A, t[16] = ee, t[17] = j, t[18] = te, t[19] = re;
|
|
9769
|
+
} else f = t[5], v = t[6], b = t[7], S = t[8], C = t[9], w = t[10], E = t[11], D = t[12], O = t[13], k = t[14], A = t[15], ee = t[16], j = t[17], te = t[18], re = t[19];
|
|
9770
|
+
let ie;
|
|
9771
|
+
t[46] !== f || t[47] !== E ? (ie = /* @__PURE__ */ (0, $.jsx)(f, { children: E }), t[46] = f, t[47] = E, t[48] = ie) : ie = t[48];
|
|
9772
9772
|
let M;
|
|
9773
|
-
t[49] !==
|
|
9774
|
-
value:
|
|
9775
|
-
onValueChange:
|
|
9776
|
-
children: [
|
|
9777
|
-
}), t[49] =
|
|
9773
|
+
t[49] !== v || t[50] !== ie || t[51] !== D || t[52] !== O || t[53] !== k ? (M = /* @__PURE__ */ (0, $.jsxs)(v, {
|
|
9774
|
+
value: D,
|
|
9775
|
+
onValueChange: O,
|
|
9776
|
+
children: [k, ie]
|
|
9777
|
+
}), t[49] = v, t[50] = ie, t[51] = D, t[52] = O, t[53] = k, t[54] = M) : M = t[54];
|
|
9778
9778
|
let N;
|
|
9779
|
-
t[55] !== M || t[56] !==
|
|
9779
|
+
t[55] !== M || t[56] !== A ? (N = /* @__PURE__ */ (0, $.jsxs)("div", { children: [A, M] }), t[55] = M, t[56] = A, t[57] = N) : N = t[57];
|
|
9780
9780
|
let P;
|
|
9781
9781
|
t[58] === o ? P = t[59] : (P = o.trim(), t[58] = o, t[59] = P);
|
|
9782
9782
|
let F = !P, ae;
|
|
9783
|
-
t[60] !==
|
|
9784
|
-
onClick:
|
|
9783
|
+
t[60] !== w || t[61] !== F ? (ae = /* @__PURE__ */ (0, $.jsx)(i, {
|
|
9784
|
+
onClick: w,
|
|
9785
9785
|
disabled: F,
|
|
9786
9786
|
size: "sm",
|
|
9787
9787
|
className: "w-full",
|
|
9788
9788
|
children: "Add"
|
|
9789
|
-
}), t[60] =
|
|
9789
|
+
}), t[60] = w, t[61] = F, t[62] = ae) : ae = t[62];
|
|
9790
9790
|
let I;
|
|
9791
|
-
t[63] !== N || t[64] !== ae || t[65] !==
|
|
9792
|
-
className:
|
|
9791
|
+
t[63] !== N || t[64] !== ae || t[65] !== ee || t[66] !== j ? (I = /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
9792
|
+
className: ee,
|
|
9793
9793
|
children: [
|
|
9794
|
-
|
|
9794
|
+
j,
|
|
9795
9795
|
N,
|
|
9796
9796
|
ae
|
|
9797
9797
|
]
|
|
9798
|
-
}), t[63] = N, t[64] = ae, t[65] =
|
|
9798
|
+
}), t[63] = N, t[64] = ae, t[65] = ee, t[66] = j, t[67] = I) : I = t[67];
|
|
9799
9799
|
let L;
|
|
9800
|
-
t[68] !==
|
|
9801
|
-
className:
|
|
9800
|
+
t[68] !== b || t[69] !== I || t[70] !== te ? (L = /* @__PURE__ */ (0, $.jsx)(b, {
|
|
9801
|
+
className: te,
|
|
9802
9802
|
children: I
|
|
9803
|
-
}), t[68] =
|
|
9803
|
+
}), t[68] = b, t[69] = I, t[70] = te, t[71] = L) : L = t[71];
|
|
9804
|
+
let R;
|
|
9805
|
+
t[72] !== S || t[73] !== L ? (R = /* @__PURE__ */ (0, $.jsx)(S, { children: L }), t[72] = S, t[73] = L, t[74] = R) : R = t[74];
|
|
9804
9806
|
let oe;
|
|
9805
|
-
t[
|
|
9806
|
-
let se;
|
|
9807
|
-
return t[75] !== x || t[76] !== oe || t[77] !== te ? (se = /* @__PURE__ */ (0, $.jsxs)(x, { children: [te, oe] }), t[75] = x, t[76] = oe, t[77] = te, t[78] = se) : se = t[78], se;
|
|
9807
|
+
return t[75] !== C || t[76] !== R || t[77] !== re ? (oe = /* @__PURE__ */ (0, $.jsxs)(C, { children: [re, R] }), t[75] = C, t[76] = R, t[77] = re, t[78] = oe) : oe = t[78], oe;
|
|
9808
9808
|
};
|
|
9809
9809
|
function sc(e) {
|
|
9810
9810
|
return /* @__PURE__ */ (0, $.jsx)(f, {
|
|
9811
9811
|
value: e,
|
|
9812
|
-
children:
|
|
9812
|
+
children: M(e)
|
|
9813
9813
|
}, e);
|
|
9814
9814
|
}
|
|
9815
9815
|
//#endregion
|
|
9816
9816
|
//#region src/plugins/impl/data-editor/glide-portal.tsx
|
|
9817
|
-
var cc = /* @__PURE__ */ e(
|
|
9817
|
+
var cc = /* @__PURE__ */ e(N(), 1);
|
|
9818
9818
|
function lc() {
|
|
9819
9819
|
let e = document.querySelector("[data-testid='glide-data-editor-portal'] .gdg-clip-region");
|
|
9820
9820
|
e && e.dispatchEvent(new KeyboardEvent("keydown", {
|
|
@@ -9859,19 +9859,21 @@ var pc = /* @__PURE__ */ t({
|
|
|
9859
9859
|
GlideDataEditor: () => mc,
|
|
9860
9860
|
default: () => mc
|
|
9861
9861
|
}), mc = (e) => {
|
|
9862
|
-
let t = (0, rc.c)(
|
|
9863
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
9862
|
+
let t = (0, rc.c)(91), { data: n, columnFields: a, editableColumns: o, onAddEdits: u } = e, { theme: d } = F(), f = (0, K.useRef)(null), p = (0, K.useRef)(null), [m, h] = (0, K.useState)(), [g, _] = (0, K.useState)(!1), y;
|
|
9863
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
9864
9864
|
columns: G.empty(),
|
|
9865
9865
|
rows: G.empty()
|
|
9866
|
-
}, t[0] =
|
|
9867
|
-
let [
|
|
9866
|
+
}, t[0] = y) : y = t[0];
|
|
9867
|
+
let [x, S] = K.useState(y), T;
|
|
9868
9868
|
t[1] === Symbol.for("react.memo_cache_sentinel") ? (T = {}, t[1] = T) : T = t[1];
|
|
9869
9869
|
let [E, D] = (0, K.useState)(T), ne;
|
|
9870
|
-
|
|
9871
|
-
|
|
9870
|
+
t[2] === o ? ne = t[3] : (ne = o === "all" ? null : new Set(o), t[2] = o, t[3] = ne);
|
|
9871
|
+
let ie = ne, M;
|
|
9872
|
+
if (t[4] !== a || t[5] !== E || t[6] !== ie || t[7] !== d) {
|
|
9873
|
+
M = [];
|
|
9872
9874
|
for (let [e, t] of a) {
|
|
9873
|
-
let n =
|
|
9874
|
-
|
|
9875
|
+
let n = ie === null || ie.has(e);
|
|
9876
|
+
M.push({
|
|
9875
9877
|
id: e,
|
|
9876
9878
|
title: e,
|
|
9877
9879
|
width: E[e],
|
|
@@ -9883,57 +9885,57 @@ var pc = /* @__PURE__ */ t({
|
|
|
9883
9885
|
themeOverride: n ? void 0 : { bgCell: d === "light" ? "#F9F9FA" : "#1e1e21" }
|
|
9884
9886
|
});
|
|
9885
9887
|
}
|
|
9886
|
-
t[
|
|
9887
|
-
} else
|
|
9888
|
-
let
|
|
9889
|
-
t[
|
|
9890
|
-
let [t, r] = e, i = n[r][
|
|
9888
|
+
t[4] = a, t[5] = E, t[6] = ie, t[7] = d, t[8] = M;
|
|
9889
|
+
} else M = t[8];
|
|
9890
|
+
let N = M, P;
|
|
9891
|
+
t[9] !== N || t[10] !== n || t[11] !== ie ? (P = (e) => {
|
|
9892
|
+
let [t, r] = e, i = n[r][N[t].title], a = N[t].kind, o = ie === null || ie.has(N[t].title);
|
|
9891
9893
|
if (a === W.Boolean) {
|
|
9892
9894
|
let e = !!i;
|
|
9893
9895
|
return {
|
|
9894
9896
|
kind: W.Boolean,
|
|
9895
9897
|
allowOverlay: !1,
|
|
9896
|
-
readonly: !
|
|
9898
|
+
readonly: !o,
|
|
9897
9899
|
data: e
|
|
9898
9900
|
};
|
|
9899
9901
|
}
|
|
9900
9902
|
return a === W.Number && typeof i == "number" ? {
|
|
9901
9903
|
kind: W.Number,
|
|
9902
|
-
allowOverlay:
|
|
9903
|
-
readonly: !
|
|
9904
|
+
allowOverlay: o,
|
|
9905
|
+
readonly: !o,
|
|
9904
9906
|
displayData: String(i),
|
|
9905
9907
|
data: i
|
|
9906
9908
|
} : {
|
|
9907
9909
|
kind: W.Text,
|
|
9908
|
-
allowOverlay:
|
|
9909
|
-
readonly: !
|
|
9910
|
+
allowOverlay: o,
|
|
9911
|
+
readonly: !o,
|
|
9910
9912
|
displayData: String(i),
|
|
9911
9913
|
data: String(i)
|
|
9912
9914
|
};
|
|
9913
|
-
}, t[
|
|
9914
|
-
let
|
|
9915
|
-
t[
|
|
9916
|
-
let [n, r] = e, i =
|
|
9915
|
+
}, t[9] = N, t[10] = n, t[11] = ie, t[12] = P) : P = t[12];
|
|
9916
|
+
let I = P, L;
|
|
9917
|
+
t[13] !== N || t[14] !== u ? (L = (e, t) => {
|
|
9918
|
+
let [n, r] = e, i = N[n], a = i.title, o = t.data;
|
|
9917
9919
|
(i.dataType === "number" || i.dataType === "integer") && (t.data === void 0 || t.data === "") && (o = null), u([{
|
|
9918
9920
|
rowIdx: r,
|
|
9919
9921
|
columnId: a,
|
|
9920
9922
|
value: o
|
|
9921
9923
|
}]);
|
|
9922
|
-
}, t[
|
|
9923
|
-
let
|
|
9924
|
-
t[
|
|
9924
|
+
}, t[13] = N, t[14] = u, t[15] = L) : L = t[15];
|
|
9925
|
+
let R = L, oe;
|
|
9926
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (oe = (e, t) => {
|
|
9925
9927
|
D((n) => ({
|
|
9926
9928
|
...n,
|
|
9927
9929
|
[e.title]: t
|
|
9928
9930
|
}));
|
|
9929
|
-
}, t[
|
|
9930
|
-
let
|
|
9931
|
-
t[
|
|
9932
|
-
let [r] = e, i =
|
|
9931
|
+
}, t[16] = oe) : oe = t[16];
|
|
9932
|
+
let se = oe, ce;
|
|
9933
|
+
t[17] !== a || t[18] !== N ? (ce = (e, t, n) => {
|
|
9934
|
+
let [r] = e, i = N[r].title, o = a.get(i);
|
|
9933
9935
|
return A(o, t.data);
|
|
9934
|
-
}, t[
|
|
9935
|
-
let
|
|
9936
|
-
t[
|
|
9936
|
+
}, t[17] = a, t[18] = N, t[19] = ce) : ce = t[19];
|
|
9937
|
+
let le = ce, ue;
|
|
9938
|
+
t[20] !== N || t[21] !== n || t[22] !== o || t[23] !== u || t[24] !== x ? (ue = (e) => {
|
|
9937
9939
|
if (f.current) {
|
|
9938
9940
|
if (r.isMetaOrCtrl(e) && e.key === "c") {
|
|
9939
9941
|
f.current.emit("copy");
|
|
@@ -9941,9 +9943,9 @@ var pc = /* @__PURE__ */ t({
|
|
|
9941
9943
|
}
|
|
9942
9944
|
if (r.isMetaOrCtrl(e) && e.key === "v") {
|
|
9943
9945
|
ee({
|
|
9944
|
-
selection:
|
|
9946
|
+
selection: x,
|
|
9945
9947
|
data: n,
|
|
9946
|
-
columns:
|
|
9948
|
+
columns: N,
|
|
9947
9949
|
editableColumns: o,
|
|
9948
9950
|
onAddEdits: u
|
|
9949
9951
|
});
|
|
@@ -9958,10 +9960,10 @@ var pc = /* @__PURE__ */ t({
|
|
|
9958
9960
|
return;
|
|
9959
9961
|
}
|
|
9960
9962
|
}
|
|
9961
|
-
}, t[
|
|
9962
|
-
let
|
|
9963
|
-
t[
|
|
9964
|
-
let e = Object.fromEntries(
|
|
9963
|
+
}, t[20] = N, t[21] = n, t[22] = o, t[23] = u, t[24] = x, t[25] = ue) : ue = t[25];
|
|
9964
|
+
let de = ue, fe;
|
|
9965
|
+
t[26] !== N || t[27] !== n.length || t[28] !== u ? (fe = () => {
|
|
9966
|
+
let e = Object.fromEntries(N.map(gc));
|
|
9965
9967
|
u(Object.entries(e).map((e) => {
|
|
9966
9968
|
let [t, r] = e;
|
|
9967
9969
|
return {
|
|
@@ -9970,42 +9972,42 @@ var pc = /* @__PURE__ */ t({
|
|
|
9970
9972
|
value: r
|
|
9971
9973
|
};
|
|
9972
9974
|
}));
|
|
9973
|
-
}, t[
|
|
9974
|
-
let
|
|
9975
|
-
t[
|
|
9976
|
-
let e =
|
|
9975
|
+
}, t[26] = N, t[27] = n.length, t[28] = u, t[29] = fe) : fe = t[29];
|
|
9976
|
+
let pe = fe, me;
|
|
9977
|
+
t[30] !== u || t[31] !== x.rows ? (me = () => {
|
|
9978
|
+
let e = x.rows.toArray();
|
|
9977
9979
|
u(e.map(_c)), S({
|
|
9978
9980
|
columns: G.empty(),
|
|
9979
9981
|
rows: G.empty()
|
|
9980
9982
|
});
|
|
9981
|
-
}, t[
|
|
9982
|
-
let
|
|
9983
|
-
t[
|
|
9983
|
+
}, t[30] = u, t[31] = x.rows, t[32] = me) : me = t[32];
|
|
9984
|
+
let he = me, z;
|
|
9985
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (z = (e, t) => {
|
|
9984
9986
|
h({
|
|
9985
9987
|
col: e,
|
|
9986
9988
|
bounds: t
|
|
9987
9989
|
});
|
|
9988
|
-
}, t[
|
|
9989
|
-
let
|
|
9990
|
-
t[
|
|
9990
|
+
}, t[33] = z) : z = t[33];
|
|
9991
|
+
let ge = ae(z), _e;
|
|
9992
|
+
t[34] !== N || t[35] !== m ? (_e = async () => {
|
|
9991
9993
|
if (m) {
|
|
9992
|
-
let e =
|
|
9994
|
+
let e = N[m.col].title;
|
|
9993
9995
|
await c(e), h(void 0);
|
|
9994
9996
|
}
|
|
9995
|
-
}, t[
|
|
9996
|
-
let
|
|
9997
|
-
t[
|
|
9997
|
+
}, t[34] = N, t[35] = m, t[36] = _e) : _e = t[36];
|
|
9998
|
+
let ve = _e, ye;
|
|
9999
|
+
t[37] === Symbol.for("react.memo_cache_sentinel") ? (ye = function(e) {
|
|
9998
10000
|
s({
|
|
9999
10001
|
title: `Column '${e}' already exists`,
|
|
10000
10002
|
description: "Please enter a different column name",
|
|
10001
10003
|
variant: "danger"
|
|
10002
10004
|
});
|
|
10003
|
-
}, t[
|
|
10004
|
-
let
|
|
10005
|
-
t[
|
|
10005
|
+
}, t[37] = ye) : ye = t[37];
|
|
10006
|
+
let be = ye, B;
|
|
10007
|
+
t[38] !== a || t[39] !== m || t[40] !== u ? (B = (e) => {
|
|
10006
10008
|
if (m) {
|
|
10007
10009
|
if (a.has(e)) {
|
|
10008
|
-
|
|
10010
|
+
be(e);
|
|
10009
10011
|
return;
|
|
10010
10012
|
}
|
|
10011
10013
|
u([{
|
|
@@ -10014,21 +10016,21 @@ var pc = /* @__PURE__ */ t({
|
|
|
10014
10016
|
type: O.Rename
|
|
10015
10017
|
}]), h(void 0);
|
|
10016
10018
|
}
|
|
10017
|
-
}, t[
|
|
10018
|
-
let
|
|
10019
|
-
t[
|
|
10019
|
+
}, t[38] = a, t[39] = m, t[40] = u, t[41] = B) : B = t[41];
|
|
10020
|
+
let xe = B, V;
|
|
10021
|
+
t[42] !== m || t[43] !== u ? (V = () => {
|
|
10020
10022
|
m && (u([{
|
|
10021
10023
|
columnIdx: m.col,
|
|
10022
10024
|
type: O.Remove
|
|
10023
10025
|
}]), h(void 0));
|
|
10024
|
-
}, t[
|
|
10025
|
-
let
|
|
10026
|
-
t[
|
|
10026
|
+
}, t[42] = m, t[43] = u, t[44] = V) : V = t[44];
|
|
10027
|
+
let H = V, U;
|
|
10028
|
+
t[45] !== a || t[46] !== N.length || t[47] !== m || t[48] !== u ? (U = (e) => {
|
|
10027
10029
|
let { direction: t, columnName: n, dataType: r } = e;
|
|
10028
10030
|
if (m) {
|
|
10029
|
-
let e = m.col + (t === "left" ? 0 : 1), i = Math.max(0, Math.min(e,
|
|
10031
|
+
let e = m.col + (t === "left" ? 0 : 1), i = Math.max(0, Math.min(e, N.length));
|
|
10030
10032
|
if (a.has(n)) {
|
|
10031
|
-
|
|
10033
|
+
be(n);
|
|
10032
10034
|
return;
|
|
10033
10035
|
}
|
|
10034
10036
|
u([{
|
|
@@ -10038,26 +10040,26 @@ var pc = /* @__PURE__ */ t({
|
|
|
10038
10040
|
type: O.Insert
|
|
10039
10041
|
}]), h(void 0);
|
|
10040
10042
|
}
|
|
10041
|
-
}, t[
|
|
10042
|
-
let
|
|
10043
|
-
t[
|
|
10043
|
+
}, t[45] = a, t[46] = N.length, t[47] = m, t[48] = u, t[49] = U) : U = t[49];
|
|
10044
|
+
let Ce = U, we = m?.col === N.length - 1, Te = m !== void 0, Ee;
|
|
10045
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (Ee = {
|
|
10044
10046
|
hint: "New row",
|
|
10045
10047
|
sticky: !0,
|
|
10046
10048
|
tint: !0
|
|
10047
|
-
}, t[
|
|
10048
|
-
let
|
|
10049
|
-
t[
|
|
10050
|
-
if (!
|
|
10049
|
+
}, t[50] = Ee) : Ee = t[50];
|
|
10050
|
+
let De = Ee, Oe = n.length > 1e5, ke = o === "all", Ae;
|
|
10051
|
+
t[51] !== ke || t[52] !== N || t[53] !== Ce || t[54] !== ve || t[55] !== H || t[56] !== xe || t[57] !== Oe || t[58] !== we || t[59] !== Te || t[60] !== m ? (Ae = () => {
|
|
10052
|
+
if (!Te) return;
|
|
10051
10053
|
let e = /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [
|
|
10052
|
-
|
|
10053
|
-
currentColumnName:
|
|
10054
|
-
onRename:
|
|
10054
|
+
ke && /* @__PURE__ */ (0, $.jsx)(ac, {
|
|
10055
|
+
currentColumnName: N[m.col].title,
|
|
10056
|
+
onRename: xe,
|
|
10055
10057
|
onCancel: () => h(void 0)
|
|
10056
10058
|
}),
|
|
10057
10059
|
/* @__PURE__ */ (0, $.jsx)(C, {}),
|
|
10058
10060
|
/* @__PURE__ */ (0, $.jsx)(oc, {
|
|
10059
10061
|
direction: "left",
|
|
10060
|
-
onAdd: (e, t) =>
|
|
10062
|
+
onAdd: (e, t) => Ce({
|
|
10061
10063
|
direction: "left",
|
|
10062
10064
|
columnName: e,
|
|
10063
10065
|
dataType: t
|
|
@@ -10066,7 +10068,7 @@ var pc = /* @__PURE__ */ t({
|
|
|
10066
10068
|
}),
|
|
10067
10069
|
/* @__PURE__ */ (0, $.jsx)(oc, {
|
|
10068
10070
|
direction: "right",
|
|
10069
|
-
onAdd: (e, t) =>
|
|
10071
|
+
onAdd: (e, t) => Ce({
|
|
10070
10072
|
direction: "right",
|
|
10071
10073
|
columnName: e,
|
|
10072
10074
|
dataType: t
|
|
@@ -10074,90 +10076,90 @@ var pc = /* @__PURE__ */ t({
|
|
|
10074
10076
|
onCancel: () => h(void 0)
|
|
10075
10077
|
}),
|
|
10076
10078
|
/* @__PURE__ */ (0, $.jsx)(C, {}),
|
|
10077
|
-
!
|
|
10078
|
-
onClick:
|
|
10079
|
+
!we && ke && /* @__PURE__ */ (0, $.jsxs)(v, {
|
|
10080
|
+
onClick: H,
|
|
10079
10081
|
className: "text-destructive focus:text-destructive",
|
|
10080
10082
|
children: [/* @__PURE__ */ (0, $.jsx)(te, { className: "mr-2 h-3.5 w-3.5" }), "Delete column"]
|
|
10081
10083
|
})
|
|
10082
10084
|
] });
|
|
10083
10085
|
return /* @__PURE__ */ (0, $.jsx)(w, {
|
|
10084
|
-
open:
|
|
10086
|
+
open: Te,
|
|
10085
10087
|
onOpenChange: (e) => !e && h(void 0),
|
|
10086
|
-
children: /* @__PURE__ */ (0, $.jsxs)(
|
|
10088
|
+
children: /* @__PURE__ */ (0, $.jsxs)(b, {
|
|
10087
10089
|
style: {
|
|
10088
10090
|
left: m?.bounds.x ?? 0,
|
|
10089
10091
|
top: (m?.bounds.y ?? 0) + (m?.bounds.height ?? 0)
|
|
10090
10092
|
},
|
|
10091
10093
|
className: "fixed w-52",
|
|
10092
|
-
children: [/* @__PURE__ */ (0, $.jsxs)(
|
|
10093
|
-
onClick:
|
|
10094
|
+
children: [/* @__PURE__ */ (0, $.jsxs)(v, {
|
|
10095
|
+
onClick: ve,
|
|
10094
10096
|
children: [/* @__PURE__ */ (0, $.jsx)(l, { className: "mr-2 h-3.5 w-3.5" }), "Copy column name"]
|
|
10095
|
-
}), !
|
|
10097
|
+
}), !Oe && e]
|
|
10096
10098
|
})
|
|
10097
10099
|
});
|
|
10098
|
-
}, t[
|
|
10099
|
-
let
|
|
10100
|
-
t[
|
|
10101
|
-
let
|
|
10102
|
-
t[
|
|
10103
|
-
let
|
|
10104
|
-
t[
|
|
10105
|
-
let
|
|
10106
|
-
t[
|
|
10100
|
+
}, t[51] = ke, t[52] = N, t[53] = Ce, t[54] = ve, t[55] = H, t[56] = xe, t[57] = Oe, t[58] = we, t[59] = Te, t[60] = m, t[61] = Ae) : Ae = t[61];
|
|
10101
|
+
let je = Ae, Me;
|
|
10102
|
+
t[62] === Symbol.for("react.memo_cache_sentinel") ? (Me = /* @__PURE__ */ (0, $.jsx)(fc, { portalRef: p }), t[62] = Me) : Me = t[62];
|
|
10103
|
+
let Ne = n.length, Pe = !Oe, Fe = !Oe, Ie = n.length > 10 ? 450 : void 0, Le;
|
|
10104
|
+
t[63] === Symbol.for("react.memo_cache_sentinel") ? (Le = { kind: "both" }, t[63] = Le) : Le = t[63];
|
|
10105
|
+
let Re;
|
|
10106
|
+
t[64] === d ? Re = t[65] : (Re = ic(d), t[64] = d, t[65] = Re);
|
|
10107
|
+
let ze;
|
|
10108
|
+
t[66] !== N || t[67] !== n.length || t[68] !== I || t[69] !== R || t[70] !== ge || t[71] !== de || t[72] !== pe || t[73] !== x || t[74] !== g || t[75] !== Pe || t[76] !== Fe || t[77] !== Ie || t[78] !== Re || t[79] !== le ? (ze = /* @__PURE__ */ (0, $.jsx)(re, { children: /* @__PURE__ */ (0, $.jsx)(nc, {
|
|
10107
10109
|
ref: f,
|
|
10108
10110
|
portalElementRef: p,
|
|
10109
|
-
getCellContent:
|
|
10110
|
-
columns:
|
|
10111
|
-
gridSelection:
|
|
10111
|
+
getCellContent: I,
|
|
10112
|
+
columns: N,
|
|
10113
|
+
gridSelection: x,
|
|
10112
10114
|
onGridSelectionChange: S,
|
|
10113
|
-
rows:
|
|
10115
|
+
rows: Ne,
|
|
10114
10116
|
overscrollX: 50,
|
|
10115
|
-
smoothScrollX:
|
|
10116
|
-
smoothScrollY:
|
|
10117
|
-
validateCell:
|
|
10117
|
+
smoothScrollX: Pe,
|
|
10118
|
+
smoothScrollY: Fe,
|
|
10119
|
+
validateCell: le,
|
|
10118
10120
|
getCellsForSelection: !0,
|
|
10119
10121
|
onPaste: !0,
|
|
10120
10122
|
showSearch: g,
|
|
10121
10123
|
fillHandle: !0,
|
|
10122
10124
|
allowedFillDirections: "vertical",
|
|
10123
|
-
onKeyDown:
|
|
10124
|
-
height:
|
|
10125
|
+
onKeyDown: de,
|
|
10126
|
+
height: Ie,
|
|
10125
10127
|
width: "100%",
|
|
10126
|
-
rowMarkers:
|
|
10128
|
+
rowMarkers: Le,
|
|
10127
10129
|
rowSelectionMode: "multi",
|
|
10128
|
-
onCellEdited:
|
|
10129
|
-
onColumnResize:
|
|
10130
|
-
onHeaderMenuClick:
|
|
10131
|
-
theme:
|
|
10132
|
-
trailingRowOptions:
|
|
10133
|
-
onRowAppended:
|
|
10130
|
+
onCellEdited: R,
|
|
10131
|
+
onColumnResize: se,
|
|
10132
|
+
onHeaderMenuClick: ge,
|
|
10133
|
+
theme: Re,
|
|
10134
|
+
trailingRowOptions: De,
|
|
10135
|
+
onRowAppended: pe,
|
|
10134
10136
|
maxColumnAutoWidth: 600,
|
|
10135
10137
|
maxColumnWidth: 600
|
|
10136
|
-
}) }), t[
|
|
10137
|
-
let
|
|
10138
|
-
t[
|
|
10139
|
-
let
|
|
10140
|
-
t[
|
|
10138
|
+
}) }), t[66] = N, t[67] = n.length, t[68] = I, t[69] = R, t[70] = ge, t[71] = de, t[72] = pe, t[73] = x, t[74] = g, t[75] = Pe, t[76] = Fe, t[77] = Ie, t[78] = Re, t[79] = le, t[80] = ze) : ze = t[80];
|
|
10139
|
+
let Be;
|
|
10140
|
+
t[81] === je ? Be = t[82] : (Be = je(), t[81] = je, t[82] = Be);
|
|
10141
|
+
let Ve = x.rows.length === 0, He = x.rows.length <= 1 ? "Delete row" : "Delete rows", Ue;
|
|
10142
|
+
t[83] !== he || t[84] !== Ve || t[85] !== He ? (Ue = /* @__PURE__ */ (0, $.jsx)("div", {
|
|
10141
10143
|
className: "absolute bottom-1 right-2 w-26",
|
|
10142
10144
|
children: /* @__PURE__ */ (0, $.jsx)(i, {
|
|
10143
10145
|
variant: "destructive",
|
|
10144
10146
|
size: "sm",
|
|
10145
|
-
disabled:
|
|
10147
|
+
disabled: Ve,
|
|
10146
10148
|
className: "right-2 h-7",
|
|
10147
|
-
onClick:
|
|
10148
|
-
children:
|
|
10149
|
+
onClick: he,
|
|
10150
|
+
children: He
|
|
10149
10151
|
})
|
|
10150
|
-
}), t[
|
|
10151
|
-
let
|
|
10152
|
-
return t[
|
|
10152
|
+
}), t[83] = he, t[84] = Ve, t[85] = He, t[86] = Ue) : Ue = t[86];
|
|
10153
|
+
let We;
|
|
10154
|
+
return t[87] !== ze || t[88] !== Be || t[89] !== Ue ? (We = /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
10153
10155
|
className: "relative w-full min-w-0",
|
|
10154
10156
|
children: [
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10157
|
+
Me,
|
|
10158
|
+
ze,
|
|
10159
|
+
Be,
|
|
10160
|
+
Ue
|
|
10159
10161
|
]
|
|
10160
|
-
}), t[
|
|
10162
|
+
}), t[87] = ze, t[88] = Be, t[89] = Ue, t[90] = We) : We = t[90], We;
|
|
10161
10163
|
};
|
|
10162
10164
|
function hc(e) {
|
|
10163
10165
|
return !e;
|
|
@@ -10174,7 +10176,7 @@ function gc(e) {
|
|
|
10174
10176
|
case "string":
|
|
10175
10177
|
case "geometry":
|
|
10176
10178
|
case "unknown": return [e.title, ""];
|
|
10177
|
-
default: return
|
|
10179
|
+
default: return ie(t), [e.title, ""];
|
|
10178
10180
|
}
|
|
10179
10181
|
}
|
|
10180
10182
|
function _c(e, t) {
|