maz-ui 3.23.0 → 3.23.2
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/MazPicker.mjs +1 -1
- package/components/chunks/{MazBtn-ba27c61d.mjs → MazBtn-683effc1.mjs} +2 -2
- package/components/chunks/{MazInput-e1373eaf.mjs → MazInput-8a217995.mjs} +2 -2
- package/components/chunks/{MazPicker-c85774e5.mjs → MazPicker-e4620d8b.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-f5bbea58.mjs → MazPickerCalendar-da62262c.mjs} +7 -4
- package/components/chunks/{MazPickerHeader-31a3619b.mjs → MazPickerHeader-a2e041eb.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-aaa759b9.mjs → MazPickerMonthSwitcher-5bf8bd08.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-d0623e2d.mjs → MazPickerShortcuts-7f95430e.mjs} +2 -2
- package/components/chunks/{MazPickerTime-de9cfc63.mjs → MazPickerTime-717402ae.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-746c84fc.mjs → MazPickerYearSwitcher-85f97b6d.mjs} +3 -3
- package/components/chunks/{MazSpinner-b065168a.mjs → MazSpinner-51aa73ca.mjs} +1 -1
- package/modules/chunks/MazBtn-2f302422.cjs +1 -0
- package/modules/chunks/{MazBtn-82a868df.mjs → MazBtn-760c3b29.mjs} +2 -2
- package/modules/chunks/{MazIcon-169747b4.mjs → MazIcon-0bd6b78e.mjs} +1 -1
- package/modules/chunks/MazIcon-599a907f.cjs +1 -0
- package/modules/chunks/{MazSpinner-3febbfdc.mjs → MazSpinner-03bd76bd.mjs} +1 -1
- package/modules/chunks/MazSpinner-6ffa8db1.cjs +1 -0
- package/modules/chunks/arrow-top-right-on-square-8e4ea6e2.cjs +1 -0
- package/modules/chunks/chevron-left-36731110.cjs +1 -0
- package/modules/chunks/{index-d9a25303.mjs → index-6a90ef88.mjs} +2 -12
- package/modules/chunks/index-794680d2.cjs +124 -0
- package/modules/chunks/link-c7791a2a.cjs +1 -0
- package/modules/chunks/no-photography-0f6fcaf4.cjs +1 -0
- package/modules/chunks/x-mark-a28deca5.cjs +1 -0
- package/modules/index.cjs +1 -0
- package/modules/index.mjs +37 -38
- package/nuxt/index.json +1 -1
- package/package.json +10 -3
- package/resolvers/index.cjs +1 -0
- package/resolvers/index.d.ts +1 -0
- package/resolvers/index.mjs +23 -0
- package/resolvers/unplugin-vue-components-resolver.d.ts +8 -0
- package/types/modules/index.d.ts +0 -1
- package/types/resolvers/index.d.ts +1 -0
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +8 -0
- package/types/utils/index.d.ts +3 -0
- package/types/modules/resolvers/index.d.ts +0 -2
package/components/MazPicker.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent as M, defineAsyncComponent as p, useAttrs as E, useSlots as L, onBeforeMount as P, computed as t, openBlock as o, createBlock as u, resolveDynamicComponent as R, mergeProps as w, withCtx as A, createElementBlock as m, normalizeClass as s, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
-
import { _ as N } from "./MazPicker-
|
|
3
|
+
import { _ as N } from "./MazPicker-e4620d8b.mjs";
|
|
4
4
|
const U = /* @__PURE__ */ M({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -40,7 +40,7 @@ const U = /* @__PURE__ */ M({
|
|
|
40
40
|
noElevation: { type: Boolean, default: !1 }
|
|
41
41
|
},
|
|
42
42
|
setup(e) {
|
|
43
|
-
const z = p(() => import("./MazSpinner-
|
|
43
|
+
const z = p(() => import("./MazSpinner-51aa73ca.mjs")), c = p(() => import("./MazIcon-52a76873.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
44
|
P(() => {
|
|
45
45
|
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
46
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../assets/MazInput.css";
|
|
2
2
|
import { computed as n, defineComponent as K, defineAsyncComponent as c, ref as p, getCurrentInstance as Q, onMounted as W, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as h, normalizeStyle as Y, createElementVNode as z, renderSlot as B, createVNode as b, unref as r, createCommentVNode as i, withDirectives as Z, mergeProps as _, toHandlers as ee, vModelDynamic as te, createTextVNode as ae, toDisplayString as le, createBlock as w, withModifiers as ne, withCtx as V } from "vue";
|
|
3
3
|
import { d as oe } from "./debounce-19c516b6.mjs";
|
|
4
|
-
import { _ as re } from "./MazPicker-
|
|
4
|
+
import { _ as re } from "./MazPicker-e4620d8b.mjs";
|
|
5
5
|
const ie = ({
|
|
6
6
|
componentName: e,
|
|
7
7
|
instance: d,
|
|
@@ -73,7 +73,7 @@ const ie = ({
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
|
|
75
75
|
setup(e, { emit: d }) {
|
|
76
|
-
const m = c(() => import("./MazBtn-
|
|
76
|
+
const m = c(() => import("./MazBtn-683effc1.mjs")), k = c(() => import("./MazIcon-52a76873.mjs")), $ = c(() => import("./eye-slash-fa42a017.mjs")), C = c(() => import("./eye-dc12ce09.mjs")), M = c(() => import("./check-c9b483c0.mjs")), t = e, u = d, y = p(!1), s = p(!1), x = p(), q = Q(), N = ie({
|
|
77
77
|
componentName: "MazInput",
|
|
78
78
|
instance: q,
|
|
79
79
|
providedId: t.id
|
|
@@ -640,7 +640,7 @@ const at = { class: "m-picker-container__wrapper" }, nt = /* @__PURE__ */ be({
|
|
|
640
640
|
},
|
|
641
641
|
emits: ["update:model-value", "update:calendar-date", "close"],
|
|
642
642
|
setup(e, { emit: u }) {
|
|
643
|
-
const h = te(() => import("./MazPickerTime-
|
|
643
|
+
const h = te(() => import("./MazPickerTime-717402ae.mjs")), y = te(() => import("./MazPickerHeader-a2e041eb.mjs")), $ = te(() => import("./MazPickerCalendar-da62262c.mjs").then((M) => M.M)), t = e, k = u, b = R({
|
|
644
644
|
get: () => t.modelValue,
|
|
645
645
|
set: (M) => {
|
|
646
646
|
k("update:model-value", M);
|
|
@@ -865,7 +865,7 @@ const Ce = (e, u) => {
|
|
|
865
865
|
},
|
|
866
866
|
emits: ["update:model-value", "close"],
|
|
867
867
|
setup(e, { emit: u }) {
|
|
868
|
-
const h = te(() => import("./chevron-down-2b60111a.mjs")), y = te(() => import("./MazInput-
|
|
868
|
+
const h = te(() => import("./chevron-down-2b60111a.mjs")), y = te(() => import("./MazInput-8a217995.mjs"));
|
|
869
869
|
p.extend(We), p.extend(Fe);
|
|
870
870
|
const $ = {
|
|
871
871
|
dateStyle: "full"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../assets/MazPickerCalendar.css";
|
|
2
2
|
import { openBlock as d, createElementBlock as y, createElementVNode as I, defineComponent as W, computed as o, createVNode as k, withCtx as w, unref as B, createTextVNode as Q, toDisplayString as N, useCssVars as ue, ref as $, watch as ce, TransitionGroup as me, Fragment as O, renderList as P, normalizeClass as H, createBlock as q, defineAsyncComponent as L, createCommentVNode as R, Transition as X } from "vue";
|
|
3
|
-
import { d as D, c as E, a as T, _ as j, g as ve, b as fe, i as V, e as ye, h as pe, j as he } from "./MazPicker-
|
|
4
|
-
import _ from "./MazBtn-
|
|
3
|
+
import { d as D, c as E, a as T, _ as j, g as ve, b as fe, i as V, e as ye, h as pe, j as he } from "./MazPicker-e4620d8b.mjs";
|
|
4
|
+
import _ from "./MazBtn-683effc1.mjs";
|
|
5
5
|
import { d as be } from "./debounce-19c516b6.mjs";
|
|
6
6
|
const De = {
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -429,7 +429,7 @@ const $e = /* @__PURE__ */ j(Be, [["__scopeId", "data-v-19c30331"]]), Oe = { cla
|
|
|
429
429
|
},
|
|
430
430
|
emits: ["update:model-value", "update:calendar-date"],
|
|
431
431
|
setup(r, { emit: g }) {
|
|
432
|
-
const e = L(() => import("./MazPickerMonthSwitcher-
|
|
432
|
+
const e = L(() => import("./MazPickerMonthSwitcher-5bf8bd08.mjs")), p = L(() => import("./MazPickerYearSwitcher-85f97b6d.mjs")), n = L(() => import("./MazPickerShortcuts-7f95430e.mjs")), s = r, z = g, c = $(), M = o(() => s.modelValue && typeof s.modelValue == "object"), m = o(
|
|
433
433
|
() => !s.noShortcuts && s.shortcuts.length > 0 && M.value
|
|
434
434
|
), v = $(!1), i = $(!1), C = o({
|
|
435
435
|
get: () => s.modelValue,
|
|
@@ -525,7 +525,10 @@ const $e = /* @__PURE__ */ j(Be, [["__scopeId", "data-v-19c30331"]]), Oe = { cla
|
|
|
525
525
|
]));
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
const je = /* @__PURE__ */ j(We, [["__scopeId", "data-v-dd9f0175"]]), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
528
|
+
const je = /* @__PURE__ */ j(We, [["__scopeId", "data-v-dd9f0175"]]), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
|
+
__proto__: null,
|
|
530
|
+
default: je
|
|
531
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
529
532
|
export {
|
|
530
533
|
Z as C,
|
|
531
534
|
Ue as M
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazPickerHeader.css";
|
|
2
2
|
import { defineComponent as q, computed as l, ref as z, watch as D, openBlock as r, createElementBlock as o, normalizeClass as k, createVNode as d, TransitionGroup as c, withCtx as p, Fragment as y, renderList as f, toDisplayString as _, createCommentVNode as g } from "vue";
|
|
3
|
-
import { a as i, c as v, d as Z, _ as j } from "./MazPicker-
|
|
3
|
+
import { a as i, c as v, d as Z, _ as j } from "./MazPicker-e4620d8b.mjs";
|
|
4
4
|
const B = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "m-picker-header__date"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../assets/MazPickerMonthSwitcher.css";
|
|
2
2
|
import { defineComponent as g, computed as v, openBlock as n, createElementBlock as d, createElementVNode as m, createVNode as u, withModifiers as p, withCtx as h, unref as s, normalizeClass as _, Fragment as M, renderList as w, createBlock as x, createTextVNode as S, toDisplayString as D } from "vue";
|
|
3
|
-
import { d as C, c as l, a as c, i as f, _ as B } from "./MazPicker-
|
|
4
|
-
import k from "./MazBtn-
|
|
3
|
+
import { d as C, c as l, a as c, i as f, _ as B } from "./MazPicker-e4620d8b.mjs";
|
|
4
|
+
import k from "./MazBtn-683effc1.mjs";
|
|
5
5
|
import { X as q } from "./x-mark-7761acf4.mjs";
|
|
6
6
|
const $ = { class: "maz-picker-month-switcher" }, N = { class: "maz-picker-month-switcher__header" }, P = /* @__PURE__ */ g({
|
|
7
7
|
__name: "MazPickerMonthSwitcher",
|
package/components/chunks/{MazPickerShortcuts-d0623e2d.mjs → MazPickerShortcuts-7f95430e.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../assets/MazPickerShortcuts.css";
|
|
2
2
|
import { defineComponent as _, ref as h, watch as i, openBlock as l, createElementBlock as n, Fragment as v, renderList as f, createBlock as y, normalizeClass as k, withModifiers as S, withCtx as b, createTextVNode as z, toDisplayString as g } from "vue";
|
|
3
|
-
import x from "./MazBtn-
|
|
4
|
-
import { _ as B } from "./MazPicker-
|
|
3
|
+
import x from "./MazBtn-683effc1.mjs";
|
|
4
|
+
import { _ as B } from "./MazPicker-e4620d8b.mjs";
|
|
5
5
|
const C = { class: "maz-picker-shortcuts" }, M = /* @__PURE__ */ _({
|
|
6
6
|
__name: "MazPickerShortcuts",
|
|
7
7
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../assets/MazPickerTime.css";
|
|
2
2
|
import { defineComponent as W, ref as x, computed as n, watch as B, nextTick as _, openBlock as d, createElementBlock as y, normalizeClass as g, Fragment as M, renderList as w, createElementVNode as b, normalizeStyle as S, createBlock as E, withModifiers as G, withCtx as J, createTextVNode as K, toDisplayString as Q } from "vue";
|
|
3
|
-
import { d as i, f as P, s as R, _ as U } from "./MazPicker-
|
|
4
|
-
import X from "./MazBtn-
|
|
3
|
+
import { d as i, f as P, s as R, _ as U } from "./MazPicker-e4620d8b.mjs";
|
|
4
|
+
import X from "./MazBtn-683effc1.mjs";
|
|
5
5
|
const Y = { class: "m-picker-time__column__items" }, Z = /* @__PURE__ */ W({
|
|
6
6
|
__name: "MazPickerTime",
|
|
7
7
|
props: {
|
package/components/chunks/{MazPickerYearSwitcher-746c84fc.mjs → MazPickerYearSwitcher-85f97b6d.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../assets/MazPickerYearSwitcher.css";
|
|
2
2
|
import { defineComponent as g, ref as b, computed as w, openBlock as m, createElementBlock as f, createElementVNode as u, createVNode as o, withModifiers as l, withCtx as i, unref as s, Fragment as S, renderList as Y, createBlock as D, normalizeClass as M, createTextVNode as B, toDisplayString as q } from "vue";
|
|
3
|
-
import { d as c, a as I, i as y, _ as N } from "./MazPicker-
|
|
4
|
-
import d from "./MazBtn-
|
|
3
|
+
import { d as c, a as I, i as y, _ as N } from "./MazPicker-e4620d8b.mjs";
|
|
4
|
+
import d from "./MazBtn-683effc1.mjs";
|
|
5
5
|
import { X as P } from "./x-mark-7761acf4.mjs";
|
|
6
|
-
import { C as v } from "./MazPickerCalendar-
|
|
6
|
+
import { C as v } from "./MazPickerCalendar-da62262c.mjs";
|
|
7
7
|
const V = { class: "maz-picker-year-switcher" }, E = { class: "maz-picker-year-switcher__header" }, L = { class: "maz-flex maz-space-x-2" }, T = { class: "maz-picker-year-switcher__main" }, X = /* @__PURE__ */ g({
|
|
8
8
|
__name: "MazPickerYearSwitcher",
|
|
9
9
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as p, createElementVNode as r } from "vue";
|
|
3
|
-
import { _ as i } from "./MazPicker-
|
|
3
|
+
import { _ as i } from "./MazPicker-e4620d8b.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), p(), e), _ = ["width", "height"], d = /* @__PURE__ */ a(() => /* @__PURE__ */ r(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var S=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-794680d2.cjs"),z=e.defineComponent({__name:"MazBtn",props:{variant:{type:String,default:"button",validator:t=>["button","link"].includes(t)},size:{type:String,default:"md",validator:t=>["mini","xs","sm","md","lg","xl"].includes(t)},color:{type:String,default:"primary"},type:{type:String,default:"button",validator:t=>["button","submit","reset"].includes(t)},rounded:{type:Boolean,default:!1},noRounded:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},pastel:{type:Boolean,default:!1},block:{type:Boolean,default:!1},noUnderline:{type:Boolean,default:!1},noLeading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fab:{type:Boolean,default:!1},icon:{type:String,default:void 0},leftIcon:{type:String,default:void 0},rightIcon:{type:String,default:void 0},noPadding:{type:Boolean,default:!1},noElevation:{type:Boolean,default:!1}},setup(t){const d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-6ffa8db1.cjs"))),a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-599a907f.cjs"))),{href:f,to:m}=e.useAttrs(),r=e.useSlots(),n=t;e.onBeforeMount(()=>{n.icon&&!n.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const i=e.computed(()=>f?"a":m?"router-link":"button"),v=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),c=e.computed(()=>(n.loading||n.disabled)&&i.value==="button"),b=e.computed(()=>c.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),o=e.computed(()=>n.loading&&n.variant==="button"),u=e.computed(()=>!!r["left-icon"]||n.leftIcon),s=e.computed(()=>!!r["right-icon"]||n.rightIcon),p=e.computed(()=>u.value||s.value),B=e.computed(()=>n.fab&&n.icon),g=e.computed(()=>i.value==="button"?n.type:void 0);return(l,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),e.mergeProps(l.$attrs,{disabled:c.value,class:["m-btn",[`--${t.size}`,v.value,b.value,y.value,{"--block":t.block,"--no-underline":t.noUnderline,"--no-leading":t.noLeading,"--fab":t.fab,"--loading":t.loading,"--disabled":c.value,"--icon":p.value,"--rounded":t.rounded,"--no-rounded":t.noRounded,"--no-padding":t.noPadding,"--no-elevation":t.noElevation}]],type:g.value}),{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":o.value}])},[e.renderSlot(l.$slots,"left-icon",{},()=>[t.leftIcon?(e.openBlock(),e.createBlock(e.unref(a),{key:0,name:t.leftIcon},null,8,["name"])):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),B.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["m-btn__icon maz-flex maz-flex-center",{"maz-invisible":o.value}])},[e.renderSlot(l.$slots,"icon",{},()=>[t.icon?(e.openBlock(),e.createBlock(e.unref(a),{key:0,name:t.icon},null,8,["name"])):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{class:e.normalizeClass(["maz-flex maz-flex-center",{"maz-invisible":o.value}])},[e.renderSlot(l.$slots,"default",{},void 0,!0)],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["m-btn__icon-right maz-flex maz-flex-center",{"maz-invisible":o.value}])},[e.renderSlot(l.$slots,"right-icon",{},()=>[t.rightIcon?(e.openBlock(),e.createBlock(e.unref(a),{key:0,name:t.rightIcon},null,8,["name"])):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),o.value?(e.openBlock(),e.createBlock(e.unref(d),{key:3,size:"2em",color:t.color,class:"maz-absolute"},null,8,["color"])):e.createCommentVNode("v-if",!0)]),_:3},16,["disabled","class","type"]))}});const h=k._export_sfc(z,[["__scopeId","data-v-06ad874b"]]);exports.default=h;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent as M, defineAsyncComponent as p, useAttrs as E, useSlots as L, onBeforeMount as P, computed as t, openBlock as o, createBlock as u, resolveDynamicComponent as R, mergeProps as w, withCtx as A, createElementBlock as m, normalizeClass as s, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
-
import { _ as N } from "./index-
|
|
3
|
+
import { _ as N } from "./index-6a90ef88.mjs";
|
|
4
4
|
const U = /* @__PURE__ */ M({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -40,7 +40,7 @@ const U = /* @__PURE__ */ M({
|
|
|
40
40
|
noElevation: { type: Boolean, default: !1 }
|
|
41
41
|
},
|
|
42
42
|
setup(e) {
|
|
43
|
-
const z = p(() => import("./MazSpinner-
|
|
43
|
+
const z = p(() => import("./MazSpinner-03bd76bd.mjs")), c = p(() => import("./MazIcon-0bd6b78e.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
44
|
P(() => {
|
|
45
45
|
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
46
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./index-
|
|
2
|
+
import { i as q } from "./index-6a90ef88.mjs";
|
|
3
3
|
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-794680d2.cjs"),T=["innerHTML"],b=t.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:a=>a}},emits:["loaded","unloaded","error"],setup(a,{emit:f}){const i={},s=t.ref(),d=t.ref(),g=()=>{try{return C.injectStrict("mazIconPath")}catch{return}},l=a,u=f,m=t.computed(()=>l.path??g()),p=t.computed(()=>l.src?l.src:m.value?`${m.value}/${l.name}.svg`:`/${l.name}.svg`);t.onMounted(()=>{!l.name&&!l.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});const h=(e,r)=>{const n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=r;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=r,e.append(o)}},S=e=>Object.keys(e).reduce((r,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(r[n]=e[n]),r),{}),y=e=>{const r={},n=e.attributes;if(!n)return r;for(let o=n.length-1;o>=0;o--)r[n[o].name]=n[o].value;return r},w=e=>{let r=e.cloneNode(!0);return r=l.transformSource(e),l.title&&h(r,l.title),e.innerHTML},E=async e=>{i[e]||(i[e]=M(e));try{s.value=await i[e],await t.nextTick(),u("loaded",d.value)}catch(r){s.value&&(s.value=void 0,u("unloaded")),delete i[e],u("error",r)}},M=e=>new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.addEventListener("load",()=>{if(o.status>=200&&o.status<400)try{let c=new DOMParser().parseFromString(o.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=l.transformSource(c),r(c)):n(new Error('Loaded file is not valid SVG"'))}catch(v){n(v)}else n(new Error("Error loading SVG"))}),o.addEventListener("error",()=>n()),o.send()});return t.watchEffect(()=>E(p.value)),(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable vue/no-v-html "),t.createCommentVNode(" eslint-disable vue/html-self-closing "),s.value?(t.openBlock(),t.createElementBlock("svg",t.mergeProps({key:0,ref_key:"svgElem",ref:d,width:"1em",height:"1em"},{...y(s.value),...S(e.$attrs)},{style:`font-size: ${a.size}`,innerHTML:w(s.value)}),null,16,T)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-enable vue/no-v-html "),t.createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}});exports.default=b;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as p, createElementVNode as r } from "vue";
|
|
3
|
-
import { _ as i } from "./index-
|
|
3
|
+
import { _ as i } from "./index-6a90ef88.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), p(), e), _ = ["width", "height"], d = /* @__PURE__ */ a(() => /* @__PURE__ */ r(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./index-794680d2.cjs"),c=e=>(t.pushScopeId("data-v-c67298ec"),e=e(),t.popScopeId(),e),o=["width","height"],s=c(()=>t.createElementVNode("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},null,-1)),i=[s],r=t.defineComponent({__name:"MazSpinner",props:{size:{type:String,default:"2em"},color:{type:String,default:"primary"}},setup(e){return(a,d)=>(t.openBlock(),t.createElementBlock("svg",{width:e.size,height:e.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:t.normalizeClass(["m-spinner",`m-spinner--${e.color}`]),style:{"enable-background":"new 0 0 50 50"}},i,10,o))}});const p=n._export_sfc(r,[["__scopeId","data-v-c67298ec"]]);exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},r=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"},null,-1),n=[r];function t(i,s){return e.openBlock(),e.createElementBlock("svg",o,[...n])}const c={render:t};exports.default=c;exports.render=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M15.75 19.5 8.25 12l7.5-7.5"},null,-1),r=[n];function t(l,s){return e.openBlock(),e.createElementBlock("svg",o,[...r])}const c={render:t};exports.default=c;exports.render=t;
|
|
@@ -776,7 +776,7 @@ const dt = {
|
|
|
776
776
|
},
|
|
777
777
|
emits: ["close", "previous", "next", "before-close"],
|
|
778
778
|
setup(s, { emit: e }) {
|
|
779
|
-
const t = e, i = $(() => import("./MazSpinner-
|
|
779
|
+
const t = e, i = $(() => import("./MazSpinner-03bd76bd.mjs")), o = $(() => import("./x-mark-35f2f1e7.mjs")), l = $(() => import("./chevron-left-39b4621e.mjs"));
|
|
780
780
|
let d;
|
|
781
781
|
et(async () => {
|
|
782
782
|
d = await import("vue-scrollto");
|
|
@@ -1176,7 +1176,7 @@ const Pt = { class: "m-toast__message-wrapper" }, Ht = { class: "m-toast__messag
|
|
|
1176
1176
|
setup(s, { emit: e }) {
|
|
1177
1177
|
const t = $(() => import("./x-mark-35f2f1e7.mjs")), i = $(
|
|
1178
1178
|
() => import("./arrow-top-right-on-square-15191934.mjs")
|
|
1179
|
-
), o = $(() => import("./link-bb14441d.mjs")), l = $(() => import("./MazBtn-
|
|
1179
|
+
), o = $(() => import("./link-bb14441d.mjs")), l = $(() => import("./MazBtn-760c3b29.mjs")), d = h(), n = s, p = e, E = y(() => n.position.includes("top") ? "top" : "bottom"), b = y(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), C = y(() => b.value !== "center" ? b.value === "right" ? "m-slide-right" : "m-slide-left" : E.value === "top" ? "m-slide-top" : "m-slide-bottom"), S = h(!1), I = h(!1), w = h(), B = h(), R = `m-toast-container --${E.value} --${b.value}`, O = `.${R.replaceAll(" ", ".")}`, G = () => {
|
|
1180
1180
|
const m = document.querySelector(O);
|
|
1181
1181
|
if (!m && !m) {
|
|
1182
1182
|
const f = document.body, g = document.createElement("div");
|
|
@@ -1570,15 +1570,6 @@ const fs = ({
|
|
|
1570
1570
|
rejectDialog: (s, e = !1) => Te("reject", s, e),
|
|
1571
1571
|
resolveDialog: (s, e = !1) => Te("resolve", s, e)
|
|
1572
1572
|
});
|
|
1573
|
-
function Es() {
|
|
1574
|
-
return {
|
|
1575
|
-
type: "component",
|
|
1576
|
-
resolve: (s) => {
|
|
1577
|
-
if (/^Maz[A-Z]/.test(s))
|
|
1578
|
-
return { from: `maz-ui/components/${s}` };
|
|
1579
|
-
}
|
|
1580
|
-
};
|
|
1581
|
-
}
|
|
1582
1573
|
export {
|
|
1583
1574
|
Kt as A,
|
|
1584
1575
|
Wt as B,
|
|
@@ -1593,7 +1584,6 @@ export {
|
|
|
1593
1584
|
bs as K,
|
|
1594
1585
|
ws as L,
|
|
1595
1586
|
zs as M,
|
|
1596
|
-
Es as N,
|
|
1597
1587
|
ss as S,
|
|
1598
1588
|
Bt as T,
|
|
1599
1589
|
nt as U,
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var Ve=Object.create;var Z=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var je=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var We=(s,e,t)=>e in s?Z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Ke=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ue(e))!Re.call(s,n)&&n!==t&&Z(s,n,{get:()=>e[n],enumerable:!(i=qe(e,n))||i.enumerable});return s};var Ye=(s,e,t)=>(t=s!=null?Ve(je(s)):{},Ke(e||!s||!s.__esModule?Z(t,"default",{value:s,enumerable:!0}):t,s));var a=(s,e,t)=>(We(s,typeof e!="symbol"?e+"":e,t),t);var es=require("../assets/index.css");const o=require("vue");function K(s,e){const t=o.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function Xe(s,e){let t;return function(...i){clearTimeout(t),t=setTimeout(()=>{s.apply(this,i)},e)}}function Ze(s){return!!s}function J(s,e){let t=e==null?void 0:e.element;function i(){t&&o.render(null,t)}const n=o.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:i}:{}},e==null?void 0:e.children);return e!=null&&e.app?(n.appContext=e.app._context,t?o.render(n,t):typeof document<"u"&&(t=document.createElement("div"),o.render(n,t))):(t=t??document.body,o.render(n,t)),{vNode:n,destroy:i,el:t}}function k(){return typeof document<"u"}class ve{constructor(e,t){a(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});a(this,"options");a(this,"timeoutHandler");a(this,"isIdle",!1);a(this,"isDestroy",!1);a(this,"startTime",0);a(this,"remainingTime",0);a(this,"lastClientX",-1);a(this,"lastClientY",-1);a(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);a(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:i}=e;if(t===void 0&&i===void 0||t===this.lastClientX&&i===this.lastClientY)return;this.lastClientX=t,this.lastClientY=i}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},k()&&this.start()}get element(){return this.options.element??document.body}start(){if(!k()){console.warn("[IdleTimeout](start) you should run this method on client side");return}for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(!k()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class fe{constructor(e,t){a(this,"eventHandlerFunction");a(this,"event","visibilitychange");a(this,"timeoutHandler");a(this,"options");a(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});a(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),k()&&this.start()}start(){if(!k()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const $=s=>new Promise(e=>{setTimeout(e,s)});class Qe{constructor({src:e,identifier:t,once:i=!0,async:n=!0,defer:c=!0}){a(this,"src");a(this,"script");a(this,"once");a(this,"async");a(this,"defer");a(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=i,this.async=n,this.defer=c}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const i of t)this.removeTag(i);return this.injectScript()}injectScript(){const e=window;return new Promise((t,i)=>{try{const n=document.createElement("script");n.src=this.src,n.async=this.async,n.defer=this.defer,n.dataset.identifier=this.identifier,n.addEventListener("error",c=>i(new Error(`[ScriptLoader](injectScript) ${c.message}`))),n.addEventListener("load",c=>(this.script=c,e[this.identifier]=c,t(c))),document.head.append(n)}catch(n){throw new Error(`[ScriptLoader](init) ${n}`)}})}}function Ge(s){return[...s].map(t=>t.charCodeAt(0)%32+127461).map(t=>String.fromCodePoint(t)).join("")}const W="__vue_click_away__",ge=()=>document.ontouchstart===null?"touchstart":"click",pe=async(s,e)=>{ye(s);const t=e.instance,i=e.value,n=typeof i=="function";if(!n)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await o.nextTick(),s[W]=h=>{if((!s||!s.contains(h.target))&&i&&n)return i.call(t,h)};const c=ge();document.addEventListener(c,s[W],!1)},ye=s=>{const e=ge();document.removeEventListener(e,s[W],!1),delete s[W]},Je=(s,e)=>{e.value!==e.oldValue&&pe(s,e)},ee={mounted:pe,updated:Je,unmounted:ye},et={install:s=>{s.directive("click-outside",ee)}},we=(s,e,t,i)=>{s.stopPropagation();const{handler:n,exclude:c}=t.value;let h=!1;if(c&&c.length>0)for(const r of c)h||(h=i.context.$refs[r].contains(s.target));!e.contains(s.target)&&!h&&i.context[n]()},be=()=>document.ontouchstart===null?"touchstart":"click",tt=(s,e,t)=>{const i=be();document.removeEventListener(i,n=>we(n,s,e,t))},st=(s,e,t)=>{const i=be();document.addEventListener(i,n=>we(n,s,e,t))},te={mounted:st,unmounted:tt},it={install:s=>{s.directive("closable",te)}},ot=`
|
|
2
|
+
.maz-zoom-img {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
padding: 1rem;
|
|
9
|
+
z-index: 1050;
|
|
10
|
+
background-color: hsla(238, 15%, 40%, 0.7);
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.maz-zoom-img,
|
|
18
|
+
.maz-zoom-img * {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.maz-zoom-img .maz-zoom-img__wrapper {
|
|
23
|
+
position: relative;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
min-height: 0;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
max-height: 100%;
|
|
31
|
+
transition: all 300ms ease-in-out;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
transform: scale(0.5);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
transform: scale(1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.maz-zoom-img.maz-animate .maz-zoom-img__loader {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
left: 0;
|
|
46
|
+
right: 0;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
background-color: hsla(238, 15%, 40%, 0.7);
|
|
51
|
+
border-radius: 1rem;
|
|
52
|
+
z-index: 2;
|
|
53
|
+
min-width: 60px;
|
|
54
|
+
min-height: 60px;
|
|
55
|
+
}
|
|
56
|
+
.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@-webkit-keyframes spin {
|
|
61
|
+
0% { transform: rotate(0deg); }
|
|
62
|
+
100% { transform: rotate(360deg); }
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes spin {
|
|
66
|
+
0% { transform: rotate(0deg); }
|
|
67
|
+
100% { transform: rotate(360deg); }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {
|
|
71
|
+
animation: spin .6s linear infinite;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.maz-zoom-img img {
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
max-height: 100%;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
border-radius: 1rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.maz-zoom-img .maz-zoom-btn {
|
|
82
|
+
margin: 0 auto;
|
|
83
|
+
border: none;
|
|
84
|
+
background-color: hsla(0, 0%, 7%, 0.5);
|
|
85
|
+
box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);
|
|
86
|
+
height: 2.2rem;
|
|
87
|
+
min-height: 2.2rem;
|
|
88
|
+
width: 2.2rem;
|
|
89
|
+
min-width: 2.2rem;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
border-radius: 2.2rem;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
flex: 0 0 auto;
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.maz-zoom-img .maz-zoom-btn svg {
|
|
100
|
+
fill: white;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 0.5rem;
|
|
106
|
+
right: 0.5rem;
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {
|
|
111
|
+
position: absolute;
|
|
112
|
+
left: 0.5rem;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {
|
|
117
|
+
position: absolute;
|
|
118
|
+
right: 0.5rem;
|
|
119
|
+
z-index: 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.maz-zoom-img .maz-zoom-btn:hover {
|
|
123
|
+
background-color: hsl(0, 0%, 0%);
|
|
124
|
+
}`,le={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};class nt{constructor(e){a(this,"options");a(this,"loader");a(this,"wrapper");a(this,"img");a(this,"keydownHandler");a(this,"onImgLoadedCallback");a(this,"buttonsAdded");a(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(ot);const i=document.createElement("div");i.classList.add("maz-zoom-img"),i.setAttribute("id","MazImgPreviewFullsize"),i.addEventListener("click",n=>{i.isEqualNode(n.target)&&this.closePreview()}),typeof t=="object"&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),i.append(this.wrapper),document.body.append(i),this.keyboardEventHandler(!0),setTimeout(()=>{i&&i.classList.add("maz-animate")},100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],i=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,i){const n=this.getButton("previous"),c=this.getButton("next");t.push(n,c)}this.wrapper.append(e),i&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=le.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),(e.key==="Escape"||e.key===" ")&&this.closePreview(),(e.key==="ArrowLeft"||e.key==="ArrowRight")&&this.nextPreviousImage(e.key==="ArrowRight")}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=le[e],t.addEventListener("click",()=>{e==="close"?this.closePreview():this.allInstances&&this.nextPreviousImage(e==="next")}),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),i=document.querySelector(".maz-zoom-img-instance.maz-is-open");i&&i.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout(()=>{e&&e.remove(),t&&t.remove()},300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,i=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(i){const n=this.allInstances.indexOf(i),c=t?n+1:n-1,h=this.allInstances[this.getNewInstanceIndex(c)];h&&this.useNextInstance(i,h)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const i=t.getAttribute("data-zoom-src"),n=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,i&&this.img.setAttribute("src",i),n&&this.img.setAttribute("alt",n)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let U;const se={created(s,e){U=new nt(e),U.create(s)},updated(s,e){U.update(e)},unmounted(s){U.remove(s)}},rt={install(s){s.directive("zoom-img",se)}},at="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",G={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class ze{constructor(e={}){a(this,"observers",[]);a(this,"defaultOptions",G);a(this,"options");a(this,"onImgLoadedCallback");a(this,"onImgErrorCallback");a(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-0f6fcaf4.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,i;this.addClass(e,this.options.loadingClass),(i=(t=this.options).onLoading)==null||i.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,i;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(i=(t=this.options).onLoaded)==null||i.call(t,e)}imageHasError(e,t){var i,n;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(n=(i=this.options).onError)==null||n.call(i,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const i=this.getImgElement(e).getAttribute("data-lazy-src");if(i)return i;t.value;const n=typeof t.value=="object"?t.value.src:t.value;return n||console.warn("[maz-ui][MazLazyImg] src url is not defined"),n}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const i of t){const n=i.getAttribute("data-lazy-srcset");n?i.srcset=n:console.warn('[maz-ui][MazLazyImg] the "[data-lazy-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const n of i)n.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",i=>this.onImgErrorCallback(e,i),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const i=this.getImageUrl(e,t);if(!i)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${i}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,i))}}setImgSrc(e,t){const i=this.getImgElement(e);i.src=t}handleIntersectionObserver(e,t,i,n){var c,h;this.observers.push(n);for(const r of i)if(r.isIntersecting){if((h=(c=this.options).onIntersecting)==null||h.call(c,r.target),this.options.observerOnce&&n.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const i=(h,r)=>{this.handleIntersectionObserver(e,t,h,r)},n=this.options.observerOptions;new IntersectionObserver(i,n).observe(e)}async imageHandler(e,t,i){if(i==="update")for await(const n of this.observers)n.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,i){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,i)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);setTimeout(()=>this.setBaseClass(e),0),e.getAttribute("src")||this.setImgSrc(e,at),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const i of this.observers)i.unobserve(e);this.observers=[]}}let j;const Ee={created(s,e){const t=typeof e.value=="object"?e.value:{};j=new ze(t),j.add(s,e)},updated(s,e){j.update(s,e)},unmounted(s,e){j.remove(s,e)}},lt="lazy-img",ct={install(s,e={}){const t={...G,...e,observerOptions:{...G.observerOptions,...e.observerOptions}},i=new ze(t);s.directive(lt,{created:i.add.bind(i),updated:i.update.bind(i),unmounted:i.remove.bind(i)})}},ut=["onClick","onKeypress"],mt={class:"m-fullscreen-img-scroller"},dt=["src","alt"],ht=o.defineComponent({__name:"MazFullscreenImg",props:{destroy:{type:Function,default:void 0},src:{},alt:{default:void 0},openInstanceClass:{},zoom:{type:Boolean,default:!0},disabled:{type:Boolean},clickedElementBounds:{},clickedElement:{},animated:{type:Boolean,default:!0},scaleAnimation:{type:Boolean}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-6ffa8db1.cjs"))),n=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-a28deca5.cjs"))),c=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-36731110.cjs")));let h;o.onBeforeMount(async()=>{h=await import("vue-scrollto")});const r=s,p=o.ref(!1),b=o.ref(!1),y=o.ref(!1),A=o.ref(!1),C=o.ref(!1),z=o.ref(!1),w=o.ref(!1),O=o.ref(r.clickedElement instanceof HTMLImageElement),D=o.ref(r.src),x=o.ref(r.alt),V=o.ref(),u=o.ref(),E=o.computed(()=>O.value&&r.animated&&!r.scaleAnimation),N=o.computed(()=>(O.value||!r.animated)&&!r.scaleAnimation),H=o.ref(!1),q=o.computed(()=>z.value?`--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${H.value?"maz-h-screen maz-w-auto":"maz-h-auto maz-w-screen"}`:`cursor-zoom-out ${H.value?"maz-w-screen maz-h-screen --is-landscape":"maz-h-screen maz-w-auto"}`);function Y(){b.value=!0,y.value=!1,A.value=!0}function S(){t("before-close"),p.value=!1}function d(m){m.key==="Escape"&&(m.preventDefault(),S()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),X(m.key==="ArrowRight"))}function f(){document.documentElement.classList.add("--m-fullscreen-open")}function g(){document.documentElement.classList.remove("--m-fullscreen-open")}function F(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function $e(m,l){return l<0?m.length-1:l>=m.length?0:l}async function _e(m,l){m.classList.remove(r.openInstanceClass),l.classList.add(r.openInstanceClass);const v=l.getAttribute("data-src"),L=l.getAttribute("data-alt");x.value=L??void 0,v&&(D.value=v),b.value=!1,await $(300),b.value||(y.value=!0)}function X(m){const l=document.querySelector(`.m-fullscreen-img-instance.${r.openInstanceClass}`);if(l){const v=F(),L=v.indexOf(l),P=m?L+1:L-1,I=v[$e(v,P)];I&&_e(l,I),t(m?"next":"previous")}}async function Be(m){const l=m.target;l.style.width=`${l.clientWidth}px`,l.style.height=`${l.clientHeight}px`,await $(0),z.value=!z.value,l.style.removeProperty("width"),l.style.removeProperty("height"),await $(0);const v=l.clientWidth/m.clientY,P=window.innerWidth/v-window.innerHeight/2;h.scrollTo(l,200,{container:l.parentElement,easing:"linear",offset:z.value?P:0})}o.onMounted(async()=>{await o.nextTick(),document.addEventListener("keydown",d),p.value=!0,y.value=!0,f(),C.value=F().length>1,u.value&&(H.value=r.clickedElementBounds.height<r.clickedElementBounds.width)});function ae(){u.value&&(w.value=!0,u.value.style.removeProperty("margin-left"),u.value.style.removeProperty("margin-right"),u.value.style.opacity="0.5",u.value.style.width=`${r.clickedElementBounds.width}px`,u.value.style.height=`${r.clickedElementBounds.height}px`,u.value.style.top=`${r.clickedElementBounds.top}px`,u.value.style.left=`${r.clickedElementBounds.left}px`)}async function Me(){if(await $(0),u.value){u.value.style.opacity="1",u.value.style.removeProperty("height"),u.value.style.removeProperty("width"),u.value.style.removeProperty("transform");const m=window.innerWidth,l=window.innerHeight,v=r.clickedElementBounds.height,L=r.clickedElementBounds.width;if(H.value){u.value.style.left="0px";const P=v*m/L,I=(l-P)/2;u.value.style.top=`${I<=0?0:I}px`}else{u.value.style.top="0px";const P=L*l/v,I=(m-P)/2;u.value.style.left=`${I<=0?0:I}px`}}}function De(){u.value&&(u.value.style.removeProperty("top"),u.value.style.removeProperty("left"),u.value.style.marginLeft="auto",u.value.style.marginRight="auto",u.value.style.removeProperty("opacity")),w.value=!1}function Ne(){if(u.value){const{left:m,top:l}=u.value.getBoundingClientRect();u.value.style.left=`${m}px`,u.value.style.top=`${l}px`,u.value.style.width=`${u.value.width}px`,u.value.style.height=`${u.value.height}px`,w.value=!0}}function Fe(){var m,l;t("close"),(m=V.value)==null||m.remove(),(l=r.destroy)==null||l.call(r)}return o.onBeforeUnmount(()=>{document.removeEventListener("keydown",d),g()}),(m,l)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:V,role:"button",class:o.normalizeClass(["m-fullscreen-img",{"--animation-active":w.value}]),tabindex:"0",onClick:o.withModifiers(S,["self"]),onKeypress:o.withKeys(o.withModifiers(S,["prevent"]),["esc"])},[o.withDirectives(o.createVNode(o.unref(i),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[o.vShow,y.value]]),A.value&&C.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:l[0]||(l[0]=o.withModifiers(v=>X(!0),["stop"]))},[o.createVNode(o.unref(c),{class:"maz-rotate-90 maz-text-2xl"})])):o.createCommentVNode("v-if",!0),p.value&&A.value&&C.value?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:l[1]||(l[1]=o.withModifiers(v=>X(!1),["stop"]))},[o.createVNode(o.unref(c),{class:"maz-text-2xl"})])):o.createCommentVNode("v-if",!0),o.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:S},[o.createVNode(o.unref(n),{class:"maz-text-2xl"})]),o.createElementVNode("div",mt,[o.createVNode(o.Transition,{name:N.value?void 0:"maz-scale-fade",onBeforeEnter:l[3]||(l[3]=v=>E.value&&ae()),onEnter:l[4]||(l[4]=v=>E.value&&Me()),onAfterEnter:l[5]||(l[5]=v=>E.value&&De()),onBeforeLeave:l[6]||(l[6]=v=>E.value&&Ne()),onLeave:l[7]||(l[7]=v=>E.value&&ae()),onAfterLeave:Fe,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("img",{id:"ZvImgElement",ref_key:"ImgElement",ref:u,src:D.value,alt:x.value,tabindex:"0",class:o.normalizeClass([{zoomable:m.zoom},q.value]),onLoad:Y,onClick:l[2]||(l[2]=v=>m.zoom?Be(v):void 0)},null,42,dt),[[o.vShow,p.value]])]),_:1},8,["name"])])],42,ut))}});const ie=(s,e)=>{const t=s.__vccOpts||s;for(const[i,n]of e)t[i]=n;return t},vt=ie(ht,[["__scopeId","data-v-1b5808d8"]]),ce="m-fullscreen-is-open";class ft{constructor(){a(this,"options");a(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,animated:!0,zoom:!0,scaleAnimation:!1});a(this,"mouseEnterListener");a(this,"mouseLeaveListener");a(this,"renderPreviewListener")}buildOptions(e,t){const i=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},n=(i==null?void 0:i.src)??this.getImgSrc(e),c=(i==null?void 0:i.alt)??this.getImgAlt(e);return{...this.defaultOptions,...i,src:n,alt:c}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var i;const t=((i=this.options)==null?void 0:i.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 300ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const i=this.getImgAlt(e);i&&e.setAttribute("data-alt",i),this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener)}update(e,t){this.options=this.buildOptions(e,t)}remove(e){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=""}renderPreview(e){return e.classList.add(ce),J(vt,{props:{...this.options,openInstanceClass:ce,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.05)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let R;const oe={mounted(s,e){return R=new ft,R.create(s,e)},updated(s,e){return R.update(s,e)},unmounted(s){return R.remove(s)}},gt={install(s){s.directive("fullscreen-img",oe)}},pt=[{name:"click-outside",directive:ee},{name:"closable",directive:te},{name:"zoom-img",directive:se},{name:"lazy-img",directive:Ee},{name:"fullscreen-img",directive:oe}],yt={install(s){for(const{name:e,directive:t}of pt)s.directive(e,t)}},Le=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",wt={style:"currency",minimumFractionDigits:2,round:!1},bt=(s,e,t)=>{let i=Number(s);return t.round&&(i=Math.floor(i),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(i)},zt=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Ie=(s,e,t)=>{const i={...wt,...t};zt(s,e,i);try{return bt(s,e,i)}catch(n){throw new Error(`[maz-ui](FilterCurrency) ${n}`)}},Et={month:"short",day:"numeric",year:"numeric"},Te=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const i=t??Et;try{const n=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,i).format(n)}catch(n){throw new Error(`[maz-ui](FilterDate) ${n}`)}},Lt={minimumFractionDigits:2},ke=(s,e,t)=>{const i={...Lt,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,i).format(Number(s))}catch(n){throw new Error(`[maz-ui](FilterNumber) ${n}`)}},It={capitalize:Le,currency:Ie,date:Te,number:ke},Tt={install(s){s.provide("filters",It)}};class kt{constructor(e,t){a(this,"callback");a(this,"delay");a(this,"timer");a(this,"startedAt");this.startedAt=Date.now(),this.callback=e,this.delay=t,this.start()}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.startedAt=Date.now(),this.start()}start(){this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const At={class:"m-toast__message-wrapper"},Ct={class:"m-toast__message"},xt={class:"maz-flex maz-items-center maz-gap-2"},St={key:0},Pt=o.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info",validator:s=>["info","success","warning","danger"].includes(s)},message:{type:String,required:!0},link:{type:Object,default:void 0},action:{type:Object,default:void 0},persistent:{type:Boolean,default:!1}},emits:["close","click"],setup(s,{emit:e}){const t=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-a28deca5.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-8e4ea6e2.cjs"))),n=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-c7791a2a.cjs"))),c=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-2f302422.cjs"))),h=o.ref(),r=s,p=e,b=o.computed(()=>r.position.includes("top")?"top":"bottom"),y=o.computed(()=>r.position.includes("left")?"left":r.position.includes("right")?"right":"center"),A=o.computed(()=>y.value!=="center"?y.value==="right"?"m-slide-right":"m-slide-left":b.value==="top"?"m-slide-top":"m-slide-bottom"),C=o.ref(!1),z=o.ref(!1),w=o.ref(),O=o.ref(),D=`m-toast-container --${b.value} --${y.value}`,x=`.${D.replaceAll(" ",".")}`,V=()=>{const d=document.querySelector(x);if(!d&&!d){const f=document.body,g=document.createElement("div");g.className=D,f.append(g)}},u=()=>{const d=document.querySelector(x);return!r.queue&&r.maxToasts===!1?!1:typeof r.maxToasts=="number"&&d?r.maxToasts<=d.childElementCount:d&&d.childElementCount>0},E=()=>{if(u()){O.value=setTimeout(E,250);return}const d=document.querySelector(x);h.value&&d&&d.prepend(h.value),z.value=!0,w.value=r.timeout?new kt(S,r.timeout):void 0};function N(d){p("click",d),r.persistent||S()}async function H(d,f){var g;C.value=!0,await d(),C.value=!1,(g=r.action)!=null&&g.closeToast&&N(f)}const q=d=>{w.value&&!r.noPauseOnHover&&(d?w.value.pause():w.value.resume())},Y=()=>{w.value&&w.value.stop(),O.value&&clearTimeout(O.value)},S=()=>{Y(),z.value=!1,setTimeout(()=>{var f;p("close"),(f=h.value)==null||f.remove();const d=document.querySelector(x);d&&!(d!=null&&d.hasChildNodes())&&d.remove()},300)};return o.onMounted(()=>{V(),E()}),(d,f)=>(o.openBlock(),o.createBlock(o.Transition,{name:A.value,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("button",{ref_key:"Toaster",ref:h,class:o.normalizeClass(["m-toast",[`--${s.type}`,`--${b.value}`,`--${y.value}`]]),role:"alert",onMouseover:f[2]||(f[2]=g=>q(!0)),onMouseleave:f[3]||(f[3]=g=>q(!1)),onClick:f[4]||(f[4]=o.withModifiers(g=>{var F;return s.link&&!((F=s.link)!=null&&F.closeToast)?void 0:N(g)},["stop"]))},[o.createElementVNode("div",At,[o.createElementVNode("p",Ct,o.toDisplayString(s.message),1)]),s.action?(o.openBlock(),o.createBlock(o.unref(c),{key:0,color:s.type,pastel:"",loading:C.value,size:"sm",onClick:f[0]||(f[0]=o.withModifiers(g=>H(s.action.func,g),["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.action.text),1)]),_:1},8,["color","loading"])):o.createCommentVNode("v-if",!0),s.link?(o.openBlock(),o.createBlock(o.unref(c),{key:1,color:s.type,pastel:"",size:"xs",href:s.link.href,target:s.link.target??"_self"},{default:o.withCtx(()=>{var g;return[o.createElementVNode("div",xt,[s.link.text?(o.openBlock(),o.createElementBlock("span",St,o.toDisplayString(s.link.text),1)):o.createCommentVNode("v-if",!0),((g=s.link)==null?void 0:g.target)=="_blank"?(o.openBlock(),o.createBlock(o.unref(i),{key:1,class:"maz-text-xl"})):(o.openBlock(),o.createBlock(o.unref(n),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):o.createCommentVNode("v-if",!0),s.persistent?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("button",{key:2,class:"--close",onClick:f[1]||(f[1]=o.withModifiers(g=>N(g),["stop"]))},[o.createVNode(o.unref(t),{class:"--icon maz-text-xl"})]))],34),[[o.vShow,z.value]])]),_:1},8,["name"]))}});const Ot=ie(Pt,[["__scopeId","data-v-27a7b86f"]]),Ht={position:"bottom-right",timeout:1e4,persistent:!1};class Ae{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const i={message:e,...t},n={...Ht,...i,...this.globalOptions,...t};J(Ot,{props:n,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const $t={install(s,e){exports.toastInstance=new Ae(s,e),s.provide("toast",exports.toastInstance)}},_="",_t=s=>s.filter((e,t,i)=>t===i.indexOf(e)),Bt=s=>(e=_)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Mt=s=>s.length>0,Dt=s=>(e=_)=>_t([...s,e]),Nt=s=>(e=_)=>s.filter(t=>t!==e);class Ce{constructor(){a(this,"_loaders",o.ref([]))}get loaders(){return o.computed(()=>this._loaders.value)}stop(e=_){this._loaders.value=Nt(this._loaders.value)(e)}start(e=_){return this._loaders.value=Dt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return o.computed(()=>Mt(this._loaders.value))}isLoading(e=_){return o.computed(()=>Bt(this._loaders.value)(e)).value}}const xe=new Ce,Ft={install:s=>{s.provide("wait",xe)}},Q={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Se{constructor(e){a(this,"options");this.options={delay:(e==null?void 0:e.delay)??Q.delay,observer:{...Q.observer,...e==null?void 0:e.observer},animation:{...Q.animation,...e==null?void 0:e.animation}}}async handleObserver(){await $(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const i=t.getAttribute("data-maz-aos-anchor");if(i){const n=document.querySelector(i);n?(n.setAttribute("data-maz-aos-children","true"),e.observe(n)):console.warn(`[maz-ui](aos) no element found with selector "${i}"`)}else e.observe(t)}}runAnimations(){if(k())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}handleIntersect(e,t){for(const i of e){const c=i.target.getAttribute("data-maz-aos-children")==="true",h=i.target.getAttribute("data-maz-aos")?[i.target]:[];if(c){const r=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(p=>p.getAttribute("data-maz-aos-anchor")===`#${i.target.id}`?p:void 0);for(const p of r)p&&h.push(p)}for(const r of h){const p=r.getAttribute("data-maz-aos-once"),b=typeof p=="string"?p==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&i.intersectionRatio>this.options.observer.threshold){const y=r.getAttribute("data-maz-aos-duration"),A=r.getAttribute("data-maz-aos-delay");y||(r.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{r.style.transitionDuration="0"},1e3)),A||(r.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{r.style.transitionDelay="0"},1e3)),r.classList.add("maz-aos-animate"),b&&t.unobserve(r)}else r.classList.remove("maz-aos-animate")}}}}exports.instance$1=void 0;const Vt={install:(s,e)=>{exports.instance$1=new Se(e),s.provide("aos",exports.instance$1),k()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},ue={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system"},M=o.ref("system"),T=o.ref("system");function ne({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:i,setLocalStorageValue:n=!0,setSelectedTheme:c=!0}){document.documentElement.classList.remove(e),document.documentElement.classList.add(s),M.value=i,c&&(T.value=i),n&&(localStorage[t]=i)}function re({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:i,setLocalStorageValue:n=!0,setSelectedTheme:c=!0}){document.documentElement.classList.remove(s),document.documentElement.classList.add(e),M.value=i,c&&(T.value=i),n&&(localStorage[t]=i)}function Pe(s){document.documentElement.classList.remove(s.darkClass),document.documentElement.classList.remove(s.lightClass),M.value=s.storageThemeValueSystem,T.value=s.storageThemeValueSystem,s.setLocalStorageValue&&(localStorage[s.storageThemeKey]=s.storageThemeValueSystem),Oe({...s,setSelectedTheme:!1})}function me(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function Oe(s){localStorage[s.storageThemeKey]===s.storageThemeValueDark||!(s.storageThemeKey in localStorage)&&me()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&me()?ne({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):re({...s,setLocalStorageValue:!1,setSelectedTheme:!1})}function de({shouldSetDarkMode:s,...e}){return typeof s!="boolean"?Pe(e):s?ne(e):re(e)}function qt(s){return M.value===s.storageThemeValueDark?re(s):ne(s)}function Ut(s=ue){const e={...ue,...s},t=o.computed(()=>T.value===e.storageThemeValueDark),i=o.computed(()=>T.value===e.storageThemeValueLight),n=o.computed(()=>T.value===e.storageThemeValueSystem);return o.onMounted(()=>{localStorage[e.storageThemeKey]&&(M.value=localStorage[e.storageThemeKey],T.value=localStorage[e.storageThemeKey])}),{autoSetTheme:()=>Oe(e),toggleTheme:()=>qt(e),setSystemTheme:()=>Pe({...e,setLocalStorageValue:!0}),setDarkTheme:()=>de({...e,shouldSetDarkMode:!0}),setLightTheme:()=>de({...e,shouldSetDarkMode:!1}),hasDarkTheme:t,hasLightTheme:i,hasSystemTheme:n,theme:M,selectedTheme:T}}const jt=({componentName:s,instance:e,providedId:t})=>o.computed(()=>t??`${s}-${e==null?void 0:e.uid}`),Rt=()=>K("aos"),Wt=()=>K("wait"),Kt=()=>K("toast"),Yt=({callback:s,options:e})=>new ve(s,e),Xt=({callback:s,options:e})=>new fe(s,e),Zt=o.ref(),B=o.ref([]),Qt=(s,e)=>new Promise((t,i)=>{B.value=[...B.value,{id:s,isActive:!0,resolve:async()=>{await(e==null?void 0:e()),t(!0)},reject:i}]}),He=s=>(B.value=B.value.filter(({id:e})=>e!==s),B.value),he=(s,e,t=!1)=>{var i;e&&((i=e[s])==null||i.call(e,t),e.isActive=!1,setTimeout(()=>{He(e.id)},500))},Gt=()=>({confirmDialogData:Zt,dialogState:B,showDialogAndWaitChoice:Qt,removeDialogFromState:He,rejectDialog:(s,e=!1)=>he("reject",s,e),resolveDialog:(s,e=!1)=>he("resolve",s,e)});exports.AosHandler=Se;exports.IdleTimeout=ve;exports.ScriptLoader=Qe;exports.ToasterHandler=Ae;exports.UserVisibility=fe;exports.WaitHandler=Ce;exports._export_sfc=ie;exports.capitalize=Le;exports.countryCodeToUnicodeFlag=Ge;exports.currency=Ie;exports.date=Te;exports.debounce=Xe;exports.directive=ee;exports.directive$1=te;exports.injectStrict=K;exports.installDirectives=yt;exports.installFilters=Tt;exports.installToaster=$t;exports.instance=xe;exports.isClient=k;exports.mount=J;exports.number=ke;exports.plugin=et;exports.plugin$1=ct;exports.plugin$2=rt;exports.plugin$3=it;exports.plugin$4=Ft;exports.plugin$5=Vt;exports.sleep=$;exports.truthyFilter=Ze;exports.useAos=Rt;exports.useIdleTimeout=Yt;exports.useInstanceUniqId=jt;exports.useMazDialogPromise=Gt;exports.useThemeHandler=Ut;exports.useToast=Kt;exports.useUserVisibility=Xt;exports.useWait=Wt;exports.vFullscreenImg=oe;exports.vFullscreenImgInstall=gt;exports.vLazyImg=Ee;exports.vZoomImg=se;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},null,-1),r=[n];function t(c,i){return e.openBlock(),e.createElementBlock("svg",o,[...r])}const l={render:t};exports.default=l;exports.render=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJub25lIiBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgZmlsbD0iY3VycmVudENvbG9yIgogIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8Zz4KICAgIDxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIgLz4KICAgIDxnPgogICAgICA8cGF0aAogICAgICAgIGQ9Ik04LjksNi4wN0w3LjQ4LDQuNjZMOSwzaDZsMS44MywySDIwYzEuMSwwLDIsMC45LDIsMnYxMmMwLDAuMDUtMC4wMSwwLjEtMC4wMiwwLjE2TDIwLDE3LjE3VjdoLTQuMDVsLTEuODMtMkg5Ljg4IEw4LjksNi4wN3ogTTIwLjQ5LDIzLjMxTDE4LjE3LDIxSDRjLTEuMSwwLTItMC45LTItMlY3YzAtMC41OSwwLjI3LTEuMTIsMC42OC0xLjQ5bC0yLTJMMi4xLDIuMWwxOS44LDE5LjhMMjAuNDksMjMuMzF6IE05LjE5LDEyLjAyQzkuMDgsMTIuMzMsOSwxMi42NSw5LDEzYzAsMS42NiwxLjM0LDMsMywzYzAuMzUsMCwwLjY3LTAuMDgsMC45OC0wLjE5TDkuMTksMTIuMDJ6IE0xNi4xNywxOWwtMS42OC0xLjY4IEMxMy43NiwxNy43NSwxMi45MSwxOCwxMiwxOGMtMi43NiwwLTUtMi4yNC01LTVjMC0wLjkxLDAuMjUtMS43NiwwLjY4LTIuNDlMNC4xNyw3SDR2MTJIMTYuMTd6IE0xNC44MSwxMS45OGwyLjA3LDIuMDcgQzE2Ljk2LDEzLjcxLDE3LDEzLjM2LDE3LDEzYzAtMi43Ni0yLjI0LTUtNS01Yy0wLjM2LDAtMC43MSwwLjA0LTEuMDYsMC4xMmwyLjA3LDIuMDdDMTMuODUsMTAuNDksMTQuNTEsMTEuMTUsMTQuODEsMTEuOTh6IiAvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+";exports.default=M;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},r=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M6 18 18 6M6 6l12 12"},null,-1),n=[r];function t(l,s){return e.openBlock(),e.createElementBlock("svg",o,[...n])}const c={render:t};exports.default=c;exports.render=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-794680d2.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$5;exports.installDirectives=e.installDirectives;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$4;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useMazDialogPromise=e.useMazDialogPromise;exports.useThemeHandler=e.useThemeHandler;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$3;exports.vFullscreenImg=e.vFullscreenImg;exports.vFullscreenImgInstall=e.vFullscreenImgInstall;exports.vLazyImg=e.vLazyImg;exports.vLazyImgInstall=e.plugin$1;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$2;exports.waitInstance=e.instance;
|
package/modules/index.mjs
CHANGED
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import { B as e, I as l,
|
|
1
|
+
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as y, o as T, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, J as S, L as f, H as j, e as q, p as w, l as x, n as M, j as O, k as V, v as Z, f as B, g as E, h as G, A as J } from "./chunks/index-6a90ef88.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AosHandler,
|
|
4
4
|
l as IdleTimeout,
|
|
5
|
-
t as
|
|
6
|
-
i as
|
|
7
|
-
n as
|
|
8
|
-
o as
|
|
9
|
-
r as
|
|
10
|
-
u as
|
|
11
|
-
c as
|
|
12
|
-
I as
|
|
13
|
-
m as
|
|
14
|
-
d as
|
|
15
|
-
v as
|
|
16
|
-
g as
|
|
17
|
-
y as
|
|
18
|
-
C as installDirectives,
|
|
5
|
+
t as ScriptLoader,
|
|
6
|
+
i as ToasterHandler,
|
|
7
|
+
n as UserVisibility,
|
|
8
|
+
o as WaitHandler,
|
|
9
|
+
r as aosInstance,
|
|
10
|
+
u as capitalize,
|
|
11
|
+
c as countryCodeToUnicodeFlag,
|
|
12
|
+
I as currency,
|
|
13
|
+
m as date,
|
|
14
|
+
d as debounce,
|
|
15
|
+
v as injectStrict,
|
|
16
|
+
g as installAos,
|
|
17
|
+
y as installDirectives,
|
|
19
18
|
T as installFilters,
|
|
20
19
|
b as installToaster,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
C as installWait,
|
|
21
|
+
F as isClient,
|
|
22
|
+
p as mount,
|
|
23
|
+
z as number,
|
|
25
24
|
H as sleep,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
U as toastInstance,
|
|
26
|
+
A as truthyFilter,
|
|
27
|
+
L as useAos,
|
|
28
|
+
W as useIdleTimeout,
|
|
29
|
+
h as useInstanceUniqId,
|
|
30
|
+
k as useMazDialogPromise,
|
|
31
|
+
D as useThemeHandler,
|
|
33
32
|
S as useToast,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
f as useUserVisibility,
|
|
34
|
+
j as useWait,
|
|
35
|
+
q as vClickOutside,
|
|
36
|
+
w as vClickOutsideInstall,
|
|
37
|
+
x as vClosable,
|
|
38
|
+
M as vClosableInstall,
|
|
40
39
|
O as vFullscreenImg,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
V as vFullscreenImgInstall,
|
|
41
|
+
Z as vLazyImg,
|
|
42
|
+
B as vLazyImgInstall,
|
|
43
|
+
E as vZoomImg,
|
|
44
|
+
G as vZoomImgInstall,
|
|
45
|
+
J as waitInstance
|
|
47
46
|
};
|
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.2",
|
|
4
4
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
5
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
6
|
-
"main": "./modules/index.
|
|
6
|
+
"main": "./modules/index.cjs",
|
|
7
7
|
"module": "./modules/index.mjs",
|
|
8
8
|
"types": "./types/modules/index.d.ts",
|
|
9
9
|
"bin": {
|
|
@@ -13,12 +13,18 @@
|
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"types": "./types/modules/index.d.ts",
|
|
16
|
-
"
|
|
16
|
+
"import": "./modules/index.mjs",
|
|
17
|
+
"require": "./modules/index.cjs"
|
|
17
18
|
},
|
|
18
19
|
"./components": {
|
|
19
20
|
"types": "./types/components/index.d.ts",
|
|
20
21
|
"default": "./components/index.mjs"
|
|
21
22
|
},
|
|
23
|
+
"./resolvers": {
|
|
24
|
+
"types": "./types/resolvers/index.d.ts",
|
|
25
|
+
"import": "./resolvers/index.mjs",
|
|
26
|
+
"require": "./resolvers/index.cjs"
|
|
27
|
+
},
|
|
22
28
|
"./components/*": {
|
|
23
29
|
"types": "./types/components/*.vue.d.ts",
|
|
24
30
|
"default": "./components/*"
|
|
@@ -41,6 +47,7 @@
|
|
|
41
47
|
"nuxt",
|
|
42
48
|
"types",
|
|
43
49
|
"icons",
|
|
50
|
+
"resolvers",
|
|
44
51
|
"bin"
|
|
45
52
|
],
|
|
46
53
|
"lint-staged": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e){return e.replaceAll(/-(\w)/g,(s,t)=>t?t.toUpperCase():"")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return o(n(e))}function u(){return{type:"component",resolve:e=>{if(/^(Maz[A-Z])/.test(e))return{from:`maz-ui/components/${e}`};if(/^(maz-[a-z])/.test(e))return{from:`maz-ui/components/${r(e)}`}}}}exports.UnpluginVueComponentsResolver=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './unplugin-vue-components-resolver';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function n(e) {
|
|
2
|
+
return e.replaceAll(/-(\w)/g, (p, t) => t ? t.toUpperCase() : "");
|
|
3
|
+
}
|
|
4
|
+
function r(e) {
|
|
5
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
6
|
+
}
|
|
7
|
+
function o(e) {
|
|
8
|
+
return r(n(e));
|
|
9
|
+
}
|
|
10
|
+
function u() {
|
|
11
|
+
return {
|
|
12
|
+
type: "component",
|
|
13
|
+
resolve: (e) => {
|
|
14
|
+
if (/^(Maz[A-Z])/.test(e))
|
|
15
|
+
return { from: `maz-ui/components/${e}` };
|
|
16
|
+
if (/^(maz-[a-z])/.test(e))
|
|
17
|
+
return { from: `maz-ui/components/${o(e)}` };
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
u as UnpluginVueComponentsResolver
|
|
23
|
+
};
|
package/types/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './unplugin-vue-components-resolver';
|