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,584 +0,0 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as I, createElementVNode as E, defineComponent as q, defineAsyncComponent as C, useAttrs as ne, computed as r, createBlock as c, resolveDynamicComponent as F, normalizeClass as z, withCtx as P, renderSlot as S, unref as p, createCommentVNode as f, createVNode as O, useId as ae, ref as j, onMounted as le, useSlots as re, normalizeStyle as H, withDirectives as se, mergeProps as K, toHandlers as ie, vModelDynamic as ue, createTextVNode as G, toDisplayString as J, withModifiers as Q, TransitionGroup as de, Fragment as fe, renderList as ce, withKeys as U } from "vue";
|
|
2
|
-
import '../assets/MazInputTags.css';function R(d) {
|
|
3
|
-
return !!d;
|
|
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(d, n) {
|
|
13
|
-
return l(), I("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 }, ye = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "m-btn-loader-container"
|
|
32
|
-
}, be = /* @__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(d) {
|
|
57
|
-
const n = d, t = C(() => import("./MazSpinner-q-AqkAjI.mjs")), u = C(() => import("./MazIcon-B4CDdmqe.mjs")), { href: h, to: g } = ne(), v = r(() => h ? "a" : g ? "router-link" : "button"), y = r(
|
|
58
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
59
|
-
), w = r(
|
|
60
|
-
() => (n.loading || n.disabled) && v.value === "button"
|
|
61
|
-
), m = r(() => w.value ? "--cursor-default" : "--cursor-pointer"), k = r(() => `--is-${n.variant}`), M = r(() => n.loading && n.variant === "button"), D = r(() => v.value === "button" ? n.type : void 0), b = r(() => 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" : "md"), L = r(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
62
|
-
return (o, a) => (l(), c(F(v.value), {
|
|
63
|
-
disabled: w.value || void 0,
|
|
64
|
-
class: z(["m-btn", [
|
|
65
|
-
`--${o.size}`,
|
|
66
|
-
!o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
|
|
67
|
-
y.value,
|
|
68
|
-
m.value,
|
|
69
|
-
k.value,
|
|
70
|
-
L.value,
|
|
71
|
-
{
|
|
72
|
-
"--block": o.block,
|
|
73
|
-
"--no-underline": o.noUnderline,
|
|
74
|
-
"--fab": o.fab,
|
|
75
|
-
"--loading": o.loading,
|
|
76
|
-
"--disabled": w.value,
|
|
77
|
-
"--rounded": o.rounded,
|
|
78
|
-
"--no-rounded": o.noRounded,
|
|
79
|
-
"--no-padding": o.noPadding,
|
|
80
|
-
"--no-elevation": o.noElevation
|
|
81
|
-
}
|
|
82
|
-
]]),
|
|
83
|
-
type: D.value
|
|
84
|
-
}, {
|
|
85
|
-
default: P(() => [
|
|
86
|
-
S(o.$slots, "left-icon", {}, () => [
|
|
87
|
-
typeof o.leftIcon == "string" ? (l(), c(p(u), {
|
|
88
|
-
key: 0,
|
|
89
|
-
name: o.leftIcon,
|
|
90
|
-
class: z([b.value])
|
|
91
|
-
}, null, 8, ["name", "class"])) : o.leftIcon ? (l(), c(F(o.leftIcon), {
|
|
92
|
-
key: 1,
|
|
93
|
-
class: z([b.value])
|
|
94
|
-
}, null, 8, ["class"])) : f("v-if", !0)
|
|
95
|
-
], !0),
|
|
96
|
-
S(o.$slots, "icon", {}, () => [
|
|
97
|
-
typeof o.icon == "string" ? (l(), c(p(u), {
|
|
98
|
-
key: 0,
|
|
99
|
-
name: o.icon,
|
|
100
|
-
class: z([b.value])
|
|
101
|
-
}, null, 8, ["name", "class"])) : o.icon ? (l(), c(F(o.icon), {
|
|
102
|
-
key: 1,
|
|
103
|
-
class: z([b.value])
|
|
104
|
-
}, null, 8, ["class"])) : f("v-if", !0)
|
|
105
|
-
], !0),
|
|
106
|
-
S(o.$slots, "default", {}, void 0, !0),
|
|
107
|
-
S(o.$slots, "right-icon", {}, () => [
|
|
108
|
-
typeof o.rightIcon == "string" ? (l(), c(p(u), {
|
|
109
|
-
key: 0,
|
|
110
|
-
name: o.rightIcon,
|
|
111
|
-
class: z([b.value])
|
|
112
|
-
}, null, 8, ["name", "class"])) : o.rightIcon ? (l(), c(F(o.rightIcon), {
|
|
113
|
-
key: 1,
|
|
114
|
-
class: z([b.value])
|
|
115
|
-
}, null, 8, ["class"])) : f("v-if", !0)
|
|
116
|
-
], !0),
|
|
117
|
-
M.value ? (l(), I("div", ye, [
|
|
118
|
-
O(p(t), {
|
|
119
|
-
size: "2em",
|
|
120
|
-
color: o.color
|
|
121
|
-
}, null, 8, ["color"])
|
|
122
|
-
])) : f("v-if", !0)
|
|
123
|
-
]),
|
|
124
|
-
_: 3
|
|
125
|
-
/* FORWARDED */
|
|
126
|
-
}, 8, ["disabled", "class", "type"]));
|
|
127
|
-
}
|
|
128
|
-
}), N = (d, n) => {
|
|
129
|
-
const t = d.__vccOpts || d;
|
|
130
|
-
for (const [u, h] of n)
|
|
131
|
-
t[u] = h;
|
|
132
|
-
return t;
|
|
133
|
-
}, W = /* @__PURE__ */ N(be, [["__scopeId", "data-v-95f33abf"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
134
|
-
__proto__: null,
|
|
135
|
-
default: W
|
|
136
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
137
|
-
function ze({
|
|
138
|
-
componentName: d,
|
|
139
|
-
providedId: n
|
|
140
|
-
}) {
|
|
141
|
-
const t = ae();
|
|
142
|
-
return r(() => n ?? `${d}-${t}`);
|
|
143
|
-
}
|
|
144
|
-
function he(d, n) {
|
|
145
|
-
let t;
|
|
146
|
-
return function(...u) {
|
|
147
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
148
|
-
d.apply(this, u);
|
|
149
|
-
}, n);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
const ke = {
|
|
153
|
-
key: 0,
|
|
154
|
-
class: "m-input-wrapper-left"
|
|
155
|
-
}, Be = { class: "m-input-wrapper-input" }, Ie = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], we = { key: 0 }, $e = {
|
|
156
|
-
key: 1,
|
|
157
|
-
class: "m-input-wrapper-right"
|
|
158
|
-
}, je = /* @__PURE__ */ q({
|
|
159
|
-
inheritAttrs: !1,
|
|
160
|
-
__name: "MazInput",
|
|
161
|
-
props: {
|
|
162
|
-
style: { default: void 0 },
|
|
163
|
-
class: { default: void 0 },
|
|
164
|
-
modelValue: { default: void 0 },
|
|
165
|
-
placeholder: { default: void 0 },
|
|
166
|
-
label: { default: void 0 },
|
|
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(d, { emit: n }) {
|
|
196
|
-
const t = d, u = n, h = C(() => Promise.resolve().then(() => ge)), g = C(() => import("./MazIcon-B4CDdmqe.mjs")), v = C(() => import("./eye-slash-BoO00xzs.mjs")), y = C(() => import("./eye-f8zAUc30.mjs")), w = C(() => import("./check-BmubdHc_.mjs")), m = j(!1), k = j(!1), M = j(), D = ze({
|
|
197
|
-
componentName: "MazInput",
|
|
198
|
-
providedId: t.id
|
|
199
|
-
});
|
|
200
|
-
le(() => {
|
|
201
|
-
var e;
|
|
202
|
-
t.autoFocus && ((e = M.value) == null || e.focus());
|
|
203
|
-
});
|
|
204
|
-
const b = r(() => t.type === "password"), L = r(() => m.value ? "text" : t.type), o = r(() => {
|
|
205
|
-
if (!t.noBorder) {
|
|
206
|
-
if (t.error)
|
|
207
|
-
return "maz-border-danger";
|
|
208
|
-
if (t.success)
|
|
209
|
-
return "maz-border-success";
|
|
210
|
-
if (t.warning)
|
|
211
|
-
return "maz-border-warning";
|
|
212
|
-
if (k.value || t.borderActive) {
|
|
213
|
-
if (t.color === "black")
|
|
214
|
-
return "maz-border-black";
|
|
215
|
-
if (t.color === "danger")
|
|
216
|
-
return "maz-border-danger";
|
|
217
|
-
if (t.color === "info")
|
|
218
|
-
return "maz-border-info";
|
|
219
|
-
if (t.color === "primary")
|
|
220
|
-
return "maz-border-primary";
|
|
221
|
-
if (t.color === "secondary")
|
|
222
|
-
return "maz-border-secondary";
|
|
223
|
-
if (t.color === "success")
|
|
224
|
-
return "maz-border-success";
|
|
225
|
-
if (t.color === "warning")
|
|
226
|
-
return "maz-border-warning";
|
|
227
|
-
if (t.color === "white")
|
|
228
|
-
return "maz-border-white";
|
|
229
|
-
}
|
|
230
|
-
return "--default-border";
|
|
231
|
-
}
|
|
232
|
-
}), a = re(), s = r(() => {
|
|
233
|
-
const { required: e, placeholder: B } = t;
|
|
234
|
-
if (B)
|
|
235
|
-
return e ? `${B} *` : B;
|
|
236
|
-
}), i = r(() => T.value !== void 0 && T.value !== ""), V = he(
|
|
237
|
-
(e) => {
|
|
238
|
-
u("update:model-value", e);
|
|
239
|
-
},
|
|
240
|
-
typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
|
|
241
|
-
);
|
|
242
|
-
function $(e) {
|
|
243
|
-
if (t.debounce)
|
|
244
|
-
return V(e);
|
|
245
|
-
u("update:model-value", e);
|
|
246
|
-
}
|
|
247
|
-
const T = r({
|
|
248
|
-
get: () => t.modelValue,
|
|
249
|
-
set: (e) => $(e)
|
|
250
|
-
}), X = r(() => (!!t.label || !!t.hint) && (k.value || !!i.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), Y = r(() => !!t.label || !!t.hint);
|
|
251
|
-
function Z() {
|
|
252
|
-
return !!a["right-icon"] || b.value || !!a["valid-button"] || t.validButton || !!t.rightIcon;
|
|
253
|
-
}
|
|
254
|
-
function x() {
|
|
255
|
-
return !!a["left-icon"] || !!t.leftIcon;
|
|
256
|
-
}
|
|
257
|
-
function _(e) {
|
|
258
|
-
u("focus", e), k.value = !0;
|
|
259
|
-
}
|
|
260
|
-
function ee(e) {
|
|
261
|
-
u("blur", e), k.value = !1;
|
|
262
|
-
}
|
|
263
|
-
function te(e) {
|
|
264
|
-
return u("change", e);
|
|
265
|
-
}
|
|
266
|
-
function oe(e) {
|
|
267
|
-
return u("input", e);
|
|
268
|
-
}
|
|
269
|
-
return (e, B) => (l(), I(
|
|
270
|
-
"div",
|
|
271
|
-
{
|
|
272
|
-
class: z(["m-input", [
|
|
273
|
-
{
|
|
274
|
-
"--is-focused": k.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
|
-
t.class,
|
|
284
|
-
`--${e.color}`,
|
|
285
|
-
`--${e.size}`
|
|
286
|
-
]]),
|
|
287
|
-
style: H(e.style)
|
|
288
|
-
},
|
|
289
|
-
[
|
|
290
|
-
E(
|
|
291
|
-
"div",
|
|
292
|
-
{
|
|
293
|
-
class: z(["m-input-wrapper", [
|
|
294
|
-
e.inputClasses,
|
|
295
|
-
o.value,
|
|
296
|
-
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
|
|
297
|
-
]])
|
|
298
|
-
},
|
|
299
|
-
[
|
|
300
|
-
x() ? (l(), I("div", ke, [
|
|
301
|
-
e.$slots["left-icon"] || e.leftIcon ? S(e.$slots, "left-icon", { key: 0 }, () => [
|
|
302
|
-
typeof e.leftIcon == "string" ? (l(), c(p(g), {
|
|
303
|
-
key: 0,
|
|
304
|
-
name: e.leftIcon,
|
|
305
|
-
class: "maz-text-xl maz-text-muted"
|
|
306
|
-
}, null, 8, ["name"])) : e.leftIcon ? (l(), c(F(e.leftIcon), {
|
|
307
|
-
key: 1,
|
|
308
|
-
class: "maz-text-xl maz-text-muted"
|
|
309
|
-
})) : f("v-if", !0)
|
|
310
|
-
], !0) : f("v-if", !0)
|
|
311
|
-
])) : f("v-if", !0),
|
|
312
|
-
E("div", Be, [
|
|
313
|
-
se(E("input", K({
|
|
314
|
-
id: p(D),
|
|
315
|
-
ref_key: "input",
|
|
316
|
-
ref: M,
|
|
317
|
-
"onUpdate:modelValue": B[0] || (B[0] = (A) => T.value = A),
|
|
318
|
-
type: L.value,
|
|
319
|
-
name: e.name
|
|
320
|
-
}, e.$attrs, {
|
|
321
|
-
inputmode: e.inputmode,
|
|
322
|
-
placeholder: s.value,
|
|
323
|
-
"aria-label": e.label || e.placeholder,
|
|
324
|
-
disabled: e.disabled,
|
|
325
|
-
readonly: e.readonly,
|
|
326
|
-
required: e.required,
|
|
327
|
-
class: "m-input-input"
|
|
328
|
-
}, ie({
|
|
329
|
-
blur: ee,
|
|
330
|
-
focus: _,
|
|
331
|
-
change: te,
|
|
332
|
-
input: oe
|
|
333
|
-
}, !0), {
|
|
334
|
-
onClick: B[1] || (B[1] = (A) => e.$emit("click", A))
|
|
335
|
-
}), null, 16, Ie), [
|
|
336
|
-
[ue, T.value]
|
|
337
|
-
]),
|
|
338
|
-
e.label || e.hint ? (l(), I(
|
|
339
|
-
"span",
|
|
340
|
-
{
|
|
341
|
-
key: 0,
|
|
342
|
-
class: z(["m-input-label", [
|
|
343
|
-
{
|
|
344
|
-
"maz-text-danger-600": e.error,
|
|
345
|
-
"maz-text-success-600": e.success,
|
|
346
|
-
"maz-text-warning-600": e.warning
|
|
347
|
-
}
|
|
348
|
-
]])
|
|
349
|
-
},
|
|
350
|
-
[
|
|
351
|
-
G(
|
|
352
|
-
J(e.hint || e.label) + " ",
|
|
353
|
-
1
|
|
354
|
-
/* TEXT */
|
|
355
|
-
),
|
|
356
|
-
e.required ? (l(), I("sup", we, "*")) : f("v-if", !0)
|
|
357
|
-
],
|
|
358
|
-
2
|
|
359
|
-
/* CLASS */
|
|
360
|
-
)) : f("v-if", !0)
|
|
361
|
-
]),
|
|
362
|
-
Z() ? (l(), I("div", $e, [
|
|
363
|
-
e.$slots["right-icon"] || e.rightIcon ? S(e.$slots, "right-icon", { key: 0 }, () => [
|
|
364
|
-
typeof e.rightIcon == "string" ? (l(), c(p(g), {
|
|
365
|
-
key: 0,
|
|
366
|
-
name: e.rightIcon,
|
|
367
|
-
class: "maz-text-xl maz-text-muted"
|
|
368
|
-
}, null, 8, ["name"])) : e.rightIcon ? (l(), c(F(e.rightIcon), {
|
|
369
|
-
key: 1,
|
|
370
|
-
class: "maz-text-xl maz-text-muted"
|
|
371
|
-
})) : f("v-if", !0)
|
|
372
|
-
], !0) : f("v-if", !0),
|
|
373
|
-
b.value ? (l(), c(p(h), {
|
|
374
|
-
key: 1,
|
|
375
|
-
color: "transparent",
|
|
376
|
-
tabindex: "-1",
|
|
377
|
-
size: "mini",
|
|
378
|
-
onClick: B[2] || (B[2] = Q((A) => m.value = !m.value, ["stop"]))
|
|
379
|
-
}, {
|
|
380
|
-
default: P(() => [
|
|
381
|
-
m.value ? (l(), c(p(v), {
|
|
382
|
-
key: 0,
|
|
383
|
-
class: "maz-text-xl maz-text-muted"
|
|
384
|
-
})) : (l(), c(p(y), {
|
|
385
|
-
key: 1,
|
|
386
|
-
class: "maz-text-xl maz-text-muted"
|
|
387
|
-
}))
|
|
388
|
-
]),
|
|
389
|
-
_: 1
|
|
390
|
-
/* STABLE */
|
|
391
|
-
})) : f("v-if", !0),
|
|
392
|
-
e.$slots["valid-button"] || e.validButton ? S(e.$slots, "valid-button", { key: 2 }, () => [
|
|
393
|
-
O(p(h), {
|
|
394
|
-
color: "transparent",
|
|
395
|
-
disabled: e.disabled,
|
|
396
|
-
tabindex: "-1",
|
|
397
|
-
loading: e.validButtonLoading,
|
|
398
|
-
class: "m-input-valid-button",
|
|
399
|
-
size: "mini",
|
|
400
|
-
type: "submit"
|
|
401
|
-
}, {
|
|
402
|
-
default: P(() => [
|
|
403
|
-
O(p(w), { class: "maz-text-2xl maz-text-normal" })
|
|
404
|
-
]),
|
|
405
|
-
_: 1
|
|
406
|
-
/* STABLE */
|
|
407
|
-
}, 8, ["disabled", "loading"])
|
|
408
|
-
], !0) : f("v-if", !0)
|
|
409
|
-
])) : f("v-if", !0)
|
|
410
|
-
],
|
|
411
|
-
2
|
|
412
|
-
/* CLASS */
|
|
413
|
-
)
|
|
414
|
-
],
|
|
415
|
-
6
|
|
416
|
-
/* CLASS, STYLE */
|
|
417
|
-
));
|
|
418
|
-
}
|
|
419
|
-
}), Ce = /* @__PURE__ */ N(je, [["__scopeId", "data-v-c42aaa7f"]]), Se = /* @__PURE__ */ q({
|
|
420
|
-
inheritAttrs: !1,
|
|
421
|
-
__name: "MazInputTags",
|
|
422
|
-
props: {
|
|
423
|
-
style: { default: void 0 },
|
|
424
|
-
class: { default: void 0 },
|
|
425
|
-
modelValue: { default: void 0 },
|
|
426
|
-
placeholder: { default: void 0 },
|
|
427
|
-
label: { default: void 0 },
|
|
428
|
-
disabled: { type: Boolean, default: !1 },
|
|
429
|
-
error: { type: Boolean, default: !1 },
|
|
430
|
-
success: { type: Boolean, default: !1 },
|
|
431
|
-
warning: { type: Boolean, default: !1 },
|
|
432
|
-
size: { default: "md" },
|
|
433
|
-
color: { default: "primary" },
|
|
434
|
-
block: { type: Boolean },
|
|
435
|
-
addTagsOnBlur: { type: Boolean, default: !0 },
|
|
436
|
-
hint: {}
|
|
437
|
-
},
|
|
438
|
-
emits: ["update:model-value"],
|
|
439
|
-
setup(d, { emit: n }) {
|
|
440
|
-
const t = d, u = n, h = j(!1), g = j(), v = j(), y = j(), w = j(), m = r(
|
|
441
|
-
() => {
|
|
442
|
-
var o;
|
|
443
|
-
return (o = t.modelValue) == null ? void 0 : o.map((a) => ({
|
|
444
|
-
tag: a,
|
|
445
|
-
id: Math.random().toString(36).slice(2, 11)
|
|
446
|
-
}));
|
|
447
|
-
}
|
|
448
|
-
);
|
|
449
|
-
function k(o) {
|
|
450
|
-
if (g.value) {
|
|
451
|
-
y.value = void 0, o.preventDefault();
|
|
452
|
-
const s = g.value.trim().split(",").map((i) => i.trim() === "," ? void 0 : i.trim()).filter(R).filter(
|
|
453
|
-
(i) => {
|
|
454
|
-
var V, $;
|
|
455
|
-
return !(($ = (V = t.modelValue) == null ? void 0 : V.filter(R)) != null && $.some((T) => T === i));
|
|
456
|
-
}
|
|
457
|
-
);
|
|
458
|
-
u(
|
|
459
|
-
"update:model-value",
|
|
460
|
-
t.modelValue ? [...t.modelValue, ...s] : [...s]
|
|
461
|
-
), g.value = void 0;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
const M = r(() => {
|
|
465
|
-
if (t.error)
|
|
466
|
-
return "maz-border-danger";
|
|
467
|
-
if (t.success)
|
|
468
|
-
return "maz-border-success";
|
|
469
|
-
if (t.warning)
|
|
470
|
-
return "maz-border-warning";
|
|
471
|
-
if (h.value) {
|
|
472
|
-
if (t.color === "primary")
|
|
473
|
-
return "maz-border-primary";
|
|
474
|
-
if (t.color === "secondary")
|
|
475
|
-
return "maz-border-secondary";
|
|
476
|
-
if (t.color === "info")
|
|
477
|
-
return "maz-border-info";
|
|
478
|
-
if (t.color === "danger")
|
|
479
|
-
return "maz-border-danger";
|
|
480
|
-
if (t.color === "success")
|
|
481
|
-
return "maz-border-success";
|
|
482
|
-
if (t.color === "warning")
|
|
483
|
-
return "maz-border-warning";
|
|
484
|
-
if (t.color === "black")
|
|
485
|
-
return "maz-border-black";
|
|
486
|
-
if (t.color === "white")
|
|
487
|
-
return "maz-border-white";
|
|
488
|
-
}
|
|
489
|
-
return "maz-border-border dark:maz-border-color-lighter";
|
|
490
|
-
});
|
|
491
|
-
function D() {
|
|
492
|
-
var o, a, s;
|
|
493
|
-
g.value || m.value && ((o = m.value) == null ? void 0 : o.length) === 0 || (w.value && clearTimeout(w.value), y.value ? (b(y.value), y.value = void 0) : (y.value = (s = (a = m.value) == null ? void 0 : a[m.value.length - 1]) == null ? void 0 : s.id, w.value = setTimeout(() => {
|
|
494
|
-
y.value = void 0;
|
|
495
|
-
}, 2e3)));
|
|
496
|
-
}
|
|
497
|
-
function b(o) {
|
|
498
|
-
var s;
|
|
499
|
-
const a = (s = m.value) == null ? void 0 : s.filter((i) => i.id !== o).map((i) => i.tag);
|
|
500
|
-
u("update:model-value", a);
|
|
501
|
-
}
|
|
502
|
-
const L = r(() => t.size === "mini" || t.size === "xs" ? "mini" : t.size === "sm" ? "xs" : t.size === "md" ? "sm" : t.size === "lg" ? "md" : t.size === "xl" ? "lg" : t.size);
|
|
503
|
-
return (o, a) => (l(), I(
|
|
504
|
-
"div",
|
|
505
|
-
{
|
|
506
|
-
class: z(["m-input-tags", [M.value, `--${o.color}`, `--${o.size}`, t.class, { "--block": o.block }]]),
|
|
507
|
-
style: H(o.style),
|
|
508
|
-
onFocusCapture: a[4] || (a[4] = (s) => h.value = !0),
|
|
509
|
-
onBlurCapture: a[5] || (a[5] = (s) => h.value = !1)
|
|
510
|
-
},
|
|
511
|
-
[
|
|
512
|
-
O(de, { name: "maz-tags" }, {
|
|
513
|
-
default: P(() => [
|
|
514
|
-
(l(!0), I(
|
|
515
|
-
fe,
|
|
516
|
-
null,
|
|
517
|
-
ce(m.value, ({ tag: s, id: i }, V) => (l(), I("div", {
|
|
518
|
-
key: `tag-${V}`,
|
|
519
|
-
class: "m-input-tags__wrapper"
|
|
520
|
-
}, [
|
|
521
|
-
O(W, {
|
|
522
|
-
class: "m-input-tags__tag",
|
|
523
|
-
disabled: o.disabled,
|
|
524
|
-
size: L.value,
|
|
525
|
-
color: v.value === i || y.value === i ? "danger" : o.color,
|
|
526
|
-
"right-icon": v.value === i || y.value === i ? p(ve) : void 0,
|
|
527
|
-
onClick: Q(($) => b(i), ["stop"]),
|
|
528
|
-
onMouseenter: ($) => v.value = i,
|
|
529
|
-
onFocus: ($) => v.value = i,
|
|
530
|
-
onMouseleave: a[0] || (a[0] = ($) => v.value = void 0),
|
|
531
|
-
onBlur: a[1] || (a[1] = ($) => v.value = void 0)
|
|
532
|
-
}, {
|
|
533
|
-
default: P(() => [
|
|
534
|
-
G(
|
|
535
|
-
J(s),
|
|
536
|
-
1
|
|
537
|
-
/* TEXT */
|
|
538
|
-
)
|
|
539
|
-
]),
|
|
540
|
-
_: 2
|
|
541
|
-
/* DYNAMIC */
|
|
542
|
-
}, 1032, ["disabled", "size", "color", "right-icon", "onClick", "onMouseenter", "onFocus"])
|
|
543
|
-
]))),
|
|
544
|
-
128
|
|
545
|
-
/* KEYED_FRAGMENT */
|
|
546
|
-
))
|
|
547
|
-
]),
|
|
548
|
-
_: 1
|
|
549
|
-
/* STABLE */
|
|
550
|
-
}),
|
|
551
|
-
O(Ce, K({
|
|
552
|
-
key: "input-tags",
|
|
553
|
-
modelValue: g.value,
|
|
554
|
-
"onUpdate:modelValue": a[2] || (a[2] = (s) => g.value = s)
|
|
555
|
-
}, o.$attrs, {
|
|
556
|
-
placeholder: o.placeholder,
|
|
557
|
-
label: o.label,
|
|
558
|
-
"aria-label": o.label || o.placeholder,
|
|
559
|
-
error: o.error,
|
|
560
|
-
hint: o.hint,
|
|
561
|
-
success: o.success,
|
|
562
|
-
warning: o.warning,
|
|
563
|
-
disabled: o.disabled,
|
|
564
|
-
color: o.color,
|
|
565
|
-
block: o.block,
|
|
566
|
-
size: o.size,
|
|
567
|
-
"no-border": "",
|
|
568
|
-
class: "m-input-tags__input",
|
|
569
|
-
onKeydown: [
|
|
570
|
-
U(k, ["enter"]),
|
|
571
|
-
U(D, ["delete"])
|
|
572
|
-
],
|
|
573
|
-
onBlur: a[3] || (a[3] = (s) => o.addTagsOnBlur ? k(s) : void 0)
|
|
574
|
-
}), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
|
|
575
|
-
],
|
|
576
|
-
38
|
|
577
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
578
|
-
));
|
|
579
|
-
}
|
|
580
|
-
}), Ve = /* @__PURE__ */ N(Se, [["__scopeId", "data-v-f5008e65"]]);
|
|
581
|
-
export {
|
|
582
|
-
Ve as M,
|
|
583
|
-
N as _
|
|
584
|
-
};
|