maz-ui 3.44.4-beta.9 → 3.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAccordion.mjs +5 -3
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +1 -0
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazCheckbox.mjs +44 -42
- package/components/MazCircularProgressBar.mjs +22 -20
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +6 -4
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +16 -0
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +18 -16
- package/components/MazRadioButtons.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +18 -16
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +19 -17
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBottomSheet-DpI8wFgc.mjs → MazBottomSheet-CH2HERnA.mjs} +1 -1
- package/components/chunks/MazBtn-25C5Rxq8.mjs +150 -0
- package/components/chunks/{MazBtn-C7RDTnn-.mjs → MazBtn-Am8V9GhQ.mjs} +4 -4
- package/components/chunks/{MazBtn-BIVlttu0.mjs → MazBtn-BY3WK1_J.mjs} +4 -4
- package/components/chunks/MazBtn-CHiPgDBd.mjs +150 -0
- package/components/chunks/MazBtn-Cljl5o-I.mjs +150 -0
- package/components/chunks/MazBtn-Ctia-461.mjs +150 -0
- package/components/chunks/MazBtn-DODywrLx.mjs +150 -0
- package/components/chunks/{MazBtn-BQ7aH6Qe.mjs → MazBtn-DUxqd_DK.mjs} +3 -3
- package/components/chunks/{MazBtn-BpA0sObZ.mjs → MazBtn-DaGlZoUy.mjs} +4 -4
- package/components/chunks/{MazBtn-Dfz-5FeI.mjs → MazBtn-Db9bWwr8.mjs} +3 -3
- package/components/chunks/{MazBtn-BPU_AqTZ.mjs → MazBtn-DtBz7Sra.mjs} +4 -4
- package/components/chunks/{MazCard-BiDXoNWK.mjs → MazCard-BOVaL2TX.mjs} +3 -3
- package/components/chunks/{MazCarousel-DJ_nQfy4.mjs → MazCarousel-abKXCTQA.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Bn3Dj9NV.mjs → MazCheckbox-DJUwF9Ic.mjs} +6 -6
- package/components/chunks/{MazCheckbox-Dd9Lbwu5.mjs → MazCheckbox-cCi1trWo.mjs} +6 -6
- package/components/chunks/{MazDialog-DXaeCp-b.mjs → MazDialog-DvwYzTxG.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-Bgxjg9ss.mjs → MazDialogPromise-LtvHsHIp.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-ChSSdQAq.mjs → MazExpandAnimation-KC7-CJjE.mjs} +1 -1
- package/components/chunks/{MazGallery-SSMQ_JIA.mjs → MazGallery-CPYyQmRZ.mjs} +2 -2
- package/components/chunks/{MazIcon-CACuxev1.mjs → MazIcon-Cj1BW9sd.mjs} +1 -1
- package/components/chunks/{MazIcon-AqrraC4c.mjs → MazIcon-RoOmzDJT.mjs} +1 -1
- package/components/chunks/{MazInput-BhKgHfCf.mjs → MazInput-Bh4h0r_b.mjs} +7 -5
- package/components/chunks/{MazInputNumber-F6IVaJOM.mjs → MazInputNumber-C6X8wPcR.mjs} +8 -6
- package/components/chunks/{MazInputPrice-B6uSbUfK.mjs → MazInputPrice-C8JPpUqb.mjs} +7 -5
- package/components/chunks/{MazInputTags-RknxybLY.mjs → MazInputTags-B7CtC8ES.mjs} +9 -7
- package/components/chunks/{MazPagination-NbHR41CQ.mjs → MazPagination-nBtlECFm.mjs} +3 -3
- package/components/chunks/{MazPhoneNumberInput-D12Ibm8u.mjs → MazPhoneNumberInput-D9jYdzsz.mjs} +144 -142
- package/components/chunks/{MazPicker-BI9ZeVKO.mjs → MazPicker-DyZrLgfS.mjs} +829 -829
- package/components/chunks/{MazPickerMonthSwitcher-BpZqdD5K.mjs → MazPickerMonthSwitcher-DuCmmEkc.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-BFYu-DCq.mjs → MazPickerShortcuts-ByXlLUrf.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DOixNBLR.mjs → MazPickerYearSwitcher-C4lu0v5Z.mjs} +1 -1
- package/components/chunks/{MazSelect-3IfnAYTM.mjs → MazSelect-YzzlcNEB.mjs} +39 -37
- package/components/chunks/{MazSpinner-BjWSi43k.mjs → MazSpinner--8_8u8F8.mjs} +1 -1
- package/components/chunks/{MazSpinner-CrDTibNk.mjs → MazSpinner-B6CCWjsr.mjs} +1 -1
- package/components/chunks/{MazSpinner-C8x7LsHq.mjs → MazSpinner-BB7RmZDm.mjs} +1 -1
- package/components/chunks/MazSpinner-BJN_jbhh.mjs +37 -0
- package/components/chunks/{MazSpinner-C6T_enKo.mjs → MazSpinner-BaF0DUe_.mjs} +1 -1
- package/components/chunks/{MazSpinner-DBxRDGWB.mjs → MazSpinner-BkThjKrN.mjs} +1 -1
- package/components/chunks/MazSpinner-C26AbFPs.mjs +37 -0
- package/components/chunks/{MazSpinner-BuoLivqP.mjs → MazSpinner-CeqhaMHQ.mjs} +1 -1
- package/components/chunks/MazSpinner-ClVjU4gS.mjs +37 -0
- package/components/chunks/MazSpinner-CrfX4MuO.mjs +37 -0
- package/components/chunks/MazSpinner-CxE3Az_C.mjs +37 -0
- package/components/chunks/{MazSpinner-CLz4ccD0.mjs → MazSpinner-DH5fMQ2V.mjs} +1 -1
- package/components/chunks/MazSpinner-DRDcCM66.mjs +37 -0
- package/components/chunks/MazSpinner-aOtXYirZ.mjs +37 -0
- package/components/chunks/{MazSpinner-rAqBu92m.mjs → MazSpinner-vlqbojbC.mjs} +1 -1
- package/components/chunks/MazSpinner-xXJol44G.mjs +37 -0
- package/components/chunks/{MazStepper-DxrzKz06.mjs → MazStepper-yS_V0Blo.mjs} +11 -11
- package/components/chunks/{MazTable-C6u9AHMK.mjs → MazTable-IHEexOjS.mjs} +294 -292
- package/components/chunks/{MazTransitionExpand-BLFZPAt_.mjs → MazTransitionExpand-5BehexAr.mjs} +1 -1
- package/css/main.css +1 -1
- package/icons/star-solid.svg +3 -0
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/{components/chunks/MazBtn-BGGyg-rm.mjs → modules/chunks/MazBtn-BFQY0H-i.mjs} +4 -4
- package/modules/chunks/{MazBtn-ESi64rk1.cjs → MazBtn-I7JqHQTq.cjs} +2 -2
- package/modules/chunks/{MazIcon-Cv_9xeNS.cjs → MazIcon-CsxV_mO2.cjs} +1 -1
- package/modules/chunks/{MazIcon-BCJS1Geo.mjs → MazIcon-p3FoIAP_.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CexHrCCW.cjs → MazSpinner-BpSg3Y-2.cjs} +1 -1
- package/modules/chunks/{MazSpinner-DggGj5LA.mjs → MazSpinner-Ci05iNOI.mjs} +1 -1
- package/modules/chunks/{index-TsZCzVnS.mjs → index-BB6bju-X.mjs} +708 -690
- package/modules/chunks/index-DKf8K15k.cjs +124 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +4 -4
- package/package.json +10 -5
- package/resolvers/index.cjs +1 -1
- package/resolvers/index.d.ts +1 -0
- package/resolvers/index.mjs +50 -10
- package/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/resolvers/unplugin-modules-resolver.d.ts +2 -0
- package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/types/components/MazBtn.vue.d.ts +1 -0
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +16 -0
- package/types/modules/composables/index.d.ts +14 -14
- package/types/modules/composables/{use-breakpoints.d.ts → useBreakpoints.d.ts} +1 -1
- package/types/modules/composables/useFormValidator/index.d.ts +3 -0
- package/types/modules/composables/{use-form-validator → useFormValidator}/types.d.ts +9 -8
- package/types/modules/composables/useFormValidator/useFormField.d.ts +16 -0
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +17 -0
- package/types/modules/composables/{use-form-validator → useFormValidator}/utils.d.ts +11 -3
- package/types/resolvers/index.d.ts +1 -0
- package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/types/resolvers/unplugin-modules-resolver.d.ts +2 -0
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/components/chunks/MazBtn-D1TNsXIe.mjs +0 -150
- package/components/chunks/MazBtn-D2tIsob2.mjs +0 -150
- package/components/chunks/MazBtn-Vas62hFD.mjs +0 -150
- package/components/chunks/MazBtn-lTOX3L3D.mjs +0 -150
- package/components/chunks/MazSpinner-Cfum6OA7.mjs +0 -37
- package/components/chunks/MazSpinner-CmJlBqgH.mjs +0 -37
- package/components/chunks/MazSpinner-D6To61E2.mjs +0 -37
- package/components/chunks/MazSpinner-DMoNTx6P.mjs +0 -37
- package/components/chunks/MazSpinner-DSuBq7vR.mjs +0 -37
- package/components/chunks/MazSpinner-DfLymjp0.mjs +0 -37
- package/components/chunks/MazSpinner-dFnsq52G.mjs +0 -37
- package/components/chunks/MazSpinner-iA4Rz7K5.mjs +0 -37
- package/modules/chunks/MazBtn-CRXv0h6A.mjs +0 -150
- package/modules/chunks/index-DDzZfuaO.cjs +0 -124
- package/types/modules/composables/use-form-validator/index.d.ts +0 -33
- /package/nuxt/runtime/composables/{use-aos.d.ts → useAos.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-aos.js → useAos.js} +0 -0
- /package/nuxt/runtime/composables/{use-theme-handler.d.ts → useThemeHandler.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-theme-handler.js → useThemeHandler.js} +0 -0
- /package/nuxt/runtime/composables/{use-toast.d.ts → useToast.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-toast.js → useToast.js} +0 -0
- /package/nuxt/runtime/composables/{use-wait.d.ts → useWait.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-wait.js → useWait.js} +0 -0
- /package/types/modules/composables/{use-aos.d.ts → useAos.d.ts} +0 -0
- /package/types/modules/composables/{use-form-validator → useFormValidator}/config.d.ts +0 -0
- /package/types/modules/composables/{use-idle-timeout.d.ts → useIdleTimeout.d.ts} +0 -0
- /package/types/modules/composables/{use-instance-uniq-id.d.ts → useInstanceUniqId.d.ts} +0 -0
- /package/types/modules/composables/{use-reading-time.d.ts → useReadingTime.d.ts} +0 -0
- /package/types/modules/composables/{use-string-matching.d.ts → useStringMatching.d.ts} +0 -0
- /package/types/modules/composables/{use-swipe.d.ts → useSwipe.d.ts} +0 -0
- /package/types/modules/composables/{use-theme-handler.d.ts → useThemeHandler.d.ts} +0 -0
- /package/types/modules/composables/{use-timer.d.ts → useTimer.d.ts} +0 -0
- /package/types/modules/composables/{use-toast.d.ts → useToast.d.ts} +0 -0
- /package/types/modules/composables/{use-user-visibilty.d.ts → useUserVisibilty.d.ts} +0 -0
- /package/types/modules/composables/{use-wait.d.ts → useWait.d.ts} +0 -0
- /package/types/modules/composables/{use-window-size.d.ts → useWindowSize.d.ts} +0 -0
|
@@ -175,8 +175,10 @@ function Y({
|
|
|
175
175
|
componentName: r,
|
|
176
176
|
providedId: a
|
|
177
177
|
}) {
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
return $(() => {
|
|
179
|
+
var t;
|
|
180
|
+
return a ?? `${r}-${(t = N()) == null ? void 0 : t.uid}`;
|
|
181
|
+
});
|
|
180
182
|
}
|
|
181
183
|
const Z = {
|
|
182
184
|
class: "m-accordion",
|
|
@@ -272,7 +274,7 @@ const Z = {
|
|
|
272
274
|
))
|
|
273
275
|
]));
|
|
274
276
|
}
|
|
275
|
-
}), ae = /* @__PURE__ */ k(te, [["__scopeId", "data-v-
|
|
277
|
+
}), ae = /* @__PURE__ */ k(te, [["__scopeId", "data-v-45a9432f"]]);
|
|
276
278
|
export {
|
|
277
279
|
ae as default
|
|
278
280
|
};
|
package/components/MazBtn.d.ts
CHANGED
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
package/components/MazChart.d.ts
CHANGED
|
@@ -97,8 +97,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
};
|
|
98
98
|
}>>, {
|
|
99
99
|
options: Record<string, any>;
|
|
100
|
+
updateMode: "reset" | "resize" | "default" | "none" | "hide" | "show" | "active";
|
|
100
101
|
plugins: unknown[];
|
|
101
102
|
datasetIdKey: string;
|
|
102
|
-
updateMode: "reset" | "resize" | "default" | "none" | "hide" | "show" | "active";
|
|
103
103
|
}, {}>;
|
|
104
104
|
export default _default;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as n, getCurrentInstance as I, openBlock as f, createElementBlock as h, createElementVNode as c, defineComponent as S, useCssVars as N, ref as E, unref as i, normalizeClass as m, normalizeStyle as $, mergeProps as A, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as k, createCommentVNode as j } from "vue";
|
|
2
2
|
import './assets/MazCheckbox.css';function q({
|
|
3
3
|
componentName: r,
|
|
4
4
|
providedId: t
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return n(() => {
|
|
7
|
+
var o;
|
|
8
|
+
return t ?? `${r}-${(o = I()) == null ? void 0 : o.uid}`;
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
11
|
const F = {
|
|
10
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -51,19 +53,19 @@ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "dis
|
|
|
51
53
|
},
|
|
52
54
|
emits: ["update:model-value", "change", "blur", "focus"],
|
|
53
55
|
setup(r, { emit: t }) {
|
|
54
|
-
N((
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
56
|
+
N((e) => ({
|
|
57
|
+
"637b9682": z.value,
|
|
58
|
+
"7a7f3c21": y.value,
|
|
59
|
+
"4af0fd68": w.value,
|
|
60
|
+
"27d552aa": V.value
|
|
59
61
|
}));
|
|
60
|
-
const
|
|
62
|
+
const o = r, l = t, s = q({
|
|
61
63
|
componentName: "MazCheckbox",
|
|
62
|
-
providedId:
|
|
64
|
+
providedId: o.id
|
|
63
65
|
}), p = n(
|
|
64
|
-
() => typeof
|
|
66
|
+
() => typeof o.value != "boolean" && Array.isArray(o.modelValue) ? o.modelValue.includes(o.value) : typeof o.modelValue == "boolean" ? o.modelValue : !1
|
|
65
67
|
), y = n(() => {
|
|
66
|
-
switch (
|
|
68
|
+
switch (o.size) {
|
|
67
69
|
case "xl":
|
|
68
70
|
return "2.25rem";
|
|
69
71
|
case "lg":
|
|
@@ -78,7 +80,7 @@ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "dis
|
|
|
78
80
|
return "1.625rem";
|
|
79
81
|
}
|
|
80
82
|
}), g = n(() => {
|
|
81
|
-
switch (
|
|
83
|
+
switch (o.size) {
|
|
82
84
|
case "xl":
|
|
83
85
|
return "maz-text-2xl";
|
|
84
86
|
case "lg":
|
|
@@ -92,31 +94,31 @@ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "dis
|
|
|
92
94
|
default:
|
|
93
95
|
return "maz-text-lg";
|
|
94
96
|
}
|
|
95
|
-
}), z = n(() => `var(--maz-color-${
|
|
96
|
-
function x(
|
|
97
|
-
["Space"].includes(
|
|
97
|
+
}), z = n(() => `var(--maz-color-${o.color}-contrast)`), w = n(() => `var(--maz-color-${o.color})`), V = n(() => o.error ? "var(--maz-color-danger)" : o.warning ? "var(--maz-color-warning)" : o.success ? "var(--maz-color-success)" : ["black", "transparent"].includes(o.color) ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-alpha)`);
|
|
98
|
+
function x(e) {
|
|
99
|
+
["Space"].includes(e.code) && (e.preventDefault(), b(o.value ?? !o.modelValue));
|
|
98
100
|
}
|
|
99
|
-
function C(
|
|
100
|
-
return typeof
|
|
101
|
+
function C(e) {
|
|
102
|
+
return typeof e == "boolean" && (typeof o.modelValue == "boolean" || o.modelValue === void 0 || o.modelValue === null) ? !o.modelValue : Array.isArray(o.modelValue) && typeof e != "boolean" ? o.modelValue.includes(e) ? o.modelValue.filter((a) => a !== e) : [...o.modelValue, e] : [e];
|
|
101
103
|
}
|
|
102
|
-
function b(
|
|
103
|
-
const a = C(
|
|
104
|
+
function b(e) {
|
|
105
|
+
const a = C(e);
|
|
104
106
|
l("update:model-value", a), l("change", a);
|
|
105
107
|
}
|
|
106
108
|
const u = E();
|
|
107
|
-
function _(
|
|
109
|
+
function _(e) {
|
|
108
110
|
var a;
|
|
109
|
-
(a = u.value) == null || a.dispatchEvent(new Event("blur")), l("blur",
|
|
111
|
+
(a = u.value) == null || a.dispatchEvent(new Event("blur")), l("blur", e);
|
|
110
112
|
}
|
|
111
|
-
function B(
|
|
113
|
+
function B(e) {
|
|
112
114
|
var a;
|
|
113
|
-
(a = u.value) == null || a.dispatchEvent(new Event("focus")), l("focus",
|
|
115
|
+
(a = u.value) == null || a.dispatchEvent(new Event("focus")), l("focus", e);
|
|
114
116
|
}
|
|
115
|
-
return (
|
|
117
|
+
return (e, a) => (f(), h("label", {
|
|
116
118
|
for: i(s),
|
|
117
|
-
class: m(["m-checkbox", [{ "--disabled":
|
|
119
|
+
class: m(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
118
120
|
tabindex: "0",
|
|
119
|
-
style: $(
|
|
121
|
+
style: $(e.style),
|
|
120
122
|
role: "checkbox",
|
|
121
123
|
"aria-checked": p.value,
|
|
122
124
|
onKeydown: x,
|
|
@@ -128,14 +130,14 @@ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "dis
|
|
|
128
130
|
ref_key: "inputRef",
|
|
129
131
|
ref: u,
|
|
130
132
|
checked: p.value
|
|
131
|
-
},
|
|
133
|
+
}, e.$attrs, {
|
|
132
134
|
tabindex: "-1",
|
|
133
|
-
disabled:
|
|
134
|
-
name:
|
|
135
|
+
disabled: e.disabled,
|
|
136
|
+
name: e.name,
|
|
135
137
|
type: "checkbox",
|
|
136
138
|
onChange: a[0] || (a[0] = (d) => {
|
|
137
139
|
var v;
|
|
138
|
-
return b(
|
|
140
|
+
return b(e.value ?? ((v = d == null ? void 0 : d.target) == null ? void 0 : v.checked));
|
|
139
141
|
})
|
|
140
142
|
}), null, 16, U),
|
|
141
143
|
c("span", null, [
|
|
@@ -144,24 +146,24 @@ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "dis
|
|
|
144
146
|
}, null, 8, ["class"])
|
|
145
147
|
]),
|
|
146
148
|
c("div", G, [
|
|
147
|
-
D(
|
|
149
|
+
D(e.$slots, "default", { value: e.value }, () => [
|
|
148
150
|
R(
|
|
149
|
-
k(
|
|
151
|
+
k(e.label),
|
|
150
152
|
1
|
|
151
153
|
/* TEXT */
|
|
152
154
|
)
|
|
153
155
|
], !0),
|
|
154
|
-
|
|
156
|
+
e.hint ? (f(), h(
|
|
155
157
|
"span",
|
|
156
158
|
{
|
|
157
159
|
key: 0,
|
|
158
160
|
class: m(["m-checkbox__hint", {
|
|
159
|
-
"--error":
|
|
160
|
-
"--success":
|
|
161
|
-
"--warning":
|
|
161
|
+
"--error": e.error,
|
|
162
|
+
"--success": e.success,
|
|
163
|
+
"--warning": e.warning
|
|
162
164
|
}])
|
|
163
165
|
},
|
|
164
|
-
k(
|
|
166
|
+
k(e.hint),
|
|
165
167
|
3
|
|
166
168
|
/* TEXT, CLASS */
|
|
167
169
|
)) : j("v-if", !0)
|
|
@@ -169,11 +171,11 @@ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "dis
|
|
|
169
171
|
], 46, T));
|
|
170
172
|
}
|
|
171
173
|
}), L = (r, t) => {
|
|
172
|
-
const
|
|
174
|
+
const o = r.__vccOpts || r;
|
|
173
175
|
for (const [l, s] of t)
|
|
174
|
-
|
|
175
|
-
return
|
|
176
|
-
}, W = /* @__PURE__ */ L(J, [["__scopeId", "data-v-
|
|
176
|
+
o[l] = s;
|
|
177
|
+
return o;
|
|
178
|
+
}, W = /* @__PURE__ */ L(J, [["__scopeId", "data-v-a2b23999"]]);
|
|
177
179
|
export {
|
|
178
180
|
W as default
|
|
179
181
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as r, getCurrentInstance as S, defineComponent as _, useCssVars as $, useSlots as y, ref as b, watch as B, openBlock as p, createElementBlock as v, normalizeClass as P, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as m, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as k } from "vue";
|
|
2
2
|
import './assets/MazCircularProgressBar.css';function N({
|
|
3
3
|
componentName: a,
|
|
4
4
|
providedId: e
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return r(() => {
|
|
7
|
+
var s;
|
|
8
|
+
return e ?? `${a}-${(s = S()) == null ? void 0 : s.uid}`;
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
11
|
const V = { class: "maz-sr-only" }, D = {
|
|
10
12
|
key: 0,
|
|
@@ -44,20 +46,20 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
44
46
|
[
|
|
45
47
|
n("span", V, [
|
|
46
48
|
l(t.$slots, "prefix", {}, () => [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
i(
|
|
50
|
+
u(t.prefix),
|
|
49
51
|
1
|
|
50
52
|
/* TEXT */
|
|
51
53
|
)
|
|
52
54
|
], !0),
|
|
53
|
-
|
|
54
|
-
" " +
|
|
55
|
+
i(
|
|
56
|
+
" " + u(t.count) + " ",
|
|
55
57
|
1
|
|
56
58
|
/* TEXT */
|
|
57
59
|
),
|
|
58
60
|
l(t.$slots, "suffix", {}, () => [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
i(
|
|
62
|
+
u(t.suffix),
|
|
61
63
|
1
|
|
62
64
|
/* TEXT */
|
|
63
65
|
)
|
|
@@ -66,16 +68,16 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
66
68
|
f.value || d.value ? (p(), v("span", D, [
|
|
67
69
|
m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
68
70
|
l(t.$slots, "prefix", {}, () => [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
i(
|
|
72
|
+
u(t.prefix),
|
|
71
73
|
1
|
|
72
74
|
/* TEXT */
|
|
73
75
|
)
|
|
74
76
|
], !0),
|
|
75
77
|
m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
76
78
|
l(t.$slots, "suffix", {}, () => [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
i(
|
|
80
|
+
u(t.suffix),
|
|
79
81
|
1
|
|
80
82
|
/* TEXT */
|
|
81
83
|
)
|
|
@@ -112,8 +114,8 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
112
114
|
},
|
|
113
115
|
setup(a) {
|
|
114
116
|
$((o) => ({
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
+
"266a8742": C.value,
|
|
118
|
+
"1f7e595e": w.value
|
|
117
119
|
}));
|
|
118
120
|
const e = a, s = y(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = N({
|
|
119
121
|
componentName: "MazCircularProgressBar"
|
|
@@ -153,8 +155,8 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
153
155
|
fn: k(() => [
|
|
154
156
|
m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
155
157
|
l(o.$slots, "prefix", {}, () => [
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
i(
|
|
159
|
+
u(o.prefix),
|
|
158
160
|
1
|
|
159
161
|
/* TEXT */
|
|
160
162
|
)
|
|
@@ -167,8 +169,8 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
167
169
|
fn: k(() => [
|
|
168
170
|
m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
169
171
|
l(o.$slots, "suffix", {}, () => [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
i(
|
|
173
|
+
u(o.suffix),
|
|
172
174
|
1
|
|
173
175
|
/* TEXT */
|
|
174
176
|
)
|
|
@@ -215,7 +217,7 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
215
217
|
/* STYLE */
|
|
216
218
|
));
|
|
217
219
|
}
|
|
218
|
-
}), K = /* @__PURE__ */ z(F, [["__scopeId", "data-v-
|
|
220
|
+
}), K = /* @__PURE__ */ z(F, [["__scopeId", "data-v-5505af81"]]);
|
|
219
221
|
export {
|
|
220
222
|
K as default
|
|
221
223
|
};
|
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-DUxqd_DK.mjs").then((e) => e.M)), c = B(() => import("./chunks/x-mark-BP8zWe_C.mjs"));
|
|
132
132
|
return (e, t) => (r(), h(U, {
|
|
133
133
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
134
134
|
style: F({
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as Y, getCurrentInstance as Z, nextTick as x, defineComponent as ee, defineAsyncComponent as A, ref as I, watch as L, resolveComponent as oe, withDirectives as T, openBlock as v, createElementBlock as h, unref as u, normalizeClass as k, normalizeStyle as ne, createElementVNode as C, withModifiers as D, renderSlot as p, createTextVNode as E, toDisplayString as $, createCommentVNode as b, createVNode as U, mergeProps as te, withCtx as B, createBlock as N, Transition as le, Fragment as S, renderList as se, vShow as re } from "vue";
|
|
2
2
|
import './assets/MazDropdown.css';function ae({
|
|
3
3
|
componentName: t,
|
|
4
4
|
providedId: l
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return Y(() => {
|
|
7
|
+
var n;
|
|
8
|
+
return l ?? `${t}-${(n = Z()) == null ? void 0 : n.uid}`;
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
11
|
function ie(t, l) {
|
|
10
12
|
let n;
|
|
@@ -74,7 +76,7 @@ const de = {
|
|
|
74
76
|
},
|
|
75
77
|
emits: ["menuitem-clicked", "update:open"],
|
|
76
78
|
setup(t, { emit: l }) {
|
|
77
|
-
const n = t, c = l, w = A(() => import("./chunks/MazBtn-
|
|
79
|
+
const n = t, c = l, w = A(() => import("./chunks/MazBtn-DUxqd_DK.mjs").then((e) => e.M)), z = A(() => import("./chunks/chevron-down-CzMH-gFW.mjs")), f = ae({
|
|
78
80
|
componentName: "MazDropdown",
|
|
79
81
|
providedId: n.id
|
|
80
82
|
}), a = I(n.open), r = I(), m = ie((e) => {
|
package/components/MazInput.mjs
CHANGED
|
@@ -19,6 +19,15 @@ export interface Props {
|
|
|
19
19
|
placeholder?: string;
|
|
20
20
|
/** The style of the input date */
|
|
21
21
|
inputDateStyle?: Intl.DateTimeFormatOptions;
|
|
22
|
+
/**
|
|
23
|
+
* The transformer of the input date
|
|
24
|
+
* @type {(payload: { formattedDate?: string; value?: PickerValue; locale: string }) => string}
|
|
25
|
+
*/
|
|
26
|
+
inputDateTransformer?: (payload: {
|
|
27
|
+
formattedDate?: string;
|
|
28
|
+
value?: PickerValue;
|
|
29
|
+
locale: string;
|
|
30
|
+
}) => string;
|
|
22
31
|
/** The locale of the component */
|
|
23
32
|
locale?: string;
|
|
24
33
|
/** If true, the header will be hidden */
|
|
@@ -79,6 +88,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
79
88
|
inputDateStyle: () => {
|
|
80
89
|
dateStyle: string;
|
|
81
90
|
};
|
|
91
|
+
inputDateTransformer: undefined;
|
|
82
92
|
locale: undefined;
|
|
83
93
|
noHeader: boolean;
|
|
84
94
|
disabled: boolean;
|
|
@@ -123,6 +133,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
123
133
|
inputDateStyle: () => {
|
|
124
134
|
dateStyle: string;
|
|
125
135
|
};
|
|
136
|
+
inputDateTransformer: undefined;
|
|
126
137
|
locale: undefined;
|
|
127
138
|
noHeader: boolean;
|
|
128
139
|
disabled: boolean;
|
|
@@ -183,6 +194,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
183
194
|
shortcut: string;
|
|
184
195
|
noHeader: boolean;
|
|
185
196
|
inputDateStyle: Intl.DateTimeFormatOptions;
|
|
197
|
+
inputDateTransformer: (payload: {
|
|
198
|
+
formattedDate?: string;
|
|
199
|
+
value?: PickerValue;
|
|
200
|
+
locale: string;
|
|
201
|
+
}) => string;
|
|
186
202
|
autoClose: boolean;
|
|
187
203
|
customElementSelector: string;
|
|
188
204
|
pickerPosition: Position;
|
package/components/MazPicker.mjs
CHANGED
package/components/MazRadio.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as t, getCurrentInstance as I, defineComponent as B, useCssVars as _, ref as C, openBlock as m, createElementBlock as v, unref as f, normalizeClass as p, normalizeStyle as V, createElementVNode as i, mergeProps as $, createCommentVNode as h, renderSlot as E, createTextVNode as R, toDisplayString as b, pushScopeId as N, popScopeId as M } from "vue";
|
|
2
2
|
import './assets/MazRadio.css';function D({
|
|
3
3
|
componentName: o,
|
|
4
4
|
providedId: s
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return t(() => {
|
|
7
|
+
var a;
|
|
8
|
+
return s ?? `${o}-${(a = I()) == null ? void 0 : a.uid}`;
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
|
-
const T = (o) => (
|
|
11
|
+
const T = (o) => (N("data-v-bc626570"), o = o(), M(), o), q = ["for", "aria-checked"], F = ["id", "value", "disabled", "name", "checked"], H = /* @__PURE__ */ T(() => /* @__PURE__ */ i(
|
|
10
12
|
"span",
|
|
11
13
|
null,
|
|
12
14
|
[
|
|
@@ -34,13 +36,13 @@ const T = (o) => (R("data-v-15593cd2"), o = o(), M(), o), q = ["for", "aria-chec
|
|
|
34
36
|
},
|
|
35
37
|
emits: ["update:model-value", "change", "blur", "focus"],
|
|
36
38
|
setup(o, { emit: s }) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
39
|
+
_((e) => ({
|
|
40
|
+
"0596def1": g.value,
|
|
41
|
+
"3efb8498": y.value,
|
|
42
|
+
e93a144a: z.value
|
|
41
43
|
}));
|
|
42
44
|
const a = o, n = s, l = D({
|
|
43
|
-
componentName: "
|
|
45
|
+
componentName: "MazRadio",
|
|
44
46
|
providedId: a.id
|
|
45
47
|
}), d = t(() => a.modelValue === a.value), g = t(() => {
|
|
46
48
|
switch (a.size) {
|
|
@@ -64,12 +66,12 @@ const T = (o) => (R("data-v-15593cd2"), o = o(), M(), o), q = ["for", "aria-chec
|
|
|
64
66
|
function c() {
|
|
65
67
|
n("update:model-value", a.value), n("change", a.value);
|
|
66
68
|
}
|
|
67
|
-
const u =
|
|
68
|
-
function
|
|
69
|
+
const u = C();
|
|
70
|
+
function S(e) {
|
|
69
71
|
var r;
|
|
70
72
|
(r = u.value) == null || r.dispatchEvent(new Event("blur")), n("blur", e);
|
|
71
73
|
}
|
|
72
|
-
function
|
|
74
|
+
function k(e) {
|
|
73
75
|
var r;
|
|
74
76
|
(r = u.value) == null || r.dispatchEvent(new Event("focus")), n("focus", e);
|
|
75
77
|
}
|
|
@@ -80,8 +82,8 @@ const T = (o) => (R("data-v-15593cd2"), o = o(), M(), o), q = ["for", "aria-chec
|
|
|
80
82
|
role: "radio",
|
|
81
83
|
style: V(e.style),
|
|
82
84
|
"aria-checked": d.value,
|
|
83
|
-
onBlur:
|
|
84
|
-
onFocus:
|
|
85
|
+
onBlur: S,
|
|
86
|
+
onFocus: k,
|
|
85
87
|
onKeydown: w
|
|
86
88
|
}, [
|
|
87
89
|
i("input", $({
|
|
@@ -108,7 +110,7 @@ const T = (o) => (R("data-v-15593cd2"), o = o(), M(), o), q = ["for", "aria-chec
|
|
|
108
110
|
isSelected: d.value,
|
|
109
111
|
value: e.value
|
|
110
112
|
}, () => [
|
|
111
|
-
|
|
113
|
+
R(
|
|
112
114
|
b(e.label),
|
|
113
115
|
1
|
|
114
116
|
/* TEXT */
|
|
@@ -136,7 +138,7 @@ const T = (o) => (R("data-v-15593cd2"), o = o(), M(), o), q = ["for", "aria-chec
|
|
|
136
138
|
for (const [n, l] of s)
|
|
137
139
|
a[n] = l;
|
|
138
140
|
return a;
|
|
139
|
-
}, j = /* @__PURE__ */ O(L, [["__scopeId", "data-v-
|
|
141
|
+
}, j = /* @__PURE__ */ O(L, [["__scopeId", "data-v-bc626570"]]);
|
|
140
142
|
export {
|
|
141
143
|
j as default
|
|
142
144
|
};
|
|
@@ -176,7 +176,7 @@ import './assets/MazRadioButtons.css';const O = { class: "m-radio-buttons" }, T
|
|
|
176
176
|
for (const [s, m] of f)
|
|
177
177
|
l[s] = m;
|
|
178
178
|
return l;
|
|
179
|
-
}, j = /* @__PURE__ */ A(W, [["__scopeId", "data-v-
|
|
179
|
+
}, j = /* @__PURE__ */ A(W, [["__scopeId", "data-v-67a2dc18"]]);
|
|
180
180
|
export {
|
|
181
181
|
j as default
|
|
182
182
|
};
|
package/components/MazSelect.mjs
CHANGED