bootstrap-vue-next 0.45.9 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.d.mts +2 -1
- package/dist/App.vue.d.ts +2 -1
- package/dist/{BAccordion-D51b9HVD.mjs → BAccordion-FuQ6sMFy.js} +33 -31
- package/dist/BAccordion-FuQ6sMFy.js.map +1 -0
- package/dist/{BAlert-Ce2uxrJi.mjs → BAlert-C9Mi4RDx.js} +20 -13
- package/dist/BAlert-C9Mi4RDx.js.map +1 -0
- package/dist/{BApp-B-fUrnpK.mjs → BApp-GXR1wS6K.js} +53 -51
- package/dist/BApp-GXR1wS6K.js.map +1 -0
- package/dist/{BAspect-wfiXM4KA.mjs → BAspect-BPR6DH5W.js} +2 -2
- package/dist/{BAspect-CUIU48Ck.js.map → BAspect-BPR6DH5W.js.map} +1 -1
- package/dist/{BAutocomplete-CH-bQzME.mjs → BAutocomplete-DGvKY7-D.js} +195 -101
- package/dist/BAutocomplete-DGvKY7-D.js.map +1 -0
- package/dist/{BAvatar-iALHbqVk.mjs → BAvatar-BsStQrBF.js} +13 -13
- package/dist/BAvatar-BsStQrBF.js.map +1 -0
- package/dist/{BBadge-Cx_CdauK.mjs → BBadge-BaZ13wE_.js} +5 -5
- package/dist/{BBadge-Db6SEnzy.js.map → BBadge-BaZ13wE_.js.map} +1 -1
- package/dist/{BBreadcrumb-BxADbg0O.mjs → BBreadcrumb-C-SsS3hM.js} +4 -4
- package/dist/{BBreadcrumb-B9ra7vg2.js.map → BBreadcrumb-C-SsS3hM.js.map} +1 -1
- package/dist/{BButton-BSa7LfL5.mjs → BButton-Cc2gd95Z.js} +5 -7
- package/dist/{BButton-DRRlzkyK.js.map → BButton-Cc2gd95Z.js.map} +1 -1
- package/dist/{BButton-PY7AANXJ.mjs → BButton-KZu5jczf.js} +9 -9
- package/dist/{BButton-aYtMnyHu.js.map → BButton-KZu5jczf.js.map} +1 -1
- package/dist/{BCard-BWoruisp.mjs → BCard-D2GEiXan.js} +2 -3
- package/dist/{BCard-Bh8RLMo_.js.map → BCard-D2GEiXan.js.map} +1 -1
- package/dist/{BCard-CHbKv2OR.mjs → BCard-nRj1JWtQ.js} +9 -9
- package/dist/{BCard-DwNYhVmg.js.map → BCard-nRj1JWtQ.js.map} +1 -1
- package/dist/{BCarousel-B6_bgQpl.mjs → BCarousel-DQgfW4DN.js} +11 -10
- package/dist/{BCarousel-2JB21Pcu.js.map → BCarousel-DQgfW4DN.js.map} +1 -1
- package/dist/{BCloseButton-CKTKr4PS.mjs → BCloseButton-B3-IdpNp.js} +2 -2
- package/dist/{BCloseButton-D42zHRLP.js.map → BCloseButton-B3-IdpNp.js.map} +1 -1
- package/dist/{BCol-B3VeEk9z.mjs → BCol-DiZFbqU5.js} +3 -3
- package/dist/{BCol-Ck9VydHj.js.map → BCol-DiZFbqU5.js.map} +1 -1
- package/dist/{BCollapse-kqhe4AmL.mjs → BCollapse-B9fnWSzA.js} +15 -9
- package/dist/BCollapse-B9fnWSzA.js.map +1 -0
- package/dist/{BContainer-ATfhaxTc.mjs → BContainer-D-bZVPwa.js} +2 -4
- package/dist/{BContainer-CcF6dgtI.js.map → BContainer-D-bZVPwa.js.map} +1 -1
- package/dist/{BDateField-CccP3H1R.mjs → BDateField-Bj-Jz7u4.js} +27 -22
- package/dist/BDateField-Bj-Jz7u4.js.map +1 -0
- package/dist/{BDatePicker-BnwnSkBg.mjs → BDatePicker-AVTYcVLy.js} +232 -148
- package/dist/BDatePicker-AVTYcVLy.js.map +1 -0
- package/dist/{BDropdown-B1DbvVzm.mjs → BDropdown-CnxUzs42.js} +55 -46
- package/dist/BDropdown-CnxUzs42.js.map +1 -0
- package/dist/{BDropdown-0E8x5kk6.mjs → BDropdown-D4VSJJxu.js} +5 -6
- package/dist/{BDropdown-DKCgBzYS.js.map → BDropdown-D4VSJJxu.js.map} +1 -1
- package/dist/{BForm-BVfW08s5.mjs → BForm-BOoX6AAr.js} +2 -2
- package/dist/{BForm-cnRpggt9.js.map → BForm-BOoX6AAr.js.map} +1 -1
- package/dist/{BForm-DJu2hDV_.mjs → BForm-C5PR2ust.js} +7 -8
- package/dist/{BForm-6JlWdQMO.js.map → BForm-C5PR2ust.js.map} +1 -1
- package/dist/{BFormCheckbox-Baf_9BSc.mjs → BFormCheckbox-BMhyR-J5.js} +12 -13
- package/dist/BFormCheckbox-BMhyR-J5.js.map +1 -0
- package/dist/{BFormFile-CZebm0Cp.mjs → BFormFile-BVrDprWL.js} +8 -8
- package/dist/{BFormFile-MISLntyJ.js.map → BFormFile-BVrDprWL.js.map} +1 -1
- package/dist/{BFormGroup-vysRPb99.mjs → BFormGroup-BE5tGz_g.js} +40 -24
- package/dist/BFormGroup-BE5tGz_g.js.map +1 -0
- package/dist/{BFormInput-sEfU3CuN.mjs → BFormInput-BwvdFGDu.js} +5 -5
- package/dist/{BFormInput-CBwwDjfC.js.map → BFormInput-BwvdFGDu.js.map} +1 -1
- package/dist/{BFormOtp-C8X3u1od.mjs → BFormOtp-I1t8dqPS.js} +63 -22
- package/dist/BFormOtp-I1t8dqPS.js.map +1 -0
- package/dist/{BFormRadio-COc_IbxC.mjs → BFormRadio-DRViMh6V.js} +24 -13
- package/dist/BFormRadio-DRViMh6V.js.map +1 -0
- package/dist/{BFormRating-CIgPVsH_.mjs → BFormRating-AEiF8K8T.js} +23 -17
- package/dist/BFormRating-AEiF8K8T.js.map +1 -0
- package/dist/{BFormSelect-P-InkOm-.mjs → BFormSelect-DdjH8482.js} +23 -12
- package/dist/BFormSelect-DdjH8482.js.map +1 -0
- package/dist/{BFormSelectOption-DFN4lPRh.mjs → BFormSelectOption-C8orMj24.js} +3 -3
- package/dist/{BFormSelectOption-DrwJucNf.js.map → BFormSelectOption-C8orMj24.js.map} +1 -1
- package/dist/{BFormSpinbutton-6qkTBF_4.mjs → BFormSpinbutton-Bt590uT6.js} +10 -9
- package/dist/{BFormSpinbutton-1gTz4nTo.js.map → BFormSpinbutton-Bt590uT6.js.map} +1 -1
- package/dist/{BFormTag-CnzI39y9.mjs → BFormTag-DGSUfz7A.js} +5 -5
- package/dist/{BFormTag-CeV0MSRC.js.map → BFormTag-DGSUfz7A.js.map} +1 -1
- package/dist/{BFormTags-BMltSaKL.mjs → BFormTags-CUcyRTCK.js} +23 -27
- package/dist/BFormTags-CUcyRTCK.js.map +1 -0
- package/dist/{BFormTextarea-DN1gAfSo.mjs → BFormTextarea-DlDe26DL.js} +6 -6
- package/dist/{BFormTextarea-C3Cj0DWj.js.map → BFormTextarea-DlDe26DL.js.map} +1 -1
- package/dist/{BFormValidFeedback-CBYxQLDz.mjs → BFormValidFeedback-ClqLRxtH.js} +4 -4
- package/dist/{BFormValidFeedback-Kwxh798d.js.map → BFormValidFeedback-ClqLRxtH.js.map} +1 -1
- package/dist/{BImg-QBS2ECBc.mjs → BImg-knz2UZQE.js} +5 -5
- package/dist/{BImg-JKJLgYYT.js.map → BImg-knz2UZQE.js.map} +1 -1
- package/dist/{BInputGroup-DiTSexkT.mjs → BInputGroup-Bjh7zXyI.js} +2 -3
- package/dist/{BInputGroup-D4fW324B.js.map → BInputGroup-Bjh7zXyI.js.map} +1 -1
- package/dist/{BInputGroup-X2Z53RJx.mjs → BInputGroup-DdoeSICR.js} +3 -3
- package/dist/{BInputGroup-Bvlfv6VD.js.map → BInputGroup-DdoeSICR.js.map} +1 -1
- package/dist/{BLink-Dfgte6dQ.mjs → BLink-mdwZsC7b.js} +5 -5
- package/dist/{BLink-kLEjleB1.js.map → BLink-mdwZsC7b.js.map} +1 -1
- package/dist/{BListGroup-DwTLpNiD.mjs → BListGroup-CQedMbI8.js} +4 -4
- package/dist/{BListGroup-C8JOzHTz.js.map → BListGroup-CQedMbI8.js.map} +1 -1
- package/dist/{BModal-C-ZCau2E.mjs → BModal-NPsCBNo7.js} +25 -18
- package/dist/BModal-NPsCBNo7.js.map +1 -0
- package/dist/{BNav-DfYvjfRK.mjs → BNav-CjXS9tQ5.js} +9 -9
- package/dist/{BNav-DCLambmM.js.map → BNav-CjXS9tQ5.js.map} +1 -1
- package/dist/{BNavbar-xYaikQVY.mjs → BNavbar-DRqkdxTk.js} +12 -9
- package/dist/{BNavbar-BLWaZJRP.js.map → BNavbar-DRqkdxTk.js.map} +1 -1
- package/dist/{BOffcanvas-CF-dWeez.mjs → BOffcanvas-BndaBJoP.js} +22 -16
- package/dist/BOffcanvas-BndaBJoP.js.map +1 -0
- package/dist/{BOverlay-Bh2PIN_q.mjs → BOverlay-CJfy_f6O.js} +6 -6
- package/dist/{BOverlay-Bh4ldxgt.js.map → BOverlay-CJfy_f6O.js.map} +1 -1
- package/dist/{BPagination-D75q-ZNg.mjs → BPagination-D_Hfk6OF.js} +29 -27
- package/dist/{BPagination-fbjFAtxu.js.map → BPagination-D_Hfk6OF.js.map} +1 -1
- package/dist/{BPlaceholder-DPQ6mCLN.mjs → BPlaceholder-DvOCnqDh.js} +11 -11
- package/dist/{BPlaceholder-B3rs_39w.js.map → BPlaceholder-DvOCnqDh.js.map} +1 -1
- package/dist/{BProgress-BZlrPYhA.mjs → BProgress-BNxYppi-.js} +5 -5
- package/dist/{BProgress-th0-eZWo.js.map → BProgress-BNxYppi-.js.map} +1 -1
- package/dist/{BRow-eGSUYGCW.mjs → BRow-CoBI89xF.js} +4 -4
- package/dist/{BRow-7AOuFiSy.js.map → BRow-CoBI89xF.js.map} +1 -1
- package/dist/{BSpinner-CUfGqviV.mjs → BSpinner-H1DZOmiM.js} +4 -4
- package/dist/{BSpinner-DbYIp-C7.js.map → BSpinner-H1DZOmiM.js.map} +1 -1
- package/dist/{BTable-DUHxxWv5.mjs → BTable-BZxX17YU.js} +40 -33
- package/dist/BTable-BZxX17YU.js.map +1 -0
- package/dist/{BTableSimple-C-jn9Nwh.mjs → BTableSimple-2Z7ssnuG.js} +5 -5
- package/dist/{BTableSimple-BkdGAAKb.js.map → BTableSimple-2Z7ssnuG.js.map} +1 -1
- package/dist/{BTabs-D_vWlBjT.mjs → BTabs-BVcu9DPg.js} +19 -17
- package/dist/{BTabs-CvecFg5N.js.map → BTabs-BVcu9DPg.js.map} +1 -1
- package/dist/{BTimeField-BSDaZogC.mjs → BTimeField-CbRGjaI6.js} +24 -19
- package/dist/BTimeField-CbRGjaI6.js.map +1 -0
- package/dist/{BToast-Y8BayxES.mjs → BToast-Di9HwBOV.js} +21 -14
- package/dist/BToast-Di9HwBOV.js.map +1 -0
- package/dist/{BTooltip-CVP8HdkU.mjs → BTooltip-BxaUtV4m.js} +5 -5
- package/dist/{BTooltip-DPLYtaL1.js.map → BTooltip-BxaUtV4m.js.map} +1 -1
- package/dist/{BootstrapVueOptions-Dt1TQdih.mjs → BootstrapVueOptions-DH79gHKG.js} +1 -4
- package/dist/BootstrapVueOptions-DH79gHKG.js.map +1 -0
- package/dist/{ConditionalTeleport-B4KYZIM6.mjs → ConditionalTeleport-BCKPLEun.js} +1 -1
- package/dist/{ConditionalTeleport-BDWcebyD.js.map → ConditionalTeleport-BCKPLEun.js.map} +1 -1
- package/dist/{ConditionalWrapper-Dbc_O6qe.mjs → ConditionalWrapper-CCIk52zt.js} +1 -1
- package/dist/{ConditionalWrapper-DZH_VSwb.js.map → ConditionalWrapper-CCIk52zt.js.map} +1 -1
- package/dist/{DateRangeFieldInput-B86VEz0H.mjs → DateRangeFieldInput-Cbzjg8iF.js} +45 -22
- package/dist/DateRangeFieldInput-Cbzjg8iF.js.map +1 -0
- package/dist/{PopperContent-DmSgsjSC.mjs → PopperContent-C9eeL6LH.js} +395 -100
- package/dist/PopperContent-C9eeL6LH.js.map +1 -0
- package/dist/{VisuallyHidden-C4sXnc-k.mjs → VisuallyHidden-BYzyjJiY.js} +23 -15
- package/dist/VisuallyHidden-BYzyjJiY.js.map +1 -0
- package/dist/{VisuallyHiddenInput-DKIzxsQR.mjs → VisuallyHiddenInput-CUrc8XXa.js} +46 -7
- package/dist/VisuallyHiddenInput-CUrc8XXa.js.map +1 -0
- package/dist/bootstrap-vue-next.mjs +65 -65
- package/dist/{classes-B0E5Y78Y.mjs → classes-BEWWGbj5.js} +1 -1
- package/dist/{classes-D5wrmmVs.js.map → classes-BEWWGbj5.js.map} +1 -1
- package/dist/components/BAccordion/BAccordion.vue.d.mts +9 -13
- package/dist/components/BAccordion/BAccordion.vue.d.ts +9 -13
- package/dist/components/BAccordion/BAccordionItem.vue.d.mts +16 -24
- package/dist/components/BAccordion/BAccordionItem.vue.d.ts +16 -24
- package/dist/components/BAlert/BAlert.vue.d.mts +26 -34
- package/dist/components/BAlert/BAlert.vue.d.ts +26 -34
- package/dist/components/BApp/BApp.vue.d.mts +8 -12
- package/dist/components/BApp/BApp.vue.d.ts +8 -12
- package/dist/components/BApp/BOrchestrator.vue.d.mts +2 -1
- package/dist/components/BApp/BOrchestrator.vue.d.ts +2 -1
- package/dist/components/BAspect/BAspect.vue.d.mts +5 -10
- package/dist/components/BAspect/BAspect.vue.d.ts +5 -10
- package/dist/components/BAutocomplete/BAutocomplete.vue.d.mts +12 -270
- package/dist/components/BAutocomplete/BAutocomplete.vue.d.ts +12 -270
- package/dist/components/BAvatar/BAvatar.vue.d.mts +20 -25
- package/dist/components/BAvatar/BAvatar.vue.d.ts +20 -25
- package/dist/components/BAvatar/BAvatarGroup.vue.d.mts +8 -13
- package/dist/components/BAvatar/BAvatarGroup.vue.d.ts +8 -13
- package/dist/components/BBadge/BBadge.vue.d.mts +13 -18
- package/dist/components/BBadge/BBadge.vue.d.ts +13 -18
- package/dist/components/BBreadcrumb/BBreadcrumb.vue.d.mts +6 -11
- package/dist/components/BBreadcrumb/BBreadcrumb.vue.d.ts +6 -11
- package/dist/components/BBreadcrumb/BBreadcrumbItem.vue.d.mts +13 -18
- package/dist/components/BBreadcrumb/BBreadcrumbItem.vue.d.ts +13 -18
- package/dist/components/BButton/BButton.vue.d.mts +17 -25
- package/dist/components/BButton/BButton.vue.d.ts +17 -25
- package/dist/components/BButton/BButtonGroup.vue.d.mts +5 -10
- package/dist/components/BButton/BButtonGroup.vue.d.ts +5 -10
- package/dist/components/BButton/BButtonToolbar.vue.d.mts +7 -16
- package/dist/components/BButton/BButtonToolbar.vue.d.ts +7 -16
- package/dist/components/BButton/BCloseButton.vue.d.mts +4 -3
- package/dist/components/BButton/BCloseButton.vue.d.ts +4 -3
- package/dist/components/BCard/BCard.vue.d.mts +21 -26
- package/dist/components/BCard/BCard.vue.d.ts +21 -26
- package/dist/components/BCard/BCardBody.vue.d.mts +9 -14
- package/dist/components/BCard/BCardBody.vue.d.ts +9 -14
- package/dist/components/BCard/BCardFooter.vue.d.mts +7 -11
- package/dist/components/BCard/BCardFooter.vue.d.ts +7 -11
- package/dist/components/BCard/BCardGroup.vue.d.mts +5 -10
- package/dist/components/BCard/BCardGroup.vue.d.ts +5 -10
- package/dist/components/BCard/BCardHeader.vue.d.mts +7 -12
- package/dist/components/BCard/BCardHeader.vue.d.ts +7 -12
- package/dist/components/BCard/BCardImg.vue.d.mts +7 -6
- package/dist/components/BCard/BCardImg.vue.d.ts +7 -6
- package/dist/components/BCard/BCardSubtitle.vue.d.mts +6 -11
- package/dist/components/BCard/BCardSubtitle.vue.d.ts +6 -11
- package/dist/components/BCard/BCardText.vue.d.mts +5 -10
- package/dist/components/BCard/BCardText.vue.d.ts +5 -10
- package/dist/components/BCard/BCardTitle.vue.d.mts +5 -10
- package/dist/components/BCard/BCardTitle.vue.d.ts +5 -10
- package/dist/components/BCardHeadFoot.vue.d.mts +6 -11
- package/dist/components/BCardHeadFoot.vue.d.ts +6 -11
- package/dist/components/BCarousel/BCarousel.vue.d.mts +12 -24
- package/dist/components/BCarousel/BCarousel.vue.d.ts +12 -24
- package/dist/components/BCarousel/BCarouselSlide.vue.d.mts +7 -12
- package/dist/components/BCarousel/BCarouselSlide.vue.d.ts +7 -12
- package/dist/components/BCollapse/BCollapse.vue.d.mts +13 -21
- package/dist/components/BCollapse/BCollapse.vue.d.ts +13 -21
- package/dist/components/BContainer/BCol.vue.d.mts +8 -13
- package/dist/components/BContainer/BCol.vue.d.ts +8 -13
- package/dist/components/BContainer/BContainer.vue.d.mts +5 -10
- package/dist/components/BContainer/BContainer.vue.d.ts +5 -10
- package/dist/components/BContainer/BRow.vue.d.mts +6 -11
- package/dist/components/BContainer/BRow.vue.d.ts +6 -11
- package/dist/components/BDateField/BDateField.vue.d.mts +8 -12
- package/dist/components/BDateField/BDateField.vue.d.ts +8 -12
- package/dist/components/BDateField/BDateRangeField.vue.d.mts +8 -12
- package/dist/components/BDateField/BDateRangeField.vue.d.ts +8 -12
- package/dist/components/BDateField/BTimeRangeField.vue.d.mts +9 -13
- package/dist/components/BDateField/BTimeRangeField.vue.d.ts +9 -13
- package/dist/components/BDatePicker/BDatePicker.vue.d.mts +9 -13
- package/dist/components/BDatePicker/BDatePicker.vue.d.ts +9 -13
- package/dist/components/BDatePicker/BDateRangePicker.vue.d.mts +9 -13
- package/dist/components/BDatePicker/BDateRangePicker.vue.d.ts +9 -13
- package/dist/components/BDropdown/BDropdown.vue.d.mts +24 -957
- package/dist/components/BDropdown/BDropdown.vue.d.ts +24 -957
- package/dist/components/BDropdown/BDropdownDivider.vue.d.mts +3 -2
- package/dist/components/BDropdown/BDropdownDivider.vue.d.ts +3 -2
- package/dist/components/BDropdown/BDropdownForm.vue.d.mts +6 -11
- package/dist/components/BDropdown/BDropdownForm.vue.d.ts +6 -11
- package/dist/components/BDropdown/BDropdownGroup.vue.d.mts +5 -10
- package/dist/components/BDropdown/BDropdownGroup.vue.d.ts +5 -10
- package/dist/components/BDropdown/BDropdownHeader.vue.d.mts +7 -12
- package/dist/components/BDropdown/BDropdownHeader.vue.d.ts +7 -12
- package/dist/components/BDropdown/BDropdownItem.vue.d.mts +12 -17
- package/dist/components/BDropdown/BDropdownItem.vue.d.ts +12 -17
- package/dist/components/BDropdown/BDropdownItemButton.vue.d.mts +6 -11
- package/dist/components/BDropdown/BDropdownItemButton.vue.d.ts +6 -11
- package/dist/components/BDropdown/BDropdownText.vue.d.mts +6 -11
- package/dist/components/BDropdown/BDropdownText.vue.d.ts +6 -11
- package/dist/components/BForm/BForm.vue.d.mts +8 -17
- package/dist/components/BForm/BForm.vue.d.ts +8 -17
- package/dist/components/BForm/BFormDatalist.vue.d.mts +12 -7
- package/dist/components/BForm/BFormDatalist.vue.d.ts +12 -7
- package/dist/components/BForm/BFormDatalistBase.vue.d.mts +20 -22
- package/dist/components/BForm/BFormDatalistBase.vue.d.ts +20 -22
- package/dist/components/BForm/BFormFloatingLabel.vue.d.mts +6 -11
- package/dist/components/BForm/BFormFloatingLabel.vue.d.ts +6 -11
- package/dist/components/BForm/BFormInvalidFeedback.vue.d.mts +6 -11
- package/dist/components/BForm/BFormInvalidFeedback.vue.d.ts +6 -11
- package/dist/components/BForm/BFormRow.vue.d.mts +5 -10
- package/dist/components/BForm/BFormRow.vue.d.ts +5 -10
- package/dist/components/BForm/BFormText.vue.d.mts +6 -11
- package/dist/components/BForm/BFormText.vue.d.ts +6 -11
- package/dist/components/BForm/BFormValidFeedback.vue.d.mts +6 -11
- package/dist/components/BForm/BFormValidFeedback.vue.d.ts +6 -11
- package/dist/components/BFormCheckbox/BFormCheckbox.vue.d.mts +14 -22
- package/dist/components/BFormCheckbox/BFormCheckbox.vue.d.ts +14 -22
- package/dist/components/BFormCheckbox/BFormCheckboxGroup.vue.d.mts +16 -11
- package/dist/components/BFormCheckbox/BFormCheckboxGroup.vue.d.ts +16 -11
- package/dist/components/BFormCheckbox/BFormCheckboxGroupBase.vue.d.mts +22 -27
- package/dist/components/BFormCheckbox/BFormCheckboxGroupBase.vue.d.ts +22 -27
- package/dist/components/BFormFile/BFormFile.vue.d.mts +9 -25
- package/dist/components/BFormFile/BFormFile.vue.d.ts +9 -25
- package/dist/components/BFormGroup/BFormGroup.vue.d.mts +14 -23
- package/dist/components/BFormGroup/BFormGroup.vue.d.ts +14 -23
- package/dist/components/BFormGroupContent.vue.d.mts +8 -17
- package/dist/components/BFormGroupContent.vue.d.ts +8 -17
- package/dist/components/BFormGroupLabel.vue.d.mts +6 -13
- package/dist/components/BFormGroupLabel.vue.d.ts +6 -13
- package/dist/components/BFormInput/BFormInput.vue.d.mts +10 -10
- package/dist/components/BFormInput/BFormInput.vue.d.ts +10 -10
- package/dist/components/BFormOtp/BFormOtp.vue.d.mts +7 -5
- package/dist/components/BFormOtp/BFormOtp.vue.d.ts +7 -5
- package/dist/components/BFormRadio/BFormRadio.vue.d.mts +13 -21
- package/dist/components/BFormRadio/BFormRadio.vue.d.ts +13 -21
- package/dist/components/BFormRadio/BFormRadioGroup.vue.d.mts +21 -14
- package/dist/components/BFormRadio/BFormRadioGroup.vue.d.ts +21 -14
- package/dist/components/BFormRadio/BFormRadioGroupBase.vue.d.mts +14 -22
- package/dist/components/BFormRadio/BFormRadioGroupBase.vue.d.ts +14 -22
- package/dist/components/BFormRating/BFormRating.vue.d.mts +10 -12
- package/dist/components/BFormRating/BFormRating.vue.d.ts +10 -12
- package/dist/components/BFormSelect/BFormSelect.vue.d.mts +16 -11
- package/dist/components/BFormSelect/BFormSelect.vue.d.ts +16 -11
- package/dist/components/BFormSelect/BFormSelectBase.vue.d.mts +24 -29
- package/dist/components/BFormSelect/BFormSelectBase.vue.d.ts +24 -29
- package/dist/components/BFormSelect/BFormSelectOption.vue.d.mts +12 -7
- package/dist/components/BFormSelect/BFormSelectOption.vue.d.ts +12 -7
- package/dist/components/BFormSelect/BFormSelectOptionGroup.vue.d.mts +12 -7
- package/dist/components/BFormSelect/BFormSelectOptionGroup.vue.d.ts +12 -7
- package/dist/components/BFormSpinbutton/BFormSpinbutton.vue.d.mts +11 -12
- package/dist/components/BFormSpinbutton/BFormSpinbutton.vue.d.ts +11 -12
- package/dist/components/BFormTags/BFormTag.vue.d.mts +7 -12
- package/dist/components/BFormTags/BFormTag.vue.d.ts +7 -12
- package/dist/components/BFormTags/BFormTags.vue.d.mts +12 -20
- package/dist/components/BFormTags/BFormTags.vue.d.ts +12 -20
- package/dist/components/BFormTextarea/BFormTextarea.vue.d.mts +12 -12
- package/dist/components/BFormTextarea/BFormTextarea.vue.d.ts +12 -12
- package/dist/components/BImg/BImg.vue.d.mts +7 -6
- package/dist/components/BImg/BImg.vue.d.ts +7 -6
- package/dist/components/BInputGroup/BInputGroup.vue.d.mts +5 -10
- package/dist/components/BInputGroup/BInputGroup.vue.d.ts +5 -10
- package/dist/components/BInputGroup/BInputGroupText.vue.d.mts +5 -10
- package/dist/components/BInputGroup/BInputGroupText.vue.d.ts +5 -10
- package/dist/components/BLink/BLink.vue.d.mts +12 -17
- package/dist/components/BLink/BLink.vue.d.ts +12 -17
- package/dist/components/BListGroup/BListGroup.vue.d.mts +5 -10
- package/dist/components/BListGroup/BListGroup.vue.d.ts +5 -10
- package/dist/components/BListGroup/BListGroupItem.vue.d.mts +13 -18
- package/dist/components/BListGroup/BListGroupItem.vue.d.ts +13 -18
- package/dist/components/BModal/BModal.vue.d.mts +47 -1026
- package/dist/components/BModal/BModal.vue.d.ts +47 -1026
- package/dist/components/BNav/BNav.vue.d.mts +7 -12
- package/dist/components/BNav/BNav.vue.d.ts +7 -12
- package/dist/components/BNav/BNavForm.vue.d.mts +8 -13
- package/dist/components/BNav/BNavForm.vue.d.ts +8 -13
- package/dist/components/BNav/BNavItem.vue.d.mts +12 -17
- package/dist/components/BNav/BNavItem.vue.d.ts +12 -17
- package/dist/components/BNav/BNavItemDropdown.vue.d.mts +20 -1660
- package/dist/components/BNav/BNavItemDropdown.vue.d.ts +20 -1660
- package/dist/components/BNav/BNavText.vue.d.mts +6 -11
- package/dist/components/BNav/BNavText.vue.d.ts +6 -11
- package/dist/components/BNavbar/BNavbar.vue.d.mts +6 -11
- package/dist/components/BNavbar/BNavbar.vue.d.ts +6 -11
- package/dist/components/BNavbar/BNavbarBrand.vue.d.mts +11 -16
- package/dist/components/BNavbar/BNavbarBrand.vue.d.ts +11 -16
- package/dist/components/BNavbar/BNavbarNav.vue.d.mts +7 -12
- package/dist/components/BNavbar/BNavbarNav.vue.d.ts +7 -12
- package/dist/components/BNavbar/BNavbarToggle.vue.d.mts +7 -12
- package/dist/components/BNavbar/BNavbarToggle.vue.d.ts +7 -12
- package/dist/components/BOffcanvas/BOffcanvas.vue.d.mts +28 -82
- package/dist/components/BOffcanvas/BOffcanvas.vue.d.ts +28 -82
- package/dist/components/BOverlay/BOverlay.vue.d.mts +17 -22
- package/dist/components/BOverlay/BOverlay.vue.d.ts +17 -22
- package/dist/components/BPagination/BPagination.vue.d.mts +9 -10
- package/dist/components/BPagination/BPagination.vue.d.ts +9 -10
- package/dist/components/BPlaceholder/BPlaceholder.vue.d.mts +3 -2
- package/dist/components/BPlaceholder/BPlaceholder.vue.d.ts +3 -2
- package/dist/components/BPlaceholder/BPlaceholderButton.vue.d.mts +3 -2
- package/dist/components/BPlaceholder/BPlaceholderButton.vue.d.ts +3 -2
- package/dist/components/BPlaceholder/BPlaceholderCard.vue.d.mts +8 -13
- package/dist/components/BPlaceholder/BPlaceholderCard.vue.d.ts +8 -13
- package/dist/components/BPlaceholder/BPlaceholderTable.vue.d.mts +8 -13
- package/dist/components/BPlaceholder/BPlaceholderTable.vue.d.ts +8 -13
- package/dist/components/BPlaceholder/BPlaceholderWrapper.vue.d.mts +5 -10
- package/dist/components/BPlaceholder/BPlaceholderWrapper.vue.d.ts +5 -10
- package/dist/components/BPopover/BPopover.vue.d.mts +35 -49
- package/dist/components/BPopover/BPopover.vue.d.ts +35 -49
- package/dist/components/BProgress/BProgress.vue.d.mts +10 -15
- package/dist/components/BProgress/BProgress.vue.d.ts +10 -15
- package/dist/components/BProgress/BProgressBar.vue.d.mts +9 -14
- package/dist/components/BProgress/BProgressBar.vue.d.ts +9 -14
- package/dist/components/BSpinner/BSpinner.vue.d.mts +7 -12
- package/dist/components/BSpinner/BSpinner.vue.d.ts +7 -12
- package/dist/components/BTable/BTable.vue.d.mts +35 -30
- package/dist/components/BTable/BTable.vue.d.ts +35 -30
- package/dist/components/BTable/BTableLite.vue.d.mts +24 -19
- package/dist/components/BTable/BTableLite.vue.d.ts +24 -19
- package/dist/components/BTable/BTableSimple.vue.d.mts +9 -14
- package/dist/components/BTable/BTableSimple.vue.d.ts +9 -14
- package/dist/components/BTable/BTbody.vue.d.mts +6 -11
- package/dist/components/BTable/BTbody.vue.d.ts +6 -11
- package/dist/components/BTable/BTd.vue.d.mts +6 -11
- package/dist/components/BTable/BTd.vue.d.ts +6 -11
- package/dist/components/BTable/BTfoot.vue.d.mts +6 -11
- package/dist/components/BTable/BTfoot.vue.d.ts +6 -11
- package/dist/components/BTable/BTh.vue.d.mts +6 -11
- package/dist/components/BTable/BTh.vue.d.ts +6 -11
- package/dist/components/BTable/BThead.vue.d.mts +6 -11
- package/dist/components/BTable/BThead.vue.d.ts +6 -11
- package/dist/components/BTable/BTr.vue.d.mts +6 -11
- package/dist/components/BTable/BTr.vue.d.ts +6 -11
- package/dist/components/BTabs/BTab.vue.d.mts +10 -18
- package/dist/components/BTabs/BTab.vue.d.ts +10 -18
- package/dist/components/BTabs/BTabs.vue.d.mts +10 -14
- package/dist/components/BTabs/BTabs.vue.d.ts +10 -14
- package/dist/components/BTabsTabContent.vue.d.mts +7 -15
- package/dist/components/BTabsTabContent.vue.d.ts +7 -15
- package/dist/components/BTimeField/BTimeField.vue.d.mts +8 -12
- package/dist/components/BTimeField/BTimeField.vue.d.ts +8 -12
- package/dist/components/BToast/BToast.vue.d.mts +25 -33
- package/dist/components/BToast/BToast.vue.d.ts +25 -33
- package/dist/components/BTooltip/BTooltip.vue.d.mts +32 -732
- package/dist/components/BTooltip/BTooltip.vue.d.ts +32 -732
- package/dist/components/ConditionalTeleport.vue.d.mts +3 -2
- package/dist/components/ConditionalTeleport.vue.d.ts +3 -2
- package/dist/components/ConditionalWrapper.vue.d.mts +3 -2
- package/dist/components/ConditionalWrapper.vue.d.ts +3 -2
- package/dist/composables/index.d.mts +3 -3
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/orchestratorShared/index.d.mts +25 -14
- package/dist/composables/orchestratorShared/index.d.ts +25 -14
- package/dist/composables/useBLinkHelper.d.mts +1 -1
- package/dist/composables/useBLinkHelper.d.ts +1 -1
- package/dist/composables/useModal/index.d.mts +8 -33
- package/dist/composables/useModal/index.d.ts +8 -33
- package/dist/composables/usePopover/index.d.mts +332 -4532
- package/dist/composables/usePopover/index.d.ts +332 -4532
- package/dist/composables/useShowHide.d.mts +21 -15
- package/dist/composables/useShowHide.d.ts +21 -15
- package/dist/composables/useToast/index.d.mts +7 -18
- package/dist/composables/useToast/index.d.ts +7 -18
- package/dist/console-DaUCJgpk.js +15 -0
- package/dist/console-DaUCJgpk.js.map +1 -0
- package/dist/{constants-Ba9iJn2H.mjs → constants-Cap5sNf8.js} +1 -1
- package/dist/{constants-BLIvvaat.js.map → constants-Cap5sNf8.js.map} +1 -1
- package/dist/{debounce-DHxNfjan.mjs → debounce-Xj7wsAmR.js} +2 -2
- package/dist/{debounce-D6kifS6w.js.map → debounce-Xj7wsAmR.js.map} +1 -1
- package/dist/{dist-Dk9C_HFS.mjs → dist-9-XTMhb-.js} +5 -539
- package/dist/dist-9-XTMhb-.js.map +1 -0
- package/dist/dist-B-regXAP.js +123 -0
- package/dist/dist-B-regXAP.js.map +1 -0
- package/dist/dist-DKc2ivHS.js +411 -0
- package/dist/dist-DKc2ivHS.js.map +1 -0
- package/dist/{dom-AhkaSoh8.mjs → dom-BdUQrX99.js} +3 -2
- package/dist/dom-BdUQrX99.js.map +1 -0
- package/dist/{flattenFragments-ClbLQGqR.mjs → flattenFragments-B15oMVs-.js} +1 -1
- package/dist/{flattenFragments-C1WWqm25.js.map → flattenFragments-B15oMVs-.js.map} +1 -1
- package/dist/{floating-ui.vue-CH2o_mZU.mjs → floating-ui.dom-C7UZexJK.js} +114 -338
- package/dist/floating-ui.dom-C7UZexJK.js.map +1 -0
- package/dist/{floatingUi-62aeQtAb.mjs → floatingUi-BlKoACvc.js} +194 -27
- package/dist/floatingUi-BlKoACvc.js.map +1 -0
- package/dist/{functions-BcMenQqL.mjs → functions-BUZ1y9RA.js} +1 -1
- package/dist/functions-BUZ1y9RA.js.map +1 -0
- package/dist/{getClasses-COokMI60.mjs → getClasses-BlbbSJNl.js} +1 -1
- package/dist/{getClasses-8P0iBind.js.map → getClasses-BlbbSJNl.js.map} +1 -1
- package/dist/{getElement-D2Jr1cbp.mjs → getElement-uvhh1lgL.js} +2 -2
- package/dist/{getElement-DWGFJn0w.js.map → getElement-uvhh1lgL.js.map} +1 -1
- package/dist/{keys-DU7sQgl3.mjs → keys-BgLwJbLV.js} +1 -1
- package/dist/keys-BgLwJbLV.js.map +1 -0
- package/dist/{object-CHQkkner.mjs → object-C7YmCGEm.js} +10 -6
- package/dist/object-C7YmCGEm.js.map +1 -0
- package/dist/{registryAccess-BkJDdh-3.mjs → registryAccess-YFj5ZD5T.js} +1 -1
- package/dist/{registryAccess-B9QDQwV8.js.map → registryAccess-YFj5ZD5T.js.map} +1 -1
- package/dist/src/components/BAccordion/index.mjs +1 -1
- package/dist/src/components/BAlert/index.mjs +1 -1
- package/dist/src/components/BApp/index.mjs +1 -1
- package/dist/src/components/BAspect/index.mjs +1 -1
- package/dist/src/components/BAutocomplete/index.mjs +1 -1
- package/dist/src/components/BAvatar/index.mjs +1 -1
- package/dist/src/components/BBadge/index.mjs +1 -1
- package/dist/src/components/BBreadcrumb/index.mjs +1 -1
- package/dist/src/components/BButton/index.mjs +3 -3
- package/dist/src/components/BCard/index.mjs +2 -2
- package/dist/src/components/BCarousel/index.mjs +1 -1
- package/dist/src/components/BCol/index.mjs +1 -1
- package/dist/src/components/BCollapse/index.mjs +1 -1
- package/dist/src/components/BContainer/index.mjs +3 -3
- package/dist/src/components/BDateField/index.mjs +1 -1
- package/dist/src/components/BDatePicker/index.mjs +1 -1
- package/dist/src/components/BDropdown/index.mjs +2 -2
- package/dist/src/components/BForm/index.mjs +3 -3
- package/dist/src/components/BFormCheckbox/index.mjs +1 -1
- package/dist/src/components/BFormFile/index.mjs +1 -1
- package/dist/src/components/BFormGroup/index.mjs +1 -1
- package/dist/src/components/BFormInput/index.mjs +1 -1
- package/dist/src/components/BFormOtp/index.mjs +1 -1
- package/dist/src/components/BFormRadio/index.mjs +1 -1
- package/dist/src/components/BFormRating/index.mjs +1 -1
- package/dist/src/components/BFormSelect/index.mjs +2 -2
- package/dist/src/components/BFormSpinbutton/index.mjs +1 -1
- package/dist/src/components/BFormTags/index.mjs +2 -2
- package/dist/src/components/BFormTextarea/index.mjs +1 -1
- package/dist/src/components/BImg/index.mjs +1 -1
- package/dist/src/components/BInputGroup/index.mjs +2 -2
- package/dist/src/components/BLink/index.mjs +1 -1
- package/dist/src/components/BListGroup/index.mjs +1 -1
- package/dist/src/components/BModal/index.mjs +1 -1
- package/dist/src/components/BNav/index.mjs +1 -1
- package/dist/src/components/BNavbar/index.mjs +1 -1
- package/dist/src/components/BOffcanvas/index.mjs +1 -1
- package/dist/src/components/BOverlay/index.mjs +1 -1
- package/dist/src/components/BPagination/index.mjs +1 -1
- package/dist/src/components/BPlaceholder/index.mjs +1 -1
- package/dist/src/components/BPopover/index.mjs +1 -1
- package/dist/src/components/BProgress/index.mjs +1 -1
- package/dist/src/components/BRow/index.mjs +1 -1
- package/dist/src/components/BSpinner/index.mjs +1 -1
- package/dist/src/components/BTable/index.mjs +2 -2
- package/dist/src/components/BTabs/index.mjs +1 -1
- package/dist/src/components/BTimeField/index.mjs +1 -1
- package/dist/src/components/BToast/index.mjs +1 -1
- package/dist/src/components/BTooltip/index.mjs +1 -1
- package/dist/src/components/index.mjs +60 -68
- package/dist/src/composables/index.mjs +5 -8
- package/dist/src/composables/index.mjs.map +1 -1
- package/dist/src/composables/orchestratorShared/index.mjs +79 -82
- package/dist/src/composables/orchestratorShared/index.mjs.map +1 -1
- package/dist/src/composables/useBreadcrumb/index.mjs +1 -1
- package/dist/src/composables/useBreadcrumb/index.mjs.map +1 -1
- package/dist/src/composables/useColorMode/index.mjs +2 -2
- package/dist/src/composables/useColorMode/index.mjs.map +1 -1
- package/dist/src/composables/useModal/index.mjs +65 -64
- package/dist/src/composables/useModal/index.mjs.map +1 -1
- package/dist/src/composables/usePopover/index.mjs +51 -68
- package/dist/src/composables/usePopover/index.mjs.map +1 -1
- package/dist/src/composables/useProvideDefaults/index.mjs +4 -3
- package/dist/src/composables/useProvideDefaults/index.mjs.map +1 -1
- package/dist/src/composables/useRegistry/index.mjs +5 -3
- package/dist/src/composables/useRegistry/index.mjs.map +1 -1
- package/dist/src/composables/useScrollLock/index.mjs +2 -1
- package/dist/src/composables/useScrollLock/index.mjs.map +1 -1
- package/dist/src/composables/useScrollspy/index.mjs +16 -13
- package/dist/src/composables/useScrollspy/index.mjs.map +1 -1
- package/dist/src/composables/useToast/index.mjs +45 -66
- package/dist/src/composables/useToast/index.mjs.map +1 -1
- package/dist/src/composables/useToggle/index.mjs +5 -3
- package/dist/src/composables/useToggle/index.mjs.map +1 -1
- package/dist/src/directives/BColorMode/index.mjs.map +1 -1
- package/dist/src/directives/BPopover/index.mjs +2 -2
- package/dist/src/directives/BPopover/index.mjs.map +1 -1
- package/dist/src/directives/BScrollspy/index.mjs +3 -3
- package/dist/src/directives/BScrollspy/index.mjs.map +1 -1
- package/dist/src/directives/BToggle/index.mjs +8 -6
- package/dist/src/directives/BToggle/index.mjs.map +1 -1
- package/dist/src/directives/BTooltip/index.mjs +2 -2
- package/dist/src/directives/BTooltip/index.mjs.map +1 -1
- package/dist/src/directives/index.mjs +1 -2
- package/dist/src/plugins/createBootstrap/index.mjs +1 -1
- package/dist/src/plugins/createBootstrap/index.mjs.map +1 -1
- package/dist/src/plugins/index.mjs +1 -1
- package/dist/src/plugins/orchestrator/index.mjs +1 -1
- package/dist/src/plugins/orchestrator/index.mjs.map +1 -1
- package/dist/src/plugins/registry/index.mjs +1 -1
- package/dist/src/plugins/registry/index.mjs.map +1 -1
- package/dist/src/plugins/rtl/index.mjs +1 -1
- package/dist/src/plugins/rtl/index.mjs.map +1 -1
- package/dist/src/resolvers/index.mjs +2 -2
- package/dist/src/resolvers/index.mjs.map +1 -1
- package/dist/src/types/index.mjs +2 -2
- package/dist/src/utils/index.mjs +2 -2
- package/dist/{stringUtils-D4eEDlt1.mjs → stringUtils-CVySsg3y.js} +2 -2
- package/dist/{stringUtils-68ZN_GRt.js.map → stringUtils-CVySsg3y.js.map} +1 -1
- package/dist/types/BootstrapVueOptions.d.mts +1 -4
- package/dist/types/BootstrapVueOptions.d.ts +1 -4
- package/dist/types/ComponentOrchestratorTypes.d.mts +62 -186
- package/dist/types/ComponentOrchestratorTypes.d.ts +62 -186
- package/dist/types/ComponentProps.d.mts +2 -0
- package/dist/types/ComponentProps.d.ts +2 -0
- package/dist/types/ComponentSlots.d.mts +1 -1
- package/dist/types/ComponentSlots.d.ts +1 -1
- package/dist/{useAlignment-DuR8ymKI.mjs → useAlignment-DaP-psIh.js} +1 -1
- package/dist/{useAlignment-oKolnDpb.js.map → useAlignment-DaP-psIh.js.map} +1 -1
- package/dist/{useAriaInvalid-apOwgexm.mjs → useAriaInvalid-CRUhkD2V.js} +1 -1
- package/dist/{useAriaInvalid-CHHPHNLU.js.map → useAriaInvalid-CRUhkD2V.js.map} +1 -1
- package/dist/{useColorVariantClasses-CqeXHjRh.mjs → useColorVariantClasses-DHQvLjek.js} +1 -1
- package/dist/{useColorVariantClasses-Dq0sOYDL.js.map → useColorVariantClasses-DHQvLjek.js.map} +1 -1
- package/dist/{useCountdownHover-C3NXiAaF.mjs → useCountdownHover-BN8vJIQW.js} +4 -3
- package/dist/{useCountdownHover-DbVhE-N0.js.map → useCountdownHover-BN8vJIQW.js.map} +1 -1
- package/dist/{useDateField-CJKgollJ.mjs → useDateField-CQZb799C.js} +680 -627
- package/dist/useDateField-CQZb799C.js.map +1 -0
- package/dist/{useDefaults-DseelK6y.mjs → useDefaults-BzP4qZBu.js} +2 -2
- package/dist/{useDefaults-C0CYry78.js.map → useDefaults-BzP4qZBu.js.map} +1 -1
- package/dist/{useFormCheck-BKXrwS3g.mjs → useFormCheck-fArncQY5.js} +3 -3
- package/dist/{useFormCheck-DYjLG4WA.js.map → useFormCheck-fArncQY5.js.map} +1 -1
- package/dist/{useFormInput-CXl8rpD0.mjs → useFormInput-DZ_3ZH1o.js} +8 -7
- package/dist/{useFormInput-ip9hN2AU.js.map → useFormInput-DZ_3ZH1o.js.map} +1 -1
- package/dist/{useFormSelect-BM0rsjni.mjs → useFormSelect-CwS8YuiQ.js} +3 -3
- package/dist/{useFormSelect-ClmzGzOy.js.map → useFormSelect-CwS8YuiQ.js.map} +1 -1
- package/dist/{useForwardExpose-Cob6LlGd.mjs → useForwardExpose-DDvk7mir.js} +5 -13
- package/dist/useForwardExpose-DDvk7mir.js.map +1 -0
- package/dist/{useId-D1sqXtwx.mjs → useId-Fh-Arhb7.js} +2 -2
- package/dist/{useId-BkAY2oh6.js.map → useId-Fh-Arhb7.js.map} +1 -1
- package/dist/{useKbd-DfmgFov6.mjs → useKbd-DRsaFU_f.js} +6 -18
- package/dist/useKbd-DRsaFU_f.js.map +1 -0
- package/dist/{useNumberishToStyle-DgS1slD3.mjs → useNumberishToStyle-DCnYcI6A.js} +2 -2
- package/dist/{useNumberishToStyle-BtMa0R27.js.map → useNumberishToStyle-DCnYcI6A.js.map} +1 -1
- package/dist/{useRadiusElementClasses-BW832F7F.mjs → useRadiusElementClasses-CKCJjpkK.js} +1 -1
- package/dist/{useRadiusElementClasses-DWiUVgex.js.map → useRadiusElementClasses-CKCJjpkK.js.map} +1 -1
- package/dist/{useRtl-CGoXBxNo.mjs → useRtl-FeLayV4k.js} +3 -3
- package/dist/{useRtl-BSgvbs5F.js.map → useRtl-FeLayV4k.js.map} +1 -1
- package/dist/{useSafeScrollLock-Me5LyqjD.mjs → useSafeScrollLock-PVgSASYu.js} +136 -216
- package/dist/useSafeScrollLock-PVgSASYu.js.map +1 -0
- package/dist/{useShowHide-CBFt1_EW.mjs → useShowHide-C95Y9EKL.js} +15 -14
- package/dist/useShowHide-C95Y9EKL.js.map +1 -0
- package/dist/{useStateClass-DxlL_m2E.mjs → useStateClass-BF7kf2zK.js} +1 -1
- package/dist/{useStateClass-CXK3nCg9.js.map → useStateClass-BF7kf2zK.js.map} +1 -1
- package/dist/utils/console.d.mts +2 -0
- package/dist/utils/console.d.ts +2 -0
- package/dist/utils/keys.d.mts +12 -4
- package/dist/utils/keys.d.ts +12 -4
- package/dist/{utils-CWvndqPg.mjs → utils-nRGGHA_i.js} +14 -10
- package/dist/utils-nRGGHA_i.js.map +1 -0
- package/package.json +65 -136
- package/dist/BAccordion-D51b9HVD.mjs.map +0 -1
- package/dist/BAccordion-DYmuqZIG.js +0 -360
- package/dist/BAccordion-DYmuqZIG.js.map +0 -1
- package/dist/BAlert-Ce2uxrJi.mjs.map +0 -1
- package/dist/BAlert-croEtrQu.js +0 -297
- package/dist/BAlert-croEtrQu.js.map +0 -1
- package/dist/BApp-B-fUrnpK.mjs.map +0 -1
- package/dist/BApp-DOvEe1jo.js +0 -181
- package/dist/BApp-DOvEe1jo.js.map +0 -1
- package/dist/BAspect-CUIU48Ck.js +0 -50
- package/dist/BAspect-wfiXM4KA.mjs.map +0 -1
- package/dist/BAutocomplete-CH-bQzME.mjs.map +0 -1
- package/dist/BAutocomplete-DLDFAV5_.js +0 -2402
- package/dist/BAutocomplete-DLDFAV5_.js.map +0 -1
- package/dist/BAvatar-FGK0dK0x.js +0 -386
- package/dist/BAvatar-FGK0dK0x.js.map +0 -1
- package/dist/BAvatar-iALHbqVk.mjs.map +0 -1
- package/dist/BBadge-Cx_CdauK.mjs.map +0 -1
- package/dist/BBadge-Db6SEnzy.js +0 -145
- package/dist/BBreadcrumb-B9ra7vg2.js +0 -166
- package/dist/BBreadcrumb-BxADbg0O.mjs.map +0 -1
- package/dist/BButton-BSa7LfL5.mjs.map +0 -1
- package/dist/BButton-DRRlzkyK.js +0 -156
- package/dist/BButton-PY7AANXJ.mjs.map +0 -1
- package/dist/BButton-aYtMnyHu.js +0 -190
- package/dist/BCard-BWoruisp.mjs.map +0 -1
- package/dist/BCard-Bh8RLMo_.js +0 -52
- package/dist/BCard-CHbKv2OR.mjs.map +0 -1
- package/dist/BCard-DwNYhVmg.js +0 -444
- package/dist/BCarousel-2JB21Pcu.js +0 -427
- package/dist/BCarousel-B6_bgQpl.mjs.map +0 -1
- package/dist/BCloseButton-CKTKr4PS.mjs.map +0 -1
- package/dist/BCloseButton-D42zHRLP.js +0 -45
- package/dist/BCol-B3VeEk9z.mjs.map +0 -1
- package/dist/BCol-Ck9VydHj.js +0 -140
- package/dist/BCollapse-CDLYLSZo.js +0 -183
- package/dist/BCollapse-CDLYLSZo.js.map +0 -1
- package/dist/BCollapse-kqhe4AmL.mjs.map +0 -1
- package/dist/BContainer-ATfhaxTc.mjs.map +0 -1
- package/dist/BContainer-CcF6dgtI.js +0 -44
- package/dist/BDateField-CccP3H1R.mjs.map +0 -1
- package/dist/BDateField-DzZw5FRX.js +0 -919
- package/dist/BDateField-DzZw5FRX.js.map +0 -1
- package/dist/BDatePicker-BDkzkOcm.js +0 -5138
- package/dist/BDatePicker-BDkzkOcm.js.map +0 -1
- package/dist/BDatePicker-BnwnSkBg.mjs.map +0 -1
- package/dist/BDropdown-0E8x5kk6.mjs.map +0 -1
- package/dist/BDropdown-B1DbvVzm.mjs.map +0 -1
- package/dist/BDropdown-BPFtkX3p.js +0 -403
- package/dist/BDropdown-BPFtkX3p.js.map +0 -1
- package/dist/BDropdown-DKCgBzYS.js +0 -415
- package/dist/BForm-6JlWdQMO.js +0 -126
- package/dist/BForm-BVfW08s5.mjs.map +0 -1
- package/dist/BForm-DJu2hDV_.mjs.map +0 -1
- package/dist/BForm-cnRpggt9.js +0 -51
- package/dist/BFormCheckbox-Baf_9BSc.mjs.map +0 -1
- package/dist/BFormCheckbox-D5ySHMJ8.js +0 -489
- package/dist/BFormCheckbox-D5ySHMJ8.js.map +0 -1
- package/dist/BFormFile-CZebm0Cp.mjs.map +0 -1
- package/dist/BFormFile-MISLntyJ.js +0 -423
- package/dist/BFormGroup-Bk1t-D1N.js +0 -490
- package/dist/BFormGroup-Bk1t-D1N.js.map +0 -1
- package/dist/BFormGroup-vysRPb99.mjs.map +0 -1
- package/dist/BFormInput-CBwwDjfC.js +0 -142
- package/dist/BFormInput-sEfU3CuN.mjs.map +0 -1
- package/dist/BFormOtp-C8X3u1od.mjs.map +0 -1
- package/dist/BFormOtp-CLrQJRPe.js +0 -542
- package/dist/BFormOtp-CLrQJRPe.js.map +0 -1
- package/dist/BFormRadio-B2yu-o2v.js +0 -432
- package/dist/BFormRadio-B2yu-o2v.js.map +0 -1
- package/dist/BFormRadio-COc_IbxC.mjs.map +0 -1
- package/dist/BFormRating-CIgPVsH_.mjs.map +0 -1
- package/dist/BFormRating-CSdRxN5z.js +0 -263
- package/dist/BFormRating-CSdRxN5z.js.map +0 -1
- package/dist/BFormSelect-CI92Dv27.js +0 -310
- package/dist/BFormSelect-CI92Dv27.js.map +0 -1
- package/dist/BFormSelect-P-InkOm-.mjs.map +0 -1
- package/dist/BFormSelectOption-DFN4lPRh.mjs.map +0 -1
- package/dist/BFormSelectOption-DrwJucNf.js +0 -46
- package/dist/BFormSpinbutton-1gTz4nTo.js +0 -447
- package/dist/BFormSpinbutton-6qkTBF_4.mjs.map +0 -1
- package/dist/BFormTag-CeV0MSRC.js +0 -86
- package/dist/BFormTag-CnzI39y9.mjs.map +0 -1
- package/dist/BFormTags-BMltSaKL.mjs.map +0 -1
- package/dist/BFormTags-BhO60uiL.js +0 -427
- package/dist/BFormTags-BhO60uiL.js.map +0 -1
- package/dist/BFormTextarea-C3Cj0DWj.js +0 -203
- package/dist/BFormTextarea-DN1gAfSo.mjs.map +0 -1
- package/dist/BFormValidFeedback-CBYxQLDz.mjs.map +0 -1
- package/dist/BFormValidFeedback-Kwxh798d.js +0 -223
- package/dist/BImg-JKJLgYYT.js +0 -168
- package/dist/BImg-QBS2ECBc.mjs.map +0 -1
- package/dist/BInputGroup-Bvlfv6VD.js +0 -55
- package/dist/BInputGroup-D4fW324B.js +0 -31
- package/dist/BInputGroup-DiTSexkT.mjs.map +0 -1
- package/dist/BInputGroup-X2Z53RJx.mjs.map +0 -1
- package/dist/BLink-Dfgte6dQ.mjs.map +0 -1
- package/dist/BLink-kLEjleB1.js +0 -276
- package/dist/BListGroup-C8JOzHTz.js +0 -167
- package/dist/BListGroup-DwTLpNiD.mjs.map +0 -1
- package/dist/BModal-C-ZCau2E.mjs.map +0 -1
- package/dist/BModal-VstTwEq9.js +0 -521
- package/dist/BModal-VstTwEq9.js.map +0 -1
- package/dist/BNav-DCLambmM.js +0 -453
- package/dist/BNav-DfYvjfRK.mjs.map +0 -1
- package/dist/BNavbar-BLWaZJRP.js +0 -245
- package/dist/BNavbar-xYaikQVY.mjs.map +0 -1
- package/dist/BOffcanvas-C7HenFW0.js +0 -331
- package/dist/BOffcanvas-C7HenFW0.js.map +0 -1
- package/dist/BOffcanvas-CF-dWeez.mjs.map +0 -1
- package/dist/BOverlay-Bh2PIN_q.mjs.map +0 -1
- package/dist/BOverlay-Bh4ldxgt.js +0 -203
- package/dist/BPagination-D75q-ZNg.mjs.map +0 -1
- package/dist/BPagination-fbjFAtxu.js +0 -446
- package/dist/BPlaceholder-B3rs_39w.js +0 -326
- package/dist/BPlaceholder-DPQ6mCLN.mjs.map +0 -1
- package/dist/BProgress-BZlrPYhA.mjs.map +0 -1
- package/dist/BProgress-th0-eZWo.js +0 -147
- package/dist/BRow-7AOuFiSy.js +0 -70
- package/dist/BRow-eGSUYGCW.mjs.map +0 -1
- package/dist/BSpinner-CUfGqviV.mjs.map +0 -1
- package/dist/BSpinner-DbYIp-C7.js +0 -60
- package/dist/BTable-BCWW00u_.js +0 -1903
- package/dist/BTable-BCWW00u_.js.map +0 -1
- package/dist/BTable-DUHxxWv5.mjs.map +0 -1
- package/dist/BTableSimple-BkdGAAKb.js +0 -137
- package/dist/BTableSimple-C-jn9Nwh.mjs.map +0 -1
- package/dist/BTabs-CvecFg5N.js +0 -607
- package/dist/BTabs-D_vWlBjT.mjs.map +0 -1
- package/dist/BTimeField-BSDaZogC.mjs.map +0 -1
- package/dist/BTimeField-BT5HXecp.js +0 -517
- package/dist/BTimeField-BT5HXecp.js.map +0 -1
- package/dist/BToast-DR0pek4W.js +0 -308
- package/dist/BToast-DR0pek4W.js.map +0 -1
- package/dist/BToast-Y8BayxES.mjs.map +0 -1
- package/dist/BTooltip-CVP8HdkU.mjs.map +0 -1
- package/dist/BTooltip-DPLYtaL1.js +0 -213
- package/dist/BootstrapVueOptions-DeViqxoD.js +0 -179
- package/dist/BootstrapVueOptions-DeViqxoD.js.map +0 -1
- package/dist/BootstrapVueOptions-Dt1TQdih.mjs.map +0 -1
- package/dist/ConditionalTeleport-B4KYZIM6.mjs.map +0 -1
- package/dist/ConditionalTeleport-BDWcebyD.js +0 -34
- package/dist/ConditionalWrapper-DZH_VSwb.js +0 -31
- package/dist/ConditionalWrapper-Dbc_O6qe.mjs.map +0 -1
- package/dist/DateRangeFieldInput-B86VEz0H.mjs.map +0 -1
- package/dist/DateRangeFieldInput-HvvI2You.js +0 -762
- package/dist/DateRangeFieldInput-HvvI2You.js.map +0 -1
- package/dist/PopperContent-BS_eKjzD.js +0 -1515
- package/dist/PopperContent-BS_eKjzD.js.map +0 -1
- package/dist/PopperContent-DmSgsjSC.mjs.map +0 -1
- package/dist/VisuallyHidden-C4sXnc-k.mjs.map +0 -1
- package/dist/VisuallyHidden-Cx0phlXT.js +0 -222
- package/dist/VisuallyHidden-Cx0phlXT.js.map +0 -1
- package/dist/VisuallyHiddenInput-BNrInt6d.js +0 -147
- package/dist/VisuallyHiddenInput-BNrInt6d.js.map +0 -1
- package/dist/VisuallyHiddenInput-DKIzxsQR.mjs.map +0 -1
- package/dist/bootstrap-vue-next.umd.js +0 -275
- package/dist/chunk-CoQrYLCe.js +0 -50
- package/dist/classes-B0E5Y78Y.mjs.map +0 -1
- package/dist/classes-D5wrmmVs.js +0 -92
- package/dist/constants-BLIvvaat.js +0 -123
- package/dist/constants-Ba9iJn2H.mjs.map +0 -1
- package/dist/debounce-D6kifS6w.js +0 -88
- package/dist/debounce-DHxNfjan.mjs.map +0 -1
- package/dist/dist-DiXKLh_W.js +0 -2064
- package/dist/dist-DiXKLh_W.js.map +0 -1
- package/dist/dist-Dk9C_HFS.mjs.map +0 -1
- package/dist/dom-AhkaSoh8.mjs.map +0 -1
- package/dist/dom-Bs6DzM72.js +0 -98
- package/dist/dom-Bs6DzM72.js.map +0 -1
- package/dist/flattenFragments-C1WWqm25.js +0 -18
- package/dist/flattenFragments-ClbLQGqR.mjs.map +0 -1
- package/dist/floating-ui.vue-CH2o_mZU.mjs.map +0 -1
- package/dist/floating-ui.vue-DDOIU2nS.js +0 -1773
- package/dist/floating-ui.vue-DDOIU2nS.js.map +0 -1
- package/dist/floatingUi-62aeQtAb.mjs.map +0 -1
- package/dist/floatingUi-DQ5bHmy3.js +0 -598
- package/dist/floatingUi-DQ5bHmy3.js.map +0 -1
- package/dist/functions-BcMenQqL.mjs.map +0 -1
- package/dist/functions-Bx1HDqMv.js +0 -11
- package/dist/functions-Bx1HDqMv.js.map +0 -1
- package/dist/getClasses-8P0iBind.js +0 -19
- package/dist/getClasses-COokMI60.mjs.map +0 -1
- package/dist/getElement-D2Jr1cbp.mjs.map +0 -1
- package/dist/getElement-DWGFJn0w.js +0 -19
- package/dist/keys-BMye8nSf.js +0 -187
- package/dist/keys-BMye8nSf.js.map +0 -1
- package/dist/keys-DU7sQgl3.mjs.map +0 -1
- package/dist/object-BN7QwMcz.js +0 -140
- package/dist/object-BN7QwMcz.js.map +0 -1
- package/dist/object-CHQkkner.mjs.map +0 -1
- package/dist/registryAccess-B9QDQwV8.js +0 -39
- package/dist/registryAccess-BkJDdh-3.mjs.map +0 -1
- package/dist/src/components/BAccordion/index.umd.js +0 -4
- package/dist/src/components/BAlert/index.umd.js +0 -3
- package/dist/src/components/BApp/index.umd.js +0 -4
- package/dist/src/components/BAspect/index.umd.js +0 -3
- package/dist/src/components/BAutocomplete/index.umd.js +0 -3
- package/dist/src/components/BAvatar/index.umd.js +0 -4
- package/dist/src/components/BBadge/index.umd.js +0 -3
- package/dist/src/components/BBreadcrumb/index.umd.js +0 -4
- package/dist/src/components/BButton/index.umd.js +0 -8
- package/dist/src/components/BCard/index.umd.js +0 -12
- package/dist/src/components/BCarousel/index.umd.js +0 -4
- package/dist/src/components/BCol/index.umd.js +0 -3
- package/dist/src/components/BCollapse/index.umd.js +0 -3
- package/dist/src/components/BContainer/index.umd.js +0 -7
- package/dist/src/components/BDateField/index.umd.js +0 -5
- package/dist/src/components/BDatePicker/index.umd.js +0 -4
- package/dist/src/components/BDropdown/index.umd.js +0 -11
- package/dist/src/components/BForm/index.umd.js +0 -11
- package/dist/src/components/BFormCheckbox/index.umd.js +0 -4
- package/dist/src/components/BFormFile/index.umd.js +0 -3
- package/dist/src/components/BFormGroup/index.umd.js +0 -3
- package/dist/src/components/BFormInput/index.umd.js +0 -4
- package/dist/src/components/BFormOtp/index.umd.js +0 -3
- package/dist/src/components/BFormRadio/index.umd.js +0 -4
- package/dist/src/components/BFormRating/index.umd.js +0 -3
- package/dist/src/components/BFormSelect/index.umd.js +0 -6
- package/dist/src/components/BFormSpinbutton/index.umd.js +0 -3
- package/dist/src/components/BFormTags/index.umd.js +0 -5
- package/dist/src/components/BFormTextarea/index.umd.js +0 -3
- package/dist/src/components/BImg/index.umd.js +0 -3
- package/dist/src/components/BInputGroup/index.umd.js +0 -5
- package/dist/src/components/BLink/index.umd.js +0 -3
- package/dist/src/components/BListGroup/index.umd.js +0 -4
- package/dist/src/components/BModal/index.umd.js +0 -3
- package/dist/src/components/BNav/index.umd.js +0 -7
- package/dist/src/components/BNavbar/index.umd.js +0 -6
- package/dist/src/components/BOffcanvas/index.umd.js +0 -3
- package/dist/src/components/BOverlay/index.umd.js +0 -3
- package/dist/src/components/BPagination/index.umd.js +0 -3
- package/dist/src/components/BPlaceholder/index.umd.js +0 -7
- package/dist/src/components/BPopover/index.umd.js +0 -3
- package/dist/src/components/BProgress/index.umd.js +0 -4
- package/dist/src/components/BRow/index.umd.js +0 -3
- package/dist/src/components/BSpinner/index.umd.js +0 -3
- package/dist/src/components/BTable/index.umd.js +0 -12
- package/dist/src/components/BTabs/index.umd.js +0 -4
- package/dist/src/components/BTimeField/index.umd.js +0 -3
- package/dist/src/components/BToast/index.umd.js +0 -3
- package/dist/src/components/BTooltip/index.umd.js +0 -3
- package/dist/src/components/index.umd.js +0 -301
- package/dist/src/components/index.umd.js.map +0 -1
- package/dist/src/composables/index.umd.js +0 -53
- package/dist/src/composables/index.umd.js.map +0 -1
- package/dist/src/composables/orchestratorShared/index.umd.js +0 -114
- package/dist/src/composables/orchestratorShared/index.umd.js.map +0 -1
- package/dist/src/composables/useBreadcrumb/index.umd.js +0 -37
- package/dist/src/composables/useBreadcrumb/index.umd.js.map +0 -1
- package/dist/src/composables/useColorMode/index.umd.js +0 -18
- package/dist/src/composables/useColorMode/index.umd.js.map +0 -1
- package/dist/src/composables/useModal/index.umd.js +0 -176
- package/dist/src/composables/useModal/index.umd.js.map +0 -1
- package/dist/src/composables/usePopover/index.umd.js +0 -90
- package/dist/src/composables/usePopover/index.umd.js.map +0 -1
- package/dist/src/composables/useProvideDefaults/index.umd.js +0 -42
- package/dist/src/composables/useProvideDefaults/index.umd.js.map +0 -1
- package/dist/src/composables/useRegistry/index.umd.js +0 -135
- package/dist/src/composables/useRegistry/index.umd.js.map +0 -1
- package/dist/src/composables/useScrollLock/index.umd.js +0 -8
- package/dist/src/composables/useScrollLock/index.umd.js.map +0 -1
- package/dist/src/composables/useScrollspy/index.umd.js +0 -144
- package/dist/src/composables/useScrollspy/index.umd.js.map +0 -1
- package/dist/src/composables/useToast/index.umd.js +0 -90
- package/dist/src/composables/useToast/index.umd.js.map +0 -1
- package/dist/src/composables/useToggle/index.umd.js +0 -34
- package/dist/src/composables/useToggle/index.umd.js.map +0 -1
- package/dist/src/directives/BColorMode/index.umd.js +0 -15
- package/dist/src/directives/BColorMode/index.umd.js.map +0 -1
- package/dist/src/directives/BModal/index.umd.js +0 -3
- package/dist/src/directives/BPopover/index.umd.js +0 -14
- package/dist/src/directives/BPopover/index.umd.js.map +0 -1
- package/dist/src/directives/BScrollspy/index.umd.js +0 -35
- package/dist/src/directives/BScrollspy/index.umd.js.map +0 -1
- package/dist/src/directives/BToggle/index.umd.js +0 -77
- package/dist/src/directives/BToggle/index.umd.js.map +0 -1
- package/dist/src/directives/BTooltip/index.umd.js +0 -16
- package/dist/src/directives/BTooltip/index.umd.js.map +0 -1
- package/dist/src/directives/index.umd.js +0 -32
- package/dist/src/directives/index.umd.js.map +0 -1
- package/dist/src/plugins/createBootstrap/index.umd.js +0 -19
- package/dist/src/plugins/createBootstrap/index.umd.js.map +0 -1
- package/dist/src/plugins/index.umd.js +0 -26
- package/dist/src/plugins/index.umd.js.map +0 -1
- package/dist/src/plugins/orchestrator/index.umd.js +0 -13
- package/dist/src/plugins/orchestrator/index.umd.js.map +0 -1
- package/dist/src/plugins/registry/index.umd.js +0 -62
- package/dist/src/plugins/registry/index.umd.js.map +0 -1
- package/dist/src/plugins/rtl/index.umd.js +0 -21
- package/dist/src/plugins/rtl/index.umd.js.map +0 -1
- package/dist/src/resolvers/index.umd.js +0 -94
- package/dist/src/resolvers/index.umd.js.map +0 -1
- package/dist/src/types/index.umd.js +0 -27
- package/dist/src/types/index.umd.js.map +0 -1
- package/dist/src/utils/index.umd.js +0 -21
- package/dist/src/utils/index.umd.js.map +0 -1
- package/dist/stringUtils-68ZN_GRt.js +0 -71
- package/dist/stringUtils-D4eEDlt1.mjs.map +0 -1
- package/dist/useAlignment-DuR8ymKI.mjs.map +0 -1
- package/dist/useAlignment-oKolnDpb.js +0 -16
- package/dist/useAriaInvalid-CHHPHNLU.js +0 -17
- package/dist/useAriaInvalid-apOwgexm.mjs.map +0 -1
- package/dist/useColorVariantClasses-CqeXHjRh.mjs.map +0 -1
- package/dist/useColorVariantClasses-Dq0sOYDL.js +0 -27
- package/dist/useCountdownHover-C3NXiAaF.mjs.map +0 -1
- package/dist/useCountdownHover-DbVhE-N0.js +0 -104
- package/dist/useDateField-CJKgollJ.mjs.map +0 -1
- package/dist/useDateField-DWv3600o.js +0 -3872
- package/dist/useDateField-DWv3600o.js.map +0 -1
- package/dist/useDefaults-C0CYry78.js +0 -76
- package/dist/useDefaults-DseelK6y.mjs.map +0 -1
- package/dist/useFormCheck-BKXrwS3g.mjs.map +0 -1
- package/dist/useFormCheck-DYjLG4WA.js +0 -82
- package/dist/useFormInput-CXl8rpD0.mjs.map +0 -1
- package/dist/useFormInput-ip9hN2AU.js +0 -117
- package/dist/useFormSelect-BM0rsjni.mjs.map +0 -1
- package/dist/useFormSelect-ClmzGzOy.js +0 -58
- package/dist/useForwardExpose-BpZJluPs.js +0 -80
- package/dist/useForwardExpose-BpZJluPs.js.map +0 -1
- package/dist/useForwardExpose-Cob6LlGd.mjs.map +0 -1
- package/dist/useId-BkAY2oh6.js +0 -17
- package/dist/useId-D1sqXtwx.mjs.map +0 -1
- package/dist/useKbd-DfmgFov6.mjs.map +0 -1
- package/dist/useKbd-sqDCJtXL.js +0 -105
- package/dist/useKbd-sqDCJtXL.js.map +0 -1
- package/dist/useNumberishToStyle-BtMa0R27.js +0 -18
- package/dist/useNumberishToStyle-DgS1slD3.mjs.map +0 -1
- package/dist/useRadiusElementClasses-BW832F7F.mjs.map +0 -1
- package/dist/useRadiusElementClasses-DWiUVgex.js +0 -28
- package/dist/useRtl-BSgvbs5F.js +0 -26
- package/dist/useRtl-CGoXBxNo.mjs.map +0 -1
- package/dist/useSafeScrollLock-7wmPH_Hy.js +0 -1418
- package/dist/useSafeScrollLock-7wmPH_Hy.js.map +0 -1
- package/dist/useSafeScrollLock-Me5LyqjD.mjs.map +0 -1
- package/dist/useShowHide-CBFt1_EW.mjs.map +0 -1
- package/dist/useShowHide-CHm2uUep.js +0 -436
- package/dist/useShowHide-CHm2uUep.js.map +0 -1
- package/dist/useStateClass-CXK3nCg9.js +0 -16
- package/dist/useStateClass-DxlL_m2E.mjs.map +0 -1
- package/dist/utils-CWvndqPg.mjs.map +0 -1
- package/dist/utils-Dk9yAtbs.js +0 -186
- package/dist/utils-Dk9yAtbs.js.map +0 -1
- /package/dist/{chunk-D1SwGrFN.mjs → rolldown-runtime-BBjsoOtd.js} +0 -0
package/dist/BTable-BCWW00u_.js
DELETED
|
@@ -1,1903 +0,0 @@
|
|
|
1
|
-
require("./chunk-CoQrYLCe.js");
|
|
2
|
-
const require_keys = require("./keys-BMye8nSf.js");
|
|
3
|
-
const require_dist = require("./dist-DiXKLh_W.js");
|
|
4
|
-
const require_dom = require("./dom-Bs6DzM72.js");
|
|
5
|
-
const require_useDefaults = require("./useDefaults-C0CYry78.js");
|
|
6
|
-
const require_useId = require("./useId-BkAY2oh6.js");
|
|
7
|
-
const require_object = require("./object-BN7QwMcz.js");
|
|
8
|
-
require("./constants-BLIvvaat.js");
|
|
9
|
-
const require_stringUtils = require("./stringUtils-68ZN_GRt.js");
|
|
10
|
-
const require_debounce = require("./debounce-D6kifS6w.js");
|
|
11
|
-
require("./src/types/index.umd.js");
|
|
12
|
-
const require_BTableSimple = require("./BTableSimple-BkdGAAKb.js");
|
|
13
|
-
let vue = require("vue");
|
|
14
|
-
//#region src/types/TableTypes.ts
|
|
15
|
-
var isTableItem = (value) => typeof value === "object" && value !== null;
|
|
16
|
-
var isTableField = (value) => typeof value === "object" && value !== null && "key" in value;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/components/BTable/BTbody.vue
|
|
19
|
-
var BTbody_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
20
|
-
__name: "BTbody",
|
|
21
|
-
props: { variant: { default: null } },
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = require_useDefaults.useDefaults(__props, "BTbody");
|
|
24
|
-
const computedClasses = (0, vue.computed)(() => ({ [`thead-${props.variant}`]: props.variant !== null }));
|
|
25
|
-
return (_ctx, _cache) => {
|
|
26
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("tbody", { class: (0, vue.normalizeClass)(computedClasses.value) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/components/BTable/BTd.vue?vue&type=script&setup=true&lang.ts
|
|
32
|
-
var _hoisted_1$3 = [
|
|
33
|
-
"colspan",
|
|
34
|
-
"rowspan",
|
|
35
|
-
"data-label"
|
|
36
|
-
];
|
|
37
|
-
var _hoisted_2$3 = { key: 0 };
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/BTable/BTd.vue
|
|
40
|
-
var BTd_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
41
|
-
__name: "BTd",
|
|
42
|
-
props: {
|
|
43
|
-
colspan: { default: void 0 },
|
|
44
|
-
rowspan: { default: void 0 },
|
|
45
|
-
stackedHeading: { default: void 0 },
|
|
46
|
-
stickyColumn: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
|
-
variant: { default: null }
|
|
51
|
-
},
|
|
52
|
-
setup(__props) {
|
|
53
|
-
const props = require_useDefaults.useDefaults(__props, "BTd");
|
|
54
|
-
const computedClasses = (0, vue.computed)(() => ({
|
|
55
|
-
[`table-${props.variant}`]: props.variant !== null,
|
|
56
|
-
"b-table-sticky-column": props.stickyColumn,
|
|
57
|
-
"table-b-table-default": props.stickyColumn && props.variant === null
|
|
58
|
-
}));
|
|
59
|
-
return (_ctx, _cache) => {
|
|
60
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("td", {
|
|
61
|
-
class: (0, vue.normalizeClass)(computedClasses.value),
|
|
62
|
-
colspan: (0, vue.unref)(props).colspan,
|
|
63
|
-
rowspan: (0, vue.unref)(props).rowspan,
|
|
64
|
-
"data-label": (0, vue.unref)(props).stackedHeading
|
|
65
|
-
}, [(0, vue.unref)(props).stackedHeading ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_2$3, [(0, vue.renderSlot)(_ctx.$slots, "default")])) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$3);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/components/BTable/BTfoot.vue
|
|
71
|
-
var BTfoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
72
|
-
__name: "BTfoot",
|
|
73
|
-
props: { variant: { default: null } },
|
|
74
|
-
setup(__props) {
|
|
75
|
-
const props = require_useDefaults.useDefaults(__props, "BTfoot");
|
|
76
|
-
const computedClasses = (0, vue.computed)(() => ({ [`table-${props.variant}`]: props.variant !== null }));
|
|
77
|
-
return (_ctx, _cache) => {
|
|
78
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("tfoot", { class: (0, vue.normalizeClass)(computedClasses.value) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/components/BTable/BTh.vue?vue&type=script&setup=true&lang.ts
|
|
84
|
-
var _hoisted_1$2 = [
|
|
85
|
-
"scope",
|
|
86
|
-
"colspan",
|
|
87
|
-
"rowspan",
|
|
88
|
-
"data-label"
|
|
89
|
-
];
|
|
90
|
-
var _hoisted_2$2 = { key: 0 };
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/components/BTable/BTh.vue
|
|
93
|
-
var BTh_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
94
|
-
__name: "BTh",
|
|
95
|
-
props: {
|
|
96
|
-
colspan: { default: void 0 },
|
|
97
|
-
rowspan: { default: void 0 },
|
|
98
|
-
stackedHeading: { default: void 0 },
|
|
99
|
-
stickyColumn: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: false
|
|
102
|
-
},
|
|
103
|
-
variant: { default: null },
|
|
104
|
-
scope: { default: void 0 }
|
|
105
|
-
},
|
|
106
|
-
setup(__props) {
|
|
107
|
-
const props = require_useDefaults.useDefaults(__props, "BTh");
|
|
108
|
-
const computedClasses = (0, vue.computed)(() => ({
|
|
109
|
-
[`table-${props.variant}`]: props.variant !== null,
|
|
110
|
-
"b-table-sticky-column": props.stickyColumn,
|
|
111
|
-
"table-b-table-default": props.stickyColumn && props.variant === null
|
|
112
|
-
}));
|
|
113
|
-
const localScope = (0, vue.computed)(() => props.scope ? props.scope : props.colspan ? "colgroup" : props.rowspan ? "rowgroup" : "col");
|
|
114
|
-
return (_ctx, _cache) => {
|
|
115
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("th", {
|
|
116
|
-
scope: localScope.value,
|
|
117
|
-
class: (0, vue.normalizeClass)(computedClasses.value),
|
|
118
|
-
colspan: (0, vue.unref)(props).colspan,
|
|
119
|
-
rowspan: (0, vue.unref)(props).rowspan,
|
|
120
|
-
"data-label": (0, vue.unref)(props).stackedHeading
|
|
121
|
-
}, [(0, vue.unref)(props).stackedHeading !== void 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_2$2, [(0, vue.renderSlot)(_ctx.$slots, "default")])) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$2);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/components/BTable/BThead.vue
|
|
127
|
-
var BThead_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
128
|
-
__name: "BThead",
|
|
129
|
-
props: { variant: { default: null } },
|
|
130
|
-
setup(__props) {
|
|
131
|
-
const props = require_useDefaults.useDefaults(__props, "BThead");
|
|
132
|
-
const computedClasses = (0, vue.computed)(() => ({ [`table-${props.variant}`]: props.variant !== null }));
|
|
133
|
-
return (_ctx, _cache) => {
|
|
134
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("thead", { class: (0, vue.normalizeClass)(computedClasses.value) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/components/BTable/BTr.vue
|
|
140
|
-
var BTr_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
141
|
-
__name: "BTr",
|
|
142
|
-
props: { variant: { default: null } },
|
|
143
|
-
setup(__props) {
|
|
144
|
-
const props = require_useDefaults.useDefaults(__props, "BTr");
|
|
145
|
-
const computedClasses = (0, vue.computed)(() => ({ [`table-${props.variant}`]: props.variant !== null }));
|
|
146
|
-
return (_ctx, _cache) => {
|
|
147
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("tr", { class: (0, vue.normalizeClass)(computedClasses.value) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region src/utils/tableUtils.ts
|
|
153
|
-
var getTableFieldHeadLabel = (field) => typeof field === "string" ? require_stringUtils.titleCase(field) : field.label !== void 0 ? field.label : require_stringUtils.titleCase(field.key);
|
|
154
|
-
var getWithGetter = (item, key) => {
|
|
155
|
-
if (typeof key === "function") return key(item);
|
|
156
|
-
return item[key];
|
|
157
|
-
};
|
|
158
|
-
var getByFieldKey = (item, field) => typeof item === "object" && item !== null ? getWithGetter(item, field.accessor ?? field.key) : item;
|
|
159
|
-
var formatItem = (item, field) => {
|
|
160
|
-
const val = getByFieldKey(item, field);
|
|
161
|
-
return typeof field.formatter === "function" ? field.formatter({
|
|
162
|
-
value: val,
|
|
163
|
-
key: field.key,
|
|
164
|
-
item
|
|
165
|
-
}) : val;
|
|
166
|
-
};
|
|
167
|
-
var bTableSimpleProps = Object.freeze(Object.keys({
|
|
168
|
-
bordered: 0,
|
|
169
|
-
borderless: 0,
|
|
170
|
-
borderVariant: 0,
|
|
171
|
-
captionTop: 0,
|
|
172
|
-
dark: 0,
|
|
173
|
-
fixed: 0,
|
|
174
|
-
hover: 0,
|
|
175
|
-
id: 0,
|
|
176
|
-
noBorderCollapse: 0,
|
|
177
|
-
outlined: 0,
|
|
178
|
-
responsive: 0,
|
|
179
|
-
small: 0,
|
|
180
|
-
stacked: 0,
|
|
181
|
-
stickyHeader: 0,
|
|
182
|
-
striped: 0,
|
|
183
|
-
stripedColumns: 0,
|
|
184
|
-
variant: 0,
|
|
185
|
-
tableAttrs: 0,
|
|
186
|
-
tableClass: 0
|
|
187
|
-
}));
|
|
188
|
-
var bTableLiteProps = Object.freeze(Object.keys({
|
|
189
|
-
align: 0,
|
|
190
|
-
caption: 0,
|
|
191
|
-
detailsTdClass: 0,
|
|
192
|
-
fieldColumnClass: 0,
|
|
193
|
-
fields: 0,
|
|
194
|
-
footClone: 0,
|
|
195
|
-
footRowVariant: 0,
|
|
196
|
-
footVariant: 0,
|
|
197
|
-
headRowVariant: 0,
|
|
198
|
-
headVariant: 0,
|
|
199
|
-
items: 0,
|
|
200
|
-
labelStacked: 0,
|
|
201
|
-
modelValue: 0,
|
|
202
|
-
primaryKey: 0,
|
|
203
|
-
tbodyClass: 0,
|
|
204
|
-
tbodyTrAttrs: 0,
|
|
205
|
-
tbodyTrClass: 0,
|
|
206
|
-
tfootClass: 0,
|
|
207
|
-
expandedItems: 0,
|
|
208
|
-
tfootTrClass: 0,
|
|
209
|
-
theadClass: 0,
|
|
210
|
-
theadTrClass: 0
|
|
211
|
-
}));
|
|
212
|
-
var getDataLabelAttr = (props, label) => props.stacked && props.labelStacked !== true ? { "data-label": label } : void 0;
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region src/utils/filterEvent.ts
|
|
215
|
-
var TABLE_TAG_NAMES = [
|
|
216
|
-
"TD",
|
|
217
|
-
"TH",
|
|
218
|
-
"TR"
|
|
219
|
-
];
|
|
220
|
-
var eventFilter = [
|
|
221
|
-
"a",
|
|
222
|
-
"a *",
|
|
223
|
-
"button",
|
|
224
|
-
"button *",
|
|
225
|
-
"input:not(.disabled):not([disabled])",
|
|
226
|
-
"select:not(.disabled):not([disabled])",
|
|
227
|
-
"textarea:not(.disabled):not([disabled])",
|
|
228
|
-
"[role=\"link\"]",
|
|
229
|
-
"[role=\"link\"] *",
|
|
230
|
-
"[role=\"button\"]",
|
|
231
|
-
"[role=\"button\"] *",
|
|
232
|
-
"[tabindex]:not(.disabled):not([disabled])"
|
|
233
|
-
].join(",");
|
|
234
|
-
var filterEvent = (event) => {
|
|
235
|
-
if (!event || !event.target) return false;
|
|
236
|
-
const el = event.target;
|
|
237
|
-
if ("disabled" in el && el.disabled || TABLE_TAG_NAMES.indexOf(el.tagName) !== -1) return false;
|
|
238
|
-
if (el.closest(".dropdown-menu")) return true;
|
|
239
|
-
const label = el.tagName === "LABEL" ? el : el.closest("label");
|
|
240
|
-
if (label) {
|
|
241
|
-
const doc = require_dom.getSafeDocument();
|
|
242
|
-
const labelFor = label.getAttribute("for");
|
|
243
|
-
const input = labelFor ? doc?.getElementById(labelFor) : label.querySelector("input, select, textarea");
|
|
244
|
-
if (input && !input.disabled) return true;
|
|
245
|
-
}
|
|
246
|
-
return el.matches(eventFilter);
|
|
247
|
-
};
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region src/composables/useTableLiteHelpers.ts
|
|
250
|
-
var useTableFieldsMapper = ({ fields, items, stackedProps }) => {
|
|
251
|
-
const computedFields = (0, vue.computed)(() => {
|
|
252
|
-
const fieldsValue = (0, vue.toValue)(fields);
|
|
253
|
-
const itemsValue = (0, vue.toValue)(items);
|
|
254
|
-
const stacked = {
|
|
255
|
-
stacked: (0, vue.toValue)(stackedProps.stacked),
|
|
256
|
-
labelStacked: (0, vue.toValue)(stackedProps.labelStacked)
|
|
257
|
-
};
|
|
258
|
-
if (!fieldsValue.length && itemsValue.length) {
|
|
259
|
-
const [firstItem] = itemsValue;
|
|
260
|
-
if (firstItem && (isTableItem(firstItem) || Array.isArray(firstItem))) return { items: Object.keys(firstItem).map((k) => {
|
|
261
|
-
const label = require_stringUtils.startCase(k);
|
|
262
|
-
return {
|
|
263
|
-
key: k,
|
|
264
|
-
label,
|
|
265
|
-
tdAttr: getDataLabelAttr(stacked, label)
|
|
266
|
-
};
|
|
267
|
-
}) };
|
|
268
|
-
return {
|
|
269
|
-
items: [{ key: "" }],
|
|
270
|
-
opts: { noHeader: true }
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
return { items: fieldsValue.map((f) => {
|
|
274
|
-
if (isTableField(f)) {
|
|
275
|
-
const dataLabelAttr = getDataLabelAttr(stacked, f.label ?? require_stringUtils.startCase(f.key));
|
|
276
|
-
const tdAttr = typeof f.tdAttr === "function" ? (obj) => ({
|
|
277
|
-
...dataLabelAttr,
|
|
278
|
-
...f.tdAttr(obj)
|
|
279
|
-
}) : dataLabelAttr || f.tdAttr ? {
|
|
280
|
-
...dataLabelAttr,
|
|
281
|
-
...f.tdAttr
|
|
282
|
-
} : void 0;
|
|
283
|
-
return {
|
|
284
|
-
...f,
|
|
285
|
-
tdAttr
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
const label = require_stringUtils.startCase(f);
|
|
289
|
-
return {
|
|
290
|
-
key: f,
|
|
291
|
-
label,
|
|
292
|
-
tdAttr: getDataLabelAttr(stacked, label)
|
|
293
|
-
};
|
|
294
|
-
}) };
|
|
295
|
-
});
|
|
296
|
-
const total = (0, vue.computed)(() => computedFields.value.items.length);
|
|
297
|
-
return {
|
|
298
|
-
total,
|
|
299
|
-
showHeaders: (0, vue.computed)(() => !(total.value > 0 && computedFields.value.opts?.noHeader === true)),
|
|
300
|
-
fields: (0, vue.computed)(() => computedFields.value.items)
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
var useItemTracker = ({ allItems, selectedItems, primaryKey }) => {
|
|
304
|
-
const isActivated = (0, vue.computed)(() => selectedItems.value.length > 0);
|
|
305
|
-
const pKey = (0, vue.readonly)((0, vue.toRef)(primaryKey));
|
|
306
|
-
const get = (item) => {
|
|
307
|
-
if (typeof item === "object" && item !== null && pKey.value) return getWithGetter(item, pKey.value);
|
|
308
|
-
return item;
|
|
309
|
-
};
|
|
310
|
-
const add = (item) => {
|
|
311
|
-
const value = get(item);
|
|
312
|
-
selectedItems.value = [...selectedItems.value, value];
|
|
313
|
-
};
|
|
314
|
-
const set = (items) => {
|
|
315
|
-
selectedItems.value = pKey.value ? items.map(get) : items;
|
|
316
|
-
};
|
|
317
|
-
const setAll = () => set([...(0, vue.toValue)(allItems)]);
|
|
318
|
-
const remove = (item) => {
|
|
319
|
-
const value = get(item);
|
|
320
|
-
selectedItems.value = selectedItems.value.filter((i) => i !== value);
|
|
321
|
-
};
|
|
322
|
-
const clear = () => {
|
|
323
|
-
selectedItems.value = [];
|
|
324
|
-
};
|
|
325
|
-
const has = (item) => {
|
|
326
|
-
const value = get(item);
|
|
327
|
-
return selectedItems.value.includes(value);
|
|
328
|
-
};
|
|
329
|
-
(0, vue.watch)(pKey, () => {
|
|
330
|
-
clear();
|
|
331
|
-
});
|
|
332
|
-
const objectsMap = (0, vue.computed)(() => {
|
|
333
|
-
if (!pKey.value) return /* @__PURE__ */ new Map();
|
|
334
|
-
return new Map((0, vue.toValue)(allItems).map((item) => [get(item), item]));
|
|
335
|
-
});
|
|
336
|
-
const getFromPrimaryKey = (value) => {
|
|
337
|
-
if (!pKey.value) return void 0;
|
|
338
|
-
return objectsMap.value.get(value);
|
|
339
|
-
};
|
|
340
|
-
return {
|
|
341
|
-
getFromPrimaryKey,
|
|
342
|
-
resolvedItems: (0, vue.computed)(() => {
|
|
343
|
-
if (!pKey.value) return selectedItems.value;
|
|
344
|
-
const arr = [];
|
|
345
|
-
selectedItems.value.forEach((item) => {
|
|
346
|
-
const resolved = getFromPrimaryKey(item);
|
|
347
|
-
if (resolved !== void 0) arr.push(resolved);
|
|
348
|
-
});
|
|
349
|
-
return arr;
|
|
350
|
-
}),
|
|
351
|
-
isActivated,
|
|
352
|
-
get,
|
|
353
|
-
add,
|
|
354
|
-
remove,
|
|
355
|
-
clear,
|
|
356
|
-
set,
|
|
357
|
-
has,
|
|
358
|
-
setAll
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
var useItemExpansion = ({ allItems, primaryKey, expandedItems }) => {
|
|
362
|
-
const utils = useItemTracker({
|
|
363
|
-
primaryKey,
|
|
364
|
-
allItems,
|
|
365
|
-
selectedItems: expandedItems
|
|
366
|
-
});
|
|
367
|
-
const toggle = (item) => {
|
|
368
|
-
if (utils.has(item)) utils.remove(item);
|
|
369
|
-
else utils.add(item);
|
|
370
|
-
};
|
|
371
|
-
return {
|
|
372
|
-
...utils,
|
|
373
|
-
toggle
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
var useTableKeyboardNavigation = ({ items, id }, events) => {
|
|
377
|
-
const keyboardNavigation = (0, vue.inject)(require_keys.tableKeyboardNavigationKey, null);
|
|
378
|
-
const instance = (0, vue.getCurrentInstance)();
|
|
379
|
-
const hasEventHandler = (eventName) => {
|
|
380
|
-
const props = instance?.vnode.props;
|
|
381
|
-
if (!props) return false;
|
|
382
|
-
return !!(props[`on${eventName}`] || props[`on${eventName}Once`]);
|
|
383
|
-
};
|
|
384
|
-
const hasHeadClickedHandler = (0, vue.computed)(() => hasEventHandler("HeadClicked"));
|
|
385
|
-
const hasRowClickedHandler = (0, vue.computed)(() => hasEventHandler("RowClicked"));
|
|
386
|
-
const shouldHeaderBeFocusable = (field) => keyboardNavigation ? !!(keyboardNavigation.headerNavigation.value && field.sortable === true) : hasHeadClickedHandler.value;
|
|
387
|
-
const shouldRowBeFocusable = (0, vue.computed)(() => keyboardNavigation ? !!(keyboardNavigation.rowNavigation.value && (0, vue.toValue)(items).length > 0) : !!(hasRowClickedHandler.value && (0, vue.toValue)(items).length > 0));
|
|
388
|
-
const headerClicked = (field, event, isFooter = false) => {
|
|
389
|
-
events.onHeadClicked({
|
|
390
|
-
key: field.key,
|
|
391
|
-
field,
|
|
392
|
-
event,
|
|
393
|
-
isFooter
|
|
394
|
-
});
|
|
395
|
-
};
|
|
396
|
-
const handleHeaderKeydown = (field, event, isFooter = false) => {
|
|
397
|
-
const { target, code } = event;
|
|
398
|
-
if (target && target.tagName !== "TH" && require_dom.getSafeDocument()?.activeElement === target) return;
|
|
399
|
-
if (code === "Enter" || code === "NumpadEnter" || code === "Space") {
|
|
400
|
-
event.preventDefault();
|
|
401
|
-
headerClicked(field, event, isFooter);
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
const handleRowKeydown = (item, itemIndex, event) => {
|
|
405
|
-
const { target, code, shiftKey } = event;
|
|
406
|
-
if (target && target.tagName !== "TR" && require_dom.getSafeDocument()?.activeElement === target) return;
|
|
407
|
-
if (code === "Enter" || code === "NumpadEnter" || code === "Space") {
|
|
408
|
-
event.preventDefault();
|
|
409
|
-
events.onRowClicked({
|
|
410
|
-
item,
|
|
411
|
-
index: itemIndex,
|
|
412
|
-
event
|
|
413
|
-
});
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
if (code === "ArrowDown" || code === "ArrowUp" || code === "Home" || code === "End") {
|
|
417
|
-
event.preventDefault();
|
|
418
|
-
handleRowNavigation(code, shiftKey, itemIndex);
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
const handleRowNavigation = (code, shiftKey, currentIndex) => {
|
|
422
|
-
const doc = require_dom.getSafeDocument();
|
|
423
|
-
const rows = doc === null ? [] : Array.from(doc.querySelectorAll(`#${(0, vue.toValue)(id)} tbody tr[tabindex]`));
|
|
424
|
-
if (rows.length === 0) return;
|
|
425
|
-
let targetIndex = currentIndex;
|
|
426
|
-
if (code === "ArrowDown") if (shiftKey) targetIndex = rows.length - 1;
|
|
427
|
-
else targetIndex = Math.min(currentIndex + 1, rows.length - 1);
|
|
428
|
-
else if (code === "ArrowUp") if (shiftKey) targetIndex = 0;
|
|
429
|
-
else targetIndex = Math.max(currentIndex - 1, 0);
|
|
430
|
-
else if (code === "End") targetIndex = rows.length - 1;
|
|
431
|
-
else if (code === "Home") targetIndex = 0;
|
|
432
|
-
if (targetIndex !== currentIndex && rows[targetIndex]) rows[targetIndex]?.focus();
|
|
433
|
-
};
|
|
434
|
-
const handleMiddleClick = (item, itemIndex, event) => {
|
|
435
|
-
if (event.button === 1 && !filterEvent(event)) events.onRowMiddleClicked({
|
|
436
|
-
item,
|
|
437
|
-
index: itemIndex,
|
|
438
|
-
event
|
|
439
|
-
});
|
|
440
|
-
};
|
|
441
|
-
return {
|
|
442
|
-
shouldHeaderBeFocusable,
|
|
443
|
-
headerClicked,
|
|
444
|
-
handleHeaderKeydown,
|
|
445
|
-
shouldRowBeFocusable,
|
|
446
|
-
handleRowKeydown,
|
|
447
|
-
handleMiddleClick
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region src/components/BTable/BTableLite.vue?vue&type=script&setup=true&lang.ts
|
|
452
|
-
var _hoisted_1$1 = { key: 0 };
|
|
453
|
-
var _hoisted_2$1 = {
|
|
454
|
-
key: 0,
|
|
455
|
-
class: "b-table-stacked-label"
|
|
456
|
-
};
|
|
457
|
-
var _hoisted_3$1 = { class: "d-inline-flex flex-nowrap align-items-center gap-1" };
|
|
458
|
-
var _hoisted_4 = { key: 3 };
|
|
459
|
-
//#endregion
|
|
460
|
-
//#region src/components/BTable/BTableLite.vue
|
|
461
|
-
var BTableLite_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
462
|
-
__name: "BTableLite",
|
|
463
|
-
props: /* @__PURE__ */ (0, vue.mergeModels)({
|
|
464
|
-
align: { default: void 0 },
|
|
465
|
-
caption: { default: void 0 },
|
|
466
|
-
detailsTdClass: { default: void 0 },
|
|
467
|
-
fieldColumnClass: {
|
|
468
|
-
type: [
|
|
469
|
-
Function,
|
|
470
|
-
String,
|
|
471
|
-
Object,
|
|
472
|
-
Array
|
|
473
|
-
],
|
|
474
|
-
default: void 0
|
|
475
|
-
},
|
|
476
|
-
fields: { default: () => [] },
|
|
477
|
-
footClone: {
|
|
478
|
-
type: Boolean,
|
|
479
|
-
default: false
|
|
480
|
-
},
|
|
481
|
-
footRowVariant: { default: void 0 },
|
|
482
|
-
footVariant: { default: void 0 },
|
|
483
|
-
headRowVariant: { default: void 0 },
|
|
484
|
-
headVariant: { default: void 0 },
|
|
485
|
-
items: { default: () => [] },
|
|
486
|
-
labelStacked: {
|
|
487
|
-
type: Boolean,
|
|
488
|
-
default: false
|
|
489
|
-
},
|
|
490
|
-
modelValue: { default: void 0 },
|
|
491
|
-
primaryKey: {
|
|
492
|
-
type: [String, Function],
|
|
493
|
-
default: void 0
|
|
494
|
-
},
|
|
495
|
-
tbodyClass: { default: void 0 },
|
|
496
|
-
tbodyTrAttrs: {
|
|
497
|
-
type: [Function, Object],
|
|
498
|
-
default: void 0
|
|
499
|
-
},
|
|
500
|
-
tbodyTrClass: {
|
|
501
|
-
type: [
|
|
502
|
-
Function,
|
|
503
|
-
String,
|
|
504
|
-
Array,
|
|
505
|
-
Object
|
|
506
|
-
],
|
|
507
|
-
default: void 0
|
|
508
|
-
},
|
|
509
|
-
tfootClass: { default: void 0 },
|
|
510
|
-
tfootTrClass: { default: void 0 },
|
|
511
|
-
theadClass: { default: void 0 },
|
|
512
|
-
theadTrClass: { default: void 0 },
|
|
513
|
-
bordered: {
|
|
514
|
-
type: Boolean,
|
|
515
|
-
default: void 0
|
|
516
|
-
},
|
|
517
|
-
borderless: {
|
|
518
|
-
type: Boolean,
|
|
519
|
-
default: void 0
|
|
520
|
-
},
|
|
521
|
-
borderVariant: { default: void 0 },
|
|
522
|
-
captionTop: {
|
|
523
|
-
type: Boolean,
|
|
524
|
-
default: void 0
|
|
525
|
-
},
|
|
526
|
-
dark: {
|
|
527
|
-
type: Boolean,
|
|
528
|
-
default: void 0
|
|
529
|
-
},
|
|
530
|
-
fixed: {
|
|
531
|
-
type: Boolean,
|
|
532
|
-
default: void 0
|
|
533
|
-
},
|
|
534
|
-
hover: {
|
|
535
|
-
type: Boolean,
|
|
536
|
-
default: void 0
|
|
537
|
-
},
|
|
538
|
-
id: { default: void 0 },
|
|
539
|
-
noBorderCollapse: {
|
|
540
|
-
type: Boolean,
|
|
541
|
-
default: void 0
|
|
542
|
-
},
|
|
543
|
-
outlined: {
|
|
544
|
-
type: Boolean,
|
|
545
|
-
default: void 0
|
|
546
|
-
},
|
|
547
|
-
responsive: {
|
|
548
|
-
type: [Boolean, String],
|
|
549
|
-
default: void 0
|
|
550
|
-
},
|
|
551
|
-
small: {
|
|
552
|
-
type: Boolean,
|
|
553
|
-
default: void 0
|
|
554
|
-
},
|
|
555
|
-
stacked: {
|
|
556
|
-
type: [Boolean, String],
|
|
557
|
-
default: void 0
|
|
558
|
-
},
|
|
559
|
-
stickyHeader: {
|
|
560
|
-
type: [
|
|
561
|
-
Boolean,
|
|
562
|
-
String,
|
|
563
|
-
Number
|
|
564
|
-
],
|
|
565
|
-
default: void 0
|
|
566
|
-
},
|
|
567
|
-
striped: {
|
|
568
|
-
type: Boolean,
|
|
569
|
-
default: void 0
|
|
570
|
-
},
|
|
571
|
-
stripedColumns: {
|
|
572
|
-
type: Boolean,
|
|
573
|
-
default: void 0
|
|
574
|
-
},
|
|
575
|
-
variant: { default: void 0 },
|
|
576
|
-
tableAttrs: {},
|
|
577
|
-
tableClass: { default: void 0 }
|
|
578
|
-
}, {
|
|
579
|
-
"expandedItems": { default: () => [] },
|
|
580
|
-
"expandedItemsModifiers": {}
|
|
581
|
-
}),
|
|
582
|
-
emits: /* @__PURE__ */ (0, vue.mergeModels)([
|
|
583
|
-
"head-clicked",
|
|
584
|
-
"row-clicked",
|
|
585
|
-
"row-dblclicked",
|
|
586
|
-
"row-contextmenu",
|
|
587
|
-
"row-hovered",
|
|
588
|
-
"row-unhovered",
|
|
589
|
-
"row-middle-clicked"
|
|
590
|
-
], ["update:expandedItems"]),
|
|
591
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
592
|
-
const props = require_useDefaults.useDefaults(__props, "BTableLite");
|
|
593
|
-
const emit = __emit;
|
|
594
|
-
const slots = (0, vue.useSlots)();
|
|
595
|
-
const expandedItems = (0, vue.useModel)(__props, "expandedItems");
|
|
596
|
-
const computedId = require_useId.useId(() => props.id);
|
|
597
|
-
const expandedItemsController = useItemExpansion({
|
|
598
|
-
allItems: () => props.items,
|
|
599
|
-
primaryKey: (0, vue.toRef)(() => props.primaryKey),
|
|
600
|
-
expandedItems
|
|
601
|
-
});
|
|
602
|
-
const keyboardController = useTableKeyboardNavigation({
|
|
603
|
-
items: () => props.items,
|
|
604
|
-
id: computedId
|
|
605
|
-
}, {
|
|
606
|
-
onHeadClicked: (obj) => {
|
|
607
|
-
emit("head-clicked", obj);
|
|
608
|
-
},
|
|
609
|
-
onRowClicked: (obj) => {
|
|
610
|
-
emit("row-clicked", obj);
|
|
611
|
-
},
|
|
612
|
-
onRowMiddleClicked: (obj) => {
|
|
613
|
-
emit("row-middle-clicked", obj);
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
const { fields: computedFields, total: computedFieldsTotal, showHeaders: showComputedHeaders } = useTableFieldsMapper({
|
|
617
|
-
fields: () => props.fields,
|
|
618
|
-
items: () => props.items,
|
|
619
|
-
stackedProps: {
|
|
620
|
-
labelStacked: () => props.labelStacked,
|
|
621
|
-
stacked: () => props.stacked
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
const calculatedFooterSlot = (key) => slots[`foot(${key})`] ? `foot(${key})` : slots["foot()"] ? "foot()" : slots[`head(${key})`] ? `head(${key})` : "head()";
|
|
625
|
-
const computedTableClasses = (0, vue.computed)(() => [props.tableClass, { [`align-${props.align}`]: props.align !== void 0 }]);
|
|
626
|
-
const getFieldColumnClasses = (field) => [
|
|
627
|
-
field.class,
|
|
628
|
-
field.thClass,
|
|
629
|
-
{ "b-table-sticky-column": field.stickyColumn },
|
|
630
|
-
props.fieldColumnClass ? typeof props.fieldColumnClass === "function" ? props.fieldColumnClass(field) : props.fieldColumnClass : null
|
|
631
|
-
];
|
|
632
|
-
const getFieldRowClasses = (field, tr) => [
|
|
633
|
-
field.class,
|
|
634
|
-
typeof field.tdClass === "function" ? field.tdClass(getByFieldKey(tr, field), field.key, tr) : field.tdClass,
|
|
635
|
-
(isTableItem(tr) ? tr._cellVariants?.[field.key] : false) ? `table-${tr._cellVariants?.[field.key]}` : null,
|
|
636
|
-
{ "b-table-sticky-column": field.stickyColumn }
|
|
637
|
-
];
|
|
638
|
-
const getRowClasses = (item, type) => props.tbodyTrClass ? typeof props.tbodyTrClass === "function" ? props.tbodyTrClass(item, type) : props.tbodyTrClass : null;
|
|
639
|
-
const itemAttributes = (item, field) => field.tdAttr && typeof field.tdAttr === "function" ? field.tdAttr({
|
|
640
|
-
value: getByFieldKey(item, field),
|
|
641
|
-
key: field.key,
|
|
642
|
-
item
|
|
643
|
-
}) : field.tdAttr;
|
|
644
|
-
const callThAttr = (item, field, type) => field.thAttr && typeof field.thAttr === "function" ? field.thAttr({
|
|
645
|
-
value: getByFieldKey(item, field),
|
|
646
|
-
key: field.key,
|
|
647
|
-
item,
|
|
648
|
-
type
|
|
649
|
-
}) : field.thAttr;
|
|
650
|
-
const callTbodyTrAttrs = (item, type) => props.tbodyTrAttrs ? typeof props.tbodyTrAttrs === "function" ? props.tbodyTrAttrs(item, type) : props.tbodyTrAttrs : null;
|
|
651
|
-
const generateTableRowId = (primaryKeyValue) => `${computedId.value}__row_${primaryKeyValue}`;
|
|
652
|
-
const getCellComponent = (field) => {
|
|
653
|
-
if (field?.isRowHeader) return BTh_default;
|
|
654
|
-
return BTd_default;
|
|
655
|
-
};
|
|
656
|
-
const footerProps = (0, vue.computed)(() => ({
|
|
657
|
-
variant: props.footVariant ?? props.headVariant,
|
|
658
|
-
class: props.tfootClass ?? props.theadClass
|
|
659
|
-
}));
|
|
660
|
-
const computedSimpleProps = (0, vue.computed)(() => ({
|
|
661
|
-
...require_object.pick(props, bTableSimpleProps),
|
|
662
|
-
tableClass: computedTableClasses.value,
|
|
663
|
-
id: computedId.value
|
|
664
|
-
}));
|
|
665
|
-
__expose({ expansion: {
|
|
666
|
-
...expandedItemsController,
|
|
667
|
-
expandedItems: (0, vue.readonly)(expandedItems)
|
|
668
|
-
} });
|
|
669
|
-
return (_ctx, _cache) => {
|
|
670
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)(require_BTableSimple.BTableSimple_default, (0, vue.normalizeProps)((0, vue.guardReactiveProps)(computedSimpleProps.value)), {
|
|
671
|
-
default: (0, vue.withCtx)(() => [
|
|
672
|
-
slots["table-colgroup"] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("colgroup", _hoisted_1$1, [(0, vue.renderSlot)(_ctx.$slots, "table-colgroup", { fields: (0, vue.unref)(computedFields) })])) : (0, vue.createCommentVNode)("", true),
|
|
673
|
-
(0, vue.withDirectives)((0, vue.createVNode)(BThead_default, {
|
|
674
|
-
variant: (0, vue.unref)(props).headVariant,
|
|
675
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(props).theadClass)
|
|
676
|
-
}, {
|
|
677
|
-
default: (0, vue.withCtx)(() => [
|
|
678
|
-
(0, vue.renderSlot)(_ctx.$slots, "thead-top", {
|
|
679
|
-
columns: (0, vue.unref)(computedFieldsTotal),
|
|
680
|
-
fields: (0, vue.unref)(computedFields)
|
|
681
|
-
}),
|
|
682
|
-
(0, vue.createVNode)(BTr_default, {
|
|
683
|
-
variant: (0, vue.unref)(props).headRowVariant,
|
|
684
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(props).theadTrClass)
|
|
685
|
-
}, {
|
|
686
|
-
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(computedFields), (field) => {
|
|
687
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)(BTh_default, (0, vue.mergeProps)({
|
|
688
|
-
key: field.key,
|
|
689
|
-
scope: field.scope,
|
|
690
|
-
class: getFieldColumnClasses(field),
|
|
691
|
-
title: field.headerTitle,
|
|
692
|
-
variant: field.variant,
|
|
693
|
-
abbr: field.headerAbbr,
|
|
694
|
-
style: field.thStyle,
|
|
695
|
-
tabindex: (0, vue.unref)(keyboardController).shouldHeaderBeFocusable(field) ? "0" : void 0
|
|
696
|
-
}, { ref_for: true }, callThAttr(null, field, "top"), {
|
|
697
|
-
onClick: ($event) => (0, vue.unref)(keyboardController).headerClicked(field, $event),
|
|
698
|
-
onKeydown: ($event) => (0, vue.unref)(keyboardController).handleHeaderKeydown(field, $event)
|
|
699
|
-
}), {
|
|
700
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, slots[`head(${field.key})`] ? `head(${field.key})` : "head()", {
|
|
701
|
-
label: field.label,
|
|
702
|
-
column: field.key,
|
|
703
|
-
field,
|
|
704
|
-
isFoot: false
|
|
705
|
-
}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(getTableFieldHeadLabel)(field)), 1)])]),
|
|
706
|
-
_: 2
|
|
707
|
-
}, 1040, [
|
|
708
|
-
"scope",
|
|
709
|
-
"class",
|
|
710
|
-
"title",
|
|
711
|
-
"variant",
|
|
712
|
-
"abbr",
|
|
713
|
-
"style",
|
|
714
|
-
"tabindex",
|
|
715
|
-
"onClick",
|
|
716
|
-
"onKeydown"
|
|
717
|
-
]);
|
|
718
|
-
}), 128))]),
|
|
719
|
-
_: 3
|
|
720
|
-
}, 8, ["variant", "class"]),
|
|
721
|
-
slots["thead-sub"] ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTr_default, { key: 0 }, {
|
|
722
|
-
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(computedFields), (field) => {
|
|
723
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)(BTd_default, {
|
|
724
|
-
key: field.key,
|
|
725
|
-
scope: "col",
|
|
726
|
-
variant: field.variant,
|
|
727
|
-
class: (0, vue.normalizeClass)([field.class, field.thClass])
|
|
728
|
-
}, {
|
|
729
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "thead-sub", {
|
|
730
|
-
items: (0, vue.unref)(props).items,
|
|
731
|
-
fields: (0, vue.unref)(computedFields),
|
|
732
|
-
field
|
|
733
|
-
}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(field.label), 1)])]),
|
|
734
|
-
_: 2
|
|
735
|
-
}, 1032, ["variant", "class"]);
|
|
736
|
-
}), 128))]),
|
|
737
|
-
_: 3
|
|
738
|
-
})) : (0, vue.createCommentVNode)("", true)
|
|
739
|
-
]),
|
|
740
|
-
_: 3
|
|
741
|
-
}, 8, ["variant", "class"]), [[vue.vShow, (0, vue.unref)(showComputedHeaders)]]),
|
|
742
|
-
(0, vue.createVNode)(BTbody_default, { class: (0, vue.normalizeClass)((0, vue.unref)(props).tbodyClass) }, {
|
|
743
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "custom-body", {
|
|
744
|
-
fields: (0, vue.unref)(computedFields),
|
|
745
|
-
items: (0, vue.unref)(props).items,
|
|
746
|
-
columns: (0, vue.unref)(computedFieldsTotal)
|
|
747
|
-
}, () => [
|
|
748
|
-
!(0, vue.unref)(props).stacked && slots["top-row"] ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTr_default, (0, vue.mergeProps)({
|
|
749
|
-
key: 0,
|
|
750
|
-
class: getRowClasses(null, "row-top")
|
|
751
|
-
}, callTbodyTrAttrs(null, "row-top")), {
|
|
752
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "top-row", {
|
|
753
|
-
columns: (0, vue.unref)(computedFieldsTotal),
|
|
754
|
-
fields: (0, vue.unref)(computedFields)
|
|
755
|
-
})]),
|
|
756
|
-
_: 3
|
|
757
|
-
}, 16, ["class"])) : (0, vue.createCommentVNode)("", true),
|
|
758
|
-
((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(props).items, (item, itemIndex) => {
|
|
759
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: (0, vue.unref)(props).primaryKey && (0, vue.unref)(isTableItem)(item) && (0, vue.unref)(getWithGetter)(item, (0, vue.unref)(props).primaryKey) ? (0, vue.unref)(getWithGetter)(item, (0, vue.unref)(props).primaryKey) : itemIndex }, [(0, vue.createVNode)(BTr_default, (0, vue.mergeProps)({
|
|
760
|
-
id: (0, vue.unref)(props).primaryKey && (0, vue.unref)(isTableItem)(item) && (0, vue.unref)(getWithGetter)(item, (0, vue.unref)(props).primaryKey) ? generateTableRowId((0, vue.unref)(getWithGetter)(item, (0, vue.unref)(props).primaryKey)) : void 0,
|
|
761
|
-
class: getRowClasses(item, "row"),
|
|
762
|
-
variant: (0, vue.unref)(isTableItem)(item) ? item._rowVariant : void 0,
|
|
763
|
-
tabindex: (0, vue.unref)(keyboardController).shouldRowBeFocusable.value ? "0" : void 0
|
|
764
|
-
}, { ref_for: true }, callTbodyTrAttrs(item, "row"), {
|
|
765
|
-
onClick: ($event) => !(0, vue.unref)(filterEvent)($event) && emit("row-clicked", {
|
|
766
|
-
item,
|
|
767
|
-
index: itemIndex,
|
|
768
|
-
event: $event
|
|
769
|
-
}),
|
|
770
|
-
onDblclick: ($event) => !(0, vue.unref)(filterEvent)($event) && emit("row-dblclicked", {
|
|
771
|
-
item,
|
|
772
|
-
index: itemIndex,
|
|
773
|
-
event: $event
|
|
774
|
-
}),
|
|
775
|
-
onContextmenu: ($event) => !(0, vue.unref)(filterEvent)($event) && emit("row-contextmenu", {
|
|
776
|
-
item,
|
|
777
|
-
index: itemIndex,
|
|
778
|
-
event: $event
|
|
779
|
-
}),
|
|
780
|
-
onMouseenter: ($event) => !(0, vue.unref)(filterEvent)($event) && emit("row-hovered", {
|
|
781
|
-
item,
|
|
782
|
-
index: itemIndex,
|
|
783
|
-
event: $event
|
|
784
|
-
}),
|
|
785
|
-
onMouseleave: ($event) => !(0, vue.unref)(filterEvent)($event) && emit("row-unhovered", {
|
|
786
|
-
item,
|
|
787
|
-
index: itemIndex,
|
|
788
|
-
event: $event
|
|
789
|
-
}),
|
|
790
|
-
onMousedown: ($event) => (0, vue.unref)(keyboardController).handleMiddleClick(item, itemIndex, $event),
|
|
791
|
-
onKeydown: ($event) => (0, vue.unref)(keyboardController).handleRowKeydown(item, itemIndex, $event)
|
|
792
|
-
}), {
|
|
793
|
-
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(computedFields), (field) => {
|
|
794
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(getCellComponent(field)), (0, vue.mergeProps)({
|
|
795
|
-
key: field.key,
|
|
796
|
-
variant: ((0, vue.unref)(isTableItem)(item) ? item._cellVariants?.[field.key] : false) ? null : field.variant,
|
|
797
|
-
class: getFieldRowClasses(field, item)
|
|
798
|
-
}, { ref_for: true }, {
|
|
799
|
-
...field.isRowHeader ? { scope: "row" } : void 0,
|
|
800
|
-
...itemAttributes(item, field)
|
|
801
|
-
}), {
|
|
802
|
-
default: (0, vue.withCtx)(() => [(0, vue.unref)(props).stacked && (0, vue.unref)(props).labelStacked ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("label", _hoisted_2$1, (0, vue.toDisplayString)((0, vue.unref)(getTableFieldHeadLabel)(field)), 1)) : (0, vue.createCommentVNode)("", true), (0, vue.renderSlot)(_ctx.$slots, slots[`cell(${field.key})`] ? `cell(${field.key})` : "cell()", {
|
|
803
|
-
value: (0, vue.unref)(formatItem)(item, field),
|
|
804
|
-
unformatted: (0, vue.unref)(getByFieldKey)(item, field),
|
|
805
|
-
index: itemIndex,
|
|
806
|
-
item,
|
|
807
|
-
field,
|
|
808
|
-
items: (0, vue.unref)(props).items,
|
|
809
|
-
toggleExpansion: () => (0, vue.unref)(expandedItemsController).toggle(item),
|
|
810
|
-
expansionShowing: (0, vue.unref)(expandedItemsController).has(item)
|
|
811
|
-
}, () => [!slots[`cell(${field.key})`] && !slots["cell()"] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(formatItem)(item, field)), 1)], 64)) : (0, vue.createCommentVNode)("", true)])]),
|
|
812
|
-
_: 2
|
|
813
|
-
}, 1040, ["variant", "class"]);
|
|
814
|
-
}), 128))]),
|
|
815
|
-
_: 2
|
|
816
|
-
}, 1040, [
|
|
817
|
-
"id",
|
|
818
|
-
"class",
|
|
819
|
-
"variant",
|
|
820
|
-
"tabindex",
|
|
821
|
-
"onClick",
|
|
822
|
-
"onDblclick",
|
|
823
|
-
"onContextmenu",
|
|
824
|
-
"onMouseenter",
|
|
825
|
-
"onMouseleave",
|
|
826
|
-
"onMousedown",
|
|
827
|
-
"onKeydown"
|
|
828
|
-
]), (0, vue.unref)(expandedItemsController).has(item) && slots["row-expansion"] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [(0, vue.createVNode)(BTr_default, {
|
|
829
|
-
"aria-hidden": "true",
|
|
830
|
-
role: "presentation",
|
|
831
|
-
class: "d-none"
|
|
832
|
-
}), (0, vue.createVNode)(BTr_default, (0, vue.mergeProps)({
|
|
833
|
-
class: getRowClasses(item, "row-expansion"),
|
|
834
|
-
variant: (0, vue.unref)(isTableItem)(item) ? item._rowVariant : void 0
|
|
835
|
-
}, { ref_for: true }, callTbodyTrAttrs(item, "row-expansion")), {
|
|
836
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(BTd_default, {
|
|
837
|
-
colspan: (0, vue.unref)(computedFieldsTotal),
|
|
838
|
-
class: (0, vue.normalizeClass)(__props.detailsTdClass)
|
|
839
|
-
}, {
|
|
840
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "row-expansion", {
|
|
841
|
-
item,
|
|
842
|
-
toggleExpansion: () => (0, vue.unref)(expandedItemsController).toggle(item),
|
|
843
|
-
fields: (0, vue.unref)(computedFields),
|
|
844
|
-
index: itemIndex
|
|
845
|
-
})]),
|
|
846
|
-
_: 2
|
|
847
|
-
}, 1032, ["colspan", "class"])]),
|
|
848
|
-
_: 2
|
|
849
|
-
}, 1040, ["class", "variant"])], 64)) : (0, vue.createCommentVNode)("", true)], 64);
|
|
850
|
-
}), 128)),
|
|
851
|
-
!(0, vue.unref)(props).stacked && slots["bottom-row"] ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTr_default, (0, vue.mergeProps)({
|
|
852
|
-
key: 1,
|
|
853
|
-
class: ["bottom-row", getRowClasses(null, "row-bottom")]
|
|
854
|
-
}, callTbodyTrAttrs(null, "row-bottom")), {
|
|
855
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "bottom-row", {
|
|
856
|
-
columns: (0, vue.unref)(computedFieldsTotal),
|
|
857
|
-
fields: (0, vue.unref)(computedFields)
|
|
858
|
-
})]),
|
|
859
|
-
_: 3
|
|
860
|
-
}, 16, ["class"])) : (0, vue.createCommentVNode)("", true)
|
|
861
|
-
])]),
|
|
862
|
-
_: 3
|
|
863
|
-
}, 8, ["class"]),
|
|
864
|
-
(0, vue.unref)(props).footClone ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTfoot_default, (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 1 }, footerProps.value)), {
|
|
865
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(BTr_default, {
|
|
866
|
-
variant: (0, vue.unref)(props).footRowVariant ?? (0, vue.unref)(props).headRowVariant,
|
|
867
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(props).tfootTrClass ?? (0, vue.unref)(props).theadTrClass)
|
|
868
|
-
}, {
|
|
869
|
-
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(computedFields), (field) => {
|
|
870
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)(BTh_default, (0, vue.mergeProps)({
|
|
871
|
-
key: field.key,
|
|
872
|
-
scope: "col",
|
|
873
|
-
class: getFieldColumnClasses(field),
|
|
874
|
-
title: field.headerTitle,
|
|
875
|
-
abbr: field.headerAbbr,
|
|
876
|
-
style: field.thStyle,
|
|
877
|
-
variant: field.variant,
|
|
878
|
-
tabindex: (0, vue.unref)(keyboardController).shouldHeaderBeFocusable(field) ? "0" : void 0
|
|
879
|
-
}, { ref_for: true }, callThAttr(null, field, "bottom"), {
|
|
880
|
-
onClick: ($event) => (0, vue.unref)(keyboardController).headerClicked(field, $event, true),
|
|
881
|
-
onKeydown: ($event) => (0, vue.unref)(keyboardController).handleHeaderKeydown(field, $event, true)
|
|
882
|
-
}), {
|
|
883
|
-
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_3$1, [(0, vue.createElementVNode)("div", null, [(0, vue.renderSlot)(_ctx.$slots, calculatedFooterSlot(field.key), {
|
|
884
|
-
label: field.label,
|
|
885
|
-
column: field.key,
|
|
886
|
-
field,
|
|
887
|
-
isFoot: true
|
|
888
|
-
}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(getTableFieldHeadLabel)(field)), 1)])])])]),
|
|
889
|
-
_: 2
|
|
890
|
-
}, 1040, [
|
|
891
|
-
"class",
|
|
892
|
-
"title",
|
|
893
|
-
"abbr",
|
|
894
|
-
"style",
|
|
895
|
-
"variant",
|
|
896
|
-
"tabindex",
|
|
897
|
-
"onClick",
|
|
898
|
-
"onKeydown"
|
|
899
|
-
]);
|
|
900
|
-
}), 128))]),
|
|
901
|
-
_: 3
|
|
902
|
-
}, 8, ["variant", "class"])]),
|
|
903
|
-
_: 3
|
|
904
|
-
}, 16)) : slots["custom-foot"] ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTfoot_default, (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 2 }, footerProps.value)), {
|
|
905
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "custom-foot", {
|
|
906
|
-
fields: (0, vue.unref)(computedFields),
|
|
907
|
-
items: (0, vue.unref)(props).items,
|
|
908
|
-
columns: (0, vue.unref)(computedFieldsTotal)
|
|
909
|
-
})]),
|
|
910
|
-
_: 3
|
|
911
|
-
}, 16)) : (0, vue.createCommentVNode)("", true),
|
|
912
|
-
slots["table-caption"] || (0, vue.unref)(props).caption ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("caption", _hoisted_4, [(0, vue.renderSlot)(_ctx.$slots, "table-caption", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(props).caption), 1)])])) : (0, vue.createCommentVNode)("", true)
|
|
913
|
-
]),
|
|
914
|
-
_: 3
|
|
915
|
-
}, 16);
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
//#endregion
|
|
920
|
-
//#region src/composables/useTableHelpers.ts
|
|
921
|
-
var useTableMapper = ({ fields, items, stackedProps, provider, events, pagination }) => {
|
|
922
|
-
const sortByModelResolved = (0, vue.readonly)((0, vue.toRef)(pagination.sort.by));
|
|
923
|
-
const isSortableResolved = (0, vue.readonly)((0, vue.toRef)(pagination.sort.isSortable));
|
|
924
|
-
const filterResolved = (0, vue.readonly)((0, vue.toRef)(pagination.filter.filter));
|
|
925
|
-
const usesProviderResolved = (0, vue.readonly)((0, vue.toRef)(provider.usesProvider));
|
|
926
|
-
const isFilterableTable = (0, vue.computed)(() => filterResolved.value !== void 0);
|
|
927
|
-
const computedFields = (0, vue.computed)(() => (0, vue.toValue)(fields).map((el) => {
|
|
928
|
-
if (!isTableField(el)) {
|
|
929
|
-
const label = require_stringUtils.startCase(el);
|
|
930
|
-
return {
|
|
931
|
-
key: el,
|
|
932
|
-
label,
|
|
933
|
-
tdAttr: getDataLabelAttr({
|
|
934
|
-
stacked: (0, vue.toValue)(stackedProps.stacked),
|
|
935
|
-
labelStacked: (0, vue.toValue)(stackedProps.labelStacked)
|
|
936
|
-
}, label)
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
const value = sortByModelResolved.value?.find((sb) => el.key === sb.key);
|
|
940
|
-
const sortValue = !el.sortable || isSortableResolved.value === false ? void 0 : value === void 0 ? "none" : value.order === "desc" ? "descending" : value.order === "asc" ? "ascending" : "none";
|
|
941
|
-
return {
|
|
942
|
-
...el,
|
|
943
|
-
thAttr: {
|
|
944
|
-
"aria-sort": sortValue,
|
|
945
|
-
...el.thAttr
|
|
946
|
-
},
|
|
947
|
-
thClass: [el.thClass, { "b-table-sort-icon-left": (0, vue.toValue)(pagination.sort.iconLeft) && sortValue !== void 0 }]
|
|
948
|
-
};
|
|
949
|
-
}));
|
|
950
|
-
const getFormatter = (value) => typeof value.sortByFormatted === "function" ? value.sortByFormatted : value.formatter;
|
|
951
|
-
const getFilterFormatter = (value) => typeof value.filterByFormatted === "function" ? value.filterByFormatted : value.formatter;
|
|
952
|
-
const getStringValue = (ob, key) => {
|
|
953
|
-
if (!isTableItem(ob)) return String(ob);
|
|
954
|
-
const sortField = computedFields.value.find((el) => {
|
|
955
|
-
if (isTableField(el)) return el.key === key;
|
|
956
|
-
return false;
|
|
957
|
-
});
|
|
958
|
-
const val = isTableField(sortField) && sortField.accessor ? getWithGetter(ob, sortField.accessor) : getWithGetter(ob, key);
|
|
959
|
-
if (isTableField(sortField) && !!sortField.sortByFormatted) {
|
|
960
|
-
const formatter = getFormatter(sortField);
|
|
961
|
-
if (formatter) return String(formatItem(ob, {
|
|
962
|
-
...sortField,
|
|
963
|
-
formatter
|
|
964
|
-
}));
|
|
965
|
-
}
|
|
966
|
-
return typeof val === "object" && val !== null ? JSON.stringify(val) : val?.toString() ?? "";
|
|
967
|
-
};
|
|
968
|
-
const fieldByKey = (0, vue.computed)(() => {
|
|
969
|
-
const map = /* @__PURE__ */ new Map();
|
|
970
|
-
for (const f of computedFields.value) if (isTableField(f)) map.set(f.key, f);
|
|
971
|
-
return map;
|
|
972
|
-
});
|
|
973
|
-
const computedItems = (0, vue.computed)(() => {
|
|
974
|
-
const filterableValue = (0, vue.toValue)(pagination.filter.filterable);
|
|
975
|
-
const filterFunctionValue = (0, vue.unref)(pagination.filter.filterFunction);
|
|
976
|
-
const itemsValue = (0, vue.toValue)(items);
|
|
977
|
-
const sortByItems = sortByModelResolved.value?.filter((el) => !!el.order);
|
|
978
|
-
const mapItem = (item) => {
|
|
979
|
-
if (typeof item === "object" && item !== null && Object.keys(item).some((key) => key.includes("."))) {
|
|
980
|
-
let newItem = {};
|
|
981
|
-
for (const key in item) if (key.includes(".")) newItem = require_object.set(newItem, key, item[key]);
|
|
982
|
-
else newItem[key] = item[key];
|
|
983
|
-
return newItem;
|
|
984
|
-
}
|
|
985
|
-
return item;
|
|
986
|
-
};
|
|
987
|
-
const filterItem = (item) => {
|
|
988
|
-
if (!isTableItem(item)) return true;
|
|
989
|
-
return Object.entries(item).some(([key, val]) => {
|
|
990
|
-
if (val === null || val === void 0 || key[0] === "_" || !filterableValue?.includes(key) && !!filterableValue?.length) return false;
|
|
991
|
-
if (typeof filterFunctionValue === "function") return filterFunctionValue(item, filterResolved.value);
|
|
992
|
-
const realVal = () => {
|
|
993
|
-
const filterField = computedFields.value.find((el) => {
|
|
994
|
-
if (isTableField(el)) return el.key === key;
|
|
995
|
-
return false;
|
|
996
|
-
});
|
|
997
|
-
if (isTableField(filterField) && !!filterField.filterByFormatted) {
|
|
998
|
-
const formatter = getFilterFormatter(filterField);
|
|
999
|
-
if (formatter) return String(formatter({
|
|
1000
|
-
value: val,
|
|
1001
|
-
key: String(filterField.key),
|
|
1002
|
-
item
|
|
1003
|
-
}));
|
|
1004
|
-
}
|
|
1005
|
-
return typeof val === "object" ? JSON.stringify(Object.values(val)) : val.toString();
|
|
1006
|
-
};
|
|
1007
|
-
return realVal().toLowerCase().includes(filterResolved.value?.toLowerCase() ?? "");
|
|
1008
|
-
});
|
|
1009
|
-
};
|
|
1010
|
-
const noProviderFilteringValue = (0, vue.toValue)(provider.noProviderFiltering);
|
|
1011
|
-
const mappedItems = itemsValue.reduce((acc, val) => {
|
|
1012
|
-
const item = mapItem(val);
|
|
1013
|
-
if (!(isFilterableTable.value && (!usesProviderResolved.value || noProviderFilteringValue)) || filterItem(item)) acc.push(item);
|
|
1014
|
-
return acc;
|
|
1015
|
-
}, []);
|
|
1016
|
-
if (sortByItems?.length && (isSortableResolved.value === true && !usesProviderResolved.value && !(0, vue.toValue)(pagination.sort.noLocalSorting) || isSortableResolved.value === true && usesProviderResolved.value && (0, vue.toValue)(provider.noProviderSorting))) {
|
|
1017
|
-
const sortCompareValue = (0, vue.unref)(pagination.sort.sortCompare);
|
|
1018
|
-
const sortNullLastValue = (0, vue.toValue)(pagination.sort.sortNullLast);
|
|
1019
|
-
return mappedItems.sort((a, b) => {
|
|
1020
|
-
for (let i = 0; i < sortByItems.length; i++) {
|
|
1021
|
-
const value = sortByItems[i];
|
|
1022
|
-
if (value === void 0) continue;
|
|
1023
|
-
const { key, order } = value;
|
|
1024
|
-
const field = fieldByKey.value.get(key);
|
|
1025
|
-
const comparer = field?.sortCompare || sortCompareValue;
|
|
1026
|
-
if (sortNullLastValue && !comparer) {
|
|
1027
|
-
const getItemVal = (item) => {
|
|
1028
|
-
if (!isTableItem(item)) return void 0;
|
|
1029
|
-
return isTableField(field) && field.accessor ? getWithGetter(item, field.accessor) : getWithGetter(item, key);
|
|
1030
|
-
};
|
|
1031
|
-
const aIsNull = getItemVal(a) == null;
|
|
1032
|
-
const bIsNull = getItemVal(b) == null;
|
|
1033
|
-
if (aIsNull && bIsNull) continue;
|
|
1034
|
-
if (aIsNull) return 1;
|
|
1035
|
-
if (bIsNull) return -1;
|
|
1036
|
-
}
|
|
1037
|
-
const comparison = comparer ? comparer(a, b, key) : getStringValue(a, key).localeCompare(getStringValue(b, key), void 0, { numeric: true });
|
|
1038
|
-
if (comparison !== 0) return order === "asc" ? comparison : -comparison;
|
|
1039
|
-
}
|
|
1040
|
-
return 0;
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
return mappedItems;
|
|
1044
|
-
});
|
|
1045
|
-
const computedDisplayItems = (0, vue.computed)(() => {
|
|
1046
|
-
const perPageNumber = (0, vue.toValue)(pagination.perPage);
|
|
1047
|
-
const currentPageNumber = (0, vue.toValue)(pagination.currentPage);
|
|
1048
|
-
if (Number.isNaN(perPageNumber) || usesProviderResolved.value && !(0, vue.toValue)(provider.noProviderPaging)) return computedItems.value;
|
|
1049
|
-
return computedItems.value.slice((currentPageNumber - 1) * (perPageNumber || Number.POSITIVE_INFINITY), currentPageNumber * (perPageNumber || Number.POSITIVE_INFINITY));
|
|
1050
|
-
});
|
|
1051
|
-
(0, vue.watch)(filterResolved, () => {
|
|
1052
|
-
pagination.currentPage.value = 1;
|
|
1053
|
-
});
|
|
1054
|
-
(0, vue.watch)(computedDisplayItems, (v) => {
|
|
1055
|
-
events.onChange([...v]);
|
|
1056
|
-
});
|
|
1057
|
-
return {
|
|
1058
|
-
items: computedItems,
|
|
1059
|
-
displayItems: computedDisplayItems,
|
|
1060
|
-
getStringValue,
|
|
1061
|
-
fields: computedFields,
|
|
1062
|
-
isFilterableTable
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
var useTableKeyboardNavigationInjector = ({ isSortable, selectable, noSelectOnClick }) => {
|
|
1066
|
-
(0, vue.provide)(require_keys.tableKeyboardNavigationKey, {
|
|
1067
|
-
rowNavigation: (0, vue.computed)(() => !!((0, vue.toValue)(selectable) && !(0, vue.toValue)(noSelectOnClick))),
|
|
1068
|
-
headerNavigation: (0, vue.computed)(() => !!(0, vue.toValue)(isSortable))
|
|
1069
|
-
});
|
|
1070
|
-
};
|
|
1071
|
-
var useTableSelectedItems = ({ selectable, selectMode, selectedItems, events, primaryKey, allItems }) => {
|
|
1072
|
-
const selectableResolved = (0, vue.readonly)((0, vue.toRef)(selectable));
|
|
1073
|
-
const selectModeResolved = (0, vue.readonly)((0, vue.toRef)(selectMode));
|
|
1074
|
-
const allItemsResolved = (0, vue.computed)(() => (0, vue.toValue)(allItems));
|
|
1075
|
-
const utils = useItemTracker({
|
|
1076
|
-
allItems: allItemsResolved,
|
|
1077
|
-
primaryKey,
|
|
1078
|
-
selectedItems
|
|
1079
|
-
});
|
|
1080
|
-
(0, vue.watch)(selectedItems, (newValue, oldValue) => {
|
|
1081
|
-
Array.from(oldValue).filter((item) => !newValue.includes(item)).forEach((item) => {
|
|
1082
|
-
events.onRowUnselected(item);
|
|
1083
|
-
});
|
|
1084
|
-
Array.from(newValue).filter((item) => !oldValue.includes(item)).forEach((item) => {
|
|
1085
|
-
events.onRowSelected(item);
|
|
1086
|
-
});
|
|
1087
|
-
});
|
|
1088
|
-
const handleRowSelection = ({ item, index, shiftClicked = false, ctrlClicked = false, metaClicked = false }) => {
|
|
1089
|
-
if (!selectableResolved.value) return;
|
|
1090
|
-
if (selectModeResolved.value === "single" || selectModeResolved.value === "multi") {
|
|
1091
|
-
if (shiftClicked || ctrlClicked) return;
|
|
1092
|
-
if (utils.has(item)) utils.remove(item);
|
|
1093
|
-
else if (selectModeResolved.value === "single") utils.set([item]);
|
|
1094
|
-
else utils.add(item);
|
|
1095
|
-
} else if (ctrlClicked || metaClicked) if (utils.has(item)) utils.remove(item);
|
|
1096
|
-
else utils.add(item);
|
|
1097
|
-
else if (shiftClicked) {
|
|
1098
|
-
const lastSelectedItem = selectedItems.value[selectedItems.value.length - 1];
|
|
1099
|
-
const lastSelectedIndex = allItemsResolved.value.findIndex((i) => utils.get(i) === lastSelectedItem);
|
|
1100
|
-
if (lastSelectedIndex === -1) {
|
|
1101
|
-
utils.set([item]);
|
|
1102
|
-
return;
|
|
1103
|
-
}
|
|
1104
|
-
const selectStartIndex = Math.min(lastSelectedIndex, index);
|
|
1105
|
-
const selectEndIndex = Math.max(lastSelectedIndex, index);
|
|
1106
|
-
const items = allItemsResolved.value.slice(selectStartIndex, selectEndIndex + 1);
|
|
1107
|
-
utils.set(items);
|
|
1108
|
-
} else utils.set([item]);
|
|
1109
|
-
};
|
|
1110
|
-
return {
|
|
1111
|
-
...utils,
|
|
1112
|
-
handleRowSelection,
|
|
1113
|
-
clear: () => {
|
|
1114
|
-
if (!selectableResolved.value) return;
|
|
1115
|
-
utils.clear();
|
|
1116
|
-
},
|
|
1117
|
-
setAll: () => {
|
|
1118
|
-
if (!selectableResolved.value || selectModeResolved.value === "single") return;
|
|
1119
|
-
utils.setAll();
|
|
1120
|
-
},
|
|
1121
|
-
add: (item) => {
|
|
1122
|
-
if (!selectableResolved.value || utils.has(item)) return;
|
|
1123
|
-
if (selectModeResolved.value === "single") utils.set([item]);
|
|
1124
|
-
else utils.add(item);
|
|
1125
|
-
},
|
|
1126
|
-
remove: (item) => {
|
|
1127
|
-
if (!selectableResolved.value) return;
|
|
1128
|
-
utils.remove(item);
|
|
1129
|
-
},
|
|
1130
|
-
has: (item) => {
|
|
1131
|
-
if (!selectableResolved.value) return false;
|
|
1132
|
-
return utils.has(item);
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
var useTableProvider = ({ items, provider, busy, currentPage, debounce, perPage, noProvider, noProviderFiltering, noProviderPaging, noProviderSorting, filter, sortBy, events }) => {
|
|
1137
|
-
const providerResolved = (0, vue.readonly)((0, vue.toRef)(provider));
|
|
1138
|
-
const currentPageResolved = (0, vue.readonly)((0, vue.toRef)(currentPage));
|
|
1139
|
-
const perPageResolved = (0, vue.readonly)((0, vue.toRef)(perPage));
|
|
1140
|
-
const sortByResolved = (0, vue.readonly)((0, vue.toRef)(sortBy));
|
|
1141
|
-
const filterResolved = (0, vue.readonly)((0, vue.toRef)(filter));
|
|
1142
|
-
const usesProvider = (0, vue.computed)(() => providerResolved.value !== void 0);
|
|
1143
|
-
let abortController = null;
|
|
1144
|
-
const callItemsProvider = async () => {
|
|
1145
|
-
if (!usesProvider.value || providerResolved.value === void 0) return;
|
|
1146
|
-
if (abortController) abortController.abort();
|
|
1147
|
-
abortController = new AbortController();
|
|
1148
|
-
const { signal } = abortController;
|
|
1149
|
-
busy.value = true;
|
|
1150
|
-
try {
|
|
1151
|
-
const response = providerResolved.value({
|
|
1152
|
-
currentPage: currentPageResolved.value,
|
|
1153
|
-
filter: filterResolved.value,
|
|
1154
|
-
sortBy: sortByResolved.value,
|
|
1155
|
-
perPage: perPageResolved.value,
|
|
1156
|
-
signal
|
|
1157
|
-
});
|
|
1158
|
-
const returnValue = response instanceof Promise ? await response : response;
|
|
1159
|
-
if (signal.aborted) return;
|
|
1160
|
-
if (returnValue === void 0) return;
|
|
1161
|
-
items.value = returnValue;
|
|
1162
|
-
} catch (error) {
|
|
1163
|
-
if (error instanceof Error && error.name === "AbortError") return;
|
|
1164
|
-
throw error;
|
|
1165
|
-
} finally {
|
|
1166
|
-
if (!signal.aborted) busy.value = false;
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
const debouncedCallItemsProvider = require_debounce.useDebounceFn(callItemsProvider, debounce.wait, { maxWait: debounce.maxWait });
|
|
1170
|
-
const providerPropsWatch = async (prop, val, oldVal) => {
|
|
1171
|
-
if (require_object.deepEqual(val, oldVal)) return;
|
|
1172
|
-
const inNoProvider = (key) => (0, vue.toValue)(noProvider)?.includes(key) === true;
|
|
1173
|
-
const noProvideWhenPaging = (prop === "currentPage" || prop === "perPage") && (inNoProvider("paging") || (0, vue.toValue)(noProviderPaging) === true);
|
|
1174
|
-
const noProvideWhenFiltering = prop === "filter" && (inNoProvider("filtering") || (0, vue.toValue)(noProviderFiltering) === true);
|
|
1175
|
-
const noProvideWhenSorting = (prop === "sortBy" || prop === "sortDesc") && (inNoProvider("sorting") || (0, vue.toValue)(noProviderSorting) === true);
|
|
1176
|
-
if (noProvideWhenPaging || noProvideWhenFiltering || noProvideWhenSorting) return;
|
|
1177
|
-
if (usesProvider.value === true) await debouncedCallItemsProvider();
|
|
1178
|
-
if (!(prop === "currentPage" || prop === "perPage")) events.onFiltered();
|
|
1179
|
-
};
|
|
1180
|
-
(0, vue.watch)(filterResolved, async (filter, oldFilter) => {
|
|
1181
|
-
await providerPropsWatch("filter", filter, oldFilter);
|
|
1182
|
-
});
|
|
1183
|
-
(0, vue.watch)(currentPageResolved, async (val, oldVal) => {
|
|
1184
|
-
await providerPropsWatch("currentPage", val, oldVal);
|
|
1185
|
-
});
|
|
1186
|
-
(0, vue.watch)(perPageResolved, async (val, oldVal) => {
|
|
1187
|
-
await providerPropsWatch("perPage", val, oldVal);
|
|
1188
|
-
});
|
|
1189
|
-
(0, vue.watch)(sortByResolved, async (val, oldVal) => {
|
|
1190
|
-
await providerPropsWatch("sortBy", val, oldVal);
|
|
1191
|
-
}, { deep: true });
|
|
1192
|
-
(0, vue.watch)(providerResolved, async (newValue) => {
|
|
1193
|
-
if (newValue === void 0) {
|
|
1194
|
-
items.value = [];
|
|
1195
|
-
return;
|
|
1196
|
-
}
|
|
1197
|
-
await callItemsProvider();
|
|
1198
|
-
});
|
|
1199
|
-
(0, vue.onMounted)(async () => {
|
|
1200
|
-
await callItemsProvider();
|
|
1201
|
-
});
|
|
1202
|
-
return {
|
|
1203
|
-
usesProvider,
|
|
1204
|
-
callItemsProvider
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
var useTableSort = ({ fields, sortBy, initialSortDirection, multisort, mustSort, events }) => {
|
|
1208
|
-
const isSortable = (0, vue.computed)(() => sortBy.value !== void 0 || (0, vue.toValue)(fields).some((field) => typeof field === "object" && field !== null && field.sortable === true));
|
|
1209
|
-
const handleFieldSorting = (field) => {
|
|
1210
|
-
if (!isSortable.value) return;
|
|
1211
|
-
const fieldKey = typeof field === "object" && field !== null ? field.key : field;
|
|
1212
|
-
const fieldSortable = typeof field === "object" && field !== null ? field.sortable : false;
|
|
1213
|
-
if (!(isSortable.value === true && fieldSortable === true)) return;
|
|
1214
|
-
const getLastSortDirection = () => {
|
|
1215
|
-
return [...sortBy.value ?? []].reverse().find((sort) => sort.order !== void 0 && sort.key !== fieldKey)?.order ?? "asc";
|
|
1216
|
-
};
|
|
1217
|
-
const getInitialSortDirection = () => {
|
|
1218
|
-
if (typeof field === "object" && field !== null && field.initialSortDirection) {
|
|
1219
|
-
if (field.initialSortDirection === "last") return getLastSortDirection();
|
|
1220
|
-
return field.initialSortDirection;
|
|
1221
|
-
}
|
|
1222
|
-
const initialSortDirectionValue = (0, vue.toValue)(initialSortDirection);
|
|
1223
|
-
if (initialSortDirectionValue) {
|
|
1224
|
-
if (initialSortDirectionValue === "last") return getLastSortDirection();
|
|
1225
|
-
return initialSortDirectionValue;
|
|
1226
|
-
}
|
|
1227
|
-
return "asc";
|
|
1228
|
-
};
|
|
1229
|
-
const resolveOrder = (val) => {
|
|
1230
|
-
const mustSortValue = (0, vue.toValue)(mustSort);
|
|
1231
|
-
if (val === void 0) return getInitialSortDirection();
|
|
1232
|
-
const initial = getInitialSortDirection();
|
|
1233
|
-
const must = mustSortValue === true || !!mustSortValue && mustSortValue.includes(fieldKey);
|
|
1234
|
-
if (val === "asc") {
|
|
1235
|
-
if (initial === "desc") return must ? "desc" : void 0;
|
|
1236
|
-
return "desc";
|
|
1237
|
-
}
|
|
1238
|
-
if (val === "desc") {
|
|
1239
|
-
if (initial === "desc") return "asc";
|
|
1240
|
-
return must ? "asc" : void 0;
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
const index = sortBy.value?.findIndex((el) => el.key === fieldKey) ?? -1;
|
|
1244
|
-
const originalValue = sortBy.value?.[index];
|
|
1245
|
-
const updatedValue = index === -1 || !originalValue ? {
|
|
1246
|
-
key: fieldKey,
|
|
1247
|
-
order: getInitialSortDirection()
|
|
1248
|
-
} : { ...originalValue };
|
|
1249
|
-
/**
|
|
1250
|
-
* @returns the updated value to emit for sorted
|
|
1251
|
-
*/
|
|
1252
|
-
const handleMultiSort = () => {
|
|
1253
|
-
const tmp = [...sortBy.value ?? []];
|
|
1254
|
-
const val = updatedValue;
|
|
1255
|
-
if (index === -1) tmp.push(val);
|
|
1256
|
-
else {
|
|
1257
|
-
const order = resolveOrder(val.order);
|
|
1258
|
-
if (order) {
|
|
1259
|
-
val.order = order;
|
|
1260
|
-
tmp.splice(index, 1, val);
|
|
1261
|
-
} else {
|
|
1262
|
-
val.order = void 0;
|
|
1263
|
-
tmp.splice(index, 1);
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
sortBy.value = tmp;
|
|
1267
|
-
return val;
|
|
1268
|
-
};
|
|
1269
|
-
/**
|
|
1270
|
-
* @returns the updated value to emit for sorted
|
|
1271
|
-
*/
|
|
1272
|
-
const handleSingleSort = () => {
|
|
1273
|
-
const order = index === -1 ? updatedValue.order : resolveOrder(updatedValue.order);
|
|
1274
|
-
const val = {
|
|
1275
|
-
...updatedValue,
|
|
1276
|
-
order
|
|
1277
|
-
};
|
|
1278
|
-
sortBy.value = order ? [val] : [];
|
|
1279
|
-
return val;
|
|
1280
|
-
};
|
|
1281
|
-
events.onSorted((0, vue.toValue)(multisort) === true ? handleMultiSort() : handleSingleSort());
|
|
1282
|
-
};
|
|
1283
|
-
return {
|
|
1284
|
-
isSortable,
|
|
1285
|
-
handleFieldSorting
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
//#endregion
|
|
1289
|
-
//#region src/components/BTable/BTable.vue?vue&type=script&setup=true&lang.ts
|
|
1290
|
-
var _hoisted_1 = {
|
|
1291
|
-
key: 0,
|
|
1292
|
-
class: "visually-hidden"
|
|
1293
|
-
};
|
|
1294
|
-
var _hoisted_2 = {
|
|
1295
|
-
role: "alert",
|
|
1296
|
-
"aria-live": "polite"
|
|
1297
|
-
};
|
|
1298
|
-
var _hoisted_3 = { class: "text-center my-2" };
|
|
1299
|
-
//#endregion
|
|
1300
|
-
//#region src/components/BTable/BTable.vue
|
|
1301
|
-
var BTable_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1302
|
-
__name: "BTable",
|
|
1303
|
-
props: /* @__PURE__ */ (0, vue.mergeModels)({
|
|
1304
|
-
provider: {
|
|
1305
|
-
type: Function,
|
|
1306
|
-
default: void 0
|
|
1307
|
-
},
|
|
1308
|
-
noProvider: { default: void 0 },
|
|
1309
|
-
noProviderPaging: {
|
|
1310
|
-
type: Boolean,
|
|
1311
|
-
default: false
|
|
1312
|
-
},
|
|
1313
|
-
noProviderSorting: {
|
|
1314
|
-
type: Boolean,
|
|
1315
|
-
default: false
|
|
1316
|
-
},
|
|
1317
|
-
noProviderFiltering: {
|
|
1318
|
-
type: Boolean,
|
|
1319
|
-
default: false
|
|
1320
|
-
},
|
|
1321
|
-
sortCompare: {
|
|
1322
|
-
type: Function,
|
|
1323
|
-
default: void 0
|
|
1324
|
-
},
|
|
1325
|
-
mustSort: {
|
|
1326
|
-
type: [Boolean, Array],
|
|
1327
|
-
default: false
|
|
1328
|
-
},
|
|
1329
|
-
initialSortDirection: { default: "asc" },
|
|
1330
|
-
selectable: {
|
|
1331
|
-
type: Boolean,
|
|
1332
|
-
default: false
|
|
1333
|
-
},
|
|
1334
|
-
multisort: {
|
|
1335
|
-
type: Boolean,
|
|
1336
|
-
default: false
|
|
1337
|
-
},
|
|
1338
|
-
stickySelect: {
|
|
1339
|
-
type: Boolean,
|
|
1340
|
-
default: false
|
|
1341
|
-
},
|
|
1342
|
-
selectHead: {
|
|
1343
|
-
type: [Boolean, String],
|
|
1344
|
-
default: true
|
|
1345
|
-
},
|
|
1346
|
-
selectMode: { default: "multi" },
|
|
1347
|
-
selectionVariant: { default: "primary" },
|
|
1348
|
-
perPage: { default: Number.POSITIVE_INFINITY },
|
|
1349
|
-
filter: { default: void 0 },
|
|
1350
|
-
filterFunction: {
|
|
1351
|
-
type: Function,
|
|
1352
|
-
default: void 0
|
|
1353
|
-
},
|
|
1354
|
-
filterable: { default: void 0 },
|
|
1355
|
-
labelSortAsc: { default: "Click to sort ascending" },
|
|
1356
|
-
labelSortClear: { default: "Click to clear sorting" },
|
|
1357
|
-
labelSortDesc: { default: "Click to sort descending" },
|
|
1358
|
-
noFooterSorting: {
|
|
1359
|
-
type: Boolean,
|
|
1360
|
-
default: false
|
|
1361
|
-
},
|
|
1362
|
-
noLocalSorting: {
|
|
1363
|
-
type: Boolean,
|
|
1364
|
-
default: false
|
|
1365
|
-
},
|
|
1366
|
-
noSelectOnClick: {
|
|
1367
|
-
type: Boolean,
|
|
1368
|
-
default: false
|
|
1369
|
-
},
|
|
1370
|
-
sortNullLast: {
|
|
1371
|
-
type: Boolean,
|
|
1372
|
-
default: false
|
|
1373
|
-
},
|
|
1374
|
-
noSortableIcon: {
|
|
1375
|
-
type: Boolean,
|
|
1376
|
-
default: false
|
|
1377
|
-
},
|
|
1378
|
-
sortIconLeft: {
|
|
1379
|
-
type: Boolean,
|
|
1380
|
-
default: false
|
|
1381
|
-
},
|
|
1382
|
-
emptyFilteredText: { default: "There are no records matching your request" },
|
|
1383
|
-
emptyText: { default: "There are no records to show" },
|
|
1384
|
-
showEmpty: {
|
|
1385
|
-
type: Boolean,
|
|
1386
|
-
default: false
|
|
1387
|
-
},
|
|
1388
|
-
align: { default: void 0 },
|
|
1389
|
-
caption: { default: void 0 },
|
|
1390
|
-
detailsTdClass: { default: void 0 },
|
|
1391
|
-
fieldColumnClass: {
|
|
1392
|
-
type: [
|
|
1393
|
-
Function,
|
|
1394
|
-
String,
|
|
1395
|
-
Object,
|
|
1396
|
-
Array
|
|
1397
|
-
],
|
|
1398
|
-
default: void 0
|
|
1399
|
-
},
|
|
1400
|
-
fields: { default: () => [] },
|
|
1401
|
-
footClone: {
|
|
1402
|
-
type: Boolean,
|
|
1403
|
-
default: void 0
|
|
1404
|
-
},
|
|
1405
|
-
footRowVariant: { default: void 0 },
|
|
1406
|
-
footVariant: { default: void 0 },
|
|
1407
|
-
headRowVariant: { default: void 0 },
|
|
1408
|
-
headVariant: { default: void 0 },
|
|
1409
|
-
labelStacked: {
|
|
1410
|
-
type: Boolean,
|
|
1411
|
-
default: void 0
|
|
1412
|
-
},
|
|
1413
|
-
modelValue: { default: void 0 },
|
|
1414
|
-
expandedItems: {},
|
|
1415
|
-
primaryKey: {
|
|
1416
|
-
type: [String, Function],
|
|
1417
|
-
default: void 0
|
|
1418
|
-
},
|
|
1419
|
-
tbodyClass: { default: void 0 },
|
|
1420
|
-
tbodyTrAttrs: {},
|
|
1421
|
-
tbodyTrClass: {
|
|
1422
|
-
type: [
|
|
1423
|
-
Function,
|
|
1424
|
-
String,
|
|
1425
|
-
Array,
|
|
1426
|
-
Object
|
|
1427
|
-
],
|
|
1428
|
-
default: void 0
|
|
1429
|
-
},
|
|
1430
|
-
tfootClass: { default: void 0 },
|
|
1431
|
-
tfootTrClass: { default: void 0 },
|
|
1432
|
-
theadClass: { default: void 0 },
|
|
1433
|
-
theadTrClass: { default: void 0 },
|
|
1434
|
-
bordered: {
|
|
1435
|
-
type: Boolean,
|
|
1436
|
-
default: void 0
|
|
1437
|
-
},
|
|
1438
|
-
borderless: {
|
|
1439
|
-
type: Boolean,
|
|
1440
|
-
default: void 0
|
|
1441
|
-
},
|
|
1442
|
-
borderVariant: { default: void 0 },
|
|
1443
|
-
captionTop: {
|
|
1444
|
-
type: Boolean,
|
|
1445
|
-
default: void 0
|
|
1446
|
-
},
|
|
1447
|
-
dark: {
|
|
1448
|
-
type: Boolean,
|
|
1449
|
-
default: void 0
|
|
1450
|
-
},
|
|
1451
|
-
fixed: {
|
|
1452
|
-
type: Boolean,
|
|
1453
|
-
default: void 0
|
|
1454
|
-
},
|
|
1455
|
-
hover: {
|
|
1456
|
-
type: Boolean,
|
|
1457
|
-
default: void 0
|
|
1458
|
-
},
|
|
1459
|
-
id: { default: void 0 },
|
|
1460
|
-
noBorderCollapse: {
|
|
1461
|
-
type: Boolean,
|
|
1462
|
-
default: void 0
|
|
1463
|
-
},
|
|
1464
|
-
outlined: {
|
|
1465
|
-
type: Boolean,
|
|
1466
|
-
default: void 0
|
|
1467
|
-
},
|
|
1468
|
-
responsive: {
|
|
1469
|
-
type: [Boolean, String],
|
|
1470
|
-
default: void 0
|
|
1471
|
-
},
|
|
1472
|
-
small: {
|
|
1473
|
-
type: Boolean,
|
|
1474
|
-
default: void 0
|
|
1475
|
-
},
|
|
1476
|
-
stacked: {
|
|
1477
|
-
type: [Boolean, String],
|
|
1478
|
-
default: void 0
|
|
1479
|
-
},
|
|
1480
|
-
stickyHeader: {
|
|
1481
|
-
type: [
|
|
1482
|
-
Boolean,
|
|
1483
|
-
String,
|
|
1484
|
-
Number
|
|
1485
|
-
],
|
|
1486
|
-
default: void 0
|
|
1487
|
-
},
|
|
1488
|
-
striped: {
|
|
1489
|
-
type: Boolean,
|
|
1490
|
-
default: void 0
|
|
1491
|
-
},
|
|
1492
|
-
stripedColumns: {
|
|
1493
|
-
type: Boolean,
|
|
1494
|
-
default: void 0
|
|
1495
|
-
},
|
|
1496
|
-
variant: { default: void 0 },
|
|
1497
|
-
tableAttrs: {},
|
|
1498
|
-
debounce: { default: 0 },
|
|
1499
|
-
debounceMaxWait: { default: NaN }
|
|
1500
|
-
}, {
|
|
1501
|
-
"sortBy": { default: void 0 },
|
|
1502
|
-
"sortByModifiers": {},
|
|
1503
|
-
"busy": {
|
|
1504
|
-
type: Boolean,
|
|
1505
|
-
default: false
|
|
1506
|
-
},
|
|
1507
|
-
"busyModifiers": {},
|
|
1508
|
-
"selectedItems": { default: () => [] },
|
|
1509
|
-
"selectedItemsModifiers": {},
|
|
1510
|
-
"expandedItems": { default: () => [] },
|
|
1511
|
-
"expandedItemsModifiers": {},
|
|
1512
|
-
"items": { default: () => [] },
|
|
1513
|
-
"itemsModifiers": {},
|
|
1514
|
-
"currentPage": { default: 1 },
|
|
1515
|
-
"currentPageModifiers": {}
|
|
1516
|
-
}),
|
|
1517
|
-
emits: /* @__PURE__ */ (0, vue.mergeModels)([
|
|
1518
|
-
"filtered",
|
|
1519
|
-
"row-selected",
|
|
1520
|
-
"row-unselected",
|
|
1521
|
-
"sorted",
|
|
1522
|
-
"change",
|
|
1523
|
-
"context-changed",
|
|
1524
|
-
"head-clicked",
|
|
1525
|
-
"row-clicked",
|
|
1526
|
-
"row-dblclicked",
|
|
1527
|
-
"row-contextmenu",
|
|
1528
|
-
"row-hovered",
|
|
1529
|
-
"row-unhovered",
|
|
1530
|
-
"row-middle-clicked"
|
|
1531
|
-
], [
|
|
1532
|
-
"update:sortBy",
|
|
1533
|
-
"update:busy",
|
|
1534
|
-
"update:selectedItems",
|
|
1535
|
-
"update:expandedItems",
|
|
1536
|
-
"update:items",
|
|
1537
|
-
"update:currentPage"
|
|
1538
|
-
]),
|
|
1539
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1540
|
-
const props = require_useDefaults.useDefaults(__props, "BTable");
|
|
1541
|
-
const emit = __emit;
|
|
1542
|
-
const slots = (0, vue.useSlots)();
|
|
1543
|
-
const dynamicCellSlots = (0, vue.computed)(() => Object.keys(slots).filter((key) => key.startsWith("cell(")));
|
|
1544
|
-
const dynamicFootSlots = (0, vue.computed)(() => Object.keys(slots).filter((key) => key.startsWith("foot(")));
|
|
1545
|
-
const sortByModel = (0, vue.useModel)(__props, "sortBy");
|
|
1546
|
-
const busyModel = (0, vue.useModel)(__props, "busy");
|
|
1547
|
-
const selectedItemsModel = (0, vue.useModel)(__props, "selectedItems");
|
|
1548
|
-
const expandedItems = (0, vue.useModel)(__props, "expandedItems");
|
|
1549
|
-
const itemsModel = (0, vue.useModel)(__props, "items");
|
|
1550
|
-
const currentPage = (0, vue.useModel)(__props, "currentPage");
|
|
1551
|
-
const computedId = require_useId.useId(() => props.id);
|
|
1552
|
-
const perPageNumber = require_dist.useToNumber(() => props.perPage, { method: "parseInt" });
|
|
1553
|
-
const debounceNumber = require_dist.useToNumber(() => props.debounce ?? 0, { nanToZero: true });
|
|
1554
|
-
const debounceMaxWaitNumber = require_dist.useToNumber(() => props.debounceMaxWait ?? NaN);
|
|
1555
|
-
const currentPageNumber = require_dist.useToNumber(currentPage, { method: "parseInt" });
|
|
1556
|
-
const writableCurrentPageNumber = (0, vue.computed)({
|
|
1557
|
-
get: () => currentPageNumber.value,
|
|
1558
|
-
set: (v) => {
|
|
1559
|
-
currentPage.value = v;
|
|
1560
|
-
}
|
|
1561
|
-
});
|
|
1562
|
-
const sortController = useTableSort({
|
|
1563
|
-
fields: () => props.fields,
|
|
1564
|
-
sortBy: sortByModel,
|
|
1565
|
-
events: { onSorted: (v) => {
|
|
1566
|
-
emit("sorted", v);
|
|
1567
|
-
} },
|
|
1568
|
-
initialSortDirection: () => props.initialSortDirection,
|
|
1569
|
-
mustSort: () => props.mustSort,
|
|
1570
|
-
multisort: () => props.multisort
|
|
1571
|
-
});
|
|
1572
|
-
const providerController = useTableProvider({
|
|
1573
|
-
items: itemsModel,
|
|
1574
|
-
events: { onFiltered: () => {
|
|
1575
|
-
emit("filtered", computedItems.value);
|
|
1576
|
-
} },
|
|
1577
|
-
busy: busyModel,
|
|
1578
|
-
provider: (0, vue.toRef)(() => props.provider),
|
|
1579
|
-
debounce: {
|
|
1580
|
-
maxWait: debounceMaxWaitNumber,
|
|
1581
|
-
wait: debounceNumber
|
|
1582
|
-
},
|
|
1583
|
-
currentPage: (0, vue.readonly)(writableCurrentPageNumber),
|
|
1584
|
-
perPage: perPageNumber,
|
|
1585
|
-
filter: () => props.filter,
|
|
1586
|
-
noProvider: () => props.noProvider,
|
|
1587
|
-
noProviderFiltering: () => props.noProviderFiltering,
|
|
1588
|
-
noProviderPaging: () => props.noProviderPaging,
|
|
1589
|
-
noProviderSorting: () => props.noProviderSorting,
|
|
1590
|
-
sortBy: sortByModel
|
|
1591
|
-
});
|
|
1592
|
-
const expandedItemsController = useItemExpansion({
|
|
1593
|
-
allItems: itemsModel,
|
|
1594
|
-
primaryKey: (0, vue.toRef)(() => props.primaryKey),
|
|
1595
|
-
expandedItems
|
|
1596
|
-
});
|
|
1597
|
-
const { items: computedItems, displayItems: computedDisplayItems, getStringValue, fields: computedFields, isFilterableTable } = useTableMapper({
|
|
1598
|
-
fields: () => props.fields,
|
|
1599
|
-
provider: {
|
|
1600
|
-
noProviderFiltering: () => props.noProviderFiltering,
|
|
1601
|
-
noProviderPaging: () => props.noProviderPaging,
|
|
1602
|
-
noProviderSorting: () => props.noProviderSorting,
|
|
1603
|
-
usesProvider: providerController.usesProvider
|
|
1604
|
-
},
|
|
1605
|
-
events: { onChange: (v) => {
|
|
1606
|
-
emit("change", v);
|
|
1607
|
-
} },
|
|
1608
|
-
items: itemsModel,
|
|
1609
|
-
pagination: {
|
|
1610
|
-
perPage: perPageNumber,
|
|
1611
|
-
currentPage: writableCurrentPageNumber,
|
|
1612
|
-
filter: {
|
|
1613
|
-
filter: () => props.filter,
|
|
1614
|
-
filterFunction: (0, vue.toRef)(() => props.filterFunction),
|
|
1615
|
-
filterable: () => props.filterable
|
|
1616
|
-
},
|
|
1617
|
-
sort: {
|
|
1618
|
-
iconLeft: () => props.sortIconLeft,
|
|
1619
|
-
isSortable: sortController.isSortable,
|
|
1620
|
-
noLocalSorting: () => props.noLocalSorting,
|
|
1621
|
-
by: sortByModel,
|
|
1622
|
-
sortCompare: (0, vue.toRef)(() => props.sortCompare),
|
|
1623
|
-
sortNullLast: () => props.sortNullLast
|
|
1624
|
-
}
|
|
1625
|
-
},
|
|
1626
|
-
stackedProps: {
|
|
1627
|
-
stacked: () => props.stacked,
|
|
1628
|
-
labelStacked: () => props.labelStacked
|
|
1629
|
-
}
|
|
1630
|
-
});
|
|
1631
|
-
const selectedItemsController = useTableSelectedItems({
|
|
1632
|
-
selectable: () => props.selectable,
|
|
1633
|
-
primaryKey: (0, vue.toRef)(() => props.primaryKey),
|
|
1634
|
-
selectedItems: selectedItemsModel,
|
|
1635
|
-
allItems: computedItems,
|
|
1636
|
-
selectMode: () => props.selectMode,
|
|
1637
|
-
events: {
|
|
1638
|
-
onRowSelected: (item) => {
|
|
1639
|
-
emit("row-selected", item);
|
|
1640
|
-
},
|
|
1641
|
-
onRowUnselected: (item) => {
|
|
1642
|
-
emit("row-unselected", item);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
});
|
|
1646
|
-
useTableKeyboardNavigationInjector({
|
|
1647
|
-
isSortable: sortController.isSortable,
|
|
1648
|
-
selectable: () => props.selectable,
|
|
1649
|
-
noSelectOnClick: () => props.noSelectOnClick
|
|
1650
|
-
});
|
|
1651
|
-
const tableClasses = (0, vue.computed)(() => ({
|
|
1652
|
-
"b-table-busy": busyModel.value,
|
|
1653
|
-
"b-table-selectable": props.selectable,
|
|
1654
|
-
"user-select-none": props.selectable && !props.noSelectOnClick && selectedItemsController.isActivated.value,
|
|
1655
|
-
"b-table-fixed": props.fixed,
|
|
1656
|
-
"b-table-no-border-collapse": props.noBorderCollapse,
|
|
1657
|
-
"b-table-no-sort-icon": props.noSortableIcon
|
|
1658
|
-
}));
|
|
1659
|
-
const getBusyRowClasses = (0, vue.computed)(() => [props.tbodyTrClass ? typeof props.tbodyTrClass === "function" ? props.tbodyTrClass(null, "table-busy") : props.tbodyTrClass : null]);
|
|
1660
|
-
const getFieldColumnClasses = (field) => [{ "b-table-sortable-column": sortController.isSortable.value && field.sortable }];
|
|
1661
|
-
const getRowClasses = (item, type) => [{ [`selected table-${props.selectionVariant}`]: props.selectable && !!item && selectedItemsController.has(item) }, props.tbodyTrClass ? typeof props.tbodyTrClass === "function" ? props.tbodyTrClass(item, type) : props.tbodyTrClass : null];
|
|
1662
|
-
const boundBTableLiteEmits = {
|
|
1663
|
-
onHeadClicked: ({ key, field, event, isFooter = false }) => {
|
|
1664
|
-
emit("head-clicked", {
|
|
1665
|
-
key,
|
|
1666
|
-
field,
|
|
1667
|
-
event,
|
|
1668
|
-
isFooter
|
|
1669
|
-
});
|
|
1670
|
-
if (!isFooter || !props.noFooterSorting) sortController.handleFieldSorting(field);
|
|
1671
|
-
},
|
|
1672
|
-
onRowClicked: ({ item, index, event }) => {
|
|
1673
|
-
if (!props.noSelectOnClick) selectedItemsController.handleRowSelection({
|
|
1674
|
-
item,
|
|
1675
|
-
index,
|
|
1676
|
-
shiftClicked: event.shiftKey,
|
|
1677
|
-
ctrlClicked: event.ctrlKey,
|
|
1678
|
-
metaClicked: event.metaKey
|
|
1679
|
-
});
|
|
1680
|
-
emit("row-clicked", {
|
|
1681
|
-
item,
|
|
1682
|
-
index,
|
|
1683
|
-
event
|
|
1684
|
-
});
|
|
1685
|
-
},
|
|
1686
|
-
onRowDblclicked: (...args) => emit("row-dblclicked", ...args),
|
|
1687
|
-
onRowContextmenu: (...args) => emit("row-contextmenu", ...args),
|
|
1688
|
-
onRowHovered: (...args) => emit("row-hovered", ...args),
|
|
1689
|
-
onRowUnhovered: (...args) => emit("row-unhovered", ...args),
|
|
1690
|
-
onRowMiddleClicked: (...args) => emit("row-middle-clicked", ...args)
|
|
1691
|
-
};
|
|
1692
|
-
const computedLiteProps = (0, vue.computed)(() => ({
|
|
1693
|
-
...require_object.pick(props, [...bTableLiteProps, ...bTableSimpleProps]),
|
|
1694
|
-
tableAttrs: { ariaBusy: busyModel.value },
|
|
1695
|
-
items: computedDisplayItems.value,
|
|
1696
|
-
fields: computedFields.value,
|
|
1697
|
-
tableClass: tableClasses.value,
|
|
1698
|
-
tbodyTrClass: getRowClasses,
|
|
1699
|
-
fieldColumnClass: getFieldColumnClasses,
|
|
1700
|
-
id: computedId.value,
|
|
1701
|
-
...boundBTableLiteEmits
|
|
1702
|
-
}));
|
|
1703
|
-
const emptySlotScope = (0, vue.computed)(() => ({
|
|
1704
|
-
emptyFilteredText: props.emptyFilteredText,
|
|
1705
|
-
emptyText: props.emptyText,
|
|
1706
|
-
fields: computedFields.value,
|
|
1707
|
-
items: computedItems.value
|
|
1708
|
-
}));
|
|
1709
|
-
const showEmptyFiltered = (0, vue.computed)(() => isFilterableTable.value && props.filter !== void 0 && props.filter !== "");
|
|
1710
|
-
const getSortLabel = (field) => {
|
|
1711
|
-
if (!sortController.isSortable.value || !field.sortable) return "";
|
|
1712
|
-
const currentSort = sortByModel.value?.find((s) => s.key === field.key);
|
|
1713
|
-
if (!currentSort || currentSort.order === void 0) return props.labelSortAsc;
|
|
1714
|
-
if (currentSort.order === "asc") return props.labelSortDesc;
|
|
1715
|
-
const mustSortValue = props.mustSort;
|
|
1716
|
-
if (mustSortValue === true || Array.isArray(mustSortValue) && mustSortValue.includes(field.key)) return props.labelSortAsc;
|
|
1717
|
-
return props.labelSortClear;
|
|
1718
|
-
};
|
|
1719
|
-
(0, vue.watch)([
|
|
1720
|
-
() => props.filter,
|
|
1721
|
-
sortByModel,
|
|
1722
|
-
writableCurrentPageNumber,
|
|
1723
|
-
perPageNumber
|
|
1724
|
-
], ([filter, sortBy, currentPage, perPage]) => {
|
|
1725
|
-
emit("context-changed", {
|
|
1726
|
-
filter,
|
|
1727
|
-
sortBy,
|
|
1728
|
-
currentPage,
|
|
1729
|
-
perPage
|
|
1730
|
-
});
|
|
1731
|
-
}, { deep: true });
|
|
1732
|
-
__expose({
|
|
1733
|
-
expansion: {
|
|
1734
|
-
...expandedItemsController,
|
|
1735
|
-
expandedItems: (0, vue.readonly)(expandedItems)
|
|
1736
|
-
},
|
|
1737
|
-
selection: {
|
|
1738
|
-
...selectedItemsController,
|
|
1739
|
-
selectedItems: (0, vue.readonly)(selectedItemsModel)
|
|
1740
|
-
},
|
|
1741
|
-
items: computedItems,
|
|
1742
|
-
displayItems: computedDisplayItems,
|
|
1743
|
-
getStringValue,
|
|
1744
|
-
refresh: providerController.callItemsProvider
|
|
1745
|
-
});
|
|
1746
|
-
return (_ctx, _cache) => {
|
|
1747
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)(BTableLite_default, (0, vue.mergeProps)(computedLiteProps.value, {
|
|
1748
|
-
"expanded-items": expandedItems.value,
|
|
1749
|
-
"onUpdate:expandedItems": _cache[0] || (_cache[0] = ($event) => expandedItems.value = $event)
|
|
1750
|
-
}), (0, vue.createSlots)({
|
|
1751
|
-
"custom-body": (0, vue.withCtx)((scope) => [busyModel.value && slots["table-busy"] ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTr_default, {
|
|
1752
|
-
key: 0,
|
|
1753
|
-
class: (0, vue.normalizeClass)(["b-table-busy-slot", getBusyRowClasses.value])
|
|
1754
|
-
}, {
|
|
1755
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(BTd_default, { colspan: scope.fields.length }, {
|
|
1756
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "table-busy")]),
|
|
1757
|
-
_: 3
|
|
1758
|
-
}, 8, ["colspan"])]),
|
|
1759
|
-
_: 2
|
|
1760
|
-
}, 1032, ["class"])) : !busyModel.value && (0, vue.unref)(props).showEmpty === true && (0, vue.unref)(computedItems).length === 0 ? ((0, vue.openBlock)(), (0, vue.createBlock)(BTr_default, {
|
|
1761
|
-
key: 1,
|
|
1762
|
-
class: "b-table-empty-row"
|
|
1763
|
-
}, {
|
|
1764
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(BTd_default, { colspan: (0, vue.unref)(computedFields).length }, {
|
|
1765
|
-
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_2, [(0, vue.createElementVNode)("div", _hoisted_3, [showEmptyFiltered.value ? (0, vue.renderSlot)(_ctx.$slots, "empty-filtered", (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 0 }, emptySlotScope.value)), () => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(props).emptyFilteredText), 1)]) : (0, vue.renderSlot)(_ctx.$slots, "empty", (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 1 }, emptySlotScope.value)), () => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(props).emptyText), 1)])])])]),
|
|
1766
|
-
_: 3
|
|
1767
|
-
}, 8, ["colspan"])]),
|
|
1768
|
-
_: 3
|
|
1769
|
-
})) : (0, vue.createCommentVNode)("", true)]),
|
|
1770
|
-
_: 2
|
|
1771
|
-
}, [
|
|
1772
|
-
slots["table-colgroup"] ? {
|
|
1773
|
-
name: "table-colgroup",
|
|
1774
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "table-colgroup", (0, vue.normalizeProps)((0, vue.guardReactiveProps)(scope)))]),
|
|
1775
|
-
key: "0"
|
|
1776
|
-
} : void 0,
|
|
1777
|
-
slots["thead-top"] ? {
|
|
1778
|
-
name: "thead-top",
|
|
1779
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "thead-top", (0, vue.mergeProps)(scope, {
|
|
1780
|
-
clearSelected: (0, vue.unref)(selectedItemsController).clear,
|
|
1781
|
-
selectAllRows: (0, vue.unref)(selectedItemsController).setAll,
|
|
1782
|
-
fields: (0, vue.unref)(computedFields)
|
|
1783
|
-
}))]),
|
|
1784
|
-
key: "1"
|
|
1785
|
-
} : void 0,
|
|
1786
|
-
slots["thead-sub"] ? {
|
|
1787
|
-
name: "thead-sub",
|
|
1788
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "thead-sub", (0, vue.mergeProps)(scope, { fields: (0, vue.unref)(computedFields) }))]),
|
|
1789
|
-
key: "2"
|
|
1790
|
-
} : void 0,
|
|
1791
|
-
slots["top-row"] ? {
|
|
1792
|
-
name: "top-row",
|
|
1793
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "top-row", (0, vue.mergeProps)(scope, { fields: (0, vue.unref)(computedFields) }))]),
|
|
1794
|
-
key: "3"
|
|
1795
|
-
} : void 0,
|
|
1796
|
-
slots["row-expansion"] ? {
|
|
1797
|
-
name: "row-expansion",
|
|
1798
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "row-expansion", (0, vue.mergeProps)(scope, {
|
|
1799
|
-
fields: (0, vue.unref)(computedFields),
|
|
1800
|
-
selectRow: () => (0, vue.unref)(selectedItemsController).add(scope.item),
|
|
1801
|
-
unselectRow: () => (0, vue.unref)(selectedItemsController).remove(scope.item),
|
|
1802
|
-
rowSelected: (0, vue.unref)(selectedItemsController).has(scope.item)
|
|
1803
|
-
}))]),
|
|
1804
|
-
key: "4"
|
|
1805
|
-
} : void 0,
|
|
1806
|
-
slots["bottom-row"] ? {
|
|
1807
|
-
name: "bottom-row",
|
|
1808
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "bottom-row", (0, vue.mergeProps)(scope, { fields: (0, vue.unref)(computedFields) }))]),
|
|
1809
|
-
key: "5"
|
|
1810
|
-
} : void 0,
|
|
1811
|
-
slots["custom-foot"] ? {
|
|
1812
|
-
name: "custom-foot",
|
|
1813
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "custom-foot", (0, vue.mergeProps)(scope, { fields: (0, vue.unref)(computedFields) }))]),
|
|
1814
|
-
key: "6"
|
|
1815
|
-
} : void 0,
|
|
1816
|
-
slots["table-caption"] ? {
|
|
1817
|
-
name: "table-caption",
|
|
1818
|
-
fn: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "table-caption")]),
|
|
1819
|
-
key: "7"
|
|
1820
|
-
} : void 0,
|
|
1821
|
-
(0, vue.renderList)(dynamicCellSlots.value, (name) => {
|
|
1822
|
-
return {
|
|
1823
|
-
name,
|
|
1824
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, name, (0, vue.mergeProps)(scope, {
|
|
1825
|
-
selectRow: () => (0, vue.unref)(selectedItemsController).add(scope.item),
|
|
1826
|
-
unselectRow: () => (0, vue.unref)(selectedItemsController).remove(scope.item),
|
|
1827
|
-
rowSelected: (0, vue.unref)(selectedItemsController).has(scope.item)
|
|
1828
|
-
}))])
|
|
1829
|
-
};
|
|
1830
|
-
}),
|
|
1831
|
-
(0, vue.renderList)(dynamicFootSlots.value, (name) => {
|
|
1832
|
-
return {
|
|
1833
|
-
name,
|
|
1834
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, name, (0, vue.mergeProps)(scope, {
|
|
1835
|
-
selectAllRows: (0, vue.unref)(selectedItemsController).setAll,
|
|
1836
|
-
clearSelected: (0, vue.unref)(selectedItemsController).clear
|
|
1837
|
-
}))])
|
|
1838
|
-
};
|
|
1839
|
-
}),
|
|
1840
|
-
(0, vue.renderList)((0, vue.unref)(computedFields), (field) => {
|
|
1841
|
-
return {
|
|
1842
|
-
name: `head(${String(field.key)})`,
|
|
1843
|
-
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, slots[`head(${String(field.key)})`] ? `head(${String(field.key)})` : "head()", (0, vue.mergeProps)(scope, {
|
|
1844
|
-
selectAllRows: (0, vue.unref)(selectedItemsController).setAll,
|
|
1845
|
-
clearSelected: (0, vue.unref)(selectedItemsController).clear
|
|
1846
|
-
}), () => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(getTableFieldHeadLabel)(field)) + " ", 1), (0, vue.unref)(sortController).isSortable.value && field.sortable ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1, (0, vue.toDisplayString)(getSortLabel(field)), 1)) : (0, vue.createCommentVNode)("", true)])])
|
|
1847
|
-
};
|
|
1848
|
-
})
|
|
1849
|
-
]), 1040, ["expanded-items"]);
|
|
1850
|
-
};
|
|
1851
|
-
}
|
|
1852
|
-
});
|
|
1853
|
-
//#endregion
|
|
1854
|
-
Object.defineProperty(exports, "BTableLite_default", {
|
|
1855
|
-
enumerable: true,
|
|
1856
|
-
get: function() {
|
|
1857
|
-
return BTableLite_default;
|
|
1858
|
-
}
|
|
1859
|
-
});
|
|
1860
|
-
Object.defineProperty(exports, "BTable_default", {
|
|
1861
|
-
enumerable: true,
|
|
1862
|
-
get: function() {
|
|
1863
|
-
return BTable_default;
|
|
1864
|
-
}
|
|
1865
|
-
});
|
|
1866
|
-
Object.defineProperty(exports, "BTbody_default", {
|
|
1867
|
-
enumerable: true,
|
|
1868
|
-
get: function() {
|
|
1869
|
-
return BTbody_default;
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
Object.defineProperty(exports, "BTd_default", {
|
|
1873
|
-
enumerable: true,
|
|
1874
|
-
get: function() {
|
|
1875
|
-
return BTd_default;
|
|
1876
|
-
}
|
|
1877
|
-
});
|
|
1878
|
-
Object.defineProperty(exports, "BTfoot_default", {
|
|
1879
|
-
enumerable: true,
|
|
1880
|
-
get: function() {
|
|
1881
|
-
return BTfoot_default;
|
|
1882
|
-
}
|
|
1883
|
-
});
|
|
1884
|
-
Object.defineProperty(exports, "BTh_default", {
|
|
1885
|
-
enumerable: true,
|
|
1886
|
-
get: function() {
|
|
1887
|
-
return BTh_default;
|
|
1888
|
-
}
|
|
1889
|
-
});
|
|
1890
|
-
Object.defineProperty(exports, "BThead_default", {
|
|
1891
|
-
enumerable: true,
|
|
1892
|
-
get: function() {
|
|
1893
|
-
return BThead_default;
|
|
1894
|
-
}
|
|
1895
|
-
});
|
|
1896
|
-
Object.defineProperty(exports, "BTr_default", {
|
|
1897
|
-
enumerable: true,
|
|
1898
|
-
get: function() {
|
|
1899
|
-
return BTr_default;
|
|
1900
|
-
}
|
|
1901
|
-
});
|
|
1902
|
-
|
|
1903
|
-
//# sourceMappingURL=BTable-BCWW00u_.js.map
|