maz-ui 3.47.2-beta.2 → 3.47.2-beta.21
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/components/MazAccordion.d.ts +3 -2
- package/components/MazAccordion.mjs +90 -98
- package/components/MazAnimatedCounter.d.ts +16 -32
- package/components/MazAnimatedCounter.mjs +26 -26
- package/components/MazAvatar.d.ts +2 -1
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +23 -14
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.d.ts +7 -2
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.d.ts +13 -25
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +4 -3
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +5 -4
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +3 -2
- package/components/MazCardSpotlight.mjs +18 -22
- package/components/MazCarousel.d.ts +3 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +86 -83
- package/components/MazChecklist.d.ts +2 -5
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +31 -60
- package/components/MazCircularProgressBar.mjs +76 -74
- package/components/MazDialog.d.ts +24 -33
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +9 -5
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.d.ts +25 -3
- package/components/MazDropdown.mjs +2 -325
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazExpandAnimation.mjs +22 -25
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazFullscreenLoader.mjs +7 -7
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +14 -13
- package/components/MazInput.d.ts +18 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputCode.mjs +36 -39
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +4 -3
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -1
- package/components/MazLink.d.ts +2 -1
- package/components/MazLink.mjs +1 -1
- package/components/MazLoadingBar.d.ts +1 -1
- package/components/MazLoadingBar.mjs +31 -27
- package/components/MazPagination.d.ts +3 -2
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +31 -55
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +13 -24
- package/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
- package/components/MazPicker.d.ts +3 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +4 -3
- package/components/MazRadio.d.ts +1 -1
- package/components/MazRadio.mjs +31 -37
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.d.ts +2 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazSpinner.d.ts +1 -1
- package/components/MazStepper.d.ts +3 -2
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -1
- package/components/MazSwitch.mjs +29 -33
- package/components/MazTable.d.ts +8 -2
- package/components/MazTable.mjs +3 -2
- package/components/MazTableCell.d.ts +3 -2
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.d.ts +3 -2
- package/components/MazTableRow.mjs +16 -16
- package/components/MazTableTitle.d.ts +3 -2
- package/components/MazTableTitle.mjs +18 -18
- package/components/MazTabs.d.ts +3 -2
- package/components/MazTabsBar.d.ts +3 -2
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.d.ts +3 -2
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.d.ts +2 -1
- package/components/MazTabsContentItem.mjs +11 -11
- package/components/MazTextarea.d.ts +58 -32
- package/components/MazTextarea.mjs +128 -109
- package/components/MazTransitionExpand.d.ts +2 -1
- package/components/MazTransitionExpand.mjs +9 -9
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-DFoZvWmg.mjs → MazAvatar-CZzOIbzh.mjs} +54 -54
- package/components/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-DCzaExPj.mjs} +2 -2
- package/components/chunks/MazBottomSheet-DGsGO0zo.mjs +224 -0
- package/components/chunks/MazBtn-4-B-zs6Y.mjs +103 -0
- package/components/chunks/MazBtn-BS2kvd1Z.mjs +103 -0
- package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
- package/components/chunks/MazBtn-C60T0UDa.mjs +103 -0
- package/components/chunks/MazBtn-C6zsmGnw.mjs +103 -0
- package/components/chunks/MazBtn-C7yEnuOD.mjs +103 -0
- package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
- package/components/chunks/MazBtn-CsLtHm4K.mjs +103 -0
- package/components/chunks/MazBtn-D1jMqwE1.mjs +103 -0
- package/components/chunks/MazBtn-DAXwt847.mjs +103 -0
- package/components/chunks/MazBtn-DOWVQgpN.mjs +103 -0
- package/components/chunks/MazBtn-DZaVjTvW.mjs +103 -0
- package/components/chunks/MazBtn-ZAcYNusG.mjs +103 -0
- package/components/chunks/MazBtn-oZhhJy09.mjs +103 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-98OuVlyK.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-COTaKhKF.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BNvSeNBP.mjs} +63 -59
- package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-CCma_qyQ.mjs} +63 -59
- package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-eOEEACaM.mjs} +64 -60
- package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-Bb_70sf5.mjs} +110 -111
- package/components/chunks/MazDialog-Ca3jJ12T.mjs +297 -0
- package/components/chunks/MazDialogPromise-DOnmLhui.mjs +551 -0
- package/components/chunks/MazDrawer-Bas9dy0D.mjs +226 -0
- package/components/chunks/MazDropdown-0r445NfW.mjs +426 -0
- package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-r8SBTCgJ.mjs} +42 -45
- package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-xPp1apvO.mjs} +94 -97
- package/components/chunks/MazIcon-BoTByt7n.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
- package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-kLACGOa2.mjs} +4 -3
- package/components/chunks/MazInput-BM4n-byz.mjs +313 -0
- package/components/chunks/MazInput-BcutbP8N.mjs +314 -0
- package/components/chunks/MazInput-C9Qh4Gt3.mjs +324 -0
- package/components/chunks/MazInputNumber-DgjOMiOt.mjs +600 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-D6fJN9yv.mjs} +200 -169
- package/components/chunks/{MazInputTags-Dj3sW-e5.mjs → MazInputTags-DthGSyHQ.mjs} +251 -223
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-tud3eDgU.mjs} +1 -1
- package/components/chunks/MazLoadingBar-C2qPjfEQ.mjs +36 -0
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/MazPhoneNumberInput-BQjByOtQ.mjs +1813 -0
- package/components/chunks/MazPicker-BljfUneI.mjs +2486 -0
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-CEVb4BXw.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-DayGMC9m.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-DC1lFIbp.mjs} +1 -1
- package/components/chunks/MazSelect-CH3JdigO.mjs +867 -0
- package/components/chunks/MazSelect-D3KXcHJS.mjs +550 -0
- package/components/chunks/MazSpinner-B5JChIrj.mjs +34 -0
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-BBZoDxwq.mjs} +1 -1
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-BIPm54-3.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/MazSpinner-C-ln9ldX.mjs +34 -0
- package/components/chunks/MazSpinner-C11EOZZd.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C6h03sqc.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-CCc9ajpj.mjs} +1 -1
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CgKOIkQQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner-Cp_nPioh.mjs} +1 -1
- package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-CwdlrYSt.mjs} +1 -1
- package/components/chunks/MazSpinner-D5Sbo759.mjs +34 -0
- package/components/chunks/MazSpinner-DPur0-r-.mjs +34 -0
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +34 -0
- package/components/chunks/MazSpinner-DoPIk0St.mjs +34 -0
- package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-DqD51Fb6.mjs} +1 -1
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZFhNCy24.mjs +34 -0
- package/components/chunks/MazSpinner-b90e3OQK.mjs +34 -0
- package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
- package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BU3Hluiu.mjs} +85 -81
- package/components/chunks/MazTableCell-DKMZAanm.mjs +23 -0
- package/components/chunks/MazTableRow-CDHpmXfw.mjs +30 -0
- package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-BSFZ84Ob.mjs} +4 -4
- package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar--Xq_cpuz.mjs} +62 -78
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-Cedz9Ree.mjs} +8 -8
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-CFge_w1W.cjs +1 -0
- package/modules/chunks/MazBtn-yNCoLFA6.mjs +103 -0
- package/modules/chunks/{MazIcon-DEgoQbMj.mjs → MazIcon-C3__MBEL.mjs} +4 -3
- package/modules/chunks/{MazIcon-CkuzyufF.cjs → MazIcon-CqhvM2xp.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BurN-1pb.mjs → MazSpinner-C4XtaFJk.mjs} +1 -1
- package/modules/chunks/{MazSpinner-jP4QsCNE.cjs → MazSpinner-DkJAN36F.cjs} +1 -1
- package/modules/chunks/index-Bawg2UGE.cjs +124 -0
- package/modules/chunks/{index-CxFUggmu.mjs → index-CXu9R01-.mjs} +1207 -962
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +23 -22
- package/tailwindcss/variables/colors.ts +2 -0
- package/types/components/MazAccordion.vue.d.ts +3 -2
- package/types/components/MazAnimatedCounter.vue.d.ts +16 -32
- package/types/components/MazAvatar.vue.d.ts +2 -1
- package/types/components/MazBackdrop.vue.d.ts +23 -14
- package/types/components/MazBadge.vue.d.ts +7 -2
- package/types/components/MazBottomSheet.vue.d.ts +13 -25
- package/types/components/MazBtn.vue.d.ts +4 -3
- package/types/components/MazCard.vue.d.ts +5 -4
- package/types/components/MazCardSpotlight.vue.d.ts +3 -2
- package/types/components/MazCarousel.vue.d.ts +3 -2
- package/types/components/MazCheckbox.vue.d.ts +4 -3
- package/types/components/MazChecklist.vue.d.ts +2 -5
- package/types/components/MazCircularProgressBar.vue.d.ts +31 -60
- package/types/components/MazDialog.vue.d.ts +24 -33
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +9 -5
- package/types/components/MazDropdown.vue.d.ts +25 -3
- package/types/components/MazDropzone.vue.d.ts +1 -1
- package/types/components/MazExpandAnimation.vue.d.ts +6 -5
- package/types/components/MazFullscreenLoader.vue.d.ts +2 -1
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInput.vue.d.ts +18 -3
- package/types/components/MazInputCode.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +4 -3
- package/types/components/MazLazyImg.vue.d.ts +2 -1
- package/types/components/MazLink.vue.d.ts +2 -1
- package/types/components/MazLoadingBar.vue.d.ts +1 -1
- package/types/components/MazPagination.vue.d.ts +3 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +31 -55
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +13 -24
- package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +3 -1
- package/types/components/MazPullToRefresh.vue.d.ts +4 -3
- package/types/components/MazRadio.vue.d.ts +1 -1
- package/types/components/MazRadioButtons.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSelect.vue.d.ts +2 -2
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/components/MazSpinner.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +3 -2
- package/types/components/MazSwitch.vue.d.ts +2 -1
- package/types/components/MazTable.vue.d.ts +8 -2
- package/types/components/MazTableCell.vue.d.ts +3 -2
- package/types/components/MazTableRow.vue.d.ts +3 -2
- package/types/components/MazTableTitle.vue.d.ts +3 -2
- package/types/components/MazTabs.vue.d.ts +3 -2
- package/types/components/MazTabsBar.vue.d.ts +3 -2
- package/types/components/MazTabsContent.vue.d.ts +3 -2
- package/types/components/MazTabsContentItem.vue.d.ts +2 -1
- package/types/components/MazTextarea.vue.d.ts +58 -32
- package/types/components/MazTransitionExpand.vue.d.ts +2 -1
- package/types/modules/composables/useFormValidator/types.d.ts +8 -8
- package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
- package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
- package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/MazPhoneNumberInput.d.ts +0 -239
- package/components/chunks/MazBottomSheet-CGRvZmGd.mjs +0 -208
- package/components/chunks/MazBtn-2VKM1wZu.mjs +0 -106
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BMYXMZuX.mjs +0 -106
- package/components/chunks/MazBtn-BijEMn4r.mjs +0 -106
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-DfqRZvbB.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cDJlUVVY.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazDialog-khofH-7I.mjs +0 -237
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +0 -488
- package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
- package/components/chunks/MazInput-DC3S-CVu.mjs +0 -282
- package/components/chunks/MazInput-DzWkS-g8.mjs +0 -293
- package/components/chunks/MazInput-NE6H-10w.mjs +0 -281
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazLoadingBar-DdjHRC7g.mjs +0 -32
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazPhoneNumberInput-BbssOUzo.mjs +0 -1778
- package/components/chunks/MazPicker-DwWiIYAR.mjs +0 -2456
- package/components/chunks/MazSelect-BJ07NVXQ.mjs +0 -843
- package/components/chunks/MazSelect-CDV9Fx6m.mjs +0 -556
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CykRbNHD.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-Dmkr_r9u.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
- package/components/chunks/MazTableCell-DILuUCTe.mjs +0 -23
- package/components/chunks/MazTableRow-D6H6-c8J.mjs +0 -30
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
- package/modules/chunks/MazBtn-B_Xlvgbg.cjs +0 -1
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +0 -106
- package/modules/chunks/index-CUNN0eIB.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -239
|
@@ -1,843 +0,0 @@
|
|
|
1
|
-
import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as q, normalizeStyle as x, createElementVNode as E, renderSlot as U, createBlock as K, unref as b, resolveDynamicComponent as me, createCommentVNode as g, withDirectives as be, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, toDisplayString as de, withModifiers as F, withCtx as _, createVNode as H, useCssVars as Pe, onBeforeMount as Fe, nextTick as se, Transition as He, Fragment as ve, renderList as qe } from "vue";
|
|
2
|
-
import '../assets/MazSelect.css';function ze({
|
|
3
|
-
componentName: u,
|
|
4
|
-
providedId: r
|
|
5
|
-
}) {
|
|
6
|
-
const l = Me();
|
|
7
|
-
return p(() => r ?? `${u}-${l}`);
|
|
8
|
-
}
|
|
9
|
-
const Ue = {
|
|
10
|
-
removeAccents: !0,
|
|
11
|
-
caseSensitive: !1,
|
|
12
|
-
replaceSpaces: !0,
|
|
13
|
-
removeSpecialCharacters: !1,
|
|
14
|
-
trim: !0,
|
|
15
|
-
normalizeSpaces: !0,
|
|
16
|
-
removeNumbers: !1,
|
|
17
|
-
customNormalizationForms: ["NFC", "NFKD"]
|
|
18
|
-
};
|
|
19
|
-
function ee(u, r) {
|
|
20
|
-
const l = { ...Ue, ...r }, t = {
|
|
21
|
-
À: "A",
|
|
22
|
-
Á: "A",
|
|
23
|
-
Â: "A",
|
|
24
|
-
Ã: "A",
|
|
25
|
-
Ä: "A",
|
|
26
|
-
Å: "A",
|
|
27
|
-
à: "a",
|
|
28
|
-
á: "a",
|
|
29
|
-
â: "a",
|
|
30
|
-
ã: "a",
|
|
31
|
-
ä: "a",
|
|
32
|
-
å: "a",
|
|
33
|
-
È: "E",
|
|
34
|
-
É: "E",
|
|
35
|
-
Ê: "E",
|
|
36
|
-
Ë: "E",
|
|
37
|
-
è: "e",
|
|
38
|
-
é: "e",
|
|
39
|
-
ê: "e",
|
|
40
|
-
ë: "e",
|
|
41
|
-
Î: "I",
|
|
42
|
-
Ï: "I",
|
|
43
|
-
í: "I",
|
|
44
|
-
î: "i",
|
|
45
|
-
ï: "i",
|
|
46
|
-
Ô: "O",
|
|
47
|
-
Õ: "O",
|
|
48
|
-
Ö: "O",
|
|
49
|
-
Ø: "O",
|
|
50
|
-
ô: "o",
|
|
51
|
-
õ: "o",
|
|
52
|
-
ö: "o",
|
|
53
|
-
ø: "o",
|
|
54
|
-
Ù: "U",
|
|
55
|
-
Ú: "U",
|
|
56
|
-
Û: "U",
|
|
57
|
-
Ü: "U",
|
|
58
|
-
ù: "u",
|
|
59
|
-
ú: "u",
|
|
60
|
-
û: "u",
|
|
61
|
-
ü: "u",
|
|
62
|
-
Ç: "C",
|
|
63
|
-
ç: "c",
|
|
64
|
-
ÿ: "y",
|
|
65
|
-
Ñ: "N",
|
|
66
|
-
ñ: "n",
|
|
67
|
-
ó: "o"
|
|
68
|
-
};
|
|
69
|
-
let s = u.toString();
|
|
70
|
-
if (l.trim && (s = s.trim()), l.normalizeSpaces && (s = s.replaceAll(/\s+/g, " ")), l.replaceSpaces && (s = s.replaceAll(" ", "-")), l.removeNumbers && (s = s.replaceAll(/\d/g, "")), l.removeAccents && (s = s.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (d) => t[d] || d), s = s.replaceAll(/[\u0300-\u036F]/g, "")), l.caseSensitive === !1 && (s = s.toLowerCase()), l.removeSpecialCharacters && (s = s.replaceAll(/[^\dA-Z-]/gi, "")), l.trim && (s = s.trim()), l.customNormalizationForms)
|
|
71
|
-
for (const d of l.customNormalizationForms)
|
|
72
|
-
s = s.normalize(d);
|
|
73
|
-
return s;
|
|
74
|
-
}
|
|
75
|
-
function We(u, r) {
|
|
76
|
-
const l = u.length, t = r.length, s = [];
|
|
77
|
-
for (let d = 0; d <= l; d++)
|
|
78
|
-
s[d] = [d];
|
|
79
|
-
for (let d = 0; d <= t; d++)
|
|
80
|
-
s[0][d] = d;
|
|
81
|
-
for (let d = 1; d <= l; d++)
|
|
82
|
-
for (let y = 1; y <= t; y++) {
|
|
83
|
-
const $ = u[d - 1] === r[y - 1] ? 0 : 1;
|
|
84
|
-
s[d][y] = Math.min(
|
|
85
|
-
s[d - 1][y] + 1,
|
|
86
|
-
s[d][y - 1] + 1,
|
|
87
|
-
s[d - 1][y - 1] + $
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
return s[l][t];
|
|
91
|
-
}
|
|
92
|
-
function Ve(u, r) {
|
|
93
|
-
const l = We(u, r), t = Math.max(u.length, r.length);
|
|
94
|
-
return 1 - l / t;
|
|
95
|
-
}
|
|
96
|
-
function je(u, r, l = 0.75) {
|
|
97
|
-
return Ve(u, r) >= l;
|
|
98
|
-
}
|
|
99
|
-
function ue(u, r, l = 0.75) {
|
|
100
|
-
const t = p(
|
|
101
|
-
() => ee(typeof u == "string" ? u : u.value)
|
|
102
|
-
), s = p(
|
|
103
|
-
() => ee(typeof r == "string" ? r : r.value)
|
|
104
|
-
), d = p(() => typeof l == "number" ? l : l.value), y = p(() => Ve(t.value, s.value));
|
|
105
|
-
return {
|
|
106
|
-
isMatching: p(
|
|
107
|
-
() => je(t.value, s.value, d.value)
|
|
108
|
-
),
|
|
109
|
-
score: y
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function ke(u, r, l) {
|
|
113
|
-
var y;
|
|
114
|
-
u.stopPropagation();
|
|
115
|
-
const t = typeof l.value == "function" ? l.value : l.value.handler, s = typeof l.value == "object" ? l.value.exclude : void 0;
|
|
116
|
-
let d = !1;
|
|
117
|
-
if (s && s.length > 0) {
|
|
118
|
-
for (const $ of s)
|
|
119
|
-
if (!d && u.target instanceof HTMLElement) {
|
|
120
|
-
const W = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
|
|
121
|
-
d = u.target.getAttribute("id") === W;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
!r.contains(u.target) && !d && (t == null || t());
|
|
125
|
-
}
|
|
126
|
-
function Ie() {
|
|
127
|
-
return document.ontouchstart === null ? "touchstart" : "click";
|
|
128
|
-
}
|
|
129
|
-
function Qe(u, r) {
|
|
130
|
-
const l = Ie();
|
|
131
|
-
document.removeEventListener(l, (t) => ke(t, u, r));
|
|
132
|
-
}
|
|
133
|
-
function Re(u, r) {
|
|
134
|
-
if (typeof r.value != "function" && typeof r.value == "object" && typeof r.value.handler != "function") {
|
|
135
|
-
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
const l = Ie();
|
|
139
|
-
document.addEventListener(l, (t) => ke(t, u, r));
|
|
140
|
-
}
|
|
141
|
-
const Ge = {
|
|
142
|
-
mounted: Re,
|
|
143
|
-
unmounted: Qe
|
|
144
|
-
};
|
|
145
|
-
function Ze(u, r) {
|
|
146
|
-
let l;
|
|
147
|
-
return function(...t) {
|
|
148
|
-
clearTimeout(l), l = setTimeout(() => {
|
|
149
|
-
u.apply(this, t);
|
|
150
|
-
}, r);
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
const we = (u, r) => {
|
|
154
|
-
const l = u.__vccOpts || u;
|
|
155
|
-
for (const [t, s] of r)
|
|
156
|
-
l[t] = s;
|
|
157
|
-
return l;
|
|
158
|
-
};
|
|
159
|
-
let re = null;
|
|
160
|
-
function Je(u, r) {
|
|
161
|
-
re && clearTimeout(re), re = setTimeout(u, r);
|
|
162
|
-
}
|
|
163
|
-
const Xe = {
|
|
164
|
-
key: 0,
|
|
165
|
-
class: "m-input-wrapper-left"
|
|
166
|
-
}, Ye = { class: "m-input-wrapper-input" }, xe = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], _e = { key: 0 }, et = {
|
|
167
|
-
key: 1,
|
|
168
|
-
class: "m-input-wrapper-right"
|
|
169
|
-
}, tt = /* @__PURE__ */ he({
|
|
170
|
-
inheritAttrs: !1,
|
|
171
|
-
__name: "MazInput",
|
|
172
|
-
props: {
|
|
173
|
-
style: { default: void 0 },
|
|
174
|
-
class: { default: void 0 },
|
|
175
|
-
modelValue: { default: void 0 },
|
|
176
|
-
placeholder: { default: void 0 },
|
|
177
|
-
label: { default: void 0 },
|
|
178
|
-
name: { default: void 0 },
|
|
179
|
-
color: { default: "primary" },
|
|
180
|
-
type: { default: "text" },
|
|
181
|
-
required: { type: Boolean, default: !1 },
|
|
182
|
-
disabled: { type: Boolean, default: !1 },
|
|
183
|
-
readonly: { type: Boolean, default: !1 },
|
|
184
|
-
id: { default: void 0 },
|
|
185
|
-
error: { type: Boolean, default: !1 },
|
|
186
|
-
success: { type: Boolean, default: !1 },
|
|
187
|
-
warning: { type: Boolean, default: !1 },
|
|
188
|
-
hint: { default: void 0 },
|
|
189
|
-
inputClasses: { default: void 0 },
|
|
190
|
-
noBorder: { type: Boolean, default: !1 },
|
|
191
|
-
noRadius: { type: Boolean, default: !1 },
|
|
192
|
-
inputmode: { default: "text" },
|
|
193
|
-
size: { default: "md" },
|
|
194
|
-
debounce: { type: [Boolean, Number], default: !1 },
|
|
195
|
-
debounceDelay: { default: 500 },
|
|
196
|
-
validButton: { type: Boolean, default: !1 },
|
|
197
|
-
validButtonLoading: { type: Boolean, default: !1 },
|
|
198
|
-
autoFocus: { type: Boolean, default: !1 },
|
|
199
|
-
borderActive: { type: Boolean, default: !1 },
|
|
200
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
201
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
202
|
-
roundedSize: { default: void 0 },
|
|
203
|
-
block: { type: Boolean }
|
|
204
|
-
},
|
|
205
|
-
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
206
|
-
setup(u, { emit: r }) {
|
|
207
|
-
const l = u, t = r, s = A(() => import("./MazBtn-BMYXMZuX.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), W = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
|
|
208
|
-
componentName: "MazInput",
|
|
209
|
-
providedId: l.id
|
|
210
|
-
});
|
|
211
|
-
Te(() => {
|
|
212
|
-
var o;
|
|
213
|
-
l.autoFocus && ((o = O.value) == null || o.focus());
|
|
214
|
-
});
|
|
215
|
-
const G = p(() => l.type === "password"), oe = p(() => z.value ? "text" : l.type), I = p(() => {
|
|
216
|
-
if (!l.noBorder) {
|
|
217
|
-
if (l.error)
|
|
218
|
-
return "maz-border-danger";
|
|
219
|
-
if (l.success)
|
|
220
|
-
return "maz-border-success";
|
|
221
|
-
if (l.warning)
|
|
222
|
-
return "maz-border-warning";
|
|
223
|
-
if (f.value || l.borderActive) {
|
|
224
|
-
if (l.color === "black")
|
|
225
|
-
return "maz-border-black";
|
|
226
|
-
if (l.color === "danger")
|
|
227
|
-
return "maz-border-danger";
|
|
228
|
-
if (l.color === "info")
|
|
229
|
-
return "maz-border-info";
|
|
230
|
-
if (l.color === "primary")
|
|
231
|
-
return "maz-border-primary";
|
|
232
|
-
if (l.color === "secondary")
|
|
233
|
-
return "maz-border-secondary";
|
|
234
|
-
if (l.color === "success")
|
|
235
|
-
return "maz-border-success";
|
|
236
|
-
if (l.color === "warning")
|
|
237
|
-
return "maz-border-warning";
|
|
238
|
-
if (l.color === "white")
|
|
239
|
-
return "maz-border-white";
|
|
240
|
-
}
|
|
241
|
-
return "--default-border";
|
|
242
|
-
}
|
|
243
|
-
}), j = Ee(), Z = p(() => {
|
|
244
|
-
const { required: o, placeholder: h } = l;
|
|
245
|
-
if (h)
|
|
246
|
-
return o ? `${h} *` : h;
|
|
247
|
-
}), J = p(() => L.value !== void 0 && L.value !== ""), C = Ze(
|
|
248
|
-
(o) => {
|
|
249
|
-
t("update:model-value", o);
|
|
250
|
-
},
|
|
251
|
-
typeof l.debounce == "number" ? l.debounce : l.debounceDelay ?? 500
|
|
252
|
-
);
|
|
253
|
-
function D(o) {
|
|
254
|
-
if (l.debounce)
|
|
255
|
-
return C(o);
|
|
256
|
-
t("update:model-value", o);
|
|
257
|
-
}
|
|
258
|
-
const L = p({
|
|
259
|
-
get: () => l.modelValue,
|
|
260
|
-
set: (o) => D(o)
|
|
261
|
-
}), Q = p(() => (!!l.label || !!l.hint) && (f.value || !!J.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), X = p(() => !!l.label || !!l.hint);
|
|
262
|
-
function Y() {
|
|
263
|
-
return !!j["right-icon"] || G.value || !!j["valid-button"] || l.validButton || !!l.rightIcon;
|
|
264
|
-
}
|
|
265
|
-
function B() {
|
|
266
|
-
return !!j["left-icon"] || !!l.leftIcon;
|
|
267
|
-
}
|
|
268
|
-
function R(o) {
|
|
269
|
-
t("focus", o), f.value = !0;
|
|
270
|
-
}
|
|
271
|
-
function le(o) {
|
|
272
|
-
t("blur", o), f.value = !1;
|
|
273
|
-
}
|
|
274
|
-
function ae(o) {
|
|
275
|
-
return t("change", o);
|
|
276
|
-
}
|
|
277
|
-
function M(o) {
|
|
278
|
-
return t("input", o);
|
|
279
|
-
}
|
|
280
|
-
return (o, h) => (m(), k(
|
|
281
|
-
"div",
|
|
282
|
-
{
|
|
283
|
-
class: q(["m-input", [
|
|
284
|
-
{
|
|
285
|
-
"--is-focused": f.value || o.borderActive,
|
|
286
|
-
"--should-up": Q.value,
|
|
287
|
-
"--has-label": X.value,
|
|
288
|
-
"--is-disabled": o.disabled,
|
|
289
|
-
"--is-readonly": o.readonly,
|
|
290
|
-
"--has-z-2": o.error || o.warning || o.success,
|
|
291
|
-
"--has-state": o.error || o.warning || o.success,
|
|
292
|
-
"--block": o.block
|
|
293
|
-
},
|
|
294
|
-
l.class,
|
|
295
|
-
`--${o.color}`,
|
|
296
|
-
`--${o.size}`
|
|
297
|
-
]]),
|
|
298
|
-
style: x(o.style)
|
|
299
|
-
},
|
|
300
|
-
[
|
|
301
|
-
E(
|
|
302
|
-
"div",
|
|
303
|
-
{
|
|
304
|
-
class: q(["m-input-wrapper", [
|
|
305
|
-
o.inputClasses,
|
|
306
|
-
I.value,
|
|
307
|
-
o.roundedSize ? `--rounded-${o.roundedSize}` : { "maz-rounded": !o.noRadius }
|
|
308
|
-
]])
|
|
309
|
-
},
|
|
310
|
-
[
|
|
311
|
-
B() ? (m(), k("div", Xe, [
|
|
312
|
-
o.$slots["left-icon"] || o.leftIcon ? U(o.$slots, "left-icon", { key: 0 }, () => [
|
|
313
|
-
typeof o.leftIcon == "string" ? (m(), K(b(d), {
|
|
314
|
-
key: 0,
|
|
315
|
-
name: o.leftIcon,
|
|
316
|
-
class: "maz-text-xl maz-text-muted"
|
|
317
|
-
}, null, 8, ["name"])) : o.leftIcon ? (m(), K(me(o.leftIcon), {
|
|
318
|
-
key: 1,
|
|
319
|
-
class: "maz-text-xl maz-text-muted"
|
|
320
|
-
})) : g("v-if", !0)
|
|
321
|
-
], !0) : g("v-if", !0)
|
|
322
|
-
])) : g("v-if", !0),
|
|
323
|
-
E("div", Ye, [
|
|
324
|
-
be(E("input", ge({
|
|
325
|
-
id: b(te),
|
|
326
|
-
ref_key: "input",
|
|
327
|
-
ref: O,
|
|
328
|
-
"onUpdate:modelValue": h[0] || (h[0] = (T) => L.value = T),
|
|
329
|
-
type: oe.value,
|
|
330
|
-
name: o.name
|
|
331
|
-
}, o.$attrs, {
|
|
332
|
-
inputmode: o.inputmode,
|
|
333
|
-
placeholder: Z.value,
|
|
334
|
-
"aria-label": o.label || o.placeholder,
|
|
335
|
-
disabled: o.disabled,
|
|
336
|
-
readonly: o.readonly,
|
|
337
|
-
required: o.required,
|
|
338
|
-
class: "m-input-input"
|
|
339
|
-
}, Oe({
|
|
340
|
-
blur: le,
|
|
341
|
-
focus: R,
|
|
342
|
-
change: ae,
|
|
343
|
-
input: M
|
|
344
|
-
}, !0), {
|
|
345
|
-
onClick: h[1] || (h[1] = (T) => o.$emit("click", T))
|
|
346
|
-
}), null, 16, xe), [
|
|
347
|
-
[De, L.value]
|
|
348
|
-
]),
|
|
349
|
-
o.label || o.hint ? (m(), k(
|
|
350
|
-
"span",
|
|
351
|
-
{
|
|
352
|
-
key: 0,
|
|
353
|
-
class: q(["m-input-label", [
|
|
354
|
-
{
|
|
355
|
-
"maz-text-danger-600": o.error,
|
|
356
|
-
"maz-text-success-600": o.success,
|
|
357
|
-
"maz-text-warning-600": o.warning
|
|
358
|
-
}
|
|
359
|
-
]])
|
|
360
|
-
},
|
|
361
|
-
[
|
|
362
|
-
Ne(
|
|
363
|
-
de(o.hint || o.label) + " ",
|
|
364
|
-
1
|
|
365
|
-
/* TEXT */
|
|
366
|
-
),
|
|
367
|
-
o.required ? (m(), k("sup", _e, "*")) : g("v-if", !0)
|
|
368
|
-
],
|
|
369
|
-
2
|
|
370
|
-
/* CLASS */
|
|
371
|
-
)) : g("v-if", !0)
|
|
372
|
-
]),
|
|
373
|
-
Y() ? (m(), k("div", et, [
|
|
374
|
-
o.$slots["right-icon"] || o.rightIcon ? U(o.$slots, "right-icon", { key: 0 }, () => [
|
|
375
|
-
typeof o.rightIcon == "string" ? (m(), K(b(d), {
|
|
376
|
-
key: 0,
|
|
377
|
-
name: o.rightIcon,
|
|
378
|
-
class: "maz-text-xl maz-text-muted"
|
|
379
|
-
}, null, 8, ["name"])) : o.rightIcon ? (m(), K(me(o.rightIcon), {
|
|
380
|
-
key: 1,
|
|
381
|
-
class: "maz-text-xl maz-text-muted"
|
|
382
|
-
})) : g("v-if", !0)
|
|
383
|
-
], !0) : g("v-if", !0),
|
|
384
|
-
G.value ? (m(), K(b(s), {
|
|
385
|
-
key: 1,
|
|
386
|
-
color: "transparent",
|
|
387
|
-
tabindex: "-1",
|
|
388
|
-
size: "mini",
|
|
389
|
-
onClick: h[2] || (h[2] = F((T) => z.value = !z.value, ["stop"]))
|
|
390
|
-
}, {
|
|
391
|
-
default: _(() => [
|
|
392
|
-
z.value ? (m(), K(b(y), {
|
|
393
|
-
key: 0,
|
|
394
|
-
class: "maz-text-xl maz-text-muted"
|
|
395
|
-
})) : (m(), K(b($), {
|
|
396
|
-
key: 1,
|
|
397
|
-
class: "maz-text-xl maz-text-muted"
|
|
398
|
-
}))
|
|
399
|
-
]),
|
|
400
|
-
_: 1
|
|
401
|
-
/* STABLE */
|
|
402
|
-
})) : g("v-if", !0),
|
|
403
|
-
o.$slots["valid-button"] || o.validButton ? U(o.$slots, "valid-button", { key: 2 }, () => [
|
|
404
|
-
H(b(s), {
|
|
405
|
-
color: "transparent",
|
|
406
|
-
disabled: o.disabled,
|
|
407
|
-
tabindex: "-1",
|
|
408
|
-
loading: o.validButtonLoading,
|
|
409
|
-
class: "m-input-valid-button",
|
|
410
|
-
size: "mini",
|
|
411
|
-
type: "submit"
|
|
412
|
-
}, {
|
|
413
|
-
default: _(() => [
|
|
414
|
-
H(b(W), { class: "maz-text-2xl maz-text-normal" })
|
|
415
|
-
]),
|
|
416
|
-
_: 1
|
|
417
|
-
/* STABLE */
|
|
418
|
-
}, 8, ["disabled", "loading"])
|
|
419
|
-
], !0) : g("v-if", !0)
|
|
420
|
-
])) : g("v-if", !0)
|
|
421
|
-
],
|
|
422
|
-
2
|
|
423
|
-
/* CLASS */
|
|
424
|
-
)
|
|
425
|
-
],
|
|
426
|
-
6
|
|
427
|
-
/* CLASS, STYLE */
|
|
428
|
-
));
|
|
429
|
-
}
|
|
430
|
-
}), ye = /* @__PURE__ */ we(tt, [["__scopeId", "data-v-c42aaa7f"]]), ot = ["aria-label"], lt = { class: "m-select-list__no-results" }, at = {
|
|
431
|
-
key: 2,
|
|
432
|
-
class: "m-select-list__scroll-wrapper",
|
|
433
|
-
tabindex: "-1"
|
|
434
|
-
}, nt = { class: "m-select-list-optgroup" }, it = ["onClick"], st = /* @__PURE__ */ he({
|
|
435
|
-
inheritAttrs: !1,
|
|
436
|
-
__name: "MazSelect",
|
|
437
|
-
props: {
|
|
438
|
-
style: { default: void 0 },
|
|
439
|
-
class: { default: void 0 },
|
|
440
|
-
id: { default: void 0 },
|
|
441
|
-
modelValue: { default: void 0 },
|
|
442
|
-
options: { default: void 0 },
|
|
443
|
-
optionValueKey: { default: "value" },
|
|
444
|
-
optionLabelKey: { default: "label" },
|
|
445
|
-
optionInputValueKey: { default: "label" },
|
|
446
|
-
listPosition: { default: "bottom left" },
|
|
447
|
-
itemHeight: { default: void 0 },
|
|
448
|
-
maxListHeight: { default: 240 },
|
|
449
|
-
maxListWidth: { default: void 0 },
|
|
450
|
-
minListHeight: { default: void 0 },
|
|
451
|
-
minListWidth: { default: void 0 },
|
|
452
|
-
size: { default: "md" },
|
|
453
|
-
color: { default: "primary" },
|
|
454
|
-
search: { type: Boolean },
|
|
455
|
-
searchPlaceholder: { default: "Search in options" },
|
|
456
|
-
searchThreshold: { default: 0.75 },
|
|
457
|
-
open: { type: Boolean },
|
|
458
|
-
multiple: { type: Boolean, default: void 0 },
|
|
459
|
-
required: { type: Boolean },
|
|
460
|
-
disabled: { type: Boolean },
|
|
461
|
-
block: { type: Boolean },
|
|
462
|
-
excludeSelectors: { default: void 0 },
|
|
463
|
-
autocomplete: { default: "off" }
|
|
464
|
-
},
|
|
465
|
-
emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
|
|
466
|
-
setup(u, { expose: r, emit: l }) {
|
|
467
|
-
Pe((e) => ({
|
|
468
|
-
cb149e58: oe.value,
|
|
469
|
-
"215ff493": te.value,
|
|
470
|
-
"64d6cfbb": G.value
|
|
471
|
-
}));
|
|
472
|
-
const t = u, s = l, d = A(() => import("./MazCheckbox-DMogZVHl.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), W = A(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
473
|
-
r({
|
|
474
|
-
/** Method to open the option list */
|
|
475
|
-
openList: P,
|
|
476
|
-
/** Method to close the option list */
|
|
477
|
-
closeList: N
|
|
478
|
-
});
|
|
479
|
-
const z = V(!1), f = V(), O = p(
|
|
480
|
-
() => ["black", "transparent", "white"].includes(t.color)
|
|
481
|
-
), te = p(
|
|
482
|
-
() => O.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
|
|
483
|
-
), G = p(
|
|
484
|
-
() => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
485
|
-
), oe = p(
|
|
486
|
-
() => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
487
|
-
), I = p(() => z.value || t.open), j = ze({
|
|
488
|
-
componentName: "MazSelect",
|
|
489
|
-
providedId: t.id
|
|
490
|
-
});
|
|
491
|
-
function Z(e) {
|
|
492
|
-
return {
|
|
493
|
-
[t.optionValueKey]: e,
|
|
494
|
-
[t.optionLabelKey]: e,
|
|
495
|
-
[t.optionInputValueKey]: e
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
function J(e) {
|
|
499
|
-
return {
|
|
500
|
-
...e,
|
|
501
|
-
[t.optionValueKey]: e[t.optionValueKey],
|
|
502
|
-
[t.optionLabelKey]: e[t.optionLabelKey],
|
|
503
|
-
[t.optionInputValueKey]: e[t.optionInputValueKey]
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
const C = p(() => {
|
|
507
|
-
var a;
|
|
508
|
-
const e = [];
|
|
509
|
-
if (!((a = t.options) != null && a.length))
|
|
510
|
-
return [];
|
|
511
|
-
for (const i of t.options)
|
|
512
|
-
typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? e.push(Z(i)) : typeof i == "object" && "options" in i && Array.isArray(i.options) ? e.push(
|
|
513
|
-
{ label: i.label, isOptGroup: !0 },
|
|
514
|
-
...i.options.map(
|
|
515
|
-
(n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? Z(n) : J(n)
|
|
516
|
-
)
|
|
517
|
-
) : e.push(J(i));
|
|
518
|
-
return e;
|
|
519
|
-
}), D = p(
|
|
520
|
-
() => {
|
|
521
|
-
var e;
|
|
522
|
-
return ((e = C.value) == null ? void 0 : e.filter((a) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(a[t.optionValueKey]) && !B(a[t.optionValueKey]) : !1 : t.modelValue === a[t.optionValueKey] && !B(a[t.optionValueKey]))) ?? [];
|
|
523
|
-
}
|
|
524
|
-
);
|
|
525
|
-
Fe(() => {
|
|
526
|
-
var e;
|
|
527
|
-
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ie();
|
|
528
|
-
});
|
|
529
|
-
const L = V(), Q = V(), X = V(), Y = V();
|
|
530
|
-
function B(e) {
|
|
531
|
-
return e == null;
|
|
532
|
-
}
|
|
533
|
-
function R(e) {
|
|
534
|
-
var i;
|
|
535
|
-
return (((i = D.value) == null ? void 0 : i.some(
|
|
536
|
-
(n) => n[t.optionValueKey] === e[t.optionValueKey]
|
|
537
|
-
)) ?? !1) && !B(e[t.optionValueKey]);
|
|
538
|
-
}
|
|
539
|
-
const le = p(() => {
|
|
540
|
-
var a;
|
|
541
|
-
if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
|
|
542
|
-
return t.modelValue.map(
|
|
543
|
-
(i) => {
|
|
544
|
-
var n, c;
|
|
545
|
-
return (c = (n = C.value) == null ? void 0 : n.find((v) => v[t.optionValueKey] === i)) == null ? void 0 : c[t.optionInputValueKey];
|
|
546
|
-
}
|
|
547
|
-
).join(", ");
|
|
548
|
-
const e = (a = C.value) == null ? void 0 : a.find(
|
|
549
|
-
(i) => i[t.optionValueKey] === t.modelValue
|
|
550
|
-
);
|
|
551
|
-
return B(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
|
|
552
|
-
}), ae = p(
|
|
553
|
-
() => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
554
|
-
), M = V(""), o = V("");
|
|
555
|
-
function h(e, a) {
|
|
556
|
-
return a && e && ee(e).includes(ee(a));
|
|
557
|
-
}
|
|
558
|
-
function T(e) {
|
|
559
|
-
var a;
|
|
560
|
-
return e ? (a = C.value) == null ? void 0 : a.filter((i) => {
|
|
561
|
-
const n = i[t.optionLabelKey], c = i[t.optionValueKey], v = i[t.optionInputValueKey], w = t.searchThreshold;
|
|
562
|
-
return h(n, e) || h(v, e) || h(c, e) || typeof n == "string" && ue(n, e, w).isMatching.value || typeof v == "string" && ue(v, e, w).isMatching.value || typeof c == "string" && ue(c, e, w).isMatching.value;
|
|
563
|
-
}) : C.value;
|
|
564
|
-
}
|
|
565
|
-
const S = p(() => T(M.value));
|
|
566
|
-
async function N(e) {
|
|
567
|
-
var i, n;
|
|
568
|
-
if (!I.value)
|
|
569
|
-
return;
|
|
570
|
-
if (e && ("relatedTarget" in e && ((i = L.value) != null && i.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
571
|
-
return e.preventDefault();
|
|
572
|
-
const a = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
573
|
-
if ((n = t.excludeSelectors) != null && n.includes(`#${a}`))
|
|
574
|
-
return e == null ? void 0 : e.preventDefault();
|
|
575
|
-
await se(), z.value = !1, f.value = 0, s("close", e);
|
|
576
|
-
}
|
|
577
|
-
async function P(e) {
|
|
578
|
-
t.disabled || I.value || (e == null || e.preventDefault(), z.value = !0, await ne(), s("focus", e), s("open", z.value));
|
|
579
|
-
}
|
|
580
|
-
function ce() {
|
|
581
|
-
var e, a;
|
|
582
|
-
(a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
|
|
583
|
-
}
|
|
584
|
-
function Se() {
|
|
585
|
-
var e, a;
|
|
586
|
-
(a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
|
|
587
|
-
}
|
|
588
|
-
function Ke(e) {
|
|
589
|
-
z.value ? N(e) : ce();
|
|
590
|
-
}
|
|
591
|
-
function Ae(e) {
|
|
592
|
-
var a, i;
|
|
593
|
-
M.value = e, (i = ((a = X.value) == null ? void 0 : a.$el).querySelector("input")) == null || i.focus();
|
|
594
|
-
}
|
|
595
|
-
function $e(e) {
|
|
596
|
-
var i;
|
|
597
|
-
e === "Backspace" && o.value.length > 0 ? o.value = o.value.slice(0, -1) : o.value += e;
|
|
598
|
-
const a = T(o.value);
|
|
599
|
-
a != null && a.length && (f.value = (i = S.value) == null ? void 0 : i.findIndex(
|
|
600
|
-
(n) => n[t.optionValueKey] === a[0][t.optionValueKey]
|
|
601
|
-
), typeof f.value == "number" && f.value >= 0 && ne(f.value)), Je(() => {
|
|
602
|
-
o.value = "";
|
|
603
|
-
}, 1e3);
|
|
604
|
-
}
|
|
605
|
-
function Be(e) {
|
|
606
|
-
const a = e.key;
|
|
607
|
-
/^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), P(e), t.search ? Ae(a) : $e(a)) : pe(e);
|
|
608
|
-
}
|
|
609
|
-
function pe(e, a = !0) {
|
|
610
|
-
const i = e.code, n = ["ArrowUp", "ArrowDown"].includes(i), c = (a ? ["Enter", "Space"] : ["Enter"]).includes(i), v = i === "Escape" && I.value;
|
|
611
|
-
n ? Ce(e, f.value) : c ? Le(e, f.value) : v && N(e);
|
|
612
|
-
}
|
|
613
|
-
function Ce(e, a) {
|
|
614
|
-
var c;
|
|
615
|
-
e.preventDefault();
|
|
616
|
-
const i = e.code;
|
|
617
|
-
I.value || P(e);
|
|
618
|
-
const n = (c = S.value) == null ? void 0 : c.length;
|
|
619
|
-
n && (typeof a == "number" ? a === n - 1 && i === "ArrowDown" ? f.value = 0 : a === 0 && i === "ArrowUp" ? f.value = n - 1 : f.value = i === "ArrowDown" ? a + 1 : a - 1 : f.value = i === "ArrowDown" ? 0 : n - 1, ne(f.value));
|
|
620
|
-
}
|
|
621
|
-
function Le(e, a) {
|
|
622
|
-
var n, c, v;
|
|
623
|
-
if (e.preventDefault(), !I.value)
|
|
624
|
-
return P(e);
|
|
625
|
-
const i = a ? ((n = S.value) == null ? void 0 : n[a]) ?? ((c = S.value) == null ? void 0 : c[0]) : (v = S.value) == null ? void 0 : v[0];
|
|
626
|
-
B(i) || fe(i);
|
|
627
|
-
}
|
|
628
|
-
async function ne(e) {
|
|
629
|
-
var i, n;
|
|
630
|
-
await se(), typeof e != "number" && ie();
|
|
631
|
-
const a = e ?? f.value;
|
|
632
|
-
if (typeof a == "number" && a >= 0) {
|
|
633
|
-
const c = (i = Y.value) == null ? void 0 : i.querySelectorAll(".m-select-list-item");
|
|
634
|
-
(n = c == null ? void 0 : c[a]) == null || n.scrollIntoView({
|
|
635
|
-
behavior: "auto",
|
|
636
|
-
block: "nearest",
|
|
637
|
-
inline: "start"
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
function ie(e) {
|
|
642
|
-
var i;
|
|
643
|
-
const a = (i = S.value) == null ? void 0 : i.findIndex((n) => {
|
|
644
|
-
var c, v;
|
|
645
|
-
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === n[t.optionValueKey] : [...t.modelValue].reverse()[0] === n[t.optionValueKey] : ((v = (c = D.value) == null ? void 0 : c[0]) == null ? void 0 : v[t.optionValueKey]) === n[t.optionValueKey];
|
|
646
|
-
});
|
|
647
|
-
f.value = a && a >= 0 ? a : 0;
|
|
648
|
-
}
|
|
649
|
-
function fe(e, a = !0) {
|
|
650
|
-
var v;
|
|
651
|
-
a && !t.multiple && se(() => N()), M.value = "";
|
|
652
|
-
const i = (v = D.value) == null ? void 0 : v.some(
|
|
653
|
-
(w) => w[t.optionValueKey] === e[t.optionValueKey]
|
|
654
|
-
);
|
|
655
|
-
let n = D.value;
|
|
656
|
-
i && t.multiple ? n = n == null ? void 0 : n.filter(
|
|
657
|
-
(w) => w[t.optionValueKey] !== e[t.optionValueKey]
|
|
658
|
-
) : t.multiple ? n.push(e) : n = [e];
|
|
659
|
-
const c = n.map((w) => w[t.optionValueKey]);
|
|
660
|
-
s("update:model-value", t.multiple ? c : c[0]), s("selected-option", e), Se(), ie(e), ce();
|
|
661
|
-
}
|
|
662
|
-
return (e, a) => {
|
|
663
|
-
var i;
|
|
664
|
-
return be((m(), k(
|
|
665
|
-
"div",
|
|
666
|
-
{
|
|
667
|
-
ref_key: "mazSelectElement",
|
|
668
|
-
ref: L,
|
|
669
|
-
class: q(["m-select", [
|
|
670
|
-
{ "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
|
|
671
|
-
t.class,
|
|
672
|
-
`--${e.size}`
|
|
673
|
-
]]),
|
|
674
|
-
style: x(e.style)
|
|
675
|
-
},
|
|
676
|
-
[
|
|
677
|
-
H(ye, ge({
|
|
678
|
-
id: b(j),
|
|
679
|
-
ref_key: "mazInputComponent",
|
|
680
|
-
ref: Q,
|
|
681
|
-
class: "m-select-input"
|
|
682
|
-
}, e.$attrs, {
|
|
683
|
-
required: e.required,
|
|
684
|
-
"border-active": z.value,
|
|
685
|
-
color: e.color,
|
|
686
|
-
"model-value": le.value,
|
|
687
|
-
size: e.size,
|
|
688
|
-
block: "",
|
|
689
|
-
autocomplete: e.autocomplete,
|
|
690
|
-
disabled: e.disabled,
|
|
691
|
-
onFocus: F(P, ["prevent", "stop"]),
|
|
692
|
-
onBlur: F(N, ["prevent", "stop"]),
|
|
693
|
-
onClick: F(P, ["prevent", "stop"]),
|
|
694
|
-
onChange: a[0] || (a[0] = (n) => s("change", n)),
|
|
695
|
-
onInput: a[1] || (a[1] = (n) => s("input", n)),
|
|
696
|
-
onKeydown: Be
|
|
697
|
-
}), {
|
|
698
|
-
"right-icon": _(() => [
|
|
699
|
-
E("button", {
|
|
700
|
-
tabindex: "-1",
|
|
701
|
-
type: "button",
|
|
702
|
-
class: "m-select-input__toggle-button maz-custom",
|
|
703
|
-
"aria-label": `${I.value ? "collapse" : "expand"} list of options`,
|
|
704
|
-
onClick: F(Ke, ["stop"])
|
|
705
|
-
}, [
|
|
706
|
-
H(b($), { class: "m-select-chevron maz-text-xl" })
|
|
707
|
-
], 8, ot)
|
|
708
|
-
]),
|
|
709
|
-
_: 1
|
|
710
|
-
/* STABLE */
|
|
711
|
-
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
|
|
712
|
-
H(He, { name: ae.value }, {
|
|
713
|
-
default: _(() => [
|
|
714
|
-
I.value ? (m(), k(
|
|
715
|
-
"div",
|
|
716
|
-
{
|
|
717
|
-
key: 0,
|
|
718
|
-
ref_key: "optionsListElement",
|
|
719
|
-
ref: Y,
|
|
720
|
-
class: q(["m-select-list", {
|
|
721
|
-
"--top": e.listPosition.includes("top"),
|
|
722
|
-
"--left": e.listPosition.includes("left"),
|
|
723
|
-
"--right": e.listPosition.includes("right"),
|
|
724
|
-
"--bottom": e.listPosition.includes("bottom")
|
|
725
|
-
}]),
|
|
726
|
-
style: x({
|
|
727
|
-
maxHeight: `${e.maxListHeight}px`,
|
|
728
|
-
maxWidth: `${e.maxListWidth}px`,
|
|
729
|
-
minHeight: `${e.minListHeight}px`,
|
|
730
|
-
minWidth: `${e.minListWidth}px`
|
|
731
|
-
})
|
|
732
|
-
},
|
|
733
|
-
[
|
|
734
|
-
e.search ? (m(), K(ye, {
|
|
735
|
-
key: 0,
|
|
736
|
-
ref_key: "searchInputComponent",
|
|
737
|
-
ref: X,
|
|
738
|
-
modelValue: M.value,
|
|
739
|
-
"onUpdate:modelValue": [
|
|
740
|
-
a[2] || (a[2] = (n) => M.value = n),
|
|
741
|
-
a[4] || (a[4] = (n) => f.value = 0)
|
|
742
|
-
],
|
|
743
|
-
size: "sm",
|
|
744
|
-
color: e.color,
|
|
745
|
-
placeholder: e.searchPlaceholder,
|
|
746
|
-
name: "search",
|
|
747
|
-
inputmode: "search",
|
|
748
|
-
autocomplete: "off",
|
|
749
|
-
tabindex: "-1",
|
|
750
|
-
class: "m-select-list__search-input maz-flex-none",
|
|
751
|
-
"left-icon": b(y),
|
|
752
|
-
onKeydown: a[3] || (a[3] = (n) => pe(n, !1))
|
|
753
|
-
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : g("v-if", !0),
|
|
754
|
-
!S.value || S.value.length <= 0 ? U(e.$slots, "no-results", { key: 1 }, () => [
|
|
755
|
-
E("span", lt, [
|
|
756
|
-
H(b(W), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
757
|
-
])
|
|
758
|
-
], !0) : (m(), k("div", at, [
|
|
759
|
-
(m(!0), k(
|
|
760
|
-
ve,
|
|
761
|
-
null,
|
|
762
|
-
qe(S.value, (n, c) => (m(), k(
|
|
763
|
-
ve,
|
|
764
|
-
{ key: c },
|
|
765
|
-
[
|
|
766
|
-
n.label && n.isOptGroup ? U(e.$slots, "optgroup", {
|
|
767
|
-
key: 0,
|
|
768
|
-
label: n.label
|
|
769
|
-
}, () => [
|
|
770
|
-
E(
|
|
771
|
-
"span",
|
|
772
|
-
nt,
|
|
773
|
-
de(n.label),
|
|
774
|
-
1
|
|
775
|
-
/* TEXT */
|
|
776
|
-
)
|
|
777
|
-
], !0) : (m(), k("button", {
|
|
778
|
-
key: 1,
|
|
779
|
-
tabindex: "-1",
|
|
780
|
-
type: "button",
|
|
781
|
-
class: q(["m-select-list-item maz-custom maz-flex-none", [
|
|
782
|
-
{
|
|
783
|
-
"--is-keyboard-selected": f.value === c,
|
|
784
|
-
"--is-selected": R(n),
|
|
785
|
-
"--is-none-value": B(n[e.optionValueKey])
|
|
786
|
-
}
|
|
787
|
-
]]),
|
|
788
|
-
style: x(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
789
|
-
onClick: F((v) => fe(n), ["prevent", "stop"])
|
|
790
|
-
}, [
|
|
791
|
-
e.multiple ? (m(), K(b(d), {
|
|
792
|
-
key: 0,
|
|
793
|
-
tabindex: "-1",
|
|
794
|
-
"model-value": R(n),
|
|
795
|
-
size: "sm",
|
|
796
|
-
color: e.color
|
|
797
|
-
}, null, 8, ["model-value", "color"])) : g("v-if", !0),
|
|
798
|
-
U(e.$slots, "default", {
|
|
799
|
-
option: n,
|
|
800
|
-
isSelected: R(n)
|
|
801
|
-
}, () => [
|
|
802
|
-
E(
|
|
803
|
-
"span",
|
|
804
|
-
null,
|
|
805
|
-
de(n[e.optionLabelKey]),
|
|
806
|
-
1
|
|
807
|
-
/* TEXT */
|
|
808
|
-
)
|
|
809
|
-
], !0)
|
|
810
|
-
], 14, it))
|
|
811
|
-
],
|
|
812
|
-
64
|
|
813
|
-
/* STABLE_FRAGMENT */
|
|
814
|
-
))),
|
|
815
|
-
128
|
|
816
|
-
/* KEYED_FRAGMENT */
|
|
817
|
-
))
|
|
818
|
-
]))
|
|
819
|
-
],
|
|
820
|
-
6
|
|
821
|
-
/* CLASS, STYLE */
|
|
822
|
-
)) : g("v-if", !0)
|
|
823
|
-
]),
|
|
824
|
-
_: 3
|
|
825
|
-
/* FORWARDED */
|
|
826
|
-
}, 8, ["name"])
|
|
827
|
-
],
|
|
828
|
-
6
|
|
829
|
-
/* CLASS, STYLE */
|
|
830
|
-
)), [
|
|
831
|
-
[b(Ge), {
|
|
832
|
-
exclude: (i = e.excludeSelectors) != null && i.length ? e.excludeSelectors : [],
|
|
833
|
-
handler: N
|
|
834
|
-
}]
|
|
835
|
-
]);
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
}), rt = /* @__PURE__ */ we(st, [["__scopeId", "data-v-e35a36a6"]]);
|
|
839
|
-
export {
|
|
840
|
-
rt as M,
|
|
841
|
-
we as _,
|
|
842
|
-
ze as u
|
|
843
|
-
};
|