maz-ui 3.36.3 → 3.36.5
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/README.md +21 -0
- package/components/MazAccordion.mjs +3 -3
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.mjs +9 -9
- package/components/MazBadge.mjs +6 -6
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +8 -8
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +3 -3
- package/components/MazDialog.d.ts +47 -59
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +4 -4
- package/components/MazDropdown.mjs +4 -4
- package/components/MazDropzone.mjs +1 -1
- package/components/MazFullscreenLoader.mjs +7 -7
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +3 -3
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLoadingBar.mjs +5 -5
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +3 -3
- package/components/MazRadioButtons.mjs +3 -3
- package/components/MazReadingProgressBar.mjs +3 -3
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +3 -3
- package/components/MazSpinner.mjs +9 -9
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +3 -3
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +9 -9
- package/components/MazTableRow.mjs +6 -6
- package/components/MazTableTitle.mjs +9 -9
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContentItem.mjs +6 -6
- package/components/MazTextarea.mjs +3 -3
- package/components/MazTransitionExpand.mjs +10 -10
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/chunks/{MazAvatar-Dv5LXKDM.mjs → MazAvatar-Boh6pNlV.mjs} +4 -4
- package/components/chunks/{MazBadge-BDw3XOhT.mjs → MazBadge-wavaUKdz.mjs} +10 -10
- package/components/chunks/{MazBottomSheet-BBrSS82i.mjs → MazBottomSheet-BMNawj3w.mjs} +4 -4
- package/components/chunks/{MazBtn-DE96LeuR.mjs → MazBtn-BswXqHaD.mjs} +10 -10
- package/components/chunks/{MazBtn-U_V3Ywa7.mjs → MazBtn-CPZWzKkn.mjs} +10 -10
- package/components/chunks/{MazBtn-DOVfeoo4.mjs → MazBtn-CckXJIsu.mjs} +10 -10
- package/components/chunks/{MazBtn-BuKj2FC6.mjs → MazBtn-CsMbZM5G.mjs} +4 -4
- package/components/chunks/{MazBtn-DlN53_hE.mjs → MazBtn-DG2SWjXs.mjs} +10 -10
- package/components/chunks/{MazBtn-CvXujRc7.mjs → MazBtn-DOaxPecG.mjs} +10 -10
- package/components/chunks/{MazBtn-B4pnS706.mjs → MazBtn-Dx9hPzw1.mjs} +10 -10
- package/components/chunks/{MazBtn-MuVROF9V.mjs → MazBtn-DxaGzvu8.mjs} +8 -8
- package/components/chunks/{MazBtn-DZiMHU6q.mjs → MazBtn-MGs6yS4o.mjs} +10 -10
- package/components/chunks/MazBtn-XFcnyxco.mjs +151 -0
- package/components/chunks/MazBtn-YdtGlLBB.mjs +151 -0
- package/components/chunks/{MazBtn-DQf0voll.mjs → MazBtn-fyXKDq3l.mjs} +10 -10
- package/components/chunks/{MazCard-BF5zuDCX.mjs → MazCard-BjExY3bp.mjs} +4 -4
- package/components/chunks/{MazCarousel-CwxTOUqt.mjs → MazCarousel-CbfNBbFI.mjs} +9 -9
- package/components/chunks/{MazCheckbox-CEH7cTwM.mjs → MazCheckbox-BzLvnzJB.mjs} +4 -4
- package/components/chunks/{MazCheckbox-RBgGXFPZ.mjs → MazCheckbox-fA_kcFjE.mjs} +4 -4
- package/components/chunks/MazDialog-A7etHSfV.mjs +244 -0
- package/components/chunks/MazDialogPromise-DI7VdgB4.mjs +413 -0
- package/components/chunks/{MazDropzone-BsZde5vG.mjs → MazDropzone-C_8mRUbK.mjs} +20 -20
- package/components/chunks/{MazGallery-CftFYr2G.mjs → MazGallery-C4xZWA0n.mjs} +5 -5
- package/components/chunks/{MazGallery-BQbU7_HM.mjs → MazGallery-C9rnBI5A.mjs} +4 -4
- package/components/chunks/{MazIcon-B777ztdl.mjs → MazIcon-BGGDj0MT.mjs} +1 -1
- package/components/chunks/{MazInput-D0TWjPBi.mjs → MazInput-J05wk_lU.mjs} +4 -4
- package/components/chunks/{MazInputNumber-DQHieHlW.mjs → MazInputNumber-BAu9PaCI.mjs} +4 -4
- package/components/chunks/{MazInputPrice-Cxl1Jyt_.mjs → MazInputPrice-B28-Lj87.mjs} +4 -4
- package/components/chunks/{MazInputTags-ei2hsVtZ.mjs → MazInputTags-D10bYWXM.mjs} +4 -4
- package/components/chunks/{MazLazyImg-CB-4uH3q.mjs → MazLazyImg-CGO_LMO3.mjs} +4 -4
- package/components/chunks/{MazLazyImg-BCfYlc7d.mjs → MazLazyImg-DFSpSeWW.mjs} +5 -5
- package/components/chunks/{MazPagination-BOia4I5Z.mjs → MazPagination-B0gD1QDh.mjs} +23 -23
- package/components/chunks/{MazPhoneNumberInput-DswH2fTx.mjs → MazPhoneNumberInput-CRQeNaSb.mjs} +5 -5
- package/components/chunks/{MazPicker-0BySEpq3.mjs → MazPicker-DGamQxih.mjs} +19 -19
- package/components/chunks/{MazPickerCalendar-M6_osHAP.mjs → MazPickerCalendar-Pm-t0KTs.mjs} +6 -6
- package/components/chunks/{MazPickerHeader-D-6gwiN9.mjs → MazPickerHeader-sFFkosN-.mjs} +4 -4
- package/components/chunks/{MazPickerMonthSwitcher-B_kJM06G.mjs → MazPickerMonthSwitcher-D1hYlmLk.mjs} +5 -5
- package/components/chunks/{MazPickerShortcuts-C-YOCADE.mjs → MazPickerShortcuts-feuenmoK.mjs} +5 -5
- package/components/chunks/{MazPickerTime-gWRhtXec.mjs → MazPickerTime-CRtzrTUL.mjs} +15 -15
- package/components/chunks/{MazPickerYearSwitcher-B346Biv4.mjs → MazPickerYearSwitcher-BylOKn7o.mjs} +6 -6
- package/components/chunks/{MazPullToRefresh-86fYEA6I.mjs → MazPullToRefresh-DWbmwlzV.mjs} +4 -4
- package/components/chunks/{MazSelect-D3ti4T0X.mjs → MazSelect-BEHGM8OW.mjs} +46 -46
- package/components/chunks/{MazSpinner-DBmPB-lg.mjs → MazSpinner-3gllxAK7.mjs} +4 -4
- package/components/chunks/{MazSpinner-1bJd0koH.mjs → MazSpinner-BD8VbddP.mjs} +4 -4
- package/components/chunks/{MazSpinner-C9epyQPE.mjs → MazSpinner-BNACOwlc.mjs} +4 -4
- package/components/chunks/{MazSpinner-CAJ4x6v1.mjs → MazSpinner-Bh9gGZx3.mjs} +4 -4
- package/components/chunks/MazSpinner-BqNR1iPX.mjs +38 -0
- package/components/chunks/{MazSpinner-CJw_tVej.mjs → MazSpinner-Bqo4IjiS.mjs} +4 -4
- package/components/chunks/{MazSpinner-BVnAAf_I.mjs → MazSpinner-Bsk-xacl.mjs} +4 -4
- package/components/chunks/{MazSpinner-Ciltd2Ol.mjs → MazSpinner-C0BL7-HZ.mjs} +4 -4
- package/components/chunks/MazSpinner-C75WMoEA.mjs +38 -0
- package/components/chunks/MazSpinner-C9JQyaY3.mjs +38 -0
- package/components/chunks/{MazSpinner-yQqsC2ED.mjs → MazSpinner-CDiznJFi.mjs} +4 -4
- package/components/chunks/{MazSpinner-5mIQ-J1u.mjs → MazSpinner-CKT1W2Oy.mjs} +4 -4
- package/components/chunks/{MazSpinner-Bxelx5NH.mjs → MazSpinner-CdfIzsfY.mjs} +4 -4
- package/components/chunks/{MazSpinner-lvKqkKry.mjs → MazSpinner-CfA_KEZT.mjs} +9 -9
- package/components/chunks/MazSpinner-ChJ-mLvy.mjs +38 -0
- package/components/chunks/MazSpinner-ClQ29NaJ.mjs +38 -0
- package/components/chunks/{MazSpinner-B0bJbNaN.mjs → MazSpinner-DDtJ4UWS.mjs} +4 -4
- package/components/chunks/MazSpinner-DJkziC4O.mjs +38 -0
- package/components/chunks/MazSpinner-DabAQQ4C.mjs +38 -0
- package/components/chunks/MazSpinner-DwxKHGCm.mjs +38 -0
- package/components/chunks/{MazSpinner-BLbqePcG.mjs → MazSpinner-G58l31lm.mjs} +4 -4
- package/components/chunks/{MazSpinner-Dtj8OoQj.mjs → MazSpinner-UyeLQ_ek.mjs} +4 -4
- package/components/chunks/{MazStepper-BRm66qQP.mjs → MazStepper-BrVzcmp3.mjs} +4 -4
- package/components/chunks/{MazTable-CfRjndEs.mjs → MazTable-DVRhDOZU.mjs} +5 -5
- package/components/chunks/{MazTabsBar-ELc9skwi.mjs → MazTabsBar-Cg8IYSIn.mjs} +24 -24
- package/components/chunks/{MazTransitionExpand-ChDxDDLP.mjs → MazTransitionExpand-DzJ308Is.mjs} +4 -4
- package/components/chunks/{MazTransitionExpand-1uUHrFQF.mjs → MazTransitionExpand-Qi1Ryuww.mjs} +4 -4
- package/modules/chunks/{MazBtn-CgYs8OO8.mjs → MazBtn-DozKI9dn.mjs} +10 -10
- package/modules/chunks/MazBtn-JWfN8rXF.cjs +9 -0
- package/modules/chunks/{MazIcon-BD_757YZ.mjs → MazIcon-B4kH0SUh.mjs} +1 -1
- package/modules/chunks/{MazIcon-BbQ5j7zo.cjs → MazIcon-Bq1yJwIg.cjs} +1 -1
- package/modules/chunks/MazSpinner-CdnkRjEs.cjs +1 -0
- package/modules/chunks/{MazSpinner-Co-RRosN.mjs → MazSpinner-Cybrmig7.mjs} +4 -4
- package/modules/chunks/{index-COYUjx_2.cjs → index-C-6coSJq.cjs} +2 -2
- package/modules/chunks/{index-VOE_fh73.mjs → index-CkvDEML9.mjs} +48 -48
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/nuxt/runtime/plugins/toaster.mjs +1 -1
- package/nuxt/runtime/plugins/wait.mjs +1 -1
- package/package.json +18 -18
- package/types/components/MazDialog.vue.d.ts +47 -59
- package/components/chunks/MazBtn-kLavxmjX.mjs +0 -151
- package/components/chunks/MazBtn-xmWwJAcK.mjs +0 -151
- package/components/chunks/MazDialog-CW8YIBc1.mjs +0 -254
- package/components/chunks/MazDialogPromise-Cd5B1cpr.mjs +0 -423
- package/components/chunks/MazSpinner-CELMAnDm.mjs +0 -38
- package/components/chunks/MazSpinner-CISWLcK7.mjs +0 -38
- package/components/chunks/MazSpinner-Cq67KMlY.mjs +0 -38
- package/components/chunks/MazSpinner-D1E6Z8XE.mjs +0 -38
- package/components/chunks/MazSpinner-DaehD0ZC.mjs +0 -38
- package/components/chunks/MazSpinner-Dl82qu_a.mjs +0 -38
- package/components/chunks/MazSpinner-Pgu1cz7Q.mjs +0 -38
- package/components/chunks/MazSpinner-f-abl7KS.mjs +0 -38
- package/modules/chunks/MazBtn-BmgfecRj.cjs +0 -9
- package/modules/chunks/MazSpinner-CrLrbucF.cjs +0 -1
package/README.md
CHANGED
|
@@ -33,6 +33,27 @@
|
|
|
33
33
|
npm install maz-ui
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
### Nuxt Module
|
|
37
|
+
|
|
38
|
+
[Documentation](https://maz-ui.com/guide/nuxt)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install maz-ui
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
// nuxt.config.js
|
|
46
|
+
|
|
47
|
+
export default defineNuxtConfig({
|
|
48
|
+
modules: ['maz-ui/nuxt'],
|
|
49
|
+
mazUi: {
|
|
50
|
+
// Options
|
|
51
|
+
},
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
All options of the module are available [here](https://maz-ui.com/guide/nuxt)
|
|
56
|
+
|
|
36
57
|
### @mazui/cli
|
|
37
58
|
|
|
38
59
|
[Documentation & Commands](https://maz-ui.com/guide/cli)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazAccordion.css';
|
|
2
2
|
import { defineComponent as b, useCssVars as z, openBlock as v, createBlock as S, TransitionGroup as M, withCtx as y, renderSlot as m, nextTick as k, ref as $, computed as f, onMounted as I, onUnmounted as B, createElementBlock as g, normalizeClass as x, normalizeStyle as w, createElementVNode as p, getCurrentInstance as V, useSlots as O, Fragment as A, renderList as L, unref as _, createVNode as E, withDirectives as T, vShow as D } from "vue";
|
|
3
3
|
const N = /* @__PURE__ */ b({
|
|
4
4
|
__name: "MazTransitionExpand",
|
|
@@ -240,7 +240,7 @@ const Y = { render: X }, H = ({
|
|
|
240
240
|
))
|
|
241
241
|
]));
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), at = /* @__PURE__ */ C(tt, [["__scopeId", "data-v-1ca5e1a5"]]);
|
|
244
244
|
export {
|
|
245
|
-
|
|
245
|
+
at as default
|
|
246
246
|
};
|
package/components/MazAvatar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazBackdrop.css';
|
|
2
2
|
import { defineComponent as A, ref as L, onMounted as V, watch as D, openBlock as p, createBlock as N, Teleport as S, createVNode as h, Transition as M, withCtx as P, createElementBlock as T, normalizeClass as f, createElementVNode as k, withModifiers as g, mergeProps as w, renderSlot as O, createCommentVNode as K } from "vue";
|
|
3
|
-
const b = "--backdrop-present",
|
|
3
|
+
const b = "--backdrop-present", F = /* @__PURE__ */ A({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "MazBackdrop",
|
|
6
6
|
props: {
|
|
@@ -33,29 +33,29 @@ const b = "--backdrop-present", _ = /* @__PURE__ */ A({
|
|
|
33
33
|
function i() {
|
|
34
34
|
t("update:model-value", !1), t("close"), l();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function u() {
|
|
37
37
|
o.persistent || a();
|
|
38
38
|
}
|
|
39
39
|
function s(e) {
|
|
40
40
|
!o.noCloseOnEscKey && e.key === "Escape" && !o.persistent && a();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function m() {
|
|
43
43
|
E(), document.addEventListener("keyup", s, !1);
|
|
44
44
|
}
|
|
45
45
|
function l() {
|
|
46
46
|
document.removeEventListener("keyup", s), B();
|
|
47
47
|
}
|
|
48
48
|
return V(() => {
|
|
49
|
-
o.modelValue ?
|
|
49
|
+
o.modelValue ? m() : l();
|
|
50
50
|
}), D(
|
|
51
51
|
() => o.modelValue,
|
|
52
52
|
(e) => {
|
|
53
|
-
n.value = e, e ?
|
|
53
|
+
n.value = e, e ? m() : l();
|
|
54
54
|
}
|
|
55
55
|
), v({
|
|
56
56
|
onBackdropAnimationEnter: c,
|
|
57
57
|
onBackdropAnimationLeave: i,
|
|
58
|
-
onBackdropClicked:
|
|
58
|
+
onBackdropClicked: u,
|
|
59
59
|
close: a,
|
|
60
60
|
present: n,
|
|
61
61
|
toggleModal: d,
|
|
@@ -82,7 +82,7 @@ const b = "--backdrop-present", _ = /* @__PURE__ */ A({
|
|
|
82
82
|
{
|
|
83
83
|
class: f(["m-backdrop-overlay", { "--disabled": e.persistent }]),
|
|
84
84
|
tabindex: "-1",
|
|
85
|
-
onClick: g(
|
|
85
|
+
onClick: g(u, ["self"])
|
|
86
86
|
},
|
|
87
87
|
null,
|
|
88
88
|
2
|
|
@@ -114,5 +114,5 @@ const b = "--backdrop-present", _ = /* @__PURE__ */ A({
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
export {
|
|
117
|
-
|
|
117
|
+
F as default
|
|
118
118
|
};
|
package/components/MazBadge.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as n, openBlock as r, createElementBlock as s, normalizeClass as
|
|
1
|
+
import './assets/MazBadge.css';
|
|
2
|
+
import { defineComponent as n, openBlock as r, createElementBlock as s, normalizeClass as d, normalizeStyle as p, renderSlot as u } from "vue";
|
|
3
3
|
const f = /* @__PURE__ */ n({
|
|
4
4
|
__name: "MazBadge",
|
|
5
5
|
props: {
|
|
@@ -14,12 +14,12 @@ const f = /* @__PURE__ */ n({
|
|
|
14
14
|
return (e, a) => (r(), s(
|
|
15
15
|
"span",
|
|
16
16
|
{
|
|
17
|
-
class:
|
|
17
|
+
class: d(["m-badge", [
|
|
18
18
|
`--${e.color}`,
|
|
19
19
|
{ "--outline": e.outline, "--pastel": e.pastel, "--nowrap": e.nowrap },
|
|
20
20
|
`--rounded-${e.roundedSize}`
|
|
21
21
|
]]),
|
|
22
|
-
style:
|
|
22
|
+
style: p({ fontSize: e.size })
|
|
23
23
|
},
|
|
24
24
|
[
|
|
25
25
|
u(e.$slots, "default", {}, void 0, !0)
|
|
@@ -33,7 +33,7 @@ const f = /* @__PURE__ */ n({
|
|
|
33
33
|
for (const [t, l] of e)
|
|
34
34
|
a[t] = l;
|
|
35
35
|
return a;
|
|
36
|
-
},
|
|
36
|
+
}, c = /* @__PURE__ */ i(f, [["__scopeId", "data-v-a74e7e9a"]]);
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
c as default
|
|
39
39
|
};
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as _, useCssVars as b, ref as
|
|
1
|
+
import './assets/MazCardSpotlight.css';
|
|
2
|
+
import { defineComponent as _, useCssVars as b, ref as m, computed as p, onMounted as h, onUnmounted as k, openBlock as C, createElementBlock as E, normalizeClass as g, normalizeStyle as v, createElementVNode as c, renderSlot as y } from "vue";
|
|
3
3
|
const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
|
|
4
4
|
__name: "MazCardSpotlight",
|
|
5
5
|
props: {
|
|
@@ -11,11 +11,11 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
|
|
|
11
11
|
"47fd60d9": i.value,
|
|
12
12
|
"9d8d754a": d.value
|
|
13
13
|
}));
|
|
14
|
-
const a = l, t =
|
|
14
|
+
const a = l, t = m(), n = m();
|
|
15
15
|
function r(e) {
|
|
16
|
-
var
|
|
17
|
-
const o = (
|
|
18
|
-
o && ((
|
|
16
|
+
var u, s, f;
|
|
17
|
+
const o = (u = n.value) == null ? void 0 : u.getBoundingClientRect();
|
|
18
|
+
o && ((f = (s = t.value) == null ? void 0 : s.animate) == null || f.call(
|
|
19
19
|
s,
|
|
20
20
|
[
|
|
21
21
|
{
|
|
@@ -78,7 +78,7 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
|
|
|
78
78
|
for (const [n, r] of a)
|
|
79
79
|
t[n] = r;
|
|
80
80
|
return t;
|
|
81
|
-
},
|
|
81
|
+
}, S = /* @__PURE__ */ $(B, [["__scopeId", "data-v-01b19fcf"]]);
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
S as default
|
|
84
84
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazCheckbox.css';
|
|
2
2
|
import { computed as r, openBlock as b, createElementBlock as k, createElementVNode as u, defineComponent as w, useCssVars as C, getCurrentInstance as I, unref as d, normalizeClass as p, normalizeStyle as S, mergeProps as B, createVNode as A, renderSlot as N } from "vue";
|
|
3
3
|
const $ = ({
|
|
4
4
|
componentName: t,
|
|
@@ -139,7 +139,7 @@ const D = { render: q }, H = ["for", "aria-checked"], K = ["id", "checked", "dis
|
|
|
139
139
|
for (const [e, c] of a)
|
|
140
140
|
n[e] = c;
|
|
141
141
|
return n;
|
|
142
|
-
},
|
|
142
|
+
}, F = /* @__PURE__ */ P(O, [["__scopeId", "data-v-41945bef"]]);
|
|
143
143
|
export {
|
|
144
|
-
|
|
144
|
+
F as default
|
|
145
145
|
};
|
|
@@ -1,75 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
title
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: undefined;
|
|
6
|
-
};
|
|
1
|
+
export type Props = {
|
|
2
|
+
/** Title of the modal in header */
|
|
3
|
+
title?: string;
|
|
7
4
|
/** Remove the close button in header */
|
|
8
|
-
noClose
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
5
|
+
noClose?: boolean;
|
|
12
6
|
/** Modal's width */
|
|
13
|
-
width
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
7
|
+
width?: string;
|
|
17
8
|
/** Modal's max-width */
|
|
18
|
-
maxWidth
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
9
|
+
maxWidth?: string;
|
|
22
10
|
/** Modal's max-height */
|
|
23
|
-
maxHeight
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
11
|
+
maxHeight?: string;
|
|
27
12
|
/** Modal's content becomes scrollable - warning: a overflow is applied */
|
|
28
|
-
scrollable
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
scrollable?: boolean;
|
|
14
|
+
/** Persistent dialog (not closable by clicking outside and remove close button) */
|
|
15
|
+
persistent?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
18
|
+
title: undefined;
|
|
19
|
+
noClose: boolean;
|
|
20
|
+
width: string;
|
|
21
|
+
maxWidth: string;
|
|
22
|
+
maxHeight: string;
|
|
23
|
+
scrollable: boolean;
|
|
24
|
+
persistent: boolean;
|
|
25
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
26
|
close: (...args: any[]) => void;
|
|
34
27
|
open: (...args: any[]) => void;
|
|
35
28
|
"update:model-value": (...args: any[]) => void;
|
|
36
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
47
|
-
/** Modal's width */
|
|
48
|
-
width: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
/** Modal's max-width */
|
|
53
|
-
maxWidth: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
|
-
/** Modal's max-height */
|
|
58
|
-
maxHeight: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
/** Modal's content becomes scrollable - warning: a overflow is applied */
|
|
63
|
-
scrollable: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
}>> & {
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
30
|
+
title: undefined;
|
|
31
|
+
noClose: boolean;
|
|
32
|
+
width: string;
|
|
33
|
+
maxWidth: string;
|
|
34
|
+
maxHeight: string;
|
|
35
|
+
scrollable: boolean;
|
|
36
|
+
persistent: boolean;
|
|
37
|
+
}>>> & {
|
|
68
38
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
69
39
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
70
40
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
71
41
|
}, {
|
|
72
42
|
title: string;
|
|
43
|
+
persistent: boolean;
|
|
73
44
|
width: string;
|
|
74
45
|
noClose: boolean;
|
|
75
46
|
maxWidth: string;
|
|
@@ -88,8 +59,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
88
59
|
}): any;
|
|
89
60
|
}>;
|
|
90
61
|
export default _default;
|
|
62
|
+
type __VLS_WithDefaults<P, D> = {
|
|
63
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
|
+
default: D[K];
|
|
65
|
+
}> : P[K];
|
|
66
|
+
};
|
|
67
|
+
type __VLS_Prettify<T> = {
|
|
68
|
+
[K in keyof T]: T[K];
|
|
69
|
+
} & {};
|
|
91
70
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
92
71
|
new (): {
|
|
93
72
|
$slots: S;
|
|
94
73
|
};
|
|
95
74
|
};
|
|
75
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
76
|
+
type __VLS_TypePropsToOption<T> = {
|
|
77
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
78
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
79
|
+
} : {
|
|
80
|
+
type: import('vue').PropType<T[K]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
};
|
package/components/MazDialog.mjs
CHANGED
package/components/MazDrawer.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazDrawer.css';
|
|
2
2
|
import { defineComponent as h, ref as S, onMounted as g, watch as N, openBlock as d, createBlock as D, Teleport as T, createVNode as v, Transition as O, withCtx as k, createElementBlock as L, normalizeClass as i, createElementVNode as s, withModifiers as P, mergeProps as K, renderSlot as b, createCommentVNode as M, defineAsyncComponent as z, normalizeStyle as F, createTextVNode as q, toDisplayString as I, unref as A } from "vue";
|
|
3
3
|
const V = "--backdrop-present", U = /* @__PURE__ */ h({
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -115,7 +115,7 @@ const V = "--backdrop-present", U = /* @__PURE__ */ h({
|
|
|
115
115
|
}), X = { class: "m-drawer-header__title" }, j = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "m-drawer-header__close"
|
|
118
|
-
}, G = { class: "m-drawer-body" },
|
|
118
|
+
}, G = { class: "m-drawer-body" }, J = /* @__PURE__ */ h({
|
|
119
119
|
__name: "MazDrawer",
|
|
120
120
|
props: {
|
|
121
121
|
title: { default: void 0 },
|
|
@@ -126,7 +126,7 @@ const V = "--backdrop-present", U = /* @__PURE__ */ h({
|
|
|
126
126
|
},
|
|
127
127
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
128
128
|
setup(C) {
|
|
129
|
-
const c = z(() => import("./chunks/MazBtn-
|
|
129
|
+
const c = z(() => import("./chunks/MazBtn-CsMbZM5G.mjs").then((e) => e.M)), m = z(() => import("./chunks/x-mark-BP8zWe_C.mjs"));
|
|
130
130
|
return (e, n) => (d(), D(U, {
|
|
131
131
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
132
132
|
style: F({
|
|
@@ -190,5 +190,5 @@ const V = "--backdrop-present", U = /* @__PURE__ */ h({
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
export {
|
|
193
|
-
|
|
193
|
+
J as default
|
|
194
194
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazDropdown.css';
|
|
2
2
|
import { computed as Y, nextTick as Z, defineComponent as x, defineAsyncComponent as O, getCurrentInstance as ee, ref as I, watch as L, resolveComponent as oe, withDirectives as T, openBlock as b, createElementBlock as h, unref as u, normalizeClass as y, normalizeStyle as ne, createElementVNode as D, withModifiers as E, renderSlot as p, createTextVNode as $, toDisplayString as M, createCommentVNode as k, createVNode as U, mergeProps as te, withCtx as A, createBlock as N, Transition as le, Fragment as S, renderList as se, vShow as ae } from "vue";
|
|
3
3
|
const re = ({
|
|
4
4
|
componentName: n,
|
|
@@ -33,7 +33,7 @@ const B = "__vue_click_away__", F = () => document.ontouchstart === null ? "touc
|
|
|
33
33
|
mounted: V,
|
|
34
34
|
updated: ue,
|
|
35
35
|
unmounted: R
|
|
36
|
-
}, ce = ["id"], pe = ["aria-expanded"], fe = ["id"], me = { class: "button-span" }, ve = ["target", "href"], be = ["onClick"],
|
|
36
|
+
}, ce = ["id"], pe = ["aria-expanded"], fe = ["id"], me = { class: "button-span" }, ve = ["target", "href"], be = ["onClick"], ye = /* @__PURE__ */ x({
|
|
37
37
|
inheritAttrs: !1,
|
|
38
38
|
__name: "MazDropdown",
|
|
39
39
|
props: {
|
|
@@ -63,7 +63,7 @@ const B = "__vue_click_away__", F = () => document.ontouchstart === null ? "touc
|
|
|
63
63
|
"update:open"
|
|
64
64
|
],
|
|
65
65
|
setup(n, { emit: t }) {
|
|
66
|
-
const c = O(() => import("./chunks/MazBtn-
|
|
66
|
+
const c = O(() => import("./chunks/MazBtn-CsMbZM5G.mjs").then((e) => e.M)), f = O(() => import("./chunks/chevron-down-CzMH-gFW.mjs")), s = n, g = t, m = re({
|
|
67
67
|
componentName: "MazDropdown",
|
|
68
68
|
instance: ee(),
|
|
69
69
|
providedId: s.id
|
|
@@ -312,5 +312,5 @@ const B = "__vue_click_away__", F = () => document.ontouchstart === null ? "touc
|
|
|
312
312
|
}
|
|
313
313
|
});
|
|
314
314
|
export {
|
|
315
|
-
|
|
315
|
+
ye as default
|
|
316
316
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const z = { class: "maz-fixed maz-inset-0 maz-z-default-backdrop maz-flex maz-flex-col maz-gap-2 maz-bg-overlay maz-text-center maz-backdrop-blur maz-flex-center" }, f = { key: 0 },
|
|
1
|
+
import './assets/MazFullscreenLoader.css';
|
|
2
|
+
import { defineComponent as r, defineAsyncComponent as l, onMounted as m, onUnmounted as c, openBlock as o, createElementBlock as n, createVNode as d, unref as u, renderSlot as i, createCommentVNode as p } from "vue";
|
|
3
|
+
const z = { class: "maz-fixed maz-inset-0 maz-z-default-backdrop maz-flex maz-flex-col maz-gap-2 maz-bg-overlay maz-text-center maz-backdrop-blur maz-flex-center" }, f = { key: 0 }, y = /* @__PURE__ */ r({
|
|
4
4
|
__name: "MazFullscreenLoader",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "primary" },
|
|
7
7
|
size: { default: "3em" }
|
|
8
8
|
},
|
|
9
9
|
setup(_) {
|
|
10
|
-
const t = l(() => import("./chunks/MazSpinner-
|
|
10
|
+
const t = l(() => import("./chunks/MazSpinner-CfA_KEZT.mjs")), a = () => {
|
|
11
11
|
document.documentElement.classList.add("--maz-fullscreen-loader-present");
|
|
12
|
-
},
|
|
12
|
+
}, s = async () => {
|
|
13
13
|
document.documentElement.classList.remove("--maz-fullscreen-loader-present");
|
|
14
14
|
};
|
|
15
15
|
return m(() => {
|
|
16
16
|
a();
|
|
17
17
|
}), c(() => {
|
|
18
|
-
|
|
18
|
+
s();
|
|
19
19
|
}), (e, k) => (o(), n("div", z, [
|
|
20
20
|
d(u(t), {
|
|
21
21
|
color: e.color,
|
|
@@ -28,5 +28,5 @@ const z = { class: "maz-fixed maz-inset-0 maz-z-default-backdrop maz-flex maz-fl
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
y as default
|
|
32
32
|
};
|
package/components/MazInput.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazInputCode.css';
|
|
2
2
|
import { defineComponent as N, useCssVars as S, ref as V, watch as x, computed as m, openBlock as v, createElementBlock as g, normalizeClass as b, normalizeStyle as k, Fragment as M, renderList as P, createCommentVNode as q, createElementVNode as $, mergeProps as D } from "vue";
|
|
3
3
|
const E = ["disabled"], F = ["inputmode", "pattern", "required", "value", "onInput", "onKeydown"], K = /* @__PURE__ */ N({
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -145,7 +145,7 @@ const E = ["disabled"], F = ["inputmode", "pattern", "required", "value", "onInp
|
|
|
145
145
|
for (const [c, d] of i)
|
|
146
146
|
a[c] = d;
|
|
147
147
|
return a;
|
|
148
|
-
},
|
|
148
|
+
}, O = /* @__PURE__ */ T(K, [["__scopeId", "data-v-33440874"]]);
|
|
149
149
|
export {
|
|
150
|
-
|
|
150
|
+
O as default
|
|
151
151
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as r, useCssVars as s, computed as n, openBlock as l, createElementBlock as d, pushScopeId as p, popScopeId as
|
|
3
|
-
const m = (o) => (p("data-v-26d3bae5"), o = o(),
|
|
1
|
+
import './assets/MazLoadingBar.css';
|
|
2
|
+
import { defineComponent as r, useCssVars as s, computed as n, openBlock as l, createElementBlock as d, pushScopeId as p, popScopeId as _, createElementVNode as i } from "vue";
|
|
3
|
+
const m = (o) => (p("data-v-26d3bae5"), o = o(), _(), o), u = { class: "m-loading-bar" }, h = /* @__PURE__ */ m(() => /* @__PURE__ */ i(
|
|
4
4
|
"div",
|
|
5
5
|
null,
|
|
6
6
|
null,
|
|
@@ -31,7 +31,7 @@ const m = (o) => (p("data-v-26d3bae5"), o = o(), i(), o), u = { class: "m-loadin
|
|
|
31
31
|
for (const [t, c] of e)
|
|
32
32
|
a[t] = c;
|
|
33
33
|
return a;
|
|
34
|
-
},
|
|
34
|
+
}, z = /* @__PURE__ */ g(v, [["__scopeId", "data-v-26d3bae5"]]);
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
z as default
|
|
37
37
|
};
|
package/components/MazPicker.mjs
CHANGED
package/components/MazRadio.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazRadio.css';
|
|
2
2
|
import { computed as n, defineComponent as b, useCssVars as h, getCurrentInstance as k, openBlock as z, createElementBlock as x, unref as f, normalizeClass as I, normalizeStyle as C, createElementVNode as i, mergeProps as V, renderSlot as w, pushScopeId as B, popScopeId as q } from "vue";
|
|
3
3
|
const M = ({
|
|
4
4
|
componentName: e,
|
|
@@ -106,7 +106,7 @@ const M = ({
|
|
|
106
106
|
for (const [t, s] of o)
|
|
107
107
|
r[t] = s;
|
|
108
108
|
return r;
|
|
109
|
-
},
|
|
109
|
+
}, $ = /* @__PURE__ */ R(N, [["__scopeId", "data-v-50864726"]]);
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
$ as default
|
|
112
112
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazRadioButtons.css';
|
|
2
2
|
import { defineComponent as y, openBlock as u, createElementBlock as c, normalizeClass as m, Fragment as g, renderList as z, normalizeStyle as S, createElementVNode as b, renderSlot as h, createTextVNode as k, toDisplayString as p } from "vue";
|
|
3
3
|
const x = ["for", "aria-checked", "onKeydown"], B = ["id", "name", "value", "onChange"], w = /* @__PURE__ */ y({
|
|
4
4
|
__name: "MazRadioButtons",
|
|
@@ -87,7 +87,7 @@ const x = ["for", "aria-checked", "onKeydown"], B = ["id", "name", "value", "onC
|
|
|
87
87
|
for (const [d, l] of r)
|
|
88
88
|
o[d] = l;
|
|
89
89
|
return o;
|
|
90
|
-
},
|
|
90
|
+
}, E = /* @__PURE__ */ C(w, [["__scopeId", "data-v-feb27873"]]);
|
|
91
91
|
export {
|
|
92
|
-
|
|
92
|
+
E as default
|
|
93
93
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/MazReadingProgressBar.css';
|
|
2
2
|
import { defineComponent as p, computed as m, ref as u, watch as v, onMounted as g, onBeforeUnmount as h, openBlock as w, createBlock as b, Teleport as y, createElementVNode as d, mergeProps as S, normalizeClass as _, normalizeStyle as B, nextTick as C } from "vue";
|
|
3
3
|
function k(o, l) {
|
|
4
4
|
let t = 0;
|
|
@@ -85,7 +85,7 @@ const z = /* @__PURE__ */ p({
|
|
|
85
85
|
for (const [r, a] of l)
|
|
86
86
|
t[r] = a;
|
|
87
87
|
return t;
|
|
88
|
-
},
|
|
88
|
+
}, H = /* @__PURE__ */ E(z, [["__scopeId", "data-v-d1e0c920"]]);
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
H as default
|
|
91
91
|
};
|
package/components/MazSelect.mjs
CHANGED