@marimo-team/islands 0.23.9-dev2 → 0.23.9-dev4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-2lBNiUv6.js → ConnectedDataExplorerComponent-OzrfMM5L.js} +20 -20
- package/dist/ErrorBoundary-rULOrC_p.js +175 -0
- package/dist/{ImageComparisonComponent-CNHIsPDj.js → ImageComparisonComponent-CHrI72em.js} +1 -1
- package/dist/{Plot-4wn-lMVn.js → Plot-CAYS29h9.js} +1 -1
- package/dist/{_baseUniq-CxZRxRRo.js → _baseUniq-B_2Hw7zG.js} +3 -3
- package/dist/{any-language-editor-VWs_7v27.js → any-language-editor-DfdpyDv_.js} +23 -23
- package/dist/architecture-7HQA4BMR-Kyc44TmC.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-CXVJxFhH.js → architectureDiagram-VXUJARFQ-CT2SuxNw.js} +15 -15
- package/dist/{arrays-CldYf7p7.js → arrays-sEtDRoG4.js} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DGDaxR8I.js → blockDiagram-VD42YOAC-Dy7hlFla.js} +7 -7
- package/dist/{button-Dj4BTre0.js → button-C5K9fIPF.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-C2hc6ne8.js → c4Diagram-YG6GDRKO-BXlAmZ8Z.js} +4 -4
- package/dist/{capabilities-C9rrYCzf.js → capabilities-BceAxrAW.js} +2 -2
- package/dist/{channel-BBoIVUrJ.js → channel-D_PHgcig.js} +1 -1
- package/dist/{chat-ui-D3XBept8.js → chat-ui-BDI3FMI8.js} +29 -29
- package/dist/{check-BcUIXnUT.js → check-DTbrK0zt.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-BZq7Kom7.js → chunk-4F5CHEZ2-D9nGEHV8.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BOg95xG5.js → chunk-5FQGJX7Z-BNjes6Yx.js} +5 -5
- package/dist/{chunk-ABZYJK2D-D0cLy8Bb.js → chunk-ABZYJK2D-Dz0-H2B5.js} +1 -1
- package/dist/{chunk-ATLVNIR6-BXsEjlHF.js → chunk-ATLVNIR6-o0Z5MZLd.js} +1 -1
- package/dist/{chunk-B2363JML-D9-XOau1.js → chunk-B2363JML-KEJpLGGP.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Q1usn6T3.js → chunk-B4BG7PRW-BL98U9B4.js} +4 -4
- package/dist/{chunk-DI55MBZ5-D1qLYNrb.js → chunk-DI55MBZ5-Dwkn0LWm.js} +4 -4
- package/dist/{chunk-EXTU4WIE-BKNXdLmD.js → chunk-EXTU4WIE-9sNjmQrB.js} +1 -1
- package/dist/{chunk-FRFDVMJY-BSBUAX7r.js → chunk-FRFDVMJY-DzQqMWrl.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-D6c6cOBG.js → chunk-JA3XYJ7Z-C32Y7Epf.js} +2 -2
- package/dist/{chunk-JZLCHNYA-BvsPHJmL.js → chunk-JZLCHNYA-C6ftyVMN.js} +4 -4
- package/dist/{chunk-N4CR4FBY-8ycT-O9a.js → chunk-N4CR4FBY-DUhGZhZs.js} +5 -5
- package/dist/{chunk-PL6DKKU2-B0MTXvyc.js → chunk-PL6DKKU2-D7km-08O.js} +1 -1
- package/dist/{chunk-QN33PNHL-Bb-eUBW3.js → chunk-QN33PNHL-0K6SDYn3.js} +1 -1
- package/dist/{chunk-QXUST7PY-DV8yRwBd.js → chunk-QXUST7PY-DMhsRpYK.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-mQeCz5CE.js → chunk-S3R3BYOJ-oAe3dEbO.js} +3 -3
- package/dist/{chunk-SJTYNZTY-CEG4F0pB.js → chunk-SJTYNZTY-BkJrPRFC.js} +1 -1
- package/dist/{chunk-TCCFYFTB-d3HOqL2I.js → chunk-TCCFYFTB-D58KeXnC.js} +6 -6
- package/dist/{chunk-TQ3KTPDO-DiCtqVSi.js → chunk-TQ3KTPDO-D_yA_wAb.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BqW10dHe.js → chunk-TZMSLE5B-yBKS_DQU.js} +1 -1
- package/dist/{chunk-UMXZTB3W-97iS1iEl.js → chunk-UMXZTB3W-D7uwvNjd.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG--Yh__LHb.js → classDiagram-2ON5EDUG-QjoAcuFE.js} +10 -10
- package/dist/{classDiagram-v2-WZHVMYZB-BC7X7Xtc.js → classDiagram-v2-WZHVMYZB-bUCv4gu2.js} +10 -10
- package/dist/{clone-BuIIsfA8.js → clone-Q4Fqwn6q.js} +1 -1
- package/dist/{code-block-37QAKDTI-BsGy1AOJ.js → code-block-37QAKDTI-m92Yc8pv.js} +2 -2
- package/dist/{code-visibility-Dt0Aq6-t.js → code-visibility-VZebNmSs.js} +7073 -7439
- package/dist/{constants-D0gkYoE2.js → constants-T20xxyNf.js} +2 -2
- package/dist/{copy-DLf4aN7I.js → copy-BuQpJEzp.js} +2 -2
- package/dist/{dagre-6UL2VRFP-DRBWoQUw.js → dagre-6UL2VRFP-J0JKgwOt.js} +11 -11
- package/dist/{dagre-VYEPqXIV.js → dagre-By_QsQgc.js} +11 -11
- package/dist/{data-grid-overlay-editor-efe5ZagF.js → data-grid-overlay-editor-mfEJ5475.js} +2 -2
- package/dist/{diagram-PSM6KHXK-H66ATWP2.js → diagram-PSM6KHXK-DYgJuNk9.js} +18 -18
- package/dist/{diagram-QEK2KX5R-DItl5Wns.js → diagram-QEK2KX5R-CKdBR2sb.js} +14 -14
- package/dist/{diagram-S2PKOQOG-CtuW_ZuL.js → diagram-S2PKOQOG-Dpi7mo5W.js} +14 -14
- package/dist/dist-0Fif7jnk.js +5 -0
- package/dist/{dist-Dh3wkoyH.js → dist-4j4c7bjm.js} +2 -2
- package/dist/{dist-CDFZi-QD.js → dist-B3P2fFpz.js} +1 -1
- package/dist/{dist-BNyrZfqT.js → dist-B3pZ0Ab6.js} +2 -2
- package/dist/dist-B5h_9sHB.js +6 -0
- package/dist/dist-B9M6R5ye.js +5 -0
- package/dist/dist-BCt3tnck.js +8 -0
- package/dist/{dist-BrBucRXs.js → dist-BTfv03uy.js} +2 -2
- package/dist/dist-BUIJwMwn.js +8 -0
- package/dist/{dist-CYEylvZA.js → dist-BbbIBDiQ.js} +1 -1
- package/dist/{dist-KnujRhFL.js → dist-BcuoonNH.js} +4 -4
- package/dist/{dist-DJ6zJQZ4.js → dist-Bde4a2kU.js} +2 -2
- package/dist/{dist-t_qL7eB8.js → dist-Bfwsv11D.js} +2 -2
- package/dist/{dist-CNtV21T_.js → dist-BhM8gdSO.js} +4 -4
- package/dist/{dist-nuW5EDYT.js → dist-BotSqB48.js} +2 -2
- package/dist/dist-BpquMd3k.js +5 -0
- package/dist/dist-BzJsqYfz.js +5 -0
- package/dist/{dist-D029TiHd.js → dist-Bz_sYWbr.js} +2 -2
- package/dist/{dist-D3ZI9nhS.js → dist-C1BYNeCR.js} +4 -4
- package/dist/{dist-Bc5pmZIw.js → dist-C5VC_yzu.js} +1 -1
- package/dist/dist-CA5ELXAf.js +6 -0
- package/dist/dist-CLBRs6Uv.js +5 -0
- package/dist/{dist-Dhk6FMb0.js → dist-CLJWPTX2.js} +3 -3
- package/dist/{dist-C34oIrQ9.js → dist-CLUtPrdy.js} +1 -1
- package/dist/dist-CStVCMbq.js +5 -0
- package/dist/{dist-B8RaFTRF.js → dist-CUCNs1ja.js} +2 -2
- package/dist/dist-CZRIEY3Y.js +8 -0
- package/dist/{dist-UcOPnRMa.js → dist-CcXxepx6.js} +3 -3
- package/dist/dist-CuUHbFD0.js +5 -0
- package/dist/{dist-B8BjrFUE.js → dist-Cy1WxgBD.js} +5 -5
- package/dist/{dist-WdPUFc56.js → dist-D4CewLk6.js} +1 -1
- package/dist/{dist-DMZNjfX4.js → dist-DRfcqpxJ.js} +2 -2
- package/dist/dist-DV7Iabxb.js +8 -0
- package/dist/{dist-usPCDYx8.js → dist-D_bzzWBm.js} +1 -1
- package/dist/{dist-BvCfQQQE.js → dist-DgnE8F-r.js} +1 -1
- package/dist/{dist-JEhxD_cn.js → dist-DhHh0jLg.js} +1 -1
- package/dist/{dist-DGAfI2rB.js → dist-DqAWR3CS.js} +2 -2
- package/dist/{dist--sWVZwjW.js → dist-Du8WkPuU.js} +1 -1
- package/dist/dist-DuEeHMvL.js +5 -0
- package/dist/{dist-BTyJtnNg.js → dist-DxvORzUR.js} +1 -1
- package/dist/{dist-B507mf_I.js → dist-RqXTaiir.js} +2 -2
- package/dist/{dist-Yrfc6L0I.js → dist-fQ0ViXGs.js} +3 -3
- package/dist/{dist-B4LJpMEg.js → dist-h2c8sZvT.js} +1 -1
- package/dist/{dist-C2ej4eOH.js → dist-luvabDEB.js} +2 -2
- package/dist/{dist-B52GXZbd.js → dist-p2qyWijU.js} +2 -2
- package/dist/{erDiagram-Q2GNP2WA--19X2kU5.js → erDiagram-Q2GNP2WA-BU-m41EQ.js} +10 -10
- package/dist/{error-banner-CVkfBUT3.js → error-banner-5bz0L9hS.js} +3 -3
- package/dist/{esm-CWp0KQeK.js → esm-BfhQmZjp.js} +4 -4
- package/dist/{esm-DjNnlmpf.js → esm-Duie8iU-.js} +23 -23
- package/dist/{extends-vAi97cpa.js → extends-BgdxCfYu.js} +6 -6
- package/dist/{flatten-CzBvFdvC.js → flatten-Bbw7g6-K.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-DQmWlo7f.js → flowDiagram-NV44I4VS-CRoXKjGq.js} +10 -10
- package/dist/{formats-Dsy9kkZu.js → formats-DQ5qjo_Q.js} +4 -4
- package/dist/{ganttDiagram-JELNMOA3-BOGXJ8Lk.js → ganttDiagram-JELNMOA3-7mq5f9cO.js} +7 -7
- package/dist/{gitGraph-G5XIXVHT-DGlbae5m.js → gitGraph-G5XIXVHT-DiniR35k.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-DjzxfF0P.js → gitGraphDiagram-V2S2FVAM-Dfuokq6w.js} +13 -13
- package/dist/{glide-data-editor-DucgdjRo.js → glide-data-editor-DqRY9naW.js} +557 -557
- package/dist/{graphlib-CVPKjKCS.js → graphlib-Ns7y5crs.js} +5 -5
- package/dist/{hasIn-COs6vImh.js → hasIn-Deg7jl_j.js} +3 -3
- package/dist/{html-to-image-CpggM7u1.js → html-to-image-CiSinpSR.js} +109 -109
- package/dist/{info-VBDWY6EO-D2lvLLw5.js → info-VBDWY6EO-DVZvGhkQ.js} +3 -3
- package/dist/{infoDiagram-HS3SLOUP-ChNufFsP.js → infoDiagram-HS3SLOUP-CEnzWruK.js} +13 -13
- package/dist/{input-D4kjoQUB.js → input-CZD2z6X2.js} +70 -67
- package/dist/{isEmpty-Dd8mx_WL.js → isEmpty-CJJMn-QP.js} +1 -1
- package/dist/{isSymbol-BvIfMnn6.js → isSymbol-CoUCgMCM.js} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BO_O4Ij1.js → journeyDiagram-XKPGCS4Q-8XYSU1GI.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-CPpiiiWk.js → kanban-definition-3W4ZIXB7--9pT9z1R.js} +7 -7
- package/dist/{label-BLqV33b1.js → label-LWtdw5i8.js} +3 -3
- package/dist/{linear-2NnK4cxi.js → linear-B5-AFRiR.js} +2 -2
- package/dist/{loader-Dr8Qem8p.js → loader-BWLPpjKK.js} +2 -2
- package/dist/main.js +1141 -987
- package/dist/{memoize-C9ltv0Cw.js → memoize-BOtf2yFf.js} +1 -1
- package/dist/{merge-CHn7Yx0N.js → merge-Be1CqGnU.js} +1 -1
- package/dist/mermaid-4DMBBIKO-DIdL224_.js +6 -0
- package/dist/{mermaid-DO-Daq7u.js → mermaid-IU93XzmY.js} +44 -44
- package/dist/{mermaid-parser.core-DreccfmS.js → mermaid-parser.core-C3XRsazI.js} +8 -8
- package/dist/{min-BNz2lZfk.js → min-Dtgc8txR.js} +4 -4
- package/dist/{mindmap-definition-VGOIOE7T-CC1_Vl0f.js → mindmap-definition-VGOIOE7T-B-4mnfFG.js} +9 -9
- package/dist/{now-Sgq5m3D-.js → now-Ch98bJO_.js} +2 -2
- package/dist/{number-overlay-editor-CpKi64Fy.js → number-overlay-editor-D-a0qCT8.js} +1 -1
- package/dist/{once-rJImu7SE.js → once-DPuqGUeo.js} +1 -1
- package/dist/{packet-DYOGHKS2-CmWtF3uO.js → packet-DYOGHKS2-34raHOiB.js} +3 -3
- package/dist/{pick-CRAXxDYn.js → pick-D1Qo8s2C.js} +4 -4
- package/dist/{pie-VRWISCQL-B6u8vus8.js → pie-VRWISCQL-BaLlzZa3.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-Di34MOFQ.js → pieDiagram-ADFJNKIX-Cr3cNpZY.js} +15 -15
- package/dist/{precisionRound-CnHPY_5v.js → precisionRound-Tqb4mg-H.js} +1 -1
- package/dist/{process-output-X8TR20AK.js → process-output-5qJjMRKh.js} +4 -4
- package/dist/{quadrantDiagram-AYHSOK5B-B9kVk1ny.js → quadrantDiagram-AYHSOK5B-BuNL8Q93.js} +4 -4
- package/dist/{radar-ZZBFDIW7-XAmXSa8s.js → radar-ZZBFDIW7-Ci7bfoZa.js} +3 -3
- package/dist/{react-vega-Dh6-UKKe.js → react-vega-B0sAlDTL.js} +9 -9
- package/dist/react-vega-B6ncY2Tp.js +9 -0
- package/dist/{requirementDiagram-UZGBJVZJ-BxGfGYEx.js → requirementDiagram-UZGBJVZJ-BG2lLUN1.js} +9 -9
- package/dist/{reveal-component-Cj2fUG1Q.js → reveal-component-DZtPMEoM.js} +28 -28
- package/dist/{sankeyDiagram-TZEHDZUN-D09PBJ-n.js → sankeyDiagram-TZEHDZUN-DMal8sps.js} +3 -3
- package/dist/{sequenceDiagram-WL72ISMW-t_Dpemj0.js → sequenceDiagram-WL72ISMW-DT6Tk-Eo.js} +4 -4
- package/dist/{spec-hVaaZsY5.js → spec-a6DaqW__.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-B18gTP_j.js → stateDiagram-FKZM4ZOC-CB_lodq3.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-B6e_t14A.js → stateDiagram-v2-4FDKWEC3-E0RGjKsm.js} +10 -10
- package/dist/stex-KfRnSHzF.js +4 -0
- package/dist/{strings-BiIhGaI8.js → strings-Bu3vlb6W.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/{swiper-component-DlD2GU2g.js → swiper-component-B2t5sN1q.js} +3 -3
- package/dist/{time-C1SGcFMH.js → time-CsmIF9YZ.js} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-DJnh1ks5.js → timeline-definition-IT6M3QCI-NfSKRvH0.js} +2 -2
- package/dist/{toDate-CIpC_34u.js → toDate-ZVVIBmdk.js} +5 -5
- package/dist/{tooltip-DRaMBu06.js → tooltip-C5FYOpQc.js} +4 -4
- package/dist/{treemap-GDKQZRPO-Du95DV6u.js → treemap-GDKQZRPO-Cl6OQh8D.js} +3 -3
- package/dist/{types-Dzuoc3LN.js → types-CVvp1fKr.js} +2 -9
- package/dist/{useAsyncData-C56Khv_R.js → useAsyncData-C008zUPi.js} +2 -2
- package/dist/{useDateFormatter-B_9k85Ex.js → useDateFormatter-BA4FCquG.js} +2 -2
- package/dist/{useDeepCompareMemoize-Dt98v2ua.js → useDeepCompareMemoize-BrA3_n61.js} +1 -1
- package/dist/{useIframeCapabilities-BkYHTrss.js → useIframeCapabilities-C4JTXTIh.js} +1 -1
- package/dist/{useLifecycle-BF6-z62y.js → useLifecycle-BNaoJ5a4.js} +4 -4
- package/dist/{useTheme-DykuNHR2.js → useTheme-7O0YWlE5.js} +3 -3
- package/dist/{vega-component-cSdqoAxe.js → vega-component-DJNmOdUj.js} +18 -18
- package/dist/{vega-loader.browser-3_z8GoFC.js → vega-loader.browser-CZ-J8Py3.js} +3 -3
- package/dist/{xychartDiagram-PRI3JC2R-Dk2d_bX0.js → xychartDiagram-PRI3JC2R-BvwftqMA.js} +9 -9
- package/dist/{zod-BWkcDORu.js → zod-CoBiJ5v4.js} +3 -3
- package/package.json +1 -1
- package/src/components/data-table/__tests__/column-header.test.tsx +110 -277
- package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +33 -0
- package/src/components/data-table/__tests__/filter-pill-editor.test.tsx +75 -38
- package/src/components/data-table/__tests__/filter-pills.test.tsx +287 -0
- package/src/components/data-table/__tests__/filter-test-utils.ts +47 -0
- package/src/components/data-table/__tests__/filters.test.ts +5 -5
- package/src/components/data-table/add-filter-button.tsx +85 -0
- package/src/components/data-table/column-header.tsx +92 -691
- package/src/components/data-table/context-menu.tsx +26 -12
- package/src/components/data-table/data-table.tsx +89 -57
- package/src/components/data-table/date-filter-inputs.tsx +13 -10
- package/src/components/data-table/filter-by-values-picker.tsx +13 -19
- package/src/components/data-table/filter-editor-context.tsx +34 -0
- package/src/components/data-table/filter-pill-editor.tsx +152 -175
- package/src/components/data-table/filter-pills.tsx +190 -153
- package/src/components/data-table/filters/builders.ts +102 -0
- package/src/components/data-table/filters/defaults.ts +31 -0
- package/src/components/data-table/filters/format.ts +131 -0
- package/src/components/data-table/filters/guards.ts +51 -0
- package/src/components/data-table/filters/index.ts +7 -0
- package/src/components/data-table/filters/operators.ts +76 -0
- package/src/components/data-table/filters/serialize.ts +186 -0
- package/src/components/data-table/filters/types.ts +33 -0
- package/src/components/data-table/header-items.tsx +6 -83
- package/src/components/data-table/value-chips.tsx +52 -0
- package/src/components/dependency-graph/minimap-content.tsx +2 -2
- package/src/components/ui/number-field.tsx +13 -1
- package/src/utils/dates.ts +39 -0
- package/dist/ErrorBoundary-D3wrPNma.js +0 -167
- package/dist/architecture-7HQA4BMR-CS9jOrqM.js +0 -6
- package/dist/dist-21ButRCu.js +0 -8
- package/dist/dist-B--tLnAP.js +0 -5
- package/dist/dist-BoHGySTM.js +0 -5
- package/dist/dist-ByAz19Qc.js +0 -5
- package/dist/dist-C1Ap5CYU.js +0 -5
- package/dist/dist-C93EysN4.js +0 -5
- package/dist/dist-CY-lVor6.js +0 -8
- package/dist/dist-CYDuv4bR.js +0 -8
- package/dist/dist-Cfo5EE2t.js +0 -6
- package/dist/dist-CjivSDvN.js +0 -5
- package/dist/dist-Cqwx-MH7.js +0 -5
- package/dist/dist-DbpcoFAV.js +0 -6
- package/dist/dist-FUNenbiQ.js +0 -5
- package/dist/dist-zhSud5X3.js +0 -8
- package/dist/mermaid-4DMBBIKO-B7VQMwJx.js +0 -6
- package/dist/react-vega-Cavbrg4l.js +0 -9
- package/dist/stex-ChDHQs3R.js +0 -4
- package/src/components/data-table/__tests__/column-header.test.ts +0 -65
- package/src/components/data-table/filters.ts +0 -386
- /package/dist/{_baseFor-BGiY-cm1.js → _baseFor-4jw-lnCC.js} +0 -0
- /package/dist/{clsx-CyyyQ8Ue.js → clsx-CIWA5tNO.js} +0 -0
- /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-BoHTsDG6.js} +0 -0
- /package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-u-3osm0P.js} +0 -0
- /package/dist/{dist-CCADb07R.js → dist-DNdhYsgW.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DtW2o230.js → emotion-is-prop-valid.esm-DzSb5hsH.js} +0 -0
- /package/dist/{invariant-UcGKQEhF.js → invariant-wRzNXIsJ.js} +0 -0
- /package/dist/{jsx-runtime-COBk7ree.js → jsx-runtime-DebpN0FN.js} +0 -0
- /package/dist/{main-CThhXnXU.js → main-Tj_-QTyF.js} +0 -0
- /package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-DF2w36zS.js} +0 -0
- /package/dist/{ordinal-B43ZeR68.js → ordinal-ArJavP1Q.js} +0 -0
- /package/dist/{purify.es-DT70lfR0.js → purify.es-H92eMd9-.js} +0 -0
- /package/dist/{range-BOiA8qqU.js → range-C-rmrM1O.js} +0 -0
- /package/dist/{react-dom-BWRJ_g_k.js → react-dom-BTJzcVJ9.js} +0 -0
- /package/dist/{stex-DrxP7bb3.js → stex-BIsgBmK4.js} +0 -0
|
@@ -2,21 +2,21 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
|
-
import { _ as Logger, h as Events, t as Button } from "./button-
|
|
5
|
+
import { _ as Logger, h as Events, t as Button } from "./button-C5K9fIPF.js";
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
9
|
-
import { S as logNever, i as SelectContent, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, u as SelectValue } from "./strings-
|
|
10
|
-
import { G as marked, W as useNonce, _ as DropdownMenuSub, d as DropdownMenuContent, g as DropdownMenuSeparator, h as DropdownMenuPortal, p as DropdownMenuItem, r as Input, u as DropdownMenu, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-
|
|
11
|
-
import {
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
14
|
-
import "./
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import { n as
|
|
8
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BuQpJEzp.js";
|
|
9
|
+
import { S as logNever, i as SelectContent, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, u as SelectValue } from "./strings-Bu3vlb6W.js";
|
|
10
|
+
import { G as marked, W as useNonce, _ as DropdownMenuSub, d as DropdownMenuContent, g as DropdownMenuSeparator, h as DropdownMenuPortal, p as DropdownMenuItem, r as Input, u as DropdownMenu, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-CZD2z6X2.js";
|
|
11
|
+
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-CVvp1fKr.js";
|
|
12
|
+
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-rULOrC_p.js";
|
|
13
|
+
import "./react-dom-BTJzcVJ9.js";
|
|
14
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
15
|
+
import "./zod-CoBiJ5v4.js";
|
|
16
|
+
import { t as Label } from "./label-LWtdw5i8.js";
|
|
17
|
+
import { n as useTheme, w as useEvent_default } from "./useTheme-7O0YWlE5.js";
|
|
18
18
|
import { A as require__Map, B as require__baseGetTag, C as require__hasPath, D as require_isArguments, E as require__isIndex, F as require_isFunction, G as assert, H as require__root, I as require_isObject, J as maybe, K as assertNever, L as require__isKey, M as require_eq, N as require__getNative, O as require__castPath, P as require__toSource, R as require_isSymbol, S as resolveCellsThunk, T as require_isLength, U as require__freeGlobal, V as require__Symbol, W as require_isArray, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require__ListCache, k as require__MapCache, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as deepEqual, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as require__toKey, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isObjectLike } from "./click-outside-container-BDd67_1U.js";
|
|
19
|
-
import { t as styled_default } from "./dist-
|
|
19
|
+
import { t as styled_default } from "./dist-D_bzzWBm.js";
|
|
20
20
|
let GlideDataEditor, glide_data_editor_default;
|
|
21
21
|
let __tla = (async () => {
|
|
22
22
|
const ImageOverlayEditorStyle = styled_default("div")({
|
|
@@ -3171,36 +3171,36 @@ let __tla = (async () => {
|
|
|
3171
3171
|
kind: GridCellKind.Loading,
|
|
3172
3172
|
allowOverlay: false
|
|
3173
3173
|
};
|
|
3174
|
-
function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, zr,
|
|
3175
|
-
let
|
|
3176
|
-
e.font =
|
|
3177
|
-
let
|
|
3174
|
+
function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, zr, Br, Vr, B) {
|
|
3175
|
+
let Hr = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Ur = performance.now(), V = I.baseFontFull;
|
|
3176
|
+
e.font = V;
|
|
3177
|
+
let H = {
|
|
3178
3178
|
ctx: e
|
|
3179
|
-
},
|
|
3179
|
+
}, U = [
|
|
3180
3180
|
0,
|
|
3181
3181
|
0
|
|
3182
|
-
],
|
|
3183
|
-
return walkColumns(t, s, a, o, i, (t2, a2, o2, s2,
|
|
3184
|
-
let
|
|
3182
|
+
], W = x > 0 ? getFreezeTrailingHeight(c, x, l) : 0, Wr, G, K = getSkipPoint(C);
|
|
3183
|
+
return walkColumns(t, s, a, o, i, (t2, a2, o2, s2, q) => {
|
|
3184
|
+
let Gr = Math.max(0, s2 - a2), Kr = a2 + Gr, qr = i + 1, Jr = t2.width - Gr, Yr = r - i - 1;
|
|
3185
3185
|
if (C.length > 0) {
|
|
3186
3186
|
let e2 = false;
|
|
3187
3187
|
for (let t3 = 0; t3 < C.length; t3++) {
|
|
3188
3188
|
let n2 = C[t3];
|
|
3189
|
-
if (intersectRect(qr, Jr, Yr,
|
|
3189
|
+
if (intersectRect(Kr, qr, Jr, Yr, n2.x, n2.y, n2.width, n2.height)) {
|
|
3190
3190
|
e2 = true;
|
|
3191
3191
|
break;
|
|
3192
3192
|
}
|
|
3193
3193
|
}
|
|
3194
3194
|
if (!e2) return;
|
|
3195
3195
|
}
|
|
3196
|
-
let
|
|
3197
|
-
e.save(), e.beginPath(), e.rect(qr, Jr, Yr
|
|
3198
|
-
},
|
|
3199
|
-
|
|
3200
|
-
let
|
|
3201
|
-
return walkRowsInCol(
|
|
3196
|
+
let Xr = () => {
|
|
3197
|
+
e.save(), e.beginPath(), e.rect(Kr, qr, Jr, Yr), e.clip();
|
|
3198
|
+
}, Zr = D.columns.hasIndex(t2.sourceIndex), Qr = f(t2.group ?? "").overrideTheme, $r = t2.themeOverride === void 0 && Qr === void 0 ? I : mergeAndRealizeTheme(I, Qr, t2.themeOverride), ei = $r.baseFontFull;
|
|
3199
|
+
ei !== V && (V = ei, e.font = ei), Xr();
|
|
3200
|
+
let ti;
|
|
3201
|
+
return walkRowsInCol(q, o2, r, c, l, x, S, K, (i2, o3, l2, f2, x2) => {
|
|
3202
3202
|
var _a, _b, _c;
|
|
3203
|
-
if (o3 < 0 || (
|
|
3203
|
+
if (o3 < 0 || (U[0] = t2.sourceIndex, U[1] = o3, E !== void 0 && !E.has(U))) return;
|
|
3204
3204
|
if (C.length > 0) {
|
|
3205
3205
|
let e2 = false;
|
|
3206
3206
|
for (let n2 = 0; n2 < C.length; n2++) {
|
|
@@ -3212,66 +3212,66 @@ let __tla = (async () => {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
if (!e2) return;
|
|
3214
3214
|
}
|
|
3215
|
-
let S2 = D.rows.hasIndex(o3),
|
|
3216
|
-
if (
|
|
3217
|
-
let [r2, c2] =
|
|
3218
|
-
if (
|
|
3219
|
-
|
|
3215
|
+
let S2 = D.rows.hasIndex(o3), K2 = h.hasIndex(o3), q2 = o3 < c ? u(U) : loadingCell$1, Gr2 = a2, Kr2 = t2.width, qr2 = false, Jr2 = false;
|
|
3216
|
+
if (q2.span !== void 0) {
|
|
3217
|
+
let [r2, c2] = q2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
|
|
3218
|
+
if (G === void 0 && (G = /* @__PURE__ */ new Set()), G.has(u2)) {
|
|
3219
|
+
Hr--;
|
|
3220
3220
|
return;
|
|
3221
3221
|
} else {
|
|
3222
|
-
let r3 = getSpanBounds(
|
|
3223
|
-
if (!t2.sticky && r3[0] !== void 0 && (
|
|
3224
|
-
|
|
3222
|
+
let r3 = getSpanBounds(q2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
|
|
3223
|
+
if (!t2.sticky && r3[0] !== void 0 && (Jr2 = true), o4 !== void 0) {
|
|
3224
|
+
Gr2 = o4.x, Kr2 = o4.width, G.add(u2), e.restore(), ti = void 0, e.save(), e.beginPath();
|
|
3225
3225
|
let t3 = Math.max(0, s2 - o4.x);
|
|
3226
|
-
e.rect(o4.x + t3, i2, o4.width - t3, l2),
|
|
3226
|
+
e.rect(o4.x + t3, i2, o4.width - t3, l2), Wr === void 0 && (Wr = []), Wr.push({
|
|
3227
3227
|
x: o4.x + t3,
|
|
3228
3228
|
y: i2,
|
|
3229
3229
|
width: o4.width - t3,
|
|
3230
3230
|
height: l2
|
|
3231
|
-
}), e.clip(),
|
|
3231
|
+
}), e.clip(), qr2 = true;
|
|
3232
3232
|
}
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
|
-
let
|
|
3235
|
+
let Yr2 = m == null ? void 0 : m(o3), Qr2 = x2 && ((_a = t2.trailingRowOptions) == null ? void 0 : _a.themeOverride) !== void 0 ? (_b = t2.trailingRowOptions) == null ? void 0 : _b.themeOverride : void 0, J = q2.themeOverride === void 0 && Yr2 === void 0 && Qr2 === void 0 ? $r : mergeAndRealizeTheme($r, Yr2, Qr2, q2.themeOverride);
|
|
3236
3236
|
e.beginPath();
|
|
3237
|
-
let
|
|
3238
|
-
|
|
3239
|
-
let
|
|
3240
|
-
if ((f2 ||
|
|
3241
|
-
|
|
3242
|
-
for (let e2 = 0; e2 <
|
|
3237
|
+
let ni = cellIsSelected(U, q2, D), Y = cellIsInRange(U, q2, D, y), ri = q2.span !== void 0 && D.columns.some((e2) => q2.span !== void 0 && e2 >= q2.span[0] && e2 <= q2.span[1]);
|
|
3238
|
+
ni && !g && y ? Y = 0 : ni && y && (Y = Math.max(Y, 1)), ri && Y++, ni || (S2 && Y++, Zr && !x2 && Y++);
|
|
3239
|
+
let ii = q2.kind === GridCellKind.Protected ? J.bgCellMedium : J.bgCell, oi;
|
|
3240
|
+
if ((f2 || ii !== I.bgCell) && (oi = blend(ii, oi)), Y > 0 || K2) {
|
|
3241
|
+
K2 && (oi = blend(J.bgHeader, oi));
|
|
3242
|
+
for (let e2 = 0; e2 < Y; e2++) oi = blend(J.accentLight, oi);
|
|
3243
3243
|
} else if (O !== void 0) {
|
|
3244
3244
|
for (let e2 of O) if (e2[0] === t2.sourceIndex && e2[1] === o3) {
|
|
3245
|
-
|
|
3245
|
+
oi = blend(J.bgSearchResult, oi);
|
|
3246
3246
|
break;
|
|
3247
3247
|
}
|
|
3248
3248
|
}
|
|
3249
3249
|
if (k !== void 0) for (let e2 = 0; e2 < k.length; e2++) {
|
|
3250
3250
|
let n2 = k[e2], r2 = n2.range;
|
|
3251
|
-
n2.style !== "solid-outline" && r2.x <= t2.sourceIndex && t2.sourceIndex < r2.x + r2.width && r2.y <= o3 && o3 < r2.y + r2.height && (
|
|
3251
|
+
n2.style !== "solid-outline" && r2.x <= t2.sourceIndex && t2.sourceIndex < r2.x + r2.width && r2.y <= o3 && o3 < r2.y + r2.height && (oi = blend(n2.color, oi));
|
|
3252
3252
|
}
|
|
3253
|
-
let
|
|
3253
|
+
let si = false;
|
|
3254
3254
|
if (E !== void 0) {
|
|
3255
|
-
let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r -
|
|
3256
|
-
(n2 !== l2 - 1 ||
|
|
3255
|
+
let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r - W)) - t3;
|
|
3256
|
+
(n2 !== l2 - 1 || Gr2 + 1 <= s2) && (si = true, e.save(), e.beginPath(), e.rect(Gr2 + 1, t3, Kr2 - 1, n2), e.clip()), oi = oi === void 0 ? J.bgCell : blend(oi, J.bgCell);
|
|
3257
3257
|
}
|
|
3258
|
-
let
|
|
3259
|
-
|
|
3260
|
-
let
|
|
3258
|
+
let ci = t2.sourceIndex === n.length - 1, ui = o3 === c - 1;
|
|
3259
|
+
oi !== void 0 && (e.fillStyle = oi, ti !== void 0 && (ti.fillStyle = oi), E === void 0 ? e.fillRect(Gr2, i2, Kr2, l2) : e.fillRect(Gr2 + 1, i2 + 1, Kr2 - (ci ? 2 : 1), l2 - (ui ? 2 : 1))), q2.style === "faded" && (e.globalAlpha = 0.6);
|
|
3260
|
+
let di;
|
|
3261
3261
|
for (let e2 = 0; e2 < M.length; e2++) {
|
|
3262
3262
|
let n2 = M[e2];
|
|
3263
3263
|
if (n2.item[0] === t2.sourceIndex && n2.item[1] === o3) {
|
|
3264
|
-
|
|
3264
|
+
di = n2;
|
|
3265
3265
|
break;
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
if (
|
|
3269
|
-
let n2 =
|
|
3270
|
-
n2 !==
|
|
3268
|
+
if (Kr2 > B && !Jr2) {
|
|
3269
|
+
let n2 = J.baseFontFull;
|
|
3270
|
+
n2 !== V && (e.font = n2, V = n2), ti = drawCell(e, q2, t2.sourceIndex, o3, ci, ui, Gr2, i2, Kr2, l2, Y > 0, J, oi ?? J.bgCell, A, j, (di == null ? void 0 : di.hoverAmount) ?? 0, N, F, Ur, P, ti, L, zr, Br, Vr);
|
|
3271
3271
|
}
|
|
3272
|
-
return
|
|
3273
|
-
}), e.restore(),
|
|
3274
|
-
}),
|
|
3272
|
+
return si && e.restore(), q2.style === "faded" && (e.globalAlpha = 1), Hr--, qr2 && (e.restore(), (_c = ti == null ? void 0 : ti.deprep) == null ? void 0 : _c.call(ti, H), ti = void 0, Xr(), V = ei, e.font = ei), Hr <= 0;
|
|
3273
|
+
}), e.restore(), Hr <= 0;
|
|
3274
|
+
}), Wr;
|
|
3275
3275
|
}
|
|
3276
3276
|
var allocatedItem = [
|
|
3277
3277
|
0,
|
|
@@ -3359,8 +3359,8 @@ let __tla = (async () => {
|
|
|
3359
3359
|
e.save(), e.beginPath(), e.rect(r2 + g2, s, t2.width - g2, o), e.clip();
|
|
3360
3360
|
let E2 = y(t2.group ?? "").overrideTheme, j = t2.themeOverride === void 0 && E2 === void 0 ? f : mergeAndRealizeTheme(f, E2, t2.themeOverride);
|
|
3361
3361
|
j.bgHeader !== f.bgHeader && (e.fillStyle = j.bgHeader, e.fill()), j !== f && (e.font = j.baseFontFull);
|
|
3362
|
-
let M = u.columns.hasIndex(t2.sourceIndex), N = c !== void 0 || l, P = !N && O === -1 && D === t2.sourceIndex, F = N ? 0 : ((_a2 = h.find((e2) => e2.item[0] === t2.sourceIndex && e2.item[1] === -1)) == null ? void 0 : _a2.hoverAmount) ?? 0, I = (u == null ? void 0 : u.current) !== void 0 && u.current.cell[0] === t2.sourceIndex, L = M ? j.accentColor : I ? j.bgHeaderHasFocus : j.bgHeader, zr = n ? s : 0,
|
|
3363
|
-
M ? (e.fillStyle = L, e.fillRect(r2 +
|
|
3362
|
+
let M = u.columns.hasIndex(t2.sourceIndex), N = c !== void 0 || l, P = !N && O === -1 && D === t2.sourceIndex, F = N ? 0 : ((_a2 = h.find((e2) => e2.item[0] === t2.sourceIndex && e2.item[1] === -1)) == null ? void 0 : _a2.hoverAmount) ?? 0, I = (u == null ? void 0 : u.current) !== void 0 && u.current.cell[0] === t2.sourceIndex, L = M ? j.accentColor : I ? j.bgHeaderHasFocus : j.bgHeader, zr = n ? s : 0, Br = t2.sourceIndex === 0 ? 0 : 1;
|
|
3363
|
+
M ? (e.fillStyle = L, e.fillRect(r2 + Br, zr, t2.width - Br, o)) : (I || F > 0) && (e.beginPath(), e.rect(r2 + Br, zr, t2.width - Br, o), I && (e.fillStyle = j.bgHeaderHasFocus, e.fill()), F > 0 && (e.globalAlpha = F, e.fillStyle = j.bgHeaderHovered, e.fill(), e.globalAlpha = 1)), drawHeader(e, r2, zr, t2.width, o, t2, M, j, P, P ? k : void 0, P ? A : void 0, I, F, m, S, C), e.restore();
|
|
3364
3364
|
}), n && drawGroups(e, t, i, a, s, r, f, m, h, g, y, x);
|
|
3365
3365
|
}
|
|
3366
3366
|
function drawGroups(e, t, n, r, i, a, o, s, c, l, u, f) {
|
|
@@ -4405,34 +4405,34 @@ let __tla = (async () => {
|
|
|
4405
4405
|
}
|
|
4406
4406
|
function drawGrid(e, t) {
|
|
4407
4407
|
var _a;
|
|
4408
|
-
let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: zr, prelightCells:
|
|
4408
|
+
let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: zr, prelightCells: Br, drawCellCallback: Vr, highlightRegions: B, resizeCol: Hr, imageLoader: Ur, lastBlitData: V, hoverValues: H, hyperWrapping: U, hoverInfo: W, spriteManager: Wr, maxScaleFactor: G, hasAppendRow: K, touchMode: Gr, enqueue: Kr, renderStateProvider: qr, getCellRenderer: Jr, renderStrategy: Yr, bufferACtx: Xr, bufferBCtx: Zr, damage: Qr, minimumCellWidth: $r, resizeIndicator: ei } = e;
|
|
4409
4409
|
if (i === 0 || a === 0) return;
|
|
4410
|
-
let
|
|
4411
|
-
(
|
|
4412
|
-
let
|
|
4413
|
-
(
|
|
4414
|
-
let
|
|
4415
|
-
|
|
4416
|
-
let
|
|
4417
|
-
if (
|
|
4418
|
-
let
|
|
4419
|
-
|
|
4420
|
-
let
|
|
4421
|
-
|
|
4422
|
-
let fi =
|
|
4423
|
-
|
|
4410
|
+
let ti = Yr === "double-buffer", J = Math.min(G, Math.ceil(window.devicePixelRatio ?? 1)), ni = Yr !== "direct" && computeCanBlit(e, t), Y = n.canvas;
|
|
4411
|
+
(Y.width !== i * J || Y.height !== a * J) && (Y.width = i * J, Y.height = a * J, Y.style.width = i + "px", Y.style.height = a + "px");
|
|
4412
|
+
let ri = r.canvas, ii = f ? S + x : x, ai = ii + 1;
|
|
4413
|
+
(ri.width !== i * J || ri.height !== ai * J) && (ri.width = i * J, ri.height = ai * J, ri.style.width = i + "px", ri.style.height = ai + "px");
|
|
4414
|
+
let oi = Xr.canvas, si = Zr.canvas;
|
|
4415
|
+
ti && (oi.width !== i * J || oi.height !== a * J) && (oi.width = i * J, oi.height = a * J, V.current !== void 0 && (V.current.aBufferScroll = void 0)), ti && (si.width !== i * J || si.height !== a * J) && (si.width = i * J, si.height = a * J, V.current !== void 0 && (V.current.bBufferScroll = void 0));
|
|
4416
|
+
let ci = V.current;
|
|
4417
|
+
if (ni === true && o === (ci == null ? void 0 : ci.cellXOffset) && s === (ci == null ? void 0 : ci.cellYOffset) && c === (ci == null ? void 0 : ci.translateX) && l === (ci == null ? void 0 : ci.translateY)) return;
|
|
4418
|
+
let li = null;
|
|
4419
|
+
ti && (li = n);
|
|
4420
|
+
let ui = r, di;
|
|
4421
|
+
di = ti ? Qr === void 0 ? (ci == null ? void 0 : ci.lastBuffer) === "b" ? Xr : Zr : (ci == null ? void 0 : ci.lastBuffer) === "b" ? Zr : Xr : n;
|
|
4422
|
+
let fi = di.canvas, pi = ti ? fi === oi ? si : oi : Y, mi = typeof E == "number" ? () => E : E;
|
|
4423
|
+
ui.save(), di.save(), ui.beginPath(), di.beginPath(), ui.textBaseline = "middle", di.textBaseline = "middle", J !== 1 && (ui.scale(J, J), di.scale(J, J));
|
|
4424
4424
|
let X = getEffectiveColumns(u, o, i, h, c), hi = [], gi = y && ((_a = A.current) == null ? void 0 : _a.cell[1]) === s && l === 0, vi = false;
|
|
4425
|
-
if (
|
|
4426
|
-
for (let e2 of
|
|
4425
|
+
if (B !== void 0) {
|
|
4426
|
+
for (let e2 of B) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
|
|
4427
4427
|
vi = true;
|
|
4428
4428
|
break;
|
|
4429
4429
|
}
|
|
4430
4430
|
}
|
|
4431
4431
|
let yi = () => {
|
|
4432
|
-
drawGridHeaders(
|
|
4432
|
+
drawGridHeaders(ui, X, f, W, i, c, x, S, h, k, A, g, Wr, H, D, F, Qr, zr, Gr), drawGridLines(ui, X, s, c, l, i, a, void 0, void 0, S, ii, mi, I, D, M, N, g, true), ui.beginPath(), ui.moveTo(0, ai - 0.5), ui.lineTo(i, ai - 0.5), ui.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), ui.stroke(), vi && drawHighlightRings(ui, i, a, o, s, c, l, u, m, x, S, E, M, N, B, g), gi && drawFillHandle(ui, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
|
|
4433
4433
|
};
|
|
4434
|
-
if (
|
|
4435
|
-
let e2 = X[X.length - 1].sourceIndex + 1, t2 =
|
|
4434
|
+
if (Qr !== void 0) {
|
|
4435
|
+
let e2 = X[X.length - 1].sourceIndex + 1, t2 = Qr.hasItemInRegion([
|
|
4436
4436
|
{
|
|
4437
4437
|
x: o,
|
|
4438
4438
|
y: -2,
|
|
@@ -4465,29 +4465,29 @@ let __tla = (async () => {
|
|
|
4465
4465
|
when: M > 0
|
|
4466
4466
|
}
|
|
4467
4467
|
]), n2 = (e3) => {
|
|
4468
|
-
drawCells(e3, X, u, a,
|
|
4468
|
+
drawCells(e3, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, Br, B, Ur, Wr, H, W, Vr, U, g, Kr, qr, Jr, O, $r);
|
|
4469
4469
|
let t3 = A.current;
|
|
4470
|
-
j && y && t3 !== void 0 &&
|
|
4470
|
+
j && y && t3 !== void 0 && Qr.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
|
|
4471
4471
|
};
|
|
4472
|
-
t2 && (n2(
|
|
4472
|
+
t2 && (n2(di), li !== null && (li.save(), li.scale(J, J), li.textBaseline = "middle", n2(li), li.restore()), Qr.hasHeader() && (clipHeaderDamage(ui, X, i, S, ii, c, l, s, Qr), yi())), di.restore(), ui.restore();
|
|
4473
4473
|
return;
|
|
4474
4474
|
}
|
|
4475
|
-
if ((
|
|
4476
|
-
assert(pi !== void 0 &&
|
|
4477
|
-
let { regions: e2 } = blitLastFrame(
|
|
4475
|
+
if ((ni !== true || o !== (ci == null ? void 0 : ci.cellXOffset) || c !== (ci == null ? void 0 : ci.translateX) || gi !== (ci == null ? void 0 : ci.mustDrawFocusOnHeader) || vi !== (ci == null ? void 0 : ci.mustDrawHighlightRingsOnHeader)) && yi(), ni === true) {
|
|
4476
|
+
assert(pi !== void 0 && ci !== void 0);
|
|
4477
|
+
let { regions: e2 } = blitLastFrame(di, pi, pi === oi ? ci.aBufferScroll : ci.bBufferScroll, pi === oi ? ci.bBufferScroll : ci.aBufferScroll, ci, o, s, c, l, M, i, a, N, ii, J, u, X, E, ti);
|
|
4478
4478
|
hi = e2;
|
|
4479
|
-
} else
|
|
4480
|
-
overdrawStickyBoundaries(
|
|
4481
|
-
let bi = drawHighlightRings(
|
|
4482
|
-
if (
|
|
4483
|
-
|
|
4484
|
-
for (let e2 of hi)
|
|
4485
|
-
|
|
4486
|
-
} else
|
|
4487
|
-
let Si = drawCells(
|
|
4488
|
-
drawBlanks(
|
|
4489
|
-
let Ci = getLastRow(X, a,
|
|
4490
|
-
|
|
4479
|
+
} else ni !== false && (assert(ci !== void 0), hi = blitResizedCol(ci, o, s, c, l, i, a, ii, X, ni));
|
|
4480
|
+
overdrawStickyBoundaries(di, X, i, a, M, N, D, mi, g);
|
|
4481
|
+
let bi = drawHighlightRings(di, i, a, o, s, c, l, u, m, x, S, E, M, N, B, g), xi = y ? drawFillHandle(di, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N) : void 0;
|
|
4482
|
+
if (di.fillStyle = g.bgCell, hi.length > 0) {
|
|
4483
|
+
di.beginPath();
|
|
4484
|
+
for (let e2 of hi) di.rect(e2.x, e2.y, e2.width, e2.height);
|
|
4485
|
+
di.clip(), di.fill(), di.beginPath();
|
|
4486
|
+
} else di.fillRect(0, 0, i, a);
|
|
4487
|
+
let Si = drawCells(di, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, Br, B, Ur, Wr, H, W, Vr, U, g, Kr, qr, Jr, O, $r);
|
|
4488
|
+
drawBlanks(di, X, u, i, a, ii, c, l, s, N, mi, I, A.rows, C, M, K, hi, Qr, g), drawExtraRowThemes(di, X, s, c, l, i, a, hi, ii, mi, I, D, M, N, g), drawGridLines(di, X, s, c, l, i, a, hi, Si, S, ii, mi, I, D, M, N, g), bi == null ? void 0 : bi(), xi == null ? void 0 : xi(), k && ei !== "none" && walkColumns(X, 0, c, 0, ii, (e2, t2) => e2.sourceIndex === Hr ? (drawColumnResizeOutline(ui, t2 + e2.width, 0, ii + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), ei === "full" && drawColumnResizeOutline(di, t2 + e2.width, ii, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), li !== null && (li.fillStyle = g.bgCell, li.fillRect(0, 0, i, a), li.drawImage(di.canvas, 0, 0));
|
|
4489
|
+
let Ci = getLastRow(X, a, ii, c, l, s, N, mi, M, K);
|
|
4490
|
+
Ur == null ? void 0 : Ur.setWindow({
|
|
4491
4491
|
x: o,
|
|
4492
4492
|
y: s,
|
|
4493
4493
|
width: X.length,
|
|
@@ -4495,24 +4495,24 @@ let __tla = (async () => {
|
|
|
4495
4495
|
}, m, Array.from({
|
|
4496
4496
|
length: M
|
|
4497
4497
|
}, (e2, t2) => N - 1 - t2));
|
|
4498
|
-
let wi =
|
|
4499
|
-
|
|
4498
|
+
let wi = ci !== void 0 && (o !== ci.cellXOffset || c !== ci.translateX), Ti = ci !== void 0 && (s !== ci.cellYOffset || l !== ci.translateY);
|
|
4499
|
+
V.current = {
|
|
4500
4500
|
cellXOffset: o,
|
|
4501
4501
|
cellYOffset: s,
|
|
4502
4502
|
translateX: c,
|
|
4503
4503
|
translateY: l,
|
|
4504
4504
|
mustDrawFocusOnHeader: gi,
|
|
4505
4505
|
mustDrawHighlightRingsOnHeader: vi,
|
|
4506
|
-
lastBuffer:
|
|
4507
|
-
aBufferScroll: fi ===
|
|
4506
|
+
lastBuffer: ti ? fi === oi ? "a" : "b" : void 0,
|
|
4507
|
+
aBufferScroll: fi === oi ? [
|
|
4508
4508
|
wi,
|
|
4509
4509
|
Ti
|
|
4510
|
-
] :
|
|
4511
|
-
bBufferScroll: fi ===
|
|
4510
|
+
] : ci == null ? void 0 : ci.aBufferScroll,
|
|
4511
|
+
bBufferScroll: fi === si ? [
|
|
4512
4512
|
wi,
|
|
4513
4513
|
Ti
|
|
4514
|
-
] :
|
|
4515
|
-
},
|
|
4514
|
+
] : ci == null ? void 0 : ci.bBufferScroll
|
|
4515
|
+
}, di.restore(), ui.restore();
|
|
4516
4516
|
}
|
|
4517
4517
|
var import_clamp$3 = __toESM(require_clamp(), 1), hoverTime = 80;
|
|
4518
4518
|
function easeOutCubic(e) {
|
|
@@ -4610,12 +4610,12 @@ let __tla = (async () => {
|
|
|
4610
4610
|
var _a;
|
|
4611
4611
|
return e.kind === GridCellKind.Custom ? e.copyData : ((_a = t == null ? void 0 : t(e)) == null ? void 0 : _a.getAccessibilityString(e)) ?? "";
|
|
4612
4612
|
}, data_grid_default = import_react.memo(import_react.forwardRef((e, t) => {
|
|
4613
|
-
let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: zr, onMouseMove:
|
|
4613
|
+
let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: zr, onMouseMove: Br, onItemHovered: Vr, dragAndDropState: B, firstColAccessible: Hr, onKeyDown: Ur, onKeyUp: V, highlightRegions: H, canvasRef: U, onDragStart: W, onDragEnd: Wr, eventTargetRef: G, isResizing: K, resizeColumn: Gr, isDragging: Kr, isDraggable: qr = false, allowResize: Jr, disabledRows: Yr, hasAppendRow: Xr, getGroupDetails: Zr, theme: Qr, prelightCells: $r, headerIcons: ei, verticalBorder: ti, drawCell: J, drawHeader: ni, onCellFocused: Y, onDragOverCell: ri, onDrop: ii, onDragLeave: ai, imageWindowLoader: si, smoothScrollX: fi = false, smoothScrollY: pi = false, experimental: mi, getCellRenderer: X, resizeIndicator: hi = "full" } = e, gi = e.translateX ?? 0, _i = e.translateY ?? 0, vi = Math.max(A, Math.min(a.length - 1, o)), yi = import_react.useRef(null), bi = import_react.useRef((mi == null ? void 0 : mi.eventTarget) ?? window), xi = bi.current, Si = si, Ci = import_react.useRef(), [Ti, Ei] = import_react.useState(false), Di = import_react.useRef([]), Oi = import_react.useRef(), [ki, Ai] = import_react.useState(), [ji, Mi] = import_react.useState(), Ni = import_react.useRef(null), [Pi, Fi] = import_react.useState(), [Ii, Li] = import_react.useState(false), Ri = import_react.useRef(Ii);
|
|
4614
4614
|
Ri.current = Ii;
|
|
4615
|
-
let zi = import_react.useMemo(() => new SpriteManager(
|
|
4615
|
+
let zi = import_react.useMemo(() => new SpriteManager(ei, () => {
|
|
4616
4616
|
na.current = void 0, sa.current();
|
|
4617
4617
|
}), [
|
|
4618
|
-
|
|
4618
|
+
ei
|
|
4619
4619
|
]), Bi = S ? u + c : c, Vi = import_react.useRef(-1), Hi = ((mi == null ? void 0 : mi.enableFirefoxRescaling) ?? false) && browserIsFirefox.value, Ui = ((mi == null ? void 0 : mi.enableSafariRescaling) ?? false) && browserIsSafari.value;
|
|
4620
4620
|
import_react.useLayoutEffect(() => {
|
|
4621
4621
|
window.devicePixelRatio === 1 || !Hi && !Ui || (Vi.current !== -1 && Ei(true), window.clearTimeout(Vi.current), Vi.current = window.setTimeout(() => {
|
|
@@ -4629,7 +4629,7 @@ let __tla = (async () => {
|
|
|
4629
4629
|
Hi,
|
|
4630
4630
|
Ui
|
|
4631
4631
|
]);
|
|
4632
|
-
let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi,
|
|
4632
|
+
let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi, B) : 0, Ki = import_react.useCallback((e2, t2, i2) => {
|
|
4633
4633
|
let a2 = e2.getBoundingClientRect();
|
|
4634
4634
|
if (t2 >= Wi.length || i2 >= m) return;
|
|
4635
4635
|
let o2 = a2.width / n, c2 = computeBounds(t2, i2, n, r, u, Bi, vi, s, gi, _i, m, A, M, Wi, f);
|
|
@@ -4821,33 +4821,33 @@ let __tla = (async () => {
|
|
|
4821
4821
|
mappedColumns: Wi,
|
|
4822
4822
|
enableGroups: S,
|
|
4823
4823
|
freezeColumns: A,
|
|
4824
|
-
dragAndDropState:
|
|
4825
|
-
theme:
|
|
4824
|
+
dragAndDropState: B,
|
|
4825
|
+
theme: Qr,
|
|
4826
4826
|
headerHeight: c,
|
|
4827
4827
|
groupHeaderHeight: u,
|
|
4828
|
-
disabledRows:
|
|
4828
|
+
disabledRows: Yr ?? CompactSelection.empty(),
|
|
4829
4829
|
rowHeight: f,
|
|
4830
|
-
verticalBorder:
|
|
4831
|
-
isResizing:
|
|
4832
|
-
resizeCol:
|
|
4830
|
+
verticalBorder: ti,
|
|
4831
|
+
isResizing: K,
|
|
4832
|
+
resizeCol: Gr,
|
|
4833
4833
|
isFocused: O,
|
|
4834
4834
|
selection: k,
|
|
4835
4835
|
fillHandle: l,
|
|
4836
|
-
drawCellCallback:
|
|
4837
|
-
hasAppendRow:
|
|
4836
|
+
drawCellCallback: J,
|
|
4837
|
+
hasAppendRow: Xr,
|
|
4838
4838
|
overrideCursor: a2,
|
|
4839
4839
|
maxScaleFactor: ea,
|
|
4840
4840
|
freezeTrailingRows: M,
|
|
4841
4841
|
rows: m,
|
|
4842
4842
|
drawFocus: F,
|
|
4843
4843
|
getCellContent: h,
|
|
4844
|
-
getGroupDetails:
|
|
4844
|
+
getGroupDetails: Zr ?? ((e3) => ({
|
|
4845
4845
|
name: e3
|
|
4846
4846
|
})),
|
|
4847
4847
|
getRowThemeOverride: g,
|
|
4848
|
-
drawHeaderCallback:
|
|
4849
|
-
prelightCells:
|
|
4850
|
-
highlightRegions:
|
|
4848
|
+
drawHeaderCallback: ni,
|
|
4849
|
+
prelightCells: $r,
|
|
4850
|
+
highlightRegions: H,
|
|
4851
4851
|
imageLoader: Si,
|
|
4852
4852
|
lastBlitData: Oi,
|
|
4853
4853
|
damage: Ci.current,
|
|
@@ -4877,16 +4877,16 @@ let __tla = (async () => {
|
|
|
4877
4877
|
Wi,
|
|
4878
4878
|
S,
|
|
4879
4879
|
A,
|
|
4880
|
-
|
|
4881
|
-
|
|
4880
|
+
B,
|
|
4881
|
+
Qr,
|
|
4882
4882
|
c,
|
|
4883
4883
|
u,
|
|
4884
|
-
|
|
4884
|
+
Yr,
|
|
4885
4885
|
f,
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4886
|
+
ti,
|
|
4887
|
+
K,
|
|
4888
|
+
Xr,
|
|
4889
|
+
Gr,
|
|
4890
4890
|
O,
|
|
4891
4891
|
k,
|
|
4892
4892
|
l,
|
|
@@ -4895,12 +4895,12 @@ let __tla = (async () => {
|
|
|
4895
4895
|
F,
|
|
4896
4896
|
ea,
|
|
4897
4897
|
h,
|
|
4898
|
-
|
|
4898
|
+
Zr,
|
|
4899
4899
|
g,
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4900
|
+
J,
|
|
4901
|
+
ni,
|
|
4902
|
+
$r,
|
|
4903
|
+
H,
|
|
4904
4904
|
Si,
|
|
4905
4905
|
zi,
|
|
4906
4906
|
Ti,
|
|
@@ -4940,29 +4940,29 @@ let __tla = (async () => {
|
|
|
4940
4940
|
], true);
|
|
4941
4941
|
_a = e2.kind === InnerGridCellKind.NewRow || e2.kind === InnerGridCellKind.Marker && e2.markerKind !== "number", va = e2.kind === GridCellKind.Boolean && booleanCellIsEditable(e2), ya = e2.cursor;
|
|
4942
4942
|
}
|
|
4943
|
-
let ba =
|
|
4943
|
+
let ba = Kr ? "grabbing" : (ji ?? false) || K ? "col-resize" : da || C ? "crosshair" : ya === void 0 ? ha || _a || va || ga ? "pointer" : "default" : ya, xa = import_react.useMemo(() => ({
|
|
4944
4944
|
contain: "strict",
|
|
4945
4945
|
display: "block",
|
|
4946
4946
|
cursor: ba
|
|
4947
4947
|
}), [
|
|
4948
4948
|
ba
|
|
4949
|
-
]), Sa = import_react.useRef("default"), Ca =
|
|
4949
|
+
]), Sa = import_react.useRef("default"), Ca = G == null ? void 0 : G.current;
|
|
4950
4950
|
Ca != null && Sa.current !== xa.cursor && (Ca.style.cursor = Sa.current = xa.cursor);
|
|
4951
4951
|
let wa = import_react.useCallback((e2, t2, n2, r2) => {
|
|
4952
|
-
if (
|
|
4953
|
-
let i2 =
|
|
4952
|
+
if (Zr === void 0) return;
|
|
4953
|
+
let i2 = Zr(e2);
|
|
4954
4954
|
if (i2.actions !== void 0) {
|
|
4955
4955
|
let e3 = getActionBoundsForGroup(t2, i2.actions);
|
|
4956
4956
|
for (let [a2, o2] of e3.entries()) if (pointInRect(o2, n2 + t2.x, r2 + o2.y)) return i2.actions[a2];
|
|
4957
4957
|
}
|
|
4958
4958
|
}, [
|
|
4959
|
-
|
|
4959
|
+
Zr
|
|
4960
4960
|
]), Ta = import_react.useCallback((e2, t2, n2, r2) => {
|
|
4961
4961
|
let i2 = Wi[t2];
|
|
4962
|
-
if (!
|
|
4962
|
+
if (!Kr && !K && !(ji ?? false)) {
|
|
4963
4963
|
let a2 = Ki(e2, t2, -1);
|
|
4964
4964
|
assert(a2 !== void 0);
|
|
4965
|
-
let o2 = computeHeaderLayout(void 0, i2, a2.x, a2.y, a2.width, a2.height,
|
|
4965
|
+
let o2 = computeHeaderLayout(void 0, i2, a2.x, a2.y, a2.width, a2.height, Qr, direction(i2.title) === "rtl");
|
|
4966
4966
|
if (i2.hasMenu === true && o2.menuBounds !== void 0 && pointInRect(o2.menuBounds, n2, r2)) return {
|
|
4967
4967
|
area: "menu",
|
|
4968
4968
|
bounds: o2.menuBounds
|
|
@@ -4976,11 +4976,11 @@ let __tla = (async () => {
|
|
|
4976
4976
|
Wi,
|
|
4977
4977
|
Ki,
|
|
4978
4978
|
ji,
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4979
|
+
Kr,
|
|
4980
|
+
K,
|
|
4981
|
+
Qr
|
|
4982
4982
|
]), Ea = import_react.useRef(0), Da = import_react.useRef(), Oa = import_react.useRef(false), ka = import_react.useCallback((e2) => {
|
|
4983
|
-
let t2 = yi.current, n2 =
|
|
4983
|
+
let t2 = yi.current, n2 = G == null ? void 0 : G.current;
|
|
4984
4984
|
if (t2 === null || e2.target !== t2 && e2.target !== n2) return;
|
|
4985
4985
|
Oa.current = true;
|
|
4986
4986
|
let r2, i2;
|
|
@@ -4989,10 +4989,10 @@ let __tla = (async () => {
|
|
|
4989
4989
|
if (r2 > e3.right || i2 > e3.bottom) return;
|
|
4990
4990
|
}
|
|
4991
4991
|
let a2 = qi(t2, r2, i2, e2);
|
|
4992
|
-
Da.current = a2.location, a2.isTouch && (Ea.current = Date.now()), Ri.current !== a2.isTouch && Li(a2.isTouch), !(a2.kind === "header" && Ta(t2, a2.location[0], r2, i2) !== void 0) && (a2.kind === "group-header" && wa(a2.group, a2.bounds, a2.localEventX, a2.localEventY) !== void 0 || (I == null ? void 0 : I(a2), !a2.isTouch &&
|
|
4992
|
+
Da.current = a2.location, a2.isTouch && (Ea.current = Date.now()), Ri.current !== a2.isTouch && Li(a2.isTouch), !(a2.kind === "header" && Ta(t2, a2.location[0], r2, i2) !== void 0) && (a2.kind === "group-header" && wa(a2.group, a2.bounds, a2.localEventX, a2.localEventY) !== void 0 || (I == null ? void 0 : I(a2), !a2.isTouch && qr !== true && qr !== a2.kind && a2.button < 3 && a2.button !== 1 && e2.preventDefault()));
|
|
4993
4993
|
}, [
|
|
4994
|
-
|
|
4995
|
-
|
|
4994
|
+
G,
|
|
4995
|
+
qr,
|
|
4996
4996
|
qi,
|
|
4997
4997
|
wa,
|
|
4998
4998
|
Ta,
|
|
@@ -5005,7 +5005,7 @@ let __tla = (async () => {
|
|
|
5005
5005
|
Aa.current = Date.now();
|
|
5006
5006
|
let n2 = yi.current;
|
|
5007
5007
|
if (Oa.current = false, L === void 0 || n2 === null) return;
|
|
5008
|
-
let r2 =
|
|
5008
|
+
let r2 = G == null ? void 0 : G.current, i2 = e2.target !== n2 && e2.target !== r2, a2, o2, s2 = true;
|
|
5009
5009
|
if (e2 instanceof MouseEvent) {
|
|
5010
5010
|
if (a2 = e2.clientX, o2 = e2.clientY, s2 = e2.button < 3, e2.pointerType === "touch") return;
|
|
5011
5011
|
} else a2 = e2.changedTouches[0].clientX, o2 = e2.changedTouches[0].clientY;
|
|
@@ -5031,7 +5031,7 @@ let __tla = (async () => {
|
|
|
5031
5031
|
L(c2, i2);
|
|
5032
5032
|
}, [
|
|
5033
5033
|
L,
|
|
5034
|
-
|
|
5034
|
+
G,
|
|
5035
5035
|
qi,
|
|
5036
5036
|
Ta,
|
|
5037
5037
|
wa
|
|
@@ -5040,7 +5040,7 @@ let __tla = (async () => {
|
|
|
5040
5040
|
var _a2, _b;
|
|
5041
5041
|
let t2 = yi.current;
|
|
5042
5042
|
if (t2 === null) return;
|
|
5043
|
-
let n2 =
|
|
5043
|
+
let n2 = G == null ? void 0 : G.current, r2 = e2.target !== t2 && e2.target !== n2, i2, a2, o2 = true;
|
|
5044
5044
|
e2 instanceof MouseEvent ? (i2 = e2.clientX, a2 = e2.clientY, o2 = e2.button < 3) : (i2 = e2.changedTouches[0].clientX, a2 = e2.changedTouches[0].clientY);
|
|
5045
5045
|
let s2 = qi(t2, i2, a2, e2);
|
|
5046
5046
|
Ri.current !== s2.isTouch && Li(s2.isTouch), !r2 && e2.cancelable && o2 && e2.preventDefault();
|
|
@@ -5053,22 +5053,22 @@ let __tla = (async () => {
|
|
|
5053
5053
|
e3 !== void 0 && s2.button === 0 && e3.onClick(s2);
|
|
5054
5054
|
}
|
|
5055
5055
|
}, [
|
|
5056
|
-
|
|
5056
|
+
G,
|
|
5057
5057
|
qi,
|
|
5058
5058
|
Ta,
|
|
5059
5059
|
y,
|
|
5060
5060
|
x,
|
|
5061
5061
|
wa
|
|
5062
5062
|
]), xi, false), useEventListener("contextmenu", import_react.useCallback((e2) => {
|
|
5063
|
-
let t2 = yi.current, n2 =
|
|
5063
|
+
let t2 = yi.current, n2 = G == null ? void 0 : G.current;
|
|
5064
5064
|
t2 === null || e2.target !== t2 && e2.target !== n2 || j === void 0 || j(qi(t2, e2.clientX, e2.clientY, e2), () => {
|
|
5065
5065
|
e2.cancelable && e2.preventDefault();
|
|
5066
5066
|
});
|
|
5067
5067
|
}, [
|
|
5068
|
-
|
|
5068
|
+
G,
|
|
5069
5069
|
qi,
|
|
5070
5070
|
j
|
|
5071
|
-
]), (
|
|
5071
|
+
]), (G == null ? void 0 : G.current) ?? null, false);
|
|
5072
5072
|
let Na = import_react.useCallback((e2) => {
|
|
5073
5073
|
Ci.current = new CellSet(e2.map((e3) => e3.item)), Di.current = e2, sa.current(), Ci.current = void 0;
|
|
5074
5074
|
}, []), Pa = import_react.useMemo(() => new AnimationManager(Na), [
|
|
@@ -5092,12 +5092,12 @@ let __tla = (async () => {
|
|
|
5092
5092
|
var _a2;
|
|
5093
5093
|
let t2 = yi.current;
|
|
5094
5094
|
if (t2 === null) return;
|
|
5095
|
-
let n2 =
|
|
5095
|
+
let n2 = G == null ? void 0 : G.current, r2 = e2.target !== t2 && e2.target !== n2, i2 = qi(t2, e2.clientX, e2.clientY, e2);
|
|
5096
5096
|
if (i2.kind !== "out-of-bounds" && r2 && !Oa.current && !i2.isTouch) return;
|
|
5097
5097
|
let a2 = (e3, t3) => {
|
|
5098
5098
|
Ai((n3) => n3 === e3 || (n3 == null ? void 0 : n3[0][0]) === (e3 == null ? void 0 : e3[0][0]) && (n3 == null ? void 0 : n3[0][1]) === (e3 == null ? void 0 : e3[0][1]) && ((n3 == null ? void 0 : n3[1][0]) === (e3 == null ? void 0 : e3[1][0]) && (n3 == null ? void 0 : n3[1][1]) === (e3 == null ? void 0 : e3[1][1]) || !t3) ? n3 : e3);
|
|
5099
5099
|
};
|
|
5100
|
-
if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0),
|
|
5100
|
+
if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0), Vr == null ? void 0 : Vr(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
|
|
5101
5101
|
i2.location,
|
|
5102
5102
|
[
|
|
5103
5103
|
i2.localEventX,
|
|
@@ -5121,16 +5121,16 @@ let __tla = (async () => {
|
|
|
5121
5121
|
i2.location
|
|
5122
5122
|
]));
|
|
5123
5123
|
}
|
|
5124
|
-
let o2 = i2.location[0] >= (
|
|
5125
|
-
Mi(i2.kind === "header" && i2.isEdge && o2 &&
|
|
5124
|
+
let o2 = i2.location[0] >= (Hr ? 0 : 1);
|
|
5125
|
+
Mi(i2.kind === "header" && i2.isEdge && o2 && Jr === true), fa(i2.kind === "cell" && i2.isFillHandle), zr == null ? void 0 : zr(e2), Br(i2);
|
|
5126
5126
|
}, [
|
|
5127
|
-
|
|
5127
|
+
G,
|
|
5128
5128
|
qi,
|
|
5129
|
-
|
|
5130
|
-
|
|
5129
|
+
Hr,
|
|
5130
|
+
Jr,
|
|
5131
5131
|
zr,
|
|
5132
|
-
B,
|
|
5133
5132
|
Br,
|
|
5133
|
+
Vr,
|
|
5134
5134
|
h,
|
|
5135
5135
|
X,
|
|
5136
5136
|
la
|
|
@@ -5139,7 +5139,7 @@ let __tla = (async () => {
|
|
|
5139
5139
|
let t2 = yi.current;
|
|
5140
5140
|
if (t2 === null) return;
|
|
5141
5141
|
let n2, r2;
|
|
5142
|
-
k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell),
|
|
5142
|
+
k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Ur == null ? void 0 : Ur({
|
|
5143
5143
|
bounds: n2,
|
|
5144
5144
|
stopPropagation: () => e2.stopPropagation(),
|
|
5145
5145
|
preventDefault: () => e2.preventDefault(),
|
|
@@ -5154,14 +5154,14 @@ let __tla = (async () => {
|
|
|
5154
5154
|
location: r2
|
|
5155
5155
|
});
|
|
5156
5156
|
}, [
|
|
5157
|
-
|
|
5157
|
+
Ur,
|
|
5158
5158
|
k,
|
|
5159
5159
|
Ki
|
|
5160
5160
|
]), za = import_react.useCallback((e2) => {
|
|
5161
5161
|
let t2 = yi.current;
|
|
5162
5162
|
if (t2 === null) return;
|
|
5163
5163
|
let n2, r2;
|
|
5164
|
-
k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell),
|
|
5164
|
+
k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), V == null ? void 0 : V({
|
|
5165
5165
|
bounds: n2,
|
|
5166
5166
|
stopPropagation: () => e2.stopPropagation(),
|
|
5167
5167
|
preventDefault: () => e2.preventDefault(),
|
|
@@ -5176,28 +5176,28 @@ let __tla = (async () => {
|
|
|
5176
5176
|
location: r2
|
|
5177
5177
|
});
|
|
5178
5178
|
}, [
|
|
5179
|
-
|
|
5179
|
+
V,
|
|
5180
5180
|
k,
|
|
5181
5181
|
Ki
|
|
5182
5182
|
]), Ba = import_react.useCallback((e2) => {
|
|
5183
|
-
if (yi.current = e2,
|
|
5183
|
+
if (yi.current = e2, U !== void 0 && (U.current = e2), mi == null ? void 0 : mi.eventTarget) bi.current = mi.eventTarget;
|
|
5184
5184
|
else if (e2 === null) bi.current = window;
|
|
5185
5185
|
else {
|
|
5186
5186
|
let t2 = e2.getRootNode();
|
|
5187
5187
|
t2 === document && (bi.current = window), bi.current = t2;
|
|
5188
5188
|
}
|
|
5189
5189
|
}, [
|
|
5190
|
-
|
|
5190
|
+
U,
|
|
5191
5191
|
mi == null ? void 0 : mi.eventTarget
|
|
5192
5192
|
]);
|
|
5193
5193
|
useEventListener("dragstart", import_react.useCallback((e2) => {
|
|
5194
5194
|
let t2 = yi.current;
|
|
5195
|
-
if (t2 === null ||
|
|
5195
|
+
if (t2 === null || qr === false || K) {
|
|
5196
5196
|
e2.preventDefault();
|
|
5197
5197
|
return;
|
|
5198
5198
|
}
|
|
5199
5199
|
let n2, r2, i2 = qi(t2, e2.clientX, e2.clientY);
|
|
5200
|
-
if (
|
|
5200
|
+
if (qr !== true && i2.kind !== qr) {
|
|
5201
5201
|
e2.preventDefault();
|
|
5202
5202
|
return;
|
|
5203
5203
|
}
|
|
@@ -5206,7 +5206,7 @@ let __tla = (async () => {
|
|
|
5206
5206
|
}, o2, s2, c2, l2 = (e3, t3, n3) => {
|
|
5207
5207
|
o2 = e3, s2 = t3, c2 = n3;
|
|
5208
5208
|
}, u2 = false;
|
|
5209
|
-
if (
|
|
5209
|
+
if (W == null ? void 0 : W({
|
|
5210
5210
|
...i2,
|
|
5211
5211
|
setData: a2,
|
|
5212
5212
|
setDragImage: l2,
|
|
@@ -5221,105 +5221,105 @@ let __tla = (async () => {
|
|
|
5221
5221
|
let o3 = Math.ceil(window.devicePixelRatio ?? 1);
|
|
5222
5222
|
i3.width = a3.width * o3, i3.height = a3.height * o3;
|
|
5223
5223
|
let s3 = i3.getContext("2d");
|
|
5224
|
-
s3 !== null && (s3.scale(o3, o3), s3.textBaseline = "middle", r3 === -1 ? (s3.font =
|
|
5224
|
+
s3 !== null && (s3.scale(o3, o3), s3.textBaseline = "middle", r3 === -1 ? (s3.font = Qr.headerFontFull, s3.fillStyle = Qr.bgHeader, s3.fillRect(0, 0, i3.width, i3.height), drawHeader(s3, 0, 0, a3.width, a3.height, Wi[n3], false, Qr, false, void 0, void 0, false, 0, zi, ni, false)) : (s3.font = Qr.baseFontFull, s3.fillStyle = Qr.bgCell, s3.fillRect(0, 0, i3.width, i3.height), drawCell(s3, h([
|
|
5225
5225
|
n3,
|
|
5226
5226
|
r3
|
|
5227
|
-
]), 0, r3, false, false, 0, 0, a3.width, a3.height, false,
|
|
5227
|
+
]), 0, r3, false, false, 0, 0, a3.width, a3.height, false, Qr, Qr.bgCell, Si, zi, 1, void 0, false, 0, void 0, void 0, void 0, $i, X, () => void 0))), i3.style.left = "-100%", i3.style.position = "absolute", i3.style.width = `${a3.width}px`, i3.style.height = `${a3.height}px`, document.body.append(i3), e2.dataTransfer.setDragImage(i3, a3.width / 2, a3.height / 2), window.setTimeout(() => {
|
|
5228
5228
|
i3.remove();
|
|
5229
5229
|
}, 0);
|
|
5230
5230
|
}
|
|
5231
5231
|
}
|
|
5232
5232
|
else e2.preventDefault();
|
|
5233
5233
|
}, [
|
|
5234
|
-
|
|
5235
|
-
|
|
5234
|
+
qr,
|
|
5235
|
+
K,
|
|
5236
5236
|
qi,
|
|
5237
|
-
|
|
5237
|
+
W,
|
|
5238
5238
|
Ki,
|
|
5239
|
-
|
|
5239
|
+
Qr,
|
|
5240
5240
|
Wi,
|
|
5241
5241
|
zi,
|
|
5242
|
-
|
|
5242
|
+
ni,
|
|
5243
5243
|
h,
|
|
5244
5244
|
Si,
|
|
5245
5245
|
$i,
|
|
5246
5246
|
X
|
|
5247
|
-
]), (
|
|
5247
|
+
]), (G == null ? void 0 : G.current) ?? null, false, false);
|
|
5248
5248
|
let Va = import_react.useRef();
|
|
5249
5249
|
useEventListener("dragover", import_react.useCallback((e2) => {
|
|
5250
5250
|
let t2 = yi.current;
|
|
5251
|
-
if (
|
|
5252
|
-
let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (
|
|
5251
|
+
if (ii !== void 0 && e2.preventDefault(), t2 === null || ri === void 0) return;
|
|
5252
|
+
let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (Hr ? 0 : 1), [a2, o2] = Va.current ?? [];
|
|
5253
5253
|
(a2 !== i2 || o2 !== r2) && (Va.current = [
|
|
5254
5254
|
i2,
|
|
5255
5255
|
r2
|
|
5256
|
-
],
|
|
5256
|
+
], ri([
|
|
5257
5257
|
i2,
|
|
5258
5258
|
r2
|
|
5259
5259
|
], e2.dataTransfer));
|
|
5260
5260
|
}, [
|
|
5261
|
-
|
|
5261
|
+
Hr,
|
|
5262
5262
|
qi,
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
]), (
|
|
5266
|
-
Va.current = void 0,
|
|
5263
|
+
ri,
|
|
5264
|
+
ii
|
|
5265
|
+
]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("dragend", import_react.useCallback(() => {
|
|
5266
|
+
Va.current = void 0, Wr == null ? void 0 : Wr();
|
|
5267
5267
|
}, [
|
|
5268
|
-
|
|
5269
|
-
]), (
|
|
5268
|
+
Wr
|
|
5269
|
+
]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("drop", import_react.useCallback((e2) => {
|
|
5270
5270
|
let t2 = yi.current;
|
|
5271
|
-
if (t2 === null ||
|
|
5271
|
+
if (t2 === null || ii === void 0) return;
|
|
5272
5272
|
e2.preventDefault();
|
|
5273
5273
|
let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location;
|
|
5274
|
-
|
|
5275
|
-
n2 - (
|
|
5274
|
+
ii([
|
|
5275
|
+
n2 - (Hr ? 0 : 1),
|
|
5276
5276
|
r2
|
|
5277
5277
|
], e2.dataTransfer);
|
|
5278
5278
|
}, [
|
|
5279
|
-
|
|
5279
|
+
Hr,
|
|
5280
5280
|
qi,
|
|
5281
|
-
|
|
5282
|
-
]), (
|
|
5283
|
-
|
|
5281
|
+
ii
|
|
5282
|
+
]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
|
|
5283
|
+
ai == null ? void 0 : ai();
|
|
5284
5284
|
}, [
|
|
5285
|
-
|
|
5286
|
-
]), (
|
|
5285
|
+
ai
|
|
5286
|
+
]), (G == null ? void 0 : G.current) ?? null, false, false);
|
|
5287
5287
|
let Ua = import_react.useRef(k);
|
|
5288
5288
|
Ua.current = k;
|
|
5289
5289
|
let Ka = import_react.useRef(null), qa = import_react.useCallback((e2) => {
|
|
5290
5290
|
var _a2;
|
|
5291
|
-
yi.current === null || !yi.current.contains(document.activeElement) || (e2 === null && Ua.current.current !== void 0 ? (_a2 =
|
|
5291
|
+
yi.current === null || !yi.current.contains(document.activeElement) || (e2 === null && Ua.current.current !== void 0 ? (_a2 = U == null ? void 0 : U.current) == null ? void 0 : _a2.focus({
|
|
5292
5292
|
preventScroll: true
|
|
5293
5293
|
}) : e2 !== null && e2.focus({
|
|
5294
5294
|
preventScroll: true
|
|
5295
5295
|
}), Ka.current = e2);
|
|
5296
5296
|
}, [
|
|
5297
|
-
|
|
5297
|
+
U
|
|
5298
5298
|
]);
|
|
5299
5299
|
import_react.useImperativeHandle(t, () => ({
|
|
5300
5300
|
focus: () => {
|
|
5301
5301
|
var _a2;
|
|
5302
5302
|
let e2 = Ka.current;
|
|
5303
|
-
e2 === null || !document.contains(e2) ? (_a2 =
|
|
5303
|
+
e2 === null || !document.contains(e2) ? (_a2 = U == null ? void 0 : U.current) == null ? void 0 : _a2.focus({
|
|
5304
5304
|
preventScroll: true
|
|
5305
5305
|
}) : e2.focus({
|
|
5306
5306
|
preventScroll: true
|
|
5307
5307
|
});
|
|
5308
5308
|
},
|
|
5309
5309
|
getBounds: (e2, t2) => {
|
|
5310
|
-
if (!(
|
|
5310
|
+
if (!(U === void 0 || U.current === null)) return Ki(U.current, e2 ?? 0, t2 ?? -1);
|
|
5311
5311
|
},
|
|
5312
5312
|
damage: ua
|
|
5313
5313
|
}), [
|
|
5314
|
-
|
|
5314
|
+
U,
|
|
5315
5315
|
ua,
|
|
5316
5316
|
Ki
|
|
5317
5317
|
]);
|
|
5318
5318
|
let Ja = import_react.useRef(), Ya = useDebouncedMemo(() => {
|
|
5319
5319
|
var _a2, _b, _c;
|
|
5320
5320
|
if (n < 50 || (mi == null ? void 0 : mi.disableAccessibilityTree) === true) return null;
|
|
5321
|
-
let e2 = getEffectiveColumns(Wi, vi, n,
|
|
5322
|
-
!
|
|
5321
|
+
let e2 = getEffectiveColumns(Wi, vi, n, B, gi), t2 = Hr ? 0 : -1;
|
|
5322
|
+
!Hr && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
|
|
5323
5323
|
let [r2, a2] = ((_b = k.current) == null ? void 0 : _b.cell) ?? [], o2 = (_c = k.current) == null ? void 0 : _c.range, c2 = e2.map((e3) => e3.sourceIndex), l2 = (0, import_range$1.default)(s, Math.min(m, s + i));
|
|
5324
5324
|
return r2 !== void 0 && a2 !== void 0 && !(c2.includes(r2) && l2.includes(a2)) && qa(null), import_react.createElement("table", {
|
|
5325
5325
|
key: "access-tree",
|
|
@@ -5338,7 +5338,7 @@ let __tla = (async () => {
|
|
|
5338
5338
|
"aria-colindex": e3.sourceIndex + 1 + t2,
|
|
5339
5339
|
tabIndex: -1,
|
|
5340
5340
|
onFocus: (t3) => {
|
|
5341
|
-
if (t3.target !== Ka.current) return
|
|
5341
|
+
if (t3.target !== Ka.current) return Y == null ? void 0 : Y([
|
|
5342
5342
|
e3.sourceIndex,
|
|
5343
5343
|
-1
|
|
5344
5344
|
]);
|
|
@@ -5365,8 +5365,8 @@ let __tla = (async () => {
|
|
|
5365
5365
|
id: u2,
|
|
5366
5366
|
"data-testid": u2,
|
|
5367
5367
|
onClick: () => {
|
|
5368
|
-
let e4 =
|
|
5369
|
-
if (e4 != null) return
|
|
5368
|
+
let e4 = U == null ? void 0 : U.current;
|
|
5369
|
+
if (e4 != null) return Ur == null ? void 0 : Ur({
|
|
5370
5370
|
bounds: Ki(e4, i2, n2),
|
|
5371
5371
|
cancel: () => void 0,
|
|
5372
5372
|
preventDefault: () => void 0,
|
|
@@ -5383,7 +5383,7 @@ let __tla = (async () => {
|
|
|
5383
5383
|
},
|
|
5384
5384
|
onFocusCapture: (e4) => {
|
|
5385
5385
|
var _a3, _b2;
|
|
5386
|
-
if (!(e4.target === Ka.current || ((_a3 = Ja.current) == null ? void 0 : _a3[0]) === i2 && ((_b2 = Ja.current) == null ? void 0 : _b2[1]) === n2)) return Ja.current = f2,
|
|
5386
|
+
if (!(e4.target === Ka.current || ((_a3 = Ja.current) == null ? void 0 : _a3[0]) === i2 && ((_b2 = Ja.current) == null ? void 0 : _b2[1]) === n2)) return Ja.current = f2, Y == null ? void 0 : Y(f2);
|
|
5387
5387
|
},
|
|
5388
5388
|
ref: c3 ? qa : void 0,
|
|
5389
5389
|
tabIndex: -1
|
|
@@ -5393,7 +5393,7 @@ let __tla = (async () => {
|
|
|
5393
5393
|
n,
|
|
5394
5394
|
Wi,
|
|
5395
5395
|
vi,
|
|
5396
|
-
|
|
5396
|
+
B,
|
|
5397
5397
|
gi,
|
|
5398
5398
|
m,
|
|
5399
5399
|
s,
|
|
@@ -5401,10 +5401,10 @@ let __tla = (async () => {
|
|
|
5401
5401
|
k,
|
|
5402
5402
|
qa,
|
|
5403
5403
|
h,
|
|
5404
|
-
|
|
5405
|
-
|
|
5404
|
+
U,
|
|
5405
|
+
Ur,
|
|
5406
5406
|
Ki,
|
|
5407
|
-
|
|
5407
|
+
Y
|
|
5408
5408
|
], 200), Xa = A === 0 || !N ? 0 : vi > A ? 1 : (0, import_clamp$2.default)(-gi / 100, 0, 1), Za = -s * 32 + _i, Qa = P ? (0, import_clamp$2.default)(-Za / 100, 0, 1) : 0, $a = import_react.useMemo(() => {
|
|
5409
5409
|
if (!Xa && !Qa) return null;
|
|
5410
5410
|
let e2 = {
|
|
@@ -5467,111 +5467,111 @@ let __tla = (async () => {
|
|
|
5467
5467
|
return (0, import_clamp$1.default)(Math.round(t - (e.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
|
|
5468
5468
|
}
|
|
5469
5469
|
var data_grid_dnd_default = (e) => {
|
|
5470
|
-
let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: zr, lockColumns:
|
|
5470
|
+
let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: zr, lockColumns: Br, onColumnProposeMove: Vr, onMouseDown: B, onMouseUp: Hr, onItemHovered: Ur, onDragStart: V, canvasRef: H } = e, U = (M ?? P ?? N) !== void 0, { columns: W, selection: Wr } = e, G = Wr.columns, K = import_react.useCallback((e2) => {
|
|
5471
5471
|
let [t2, n2] = e2.location;
|
|
5472
|
-
a !== void 0 && s !== t2 && t2 >=
|
|
5472
|
+
a !== void 0 && s !== t2 && t2 >= Br ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Ur == null ? void 0 : Ur(e2));
|
|
5473
5473
|
}, [
|
|
5474
5474
|
a,
|
|
5475
5475
|
h,
|
|
5476
5476
|
s,
|
|
5477
|
-
|
|
5478
|
-
|
|
5477
|
+
Ur,
|
|
5478
|
+
Br,
|
|
5479
5479
|
r,
|
|
5480
5480
|
l,
|
|
5481
5481
|
S
|
|
5482
|
-
]),
|
|
5482
|
+
]), q = j !== void 0, Gr = import_react.useCallback((e2) => {
|
|
5483
5483
|
var _a;
|
|
5484
5484
|
if (e2.button === 0) {
|
|
5485
5485
|
let [t2, r2] = e2.location;
|
|
5486
|
-
if (e2.kind === "out-of-bounds" && e2.isEdge &&
|
|
5487
|
-
let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(
|
|
5488
|
-
e3 !== void 0 && (n(e3.x), i(
|
|
5489
|
-
} else if (e2.kind === "header" && t2 >=
|
|
5490
|
-
let r3 =
|
|
5491
|
-
if (e2.isEdge &&
|
|
5486
|
+
if (e2.kind === "out-of-bounds" && e2.isEdge && U) {
|
|
5487
|
+
let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(W.length - 1, -1);
|
|
5488
|
+
e3 !== void 0 && (n(e3.x), i(W.length - 1));
|
|
5489
|
+
} else if (e2.kind === "header" && t2 >= Br) {
|
|
5490
|
+
let r3 = H == null ? void 0 : H.current;
|
|
5491
|
+
if (e2.isEdge && U && r3) {
|
|
5492
5492
|
n(e2.bounds.x), i(t2);
|
|
5493
5493
|
let a2 = r3.getBoundingClientRect().width / r3.offsetWidth, o2 = e2.bounds.width / a2;
|
|
5494
|
-
N == null ? void 0 : N(
|
|
5495
|
-
} else e2.kind === "header" &&
|
|
5496
|
-
} else e2.kind === "cell" &&
|
|
5494
|
+
N == null ? void 0 : N(W[t2], o2, t2, o2 + (W[t2].growOffset ?? 0));
|
|
5495
|
+
} else e2.kind === "header" && q && (m(e2.bounds.x), o(t2));
|
|
5496
|
+
} else e2.kind === "cell" && Br > 0 && t2 === 0 && r2 !== void 0 && zr !== void 0 && (D(e2.bounds.y), g(r2));
|
|
5497
5497
|
}
|
|
5498
|
-
|
|
5498
|
+
B == null ? void 0 : B(e2);
|
|
5499
5499
|
}, [
|
|
5500
|
-
Vr,
|
|
5501
|
-
H,
|
|
5502
5500
|
B,
|
|
5501
|
+
U,
|
|
5502
|
+
Br,
|
|
5503
5503
|
zr,
|
|
5504
5504
|
F,
|
|
5505
|
-
|
|
5506
|
-
|
|
5505
|
+
W,
|
|
5506
|
+
q,
|
|
5507
5507
|
N,
|
|
5508
|
-
|
|
5509
|
-
]),
|
|
5508
|
+
H
|
|
5509
|
+
]), Kr = import_react.useCallback((e2, t2) => {
|
|
5510
5510
|
l || S || (O == null ? void 0 : O(e2, t2));
|
|
5511
5511
|
}, [
|
|
5512
5512
|
l,
|
|
5513
5513
|
S,
|
|
5514
5514
|
O
|
|
5515
|
-
]),
|
|
5515
|
+
]), qr = import_react.useCallback((e2, t2) => {
|
|
5516
5516
|
l || S || (k == null ? void 0 : k(e2, t2));
|
|
5517
5517
|
}, [
|
|
5518
5518
|
l,
|
|
5519
5519
|
S,
|
|
5520
5520
|
k
|
|
5521
|
-
]),
|
|
5522
|
-
|
|
5523
|
-
}, []),
|
|
5521
|
+
]), Jr = import_react.useRef(-1), Yr = import_react.useCallback(() => {
|
|
5522
|
+
Jr.current = -1, g(void 0), x(void 0), D(void 0), C(false), o(void 0), c(void 0), m(void 0), u(false), i(void 0), n(void 0);
|
|
5523
|
+
}, []), Xr = import_react.useCallback((e2, t2) => {
|
|
5524
5524
|
if (e2.button === 0) {
|
|
5525
5525
|
if (r !== void 0) {
|
|
5526
|
-
if ((
|
|
5526
|
+
if ((G == null ? void 0 : G.hasIndex(r)) === true) for (let e4 of G) {
|
|
5527
5527
|
if (e4 === r) continue;
|
|
5528
|
-
let t3 =
|
|
5528
|
+
let t3 = W[e4], n2 = offsetColumnSize(t3, Jr.current, L, I);
|
|
5529
5529
|
M == null ? void 0 : M(t3, n2, e4, n2 + (t3.growOffset ?? 0));
|
|
5530
5530
|
}
|
|
5531
|
-
let e3 = offsetColumnSize(
|
|
5532
|
-
if (P == null ? void 0 : P(
|
|
5531
|
+
let e3 = offsetColumnSize(W[r], Jr.current, L, I);
|
|
5532
|
+
if (P == null ? void 0 : P(W[r], e3, r, e3 + (W[r].growOffset ?? 0)), G.hasIndex(r)) for (let e4 of G) {
|
|
5533
5533
|
if (e4 === r) continue;
|
|
5534
|
-
let t3 =
|
|
5534
|
+
let t3 = W[e4], n2 = offsetColumnSize(t3, Jr.current, L, I);
|
|
5535
5535
|
P == null ? void 0 : P(t3, n2, e4, n2 + (t3.growOffset ?? 0));
|
|
5536
5536
|
}
|
|
5537
5537
|
}
|
|
5538
|
-
|
|
5538
|
+
Yr(), a !== void 0 && s !== void 0 && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (zr == null ? void 0 : zr(h, y));
|
|
5539
5539
|
}
|
|
5540
|
-
|
|
5540
|
+
Hr == null ? void 0 : Hr(e2, t2);
|
|
5541
5541
|
}, [
|
|
5542
|
-
|
|
5542
|
+
Hr,
|
|
5543
5543
|
r,
|
|
5544
5544
|
a,
|
|
5545
5545
|
s,
|
|
5546
5546
|
h,
|
|
5547
5547
|
y,
|
|
5548
|
-
|
|
5548
|
+
G,
|
|
5549
5549
|
P,
|
|
5550
|
-
|
|
5550
|
+
W,
|
|
5551
5551
|
L,
|
|
5552
5552
|
I,
|
|
5553
5553
|
M,
|
|
5554
5554
|
j,
|
|
5555
5555
|
zr,
|
|
5556
|
-
|
|
5557
|
-
]),
|
|
5558
|
-
if (!(a === void 0 || s === void 0) && a !== s && (
|
|
5556
|
+
Yr
|
|
5557
|
+
]), Zr = import_react.useMemo(() => {
|
|
5558
|
+
if (!(a === void 0 || s === void 0) && a !== s && (Vr == null ? void 0 : Vr(a, s)) !== false) return {
|
|
5559
5559
|
src: a,
|
|
5560
5560
|
dest: s
|
|
5561
5561
|
};
|
|
5562
5562
|
}, [
|
|
5563
5563
|
a,
|
|
5564
5564
|
s,
|
|
5565
|
-
|
|
5566
|
-
]),
|
|
5567
|
-
let n2 =
|
|
5565
|
+
Vr
|
|
5566
|
+
]), Qr = import_react.useCallback((e2) => {
|
|
5567
|
+
let n2 = H == null ? void 0 : H.current;
|
|
5568
5568
|
if (a !== void 0 && f !== void 0) Math.abs(e2.clientX - f) > 20 && u(true);
|
|
5569
5569
|
else if (h !== void 0 && E !== void 0) Math.abs(e2.clientY - E) > 20 && C(true);
|
|
5570
5570
|
else if (r !== void 0 && t !== void 0 && n2) {
|
|
5571
|
-
let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 =
|
|
5572
|
-
if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)),
|
|
5571
|
+
let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 = W[r], s2 = offsetColumnSize(o2, a2, L, I);
|
|
5572
|
+
if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)), Jr.current = a2, (G == null ? void 0 : G.first()) === r) for (let e3 of G) {
|
|
5573
5573
|
if (e3 === r) continue;
|
|
5574
|
-
let t2 =
|
|
5574
|
+
let t2 = W[e3], n3 = offsetColumnSize(t2, Jr.current, L, I);
|
|
5575
5575
|
M == null ? void 0 : M(t2, n3, e3, n3 + (t2.growOffset ?? 0));
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
@@ -5582,13 +5582,13 @@ let __tla = (async () => {
|
|
|
5582
5582
|
E,
|
|
5583
5583
|
r,
|
|
5584
5584
|
t,
|
|
5585
|
-
|
|
5585
|
+
W,
|
|
5586
5586
|
L,
|
|
5587
5587
|
I,
|
|
5588
5588
|
M,
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
]),
|
|
5589
|
+
G,
|
|
5590
|
+
H
|
|
5591
|
+
]), $r = import_react.useCallback((e2, t2) => {
|
|
5592
5592
|
if (h === void 0 || y === void 0) return A(e2, t2);
|
|
5593
5593
|
let [n2, r2] = e2;
|
|
5594
5594
|
return r2 === y ? r2 = h : (r2 > y && --r2, r2 >= h && (r2 += 1)), A([
|
|
@@ -5599,11 +5599,11 @@ let __tla = (async () => {
|
|
|
5599
5599
|
h,
|
|
5600
5600
|
y,
|
|
5601
5601
|
A
|
|
5602
|
-
]),
|
|
5603
|
-
|
|
5602
|
+
]), ei = import_react.useCallback((e2) => {
|
|
5603
|
+
V == null ? void 0 : V(e2), e2.defaultPrevented() || Yr();
|
|
5604
5604
|
}, [
|
|
5605
|
-
|
|
5606
|
-
|
|
5605
|
+
Yr,
|
|
5606
|
+
V
|
|
5607
5607
|
]);
|
|
5608
5608
|
return import_react.createElement(data_grid_default, {
|
|
5609
5609
|
accessibilityHeight: e.accessibilityHeight,
|
|
@@ -5661,18 +5661,18 @@ let __tla = (async () => {
|
|
|
5661
5661
|
resizeIndicator: e.resizeIndicator,
|
|
5662
5662
|
verticalBorder: e.verticalBorder,
|
|
5663
5663
|
width: e.width,
|
|
5664
|
-
getCellContent:
|
|
5664
|
+
getCellContent: $r,
|
|
5665
5665
|
isResizing: r !== void 0,
|
|
5666
|
-
onHeaderMenuClick:
|
|
5667
|
-
onHeaderIndicatorClick:
|
|
5666
|
+
onHeaderMenuClick: Kr,
|
|
5667
|
+
onHeaderIndicatorClick: qr,
|
|
5668
5668
|
isDragging: l,
|
|
5669
|
-
onItemHovered:
|
|
5670
|
-
onDragStart:
|
|
5671
|
-
onMouseDown:
|
|
5672
|
-
allowResize:
|
|
5673
|
-
onMouseUp:
|
|
5674
|
-
dragAndDropState:
|
|
5675
|
-
onMouseMoveRaw:
|
|
5669
|
+
onItemHovered: K,
|
|
5670
|
+
onDragStart: ei,
|
|
5671
|
+
onMouseDown: Gr,
|
|
5672
|
+
allowResize: U,
|
|
5673
|
+
onMouseUp: Xr,
|
|
5674
|
+
dragAndDropState: Zr,
|
|
5675
|
+
onMouseMoveRaw: Qr,
|
|
5676
5676
|
ref: F
|
|
5677
5677
|
});
|
|
5678
5678
|
};
|
|
@@ -5810,49 +5810,49 @@ let __tla = (async () => {
|
|
|
5810
5810
|
use_kinetic_scroll_default(h && browserIsSafari.value, I, O);
|
|
5811
5811
|
let L = import_react.useRef(I);
|
|
5812
5812
|
L.current = I;
|
|
5813
|
-
let zr = import_react.useRef(),
|
|
5813
|
+
let zr = import_react.useRef(), Br = import_react.useRef(false);
|
|
5814
5814
|
import_react.useLayoutEffect(() => {
|
|
5815
|
-
|
|
5815
|
+
Br.current ? I() : Br.current = true;
|
|
5816
5816
|
}, [
|
|
5817
5817
|
I,
|
|
5818
5818
|
l,
|
|
5819
5819
|
u
|
|
5820
5820
|
]);
|
|
5821
|
-
let
|
|
5821
|
+
let Vr = import_react.useCallback((e2) => {
|
|
5822
5822
|
O.current = e2, g !== void 0 && (g.current = e2);
|
|
5823
5823
|
}, [
|
|
5824
5824
|
g
|
|
5825
|
-
]),
|
|
5825
|
+
]), B = 0, Hr = 0;
|
|
5826
5826
|
for (x.push(import_react.createElement("div", {
|
|
5827
|
-
key:
|
|
5827
|
+
key: B++,
|
|
5828
5828
|
style: {
|
|
5829
5829
|
width: i,
|
|
5830
5830
|
height: 0
|
|
5831
5831
|
}
|
|
5832
|
-
}));
|
|
5833
|
-
let e2 = Math.min(5e6, r -
|
|
5832
|
+
})); Hr < r; ) {
|
|
5833
|
+
let e2 = Math.min(5e6, r - Hr);
|
|
5834
5834
|
x.push(import_react.createElement("div", {
|
|
5835
|
-
key:
|
|
5835
|
+
key: B++,
|
|
5836
5836
|
style: {
|
|
5837
5837
|
width: 0,
|
|
5838
5838
|
height: e2
|
|
5839
5839
|
}
|
|
5840
|
-
})),
|
|
5841
|
-
}
|
|
5842
|
-
let { ref:
|
|
5843
|
-
return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !==
|
|
5844
|
-
width:
|
|
5845
|
-
height:
|
|
5846
|
-
}), (
|
|
5847
|
-
ref:
|
|
5840
|
+
})), Hr += e2;
|
|
5841
|
+
}
|
|
5842
|
+
let { ref: Ur, width: V, height: H } = useResizeDetector(y);
|
|
5843
|
+
return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !== H || ((_b = zr.current) == null ? void 0 : _b.width) !== V) && (window.setTimeout(() => L.current(), 0), zr.current = {
|
|
5844
|
+
width: V,
|
|
5845
|
+
height: H
|
|
5846
|
+
}), (V ?? 0) === 0 || (H ?? 0) === 0 ? import_react.createElement("div", {
|
|
5847
|
+
ref: Ur
|
|
5848
5848
|
}) : import_react.createElement("div", {
|
|
5849
|
-
ref:
|
|
5849
|
+
ref: Ur
|
|
5850
5850
|
}, import_react.createElement(ScrollRegionStyle, {
|
|
5851
5851
|
isSafari: browserIsSafari.value
|
|
5852
5852
|
}, import_react.createElement("div", {
|
|
5853
5853
|
className: "dvn-underlay"
|
|
5854
5854
|
}, t), import_react.createElement("div", {
|
|
5855
|
-
ref:
|
|
5855
|
+
ref: Vr,
|
|
5856
5856
|
style: zr.current,
|
|
5857
5857
|
draggable: o,
|
|
5858
5858
|
onDragStart: (e2) => {
|
|
@@ -5869,7 +5869,7 @@ let __tla = (async () => {
|
|
|
5869
5869
|
}), import_react.createElement("div", {
|
|
5870
5870
|
ref: j,
|
|
5871
5871
|
style: {
|
|
5872
|
-
height:
|
|
5872
|
+
height: H,
|
|
5873
5873
|
maxHeight: n - Math.ceil(k % 1),
|
|
5874
5874
|
position: "sticky",
|
|
5875
5875
|
top: 0,
|
|
@@ -5883,15 +5883,15 @@ let __tla = (async () => {
|
|
|
5883
5883
|
}, f))))));
|
|
5884
5884
|
};
|
|
5885
5885
|
var scrolling_data_grid_default = (e) => {
|
|
5886
|
-
let { columns: t, rows: n, rowHeight: r, headerHeight: i, groupHeaderHeight: a, enableGroups: o, freezeColumns: s, experimental: c, nonGrowWidth: l, clientSize: u, className: f, onVisibleRegionChanged: m, scrollRef: h, preventDiagonalScrolling: g, rightElement: y, rightElementProps: x, overscrollX: S, overscrollY: C, initialSize: E, smoothScrollX: D = false, smoothScrollY: O = false, isDraggable: k } = e, { paddingRight: A, paddingBottom: j } = c ?? {}, [M, N] = u, P = import_react.useRef(), F = import_react.useRef(), I = import_react.useRef(), L = import_react.useRef(), zr = l + Math.max(0, S ?? 0),
|
|
5887
|
-
if (typeof r == "number")
|
|
5888
|
-
else for (let e2 = 0; e2 < n; e2++)
|
|
5889
|
-
C !== void 0 && (
|
|
5890
|
-
let
|
|
5886
|
+
let { columns: t, rows: n, rowHeight: r, headerHeight: i, groupHeaderHeight: a, enableGroups: o, freezeColumns: s, experimental: c, nonGrowWidth: l, clientSize: u, className: f, onVisibleRegionChanged: m, scrollRef: h, preventDiagonalScrolling: g, rightElement: y, rightElementProps: x, overscrollX: S, overscrollY: C, initialSize: E, smoothScrollX: D = false, smoothScrollY: O = false, isDraggable: k } = e, { paddingRight: A, paddingBottom: j } = c ?? {}, [M, N] = u, P = import_react.useRef(), F = import_react.useRef(), I = import_react.useRef(), L = import_react.useRef(), zr = l + Math.max(0, S ?? 0), Br = o ? i + a : i;
|
|
5887
|
+
if (typeof r == "number") Br += n * r;
|
|
5888
|
+
else for (let e2 = 0; e2 < n; e2++) Br += r(e2);
|
|
5889
|
+
C !== void 0 && (Br += C);
|
|
5890
|
+
let Vr = import_react.useRef(), B = import_react.useCallback(() => {
|
|
5891
5891
|
var _a, _b;
|
|
5892
|
-
if (
|
|
5892
|
+
if (Vr.current === void 0) return;
|
|
5893
5893
|
let e2 = {
|
|
5894
|
-
...
|
|
5894
|
+
...Vr.current
|
|
5895
5895
|
}, i2 = 0, a2 = e2.x < 0 ? -e2.x : 0, o2 = 0, c2 = 0;
|
|
5896
5896
|
e2.x = e2.x < 0 ? 0 : e2.x;
|
|
5897
5897
|
let l2 = 0;
|
|
@@ -5938,15 +5938,15 @@ let __tla = (async () => {
|
|
|
5938
5938
|
s,
|
|
5939
5939
|
D,
|
|
5940
5940
|
O
|
|
5941
|
-
]),
|
|
5942
|
-
|
|
5941
|
+
]), Hr = import_react.useCallback((e2) => {
|
|
5942
|
+
Vr.current = e2, B();
|
|
5943
5943
|
}, [
|
|
5944
|
-
|
|
5944
|
+
B
|
|
5945
5945
|
]);
|
|
5946
5946
|
return import_react.useEffect(() => {
|
|
5947
|
-
|
|
5947
|
+
B();
|
|
5948
5948
|
}, [
|
|
5949
|
-
|
|
5949
|
+
B
|
|
5950
5950
|
]), import_react.createElement(InfiniteScroller, {
|
|
5951
5951
|
scrollRef: h,
|
|
5952
5952
|
className: f,
|
|
@@ -5954,13 +5954,13 @@ let __tla = (async () => {
|
|
|
5954
5954
|
preventDiagonalScrolling: g,
|
|
5955
5955
|
draggable: k === true || typeof k == "string",
|
|
5956
5956
|
scrollWidth: zr + (A ?? 0),
|
|
5957
|
-
scrollHeight:
|
|
5957
|
+
scrollHeight: Br + (j ?? 0),
|
|
5958
5958
|
clientHeight: N,
|
|
5959
5959
|
rightElement: y,
|
|
5960
5960
|
paddingBottom: j,
|
|
5961
5961
|
paddingRight: A,
|
|
5962
5962
|
rightElementProps: x,
|
|
5963
|
-
update:
|
|
5963
|
+
update: Hr,
|
|
5964
5964
|
initialSize: E
|
|
5965
5965
|
}, import_react.createElement(data_grid_dnd_default, {
|
|
5966
5966
|
eventTargetRef: h,
|
|
@@ -6191,7 +6191,7 @@ let __tla = (async () => {
|
|
|
6191
6191
|
C,
|
|
6192
6192
|
u,
|
|
6193
6193
|
M
|
|
6194
|
-
]),
|
|
6194
|
+
]), Br = import_react.useCallback((e2) => {
|
|
6195
6195
|
var _a;
|
|
6196
6196
|
if ((_a = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a.call(e2), C === void 0) return;
|
|
6197
6197
|
let t2 = (C.selectedIndex - 1) % C.results;
|
|
@@ -6203,30 +6203,30 @@ let __tla = (async () => {
|
|
|
6203
6203
|
u,
|
|
6204
6204
|
M,
|
|
6205
6205
|
C
|
|
6206
|
-
]),
|
|
6207
|
-
(e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ?
|
|
6206
|
+
]), Vr = import_react.useCallback((e2) => {
|
|
6207
|
+
(e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ? Br() : zr());
|
|
6208
6208
|
}, [
|
|
6209
6209
|
I,
|
|
6210
6210
|
zr,
|
|
6211
|
-
|
|
6211
|
+
Br
|
|
6212
6212
|
]);
|
|
6213
6213
|
import_react.useEffect(() => () => {
|
|
6214
6214
|
N();
|
|
6215
6215
|
}, [
|
|
6216
6216
|
N
|
|
6217
6217
|
]);
|
|
6218
|
-
let [
|
|
6218
|
+
let [B, Hr] = import_react.useState(false);
|
|
6219
6219
|
import_react.useEffect(() => {
|
|
6220
|
-
if (f)
|
|
6220
|
+
if (f) Hr(true);
|
|
6221
6221
|
else {
|
|
6222
|
-
let e2 = setTimeout(() =>
|
|
6222
|
+
let e2 = setTimeout(() => Hr(false), 150);
|
|
6223
6223
|
return () => clearTimeout(e2);
|
|
6224
6224
|
}
|
|
6225
6225
|
}, [
|
|
6226
6226
|
f
|
|
6227
6227
|
]);
|
|
6228
|
-
let
|
|
6229
|
-
if (!f && !
|
|
6228
|
+
let Ur = import_react.useMemo(() => {
|
|
6229
|
+
if (!f && !B) return null;
|
|
6230
6230
|
let e2;
|
|
6231
6231
|
C !== void 0 && (e2 = C.results >= 1e3 ? "over 1000" : `${C.results} result${C.results === 1 ? "" : "s"}`, C.selectedIndex >= 0 && (e2 = `${C.selectedIndex + 1} of ${e2}`));
|
|
6232
6232
|
let t2 = (e3) => {
|
|
@@ -6250,12 +6250,12 @@ let __tla = (async () => {
|
|
|
6250
6250
|
onChange: L,
|
|
6251
6251
|
value: x,
|
|
6252
6252
|
tabIndex: f ? void 0 : -1,
|
|
6253
|
-
onKeyDownCapture:
|
|
6253
|
+
onKeyDownCapture: Vr
|
|
6254
6254
|
}), import_react.createElement("button", {
|
|
6255
6255
|
"aria-label": "Previous Result",
|
|
6256
6256
|
"aria-hidden": !f,
|
|
6257
6257
|
tabIndex: f ? void 0 : -1,
|
|
6258
|
-
onClick:
|
|
6258
|
+
onClick: Br,
|
|
6259
6259
|
disabled: ((C == null ? void 0 : C.results) ?? 0) === 0
|
|
6260
6260
|
}, upArrow), import_react.createElement("button", {
|
|
6261
6261
|
"aria-label": "Next Result",
|
|
@@ -6283,15 +6283,15 @@ let __tla = (async () => {
|
|
|
6283
6283
|
})));
|
|
6284
6284
|
}, [
|
|
6285
6285
|
f,
|
|
6286
|
-
|
|
6286
|
+
B,
|
|
6287
6287
|
C,
|
|
6288
6288
|
r,
|
|
6289
6289
|
h,
|
|
6290
6290
|
a,
|
|
6291
6291
|
L,
|
|
6292
6292
|
x,
|
|
6293
|
+
Vr,
|
|
6293
6294
|
Br,
|
|
6294
|
-
B,
|
|
6295
6295
|
zr,
|
|
6296
6296
|
m,
|
|
6297
6297
|
I
|
|
@@ -6376,7 +6376,7 @@ let __tla = (async () => {
|
|
|
6376
6376
|
smoothScrollX: e.smoothScrollX,
|
|
6377
6377
|
smoothScrollY: e.smoothScrollY,
|
|
6378
6378
|
resizeIndicator: e.resizeIndicator
|
|
6379
|
-
}),
|
|
6379
|
+
}), Ur);
|
|
6380
6380
|
}, _exp$2 = () => (e) => Math.max(16, e.targetHeight - 10), RenameInput = styled_default("input")({
|
|
6381
6381
|
name: "RenameInput",
|
|
6382
6382
|
class: "gdg-r17m35ur",
|
|
@@ -7381,7 +7381,7 @@ let __tla = (async () => {
|
|
|
7381
7381
|
scrollRef: f
|
|
7382
7382
|
};
|
|
7383
7383
|
}
|
|
7384
|
-
var import_clamp = __toESM(require_clamp(), 1), import_uniq = __toESM(require_uniq(), 1), import_flatten = __toESM(require_flatten(), 1), import_range = __toESM(require_range(), 1), import_debounce = __toESM(require_debounce(), 1), DataGridOverlayEditor = import_react.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7384
|
+
var import_clamp = __toESM(require_clamp(), 1), import_uniq = __toESM(require_uniq(), 1), import_flatten = __toESM(require_flatten(), 1), import_range = __toESM(require_range(), 1), import_debounce = __toESM(require_debounce(), 1), DataGridOverlayEditor = import_react.lazy(async () => await import("./data-grid-overlay-editor-mfEJ5475.js")), idCounter = 0;
|
|
7385
7385
|
function getSpanStops(e) {
|
|
7386
7386
|
return (0, import_uniq.default)((0, import_flatten.default)((0, import_flatten.default)(e).filter((e2) => e2.span !== void 0).map((e2) => {
|
|
7387
7387
|
var _a, _b;
|
|
@@ -7418,7 +7418,7 @@ let __tla = (async () => {
|
|
|
7418
7418
|
};
|
|
7419
7419
|
const DataEditor = import_react.forwardRef((e, t) => {
|
|
7420
7420
|
var _a2, _b, _c2;
|
|
7421
|
-
let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: zr = "default", onGroupHeaderClicked:
|
|
7421
|
+
let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: zr = "default", onGroupHeaderClicked: Br, onCellContextMenu: Vr, className: B, onHeaderContextMenu: Hr, getCellsForSelection: Ur, onGroupHeaderContextMenu: V, onGroupHeaderRenamed: H, onCellEdited: U, onCellsEdited: W, onSearchResultsChanged: Wr, searchResults: G, onSearchValueChange: K, searchValue: Gr, onKeyDown: Kr, onKeyUp: Yr, keybindings: Xr, editOnType: Zr = true, onRowAppended: Qr, onColumnMoved: $r, validateCell: ei, highlightRegions: ti, rangeSelect: J = "rect", columnSelect: ni = "multi", rowSelect: Y = "multi", rangeSelectionBlending: ri = "exclusive", columnSelectionBlending: ui = "exclusive", rowSelectionBlending: pi = "exclusive", onDelete: mi, onDragStart: X, onMouseMove: hi, onPaste: _i, copyHeaders: vi = false, freezeColumns: yi = 0, cellActivationBehavior: xi = "second-click", rowSelectionMode: Si = "auto", onHeaderMenuClick: Ci, onHeaderIndicatorClick: Ti, getGroupDetails: Ei, rowGrouping: Oi, onSearchClose: ki, onItemHovered: Ai, onSelectionCleared: ji, showSearch: Mi, onVisibleRegionChanged: Ni, gridSelection: Pi, onGridSelectionChange: Fi, minColumnWidth: Ii = 50, maxColumnWidth: Li = 500, maxColumnAutoWidth: Ri, provideEditor: zi, trailingRowOptions: Bi, freezeTrailingRows: Vi = 0, allowedFillDirections: Hi = "orthogonal", scrollOffsetX: Ui, scrollOffsetY: Wi, verticalBorder: Gi, onDragOverCell: Ki, onDrop: qi, onColumnResize: Ji, onColumnResizeEnd: Yi, onColumnResizeStart: Xi, customRenderers: Qi, fillHandle: $i, experimental: ea, fixedShadowX: ta, fixedShadowY: na, headerIcons: ra, imageWindowLoader: ia, initialSize: aa, isDraggable: oa, onDragLeave: sa, onRowMoved: ca, overscrollX: la, overscrollY: ua, preventDiagonalScrolling: da, rightElement: fa, rightElementProps: pa, trapFocus: ma = false, smoothScrollX: ha, smoothScrollY: ga, scaleToRem: _a = false, rowHeight: va = 34, headerHeight: ya = 36, groupHeaderHeight: ba = ya, theme: xa, isOutsideClick: Sa, renderers: Ca, resizeIndicator: wa, scrollToActiveCell: Ta = true, drawFocusRing: Ea = true } = e, Da = Ea === "no-editor" ? i === void 0 : Ea, Oa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, ka = (Oa == null ? void 0 : Oa.kind) ?? e.rowMarkers ?? "none", Aa = (Oa == null ? void 0 : Oa.width) ?? e.rowMarkerWidth, ja = (Oa == null ? void 0 : Oa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ma = (Oa == null ? void 0 : Oa.theme) ?? e.rowMarkerTheme, Fa = Oa == null ? void 0 : Oa.headerTheme, Ra = Oa == null ? void 0 : Oa.headerAlwaysVisible, za = Y !== "multi", Ba = (Oa == null ? void 0 : Oa.checkboxStyle) ?? "square", Va = Math.max(Ii, 20), Ha = Math.max(Li, Va), Wa = Math.max(Ri ?? Ha, Va), Ga = import_react.useMemo(() => typeof window > "u" ? {
|
|
7422
7422
|
fontSize: "16px"
|
|
7423
7423
|
} : window.getComputedStyle(document.documentElement), []), { rows: Z, rowNumberMapper: Ka, rowHeight: qa, getRowThemeOverride: Ja } = useRowGroupingInner(Oi, C, va, h), { rowHeight: Ya, headerHeight: Xa, groupHeaderHeight: Za, theme: Qa, overscrollX: $a, overscrollY: eo } = useRemAdjuster({
|
|
7424
7424
|
groupHeaderHeight: ba,
|
|
@@ -7431,7 +7431,7 @@ let __tla = (async () => {
|
|
|
7431
7431
|
rowHeight: qa,
|
|
7432
7432
|
scaleToRem: _a,
|
|
7433
7433
|
theme: xa
|
|
7434
|
-
}), to = useKeybindingsWithDefaults(
|
|
7434
|
+
}), to = useKeybindingsWithDefaults(Xr), no = Aa ?? (C > 1e4 ? 48 : C > 1e3 ? 44 : C > 100 ? 36 : 32), ro = ka !== "none", Q = ro ? 1 : 0, io = Qr !== void 0, ao = (Bi == null ? void 0 : Bi.sticky) === true, [oo, so] = import_react.useState(false), co = Mi ?? oo, lo = import_react.useCallback(() => {
|
|
7435
7435
|
ki === void 0 ? so(false) : ki();
|
|
7436
7436
|
}, [
|
|
7437
7437
|
ki
|
|
@@ -7440,16 +7440,16 @@ let __tla = (async () => {
|
|
|
7440
7440
|
Q
|
|
7441
7441
|
]) ?? n, uo = import_react.useRef();
|
|
7442
7442
|
uo.current === void 0 && (uo.current = new AbortController()), import_react.useEffect(() => () => uo == null ? void 0 : uo.current.abort(), []);
|
|
7443
|
-
let [fo, po] = useCellsForSelection(
|
|
7444
|
-
if (
|
|
7443
|
+
let [fo, po] = useCellsForSelection(Ur, E, Q, uo.current, Z), mo = import_react.useCallback((e2, t2, n2) => {
|
|
7444
|
+
if (ei === void 0) return true;
|
|
7445
7445
|
let r2 = [
|
|
7446
7446
|
e2[0] - Q,
|
|
7447
7447
|
e2[1]
|
|
7448
7448
|
];
|
|
7449
|
-
return
|
|
7449
|
+
return ei == null ? void 0 : ei(r2, t2, n2);
|
|
7450
7450
|
}, [
|
|
7451
7451
|
Q,
|
|
7452
|
-
|
|
7452
|
+
ei
|
|
7453
7453
|
]), ho = import_react.useRef(Pi), go = import_react.useCallback((e2, t2) => {
|
|
7454
7454
|
t2 && (e2 = expandSelection(e2, fo, Q, zr, uo.current)), Fi === void 0 ? r(e2) : (ho.current = shiftSelection(e2, -Q), Fi(ho.current));
|
|
7455
7455
|
}, [
|
|
@@ -7496,7 +7496,7 @@ let __tla = (async () => {
|
|
|
7496
7496
|
}, [
|
|
7497
7497
|
mi,
|
|
7498
7498
|
Q
|
|
7499
|
-
]), [Co, wo, To] = useSelectionBehavior($, go,
|
|
7499
|
+
]), [Co, wo, To] = useSelectionBehavior($, go, ri, ui, pi, J, L), Eo = import_react.useMemo(() => mergeAndRealizeTheme(getDataEditorTheme(), Qa), [
|
|
7500
7500
|
Qa
|
|
7501
7501
|
]), [Do, Oo] = import_react.useState([
|
|
7502
7502
|
0,
|
|
@@ -7561,17 +7561,17 @@ let __tla = (async () => {
|
|
|
7561
7561
|
e3.location[0] - Q,
|
|
7562
7562
|
e3.location[1]
|
|
7563
7563
|
]
|
|
7564
|
-
})), n2 =
|
|
7565
|
-
if (n2 !== true) for (let e3 of t2)
|
|
7564
|
+
})), n2 = W == null ? void 0 : W(t2);
|
|
7565
|
+
if (n2 !== true) for (let e3 of t2) U == null ? void 0 : U(e3.location, e3.value);
|
|
7566
7566
|
return n2;
|
|
7567
7567
|
}, [
|
|
7568
|
-
H,
|
|
7569
7568
|
U,
|
|
7569
|
+
W,
|
|
7570
7570
|
Q
|
|
7571
7571
|
]), [Yo, Xo] = import_react.useState(), Zo = $.current !== void 0 && $.current.range.width * $.current.range.height > 1 ? $.current.range : void 0, Qo = Da ? (_a2 = $.current) == null ? void 0 : _a2.cell : void 0, $o = Qo == null ? void 0 : Qo[0], es = Qo == null ? void 0 : Qo[1], ts = import_react.useMemo(() => {
|
|
7572
|
-
if ((
|
|
7572
|
+
if ((ti === void 0 || ti.length === 0) && (Zo ?? $o ?? es ?? Yo) === void 0) return;
|
|
7573
7573
|
let e2 = [];
|
|
7574
|
-
if (
|
|
7574
|
+
if (ti !== void 0) for (let t2 of ti) {
|
|
7575
7575
|
let n2 = Lo.length - t2.range.x - Q;
|
|
7576
7576
|
n2 > 0 && e2.push({
|
|
7577
7577
|
color: t2.color,
|
|
@@ -7606,7 +7606,7 @@ let __tla = (async () => {
|
|
|
7606
7606
|
Zo,
|
|
7607
7607
|
$o,
|
|
7608
7608
|
es,
|
|
7609
|
-
|
|
7609
|
+
ti,
|
|
7610
7610
|
Lo.length,
|
|
7611
7611
|
Eo.accentColor,
|
|
7612
7612
|
Q
|
|
@@ -7683,7 +7683,7 @@ let __tla = (async () => {
|
|
|
7683
7683
|
let t2 = (Ei == null ? void 0 : Ei(e2)) ?? {
|
|
7684
7684
|
name: e2
|
|
7685
7685
|
};
|
|
7686
|
-
return
|
|
7686
|
+
return H !== void 0 && e2 !== "" && (t2 = {
|
|
7687
7687
|
icon: t2.icon,
|
|
7688
7688
|
name: t2.name,
|
|
7689
7689
|
overrideTheme: t2.overrideTheme,
|
|
@@ -7701,7 +7701,7 @@ let __tla = (async () => {
|
|
|
7701
7701
|
}), t2;
|
|
7702
7702
|
}, [
|
|
7703
7703
|
Ei,
|
|
7704
|
-
|
|
7704
|
+
H
|
|
7705
7705
|
]), as = import_react.useCallback((e2) => {
|
|
7706
7706
|
var _a3;
|
|
7707
7707
|
let [t2, n2] = e2.cell, r2 = Lo[t2], i2 = (r2 == null ? void 0 : r2.group) === void 0 ? void 0 : (_a3 = is(r2.group)) == null ? void 0 : _a3.overrideTheme, o2 = r2 == null ? void 0 : r2.themeOverride, s2 = Ja == null ? void 0 : Ja(n2);
|
|
@@ -7867,7 +7867,7 @@ let __tla = (async () => {
|
|
|
7867
7867
|
let fs = import_react.useCallback(async (e2, t2 = true) => {
|
|
7868
7868
|
var _a3, _b2;
|
|
7869
7869
|
if (((_b2 = (_a3 = Lo[e2]) == null ? void 0 : _a3.trailingRowOptions) == null ? void 0 : _b2.disabled) === true) return;
|
|
7870
|
-
let n2 =
|
|
7870
|
+
let n2 = Qr == null ? void 0 : Qr(), r2, i2 = true;
|
|
7871
7871
|
n2 !== void 0 && (r2 = await n2, r2 === "top" && (i2 = false), typeof r2 == "number" && (i2 = false));
|
|
7872
7872
|
let a2 = 0, o2 = () => {
|
|
7873
7873
|
if (ds.current <= Z) {
|
|
@@ -7898,7 +7898,7 @@ let __tla = (async () => {
|
|
|
7898
7898
|
o2();
|
|
7899
7899
|
}, [
|
|
7900
7900
|
Lo,
|
|
7901
|
-
|
|
7901
|
+
Qr,
|
|
7902
7902
|
Q,
|
|
7903
7903
|
Z,
|
|
7904
7904
|
Co
|
|
@@ -7925,13 +7925,13 @@ let __tla = (async () => {
|
|
|
7925
7925
|
Eo
|
|
7926
7926
|
]), { mapper: _s } = useRowGrouping(Oi, C), vs = Oi == null ? void 0 : Oi.navigationBehavior, ys = import_react.useCallback((e2) => {
|
|
7927
7927
|
var _a3, _b2, _c3;
|
|
7928
|
-
let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, n2 = t2 &&
|
|
7928
|
+
let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, n2 = t2 && Y === "multi", r2 = t2 && ni === "multi", [i2, o2] = e2.location, s2 = $.columns, c2 = $.rows, [l2, u2] = ((_a3 = $.current) == null ? void 0 : _a3.cell) ?? [];
|
|
7929
7929
|
if (e2.kind === "cell") {
|
|
7930
7930
|
if (hs.current = void 0, xs.current = [
|
|
7931
7931
|
i2,
|
|
7932
7932
|
o2
|
|
7933
7933
|
], i2 === 0 && ro) {
|
|
7934
|
-
if (io === true && o2 === Z || ka === "number" ||
|
|
7934
|
+
if (io === true && o2 === Z || ka === "number" || Y === "none") return;
|
|
7935
7935
|
let r3 = rs(e2.location);
|
|
7936
7936
|
if (r3.kind !== InnerGridCellKind.Marker) return;
|
|
7937
7937
|
if (ca !== void 0) {
|
|
@@ -7950,13 +7950,13 @@ let __tla = (async () => {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
a(void 0), Ko();
|
|
7952
7952
|
let i3 = c2.hasIndex(o2), s3 = ms.current;
|
|
7953
|
-
if (
|
|
7953
|
+
if (Y === "multi" && (e2.shiftKey || e2.isLongTouch === true) && s3 !== void 0 && c2.hasIndex(s3)) {
|
|
7954
7954
|
let e3 = [
|
|
7955
7955
|
Math.min(s3, o2),
|
|
7956
7956
|
Math.max(s3, o2) + 1
|
|
7957
7957
|
];
|
|
7958
7958
|
n2 || Si === "multi" ? wo(void 0, e3, true) : wo(CompactSelection.fromSingleSelection(e3), void 0, n2);
|
|
7959
|
-
} else
|
|
7959
|
+
} else Y === "multi" && (n2 || e2.isTouch || Si === "multi") ? i3 ? wo(c2.remove(o2), void 0, true) : (wo(void 0, o2, true), ms.current = o2) : i3 && c2.length === 1 ? wo(CompactSelection.empty(), void 0, t2) : (wo(CompactSelection.fromSingleSelection(o2), void 0, t2), ms.current = o2);
|
|
7960
7960
|
} else if (i2 >= Q && io && o2 === Z) fs(ps(i2) ?? i2);
|
|
7961
7961
|
else if (l2 !== i2 || u2 !== o2) {
|
|
7962
7962
|
let n3 = rs(e2.location), r3 = Ao(n3);
|
|
@@ -8002,19 +8002,19 @@ let __tla = (async () => {
|
|
|
8002
8002
|
} else if (e2.kind === "header") if (xs.current = [
|
|
8003
8003
|
i2,
|
|
8004
8004
|
o2
|
|
8005
|
-
], a(void 0), ro && i2 === 0) ms.current = void 0, hs.current = void 0,
|
|
8005
|
+
], a(void 0), ro && i2 === 0) ms.current = void 0, hs.current = void 0, Y === "multi" && (c2.length === Z ? wo(CompactSelection.empty(), void 0, t2) : wo(CompactSelection.fromSingleSelection([
|
|
8006
8006
|
0,
|
|
8007
8007
|
Z
|
|
8008
8008
|
]), void 0, t2), Ko());
|
|
8009
8009
|
else {
|
|
8010
8010
|
let n3 = hs.current;
|
|
8011
|
-
if (
|
|
8011
|
+
if (ni === "multi" && (e2.shiftKey || e2.isLongTouch === true) && n3 !== void 0 && s2.hasIndex(n3)) {
|
|
8012
8012
|
let e3 = [
|
|
8013
8013
|
Math.min(n3, i2),
|
|
8014
8014
|
Math.max(n3, i2) + 1
|
|
8015
8015
|
];
|
|
8016
8016
|
r2 ? To(void 0, e3, t2) : To(CompactSelection.fromSingleSelection(e3), void 0, t2);
|
|
8017
|
-
} else r2 ? (s2.hasIndex(i2) ? To(s2.remove(i2), void 0, t2) : To(void 0, i2, t2), hs.current = i2) :
|
|
8017
|
+
} else r2 ? (s2.hasIndex(i2) ? To(s2.remove(i2), void 0, t2) : To(void 0, i2, t2), hs.current = i2) : ni !== "none" && (To(CompactSelection.fromSingleSelection(i2), void 0, t2), hs.current = i2);
|
|
8018
8018
|
ms.current = void 0, Ko();
|
|
8019
8019
|
}
|
|
8020
8020
|
else e2.kind === "group-header" ? xs.current = [
|
|
@@ -8022,8 +8022,8 @@ let __tla = (async () => {
|
|
|
8022
8022
|
o2
|
|
8023
8023
|
] : e2.kind === "out-of-bounds" && !e2.isMaybeScrollbar && (go(emptyGridSelection, false), a(void 0), Ko(), ji == null ? void 0 : ji(), ms.current = void 0, hs.current = void 0);
|
|
8024
8024
|
}, [
|
|
8025
|
-
|
|
8026
|
-
|
|
8025
|
+
Y,
|
|
8026
|
+
ni,
|
|
8027
8027
|
$,
|
|
8028
8028
|
ro,
|
|
8029
8029
|
Q,
|
|
@@ -8066,7 +8066,7 @@ let __tla = (async () => {
|
|
|
8066
8066
|
$,
|
|
8067
8067
|
ys
|
|
8068
8068
|
]), [Ts, Es] = import_react.useState(), Ds = import_react.useCallback((e2) => {
|
|
8069
|
-
if (e2.kind !== "group-header" ||
|
|
8069
|
+
if (e2.kind !== "group-header" || ni !== "multi") return;
|
|
8070
8070
|
let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, [n2] = e2.location, r2 = $.columns;
|
|
8071
8071
|
if (n2 < Q) return;
|
|
8072
8072
|
let i2 = Lo[n2], a2 = n2, o2 = n2;
|
|
@@ -8088,7 +8088,7 @@ let __tla = (async () => {
|
|
|
8088
8088
|
o2 + 1
|
|
8089
8089
|
]), void 0, t2);
|
|
8090
8090
|
}, [
|
|
8091
|
-
|
|
8091
|
+
ni,
|
|
8092
8092
|
Ko,
|
|
8093
8093
|
$.columns,
|
|
8094
8094
|
Lo,
|
|
@@ -8271,7 +8271,7 @@ let __tla = (async () => {
|
|
|
8271
8271
|
if (t3.x !== n3.x || t3.y !== n3.y) return;
|
|
8272
8272
|
if (e2.isLongTouch === true) {
|
|
8273
8273
|
if (e2.kind === "cell" && itemsAreEqual((_b2 = $.current) == null ? void 0 : _b2.cell, e2.location)) {
|
|
8274
|
-
|
|
8274
|
+
Vr == null ? void 0 : Vr([
|
|
8275
8275
|
f2,
|
|
8276
8276
|
e2.location[1]
|
|
8277
8277
|
], {
|
|
@@ -8280,21 +8280,21 @@ let __tla = (async () => {
|
|
|
8280
8280
|
});
|
|
8281
8281
|
return;
|
|
8282
8282
|
} else if (e2.kind === "header" && $.columns.hasIndex(r2)) {
|
|
8283
|
-
|
|
8283
|
+
Hr == null ? void 0 : Hr(f2, {
|
|
8284
8284
|
...e2,
|
|
8285
8285
|
preventDefault: s2
|
|
8286
8286
|
});
|
|
8287
8287
|
return;
|
|
8288
8288
|
} else if (e2.kind === "group-header") {
|
|
8289
8289
|
if (f2 < 0) return;
|
|
8290
|
-
|
|
8290
|
+
V == null ? void 0 : V(f2, {
|
|
8291
8291
|
...e2,
|
|
8292
8292
|
preventDefault: s2
|
|
8293
8293
|
});
|
|
8294
8294
|
return;
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
|
-
e2.kind === "cell" ? u2(e2) || ys(e2) : e2.kind === "group-header" ?
|
|
8297
|
+
e2.kind === "cell" ? u2(e2) || ys(e2) : e2.kind === "group-header" ? Br == null ? void 0 : Br(f2, {
|
|
8298
8298
|
...e2,
|
|
8299
8299
|
preventDefault: s2
|
|
8300
8300
|
}) : (e2.kind === "header" && (F == null ? void 0 : F(f2, {
|
|
@@ -8312,7 +8312,7 @@ let __tla = (async () => {
|
|
|
8312
8312
|
}
|
|
8313
8313
|
if (e2.kind === "group-header") {
|
|
8314
8314
|
if (f2 < 0) return;
|
|
8315
|
-
e2.button === 0 && r2 === a2 && i2 === o2 && (
|
|
8315
|
+
e2.button === 0 && r2 === a2 && i2 === o2 && (Br == null ? void 0 : Br(f2, {
|
|
8316
8316
|
...e2,
|
|
8317
8317
|
preventDefault: s2
|
|
8318
8318
|
}), Os.current || Ds(e2));
|
|
@@ -8333,11 +8333,11 @@ let __tla = (async () => {
|
|
|
8333
8333
|
Jo,
|
|
8334
8334
|
O,
|
|
8335
8335
|
os,
|
|
8336
|
-
|
|
8336
|
+
Vr,
|
|
8337
|
+
Hr,
|
|
8337
8338
|
V,
|
|
8338
|
-
Ur,
|
|
8339
8339
|
ys,
|
|
8340
|
-
|
|
8340
|
+
Br,
|
|
8341
8341
|
F,
|
|
8342
8342
|
ks,
|
|
8343
8343
|
Ds
|
|
@@ -8421,11 +8421,11 @@ let __tla = (async () => {
|
|
|
8421
8421
|
Vi,
|
|
8422
8422
|
Bo,
|
|
8423
8423
|
Ni
|
|
8424
|
-
]), Vs = whenDefined(
|
|
8425
|
-
|
|
8424
|
+
]), Vs = whenDefined($r, import_react.useCallback((e2, t2) => {
|
|
8425
|
+
$r == null ? void 0 : $r(e2 - Q, t2 - Q), ni !== "none" && To(CompactSelection.fromSingleSelection(t2), void 0, true);
|
|
8426
8426
|
}, [
|
|
8427
|
-
|
|
8428
|
-
|
|
8427
|
+
ni,
|
|
8428
|
+
$r,
|
|
8429
8429
|
Q,
|
|
8430
8430
|
To
|
|
8431
8431
|
])), Hs = import_react.useRef(false), Us = import_react.useCallback((e2) => {
|
|
@@ -8463,14 +8463,14 @@ let __tla = (async () => {
|
|
|
8463
8463
|
]), qs = import_react.useRef(), Js = import_react.useCallback((e2) => {
|
|
8464
8464
|
var _a3, _b2, _c3;
|
|
8465
8465
|
if (!mouseEventArgsAreEqual(e2, qs.current) && (qs.current = e2, !(((_a3 = Cs == null ? void 0 : Cs.current) == null ? void 0 : _a3.button) !== void 0 && Cs.current.button >= 1))) {
|
|
8466
|
-
if (e2.buttons !== 0 && c !== void 0 && ((_b2 = Cs.current) == null ? void 0 : _b2.location[0]) === 0 && e2.location[0] === 0 && Q === 1 &&
|
|
8466
|
+
if (e2.buttons !== 0 && c !== void 0 && ((_b2 = Cs.current) == null ? void 0 : _b2.location[0]) === 0 && e2.location[0] === 0 && Q === 1 && Y === "multi" && c.previousSelection && !c.previousSelection.rows.hasIndex(Cs.current.location[1]) && $.rows.hasIndex(Cs.current.location[1])) {
|
|
8467
8467
|
let t2 = Math.min(Cs.current.location[1], e2.location[1]), n2 = Math.max(Cs.current.location[1], e2.location[1]) + 1;
|
|
8468
8468
|
wo(CompactSelection.fromSingleSelection([
|
|
8469
8469
|
t2,
|
|
8470
8470
|
n2
|
|
8471
8471
|
]), void 0, false);
|
|
8472
8472
|
}
|
|
8473
|
-
if (e2.buttons !== 0 && c !== void 0 && $.current !== void 0 && !Hs.current && !bs.current && (
|
|
8473
|
+
if (e2.buttons !== 0 && c !== void 0 && $.current !== void 0 && !Hs.current && !bs.current && (J === "rect" || J === "multi-rect")) {
|
|
8474
8474
|
let [t2, n2] = $.current.cell, [r2, i2] = e2.location;
|
|
8475
8475
|
if (i2 < 0 && (i2 = Ro.current.y), c.fillHandle === true && ((_c3 = c.previousSelection) == null ? void 0 : _c3.current) !== void 0) {
|
|
8476
8476
|
let e3 = c.previousSelection.current.range;
|
|
@@ -8505,9 +8505,9 @@ let __tla = (async () => {
|
|
|
8505
8505
|
}, [
|
|
8506
8506
|
c,
|
|
8507
8507
|
Q,
|
|
8508
|
-
|
|
8508
|
+
Y,
|
|
8509
8509
|
$,
|
|
8510
|
-
|
|
8510
|
+
J,
|
|
8511
8511
|
Ai,
|
|
8512
8512
|
wo,
|
|
8513
8513
|
io,
|
|
@@ -8771,7 +8771,7 @@ let __tla = (async () => {
|
|
|
8771
8771
|
if (n2.didMatch) return t2(), true;
|
|
8772
8772
|
if ($.current === void 0) return false;
|
|
8773
8773
|
let [l2, u2] = $.current.cell, [, f2] = $.current.cell, m2 = false, h2 = false;
|
|
8774
|
-
if (isHotkey(c2.scrollToSelectedCell, e2, n2) ? uc.current(l2 - Q, u2) :
|
|
8774
|
+
if (isHotkey(c2.scrollToSelectedCell, e2, n2) ? uc.current(l2 - Q, u2) : ni !== "none" && isHotkey(c2.selectColumn, e2, n2) ? i2.hasIndex(l2) ? To(i2.remove(l2), void 0, true) : ni === "single" ? To(CompactSelection.fromSingleSelection(l2), void 0, true) : To(void 0, l2, true) : Y !== "none" && isHotkey(c2.selectRow, e2, n2) ? s2.hasIndex(u2) ? wo(s2.remove(u2), void 0, true) : Y === "single" ? wo(CompactSelection.fromSingleSelection(u2), void 0, true) : wo(void 0, u2, true) : !tc && r2 !== void 0 && isHotkey(c2.activateCell, e2, n2) ? u2 === Z && io ? window.setTimeout(() => {
|
|
8775
8775
|
fs(ps(l2) ?? l2);
|
|
8776
8776
|
}, 0) : (O == null ? void 0 : O([
|
|
8777
8777
|
l2 - Q,
|
|
@@ -8782,7 +8782,7 @@ let __tla = (async () => {
|
|
|
8782
8782
|
])) : isHotkey(c2.selectToLastCell, e2, n2) ? (a(void 0), Ys([
|
|
8783
8783
|
2,
|
|
8784
8784
|
2
|
|
8785
|
-
])) : tc ? (isHotkey(c2.closeOverlay, e2, n2) && a(void 0), isHotkey(c2.acceptOverlayDown, e2, n2) && (a(void 0), u2++), isHotkey(c2.acceptOverlayUp, e2, n2) && (a(void 0), u2--), isHotkey(c2.acceptOverlayLeft, e2, n2) && (a(void 0), l2--), isHotkey(c2.acceptOverlayRight, e2, n2) && (a(void 0), l2++)) : (isHotkey(c2.goDownCell, e2, n2) ? u2 += 1 : isHotkey(c2.goUpCell, e2, n2) ? --u2 : isHotkey(c2.goRightCell, e2, n2) ? l2 += 1 : isHotkey(c2.goLeftCell, e2, n2) ? --l2 : isHotkey(c2.goDownCellRetainSelection, e2, n2) ? (u2 += 1, m2 = true) : isHotkey(c2.goUpCellRetainSelection, e2, n2) ? (--u2, m2 = true) : isHotkey(c2.goRightCellRetainSelection, e2, n2) ? (l2 += 1, m2 = true) : isHotkey(c2.goLeftCellRetainSelection, e2, n2) ? (--l2, m2 = true) : isHotkey(c2.goToLastRow, e2, n2) ? u2 = Z - 1 : isHotkey(c2.goToFirstRow, e2, n2) ? u2 = -(2 ** 53 - 1) : isHotkey(c2.goToLastColumn, e2, n2) ? l2 = 2 ** 53 - 1 : isHotkey(c2.goToFirstColumn, e2, n2) ? l2 = -(2 ** 53 - 1) : (
|
|
8785
|
+
])) : tc ? (isHotkey(c2.closeOverlay, e2, n2) && a(void 0), isHotkey(c2.acceptOverlayDown, e2, n2) && (a(void 0), u2++), isHotkey(c2.acceptOverlayUp, e2, n2) && (a(void 0), u2--), isHotkey(c2.acceptOverlayLeft, e2, n2) && (a(void 0), l2--), isHotkey(c2.acceptOverlayRight, e2, n2) && (a(void 0), l2++)) : (isHotkey(c2.goDownCell, e2, n2) ? u2 += 1 : isHotkey(c2.goUpCell, e2, n2) ? --u2 : isHotkey(c2.goRightCell, e2, n2) ? l2 += 1 : isHotkey(c2.goLeftCell, e2, n2) ? --l2 : isHotkey(c2.goDownCellRetainSelection, e2, n2) ? (u2 += 1, m2 = true) : isHotkey(c2.goUpCellRetainSelection, e2, n2) ? (--u2, m2 = true) : isHotkey(c2.goRightCellRetainSelection, e2, n2) ? (l2 += 1, m2 = true) : isHotkey(c2.goLeftCellRetainSelection, e2, n2) ? (--l2, m2 = true) : isHotkey(c2.goToLastRow, e2, n2) ? u2 = Z - 1 : isHotkey(c2.goToFirstRow, e2, n2) ? u2 = -(2 ** 53 - 1) : isHotkey(c2.goToLastColumn, e2, n2) ? l2 = 2 ** 53 - 1 : isHotkey(c2.goToFirstColumn, e2, n2) ? l2 = -(2 ** 53 - 1) : (J === "rect" || J === "multi-rect") && (isHotkey(c2.selectGrowDown, e2, n2) ? Ys([
|
|
8786
8786
|
0,
|
|
8787
8787
|
1
|
|
8788
8788
|
]) : isHotkey(c2.selectGrowUp, e2, n2) ? Ys([
|
|
@@ -8823,9 +8823,9 @@ let __tla = (async () => {
|
|
|
8823
8823
|
tc,
|
|
8824
8824
|
$,
|
|
8825
8825
|
to,
|
|
8826
|
-
|
|
8826
|
+
ni,
|
|
8827
|
+
Y,
|
|
8827
8828
|
J,
|
|
8828
|
-
q,
|
|
8829
8829
|
Q,
|
|
8830
8830
|
_s,
|
|
8831
8831
|
Z,
|
|
@@ -8848,14 +8848,14 @@ let __tla = (async () => {
|
|
|
8848
8848
|
Ys
|
|
8849
8849
|
]), rc = import_react.useCallback((e2) => {
|
|
8850
8850
|
let t2 = false;
|
|
8851
|
-
if (
|
|
8851
|
+
if (Kr !== void 0 && Kr({
|
|
8852
8852
|
...e2,
|
|
8853
8853
|
cancel: () => {
|
|
8854
8854
|
t2 = true;
|
|
8855
8855
|
}
|
|
8856
8856
|
}), t2 || nc(e2) || $.current === void 0) return;
|
|
8857
8857
|
let [n2, r2] = $.current.cell, i2 = Ro.current;
|
|
8858
|
-
if (
|
|
8858
|
+
if (Zr && !e2.metaKey && !e2.ctrlKey && $.current !== void 0 && e2.key.length === 1 && /[ -~]/g.test(e2.key) && e2.bounds !== void 0 && isReadWriteCell(E([
|
|
8859
8859
|
n2 - Q,
|
|
8860
8860
|
Math.max(0, Math.min(r2, Z - 1))
|
|
8861
8861
|
]))) {
|
|
@@ -8863,8 +8863,8 @@ let __tla = (async () => {
|
|
|
8863
8863
|
os(e2.bounds, true, e2.key), e2.stopPropagation(), e2.preventDefault();
|
|
8864
8864
|
}
|
|
8865
8865
|
}, [
|
|
8866
|
-
|
|
8867
|
-
|
|
8866
|
+
Zr,
|
|
8867
|
+
Kr,
|
|
8868
8868
|
nc,
|
|
8869
8869
|
$,
|
|
8870
8870
|
E,
|
|
@@ -8874,19 +8874,19 @@ let __tla = (async () => {
|
|
|
8874
8874
|
os
|
|
8875
8875
|
]), ic = import_react.useCallback((e2, t2) => {
|
|
8876
8876
|
let n2 = e2.location[0] - Q;
|
|
8877
|
-
if (e2.kind === "header" && (
|
|
8877
|
+
if (e2.kind === "header" && (Hr == null ? void 0 : Hr(n2, {
|
|
8878
8878
|
...e2,
|
|
8879
8879
|
preventDefault: t2
|
|
8880
8880
|
})), e2.kind === "group-header") {
|
|
8881
8881
|
if (n2 < 0) return;
|
|
8882
|
-
|
|
8882
|
+
V == null ? void 0 : V(n2, {
|
|
8883
8883
|
...e2,
|
|
8884
8884
|
preventDefault: t2
|
|
8885
8885
|
});
|
|
8886
8886
|
}
|
|
8887
8887
|
if (e2.kind === "cell") {
|
|
8888
8888
|
let [r2, i2] = e2.location;
|
|
8889
|
-
|
|
8889
|
+
Vr == null ? void 0 : Vr([
|
|
8890
8890
|
n2,
|
|
8891
8891
|
i2
|
|
8892
8892
|
], {
|
|
@@ -8896,9 +8896,9 @@ let __tla = (async () => {
|
|
|
8896
8896
|
}
|
|
8897
8897
|
}, [
|
|
8898
8898
|
$,
|
|
8899
|
-
|
|
8900
|
-
Ur,
|
|
8899
|
+
Vr,
|
|
8901
8900
|
V,
|
|
8901
|
+
Hr,
|
|
8902
8902
|
Q,
|
|
8903
8903
|
Zs
|
|
8904
8904
|
]), ac = import_react.useCallback(async (e2) => {
|
|
@@ -9097,11 +9097,11 @@ let __tla = (async () => {
|
|
|
9097
9097
|
So
|
|
9098
9098
|
]), f, false, false);
|
|
9099
9099
|
let sc = import_react.useCallback((e2, t2) => {
|
|
9100
|
-
if (
|
|
9100
|
+
if (Wr !== void 0) {
|
|
9101
9101
|
Q !== 0 && (e2 = e2.map((e3) => [
|
|
9102
9102
|
e3[0] - Q,
|
|
9103
9103
|
e3[1]
|
|
9104
|
-
])),
|
|
9104
|
+
])), Wr(e2, t2);
|
|
9105
9105
|
return;
|
|
9106
9106
|
}
|
|
9107
9107
|
if (e2.length === 0 || t2 === -1) return;
|
|
@@ -9111,7 +9111,7 @@ let __tla = (async () => {
|
|
|
9111
9111
|
r2
|
|
9112
9112
|
], Zs(n2, r2, false, false));
|
|
9113
9113
|
}, [
|
|
9114
|
-
|
|
9114
|
+
Wr,
|
|
9115
9115
|
Q,
|
|
9116
9116
|
Zs
|
|
9117
9117
|
]), [cc, lc] = ((_c2 = Pi == null ? void 0 : Pi.current) == null ? void 0 : _c2.cell) ?? [], uc = import_react.useRef(cs);
|
|
@@ -9145,11 +9145,11 @@ let __tla = (async () => {
|
|
|
9145
9145
|
canvasBounds: n2,
|
|
9146
9146
|
onClose: () => Es(void 0),
|
|
9147
9147
|
onFinish: (e3) => {
|
|
9148
|
-
Es(void 0),
|
|
9148
|
+
Es(void 0), H == null ? void 0 : H(t2, e3);
|
|
9149
9149
|
}
|
|
9150
9150
|
});
|
|
9151
9151
|
}, [
|
|
9152
|
-
|
|
9152
|
+
H,
|
|
9153
9153
|
Ts
|
|
9154
9154
|
]), hc = Math.min(Lo.length, yi + (ro ? 1 : 0));
|
|
9155
9155
|
import_react.useImperativeHandle(t, () => ({
|
|
@@ -9257,7 +9257,7 @@ let __tla = (async () => {
|
|
|
9257
9257
|
let [gc, _c] = zs ?? [], vc = import_react.useCallback((e2) => {
|
|
9258
9258
|
let [t2, n2] = e2;
|
|
9259
9259
|
if (n2 === -1) {
|
|
9260
|
-
|
|
9260
|
+
ni !== "none" && (To(CompactSelection.fromSingleSelection(t2), void 0, false), Ko());
|
|
9261
9261
|
return;
|
|
9262
9262
|
}
|
|
9263
9263
|
gc === t2 && _c === n2 || (Co({
|
|
@@ -9270,7 +9270,7 @@ let __tla = (async () => {
|
|
|
9270
9270
|
}
|
|
9271
9271
|
}, true, false, "keyboard-nav"), cs(t2, n2));
|
|
9272
9272
|
}, [
|
|
9273
|
-
|
|
9273
|
+
ni,
|
|
9274
9274
|
Ko,
|
|
9275
9275
|
cs,
|
|
9276
9276
|
gc,
|
|
@@ -9328,7 +9328,7 @@ let __tla = (async () => {
|
|
|
9328
9328
|
value: Eo
|
|
9329
9329
|
}, import_react.createElement(DataEditorContainer, {
|
|
9330
9330
|
style: Ec,
|
|
9331
|
-
className:
|
|
9331
|
+
className: B,
|
|
9332
9332
|
inWidth: y ?? wc,
|
|
9333
9333
|
inHeight: x ?? Tc
|
|
9334
9334
|
}, import_react.createElement(data_grid_search_default, {
|
|
@@ -9351,7 +9351,7 @@ let __tla = (async () => {
|
|
|
9351
9351
|
rightElementProps: pa,
|
|
9352
9352
|
smoothScrollX: ha,
|
|
9353
9353
|
smoothScrollY: ga,
|
|
9354
|
-
className:
|
|
9354
|
+
className: B,
|
|
9355
9355
|
enableGroups: No,
|
|
9356
9356
|
onCanvasFocused: Sc,
|
|
9357
9357
|
onCanvasBlur: Cc,
|
|
@@ -9397,7 +9397,7 @@ let __tla = (async () => {
|
|
|
9397
9397
|
isFilling: (c == null ? void 0 : c.fillHandle) === true,
|
|
9398
9398
|
onMouseMove: Is,
|
|
9399
9399
|
onKeyDown: rc,
|
|
9400
|
-
onKeyUp:
|
|
9400
|
+
onKeyUp: Yr,
|
|
9401
9401
|
onMouseDown: ws,
|
|
9402
9402
|
onMouseUp: Fs,
|
|
9403
9403
|
onDragOverCell: Ki,
|
|
@@ -9406,9 +9406,9 @@ let __tla = (async () => {
|
|
|
9406
9406
|
onVisibleRegionChanged: Bs,
|
|
9407
9407
|
clientSize: Do,
|
|
9408
9408
|
rowHeight: Ya,
|
|
9409
|
-
searchResults:
|
|
9410
|
-
searchValue:
|
|
9411
|
-
onSearchValueChange:
|
|
9409
|
+
searchResults: G,
|
|
9410
|
+
searchValue: Gr,
|
|
9411
|
+
onSearchValueChange: K,
|
|
9412
9412
|
rows: qo,
|
|
9413
9413
|
scrollRef: Ho,
|
|
9414
9414
|
selection: $,
|
|
@@ -9875,7 +9875,7 @@ let __tla = (async () => {
|
|
|
9875
9875
|
height: l - 1
|
|
9876
9876
|
};
|
|
9877
9877
|
}
|
|
9878
|
-
var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-
|
|
9878
|
+
var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-D-a0qCT8.js"));
|
|
9879
9879
|
const numberCellRenderer = {
|
|
9880
9880
|
getAccessibilityString: (e) => {
|
|
9881
9881
|
var _a;
|
|
@@ -10447,7 +10447,7 @@ let __tla = (async () => {
|
|
|
10447
10447
|
]
|
|
10448
10448
|
}), t[16] = y, t[17] = S, t[18] = C) : C = t[18], C;
|
|
10449
10449
|
}, AddColumnSub = (e) => {
|
|
10450
|
-
let t = (0, import_compiler_runtime$1.c)(77), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, import_react.useState)(""), [c, l] = (0, import_react.useState)("string"), u, h, g, S, C, D, O, A, M, F, I,
|
|
10450
|
+
let t = (0, import_compiler_runtime$1.c)(77), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, import_react.useState)(""), [c, l] = (0, import_react.useState)("string"), u, h, g, S, C, D, O, A, M, F, I, L, zr, Vr, B;
|
|
10451
10451
|
if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
|
|
10452
10452
|
let e2 = [
|
|
10453
10453
|
"string",
|
|
@@ -10458,108 +10458,108 @@ let __tla = (async () => {
|
|
|
10458
10458
|
t[20] !== o || t[21] !== c || t[22] !== r ? (i = () => {
|
|
10459
10459
|
o.trim() && (r(o.trim(), c), s(""), l("string"));
|
|
10460
10460
|
}, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23], D = i;
|
|
10461
|
-
let
|
|
10462
|
-
t[24] !== D || t[25] !== a ? (
|
|
10461
|
+
let Ur2;
|
|
10462
|
+
t[24] !== D || t[25] !== a ? (Ur2 = (e3) => {
|
|
10463
10463
|
e3.key === "Enter" ? D() : e3.key === "Escape" && a();
|
|
10464
|
-
}, t[24] = D, t[25] = a, t[26] =
|
|
10465
|
-
let
|
|
10464
|
+
}, t[24] = D, t[25] = a, t[26] = Ur2) : Ur2 = t[26];
|
|
10465
|
+
let V2 = Ur2;
|
|
10466
10466
|
C = DropdownMenuSub;
|
|
10467
|
-
let
|
|
10468
|
-
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10467
|
+
let H2;
|
|
10468
|
+
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H2 = (0, import_jsx_runtime.jsx)(Plus, {
|
|
10469
10469
|
className: "mr-2 h-3.5 w-3.5"
|
|
10470
|
-
}), t[27] =
|
|
10470
|
+
}), t[27] = H2) : H2 = t[27], t[28] === n ? B = t[29] : (B = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
|
|
10471
10471
|
children: [
|
|
10472
|
-
|
|
10472
|
+
H2,
|
|
10473
10473
|
"Add column to the ",
|
|
10474
10474
|
n
|
|
10475
10475
|
]
|
|
10476
|
-
}), t[28] = n, t[29] =
|
|
10477
|
-
let
|
|
10478
|
-
t[30] ===
|
|
10479
|
-
htmlFor:
|
|
10476
|
+
}), t[28] = n, t[29] = B), S = DropdownMenuPortal, g = DropdownMenuSubContent, Vr = "w-64 p-4", L = "space-y-3";
|
|
10477
|
+
let U2 = `add-column-input-${n}`, W2;
|
|
10478
|
+
t[30] === U2 ? W2 = t[31] : (W2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
10479
|
+
htmlFor: U2,
|
|
10480
10480
|
children: "Column name"
|
|
10481
|
-
}), t[30] =
|
|
10482
|
-
let
|
|
10483
|
-
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10484
|
-
let
|
|
10485
|
-
t[33] !== o || t[34] !==
|
|
10486
|
-
id:
|
|
10481
|
+
}), t[30] = U2, t[31] = W2);
|
|
10482
|
+
let Wr2 = `add-column-input-${n}`, G2;
|
|
10483
|
+
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G2 = (e3) => s(e3.target.value), t[32] = G2) : G2 = t[32];
|
|
10484
|
+
let K2;
|
|
10485
|
+
t[33] !== o || t[34] !== V2 || t[35] !== Wr2 ? (K2 = (0, import_jsx_runtime.jsx)(Input, {
|
|
10486
|
+
id: Wr2,
|
|
10487
10487
|
value: o,
|
|
10488
|
-
onChange:
|
|
10488
|
+
onChange: G2,
|
|
10489
10489
|
placeholder: "Enter column name",
|
|
10490
10490
|
className: "mt-1",
|
|
10491
|
-
onKeyDown:
|
|
10492
|
-
}), t[33] = o, t[34] =
|
|
10491
|
+
onKeyDown: V2
|
|
10492
|
+
}), t[33] = o, t[34] = V2, t[35] = Wr2, t[36] = K2) : K2 = t[36], t[37] !== W2 || t[38] !== K2 ? (zr = (0, import_jsx_runtime.jsxs)("div", {
|
|
10493
10493
|
children: [
|
|
10494
|
-
|
|
10495
|
-
|
|
10494
|
+
W2,
|
|
10495
|
+
K2
|
|
10496
10496
|
]
|
|
10497
|
-
}), t[37] =
|
|
10498
|
-
let
|
|
10499
|
-
t[40] ===
|
|
10500
|
-
htmlFor:
|
|
10497
|
+
}), t[37] = W2, t[38] = K2, t[39] = zr) : zr = t[39];
|
|
10498
|
+
let q2 = `add-column-type-${n}`;
|
|
10499
|
+
t[40] === q2 ? I = t[41] : (I = (0, import_jsx_runtime.jsx)(Label, {
|
|
10500
|
+
htmlFor: q2,
|
|
10501
10501
|
children: "Data type"
|
|
10502
|
-
}), t[40] =
|
|
10503
|
-
let
|
|
10504
|
-
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10505
|
-
id:
|
|
10502
|
+
}), t[40] = q2, t[41] = I), h = Select, A = c, t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (e3) => l(e3), t[42] = M) : M = t[42];
|
|
10503
|
+
let Gr = `add-column-type-${n}`, Kr;
|
|
10504
|
+
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Kr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = Kr) : Kr = t[43], t[44] === Gr ? F = t[45] : (F = (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
10505
|
+
id: Gr,
|
|
10506
10506
|
className: "mt-1",
|
|
10507
|
-
children:
|
|
10508
|
-
}), t[44] =
|
|
10509
|
-
} else u = t[5], h = t[6], g = t[7], S = t[8], C = t[9], D = t[10], O = t[11], A = t[12], M = t[13], F = t[14], I = t[15],
|
|
10510
|
-
let Hr;
|
|
10511
|
-
t[46] !== u || t[47] !== O ? (Hr = (0, import_jsx_runtime.jsx)(u, {
|
|
10512
|
-
children: O
|
|
10513
|
-
}), t[46] = u, t[47] = O, t[48] = Hr) : Hr = t[48];
|
|
10507
|
+
children: Kr
|
|
10508
|
+
}), t[44] = Gr, t[45] = F), u = SelectContent, O = e2.map(_temp$1), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = h, t[7] = g, t[8] = S, t[9] = C, t[10] = D, t[11] = O, t[12] = A, t[13] = M, t[14] = F, t[15] = I, t[16] = L, t[17] = zr, t[18] = Vr, t[19] = B;
|
|
10509
|
+
} else u = t[5], h = t[6], g = t[7], S = t[8], C = t[9], D = t[10], O = t[11], A = t[12], M = t[13], F = t[14], I = t[15], L = t[16], zr = t[17], Vr = t[18], B = t[19];
|
|
10514
10510
|
let Ur;
|
|
10515
|
-
t[
|
|
10511
|
+
t[46] !== u || t[47] !== O ? (Ur = (0, import_jsx_runtime.jsx)(u, {
|
|
10512
|
+
children: O
|
|
10513
|
+
}), t[46] = u, t[47] = O, t[48] = Ur) : Ur = t[48];
|
|
10514
|
+
let V;
|
|
10515
|
+
t[49] !== h || t[50] !== Ur || t[51] !== A || t[52] !== M || t[53] !== F ? (V = (0, import_jsx_runtime.jsxs)(h, {
|
|
10516
10516
|
value: A,
|
|
10517
10517
|
onValueChange: M,
|
|
10518
10518
|
children: [
|
|
10519
10519
|
F,
|
|
10520
|
-
|
|
10520
|
+
Ur
|
|
10521
10521
|
]
|
|
10522
|
-
}), t[49] = h, t[50] =
|
|
10523
|
-
let
|
|
10524
|
-
t[55] !==
|
|
10522
|
+
}), t[49] = h, t[50] = Ur, t[51] = A, t[52] = M, t[53] = F, t[54] = V) : V = t[54];
|
|
10523
|
+
let H;
|
|
10524
|
+
t[55] !== V || t[56] !== I ? (H = (0, import_jsx_runtime.jsxs)("div", {
|
|
10525
10525
|
children: [
|
|
10526
10526
|
I,
|
|
10527
|
-
|
|
10527
|
+
V
|
|
10528
10528
|
]
|
|
10529
|
-
}), t[55] =
|
|
10530
|
-
let
|
|
10531
|
-
t[58] !== D || t[59] !==
|
|
10529
|
+
}), t[55] = V, t[56] = I, t[57] = H) : H = t[57];
|
|
10530
|
+
let U = !o.trim(), W;
|
|
10531
|
+
t[58] !== D || t[59] !== U ? (W = (0, import_jsx_runtime.jsx)(Button, {
|
|
10532
10532
|
onClick: D,
|
|
10533
|
-
disabled:
|
|
10533
|
+
disabled: U,
|
|
10534
10534
|
size: "sm",
|
|
10535
10535
|
className: "w-full",
|
|
10536
10536
|
children: "Add"
|
|
10537
|
-
}), t[58] = D, t[59] =
|
|
10538
|
-
let
|
|
10539
|
-
t[61] !==
|
|
10540
|
-
className:
|
|
10537
|
+
}), t[58] = D, t[59] = U, t[60] = W) : W = t[60];
|
|
10538
|
+
let Wr;
|
|
10539
|
+
t[61] !== H || t[62] !== W || t[63] !== L || t[64] !== zr ? (Wr = (0, import_jsx_runtime.jsxs)("div", {
|
|
10540
|
+
className: L,
|
|
10541
10541
|
children: [
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10542
|
+
zr,
|
|
10543
|
+
H,
|
|
10544
|
+
W
|
|
10545
10545
|
]
|
|
10546
|
-
}), t[61] =
|
|
10547
|
-
let W;
|
|
10548
|
-
t[66] !== g || t[67] !== Gr || t[68] !== Vr ? (W = (0, import_jsx_runtime.jsx)(g, {
|
|
10549
|
-
className: Vr,
|
|
10550
|
-
children: Gr
|
|
10551
|
-
}), t[66] = g, t[67] = Gr, t[68] = Vr, t[69] = W) : W = t[69];
|
|
10546
|
+
}), t[61] = H, t[62] = W, t[63] = L, t[64] = zr, t[65] = Wr) : Wr = t[65];
|
|
10552
10547
|
let G;
|
|
10553
|
-
t[
|
|
10554
|
-
|
|
10555
|
-
|
|
10548
|
+
t[66] !== g || t[67] !== Wr || t[68] !== Vr ? (G = (0, import_jsx_runtime.jsx)(g, {
|
|
10549
|
+
className: Vr,
|
|
10550
|
+
children: Wr
|
|
10551
|
+
}), t[66] = g, t[67] = Wr, t[68] = Vr, t[69] = G) : G = t[69];
|
|
10556
10552
|
let K;
|
|
10557
|
-
|
|
10553
|
+
t[70] !== S || t[71] !== G ? (K = (0, import_jsx_runtime.jsx)(S, {
|
|
10554
|
+
children: G
|
|
10555
|
+
}), t[70] = S, t[71] = G, t[72] = K) : K = t[72];
|
|
10556
|
+
let q;
|
|
10557
|
+
return t[73] !== C || t[74] !== K || t[75] !== B ? (q = (0, import_jsx_runtime.jsxs)(C, {
|
|
10558
10558
|
children: [
|
|
10559
|
-
|
|
10560
|
-
|
|
10559
|
+
B,
|
|
10560
|
+
K
|
|
10561
10561
|
]
|
|
10562
|
-
}), t[73] = C, t[74] =
|
|
10562
|
+
}), t[73] = C, t[74] = K, t[75] = B, t[76] = q) : q = t[76], q;
|
|
10563
10563
|
};
|
|
10564
10564
|
function _temp$1(e) {
|
|
10565
10565
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
@@ -10638,22 +10638,22 @@ let __tla = (async () => {
|
|
|
10638
10638
|
}
|
|
10639
10639
|
var import_compiler_runtime = require_compiler_runtime();
|
|
10640
10640
|
GlideDataEditor = (e) => {
|
|
10641
|
-
let t = (0, import_compiler_runtime.c)(107), { data: n, setData: a, columnFields: o, setColumnFields: u, editableColumns: f, edits: m, onAddEdits: h, onAddRows: g, onDeleteRows: y, onRenameColumn: x, onDeleteColumn: S, onAddColumn: E } = e, { theme: k } = useTheme(), j = (0, import_react.useRef)(null), [N, P] = (0, import_react.useState)(), [
|
|
10642
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10641
|
+
let t = (0, import_compiler_runtime.c)(107), { data: n, setData: a, columnFields: o, setColumnFields: u, editableColumns: f, edits: m, onAddEdits: h, onAddRows: g, onDeleteRows: y, onRenameColumn: x, onDeleteColumn: S, onAddColumn: E } = e, { theme: k } = useTheme(), j = (0, import_react.useRef)(null), [N, P] = (0, import_react.useState)(), [I, zr] = (0, import_react.useState)(false), Br;
|
|
10642
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Br = {
|
|
10643
10643
|
columns: CompactSelection.empty(),
|
|
10644
10644
|
rows: CompactSelection.empty()
|
|
10645
|
-
}, t[0] =
|
|
10646
|
-
let [
|
|
10647
|
-
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10648
|
-
let [
|
|
10649
|
-
if (t[2] !== o || t[3] !==
|
|
10650
|
-
|
|
10645
|
+
}, t[0] = Br) : Br = t[0];
|
|
10646
|
+
let [B, Hr] = import_react.useState(Br), H;
|
|
10647
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {}, t[1] = H) : H = t[1];
|
|
10648
|
+
let [U, W] = (0, import_react.useState)(H), Wr = useNonce(), G = (0, import_react.useRef)(false), K;
|
|
10649
|
+
if (t[2] !== o || t[3] !== U || t[4] !== f || t[5] !== k) {
|
|
10650
|
+
K = [];
|
|
10651
10651
|
for (let [e2, t2] of o) {
|
|
10652
10652
|
let n2 = f === "all" || f.includes(e2);
|
|
10653
|
-
|
|
10653
|
+
K.push({
|
|
10654
10654
|
id: e2,
|
|
10655
10655
|
title: e2,
|
|
10656
|
-
width:
|
|
10656
|
+
width: U[e2],
|
|
10657
10657
|
icon: n2 ? getColumnHeaderIcon(t2) : GridColumnIcon.ProtectedColumnOverlay,
|
|
10658
10658
|
style: "normal",
|
|
10659
10659
|
kind: getColumnKind(t2),
|
|
@@ -10664,11 +10664,11 @@ let __tla = (async () => {
|
|
|
10664
10664
|
}
|
|
10665
10665
|
});
|
|
10666
10666
|
}
|
|
10667
|
-
t[2] = o, t[3] =
|
|
10668
|
-
} else
|
|
10669
|
-
let
|
|
10670
|
-
t[7] !==
|
|
10671
|
-
if (
|
|
10667
|
+
t[2] = o, t[3] = U, t[4] = f, t[5] = k, t[6] = K;
|
|
10668
|
+
} else K = t[6];
|
|
10669
|
+
let q = K, Gr;
|
|
10670
|
+
t[7] !== q || t[8] !== n.length || t[9] !== m || t[10] !== Wr || t[11] !== u || t[12] !== a ? (Gr = () => {
|
|
10671
|
+
if (G.current || n.length === 0 || (G.current = true, m.length === 0)) return;
|
|
10672
10672
|
let e2 = /* @__PURE__ */ new Map();
|
|
10673
10673
|
for (let t3 of m) if (isPositionalEdit(t3)) if (t3.rowIdx >= n.length) {
|
|
10674
10674
|
e2.has(t3.rowIdx) || e2.set(t3.rowIdx, {});
|
|
@@ -10698,7 +10698,7 @@ let __tla = (async () => {
|
|
|
10698
10698
|
})), a((e3) => insertColumn(e3, t3.newName));
|
|
10699
10699
|
break bb59;
|
|
10700
10700
|
case BulkEdit.Rename: {
|
|
10701
|
-
let e3 =
|
|
10701
|
+
let e3 = q[t3.columnIdx].title, n2 = t3.newName;
|
|
10702
10702
|
if (!e3 || !n2) return;
|
|
10703
10703
|
u((e4) => modifyColumnFields({
|
|
10704
10704
|
columnFields: e4,
|
|
@@ -10714,15 +10714,15 @@ let __tla = (async () => {
|
|
|
10714
10714
|
t2.length > 0 && a((e3) => [
|
|
10715
10715
|
...e3,
|
|
10716
10716
|
...t2
|
|
10717
|
-
]),
|
|
10718
|
-
}, t[7] =
|
|
10719
|
-
let
|
|
10720
|
-
t[14] === n.length ?
|
|
10717
|
+
]), Wr();
|
|
10718
|
+
}, t[7] = q, t[8] = n.length, t[9] = m, t[10] = Wr, t[11] = u, t[12] = a, t[13] = Gr) : Gr = t[13];
|
|
10719
|
+
let Kr;
|
|
10720
|
+
t[14] === n.length ? Kr = t[15] : (Kr = [
|
|
10721
10721
|
n.length
|
|
10722
|
-
], t[14] = n.length, t[15] =
|
|
10723
|
-
let
|
|
10724
|
-
t[16] !==
|
|
10725
|
-
let [t2, r] = e2, i = n[r][
|
|
10722
|
+
], t[14] = n.length, t[15] = Kr), (0, import_react.useEffect)(Gr, Kr);
|
|
10723
|
+
let qr;
|
|
10724
|
+
t[16] !== q || t[17] !== n || t[18] !== f ? (qr = (e2) => {
|
|
10725
|
+
let [t2, r] = e2, i = n[r][q[t2].title], a2 = q[t2].kind, o2 = f === "all" || f.includes(q[t2].title);
|
|
10726
10726
|
if (a2 === GridCellKind.Boolean) {
|
|
10727
10727
|
let e3 = !!i;
|
|
10728
10728
|
return {
|
|
@@ -10745,10 +10745,10 @@ let __tla = (async () => {
|
|
|
10745
10745
|
displayData: String(i),
|
|
10746
10746
|
data: String(i)
|
|
10747
10747
|
};
|
|
10748
|
-
}, t[16] =
|
|
10749
|
-
let
|
|
10750
|
-
t[20] !==
|
|
10751
|
-
let [n2, r] = e2, i =
|
|
10748
|
+
}, t[16] = q, t[17] = n, t[18] = f, t[19] = qr) : qr = t[19];
|
|
10749
|
+
let Jr = qr, Yr;
|
|
10750
|
+
t[20] !== q || t[21] !== h || t[22] !== a ? (Yr = (e2, t2) => {
|
|
10751
|
+
let [n2, r] = e2, i = q[n2], o2 = i.title, s = t2.data;
|
|
10752
10752
|
(i.dataType === "number" || i.dataType === "integer") && (t2.data === void 0 || t2.data === "") && (s = null), a((e3) => {
|
|
10753
10753
|
let t3 = [
|
|
10754
10754
|
...e3
|
|
@@ -10761,17 +10761,17 @@ let __tla = (async () => {
|
|
|
10761
10761
|
value: s
|
|
10762
10762
|
}
|
|
10763
10763
|
]);
|
|
10764
|
-
}, t[20] =
|
|
10765
|
-
let
|
|
10766
|
-
t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10767
|
-
|
|
10764
|
+
}, t[20] = q, t[21] = h, t[22] = a, t[23] = Yr) : Yr = t[23];
|
|
10765
|
+
let Xr = Yr, Zr;
|
|
10766
|
+
t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Zr = (e2, t2) => {
|
|
10767
|
+
W((n2) => ({
|
|
10768
10768
|
...n2,
|
|
10769
10769
|
[e2.title]: t2
|
|
10770
10770
|
}));
|
|
10771
|
-
}, t[24] =
|
|
10772
|
-
let
|
|
10773
|
-
t[25] !== o || t[26] !==
|
|
10774
|
-
let [r] = e2, i =
|
|
10771
|
+
}, t[24] = Zr) : Zr = t[24];
|
|
10772
|
+
let Qr = Zr, $r;
|
|
10773
|
+
t[25] !== o || t[26] !== q ? ($r = (e2, t2, n2) => {
|
|
10774
|
+
let [r] = e2, i = q[r].title, a2 = o.get(i);
|
|
10775
10775
|
bb134: switch (a2) {
|
|
10776
10776
|
case "number":
|
|
10777
10777
|
case "integer":
|
|
@@ -10781,9 +10781,9 @@ let __tla = (async () => {
|
|
|
10781
10781
|
if (typeof t2.data != "boolean") return false;
|
|
10782
10782
|
}
|
|
10783
10783
|
return true;
|
|
10784
|
-
}, t[25] = o, t[26] =
|
|
10785
|
-
let
|
|
10786
|
-
t[28] !==
|
|
10784
|
+
}, t[25] = o, t[26] = q, t[27] = $r) : $r = t[27];
|
|
10785
|
+
let ei = $r, ti;
|
|
10786
|
+
t[28] !== q || t[29] !== n || t[30] !== f || t[31] !== h || t[32] !== B || t[33] !== a ? (ti = (e2) => {
|
|
10787
10787
|
if (j.current) {
|
|
10788
10788
|
if (Events.isMetaOrCtrl(e2) && e2.key === "c") {
|
|
10789
10789
|
j.current.emit("copy");
|
|
@@ -10791,38 +10791,38 @@ let __tla = (async () => {
|
|
|
10791
10791
|
}
|
|
10792
10792
|
if (Events.isMetaOrCtrl(e2) && e2.key === "v") {
|
|
10793
10793
|
pasteCells({
|
|
10794
|
-
selection:
|
|
10794
|
+
selection: B,
|
|
10795
10795
|
data: n,
|
|
10796
10796
|
setData: a,
|
|
10797
|
-
columns:
|
|
10797
|
+
columns: q,
|
|
10798
10798
|
editableColumns: f,
|
|
10799
10799
|
onAddEdits: h
|
|
10800
10800
|
});
|
|
10801
10801
|
return;
|
|
10802
10802
|
}
|
|
10803
10803
|
if (Events.isMetaOrCtrl(e2) && e2.key === "f") {
|
|
10804
|
-
|
|
10804
|
+
zr(_temp3), e2.stopPropagation(), e2.preventDefault();
|
|
10805
10805
|
return;
|
|
10806
10806
|
}
|
|
10807
10807
|
if (e2.key === "Escape") {
|
|
10808
|
-
|
|
10808
|
+
zr(false);
|
|
10809
10809
|
return;
|
|
10810
10810
|
}
|
|
10811
10811
|
}
|
|
10812
|
-
}, t[28] =
|
|
10813
|
-
let
|
|
10814
|
-
t[35] !==
|
|
10815
|
-
let e2 = Object.fromEntries(
|
|
10812
|
+
}, t[28] = q, t[29] = n, t[30] = f, t[31] = h, t[32] = B, t[33] = a, t[34] = ti) : ti = t[34];
|
|
10813
|
+
let J = ti, ni;
|
|
10814
|
+
t[35] !== q || t[36] !== g || t[37] !== a ? (ni = () => {
|
|
10815
|
+
let e2 = Object.fromEntries(q.map(_temp4));
|
|
10816
10816
|
g([
|
|
10817
10817
|
e2
|
|
10818
10818
|
]), a((t2) => [
|
|
10819
10819
|
...t2,
|
|
10820
10820
|
e2
|
|
10821
10821
|
]);
|
|
10822
|
-
}, t[35] =
|
|
10823
|
-
let
|
|
10824
|
-
t[39] !== y || t[40] !==
|
|
10825
|
-
let e2 =
|
|
10822
|
+
}, t[35] = q, t[36] = g, t[37] = a, t[38] = ni) : ni = t[38];
|
|
10823
|
+
let Y = ni, ri;
|
|
10824
|
+
t[39] !== y || t[40] !== B.rows || t[41] !== a ? (ri = () => {
|
|
10825
|
+
let e2 = B.rows.toArray();
|
|
10826
10826
|
y(e2);
|
|
10827
10827
|
let t2 = 0;
|
|
10828
10828
|
for (let n2 of e2) {
|
|
@@ -10833,38 +10833,38 @@ let __tla = (async () => {
|
|
|
10833
10833
|
columns: CompactSelection.empty(),
|
|
10834
10834
|
rows: CompactSelection.empty()
|
|
10835
10835
|
});
|
|
10836
|
-
}, t[39] = y, t[40] =
|
|
10837
|
-
let
|
|
10838
|
-
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10836
|
+
}, t[39] = y, t[40] = B.rows, t[41] = a, t[42] = ri) : ri = t[42];
|
|
10837
|
+
let ii = ri, ai;
|
|
10838
|
+
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ai = (e2, t2) => {
|
|
10839
10839
|
P({
|
|
10840
10840
|
col: e2,
|
|
10841
10841
|
bounds: t2
|
|
10842
10842
|
});
|
|
10843
|
-
}, t[43] =
|
|
10844
|
-
let
|
|
10845
|
-
t[44] !==
|
|
10843
|
+
}, t[43] = ai) : ai = t[43];
|
|
10844
|
+
let oi = useEvent_default(ai), si;
|
|
10845
|
+
t[44] !== q || t[45] !== N ? (si = async () => {
|
|
10846
10846
|
if (N) {
|
|
10847
|
-
let e2 =
|
|
10847
|
+
let e2 = q[N.col].title;
|
|
10848
10848
|
await copyToClipboard(e2), P(void 0);
|
|
10849
10849
|
}
|
|
10850
|
-
}, t[44] =
|
|
10851
|
-
let
|
|
10852
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10850
|
+
}, t[44] = q, t[45] = N, t[46] = si) : si = t[46];
|
|
10851
|
+
let ui = si, di;
|
|
10852
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (di = function(e2) {
|
|
10853
10853
|
toast({
|
|
10854
10854
|
title: `Column '${e2}' already exists`,
|
|
10855
10855
|
description: "Please enter a different column name",
|
|
10856
10856
|
variant: "danger"
|
|
10857
10857
|
});
|
|
10858
|
-
}, t[47] =
|
|
10859
|
-
let fi =
|
|
10860
|
-
t[48] !== o || t[49] !==
|
|
10858
|
+
}, t[47] = di) : di = t[47];
|
|
10859
|
+
let fi = di, pi;
|
|
10860
|
+
t[48] !== o || t[49] !== q || t[50] !== N || t[51] !== x || t[52] !== u || t[53] !== a ? (pi = (e2) => {
|
|
10861
10861
|
if (N) {
|
|
10862
|
-
let t2 =
|
|
10862
|
+
let t2 = q[N.col].title;
|
|
10863
10863
|
if (o.has(e2)) {
|
|
10864
10864
|
fi(e2);
|
|
10865
10865
|
return;
|
|
10866
10866
|
}
|
|
10867
|
-
let n2 =
|
|
10867
|
+
let n2 = q[N.col].dataType;
|
|
10868
10868
|
x(N.col, e2), u((t3) => modifyColumnFields({
|
|
10869
10869
|
columnFields: t3,
|
|
10870
10870
|
columnIdx: N.col,
|
|
@@ -10873,7 +10873,7 @@ let __tla = (async () => {
|
|
|
10873
10873
|
newColumnName: e2
|
|
10874
10874
|
})), a((n3) => renameColumn(n3, t2, e2)), P(void 0);
|
|
10875
10875
|
}
|
|
10876
|
-
}, t[48] = o, t[49] =
|
|
10876
|
+
}, t[48] = o, t[49] = q, t[50] = N, t[51] = x, t[52] = u, t[53] = a, t[54] = pi) : pi = t[54];
|
|
10877
10877
|
let mi = pi, X;
|
|
10878
10878
|
t[55] !== N || t[56] !== S || t[57] !== u || t[58] !== a ? (X = () => {
|
|
10879
10879
|
N && (S(N.col), u((e2) => modifyColumnFields({
|
|
@@ -10883,10 +10883,10 @@ let __tla = (async () => {
|
|
|
10883
10883
|
})), a((e2) => removeColumn(e2, N.col)), P(void 0));
|
|
10884
10884
|
}, t[55] = N, t[56] = S, t[57] = u, t[58] = a, t[59] = X) : X = t[59];
|
|
10885
10885
|
let hi = X, gi;
|
|
10886
|
-
t[60] !== o || t[61] !==
|
|
10886
|
+
t[60] !== o || t[61] !== q.length || t[62] !== N || t[63] !== E || t[64] !== u || t[65] !== a ? (gi = (e2) => {
|
|
10887
10887
|
let { direction: t2, columnName: n2, dataType: r } = e2;
|
|
10888
10888
|
if (N) {
|
|
10889
|
-
let e3 = N.col + (t2 === "left" ? 0 : 1), i = Math.max(0, Math.min(e3,
|
|
10889
|
+
let e3 = N.col + (t2 === "left" ? 0 : 1), i = Math.max(0, Math.min(e3, q.length));
|
|
10890
10890
|
if (o.has(n2)) {
|
|
10891
10891
|
fi(n2);
|
|
10892
10892
|
return;
|
|
@@ -10899,20 +10899,20 @@ let __tla = (async () => {
|
|
|
10899
10899
|
newColumnName: n2
|
|
10900
10900
|
})), a((e4) => insertColumn(e4, n2)), P(void 0);
|
|
10901
10901
|
}
|
|
10902
|
-
}, t[60] = o, t[61] =
|
|
10903
|
-
let _i = gi, yi = (N == null ? void 0 : N.col) ===
|
|
10902
|
+
}, t[60] = o, t[61] = q.length, t[62] = N, t[63] = E, t[64] = u, t[65] = a, t[66] = gi) : gi = t[66];
|
|
10903
|
+
let _i = gi, yi = (N == null ? void 0 : N.col) === q.length - 1, bi = N !== void 0, xi;
|
|
10904
10904
|
t[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xi = {
|
|
10905
10905
|
hint: "New row",
|
|
10906
10906
|
sticky: true,
|
|
10907
10907
|
tint: true
|
|
10908
10908
|
}, t[67] = xi) : xi = t[67];
|
|
10909
10909
|
let Si = xi, Ci = n.length > 1e5, wi = f === "all", Ti;
|
|
10910
|
-
t[68] !== wi || t[69] !==
|
|
10910
|
+
t[68] !== wi || t[69] !== q || t[70] !== _i || t[71] !== ui || t[72] !== hi || t[73] !== mi || t[74] !== Ci || t[75] !== yi || t[76] !== bi || t[77] !== N ? (Ti = () => {
|
|
10911
10911
|
if (!bi) return;
|
|
10912
10912
|
let e2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10913
10913
|
children: [
|
|
10914
10914
|
wi && (0, import_jsx_runtime.jsx)(RenameColumnSub, {
|
|
10915
|
-
currentColumnName:
|
|
10915
|
+
currentColumnName: q[N.col].title,
|
|
10916
10916
|
onRename: mi,
|
|
10917
10917
|
onCancel: () => P(void 0)
|
|
10918
10918
|
}),
|
|
@@ -10959,7 +10959,7 @@ let __tla = (async () => {
|
|
|
10959
10959
|
className: "fixed w-52",
|
|
10960
10960
|
children: [
|
|
10961
10961
|
(0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
10962
|
-
onClick:
|
|
10962
|
+
onClick: ui,
|
|
10963
10963
|
children: [
|
|
10964
10964
|
(0, import_jsx_runtime.jsx)(Copy, {
|
|
10965
10965
|
className: "mr-2 h-3.5 w-3.5"
|
|
@@ -10971,7 +10971,7 @@ let __tla = (async () => {
|
|
|
10971
10971
|
]
|
|
10972
10972
|
})
|
|
10973
10973
|
});
|
|
10974
|
-
}, t[68] = wi, t[69] =
|
|
10974
|
+
}, t[68] = wi, t[69] = q, t[70] = _i, t[71] = ui, t[72] = hi, t[73] = mi, t[74] = Ci, t[75] = yi, t[76] = bi, t[77] = N, t[78] = Ti) : Ti = t[78];
|
|
10975
10975
|
let Ei = Ti, Di = n.length, Oi = !Ci, ki = !Ci, Ai = n.length > 10 ? 450 : void 0, ji;
|
|
10976
10976
|
t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ji = {
|
|
10977
10977
|
kind: "both"
|
|
@@ -10979,52 +10979,52 @@ let __tla = (async () => {
|
|
|
10979
10979
|
let Mi;
|
|
10980
10980
|
t[80] === k ? Mi = t[81] : (Mi = getGlideTheme(k), t[80] = k, t[81] = Mi);
|
|
10981
10981
|
let Ni;
|
|
10982
|
-
t[82] !==
|
|
10982
|
+
t[82] !== q || t[83] !== n.length || t[84] !== Jr || t[85] !== Xr || t[86] !== oi || t[87] !== J || t[88] !== Y || t[89] !== B || t[90] !== I || t[91] !== Oi || t[92] !== ki || t[93] !== Ai || t[94] !== Mi || t[95] !== ei ? (Ni = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
10983
10983
|
children: (0, import_jsx_runtime.jsx)(DataEditorAll, {
|
|
10984
10984
|
ref: j,
|
|
10985
|
-
getCellContent:
|
|
10986
|
-
columns:
|
|
10987
|
-
gridSelection:
|
|
10985
|
+
getCellContent: Jr,
|
|
10986
|
+
columns: q,
|
|
10987
|
+
gridSelection: B,
|
|
10988
10988
|
onGridSelectionChange: Hr,
|
|
10989
10989
|
rows: Di,
|
|
10990
10990
|
overscrollX: 50,
|
|
10991
10991
|
smoothScrollX: Oi,
|
|
10992
10992
|
smoothScrollY: ki,
|
|
10993
|
-
validateCell:
|
|
10993
|
+
validateCell: ei,
|
|
10994
10994
|
getCellsForSelection: true,
|
|
10995
10995
|
onPaste: true,
|
|
10996
|
-
showSearch:
|
|
10996
|
+
showSearch: I,
|
|
10997
10997
|
fillHandle: true,
|
|
10998
10998
|
allowedFillDirections: "vertical",
|
|
10999
|
-
onKeyDown:
|
|
10999
|
+
onKeyDown: J,
|
|
11000
11000
|
height: Ai,
|
|
11001
11001
|
width: "100%",
|
|
11002
11002
|
rowMarkers: ji,
|
|
11003
11003
|
rowSelectionMode: "multi",
|
|
11004
|
-
onCellEdited:
|
|
11005
|
-
onColumnResize:
|
|
11006
|
-
onHeaderMenuClick:
|
|
11004
|
+
onCellEdited: Xr,
|
|
11005
|
+
onColumnResize: Qr,
|
|
11006
|
+
onHeaderMenuClick: oi,
|
|
11007
11007
|
theme: Mi,
|
|
11008
11008
|
trailingRowOptions: Si,
|
|
11009
|
-
onRowAppended:
|
|
11009
|
+
onRowAppended: Y,
|
|
11010
11010
|
maxColumnAutoWidth: 600,
|
|
11011
11011
|
maxColumnWidth: 600
|
|
11012
11012
|
})
|
|
11013
|
-
}), t[82] =
|
|
11013
|
+
}), t[82] = q, t[83] = n.length, t[84] = Jr, t[85] = Xr, t[86] = oi, t[87] = J, t[88] = Y, t[89] = B, t[90] = I, t[91] = Oi, t[92] = ki, t[93] = Ai, t[94] = Mi, t[95] = ei, t[96] = Ni) : Ni = t[96];
|
|
11014
11014
|
let Pi;
|
|
11015
11015
|
t[97] === Ei ? Pi = t[98] : (Pi = Ei(), t[97] = Ei, t[98] = Pi);
|
|
11016
|
-
let Fi =
|
|
11017
|
-
t[99] !==
|
|
11016
|
+
let Fi = B.rows.length === 0, Ii = B.rows.length <= 1 ? "Delete row" : "Delete rows", Li;
|
|
11017
|
+
t[99] !== ii || t[100] !== Fi || t[101] !== Ii ? (Li = (0, import_jsx_runtime.jsx)("div", {
|
|
11018
11018
|
className: "absolute bottom-1 right-2 w-26",
|
|
11019
11019
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
11020
11020
|
variant: "destructive",
|
|
11021
11021
|
size: "sm",
|
|
11022
11022
|
disabled: Fi,
|
|
11023
11023
|
className: "right-2 h-7",
|
|
11024
|
-
onClick:
|
|
11024
|
+
onClick: ii,
|
|
11025
11025
|
children: Ii
|
|
11026
11026
|
})
|
|
11027
|
-
}), t[99] =
|
|
11027
|
+
}), t[99] = ii, t[100] = Fi, t[101] = Ii, t[102] = Li) : Li = t[102];
|
|
11028
11028
|
let Ri;
|
|
11029
11029
|
return t[103] !== Ni || t[104] !== Pi || t[105] !== Li ? (Ri = (0, import_jsx_runtime.jsxs)("div", {
|
|
11030
11030
|
className: "relative w-full min-w-0",
|