maz-ui 3.19.1 → 3.19.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/MazAvatar.mjs +1 -1
- package/components/MazFullscreenLoader.d.ts +27 -19
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.d.ts +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/chunks/{MazAvatar-abb04cbe.mjs → MazAvatar-a65c81e3.mjs} +1 -1
- package/components/chunks/{MazBtn-b645511d.mjs → MazBtn-0d8e3249.mjs} +2 -2
- package/components/chunks/{MazBtn-02b39f75.mjs → MazBtn-16ab35fe.mjs} +2 -2
- package/components/chunks/{MazInput-4a02a10a.mjs → MazInput-15f3e149.mjs} +2 -2
- package/components/chunks/{MazLazyImg-478c8d2b.mjs → MazLazyImg-51c16f47.mjs} +6 -6
- package/components/chunks/{MazLazyImg-63de45ce.mjs → MazLazyImg-8d49fa48.mjs} +5 -5
- package/components/chunks/{MazPhoneNumberInput-458455bb.mjs → MazPhoneNumberInput-901c4fa6.mjs} +2 -2
- package/components/chunks/{MazSelect-41a971ea.mjs → MazSelect-1f4d1193.mjs} +2 -2
- package/components/chunks/{MazSelect-2e7271f3.mjs → MazSelect-c5c3f874.mjs} +3 -3
- package/components/chunks/{MazSpinner-f04bbd1e.mjs → MazSpinner-213b3866.mjs} +1 -1
- package/components/chunks/{MazSpinner-5921e33f.mjs → MazSpinner-5fdafc97.mjs} +1 -1
- package/components/chunks/{MazSpinner-4b2a2fda.mjs → MazSpinner-6025406b.mjs} +1 -1
- package/components/chunks/{MazSpinner-60ca1f4c.mjs → MazSpinner-819a5b00.mjs} +1 -1
- package/modules/chunks/{MazBtn-6418f038.mjs → MazBtn-f4c8698d.mjs} +3 -3
- package/modules/chunks/{MazIcon-c43d744d.mjs → MazIcon-2c79b9d8.mjs} +1 -1
- package/modules/chunks/{MazSpinner-766c5c8d.mjs → MazSpinner-331f6dc8.mjs} +1 -1
- package/modules/chunks/{index-71440a8c.mjs → index-1c3e48da.mjs} +52 -27
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +2 -2
- package/types/components/MazFullscreenLoader.vue.d.ts +27 -19
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/modules/composables/use-theme-handler.d.ts +6 -3
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +54 -88
package/components/MazAvatar.mjs
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import type { Color } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
color: {
|
|
17
|
-
type: import("vue").PropType<Color>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
}>>, {
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
color?: Color | undefined;
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
color: string;
|
|
7
|
+
size: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
color?: Color | undefined;
|
|
10
|
+
size?: string | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
color: string;
|
|
13
|
+
size: string;
|
|
14
|
+
}>>>, {
|
|
21
15
|
size: string;
|
|
22
16
|
color: Color;
|
|
23
17
|
}, {}>, {
|
|
24
18
|
default?(_: {}): any;
|
|
25
19
|
}>;
|
|
26
20
|
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
27
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
36
|
new (): {
|
|
29
37
|
$slots: S;
|
package/components/MazSelect.mjs
CHANGED
|
@@ -99,7 +99,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
99
99
|
allStepsOpened: boolean;
|
|
100
100
|
allStepsValidated: boolean;
|
|
101
101
|
canCloseSteps: boolean;
|
|
102
|
-
}, {}>, Partial<Record
|
|
102
|
+
}, {}>, Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: {
|
|
103
103
|
validated: boolean;
|
|
104
104
|
error: boolean | undefined;
|
|
105
105
|
warning: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-lazy-img-component[data-v-
|
|
1
|
+
.m-lazy-img-component[data-v-d4086686]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;background-color:var(--maz-color-bg-lighter);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-lazy-img-component-loader[data-v-d4086686]{position:absolute;top:0;right:0;bottom:0;left:0;display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-lazy-img-component:not(.m-lazy-error,.m-lazy-no-photo) img[data-v-d4086686]{height:100%;width:100%}.m-lazy-img-component.--height-full img[data-v-d4086686]{max-height:100%!important;width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;max-width:-webkit-min-content!important;max-width:-moz-min-content!important;max-width:min-content!important}.m-lazy-img-component.m-lazy-loading .m-lazy-img-component-loader[data-v-d4086686]{display:-webkit-box;display:-ms-flexbox;display:flex}
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["click"],
|
|
38
38
|
setup(__props) {
|
|
39
|
-
const MazLazyImg = defineAsyncComponent(() => import("./MazLazyImg-
|
|
39
|
+
const MazLazyImg = defineAsyncComponent(() => import("./MazLazyImg-51c16f47.mjs"));
|
|
40
40
|
const PencilIcon = defineAsyncComponent(() => import("./pencil-6f15596d.mjs"));
|
|
41
41
|
const props = __props;
|
|
42
42
|
const componentType = computed(() => props.to ? "RouterLink" : props.href ? "a" : "div");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazPhoneNumberInput-
|
|
3
|
+
import { _ as _export_sfc } from "./MazPhoneNumberInput-901c4fa6.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-6025406b.mjs"));
|
|
50
50
|
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
51
51
|
const { href, to } = useAttrs();
|
|
52
52
|
const slots = useSlots();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazSelect-
|
|
3
|
+
import { _ as _export_sfc } from "./MazSelect-1f4d1193.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-5fdafc97.mjs"));
|
|
50
50
|
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
51
51
|
const { href, to } = useAttrs();
|
|
52
52
|
const slots = useSlots();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazInput.css";
|
|
2
2
|
import { defineComponent, ref, getCurrentInstance, onMounted, computed, defineAsyncComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, createCommentVNode, withDirectives, mergeProps, toHandlers, vModelDynamic, createTextVNode, toDisplayString, createBlock, withModifiers, withCtx } from "vue";
|
|
3
|
-
import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-
|
|
3
|
+
import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-901c4fa6.mjs";
|
|
4
4
|
function debounce(func, delay) {
|
|
5
5
|
let timeoutId;
|
|
6
6
|
return (...args) => {
|
|
@@ -12,7 +12,7 @@ function debounce(func, delay) {
|
|
|
12
12
|
}, delay);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const MazBtn = defineAsyncComponent(() => import("./MazBtn-
|
|
15
|
+
const MazBtn = defineAsyncComponent(() => import("./MazBtn-0d8e3249.mjs"));
|
|
16
16
|
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
17
17
|
const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
|
|
18
18
|
const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
|
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import "../assets/MazLazyImg.css";
|
|
8
8
|
import { defineComponent, defineAsyncComponent, computed, withDirectives, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, mergeProps, createVNode, unref, createCommentVNode, renderSlot } from "vue";
|
|
9
|
-
import { _ as _export_sfc } from "./MazAvatar-
|
|
9
|
+
import { _ as _export_sfc } from "./MazAvatar-a65c81e3.mjs";
|
|
10
10
|
const EMPTY_PHOTO = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
|
11
11
|
const DEFAULT_OPTIONS = {
|
|
12
12
|
baseClass: "m-lazy-img",
|
|
@@ -249,7 +249,7 @@ const vLazyImg = {
|
|
|
249
249
|
instance.remove(el, binding);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
const _hoisted_1 = ["data-srcset", "media"];
|
|
252
|
+
const _hoisted_1 = ["data-lazy-srcset", "media"];
|
|
253
253
|
const _hoisted_2 = {
|
|
254
254
|
key: 0,
|
|
255
255
|
class: "m-lazy-img-component-loader"
|
|
@@ -267,7 +267,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
267
267
|
},
|
|
268
268
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
269
269
|
setup(__props) {
|
|
270
|
-
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-
|
|
270
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-819a5b00.mjs"));
|
|
271
271
|
const props = __props;
|
|
272
272
|
const sources = computed(() => {
|
|
273
273
|
var _a;
|
|
@@ -286,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
286
286
|
renderList(sources.value, ({ srcset, media }, sourceIndex) => {
|
|
287
287
|
return openBlock(), createElementBlock("source", {
|
|
288
288
|
key: sourceIndex,
|
|
289
|
-
"data-srcset": srcset,
|
|
289
|
+
"data-lazy-srcset": srcset,
|
|
290
290
|
media
|
|
291
291
|
}, null, 8, _hoisted_1);
|
|
292
292
|
}),
|
|
@@ -325,8 +325,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
|
-
const
|
|
329
|
-
const MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
328
|
+
const MazLazyImg_vue_vue_type_style_index_0_scoped_d4086686_lang = "";
|
|
329
|
+
const MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d4086686"]]);
|
|
330
330
|
export {
|
|
331
331
|
MazLazyImg as default
|
|
332
332
|
};
|
|
@@ -248,7 +248,7 @@ const vLazyImg = {
|
|
|
248
248
|
instance.remove(el, binding);
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
const _hoisted_1 = ["data-srcset", "media"];
|
|
251
|
+
const _hoisted_1 = ["data-lazy-srcset", "media"];
|
|
252
252
|
const _hoisted_2 = {
|
|
253
253
|
key: 0,
|
|
254
254
|
class: "m-lazy-img-component-loader"
|
|
@@ -266,7 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
266
266
|
},
|
|
267
267
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
268
268
|
setup(__props) {
|
|
269
|
-
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-
|
|
269
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-213b3866.mjs"));
|
|
270
270
|
const props = __props;
|
|
271
271
|
const sources = computed(() => {
|
|
272
272
|
var _a;
|
|
@@ -285,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
285
285
|
renderList(sources.value, ({ srcset, media }, sourceIndex) => {
|
|
286
286
|
return openBlock(), createElementBlock("source", {
|
|
287
287
|
key: sourceIndex,
|
|
288
|
-
"data-srcset": srcset,
|
|
288
|
+
"data-lazy-srcset": srcset,
|
|
289
289
|
media
|
|
290
290
|
}, null, 8, _hoisted_1);
|
|
291
291
|
}),
|
|
@@ -324,7 +324,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
|
-
const
|
|
327
|
+
const MazLazyImg_vue_vue_type_style_index_0_scoped_d4086686_lang = "";
|
|
328
328
|
const _export_sfc = (sfc, props) => {
|
|
329
329
|
const target = sfc.__vccOpts || sfc;
|
|
330
330
|
for (const [key, val] of props) {
|
|
@@ -332,7 +332,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
332
332
|
}
|
|
333
333
|
return target;
|
|
334
334
|
};
|
|
335
|
-
const MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
335
|
+
const MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d4086686"]]);
|
|
336
336
|
export {
|
|
337
337
|
MazLazyImg as M,
|
|
338
338
|
_export_sfc as _
|
package/components/chunks/{MazPhoneNumberInput-458455bb.mjs → MazPhoneNumberInput-901c4fa6.mjs}
RENAMED
|
@@ -282,8 +282,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
282
282
|
sanitizePhoneNumber: sanitizePhoneNumber2,
|
|
283
283
|
loadPhoneNumberExamplesFile: loadPhoneNumberExamplesFile2
|
|
284
284
|
} = useLibphonenumber();
|
|
285
|
-
const MazInput = defineAsyncComponent(() => import("./MazInput-
|
|
286
|
-
const MazSelect = defineAsyncComponent(() => import("./MazSelect-
|
|
285
|
+
const MazInput = defineAsyncComponent(() => import("./MazInput-15f3e149.mjs"));
|
|
286
|
+
const MazSelect = defineAsyncComponent(() => import("./MazSelect-c5c3f874.mjs"));
|
|
287
287
|
const emits = __emit;
|
|
288
288
|
const props = __props;
|
|
289
289
|
const instance = getCurrentInstance();
|
|
@@ -18,7 +18,7 @@ const useInstanceUniqId = ({
|
|
|
18
18
|
}) => {
|
|
19
19
|
return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
|
|
20
20
|
};
|
|
21
|
-
const MazBtn = defineAsyncComponent(() => import("./MazBtn-
|
|
21
|
+
const MazBtn = defineAsyncComponent(() => import("./MazBtn-16ab35fe.mjs"));
|
|
22
22
|
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
23
23
|
const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-3c6844fc.mjs"));
|
|
24
24
|
const EyeIcon = defineAsyncComponent(() => import("./eye-290c6a03.mjs"));
|
|
@@ -352,7 +352,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
352
352
|
);
|
|
353
353
|
}
|
|
354
354
|
const MazInput = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-52aef9c7"]]);
|
|
355
|
-
ref();
|
|
355
|
+
ref("system");
|
|
356
356
|
ref();
|
|
357
357
|
ref([]);
|
|
358
358
|
let timeout = null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../assets/MazSelect.css";
|
|
2
2
|
import { ref, defineComponent, defineAsyncComponent, getCurrentInstance, computed, onBeforeMount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createVNode, mergeProps, unref, withModifiers, withCtx, createElementVNode, Transition, normalizeStyle, createCommentVNode, renderSlot, Fragment, renderList, toDisplayString } from "vue";
|
|
3
|
-
import MazInput from "./MazInput-
|
|
4
|
-
import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-
|
|
5
|
-
ref();
|
|
3
|
+
import MazInput from "./MazInput-15f3e149.mjs";
|
|
4
|
+
import { u as useInstanceUniqId, _ as _export_sfc } from "./MazPhoneNumberInput-901c4fa6.mjs";
|
|
5
|
+
ref("system");
|
|
6
6
|
ref();
|
|
7
7
|
ref([]);
|
|
8
8
|
let timeout = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazLazyImg-
|
|
3
|
+
import { _ as _export_sfc } from "./MazLazyImg-8d49fa48.mjs";
|
|
4
4
|
const _withScopeId = (n) => (pushScopeId("data-v-c67298ec"), n = n(), popScopeId(), n);
|
|
5
5
|
const _hoisted_1 = ["width", "height"];
|
|
6
6
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./
|
|
3
|
+
import { _ as _export_sfc } from "./MazSelect-1f4d1193.mjs";
|
|
4
4
|
const _withScopeId = (n) => (pushScopeId("data-v-c67298ec"), n = n(), popScopeId(), n);
|
|
5
5
|
const _hoisted_1 = ["width", "height"];
|
|
6
6
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./MazPhoneNumberInput-
|
|
3
|
+
import { _ as _export_sfc } from "./MazPhoneNumberInput-901c4fa6.mjs";
|
|
4
4
|
const _withScopeId = (n) => (pushScopeId("data-v-c67298ec"), n = n(), popScopeId(), n);
|
|
5
5
|
const _hoisted_1 = ["width", "height"];
|
|
6
6
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./
|
|
3
|
+
import { _ as _export_sfc } from "./MazAvatar-a65c81e3.mjs";
|
|
4
4
|
const _withScopeId = (n) => (pushScopeId("data-v-c67298ec"), n = n(), popScopeId(), n);
|
|
5
5
|
const _hoisted_1 = ["width", "height"];
|
|
6
6
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, useAttrs, useSlots, onBeforeMount, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createElementBlock, normalizeClass, renderSlot, unref, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./index-
|
|
3
|
+
import { _ as _export_sfc } from "./index-1c3e48da.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -46,8 +46,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
noElevation: { type: Boolean, default: false }
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-
|
|
50
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon-
|
|
49
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-331f6dc8.mjs"));
|
|
50
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-2c79b9d8.mjs"));
|
|
51
51
|
const { href, to } = useAttrs();
|
|
52
52
|
const slots = useSlots();
|
|
53
53
|
const props = __props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, watchEffect, openBlock, createElementBlock, Fragment, createCommentVNode, mergeProps, nextTick } from "vue";
|
|
2
|
-
import { i as injectStrict } from "./index-
|
|
2
|
+
import { i as injectStrict } from "./index-1c3e48da.mjs";
|
|
3
3
|
const _hoisted_1 = ["innerHTML"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazIcon",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "./index-
|
|
3
|
+
import { _ as _export_sfc } from "./index-1c3e48da.mjs";
|
|
4
4
|
const _withScopeId = (n) => (pushScopeId("data-v-c67298ec"), n = n(), popScopeId(), n);
|
|
5
5
|
const _hoisted_1 = ["width", "height"];
|
|
6
6
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
@@ -1105,7 +1105,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1105
1105
|
emits: ["close", "previous", "next", "before-close"],
|
|
1106
1106
|
setup(__props, { emit: __emit }) {
|
|
1107
1107
|
const emits = __emit;
|
|
1108
|
-
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-
|
|
1108
|
+
const MazSpinner = defineAsyncComponent(() => import("./MazSpinner-331f6dc8.mjs"));
|
|
1109
1109
|
const XMark = defineAsyncComponent(() => import("./x-mark-6dd31278.mjs"));
|
|
1110
1110
|
const ChevronLeft = defineAsyncComponent(() => import("./chevron-left-7ab9664d.mjs"));
|
|
1111
1111
|
let vueScrollTo;
|
|
@@ -1684,7 +1684,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1684
1684
|
() => import("./arrow-top-right-on-square-3878577d.mjs")
|
|
1685
1685
|
);
|
|
1686
1686
|
const Link = defineAsyncComponent(() => import("./link-74f1af7a.mjs"));
|
|
1687
|
-
const MazBtn = defineAsyncComponent(() => import("./MazBtn-
|
|
1687
|
+
const MazBtn = defineAsyncComponent(() => import("./MazBtn-f4c8698d.mjs"));
|
|
1688
1688
|
const Toaster = ref();
|
|
1689
1689
|
const props = __props;
|
|
1690
1690
|
const emits = __emit;
|
|
@@ -2095,70 +2095,95 @@ const DEFAULT_OPTIONS = {
|
|
|
2095
2095
|
lightClass: "light",
|
|
2096
2096
|
storageThemeKey: "theme",
|
|
2097
2097
|
storageThemeValueDark: "dark",
|
|
2098
|
-
storageThemeValueLight: "light"
|
|
2098
|
+
storageThemeValueLight: "light",
|
|
2099
|
+
storageThemeValueSystem: "system"
|
|
2099
2100
|
};
|
|
2100
|
-
const theme = ref();
|
|
2101
|
-
|
|
2101
|
+
const theme = ref("system");
|
|
2102
|
+
function setDarkTheme({
|
|
2102
2103
|
darkClass,
|
|
2103
2104
|
lightClass,
|
|
2104
2105
|
storageThemeKey,
|
|
2105
2106
|
storageThemeValueDark,
|
|
2106
|
-
setLocalStorageValue = true
|
|
2107
|
-
|
|
2107
|
+
setLocalStorageValue = true,
|
|
2108
|
+
setThemeValue = true
|
|
2109
|
+
}) {
|
|
2108
2110
|
document.documentElement.classList.remove(lightClass);
|
|
2109
2111
|
document.documentElement.classList.add(darkClass);
|
|
2110
|
-
|
|
2112
|
+
if (setThemeValue)
|
|
2113
|
+
theme.value = storageThemeValueDark;
|
|
2111
2114
|
if (setLocalStorageValue) {
|
|
2112
2115
|
localStorage[storageThemeKey] = storageThemeValueDark;
|
|
2113
2116
|
}
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2117
|
+
}
|
|
2118
|
+
function setLightTheme({
|
|
2116
2119
|
darkClass,
|
|
2117
2120
|
lightClass,
|
|
2118
2121
|
storageThemeKey,
|
|
2119
2122
|
storageThemeValueLight,
|
|
2120
|
-
setLocalStorageValue = true
|
|
2121
|
-
|
|
2123
|
+
setLocalStorageValue = true,
|
|
2124
|
+
setThemeValue = true
|
|
2125
|
+
}) {
|
|
2122
2126
|
document.documentElement.classList.remove(darkClass);
|
|
2123
2127
|
document.documentElement.classList.add(lightClass);
|
|
2124
|
-
|
|
2128
|
+
if (setThemeValue)
|
|
2129
|
+
theme.value = storageThemeValueLight;
|
|
2125
2130
|
if (setLocalStorageValue) {
|
|
2126
2131
|
localStorage[storageThemeKey] = storageThemeValueLight;
|
|
2127
2132
|
}
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2133
|
+
}
|
|
2134
|
+
function setSytemTheme(options) {
|
|
2135
|
+
document.documentElement.classList.remove(options.darkClass);
|
|
2136
|
+
document.documentElement.classList.remove(options.lightClass);
|
|
2137
|
+
theme.value = options.storageThemeValueSystem;
|
|
2138
|
+
if (options.setLocalStorageValue) {
|
|
2139
|
+
localStorage[options.storageThemeKey] = options.storageThemeValueSystem;
|
|
2140
|
+
}
|
|
2141
|
+
autoSetTheme({ ...options, setThemeValue: false });
|
|
2142
|
+
}
|
|
2143
|
+
function getPrefDark() {
|
|
2144
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
2145
|
+
}
|
|
2146
|
+
function autoSetTheme(options) {
|
|
2147
|
+
if (localStorage[options.storageThemeKey] === options.storageThemeValueDark || !(options.storageThemeKey in localStorage) && getPrefDark() || localStorage[options.storageThemeKey] === options.storageThemeValueSystem && getPrefDark()) {
|
|
2148
|
+
return setDarkTheme({ ...options, setLocalStorageValue: false });
|
|
2134
2149
|
}
|
|
2135
|
-
};
|
|
2136
|
-
|
|
2150
|
+
return setLightTheme({ ...options, setLocalStorageValue: false });
|
|
2151
|
+
}
|
|
2152
|
+
function setTheme({
|
|
2137
2153
|
shouldSetDarkMode,
|
|
2138
2154
|
...rest
|
|
2139
|
-
})
|
|
2155
|
+
}) {
|
|
2156
|
+
if (typeof shouldSetDarkMode !== "boolean") {
|
|
2157
|
+
return setSytemTheme(rest);
|
|
2158
|
+
}
|
|
2140
2159
|
return shouldSetDarkMode ? setDarkTheme(rest) : setLightTheme(rest);
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2160
|
+
}
|
|
2161
|
+
function toggleTheme(options) {
|
|
2143
2162
|
return localStorage[options.storageThemeKey] === options.storageThemeValueDark ? setLightTheme(options) : setDarkTheme(options);
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2163
|
+
}
|
|
2164
|
+
function useThemeHandler(opts = DEFAULT_OPTIONS) {
|
|
2146
2165
|
const options = {
|
|
2147
2166
|
...DEFAULT_OPTIONS,
|
|
2148
2167
|
...opts
|
|
2149
2168
|
};
|
|
2150
2169
|
const hasDarkTheme = computed(() => theme.value === options.storageThemeValueDark);
|
|
2151
2170
|
const hasLightTheme = computed(() => theme.value === options.storageThemeValueLight);
|
|
2171
|
+
const hasSystemTheme = computed(() => theme.value === options.storageThemeValueSystem);
|
|
2172
|
+
onMounted$1(() => {
|
|
2173
|
+
theme.value = localStorage[options.storageThemeKey];
|
|
2174
|
+
});
|
|
2152
2175
|
return {
|
|
2153
2176
|
autoSetTheme: () => autoSetTheme(options),
|
|
2154
2177
|
toggleTheme: () => toggleTheme(options),
|
|
2178
|
+
setSystemTheme: () => setSytemTheme({ ...options, setLocalStorageValue: true }),
|
|
2155
2179
|
setDarkTheme: () => setTheme({ ...options, shouldSetDarkMode: true }),
|
|
2156
2180
|
setLightTheme: () => setTheme({ ...options, shouldSetDarkMode: false }),
|
|
2157
2181
|
hasDarkTheme,
|
|
2158
2182
|
hasLightTheme,
|
|
2183
|
+
hasSystemTheme,
|
|
2159
2184
|
theme
|
|
2160
2185
|
};
|
|
2161
|
-
}
|
|
2186
|
+
}
|
|
2162
2187
|
const useInstanceUniqId = ({
|
|
2163
2188
|
componentName,
|
|
2164
2189
|
instance: instance2,
|
package/modules/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, I, S, T, U, W, D, q, r, u, d, i, C, b, o, x, z, a, l, m, w, s, E, y, t, H, L, G, N, F, K, M, J, c, p, k, n, h, j, v, e, f, g, A } from "./chunks/index-
|
|
1
|
+
import { B, I, S, T, U, W, D, q, r, u, d, i, C, b, o, x, z, a, l, m, w, s, E, y, t, H, L, G, N, F, K, M, J, c, p, k, n, h, j, v, e, f, g, A } from "./chunks/index-1c3e48da.mjs";
|
|
2
2
|
export {
|
|
3
3
|
B as AosHandler,
|
|
4
4
|
I as IdleTimeout,
|
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.2",
|
|
4
4
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
5
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
6
6
|
"main": "./modules/index.mjs",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"vue-loader": "^17.3.0",
|
|
156
156
|
"vue-router": "^4.2.5",
|
|
157
157
|
"vue-scrollto": "^2.20.0",
|
|
158
|
-
"vue-tsc": "^1.8.
|
|
158
|
+
"vue-tsc": "^1.8.20"
|
|
159
159
|
},
|
|
160
160
|
"engines": {
|
|
161
161
|
"node": ">= 6.0.0",
|
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import type { Color } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
color: {
|
|
17
|
-
type: import("vue").PropType<Color>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
}>>, {
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
color?: Color | undefined;
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
color: string;
|
|
7
|
+
size: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
color?: Color | undefined;
|
|
10
|
+
size?: string | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
color: string;
|
|
13
|
+
size: string;
|
|
14
|
+
}>>>, {
|
|
21
15
|
size: string;
|
|
22
16
|
color: Color;
|
|
23
17
|
}, {}>, {
|
|
24
18
|
default?(_: {}): any;
|
|
25
19
|
}>;
|
|
26
20
|
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
27
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
36
|
new (): {
|
|
29
37
|
$slots: S;
|
|
@@ -99,7 +99,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
99
99
|
allStepsOpened: boolean;
|
|
100
100
|
allStepsValidated: boolean;
|
|
101
101
|
canCloseSteps: boolean;
|
|
102
|
-
}, {}>, Partial<Record
|
|
102
|
+
}, {}>, Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: {
|
|
103
103
|
validated: boolean;
|
|
104
104
|
error: boolean | undefined;
|
|
105
105
|
warning: boolean | undefined;
|
|
@@ -4,17 +4,20 @@ declare const DEFAULT_OPTIONS: {
|
|
|
4
4
|
storageThemeKey: string;
|
|
5
5
|
storageThemeValueDark: string;
|
|
6
6
|
storageThemeValueLight: string;
|
|
7
|
+
storageThemeValueSystem: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const theme: import("vue").Ref<string | undefined>;
|
|
9
9
|
export type StrictThemeHandlerOptions = typeof DEFAULT_OPTIONS;
|
|
10
10
|
export type ThemeHandlerOptions = Partial<StrictThemeHandlerOptions>;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const theme: import("vue").Ref<string>;
|
|
12
|
+
export declare function useThemeHandler(opts?: ThemeHandlerOptions): {
|
|
12
13
|
autoSetTheme: () => void;
|
|
13
14
|
toggleTheme: () => void;
|
|
15
|
+
setSystemTheme: () => void;
|
|
14
16
|
setDarkTheme: () => void;
|
|
15
17
|
setLightTheme: () => void;
|
|
16
18
|
hasDarkTheme: import("vue").ComputedRef<boolean>;
|
|
17
19
|
hasLightTheme: import("vue").ComputedRef<boolean>;
|
|
18
|
-
|
|
20
|
+
hasSystemTheme: import("vue").ComputedRef<boolean>;
|
|
21
|
+
theme: import("vue").Ref<string>;
|
|
19
22
|
};
|
|
20
23
|
export {};
|
|
@@ -1,99 +1,51 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
destroy
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
alt: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
|
-
openInstanceClass: {
|
|
15
|
-
type: import("vue").PropType<string>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
zoom: {
|
|
19
|
-
type: import("vue").PropType<boolean>;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
disabled: {
|
|
23
|
-
type: import("vue").PropType<boolean>;
|
|
24
|
-
};
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
destroy?: (() => void) | undefined;
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string | undefined;
|
|
5
|
+
openInstanceClass: string;
|
|
6
|
+
zoom?: boolean | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
25
8
|
clickedElementBounds: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
width: number;
|
|
31
|
-
}>;
|
|
32
|
-
required: true;
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
height: number;
|
|
12
|
+
width: number;
|
|
33
13
|
};
|
|
34
|
-
clickedElement:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
scaleAnimation: {
|
|
44
|
-
type: import("vue").PropType<boolean>;
|
|
45
|
-
};
|
|
46
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
clickedElement: HTMLElement;
|
|
15
|
+
animated: boolean;
|
|
16
|
+
scaleAnimation?: boolean | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
destroy: undefined;
|
|
19
|
+
zoom: boolean;
|
|
20
|
+
animated: boolean;
|
|
21
|
+
alt: undefined;
|
|
22
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
23
|
close: (...args: any[]) => void;
|
|
48
24
|
previous: (...args: any[]) => void;
|
|
49
25
|
next: (...args: any[]) => void;
|
|
50
26
|
"before-close": (...args: any[]) => void;
|
|
51
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
-
destroy
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
required: true;
|
|
59
|
-
};
|
|
60
|
-
alt: {
|
|
61
|
-
type: import("vue").PropType<string>;
|
|
62
|
-
default: undefined;
|
|
63
|
-
};
|
|
64
|
-
openInstanceClass: {
|
|
65
|
-
type: import("vue").PropType<string>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
zoom: {
|
|
69
|
-
type: import("vue").PropType<boolean>;
|
|
70
|
-
default: boolean;
|
|
71
|
-
};
|
|
72
|
-
disabled: {
|
|
73
|
-
type: import("vue").PropType<boolean>;
|
|
74
|
-
};
|
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
28
|
+
destroy?: (() => void) | undefined;
|
|
29
|
+
src: string;
|
|
30
|
+
alt?: string | undefined;
|
|
31
|
+
openInstanceClass: string;
|
|
32
|
+
zoom?: boolean | undefined;
|
|
33
|
+
disabled?: boolean | undefined;
|
|
75
34
|
clickedElementBounds: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
width: number;
|
|
81
|
-
}>;
|
|
82
|
-
required: true;
|
|
83
|
-
};
|
|
84
|
-
clickedElement: {
|
|
85
|
-
type: import("vue").PropType<HTMLElement>;
|
|
86
|
-
required: true;
|
|
87
|
-
};
|
|
88
|
-
animated: {
|
|
89
|
-
type: import("vue").PropType<boolean>;
|
|
90
|
-
required: true;
|
|
91
|
-
default: boolean;
|
|
35
|
+
top: number;
|
|
36
|
+
left: number;
|
|
37
|
+
height: number;
|
|
38
|
+
width: number;
|
|
92
39
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
40
|
+
clickedElement: HTMLElement;
|
|
41
|
+
animated: boolean;
|
|
42
|
+
scaleAnimation?: boolean | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
destroy: undefined;
|
|
45
|
+
zoom: boolean;
|
|
46
|
+
animated: boolean;
|
|
47
|
+
alt: undefined;
|
|
48
|
+
}>>> & {
|
|
97
49
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
98
50
|
onPrevious?: ((...args: any[]) => any) | undefined;
|
|
99
51
|
onNext?: ((...args: any[]) => any) | undefined;
|
|
@@ -105,3 +57,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
57
|
animated: boolean;
|
|
106
58
|
}, {}>;
|
|
107
59
|
export default _default;
|
|
60
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
+
} : {
|
|
65
|
+
type: import('vue').PropType<T[K]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type __VLS_WithDefaults<P, D> = {
|
|
70
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
71
|
+
default: D[K];
|
|
72
|
+
}> : P[K];
|
|
73
|
+
};
|