maz-ui 3.47.2-beta.2 → 3.47.2-beta.21
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 +90 -98
- package/components/MazAnimatedCounter.d.ts +16 -32
- package/components/MazAnimatedCounter.mjs +26 -26
- package/components/MazAvatar.d.ts +2 -1
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +23 -14
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.d.ts +7 -2
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.d.ts +13 -25
- 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/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +86 -83
- package/components/MazChecklist.d.ts +2 -5
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +31 -60
- package/components/MazCircularProgressBar.mjs +76 -74
- package/components/MazDialog.d.ts +24 -33
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +9 -5
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.d.ts +25 -3
- package/components/MazDropdown.mjs +2 -325
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazExpandAnimation.mjs +22 -25
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazFullscreenLoader.mjs +7 -7
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +14 -13
- package/components/MazInput.d.ts +18 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputCode.mjs +36 -39
- 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 +1 -1
- 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 +31 -55
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +13 -24
- package/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- 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 +31 -37
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.d.ts +2 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- 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 +29 -33
- package/components/MazTable.d.ts +8 -2
- 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 +11 -11
- package/components/MazTextarea.d.ts +58 -32
- package/components/MazTextarea.mjs +128 -109
- 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/MazBackdrop.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/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/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.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/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/MazTabsContentItem.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-CqppWg2j.mjs → MazBadge-DCzaExPj.mjs} +2 -2
- package/components/chunks/MazBottomSheet-DGsGO0zo.mjs +224 -0
- package/components/chunks/MazBtn-4-B-zs6Y.mjs +103 -0
- package/components/chunks/MazBtn-BS2kvd1Z.mjs +103 -0
- package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
- package/components/chunks/MazBtn-C60T0UDa.mjs +103 -0
- package/components/chunks/MazBtn-C6zsmGnw.mjs +103 -0
- package/components/chunks/MazBtn-C7yEnuOD.mjs +103 -0
- package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
- package/components/chunks/MazBtn-CsLtHm4K.mjs +103 -0
- package/components/chunks/MazBtn-D1jMqwE1.mjs +103 -0
- package/components/chunks/MazBtn-DAXwt847.mjs +103 -0
- package/components/chunks/MazBtn-DOWVQgpN.mjs +103 -0
- package/components/chunks/MazBtn-DZaVjTvW.mjs +103 -0
- package/components/chunks/MazBtn-ZAcYNusG.mjs +103 -0
- package/components/chunks/MazBtn-oZhhJy09.mjs +103 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-98OuVlyK.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-COTaKhKF.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BNvSeNBP.mjs} +63 -59
- package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-CCma_qyQ.mjs} +63 -59
- package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-eOEEACaM.mjs} +64 -60
- package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-Bb_70sf5.mjs} +110 -111
- package/components/chunks/MazDialog-Ca3jJ12T.mjs +297 -0
- package/components/chunks/MazDialogPromise-DOnmLhui.mjs +551 -0
- package/components/chunks/MazDrawer-Bas9dy0D.mjs +226 -0
- package/components/chunks/MazDropdown-0r445NfW.mjs +426 -0
- package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-r8SBTCgJ.mjs} +42 -45
- package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-xPp1apvO.mjs} +94 -97
- package/components/chunks/MazIcon-BoTByt7n.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
- package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-kLACGOa2.mjs} +4 -3
- package/components/chunks/MazInput-BM4n-byz.mjs +313 -0
- package/components/chunks/MazInput-BcutbP8N.mjs +314 -0
- package/components/chunks/MazInput-C9Qh4Gt3.mjs +324 -0
- package/components/chunks/MazInputNumber-DgjOMiOt.mjs +600 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-D6fJN9yv.mjs} +200 -169
- package/components/chunks/{MazInputTags-Dj3sW-e5.mjs → MazInputTags-DthGSyHQ.mjs} +251 -223
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-tud3eDgU.mjs} +1 -1
- package/components/chunks/MazLoadingBar-C2qPjfEQ.mjs +36 -0
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/MazPhoneNumberInput-BQjByOtQ.mjs +1813 -0
- package/components/chunks/MazPicker-BljfUneI.mjs +2486 -0
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-CEVb4BXw.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-DayGMC9m.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-DC1lFIbp.mjs} +1 -1
- package/components/chunks/MazSelect-CH3JdigO.mjs +867 -0
- package/components/chunks/MazSelect-D3KXcHJS.mjs +550 -0
- package/components/chunks/MazSpinner-B5JChIrj.mjs +34 -0
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-BBZoDxwq.mjs} +1 -1
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-BIPm54-3.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/MazSpinner-C-ln9ldX.mjs +34 -0
- package/components/chunks/MazSpinner-C11EOZZd.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C6h03sqc.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-CCc9ajpj.mjs} +1 -1
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CgKOIkQQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner-Cp_nPioh.mjs} +1 -1
- package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-CwdlrYSt.mjs} +1 -1
- package/components/chunks/MazSpinner-D5Sbo759.mjs +34 -0
- package/components/chunks/MazSpinner-DPur0-r-.mjs +34 -0
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +34 -0
- package/components/chunks/MazSpinner-DoPIk0St.mjs +34 -0
- package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-DqD51Fb6.mjs} +1 -1
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZFhNCy24.mjs +34 -0
- package/components/chunks/MazSpinner-b90e3OQK.mjs +34 -0
- package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
- package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BU3Hluiu.mjs} +85 -81
- package/components/chunks/MazTableCell-DKMZAanm.mjs +23 -0
- package/components/chunks/MazTableRow-CDHpmXfw.mjs +30 -0
- package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-BSFZ84Ob.mjs} +4 -4
- package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar--Xq_cpuz.mjs} +62 -78
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-Cedz9Ree.mjs} +8 -8
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-CFge_w1W.cjs +1 -0
- package/modules/chunks/MazBtn-yNCoLFA6.mjs +103 -0
- package/modules/chunks/{MazIcon-DEgoQbMj.mjs → MazIcon-C3__MBEL.mjs} +4 -3
- package/modules/chunks/{MazIcon-CkuzyufF.cjs → MazIcon-CqhvM2xp.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BurN-1pb.mjs → MazSpinner-C4XtaFJk.mjs} +1 -1
- package/modules/chunks/{MazSpinner-jP4QsCNE.cjs → MazSpinner-DkJAN36F.cjs} +1 -1
- package/modules/chunks/index-Bawg2UGE.cjs +124 -0
- package/modules/chunks/{index-CxFUggmu.mjs → index-CXu9R01-.mjs} +1207 -962
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +23 -22
- 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 +23 -14
- package/types/components/MazBadge.vue.d.ts +7 -2
- package/types/components/MazBottomSheet.vue.d.ts +13 -25
- 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/MazCheckbox.vue.d.ts +4 -3
- package/types/components/MazChecklist.vue.d.ts +2 -5
- package/types/components/MazCircularProgressBar.vue.d.ts +31 -60
- package/types/components/MazDialog.vue.d.ts +24 -33
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +9 -5
- 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 +18 -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 +31 -55
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +13 -24
- package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- 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 +2 -2
- 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 +8 -2
- 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 +8 -8
- package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
- package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
- package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/MazPhoneNumberInput.d.ts +0 -239
- package/components/chunks/MazBottomSheet-CGRvZmGd.mjs +0 -208
- package/components/chunks/MazBtn-2VKM1wZu.mjs +0 -106
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BMYXMZuX.mjs +0 -106
- package/components/chunks/MazBtn-BijEMn4r.mjs +0 -106
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-DfqRZvbB.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cDJlUVVY.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazDialog-khofH-7I.mjs +0 -237
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +0 -488
- package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
- package/components/chunks/MazInput-DC3S-CVu.mjs +0 -282
- package/components/chunks/MazInput-DzWkS-g8.mjs +0 -293
- package/components/chunks/MazInput-NE6H-10w.mjs +0 -281
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazLoadingBar-DdjHRC7g.mjs +0 -32
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazPhoneNumberInput-BbssOUzo.mjs +0 -1778
- package/components/chunks/MazPicker-DwWiIYAR.mjs +0 -2456
- package/components/chunks/MazSelect-BJ07NVXQ.mjs +0 -843
- package/components/chunks/MazSelect-CDV9Fx6m.mjs +0 -556
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CykRbNHD.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-Dmkr_r9u.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
- package/components/chunks/MazTableCell-DILuUCTe.mjs +0 -23
- package/components/chunks/MazTableRow-D6H6-c8J.mjs +0 -30
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
- package/modules/chunks/MazBtn-B_Xlvgbg.cjs +0 -1
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +0 -106
- package/modules/chunks/index-CUNN0eIB.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -239
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import '../assets/MazGallery.css';var Ae = Object.defineProperty;
|
|
2
2
|
var Ie = (o, e, t) => e in o ? Ae(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var g = (o, e, t) => Ie(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { createVNode as z, render as M, defineComponent as
|
|
5
|
-
function
|
|
4
|
+
import { createVNode as z, render as M, defineComponent as ae, 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
8
|
t && M(null, t);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const a = { ...e == null ? void 0 : e.props, destroy: s }, l = z(
|
|
11
11
|
o,
|
|
12
|
-
|
|
12
|
+
a,
|
|
13
13
|
e == null ? void 0 : e.children
|
|
14
14
|
);
|
|
15
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
|
-
function
|
|
17
|
+
function Se(o, e, t) {
|
|
18
18
|
const s = {
|
|
19
19
|
maxAttempts: 20,
|
|
20
20
|
interval: 100,
|
|
21
21
|
...t
|
|
22
22
|
};
|
|
23
|
-
let
|
|
23
|
+
let a = 0;
|
|
24
24
|
function l() {
|
|
25
25
|
const u = o();
|
|
26
|
-
u != null ? s.expectedValue !== void 0 && u !== s.expectedValue ?
|
|
26
|
+
u != null ? s.expectedValue !== void 0 && u !== s.expectedValue ? a < s.maxAttempts ? (a++, setTimeout(l, s.interval)) : console.warn(s.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${s.maxAttempts} attempts for ref ${u}`) : e(u) : a < s.maxAttempts ? (a++, setTimeout(l, s.interval)) : console.warn(s.errorMessage || `[maz-ui](checkAvailability) Nothing found or expected value after ${s.maxAttempts} attempts for ref ${u}`);
|
|
27
27
|
}
|
|
28
28
|
l();
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ ae({
|
|
31
31
|
__name: "MazFullscreenImg",
|
|
32
32
|
props: {
|
|
33
33
|
src: {},
|
|
@@ -45,7 +45,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["close", "previous", "next", "before-close"],
|
|
47
47
|
setup(o, { emit: e }) {
|
|
48
|
-
const t = o, s = e,
|
|
48
|
+
const t = o, s = e, a = N(() => import("./MazSpinner-DqD51Fb6.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
49
|
running: !1,
|
|
50
50
|
ended: !1
|
|
51
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(() => ({
|
|
@@ -54,12 +54,12 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
54
54
|
"--absolute": !m.value
|
|
55
55
|
}));
|
|
56
56
|
function ue() {
|
|
57
|
-
var n,
|
|
58
|
-
v.value && (H.value = ((n = v.value) == null ? void 0 : n.naturalWidth) > ((
|
|
57
|
+
var n, r;
|
|
58
|
+
v.value && (H.value = ((n = v.value) == null ? void 0 : n.naturalWidth) > ((r = v.value) == null ? void 0 : r.naturalHeight)), y.value = !0, x.value = !1, L.value = !0;
|
|
59
59
|
}
|
|
60
60
|
we(
|
|
61
61
|
L,
|
|
62
|
-
|
|
62
|
+
(n) => {
|
|
63
63
|
n && ge();
|
|
64
64
|
},
|
|
65
65
|
{ immediate: !0 }
|
|
@@ -79,22 +79,22 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
79
79
|
function Y() {
|
|
80
80
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
81
81
|
}
|
|
82
|
-
function he(n,
|
|
83
|
-
return
|
|
82
|
+
function he(n, r) {
|
|
83
|
+
return r < 0 ? n.length - 1 : r >= n.length ? 0 : r;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
n.classList.remove(t.openInstanceClass),
|
|
87
|
-
const i =
|
|
85
|
+
function fe(n, r) {
|
|
86
|
+
n.classList.remove(t.openInstanceClass), r.classList.add(t.openInstanceClass);
|
|
87
|
+
const i = r.getAttribute("data-src"), f = r.getAttribute("data-alt");
|
|
88
88
|
q.value = f, D.value = i ?? D.value;
|
|
89
89
|
}
|
|
90
90
|
function U(n) {
|
|
91
91
|
$.value = !0;
|
|
92
|
-
const
|
|
92
|
+
const r = document.querySelector(
|
|
93
93
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
94
94
|
);
|
|
95
|
-
if (
|
|
96
|
-
const i = Y(), f = i.indexOf(
|
|
97
|
-
d.value = E, E && fe(
|
|
95
|
+
if (r) {
|
|
96
|
+
const i = Y(), f = i.indexOf(r), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
|
|
97
|
+
d.value = E, E && fe(r, E), s(n), y.value = !1, x.value = !0, Se(() => y.value === !0, () => {
|
|
98
98
|
$.value = !1, m.value ? K() : P();
|
|
99
99
|
}, {
|
|
100
100
|
expectedValue: !0,
|
|
@@ -111,40 +111,40 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
111
111
|
}
|
|
112
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"));
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
function ve() {
|
|
115
115
|
m.value ? (m.value = !m.value, P()) : (m.value = !m.value, K());
|
|
116
116
|
}
|
|
117
117
|
function X(n) {
|
|
118
118
|
var i;
|
|
119
119
|
c.running = !0, $.value = !1;
|
|
120
|
-
const
|
|
120
|
+
const r = (i = v.value) == null ? void 0 : i.animate(n, {
|
|
121
121
|
duration: t.animation.duration,
|
|
122
122
|
easing: t.animation.easing
|
|
123
123
|
});
|
|
124
|
-
if (!
|
|
124
|
+
if (!r) {
|
|
125
125
|
console.error("[maz-ui](vFullscreenImg) animation is not defined"), c.running = !1, c.ended = !0;
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
return
|
|
128
|
+
return r;
|
|
129
129
|
}
|
|
130
130
|
function Q(n = t.offset ?? 0) {
|
|
131
|
-
const
|
|
132
|
-
(f - 2 * n) /
|
|
131
|
+
const r = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
|
|
132
|
+
(f - 2 * n) / r,
|
|
133
133
|
(I - 2 * n) / i
|
|
134
|
-
), W = (f -
|
|
134
|
+
), W = (f - r * E) / 2, Z = (I - i * E) / 2;
|
|
135
135
|
return {
|
|
136
136
|
centerX: W,
|
|
137
|
-
centerY:
|
|
138
|
-
width:
|
|
137
|
+
centerY: Z,
|
|
138
|
+
width: r,
|
|
139
139
|
height: i,
|
|
140
140
|
scale: E
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
function J({ trigger: n }) {
|
|
144
|
-
const { width:
|
|
144
|
+
const { width: r, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left: Z, width: ye, height: be } = le.value, te = [
|
|
145
145
|
{
|
|
146
146
|
top: `${W}px`,
|
|
147
|
-
left: `${
|
|
147
|
+
left: `${Z}px`,
|
|
148
148
|
width: `${ye}px`,
|
|
149
149
|
height: `${be}px`,
|
|
150
150
|
opacity: 0
|
|
@@ -152,7 +152,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
152
152
|
{
|
|
153
153
|
top: `${E}px`,
|
|
154
154
|
left: `${I}px`,
|
|
155
|
-
width: `${
|
|
155
|
+
width: `${r * f}px`,
|
|
156
156
|
height: `${i * f}px`,
|
|
157
157
|
opacity: 1
|
|
158
158
|
}
|
|
@@ -162,12 +162,12 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
function P() {
|
|
165
|
-
const { height: n, width:
|
|
166
|
-
width: `${
|
|
165
|
+
const { height: n, width: r, scale: i } = Q(), f = H.value ? {
|
|
166
|
+
width: `${r * i}px`,
|
|
167
167
|
maxHeight: `${n * i}px`
|
|
168
168
|
} : {
|
|
169
169
|
height: `${n * i}px`,
|
|
170
|
-
maxWidth: `${
|
|
170
|
+
maxWidth: `${r * i}px`
|
|
171
171
|
};
|
|
172
172
|
if (!v.value) {
|
|
173
173
|
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
@@ -178,28 +178,28 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
178
178
|
function ge() {
|
|
179
179
|
const { frames: n } = J({
|
|
180
180
|
trigger: "open"
|
|
181
|
-
}),
|
|
182
|
-
if (!
|
|
181
|
+
}), r = X(n);
|
|
182
|
+
if (!r) {
|
|
183
183
|
console.error("[maz-ui](vFullscreenImg) open animation is not defined"), P();
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
r.onfinish = () => {
|
|
187
187
|
P(), c.running = !1, c.ended = !0;
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
function pe() {
|
|
191
191
|
const { frames: n } = J({
|
|
192
192
|
trigger: "close"
|
|
193
|
-
}),
|
|
193
|
+
}), r = X(n);
|
|
194
194
|
function i() {
|
|
195
195
|
var f, I;
|
|
196
196
|
s("close"), (f = j.value) == null || f.remove(), (I = t.destroy) == null || I.call(t), c.running = !1, c.ended = !0;
|
|
197
197
|
}
|
|
198
|
-
if (!
|
|
198
|
+
if (!r) {
|
|
199
199
|
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), i();
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
r.onfinish = i;
|
|
203
203
|
}
|
|
204
204
|
function ee() {
|
|
205
205
|
m.value || P();
|
|
@@ -208,7 +208,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
208
208
|
x.value = !0, document.addEventListener("keydown", G), window.addEventListener("resize", ee), me(), h.value = Y().length > 1;
|
|
209
209
|
}), Le(() => {
|
|
210
210
|
document.removeEventListener("keydown", G), window.removeEventListener("resize", ee), de();
|
|
211
|
-
}), (n,
|
|
211
|
+
}), (n, r) => (b(), A("div", {
|
|
212
212
|
ref_key: "FullscreenImgElement",
|
|
213
213
|
ref: j,
|
|
214
214
|
role: "button",
|
|
@@ -221,7 +221,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
221
221
|
key: 0,
|
|
222
222
|
type: "button",
|
|
223
223
|
class: "m-fullscreen-btn --next",
|
|
224
|
-
onClick:
|
|
224
|
+
onClick: r[0] || (r[0] = O((i) => U("next"), ["stop"]))
|
|
225
225
|
}, [
|
|
226
226
|
z(w(u), { class: "maz-rotate-180" })
|
|
227
227
|
])) : S("v-if", !0),
|
|
@@ -229,7 +229,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
229
229
|
key: 1,
|
|
230
230
|
type: "button",
|
|
231
231
|
class: "m-fullscreen-btn --previous",
|
|
232
|
-
onClick:
|
|
232
|
+
onClick: r[1] || (r[1] = O((i) => U("previous"), ["stop"]))
|
|
233
233
|
}, [
|
|
234
234
|
z(w(u))
|
|
235
235
|
])) : S("v-if", !0),
|
|
@@ -240,7 +240,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
240
240
|
}, [
|
|
241
241
|
z(w(l))
|
|
242
242
|
]),
|
|
243
|
-
k("div",
|
|
243
|
+
k("div", $e, [
|
|
244
244
|
k("img", {
|
|
245
245
|
ref_key: "ImgElement",
|
|
246
246
|
ref: v,
|
|
@@ -249,10 +249,10 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
249
249
|
tabindex: "0",
|
|
250
250
|
class: R([ce.value]),
|
|
251
251
|
onLoad: ue,
|
|
252
|
-
onClick:
|
|
253
|
-
}, null, 42,
|
|
252
|
+
onClick: r[2] || (r[2] = O((i) => n.zoom && ve(), ["stop"]))
|
|
253
|
+
}, null, 42, Be),
|
|
254
254
|
T(z(
|
|
255
|
-
w(
|
|
255
|
+
w(a),
|
|
256
256
|
{ class: "m-fullscreen-img-loader" },
|
|
257
257
|
null,
|
|
258
258
|
512
|
|
@@ -261,15 +261,15 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
261
261
|
[ze, x.value]
|
|
262
262
|
])
|
|
263
263
|
])
|
|
264
|
-
], 40,
|
|
264
|
+
], 40, He));
|
|
265
265
|
}
|
|
266
266
|
}), ie = (o, e) => {
|
|
267
267
|
const t = o.__vccOpts || o;
|
|
268
|
-
for (const [s,
|
|
269
|
-
t[s] =
|
|
268
|
+
for (const [s, a] of e)
|
|
269
|
+
t[s] = a;
|
|
270
270
|
return t;
|
|
271
|
-
},
|
|
272
|
-
class
|
|
271
|
+
}, _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-4a73acb2"]]), re = "m-fullscreen-is-open";
|
|
272
|
+
class Fe {
|
|
273
273
|
constructor() {
|
|
274
274
|
g(this, "options");
|
|
275
275
|
g(this, "defaultOptions", {
|
|
@@ -288,11 +288,11 @@ class Ne {
|
|
|
288
288
|
g(this, "renderPreviewListener");
|
|
289
289
|
}
|
|
290
290
|
buildOptions(e, t) {
|
|
291
|
-
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 },
|
|
291
|
+
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, a = (s == null ? void 0 : s.src) ?? this.getImgSrc(e), l = (s == null ? void 0 : s.alt) ?? this.getImgAlt(e);
|
|
292
292
|
return {
|
|
293
293
|
...this.defaultOptions,
|
|
294
294
|
...s,
|
|
295
|
-
src:
|
|
295
|
+
src: a,
|
|
296
296
|
alt: l
|
|
297
297
|
};
|
|
298
298
|
}
|
|
@@ -326,10 +326,10 @@ class Ne {
|
|
|
326
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 = "";
|
|
327
327
|
}
|
|
328
328
|
renderPreview(e) {
|
|
329
|
-
return e.classList.add(
|
|
329
|
+
return e.classList.add(re), Oe(_e, {
|
|
330
330
|
props: {
|
|
331
331
|
...this.options,
|
|
332
|
-
openInstanceClass:
|
|
332
|
+
openInstanceClass: re,
|
|
333
333
|
clickedElement: e,
|
|
334
334
|
clickedElementBounds: e.getBoundingClientRect()
|
|
335
335
|
},
|
|
@@ -344,9 +344,9 @@ class Ne {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
let _;
|
|
347
|
-
const
|
|
347
|
+
const V = {
|
|
348
348
|
mounted(o, e) {
|
|
349
|
-
return _ = new
|
|
349
|
+
return _ = new Fe(), _.create(o, e);
|
|
350
350
|
},
|
|
351
351
|
updated(o, e) {
|
|
352
352
|
return _.update(o, e);
|
|
@@ -354,7 +354,7 @@ const Z = {
|
|
|
354
354
|
unmounted(o) {
|
|
355
355
|
return _.remove(o);
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, Ne = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Re = {
|
|
358
358
|
baseClass: "m-lazy-img",
|
|
359
359
|
loadedClass: "m-lazy-loaded",
|
|
360
360
|
loadingClass: "m-lazy-loading",
|
|
@@ -368,10 +368,10 @@ const Z = {
|
|
|
368
368
|
threshold: 0.1
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
class
|
|
371
|
+
class Te {
|
|
372
372
|
constructor(e = {}) {
|
|
373
373
|
g(this, "observers", []);
|
|
374
|
-
g(this, "defaultOptions",
|
|
374
|
+
g(this, "defaultOptions", Re);
|
|
375
375
|
g(this, "options");
|
|
376
376
|
g(this, "onImgLoadedCallback");
|
|
377
377
|
g(this, "onImgErrorCallback");
|
|
@@ -430,9 +430,9 @@ class De {
|
|
|
430
430
|
const t = e.querySelectorAll("source");
|
|
431
431
|
if (t.length > 0)
|
|
432
432
|
for await (const s of t) {
|
|
433
|
-
const
|
|
434
|
-
if (
|
|
435
|
-
s.srcset =
|
|
433
|
+
const a = s.getAttribute("data-lazy-srcset");
|
|
434
|
+
if (a)
|
|
435
|
+
s.srcset = a;
|
|
436
436
|
else
|
|
437
437
|
return this.imageHasError(e);
|
|
438
438
|
}
|
|
@@ -453,9 +453,9 @@ class De {
|
|
|
453
453
|
return;
|
|
454
454
|
const t = this.options.fallbackSrc ?? this.options.errorPhoto;
|
|
455
455
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
456
|
-
const s = t ?? await this.loadErrorPhoto(),
|
|
457
|
-
if (
|
|
458
|
-
for await (const l of
|
|
456
|
+
const s = t ?? await this.loadErrorPhoto(), a = e.querySelectorAll("source");
|
|
457
|
+
if (a.length > 0)
|
|
458
|
+
for await (const l of a)
|
|
459
459
|
l.srcset = s;
|
|
460
460
|
else
|
|
461
461
|
this.setImgSrc(e, s);
|
|
@@ -480,12 +480,12 @@ class De {
|
|
|
480
480
|
const s = this.getImgElement(e);
|
|
481
481
|
s.src = t;
|
|
482
482
|
}
|
|
483
|
-
handleIntersectionObserver(e, t, s,
|
|
483
|
+
handleIntersectionObserver(e, t, s, a) {
|
|
484
484
|
var l, u;
|
|
485
|
-
this.observers.push(
|
|
485
|
+
this.observers.push(a);
|
|
486
486
|
for (const y of s)
|
|
487
487
|
if (y.isIntersecting) {
|
|
488
|
-
if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce &&
|
|
488
|
+
if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce && a.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
489
489
|
return;
|
|
490
490
|
this.loadImage(e, t);
|
|
491
491
|
}
|
|
@@ -493,12 +493,12 @@ class De {
|
|
|
493
493
|
createObserver(e, t) {
|
|
494
494
|
const s = (u, y) => {
|
|
495
495
|
this.handleIntersectionObserver(e, t, u, y);
|
|
496
|
-
},
|
|
497
|
-
new IntersectionObserver(s,
|
|
496
|
+
}, a = this.options.observerOptions;
|
|
497
|
+
new IntersectionObserver(s, a).observe(e);
|
|
498
498
|
}
|
|
499
499
|
async imageHandler(e, t, s) {
|
|
500
500
|
if (s === "update")
|
|
501
|
-
for await (const
|
|
501
|
+
for await (const a of this.observers) a.unobserve(e);
|
|
502
502
|
window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
|
|
503
503
|
}
|
|
504
504
|
async bindUpdateHandler(e, t, s) {
|
|
@@ -509,7 +509,7 @@ class De {
|
|
|
509
509
|
async add(e, t) {
|
|
510
510
|
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
511
511
|
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
512
|
-
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");
|
|
513
513
|
}
|
|
514
514
|
async update(e, t) {
|
|
515
515
|
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
@@ -522,10 +522,10 @@ class De {
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
let F;
|
|
525
|
-
const
|
|
525
|
+
const De = {
|
|
526
526
|
created(o, e) {
|
|
527
527
|
const t = typeof e.value == "object" ? e.value : {};
|
|
528
|
-
F = new
|
|
528
|
+
F = new Te(t), F.add(o, e);
|
|
529
529
|
},
|
|
530
530
|
updated(o, e) {
|
|
531
531
|
F.update(o, e);
|
|
@@ -533,10 +533,10 @@ const Ue = {
|
|
|
533
533
|
unmounted(o, e) {
|
|
534
534
|
F.remove(o, e);
|
|
535
535
|
}
|
|
536
|
-
},
|
|
536
|
+
}, Ue = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, We = ["alt"], Ze = {
|
|
537
537
|
key: 0,
|
|
538
538
|
class: "m-gallery__remaining-layer maz-flex maz-bg-overlay maz-flex-center"
|
|
539
|
-
},
|
|
539
|
+
}, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */ ae({
|
|
540
540
|
__name: "MazGallery",
|
|
541
541
|
props: {
|
|
542
542
|
/**
|
|
@@ -574,11 +574,8 @@ const Ue = {
|
|
|
574
574
|
separatorColor: { type: String, default: "transparent" }
|
|
575
575
|
},
|
|
576
576
|
setup(o) {
|
|
577
|
-
ke((h) => ({
|
|
578
|
-
"37b3f3e3": o.separatorColor
|
|
579
|
-
}));
|
|
580
577
|
const e = o, t = N(() => import("./no-photography-PGT8fxs_.mjs"));
|
|
581
|
-
|
|
578
|
+
ke(() => {
|
|
582
579
|
e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
|
|
583
580
|
});
|
|
584
581
|
const s = C(() => {
|
|
@@ -593,9 +590,9 @@ const Ue = {
|
|
|
593
590
|
minHeight: typeof d == "number" ? `${d}px` : `${d}`
|
|
594
591
|
}
|
|
595
592
|
};
|
|
596
|
-
}),
|
|
593
|
+
}), a = C(() => e.imagesShownCount <= 5 ? e.imagesShownCount : 5), l = C(() => e.images.length - (e.images.length < a.value ? e.images.length : a.value)), u = C(() => e.images.map(
|
|
597
594
|
(h) => typeof h == "object" ? { ...h, thumbnail: h.thumbnail ?? h.src } : { src: h, thumbnail: h, alt: void 0 }
|
|
598
|
-
)), y = C(() => u.value.slice(0,
|
|
595
|
+
)), y = C(() => u.value.slice(0, a.value)), x = C(() => u.value.slice(a.value, e.images.length));
|
|
599
596
|
function L(h) {
|
|
600
597
|
return e.noRemaining ? !1 : (l.value && h + 1) === y.value.length;
|
|
601
598
|
}
|
|
@@ -604,10 +601,10 @@ const Ue = {
|
|
|
604
601
|
{
|
|
605
602
|
key: 0,
|
|
606
603
|
class: R(["m-gallery maz-flex", { "maz-rounded": !o.noRadius }]),
|
|
607
|
-
style: se([s.value])
|
|
604
|
+
style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
|
|
608
605
|
},
|
|
609
606
|
[
|
|
610
|
-
k("section",
|
|
607
|
+
k("section", Ue, [
|
|
611
608
|
(b(!0), A(
|
|
612
609
|
ne,
|
|
613
610
|
null,
|
|
@@ -623,9 +620,9 @@ const Ue = {
|
|
|
623
620
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
624
621
|
alt: c.alt,
|
|
625
622
|
loading: "lazy"
|
|
626
|
-
}, null, 8,
|
|
627
|
-
[w(
|
|
628
|
-
[w(
|
|
623
|
+
}, null, 8, We), [
|
|
624
|
+
[w(De), { src: c.thumbnail, disabled: !o.lazy }, "bg-image"],
|
|
625
|
+
[w(V), {
|
|
629
626
|
src: c.src,
|
|
630
627
|
alt: c.alt,
|
|
631
628
|
disabled: o.noZoom || L(d),
|
|
@@ -636,13 +633,13 @@ const Ue = {
|
|
|
636
633
|
L(d) ? T((b(), A("div", Ze, [
|
|
637
634
|
k(
|
|
638
635
|
"span",
|
|
639
|
-
|
|
640
|
-
"+" +
|
|
636
|
+
Ve,
|
|
637
|
+
"+" + Pe(l.value),
|
|
641
638
|
1
|
|
642
639
|
/* TEXT */
|
|
643
640
|
)
|
|
644
641
|
])), [
|
|
645
|
-
[w(
|
|
642
|
+
[w(V), {
|
|
646
643
|
src: c.src,
|
|
647
644
|
alt: c.alt,
|
|
648
645
|
disabled: o.noZoom,
|
|
@@ -678,7 +675,7 @@ const Ue = {
|
|
|
678
675
|
key: d,
|
|
679
676
|
class: "m-gallery__hidden"
|
|
680
677
|
})), [
|
|
681
|
-
[w(
|
|
678
|
+
[w(V), { src: c.src, disabled: o.noZoom }]
|
|
682
679
|
])),
|
|
683
680
|
128
|
|
684
681
|
/* KEYED_FRAGMENT */
|
|
@@ -688,8 +685,8 @@ const Ue = {
|
|
|
688
685
|
/* CLASS, STYLE */
|
|
689
686
|
)) : S("v-if", !0);
|
|
690
687
|
}
|
|
691
|
-
}),
|
|
688
|
+
}), Ye = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-3b59e0cd"]]);
|
|
692
689
|
export {
|
|
693
|
-
|
|
690
|
+
Ye as M,
|
|
694
691
|
ie as _
|
|
695
692
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./inject-strict-
|
|
2
|
+
import { i as q } from "./inject-strict-DEDSuzCz.mjs";
|
|
3
3
|
const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -54,8 +54,9 @@ const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
|
54
54
|
return r;
|
|
55
55
|
}
|
|
56
56
|
function E(e) {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
e.cloneNode(!0);
|
|
58
|
+
const r = o.transformSource(e);
|
|
59
|
+
return o.title && h(r, o.title), e.innerHTML;
|
|
59
60
|
}
|
|
60
61
|
async function M(e) {
|
|
61
62
|
s[e] || (s[e] = z(e));
|
|
@@ -2,7 +2,7 @@ import { inject as T, defineComponent as x, ref as m, computed as p, onMounted a
|
|
|
2
2
|
function H(i, c) {
|
|
3
3
|
const o = T(i, c);
|
|
4
4
|
if (!o)
|
|
5
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${i}`);
|
|
5
|
+
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${i.toString()}`);
|
|
6
6
|
return o;
|
|
7
7
|
}
|
|
8
8
|
const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
@@ -26,7 +26,7 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["loaded", "unloaded", "error"],
|
|
28
28
|
setup(i, { emit: c }) {
|
|
29
|
-
const o = i, d = c,
|
|
29
|
+
const o = i, d = c, a = {}, s = m(), f = m();
|
|
30
30
|
function g() {
|
|
31
31
|
try {
|
|
32
32
|
return H("mazIconPath");
|
|
@@ -59,15 +59,16 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
59
59
|
return r;
|
|
60
60
|
}
|
|
61
61
|
function y(e) {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
e.cloneNode(!0);
|
|
63
|
+
const r = o.transformSource(e);
|
|
64
|
+
return o.title && h(r, o.title), e.innerHTML;
|
|
64
65
|
}
|
|
65
66
|
async function z(e) {
|
|
66
|
-
|
|
67
|
+
a[e] || (a[e] = M(e));
|
|
67
68
|
try {
|
|
68
|
-
|
|
69
|
+
s.value = await a[e], await q(), d("loaded", f.value);
|
|
69
70
|
} catch (r) {
|
|
70
|
-
|
|
71
|
+
s.value && (s.value = void 0, d("unloaded")), delete a[e], d("error", r);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
function M(e) {
|
|
@@ -78,26 +79,26 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
78
79
|
try {
|
|
79
80
|
let u = new DOMParser().parseFromString(n.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
80
81
|
u ? (u = o.transformSource(u), r(u)) : t(new Error('Loaded file is not valid SVG"'));
|
|
81
|
-
} catch (
|
|
82
|
-
t(
|
|
82
|
+
} catch (l) {
|
|
83
|
+
t(l);
|
|
83
84
|
}
|
|
84
85
|
else
|
|
85
86
|
t(new Error("Error loading SVG"));
|
|
86
|
-
}), n.addEventListener("error", (
|
|
87
|
+
}), n.addEventListener("error", (l) => t(l)), n.send();
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
|
-
return C(() => z(S.value)), (e, r) =>
|
|
90
|
+
return C(() => z(S.value)), (e, r) => s.value ? (P(), _("svg", $({
|
|
90
91
|
key: 0,
|
|
91
92
|
ref_key: "svgElem",
|
|
92
93
|
ref: f,
|
|
93
94
|
width: "1em",
|
|
94
95
|
height: "1em"
|
|
95
96
|
}, {
|
|
96
|
-
...E(
|
|
97
|
+
...E(s.value),
|
|
97
98
|
...w(e.$attrs)
|
|
98
99
|
}, {
|
|
99
100
|
style: `font-size: ${i.size}`,
|
|
100
|
-
innerHTML: y(
|
|
101
|
+
innerHTML: y(s.value)
|
|
101
102
|
}), null, 16, I)) : A("v-if", !0);
|
|
102
103
|
}
|
|
103
104
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./MazPhoneNumberInput-
|
|
2
|
+
import { i as q } from "./MazPhoneNumberInput-BQjByOtQ.mjs";
|
|
3
3
|
const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -54,8 +54,9 @@ const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
|
54
54
|
return r;
|
|
55
55
|
}
|
|
56
56
|
function E(e) {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
e.cloneNode(!0);
|
|
58
|
+
const r = o.transformSource(e);
|
|
59
|
+
return o.title && h(r, o.title), e.innerHTML;
|
|
59
60
|
}
|
|
60
61
|
async function M(e) {
|
|
61
62
|
s[e] || (s[e] = z(e));
|