maz-ui 3.47.2-beta.24 → 3.47.2-beta.26
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 +56 -56
- package/components/MazAnimatedCounter.mjs +7 -7
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.mjs +9 -9
- package/components/MazBadge.mjs +2 -2
- 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 +2 -2
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +11 -11
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- 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.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.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +11 -11
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +15 -15
- 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 +9 -9
- 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 +8 -8
- package/components/MazTextarea.mjs +2 -2
- 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/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/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/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-DCzaExPj.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
- package/components/chunks/{MazBottomSheet-DGsGO0zo.mjs → MazBottomSheet-CMqzf-dT.mjs} +15 -15
- 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-BS2kvd1Z.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
- package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
- package/components/chunks/{MazBtn-oZhhJy09.mjs → MazBtn-DETtZdlj.mjs} +3 -3
- package/components/chunks/{MazBtn-B5o15XDU.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
- package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
- package/components/chunks/{MazBtn-4-B-zs6Y.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-98OuVlyK.mjs → MazCard-l54W3CUU.mjs} +3 -3
- package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
- package/components/chunks/{MazCheckbox-CbfTOJdy.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
- package/components/chunks/{MazCheckbox-CCma_qyQ.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
- package/components/chunks/{MazCheckbox-eOEEACaM.mjs → MazCheckbox-D-7-TdgO.mjs} +3 -3
- package/components/chunks/{MazChecklist-Bb_70sf5.mjs → MazChecklist-DSfD55m5.mjs} +125 -125
- package/components/chunks/{MazDialog-CVo6Lqqe.mjs → MazDialog-BjQ3ivmv.mjs} +17 -17
- package/components/chunks/{MazDialogPromise-CpVRFbno.mjs → MazDialogPromise-Bg3ZOsEI.mjs} +4 -4
- package/components/chunks/{MazDrawer-Bas9dy0D.mjs → MazDrawer-BqNLfW4e.mjs} +3 -3
- package/components/chunks/{MazDropdown-0r445NfW.mjs → MazDropdown-DNXKdC_3.mjs} +3 -2
- 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-r8SBTCgJ.mjs → MazGallery-CzlKPQFX.mjs} +65 -65
- package/components/chunks/{MazGallery-xPp1apvO.mjs → MazGallery-DdZ3bFvX.mjs} +5 -5
- 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/{modules/chunks/MazIcon-CQd2Upkc.mjs → components/chunks/MazIcon-DR6-win-.mjs} +12 -11
- package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
- package/components/chunks/{MazInput-BM4n-byz.mjs → MazInput-BjnuoFvn.mjs} +26 -26
- package/components/chunks/{MazInput-BcutbP8N.mjs → MazInput-DB4HtpCQ.mjs} +4 -4
- package/components/chunks/{MazInput-C9Qh4Gt3.mjs → MazInput-yBii2AFS.mjs} +19 -19
- package/components/chunks/{MazInputNumber-DgjOMiOt.mjs → MazInputNumber-DqnLi9-C.mjs} +37 -37
- package/components/chunks/{MazInputPrice-D6fJN9yv.mjs → MazInputPrice-Ca8mL53M.mjs} +4 -4
- package/components/chunks/{MazInputTags-DthGSyHQ.mjs → MazInputTags-Bto9dVQq.mjs} +40 -40
- 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-tud3eDgU.mjs → MazLink-DlUG7E5K.mjs} +3 -3
- package/components/chunks/{MazLoadingBar-C2qPjfEQ.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
- package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
- package/components/chunks/{MazPhoneNumberInput-BAGcArnr.mjs → MazPhoneNumberInput-C3j3JyDI.mjs} +11 -11
- package/components/chunks/{MazPicker-BljfUneI.mjs → MazPicker-BUXJof_-.mjs} +9 -9
- package/components/chunks/{MazPickerMonthSwitcher-CEVb4BXw.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DayGMC9m.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DC1lFIbp.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
- package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
- package/components/chunks/{MazSelect-CH3JdigO.mjs → MazSelect-BwahUlbE.mjs} +49 -49
- package/components/chunks/{MazSelect-D3KXcHJS.mjs → MazSelect-CBaOs6va.mjs} +44 -44
- 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-B5JChIrj.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-BIPm54-3.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-BBZoDxwq.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-BU3Hluiu.mjs → MazTable-Soe-MrTW.mjs} +79 -74
- package/components/chunks/{MazTableCell-DKMZAanm.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
- package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
- package/components/chunks/{MazTableTitle-BSFZ84Ob.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
- package/components/chunks/{MazTabsBar--Xq_cpuz.mjs → MazTabsBar-8wchBiYF.mjs} +20 -20
- package/components/chunks/{MazTransitionExpand-Cedz9Ree.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
- 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-D0bVfaLm.cjs +1 -0
- package/{components/chunks/MazBtn-BVWOyFm-.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
- package/modules/chunks/{MazIcon-yWU14J0C.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
- package/{components/chunks/MazIcon-BSUswKRF.mjs → modules/chunks/MazIcon-XtyPgbu6.mjs} +12 -11
- package/{components/chunks/MazSpinner-5S6Sn-lq.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
- package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
- package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
- package/modules/chunks/{index-2pl8TbAm.mjs → index-YwIF5a3Q.mjs} +19 -18
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/tailwindcss/tailwind.css +0 -6
- package/tailwindcss/variables/utilities.ts +3 -0
- package/types/components/MazLink.vue.d.ts +2 -2
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/components/MazTabs.vue.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
- package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
- package/types/tailwindcss/variables/utilities.d.ts +3 -0
- package/components/chunks/MazBtn-C60T0UDa.mjs +0 -103
- package/components/chunks/MazBtn-C6zsmGnw.mjs +0 -103
- package/components/chunks/MazBtn-CC9H3U2X.mjs +0 -103
- package/components/chunks/MazBtn-D-lSRE8n.mjs +0 -103
- package/components/chunks/MazBtn-D1jMqwE1.mjs +0 -103
- package/components/chunks/MazBtn-DAXwt847.mjs +0 -103
- package/components/chunks/MazBtn-DOWVQgpN.mjs +0 -103
- package/components/chunks/MazBtn-DZaVjTvW.mjs +0 -103
- package/components/chunks/MazIcon-BoTByt7n.mjs +0 -4
- package/components/chunks/MazSpinner-BlbTztM3.mjs +0 -34
- package/components/chunks/MazSpinner-Bn4pnCJx.mjs +0 -34
- package/components/chunks/MazSpinner-C-ln9ldX.mjs +0 -34
- package/components/chunks/MazSpinner-C11EOZZd.mjs +0 -34
- package/components/chunks/MazSpinner-C6h03sqc.mjs +0 -34
- package/components/chunks/MazSpinner-CCc9ajpj.mjs +0 -34
- package/components/chunks/MazSpinner-CgKOIkQQ.mjs +0 -34
- package/components/chunks/MazSpinner-Cp_nPioh.mjs +0 -34
- package/components/chunks/MazSpinner-CwdlrYSt.mjs +0 -34
- package/components/chunks/MazSpinner-DOPjHhPx.mjs +0 -34
- package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
- package/components/chunks/MazSpinner-DqD51Fb6.mjs +0 -34
- package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
- package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
- package/components/chunks/MazSpinner-ZFhNCy24.mjs +0 -34
- package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
- package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
- package/components/chunks/MazTableRow-CDHpmXfw.mjs +0 -30
- package/modules/chunks/MazBtn-BB46O5je.mjs +0 -103
- package/modules/chunks/MazBtn-CZT-LQS2.cjs +0 -1
- package/modules/chunks/MazSpinner-C2h_t5PV.mjs +0 -34
- package/modules/chunks/MazSpinner-D8KHXwFm.cjs +0 -1
- package/modules/chunks/index-DwaxfXYQ.cjs +0 -124
|
@@ -98,7 +98,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
98
98
|
"div",
|
|
99
99
|
G({
|
|
100
100
|
key: 0,
|
|
101
|
-
class: "m-backdrop --present"
|
|
101
|
+
class: "m-backdrop --present m-reset-css"
|
|
102
102
|
}, e.$attrs, {
|
|
103
103
|
class: [e.backdropClass, e.variant && `--variant-${e.variant}`, { "--persistent": e.persistent }]
|
|
104
104
|
}),
|
|
@@ -139,7 +139,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
139
139
|
for (const [l, f] of r)
|
|
140
140
|
d[l] = f;
|
|
141
141
|
return d;
|
|
142
|
-
}, _ = /* @__PURE__ */ O(x, [["__scopeId", "data-v-
|
|
142
|
+
}, _ = /* @__PURE__ */ O(x, [["__scopeId", "data-v-90448c91"]]), ee = { class: "m-drawer-header__title" }, te = {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "m-drawer-header__close"
|
|
145
145
|
}, ne = { class: "m-drawer-body" }, oe = /* @__PURE__ */ L({
|
|
@@ -153,7 +153,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
153
153
|
},
|
|
154
154
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
155
155
|
setup(n) {
|
|
156
|
-
const r = n, d = D(() => import("./MazBtn-
|
|
156
|
+
const r = n, d = D(() => import("./MazBtn-BcrrOaO_.mjs")), l = D(() => import("./x-mark-CnZwVvA7.mjs")), f = g(() => r.variant === "left" ? "start" : r.variant === "right" ? "end" : "none"), v = g(() => r.variant === "top" ? "start" : r.variant === "bottom" ? "end" : "none"), c = J(), u = g(() => !!(r.title || c.title));
|
|
157
157
|
return (t, o) => (p(), T(_, {
|
|
158
158
|
"backdrop-class": ["m-drawer", t.backdropClass],
|
|
159
159
|
justify: f.value,
|
|
@@ -147,6 +147,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
147
147
|
key: 0,
|
|
148
148
|
ref_key: "svgElem",
|
|
149
149
|
ref: h,
|
|
150
|
+
class: "m-icon m-reset-css",
|
|
150
151
|
width: "1em",
|
|
151
152
|
height: "1em"
|
|
152
153
|
}, {
|
|
@@ -185,7 +186,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
185
186
|
const n = l, f = s, p = me({
|
|
186
187
|
componentName: "MazDropdown",
|
|
187
188
|
providedId: n.id
|
|
188
|
-
}), v = F(() => import("./MazBtn-
|
|
189
|
+
}), v = F(() => import("./MazBtn-DETtZdlj.mjs")), h = F(() => import("./MazLink-DlUG7E5K.mjs")), T = F(() => import("./chevron-down-BkvtON3b.mjs")), u = A(n.open), d = A(), C = M(() => n.size === "xl" ? "maz-text-lg" : n.size === "lg" || n.size === "md" || n.size === "sm" ? "maz-text-base" : n.size === "xs" || n.size === "mini" ? "maz-text-sm" : "maz-text-lg"), y = we((e) => {
|
|
189
190
|
r(e);
|
|
190
191
|
}, 200);
|
|
191
192
|
function L() {
|
|
@@ -249,7 +250,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
249
250
|
(e) => r(e)
|
|
250
251
|
), (e, c) => Q((w(), E("div", {
|
|
251
252
|
id: m(p),
|
|
252
|
-
class: S(["m-dropdown", [n.class, { "--block": e.block }]]),
|
|
253
|
+
class: S(["m-dropdown m-reset-css", [n.class, { "--block": e.block }]]),
|
|
253
254
|
style: X(e.style)
|
|
254
255
|
}, [
|
|
255
256
|
J("div", {
|
|
@@ -2,7 +2,7 @@ import { defineAsyncComponent as H, defineComponent as Q, ref as z, computed as
|
|
|
2
2
|
import '../assets/MazDropzone.css';function G(n) {
|
|
3
3
|
return n.default ?? n;
|
|
4
4
|
}
|
|
5
|
-
const K = H(() => import("./MazSpinner-
|
|
5
|
+
const K = H(() => import("./MazSpinner-B_THFs0t.mjs")), P = `<div class="dz-preview dz-file-preview maz-flex-1">
|
|
6
6
|
<div class="dz-image">
|
|
7
7
|
<div data-dz-thumbnail-bg></div>
|
|
8
8
|
</div>
|
|
@@ -159,7 +159,7 @@ function te(n, t, d, p, e, g) {
|
|
|
159
159
|
ref: "ButtonElement",
|
|
160
160
|
type: "button",
|
|
161
161
|
name: "maz-dropzone",
|
|
162
|
-
class: "maz-dropzone",
|
|
162
|
+
class: "maz-dropzone m-reset-css",
|
|
163
163
|
style: W([n.dropzoneStyle])
|
|
164
164
|
},
|
|
165
165
|
[
|
package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as l, mergeModels as m, useModel as u, ref as
|
|
2
|
-
import { _ as M } from "./MazStepper-
|
|
1
|
+
import { defineComponent as l, mergeModels as m, useModel as u, ref as r, onMounted as f, onUnmounted as p, openBlock as v, createElementBlock as c, normalizeClass as _, normalizeStyle as x, createElementVNode as E, mergeProps as h, renderSlot as g } from "vue";
|
|
2
|
+
import { _ as M } from "./MazStepper-DtAqtJjn.mjs";
|
|
3
3
|
import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], y = /* @__PURE__ */ l({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "MazExpandAnimation",
|
|
@@ -12,23 +12,23 @@ import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], y = /* @__P
|
|
|
12
12
|
}),
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
14
|
setup(d) {
|
|
15
|
-
const a = u(d, "modelValue"), i =
|
|
15
|
+
const a = u(d, "modelValue"), i = r(!a.value), t = r();
|
|
16
16
|
function o() {
|
|
17
17
|
a.value || (i.value = !0);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function s() {
|
|
20
20
|
a.value && (i.value = !1);
|
|
21
21
|
}
|
|
22
22
|
return f(() => {
|
|
23
23
|
var e, n;
|
|
24
|
-
(e = t.value) == null || e.addEventListener("transitionstart", o, !1), (n = t.value) == null || n.addEventListener("transitionend",
|
|
24
|
+
(e = t.value) == null || e.addEventListener("transitionstart", o, !1), (n = t.value) == null || n.addEventListener("transitionend", s, !1);
|
|
25
25
|
}), p(() => {
|
|
26
26
|
var e, n;
|
|
27
|
-
(e = t.value) == null || e.removeEventListener("transitionstart", o, !1), (n = t.value) == null || n.removeEventListener("transitionend",
|
|
27
|
+
(e = t.value) == null || e.removeEventListener("transitionstart", o, !1), (n = t.value) == null || n.removeEventListener("transitionend", s, !1);
|
|
28
28
|
}), (e, n) => (v(), c("div", {
|
|
29
29
|
ref_key: "expandAnimationRef",
|
|
30
30
|
ref: t,
|
|
31
|
-
class: _(["m-expand-animation", { "m-expand-animation--expanded": a.value }]),
|
|
31
|
+
class: _(["m-expand-animation m-reset-css", { "m-expand-animation--expanded": a.value }]),
|
|
32
32
|
"aria-hidden": !a.value,
|
|
33
33
|
role: "region",
|
|
34
34
|
style: x([{ "--expand-animation-duration": e.duration, "--expand-animation-timing-function": e.timingFunction }])
|
|
@@ -48,7 +48,7 @@ import '../assets/MazExpandAnimation.css';const A = ["aria-hidden"], y = /* @__P
|
|
|
48
48
|
)
|
|
49
49
|
], 14, A));
|
|
50
50
|
}
|
|
51
|
-
}), V = /* @__PURE__ */ M(y, [["__scopeId", "data-v-
|
|
51
|
+
}), V = /* @__PURE__ */ M(y, [["__scopeId", "data-v-058a2912"]]);
|
|
52
52
|
export {
|
|
53
53
|
V as default
|
|
54
54
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as l, defineAsyncComponent as c, onMounted as a, onUnmounted as d, openBlock as s, createBlock as m, Teleport as u, createElementVNode as p, mergeProps as i, createVNode as f, unref as _, createElementBlock as z, renderSlot as v, createCommentVNode as k } from "vue";
|
|
2
|
+
import '../assets/MazFullscreenLoader.css';const y = { key: 0 }, C = /* @__PURE__ */ l({
|
|
3
|
+
__name: "MazFullscreenLoader",
|
|
4
|
+
props: {
|
|
5
|
+
color: { default: "primary" },
|
|
6
|
+
size: { default: "3em" },
|
|
7
|
+
teleportSelector: { default: "body" }
|
|
8
|
+
},
|
|
9
|
+
setup(t) {
|
|
10
|
+
const r = c(() => import("./MazSpinner-C7_Q1K-e.mjs"));
|
|
11
|
+
function o() {
|
|
12
|
+
document.documentElement.classList.add("--maz-fullscreen-loader-present");
|
|
13
|
+
}
|
|
14
|
+
function n() {
|
|
15
|
+
document.documentElement.classList.remove("--maz-fullscreen-loader-present");
|
|
16
|
+
}
|
|
17
|
+
return a(() => {
|
|
18
|
+
o();
|
|
19
|
+
}), d(() => {
|
|
20
|
+
n();
|
|
21
|
+
}), (e, E) => (s(), m(u, { to: e.teleportSelector }, [
|
|
22
|
+
p(
|
|
23
|
+
"div",
|
|
24
|
+
i({ class: "m-fullscreen-loader m-reset-css" }, e.$attrs),
|
|
25
|
+
[
|
|
26
|
+
f(_(r), {
|
|
27
|
+
color: e.color,
|
|
28
|
+
size: e.size
|
|
29
|
+
}, null, 8, ["color", "size"]),
|
|
30
|
+
e.$slots.default ? (s(), z("span", y, [
|
|
31
|
+
v(e.$slots, "default", {}, void 0, !0)
|
|
32
|
+
])) : k("v-if", !0)
|
|
33
|
+
],
|
|
34
|
+
16
|
|
35
|
+
/* FULL_PROPS */
|
|
36
|
+
)
|
|
37
|
+
], 8, ["to"]));
|
|
38
|
+
}
|
|
39
|
+
}), M = (t, r) => {
|
|
40
|
+
const o = t.__vccOpts || t;
|
|
41
|
+
for (const [n, e] of r)
|
|
42
|
+
o[n] = e;
|
|
43
|
+
return o;
|
|
44
|
+
}, S = /* @__PURE__ */ M(C, [["__scopeId", "data-v-7c1470b6"]]);
|
|
45
|
+
export {
|
|
46
|
+
S as M,
|
|
47
|
+
M as _
|
|
48
|
+
};
|
|
@@ -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,8 +55,8 @@ 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,
|
|
@@ -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
|
-
function fe(n,
|
|
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,
|
|
@@ -118,31 +118,31 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
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
|
};
|
|
@@ -45,7 +45,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["close", "previous", "next", "before-close"],
|
|
47
47
|
setup(o, { emit: e }) {
|
|
48
|
-
const t = o, s = e, a = N(() => import("./MazSpinner-
|
|
48
|
+
const t = o, s = e, a = N(() => import("./MazSpinner-CodOqnm1.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(() => ({
|
|
@@ -212,7 +212,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
212
212
|
ref_key: "FullscreenImgElement",
|
|
213
213
|
ref: j,
|
|
214
214
|
role: "button",
|
|
215
|
-
class: "m-fullscreen-img",
|
|
215
|
+
class: "m-fullscreen-img m-reset-css",
|
|
216
216
|
tabindex: "0",
|
|
217
217
|
onClick: O(B, ["stop"]),
|
|
218
218
|
onKeypress: xe(O(B, ["prevent"]), ["esc"])
|
|
@@ -268,7 +268,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
268
268
|
for (const [s, a] of e)
|
|
269
269
|
t[s] = a;
|
|
270
270
|
return t;
|
|
271
|
-
}, _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-
|
|
271
|
+
}, _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-24a18baf"]]), re = "m-fullscreen-is-open";
|
|
272
272
|
class Fe {
|
|
273
273
|
constructor() {
|
|
274
274
|
g(this, "options");
|
|
@@ -600,7 +600,7 @@ const De = {
|
|
|
600
600
|
"div",
|
|
601
601
|
{
|
|
602
602
|
key: 0,
|
|
603
|
-
class: R(["m-gallery
|
|
603
|
+
class: R(["m-gallery m-reset-css", { "maz-rounded": !o.noRadius }]),
|
|
604
604
|
style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
|
|
605
605
|
},
|
|
606
606
|
[
|
|
@@ -685,7 +685,7 @@ const De = {
|
|
|
685
685
|
/* CLASS, STYLE */
|
|
686
686
|
)) : S("v-if", !0);
|
|
687
687
|
}
|
|
688
|
-
}), Ye = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-
|
|
688
|
+
}), Ye = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-a92296a0"]]);
|
|
689
689
|
export {
|
|
690
690
|
Ye as M,
|
|
691
691
|
ie as _
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { inject as T, defineComponent as x, ref as
|
|
2
|
-
function H(i,
|
|
3
|
-
const o = T(i,
|
|
1
|
+
import { inject as T, defineComponent as x, ref as v, computed as p, onMounted as L, watchEffect as C, openBlock as P, createElementBlock as _, mergeProps as $, createCommentVNode as A, nextTick as q } from "vue";
|
|
2
|
+
function H(i, u) {
|
|
3
|
+
const o = T(i, u);
|
|
4
4
|
if (!o)
|
|
5
5
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${i.toString()}`);
|
|
6
6
|
return o;
|
|
@@ -25,8 +25,8 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
emits: ["loaded", "unloaded", "error"],
|
|
28
|
-
setup(i, { emit:
|
|
29
|
-
const o = i, d =
|
|
28
|
+
setup(i, { emit: u }) {
|
|
29
|
+
const o = i, d = u, a = {}, s = v(), f = v();
|
|
30
30
|
function g() {
|
|
31
31
|
try {
|
|
32
32
|
return H("mazIconPath");
|
|
@@ -34,7 +34,7 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const m = p(() => o.path ?? g()), S = p(() => o.src ? o.src : m.value ? `${m.value}/${o.name}.svg` : `/${o.name}.svg`);
|
|
38
38
|
L(() => {
|
|
39
39
|
!o.name && !o.src && console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop');
|
|
40
40
|
});
|
|
@@ -77,8 +77,8 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
77
77
|
n.open("GET", e, !0), n.addEventListener("load", () => {
|
|
78
78
|
if (n.status >= 200 && n.status < 400)
|
|
79
79
|
try {
|
|
80
|
-
let
|
|
81
|
-
|
|
80
|
+
let c = new DOMParser().parseFromString(n.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
81
|
+
c ? (c = o.transformSource(c), r(c)) : t(new Error('Loaded file is not valid SVG"'));
|
|
82
82
|
} catch (l) {
|
|
83
83
|
t(l);
|
|
84
84
|
}
|
|
@@ -91,6 +91,7 @@ const I = ["innerHTML"], V = /* @__PURE__ */ x({
|
|
|
91
91
|
key: 0,
|
|
92
92
|
ref_key: "svgElem",
|
|
93
93
|
ref: f,
|
|
94
|
+
class: "m-icon m-reset-css",
|
|
94
95
|
width: "1em",
|
|
95
96
|
height: "1em"
|
|
96
97
|
}, {
|