maz-ui 3.47.1 → 3.47.2-beta.10
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 +82 -90
- package/components/MazAnimatedCounter.d.ts +16 -32
- package/components/MazAnimatedCounter.mjs +27 -29
- package/components/MazAvatar.d.ts +2 -1
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +2 -1
- package/components/MazBadge.d.ts +7 -2
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.d.ts +2 -1
- 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/MazChart.d.ts +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +74 -70
- package/components/MazChecklist.d.ts +2 -5
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +19 -66
- package/components/MazCircularProgressBar.mjs +47 -52
- package/components/MazDialog.d.ts +5 -3
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +25 -3
- package/components/MazDropdown.mjs +2 -348
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazExpandAnimation.mjs +27 -31
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +14 -13
- package/components/MazInput.d.ts +16 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputCode.mjs +26 -30
- 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 +19 -31
- 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 +29 -53
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
- package/components/MazPhoneNumberInput.d.ts +6 -5
- 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 +27 -37
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazSlider.mjs +107 -116
- 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 +20 -27
- package/components/MazTable.d.ts +38 -55
- 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 +7 -7
- package/components/MazTextarea.d.ts +58 -32
- package/components/MazTextarea.mjs +125 -107
- 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/MazBadge.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/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/MazLink.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/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-CNSfzYq-.mjs → MazBadge-CupQjB8D.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-D9EPpEV8.mjs} +28 -29
- package/components/chunks/MazBtn-BSgCMRt0.mjs +103 -0
- package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
- package/components/chunks/MazBtn-BfIn7glE.mjs +103 -0
- package/components/chunks/MazBtn-Br3xKJMD.mjs +103 -0
- package/components/chunks/MazBtn-CB6xVwox.mjs +103 -0
- package/components/chunks/MazBtn-CIAdgMGr.mjs +111 -0
- package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +103 -0
- package/components/chunks/MazBtn-Chk7DWOF.mjs +103 -0
- package/components/chunks/MazBtn-Ck84sP9a.mjs +103 -0
- package/components/chunks/MazBtn-DI80W9rl.mjs +103 -0
- package/components/chunks/MazBtn-DhSKmF01.mjs +103 -0
- package/components/chunks/MazBtn-DzwuLea3.mjs +103 -0
- package/components/chunks/MazBtn-tOUtVpek.mjs +103 -0
- package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-XBaeDZkg.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-COTaKhKF.mjs} +20 -21
- package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-B-Sw22La.mjs} +63 -60
- package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-DjY15PA3.mjs} +63 -58
- package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-DxfneUvu.mjs} +63 -59
- package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-DaozZlNb.mjs} +160 -166
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-XiX9LEiz.mjs} +66 -81
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +488 -0
- package/components/chunks/MazDropdown-CKuIGitT.mjs +427 -0
- package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
- package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-BooLoRWi.mjs} +247 -208
- package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-DUOQamrE.mjs} +265 -226
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-DFW4cVVf.mjs} +4 -3
- package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
- package/components/chunks/MazInput-BWAWlxDa.mjs +314 -0
- package/components/chunks/MazInput-DIN1VAoX.mjs +325 -0
- package/components/chunks/MazInput-HLPtw5QK.mjs +313 -0
- package/components/chunks/MazInputNumber-7Ku2ZcG-.mjs +601 -0
- package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-C5yErBFP.mjs} +199 -176
- package/components/chunks/MazInputTags-DvbQ2mK8.mjs +614 -0
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/MazLink-mrqHeBS0.mjs +67 -0
- package/components/chunks/MazLoadingBar-CNm3Yt6D.mjs +36 -0
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +597 -613
- package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
- package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
- package/components/chunks/MazSelect-DOexatNj.mjs +871 -0
- package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-DaDRzcT_.mjs} +172 -188
- package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
- package/components/chunks/MazSpinner-BJpv1muf.mjs +34 -0
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
- package/components/chunks/MazSpinner-C30YfScc.mjs +34 -0
- package/components/chunks/MazSpinner-C5mnD76l.mjs +34 -0
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-CDx6lo7l.mjs} +1 -1
- package/components/chunks/MazSpinner-C_GueolV.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-Cc-KlPEG.mjs} +1 -1
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +34 -0
- package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-CkKIUYXO.mjs} +1 -1
- package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-CxyUHAvm.mjs} +1 -1
- package/components/chunks/MazSpinner-DROgQW2M.mjs +34 -0
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-DjUU4G1h.mjs} +1 -1
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +34 -0
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +34 -0
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-b90e3OQK.mjs} +1 -1
- package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
- package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-Ci8nhgOP.mjs} +199 -239
- package/components/chunks/MazTableCell-BIganK6X.mjs +23 -0
- package/components/chunks/MazTableRow-CIO-x6Lb.mjs +30 -0
- package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-OEgTPQB3.mjs} +4 -4
- package/components/chunks/MazTabsBar-CT35SCIK.mjs +177 -0
- package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-Bcwdl9g2.mjs} +8 -8
- package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-0CRjeBvn.mjs +103 -0
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +1 -0
- package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
- package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
- package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-DersvZQw.cjs} +1 -1
- package/modules/chunks/index-DvromXrX.cjs +124 -0
- package/modules/chunks/{index-C2yAjM0P.mjs → index-Kry9j5uD.mjs} +948 -944
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +22 -21
- 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 +2 -1
- package/types/components/MazBadge.vue.d.ts +7 -2
- package/types/components/MazBottomSheet.vue.d.ts +2 -1
- 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/MazChart.vue.d.ts +1 -1
- 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 +19 -66
- package/types/components/MazDialog.vue.d.ts +5 -3
- package/types/components/MazDrawer.vue.d.ts +2 -1
- 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 +16 -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 +29 -53
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
- package/types/components/MazPhoneNumberInput.vue.d.ts +6 -5
- 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 +1 -1
- 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 +38 -55
- 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 +9 -5
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +4 -4
- package/types/modules/composables/useFormValidator/utils.d.ts +17 -17
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +7 -7
- package/types/modules/helpers/check-availability.d.ts +1 -0
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BRnLMzhy.mjs +0 -118
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-CnqRnXh_.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D6Jxw9Nr.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DlD5m7T4.mjs +0 -118
- package/components/chunks/MazBtn-Dt8lr0GH.mjs +0 -118
- package/components/chunks/MazBtn-DzBXfedt.mjs +0 -123
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazBtn-TkePGm5o.mjs +0 -118
- package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazExpandAnimation-Bkw_wFTi.mjs +0 -58
- package/components/chunks/MazInput-CBiCdd0F.mjs +0 -302
- package/components/chunks/MazInput-Dx2cCzFS.mjs +0 -290
- package/components/chunks/MazInput-O6Q41Fm0.mjs +0 -291
- package/components/chunks/MazInputNumber-DYPVUz4k.mjs +0 -593
- package/components/chunks/MazInputTags-CxXBsTdM.mjs +0 -605
- package/components/chunks/MazLink-Dl9ePCGm.mjs +0 -79
- package/components/chunks/MazLoadingBar-Di2OIrPD.mjs +0 -32
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazPicker-BcQ_-AJH.mjs +0 -2477
- package/components/chunks/MazSelect-BXzgSKmL.mjs +0 -863
- package/components/chunks/MazSpinner-Cg26sBU2.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
- package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
- package/components/chunks/MazSpinner-DlMKBtyt.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-M4r0cykl.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
- package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTableCell-BXDbkEJq.mjs +0 -23
- package/components/chunks/MazTableRow-Ds3CDEit.mjs +0 -30
- package/components/chunks/MazTabsBar-MZYefBb8.mjs +0 -204
- package/modules/chunks/MazBtn-CTqI4qhg.mjs +0 -118
- package/modules/chunks/MazBtn-D_CpNgpD.cjs +0 -9
- package/modules/chunks/index-BIX1NMzX.cjs +0 -149
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
import { useId as Me, computed as p, defineComponent as be, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as z, normalizeClass as B, normalizeStyle as ee, unref as h, toDisplayString as G, createCommentVNode as b, createElementVNode as O, renderSlot as q, createBlock as K, resolveDynamicComponent as me, withDirectives as he, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, withModifiers as F, withCtx as te, createVNode as H, onBeforeMount as Pe, nextTick as ue, Transition as Fe, Fragment as ve, renderList as He } 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 qe = {
|
|
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 oe(u, r) {
|
|
20
|
+
const l = { ...qe, ...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 i = u.toString();
|
|
70
|
+
if (l.trim && (i = i.trim()), l.normalizeSpaces && (i = i.replaceAll(/\s+/g, " ")), l.replaceSpaces && (i = i.replaceAll(" ", "-")), l.removeNumbers && (i = i.replaceAll(/\d/g, "")), l.removeAccents && (i = i.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (d) => t[d] || d), i = i.replaceAll(/[\u0300-\u036F]/g, "")), l.caseSensitive === !1 && (i = i.toLowerCase()), l.removeSpecialCharacters && (i = i.replaceAll(/[^\dA-Z-]/gi, "")), l.trim && (i = i.trim()), l.customNormalizationForms)
|
|
71
|
+
for (const d of l.customNormalizationForms)
|
|
72
|
+
i = i.normalize(d);
|
|
73
|
+
return i;
|
|
74
|
+
}
|
|
75
|
+
function Ue(u, r) {
|
|
76
|
+
const l = u.length, t = r.length, i = [];
|
|
77
|
+
for (let d = 0; d <= l; d++)
|
|
78
|
+
i[d] = [d];
|
|
79
|
+
for (let d = 0; d <= t; d++)
|
|
80
|
+
i[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
|
+
i[d][y] = Math.min(
|
|
85
|
+
i[d - 1][y] + 1,
|
|
86
|
+
i[d][y - 1] + 1,
|
|
87
|
+
i[d - 1][y - 1] + $
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return i[l][t];
|
|
91
|
+
}
|
|
92
|
+
function ke(u, r) {
|
|
93
|
+
const l = Ue(u, r), t = Math.max(u.length, r.length);
|
|
94
|
+
return 1 - l / t;
|
|
95
|
+
}
|
|
96
|
+
function We(u, r, l = 0.75) {
|
|
97
|
+
return ke(u, r) >= l;
|
|
98
|
+
}
|
|
99
|
+
function re(u, r, l = 0.75) {
|
|
100
|
+
const t = p(
|
|
101
|
+
() => oe(typeof u == "string" ? u : u.value)
|
|
102
|
+
), i = p(
|
|
103
|
+
() => oe(typeof r == "string" ? r : r.value)
|
|
104
|
+
), d = p(() => typeof l == "number" ? l : l.value), y = p(() => ke(t.value, i.value));
|
|
105
|
+
return {
|
|
106
|
+
isMatching: p(
|
|
107
|
+
() => We(t.value, i.value, d.value)
|
|
108
|
+
),
|
|
109
|
+
score: y
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function Ve(u, r, l) {
|
|
113
|
+
var y;
|
|
114
|
+
u.stopPropagation();
|
|
115
|
+
const t = typeof l.value == "function" ? l.value : l.value.handler, i = typeof l.value == "object" ? l.value.exclude : void 0;
|
|
116
|
+
let d = !1;
|
|
117
|
+
if (i && i.length > 0) {
|
|
118
|
+
for (const $ of i)
|
|
119
|
+
if (!d && u.target instanceof HTMLElement) {
|
|
120
|
+
const U = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
|
|
121
|
+
d = u.target.getAttribute("id") === U;
|
|
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 je(u, r) {
|
|
130
|
+
const l = Ie();
|
|
131
|
+
document.removeEventListener(l, (t) => Ve(t, u, r));
|
|
132
|
+
}
|
|
133
|
+
function Qe(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) => Ve(t, u, r));
|
|
140
|
+
}
|
|
141
|
+
const Re = {
|
|
142
|
+
mounted: Qe,
|
|
143
|
+
unmounted: je
|
|
144
|
+
};
|
|
145
|
+
function Ge(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, i] of r)
|
|
156
|
+
l[t] = i;
|
|
157
|
+
return l;
|
|
158
|
+
};
|
|
159
|
+
let de = null;
|
|
160
|
+
function Ze(u, r) {
|
|
161
|
+
de && clearTimeout(de), de = setTimeout(u, r);
|
|
162
|
+
}
|
|
163
|
+
const Je = ["for"], Xe = {
|
|
164
|
+
key: 0,
|
|
165
|
+
class: "m-input-wrapper-left"
|
|
166
|
+
}, Ye = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], xe = { key: 0 }, _e = {
|
|
167
|
+
key: 1,
|
|
168
|
+
class: "m-input-wrapper-right"
|
|
169
|
+
}, et = /* @__PURE__ */ be({
|
|
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
|
+
topLabel: {},
|
|
179
|
+
assistiveText: {},
|
|
180
|
+
name: { default: void 0 },
|
|
181
|
+
color: { default: "primary" },
|
|
182
|
+
type: { default: "text" },
|
|
183
|
+
required: { type: Boolean, default: !1 },
|
|
184
|
+
disabled: { type: Boolean, default: !1 },
|
|
185
|
+
readonly: { type: Boolean, default: !1 },
|
|
186
|
+
id: { default: void 0 },
|
|
187
|
+
error: { type: Boolean, default: !1 },
|
|
188
|
+
success: { type: Boolean, default: !1 },
|
|
189
|
+
warning: { type: Boolean, default: !1 },
|
|
190
|
+
hint: { default: void 0 },
|
|
191
|
+
inputClasses: { default: void 0 },
|
|
192
|
+
noBorder: { type: Boolean, default: !1 },
|
|
193
|
+
noRadius: { type: Boolean, default: !1 },
|
|
194
|
+
inputmode: { default: "text" },
|
|
195
|
+
size: { default: "md" },
|
|
196
|
+
debounce: { type: [Boolean, Number], default: !1 },
|
|
197
|
+
debounceDelay: { default: 500 },
|
|
198
|
+
validButton: { type: Boolean, default: !1 },
|
|
199
|
+
validButtonLoading: { type: Boolean, default: !1 },
|
|
200
|
+
autoFocus: { type: Boolean, default: !1 },
|
|
201
|
+
borderActive: { type: Boolean, default: !1 },
|
|
202
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
203
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
204
|
+
roundedSize: { default: void 0 },
|
|
205
|
+
block: { type: Boolean }
|
|
206
|
+
},
|
|
207
|
+
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
208
|
+
setup(u, { emit: r }) {
|
|
209
|
+
const l = u, t = r, i = A(() => import("./MazBtn-BfIn7glE.mjs")), d = A(() => import("./MazIcon-_hN-Kivn.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), U = A(() => import("./check-C9Q_W85g.mjs")), k = V(!1), f = V(!1), D = V(), Z = ze({
|
|
210
|
+
componentName: "MazInput",
|
|
211
|
+
providedId: l.id
|
|
212
|
+
});
|
|
213
|
+
Te(() => {
|
|
214
|
+
var o;
|
|
215
|
+
l.autoFocus && ((o = D.value) == null || o.focus());
|
|
216
|
+
});
|
|
217
|
+
const J = p(() => l.type === "password"), le = p(() => k.value ? "text" : l.type), I = p(() => {
|
|
218
|
+
if (!l.noBorder) {
|
|
219
|
+
if (l.error)
|
|
220
|
+
return "maz-border-danger";
|
|
221
|
+
if (l.success)
|
|
222
|
+
return "maz-border-success";
|
|
223
|
+
if (l.warning)
|
|
224
|
+
return "maz-border-warning";
|
|
225
|
+
if (f.value || l.borderActive) {
|
|
226
|
+
if (l.color === "black")
|
|
227
|
+
return "maz-border-black";
|
|
228
|
+
if (l.color === "danger")
|
|
229
|
+
return "maz-border-danger";
|
|
230
|
+
if (l.color === "info")
|
|
231
|
+
return "maz-border-info";
|
|
232
|
+
if (l.color === "primary")
|
|
233
|
+
return "maz-border-primary";
|
|
234
|
+
if (l.color === "secondary")
|
|
235
|
+
return "maz-border-secondary";
|
|
236
|
+
if (l.color === "success")
|
|
237
|
+
return "maz-border-success";
|
|
238
|
+
if (l.color === "warning")
|
|
239
|
+
return "maz-border-warning";
|
|
240
|
+
if (l.color === "white")
|
|
241
|
+
return "maz-border-white";
|
|
242
|
+
}
|
|
243
|
+
return "--default-border";
|
|
244
|
+
}
|
|
245
|
+
}), W = Ee(), X = p(() => {
|
|
246
|
+
const { required: o, placeholder: g } = l;
|
|
247
|
+
if (g)
|
|
248
|
+
return o ? `${g} *` : g;
|
|
249
|
+
}), Y = p(() => M.value !== void 0 && M.value !== ""), C = Ge(
|
|
250
|
+
(o) => {
|
|
251
|
+
t("update:model-value", o);
|
|
252
|
+
},
|
|
253
|
+
typeof l.debounce == "number" ? l.debounce : l.debounceDelay ?? 500
|
|
254
|
+
);
|
|
255
|
+
function N(o) {
|
|
256
|
+
if (l.debounce)
|
|
257
|
+
return C(o);
|
|
258
|
+
t("update:model-value", o);
|
|
259
|
+
}
|
|
260
|
+
const M = p({
|
|
261
|
+
get: () => l.modelValue,
|
|
262
|
+
set: (o) => N(o)
|
|
263
|
+
}), j = p(() => (!!l.label || !!l.hint) && (f.value || !!Y.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), x = p(() => !!l.label || !!l.hint);
|
|
264
|
+
function _() {
|
|
265
|
+
return !!W["right-icon"] || J.value || !!W["valid-button"] || l.validButton || !!l.rightIcon;
|
|
266
|
+
}
|
|
267
|
+
function L() {
|
|
268
|
+
return !!W["left-icon"] || !!l.leftIcon;
|
|
269
|
+
}
|
|
270
|
+
function Q(o) {
|
|
271
|
+
t("focus", o), f.value = !0;
|
|
272
|
+
}
|
|
273
|
+
function ae(o) {
|
|
274
|
+
t("blur", o), f.value = !1;
|
|
275
|
+
}
|
|
276
|
+
function ne(o) {
|
|
277
|
+
return t("change", o);
|
|
278
|
+
}
|
|
279
|
+
function T(o) {
|
|
280
|
+
return t("input", o);
|
|
281
|
+
}
|
|
282
|
+
return (o, g) => (m(), z(
|
|
283
|
+
"div",
|
|
284
|
+
{
|
|
285
|
+
class: B(["m-input", [
|
|
286
|
+
{
|
|
287
|
+
"--is-focused": f.value || o.borderActive,
|
|
288
|
+
"--should-up": j.value,
|
|
289
|
+
"--has-label": x.value,
|
|
290
|
+
"--is-disabled": o.disabled,
|
|
291
|
+
"--is-readonly": o.readonly,
|
|
292
|
+
"--has-z-2": o.error || o.warning || o.success,
|
|
293
|
+
"--has-state": o.error || o.warning || o.success,
|
|
294
|
+
"--block": o.block
|
|
295
|
+
},
|
|
296
|
+
l.class,
|
|
297
|
+
`--${o.color}`
|
|
298
|
+
]]),
|
|
299
|
+
style: ee(o.style)
|
|
300
|
+
},
|
|
301
|
+
[
|
|
302
|
+
o.topLabel ? (m(), z("label", {
|
|
303
|
+
key: 0,
|
|
304
|
+
for: h(Z),
|
|
305
|
+
class: "m-input-top-label"
|
|
306
|
+
}, G(o.topLabel), 9, Je)) : b("v-if", !0),
|
|
307
|
+
O(
|
|
308
|
+
"div",
|
|
309
|
+
{
|
|
310
|
+
class: B(["m-input-wrapper", [
|
|
311
|
+
o.inputClasses,
|
|
312
|
+
I.value,
|
|
313
|
+
o.roundedSize ? `--rounded-${o.roundedSize}` : { "maz-rounded": !o.noRadius },
|
|
314
|
+
{ "--block": o.block }
|
|
315
|
+
]])
|
|
316
|
+
},
|
|
317
|
+
[
|
|
318
|
+
L() ? (m(), z("div", Xe, [
|
|
319
|
+
o.$slots["left-icon"] || o.leftIcon ? q(o.$slots, "left-icon", { key: 0 }, () => [
|
|
320
|
+
typeof o.leftIcon == "string" ? (m(), K(h(d), {
|
|
321
|
+
key: 0,
|
|
322
|
+
name: o.leftIcon,
|
|
323
|
+
class: "maz-text-xl maz-text-muted"
|
|
324
|
+
}, null, 8, ["name"])) : o.leftIcon ? (m(), K(me(o.leftIcon), {
|
|
325
|
+
key: 1,
|
|
326
|
+
class: "maz-text-xl maz-text-muted"
|
|
327
|
+
})) : b("v-if", !0)
|
|
328
|
+
], !0) : b("v-if", !0)
|
|
329
|
+
])) : b("v-if", !0),
|
|
330
|
+
O(
|
|
331
|
+
"div",
|
|
332
|
+
{
|
|
333
|
+
class: B(["m-input-wrapper-input", [`--${o.size}`, { "--top-label": !!o.topLabel }]])
|
|
334
|
+
},
|
|
335
|
+
[
|
|
336
|
+
he(O("input", ge({
|
|
337
|
+
id: h(Z),
|
|
338
|
+
ref_key: "input",
|
|
339
|
+
ref: D,
|
|
340
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => M.value = E),
|
|
341
|
+
type: le.value,
|
|
342
|
+
name: o.name
|
|
343
|
+
}, o.$attrs, {
|
|
344
|
+
inputmode: o.inputmode,
|
|
345
|
+
placeholder: X.value,
|
|
346
|
+
"aria-label": o.label || o.placeholder,
|
|
347
|
+
disabled: o.disabled,
|
|
348
|
+
readonly: o.readonly,
|
|
349
|
+
required: o.required,
|
|
350
|
+
class: "m-input-input"
|
|
351
|
+
}, Oe({
|
|
352
|
+
blur: ae,
|
|
353
|
+
focus: Q,
|
|
354
|
+
change: ne,
|
|
355
|
+
input: T
|
|
356
|
+
}, !0), {
|
|
357
|
+
onClick: g[1] || (g[1] = (E) => o.$emit("click", E))
|
|
358
|
+
}), null, 16, Ye), [
|
|
359
|
+
[De, M.value]
|
|
360
|
+
]),
|
|
361
|
+
o.label || o.hint ? (m(), z(
|
|
362
|
+
"span",
|
|
363
|
+
{
|
|
364
|
+
key: 0,
|
|
365
|
+
class: B(["m-input-label", [
|
|
366
|
+
{
|
|
367
|
+
"maz-text-danger-600": o.error,
|
|
368
|
+
"maz-text-success-600": o.success,
|
|
369
|
+
"maz-text-warning-600": o.warning
|
|
370
|
+
}
|
|
371
|
+
]])
|
|
372
|
+
},
|
|
373
|
+
[
|
|
374
|
+
Ne(
|
|
375
|
+
G(o.hint || o.label) + " ",
|
|
376
|
+
1
|
|
377
|
+
/* TEXT */
|
|
378
|
+
),
|
|
379
|
+
o.required ? (m(), z("sup", xe, "*")) : b("v-if", !0)
|
|
380
|
+
],
|
|
381
|
+
2
|
|
382
|
+
/* CLASS */
|
|
383
|
+
)) : b("v-if", !0)
|
|
384
|
+
],
|
|
385
|
+
2
|
|
386
|
+
/* CLASS */
|
|
387
|
+
),
|
|
388
|
+
_() ? (m(), z("div", _e, [
|
|
389
|
+
o.$slots["right-icon"] || o.rightIcon ? q(o.$slots, "right-icon", { key: 0 }, () => [
|
|
390
|
+
typeof o.rightIcon == "string" ? (m(), K(h(d), {
|
|
391
|
+
key: 0,
|
|
392
|
+
name: o.rightIcon,
|
|
393
|
+
class: "maz-text-xl maz-text-muted"
|
|
394
|
+
}, null, 8, ["name"])) : o.rightIcon ? (m(), K(me(o.rightIcon), {
|
|
395
|
+
key: 1,
|
|
396
|
+
class: "maz-text-xl maz-text-muted"
|
|
397
|
+
})) : b("v-if", !0)
|
|
398
|
+
], !0) : b("v-if", !0),
|
|
399
|
+
J.value ? (m(), K(h(i), {
|
|
400
|
+
key: 1,
|
|
401
|
+
color: "transparent",
|
|
402
|
+
tabindex: "-1",
|
|
403
|
+
size: "mini",
|
|
404
|
+
onClick: g[2] || (g[2] = F((E) => k.value = !k.value, ["stop"]))
|
|
405
|
+
}, {
|
|
406
|
+
default: te(() => [
|
|
407
|
+
k.value ? (m(), K(h(y), {
|
|
408
|
+
key: 0,
|
|
409
|
+
class: "maz-text-xl maz-text-muted"
|
|
410
|
+
})) : (m(), K(h($), {
|
|
411
|
+
key: 1,
|
|
412
|
+
class: "maz-text-xl maz-text-muted"
|
|
413
|
+
}))
|
|
414
|
+
]),
|
|
415
|
+
_: 1
|
|
416
|
+
/* STABLE */
|
|
417
|
+
})) : b("v-if", !0),
|
|
418
|
+
o.$slots["valid-button"] || o.validButton ? q(o.$slots, "valid-button", { key: 2 }, () => [
|
|
419
|
+
H(h(i), {
|
|
420
|
+
color: "transparent",
|
|
421
|
+
disabled: o.disabled,
|
|
422
|
+
tabindex: "-1",
|
|
423
|
+
loading: o.validButtonLoading,
|
|
424
|
+
class: "m-input-valid-button",
|
|
425
|
+
size: "mini",
|
|
426
|
+
type: "submit"
|
|
427
|
+
}, {
|
|
428
|
+
default: te(() => [
|
|
429
|
+
H(h(U), { class: "maz-text-2xl maz-text-normal" })
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
/* STABLE */
|
|
433
|
+
}, 8, ["disabled", "loading"])
|
|
434
|
+
], !0) : b("v-if", !0)
|
|
435
|
+
])) : b("v-if", !0)
|
|
436
|
+
],
|
|
437
|
+
2
|
|
438
|
+
/* CLASS */
|
|
439
|
+
),
|
|
440
|
+
o.assistiveText ? (m(), z(
|
|
441
|
+
"div",
|
|
442
|
+
{
|
|
443
|
+
key: 1,
|
|
444
|
+
class: B(["m-input-bottom-text", [
|
|
445
|
+
{
|
|
446
|
+
"maz-text-danger-600": o.error,
|
|
447
|
+
"maz-text-success-600": o.success,
|
|
448
|
+
"maz-text-warning-600": o.warning,
|
|
449
|
+
"maz-text-muted": !o.error && !o.success && !o.warning
|
|
450
|
+
}
|
|
451
|
+
]])
|
|
452
|
+
},
|
|
453
|
+
G(o.assistiveText),
|
|
454
|
+
3
|
|
455
|
+
/* TEXT, CLASS */
|
|
456
|
+
)) : b("v-if", !0)
|
|
457
|
+
],
|
|
458
|
+
6
|
|
459
|
+
/* CLASS, STYLE */
|
|
460
|
+
));
|
|
461
|
+
}
|
|
462
|
+
}), ye = /* @__PURE__ */ we(et, [["__scopeId", "data-v-2cfe0ca2"]]), tt = ["aria-label"], ot = { class: "m-select-list__no-results" }, lt = {
|
|
463
|
+
key: 2,
|
|
464
|
+
class: "m-select-list__scroll-wrapper",
|
|
465
|
+
tabindex: "-1"
|
|
466
|
+
}, at = { class: "m-select-list-optgroup" }, nt = ["onClick"], st = /* @__PURE__ */ be({
|
|
467
|
+
inheritAttrs: !1,
|
|
468
|
+
__name: "MazSelect",
|
|
469
|
+
props: {
|
|
470
|
+
style: { default: void 0 },
|
|
471
|
+
class: { default: void 0 },
|
|
472
|
+
id: { default: void 0 },
|
|
473
|
+
modelValue: { default: void 0 },
|
|
474
|
+
options: { default: void 0 },
|
|
475
|
+
optionValueKey: { default: "value" },
|
|
476
|
+
optionLabelKey: { default: "label" },
|
|
477
|
+
optionInputValueKey: { default: "label" },
|
|
478
|
+
listPosition: { default: "bottom left" },
|
|
479
|
+
itemHeight: { default: void 0 },
|
|
480
|
+
maxListHeight: { default: 240 },
|
|
481
|
+
maxListWidth: { default: void 0 },
|
|
482
|
+
minListHeight: { default: void 0 },
|
|
483
|
+
minListWidth: { default: void 0 },
|
|
484
|
+
size: { default: "md" },
|
|
485
|
+
color: { default: "primary" },
|
|
486
|
+
search: { type: Boolean },
|
|
487
|
+
searchPlaceholder: { default: "Search in options" },
|
|
488
|
+
searchThreshold: { default: 0.75 },
|
|
489
|
+
open: { type: Boolean },
|
|
490
|
+
multiple: { type: Boolean, default: void 0 },
|
|
491
|
+
required: { type: Boolean },
|
|
492
|
+
disabled: { type: Boolean },
|
|
493
|
+
block: { type: Boolean },
|
|
494
|
+
excludeSelectors: { default: void 0 },
|
|
495
|
+
autocomplete: { default: "off" }
|
|
496
|
+
},
|
|
497
|
+
emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
|
|
498
|
+
setup(u, { expose: r, emit: l }) {
|
|
499
|
+
const t = u, i = l, d = A(() => import("./MazCheckbox-DxfneUvu.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), U = A(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
500
|
+
r({
|
|
501
|
+
/** Method to open the option list */
|
|
502
|
+
openList: R,
|
|
503
|
+
/** Method to close the option list */
|
|
504
|
+
closeList: P
|
|
505
|
+
});
|
|
506
|
+
const k = V(!1), f = V(), D = p(
|
|
507
|
+
() => ["black", "transparent", "white"].includes(t.color)
|
|
508
|
+
), Z = p(
|
|
509
|
+
() => D.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
|
|
510
|
+
), J = p(
|
|
511
|
+
() => D.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
512
|
+
), le = p(
|
|
513
|
+
() => D.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
514
|
+
), I = p(() => k.value || t.open), W = ze({
|
|
515
|
+
componentName: "MazSelect",
|
|
516
|
+
providedId: t.id
|
|
517
|
+
});
|
|
518
|
+
function X(e) {
|
|
519
|
+
return {
|
|
520
|
+
[t.optionValueKey]: e,
|
|
521
|
+
[t.optionLabelKey]: e,
|
|
522
|
+
[t.optionInputValueKey]: e
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function Y(e) {
|
|
526
|
+
return {
|
|
527
|
+
...e,
|
|
528
|
+
[t.optionValueKey]: e[t.optionValueKey],
|
|
529
|
+
[t.optionLabelKey]: e[t.optionLabelKey],
|
|
530
|
+
[t.optionInputValueKey]: e[t.optionInputValueKey]
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
const C = p(() => {
|
|
534
|
+
var a;
|
|
535
|
+
const e = [];
|
|
536
|
+
if (!((a = t.options) != null && a.length))
|
|
537
|
+
return [];
|
|
538
|
+
for (const s of t.options)
|
|
539
|
+
typeof s == "string" || typeof s == "number" || typeof s == "boolean" ? e.push(X(s)) : typeof s == "object" && "options" in s && Array.isArray(s.options) ? e.push(
|
|
540
|
+
{ label: s.label, isOptGroup: !0 },
|
|
541
|
+
...s.options.map(
|
|
542
|
+
(n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? X(n) : Y(n)
|
|
543
|
+
)
|
|
544
|
+
) : e.push(Y(s));
|
|
545
|
+
return e;
|
|
546
|
+
}), N = p(
|
|
547
|
+
() => {
|
|
548
|
+
var e;
|
|
549
|
+
return ((e = C.value) == null ? void 0 : e.filter((a) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(a[t.optionValueKey]) && !L(a[t.optionValueKey]) : !1 : t.modelValue === a[t.optionValueKey] && !L(a[t.optionValueKey]))) ?? [];
|
|
550
|
+
}
|
|
551
|
+
);
|
|
552
|
+
Pe(() => {
|
|
553
|
+
var e;
|
|
554
|
+
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ie();
|
|
555
|
+
});
|
|
556
|
+
const M = V(), j = V(), x = V(), _ = V();
|
|
557
|
+
function L(e) {
|
|
558
|
+
return e == null;
|
|
559
|
+
}
|
|
560
|
+
function Q(e) {
|
|
561
|
+
var s;
|
|
562
|
+
return (((s = N.value) == null ? void 0 : s.some(
|
|
563
|
+
(n) => n[t.optionValueKey] === e[t.optionValueKey]
|
|
564
|
+
)) ?? !1) && !L(e[t.optionValueKey]);
|
|
565
|
+
}
|
|
566
|
+
const ae = p(() => {
|
|
567
|
+
var a;
|
|
568
|
+
if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
|
|
569
|
+
return t.modelValue.map(
|
|
570
|
+
(s) => {
|
|
571
|
+
var n, c;
|
|
572
|
+
return (c = (n = C.value) == null ? void 0 : n.find((v) => v[t.optionValueKey] === s)) == null ? void 0 : c[t.optionInputValueKey];
|
|
573
|
+
}
|
|
574
|
+
).join(", ");
|
|
575
|
+
const e = (a = C.value) == null ? void 0 : a.find(
|
|
576
|
+
(s) => s[t.optionValueKey] === t.modelValue
|
|
577
|
+
);
|
|
578
|
+
return L(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
|
|
579
|
+
}), ne = p(
|
|
580
|
+
() => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
581
|
+
), T = V(""), o = V("");
|
|
582
|
+
function g(e, a) {
|
|
583
|
+
return a && e && oe(e).includes(oe(a));
|
|
584
|
+
}
|
|
585
|
+
function E(e) {
|
|
586
|
+
var a;
|
|
587
|
+
return e ? (a = C.value) == null ? void 0 : a.filter((s) => {
|
|
588
|
+
const n = s[t.optionLabelKey], c = s[t.optionValueKey], v = s[t.optionInputValueKey], w = t.searchThreshold;
|
|
589
|
+
return g(n, e) || g(v, e) || g(c, e) || typeof n == "string" && re(n, e, w).isMatching.value || typeof v == "string" && re(v, e, w).isMatching.value || typeof c == "string" && re(c, e, w).isMatching.value;
|
|
590
|
+
}) : C.value;
|
|
591
|
+
}
|
|
592
|
+
const S = p(() => E(T.value));
|
|
593
|
+
async function P(e) {
|
|
594
|
+
var s, n;
|
|
595
|
+
if (!I.value)
|
|
596
|
+
return;
|
|
597
|
+
if (e && ("relatedTarget" in e && ((s = M.value) != null && s.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
598
|
+
return e.preventDefault();
|
|
599
|
+
const a = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
600
|
+
if ((n = t.excludeSelectors) != null && n.includes(`#${a}`))
|
|
601
|
+
return e == null ? void 0 : e.preventDefault();
|
|
602
|
+
await ue(), k.value = !1, f.value = 0, i("close", e);
|
|
603
|
+
}
|
|
604
|
+
async function R(e) {
|
|
605
|
+
t.disabled || I.value || (e == null || e.preventDefault(), k.value = !0, await se(), i("focus", e), i("open", k.value));
|
|
606
|
+
}
|
|
607
|
+
function ce() {
|
|
608
|
+
var e, a;
|
|
609
|
+
(a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
|
|
610
|
+
}
|
|
611
|
+
function Se() {
|
|
612
|
+
var e, a;
|
|
613
|
+
(a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
|
|
614
|
+
}
|
|
615
|
+
function Ke(e) {
|
|
616
|
+
k.value ? P(e) : ce();
|
|
617
|
+
}
|
|
618
|
+
function Ae(e) {
|
|
619
|
+
var a, s;
|
|
620
|
+
T.value = e, (s = ((a = x.value) == null ? void 0 : a.$el).querySelector("input")) == null || s.focus();
|
|
621
|
+
}
|
|
622
|
+
function $e(e) {
|
|
623
|
+
var s;
|
|
624
|
+
e === "Backspace" && o.value.length > 0 ? o.value = o.value.slice(0, -1) : o.value += e;
|
|
625
|
+
const a = E(o.value);
|
|
626
|
+
a != null && a.length && (f.value = (s = S.value) == null ? void 0 : s.findIndex(
|
|
627
|
+
(n) => n[t.optionValueKey] === a[0][t.optionValueKey]
|
|
628
|
+
), typeof f.value == "number" && f.value >= 0 && se(f.value)), Ze(() => {
|
|
629
|
+
o.value = "";
|
|
630
|
+
}, 1e3);
|
|
631
|
+
}
|
|
632
|
+
function Le(e) {
|
|
633
|
+
const a = e.key;
|
|
634
|
+
/^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), R(e), t.search ? Ae(a) : $e(a)) : pe(e);
|
|
635
|
+
}
|
|
636
|
+
function pe(e, a = !0) {
|
|
637
|
+
const s = e.code, n = ["ArrowUp", "ArrowDown"].includes(s), c = (a ? ["Enter", "Space"] : ["Enter"]).includes(s), v = s === "Escape" && I.value;
|
|
638
|
+
n ? Be(e, f.value) : c ? Ce(e, f.value) : v && P(e);
|
|
639
|
+
}
|
|
640
|
+
function Be(e, a) {
|
|
641
|
+
var c;
|
|
642
|
+
e.preventDefault();
|
|
643
|
+
const s = e.code;
|
|
644
|
+
I.value || R(e);
|
|
645
|
+
const n = (c = S.value) == null ? void 0 : c.length;
|
|
646
|
+
n && (typeof a == "number" ? a === n - 1 && s === "ArrowDown" ? f.value = 0 : a === 0 && s === "ArrowUp" ? f.value = n - 1 : f.value = s === "ArrowDown" ? a + 1 : a - 1 : f.value = s === "ArrowDown" ? 0 : n - 1, se(f.value));
|
|
647
|
+
}
|
|
648
|
+
function Ce(e, a) {
|
|
649
|
+
var n, c, v;
|
|
650
|
+
if (!I.value)
|
|
651
|
+
return;
|
|
652
|
+
e.preventDefault();
|
|
653
|
+
const s = 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];
|
|
654
|
+
L(s) || fe(s);
|
|
655
|
+
}
|
|
656
|
+
async function se(e) {
|
|
657
|
+
var s, n;
|
|
658
|
+
await ue(), typeof e != "number" && ie();
|
|
659
|
+
const a = e ?? f.value;
|
|
660
|
+
if (typeof a == "number" && a >= 0) {
|
|
661
|
+
const c = (s = _.value) == null ? void 0 : s.querySelectorAll(".m-select-list-item");
|
|
662
|
+
(n = c == null ? void 0 : c[a]) == null || n.scrollIntoView({
|
|
663
|
+
behavior: "auto",
|
|
664
|
+
block: "nearest",
|
|
665
|
+
inline: "start"
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
function ie(e) {
|
|
670
|
+
var s;
|
|
671
|
+
const a = (s = S.value) == null ? void 0 : s.findIndex((n) => {
|
|
672
|
+
var c, v;
|
|
673
|
+
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === n[t.optionValueKey] : [...t.modelValue].reverse()[0] === n[t.optionValueKey] : ((v = (c = N.value) == null ? void 0 : c[0]) == null ? void 0 : v[t.optionValueKey]) === n[t.optionValueKey];
|
|
674
|
+
});
|
|
675
|
+
f.value = a && a >= 0 ? a : 0;
|
|
676
|
+
}
|
|
677
|
+
function fe(e, a = !0) {
|
|
678
|
+
var v;
|
|
679
|
+
a && !t.multiple && ue(() => P()), T.value = "";
|
|
680
|
+
const s = (v = N.value) == null ? void 0 : v.some(
|
|
681
|
+
(w) => w[t.optionValueKey] === e[t.optionValueKey]
|
|
682
|
+
);
|
|
683
|
+
let n = N.value;
|
|
684
|
+
s && t.multiple ? n = n == null ? void 0 : n.filter(
|
|
685
|
+
(w) => w[t.optionValueKey] !== e[t.optionValueKey]
|
|
686
|
+
) : t.multiple ? n.push(e) : n = [e];
|
|
687
|
+
const c = n.map((w) => w[t.optionValueKey]);
|
|
688
|
+
i("update:model-value", t.multiple ? c : c[0]), i("selected-option", e), Se(), ie(e), ce();
|
|
689
|
+
}
|
|
690
|
+
return (e, a) => {
|
|
691
|
+
var s;
|
|
692
|
+
return he((m(), z(
|
|
693
|
+
"div",
|
|
694
|
+
{
|
|
695
|
+
ref_key: "mazSelectElement",
|
|
696
|
+
ref: M,
|
|
697
|
+
class: B(["m-select", [
|
|
698
|
+
{ "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
|
|
699
|
+
t.class,
|
|
700
|
+
`--${e.size}`
|
|
701
|
+
]]),
|
|
702
|
+
style: ee([e.style, { "--keyboard-selected-bg-color": le.value, "--selected-bg-color": J.value, "--selected-text-color": Z.value }])
|
|
703
|
+
},
|
|
704
|
+
[
|
|
705
|
+
H(ye, ge({
|
|
706
|
+
id: h(W),
|
|
707
|
+
ref_key: "mazInputComponent",
|
|
708
|
+
ref: j,
|
|
709
|
+
class: "m-select-input"
|
|
710
|
+
}, e.$attrs, {
|
|
711
|
+
required: e.required,
|
|
712
|
+
"border-active": k.value,
|
|
713
|
+
color: e.color,
|
|
714
|
+
"model-value": ae.value,
|
|
715
|
+
size: e.size,
|
|
716
|
+
block: "",
|
|
717
|
+
autocomplete: e.autocomplete,
|
|
718
|
+
disabled: e.disabled,
|
|
719
|
+
onFocus: F(R, ["prevent", "stop"]),
|
|
720
|
+
onBlur: F(P, ["prevent", "stop"]),
|
|
721
|
+
onClick: F(R, ["prevent", "stop"]),
|
|
722
|
+
onChange: a[0] || (a[0] = (n) => i("change", n)),
|
|
723
|
+
onInput: a[1] || (a[1] = (n) => i("input", n)),
|
|
724
|
+
onKeydown: Le
|
|
725
|
+
}), {
|
|
726
|
+
"right-icon": te(() => [
|
|
727
|
+
O("button", {
|
|
728
|
+
tabindex: "-1",
|
|
729
|
+
type: "button",
|
|
730
|
+
class: "m-select-input__toggle-button maz-custom",
|
|
731
|
+
"aria-label": `${I.value ? "collapse" : "expand"} list of options`,
|
|
732
|
+
onClick: F(Ke, ["stop"])
|
|
733
|
+
}, [
|
|
734
|
+
H(h($), { class: "m-select-chevron maz-text-xl" })
|
|
735
|
+
], 8, tt)
|
|
736
|
+
]),
|
|
737
|
+
_: 1
|
|
738
|
+
/* STABLE */
|
|
739
|
+
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
|
|
740
|
+
H(Fe, { name: ne.value }, {
|
|
741
|
+
default: te(() => [
|
|
742
|
+
I.value ? (m(), z(
|
|
743
|
+
"div",
|
|
744
|
+
{
|
|
745
|
+
key: 0,
|
|
746
|
+
ref_key: "optionsListElement",
|
|
747
|
+
ref: _,
|
|
748
|
+
class: B(["m-select-list", {
|
|
749
|
+
"--top": e.listPosition.includes("top"),
|
|
750
|
+
"--left": e.listPosition.includes("left"),
|
|
751
|
+
"--right": e.listPosition.includes("right"),
|
|
752
|
+
"--bottom": e.listPosition.includes("bottom")
|
|
753
|
+
}]),
|
|
754
|
+
style: ee({
|
|
755
|
+
maxHeight: `${e.maxListHeight}px`,
|
|
756
|
+
maxWidth: `${e.maxListWidth}px`,
|
|
757
|
+
minHeight: `${e.minListHeight}px`,
|
|
758
|
+
minWidth: `${e.minListWidth}px`
|
|
759
|
+
})
|
|
760
|
+
},
|
|
761
|
+
[
|
|
762
|
+
e.search ? (m(), K(ye, {
|
|
763
|
+
key: 0,
|
|
764
|
+
ref_key: "searchInputComponent",
|
|
765
|
+
ref: x,
|
|
766
|
+
modelValue: T.value,
|
|
767
|
+
"onUpdate:modelValue": [
|
|
768
|
+
a[2] || (a[2] = (n) => T.value = n),
|
|
769
|
+
a[4] || (a[4] = (n) => f.value = 0)
|
|
770
|
+
],
|
|
771
|
+
size: "sm",
|
|
772
|
+
color: e.color,
|
|
773
|
+
placeholder: e.searchPlaceholder,
|
|
774
|
+
name: "search",
|
|
775
|
+
inputmode: "search",
|
|
776
|
+
autocomplete: "off",
|
|
777
|
+
tabindex: "-1",
|
|
778
|
+
class: "m-select-list__search-input maz-flex-none",
|
|
779
|
+
"left-icon": h(y),
|
|
780
|
+
onKeydown: a[3] || (a[3] = (n) => pe(n, !1))
|
|
781
|
+
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : b("v-if", !0),
|
|
782
|
+
!S.value || S.value.length <= 0 ? q(e.$slots, "no-results", { key: 1 }, () => [
|
|
783
|
+
O("span", ot, [
|
|
784
|
+
H(h(U), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
785
|
+
])
|
|
786
|
+
], !0) : (m(), z("div", lt, [
|
|
787
|
+
(m(!0), z(
|
|
788
|
+
ve,
|
|
789
|
+
null,
|
|
790
|
+
He(S.value, (n, c) => (m(), z(
|
|
791
|
+
ve,
|
|
792
|
+
{ key: c },
|
|
793
|
+
[
|
|
794
|
+
n.label && n.isOptGroup ? q(e.$slots, "optgroup", {
|
|
795
|
+
key: 0,
|
|
796
|
+
label: n.label
|
|
797
|
+
}, () => [
|
|
798
|
+
O(
|
|
799
|
+
"span",
|
|
800
|
+
at,
|
|
801
|
+
G(n.label),
|
|
802
|
+
1
|
|
803
|
+
/* TEXT */
|
|
804
|
+
)
|
|
805
|
+
], !0) : (m(), z("button", {
|
|
806
|
+
key: 1,
|
|
807
|
+
tabindex: "-1",
|
|
808
|
+
type: "button",
|
|
809
|
+
class: B(["m-select-list-item maz-custom maz-flex-none", [
|
|
810
|
+
{
|
|
811
|
+
"--is-keyboard-selected": f.value === c,
|
|
812
|
+
"--is-selected": Q(n),
|
|
813
|
+
"--is-none-value": L(n[e.optionValueKey])
|
|
814
|
+
}
|
|
815
|
+
]]),
|
|
816
|
+
style: ee(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
817
|
+
onClick: F((v) => fe(n), ["prevent", "stop"])
|
|
818
|
+
}, [
|
|
819
|
+
e.multiple ? (m(), K(h(d), {
|
|
820
|
+
key: 0,
|
|
821
|
+
tabindex: "-1",
|
|
822
|
+
"model-value": Q(n),
|
|
823
|
+
size: "sm",
|
|
824
|
+
color: e.color
|
|
825
|
+
}, null, 8, ["model-value", "color"])) : b("v-if", !0),
|
|
826
|
+
q(e.$slots, "default", {
|
|
827
|
+
option: n,
|
|
828
|
+
isSelected: Q(n)
|
|
829
|
+
}, () => [
|
|
830
|
+
O(
|
|
831
|
+
"span",
|
|
832
|
+
null,
|
|
833
|
+
G(n[e.optionLabelKey]),
|
|
834
|
+
1
|
|
835
|
+
/* TEXT */
|
|
836
|
+
)
|
|
837
|
+
], !0)
|
|
838
|
+
], 14, nt))
|
|
839
|
+
],
|
|
840
|
+
64
|
|
841
|
+
/* STABLE_FRAGMENT */
|
|
842
|
+
))),
|
|
843
|
+
128
|
|
844
|
+
/* KEYED_FRAGMENT */
|
|
845
|
+
))
|
|
846
|
+
]))
|
|
847
|
+
],
|
|
848
|
+
6
|
|
849
|
+
/* CLASS, STYLE */
|
|
850
|
+
)) : b("v-if", !0)
|
|
851
|
+
]),
|
|
852
|
+
_: 3
|
|
853
|
+
/* FORWARDED */
|
|
854
|
+
}, 8, ["name"])
|
|
855
|
+
],
|
|
856
|
+
6
|
|
857
|
+
/* CLASS, STYLE */
|
|
858
|
+
)), [
|
|
859
|
+
[h(Re), {
|
|
860
|
+
exclude: (s = e.excludeSelectors) != null && s.length ? e.excludeSelectors : [],
|
|
861
|
+
handler: P
|
|
862
|
+
}]
|
|
863
|
+
]);
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
}), ut = /* @__PURE__ */ we(st, [["__scopeId", "data-v-961aec79"]]);
|
|
867
|
+
export {
|
|
868
|
+
ut as M,
|
|
869
|
+
we as _,
|
|
870
|
+
ze as u
|
|
871
|
+
};
|