maz-ui 3.47.2-beta.4 → 3.47.2-beta.6
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/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +2 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +23 -2
- package/components/MazDropdown.mjs +2 -325
- package/components/MazGallery.d.ts +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +1 -1
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/chunks/{MazBottomSheet-CGRvZmGd.mjs → MazBottomSheet-C9GWCGys.mjs} +1 -1
- package/components/chunks/MazBtn-BBb9-9O6.mjs +105 -0
- package/components/chunks/MazBtn-CMyQNKuk.mjs +105 -0
- package/components/chunks/MazBtn-CfUZ9QSO.mjs +105 -0
- package/components/chunks/MazBtn-D7tI764y.mjs +105 -0
- package/components/chunks/MazBtn-DA2lg-5s.mjs +113 -0
- package/components/chunks/MazBtn-DER-sPjl.mjs +105 -0
- package/components/chunks/MazBtn-DHfi8M3z.mjs +105 -0
- package/components/chunks/MazBtn-DKyz5Hc0.mjs +105 -0
- package/components/chunks/MazBtn-DZb-6vcl.mjs +105 -0
- package/components/chunks/MazBtn-DhEO9uvT.mjs +105 -0
- package/components/chunks/MazBtn-DpFjxnMy.mjs +105 -0
- package/components/chunks/MazBtn-IPfW92RY.mjs +105 -0
- package/components/chunks/MazBtn-Lsac2Q0p.mjs +105 -0
- package/components/chunks/MazBtn-VU3XSEv8.mjs +110 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-CAPZoSqv.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-CSv4VpC9.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BTl370Qq.mjs → MazCheckbox-BI2um2gY.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BBL0vgqe.mjs → MazCheckbox-DwAd7p8o.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DTU2jEkC.mjs → MazCheckbox-IhiWZ8D0.mjs} +1 -1
- package/components/chunks/{MazChecklist-CQv-sXP1.mjs → MazChecklist-Bqd7qTO1.mjs} +1 -1
- package/components/chunks/{MazDialog-khofH-7I.mjs → MazDialog-xPCkmhrE.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-ZRA2ZrO4.mjs → MazDialogPromise-dIHWE8dO.mjs} +2 -2
- package/components/chunks/MazDropdown-7WqbXnPN.mjs +442 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-CRY5X5zS.mjs} +2 -2
- package/components/chunks/MazIcon-B3gy-jQ6.mjs +4 -0
- package/components/chunks/{MazIcon-BdQtfzuy.mjs → MazIcon-D3TB52NM.mjs} +1 -1
- package/components/chunks/{MazInput-DzWkS-g8.mjs → MazInput-DG-grU7m.mjs} +1 -1
- package/components/chunks/{MazInput-geBqeT4i.mjs → MazInput-ROgC-JLt.mjs} +2 -2
- package/components/chunks/{MazInput-eOtg1L9F.mjs → MazInput-rW-KBJGJ.mjs} +2 -2
- package/components/chunks/MazInputNumber-DoeT5Lcu.mjs +571 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-CZiypHp3.mjs} +1 -1
- package/components/chunks/MazInputTags-DGAglIQb.mjs +584 -0
- package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-yKgOtTlk.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-DHcYPXlE.mjs → MazLoadingBar-D8a5KF29.mjs} +1 -1
- package/components/chunks/MazPagination-eJFyS5Nn.mjs +329 -0
- package/components/chunks/{MazPhoneNumberInput-BTm8A0bL.mjs → MazPhoneNumberInput-Bbr0zHPZ.mjs} +3 -3
- package/components/chunks/{MazPicker-DwWiIYAR.mjs → MazPicker-EMOuyWJy.mjs} +538 -539
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-DJGgb6BT.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-Cg1uqryw.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-BLUXEs0G.mjs} +1 -1
- package/components/chunks/{MazSelect-DOiqBTNY.mjs → MazSelect-BDMOrVry.mjs} +2 -2
- package/components/chunks/{MazSelect-Cnz3p3n2.mjs → MazSelect-BUETsREx.mjs} +3 -3
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner--fscjBdL.mjs} +1 -1
- package/components/chunks/MazSpinner-B8vOa-3i.mjs +34 -0
- package/components/chunks/MazSpinner-BODHZQ9h.mjs +34 -0
- package/components/chunks/MazSpinner-BdOKUqKA.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C0PBSYpC.mjs} +1 -1
- package/components/chunks/{MazSpinner-B1PXhYRx.mjs → MazSpinner-CEgSruvD.mjs} +1 -1
- package/components/chunks/{MazSpinner-Dhg-s-9s.mjs → MazSpinner-CLlK6hHp.mjs} +1 -1
- package/components/chunks/MazSpinner-CMMBCwk2.mjs +34 -0
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CQpzVTYF.mjs} +1 -1
- package/components/chunks/MazSpinner-ChqoF_fX.mjs +34 -0
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-D5ciNjTR.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-DJM02T-b.mjs} +1 -1
- package/components/chunks/{MazSpinner-B7tPZpHw.mjs → MazSpinner-DebSlkVT.mjs} +1 -1
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-RzOGVi6V.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-VN2Vol2B.mjs} +1 -1
- package/components/chunks/MazSpinner-dm4RUkiD.mjs +34 -0
- package/components/chunks/MazSpinner-oLVdOGaR.mjs +34 -0
- package/components/chunks/{MazTable-BKdEx63E.mjs → MazTable-CWsaB02U.mjs} +1 -1
- package/components/chunks/{MazTableCell-CozcugiL.mjs → MazTableCell-CgiGF3bL.mjs} +1 -1
- package/components/chunks/{MazTableRow-bLFpjzu1.mjs → MazTableRow-6KrQQQbm.mjs} +1 -1
- package/components/chunks/{MazTableTitle-Qk239mu9.mjs → MazTableTitle-C8P3v8b6.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-BCgH8NZP.mjs} +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-SZHtOzgz.cjs +1 -0
- package/modules/chunks/MazBtn-y5LW9A2T.mjs +105 -0
- package/modules/chunks/{MazIcon-B8BoiF7R.cjs → MazIcon-BpVDZGXl.cjs} +1 -1
- package/modules/chunks/{MazIcon-C6zDSPgJ.mjs → MazIcon-Dj66ziAh.mjs} +1 -1
- package/modules/chunks/{MazSpinner-B-4tL9pK.cjs → MazSpinner-CPT6UF2e.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BvJydaeF.mjs → MazSpinner-uMrdk_99.mjs} +1 -1
- package/modules/chunks/{index-Bf4X7amE.mjs → index-BG6gPie5.mjs} +4 -4
- package/modules/chunks/{index-F0B533E8.cjs → index-BTegnVLg.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCard.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +23 -2
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +1 -1
- package/types/components/MazPullToRefresh.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +1 -1
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-C_BULYqZ.mjs +0 -106
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-Sj-Pq0YV.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cDJlUVVY.mjs +0 -106
- package/components/chunks/MazBtn-cUQ1Tykp.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazBtn-psosbsi3.mjs +0 -106
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazInputTags-Dj3sW-e5.mjs +0 -585
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DOSj2BnX.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/modules/chunks/MazBtn-D7el03Rl.cjs +0 -1
- package/modules/chunks/MazBtn-D8uOirkn.mjs +0 -106
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.d.ts
CHANGED
|
@@ -72,9 +72,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
72
72
|
header: string;
|
|
73
73
|
href: string;
|
|
74
74
|
to: RouterLinkProps["to"];
|
|
75
|
-
elevation: boolean;
|
|
76
75
|
orientation: "column" | "row" | "row-reverse" | "column-reverse";
|
|
77
|
-
radius: boolean;
|
|
78
76
|
scale: boolean;
|
|
79
77
|
images: MazGalleryImage[];
|
|
80
78
|
noRemaining: boolean;
|
|
@@ -82,6 +80,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
82
80
|
footerAlign: "right" | "left";
|
|
83
81
|
galleryWidth: string | number;
|
|
84
82
|
galleryHeight: string | number;
|
|
83
|
+
elevation: boolean;
|
|
84
|
+
radius: boolean;
|
|
85
85
|
imagesShowCount: number;
|
|
86
86
|
wrapperClass: HTMLAttributes["class"];
|
|
87
87
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/components/MazCard.mjs
CHANGED
|
@@ -111,10 +111,10 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
111
111
|
}> & Readonly<{}>, {
|
|
112
112
|
size: string;
|
|
113
113
|
color: Color;
|
|
114
|
-
stroke: string;
|
|
115
114
|
duration: number;
|
|
116
115
|
prefix: string;
|
|
117
116
|
suffix: string;
|
|
117
|
+
stroke: string;
|
|
118
118
|
percentage: number;
|
|
119
119
|
strokeLinecap: "inherit" | "round" | "square" | "butt";
|
|
120
120
|
strokeWidth: string | number;
|
package/components/MazDialog.mjs
CHANGED
package/components/MazDrawer.mjs
CHANGED
|
@@ -128,7 +128,7 @@ import './assets/MazDrawer.css';const A = "--backdrop-present", U = /* @__PURE__
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
130
130
|
setup(b) {
|
|
131
|
-
const i = B(() => import("./chunks/MazBtn-
|
|
131
|
+
const i = B(() => import("./chunks/MazBtn-DA2lg-5s.mjs").then((e) => e.M)), c = B(() => import("./chunks/x-mark-CnZwVvA7.mjs"));
|
|
132
132
|
return (e, t) => (r(), h(U, {
|
|
133
133
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
134
134
|
style: F({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RouteLocationRaw } from 'vue-router';
|
|
2
2
|
import type { Color } from './MazBtn.vue';
|
|
3
3
|
import type { MazLinkProps } from './MazLink.vue';
|
|
4
|
-
import type { Position } from './types';
|
|
4
|
+
import type { Icon, Position, Size } from './types';
|
|
5
5
|
import { type HTMLAttributes } from 'vue';
|
|
6
|
-
export type { Color, Position };
|
|
6
|
+
export type { Color, Position, Size };
|
|
7
7
|
type ItemBase = Record<string, unknown> & {
|
|
8
8
|
label: string;
|
|
9
9
|
class?: unknown;
|
|
@@ -77,6 +77,22 @@ export interface MazDropdownProps {
|
|
|
77
77
|
* If true, the button will have a full width
|
|
78
78
|
*/
|
|
79
79
|
block?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Custom dropdown icon
|
|
82
|
+
* You can use a string to define the icon name or a Vue component
|
|
83
|
+
* @default undefined
|
|
84
|
+
*/
|
|
85
|
+
dropdownIcon?: string | Icon;
|
|
86
|
+
/**
|
|
87
|
+
* If true, the dropdown icon will rotate when the dropdown is open
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
dropdownIconAnimation?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Size of the button
|
|
93
|
+
* @default 'md'
|
|
94
|
+
*/
|
|
95
|
+
size?: Size;
|
|
80
96
|
}
|
|
81
97
|
declare function __VLS_template(): {
|
|
82
98
|
slots: {
|
|
@@ -85,6 +101,9 @@ declare function __VLS_template(): {
|
|
|
85
101
|
isOpen: boolean;
|
|
86
102
|
}): any;
|
|
87
103
|
default?(_: {}): any;
|
|
104
|
+
"dropdown-icon"?(_: {
|
|
105
|
+
isOpen: boolean;
|
|
106
|
+
}): any;
|
|
88
107
|
dropdown?(_: {
|
|
89
108
|
items: MenuItem[];
|
|
90
109
|
}): any;
|
|
@@ -130,6 +149,7 @@ declare const __VLS_component: import("vue").DefineComponent<MazDropdownProps, {
|
|
|
130
149
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
131
150
|
}>, {
|
|
132
151
|
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
152
|
+
size: Size;
|
|
133
153
|
color: Color;
|
|
134
154
|
class: HTMLAttributes["class"];
|
|
135
155
|
id: string;
|
|
@@ -137,6 +157,7 @@ declare const __VLS_component: import("vue").DefineComponent<MazDropdownProps, {
|
|
|
137
157
|
trigger: "click" | "hover" | "both";
|
|
138
158
|
items: MenuItem[];
|
|
139
159
|
screenReaderDescription: string;
|
|
160
|
+
dropdownIconAnimation: boolean;
|
|
140
161
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
141
162
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
142
163
|
export default _default;
|
|
@@ -1,327 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './assets/MazDropdown.css';function ue({
|
|
3
|
-
componentName: t,
|
|
4
|
-
providedId: r
|
|
5
|
-
}) {
|
|
6
|
-
const n = ee();
|
|
7
|
-
return oe(() => r ?? `${t}-${n}`);
|
|
8
|
-
}
|
|
9
|
-
y("system");
|
|
10
|
-
y("system");
|
|
11
|
-
const w = "__maz-click-outside__";
|
|
12
|
-
function F() {
|
|
13
|
-
return document.ontouchstart === null ? "touchstart" : "click";
|
|
14
|
-
}
|
|
15
|
-
async function P(t, r) {
|
|
16
|
-
try {
|
|
17
|
-
V(t);
|
|
18
|
-
const n = r.instance, c = r.value, d = typeof c == "function";
|
|
19
|
-
if (!d)
|
|
20
|
-
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
21
|
-
await ne(), t[w] = (k) => {
|
|
22
|
-
if ((!t || k.target && !t.contains(k.target)) && c && d)
|
|
23
|
-
return c.call(n, k);
|
|
24
|
-
};
|
|
25
|
-
const C = F();
|
|
26
|
-
document.addEventListener(C, t[w], { passive: !0 });
|
|
27
|
-
} catch (n) {
|
|
28
|
-
console.error("[maz-ui](vClickOutside)", n);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function V(t) {
|
|
32
|
-
try {
|
|
33
|
-
const r = F();
|
|
34
|
-
document.removeEventListener(r, t[w], !1), delete t[w];
|
|
35
|
-
} catch (r) {
|
|
36
|
-
console.error("[maz-ui](vClickOutside)", r);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function ce(t, r) {
|
|
40
|
-
try {
|
|
41
|
-
if (r.value === r.oldValue)
|
|
42
|
-
return;
|
|
43
|
-
P(t, r);
|
|
44
|
-
} catch (n) {
|
|
45
|
-
console.error("[maz-ui](vClickOutside)", n);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const de = {
|
|
49
|
-
mounted: P,
|
|
50
|
-
updated: ce,
|
|
51
|
-
unmounted: V
|
|
52
|
-
};
|
|
53
|
-
function fe(t, r) {
|
|
54
|
-
let n;
|
|
55
|
-
return function(...c) {
|
|
56
|
-
clearTimeout(n), n = setTimeout(() => {
|
|
57
|
-
t.apply(this, c);
|
|
58
|
-
}, r);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const pe = {
|
|
62
|
-
cancelText: "Cancel",
|
|
63
|
-
confirmText: "Confirm",
|
|
64
|
-
cancelButton: {
|
|
65
|
-
text: "Cancel",
|
|
66
|
-
color: "danger"
|
|
67
|
-
},
|
|
68
|
-
confirmButton: {
|
|
69
|
-
text: "Confirm",
|
|
70
|
-
color: "success"
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
y(pe);
|
|
74
|
-
y([]);
|
|
75
|
-
const me = ["id"], ve = ["aria-expanded"], ye = ["id"], ke = ["onClick"], he = /* @__PURE__ */ te({
|
|
76
|
-
inheritAttrs: !1,
|
|
77
|
-
__name: "MazDropdown",
|
|
78
|
-
props: {
|
|
79
|
-
style: { default: void 0 },
|
|
80
|
-
class: { default: void 0 },
|
|
81
|
-
items: { default: () => [] },
|
|
82
|
-
open: { type: Boolean },
|
|
83
|
-
id: { default: void 0 },
|
|
84
|
-
trigger: { default: "both" },
|
|
85
|
-
color: { default: "transparent" },
|
|
86
|
-
position: { default: "bottom left" },
|
|
87
|
-
noCloseOnClick: { type: Boolean },
|
|
88
|
-
disabled: { type: Boolean },
|
|
89
|
-
noChevron: { type: Boolean },
|
|
90
|
-
screenReaderDescription: { default: "Open menu dropdown" },
|
|
91
|
-
menuPanelClass: {},
|
|
92
|
-
menuPanelStyle: {},
|
|
93
|
-
block: { type: Boolean }
|
|
94
|
-
},
|
|
95
|
-
emits: ["menuitem-clicked", "update:open"],
|
|
96
|
-
setup(t, { emit: r }) {
|
|
97
|
-
const n = t, c = r, d = ue({
|
|
98
|
-
componentName: "MazDropdown",
|
|
99
|
-
providedId: n.id
|
|
100
|
-
}), C = D(() => import("./chunks/MazBtn-cDJlUVVY.mjs")), k = D(() => import("./chunks/MazLink-C_3Wya94.mjs")), H = D(() => import("./chunks/chevron-down-BkvtON3b.mjs")), i = y(n.open), s = y(), f = fe((e) => {
|
|
101
|
-
u(e);
|
|
102
|
-
}, 200);
|
|
103
|
-
function R() {
|
|
104
|
-
i.value && u(!1);
|
|
105
|
-
}
|
|
106
|
-
function q() {
|
|
107
|
-
u(!i.value);
|
|
108
|
-
}
|
|
109
|
-
function K() {
|
|
110
|
-
["click"].includes(n.trigger) && q();
|
|
111
|
-
}
|
|
112
|
-
function Q() {
|
|
113
|
-
["hover", "both"].includes(n.trigger) && u(!0);
|
|
114
|
-
}
|
|
115
|
-
function j() {
|
|
116
|
-
["hover", "both"].includes(n.trigger) && (i.value === !1 ? u(!0) : f(!0));
|
|
117
|
-
}
|
|
118
|
-
function G() {
|
|
119
|
-
["hover", "both"].includes(n.trigger) && f(!1);
|
|
120
|
-
}
|
|
121
|
-
function J() {
|
|
122
|
-
f(!1);
|
|
123
|
-
}
|
|
124
|
-
function u(e) {
|
|
125
|
-
n.disabled || (i.value = e, c("update:open", e));
|
|
126
|
-
}
|
|
127
|
-
function W(e) {
|
|
128
|
-
return "action" in e;
|
|
129
|
-
}
|
|
130
|
-
function X(e) {
|
|
131
|
-
return "href" in e || "to" in e;
|
|
132
|
-
}
|
|
133
|
-
async function Y(e, l) {
|
|
134
|
-
var o;
|
|
135
|
-
c("menuitem-clicked", l), await ((o = e.action) == null ? void 0 : o.call(e)), n.noCloseOnClick || g();
|
|
136
|
-
}
|
|
137
|
-
function g() {
|
|
138
|
-
n.noCloseOnClick === !1 && u(!1);
|
|
139
|
-
}
|
|
140
|
-
function M(e) {
|
|
141
|
-
e.key === "Escape" ? (e.preventDefault(), u(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? _(e) : e.key === "Enter" && typeof s.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${d.value} .menuitem`)[s.value].click(), g());
|
|
142
|
-
}
|
|
143
|
-
function Z(e) {
|
|
144
|
-
["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && i.value === !1 && (e.preventDefault(), u(!0));
|
|
145
|
-
}
|
|
146
|
-
function _(e) {
|
|
147
|
-
var m;
|
|
148
|
-
e.preventDefault();
|
|
149
|
-
const l = e.key;
|
|
150
|
-
i.value || u(!0);
|
|
151
|
-
const o = (m = n.items) == null ? void 0 : m.length;
|
|
152
|
-
o && (typeof s.value == "number" ? s.value === o - 1 && l === "ArrowDown" ? s.value = 0 : s.value === 0 && l === "ArrowUp" ? s.value = o - 1 : s.value = l === "ArrowDown" ? s.value + 1 : s.value - 1 : s.value = l === "ArrowDown" ? 0 : o - 1);
|
|
153
|
-
}
|
|
154
|
-
return I(
|
|
155
|
-
() => i.value,
|
|
156
|
-
(e) => {
|
|
157
|
-
e ? document.addEventListener("keydown", M) : document.removeEventListener("keydown", M), s.value = void 0;
|
|
158
|
-
}
|
|
159
|
-
), I(
|
|
160
|
-
() => n.open,
|
|
161
|
-
(e) => u(e)
|
|
162
|
-
), (e, l) => T((v(), b("div", {
|
|
163
|
-
id: a(d),
|
|
164
|
-
class: $(["m-dropdown", [n.class, { "--block": e.block }]]),
|
|
165
|
-
style: S(e.style)
|
|
166
|
-
}, [
|
|
167
|
-
L("div", {
|
|
168
|
-
role: "button",
|
|
169
|
-
tabindex: "0",
|
|
170
|
-
class: "m-dropdown__wrapper",
|
|
171
|
-
"aria-expanded": i.value,
|
|
172
|
-
"aria-haspopup": "menu",
|
|
173
|
-
onClick: E(K, ["stop"]),
|
|
174
|
-
onFocus: Q,
|
|
175
|
-
onBlur: J,
|
|
176
|
-
onKeydown: Z,
|
|
177
|
-
onMouseenter: j,
|
|
178
|
-
onMouseleave: G
|
|
179
|
-
}, [
|
|
180
|
-
e.screenReaderDescription || e.$slots["screen-reader-description"] ? (v(), b("span", {
|
|
181
|
-
key: 0,
|
|
182
|
-
id: `${a(d)}-labelspan`,
|
|
183
|
-
class: "maz-sr-only"
|
|
184
|
-
}, [
|
|
185
|
-
p(e.$slots, "screen-reader-description", {}, () => [
|
|
186
|
-
z(
|
|
187
|
-
B(e.screenReaderDescription),
|
|
188
|
-
1
|
|
189
|
-
/* TEXT */
|
|
190
|
-
)
|
|
191
|
-
])
|
|
192
|
-
], 8, ye)) : O("v-if", !0),
|
|
193
|
-
p(e.$slots, "element", { isOpen: i.value }, () => [
|
|
194
|
-
U(a(C), A({
|
|
195
|
-
"aria-labelledby": `${a(d)}-labelspan`,
|
|
196
|
-
color: e.color,
|
|
197
|
-
disabled: e.disabled
|
|
198
|
-
}, e.$attrs, {
|
|
199
|
-
tabindex: "-1",
|
|
200
|
-
block: e.block
|
|
201
|
-
}), re({
|
|
202
|
-
default: h(() => [
|
|
203
|
-
p(e.$slots, "default")
|
|
204
|
-
]),
|
|
205
|
-
_: 2
|
|
206
|
-
/* DYNAMIC */
|
|
207
|
-
}, [
|
|
208
|
-
e.noChevron ? void 0 : {
|
|
209
|
-
name: "right-icon",
|
|
210
|
-
fn: h(() => [
|
|
211
|
-
e.noChevron ? O("v-if", !0) : (v(), N(a(H), {
|
|
212
|
-
key: 0,
|
|
213
|
-
class: $([{ "maz-rotate-180": i.value }, "chevron-icon"])
|
|
214
|
-
}, null, 8, ["class"]))
|
|
215
|
-
]),
|
|
216
|
-
key: "0"
|
|
217
|
-
}
|
|
218
|
-
]), 1040, ["aria-labelledby", "color", "disabled", "block"])
|
|
219
|
-
])
|
|
220
|
-
], 40, ve),
|
|
221
|
-
U(le, {
|
|
222
|
-
name: "maz-scale-fade",
|
|
223
|
-
persisted: ""
|
|
224
|
-
}, {
|
|
225
|
-
default: h(() => [
|
|
226
|
-
T(L(
|
|
227
|
-
"div",
|
|
228
|
-
{
|
|
229
|
-
role: "menu",
|
|
230
|
-
"aria-label": "Menu",
|
|
231
|
-
class: $(["menu", [{
|
|
232
|
-
"--top": e.position.includes("top"),
|
|
233
|
-
"--left": e.position.includes("left"),
|
|
234
|
-
"--right": e.position.includes("right"),
|
|
235
|
-
"--bottom": e.position.includes("bottom")
|
|
236
|
-
}, e.menuPanelClass]]),
|
|
237
|
-
tabindex: "-1",
|
|
238
|
-
style: S(e.menuPanelStyle),
|
|
239
|
-
onFocus: l[0] || (l[0] = (o) => a(f)(!0)),
|
|
240
|
-
onBlur: l[1] || (l[1] = (o) => a(f)(!1)),
|
|
241
|
-
onMouseenter: l[2] || (l[2] = (o) => ["hover", "both"].includes(e.trigger) ? a(f)(!0) : void 0),
|
|
242
|
-
onMouseleave: l[3] || (l[3] = (o) => ["hover", "both"].includes(e.trigger) ? a(f)(!1) : void 0)
|
|
243
|
-
},
|
|
244
|
-
[
|
|
245
|
-
p(e.$slots, "dropdown", { items: e.items }, () => [
|
|
246
|
-
(v(!0), b(
|
|
247
|
-
se,
|
|
248
|
-
null,
|
|
249
|
-
ie(e.items, (o, m) => p(e.$slots, "menuitem", {
|
|
250
|
-
key: m,
|
|
251
|
-
item: o
|
|
252
|
-
}, () => [
|
|
253
|
-
X(o) ? (v(), N(a(k), A({
|
|
254
|
-
key: 0,
|
|
255
|
-
target: o.href ? o.target ?? "_self" : void 0,
|
|
256
|
-
to: o.to,
|
|
257
|
-
href: o.href,
|
|
258
|
-
color: o.color ?? "theme",
|
|
259
|
-
ref_for: !0
|
|
260
|
-
}, o, {
|
|
261
|
-
"underline-only-hover": o.underlineOnlyHover ?? !1,
|
|
262
|
-
class: ["menuitem", [
|
|
263
|
-
{
|
|
264
|
-
"--is-keyboard-selected": s.value === m
|
|
265
|
-
},
|
|
266
|
-
o.class
|
|
267
|
-
]],
|
|
268
|
-
tabindex: "-1",
|
|
269
|
-
onClick: E(g, ["stop"])
|
|
270
|
-
}), {
|
|
271
|
-
default: h(() => [
|
|
272
|
-
p(e.$slots, "menuitem-label", { item: o }, () => [
|
|
273
|
-
z(
|
|
274
|
-
B(o.label),
|
|
275
|
-
1
|
|
276
|
-
/* TEXT */
|
|
277
|
-
)
|
|
278
|
-
])
|
|
279
|
-
]),
|
|
280
|
-
_: 2
|
|
281
|
-
/* DYNAMIC */
|
|
282
|
-
}, 1040, ["target", "to", "href", "color", "underline-only-hover", "class"])) : W(o) ? (v(), b("button", A({
|
|
283
|
-
key: 1,
|
|
284
|
-
tabindex: "-1",
|
|
285
|
-
type: "button",
|
|
286
|
-
ref_for: !0
|
|
287
|
-
}, o, {
|
|
288
|
-
class: ["menuitem menuitem__button", [
|
|
289
|
-
{
|
|
290
|
-
"--is-keyboard-selected": s.value === m
|
|
291
|
-
},
|
|
292
|
-
o.class,
|
|
293
|
-
`--${o.color ?? "theme"}`
|
|
294
|
-
]],
|
|
295
|
-
onClick: E((x) => Y(o, x), ["stop"])
|
|
296
|
-
}), [
|
|
297
|
-
p(e.$slots, "menuitem-label", { item: o }, () => [
|
|
298
|
-
z(
|
|
299
|
-
B(o.label),
|
|
300
|
-
1
|
|
301
|
-
/* TEXT */
|
|
302
|
-
)
|
|
303
|
-
])
|
|
304
|
-
], 16, ke)) : O("v-if", !0)
|
|
305
|
-
])),
|
|
306
|
-
128
|
|
307
|
-
/* KEYED_FRAGMENT */
|
|
308
|
-
))
|
|
309
|
-
])
|
|
310
|
-
],
|
|
311
|
-
38
|
|
312
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
313
|
-
), [
|
|
314
|
-
[ae, i.value]
|
|
315
|
-
])
|
|
316
|
-
]),
|
|
317
|
-
_: 3
|
|
318
|
-
/* FORWARDED */
|
|
319
|
-
})
|
|
320
|
-
], 14, me)), [
|
|
321
|
-
[a(de), R]
|
|
322
|
-
]);
|
|
323
|
-
}
|
|
324
|
-
});
|
|
1
|
+
import { a as f } from "./chunks/MazDropdown-7WqbXnPN.mjs";
|
|
325
2
|
export {
|
|
326
|
-
|
|
3
|
+
f as default
|
|
327
4
|
};
|
|
@@ -151,8 +151,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
151
|
blur: boolean;
|
|
152
152
|
width: string | number;
|
|
153
153
|
height: string | number;
|
|
154
|
-
scale: boolean;
|
|
155
154
|
lazy: boolean;
|
|
155
|
+
scale: boolean;
|
|
156
156
|
images: MazGalleryImage[];
|
|
157
157
|
imagesShownCount: number;
|
|
158
158
|
noRemaining: boolean;
|
package/components/MazInput.mjs
CHANGED
|
@@ -52,11 +52,11 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
52
52
|
size: Size;
|
|
53
53
|
class: HTMLAttributes["class"];
|
|
54
54
|
disabled: boolean;
|
|
55
|
-
max: number;
|
|
56
|
-
min: number;
|
|
57
55
|
modelValue: number;
|
|
58
56
|
step: number;
|
|
59
57
|
inputmode: "search" | "text" | "none" | "email" | "tel" | "decimal" | "url" | "numeric";
|
|
58
|
+
max: number;
|
|
59
|
+
min: number;
|
|
60
60
|
noButtons: boolean;
|
|
61
61
|
textCenter: boolean;
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -46,11 +46,11 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
46
46
|
"onUpdate:model-value"?: ((value: number | undefined) => any) | undefined;
|
|
47
47
|
onFormatted?: ((value: string | undefined) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
-
max: number;
|
|
50
|
-
min: number;
|
|
51
49
|
modelValue: number;
|
|
52
50
|
currency: string;
|
|
53
51
|
locale: string;
|
|
52
|
+
max: number;
|
|
53
|
+
min: number;
|
|
54
54
|
noIcon: boolean;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
56
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -209,8 +209,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
209
209
|
color: Color;
|
|
210
210
|
class: HTMLAttributes["class"];
|
|
211
211
|
id: string;
|
|
212
|
-
orientation: "row" | "col" | "responsive";
|
|
213
212
|
modelValue: string;
|
|
213
|
+
orientation: "row" | "col" | "responsive";
|
|
214
214
|
placeholder: string;
|
|
215
215
|
listPosition: Position;
|
|
216
216
|
searchThreshold: number;
|
|
@@ -90,13 +90,13 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
90
90
|
color: Color;
|
|
91
91
|
class: HTMLAttributes["class"];
|
|
92
92
|
disabled: boolean;
|
|
93
|
-
format: string;
|
|
94
93
|
modelValue: string | Partial<import("./MazPicker/types").RangeValue>;
|
|
95
94
|
open: boolean;
|
|
96
95
|
locale: string;
|
|
97
96
|
double: boolean;
|
|
98
97
|
inline: boolean;
|
|
99
98
|
placeholder: string;
|
|
99
|
+
format: string;
|
|
100
100
|
noUseBrowserLocale: boolean;
|
|
101
101
|
minDate: string;
|
|
102
102
|
maxDate: string;
|
package/components/MazPicker.mjs
CHANGED
|
@@ -35,8 +35,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
35
35
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
offset: number;
|
|
39
38
|
action: () => unknown;
|
|
39
|
+
offset: number;
|
|
40
40
|
distance: number;
|
|
41
41
|
containerSelector: string;
|
|
42
42
|
headerClass: string;
|
|
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
47
47
|
}>, {
|
|
48
48
|
color: Color;
|
|
49
49
|
height: string;
|
|
50
|
-
offset: number;
|
|
51
50
|
teleportSelector: string;
|
|
51
|
+
offset: number;
|
|
52
52
|
distance: number;
|
|
53
53
|
contentSelector: string;
|
|
54
54
|
barClass: HTMLAttributes["class"];
|
package/components/MazSelect.mjs
CHANGED
|
@@ -102,9 +102,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
102
102
|
}>, {
|
|
103
103
|
size: string;
|
|
104
104
|
color: Color;
|
|
105
|
+
labels: unknown[];
|
|
105
106
|
max: number;
|
|
106
107
|
min: number;
|
|
107
|
-
labels: unknown[];
|
|
108
108
|
noDivider: boolean;
|
|
109
109
|
log: boolean;
|
|
110
110
|
noCursorAnim: boolean;
|
package/components/MazTable.mjs
CHANGED