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,27 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
let n;
|
|
5
|
-
return function(...h) {
|
|
6
|
-
clearTimeout(n), n = setTimeout(() => {
|
|
7
|
-
f.apply(this, h);
|
|
8
|
-
}, y);
|
|
9
|
-
};
|
|
1
|
+
import { getCurrentInstance as ne, computed as u, defineComponent as N, defineAsyncComponent as V, ref as C, onMounted as ae, useSlots as H, openBlock as a, createElementBlock as y, normalizeClass as w, normalizeStyle as K, createElementVNode as E, createCommentVNode as r, renderSlot as S, createBlock as f, unref as b, resolveDynamicComponent as D, withDirectives as le, mergeProps as G, toHandlers as re, vModelDynamic as ie, createTextVNode as J, toDisplayString as Q, withModifiers as W, withCtx as F, createVNode as P, useAttrs as se, onBeforeMount as ue, TransitionGroup as de, Fragment as ce, renderList as fe, withKeys as U } from "vue";
|
|
2
|
+
import '../assets/MazInputTags.css';function j(p) {
|
|
3
|
+
return !!p;
|
|
10
4
|
}
|
|
11
|
-
function
|
|
12
|
-
componentName:
|
|
13
|
-
providedId:
|
|
5
|
+
function pe({
|
|
6
|
+
componentName: p,
|
|
7
|
+
providedId: l
|
|
14
8
|
}) {
|
|
15
|
-
const
|
|
16
|
-
return u(() =>
|
|
9
|
+
const o = ne();
|
|
10
|
+
return u(() => l ?? `${p}-${o == null ? void 0 : o.uid}`);
|
|
11
|
+
}
|
|
12
|
+
function me(p, l) {
|
|
13
|
+
let o;
|
|
14
|
+
return function(...c) {
|
|
15
|
+
clearTimeout(o), o = setTimeout(() => {
|
|
16
|
+
p.apply(this, c);
|
|
17
|
+
}, l);
|
|
18
|
+
};
|
|
17
19
|
}
|
|
18
|
-
const
|
|
20
|
+
const ve = {
|
|
19
21
|
key: 0,
|
|
20
22
|
class: "m-input-wrapper-left"
|
|
21
|
-
},
|
|
23
|
+
}, be = { class: "m-input-wrapper-input" }, ye = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], ge = { key: 0 }, he = {
|
|
22
24
|
key: 1,
|
|
23
25
|
class: "m-input-wrapper-right"
|
|
24
|
-
},
|
|
26
|
+
}, ze = /* @__PURE__ */ N({
|
|
25
27
|
inheritAttrs: !1,
|
|
26
28
|
__name: "MazInput",
|
|
27
29
|
props: {
|
|
@@ -58,16 +60,16 @@ const ye = {
|
|
|
58
60
|
block: { type: Boolean }
|
|
59
61
|
},
|
|
60
62
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
61
|
-
setup(
|
|
62
|
-
const
|
|
63
|
+
setup(p, { emit: l }) {
|
|
64
|
+
const o = p, c = l, z = V(() => Promise.resolve().then(() => Ie)), h = V(() => import("./MazIcon-BDGxCy9M.mjs")), g = V(() => import("./eye-slash-tjfxO0LK.mjs")), v = V(() => import("./eye-DqO_Jx56.mjs")), M = V(() => import("./check-CL-vqe79.mjs")), m = C(!1), k = C(!1), L = C(), $ = pe({
|
|
63
65
|
componentName: "MazInput",
|
|
64
66
|
providedId: o.id
|
|
65
67
|
});
|
|
66
|
-
|
|
68
|
+
ae(() => {
|
|
67
69
|
var e;
|
|
68
|
-
o.autoFocus && ((e =
|
|
70
|
+
o.autoFocus && ((e = L.value) == null || e.focus());
|
|
69
71
|
});
|
|
70
|
-
const
|
|
72
|
+
const T = u(() => o.type === "password"), n = u(() => m.value ? "text" : o.type), i = u(() => {
|
|
71
73
|
if (!o.noBorder) {
|
|
72
74
|
if (o.error)
|
|
73
75
|
return "maz-border-danger";
|
|
@@ -75,7 +77,7 @@ const ye = {
|
|
|
75
77
|
return "maz-border-success";
|
|
76
78
|
if (o.warning)
|
|
77
79
|
return "maz-border-warning";
|
|
78
|
-
if (
|
|
80
|
+
if (k.value || o.borderActive) {
|
|
79
81
|
if (o.color === "black")
|
|
80
82
|
return "maz-border-black";
|
|
81
83
|
if (o.color === "danger")
|
|
@@ -95,46 +97,48 @@ const ye = {
|
|
|
95
97
|
}
|
|
96
98
|
return "--default-border";
|
|
97
99
|
}
|
|
98
|
-
}),
|
|
99
|
-
const { required: e, placeholder:
|
|
100
|
-
if (
|
|
101
|
-
return e ? `${
|
|
102
|
-
}), t = u(() => A.value !== void 0 && A.value !== ""),
|
|
100
|
+
}), s = H(), d = u(() => {
|
|
101
|
+
const { required: e, placeholder: I } = o;
|
|
102
|
+
if (I)
|
|
103
|
+
return e ? `${I} *` : I;
|
|
104
|
+
}), t = u(() => A.value !== void 0 && A.value !== ""), B = me(
|
|
103
105
|
(e) => {
|
|
104
|
-
|
|
106
|
+
c("update:model-value", e);
|
|
105
107
|
},
|
|
106
108
|
typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
|
|
107
|
-
)
|
|
109
|
+
);
|
|
110
|
+
function R(e) {
|
|
108
111
|
if (o.debounce)
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
+
return B(e);
|
|
113
|
+
c("update:model-value", e);
|
|
114
|
+
}
|
|
115
|
+
const A = u({
|
|
112
116
|
get: () => o.modelValue,
|
|
113
117
|
set: (e) => R(e)
|
|
114
|
-
}),
|
|
118
|
+
}), Y = u(() => (!!o.label || !!o.hint) && (k.value || !!t.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Z = u(() => !!o.label || !!o.hint);
|
|
119
|
+
function _() {
|
|
120
|
+
return !!s["right-icon"] || T.value || !!s["valid-button"] || o.validButton || !!o.rightIcon;
|
|
121
|
+
}
|
|
115
122
|
function x() {
|
|
116
|
-
return !!
|
|
123
|
+
return !!s["left-icon"] || !!o.leftIcon;
|
|
117
124
|
}
|
|
118
|
-
function ee() {
|
|
119
|
-
|
|
125
|
+
function ee(e) {
|
|
126
|
+
c("focus", e), k.value = !0;
|
|
120
127
|
}
|
|
121
128
|
function oe(e) {
|
|
122
|
-
|
|
129
|
+
c("blur", e), k.value = !1;
|
|
123
130
|
}
|
|
124
131
|
function te(e) {
|
|
125
|
-
|
|
132
|
+
return c("change", e);
|
|
126
133
|
}
|
|
127
|
-
|
|
128
|
-
return k("change", e);
|
|
129
|
-
}
|
|
130
|
-
return (e, B) => (r(), b(
|
|
134
|
+
return (e, I) => (a(), y(
|
|
131
135
|
"div",
|
|
132
136
|
{
|
|
133
|
-
class:
|
|
137
|
+
class: w(["m-input", [
|
|
134
138
|
{
|
|
135
|
-
"--is-focused":
|
|
136
|
-
"--should-up":
|
|
137
|
-
"--has-label":
|
|
139
|
+
"--is-focused": k.value || e.borderActive,
|
|
140
|
+
"--should-up": Y.value,
|
|
141
|
+
"--has-label": Z.value,
|
|
138
142
|
"--is-disabled": e.disabled,
|
|
139
143
|
"--is-readonly": e.readonly,
|
|
140
144
|
"--has-z-2": e.error || e.warning || e.success,
|
|
@@ -151,59 +155,58 @@ const ye = {
|
|
|
151
155
|
E(
|
|
152
156
|
"div",
|
|
153
157
|
{
|
|
154
|
-
class:
|
|
158
|
+
class: w(["m-input-wrapper", [
|
|
155
159
|
e.inputClasses,
|
|
156
160
|
i.value,
|
|
157
161
|
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
|
|
158
162
|
]])
|
|
159
163
|
},
|
|
160
164
|
[
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
x() ? (a(), y("div", ve, [
|
|
166
|
+
r(`
|
|
163
167
|
@slot left-icon - The icon to display on the left of the input
|
|
164
168
|
`),
|
|
165
|
-
e.$slots["left-icon"] || e.leftIcon ?
|
|
166
|
-
typeof e.leftIcon == "string" ? (
|
|
169
|
+
e.$slots["left-icon"] || e.leftIcon ? S(e.$slots, "left-icon", { key: 0 }, () => [
|
|
170
|
+
typeof e.leftIcon == "string" ? (a(), f(b(h), {
|
|
167
171
|
key: 0,
|
|
168
172
|
name: e.leftIcon,
|
|
169
173
|
class: "maz-text-xl maz-text-muted"
|
|
170
|
-
}, null, 8, ["name"])) : e.leftIcon ? (
|
|
174
|
+
}, null, 8, ["name"])) : e.leftIcon ? (a(), f(D(e.leftIcon), {
|
|
171
175
|
key: 1,
|
|
172
176
|
class: "maz-text-xl maz-text-muted"
|
|
173
|
-
})) :
|
|
174
|
-
], !0) :
|
|
175
|
-
])) :
|
|
176
|
-
E("div",
|
|
177
|
-
|
|
178
|
-
id:
|
|
177
|
+
})) : r("v-if", !0)
|
|
178
|
+
], !0) : r("v-if", !0)
|
|
179
|
+
])) : r("v-if", !0),
|
|
180
|
+
E("div", be, [
|
|
181
|
+
le(E("input", G({
|
|
182
|
+
id: b($),
|
|
179
183
|
ref_key: "input",
|
|
180
|
-
ref:
|
|
181
|
-
"onUpdate:modelValue":
|
|
182
|
-
type:
|
|
184
|
+
ref: L,
|
|
185
|
+
"onUpdate:modelValue": I[0] || (I[0] = (q) => A.value = q),
|
|
186
|
+
type: n.value,
|
|
183
187
|
name: e.name
|
|
184
188
|
}, e.$attrs, {
|
|
185
189
|
inputmode: e.inputmode,
|
|
186
|
-
placeholder:
|
|
190
|
+
placeholder: d.value,
|
|
187
191
|
"aria-label": e.label || e.placeholder,
|
|
188
192
|
disabled: e.disabled,
|
|
189
193
|
readonly: e.readonly,
|
|
190
194
|
required: e.required,
|
|
191
195
|
class: "m-input-input"
|
|
192
196
|
}, re({
|
|
193
|
-
blur:
|
|
194
|
-
focus:
|
|
195
|
-
change:
|
|
197
|
+
blur: oe,
|
|
198
|
+
focus: ee,
|
|
199
|
+
change: te
|
|
196
200
|
}, !0), {
|
|
197
|
-
onClick:
|
|
198
|
-
}), null, 16,
|
|
199
|
-
[
|
|
201
|
+
onClick: I[1] || (I[1] = (q) => e.$emit("click", q))
|
|
202
|
+
}), null, 16, ye), [
|
|
203
|
+
[ie, A.value]
|
|
200
204
|
]),
|
|
201
|
-
e.label || e.hint ? (
|
|
205
|
+
e.label || e.hint ? (a(), y(
|
|
202
206
|
"span",
|
|
203
207
|
{
|
|
204
208
|
key: 0,
|
|
205
|
-
|
|
206
|
-
class: T(["m-input-label", [
|
|
209
|
+
class: w(["m-input-label", [
|
|
207
210
|
{
|
|
208
211
|
"maz-text-danger-600": e.error,
|
|
209
212
|
"maz-text-success-600": e.success,
|
|
@@ -217,50 +220,50 @@ const ye = {
|
|
|
217
220
|
1
|
|
218
221
|
/* TEXT */
|
|
219
222
|
),
|
|
220
|
-
e.required ? (
|
|
223
|
+
e.required ? (a(), y("sup", ge, "*")) : r("v-if", !0)
|
|
221
224
|
],
|
|
222
225
|
2
|
|
223
226
|
/* CLASS */
|
|
224
|
-
)) :
|
|
227
|
+
)) : r("v-if", !0)
|
|
225
228
|
]),
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
_() ? (a(), y("div", he, [
|
|
230
|
+
r(`
|
|
228
231
|
@slot right-icon - The icon to display on the right of the input
|
|
229
232
|
`),
|
|
230
|
-
e.$slots["right-icon"] || e.rightIcon ?
|
|
231
|
-
typeof e.rightIcon == "string" ? (
|
|
233
|
+
e.$slots["right-icon"] || e.rightIcon ? S(e.$slots, "right-icon", { key: 0 }, () => [
|
|
234
|
+
typeof e.rightIcon == "string" ? (a(), f(b(h), {
|
|
232
235
|
key: 0,
|
|
233
236
|
name: e.rightIcon,
|
|
234
237
|
class: "maz-text-xl maz-text-muted"
|
|
235
|
-
}, null, 8, ["name"])) : e.rightIcon ? (
|
|
238
|
+
}, null, 8, ["name"])) : e.rightIcon ? (a(), f(D(e.rightIcon), {
|
|
236
239
|
key: 1,
|
|
237
240
|
class: "maz-text-xl maz-text-muted"
|
|
238
|
-
})) :
|
|
239
|
-
], !0) :
|
|
240
|
-
|
|
241
|
+
})) : r("v-if", !0)
|
|
242
|
+
], !0) : r("v-if", !0),
|
|
243
|
+
T.value ? (a(), f(b(z), {
|
|
241
244
|
key: 1,
|
|
242
245
|
color: "transparent",
|
|
243
246
|
tabindex: "-1",
|
|
244
247
|
size: "mini",
|
|
245
|
-
onClick:
|
|
248
|
+
onClick: I[2] || (I[2] = W((q) => m.value = !m.value, ["stop"]))
|
|
246
249
|
}, {
|
|
247
|
-
default:
|
|
248
|
-
m.value ? (
|
|
250
|
+
default: F(() => [
|
|
251
|
+
m.value ? (a(), f(b(g), {
|
|
249
252
|
key: 0,
|
|
250
253
|
class: "maz-text-xl maz-text-muted"
|
|
251
|
-
})) : (
|
|
254
|
+
})) : (a(), f(b(v), {
|
|
252
255
|
key: 1,
|
|
253
256
|
class: "maz-text-xl maz-text-muted"
|
|
254
257
|
}))
|
|
255
258
|
]),
|
|
256
259
|
_: 1
|
|
257
260
|
/* STABLE */
|
|
258
|
-
})) :
|
|
259
|
-
|
|
261
|
+
})) : r("v-if", !0),
|
|
262
|
+
r(`
|
|
260
263
|
@slot valid-button - Replace the valid button by your own
|
|
261
264
|
`),
|
|
262
|
-
e.$slots["valid-button"] || e.validButton ?
|
|
263
|
-
|
|
265
|
+
e.$slots["valid-button"] || e.validButton ? S(e.$slots, "valid-button", { key: 2 }, () => [
|
|
266
|
+
P(b(z), {
|
|
264
267
|
color: "transparent",
|
|
265
268
|
disabled: e.disabled,
|
|
266
269
|
tabindex: "-1",
|
|
@@ -269,14 +272,14 @@ const ye = {
|
|
|
269
272
|
size: "mini",
|
|
270
273
|
type: "submit"
|
|
271
274
|
}, {
|
|
272
|
-
default:
|
|
273
|
-
|
|
275
|
+
default: F(() => [
|
|
276
|
+
P(b(M), { class: "maz-text-2xl maz-text-normal" })
|
|
274
277
|
]),
|
|
275
278
|
_: 1
|
|
276
279
|
/* STABLE */
|
|
277
280
|
}, 8, ["disabled", "loading"])
|
|
278
|
-
], !0) :
|
|
279
|
-
])) :
|
|
281
|
+
], !0) : r("v-if", !0)
|
|
282
|
+
])) : r("v-if", !0)
|
|
280
283
|
],
|
|
281
284
|
2
|
|
282
285
|
/* CLASS */
|
|
@@ -286,12 +289,12 @@ const ye = {
|
|
|
286
289
|
/* CLASS, STYLE */
|
|
287
290
|
));
|
|
288
291
|
}
|
|
289
|
-
}),
|
|
290
|
-
const
|
|
291
|
-
for (const [
|
|
292
|
-
|
|
293
|
-
return
|
|
294
|
-
},
|
|
292
|
+
}), O = (p, l) => {
|
|
293
|
+
const o = p.__vccOpts || p;
|
|
294
|
+
for (const [c, z] of l)
|
|
295
|
+
o[c] = z;
|
|
296
|
+
return o;
|
|
297
|
+
}, ke = /* @__PURE__ */ O(ze, [["__scopeId", "data-v-e9affc48"]]), Be = /* @__PURE__ */ N({
|
|
295
298
|
__name: "MazBtn",
|
|
296
299
|
props: {
|
|
297
300
|
variant: { default: "button" },
|
|
@@ -315,24 +318,24 @@ const ye = {
|
|
|
315
318
|
noElevation: { type: Boolean },
|
|
316
319
|
contentClass: { default: void 0 }
|
|
317
320
|
},
|
|
318
|
-
setup(
|
|
319
|
-
const
|
|
321
|
+
setup(p) {
|
|
322
|
+
const l = p, o = V(() => import("./MazSpinner-D4CdHpP2.mjs")), c = V(() => import("./MazIcon-BDGxCy9M.mjs")), { href: z, to: h } = se(), g = H();
|
|
320
323
|
ue(() => {
|
|
321
324
|
l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
322
325
|
});
|
|
323
|
-
const
|
|
326
|
+
const v = u(() => z ? "a" : h ? "router-link" : "button"), M = u(
|
|
324
327
|
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
325
328
|
), m = u(
|
|
326
|
-
() => (l.loading || l.disabled) &&
|
|
327
|
-
),
|
|
328
|
-
return (t,
|
|
329
|
+
() => (l.loading || l.disabled) && v.value === "button"
|
|
330
|
+
), k = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), L = u(() => `--is-${l.variant}`), $ = u(() => l.loading && l.variant === "button"), T = u(() => !!g["left-icon"] || l.leftIcon), n = u(() => !!g["right-icon"] || l.rightIcon), i = u(() => T.value || n.value), s = u(() => l.fab && (l.icon || !!g.icon)), d = u(() => v.value === "button" ? l.type : void 0);
|
|
331
|
+
return (t, B) => (a(), f(D(v.value), {
|
|
329
332
|
disabled: m.value || void 0,
|
|
330
|
-
class:
|
|
333
|
+
class: w(["m-btn", [
|
|
331
334
|
`--${t.size}`,
|
|
332
335
|
!t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
|
|
336
|
+
M.value,
|
|
333
337
|
k.value,
|
|
334
|
-
|
|
335
|
-
F.value,
|
|
338
|
+
L.value,
|
|
336
339
|
{
|
|
337
340
|
"--block": t.block,
|
|
338
341
|
"--no-underline": t.noUnderline,
|
|
@@ -346,105 +349,105 @@ const ye = {
|
|
|
346
349
|
"--no-elevation": t.noElevation
|
|
347
350
|
}
|
|
348
351
|
]]),
|
|
349
|
-
type:
|
|
352
|
+
type: d.value
|
|
350
353
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
354
|
+
default: F(() => [
|
|
355
|
+
T.value ? (a(), y(
|
|
353
356
|
"div",
|
|
354
357
|
{
|
|
355
358
|
key: 0,
|
|
356
|
-
class:
|
|
359
|
+
class: w(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": $.value }])
|
|
357
360
|
},
|
|
358
361
|
[
|
|
359
|
-
|
|
362
|
+
r(`
|
|
360
363
|
@slot left-icon - The icon to display on the left of the button
|
|
361
364
|
`),
|
|
362
|
-
|
|
363
|
-
typeof t.leftIcon == "string" ? (
|
|
365
|
+
S(t.$slots, "left-icon", {}, () => [
|
|
366
|
+
typeof t.leftIcon == "string" ? (a(), f(b(c), {
|
|
364
367
|
key: 0,
|
|
365
368
|
name: t.leftIcon
|
|
366
|
-
}, null, 8, ["name"])) : t.leftIcon ? (
|
|
369
|
+
}, null, 8, ["name"])) : t.leftIcon ? (a(), f(D(t.leftIcon), { key: 1 })) : r("v-if", !0)
|
|
367
370
|
], !0)
|
|
368
371
|
],
|
|
369
372
|
2
|
|
370
373
|
/* CLASS */
|
|
371
|
-
)) :
|
|
372
|
-
|
|
374
|
+
)) : r("v-if", !0),
|
|
375
|
+
s.value ? (a(), y(
|
|
373
376
|
"div",
|
|
374
377
|
{
|
|
375
378
|
key: 1,
|
|
376
|
-
class:
|
|
379
|
+
class: w(["m-btn__icon", { "maz-invisible": $.value }])
|
|
377
380
|
},
|
|
378
381
|
[
|
|
379
|
-
|
|
382
|
+
r(`
|
|
380
383
|
@slot icon - The icon to display on the fab button
|
|
381
384
|
`),
|
|
382
|
-
|
|
383
|
-
typeof t.icon == "string" ? (
|
|
385
|
+
S(t.$slots, "icon", {}, () => [
|
|
386
|
+
typeof t.icon == "string" ? (a(), f(b(c), {
|
|
384
387
|
key: 0,
|
|
385
388
|
name: t.icon
|
|
386
|
-
}, null, 8, ["name"])) : t.icon ? (
|
|
389
|
+
}, null, 8, ["name"])) : t.icon ? (a(), f(D(t.icon), { key: 1 })) : r("v-if", !0)
|
|
387
390
|
], !0)
|
|
388
391
|
],
|
|
389
392
|
2
|
|
390
393
|
/* CLASS */
|
|
391
|
-
)) :
|
|
392
|
-
t.$slots.default ? (
|
|
394
|
+
)) : r("v-if", !0),
|
|
395
|
+
t.$slots.default ? (a(), y(
|
|
393
396
|
"span",
|
|
394
397
|
{
|
|
395
398
|
key: 2,
|
|
396
|
-
class:
|
|
399
|
+
class: w([{ "maz-invisible": $.value }, t.contentClass])
|
|
397
400
|
},
|
|
398
401
|
[
|
|
399
|
-
|
|
402
|
+
r(`
|
|
400
403
|
@slot default - The content of the button
|
|
401
404
|
`),
|
|
402
|
-
|
|
405
|
+
S(t.$slots, "default", {}, void 0, !0)
|
|
403
406
|
],
|
|
404
407
|
2
|
|
405
408
|
/* CLASS */
|
|
406
|
-
)) :
|
|
407
|
-
|
|
409
|
+
)) : r("v-if", !0),
|
|
410
|
+
n.value ? (a(), y(
|
|
408
411
|
"div",
|
|
409
412
|
{
|
|
410
413
|
key: 3,
|
|
411
|
-
class:
|
|
414
|
+
class: w(["m-btn__icon-right", { "maz-invisible": $.value }])
|
|
412
415
|
},
|
|
413
416
|
[
|
|
414
|
-
|
|
417
|
+
r(`
|
|
415
418
|
@slot right-icon - The icon to display on the right of the button
|
|
416
419
|
`),
|
|
417
|
-
|
|
418
|
-
typeof t.rightIcon == "string" ? (
|
|
420
|
+
S(t.$slots, "right-icon", {}, () => [
|
|
421
|
+
typeof t.rightIcon == "string" ? (a(), f(b(c), {
|
|
419
422
|
key: 0,
|
|
420
423
|
name: t.rightIcon
|
|
421
|
-
}, null, 8, ["name"])) : t.rightIcon ? (
|
|
424
|
+
}, null, 8, ["name"])) : t.rightIcon ? (a(), f(D(t.rightIcon), { key: 1 })) : r("v-if", !0)
|
|
422
425
|
], !0)
|
|
423
426
|
],
|
|
424
427
|
2
|
|
425
428
|
/* CLASS */
|
|
426
|
-
)) :
|
|
427
|
-
$.value ? (
|
|
429
|
+
)) : r("v-if", !0),
|
|
430
|
+
$.value ? (a(), f(b(o), {
|
|
428
431
|
key: 4,
|
|
429
432
|
class: "m-btn-loader",
|
|
430
433
|
size: "2em",
|
|
431
434
|
color: t.color
|
|
432
|
-
}, null, 8, ["color"])) :
|
|
435
|
+
}, null, 8, ["color"])) : r("v-if", !0)
|
|
433
436
|
]),
|
|
434
437
|
_: 3
|
|
435
438
|
/* FORWARDED */
|
|
436
439
|
}, 8, ["disabled", "class", "type"]));
|
|
437
440
|
}
|
|
438
|
-
}),
|
|
441
|
+
}), X = /* @__PURE__ */ O(Be, [["__scopeId", "data-v-48f14785"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
439
442
|
__proto__: null,
|
|
440
|
-
default:
|
|
441
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
443
|
+
default: X
|
|
444
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = {
|
|
442
445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
443
446
|
width: "1em",
|
|
444
447
|
height: "1em",
|
|
445
448
|
fill: "none",
|
|
446
449
|
viewBox: "0 0 24 24"
|
|
447
|
-
},
|
|
450
|
+
}, we = /* @__PURE__ */ E(
|
|
448
451
|
"path",
|
|
449
452
|
{
|
|
450
453
|
stroke: "currentColor",
|
|
@@ -456,17 +459,13 @@ const ye = {
|
|
|
456
459
|
null,
|
|
457
460
|
-1
|
|
458
461
|
/* HOISTED */
|
|
459
|
-
),
|
|
460
|
-
|
|
462
|
+
), Te = [
|
|
463
|
+
we
|
|
461
464
|
];
|
|
462
|
-
function
|
|
463
|
-
return
|
|
464
|
-
}
|
|
465
|
-
const Se = { render: Ve };
|
|
466
|
-
function j(f) {
|
|
467
|
-
return !!f;
|
|
465
|
+
function Ce(p, l) {
|
|
466
|
+
return a(), y("svg", $e, [...Te]);
|
|
468
467
|
}
|
|
469
|
-
const
|
|
468
|
+
const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
470
469
|
inheritAttrs: !1,
|
|
471
470
|
__name: "MazInputTags",
|
|
472
471
|
props: {
|
|
@@ -481,126 +480,108 @@ const Le = /* @__PURE__ */ N({
|
|
|
481
480
|
warning: { type: Boolean, default: !1 },
|
|
482
481
|
size: { default: "md" },
|
|
483
482
|
color: { default: "primary" },
|
|
484
|
-
block: { type: Boolean }
|
|
483
|
+
block: { type: Boolean },
|
|
484
|
+
addTagsOnBlur: { type: Boolean, default: !0 }
|
|
485
485
|
},
|
|
486
486
|
emits: ["update:model-value"],
|
|
487
|
-
setup(
|
|
488
|
-
const
|
|
487
|
+
setup(p, { emit: l }) {
|
|
488
|
+
const o = p, c = l, z = C(!1), h = C(), g = C(), v = C(), M = C(), m = u(
|
|
489
489
|
() => {
|
|
490
|
-
var
|
|
491
|
-
return (
|
|
490
|
+
var n;
|
|
491
|
+
return (n = o.modelValue) == null ? void 0 : n.map((i) => ({
|
|
492
492
|
tag: i,
|
|
493
493
|
id: Math.random().toString(36).slice(2, 11)
|
|
494
494
|
}));
|
|
495
495
|
}
|
|
496
|
-
)
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
496
|
+
);
|
|
497
|
+
function k(n) {
|
|
498
|
+
if (h.value) {
|
|
499
|
+
v.value = void 0, n.preventDefault();
|
|
500
|
+
const s = h.value.trim().split(",").map((d) => d.trim() === "," ? void 0 : d.trim()).filter(j).filter(
|
|
501
|
+
(d) => {
|
|
502
|
+
var t, B;
|
|
503
|
+
return !((B = (t = o.modelValue) == null ? void 0 : t.filter(j)) != null && B.some((R) => R === d));
|
|
503
504
|
}
|
|
504
505
|
);
|
|
505
|
-
|
|
506
|
+
c(
|
|
506
507
|
"update:model-value",
|
|
507
|
-
|
|
508
|
-
),
|
|
508
|
+
o.modelValue ? [...o.modelValue, ...s] : [...s]
|
|
509
|
+
), h.value = void 0;
|
|
509
510
|
}
|
|
510
|
-
}
|
|
511
|
-
|
|
511
|
+
}
|
|
512
|
+
const L = u(() => {
|
|
513
|
+
if (o.error)
|
|
512
514
|
return "maz-border-danger";
|
|
513
|
-
if (
|
|
515
|
+
if (o.success)
|
|
514
516
|
return "maz-border-success";
|
|
515
|
-
if (
|
|
517
|
+
if (o.warning)
|
|
516
518
|
return "maz-border-warning";
|
|
517
|
-
if (
|
|
518
|
-
if (
|
|
519
|
+
if (z.value) {
|
|
520
|
+
if (o.color === "primary")
|
|
519
521
|
return "maz-border-primary";
|
|
520
|
-
if (
|
|
522
|
+
if (o.color === "secondary")
|
|
521
523
|
return "maz-border-secondary";
|
|
522
|
-
if (
|
|
524
|
+
if (o.color === "info")
|
|
523
525
|
return "maz-border-info";
|
|
524
|
-
if (
|
|
526
|
+
if (o.color === "danger")
|
|
525
527
|
return "maz-border-danger";
|
|
526
|
-
if (
|
|
528
|
+
if (o.color === "success")
|
|
527
529
|
return "maz-border-success";
|
|
528
|
-
if (
|
|
530
|
+
if (o.color === "warning")
|
|
529
531
|
return "maz-border-warning";
|
|
530
|
-
if (
|
|
532
|
+
if (o.color === "black")
|
|
531
533
|
return "maz-border-black";
|
|
532
|
-
if (
|
|
534
|
+
if (o.color === "white")
|
|
533
535
|
return "maz-border-white";
|
|
534
536
|
}
|
|
535
537
|
return "maz-border-border dark:maz-border-color-lighter";
|
|
536
|
-
})
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
});
|
|
539
|
+
function $() {
|
|
540
|
+
var n, i, s;
|
|
541
|
+
h.value || m.value && ((n = m.value) == null ? void 0 : n.length) === 0 || (M.value && clearTimeout(M.value), v.value ? (T(v.value), v.value = void 0) : (v.value = (s = (i = m.value) == null ? void 0 : i[m.value.length - 1]) == null ? void 0 : s.id, M.value = setTimeout(() => {
|
|
542
|
+
v.value = void 0;
|
|
540
543
|
}, 2e3)));
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
}
|
|
545
|
+
function T(n) {
|
|
546
|
+
var s;
|
|
547
|
+
const i = (s = m.value) == null ? void 0 : s.filter((d) => d.id !== n).map((d) => d.tag);
|
|
548
|
+
c("update:model-value", i);
|
|
549
|
+
}
|
|
550
|
+
return (n, i) => (a(), y(
|
|
547
551
|
"div",
|
|
548
552
|
{
|
|
549
|
-
class:
|
|
550
|
-
style: K(
|
|
551
|
-
onFocusCapture: i[
|
|
552
|
-
onBlurCapture: i[
|
|
553
|
+
class: w(["m-input-tags", [L.value, `--${n.color}`, `--${n.size}`, o.class, { "--block": n.block }]]),
|
|
554
|
+
style: K(n.style),
|
|
555
|
+
onFocusCapture: i[4] || (i[4] = (s) => z.value = !0),
|
|
556
|
+
onBlurCapture: i[5] || (i[5] = (s) => z.value = !1)
|
|
553
557
|
},
|
|
554
558
|
[
|
|
555
|
-
|
|
556
|
-
default:
|
|
557
|
-
(
|
|
559
|
+
P(de, { name: "maz-tags" }, {
|
|
560
|
+
default: F(() => [
|
|
561
|
+
(a(!0), y(
|
|
558
562
|
ce,
|
|
559
563
|
null,
|
|
560
|
-
fe(m.value, ({ tag:
|
|
564
|
+
fe(m.value, ({ tag: s, id: d }, t) => (a(), y("div", {
|
|
561
565
|
key: `tag-${t}`,
|
|
562
566
|
class: "m-input-tags__wrapper"
|
|
563
567
|
}, [
|
|
564
|
-
|
|
568
|
+
P(X, {
|
|
565
569
|
class: "m-input-tags__tag",
|
|
566
|
-
disabled:
|
|
567
|
-
size:
|
|
568
|
-
color:
|
|
569
|
-
onClick: W((
|
|
570
|
-
onMouseenter: (
|
|
571
|
-
onFocus: (
|
|
572
|
-
onMouseleave: i[0] || (i[0] = (
|
|
573
|
-
onBlur: i[1] || (i[1] = (
|
|
570
|
+
disabled: n.disabled,
|
|
571
|
+
size: n.size,
|
|
572
|
+
color: g.value === d || v.value === d ? "danger" : n.color,
|
|
573
|
+
onClick: W((B) => T(d), ["stop"]),
|
|
574
|
+
onMouseenter: (B) => g.value = d,
|
|
575
|
+
onFocus: (B) => g.value = d,
|
|
576
|
+
onMouseleave: i[0] || (i[0] = (B) => g.value = void 0),
|
|
577
|
+
onBlur: i[1] || (i[1] = (B) => g.value = void 0)
|
|
574
578
|
}, {
|
|
575
|
-
"right-icon":
|
|
576
|
-
|
|
577
|
-
me,
|
|
578
|
-
{
|
|
579
|
-
name: "maz-scale",
|
|
580
|
-
persisted: ""
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
default: D(() => [
|
|
584
|
-
G(S(
|
|
585
|
-
v(Se),
|
|
586
|
-
null,
|
|
587
|
-
null,
|
|
588
|
-
512
|
|
589
|
-
/* NEED_PATCH */
|
|
590
|
-
), [
|
|
591
|
-
[pe, z.value === c || l.value === c]
|
|
592
|
-
])
|
|
593
|
-
]),
|
|
594
|
-
_: 2
|
|
595
|
-
/* DYNAMIC */
|
|
596
|
-
},
|
|
597
|
-
1024
|
|
598
|
-
/* DYNAMIC_SLOTS */
|
|
599
|
-
)
|
|
579
|
+
"right-icon": F(() => [
|
|
580
|
+
g.value === d || v.value === d ? (a(), f(b(Me), { key: 0 })) : r("v-if", !0)
|
|
600
581
|
]),
|
|
601
|
-
default:
|
|
582
|
+
default: F(() => [
|
|
602
583
|
J(
|
|
603
|
-
Q(
|
|
584
|
+
Q(s) + " ",
|
|
604
585
|
1
|
|
605
586
|
/* TEXT */
|
|
606
587
|
)
|
|
@@ -616,33 +597,34 @@ const Le = /* @__PURE__ */ N({
|
|
|
616
597
|
_: 1
|
|
617
598
|
/* STABLE */
|
|
618
599
|
}),
|
|
619
|
-
|
|
600
|
+
P(ke, G({
|
|
620
601
|
key: "input-tags",
|
|
621
|
-
modelValue:
|
|
622
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
623
|
-
},
|
|
624
|
-
placeholder:
|
|
625
|
-
label:
|
|
626
|
-
"aria-label":
|
|
627
|
-
error:
|
|
628
|
-
disabled:
|
|
629
|
-
color:
|
|
630
|
-
block:
|
|
631
|
-
size:
|
|
602
|
+
modelValue: h.value,
|
|
603
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => h.value = s)
|
|
604
|
+
}, n.$attrs, {
|
|
605
|
+
placeholder: n.placeholder,
|
|
606
|
+
label: n.label,
|
|
607
|
+
"aria-label": n.label || n.placeholder,
|
|
608
|
+
error: n.error,
|
|
609
|
+
disabled: n.disabled,
|
|
610
|
+
color: n.color,
|
|
611
|
+
block: n.block,
|
|
612
|
+
size: n.size,
|
|
632
613
|
"no-border": "",
|
|
633
614
|
class: "m-input-tags__input",
|
|
634
615
|
onKeydown: [
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
]
|
|
616
|
+
U(k, ["enter"]),
|
|
617
|
+
U($, ["delete"])
|
|
618
|
+
],
|
|
619
|
+
onBlur: i[3] || (i[3] = (s) => n.addTagsOnBlur ? k(s) : void 0)
|
|
638
620
|
}), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "disabled", "color", "block", "size"])
|
|
639
621
|
],
|
|
640
622
|
38
|
|
641
623
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
642
624
|
));
|
|
643
625
|
}
|
|
644
|
-
}),
|
|
626
|
+
}), Le = /* @__PURE__ */ O(Ve, [["__scopeId", "data-v-2915bccf"]]);
|
|
645
627
|
export {
|
|
646
|
-
|
|
647
|
-
|
|
628
|
+
Le as M,
|
|
629
|
+
O as _
|
|
648
630
|
};
|