maz-ui 3.47.1 → 3.47.2-beta.10
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 +3 -2
- package/components/MazAccordion.mjs +82 -90
- package/components/MazAnimatedCounter.d.ts +16 -32
- package/components/MazAnimatedCounter.mjs +27 -29
- package/components/MazAvatar.d.ts +2 -1
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +2 -1
- package/components/MazBadge.d.ts +7 -2
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.d.ts +2 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +4 -3
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +5 -4
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +3 -2
- package/components/MazCardSpotlight.mjs +18 -22
- package/components/MazCarousel.d.ts +3 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +74 -70
- package/components/MazChecklist.d.ts +2 -5
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +19 -66
- package/components/MazCircularProgressBar.mjs +47 -52
- package/components/MazDialog.d.ts +5 -3
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +25 -3
- package/components/MazDropdown.mjs +2 -348
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazExpandAnimation.mjs +27 -31
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +14 -13
- package/components/MazInput.d.ts +16 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputCode.mjs +26 -30
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +4 -3
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -1
- package/components/MazLink.d.ts +2 -1
- package/components/MazLink.mjs +19 -31
- package/components/MazLoadingBar.d.ts +1 -1
- package/components/MazLoadingBar.mjs +31 -27
- package/components/MazPagination.d.ts +3 -2
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +29 -53
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
- package/components/MazPhoneNumberInput.d.ts +6 -5
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
- package/components/MazPicker.d.ts +3 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +4 -3
- package/components/MazRadio.d.ts +1 -1
- package/components/MazRadio.mjs +27 -37
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazSlider.mjs +107 -116
- package/components/MazSpinner.d.ts +1 -1
- package/components/MazStepper.d.ts +3 -2
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -1
- package/components/MazSwitch.mjs +20 -27
- package/components/MazTable.d.ts +38 -55
- package/components/MazTable.mjs +3 -2
- package/components/MazTableCell.d.ts +3 -2
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.d.ts +3 -2
- package/components/MazTableRow.mjs +16 -16
- package/components/MazTableTitle.d.ts +3 -2
- package/components/MazTableTitle.mjs +18 -18
- package/components/MazTabs.d.ts +3 -2
- package/components/MazTabsBar.d.ts +3 -2
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.d.ts +3 -2
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.d.ts +2 -1
- package/components/MazTabsContentItem.mjs +7 -7
- package/components/MazTextarea.d.ts +58 -32
- package/components/MazTextarea.mjs +125 -107
- package/components/MazTransitionExpand.d.ts +2 -1
- package/components/MazTransitionExpand.mjs +9 -9
- 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/MazBtn.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDropdown.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/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/MazRadio.css +1 -1
- package/components/assets/MazSelect.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/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-DFoZvWmg.mjs → MazAvatar-CZzOIbzh.mjs} +54 -54
- package/components/chunks/{MazBadge-CNSfzYq-.mjs → MazBadge-CupQjB8D.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-D9EPpEV8.mjs} +28 -29
- package/components/chunks/MazBtn-BSgCMRt0.mjs +103 -0
- package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
- package/components/chunks/MazBtn-BfIn7glE.mjs +103 -0
- package/components/chunks/MazBtn-Br3xKJMD.mjs +103 -0
- package/components/chunks/MazBtn-CB6xVwox.mjs +103 -0
- package/components/chunks/MazBtn-CIAdgMGr.mjs +111 -0
- package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +103 -0
- package/components/chunks/MazBtn-Chk7DWOF.mjs +103 -0
- package/components/chunks/MazBtn-Ck84sP9a.mjs +103 -0
- package/components/chunks/MazBtn-DI80W9rl.mjs +103 -0
- package/components/chunks/MazBtn-DhSKmF01.mjs +103 -0
- package/components/chunks/MazBtn-DzwuLea3.mjs +103 -0
- package/components/chunks/MazBtn-tOUtVpek.mjs +103 -0
- package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-XBaeDZkg.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-COTaKhKF.mjs} +20 -21
- package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-B-Sw22La.mjs} +63 -60
- package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-DjY15PA3.mjs} +63 -58
- package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-DxfneUvu.mjs} +63 -59
- package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-DaozZlNb.mjs} +160 -166
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-XiX9LEiz.mjs} +66 -81
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +488 -0
- package/components/chunks/MazDropdown-CKuIGitT.mjs +427 -0
- package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
- package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-BooLoRWi.mjs} +247 -208
- package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-DUOQamrE.mjs} +265 -226
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-DFW4cVVf.mjs} +4 -3
- package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
- package/components/chunks/MazInput-BWAWlxDa.mjs +314 -0
- package/components/chunks/MazInput-DIN1VAoX.mjs +325 -0
- package/components/chunks/MazInput-HLPtw5QK.mjs +313 -0
- package/components/chunks/MazInputNumber-7Ku2ZcG-.mjs +601 -0
- package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-C5yErBFP.mjs} +199 -176
- package/components/chunks/MazInputTags-DvbQ2mK8.mjs +614 -0
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/MazLink-mrqHeBS0.mjs +67 -0
- package/components/chunks/MazLoadingBar-CNm3Yt6D.mjs +36 -0
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +597 -613
- package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
- package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
- package/components/chunks/MazSelect-DOexatNj.mjs +871 -0
- package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-DaDRzcT_.mjs} +172 -188
- package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
- package/components/chunks/MazSpinner-BJpv1muf.mjs +34 -0
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
- package/components/chunks/MazSpinner-C30YfScc.mjs +34 -0
- package/components/chunks/MazSpinner-C5mnD76l.mjs +34 -0
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-CDx6lo7l.mjs} +1 -1
- package/components/chunks/MazSpinner-C_GueolV.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-Cc-KlPEG.mjs} +1 -1
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +34 -0
- package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-CkKIUYXO.mjs} +1 -1
- package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-CxyUHAvm.mjs} +1 -1
- package/components/chunks/MazSpinner-DROgQW2M.mjs +34 -0
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-DjUU4G1h.mjs} +1 -1
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +34 -0
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +34 -0
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-b90e3OQK.mjs} +1 -1
- package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
- package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-Ci8nhgOP.mjs} +199 -239
- package/components/chunks/MazTableCell-BIganK6X.mjs +23 -0
- package/components/chunks/MazTableRow-CIO-x6Lb.mjs +30 -0
- package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-OEgTPQB3.mjs} +4 -4
- package/components/chunks/MazTabsBar-CT35SCIK.mjs +177 -0
- package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-Bcwdl9g2.mjs} +8 -8
- package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-0CRjeBvn.mjs +103 -0
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +1 -0
- package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
- package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
- package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-DersvZQw.cjs} +1 -1
- package/modules/chunks/index-DvromXrX.cjs +124 -0
- package/modules/chunks/{index-C2yAjM0P.mjs → index-Kry9j5uD.mjs} +948 -944
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +22 -21
- package/tailwindcss/variables/colors.ts +2 -0
- package/types/components/MazAccordion.vue.d.ts +3 -2
- package/types/components/MazAnimatedCounter.vue.d.ts +16 -32
- package/types/components/MazAvatar.vue.d.ts +2 -1
- package/types/components/MazBackdrop.vue.d.ts +2 -1
- package/types/components/MazBadge.vue.d.ts +7 -2
- package/types/components/MazBottomSheet.vue.d.ts +2 -1
- package/types/components/MazBtn.vue.d.ts +4 -3
- package/types/components/MazCard.vue.d.ts +5 -4
- package/types/components/MazCardSpotlight.vue.d.ts +3 -2
- package/types/components/MazCarousel.vue.d.ts +3 -2
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazCheckbox.vue.d.ts +4 -3
- package/types/components/MazChecklist.vue.d.ts +2 -5
- package/types/components/MazCircularProgressBar.vue.d.ts +19 -66
- package/types/components/MazDialog.vue.d.ts +5 -3
- package/types/components/MazDrawer.vue.d.ts +2 -1
- package/types/components/MazDropdown.vue.d.ts +25 -3
- package/types/components/MazDropzone.vue.d.ts +1 -1
- package/types/components/MazExpandAnimation.vue.d.ts +6 -5
- package/types/components/MazFullscreenLoader.vue.d.ts +2 -1
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInput.vue.d.ts +16 -3
- package/types/components/MazInputCode.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +4 -3
- package/types/components/MazLazyImg.vue.d.ts +2 -1
- package/types/components/MazLink.vue.d.ts +2 -1
- package/types/components/MazLoadingBar.vue.d.ts +1 -1
- package/types/components/MazPagination.vue.d.ts +3 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +29 -53
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
- package/types/components/MazPhoneNumberInput.vue.d.ts +6 -5
- package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +3 -1
- package/types/components/MazPullToRefresh.vue.d.ts +4 -3
- package/types/components/MazRadio.vue.d.ts +1 -1
- package/types/components/MazRadioButtons.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSelect.vue.d.ts +1 -1
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/components/MazSpinner.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +3 -2
- package/types/components/MazSwitch.vue.d.ts +2 -1
- package/types/components/MazTable.vue.d.ts +38 -55
- package/types/components/MazTableCell.vue.d.ts +3 -2
- package/types/components/MazTableRow.vue.d.ts +3 -2
- package/types/components/MazTableTitle.vue.d.ts +3 -2
- package/types/components/MazTabs.vue.d.ts +3 -2
- package/types/components/MazTabsBar.vue.d.ts +3 -2
- package/types/components/MazTabsContent.vue.d.ts +3 -2
- package/types/components/MazTabsContentItem.vue.d.ts +2 -1
- package/types/components/MazTextarea.vue.d.ts +58 -32
- package/types/components/MazTransitionExpand.vue.d.ts +2 -1
- package/types/modules/composables/useFormValidator/types.d.ts +9 -5
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +4 -4
- package/types/modules/composables/useFormValidator/utils.d.ts +17 -17
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +7 -7
- package/types/modules/helpers/check-availability.d.ts +1 -0
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BRnLMzhy.mjs +0 -118
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-CnqRnXh_.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D6Jxw9Nr.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DlD5m7T4.mjs +0 -118
- package/components/chunks/MazBtn-Dt8lr0GH.mjs +0 -118
- package/components/chunks/MazBtn-DzBXfedt.mjs +0 -123
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazBtn-TkePGm5o.mjs +0 -118
- package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazExpandAnimation-Bkw_wFTi.mjs +0 -58
- package/components/chunks/MazInput-CBiCdd0F.mjs +0 -302
- package/components/chunks/MazInput-Dx2cCzFS.mjs +0 -290
- package/components/chunks/MazInput-O6Q41Fm0.mjs +0 -291
- package/components/chunks/MazInputNumber-DYPVUz4k.mjs +0 -593
- package/components/chunks/MazInputTags-CxXBsTdM.mjs +0 -605
- package/components/chunks/MazLink-Dl9ePCGm.mjs +0 -79
- package/components/chunks/MazLoadingBar-Di2OIrPD.mjs +0 -32
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazPicker-BcQ_-AJH.mjs +0 -2477
- package/components/chunks/MazSelect-BXzgSKmL.mjs +0 -863
- package/components/chunks/MazSpinner-Cg26sBU2.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
- package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
- package/components/chunks/MazSpinner-DlMKBtyt.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-M4r0cykl.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
- package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTableCell-BXDbkEJq.mjs +0 -23
- package/components/chunks/MazTableRow-Ds3CDEit.mjs +0 -30
- package/components/chunks/MazTabsBar-MZYefBb8.mjs +0 -204
- package/modules/chunks/MazBtn-CTqI4qhg.mjs +0 -118
- package/modules/chunks/MazBtn-D_CpNgpD.cjs +0 -9
- package/modules/chunks/index-BIX1NMzX.cjs +0 -149
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import '../assets/MazGallery.css';var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { createVNode as
|
|
5
|
-
function Oe(
|
|
1
|
+
import '../assets/MazGallery.css';var Ae = Object.defineProperty;
|
|
2
|
+
var Ie = (o, e, t) => e in o ? Ae(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var g = (o, e, t) => Ie(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { createVNode as z, render as M, defineComponent as re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze, onBeforeMount as ke, normalizeStyle as se, Fragment as ne, renderList as oe, toDisplayString as Pe } from "vue";
|
|
5
|
+
function Oe(o, e) {
|
|
6
6
|
let t = e == null ? void 0 : e.element;
|
|
7
7
|
function s() {
|
|
8
|
-
t &&
|
|
8
|
+
t && M(null, t);
|
|
9
9
|
}
|
|
10
|
-
const r = { ...e == null ? void 0 : e.props, destroy: s }, l =
|
|
11
|
-
|
|
10
|
+
const r = { ...e == null ? void 0 : e.props, destroy: s }, l = z(
|
|
11
|
+
o,
|
|
12
12
|
r,
|
|
13
13
|
e == null ? void 0 : e.children
|
|
14
14
|
);
|
|
15
|
-
return e != null && e.app ? (l.appContext = e.app._context, t ?
|
|
15
|
+
return e != null && e.app ? (l.appContext = e.app._context, t ? M(l, t) : typeof document < "u" && (t = document.createElement("div"), M(l, t))) : (t = t ?? document.body, M(l, t)), { vNode: l, destroy: s, el: t };
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
function Se(o, e, t) {
|
|
18
|
+
const s = {
|
|
19
|
+
maxAttempts: 20,
|
|
20
|
+
interval: 100,
|
|
21
|
+
...t
|
|
22
|
+
};
|
|
23
|
+
let r = 0;
|
|
24
|
+
function l() {
|
|
25
|
+
const u = o();
|
|
26
|
+
u != null ? s.expectedValue !== void 0 && u !== s.expectedValue ? r < s.maxAttempts ? (r++, setTimeout(l, s.interval)) : console.warn(s.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${s.maxAttempts} attempts for ref ${u}`) : e(u) : r < s.maxAttempts ? (r++, setTimeout(l, s.interval)) : console.warn(s.errorMessage || `[maz-ui](checkAvailability) Nothing found or expected value after ${s.maxAttempts} attempts for ref ${u}`);
|
|
27
|
+
}
|
|
28
|
+
l();
|
|
29
|
+
}
|
|
30
|
+
const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ re({
|
|
18
31
|
__name: "MazFullscreenImg",
|
|
19
32
|
props: {
|
|
20
33
|
src: {},
|
|
@@ -31,206 +44,235 @@ const ke = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
|
|
|
31
44
|
zoom: { type: Boolean, default: !0 }
|
|
32
45
|
},
|
|
33
46
|
emits: ["close", "previous", "next", "before-close"],
|
|
34
|
-
setup(
|
|
35
|
-
const t =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
setup(o, { emit: e }) {
|
|
48
|
+
const t = o, s = e, r = N(() => import("./MazSpinner-Cgg2dkzQ.mjs")), l = N(() => import("./x-mark-CnZwVvA7.mjs")), u = N(() => import("./chevron-left-BqVOLRdC.mjs")), y = p(!1), x = p(!1), L = p(!1), h = p(!1), m = p(!1), c = Ee({
|
|
49
|
+
running: !1,
|
|
50
|
+
ended: !1
|
|
51
|
+
}), d = p(t.clickedElement), le = C(() => t.clickedElement.getBoundingClientRect()), H = p(), D = p(t.src), q = p(t.alt), j = p(), v = p(), $ = p(!0), ce = C(() => ({
|
|
52
|
+
"--is-zoomed": m.value,
|
|
53
|
+
"--invisible": $.value,
|
|
54
|
+
"--absolute": !m.value
|
|
55
|
+
}));
|
|
56
|
+
function ue() {
|
|
57
|
+
var n, a;
|
|
58
|
+
v.value && (H.value = ((n = v.value) == null ? void 0 : n.naturalWidth) > ((a = v.value) == null ? void 0 : a.naturalHeight)), y.value = !0, x.value = !1, L.value = !0;
|
|
40
59
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
(
|
|
44
|
-
|
|
45
|
-
}
|
|
60
|
+
we(
|
|
61
|
+
L,
|
|
62
|
+
async (n) => {
|
|
63
|
+
n && ge();
|
|
64
|
+
},
|
|
65
|
+
{ immediate: !0 }
|
|
46
66
|
);
|
|
47
|
-
function
|
|
48
|
-
s("before-close"),
|
|
67
|
+
function B() {
|
|
68
|
+
s("before-close"), pe();
|
|
49
69
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
70
|
+
function G(n) {
|
|
71
|
+
n.key === "Escape" && (n.preventDefault(), B()), (n.key === "ArrowLeft" || n.key === "ArrowRight") && (n.preventDefault(), U(n.key === "ArrowRight" ? "next" : "previous"));
|
|
52
72
|
}
|
|
53
|
-
function
|
|
73
|
+
function me() {
|
|
54
74
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
55
75
|
}
|
|
56
|
-
function
|
|
76
|
+
function de() {
|
|
57
77
|
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
58
78
|
}
|
|
59
|
-
function
|
|
79
|
+
function Y() {
|
|
60
80
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
61
81
|
}
|
|
62
|
-
function
|
|
63
|
-
return a < 0 ?
|
|
82
|
+
function he(n, a) {
|
|
83
|
+
return a < 0 ? n.length - 1 : a >= n.length ? 0 : a;
|
|
64
84
|
}
|
|
65
|
-
async function
|
|
66
|
-
|
|
67
|
-
const i = a.getAttribute("data-src"),
|
|
68
|
-
|
|
85
|
+
async function fe(n, a) {
|
|
86
|
+
n.classList.remove(t.openInstanceClass), a.classList.add(t.openInstanceClass);
|
|
87
|
+
const i = a.getAttribute("data-src"), f = a.getAttribute("data-alt");
|
|
88
|
+
q.value = f, D.value = i ?? D.value;
|
|
69
89
|
}
|
|
70
|
-
function
|
|
90
|
+
function U(n) {
|
|
91
|
+
$.value = !0;
|
|
71
92
|
const a = document.querySelector(
|
|
72
93
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
73
94
|
);
|
|
74
95
|
if (a) {
|
|
75
|
-
const i =
|
|
76
|
-
|
|
96
|
+
const i = Y(), f = i.indexOf(a), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
|
|
97
|
+
d.value = E, E && fe(a, E), s(n), y.value = !1, x.value = !0, Se(() => y.value === !0, () => {
|
|
98
|
+
$.value = !1, m.value ? K() : P();
|
|
99
|
+
}, {
|
|
100
|
+
expectedValue: !0,
|
|
101
|
+
interval: 100,
|
|
102
|
+
maxAttempts: 50
|
|
103
|
+
});
|
|
77
104
|
}
|
|
78
105
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
106
|
+
function K() {
|
|
107
|
+
const n = v.value;
|
|
108
|
+
if (!n) {
|
|
109
|
+
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
n.style.removeProperty("max-width"), n.style.removeProperty("max-height"), n == null || n.style.removeProperty("top"), n == null || n.style.removeProperty("left"), H.value ? (n.style.height = "100vh", n.style.removeProperty("width")) : (n.style.width = "100vw", n.style.removeProperty("height"));
|
|
81
113
|
}
|
|
82
|
-
async function
|
|
83
|
-
|
|
84
|
-
d.value ? (d.value = !d.value, H()) : (d.value = !d.value, Y(o));
|
|
114
|
+
async function ve() {
|
|
115
|
+
m.value ? (m.value = !m.value, P()) : (m.value = !m.value, K());
|
|
85
116
|
}
|
|
86
|
-
function
|
|
87
|
-
var
|
|
88
|
-
|
|
117
|
+
function X(n) {
|
|
118
|
+
var i;
|
|
119
|
+
c.running = !0, $.value = !1;
|
|
120
|
+
const a = (i = v.value) == null ? void 0 : i.animate(n, {
|
|
89
121
|
duration: t.animation.duration,
|
|
90
|
-
// Durée de l'animation en millisecondes
|
|
91
122
|
easing: t.animation.easing
|
|
92
|
-
// Fonction d'interpolation pour l'animation inverse
|
|
93
123
|
});
|
|
124
|
+
if (!a) {
|
|
125
|
+
console.error("[maz-ui](vFullscreenImg) animation is not defined"), c.running = !1, c.ended = !0;
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
return a;
|
|
94
129
|
}
|
|
95
|
-
function
|
|
96
|
-
const a =
|
|
97
|
-
(
|
|
98
|
-
(I - 2 *
|
|
99
|
-
),
|
|
130
|
+
function Q(n = t.offset ?? 0) {
|
|
131
|
+
const a = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
|
|
132
|
+
(f - 2 * n) / a,
|
|
133
|
+
(I - 2 * n) / i
|
|
134
|
+
), W = (f - a * E) / 2, Z = (I - i * E) / 2;
|
|
100
135
|
return {
|
|
101
|
-
centerX:
|
|
102
|
-
centerY:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
scale:
|
|
136
|
+
centerX: W,
|
|
137
|
+
centerY: Z,
|
|
138
|
+
width: a,
|
|
139
|
+
height: i,
|
|
140
|
+
scale: E
|
|
106
141
|
};
|
|
107
142
|
}
|
|
108
|
-
function
|
|
109
|
-
const {
|
|
143
|
+
function J({ trigger: n }) {
|
|
144
|
+
const { width: a, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left: Z, width: ye, height: be } = le.value, te = [
|
|
110
145
|
{
|
|
111
|
-
top: `${
|
|
112
|
-
left: `${
|
|
113
|
-
width: `${
|
|
114
|
-
height: `${
|
|
146
|
+
top: `${W}px`,
|
|
147
|
+
left: `${Z}px`,
|
|
148
|
+
width: `${ye}px`,
|
|
149
|
+
height: `${be}px`,
|
|
115
150
|
opacity: 0
|
|
116
151
|
},
|
|
117
152
|
{
|
|
118
|
-
top: `${
|
|
153
|
+
top: `${E}px`,
|
|
119
154
|
left: `${I}px`,
|
|
120
|
-
width: `${a *
|
|
121
|
-
height: `${i *
|
|
155
|
+
width: `${a * f}px`,
|
|
156
|
+
height: `${i * f}px`,
|
|
122
157
|
opacity: 1
|
|
123
158
|
}
|
|
124
159
|
];
|
|
125
160
|
return {
|
|
126
|
-
frames:
|
|
161
|
+
frames: n === "open" ? te : te.reverse()
|
|
127
162
|
};
|
|
128
163
|
}
|
|
129
|
-
function
|
|
130
|
-
const {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
height: `${
|
|
164
|
+
function P() {
|
|
165
|
+
const { height: n, width: a, scale: i } = Q(), f = H.value ? {
|
|
166
|
+
width: `${a * i}px`,
|
|
167
|
+
maxHeight: `${n * i}px`
|
|
168
|
+
} : {
|
|
169
|
+
height: `${n * i}px`,
|
|
170
|
+
maxWidth: `${a * i}px`
|
|
135
171
|
};
|
|
136
|
-
if (!
|
|
137
|
-
|
|
138
|
-
|
|
172
|
+
if (!v.value) {
|
|
173
|
+
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
H.value ? (v.value.style.removeProperty("height"), v.value.style.removeProperty("maxHeight")) : (v.value.style.removeProperty("width"), v.value.style.removeProperty("maxWidth")), Object.assign(v.value.style, f);
|
|
139
177
|
}
|
|
140
|
-
function
|
|
141
|
-
const { frames:
|
|
178
|
+
function ge() {
|
|
179
|
+
const { frames: n } = J({
|
|
142
180
|
trigger: "open"
|
|
143
|
-
}), a =
|
|
144
|
-
if (!a)
|
|
145
|
-
|
|
181
|
+
}), a = X(n);
|
|
182
|
+
if (!a) {
|
|
183
|
+
console.error("[maz-ui](vFullscreenImg) open animation is not defined"), P();
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
146
186
|
a.onfinish = () => {
|
|
147
|
-
|
|
187
|
+
P(), c.running = !1, c.ended = !0;
|
|
148
188
|
};
|
|
149
189
|
}
|
|
150
|
-
function
|
|
151
|
-
const { frames:
|
|
190
|
+
function pe() {
|
|
191
|
+
const { frames: n } = J({
|
|
152
192
|
trigger: "close"
|
|
153
|
-
}), a =
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
193
|
+
}), a = X(n);
|
|
194
|
+
function i() {
|
|
195
|
+
var f, I;
|
|
196
|
+
s("close"), (f = j.value) == null || f.remove(), (I = t.destroy) == null || I.call(t), c.running = !1, c.ended = !0;
|
|
197
|
+
}
|
|
198
|
+
if (!a) {
|
|
199
|
+
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), i();
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
a.onfinish = i;
|
|
160
203
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
204
|
+
function ee() {
|
|
205
|
+
m.value || P();
|
|
163
206
|
}
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
-
}),
|
|
167
|
-
document.removeEventListener("keydown",
|
|
168
|
-
}), (
|
|
207
|
+
return Ce(() => {
|
|
208
|
+
x.value = !0, document.addEventListener("keydown", G), window.addEventListener("resize", ee), me(), h.value = Y().length > 1;
|
|
209
|
+
}), Le(() => {
|
|
210
|
+
document.removeEventListener("keydown", G), window.removeEventListener("resize", ee), de();
|
|
211
|
+
}), (n, a) => (b(), A("div", {
|
|
169
212
|
ref_key: "FullscreenImgElement",
|
|
170
213
|
ref: j,
|
|
171
214
|
role: "button",
|
|
172
215
|
class: "m-fullscreen-img",
|
|
173
216
|
tabindex: "0",
|
|
174
|
-
onClick:
|
|
175
|
-
onKeypress:
|
|
217
|
+
onClick: O(B, ["stop"]),
|
|
218
|
+
onKeypress: xe(O(B, ["prevent"]), ["esc"])
|
|
176
219
|
}, [
|
|
177
|
-
|
|
178
|
-
L(r),
|
|
179
|
-
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
180
|
-
null,
|
|
181
|
-
512
|
|
182
|
-
/* NEED_PATCH */
|
|
183
|
-
), [
|
|
184
|
-
[we, C.value]
|
|
185
|
-
]),
|
|
186
|
-
w.value && m.value ? (b(), A("button", {
|
|
220
|
+
L.value && h.value ? (b(), A("button", {
|
|
187
221
|
key: 0,
|
|
188
222
|
type: "button",
|
|
189
223
|
class: "m-fullscreen-btn --next",
|
|
190
|
-
onClick: a[0] || (a[0] =
|
|
224
|
+
onClick: a[0] || (a[0] = O((i) => U("next"), ["stop"]))
|
|
191
225
|
}, [
|
|
192
|
-
|
|
193
|
-
])) :
|
|
194
|
-
|
|
226
|
+
z(w(u), { class: "maz-rotate-180" })
|
|
227
|
+
])) : S("v-if", !0),
|
|
228
|
+
L.value && h.value ? (b(), A("button", {
|
|
195
229
|
key: 1,
|
|
196
230
|
type: "button",
|
|
197
231
|
class: "m-fullscreen-btn --previous",
|
|
198
|
-
onClick: a[1] || (a[1] =
|
|
232
|
+
onClick: a[1] || (a[1] = O((i) => U("previous"), ["stop"]))
|
|
199
233
|
}, [
|
|
200
|
-
|
|
201
|
-
])) :
|
|
234
|
+
z(w(u))
|
|
235
|
+
])) : S("v-if", !0),
|
|
202
236
|
k("button", {
|
|
203
237
|
type: "button",
|
|
204
238
|
class: "m-fullscreen-btn --close",
|
|
205
|
-
onClick:
|
|
239
|
+
onClick: B
|
|
206
240
|
}, [
|
|
207
|
-
|
|
241
|
+
z(w(l))
|
|
208
242
|
]),
|
|
209
|
-
k("div",
|
|
210
|
-
O(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
243
|
+
k("div", $e, [
|
|
211
244
|
k("img", {
|
|
212
245
|
ref_key: "ImgElement",
|
|
213
|
-
ref:
|
|
214
|
-
src:
|
|
215
|
-
alt:
|
|
246
|
+
ref: v,
|
|
247
|
+
src: D.value,
|
|
248
|
+
alt: q.value ?? void 0,
|
|
216
249
|
tabindex: "0",
|
|
217
|
-
class:
|
|
218
|
-
onLoad:
|
|
219
|
-
onClick: a[2] || (a[2] =
|
|
220
|
-
}, null, 42,
|
|
250
|
+
class: R([ce.value]),
|
|
251
|
+
onLoad: ue,
|
|
252
|
+
onClick: a[2] || (a[2] = O((i) => n.zoom && ve(), ["stop"]))
|
|
253
|
+
}, null, 42, Be),
|
|
254
|
+
T(z(
|
|
255
|
+
w(r),
|
|
256
|
+
{ class: "m-fullscreen-img-loader" },
|
|
257
|
+
null,
|
|
258
|
+
512
|
|
259
|
+
/* NEED_PATCH */
|
|
260
|
+
), [
|
|
261
|
+
[ze, x.value]
|
|
262
|
+
])
|
|
221
263
|
])
|
|
222
|
-
], 40,
|
|
264
|
+
], 40, He));
|
|
223
265
|
}
|
|
224
|
-
}),
|
|
225
|
-
const t =
|
|
266
|
+
}), ie = (o, e) => {
|
|
267
|
+
const t = o.__vccOpts || o;
|
|
226
268
|
for (const [s, r] of e)
|
|
227
269
|
t[s] = r;
|
|
228
270
|
return t;
|
|
229
|
-
},
|
|
230
|
-
class
|
|
271
|
+
}, _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-037cf196"]]), ae = "m-fullscreen-is-open";
|
|
272
|
+
class Fe {
|
|
231
273
|
constructor() {
|
|
232
|
-
|
|
233
|
-
|
|
274
|
+
g(this, "options");
|
|
275
|
+
g(this, "defaultOptions", {
|
|
234
276
|
scaleOnHover: !1,
|
|
235
277
|
blurOnHover: !1,
|
|
236
278
|
disabled: !1,
|
|
@@ -241,9 +283,9 @@ class $e {
|
|
|
241
283
|
easing: "ease-in-out"
|
|
242
284
|
}
|
|
243
285
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
286
|
+
g(this, "mouseEnterListener");
|
|
287
|
+
g(this, "mouseLeaveListener");
|
|
288
|
+
g(this, "renderPreviewListener");
|
|
247
289
|
}
|
|
248
290
|
buildOptions(e, t) {
|
|
249
291
|
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, r = (s == null ? void 0 : s.src) ?? this.getImgSrc(e), l = (s == null ? void 0 : s.alt) ?? this.getImgAlt(e);
|
|
@@ -284,10 +326,10 @@ class $e {
|
|
|
284
326
|
e.removeEventListener("mouseenter", this.mouseEnterListener), e.removeEventListener("mouseleave", this.mouseLeaveListener), e.removeEventListener("click", this.renderPreviewListener), e.classList.remove("m-fullscreen-img-instance"), e.style.cursor = "";
|
|
285
327
|
}
|
|
286
328
|
renderPreview(e) {
|
|
287
|
-
return e.classList.add(
|
|
329
|
+
return e.classList.add(ae), Oe(_e, {
|
|
288
330
|
props: {
|
|
289
331
|
...this.options,
|
|
290
|
-
openInstanceClass:
|
|
332
|
+
openInstanceClass: ae,
|
|
291
333
|
clickedElement: e,
|
|
292
334
|
clickedElementBounds: e.getBoundingClientRect()
|
|
293
335
|
},
|
|
@@ -301,18 +343,18 @@ class $e {
|
|
|
301
343
|
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
302
344
|
}
|
|
303
345
|
}
|
|
304
|
-
let
|
|
305
|
-
const
|
|
306
|
-
mounted(
|
|
307
|
-
return
|
|
346
|
+
let _;
|
|
347
|
+
const V = {
|
|
348
|
+
mounted(o, e) {
|
|
349
|
+
return _ = new Fe(), _.create(o, e);
|
|
308
350
|
},
|
|
309
|
-
updated(
|
|
310
|
-
return
|
|
351
|
+
updated(o, e) {
|
|
352
|
+
return _.update(o, e);
|
|
311
353
|
},
|
|
312
|
-
unmounted(
|
|
313
|
-
return
|
|
354
|
+
unmounted(o) {
|
|
355
|
+
return _.remove(o);
|
|
314
356
|
}
|
|
315
|
-
},
|
|
357
|
+
}, Ne = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Re = {
|
|
316
358
|
baseClass: "m-lazy-img",
|
|
317
359
|
loadedClass: "m-lazy-loaded",
|
|
318
360
|
loadingClass: "m-lazy-loading",
|
|
@@ -326,14 +368,14 @@ const U = {
|
|
|
326
368
|
threshold: 0.1
|
|
327
369
|
}
|
|
328
370
|
};
|
|
329
|
-
class
|
|
371
|
+
class Te {
|
|
330
372
|
constructor(e = {}) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
373
|
+
g(this, "observers", []);
|
|
374
|
+
g(this, "defaultOptions", Re);
|
|
375
|
+
g(this, "options");
|
|
376
|
+
g(this, "onImgLoadedCallback");
|
|
377
|
+
g(this, "onImgErrorCallback");
|
|
378
|
+
g(this, "hasImgLoaded", !1);
|
|
337
379
|
this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
|
|
338
380
|
}
|
|
339
381
|
async loadErrorPhoto() {
|
|
@@ -439,18 +481,18 @@ class Re {
|
|
|
439
481
|
s.src = t;
|
|
440
482
|
}
|
|
441
483
|
handleIntersectionObserver(e, t, s, r) {
|
|
442
|
-
var l,
|
|
484
|
+
var l, u;
|
|
443
485
|
this.observers.push(r);
|
|
444
|
-
for (const
|
|
445
|
-
if (
|
|
446
|
-
if ((
|
|
486
|
+
for (const y of s)
|
|
487
|
+
if (y.isIntersecting) {
|
|
488
|
+
if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
447
489
|
return;
|
|
448
490
|
this.loadImage(e, t);
|
|
449
491
|
}
|
|
450
492
|
}
|
|
451
493
|
createObserver(e, t) {
|
|
452
|
-
const s = (
|
|
453
|
-
this.handleIntersectionObserver(e, t,
|
|
494
|
+
const s = (u, y) => {
|
|
495
|
+
this.handleIntersectionObserver(e, t, u, y);
|
|
454
496
|
}, r = this.options.observerOptions;
|
|
455
497
|
new IntersectionObserver(s, r).observe(e);
|
|
456
498
|
}
|
|
@@ -467,7 +509,7 @@ class Re {
|
|
|
467
509
|
async add(e, t) {
|
|
468
510
|
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
469
511
|
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
470
|
-
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e,
|
|
512
|
+
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ne), await this.bindUpdateHandler(e, t, "bind");
|
|
471
513
|
}
|
|
472
514
|
async update(e, t) {
|
|
473
515
|
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
@@ -479,22 +521,22 @@ class Re {
|
|
|
479
521
|
this.observers = [];
|
|
480
522
|
}
|
|
481
523
|
}
|
|
482
|
-
let
|
|
483
|
-
const
|
|
484
|
-
created(
|
|
524
|
+
let F;
|
|
525
|
+
const De = {
|
|
526
|
+
created(o, e) {
|
|
485
527
|
const t = typeof e.value == "object" ? e.value : {};
|
|
486
|
-
|
|
528
|
+
F = new Te(t), F.add(o, e);
|
|
487
529
|
},
|
|
488
|
-
updated(
|
|
489
|
-
|
|
530
|
+
updated(o, e) {
|
|
531
|
+
F.update(o, e);
|
|
490
532
|
},
|
|
491
|
-
unmounted(
|
|
492
|
-
|
|
533
|
+
unmounted(o, e) {
|
|
534
|
+
F.remove(o, e);
|
|
493
535
|
}
|
|
494
|
-
},
|
|
536
|
+
}, Ue = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, We = ["alt"], Ze = {
|
|
495
537
|
key: 0,
|
|
496
538
|
class: "m-gallery__remaining-layer maz-flex maz-bg-overlay maz-flex-center"
|
|
497
|
-
},
|
|
539
|
+
}, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */ re({
|
|
498
540
|
__name: "MazGallery",
|
|
499
541
|
props: {
|
|
500
542
|
/**
|
|
@@ -531,83 +573,80 @@ const Fe = {
|
|
|
531
573
|
/** Choose color of borders between images - Should be a CSS color or CSS variable - Ex: `#000` or `var(--maz-color-bg-light)` */
|
|
532
574
|
separatorColor: { type: String, default: "transparent" }
|
|
533
575
|
},
|
|
534
|
-
setup(
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}));
|
|
538
|
-
const e = n, t = _(() => import("./no-photography-PGT8fxs_.mjs"));
|
|
539
|
-
ze(() => {
|
|
576
|
+
setup(o) {
|
|
577
|
+
const e = o, t = N(() => import("./no-photography-PGT8fxs_.mjs"));
|
|
578
|
+
ke(() => {
|
|
540
579
|
e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
|
|
541
580
|
});
|
|
542
|
-
const s =
|
|
543
|
-
const
|
|
581
|
+
const s = C(() => {
|
|
582
|
+
const h = e.noWidth, m = e.width, c = e.noHeight, d = e.height;
|
|
544
583
|
return {
|
|
545
|
-
...
|
|
546
|
-
flex: `0 0 ${typeof
|
|
547
|
-
width: typeof
|
|
584
|
+
...h ? {} : {
|
|
585
|
+
flex: `0 0 ${typeof m}` == "number" ? `${m}px` : m,
|
|
586
|
+
width: typeof m == "number" ? `${m}px` : m
|
|
548
587
|
},
|
|
549
588
|
...c ? {} : {
|
|
550
|
-
height: typeof
|
|
551
|
-
minHeight: typeof
|
|
589
|
+
height: typeof d == "number" ? `${d}px` : `${d}`,
|
|
590
|
+
minHeight: typeof d == "number" ? `${d}px` : `${d}`
|
|
552
591
|
}
|
|
553
592
|
};
|
|
554
|
-
}), r =
|
|
555
|
-
(
|
|
556
|
-
)),
|
|
557
|
-
function
|
|
558
|
-
return e.noRemaining ? !1 : (l.value &&
|
|
593
|
+
}), r = C(() => e.imagesShownCount <= 5 ? e.imagesShownCount : 5), l = C(() => e.images.length - (e.images.length < r.value ? e.images.length : r.value)), u = C(() => e.images.map(
|
|
594
|
+
(h) => typeof h == "object" ? { ...h, thumbnail: h.thumbnail ?? h.src } : { src: h, thumbnail: h, alt: void 0 }
|
|
595
|
+
)), y = C(() => u.value.slice(0, r.value)), x = C(() => u.value.slice(r.value, e.images.length));
|
|
596
|
+
function L(h) {
|
|
597
|
+
return e.noRemaining ? !1 : (l.value && h + 1) === y.value.length;
|
|
559
598
|
}
|
|
560
|
-
return (
|
|
599
|
+
return (h, m) => o.images.length > 0 || o.hasEmptyLayer ? (b(), A(
|
|
561
600
|
"div",
|
|
562
601
|
{
|
|
563
602
|
key: 0,
|
|
564
|
-
class:
|
|
565
|
-
style:
|
|
603
|
+
class: R(["m-gallery maz-flex", { "maz-rounded": !o.noRadius }]),
|
|
604
|
+
style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
|
|
566
605
|
},
|
|
567
606
|
[
|
|
568
|
-
k("section",
|
|
607
|
+
k("section", Ue, [
|
|
569
608
|
(b(!0), A(
|
|
570
|
-
|
|
609
|
+
ne,
|
|
571
610
|
null,
|
|
572
|
-
|
|
611
|
+
oe(y.value, (c, d) => (b(), A(
|
|
573
612
|
"figure",
|
|
574
613
|
{
|
|
575
|
-
key:
|
|
576
|
-
class:
|
|
614
|
+
key: d,
|
|
615
|
+
class: R(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${d + 1}`]])
|
|
577
616
|
},
|
|
578
617
|
[
|
|
579
|
-
|
|
618
|
+
T(k("img", {
|
|
580
619
|
class: "m-gallery__item__image maz-flex-1",
|
|
581
620
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
582
621
|
alt: c.alt,
|
|
583
622
|
loading: "lazy"
|
|
584
|
-
}, null, 8,
|
|
585
|
-
[
|
|
586
|
-
[
|
|
623
|
+
}, null, 8, We), [
|
|
624
|
+
[w(De), { src: c.thumbnail, disabled: !o.lazy }, "bg-image"],
|
|
625
|
+
[w(V), {
|
|
587
626
|
src: c.src,
|
|
588
627
|
alt: c.alt,
|
|
589
|
-
disabled:
|
|
590
|
-
blurOnHover:
|
|
591
|
-
scaleOnHover:
|
|
628
|
+
disabled: o.noZoom || L(d),
|
|
629
|
+
blurOnHover: o.blur,
|
|
630
|
+
scaleOnHover: o.scale
|
|
592
631
|
}]
|
|
593
632
|
]),
|
|
594
|
-
|
|
633
|
+
L(d) ? T((b(), A("div", Ze, [
|
|
595
634
|
k(
|
|
596
635
|
"span",
|
|
597
|
-
|
|
598
|
-
"+" +
|
|
636
|
+
Ve,
|
|
637
|
+
"+" + Pe(l.value),
|
|
599
638
|
1
|
|
600
639
|
/* TEXT */
|
|
601
640
|
)
|
|
602
641
|
])), [
|
|
603
|
-
[
|
|
642
|
+
[w(V), {
|
|
604
643
|
src: c.src,
|
|
605
644
|
alt: c.alt,
|
|
606
|
-
disabled:
|
|
645
|
+
disabled: o.noZoom,
|
|
607
646
|
blurOnHover: !1,
|
|
608
|
-
scaleOnHover:
|
|
647
|
+
scaleOnHover: o.scale
|
|
609
648
|
}]
|
|
610
|
-
]) :
|
|
649
|
+
]) : S("v-if", !0)
|
|
611
650
|
],
|
|
612
651
|
2
|
|
613
652
|
/* CLASS */
|
|
@@ -615,28 +654,28 @@ const Fe = {
|
|
|
615
654
|
128
|
|
616
655
|
/* KEYED_FRAGMENT */
|
|
617
656
|
)),
|
|
618
|
-
|
|
657
|
+
o.hasEmptyLayer && o.images.length === 0 ? (b(), A(
|
|
619
658
|
"div",
|
|
620
659
|
{
|
|
621
660
|
key: 0,
|
|
622
|
-
class:
|
|
623
|
-
style:
|
|
661
|
+
class: R(["empty-layer maz-flex maz-w-full maz-bg-color-light maz-text-normal maz-flex-center", { "maz-rounded-xl": !o.noRadius }]),
|
|
662
|
+
style: se([s.value])
|
|
624
663
|
},
|
|
625
664
|
[
|
|
626
|
-
|
|
665
|
+
z(w(t), { class: "maz-h-8 maz-w-8" })
|
|
627
666
|
],
|
|
628
667
|
6
|
|
629
668
|
/* CLASS, STYLE */
|
|
630
|
-
)) :
|
|
669
|
+
)) : S("v-if", !0)
|
|
631
670
|
]),
|
|
632
671
|
(b(!0), A(
|
|
633
|
-
|
|
672
|
+
ne,
|
|
634
673
|
null,
|
|
635
|
-
|
|
636
|
-
key:
|
|
674
|
+
oe(x.value, (c, d) => T((b(), A("div", {
|
|
675
|
+
key: d,
|
|
637
676
|
class: "m-gallery__hidden"
|
|
638
677
|
})), [
|
|
639
|
-
[
|
|
678
|
+
[w(V), { src: c.src, disabled: o.noZoom }]
|
|
640
679
|
])),
|
|
641
680
|
128
|
|
642
681
|
/* KEYED_FRAGMENT */
|
|
@@ -644,10 +683,10 @@ const Fe = {
|
|
|
644
683
|
],
|
|
645
684
|
6
|
|
646
685
|
/* CLASS, STYLE */
|
|
647
|
-
)) :
|
|
686
|
+
)) : S("v-if", !0);
|
|
648
687
|
}
|
|
649
|
-
}),
|
|
688
|
+
}), Ye = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-3b59e0cd"]]);
|
|
650
689
|
export {
|
|
651
|
-
|
|
652
|
-
|
|
690
|
+
Ye as M,
|
|
691
|
+
ie as _
|
|
653
692
|
};
|