maz-ui 3.47.2-beta.6 → 3.47.2-beta.7
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 +91 -98
- package/components/MazAnimatedCounter.mjs +26 -26
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +18 -22
- package/components/MazCheckbox.mjs +74 -70
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +48 -48
- package/components/MazExpandAnimation.mjs +22 -25
- package/components/MazGallery.mjs +1 -1
- package/components/MazInputCode.mjs +36 -39
- package/components/MazLoadingBar.mjs +31 -27
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +2 -0
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +31 -36
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +20 -23
- package/components/MazTable.d.ts +6 -0
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.d.ts +5 -1
- package/components/MazTableCell.mjs +22 -19
- package/components/MazTableRow.mjs +1 -1
- package/components/MazTableTitle.d.ts +5 -1
- package/components/MazTableTitle.mjs +16 -13
- package/components/MazTabsBar.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.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/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazLoadingBar.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/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-D-0XgPWR.mjs} +1 -1
- package/components/chunks/{MazBtn-BBb9-9O6.mjs → MazBtn-B0Q6Kw8H.mjs} +2 -2
- package/components/chunks/{MazBtn-CfUZ9QSO.mjs → MazBtn-DFLIzh6y.mjs} +2 -2
- package/components/chunks/{MazBtn-Lsac2Q0p.mjs → MazBtn-D_K6k6A7.mjs} +2 -2
- package/components/chunks/{MazBtn-DhEO9uvT.mjs → MazBtn-DnZ_pj-t.mjs} +2 -2
- package/components/chunks/{MazBtn-D7tI764y.mjs → MazBtn-DvfMuN3B.mjs} +2 -2
- package/components/chunks/{MazCard-CAPZoSqv.mjs → MazCard-BkcxQOWL.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BI2um2gY.mjs → MazCheckbox-B9iBXhoG.mjs} +63 -60
- package/components/chunks/{MazCheckbox-DwAd7p8o.mjs → MazCheckbox-BHhDBSbJ.mjs} +63 -58
- package/components/chunks/{MazCheckbox-IhiWZ8D0.mjs → MazCheckbox-BcwWN7iD.mjs} +63 -59
- package/components/chunks/{MazChecklist-Bqd7qTO1.mjs → MazChecklist-DxtYuoEu.mjs} +116 -116
- package/components/chunks/MazExpandAnimation-CUgYZyTw.mjs +54 -0
- package/components/chunks/{MazGallery-CRY5X5zS.mjs → MazGallery-BfdKcDIu.mjs} +39 -42
- package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-ndO4hRUh.mjs} +38 -41
- package/components/chunks/{MazIcon-D3TB52NM.mjs → MazIcon-DVTWgYB6.mjs} +1 -1
- package/components/chunks/{MazInput-rW-KBJGJ.mjs → MazInput-DnmjeD0Q.mjs} +2 -2
- package/components/chunks/{MazInput-ROgC-JLt.mjs → MazInput-SGx7gJ9r.mjs} +2 -2
- package/components/chunks/MazLoadingBar-CBNuhilE.mjs +36 -0
- package/components/chunks/{MazPhoneNumberInput-Bbr0zHPZ.mjs → MazPhoneNumberInput-rGR80IeJ.mjs} +91 -96
- package/components/chunks/{MazPicker-EMOuyWJy.mjs → MazPicker-CUpQ552W.mjs} +341 -321
- package/components/chunks/{MazPickerMonthSwitcher-DJGgb6BT.mjs → MazPickerMonthSwitcher-duzi8uZ8.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Cg1uqryw.mjs → MazPickerShortcuts-Coq4ITAj.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-BLUXEs0G.mjs → MazPickerYearSwitcher-vUTntpYE.mjs} +1 -1
- package/components/chunks/{MazSelect-BUETsREx.mjs → MazSelect-DA1D4Aus.mjs} +85 -90
- package/components/chunks/{MazSelect-BDMOrVry.mjs → MazSelect-DpLBpopb.mjs} +40 -45
- package/components/chunks/{MazSpinner--fscjBdL.mjs → MazSpinner-Bbagpn0P.mjs} +1 -1
- package/components/chunks/{MazSpinner-RzOGVi6V.mjs → MazSpinner-Bi3tSdWr.mjs} +1 -1
- package/components/chunks/MazSpinner-Btv2qATX.mjs +34 -0
- package/components/chunks/MazSpinner-CR8HZnWn.mjs +34 -0
- package/components/chunks/{MazSpinner-C0PBSYpC.mjs → MazSpinner-DIPbNESr.mjs} +1 -1
- package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-a80KrraB.mjs} +1 -1
- package/components/chunks/{MazSpinner-CEgSruvD.mjs → MazSpinner-v0FIBDiy.mjs} +1 -1
- package/components/chunks/MazStepper-DKPl3uIk.mjs +218 -0
- package/components/chunks/{MazTable-CWsaB02U.mjs → MazTable-DBiW_J2i.mjs} +104 -100
- package/components/chunks/MazTableCell-D10vPzyI.mjs +26 -0
- package/components/chunks/{MazTableRow-6KrQQQbm.mjs → MazTableRow-CSxkhwUM.mjs} +8 -8
- package/components/chunks/MazTableTitle-BdRR_MXI.mjs +26 -0
- package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar-BVg2pxLA.mjs} +2 -2
- package/components/chunks/{MazTransitionExpand-BCgH8NZP.mjs → MazTransitionExpand-2Ft7atX1.mjs} +1 -1
- package/css/main.css +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/tailwindcss/variables/colors.ts +2 -0
- package/types/components/MazPicker.vue.d.ts +2 -0
- package/types/components/MazTable.vue.d.ts +6 -0
- package/types/components/MazTableCell.vue.d.ts +5 -1
- package/types/components/MazTableTitle.vue.d.ts +5 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
- package/components/chunks/MazLoadingBar-D8a5KF29.mjs +0 -32
- package/components/chunks/MazSpinner-CMMBCwk2.mjs +0 -34
- package/components/chunks/MazSpinner-DebSlkVT.mjs +0 -34
- package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
- package/components/chunks/MazTableCell-CgiGF3bL.mjs +0 -23
- package/components/chunks/MazTableTitle-C8P3v8b6.mjs +0 -23
|
@@ -1,9 +1,9 @@
|
|
|
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 re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze,
|
|
5
|
-
import { _ as ie } from "./MazCard-
|
|
6
|
-
function
|
|
4
|
+
import { createVNode as z, render as M, defineComponent as re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze, onBeforeMount as ke, normalizeStyle as se, Fragment as ne, renderList as oe, toDisplayString as Pe } from "vue";
|
|
5
|
+
import { _ as ie } from "./MazCard-BkcxQOWL.mjs";
|
|
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);
|
|
@@ -15,7 +15,7 @@ function Se(o, e) {
|
|
|
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 };
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Se(o, e, t) {
|
|
19
19
|
const s = {
|
|
20
20
|
maxAttempts: 20,
|
|
21
21
|
interval: 100,
|
|
@@ -28,7 +28,7 @@ function He(o, e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
l();
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ re({
|
|
32
32
|
__name: "MazFullscreenImg",
|
|
33
33
|
props: {
|
|
34
34
|
src: {},
|
|
@@ -46,7 +46,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["close", "previous", "next", "before-close"],
|
|
48
48
|
setup(o, { emit: e }) {
|
|
49
|
-
const t = o, s = e, r = N(() => import("./MazSpinner
|
|
49
|
+
const t = o, s = e, r = N(() => import("./MazSpinner-Bbagpn0P.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(() => ({
|
|
@@ -95,7 +95,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
95
95
|
);
|
|
96
96
|
if (a) {
|
|
97
97
|
const i = Y(), f = i.indexOf(a), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
|
|
98
|
-
d.value = E, E && fe(a, E), s(n), y.value = !1, x.value = !0,
|
|
98
|
+
d.value = E, E && fe(a, 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,
|
|
@@ -132,20 +132,20 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
132
132
|
const a = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
|
|
133
133
|
(f - 2 * n) / a,
|
|
134
134
|
(I - 2 * n) / i
|
|
135
|
-
), W = (f - a * E) / 2,
|
|
135
|
+
), W = (f - a * E) / 2, Z = (I - i * E) / 2;
|
|
136
136
|
return {
|
|
137
137
|
centerX: W,
|
|
138
|
-
centerY:
|
|
138
|
+
centerY: Z,
|
|
139
139
|
width: a,
|
|
140
140
|
height: i,
|
|
141
141
|
scale: E
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
function J({ trigger: n }) {
|
|
145
|
-
const { width: a, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left:
|
|
145
|
+
const { width: a, 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
|
-
left: `${
|
|
148
|
+
left: `${Z}px`,
|
|
149
149
|
width: `${ye}px`,
|
|
150
150
|
height: `${be}px`,
|
|
151
151
|
opacity: 0
|
|
@@ -241,7 +241,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
241
241
|
}, [
|
|
242
242
|
z(w(l))
|
|
243
243
|
]),
|
|
244
|
-
k("div",
|
|
244
|
+
k("div", $e, [
|
|
245
245
|
k("img", {
|
|
246
246
|
ref_key: "ImgElement",
|
|
247
247
|
ref: v,
|
|
@@ -251,7 +251,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
251
251
|
class: R([ce.value]),
|
|
252
252
|
onLoad: ue,
|
|
253
253
|
onClick: a[2] || (a[2] = O((i) => n.zoom && ve(), ["stop"]))
|
|
254
|
-
}, null, 42,
|
|
254
|
+
}, null, 42, Be),
|
|
255
255
|
T(z(
|
|
256
256
|
w(r),
|
|
257
257
|
{ class: "m-fullscreen-img-loader" },
|
|
@@ -262,10 +262,10 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
262
262
|
[ze, x.value]
|
|
263
263
|
])
|
|
264
264
|
])
|
|
265
|
-
], 40,
|
|
265
|
+
], 40, He));
|
|
266
266
|
}
|
|
267
|
-
}),
|
|
268
|
-
class
|
|
267
|
+
}), _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-b6e5fc28"]]), ae = "m-fullscreen-is-open";
|
|
268
|
+
class Fe {
|
|
269
269
|
constructor() {
|
|
270
270
|
g(this, "options");
|
|
271
271
|
g(this, "defaultOptions", {
|
|
@@ -322,7 +322,7 @@ class Ne {
|
|
|
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(ae),
|
|
325
|
+
return e.classList.add(ae), Oe(_e, {
|
|
326
326
|
props: {
|
|
327
327
|
...this.options,
|
|
328
328
|
openInstanceClass: ae,
|
|
@@ -340,9 +340,9 @@ class Ne {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
let _;
|
|
343
|
-
const
|
|
343
|
+
const V = {
|
|
344
344
|
mounted(o, e) {
|
|
345
|
-
return _ = new
|
|
345
|
+
return _ = new Fe(), _.create(o, e);
|
|
346
346
|
},
|
|
347
347
|
updated(o, e) {
|
|
348
348
|
return _.update(o, e);
|
|
@@ -350,7 +350,7 @@ const Z = {
|
|
|
350
350
|
unmounted(o) {
|
|
351
351
|
return _.remove(o);
|
|
352
352
|
}
|
|
353
|
-
},
|
|
353
|
+
}, Ne = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Re = {
|
|
354
354
|
baseClass: "m-lazy-img",
|
|
355
355
|
loadedClass: "m-lazy-loaded",
|
|
356
356
|
loadingClass: "m-lazy-loading",
|
|
@@ -364,10 +364,10 @@ const Z = {
|
|
|
364
364
|
threshold: 0.1
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
|
-
class
|
|
367
|
+
class Te {
|
|
368
368
|
constructor(e = {}) {
|
|
369
369
|
g(this, "observers", []);
|
|
370
|
-
g(this, "defaultOptions",
|
|
370
|
+
g(this, "defaultOptions", Re);
|
|
371
371
|
g(this, "options");
|
|
372
372
|
g(this, "onImgLoadedCallback");
|
|
373
373
|
g(this, "onImgErrorCallback");
|
|
@@ -505,7 +505,7 @@ class De {
|
|
|
505
505
|
async add(e, t) {
|
|
506
506
|
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
507
507
|
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
508
|
-
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e,
|
|
508
|
+
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ne), await this.bindUpdateHandler(e, t, "bind");
|
|
509
509
|
}
|
|
510
510
|
async update(e, t) {
|
|
511
511
|
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
@@ -518,10 +518,10 @@ class De {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
let F;
|
|
521
|
-
const
|
|
521
|
+
const De = {
|
|
522
522
|
created(o, e) {
|
|
523
523
|
const t = typeof e.value == "object" ? e.value : {};
|
|
524
|
-
F = new
|
|
524
|
+
F = new Te(t), F.add(o, e);
|
|
525
525
|
},
|
|
526
526
|
updated(o, e) {
|
|
527
527
|
F.update(o, e);
|
|
@@ -529,10 +529,10 @@ const Ue = {
|
|
|
529
529
|
unmounted(o, e) {
|
|
530
530
|
F.remove(o, e);
|
|
531
531
|
}
|
|
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
|
-
},
|
|
535
|
+
}, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */ re({
|
|
536
536
|
__name: "MazGallery",
|
|
537
537
|
props: {
|
|
538
538
|
/**
|
|
@@ -570,11 +570,8 @@ const Ue = {
|
|
|
570
570
|
separatorColor: { type: String, default: "transparent" }
|
|
571
571
|
},
|
|
572
572
|
setup(o) {
|
|
573
|
-
ke((h) => ({
|
|
574
|
-
"37b3f3e3": o.separatorColor
|
|
575
|
-
}));
|
|
576
573
|
const e = o, t = N(() => import("./no-photography-PGT8fxs_.mjs"));
|
|
577
|
-
|
|
574
|
+
ke(() => {
|
|
578
575
|
e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
|
|
579
576
|
});
|
|
580
577
|
const s = C(() => {
|
|
@@ -600,10 +597,10 @@ const Ue = {
|
|
|
600
597
|
{
|
|
601
598
|
key: 0,
|
|
602
599
|
class: R(["m-gallery maz-flex", { "maz-rounded": !o.noRadius }]),
|
|
603
|
-
style: se([s.value])
|
|
600
|
+
style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
|
|
604
601
|
},
|
|
605
602
|
[
|
|
606
|
-
k("section",
|
|
603
|
+
k("section", Ue, [
|
|
607
604
|
(b(!0), A(
|
|
608
605
|
ne,
|
|
609
606
|
null,
|
|
@@ -619,9 +616,9 @@ const Ue = {
|
|
|
619
616
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
620
617
|
alt: c.alt,
|
|
621
618
|
loading: "lazy"
|
|
622
|
-
}, null, 8,
|
|
623
|
-
[w(
|
|
624
|
-
[w(
|
|
619
|
+
}, null, 8, We), [
|
|
620
|
+
[w(De), { src: c.thumbnail, disabled: !o.lazy }, "bg-image"],
|
|
621
|
+
[w(V), {
|
|
625
622
|
src: c.src,
|
|
626
623
|
alt: c.alt,
|
|
627
624
|
disabled: o.noZoom || L(d),
|
|
@@ -632,13 +629,13 @@ const Ue = {
|
|
|
632
629
|
L(d) ? T((b(), A("div", Ze, [
|
|
633
630
|
k(
|
|
634
631
|
"span",
|
|
635
|
-
|
|
636
|
-
"+" +
|
|
632
|
+
Ve,
|
|
633
|
+
"+" + Pe(l.value),
|
|
637
634
|
1
|
|
638
635
|
/* TEXT */
|
|
639
636
|
)
|
|
640
637
|
])), [
|
|
641
|
-
[w(
|
|
638
|
+
[w(V), {
|
|
642
639
|
src: c.src,
|
|
643
640
|
alt: c.alt,
|
|
644
641
|
disabled: o.noZoom,
|
|
@@ -674,7 +671,7 @@ const Ue = {
|
|
|
674
671
|
key: d,
|
|
675
672
|
class: "m-gallery__hidden"
|
|
676
673
|
})), [
|
|
677
|
-
[w(
|
|
674
|
+
[w(V), { src: c.src, disabled: o.noZoom }]
|
|
678
675
|
])),
|
|
679
676
|
128
|
|
680
677
|
/* KEYED_FRAGMENT */
|
|
@@ -684,7 +681,7 @@ const Ue = {
|
|
|
684
681
|
/* CLASS, STYLE */
|
|
685
682
|
)) : S("v-if", !0);
|
|
686
683
|
}
|
|
687
|
-
}),
|
|
684
|
+
}), Ke = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-3b59e0cd"]]);
|
|
688
685
|
export {
|
|
689
|
-
|
|
686
|
+
Ke as default
|
|
690
687
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze,
|
|
5
|
-
function
|
|
4
|
+
import { createVNode as z, render as M, defineComponent as re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze, onBeforeMount as ke, normalizeStyle as se, Fragment as ne, renderList as oe, toDisplayString as Pe } from "vue";
|
|
5
|
+
function Oe(o, e) {
|
|
6
6
|
let t = e == null ? void 0 : e.element;
|
|
7
7
|
function s() {
|
|
8
8
|
t && M(null, t);
|
|
@@ -14,7 +14,7 @@ function Se(o, e) {
|
|
|
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,
|
|
@@ -27,7 +27,7 @@ function He(o, e, t) {
|
|
|
27
27
|
}
|
|
28
28
|
l();
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ re({
|
|
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, r = N(() => import("./MazSpinner-
|
|
48
|
+
const t = o, s = e, r = N(() => import("./MazSpinner-a80KrraB.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(() => ({
|
|
@@ -94,7 +94,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
94
94
|
);
|
|
95
95
|
if (a) {
|
|
96
96
|
const i = Y(), f = i.indexOf(a), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
|
|
97
|
-
d.value = E, E && fe(a, E), s(n), y.value = !1, x.value = !0,
|
|
97
|
+
d.value = E, E && fe(a, 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,
|
|
@@ -131,20 +131,20 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
131
131
|
const a = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
|
|
132
132
|
(f - 2 * n) / a,
|
|
133
133
|
(I - 2 * n) / i
|
|
134
|
-
), W = (f - a * E) / 2,
|
|
134
|
+
), W = (f - a * E) / 2, Z = (I - i * E) / 2;
|
|
135
135
|
return {
|
|
136
136
|
centerX: W,
|
|
137
|
-
centerY:
|
|
137
|
+
centerY: Z,
|
|
138
138
|
width: a,
|
|
139
139
|
height: i,
|
|
140
140
|
scale: E
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
function J({ trigger: n }) {
|
|
144
|
-
const { width: a, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left:
|
|
144
|
+
const { width: a, 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
|
|
@@ -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,
|
|
@@ -250,7 +250,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
250
250
|
class: R([ce.value]),
|
|
251
251
|
onLoad: ue,
|
|
252
252
|
onClick: a[2] || (a[2] = O((i) => n.zoom && ve(), ["stop"]))
|
|
253
|
-
}, null, 42,
|
|
253
|
+
}, null, 42, Be),
|
|
254
254
|
T(z(
|
|
255
255
|
w(r),
|
|
256
256
|
{ class: "m-fullscreen-img-loader" },
|
|
@@ -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
268
|
for (const [s, r] of e)
|
|
269
269
|
t[s] = r;
|
|
270
270
|
return t;
|
|
271
|
-
},
|
|
272
|
-
class
|
|
271
|
+
}, _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-b6e5fc28"]]), ae = "m-fullscreen-is-open";
|
|
272
|
+
class Fe {
|
|
273
273
|
constructor() {
|
|
274
274
|
g(this, "options");
|
|
275
275
|
g(this, "defaultOptions", {
|
|
@@ -326,7 +326,7 @@ 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(ae),
|
|
329
|
+
return e.classList.add(ae), Oe(_e, {
|
|
330
330
|
props: {
|
|
331
331
|
...this.options,
|
|
332
332
|
openInstanceClass: ae,
|
|
@@ -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");
|
|
@@ -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__ */ re({
|
|
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(() => {
|
|
@@ -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 "./MazPhoneNumberInput-
|
|
2
|
+
import { i as q } from "./MazPhoneNumberInput-rGR80IeJ.mjs";
|
|
3
3
|
const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Q, defineAsyncComponent as d, ref as h, onMounted as W, computed as r, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as z, normalizeStyle as Y, createElementVNode as g, renderSlot as k, createBlock as u, unref as i, resolveDynamicComponent as C, createCommentVNode as n, withDirectives as Z, mergeProps as x, toHandlers as _, vModelDynamic as ee, createTextVNode as te, toDisplayString as oe, withModifiers as ae, withCtx as V, createVNode as S } from "vue";
|
|
2
2
|
import { u as ne } from "./useInstanceUniqId-DW9jO1Sz.mjs";
|
|
3
|
-
import { _ as le } from "./MazTable-
|
|
3
|
+
import { _ as le } from "./MazTable-DBiW_J2i.mjs";
|
|
4
4
|
import '../assets/MazInput.css';function re(v, y) {
|
|
5
5
|
let t;
|
|
6
6
|
return function(...l) {
|
|
@@ -53,7 +53,7 @@ const ie = {
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
55
55
|
setup(v, { emit: y }) {
|
|
56
|
-
const t = v, l = y, I = d(() => import("./MazBtn-
|
|
56
|
+
const t = v, l = y, I = d(() => import("./MazBtn-B0Q6Kw8H.mjs")), B = d(() => import("./MazIcon-DjMuw8Bz.mjs")), M = d(() => import("./eye-slash-BoO00xzs.mjs")), q = d(() => import("./eye-f8zAUc30.mjs")), D = d(() => import("./check-C9Q_W85g.mjs")), c = h(!1), s = h(!1), w = h(), E = ne({
|
|
57
57
|
componentName: "MazInput",
|
|
58
58
|
providedId: t.id
|
|
59
59
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Q, defineAsyncComponent as d, ref as h, onMounted as W, computed as r, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as z, normalizeStyle as Y, createElementVNode as g, renderSlot as k, createBlock as u, unref as i, resolveDynamicComponent as C, createCommentVNode as n, withDirectives as Z, mergeProps as x, toHandlers as _, vModelDynamic as ee, createTextVNode as te, toDisplayString as oe, withModifiers as ae, withCtx as V, createVNode as S } from "vue";
|
|
2
|
-
import { u as ne, _ as le } from "./MazChecklist-
|
|
2
|
+
import { u as ne, _ as le } from "./MazChecklist-DxtYuoEu.mjs";
|
|
3
3
|
import '../assets/MazInput.css';function re(v, y) {
|
|
4
4
|
let t;
|
|
5
5
|
return function(...l) {
|
|
@@ -52,7 +52,7 @@ const ie = {
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
54
54
|
setup(v, { emit: y }) {
|
|
55
|
-
const t = v, l = y, I = d(() => import("./MazBtn-
|
|
55
|
+
const t = v, l = y, I = d(() => import("./MazBtn-DnZ_pj-t.mjs")), B = d(() => import("./MazIcon-BbvBov5G.mjs")), M = d(() => import("./eye-slash-BoO00xzs.mjs")), q = d(() => import("./eye-f8zAUc30.mjs")), D = d(() => import("./MazChecklist-DxtYuoEu.mjs").then((e) => e.c)), c = h(!1), s = h(!1), w = h(), E = ne({
|
|
56
56
|
componentName: "MazInput",
|
|
57
57
|
providedId: t.id
|
|
58
58
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as n, computed as t, openBlock as i, createElementBlock as c, normalizeStyle as m, createElementVNode as d } from "vue";
|
|
2
|
+
import { _ as p } from "./MazTable-DBiW_J2i.mjs";
|
|
3
|
+
import '../assets/MazLoadingBar.css';const s = /* @__PURE__ */ n({
|
|
4
|
+
__name: "MazLoadingBar",
|
|
5
|
+
props: {
|
|
6
|
+
color: { default: "primary" },
|
|
7
|
+
height: { default: "0.125rem" }
|
|
8
|
+
},
|
|
9
|
+
setup(e) {
|
|
10
|
+
const a = e, o = t(() => ({
|
|
11
|
+
alpha: `var(--maz-color-${a.color}-alpha-20)`,
|
|
12
|
+
main: `var(--maz-color-${a.color})`
|
|
13
|
+
}));
|
|
14
|
+
return (l, r) => (i(), c(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
class: "m-loading-bar",
|
|
18
|
+
style: m([{ "--loading-bar-height": l.height, "--loading-bar-color": o.value.alpha, "--loading-bar-main-color": o.value.main }])
|
|
19
|
+
},
|
|
20
|
+
r[0] || (r[0] = [
|
|
21
|
+
d(
|
|
22
|
+
"div",
|
|
23
|
+
null,
|
|
24
|
+
null,
|
|
25
|
+
-1
|
|
26
|
+
/* HOISTED */
|
|
27
|
+
)
|
|
28
|
+
]),
|
|
29
|
+
4
|
|
30
|
+
/* STYLE */
|
|
31
|
+
));
|
|
32
|
+
}
|
|
33
|
+
}), f = /* @__PURE__ */ p(s, [["__scopeId", "data-v-ada02d7b"]]);
|
|
34
|
+
export {
|
|
35
|
+
f as default
|
|
36
|
+
};
|