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,7 +1,6 @@
|
|
|
1
|
-
import '../assets/MazGallery.css';
|
|
2
|
-
var ye = Object.defineProperty;
|
|
1
|
+
import '../assets/MazGallery.css';var ye = Object.defineProperty;
|
|
3
2
|
var be = (n, e, t) => e in n ? ye(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
4
|
-
var
|
|
3
|
+
var f = (n, e, t) => (be(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
5
4
|
import { defineComponent as oe, defineAsyncComponent as _, ref as y, computed as E, watch as Ae, onMounted as Ie, onBeforeUnmount as Ee, openBlock as b, createElementBlock as A, withModifiers as P, withKeys as Le, withDirectives as R, createVNode as x, unref as L, vShow as we, createCommentVNode as O, createElementVNode as k, normalizeClass as F, render as B, useCssVars as Ce, onBeforeMount as ze, normalizeStyle as ee, Fragment as te, renderList as se, toDisplayString as xe } from "vue";
|
|
6
5
|
const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["src", "alt"], Se = /* @__PURE__ */ oe({
|
|
7
6
|
__name: "MazFullscreenImg",
|
|
@@ -21,11 +20,11 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
21
20
|
},
|
|
22
21
|
emits: ["close", "previous", "next", "before-close"],
|
|
23
22
|
setup(n, { emit: e }) {
|
|
24
|
-
const t =
|
|
25
|
-
() =>
|
|
26
|
-
), W = y(
|
|
23
|
+
const t = n, s = e, r = _(() => import("./MazSpinner-BaAMq7LI.mjs")), h = _(() => import("./x-mark-BP8zWe_C.mjs")), p = _(() => import("./chevron-left-CcZaP3Rc.mjs")), g = y(!1), C = y(!1), w = y(!1), u = y(!1), m = y(!1), l = y(t.clickedElement), c = E(() => t.clickedElement.getBoundingClientRect()), re = E(
|
|
24
|
+
() => c.value.height < c.value.width
|
|
25
|
+
), W = y(t.src), Z = y(t.alt), j = y(), z = y(), ie = E(() => m.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
|
|
27
26
|
function le() {
|
|
28
|
-
|
|
27
|
+
g.value = !0, C.value = !1, w.value = !0;
|
|
29
28
|
}
|
|
30
29
|
Ae(
|
|
31
30
|
() => w.value,
|
|
@@ -34,7 +33,7 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
34
33
|
}
|
|
35
34
|
);
|
|
36
35
|
function S() {
|
|
37
|
-
|
|
36
|
+
s("before-close"), ge();
|
|
38
37
|
}
|
|
39
38
|
function q(o) {
|
|
40
39
|
o.key === "Escape" && (o.preventDefault(), S()), (o.key === "ArrowLeft" || o.key === "ArrowRight") && (o.preventDefault(), N(o.key === "ArrowRight" ? "next" : "previous"));
|
|
@@ -52,17 +51,17 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
52
51
|
return a < 0 ? o.length - 1 : a >= o.length ? 0 : a;
|
|
53
52
|
}
|
|
54
53
|
async function de(o, a) {
|
|
55
|
-
o.classList.remove(
|
|
56
|
-
const
|
|
57
|
-
Z.value =
|
|
54
|
+
o.classList.remove(t.openInstanceClass), a.classList.add(t.openInstanceClass);
|
|
55
|
+
const i = a.getAttribute("data-src"), d = a.getAttribute("data-alt");
|
|
56
|
+
Z.value = d, i && (W.value = i), g.value = !1, g.value || (C.value = !0);
|
|
58
57
|
}
|
|
59
58
|
function N(o) {
|
|
60
59
|
const a = document.querySelector(
|
|
61
|
-
`.m-fullscreen-img-instance.${
|
|
60
|
+
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
62
61
|
);
|
|
63
62
|
if (a) {
|
|
64
|
-
const
|
|
65
|
-
|
|
63
|
+
const i = V(), d = i.indexOf(a), I = o === "next" ? d + 1 : d - 1, v = i[me(i, I)];
|
|
64
|
+
l.value = v, v && de(a, v), s(o), m.value ? Y(z.value) : H();
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
function Y(o) {
|
|
@@ -70,32 +69,32 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
70
69
|
}
|
|
71
70
|
async function he() {
|
|
72
71
|
const o = z.value;
|
|
73
|
-
|
|
72
|
+
m.value ? (m.value = !m.value, H()) : (m.value = !m.value, Y(o));
|
|
74
73
|
}
|
|
75
74
|
function G(o) {
|
|
76
75
|
var a;
|
|
77
76
|
return (a = z.value) == null ? void 0 : a.animate(o, {
|
|
78
|
-
duration:
|
|
77
|
+
duration: t.animation.duration,
|
|
79
78
|
// Durée de l'animation en millisecondes
|
|
80
|
-
easing:
|
|
79
|
+
easing: t.animation.easing
|
|
81
80
|
// Fonction d'interpolation pour l'animation inverse
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
function X(o =
|
|
85
|
-
const a = (
|
|
86
|
-
(
|
|
87
|
-
(I - 2 * o) /
|
|
88
|
-
), T = (
|
|
83
|
+
function X(o = t.offset ?? 0) {
|
|
84
|
+
const a = (l.value instanceof HTMLImageElement ? l.value.naturalWidth : l.value.clientWidth) || 1, i = (l.value instanceof HTMLImageElement ? l.value.naturalHeight : l.value.clientHeight) || 1, d = window.innerWidth, I = window.innerHeight, v = Math.min(
|
|
85
|
+
(d - 2 * o) / a,
|
|
86
|
+
(I - 2 * o) / i
|
|
87
|
+
), T = (d - a * v) / 2, D = (I - i * v) / 2;
|
|
89
88
|
return {
|
|
90
89
|
centerX: T,
|
|
91
90
|
centerY: D,
|
|
92
91
|
originalWidth: a,
|
|
93
|
-
originalHeight:
|
|
94
|
-
scale:
|
|
92
|
+
originalHeight: i,
|
|
93
|
+
scale: v
|
|
95
94
|
};
|
|
96
95
|
}
|
|
97
96
|
function K({ trigger: o }) {
|
|
98
|
-
const { originalWidth: a, originalHeight:
|
|
97
|
+
const { originalWidth: a, originalHeight: i, scale: d, centerX: I, centerY: v } = X(), { top: T, left: D, width: ve, height: pe } = c.value, J = [
|
|
99
98
|
{
|
|
100
99
|
top: `${T}px`,
|
|
101
100
|
left: `${D}px`,
|
|
@@ -104,10 +103,10 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
104
103
|
opacity: 0
|
|
105
104
|
},
|
|
106
105
|
{
|
|
107
|
-
top: `${
|
|
106
|
+
top: `${v}px`,
|
|
108
107
|
left: `${I}px`,
|
|
109
|
-
width: `${a *
|
|
110
|
-
height: `${
|
|
108
|
+
width: `${a * d}px`,
|
|
109
|
+
height: `${i * d}px`,
|
|
111
110
|
opacity: 1
|
|
112
111
|
}
|
|
113
112
|
];
|
|
@@ -116,15 +115,15 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
116
115
|
};
|
|
117
116
|
}
|
|
118
117
|
function H() {
|
|
119
|
-
const { centerX: o, centerY: a, originalHeight:
|
|
118
|
+
const { centerX: o, centerY: a, originalHeight: i, originalWidth: d, scale: I } = X(), v = {
|
|
120
119
|
top: `${a}px`,
|
|
121
120
|
left: `${o}px`,
|
|
122
|
-
width: `${
|
|
123
|
-
height: `${
|
|
121
|
+
width: `${d * I}px`,
|
|
122
|
+
height: `${i * I}px`
|
|
124
123
|
};
|
|
125
124
|
if (!z.value)
|
|
126
125
|
throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
127
|
-
Object.assign(z.value.style,
|
|
126
|
+
Object.assign(z.value.style, v);
|
|
128
127
|
}
|
|
129
128
|
function fe() {
|
|
130
129
|
const { frames: o } = K({
|
|
@@ -143,15 +142,15 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
143
142
|
if (!a)
|
|
144
143
|
throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
|
|
145
144
|
a.onfinish = () => {
|
|
146
|
-
var
|
|
147
|
-
|
|
145
|
+
var i, d;
|
|
146
|
+
s("close"), (i = j.value) == null || i.remove(), (d = t.destroy) == null || d.call(t);
|
|
148
147
|
};
|
|
149
148
|
}
|
|
150
149
|
function Q() {
|
|
151
|
-
|
|
150
|
+
m.value || H();
|
|
152
151
|
}
|
|
153
152
|
return Ie(() => {
|
|
154
|
-
C.value = !0, document.addEventListener("keydown", q), window.addEventListener("resize", Q), ce(),
|
|
153
|
+
C.value = !0, document.addEventListener("keydown", q), window.addEventListener("resize", Q), ce(), u.value = V().length > 1;
|
|
155
154
|
}), Ee(() => {
|
|
156
155
|
document.removeEventListener("keydown", q), window.removeEventListener("resize", Q), ue();
|
|
157
156
|
}), (o, a) => (b(), A("div", {
|
|
@@ -164,7 +163,7 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
164
163
|
onKeypress: Le(P(S, ["prevent"]), ["esc"])
|
|
165
164
|
}, [
|
|
166
165
|
R(x(
|
|
167
|
-
L(
|
|
166
|
+
L(r),
|
|
168
167
|
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
169
168
|
null,
|
|
170
169
|
512
|
|
@@ -172,28 +171,28 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
172
171
|
), [
|
|
173
172
|
[we, C.value]
|
|
174
173
|
]),
|
|
175
|
-
w.value &&
|
|
174
|
+
w.value && u.value ? (b(), A("button", {
|
|
176
175
|
key: 0,
|
|
177
176
|
type: "button",
|
|
178
177
|
class: "m-fullscreen-btn --next",
|
|
179
|
-
onClick: a[0] || (a[0] = P((
|
|
178
|
+
onClick: a[0] || (a[0] = P((i) => N("next"), ["stop"]))
|
|
180
179
|
}, [
|
|
181
|
-
x(L(
|
|
180
|
+
x(L(p), { class: "maz-rotate-180 maz-text-3xl" })
|
|
182
181
|
])) : O("v-if", !0),
|
|
183
|
-
w.value &&
|
|
182
|
+
w.value && u.value ? (b(), A("button", {
|
|
184
183
|
key: 1,
|
|
185
184
|
type: "button",
|
|
186
185
|
class: "m-fullscreen-btn --previous",
|
|
187
|
-
onClick: a[1] || (a[1] = P((
|
|
186
|
+
onClick: a[1] || (a[1] = P((i) => N("previous"), ["stop"]))
|
|
188
187
|
}, [
|
|
189
|
-
x(L(
|
|
188
|
+
x(L(p), { class: "maz-text-3xl" })
|
|
190
189
|
])) : O("v-if", !0),
|
|
191
190
|
k("button", {
|
|
192
191
|
type: "button",
|
|
193
192
|
class: "m-fullscreen-btn --close",
|
|
194
193
|
onClick: S
|
|
195
194
|
}, [
|
|
196
|
-
x(L(
|
|
195
|
+
x(L(h), { class: "maz-text-3xl" })
|
|
197
196
|
]),
|
|
198
197
|
k("div", ke, [
|
|
199
198
|
O(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
@@ -205,7 +204,7 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
205
204
|
tabindex: "0",
|
|
206
205
|
class: F([ie.value]),
|
|
207
206
|
onLoad: le,
|
|
208
|
-
onClick: a[2] || (a[2] = P((
|
|
207
|
+
onClick: a[2] || (a[2] = P((i) => o.zoom ? he() : void 0, ["stop"]))
|
|
209
208
|
}, null, 42, Pe)
|
|
210
209
|
])
|
|
211
210
|
], 40, Oe));
|
|
@@ -215,7 +214,7 @@ const Oe = ["onKeypress"], ke = { class: "m-fullscreen-img-scroller" }, Pe = ["s
|
|
|
215
214
|
for (const [s, r] of e)
|
|
216
215
|
t[s] = r;
|
|
217
216
|
return t;
|
|
218
|
-
}, He = /* @__PURE__ */ ae(Se, [["__scopeId", "data-v-
|
|
217
|
+
}, He = /* @__PURE__ */ ae(Se, [["__scopeId", "data-v-884a2c57"]]);
|
|
219
218
|
function Be(n, e) {
|
|
220
219
|
let t = e == null ? void 0 : e.element;
|
|
221
220
|
function s() {
|
|
@@ -231,8 +230,8 @@ function Be(n, e) {
|
|
|
231
230
|
const ne = "m-fullscreen-is-open";
|
|
232
231
|
class $e {
|
|
233
232
|
constructor() {
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
f(this, "options");
|
|
234
|
+
f(this, "defaultOptions", {
|
|
236
235
|
scaleOnHover: !1,
|
|
237
236
|
blurOnHover: !1,
|
|
238
237
|
disabled: !1,
|
|
@@ -243,17 +242,17 @@ class $e {
|
|
|
243
242
|
easing: "ease-in-out"
|
|
244
243
|
}
|
|
245
244
|
});
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
f(this, "mouseEnterListener");
|
|
246
|
+
f(this, "mouseLeaveListener");
|
|
247
|
+
f(this, "renderPreviewListener");
|
|
249
248
|
}
|
|
250
249
|
buildOptions(e, t) {
|
|
251
|
-
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, r = (s == null ? void 0 : s.src) ?? this.getImgSrc(e),
|
|
250
|
+
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, r = (s == null ? void 0 : s.src) ?? this.getImgSrc(e), h = (s == null ? void 0 : s.alt) ?? this.getImgAlt(e);
|
|
252
251
|
return {
|
|
253
252
|
...this.defaultOptions,
|
|
254
253
|
...s,
|
|
255
254
|
src: r,
|
|
256
|
-
alt:
|
|
255
|
+
alt: h
|
|
257
256
|
};
|
|
258
257
|
}
|
|
259
258
|
get allInstances() {
|
|
@@ -330,12 +329,12 @@ const U = {
|
|
|
330
329
|
};
|
|
331
330
|
class Re {
|
|
332
331
|
constructor(e = {}) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
332
|
+
f(this, "observers", []);
|
|
333
|
+
f(this, "defaultOptions", _e);
|
|
334
|
+
f(this, "options");
|
|
335
|
+
f(this, "onImgLoadedCallback");
|
|
336
|
+
f(this, "onImgErrorCallback");
|
|
337
|
+
f(this, "hasImgLoaded", !1);
|
|
339
338
|
this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
|
|
340
339
|
}
|
|
341
340
|
async loadErrorPhoto() {
|
|
@@ -415,8 +414,8 @@ class Re {
|
|
|
415
414
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
416
415
|
const s = t ?? await this.loadErrorPhoto(), r = e.querySelectorAll("source");
|
|
417
416
|
if (r.length > 0)
|
|
418
|
-
for await (const
|
|
419
|
-
|
|
417
|
+
for await (const h of r)
|
|
418
|
+
h.srcset = s;
|
|
420
419
|
else
|
|
421
420
|
this.setImgSrc(e, s);
|
|
422
421
|
}
|
|
@@ -441,18 +440,18 @@ class Re {
|
|
|
441
440
|
s.src = t;
|
|
442
441
|
}
|
|
443
442
|
handleIntersectionObserver(e, t, s, r) {
|
|
444
|
-
var
|
|
443
|
+
var h, p;
|
|
445
444
|
this.observers.push(r);
|
|
446
|
-
for (const
|
|
447
|
-
if (
|
|
448
|
-
if ((
|
|
445
|
+
for (const g of s)
|
|
446
|
+
if (g.isIntersecting) {
|
|
447
|
+
if ((p = (h = this.options).onIntersecting) == null || p.call(h, g.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
449
448
|
return;
|
|
450
449
|
this.loadImage(e, t);
|
|
451
450
|
}
|
|
452
451
|
}
|
|
453
452
|
createObserver(e, t) {
|
|
454
|
-
const s = (
|
|
455
|
-
this.handleIntersectionObserver(e, t,
|
|
453
|
+
const s = (p, g) => {
|
|
454
|
+
this.handleIntersectionObserver(e, t, p, g);
|
|
456
455
|
}, r = this.options.observerOptions;
|
|
457
456
|
new IntersectionObserver(s, r).observe(e);
|
|
458
457
|
}
|
|
@@ -502,7 +501,7 @@ const Fe = {
|
|
|
502
501
|
props: {
|
|
503
502
|
/**
|
|
504
503
|
* Array of string or object: `['https://via.placeholder.com/500', 'https://via.placeholder.com/600']` or `[{ slug: 'https://via.placeholder.com/500', alt: 'image descripton' }, { slug: 'https://via.placeholder.com/600', alt: 'image descripton' }]`
|
|
505
|
-
|
|
504
|
+
*/
|
|
506
505
|
images: {
|
|
507
506
|
type: Array,
|
|
508
507
|
default: () => []
|
|
@@ -535,29 +534,32 @@ const Fe = {
|
|
|
535
534
|
separatorColor: { type: String, default: "transparent" }
|
|
536
535
|
},
|
|
537
536
|
setup(n) {
|
|
538
|
-
Ce((
|
|
539
|
-
|
|
537
|
+
Ce((u) => ({
|
|
538
|
+
a1931c44: n.separatorColor
|
|
540
539
|
}));
|
|
541
|
-
const e = _(() => import("./no-photography-CFaiDNTH.mjs"))
|
|
540
|
+
const e = n, t = _(() => import("./no-photography-CFaiDNTH.mjs"));
|
|
542
541
|
ze(() => {
|
|
543
|
-
|
|
542
|
+
e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
|
|
544
543
|
});
|
|
545
544
|
const s = E(() => {
|
|
546
|
-
const
|
|
545
|
+
const u = e.noWidth, m = e.width, l = e.noHeight, c = e.height;
|
|
547
546
|
return {
|
|
548
|
-
...
|
|
549
|
-
flex:
|
|
550
|
-
width: typeof
|
|
547
|
+
...u ? {} : {
|
|
548
|
+
flex: `0 0 ${typeof m}` == "number" ? `${m}px` : m,
|
|
549
|
+
width: typeof m == "number" ? `${m}px` : m
|
|
551
550
|
},
|
|
552
|
-
...
|
|
553
|
-
height: typeof
|
|
554
|
-
minHeight: typeof
|
|
551
|
+
...l ? {} : {
|
|
552
|
+
height: typeof c == "number" ? `${c}px` : `${c}`,
|
|
553
|
+
minHeight: typeof c == "number" ? `${c}px` : `${c}`
|
|
555
554
|
}
|
|
556
555
|
};
|
|
557
|
-
}), r = E(() =>
|
|
558
|
-
(
|
|
559
|
-
)),
|
|
560
|
-
|
|
556
|
+
}), r = E(() => e.imagesShownCount <= 5 ? e.imagesShownCount : 5), h = E(() => e.images.length - (e.images.length < r.value ? e.images.length : r.value)), p = E(() => e.images.map(
|
|
557
|
+
(u) => typeof u == "object" ? { ...u, thumbnail: u.thumbnail ?? u.src } : { src: u, thumbnail: u, alt: void 0 }
|
|
558
|
+
)), g = E(() => p.value.slice(0, r.value)), C = E(() => p.value.slice(r.value, e.images.length));
|
|
559
|
+
function w(u) {
|
|
560
|
+
return e.noRemaining ? !1 : (h.value && u + 1) === g.value.length;
|
|
561
|
+
}
|
|
562
|
+
return (u, m) => n.images.length > 0 || n.hasEmptyLayer ? (b(), A(
|
|
561
563
|
"div",
|
|
562
564
|
{
|
|
563
565
|
key: 0,
|
|
@@ -569,40 +571,40 @@ const Fe = {
|
|
|
569
571
|
(b(!0), A(
|
|
570
572
|
te,
|
|
571
573
|
null,
|
|
572
|
-
se(
|
|
574
|
+
se(g.value, (l, c) => (b(), A(
|
|
573
575
|
"figure",
|
|
574
576
|
{
|
|
575
|
-
key:
|
|
576
|
-
class: F(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${
|
|
577
|
+
key: c,
|
|
578
|
+
class: F(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${c + 1}`]])
|
|
577
579
|
},
|
|
578
580
|
[
|
|
579
581
|
R(k("img", {
|
|
580
582
|
class: "m-gallery__item__image maz-flex-1",
|
|
581
583
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
582
|
-
alt:
|
|
584
|
+
alt: l.alt,
|
|
583
585
|
loading: "lazy"
|
|
584
586
|
}, null, 8, Te), [
|
|
585
|
-
[L(Fe), { src:
|
|
587
|
+
[L(Fe), { src: l.thumbnail, disabled: !n.lazy }, "bg-image"],
|
|
586
588
|
[L(U), {
|
|
587
|
-
src:
|
|
588
|
-
alt:
|
|
589
|
-
disabled: n.noZoom || w(
|
|
589
|
+
src: l.src,
|
|
590
|
+
alt: l.alt,
|
|
591
|
+
disabled: n.noZoom || w(c),
|
|
590
592
|
blurOnHover: n.blur,
|
|
591
593
|
scaleOnHover: n.scale
|
|
592
594
|
}]
|
|
593
595
|
]),
|
|
594
|
-
w(
|
|
596
|
+
w(c) ? R((b(), A("div", De, [
|
|
595
597
|
k(
|
|
596
598
|
"span",
|
|
597
599
|
Ue,
|
|
598
|
-
"+" + xe(
|
|
600
|
+
"+" + xe(h.value),
|
|
599
601
|
1
|
|
600
602
|
/* TEXT */
|
|
601
603
|
)
|
|
602
604
|
])), [
|
|
603
605
|
[L(U), {
|
|
604
|
-
src:
|
|
605
|
-
alt:
|
|
606
|
+
src: l.src,
|
|
607
|
+
alt: l.alt,
|
|
606
608
|
disabled: n.noZoom,
|
|
607
609
|
blurOnHover: !1,
|
|
608
610
|
scaleOnHover: n.scale
|
|
@@ -623,7 +625,7 @@ const Fe = {
|
|
|
623
625
|
style: ee([s.value])
|
|
624
626
|
},
|
|
625
627
|
[
|
|
626
|
-
x(L(
|
|
628
|
+
x(L(t), { class: "maz-h-8 maz-w-8" })
|
|
627
629
|
],
|
|
628
630
|
6
|
|
629
631
|
/* CLASS, STYLE */
|
|
@@ -632,11 +634,11 @@ const Fe = {
|
|
|
632
634
|
(b(!0), A(
|
|
633
635
|
te,
|
|
634
636
|
null,
|
|
635
|
-
se(C.value, (
|
|
636
|
-
key:
|
|
637
|
+
se(C.value, (l, c) => R((b(), A("div", {
|
|
638
|
+
key: c,
|
|
637
639
|
class: "m-gallery__hidden"
|
|
638
640
|
})), [
|
|
639
|
-
[L(U), { src:
|
|
641
|
+
[L(U), { src: l.src, disabled: n.noZoom }]
|
|
640
642
|
])),
|
|
641
643
|
128
|
|
642
644
|
/* KEYED_FRAGMENT */
|
|
@@ -646,7 +648,7 @@ const Fe = {
|
|
|
646
648
|
/* CLASS, STYLE */
|
|
647
649
|
)) : O("v-if", !0);
|
|
648
650
|
}
|
|
649
|
-
}), qe = /* @__PURE__ */ ae(We, [["__scopeId", "data-v-
|
|
651
|
+
}), qe = /* @__PURE__ */ ae(We, [["__scopeId", "data-v-4811cb18"]]);
|
|
650
652
|
export {
|
|
651
653
|
qe as M,
|
|
652
654
|
ae as _
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as b, ref as
|
|
2
|
-
import { i as q } from "./
|
|
1
|
+
import { defineComponent as b, ref as v, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as i, mergeProps as C, nextTick as $ } from "vue";
|
|
2
|
+
import { i as q } from "./MazPhoneNumberInput-DpWoNQfx.mjs";
|
|
3
3
|
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -16,22 +16,24 @@ const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
|
16
16
|
/** The function to transform the source of the SVG file - e.g: `(svg) => svg` */
|
|
17
17
|
transformSource: {
|
|
18
18
|
type: Function,
|
|
19
|
-
default: (
|
|
19
|
+
default: (s) => s
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
emits: ["loaded", "unloaded", "error"],
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
23
|
+
setup(s, { emit: S }) {
|
|
24
|
+
const o = s, d = S, a = {}, l = v(), f = v();
|
|
25
|
+
function w() {
|
|
25
26
|
try {
|
|
26
27
|
return q("mazIconPath");
|
|
27
28
|
} catch {
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
|
-
}
|
|
31
|
+
}
|
|
32
|
+
const m = g(() => o.path ?? w()), y = g(() => o.src ? o.src : m.value ? `${m.value}/${o.name}.svg` : `/${o.name}.svg`);
|
|
31
33
|
P(() => {
|
|
32
34
|
!o.name && !o.src && console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop');
|
|
33
35
|
});
|
|
34
|
-
|
|
36
|
+
function E(e, n) {
|
|
35
37
|
const t = e.querySelectorAll("title");
|
|
36
38
|
if (t.length > 0)
|
|
37
39
|
t[0].textContent = n;
|
|
@@ -39,58 +41,67 @@ const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
|
39
41
|
const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
40
42
|
r.textContent = n, e.append(r);
|
|
41
43
|
}
|
|
42
|
-
}
|
|
44
|
+
}
|
|
45
|
+
function M(e) {
|
|
46
|
+
return Object.keys(e).reduce((n, t) => (e[t] !== !1 && e[t] !== null && e[t] !== void 0 && (n[t] = e[t]), n), {});
|
|
47
|
+
}
|
|
48
|
+
function z(e) {
|
|
43
49
|
const n = {}, t = e.attributes;
|
|
44
50
|
if (!t)
|
|
45
51
|
return n;
|
|
46
52
|
for (let r = t.length - 1; r >= 0; r--)
|
|
47
53
|
n[t[r].name] = t[r].value;
|
|
48
54
|
return n;
|
|
49
|
-
}
|
|
55
|
+
}
|
|
56
|
+
function T(e) {
|
|
50
57
|
let n = e.cloneNode(!0);
|
|
51
58
|
return n = o.transformSource(e), o.title && E(n, o.title), e.innerHTML;
|
|
52
|
-
}
|
|
53
|
-
|
|
59
|
+
}
|
|
60
|
+
async function x(e) {
|
|
61
|
+
a[e] || (a[e] = L(e));
|
|
54
62
|
try {
|
|
55
|
-
l.value = await
|
|
63
|
+
l.value = await a[e], await $(), d("loaded", f.value);
|
|
56
64
|
} catch (n) {
|
|
57
|
-
l.value && (l.value = void 0,
|
|
65
|
+
l.value && (l.value = void 0, d("unloaded")), delete a[e], d("error", n);
|
|
58
66
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
}
|
|
68
|
+
function L(e) {
|
|
69
|
+
return new Promise((n, t) => {
|
|
70
|
+
const r = new XMLHttpRequest();
|
|
71
|
+
r.open("GET", e, !0), r.addEventListener("load", () => {
|
|
72
|
+
if (r.status >= 200 && r.status < 400)
|
|
73
|
+
try {
|
|
74
|
+
let c = new DOMParser().parseFromString(r.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
75
|
+
c ? (c = o.transformSource(c), n(c)) : t(new Error('Loaded file is not valid SVG"'));
|
|
76
|
+
} catch (u) {
|
|
77
|
+
t(u);
|
|
78
|
+
}
|
|
79
|
+
else
|
|
80
|
+
t(new Error("Error loading SVG"));
|
|
81
|
+
}), r.addEventListener("error", (u) => t(u)), r.send();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
73
84
|
return _(() => x(y.value)), (e, n) => (p(), h(
|
|
74
85
|
A,
|
|
75
86
|
null,
|
|
76
87
|
[
|
|
77
|
-
|
|
78
|
-
|
|
88
|
+
i(" eslint-disable vue/no-v-html "),
|
|
89
|
+
i(" eslint-disable vue/html-self-closing "),
|
|
79
90
|
l.value ? (p(), h("svg", C({
|
|
80
91
|
key: 0,
|
|
81
92
|
ref_key: "svgElem",
|
|
82
|
-
ref:
|
|
93
|
+
ref: f,
|
|
83
94
|
width: "1em",
|
|
84
95
|
height: "1em"
|
|
85
96
|
}, {
|
|
86
97
|
...z(l.value),
|
|
87
98
|
...M(e.$attrs)
|
|
88
99
|
}, {
|
|
89
|
-
style: `font-size: ${
|
|
100
|
+
style: `font-size: ${s.size}`,
|
|
90
101
|
innerHTML: T(l.value)
|
|
91
|
-
}), null, 16, H)) :
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
}), null, 16, H)) : i("v-if", !0),
|
|
103
|
+
i(" eslint-enable vue/no-v-html "),
|
|
104
|
+
i(" eslint-enable vue/html-self-closing ")
|
|
94
105
|
],
|
|
95
106
|
2112
|
|
96
107
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|