bootstrap-vue-next 0.44.2 → 0.44.4
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/{BAccordion-CQIw-5xs.js → BAccordion-CJZMsvwP.js} +6 -6
- package/dist/{BAccordion-CQIw-5xs.js.map → BAccordion-CJZMsvwP.js.map} +1 -1
- package/dist/{BAccordion-BJcDjMYL.mjs → BAccordion-CNzV6f8e.mjs} +6 -6
- package/dist/{BAccordion-BJcDjMYL.mjs.map → BAccordion-CNzV6f8e.mjs.map} +1 -1
- package/dist/{BAlert-CVtoW2SX.js → BAlert-BnT7fF6B.js} +9 -9
- package/dist/{BAlert-CVtoW2SX.js.map → BAlert-BnT7fF6B.js.map} +1 -1
- package/dist/{BAlert-DaQxH8c1.mjs → BAlert-Qiyqq4rE.mjs} +9 -9
- package/dist/{BAlert-DaQxH8c1.mjs.map → BAlert-Qiyqq4rE.mjs.map} +1 -1
- package/dist/{BApp-CIu-zI8K.mjs → BApp-DJWC2mB8.mjs} +2 -2
- package/dist/{BApp-CIu-zI8K.mjs.map → BApp-DJWC2mB8.mjs.map} +1 -1
- package/dist/{BApp-cBKQc5Dd.js → BApp-DaM0UKIg.js} +2 -2
- package/dist/{BApp-cBKQc5Dd.js.map → BApp-DaM0UKIg.js.map} +1 -1
- package/dist/BAspect-BULTO240.js +50 -0
- package/dist/BAspect-BULTO240.js.map +1 -0
- package/dist/BAspect-CwokVvvn.mjs +44 -0
- package/dist/BAspect-CwokVvvn.mjs.map +1 -0
- package/dist/BAutocomplete-C7Odx4At.js +2342 -0
- package/dist/BAutocomplete-C7Odx4At.js.map +1 -0
- package/dist/BAutocomplete-Depalqe-.mjs +2336 -0
- package/dist/BAutocomplete-Depalqe-.mjs.map +1 -0
- package/dist/{BAvatar-C7Vc4wad.mjs → BAvatar-D7aFEXLH.mjs} +8 -8
- package/dist/{BAvatar-C7Vc4wad.mjs.map → BAvatar-D7aFEXLH.mjs.map} +1 -1
- package/dist/{BAvatar-BcQeFYZU.js → BAvatar-lefHkDuG.js} +8 -8
- package/dist/{BAvatar-BcQeFYZU.js.map → BAvatar-lefHkDuG.js.map} +1 -1
- package/dist/{BBadge-CKGGd4xB.js → BBadge-BBUcrujj.js} +5 -5
- package/dist/{BBadge-CKGGd4xB.js.map → BBadge-BBUcrujj.js.map} +1 -1
- package/dist/{BBadge-Dfkx4SMN.mjs → BBadge-D5ra3W5R.mjs} +5 -5
- package/dist/{BBadge-Dfkx4SMN.mjs.map → BBadge-D5ra3W5R.mjs.map} +1 -1
- package/dist/{BBreadcrumb-1Wxpf1iy.js → BBreadcrumb-BSsiwCNB.js} +4 -4
- package/dist/{BBreadcrumb-1Wxpf1iy.js.map → BBreadcrumb-BSsiwCNB.js.map} +1 -1
- package/dist/{BBreadcrumb-CR35-KcI.mjs → BBreadcrumb-amkzWyz6.mjs} +4 -4
- package/dist/{BBreadcrumb-CR35-KcI.mjs.map → BBreadcrumb-amkzWyz6.mjs.map} +1 -1
- package/dist/{BButton-1yV1UiT7.mjs → BButton-BRvIFnRm.mjs} +5 -5
- package/dist/{BButton-1yV1UiT7.mjs.map → BButton-BRvIFnRm.mjs.map} +1 -1
- package/dist/{BButton-BID3NrxE.js → BButton-DBRs8Pz_.js} +5 -5
- package/dist/{BButton-BID3NrxE.js.map → BButton-DBRs8Pz_.js.map} +1 -1
- package/dist/{BButton-BtCX70_2.mjs → BButton-DNmtqoqR.mjs} +5 -5
- package/dist/{BButton-BtCX70_2.mjs.map → BButton-DNmtqoqR.mjs.map} +1 -1
- package/dist/{BButton-C_bVBx8e.js → BButton-kykTWnBy.js} +5 -5
- package/dist/{BButton-C_bVBx8e.js.map → BButton-kykTWnBy.js.map} +1 -1
- package/dist/{BCard-Vf1haqo5.mjs → BCard-C1G8PO5k.mjs} +6 -6
- package/dist/{BCard-Vf1haqo5.mjs.map → BCard-C1G8PO5k.mjs.map} +1 -1
- package/dist/{BCard-CY6iY456.mjs → BCard-CJ822HyH.mjs} +3 -3
- package/dist/{BCard-CY6iY456.mjs.map → BCard-CJ822HyH.mjs.map} +1 -1
- package/dist/{BCard-D1J5OVRY.js → BCard-CSyEHz8Z.js} +3 -3
- package/dist/{BCard-D1J5OVRY.js.map → BCard-CSyEHz8Z.js.map} +1 -1
- package/dist/{BCard-BIQQg9Rx.js → BCard-CgbTFn3S.js} +6 -6
- package/dist/{BCard-BIQQg9Rx.js.map → BCard-CgbTFn3S.js.map} +1 -1
- package/dist/{BCarousel-BH6WIvJx.js → BCarousel-Be7z13f9.js} +10 -7
- package/dist/BCarousel-Be7z13f9.js.map +1 -0
- package/dist/{BCarousel-C3CA_wGV.mjs → BCarousel-D81alfFC.mjs} +10 -7
- package/dist/BCarousel-D81alfFC.mjs.map +1 -0
- package/dist/{BCloseButton-CgIVNv2g.js → BCloseButton-CN__Jjcj.js} +2 -2
- package/dist/{BCloseButton-CgIVNv2g.js.map → BCloseButton-CN__Jjcj.js.map} +1 -1
- package/dist/{BCloseButton-DrD0tpan.mjs → BCloseButton-CjgbR1Ec.mjs} +2 -2
- package/dist/{BCloseButton-DrD0tpan.mjs.map → BCloseButton-CjgbR1Ec.mjs.map} +1 -1
- package/dist/{BCol-GOE5drq_.js → BCol-0tZmpOme.js} +3 -3
- package/dist/{BCol-GOE5drq_.js.map → BCol-0tZmpOme.js.map} +1 -1
- package/dist/{BCol-BjC3q-su.mjs → BCol-C4v-TOX6.mjs} +3 -3
- package/dist/{BCol-BjC3q-su.mjs.map → BCol-C4v-TOX6.mjs.map} +1 -1
- package/dist/{BCollapse-DqeS5WyB.mjs → BCollapse-D-xTGkX_.mjs} +4 -4
- package/dist/{BCollapse-DqeS5WyB.mjs.map → BCollapse-D-xTGkX_.mjs.map} +1 -1
- package/dist/{BCollapse-BMSZfqqk.js → BCollapse-DZ1z2c8U.js} +4 -4
- package/dist/{BCollapse-BMSZfqqk.js.map → BCollapse-DZ1z2c8U.js.map} +1 -1
- package/dist/{BContainer-CdNYUb9S.js → BContainer-BZUI2qQv.js} +4 -4
- package/dist/{BContainer-CdNYUb9S.js.map → BContainer-BZUI2qQv.js.map} +1 -1
- package/dist/{BContainer-NRhwYcFj.mjs → BContainer-DjIGH6-y.mjs} +4 -4
- package/dist/{BContainer-NRhwYcFj.mjs.map → BContainer-DjIGH6-y.mjs.map} +1 -1
- package/dist/{BDateField-CRFFJ4Sj.mjs → BDateField-BJIq6gs9.mjs} +8 -6
- package/dist/{BDateField-CRFFJ4Sj.mjs.map → BDateField-BJIq6gs9.mjs.map} +1 -1
- package/dist/{BDateField-3Xb73vd-.js → BDateField-RWwEMIwd.js} +17 -15
- package/dist/{BDateField-3Xb73vd-.js.map → BDateField-RWwEMIwd.js.map} +1 -1
- package/dist/{BDatePicker-rdtRZlra.js → BDatePicker-BQN6qZXa.js} +74 -1556
- package/dist/BDatePicker-BQN6qZXa.js.map +1 -0
- package/dist/{BDatePicker-DPtAqGyV.mjs → BDatePicker-DfzZBWjU.mjs} +15 -1497
- package/dist/BDatePicker-DfzZBWjU.mjs.map +1 -0
- package/dist/{BDropdown-k-nulez8.mjs → BDropdown-BW_O8vPQ.mjs} +5 -5
- package/dist/{BDropdown-k-nulez8.mjs.map → BDropdown-BW_O8vPQ.mjs.map} +1 -1
- package/dist/{BDropdown-C2L69dLN.js → BDropdown-C1AxRj81.js} +15 -12
- package/dist/BDropdown-C1AxRj81.js.map +1 -0
- package/dist/{BDropdown-CrgX7oCn.js → BDropdown-CuVOxCzu.js} +5 -5
- package/dist/{BDropdown-CrgX7oCn.js.map → BDropdown-CuVOxCzu.js.map} +1 -1
- package/dist/{BDropdown-CKnx6hUH.mjs → BDropdown-DAHnN54Z.mjs} +15 -12
- package/dist/BDropdown-DAHnN54Z.mjs.map +1 -0
- package/dist/{BForm-B0YEolfQ.js → BForm-Bp7SFxiK.js} +2 -2
- package/dist/{BForm-B0YEolfQ.js.map → BForm-Bp7SFxiK.js.map} +1 -1
- package/dist/{BForm-ppPvhIuu.js → BForm-BqHUnHpU.js} +8 -7
- package/dist/{BForm-ppPvhIuu.js.map → BForm-BqHUnHpU.js.map} +1 -1
- package/dist/{BForm-DZW1uWD-.mjs → BForm-IL7Rf_27.mjs} +7 -6
- package/dist/{BForm-DZW1uWD-.mjs.map → BForm-IL7Rf_27.mjs.map} +1 -1
- package/dist/{BForm-CPHblWb2.mjs → BForm-Oh6PpdcD.mjs} +2 -2
- package/dist/{BForm-CPHblWb2.mjs.map → BForm-Oh6PpdcD.mjs.map} +1 -1
- package/dist/{BFormCheckbox-MEwee9Ij.js → BFormCheckbox-Bdk2rgVe.js} +6 -6
- package/dist/{BFormCheckbox-MEwee9Ij.js.map → BFormCheckbox-Bdk2rgVe.js.map} +1 -1
- package/dist/{BFormCheckbox-CsN1a4jm.mjs → BFormCheckbox-CcDK-lh1.mjs} +6 -6
- package/dist/{BFormCheckbox-CsN1a4jm.mjs.map → BFormCheckbox-CcDK-lh1.mjs.map} +1 -1
- package/dist/{BFormFile-BEHeBj6q.js → BFormFile-BWknj7fW.js} +5 -5
- package/dist/{BFormFile-BEHeBj6q.js.map → BFormFile-BWknj7fW.js.map} +1 -1
- package/dist/{BFormFile-CNtEA98J.mjs → BFormFile-Bf3GMYeX.mjs} +5 -5
- package/dist/{BFormFile-CNtEA98J.mjs.map → BFormFile-Bf3GMYeX.mjs.map} +1 -1
- package/dist/{BFormGroup-DBVGyJ-f.mjs → BFormGroup--38dFj0X.mjs} +9 -9
- package/dist/{BFormGroup-DBVGyJ-f.mjs.map → BFormGroup--38dFj0X.mjs.map} +1 -1
- package/dist/{BFormGroup-CGjb_pUi.js → BFormGroup-BwO1BZD1.js} +9 -9
- package/dist/{BFormGroup-CGjb_pUi.js.map → BFormGroup-BwO1BZD1.js.map} +1 -1
- package/dist/{BFormInput-4vCGzAoO.js → BFormInput-BuRSGYdY.js} +3 -3
- package/dist/{BFormInput-4vCGzAoO.js.map → BFormInput-BuRSGYdY.js.map} +1 -1
- package/dist/{BFormInput-DrZnHCLO.mjs → BFormInput-Dg9dbwHp.mjs} +3 -3
- package/dist/{BFormInput-DrZnHCLO.mjs.map → BFormInput-Dg9dbwHp.mjs.map} +1 -1
- package/dist/{BFormRadio-BXpiJTsS.mjs → BFormRadio-CRDbgMiR.mjs} +6 -6
- package/dist/{BFormRadio-BXpiJTsS.mjs.map → BFormRadio-CRDbgMiR.mjs.map} +1 -1
- package/dist/{BFormRadio-BzHsRe9X.js → BFormRadio-DuVYw-Vs.js} +6 -6
- package/dist/{BFormRadio-BzHsRe9X.js.map → BFormRadio-DuVYw-Vs.js.map} +1 -1
- package/dist/{BFormRating-Cq94zurU.mjs → BFormRating-Bb_ACp-9.mjs} +4 -4
- package/dist/{BFormRating-Cq94zurU.mjs.map → BFormRating-Bb_ACp-9.mjs.map} +1 -1
- package/dist/{BFormRating-_MVRGNOF.js → BFormRating-CNqf91vN.js} +4 -4
- package/dist/{BFormRating-_MVRGNOF.js.map → BFormRating-CNqf91vN.js.map} +1 -1
- package/dist/{BFormSelect-DbpJ_0j-.mjs → BFormSelect-Dg6OwMl-.mjs} +8 -7
- package/dist/{BFormSelect-DbpJ_0j-.mjs.map → BFormSelect-Dg6OwMl-.mjs.map} +1 -1
- package/dist/{BFormSelect-DFa1-5ez.js → BFormSelect-DqSojuY_.js} +10 -9
- package/dist/{BFormSelect-DFa1-5ez.js.map → BFormSelect-DqSojuY_.js.map} +1 -1
- package/dist/BFormSelectOption-BY4P8HOf.js +46 -0
- package/dist/BFormSelectOption-BY4P8HOf.js.map +1 -0
- package/dist/BFormSelectOption-O8cyyv3i.mjs +40 -0
- package/dist/BFormSelectOption-O8cyyv3i.mjs.map +1 -0
- package/dist/{BFormSpinbutton-DmzfRDeR.mjs → BFormSpinbutton-BLO0Yf36.mjs} +6 -6
- package/dist/{BFormSpinbutton-DmzfRDeR.mjs.map → BFormSpinbutton-BLO0Yf36.mjs.map} +1 -1
- package/dist/{BFormSpinbutton-DzJ071Gz.js → BFormSpinbutton-BaOTL1k1.js} +6 -6
- package/dist/{BFormSpinbutton-DzJ071Gz.js.map → BFormSpinbutton-BaOTL1k1.js.map} +1 -1
- package/dist/BFormTag-BUWEugEC.mjs +80 -0
- package/dist/BFormTag-BUWEugEC.mjs.map +1 -0
- package/dist/BFormTag-C7B-bX72.js +86 -0
- package/dist/BFormTag-C7B-bX72.js.map +1 -0
- package/dist/{BFormTags-pK9i3cOB.js → BFormTags-BFA6xbr3.js} +12 -88
- package/dist/BFormTags-BFA6xbr3.js.map +1 -0
- package/dist/{BFormTags-Cobh04P9.mjs → BFormTags-CJb4H67g.mjs} +13 -83
- package/dist/BFormTags-CJb4H67g.mjs.map +1 -0
- package/dist/{BFormTextarea-BtXarcjA.js → BFormTextarea-8c3B3kAI.js} +4 -4
- package/dist/{BFormTextarea-BtXarcjA.js.map → BFormTextarea-8c3B3kAI.js.map} +1 -1
- package/dist/{BFormTextarea-ClcoJrSM.mjs → BFormTextarea-BMk05ojJ.mjs} +4 -4
- package/dist/{BFormTextarea-ClcoJrSM.mjs.map → BFormTextarea-BMk05ojJ.mjs.map} +1 -1
- package/dist/{BFormValidFeedback-Ot8gdDST.js → BFormValidFeedback-DvTgwqSe.js} +3 -3
- package/dist/{BFormValidFeedback-Ot8gdDST.js.map → BFormValidFeedback-DvTgwqSe.js.map} +1 -1
- package/dist/{BFormValidFeedback-foz9BlkH.mjs → BFormValidFeedback-_Dgzm0Ag.mjs} +3 -3
- package/dist/{BFormValidFeedback-foz9BlkH.mjs.map → BFormValidFeedback-_Dgzm0Ag.mjs.map} +1 -1
- package/dist/{BImg-b_3eTiEq.mjs → BImg-BQqZfIM9.mjs} +5 -5
- package/dist/{BImg-b_3eTiEq.mjs.map → BImg-BQqZfIM9.mjs.map} +1 -1
- package/dist/{BImg-BrA0ZRS6.js → BImg-Dyy0N-WQ.js} +5 -5
- package/dist/{BImg-BrA0ZRS6.js.map → BImg-Dyy0N-WQ.js.map} +1 -1
- package/dist/BInputGroup-BScMw6Zr.js +31 -0
- package/dist/BInputGroup-BScMw6Zr.js.map +1 -0
- package/dist/BInputGroup-C7k0tS9j.mjs +25 -0
- package/dist/BInputGroup-C7k0tS9j.mjs.map +1 -0
- package/dist/{BInputGroup-B8fKBtip.mjs → BInputGroup-DpX10xwR.mjs} +4 -22
- package/dist/BInputGroup-DpX10xwR.mjs.map +1 -0
- package/dist/{BInputGroup-Cr0qLUds.js → BInputGroup-Duk6Jk0v.js} +2 -26
- package/dist/BInputGroup-Duk6Jk0v.js.map +1 -0
- package/dist/{BLink-DoYZ8dBl.mjs → BLink-Cz5YCsnv.mjs} +4 -4
- package/dist/{BLink-DoYZ8dBl.mjs.map → BLink-Cz5YCsnv.mjs.map} +1 -1
- package/dist/{BLink-DW7s8W_N.js → BLink-uemyYKst.js} +4 -4
- package/dist/{BLink-DW7s8W_N.js.map → BLink-uemyYKst.js.map} +1 -1
- package/dist/{BListGroup-ByYmtuCM.mjs → BListGroup-BmtN0xQ3.mjs} +3 -3
- package/dist/{BListGroup-ByYmtuCM.mjs.map → BListGroup-BmtN0xQ3.mjs.map} +1 -1
- package/dist/{BListGroup-clQNXk23.js → BListGroup-DuyMdAxJ.js} +3 -3
- package/dist/{BListGroup-clQNXk23.js.map → BListGroup-DuyMdAxJ.js.map} +1 -1
- package/dist/{BModal-TCXrZEZk.mjs → BModal-Br5xLT0-.mjs} +15 -12
- package/dist/BModal-Br5xLT0-.mjs.map +1 -0
- package/dist/{BModal-d3FKaKhA.js → BModal-D0LB339D.js} +15 -12
- package/dist/BModal-D0LB339D.js.map +1 -0
- package/dist/{BNav-BBr8213N.mjs → BNav-BRjdHsjC.mjs} +7 -7
- package/dist/{BNav-BBr8213N.mjs.map → BNav-BRjdHsjC.mjs.map} +1 -1
- package/dist/{BNav-BMAZcVDS.js → BNav-tYBwz1wU.js} +7 -7
- package/dist/{BNav-BMAZcVDS.js.map → BNav-tYBwz1wU.js.map} +1 -1
- package/dist/{BNavbar-BfYFzX1s.js → BNavbar-s9Ak5PnO.js} +6 -6
- package/dist/{BNavbar-BfYFzX1s.js.map → BNavbar-s9Ak5PnO.js.map} +1 -1
- package/dist/{BNavbar-DtgNmsyI.mjs → BNavbar-vN3_CMLn.mjs} +6 -6
- package/dist/{BNavbar-DtgNmsyI.mjs.map → BNavbar-vN3_CMLn.mjs.map} +1 -1
- package/dist/{BOffcanvas-YsVap-9w.js → BOffcanvas-D33pEfZe.js} +14 -11
- package/dist/BOffcanvas-D33pEfZe.js.map +1 -0
- package/dist/{BOffcanvas-BklEA-4x.mjs → BOffcanvas-jETHbtC3.mjs} +14 -11
- package/dist/BOffcanvas-jETHbtC3.mjs.map +1 -0
- package/dist/BOtpInput-CSCoKHP9.js +542 -0
- package/dist/BOtpInput-CSCoKHP9.js.map +1 -0
- package/dist/BOtpInput-Drfkt3x3.mjs +536 -0
- package/dist/BOtpInput-Drfkt3x3.mjs.map +1 -0
- package/dist/{BOverlay-Dg9YM7p1.js → BOverlay-B7vJAdHO.js} +6 -6
- package/dist/{BOverlay-Dg9YM7p1.js.map → BOverlay-B7vJAdHO.js.map} +1 -1
- package/dist/{BOverlay-DOfvBAZb.mjs → BOverlay-BGxH9JVy.mjs} +6 -6
- package/dist/{BOverlay-DOfvBAZb.mjs.map → BOverlay-BGxH9JVy.mjs.map} +1 -1
- package/dist/{BPagination-9P9Xh3cN.js → BPagination-C0-4NVzW.js} +6 -6
- package/dist/{BPagination-9P9Xh3cN.js.map → BPagination-C0-4NVzW.js.map} +1 -1
- package/dist/{BPagination-B868NBmG.mjs → BPagination-CvoSN1He.mjs} +6 -6
- package/dist/{BPagination-B868NBmG.mjs.map → BPagination-CvoSN1He.mjs.map} +1 -1
- package/dist/{BPlaceholder-7UJ3Nyb3.mjs → BPlaceholder-C4AOg29f.mjs} +6 -6
- package/dist/{BPlaceholder-7UJ3Nyb3.mjs.map → BPlaceholder-C4AOg29f.mjs.map} +1 -1
- package/dist/{BPlaceholder-DPEVmogO.js → BPlaceholder-DYYYuNgR.js} +6 -6
- package/dist/{BPlaceholder-DPEVmogO.js.map → BPlaceholder-DYYYuNgR.js.map} +1 -1
- package/dist/{BProgress-Bdf5AncM.mjs → BProgress-BIqo6vLh.mjs} +4 -4
- package/dist/{BProgress-Bdf5AncM.mjs.map → BProgress-BIqo6vLh.mjs.map} +1 -1
- package/dist/{BProgress-CeEIdt1a.js → BProgress-Bc3ZSkac.js} +4 -4
- package/dist/{BProgress-CeEIdt1a.js.map → BProgress-Bc3ZSkac.js.map} +1 -1
- package/dist/{BRow-NaXJzpS-.mjs → BRow-BCEK3fe6.mjs} +4 -4
- package/dist/{BRow-NaXJzpS-.mjs.map → BRow-BCEK3fe6.mjs.map} +1 -1
- package/dist/{BRow-DGi1WkB9.js → BRow-tqMEhkZS.js} +4 -4
- package/dist/{BRow-DGi1WkB9.js.map → BRow-tqMEhkZS.js.map} +1 -1
- package/dist/{BSpinner-Kska3Bsd.js → BSpinner-8UMAINYb.js} +3 -3
- package/dist/{BSpinner-Kska3Bsd.js.map → BSpinner-8UMAINYb.js.map} +1 -1
- package/dist/{BSpinner-DlLxrIkh.mjs → BSpinner-BpnwONvx.mjs} +3 -3
- package/dist/{BSpinner-DlLxrIkh.mjs.map → BSpinner-BpnwONvx.mjs.map} +1 -1
- package/dist/{BTable-BiNbXnsR.js → BTable-Btzu1IJ_.js} +9 -9
- package/dist/{BTable-BiNbXnsR.js.map → BTable-Btzu1IJ_.js.map} +1 -1
- package/dist/{BTable-C__GSYX2.mjs → BTable-CjHMx8Yv.mjs} +9 -9
- package/dist/{BTable-C__GSYX2.mjs.map → BTable-CjHMx8Yv.mjs.map} +1 -1
- package/dist/{BTableSimple-fwaF0Kws.js → BTableSimple-BcdizuDm.js} +5 -5
- package/dist/{BTableSimple-fwaF0Kws.js.map → BTableSimple-BcdizuDm.js.map} +1 -1
- package/dist/{BTableSimple-eebTf2L5.mjs → BTableSimple-C901Z5V9.mjs} +5 -5
- package/dist/{BTableSimple-eebTf2L5.mjs.map → BTableSimple-C901Z5V9.mjs.map} +1 -1
- package/dist/{BTabs-7IT0dhVr.mjs → BTabs-DZEF9kgT.mjs} +7 -7
- package/dist/{BTabs-7IT0dhVr.mjs.map → BTabs-DZEF9kgT.mjs.map} +1 -1
- package/dist/{BTabs-BxwRSBMv.js → BTabs-DiYaJi22.js} +7 -7
- package/dist/{BTabs-BxwRSBMv.js.map → BTabs-DiYaJi22.js.map} +1 -1
- package/dist/{BTimeField-CZw1_K7v.mjs → BTimeField-DSWZeGYP.mjs} +7 -5
- package/dist/{BTimeField-CZw1_K7v.mjs.map → BTimeField-DSWZeGYP.mjs.map} +1 -1
- package/dist/{BTimeField-CngB6NOW.js → BTimeField-VTrtxGkI.js} +18 -16
- package/dist/{BTimeField-CngB6NOW.js.map → BTimeField-VTrtxGkI.js.map} +1 -1
- package/dist/{BToast-IYBku5Nr.mjs → BToast-B2rFKhLD.mjs} +10 -10
- package/dist/{BToast-IYBku5Nr.mjs.map → BToast-B2rFKhLD.mjs.map} +1 -1
- package/dist/{BToast-BraVbf4N.js → BToast-DCSZYXIi.js} +10 -10
- package/dist/{BToast-BraVbf4N.js.map → BToast-DCSZYXIi.js.map} +1 -1
- package/dist/{BTooltip-B2hE5Q6m.js → BTooltip-CryTO-SM.js} +3 -3
- package/dist/{BTooltip-B2hE5Q6m.js.map → BTooltip-CryTO-SM.js.map} +1 -1
- package/dist/{BTooltip-BuK_zb1B.mjs → BTooltip-DtpjIEBu.mjs} +3 -3
- package/dist/{BTooltip-BuK_zb1B.mjs.map → BTooltip-DtpjIEBu.mjs.map} +1 -1
- package/dist/{BootstrapVueOptions-CVxLmDvx.js → BootstrapVueOptions-BC3f7hMU.js} +4 -1
- package/dist/BootstrapVueOptions-BC3f7hMU.js.map +1 -0
- package/dist/{BootstrapVueOptions-Dtdn7_AJ.mjs → BootstrapVueOptions-BU3rzYio.mjs} +4 -1
- package/dist/BootstrapVueOptions-BU3rzYio.mjs.map +1 -0
- package/dist/{ConditionalTeleport-BDWcebyD.js → ConditionalTeleport-BJZk6HAx.js} +1 -1
- package/dist/{ConditionalTeleport-BDWcebyD.js.map → ConditionalTeleport-BJZk6HAx.js.map} +1 -1
- package/dist/{ConditionalTeleport-B4KYZIM6.mjs → ConditionalTeleport-BNsziElf.mjs} +1 -1
- package/dist/{ConditionalTeleport-B4KYZIM6.mjs.map → ConditionalTeleport-BNsziElf.mjs.map} +1 -1
- package/dist/{ConditionalWrapper-ZqZKYsic.js → ConditionalWrapper-Cc7EIszd.js} +1 -1
- package/dist/{ConditionalWrapper-ZqZKYsic.js.map → ConditionalWrapper-Cc7EIszd.js.map} +1 -1
- package/dist/{ConditionalWrapper-BR9CKZNU.mjs → ConditionalWrapper-D9ovtbHB.mjs} +1 -1
- package/dist/{ConditionalWrapper-BR9CKZNU.mjs.map → ConditionalWrapper-D9ovtbHB.mjs.map} +1 -1
- package/dist/{DateRangeFieldInput-bXDqGVUe.js → DateRangeFieldInput-Ce7PM3PJ.js} +22 -20
- package/dist/{DateRangeFieldInput-bXDqGVUe.js.map → DateRangeFieldInput-Ce7PM3PJ.js.map} +1 -1
- package/dist/{DateRangeFieldInput-bA6IK9lx.mjs → DateRangeFieldInput-DiVuhf4Y.mjs} +5 -3
- package/dist/{DateRangeFieldInput-bA6IK9lx.mjs.map → DateRangeFieldInput-DiVuhf4Y.mjs.map} +1 -1
- package/dist/PopperContent-BTUvv6Tu.mjs +1431 -0
- package/dist/PopperContent-BTUvv6Tu.mjs.map +1 -0
- package/dist/PopperContent-CSwv2Fih.js +1515 -0
- package/dist/PopperContent-CSwv2Fih.js.map +1 -0
- package/dist/VisuallyHidden-Bbwok8oL.mjs +174 -0
- package/dist/VisuallyHidden-Bbwok8oL.mjs.map +1 -0
- package/dist/VisuallyHidden-DaN947I0.js +222 -0
- package/dist/VisuallyHidden-DaN947I0.js.map +1 -0
- package/dist/VisuallyHiddenInput-Biq4Qv5j.js +147 -0
- package/dist/VisuallyHiddenInput-Biq4Qv5j.js.map +1 -0
- package/dist/VisuallyHiddenInput-D1SjTCVH.mjs +141 -0
- package/dist/VisuallyHiddenInput-D1SjTCVH.mjs.map +1 -0
- package/dist/bootstrap-vue-next.css +147 -0
- package/dist/bootstrap-vue-next.mjs +62 -57
- package/dist/bootstrap-vue-next.umd.js +67 -59
- package/dist/{classes-D6JE1Dex.mjs → classes-B0E5Y78Y.mjs} +1 -1
- package/dist/{classes-D6JE1Dex.mjs.map → classes-B0E5Y78Y.mjs.map} +1 -1
- package/dist/{classes-vdSVs0gA.js → classes-D5wrmmVs.js} +1 -1
- package/dist/{classes-vdSVs0gA.js.map → classes-D5wrmmVs.js.map} +1 -1
- package/dist/components/BAccordion/BAccordionItem.vue.d.mts +1 -1
- package/dist/components/BAccordion/BAccordionItem.vue.d.ts +1 -1
- package/dist/components/BAspect/BAspect.vue.d.mts +21 -0
- package/dist/components/BAspect/BAspect.vue.d.ts +21 -0
- package/dist/components/BAspect/index.d.mts +1 -0
- package/dist/components/BAspect/index.d.ts +1 -0
- package/dist/components/BAutocomplete/BAutocomplete.vue.d.mts +65 -0
- package/dist/components/BAutocomplete/BAutocomplete.vue.d.ts +65 -0
- package/dist/components/BAutocomplete/index.d.mts +1 -0
- package/dist/components/BAutocomplete/index.d.ts +1 -0
- package/dist/components/BButton/BButtonGroup.vue.d.mts +1 -1
- package/dist/components/BButton/BButtonGroup.vue.d.ts +1 -1
- package/dist/components/BCard/BCard.vue.d.mts +1 -1
- package/dist/components/BCard/BCard.vue.d.ts +1 -1
- package/dist/components/BCard/BCardImg.vue.d.mts +1 -1
- package/dist/components/BCard/BCardImg.vue.d.ts +1 -1
- package/dist/components/BCollapse/BCollapse.vue.d.mts +1 -1
- package/dist/components/BCollapse/BCollapse.vue.d.ts +1 -1
- package/dist/components/BDateField/BDateField.vue.d.mts +1 -1
- package/dist/components/BDateField/BDateField.vue.d.ts +1 -1
- package/dist/components/BDateField/BDateRangeField.vue.d.mts +1 -1
- package/dist/components/BDateField/BDateRangeField.vue.d.ts +1 -1
- package/dist/components/BDateField/BTimeRangeField.vue.d.mts +4 -4
- package/dist/components/BDateField/BTimeRangeField.vue.d.ts +4 -4
- package/dist/components/BDatePicker/BDatePicker.vue.d.mts +4 -4
- package/dist/components/BDatePicker/BDatePicker.vue.d.ts +4 -4
- package/dist/components/BDatePicker/BDateRangePicker.vue.d.mts +4 -4
- package/dist/components/BDatePicker/BDateRangePicker.vue.d.ts +4 -4
- package/dist/components/BDropdown/BDropdown.vue.d.mts +2 -2
- package/dist/components/BDropdown/BDropdown.vue.d.ts +2 -2
- package/dist/components/BForm/BFormDatalistBase.vue.d.mts +5 -5
- package/dist/components/BForm/BFormDatalistBase.vue.d.ts +5 -5
- package/dist/components/BForm/BFormInvalidFeedback.vue.d.mts +1 -1
- package/dist/components/BForm/BFormInvalidFeedback.vue.d.ts +1 -1
- package/dist/components/BForm/BFormValidFeedback.vue.d.mts +1 -1
- package/dist/components/BForm/BFormValidFeedback.vue.d.ts +1 -1
- package/dist/components/BFormCheckbox/BFormCheckbox.vue.d.mts +1 -1
- package/dist/components/BFormCheckbox/BFormCheckbox.vue.d.ts +1 -1
- package/dist/components/BFormFile/BFormFile.vue.d.mts +1 -1
- package/dist/components/BFormFile/BFormFile.vue.d.ts +1 -1
- package/dist/components/BFormGroup/BFormGroup.vue.d.mts +1 -1
- package/dist/components/BFormGroup/BFormGroup.vue.d.ts +1 -1
- package/dist/components/BFormSelect/BFormSelectBase.vue.d.mts +4 -4
- package/dist/components/BFormSelect/BFormSelectBase.vue.d.ts +4 -4
- package/dist/components/BImg/BImg.vue.d.mts +1 -1
- package/dist/components/BImg/BImg.vue.d.ts +1 -1
- package/dist/components/BInputGroup/BInputGroup.vue.d.mts +1 -1
- package/dist/components/BInputGroup/BInputGroup.vue.d.ts +1 -1
- package/dist/components/BListGroup/BListGroup.vue.d.mts +1 -1
- package/dist/components/BListGroup/BListGroup.vue.d.ts +1 -1
- package/dist/components/BModal/BModal.vue.d.mts +1 -1
- package/dist/components/BModal/BModal.vue.d.ts +1 -1
- package/dist/components/BNav/BNav.vue.d.mts +1 -1
- package/dist/components/BNav/BNav.vue.d.ts +1 -1
- package/dist/components/BNav/BNavItemDropdown.vue.d.mts +13 -13
- package/dist/components/BNav/BNavItemDropdown.vue.d.ts +13 -13
- package/dist/components/BNavbar/BNavbar.vue.d.mts +1 -1
- package/dist/components/BNavbar/BNavbar.vue.d.ts +1 -1
- package/dist/components/BNavbar/BNavbarNav.vue.d.mts +1 -1
- package/dist/components/BNavbar/BNavbarNav.vue.d.ts +1 -1
- package/dist/components/BOffcanvas/BOffcanvas.vue.d.mts +1 -1
- package/dist/components/BOffcanvas/BOffcanvas.vue.d.ts +1 -1
- package/dist/components/BOtpInput/BOtpInput.vue.d.mts +32 -0
- package/dist/components/BOtpInput/BOtpInput.vue.d.ts +32 -0
- package/dist/components/BOtpInput/index.d.mts +1 -0
- package/dist/components/BOtpInput/index.d.ts +1 -0
- package/dist/components/BPlaceholder/BPlaceholder.vue.d.mts +1 -1
- package/dist/components/BPlaceholder/BPlaceholder.vue.d.ts +1 -1
- package/dist/components/BPlaceholder/BPlaceholderButton.vue.d.mts +1 -1
- package/dist/components/BPlaceholder/BPlaceholderButton.vue.d.ts +1 -1
- package/dist/components/BProgress/BProgress.vue.d.mts +1 -1
- package/dist/components/BProgress/BProgress.vue.d.ts +1 -1
- package/dist/components/BSpinner/BSpinner.vue.d.mts +2 -2
- package/dist/components/BSpinner/BSpinner.vue.d.ts +2 -2
- package/dist/components/BTable/BTable.vue.d.mts +3 -3
- package/dist/components/BTable/BTable.vue.d.ts +3 -3
- package/dist/components/BTabs/BTabs.vue.d.mts +1 -1
- package/dist/components/BTabs/BTabs.vue.d.ts +1 -1
- package/dist/components/BTimeField/BTimeField.vue.d.mts +1 -1
- package/dist/components/BTimeField/BTimeField.vue.d.ts +1 -1
- package/dist/components/index.d.mts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/composables/useFormSelect.d.mts +10 -4
- package/dist/composables/useFormSelect.d.ts +10 -4
- package/dist/{constants-CQ8ucyPI.mjs → constants-BSIK14yA.mjs} +1 -1
- package/dist/{constants-CQ8ucyPI.mjs.map → constants-BSIK14yA.mjs.map} +1 -1
- package/dist/{constants-DMR5FAE3.js → constants-hccBP09R.js} +1 -1
- package/dist/{constants-DMR5FAE3.js.map → constants-hccBP09R.js.map} +1 -1
- package/dist/{debounce-BfDJWP7y.js → debounce-C-5Oukxb.js} +2 -2
- package/dist/{debounce-BfDJWP7y.js.map → debounce-C-5Oukxb.js.map} +1 -1
- package/dist/{debounce-BIVtU5ek.mjs → debounce-C_wjWVGH.mjs} +2 -2
- package/dist/{debounce-BIVtU5ek.mjs.map → debounce-C_wjWVGH.mjs.map} +1 -1
- package/dist/{dist-Dn5blevd.mjs → dist-B10a-gZ8.mjs} +34 -2
- package/dist/{dist-Dn5blevd.mjs.map → dist-B10a-gZ8.mjs.map} +1 -1
- package/dist/{dist-B_c893QG.js → dist-BJ15ThEs.js} +45 -1
- package/dist/{dist-B_c893QG.js.map → dist-BJ15ThEs.js.map} +1 -1
- package/dist/{flattenFragments-DfLb4YB2.js → flattenFragments-C1WWqm25.js} +1 -1
- package/dist/{flattenFragments-DfLb4YB2.js.map → flattenFragments-C1WWqm25.js.map} +1 -1
- package/dist/{flattenFragments-B1W_x5L2.mjs → flattenFragments-ClbLQGqR.mjs} +1 -1
- package/dist/{flattenFragments-B1W_x5L2.mjs.map → flattenFragments-ClbLQGqR.mjs.map} +1 -1
- package/dist/{floating-ui.vue-CcfLuVCZ.mjs → floating-ui.vue-CAMaNcqI.mjs} +1 -1
- package/dist/{floating-ui.vue-CcfLuVCZ.mjs.map → floating-ui.vue-CAMaNcqI.mjs.map} +1 -1
- package/dist/{floating-ui.vue-B09oeNTW.js → floating-ui.vue-GXIS2sFG.js} +1 -1
- package/dist/{floating-ui.vue-B09oeNTW.js.map → floating-ui.vue-GXIS2sFG.js.map} +1 -1
- package/dist/{floatingUi-BLlCKrbj.js → floatingUi-Cs4rDXmO.js} +8 -8
- package/dist/{floatingUi-BLlCKrbj.js.map → floatingUi-Cs4rDXmO.js.map} +1 -1
- package/dist/{floatingUi-9NcUa5r7.mjs → floatingUi-DHMrP__c.mjs} +8 -8
- package/dist/{floatingUi-9NcUa5r7.mjs.map → floatingUi-DHMrP__c.mjs.map} +1 -1
- package/dist/{functions-C6AToZGR.mjs → functions-BcMenQqL.mjs} +1 -1
- package/dist/functions-BcMenQqL.mjs.map +1 -0
- package/dist/{functions-DCQKr6wc.js → functions-Bx1HDqMv.js} +1 -1
- package/dist/functions-Bx1HDqMv.js.map +1 -0
- package/dist/{getClasses-_sZDgS-l.mjs → getClasses-DaWzwT2S.mjs} +1 -1
- package/dist/{getClasses-_sZDgS-l.mjs.map → getClasses-DaWzwT2S.mjs.map} +1 -1
- package/dist/{getClasses-BQLj0MHF.js → getClasses-qqI6x4f4.js} +1 -1
- package/dist/{getClasses-BQLj0MHF.js.map → getClasses-qqI6x4f4.js.map} +1 -1
- package/dist/{getElement-D5DvkPzw.mjs → getElement-0_htvrFw.mjs} +1 -1
- package/dist/{getElement-D5DvkPzw.mjs.map → getElement-0_htvrFw.mjs.map} +1 -1
- package/dist/{getElement-BXXYfxYW.js → getElement-CxWWOx3K.js} +1 -1
- package/dist/{getElement-BXXYfxYW.js.map → getElement-CxWWOx3K.js.map} +1 -1
- package/dist/{object-CPeShLVx.js → object-BN7QwMcz.js} +1 -1
- package/dist/{object-CPeShLVx.js.map → object-BN7QwMcz.js.map} +1 -1
- package/dist/{object-B9ZW1_9f.mjs → object-CHQkkner.mjs} +1 -1
- package/dist/{object-B9ZW1_9f.mjs.map → object-CHQkkner.mjs.map} +1 -1
- package/dist/{registryAccess-B4xlltdn.mjs → registryAccess-C1Ti_nxW.mjs} +1 -1
- package/dist/{registryAccess-B4xlltdn.mjs.map → registryAccess-C1Ti_nxW.mjs.map} +1 -1
- package/dist/{registryAccess-Be_uJ4EV.js → registryAccess-D-YxwQJq.js} +1 -1
- package/dist/{registryAccess-Be_uJ4EV.js.map → registryAccess-D-YxwQJq.js.map} +1 -1
- package/dist/src/components/BAccordion/index.mjs +1 -1
- package/dist/src/components/BAccordion/index.umd.js +1 -1
- package/dist/src/components/BAlert/index.mjs +1 -1
- package/dist/src/components/BAlert/index.umd.js +1 -1
- package/dist/src/components/BApp/index.mjs +1 -1
- package/dist/src/components/BApp/index.umd.js +1 -1
- package/dist/src/components/BAspect/index.mjs +2 -0
- package/dist/src/components/BAspect/index.umd.js +3 -0
- package/dist/src/components/BAutocomplete/index.mjs +2 -0
- package/dist/src/components/BAutocomplete/index.umd.js +3 -0
- package/dist/src/components/BAvatar/index.mjs +1 -1
- package/dist/src/components/BAvatar/index.umd.js +1 -1
- package/dist/src/components/BBadge/index.mjs +1 -1
- package/dist/src/components/BBadge/index.umd.js +1 -1
- package/dist/src/components/BBreadcrumb/index.mjs +1 -1
- package/dist/src/components/BBreadcrumb/index.umd.js +1 -1
- package/dist/src/components/BButton/index.mjs +3 -3
- package/dist/src/components/BButton/index.umd.js +3 -3
- package/dist/src/components/BCard/index.mjs +2 -2
- package/dist/src/components/BCard/index.umd.js +2 -2
- package/dist/src/components/BCarousel/index.mjs +1 -1
- package/dist/src/components/BCarousel/index.umd.js +1 -1
- package/dist/src/components/BCol/index.mjs +1 -1
- package/dist/src/components/BCol/index.umd.js +1 -1
- package/dist/src/components/BCollapse/index.mjs +1 -1
- package/dist/src/components/BCollapse/index.umd.js +1 -1
- package/dist/src/components/BContainer/index.mjs +3 -3
- package/dist/src/components/BContainer/index.umd.js +3 -3
- package/dist/src/components/BDateField/index.mjs +1 -1
- package/dist/src/components/BDateField/index.umd.js +1 -1
- package/dist/src/components/BDatePicker/index.mjs +1 -1
- package/dist/src/components/BDatePicker/index.umd.js +1 -1
- package/dist/src/components/BDropdown/index.mjs +2 -2
- package/dist/src/components/BDropdown/index.umd.js +2 -2
- package/dist/src/components/BForm/index.mjs +3 -3
- package/dist/src/components/BForm/index.umd.js +3 -3
- package/dist/src/components/BFormCheckbox/index.mjs +1 -1
- package/dist/src/components/BFormCheckbox/index.umd.js +1 -1
- package/dist/src/components/BFormFile/index.mjs +1 -1
- package/dist/src/components/BFormFile/index.umd.js +1 -1
- package/dist/src/components/BFormGroup/index.mjs +1 -1
- package/dist/src/components/BFormGroup/index.umd.js +1 -1
- package/dist/src/components/BFormInput/index.mjs +1 -1
- package/dist/src/components/BFormInput/index.umd.js +1 -1
- package/dist/src/components/BFormRadio/index.mjs +1 -1
- package/dist/src/components/BFormRadio/index.umd.js +1 -1
- package/dist/src/components/BFormRating/index.mjs +1 -1
- package/dist/src/components/BFormRating/index.umd.js +1 -1
- package/dist/src/components/BFormSelect/index.mjs +2 -2
- package/dist/src/components/BFormSelect/index.umd.js +3 -3
- package/dist/src/components/BFormSpinbutton/index.mjs +1 -1
- package/dist/src/components/BFormSpinbutton/index.umd.js +1 -1
- package/dist/src/components/BFormTags/index.mjs +2 -1
- package/dist/src/components/BFormTags/index.umd.js +3 -2
- package/dist/src/components/BFormTextarea/index.mjs +1 -1
- package/dist/src/components/BFormTextarea/index.umd.js +1 -1
- package/dist/src/components/BImg/index.mjs +1 -1
- package/dist/src/components/BImg/index.umd.js +1 -1
- package/dist/src/components/BInputGroup/index.mjs +2 -1
- package/dist/src/components/BInputGroup/index.umd.js +3 -2
- package/dist/src/components/BLink/index.mjs +1 -1
- package/dist/src/components/BLink/index.umd.js +1 -1
- package/dist/src/components/BListGroup/index.mjs +1 -1
- package/dist/src/components/BListGroup/index.umd.js +1 -1
- package/dist/src/components/BModal/index.mjs +1 -1
- package/dist/src/components/BModal/index.umd.js +1 -1
- package/dist/src/components/BNav/index.mjs +1 -1
- package/dist/src/components/BNav/index.umd.js +1 -1
- package/dist/src/components/BNavbar/index.mjs +1 -1
- package/dist/src/components/BNavbar/index.umd.js +1 -1
- package/dist/src/components/BOffcanvas/index.mjs +1 -1
- package/dist/src/components/BOffcanvas/index.umd.js +1 -1
- package/dist/src/components/BOtpInput/index.mjs +2 -0
- package/dist/src/components/BOtpInput/index.umd.js +3 -0
- package/dist/src/components/BOverlay/index.mjs +1 -1
- package/dist/src/components/BOverlay/index.umd.js +1 -1
- package/dist/src/components/BPagination/index.mjs +1 -1
- package/dist/src/components/BPagination/index.umd.js +1 -1
- package/dist/src/components/BPlaceholder/index.mjs +1 -1
- package/dist/src/components/BPlaceholder/index.umd.js +1 -1
- package/dist/src/components/BPopover/index.mjs +1 -1
- package/dist/src/components/BPopover/index.umd.js +1 -1
- package/dist/src/components/BProgress/index.mjs +1 -1
- package/dist/src/components/BProgress/index.umd.js +1 -1
- package/dist/src/components/BRow/index.mjs +1 -1
- package/dist/src/components/BRow/index.umd.js +1 -1
- package/dist/src/components/BSpinner/index.mjs +1 -1
- package/dist/src/components/BSpinner/index.umd.js +1 -1
- package/dist/src/components/BTable/index.mjs +2 -2
- package/dist/src/components/BTable/index.umd.js +2 -2
- package/dist/src/components/BTabs/index.mjs +1 -1
- package/dist/src/components/BTabs/index.umd.js +1 -1
- package/dist/src/components/BTimeField/index.mjs +1 -1
- package/dist/src/components/BTimeField/index.umd.js +1 -1
- package/dist/src/components/BToast/index.mjs +1 -1
- package/dist/src/components/BToast/index.umd.js +1 -1
- package/dist/src/components/BTooltip/index.mjs +1 -1
- package/dist/src/components/BTooltip/index.umd.js +1 -1
- package/dist/src/components/index.mjs +64 -55
- package/dist/src/components/index.mjs.map +1 -1
- package/dist/src/components/index.umd.js +72 -60
- package/dist/src/components/index.umd.js.map +1 -1
- package/dist/src/composables/useColorMode/index.mjs +1 -1
- package/dist/src/composables/useColorMode/index.umd.js +1 -1
- package/dist/src/composables/useModal/index.mjs +1 -1
- package/dist/src/composables/useModal/index.umd.js +1 -1
- package/dist/src/composables/usePopover/index.mjs +2 -2
- package/dist/src/composables/usePopover/index.umd.js +2 -2
- package/dist/src/composables/useScrollLock/index.mjs +1 -1
- package/dist/src/composables/useScrollLock/index.umd.js +1 -1
- package/dist/src/composables/useScrollspy/index.mjs +2 -2
- package/dist/src/composables/useScrollspy/index.umd.js +2 -2
- package/dist/src/composables/useToast/index.mjs +1 -1
- package/dist/src/composables/useToast/index.umd.js +1 -1
- package/dist/src/composables/useToggle/index.mjs +1 -1
- package/dist/src/composables/useToggle/index.umd.js +1 -1
- package/dist/src/directives/BPopover/index.mjs +2 -2
- package/dist/src/directives/BPopover/index.umd.js +2 -2
- package/dist/src/directives/BScrollspy/index.mjs +2 -2
- package/dist/src/directives/BScrollspy/index.umd.js +2 -2
- package/dist/src/directives/BToggle/index.mjs +3 -3
- package/dist/src/directives/BToggle/index.umd.js +3 -3
- package/dist/src/directives/BTooltip/index.mjs +2 -2
- package/dist/src/directives/BTooltip/index.umd.js +2 -2
- package/dist/src/resolvers/index.mjs +1 -1
- package/dist/src/resolvers/index.umd.js +1 -1
- package/dist/src/types/index.mjs +1 -1
- package/dist/src/types/index.umd.js +1 -1
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/index.umd.js +1 -1
- package/dist/{stringUtils-hUreqC0N.js → stringUtils-BwKOASdU.js} +2 -2
- package/dist/{stringUtils-hUreqC0N.js.map → stringUtils-BwKOASdU.js.map} +1 -1
- package/dist/{stringUtils-BP8rZgjn.mjs → stringUtils-CslYpDTt.mjs} +2 -2
- package/dist/{stringUtils-BP8rZgjn.mjs.map → stringUtils-CslYpDTt.mjs.map} +1 -1
- package/dist/types/BootstrapVueOptions.d.mts +7 -1
- package/dist/types/BootstrapVueOptions.d.ts +7 -1
- package/dist/types/ComponentProps.d.mts +63 -3
- package/dist/types/ComponentProps.d.ts +63 -3
- package/dist/types/ComponentSlots.d.mts +17 -0
- package/dist/types/ComponentSlots.d.ts +17 -0
- package/dist/{useAlignment-CwuLc9mf.mjs → useAlignment-BiCREohQ.mjs} +1 -1
- package/dist/{useAlignment-CwuLc9mf.mjs.map → useAlignment-BiCREohQ.mjs.map} +1 -1
- package/dist/{useAlignment-CY-mnB2p.js → useAlignment-D5xKBRez.js} +1 -1
- package/dist/{useAlignment-CY-mnB2p.js.map → useAlignment-D5xKBRez.js.map} +1 -1
- package/dist/{useAriaInvalid-BYMq9BBX.js → useAriaInvalid-CHHPHNLU.js} +1 -1
- package/dist/{useAriaInvalid-BYMq9BBX.js.map → useAriaInvalid-CHHPHNLU.js.map} +1 -1
- package/dist/{useAriaInvalid-01Dd60GC.mjs → useAriaInvalid-apOwgexm.mjs} +1 -1
- package/dist/{useAriaInvalid-01Dd60GC.mjs.map → useAriaInvalid-apOwgexm.mjs.map} +1 -1
- package/dist/{useColorVariantClasses-GuDw8a_O.mjs → useColorVariantClasses-B6Me_Kx6.mjs} +1 -1
- package/dist/{useColorVariantClasses-GuDw8a_O.mjs.map → useColorVariantClasses-B6Me_Kx6.mjs.map} +1 -1
- package/dist/{useColorVariantClasses-DVaQDVQC.js → useColorVariantClasses-CEfOwjPv.js} +1 -1
- package/dist/{useColorVariantClasses-DVaQDVQC.js.map → useColorVariantClasses-CEfOwjPv.js.map} +1 -1
- package/dist/{useCountdownHover-CaF8_TRT.js → useCountdownHover-8bwLWYoN.js} +2 -2
- package/dist/{useCountdownHover-CaF8_TRT.js.map → useCountdownHover-8bwLWYoN.js.map} +1 -1
- package/dist/{useCountdownHover-CTM7QEJ-.mjs → useCountdownHover-t9O7DHoK.mjs} +2 -2
- package/dist/{useCountdownHover-CTM7QEJ-.mjs.map → useCountdownHover-t9O7DHoK.mjs.map} +1 -1
- package/dist/{useDateField-qsRHISMn.js → useDateField-COTiu3aN.js} +8 -321
- package/dist/useDateField-COTiu3aN.js.map +1 -0
- package/dist/{useDateField-PQjSLAVI.mjs → useDateField-DmmXa0_5.mjs} +5 -258
- package/dist/useDateField-DmmXa0_5.mjs.map +1 -0
- package/dist/{useDefaults-CCWS15M8.mjs → useDefaults-BKgBaqOV.mjs} +1 -1
- package/dist/{useDefaults-CCWS15M8.mjs.map → useDefaults-BKgBaqOV.mjs.map} +1 -1
- package/dist/{useDefaults-DK6Y9lar.js → useDefaults-DsLf4iRY.js} +1 -1
- package/dist/{useDefaults-DK6Y9lar.js.map → useDefaults-DsLf4iRY.js.map} +1 -1
- package/dist/{useFormCheck-TOhpqkZ9.mjs → useFormCheck-CJvIDxcO.mjs} +3 -3
- package/dist/{useFormCheck-TOhpqkZ9.mjs.map → useFormCheck-CJvIDxcO.mjs.map} +1 -1
- package/dist/{useFormCheck-DXM9Wj2i.js → useFormCheck-UHNy_iZ0.js} +3 -3
- package/dist/{useFormCheck-DXM9Wj2i.js.map → useFormCheck-UHNy_iZ0.js.map} +1 -1
- package/dist/{useFormInput-DeJGz9t9.mjs → useFormInput-BgJCT9k_.mjs} +6 -6
- package/dist/{useFormInput-DeJGz9t9.mjs.map → useFormInput-BgJCT9k_.mjs.map} +1 -1
- package/dist/{useFormInput-AX7ikSmn.js → useFormInput-CsR38QR6.js} +6 -6
- package/dist/{useFormInput-AX7ikSmn.js.map → useFormInput-CsR38QR6.js.map} +1 -1
- package/dist/useFormSelect-CANw3ZJG.mjs +45 -0
- package/dist/useFormSelect-CANw3ZJG.mjs.map +1 -0
- package/dist/useFormSelect-nQbGZSi8.js +51 -0
- package/dist/useFormSelect-nQbGZSi8.js.map +1 -0
- package/dist/useForwardExpose-4OUimdPL.mjs +68 -0
- package/dist/useForwardExpose-4OUimdPL.mjs.map +1 -0
- package/dist/useForwardExpose-DrJOy0jY.js +80 -0
- package/dist/useForwardExpose-DrJOy0jY.js.map +1 -0
- package/dist/{useId-CCwnEmGh.mjs → useId-BKZFSYm8.mjs} +1 -1
- package/dist/{useId-CCwnEmGh.mjs.map → useId-BKZFSYm8.mjs.map} +1 -1
- package/dist/{useId-DTrBK9CE.js → useId-DHrBgM7P.js} +1 -1
- package/dist/{useId-DTrBK9CE.js.map → useId-DHrBgM7P.js.map} +1 -1
- package/dist/useKbd-IZRktImL.mjs +88 -0
- package/dist/useKbd-IZRktImL.mjs.map +1 -0
- package/dist/useKbd-ZZushx7D.js +105 -0
- package/dist/useKbd-ZZushx7D.js.map +1 -0
- package/dist/{useNumberishToStyle-uj-NwKpF.mjs → useNumberishToStyle-DEqGK1UH.mjs} +2 -2
- package/dist/{useNumberishToStyle-uj-NwKpF.mjs.map → useNumberishToStyle-DEqGK1UH.mjs.map} +1 -1
- package/dist/{useNumberishToStyle-CluQ-WT4.js → useNumberishToStyle-DFf9fokb.js} +2 -2
- package/dist/{useNumberishToStyle-CluQ-WT4.js.map → useNumberishToStyle-DFf9fokb.js.map} +1 -1
- package/dist/{useRadiusElementClasses-CyDq8RO7.mjs → useRadiusElementClasses-BlrN-T6U.mjs} +1 -1
- package/dist/{useRadiusElementClasses-CyDq8RO7.mjs.map → useRadiusElementClasses-BlrN-T6U.mjs.map} +1 -1
- package/dist/{useRadiusElementClasses-D6FwziNh.js → useRadiusElementClasses-C13_PhPM.js} +1 -1
- package/dist/{useRadiusElementClasses-D6FwziNh.js.map → useRadiusElementClasses-C13_PhPM.js.map} +1 -1
- package/dist/{useRtl-BlPLBmTe.js → useRtl-DXAooTrl.js} +1 -1
- package/dist/{useRtl-BlPLBmTe.js.map → useRtl-DXAooTrl.js.map} +1 -1
- package/dist/{useRtl-DQ5v5L9s.mjs → useRtl-DpwU_RM8.mjs} +1 -1
- package/dist/{useRtl-DQ5v5L9s.mjs.map → useRtl-DpwU_RM8.mjs.map} +1 -1
- package/dist/{useSafeScrollLock-CP2B7aXF.js → useSafeScrollLock-Bm9RxDoY.js} +2 -2
- package/dist/{useSafeScrollLock-CP2B7aXF.js.map → useSafeScrollLock-Bm9RxDoY.js.map} +1 -1
- package/dist/{useSafeScrollLock-C9UxwgUo.mjs → useSafeScrollLock-D62o8jto.mjs} +2 -2
- package/dist/{useSafeScrollLock-C9UxwgUo.mjs.map → useSafeScrollLock-D62o8jto.mjs.map} +1 -1
- package/dist/{useShowHide-BFr32vgn.js → useShowHide-BTCaeU5j.js} +5 -5
- package/dist/useShowHide-BTCaeU5j.js.map +1 -0
- package/dist/{useShowHide-wBe7O9iE.mjs → useShowHide-yAK5dhPT.mjs} +5 -5
- package/dist/useShowHide-yAK5dhPT.mjs.map +1 -0
- package/dist/{useStateClass-Cnvy2Hnm.js → useStateClass-CJ24hpkn.js} +1 -1
- package/dist/{useStateClass-Cnvy2Hnm.js.map → useStateClass-CJ24hpkn.js.map} +1 -1
- package/dist/{useStateClass-DKjpw1Pn.mjs → useStateClass-CdmlbrGn.mjs} +1 -1
- package/dist/{useStateClass-DKjpw1Pn.mjs.map → useStateClass-CdmlbrGn.mjs.map} +1 -1
- package/dist/{utils-CY6CnVNO.js → utils-CaC78Zdk.js} +2 -2
- package/dist/{utils-CY6CnVNO.js.map → utils-CaC78Zdk.js.map} +1 -1
- package/dist/{utils-C-oJqlar.mjs → utils-CgwCsk6U.mjs} +2 -2
- package/dist/{utils-C-oJqlar.mjs.map → utils-CgwCsk6U.mjs.map} +1 -1
- package/package.json +9 -1
- package/src/components/BAutocomplete/_autocomplete.scss +136 -0
- package/src/components/BOtpInput/_otp-input.scss +29 -0
- package/src/styles/styles.scss +2 -0
- package/dist/BCarousel-BH6WIvJx.js.map +0 -1
- package/dist/BCarousel-C3CA_wGV.mjs.map +0 -1
- package/dist/BDatePicker-DPtAqGyV.mjs.map +0 -1
- package/dist/BDatePicker-rdtRZlra.js.map +0 -1
- package/dist/BDropdown-C2L69dLN.js.map +0 -1
- package/dist/BDropdown-CKnx6hUH.mjs.map +0 -1
- package/dist/BFormTags-Cobh04P9.mjs.map +0 -1
- package/dist/BFormTags-pK9i3cOB.js.map +0 -1
- package/dist/BInputGroup-B8fKBtip.mjs.map +0 -1
- package/dist/BInputGroup-Cr0qLUds.js.map +0 -1
- package/dist/BModal-TCXrZEZk.mjs.map +0 -1
- package/dist/BModal-d3FKaKhA.js.map +0 -1
- package/dist/BOffcanvas-BklEA-4x.mjs.map +0 -1
- package/dist/BOffcanvas-YsVap-9w.js.map +0 -1
- package/dist/BootstrapVueOptions-CVxLmDvx.js.map +0 -1
- package/dist/BootstrapVueOptions-Dtdn7_AJ.mjs.map +0 -1
- package/dist/functions-C6AToZGR.mjs.map +0 -1
- package/dist/functions-DCQKr6wc.js.map +0 -1
- package/dist/useDateField-PQjSLAVI.mjs.map +0 -1
- package/dist/useDateField-qsRHISMn.js.map +0 -1
- package/dist/useFormSelect-DCThI8EA.js +0 -92
- package/dist/useFormSelect-DCThI8EA.js.map +0 -1
- package/dist/useFormSelect-_-ln6FKQ.mjs +0 -80
- package/dist/useFormSelect-_-ln6FKQ.mjs.map +0 -1
- package/dist/useShowHide-BFr32vgn.js.map +0 -1
- package/dist/useShowHide-wBe7O9iE.mjs.map +0 -1
|
@@ -0,0 +1,2342 @@
|
|
|
1
|
+
require("./chunk-CoQrYLCe.js");
|
|
2
|
+
const require_dist = require("./dist-BJ15ThEs.js");
|
|
3
|
+
const require_useDefaults = require("./useDefaults-DsLf4iRY.js");
|
|
4
|
+
const require_useId = require("./useId-DHrBgM7P.js");
|
|
5
|
+
const require_BButton = require("./BButton-DBRs8Pz_.js");
|
|
6
|
+
const require_VisuallyHidden = require("./VisuallyHidden-DaN947I0.js");
|
|
7
|
+
const require_useForwardExpose = require("./useForwardExpose-DrJOy0jY.js");
|
|
8
|
+
const require_PopperContent = require("./PopperContent-CSwv2Fih.js");
|
|
9
|
+
const require_useKbd = require("./useKbd-ZZushx7D.js");
|
|
10
|
+
const require_VisuallyHiddenInput = require("./VisuallyHiddenInput-Biq4Qv5j.js");
|
|
11
|
+
const require_useStateClass = require("./useStateClass-CJ24hpkn.js");
|
|
12
|
+
const require_useAriaInvalid = require("./useAriaInvalid-CHHPHNLU.js");
|
|
13
|
+
const require_BInputGroup = require("./BInputGroup-Duk6Jk0v.js");
|
|
14
|
+
const require_BFormTag = require("./BFormTag-C7B-bX72.js");
|
|
15
|
+
const require_useFormSelect = require("./useFormSelect-nQbGZSi8.js");
|
|
16
|
+
let vue = require("vue");
|
|
17
|
+
//#region ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
|
|
18
|
+
function serialize(o) {
|
|
19
|
+
return typeof o == "string" ? `'${o}'` : new c().serialize(o);
|
|
20
|
+
}
|
|
21
|
+
var c = /* @__PURE__ */ function() {
|
|
22
|
+
class o {
|
|
23
|
+
#t = /* @__PURE__ */ new Map();
|
|
24
|
+
compare(t, r) {
|
|
25
|
+
const e = typeof t, n = typeof r;
|
|
26
|
+
return e === "string" && n === "string" ? t.localeCompare(r) : e === "number" && n === "number" ? t - r : String.prototype.localeCompare.call(this.serialize(t, true), this.serialize(r, true));
|
|
27
|
+
}
|
|
28
|
+
serialize(t, r) {
|
|
29
|
+
if (t === null) return "null";
|
|
30
|
+
switch (typeof t) {
|
|
31
|
+
case "string": return r ? t : `'${t}'`;
|
|
32
|
+
case "bigint": return `${t}n`;
|
|
33
|
+
case "object": return this.$object(t);
|
|
34
|
+
case "function": return this.$function(t);
|
|
35
|
+
}
|
|
36
|
+
return String(t);
|
|
37
|
+
}
|
|
38
|
+
serializeObject(t) {
|
|
39
|
+
const r = Object.prototype.toString.call(t);
|
|
40
|
+
if (r !== "[object Object]") return this.serializeBuiltInType(r.length < 10 ? `unknown:${r}` : r.slice(8, -1), t);
|
|
41
|
+
const e = t.constructor, n = e === Object || e === void 0 ? "" : e.name;
|
|
42
|
+
if (n !== "" && globalThis[n] === e) return this.serializeBuiltInType(n, t);
|
|
43
|
+
if (typeof t.toJSON == "function") {
|
|
44
|
+
const i = t.toJSON();
|
|
45
|
+
return n + (i !== null && typeof i == "object" ? this.$object(i) : `(${this.serialize(i)})`);
|
|
46
|
+
}
|
|
47
|
+
return this.serializeObjectEntries(n, Object.entries(t));
|
|
48
|
+
}
|
|
49
|
+
serializeBuiltInType(t, r) {
|
|
50
|
+
const e = this["$" + t];
|
|
51
|
+
if (e) return e.call(this, r);
|
|
52
|
+
if (typeof r?.entries == "function") return this.serializeObjectEntries(t, r.entries());
|
|
53
|
+
throw new Error(`Cannot serialize ${t}`);
|
|
54
|
+
}
|
|
55
|
+
serializeObjectEntries(t, r) {
|
|
56
|
+
const e = Array.from(r).sort((i, a) => this.compare(i[0], a[0]));
|
|
57
|
+
let n = `${t}{`;
|
|
58
|
+
for (let i = 0; i < e.length; i++) {
|
|
59
|
+
const [a, l] = e[i];
|
|
60
|
+
n += `${this.serialize(a, true)}:${this.serialize(l)}`, i < e.length - 1 && (n += ",");
|
|
61
|
+
}
|
|
62
|
+
return n + "}";
|
|
63
|
+
}
|
|
64
|
+
$object(t) {
|
|
65
|
+
let r = this.#t.get(t);
|
|
66
|
+
return r === void 0 && (this.#t.set(t, `#${this.#t.size}`), r = this.serializeObject(t), this.#t.set(t, r)), r;
|
|
67
|
+
}
|
|
68
|
+
$function(t) {
|
|
69
|
+
const r = Function.prototype.toString.call(t);
|
|
70
|
+
return r.slice(-15) === "[native code] }" ? `${t.name || ""}()[native]` : `${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`;
|
|
71
|
+
}
|
|
72
|
+
$Array(t) {
|
|
73
|
+
let r = "[";
|
|
74
|
+
for (let e = 0; e < t.length; e++) r += this.serialize(t[e]), e < t.length - 1 && (r += ",");
|
|
75
|
+
return r + "]";
|
|
76
|
+
}
|
|
77
|
+
$Date(t) {
|
|
78
|
+
try {
|
|
79
|
+
return `Date(${t.toISOString()})`;
|
|
80
|
+
} catch {
|
|
81
|
+
return "Date(null)";
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
$ArrayBuffer(t) {
|
|
85
|
+
return `ArrayBuffer[${new Uint8Array(t).join(",")}]`;
|
|
86
|
+
}
|
|
87
|
+
$Set(t) {
|
|
88
|
+
return `Set${this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)))}`;
|
|
89
|
+
}
|
|
90
|
+
$Map(t) {
|
|
91
|
+
return this.serializeObjectEntries("Map", t.entries());
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
for (const s of [
|
|
95
|
+
"Error",
|
|
96
|
+
"RegExp",
|
|
97
|
+
"URL"
|
|
98
|
+
]) o.prototype["$" + s] = function(t) {
|
|
99
|
+
return `${s}(${t})`;
|
|
100
|
+
};
|
|
101
|
+
for (const s of [
|
|
102
|
+
"Int8Array",
|
|
103
|
+
"Uint8Array",
|
|
104
|
+
"Uint8ClampedArray",
|
|
105
|
+
"Int16Array",
|
|
106
|
+
"Uint16Array",
|
|
107
|
+
"Int32Array",
|
|
108
|
+
"Uint32Array",
|
|
109
|
+
"Float32Array",
|
|
110
|
+
"Float64Array"
|
|
111
|
+
]) o.prototype["$" + s] = function(t) {
|
|
112
|
+
return `${s}[${t.join(",")}]`;
|
|
113
|
+
};
|
|
114
|
+
for (const s of ["BigInt64Array", "BigUint64Array"]) o.prototype["$" + s] = function(t) {
|
|
115
|
+
return `${s}[${t.join("n,")}${t.length > 0 ? "n" : ""}]`;
|
|
116
|
+
};
|
|
117
|
+
return o;
|
|
118
|
+
}();
|
|
119
|
+
function isEqual(object1, object2) {
|
|
120
|
+
if (object1 === object2) return true;
|
|
121
|
+
if (serialize(object1) === serialize(object2)) return true;
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/arrays.js
|
|
126
|
+
/**
|
|
127
|
+
* The function `findValuesBetween` takes an array and two values, then returns a subarray containing
|
|
128
|
+
* elements between the first occurrence of the start value and the first occurrence of the end value
|
|
129
|
+
* in the array.
|
|
130
|
+
* @param {T[]} array - The `array` parameter is an array of values of type `T`.
|
|
131
|
+
* @param {T} start - The `start` parameter is the value that marks the beginning of the range you want
|
|
132
|
+
* to find in the array.
|
|
133
|
+
* @param {T} end - The `end` parameter in the `findValuesBetween` function represents the end value
|
|
134
|
+
* that you want to find in the array. This function will return a subarray of values that are between
|
|
135
|
+
* the `start` and `end` values in the original array.
|
|
136
|
+
* @returns The `findValuesBetween` function returns an array of values from the input array that are
|
|
137
|
+
* between the `start` and `end` values (inclusive). If either the `start` or `end` values are not
|
|
138
|
+
* found in the input array, an empty array is returned.
|
|
139
|
+
*/
|
|
140
|
+
function findValuesBetween(array, start, end) {
|
|
141
|
+
const startIndex = array.findIndex((i) => isEqual(i, start));
|
|
142
|
+
const endIndex = array.findIndex((i) => isEqual(i, end));
|
|
143
|
+
if (startIndex === -1 || endIndex === -1) return [];
|
|
144
|
+
const [minIndex, maxIndex] = [startIndex, endIndex].sort((a, b) => a - b);
|
|
145
|
+
return array.slice(minIndex, maxIndex + 1);
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useFilter.js
|
|
149
|
+
/**
|
|
150
|
+
* Provides locale-aware string filtering functions.
|
|
151
|
+
* Uses `Intl.Collator` for comparison to ensure proper Unicode handling.
|
|
152
|
+
*
|
|
153
|
+
* @param options - Optional collator options to customize comparison behavior.
|
|
154
|
+
* See [Intl.CollatorOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator#options) for details.
|
|
155
|
+
* @returns An object with methods to check if a string starts with, ends with, or contains a substring.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* const { startsWith, endsWith, contains } = useFilter();
|
|
159
|
+
*
|
|
160
|
+
* startsWith('hello', 'he'); // true
|
|
161
|
+
* endsWith('hello', 'lo'); // true
|
|
162
|
+
* contains('hello', 'ell'); // true
|
|
163
|
+
*/
|
|
164
|
+
function useFilter(options) {
|
|
165
|
+
const computedOptions = (0, vue.computed)(() => (0, vue.unref)(options));
|
|
166
|
+
const collator = (0, vue.computed)(() => new Intl.Collator("en", {
|
|
167
|
+
usage: "search",
|
|
168
|
+
...computedOptions.value
|
|
169
|
+
}));
|
|
170
|
+
const startsWith = (string, substring) => {
|
|
171
|
+
if (substring.length === 0) return true;
|
|
172
|
+
string = string.normalize("NFC");
|
|
173
|
+
substring = substring.normalize("NFC");
|
|
174
|
+
return collator.value.compare(string.slice(0, substring.length), substring) === 0;
|
|
175
|
+
};
|
|
176
|
+
const endsWith = (string, substring) => {
|
|
177
|
+
if (substring.length === 0) return true;
|
|
178
|
+
string = string.normalize("NFC");
|
|
179
|
+
substring = substring.normalize("NFC");
|
|
180
|
+
return collator.value.compare(string.slice(-substring.length), substring) === 0;
|
|
181
|
+
};
|
|
182
|
+
const contains = (string, substring) => {
|
|
183
|
+
if (substring.length === 0) return true;
|
|
184
|
+
string = string.normalize("NFC");
|
|
185
|
+
substring = substring.normalize("NFC");
|
|
186
|
+
let scan = 0;
|
|
187
|
+
const sliceLen = substring.length;
|
|
188
|
+
for (; scan + sliceLen <= string.length; scan++) {
|
|
189
|
+
const slice = string.slice(scan, scan + sliceLen);
|
|
190
|
+
if (collator.value.compare(substring, slice) === 0) return true;
|
|
191
|
+
}
|
|
192
|
+
return false;
|
|
193
|
+
};
|
|
194
|
+
return {
|
|
195
|
+
startsWith,
|
|
196
|
+
endsWith,
|
|
197
|
+
contains
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useFormControl.js
|
|
202
|
+
function useFormControl(el) {
|
|
203
|
+
return (0, vue.computed)(() => (0, vue.toValue)(el) ? Boolean(require_dist.unrefElement(el)?.closest("form")) : true);
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useTypeahead.js
|
|
207
|
+
function useTypeahead(callback) {
|
|
208
|
+
const search = require_dist.refAutoReset("", 1e3);
|
|
209
|
+
const handleTypeaheadSearch = (key, items) => {
|
|
210
|
+
search.value = search.value + key;
|
|
211
|
+
if (callback) callback(key);
|
|
212
|
+
else {
|
|
213
|
+
const currentItem = require_useForwardExpose.getActiveElement();
|
|
214
|
+
const itemsWithTextValue = items.map((item) => ({
|
|
215
|
+
...item,
|
|
216
|
+
textValue: item.value?.textValue ?? item.ref.textContent?.trim() ?? ""
|
|
217
|
+
}));
|
|
218
|
+
const currentMatch = itemsWithTextValue.find((item) => item.ref === currentItem);
|
|
219
|
+
const nextMatch = getNextMatch(itemsWithTextValue.map((item) => item.textValue), search.value, currentMatch?.textValue);
|
|
220
|
+
const newItem = itemsWithTextValue.find((item) => item.textValue === nextMatch);
|
|
221
|
+
if (newItem) newItem.ref.focus();
|
|
222
|
+
return newItem?.ref;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const resetTypeahead = () => {
|
|
226
|
+
search.value = "";
|
|
227
|
+
};
|
|
228
|
+
return {
|
|
229
|
+
search,
|
|
230
|
+
handleTypeaheadSearch,
|
|
231
|
+
resetTypeahead
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Wraps an array around itself at a given start index
|
|
236
|
+
* Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
|
|
237
|
+
*/
|
|
238
|
+
function wrapArray(array, startIndex) {
|
|
239
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* This is the "meat" of the typeahead matching logic. It takes in all the values,
|
|
243
|
+
* the search and the current match, and returns the next match (or `undefined`).
|
|
244
|
+
*
|
|
245
|
+
* We normalize the search because if a user has repeatedly pressed a character,
|
|
246
|
+
* we want the exact same behavior as if we only had that one character
|
|
247
|
+
* (ie. cycle through options starting with that character)
|
|
248
|
+
*
|
|
249
|
+
* We also reorder the values by wrapping the array around the current match.
|
|
250
|
+
* This is so we always look forward from the current match, and picking the first
|
|
251
|
+
* match will always be the correct one.
|
|
252
|
+
*
|
|
253
|
+
* Finally, if the normalized search is exactly one character, we exclude the
|
|
254
|
+
* current match from the values because otherwise it would be the first to match always
|
|
255
|
+
* and focus would never move. This is as opposed to the regular case, where we
|
|
256
|
+
* don't want focus to move if the current match still matches.
|
|
257
|
+
*/
|
|
258
|
+
function getNextMatch(values, search, currentMatch) {
|
|
259
|
+
const normalizedSearch = search.length > 1 && Array.from(search).every((char) => char === search[0]) ? search[0] : search;
|
|
260
|
+
const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
|
|
261
|
+
let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));
|
|
262
|
+
if (normalizedSearch.length === 1) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);
|
|
263
|
+
const nextMatch = wrappedValues.find((value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase()));
|
|
264
|
+
return nextMatch !== currentMatch ? nextMatch : void 0;
|
|
265
|
+
}
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Collection/Collection.js
|
|
268
|
+
var ITEM_DATA_ATTR = "data-reka-collection-item";
|
|
269
|
+
function useCollection(options = {}) {
|
|
270
|
+
const { key = "", isProvider = false } = options;
|
|
271
|
+
const injectionKey = `${key}CollectionProvider`;
|
|
272
|
+
let context;
|
|
273
|
+
if (isProvider) {
|
|
274
|
+
const itemMap = (0, vue.ref)(/* @__PURE__ */ new Map());
|
|
275
|
+
context = {
|
|
276
|
+
collectionRef: (0, vue.ref)(),
|
|
277
|
+
itemMap
|
|
278
|
+
};
|
|
279
|
+
(0, vue.provide)(injectionKey, context);
|
|
280
|
+
} else context = (0, vue.inject)(injectionKey);
|
|
281
|
+
const getItems = (includeDisabledItem = false) => {
|
|
282
|
+
const collectionNode = context.collectionRef.value;
|
|
283
|
+
if (!collectionNode) return [];
|
|
284
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
285
|
+
const orderedItems = Array.from(context.itemMap.value.values()).sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));
|
|
286
|
+
if (includeDisabledItem) return orderedItems;
|
|
287
|
+
else return orderedItems.filter((i) => i.ref.dataset.disabled !== "");
|
|
288
|
+
};
|
|
289
|
+
const CollectionSlot = (0, vue.defineComponent)({
|
|
290
|
+
name: "CollectionSlot",
|
|
291
|
+
inheritAttrs: false,
|
|
292
|
+
setup(_, { slots, attrs }) {
|
|
293
|
+
const { primitiveElement, currentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
294
|
+
(0, vue.watch)(currentElement, () => {
|
|
295
|
+
context.collectionRef.value = currentElement.value;
|
|
296
|
+
});
|
|
297
|
+
return () => (0, vue.h)(require_VisuallyHidden.Slot, {
|
|
298
|
+
ref: primitiveElement,
|
|
299
|
+
...attrs
|
|
300
|
+
}, slots);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
const CollectionItem = (0, vue.defineComponent)({
|
|
304
|
+
name: "CollectionItem",
|
|
305
|
+
inheritAttrs: false,
|
|
306
|
+
props: { value: { validator: () => true } },
|
|
307
|
+
setup(props, { slots, attrs }) {
|
|
308
|
+
const { primitiveElement, currentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
309
|
+
(0, vue.watchEffect)((cleanupFn) => {
|
|
310
|
+
if (currentElement.value) {
|
|
311
|
+
const key$1 = (0, vue.markRaw)(currentElement.value);
|
|
312
|
+
context.itemMap.value.set(key$1, {
|
|
313
|
+
ref: currentElement.value,
|
|
314
|
+
value: props.value
|
|
315
|
+
});
|
|
316
|
+
cleanupFn(() => context.itemMap.value.delete(key$1));
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
return () => (0, vue.h)(require_VisuallyHidden.Slot, {
|
|
320
|
+
...attrs,
|
|
321
|
+
[ITEM_DATA_ATTR]: "",
|
|
322
|
+
ref: primitiveElement
|
|
323
|
+
}, slots);
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
return {
|
|
327
|
+
getItems,
|
|
328
|
+
reactiveItems: (0, vue.computed)(() => Array.from(context.itemMap.value.values())),
|
|
329
|
+
itemMapSize: (0, vue.computed)(() => context.itemMap.value.size),
|
|
330
|
+
CollectionSlot,
|
|
331
|
+
CollectionItem
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Listbox/utils.js
|
|
336
|
+
function valueComparator(value, currentValue, comparator) {
|
|
337
|
+
if (value === void 0) return false;
|
|
338
|
+
else if (Array.isArray(value)) return value.some((val) => compare(val, currentValue, comparator));
|
|
339
|
+
else return compare(value, currentValue, comparator);
|
|
340
|
+
}
|
|
341
|
+
function compare(value, currentValue, comparator) {
|
|
342
|
+
if (value === void 0 || currentValue === void 0) return false;
|
|
343
|
+
if (typeof value === "string") return value === currentValue;
|
|
344
|
+
if (typeof comparator === "function") return comparator(value, currentValue);
|
|
345
|
+
if (typeof comparator === "string") return value?.[comparator] === currentValue?.[comparator];
|
|
346
|
+
return isEqual(value, currentValue);
|
|
347
|
+
}
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/RovingFocus/utils.js
|
|
350
|
+
var MAP_KEY_TO_FOCUS_INTENT = {
|
|
351
|
+
ArrowLeft: "prev",
|
|
352
|
+
ArrowUp: "prev",
|
|
353
|
+
ArrowRight: "next",
|
|
354
|
+
ArrowDown: "next",
|
|
355
|
+
PageUp: "first",
|
|
356
|
+
Home: "first",
|
|
357
|
+
PageDown: "last",
|
|
358
|
+
End: "last"
|
|
359
|
+
};
|
|
360
|
+
function getDirectionAwareKey(key, dir) {
|
|
361
|
+
if (dir !== "rtl") return key;
|
|
362
|
+
return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
|
|
363
|
+
}
|
|
364
|
+
function getFocusIntent(event, orientation, dir) {
|
|
365
|
+
const key = getDirectionAwareKey(event.key, dir);
|
|
366
|
+
if (orientation === "vertical" && ["ArrowLeft", "ArrowRight"].includes(key)) return void 0;
|
|
367
|
+
if (orientation === "horizontal" && ["ArrowUp", "ArrowDown"].includes(key)) return void 0;
|
|
368
|
+
return MAP_KEY_TO_FOCUS_INTENT[key];
|
|
369
|
+
}
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js
|
|
372
|
+
var [injectListboxRootContext, provideListboxRootContext] = require_VisuallyHidden.createContext("ListboxRoot");
|
|
373
|
+
var ListboxRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
374
|
+
__name: "ListboxRoot",
|
|
375
|
+
props: {
|
|
376
|
+
modelValue: {
|
|
377
|
+
type: null,
|
|
378
|
+
required: false
|
|
379
|
+
},
|
|
380
|
+
defaultValue: {
|
|
381
|
+
type: null,
|
|
382
|
+
required: false
|
|
383
|
+
},
|
|
384
|
+
multiple: {
|
|
385
|
+
type: Boolean,
|
|
386
|
+
required: false
|
|
387
|
+
},
|
|
388
|
+
orientation: {
|
|
389
|
+
type: String,
|
|
390
|
+
required: false,
|
|
391
|
+
default: "vertical"
|
|
392
|
+
},
|
|
393
|
+
dir: {
|
|
394
|
+
type: String,
|
|
395
|
+
required: false
|
|
396
|
+
},
|
|
397
|
+
disabled: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
required: false
|
|
400
|
+
},
|
|
401
|
+
selectionBehavior: {
|
|
402
|
+
type: String,
|
|
403
|
+
required: false,
|
|
404
|
+
default: "toggle"
|
|
405
|
+
},
|
|
406
|
+
highlightOnHover: {
|
|
407
|
+
type: Boolean,
|
|
408
|
+
required: false
|
|
409
|
+
},
|
|
410
|
+
by: {
|
|
411
|
+
type: [String, Function],
|
|
412
|
+
required: false
|
|
413
|
+
},
|
|
414
|
+
asChild: {
|
|
415
|
+
type: Boolean,
|
|
416
|
+
required: false
|
|
417
|
+
},
|
|
418
|
+
as: {
|
|
419
|
+
type: null,
|
|
420
|
+
required: false
|
|
421
|
+
},
|
|
422
|
+
name: {
|
|
423
|
+
type: String,
|
|
424
|
+
required: false
|
|
425
|
+
},
|
|
426
|
+
required: {
|
|
427
|
+
type: Boolean,
|
|
428
|
+
required: false
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
emits: [
|
|
432
|
+
"update:modelValue",
|
|
433
|
+
"highlight",
|
|
434
|
+
"entryFocus",
|
|
435
|
+
"leave"
|
|
436
|
+
],
|
|
437
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
438
|
+
const props = __props;
|
|
439
|
+
const emits = __emit;
|
|
440
|
+
const { multiple, highlightOnHover, orientation, disabled, selectionBehavior, dir: propDir } = (0, vue.toRefs)(props);
|
|
441
|
+
const { getItems } = useCollection({ isProvider: true });
|
|
442
|
+
const { handleTypeaheadSearch } = useTypeahead();
|
|
443
|
+
const { primitiveElement, currentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
444
|
+
const kbd = require_useKbd.useKbd();
|
|
445
|
+
const dir = require_VisuallyHidden.useDirection(propDir);
|
|
446
|
+
const isFormControl = useFormControl(currentElement);
|
|
447
|
+
const firstValue = (0, vue.ref)();
|
|
448
|
+
const isUserAction = (0, vue.ref)(false);
|
|
449
|
+
const focusable = (0, vue.ref)(true);
|
|
450
|
+
const modelValue = require_dist.useVModel(props, "modelValue", emits, {
|
|
451
|
+
defaultValue: props.defaultValue ?? (multiple.value ? [] : void 0),
|
|
452
|
+
passive: props.modelValue === void 0,
|
|
453
|
+
deep: true
|
|
454
|
+
});
|
|
455
|
+
function onValueChange(val) {
|
|
456
|
+
isUserAction.value = true;
|
|
457
|
+
if (props.multiple) {
|
|
458
|
+
const modelArray = Array.isArray(modelValue.value) ? [...modelValue.value] : [];
|
|
459
|
+
const index = modelArray.findIndex((i) => compare(i, val, props.by));
|
|
460
|
+
if (props.selectionBehavior === "toggle") {
|
|
461
|
+
index === -1 ? modelArray.push(val) : modelArray.splice(index, 1);
|
|
462
|
+
modelValue.value = modelArray;
|
|
463
|
+
} else {
|
|
464
|
+
modelValue.value = [val];
|
|
465
|
+
firstValue.value = val;
|
|
466
|
+
}
|
|
467
|
+
} else if (props.selectionBehavior === "toggle") if (compare(modelValue.value, val, props.by)) modelValue.value = void 0;
|
|
468
|
+
else modelValue.value = val;
|
|
469
|
+
else modelValue.value = val;
|
|
470
|
+
setTimeout(() => {
|
|
471
|
+
isUserAction.value = false;
|
|
472
|
+
}, 1);
|
|
473
|
+
}
|
|
474
|
+
const highlightedElement = (0, vue.ref)(null);
|
|
475
|
+
const previousElement = (0, vue.ref)(null);
|
|
476
|
+
const isVirtual = (0, vue.ref)(false);
|
|
477
|
+
const isComposing = (0, vue.ref)(false);
|
|
478
|
+
const virtualFocusHook = require_dist.createEventHook();
|
|
479
|
+
const virtualKeydownHook = require_dist.createEventHook();
|
|
480
|
+
const virtualHighlightHook = require_dist.createEventHook();
|
|
481
|
+
function getCollectionItem() {
|
|
482
|
+
return getItems().map((i) => i.ref).filter((i) => i.dataset.disabled !== "");
|
|
483
|
+
}
|
|
484
|
+
function changeHighlight(el, scrollIntoView = true) {
|
|
485
|
+
if (!el) return;
|
|
486
|
+
highlightedElement.value = el;
|
|
487
|
+
if (focusable.value) highlightedElement.value.focus();
|
|
488
|
+
if (scrollIntoView) highlightedElement.value.scrollIntoView({ block: "nearest" });
|
|
489
|
+
emits("highlight", getItems().find((i) => i.ref === el));
|
|
490
|
+
}
|
|
491
|
+
function highlightItem(value) {
|
|
492
|
+
if (isVirtual.value) virtualHighlightHook.trigger(value);
|
|
493
|
+
else {
|
|
494
|
+
const item = getItems().find((i) => compare(i.value, value, props.by));
|
|
495
|
+
if (item) {
|
|
496
|
+
highlightedElement.value = item.ref;
|
|
497
|
+
changeHighlight(item.ref);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
function onKeydownEnter(event) {
|
|
502
|
+
if (highlightedElement.value && highlightedElement.value.isConnected) {
|
|
503
|
+
event.preventDefault();
|
|
504
|
+
event.stopPropagation();
|
|
505
|
+
if (!isComposing.value) highlightedElement.value.click();
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
function onKeydownTypeAhead(event) {
|
|
509
|
+
if (!focusable.value) return;
|
|
510
|
+
isUserAction.value = true;
|
|
511
|
+
if (isVirtual.value) virtualKeydownHook.trigger(event);
|
|
512
|
+
else {
|
|
513
|
+
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
514
|
+
if (isMetaKey && event.key === "a" && multiple.value) {
|
|
515
|
+
const collection = getItems();
|
|
516
|
+
modelValue.value = [...collection.map((i) => i.value)];
|
|
517
|
+
event.preventDefault();
|
|
518
|
+
changeHighlight(collection[collection.length - 1].ref);
|
|
519
|
+
} else if (!isMetaKey) {
|
|
520
|
+
const el = handleTypeaheadSearch(event.key, getItems());
|
|
521
|
+
if (el) changeHighlight(el);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
setTimeout(() => {
|
|
525
|
+
isUserAction.value = false;
|
|
526
|
+
}, 1);
|
|
527
|
+
}
|
|
528
|
+
function onCompositionStart() {
|
|
529
|
+
isComposing.value = true;
|
|
530
|
+
}
|
|
531
|
+
function onCompositionEnd() {
|
|
532
|
+
(0, vue.nextTick)(() => {
|
|
533
|
+
isComposing.value = false;
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
function highlightFirstItem() {
|
|
537
|
+
(0, vue.nextTick)(() => {
|
|
538
|
+
onKeydownNavigation(new KeyboardEvent("keydown", { key: "PageUp" }));
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
function onLeave(event) {
|
|
542
|
+
const el = highlightedElement.value;
|
|
543
|
+
if (el?.isConnected) previousElement.value = el;
|
|
544
|
+
highlightedElement.value = null;
|
|
545
|
+
emits("leave", event);
|
|
546
|
+
}
|
|
547
|
+
function onEnter(event) {
|
|
548
|
+
const entryFocusEvent = new CustomEvent("listbox.entryFocus", {
|
|
549
|
+
bubbles: false,
|
|
550
|
+
cancelable: true
|
|
551
|
+
});
|
|
552
|
+
event.currentTarget?.dispatchEvent(entryFocusEvent);
|
|
553
|
+
emits("entryFocus", entryFocusEvent);
|
|
554
|
+
if (entryFocusEvent.defaultPrevented) return;
|
|
555
|
+
if (previousElement.value) changeHighlight(previousElement.value);
|
|
556
|
+
else {
|
|
557
|
+
const el = getCollectionItem()?.[0];
|
|
558
|
+
changeHighlight(el);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function onKeydownNavigation(event) {
|
|
562
|
+
const intent = getFocusIntent(event, orientation.value, dir.value);
|
|
563
|
+
if (!intent) return;
|
|
564
|
+
let collection = getCollectionItem();
|
|
565
|
+
if (highlightedElement.value) {
|
|
566
|
+
if (intent === "last") collection.reverse();
|
|
567
|
+
else if (intent === "prev" || intent === "next") {
|
|
568
|
+
if (intent === "prev") collection.reverse();
|
|
569
|
+
const currentIndex = collection.indexOf(highlightedElement.value);
|
|
570
|
+
collection = collection.slice(currentIndex + 1);
|
|
571
|
+
}
|
|
572
|
+
handleMultipleReplace(event, collection[0]);
|
|
573
|
+
}
|
|
574
|
+
if (collection.length) {
|
|
575
|
+
const index = !highlightedElement.value && intent === "prev" ? collection.length - 1 : 0;
|
|
576
|
+
changeHighlight(collection[index]);
|
|
577
|
+
}
|
|
578
|
+
if (isVirtual.value) return virtualKeydownHook.trigger(event);
|
|
579
|
+
}
|
|
580
|
+
function handleMultipleReplace(event, targetEl) {
|
|
581
|
+
if (isVirtual.value || props.selectionBehavior !== "replace" || !multiple.value || !Array.isArray(modelValue.value)) return;
|
|
582
|
+
if ((event.altKey || event.ctrlKey || event.metaKey) && !event.shiftKey) return;
|
|
583
|
+
if (event.shiftKey) {
|
|
584
|
+
const collection = getItems().filter((i) => i.ref.dataset.disabled !== "");
|
|
585
|
+
let lastValue = collection.find((i) => i.ref === targetEl)?.value;
|
|
586
|
+
if (event.key === kbd.END) lastValue = collection[collection.length - 1].value;
|
|
587
|
+
else if (event.key === kbd.HOME) lastValue = collection[0].value;
|
|
588
|
+
if (!lastValue || !firstValue.value) return;
|
|
589
|
+
modelValue.value = findValuesBetween(collection.map((i) => i.value), firstValue.value, lastValue);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
async function highlightSelected(event) {
|
|
593
|
+
await (0, vue.nextTick)();
|
|
594
|
+
if (isVirtual.value) virtualFocusHook.trigger(event);
|
|
595
|
+
else {
|
|
596
|
+
const collection = getCollectionItem();
|
|
597
|
+
const item = collection.find((i) => i.dataset.state === "checked");
|
|
598
|
+
if (item) changeHighlight(item);
|
|
599
|
+
else if (collection.length) changeHighlight(collection[0]);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
(0, vue.watch)(modelValue, () => {
|
|
603
|
+
if (!isUserAction.value) (0, vue.nextTick)(() => {
|
|
604
|
+
highlightSelected();
|
|
605
|
+
});
|
|
606
|
+
}, {
|
|
607
|
+
immediate: true,
|
|
608
|
+
deep: true
|
|
609
|
+
});
|
|
610
|
+
__expose({
|
|
611
|
+
highlightedElement,
|
|
612
|
+
highlightItem,
|
|
613
|
+
highlightFirstItem,
|
|
614
|
+
highlightSelected,
|
|
615
|
+
getItems
|
|
616
|
+
});
|
|
617
|
+
provideListboxRootContext({
|
|
618
|
+
modelValue,
|
|
619
|
+
onValueChange,
|
|
620
|
+
multiple,
|
|
621
|
+
orientation,
|
|
622
|
+
dir,
|
|
623
|
+
disabled,
|
|
624
|
+
highlightOnHover,
|
|
625
|
+
highlightedElement,
|
|
626
|
+
isVirtual,
|
|
627
|
+
virtualFocusHook,
|
|
628
|
+
virtualKeydownHook,
|
|
629
|
+
virtualHighlightHook,
|
|
630
|
+
by: props.by,
|
|
631
|
+
firstValue,
|
|
632
|
+
selectionBehavior,
|
|
633
|
+
focusable,
|
|
634
|
+
onLeave,
|
|
635
|
+
onEnter,
|
|
636
|
+
changeHighlight,
|
|
637
|
+
onKeydownEnter,
|
|
638
|
+
onKeydownNavigation,
|
|
639
|
+
onKeydownTypeAhead,
|
|
640
|
+
onCompositionStart,
|
|
641
|
+
onCompositionEnd,
|
|
642
|
+
highlightFirstItem
|
|
643
|
+
});
|
|
644
|
+
return (_ctx, _cache) => {
|
|
645
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_VisuallyHidden.Primitive), {
|
|
646
|
+
ref_key: "primitiveElement",
|
|
647
|
+
ref: primitiveElement,
|
|
648
|
+
as: _ctx.as,
|
|
649
|
+
"as-child": _ctx.asChild,
|
|
650
|
+
dir: (0, vue.unref)(dir),
|
|
651
|
+
"data-disabled": (0, vue.unref)(disabled) ? "" : void 0,
|
|
652
|
+
onPointerleave: onLeave,
|
|
653
|
+
onFocusout: _cache[0] || (_cache[0] = async (event) => {
|
|
654
|
+
const target = event.relatedTarget || event.target;
|
|
655
|
+
await (0, vue.nextTick)();
|
|
656
|
+
if (highlightedElement.value && (0, vue.unref)(currentElement) && !(0, vue.unref)(currentElement).contains(target)) onLeave(event);
|
|
657
|
+
})
|
|
658
|
+
}, {
|
|
659
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", { modelValue: (0, vue.unref)(modelValue) }), (0, vue.unref)(isFormControl) && _ctx.name ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_VisuallyHiddenInput.VisuallyHiddenInput_default), {
|
|
660
|
+
key: 0,
|
|
661
|
+
name: _ctx.name,
|
|
662
|
+
value: (0, vue.unref)(modelValue),
|
|
663
|
+
disabled: (0, vue.unref)(disabled),
|
|
664
|
+
required: _ctx.required
|
|
665
|
+
}, null, 8, [
|
|
666
|
+
"name",
|
|
667
|
+
"value",
|
|
668
|
+
"disabled",
|
|
669
|
+
"required"
|
|
670
|
+
])) : (0, vue.createCommentVNode)("v-if", true)]),
|
|
671
|
+
_: 3
|
|
672
|
+
}, 8, [
|
|
673
|
+
"as",
|
|
674
|
+
"as-child",
|
|
675
|
+
"dir",
|
|
676
|
+
"data-disabled"
|
|
677
|
+
]);
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Listbox/ListboxContent.js
|
|
683
|
+
var ListboxContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
684
|
+
__name: "ListboxContent",
|
|
685
|
+
props: {
|
|
686
|
+
asChild: {
|
|
687
|
+
type: Boolean,
|
|
688
|
+
required: false
|
|
689
|
+
},
|
|
690
|
+
as: {
|
|
691
|
+
type: null,
|
|
692
|
+
required: false
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
setup(__props) {
|
|
696
|
+
const { CollectionSlot } = useCollection();
|
|
697
|
+
const rootContext = injectListboxRootContext();
|
|
698
|
+
const isClickFocus = require_dist.refAutoReset(false, 10);
|
|
699
|
+
return (_ctx, _cache) => {
|
|
700
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(CollectionSlot), null, {
|
|
701
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_VisuallyHidden.Primitive), {
|
|
702
|
+
role: "listbox",
|
|
703
|
+
as: _ctx.as,
|
|
704
|
+
"as-child": _ctx.asChild,
|
|
705
|
+
tabindex: (0, vue.unref)(rootContext).focusable.value ? (0, vue.unref)(rootContext).highlightedElement.value ? "-1" : "0" : "-1",
|
|
706
|
+
"aria-orientation": (0, vue.unref)(rootContext).orientation.value,
|
|
707
|
+
"aria-multiselectable": !!(0, vue.unref)(rootContext).multiple.value,
|
|
708
|
+
"data-orientation": (0, vue.unref)(rootContext).orientation.value,
|
|
709
|
+
onMousedown: _cache[0] || (_cache[0] = (0, vue.withModifiers)(($event) => isClickFocus.value = true, ["left"])),
|
|
710
|
+
onFocus: _cache[1] || (_cache[1] = (ev) => {
|
|
711
|
+
if ((0, vue.unref)(isClickFocus)) return;
|
|
712
|
+
(0, vue.unref)(rootContext).onEnter(ev);
|
|
713
|
+
}),
|
|
714
|
+
onKeydown: [
|
|
715
|
+
_cache[2] || (_cache[2] = (0, vue.withKeys)((event) => {
|
|
716
|
+
if ((0, vue.unref)(rootContext).orientation.value === "vertical" && (event.key === "ArrowLeft" || event.key === "ArrowRight") || (0, vue.unref)(rootContext).orientation.value === "horizontal" && (event.key === "ArrowUp" || event.key === "ArrowDown")) return;
|
|
717
|
+
event.preventDefault();
|
|
718
|
+
(0, vue.unref)(rootContext).focusable.value && (0, vue.unref)(rootContext).onKeydownNavigation(event);
|
|
719
|
+
}, [
|
|
720
|
+
"down",
|
|
721
|
+
"up",
|
|
722
|
+
"left",
|
|
723
|
+
"right",
|
|
724
|
+
"home",
|
|
725
|
+
"end"
|
|
726
|
+
])),
|
|
727
|
+
(0, vue.withKeys)((0, vue.unref)(rootContext).onKeydownEnter, ["enter"]),
|
|
728
|
+
(0, vue.unref)(rootContext).onKeydownTypeAhead
|
|
729
|
+
]
|
|
730
|
+
}, {
|
|
731
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
732
|
+
_: 3
|
|
733
|
+
}, 8, [
|
|
734
|
+
"as",
|
|
735
|
+
"as-child",
|
|
736
|
+
"tabindex",
|
|
737
|
+
"aria-orientation",
|
|
738
|
+
"aria-multiselectable",
|
|
739
|
+
"data-orientation",
|
|
740
|
+
"onKeydown"
|
|
741
|
+
])]),
|
|
742
|
+
_: 3
|
|
743
|
+
});
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Listbox/ListboxFilter.js
|
|
749
|
+
var ListboxFilter_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
750
|
+
__name: "ListboxFilter",
|
|
751
|
+
props: {
|
|
752
|
+
modelValue: {
|
|
753
|
+
type: String,
|
|
754
|
+
required: false
|
|
755
|
+
},
|
|
756
|
+
autoFocus: {
|
|
757
|
+
type: Boolean,
|
|
758
|
+
required: false
|
|
759
|
+
},
|
|
760
|
+
disabled: {
|
|
761
|
+
type: Boolean,
|
|
762
|
+
required: false
|
|
763
|
+
},
|
|
764
|
+
asChild: {
|
|
765
|
+
type: Boolean,
|
|
766
|
+
required: false
|
|
767
|
+
},
|
|
768
|
+
as: {
|
|
769
|
+
type: null,
|
|
770
|
+
required: false,
|
|
771
|
+
default: "input"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
emits: ["update:modelValue"],
|
|
775
|
+
setup(__props, { emit: __emit }) {
|
|
776
|
+
const props = __props;
|
|
777
|
+
const modelValue = require_dist.useVModel(props, "modelValue", __emit, {
|
|
778
|
+
defaultValue: "",
|
|
779
|
+
passive: props.modelValue === void 0
|
|
780
|
+
});
|
|
781
|
+
const rootContext = injectListboxRootContext();
|
|
782
|
+
const { primitiveElement, currentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
783
|
+
const disabled = (0, vue.computed)(() => props.disabled || rootContext.disabled.value || false);
|
|
784
|
+
const activedescendant = (0, vue.ref)();
|
|
785
|
+
(0, vue.watchSyncEffect)(() => activedescendant.value = rootContext.highlightedElement.value?.id);
|
|
786
|
+
(0, vue.onMounted)(() => {
|
|
787
|
+
rootContext.focusable.value = false;
|
|
788
|
+
setTimeout(() => {
|
|
789
|
+
if (props.autoFocus) currentElement.value?.focus();
|
|
790
|
+
}, 1);
|
|
791
|
+
});
|
|
792
|
+
(0, vue.onUnmounted)(() => {
|
|
793
|
+
rootContext.focusable.value = true;
|
|
794
|
+
});
|
|
795
|
+
return (_ctx, _cache) => {
|
|
796
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_VisuallyHidden.Primitive), {
|
|
797
|
+
ref_key: "primitiveElement",
|
|
798
|
+
ref: primitiveElement,
|
|
799
|
+
as: _ctx.as,
|
|
800
|
+
"as-child": _ctx.asChild,
|
|
801
|
+
value: (0, vue.unref)(modelValue),
|
|
802
|
+
disabled: disabled.value ? "" : void 0,
|
|
803
|
+
"data-disabled": disabled.value ? "" : void 0,
|
|
804
|
+
"aria-disabled": disabled.value ?? void 0,
|
|
805
|
+
"aria-activedescendant": activedescendant.value,
|
|
806
|
+
type: "text",
|
|
807
|
+
onKeydown: [(0, vue.withKeys)((0, vue.withModifiers)((0, vue.unref)(rootContext).onKeydownNavigation, ["prevent"]), [
|
|
808
|
+
"down",
|
|
809
|
+
"up",
|
|
810
|
+
"home",
|
|
811
|
+
"end"
|
|
812
|
+
]), (0, vue.withKeys)((0, vue.unref)(rootContext).onKeydownEnter, ["enter"])],
|
|
813
|
+
onInput: _cache[0] || (_cache[0] = (event) => {
|
|
814
|
+
modelValue.value = event.target.value;
|
|
815
|
+
(0, vue.unref)(rootContext).highlightFirstItem();
|
|
816
|
+
}),
|
|
817
|
+
onCompositionstart: (0, vue.unref)(rootContext).onCompositionStart,
|
|
818
|
+
onCompositionend: (0, vue.unref)(rootContext).onCompositionEnd
|
|
819
|
+
}, {
|
|
820
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", { modelValue: (0, vue.unref)(modelValue) })]),
|
|
821
|
+
_: 3
|
|
822
|
+
}, 8, [
|
|
823
|
+
"as",
|
|
824
|
+
"as-child",
|
|
825
|
+
"value",
|
|
826
|
+
"disabled",
|
|
827
|
+
"data-disabled",
|
|
828
|
+
"aria-disabled",
|
|
829
|
+
"aria-activedescendant",
|
|
830
|
+
"onKeydown",
|
|
831
|
+
"onCompositionstart",
|
|
832
|
+
"onCompositionend"
|
|
833
|
+
]);
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Listbox/ListboxItem.js
|
|
839
|
+
var LISTBOX_SELECT = "listbox.select";
|
|
840
|
+
var [injectListboxItemContext, provideListboxItemContext] = require_VisuallyHidden.createContext("ListboxItem");
|
|
841
|
+
var ListboxItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
842
|
+
__name: "ListboxItem",
|
|
843
|
+
props: {
|
|
844
|
+
value: {
|
|
845
|
+
type: null,
|
|
846
|
+
required: true
|
|
847
|
+
},
|
|
848
|
+
disabled: {
|
|
849
|
+
type: Boolean,
|
|
850
|
+
required: false
|
|
851
|
+
},
|
|
852
|
+
asChild: {
|
|
853
|
+
type: Boolean,
|
|
854
|
+
required: false
|
|
855
|
+
},
|
|
856
|
+
as: {
|
|
857
|
+
type: null,
|
|
858
|
+
required: false,
|
|
859
|
+
default: "div"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
emits: ["select"],
|
|
863
|
+
setup(__props, { emit: __emit }) {
|
|
864
|
+
const props = __props;
|
|
865
|
+
const emits = __emit;
|
|
866
|
+
const id = require_PopperContent.useId(void 0, "reka-listbox-item");
|
|
867
|
+
const { CollectionItem } = useCollection();
|
|
868
|
+
const { forwardRef, currentElement } = require_useForwardExpose.useForwardExpose();
|
|
869
|
+
const rootContext = injectListboxRootContext();
|
|
870
|
+
const isHighlighted = (0, vue.computed)(() => currentElement.value === rootContext.highlightedElement.value);
|
|
871
|
+
const isSelected = (0, vue.computed)(() => valueComparator(rootContext.modelValue.value, props.value, rootContext.by));
|
|
872
|
+
const disabled = (0, vue.computed)(() => rootContext.disabled.value || props.disabled);
|
|
873
|
+
async function handleSelect(ev) {
|
|
874
|
+
emits("select", ev);
|
|
875
|
+
if (ev?.defaultPrevented) return;
|
|
876
|
+
if (!disabled.value && ev) {
|
|
877
|
+
rootContext.onValueChange(props.value);
|
|
878
|
+
rootContext.changeHighlight(currentElement.value);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function handleSelectCustomEvent(ev) {
|
|
882
|
+
require_PopperContent.handleAndDispatchCustomEvent(LISTBOX_SELECT, handleSelect, {
|
|
883
|
+
originalEvent: ev,
|
|
884
|
+
value: props.value
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
provideListboxItemContext({ isSelected });
|
|
888
|
+
return (_ctx, _cache) => {
|
|
889
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(CollectionItem), { value: _ctx.value }, {
|
|
890
|
+
default: (0, vue.withCtx)(() => [(0, vue.withMemo)([isHighlighted.value, isSelected.value], () => (0, vue.createVNode)((0, vue.unref)(require_VisuallyHidden.Primitive), (0, vue.mergeProps)({ id: (0, vue.unref)(id) }, _ctx.$attrs, {
|
|
891
|
+
ref: (0, vue.unref)(forwardRef),
|
|
892
|
+
role: "option",
|
|
893
|
+
tabindex: (0, vue.unref)(rootContext).focusable.value ? isHighlighted.value ? "0" : "-1" : -1,
|
|
894
|
+
"aria-selected": isSelected.value,
|
|
895
|
+
as: _ctx.as,
|
|
896
|
+
"as-child": _ctx.asChild,
|
|
897
|
+
disabled: disabled.value ? "" : void 0,
|
|
898
|
+
"data-disabled": disabled.value ? "" : void 0,
|
|
899
|
+
"data-highlighted": isHighlighted.value ? "" : void 0,
|
|
900
|
+
"data-state": isSelected.value ? "checked" : "unchecked",
|
|
901
|
+
onClick: handleSelectCustomEvent,
|
|
902
|
+
onKeydown: (0, vue.withKeys)((0, vue.withModifiers)(handleSelectCustomEvent, ["prevent"]), ["space"]),
|
|
903
|
+
onPointermove: _cache[0] || (_cache[0] = () => {
|
|
904
|
+
if ((0, vue.unref)(rootContext).highlightedElement.value === (0, vue.unref)(currentElement)) return;
|
|
905
|
+
if ((0, vue.unref)(rootContext).highlightOnHover.value && !(0, vue.unref)(rootContext).focusable.value) (0, vue.unref)(rootContext).changeHighlight((0, vue.unref)(currentElement), false);
|
|
906
|
+
})
|
|
907
|
+
}), {
|
|
908
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
909
|
+
_: 3
|
|
910
|
+
}, 16, [
|
|
911
|
+
"id",
|
|
912
|
+
"tabindex",
|
|
913
|
+
"aria-selected",
|
|
914
|
+
"as",
|
|
915
|
+
"as-child",
|
|
916
|
+
"disabled",
|
|
917
|
+
"data-disabled",
|
|
918
|
+
"data-highlighted",
|
|
919
|
+
"data-state",
|
|
920
|
+
"onKeydown"
|
|
921
|
+
]), _cache, 1)]),
|
|
922
|
+
_: 3
|
|
923
|
+
}, 8, ["value"]);
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
//#endregion
|
|
928
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Listbox/ListboxItemIndicator.js
|
|
929
|
+
var ListboxItemIndicator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
930
|
+
__name: "ListboxItemIndicator",
|
|
931
|
+
props: {
|
|
932
|
+
asChild: {
|
|
933
|
+
type: Boolean,
|
|
934
|
+
required: false
|
|
935
|
+
},
|
|
936
|
+
as: {
|
|
937
|
+
type: null,
|
|
938
|
+
required: false,
|
|
939
|
+
default: "span"
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
setup(__props) {
|
|
943
|
+
const props = __props;
|
|
944
|
+
require_useForwardExpose.useForwardExpose();
|
|
945
|
+
const itemContext = injectListboxItemContext();
|
|
946
|
+
return (_ctx, _cache) => {
|
|
947
|
+
return (0, vue.unref)(itemContext).isSelected.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_VisuallyHidden.Primitive), (0, vue.mergeProps)({
|
|
948
|
+
key: 0,
|
|
949
|
+
"aria-hidden": "true"
|
|
950
|
+
}, props), {
|
|
951
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
952
|
+
_: 3
|
|
953
|
+
}, 16)) : (0, vue.createCommentVNode)("v-if", true);
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js
|
|
959
|
+
var [injectComboboxRootContext, provideComboboxRootContext] = require_VisuallyHidden.createContext("ComboboxRoot");
|
|
960
|
+
var ComboboxRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
961
|
+
__name: "ComboboxRoot",
|
|
962
|
+
props: {
|
|
963
|
+
open: {
|
|
964
|
+
type: Boolean,
|
|
965
|
+
required: false,
|
|
966
|
+
default: void 0
|
|
967
|
+
},
|
|
968
|
+
defaultOpen: {
|
|
969
|
+
type: Boolean,
|
|
970
|
+
required: false
|
|
971
|
+
},
|
|
972
|
+
resetSearchTermOnBlur: {
|
|
973
|
+
type: Boolean,
|
|
974
|
+
required: false,
|
|
975
|
+
default: true
|
|
976
|
+
},
|
|
977
|
+
resetSearchTermOnSelect: {
|
|
978
|
+
type: Boolean,
|
|
979
|
+
required: false,
|
|
980
|
+
default: true
|
|
981
|
+
},
|
|
982
|
+
openOnFocus: {
|
|
983
|
+
type: Boolean,
|
|
984
|
+
required: false,
|
|
985
|
+
default: false
|
|
986
|
+
},
|
|
987
|
+
openOnClick: {
|
|
988
|
+
type: Boolean,
|
|
989
|
+
required: false,
|
|
990
|
+
default: false
|
|
991
|
+
},
|
|
992
|
+
ignoreFilter: {
|
|
993
|
+
type: Boolean,
|
|
994
|
+
required: false
|
|
995
|
+
},
|
|
996
|
+
resetModelValueOnClear: {
|
|
997
|
+
type: Boolean,
|
|
998
|
+
required: false,
|
|
999
|
+
default: false
|
|
1000
|
+
},
|
|
1001
|
+
modelValue: {
|
|
1002
|
+
type: null,
|
|
1003
|
+
required: false
|
|
1004
|
+
},
|
|
1005
|
+
defaultValue: {
|
|
1006
|
+
type: null,
|
|
1007
|
+
required: false
|
|
1008
|
+
},
|
|
1009
|
+
multiple: {
|
|
1010
|
+
type: Boolean,
|
|
1011
|
+
required: false
|
|
1012
|
+
},
|
|
1013
|
+
dir: {
|
|
1014
|
+
type: String,
|
|
1015
|
+
required: false
|
|
1016
|
+
},
|
|
1017
|
+
disabled: {
|
|
1018
|
+
type: Boolean,
|
|
1019
|
+
required: false
|
|
1020
|
+
},
|
|
1021
|
+
highlightOnHover: {
|
|
1022
|
+
type: Boolean,
|
|
1023
|
+
required: false,
|
|
1024
|
+
default: true
|
|
1025
|
+
},
|
|
1026
|
+
by: {
|
|
1027
|
+
type: [String, Function],
|
|
1028
|
+
required: false
|
|
1029
|
+
},
|
|
1030
|
+
asChild: {
|
|
1031
|
+
type: Boolean,
|
|
1032
|
+
required: false
|
|
1033
|
+
},
|
|
1034
|
+
as: {
|
|
1035
|
+
type: null,
|
|
1036
|
+
required: false
|
|
1037
|
+
},
|
|
1038
|
+
name: {
|
|
1039
|
+
type: String,
|
|
1040
|
+
required: false
|
|
1041
|
+
},
|
|
1042
|
+
required: {
|
|
1043
|
+
type: Boolean,
|
|
1044
|
+
required: false
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
emits: [
|
|
1048
|
+
"update:modelValue",
|
|
1049
|
+
"highlight",
|
|
1050
|
+
"update:open"
|
|
1051
|
+
],
|
|
1052
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1053
|
+
const props = __props;
|
|
1054
|
+
const emits = __emit;
|
|
1055
|
+
const { primitiveElement, currentElement: parentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
1056
|
+
const { multiple, disabled, ignoreFilter, resetSearchTermOnSelect, openOnFocus, openOnClick, dir: propDir, resetModelValueOnClear, highlightOnHover } = (0, vue.toRefs)(props);
|
|
1057
|
+
const dir = require_VisuallyHidden.useDirection(propDir);
|
|
1058
|
+
const modelValue = require_dist.useVModel(props, "modelValue", emits, {
|
|
1059
|
+
defaultValue: props.defaultValue ?? (multiple.value ? [] : void 0),
|
|
1060
|
+
passive: props.modelValue === void 0,
|
|
1061
|
+
deep: true
|
|
1062
|
+
});
|
|
1063
|
+
const open = require_dist.useVModel(props, "open", emits, {
|
|
1064
|
+
defaultValue: props.defaultOpen,
|
|
1065
|
+
passive: props.open === void 0
|
|
1066
|
+
});
|
|
1067
|
+
async function onOpenChange(val) {
|
|
1068
|
+
open.value = val;
|
|
1069
|
+
filterSearch.value = "";
|
|
1070
|
+
if (val) {
|
|
1071
|
+
await (0, vue.nextTick)();
|
|
1072
|
+
primitiveElement.value?.highlightSelected();
|
|
1073
|
+
isUserInputted.value = true;
|
|
1074
|
+
inputElement.value?.focus();
|
|
1075
|
+
} else {
|
|
1076
|
+
isUserInputted.value = false;
|
|
1077
|
+
setTimeout(() => {
|
|
1078
|
+
if (!val && props.resetSearchTermOnBlur) resetSearchTerm.trigger();
|
|
1079
|
+
}, 1);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
const resetSearchTerm = require_dist.createEventHook();
|
|
1083
|
+
const isUserInputted = (0, vue.ref)(false);
|
|
1084
|
+
const isVirtual = (0, vue.ref)(false);
|
|
1085
|
+
const inputElement = (0, vue.ref)();
|
|
1086
|
+
const triggerElement = (0, vue.ref)();
|
|
1087
|
+
const highlightedElement = (0, vue.computed)(() => primitiveElement.value?.highlightedElement ?? void 0);
|
|
1088
|
+
const allItems = (0, vue.ref)(/* @__PURE__ */ new Map());
|
|
1089
|
+
const allGroups = (0, vue.ref)(/* @__PURE__ */ new Map());
|
|
1090
|
+
const { contains } = useFilter({ sensitivity: "base" });
|
|
1091
|
+
const filterSearch = (0, vue.ref)("");
|
|
1092
|
+
const filterState = (0, vue.computed)((oldValue) => {
|
|
1093
|
+
if (!filterSearch.value || props.ignoreFilter || isVirtual.value) return {
|
|
1094
|
+
count: allItems.value.size,
|
|
1095
|
+
items: oldValue?.items ?? /* @__PURE__ */ new Map(),
|
|
1096
|
+
groups: oldValue?.groups ?? new Set(allGroups.value.keys())
|
|
1097
|
+
};
|
|
1098
|
+
let itemCount = 0;
|
|
1099
|
+
const filteredItems = /* @__PURE__ */ new Map();
|
|
1100
|
+
const filteredGroups = /* @__PURE__ */ new Set();
|
|
1101
|
+
for (const [id, value] of allItems.value) {
|
|
1102
|
+
const score = contains(value, filterSearch.value);
|
|
1103
|
+
filteredItems.set(id, score ? 1 : 0);
|
|
1104
|
+
if (score) itemCount++;
|
|
1105
|
+
}
|
|
1106
|
+
for (const [groupId, group] of allGroups.value) for (const itemId of group) if (filteredItems.get(itemId) > 0) {
|
|
1107
|
+
filteredGroups.add(groupId);
|
|
1108
|
+
break;
|
|
1109
|
+
}
|
|
1110
|
+
return {
|
|
1111
|
+
count: itemCount,
|
|
1112
|
+
items: filteredItems,
|
|
1113
|
+
groups: filteredGroups
|
|
1114
|
+
};
|
|
1115
|
+
});
|
|
1116
|
+
const inst = (0, vue.getCurrentInstance)();
|
|
1117
|
+
(0, vue.onMounted)(() => {
|
|
1118
|
+
if (inst?.exposed) {
|
|
1119
|
+
inst.exposed.highlightItem = primitiveElement.value?.highlightItem;
|
|
1120
|
+
inst.exposed.highlightFirstItem = primitiveElement.value?.highlightFirstItem;
|
|
1121
|
+
inst.exposed.highlightSelected = primitiveElement.value?.highlightSelected;
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
__expose({
|
|
1125
|
+
filtered: filterState,
|
|
1126
|
+
highlightedElement,
|
|
1127
|
+
highlightItem: primitiveElement.value?.highlightItem,
|
|
1128
|
+
highlightFirstItem: primitiveElement.value?.highlightFirstItem,
|
|
1129
|
+
highlightSelected: primitiveElement.value?.highlightSelected
|
|
1130
|
+
});
|
|
1131
|
+
provideComboboxRootContext({
|
|
1132
|
+
modelValue,
|
|
1133
|
+
multiple,
|
|
1134
|
+
disabled,
|
|
1135
|
+
open,
|
|
1136
|
+
onOpenChange,
|
|
1137
|
+
contentId: "",
|
|
1138
|
+
isUserInputted,
|
|
1139
|
+
isVirtual,
|
|
1140
|
+
inputElement,
|
|
1141
|
+
highlightedElement,
|
|
1142
|
+
onInputElementChange: (val) => inputElement.value = val,
|
|
1143
|
+
triggerElement,
|
|
1144
|
+
onTriggerElementChange: (val) => triggerElement.value = val,
|
|
1145
|
+
parentElement,
|
|
1146
|
+
resetSearchTermOnSelect,
|
|
1147
|
+
onResetSearchTerm: resetSearchTerm.on,
|
|
1148
|
+
allItems,
|
|
1149
|
+
allGroups,
|
|
1150
|
+
filterSearch,
|
|
1151
|
+
filterState,
|
|
1152
|
+
ignoreFilter,
|
|
1153
|
+
openOnFocus,
|
|
1154
|
+
openOnClick,
|
|
1155
|
+
resetModelValueOnClear
|
|
1156
|
+
});
|
|
1157
|
+
return (_ctx, _cache) => {
|
|
1158
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_PopperContent.PopperRoot_default), null, {
|
|
1159
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(ListboxRoot_default), (0, vue.mergeProps)({
|
|
1160
|
+
ref_key: "primitiveElement",
|
|
1161
|
+
ref: primitiveElement
|
|
1162
|
+
}, _ctx.$attrs, {
|
|
1163
|
+
modelValue: (0, vue.unref)(modelValue),
|
|
1164
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (0, vue.isRef)(modelValue) ? modelValue.value = $event : null),
|
|
1165
|
+
style: { pointerEvents: (0, vue.unref)(open) ? "auto" : void 0 },
|
|
1166
|
+
as: _ctx.as,
|
|
1167
|
+
"as-child": _ctx.asChild,
|
|
1168
|
+
dir: (0, vue.unref)(dir),
|
|
1169
|
+
multiple: (0, vue.unref)(multiple),
|
|
1170
|
+
name: _ctx.name,
|
|
1171
|
+
required: _ctx.required,
|
|
1172
|
+
disabled: (0, vue.unref)(disabled),
|
|
1173
|
+
"highlight-on-hover": (0, vue.unref)(highlightOnHover),
|
|
1174
|
+
by: props.by,
|
|
1175
|
+
onHighlight: _cache[1] || (_cache[1] = ($event) => emits("highlight", $event))
|
|
1176
|
+
}), {
|
|
1177
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {
|
|
1178
|
+
open: (0, vue.unref)(open),
|
|
1179
|
+
modelValue: (0, vue.unref)(modelValue)
|
|
1180
|
+
})]),
|
|
1181
|
+
_: 3
|
|
1182
|
+
}, 16, [
|
|
1183
|
+
"modelValue",
|
|
1184
|
+
"style",
|
|
1185
|
+
"as",
|
|
1186
|
+
"as-child",
|
|
1187
|
+
"dir",
|
|
1188
|
+
"multiple",
|
|
1189
|
+
"name",
|
|
1190
|
+
"required",
|
|
1191
|
+
"disabled",
|
|
1192
|
+
"highlight-on-hover",
|
|
1193
|
+
"by"
|
|
1194
|
+
])]),
|
|
1195
|
+
_: 3
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
//#endregion
|
|
1201
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js
|
|
1202
|
+
var ComboboxAnchor_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1203
|
+
__name: "ComboboxAnchor",
|
|
1204
|
+
props: {
|
|
1205
|
+
reference: {
|
|
1206
|
+
type: null,
|
|
1207
|
+
required: false
|
|
1208
|
+
},
|
|
1209
|
+
asChild: {
|
|
1210
|
+
type: Boolean,
|
|
1211
|
+
required: false
|
|
1212
|
+
},
|
|
1213
|
+
as: {
|
|
1214
|
+
type: null,
|
|
1215
|
+
required: false
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
setup(__props) {
|
|
1219
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
1220
|
+
return (_ctx, _cache) => {
|
|
1221
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_PopperContent.PopperAnchor_default), {
|
|
1222
|
+
"as-child": "",
|
|
1223
|
+
reference: _ctx.reference
|
|
1224
|
+
}, {
|
|
1225
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_VisuallyHidden.Primitive), (0, vue.mergeProps)({
|
|
1226
|
+
ref: (0, vue.unref)(forwardRef),
|
|
1227
|
+
"as-child": _ctx.asChild,
|
|
1228
|
+
as: _ctx.as
|
|
1229
|
+
}, _ctx.$attrs), {
|
|
1230
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1231
|
+
_: 3
|
|
1232
|
+
}, 16, ["as-child", "as"])]),
|
|
1233
|
+
_: 3
|
|
1234
|
+
}, 8, ["reference"]);
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxContentImpl.js
|
|
1240
|
+
var [injectComboboxContentContext, provideComboboxContentContext] = require_VisuallyHidden.createContext("ComboboxContent");
|
|
1241
|
+
var ComboboxContentImpl_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1242
|
+
__name: "ComboboxContentImpl",
|
|
1243
|
+
props: {
|
|
1244
|
+
position: {
|
|
1245
|
+
type: String,
|
|
1246
|
+
required: false,
|
|
1247
|
+
default: "inline"
|
|
1248
|
+
},
|
|
1249
|
+
bodyLock: {
|
|
1250
|
+
type: Boolean,
|
|
1251
|
+
required: false
|
|
1252
|
+
},
|
|
1253
|
+
hideWhenEmpty: {
|
|
1254
|
+
type: Boolean,
|
|
1255
|
+
required: false
|
|
1256
|
+
},
|
|
1257
|
+
side: {
|
|
1258
|
+
type: null,
|
|
1259
|
+
required: false
|
|
1260
|
+
},
|
|
1261
|
+
sideOffset: {
|
|
1262
|
+
type: Number,
|
|
1263
|
+
required: false
|
|
1264
|
+
},
|
|
1265
|
+
sideFlip: {
|
|
1266
|
+
type: Boolean,
|
|
1267
|
+
required: false
|
|
1268
|
+
},
|
|
1269
|
+
align: {
|
|
1270
|
+
type: null,
|
|
1271
|
+
required: false
|
|
1272
|
+
},
|
|
1273
|
+
alignOffset: {
|
|
1274
|
+
type: Number,
|
|
1275
|
+
required: false
|
|
1276
|
+
},
|
|
1277
|
+
alignFlip: {
|
|
1278
|
+
type: Boolean,
|
|
1279
|
+
required: false
|
|
1280
|
+
},
|
|
1281
|
+
avoidCollisions: {
|
|
1282
|
+
type: Boolean,
|
|
1283
|
+
required: false
|
|
1284
|
+
},
|
|
1285
|
+
collisionBoundary: {
|
|
1286
|
+
type: null,
|
|
1287
|
+
required: false
|
|
1288
|
+
},
|
|
1289
|
+
collisionPadding: {
|
|
1290
|
+
type: [Number, Object],
|
|
1291
|
+
required: false
|
|
1292
|
+
},
|
|
1293
|
+
arrowPadding: {
|
|
1294
|
+
type: Number,
|
|
1295
|
+
required: false
|
|
1296
|
+
},
|
|
1297
|
+
hideShiftedArrow: {
|
|
1298
|
+
type: Boolean,
|
|
1299
|
+
required: false
|
|
1300
|
+
},
|
|
1301
|
+
sticky: {
|
|
1302
|
+
type: String,
|
|
1303
|
+
required: false
|
|
1304
|
+
},
|
|
1305
|
+
hideWhenDetached: {
|
|
1306
|
+
type: Boolean,
|
|
1307
|
+
required: false
|
|
1308
|
+
},
|
|
1309
|
+
positionStrategy: {
|
|
1310
|
+
type: String,
|
|
1311
|
+
required: false
|
|
1312
|
+
},
|
|
1313
|
+
updatePositionStrategy: {
|
|
1314
|
+
type: String,
|
|
1315
|
+
required: false
|
|
1316
|
+
},
|
|
1317
|
+
disableUpdateOnLayoutShift: {
|
|
1318
|
+
type: Boolean,
|
|
1319
|
+
required: false
|
|
1320
|
+
},
|
|
1321
|
+
prioritizePosition: {
|
|
1322
|
+
type: Boolean,
|
|
1323
|
+
required: false
|
|
1324
|
+
},
|
|
1325
|
+
reference: {
|
|
1326
|
+
type: null,
|
|
1327
|
+
required: false
|
|
1328
|
+
},
|
|
1329
|
+
asChild: {
|
|
1330
|
+
type: Boolean,
|
|
1331
|
+
required: false
|
|
1332
|
+
},
|
|
1333
|
+
as: {
|
|
1334
|
+
type: null,
|
|
1335
|
+
required: false
|
|
1336
|
+
},
|
|
1337
|
+
disableOutsidePointerEvents: {
|
|
1338
|
+
type: Boolean,
|
|
1339
|
+
required: false
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
emits: [
|
|
1343
|
+
"escapeKeyDown",
|
|
1344
|
+
"pointerDownOutside",
|
|
1345
|
+
"focusOutside",
|
|
1346
|
+
"interactOutside"
|
|
1347
|
+
],
|
|
1348
|
+
setup(__props, { emit: __emit }) {
|
|
1349
|
+
const props = __props;
|
|
1350
|
+
const emits = __emit;
|
|
1351
|
+
const { position } = (0, vue.toRefs)(props);
|
|
1352
|
+
const rootContext = injectComboboxRootContext();
|
|
1353
|
+
const isEmpty = (0, vue.computed)(() => rootContext.ignoreFilter.value ? rootContext.allItems.value.size === 0 : rootContext.filterState.value.count === 0);
|
|
1354
|
+
const { forwardRef, currentElement } = require_useForwardExpose.useForwardExpose();
|
|
1355
|
+
require_PopperContent.useBodyScrollLock(props.bodyLock);
|
|
1356
|
+
require_PopperContent.useFocusGuards();
|
|
1357
|
+
require_PopperContent.useHideOthers(rootContext.parentElement);
|
|
1358
|
+
const forwardedProps = require_PopperContent.useForwardProps((0, vue.computed)(() => {
|
|
1359
|
+
if (props.position === "popper") return props;
|
|
1360
|
+
else return {};
|
|
1361
|
+
}).value);
|
|
1362
|
+
const popperStyle = {
|
|
1363
|
+
"boxSizing": "border-box",
|
|
1364
|
+
"--reka-combobox-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
1365
|
+
"--reka-combobox-content-available-width": "var(--reka-popper-available-width)",
|
|
1366
|
+
"--reka-combobox-content-available-height": "var(--reka-popper-available-height)",
|
|
1367
|
+
"--reka-combobox-trigger-width": "var(--reka-popper-anchor-width)",
|
|
1368
|
+
"--reka-combobox-trigger-height": "var(--reka-popper-anchor-height)"
|
|
1369
|
+
};
|
|
1370
|
+
provideComboboxContentContext({ position });
|
|
1371
|
+
const isInputWithinContent = (0, vue.ref)(false);
|
|
1372
|
+
(0, vue.onMounted)(() => {
|
|
1373
|
+
if (rootContext.inputElement.value) {
|
|
1374
|
+
isInputWithinContent.value = currentElement.value.contains(rootContext.inputElement.value);
|
|
1375
|
+
if (isInputWithinContent.value) rootContext.inputElement.value.focus();
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
(0, vue.onUnmounted)(() => {
|
|
1379
|
+
const activeElement = require_useForwardExpose.getActiveElement();
|
|
1380
|
+
if (isInputWithinContent.value && (!activeElement || activeElement === document.body)) rootContext.triggerElement.value?.focus();
|
|
1381
|
+
});
|
|
1382
|
+
return (_ctx, _cache) => {
|
|
1383
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ListboxContent_default), { "as-child": "" }, {
|
|
1384
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_PopperContent.FocusScope_default), {
|
|
1385
|
+
"as-child": "",
|
|
1386
|
+
onMountAutoFocus: _cache[5] || (_cache[5] = (0, vue.withModifiers)(() => {}, ["prevent"])),
|
|
1387
|
+
onUnmountAutoFocus: _cache[6] || (_cache[6] = (0, vue.withModifiers)(() => {}, ["prevent"]))
|
|
1388
|
+
}, {
|
|
1389
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_PopperContent.DismissableLayer_default), {
|
|
1390
|
+
"as-child": "",
|
|
1391
|
+
"disable-outside-pointer-events": _ctx.disableOutsidePointerEvents,
|
|
1392
|
+
onDismiss: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(rootContext).onOpenChange(false)),
|
|
1393
|
+
onFocusOutside: _cache[1] || (_cache[1] = (ev) => {
|
|
1394
|
+
if ((0, vue.unref)(rootContext).parentElement.value?.contains(ev.target)) ev.preventDefault();
|
|
1395
|
+
emits("focusOutside", ev);
|
|
1396
|
+
}),
|
|
1397
|
+
onInteractOutside: _cache[2] || (_cache[2] = ($event) => emits("interactOutside", $event)),
|
|
1398
|
+
onEscapeKeyDown: _cache[3] || (_cache[3] = ($event) => emits("escapeKeyDown", $event)),
|
|
1399
|
+
onPointerDownOutside: _cache[4] || (_cache[4] = (ev) => {
|
|
1400
|
+
if ((0, vue.unref)(rootContext).parentElement.value?.contains(ev.target)) ev.preventDefault();
|
|
1401
|
+
emits("pointerDownOutside", ev);
|
|
1402
|
+
})
|
|
1403
|
+
}, {
|
|
1404
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.unref)(position) === "popper" ? (0, vue.unref)(require_PopperContent.PopperContent_default) : (0, vue.unref)(require_VisuallyHidden.Primitive)), (0, vue.mergeProps)({
|
|
1405
|
+
..._ctx.$attrs,
|
|
1406
|
+
...(0, vue.unref)(forwardedProps)
|
|
1407
|
+
}, {
|
|
1408
|
+
id: (0, vue.unref)(rootContext).contentId,
|
|
1409
|
+
ref: (0, vue.unref)(forwardRef),
|
|
1410
|
+
"data-state": (0, vue.unref)(rootContext).open.value ? "open" : "closed",
|
|
1411
|
+
"data-empty": isEmpty.value ? "" : void 0,
|
|
1412
|
+
style: {
|
|
1413
|
+
display: props.hideWhenEmpty && isEmpty.value ? "none" : "flex",
|
|
1414
|
+
flexDirection: "column",
|
|
1415
|
+
outline: "none",
|
|
1416
|
+
...(0, vue.unref)(position) === "popper" ? popperStyle : {}
|
|
1417
|
+
}
|
|
1418
|
+
}), {
|
|
1419
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1420
|
+
_: 3
|
|
1421
|
+
}, 16, [
|
|
1422
|
+
"id",
|
|
1423
|
+
"data-state",
|
|
1424
|
+
"data-empty",
|
|
1425
|
+
"style"
|
|
1426
|
+
]))]),
|
|
1427
|
+
_: 3
|
|
1428
|
+
}, 8, ["disable-outside-pointer-events"])]),
|
|
1429
|
+
_: 3
|
|
1430
|
+
})]),
|
|
1431
|
+
_: 3
|
|
1432
|
+
});
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
//#endregion
|
|
1437
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxContent.js
|
|
1438
|
+
var ComboboxContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1439
|
+
__name: "ComboboxContent",
|
|
1440
|
+
props: {
|
|
1441
|
+
forceMount: {
|
|
1442
|
+
type: Boolean,
|
|
1443
|
+
required: false
|
|
1444
|
+
},
|
|
1445
|
+
position: {
|
|
1446
|
+
type: String,
|
|
1447
|
+
required: false
|
|
1448
|
+
},
|
|
1449
|
+
bodyLock: {
|
|
1450
|
+
type: Boolean,
|
|
1451
|
+
required: false
|
|
1452
|
+
},
|
|
1453
|
+
hideWhenEmpty: {
|
|
1454
|
+
type: Boolean,
|
|
1455
|
+
required: false
|
|
1456
|
+
},
|
|
1457
|
+
side: {
|
|
1458
|
+
type: null,
|
|
1459
|
+
required: false
|
|
1460
|
+
},
|
|
1461
|
+
sideOffset: {
|
|
1462
|
+
type: Number,
|
|
1463
|
+
required: false
|
|
1464
|
+
},
|
|
1465
|
+
sideFlip: {
|
|
1466
|
+
type: Boolean,
|
|
1467
|
+
required: false
|
|
1468
|
+
},
|
|
1469
|
+
align: {
|
|
1470
|
+
type: null,
|
|
1471
|
+
required: false
|
|
1472
|
+
},
|
|
1473
|
+
alignOffset: {
|
|
1474
|
+
type: Number,
|
|
1475
|
+
required: false
|
|
1476
|
+
},
|
|
1477
|
+
alignFlip: {
|
|
1478
|
+
type: Boolean,
|
|
1479
|
+
required: false
|
|
1480
|
+
},
|
|
1481
|
+
avoidCollisions: {
|
|
1482
|
+
type: Boolean,
|
|
1483
|
+
required: false
|
|
1484
|
+
},
|
|
1485
|
+
collisionBoundary: {
|
|
1486
|
+
type: null,
|
|
1487
|
+
required: false
|
|
1488
|
+
},
|
|
1489
|
+
collisionPadding: {
|
|
1490
|
+
type: [Number, Object],
|
|
1491
|
+
required: false
|
|
1492
|
+
},
|
|
1493
|
+
arrowPadding: {
|
|
1494
|
+
type: Number,
|
|
1495
|
+
required: false
|
|
1496
|
+
},
|
|
1497
|
+
hideShiftedArrow: {
|
|
1498
|
+
type: Boolean,
|
|
1499
|
+
required: false
|
|
1500
|
+
},
|
|
1501
|
+
sticky: {
|
|
1502
|
+
type: String,
|
|
1503
|
+
required: false
|
|
1504
|
+
},
|
|
1505
|
+
hideWhenDetached: {
|
|
1506
|
+
type: Boolean,
|
|
1507
|
+
required: false
|
|
1508
|
+
},
|
|
1509
|
+
positionStrategy: {
|
|
1510
|
+
type: String,
|
|
1511
|
+
required: false
|
|
1512
|
+
},
|
|
1513
|
+
updatePositionStrategy: {
|
|
1514
|
+
type: String,
|
|
1515
|
+
required: false
|
|
1516
|
+
},
|
|
1517
|
+
disableUpdateOnLayoutShift: {
|
|
1518
|
+
type: Boolean,
|
|
1519
|
+
required: false
|
|
1520
|
+
},
|
|
1521
|
+
prioritizePosition: {
|
|
1522
|
+
type: Boolean,
|
|
1523
|
+
required: false
|
|
1524
|
+
},
|
|
1525
|
+
reference: {
|
|
1526
|
+
type: null,
|
|
1527
|
+
required: false
|
|
1528
|
+
},
|
|
1529
|
+
asChild: {
|
|
1530
|
+
type: Boolean,
|
|
1531
|
+
required: false
|
|
1532
|
+
},
|
|
1533
|
+
as: {
|
|
1534
|
+
type: null,
|
|
1535
|
+
required: false
|
|
1536
|
+
},
|
|
1537
|
+
disableOutsidePointerEvents: {
|
|
1538
|
+
type: Boolean,
|
|
1539
|
+
required: false
|
|
1540
|
+
}
|
|
1541
|
+
},
|
|
1542
|
+
emits: [
|
|
1543
|
+
"escapeKeyDown",
|
|
1544
|
+
"pointerDownOutside",
|
|
1545
|
+
"focusOutside",
|
|
1546
|
+
"interactOutside"
|
|
1547
|
+
],
|
|
1548
|
+
setup(__props, { emit: __emit }) {
|
|
1549
|
+
const forwarded = require_PopperContent.useForwardPropsEmits(__props, __emit);
|
|
1550
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
1551
|
+
const rootContext = injectComboboxRootContext();
|
|
1552
|
+
rootContext.contentId ||= require_PopperContent.useId(void 0, "reka-combobox-content");
|
|
1553
|
+
return (_ctx, _cache) => {
|
|
1554
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_PopperContent.Presence_default), { present: _ctx.forceMount || (0, vue.unref)(rootContext).open.value }, {
|
|
1555
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(ComboboxContentImpl_default, (0, vue.mergeProps)({
|
|
1556
|
+
...(0, vue.unref)(forwarded),
|
|
1557
|
+
..._ctx.$attrs
|
|
1558
|
+
}, { ref: (0, vue.unref)(forwardRef) }), {
|
|
1559
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1560
|
+
_: 3
|
|
1561
|
+
}, 16)]),
|
|
1562
|
+
_: 3
|
|
1563
|
+
}, 8, ["present"]);
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
//#endregion
|
|
1568
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js
|
|
1569
|
+
var ComboboxEmpty_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1570
|
+
__name: "ComboboxEmpty",
|
|
1571
|
+
props: {
|
|
1572
|
+
asChild: {
|
|
1573
|
+
type: Boolean,
|
|
1574
|
+
required: false
|
|
1575
|
+
},
|
|
1576
|
+
as: {
|
|
1577
|
+
type: null,
|
|
1578
|
+
required: false
|
|
1579
|
+
}
|
|
1580
|
+
},
|
|
1581
|
+
setup(__props) {
|
|
1582
|
+
const props = __props;
|
|
1583
|
+
const rootContext = injectComboboxRootContext();
|
|
1584
|
+
const isRender = (0, vue.computed)(() => rootContext.ignoreFilter.value ? rootContext.allItems.value.size === 0 : rootContext.filterState.value.count === 0);
|
|
1585
|
+
return (_ctx, _cache) => {
|
|
1586
|
+
return isRender.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_VisuallyHidden.Primitive), (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 0 }, props)), {
|
|
1587
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = (0, vue.createTextVNode)("No options"))])]),
|
|
1588
|
+
_: 3
|
|
1589
|
+
}, 16)) : (0, vue.createCommentVNode)("v-if", true);
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
});
|
|
1593
|
+
//#endregion
|
|
1594
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js
|
|
1595
|
+
var [injectComboboxGroupContext, provideComboboxGroupContext] = require_VisuallyHidden.createContext("ComboboxGroup");
|
|
1596
|
+
//#endregion
|
|
1597
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxInput.js
|
|
1598
|
+
var ComboboxInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1599
|
+
__name: "ComboboxInput",
|
|
1600
|
+
props: {
|
|
1601
|
+
displayValue: {
|
|
1602
|
+
type: Function,
|
|
1603
|
+
required: false
|
|
1604
|
+
},
|
|
1605
|
+
modelValue: {
|
|
1606
|
+
type: String,
|
|
1607
|
+
required: false
|
|
1608
|
+
},
|
|
1609
|
+
autoFocus: {
|
|
1610
|
+
type: Boolean,
|
|
1611
|
+
required: false
|
|
1612
|
+
},
|
|
1613
|
+
disabled: {
|
|
1614
|
+
type: Boolean,
|
|
1615
|
+
required: false
|
|
1616
|
+
},
|
|
1617
|
+
asChild: {
|
|
1618
|
+
type: Boolean,
|
|
1619
|
+
required: false
|
|
1620
|
+
},
|
|
1621
|
+
as: {
|
|
1622
|
+
type: null,
|
|
1623
|
+
required: false,
|
|
1624
|
+
default: "input"
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
emits: ["update:modelValue"],
|
|
1628
|
+
setup(__props, { emit: __emit }) {
|
|
1629
|
+
const props = __props;
|
|
1630
|
+
const emits = __emit;
|
|
1631
|
+
const rootContext = injectComboboxRootContext();
|
|
1632
|
+
const listboxContext = injectListboxRootContext();
|
|
1633
|
+
const { primitiveElement, currentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
1634
|
+
const modelValue = require_dist.useVModel(props, "modelValue", emits, { passive: props.modelValue === void 0 });
|
|
1635
|
+
(0, vue.onMounted)(() => {
|
|
1636
|
+
if (currentElement.value) rootContext.onInputElementChange(currentElement.value);
|
|
1637
|
+
});
|
|
1638
|
+
function handleKeyDown(ev) {
|
|
1639
|
+
if (!rootContext.open.value) rootContext.onOpenChange(true);
|
|
1640
|
+
}
|
|
1641
|
+
function handleInput(event) {
|
|
1642
|
+
const target = event.target;
|
|
1643
|
+
if (!rootContext.open.value) {
|
|
1644
|
+
rootContext.onOpenChange(true);
|
|
1645
|
+
(0, vue.nextTick)(() => {
|
|
1646
|
+
if (target.value) {
|
|
1647
|
+
rootContext.filterSearch.value = target.value;
|
|
1648
|
+
listboxContext.highlightFirstItem();
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
} else rootContext.filterSearch.value = target.value;
|
|
1652
|
+
}
|
|
1653
|
+
function handleFocus() {
|
|
1654
|
+
if (rootContext.openOnFocus.value && !rootContext.open.value) rootContext.onOpenChange(true);
|
|
1655
|
+
}
|
|
1656
|
+
function handleBlur(ev) {
|
|
1657
|
+
if (!rootContext.open.value) return;
|
|
1658
|
+
const nextFocus = ev.relatedTarget;
|
|
1659
|
+
if (!nextFocus) return;
|
|
1660
|
+
const isInsideRoot = rootContext.parentElement.value?.contains(nextFocus);
|
|
1661
|
+
const isInsideContent = document.getElementById(rootContext.contentId)?.contains(nextFocus);
|
|
1662
|
+
if (!isInsideRoot && !isInsideContent) rootContext.onOpenChange(false);
|
|
1663
|
+
}
|
|
1664
|
+
function handleClick() {
|
|
1665
|
+
if (rootContext.openOnClick.value && !rootContext.open.value) rootContext.onOpenChange(true);
|
|
1666
|
+
}
|
|
1667
|
+
function resetSearchTerm() {
|
|
1668
|
+
const rootModelValue = rootContext.modelValue.value;
|
|
1669
|
+
if (props.displayValue) modelValue.value = props.displayValue(rootModelValue);
|
|
1670
|
+
else if (!rootContext.multiple.value && rootModelValue && !Array.isArray(rootModelValue)) if (typeof rootModelValue !== "object") modelValue.value = rootModelValue.toString();
|
|
1671
|
+
else modelValue.value = "";
|
|
1672
|
+
else modelValue.value = "";
|
|
1673
|
+
(0, vue.nextTick)(() => {
|
|
1674
|
+
modelValue.value = modelValue.value;
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
rootContext.onResetSearchTerm(() => {
|
|
1678
|
+
resetSearchTerm();
|
|
1679
|
+
});
|
|
1680
|
+
(0, vue.watch)(rootContext.modelValue, async () => {
|
|
1681
|
+
if (!rootContext.isUserInputted.value && rootContext.resetSearchTermOnSelect.value) resetSearchTerm();
|
|
1682
|
+
}, {
|
|
1683
|
+
immediate: true,
|
|
1684
|
+
deep: true
|
|
1685
|
+
});
|
|
1686
|
+
(0, vue.watch)(rootContext.filterState, (_newValue, oldValue) => {
|
|
1687
|
+
if (!rootContext.isVirtual.value && oldValue.count === 0) listboxContext.highlightFirstItem();
|
|
1688
|
+
});
|
|
1689
|
+
return (_ctx, _cache) => {
|
|
1690
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ListboxFilter_default), {
|
|
1691
|
+
ref_key: "primitiveElement",
|
|
1692
|
+
ref: primitiveElement,
|
|
1693
|
+
modelValue: (0, vue.unref)(modelValue),
|
|
1694
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (0, vue.isRef)(modelValue) ? modelValue.value = $event : null),
|
|
1695
|
+
as: _ctx.as,
|
|
1696
|
+
"as-child": _ctx.asChild,
|
|
1697
|
+
"auto-focus": _ctx.autoFocus,
|
|
1698
|
+
disabled: _ctx.disabled,
|
|
1699
|
+
"aria-expanded": (0, vue.unref)(rootContext).open.value,
|
|
1700
|
+
"aria-controls": (0, vue.unref)(rootContext).contentId,
|
|
1701
|
+
"aria-autocomplete": "list",
|
|
1702
|
+
role: "combobox",
|
|
1703
|
+
autocomplete: "off",
|
|
1704
|
+
onClick: handleClick,
|
|
1705
|
+
onInput: handleInput,
|
|
1706
|
+
onKeydown: (0, vue.withKeys)((0, vue.withModifiers)(handleKeyDown, ["prevent"]), ["down", "up"]),
|
|
1707
|
+
onFocus: handleFocus,
|
|
1708
|
+
onBlur: handleBlur
|
|
1709
|
+
}, {
|
|
1710
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1711
|
+
_: 3
|
|
1712
|
+
}, 8, [
|
|
1713
|
+
"modelValue",
|
|
1714
|
+
"as",
|
|
1715
|
+
"as-child",
|
|
1716
|
+
"auto-focus",
|
|
1717
|
+
"disabled",
|
|
1718
|
+
"aria-expanded",
|
|
1719
|
+
"aria-controls",
|
|
1720
|
+
"onKeydown"
|
|
1721
|
+
]);
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
//#endregion
|
|
1726
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxItem.js
|
|
1727
|
+
var ComboboxItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1728
|
+
__name: "ComboboxItem",
|
|
1729
|
+
props: {
|
|
1730
|
+
textValue: {
|
|
1731
|
+
type: String,
|
|
1732
|
+
required: false
|
|
1733
|
+
},
|
|
1734
|
+
value: {
|
|
1735
|
+
type: null,
|
|
1736
|
+
required: true
|
|
1737
|
+
},
|
|
1738
|
+
disabled: {
|
|
1739
|
+
type: Boolean,
|
|
1740
|
+
required: false
|
|
1741
|
+
},
|
|
1742
|
+
asChild: {
|
|
1743
|
+
type: Boolean,
|
|
1744
|
+
required: false
|
|
1745
|
+
},
|
|
1746
|
+
as: {
|
|
1747
|
+
type: null,
|
|
1748
|
+
required: false
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
emits: ["select"],
|
|
1752
|
+
setup(__props, { emit: __emit }) {
|
|
1753
|
+
const props = __props;
|
|
1754
|
+
const emits = __emit;
|
|
1755
|
+
const id = require_PopperContent.useId(void 0, "reka-combobox-item");
|
|
1756
|
+
const rootContext = injectComboboxRootContext();
|
|
1757
|
+
const groupContext = injectComboboxGroupContext(null);
|
|
1758
|
+
const { primitiveElement, currentElement } = require_VisuallyHidden.usePrimitiveElement();
|
|
1759
|
+
if (props.value === "") throw new Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");
|
|
1760
|
+
const isRender = (0, vue.computed)(() => {
|
|
1761
|
+
if (rootContext.isVirtual.value || rootContext.ignoreFilter.value || !rootContext.filterSearch.value) return true;
|
|
1762
|
+
else {
|
|
1763
|
+
const filteredCurrentItem = rootContext.filterState.value.items.get(id);
|
|
1764
|
+
if (filteredCurrentItem === void 0) return true;
|
|
1765
|
+
return filteredCurrentItem > 0;
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
(0, vue.onMounted)(() => {
|
|
1769
|
+
rootContext.allItems.value.set(id, props.textValue || currentElement.value.textContent || currentElement.value.innerText);
|
|
1770
|
+
const groupId = groupContext?.id;
|
|
1771
|
+
if (groupId) if (!rootContext.allGroups.value.has(groupId)) rootContext.allGroups.value.set(groupId, new Set([id]));
|
|
1772
|
+
else rootContext.allGroups.value.get(groupId)?.add(id);
|
|
1773
|
+
});
|
|
1774
|
+
(0, vue.onUnmounted)(() => {
|
|
1775
|
+
rootContext.allItems.value.delete(id);
|
|
1776
|
+
});
|
|
1777
|
+
return (_ctx, _cache) => {
|
|
1778
|
+
return isRender.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ListboxItem_default), (0, vue.mergeProps)({ key: 0 }, props, {
|
|
1779
|
+
id: (0, vue.unref)(id),
|
|
1780
|
+
ref_key: "primitiveElement",
|
|
1781
|
+
ref: primitiveElement,
|
|
1782
|
+
disabled: (0, vue.unref)(rootContext).disabled.value || _ctx.disabled,
|
|
1783
|
+
onSelect: _cache[0] || (_cache[0] = (event) => {
|
|
1784
|
+
emits("select", event);
|
|
1785
|
+
if (event.defaultPrevented) return;
|
|
1786
|
+
if (!(0, vue.unref)(rootContext).multiple.value && !_ctx.disabled && !(0, vue.unref)(rootContext).disabled.value) {
|
|
1787
|
+
event.preventDefault();
|
|
1788
|
+
(0, vue.unref)(rootContext).onOpenChange(false);
|
|
1789
|
+
(0, vue.unref)(rootContext).modelValue.value = props.value;
|
|
1790
|
+
}
|
|
1791
|
+
})
|
|
1792
|
+
}), {
|
|
1793
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(_ctx.value), 1)])]),
|
|
1794
|
+
_: 3
|
|
1795
|
+
}, 16, ["id", "disabled"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
//#endregion
|
|
1800
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js
|
|
1801
|
+
var ComboboxItemIndicator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1802
|
+
__name: "ComboboxItemIndicator",
|
|
1803
|
+
props: {
|
|
1804
|
+
asChild: {
|
|
1805
|
+
type: Boolean,
|
|
1806
|
+
required: false
|
|
1807
|
+
},
|
|
1808
|
+
as: {
|
|
1809
|
+
type: null,
|
|
1810
|
+
required: false,
|
|
1811
|
+
default: "span"
|
|
1812
|
+
}
|
|
1813
|
+
},
|
|
1814
|
+
setup(__props) {
|
|
1815
|
+
const props = __props;
|
|
1816
|
+
return (_ctx, _cache) => {
|
|
1817
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ListboxItemIndicator_default), (0, vue.normalizeProps)((0, vue.guardReactiveProps)(props)), {
|
|
1818
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1819
|
+
_: 3
|
|
1820
|
+
}, 16);
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
});
|
|
1824
|
+
//#endregion
|
|
1825
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxPortal.js
|
|
1826
|
+
var ComboboxPortal_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1827
|
+
__name: "ComboboxPortal",
|
|
1828
|
+
props: {
|
|
1829
|
+
to: {
|
|
1830
|
+
type: null,
|
|
1831
|
+
required: false
|
|
1832
|
+
},
|
|
1833
|
+
disabled: {
|
|
1834
|
+
type: Boolean,
|
|
1835
|
+
required: false
|
|
1836
|
+
},
|
|
1837
|
+
defer: {
|
|
1838
|
+
type: Boolean,
|
|
1839
|
+
required: false
|
|
1840
|
+
},
|
|
1841
|
+
forceMount: {
|
|
1842
|
+
type: Boolean,
|
|
1843
|
+
required: false
|
|
1844
|
+
}
|
|
1845
|
+
},
|
|
1846
|
+
setup(__props) {
|
|
1847
|
+
const props = __props;
|
|
1848
|
+
return (_ctx, _cache) => {
|
|
1849
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_PopperContent.Teleport_default), (0, vue.normalizeProps)((0, vue.guardReactiveProps)(props)), {
|
|
1850
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1851
|
+
_: 3
|
|
1852
|
+
}, 16);
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
//#endregion
|
|
1857
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js
|
|
1858
|
+
var ComboboxTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1859
|
+
__name: "ComboboxTrigger",
|
|
1860
|
+
props: {
|
|
1861
|
+
disabled: {
|
|
1862
|
+
type: Boolean,
|
|
1863
|
+
required: false
|
|
1864
|
+
},
|
|
1865
|
+
asChild: {
|
|
1866
|
+
type: Boolean,
|
|
1867
|
+
required: false
|
|
1868
|
+
},
|
|
1869
|
+
as: {
|
|
1870
|
+
type: null,
|
|
1871
|
+
required: false,
|
|
1872
|
+
default: "button"
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
setup(__props) {
|
|
1876
|
+
const props = __props;
|
|
1877
|
+
const { forwardRef, currentElement } = require_useForwardExpose.useForwardExpose();
|
|
1878
|
+
const rootContext = injectComboboxRootContext();
|
|
1879
|
+
const disabled = (0, vue.computed)(() => props.disabled || rootContext.disabled.value || false);
|
|
1880
|
+
(0, vue.onMounted)(() => {
|
|
1881
|
+
if (currentElement.value) rootContext.onTriggerElementChange(currentElement.value);
|
|
1882
|
+
});
|
|
1883
|
+
return (_ctx, _cache) => {
|
|
1884
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_VisuallyHidden.Primitive), (0, vue.mergeProps)(props, {
|
|
1885
|
+
ref: (0, vue.unref)(forwardRef),
|
|
1886
|
+
type: _ctx.as === "button" ? "button" : void 0,
|
|
1887
|
+
tabindex: "-1",
|
|
1888
|
+
"aria-label": "Show popup",
|
|
1889
|
+
"aria-haspopup": "listbox",
|
|
1890
|
+
"aria-expanded": (0, vue.unref)(rootContext).open.value,
|
|
1891
|
+
"aria-controls": (0, vue.unref)(rootContext).contentId,
|
|
1892
|
+
"data-state": (0, vue.unref)(rootContext).open.value ? "open" : "closed",
|
|
1893
|
+
disabled: disabled.value,
|
|
1894
|
+
"data-disabled": disabled.value ? "" : void 0,
|
|
1895
|
+
"aria-disabled": disabled.value ?? void 0,
|
|
1896
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(rootContext).onOpenChange(!(0, vue.unref)(rootContext).open.value))
|
|
1897
|
+
}), {
|
|
1898
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1899
|
+
_: 3
|
|
1900
|
+
}, 16, [
|
|
1901
|
+
"type",
|
|
1902
|
+
"aria-expanded",
|
|
1903
|
+
"aria-controls",
|
|
1904
|
+
"data-state",
|
|
1905
|
+
"disabled",
|
|
1906
|
+
"data-disabled",
|
|
1907
|
+
"aria-disabled"
|
|
1908
|
+
]);
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
});
|
|
1912
|
+
//#endregion
|
|
1913
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useNonce.js
|
|
1914
|
+
function useNonce(nonce) {
|
|
1915
|
+
const context = require_VisuallyHidden.injectConfigProviderContext({ nonce: (0, vue.ref)() });
|
|
1916
|
+
return (0, vue.computed)(() => nonce?.value || context.nonce?.value);
|
|
1917
|
+
}
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js
|
|
1920
|
+
var ComboboxViewport_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1921
|
+
__name: "ComboboxViewport",
|
|
1922
|
+
props: {
|
|
1923
|
+
nonce: {
|
|
1924
|
+
type: String,
|
|
1925
|
+
required: false
|
|
1926
|
+
},
|
|
1927
|
+
asChild: {
|
|
1928
|
+
type: Boolean,
|
|
1929
|
+
required: false
|
|
1930
|
+
},
|
|
1931
|
+
as: {
|
|
1932
|
+
type: null,
|
|
1933
|
+
required: false
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
setup(__props) {
|
|
1937
|
+
const props = __props;
|
|
1938
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
1939
|
+
const { nonce: propNonce } = (0, vue.toRefs)(props);
|
|
1940
|
+
const nonce = useNonce(propNonce);
|
|
1941
|
+
const rootContext = injectComboboxRootContext();
|
|
1942
|
+
return (_ctx, _cache) => {
|
|
1943
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [(0, vue.createVNode)((0, vue.unref)(require_VisuallyHidden.Primitive), (0, vue.mergeProps)({
|
|
1944
|
+
..._ctx.$attrs,
|
|
1945
|
+
...props
|
|
1946
|
+
}, {
|
|
1947
|
+
ref: (0, vue.unref)(forwardRef),
|
|
1948
|
+
"data-reka-combobox-viewport": "",
|
|
1949
|
+
role: "presentation",
|
|
1950
|
+
style: {
|
|
1951
|
+
position: "relative",
|
|
1952
|
+
flex: (0, vue.unref)(rootContext).isVirtual.value ? void 0 : 1,
|
|
1953
|
+
overflow: "auto"
|
|
1954
|
+
}
|
|
1955
|
+
}), {
|
|
1956
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
1957
|
+
_: 3
|
|
1958
|
+
}, 16, ["style"]), (0, vue.createVNode)((0, vue.unref)(require_VisuallyHidden.Primitive), {
|
|
1959
|
+
as: "style",
|
|
1960
|
+
nonce: (0, vue.unref)(nonce)
|
|
1961
|
+
}, {
|
|
1962
|
+
default: (0, vue.withCtx)(() => _cache[0] || (_cache[0] = [(0, vue.createTextVNode)(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-combobox-viewport]::-webkit-scrollbar { display: none; } ")])),
|
|
1963
|
+
_: 1,
|
|
1964
|
+
__: [0]
|
|
1965
|
+
}, 8, ["nonce"])], 64);
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
});
|
|
1969
|
+
//#endregion
|
|
1970
|
+
//#region src/components/BAutocomplete/BAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
1971
|
+
var _hoisted_1 = { key: 0 };
|
|
1972
|
+
var _hoisted_2 = [
|
|
1973
|
+
"id",
|
|
1974
|
+
"disabled",
|
|
1975
|
+
"form",
|
|
1976
|
+
"placeholder",
|
|
1977
|
+
"readonly",
|
|
1978
|
+
"required",
|
|
1979
|
+
"autocomplete",
|
|
1980
|
+
"aria-invalid",
|
|
1981
|
+
"aria-required"
|
|
1982
|
+
];
|
|
1983
|
+
//#endregion
|
|
1984
|
+
//#region src/components/BAutocomplete/BAutocomplete.vue
|
|
1985
|
+
var BAutocomplete_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1986
|
+
__name: "BAutocomplete",
|
|
1987
|
+
props: /* @__PURE__ */ (0, vue.mergeModels)({
|
|
1988
|
+
ariaInvalid: {
|
|
1989
|
+
type: [Boolean, String],
|
|
1990
|
+
default: void 0
|
|
1991
|
+
},
|
|
1992
|
+
autocomplete: { default: void 0 },
|
|
1993
|
+
autofocus: {
|
|
1994
|
+
type: Boolean,
|
|
1995
|
+
default: false
|
|
1996
|
+
},
|
|
1997
|
+
by: {
|
|
1998
|
+
type: [String, Function],
|
|
1999
|
+
default: void 0
|
|
2000
|
+
},
|
|
2001
|
+
dir: { default: void 0 },
|
|
2002
|
+
disabled: {
|
|
2003
|
+
type: Boolean,
|
|
2004
|
+
default: false
|
|
2005
|
+
},
|
|
2006
|
+
disabledField: { default: "disabled" },
|
|
2007
|
+
filterFunction: {
|
|
2008
|
+
type: Function,
|
|
2009
|
+
default: void 0
|
|
2010
|
+
},
|
|
2011
|
+
form: { default: void 0 },
|
|
2012
|
+
formatter: {
|
|
2013
|
+
type: Function,
|
|
2014
|
+
default: void 0
|
|
2015
|
+
},
|
|
2016
|
+
id: { default: void 0 },
|
|
2017
|
+
lazyFormatter: {
|
|
2018
|
+
type: Boolean,
|
|
2019
|
+
default: false
|
|
2020
|
+
},
|
|
2021
|
+
multiple: {
|
|
2022
|
+
type: Boolean,
|
|
2023
|
+
default: false
|
|
2024
|
+
},
|
|
2025
|
+
name: { default: void 0 },
|
|
2026
|
+
noToggle: {
|
|
2027
|
+
type: Boolean,
|
|
2028
|
+
default: false
|
|
2029
|
+
},
|
|
2030
|
+
open: { type: Boolean },
|
|
2031
|
+
openOnFocus: {
|
|
2032
|
+
type: Boolean,
|
|
2033
|
+
default: false
|
|
2034
|
+
},
|
|
2035
|
+
options: { default: () => [] },
|
|
2036
|
+
placeholder: { default: void 0 },
|
|
2037
|
+
plaintext: {
|
|
2038
|
+
type: Boolean,
|
|
2039
|
+
default: false
|
|
2040
|
+
},
|
|
2041
|
+
readonly: {
|
|
2042
|
+
type: Boolean,
|
|
2043
|
+
default: false
|
|
2044
|
+
},
|
|
2045
|
+
required: {
|
|
2046
|
+
type: Boolean,
|
|
2047
|
+
default: false
|
|
2048
|
+
},
|
|
2049
|
+
resetSearchTermOnBlur: {
|
|
2050
|
+
type: Boolean,
|
|
2051
|
+
default: true
|
|
2052
|
+
},
|
|
2053
|
+
resetSearchTermOnSelect: {
|
|
2054
|
+
type: Boolean,
|
|
2055
|
+
default: true
|
|
2056
|
+
},
|
|
2057
|
+
size: { default: void 0 },
|
|
2058
|
+
state: {
|
|
2059
|
+
type: [Boolean, null],
|
|
2060
|
+
default: void 0
|
|
2061
|
+
},
|
|
2062
|
+
tags: {
|
|
2063
|
+
type: Boolean,
|
|
2064
|
+
default: false
|
|
2065
|
+
},
|
|
2066
|
+
teleportTo: { default: void 0 },
|
|
2067
|
+
textField: { default: "text" },
|
|
2068
|
+
valueField: { default: "value" }
|
|
2069
|
+
}, {
|
|
2070
|
+
"modelValue": { default: void 0 },
|
|
2071
|
+
"modelModifiers": {},
|
|
2072
|
+
"open": {
|
|
2073
|
+
type: Boolean,
|
|
2074
|
+
default: false
|
|
2075
|
+
},
|
|
2076
|
+
"openModifiers": {},
|
|
2077
|
+
"search": { default: "" },
|
|
2078
|
+
"searchModifiers": {}
|
|
2079
|
+
}),
|
|
2080
|
+
emits: /* @__PURE__ */ (0, vue.mergeModels)(["blur", "focus"], [
|
|
2081
|
+
"update:modelValue",
|
|
2082
|
+
"update:open",
|
|
2083
|
+
"update:search"
|
|
2084
|
+
]),
|
|
2085
|
+
setup(__props, { emit: __emit }) {
|
|
2086
|
+
const props = require_useDefaults.useDefaults(__props, "BAutocomplete");
|
|
2087
|
+
const emit = __emit;
|
|
2088
|
+
const modelValue = (0, vue.useModel)(__props, "modelValue");
|
|
2089
|
+
const isOpen = (0, vue.useModel)(__props, "open");
|
|
2090
|
+
const searchTerm = (0, vue.useModel)(__props, "search");
|
|
2091
|
+
const pendingDelete = (0, vue.ref)(false);
|
|
2092
|
+
const computedId = require_useId.useId(() => props.id);
|
|
2093
|
+
const stateClass = require_useStateClass.useStateClass(() => props.state ?? null);
|
|
2094
|
+
const computedAriaInvalid = require_useAriaInvalid.useAriaInvalid(() => props.ariaInvalid, () => props.state ?? null);
|
|
2095
|
+
const inputClasses = (0, vue.computed)(() => [stateClass.value, {
|
|
2096
|
+
"form-control": !props.plaintext,
|
|
2097
|
+
"form-control-plaintext": props.plaintext,
|
|
2098
|
+
[`form-control-${props.size}`]: !!props.size
|
|
2099
|
+
}]);
|
|
2100
|
+
const { normalizedOptions } = require_useFormSelect.useFormSelect(() => props.options, props);
|
|
2101
|
+
const findOptionText = (val) => {
|
|
2102
|
+
const match = normalizedOptions.value.find((opt) => {
|
|
2103
|
+
if (props.by && typeof props.by === "string") return opt.value?.[props.by] === val?.[props.by];
|
|
2104
|
+
return opt.value === val;
|
|
2105
|
+
});
|
|
2106
|
+
return match ? String(match.text) : String(val);
|
|
2107
|
+
};
|
|
2108
|
+
const filteredOptions = (0, vue.computed)(() => {
|
|
2109
|
+
const filterText = searchTerm.value;
|
|
2110
|
+
if (props.filterFunction) return props.filterFunction(normalizedOptions.value, filterText);
|
|
2111
|
+
if (!filterText) return normalizedOptions.value;
|
|
2112
|
+
const term = filterText.toLowerCase();
|
|
2113
|
+
return normalizedOptions.value.filter((opt) => String(opt.text).toLowerCase().includes(term));
|
|
2114
|
+
});
|
|
2115
|
+
const displayValueFn = (val) => {
|
|
2116
|
+
if (val === null || val === void 0) return "";
|
|
2117
|
+
if (props.multiple) return "";
|
|
2118
|
+
return findOptionText(val);
|
|
2119
|
+
};
|
|
2120
|
+
const hasSelection = (0, vue.computed)(() => {
|
|
2121
|
+
if (!modelValue.value) return false;
|
|
2122
|
+
return Array.isArray(modelValue.value) ? modelValue.value.length > 0 : true;
|
|
2123
|
+
});
|
|
2124
|
+
const selectedOptions = (0, vue.computed)(() => {
|
|
2125
|
+
if (!props.multiple || !modelValue.value) return [];
|
|
2126
|
+
return (Array.isArray(modelValue.value) ? modelValue.value : [modelValue.value]).map((val) => normalizedOptions.value.find((opt) => {
|
|
2127
|
+
if (props.by && typeof props.by === "string") return opt.value?.[props.by] === val?.[props.by];
|
|
2128
|
+
return opt.value === val;
|
|
2129
|
+
})).filter((opt) => !!opt);
|
|
2130
|
+
});
|
|
2131
|
+
const removeSelected = (option) => {
|
|
2132
|
+
if (!Array.isArray(modelValue.value)) return;
|
|
2133
|
+
modelValue.value = modelValue.value.filter((val) => {
|
|
2134
|
+
if (props.by && typeof props.by === "string") return val?.[props.by] !== option.value?.[props.by];
|
|
2135
|
+
return val !== option.value;
|
|
2136
|
+
});
|
|
2137
|
+
};
|
|
2138
|
+
const optionKey = (option, index) => {
|
|
2139
|
+
const val = option.value;
|
|
2140
|
+
if (val !== null && val !== void 0 && typeof val !== "object") return String(val);
|
|
2141
|
+
return index;
|
|
2142
|
+
};
|
|
2143
|
+
const isLastSelectedOption = (_opt, index) => {
|
|
2144
|
+
return index === selectedOptions.value.length - 1;
|
|
2145
|
+
};
|
|
2146
|
+
const resetPendingDelete = () => {
|
|
2147
|
+
pendingDelete.value = false;
|
|
2148
|
+
};
|
|
2149
|
+
const onInputKeydown = (event) => {
|
|
2150
|
+
if (!props.multiple || !hasSelection.value) {
|
|
2151
|
+
resetPendingDelete();
|
|
2152
|
+
return;
|
|
2153
|
+
}
|
|
2154
|
+
if (event.key === "Backspace" && searchTerm.value === "") {
|
|
2155
|
+
if (pendingDelete.value) {
|
|
2156
|
+
const lastOpt = selectedOptions.value[selectedOptions.value.length - 1];
|
|
2157
|
+
if (lastOpt) removeSelected(lastOpt);
|
|
2158
|
+
pendingDelete.value = false;
|
|
2159
|
+
} else pendingDelete.value = true;
|
|
2160
|
+
return;
|
|
2161
|
+
}
|
|
2162
|
+
if (pendingDelete.value) resetPendingDelete();
|
|
2163
|
+
};
|
|
2164
|
+
return (_ctx, _cache) => {
|
|
2165
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ComboboxRoot_default), {
|
|
2166
|
+
modelValue: modelValue.value,
|
|
2167
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => modelValue.value = $event),
|
|
2168
|
+
open: isOpen.value,
|
|
2169
|
+
"onUpdate:open": _cache[4] || (_cache[4] = ($event) => isOpen.value = $event),
|
|
2170
|
+
multiple: (0, vue.unref)(props).multiple,
|
|
2171
|
+
disabled: (0, vue.unref)(props).disabled,
|
|
2172
|
+
name: (0, vue.unref)(props).name,
|
|
2173
|
+
required: (0, vue.unref)(props).required,
|
|
2174
|
+
"ignore-filter": (0, vue.unref)(props).multiple || !!(0, vue.unref)(props).filterFunction,
|
|
2175
|
+
"reset-search-term-on-select": (0, vue.unref)(props).resetSearchTermOnSelect,
|
|
2176
|
+
"reset-search-term-on-blur": (0, vue.unref)(props).resetSearchTermOnBlur,
|
|
2177
|
+
by: (0, vue.unref)(props).by,
|
|
2178
|
+
dir: (0, vue.unref)(props).dir,
|
|
2179
|
+
"open-on-focus": (0, vue.unref)(props).openOnFocus,
|
|
2180
|
+
class: "b-autocomplete"
|
|
2181
|
+
}, {
|
|
2182
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(ComboboxAnchor_default), { "as-child": "" }, {
|
|
2183
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(require_BInputGroup.BInputGroup_default, { size: (0, vue.unref)(props).size }, {
|
|
2184
|
+
append: (0, vue.withCtx)(() => [!(0, vue.unref)(props).noToggle ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ComboboxTrigger_default), {
|
|
2185
|
+
key: 0,
|
|
2186
|
+
"as-child": "",
|
|
2187
|
+
disabled: (0, vue.unref)(props).disabled
|
|
2188
|
+
}, {
|
|
2189
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(require_BButton.BButton_default, {
|
|
2190
|
+
class: "b-autocomplete-trigger",
|
|
2191
|
+
disabled: (0, vue.unref)(props).disabled
|
|
2192
|
+
}, {
|
|
2193
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "toggle-icon", { isOpen: isOpen.value }, () => [((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", {
|
|
2194
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2195
|
+
width: "16",
|
|
2196
|
+
height: "16",
|
|
2197
|
+
fill: "currentColor",
|
|
2198
|
+
viewBox: "0 0 16 16",
|
|
2199
|
+
class: (0, vue.normalizeClass)(["b-autocomplete-chevron", { "b-autocomplete-chevron-open": isOpen.value }])
|
|
2200
|
+
}, [..._cache[5] || (_cache[5] = [(0, vue.createElementVNode)("path", {
|
|
2201
|
+
"fill-rule": "evenodd",
|
|
2202
|
+
d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
|
|
2203
|
+
}, null, -1)])], 2))])]),
|
|
2204
|
+
_: 3
|
|
2205
|
+
}, 8, ["disabled"])]),
|
|
2206
|
+
_: 3
|
|
2207
|
+
}, 8, ["disabled"])) : (0, vue.createCommentVNode)("", true)]),
|
|
2208
|
+
default: (0, vue.withCtx)(() => [(0, vue.unref)(props).multiple && hasSelection.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
2209
|
+
key: 0,
|
|
2210
|
+
class: (0, vue.normalizeClass)(["b-autocomplete-selection", {
|
|
2211
|
+
"b-autocomplete-selection-tags": (0, vue.unref)(props).tags,
|
|
2212
|
+
"b-autocomplete-selection-pending-delete": pendingDelete.value
|
|
2213
|
+
}])
|
|
2214
|
+
}, [(0, vue.unref)(props).tags ? (0, vue.renderSlot)(_ctx.$slots, "tags", {
|
|
2215
|
+
key: 0,
|
|
2216
|
+
pendingDelete: pendingDelete.value,
|
|
2217
|
+
selected: selectedOptions.value,
|
|
2218
|
+
remove: removeSelected
|
|
2219
|
+
}, () => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(selectedOptions.value, (opt, i) => {
|
|
2220
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(require_BFormTag.BFormTag_default, {
|
|
2221
|
+
key: optionKey(opt, i),
|
|
2222
|
+
title: String(opt.text),
|
|
2223
|
+
disabled: (0, vue.unref)(props).disabled,
|
|
2224
|
+
variant: "secondary",
|
|
2225
|
+
class: (0, vue.normalizeClass)({
|
|
2226
|
+
"b-autocomplete-tag-muted": pendingDelete.value && !isLastSelectedOption(opt, i),
|
|
2227
|
+
"b-autocomplete-tag-pending-delete": pendingDelete.value && isLastSelectedOption(opt, i)
|
|
2228
|
+
}),
|
|
2229
|
+
onRemove: ($event) => removeSelected(opt)
|
|
2230
|
+
}, {
|
|
2231
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(opt.text), 1)]),
|
|
2232
|
+
_: 2
|
|
2233
|
+
}, 1032, [
|
|
2234
|
+
"title",
|
|
2235
|
+
"disabled",
|
|
2236
|
+
"class",
|
|
2237
|
+
"onRemove"
|
|
2238
|
+
]);
|
|
2239
|
+
}), 128))]) : ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, (0, vue.renderList)(selectedOptions.value, (opt, i) => {
|
|
2240
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
2241
|
+
key: optionKey(opt, i),
|
|
2242
|
+
class: (0, vue.normalizeClass)({ "text-body-tertiary": pendingDelete.value && !isLastSelectedOption(opt, i) })
|
|
2243
|
+
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)(opt.text), 1), i < selectedOptions.value.length - 1 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1, ",\xA0")) : (0, vue.createCommentVNode)("", true)], 2);
|
|
2244
|
+
}), 128))], 2)) : (0, vue.createCommentVNode)("", true), (0, vue.createVNode)((0, vue.unref)(ComboboxInput_default), {
|
|
2245
|
+
modelValue: searchTerm.value,
|
|
2246
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchTerm.value = $event),
|
|
2247
|
+
"as-child": "",
|
|
2248
|
+
"display-value": displayValueFn
|
|
2249
|
+
}, {
|
|
2250
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("input", {
|
|
2251
|
+
id: (0, vue.unref)(computedId),
|
|
2252
|
+
class: (0, vue.normalizeClass)(inputClasses.value),
|
|
2253
|
+
disabled: (0, vue.unref)(props).disabled,
|
|
2254
|
+
form: (0, vue.unref)(props).form || void 0,
|
|
2255
|
+
placeholder: (0, vue.unref)(props).placeholder,
|
|
2256
|
+
readonly: (0, vue.unref)(props).readonly || (0, vue.unref)(props).plaintext,
|
|
2257
|
+
required: (0, vue.unref)(props).required || void 0,
|
|
2258
|
+
autocomplete: (0, vue.unref)(props).autocomplete || void 0,
|
|
2259
|
+
"aria-invalid": (0, vue.unref)(computedAriaInvalid),
|
|
2260
|
+
"aria-required": (0, vue.unref)(props).required || void 0,
|
|
2261
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => emit("blur", $event)),
|
|
2262
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => emit("focus", $event)),
|
|
2263
|
+
onKeydownPassive: onInputKeydown
|
|
2264
|
+
}, null, 42, _hoisted_2)]),
|
|
2265
|
+
_: 1
|
|
2266
|
+
}, 8, ["modelValue"])]),
|
|
2267
|
+
_: 3
|
|
2268
|
+
}, 8, ["size"])]),
|
|
2269
|
+
_: 3
|
|
2270
|
+
}), (0, vue.createVNode)((0, vue.unref)(ComboboxPortal_default), {
|
|
2271
|
+
disabled: !(0, vue.unref)(props).teleportTo,
|
|
2272
|
+
to: (0, vue.unref)(props).teleportTo
|
|
2273
|
+
}, {
|
|
2274
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(ComboboxContent_default), {
|
|
2275
|
+
position: "popper",
|
|
2276
|
+
"side-offset": 4,
|
|
2277
|
+
align: "start",
|
|
2278
|
+
class: (0, vue.normalizeClass)([
|
|
2279
|
+
"b-autocomplete-content",
|
|
2280
|
+
"dropdown-menu",
|
|
2281
|
+
"show"
|
|
2282
|
+
]),
|
|
2283
|
+
"body-lock": false,
|
|
2284
|
+
style: { width: "var(--reka-combobox-trigger-width)" }
|
|
2285
|
+
}, {
|
|
2286
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(ComboboxViewport_default), { class: "b-autocomplete-viewport" }, {
|
|
2287
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(ComboboxEmpty_default), { class: "b-autocomplete-empty" }, {
|
|
2288
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "empty", {}, () => [_cache[6] || (_cache[6] = (0, vue.createTextVNode)(" No results found ", -1))])]),
|
|
2289
|
+
_: 3
|
|
2290
|
+
}), ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(filteredOptions.value, (option, index) => {
|
|
2291
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ComboboxItem_default), {
|
|
2292
|
+
key: optionKey(option, index),
|
|
2293
|
+
value: option.value,
|
|
2294
|
+
disabled: option.disabled,
|
|
2295
|
+
class: (0, vue.normalizeClass)(["b-autocomplete-item", "dropdown-item"])
|
|
2296
|
+
}, {
|
|
2297
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "option", (0, vue.mergeProps)({ ref_for: true }, option), () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(option.text), 1)]), (0, vue.createVNode)((0, vue.unref)(ComboboxItemIndicator_default), { class: "b-autocomplete-item-indicator" }, {
|
|
2298
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "option-indicator", {}, () => [_cache[7] || (_cache[7] = (0, vue.createElementVNode)("svg", {
|
|
2299
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2300
|
+
width: "16",
|
|
2301
|
+
height: "16",
|
|
2302
|
+
fill: "currentColor",
|
|
2303
|
+
viewBox: "0 0 16 16"
|
|
2304
|
+
}, [(0, vue.createElementVNode)("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })], -1))])]),
|
|
2305
|
+
_: 3
|
|
2306
|
+
})]),
|
|
2307
|
+
_: 2
|
|
2308
|
+
}, 1032, ["value", "disabled"]);
|
|
2309
|
+
}), 128))]),
|
|
2310
|
+
_: 3
|
|
2311
|
+
})]),
|
|
2312
|
+
_: 3
|
|
2313
|
+
})]),
|
|
2314
|
+
_: 3
|
|
2315
|
+
}, 8, ["disabled", "to"])]),
|
|
2316
|
+
_: 3
|
|
2317
|
+
}, 8, [
|
|
2318
|
+
"modelValue",
|
|
2319
|
+
"open",
|
|
2320
|
+
"multiple",
|
|
2321
|
+
"disabled",
|
|
2322
|
+
"name",
|
|
2323
|
+
"required",
|
|
2324
|
+
"ignore-filter",
|
|
2325
|
+
"reset-search-term-on-select",
|
|
2326
|
+
"reset-search-term-on-blur",
|
|
2327
|
+
"by",
|
|
2328
|
+
"dir",
|
|
2329
|
+
"open-on-focus"
|
|
2330
|
+
]);
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
});
|
|
2334
|
+
//#endregion
|
|
2335
|
+
Object.defineProperty(exports, "BAutocomplete_default", {
|
|
2336
|
+
enumerable: true,
|
|
2337
|
+
get: function() {
|
|
2338
|
+
return BAutocomplete_default;
|
|
2339
|
+
}
|
|
2340
|
+
});
|
|
2341
|
+
|
|
2342
|
+
//# sourceMappingURL=BAutocomplete-C7Odx4At.js.map
|