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,614 @@
|
|
|
1
|
+
import { openBlock as l, createElementBlock as h, createElementVNode as E, defineComponent as q, defineAsyncComponent as T, useAttrs as ae, computed as s, createBlock as p, resolveDynamicComponent as D, normalizeClass as b, normalizeStyle as N, withCtx as P, renderSlot as V, unref as m, createCommentVNode as f, createVNode as O, useId as ne, ref as S, onMounted as le, useSlots as re, toDisplayString as U, withDirectives as se, mergeProps as G, toHandlers as ie, vModelDynamic as ue, createTextVNode as J, withModifiers as Q, TransitionGroup as de, Fragment as fe, renderList as ce, withKeys as H } from "vue";
|
|
2
|
+
import '../assets/MazInputTags.css';function K(c) {
|
|
3
|
+
return !!c;
|
|
4
|
+
}
|
|
5
|
+
const me = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
fill: "none",
|
|
10
|
+
viewBox: "0 0 24 24"
|
|
11
|
+
};
|
|
12
|
+
function pe(c, n) {
|
|
13
|
+
return l(), h("svg", me, n[0] || (n[0] = [
|
|
14
|
+
E(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
"stroke-linecap": "round",
|
|
19
|
+
"stroke-linejoin": "round",
|
|
20
|
+
"stroke-width": "1.5",
|
|
21
|
+
d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
|
|
22
|
+
},
|
|
23
|
+
null,
|
|
24
|
+
-1
|
|
25
|
+
/* HOISTED */
|
|
26
|
+
)
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
const ve = { render: pe }, be = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "m-btn-loader-container"
|
|
32
|
+
}, ye = /* @__PURE__ */ q({
|
|
33
|
+
__name: "MazBtn",
|
|
34
|
+
props: {
|
|
35
|
+
variant: { default: "button" },
|
|
36
|
+
size: { default: "md" },
|
|
37
|
+
color: { default: "primary" },
|
|
38
|
+
type: { default: "button" },
|
|
39
|
+
rounded: { type: Boolean },
|
|
40
|
+
roundedSize: { default: "lg" },
|
|
41
|
+
noRounded: { type: Boolean },
|
|
42
|
+
outline: { type: Boolean },
|
|
43
|
+
pastel: { type: Boolean },
|
|
44
|
+
block: { type: Boolean },
|
|
45
|
+
noUnderline: { type: Boolean },
|
|
46
|
+
loading: { type: Boolean },
|
|
47
|
+
disabled: { type: Boolean },
|
|
48
|
+
fab: { type: Boolean },
|
|
49
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
50
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
51
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
52
|
+
noPadding: { type: Boolean },
|
|
53
|
+
noElevation: { type: Boolean },
|
|
54
|
+
justify: { default: "center" }
|
|
55
|
+
},
|
|
56
|
+
setup(c) {
|
|
57
|
+
const n = c, o = T(() => import("./MazSpinner-Dzs2W0kq.mjs")), d = T(() => import("./MazIcon-_hN-Kivn.mjs")), { href: B, to: k } = ae(), y = s(() => B ? "a" : k ? "router-link" : "button"), g = s(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), $ = s(
|
|
58
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
59
|
+
), v = s(() => $.value ? "--cursor-default" : "--cursor-pointer"), I = s(() => `--is-${n.variant}`), M = s(() => n.loading && n.variant === "button"), F = s(() => y.value === "button" ? n.type : void 0), z = s(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
60
|
+
return (t, a) => (l(), p(D(y.value), {
|
|
61
|
+
disabled: $.value || void 0,
|
|
62
|
+
class: b(["m-btn", [
|
|
63
|
+
`--${t.size}`,
|
|
64
|
+
!t.fab && !t.rounded && t.roundedSize && `--rounded-${t.roundedSize}`,
|
|
65
|
+
g.value,
|
|
66
|
+
v.value,
|
|
67
|
+
I.value,
|
|
68
|
+
{
|
|
69
|
+
"--block": t.block,
|
|
70
|
+
"--no-underline": t.noUnderline,
|
|
71
|
+
"--fab": t.fab,
|
|
72
|
+
"--loading": t.loading,
|
|
73
|
+
"--disabled": $.value,
|
|
74
|
+
"--rounded": t.rounded,
|
|
75
|
+
"--no-rounded": t.noRounded,
|
|
76
|
+
"--no-padding": t.noPadding,
|
|
77
|
+
"--no-elevation": t.noElevation
|
|
78
|
+
}
|
|
79
|
+
]]),
|
|
80
|
+
style: N([`--justify: ${t.justify}`]),
|
|
81
|
+
type: F.value
|
|
82
|
+
}, {
|
|
83
|
+
default: P(() => [
|
|
84
|
+
V(t.$slots, "left-icon", {}, () => [
|
|
85
|
+
typeof t.leftIcon == "string" ? (l(), p(m(d), {
|
|
86
|
+
key: 0,
|
|
87
|
+
name: t.leftIcon,
|
|
88
|
+
class: b([z.value])
|
|
89
|
+
}, null, 8, ["name", "class"])) : t.leftIcon ? (l(), p(D(t.leftIcon), {
|
|
90
|
+
key: 1,
|
|
91
|
+
class: b([z.value])
|
|
92
|
+
}, null, 8, ["class"])) : f("v-if", !0)
|
|
93
|
+
], !0),
|
|
94
|
+
V(t.$slots, "icon", {}, () => [
|
|
95
|
+
typeof t.icon == "string" ? (l(), p(m(d), {
|
|
96
|
+
key: 0,
|
|
97
|
+
name: t.icon,
|
|
98
|
+
class: b([z.value])
|
|
99
|
+
}, null, 8, ["name", "class"])) : t.icon ? (l(), p(D(t.icon), {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: b([z.value])
|
|
102
|
+
}, null, 8, ["class"])) : f("v-if", !0)
|
|
103
|
+
], !0),
|
|
104
|
+
V(t.$slots, "default", {}, void 0, !0),
|
|
105
|
+
V(t.$slots, "right-icon", {}, () => [
|
|
106
|
+
typeof t.rightIcon == "string" ? (l(), p(m(d), {
|
|
107
|
+
key: 0,
|
|
108
|
+
name: t.rightIcon,
|
|
109
|
+
class: b([z.value])
|
|
110
|
+
}, null, 8, ["name", "class"])) : t.rightIcon ? (l(), p(D(t.rightIcon), {
|
|
111
|
+
key: 1,
|
|
112
|
+
class: b([z.value])
|
|
113
|
+
}, null, 8, ["class"])) : f("v-if", !0)
|
|
114
|
+
], !0),
|
|
115
|
+
M.value ? (l(), h("div", be, [
|
|
116
|
+
O(m(o), {
|
|
117
|
+
size: "2em",
|
|
118
|
+
color: t.color
|
|
119
|
+
}, null, 8, ["color"])
|
|
120
|
+
])) : f("v-if", !0)
|
|
121
|
+
]),
|
|
122
|
+
_: 3
|
|
123
|
+
/* FORWARDED */
|
|
124
|
+
}, 8, ["disabled", "class", "style", "type"]));
|
|
125
|
+
}
|
|
126
|
+
}), R = (c, n) => {
|
|
127
|
+
const o = c.__vccOpts || c;
|
|
128
|
+
for (const [d, B] of n)
|
|
129
|
+
o[d] = B;
|
|
130
|
+
return o;
|
|
131
|
+
}, W = /* @__PURE__ */ R(ye, [["__scopeId", "data-v-bee684ff"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
132
|
+
__proto__: null,
|
|
133
|
+
default: W
|
|
134
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
135
|
+
function ze({
|
|
136
|
+
componentName: c,
|
|
137
|
+
providedId: n
|
|
138
|
+
}) {
|
|
139
|
+
const o = ne();
|
|
140
|
+
return s(() => n ?? `${c}-${o}`);
|
|
141
|
+
}
|
|
142
|
+
function he(c, n) {
|
|
143
|
+
let o;
|
|
144
|
+
return function(...d) {
|
|
145
|
+
clearTimeout(o), o = setTimeout(() => {
|
|
146
|
+
c.apply(this, d);
|
|
147
|
+
}, n);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
const ke = ["for"], Be = {
|
|
151
|
+
key: 0,
|
|
152
|
+
class: "m-input-wrapper-left"
|
|
153
|
+
}, Ie = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], we = { key: 0 }, $e = {
|
|
154
|
+
key: 1,
|
|
155
|
+
class: "m-input-wrapper-right"
|
|
156
|
+
}, Ce = /* @__PURE__ */ q({
|
|
157
|
+
inheritAttrs: !1,
|
|
158
|
+
__name: "MazInput",
|
|
159
|
+
props: {
|
|
160
|
+
style: { default: void 0 },
|
|
161
|
+
class: { default: void 0 },
|
|
162
|
+
modelValue: { default: void 0 },
|
|
163
|
+
placeholder: { default: void 0 },
|
|
164
|
+
label: { default: void 0 },
|
|
165
|
+
topLabel: {},
|
|
166
|
+
assistiveText: {},
|
|
167
|
+
name: { default: void 0 },
|
|
168
|
+
color: { default: "primary" },
|
|
169
|
+
type: { default: "text" },
|
|
170
|
+
required: { type: Boolean, default: !1 },
|
|
171
|
+
disabled: { type: Boolean, default: !1 },
|
|
172
|
+
readonly: { type: Boolean, default: !1 },
|
|
173
|
+
id: { default: void 0 },
|
|
174
|
+
error: { type: Boolean, default: !1 },
|
|
175
|
+
success: { type: Boolean, default: !1 },
|
|
176
|
+
warning: { type: Boolean, default: !1 },
|
|
177
|
+
hint: { default: void 0 },
|
|
178
|
+
inputClasses: { default: void 0 },
|
|
179
|
+
noBorder: { type: Boolean, default: !1 },
|
|
180
|
+
noRadius: { type: Boolean, default: !1 },
|
|
181
|
+
inputmode: { default: "text" },
|
|
182
|
+
size: { default: "md" },
|
|
183
|
+
debounce: { type: [Boolean, Number], default: !1 },
|
|
184
|
+
debounceDelay: { default: 500 },
|
|
185
|
+
validButton: { type: Boolean, default: !1 },
|
|
186
|
+
validButtonLoading: { type: Boolean, default: !1 },
|
|
187
|
+
autoFocus: { type: Boolean, default: !1 },
|
|
188
|
+
borderActive: { type: Boolean, default: !1 },
|
|
189
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
190
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
191
|
+
roundedSize: { default: void 0 },
|
|
192
|
+
block: { type: Boolean }
|
|
193
|
+
},
|
|
194
|
+
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
195
|
+
setup(c, { emit: n }) {
|
|
196
|
+
const o = c, d = n, B = T(() => Promise.resolve().then(() => ge)), k = T(() => import("./MazIcon-_hN-Kivn.mjs")), y = T(() => import("./eye-slash-BoO00xzs.mjs")), g = T(() => import("./eye-f8zAUc30.mjs")), $ = T(() => import("./check-BmubdHc_.mjs")), v = S(!1), I = S(!1), M = S(), F = ze({
|
|
197
|
+
componentName: "MazInput",
|
|
198
|
+
providedId: o.id
|
|
199
|
+
});
|
|
200
|
+
le(() => {
|
|
201
|
+
var e;
|
|
202
|
+
o.autoFocus && ((e = M.value) == null || e.focus());
|
|
203
|
+
});
|
|
204
|
+
const z = s(() => o.type === "password"), t = s(() => v.value ? "text" : o.type), a = s(() => {
|
|
205
|
+
if (!o.noBorder) {
|
|
206
|
+
if (o.error)
|
|
207
|
+
return "maz-border-danger";
|
|
208
|
+
if (o.success)
|
|
209
|
+
return "maz-border-success";
|
|
210
|
+
if (o.warning)
|
|
211
|
+
return "maz-border-warning";
|
|
212
|
+
if (I.value || o.borderActive) {
|
|
213
|
+
if (o.color === "black")
|
|
214
|
+
return "maz-border-black";
|
|
215
|
+
if (o.color === "danger")
|
|
216
|
+
return "maz-border-danger";
|
|
217
|
+
if (o.color === "info")
|
|
218
|
+
return "maz-border-info";
|
|
219
|
+
if (o.color === "primary")
|
|
220
|
+
return "maz-border-primary";
|
|
221
|
+
if (o.color === "secondary")
|
|
222
|
+
return "maz-border-secondary";
|
|
223
|
+
if (o.color === "success")
|
|
224
|
+
return "maz-border-success";
|
|
225
|
+
if (o.color === "warning")
|
|
226
|
+
return "maz-border-warning";
|
|
227
|
+
if (o.color === "white")
|
|
228
|
+
return "maz-border-white";
|
|
229
|
+
}
|
|
230
|
+
return "--default-border";
|
|
231
|
+
}
|
|
232
|
+
}), r = re(), i = s(() => {
|
|
233
|
+
const { required: e, placeholder: w } = o;
|
|
234
|
+
if (w)
|
|
235
|
+
return e ? `${w} *` : w;
|
|
236
|
+
}), u = s(() => j.value !== void 0 && j.value !== ""), L = he(
|
|
237
|
+
(e) => {
|
|
238
|
+
d("update:model-value", e);
|
|
239
|
+
},
|
|
240
|
+
typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
|
|
241
|
+
);
|
|
242
|
+
function C(e) {
|
|
243
|
+
if (o.debounce)
|
|
244
|
+
return L(e);
|
|
245
|
+
d("update:model-value", e);
|
|
246
|
+
}
|
|
247
|
+
const j = s({
|
|
248
|
+
get: () => o.modelValue,
|
|
249
|
+
set: (e) => C(e)
|
|
250
|
+
}), X = s(() => (!!o.label || !!o.hint) && (I.value || !!u.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Y = s(() => !!o.label || !!o.hint);
|
|
251
|
+
function Z() {
|
|
252
|
+
return !!r["right-icon"] || z.value || !!r["valid-button"] || o.validButton || !!o.rightIcon;
|
|
253
|
+
}
|
|
254
|
+
function x() {
|
|
255
|
+
return !!r["left-icon"] || !!o.leftIcon;
|
|
256
|
+
}
|
|
257
|
+
function _(e) {
|
|
258
|
+
d("focus", e), I.value = !0;
|
|
259
|
+
}
|
|
260
|
+
function ee(e) {
|
|
261
|
+
d("blur", e), I.value = !1;
|
|
262
|
+
}
|
|
263
|
+
function oe(e) {
|
|
264
|
+
return d("change", e);
|
|
265
|
+
}
|
|
266
|
+
function te(e) {
|
|
267
|
+
return d("input", e);
|
|
268
|
+
}
|
|
269
|
+
return (e, w) => (l(), h(
|
|
270
|
+
"div",
|
|
271
|
+
{
|
|
272
|
+
class: b(["m-input", [
|
|
273
|
+
{
|
|
274
|
+
"--is-focused": I.value || e.borderActive,
|
|
275
|
+
"--should-up": X.value,
|
|
276
|
+
"--has-label": Y.value,
|
|
277
|
+
"--is-disabled": e.disabled,
|
|
278
|
+
"--is-readonly": e.readonly,
|
|
279
|
+
"--has-z-2": e.error || e.warning || e.success,
|
|
280
|
+
"--has-state": e.error || e.warning || e.success,
|
|
281
|
+
"--block": e.block
|
|
282
|
+
},
|
|
283
|
+
o.class,
|
|
284
|
+
`--${e.color}`
|
|
285
|
+
]]),
|
|
286
|
+
style: N(e.style)
|
|
287
|
+
},
|
|
288
|
+
[
|
|
289
|
+
e.topLabel ? (l(), h("label", {
|
|
290
|
+
key: 0,
|
|
291
|
+
for: m(F),
|
|
292
|
+
class: "m-input-top-label"
|
|
293
|
+
}, U(e.topLabel), 9, ke)) : f("v-if", !0),
|
|
294
|
+
E(
|
|
295
|
+
"div",
|
|
296
|
+
{
|
|
297
|
+
class: b(["m-input-wrapper", [
|
|
298
|
+
e.inputClasses,
|
|
299
|
+
a.value,
|
|
300
|
+
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius },
|
|
301
|
+
{ "--block": e.block }
|
|
302
|
+
]])
|
|
303
|
+
},
|
|
304
|
+
[
|
|
305
|
+
x() ? (l(), h("div", Be, [
|
|
306
|
+
e.$slots["left-icon"] || e.leftIcon ? V(e.$slots, "left-icon", { key: 0 }, () => [
|
|
307
|
+
typeof e.leftIcon == "string" ? (l(), p(m(k), {
|
|
308
|
+
key: 0,
|
|
309
|
+
name: e.leftIcon,
|
|
310
|
+
class: "maz-text-xl maz-text-muted"
|
|
311
|
+
}, null, 8, ["name"])) : e.leftIcon ? (l(), p(D(e.leftIcon), {
|
|
312
|
+
key: 1,
|
|
313
|
+
class: "maz-text-xl maz-text-muted"
|
|
314
|
+
})) : f("v-if", !0)
|
|
315
|
+
], !0) : f("v-if", !0)
|
|
316
|
+
])) : f("v-if", !0),
|
|
317
|
+
E(
|
|
318
|
+
"div",
|
|
319
|
+
{
|
|
320
|
+
class: b(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
|
|
321
|
+
},
|
|
322
|
+
[
|
|
323
|
+
se(E("input", G({
|
|
324
|
+
id: m(F),
|
|
325
|
+
ref_key: "input",
|
|
326
|
+
ref: M,
|
|
327
|
+
"onUpdate:modelValue": w[0] || (w[0] = (A) => j.value = A),
|
|
328
|
+
type: t.value,
|
|
329
|
+
name: e.name
|
|
330
|
+
}, e.$attrs, {
|
|
331
|
+
inputmode: e.inputmode,
|
|
332
|
+
placeholder: i.value,
|
|
333
|
+
"aria-label": e.label || e.placeholder,
|
|
334
|
+
disabled: e.disabled,
|
|
335
|
+
readonly: e.readonly,
|
|
336
|
+
required: e.required,
|
|
337
|
+
class: "m-input-input"
|
|
338
|
+
}, ie({
|
|
339
|
+
blur: ee,
|
|
340
|
+
focus: _,
|
|
341
|
+
change: oe,
|
|
342
|
+
input: te
|
|
343
|
+
}, !0), {
|
|
344
|
+
onClick: w[1] || (w[1] = (A) => e.$emit("click", A))
|
|
345
|
+
}), null, 16, Ie), [
|
|
346
|
+
[ue, j.value]
|
|
347
|
+
]),
|
|
348
|
+
e.label || e.hint ? (l(), h(
|
|
349
|
+
"span",
|
|
350
|
+
{
|
|
351
|
+
key: 0,
|
|
352
|
+
class: b(["m-input-label", [
|
|
353
|
+
{
|
|
354
|
+
"maz-text-danger-600": e.error,
|
|
355
|
+
"maz-text-success-600": e.success,
|
|
356
|
+
"maz-text-warning-600": e.warning
|
|
357
|
+
}
|
|
358
|
+
]])
|
|
359
|
+
},
|
|
360
|
+
[
|
|
361
|
+
J(
|
|
362
|
+
U(e.hint || e.label) + " ",
|
|
363
|
+
1
|
|
364
|
+
/* TEXT */
|
|
365
|
+
),
|
|
366
|
+
e.required ? (l(), h("sup", we, "*")) : f("v-if", !0)
|
|
367
|
+
],
|
|
368
|
+
2
|
|
369
|
+
/* CLASS */
|
|
370
|
+
)) : f("v-if", !0)
|
|
371
|
+
],
|
|
372
|
+
2
|
|
373
|
+
/* CLASS */
|
|
374
|
+
),
|
|
375
|
+
Z() ? (l(), h("div", $e, [
|
|
376
|
+
e.$slots["right-icon"] || e.rightIcon ? V(e.$slots, "right-icon", { key: 0 }, () => [
|
|
377
|
+
typeof e.rightIcon == "string" ? (l(), p(m(k), {
|
|
378
|
+
key: 0,
|
|
379
|
+
name: e.rightIcon,
|
|
380
|
+
class: "maz-text-xl maz-text-muted"
|
|
381
|
+
}, null, 8, ["name"])) : e.rightIcon ? (l(), p(D(e.rightIcon), {
|
|
382
|
+
key: 1,
|
|
383
|
+
class: "maz-text-xl maz-text-muted"
|
|
384
|
+
})) : f("v-if", !0)
|
|
385
|
+
], !0) : f("v-if", !0),
|
|
386
|
+
z.value ? (l(), p(m(B), {
|
|
387
|
+
key: 1,
|
|
388
|
+
color: "transparent",
|
|
389
|
+
tabindex: "-1",
|
|
390
|
+
size: "mini",
|
|
391
|
+
onClick: w[2] || (w[2] = Q((A) => v.value = !v.value, ["stop"]))
|
|
392
|
+
}, {
|
|
393
|
+
default: P(() => [
|
|
394
|
+
v.value ? (l(), p(m(y), {
|
|
395
|
+
key: 0,
|
|
396
|
+
class: "maz-text-xl maz-text-muted"
|
|
397
|
+
})) : (l(), p(m(g), {
|
|
398
|
+
key: 1,
|
|
399
|
+
class: "maz-text-xl maz-text-muted"
|
|
400
|
+
}))
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
/* STABLE */
|
|
404
|
+
})) : f("v-if", !0),
|
|
405
|
+
e.$slots["valid-button"] || e.validButton ? V(e.$slots, "valid-button", { key: 2 }, () => [
|
|
406
|
+
O(m(B), {
|
|
407
|
+
color: "transparent",
|
|
408
|
+
disabled: e.disabled,
|
|
409
|
+
tabindex: "-1",
|
|
410
|
+
loading: e.validButtonLoading,
|
|
411
|
+
class: "m-input-valid-button",
|
|
412
|
+
size: "mini",
|
|
413
|
+
type: "submit"
|
|
414
|
+
}, {
|
|
415
|
+
default: P(() => [
|
|
416
|
+
O(m($), { class: "maz-text-2xl maz-text-normal" })
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
/* STABLE */
|
|
420
|
+
}, 8, ["disabled", "loading"])
|
|
421
|
+
], !0) : f("v-if", !0)
|
|
422
|
+
])) : f("v-if", !0)
|
|
423
|
+
],
|
|
424
|
+
2
|
|
425
|
+
/* CLASS */
|
|
426
|
+
),
|
|
427
|
+
e.assistiveText ? (l(), h(
|
|
428
|
+
"div",
|
|
429
|
+
{
|
|
430
|
+
key: 1,
|
|
431
|
+
class: b(["m-input-bottom-text", [
|
|
432
|
+
{
|
|
433
|
+
"maz-text-danger-600": e.error,
|
|
434
|
+
"maz-text-success-600": e.success,
|
|
435
|
+
"maz-text-warning-600": e.warning,
|
|
436
|
+
"maz-text-muted": !e.error && !e.success && !e.warning
|
|
437
|
+
}
|
|
438
|
+
]])
|
|
439
|
+
},
|
|
440
|
+
U(e.assistiveText),
|
|
441
|
+
3
|
|
442
|
+
/* TEXT, CLASS */
|
|
443
|
+
)) : f("v-if", !0)
|
|
444
|
+
],
|
|
445
|
+
6
|
|
446
|
+
/* CLASS, STYLE */
|
|
447
|
+
));
|
|
448
|
+
}
|
|
449
|
+
}), Se = /* @__PURE__ */ R(Ce, [["__scopeId", "data-v-2cfe0ca2"]]), Te = /* @__PURE__ */ q({
|
|
450
|
+
inheritAttrs: !1,
|
|
451
|
+
__name: "MazInputTags",
|
|
452
|
+
props: {
|
|
453
|
+
style: { default: void 0 },
|
|
454
|
+
class: { default: void 0 },
|
|
455
|
+
modelValue: { default: void 0 },
|
|
456
|
+
placeholder: { default: void 0 },
|
|
457
|
+
label: { default: void 0 },
|
|
458
|
+
disabled: { type: Boolean, default: !1 },
|
|
459
|
+
error: { type: Boolean, default: !1 },
|
|
460
|
+
success: { type: Boolean, default: !1 },
|
|
461
|
+
warning: { type: Boolean, default: !1 },
|
|
462
|
+
size: { default: "md" },
|
|
463
|
+
color: { default: "primary" },
|
|
464
|
+
block: { type: Boolean },
|
|
465
|
+
addTagsOnBlur: { type: Boolean, default: !0 },
|
|
466
|
+
hint: {}
|
|
467
|
+
},
|
|
468
|
+
emits: ["update:model-value"],
|
|
469
|
+
setup(c, { emit: n }) {
|
|
470
|
+
const o = c, d = n, B = S(!1), k = S(), y = S(), g = S(), $ = S(), v = s(
|
|
471
|
+
() => {
|
|
472
|
+
var a;
|
|
473
|
+
return (a = o.modelValue) == null ? void 0 : a.map((r) => ({
|
|
474
|
+
tag: r,
|
|
475
|
+
id: crypto.randomUUID()
|
|
476
|
+
}));
|
|
477
|
+
}
|
|
478
|
+
);
|
|
479
|
+
function I(a) {
|
|
480
|
+
if (k.value) {
|
|
481
|
+
g.value = void 0, a.preventDefault();
|
|
482
|
+
const i = k.value.trim().split(",").map((u) => u.trim() === "," ? void 0 : u.trim()).filter(K).filter(
|
|
483
|
+
(u) => {
|
|
484
|
+
var L, C;
|
|
485
|
+
return !((C = (L = o.modelValue) == null ? void 0 : L.filter(K)) != null && C.some((j) => j === u));
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
d(
|
|
489
|
+
"update:model-value",
|
|
490
|
+
o.modelValue ? [...o.modelValue, ...i] : [...i]
|
|
491
|
+
), k.value = void 0;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
const M = s(() => {
|
|
495
|
+
if (o.error)
|
|
496
|
+
return "maz-border-danger";
|
|
497
|
+
if (o.success)
|
|
498
|
+
return "maz-border-success";
|
|
499
|
+
if (o.warning)
|
|
500
|
+
return "maz-border-warning";
|
|
501
|
+
if (B.value) {
|
|
502
|
+
if (o.color === "primary")
|
|
503
|
+
return "maz-border-primary";
|
|
504
|
+
if (o.color === "secondary")
|
|
505
|
+
return "maz-border-secondary";
|
|
506
|
+
if (o.color === "info")
|
|
507
|
+
return "maz-border-info";
|
|
508
|
+
if (o.color === "danger")
|
|
509
|
+
return "maz-border-danger";
|
|
510
|
+
if (o.color === "success")
|
|
511
|
+
return "maz-border-success";
|
|
512
|
+
if (o.color === "warning")
|
|
513
|
+
return "maz-border-warning";
|
|
514
|
+
if (o.color === "black")
|
|
515
|
+
return "maz-border-black";
|
|
516
|
+
if (o.color === "white")
|
|
517
|
+
return "maz-border-white";
|
|
518
|
+
}
|
|
519
|
+
return "maz-border-border dark:maz-border-color-lighter";
|
|
520
|
+
});
|
|
521
|
+
function F() {
|
|
522
|
+
var a, r, i;
|
|
523
|
+
k.value || v.value && ((a = v.value) == null ? void 0 : a.length) === 0 || ($.value && clearTimeout($.value), g.value ? (z(g.value), g.value = void 0) : (g.value = (i = (r = v.value) == null ? void 0 : r[v.value.length - 1]) == null ? void 0 : i.id, $.value = setTimeout(() => {
|
|
524
|
+
g.value = void 0;
|
|
525
|
+
}, 2e3)));
|
|
526
|
+
}
|
|
527
|
+
function z(a) {
|
|
528
|
+
var i;
|
|
529
|
+
const r = (i = v.value) == null ? void 0 : i.filter((u) => u.id !== a).map((u) => u.tag);
|
|
530
|
+
d("update:model-value", r);
|
|
531
|
+
}
|
|
532
|
+
const t = s(() => o.size === "mini" || o.size === "xs" ? "mini" : o.size === "sm" ? "xs" : o.size === "md" ? "sm" : o.size === "lg" ? "md" : o.size === "xl" ? "lg" : o.size);
|
|
533
|
+
return (a, r) => (l(), h(
|
|
534
|
+
"div",
|
|
535
|
+
{
|
|
536
|
+
class: b(["m-input-tags", [M.value, `--${a.color}`, `--${a.size}`, o.class, { "--block": a.block }]]),
|
|
537
|
+
style: N(a.style),
|
|
538
|
+
onFocusCapture: r[4] || (r[4] = (i) => B.value = !0),
|
|
539
|
+
onBlurCapture: r[5] || (r[5] = (i) => B.value = !1)
|
|
540
|
+
},
|
|
541
|
+
[
|
|
542
|
+
O(de, { name: "maz-tags" }, {
|
|
543
|
+
default: P(() => [
|
|
544
|
+
(l(!0), h(
|
|
545
|
+
fe,
|
|
546
|
+
null,
|
|
547
|
+
ce(v.value, ({ tag: i, id: u }, L) => (l(), h("div", {
|
|
548
|
+
key: `tag-${L}`,
|
|
549
|
+
class: "m-input-tags__wrapper"
|
|
550
|
+
}, [
|
|
551
|
+
O(W, {
|
|
552
|
+
class: "m-input-tags__tag",
|
|
553
|
+
disabled: a.disabled,
|
|
554
|
+
size: t.value,
|
|
555
|
+
color: y.value === u || g.value === u ? "danger" : a.color,
|
|
556
|
+
"right-icon": y.value === u || g.value === u ? m(ve) : void 0,
|
|
557
|
+
onClick: Q((C) => z(u), ["stop"]),
|
|
558
|
+
onMouseenter: (C) => y.value = u,
|
|
559
|
+
onFocus: (C) => y.value = u,
|
|
560
|
+
onMouseleave: r[0] || (r[0] = (C) => y.value = void 0),
|
|
561
|
+
onBlur: r[1] || (r[1] = (C) => y.value = void 0)
|
|
562
|
+
}, {
|
|
563
|
+
default: P(() => [
|
|
564
|
+
J(
|
|
565
|
+
U(i),
|
|
566
|
+
1
|
|
567
|
+
/* TEXT */
|
|
568
|
+
)
|
|
569
|
+
]),
|
|
570
|
+
_: 2
|
|
571
|
+
/* DYNAMIC */
|
|
572
|
+
}, 1032, ["disabled", "size", "color", "right-icon", "onClick", "onMouseenter", "onFocus"])
|
|
573
|
+
]))),
|
|
574
|
+
128
|
|
575
|
+
/* KEYED_FRAGMENT */
|
|
576
|
+
))
|
|
577
|
+
]),
|
|
578
|
+
_: 1
|
|
579
|
+
/* STABLE */
|
|
580
|
+
}),
|
|
581
|
+
O(Se, G({
|
|
582
|
+
key: "input-tags",
|
|
583
|
+
modelValue: k.value,
|
|
584
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => k.value = i)
|
|
585
|
+
}, a.$attrs, {
|
|
586
|
+
placeholder: a.placeholder,
|
|
587
|
+
label: a.label,
|
|
588
|
+
"aria-label": a.label || a.placeholder,
|
|
589
|
+
error: a.error,
|
|
590
|
+
hint: a.hint,
|
|
591
|
+
success: a.success,
|
|
592
|
+
warning: a.warning,
|
|
593
|
+
disabled: a.disabled,
|
|
594
|
+
color: a.color,
|
|
595
|
+
block: a.block,
|
|
596
|
+
size: a.size,
|
|
597
|
+
"no-border": "",
|
|
598
|
+
class: "m-input-tags__input",
|
|
599
|
+
onKeydown: [
|
|
600
|
+
H(I, ["enter"]),
|
|
601
|
+
H(F, ["delete"])
|
|
602
|
+
],
|
|
603
|
+
onBlur: r[3] || (r[3] = (i) => a.addTagsOnBlur ? I(i) : void 0)
|
|
604
|
+
}), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
|
|
605
|
+
],
|
|
606
|
+
38
|
|
607
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
608
|
+
));
|
|
609
|
+
}
|
|
610
|
+
}), Me = /* @__PURE__ */ R(Te, [["__scopeId", "data-v-bff010d3"]]);
|
|
611
|
+
export {
|
|
612
|
+
Me as M,
|
|
613
|
+
R as _
|
|
614
|
+
};
|
|
@@ -2,7 +2,7 @@ import '../assets/MazLazyImg.css';var v = Object.defineProperty;
|
|
|
2
2
|
var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
3
|
var n = (a, e, s) => f(a, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as c, normalizeClass as C, normalizeStyle as y, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as g, createCommentVNode as z, renderSlot as B } from "vue";
|
|
5
|
-
import { _ as k } from "./MazAvatar-
|
|
5
|
+
import { _ as k } from "./MazAvatar-CZzOIbzh.mjs";
|
|
6
6
|
const H = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", w = {
|
|
7
7
|
baseClass: "m-lazy-img",
|
|
8
8
|
loadedClass: "m-lazy-loaded",
|
|
@@ -206,7 +206,7 @@ const M = {
|
|
|
206
206
|
},
|
|
207
207
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
208
208
|
setup(a) {
|
|
209
|
-
const e = a, s = b(() => import("./MazSpinner-
|
|
209
|
+
const e = a, s = b(() => import("./MazSpinner-QfPXLpa_.mjs")), t = m(() => e.image || e.src), r = m(() => {
|
|
210
210
|
var o;
|
|
211
211
|
return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
|
|
212
212
|
});
|