maz-ui 3.47.2-beta.9 → 3.48.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAccordion.mjs +76 -77
- package/components/MazAnimatedCounter.mjs +7 -7
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +21 -13
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.mjs +2 -2
- package/components/MazBottomSheet.d.ts +11 -24
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +7 -7
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +13 -13
- package/components/MazCheckbox.mjs +36 -37
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +18 -0
- package/components/MazCircularProgressBar.mjs +40 -38
- package/components/MazDialog.d.ts +20 -31
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +7 -4
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.mjs +8 -8
- package/components/MazFullscreenLoader.mjs +2 -40
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +9 -8
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +2 -2
- package/components/MazLink.mjs +6 -6
- package/components/MazLoadingBar.mjs +17 -17
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- 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.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +18 -19
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +15 -15
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +31 -31
- package/components/MazSpinner.mjs +7 -7
- package/components/MazStepper.d.ts +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +19 -20
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.mjs +6 -6
- package/components/MazTableTitle.mjs +11 -11
- package/components/MazTabs.d.ts +3 -3
- package/components/MazTabs.mjs +7 -7
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.mjs +10 -10
- package/components/MazTextarea.d.ts +26 -48
- package/components/MazTextarea.mjs +4 -5
- package/components/MazTransitionExpand.mjs +10 -10
- 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/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCarousel.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/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/MazDropzone.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazFullscreenLoader.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPickerYearSwitcher.css +1 -1
- package/components/assets/MazPullToRefresh.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazReadingProgressBar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSpinner.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
- package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
- package/components/chunks/MazBottomSheet-CMqzf-dT.mjs +224 -0
- package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
- package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
- package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
- package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
- package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
- package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
- package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
- package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
- package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-DETtZdlj.mjs} +3 -3
- package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
- package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
- package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
- package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
- package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
- package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-l54W3CUU.mjs} +3 -3
- package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
- package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
- package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
- package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-D-7-TdgO.mjs} +4 -4
- package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-DSfD55m5.mjs} +125 -126
- package/components/chunks/MazDialog-BjQ3ivmv.mjs +297 -0
- package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
- package/components/chunks/MazDrawer-BqNLfW4e.mjs +226 -0
- package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-DNXKdC_3.mjs} +5 -5
- package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
- package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
- package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-CzlKPQFX.mjs} +67 -67
- package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-DdZ3bFvX.mjs} +68 -68
- package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
- package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
- package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-DR6-win-.mjs} +12 -11
- package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
- package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BjnuoFvn.mjs} +36 -36
- package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-DB4HtpCQ.mjs} +13 -13
- package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-yBii2AFS.mjs} +27 -28
- package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-DqnLi9-C.mjs} +81 -82
- package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-Ca8mL53M.mjs} +44 -45
- package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-Bto9dVQq.mjs} +78 -79
- package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
- package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
- package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-DlUG7E5K.mjs} +3 -3
- package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
- package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
- package/components/chunks/MazPhoneNumberInput-C3j3JyDI.mjs +1813 -0
- package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-BUXJof_-.mjs} +19 -20
- package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
- package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
- package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BwahUlbE.mjs} +322 -326
- package/components/chunks/MazSelect-CBaOs6va.mjs +550 -0
- package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
- package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
- package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
- package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
- package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
- package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
- package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
- package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
- package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
- package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
- package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
- package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
- package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
- package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
- package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
- package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
- package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
- package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
- package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
- package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
- package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
- package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
- package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
- package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
- package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
- package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-Soe-MrTW.mjs} +79 -74
- package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
- package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
- package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
- package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar-8wchBiYF.mjs} +21 -21
- package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/MazSpinner.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-12ldn-IH.cjs +1 -0
- package/{components/chunks/MazBtn-BfIn7glE.mjs → modules/chunks/MazBtn-A18R0ZiR.mjs} +4 -4
- package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-D-FWXW5H.mjs} +12 -11
- package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-biM0ap4E.cjs} +1 -1
- package/modules/chunks/MazSpinner-BJJ4mYvt.cjs +1 -0
- package/{components/chunks/MazSpinner-BlbTztM3.mjs → modules/chunks/MazSpinner-wVcTxosW.mjs} +7 -7
- package/modules/chunks/index-BJbzM3Z0.cjs +124 -0
- package/modules/chunks/{index-Kry9j5uD.mjs → index-DGys9TOt.mjs} +1187 -951
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +5 -3
- package/tailwindcss/tailwind.css +0 -6
- package/tailwindcss/utils/colors.ts +9 -5
- package/tailwindcss/variables/utilities.ts +3 -0
- package/types/components/MazBackdrop.vue.d.ts +21 -13
- package/types/components/MazBottomSheet.vue.d.ts +11 -24
- package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
- package/types/components/MazDialog.vue.d.ts +20 -31
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +7 -4
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazLink.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- 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/MazSelect.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/components/MazTabs.vue.d.ts +3 -3
- package/types/components/MazTextarea.vue.d.ts +26 -48
- package/types/modules/composables/useFormValidator/types.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
- package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
- 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/tailwindcss/tailwind.config.d.ts +2 -2
- package/types/tailwindcss/utils/colors.d.ts +1 -1
- package/types/tailwindcss/variables/utilities.d.ts +3 -0
- package/components/MazPhoneNumberInput.d.ts +0 -240
- package/components/chunks/MazBottomSheet-D9EPpEV8.mjs +0 -208
- package/components/chunks/MazBtn-CB6xVwox.mjs +0 -103
- package/components/chunks/MazBtn-CIAdgMGr.mjs +0 -111
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +0 -103
- package/components/chunks/MazBtn-Chk7DWOF.mjs +0 -103
- package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
- package/components/chunks/MazBtn-DI80W9rl.mjs +0 -103
- package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
- package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
- package/components/chunks/MazDialog-XiX9LEiz.mjs +0 -237
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +0 -488
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
- package/components/chunks/MazPhoneNumberInput-B5Up8CqL.mjs +0 -1806
- package/components/chunks/MazSelect-DaDRzcT_.mjs +0 -552
- package/components/chunks/MazSpinner-C30YfScc.mjs +0 -34
- package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
- package/components/chunks/MazSpinner-CDx6lo7l.mjs +0 -34
- package/components/chunks/MazSpinner-C_GueolV.mjs +0 -34
- package/components/chunks/MazSpinner-Cc-KlPEG.mjs +0 -34
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
- package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
- package/components/chunks/MazSpinner-CxyUHAvm.mjs +0 -34
- package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
- package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
- package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
- package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +0 -34
- package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
- package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
- package/components/chunks/MazTableRow-CIO-x6Lb.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-0CRjeBvn.mjs +0 -103
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +0 -1
- package/modules/chunks/MazSpinner-DV--lwdI.mjs +0 -34
- package/modules/chunks/MazSpinner-DersvZQw.cjs +0 -1
- package/modules/chunks/index-DvromXrX.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -240
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
import { _ as ie } from "./MazCard-
|
|
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
|
+
import { _ as ie } from "./MazCard-l54W3CUU.mjs";
|
|
6
6
|
function Oe(o, e) {
|
|
7
7
|
let t = e == null ? void 0 : e.element;
|
|
8
8
|
function s() {
|
|
9
9
|
t && M(null, t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const a = { ...e == null ? void 0 : e.props, destroy: s }, l = z(
|
|
12
12
|
o,
|
|
13
|
-
|
|
13
|
+
a,
|
|
14
14
|
e == null ? void 0 : e.children
|
|
15
15
|
);
|
|
16
16
|
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 };
|
|
@@ -21,14 +21,14 @@ function Se(o, e, t) {
|
|
|
21
21
|
interval: 100,
|
|
22
22
|
...t
|
|
23
23
|
};
|
|
24
|
-
let
|
|
24
|
+
let a = 0;
|
|
25
25
|
function l() {
|
|
26
26
|
const u = o();
|
|
27
|
-
u != null ? s.expectedValue !== void 0 && u !== s.expectedValue ?
|
|
27
|
+
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}`);
|
|
28
28
|
}
|
|
29
29
|
l();
|
|
30
30
|
}
|
|
31
|
-
const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */
|
|
31
|
+
const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ ae({
|
|
32
32
|
__name: "MazFullscreenImg",
|
|
33
33
|
props: {
|
|
34
34
|
src: {},
|
|
@@ -46,7 +46,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["close", "previous", "next", "before-close"],
|
|
48
48
|
setup(o, { emit: e }) {
|
|
49
|
-
const t = o, s = e,
|
|
49
|
+
const t = o, s = e, a = N(() => import("./MazSpinner-Cmy2WyWY.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({
|
|
50
50
|
running: !1,
|
|
51
51
|
ended: !1
|
|
52
52
|
}), 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(() => ({
|
|
@@ -55,12 +55,12 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
55
55
|
"--absolute": !m.value
|
|
56
56
|
}));
|
|
57
57
|
function ue() {
|
|
58
|
-
var n,
|
|
59
|
-
v.value && (H.value = ((n = v.value) == null ? void 0 : n.naturalWidth) > ((
|
|
58
|
+
var n, r;
|
|
59
|
+
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;
|
|
60
60
|
}
|
|
61
61
|
we(
|
|
62
62
|
L,
|
|
63
|
-
|
|
63
|
+
(n) => {
|
|
64
64
|
n && ge();
|
|
65
65
|
},
|
|
66
66
|
{ immediate: !0 }
|
|
@@ -80,22 +80,22 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
80
80
|
function Y() {
|
|
81
81
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
82
82
|
}
|
|
83
|
-
function he(n,
|
|
84
|
-
return
|
|
83
|
+
function he(n, r) {
|
|
84
|
+
return r < 0 ? n.length - 1 : r >= n.length ? 0 : r;
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
n.classList.remove(t.openInstanceClass),
|
|
88
|
-
const i =
|
|
86
|
+
function fe(n, r) {
|
|
87
|
+
n.classList.remove(t.openInstanceClass), r.classList.add(t.openInstanceClass);
|
|
88
|
+
const i = r.getAttribute("data-src"), f = r.getAttribute("data-alt");
|
|
89
89
|
q.value = f, D.value = i ?? D.value;
|
|
90
90
|
}
|
|
91
91
|
function U(n) {
|
|
92
92
|
$.value = !0;
|
|
93
|
-
const
|
|
93
|
+
const r = document.querySelector(
|
|
94
94
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
95
95
|
);
|
|
96
|
-
if (
|
|
97
|
-
const i = Y(), f = i.indexOf(
|
|
98
|
-
d.value = E, E && fe(
|
|
96
|
+
if (r) {
|
|
97
|
+
const i = Y(), f = i.indexOf(r), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
|
|
98
|
+
d.value = E, E && fe(r, E), s(n), y.value = !1, x.value = !0, Se(() => y.value === !0, () => {
|
|
99
99
|
$.value = !1, m.value ? K() : P();
|
|
100
100
|
}, {
|
|
101
101
|
expectedValue: !0,
|
|
@@ -112,37 +112,37 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
112
112
|
}
|
|
113
113
|
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"));
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
function ve() {
|
|
116
116
|
m.value ? (m.value = !m.value, P()) : (m.value = !m.value, K());
|
|
117
117
|
}
|
|
118
118
|
function X(n) {
|
|
119
119
|
var i;
|
|
120
120
|
c.running = !0, $.value = !1;
|
|
121
|
-
const
|
|
121
|
+
const r = (i = v.value) == null ? void 0 : i.animate(n, {
|
|
122
122
|
duration: t.animation.duration,
|
|
123
123
|
easing: t.animation.easing
|
|
124
124
|
});
|
|
125
|
-
if (!
|
|
125
|
+
if (!r) {
|
|
126
126
|
console.error("[maz-ui](vFullscreenImg) animation is not defined"), c.running = !1, c.ended = !0;
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return r;
|
|
130
130
|
}
|
|
131
131
|
function Q(n = t.offset ?? 0) {
|
|
132
|
-
const
|
|
133
|
-
(f - 2 * n) /
|
|
132
|
+
const r = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
|
|
133
|
+
(f - 2 * n) / r,
|
|
134
134
|
(I - 2 * n) / i
|
|
135
|
-
), W = (f -
|
|
135
|
+
), W = (f - r * E) / 2, Z = (I - i * E) / 2;
|
|
136
136
|
return {
|
|
137
137
|
centerX: W,
|
|
138
138
|
centerY: Z,
|
|
139
|
-
width:
|
|
139
|
+
width: r,
|
|
140
140
|
height: i,
|
|
141
141
|
scale: E
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
function J({ trigger: n }) {
|
|
145
|
-
const { width:
|
|
145
|
+
const { width: r, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left: Z, width: ye, height: be } = le.value, te = [
|
|
146
146
|
{
|
|
147
147
|
top: `${W}px`,
|
|
148
148
|
left: `${Z}px`,
|
|
@@ -153,7 +153,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
153
153
|
{
|
|
154
154
|
top: `${E}px`,
|
|
155
155
|
left: `${I}px`,
|
|
156
|
-
width: `${
|
|
156
|
+
width: `${r * f}px`,
|
|
157
157
|
height: `${i * f}px`,
|
|
158
158
|
opacity: 1
|
|
159
159
|
}
|
|
@@ -163,12 +163,12 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
function P() {
|
|
166
|
-
const { height: n, width:
|
|
167
|
-
width: `${
|
|
166
|
+
const { height: n, width: r, scale: i } = Q(), f = H.value ? {
|
|
167
|
+
width: `${r * i}px`,
|
|
168
168
|
maxHeight: `${n * i}px`
|
|
169
169
|
} : {
|
|
170
170
|
height: `${n * i}px`,
|
|
171
|
-
maxWidth: `${
|
|
171
|
+
maxWidth: `${r * i}px`
|
|
172
172
|
};
|
|
173
173
|
if (!v.value) {
|
|
174
174
|
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
@@ -179,28 +179,28 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
179
179
|
function ge() {
|
|
180
180
|
const { frames: n } = J({
|
|
181
181
|
trigger: "open"
|
|
182
|
-
}),
|
|
183
|
-
if (!
|
|
182
|
+
}), r = X(n);
|
|
183
|
+
if (!r) {
|
|
184
184
|
console.error("[maz-ui](vFullscreenImg) open animation is not defined"), P();
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
r.onfinish = () => {
|
|
188
188
|
P(), c.running = !1, c.ended = !0;
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
function pe() {
|
|
192
192
|
const { frames: n } = J({
|
|
193
193
|
trigger: "close"
|
|
194
|
-
}),
|
|
194
|
+
}), r = X(n);
|
|
195
195
|
function i() {
|
|
196
196
|
var f, I;
|
|
197
197
|
s("close"), (f = j.value) == null || f.remove(), (I = t.destroy) == null || I.call(t), c.running = !1, c.ended = !0;
|
|
198
198
|
}
|
|
199
|
-
if (!
|
|
199
|
+
if (!r) {
|
|
200
200
|
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), i();
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
r.onfinish = i;
|
|
204
204
|
}
|
|
205
205
|
function ee() {
|
|
206
206
|
m.value || P();
|
|
@@ -209,11 +209,11 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
209
209
|
x.value = !0, document.addEventListener("keydown", G), window.addEventListener("resize", ee), me(), h.value = Y().length > 1;
|
|
210
210
|
}), Le(() => {
|
|
211
211
|
document.removeEventListener("keydown", G), window.removeEventListener("resize", ee), de();
|
|
212
|
-
}), (n,
|
|
212
|
+
}), (n, r) => (b(), A("div", {
|
|
213
213
|
ref_key: "FullscreenImgElement",
|
|
214
214
|
ref: j,
|
|
215
215
|
role: "button",
|
|
216
|
-
class: "m-fullscreen-img",
|
|
216
|
+
class: "m-fullscreen-img m-reset-css",
|
|
217
217
|
tabindex: "0",
|
|
218
218
|
onClick: O(B, ["stop"]),
|
|
219
219
|
onKeypress: xe(O(B, ["prevent"]), ["esc"])
|
|
@@ -222,7 +222,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
222
222
|
key: 0,
|
|
223
223
|
type: "button",
|
|
224
224
|
class: "m-fullscreen-btn --next",
|
|
225
|
-
onClick:
|
|
225
|
+
onClick: r[0] || (r[0] = O((i) => U("next"), ["stop"]))
|
|
226
226
|
}, [
|
|
227
227
|
z(w(u), { class: "maz-rotate-180" })
|
|
228
228
|
])) : S("v-if", !0),
|
|
@@ -230,7 +230,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
230
230
|
key: 1,
|
|
231
231
|
type: "button",
|
|
232
232
|
class: "m-fullscreen-btn --previous",
|
|
233
|
-
onClick:
|
|
233
|
+
onClick: r[1] || (r[1] = O((i) => U("previous"), ["stop"]))
|
|
234
234
|
}, [
|
|
235
235
|
z(w(u))
|
|
236
236
|
])) : S("v-if", !0),
|
|
@@ -250,10 +250,10 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
250
250
|
tabindex: "0",
|
|
251
251
|
class: R([ce.value]),
|
|
252
252
|
onLoad: ue,
|
|
253
|
-
onClick:
|
|
253
|
+
onClick: r[2] || (r[2] = O((i) => n.zoom && ve(), ["stop"]))
|
|
254
254
|
}, null, 42, Be),
|
|
255
255
|
T(z(
|
|
256
|
-
w(
|
|
256
|
+
w(a),
|
|
257
257
|
{ class: "m-fullscreen-img-loader" },
|
|
258
258
|
null,
|
|
259
259
|
512
|
|
@@ -264,7 +264,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
264
264
|
])
|
|
265
265
|
], 40, He));
|
|
266
266
|
}
|
|
267
|
-
}), _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-
|
|
267
|
+
}), _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-24a18baf"]]), re = "m-fullscreen-is-open";
|
|
268
268
|
class Fe {
|
|
269
269
|
constructor() {
|
|
270
270
|
g(this, "options");
|
|
@@ -284,11 +284,11 @@ class Fe {
|
|
|
284
284
|
g(this, "renderPreviewListener");
|
|
285
285
|
}
|
|
286
286
|
buildOptions(e, t) {
|
|
287
|
-
const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 },
|
|
287
|
+
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);
|
|
288
288
|
return {
|
|
289
289
|
...this.defaultOptions,
|
|
290
290
|
...s,
|
|
291
|
-
src:
|
|
291
|
+
src: a,
|
|
292
292
|
alt: l
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -322,10 +322,10 @@ class Fe {
|
|
|
322
322
|
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 = "";
|
|
323
323
|
}
|
|
324
324
|
renderPreview(e) {
|
|
325
|
-
return e.classList.add(
|
|
325
|
+
return e.classList.add(re), Oe(_e, {
|
|
326
326
|
props: {
|
|
327
327
|
...this.options,
|
|
328
|
-
openInstanceClass:
|
|
328
|
+
openInstanceClass: re,
|
|
329
329
|
clickedElement: e,
|
|
330
330
|
clickedElementBounds: e.getBoundingClientRect()
|
|
331
331
|
},
|
|
@@ -426,9 +426,9 @@ class Te {
|
|
|
426
426
|
const t = e.querySelectorAll("source");
|
|
427
427
|
if (t.length > 0)
|
|
428
428
|
for await (const s of t) {
|
|
429
|
-
const
|
|
430
|
-
if (
|
|
431
|
-
s.srcset =
|
|
429
|
+
const a = s.getAttribute("data-lazy-srcset");
|
|
430
|
+
if (a)
|
|
431
|
+
s.srcset = a;
|
|
432
432
|
else
|
|
433
433
|
return this.imageHasError(e);
|
|
434
434
|
}
|
|
@@ -449,9 +449,9 @@ class Te {
|
|
|
449
449
|
return;
|
|
450
450
|
const t = this.options.fallbackSrc ?? this.options.errorPhoto;
|
|
451
451
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
452
|
-
const s = t ?? await this.loadErrorPhoto(),
|
|
453
|
-
if (
|
|
454
|
-
for await (const l of
|
|
452
|
+
const s = t ?? await this.loadErrorPhoto(), a = e.querySelectorAll("source");
|
|
453
|
+
if (a.length > 0)
|
|
454
|
+
for await (const l of a)
|
|
455
455
|
l.srcset = s;
|
|
456
456
|
else
|
|
457
457
|
this.setImgSrc(e, s);
|
|
@@ -476,12 +476,12 @@ class Te {
|
|
|
476
476
|
const s = this.getImgElement(e);
|
|
477
477
|
s.src = t;
|
|
478
478
|
}
|
|
479
|
-
handleIntersectionObserver(e, t, s,
|
|
479
|
+
handleIntersectionObserver(e, t, s, a) {
|
|
480
480
|
var l, u;
|
|
481
|
-
this.observers.push(
|
|
481
|
+
this.observers.push(a);
|
|
482
482
|
for (const y of s)
|
|
483
483
|
if (y.isIntersecting) {
|
|
484
|
-
if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce &&
|
|
484
|
+
if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce && a.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
485
485
|
return;
|
|
486
486
|
this.loadImage(e, t);
|
|
487
487
|
}
|
|
@@ -489,12 +489,12 @@ class Te {
|
|
|
489
489
|
createObserver(e, t) {
|
|
490
490
|
const s = (u, y) => {
|
|
491
491
|
this.handleIntersectionObserver(e, t, u, y);
|
|
492
|
-
},
|
|
493
|
-
new IntersectionObserver(s,
|
|
492
|
+
}, a = this.options.observerOptions;
|
|
493
|
+
new IntersectionObserver(s, a).observe(e);
|
|
494
494
|
}
|
|
495
495
|
async imageHandler(e, t, s) {
|
|
496
496
|
if (s === "update")
|
|
497
|
-
for await (const
|
|
497
|
+
for await (const a of this.observers) a.unobserve(e);
|
|
498
498
|
window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
|
|
499
499
|
}
|
|
500
500
|
async bindUpdateHandler(e, t, s) {
|
|
@@ -532,7 +532,7 @@ const De = {
|
|
|
532
532
|
}, Ue = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, We = ["alt"], Ze = {
|
|
533
533
|
key: 0,
|
|
534
534
|
class: "m-gallery__remaining-layer maz-flex maz-bg-overlay maz-flex-center"
|
|
535
|
-
}, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */
|
|
535
|
+
}, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */ ae({
|
|
536
536
|
__name: "MazGallery",
|
|
537
537
|
props: {
|
|
538
538
|
/**
|
|
@@ -586,9 +586,9 @@ const De = {
|
|
|
586
586
|
minHeight: typeof d == "number" ? `${d}px` : `${d}`
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
|
-
}),
|
|
589
|
+
}), 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(
|
|
590
590
|
(h) => typeof h == "object" ? { ...h, thumbnail: h.thumbnail ?? h.src } : { src: h, thumbnail: h, alt: void 0 }
|
|
591
|
-
)), y = C(() => u.value.slice(0,
|
|
591
|
+
)), y = C(() => u.value.slice(0, a.value)), x = C(() => u.value.slice(a.value, e.images.length));
|
|
592
592
|
function L(h) {
|
|
593
593
|
return e.noRemaining ? !1 : (l.value && h + 1) === y.value.length;
|
|
594
594
|
}
|
|
@@ -596,7 +596,7 @@ const De = {
|
|
|
596
596
|
"div",
|
|
597
597
|
{
|
|
598
598
|
key: 0,
|
|
599
|
-
class: R(["m-gallery
|
|
599
|
+
class: R(["m-gallery m-reset-css", { "maz-rounded": !o.noRadius }]),
|
|
600
600
|
style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
|
|
601
601
|
},
|
|
602
602
|
[
|
|
@@ -681,7 +681,7 @@ const De = {
|
|
|
681
681
|
/* CLASS, STYLE */
|
|
682
682
|
)) : S("v-if", !0);
|
|
683
683
|
}
|
|
684
|
-
}), Ke = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-
|
|
684
|
+
}), Ke = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-a92296a0"]]);
|
|
685
685
|
export {
|
|
686
686
|
Ke as default
|
|
687
687
|
};
|