maz-ui 3.20.0 → 3.21.1
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/MazBackdrop.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +11 -9
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +98 -0
- package/components/MazDropdown.mjs +4 -0
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +4 -4
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +9 -0
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadioButtons.mjs +4 -4
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +86 -79
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +11 -2
- package/components/MazSwitch.mjs +60 -43
- package/components/MazTabsBar.d.ts +0 -9
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +6 -8
- package/components/MazTextarea.mjs +12 -14
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazDropdown.css +1 -0
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazPickerMonthSwitcher.css +1 -1
- package/components/assets/MazPickerYearSwitcher.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazAvatar-a65c81e3.mjs → MazAvatar-358d78d4.mjs} +7 -8
- package/components/chunks/{MazBottomSheet-b78adb87.mjs → MazBottomSheet-61090f4a.mjs} +3 -3
- package/components/chunks/{MazBtn-e578aab0.mjs → MazBtn-11482caa.mjs} +4 -4
- package/components/chunks/{MazBtn-9333e80f.mjs → MazBtn-31c6b731.mjs} +4 -4
- package/components/chunks/{MazBtn-57cb16a1.mjs → MazBtn-48382169.mjs} +4 -4
- package/components/chunks/{MazBtn-67e1fe7b.mjs → MazBtn-7c6518f0.mjs} +4 -4
- package/components/chunks/{MazBtn-6e16fbca.mjs → MazBtn-84e12b6a.mjs} +4 -4
- package/components/chunks/{MazBtn-18894690.mjs → MazBtn-8aa6ea64.mjs} +4 -4
- package/components/chunks/{MazBtn-9d312f09.mjs → MazBtn-90176aaf.mjs} +4 -4
- package/components/chunks/{MazBtn-54c47489.mjs → MazBtn-b56a7278.mjs} +4 -4
- package/components/chunks/MazBtn-bbd6e9c8.mjs +184 -0
- package/components/chunks/{MazBtn-2703c9bd.mjs → MazBtn-cf0c8fcb.mjs} +2 -2
- package/components/chunks/{MazBtn-000f9f66.mjs → MazBtn-d92908b2.mjs} +3 -3
- package/components/chunks/{MazBtn-090f5ced.mjs → MazBtn-dfe02275.mjs} +4 -4
- package/components/chunks/{MazBtn-5a37bfef.mjs → MazBtn-ee0cb237.mjs} +4 -4
- package/components/chunks/{MazBtn-bf133cbc.mjs → MazBtn-f7e94b59.mjs} +4 -4
- package/components/chunks/{MazBtn-21743551.mjs → MazBtn-fec4c3b7.mjs} +4 -4
- package/components/chunks/{MazCard-d9369776.mjs → MazCard-01b81dd2.mjs} +4 -4
- package/components/chunks/{MazCarousel-06ca7c0b.mjs → MazCarousel-7825c7c9.mjs} +3 -3
- package/components/chunks/{MazCheckbox-12a37b71.mjs → MazCheckbox-2fce6b03.mjs} +12 -10
- package/components/chunks/{MazCheckbox-aeada499.mjs → MazCheckbox-bf35762d.mjs} +12 -10
- package/components/chunks/{MazDialog-d5f6a7d8.mjs → MazDialog-83e54b8c.mjs} +3 -3
- package/components/chunks/{MazDialogPromise-23cb2e40.mjs → MazDialogPromise-6967e821.mjs} +4 -4
- package/components/chunks/{MazDrawer-7d6428cf.mjs → MazDrawer-d778b3d2.mjs} +3 -3
- package/components/chunks/MazDropdown-87f673f7.mjs +423 -0
- package/components/chunks/{MazGallery-c80e96f6.mjs → MazGallery-a8f6748b.mjs} +2 -2
- package/components/chunks/{MazIcon-81176bfa.mjs → MazIcon-b779da0a.mjs} +1 -1
- package/components/chunks/{MazInput-2a43e4a6.mjs → MazInput-4000965b.mjs} +40 -35
- package/components/chunks/{MazInput-8e284503.mjs → MazInput-5130144b.mjs} +44 -41
- package/components/chunks/{MazInput-129c8695.mjs → MazInput-bad6c9a2.mjs} +44 -41
- package/components/chunks/{MazInputPrice-e88dec74.mjs → MazInputPrice-feea3bbb.mjs} +44 -41
- package/components/chunks/{MazInputTags-872a6fae.mjs → MazInputTags-52baeb26.mjs} +46 -43
- package/components/chunks/{MazLazyImg-8d49fa48.mjs → MazLazyImg-6e395356.mjs} +12 -15
- package/components/chunks/{MazLazyImg-51c16f47.mjs → MazLazyImg-e0d8b6d0.mjs} +13 -16
- package/components/chunks/{MazPhoneNumberInput-94d7c29b.mjs → MazPhoneNumberInput-9a4aec10.mjs} +55 -52
- package/components/chunks/{MazPicker-6fc29a1c.mjs → MazPicker-f385a310.mjs} +110 -91
- package/components/chunks/{MazPickerCalendar-6271c78d.mjs → MazPickerCalendar-2d4ab520.mjs} +16 -14
- package/components/chunks/{MazPickerHeader-4f70f191.mjs → MazPickerHeader-a41c352f.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-674ce015.mjs → MazPickerMonthSwitcher-3cdf8a44.mjs} +5 -5
- package/components/chunks/{MazPickerShortcuts-2242854f.mjs → MazPickerShortcuts-1b530adc.mjs} +2 -2
- package/components/chunks/{MazPickerTime-bb97786b.mjs → MazPickerTime-9445a954.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-47e5444b.mjs → MazPickerYearSwitcher-775c5de2.mjs} +6 -6
- package/components/chunks/{MazSelect-5c3b7a30.mjs → MazSelect-8d94beea.mjs} +55 -52
- package/components/chunks/{MazSpinner-213b3866.mjs → MazSpinner-022d7bee.mjs} +1 -1
- package/components/chunks/{MazSpinner-2cbf1c0a.mjs → MazSpinner-1f017531.mjs} +1 -1
- package/components/chunks/{MazSpinner-2fac70be.mjs → MazSpinner-2d99edc7.mjs} +1 -1
- package/components/chunks/{MazSpinner-bed2bced.mjs → MazSpinner-3155378b.mjs} +1 -1
- package/components/chunks/{MazSpinner-5368411e.mjs → MazSpinner-562e44e3.mjs} +1 -1
- package/components/chunks/{MazSpinner-232086b5.mjs → MazSpinner-7cdc13e7.mjs} +1 -1
- package/components/chunks/{MazSpinner-d6625983.mjs → MazSpinner-98dd1f9d.mjs} +1 -1
- package/components/chunks/{MazSpinner-467d514f.mjs → MazSpinner-9950424b.mjs} +1 -1
- package/components/chunks/{MazSpinner-6c664898.mjs → MazSpinner-a1228864.mjs} +1 -1
- package/components/chunks/{MazSpinner-25ddb933.mjs → MazSpinner-c8270a93.mjs} +1 -1
- package/components/chunks/MazSpinner-c838f23f.mjs +46 -0
- package/components/chunks/{MazSpinner-984d259a.mjs → MazSpinner-cb491238.mjs} +1 -1
- package/components/chunks/MazSpinner-ce4be8f1.mjs +46 -0
- package/components/chunks/MazSpinner-e5a9f319.mjs +46 -0
- package/components/chunks/MazSpinner-eea9056d.mjs +46 -0
- package/components/chunks/MazSpinner-f66b5e86.mjs +46 -0
- package/components/chunks/{MazSpinner-f1454eeb.mjs → MazSpinner-f8887439.mjs} +1 -1
- package/components/chunks/{MazStepper-293b4be5.mjs → MazStepper-4c19dbfc.mjs} +4 -4
- package/components/chunks/{MazTabsBar-6dffbdde.mjs → MazTabsBar-3c2e2d69.mjs} +18 -12
- package/components/chunks/{MazTransitionExpand-648e21e0.mjs → MazTransitionExpand-f293b830.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-f3018af6.mjs → MazTransitionExpand-f9e5a2d6.mjs} +1 -1
- package/components/chunks/{check-77afbaee.mjs → check-8da249b1.mjs} +1 -1
- package/components/chunks/{check-circle-403abf7e.mjs → check-circle-7acfa4c4.mjs} +1 -1
- package/components/chunks/{check-b1507ce9.mjs → check-f2fcce10.mjs} +1 -1
- package/components/chunks/{chevron-down-7a070b10.mjs → chevron-down-a78b9604.mjs} +1 -1
- package/{modules/chunks/chevron-left-7ab9664d.mjs → components/chunks/chevron-left-3365d59b.mjs} +1 -1
- package/components/chunks/{chevron-right-d300cd13.mjs → chevron-right-02f9e837.mjs} +1 -1
- package/components/chunks/debounce-7d66ffa9.mjs +12 -0
- package/components/chunks/{exclamation-circle-78184f31.mjs → exclamation-circle-2e115536.mjs} +1 -1
- package/components/chunks/{exclamation-triangle-7b00fa9b.mjs → exclamation-triangle-10eb48dc.mjs} +1 -1
- package/components/chunks/{eye-290c6a03.mjs → eye-fbb13657.mjs} +1 -1
- package/components/chunks/{eye-slash-3c6844fc.mjs → eye-slash-342420ff.mjs} +1 -1
- package/components/chunks/{magnifying-glass-6a0dd1a2.mjs → magnifying-glass-5dffa35e.mjs} +1 -1
- package/components/chunks/{minus-a1cc422e.mjs → minus-c9cdee90.mjs} +1 -1
- package/components/chunks/{no-photography-bc9a1f6a.mjs → no-photography-b0d08d6f.mjs} +1 -1
- package/components/chunks/{no-symbol-6173a20b.mjs → no-symbol-975ce547.mjs} +1 -1
- package/components/chunks/{pencil-6f15596d.mjs → pencil-2f766dc8.mjs} +1 -1
- package/components/chunks/{plus-9ca3cdd9.mjs → plus-b1b0a5a8.mjs} +1 -1
- package/components/chunks/{x-mark-af0cf423.mjs → x-mark-3b05101b.mjs} +1 -1
- package/components/chunks/{x-mark-6dd31278.mjs → x-mark-c6ff45dd.mjs} +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.mjs +1 -0
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-f4c8698d.mjs → MazBtn-b043078d.mjs} +5 -5
- package/modules/chunks/{MazIcon-2c79b9d8.mjs → MazIcon-f78bf92a.mjs} +1 -1
- package/modules/chunks/{MazSpinner-331f6dc8.mjs → MazSpinner-f9636e59.mjs} +1 -1
- package/modules/chunks/{arrow-top-right-on-square-3878577d.mjs → arrow-top-right-on-square-32bbe5a1.mjs} +1 -1
- package/{components/chunks/chevron-left-7ab9664d.mjs → modules/chunks/chevron-left-3365d59b.mjs} +1 -1
- package/modules/chunks/{index-1c3e48da.mjs → index-23780919.mjs} +15 -17
- package/modules/chunks/{link-74f1af7a.mjs → link-4eb05848.mjs} +1 -1
- package/modules/chunks/{x-mark-6dd31278.mjs → x-mark-c6ff45dd.mjs} +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +6 -6
- package/tailwindcss/tailwind.config.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +98 -0
- package/types/components/MazLazyImg.vue.d.ts +9 -0
- package/types/components/MazSwitch.vue.d.ts +11 -2
- package/types/components/MazTabsBar.vue.d.ts +0 -9
- package/types/components/index.d.ts +1 -0
- package/types/modules/helpers/debounce.d.ts +1 -1
- package/components/chunks/MazBtn-a776eb42.mjs +0 -184
- package/components/chunks/MazSpinner-47025e56.mjs +0 -46
- package/components/chunks/MazSpinner-5be69292.mjs +0 -46
- package/components/chunks/MazSpinner-819a5b00.mjs +0 -46
- package/components/chunks/MazSpinner-a74389bd.mjs +0 -46
- package/components/chunks/debounce-b08199da.mjs +0 -14
package/components/MazAvatar.mjs
CHANGED
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -31,10 +31,10 @@ const _hoisted_3 = [
|
|
|
31
31
|
_hoisted_2$1
|
|
32
32
|
];
|
|
33
33
|
function render(_ctx, _cache) {
|
|
34
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$1, _hoisted_3);
|
|
34
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._hoisted_3]);
|
|
35
35
|
}
|
|
36
36
|
const CheckIcon = { render };
|
|
37
|
-
const _hoisted_1 = ["for"];
|
|
37
|
+
const _hoisted_1 = ["for", "aria-checked"];
|
|
38
38
|
const _hoisted_2 = ["id", "checked", "disabled", "name"];
|
|
39
39
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
__name: "MazCheckbox",
|
|
@@ -57,10 +57,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
],
|
|
58
58
|
setup(__props, { emit: __emit }) {
|
|
59
59
|
useCssVars((_ctx) => ({
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
60
|
+
"2887ae19": checkIconColor.value,
|
|
61
|
+
"3ea743fb": checkboxSize.value,
|
|
62
|
+
"8729aa64": checkboxSelectedColor.value,
|
|
63
|
+
"324bb1de": checkboxBoxShadow.value
|
|
64
64
|
}));
|
|
65
65
|
const instance = getCurrentInstance();
|
|
66
66
|
const props = __props;
|
|
@@ -133,7 +133,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
return openBlock(), createElementBlock("label", {
|
|
134
134
|
for: unref(instanceId),
|
|
135
135
|
class: normalizeClass(["m-checkbox", { "--disabled": __props.disabled }]),
|
|
136
|
-
tabindex: "
|
|
136
|
+
tabindex: "0",
|
|
137
|
+
role: "checkbox",
|
|
138
|
+
"aria-checked": __props.modelValue,
|
|
137
139
|
onKeydown: keyboardHandler
|
|
138
140
|
}, [
|
|
139
141
|
createElementVNode("input", mergeProps({
|
|
@@ -169,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
169
171
|
};
|
|
170
172
|
}
|
|
171
173
|
});
|
|
172
|
-
const
|
|
174
|
+
const MazCheckbox_vue_vue_type_style_index_0_scoped_e6c359ea_lang = "";
|
|
173
175
|
const _export_sfc = (sfc, props) => {
|
|
174
176
|
const target = sfc.__vccOpts || sfc;
|
|
175
177
|
for (const [key, val] of props) {
|
|
@@ -177,7 +179,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
177
179
|
}
|
|
178
180
|
return target;
|
|
179
181
|
};
|
|
180
|
-
const MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
182
|
+
const MazCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e6c359ea"]]);
|
|
181
183
|
export {
|
|
182
184
|
MazCheckbox as default
|
|
183
185
|
};
|
package/components/MazDialog.mjs
CHANGED
package/components/MazDrawer.mjs
CHANGED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type Color } from './MazBtn.vue';
|
|
2
|
+
import { type RouteLocationRaw } from 'vue-router';
|
|
3
|
+
import { type Position } from './types';
|
|
4
|
+
export type { Color, Position };
|
|
5
|
+
export type MenuItem = {
|
|
6
|
+
label: string;
|
|
7
|
+
action?: () => unknown;
|
|
8
|
+
target?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
to?: RouteLocationRaw;
|
|
11
|
+
} & Record<string, unknown>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
/** Menu items */
|
|
14
|
+
items: MenuItem[];
|
|
15
|
+
/** Menu should be open? */
|
|
16
|
+
open?: boolean | undefined;
|
|
17
|
+
/** id of the menu */
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
/** Should open the dropdown on click, hover or both */
|
|
20
|
+
trigger?: "click" | "hover" | "both" | undefined;
|
|
21
|
+
/** Button color */
|
|
22
|
+
color?: Color | undefined;
|
|
23
|
+
/** Position of the dropdown */
|
|
24
|
+
position?: Position | undefined;
|
|
25
|
+
/** Disable close menu on menuitem clicked */
|
|
26
|
+
noCloseOnClick?: boolean | undefined;
|
|
27
|
+
/** Disable menu */
|
|
28
|
+
disabled?: boolean | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
id: string;
|
|
31
|
+
trigger: string;
|
|
32
|
+
color: string;
|
|
33
|
+
position: string;
|
|
34
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
"menuitem-clicked": (...args: any[]) => void;
|
|
36
|
+
"update:open": (...args: any[]) => void;
|
|
37
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
38
|
+
/** Menu items */
|
|
39
|
+
items: MenuItem[];
|
|
40
|
+
/** Menu should be open? */
|
|
41
|
+
open?: boolean | undefined;
|
|
42
|
+
/** id of the menu */
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
/** Should open the dropdown on click, hover or both */
|
|
45
|
+
trigger?: "click" | "hover" | "both" | undefined;
|
|
46
|
+
/** Button color */
|
|
47
|
+
color?: Color | undefined;
|
|
48
|
+
/** Position of the dropdown */
|
|
49
|
+
position?: Position | undefined;
|
|
50
|
+
/** Disable close menu on menuitem clicked */
|
|
51
|
+
noCloseOnClick?: boolean | undefined;
|
|
52
|
+
/** Disable menu */
|
|
53
|
+
disabled?: boolean | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
id: string;
|
|
56
|
+
trigger: string;
|
|
57
|
+
color: string;
|
|
58
|
+
position: string;
|
|
59
|
+
}>>> & {
|
|
60
|
+
"onMenuitem-clicked"?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
color: Color;
|
|
64
|
+
id: string;
|
|
65
|
+
position: Position;
|
|
66
|
+
trigger: "click" | "hover" | "both";
|
|
67
|
+
}, {}>, {
|
|
68
|
+
default?(_: {}): any;
|
|
69
|
+
menuitem?(_: {
|
|
70
|
+
item: MenuItem;
|
|
71
|
+
}): any;
|
|
72
|
+
"menuitem-label"?(_: {
|
|
73
|
+
item: MenuItem;
|
|
74
|
+
}): any;
|
|
75
|
+
}>;
|
|
76
|
+
export default _default;
|
|
77
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
78
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
79
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
80
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
81
|
+
} : {
|
|
82
|
+
type: import('vue').PropType<T[K]>;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
type __VLS_WithDefaults<P, D> = {
|
|
87
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
88
|
+
default: D[K];
|
|
89
|
+
}> : P[K];
|
|
90
|
+
};
|
|
91
|
+
type __VLS_Prettify<T> = {
|
|
92
|
+
[K in keyof T]: T[K];
|
|
93
|
+
} & {};
|
|
94
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -669,7 +669,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
669
669
|
scale: { type: Boolean, default: true }
|
|
670
670
|
},
|
|
671
671
|
setup(__props) {
|
|
672
|
-
const NoPhotographyIcon = defineAsyncComponent(() => import("./chunks/no-photography-
|
|
672
|
+
const NoPhotographyIcon = defineAsyncComponent(() => import("./chunks/no-photography-b0d08d6f.mjs"));
|
|
673
673
|
const props = __props;
|
|
674
674
|
onBeforeMount(() => {
|
|
675
675
|
if (props.imagesShownCount > 5)
|
package/components/MazInput.mjs
CHANGED
|
@@ -18,10 +18,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["update:model-value"],
|
|
20
20
|
setup(__props, { emit: __emit }) {
|
|
21
|
-
const MazBtn = defineAsyncComponent(() => import("./chunks/MazBtn-
|
|
22
|
-
const MazInput = defineAsyncComponent(() => import("./chunks/MazInput-
|
|
23
|
-
const PlusIcon = defineAsyncComponent(() => import("./chunks/plus-
|
|
24
|
-
const MinusIcon = defineAsyncComponent(() => import("./chunks/minus-
|
|
21
|
+
const MazBtn = defineAsyncComponent(() => import("./chunks/MazBtn-cf0c8fcb.mjs"));
|
|
22
|
+
const MazInput = defineAsyncComponent(() => import("./chunks/MazInput-bad6c9a2.mjs"));
|
|
23
|
+
const PlusIcon = defineAsyncComponent(() => import("./chunks/plus-b1b0a5a8.mjs"));
|
|
24
|
+
const MinusIcon = defineAsyncComponent(() => import("./chunks/minus-c9cdee90.mjs"));
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emits = __emit;
|
|
27
27
|
const currentValue = computed({
|
|
@@ -3,6 +3,10 @@ import type { Image } from './types';
|
|
|
3
3
|
export type { Image };
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
image: Prop<Image>;
|
|
6
|
+
alt: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
6
10
|
noPhoto: {
|
|
7
11
|
type: BooleanConstructor;
|
|
8
12
|
default: boolean;
|
|
@@ -35,6 +39,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
39
|
intersecting: (...args: any[]) => void;
|
|
36
40
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
41
|
image: Prop<Image>;
|
|
42
|
+
alt: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
38
46
|
noPhoto: {
|
|
39
47
|
type: BooleanConstructor;
|
|
40
48
|
default: boolean;
|
|
@@ -66,6 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
66
74
|
onLoading?: ((...args: any[]) => any) | undefined;
|
|
67
75
|
onIntersecting?: ((...args: any[]) => any) | undefined;
|
|
68
76
|
}, {
|
|
77
|
+
alt: string;
|
|
69
78
|
noPhoto: boolean;
|
|
70
79
|
loadOnce: boolean;
|
|
71
80
|
noLoader: boolean;
|
package/components/MazPicker.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./assets/MazRadioButtons.css";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
3
|
-
const _hoisted_1 = ["
|
|
3
|
+
const _hoisted_1 = ["for"];
|
|
4
4
|
const _hoisted_2 = ["id", "name", "value", "onChange"];
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "MazRadioButtons",
|
|
@@ -40,8 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
null,
|
|
41
41
|
renderList(__props.options, (option, i) => {
|
|
42
42
|
return openBlock(), createElementBlock("label", {
|
|
43
|
-
id: option.value.toString(),
|
|
44
43
|
key: i,
|
|
44
|
+
for: option.value.toString(),
|
|
45
45
|
class: normalizeClass(["m-radio-buttons__items", {
|
|
46
46
|
"--is-selected": isSelected(option.value),
|
|
47
47
|
"maz-elevation": !__props.noElevation
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
const
|
|
86
|
+
const MazRadioButtons_vue_vue_type_style_index_0_scoped_f0f8688b_lang = "";
|
|
87
87
|
const _export_sfc = (sfc, props) => {
|
|
88
88
|
const target = sfc.__vccOpts || sfc;
|
|
89
89
|
for (const [key, val] of props) {
|
|
@@ -91,7 +91,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
91
91
|
}
|
|
92
92
|
return target;
|
|
93
93
|
};
|
|
94
|
-
const MazRadioButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
94
|
+
const MazRadioButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f0f8688b"]]);
|
|
95
95
|
export {
|
|
96
96
|
MazRadioButtons as default
|
|
97
97
|
};
|
package/components/MazSelect.mjs
CHANGED
package/components/MazSlider.mjs
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import "./assets/MazSlider.css";
|
|
2
|
-
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, nextTick, openBlock, createElementBlock,
|
|
3
|
-
function debounce(
|
|
4
|
-
let
|
|
5
|
-
return (...args)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
timeoutId = setTimeout(() => {
|
|
10
|
-
func(...args);
|
|
2
|
+
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, nextTick, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, normalizeClass, renderList, toDisplayString } from "vue";
|
|
3
|
+
function debounce(fn, delay) {
|
|
4
|
+
let timeout;
|
|
5
|
+
return function(...args) {
|
|
6
|
+
clearTimeout(timeout);
|
|
7
|
+
timeout = setTimeout(() => {
|
|
8
|
+
fn.apply(this, args);
|
|
11
9
|
}, delay);
|
|
12
10
|
};
|
|
13
11
|
}
|
|
@@ -42,7 +40,8 @@ const getOpacityCoeff = (index, middle, length) => {
|
|
|
42
40
|
const deviation = isBiggerThanMiddle ? currentIndex - middle : middle - currentIndex;
|
|
43
41
|
return 100 / length * deviation / 100;
|
|
44
42
|
};
|
|
45
|
-
const _hoisted_1 = ["
|
|
43
|
+
const _hoisted_1 = ["aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
44
|
+
const _hoisted_2 = ["data-label", "onMousedownPassive", "onTouchstartPassive", "onFocusPassive", "onBlurPassive", "onTouchendPassive", "onKeydownPassive"];
|
|
46
45
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
46
|
__name: "MazSlider",
|
|
48
47
|
props: {
|
|
@@ -278,88 +277,96 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
278
277
|
};
|
|
279
278
|
return (_ctx, _cache) => {
|
|
280
279
|
return openBlock(), createElementBlock(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
style: normalizeStyle([wrapperStyle.value, { fontSize: __props.size }]),
|
|
284
|
-
class: normalizeClass(["m-slider", [`m-slider--${__props.color}`]]),
|
|
285
|
-
onMousemovePassive: handleMousemove,
|
|
286
|
-
onMouseupPassive: handleMouseup,
|
|
287
|
-
onMouseleavePassive: handleMouseup,
|
|
288
|
-
onTouchmovePassive: handleMousemove
|
|
289
|
-
},
|
|
280
|
+
Fragment,
|
|
281
|
+
null,
|
|
290
282
|
[
|
|
283
|
+
createCommentVNode(" eslint-disable vuejs-accessibility/mouse-events-have-key-events "),
|
|
291
284
|
createElementVNode(
|
|
292
285
|
"div",
|
|
293
286
|
{
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
287
|
+
style: normalizeStyle([wrapperStyle.value, { fontSize: __props.size }]),
|
|
288
|
+
class: normalizeClass(["m-slider", [`m-slider--${__props.color}`]]),
|
|
289
|
+
role: "button",
|
|
290
|
+
tabindex: "-1",
|
|
291
|
+
onMousemovePassive: handleMousemove,
|
|
292
|
+
onMouseupPassive: handleMouseup,
|
|
293
|
+
onMouseleavePassive: handleMouseup,
|
|
294
|
+
onTouchmovePassive: handleMousemove
|
|
298
295
|
},
|
|
299
296
|
[
|
|
300
|
-
(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
Fragment,
|
|
321
|
-
null,
|
|
322
|
-
renderList(computedValue.value, (_btn, i) => {
|
|
323
|
-
var _a;
|
|
324
|
-
return openBlock(), createElementBlock("button", {
|
|
325
|
-
key: `cursor-${i}`,
|
|
326
|
-
type: "button",
|
|
327
|
-
"data-label": getLabel(i),
|
|
328
|
-
class: normalizeClass(["m-slider__btn", {
|
|
329
|
-
"active-cursor": i === activeCursor.value && !__props.noCursorAnim
|
|
330
|
-
}]),
|
|
331
|
-
style: normalizeStyle([buttonStyles.value[i]]),
|
|
332
|
-
onMousedownPassive: ($event) => handleMousedown($event, i),
|
|
333
|
-
onTouchstartPassive: ($event) => handleMousedown($event, i),
|
|
334
|
-
onFocusPassive: ($event) => handleMousedown($event, i),
|
|
335
|
-
onBlurPassive: ($event) => blurCursor(i),
|
|
336
|
-
onTouchendPassive: ($event) => blurCursor(i),
|
|
337
|
-
onKeydownPassive: ($event) => cursorKeyDown($event, i)
|
|
338
|
-
}, [
|
|
339
|
-
createElementVNode(
|
|
340
|
-
"span",
|
|
297
|
+
createElementVNode("div", {
|
|
298
|
+
ref_key: "MazSlider",
|
|
299
|
+
ref: MazSlider2,
|
|
300
|
+
class: "m-slider__bar",
|
|
301
|
+
role: "slider",
|
|
302
|
+
"aria-valuenow": __props.modelValue.toString(),
|
|
303
|
+
"aria-valuemin": __props.min,
|
|
304
|
+
"aria-valuemax": __props.max
|
|
305
|
+
}, [
|
|
306
|
+
(openBlock(true), createElementBlock(
|
|
307
|
+
Fragment,
|
|
308
|
+
null,
|
|
309
|
+
renderList(dividers.value, (div, i) => {
|
|
310
|
+
return openBlock(), createElementBlock(
|
|
311
|
+
"div",
|
|
312
|
+
{
|
|
313
|
+
key: `divider-${i}`,
|
|
314
|
+
style: normalizeStyle([div]),
|
|
315
|
+
class: "m-slider__divider"
|
|
316
|
+
},
|
|
341
317
|
null,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
318
|
+
4
|
|
319
|
+
/* STYLE */
|
|
320
|
+
);
|
|
321
|
+
}),
|
|
322
|
+
128
|
|
323
|
+
/* KEYED_FRAGMENT */
|
|
324
|
+
)),
|
|
325
|
+
(openBlock(true), createElementBlock(
|
|
326
|
+
Fragment,
|
|
327
|
+
null,
|
|
328
|
+
renderList(computedValue.value, (_btn, i) => {
|
|
329
|
+
var _a;
|
|
330
|
+
return openBlock(), createElementBlock("button", {
|
|
331
|
+
key: `cursor-${i}`,
|
|
332
|
+
type: "button",
|
|
333
|
+
"data-label": getLabel(i),
|
|
334
|
+
class: normalizeClass(["m-slider__btn", {
|
|
335
|
+
"active-cursor": i === activeCursor.value && !__props.noCursorAnim
|
|
336
|
+
}]),
|
|
337
|
+
style: normalizeStyle([buttonStyles.value[i]]),
|
|
338
|
+
onMousedownPassive: ($event) => handleMousedown($event, i),
|
|
339
|
+
onTouchstartPassive: ($event) => handleMousedown($event, i),
|
|
340
|
+
onFocusPassive: ($event) => handleMousedown($event, i),
|
|
341
|
+
onBlurPassive: ($event) => blurCursor(i),
|
|
342
|
+
onTouchendPassive: ($event) => blurCursor(i),
|
|
343
|
+
onKeydownPassive: ($event) => cursorKeyDown($event, i)
|
|
344
|
+
}, [
|
|
345
|
+
createElementVNode(
|
|
346
|
+
"span",
|
|
347
|
+
null,
|
|
348
|
+
toDisplayString((_a = tmpValues.value) == null ? void 0 : _a[i]),
|
|
349
|
+
1
|
|
350
|
+
/* TEXT */
|
|
351
|
+
)
|
|
352
|
+
], 46, _hoisted_2);
|
|
353
|
+
}),
|
|
354
|
+
128
|
|
355
|
+
/* KEYED_FRAGMENT */
|
|
356
|
+
))
|
|
357
|
+
], 8, _hoisted_1)
|
|
351
358
|
],
|
|
352
|
-
|
|
353
|
-
/*
|
|
359
|
+
38
|
|
360
|
+
/* CLASS, STYLE, HYDRATE_EVENTS */
|
|
354
361
|
)
|
|
355
362
|
],
|
|
356
|
-
|
|
357
|
-
/*
|
|
363
|
+
2112
|
|
364
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
358
365
|
);
|
|
359
366
|
};
|
|
360
367
|
}
|
|
361
368
|
});
|
|
362
|
-
const
|
|
369
|
+
const MazSlider_vue_vue_type_style_index_0_scoped_22612f85_lang = "";
|
|
363
370
|
const _export_sfc = (sfc, props) => {
|
|
364
371
|
const target = sfc.__vccOpts || sfc;
|
|
365
372
|
for (const [key, val] of props) {
|
|
@@ -367,7 +374,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
367
374
|
}
|
|
368
375
|
return target;
|
|
369
376
|
};
|
|
370
|
-
const MazSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
377
|
+
const MazSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-22612f85"]]);
|
|
371
378
|
export {
|
|
372
379
|
MazSlider as default
|
|
373
380
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { Color } from './types';
|
|
3
3
|
export type { Color };
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: BooleanConstructor;
|
|
7
7
|
required: true;
|
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
change: (...args: any[]) => void;
|
|
26
27
|
"update:model-value": (...args: any[]) => void;
|
|
27
28
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
29
|
modelValue: {
|
|
@@ -46,11 +47,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
47
|
default: string;
|
|
47
48
|
};
|
|
48
49
|
}>> & {
|
|
50
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
51
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
50
52
|
}, {
|
|
51
53
|
color: Color;
|
|
52
54
|
disabled: boolean;
|
|
53
55
|
name: string;
|
|
54
56
|
id: string;
|
|
55
|
-
}, {}
|
|
57
|
+
}, {}>, {
|
|
58
|
+
default?(_: {}): any;
|
|
59
|
+
}>;
|
|
56
60
|
export default _default;
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|