maz-ui 3.43.4 → 3.44.0
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 +2 -2
- package/components/MazAccordion.mjs +84 -84
- package/components/MazAnimatedCounter.mjs +9 -10
- package/components/MazAvatar.d.ts +3 -3
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +2 -2
- package/components/MazBackdrop.mjs +12 -10
- package/components/MazBadge.d.ts +2 -2
- package/components/MazBadge.mjs +3 -4
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +7 -5
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +3 -3
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +2 -2
- package/components/MazCardSpotlight.mjs +4 -5
- package/components/MazCarousel.d.ts +2 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazCheckbox.d.ts +2 -2
- package/components/MazCheckbox.mjs +10 -11
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazCircularProgressBar.mjs +21 -23
- package/components/MazDialog.d.ts +2 -2
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -2
- package/components/MazDrawer.mjs +71 -69
- package/components/MazDropdown.d.ts +7 -6
- package/components/MazDropdown.mjs +130 -128
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.d.ts +2 -2
- package/components/MazExpandAnimation.mjs +26 -26
- package/components/MazFullscreenLoader.d.ts +2 -2
- package/components/MazFullscreenLoader.mjs +11 -10
- package/components/MazGallery.d.ts +2 -2
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +45 -34
- package/components/MazInput.d.ts +4 -4
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +2 -2
- package/components/MazInputCode.mjs +4 -5
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +7 -2
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -2
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +6 -6
- package/components/MazLink.mjs +3 -4
- package/components/MazLoadingBar.d.ts +2 -2
- package/components/MazLoadingBar.mjs +17 -18
- package/components/MazPagination.d.ts +3 -3
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
- package/components/MazPhoneNumberInput/types.d.ts +5 -5
- package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
- package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
- package/components/MazPhoneNumberInput.d.ts +8 -8
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
- package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/components/MazPicker/types.d.ts +4 -4
- package/components/MazPicker/utils.d.ts +4 -4
- package/components/MazPicker.d.ts +3 -3
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +2 -2
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +8 -9
- package/components/MazRadioButtons.d.ts +2 -2
- package/components/MazRadioButtons.mjs +44 -42
- package/components/MazReadingProgressBar.d.ts +2 -2
- package/components/MazReadingProgressBar.mjs +12 -13
- package/components/MazSelect.d.ts +4 -4
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider/utils.d.ts +4 -4
- package/components/MazSlider.mjs +100 -87
- package/components/MazSpinner.mjs +6 -7
- package/components/MazStepper.d.ts +3 -3
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -2
- package/components/MazSwitch.mjs +6 -6
- package/components/MazTable.d.ts +13 -10
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +4 -5
- package/components/MazTableRow.d.ts +2 -2
- package/components/MazTableRow.mjs +4 -5
- package/components/MazTableTitle.mjs +2 -3
- package/components/MazTabs.d.ts +4 -4
- package/components/MazTabsBar.d.ts +7 -5
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +5 -4
- package/components/MazTabsContentItem.mjs +16 -17
- package/components/MazTextarea.d.ts +2 -2
- package/components/MazTextarea.mjs +19 -17
- package/components/MazTransitionExpand.d.ts +2 -2
- package/components/MazTransitionExpand.mjs +19 -18
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCarousel.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPickerMonthSwitcher.css +1 -1
- package/components/assets/MazPickerShortcuts.css +1 -1
- package/components/assets/MazPickerYearSwitcher.css +1 -1
- package/components/assets/MazPullToRefresh.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazReadingProgressBar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSpinner.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-DsJvzyS9.mjs → MazAvatar-BU1nJFcV.mjs} +8 -9
- package/components/chunks/{MazBadge-CYJlqITD.mjs → MazBadge-CwA0md19.mjs} +4 -5
- package/components/chunks/{MazBottomSheet-CIlIdn-2.mjs → MazBottomSheet-DUOIusEi.mjs} +54 -52
- package/components/chunks/{MazBtn-CCNGs6oo.mjs → MazBtn-5BSKOcqG.mjs} +35 -36
- package/components/chunks/{MazBtn-Ccvl1ZWv.mjs → MazBtn-B1-sTc7F.mjs} +31 -32
- package/components/chunks/{MazBtn-BC5OegPu.mjs → MazBtn-BY8WCtM7.mjs} +35 -36
- package/components/chunks/{MazBtn-CX4OgPzp.mjs → MazBtn-C5G78zLg.mjs} +35 -36
- package/components/chunks/MazBtn-CeVwyYR5.mjs +150 -0
- package/components/chunks/{MazBtn-BqgdERYQ.mjs → MazBtn-ColLVUca.mjs} +35 -36
- package/components/chunks/{MazBtn-beTASOLt.mjs → MazBtn-DJhQqzja.mjs} +35 -36
- package/components/chunks/MazBtn-DuY28-0U.mjs +150 -0
- package/components/chunks/{MazBtn-BydIwD1J.mjs → MazBtn-f1mBXJeU.mjs} +31 -32
- package/components/chunks/MazBtn-h3WmmaEO.mjs +150 -0
- package/components/chunks/MazBtn-zyRLUViT.mjs +150 -0
- package/components/chunks/{MazCard-bmiVPg8p.mjs → MazCard-BWxV_Z-i.mjs} +25 -26
- package/components/chunks/{MazCarousel-CL0bMygd.mjs → MazCarousel-D5EmW7Sa.mjs} +43 -35
- package/components/chunks/{MazCheckbox-DsFbvpp4.mjs → MazCheckbox-BWiMbecz.mjs} +11 -12
- package/components/chunks/{MazCheckbox-CCa7grGF.mjs → MazCheckbox-D3PXkt75.mjs} +11 -12
- package/components/chunks/{MazDialog-BckFta4N.mjs → MazDialog-CLWKCphI.mjs} +56 -54
- package/components/chunks/{MazDialogPromise-Bb6h4hFz.mjs → MazDialogPromise-DVOJwdVp.mjs} +139 -126
- package/components/chunks/{MazDropzone-C_8mRUbK.mjs → MazDropzone-Dm2IirHm.mjs} +33 -54
- package/components/chunks/MazExpandAnimation-ChSSdQAq.mjs +58 -0
- package/components/chunks/{MazGallery-CcpeM_zk.mjs → MazGallery-BlfPe8WG.mjs} +103 -101
- package/components/chunks/{MazGallery-6UK5sH9P.mjs → MazGallery-Bn9p1gNb.mjs} +102 -100
- package/{modules/chunks/MazIcon-CiNswMKM.mjs → components/chunks/MazIcon-B8A0hQAH.mjs} +45 -34
- package/components/chunks/{MazIcon-Cxrv3_OK.mjs → MazIcon-BDGxCy9M.mjs} +45 -34
- package/components/chunks/{MazIcon-BKuhvwwq.mjs → MazIcon-D3umgnku.mjs} +45 -34
- package/components/chunks/{MazInput-DNwBL54e.mjs → MazInput-BpsE-mdg.mjs} +69 -69
- package/components/chunks/{MazInputNumber-BSdVF8-q.mjs → MazInputNumber-DGBYbDSX.mjs} +186 -182
- package/components/chunks/{MazInputPrice-osrAz4xd.mjs → MazInputPrice-j2BNMeFp.mjs} +134 -129
- package/components/chunks/{MazInputTags-XUWwx6p8.mjs → MazInputTags-CJofVaj5.mjs} +234 -252
- package/components/chunks/{MazLazyImg-6qrfqWKr.mjs → MazLazyImg-BFG6FIJZ.mjs} +6 -7
- package/components/chunks/{MazLazyImg-BelScAEF.mjs → MazLazyImg-Dboc6Xfz.mjs} +5 -6
- package/components/chunks/{MazPagination-DUiHgLAp.mjs → MazPagination-C6ZehQSZ.mjs} +118 -119
- package/components/chunks/{MazPhoneNumberInput-HeEEyDu0.mjs → MazPhoneNumberInput-DpWoNQfx.mjs} +707 -695
- package/components/chunks/MazPicker-ia2BEmm5.mjs +2531 -0
- package/components/chunks/{MazPickerMonthSwitcher-CoV-84J1.mjs → MazPickerMonthSwitcher-CKtfZ_m-.mjs} +19 -19
- package/components/chunks/{MazPickerShortcuts-5IfUIwpz.mjs → MazPickerShortcuts-Cc9VoqBw.mjs} +10 -10
- package/components/chunks/{MazPickerYearSwitcher-MeptqtZk.mjs → MazPickerYearSwitcher-0b5Wrem9.mjs} +10 -8
- package/components/chunks/{MazPullToRefresh-DWbmwlzV.mjs → MazPullToRefresh-CUazP4y2.mjs} +21 -22
- package/components/chunks/MazSelect-COJoKXbV.mjs +847 -0
- package/components/chunks/MazSpinner-9Jue6cel.mjs +37 -0
- package/components/chunks/{MazSpinner-BKjRRWtc.mjs → MazSpinner-BGPOws6a.mjs} +6 -7
- package/components/chunks/{MazSpinner-BXxULdoD.mjs → MazSpinner-BWYdqSMP.mjs} +6 -7
- package/components/chunks/{MazSpinner-BRgzRI07.mjs → MazSpinner-BZOjTZBN.mjs} +6 -7
- package/components/chunks/{MazSpinner-B-svzg-R.mjs → MazSpinner-BaAMq7LI.mjs} +6 -7
- package/components/chunks/MazSpinner-Bad2n-0k.mjs +37 -0
- package/components/chunks/MazSpinner-BxnVFqUu.mjs +37 -0
- package/components/chunks/{MazSpinner-Mvsi6uCt.mjs → MazSpinner-C41VyUup.mjs} +6 -7
- package/components/chunks/MazSpinner-C6StE-Mb.mjs +37 -0
- package/components/chunks/{MazSpinner-BFXwybUv.mjs → MazSpinner-CNIlbDfg.mjs} +6 -7
- package/components/chunks/MazSpinner-Cz2DHV6g.mjs +37 -0
- package/components/chunks/MazSpinner-D4CdHpP2.mjs +37 -0
- package/{modules/chunks/MazSpinner--jWWogVn.mjs → components/chunks/MazSpinner-DHQH6Bhz.mjs} +6 -7
- package/components/chunks/MazSpinner-DRj2VpGA.mjs +37 -0
- package/components/chunks/{MazSpinner-C1lg-Klx.mjs → MazSpinner-DkXequnp.mjs} +6 -7
- package/components/chunks/MazSpinner-EA5ejB8F.mjs +37 -0
- package/components/chunks/{MazSpinner-BtpIL60X.mjs → MazSpinner-RvDGcBng.mjs} +6 -7
- package/components/chunks/{MazSpinner-B_WP-2kr.mjs → MazSpinner-V-bFi71W.mjs} +6 -7
- package/components/chunks/MazSpinner-aPFlrc5E.mjs +37 -0
- package/components/chunks/{MazSpinner-CfA_KEZT.mjs → MazSpinner-nH44Htog.mjs} +6 -7
- package/components/chunks/MazSpinner-nOD-7_sU.mjs +37 -0
- package/components/chunks/MazSpinner-yZGK-AQe.mjs +37 -0
- package/components/chunks/{MazStepper-DDofJsdg.mjs → MazStepper-DxrzKz06.mjs} +94 -83
- package/components/chunks/MazTable-DRUj_PZp.mjs +1960 -0
- package/components/chunks/{MazTabsBar-BXDEQkZM.mjs → MazTabsBar-xcIIXHx5.mjs} +67 -68
- package/components/chunks/{MazTransitionExpand-BwuAIzII.mjs → MazTransitionExpand-B08cSrmL.mjs} +20 -19
- package/components/chunks/{examples.mobile.json-um0ibyv5.mjs → examples.mobile.json-JpNGylGv.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/MazSpinner.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-Czcbhr3Z.cjs → MazBtn-BbCGGxkK.cjs} +2 -2
- package/modules/chunks/{MazBtn-CXcW31TK.mjs → MazBtn-UBHTKqaN.mjs} +35 -36
- package/modules/chunks/MazIcon-BDSXZYZ8.cjs +1 -0
- package/{components/chunks/MazIcon-DtG5ii8R.mjs → modules/chunks/MazIcon-C2ch3jUS.mjs} +45 -34
- package/modules/chunks/{MazSpinner-Cw1KnqLM.cjs → MazSpinner-BiyFRA4w.cjs} +1 -1
- package/modules/chunks/MazSpinner-C9_xSbZZ.mjs +37 -0
- package/modules/chunks/{index-CThtJOu5.mjs → index-Cwbjspv3.mjs} +621 -588
- package/modules/chunks/index-tnjajVkX.cjs +124 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +34 -35
- package/nuxt/index.json +2 -2
- package/nuxt/index.mjs +3 -4
- package/nuxt/types.d.mts +24 -0
- package/nuxt/types.d.ts +24 -0
- package/package.json +77 -83
- package/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/tailwindcss/tailwind.config.ts +9 -2
- package/tailwindcss/utils/colors.ts +3 -3
- package/tailwindcss/variables/colors.ts +12 -12
- package/tailwindcss/variables/utilities.ts +2 -2
- package/tailwindcss/variables/z-indexes.ts +12 -11
- package/types/components/MazAccordion.vue.d.ts +2 -2
- package/types/components/MazAvatar.vue.d.ts +3 -3
- package/types/components/MazBackdrop.vue.d.ts +2 -2
- package/types/components/MazBadge.vue.d.ts +2 -2
- package/types/components/MazBtn.vue.d.ts +7 -5
- package/types/components/MazCard.vue.d.ts +3 -3
- package/types/components/MazCardSpotlight.vue.d.ts +2 -2
- package/types/components/MazCarousel.vue.d.ts +2 -2
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazCheckbox.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDialog.vue.d.ts +2 -2
- package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
- package/types/components/MazDrawer.vue.d.ts +2 -2
- package/types/components/MazDropdown.vue.d.ts +7 -6
- package/types/components/MazDropzone.vue.d.ts +1 -1
- package/types/components/MazExpandAnimation.vue.d.ts +2 -2
- package/types/components/MazFullscreenLoader.vue.d.ts +2 -2
- package/types/components/MazGallery.vue.d.ts +2 -2
- package/types/components/MazInput.vue.d.ts +4 -4
- package/types/components/MazInputCode.vue.d.ts +2 -2
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazInputTags.vue.d.ts +7 -2
- package/types/components/MazLazyImg.vue.d.ts +2 -2
- package/types/components/MazLink.vue.d.ts +6 -6
- package/types/components/MazLoadingBar.vue.d.ts +2 -2
- package/types/components/MazPagination.vue.d.ts +3 -3
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
- package/types/components/MazPhoneNumberInput/types.d.ts +5 -5
- package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
- package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
- package/types/components/MazPhoneNumberInput.vue.d.ts +8 -8
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/types/components/MazPicker/types.d.ts +4 -4
- package/types/components/MazPicker/utils.d.ts +4 -4
- package/types/components/MazPicker.vue.d.ts +3 -3
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazRadioButtons.vue.d.ts +2 -2
- package/types/components/MazReadingProgressBar.vue.d.ts +2 -2
- package/types/components/MazSelect.vue.d.ts +4 -4
- package/types/components/MazSlider/utils.d.ts +4 -4
- package/types/components/MazStepper.vue.d.ts +3 -3
- package/types/components/MazSwitch.vue.d.ts +2 -2
- package/types/components/MazTable.vue.d.ts +13 -10
- package/types/components/MazTableRow.vue.d.ts +2 -2
- package/types/components/MazTabs.vue.d.ts +4 -4
- package/types/components/MazTabsBar.vue.d.ts +7 -5
- package/types/components/MazTextarea.vue.d.ts +2 -2
- package/types/components/MazTransitionExpand.vue.d.ts +2 -2
- package/types/modules/composables/use-reading-time.d.ts +5 -5
- package/types/modules/composables/use-theme-handler.d.ts +2 -2
- package/types/modules/directives/closable.d.ts +2 -2
- package/types/modules/directives/tooltip/index.d.ts +4 -4
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
- package/types/modules/directives/v-lazy-img/index.d.ts +1 -1
- package/types/modules/filters/capitalize.d.ts +1 -1
- package/types/modules/filters/currency.d.ts +1 -1
- package/types/modules/filters/date.d.ts +1 -1
- package/types/modules/filters/index.d.ts +8 -4
- package/types/modules/filters/number.d.ts +1 -1
- package/types/modules/filters/telephone.d.ts +1 -1
- package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +1 -1
- package/types/modules/helpers/mount-component.d.ts +2 -2
- package/types/modules/helpers/normalize-string.d.ts +2 -2
- package/types/modules/helpers/swipe-handler.d.ts +2 -2
- package/types/modules/helpers/user-visibility/types.d.ts +2 -2
- package/types/modules/plugins/aos/index.d.ts +3 -3
- package/types/modules/plugins/index.d.ts +2 -2
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +3 -3
- package/types/modules/plugins/toaster/index.d.ts +1 -2
- package/types/modules/plugins/toaster/types.d.ts +6 -6
- package/types/modules/plugins/wait/utils.d.ts +4 -4
- package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/types/tailwindcss/tailwind.config.d.ts +71 -9
- package/types/tailwindcss/variables/z-indexes.d.ts +11 -11
- package/components/chunks/MazBtn-BOb7Fg_d.mjs +0 -151
- package/components/chunks/MazBtn-DpkJQ_3W.mjs +0 -151
- package/components/chunks/MazBtn-Dw_CR_0X.mjs +0 -151
- package/components/chunks/MazBtn-_NGDIlQK.mjs +0 -151
- package/components/chunks/MazExpandAnimation-Cin7sZ3I.mjs +0 -58
- package/components/chunks/MazPicker-CltoTa2Z.mjs +0 -2477
- package/components/chunks/MazSelect-DDKbowf3.mjs +0 -835
- package/components/chunks/MazSpinner-2ti3NQjo.mjs +0 -38
- package/components/chunks/MazSpinner-BZUmasIf.mjs +0 -38
- package/components/chunks/MazSpinner-C-lFmcUR.mjs +0 -38
- package/components/chunks/MazSpinner-C75WMoEA.mjs +0 -38
- package/components/chunks/MazSpinner-CA38Ikqe.mjs +0 -38
- package/components/chunks/MazSpinner-CAHOYqvB.mjs +0 -38
- package/components/chunks/MazSpinner-COOp2WX8.mjs +0 -38
- package/components/chunks/MazSpinner-D-ONjGGv.mjs +0 -38
- package/components/chunks/MazSpinner-DJkziC4O.mjs +0 -38
- package/components/chunks/MazSpinner-Di0F6oZz.mjs +0 -38
- package/components/chunks/MazSpinner-EcA0uOQv.mjs +0 -38
- package/components/chunks/MazSpinner-s_0BLDqW.mjs +0 -38
- package/components/chunks/MazTable-B9JiJ2B2.mjs +0 -1950
- package/modules/chunks/MazIcon-DdFYd3W8.cjs +0 -1
- package/modules/chunks/index-RvIMpzcQ.cjs +0 -124
- package/nuxt/runtime/composables/{use-aos.mjs → use-aos.js} +0 -0
- package/nuxt/runtime/composables/{use-theme-handler.mjs → use-theme-handler.js} +1 -1
- package/nuxt/runtime/composables/{use-toast.mjs → use-toast.js} +0 -0
- package/nuxt/runtime/composables/{use-wait.mjs → use-wait.js} +0 -0
- package/nuxt/runtime/plugins/{aos.mjs → aos.js} +1 -1
- package/nuxt/runtime/plugins/{maz-icon-path.mjs → maz-icon-path.js} +0 -0
- package/nuxt/runtime/plugins/{toaster.mjs → toaster.js} +1 -1
- package/nuxt/runtime/plugins/{v-click-outside.mjs → v-click-outside.js} +1 -1
- package/nuxt/runtime/plugins/{v-fullscreen-img.mjs → v-fullscreen-img.js} +1 -1
- package/nuxt/runtime/plugins/{v-lazy-img.mjs → v-lazy-img.js} +1 -1
- package/nuxt/runtime/plugins/{v-tooltip.mjs → v-tooltip.js} +1 -1
- package/nuxt/runtime/plugins/{v-zoom-img.mjs → v-zoom-img.js} +1 -1
- package/nuxt/runtime/plugins/{wait.mjs → wait.js} +1 -1
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as L, defineAsyncComponent as w, useAttrs as ne, useSlots as j, onBeforeMount as oe, computed as r, openBlock as a, createBlock as u, resolveDynamicComponent as V, normalizeClass as z, withCtx as P, createElementBlock as v, createCommentVNode as i, renderSlot as C, unref as c, getCurrentInstance as te, ref as A, onMounted as le, normalizeStyle as K, createElementVNode as N, withDirectives as ae, mergeProps as Y, toHandlers as ie, vModelDynamic as re, createTextVNode as se, toDisplayString as ue, withModifiers as q, createVNode as S, withKeys as O } from "vue";
|
|
2
|
+
import '../assets/MazInputNumber.css';function G(m, l) {
|
|
3
|
+
let n;
|
|
4
|
+
return function(...d) {
|
|
5
|
+
clearTimeout(n), n = setTimeout(() => {
|
|
6
|
+
m.apply(this, d);
|
|
7
|
+
}, l);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
3
10
|
const de = /* @__PURE__ */ L({
|
|
4
11
|
__name: "MazBtn",
|
|
5
12
|
props: {
|
|
@@ -24,151 +31,143 @@ const de = /* @__PURE__ */ L({
|
|
|
24
31
|
noElevation: { type: Boolean },
|
|
25
32
|
contentClass: { default: void 0 }
|
|
26
33
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
setup(m) {
|
|
35
|
+
const l = m, n = w(() => import("./MazSpinner-Bad2n-0k.mjs")), d = w(() => import("./MazIcon-BDGxCy9M.mjs")), { href: s, to: M } = ne(), k = j();
|
|
36
|
+
oe(() => {
|
|
37
|
+
l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
31
38
|
});
|
|
32
|
-
const
|
|
33
|
-
() =>
|
|
34
|
-
),
|
|
35
|
-
() => (
|
|
36
|
-
),
|
|
37
|
-
return (
|
|
38
|
-
disabled:
|
|
39
|
-
class:
|
|
40
|
-
`--${
|
|
41
|
-
!
|
|
39
|
+
const I = r(() => s ? "a" : M ? "router-link" : "button"), B = r(
|
|
40
|
+
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
41
|
+
), b = r(
|
|
42
|
+
() => (l.loading || l.disabled) && I.value === "button"
|
|
43
|
+
), y = r(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = r(() => `--is-${l.variant}`), h = r(() => l.loading && l.variant === "button"), o = r(() => !!k["left-icon"] || l.leftIcon), f = r(() => !!k["right-icon"] || l.rightIcon), p = r(() => o.value || f.value), T = r(() => l.fab && (l.icon || !!k.icon)), F = r(() => I.value === "button" ? l.type : void 0);
|
|
44
|
+
return (t, U) => (a(), u(V(I.value), {
|
|
45
|
+
disabled: b.value || void 0,
|
|
46
|
+
class: z(["m-btn", [
|
|
47
|
+
`--${t.size}`,
|
|
48
|
+
!t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
|
|
49
|
+
B.value,
|
|
42
50
|
y.value,
|
|
43
|
-
|
|
44
|
-
w.value,
|
|
51
|
+
$.value,
|
|
45
52
|
{
|
|
46
|
-
"--block":
|
|
47
|
-
"--no-underline":
|
|
48
|
-
"--fab":
|
|
49
|
-
"--loading":
|
|
50
|
-
"--disabled":
|
|
51
|
-
"--icon":
|
|
52
|
-
"--rounded":
|
|
53
|
-
"--no-rounded":
|
|
54
|
-
"--no-padding":
|
|
55
|
-
"--no-elevation":
|
|
53
|
+
"--block": t.block,
|
|
54
|
+
"--no-underline": t.noUnderline,
|
|
55
|
+
"--fab": t.fab,
|
|
56
|
+
"--loading": t.loading,
|
|
57
|
+
"--disabled": b.value,
|
|
58
|
+
"--icon": p.value,
|
|
59
|
+
"--rounded": t.rounded,
|
|
60
|
+
"--no-rounded": t.noRounded,
|
|
61
|
+
"--no-padding": t.noPadding,
|
|
62
|
+
"--no-elevation": t.noElevation
|
|
56
63
|
}
|
|
57
64
|
]]),
|
|
58
65
|
type: F.value
|
|
59
66
|
}, {
|
|
60
67
|
default: P(() => [
|
|
61
|
-
o.value ? (a(),
|
|
68
|
+
o.value ? (a(), v(
|
|
62
69
|
"div",
|
|
63
70
|
{
|
|
64
71
|
key: 0,
|
|
65
|
-
class:
|
|
72
|
+
class: z(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": h.value }])
|
|
66
73
|
},
|
|
67
74
|
[
|
|
68
75
|
i(`
|
|
69
76
|
@slot left-icon - The icon to display on the left of the button
|
|
70
77
|
`),
|
|
71
|
-
|
|
72
|
-
typeof
|
|
78
|
+
C(t.$slots, "left-icon", {}, () => [
|
|
79
|
+
typeof t.leftIcon == "string" ? (a(), u(c(d), {
|
|
73
80
|
key: 0,
|
|
74
|
-
name:
|
|
75
|
-
}, null, 8, ["name"])) :
|
|
81
|
+
name: t.leftIcon
|
|
82
|
+
}, null, 8, ["name"])) : t.leftIcon ? (a(), u(V(t.leftIcon), { key: 1 })) : i("v-if", !0)
|
|
76
83
|
], !0)
|
|
77
84
|
],
|
|
78
85
|
2
|
|
79
86
|
/* CLASS */
|
|
80
87
|
)) : i("v-if", !0),
|
|
81
|
-
T.value ? (a(),
|
|
88
|
+
T.value ? (a(), v(
|
|
82
89
|
"div",
|
|
83
90
|
{
|
|
84
91
|
key: 1,
|
|
85
|
-
class:
|
|
92
|
+
class: z(["m-btn__icon", { "maz-invisible": h.value }])
|
|
86
93
|
},
|
|
87
94
|
[
|
|
88
95
|
i(`
|
|
89
96
|
@slot icon - The icon to display on the fab button
|
|
90
97
|
`),
|
|
91
|
-
|
|
92
|
-
typeof
|
|
98
|
+
C(t.$slots, "icon", {}, () => [
|
|
99
|
+
typeof t.icon == "string" ? (a(), u(c(d), {
|
|
93
100
|
key: 0,
|
|
94
|
-
name:
|
|
95
|
-
}, null, 8, ["name"])) :
|
|
101
|
+
name: t.icon
|
|
102
|
+
}, null, 8, ["name"])) : t.icon ? (a(), u(V(t.icon), { key: 1 })) : i("v-if", !0)
|
|
96
103
|
], !0)
|
|
97
104
|
],
|
|
98
105
|
2
|
|
99
106
|
/* CLASS */
|
|
100
107
|
)) : i("v-if", !0),
|
|
101
|
-
|
|
108
|
+
t.$slots.default ? (a(), v(
|
|
102
109
|
"span",
|
|
103
110
|
{
|
|
104
111
|
key: 2,
|
|
105
|
-
class:
|
|
112
|
+
class: z([{ "maz-invisible": h.value }, t.contentClass])
|
|
106
113
|
},
|
|
107
114
|
[
|
|
108
115
|
i(`
|
|
109
116
|
@slot default - The content of the button
|
|
110
117
|
`),
|
|
111
|
-
|
|
118
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
112
119
|
],
|
|
113
120
|
2
|
|
114
121
|
/* CLASS */
|
|
115
122
|
)) : i("v-if", !0),
|
|
116
|
-
|
|
123
|
+
f.value ? (a(), v(
|
|
117
124
|
"div",
|
|
118
125
|
{
|
|
119
126
|
key: 3,
|
|
120
|
-
class:
|
|
127
|
+
class: z(["m-btn__icon-right", { "maz-invisible": h.value }])
|
|
121
128
|
},
|
|
122
129
|
[
|
|
123
130
|
i(`
|
|
124
131
|
@slot right-icon - The icon to display on the right of the button
|
|
125
132
|
`),
|
|
126
|
-
|
|
127
|
-
typeof
|
|
133
|
+
C(t.$slots, "right-icon", {}, () => [
|
|
134
|
+
typeof t.rightIcon == "string" ? (a(), u(c(d), {
|
|
128
135
|
key: 0,
|
|
129
|
-
name:
|
|
130
|
-
}, null, 8, ["name"])) :
|
|
136
|
+
name: t.rightIcon
|
|
137
|
+
}, null, 8, ["name"])) : t.rightIcon ? (a(), u(V(t.rightIcon), { key: 1 })) : i("v-if", !0)
|
|
131
138
|
], !0)
|
|
132
139
|
],
|
|
133
140
|
2
|
|
134
141
|
/* CLASS */
|
|
135
142
|
)) : i("v-if", !0),
|
|
136
|
-
|
|
143
|
+
h.value ? (a(), u(c(n), {
|
|
137
144
|
key: 4,
|
|
138
145
|
class: "m-btn-loader",
|
|
139
146
|
size: "2em",
|
|
140
|
-
color:
|
|
147
|
+
color: t.color
|
|
141
148
|
}, null, 8, ["color"])) : i("v-if", !0)
|
|
142
149
|
]),
|
|
143
150
|
_: 3
|
|
144
151
|
/* FORWARDED */
|
|
145
152
|
}, 8, ["disabled", "class", "type"]));
|
|
146
153
|
}
|
|
147
|
-
}),
|
|
148
|
-
const n =
|
|
149
|
-
for (const [
|
|
150
|
-
n[
|
|
154
|
+
}), H = (m, l) => {
|
|
155
|
+
const n = m.__vccOpts || m;
|
|
156
|
+
for (const [d, s] of l)
|
|
157
|
+
n[d] = s;
|
|
151
158
|
return n;
|
|
152
|
-
}, R = /* @__PURE__ */
|
|
159
|
+
}, R = /* @__PURE__ */ H(de, [["__scopeId", "data-v-48f14785"]]), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
160
|
__proto__: null,
|
|
154
161
|
default: R
|
|
155
162
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
clearTimeout(n), n = setTimeout(() => {
|
|
160
|
-
f.apply(this, g);
|
|
161
|
-
}, p);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function me({
|
|
165
|
-
componentName: f,
|
|
166
|
-
providedId: p
|
|
163
|
+
function ce({
|
|
164
|
+
componentName: m,
|
|
165
|
+
providedId: l
|
|
167
166
|
}) {
|
|
168
167
|
const n = te();
|
|
169
|
-
return
|
|
168
|
+
return r(() => l ?? `${m}-${n == null ? void 0 : n.uid}`);
|
|
170
169
|
}
|
|
171
|
-
const
|
|
170
|
+
const me = {
|
|
172
171
|
key: 0,
|
|
173
172
|
class: "m-input-wrapper-left"
|
|
174
173
|
}, pe = { class: "m-input-wrapper-input" }, ve = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], be = { key: 0 }, ye = {
|
|
@@ -211,81 +210,83 @@ const fe = {
|
|
|
211
210
|
block: { type: Boolean }
|
|
212
211
|
},
|
|
213
212
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
214
|
-
setup(
|
|
215
|
-
const n =
|
|
213
|
+
setup(m, { emit: l }) {
|
|
214
|
+
const n = m, d = l, s = w(() => Promise.resolve().then(() => fe)), M = w(() => import("./MazIcon-BDGxCy9M.mjs")), k = w(() => import("./eye-slash-tjfxO0LK.mjs")), I = w(() => import("./eye-DqO_Jx56.mjs")), B = w(() => import("./check-CL-vqe79.mjs")), b = A(!1), y = A(!1), $ = A(), h = ce({
|
|
216
215
|
componentName: "MazInput",
|
|
217
|
-
providedId:
|
|
216
|
+
providedId: n.id
|
|
218
217
|
});
|
|
219
218
|
le(() => {
|
|
220
219
|
var e;
|
|
221
|
-
|
|
220
|
+
n.autoFocus && ((e = $.value) == null || e.focus());
|
|
222
221
|
});
|
|
223
|
-
const o =
|
|
224
|
-
if (!
|
|
225
|
-
if (
|
|
222
|
+
const o = r(() => n.type === "password"), f = r(() => b.value ? "text" : n.type), p = r(() => {
|
|
223
|
+
if (!n.noBorder) {
|
|
224
|
+
if (n.error)
|
|
226
225
|
return "maz-border-danger";
|
|
227
|
-
if (
|
|
226
|
+
if (n.success)
|
|
228
227
|
return "maz-border-success";
|
|
229
|
-
if (
|
|
228
|
+
if (n.warning)
|
|
230
229
|
return "maz-border-warning";
|
|
231
|
-
if (
|
|
232
|
-
if (
|
|
230
|
+
if (y.value || n.borderActive) {
|
|
231
|
+
if (n.color === "black")
|
|
233
232
|
return "maz-border-black";
|
|
234
|
-
if (
|
|
233
|
+
if (n.color === "danger")
|
|
235
234
|
return "maz-border-danger";
|
|
236
|
-
if (
|
|
235
|
+
if (n.color === "info")
|
|
237
236
|
return "maz-border-info";
|
|
238
|
-
if (
|
|
237
|
+
if (n.color === "primary")
|
|
239
238
|
return "maz-border-primary";
|
|
240
|
-
if (
|
|
239
|
+
if (n.color === "secondary")
|
|
241
240
|
return "maz-border-secondary";
|
|
242
|
-
if (
|
|
241
|
+
if (n.color === "success")
|
|
243
242
|
return "maz-border-success";
|
|
244
|
-
if (
|
|
243
|
+
if (n.color === "warning")
|
|
245
244
|
return "maz-border-warning";
|
|
246
|
-
if (
|
|
245
|
+
if (n.color === "white")
|
|
247
246
|
return "maz-border-white";
|
|
248
247
|
}
|
|
249
248
|
return "--default-border";
|
|
250
249
|
}
|
|
251
|
-
}), T = j(), F =
|
|
252
|
-
const { required: e, placeholder:
|
|
253
|
-
if (
|
|
254
|
-
return e ? `${
|
|
255
|
-
}),
|
|
250
|
+
}), T = j(), F = r(() => {
|
|
251
|
+
const { required: e, placeholder: g } = n;
|
|
252
|
+
if (g)
|
|
253
|
+
return e ? `${g} *` : g;
|
|
254
|
+
}), t = r(() => D.value !== void 0 && D.value !== ""), U = G(
|
|
256
255
|
(e) => {
|
|
257
|
-
|
|
256
|
+
d("update:model-value", e);
|
|
258
257
|
},
|
|
259
|
-
typeof
|
|
260
|
-
)
|
|
261
|
-
|
|
258
|
+
typeof n.debounce == "number" ? n.debounce : n.debounceDelay ?? 500
|
|
259
|
+
);
|
|
260
|
+
function J(e) {
|
|
261
|
+
if (n.debounce)
|
|
262
262
|
return U(e);
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
|
|
263
|
+
d("update:model-value", e);
|
|
264
|
+
}
|
|
265
|
+
const D = r({
|
|
266
|
+
get: () => n.modelValue,
|
|
266
267
|
set: (e) => J(e)
|
|
267
|
-
}), Q =
|
|
268
|
+
}), Q = r(() => (!!n.label || !!n.hint) && (y.value || !!t.value || !!n.placeholder || ["date", "month", "week"].includes(n.type))), W = r(() => !!n.label || !!n.hint);
|
|
268
269
|
function X() {
|
|
269
|
-
return !!T["right-icon"] || o.value || !!T["valid-button"] ||
|
|
270
|
+
return !!T["right-icon"] || o.value || !!T["valid-button"] || n.validButton || !!n.rightIcon;
|
|
270
271
|
}
|
|
271
272
|
function Z() {
|
|
272
|
-
return !!T["left-icon"] || !!
|
|
273
|
+
return !!T["left-icon"] || !!n.leftIcon;
|
|
273
274
|
}
|
|
274
275
|
function _(e) {
|
|
275
|
-
|
|
276
|
+
d("focus", e), y.value = !0;
|
|
276
277
|
}
|
|
277
278
|
function x(e) {
|
|
278
|
-
|
|
279
|
+
d("blur", e), y.value = !1;
|
|
279
280
|
}
|
|
280
281
|
function ee(e) {
|
|
281
|
-
return
|
|
282
|
+
return d("change", e);
|
|
282
283
|
}
|
|
283
|
-
return (e,
|
|
284
|
+
return (e, g) => (a(), v(
|
|
284
285
|
"div",
|
|
285
286
|
{
|
|
286
|
-
class:
|
|
287
|
+
class: z(["m-input", [
|
|
287
288
|
{
|
|
288
|
-
"--is-focused":
|
|
289
|
+
"--is-focused": y.value || e.borderActive,
|
|
289
290
|
"--should-up": Q.value,
|
|
290
291
|
"--has-label": W.value,
|
|
291
292
|
"--is-disabled": e.disabled,
|
|
@@ -294,7 +295,7 @@ const fe = {
|
|
|
294
295
|
"--has-state": e.error || e.warning || e.success,
|
|
295
296
|
"--block": e.block
|
|
296
297
|
},
|
|
297
|
-
|
|
298
|
+
n.class,
|
|
298
299
|
`--${e.color}`,
|
|
299
300
|
`--${e.size}`
|
|
300
301
|
]]),
|
|
@@ -304,23 +305,23 @@ const fe = {
|
|
|
304
305
|
N(
|
|
305
306
|
"div",
|
|
306
307
|
{
|
|
307
|
-
class:
|
|
308
|
+
class: z(["m-input-wrapper", [
|
|
308
309
|
e.inputClasses,
|
|
309
|
-
|
|
310
|
+
p.value,
|
|
310
311
|
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
|
|
311
312
|
]])
|
|
312
313
|
},
|
|
313
314
|
[
|
|
314
|
-
Z() ? (a(),
|
|
315
|
+
Z() ? (a(), v("div", me, [
|
|
315
316
|
i(`
|
|
316
317
|
@slot left-icon - The icon to display on the left of the input
|
|
317
318
|
`),
|
|
318
|
-
e.$slots["left-icon"] || e.leftIcon ?
|
|
319
|
-
typeof e.leftIcon == "string" ? (a(),
|
|
319
|
+
e.$slots["left-icon"] || e.leftIcon ? C(e.$slots, "left-icon", { key: 0 }, () => [
|
|
320
|
+
typeof e.leftIcon == "string" ? (a(), u(c(M), {
|
|
320
321
|
key: 0,
|
|
321
322
|
name: e.leftIcon,
|
|
322
323
|
class: "maz-text-xl maz-text-muted"
|
|
323
|
-
}, null, 8, ["name"])) : e.leftIcon ? (a(),
|
|
324
|
+
}, null, 8, ["name"])) : e.leftIcon ? (a(), u(V(e.leftIcon), {
|
|
324
325
|
key: 1,
|
|
325
326
|
class: "maz-text-xl maz-text-muted"
|
|
326
327
|
})) : i("v-if", !0)
|
|
@@ -328,11 +329,11 @@ const fe = {
|
|
|
328
329
|
])) : i("v-if", !0),
|
|
329
330
|
N("div", pe, [
|
|
330
331
|
ae(N("input", Y({
|
|
331
|
-
id:
|
|
332
|
+
id: c(h),
|
|
332
333
|
ref_key: "input",
|
|
333
|
-
ref:
|
|
334
|
-
"onUpdate:modelValue":
|
|
335
|
-
type:
|
|
334
|
+
ref: $,
|
|
335
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => D.value = E),
|
|
336
|
+
type: f.value,
|
|
336
337
|
name: e.name
|
|
337
338
|
}, e.$attrs, {
|
|
338
339
|
inputmode: e.inputmode,
|
|
@@ -347,16 +348,15 @@ const fe = {
|
|
|
347
348
|
focus: _,
|
|
348
349
|
change: ee
|
|
349
350
|
}, !0), {
|
|
350
|
-
onClick:
|
|
351
|
+
onClick: g[1] || (g[1] = (E) => e.$emit("click", E))
|
|
351
352
|
}), null, 16, ve), [
|
|
352
|
-
[
|
|
353
|
+
[re, D.value]
|
|
353
354
|
]),
|
|
354
|
-
e.label || e.hint ? (a(),
|
|
355
|
+
e.label || e.hint ? (a(), v(
|
|
355
356
|
"span",
|
|
356
357
|
{
|
|
357
358
|
key: 0,
|
|
358
|
-
|
|
359
|
-
class: B(["m-input-label", [
|
|
359
|
+
class: z(["m-input-label", [
|
|
360
360
|
{
|
|
361
361
|
"maz-text-danger-600": e.error,
|
|
362
362
|
"maz-text-success-600": e.success,
|
|
@@ -365,43 +365,43 @@ const fe = {
|
|
|
365
365
|
]])
|
|
366
366
|
},
|
|
367
367
|
[
|
|
368
|
-
|
|
368
|
+
se(
|
|
369
369
|
ue(e.hint || e.label) + " ",
|
|
370
370
|
1
|
|
371
371
|
/* TEXT */
|
|
372
372
|
),
|
|
373
|
-
e.required ? (a(),
|
|
373
|
+
e.required ? (a(), v("sup", be, "*")) : i("v-if", !0)
|
|
374
374
|
],
|
|
375
375
|
2
|
|
376
376
|
/* CLASS */
|
|
377
377
|
)) : i("v-if", !0)
|
|
378
378
|
]),
|
|
379
|
-
X() ? (a(),
|
|
379
|
+
X() ? (a(), v("div", ye, [
|
|
380
380
|
i(`
|
|
381
381
|
@slot right-icon - The icon to display on the right of the input
|
|
382
382
|
`),
|
|
383
|
-
e.$slots["right-icon"] || e.rightIcon ?
|
|
384
|
-
typeof e.rightIcon == "string" ? (a(),
|
|
383
|
+
e.$slots["right-icon"] || e.rightIcon ? C(e.$slots, "right-icon", { key: 0 }, () => [
|
|
384
|
+
typeof e.rightIcon == "string" ? (a(), u(c(M), {
|
|
385
385
|
key: 0,
|
|
386
386
|
name: e.rightIcon,
|
|
387
387
|
class: "maz-text-xl maz-text-muted"
|
|
388
|
-
}, null, 8, ["name"])) : e.rightIcon ? (a(),
|
|
388
|
+
}, null, 8, ["name"])) : e.rightIcon ? (a(), u(V(e.rightIcon), {
|
|
389
389
|
key: 1,
|
|
390
390
|
class: "maz-text-xl maz-text-muted"
|
|
391
391
|
})) : i("v-if", !0)
|
|
392
392
|
], !0) : i("v-if", !0),
|
|
393
|
-
o.value ? (a(),
|
|
393
|
+
o.value ? (a(), u(c(s), {
|
|
394
394
|
key: 1,
|
|
395
395
|
color: "transparent",
|
|
396
396
|
tabindex: "-1",
|
|
397
397
|
size: "mini",
|
|
398
|
-
onClick:
|
|
398
|
+
onClick: g[2] || (g[2] = q((E) => b.value = !b.value, ["stop"]))
|
|
399
399
|
}, {
|
|
400
400
|
default: P(() => [
|
|
401
|
-
|
|
401
|
+
b.value ? (a(), u(c(k), {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "maz-text-xl maz-text-muted"
|
|
404
|
-
})) : (a(),
|
|
404
|
+
})) : (a(), u(c(I), {
|
|
405
405
|
key: 1,
|
|
406
406
|
class: "maz-text-xl maz-text-muted"
|
|
407
407
|
}))
|
|
@@ -412,8 +412,8 @@ const fe = {
|
|
|
412
412
|
i(`
|
|
413
413
|
@slot valid-button - Replace the valid button by your own
|
|
414
414
|
`),
|
|
415
|
-
e.$slots["valid-button"] || e.validButton ?
|
|
416
|
-
S(
|
|
415
|
+
e.$slots["valid-button"] || e.validButton ? C(e.$slots, "valid-button", { key: 2 }, () => [
|
|
416
|
+
S(c(s), {
|
|
417
417
|
color: "transparent",
|
|
418
418
|
disabled: e.disabled,
|
|
419
419
|
tabindex: "-1",
|
|
@@ -423,7 +423,7 @@ const fe = {
|
|
|
423
423
|
type: "submit"
|
|
424
424
|
}, {
|
|
425
425
|
default: P(() => [
|
|
426
|
-
S(
|
|
426
|
+
S(c(B), { class: "maz-text-2xl maz-text-normal" })
|
|
427
427
|
]),
|
|
428
428
|
_: 1
|
|
429
429
|
/* STABLE */
|
|
@@ -439,7 +439,7 @@ const fe = {
|
|
|
439
439
|
/* CLASS, STYLE */
|
|
440
440
|
));
|
|
441
441
|
}
|
|
442
|
-
}), ge = /* @__PURE__ */
|
|
442
|
+
}), ge = /* @__PURE__ */ H(he, [["__scopeId", "data-v-e9affc48"]]), ze = {
|
|
443
443
|
xmlns: "http://www.w3.org/2000/svg",
|
|
444
444
|
width: "1em",
|
|
445
445
|
height: "1em",
|
|
@@ -460,8 +460,8 @@ const fe = {
|
|
|
460
460
|
), Ie = [
|
|
461
461
|
ke
|
|
462
462
|
];
|
|
463
|
-
function Be(
|
|
464
|
-
return a(),
|
|
463
|
+
function Be(m, l) {
|
|
464
|
+
return a(), v("svg", ze, [...Ie]);
|
|
465
465
|
}
|
|
466
466
|
const $e = { render: Be }, we = {
|
|
467
467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -484,8 +484,8 @@ const $e = { render: Be }, we = {
|
|
|
484
484
|
), Me = [
|
|
485
485
|
Ce
|
|
486
486
|
];
|
|
487
|
-
function Ve(
|
|
488
|
-
return a(),
|
|
487
|
+
function Ve(m, l) {
|
|
488
|
+
return a(), v("svg", we, [...Me]);
|
|
489
489
|
}
|
|
490
490
|
const Te = { render: Ve }, Se = /* @__PURE__ */ L({
|
|
491
491
|
inheritAttrs: !1,
|
|
@@ -505,62 +505,66 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
|
|
|
505
505
|
block: { type: Boolean }
|
|
506
506
|
},
|
|
507
507
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
508
|
-
setup(
|
|
509
|
-
const n =
|
|
508
|
+
setup(m, { emit: l }) {
|
|
509
|
+
const n = m, d = l, s = r({
|
|
510
510
|
get: () => n.modelValue,
|
|
511
|
-
set: (o) =>
|
|
511
|
+
set: (o) => B(o)
|
|
512
512
|
});
|
|
513
|
-
function
|
|
513
|
+
function M(o) {
|
|
514
514
|
return Math.round(o / n.step) * n.step;
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
function k(o) {
|
|
517
517
|
if (typeof o == "number")
|
|
518
|
-
return o <= n.min ? n.min : o >= n.max ? n.max :
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
518
|
+
return o <= n.min ? n.min : o >= n.max ? n.max : M(o);
|
|
519
|
+
}
|
|
520
|
+
const I = G((o) => B(o), 300);
|
|
521
|
+
function B(o) {
|
|
522
|
+
o = k(o), s.value !== o && d("update:model-value", o);
|
|
523
|
+
}
|
|
524
|
+
B(s.value);
|
|
525
|
+
const b = r(() => n.modelValue && n.modelValue >= n.max), y = r(() => n.modelValue && n.modelValue <= n.min);
|
|
526
|
+
function $() {
|
|
527
|
+
if (!(n.disabled || b.value)) {
|
|
528
|
+
if ((s.value === void 0 || s.value === null) && Number.isFinite(n.min)) {
|
|
529
|
+
s.value = n.min;
|
|
527
530
|
return;
|
|
528
531
|
}
|
|
529
|
-
|
|
532
|
+
s.value = (s.value ?? 0) + 1 * n.step;
|
|
530
533
|
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
534
|
+
}
|
|
535
|
+
function h() {
|
|
536
|
+
if (!(n.disabled || y.value)) {
|
|
537
|
+
if ((s.value === void 0 || s.value === null) && Number.isFinite(n.min)) {
|
|
538
|
+
s.value = n.min;
|
|
535
539
|
return;
|
|
536
540
|
}
|
|
537
|
-
|
|
541
|
+
s.value = (s.value ?? 0) - 1 * n.step;
|
|
538
542
|
}
|
|
539
|
-
}
|
|
540
|
-
return (o,
|
|
543
|
+
}
|
|
544
|
+
return (o, f) => (a(), v(
|
|
541
545
|
"div",
|
|
542
546
|
{
|
|
543
|
-
class:
|
|
547
|
+
class: z(["m-input-number", [`m-input-number--${o.size}`, n.class, { "--block": o.block }]]),
|
|
544
548
|
style: K(o.style)
|
|
545
549
|
},
|
|
546
550
|
[
|
|
547
|
-
o.noButtons ? i("v-if", !0) : (a(),
|
|
551
|
+
o.noButtons ? i("v-if", !0) : (a(), u(R, {
|
|
548
552
|
key: 0,
|
|
549
553
|
color: "transparent",
|
|
550
554
|
size: o.size,
|
|
551
555
|
tabindex: "-1",
|
|
552
556
|
class: "m-input-number__button m-input-number__decrement-button",
|
|
553
|
-
disabled:
|
|
554
|
-
onClick:
|
|
557
|
+
disabled: y.value || o.disabled,
|
|
558
|
+
onClick: h
|
|
555
559
|
}, {
|
|
556
560
|
default: P(() => [
|
|
557
|
-
S(
|
|
561
|
+
S(c(Te), { class: "m-input-number__button__icon" })
|
|
558
562
|
]),
|
|
559
563
|
_: 1
|
|
560
564
|
/* STABLE */
|
|
561
565
|
}, 8, ["size", "disabled"])),
|
|
562
566
|
S(ge, Y({
|
|
563
|
-
"model-value":
|
|
567
|
+
"model-value": s.value,
|
|
564
568
|
type: "number",
|
|
565
569
|
class: ["m-input-number__input", { "--no-buttons": o.noButtons, "--text-center": o.textCenter }],
|
|
566
570
|
disabled: o.disabled,
|
|
@@ -572,27 +576,27 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
|
|
|
572
576
|
size: o.size,
|
|
573
577
|
block: "",
|
|
574
578
|
onKeydown: [
|
|
575
|
-
O(q(
|
|
576
|
-
O(q(
|
|
579
|
+
O(q($, ["prevent"]), ["up"]),
|
|
580
|
+
O(q(h, ["prevent"]), ["down"])
|
|
577
581
|
],
|
|
578
|
-
onFocus:
|
|
579
|
-
onChange:
|
|
580
|
-
onBlur:
|
|
581
|
-
onClick:
|
|
582
|
-
"onUpdate:modelValue":
|
|
582
|
+
onFocus: f[0] || (f[0] = (p) => o.$emit("focus", p)),
|
|
583
|
+
onChange: f[1] || (f[1] = (p) => o.$emit("change", p)),
|
|
584
|
+
onBlur: f[2] || (f[2] = (p) => o.$emit("blur", p)),
|
|
585
|
+
onClick: f[3] || (f[3] = (p) => o.$emit("click", p)),
|
|
586
|
+
"onUpdate:modelValue": f[4] || (f[4] = (p) => c(I)(p))
|
|
583
587
|
}), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "inputmode", "size", "onKeydown"]),
|
|
584
|
-
o.noButtons ? i("v-if", !0) : (a(),
|
|
588
|
+
o.noButtons ? i("v-if", !0) : (a(), u(R, {
|
|
585
589
|
key: 1,
|
|
586
590
|
color: "transparent",
|
|
587
591
|
"no-shadow": "",
|
|
588
592
|
tabindex: "-1",
|
|
589
593
|
size: o.size,
|
|
590
594
|
class: "m-input-number__button m-input-number__increment-button",
|
|
591
|
-
disabled:
|
|
592
|
-
onClick:
|
|
595
|
+
disabled: b.value || o.disabled,
|
|
596
|
+
onClick: $
|
|
593
597
|
}, {
|
|
594
598
|
default: P(() => [
|
|
595
|
-
S(
|
|
599
|
+
S(c($e), { class: "m-input-number__button__icon" })
|
|
596
600
|
]),
|
|
597
601
|
_: 1
|
|
598
602
|
/* STABLE */
|
|
@@ -604,6 +608,6 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
|
|
|
604
608
|
}
|
|
605
609
|
});
|
|
606
610
|
export {
|
|
607
|
-
|
|
611
|
+
H as _,
|
|
608
612
|
Se as a
|
|
609
613
|
};
|