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,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const A = {
|
|
1
|
+
import { ref as S, defineComponent as j, onMounted as W, watch as K, openBlock as p, createBlock as h, Teleport as I, createVNode as x, Transition as U, withCtx as B, createElementBlock as T, normalizeClass as M, createElementVNode as E, withModifiers as q, mergeProps as F, renderSlot as g, createCommentVNode as d, defineAsyncComponent as P, useAttrs as X, computed as b, createTextVNode as D, toDisplayString as z, unref as c, Fragment as L, renderList as G } from "vue";
|
|
2
|
+
import '../assets/MazDialogPromise.css';const A = {
|
|
4
3
|
cancelText: "Cancel",
|
|
5
4
|
confirmText: "Confirm",
|
|
6
5
|
cancelButton: {
|
|
@@ -12,31 +11,42 @@ const A = {
|
|
|
12
11
|
text: "Confirm",
|
|
13
12
|
color: "success"
|
|
14
13
|
}
|
|
15
|
-
}, J = S(A), w = S([])
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
}, J = S(A), w = S([]);
|
|
15
|
+
function Q(i, t) {
|
|
16
|
+
return new Promise((u, n) => {
|
|
17
|
+
w.value = [
|
|
18
|
+
...w.value,
|
|
19
|
+
{
|
|
20
|
+
id: i,
|
|
21
|
+
isActive: !0,
|
|
22
|
+
resolve: async (f) => {
|
|
23
|
+
await (t == null ? void 0 : t()), u(f);
|
|
24
|
+
},
|
|
25
|
+
reject: n
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function H(i) {
|
|
31
|
+
return w.value = w.value.filter(({ id: t }) => t !== i), w.value;
|
|
32
|
+
}
|
|
33
|
+
function N(i, t, u = !1) {
|
|
34
|
+
var n;
|
|
35
|
+
t && ((n = t[i]) == null || n.call(t, u), t.isActive = !1, setTimeout(() => {
|
|
36
|
+
H(t.id);
|
|
31
37
|
}, 500));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
}
|
|
39
|
+
function R() {
|
|
40
|
+
return {
|
|
41
|
+
data: J,
|
|
42
|
+
dialogState: w,
|
|
43
|
+
showDialogAndWaitChoice: Q,
|
|
44
|
+
removeDialogFromState: H,
|
|
45
|
+
rejectDialog: (i, t = new Error("cancel")) => N("reject", i, t),
|
|
46
|
+
resolveDialog: (i, t = "accept") => N("resolve", i, t)
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const O = "--backdrop-present", Y = /* @__PURE__ */ j({
|
|
40
50
|
inheritAttrs: !1,
|
|
41
51
|
__name: "MazBackdrop",
|
|
42
52
|
props: {
|
|
@@ -50,18 +60,21 @@ const A = {
|
|
|
50
60
|
backdropContentClass: { default: void 0 }
|
|
51
61
|
},
|
|
52
62
|
emits: ["open", "close", "update:model-value", "before-close"],
|
|
53
|
-
setup(i, { expose:
|
|
54
|
-
const
|
|
63
|
+
setup(i, { expose: t, emit: u }) {
|
|
64
|
+
const n = i, f = u;
|
|
65
|
+
function k() {
|
|
55
66
|
document.documentElement.classList.add(O);
|
|
56
|
-
}
|
|
67
|
+
}
|
|
68
|
+
async function o() {
|
|
57
69
|
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(O);
|
|
58
|
-
}
|
|
59
|
-
|
|
70
|
+
}
|
|
71
|
+
const s = S(n.modelValue);
|
|
72
|
+
function a() {
|
|
60
73
|
$(!1);
|
|
61
74
|
}
|
|
62
|
-
async function $(
|
|
75
|
+
async function $(l) {
|
|
63
76
|
var V;
|
|
64
|
-
|
|
77
|
+
l || (f("before-close"), await ((V = n.beforeClose) == null ? void 0 : V.call(n))), s.value = l;
|
|
65
78
|
}
|
|
66
79
|
function C() {
|
|
67
80
|
f("open");
|
|
@@ -70,36 +83,36 @@ const A = {
|
|
|
70
83
|
f("update:model-value", !1), f("close"), e();
|
|
71
84
|
}
|
|
72
85
|
function v() {
|
|
73
|
-
|
|
86
|
+
n.persistent || a();
|
|
74
87
|
}
|
|
75
|
-
function
|
|
76
|
-
!
|
|
88
|
+
function r(l) {
|
|
89
|
+
!n.noCloseOnEscKey && l.key === "Escape" && !n.persistent && a();
|
|
77
90
|
}
|
|
78
91
|
function y() {
|
|
79
|
-
|
|
92
|
+
k(), document.addEventListener("keyup", r, !1);
|
|
80
93
|
}
|
|
81
94
|
function e() {
|
|
82
|
-
document.removeEventListener("keyup",
|
|
95
|
+
document.removeEventListener("keyup", r), o();
|
|
83
96
|
}
|
|
84
97
|
return W(() => {
|
|
85
|
-
|
|
98
|
+
n.modelValue ? y() : e();
|
|
86
99
|
}), K(
|
|
87
|
-
() =>
|
|
88
|
-
(
|
|
89
|
-
s.value =
|
|
100
|
+
() => n.modelValue,
|
|
101
|
+
(l) => {
|
|
102
|
+
s.value = l, l ? y() : e();
|
|
90
103
|
}
|
|
91
|
-
),
|
|
104
|
+
), t({
|
|
92
105
|
onBackdropAnimationEnter: C,
|
|
93
106
|
onBackdropAnimationLeave: m,
|
|
94
107
|
onBackdropClicked: v,
|
|
95
|
-
close:
|
|
108
|
+
close: a,
|
|
96
109
|
present: s,
|
|
97
110
|
toggleModal: $,
|
|
98
|
-
onKeyPress:
|
|
99
|
-
}), (
|
|
111
|
+
onKeyPress: r
|
|
112
|
+
}), (l, V) => (p(), h(I, { to: l.teleportSelector }, [
|
|
100
113
|
x(U, {
|
|
101
114
|
appear: "",
|
|
102
|
-
name:
|
|
115
|
+
name: l.transitionName,
|
|
103
116
|
onAfterEnter: C,
|
|
104
117
|
onAfterLeave: m
|
|
105
118
|
}, {
|
|
@@ -108,7 +121,7 @@ const A = {
|
|
|
108
121
|
"div",
|
|
109
122
|
{
|
|
110
123
|
key: 0,
|
|
111
|
-
class: M(["m-backdrop --present", [
|
|
124
|
+
class: M(["m-backdrop --present", [l.backdropClass]]),
|
|
112
125
|
tabindex: "-1",
|
|
113
126
|
role: "dialog"
|
|
114
127
|
},
|
|
@@ -116,7 +129,7 @@ const A = {
|
|
|
116
129
|
E(
|
|
117
130
|
"button",
|
|
118
131
|
{
|
|
119
|
-
class: M(["m-backdrop-overlay", { "--disabled":
|
|
132
|
+
class: M(["m-backdrop-overlay", { "--disabled": l.persistent }]),
|
|
120
133
|
tabindex: "-1",
|
|
121
134
|
onClick: q(v, ["self"])
|
|
122
135
|
},
|
|
@@ -127,13 +140,13 @@ const A = {
|
|
|
127
140
|
E(
|
|
128
141
|
"div",
|
|
129
142
|
F({
|
|
130
|
-
class: ["m-backdrop-content",
|
|
131
|
-
},
|
|
143
|
+
class: ["m-backdrop-content", l.backdropContentClass]
|
|
144
|
+
}, l.$attrs, {
|
|
132
145
|
role: "document",
|
|
133
146
|
tabindex: "0"
|
|
134
147
|
}),
|
|
135
148
|
[
|
|
136
|
-
g(
|
|
149
|
+
g(l.$slots, "default", { close: a })
|
|
137
150
|
],
|
|
138
151
|
16
|
|
139
152
|
/* FULL_PROPS */
|
|
@@ -141,7 +154,7 @@ const A = {
|
|
|
141
154
|
],
|
|
142
155
|
2
|
|
143
156
|
/* CLASS */
|
|
144
|
-
)) :
|
|
157
|
+
)) : d("v-if", !0)
|
|
145
158
|
]),
|
|
146
159
|
_: 3
|
|
147
160
|
/* FORWARDED */
|
|
@@ -178,88 +191,88 @@ const A = {
|
|
|
178
191
|
},
|
|
179
192
|
emits: ["open", "close", "update:model-value"],
|
|
180
193
|
setup(i) {
|
|
181
|
-
const
|
|
182
|
-
...
|
|
194
|
+
const t = P(() => import("./MazBtn-h3WmmaEO.mjs")), u = P(() => import("./x-mark-BP8zWe_C.mjs")), n = X(), f = b(() => ({
|
|
195
|
+
...n,
|
|
183
196
|
class: void 0,
|
|
184
197
|
style: void 0
|
|
185
|
-
})),
|
|
186
|
-
class:
|
|
187
|
-
style:
|
|
198
|
+
})), k = b(() => ({
|
|
199
|
+
class: n.class,
|
|
200
|
+
style: n.style
|
|
188
201
|
}));
|
|
189
|
-
return (
|
|
190
|
-
persistent:
|
|
191
|
-
"model-value":
|
|
202
|
+
return (o, s) => (p(), h(Y, F(f.value, {
|
|
203
|
+
persistent: o.persistent,
|
|
204
|
+
"model-value": o.modelValue,
|
|
192
205
|
"transition-name": "modal-anim",
|
|
193
206
|
"aria-labelledby": "dialogTitle",
|
|
194
207
|
"aria-describedby": "dialogDesc",
|
|
195
|
-
onClose: s[0] || (s[0] = (
|
|
196
|
-
onOpen: s[1] || (s[1] = (
|
|
197
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
208
|
+
onClose: s[0] || (s[0] = (a) => o.$emit("close", a)),
|
|
209
|
+
onOpen: s[1] || (s[1] = (a) => o.$emit("open", a)),
|
|
210
|
+
"onUpdate:modelValue": s[2] || (s[2] = (a) => o.$emit("update:model-value", a))
|
|
198
211
|
}), {
|
|
199
|
-
default: B(({ close:
|
|
212
|
+
default: B(({ close: a }) => [
|
|
200
213
|
E(
|
|
201
214
|
"div",
|
|
202
215
|
F({
|
|
203
|
-
class: ["m-dialog", { "--scrollable":
|
|
216
|
+
class: ["m-dialog", { "--scrollable": o.scrollable }],
|
|
204
217
|
role: "dialog",
|
|
205
218
|
"aria-modal": "true",
|
|
206
|
-
style: [{ width:
|
|
207
|
-
},
|
|
219
|
+
style: [{ width: o.width, maxWidth: o.maxWidth, maxHeight: o.maxHeight }]
|
|
220
|
+
}, k.value),
|
|
208
221
|
[
|
|
209
|
-
|
|
222
|
+
d(`
|
|
210
223
|
@slot Header slot
|
|
211
224
|
@binding {Function} close close function
|
|
212
225
|
`),
|
|
213
|
-
g(
|
|
226
|
+
g(o.$slots, "header", { close: a }, () => [
|
|
214
227
|
E(
|
|
215
228
|
"div",
|
|
216
229
|
{
|
|
217
|
-
class: M(["m-dialog-header", { "--has-title":
|
|
230
|
+
class: M(["m-dialog-header", { "--has-title": o.$slots.title || o.title }])
|
|
218
231
|
},
|
|
219
232
|
[
|
|
220
|
-
|
|
221
|
-
|
|
233
|
+
o.$slots.title || o.title ? (p(), T("h2", Z, [
|
|
234
|
+
d(`
|
|
222
235
|
@slot Title slot in the header
|
|
223
236
|
`),
|
|
224
|
-
g(
|
|
237
|
+
g(o.$slots, "title", {}, () => [
|
|
225
238
|
D(
|
|
226
|
-
z(
|
|
239
|
+
z(o.title),
|
|
227
240
|
1
|
|
228
241
|
/* TEXT */
|
|
229
242
|
)
|
|
230
243
|
], !0)
|
|
231
|
-
])) :
|
|
232
|
-
!
|
|
244
|
+
])) : d("v-if", !0),
|
|
245
|
+
!o.noClose && !o.persistent ? (p(), h(c(t), {
|
|
233
246
|
key: 1,
|
|
234
247
|
class: "m-dialog-closebtn",
|
|
235
248
|
color: "transparent",
|
|
236
|
-
onClick:
|
|
249
|
+
onClick: a
|
|
237
250
|
}, {
|
|
238
251
|
default: B(() => [
|
|
239
|
-
x(c(
|
|
252
|
+
x(c(u), { class: "maz-text-lg" })
|
|
240
253
|
]),
|
|
241
254
|
_: 2
|
|
242
255
|
/* DYNAMIC */
|
|
243
|
-
}, 1032, ["onClick"])) :
|
|
256
|
+
}, 1032, ["onClick"])) : d("v-if", !0)
|
|
244
257
|
],
|
|
245
258
|
2
|
|
246
259
|
/* CLASS */
|
|
247
260
|
)
|
|
248
261
|
], !0),
|
|
249
262
|
E("div", _, [
|
|
250
|
-
|
|
263
|
+
d(`
|
|
251
264
|
@slot Default content
|
|
252
265
|
@binding {Function} close close function
|
|
253
266
|
`),
|
|
254
|
-
g(
|
|
267
|
+
g(o.$slots, "default", { close: a }, void 0, !0)
|
|
255
268
|
]),
|
|
256
|
-
|
|
257
|
-
|
|
269
|
+
o.$slots.footer ? (p(), T("div", ee, [
|
|
270
|
+
d(`
|
|
258
271
|
@slot Footer slot
|
|
259
272
|
@binding {Function} close close function
|
|
260
273
|
`),
|
|
261
|
-
g(
|
|
262
|
-
])) :
|
|
274
|
+
g(o.$slots, "footer", { close: a }, void 0, !0)
|
|
275
|
+
])) : d("v-if", !0)
|
|
263
276
|
],
|
|
264
277
|
16
|
|
265
278
|
/* FULL_PROPS */
|
|
@@ -269,12 +282,12 @@ const A = {
|
|
|
269
282
|
/* FORWARDED */
|
|
270
283
|
}, 16, ["persistent", "model-value"]));
|
|
271
284
|
}
|
|
272
|
-
}), oe = (i,
|
|
273
|
-
const
|
|
274
|
-
for (const [
|
|
275
|
-
|
|
276
|
-
return
|
|
277
|
-
}, ne = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-
|
|
285
|
+
}), oe = (i, t) => {
|
|
286
|
+
const u = i.__vccOpts || i;
|
|
287
|
+
for (const [n, f] of t)
|
|
288
|
+
u[n] = f;
|
|
289
|
+
return u;
|
|
290
|
+
}, ne = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-20ca3bcd"]]), le = { class: "maz-flex maz-items-center maz-gap-2" }, se = /* @__PURE__ */ j({
|
|
278
291
|
__name: "MazDialogPromise",
|
|
279
292
|
props: {
|
|
280
293
|
data: { default: void 0 },
|
|
@@ -290,35 +303,35 @@ const A = {
|
|
|
290
303
|
persistent: { type: Boolean }
|
|
291
304
|
},
|
|
292
305
|
setup(i) {
|
|
293
|
-
const
|
|
294
|
-
var
|
|
295
|
-
return ((
|
|
306
|
+
const t = i, u = P(() => import("./MazBtn-h3WmmaEO.mjs")), n = b(() => t.buttons ?? s.value.buttons), { dialogState: f, rejectDialog: k, resolveDialog: o, data: s } = R(), a = b(() => {
|
|
307
|
+
var r, y, e, l;
|
|
308
|
+
return ((r = s.value) == null ? void 0 : r.cancelButton) ?? ((y = t.data) == null ? void 0 : y.cancelButton) ?? A.cancelButton ? {
|
|
296
309
|
...A.cancelButton,
|
|
297
310
|
...(e = s.value) == null ? void 0 : e.cancelButton,
|
|
298
|
-
...(
|
|
311
|
+
...(l = t.data) == null ? void 0 : l.cancelButton
|
|
299
312
|
} : !1;
|
|
300
313
|
}), $ = b(() => {
|
|
301
|
-
var
|
|
302
|
-
return ((
|
|
314
|
+
var r, y, e, l;
|
|
315
|
+
return ((r = s.value) == null ? void 0 : r.confirmButton) ?? ((y = t.data) == null ? void 0 : y.confirmButton) ?? A.confirmButton ? {
|
|
303
316
|
...A.confirmButton,
|
|
304
317
|
...(e = s.value) == null ? void 0 : e.confirmButton,
|
|
305
|
-
...(
|
|
318
|
+
...(l = t.data) == null ? void 0 : l.confirmButton
|
|
306
319
|
} : !1;
|
|
307
320
|
}), C = b(() => ({
|
|
308
321
|
...A,
|
|
309
322
|
...s.value,
|
|
310
|
-
...
|
|
323
|
+
...t.data
|
|
311
324
|
})), m = b(
|
|
312
|
-
() =>
|
|
325
|
+
() => f.value.find(({ id: v }) => v === t.identifier)
|
|
313
326
|
);
|
|
314
|
-
return (v,
|
|
327
|
+
return (v, r) => {
|
|
315
328
|
var y;
|
|
316
329
|
return p(), h(ne, {
|
|
317
330
|
"model-value": ((y = m.value) == null ? void 0 : y.isActive) ?? !1,
|
|
318
|
-
"onUpdate:modelValue":
|
|
331
|
+
"onUpdate:modelValue": r[2] || (r[2] = (e) => c(k)(m.value))
|
|
319
332
|
}, {
|
|
320
333
|
title: B(() => [
|
|
321
|
-
|
|
334
|
+
d(`
|
|
322
335
|
@slot title slot - Place your title
|
|
323
336
|
`),
|
|
324
337
|
g(v.$slots, "title", {}, () => {
|
|
@@ -333,14 +346,14 @@ const A = {
|
|
|
333
346
|
})
|
|
334
347
|
]),
|
|
335
348
|
default: B(() => [
|
|
336
|
-
|
|
349
|
+
d(`
|
|
337
350
|
@slot Default slot - Place your content
|
|
338
351
|
@binding {Function} resolve resolve function
|
|
339
352
|
@binding {Function} reject reject function
|
|
340
353
|
`),
|
|
341
354
|
g(v.$slots, "default", {
|
|
342
|
-
resolve: (e) => c(
|
|
343
|
-
reject: (e) => c(
|
|
355
|
+
resolve: (e) => c(o)(m.value, e),
|
|
356
|
+
reject: (e) => c(k)(m.value, e)
|
|
344
357
|
}, () => {
|
|
345
358
|
var e;
|
|
346
359
|
return [
|
|
@@ -353,21 +366,21 @@ const A = {
|
|
|
353
366
|
})
|
|
354
367
|
]),
|
|
355
368
|
footer: B(() => [
|
|
356
|
-
|
|
369
|
+
d(`
|
|
357
370
|
@slot Footer slot
|
|
358
371
|
@binding {Function} resolve resolve function
|
|
359
372
|
@binding {Function} reject reject function
|
|
360
373
|
`),
|
|
361
374
|
g(v.$slots, "footer-button", {
|
|
362
|
-
resolve: (e) => c(
|
|
363
|
-
reject: (e) => c(
|
|
375
|
+
resolve: (e) => c(o)(m.value, e),
|
|
376
|
+
reject: (e) => c(k)(m.value, e)
|
|
364
377
|
}, () => [
|
|
365
378
|
E("div", le, [
|
|
366
|
-
|
|
379
|
+
n.value && n.value.length > 0 ? (p(!0), T(
|
|
367
380
|
L,
|
|
368
381
|
{ key: 0 },
|
|
369
|
-
G(
|
|
370
|
-
key:
|
|
382
|
+
G(n.value, (e, l) => (p(), h(c(u), {
|
|
383
|
+
key: l,
|
|
371
384
|
color: e.color,
|
|
372
385
|
size: e.size,
|
|
373
386
|
outline: e.outline,
|
|
@@ -375,7 +388,7 @@ const A = {
|
|
|
375
388
|
disabled: e.disabled,
|
|
376
389
|
block: e.block,
|
|
377
390
|
loading: e.loading,
|
|
378
|
-
onClick: (V) => e.type === "resolve" ? c(
|
|
391
|
+
onClick: (V) => e.type === "resolve" ? c(o)(m.value, e.response) : c(k)(m.value, e.response)
|
|
379
392
|
}, {
|
|
380
393
|
default: B(() => [
|
|
381
394
|
D(
|
|
@@ -393,22 +406,22 @@ const A = {
|
|
|
393
406
|
L,
|
|
394
407
|
{ key: 1 },
|
|
395
408
|
[
|
|
396
|
-
|
|
397
|
-
c(
|
|
398
|
-
F({ key: 0 },
|
|
409
|
+
a.value ? (p(), h(
|
|
410
|
+
c(u),
|
|
411
|
+
F({ key: 0 }, a.value, {
|
|
399
412
|
outline: "",
|
|
400
|
-
onClick:
|
|
413
|
+
onClick: r[0] || (r[0] = (e) => c(k)(m.value))
|
|
401
414
|
}),
|
|
402
415
|
{
|
|
403
416
|
default: B(() => [
|
|
404
|
-
|
|
417
|
+
d(`
|
|
405
418
|
@slot cancel-text slot - Place your cancel text
|
|
406
419
|
`),
|
|
407
420
|
g(v.$slots, "cancel-text", {}, () => {
|
|
408
421
|
var e;
|
|
409
422
|
return [
|
|
410
423
|
D(
|
|
411
|
-
z(
|
|
424
|
+
z(a.value.text ?? ((e = C.value) == null ? void 0 : e.cancelText)),
|
|
412
425
|
1
|
|
413
426
|
/* TEXT */
|
|
414
427
|
)
|
|
@@ -420,15 +433,15 @@ const A = {
|
|
|
420
433
|
},
|
|
421
434
|
16
|
|
422
435
|
/* FULL_PROPS */
|
|
423
|
-
)) :
|
|
436
|
+
)) : d("v-if", !0),
|
|
424
437
|
$.value ? (p(), h(
|
|
425
|
-
c(
|
|
438
|
+
c(u),
|
|
426
439
|
F({ key: 1 }, $.value, {
|
|
427
|
-
onClick:
|
|
440
|
+
onClick: r[1] || (r[1] = (e) => c(o)(m.value))
|
|
428
441
|
}),
|
|
429
442
|
{
|
|
430
443
|
default: B(() => [
|
|
431
|
-
|
|
444
|
+
d(`
|
|
432
445
|
@slot confirm-text slot - Place your confirm text
|
|
433
446
|
`),
|
|
434
447
|
g(v.$slots, "confirm-text", {}, () => [
|
|
@@ -444,7 +457,7 @@ const A = {
|
|
|
444
457
|
},
|
|
445
458
|
16
|
|
446
459
|
/* FULL_PROPS */
|
|
447
|
-
)) :
|
|
460
|
+
)) : d("v-if", !0)
|
|
448
461
|
],
|
|
449
462
|
64
|
|
450
463
|
/* STABLE_FRAGMENT */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../assets/MazDropzone.css';
|
|
2
1
|
import { defineAsyncComponent as H, defineComponent as Q, ref as h, computed as V, onMounted as j, onBeforeUnmount as I, resolveComponent as N, openBlock as f, createElementBlock as T, normalizeStyle as W, renderSlot as w, createElementVNode as c, toDisplayString as y, createBlock as J } from "vue";
|
|
3
|
-
function G(n) {
|
|
2
|
+
import '../assets/MazDropzone.css';function G(n) {
|
|
4
3
|
return n.default ?? n;
|
|
5
4
|
}
|
|
6
|
-
const K = H(() => import("./MazSpinner-
|
|
5
|
+
const K = H(() => import("./MazSpinner-BGPOws6a.mjs")), P = `<div class="dz-preview dz-file-preview maz-flex-1">
|
|
7
6
|
<div class="dz-image">
|
|
8
7
|
<div data-dz-thumbnail-bg></div>
|
|
9
8
|
</div>
|
|
@@ -70,21 +69,26 @@ const K = H(() => import("./MazSpinner-DJkziC4O.mjs")), P = `<div class="dz-prev
|
|
|
70
69
|
const g = h(), v = V(() => ({
|
|
71
70
|
width: typeof n.width == "number" ? `${n.width}px` : n.width,
|
|
72
71
|
height: typeof n.height == "number" ? `${n.height}px` : n.height
|
|
73
|
-
})), u = (s, l) => {
|
|
72
|
+
})), u = (s, l) => (e.options = {
|
|
73
|
+
...e.options,
|
|
74
|
+
[s]: l
|
|
75
|
+
}, e.options), m = (s, l) => {
|
|
76
|
+
e.emit("addedfile", s), e.emit("thumbnail", s, l), e.files.push(s);
|
|
77
|
+
}, F = (s) => e.removeAllFiles(s), b = () => e.processQueue(), x = () => e.destroy(), M = () => e.disable(), _ = () => e.enable(), S = (s, l) => e.accept(s, l), A = (s) => e.addFile(s), O = (s, l, d, o, a) => e.resizeImage(s, l, d, o, a), C = (s) => e.cancelUpload(s), z = () => e.getAcceptedFiles(), k = () => e.getRejectedFiles(), B = () => e.getFilesWithStatus(status), E = () => e.getQueuedFiles(), $ = () => e.getUploadingFiles(), D = () => e.getAddedFiles(), R = () => e.getActiveFiles(), U = (s, l) => {
|
|
74
78
|
t("thumbnail", { file: s, dataUrl: l });
|
|
75
79
|
let d;
|
|
76
80
|
s.previewElement.classList.remove("dz-file-preview"), s.previewElement.querySelectorAll("[data-dz-thumbnail-bg]").forEach((a) => {
|
|
77
81
|
d = a, d.alt = s.name, d.style.backgroundImage = `url('${l}')`;
|
|
78
82
|
}), s.status === "success" && e.emit("complete", s);
|
|
79
|
-
},
|
|
83
|
+
}, q = (s, l, d) => {
|
|
80
84
|
t("error", { file: s, message: l, xhr: d }), e.options.autoRemoveOnError && setTimeout(() => e.removeFile(s), 3e3);
|
|
81
|
-
},
|
|
85
|
+
}, L = (s, l, d) => {
|
|
82
86
|
t("error", { files: s, message: l, xhr: d }), e.options.autoRemoveOnError && setTimeout(() => {
|
|
83
87
|
for (const o of s)
|
|
84
88
|
e.removeFile(o);
|
|
85
89
|
}, 3e3);
|
|
86
90
|
};
|
|
87
|
-
j(async () => {
|
|
91
|
+
return j(async () => {
|
|
88
92
|
const s = {
|
|
89
93
|
parallelUploads: n.options.maxFiles,
|
|
90
94
|
previewTemplate: P,
|
|
@@ -95,16 +99,10 @@ const K = H(() => import("./MazSpinner-DJkziC4O.mjs")), P = `<div class="dz-prev
|
|
|
95
99
|
e = new d(r.value, {
|
|
96
100
|
...s,
|
|
97
101
|
...n.options
|
|
98
|
-
}), e && (g.value = e.options, p.value = !0, e.on("thumbnail",
|
|
102
|
+
}), e && (g.value = e.options, p.value = !0, e.on("thumbnail", U), e.on("error", q), e.on("errormultiple", L), e.on("drop", (o) => t("drop", o)), e.on("dragstart", (o) => t("dragstart", o)), e.on("dragend", (o) => t("dragend", o)), e.on("dragenter", (o) => t("dragenter", o)), e.on("dragover", (o) => t("dragover", o)), e.on("dragleave", (o) => t("dragleave", o)), e.on("paste", (o) => t("paste", o)), e.on("addedfile", (o) => t("addedfile", o)), e.on("addedfiles", (o) => t("addedfiles", o)), e.on("removedfile", (o) => t("removedfile", o)), e.on(
|
|
99
103
|
"success",
|
|
100
104
|
(o, a) => t("success", { file: o, response: a })
|
|
101
|
-
), e.on(
|
|
102
|
-
"successmultiple",
|
|
103
|
-
(o, a) => t("success", { files: o, responseText: a })
|
|
104
|
-
), e.on("processing", (o) => t("processing", o)), e.on(
|
|
105
|
-
"processingmultiple",
|
|
106
|
-
(o) => t("processingmultiple", o)
|
|
107
|
-
), e.on(
|
|
105
|
+
), e.on("successmultiple", (o, a) => t("success", { files: o, responseText: a })), e.on("processing", (o) => t("processing", o)), e.on("processingmultiple", (o) => t("processingmultiple", o)), e.on(
|
|
108
106
|
"uploadprogress",
|
|
109
107
|
(o, a, i) => t("uploadprogress", { file: o, progress: a, bytesSent: i })
|
|
110
108
|
), e.on(
|
|
@@ -114,57 +112,38 @@ const K = H(() => import("./MazSpinner-DJkziC4O.mjs")), P = `<div class="dz-prev
|
|
|
114
112
|
totalBytes: a,
|
|
115
113
|
totalBytesSent: i
|
|
116
114
|
})
|
|
117
|
-
), e.on(
|
|
118
|
-
"sending",
|
|
119
|
-
(o, a, i) => t("sending", { file: o, xhr: a, formData: i })
|
|
120
|
-
), e.on(
|
|
115
|
+
), e.on("sending", (o, a, i) => t("sending", { file: o, xhr: a, formData: i })), e.on(
|
|
121
116
|
"sendingmultiple",
|
|
122
117
|
(o, a, i) => t("sendingmultiple", { files: o, xhr: a, formData: i })
|
|
123
|
-
), e.on("canceled", (o) => t("canceled", o)), e.on(
|
|
124
|
-
"canceledmultiple",
|
|
125
|
-
(o) => t("canceledmultiple", o)
|
|
126
|
-
), e.on("complete", (o) => t("complete", o)), e.on(
|
|
127
|
-
"completemultiple",
|
|
128
|
-
(o) => t("completemultiple", o)
|
|
129
|
-
), e.on("maxfilesexceeded", (o) => t("maxfilesexceeded", o)), e.on(
|
|
130
|
-
"maxfilesreached",
|
|
131
|
-
(o) => t("maxfilesreached", o)
|
|
132
|
-
), e.on("queuecomplete", () => {
|
|
118
|
+
), e.on("canceled", (o) => t("canceled", o)), e.on("canceledmultiple", (o) => t("canceledmultiple", o)), e.on("complete", (o) => t("complete", o)), e.on("completemultiple", (o) => t("completemultiple", o)), e.on("maxfilesexceeded", (o) => t("maxfilesexceeded", o)), e.on("maxfilesreached", (o) => t("maxfilesreached", o)), e.on("queuecomplete", () => {
|
|
133
119
|
z().every((o) => o.manuallyAdded) || t("queuecomplete");
|
|
134
120
|
}), e.on("reset", () => t("reset")));
|
|
135
121
|
}
|
|
136
|
-
})
|
|
137
|
-
const b = (s, l) => (e.options = {
|
|
138
|
-
...e.options,
|
|
139
|
-
[s]: l
|
|
140
|
-
}, e.options), x = (s, l) => {
|
|
141
|
-
e.emit("addedfile", s), e.emit("thumbnail", s, l), e.files.push(s);
|
|
142
|
-
}, M = (s) => e.removeAllFiles(s), _ = () => e.processQueue(), S = () => e.destroy(), A = () => e.disable(), O = () => e.enable(), C = (s, l) => e.accept(s, l), k = (s) => e.addFile(s), B = (s, l, d, o, a) => e.resizeImage(s, l, d, o, a), E = (s) => e.cancelUpload(s), z = () => e.getAcceptedFiles(), $ = () => e.getRejectedFiles(), D = () => e.getFilesWithStatus(status), R = () => e.getQueuedFiles(), U = () => e.getUploadingFiles(), q = () => e.getAddedFiles(), L = () => e.getActiveFiles();
|
|
143
|
-
return I(() => {
|
|
122
|
+
}), I(() => {
|
|
144
123
|
n.noDestroyOnUnmount || e.destroy();
|
|
145
124
|
}), {
|
|
146
125
|
ButtonElement: r,
|
|
147
126
|
dropzoneReady: p,
|
|
148
127
|
dropzoneOptions: g,
|
|
149
128
|
dropzoneStyle: v,
|
|
150
|
-
setOption:
|
|
151
|
-
manuallyAddFile:
|
|
152
|
-
removeAllFiles:
|
|
153
|
-
processQueue:
|
|
154
|
-
destroy:
|
|
155
|
-
disable:
|
|
156
|
-
enable:
|
|
157
|
-
accept:
|
|
158
|
-
addFile:
|
|
159
|
-
resizeImage:
|
|
160
|
-
cancelUpload:
|
|
129
|
+
setOption: u,
|
|
130
|
+
manuallyAddFile: m,
|
|
131
|
+
removeAllFiles: F,
|
|
132
|
+
processQueue: b,
|
|
133
|
+
destroy: x,
|
|
134
|
+
disable: M,
|
|
135
|
+
enable: _,
|
|
136
|
+
accept: S,
|
|
137
|
+
addFile: A,
|
|
138
|
+
resizeImage: O,
|
|
139
|
+
cancelUpload: C,
|
|
161
140
|
getAcceptedFiles: z,
|
|
162
|
-
getRejectedFiles:
|
|
163
|
-
getFilesWithStatus:
|
|
164
|
-
getQueuedFiles:
|
|
165
|
-
getUploadingFiles:
|
|
166
|
-
getAddedFiles:
|
|
167
|
-
getActiveFiles:
|
|
141
|
+
getRejectedFiles: k,
|
|
142
|
+
getFilesWithStatus: B,
|
|
143
|
+
getQueuedFiles: E,
|
|
144
|
+
getUploadingFiles: $,
|
|
145
|
+
getAddedFiles: D,
|
|
146
|
+
getActiveFiles: R
|
|
168
147
|
};
|
|
169
148
|
}
|
|
170
149
|
}), Y = (n, t) => {
|