maz-ui 3.47.2-beta.0 → 3.47.2-beta.11
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.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 +14 -8
- 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 +130 -112
- 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-CvIiiTdM.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-FSXmHyhj.mjs → MazCard-XBaeDZkg.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-COTaKhKF.mjs} +20 -21
- package/components/chunks/{MazCheckbox-BmnqBHaY.mjs → MazCheckbox-B-Sw22La.mjs} +63 -60
- package/components/chunks/{MazCheckbox-Cq9gpTEw.mjs → MazCheckbox-DjY15PA3.mjs} +63 -58
- package/components/chunks/{MazCheckbox-2G4VkxDz.mjs → MazCheckbox-DxfneUvu.mjs} +63 -59
- package/components/chunks/{MazChecklist-CY1Cv70T.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-CZOokGAt.mjs → MazGallery-BooLoRWi.mjs} +64 -68
- package/components/chunks/{MazGallery-BknvUeo1.mjs → MazGallery-DUOQamrE.mjs} +63 -67
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-z-jTiuyI.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-BrxE5WVf.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-Cd25AzXc.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +596 -612
- package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
- package/components/chunks/{MazPickerMonthSwitcher-CyHYx8TT.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Bsi8cnox.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DLUSMAtz.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
- package/components/chunks/MazSelect-DOexatNj.mjs +871 -0
- package/components/chunks/{MazSelect-uCJPMXF-.mjs → MazSelect-DaDRzcT_.mjs} +172 -188
- package/components/chunks/{MazSpinner-2D0ZmAQz.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1Ip-Dwh.mjs → MazSpinner-BJpv1muf.mjs} +1 -1
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/{MazSpinner-BT_717pD.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
- package/components/chunks/{MazSpinner-B9OwpEP_.mjs → MazSpinner-C30YfScc.mjs} +1 -1
- 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-Bvb-lKER.mjs → MazSpinner-CkKIUYXO.mjs} +1 -1
- package/components/chunks/{MazSpinner-EFo8dM46.mjs → MazSpinner-CxyUHAvm.mjs} +1 -1
- package/components/chunks/MazSpinner-DROgQW2M.mjs +34 -0
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +34 -0
- 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-Cuz5QI08.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-BDA9G6Zw.mjs → MazTableTitle-OEgTPQB3.mjs} +4 -4
- package/components/chunks/MazTabsBar-CT35SCIK.mjs +177 -0
- package/components/chunks/{MazTransitionExpand-C-FHhOGB.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-DllGg8tw.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
- package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
- package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-DersvZQw.cjs} +1 -1
- package/modules/chunks/index-DvromXrX.cjs +124 -0
- package/modules/chunks/{index-x2F1l5sr.mjs → index-Kry9j5uD.mjs} +224 -249
- 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/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 +14 -8
- 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 +2 -2
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazBtn-BO3G90L3.mjs +0 -118
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-C87UEsVs.mjs +0 -118
- package/components/chunks/MazBtn-C_l3xuAh.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DJOUeES7.mjs +0 -118
- package/components/chunks/MazBtn-DVkwISlp.mjs +0 -118
- package/components/chunks/MazBtn-DadFupkY.mjs +0 -118
- package/components/chunks/MazBtn-DzBXfedt.mjs +0 -123
- package/components/chunks/MazBtn-GGcGrIH4.mjs +0 -118
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazExpandAnimation-Bkw_wFTi.mjs +0 -58
- package/components/chunks/MazInput-BQoQSRyL.mjs +0 -302
- package/components/chunks/MazInput-CJQB68c-.mjs +0 -290
- package/components/chunks/MazInput-oOA7gdLO.mjs +0 -291
- package/components/chunks/MazInputNumber-B4mQJcVB.mjs +0 -593
- package/components/chunks/MazInputTags-BVCej_gW.mjs +0 -606
- package/components/chunks/MazLink-Dl9ePCGm.mjs +0 -79
- package/components/chunks/MazLoadingBar-Dwf55oHy.mjs +0 -32
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazPicker-C78yxilJ.mjs +0 -2477
- package/components/chunks/MazSelect-CQDoUpgp.mjs +0 -864
- package/components/chunks/MazSpinner-C23CZ_Za.mjs +0 -34
- package/components/chunks/MazSpinner-CViChjTw.mjs +0 -34
- package/components/chunks/MazSpinner-CZMBhCOJ.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-D4C84xZe.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-u8WQTgUR.mjs +0 -34
- package/components/chunks/MazSpinner-w-S5uCxg.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTableCell-D_OTOJiy.mjs +0 -23
- package/components/chunks/MazTableRow-BTcVAyOy.mjs +0 -30
- package/components/chunks/MazTabsBar-JkRzMDM6.mjs +0 -203
- package/modules/chunks/MazBtn-BSnVxud6.mjs +0 -118
- package/modules/chunks/MazBtn-Bf9Cq5M7.cjs +0 -9
- package/modules/chunks/index-BPqjUr5e.cjs +0 -149
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computed as f, defineComponent as Ie,
|
|
2
|
-
import { u as
|
|
3
|
-
import re from "./MazInput-
|
|
4
|
-
import { _ as
|
|
5
|
-
import '../assets/MazSelect.css';const
|
|
1
|
+
import { computed as f, defineComponent as Ie, defineAsyncComponent as T, ref as g, onBeforeMount as Le, nextTick as W, withDirectives as we, openBlock as b, createElementBlock as A, normalizeClass as q, normalizeStyle as j, createVNode as $, mergeProps as Ce, unref as I, withModifiers as M, withCtx as ne, createElementVNode as N, Transition as Me, createBlock as ie, createCommentVNode as Q, renderSlot as G, Fragment as se, renderList as Ee, toDisplayString as ue } from "vue";
|
|
2
|
+
import { u as Te } from "./useInstanceUniqId-DW9jO1Sz.mjs";
|
|
3
|
+
import re from "./MazInput-BWAWlxDa.mjs";
|
|
4
|
+
import { _ as $e } from "./MazTable-Ci8nhgOP.mjs";
|
|
5
|
+
import '../assets/MazSelect.css';const Ne = {
|
|
6
6
|
removeAccents: !0,
|
|
7
7
|
caseSensitive: !1,
|
|
8
8
|
replaceSpaces: !0,
|
|
@@ -12,8 +12,8 @@ import '../assets/MazSelect.css';const Oe = {
|
|
|
12
12
|
removeNumbers: !1,
|
|
13
13
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
const
|
|
15
|
+
function O(r, c) {
|
|
16
|
+
const i = { ...Ne, ...c }, t = {
|
|
17
17
|
À: "A",
|
|
18
18
|
Á: "A",
|
|
19
19
|
Â: "A",
|
|
@@ -62,91 +62,91 @@ function B(r, c) {
|
|
|
62
62
|
ñ: "n",
|
|
63
63
|
ó: "o"
|
|
64
64
|
};
|
|
65
|
-
let
|
|
66
|
-
if (
|
|
67
|
-
for (const
|
|
68
|
-
|
|
69
|
-
return
|
|
65
|
+
let n = r.toString();
|
|
66
|
+
if (i.trim && (n = n.trim()), i.normalizeSpaces && (n = n.replaceAll(/\s+/g, " ")), i.replaceSpaces && (n = n.replaceAll(" ", "-")), i.removeNumbers && (n = n.replaceAll(/\d/g, "")), i.removeAccents && (n = n.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (s) => t[s] || s), n = n.replaceAll(/[\u0300-\u036F]/g, "")), i.caseSensitive === !1 && (n = n.toLowerCase()), i.removeSpecialCharacters && (n = n.replaceAll(/[^\dA-Z-]/gi, "")), i.trim && (n = n.trim()), i.customNormalizationForms)
|
|
67
|
+
for (const s of i.customNormalizationForms)
|
|
68
|
+
n = n.normalize(s);
|
|
69
|
+
return n;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const
|
|
73
|
-
for (let
|
|
74
|
-
|
|
75
|
-
for (let
|
|
76
|
-
|
|
77
|
-
for (let
|
|
71
|
+
function Oe(r, c) {
|
|
72
|
+
const i = r.length, t = c.length, n = [];
|
|
73
|
+
for (let s = 0; s <= i; s++)
|
|
74
|
+
n[s] = [s];
|
|
75
|
+
for (let s = 0; s <= t; s++)
|
|
76
|
+
n[0][s] = s;
|
|
77
|
+
for (let s = 1; s <= i; s++)
|
|
78
78
|
for (let m = 1; m <= t; m++) {
|
|
79
|
-
const V = r[
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
const V = r[s - 1] === c[m - 1] ? 0 : 1;
|
|
80
|
+
n[s][m] = Math.min(
|
|
81
|
+
n[s - 1][m] + 1,
|
|
82
|
+
n[s][m - 1] + 1,
|
|
83
|
+
n[s - 1][m - 1] + V
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return n[i][t];
|
|
87
87
|
}
|
|
88
88
|
function ce(r, c) {
|
|
89
|
-
const
|
|
90
|
-
return 1 -
|
|
89
|
+
const i = Oe(r, c), t = Math.max(r.length, c.length);
|
|
90
|
+
return 1 - i / t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return ce(r, c) >=
|
|
92
|
+
function xe(r, c, i = 0.75) {
|
|
93
|
+
return ce(r, c) >= i;
|
|
94
94
|
}
|
|
95
|
-
function Z(r, c,
|
|
95
|
+
function Z(r, c, i = 0.75) {
|
|
96
96
|
const t = f(
|
|
97
|
-
() =>
|
|
98
|
-
),
|
|
99
|
-
() =>
|
|
100
|
-
),
|
|
97
|
+
() => O(typeof r == "string" ? r : r.value)
|
|
98
|
+
), n = f(
|
|
99
|
+
() => O(typeof c == "string" ? c : c.value)
|
|
100
|
+
), s = f(() => typeof i == "number" ? i : i.value), m = f(() => ce(t.value, n.value));
|
|
101
101
|
return {
|
|
102
102
|
isMatching: f(
|
|
103
|
-
() =>
|
|
103
|
+
() => xe(t.value, n.value, s.value)
|
|
104
104
|
),
|
|
105
105
|
score: m
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function de(r, c,
|
|
108
|
+
function de(r, c, i) {
|
|
109
109
|
var m;
|
|
110
110
|
r.stopPropagation();
|
|
111
|
-
const t = typeof
|
|
112
|
-
let
|
|
113
|
-
if (
|
|
114
|
-
for (const V of
|
|
115
|
-
if (!
|
|
116
|
-
const
|
|
117
|
-
|
|
111
|
+
const t = typeof i.value == "function" ? i.value : i.value.handler, n = typeof i.value == "object" ? i.value.exclude : void 0;
|
|
112
|
+
let s = !1;
|
|
113
|
+
if (n && n.length > 0) {
|
|
114
|
+
for (const V of n)
|
|
115
|
+
if (!s && r.target instanceof HTMLElement) {
|
|
116
|
+
const x = (m = document.querySelector(V)) == null ? void 0 : m.getAttribute("id");
|
|
117
|
+
s = r.target.getAttribute("id") === x;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
!c.contains(r.target) && !
|
|
120
|
+
!c.contains(r.target) && !s && (t == null || t());
|
|
121
121
|
}
|
|
122
122
|
function pe() {
|
|
123
123
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
const
|
|
127
|
-
document.removeEventListener(
|
|
125
|
+
function Be(r, c) {
|
|
126
|
+
const i = pe();
|
|
127
|
+
document.removeEventListener(i, (t) => de(t, r, c));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function De(r, c) {
|
|
130
130
|
if (typeof c.value != "function" && typeof c.value == "object" && typeof c.value.handler != "function") {
|
|
131
131
|
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
document.addEventListener(
|
|
134
|
+
const i = pe();
|
|
135
|
+
document.addEventListener(i, (t) => de(t, r, c));
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
mounted:
|
|
139
|
-
unmounted:
|
|
137
|
+
const He = {
|
|
138
|
+
mounted: De,
|
|
139
|
+
unmounted: Be
|
|
140
140
|
};
|
|
141
141
|
let R = null;
|
|
142
|
-
function
|
|
142
|
+
function Pe(r, c) {
|
|
143
143
|
R && clearTimeout(R), R = setTimeout(r, c);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Fe = ["aria-label"], Ue = { class: "m-select-list__no-results" }, We = {
|
|
146
146
|
key: 2,
|
|
147
147
|
class: "m-select-list__scroll-wrapper",
|
|
148
148
|
tabindex: "-1"
|
|
149
|
-
}, qe = { class: "m-select-list-optgroup" },
|
|
149
|
+
}, qe = { class: "m-select-list-optgroup" }, je = ["onClick"], Qe = /* @__PURE__ */ Ie({
|
|
150
150
|
inheritAttrs: !1,
|
|
151
151
|
__name: "MazSelect",
|
|
152
152
|
props: {
|
|
@@ -178,28 +178,23 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
178
178
|
autocomplete: { default: "off" }
|
|
179
179
|
},
|
|
180
180
|
emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
|
|
181
|
-
setup(r, { expose: c, emit:
|
|
182
|
-
|
|
183
|
-
cb149e58: ve.value,
|
|
184
|
-
"215ff493": fe.value,
|
|
185
|
-
"64d6cfbb": me.value
|
|
186
|
-
}));
|
|
187
|
-
const t = r, a = s, i = $(() => import("./MazCheckbox-BmnqBHaY.mjs")), m = $(() => import("./magnifying-glass--nBiyXot.mjs")), V = $(() => import("./chevron-down-BkvtON3b.mjs")), D = $(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
181
|
+
setup(r, { expose: c, emit: i }) {
|
|
182
|
+
const t = r, n = i, s = T(() => import("./MazCheckbox-DjY15PA3.mjs")), m = T(() => import("./magnifying-glass--nBiyXot.mjs")), V = T(() => import("./chevron-down-BkvtON3b.mjs")), x = T(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
188
183
|
c({
|
|
189
184
|
/** Method to open the option list */
|
|
190
|
-
openList:
|
|
185
|
+
openList: C,
|
|
191
186
|
/** Method to close the option list */
|
|
192
187
|
closeList: k
|
|
193
188
|
});
|
|
194
|
-
const z =
|
|
189
|
+
const z = g(!1), p = g(), B = f(
|
|
195
190
|
() => ["black", "transparent", "white"].includes(t.color)
|
|
196
191
|
), fe = f(
|
|
197
|
-
() =>
|
|
192
|
+
() => B.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
|
|
198
193
|
), me = f(
|
|
199
|
-
() =>
|
|
194
|
+
() => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
200
195
|
), ve = f(
|
|
201
|
-
() =>
|
|
202
|
-
), h = f(() => z.value || t.open), ye =
|
|
196
|
+
() => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
197
|
+
), h = f(() => z.value || t.open), ye = Te({
|
|
203
198
|
componentName: "MazSelect",
|
|
204
199
|
providedId: t.id
|
|
205
200
|
});
|
|
@@ -223,31 +218,31 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
223
218
|
const e = [];
|
|
224
219
|
if (!((o = t.options) != null && o.length))
|
|
225
220
|
return [];
|
|
226
|
-
for (const
|
|
227
|
-
typeof
|
|
228
|
-
{ label:
|
|
229
|
-
...
|
|
221
|
+
for (const a of t.options)
|
|
222
|
+
typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? e.push(J(a)) : typeof a == "object" && "options" in a && Array.isArray(a.options) ? e.push(
|
|
223
|
+
{ label: a.label, isOptGroup: !0 },
|
|
224
|
+
...a.options.map(
|
|
230
225
|
(l) => typeof l == "string" || typeof l == "number" || typeof l == "boolean" ? J(l) : X(l)
|
|
231
226
|
)
|
|
232
|
-
) : e.push(X(
|
|
227
|
+
) : e.push(X(a));
|
|
233
228
|
return e;
|
|
234
|
-
}),
|
|
229
|
+
}), E = f(
|
|
235
230
|
() => {
|
|
236
231
|
var e;
|
|
237
232
|
return ((e = L.value) == null ? void 0 : e.filter((o) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(o[t.optionValueKey]) && !K(o[t.optionValueKey]) : !1 : t.modelValue === o[t.optionValueKey] && !K(o[t.optionValueKey]))) ?? [];
|
|
238
233
|
}
|
|
239
234
|
);
|
|
240
|
-
|
|
235
|
+
Le(() => {
|
|
241
236
|
var e;
|
|
242
|
-
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"),
|
|
237
|
+
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), U();
|
|
243
238
|
});
|
|
244
|
-
const Y =
|
|
239
|
+
const Y = g(), D = g(), _ = g(), ee = g();
|
|
245
240
|
function K(e) {
|
|
246
241
|
return e == null;
|
|
247
242
|
}
|
|
248
|
-
function
|
|
249
|
-
var
|
|
250
|
-
return (((
|
|
243
|
+
function H(e) {
|
|
244
|
+
var a;
|
|
245
|
+
return (((a = E.value) == null ? void 0 : a.some(
|
|
251
246
|
(l) => l[t.optionValueKey] === e[t.optionValueKey]
|
|
252
247
|
)) ?? !1) && !K(e[t.optionValueKey]);
|
|
253
248
|
}
|
|
@@ -255,97 +250,98 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
255
250
|
var o;
|
|
256
251
|
if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
|
|
257
252
|
return t.modelValue.map(
|
|
258
|
-
(
|
|
253
|
+
(a) => {
|
|
259
254
|
var l, u;
|
|
260
|
-
return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] ===
|
|
255
|
+
return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === a)) == null ? void 0 : u[t.optionInputValueKey];
|
|
261
256
|
}
|
|
262
257
|
).join(", ");
|
|
263
258
|
const e = (o = L.value) == null ? void 0 : o.find(
|
|
264
|
-
(
|
|
259
|
+
(a) => a[t.optionValueKey] === t.modelValue
|
|
265
260
|
);
|
|
266
261
|
return K(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
|
|
267
|
-
}),
|
|
262
|
+
}), ge = f(
|
|
268
263
|
() => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
269
|
-
),
|
|
270
|
-
function
|
|
271
|
-
return o && e &&
|
|
264
|
+
), w = g(""), S = g("");
|
|
265
|
+
function P(e, o) {
|
|
266
|
+
return o && e && O(e).includes(O(o));
|
|
272
267
|
}
|
|
273
268
|
function te(e) {
|
|
274
269
|
var o;
|
|
275
|
-
return e ? (o = L.value) == null ? void 0 : o.filter((
|
|
276
|
-
const l =
|
|
277
|
-
return
|
|
270
|
+
return e ? (o = L.value) == null ? void 0 : o.filter((a) => {
|
|
271
|
+
const l = a[t.optionLabelKey], u = a[t.optionValueKey], d = a[t.optionInputValueKey], v = t.searchThreshold;
|
|
272
|
+
return P(l, e) || P(d, e) || P(u, e) || typeof l == "string" && Z(l, e, v).isMatching.value || typeof d == "string" && Z(d, e, v).isMatching.value || typeof u == "string" && Z(u, e, v).isMatching.value;
|
|
278
273
|
}) : L.value;
|
|
279
274
|
}
|
|
280
|
-
const y = f(() => te(
|
|
275
|
+
const y = f(() => te(w.value));
|
|
281
276
|
async function k(e) {
|
|
282
|
-
var
|
|
277
|
+
var a, l;
|
|
283
278
|
if (!h.value)
|
|
284
279
|
return;
|
|
285
|
-
if (e && ("relatedTarget" in e && ((
|
|
280
|
+
if (e && ("relatedTarget" in e && ((a = Y.value) != null && a.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
286
281
|
return e.preventDefault();
|
|
287
282
|
const o = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
288
283
|
if ((l = t.excludeSelectors) != null && l.includes(`#${o}`))
|
|
289
284
|
return e == null ? void 0 : e.preventDefault();
|
|
290
|
-
await
|
|
285
|
+
await W(), z.value = !1, p.value = 0, n("close", e);
|
|
291
286
|
}
|
|
292
|
-
async function
|
|
293
|
-
t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await
|
|
287
|
+
async function C(e) {
|
|
288
|
+
t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await F(), n("focus", e), n("open", z.value));
|
|
294
289
|
}
|
|
295
290
|
function oe() {
|
|
296
291
|
var e, o;
|
|
297
|
-
(o = ((e =
|
|
292
|
+
(o = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.focus();
|
|
298
293
|
}
|
|
299
|
-
function
|
|
294
|
+
function be() {
|
|
300
295
|
var e, o;
|
|
301
|
-
(o = ((e =
|
|
296
|
+
(o = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.dispatchEvent(new Event("input"));
|
|
302
297
|
}
|
|
303
298
|
function Ve(e) {
|
|
304
299
|
z.value ? k(e) : oe();
|
|
305
300
|
}
|
|
306
301
|
function ze(e) {
|
|
307
|
-
var o,
|
|
308
|
-
|
|
302
|
+
var o, a;
|
|
303
|
+
w.value = e, (a = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || a.focus();
|
|
309
304
|
}
|
|
310
305
|
function Ke(e) {
|
|
311
|
-
var
|
|
306
|
+
var a;
|
|
312
307
|
e === "Backspace" && S.value.length > 0 ? S.value = S.value.slice(0, -1) : S.value += e;
|
|
313
308
|
const o = te(S.value);
|
|
314
|
-
o != null && o.length && (p.value = (
|
|
309
|
+
o != null && o.length && (p.value = (a = y.value) == null ? void 0 : a.findIndex(
|
|
315
310
|
(l) => l[t.optionValueKey] === o[0][t.optionValueKey]
|
|
316
|
-
), typeof p.value == "number" && p.value >= 0 &&
|
|
311
|
+
), typeof p.value == "number" && p.value >= 0 && F(p.value)), Pe(() => {
|
|
317
312
|
S.value = "";
|
|
318
313
|
}, 1e3);
|
|
319
314
|
}
|
|
320
315
|
function Se(e) {
|
|
321
316
|
const o = e.key;
|
|
322
|
-
/^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(),
|
|
317
|
+
/^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), C(e), t.search ? ze(o) : Ke(o)) : le(e);
|
|
323
318
|
}
|
|
324
319
|
function le(e, o = !0) {
|
|
325
|
-
const
|
|
320
|
+
const a = e.code, l = ["ArrowUp", "ArrowDown"].includes(a), u = (o ? ["Enter", "Space"] : ["Enter"]).includes(a), d = a === "Escape" && h.value;
|
|
326
321
|
l ? ke(e, p.value) : u ? Ae(e, p.value) : d && k(e);
|
|
327
322
|
}
|
|
328
323
|
function ke(e, o) {
|
|
329
324
|
var u;
|
|
330
325
|
e.preventDefault();
|
|
331
|
-
const
|
|
332
|
-
h.value ||
|
|
326
|
+
const a = e.code;
|
|
327
|
+
h.value || C(e);
|
|
333
328
|
const l = (u = y.value) == null ? void 0 : u.length;
|
|
334
|
-
l && (typeof o == "number" ? o === l - 1 &&
|
|
329
|
+
l && (typeof o == "number" ? o === l - 1 && a === "ArrowDown" ? p.value = 0 : o === 0 && a === "ArrowUp" ? p.value = l - 1 : p.value = a === "ArrowDown" ? o + 1 : o - 1 : p.value = a === "ArrowDown" ? 0 : l - 1, F(p.value));
|
|
335
330
|
}
|
|
336
331
|
function Ae(e, o) {
|
|
337
332
|
var l, u, d;
|
|
338
|
-
if (
|
|
339
|
-
return
|
|
340
|
-
|
|
341
|
-
|
|
333
|
+
if (!h.value)
|
|
334
|
+
return;
|
|
335
|
+
e.preventDefault();
|
|
336
|
+
const a = o ? ((l = y.value) == null ? void 0 : l[o]) ?? ((u = y.value) == null ? void 0 : u[0]) : (d = y.value) == null ? void 0 : d[0];
|
|
337
|
+
K(a) || ae(a);
|
|
342
338
|
}
|
|
343
|
-
async function
|
|
344
|
-
var
|
|
345
|
-
await
|
|
339
|
+
async function F(e) {
|
|
340
|
+
var a, l;
|
|
341
|
+
await W(), typeof e != "number" && U();
|
|
346
342
|
const o = e ?? p.value;
|
|
347
343
|
if (typeof o == "number" && o >= 0) {
|
|
348
|
-
const u = (
|
|
344
|
+
const u = (a = ee.value) == null ? void 0 : a.querySelectorAll(".m-select-list-item");
|
|
349
345
|
(l = u == null ? void 0 : u[o]) == null || l.scrollIntoView({
|
|
350
346
|
behavior: "auto",
|
|
351
347
|
block: "nearest",
|
|
@@ -353,30 +349,30 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
353
349
|
});
|
|
354
350
|
}
|
|
355
351
|
}
|
|
356
|
-
function
|
|
357
|
-
var
|
|
358
|
-
const o = (
|
|
352
|
+
function U(e) {
|
|
353
|
+
var a;
|
|
354
|
+
const o = (a = y.value) == null ? void 0 : a.findIndex((l) => {
|
|
359
355
|
var u, d;
|
|
360
|
-
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u =
|
|
356
|
+
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u = E.value) == null ? void 0 : u[0]) == null ? void 0 : d[t.optionValueKey]) === l[t.optionValueKey];
|
|
361
357
|
});
|
|
362
358
|
p.value = o && o >= 0 ? o : 0;
|
|
363
359
|
}
|
|
364
|
-
function
|
|
360
|
+
function ae(e, o = !0) {
|
|
365
361
|
var d;
|
|
366
|
-
o && !t.multiple &&
|
|
367
|
-
const
|
|
362
|
+
o && !t.multiple && W(() => k()), w.value = "";
|
|
363
|
+
const a = (d = E.value) == null ? void 0 : d.some(
|
|
368
364
|
(v) => v[t.optionValueKey] === e[t.optionValueKey]
|
|
369
365
|
);
|
|
370
|
-
let l =
|
|
371
|
-
|
|
366
|
+
let l = E.value;
|
|
367
|
+
a && t.multiple ? l = l == null ? void 0 : l.filter(
|
|
372
368
|
(v) => v[t.optionValueKey] !== e[t.optionValueKey]
|
|
373
369
|
) : t.multiple ? l.push(e) : l = [e];
|
|
374
370
|
const u = l.map((v) => v[t.optionValueKey]);
|
|
375
|
-
|
|
371
|
+
n("update:model-value", t.multiple ? u : u[0]), n("selected-option", e), be(), U(e), oe();
|
|
376
372
|
}
|
|
377
373
|
return (e, o) => {
|
|
378
|
-
var
|
|
379
|
-
return
|
|
374
|
+
var a;
|
|
375
|
+
return we((b(), A(
|
|
380
376
|
"div",
|
|
381
377
|
{
|
|
382
378
|
ref_key: "mazSelectElement",
|
|
@@ -386,13 +382,13 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
386
382
|
t.class,
|
|
387
383
|
`--${e.size}`
|
|
388
384
|
]]),
|
|
389
|
-
style:
|
|
385
|
+
style: j([e.style, { "--keyboard-selected-bg-color": ve.value, "--selected-bg-color": me.value, "--selected-text-color": fe.value }])
|
|
390
386
|
},
|
|
391
387
|
[
|
|
392
|
-
|
|
393
|
-
id:
|
|
388
|
+
$(re, Ce({
|
|
389
|
+
id: I(ye),
|
|
394
390
|
ref_key: "mazInputComponent",
|
|
395
|
-
ref:
|
|
391
|
+
ref: D,
|
|
396
392
|
class: "m-select-input"
|
|
397
393
|
}, e.$attrs, {
|
|
398
394
|
required: e.required,
|
|
@@ -403,30 +399,30 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
403
399
|
block: "",
|
|
404
400
|
autocomplete: e.autocomplete,
|
|
405
401
|
disabled: e.disabled,
|
|
406
|
-
onFocus:
|
|
407
|
-
onBlur:
|
|
408
|
-
onClick:
|
|
409
|
-
onChange: o[0] || (o[0] = (l) =>
|
|
410
|
-
onInput: o[1] || (o[1] = (l) =>
|
|
402
|
+
onFocus: M(C, ["prevent", "stop"]),
|
|
403
|
+
onBlur: M(k, ["prevent", "stop"]),
|
|
404
|
+
onClick: M(C, ["prevent", "stop"]),
|
|
405
|
+
onChange: o[0] || (o[0] = (l) => n("change", l)),
|
|
406
|
+
onInput: o[1] || (o[1] = (l) => n("input", l)),
|
|
411
407
|
onKeydown: Se
|
|
412
408
|
}), {
|
|
413
|
-
"right-icon":
|
|
414
|
-
|
|
409
|
+
"right-icon": ne(() => [
|
|
410
|
+
N("button", {
|
|
415
411
|
tabindex: "-1",
|
|
416
412
|
type: "button",
|
|
417
413
|
class: "m-select-input__toggle-button maz-custom",
|
|
418
414
|
"aria-label": `${h.value ? "collapse" : "expand"} list of options`,
|
|
419
|
-
onClick:
|
|
415
|
+
onClick: M(Ve, ["stop"])
|
|
420
416
|
}, [
|
|
421
|
-
|
|
422
|
-
], 8,
|
|
417
|
+
$(I(V), { class: "m-select-chevron maz-text-xl" })
|
|
418
|
+
], 8, Fe)
|
|
423
419
|
]),
|
|
424
420
|
_: 1
|
|
425
421
|
/* STABLE */
|
|
426
422
|
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
|
|
427
|
-
|
|
428
|
-
default:
|
|
429
|
-
h.value ? (
|
|
423
|
+
$(Me, { name: ge.value }, {
|
|
424
|
+
default: ne(() => [
|
|
425
|
+
h.value ? (b(), A(
|
|
430
426
|
"div",
|
|
431
427
|
{
|
|
432
428
|
key: 0,
|
|
@@ -438,7 +434,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
438
434
|
"--right": e.listPosition.includes("right"),
|
|
439
435
|
"--bottom": e.listPosition.includes("bottom")
|
|
440
436
|
}]),
|
|
441
|
-
style:
|
|
437
|
+
style: j({
|
|
442
438
|
maxHeight: `${e.maxListHeight}px`,
|
|
443
439
|
maxWidth: `${e.maxListWidth}px`,
|
|
444
440
|
minHeight: `${e.minListHeight}px`,
|
|
@@ -446,13 +442,13 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
446
442
|
})
|
|
447
443
|
},
|
|
448
444
|
[
|
|
449
|
-
e.search ? (
|
|
445
|
+
e.search ? (b(), ie(re, {
|
|
450
446
|
key: 0,
|
|
451
447
|
ref_key: "searchInputComponent",
|
|
452
448
|
ref: _,
|
|
453
|
-
modelValue:
|
|
449
|
+
modelValue: w.value,
|
|
454
450
|
"onUpdate:modelValue": [
|
|
455
|
-
o[2] || (o[2] = (l) =>
|
|
451
|
+
o[2] || (o[2] = (l) => w.value = l),
|
|
456
452
|
o[4] || (o[4] = (l) => p.value = 0)
|
|
457
453
|
],
|
|
458
454
|
size: "sm",
|
|
@@ -463,70 +459,58 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
463
459
|
autocomplete: "off",
|
|
464
460
|
tabindex: "-1",
|
|
465
461
|
class: "m-select-list__search-input maz-flex-none",
|
|
466
|
-
"left-icon":
|
|
462
|
+
"left-icon": I(m),
|
|
467
463
|
onKeydown: o[3] || (o[3] = (l) => le(l, !1))
|
|
468
|
-
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) :
|
|
469
|
-
w(`
|
|
470
|
-
@slot No results slot - Displayed when no results corresponding with search query
|
|
471
|
-
`),
|
|
464
|
+
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : Q("v-if", !0),
|
|
472
465
|
!y.value || y.value.length <= 0 ? G(e.$slots, "no-results", { key: 1 }, () => [
|
|
473
|
-
|
|
474
|
-
|
|
466
|
+
N("span", Ue, [
|
|
467
|
+
$(I(x), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
475
468
|
])
|
|
476
|
-
], !0) : (
|
|
477
|
-
(
|
|
478
|
-
|
|
469
|
+
], !0) : (b(), A("div", We, [
|
|
470
|
+
(b(!0), A(
|
|
471
|
+
se,
|
|
479
472
|
null,
|
|
480
|
-
|
|
481
|
-
|
|
473
|
+
Ee(y.value, (l, u) => (b(), A(
|
|
474
|
+
se,
|
|
482
475
|
{ key: u },
|
|
483
476
|
[
|
|
484
|
-
w(`
|
|
485
|
-
@slot Custom optgroup label
|
|
486
|
-
@binding {String} label - the label of the optgroup
|
|
487
|
-
`),
|
|
488
477
|
l.label && l.isOptGroup ? G(e.$slots, "optgroup", {
|
|
489
478
|
key: 0,
|
|
490
479
|
label: l.label
|
|
491
480
|
}, () => [
|
|
492
|
-
|
|
481
|
+
N(
|
|
493
482
|
"span",
|
|
494
483
|
qe,
|
|
495
484
|
ue(l.label),
|
|
496
485
|
1
|
|
497
486
|
/* TEXT */
|
|
498
487
|
)
|
|
499
|
-
], !0) : (
|
|
488
|
+
], !0) : (b(), A("button", {
|
|
500
489
|
key: 1,
|
|
501
490
|
tabindex: "-1",
|
|
502
491
|
type: "button",
|
|
503
492
|
class: q(["m-select-list-item maz-custom maz-flex-none", [
|
|
504
493
|
{
|
|
505
494
|
"--is-keyboard-selected": p.value === u,
|
|
506
|
-
"--is-selected":
|
|
495
|
+
"--is-selected": H(l),
|
|
507
496
|
"--is-none-value": K(l[e.optionValueKey])
|
|
508
497
|
}
|
|
509
498
|
]]),
|
|
510
|
-
style:
|
|
511
|
-
onClick:
|
|
499
|
+
style: j(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
500
|
+
onClick: M((d) => ae(l), ["prevent", "stop"])
|
|
512
501
|
}, [
|
|
513
|
-
e.multiple ? (
|
|
502
|
+
e.multiple ? (b(), ie(I(s), {
|
|
514
503
|
key: 0,
|
|
515
504
|
tabindex: "-1",
|
|
516
|
-
"model-value":
|
|
505
|
+
"model-value": H(l),
|
|
517
506
|
size: "sm",
|
|
518
507
|
color: e.color
|
|
519
|
-
}, null, 8, ["model-value", "color"])) :
|
|
520
|
-
w(`
|
|
521
|
-
@slot Custom option
|
|
522
|
-
@binding {Object} option - the option object
|
|
523
|
-
@binding {Boolean} is-selected - if the option is selected
|
|
524
|
-
`),
|
|
508
|
+
}, null, 8, ["model-value", "color"])) : Q("v-if", !0),
|
|
525
509
|
G(e.$slots, "default", {
|
|
526
510
|
option: l,
|
|
527
|
-
isSelected:
|
|
511
|
+
isSelected: H(l)
|
|
528
512
|
}, () => [
|
|
529
|
-
|
|
513
|
+
N(
|
|
530
514
|
"span",
|
|
531
515
|
null,
|
|
532
516
|
ue(l[e.optionLabelKey]),
|
|
@@ -534,7 +518,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
534
518
|
/* TEXT */
|
|
535
519
|
)
|
|
536
520
|
], !0)
|
|
537
|
-
], 14,
|
|
521
|
+
], 14, je))
|
|
538
522
|
],
|
|
539
523
|
64
|
|
540
524
|
/* STABLE_FRAGMENT */
|
|
@@ -546,7 +530,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
546
530
|
],
|
|
547
531
|
6
|
|
548
532
|
/* CLASS, STYLE */
|
|
549
|
-
)) :
|
|
533
|
+
)) : Q("v-if", !0)
|
|
550
534
|
]),
|
|
551
535
|
_: 3
|
|
552
536
|
/* FORWARDED */
|
|
@@ -555,14 +539,14 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
555
539
|
6
|
|
556
540
|
/* CLASS, STYLE */
|
|
557
541
|
)), [
|
|
558
|
-
[
|
|
559
|
-
exclude: (
|
|
542
|
+
[I(He), {
|
|
543
|
+
exclude: (a = e.excludeSelectors) != null && a.length ? e.excludeSelectors : [],
|
|
560
544
|
handler: k
|
|
561
545
|
}]
|
|
562
546
|
]);
|
|
563
547
|
};
|
|
564
548
|
}
|
|
565
|
-
}),
|
|
549
|
+
}), Xe = /* @__PURE__ */ $e(Qe, [["__scopeId", "data-v-961aec79"]]);
|
|
566
550
|
export {
|
|
567
|
-
|
|
551
|
+
Xe as default
|
|
568
552
|
};
|