maz-ui 3.47.2-beta.8 → 3.47.2-beta.9
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/MazAnimatedCounter.d.ts +16 -32
- 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 +3 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +3 -2
- package/components/MazCarousel.d.ts +3 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +1 -1
- package/components/MazChecklist.d.ts +1 -1
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +18 -65
- package/components/MazCircularProgressBar.mjs +40 -40
- 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 +2 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +13 -12
- package/components/MazInput.d.ts +16 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -1
- package/components/MazLink.d.ts +2 -1
- package/components/MazLink.mjs +1 -1
- package/components/MazLoadingBar.d.ts +1 -1
- package/components/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 +5 -4
- 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.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +3 -2
- package/components/MazRadio.d.ts +1 -1
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSpinner.d.ts +1 -1
- package/components/MazStepper.d.ts +3 -2
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -1
- package/components/MazTable.d.ts +2 -2
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.d.ts +3 -2
- package/components/MazTableRow.d.ts +3 -2
- package/components/MazTableTitle.d.ts +3 -2
- 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/MazTabsContentItem.d.ts +2 -1
- package/components/MazTextarea.d.ts +49 -1
- package/components/MazTextarea.mjs +129 -109
- package/components/MazTransitionExpand.d.ts +2 -1
- package/components/MazTransitionExpand.mjs +9 -9
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBtn.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/MazGallery.css +1 -1
- package/components/assets/MazInput.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/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.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/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-qdgVtKdQ.mjs → MazBadge-CupQjB8D.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-DX3dl16f.mjs → MazBottomSheet-D9EPpEV8.mjs} +1 -1
- package/{modules/chunks/MazBtn-D6K3B6XM.mjs → components/chunks/MazBtn-BSgCMRt0.mjs} +33 -35
- package/components/chunks/{MazBtn-C0fZIwfM.mjs → MazBtn-BVWOyFm-.mjs} +33 -35
- package/components/chunks/{MazBtn-BtmrmjP3.mjs → MazBtn-BfIn7glE.mjs} +33 -35
- package/components/chunks/{MazBtn-DMcVZ1r9.mjs → MazBtn-Br3xKJMD.mjs} +33 -35
- 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-DMDzDjHR.mjs → MazCard-XBaeDZkg.mjs} +1 -1
- package/components/chunks/{MazCarousel-BjBQQBFN.mjs → MazCarousel-COTaKhKF.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DXcpsRU4.mjs → MazCheckbox-B-Sw22La.mjs} +6 -6
- package/components/chunks/{MazCheckbox-9R4fuM8t.mjs → MazCheckbox-DjY15PA3.mjs} +2 -2
- package/components/chunks/{MazCheckbox-Dgn0lw5f.mjs → MazCheckbox-DxfneUvu.mjs} +6 -6
- package/components/chunks/{MazChecklist-D_IebAis.mjs → MazChecklist-DaozZlNb.mjs} +17 -17
- package/components/chunks/{MazDialog-Cyo_BtT4.mjs → MazDialog-XiX9LEiz.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-CHyri_Q5.mjs → MazDialogPromise-B9_e3Ma9.mjs} +2 -2
- package/components/chunks/{MazDropdown-urkh4dW3.mjs → MazDropdown-CKuIGitT.mjs} +4 -3
- package/components/chunks/{MazExpandAnimation-CWDhei53.mjs → MazExpandAnimation-Bdf0-L85.mjs} +1 -1
- package/components/chunks/{MazGallery-DNN_xBeg.mjs → MazGallery-BooLoRWi.mjs} +3 -3
- package/components/chunks/{MazGallery-ndO4hRUh.mjs → MazGallery-DUOQamrE.mjs} +2 -2
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
- package/components/chunks/{MazIcon-B7Mn8F75.mjs → MazIcon-C-aPrqx2.mjs} +3 -2
- package/components/chunks/{MazIcon-BSgK89NE.mjs → MazIcon-DFW4cVVf.mjs} +4 -3
- package/components/chunks/{MazIcon-B4CDdmqe.mjs → MazIcon-_hN-Kivn.mjs} +13 -12
- 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-qQ6MrK-y.mjs → MazInputNumber-7Ku2ZcG-.mjs} +217 -187
- package/components/chunks/{MazInputPrice-C207E4RH.mjs → MazInputPrice-C5yErBFP.mjs} +201 -169
- package/components/chunks/MazInputTags-DvbQ2mK8.mjs +614 -0
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/{MazLink-Ch-w_Lf_.mjs → MazLink-mrqHeBS0.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-rusnhtnI.mjs → MazLoadingBar-CNm3Yt6D.mjs} +1 -1
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/{MazPhoneNumberInput-BUe2kgX6.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +437 -405
- package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
- package/components/chunks/{MazPickerMonthSwitcher-D46P6nV5.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-C50DAlfT.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-5EW9ebYR.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
- package/components/chunks/{MazSelect-CJnsMuMG.mjs → MazSelect-DOexatNj.mjs} +290 -258
- package/components/chunks/{MazSelect-C0rk6m_5.mjs → MazSelect-DaDRzcT_.mjs} +20 -20
- package/components/chunks/{MazSpinner-CkOG2EM9.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
- package/components/chunks/MazSpinner-BJpv1muf.mjs +34 -0
- package/components/chunks/{MazSpinner-CyvYTwaV.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/{MazSpinner-CQAyxmwJ.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
- package/components/chunks/{MazSpinner-CbuG6vB-.mjs → MazSpinner-C30YfScc.mjs} +1 -1
- package/components/chunks/MazSpinner-C5mnD76l.mjs +34 -0
- package/components/chunks/MazSpinner-CDx6lo7l.mjs +34 -0
- package/components/chunks/MazSpinner-C_GueolV.mjs +34 -0
- package/components/chunks/{MazSpinner-BxlN_quv.mjs → MazSpinner-Cc-KlPEG.mjs} +1 -1
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +34 -0
- package/components/chunks/MazSpinner-CkKIUYXO.mjs +34 -0
- package/components/chunks/{MazSpinner-CAR4Mm9l.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-B2mZYoLS.mjs → MazSpinner-NCtEpFMm.mjs} +1 -1
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +34 -0
- package/components/chunks/{MazSpinner-Cef473zM.mjs → MazSpinner-b90e3OQK.mjs} +1 -1
- package/components/chunks/{MazStepper-BWyXIppj.mjs → MazStepper-B3fuhbye.mjs} +15 -15
- package/components/chunks/{MazTable-BpIXKltC.mjs → MazTable-Ci8nhgOP.mjs} +4 -4
- package/components/chunks/{MazTableCell-DQAaVtw4.mjs → MazTableCell-BIganK6X.mjs} +1 -1
- package/components/chunks/{MazTableRow-CN415w3y.mjs → MazTableRow-CIO-x6Lb.mjs} +1 -1
- package/components/chunks/{MazTableTitle-DbCN1l2O.mjs → MazTableTitle-OEgTPQB3.mjs} +1 -1
- package/components/chunks/{MazTabsBar-jlclO5zk.mjs → MazTabsBar-CT35SCIK.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-B2jKLvyg.mjs → MazTransitionExpand-Bcwdl9g2.mjs} +8 -8
- 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-BRGZkufX.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
- package/modules/chunks/{MazIcon--UTNvIe4.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
- package/modules/chunks/{MazSpinner-9EkSWhvP.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
- package/modules/chunks/{MazSpinner-B82Q3oFJ.cjs → MazSpinner-DersvZQw.cjs} +1 -1
- package/modules/chunks/{index-fosopmwd.cjs → index-DvromXrX.cjs} +2 -2
- package/modules/chunks/{index-7UZ6u--K.mjs → index-Kry9j5uD.mjs} +13 -9
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +22 -22
- 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 +3 -2
- 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 +1 -1
- package/types/components/MazCircularProgressBar.vue.d.ts +18 -65
- 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 +2 -1
- 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/MazInput.vue.d.ts +16 -3
- package/types/components/MazInputCode.vue.d.ts +1 -1
- package/types/components/MazInputPrice.vue.d.ts +2 -1
- 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 +5 -4
- 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/MazPullToRefresh.vue.d.ts +3 -2
- package/types/components/MazRadio.vue.d.ts +1 -1
- package/types/components/MazRadioButtons.vue.d.ts +1 -1
- package/types/components/MazSelect.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 +2 -2
- package/types/components/MazTableCell.vue.d.ts +3 -2
- package/types/components/MazTableRow.vue.d.ts +3 -2
- package/types/components/MazTableTitle.vue.d.ts +3 -2
- package/types/components/MazTabs.vue.d.ts +3 -2
- package/types/components/MazTabsBar.vue.d.ts +3 -2
- package/types/components/MazTabsContent.vue.d.ts +3 -2
- package/types/components/MazTabsContentItem.vue.d.ts +2 -1
- package/types/components/MazTextarea.vue.d.ts +49 -1
- package/types/components/MazTransitionExpand.vue.d.ts +2 -1
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +1 -1
- package/components/chunks/MazBtn-B1DhLzSq.mjs +0 -105
- package/components/chunks/MazBtn-B6xyipje.mjs +0 -113
- package/components/chunks/MazBtn-BE_bHLkT.mjs +0 -105
- package/components/chunks/MazBtn-Blj3kViZ.mjs +0 -105
- package/components/chunks/MazBtn-CFf5L0DS.mjs +0 -105
- package/components/chunks/MazBtn-CiiCndWt.mjs +0 -105
- package/components/chunks/MazBtn-DWVb9GQ3.mjs +0 -105
- package/components/chunks/MazBtn-DanmhP4R.mjs +0 -110
- package/components/chunks/MazBtn-DzheqNTG.mjs +0 -105
- package/components/chunks/MazBtn-FtH-ADjY.mjs +0 -105
- package/components/chunks/MazBtn-pNpaQRRG.mjs +0 -105
- package/components/chunks/MazIcon-BK45d_-V.mjs +0 -4
- package/components/chunks/MazInput-CyWYuOsl.mjs +0 -293
- package/components/chunks/MazInput-DFDzf7C1.mjs +0 -281
- package/components/chunks/MazInput-LS_VhQAg.mjs +0 -282
- package/components/chunks/MazInputTags-a57ZPojk.mjs +0 -584
- package/components/chunks/MazPagination-CJEC7Y4E.mjs +0 -329
- package/components/chunks/MazPicker-DteyWEwr.mjs +0 -2457
- package/components/chunks/MazSpinner-CksMqwXP.mjs +0 -34
- package/components/chunks/MazSpinner-CqpyUTWh.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CtZfuEKt.mjs +0 -34
- package/components/chunks/MazSpinner-DCBUvJ_o.mjs +0 -34
- package/components/chunks/MazSpinner-DPdh6vtw.mjs +0 -34
- package/components/chunks/MazSpinner-D_6j7BO6.mjs +0 -34
- package/components/chunks/MazSpinner-DqZc3-_U.mjs +0 -34
- package/components/chunks/MazSpinner-XikQHrkW.mjs +0 -34
- package/components/chunks/MazSpinner-a80KrraB.mjs +0 -34
- package/components/chunks/MazSpinner-q-AqkAjI.mjs +0 -34
- package/modules/chunks/MazBtn-BLjl_mR0.cjs +0 -1
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Q, defineAsyncComponent as d, ref as h, onMounted as W, computed as r, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as z, normalizeStyle as Y, createElementVNode as g, renderSlot as k, createBlock as u, unref as i, resolveDynamicComponent as C, createCommentVNode as n, 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 } from "./useInstanceUniqId-DW9jO1Sz.mjs";
|
|
3
|
-
import { _ as le } from "./MazTable-BpIXKltC.mjs";
|
|
4
|
-
import '../assets/MazInput.css';function re(v, y) {
|
|
5
|
-
let t;
|
|
6
|
-
return function(...l) {
|
|
7
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
8
|
-
v.apply(this, l);
|
|
9
|
-
}, y);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const ie = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "m-input-wrapper-left"
|
|
15
|
-
}, ue = { class: "m-input-wrapper-input" }, se = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], de = { key: 0 }, fe = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "m-input-wrapper-right"
|
|
18
|
-
}, ce = /* @__PURE__ */ Q({
|
|
19
|
-
inheritAttrs: !1,
|
|
20
|
-
__name: "MazInput",
|
|
21
|
-
props: {
|
|
22
|
-
style: { default: void 0 },
|
|
23
|
-
class: { default: void 0 },
|
|
24
|
-
modelValue: { default: void 0 },
|
|
25
|
-
placeholder: { default: void 0 },
|
|
26
|
-
label: { default: void 0 },
|
|
27
|
-
name: { default: void 0 },
|
|
28
|
-
color: { default: "primary" },
|
|
29
|
-
type: { default: "text" },
|
|
30
|
-
required: { type: Boolean, default: !1 },
|
|
31
|
-
disabled: { type: Boolean, default: !1 },
|
|
32
|
-
readonly: { type: Boolean, default: !1 },
|
|
33
|
-
id: { default: void 0 },
|
|
34
|
-
error: { type: Boolean, default: !1 },
|
|
35
|
-
success: { type: Boolean, default: !1 },
|
|
36
|
-
warning: { type: Boolean, default: !1 },
|
|
37
|
-
hint: { default: void 0 },
|
|
38
|
-
inputClasses: { default: void 0 },
|
|
39
|
-
noBorder: { type: Boolean, default: !1 },
|
|
40
|
-
noRadius: { type: Boolean, default: !1 },
|
|
41
|
-
inputmode: { default: "text" },
|
|
42
|
-
size: { default: "md" },
|
|
43
|
-
debounce: { type: [Boolean, Number], default: !1 },
|
|
44
|
-
debounceDelay: { default: 500 },
|
|
45
|
-
validButton: { type: Boolean, default: !1 },
|
|
46
|
-
validButtonLoading: { type: Boolean, default: !1 },
|
|
47
|
-
autoFocus: { type: Boolean, default: !1 },
|
|
48
|
-
borderActive: { type: Boolean, default: !1 },
|
|
49
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
50
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
51
|
-
roundedSize: { default: void 0 },
|
|
52
|
-
block: { type: Boolean }
|
|
53
|
-
},
|
|
54
|
-
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
55
|
-
setup(v, { emit: y }) {
|
|
56
|
-
const t = v, l = y, I = d(() => import("./MazBtn-BtmrmjP3.mjs")), B = d(() => import("./MazIcon-B7Mn8F75.mjs")), M = d(() => import("./eye-slash-BoO00xzs.mjs")), q = d(() => import("./eye-f8zAUc30.mjs")), D = d(() => import("./check-C9Q_W85g.mjs")), c = h(!1), s = h(!1), w = h(), E = ne({
|
|
57
|
-
componentName: "MazInput",
|
|
58
|
-
providedId: t.id
|
|
59
|
-
});
|
|
60
|
-
W(() => {
|
|
61
|
-
var e;
|
|
62
|
-
t.autoFocus && ((e = w.value) == null || e.focus());
|
|
63
|
-
});
|
|
64
|
-
const $ = r(() => t.type === "password"), N = r(() => c.value ? "text" : t.type), P = r(() => {
|
|
65
|
-
if (!t.noBorder) {
|
|
66
|
-
if (t.error)
|
|
67
|
-
return "maz-border-danger";
|
|
68
|
-
if (t.success)
|
|
69
|
-
return "maz-border-success";
|
|
70
|
-
if (t.warning)
|
|
71
|
-
return "maz-border-warning";
|
|
72
|
-
if (s.value || t.borderActive) {
|
|
73
|
-
if (t.color === "black")
|
|
74
|
-
return "maz-border-black";
|
|
75
|
-
if (t.color === "danger")
|
|
76
|
-
return "maz-border-danger";
|
|
77
|
-
if (t.color === "info")
|
|
78
|
-
return "maz-border-info";
|
|
79
|
-
if (t.color === "primary")
|
|
80
|
-
return "maz-border-primary";
|
|
81
|
-
if (t.color === "secondary")
|
|
82
|
-
return "maz-border-secondary";
|
|
83
|
-
if (t.color === "success")
|
|
84
|
-
return "maz-border-success";
|
|
85
|
-
if (t.color === "warning")
|
|
86
|
-
return "maz-border-warning";
|
|
87
|
-
if (t.color === "white")
|
|
88
|
-
return "maz-border-white";
|
|
89
|
-
}
|
|
90
|
-
return "--default-border";
|
|
91
|
-
}
|
|
92
|
-
}), b = X(), A = r(() => {
|
|
93
|
-
const { required: e, placeholder: a } = t;
|
|
94
|
-
if (a)
|
|
95
|
-
return e ? `${a} *` : a;
|
|
96
|
-
}), F = r(() => m.value !== void 0 && m.value !== ""), T = re(
|
|
97
|
-
(e) => {
|
|
98
|
-
l("update:model-value", e);
|
|
99
|
-
},
|
|
100
|
-
typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
|
|
101
|
-
);
|
|
102
|
-
function L(e) {
|
|
103
|
-
if (t.debounce)
|
|
104
|
-
return T(e);
|
|
105
|
-
l("update:model-value", e);
|
|
106
|
-
}
|
|
107
|
-
const m = r({
|
|
108
|
-
get: () => t.modelValue,
|
|
109
|
-
set: (e) => L(e)
|
|
110
|
-
}), O = r(() => (!!t.label || !!t.hint) && (s.value || !!F.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), R = r(() => !!t.label || !!t.hint);
|
|
111
|
-
function U() {
|
|
112
|
-
return !!b["right-icon"] || $.value || !!b["valid-button"] || t.validButton || !!t.rightIcon;
|
|
113
|
-
}
|
|
114
|
-
function j() {
|
|
115
|
-
return !!b["left-icon"] || !!t.leftIcon;
|
|
116
|
-
}
|
|
117
|
-
function H(e) {
|
|
118
|
-
l("focus", e), s.value = !0;
|
|
119
|
-
}
|
|
120
|
-
function G(e) {
|
|
121
|
-
l("blur", e), s.value = !1;
|
|
122
|
-
}
|
|
123
|
-
function J(e) {
|
|
124
|
-
return l("change", e);
|
|
125
|
-
}
|
|
126
|
-
function K(e) {
|
|
127
|
-
return l("input", e);
|
|
128
|
-
}
|
|
129
|
-
return (e, a) => (o(), f(
|
|
130
|
-
"div",
|
|
131
|
-
{
|
|
132
|
-
class: z(["m-input", [
|
|
133
|
-
{
|
|
134
|
-
"--is-focused": s.value || e.borderActive,
|
|
135
|
-
"--should-up": O.value,
|
|
136
|
-
"--has-label": R.value,
|
|
137
|
-
"--is-disabled": e.disabled,
|
|
138
|
-
"--is-readonly": e.readonly,
|
|
139
|
-
"--has-z-2": e.error || e.warning || e.success,
|
|
140
|
-
"--has-state": e.error || e.warning || e.success,
|
|
141
|
-
"--block": e.block
|
|
142
|
-
},
|
|
143
|
-
t.class,
|
|
144
|
-
`--${e.color}`,
|
|
145
|
-
`--${e.size}`
|
|
146
|
-
]]),
|
|
147
|
-
style: Y(e.style)
|
|
148
|
-
},
|
|
149
|
-
[
|
|
150
|
-
g(
|
|
151
|
-
"div",
|
|
152
|
-
{
|
|
153
|
-
class: z(["m-input-wrapper", [
|
|
154
|
-
e.inputClasses,
|
|
155
|
-
P.value,
|
|
156
|
-
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
|
|
157
|
-
]])
|
|
158
|
-
},
|
|
159
|
-
[
|
|
160
|
-
j() ? (o(), f("div", ie, [
|
|
161
|
-
e.$slots["left-icon"] || e.leftIcon ? k(e.$slots, "left-icon", { key: 0 }, () => [
|
|
162
|
-
typeof e.leftIcon == "string" ? (o(), u(i(B), {
|
|
163
|
-
key: 0,
|
|
164
|
-
name: e.leftIcon,
|
|
165
|
-
class: "maz-text-xl maz-text-muted"
|
|
166
|
-
}, null, 8, ["name"])) : e.leftIcon ? (o(), u(C(e.leftIcon), {
|
|
167
|
-
key: 1,
|
|
168
|
-
class: "maz-text-xl maz-text-muted"
|
|
169
|
-
})) : n("v-if", !0)
|
|
170
|
-
], !0) : n("v-if", !0)
|
|
171
|
-
])) : n("v-if", !0),
|
|
172
|
-
g("div", ue, [
|
|
173
|
-
Z(g("input", x({
|
|
174
|
-
id: i(E),
|
|
175
|
-
ref_key: "input",
|
|
176
|
-
ref: w,
|
|
177
|
-
"onUpdate:modelValue": a[0] || (a[0] = (p) => m.value = p),
|
|
178
|
-
type: N.value,
|
|
179
|
-
name: e.name
|
|
180
|
-
}, e.$attrs, {
|
|
181
|
-
inputmode: e.inputmode,
|
|
182
|
-
placeholder: A.value,
|
|
183
|
-
"aria-label": e.label || e.placeholder,
|
|
184
|
-
disabled: e.disabled,
|
|
185
|
-
readonly: e.readonly,
|
|
186
|
-
required: e.required,
|
|
187
|
-
class: "m-input-input"
|
|
188
|
-
}, _({
|
|
189
|
-
blur: G,
|
|
190
|
-
focus: H,
|
|
191
|
-
change: J,
|
|
192
|
-
input: K
|
|
193
|
-
}, !0), {
|
|
194
|
-
onClick: a[1] || (a[1] = (p) => e.$emit("click", p))
|
|
195
|
-
}), null, 16, se), [
|
|
196
|
-
[ee, m.value]
|
|
197
|
-
]),
|
|
198
|
-
e.label || e.hint ? (o(), f(
|
|
199
|
-
"span",
|
|
200
|
-
{
|
|
201
|
-
key: 0,
|
|
202
|
-
class: z(["m-input-label", [
|
|
203
|
-
{
|
|
204
|
-
"maz-text-danger-600": e.error,
|
|
205
|
-
"maz-text-success-600": e.success,
|
|
206
|
-
"maz-text-warning-600": e.warning
|
|
207
|
-
}
|
|
208
|
-
]])
|
|
209
|
-
},
|
|
210
|
-
[
|
|
211
|
-
te(
|
|
212
|
-
oe(e.hint || e.label) + " ",
|
|
213
|
-
1
|
|
214
|
-
/* TEXT */
|
|
215
|
-
),
|
|
216
|
-
e.required ? (o(), f("sup", de, "*")) : n("v-if", !0)
|
|
217
|
-
],
|
|
218
|
-
2
|
|
219
|
-
/* CLASS */
|
|
220
|
-
)) : n("v-if", !0)
|
|
221
|
-
]),
|
|
222
|
-
U() ? (o(), f("div", fe, [
|
|
223
|
-
e.$slots["right-icon"] || e.rightIcon ? k(e.$slots, "right-icon", { key: 0 }, () => [
|
|
224
|
-
typeof e.rightIcon == "string" ? (o(), u(i(B), {
|
|
225
|
-
key: 0,
|
|
226
|
-
name: e.rightIcon,
|
|
227
|
-
class: "maz-text-xl maz-text-muted"
|
|
228
|
-
}, null, 8, ["name"])) : e.rightIcon ? (o(), u(C(e.rightIcon), {
|
|
229
|
-
key: 1,
|
|
230
|
-
class: "maz-text-xl maz-text-muted"
|
|
231
|
-
})) : n("v-if", !0)
|
|
232
|
-
], !0) : n("v-if", !0),
|
|
233
|
-
$.value ? (o(), u(i(I), {
|
|
234
|
-
key: 1,
|
|
235
|
-
color: "transparent",
|
|
236
|
-
tabindex: "-1",
|
|
237
|
-
size: "mini",
|
|
238
|
-
onClick: a[2] || (a[2] = ae((p) => c.value = !c.value, ["stop"]))
|
|
239
|
-
}, {
|
|
240
|
-
default: V(() => [
|
|
241
|
-
c.value ? (o(), u(i(M), {
|
|
242
|
-
key: 0,
|
|
243
|
-
class: "maz-text-xl maz-text-muted"
|
|
244
|
-
})) : (o(), u(i(q), {
|
|
245
|
-
key: 1,
|
|
246
|
-
class: "maz-text-xl maz-text-muted"
|
|
247
|
-
}))
|
|
248
|
-
]),
|
|
249
|
-
_: 1
|
|
250
|
-
/* STABLE */
|
|
251
|
-
})) : n("v-if", !0),
|
|
252
|
-
e.$slots["valid-button"] || e.validButton ? k(e.$slots, "valid-button", { key: 2 }, () => [
|
|
253
|
-
S(i(I), {
|
|
254
|
-
color: "transparent",
|
|
255
|
-
disabled: e.disabled,
|
|
256
|
-
tabindex: "-1",
|
|
257
|
-
loading: e.validButtonLoading,
|
|
258
|
-
class: "m-input-valid-button",
|
|
259
|
-
size: "mini",
|
|
260
|
-
type: "submit"
|
|
261
|
-
}, {
|
|
262
|
-
default: V(() => [
|
|
263
|
-
S(i(D), { class: "maz-text-2xl maz-text-normal" })
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
/* STABLE */
|
|
267
|
-
}, 8, ["disabled", "loading"])
|
|
268
|
-
], !0) : n("v-if", !0)
|
|
269
|
-
])) : n("v-if", !0)
|
|
270
|
-
],
|
|
271
|
-
2
|
|
272
|
-
/* CLASS */
|
|
273
|
-
)
|
|
274
|
-
],
|
|
275
|
-
6
|
|
276
|
-
/* CLASS, STYLE */
|
|
277
|
-
));
|
|
278
|
-
}
|
|
279
|
-
}), ye = /* @__PURE__ */ le(ce, [["__scopeId", "data-v-c42aaa7f"]]);
|
|
280
|
-
export {
|
|
281
|
-
ye as default
|
|
282
|
-
};
|