@marimo-team/islands 0.23.2-dev8 → 0.23.2
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-P92i6wYx.js → ConnectedDataExplorerComponent-BS9U2zaC.js} +68 -66
- package/dist/ErrorBoundary-Da4UeYxT.js +167 -0
- package/dist/{ImageComparisonComponent-HF4AY8_n.js → ImageComparisonComponent-DaocPIse.js} +1 -1
- package/dist/{Plot-CK0oVgQL.js → Plot-PIeIvFnD.js} +1 -1
- package/dist/{isArrayLikeObject-LXbTYiBa.js → _baseFor-BGiY-cm1.js} +43 -215
- package/dist/_baseUniq-CxZRxRRo.js +380 -0
- package/dist/{any-language-editor-BCvLfvzI.js → any-language-editor-BVR0l12r.js} +23 -22
- package/dist/apl-BKoVld9y.js +4 -0
- package/dist/{arc-DLJpPF9M.js → arc-CHF8PiiF.js} +2 -2
- package/dist/architecture-7HQA4BMR-D0JB_3hE.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-B3YQo9At.js → architectureDiagram-VXUJARFQ-BXQEUDtK.js} +19 -19
- package/dist/{arrays-beUWo8RF.js → arrays-CldYf7p7.js} +1 -1
- package/dist/asciiarmor-DQrKIjoo.js +4 -0
- package/dist/asn1-BZvnj0dq.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-CpQ3TKEN.js → blockDiagram-VD42YOAC-DhJe-Y9i.js} +53 -53
- package/dist/brainfuck-D558nlUv.js +4 -0
- package/dist/{button-D1C3g5GI.js → button-CA5pI2YF.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-CZSU4uqU.js → c4Diagram-YG6GDRKO-9dSfzOFR.js} +6 -6
- package/dist/{capabilities-BwpUgo4S.js → capabilities-6laDasij.js} +2 -2
- package/dist/{channel-X3JKk8gE.js → channel-MqYIiKgS.js} +1 -1
- package/dist/{chat-ui-Bi0ioKDx.js → chat-ui-CTt4WX0V.js} +2803 -2800
- package/dist/{check-BgrdTLuv.js → check-CFM2mVDr.js} +1 -1
- package/dist/{chunk-4BX2VUAB-C2skOn1Z.js → chunk-4BX2VUAB-BwfrWBqN.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-D5mClyDv.js → chunk-4F5CHEZ2-C6tO9vjs.js} +1 -1
- package/dist/{chunk-55IACEB6-DRsSqxbU.js → chunk-55IACEB6-D8THf2mi.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-VIref9gx.js → chunk-5FQGJX7Z-CO1e63h_.js} +5 -5
- package/dist/{chunk-ABZYJK2D-CZYCCtLy.js → chunk-ABZYJK2D-BrBb_0yY.js} +3 -3
- package/dist/{chunk-ATLVNIR6-DaOzLLgN.js → chunk-ATLVNIR6-D-0XqNah.js} +2 -2
- package/dist/{chunk-B2363JML-Br0eA2T3.js → chunk-B2363JML-Ds8wZXyP.js} +1 -1
- package/dist/{chunk-B4BG7PRW-4BjV11Br.js → chunk-B4BG7PRW-8iRKvugR.js} +7 -7
- package/dist/{chunk-CVBHYZKI-BXHgce-x.js → chunk-CVBHYZKI-B6xhgaBd.js} +1 -1
- package/dist/{chunk-DI55MBZ5-DITY3EyP.js → chunk-DI55MBZ5-C0_2D4m4.js} +6 -6
- package/dist/{chunk-EXTU4WIE-jUPSAk3i.js → chunk-EXTU4WIE-Jiw9ca1u.js} +2 -2
- package/dist/{chunk-FMBD7UC4-BjIaI-XO.js → chunk-FMBD7UC4-CHdus51S.js} +1 -1
- package/dist/{chunk-FRFDVMJY-DnEvEFRR.js → chunk-FRFDVMJY-BgQv1HBE.js} +1 -1
- package/dist/{chunk-HN2XXSSU-DAhNp1ig.js → chunk-HN2XXSSU-2Vfbq-kU.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-BcPEfxk_.js → chunk-JA3XYJ7Z-6wbaigKe.js} +3 -3
- package/dist/{chunk-JZLCHNYA-2bnLL3xL.js → chunk-JZLCHNYA-_rfptlUP.js} +6 -6
- package/dist/{chunk-MI3HLSF2-AKwFNP3m.js → chunk-MI3HLSF2-Do0-KRc0.js} +1 -1
- package/dist/{chunk-N4CR4FBY-CpZSuGSU.js → chunk-N4CR4FBY-DIZG9dVD.js} +7 -7
- package/dist/{chunk-PL6DKKU2-DnId6G-x.js → chunk-PL6DKKU2-DHfTUHy8.js} +1 -1
- package/dist/{chunk-QN33PNHL-B9p5ojHB.js → chunk-QN33PNHL-Cc64y40m.js} +2 -2
- package/dist/{chunk-QXUST7PY-Ch6F5Obl.js → chunk-QXUST7PY-BDG0-0Or.js} +10 -10
- package/dist/{chunk-QZHKN3VN-BK9tlbfw.js → chunk-QZHKN3VN-B_Mdb8GC.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-B0UOFJwq.js → chunk-S3R3BYOJ-DphMP0FA.js} +8 -8
- package/dist/{chunk-SJTYNZTY-BsBZnJUj.js → chunk-SJTYNZTY-Diciw4sx.js} +1 -1
- package/dist/{chunk-TCCFYFTB-Clbl-fTg.js → chunk-TCCFYFTB-d3HOqL2I.js} +1552 -345
- package/dist/{chunk-TQ3KTPDO-CFkSQ30e.js → chunk-TQ3KTPDO-CQfP9npd.js} +1 -1
- package/dist/{chunk-TZMSLE5B-D45397J2.js → chunk-TZMSLE5B-C9LUoYkc.js} +3 -3
- package/dist/{chunk-UMXZTB3W-D-A834Bq.js → chunk-UMXZTB3W-MSKeGL7W.js} +1 -1
- package/dist/classDiagram-2ON5EDUG-CBHMR6ZU.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-BsUtUGM_.js +30 -0
- package/dist/{clike-B90WKs4D.js → clike-sBZrGeF8.js} +1 -1
- package/dist/clojure-Cq8mTSrE.js +4 -0
- package/dist/{clone-DZFQCtFJ.js → clone-BuIIsfA8.js} +1 -1
- package/dist/cmake-D8HCovWK.js +4 -0
- package/dist/cobol-UolN-9iU.js +4 -0
- package/dist/{code-block-37QAKDTI-FQEoMOU1.js → code-block-37QAKDTI-0JNwiPGv.js} +2 -2
- package/dist/coffeescript-VdNuWrt5.js +4 -0
- package/dist/commonlisp-ALX7fpDc.js +4 -0
- package/dist/{constants-CvyfaCvs.js → constants-D0gkYoE2.js} +4 -4
- package/dist/{copy-Bp6CK_Fg.js → copy-TGGAUEWp.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DvCk1aXi.js → cose-bilkent-S5V4N54A-DXHZkJKX.js} +2 -2
- package/dist/crystal-PbyO9Q_s.js +4 -0
- package/dist/css-DFklJkr_.js +4 -0
- package/dist/cypher-BifNeYlv.js +4 -0
- package/dist/d-BA-JP4PJ.js +4 -0
- package/dist/{dagre-6UL2VRFP-OMItEBnY.js → dagre-6UL2VRFP-tH87fkPA.js} +102 -103
- package/dist/{dagre-QVd-lCXU.js → dagre-VYEPqXIV.js} +105 -39
- package/dist/{data-grid-overlay-editor-C_sKPpLu.js → data-grid-overlay-editor-CWUN78-s.js} +3 -3
- package/dist/{diagram-PSM6KHXK-CkKbohWI.js → diagram-PSM6KHXK-2VjPSCDn.js} +22 -22
- package/dist/{diagram-QEK2KX5R-DjUMpVcx.js → diagram-QEK2KX5R-CiLmNyta.js} +17 -17
- package/dist/{diagram-S2PKOQOG-b-c0d-wZ.js → diagram-S2PKOQOG-Zha_1CLx.js} +17 -17
- package/dist/diff-CtkDpav4.js +4 -0
- package/dist/dist-B--tLnAP.js +5 -0
- package/dist/{dist-tGk0aZ--.js → dist-B52GXZbd.js} +2 -2
- package/dist/{dist-Bfp1XXWt.js → dist-B8BjrFUE.js} +5 -5
- package/dist/dist-BEOU2g1b.js +8 -0
- package/dist/dist-BHnX0ia_.js +8 -0
- package/dist/{dist-DJKubHDd.js → dist-BK-3fF4P.js} +1 -1
- package/dist/{dist-Ci0CXEFt.js → dist-BTyJtnNg.js} +1 -1
- package/dist/{dist-CFKdzOIu.js → dist-BetEKbPG.js} +2 -2
- package/dist/{dist-DpkJHKB8.js → dist-BrBucRXs.js} +2 -2
- package/dist/{dist-CTwGwcQ8.js → dist-Brkazupz.js} +2 -2
- package/dist/dist-BuBwsFva.js +5 -0
- package/dist/dist-BzmEQ9u7.js +5 -0
- package/dist/{dist-ej6AQKaS.js → dist-C-J0pt5p.js} +1 -1
- package/dist/dist-C1Ap5CYU.js +5 -0
- package/dist/{dist-LhQNUe5A.js → dist-C474qFoq.js} +3 -3
- package/dist/{dist-DlSUOIm9.js → dist-C9fmTOin.js} +1 -1
- package/dist/{dist-CxZvoNao.js → dist-CCADb07R.js} +44 -31
- package/dist/{dist-BjDuO5JW.js → dist-CGLzXdrt.js} +1 -1
- package/dist/dist-CMjD5MQb.js +6 -0
- package/dist/{dist-BvhGByxL.js → dist-CNtV21T_.js} +4 -4
- package/dist/dist-ChC1BhqM.js +6 -0
- package/dist/dist-Cih01ssx.js +5 -0
- package/dist/{dist-CNF0QBLR.js → dist-CinA9Enb.js} +1 -1
- package/dist/dist-CqfONiY9.js +5 -0
- package/dist/{dist-DFK94vuS.js → dist-CtCY55Jf.js} +2 -2
- package/dist/{dist-VqF3W_ue.js → dist-CxdUraQr.js} +2 -2
- package/dist/{dist-DUFd1bhm.js → dist-CyFFzJTb.js} +1 -1
- package/dist/{dist-C4bq5Ioy.js → dist-D029TiHd.js} +2 -2
- package/dist/dist-D0iD0Fi9.js +5 -0
- package/dist/{dist-m9tsXsFf.js → dist-D9r7Cmw7.js} +2 -2
- package/dist/{dist-DD_cYHOl.js → dist-DBLeRrPp.js} +2 -2
- package/dist/{dist-DJ9F1eHs.js → dist-DGAfI2rB.js} +2 -2
- package/dist/{dist-BrxqmS9Q.js → dist-DZjQ_MBo.js} +4 -4
- package/dist/{dist-DLafRu9s.js → dist-DadjmS-4.js} +2 -2
- package/dist/{dist-Doy0mQDg.js → dist-DkC6YEo0.js} +2 -2
- package/dist/{dist-CIB8w0Fl.js → dist-DquyVv5H.js} +2 -2
- package/dist/dist-DtNLXm8d.js +5 -0
- package/dist/{dist-CTtLBPLZ.js → dist-ESg7xyoD.js} +4 -4
- package/dist/dist-FN0ZA_8F.js +8 -0
- package/dist/{dist-CcMfr7jD.js → dist-HVuryI1a.js} +1 -1
- package/dist/{dist-DGNtjMZu.js → dist-JEhxD_cn.js} +1 -1
- package/dist/{dist-B43sbpd0.js → dist-UcOPnRMa.js} +3 -3
- package/dist/dist-YP-G7W0f.js +8 -0
- package/dist/{dist-DbnBiLNH.js → dist-Yrfc6L0I.js} +3 -3
- package/dist/{dist--6TSlp8H.js → dist-Zn0KNbo9.js} +1 -1
- package/dist/{dist-DAfcmt-d.js → dist-nuW5EDYT.js} +2 -2
- package/dist/{dockerfile-DfXhjEUG.js → dockerfile-COvlVLcE.js} +1 -1
- package/dist/dtd-DW3_UFEG.js +4 -0
- package/dist/dylan-pDhodO2N.js +4 -0
- package/dist/ecl-BJT8-YD7.js +4 -0
- package/dist/eiffel-Dmns-9vS.js +4 -0
- package/dist/elm-Da4sO4Bz.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-CDhLaOZ1.js → erDiagram-Q2GNP2WA-biHZS05w.js} +15 -15
- package/dist/erlang-C-zBsDi7.js +4 -0
- package/dist/{error-banner-B_ioHva3.js → error-banner-DnBPzEWg.js} +3 -3
- package/dist/{esm-CD1iby2n.js → esm-CYEyrE3Y.js} +105 -105
- package/dist/esm-Dd1z1auZ.js +1171 -0
- package/dist/extends-CzJgxo2J.js +1645 -0
- package/dist/factor-4xPWlWB5.js +4 -0
- package/dist/{factor--4HHM8Rw.js → factor-C2GT7jfQ.js} +1 -1
- package/dist/flatten-CzBvFdvC.js +8 -0
- package/dist/{flowDiagram-NV44I4VS-BDi4O4CL.js → flowDiagram-NV44I4VS-CWWlUpBR.js} +17 -17
- package/dist/formats-Dh5M1ZRs.js +79 -0
- package/dist/forth-l-c75zSd.js +4 -0
- package/dist/fortran-DIujSODW.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-BpZE6kVp.js → ganttDiagram-JELNMOA3-D7B2c4Z9.js} +10 -10
- package/dist/gas-CXnG5g_b.js +4 -0
- package/dist/gherkin-VPeqd4-X.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-B_c6xFJv.js → gitGraph-G5XIXVHT-BdepdFa_.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-iQnXzbPM.js → gitGraphDiagram-V2S2FVAM-CtLvNR1S.js} +17 -17
- package/dist/{glide-data-editor-BFqEJGJW.js → glide-data-editor-DXti2axL.js} +591 -583
- package/dist/graphlib-CVPKjKCS.js +359 -0
- package/dist/groovy-CphhZQgg.js +4 -0
- package/dist/{hasIn-DnfJcYpY.js → hasIn-COs6vImh.js} +3 -3
- package/dist/haskell-CCvlS5Iq.js +4 -0
- package/dist/haxe-C_bi66fP.js +5 -0
- package/dist/{process-output-H_7QTreh.js → html-to-image-BdsDysfl.js} +2521 -2639
- package/dist/idl-1DcP4Dm8.js +4 -0
- package/dist/{info-VBDWY6EO-BTyzxmhr.js → info-VBDWY6EO--JNA2rNu.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-BbZyOxsP.js +30 -0
- package/dist/{input-CSVEkmaZ.js → input-Drx1pguW.js} +70 -70
- package/dist/{isEmpty-B7FX9wKt.js → isEmpty-Dd8mx_WL.js} +9 -9
- package/dist/{isSymbol-DCbjQG_U.js → isSymbol-BvIfMnn6.js} +1 -1
- package/dist/javascript-DUIGhBvO.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-ClPC94aN.js → journeyDiagram-XKPGCS4Q-BU2mjjzl.js} +7 -7
- package/dist/julia-Cs2G4PQi.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-DHEAKdZt.js → kanban-definition-3W4ZIXB7-BlmczUuw.js} +12 -12
- package/dist/{katex-CkLtKXwv.js → katex-qPqrBHZ8.js} +1 -1
- package/dist/label-BCWi-Oqu.js +31 -0
- package/dist/{line-PAEmCpyD.js → line-BWRi3U3S.js} +3 -3
- package/dist/{linear-v57w-fIs.js → linear-DnHwODZa.js} +4 -4
- package/dist/livescript-DMtVFaAN.js +4 -0
- package/dist/{loader-ZFbGsMN1.js → loader-BvW0-YWZ.js} +2 -2
- package/dist/lua-BAoLtdJg.js +4 -0
- package/dist/main.js +16437 -39681
- package/dist/mathematica-C_NoFtbo.js +4 -0
- package/dist/mbox-DcFJFYrH.js +4 -0
- package/dist/{memoize-CSTI9eOX.js → memoize-C9ltv0Cw.js} +1 -1
- package/dist/merge-CHn7Yx0N.js +222 -0
- package/dist/mermaid-4DMBBIKO-CG1ECj5W.js +6 -0
- package/dist/{mermaid-BbhZNQeB.js → mermaid-BagLPXm9.js} +50 -50
- package/dist/{mermaid-parser.core-ntCgyx0x.js → mermaid-parser.core-CleJseNW.js} +8 -8
- package/dist/{mhchem-BuY5LDSq.js → mhchem-BwoRNwg_.js} +1 -1
- package/dist/min-BNz2lZfk.js +38 -0
- package/dist/{mindmap-definition-VGOIOE7T-CxEUZZvY.js → mindmap-definition-VGOIOE7T-CcSYqYP9.js} +14 -14
- package/dist/mirc-71dccf_u.js +4 -0
- package/dist/mllike-CWcOFVDq.js +6 -0
- package/dist/modelica-Ape2VXxx.js +4 -0
- package/dist/mscgen-Cc6TwbSN.js +6 -0
- package/dist/mumps-h-ZbdkJ9.js +4 -0
- package/dist/now-Sgq5m3D-.js +31 -0
- package/dist/{nsis-B6EN9LWI.js → nsis-B5K1qoyo.js} +1 -1
- package/dist/nsis-C0p3m7JW.js +4 -0
- package/dist/ntriples-c9lEeT5w.js +4 -0
- package/dist/{number-overlay-editor-B02-t7Ar.js → number-overlay-editor-_GnlYFHC.js} +1 -1
- package/dist/octave-DzEgB_74.js +4 -0
- package/dist/{once-C_TIu-kR.js → once-rJImu7SE.js} +1 -1
- package/dist/{ordinal-D7fa8Sey.js → ordinal-2jIulmcR.js} +1 -1
- package/dist/oz-CAxvHkyQ.js +4 -0
- package/dist/{packet-DYOGHKS2-BhvnpoGi.js → packet-DYOGHKS2-CBxXGWNr.js} +3 -3
- package/dist/pascal-BJzu1sgP.js +4 -0
- package/dist/perl--IrOzZ2Z.js +4 -0
- package/dist/pick-CRAXxDYn.js +43 -0
- package/dist/{pie-VRWISCQL-dILuA3iG.js → pie-VRWISCQL-Bmdnqjip.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-U3LrUqAS.js → pieDiagram-ADFJNKIX-DNyLF5H2.js} +22 -22
- package/dist/pig-CiBKKNhC.js +4 -0
- package/dist/powershell-KY0j6Qop.js +4 -0
- package/dist/{precisionRound-CGLoV26P.js → precisionRound-CnHPY_5v.js} +1 -1
- package/dist/process-output-COL2Pf5I.js +109 -0
- package/dist/properties-BW8q3ziV.js +4 -0
- package/dist/protobuf-BGaeuTGV.js +4 -0
- package/dist/pug-DjOKK-4J.js +4 -0
- package/dist/{pug-xrm7jQ2R.js → pug-tjbzJCFk.js} +1 -1
- package/dist/puppet-DWm2o6zX.js +4 -0
- package/dist/{purify.es-hTCfRGdl.js → purify.es-DT70lfR0.js} +85 -81
- package/dist/python-Bp2gezZy.js +4 -0
- package/dist/q-DljPshos.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BVWuq-3R.js → quadrantDiagram-AYHSOK5B-rXwjifrj.js} +5 -5
- package/dist/r-BajPMnEu.js +4 -0
- package/dist/{radar-ZZBFDIW7-DwFrOJDj.js → radar-ZZBFDIW7-BmCWDffL.js} +3 -3
- package/dist/{react-vega-DBwal82H.js → react-vega-C2Rtgjb4.js} +19 -19
- package/dist/react-vega-jy3CfYys.js +9 -0
- package/dist/{requirementDiagram-UZGBJVZJ-D0zpQnKC.js → requirementDiagram-UZGBJVZJ-DBdrMVbs.js} +14 -14
- package/dist/reveal-component-Cd5Y35Ny.js +4549 -0
- package/dist/rpm-BKx-ZZ62.js +5 -0
- package/dist/ruby-DJq_HNKc.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-CExy1joT.js → sankeyDiagram-TZEHDZUN-CxmzalGv.js} +5 -5
- package/dist/sas-WANvpcOU.js +4 -0
- package/dist/scheme-CliBbhGF.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-D1BJxLjH.js → sequenceDiagram-WL72ISMW-CVCDsJ9h.js} +8 -8
- package/dist/shell-BwhrNUvM.js +4 -0
- package/dist/sieve-BIVePvMp.js +4 -0
- package/dist/slide-BEerfanN.js +23928 -0
- package/dist/smalltalk-D6G48JmY.js +4 -0
- package/dist/sparql-jjc3BmEP.js +4 -0
- package/dist/{spec-3EPbPQZH.js → spec-BKWq0wn2.js} +8 -152
- package/dist/{src-DbP20yFZ.js → src-BY0BGg6V.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-B1S8jGMn.js → stateDiagram-FKZM4ZOC-D_2djEhW.js} +19 -19
- package/dist/stateDiagram-v2-4FDKWEC3-Cv9Av10H.js +29 -0
- package/dist/{step-qd10PbTJ.js → step-DGAGWg3y.js} +1 -1
- package/dist/stex-ChDHQs3R.js +4 -0
- package/dist/{label-BebYlsDV.js → strings-B_FOH6eV.js} +57 -81
- package/dist/style.css +1 -1
- package/dist/stylus-WPBPQ4PE.js +4 -0
- package/dist/swift-O1Qy6iCm.js +4 -0
- package/dist/{slides-component-DLxprlqo.js → swiper-component-KkEVUDd3.js} +5 -5
- package/dist/tcl-BAFdhvsi.js +4 -0
- package/dist/textile-DFuzhNLG.js +4 -0
- package/dist/{time-Bdnxi22U.js → time-CMdrp3hw.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-BDT9JAmn.js → timeline-definition-IT6M3QCI-E4NzxCs3.js} +4 -4
- package/dist/{toDate-B1AzlBoW.js → toDate-yqOcZ_tY.js} +4 -4
- package/dist/toml-DRSTeely.js +4 -0
- package/dist/{tooltip-DwNnFsxZ.js → tooltip-B0mtKTXm.js} +4 -4
- package/dist/{treemap-GDKQZRPO-bx2ngsgN.js → treemap-GDKQZRPO-CoKHPxa7.js} +3 -3
- package/dist/troff-B_ZjwBW0.js +4 -0
- package/dist/ttcn-CAyiB3ic.js +4 -0
- package/dist/ttcn-cfg-BS5_BGBJ.js +4 -0
- package/dist/turtle-CUBEDy3E.js +4 -0
- package/dist/types-DBtDeUKD.js +38 -0
- package/dist/{useAsyncData-BL98MPIy.js → useAsyncData-CKYzhCis.js} +2 -2
- package/dist/useDateFormatter-B3mCQMP3.js +150 -0
- package/dist/useDeepCompareMemoize-je76AJS_.js +11 -0
- package/dist/{useIframeCapabilities-CsTUYYj7.js → useIframeCapabilities-DbdLoEDm.js} +1 -1
- package/dist/{useLifecycle-DrGGIsgp.js → useLifecycle-smVfjLNI.js} +4 -4
- package/dist/{useTheme-CzwDokKe.js → useTheme-CX9pPLUH.js} +3 -3
- package/dist/vb-DY9S6-U2.js +4 -0
- package/dist/vbscript-gaHC39Jq.js +4 -0
- package/dist/{vega-component-KBJXEDZz.js → vega-component-CjMUUeEZ.js} +18 -17
- package/dist/{vega-loader.browser-DqEcFOPD.js → vega-loader.browser-3_z8GoFC.js} +3 -3
- package/dist/velocity-TfCOtJZ_.js +4 -0
- package/dist/verilog-c2JOX8mv.js +4 -0
- package/dist/vhdl-dHBirRiO.js +4 -0
- package/dist/webidl-Bauj-i07.js +4 -0
- package/dist/xquery-CtaEAOt8.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-CuAZiqHS.js → xychartDiagram-PRI3JC2R-CuxTvjw5.js} +13 -13
- package/dist/yacas-BZ85agQP.js +4 -0
- package/dist/z80-hCgR-L4U.js +4 -0
- package/dist/{zod-W5ZEjzaE.js → zod-BxdsqRPd.js} +3 -3
- package/package.json +4 -2
- package/src/__mocks__/requests.ts +1 -0
- package/src/components/data-table/TableBottomBar.tsx +5 -1
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +14 -14
- package/src/components/data-table/__tests__/columns.test.tsx +104 -0
- package/src/components/data-table/__tests__/filters.test.ts +304 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +46 -132
- package/src/components/data-table/__tests__/sentinel-cell.test.tsx +171 -0
- package/src/components/data-table/__tests__/types.test.ts +34 -1
- package/src/components/data-table/__tests__/utils.test.ts +227 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-header.tsx +11 -2
- package/src/components/data-table/column-summary/chart-spec-model.tsx +6 -3
- package/src/components/data-table/column-summary/column-summary.tsx +1 -1
- package/src/components/data-table/columns.tsx +48 -5
- package/src/components/data-table/export-actions.tsx +62 -23
- package/src/components/data-table/filters.ts +87 -33
- package/src/components/data-table/pagination.tsx +189 -76
- package/src/components/data-table/schemas.ts +8 -1
- package/src/components/data-table/sentinel-cell.tsx +118 -0
- package/src/components/data-table/types.ts +32 -11
- package/src/components/data-table/utils.ts +119 -1
- package/src/components/datasources/__tests__/missing-package-prompt.test.tsx +103 -0
- package/src/components/datasources/missing-package-prompt.tsx +49 -0
- package/src/components/editor/actions/useNotebookActions.tsx +12 -0
- package/src/components/editor/cell/code/cell-editor.tsx +1 -0
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +33 -0
- package/src/components/editor/file-tree/file-explorer.tsx +8 -33
- package/src/components/editor/file-tree/requesting-tree.tsx +41 -0
- package/src/components/editor/file-tree/state.tsx +1 -0
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +9 -17
- package/src/components/home/components.tsx +7 -0
- package/src/components/slides/reveal-component.tsx +109 -0
- package/src/components/slides/reveal-slides.css +42 -0
- package/src/components/slides/slides.css +0 -65
- package/src/components/slides/{slides-component.tsx → swiper-component.tsx} +1 -0
- package/src/components/slides/swiper-slides.css +64 -0
- package/src/components/static-html/static-banner.tsx +23 -14
- package/src/components/ui/toast.tsx +16 -7
- package/src/core/cells/__tests__/apply-transaction.test.ts +483 -0
- package/src/core/cells/__tests__/cells.test.ts +110 -0
- package/src/core/cells/__tests__/logs.test.ts +101 -0
- package/src/core/cells/cells.ts +18 -0
- package/src/core/cells/document-changes.ts +34 -1
- package/src/core/cells/logs.ts +9 -1
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +4 -14
- package/src/core/codemirror/cells/extensions.ts +0 -4
- package/src/core/codemirror/keymaps/keymaps.ts +69 -2
- package/src/core/constants.ts +1 -0
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/mode.ts +10 -1
- package/src/core/network/requests-lazy.ts +1 -0
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +3 -0
- package/src/core/wasm/__tests__/bridge.test.ts +113 -0
- package/src/core/wasm/bridge.ts +13 -2
- package/src/core/wasm/worker/types.ts +3 -0
- package/src/core/wasm/worker/worker.ts +1 -0
- package/src/plugins/core/__test__/trusted-url.test.ts +45 -1
- package/src/plugins/core/trusted-url.ts +27 -2
- package/src/plugins/impl/DataEditorPlugin.tsx +7 -3
- package/src/plugins/impl/DataTablePlugin.tsx +7 -20
- package/src/plugins/impl/FileBrowserPlugin.tsx +81 -81
- package/src/plugins/impl/TabsPlugin.tsx +18 -12
- package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +147 -149
- package/src/plugins/impl/data-editor/data-utils.ts +12 -11
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +4 -4
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +4 -4
- package/src/plugins/impl/data-frames/schema.ts +41 -9
- package/src/plugins/impl/data-frames/utils/operators.ts +2 -0
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +16 -0
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +3 -1
- package/dist/_basePickBy-Sow3pJjS.js +0 -41
- package/dist/_baseUniq-C87CckHL.js +0 -518
- package/dist/apl-C1bki_dE.js +0 -4
- package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +0 -6
- package/dist/asciiarmor-BdlkCCRr.js +0 -4
- package/dist/asn1-CvE30hox.js +0 -4
- package/dist/brainfuck-BalwWy1a.js +0 -4
- package/dist/classDiagram-2ON5EDUG-C8-zE3Zv.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-DrmbGANl.js +0 -30
- package/dist/clojure-CUC2I1hM.js +0 -4
- package/dist/cmake-8PcMxXnB.js +0 -4
- package/dist/cobol-DkkkDz5v.js +0 -4
- package/dist/coffeescript-CCupxOZf.js +0 -4
- package/dist/commonlisp-DhUfGX6b.js +0 -4
- package/dist/crystal-DSaw6rFQ.js +0 -4
- package/dist/css-D4QDewkG.js +0 -4
- package/dist/cypher-CrYVqw_F.js +0 -4
- package/dist/d-Cr3H3pPx.js +0 -4
- package/dist/diff-ODiZJGls.js +0 -4
- package/dist/dist-7K5doRvB.js +0 -6
- package/dist/dist-B6I_A2-E.js +0 -8
- package/dist/dist-BEQsmaZY.js +0 -5
- package/dist/dist-BasY2RHp.js +0 -8
- package/dist/dist-Bosc00dY.js +0 -5
- package/dist/dist-CQMZOn-_.js +0 -8
- package/dist/dist-CViQhWZ8.js +0 -5
- package/dist/dist-Cz6rLfwY.js +0 -5
- package/dist/dist-D8eq8st3.js +0 -6
- package/dist/dist-DM1UDXdl.js +0 -5
- package/dist/dist-DNrtWPgS.js +0 -5
- package/dist/dist-V7q2qnpA.js +0 -5
- package/dist/dist-a5_hPgu2.js +0 -8
- package/dist/dist-uVyZcV1-.js +0 -5
- package/dist/dtd-C-t2Rk7F.js +0 -4
- package/dist/dylan-B4ctBLGp.js +0 -4
- package/dist/ecl-DqWfymni.js +0 -4
- package/dist/eiffel-DjBKKAr7.js +0 -4
- package/dist/elm--fxeC0FV.js +0 -4
- package/dist/erlang-CaKXCX6H.js +0 -4
- package/dist/esm-CDHI9cuO.js +0 -2805
- package/dist/factor-DlLO5EFS.js +0 -4
- package/dist/forth-rOO6LVj_.js +0 -4
- package/dist/fortran-CUg15VGR.js +0 -4
- package/dist/gas-BMRJspiW.js +0 -4
- package/dist/gherkin-DRxzijZU.js +0 -4
- package/dist/graphlib-BV1_gi0C.js +0 -226
- package/dist/groovy-BmrQ8pUP.js +0 -4
- package/dist/haskell-BuaYfKOz.js +0 -4
- package/dist/haxe-DcH9eA0a.js +0 -5
- package/dist/idl-DGlcm4Ls.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-OYrX6uO3.js +0 -30
- package/dist/javascript-CeTk7rzr.js +0 -4
- package/dist/julia-BoP_q1gm.js +0 -4
- package/dist/livescript-B7IMN-ba.js +0 -4
- package/dist/lua-q1InavKb.js +0 -4
- package/dist/mathematica-DvR8-_EI.js +0 -4
- package/dist/mbox-7h5MNBS_.js +0 -4
- package/dist/merge-CVhG7q_o.js +0 -51
- package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +0 -6
- package/dist/min-Ds3gG0Ff.js +0 -96
- package/dist/mirc-D-XM8A5c.js +0 -4
- package/dist/mllike-BQGkkbmf.js +0 -6
- package/dist/modelica-D_yRj_WU.js +0 -4
- package/dist/mscgen-B-rltAjp.js +0 -6
- package/dist/mumps-2kh8TU2b.js +0 -4
- package/dist/now-nrrrOr01.js +0 -7
- package/dist/nsis-CtusEqwb.js +0 -4
- package/dist/ntriples-BdAXw6zV.js +0 -4
- package/dist/octave-CsNFmVp5.js +0 -4
- package/dist/oz-odIXCrKd.js +0 -4
- package/dist/pascal-B9Mfk3Fo.js +0 -4
- package/dist/perl-C48inLcz.js +0 -4
- package/dist/pig-uwRtAssU.js +0 -4
- package/dist/powershell-CXqlca-i.js +0 -4
- package/dist/properties-D6Zu1rpK.js +0 -4
- package/dist/protobuf-BlNNWZaR.js +0 -4
- package/dist/pug-DytcK7bv.js +0 -4
- package/dist/puppet-lJ8Ok3iY.js +0 -4
- package/dist/python-cMaF7kUp.js +0 -4
- package/dist/q-Dgt2HYQh.js +0 -4
- package/dist/r-Bm4S4awf.js +0 -4
- package/dist/range-fJeId9Ri.js +0 -30
- package/dist/react-vega-BkjdpVsR.js +0 -9
- package/dist/rpm-_8LbzMVc.js +0 -5
- package/dist/ruby-Cr8IJ5VZ.js +0 -4
- package/dist/sas-CFcSfo2_.js +0 -4
- package/dist/scheme-N4XRoKgc.js +0 -4
- package/dist/shell-B4L7f_ds.js +0 -4
- package/dist/sieve-UI6J3Gm0.js +0 -4
- package/dist/smalltalk-BuaPZAZU.js +0 -4
- package/dist/sparql-1rKrq463.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-BH5ozUbc.js +0 -29
- package/dist/stex-CQDv3aS8.js +0 -4
- package/dist/stylus-DvSovJEP.js +0 -4
- package/dist/swift-D-_E7Yyb.js +0 -4
- package/dist/tcl-Di5sAVHN.js +0 -4
- package/dist/textile-Benwt66z.js +0 -4
- package/dist/toNumber-55tjPCWr.js +0 -28
- package/dist/toml-CeOvPOkY.js +0 -4
- package/dist/troff-DJN9hfgu.js +0 -4
- package/dist/ttcn-DQW2Psjf.js +0 -4
- package/dist/ttcn-cfg-zFG_MNpg.js +0 -4
- package/dist/turtle-DHRyNlSc.js +0 -4
- package/dist/types-pwjdK009.js +0 -202
- package/dist/useDeepCompareMemoize-CsyOnnjc.js +0 -85
- package/dist/vb-CXWH9DD-.js +0 -4
- package/dist/vbscript-qr8qVck5.js +0 -4
- package/dist/velocity-C_9pUJRx.js +0 -4
- package/dist/verilog-DxBstgBa.js +0 -4
- package/dist/vhdl-odUxAbE6.js +0 -4
- package/dist/webidl-Dfn5Rku4.js +0 -4
- package/dist/xquery-CrJs6SXr.js +0 -4
- package/dist/yacas-B-uDDLZe.js +0 -4
- package/dist/z80-51gxgAXE.js +0 -4
- /package/dist/{apl-Oc3bL26_.js → apl-Dt8GMXYg.js} +0 -0
- /package/dist/{array-ByIS7m3B.js → array-B-MVxRIF.js} +0 -0
- /package/dist/{asciiarmor-DTbPh2VI.js → asciiarmor-CitDQ85h.js} +0 -0
- /package/dist/{asn1-CGhwu1Ri.js → asn1-abrf9SMK.js} +0 -0
- /package/dist/{asterisk-BApaB_8m.js → asterisk-BUZwqih-.js} +0 -0
- /package/dist/{brainfuck-CA0L8lRq.js → brainfuck-BL-Boof0.js} +0 -0
- /package/dist/{chunk-DR5Q36YT-C40cYcy5.js → chunk-DR5Q36YT-CP69aZS_.js} +0 -0
- /package/dist/{click-outside-container-D3t6KDni.js → click-outside-container-BZgN7xS_.js} +0 -0
- /package/dist/{clike-CEtUBPHD.js → clike-RWg7anhx.js} +0 -0
- /package/dist/{clojure-BszjvdGo.js → clojure-DaojKHow.js} +0 -0
- /package/dist/{clsx-CwTY0BxM.js → clsx-CyyyQ8Ue.js} +0 -0
- /package/dist/{cmake-B2Gvps8b.js → cmake-DN-_v0XE.js} +0 -0
- /package/dist/{cobol-DuMch8nn.js → cobol-C3VpMyux.js} +0 -0
- /package/dist/{coffeescript-L9aKXVsJ.js → coffeescript-DIkz3Tbt.js} +0 -0
- /package/dist/{colors-IJ-2cn2o.js → colors-Cn2p_FA3.js} +0 -0
- /package/dist/{common-keywords-CsU75Ked.js → common-keywords-hbLeU7VU.js} +0 -0
- /package/dist/{commonlisp-CrtdssxB.js → commonlisp-CB1boOiP.js} +0 -0
- /package/dist/{crystal-vvNY0LpY.js → crystal-DI2oCml6.js} +0 -0
- /package/dist/{css-B1GdzqT1.js → css-BdEVwQDV.js} +0 -0
- /package/dist/{cypher-BtZvV7bW.js → cypher-BNHToqxU.js} +0 -0
- /package/dist/{cytoscape.esm-CRfNlsPy.js → cytoscape.esm-WbbDoCfu.js} +0 -0
- /package/dist/{d-B0UN3V-Z.js → d-D7we7I1b.js} +0 -0
- /package/dist/{defaultLocale-qS7DaAmi.js → defaultLocale-BpsHxBd7.js} +0 -0
- /package/dist/{defaultLocale-Bxoo2-30.js → defaultLocale-DoeErsX2.js} +0 -0
- /package/dist/{diff-DOpgjj1W.js → diff-Cia6fzjN.js} +0 -0
- /package/dist/{dist-BjWd_Ei9.js → dist-C89sHDXk.js} +0 -0
- /package/dist/{dtd-Ctnjxrle.js → dtd-H4Hubdwp.js} +0 -0
- /package/dist/{duckdb-keywords-DjrZdCO2.js → duckdb-keywords-CZ_ZTscu.js} +0 -0
- /package/dist/{dylan-DFXkoaZy.js → dylan-fVO6rnq3.js} +0 -0
- /package/dist/{ebnf-XJCIl_em.js → ebnf-WEXPLEWb.js} +0 -0
- /package/dist/{ecl-C1NExZip.js → ecl-B94VPjNR.js} +0 -0
- /package/dist/{eiffel-uXVGgleg.js → eiffel-C_R6TusS.js} +0 -0
- /package/dist/{elm-CBOFnnib.js → elm-DzCHbO2g.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-CJVjyntJ.js → emotion-is-prop-valid.esm-DtW2o230.js} +0 -0
- /package/dist/{erlang-DMnrT8XK.js → erlang-BGNkx6JU.js} +0 -0
- /package/dist/{esm-D4gzqVRq.js → esm-Bb_hbWan.js} +0 -0
- /package/dist/{fcl-fh4Mj0bc.js → fcl-B_Gv5Jfx.js} +0 -0
- /package/dist/{forth-DDpxS4nw.js → forth-Bybw0cJ7.js} +0 -0
- /package/dist/{fortran-B6uYqQMz.js → fortran-C6PoCLkI.js} +0 -0
- /package/dist/{gas-BKnWzuFz.js → gas-BBlhenj4.js} +0 -0
- /package/dist/{gherkin-pBt0wT4X.js → gherkin-NXtNG85X.js} +0 -0
- /package/dist/{groovy-DKsn4ppB.js → groovy-BoFYK9xM.js} +0 -0
- /package/dist/{haskell-BJVBJQcy.js → haskell-BtBdvQ1n.js} +0 -0
- /package/dist/{haxe-rLN5UZU5.js → haxe-D--o6dr0.js} +0 -0
- /package/dist/{http-CbJFDV7c.js → http-Dc2fv19V.js} +0 -0
- /package/dist/{idl-B4mwMAo-.js → idl-AqTq5l7e.js} +0 -0
- /package/dist/{init-Cge3yl4r.js → init-D-g0ONX1.js} +0 -0
- /package/dist/{invariant-e8eBgdux.js → invariant-UcGKQEhF.js} +0 -0
- /package/dist/{javascript-Hf2NLNC0.js → javascript-DvwNVye9.js} +0 -0
- /package/dist/{jsx-runtime-9hcJiI23.js → jsx-runtime-COBk7ree.js} +0 -0
- /package/dist/{julia-GGpx21YN.js → julia-DoKiagZC.js} +0 -0
- /package/dist/{katex-CQ_cP8Uu.js → katex-B7pMJpE0.js} +0 -0
- /package/dist/{livescript-CSvXMspZ.js → livescript-DxBZMiWB.js} +0 -0
- /package/dist/{lua-CVMR5LMW.js → lua-DmS_0NTu.js} +0 -0
- /package/dist/{main-XimWhSi_.js → main-CThhXnXU.js} +0 -0
- /package/dist/{math-CEWMqgbD.js → math-BYK36kWZ.js} +0 -0
- /package/dist/{mathematica-JENNt-p4.js → mathematica-ChlDFeIC.js} +0 -0
- /package/dist/{mbox-mzifoc8E.js → mbox-CguZuODr.js} +0 -0
- /package/dist/{micromark-factory-space-BHslBP9f.js → micromark-factory-space-CwHmg6iz.js} +0 -0
- /package/dist/{mirc-BXoiItvN.js → mirc-CFtY8dqz.js} +0 -0
- /package/dist/{mllike-H-KR9OuH.js → mllike-C0EJrEOk.js} +0 -0
- /package/dist/{modelica-B6Hm3mMl.js → modelica-C1kO1nfS.js} +0 -0
- /package/dist/{mscgen-D8TF_Hei.js → mscgen-DEYdr7AY.js} +0 -0
- /package/dist/{mumps-CD-kNPt4.js → mumps-B3NVJs2V.js} +0 -0
- /package/dist/{nginx-9EZQIKsh.js → nginx-ComVAAGN.js} +0 -0
- /package/dist/{node-sql-parser-DIe6Cq_-.js → node-sql-parser-DNGGJ-Rw.js} +0 -0
- /package/dist/{ntriples-DgnpxU40.js → ntriples-DHol9X9H.js} +0 -0
- /package/dist/{octave-CkobqyVm.js → octave-CYGz0bfo.js} +0 -0
- /package/dist/{oz-ChDLd9tS.js → oz-kPxb2ni5.js} +0 -0
- /package/dist/{pascal-CvlkwK7E.js → pascal-bZ0yrJKy.js} +0 -0
- /package/dist/{path-B-82hpi8.js → path-Du6n3sOU.js} +0 -0
- /package/dist/{perl-BNEFTNbM.js → perl-z4hvqyqz.js} +0 -0
- /package/dist/{pig-Cd1DMS7P.js → pig-DZO8QDF9.js} +0 -0
- /package/dist/{powershell-CPxA0zpc.js → powershell-BSuaDQEC.js} +0 -0
- /package/dist/{properties-BaFBm-Xa.js → properties-BXhGLlIx.js} +0 -0
- /package/dist/{protobuf-BQV_-X0H.js → protobuf-DM6iybWV.js} +0 -0
- /package/dist/{puppet-LXLST0mx.js → puppet-Bn05sQT8.js} +0 -0
- /package/dist/{python-DLjLzX4k.js → python-Cvnhm0g7.js} +0 -0
- /package/dist/{q-DswTX1Y9.js → q-B9V8hzex.js} +0 -0
- /package/dist/{r-CO7NpMwE.js → r-Cf0gFqmq.js} +0 -0
- /package/dist/{range-BYuZFTbA.js → range-BOiA8qqU.js} +0 -0
- /package/dist/{react-dom-D5FDLRUB.js → react-dom-BWRJ_g_k.js} +0 -0
- /package/dist/{rpm-BlmEDT6r.js → rpm-D-LMkTV1.js} +0 -0
- /package/dist/{ruby-BTPKgeZZ.js → ruby-DeuPikpK.js} +0 -0
- /package/dist/{sas-DTDTiNO8.js → sas-C9tjgAo9.js} +0 -0
- /package/dist/{scheme-UzAAg4GJ.js → scheme-D1_bUF0G.js} +0 -0
- /package/dist/{shell-DQ0hQCsB.js → shell-CJBmnks3.js} +0 -0
- /package/dist/{sieve-BVyYIx9u.js → sieve-1fSV75CF.js} +0 -0
- /package/dist/{simple-mode-Dryu-fC9.js → simple-mode-B90Wdavj.js} +0 -0
- /package/dist/{smalltalk-DAdMAHTu.js → smalltalk-sZNPD0HO.js} +0 -0
- /package/dist/{solr-Bn6k51kO.js → solr-DTkyqJ-Z.js} +0 -0
- /package/dist/{sparql-Bi7quYgw.js → sparql-oHc1nm77.js} +0 -0
- /package/dist/{spreadsheet-UpVklYg7.js → spreadsheet-CER0raqY.js} +0 -0
- /package/dist/{sql-qyORs189.js → sql-ByOoEONQ.js} +0 -0
- /package/dist/{stex-D887Ylhf.js → stex-DrxP7bb3.js} +0 -0
- /package/dist/{stylus-jhpzcQ6Y.js → stylus-KzkX6zRB.js} +0 -0
- /package/dist/{swift-BrO8qThZ.js → swift-DqVxZvKo.js} +0 -0
- /package/dist/{tcl-s5QI5gv3.js → tcl-BtWSwXfA.js} +0 -0
- /package/dist/{textile-ClhvJrxM.js → textile-CWDbn9Ql.js} +0 -0
- /package/dist/{tiddlywiki-CmAAqw9M.js → tiddlywiki-Cr9xyOY1.js} +0 -0
- /package/dist/{tiki-DzCRe_s0.js → tiki-D5JONyfZ.js} +0 -0
- /package/dist/{timer-BPKOAfmx.js → timer-D7JVdX9U.js} +0 -0
- /package/dist/{toml-TFa3EJQE.js → toml-BfehlgmL.js} +0 -0
- /package/dist/{treemap-CmLtUuWe.js → treemap-qFGzn7xk.js} +0 -0
- /package/dist/{troff-SqLg0heF.js → troff-BZBk6AAu.js} +0 -0
- /package/dist/{ttcn-Cfrap7HJ.js → ttcn-DVwvXg0_.js} +0 -0
- /package/dist/{ttcn-cfg-Dopc-iwE.js → ttcn-cfg-gjbVLf1L.js} +0 -0
- /package/dist/{turtle-Dt52DvVH.js → turtle-CgxKXorV.js} +0 -0
- /package/dist/{vb-D1pAvfDe.js → vb-B9kSwTdM.js} +0 -0
- /package/dist/{vbscript-DZ7RBxn5.js → vbscript-DrUKSCdb.js} +0 -0
- /package/dist/{velocity-Csau7eZy.js → velocity-AlMYTnMy.js} +0 -0
- /package/dist/{verilog-gXlZACs5.js → verilog-DLUaM05j.js} +0 -0
- /package/dist/{vhdl-NaUWbI1B.js → vhdl-DUJOtSmO.js} +0 -0
- /package/dist/{webidl-BJmPjW01.js → webidl-CQp4aHk_.js} +0 -0
- /package/dist/{xquery-CJIPsC0g.js → xquery-IxkjlwOD.js} +0 -0
- /package/dist/{yacas-8f2Vjiiz.js → yacas-Bnctn5w8.js} +0 -0
- /package/dist/{z80-s5Xk2hCP.js → z80-DrFwhx53.js} +0 -0
|
@@ -2,19 +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-CA5pI2YF.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 {
|
|
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 "./react-dom-
|
|
13
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-
|
|
14
|
-
import "./zod-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
8
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.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-B_FOH6eV.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-Drx1pguW.js";
|
|
11
|
+
import { i as Pencil, n as Trash, r as Plus, t as BulkEdit } from "./types-DBtDeUKD.js";
|
|
12
|
+
import "./react-dom-BWRJ_g_k.js";
|
|
13
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-COBk7ree.js";
|
|
14
|
+
import "./zod-BxdsqRPd.js";
|
|
15
|
+
import { t as Label } from "./label-BCWi-Oqu.js";
|
|
16
|
+
import { n as useTheme, w as useEvent_default } from "./useTheme-CX9pPLUH.js";
|
|
17
|
+
import { n as require_prop_types, t as ErrorBoundary } from "./ErrorBoundary-Da4UeYxT.js";
|
|
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-BZgN7xS_.js";
|
|
19
|
+
import { t as styled_default } from "./dist-CyFFzJTb.js";
|
|
18
20
|
let GlideDataEditor, glide_data_editor_default;
|
|
19
21
|
let __tla = (async () => {
|
|
20
22
|
const ImageOverlayEditorStyle = styled_default("div")({
|
|
@@ -3169,36 +3171,36 @@ let __tla = (async () => {
|
|
|
3169
3171
|
kind: GridCellKind.Loading,
|
|
3170
3172
|
allowOverlay: false
|
|
3171
3173
|
};
|
|
3172
|
-
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, B,
|
|
3173
|
-
let
|
|
3174
|
-
e.font =
|
|
3175
|
-
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, B, Br, Vr) {
|
|
3175
|
+
let V = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Hr = performance.now(), Ur = I.baseFontFull;
|
|
3176
|
+
e.font = Ur;
|
|
3177
|
+
let Wr = {
|
|
3176
3178
|
ctx: e
|
|
3177
|
-
},
|
|
3179
|
+
}, H = [
|
|
3178
3180
|
0,
|
|
3179
3181
|
0
|
|
3180
|
-
],
|
|
3181
|
-
return walkColumns(t, s, a, o, i, (t2, a2, o2, s2,
|
|
3182
|
-
let
|
|
3182
|
+
], U = x > 0 ? getFreezeTrailingHeight(c, x, l) : 0, Gr, W, G = getSkipPoint(C);
|
|
3183
|
+
return walkColumns(t, s, a, o, i, (t2, a2, o2, s2, K) => {
|
|
3184
|
+
let Kr = Math.max(0, s2 - a2), qr = a2 + Kr, Jr = i + 1, Yr = t2.width - Kr, Xr = r - i - 1;
|
|
3183
3185
|
if (C.length > 0) {
|
|
3184
3186
|
let e2 = false;
|
|
3185
3187
|
for (let t3 = 0; t3 < C.length; t3++) {
|
|
3186
3188
|
let n2 = C[t3];
|
|
3187
|
-
if (intersectRect(
|
|
3189
|
+
if (intersectRect(qr, Jr, Yr, Xr, n2.x, n2.y, n2.width, n2.height)) {
|
|
3188
3190
|
e2 = true;
|
|
3189
3191
|
break;
|
|
3190
3192
|
}
|
|
3191
3193
|
}
|
|
3192
3194
|
if (!e2) return;
|
|
3193
3195
|
}
|
|
3194
|
-
let
|
|
3195
|
-
e.save(), e.beginPath(), e.rect(
|
|
3196
|
-
},
|
|
3197
|
-
|
|
3198
|
-
let
|
|
3199
|
-
return walkRowsInCol(
|
|
3196
|
+
let Zr = () => {
|
|
3197
|
+
e.save(), e.beginPath(), e.rect(qr, Jr, Yr, Xr), e.clip();
|
|
3198
|
+
}, Qr = D.columns.hasIndex(t2.sourceIndex), $r = f(t2.group ?? "").overrideTheme, ei = t2.themeOverride === void 0 && $r === void 0 ? I : mergeAndRealizeTheme(I, $r, t2.themeOverride), ti = ei.baseFontFull;
|
|
3199
|
+
ti !== Ur && (Ur = ti, e.font = ti), Zr();
|
|
3200
|
+
let ni;
|
|
3201
|
+
return walkRowsInCol(K, o2, r, c, l, x, S, G, (i2, o3, l2, f2, x2) => {
|
|
3200
3202
|
var _a, _b, _c;
|
|
3201
|
-
if (o3 < 0 || (
|
|
3203
|
+
if (o3 < 0 || (H[0] = t2.sourceIndex, H[1] = o3, E !== void 0 && !E.has(H))) return;
|
|
3202
3204
|
if (C.length > 0) {
|
|
3203
3205
|
let e2 = false;
|
|
3204
3206
|
for (let n2 = 0; n2 < C.length; n2++) {
|
|
@@ -3210,66 +3212,66 @@ let __tla = (async () => {
|
|
|
3210
3212
|
}
|
|
3211
3213
|
if (!e2) return;
|
|
3212
3214
|
}
|
|
3213
|
-
let S2 = D.rows.hasIndex(o3),
|
|
3214
|
-
if (
|
|
3215
|
-
let [r2, c2] =
|
|
3216
|
-
if (
|
|
3217
|
-
|
|
3215
|
+
let S2 = D.rows.hasIndex(o3), G2 = h.hasIndex(o3), K2 = o3 < c ? u(H) : loadingCell$1, Kr2 = a2, qr2 = t2.width, Jr2 = false, Yr2 = false;
|
|
3216
|
+
if (K2.span !== void 0) {
|
|
3217
|
+
let [r2, c2] = K2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
|
|
3218
|
+
if (W === void 0 && (W = /* @__PURE__ */ new Set()), W.has(u2)) {
|
|
3219
|
+
V--;
|
|
3218
3220
|
return;
|
|
3219
3221
|
} else {
|
|
3220
|
-
let r3 = getSpanBounds(
|
|
3221
|
-
if (!t2.sticky && r3[0] !== void 0 && (
|
|
3222
|
-
|
|
3222
|
+
let r3 = getSpanBounds(K2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
|
|
3223
|
+
if (!t2.sticky && r3[0] !== void 0 && (Yr2 = true), o4 !== void 0) {
|
|
3224
|
+
Kr2 = o4.x, qr2 = o4.width, W.add(u2), e.restore(), ni = void 0, e.save(), e.beginPath();
|
|
3223
3225
|
let t3 = Math.max(0, s2 - o4.x);
|
|
3224
|
-
e.rect(o4.x + t3, i2, o4.width - t3, l2),
|
|
3226
|
+
e.rect(o4.x + t3, i2, o4.width - t3, l2), Gr === void 0 && (Gr = []), Gr.push({
|
|
3225
3227
|
x: o4.x + t3,
|
|
3226
3228
|
y: i2,
|
|
3227
3229
|
width: o4.width - t3,
|
|
3228
3230
|
height: l2
|
|
3229
|
-
}), e.clip(),
|
|
3231
|
+
}), e.clip(), Jr2 = true;
|
|
3230
3232
|
}
|
|
3231
3233
|
}
|
|
3232
3234
|
}
|
|
3233
|
-
let
|
|
3235
|
+
let Xr2 = m == null ? void 0 : m(o3), $r2 = x2 && ((_a = t2.trailingRowOptions) == null ? void 0 : _a.themeOverride) !== void 0 ? (_b = t2.trailingRowOptions) == null ? void 0 : _b.themeOverride : void 0, q = K2.themeOverride === void 0 && Xr2 === void 0 && $r2 === void 0 ? ei : mergeAndRealizeTheme(ei, Xr2, $r2, K2.themeOverride);
|
|
3234
3236
|
e.beginPath();
|
|
3235
|
-
let
|
|
3236
|
-
|
|
3237
|
-
let
|
|
3238
|
-
if ((f2 ||
|
|
3239
|
-
|
|
3240
|
-
for (let e2 = 0; e2 <
|
|
3237
|
+
let ri = cellIsSelected(H, K2, D), J = cellIsInRange(H, K2, D, y), ii = K2.span !== void 0 && D.columns.some((e2) => K2.span !== void 0 && e2 >= K2.span[0] && e2 <= K2.span[1]);
|
|
3238
|
+
ri && !g && y ? J = 0 : ri && y && (J = Math.max(J, 1)), ii && J++, ri || (S2 && J++, Qr && !x2 && J++);
|
|
3239
|
+
let ai = K2.kind === GridCellKind.Protected ? q.bgCellMedium : q.bgCell, si;
|
|
3240
|
+
if ((f2 || ai !== I.bgCell) && (si = blend(ai, si)), J > 0 || G2) {
|
|
3241
|
+
G2 && (si = blend(q.bgHeader, si));
|
|
3242
|
+
for (let e2 = 0; e2 < J; e2++) si = blend(q.accentLight, si);
|
|
3241
3243
|
} else if (O !== void 0) {
|
|
3242
3244
|
for (let e2 of O) if (e2[0] === t2.sourceIndex && e2[1] === o3) {
|
|
3243
|
-
|
|
3245
|
+
si = blend(q.bgSearchResult, si);
|
|
3244
3246
|
break;
|
|
3245
3247
|
}
|
|
3246
3248
|
}
|
|
3247
3249
|
if (k !== void 0) for (let e2 = 0; e2 < k.length; e2++) {
|
|
3248
3250
|
let n2 = k[e2], r2 = n2.range;
|
|
3249
|
-
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 && (si = blend(n2.color, si));
|
|
3250
3252
|
}
|
|
3251
|
-
let
|
|
3253
|
+
let ci = false;
|
|
3252
3254
|
if (E !== void 0) {
|
|
3253
|
-
let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r -
|
|
3254
|
-
(n2 !== l2 - 1 ||
|
|
3255
|
+
let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r - U)) - t3;
|
|
3256
|
+
(n2 !== l2 - 1 || Kr2 + 1 <= s2) && (ci = true, e.save(), e.beginPath(), e.rect(Kr2 + 1, t3, qr2 - 1, n2), e.clip()), si = si === void 0 ? q.bgCell : blend(si, q.bgCell);
|
|
3255
3257
|
}
|
|
3256
|
-
let
|
|
3257
|
-
|
|
3258
|
-
let
|
|
3258
|
+
let li = t2.sourceIndex === n.length - 1, di = o3 === c - 1;
|
|
3259
|
+
si !== void 0 && (e.fillStyle = si, ni !== void 0 && (ni.fillStyle = si), E === void 0 ? e.fillRect(Kr2, i2, qr2, l2) : e.fillRect(Kr2 + 1, i2 + 1, qr2 - (li ? 2 : 1), l2 - (di ? 2 : 1))), K2.style === "faded" && (e.globalAlpha = 0.6);
|
|
3260
|
+
let Y;
|
|
3259
3261
|
for (let e2 = 0; e2 < M.length; e2++) {
|
|
3260
3262
|
let n2 = M[e2];
|
|
3261
3263
|
if (n2.item[0] === t2.sourceIndex && n2.item[1] === o3) {
|
|
3262
|
-
|
|
3264
|
+
Y = n2;
|
|
3263
3265
|
break;
|
|
3264
3266
|
}
|
|
3265
3267
|
}
|
|
3266
|
-
if (
|
|
3267
|
-
let n2 =
|
|
3268
|
-
n2 !==
|
|
3268
|
+
if (qr2 > Vr && !Yr2) {
|
|
3269
|
+
let n2 = q.baseFontFull;
|
|
3270
|
+
n2 !== Ur && (e.font = n2, Ur = n2), ni = drawCell(e, K2, t2.sourceIndex, o3, li, di, Kr2, i2, qr2, l2, J > 0, q, si ?? q.bgCell, A, j, (Y == null ? void 0 : Y.hoverAmount) ?? 0, N, F, Hr, P, ni, L, zr, B, Br);
|
|
3269
3271
|
}
|
|
3270
|
-
return
|
|
3271
|
-
}), e.restore(),
|
|
3272
|
-
}),
|
|
3272
|
+
return ci && e.restore(), K2.style === "faded" && (e.globalAlpha = 1), V--, Jr2 && (e.restore(), (_c = ni == null ? void 0 : ni.deprep) == null ? void 0 : _c.call(ni, Wr), ni = void 0, Zr(), Ur = ti, e.font = ti), V <= 0;
|
|
3273
|
+
}), e.restore(), V <= 0;
|
|
3274
|
+
}), Gr;
|
|
3273
3275
|
}
|
|
3274
3276
|
var allocatedItem = [
|
|
3275
3277
|
0,
|
|
@@ -4403,34 +4405,34 @@ let __tla = (async () => {
|
|
|
4403
4405
|
}
|
|
4404
4406
|
function drawGrid(e, t) {
|
|
4405
4407
|
var _a;
|
|
4406
|
-
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: B, drawCellCallback:
|
|
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: B, drawCellCallback: Br, highlightRegions: Vr, resizeCol: V, imageLoader: Hr, lastBlitData: Ur, hoverValues: Wr, hyperWrapping: H, hoverInfo: U, spriteManager: Gr, maxScaleFactor: W, hasAppendRow: G, touchMode: Kr, enqueue: qr, renderStateProvider: Jr, getCellRenderer: Yr, renderStrategy: Xr, bufferACtx: Zr, bufferBCtx: Qr, damage: $r, minimumCellWidth: ei, resizeIndicator: ti } = e;
|
|
4407
4409
|
if (i === 0 || a === 0) return;
|
|
4408
|
-
let
|
|
4409
|
-
(
|
|
4410
|
-
let
|
|
4411
|
-
(
|
|
4412
|
-
let
|
|
4413
|
-
|
|
4414
|
-
let
|
|
4415
|
-
if (
|
|
4416
|
-
let
|
|
4417
|
-
|
|
4418
|
-
let
|
|
4419
|
-
|
|
4420
|
-
let fi =
|
|
4421
|
-
|
|
4410
|
+
let ni = Xr === "double-buffer", q = Math.min(W, Math.ceil(window.devicePixelRatio ?? 1)), ri = Xr !== "direct" && computeCanBlit(e, t), J = n.canvas;
|
|
4411
|
+
(J.width !== i * q || J.height !== a * q) && (J.width = i * q, J.height = a * q, J.style.width = i + "px", J.style.height = a + "px");
|
|
4412
|
+
let ii = r.canvas, ai = f ? S + x : x, oi = ai + 1;
|
|
4413
|
+
(ii.width !== i * q || ii.height !== oi * q) && (ii.width = i * q, ii.height = oi * q, ii.style.width = i + "px", ii.style.height = oi + "px");
|
|
4414
|
+
let si = Zr.canvas, ci = Qr.canvas;
|
|
4415
|
+
ni && (si.width !== i * q || si.height !== a * q) && (si.width = i * q, si.height = a * q, Ur.current !== void 0 && (Ur.current.aBufferScroll = void 0)), ni && (ci.width !== i * q || ci.height !== a * q) && (ci.width = i * q, ci.height = a * q, Ur.current !== void 0 && (Ur.current.bBufferScroll = void 0));
|
|
4416
|
+
let li = Ur.current;
|
|
4417
|
+
if (ri === true && o === (li == null ? void 0 : li.cellXOffset) && s === (li == null ? void 0 : li.cellYOffset) && c === (li == null ? void 0 : li.translateX) && l === (li == null ? void 0 : li.translateY)) return;
|
|
4418
|
+
let ui = null;
|
|
4419
|
+
ni && (ui = n);
|
|
4420
|
+
let di = r, Y;
|
|
4421
|
+
Y = ni ? $r === void 0 ? (li == null ? void 0 : li.lastBuffer) === "b" ? Zr : Qr : (li == null ? void 0 : li.lastBuffer) === "b" ? Qr : Zr : n;
|
|
4422
|
+
let fi = Y.canvas, pi = ni ? fi === si ? ci : si : J, mi = typeof E == "number" ? () => E : E;
|
|
4423
|
+
di.save(), Y.save(), di.beginPath(), Y.beginPath(), di.textBaseline = "middle", Y.textBaseline = "middle", q !== 1 && (di.scale(q, q), Y.scale(q, q));
|
|
4422
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;
|
|
4423
|
-
if (
|
|
4424
|
-
for (let e2 of
|
|
4425
|
+
if (Vr !== void 0) {
|
|
4426
|
+
for (let e2 of Vr) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
|
|
4425
4427
|
vi = true;
|
|
4426
4428
|
break;
|
|
4427
4429
|
}
|
|
4428
4430
|
}
|
|
4429
4431
|
let yi = () => {
|
|
4430
|
-
drawGridHeaders(
|
|
4432
|
+
drawGridHeaders(di, X, f, U, i, c, x, S, h, k, A, g, Gr, Wr, D, F, $r, zr, Kr), drawGridLines(di, X, s, c, l, i, a, void 0, void 0, S, ai, mi, I, D, M, N, g, true), di.beginPath(), di.moveTo(0, oi - 0.5), di.lineTo(i, oi - 0.5), di.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), di.stroke(), vi && drawHighlightRings(di, i, a, o, s, c, l, u, m, x, S, E, M, N, Vr, g), gi && drawFillHandle(di, i, a, s, c, l, X, u, g, ai, A, mi, P, M, G, j, N);
|
|
4431
4433
|
};
|
|
4432
|
-
if (
|
|
4433
|
-
let e2 = X[X.length - 1].sourceIndex + 1, t2 =
|
|
4434
|
+
if ($r !== void 0) {
|
|
4435
|
+
let e2 = X[X.length - 1].sourceIndex + 1, t2 = $r.hasItemInRegion([
|
|
4434
4436
|
{
|
|
4435
4437
|
x: o,
|
|
4436
4438
|
y: -2,
|
|
@@ -4463,29 +4465,29 @@ let __tla = (async () => {
|
|
|
4463
4465
|
when: M > 0
|
|
4464
4466
|
}
|
|
4465
4467
|
]), n2 = (e3) => {
|
|
4466
|
-
drawCells(e3, X, u, a,
|
|
4468
|
+
drawCells(e3, X, u, a, ai, c, l, s, N, mi, P, F, I, C, L, y, M, G, hi, $r, A, B, Vr, Hr, Gr, Wr, U, Br, H, g, qr, Jr, Yr, O, ei);
|
|
4467
4469
|
let t3 = A.current;
|
|
4468
|
-
j && y && t3 !== void 0 &&
|
|
4470
|
+
j && y && t3 !== void 0 && $r.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, X, u, g, ai, A, mi, P, M, G, j, N);
|
|
4469
4471
|
};
|
|
4470
|
-
t2 && (n2(
|
|
4472
|
+
t2 && (n2(Y), ui !== null && (ui.save(), ui.scale(q, q), ui.textBaseline = "middle", n2(ui), ui.restore()), $r.hasHeader() && (clipHeaderDamage(di, X, i, S, ai, c, l, s, $r), yi())), Y.restore(), di.restore();
|
|
4471
4473
|
return;
|
|
4472
4474
|
}
|
|
4473
|
-
if ((
|
|
4474
|
-
assert(pi !== void 0 &&
|
|
4475
|
-
let { regions: e2 } = blitLastFrame(
|
|
4475
|
+
if ((ri !== true || o !== (li == null ? void 0 : li.cellXOffset) || c !== (li == null ? void 0 : li.translateX) || gi !== (li == null ? void 0 : li.mustDrawFocusOnHeader) || vi !== (li == null ? void 0 : li.mustDrawHighlightRingsOnHeader)) && yi(), ri === true) {
|
|
4476
|
+
assert(pi !== void 0 && li !== void 0);
|
|
4477
|
+
let { regions: e2 } = blitLastFrame(Y, pi, pi === si ? li.aBufferScroll : li.bBufferScroll, pi === si ? li.bBufferScroll : li.aBufferScroll, li, o, s, c, l, M, i, a, N, ai, q, u, X, E, ni);
|
|
4476
4478
|
hi = e2;
|
|
4477
|
-
} else
|
|
4478
|
-
overdrawStickyBoundaries(
|
|
4479
|
-
let bi = drawHighlightRings(
|
|
4480
|
-
if (
|
|
4481
|
-
|
|
4482
|
-
for (let e2 of hi)
|
|
4483
|
-
|
|
4484
|
-
} else
|
|
4485
|
-
let Si = drawCells(
|
|
4486
|
-
drawBlanks(
|
|
4487
|
-
let Ci = getLastRow(X, a,
|
|
4488
|
-
|
|
4479
|
+
} else ri !== false && (assert(li !== void 0), hi = blitResizedCol(li, o, s, c, l, i, a, ai, X, ri));
|
|
4480
|
+
overdrawStickyBoundaries(Y, X, i, a, M, N, D, mi, g);
|
|
4481
|
+
let bi = drawHighlightRings(Y, i, a, o, s, c, l, u, m, x, S, E, M, N, Vr, g), xi = y ? drawFillHandle(Y, i, a, s, c, l, X, u, g, ai, A, mi, P, M, G, j, N) : void 0;
|
|
4482
|
+
if (Y.fillStyle = g.bgCell, hi.length > 0) {
|
|
4483
|
+
Y.beginPath();
|
|
4484
|
+
for (let e2 of hi) Y.rect(e2.x, e2.y, e2.width, e2.height);
|
|
4485
|
+
Y.clip(), Y.fill(), Y.beginPath();
|
|
4486
|
+
} else Y.fillRect(0, 0, i, a);
|
|
4487
|
+
let Si = drawCells(Y, X, u, a, ai, c, l, s, N, mi, P, F, I, C, L, y, M, G, hi, $r, A, B, Vr, Hr, Gr, Wr, U, Br, H, g, qr, Jr, Yr, O, ei);
|
|
4488
|
+
drawBlanks(Y, X, u, i, a, ai, c, l, s, N, mi, I, A.rows, C, M, G, hi, $r, g), drawExtraRowThemes(Y, X, s, c, l, i, a, hi, ai, mi, I, D, M, N, g), drawGridLines(Y, X, s, c, l, i, a, hi, Si, S, ai, mi, I, D, M, N, g), bi == null ? void 0 : bi(), xi == null ? void 0 : xi(), k && ti !== "none" && walkColumns(X, 0, c, 0, ai, (e2, t2) => e2.sourceIndex === V ? (drawColumnResizeOutline(di, t2 + e2.width, 0, ai + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), ti === "full" && drawColumnResizeOutline(Y, t2 + e2.width, ai, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), ui !== null && (ui.fillStyle = g.bgCell, ui.fillRect(0, 0, i, a), ui.drawImage(Y.canvas, 0, 0));
|
|
4489
|
+
let Ci = getLastRow(X, a, ai, c, l, s, N, mi, M, G);
|
|
4490
|
+
Hr == null ? void 0 : Hr.setWindow({
|
|
4489
4491
|
x: o,
|
|
4490
4492
|
y: s,
|
|
4491
4493
|
width: X.length,
|
|
@@ -4493,24 +4495,24 @@ let __tla = (async () => {
|
|
|
4493
4495
|
}, m, Array.from({
|
|
4494
4496
|
length: M
|
|
4495
4497
|
}, (e2, t2) => N - 1 - t2));
|
|
4496
|
-
let wi =
|
|
4497
|
-
|
|
4498
|
+
let wi = li !== void 0 && (o !== li.cellXOffset || c !== li.translateX), Ti = li !== void 0 && (s !== li.cellYOffset || l !== li.translateY);
|
|
4499
|
+
Ur.current = {
|
|
4498
4500
|
cellXOffset: o,
|
|
4499
4501
|
cellYOffset: s,
|
|
4500
4502
|
translateX: c,
|
|
4501
4503
|
translateY: l,
|
|
4502
4504
|
mustDrawFocusOnHeader: gi,
|
|
4503
4505
|
mustDrawHighlightRingsOnHeader: vi,
|
|
4504
|
-
lastBuffer:
|
|
4505
|
-
aBufferScroll: fi ===
|
|
4506
|
+
lastBuffer: ni ? fi === si ? "a" : "b" : void 0,
|
|
4507
|
+
aBufferScroll: fi === si ? [
|
|
4506
4508
|
wi,
|
|
4507
4509
|
Ti
|
|
4508
|
-
] :
|
|
4509
|
-
bBufferScroll: fi ===
|
|
4510
|
+
] : li == null ? void 0 : li.aBufferScroll,
|
|
4511
|
+
bBufferScroll: fi === ci ? [
|
|
4510
4512
|
wi,
|
|
4511
4513
|
Ti
|
|
4512
|
-
] :
|
|
4513
|
-
},
|
|
4514
|
+
] : li == null ? void 0 : li.bBufferScroll
|
|
4515
|
+
}, Y.restore(), di.restore();
|
|
4514
4516
|
}
|
|
4515
4517
|
var import_clamp$3 = __toESM(require_clamp(), 1), hoverTime = 80;
|
|
4516
4518
|
function easeOutCubic(e) {
|
|
@@ -4608,12 +4610,12 @@ let __tla = (async () => {
|
|
|
4608
4610
|
var _a;
|
|
4609
4611
|
return e.kind === GridCellKind.Custom ? e.copyData : ((_a = t == null ? void 0 : t(e)) == null ? void 0 : _a.getAccessibilityString(e)) ?? "";
|
|
4610
4612
|
}, data_grid_default = import_react.memo(import_react.forwardRef((e, t) => {
|
|
4611
|
-
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: B, onItemHovered:
|
|
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: B, onItemHovered: Br, dragAndDropState: Vr, firstColAccessible: V, onKeyDown: Hr, onKeyUp: Ur, highlightRegions: Wr, canvasRef: H, onDragStart: U, onDragEnd: Gr, eventTargetRef: W, isResizing: G, resizeColumn: Kr, isDragging: qr, isDraggable: Jr = false, allowResize: Yr, disabledRows: Xr, hasAppendRow: Zr, getGroupDetails: Qr, theme: $r, prelightCells: ei, headerIcons: ti, verticalBorder: ni, drawCell: q, drawHeader: ri, onCellFocused: J, onDragOverCell: ii, onDrop: ai, onDragLeave: oi, imageWindowLoader: ci, 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 = ci, 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);
|
|
4612
4614
|
Ri.current = Ii;
|
|
4613
|
-
let zi = import_react.useMemo(() => new SpriteManager(
|
|
4615
|
+
let zi = import_react.useMemo(() => new SpriteManager(ti, () => {
|
|
4614
4616
|
na.current = void 0, sa.current();
|
|
4615
4617
|
}), [
|
|
4616
|
-
|
|
4618
|
+
ti
|
|
4617
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;
|
|
4618
4620
|
import_react.useLayoutEffect(() => {
|
|
4619
4621
|
window.devicePixelRatio === 1 || !Hi && !Ui || (Vi.current !== -1 && Ei(true), window.clearTimeout(Vi.current), Vi.current = window.setTimeout(() => {
|
|
@@ -4627,7 +4629,7 @@ let __tla = (async () => {
|
|
|
4627
4629
|
Hi,
|
|
4628
4630
|
Ui
|
|
4629
4631
|
]);
|
|
4630
|
-
let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi,
|
|
4632
|
+
let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi, Vr) : 0, Ki = import_react.useCallback((e2, t2, i2) => {
|
|
4631
4633
|
let a2 = e2.getBoundingClientRect();
|
|
4632
4634
|
if (t2 >= Wi.length || i2 >= m) return;
|
|
4633
4635
|
let o2 = a2.width / n, c2 = computeBounds(t2, i2, n, r, u, Bi, vi, s, gi, _i, m, A, M, Wi, f);
|
|
@@ -4819,33 +4821,33 @@ let __tla = (async () => {
|
|
|
4819
4821
|
mappedColumns: Wi,
|
|
4820
4822
|
enableGroups: S,
|
|
4821
4823
|
freezeColumns: A,
|
|
4822
|
-
dragAndDropState:
|
|
4823
|
-
theme:
|
|
4824
|
+
dragAndDropState: Vr,
|
|
4825
|
+
theme: $r,
|
|
4824
4826
|
headerHeight: c,
|
|
4825
4827
|
groupHeaderHeight: u,
|
|
4826
|
-
disabledRows:
|
|
4828
|
+
disabledRows: Xr ?? CompactSelection.empty(),
|
|
4827
4829
|
rowHeight: f,
|
|
4828
|
-
verticalBorder:
|
|
4829
|
-
isResizing:
|
|
4830
|
-
resizeCol:
|
|
4830
|
+
verticalBorder: ni,
|
|
4831
|
+
isResizing: G,
|
|
4832
|
+
resizeCol: Kr,
|
|
4831
4833
|
isFocused: O,
|
|
4832
4834
|
selection: k,
|
|
4833
4835
|
fillHandle: l,
|
|
4834
|
-
drawCellCallback:
|
|
4835
|
-
hasAppendRow:
|
|
4836
|
+
drawCellCallback: q,
|
|
4837
|
+
hasAppendRow: Zr,
|
|
4836
4838
|
overrideCursor: a2,
|
|
4837
4839
|
maxScaleFactor: ea,
|
|
4838
4840
|
freezeTrailingRows: M,
|
|
4839
4841
|
rows: m,
|
|
4840
4842
|
drawFocus: F,
|
|
4841
4843
|
getCellContent: h,
|
|
4842
|
-
getGroupDetails:
|
|
4844
|
+
getGroupDetails: Qr ?? ((e3) => ({
|
|
4843
4845
|
name: e3
|
|
4844
4846
|
})),
|
|
4845
4847
|
getRowThemeOverride: g,
|
|
4846
|
-
drawHeaderCallback:
|
|
4847
|
-
prelightCells:
|
|
4848
|
-
highlightRegions:
|
|
4848
|
+
drawHeaderCallback: ri,
|
|
4849
|
+
prelightCells: ei,
|
|
4850
|
+
highlightRegions: Wr,
|
|
4849
4851
|
imageLoader: Si,
|
|
4850
4852
|
lastBlitData: Oi,
|
|
4851
4853
|
damage: Ci.current,
|
|
@@ -4875,16 +4877,16 @@ let __tla = (async () => {
|
|
|
4875
4877
|
Wi,
|
|
4876
4878
|
S,
|
|
4877
4879
|
A,
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
+
Vr,
|
|
4881
|
+
$r,
|
|
4880
4882
|
c,
|
|
4881
4883
|
u,
|
|
4882
|
-
Yr,
|
|
4883
|
-
f,
|
|
4884
|
-
ti,
|
|
4885
|
-
K,
|
|
4886
4884
|
Xr,
|
|
4887
|
-
|
|
4885
|
+
f,
|
|
4886
|
+
ni,
|
|
4887
|
+
G,
|
|
4888
|
+
Zr,
|
|
4889
|
+
Kr,
|
|
4888
4890
|
O,
|
|
4889
4891
|
k,
|
|
4890
4892
|
l,
|
|
@@ -4893,12 +4895,12 @@ let __tla = (async () => {
|
|
|
4893
4895
|
F,
|
|
4894
4896
|
ea,
|
|
4895
4897
|
h,
|
|
4896
|
-
|
|
4898
|
+
Qr,
|
|
4897
4899
|
g,
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4900
|
+
q,
|
|
4901
|
+
ri,
|
|
4902
|
+
ei,
|
|
4903
|
+
Wr,
|
|
4902
4904
|
Si,
|
|
4903
4905
|
zi,
|
|
4904
4906
|
Ti,
|
|
@@ -4938,29 +4940,29 @@ let __tla = (async () => {
|
|
|
4938
4940
|
], true);
|
|
4939
4941
|
_a = e2.kind === InnerGridCellKind.NewRow || e2.kind === InnerGridCellKind.Marker && e2.markerKind !== "number", va = e2.kind === GridCellKind.Boolean && booleanCellIsEditable(e2), ya = e2.cursor;
|
|
4940
4942
|
}
|
|
4941
|
-
let ba =
|
|
4943
|
+
let ba = qr ? "grabbing" : (ji ?? false) || G ? "col-resize" : da || C ? "crosshair" : ya === void 0 ? ha || _a || va || ga ? "pointer" : "default" : ya, xa = import_react.useMemo(() => ({
|
|
4942
4944
|
contain: "strict",
|
|
4943
4945
|
display: "block",
|
|
4944
4946
|
cursor: ba
|
|
4945
4947
|
}), [
|
|
4946
4948
|
ba
|
|
4947
|
-
]), Sa = import_react.useRef("default"), Ca =
|
|
4949
|
+
]), Sa = import_react.useRef("default"), Ca = W == null ? void 0 : W.current;
|
|
4948
4950
|
Ca != null && Sa.current !== xa.cursor && (Ca.style.cursor = Sa.current = xa.cursor);
|
|
4949
4951
|
let wa = import_react.useCallback((e2, t2, n2, r2) => {
|
|
4950
|
-
if (
|
|
4951
|
-
let i2 =
|
|
4952
|
+
if (Qr === void 0) return;
|
|
4953
|
+
let i2 = Qr(e2);
|
|
4952
4954
|
if (i2.actions !== void 0) {
|
|
4953
4955
|
let e3 = getActionBoundsForGroup(t2, i2.actions);
|
|
4954
4956
|
for (let [a2, o2] of e3.entries()) if (pointInRect(o2, n2 + t2.x, r2 + o2.y)) return i2.actions[a2];
|
|
4955
4957
|
}
|
|
4956
4958
|
}, [
|
|
4957
|
-
|
|
4959
|
+
Qr
|
|
4958
4960
|
]), Ta = import_react.useCallback((e2, t2, n2, r2) => {
|
|
4959
4961
|
let i2 = Wi[t2];
|
|
4960
|
-
if (!
|
|
4962
|
+
if (!qr && !G && !(ji ?? false)) {
|
|
4961
4963
|
let a2 = Ki(e2, t2, -1);
|
|
4962
4964
|
assert(a2 !== void 0);
|
|
4963
|
-
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, $r, direction(i2.title) === "rtl");
|
|
4964
4966
|
if (i2.hasMenu === true && o2.menuBounds !== void 0 && pointInRect(o2.menuBounds, n2, r2)) return {
|
|
4965
4967
|
area: "menu",
|
|
4966
4968
|
bounds: o2.menuBounds
|
|
@@ -4974,11 +4976,11 @@ let __tla = (async () => {
|
|
|
4974
4976
|
Wi,
|
|
4975
4977
|
Ki,
|
|
4976
4978
|
ji,
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4979
|
+
qr,
|
|
4980
|
+
G,
|
|
4981
|
+
$r
|
|
4980
4982
|
]), Ea = import_react.useRef(0), Da = import_react.useRef(), Oa = import_react.useRef(false), ka = import_react.useCallback((e2) => {
|
|
4981
|
-
let t2 = yi.current, n2 =
|
|
4983
|
+
let t2 = yi.current, n2 = W == null ? void 0 : W.current;
|
|
4982
4984
|
if (t2 === null || e2.target !== t2 && e2.target !== n2) return;
|
|
4983
4985
|
Oa.current = true;
|
|
4984
4986
|
let r2, i2;
|
|
@@ -4987,10 +4989,10 @@ let __tla = (async () => {
|
|
|
4987
4989
|
if (r2 > e3.right || i2 > e3.bottom) return;
|
|
4988
4990
|
}
|
|
4989
4991
|
let a2 = qi(t2, r2, i2, e2);
|
|
4990
|
-
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 && Jr !== true && Jr !== a2.kind && a2.button < 3 && a2.button !== 1 && e2.preventDefault()));
|
|
4991
4993
|
}, [
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
+
W,
|
|
4995
|
+
Jr,
|
|
4994
4996
|
qi,
|
|
4995
4997
|
wa,
|
|
4996
4998
|
Ta,
|
|
@@ -5003,7 +5005,7 @@ let __tla = (async () => {
|
|
|
5003
5005
|
Aa.current = Date.now();
|
|
5004
5006
|
let n2 = yi.current;
|
|
5005
5007
|
if (Oa.current = false, L === void 0 || n2 === null) return;
|
|
5006
|
-
let r2 =
|
|
5008
|
+
let r2 = W == null ? void 0 : W.current, i2 = e2.target !== n2 && e2.target !== r2, a2, o2, s2 = true;
|
|
5007
5009
|
if (e2 instanceof MouseEvent) {
|
|
5008
5010
|
if (a2 = e2.clientX, o2 = e2.clientY, s2 = e2.button < 3, e2.pointerType === "touch") return;
|
|
5009
5011
|
} else a2 = e2.changedTouches[0].clientX, o2 = e2.changedTouches[0].clientY;
|
|
@@ -5029,7 +5031,7 @@ let __tla = (async () => {
|
|
|
5029
5031
|
L(c2, i2);
|
|
5030
5032
|
}, [
|
|
5031
5033
|
L,
|
|
5032
|
-
|
|
5034
|
+
W,
|
|
5033
5035
|
qi,
|
|
5034
5036
|
Ta,
|
|
5035
5037
|
wa
|
|
@@ -5038,7 +5040,7 @@ let __tla = (async () => {
|
|
|
5038
5040
|
var _a2, _b;
|
|
5039
5041
|
let t2 = yi.current;
|
|
5040
5042
|
if (t2 === null) return;
|
|
5041
|
-
let n2 =
|
|
5043
|
+
let n2 = W == null ? void 0 : W.current, r2 = e2.target !== t2 && e2.target !== n2, i2, a2, o2 = true;
|
|
5042
5044
|
e2 instanceof MouseEvent ? (i2 = e2.clientX, a2 = e2.clientY, o2 = e2.button < 3) : (i2 = e2.changedTouches[0].clientX, a2 = e2.changedTouches[0].clientY);
|
|
5043
5045
|
let s2 = qi(t2, i2, a2, e2);
|
|
5044
5046
|
Ri.current !== s2.isTouch && Li(s2.isTouch), !r2 && e2.cancelable && o2 && e2.preventDefault();
|
|
@@ -5051,22 +5053,22 @@ let __tla = (async () => {
|
|
|
5051
5053
|
e3 !== void 0 && s2.button === 0 && e3.onClick(s2);
|
|
5052
5054
|
}
|
|
5053
5055
|
}, [
|
|
5054
|
-
|
|
5056
|
+
W,
|
|
5055
5057
|
qi,
|
|
5056
5058
|
Ta,
|
|
5057
5059
|
y,
|
|
5058
5060
|
x,
|
|
5059
5061
|
wa
|
|
5060
5062
|
]), xi, false), useEventListener("contextmenu", import_react.useCallback((e2) => {
|
|
5061
|
-
let t2 = yi.current, n2 =
|
|
5063
|
+
let t2 = yi.current, n2 = W == null ? void 0 : W.current;
|
|
5062
5064
|
t2 === null || e2.target !== t2 && e2.target !== n2 || j === void 0 || j(qi(t2, e2.clientX, e2.clientY, e2), () => {
|
|
5063
5065
|
e2.cancelable && e2.preventDefault();
|
|
5064
5066
|
});
|
|
5065
5067
|
}, [
|
|
5066
|
-
|
|
5068
|
+
W,
|
|
5067
5069
|
qi,
|
|
5068
5070
|
j
|
|
5069
|
-
]), (
|
|
5071
|
+
]), (W == null ? void 0 : W.current) ?? null, false);
|
|
5070
5072
|
let Na = import_react.useCallback((e2) => {
|
|
5071
5073
|
Ci.current = new CellSet(e2.map((e3) => e3.item)), Di.current = e2, sa.current(), Ci.current = void 0;
|
|
5072
5074
|
}, []), Pa = import_react.useMemo(() => new AnimationManager(Na), [
|
|
@@ -5090,12 +5092,12 @@ let __tla = (async () => {
|
|
|
5090
5092
|
var _a2;
|
|
5091
5093
|
let t2 = yi.current;
|
|
5092
5094
|
if (t2 === null) return;
|
|
5093
|
-
let n2 =
|
|
5095
|
+
let n2 = W == null ? void 0 : W.current, r2 = e2.target !== t2 && e2.target !== n2, i2 = qi(t2, e2.clientX, e2.clientY, e2);
|
|
5094
5096
|
if (i2.kind !== "out-of-bounds" && r2 && !Oa.current && !i2.isTouch) return;
|
|
5095
5097
|
let a2 = (e3, t3) => {
|
|
5096
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);
|
|
5097
5099
|
};
|
|
5098
|
-
if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0),
|
|
5100
|
+
if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0), Br == null ? void 0 : Br(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
|
|
5099
5101
|
i2.location,
|
|
5100
5102
|
[
|
|
5101
5103
|
i2.localEventX,
|
|
@@ -5119,16 +5121,16 @@ let __tla = (async () => {
|
|
|
5119
5121
|
i2.location
|
|
5120
5122
|
]));
|
|
5121
5123
|
}
|
|
5122
|
-
let o2 = i2.location[0] >= (
|
|
5123
|
-
Mi(i2.kind === "header" && i2.isEdge && o2 &&
|
|
5124
|
+
let o2 = i2.location[0] >= (V ? 0 : 1);
|
|
5125
|
+
Mi(i2.kind === "header" && i2.isEdge && o2 && Yr === true), fa(i2.kind === "cell" && i2.isFillHandle), zr == null ? void 0 : zr(e2), B(i2);
|
|
5124
5126
|
}, [
|
|
5125
|
-
|
|
5127
|
+
W,
|
|
5126
5128
|
qi,
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
+
V,
|
|
5130
|
+
Yr,
|
|
5129
5131
|
zr,
|
|
5130
5132
|
B,
|
|
5131
|
-
|
|
5133
|
+
Br,
|
|
5132
5134
|
h,
|
|
5133
5135
|
X,
|
|
5134
5136
|
la
|
|
@@ -5137,7 +5139,7 @@ let __tla = (async () => {
|
|
|
5137
5139
|
let t2 = yi.current;
|
|
5138
5140
|
if (t2 === null) return;
|
|
5139
5141
|
let n2, r2;
|
|
5140
|
-
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), Hr == null ? void 0 : Hr({
|
|
5141
5143
|
bounds: n2,
|
|
5142
5144
|
stopPropagation: () => e2.stopPropagation(),
|
|
5143
5145
|
preventDefault: () => e2.preventDefault(),
|
|
@@ -5152,14 +5154,14 @@ let __tla = (async () => {
|
|
|
5152
5154
|
location: r2
|
|
5153
5155
|
});
|
|
5154
5156
|
}, [
|
|
5155
|
-
|
|
5157
|
+
Hr,
|
|
5156
5158
|
k,
|
|
5157
5159
|
Ki
|
|
5158
5160
|
]), za = import_react.useCallback((e2) => {
|
|
5159
5161
|
let t2 = yi.current;
|
|
5160
5162
|
if (t2 === null) return;
|
|
5161
5163
|
let n2, r2;
|
|
5162
|
-
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), Ur == null ? void 0 : Ur({
|
|
5163
5165
|
bounds: n2,
|
|
5164
5166
|
stopPropagation: () => e2.stopPropagation(),
|
|
5165
5167
|
preventDefault: () => e2.preventDefault(),
|
|
@@ -5174,28 +5176,28 @@ let __tla = (async () => {
|
|
|
5174
5176
|
location: r2
|
|
5175
5177
|
});
|
|
5176
5178
|
}, [
|
|
5177
|
-
|
|
5179
|
+
Ur,
|
|
5178
5180
|
k,
|
|
5179
5181
|
Ki
|
|
5180
5182
|
]), Ba = import_react.useCallback((e2) => {
|
|
5181
|
-
if (yi.current = e2,
|
|
5183
|
+
if (yi.current = e2, H !== void 0 && (H.current = e2), mi == null ? void 0 : mi.eventTarget) bi.current = mi.eventTarget;
|
|
5182
5184
|
else if (e2 === null) bi.current = window;
|
|
5183
5185
|
else {
|
|
5184
5186
|
let t2 = e2.getRootNode();
|
|
5185
5187
|
t2 === document && (bi.current = window), bi.current = t2;
|
|
5186
5188
|
}
|
|
5187
5189
|
}, [
|
|
5188
|
-
|
|
5190
|
+
H,
|
|
5189
5191
|
mi == null ? void 0 : mi.eventTarget
|
|
5190
5192
|
]);
|
|
5191
5193
|
useEventListener("dragstart", import_react.useCallback((e2) => {
|
|
5192
5194
|
let t2 = yi.current;
|
|
5193
|
-
if (t2 === null ||
|
|
5195
|
+
if (t2 === null || Jr === false || G) {
|
|
5194
5196
|
e2.preventDefault();
|
|
5195
5197
|
return;
|
|
5196
5198
|
}
|
|
5197
5199
|
let n2, r2, i2 = qi(t2, e2.clientX, e2.clientY);
|
|
5198
|
-
if (
|
|
5200
|
+
if (Jr !== true && i2.kind !== Jr) {
|
|
5199
5201
|
e2.preventDefault();
|
|
5200
5202
|
return;
|
|
5201
5203
|
}
|
|
@@ -5204,7 +5206,7 @@ let __tla = (async () => {
|
|
|
5204
5206
|
}, o2, s2, c2, l2 = (e3, t3, n3) => {
|
|
5205
5207
|
o2 = e3, s2 = t3, c2 = n3;
|
|
5206
5208
|
}, u2 = false;
|
|
5207
|
-
if (
|
|
5209
|
+
if (U == null ? void 0 : U({
|
|
5208
5210
|
...i2,
|
|
5209
5211
|
setData: a2,
|
|
5210
5212
|
setDragImage: l2,
|
|
@@ -5219,105 +5221,105 @@ let __tla = (async () => {
|
|
|
5219
5221
|
let o3 = Math.ceil(window.devicePixelRatio ?? 1);
|
|
5220
5222
|
i3.width = a3.width * o3, i3.height = a3.height * o3;
|
|
5221
5223
|
let s3 = i3.getContext("2d");
|
|
5222
|
-
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 = $r.headerFontFull, s3.fillStyle = $r.bgHeader, s3.fillRect(0, 0, i3.width, i3.height), drawHeader(s3, 0, 0, a3.width, a3.height, Wi[n3], false, $r, false, void 0, void 0, false, 0, zi, ri, false)) : (s3.font = $r.baseFontFull, s3.fillStyle = $r.bgCell, s3.fillRect(0, 0, i3.width, i3.height), drawCell(s3, h([
|
|
5223
5225
|
n3,
|
|
5224
5226
|
r3
|
|
5225
|
-
]), 0, r3, false, false, 0, 0, a3.width, a3.height, false,
|
|
5227
|
+
]), 0, r3, false, false, 0, 0, a3.width, a3.height, false, $r, $r.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(() => {
|
|
5226
5228
|
i3.remove();
|
|
5227
5229
|
}, 0);
|
|
5228
5230
|
}
|
|
5229
5231
|
}
|
|
5230
5232
|
else e2.preventDefault();
|
|
5231
5233
|
}, [
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
+
Jr,
|
|
5235
|
+
G,
|
|
5234
5236
|
qi,
|
|
5235
|
-
|
|
5237
|
+
U,
|
|
5236
5238
|
Ki,
|
|
5237
|
-
|
|
5239
|
+
$r,
|
|
5238
5240
|
Wi,
|
|
5239
5241
|
zi,
|
|
5240
|
-
|
|
5242
|
+
ri,
|
|
5241
5243
|
h,
|
|
5242
5244
|
Si,
|
|
5243
5245
|
$i,
|
|
5244
5246
|
X
|
|
5245
|
-
]), (
|
|
5247
|
+
]), (W == null ? void 0 : W.current) ?? null, false, false);
|
|
5246
5248
|
let Va = import_react.useRef();
|
|
5247
5249
|
useEventListener("dragover", import_react.useCallback((e2) => {
|
|
5248
5250
|
let t2 = yi.current;
|
|
5249
|
-
if (
|
|
5250
|
-
let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (
|
|
5251
|
+
if (ai !== void 0 && e2.preventDefault(), t2 === null || ii === void 0) return;
|
|
5252
|
+
let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (V ? 0 : 1), [a2, o2] = Va.current ?? [];
|
|
5251
5253
|
(a2 !== i2 || o2 !== r2) && (Va.current = [
|
|
5252
5254
|
i2,
|
|
5253
5255
|
r2
|
|
5254
|
-
],
|
|
5256
|
+
], ii([
|
|
5255
5257
|
i2,
|
|
5256
5258
|
r2
|
|
5257
5259
|
], e2.dataTransfer));
|
|
5258
5260
|
}, [
|
|
5259
|
-
|
|
5261
|
+
V,
|
|
5260
5262
|
qi,
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
]), (
|
|
5264
|
-
Va.current = void 0,
|
|
5263
|
+
ii,
|
|
5264
|
+
ai
|
|
5265
|
+
]), (W == null ? void 0 : W.current) ?? null, false, false), useEventListener("dragend", import_react.useCallback(() => {
|
|
5266
|
+
Va.current = void 0, Gr == null ? void 0 : Gr();
|
|
5265
5267
|
}, [
|
|
5266
|
-
|
|
5267
|
-
]), (
|
|
5268
|
+
Gr
|
|
5269
|
+
]), (W == null ? void 0 : W.current) ?? null, false, false), useEventListener("drop", import_react.useCallback((e2) => {
|
|
5268
5270
|
let t2 = yi.current;
|
|
5269
|
-
if (t2 === null ||
|
|
5271
|
+
if (t2 === null || ai === void 0) return;
|
|
5270
5272
|
e2.preventDefault();
|
|
5271
5273
|
let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location;
|
|
5272
|
-
|
|
5273
|
-
n2 - (
|
|
5274
|
+
ai([
|
|
5275
|
+
n2 - (V ? 0 : 1),
|
|
5274
5276
|
r2
|
|
5275
5277
|
], e2.dataTransfer);
|
|
5276
5278
|
}, [
|
|
5277
|
-
|
|
5279
|
+
V,
|
|
5278
5280
|
qi,
|
|
5279
|
-
ii
|
|
5280
|
-
]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
|
|
5281
|
-
ai == null ? void 0 : ai();
|
|
5282
|
-
}, [
|
|
5283
5281
|
ai
|
|
5284
|
-
]), (
|
|
5282
|
+
]), (W == null ? void 0 : W.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
|
|
5283
|
+
oi == null ? void 0 : oi();
|
|
5284
|
+
}, [
|
|
5285
|
+
oi
|
|
5286
|
+
]), (W == null ? void 0 : W.current) ?? null, false, false);
|
|
5285
5287
|
let Ua = import_react.useRef(k);
|
|
5286
5288
|
Ua.current = k;
|
|
5287
5289
|
let Ka = import_react.useRef(null), qa = import_react.useCallback((e2) => {
|
|
5288
5290
|
var _a2;
|
|
5289
|
-
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 = H == null ? void 0 : H.current) == null ? void 0 : _a2.focus({
|
|
5290
5292
|
preventScroll: true
|
|
5291
5293
|
}) : e2 !== null && e2.focus({
|
|
5292
5294
|
preventScroll: true
|
|
5293
5295
|
}), Ka.current = e2);
|
|
5294
5296
|
}, [
|
|
5295
|
-
|
|
5297
|
+
H
|
|
5296
5298
|
]);
|
|
5297
5299
|
import_react.useImperativeHandle(t, () => ({
|
|
5298
5300
|
focus: () => {
|
|
5299
5301
|
var _a2;
|
|
5300
5302
|
let e2 = Ka.current;
|
|
5301
|
-
e2 === null || !document.contains(e2) ? (_a2 =
|
|
5303
|
+
e2 === null || !document.contains(e2) ? (_a2 = H == null ? void 0 : H.current) == null ? void 0 : _a2.focus({
|
|
5302
5304
|
preventScroll: true
|
|
5303
5305
|
}) : e2.focus({
|
|
5304
5306
|
preventScroll: true
|
|
5305
5307
|
});
|
|
5306
5308
|
},
|
|
5307
5309
|
getBounds: (e2, t2) => {
|
|
5308
|
-
if (!(
|
|
5310
|
+
if (!(H === void 0 || H.current === null)) return Ki(H.current, e2 ?? 0, t2 ?? -1);
|
|
5309
5311
|
},
|
|
5310
5312
|
damage: ua
|
|
5311
5313
|
}), [
|
|
5312
|
-
|
|
5314
|
+
H,
|
|
5313
5315
|
ua,
|
|
5314
5316
|
Ki
|
|
5315
5317
|
]);
|
|
5316
5318
|
let Ja = import_react.useRef(), Ya = useDebouncedMemo(() => {
|
|
5317
5319
|
var _a2, _b, _c;
|
|
5318
5320
|
if (n < 50 || (mi == null ? void 0 : mi.disableAccessibilityTree) === true) return null;
|
|
5319
|
-
let e2 = getEffectiveColumns(Wi, vi, n,
|
|
5320
|
-
!
|
|
5321
|
+
let e2 = getEffectiveColumns(Wi, vi, n, Vr, gi), t2 = V ? 0 : -1;
|
|
5322
|
+
!V && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
|
|
5321
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));
|
|
5322
5324
|
return r2 !== void 0 && a2 !== void 0 && !(c2.includes(r2) && l2.includes(a2)) && qa(null), import_react.createElement("table", {
|
|
5323
5325
|
key: "access-tree",
|
|
@@ -5336,7 +5338,7 @@ let __tla = (async () => {
|
|
|
5336
5338
|
"aria-colindex": e3.sourceIndex + 1 + t2,
|
|
5337
5339
|
tabIndex: -1,
|
|
5338
5340
|
onFocus: (t3) => {
|
|
5339
|
-
if (t3.target !== Ka.current) return
|
|
5341
|
+
if (t3.target !== Ka.current) return J == null ? void 0 : J([
|
|
5340
5342
|
e3.sourceIndex,
|
|
5341
5343
|
-1
|
|
5342
5344
|
]);
|
|
@@ -5363,8 +5365,8 @@ let __tla = (async () => {
|
|
|
5363
5365
|
id: u2,
|
|
5364
5366
|
"data-testid": u2,
|
|
5365
5367
|
onClick: () => {
|
|
5366
|
-
let e4 =
|
|
5367
|
-
if (e4 != null) return
|
|
5368
|
+
let e4 = H == null ? void 0 : H.current;
|
|
5369
|
+
if (e4 != null) return Hr == null ? void 0 : Hr({
|
|
5368
5370
|
bounds: Ki(e4, i2, n2),
|
|
5369
5371
|
cancel: () => void 0,
|
|
5370
5372
|
preventDefault: () => void 0,
|
|
@@ -5381,7 +5383,7 @@ let __tla = (async () => {
|
|
|
5381
5383
|
},
|
|
5382
5384
|
onFocusCapture: (e4) => {
|
|
5383
5385
|
var _a3, _b2;
|
|
5384
|
-
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, J == null ? void 0 : J(f2);
|
|
5385
5387
|
},
|
|
5386
5388
|
ref: c3 ? qa : void 0,
|
|
5387
5389
|
tabIndex: -1
|
|
@@ -5391,7 +5393,7 @@ let __tla = (async () => {
|
|
|
5391
5393
|
n,
|
|
5392
5394
|
Wi,
|
|
5393
5395
|
vi,
|
|
5394
|
-
|
|
5396
|
+
Vr,
|
|
5395
5397
|
gi,
|
|
5396
5398
|
m,
|
|
5397
5399
|
s,
|
|
@@ -5399,10 +5401,10 @@ let __tla = (async () => {
|
|
|
5399
5401
|
k,
|
|
5400
5402
|
qa,
|
|
5401
5403
|
h,
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
+
H,
|
|
5405
|
+
Hr,
|
|
5404
5406
|
Ki,
|
|
5405
|
-
|
|
5407
|
+
J
|
|
5406
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(() => {
|
|
5407
5409
|
if (!Xa && !Qa) return null;
|
|
5408
5410
|
let e2 = {
|
|
@@ -5465,111 +5467,111 @@ let __tla = (async () => {
|
|
|
5465
5467
|
return (0, import_clamp$1.default)(Math.round(t - (e.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
|
|
5466
5468
|
}
|
|
5467
5469
|
var data_grid_dnd_default = (e) => {
|
|
5468
|
-
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: B, onColumnProposeMove:
|
|
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: B, onColumnProposeMove: Br, onMouseDown: Vr, onMouseUp: V, onItemHovered: Hr, onDragStart: Ur, canvasRef: Wr } = e, H = (M ?? P ?? N) !== void 0, { columns: U, selection: Gr } = e, W = Gr.columns, G = import_react.useCallback((e2) => {
|
|
5469
5471
|
let [t2, n2] = e2.location;
|
|
5470
|
-
a !== void 0 && s !== t2 && t2 >= B ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (
|
|
5472
|
+
a !== void 0 && s !== t2 && t2 >= B ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Hr == null ? void 0 : Hr(e2));
|
|
5471
5473
|
}, [
|
|
5472
5474
|
a,
|
|
5473
5475
|
h,
|
|
5474
5476
|
s,
|
|
5475
|
-
|
|
5477
|
+
Hr,
|
|
5476
5478
|
B,
|
|
5477
5479
|
r,
|
|
5478
5480
|
l,
|
|
5479
5481
|
S
|
|
5480
|
-
]),
|
|
5482
|
+
]), K = j !== void 0, Kr = import_react.useCallback((e2) => {
|
|
5481
5483
|
var _a;
|
|
5482
5484
|
if (e2.button === 0) {
|
|
5483
5485
|
let [t2, r2] = e2.location;
|
|
5484
|
-
if (e2.kind === "out-of-bounds" && e2.isEdge &&
|
|
5485
|
-
let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(
|
|
5486
|
-
e3 !== void 0 && (n(e3.x), i(
|
|
5486
|
+
if (e2.kind === "out-of-bounds" && e2.isEdge && H) {
|
|
5487
|
+
let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(U.length - 1, -1);
|
|
5488
|
+
e3 !== void 0 && (n(e3.x), i(U.length - 1));
|
|
5487
5489
|
} else if (e2.kind === "header" && t2 >= B) {
|
|
5488
|
-
let r3 =
|
|
5489
|
-
if (e2.isEdge &&
|
|
5490
|
+
let r3 = Wr == null ? void 0 : Wr.current;
|
|
5491
|
+
if (e2.isEdge && H && r3) {
|
|
5490
5492
|
n(e2.bounds.x), i(t2);
|
|
5491
5493
|
let a2 = r3.getBoundingClientRect().width / r3.offsetWidth, o2 = e2.bounds.width / a2;
|
|
5492
|
-
N == null ? void 0 : N(
|
|
5493
|
-
} else e2.kind === "header" &&
|
|
5494
|
+
N == null ? void 0 : N(U[t2], o2, t2, o2 + (U[t2].growOffset ?? 0));
|
|
5495
|
+
} else e2.kind === "header" && K && (m(e2.bounds.x), o(t2));
|
|
5494
5496
|
} else e2.kind === "cell" && B > 0 && t2 === 0 && r2 !== void 0 && zr !== void 0 && (D(e2.bounds.y), g(r2));
|
|
5495
5497
|
}
|
|
5496
|
-
|
|
5498
|
+
Vr == null ? void 0 : Vr(e2);
|
|
5497
5499
|
}, [
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
+
Vr,
|
|
5501
|
+
H,
|
|
5500
5502
|
B,
|
|
5501
5503
|
zr,
|
|
5502
5504
|
F,
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
+
U,
|
|
5506
|
+
K,
|
|
5505
5507
|
N,
|
|
5506
|
-
|
|
5507
|
-
]),
|
|
5508
|
+
Wr
|
|
5509
|
+
]), qr = import_react.useCallback((e2, t2) => {
|
|
5508
5510
|
l || S || (O == null ? void 0 : O(e2, t2));
|
|
5509
5511
|
}, [
|
|
5510
5512
|
l,
|
|
5511
5513
|
S,
|
|
5512
5514
|
O
|
|
5513
|
-
]),
|
|
5515
|
+
]), Jr = import_react.useCallback((e2, t2) => {
|
|
5514
5516
|
l || S || (k == null ? void 0 : k(e2, t2));
|
|
5515
5517
|
}, [
|
|
5516
5518
|
l,
|
|
5517
5519
|
S,
|
|
5518
5520
|
k
|
|
5519
|
-
]),
|
|
5520
|
-
|
|
5521
|
-
}, []),
|
|
5521
|
+
]), Yr = import_react.useRef(-1), Xr = import_react.useCallback(() => {
|
|
5522
|
+
Yr.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
|
+
}, []), Zr = import_react.useCallback((e2, t2) => {
|
|
5522
5524
|
if (e2.button === 0) {
|
|
5523
5525
|
if (r !== void 0) {
|
|
5524
|
-
if ((
|
|
5526
|
+
if ((W == null ? void 0 : W.hasIndex(r)) === true) for (let e4 of W) {
|
|
5525
5527
|
if (e4 === r) continue;
|
|
5526
|
-
let t3 =
|
|
5528
|
+
let t3 = U[e4], n2 = offsetColumnSize(t3, Yr.current, L, I);
|
|
5527
5529
|
M == null ? void 0 : M(t3, n2, e4, n2 + (t3.growOffset ?? 0));
|
|
5528
5530
|
}
|
|
5529
|
-
let e3 = offsetColumnSize(
|
|
5530
|
-
if (P == null ? void 0 : P(
|
|
5531
|
+
let e3 = offsetColumnSize(U[r], Yr.current, L, I);
|
|
5532
|
+
if (P == null ? void 0 : P(U[r], e3, r, e3 + (U[r].growOffset ?? 0)), W.hasIndex(r)) for (let e4 of W) {
|
|
5531
5533
|
if (e4 === r) continue;
|
|
5532
|
-
let t3 =
|
|
5534
|
+
let t3 = U[e4], n2 = offsetColumnSize(t3, Yr.current, L, I);
|
|
5533
5535
|
P == null ? void 0 : P(t3, n2, e4, n2 + (t3.growOffset ?? 0));
|
|
5534
5536
|
}
|
|
5535
5537
|
}
|
|
5536
|
-
|
|
5538
|
+
Xr(), 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));
|
|
5537
5539
|
}
|
|
5538
|
-
|
|
5540
|
+
V == null ? void 0 : V(e2, t2);
|
|
5539
5541
|
}, [
|
|
5540
|
-
|
|
5542
|
+
V,
|
|
5541
5543
|
r,
|
|
5542
5544
|
a,
|
|
5543
5545
|
s,
|
|
5544
5546
|
h,
|
|
5545
5547
|
y,
|
|
5546
|
-
G,
|
|
5547
|
-
P,
|
|
5548
5548
|
W,
|
|
5549
|
+
P,
|
|
5550
|
+
U,
|
|
5549
5551
|
L,
|
|
5550
5552
|
I,
|
|
5551
5553
|
M,
|
|
5552
5554
|
j,
|
|
5553
5555
|
zr,
|
|
5554
|
-
|
|
5555
|
-
]),
|
|
5556
|
-
if (!(a === void 0 || s === void 0) && a !== s && (
|
|
5556
|
+
Xr
|
|
5557
|
+
]), Qr = import_react.useMemo(() => {
|
|
5558
|
+
if (!(a === void 0 || s === void 0) && a !== s && (Br == null ? void 0 : Br(a, s)) !== false) return {
|
|
5557
5559
|
src: a,
|
|
5558
5560
|
dest: s
|
|
5559
5561
|
};
|
|
5560
5562
|
}, [
|
|
5561
5563
|
a,
|
|
5562
5564
|
s,
|
|
5563
|
-
|
|
5564
|
-
]),
|
|
5565
|
-
let n2 =
|
|
5565
|
+
Br
|
|
5566
|
+
]), $r = import_react.useCallback((e2) => {
|
|
5567
|
+
let n2 = Wr == null ? void 0 : Wr.current;
|
|
5566
5568
|
if (a !== void 0 && f !== void 0) Math.abs(e2.clientX - f) > 20 && u(true);
|
|
5567
5569
|
else if (h !== void 0 && E !== void 0) Math.abs(e2.clientY - E) > 20 && C(true);
|
|
5568
5570
|
else if (r !== void 0 && t !== void 0 && n2) {
|
|
5569
|
-
let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 =
|
|
5570
|
-
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 = U[r], s2 = offsetColumnSize(o2, a2, L, I);
|
|
5572
|
+
if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)), Yr.current = a2, (W == null ? void 0 : W.first()) === r) for (let e3 of W) {
|
|
5571
5573
|
if (e3 === r) continue;
|
|
5572
|
-
let t2 =
|
|
5574
|
+
let t2 = U[e3], n3 = offsetColumnSize(t2, Yr.current, L, I);
|
|
5573
5575
|
M == null ? void 0 : M(t2, n3, e3, n3 + (t2.growOffset ?? 0));
|
|
5574
5576
|
}
|
|
5575
5577
|
}
|
|
@@ -5580,13 +5582,13 @@ let __tla = (async () => {
|
|
|
5580
5582
|
E,
|
|
5581
5583
|
r,
|
|
5582
5584
|
t,
|
|
5583
|
-
|
|
5585
|
+
U,
|
|
5584
5586
|
L,
|
|
5585
5587
|
I,
|
|
5586
5588
|
M,
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
]),
|
|
5589
|
+
W,
|
|
5590
|
+
Wr
|
|
5591
|
+
]), ei = import_react.useCallback((e2, t2) => {
|
|
5590
5592
|
if (h === void 0 || y === void 0) return A(e2, t2);
|
|
5591
5593
|
let [n2, r2] = e2;
|
|
5592
5594
|
return r2 === y ? r2 = h : (r2 > y && --r2, r2 >= h && (r2 += 1)), A([
|
|
@@ -5597,11 +5599,11 @@ let __tla = (async () => {
|
|
|
5597
5599
|
h,
|
|
5598
5600
|
y,
|
|
5599
5601
|
A
|
|
5600
|
-
]),
|
|
5601
|
-
|
|
5602
|
+
]), ti = import_react.useCallback((e2) => {
|
|
5603
|
+
Ur == null ? void 0 : Ur(e2), e2.defaultPrevented() || Xr();
|
|
5602
5604
|
}, [
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
+
Xr,
|
|
5606
|
+
Ur
|
|
5605
5607
|
]);
|
|
5606
5608
|
return import_react.createElement(data_grid_default, {
|
|
5607
5609
|
accessibilityHeight: e.accessibilityHeight,
|
|
@@ -5659,18 +5661,18 @@ let __tla = (async () => {
|
|
|
5659
5661
|
resizeIndicator: e.resizeIndicator,
|
|
5660
5662
|
verticalBorder: e.verticalBorder,
|
|
5661
5663
|
width: e.width,
|
|
5662
|
-
getCellContent:
|
|
5664
|
+
getCellContent: ei,
|
|
5663
5665
|
isResizing: r !== void 0,
|
|
5664
|
-
onHeaderMenuClick:
|
|
5665
|
-
onHeaderIndicatorClick:
|
|
5666
|
+
onHeaderMenuClick: qr,
|
|
5667
|
+
onHeaderIndicatorClick: Jr,
|
|
5666
5668
|
isDragging: l,
|
|
5667
|
-
onItemHovered:
|
|
5668
|
-
onDragStart:
|
|
5669
|
-
onMouseDown:
|
|
5670
|
-
allowResize:
|
|
5671
|
-
onMouseUp:
|
|
5672
|
-
dragAndDropState:
|
|
5673
|
-
onMouseMoveRaw:
|
|
5669
|
+
onItemHovered: G,
|
|
5670
|
+
onDragStart: ti,
|
|
5671
|
+
onMouseDown: Kr,
|
|
5672
|
+
allowResize: H,
|
|
5673
|
+
onMouseUp: Zr,
|
|
5674
|
+
dragAndDropState: Qr,
|
|
5675
|
+
onMouseMoveRaw: $r,
|
|
5674
5676
|
ref: F
|
|
5675
5677
|
});
|
|
5676
5678
|
};
|
|
@@ -5816,41 +5818,41 @@ let __tla = (async () => {
|
|
|
5816
5818
|
l,
|
|
5817
5819
|
u
|
|
5818
5820
|
]);
|
|
5819
|
-
let
|
|
5821
|
+
let Br = import_react.useCallback((e2) => {
|
|
5820
5822
|
O.current = e2, g !== void 0 && (g.current = e2);
|
|
5821
5823
|
}, [
|
|
5822
5824
|
g
|
|
5823
|
-
]),
|
|
5825
|
+
]), Vr = 0, V = 0;
|
|
5824
5826
|
for (x.push(import_react.createElement("div", {
|
|
5825
|
-
key:
|
|
5827
|
+
key: Vr++,
|
|
5826
5828
|
style: {
|
|
5827
5829
|
width: i,
|
|
5828
5830
|
height: 0
|
|
5829
5831
|
}
|
|
5830
|
-
}));
|
|
5831
|
-
let e2 = Math.min(5e6, r -
|
|
5832
|
+
})); V < r; ) {
|
|
5833
|
+
let e2 = Math.min(5e6, r - V);
|
|
5832
5834
|
x.push(import_react.createElement("div", {
|
|
5833
|
-
key:
|
|
5835
|
+
key: Vr++,
|
|
5834
5836
|
style: {
|
|
5835
5837
|
width: 0,
|
|
5836
5838
|
height: e2
|
|
5837
5839
|
}
|
|
5838
|
-
})),
|
|
5839
|
-
}
|
|
5840
|
-
let { ref:
|
|
5841
|
-
return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !==
|
|
5842
|
-
width:
|
|
5843
|
-
height:
|
|
5844
|
-
}), (
|
|
5845
|
-
ref:
|
|
5840
|
+
})), V += e2;
|
|
5841
|
+
}
|
|
5842
|
+
let { ref: Hr, width: Ur, height: Wr } = useResizeDetector(y);
|
|
5843
|
+
return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !== Wr || ((_b = zr.current) == null ? void 0 : _b.width) !== Ur) && (window.setTimeout(() => L.current(), 0), zr.current = {
|
|
5844
|
+
width: Ur,
|
|
5845
|
+
height: Wr
|
|
5846
|
+
}), (Ur ?? 0) === 0 || (Wr ?? 0) === 0 ? import_react.createElement("div", {
|
|
5847
|
+
ref: Hr
|
|
5846
5848
|
}) : import_react.createElement("div", {
|
|
5847
|
-
ref:
|
|
5849
|
+
ref: Hr
|
|
5848
5850
|
}, import_react.createElement(ScrollRegionStyle, {
|
|
5849
5851
|
isSafari: browserIsSafari.value
|
|
5850
5852
|
}, import_react.createElement("div", {
|
|
5851
5853
|
className: "dvn-underlay"
|
|
5852
5854
|
}, t), import_react.createElement("div", {
|
|
5853
|
-
ref:
|
|
5855
|
+
ref: Br,
|
|
5854
5856
|
style: zr.current,
|
|
5855
5857
|
draggable: o,
|
|
5856
5858
|
onDragStart: (e2) => {
|
|
@@ -5867,7 +5869,7 @@ let __tla = (async () => {
|
|
|
5867
5869
|
}), import_react.createElement("div", {
|
|
5868
5870
|
ref: j,
|
|
5869
5871
|
style: {
|
|
5870
|
-
height:
|
|
5872
|
+
height: Wr,
|
|
5871
5873
|
maxHeight: n - Math.ceil(k % 1),
|
|
5872
5874
|
position: "sticky",
|
|
5873
5875
|
top: 0,
|
|
@@ -5885,11 +5887,11 @@ let __tla = (async () => {
|
|
|
5885
5887
|
if (typeof r == "number") B += n * r;
|
|
5886
5888
|
else for (let e2 = 0; e2 < n; e2++) B += r(e2);
|
|
5887
5889
|
C !== void 0 && (B += C);
|
|
5888
|
-
let
|
|
5890
|
+
let Br = import_react.useRef(), Vr = import_react.useCallback(() => {
|
|
5889
5891
|
var _a, _b;
|
|
5890
|
-
if (
|
|
5892
|
+
if (Br.current === void 0) return;
|
|
5891
5893
|
let e2 = {
|
|
5892
|
-
...
|
|
5894
|
+
...Br.current
|
|
5893
5895
|
}, i2 = 0, a2 = e2.x < 0 ? -e2.x : 0, o2 = 0, c2 = 0;
|
|
5894
5896
|
e2.x = e2.x < 0 ? 0 : e2.x;
|
|
5895
5897
|
let l2 = 0;
|
|
@@ -5936,15 +5938,15 @@ let __tla = (async () => {
|
|
|
5936
5938
|
s,
|
|
5937
5939
|
D,
|
|
5938
5940
|
O
|
|
5939
|
-
]),
|
|
5940
|
-
|
|
5941
|
+
]), V = import_react.useCallback((e2) => {
|
|
5942
|
+
Br.current = e2, Vr();
|
|
5941
5943
|
}, [
|
|
5942
|
-
|
|
5944
|
+
Vr
|
|
5943
5945
|
]);
|
|
5944
5946
|
return import_react.useEffect(() => {
|
|
5945
|
-
|
|
5947
|
+
Vr();
|
|
5946
5948
|
}, [
|
|
5947
|
-
|
|
5949
|
+
Vr
|
|
5948
5950
|
]), import_react.createElement(InfiniteScroller, {
|
|
5949
5951
|
scrollRef: h,
|
|
5950
5952
|
className: f,
|
|
@@ -5958,7 +5960,7 @@ let __tla = (async () => {
|
|
|
5958
5960
|
paddingBottom: j,
|
|
5959
5961
|
paddingRight: A,
|
|
5960
5962
|
rightElementProps: x,
|
|
5961
|
-
update:
|
|
5963
|
+
update: V,
|
|
5962
5964
|
initialSize: E
|
|
5963
5965
|
}, import_react.createElement(data_grid_dnd_default, {
|
|
5964
5966
|
eventTargetRef: h,
|
|
@@ -6201,7 +6203,7 @@ let __tla = (async () => {
|
|
|
6201
6203
|
u,
|
|
6202
6204
|
M,
|
|
6203
6205
|
C
|
|
6204
|
-
]),
|
|
6206
|
+
]), Br = import_react.useCallback((e2) => {
|
|
6205
6207
|
(e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ? B() : zr());
|
|
6206
6208
|
}, [
|
|
6207
6209
|
I,
|
|
@@ -6213,18 +6215,18 @@ let __tla = (async () => {
|
|
|
6213
6215
|
}, [
|
|
6214
6216
|
N
|
|
6215
6217
|
]);
|
|
6216
|
-
let [
|
|
6218
|
+
let [Vr, V] = import_react.useState(false);
|
|
6217
6219
|
import_react.useEffect(() => {
|
|
6218
|
-
if (f)
|
|
6220
|
+
if (f) V(true);
|
|
6219
6221
|
else {
|
|
6220
|
-
let e2 = setTimeout(() =>
|
|
6222
|
+
let e2 = setTimeout(() => V(false), 150);
|
|
6221
6223
|
return () => clearTimeout(e2);
|
|
6222
6224
|
}
|
|
6223
6225
|
}, [
|
|
6224
6226
|
f
|
|
6225
6227
|
]);
|
|
6226
|
-
let
|
|
6227
|
-
if (!f && !
|
|
6228
|
+
let Hr = import_react.useMemo(() => {
|
|
6229
|
+
if (!f && !Vr) return null;
|
|
6228
6230
|
let e2;
|
|
6229
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}`));
|
|
6230
6232
|
let t2 = (e3) => {
|
|
@@ -6248,7 +6250,7 @@ let __tla = (async () => {
|
|
|
6248
6250
|
onChange: L,
|
|
6249
6251
|
value: x,
|
|
6250
6252
|
tabIndex: f ? void 0 : -1,
|
|
6251
|
-
onKeyDownCapture:
|
|
6253
|
+
onKeyDownCapture: Br
|
|
6252
6254
|
}), import_react.createElement("button", {
|
|
6253
6255
|
"aria-label": "Previous Result",
|
|
6254
6256
|
"aria-hidden": !f,
|
|
@@ -6281,14 +6283,14 @@ let __tla = (async () => {
|
|
|
6281
6283
|
})));
|
|
6282
6284
|
}, [
|
|
6283
6285
|
f,
|
|
6284
|
-
|
|
6286
|
+
Vr,
|
|
6285
6287
|
C,
|
|
6286
6288
|
r,
|
|
6287
6289
|
h,
|
|
6288
6290
|
a,
|
|
6289
6291
|
L,
|
|
6290
6292
|
x,
|
|
6291
|
-
|
|
6293
|
+
Br,
|
|
6292
6294
|
B,
|
|
6293
6295
|
zr,
|
|
6294
6296
|
m,
|
|
@@ -6374,7 +6376,7 @@ let __tla = (async () => {
|
|
|
6374
6376
|
smoothScrollX: e.smoothScrollX,
|
|
6375
6377
|
smoothScrollY: e.smoothScrollY,
|
|
6376
6378
|
resizeIndicator: e.resizeIndicator
|
|
6377
|
-
}),
|
|
6379
|
+
}), Hr);
|
|
6378
6380
|
}, _exp$2 = () => (e) => Math.max(16, e.targetHeight - 10), RenameInput = styled_default("input")({
|
|
6379
6381
|
name: "RenameInput",
|
|
6380
6382
|
class: "gdg-r17m35ur",
|
|
@@ -7379,7 +7381,7 @@ let __tla = (async () => {
|
|
|
7379
7381
|
scrollRef: f
|
|
7380
7382
|
};
|
|
7381
7383
|
}
|
|
7382
|
-
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-CWUN78-s.js")), idCounter = 0;
|
|
7383
7385
|
function getSpanStops(e) {
|
|
7384
7386
|
return (0, import_uniq.default)((0, import_flatten.default)((0, import_flatten.default)(e).filter((e2) => e2.span !== void 0).map((e2) => {
|
|
7385
7387
|
var _a, _b;
|
|
@@ -7416,7 +7418,7 @@ let __tla = (async () => {
|
|
|
7416
7418
|
};
|
|
7417
7419
|
const DataEditor = import_react.forwardRef((e, t) => {
|
|
7418
7420
|
var _a2, _b, _c2;
|
|
7419
|
-
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: B, onCellContextMenu:
|
|
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: B, onCellContextMenu: Br, className: Vr, onHeaderContextMenu: V, getCellsForSelection: Hr, onGroupHeaderContextMenu: Ur, onGroupHeaderRenamed: Wr, onCellEdited: H, onCellsEdited: U, onSearchResultsChanged: Gr, searchResults: W, onSearchValueChange: G, searchValue: Kr, onKeyDown: qr, onKeyUp: Xr, keybindings: Zr, editOnType: Qr = true, onRowAppended: $r, onColumnMoved: ei, validateCell: ti, highlightRegions: ni, rangeSelect: q = "rect", columnSelect: ri = "multi", rowSelect: J = "multi", rangeSelectionBlending: ii = "exclusive", columnSelectionBlending: di = "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 = J !== "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" ? {
|
|
7420
7422
|
fontSize: "16px"
|
|
7421
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({
|
|
7422
7424
|
groupHeaderHeight: ba,
|
|
@@ -7429,7 +7431,7 @@ let __tla = (async () => {
|
|
|
7429
7431
|
rowHeight: qa,
|
|
7430
7432
|
scaleToRem: _a,
|
|
7431
7433
|
theme: xa
|
|
7432
|
-
}), to = useKeybindingsWithDefaults(
|
|
7434
|
+
}), to = useKeybindingsWithDefaults(Zr), no = Aa ?? (C > 1e4 ? 48 : C > 1e3 ? 44 : C > 100 ? 36 : 32), ro = ka !== "none", Q = ro ? 1 : 0, io = $r !== void 0, ao = (Bi == null ? void 0 : Bi.sticky) === true, [oo, so] = import_react.useState(false), co = Mi ?? oo, lo = import_react.useCallback(() => {
|
|
7433
7435
|
ki === void 0 ? so(false) : ki();
|
|
7434
7436
|
}, [
|
|
7435
7437
|
ki
|
|
@@ -7438,16 +7440,16 @@ let __tla = (async () => {
|
|
|
7438
7440
|
Q
|
|
7439
7441
|
]) ?? n, uo = import_react.useRef();
|
|
7440
7442
|
uo.current === void 0 && (uo.current = new AbortController()), import_react.useEffect(() => () => uo == null ? void 0 : uo.current.abort(), []);
|
|
7441
|
-
let [fo, po] = useCellsForSelection(
|
|
7442
|
-
if (
|
|
7443
|
+
let [fo, po] = useCellsForSelection(Hr, E, Q, uo.current, Z), mo = import_react.useCallback((e2, t2, n2) => {
|
|
7444
|
+
if (ti === void 0) return true;
|
|
7443
7445
|
let r2 = [
|
|
7444
7446
|
e2[0] - Q,
|
|
7445
7447
|
e2[1]
|
|
7446
7448
|
];
|
|
7447
|
-
return
|
|
7449
|
+
return ti == null ? void 0 : ti(r2, t2, n2);
|
|
7448
7450
|
}, [
|
|
7449
7451
|
Q,
|
|
7450
|
-
|
|
7452
|
+
ti
|
|
7451
7453
|
]), ho = import_react.useRef(Pi), go = import_react.useCallback((e2, t2) => {
|
|
7452
7454
|
t2 && (e2 = expandSelection(e2, fo, Q, zr, uo.current)), Fi === void 0 ? r(e2) : (ho.current = shiftSelection(e2, -Q), Fi(ho.current));
|
|
7453
7455
|
}, [
|
|
@@ -7494,7 +7496,7 @@ let __tla = (async () => {
|
|
|
7494
7496
|
}, [
|
|
7495
7497
|
mi,
|
|
7496
7498
|
Q
|
|
7497
|
-
]), [Co, wo, To] = useSelectionBehavior($, go,
|
|
7499
|
+
]), [Co, wo, To] = useSelectionBehavior($, go, ii, di, pi, q, L), Eo = import_react.useMemo(() => mergeAndRealizeTheme(getDataEditorTheme(), Qa), [
|
|
7498
7500
|
Qa
|
|
7499
7501
|
]), [Do, Oo] = import_react.useState([
|
|
7500
7502
|
0,
|
|
@@ -7559,17 +7561,17 @@ let __tla = (async () => {
|
|
|
7559
7561
|
e3.location[0] - Q,
|
|
7560
7562
|
e3.location[1]
|
|
7561
7563
|
]
|
|
7562
|
-
})), n2 =
|
|
7563
|
-
if (n2 !== true) for (let e3 of t2)
|
|
7564
|
+
})), n2 = U == null ? void 0 : U(t2);
|
|
7565
|
+
if (n2 !== true) for (let e3 of t2) H == null ? void 0 : H(e3.location, e3.value);
|
|
7564
7566
|
return n2;
|
|
7565
7567
|
}, [
|
|
7568
|
+
H,
|
|
7566
7569
|
U,
|
|
7567
|
-
W,
|
|
7568
7570
|
Q
|
|
7569
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(() => {
|
|
7570
|
-
if ((
|
|
7572
|
+
if ((ni === void 0 || ni.length === 0) && (Zo ?? $o ?? es ?? Yo) === void 0) return;
|
|
7571
7573
|
let e2 = [];
|
|
7572
|
-
if (
|
|
7574
|
+
if (ni !== void 0) for (let t2 of ni) {
|
|
7573
7575
|
let n2 = Lo.length - t2.range.x - Q;
|
|
7574
7576
|
n2 > 0 && e2.push({
|
|
7575
7577
|
color: t2.color,
|
|
@@ -7604,7 +7606,7 @@ let __tla = (async () => {
|
|
|
7604
7606
|
Zo,
|
|
7605
7607
|
$o,
|
|
7606
7608
|
es,
|
|
7607
|
-
|
|
7609
|
+
ni,
|
|
7608
7610
|
Lo.length,
|
|
7609
7611
|
Eo.accentColor,
|
|
7610
7612
|
Q
|
|
@@ -7681,7 +7683,7 @@ let __tla = (async () => {
|
|
|
7681
7683
|
let t2 = (Ei == null ? void 0 : Ei(e2)) ?? {
|
|
7682
7684
|
name: e2
|
|
7683
7685
|
};
|
|
7684
|
-
return
|
|
7686
|
+
return Wr !== void 0 && e2 !== "" && (t2 = {
|
|
7685
7687
|
icon: t2.icon,
|
|
7686
7688
|
name: t2.name,
|
|
7687
7689
|
overrideTheme: t2.overrideTheme,
|
|
@@ -7699,7 +7701,7 @@ let __tla = (async () => {
|
|
|
7699
7701
|
}), t2;
|
|
7700
7702
|
}, [
|
|
7701
7703
|
Ei,
|
|
7702
|
-
|
|
7704
|
+
Wr
|
|
7703
7705
|
]), as = import_react.useCallback((e2) => {
|
|
7704
7706
|
var _a3;
|
|
7705
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);
|
|
@@ -7865,7 +7867,7 @@ let __tla = (async () => {
|
|
|
7865
7867
|
let fs = import_react.useCallback(async (e2, t2 = true) => {
|
|
7866
7868
|
var _a3, _b2;
|
|
7867
7869
|
if (((_b2 = (_a3 = Lo[e2]) == null ? void 0 : _a3.trailingRowOptions) == null ? void 0 : _b2.disabled) === true) return;
|
|
7868
|
-
let n2 =
|
|
7870
|
+
let n2 = $r == null ? void 0 : $r(), r2, i2 = true;
|
|
7869
7871
|
n2 !== void 0 && (r2 = await n2, r2 === "top" && (i2 = false), typeof r2 == "number" && (i2 = false));
|
|
7870
7872
|
let a2 = 0, o2 = () => {
|
|
7871
7873
|
if (ds.current <= Z) {
|
|
@@ -7896,7 +7898,7 @@ let __tla = (async () => {
|
|
|
7896
7898
|
o2();
|
|
7897
7899
|
}, [
|
|
7898
7900
|
Lo,
|
|
7899
|
-
|
|
7901
|
+
$r,
|
|
7900
7902
|
Q,
|
|
7901
7903
|
Z,
|
|
7902
7904
|
Co
|
|
@@ -7923,13 +7925,13 @@ let __tla = (async () => {
|
|
|
7923
7925
|
Eo
|
|
7924
7926
|
]), { mapper: _s } = useRowGrouping(Oi, C), vs = Oi == null ? void 0 : Oi.navigationBehavior, ys = import_react.useCallback((e2) => {
|
|
7925
7927
|
var _a3, _b2, _c3;
|
|
7926
|
-
let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, n2 = t2 &&
|
|
7928
|
+
let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, n2 = t2 && J === "multi", r2 = t2 && ri === "multi", [i2, o2] = e2.location, s2 = $.columns, c2 = $.rows, [l2, u2] = ((_a3 = $.current) == null ? void 0 : _a3.cell) ?? [];
|
|
7927
7929
|
if (e2.kind === "cell") {
|
|
7928
7930
|
if (hs.current = void 0, xs.current = [
|
|
7929
7931
|
i2,
|
|
7930
7932
|
o2
|
|
7931
7933
|
], i2 === 0 && ro) {
|
|
7932
|
-
if (io === true && o2 === Z || ka === "number" ||
|
|
7934
|
+
if (io === true && o2 === Z || ka === "number" || J === "none") return;
|
|
7933
7935
|
let r3 = rs(e2.location);
|
|
7934
7936
|
if (r3.kind !== InnerGridCellKind.Marker) return;
|
|
7935
7937
|
if (ca !== void 0) {
|
|
@@ -7948,13 +7950,13 @@ let __tla = (async () => {
|
|
|
7948
7950
|
}
|
|
7949
7951
|
a(void 0), Ko();
|
|
7950
7952
|
let i3 = c2.hasIndex(o2), s3 = ms.current;
|
|
7951
|
-
if (
|
|
7953
|
+
if (J === "multi" && (e2.shiftKey || e2.isLongTouch === true) && s3 !== void 0 && c2.hasIndex(s3)) {
|
|
7952
7954
|
let e3 = [
|
|
7953
7955
|
Math.min(s3, o2),
|
|
7954
7956
|
Math.max(s3, o2) + 1
|
|
7955
7957
|
];
|
|
7956
7958
|
n2 || Si === "multi" ? wo(void 0, e3, true) : wo(CompactSelection.fromSingleSelection(e3), void 0, n2);
|
|
7957
|
-
} else
|
|
7959
|
+
} else J === "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);
|
|
7958
7960
|
} else if (i2 >= Q && io && o2 === Z) fs(ps(i2) ?? i2);
|
|
7959
7961
|
else if (l2 !== i2 || u2 !== o2) {
|
|
7960
7962
|
let n3 = rs(e2.location), r3 = Ao(n3);
|
|
@@ -8000,19 +8002,19 @@ let __tla = (async () => {
|
|
|
8000
8002
|
} else if (e2.kind === "header") if (xs.current = [
|
|
8001
8003
|
i2,
|
|
8002
8004
|
o2
|
|
8003
|
-
], 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, J === "multi" && (c2.length === Z ? wo(CompactSelection.empty(), void 0, t2) : wo(CompactSelection.fromSingleSelection([
|
|
8004
8006
|
0,
|
|
8005
8007
|
Z
|
|
8006
8008
|
]), void 0, t2), Ko());
|
|
8007
8009
|
else {
|
|
8008
8010
|
let n3 = hs.current;
|
|
8009
|
-
if (
|
|
8011
|
+
if (ri === "multi" && (e2.shiftKey || e2.isLongTouch === true) && n3 !== void 0 && s2.hasIndex(n3)) {
|
|
8010
8012
|
let e3 = [
|
|
8011
8013
|
Math.min(n3, i2),
|
|
8012
8014
|
Math.max(n3, i2) + 1
|
|
8013
8015
|
];
|
|
8014
8016
|
r2 ? To(void 0, e3, t2) : To(CompactSelection.fromSingleSelection(e3), void 0, t2);
|
|
8015
|
-
} 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) : ri !== "none" && (To(CompactSelection.fromSingleSelection(i2), void 0, t2), hs.current = i2);
|
|
8016
8018
|
ms.current = void 0, Ko();
|
|
8017
8019
|
}
|
|
8018
8020
|
else e2.kind === "group-header" ? xs.current = [
|
|
@@ -8020,8 +8022,8 @@ let __tla = (async () => {
|
|
|
8020
8022
|
o2
|
|
8021
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);
|
|
8022
8024
|
}, [
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
+
J,
|
|
8026
|
+
ri,
|
|
8025
8027
|
$,
|
|
8026
8028
|
ro,
|
|
8027
8029
|
Q,
|
|
@@ -8064,7 +8066,7 @@ let __tla = (async () => {
|
|
|
8064
8066
|
$,
|
|
8065
8067
|
ys
|
|
8066
8068
|
]), [Ts, Es] = import_react.useState(), Ds = import_react.useCallback((e2) => {
|
|
8067
|
-
if (e2.kind !== "group-header" ||
|
|
8069
|
+
if (e2.kind !== "group-header" || ri !== "multi") return;
|
|
8068
8070
|
let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, [n2] = e2.location, r2 = $.columns;
|
|
8069
8071
|
if (n2 < Q) return;
|
|
8070
8072
|
let i2 = Lo[n2], a2 = n2, o2 = n2;
|
|
@@ -8086,7 +8088,7 @@ let __tla = (async () => {
|
|
|
8086
8088
|
o2 + 1
|
|
8087
8089
|
]), void 0, t2);
|
|
8088
8090
|
}, [
|
|
8089
|
-
|
|
8091
|
+
ri,
|
|
8090
8092
|
Ko,
|
|
8091
8093
|
$.columns,
|
|
8092
8094
|
Lo,
|
|
@@ -8269,7 +8271,7 @@ let __tla = (async () => {
|
|
|
8269
8271
|
if (t3.x !== n3.x || t3.y !== n3.y) return;
|
|
8270
8272
|
if (e2.isLongTouch === true) {
|
|
8271
8273
|
if (e2.kind === "cell" && itemsAreEqual((_b2 = $.current) == null ? void 0 : _b2.cell, e2.location)) {
|
|
8272
|
-
|
|
8274
|
+
Br == null ? void 0 : Br([
|
|
8273
8275
|
f2,
|
|
8274
8276
|
e2.location[1]
|
|
8275
8277
|
], {
|
|
@@ -8278,14 +8280,14 @@ let __tla = (async () => {
|
|
|
8278
8280
|
});
|
|
8279
8281
|
return;
|
|
8280
8282
|
} else if (e2.kind === "header" && $.columns.hasIndex(r2)) {
|
|
8281
|
-
|
|
8283
|
+
V == null ? void 0 : V(f2, {
|
|
8282
8284
|
...e2,
|
|
8283
8285
|
preventDefault: s2
|
|
8284
8286
|
});
|
|
8285
8287
|
return;
|
|
8286
8288
|
} else if (e2.kind === "group-header") {
|
|
8287
8289
|
if (f2 < 0) return;
|
|
8288
|
-
|
|
8290
|
+
Ur == null ? void 0 : Ur(f2, {
|
|
8289
8291
|
...e2,
|
|
8290
8292
|
preventDefault: s2
|
|
8291
8293
|
});
|
|
@@ -8331,9 +8333,9 @@ let __tla = (async () => {
|
|
|
8331
8333
|
Jo,
|
|
8332
8334
|
O,
|
|
8333
8335
|
os,
|
|
8336
|
+
Br,
|
|
8334
8337
|
V,
|
|
8335
|
-
|
|
8336
|
-
Hr,
|
|
8338
|
+
Ur,
|
|
8337
8339
|
ys,
|
|
8338
8340
|
B,
|
|
8339
8341
|
F,
|
|
@@ -8419,11 +8421,11 @@ let __tla = (async () => {
|
|
|
8419
8421
|
Vi,
|
|
8420
8422
|
Bo,
|
|
8421
8423
|
Ni
|
|
8422
|
-
]), Vs = whenDefined(
|
|
8423
|
-
|
|
8424
|
+
]), Vs = whenDefined(ei, import_react.useCallback((e2, t2) => {
|
|
8425
|
+
ei == null ? void 0 : ei(e2 - Q, t2 - Q), ri !== "none" && To(CompactSelection.fromSingleSelection(t2), void 0, true);
|
|
8424
8426
|
}, [
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
+
ri,
|
|
8428
|
+
ei,
|
|
8427
8429
|
Q,
|
|
8428
8430
|
To
|
|
8429
8431
|
])), Hs = import_react.useRef(false), Us = import_react.useCallback((e2) => {
|
|
@@ -8461,14 +8463,14 @@ let __tla = (async () => {
|
|
|
8461
8463
|
]), qs = import_react.useRef(), Js = import_react.useCallback((e2) => {
|
|
8462
8464
|
var _a3, _b2, _c3;
|
|
8463
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))) {
|
|
8464
|
-
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 && J === "multi" && c.previousSelection && !c.previousSelection.rows.hasIndex(Cs.current.location[1]) && $.rows.hasIndex(Cs.current.location[1])) {
|
|
8465
8467
|
let t2 = Math.min(Cs.current.location[1], e2.location[1]), n2 = Math.max(Cs.current.location[1], e2.location[1]) + 1;
|
|
8466
8468
|
wo(CompactSelection.fromSingleSelection([
|
|
8467
8469
|
t2,
|
|
8468
8470
|
n2
|
|
8469
8471
|
]), void 0, false);
|
|
8470
8472
|
}
|
|
8471
|
-
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 && (q === "rect" || q === "multi-rect")) {
|
|
8472
8474
|
let [t2, n2] = $.current.cell, [r2, i2] = e2.location;
|
|
8473
8475
|
if (i2 < 0 && (i2 = Ro.current.y), c.fillHandle === true && ((_c3 = c.previousSelection) == null ? void 0 : _c3.current) !== void 0) {
|
|
8474
8476
|
let e3 = c.previousSelection.current.range;
|
|
@@ -8503,9 +8505,9 @@ let __tla = (async () => {
|
|
|
8503
8505
|
}, [
|
|
8504
8506
|
c,
|
|
8505
8507
|
Q,
|
|
8506
|
-
Y,
|
|
8507
|
-
$,
|
|
8508
8508
|
J,
|
|
8509
|
+
$,
|
|
8510
|
+
q,
|
|
8509
8511
|
Ai,
|
|
8510
8512
|
wo,
|
|
8511
8513
|
io,
|
|
@@ -8769,7 +8771,7 @@ let __tla = (async () => {
|
|
|
8769
8771
|
if (n2.didMatch) return t2(), true;
|
|
8770
8772
|
if ($.current === void 0) return false;
|
|
8771
8773
|
let [l2, u2] = $.current.cell, [, f2] = $.current.cell, m2 = false, h2 = false;
|
|
8772
|
-
if (isHotkey(c2.scrollToSelectedCell, e2, n2) ? uc.current(l2 - Q, u2) :
|
|
8774
|
+
if (isHotkey(c2.scrollToSelectedCell, e2, n2) ? uc.current(l2 - Q, u2) : ri !== "none" && isHotkey(c2.selectColumn, e2, n2) ? i2.hasIndex(l2) ? To(i2.remove(l2), void 0, true) : ri === "single" ? To(CompactSelection.fromSingleSelection(l2), void 0, true) : To(void 0, l2, true) : J !== "none" && isHotkey(c2.selectRow, e2, n2) ? s2.hasIndex(u2) ? wo(s2.remove(u2), void 0, true) : J === "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(() => {
|
|
8773
8775
|
fs(ps(l2) ?? l2);
|
|
8774
8776
|
}, 0) : (O == null ? void 0 : O([
|
|
8775
8777
|
l2 - Q,
|
|
@@ -8780,7 +8782,7 @@ let __tla = (async () => {
|
|
|
8780
8782
|
])) : isHotkey(c2.selectToLastCell, e2, n2) ? (a(void 0), Ys([
|
|
8781
8783
|
2,
|
|
8782
8784
|
2
|
|
8783
|
-
])) : 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) : (q === "rect" || q === "multi-rect") && (isHotkey(c2.selectGrowDown, e2, n2) ? Ys([
|
|
8784
8786
|
0,
|
|
8785
8787
|
1
|
|
8786
8788
|
]) : isHotkey(c2.selectGrowUp, e2, n2) ? Ys([
|
|
@@ -8821,9 +8823,9 @@ let __tla = (async () => {
|
|
|
8821
8823
|
tc,
|
|
8822
8824
|
$,
|
|
8823
8825
|
to,
|
|
8824
|
-
|
|
8825
|
-
Y,
|
|
8826
|
+
ri,
|
|
8826
8827
|
J,
|
|
8828
|
+
q,
|
|
8827
8829
|
Q,
|
|
8828
8830
|
_s,
|
|
8829
8831
|
Z,
|
|
@@ -8846,14 +8848,14 @@ let __tla = (async () => {
|
|
|
8846
8848
|
Ys
|
|
8847
8849
|
]), rc = import_react.useCallback((e2) => {
|
|
8848
8850
|
let t2 = false;
|
|
8849
|
-
if (
|
|
8851
|
+
if (qr !== void 0 && qr({
|
|
8850
8852
|
...e2,
|
|
8851
8853
|
cancel: () => {
|
|
8852
8854
|
t2 = true;
|
|
8853
8855
|
}
|
|
8854
8856
|
}), t2 || nc(e2) || $.current === void 0) return;
|
|
8855
8857
|
let [n2, r2] = $.current.cell, i2 = Ro.current;
|
|
8856
|
-
if (
|
|
8858
|
+
if (Qr && !e2.metaKey && !e2.ctrlKey && $.current !== void 0 && e2.key.length === 1 && /[ -~]/g.test(e2.key) && e2.bounds !== void 0 && isReadWriteCell(E([
|
|
8857
8859
|
n2 - Q,
|
|
8858
8860
|
Math.max(0, Math.min(r2, Z - 1))
|
|
8859
8861
|
]))) {
|
|
@@ -8861,8 +8863,8 @@ let __tla = (async () => {
|
|
|
8861
8863
|
os(e2.bounds, true, e2.key), e2.stopPropagation(), e2.preventDefault();
|
|
8862
8864
|
}
|
|
8863
8865
|
}, [
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
+
Qr,
|
|
8867
|
+
qr,
|
|
8866
8868
|
nc,
|
|
8867
8869
|
$,
|
|
8868
8870
|
E,
|
|
@@ -8872,19 +8874,19 @@ let __tla = (async () => {
|
|
|
8872
8874
|
os
|
|
8873
8875
|
]), ic = import_react.useCallback((e2, t2) => {
|
|
8874
8876
|
let n2 = e2.location[0] - Q;
|
|
8875
|
-
if (e2.kind === "header" && (
|
|
8877
|
+
if (e2.kind === "header" && (V == null ? void 0 : V(n2, {
|
|
8876
8878
|
...e2,
|
|
8877
8879
|
preventDefault: t2
|
|
8878
8880
|
})), e2.kind === "group-header") {
|
|
8879
8881
|
if (n2 < 0) return;
|
|
8880
|
-
|
|
8882
|
+
Ur == null ? void 0 : Ur(n2, {
|
|
8881
8883
|
...e2,
|
|
8882
8884
|
preventDefault: t2
|
|
8883
8885
|
});
|
|
8884
8886
|
}
|
|
8885
8887
|
if (e2.kind === "cell") {
|
|
8886
8888
|
let [r2, i2] = e2.location;
|
|
8887
|
-
|
|
8889
|
+
Br == null ? void 0 : Br([
|
|
8888
8890
|
n2,
|
|
8889
8891
|
i2
|
|
8890
8892
|
], {
|
|
@@ -8894,9 +8896,9 @@ let __tla = (async () => {
|
|
|
8894
8896
|
}
|
|
8895
8897
|
}, [
|
|
8896
8898
|
$,
|
|
8899
|
+
Br,
|
|
8900
|
+
Ur,
|
|
8897
8901
|
V,
|
|
8898
|
-
Hr,
|
|
8899
|
-
H,
|
|
8900
8902
|
Q,
|
|
8901
8903
|
Zs
|
|
8902
8904
|
]), ac = import_react.useCallback(async (e2) => {
|
|
@@ -9095,11 +9097,11 @@ let __tla = (async () => {
|
|
|
9095
9097
|
So
|
|
9096
9098
|
]), f, false, false);
|
|
9097
9099
|
let sc = import_react.useCallback((e2, t2) => {
|
|
9098
|
-
if (
|
|
9100
|
+
if (Gr !== void 0) {
|
|
9099
9101
|
Q !== 0 && (e2 = e2.map((e3) => [
|
|
9100
9102
|
e3[0] - Q,
|
|
9101
9103
|
e3[1]
|
|
9102
|
-
])),
|
|
9104
|
+
])), Gr(e2, t2);
|
|
9103
9105
|
return;
|
|
9104
9106
|
}
|
|
9105
9107
|
if (e2.length === 0 || t2 === -1) return;
|
|
@@ -9109,7 +9111,7 @@ let __tla = (async () => {
|
|
|
9109
9111
|
r2
|
|
9110
9112
|
], Zs(n2, r2, false, false));
|
|
9111
9113
|
}, [
|
|
9112
|
-
|
|
9114
|
+
Gr,
|
|
9113
9115
|
Q,
|
|
9114
9116
|
Zs
|
|
9115
9117
|
]), [cc, lc] = ((_c2 = Pi == null ? void 0 : Pi.current) == null ? void 0 : _c2.cell) ?? [], uc = import_react.useRef(cs);
|
|
@@ -9143,11 +9145,11 @@ let __tla = (async () => {
|
|
|
9143
9145
|
canvasBounds: n2,
|
|
9144
9146
|
onClose: () => Es(void 0),
|
|
9145
9147
|
onFinish: (e3) => {
|
|
9146
|
-
Es(void 0),
|
|
9148
|
+
Es(void 0), Wr == null ? void 0 : Wr(t2, e3);
|
|
9147
9149
|
}
|
|
9148
9150
|
});
|
|
9149
9151
|
}, [
|
|
9150
|
-
|
|
9152
|
+
Wr,
|
|
9151
9153
|
Ts
|
|
9152
9154
|
]), hc = Math.min(Lo.length, yi + (ro ? 1 : 0));
|
|
9153
9155
|
import_react.useImperativeHandle(t, () => ({
|
|
@@ -9255,7 +9257,7 @@ let __tla = (async () => {
|
|
|
9255
9257
|
let [gc, _c] = zs ?? [], vc = import_react.useCallback((e2) => {
|
|
9256
9258
|
let [t2, n2] = e2;
|
|
9257
9259
|
if (n2 === -1) {
|
|
9258
|
-
|
|
9260
|
+
ri !== "none" && (To(CompactSelection.fromSingleSelection(t2), void 0, false), Ko());
|
|
9259
9261
|
return;
|
|
9260
9262
|
}
|
|
9261
9263
|
gc === t2 && _c === n2 || (Co({
|
|
@@ -9268,7 +9270,7 @@ let __tla = (async () => {
|
|
|
9268
9270
|
}
|
|
9269
9271
|
}, true, false, "keyboard-nav"), cs(t2, n2));
|
|
9270
9272
|
}, [
|
|
9271
|
-
|
|
9273
|
+
ri,
|
|
9272
9274
|
Ko,
|
|
9273
9275
|
cs,
|
|
9274
9276
|
gc,
|
|
@@ -9326,7 +9328,7 @@ let __tla = (async () => {
|
|
|
9326
9328
|
value: Eo
|
|
9327
9329
|
}, import_react.createElement(DataEditorContainer, {
|
|
9328
9330
|
style: Ec,
|
|
9329
|
-
className:
|
|
9331
|
+
className: Vr,
|
|
9330
9332
|
inWidth: y ?? wc,
|
|
9331
9333
|
inHeight: x ?? Tc
|
|
9332
9334
|
}, import_react.createElement(data_grid_search_default, {
|
|
@@ -9349,7 +9351,7 @@ let __tla = (async () => {
|
|
|
9349
9351
|
rightElementProps: pa,
|
|
9350
9352
|
smoothScrollX: ha,
|
|
9351
9353
|
smoothScrollY: ga,
|
|
9352
|
-
className:
|
|
9354
|
+
className: Vr,
|
|
9353
9355
|
enableGroups: No,
|
|
9354
9356
|
onCanvasFocused: Sc,
|
|
9355
9357
|
onCanvasBlur: Cc,
|
|
@@ -9395,7 +9397,7 @@ let __tla = (async () => {
|
|
|
9395
9397
|
isFilling: (c == null ? void 0 : c.fillHandle) === true,
|
|
9396
9398
|
onMouseMove: Is,
|
|
9397
9399
|
onKeyDown: rc,
|
|
9398
|
-
onKeyUp:
|
|
9400
|
+
onKeyUp: Xr,
|
|
9399
9401
|
onMouseDown: ws,
|
|
9400
9402
|
onMouseUp: Fs,
|
|
9401
9403
|
onDragOverCell: Ki,
|
|
@@ -9404,9 +9406,9 @@ let __tla = (async () => {
|
|
|
9404
9406
|
onVisibleRegionChanged: Bs,
|
|
9405
9407
|
clientSize: Do,
|
|
9406
9408
|
rowHeight: Ya,
|
|
9407
|
-
searchResults:
|
|
9408
|
-
searchValue:
|
|
9409
|
-
onSearchValueChange:
|
|
9409
|
+
searchResults: W,
|
|
9410
|
+
searchValue: Kr,
|
|
9411
|
+
onSearchValueChange: G,
|
|
9410
9412
|
rows: qo,
|
|
9411
9413
|
scrollRef: Ho,
|
|
9412
9414
|
selection: $,
|
|
@@ -9873,7 +9875,7 @@ let __tla = (async () => {
|
|
|
9873
9875
|
height: l - 1
|
|
9874
9876
|
};
|
|
9875
9877
|
}
|
|
9876
|
-
var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-
|
|
9878
|
+
var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-_GnlYFHC.js"));
|
|
9877
9879
|
const numberCellRenderer = {
|
|
9878
9880
|
getAccessibilityString: (e) => {
|
|
9879
9881
|
var _a;
|
|
@@ -10418,16 +10420,16 @@ let __tla = (async () => {
|
|
|
10418
10420
|
})
|
|
10419
10421
|
]
|
|
10420
10422
|
}), t[10] = f, t[11] = o, t[12] = y) : y = t[12];
|
|
10421
|
-
let
|
|
10422
|
-
t[13] !== l || t[14] !==
|
|
10423
|
+
let x = !o.trim(), S;
|
|
10424
|
+
t[13] !== l || t[14] !== x ? (S = (0, import_jsx_runtime.jsx)(Button, {
|
|
10423
10425
|
onClick: l,
|
|
10424
|
-
disabled:
|
|
10426
|
+
disabled: x,
|
|
10425
10427
|
size: "sm",
|
|
10426
10428
|
className: "w-full",
|
|
10427
10429
|
children: "Rename"
|
|
10428
|
-
}), t[13] = l, t[14] =
|
|
10429
|
-
let
|
|
10430
|
-
return t[16] !== y || t[17] !==
|
|
10430
|
+
}), t[13] = l, t[14] = x, t[15] = S) : S = t[15];
|
|
10431
|
+
let C;
|
|
10432
|
+
return t[16] !== y || t[17] !== S ? (C = (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
|
|
10431
10433
|
children: [
|
|
10432
10434
|
m,
|
|
10433
10435
|
(0, import_jsx_runtime.jsx)(DropdownMenuPortal, {
|
|
@@ -10437,15 +10439,15 @@ let __tla = (async () => {
|
|
|
10437
10439
|
className: "space-y-3",
|
|
10438
10440
|
children: [
|
|
10439
10441
|
y,
|
|
10440
|
-
|
|
10442
|
+
S
|
|
10441
10443
|
]
|
|
10442
10444
|
})
|
|
10443
10445
|
})
|
|
10444
10446
|
})
|
|
10445
10447
|
]
|
|
10446
|
-
}), t[16] = y, t[17] =
|
|
10448
|
+
}), t[16] = y, t[17] = S, t[18] = C) : C = t[18], C;
|
|
10447
10449
|
}, AddColumnSub = (e) => {
|
|
10448
|
-
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, g,
|
|
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, zr, B, Vr, V;
|
|
10449
10451
|
if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
|
|
10450
10452
|
let e2 = [
|
|
10451
10453
|
"string",
|
|
@@ -10455,109 +10457,109 @@ let __tla = (async () => {
|
|
|
10455
10457
|
], i;
|
|
10456
10458
|
t[20] !== o || t[21] !== c || t[22] !== r ? (i = () => {
|
|
10457
10459
|
o.trim() && (r(o.trim(), c), s(""), l("string"));
|
|
10458
|
-
}, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23],
|
|
10459
|
-
let
|
|
10460
|
-
t[24] !==
|
|
10461
|
-
e3.key === "Enter" ?
|
|
10462
|
-
}, t[24] =
|
|
10463
|
-
let
|
|
10464
|
-
|
|
10465
|
-
let
|
|
10466
|
-
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10460
|
+
}, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23], D = i;
|
|
10461
|
+
let Hr2;
|
|
10462
|
+
t[24] !== D || t[25] !== a ? (Hr2 = (e3) => {
|
|
10463
|
+
e3.key === "Enter" ? D() : e3.key === "Escape" && a();
|
|
10464
|
+
}, t[24] = D, t[25] = a, t[26] = Hr2) : Hr2 = t[26];
|
|
10465
|
+
let Ur2 = Hr2;
|
|
10466
|
+
C = DropdownMenuSub;
|
|
10467
|
+
let Wr2;
|
|
10468
|
+
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Wr2 = (0, import_jsx_runtime.jsx)(Plus, {
|
|
10467
10469
|
className: "mr-2 h-3.5 w-3.5"
|
|
10468
|
-
}), t[27] =
|
|
10470
|
+
}), t[27] = Wr2) : Wr2 = t[27], t[28] === n ? V = t[29] : (V = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
|
|
10469
10471
|
children: [
|
|
10470
|
-
|
|
10472
|
+
Wr2,
|
|
10471
10473
|
"Add column to the ",
|
|
10472
10474
|
n
|
|
10473
10475
|
]
|
|
10474
|
-
}), t[28] = n, t[29] =
|
|
10475
|
-
let
|
|
10476
|
-
t[30] ===
|
|
10477
|
-
htmlFor:
|
|
10476
|
+
}), t[28] = n, t[29] = V), S = DropdownMenuPortal, g = DropdownMenuSubContent, Vr = "w-64 p-4", zr = "space-y-3";
|
|
10477
|
+
let H2 = `add-column-input-${n}`, U2;
|
|
10478
|
+
t[30] === H2 ? U2 = t[31] : (U2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
10479
|
+
htmlFor: H2,
|
|
10478
10480
|
children: "Column name"
|
|
10479
|
-
}), t[30] =
|
|
10480
|
-
let
|
|
10481
|
-
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10482
|
-
let
|
|
10483
|
-
t[33] !== o || t[34] !==
|
|
10484
|
-
id:
|
|
10481
|
+
}), t[30] = H2, t[31] = U2);
|
|
10482
|
+
let Gr2 = `add-column-input-${n}`, W2;
|
|
10483
|
+
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W2 = (e3) => s(e3.target.value), t[32] = W2) : W2 = t[32];
|
|
10484
|
+
let G2;
|
|
10485
|
+
t[33] !== o || t[34] !== Ur2 || t[35] !== Gr2 ? (G2 = (0, import_jsx_runtime.jsx)(Input, {
|
|
10486
|
+
id: Gr2,
|
|
10485
10487
|
value: o,
|
|
10486
|
-
onChange:
|
|
10488
|
+
onChange: W2,
|
|
10487
10489
|
placeholder: "Enter column name",
|
|
10488
10490
|
className: "mt-1",
|
|
10489
|
-
onKeyDown:
|
|
10490
|
-
}), t[33] = o, t[34] =
|
|
10491
|
+
onKeyDown: Ur2
|
|
10492
|
+
}), t[33] = o, t[34] = Ur2, t[35] = Gr2, t[36] = G2) : G2 = t[36], t[37] !== U2 || t[38] !== G2 ? (B = (0, import_jsx_runtime.jsxs)("div", {
|
|
10491
10493
|
children: [
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
+
U2,
|
|
10495
|
+
G2
|
|
10494
10496
|
]
|
|
10495
|
-
}), t[37] =
|
|
10496
|
-
let
|
|
10497
|
-
t[40] ===
|
|
10498
|
-
htmlFor:
|
|
10497
|
+
}), t[37] = U2, t[38] = G2, t[39] = B) : B = t[39];
|
|
10498
|
+
let K2 = `add-column-type-${n}`;
|
|
10499
|
+
t[40] === K2 ? I = t[41] : (I = (0, import_jsx_runtime.jsx)(Label, {
|
|
10500
|
+
htmlFor: K2,
|
|
10499
10501
|
children: "Data type"
|
|
10500
|
-
}), t[40] =
|
|
10501
|
-
let
|
|
10502
|
-
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10503
|
-
id:
|
|
10502
|
+
}), t[40] = K2, 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 Kr = `add-column-type-${n}`, qr;
|
|
10504
|
+
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = qr) : qr = t[43], t[44] === Kr ? F = t[45] : (F = (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
10505
|
+
id: Kr,
|
|
10504
10506
|
className: "mt-1",
|
|
10505
|
-
children:
|
|
10506
|
-
}), t[44] =
|
|
10507
|
-
} else u = t[5],
|
|
10508
|
-
let Vr;
|
|
10509
|
-
t[46] !== u || t[47] !== k ? (Vr = (0, import_jsx_runtime.jsx)(u, {
|
|
10510
|
-
children: k
|
|
10511
|
-
}), t[46] = u, t[47] = k, t[48] = Vr) : Vr = t[48];
|
|
10507
|
+
children: qr
|
|
10508
|
+
}), t[44] = Kr, 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] = zr, t[17] = B, t[18] = Vr, t[19] = V;
|
|
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], zr = t[16], B = t[17], Vr = t[18], V = t[19];
|
|
10512
10510
|
let Hr;
|
|
10513
|
-
t[
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
children: [
|
|
10517
|
-
L,
|
|
10518
|
-
Vr
|
|
10519
|
-
]
|
|
10520
|
-
}), t[49] = g, t[50] = Vr, t[51] = j, t[52] = N, t[53] = L, t[54] = Hr) : Hr = t[54];
|
|
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];
|
|
10521
10514
|
let Ur;
|
|
10522
|
-
t[
|
|
10515
|
+
t[49] !== h || t[50] !== Hr || t[51] !== A || t[52] !== M || t[53] !== F ? (Ur = (0, import_jsx_runtime.jsxs)(h, {
|
|
10516
|
+
value: A,
|
|
10517
|
+
onValueChange: M,
|
|
10523
10518
|
children: [
|
|
10524
|
-
|
|
10519
|
+
F,
|
|
10525
10520
|
Hr
|
|
10526
10521
|
]
|
|
10527
|
-
}), t[
|
|
10528
|
-
let
|
|
10529
|
-
t[
|
|
10530
|
-
|
|
10531
|
-
|
|
10522
|
+
}), t[49] = h, t[50] = Hr, t[51] = A, t[52] = M, t[53] = F, t[54] = Ur) : Ur = t[54];
|
|
10523
|
+
let Wr;
|
|
10524
|
+
t[55] !== Ur || t[56] !== I ? (Wr = (0, import_jsx_runtime.jsxs)("div", {
|
|
10525
|
+
children: [
|
|
10526
|
+
I,
|
|
10527
|
+
Ur
|
|
10528
|
+
]
|
|
10529
|
+
}), t[55] = Ur, t[56] = I, t[57] = Wr) : Wr = t[57];
|
|
10530
|
+
let H = !o.trim(), U;
|
|
10531
|
+
t[58] !== D || t[59] !== H ? (U = (0, import_jsx_runtime.jsx)(Button, {
|
|
10532
|
+
onClick: D,
|
|
10533
|
+
disabled: H,
|
|
10532
10534
|
size: "sm",
|
|
10533
10535
|
className: "w-full",
|
|
10534
10536
|
children: "Add"
|
|
10535
|
-
}), t[58] =
|
|
10536
|
-
let
|
|
10537
|
-
t[61] !==
|
|
10538
|
-
className:
|
|
10537
|
+
}), t[58] = D, t[59] = H, t[60] = U) : U = t[60];
|
|
10538
|
+
let Gr;
|
|
10539
|
+
t[61] !== Wr || t[62] !== U || t[63] !== zr || t[64] !== B ? (Gr = (0, import_jsx_runtime.jsxs)("div", {
|
|
10540
|
+
className: zr,
|
|
10539
10541
|
children: [
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10542
|
+
B,
|
|
10543
|
+
Wr,
|
|
10544
|
+
U
|
|
10543
10545
|
]
|
|
10544
|
-
}), t[61] =
|
|
10546
|
+
}), t[61] = Wr, t[62] = U, t[63] = zr, t[64] = B, t[65] = Gr) : Gr = t[65];
|
|
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];
|
|
10545
10552
|
let G;
|
|
10546
|
-
t[
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
}), t[66] = y, t[67] = Wr, t[68] = Br, t[69] = G) : G = t[69];
|
|
10553
|
+
t[70] !== S || t[71] !== W ? (G = (0, import_jsx_runtime.jsx)(S, {
|
|
10554
|
+
children: W
|
|
10555
|
+
}), t[70] = S, t[71] = W, t[72] = G) : G = t[72];
|
|
10550
10556
|
let K;
|
|
10551
|
-
t[
|
|
10552
|
-
children: G
|
|
10553
|
-
}), t[70] = C, t[71] = G, t[72] = K) : K = t[72];
|
|
10554
|
-
let q;
|
|
10555
|
-
return t[73] !== E || t[74] !== K || t[75] !== H ? (q = (0, import_jsx_runtime.jsxs)(E, {
|
|
10557
|
+
return t[73] !== C || t[74] !== G || t[75] !== V ? (K = (0, import_jsx_runtime.jsxs)(C, {
|
|
10556
10558
|
children: [
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
+
V,
|
|
10560
|
+
G
|
|
10559
10561
|
]
|
|
10560
|
-
}), t[73] =
|
|
10562
|
+
}), t[73] = C, t[74] = G, t[75] = V, t[76] = K) : K = t[76], K;
|
|
10561
10563
|
};
|
|
10562
10564
|
function _temp$1(e) {
|
|
10563
10565
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
@@ -10594,7 +10596,9 @@ let __tla = (async () => {
|
|
|
10594
10596
|
switch (i) {
|
|
10595
10597
|
case "insert": {
|
|
10596
10598
|
if (!o) return Logger.error("newName is required for insert"), t;
|
|
10597
|
-
let e2 =
|
|
10599
|
+
let e2 = [
|
|
10600
|
+
...t.entries()
|
|
10601
|
+
], i2 = [
|
|
10598
10602
|
...e2.slice(0, r),
|
|
10599
10603
|
[
|
|
10600
10604
|
o,
|
|
@@ -10602,21 +10606,25 @@ let __tla = (async () => {
|
|
|
10602
10606
|
],
|
|
10603
10607
|
...e2.slice(r)
|
|
10604
10608
|
];
|
|
10605
|
-
return
|
|
10609
|
+
return new Map(i2);
|
|
10606
10610
|
}
|
|
10607
10611
|
case "remove": {
|
|
10608
|
-
if (r < 0 || r >=
|
|
10609
|
-
let e2 = (_a =
|
|
10612
|
+
if (r < 0 || r >= t.size) return t;
|
|
10613
|
+
let e2 = (_a = [
|
|
10614
|
+
...t.entries()
|
|
10615
|
+
][r]) == null ? void 0 : _a[0];
|
|
10610
10616
|
if (e2) {
|
|
10611
|
-
let
|
|
10612
|
-
return
|
|
10617
|
+
let n = new Map(t);
|
|
10618
|
+
return n.delete(e2), n;
|
|
10613
10619
|
}
|
|
10614
10620
|
return t;
|
|
10615
10621
|
}
|
|
10616
10622
|
case "rename": {
|
|
10617
10623
|
if (!o) return Logger.error("newName is required for rename"), t;
|
|
10618
|
-
if (r < 0 || r >=
|
|
10619
|
-
let e2 =
|
|
10624
|
+
if (r < 0 || r >= t.size) return t;
|
|
10625
|
+
let e2 = [
|
|
10626
|
+
...t.entries()
|
|
10627
|
+
], i2 = [
|
|
10620
10628
|
...e2.slice(0, r),
|
|
10621
10629
|
[
|
|
10622
10630
|
o,
|
|
@@ -10624,43 +10632,43 @@ let __tla = (async () => {
|
|
|
10624
10632
|
],
|
|
10625
10633
|
...e2.slice(r + 1)
|
|
10626
10634
|
];
|
|
10627
|
-
return
|
|
10635
|
+
return new Map(i2);
|
|
10628
10636
|
}
|
|
10629
10637
|
}
|
|
10630
10638
|
}
|
|
10631
10639
|
var import_compiler_runtime = require_compiler_runtime();
|
|
10632
10640
|
GlideDataEditor = (e) => {
|
|
10633
|
-
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:
|
|
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)(), [F, L] = (0, import_react.useState)(false), B;
|
|
10634
10642
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
10635
10643
|
columns: CompactSelection.empty(),
|
|
10636
10644
|
rows: CompactSelection.empty()
|
|
10637
10645
|
}, t[0] = B) : B = t[0];
|
|
10638
|
-
let [
|
|
10639
|
-
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10640
|
-
let [
|
|
10641
|
-
if (t[2] !== o || t[3] !==
|
|
10642
|
-
|
|
10643
|
-
for (let [e2, t2] of
|
|
10646
|
+
let [Br, Hr] = import_react.useState(B), Wr;
|
|
10647
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Wr = {}, t[1] = Wr) : Wr = t[1];
|
|
10648
|
+
let [H, U] = (0, import_react.useState)(Wr), Gr = useNonce(), W = (0, import_react.useRef)(false), G;
|
|
10649
|
+
if (t[2] !== o || t[3] !== H || t[4] !== f || t[5] !== k) {
|
|
10650
|
+
G = [];
|
|
10651
|
+
for (let [e2, t2] of o) {
|
|
10644
10652
|
let n2 = f === "all" || f.includes(e2);
|
|
10645
|
-
|
|
10653
|
+
G.push({
|
|
10646
10654
|
id: e2,
|
|
10647
10655
|
title: e2,
|
|
10648
|
-
width:
|
|
10656
|
+
width: H[e2],
|
|
10649
10657
|
icon: n2 ? getColumnHeaderIcon(t2) : GridColumnIcon.ProtectedColumnOverlay,
|
|
10650
10658
|
style: "normal",
|
|
10651
10659
|
kind: getColumnKind(t2),
|
|
10652
10660
|
dataType: t2,
|
|
10653
10661
|
hasMenu: true,
|
|
10654
10662
|
themeOverride: n2 ? void 0 : {
|
|
10655
|
-
bgCell:
|
|
10663
|
+
bgCell: k === "light" ? "#F9F9FA" : "#1e1e21"
|
|
10656
10664
|
}
|
|
10657
10665
|
});
|
|
10658
10666
|
}
|
|
10659
|
-
t[2] = o, t[3] =
|
|
10660
|
-
} else
|
|
10661
|
-
let
|
|
10662
|
-
t[7] !==
|
|
10663
|
-
if (
|
|
10667
|
+
t[2] = o, t[3] = H, t[4] = f, t[5] = k, t[6] = G;
|
|
10668
|
+
} else G = t[6];
|
|
10669
|
+
let K = G, Kr;
|
|
10670
|
+
t[7] !== K || t[8] !== n.length || t[9] !== m || t[10] !== Gr || t[11] !== u || t[12] !== a ? (Kr = () => {
|
|
10671
|
+
if (W.current || n.length === 0 || (W.current = true, m.length === 0)) return;
|
|
10664
10672
|
let e2 = /* @__PURE__ */ new Map();
|
|
10665
10673
|
for (let t3 of m) if (isPositionalEdit(t3)) if (t3.rowIdx >= n.length) {
|
|
10666
10674
|
e2.has(t3.rowIdx) || e2.set(t3.rowIdx, {});
|
|
@@ -10690,7 +10698,7 @@ let __tla = (async () => {
|
|
|
10690
10698
|
})), a((e3) => insertColumn(e3, t3.newName));
|
|
10691
10699
|
break bb59;
|
|
10692
10700
|
case BulkEdit.Rename: {
|
|
10693
|
-
let e3 =
|
|
10701
|
+
let e3 = K[t3.columnIdx].title, n2 = t3.newName;
|
|
10694
10702
|
if (!e3 || !n2) return;
|
|
10695
10703
|
u((e4) => modifyColumnFields({
|
|
10696
10704
|
columnFields: e4,
|
|
@@ -10706,15 +10714,15 @@ let __tla = (async () => {
|
|
|
10706
10714
|
t2.length > 0 && a((e3) => [
|
|
10707
10715
|
...e3,
|
|
10708
10716
|
...t2
|
|
10709
|
-
]),
|
|
10710
|
-
}, t[7] =
|
|
10711
|
-
let Kr;
|
|
10712
|
-
t[14] === n.length ? Kr = t[15] : (Kr = [
|
|
10713
|
-
n.length
|
|
10714
|
-
], t[14] = n.length, t[15] = Kr), (0, import_react.useEffect)(Gr, Kr);
|
|
10717
|
+
]), Gr();
|
|
10718
|
+
}, t[7] = K, t[8] = n.length, t[9] = m, t[10] = Gr, t[11] = u, t[12] = a, t[13] = Kr) : Kr = t[13];
|
|
10715
10719
|
let qr;
|
|
10716
|
-
t[
|
|
10717
|
-
|
|
10720
|
+
t[14] === n.length ? qr = t[15] : (qr = [
|
|
10721
|
+
n.length
|
|
10722
|
+
], t[14] = n.length, t[15] = qr), (0, import_react.useEffect)(Kr, qr);
|
|
10723
|
+
let Jr;
|
|
10724
|
+
t[16] !== K || t[17] !== n || t[18] !== f ? (Jr = (e2) => {
|
|
10725
|
+
let [t2, r] = e2, i = n[r][K[t2].title], a2 = K[t2].kind, o2 = f === "all" || f.includes(K[t2].title);
|
|
10718
10726
|
if (a2 === GridCellKind.Boolean) {
|
|
10719
10727
|
let e3 = !!i;
|
|
10720
10728
|
return {
|
|
@@ -10737,10 +10745,10 @@ let __tla = (async () => {
|
|
|
10737
10745
|
displayData: String(i),
|
|
10738
10746
|
data: String(i)
|
|
10739
10747
|
};
|
|
10740
|
-
}, t[16] =
|
|
10741
|
-
let
|
|
10742
|
-
t[20] !==
|
|
10743
|
-
let [n2, r] = e2, i =
|
|
10748
|
+
}, t[16] = K, t[17] = n, t[18] = f, t[19] = Jr) : Jr = t[19];
|
|
10749
|
+
let Yr = Jr, Xr;
|
|
10750
|
+
t[20] !== K || t[21] !== h || t[22] !== a ? (Xr = (e2, t2) => {
|
|
10751
|
+
let [n2, r] = e2, i = K[n2], o2 = i.title, s = t2.data;
|
|
10744
10752
|
(i.dataType === "number" || i.dataType === "integer") && (t2.data === void 0 || t2.data === "") && (s = null), a((e3) => {
|
|
10745
10753
|
let t3 = [
|
|
10746
10754
|
...e3
|
|
@@ -10753,18 +10761,18 @@ let __tla = (async () => {
|
|
|
10753
10761
|
value: s
|
|
10754
10762
|
}
|
|
10755
10763
|
]);
|
|
10756
|
-
}, t[20] =
|
|
10757
|
-
let
|
|
10758
|
-
t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10759
|
-
|
|
10764
|
+
}, t[20] = K, t[21] = h, t[22] = a, t[23] = Xr) : Xr = t[23];
|
|
10765
|
+
let Zr = Xr, Qr;
|
|
10766
|
+
t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qr = (e2, t2) => {
|
|
10767
|
+
U((n2) => ({
|
|
10760
10768
|
...n2,
|
|
10761
10769
|
[e2.title]: t2
|
|
10762
10770
|
}));
|
|
10763
|
-
}, t[24] =
|
|
10764
|
-
let
|
|
10765
|
-
t[25] !== o || t[26] !==
|
|
10766
|
-
let [r] = e2, i =
|
|
10767
|
-
bb134: switch (
|
|
10771
|
+
}, t[24] = Qr) : Qr = t[24];
|
|
10772
|
+
let $r = Qr, ei;
|
|
10773
|
+
t[25] !== o || t[26] !== K ? (ei = (e2, t2, n2) => {
|
|
10774
|
+
let [r] = e2, i = K[r].title, a2 = o.get(i);
|
|
10775
|
+
bb134: switch (a2) {
|
|
10768
10776
|
case "number":
|
|
10769
10777
|
case "integer":
|
|
10770
10778
|
if (Number.isNaN(Number(t2.data))) return false;
|
|
@@ -10773,117 +10781,117 @@ let __tla = (async () => {
|
|
|
10773
10781
|
if (typeof t2.data != "boolean") return false;
|
|
10774
10782
|
}
|
|
10775
10783
|
return true;
|
|
10776
|
-
}, t[25] = o, t[26] =
|
|
10777
|
-
let
|
|
10778
|
-
t[28] !==
|
|
10779
|
-
if (
|
|
10784
|
+
}, t[25] = o, t[26] = K, t[27] = ei) : ei = t[27];
|
|
10785
|
+
let ti = ei, ni;
|
|
10786
|
+
t[28] !== K || t[29] !== n || t[30] !== f || t[31] !== h || t[32] !== Br || t[33] !== a ? (ni = (e2) => {
|
|
10787
|
+
if (j.current) {
|
|
10780
10788
|
if (Events.isMetaOrCtrl(e2) && e2.key === "c") {
|
|
10781
|
-
|
|
10789
|
+
j.current.emit("copy");
|
|
10782
10790
|
return;
|
|
10783
10791
|
}
|
|
10784
10792
|
if (Events.isMetaOrCtrl(e2) && e2.key === "v") {
|
|
10785
10793
|
pasteCells({
|
|
10786
|
-
selection:
|
|
10794
|
+
selection: Br,
|
|
10787
10795
|
data: n,
|
|
10788
10796
|
setData: a,
|
|
10789
|
-
columns:
|
|
10797
|
+
columns: K,
|
|
10790
10798
|
editableColumns: f,
|
|
10791
10799
|
onAddEdits: h
|
|
10792
10800
|
});
|
|
10793
10801
|
return;
|
|
10794
10802
|
}
|
|
10795
10803
|
if (Events.isMetaOrCtrl(e2) && e2.key === "f") {
|
|
10796
|
-
|
|
10804
|
+
L(_temp3), e2.stopPropagation(), e2.preventDefault();
|
|
10797
10805
|
return;
|
|
10798
10806
|
}
|
|
10799
10807
|
if (e2.key === "Escape") {
|
|
10800
|
-
|
|
10808
|
+
L(false);
|
|
10801
10809
|
return;
|
|
10802
10810
|
}
|
|
10803
10811
|
}
|
|
10804
|
-
}, t[28] =
|
|
10805
|
-
let
|
|
10806
|
-
t[35] !==
|
|
10807
|
-
let e2 = Object.fromEntries(
|
|
10812
|
+
}, t[28] = K, t[29] = n, t[30] = f, t[31] = h, t[32] = Br, t[33] = a, t[34] = ni) : ni = t[34];
|
|
10813
|
+
let q = ni, ri;
|
|
10814
|
+
t[35] !== K || t[36] !== g || t[37] !== a ? (ri = () => {
|
|
10815
|
+
let e2 = Object.fromEntries(K.map(_temp4));
|
|
10808
10816
|
g([
|
|
10809
10817
|
e2
|
|
10810
10818
|
]), a((t2) => [
|
|
10811
10819
|
...t2,
|
|
10812
10820
|
e2
|
|
10813
10821
|
]);
|
|
10814
|
-
}, t[35] =
|
|
10815
|
-
let
|
|
10816
|
-
t[39] !== y || t[40] !==
|
|
10817
|
-
let e2 =
|
|
10822
|
+
}, t[35] = K, t[36] = g, t[37] = a, t[38] = ri) : ri = t[38];
|
|
10823
|
+
let J = ri, ii;
|
|
10824
|
+
t[39] !== y || t[40] !== Br.rows || t[41] !== a ? (ii = () => {
|
|
10825
|
+
let e2 = Br.rows.toArray();
|
|
10818
10826
|
y(e2);
|
|
10819
10827
|
let t2 = 0;
|
|
10820
10828
|
for (let n2 of e2) {
|
|
10821
10829
|
let e3 = n2 - t2;
|
|
10822
10830
|
a((t3) => t3.filter((t4, n3) => n3 !== e3)), t2++;
|
|
10823
10831
|
}
|
|
10824
|
-
|
|
10832
|
+
Hr({
|
|
10825
10833
|
columns: CompactSelection.empty(),
|
|
10826
10834
|
rows: CompactSelection.empty()
|
|
10827
10835
|
});
|
|
10828
|
-
}, t[39] = y, t[40] =
|
|
10829
|
-
let
|
|
10830
|
-
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10836
|
+
}, t[39] = y, t[40] = Br.rows, t[41] = a, t[42] = ii) : ii = t[42];
|
|
10837
|
+
let ai = ii, oi;
|
|
10838
|
+
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oi = (e2, t2) => {
|
|
10831
10839
|
P({
|
|
10832
10840
|
col: e2,
|
|
10833
10841
|
bounds: t2
|
|
10834
10842
|
});
|
|
10835
|
-
}, t[43] =
|
|
10836
|
-
let
|
|
10837
|
-
t[44] !==
|
|
10838
|
-
if (
|
|
10839
|
-
let e2 =
|
|
10843
|
+
}, t[43] = oi) : oi = t[43];
|
|
10844
|
+
let si = useEvent_default(oi), ci;
|
|
10845
|
+
t[44] !== K || t[45] !== N ? (ci = async () => {
|
|
10846
|
+
if (N) {
|
|
10847
|
+
let e2 = K[N.col].title;
|
|
10840
10848
|
await copyToClipboard(e2), P(void 0);
|
|
10841
10849
|
}
|
|
10842
|
-
}, t[44] =
|
|
10843
|
-
let
|
|
10844
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
10850
|
+
}, t[44] = K, t[45] = N, t[46] = ci) : ci = t[46];
|
|
10851
|
+
let di = ci, Y;
|
|
10852
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = function(e2) {
|
|
10845
10853
|
toast({
|
|
10846
10854
|
title: `Column '${e2}' already exists`,
|
|
10847
10855
|
description: "Please enter a different column name",
|
|
10848
10856
|
variant: "danger"
|
|
10849
10857
|
});
|
|
10850
|
-
}, t[47] =
|
|
10851
|
-
let fi =
|
|
10852
|
-
t[48] !== o || t[49] !==
|
|
10853
|
-
if (
|
|
10854
|
-
let t2 =
|
|
10855
|
-
if (o
|
|
10858
|
+
}, t[47] = Y) : Y = t[47];
|
|
10859
|
+
let fi = Y, pi;
|
|
10860
|
+
t[48] !== o || t[49] !== K || t[50] !== N || t[51] !== x || t[52] !== u || t[53] !== a ? (pi = (e2) => {
|
|
10861
|
+
if (N) {
|
|
10862
|
+
let t2 = K[N.col].title;
|
|
10863
|
+
if (o.has(e2)) {
|
|
10856
10864
|
fi(e2);
|
|
10857
10865
|
return;
|
|
10858
10866
|
}
|
|
10859
|
-
let n2 =
|
|
10860
|
-
x(
|
|
10867
|
+
let n2 = K[N.col].dataType;
|
|
10868
|
+
x(N.col, e2), u((t3) => modifyColumnFields({
|
|
10861
10869
|
columnFields: t3,
|
|
10862
|
-
columnIdx:
|
|
10870
|
+
columnIdx: N.col,
|
|
10863
10871
|
type: "rename",
|
|
10864
10872
|
dataType: n2,
|
|
10865
10873
|
newColumnName: e2
|
|
10866
10874
|
})), a((n3) => renameColumn(n3, t2, e2)), P(void 0);
|
|
10867
10875
|
}
|
|
10868
|
-
}, t[48] = o, t[49] =
|
|
10876
|
+
}, t[48] = o, t[49] = K, t[50] = N, t[51] = x, t[52] = u, t[53] = a, t[54] = pi) : pi = t[54];
|
|
10869
10877
|
let mi = pi, X;
|
|
10870
|
-
t[55] !==
|
|
10871
|
-
|
|
10878
|
+
t[55] !== N || t[56] !== S || t[57] !== u || t[58] !== a ? (X = () => {
|
|
10879
|
+
N && (S(N.col), u((e2) => modifyColumnFields({
|
|
10872
10880
|
columnFields: e2,
|
|
10873
|
-
columnIdx:
|
|
10881
|
+
columnIdx: N.col,
|
|
10874
10882
|
type: "remove"
|
|
10875
|
-
})), a((e2) => removeColumn(e2,
|
|
10876
|
-
}, t[55] =
|
|
10883
|
+
})), a((e2) => removeColumn(e2, N.col)), P(void 0));
|
|
10884
|
+
}, t[55] = N, t[56] = S, t[57] = u, t[58] = a, t[59] = X) : X = t[59];
|
|
10877
10885
|
let hi = X, gi;
|
|
10878
|
-
t[60] !== o || t[61] !==
|
|
10886
|
+
t[60] !== o || t[61] !== K.length || t[62] !== N || t[63] !== E || t[64] !== u || t[65] !== a ? (gi = (e2) => {
|
|
10879
10887
|
let { direction: t2, columnName: n2, dataType: r } = e2;
|
|
10880
|
-
if (
|
|
10881
|
-
let e3 =
|
|
10882
|
-
if (o
|
|
10888
|
+
if (N) {
|
|
10889
|
+
let e3 = N.col + (t2 === "left" ? 0 : 1), i = Math.max(0, Math.min(e3, K.length));
|
|
10890
|
+
if (o.has(n2)) {
|
|
10883
10891
|
fi(n2);
|
|
10884
10892
|
return;
|
|
10885
10893
|
}
|
|
10886
|
-
|
|
10894
|
+
E(i, n2), u((e4) => modifyColumnFields({
|
|
10887
10895
|
columnFields: e4,
|
|
10888
10896
|
columnIdx: i,
|
|
10889
10897
|
type: "insert",
|
|
@@ -10891,20 +10899,20 @@ let __tla = (async () => {
|
|
|
10891
10899
|
newColumnName: n2
|
|
10892
10900
|
})), a((e4) => insertColumn(e4, n2)), P(void 0);
|
|
10893
10901
|
}
|
|
10894
|
-
}, t[60] = o, t[61] =
|
|
10895
|
-
let _i = gi, yi = (
|
|
10902
|
+
}, t[60] = o, t[61] = K.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) === K.length - 1, bi = N !== void 0, xi;
|
|
10896
10904
|
t[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xi = {
|
|
10897
10905
|
hint: "New row",
|
|
10898
10906
|
sticky: true,
|
|
10899
10907
|
tint: true
|
|
10900
10908
|
}, t[67] = xi) : xi = t[67];
|
|
10901
10909
|
let Si = xi, Ci = n.length > 1e5, wi = f === "all", Ti;
|
|
10902
|
-
t[68] !== wi || t[69] !==
|
|
10910
|
+
t[68] !== wi || t[69] !== K || t[70] !== _i || t[71] !== di || t[72] !== hi || t[73] !== mi || t[74] !== Ci || t[75] !== yi || t[76] !== bi || t[77] !== N ? (Ti = () => {
|
|
10903
10911
|
if (!bi) return;
|
|
10904
10912
|
let e2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10905
10913
|
children: [
|
|
10906
10914
|
wi && (0, import_jsx_runtime.jsx)(RenameColumnSub, {
|
|
10907
|
-
currentColumnName:
|
|
10915
|
+
currentColumnName: K[N.col].title,
|
|
10908
10916
|
onRename: mi,
|
|
10909
10917
|
onCancel: () => P(void 0)
|
|
10910
10918
|
}),
|
|
@@ -10945,13 +10953,13 @@ let __tla = (async () => {
|
|
|
10945
10953
|
onOpenChange: (e3) => !e3 && P(void 0),
|
|
10946
10954
|
children: (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
10947
10955
|
style: {
|
|
10948
|
-
left: (
|
|
10949
|
-
top: ((
|
|
10956
|
+
left: (N == null ? void 0 : N.bounds.x) ?? 0,
|
|
10957
|
+
top: ((N == null ? void 0 : N.bounds.y) ?? 0) + ((N == null ? void 0 : N.bounds.height) ?? 0)
|
|
10950
10958
|
},
|
|
10951
10959
|
className: "fixed w-52",
|
|
10952
10960
|
children: [
|
|
10953
10961
|
(0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
10954
|
-
onClick:
|
|
10962
|
+
onClick: di,
|
|
10955
10963
|
children: [
|
|
10956
10964
|
(0, import_jsx_runtime.jsx)(Copy, {
|
|
10957
10965
|
className: "mr-2 h-3.5 w-3.5"
|
|
@@ -10963,60 +10971,60 @@ let __tla = (async () => {
|
|
|
10963
10971
|
]
|
|
10964
10972
|
})
|
|
10965
10973
|
});
|
|
10966
|
-
}, t[68] = wi, t[69] =
|
|
10974
|
+
}, t[68] = wi, t[69] = K, t[70] = _i, t[71] = di, t[72] = hi, t[73] = mi, t[74] = Ci, t[75] = yi, t[76] = bi, t[77] = N, t[78] = Ti) : Ti = t[78];
|
|
10967
10975
|
let Ei = Ti, Di = n.length, Oi = !Ci, ki = !Ci, Ai = n.length > 10 ? 450 : void 0, ji;
|
|
10968
10976
|
t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ji = {
|
|
10969
10977
|
kind: "both"
|
|
10970
10978
|
}, t[79] = ji) : ji = t[79];
|
|
10971
10979
|
let Mi;
|
|
10972
|
-
t[80] ===
|
|
10980
|
+
t[80] === k ? Mi = t[81] : (Mi = getGlideTheme(k), t[80] = k, t[81] = Mi);
|
|
10973
10981
|
let Ni;
|
|
10974
|
-
t[82] !==
|
|
10982
|
+
t[82] !== K || t[83] !== n.length || t[84] !== Yr || t[85] !== Zr || t[86] !== si || t[87] !== q || t[88] !== J || t[89] !== Br || t[90] !== F || t[91] !== Oi || t[92] !== ki || t[93] !== Ai || t[94] !== Mi || t[95] !== ti ? (Ni = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
10975
10983
|
children: (0, import_jsx_runtime.jsx)(DataEditorAll, {
|
|
10976
|
-
ref:
|
|
10977
|
-
getCellContent:
|
|
10978
|
-
columns:
|
|
10979
|
-
gridSelection:
|
|
10980
|
-
onGridSelectionChange:
|
|
10984
|
+
ref: j,
|
|
10985
|
+
getCellContent: Yr,
|
|
10986
|
+
columns: K,
|
|
10987
|
+
gridSelection: Br,
|
|
10988
|
+
onGridSelectionChange: Hr,
|
|
10981
10989
|
rows: Di,
|
|
10982
10990
|
overscrollX: 50,
|
|
10983
10991
|
smoothScrollX: Oi,
|
|
10984
10992
|
smoothScrollY: ki,
|
|
10985
|
-
validateCell:
|
|
10993
|
+
validateCell: ti,
|
|
10986
10994
|
getCellsForSelection: true,
|
|
10987
10995
|
onPaste: true,
|
|
10988
10996
|
showSearch: F,
|
|
10989
10997
|
fillHandle: true,
|
|
10990
10998
|
allowedFillDirections: "vertical",
|
|
10991
|
-
onKeyDown:
|
|
10999
|
+
onKeyDown: q,
|
|
10992
11000
|
height: Ai,
|
|
10993
11001
|
width: "100%",
|
|
10994
11002
|
rowMarkers: ji,
|
|
10995
11003
|
rowSelectionMode: "multi",
|
|
10996
|
-
onCellEdited:
|
|
10997
|
-
onColumnResize:
|
|
10998
|
-
onHeaderMenuClick:
|
|
11004
|
+
onCellEdited: Zr,
|
|
11005
|
+
onColumnResize: $r,
|
|
11006
|
+
onHeaderMenuClick: si,
|
|
10999
11007
|
theme: Mi,
|
|
11000
11008
|
trailingRowOptions: Si,
|
|
11001
|
-
onRowAppended:
|
|
11009
|
+
onRowAppended: J,
|
|
11002
11010
|
maxColumnAutoWidth: 600,
|
|
11003
11011
|
maxColumnWidth: 600
|
|
11004
11012
|
})
|
|
11005
|
-
}), t[82] =
|
|
11013
|
+
}), t[82] = K, t[83] = n.length, t[84] = Yr, t[85] = Zr, t[86] = si, t[87] = q, t[88] = J, t[89] = Br, t[90] = F, t[91] = Oi, t[92] = ki, t[93] = Ai, t[94] = Mi, t[95] = ti, t[96] = Ni) : Ni = t[96];
|
|
11006
11014
|
let Pi;
|
|
11007
11015
|
t[97] === Ei ? Pi = t[98] : (Pi = Ei(), t[97] = Ei, t[98] = Pi);
|
|
11008
|
-
let Fi =
|
|
11009
|
-
t[99] !==
|
|
11016
|
+
let Fi = Br.rows.length === 0, Ii = Br.rows.length <= 1 ? "Delete row" : "Delete rows", Li;
|
|
11017
|
+
t[99] !== ai || t[100] !== Fi || t[101] !== Ii ? (Li = (0, import_jsx_runtime.jsx)("div", {
|
|
11010
11018
|
className: "absolute bottom-1 right-2 w-26",
|
|
11011
11019
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
11012
11020
|
variant: "destructive",
|
|
11013
11021
|
size: "sm",
|
|
11014
11022
|
disabled: Fi,
|
|
11015
11023
|
className: "right-2 h-7",
|
|
11016
|
-
onClick:
|
|
11024
|
+
onClick: ai,
|
|
11017
11025
|
children: Ii
|
|
11018
11026
|
})
|
|
11019
|
-
}), t[99] =
|
|
11027
|
+
}), t[99] = ai, t[100] = Fi, t[101] = Ii, t[102] = Li) : Li = t[102];
|
|
11020
11028
|
let Ri;
|
|
11021
11029
|
return t[103] !== Ni || t[104] !== Pi || t[105] !== Li ? (Ri = (0, import_jsx_runtime.jsxs)("div", {
|
|
11022
11030
|
className: "relative w-full min-w-0",
|