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,302 +0,0 @@
|
|
|
1
|
-
import { useId as Q, computed as r, defineComponent as W, defineAsyncComponent as f, ref as z, onMounted as X, useSlots as Y, openBlock as n, createElementBlock as p, normalizeClass as g, normalizeStyle as Z, createElementVNode as k, createCommentVNode as o, renderSlot as I, createBlock as d, unref as s, resolveDynamicComponent as C, withDirectives as x, mergeProps as _, toHandlers as ee, vModelDynamic as te, createTextVNode as oe, toDisplayString as ne, withModifiers as ae, withCtx as V, createVNode as S } from "vue";
|
|
2
|
-
import '../assets/MazInput.css';function le({
|
|
3
|
-
componentName: i,
|
|
4
|
-
providedId: u
|
|
5
|
-
}) {
|
|
6
|
-
const t = Q();
|
|
7
|
-
return r(() => u ?? `${i}-${t}`);
|
|
8
|
-
}
|
|
9
|
-
function re(i, u) {
|
|
10
|
-
let t;
|
|
11
|
-
return function(...a) {
|
|
12
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
13
|
-
i.apply(this, a);
|
|
14
|
-
}, u);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const ie = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "m-input-wrapper-left"
|
|
20
|
-
}, se = { class: "m-input-wrapper-input" }, ue = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], de = { key: 0 }, ce = {
|
|
21
|
-
key: 1,
|
|
22
|
-
class: "m-input-wrapper-right"
|
|
23
|
-
}, fe = /* @__PURE__ */ W({
|
|
24
|
-
inheritAttrs: !1,
|
|
25
|
-
__name: "MazInput",
|
|
26
|
-
props: {
|
|
27
|
-
style: { default: void 0 },
|
|
28
|
-
class: { default: void 0 },
|
|
29
|
-
modelValue: { default: void 0 },
|
|
30
|
-
placeholder: { default: void 0 },
|
|
31
|
-
label: { default: void 0 },
|
|
32
|
-
name: { default: void 0 },
|
|
33
|
-
color: { default: "primary" },
|
|
34
|
-
type: { default: "text" },
|
|
35
|
-
required: { type: Boolean, default: !1 },
|
|
36
|
-
disabled: { type: Boolean, default: !1 },
|
|
37
|
-
readonly: { type: Boolean, default: !1 },
|
|
38
|
-
id: { default: void 0 },
|
|
39
|
-
error: { type: Boolean, default: !1 },
|
|
40
|
-
success: { type: Boolean, default: !1 },
|
|
41
|
-
warning: { type: Boolean, default: !1 },
|
|
42
|
-
hint: { default: void 0 },
|
|
43
|
-
inputClasses: { default: void 0 },
|
|
44
|
-
noBorder: { type: Boolean, default: !1 },
|
|
45
|
-
noRadius: { type: Boolean, default: !1 },
|
|
46
|
-
inputmode: { default: "text" },
|
|
47
|
-
size: { default: "md" },
|
|
48
|
-
debounce: { type: [Boolean, Number], default: !1 },
|
|
49
|
-
debounceDelay: { default: 500 },
|
|
50
|
-
validButton: { type: Boolean, default: !1 },
|
|
51
|
-
validButtonLoading: { type: Boolean, default: !1 },
|
|
52
|
-
autoFocus: { type: Boolean, default: !1 },
|
|
53
|
-
borderActive: { type: Boolean, default: !1 },
|
|
54
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
55
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
56
|
-
roundedSize: { default: void 0 },
|
|
57
|
-
block: { type: Boolean }
|
|
58
|
-
},
|
|
59
|
-
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
60
|
-
setup(i, { emit: u }) {
|
|
61
|
-
const t = i, a = u, m = f(() => import("./MazBtn-BO3G90L3.mjs")), B = f(() => import("./MazIcon-BbvBov5G.mjs")), M = f(() => import("./eye-slash-BoO00xzs.mjs")), q = f(() => import("./eye-f8zAUc30.mjs")), T = f(() => import("./check-BmubdHc_.mjs")), v = z(!1), c = z(!1), w = z(), D = le({
|
|
62
|
-
componentName: "MazInput",
|
|
63
|
-
providedId: t.id
|
|
64
|
-
});
|
|
65
|
-
X(() => {
|
|
66
|
-
var e;
|
|
67
|
-
t.autoFocus && ((e = w.value) == null || e.focus());
|
|
68
|
-
});
|
|
69
|
-
const $ = r(() => t.type === "password"), E = r(() => v.value ? "text" : t.type), N = r(() => {
|
|
70
|
-
if (!t.noBorder) {
|
|
71
|
-
if (t.error)
|
|
72
|
-
return "maz-border-danger";
|
|
73
|
-
if (t.success)
|
|
74
|
-
return "maz-border-success";
|
|
75
|
-
if (t.warning)
|
|
76
|
-
return "maz-border-warning";
|
|
77
|
-
if (c.value || t.borderActive) {
|
|
78
|
-
if (t.color === "black")
|
|
79
|
-
return "maz-border-black";
|
|
80
|
-
if (t.color === "danger")
|
|
81
|
-
return "maz-border-danger";
|
|
82
|
-
if (t.color === "info")
|
|
83
|
-
return "maz-border-info";
|
|
84
|
-
if (t.color === "primary")
|
|
85
|
-
return "maz-border-primary";
|
|
86
|
-
if (t.color === "secondary")
|
|
87
|
-
return "maz-border-secondary";
|
|
88
|
-
if (t.color === "success")
|
|
89
|
-
return "maz-border-success";
|
|
90
|
-
if (t.color === "warning")
|
|
91
|
-
return "maz-border-warning";
|
|
92
|
-
if (t.color === "white")
|
|
93
|
-
return "maz-border-white";
|
|
94
|
-
}
|
|
95
|
-
return "--default-border";
|
|
96
|
-
}
|
|
97
|
-
}), h = Y(), P = r(() => {
|
|
98
|
-
const { required: e, placeholder: l } = t;
|
|
99
|
-
if (l)
|
|
100
|
-
return e ? `${l} *` : l;
|
|
101
|
-
}), A = r(() => y.value !== void 0 && y.value !== ""), F = re(
|
|
102
|
-
(e) => {
|
|
103
|
-
a("update:model-value", e);
|
|
104
|
-
},
|
|
105
|
-
typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
|
|
106
|
-
);
|
|
107
|
-
function L(e) {
|
|
108
|
-
if (t.debounce)
|
|
109
|
-
return F(e);
|
|
110
|
-
a("update:model-value", e);
|
|
111
|
-
}
|
|
112
|
-
const y = r({
|
|
113
|
-
get: () => t.modelValue,
|
|
114
|
-
set: (e) => L(e)
|
|
115
|
-
}), O = r(() => (!!t.label || !!t.hint) && (c.value || !!A.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), R = r(() => !!t.label || !!t.hint);
|
|
116
|
-
function U() {
|
|
117
|
-
return !!h["right-icon"] || $.value || !!h["valid-button"] || t.validButton || !!t.rightIcon;
|
|
118
|
-
}
|
|
119
|
-
function j() {
|
|
120
|
-
return !!h["left-icon"] || !!t.leftIcon;
|
|
121
|
-
}
|
|
122
|
-
function H(e) {
|
|
123
|
-
a("focus", e), c.value = !0;
|
|
124
|
-
}
|
|
125
|
-
function G(e) {
|
|
126
|
-
a("blur", e), c.value = !1;
|
|
127
|
-
}
|
|
128
|
-
function J(e) {
|
|
129
|
-
return a("change", e);
|
|
130
|
-
}
|
|
131
|
-
function K(e) {
|
|
132
|
-
return a("input", e);
|
|
133
|
-
}
|
|
134
|
-
return (e, l) => (n(), p(
|
|
135
|
-
"div",
|
|
136
|
-
{
|
|
137
|
-
class: g(["m-input", [
|
|
138
|
-
{
|
|
139
|
-
"--is-focused": c.value || e.borderActive,
|
|
140
|
-
"--should-up": O.value,
|
|
141
|
-
"--has-label": R.value,
|
|
142
|
-
"--is-disabled": e.disabled,
|
|
143
|
-
"--is-readonly": e.readonly,
|
|
144
|
-
"--has-z-2": e.error || e.warning || e.success,
|
|
145
|
-
"--has-state": e.error || e.warning || e.success,
|
|
146
|
-
"--block": e.block
|
|
147
|
-
},
|
|
148
|
-
t.class,
|
|
149
|
-
`--${e.color}`,
|
|
150
|
-
`--${e.size}`
|
|
151
|
-
]]),
|
|
152
|
-
style: Z(e.style)
|
|
153
|
-
},
|
|
154
|
-
[
|
|
155
|
-
k(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
class: g(["m-input-wrapper", [
|
|
159
|
-
e.inputClasses,
|
|
160
|
-
N.value,
|
|
161
|
-
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
|
|
162
|
-
]])
|
|
163
|
-
},
|
|
164
|
-
[
|
|
165
|
-
j() ? (n(), p("div", ie, [
|
|
166
|
-
o(`
|
|
167
|
-
@slot left-icon - The icon to display on the left of the input
|
|
168
|
-
`),
|
|
169
|
-
e.$slots["left-icon"] || e.leftIcon ? I(e.$slots, "left-icon", { key: 0 }, () => [
|
|
170
|
-
typeof e.leftIcon == "string" ? (n(), d(s(B), {
|
|
171
|
-
key: 0,
|
|
172
|
-
name: e.leftIcon,
|
|
173
|
-
class: "maz-text-xl maz-text-muted"
|
|
174
|
-
}, null, 8, ["name"])) : e.leftIcon ? (n(), d(C(e.leftIcon), {
|
|
175
|
-
key: 1,
|
|
176
|
-
class: "maz-text-xl maz-text-muted"
|
|
177
|
-
})) : o("v-if", !0)
|
|
178
|
-
], !0) : o("v-if", !0)
|
|
179
|
-
])) : o("v-if", !0),
|
|
180
|
-
k("div", se, [
|
|
181
|
-
x(k("input", _({
|
|
182
|
-
id: s(D),
|
|
183
|
-
ref_key: "input",
|
|
184
|
-
ref: w,
|
|
185
|
-
"onUpdate:modelValue": l[0] || (l[0] = (b) => y.value = b),
|
|
186
|
-
type: E.value,
|
|
187
|
-
name: e.name
|
|
188
|
-
}, e.$attrs, {
|
|
189
|
-
inputmode: e.inputmode,
|
|
190
|
-
placeholder: P.value,
|
|
191
|
-
"aria-label": e.label || e.placeholder,
|
|
192
|
-
disabled: e.disabled,
|
|
193
|
-
readonly: e.readonly,
|
|
194
|
-
required: e.required,
|
|
195
|
-
class: "m-input-input"
|
|
196
|
-
}, ee({
|
|
197
|
-
blur: G,
|
|
198
|
-
focus: H,
|
|
199
|
-
change: J,
|
|
200
|
-
input: K
|
|
201
|
-
}, !0), {
|
|
202
|
-
onClick: l[1] || (l[1] = (b) => e.$emit("click", b))
|
|
203
|
-
}), null, 16, ue), [
|
|
204
|
-
[te, y.value]
|
|
205
|
-
]),
|
|
206
|
-
e.label || e.hint ? (n(), p(
|
|
207
|
-
"span",
|
|
208
|
-
{
|
|
209
|
-
key: 0,
|
|
210
|
-
class: g(["m-input-label", [
|
|
211
|
-
{
|
|
212
|
-
"maz-text-danger-600": e.error,
|
|
213
|
-
"maz-text-success-600": e.success,
|
|
214
|
-
"maz-text-warning-600": e.warning
|
|
215
|
-
}
|
|
216
|
-
]])
|
|
217
|
-
},
|
|
218
|
-
[
|
|
219
|
-
oe(
|
|
220
|
-
ne(e.hint || e.label) + " ",
|
|
221
|
-
1
|
|
222
|
-
/* TEXT */
|
|
223
|
-
),
|
|
224
|
-
e.required ? (n(), p("sup", de, "*")) : o("v-if", !0)
|
|
225
|
-
],
|
|
226
|
-
2
|
|
227
|
-
/* CLASS */
|
|
228
|
-
)) : o("v-if", !0)
|
|
229
|
-
]),
|
|
230
|
-
U() ? (n(), p("div", ce, [
|
|
231
|
-
o(`
|
|
232
|
-
@slot right-icon - The icon to display on the right of the input
|
|
233
|
-
`),
|
|
234
|
-
e.$slots["right-icon"] || e.rightIcon ? I(e.$slots, "right-icon", { key: 0 }, () => [
|
|
235
|
-
typeof e.rightIcon == "string" ? (n(), d(s(B), {
|
|
236
|
-
key: 0,
|
|
237
|
-
name: e.rightIcon,
|
|
238
|
-
class: "maz-text-xl maz-text-muted"
|
|
239
|
-
}, null, 8, ["name"])) : e.rightIcon ? (n(), d(C(e.rightIcon), {
|
|
240
|
-
key: 1,
|
|
241
|
-
class: "maz-text-xl maz-text-muted"
|
|
242
|
-
})) : o("v-if", !0)
|
|
243
|
-
], !0) : o("v-if", !0),
|
|
244
|
-
$.value ? (n(), d(s(m), {
|
|
245
|
-
key: 1,
|
|
246
|
-
color: "transparent",
|
|
247
|
-
tabindex: "-1",
|
|
248
|
-
size: "mini",
|
|
249
|
-
onClick: l[2] || (l[2] = ae((b) => v.value = !v.value, ["stop"]))
|
|
250
|
-
}, {
|
|
251
|
-
default: V(() => [
|
|
252
|
-
v.value ? (n(), d(s(M), {
|
|
253
|
-
key: 0,
|
|
254
|
-
class: "maz-text-xl maz-text-muted"
|
|
255
|
-
})) : (n(), d(s(q), {
|
|
256
|
-
key: 1,
|
|
257
|
-
class: "maz-text-xl maz-text-muted"
|
|
258
|
-
}))
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
/* STABLE */
|
|
262
|
-
})) : o("v-if", !0),
|
|
263
|
-
o(`
|
|
264
|
-
@slot valid-button - Replace the valid button by your own
|
|
265
|
-
`),
|
|
266
|
-
e.$slots["valid-button"] || e.validButton ? I(e.$slots, "valid-button", { key: 2 }, () => [
|
|
267
|
-
S(s(m), {
|
|
268
|
-
color: "transparent",
|
|
269
|
-
disabled: e.disabled,
|
|
270
|
-
tabindex: "-1",
|
|
271
|
-
loading: e.validButtonLoading,
|
|
272
|
-
class: "m-input-valid-button",
|
|
273
|
-
size: "mini",
|
|
274
|
-
type: "submit"
|
|
275
|
-
}, {
|
|
276
|
-
default: V(() => [
|
|
277
|
-
S(s(T), { class: "maz-text-2xl maz-text-normal" })
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
/* STABLE */
|
|
281
|
-
}, 8, ["disabled", "loading"])
|
|
282
|
-
], !0) : o("v-if", !0)
|
|
283
|
-
])) : o("v-if", !0)
|
|
284
|
-
],
|
|
285
|
-
2
|
|
286
|
-
/* CLASS */
|
|
287
|
-
)
|
|
288
|
-
],
|
|
289
|
-
6
|
|
290
|
-
/* CLASS, STYLE */
|
|
291
|
-
));
|
|
292
|
-
}
|
|
293
|
-
}), pe = (i, u) => {
|
|
294
|
-
const t = i.__vccOpts || i;
|
|
295
|
-
for (const [a, m] of u)
|
|
296
|
-
t[a] = m;
|
|
297
|
-
return t;
|
|
298
|
-
}, ve = /* @__PURE__ */ pe(fe, [["__scopeId", "data-v-c42aaa7f"]]);
|
|
299
|
-
export {
|
|
300
|
-
ve as M,
|
|
301
|
-
pe as _
|
|
302
|
-
};
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Q, defineAsyncComponent as d, ref as h, onMounted as W, computed as r, useSlots as X, openBlock as a, createElementBlock as f, normalizeClass as z, normalizeStyle as Y, createElementVNode as g, createCommentVNode as o, renderSlot as k, createBlock as u, unref as i, resolveDynamicComponent as C, withDirectives as Z, mergeProps as x, toHandlers as _, vModelDynamic as ee, createTextVNode as te, toDisplayString as oe, withModifiers as ae, withCtx as V, createVNode as S } from "vue";
|
|
2
|
-
import { u as ne, _ as le } from "./MazChecklist-CY1Cv70T.mjs";
|
|
3
|
-
import '../assets/MazInput.css';function re(v, y) {
|
|
4
|
-
let t;
|
|
5
|
-
return function(...l) {
|
|
6
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
7
|
-
v.apply(this, l);
|
|
8
|
-
}, y);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
const ie = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "m-input-wrapper-left"
|
|
14
|
-
}, ue = { class: "m-input-wrapper-input" }, se = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], de = { key: 0 }, fe = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "m-input-wrapper-right"
|
|
17
|
-
}, ce = /* @__PURE__ */ Q({
|
|
18
|
-
inheritAttrs: !1,
|
|
19
|
-
__name: "MazInput",
|
|
20
|
-
props: {
|
|
21
|
-
style: { default: void 0 },
|
|
22
|
-
class: { default: void 0 },
|
|
23
|
-
modelValue: { default: void 0 },
|
|
24
|
-
placeholder: { default: void 0 },
|
|
25
|
-
label: { default: void 0 },
|
|
26
|
-
name: { default: void 0 },
|
|
27
|
-
color: { default: "primary" },
|
|
28
|
-
type: { default: "text" },
|
|
29
|
-
required: { type: Boolean, default: !1 },
|
|
30
|
-
disabled: { type: Boolean, default: !1 },
|
|
31
|
-
readonly: { type: Boolean, default: !1 },
|
|
32
|
-
id: { default: void 0 },
|
|
33
|
-
error: { type: Boolean, default: !1 },
|
|
34
|
-
success: { type: Boolean, default: !1 },
|
|
35
|
-
warning: { type: Boolean, default: !1 },
|
|
36
|
-
hint: { default: void 0 },
|
|
37
|
-
inputClasses: { default: void 0 },
|
|
38
|
-
noBorder: { type: Boolean, default: !1 },
|
|
39
|
-
noRadius: { type: Boolean, default: !1 },
|
|
40
|
-
inputmode: { default: "text" },
|
|
41
|
-
size: { default: "md" },
|
|
42
|
-
debounce: { type: [Boolean, Number], default: !1 },
|
|
43
|
-
debounceDelay: { default: 500 },
|
|
44
|
-
validButton: { type: Boolean, default: !1 },
|
|
45
|
-
validButtonLoading: { type: Boolean, default: !1 },
|
|
46
|
-
autoFocus: { type: Boolean, default: !1 },
|
|
47
|
-
borderActive: { type: Boolean, default: !1 },
|
|
48
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
49
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
50
|
-
roundedSize: { default: void 0 },
|
|
51
|
-
block: { type: Boolean }
|
|
52
|
-
},
|
|
53
|
-
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
54
|
-
setup(v, { emit: y }) {
|
|
55
|
-
const t = v, l = y, I = d(() => import("./MazBtn-C87UEsVs.mjs")), B = d(() => import("./MazIcon-BbvBov5G.mjs")), M = d(() => import("./eye-slash-BoO00xzs.mjs")), q = d(() => import("./eye-f8zAUc30.mjs")), T = d(() => import("./MazChecklist-CY1Cv70T.mjs").then((e) => e.c)), c = h(!1), s = h(!1), w = h(), D = ne({
|
|
56
|
-
componentName: "MazInput",
|
|
57
|
-
providedId: t.id
|
|
58
|
-
});
|
|
59
|
-
W(() => {
|
|
60
|
-
var e;
|
|
61
|
-
t.autoFocus && ((e = w.value) == null || e.focus());
|
|
62
|
-
});
|
|
63
|
-
const $ = r(() => t.type === "password"), E = r(() => c.value ? "text" : t.type), N = r(() => {
|
|
64
|
-
if (!t.noBorder) {
|
|
65
|
-
if (t.error)
|
|
66
|
-
return "maz-border-danger";
|
|
67
|
-
if (t.success)
|
|
68
|
-
return "maz-border-success";
|
|
69
|
-
if (t.warning)
|
|
70
|
-
return "maz-border-warning";
|
|
71
|
-
if (s.value || t.borderActive) {
|
|
72
|
-
if (t.color === "black")
|
|
73
|
-
return "maz-border-black";
|
|
74
|
-
if (t.color === "danger")
|
|
75
|
-
return "maz-border-danger";
|
|
76
|
-
if (t.color === "info")
|
|
77
|
-
return "maz-border-info";
|
|
78
|
-
if (t.color === "primary")
|
|
79
|
-
return "maz-border-primary";
|
|
80
|
-
if (t.color === "secondary")
|
|
81
|
-
return "maz-border-secondary";
|
|
82
|
-
if (t.color === "success")
|
|
83
|
-
return "maz-border-success";
|
|
84
|
-
if (t.color === "warning")
|
|
85
|
-
return "maz-border-warning";
|
|
86
|
-
if (t.color === "white")
|
|
87
|
-
return "maz-border-white";
|
|
88
|
-
}
|
|
89
|
-
return "--default-border";
|
|
90
|
-
}
|
|
91
|
-
}), b = X(), P = r(() => {
|
|
92
|
-
const { required: e, placeholder: n } = t;
|
|
93
|
-
if (n)
|
|
94
|
-
return e ? `${n} *` : n;
|
|
95
|
-
}), A = r(() => p.value !== void 0 && p.value !== ""), F = re(
|
|
96
|
-
(e) => {
|
|
97
|
-
l("update:model-value", e);
|
|
98
|
-
},
|
|
99
|
-
typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
|
|
100
|
-
);
|
|
101
|
-
function L(e) {
|
|
102
|
-
if (t.debounce)
|
|
103
|
-
return F(e);
|
|
104
|
-
l("update:model-value", e);
|
|
105
|
-
}
|
|
106
|
-
const p = r({
|
|
107
|
-
get: () => t.modelValue,
|
|
108
|
-
set: (e) => L(e)
|
|
109
|
-
}), R = r(() => (!!t.label || !!t.hint) && (s.value || !!A.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), O = r(() => !!t.label || !!t.hint);
|
|
110
|
-
function U() {
|
|
111
|
-
return !!b["right-icon"] || $.value || !!b["valid-button"] || t.validButton || !!t.rightIcon;
|
|
112
|
-
}
|
|
113
|
-
function j() {
|
|
114
|
-
return !!b["left-icon"] || !!t.leftIcon;
|
|
115
|
-
}
|
|
116
|
-
function H(e) {
|
|
117
|
-
l("focus", e), s.value = !0;
|
|
118
|
-
}
|
|
119
|
-
function G(e) {
|
|
120
|
-
l("blur", e), s.value = !1;
|
|
121
|
-
}
|
|
122
|
-
function J(e) {
|
|
123
|
-
return l("change", e);
|
|
124
|
-
}
|
|
125
|
-
function K(e) {
|
|
126
|
-
return l("input", e);
|
|
127
|
-
}
|
|
128
|
-
return (e, n) => (a(), f(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
class: z(["m-input", [
|
|
132
|
-
{
|
|
133
|
-
"--is-focused": s.value || e.borderActive,
|
|
134
|
-
"--should-up": R.value,
|
|
135
|
-
"--has-label": O.value,
|
|
136
|
-
"--is-disabled": e.disabled,
|
|
137
|
-
"--is-readonly": e.readonly,
|
|
138
|
-
"--has-z-2": e.error || e.warning || e.success,
|
|
139
|
-
"--has-state": e.error || e.warning || e.success,
|
|
140
|
-
"--block": e.block
|
|
141
|
-
},
|
|
142
|
-
t.class,
|
|
143
|
-
`--${e.color}`,
|
|
144
|
-
`--${e.size}`
|
|
145
|
-
]]),
|
|
146
|
-
style: Y(e.style)
|
|
147
|
-
},
|
|
148
|
-
[
|
|
149
|
-
g(
|
|
150
|
-
"div",
|
|
151
|
-
{
|
|
152
|
-
class: z(["m-input-wrapper", [
|
|
153
|
-
e.inputClasses,
|
|
154
|
-
N.value,
|
|
155
|
-
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
|
|
156
|
-
]])
|
|
157
|
-
},
|
|
158
|
-
[
|
|
159
|
-
j() ? (a(), f("div", ie, [
|
|
160
|
-
o(`
|
|
161
|
-
@slot left-icon - The icon to display on the left of the input
|
|
162
|
-
`),
|
|
163
|
-
e.$slots["left-icon"] || e.leftIcon ? k(e.$slots, "left-icon", { key: 0 }, () => [
|
|
164
|
-
typeof e.leftIcon == "string" ? (a(), u(i(B), {
|
|
165
|
-
key: 0,
|
|
166
|
-
name: e.leftIcon,
|
|
167
|
-
class: "maz-text-xl maz-text-muted"
|
|
168
|
-
}, null, 8, ["name"])) : e.leftIcon ? (a(), u(C(e.leftIcon), {
|
|
169
|
-
key: 1,
|
|
170
|
-
class: "maz-text-xl maz-text-muted"
|
|
171
|
-
})) : o("v-if", !0)
|
|
172
|
-
], !0) : o("v-if", !0)
|
|
173
|
-
])) : o("v-if", !0),
|
|
174
|
-
g("div", ue, [
|
|
175
|
-
Z(g("input", x({
|
|
176
|
-
id: i(D),
|
|
177
|
-
ref_key: "input",
|
|
178
|
-
ref: w,
|
|
179
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) => p.value = m),
|
|
180
|
-
type: E.value,
|
|
181
|
-
name: e.name
|
|
182
|
-
}, e.$attrs, {
|
|
183
|
-
inputmode: e.inputmode,
|
|
184
|
-
placeholder: P.value,
|
|
185
|
-
"aria-label": e.label || e.placeholder,
|
|
186
|
-
disabled: e.disabled,
|
|
187
|
-
readonly: e.readonly,
|
|
188
|
-
required: e.required,
|
|
189
|
-
class: "m-input-input"
|
|
190
|
-
}, _({
|
|
191
|
-
blur: G,
|
|
192
|
-
focus: H,
|
|
193
|
-
change: J,
|
|
194
|
-
input: K
|
|
195
|
-
}, !0), {
|
|
196
|
-
onClick: n[1] || (n[1] = (m) => e.$emit("click", m))
|
|
197
|
-
}), null, 16, se), [
|
|
198
|
-
[ee, p.value]
|
|
199
|
-
]),
|
|
200
|
-
e.label || e.hint ? (a(), f(
|
|
201
|
-
"span",
|
|
202
|
-
{
|
|
203
|
-
key: 0,
|
|
204
|
-
class: z(["m-input-label", [
|
|
205
|
-
{
|
|
206
|
-
"maz-text-danger-600": e.error,
|
|
207
|
-
"maz-text-success-600": e.success,
|
|
208
|
-
"maz-text-warning-600": e.warning
|
|
209
|
-
}
|
|
210
|
-
]])
|
|
211
|
-
},
|
|
212
|
-
[
|
|
213
|
-
te(
|
|
214
|
-
oe(e.hint || e.label) + " ",
|
|
215
|
-
1
|
|
216
|
-
/* TEXT */
|
|
217
|
-
),
|
|
218
|
-
e.required ? (a(), f("sup", de, "*")) : o("v-if", !0)
|
|
219
|
-
],
|
|
220
|
-
2
|
|
221
|
-
/* CLASS */
|
|
222
|
-
)) : o("v-if", !0)
|
|
223
|
-
]),
|
|
224
|
-
U() ? (a(), f("div", fe, [
|
|
225
|
-
o(`
|
|
226
|
-
@slot right-icon - The icon to display on the right of the input
|
|
227
|
-
`),
|
|
228
|
-
e.$slots["right-icon"] || e.rightIcon ? k(e.$slots, "right-icon", { key: 0 }, () => [
|
|
229
|
-
typeof e.rightIcon == "string" ? (a(), u(i(B), {
|
|
230
|
-
key: 0,
|
|
231
|
-
name: e.rightIcon,
|
|
232
|
-
class: "maz-text-xl maz-text-muted"
|
|
233
|
-
}, null, 8, ["name"])) : e.rightIcon ? (a(), u(C(e.rightIcon), {
|
|
234
|
-
key: 1,
|
|
235
|
-
class: "maz-text-xl maz-text-muted"
|
|
236
|
-
})) : o("v-if", !0)
|
|
237
|
-
], !0) : o("v-if", !0),
|
|
238
|
-
$.value ? (a(), u(i(I), {
|
|
239
|
-
key: 1,
|
|
240
|
-
color: "transparent",
|
|
241
|
-
tabindex: "-1",
|
|
242
|
-
size: "mini",
|
|
243
|
-
onClick: n[2] || (n[2] = ae((m) => c.value = !c.value, ["stop"]))
|
|
244
|
-
}, {
|
|
245
|
-
default: V(() => [
|
|
246
|
-
c.value ? (a(), u(i(M), {
|
|
247
|
-
key: 0,
|
|
248
|
-
class: "maz-text-xl maz-text-muted"
|
|
249
|
-
})) : (a(), u(i(q), {
|
|
250
|
-
key: 1,
|
|
251
|
-
class: "maz-text-xl maz-text-muted"
|
|
252
|
-
}))
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
/* STABLE */
|
|
256
|
-
})) : o("v-if", !0),
|
|
257
|
-
o(`
|
|
258
|
-
@slot valid-button - Replace the valid button by your own
|
|
259
|
-
`),
|
|
260
|
-
e.$slots["valid-button"] || e.validButton ? k(e.$slots, "valid-button", { key: 2 }, () => [
|
|
261
|
-
S(i(I), {
|
|
262
|
-
color: "transparent",
|
|
263
|
-
disabled: e.disabled,
|
|
264
|
-
tabindex: "-1",
|
|
265
|
-
loading: e.validButtonLoading,
|
|
266
|
-
class: "m-input-valid-button",
|
|
267
|
-
size: "mini",
|
|
268
|
-
type: "submit"
|
|
269
|
-
}, {
|
|
270
|
-
default: V(() => [
|
|
271
|
-
S(i(T), { class: "maz-text-2xl maz-text-normal" })
|
|
272
|
-
]),
|
|
273
|
-
_: 1
|
|
274
|
-
/* STABLE */
|
|
275
|
-
}, 8, ["disabled", "loading"])
|
|
276
|
-
], !0) : o("v-if", !0)
|
|
277
|
-
])) : o("v-if", !0)
|
|
278
|
-
],
|
|
279
|
-
2
|
|
280
|
-
/* CLASS */
|
|
281
|
-
)
|
|
282
|
-
],
|
|
283
|
-
6
|
|
284
|
-
/* CLASS, STYLE */
|
|
285
|
-
));
|
|
286
|
-
}
|
|
287
|
-
}), ve = /* @__PURE__ */ le(ce, [["__scopeId", "data-v-c42aaa7f"]]);
|
|
288
|
-
export {
|
|
289
|
-
ve as default
|
|
290
|
-
};
|