@piwitests/server 0.19.0 → 0.20.0
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{eptP4pGv.js → -f7BAm1H.js} +1 -1
- package/.output/public/_nuxt/{Bti38m-M.js → 4gYNA-d4.js} +1 -1
- package/.output/public/_nuxt/{CHEFCN8Q.js → 5A6ITZXj.js} +1 -1
- package/.output/public/_nuxt/{DoUy4UHi.js → 8PUUncmO.js} +2 -2
- package/.output/public/_nuxt/{DS636elg.js → A1pj0VnG.js} +1 -1
- package/.output/public/_nuxt/{B9WhzpKO.js → AbmKWFQQ.js} +1 -1
- package/.output/public/_nuxt/{rWNTSFD6.js → B3obW6cw.js} +3 -3
- package/.output/public/_nuxt/{Bu2aaVIY.js → B7FTvFWq.js} +1 -1
- package/.output/public/_nuxt/{CpjgB2aY.js → B8zkOmwo.js} +1 -1
- package/.output/public/_nuxt/B96M2gdj.js +1 -0
- package/.output/public/_nuxt/{FUXhyidq.js → B99fbi73.js} +1 -1
- package/.output/public/_nuxt/{DslPMqfa.js → B9OLmp0f.js} +1 -1
- package/.output/public/_nuxt/{BccXfBfI.js → BKkF4pPD.js} +1 -1
- package/.output/public/_nuxt/{DP8hfJ9h.js → BT3wGCTI.js} +1 -1
- package/.output/public/_nuxt/{B3B9Ii2A.js → BUa0V0Ly.js} +1 -1
- package/.output/public/_nuxt/{B3HO8kuh.js → BUkim3TM.js} +1 -1
- package/.output/public/_nuxt/{BVaxh6Nl.js → BVc14Ncz.js} +3 -3
- package/.output/public/_nuxt/{DW0xl3I6.js → BY0HxR3t.js} +1 -1
- package/.output/public/_nuxt/B_xAMWQS.js +2 -0
- package/.output/public/_nuxt/{C2_3mdPC.js → BdQoBaOv.js} +1 -1
- package/.output/public/_nuxt/{DT53RWbC.js → BdfhYr-u.js} +1 -1
- package/.output/public/_nuxt/{CtQBsNUb.js → BgRu_3tT.js} +1 -1
- package/.output/public/_nuxt/{SlIRLREZ.js → BiO7RBWb.js} +1 -1
- package/.output/public/_nuxt/BicAJ6U8.js +1 -0
- package/.output/public/_nuxt/{C7P1UCO2.js → Bm62iDV5.js} +1 -1
- package/.output/public/_nuxt/{CZfMdzfk.js → BmUfSNMV.js} +1 -1
- package/.output/public/_nuxt/{tvgqrYDd.js → Bnxf8nbZ.js} +1 -1
- package/.output/public/_nuxt/{ndShiWE8.js → Bow4tTR0.js} +1 -1
- package/.output/public/_nuxt/{D0HNloZ9.js → BrQEE053.js} +1 -1
- package/.output/public/_nuxt/{CV9-fTmY.js → BzRRzmwm.js} +1 -1
- package/.output/public/_nuxt/{DprVVyUQ.js → C0_yH0N7.js} +1 -1
- package/.output/public/_nuxt/{DLSrtpsA.js → C1gTN4Q8.js} +1 -1
- package/.output/public/_nuxt/{ClOqkAcc.js → C2hkrSey.js} +1 -1
- package/.output/public/_nuxt/{ZFiQCMUB.js → C8e1EbJI.js} +1 -1
- package/.output/public/_nuxt/{nv9-6vBK.js → CA9B2HE5.js} +1 -1
- package/.output/public/_nuxt/{KnfsST6Y.js → CAAwCT7H.js} +1 -1
- package/.output/public/_nuxt/{ybDYeNxd.js → CAvY22RE.js} +1 -1
- package/.output/public/_nuxt/{C5iG7O4O.js → CEfS4-oS.js} +1 -1
- package/.output/public/_nuxt/{Bp5ELvx9.js → CIoSMkpp.js} +1 -1
- package/.output/public/_nuxt/{C95YAaJq.js → CIrFl3MW.js} +1 -1
- package/.output/public/_nuxt/{DiOLdHBC.js → CJFtzlQ4.js} +1 -1
- package/.output/public/_nuxt/{BX9ZXe98.js → CNyV9YpI.js} +1 -1
- package/.output/public/_nuxt/CSJ-eOQM.js +1 -0
- package/.output/public/_nuxt/{fVcG504p.js → CTU1mrhq.js} +1 -1
- package/.output/public/_nuxt/{279D2RYp.js → CXEH9OPk.js} +1 -1
- package/.output/public/_nuxt/CahpB9Z2.js +5 -0
- package/.output/public/_nuxt/{B7NBP1C-.js → Cbh--1MW.js} +1 -1
- package/.output/public/_nuxt/CeG9pBAD.js +1 -0
- package/.output/public/_nuxt/{D55D4EYo.js → CeW8v31b.js} +1 -1
- package/.output/public/_nuxt/{BuMC3WjZ.js → CjPfj7ya.js} +1 -1
- package/.output/public/_nuxt/{HXerICAi.js → Cnsmicv2.js} +1 -1
- package/.output/public/_nuxt/{DgE2YE3R.js → CsLojMwR.js} +1 -1
- package/.output/public/_nuxt/{C9_jrmk9.js → Cus22Ud3.js} +2 -2
- package/.output/public/_nuxt/{DX-MDGb3.js → CwGWJbiy.js} +1 -1
- package/.output/public/_nuxt/{BJ0XQElc.js → Cx6gc2VW.js} +1 -1
- package/.output/public/_nuxt/{cHAnlQbv.js → CxyAzHr3.js} +1 -1
- package/.output/public/_nuxt/{BxCKKeYs.js → CzAPFPpL.js} +1 -1
- package/.output/public/_nuxt/{B33iXw77.js → D--H4jLI.js} +1 -1
- package/.output/public/_nuxt/D1POo6S4.js +10 -0
- package/.output/public/_nuxt/{BDicZ1gQ.js → D5tke0B5.js} +1 -1
- package/.output/public/_nuxt/D8nkF-OO.js +3 -0
- package/.output/public/_nuxt/{CzGyac8q.js → DA25RkyK.js} +1 -1
- package/.output/public/_nuxt/{CUtJobDm.js → DIB-5fUJ.js} +1 -1
- package/.output/public/_nuxt/{BPRffDuo.js → DJmoLeVt.js} +1 -1
- package/.output/public/_nuxt/{DGfAxLHV.js → DJxlKFGb.js} +1 -1
- package/.output/public/_nuxt/{81InBX9v.js → DMec-OLo.js} +1 -1
- package/.output/public/_nuxt/{CK_2LZBS.js → DPCxhHri.js} +1 -1
- package/.output/public/_nuxt/{Bn0YQDyy.js → DSqHUrvO.js} +1 -1
- package/.output/public/_nuxt/{BqV0l12c.js → DabzhQB1.js} +1 -1
- package/.output/public/_nuxt/{BfTuX0wq.js → DdwHkKfV.js} +1 -1
- package/.output/public/_nuxt/{C-elpgyr.js → DeY2JkR2.js} +1 -1
- package/.output/public/_nuxt/{DEFEpYzn.js → DfgOx_ou.js} +1 -1
- package/.output/public/_nuxt/DmkUdSS4.js +1 -0
- package/.output/public/_nuxt/{Ar3IelOY.js → DoIREDVb.js} +1 -1
- package/.output/public/_nuxt/DpZ1r1HA.js +1 -0
- package/.output/public/_nuxt/{Jo8kRmHz.js → Dpd16JVI.js} +1 -1
- package/.output/public/_nuxt/{BSIxhGsh.js → DqcKngf3.js} +1 -1
- package/.output/public/_nuxt/{BMvCSA6h.js → DrfE8IY0.js} +1 -1
- package/.output/public/_nuxt/{eaVkJRSa.js → DsesNydr.js} +1 -1
- package/.output/public/_nuxt/{zQyPuvV1.js → DtHJgCS8.js} +1 -1
- package/.output/public/_nuxt/Dtd4rC58.js +9 -0
- package/.output/public/_nuxt/{NQikbhmK.js → Du2W7Jne.js} +37 -36
- package/.output/public/_nuxt/{CDk0q2hV.js → DuwtTfO8.js} +1 -1
- package/.output/public/_nuxt/{B44A4LSJ.js → Dy-TJ0Mt.js} +1 -1
- package/.output/public/_nuxt/{-09h6CA9.js → Dy86h-7P.js} +1 -1
- package/.output/public/_nuxt/{Cdff9XNh.js → Dyeqn3aG.js} +1 -1
- package/.output/public/_nuxt/{Dnpkl-1q.js → FaFoMVKo.js} +1 -1
- package/.output/public/_nuxt/GPNI1ffD.js +4 -0
- package/.output/public/_nuxt/{BCMuIgP5.js → H94BMf3L.js} +1 -1
- package/.output/public/_nuxt/HPNQD6v3.js +1 -0
- package/.output/public/_nuxt/HXadJrHu.js +2 -0
- package/.output/public/_nuxt/{YVN7WG7q.js → KyA_4Ks-.js} +1 -1
- package/.output/public/_nuxt/{CYsTqbBS.js → L3kAWB2a.js} +1 -1
- package/.output/public/_nuxt/{Dk9fwOCm.js → McL25vkx.js} +2 -2
- package/.output/public/_nuxt/Nn93e_Mz.js +1 -0
- package/.output/public/_nuxt/UdR3DBPS.js +1 -0
- package/.output/public/_nuxt/{SfMRXW25.js → Und3xXFc.js} +1 -1
- package/.output/public/_nuxt/_mj6CfPa.js +1 -0
- package/.output/public/_nuxt/{BPQoBGg5.js → b-GYfcrQ.js} +1 -1
- package/.output/public/_nuxt/{DHDtnj7p.js → bLcjFslv.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/e659b3e1-0e61-4971-940e-10063f9f4763.json +1 -0
- package/.output/public/_nuxt/entry.DmptwB51.css +1 -0
- package/.output/public/_nuxt/{y17lMTFy.js → hC_z4G8p.js} +1 -1
- package/.output/public/_nuxt/{CTxDO9fB.js → hNh4CIL0.js} +1 -1
- package/.output/public/_nuxt/{CGNkHojN.js → l5WKbU4h.js} +1 -1
- package/.output/public/_nuxt/{DcmZRa_F.js → oAClCn_h.js} +1 -1
- package/.output/public/_nuxt/{IvQlbZk6.js → pQqGiNch.js} +1 -1
- package/.output/public/_nuxt/ryMzSDUj.js +2 -0
- package/.output/server/chunks/_/collect.mjs +1 -1
- package/.output/server/chunks/_/markers.mjs +1 -1
- package/.output/server/chunks/_/quarantine.mjs +1 -1
- package/.output/server/chunks/_/users.mjs +1 -1
- package/.output/server/chunks/build/{BrowserBadge-D33lqUcj.mjs → BrowserBadge-MFvBwxmD.mjs} +66 -6
- package/.output/server/chunks/build/BrowserBadge-MFvBwxmD.mjs.map +1 -0
- package/.output/server/chunks/build/{Checkbox-DvUBGagc.mjs → Checkbox-4Q5d0fa0.mjs} +4 -4
- package/.output/server/chunks/build/Checkbox-4Q5d0fa0.mjs.map +1 -0
- package/.output/server/chunks/build/CiEnvCard-DB5DvBh1.mjs +1492 -0
- package/.output/server/chunks/build/CiEnvCard-DB5DvBh1.mjs.map +1 -0
- package/.output/server/chunks/build/CodeBlock-BgE-NSmE.mjs +1 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-DCTnHiIv.mjs +1 -1
- package/.output/server/chunks/build/{DiagnosisPanel-B646dK4p.mjs → DiagnosisPanel-CALyEmcJ.mjs} +3 -3
- package/.output/server/chunks/build/DiagnosisPanel-CALyEmcJ.mjs.map +1 -0
- package/.output/server/chunks/build/{EmptyState-Dtlab7S9.mjs → EmptyState-DC2q_7TD.mjs} +3 -3
- package/.output/server/chunks/build/EmptyState-DC2q_7TD.mjs.map +1 -0
- package/.output/server/chunks/build/{EntityLinks-D3fp57pR.mjs → EntityLinks-BBHWssHH.mjs} +4 -4
- package/.output/server/chunks/build/EntityLinks-BBHWssHH.mjs.map +1 -0
- package/.output/server/chunks/build/{EnvManagedBadge-Bg3FSiU1.mjs → EnvManagedBadge-UwD2b9v2.mjs} +2 -2
- package/.output/server/chunks/build/EnvManagedBadge-UwD2b9v2.mjs.map +1 -0
- package/.output/server/chunks/build/{Modal-Ck2XLt8d.mjs → Modal-pSDlXzT3.mjs} +2 -2
- package/.output/server/chunks/build/Modal-pSDlXzT3.mjs.map +1 -0
- package/.output/server/chunks/build/{OpenInIdeLink-C4MXA8ya.mjs → OpenInIdeLink-CQWKKChd.mjs} +3 -3
- package/.output/server/chunks/build/{OpenInIdeLink-C4MXA8ya.mjs.map → OpenInIdeLink-CQWKKChd.mjs.map} +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-CxfQ5wtN.mjs → ProjectTestCasesTable-Bo61P5K1.mjs} +8 -8
- package/.output/server/chunks/build/{ProjectTestCasesTable-CxfQ5wtN.mjs.map → ProjectTestCasesTable-Bo61P5K1.mjs.map} +1 -1
- package/.output/server/chunks/build/{RovingFocusItem-BJSzTBjy.mjs → RovingFocusItem--OEHI2P3.mjs} +2 -2
- package/.output/server/chunks/build/RovingFocusItem--OEHI2P3.mjs.map +1 -0
- package/.output/server/chunks/build/RunReports-DFLv51TX.mjs +1 -1
- package/.output/server/chunks/build/{Select-CUqj50wi.mjs → Select-5DK9frQ7.mjs} +3 -3
- package/.output/server/chunks/build/Select-5DK9frQ7.mjs.map +1 -0
- package/.output/server/chunks/build/{SelectMenu-Db7osY7J.mjs → SelectMenu-D-2FSqBU.mjs} +939 -7
- package/.output/server/chunks/build/{SelectMenu-Db7osY7J.mjs.map → SelectMenu-D-2FSqBU.mjs.map} +1 -1
- package/.output/server/chunks/build/{SettingsField-D6iEYbEc.mjs → SettingsField-BZfx4ma1.mjs} +2 -2
- package/.output/server/chunks/build/SettingsField-BZfx4ma1.mjs.map +1 -0
- package/.output/server/chunks/build/{Slideover-DgCa80mf.mjs → Slideover-D270EZZD.mjs} +3 -3
- package/.output/server/chunks/build/Slideover-D270EZZD.mjs.map +1 -0
- package/.output/server/chunks/build/{Switch-CgUioOYB.mjs → Switch-B5Fp8ULt.mjs} +2 -2
- package/.output/server/chunks/build/Switch-B5Fp8ULt.mjs.map +1 -0
- package/.output/server/chunks/build/Table-BRk04Hd2.mjs +1 -1
- package/.output/server/chunks/build/{Tabs-Bbsg9wag.mjs → Tabs-BkSOnbaB.mjs} +2 -2
- package/.output/server/chunks/build/Tabs-BkSOnbaB.mjs.map +1 -0
- package/.output/server/chunks/build/{TestCaseHistoryChart-nMLPhdvD.mjs → TestCaseHistoryChart-CSi64vVA.mjs} +5 -5
- package/.output/server/chunks/build/TestCaseHistoryChart-CSi64vVA.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-j6h2Jp6A.mjs → TestStatusBar-DX3EhlyP.mjs} +2 -2
- package/.output/server/chunks/build/TestStatusBar-DX3EhlyP.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-BOazooWP.mjs → Tooltip-Dv4htNP6.mjs} +3 -3
- package/.output/server/chunks/build/Tooltip-Dv4htNP6.mjs.map +1 -0
- package/.output/server/chunks/build/{VisuallyHiddenInput-D6kBJxVd.mjs → VisuallyHiddenInput-BHvzNumK.mjs} +2 -2
- package/.output/server/chunks/build/VisuallyHiddenInput-BHvzNumK.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-z5N6HPyC.mjs → _id_-BdG37K7s.mjs} +12 -12
- package/.output/server/chunks/build/_id_-BdG37K7s.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-BHh65pfg.mjs → _id_-BdJs7BJZ.mjs} +57 -33
- package/.output/server/chunks/build/{_id_-BHh65pfg.mjs.map → _id_-BdJs7BJZ.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-B78ky13D.mjs → _id_-BxA6IgWr.mjs} +96 -73
- package/.output/server/chunks/build/_id_-BxA6IgWr.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-Rzkqx55x.mjs → _id_-C_uSBiyU.mjs} +22 -23
- package/.output/server/chunks/build/{_id_-Rzkqx55x.mjs.map → _id_-C_uSBiyU.mjs.map} +1 -1
- package/.output/server/chunks/build/{about-CvSP73Ug.mjs → about-BE0UV-8-.mjs} +365 -18
- package/.output/server/chunks/build/about-BE0UV-8-.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-B4VJ9K1K.mjs → ai-Cn05ch0u.mjs} +9 -9
- package/.output/server/chunks/build/{ai-B4VJ9K1K.mjs.map → ai-Cn05ch0u.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-CJPC6t4L.mjs → analytics-Bo_B_jko.mjs} +20 -21
- package/.output/server/chunks/build/analytics-Bo_B_jko.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{default-zvbFgDJG.mjs → default-CbNHaFsy.mjs} +603 -71
- package/.output/server/chunks/build/default-CbNHaFsy.mjs.map +1 -0
- package/.output/server/chunks/build/{docs-DyuVEgtB.mjs → docs-B_llWMxx.mjs} +6 -6
- package/.output/server/chunks/build/{docs-DyuVEgtB.mjs.map → docs-B_llWMxx.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-CFR5g2Qf.mjs → edit-J0asTFg8.mjs} +4 -5
- package/.output/server/chunks/build/edit-J0asTFg8.mjs.map +1 -0
- package/.output/server/chunks/build/fetch-B4FwBOzu.mjs +1 -1
- package/.output/server/chunks/build/{import-CZo3djDi.mjs → import-CS9oylTN.mjs} +4 -4
- package/.output/server/chunks/build/import-CS9oylTN.mjs.map +1 -0
- package/.output/server/chunks/build/{index-Stqw0dEI.mjs → index-DE45ycdZ.mjs} +9 -9
- package/.output/server/chunks/build/index-DE45ycdZ.mjs.map +1 -0
- package/.output/server/chunks/build/{index-gCw_y4ZJ.mjs → index-e9skCi-V.mjs} +10 -11
- package/.output/server/chunks/build/{index-gCw_y4ZJ.mjs.map → index-e9skCi-V.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-D7fe97l3.mjs → index-hGHlmyxj.mjs} +299 -91
- package/.output/server/chunks/build/index-hGHlmyxj.mjs.map +1 -0
- package/.output/server/chunks/build/isValueEqualOrExist-D2qw9YEr.mjs +1 -1
- package/.output/server/chunks/build/login-Da4u1IlW.mjs +1 -1
- package/.output/server/chunks/build/{mcp-B3IUvRgD.mjs → mcp-uhVCCwQM.mjs} +339 -10
- package/.output/server/chunks/build/mcp-uhVCCwQM.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-abDv0id8.mjs → notifications-fx_qnKGA.mjs} +4 -4
- package/.output/server/chunks/build/notifications-fx_qnKGA.mjs.map +1 -0
- package/.output/server/chunks/build/{pr-feedback-DjZID6q-.mjs → pr-feedback-X6-70iF0.mjs} +3 -3
- package/.output/server/chunks/build/pr-feedback-X6-70iF0.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +24 -24
- package/.output/server/chunks/build/{settings-Du7YqF8i.mjs → settings-CCYe7rsc.mjs} +3 -3
- package/.output/server/chunks/build/settings-CCYe7rsc.mjs.map +1 -0
- package/.output/server/chunks/build/{storage-B4vzxd8G.mjs → storage-CJEmviCD.mjs} +5 -5
- package/.output/server/chunks/build/storage-CJEmviCD.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-DUvaO1He.mjs → test-cases-thBbAykw.mjs} +9 -9
- package/.output/server/chunks/build/test-cases-thBbAykw.mjs.map +1 -0
- package/.output/server/chunks/build/{useAiStatus-CWvIo32Q.mjs → useAiStatus-CxjMmDDY.mjs} +8 -8
- package/.output/server/chunks/build/useAiStatus-CxjMmDDY.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopyRich-BemRsKgv.mjs → useCopyRich-RJKhWoyj.mjs} +74 -44
- package/.output/server/chunks/build/useCopyRich-RJKhWoyj.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopDownload-D49JRQSw.mjs → useDesktopDownload-BepjqxOt.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopDownload-BepjqxOt.mjs.map +1 -0
- package/.output/server/chunks/build/{useOpenInIde-4GFf-kdi.mjs → useOpenInIde-BbTnPhFA.mjs} +2 -2
- package/.output/server/chunks/build/useOpenInIde-BbTnPhFA.mjs.map +1 -0
- package/.output/server/chunks/build/{useSettingsNav-C3O866KC.mjs → useSettingsNav-DnQKacz8.mjs} +4 -4
- package/.output/server/chunks/build/useSettingsNav-DnQKacz8.mjs.map +1 -0
- package/.output/server/chunks/build/useTauri-Kf3HE_42.mjs +11 -0
- package/.output/server/chunks/build/useTauri-Kf3HE_42.mjs.map +1 -0
- package/.output/server/chunks/build/{wasted-time-lYkx5YO4.mjs → wasted-time-BNTPIyrC.mjs} +4 -4
- package/.output/server/chunks/build/wasted-time-BNTPIyrC.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +3471 -2802
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs +88 -0
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/export.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/fix-plan.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post5.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/notifications/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.put.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine/_testCaseId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/menu.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/overview.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/search.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/smtp.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs +1 -1
- package/.output/server/chunks/routes/api/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/export.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs +5 -3
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -2
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs +4 -128
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/setup.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +1 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +3 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
- package/.output/server/chunks/routes/api/version.get.mjs +1 -1
- package/.output/server/chunks/routes/mcp.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/BYDaY0Z7.js +0 -1
- package/.output/public/_nuxt/Bc8mOoz9.js +0 -4
- package/.output/public/_nuxt/BeLWlVK0.js +0 -1
- package/.output/public/_nuxt/BpUaY9nH.js +0 -2
- package/.output/public/_nuxt/CHNwfU1y.js +0 -1
- package/.output/public/_nuxt/CNFYDQmj.js +0 -1
- package/.output/public/_nuxt/CU5S9GCh.js +0 -1
- package/.output/public/_nuxt/CrwJAwhk.js +0 -1
- package/.output/public/_nuxt/CuSVQEkS.js +0 -3
- package/.output/public/_nuxt/CylWPruw.js +0 -1
- package/.output/public/_nuxt/DDDpCFpF.js +0 -1
- package/.output/public/_nuxt/DVDXJYq2.js +0 -2
- package/.output/public/_nuxt/Dgf5N4Ng.js +0 -1
- package/.output/public/_nuxt/DiZyJYez.js +0 -1
- package/.output/public/_nuxt/OSduWzyz.js +0 -1
- package/.output/public/_nuxt/WsxFTEFq.js +0 -10
- package/.output/public/_nuxt/aQgs_c6e.js +0 -9
- package/.output/public/_nuxt/builds/meta/ab473028-4b37-4884-b243-b8f6e5046e5e.json +0 -1
- package/.output/public/_nuxt/dYCKgE-3.js +0 -5
- package/.output/public/_nuxt/entry.CPhW41mh.css +0 -1
- package/.output/public/_nuxt/g26aVPxc.js +0 -1
- package/.output/server/chunks/_/import-runs.mjs +0 -351
- package/.output/server/chunks/_/import-runs.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-D33lqUcj.mjs.map +0 -1
- package/.output/server/chunks/build/Checkbox-DvUBGagc.mjs.map +0 -1
- package/.output/server/chunks/build/CiEnvCard-CrjOM17n.mjs +0 -631
- package/.output/server/chunks/build/CiEnvCard-CrjOM17n.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-B646dK4p.mjs.map +0 -1
- package/.output/server/chunks/build/EmptyState-Dtlab7S9.mjs.map +0 -1
- package/.output/server/chunks/build/EntityLinks-D3fp57pR.mjs.map +0 -1
- package/.output/server/chunks/build/EnvManagedBadge-Bg3FSiU1.mjs.map +0 -1
- package/.output/server/chunks/build/Modal-Ck2XLt8d.mjs.map +0 -1
- package/.output/server/chunks/build/RovingFocusItem-BJSzTBjy.mjs.map +0 -1
- package/.output/server/chunks/build/Select-CUqj50wi.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-D6iEYbEc.mjs.map +0 -1
- package/.output/server/chunks/build/Slideover-DgCa80mf.mjs.map +0 -1
- package/.output/server/chunks/build/Switch-CgUioOYB.mjs.map +0 -1
- package/.output/server/chunks/build/Tabs-Bbsg9wag.mjs.map +0 -1
- package/.output/server/chunks/build/TestCaseHistoryChart-nMLPhdvD.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-j6h2Jp6A.mjs.map +0 -1
- package/.output/server/chunks/build/Tooltip-BOazooWP.mjs.map +0 -1
- package/.output/server/chunks/build/VisuallyHiddenInput-D6kBJxVd.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-B78ky13D.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-z5N6HPyC.mjs.map +0 -1
- package/.output/server/chunks/build/about-CvSP73Ug.mjs.map +0 -1
- package/.output/server/chunks/build/analytics-CJPC6t4L.mjs.map +0 -1
- package/.output/server/chunks/build/default-zvbFgDJG.mjs.map +0 -1
- package/.output/server/chunks/build/edit-CFR5g2Qf.mjs.map +0 -1
- package/.output/server/chunks/build/import-CZo3djDi.mjs.map +0 -1
- package/.output/server/chunks/build/index-D7fe97l3.mjs.map +0 -1
- package/.output/server/chunks/build/index-Stqw0dEI.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-B3IUvRgD.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-abDv0id8.mjs.map +0 -1
- package/.output/server/chunks/build/pr-feedback-DjZID6q-.mjs.map +0 -1
- package/.output/server/chunks/build/settings-Du7YqF8i.mjs.map +0 -1
- package/.output/server/chunks/build/storage-B4vzxd8G.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-DUvaO1He.mjs.map +0 -1
- package/.output/server/chunks/build/useAiStatus-CWvIo32Q.mjs.map +0 -1
- package/.output/server/chunks/build/useCopyRich-BemRsKgv.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopDownload-D49JRQSw.mjs.map +0 -1
- package/.output/server/chunks/build/useOpenInIde-4GFf-kdi.mjs.map +0 -1
- package/.output/server/chunks/build/useSettingsNav-C3O866KC.mjs.map +0 -1
- package/.output/server/chunks/build/useTauri-lRT8zkLv.mjs +0 -7
- package/.output/server/chunks/build/useTauri-lRT8zkLv.mjs.map +0 -1
- package/.output/server/chunks/build/virtualizer-Cd1hhlxC.mjs +0 -940
- package/.output/server/chunks/build/virtualizer-Cd1hhlxC.mjs.map +0 -1
- package/.output/server/chunks/build/wasted-time-lYkx5YO4.mjs.map +0 -1
|
@@ -1,9 +1,903 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, withMemo, createVNode, mergeProps, withKeys, withModifiers, renderSlot, createCommentVNode, toRefs, ref, watch, nextTick, watchSyncEffect, useSlots, Fragment, cloneVNode, createElementBlock, normalizeStyle, renderList, resolveDynamicComponent, useModel, toRef, useTemplateRef, createTextVNode, toDisplayString, mergeModels, normalizeProps, guardReactiveProps, getCurrentInstance, isRef, toRaw, useSSRContext } from 'vue';
|
|
2
2
|
import { ssrRenderComponent, ssrRenderClass, ssrRenderSlot, ssrInterpolate, ssrRenderList } from 'vue/server-renderer';
|
|
3
|
-
import { a as useComponentProps, C as useLocale, b as useAppConfig,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { O as useId, ac as useCollection, z as useForwardExpose, P as Primitive, ad as useTypeahead, ae as usePrimitiveElement, N as useDirection, A as useVModel, ai as useComposing, ah as refAutoReset, aj as useParentElement, ak as MAP_KEY_TO_FOCUS_INTENT, al as getActiveElement, am as getNextMatch, a as useComponentProps, C as useLocale, b as useAppConfig, aA as useFilter, D as useForwardProps, E as reactivePick, aB as usePortal, a8 as useFormField, aC as useFieldGroup, a9 as useComponentIcons, X as createReusableTemplate, t as tv, aD as isArrayOfArray, aE as compare$1, U as get, o as _sfc_main$p, V as _sfc_main$n, aF as _sfc_main$o, m as _sfc_main$k, aG as FieldGroupReset, au as FocusScope_default, _ as _sfc_main$d, B as createContext, af as getFocusIntent, ag as createEventHook, an as useFilter$1, ao as PopperRoot_default, aa as looseToNumber, ap as PopperAnchor_default, aH as getDisplayValue, az as Teleport_default, ay as useForwardPropsEmits, Q as Presence_default, ax as PopperArrow_default, aq as useBodyScrollLock, ar as useFocusGuards, as as useHideOthers, at as useForwardProps$1, av as DismissableLayer_default, aw as PopperContent_default } from './server.mjs';
|
|
4
|
+
import { u as useFormControl } from './useFormControl-CZ9So7iX.mjs';
|
|
5
|
+
import { V as VisuallyHiddenInput_default } from './VisuallyHiddenInput-BHvzNumK.mjs';
|
|
6
|
+
import { h as handleAndDispatchCustomEvent } from './handleAndDispatchCustomEvent-Bk_AVSSo.mjs';
|
|
7
|
+
import { useVirtualizer } from '@tanstack/vue-virtual';
|
|
8
|
+
import { d7 as defu, d8 as isEqual } from '../nitro/nitro.mjs';
|
|
6
9
|
|
|
10
|
+
function findValuesBetween(array, start, end) {
|
|
11
|
+
const startIndex = array.findIndex((i) => isEqual(i, start));
|
|
12
|
+
const endIndex = array.findIndex((i) => isEqual(i, end));
|
|
13
|
+
if (startIndex === -1 || endIndex === -1) return [];
|
|
14
|
+
const [minIndex, maxIndex] = [startIndex, endIndex].sort((a, b) => a - b);
|
|
15
|
+
return array.slice(minIndex, maxIndex + 1);
|
|
16
|
+
}
|
|
17
|
+
function useKbd() {
|
|
18
|
+
return {
|
|
19
|
+
ALT: "Alt",
|
|
20
|
+
ARROW_DOWN: "ArrowDown",
|
|
21
|
+
ARROW_LEFT: "ArrowLeft",
|
|
22
|
+
ARROW_RIGHT: "ArrowRight",
|
|
23
|
+
ARROW_UP: "ArrowUp",
|
|
24
|
+
BACKSPACE: "Backspace",
|
|
25
|
+
CAPS_LOCK: "CapsLock",
|
|
26
|
+
CONTROL: "Control",
|
|
27
|
+
DELETE: "Delete",
|
|
28
|
+
END: "End",
|
|
29
|
+
ENTER: "Enter",
|
|
30
|
+
ESCAPE: "Escape",
|
|
31
|
+
F1: "F1",
|
|
32
|
+
F10: "F10",
|
|
33
|
+
F11: "F11",
|
|
34
|
+
F12: "F12",
|
|
35
|
+
F2: "F2",
|
|
36
|
+
F3: "F3",
|
|
37
|
+
F4: "F4",
|
|
38
|
+
F5: "F5",
|
|
39
|
+
F6: "F6",
|
|
40
|
+
F7: "F7",
|
|
41
|
+
F8: "F8",
|
|
42
|
+
F9: "F9",
|
|
43
|
+
HOME: "Home",
|
|
44
|
+
META: "Meta",
|
|
45
|
+
PAGE_DOWN: "PageDown",
|
|
46
|
+
PAGE_UP: "PageUp",
|
|
47
|
+
SHIFT: "Shift",
|
|
48
|
+
SPACE: " ",
|
|
49
|
+
TAB: "Tab",
|
|
50
|
+
CTRL: "Control",
|
|
51
|
+
ASTERISK: "*",
|
|
52
|
+
SPACE_CODE: "Space"
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function queryCheckedElement(parentEl) {
|
|
56
|
+
return parentEl?.querySelector("[data-state=checked]");
|
|
57
|
+
}
|
|
58
|
+
function valueComparator(value, currentValue, comparator) {
|
|
59
|
+
if (value === void 0) return false;
|
|
60
|
+
else if (Array.isArray(value)) return value.some((val) => compare(val, currentValue, comparator));
|
|
61
|
+
else return compare(value, currentValue, comparator);
|
|
62
|
+
}
|
|
63
|
+
function compare(value, currentValue, comparator) {
|
|
64
|
+
if (value === void 0 || currentValue === void 0) return false;
|
|
65
|
+
if (typeof value === "string") return value === currentValue;
|
|
66
|
+
if (typeof comparator === "function") return comparator(value, currentValue);
|
|
67
|
+
if (typeof comparator === "string") return value?.[comparator] === currentValue?.[comparator];
|
|
68
|
+
return isEqual(value, currentValue);
|
|
69
|
+
}
|
|
70
|
+
const [injectListboxRootContext, provideListboxRootContext] = /* @__PURE__ */ createContext("ListboxRoot");
|
|
71
|
+
var ListboxRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
72
|
+
__name: "ListboxRoot",
|
|
73
|
+
props: {
|
|
74
|
+
modelValue: {
|
|
75
|
+
type: null,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
defaultValue: {
|
|
79
|
+
type: null,
|
|
80
|
+
required: false
|
|
81
|
+
},
|
|
82
|
+
multiple: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
required: false
|
|
85
|
+
},
|
|
86
|
+
orientation: {
|
|
87
|
+
type: String,
|
|
88
|
+
required: false,
|
|
89
|
+
default: "vertical"
|
|
90
|
+
},
|
|
91
|
+
dir: {
|
|
92
|
+
type: String,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
disabled: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
selectionBehavior: {
|
|
100
|
+
type: String,
|
|
101
|
+
required: false,
|
|
102
|
+
default: "toggle"
|
|
103
|
+
},
|
|
104
|
+
highlightOnHover: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
required: false
|
|
107
|
+
},
|
|
108
|
+
by: {
|
|
109
|
+
type: [String, Function],
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
112
|
+
asChild: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
116
|
+
as: {
|
|
117
|
+
type: null,
|
|
118
|
+
required: false
|
|
119
|
+
},
|
|
120
|
+
name: {
|
|
121
|
+
type: String,
|
|
122
|
+
required: false
|
|
123
|
+
},
|
|
124
|
+
required: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
required: false
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
emits: [
|
|
130
|
+
"update:modelValue",
|
|
131
|
+
"highlight",
|
|
132
|
+
"entryFocus",
|
|
133
|
+
"leave"
|
|
134
|
+
],
|
|
135
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
136
|
+
const props = __props;
|
|
137
|
+
const emits = __emit;
|
|
138
|
+
const { multiple, highlightOnHover, orientation, disabled, selectionBehavior, dir: propDir } = toRefs(props);
|
|
139
|
+
const { getItems } = useCollection({ isProvider: true });
|
|
140
|
+
const { handleTypeaheadSearch } = useTypeahead();
|
|
141
|
+
const { primitiveElement, currentElement } = usePrimitiveElement();
|
|
142
|
+
const kbd = useKbd();
|
|
143
|
+
const dir = useDirection(propDir);
|
|
144
|
+
const isFormControl = useFormControl(currentElement);
|
|
145
|
+
const firstValue = ref();
|
|
146
|
+
const isUserAction = ref(false);
|
|
147
|
+
const focusable = ref(true);
|
|
148
|
+
const modelValue = useVModel(props, "modelValue", emits, {
|
|
149
|
+
defaultValue: props.defaultValue ?? (multiple.value ? [] : void 0),
|
|
150
|
+
passive: props.modelValue === void 0,
|
|
151
|
+
deep: true
|
|
152
|
+
});
|
|
153
|
+
function onValueChange(val) {
|
|
154
|
+
isUserAction.value = true;
|
|
155
|
+
if (props.multiple) {
|
|
156
|
+
const modelArray = Array.isArray(modelValue.value) ? [...modelValue.value] : [];
|
|
157
|
+
const index = modelArray.findIndex((i) => compare(i, val, props.by));
|
|
158
|
+
if (props.selectionBehavior === "toggle") {
|
|
159
|
+
index === -1 ? modelArray.push(val) : modelArray.splice(index, 1);
|
|
160
|
+
modelValue.value = modelArray;
|
|
161
|
+
} else {
|
|
162
|
+
modelValue.value = [val];
|
|
163
|
+
firstValue.value = val;
|
|
164
|
+
}
|
|
165
|
+
} else if (props.selectionBehavior === "toggle") if (compare(modelValue.value, val, props.by)) modelValue.value = void 0;
|
|
166
|
+
else modelValue.value = val;
|
|
167
|
+
else modelValue.value = val;
|
|
168
|
+
setTimeout(() => {
|
|
169
|
+
isUserAction.value = false;
|
|
170
|
+
}, 1);
|
|
171
|
+
}
|
|
172
|
+
const highlightedElement = ref(null);
|
|
173
|
+
const previousElement = ref(null);
|
|
174
|
+
const isVirtual = ref(false);
|
|
175
|
+
const isComposing = ref(false);
|
|
176
|
+
const virtualFocusHook = createEventHook();
|
|
177
|
+
const virtualKeydownHook = createEventHook();
|
|
178
|
+
const virtualHighlightHook = createEventHook();
|
|
179
|
+
function getCollectionItem() {
|
|
180
|
+
return getItems().map((i) => i.ref).filter((i) => i.dataset.disabled !== "");
|
|
181
|
+
}
|
|
182
|
+
function changeHighlight(el, scrollIntoView = true, focus) {
|
|
183
|
+
if (!el) return;
|
|
184
|
+
highlightedElement.value = el;
|
|
185
|
+
if (focus ?? focusable.value) highlightedElement.value.focus();
|
|
186
|
+
if (scrollIntoView) highlightedElement.value.scrollIntoView({ block: "nearest" });
|
|
187
|
+
const highlightedItem = getItems().find((i) => i.ref === el);
|
|
188
|
+
emits("highlight", highlightedItem);
|
|
189
|
+
}
|
|
190
|
+
function highlightItem(value) {
|
|
191
|
+
if (isVirtual.value) virtualHighlightHook.trigger(value);
|
|
192
|
+
else {
|
|
193
|
+
const item = getItems().find((i) => compare(i.value, value, props.by));
|
|
194
|
+
if (item) {
|
|
195
|
+
highlightedElement.value = item.ref;
|
|
196
|
+
changeHighlight(item.ref);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function onKeydownEnter(event) {
|
|
201
|
+
if (highlightedElement.value && highlightedElement.value.isConnected) {
|
|
202
|
+
if (event.ctrlKey || event.metaKey || event.altKey) return;
|
|
203
|
+
event.preventDefault();
|
|
204
|
+
event.stopPropagation();
|
|
205
|
+
if (!isComposing.value) highlightedElement.value.click();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function onKeydownTypeAhead(event) {
|
|
209
|
+
if (!focusable.value) return;
|
|
210
|
+
isUserAction.value = true;
|
|
211
|
+
if (isVirtual.value) virtualKeydownHook.trigger(event);
|
|
212
|
+
else {
|
|
213
|
+
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
214
|
+
if (isMetaKey && event.key === "a" && multiple.value) {
|
|
215
|
+
const collection = getItems();
|
|
216
|
+
const values = collection.map((i) => i.value);
|
|
217
|
+
modelValue.value = [...values];
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
const lastItem = collection.at(-1);
|
|
220
|
+
if (lastItem) changeHighlight(lastItem.ref);
|
|
221
|
+
} else if (!isMetaKey) {
|
|
222
|
+
const el = handleTypeaheadSearch(event.key, getItems());
|
|
223
|
+
if (el) changeHighlight(el);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
setTimeout(() => {
|
|
227
|
+
isUserAction.value = false;
|
|
228
|
+
}, 1);
|
|
229
|
+
}
|
|
230
|
+
function onCompositionStart() {
|
|
231
|
+
isComposing.value = true;
|
|
232
|
+
}
|
|
233
|
+
function onCompositionEnd() {
|
|
234
|
+
nextTick(() => {
|
|
235
|
+
isComposing.value = false;
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
function highlightFirstItem() {
|
|
239
|
+
nextTick(() => {
|
|
240
|
+
const event = new KeyboardEvent("keydown", { key: "PageUp" });
|
|
241
|
+
onKeydownNavigation(event);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function onLeave(event) {
|
|
245
|
+
const el = highlightedElement.value;
|
|
246
|
+
if (el?.isConnected) previousElement.value = el;
|
|
247
|
+
highlightedElement.value = null;
|
|
248
|
+
emits("leave", event);
|
|
249
|
+
}
|
|
250
|
+
function onEnter(event) {
|
|
251
|
+
const entryFocusEvent = new CustomEvent("listbox.entryFocus", {
|
|
252
|
+
bubbles: false,
|
|
253
|
+
cancelable: true
|
|
254
|
+
});
|
|
255
|
+
event.currentTarget?.dispatchEvent(entryFocusEvent);
|
|
256
|
+
emits("entryFocus", entryFocusEvent);
|
|
257
|
+
if (entryFocusEvent.defaultPrevented) return;
|
|
258
|
+
if (previousElement.value) changeHighlight(previousElement.value);
|
|
259
|
+
else {
|
|
260
|
+
const el = getCollectionItem()?.[0];
|
|
261
|
+
changeHighlight(el);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function onKeydownNavigation(event) {
|
|
265
|
+
const intent = getFocusIntent(event, orientation.value, dir.value);
|
|
266
|
+
if (!intent) return;
|
|
267
|
+
let collection = getCollectionItem();
|
|
268
|
+
if (highlightedElement.value) {
|
|
269
|
+
if (intent === "last") collection.reverse();
|
|
270
|
+
else if (intent === "prev" || intent === "next") {
|
|
271
|
+
if (intent === "prev") collection.reverse();
|
|
272
|
+
const currentIndex = collection.indexOf(highlightedElement.value);
|
|
273
|
+
collection = collection.slice(currentIndex + 1);
|
|
274
|
+
}
|
|
275
|
+
handleMultipleReplace(event, collection[0]);
|
|
276
|
+
}
|
|
277
|
+
if (collection.length) {
|
|
278
|
+
const index = !highlightedElement.value && intent === "prev" ? collection.length - 1 : 0;
|
|
279
|
+
changeHighlight(collection[index]);
|
|
280
|
+
}
|
|
281
|
+
if (isVirtual.value) return virtualKeydownHook.trigger(event);
|
|
282
|
+
}
|
|
283
|
+
function handleMultipleReplace(event, targetEl) {
|
|
284
|
+
if (isVirtual.value || props.selectionBehavior !== "replace" || !multiple.value || !Array.isArray(modelValue.value)) return;
|
|
285
|
+
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
286
|
+
if (isMetaKey && !event.shiftKey) return;
|
|
287
|
+
if (event.shiftKey) {
|
|
288
|
+
const collection = getItems().filter((i) => i.ref.dataset.disabled !== "");
|
|
289
|
+
let lastValue = collection.find((i) => i.ref === targetEl)?.value;
|
|
290
|
+
if (event.key === kbd.END) lastValue = collection.at(-1)?.value;
|
|
291
|
+
else if (event.key === kbd.HOME) lastValue = collection[0]?.value;
|
|
292
|
+
if (!lastValue || !firstValue.value) return;
|
|
293
|
+
const values = findValuesBetween(collection.map((i) => i.value), firstValue.value, lastValue);
|
|
294
|
+
modelValue.value = values;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
async function highlightSelected(event, scroll = true) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
let hasHighlightedOnMount = false;
|
|
301
|
+
watch(modelValue, () => {
|
|
302
|
+
if (!isUserAction.value) {
|
|
303
|
+
const scroll = hasHighlightedOnMount;
|
|
304
|
+
hasHighlightedOnMount = true;
|
|
305
|
+
nextTick(() => {
|
|
306
|
+
highlightSelected(void 0, scroll);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}, {
|
|
310
|
+
immediate: true,
|
|
311
|
+
deep: true
|
|
312
|
+
});
|
|
313
|
+
__expose({
|
|
314
|
+
highlightedElement,
|
|
315
|
+
highlightItem,
|
|
316
|
+
highlightFirstItem,
|
|
317
|
+
highlightSelected,
|
|
318
|
+
getItems
|
|
319
|
+
});
|
|
320
|
+
provideListboxRootContext({
|
|
321
|
+
modelValue,
|
|
322
|
+
onValueChange,
|
|
323
|
+
multiple,
|
|
324
|
+
orientation,
|
|
325
|
+
dir,
|
|
326
|
+
disabled,
|
|
327
|
+
highlightOnHover,
|
|
328
|
+
highlightedElement,
|
|
329
|
+
isVirtual,
|
|
330
|
+
virtualFocusHook,
|
|
331
|
+
virtualKeydownHook,
|
|
332
|
+
virtualHighlightHook,
|
|
333
|
+
by: props.by,
|
|
334
|
+
firstValue,
|
|
335
|
+
selectionBehavior,
|
|
336
|
+
focusable,
|
|
337
|
+
onLeave,
|
|
338
|
+
onEnter,
|
|
339
|
+
changeHighlight,
|
|
340
|
+
onKeydownEnter,
|
|
341
|
+
onKeydownNavigation,
|
|
342
|
+
onKeydownTypeAhead,
|
|
343
|
+
onCompositionStart,
|
|
344
|
+
onCompositionEnd,
|
|
345
|
+
highlightFirstItem
|
|
346
|
+
});
|
|
347
|
+
return (_ctx, _cache) => {
|
|
348
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
349
|
+
ref_key: "primitiveElement",
|
|
350
|
+
ref: primitiveElement,
|
|
351
|
+
as: _ctx.as,
|
|
352
|
+
"as-child": _ctx.asChild,
|
|
353
|
+
dir: unref(dir),
|
|
354
|
+
"data-disabled": unref(disabled) ? "" : void 0,
|
|
355
|
+
onPointerleave: onLeave,
|
|
356
|
+
onFocusout: _cache[0] || (_cache[0] = async (event) => {
|
|
357
|
+
const target = event.relatedTarget || event.target;
|
|
358
|
+
await nextTick();
|
|
359
|
+
if (highlightedElement.value && unref(currentElement) && !unref(currentElement).contains(target)) onLeave(event);
|
|
360
|
+
})
|
|
361
|
+
}, {
|
|
362
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { modelValue: unref(modelValue) }), unref(isFormControl) && _ctx.name ? (openBlock(), createBlock(unref(VisuallyHiddenInput_default), {
|
|
363
|
+
key: 0,
|
|
364
|
+
name: _ctx.name,
|
|
365
|
+
value: unref(modelValue),
|
|
366
|
+
disabled: unref(disabled),
|
|
367
|
+
required: _ctx.required
|
|
368
|
+
}, null, 8, [
|
|
369
|
+
"name",
|
|
370
|
+
"value",
|
|
371
|
+
"disabled",
|
|
372
|
+
"required"
|
|
373
|
+
])) : createCommentVNode("v-if", true)]),
|
|
374
|
+
_: 3
|
|
375
|
+
}, 8, [
|
|
376
|
+
"as",
|
|
377
|
+
"as-child",
|
|
378
|
+
"dir",
|
|
379
|
+
"data-disabled"
|
|
380
|
+
]);
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
var ListboxRoot_default = ListboxRoot_vue_vue_type_script_setup_true_lang_default;
|
|
385
|
+
var ListboxContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
386
|
+
__name: "ListboxContent",
|
|
387
|
+
props: {
|
|
388
|
+
asChild: {
|
|
389
|
+
type: Boolean,
|
|
390
|
+
required: false
|
|
391
|
+
},
|
|
392
|
+
as: {
|
|
393
|
+
type: null,
|
|
394
|
+
required: false
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
setup(__props) {
|
|
398
|
+
const { CollectionSlot } = useCollection();
|
|
399
|
+
const rootContext = injectListboxRootContext();
|
|
400
|
+
const isClickFocus = refAutoReset(false, 10);
|
|
401
|
+
return (_ctx, _cache) => {
|
|
402
|
+
return openBlock(), createBlock(unref(CollectionSlot), null, {
|
|
403
|
+
default: withCtx(() => [createVNode(unref(Primitive), {
|
|
404
|
+
role: "listbox",
|
|
405
|
+
as: _ctx.as,
|
|
406
|
+
"as-child": _ctx.asChild,
|
|
407
|
+
tabindex: unref(rootContext).focusable.value ? unref(rootContext).highlightedElement.value ? "-1" : "0" : "-1",
|
|
408
|
+
"aria-orientation": unref(rootContext).orientation.value,
|
|
409
|
+
"aria-multiselectable": !!unref(rootContext).multiple.value,
|
|
410
|
+
"data-orientation": unref(rootContext).orientation.value,
|
|
411
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(($event) => isClickFocus.value = true, ["left"])),
|
|
412
|
+
onFocus: _cache[1] || (_cache[1] = (ev) => {
|
|
413
|
+
if (unref(isClickFocus)) return;
|
|
414
|
+
unref(rootContext).onEnter(ev);
|
|
415
|
+
}),
|
|
416
|
+
onKeydown: [
|
|
417
|
+
_cache[2] || (_cache[2] = withKeys((event) => {
|
|
418
|
+
if (unref(rootContext).orientation.value === "vertical" && (event.key === "ArrowLeft" || event.key === "ArrowRight") || unref(rootContext).orientation.value === "horizontal" && (event.key === "ArrowUp" || event.key === "ArrowDown")) return;
|
|
419
|
+
event.preventDefault();
|
|
420
|
+
unref(rootContext).focusable.value && unref(rootContext).onKeydownNavigation(event);
|
|
421
|
+
}, [
|
|
422
|
+
"down",
|
|
423
|
+
"up",
|
|
424
|
+
"left",
|
|
425
|
+
"right",
|
|
426
|
+
"home",
|
|
427
|
+
"end"
|
|
428
|
+
])),
|
|
429
|
+
withKeys(unref(rootContext).onKeydownEnter, ["enter"]),
|
|
430
|
+
unref(rootContext).onKeydownTypeAhead
|
|
431
|
+
]
|
|
432
|
+
}, {
|
|
433
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
434
|
+
_: 3
|
|
435
|
+
}, 8, [
|
|
436
|
+
"as",
|
|
437
|
+
"as-child",
|
|
438
|
+
"tabindex",
|
|
439
|
+
"aria-orientation",
|
|
440
|
+
"aria-multiselectable",
|
|
441
|
+
"data-orientation",
|
|
442
|
+
"onKeydown"
|
|
443
|
+
])]),
|
|
444
|
+
_: 3
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
var ListboxContent_default = ListboxContent_vue_vue_type_script_setup_true_lang_default;
|
|
450
|
+
var ListboxFilter_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
451
|
+
__name: "ListboxFilter",
|
|
452
|
+
props: {
|
|
453
|
+
modelValue: {
|
|
454
|
+
type: String,
|
|
455
|
+
required: false
|
|
456
|
+
},
|
|
457
|
+
autoFocus: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
required: false
|
|
460
|
+
},
|
|
461
|
+
disabled: {
|
|
462
|
+
type: Boolean,
|
|
463
|
+
required: false
|
|
464
|
+
},
|
|
465
|
+
asChild: {
|
|
466
|
+
type: Boolean,
|
|
467
|
+
required: false
|
|
468
|
+
},
|
|
469
|
+
as: {
|
|
470
|
+
type: null,
|
|
471
|
+
required: false,
|
|
472
|
+
default: "input"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
emits: ["update:modelValue"],
|
|
476
|
+
setup(__props, { emit: __emit }) {
|
|
477
|
+
const props = __props;
|
|
478
|
+
const emits = __emit;
|
|
479
|
+
const modelValue = useVModel(props, "modelValue", emits, {
|
|
480
|
+
defaultValue: "",
|
|
481
|
+
passive: props.modelValue === void 0
|
|
482
|
+
});
|
|
483
|
+
const rootContext = injectListboxRootContext();
|
|
484
|
+
const { primitiveElement } = usePrimitiveElement();
|
|
485
|
+
const disabled = computed(() => props.disabled || rootContext.disabled.value || false);
|
|
486
|
+
const activedescendant = ref();
|
|
487
|
+
watchSyncEffect(() => activedescendant.value = rootContext.highlightedElement.value?.id);
|
|
488
|
+
const { isComposing, handleCompositionStart, handleCompositionEnd } = useComposing((event) => {
|
|
489
|
+
modelValue.value = event.target.value;
|
|
490
|
+
rootContext.onCompositionEnd();
|
|
491
|
+
rootContext.highlightFirstItem();
|
|
492
|
+
});
|
|
493
|
+
function onCompositionStart() {
|
|
494
|
+
rootContext.onCompositionStart();
|
|
495
|
+
handleCompositionStart();
|
|
496
|
+
}
|
|
497
|
+
function handleInput(event) {
|
|
498
|
+
if (isComposing.value) return;
|
|
499
|
+
modelValue.value = event.target.value;
|
|
500
|
+
rootContext.highlightFirstItem();
|
|
501
|
+
}
|
|
502
|
+
function handleKeydownNavigation(event) {
|
|
503
|
+
if (isComposing.value) return;
|
|
504
|
+
event.preventDefault();
|
|
505
|
+
rootContext.onKeydownNavigation(event);
|
|
506
|
+
}
|
|
507
|
+
function handleKeydownEnter(event) {
|
|
508
|
+
if (isComposing.value) return;
|
|
509
|
+
rootContext.onKeydownEnter(event);
|
|
510
|
+
}
|
|
511
|
+
return (_ctx, _cache) => {
|
|
512
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
513
|
+
ref_key: "primitiveElement",
|
|
514
|
+
ref: primitiveElement,
|
|
515
|
+
as: _ctx.as,
|
|
516
|
+
"as-child": _ctx.asChild,
|
|
517
|
+
value: unref(modelValue),
|
|
518
|
+
disabled: disabled.value ? "" : void 0,
|
|
519
|
+
"data-disabled": disabled.value ? "" : void 0,
|
|
520
|
+
"aria-disabled": disabled.value ?? void 0,
|
|
521
|
+
"aria-activedescendant": activedescendant.value,
|
|
522
|
+
type: "text",
|
|
523
|
+
onKeydown: [withKeys(handleKeydownNavigation, [
|
|
524
|
+
"down",
|
|
525
|
+
"up",
|
|
526
|
+
"home",
|
|
527
|
+
"end"
|
|
528
|
+
]), withKeys(handleKeydownEnter, ["enter"])],
|
|
529
|
+
onInput: handleInput,
|
|
530
|
+
onCompositionstart: onCompositionStart,
|
|
531
|
+
onCompositionend: unref(handleCompositionEnd)
|
|
532
|
+
}, {
|
|
533
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { modelValue: unref(modelValue) })]),
|
|
534
|
+
_: 3
|
|
535
|
+
}, 8, [
|
|
536
|
+
"as",
|
|
537
|
+
"as-child",
|
|
538
|
+
"value",
|
|
539
|
+
"disabled",
|
|
540
|
+
"data-disabled",
|
|
541
|
+
"aria-disabled",
|
|
542
|
+
"aria-activedescendant",
|
|
543
|
+
"onCompositionend"
|
|
544
|
+
]);
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
var ListboxFilter_default = ListboxFilter_vue_vue_type_script_setup_true_lang_default;
|
|
549
|
+
const [injectListboxGroupContext, provideListboxGroupContext] = /* @__PURE__ */ createContext("ListboxGroup");
|
|
550
|
+
var ListboxGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
551
|
+
__name: "ListboxGroup",
|
|
552
|
+
props: {
|
|
553
|
+
asChild: {
|
|
554
|
+
type: Boolean,
|
|
555
|
+
required: false
|
|
556
|
+
},
|
|
557
|
+
as: {
|
|
558
|
+
type: null,
|
|
559
|
+
required: false
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
setup(__props) {
|
|
563
|
+
const props = __props;
|
|
564
|
+
const id = useId(void 0, "reka-listbox-group");
|
|
565
|
+
provideListboxGroupContext({ id });
|
|
566
|
+
return (_ctx, _cache) => {
|
|
567
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ role: "group" }, props, { "aria-labelledby": unref(id) }), {
|
|
568
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
569
|
+
_: 3
|
|
570
|
+
}, 16, ["aria-labelledby"]);
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
var ListboxGroup_default = ListboxGroup_vue_vue_type_script_setup_true_lang_default;
|
|
575
|
+
const LISTBOX_SELECT = "listbox.select";
|
|
576
|
+
const [injectListboxItemContext, provideListboxItemContext] = /* @__PURE__ */ createContext("ListboxItem");
|
|
577
|
+
var ListboxItem_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
578
|
+
__name: "ListboxItem",
|
|
579
|
+
props: {
|
|
580
|
+
value: {
|
|
581
|
+
type: null,
|
|
582
|
+
required: true
|
|
583
|
+
},
|
|
584
|
+
disabled: {
|
|
585
|
+
type: Boolean,
|
|
586
|
+
required: false
|
|
587
|
+
},
|
|
588
|
+
asChild: {
|
|
589
|
+
type: Boolean,
|
|
590
|
+
required: false
|
|
591
|
+
},
|
|
592
|
+
as: {
|
|
593
|
+
type: null,
|
|
594
|
+
required: false,
|
|
595
|
+
default: "div"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
emits: ["select"],
|
|
599
|
+
setup(__props, { emit: __emit }) {
|
|
600
|
+
const props = __props;
|
|
601
|
+
const emits = __emit;
|
|
602
|
+
const id = useId(void 0, "reka-listbox-item");
|
|
603
|
+
const { CollectionItem } = useCollection();
|
|
604
|
+
const { forwardRef, currentElement } = useForwardExpose();
|
|
605
|
+
const rootContext = injectListboxRootContext();
|
|
606
|
+
const isHighlighted = computed(() => currentElement.value != null && currentElement.value === rootContext.highlightedElement.value);
|
|
607
|
+
const isSelected = computed(() => valueComparator(rootContext.modelValue.value, props.value, rootContext.by));
|
|
608
|
+
const disabled = computed(() => rootContext.disabled.value || props.disabled);
|
|
609
|
+
async function handleSelect(ev) {
|
|
610
|
+
emits("select", ev);
|
|
611
|
+
if (ev?.defaultPrevented) return;
|
|
612
|
+
if (!disabled.value && ev) {
|
|
613
|
+
rootContext.onValueChange(props.value);
|
|
614
|
+
rootContext.changeHighlight(currentElement.value);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
function handleSelectCustomEvent(ev) {
|
|
618
|
+
const eventDetail = {
|
|
619
|
+
originalEvent: ev,
|
|
620
|
+
value: props.value
|
|
621
|
+
};
|
|
622
|
+
handleAndDispatchCustomEvent(LISTBOX_SELECT, handleSelect, eventDetail);
|
|
623
|
+
}
|
|
624
|
+
provideListboxItemContext({ isSelected });
|
|
625
|
+
return (_ctx, _cache) => {
|
|
626
|
+
return openBlock(), createBlock(unref(CollectionItem), { value: _ctx.value }, {
|
|
627
|
+
default: withCtx(() => [withMemo([
|
|
628
|
+
isHighlighted.value,
|
|
629
|
+
isSelected.value,
|
|
630
|
+
disabled.value,
|
|
631
|
+
unref(rootContext).focusable.value
|
|
632
|
+
], () => createVNode(unref(Primitive), mergeProps({ id: unref(id) }, _ctx.$attrs, {
|
|
633
|
+
ref: unref(forwardRef),
|
|
634
|
+
role: "option",
|
|
635
|
+
tabindex: unref(rootContext).focusable.value ? isHighlighted.value ? "0" : "-1" : -1,
|
|
636
|
+
"aria-selected": isSelected.value,
|
|
637
|
+
as: _ctx.as,
|
|
638
|
+
"as-child": _ctx.asChild,
|
|
639
|
+
disabled: disabled.value ? "" : void 0,
|
|
640
|
+
"data-disabled": disabled.value ? "" : void 0,
|
|
641
|
+
"data-highlighted": isHighlighted.value ? "" : void 0,
|
|
642
|
+
"data-state": isSelected.value ? "checked" : "unchecked",
|
|
643
|
+
onClick: handleSelectCustomEvent,
|
|
644
|
+
onKeydown: withKeys(withModifiers(handleSelectCustomEvent, ["prevent"]), ["space"]),
|
|
645
|
+
onPointermove: _cache[0] || (_cache[0] = () => {
|
|
646
|
+
if (unref(rootContext).highlightedElement.value === unref(currentElement)) return;
|
|
647
|
+
if (unref(rootContext).highlightOnHover.value) unref(rootContext).changeHighlight(unref(currentElement), false, false);
|
|
648
|
+
})
|
|
649
|
+
}), {
|
|
650
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
651
|
+
_: 3
|
|
652
|
+
}, 16, [
|
|
653
|
+
"id",
|
|
654
|
+
"tabindex",
|
|
655
|
+
"aria-selected",
|
|
656
|
+
"as",
|
|
657
|
+
"as-child",
|
|
658
|
+
"disabled",
|
|
659
|
+
"data-disabled",
|
|
660
|
+
"data-highlighted",
|
|
661
|
+
"data-state",
|
|
662
|
+
"onKeydown"
|
|
663
|
+
]), _cache, 1)]),
|
|
664
|
+
_: 3
|
|
665
|
+
}, 8, ["value"]);
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
var ListboxItem_default = ListboxItem_vue_vue_type_script_setup_true_lang_default;
|
|
670
|
+
var ListboxItemIndicator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
671
|
+
__name: "ListboxItemIndicator",
|
|
672
|
+
props: {
|
|
673
|
+
asChild: {
|
|
674
|
+
type: Boolean,
|
|
675
|
+
required: false
|
|
676
|
+
},
|
|
677
|
+
as: {
|
|
678
|
+
type: null,
|
|
679
|
+
required: false,
|
|
680
|
+
default: "span"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
setup(__props) {
|
|
684
|
+
const props = __props;
|
|
685
|
+
useForwardExpose();
|
|
686
|
+
const itemContext = injectListboxItemContext();
|
|
687
|
+
return (_ctx, _cache) => {
|
|
688
|
+
return unref(itemContext).isSelected.value ? (openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
689
|
+
key: 0,
|
|
690
|
+
"aria-hidden": "true"
|
|
691
|
+
}, props), {
|
|
692
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
693
|
+
_: 3
|
|
694
|
+
}, 16)) : createCommentVNode("v-if", true);
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
var ListboxItemIndicator_default = ListboxItemIndicator_vue_vue_type_script_setup_true_lang_default;
|
|
699
|
+
var ListboxVirtualizer_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
700
|
+
__name: "ListboxVirtualizer",
|
|
701
|
+
props: {
|
|
702
|
+
options: {
|
|
703
|
+
type: Array,
|
|
704
|
+
required: true
|
|
705
|
+
},
|
|
706
|
+
overscan: {
|
|
707
|
+
type: Number,
|
|
708
|
+
required: false
|
|
709
|
+
},
|
|
710
|
+
estimateSize: {
|
|
711
|
+
type: [Number, Function],
|
|
712
|
+
required: false
|
|
713
|
+
},
|
|
714
|
+
textContent: {
|
|
715
|
+
type: Function,
|
|
716
|
+
required: false
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
setup(__props) {
|
|
720
|
+
const props = __props;
|
|
721
|
+
const slots = useSlots();
|
|
722
|
+
const rootContext = injectListboxRootContext();
|
|
723
|
+
const parentEl = useParentElement();
|
|
724
|
+
const { getItems } = useCollection();
|
|
725
|
+
rootContext.isVirtual.value = true;
|
|
726
|
+
const padding = computed(() => {
|
|
727
|
+
const el = parentEl.value;
|
|
728
|
+
if (!el) return {
|
|
729
|
+
start: 0,
|
|
730
|
+
end: 0
|
|
731
|
+
};
|
|
732
|
+
else {
|
|
733
|
+
const styles = (void 0).getComputedStyle(el);
|
|
734
|
+
return {
|
|
735
|
+
start: Number.parseFloat(styles.paddingBlockStart || styles.paddingTop),
|
|
736
|
+
end: Number.parseFloat(styles.paddingBlockEnd || styles.paddingBottom)
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
const virtualizer = useVirtualizer({
|
|
741
|
+
get scrollPaddingStart() {
|
|
742
|
+
return padding.value.start;
|
|
743
|
+
},
|
|
744
|
+
get scrollPaddingEnd() {
|
|
745
|
+
return padding.value.end;
|
|
746
|
+
},
|
|
747
|
+
get count() {
|
|
748
|
+
return props.options.length;
|
|
749
|
+
},
|
|
750
|
+
get horizontal() {
|
|
751
|
+
return rootContext.orientation.value === "horizontal";
|
|
752
|
+
},
|
|
753
|
+
estimateSize(index) {
|
|
754
|
+
if (typeof props.estimateSize === "function") return props.estimateSize(index);
|
|
755
|
+
return props.estimateSize ?? 28;
|
|
756
|
+
},
|
|
757
|
+
getScrollElement() {
|
|
758
|
+
return parentEl.value;
|
|
759
|
+
},
|
|
760
|
+
overscan: props.overscan ?? 12
|
|
761
|
+
});
|
|
762
|
+
const virtualizedItems = computed(() => virtualizer.value.getVirtualItems().map((item) => {
|
|
763
|
+
const defaultNode = slots.default({
|
|
764
|
+
option: props.options[item.index],
|
|
765
|
+
virtualizer: virtualizer.value,
|
|
766
|
+
virtualItem: item
|
|
767
|
+
})[0];
|
|
768
|
+
const targetNode = defaultNode.type === Fragment && Array.isArray(defaultNode.children) ? defaultNode.children.find((child) => typeof child.type !== "symbol") : defaultNode;
|
|
769
|
+
return {
|
|
770
|
+
item,
|
|
771
|
+
is: cloneVNode(targetNode, {
|
|
772
|
+
"key": `${item.key}`,
|
|
773
|
+
"data-index": item.index,
|
|
774
|
+
"aria-setsize": props.options.length,
|
|
775
|
+
"aria-posinset": item.index + 1,
|
|
776
|
+
"style": {
|
|
777
|
+
position: "absolute",
|
|
778
|
+
top: 0,
|
|
779
|
+
left: 0,
|
|
780
|
+
transform: `translateY(${item.start}px)`,
|
|
781
|
+
overflowAnchor: "none"
|
|
782
|
+
}
|
|
783
|
+
})
|
|
784
|
+
};
|
|
785
|
+
}));
|
|
786
|
+
rootContext.virtualFocusHook.on(({ event, scroll }) => {
|
|
787
|
+
const index = props.options.findIndex((option) => {
|
|
788
|
+
if (Array.isArray(rootContext.modelValue.value)) return compare(option, rootContext.modelValue.value[0], rootContext.by);
|
|
789
|
+
else return compare(option, rootContext.modelValue.value, rootContext.by);
|
|
790
|
+
});
|
|
791
|
+
if (index !== -1) {
|
|
792
|
+
event?.preventDefault();
|
|
793
|
+
virtualizer.value.scrollToIndex(index, { align: "start" });
|
|
794
|
+
requestAnimationFrame(() => {
|
|
795
|
+
const item = queryCheckedElement(parentEl.value);
|
|
796
|
+
if (item) {
|
|
797
|
+
rootContext.changeHighlight(item, scroll, scroll ? void 0 : false);
|
|
798
|
+
if (event) item?.focus();
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
} else if (scroll) rootContext.highlightFirstItem();
|
|
802
|
+
else requestAnimationFrame(() => {
|
|
803
|
+
const item = getItems().find((i) => i.ref.dataset.disabled !== "")?.ref;
|
|
804
|
+
if (item) rootContext.changeHighlight(item, false, false);
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
rootContext.virtualHighlightHook.on((value) => {
|
|
808
|
+
const index = props.options.findIndex((option) => {
|
|
809
|
+
return compare(option, value, rootContext.by);
|
|
810
|
+
});
|
|
811
|
+
virtualizer.value.scrollToIndex(index, { align: "start" });
|
|
812
|
+
requestAnimationFrame(() => {
|
|
813
|
+
const item = queryCheckedElement(parentEl.value);
|
|
814
|
+
if (item) rootContext.changeHighlight(item);
|
|
815
|
+
});
|
|
816
|
+
});
|
|
817
|
+
const search = refAutoReset("", 1e3);
|
|
818
|
+
const optionsWithMetadata = computed(() => {
|
|
819
|
+
const parseTextContent = (option) => {
|
|
820
|
+
if (props.textContent) return props.textContent(option);
|
|
821
|
+
else return option?.toString().toLowerCase();
|
|
822
|
+
};
|
|
823
|
+
return props.options.map((option, index) => ({
|
|
824
|
+
index,
|
|
825
|
+
textContent: parseTextContent(option)
|
|
826
|
+
}));
|
|
827
|
+
});
|
|
828
|
+
function handleMultipleReplace(event, intent) {
|
|
829
|
+
if (!rootContext.firstValue?.value || !rootContext.multiple.value || !Array.isArray(rootContext.modelValue.value)) return;
|
|
830
|
+
const collection = getItems().filter((i) => i.ref.dataset.disabled !== "");
|
|
831
|
+
const lastValue = collection.find((i) => i.ref === rootContext.highlightedElement.value)?.value;
|
|
832
|
+
if (!lastValue) return;
|
|
833
|
+
let value = null;
|
|
834
|
+
switch (intent) {
|
|
835
|
+
case "prev":
|
|
836
|
+
case "next": {
|
|
837
|
+
value = findValuesBetween(props.options, rootContext.firstValue.value, lastValue);
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
case "first": {
|
|
841
|
+
value = findValuesBetween(props.options, rootContext.firstValue.value, props.options?.[0]);
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
case "last": {
|
|
845
|
+
value = findValuesBetween(props.options, rootContext.firstValue.value, props.options.at(-1));
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
rootContext.modelValue.value = value;
|
|
850
|
+
}
|
|
851
|
+
rootContext.virtualKeydownHook.on((event) => {
|
|
852
|
+
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
853
|
+
const isTabKey = event.key === "Tab" && !isMetaKey;
|
|
854
|
+
if (isTabKey) return;
|
|
855
|
+
let intent = MAP_KEY_TO_FOCUS_INTENT[event.key];
|
|
856
|
+
if (isMetaKey && event.key === "a" && rootContext.multiple.value) {
|
|
857
|
+
event.preventDefault();
|
|
858
|
+
rootContext.modelValue.value = [...props.options];
|
|
859
|
+
intent = "last";
|
|
860
|
+
} else if (event.shiftKey && intent) handleMultipleReplace(event, intent);
|
|
861
|
+
if (["first", "last"].includes(intent)) {
|
|
862
|
+
event.preventDefault();
|
|
863
|
+
const index = intent === "first" ? 0 : props.options.length - 1;
|
|
864
|
+
virtualizer.value.scrollToIndex(index);
|
|
865
|
+
requestAnimationFrame(() => {
|
|
866
|
+
const items = getItems();
|
|
867
|
+
const item = intent === "first" ? items[0] : items.at(-1);
|
|
868
|
+
if (item) rootContext.changeHighlight(item.ref);
|
|
869
|
+
});
|
|
870
|
+
} else if (!intent && !isMetaKey) {
|
|
871
|
+
search.value += event.key;
|
|
872
|
+
const currentIndex = Number(getActiveElement()?.getAttribute("data-index"));
|
|
873
|
+
const currentMatch = optionsWithMetadata.value[currentIndex].textContent;
|
|
874
|
+
const filteredOptions = optionsWithMetadata.value.map((i) => i.textContent ?? "");
|
|
875
|
+
const next = getNextMatch(filteredOptions, search.value, currentMatch);
|
|
876
|
+
const nextMatch = optionsWithMetadata.value.find((option) => option.textContent === next);
|
|
877
|
+
if (nextMatch) {
|
|
878
|
+
virtualizer.value.scrollToIndex(nextMatch.index, { align: "start" });
|
|
879
|
+
requestAnimationFrame(() => {
|
|
880
|
+
const item = parentEl.value.querySelector(`[data-index="${nextMatch.index}"]`);
|
|
881
|
+
if (item instanceof HTMLElement) rootContext.changeHighlight(item);
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
return (_ctx, _cache) => {
|
|
887
|
+
return openBlock(), createElementBlock("div", {
|
|
888
|
+
"data-reka-virtualizer": "",
|
|
889
|
+
style: normalizeStyle({
|
|
890
|
+
position: "relative",
|
|
891
|
+
width: "100%",
|
|
892
|
+
height: `${unref(virtualizer).getTotalSize()}px`
|
|
893
|
+
})
|
|
894
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(virtualizedItems.value, ({ is, item }) => {
|
|
895
|
+
return openBlock(), createBlock(resolveDynamicComponent(is), { key: item.index });
|
|
896
|
+
}), 128))], 4);
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
var ListboxVirtualizer_default = ListboxVirtualizer_vue_vue_type_script_setup_true_lang_default;
|
|
7
901
|
const [injectComboboxRootContext, provideComboboxRootContext] = /* @__PURE__ */ createContext("ComboboxRoot");
|
|
8
902
|
var ComboboxRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
9
903
|
__name: "ComboboxRoot",
|
|
@@ -1176,6 +2070,44 @@ var ComboboxVirtualizer_vue_vue_type_script_setup_true_lang_default = /* @__PURE
|
|
|
1176
2070
|
}
|
|
1177
2071
|
});
|
|
1178
2072
|
var ComboboxVirtualizer_default = ComboboxVirtualizer_vue_vue_type_script_setup_true_lang_default;
|
|
2073
|
+
function itemHasDescription(item, descriptionKey) {
|
|
2074
|
+
if (typeof item !== "object" || item === null) {
|
|
2075
|
+
return false;
|
|
2076
|
+
}
|
|
2077
|
+
const value = get(item, descriptionKey);
|
|
2078
|
+
return value !== void 0 && value !== null && value !== "";
|
|
2079
|
+
}
|
|
2080
|
+
function getSize(size, hasDescription) {
|
|
2081
|
+
if (hasDescription) {
|
|
2082
|
+
return {
|
|
2083
|
+
xs: 44,
|
|
2084
|
+
sm: 48,
|
|
2085
|
+
md: 52,
|
|
2086
|
+
lg: 56,
|
|
2087
|
+
xl: 60
|
|
2088
|
+
}[size];
|
|
2089
|
+
}
|
|
2090
|
+
return {
|
|
2091
|
+
xs: 24,
|
|
2092
|
+
sm: 28,
|
|
2093
|
+
md: 32,
|
|
2094
|
+
lg: 36,
|
|
2095
|
+
xl: 40
|
|
2096
|
+
}[size];
|
|
2097
|
+
}
|
|
2098
|
+
function getEstimateSize(items, size, descriptionKey, hasDescriptionSlot) {
|
|
2099
|
+
const sizeWithDescription = getSize(size, true);
|
|
2100
|
+
const sizeWithoutDescription = getSize(size, false);
|
|
2101
|
+
if (hasDescriptionSlot) {
|
|
2102
|
+
return () => sizeWithDescription;
|
|
2103
|
+
}
|
|
2104
|
+
if (!descriptionKey) {
|
|
2105
|
+
return () => sizeWithoutDescription;
|
|
2106
|
+
}
|
|
2107
|
+
return (index) => {
|
|
2108
|
+
return itemHasDescription(items[index], descriptionKey) ? sizeWithDescription : sizeWithoutDescription;
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
1179
2111
|
const theme = {
|
|
1180
2112
|
"slots": {
|
|
1181
2113
|
"base": [
|
|
@@ -1745,7 +2677,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1745
2677
|
}
|
|
1746
2678
|
const newItem = props.valueKey ? { [props.valueKey]: searchTerm.value } : searchTerm.value;
|
|
1747
2679
|
if (typeof props.createItem === "object" && props.createItem.when === "always" || props.createItem === "always") {
|
|
1748
|
-
return !filteredItems.value.find((item) => compare(item, newItem, props.by ?? props.valueKey));
|
|
2680
|
+
return !filteredItems.value.find((item) => compare$1(item, newItem, props.by ?? props.valueKey));
|
|
1749
2681
|
}
|
|
1750
2682
|
return !filteredItems.value.length;
|
|
1751
2683
|
});
|
|
@@ -3464,5 +4396,5 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
3464
4396
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
3465
4397
|
};
|
|
3466
4398
|
|
|
3467
|
-
export { _sfc_main as _ };
|
|
3468
|
-
//# sourceMappingURL=SelectMenu-
|
|
4399
|
+
export { ListboxItem_default as L, _sfc_main as _, ListboxItemIndicator_default as a, ListboxRoot_default as b, ListboxFilter_default as c, ListboxContent_default as d, ListboxVirtualizer_default as e, ListboxGroup_default as f, getEstimateSize as g, injectListboxGroupContext as i };
|
|
4400
|
+
//# sourceMappingURL=SelectMenu-D-2FSqBU.mjs.map
|