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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as l, mergeModels as u, useCssVars as m, useModel as f, ref as r, onMounted as v, onUnmounted as c, openBlock as p, createElementBlock as _, normalizeClass as E, createElementVNode as x, mergeProps as h, createCommentVNode as M, renderSlot as V } from "vue";
|
|
2
|
+
import { _ as g } from "./MazStepper-DxrzKz06.mjs";
|
|
3
|
+
import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], b = /* @__PURE__ */ l({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "MazExpandAnimation",
|
|
6
|
+
props: /* @__PURE__ */ u({
|
|
7
|
+
duration: { default: "300ms" },
|
|
8
|
+
timingFunction: { default: "ease-in-out" }
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: { type: Boolean },
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(d) {
|
|
15
|
+
m((e) => ({
|
|
16
|
+
"3628b947": e.duration,
|
|
17
|
+
"239277b5": e.timingFunction
|
|
18
|
+
}));
|
|
19
|
+
const a = f(d, "modelValue"), o = r(!a.value), t = r();
|
|
20
|
+
function i() {
|
|
21
|
+
a.value || (o.value = !0);
|
|
22
|
+
}
|
|
23
|
+
function s() {
|
|
24
|
+
a.value && (o.value = !1);
|
|
25
|
+
}
|
|
26
|
+
return v(() => {
|
|
27
|
+
var e, n;
|
|
28
|
+
(e = t.value) == null || e.addEventListener("transitionstart", i, !1), (n = t.value) == null || n.addEventListener("transitionend", s, !1);
|
|
29
|
+
}), c(() => {
|
|
30
|
+
var e, n;
|
|
31
|
+
(e = t.value) == null || e.removeEventListener("transitionstart", i, !1), (n = t.value) == null || n.removeEventListener("transitionend", s, !1);
|
|
32
|
+
}), (e, n) => (p(), _("div", {
|
|
33
|
+
ref_key: "expandAnimationRef",
|
|
34
|
+
ref: t,
|
|
35
|
+
class: E(["m-expand-animation", { "m-expand-animation--expanded": a.value }]),
|
|
36
|
+
"aria-hidden": !a.value,
|
|
37
|
+
role: "region"
|
|
38
|
+
}, [
|
|
39
|
+
x(
|
|
40
|
+
"div",
|
|
41
|
+
h({ class: "m-expand-animation__inner" }, e.$attrs, {
|
|
42
|
+
class: {
|
|
43
|
+
"--overflow-hidden": o.value
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
46
|
+
[
|
|
47
|
+
M(" @slot Default Slot - Display content "),
|
|
48
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
49
|
+
],
|
|
50
|
+
16
|
|
51
|
+
/* FULL_PROPS */
|
|
52
|
+
)
|
|
53
|
+
], 10, A));
|
|
54
|
+
}
|
|
55
|
+
}), k = /* @__PURE__ */ g(b, [["__scopeId", "data-v-b7ca6b97"]]);
|
|
56
|
+
export {
|
|
57
|
+
k as default
|
|
58
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../assets/MazGallery.css';
|
|
2
|
-
var ye = Object.defineProperty;
|
|
1
|
+
import '../assets/MazGallery.css';var ye = Object.defineProperty;
|
|
3
2
|
var be = (o, e, t) => e in o ? ye(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
4
|
-
var
|
|
3
|
+
var f = (o, e, t) => (be(o, 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 S, withKeys as Le, withDirectives as R, createVNode as x, unref as L, vShow as we, createCommentVNode as O, createElementVNode as P, 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
|
-
import { _ as ae } from "./MazCard-
|
|
5
|
+
import { _ as ae } from "./MazCard-BWxV_Z-i.mjs";
|
|
7
6
|
const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["src", "alt"], ke = /* @__PURE__ */ oe({
|
|
8
7
|
__name: "MazFullscreenImg",
|
|
9
8
|
props: {
|
|
@@ -22,11 +21,11 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
22
21
|
},
|
|
23
22
|
emits: ["close", "previous", "next", "before-close"],
|
|
24
23
|
setup(o, { emit: e }) {
|
|
25
|
-
const t =
|
|
26
|
-
() =>
|
|
27
|
-
), W = y(
|
|
24
|
+
const t = o, s = e, r = _(() => import("./MazSpinner-RvDGcBng.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(
|
|
25
|
+
() => c.value.height < c.value.width
|
|
26
|
+
), 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");
|
|
28
27
|
function le() {
|
|
29
|
-
|
|
28
|
+
g.value = !0, C.value = !1, w.value = !0;
|
|
30
29
|
}
|
|
31
30
|
Ae(
|
|
32
31
|
() => w.value,
|
|
@@ -35,7 +34,7 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
35
34
|
}
|
|
36
35
|
);
|
|
37
36
|
function k() {
|
|
38
|
-
|
|
37
|
+
s("before-close"), ge();
|
|
39
38
|
}
|
|
40
39
|
function q(n) {
|
|
41
40
|
n.key === "Escape" && (n.preventDefault(), k()), (n.key === "ArrowLeft" || n.key === "ArrowRight") && (n.preventDefault(), N(n.key === "ArrowRight" ? "next" : "previous"));
|
|
@@ -53,17 +52,17 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
53
52
|
return a < 0 ? n.length - 1 : a >= n.length ? 0 : a;
|
|
54
53
|
}
|
|
55
54
|
async function de(n, a) {
|
|
56
|
-
n.classList.remove(
|
|
57
|
-
const
|
|
58
|
-
Z.value =
|
|
55
|
+
n.classList.remove(t.openInstanceClass), a.classList.add(t.openInstanceClass);
|
|
56
|
+
const i = a.getAttribute("data-src"), d = a.getAttribute("data-alt");
|
|
57
|
+
Z.value = d, i && (W.value = i), g.value = !1, g.value || (C.value = !0);
|
|
59
58
|
}
|
|
60
59
|
function N(n) {
|
|
61
60
|
const a = document.querySelector(
|
|
62
|
-
`.m-fullscreen-img-instance.${
|
|
61
|
+
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
63
62
|
);
|
|
64
63
|
if (a) {
|
|
65
|
-
const
|
|
66
|
-
|
|
64
|
+
const i = V(), d = i.indexOf(a), I = n === "next" ? d + 1 : d - 1, v = i[me(i, I)];
|
|
65
|
+
l.value = v, v && de(a, v), s(n), m.value ? Y(z.value) : H();
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
function Y(n) {
|
|
@@ -71,32 +70,32 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
71
70
|
}
|
|
72
71
|
async function he() {
|
|
73
72
|
const n = z.value;
|
|
74
|
-
|
|
73
|
+
m.value ? (m.value = !m.value, H()) : (m.value = !m.value, Y(n));
|
|
75
74
|
}
|
|
76
75
|
function G(n) {
|
|
77
76
|
var a;
|
|
78
77
|
return (a = z.value) == null ? void 0 : a.animate(n, {
|
|
79
|
-
duration:
|
|
78
|
+
duration: t.animation.duration,
|
|
80
79
|
// Durée de l'animation en millisecondes
|
|
81
|
-
easing:
|
|
80
|
+
easing: t.animation.easing
|
|
82
81
|
// Fonction d'interpolation pour l'animation inverse
|
|
83
82
|
});
|
|
84
83
|
}
|
|
85
|
-
function X(n =
|
|
86
|
-
const a = (
|
|
87
|
-
(
|
|
88
|
-
(I - 2 * n) /
|
|
89
|
-
), T = (
|
|
84
|
+
function X(n = t.offset ?? 0) {
|
|
85
|
+
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(
|
|
86
|
+
(d - 2 * n) / a,
|
|
87
|
+
(I - 2 * n) / i
|
|
88
|
+
), T = (d - a * v) / 2, D = (I - i * v) / 2;
|
|
90
89
|
return {
|
|
91
90
|
centerX: T,
|
|
92
91
|
centerY: D,
|
|
93
92
|
originalWidth: a,
|
|
94
|
-
originalHeight:
|
|
95
|
-
scale:
|
|
93
|
+
originalHeight: i,
|
|
94
|
+
scale: v
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
97
|
function K({ trigger: n }) {
|
|
99
|
-
const { originalWidth: a, originalHeight:
|
|
98
|
+
const { originalWidth: a, originalHeight: i, scale: d, centerX: I, centerY: v } = X(), { top: T, left: D, width: ve, height: pe } = c.value, J = [
|
|
100
99
|
{
|
|
101
100
|
top: `${T}px`,
|
|
102
101
|
left: `${D}px`,
|
|
@@ -105,10 +104,10 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
105
104
|
opacity: 0
|
|
106
105
|
},
|
|
107
106
|
{
|
|
108
|
-
top: `${
|
|
107
|
+
top: `${v}px`,
|
|
109
108
|
left: `${I}px`,
|
|
110
|
-
width: `${a *
|
|
111
|
-
height: `${
|
|
109
|
+
width: `${a * d}px`,
|
|
110
|
+
height: `${i * d}px`,
|
|
112
111
|
opacity: 1
|
|
113
112
|
}
|
|
114
113
|
];
|
|
@@ -117,15 +116,15 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
function H() {
|
|
120
|
-
const { centerX: n, centerY: a, originalHeight:
|
|
119
|
+
const { centerX: n, centerY: a, originalHeight: i, originalWidth: d, scale: I } = X(), v = {
|
|
121
120
|
top: `${a}px`,
|
|
122
121
|
left: `${n}px`,
|
|
123
|
-
width: `${
|
|
124
|
-
height: `${
|
|
122
|
+
width: `${d * I}px`,
|
|
123
|
+
height: `${i * I}px`
|
|
125
124
|
};
|
|
126
125
|
if (!z.value)
|
|
127
126
|
throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
128
|
-
Object.assign(z.value.style,
|
|
127
|
+
Object.assign(z.value.style, v);
|
|
129
128
|
}
|
|
130
129
|
function fe() {
|
|
131
130
|
const { frames: n } = K({
|
|
@@ -144,15 +143,15 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
144
143
|
if (!a)
|
|
145
144
|
throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
|
|
146
145
|
a.onfinish = () => {
|
|
147
|
-
var
|
|
148
|
-
|
|
146
|
+
var i, d;
|
|
147
|
+
s("close"), (i = j.value) == null || i.remove(), (d = t.destroy) == null || d.call(t);
|
|
149
148
|
};
|
|
150
149
|
}
|
|
151
150
|
function Q() {
|
|
152
|
-
|
|
151
|
+
m.value || H();
|
|
153
152
|
}
|
|
154
153
|
return Ie(() => {
|
|
155
|
-
C.value = !0, document.addEventListener("keydown", q), window.addEventListener("resize", Q), ce(),
|
|
154
|
+
C.value = !0, document.addEventListener("keydown", q), window.addEventListener("resize", Q), ce(), u.value = V().length > 1;
|
|
156
155
|
}), Ee(() => {
|
|
157
156
|
document.removeEventListener("keydown", q), window.removeEventListener("resize", Q), ue();
|
|
158
157
|
}), (n, a) => (b(), A("div", {
|
|
@@ -165,7 +164,7 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
165
164
|
onKeypress: Le(S(k, ["prevent"]), ["esc"])
|
|
166
165
|
}, [
|
|
167
166
|
R(x(
|
|
168
|
-
L(
|
|
167
|
+
L(r),
|
|
169
168
|
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
170
169
|
null,
|
|
171
170
|
512
|
|
@@ -173,28 +172,28 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
173
172
|
), [
|
|
174
173
|
[we, C.value]
|
|
175
174
|
]),
|
|
176
|
-
w.value &&
|
|
175
|
+
w.value && u.value ? (b(), A("button", {
|
|
177
176
|
key: 0,
|
|
178
177
|
type: "button",
|
|
179
178
|
class: "m-fullscreen-btn --next",
|
|
180
|
-
onClick: a[0] || (a[0] = S((
|
|
179
|
+
onClick: a[0] || (a[0] = S((i) => N("next"), ["stop"]))
|
|
181
180
|
}, [
|
|
182
|
-
x(L(
|
|
181
|
+
x(L(p), { class: "maz-rotate-180 maz-text-3xl" })
|
|
183
182
|
])) : O("v-if", !0),
|
|
184
|
-
w.value &&
|
|
183
|
+
w.value && u.value ? (b(), A("button", {
|
|
185
184
|
key: 1,
|
|
186
185
|
type: "button",
|
|
187
186
|
class: "m-fullscreen-btn --previous",
|
|
188
|
-
onClick: a[1] || (a[1] = S((
|
|
187
|
+
onClick: a[1] || (a[1] = S((i) => N("previous"), ["stop"]))
|
|
189
188
|
}, [
|
|
190
|
-
x(L(
|
|
189
|
+
x(L(p), { class: "maz-text-3xl" })
|
|
191
190
|
])) : O("v-if", !0),
|
|
192
191
|
P("button", {
|
|
193
192
|
type: "button",
|
|
194
193
|
class: "m-fullscreen-btn --close",
|
|
195
194
|
onClick: k
|
|
196
195
|
}, [
|
|
197
|
-
x(L(
|
|
196
|
+
x(L(h), { class: "maz-text-3xl" })
|
|
198
197
|
]),
|
|
199
198
|
P("div", Pe, [
|
|
200
199
|
O(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
@@ -206,12 +205,12 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
206
205
|
tabindex: "0",
|
|
207
206
|
class: F([ie.value]),
|
|
208
207
|
onLoad: le,
|
|
209
|
-
onClick: a[2] || (a[2] = S((
|
|
208
|
+
onClick: a[2] || (a[2] = S((i) => n.zoom ? he() : void 0, ["stop"]))
|
|
210
209
|
}, null, 42, Se)
|
|
211
210
|
])
|
|
212
211
|
], 40, Oe));
|
|
213
212
|
}
|
|
214
|
-
}), He = /* @__PURE__ */ ae(ke, [["__scopeId", "data-v-
|
|
213
|
+
}), He = /* @__PURE__ */ ae(ke, [["__scopeId", "data-v-884a2c57"]]);
|
|
215
214
|
function Be(o, e) {
|
|
216
215
|
let t = e == null ? void 0 : e.element;
|
|
217
216
|
function s() {
|
|
@@ -227,8 +226,8 @@ function Be(o, e) {
|
|
|
227
226
|
const ne = "m-fullscreen-is-open";
|
|
228
227
|
class $e {
|
|
229
228
|
constructor() {
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
f(this, "options");
|
|
230
|
+
f(this, "defaultOptions", {
|
|
232
231
|
scaleOnHover: !1,
|
|
233
232
|
blurOnHover: !1,
|
|
234
233
|
disabled: !1,
|
|
@@ -239,17 +238,17 @@ class $e {
|
|
|
239
238
|
easing: "ease-in-out"
|
|
240
239
|
}
|
|
241
240
|
});
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
f(this, "mouseEnterListener");
|
|
242
|
+
f(this, "mouseLeaveListener");
|
|
243
|
+
f(this, "renderPreviewListener");
|
|
245
244
|
}
|
|
246
245
|
buildOptions(e, t) {
|
|
247
|
-
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, r = (s == null ? void 0 : s.src) ?? this.getImgSrc(e),
|
|
246
|
+
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);
|
|
248
247
|
return {
|
|
249
248
|
...this.defaultOptions,
|
|
250
249
|
...s,
|
|
251
250
|
src: r,
|
|
252
|
-
alt:
|
|
251
|
+
alt: h
|
|
253
252
|
};
|
|
254
253
|
}
|
|
255
254
|
get allInstances() {
|
|
@@ -326,12 +325,12 @@ const U = {
|
|
|
326
325
|
};
|
|
327
326
|
class Re {
|
|
328
327
|
constructor(e = {}) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
328
|
+
f(this, "observers", []);
|
|
329
|
+
f(this, "defaultOptions", _e);
|
|
330
|
+
f(this, "options");
|
|
331
|
+
f(this, "onImgLoadedCallback");
|
|
332
|
+
f(this, "onImgErrorCallback");
|
|
333
|
+
f(this, "hasImgLoaded", !1);
|
|
335
334
|
this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
|
|
336
335
|
}
|
|
337
336
|
async loadErrorPhoto() {
|
|
@@ -411,8 +410,8 @@ class Re {
|
|
|
411
410
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
412
411
|
const s = t ?? await this.loadErrorPhoto(), r = e.querySelectorAll("source");
|
|
413
412
|
if (r.length > 0)
|
|
414
|
-
for await (const
|
|
415
|
-
|
|
413
|
+
for await (const h of r)
|
|
414
|
+
h.srcset = s;
|
|
416
415
|
else
|
|
417
416
|
this.setImgSrc(e, s);
|
|
418
417
|
}
|
|
@@ -437,18 +436,18 @@ class Re {
|
|
|
437
436
|
s.src = t;
|
|
438
437
|
}
|
|
439
438
|
handleIntersectionObserver(e, t, s, r) {
|
|
440
|
-
var
|
|
439
|
+
var h, p;
|
|
441
440
|
this.observers.push(r);
|
|
442
|
-
for (const
|
|
443
|
-
if (
|
|
444
|
-
if ((
|
|
441
|
+
for (const g of s)
|
|
442
|
+
if (g.isIntersecting) {
|
|
443
|
+
if ((p = (h = this.options).onIntersecting) == null || p.call(h, g.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
445
444
|
return;
|
|
446
445
|
this.loadImage(e, t);
|
|
447
446
|
}
|
|
448
447
|
}
|
|
449
448
|
createObserver(e, t) {
|
|
450
|
-
const s = (
|
|
451
|
-
this.handleIntersectionObserver(e, t,
|
|
449
|
+
const s = (p, g) => {
|
|
450
|
+
this.handleIntersectionObserver(e, t, p, g);
|
|
452
451
|
}, r = this.options.observerOptions;
|
|
453
452
|
new IntersectionObserver(s, r).observe(e);
|
|
454
453
|
}
|
|
@@ -498,7 +497,7 @@ const Fe = {
|
|
|
498
497
|
props: {
|
|
499
498
|
/**
|
|
500
499
|
* 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' }]`
|
|
501
|
-
|
|
500
|
+
*/
|
|
502
501
|
images: {
|
|
503
502
|
type: Array,
|
|
504
503
|
default: () => []
|
|
@@ -531,29 +530,32 @@ const Fe = {
|
|
|
531
530
|
separatorColor: { type: String, default: "transparent" }
|
|
532
531
|
},
|
|
533
532
|
setup(o) {
|
|
534
|
-
Ce((
|
|
535
|
-
|
|
533
|
+
Ce((u) => ({
|
|
534
|
+
a1931c44: o.separatorColor
|
|
536
535
|
}));
|
|
537
|
-
const e = _(() => import("./no-photography-CFaiDNTH.mjs"))
|
|
536
|
+
const e = o, t = _(() => import("./no-photography-CFaiDNTH.mjs"));
|
|
538
537
|
ze(() => {
|
|
539
|
-
|
|
538
|
+
e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
|
|
540
539
|
});
|
|
541
540
|
const s = E(() => {
|
|
542
|
-
const
|
|
541
|
+
const u = e.noWidth, m = e.width, l = e.noHeight, c = e.height;
|
|
543
542
|
return {
|
|
544
|
-
...
|
|
545
|
-
flex:
|
|
546
|
-
width: typeof
|
|
543
|
+
...u ? {} : {
|
|
544
|
+
flex: `0 0 ${typeof m}` == "number" ? `${m}px` : m,
|
|
545
|
+
width: typeof m == "number" ? `${m}px` : m
|
|
547
546
|
},
|
|
548
|
-
...
|
|
549
|
-
height: typeof
|
|
550
|
-
minHeight: typeof
|
|
547
|
+
...l ? {} : {
|
|
548
|
+
height: typeof c == "number" ? `${c}px` : `${c}`,
|
|
549
|
+
minHeight: typeof c == "number" ? `${c}px` : `${c}`
|
|
551
550
|
}
|
|
552
551
|
};
|
|
553
|
-
}), r = E(() =>
|
|
554
|
-
(
|
|
555
|
-
)),
|
|
556
|
-
|
|
552
|
+
}), 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(
|
|
553
|
+
(u) => typeof u == "object" ? { ...u, thumbnail: u.thumbnail ?? u.src } : { src: u, thumbnail: u, alt: void 0 }
|
|
554
|
+
)), g = E(() => p.value.slice(0, r.value)), C = E(() => p.value.slice(r.value, e.images.length));
|
|
555
|
+
function w(u) {
|
|
556
|
+
return e.noRemaining ? !1 : (h.value && u + 1) === g.value.length;
|
|
557
|
+
}
|
|
558
|
+
return (u, m) => o.images.length > 0 || o.hasEmptyLayer ? (b(), A(
|
|
557
559
|
"div",
|
|
558
560
|
{
|
|
559
561
|
key: 0,
|
|
@@ -565,40 +567,40 @@ const Fe = {
|
|
|
565
567
|
(b(!0), A(
|
|
566
568
|
te,
|
|
567
569
|
null,
|
|
568
|
-
se(
|
|
570
|
+
se(g.value, (l, c) => (b(), A(
|
|
569
571
|
"figure",
|
|
570
572
|
{
|
|
571
|
-
key:
|
|
572
|
-
class: F(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${
|
|
573
|
+
key: c,
|
|
574
|
+
class: F(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${c + 1}`]])
|
|
573
575
|
},
|
|
574
576
|
[
|
|
575
577
|
R(P("img", {
|
|
576
578
|
class: "m-gallery__item__image maz-flex-1",
|
|
577
579
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
578
|
-
alt:
|
|
580
|
+
alt: l.alt,
|
|
579
581
|
loading: "lazy"
|
|
580
582
|
}, null, 8, Te), [
|
|
581
|
-
[L(Fe), { src:
|
|
583
|
+
[L(Fe), { src: l.thumbnail, disabled: !o.lazy }, "bg-image"],
|
|
582
584
|
[L(U), {
|
|
583
|
-
src:
|
|
584
|
-
alt:
|
|
585
|
-
disabled: o.noZoom || w(
|
|
585
|
+
src: l.src,
|
|
586
|
+
alt: l.alt,
|
|
587
|
+
disabled: o.noZoom || w(c),
|
|
586
588
|
blurOnHover: o.blur,
|
|
587
589
|
scaleOnHover: o.scale
|
|
588
590
|
}]
|
|
589
591
|
]),
|
|
590
|
-
w(
|
|
592
|
+
w(c) ? R((b(), A("div", De, [
|
|
591
593
|
P(
|
|
592
594
|
"span",
|
|
593
595
|
Ue,
|
|
594
|
-
"+" + xe(
|
|
596
|
+
"+" + xe(h.value),
|
|
595
597
|
1
|
|
596
598
|
/* TEXT */
|
|
597
599
|
)
|
|
598
600
|
])), [
|
|
599
601
|
[L(U), {
|
|
600
|
-
src:
|
|
601
|
-
alt:
|
|
602
|
+
src: l.src,
|
|
603
|
+
alt: l.alt,
|
|
602
604
|
disabled: o.noZoom,
|
|
603
605
|
blurOnHover: !1,
|
|
604
606
|
scaleOnHover: o.scale
|
|
@@ -619,7 +621,7 @@ const Fe = {
|
|
|
619
621
|
style: ee([s.value])
|
|
620
622
|
},
|
|
621
623
|
[
|
|
622
|
-
x(L(
|
|
624
|
+
x(L(t), { class: "maz-h-8 maz-w-8" })
|
|
623
625
|
],
|
|
624
626
|
6
|
|
625
627
|
/* CLASS, STYLE */
|
|
@@ -628,11 +630,11 @@ const Fe = {
|
|
|
628
630
|
(b(!0), A(
|
|
629
631
|
te,
|
|
630
632
|
null,
|
|
631
|
-
se(C.value, (
|
|
632
|
-
key:
|
|
633
|
+
se(C.value, (l, c) => R((b(), A("div", {
|
|
634
|
+
key: c,
|
|
633
635
|
class: "m-gallery__hidden"
|
|
634
636
|
})), [
|
|
635
|
-
[L(U), { src:
|
|
637
|
+
[L(U), { src: l.src, disabled: o.noZoom }]
|
|
636
638
|
])),
|
|
637
639
|
128
|
|
638
640
|
/* KEYED_FRAGMENT */
|
|
@@ -642,7 +644,7 @@ const Fe = {
|
|
|
642
644
|
/* CLASS, STYLE */
|
|
643
645
|
)) : O("v-if", !0);
|
|
644
646
|
}
|
|
645
|
-
}), Ve = /* @__PURE__ */ ae(We, [["__scopeId", "data-v-
|
|
647
|
+
}), Ve = /* @__PURE__ */ ae(We, [["__scopeId", "data-v-4811cb18"]]);
|
|
646
648
|
export {
|
|
647
649
|
Ve as default
|
|
648
650
|
};
|