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
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { defineComponent as L, defineAsyncComponent as N, useAttrs as H, computed as s, openBlock as n, createBlock as p, resolveDynamicComponent as O, normalizeClass as b, normalizeStyle as J, withCtx as k, renderSlot as v, unref as g, createCommentVNode as I, createElementBlock as A, createVNode as d, createElementVNode as u, mergeProps as $, createTextVNode as V, toDisplayString as R, Fragment as K, renderList as Q } from "vue";
|
|
2
|
+
import '../assets/MazPagination.css';const W = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "m-btn-loader-container"
|
|
5
|
+
}, X = /* @__PURE__ */ L({
|
|
6
|
+
__name: "MazBtn",
|
|
7
|
+
props: {
|
|
8
|
+
variant: { default: "button" },
|
|
9
|
+
size: { default: "md" },
|
|
10
|
+
color: { default: "primary" },
|
|
11
|
+
type: { default: "button" },
|
|
12
|
+
rounded: { type: Boolean },
|
|
13
|
+
roundedSize: { default: "lg" },
|
|
14
|
+
noRounded: { type: Boolean },
|
|
15
|
+
outline: { type: Boolean },
|
|
16
|
+
pastel: { type: Boolean },
|
|
17
|
+
block: { type: Boolean },
|
|
18
|
+
noUnderline: { type: Boolean },
|
|
19
|
+
loading: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
fab: { type: Boolean },
|
|
22
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
23
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
noPadding: { type: Boolean },
|
|
26
|
+
noElevation: { type: Boolean },
|
|
27
|
+
justify: { default: "center" }
|
|
28
|
+
},
|
|
29
|
+
setup(y) {
|
|
30
|
+
const t = y, e = N(() => import("./MazSpinner-DjUU4G1h.mjs")), c = N(() => import("./MazIcon-_hN-Kivn.mjs")), { href: P, to: E } = H(), C = s(() => P ? "a" : E ? "router-link" : "button"), D = s(() => t.pastel ? `--${t.color}-pastel` : t.outline ? `--${t.color}-outline` : `--${t.color}`), i = s(
|
|
31
|
+
() => (t.loading || t.disabled) && C.value === "button"
|
|
32
|
+
), f = s(() => i.value ? "--cursor-default" : "--cursor-pointer"), z = s(() => `--is-${t.variant}`), S = s(() => t.loading && t.variant === "button"), F = s(() => C.value === "button" ? t.type : void 0), m = s(() => t.size === "xl" ? "maz-text-3xl" : t.size === "lg" ? "maz-text-2xl" : t.size === "md" ? "maz-text-xl" : t.size === "sm" ? "maz-text-lg" : t.size === "xs" ? "maz-text-base" : t.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
33
|
+
return (a, j) => (n(), p(O(C.value), {
|
|
34
|
+
disabled: i.value || void 0,
|
|
35
|
+
class: b(["m-btn", [
|
|
36
|
+
`--${a.size}`,
|
|
37
|
+
!a.fab && !a.rounded && a.roundedSize && `--rounded-${a.roundedSize}`,
|
|
38
|
+
D.value,
|
|
39
|
+
f.value,
|
|
40
|
+
z.value,
|
|
41
|
+
{
|
|
42
|
+
"--block": a.block,
|
|
43
|
+
"--no-underline": a.noUnderline,
|
|
44
|
+
"--fab": a.fab,
|
|
45
|
+
"--loading": a.loading,
|
|
46
|
+
"--disabled": i.value,
|
|
47
|
+
"--rounded": a.rounded,
|
|
48
|
+
"--no-rounded": a.noRounded,
|
|
49
|
+
"--no-padding": a.noPadding,
|
|
50
|
+
"--no-elevation": a.noElevation
|
|
51
|
+
}
|
|
52
|
+
]]),
|
|
53
|
+
style: J([`--justify: ${a.justify}`]),
|
|
54
|
+
type: F.value
|
|
55
|
+
}, {
|
|
56
|
+
default: k(() => [
|
|
57
|
+
v(a.$slots, "left-icon", {}, () => [
|
|
58
|
+
typeof a.leftIcon == "string" ? (n(), p(g(c), {
|
|
59
|
+
key: 0,
|
|
60
|
+
name: a.leftIcon,
|
|
61
|
+
class: b([m.value])
|
|
62
|
+
}, null, 8, ["name", "class"])) : a.leftIcon ? (n(), p(O(a.leftIcon), {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: b([m.value])
|
|
65
|
+
}, null, 8, ["class"])) : I("v-if", !0)
|
|
66
|
+
], !0),
|
|
67
|
+
v(a.$slots, "icon", {}, () => [
|
|
68
|
+
typeof a.icon == "string" ? (n(), p(g(c), {
|
|
69
|
+
key: 0,
|
|
70
|
+
name: a.icon,
|
|
71
|
+
class: b([m.value])
|
|
72
|
+
}, null, 8, ["name", "class"])) : a.icon ? (n(), p(O(a.icon), {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: b([m.value])
|
|
75
|
+
}, null, 8, ["class"])) : I("v-if", !0)
|
|
76
|
+
], !0),
|
|
77
|
+
v(a.$slots, "default", {}, void 0, !0),
|
|
78
|
+
v(a.$slots, "right-icon", {}, () => [
|
|
79
|
+
typeof a.rightIcon == "string" ? (n(), p(g(c), {
|
|
80
|
+
key: 0,
|
|
81
|
+
name: a.rightIcon,
|
|
82
|
+
class: b([m.value])
|
|
83
|
+
}, null, 8, ["name", "class"])) : a.rightIcon ? (n(), p(O(a.rightIcon), {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: b([m.value])
|
|
86
|
+
}, null, 8, ["class"])) : I("v-if", !0)
|
|
87
|
+
], !0),
|
|
88
|
+
S.value ? (n(), A("div", W, [
|
|
89
|
+
d(g(e), {
|
|
90
|
+
size: "2em",
|
|
91
|
+
color: a.color
|
|
92
|
+
}, null, 8, ["color"])
|
|
93
|
+
])) : I("v-if", !0)
|
|
94
|
+
]),
|
|
95
|
+
_: 3
|
|
96
|
+
/* FORWARDED */
|
|
97
|
+
}, 8, ["disabled", "class", "style", "type"]));
|
|
98
|
+
}
|
|
99
|
+
}), T = (y, t) => {
|
|
100
|
+
const e = y.__vccOpts || y;
|
|
101
|
+
for (const [c, P] of t)
|
|
102
|
+
e[c] = P;
|
|
103
|
+
return e;
|
|
104
|
+
}, h = /* @__PURE__ */ T(X, [["__scopeId", "data-v-bee684ff"]]), Y = {
|
|
105
|
+
class: "m-pagination",
|
|
106
|
+
role: "navigation",
|
|
107
|
+
"aria-label": "page navigation"
|
|
108
|
+
}, Z = { class: "maz-sr-only" }, _ = { class: "maz-sr-only" }, x = ["id"], ee = { class: "maz-sr-only" }, ae = { class: "maz-sr-only" }, le = { class: "maz-sr-only" }, oe = /* @__PURE__ */ L({
|
|
109
|
+
__name: "MazPagination",
|
|
110
|
+
props: {
|
|
111
|
+
modelValue: { default: 1 },
|
|
112
|
+
buttonProps: { default: void 0 },
|
|
113
|
+
resultsSize: { default: void 0 },
|
|
114
|
+
activeColor: { default: "primary" },
|
|
115
|
+
size: { default: "md" },
|
|
116
|
+
totalPages: {},
|
|
117
|
+
pageRange: { default: 2 },
|
|
118
|
+
loading: { type: Boolean }
|
|
119
|
+
},
|
|
120
|
+
emits: ["update:model-value"],
|
|
121
|
+
setup(y, { emit: t }) {
|
|
122
|
+
const e = y, c = t, P = N(() => import("./chevron-left-BqVOLRdC.mjs")), E = N(() => import("./chevron-double-left-D4-NpyrF.mjs")), C = N(() => import("./ellipsis-horizontal-6n158ATI.mjs")), D = {
|
|
123
|
+
size: "md",
|
|
124
|
+
color: "theme",
|
|
125
|
+
outline: !0,
|
|
126
|
+
noElevation: !0,
|
|
127
|
+
fab: !0
|
|
128
|
+
}, i = s(() => ({
|
|
129
|
+
...D,
|
|
130
|
+
...e.buttonProps
|
|
131
|
+
})), f = s(() => e.modelValue > 1 ? e.modelValue - 1 : 1), z = s(
|
|
132
|
+
() => e.modelValue < e.totalPages ? e.modelValue + 1 : e.totalPages
|
|
133
|
+
), S = s(
|
|
134
|
+
() => Array.from({ length: e.totalPages }, (l, r) => {
|
|
135
|
+
const o = r + 1;
|
|
136
|
+
return {
|
|
137
|
+
number: o,
|
|
138
|
+
isActive: o === e.modelValue,
|
|
139
|
+
loading: o === e.modelValue && e.loading
|
|
140
|
+
};
|
|
141
|
+
})
|
|
142
|
+
), F = s(
|
|
143
|
+
() => e.modelValue - e.pageRange > 1 ? S.value.slice(0, 1) : []
|
|
144
|
+
), m = s(
|
|
145
|
+
() => e.modelValue < e.totalPages - e.pageRange ? S.value.slice(-1) : []
|
|
146
|
+
), a = s(() => e.modelValue - e.pageRange - 1 < 0 ? 0 : e.modelValue - e.pageRange - 1 > e.totalPages - e.pageRange ? e.totalPages - e.pageRange : e.modelValue - e.pageRange - 1), j = s(
|
|
147
|
+
() => e.modelValue + e.pageRange > e.totalPages ? e.totalPages : e.modelValue + e.pageRange < e.pageRange ? e.pageRange : e.modelValue + e.pageRange
|
|
148
|
+
), U = s(() => S.value.slice(a.value, j.value)), w = s(
|
|
149
|
+
() => e.modelValue - e.pageRange > 2 ? [{ divider: !0 }] : []
|
|
150
|
+
), q = s(
|
|
151
|
+
() => e.modelValue < e.totalPages - e.pageRange - 1 ? [{ divider: !0 }] : []
|
|
152
|
+
), G = s(() => [
|
|
153
|
+
...F.value,
|
|
154
|
+
...w.value,
|
|
155
|
+
...U.value,
|
|
156
|
+
...q.value,
|
|
157
|
+
...m.value
|
|
158
|
+
]);
|
|
159
|
+
function B(l) {
|
|
160
|
+
l !== e.modelValue && c("update:model-value", l);
|
|
161
|
+
}
|
|
162
|
+
return (l, r) => (n(), A("nav", Y, [
|
|
163
|
+
u("ul", null, [
|
|
164
|
+
u("li", null, [
|
|
165
|
+
d(h, $(i.value, {
|
|
166
|
+
disabled: l.modelValue === 1,
|
|
167
|
+
"aria-label": "First Page, Page 1",
|
|
168
|
+
"aria-setsize": l.resultsSize ?? void 0,
|
|
169
|
+
"aria-posinset": "1",
|
|
170
|
+
size: l.size,
|
|
171
|
+
onClick: r[0] || (r[0] = (o) => B(1))
|
|
172
|
+
}), {
|
|
173
|
+
default: k(() => [
|
|
174
|
+
u("span", Z, [
|
|
175
|
+
v(l.$slots, "first-page-sr", { page: 1 }, () => [
|
|
176
|
+
r[4] || (r[4] = V("First Page, page 1"))
|
|
177
|
+
], !0)
|
|
178
|
+
]),
|
|
179
|
+
d(g(E))
|
|
180
|
+
]),
|
|
181
|
+
_: 3
|
|
182
|
+
/* FORWARDED */
|
|
183
|
+
}, 16, ["disabled", "aria-setsize", "size"])
|
|
184
|
+
]),
|
|
185
|
+
u("li", null, [
|
|
186
|
+
d(h, $(i.value, {
|
|
187
|
+
disabled: l.modelValue === 1,
|
|
188
|
+
"aria-label": `Previous Page, Page ${f.value}`,
|
|
189
|
+
"aria-setsize": l.resultsSize ?? void 0,
|
|
190
|
+
"aria-posinset": f.value,
|
|
191
|
+
size: l.size,
|
|
192
|
+
onClick: r[1] || (r[1] = (o) => B(f.value))
|
|
193
|
+
}), {
|
|
194
|
+
default: k(() => [
|
|
195
|
+
u("span", _, [
|
|
196
|
+
v(l.$slots, "previous-page-sr", { page: f.value }, () => [
|
|
197
|
+
V(
|
|
198
|
+
" Previous Page, page " + R(f.value),
|
|
199
|
+
1
|
|
200
|
+
/* TEXT */
|
|
201
|
+
)
|
|
202
|
+
], !0)
|
|
203
|
+
]),
|
|
204
|
+
d(g(P))
|
|
205
|
+
]),
|
|
206
|
+
_: 3
|
|
207
|
+
/* FORWARDED */
|
|
208
|
+
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
209
|
+
]),
|
|
210
|
+
(n(!0), A(
|
|
211
|
+
K,
|
|
212
|
+
null,
|
|
213
|
+
Q(G.value, (o, M) => (n(), A("li", {
|
|
214
|
+
id: "number" in o ? `button-${M}-${o.number}` : `ellipsis-${M}`,
|
|
215
|
+
key: "number" in o ? `button-${M}-${o.number}` : `ellipsis-${M}`
|
|
216
|
+
}, [
|
|
217
|
+
"number" in o ? (n(), p(h, $({
|
|
218
|
+
key: 0,
|
|
219
|
+
ref_for: !0
|
|
220
|
+
}, {
|
|
221
|
+
...i.value,
|
|
222
|
+
color: o.isActive ? l.activeColor : i.value.color,
|
|
223
|
+
outline: o.isActive ? !1 : i.value.outline
|
|
224
|
+
}, {
|
|
225
|
+
size: l.size,
|
|
226
|
+
"aria-label": `Page ${o.number}`,
|
|
227
|
+
"aria-current": o.isActive ? "true" : "false",
|
|
228
|
+
"aria-setsize": l.resultsSize ?? void 0,
|
|
229
|
+
loading: o.loading,
|
|
230
|
+
"aria-posinset": o.number,
|
|
231
|
+
class: { active: o.isActive },
|
|
232
|
+
onClick: (te) => o.isActive ? void 0 : B(o.number)
|
|
233
|
+
}), {
|
|
234
|
+
default: k(() => [
|
|
235
|
+
u("span", ee, [
|
|
236
|
+
v(l.$slots, "page-sr", {
|
|
237
|
+
page: o.number
|
|
238
|
+
}, () => [
|
|
239
|
+
V(
|
|
240
|
+
"Page " + R(o.number),
|
|
241
|
+
1
|
|
242
|
+
/* TEXT */
|
|
243
|
+
)
|
|
244
|
+
], !0)
|
|
245
|
+
]),
|
|
246
|
+
V(
|
|
247
|
+
" " + R(o.number),
|
|
248
|
+
1
|
|
249
|
+
/* TEXT */
|
|
250
|
+
)
|
|
251
|
+
]),
|
|
252
|
+
_: 2
|
|
253
|
+
/* DYNAMIC */
|
|
254
|
+
}, 1040, ["size", "aria-label", "aria-current", "aria-setsize", "loading", "aria-posinset", "class", "onClick"])) : o.divider ? (n(), A(
|
|
255
|
+
"div",
|
|
256
|
+
$({
|
|
257
|
+
key: 1,
|
|
258
|
+
ref_for: !0
|
|
259
|
+
}, i.value, { class: "flex p-2 flex-center" }),
|
|
260
|
+
[
|
|
261
|
+
d(g(C))
|
|
262
|
+
],
|
|
263
|
+
16
|
|
264
|
+
/* FULL_PROPS */
|
|
265
|
+
)) : I("v-if", !0)
|
|
266
|
+
], 8, x))),
|
|
267
|
+
128
|
|
268
|
+
/* KEYED_FRAGMENT */
|
|
269
|
+
)),
|
|
270
|
+
u("li", null, [
|
|
271
|
+
d(h, $(i.value, {
|
|
272
|
+
disabled: l.modelValue === l.totalPages,
|
|
273
|
+
"aria-label": `Next Page, Page ${z.value}`,
|
|
274
|
+
"aria-setsize": l.resultsSize ?? void 0,
|
|
275
|
+
"aria-posinset": z.value,
|
|
276
|
+
size: l.size,
|
|
277
|
+
onClick: r[2] || (r[2] = (o) => B(z.value))
|
|
278
|
+
}), {
|
|
279
|
+
default: k(() => [
|
|
280
|
+
u("span", ae, [
|
|
281
|
+
v(l.$slots, "next-page-sr", { page: z.value }, () => [
|
|
282
|
+
V(
|
|
283
|
+
"Next Page, page " + R(z.value),
|
|
284
|
+
1
|
|
285
|
+
/* TEXT */
|
|
286
|
+
)
|
|
287
|
+
], !0)
|
|
288
|
+
]),
|
|
289
|
+
d(g(P), { class: "-maz-rotate-180" })
|
|
290
|
+
]),
|
|
291
|
+
_: 3
|
|
292
|
+
/* FORWARDED */
|
|
293
|
+
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
294
|
+
]),
|
|
295
|
+
u("li", null, [
|
|
296
|
+
d(h, $(i.value, {
|
|
297
|
+
disabled: l.modelValue === l.totalPages,
|
|
298
|
+
"aria-label": `Next Page, Page ${l.totalPages}`,
|
|
299
|
+
"aria-setsize": l.resultsSize ?? void 0,
|
|
300
|
+
"aria-posinset": l.totalPages,
|
|
301
|
+
size: l.size,
|
|
302
|
+
onClick: r[3] || (r[3] = (o) => B(l.totalPages))
|
|
303
|
+
}), {
|
|
304
|
+
default: k(() => [
|
|
305
|
+
u("span", le, [
|
|
306
|
+
v(l.$slots, "last-page-sr", { page: l.totalPages }, () => [
|
|
307
|
+
V(
|
|
308
|
+
"Last Page, page " + R(l.totalPages),
|
|
309
|
+
1
|
|
310
|
+
/* TEXT */
|
|
311
|
+
)
|
|
312
|
+
], !0)
|
|
313
|
+
]),
|
|
314
|
+
d(g(E), { class: "-maz-rotate-180" })
|
|
315
|
+
]),
|
|
316
|
+
_: 3
|
|
317
|
+
/* FORWARDED */
|
|
318
|
+
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
319
|
+
])
|
|
320
|
+
])
|
|
321
|
+
]));
|
|
322
|
+
}
|
|
323
|
+
}), ne = /* @__PURE__ */ T(oe, [["__scopeId", "data-v-a2c01089"]]);
|
|
324
|
+
export {
|
|
325
|
+
ne as M,
|
|
326
|
+
T as _
|
|
327
|
+
};
|