maz-ui 3.28.1 → 3.28.3

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.
Files changed (42) hide show
  1. package/components/MazDialog.mjs +1 -1
  2. package/components/MazDialogPromise.d.ts +2 -2
  3. package/components/MazDialogPromise.mjs +1 -1
  4. package/components/MazPicker.mjs +1 -1
  5. package/components/MazSlider.mjs +13 -13
  6. package/components/assets/MazAccordion.css +1 -1
  7. package/components/assets/MazDialog.css +1 -1
  8. package/components/assets/MazDialogPromise.css +1 -1
  9. package/components/assets/MazPickerTime.css +1 -1
  10. package/components/assets/MazSlider.css +1 -1
  11. package/components/chunks/{MazBtn-ihybeYfj.mjs → MazBtn-1GfXytgO.mjs} +2 -2
  12. package/components/chunks/{MazBtn-75uMWztZ.mjs → MazBtn-XVOvUDSP.mjs} +2 -2
  13. package/components/chunks/{MazBtn-aeOcptVQ.mjs → MazBtn-v6ANLVfx.mjs} +2 -2
  14. package/components/chunks/{MazDialog-4hwbB9Pu.mjs → MazDialog-txglnMfN.mjs} +53 -46
  15. package/components/chunks/{MazDialogPromise-S5KZWzcc.mjs → MazDialogPromise-YMK741ph.mjs} +78 -71
  16. package/components/chunks/{MazInput-ygxp70-3.mjs → MazInput-BJnR_H4m.mjs} +2 -2
  17. package/components/chunks/{MazPicker--SpH1ACw.mjs → MazPicker-DBOTnZbk.mjs} +2 -2
  18. package/components/chunks/{MazPickerCalendar-dq57Doac.mjs → MazPickerCalendar-flhTDFlr.mjs} +3 -3
  19. package/components/chunks/{MazPickerHeader-vADXyCp_.mjs → MazPickerHeader-s-Vi7Luu.mjs} +1 -1
  20. package/components/chunks/{MazPickerMonthSwitcher-aeRVlsoy.mjs → MazPickerMonthSwitcher-3XcYjNB4.mjs} +2 -2
  21. package/components/chunks/{MazPickerShortcuts-2IhArlZ9.mjs → MazPickerShortcuts-7wPe2QOq.mjs} +2 -2
  22. package/components/chunks/{MazPickerTime-ImYGbQI8.mjs → MazPickerTime-BnE9Z2o_.mjs} +4 -4
  23. package/components/chunks/{MazPickerYearSwitcher-pXTsByr2.mjs → MazPickerYearSwitcher-QcFW_c-2.mjs} +3 -3
  24. package/components/chunks/{MazSpinner-QH5vPuqi.mjs → MazSpinner-3qW6Rw_y.mjs} +1 -1
  25. package/components/chunks/{MazSpinner-o8W7u7BZ.mjs → MazSpinner-DIsY_F3o.mjs} +1 -1
  26. package/components/chunks/{MazSpinner-qBW8Wt2P.mjs → MazSpinner-U4RTXx9S.mjs} +1 -1
  27. package/modules/chunks/{MazBtn-BjjqJeyy.cjs → MazBtn-5jYVOHi5.cjs} +1 -1
  28. package/modules/chunks/{MazBtn-i7A6854I.mjs → MazBtn-zKfVjg-f.mjs} +2 -2
  29. package/modules/chunks/{MazIcon-mZNgyUkv.cjs → MazIcon-O-Sd2-b9.cjs} +1 -1
  30. package/modules/chunks/{MazIcon-_zmW6Z2N.mjs → MazIcon-osQoIva8.mjs} +1 -1
  31. package/modules/chunks/{MazSpinner-mn9MhxbV.cjs → MazSpinner-ElCcZG5D.cjs} +1 -1
  32. package/modules/chunks/{MazSpinner-zUQyynC3.mjs → MazSpinner-IpRhoOeg.mjs} +1 -1
  33. package/modules/chunks/{index-DCZgntsf.cjs → index-f0w7PwtX.cjs} +2 -2
  34. package/modules/chunks/{index-ezXyG63J.mjs → index-f8XjDm3D.mjs} +168 -163
  35. package/modules/index.cjs +1 -1
  36. package/modules/index.mjs +1 -1
  37. package/nuxt/index.json +1 -1
  38. package/package.json +1 -1
  39. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  40. package/types/components/MazDialogPromise.vue.d.ts +2 -2
  41. package/types/modules/composables/index.d.ts +1 -1
  42. /package/{types/modules/composables → components/MazDialogPromise}/use-maz-dialog-promise.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent as M, defineAsyncComponent as z, useAttrs as E, useSlots as L, onBeforeMount as R, computed as t, openBlock as o, createBlock as i, resolveDynamicComponent as w, normalizeClass as u, withCtx as A, createElementBlock as v, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
3
- import { _ as N } from "./MazDialogPromise-S5KZWzcc.mjs";
3
+ import { _ as N } from "./MazDialogPromise-YMK741ph.mjs";
4
4
  const P = /* @__PURE__ */ M({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -40,7 +40,7 @@ const P = /* @__PURE__ */ M({
40
40
  noElevation: { type: Boolean, default: !1 }
41
41
  },
42
42
  setup(e) {
43
- const p = z(() => import("./MazSpinner-QH5vPuqi.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
43
+ const p = z(() => import("./MazSpinner-3qW6Rw_y.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
44
44
  R(() => {
45
45
  n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
46
46
  });
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent as M, defineAsyncComponent as z, useAttrs as E, useSlots as L, onBeforeMount as R, computed as t, openBlock as o, createBlock as i, resolveDynamicComponent as w, normalizeClass as u, withCtx as A, createElementBlock as v, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
3
- import { _ as N } from "./MazDialog-4hwbB9Pu.mjs";
3
+ import { _ as N } from "./MazDialog-txglnMfN.mjs";
4
4
  const P = /* @__PURE__ */ M({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -40,7 +40,7 @@ const P = /* @__PURE__ */ M({
40
40
  noElevation: { type: Boolean, default: !1 }
41
41
  },
42
42
  setup(e) {
43
- const p = z(() => import("./MazSpinner-o8W7u7BZ.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
43
+ const p = z(() => import("./MazSpinner-DIsY_F3o.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
44
44
  R(() => {
45
45
  n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
46
46
  });
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazBtn.css";
2
2
  import { defineComponent as M, defineAsyncComponent as z, useAttrs as E, useSlots as L, onBeforeMount as R, computed as t, openBlock as o, createBlock as i, resolveDynamicComponent as w, normalizeClass as u, withCtx as A, createElementBlock as v, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
3
- import { _ as N } from "./MazPicker--SpH1ACw.mjs";
3
+ import { _ as N } from "./MazPicker-DBOTnZbk.mjs";
4
4
  const P = /* @__PURE__ */ M({
5
5
  __name: "MazBtn",
6
6
  props: {
@@ -40,7 +40,7 @@ const P = /* @__PURE__ */ M({
40
40
  noElevation: { type: Boolean, default: !1 }
41
41
  },
42
42
  setup(e) {
43
- const p = z(() => import("./MazSpinner-qBW8Wt2P.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
43
+ const p = z(() => import("./MazSpinner-U4RTXx9S.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
44
44
  R(() => {
45
45
  n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
46
46
  });
@@ -1,5 +1,5 @@
1
1
  import "../assets/MazDialog.css";
2
- import { defineComponent as $, ref as w, onMounted as z, watch as M, openBlock as c, createBlock as v, Teleport as V, createVNode as S, Transition as O, withCtx as y, createElementBlock as k, normalizeClass as b, createElementVNode as u, withModifiers as N, mergeProps as C, renderSlot as m, createCommentVNode as d, defineAsyncComponent as h, useAttrs as T, computed as B, createTextVNode as F, toDisplayString as P, unref as E } from "vue";
2
+ import { defineComponent as $, ref as w, onMounted as z, watch as M, openBlock as c, createBlock as v, Teleport as T, createVNode as S, Transition as V, withCtx as y, createElementBlock as k, normalizeClass as b, createElementVNode as u, withModifiers as O, mergeProps as g, renderSlot as m, createCommentVNode as i, defineAsyncComponent as h, useAttrs as N, computed as B, createTextVNode as F, toDisplayString as P, unref as E } from "vue";
3
3
  const D = "--backdrop-present", H = () => {
4
4
  document.documentElement.classList.add(D);
5
5
  }, K = async () => {
@@ -25,50 +25,50 @@ const D = "--backdrop-present", H = () => {
25
25
  },
26
26
  emits: ["open", "before-close", "close", "update:model-value"],
27
27
  setup(e, { emit: n }) {
28
- const a = w(e.modelValue), s = () => {
29
- i(!1);
30
- }, i = async (r) => {
28
+ const l = w(e.modelValue), a = () => {
29
+ d(!1);
30
+ }, d = async (r) => {
31
31
  var A;
32
- r || (n("before-close"), await ((A = e.beforeClose) == null ? void 0 : A.call(e))), a.value = r;
32
+ r || (n("before-close"), await ((A = e.beforeClose) == null ? void 0 : A.call(e))), l.value = r;
33
33
  }, f = () => {
34
34
  n("open");
35
35
  }, t = () => {
36
36
  n("update:model-value", !1), n("close"), p();
37
- }, l = () => {
38
- e.persistent || s();
37
+ }, s = () => {
38
+ e.persistent || a();
39
39
  }, o = (r) => {
40
- !e.noCloseOnEscKey && r.key === "Escape" && !e.persistent && s();
41
- }, g = () => {
40
+ !e.noCloseOnEscKey && r.key === "Escape" && !e.persistent && a();
41
+ }, C = () => {
42
42
  H(), document.addEventListener("keyup", o, !1);
43
43
  }, p = () => {
44
44
  document.removeEventListener("keyup", o), K();
45
45
  };
46
46
  return z(() => {
47
- e.modelValue ? g() : p();
47
+ e.modelValue ? C() : p();
48
48
  }), M(
49
49
  () => e.modelValue,
50
50
  (r) => {
51
- a.value = r, r ? g() : p();
51
+ l.value = r, r ? C() : p();
52
52
  }
53
53
  ), {
54
54
  onBackdropAnimationEnter: f,
55
55
  onBackdropAnimationLeave: t,
56
- onBackdropClicked: l,
57
- close: s,
58
- present: a,
59
- toggleModal: i,
56
+ onBackdropClicked: s,
57
+ close: a,
58
+ present: l,
59
+ toggleModal: d,
60
60
  onKeyPress: o
61
61
  };
62
62
  }
63
63
  }), L = (e, n) => {
64
- const a = e.__vccOpts || e;
65
- for (const [s, i] of n)
66
- a[s] = i;
67
- return a;
64
+ const l = e.__vccOpts || e;
65
+ for (const [a, d] of n)
66
+ l[a] = d;
67
+ return l;
68
68
  };
69
- function j(e, n, a, s, i, f) {
70
- return c(), v(V, { to: e.teleportSelector }, [
71
- S(O, {
69
+ function j(e, n, l, a, d, f) {
70
+ return c(), v(T, { to: e.teleportSelector }, [
71
+ S(V, {
72
72
  appear: "",
73
73
  name: e.transitionName,
74
74
  onAfterEnter: e.onBackdropAnimationEnter,
@@ -89,7 +89,7 @@ function j(e, n, a, s, i, f) {
89
89
  {
90
90
  class: b(["m-backdrop-overlay", { "--disabled": e.persistent }]),
91
91
  tabindex: "-1",
92
- onClick: n[0] || (n[0] = N((...t) => e.onBackdropClicked && e.onBackdropClicked(...t), ["self"]))
92
+ onClick: n[0] || (n[0] = O((...t) => e.onBackdropClicked && e.onBackdropClicked(...t), ["self"]))
93
93
  },
94
94
  null,
95
95
  2
@@ -97,7 +97,7 @@ function j(e, n, a, s, i, f) {
97
97
  ),
98
98
  u(
99
99
  "div",
100
- C({
100
+ g({
101
101
  class: ["m-backdrop-content", e.backdropContentClass]
102
102
  }, e.$attrs, {
103
103
  role: "document",
@@ -112,7 +112,7 @@ function j(e, n, a, s, i, f) {
112
112
  ],
113
113
  2
114
114
  /* CLASS */
115
- )) : d("v-if", !0)
115
+ )) : i("v-if", !0)
116
116
  ]),
117
117
  _: 3
118
118
  /* FORWARDED */
@@ -121,8 +121,12 @@ function j(e, n, a, s, i, f) {
121
121
  }
122
122
  const I = /* @__PURE__ */ L(W, [["render", j]]), q = {
123
123
  key: 0,
124
+ id: "dialogTitle",
124
125
  class: "maz-my-0 maz-text-xl maz-font-semibold"
125
- }, U = { class: "m-dialog-content" }, X = {
126
+ }, U = {
127
+ id: "dialogDesc",
128
+ class: "m-dialog-content"
129
+ }, X = {
126
130
  key: 0,
127
131
  class: "m-dialog-footer"
128
132
  }, G = /* @__PURE__ */ $({
@@ -150,32 +154,35 @@ const I = /* @__PURE__ */ L(W, [["render", j]]), q = {
150
154
  "open"
151
155
  ],
152
156
  setup(e) {
153
- const n = h(() => import("./MazBtn-75uMWztZ.mjs")), a = h(() => import("./x-mark-pPwcH6Hz.mjs")), s = T(), i = B(() => ({
154
- ...s,
157
+ const n = h(() => import("./MazBtn-XVOvUDSP.mjs")), l = h(() => import("./x-mark-pPwcH6Hz.mjs")), a = N(), d = B(() => ({
158
+ ...a,
155
159
  class: void 0,
156
160
  style: void 0
157
161
  })), f = B(() => ({
158
- class: s.class,
159
- style: s.style
162
+ class: a.class,
163
+ style: a.style
160
164
  }));
161
- return (t, l) => (c(), v(
165
+ return (t, s) => (c(), v(
162
166
  I,
163
- C(i.value, {
167
+ g(d.value, {
164
168
  "transition-name": "modal-anim",
165
- onClose: l[0] || (l[0] = (o) => t.$emit("close", o)),
166
- onOpen: l[1] || (l[1] = (o) => t.$emit("open", o)),
167
- "onUpdate:modelValue": l[2] || (l[2] = (o) => t.$emit("update:model-value", o))
169
+ "aria-labelledby": "dialogTitle",
170
+ "aria-describedby": "dialogDesc",
171
+ onClose: s[0] || (s[0] = (o) => t.$emit("close", o)),
172
+ onOpen: s[1] || (s[1] = (o) => t.$emit("open", o)),
173
+ "onUpdate:modelValue": s[2] || (s[2] = (o) => t.$emit("update:model-value", o))
168
174
  }),
169
175
  {
170
176
  default: y(({ close: o }) => [
171
177
  u(
172
- "div",
173
- C({
178
+ "dialog",
179
+ g({
174
180
  class: ["m-dialog", { "--scrollable": e.scrollable }],
181
+ "aria-modal": "true",
175
182
  style: [{ width: e.width, maxWidth: e.maxWidth, maxHeight: e.maxHeight }]
176
183
  }, f.value),
177
184
  [
178
- d(`
185
+ i(`
179
186
  @slot Header slot
180
187
  @binding {Function} close close function
181
188
  `),
@@ -187,7 +194,7 @@ const I = /* @__PURE__ */ L(W, [["render", j]]), q = {
187
194
  },
188
195
  [
189
196
  t.$slots.title || e.title ? (c(), k("h2", q, [
190
- d(`
197
+ i(`
191
198
  @slot Title slot in the header
192
199
  `),
193
200
  m(t.$slots, "title", {}, () => [
@@ -197,15 +204,15 @@ const I = /* @__PURE__ */ L(W, [["render", j]]), q = {
197
204
  /* TEXT */
198
205
  )
199
206
  ], !0)
200
- ])) : d("v-if", !0),
201
- e.noClose ? d("v-if", !0) : (c(), v(E(n), {
207
+ ])) : i("v-if", !0),
208
+ e.noClose ? i("v-if", !0) : (c(), v(E(n), {
202
209
  key: 1,
203
210
  class: "m-dialog-closebtn",
204
211
  color: "transparent",
205
212
  onClick: o
206
213
  }, {
207
214
  default: y(() => [
208
- S(E(a), { class: "maz-text-lg" })
215
+ S(E(l), { class: "maz-text-lg" })
209
216
  ]),
210
217
  _: 2
211
218
  /* DYNAMIC */
@@ -216,19 +223,19 @@ const I = /* @__PURE__ */ L(W, [["render", j]]), q = {
216
223
  )
217
224
  ], !0),
218
225
  u("div", U, [
219
- d(`
226
+ i(`
220
227
  @slot Default content
221
228
  @binding {Function} close close function
222
229
  `),
223
230
  m(t.$slots, "default", { close: o }, void 0, !0)
224
231
  ]),
225
232
  t.$slots.footer ? (c(), k("div", X, [
226
- d(`
233
+ i(`
227
234
  @slot Footer slot
228
235
  @binding {Function} close close function
229
236
  `),
230
237
  m(t.$slots, "footer", { close: o }, void 0, !0)
231
- ])) : d("v-if", !0)
238
+ ])) : i("v-if", !0)
232
239
  ],
233
240
  16
234
241
  /* FULL_PROPS */
@@ -241,7 +248,7 @@ const I = /* @__PURE__ */ L(W, [["render", j]]), q = {
241
248
  /* FULL_PROPS */
242
249
  ));
243
250
  }
244
- }), R = /* @__PURE__ */ L(G, [["__scopeId", "data-v-085e6d92"]]);
251
+ }), R = /* @__PURE__ */ L(G, [["__scopeId", "data-v-8edfae74"]]);
245
252
  export {
246
253
  R as M,
247
254
  L as _
@@ -1,33 +1,33 @@
1
1
  import "../assets/MazDialogPromise.css";
2
- import { ref as F, defineComponent as j, onMounted as O, watch as P, openBlock as m, createBlock as $, Teleport as N, createVNode as B, Transition as H, withCtx as p, createElementBlock as A, normalizeClass as E, createElementVNode as k, withModifiers as W, mergeProps as h, renderSlot as u, createCommentVNode as c, defineAsyncComponent as z, useAttrs as K, computed as D, createTextVNode as y, toDisplayString as g, unref as r, Fragment as w, renderList as q } from "vue";
3
- const I = F(), C = F([]), U = (e, o) => new Promise((i, s) => {
4
- C.value = [
5
- ...C.value,
2
+ import { ref as F, defineComponent as j, onMounted as O, watch as P, openBlock as m, createBlock as $, Teleport as N, createVNode as B, Transition as H, withCtx as p, createElementBlock as A, normalizeClass as D, createElementVNode as k, withModifiers as W, mergeProps as E, renderSlot as u, createCommentVNode as c, defineAsyncComponent as h, useAttrs as K, computed as z, createTextVNode as y, toDisplayString as g, unref as d, Fragment as w, renderList as q } from "vue";
3
+ const I = F(), b = F([]), U = (e, o) => new Promise((i, a) => {
4
+ b.value = [
5
+ ...b.value,
6
6
  {
7
7
  id: e,
8
8
  isActive: !0,
9
9
  resolve: async () => {
10
10
  await (o == null ? void 0 : o()), i(!0);
11
11
  },
12
- reject: s
12
+ reject: a
13
13
  }
14
14
  ];
15
- }), L = (e) => (C.value = C.value.filter(({ id: o }) => o !== e), C.value), M = (e, o, i = !1) => {
16
- var s;
17
- o && ((s = o[e]) == null || s.call(o, i), o.isActive = !1, setTimeout(() => {
18
- L(o.id);
15
+ }), T = (e) => (b.value = b.value.filter(({ id: o }) => o !== e), b.value), M = (e, o, i = !1) => {
16
+ var a;
17
+ o && ((a = o[e]) == null || a.call(o, i), o.isActive = !1, setTimeout(() => {
18
+ T(o.id);
19
19
  }, 500));
20
20
  }, X = () => ({
21
21
  confirmDialogData: I,
22
- dialogState: C,
22
+ dialogState: b,
23
23
  showDialogAndWaitChoice: U,
24
- removeDialogFromState: L,
24
+ removeDialogFromState: T,
25
25
  rejectDialog: (e, o = !1) => M("reject", e, o),
26
26
  resolveDialog: (e, o = !1) => M("resolve", e, o)
27
- }), T = "--backdrop-present", G = () => {
28
- document.documentElement.classList.add(T);
27
+ }), L = "--backdrop-present", G = () => {
28
+ document.documentElement.classList.add(L);
29
29
  }, J = async () => {
30
- document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(T);
30
+ document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(L);
31
31
  }, Q = j({
32
32
  inheritAttrs: !1,
33
33
  props: {
@@ -49,48 +49,48 @@ const I = F(), C = F([]), U = (e, o) => new Promise((i, s) => {
49
49
  },
50
50
  emits: ["open", "before-close", "close", "update:model-value"],
51
51
  setup(e, { emit: o }) {
52
- const i = F(e.modelValue), s = () => {
53
- d(!1);
54
- }, d = async (v) => {
52
+ const i = F(e.modelValue), a = () => {
53
+ r(!1);
54
+ }, r = async (v) => {
55
55
  var S;
56
56
  v || (o("before-close"), await ((S = e.beforeClose) == null ? void 0 : S.call(e))), i.value = v;
57
57
  }, f = () => {
58
58
  o("open");
59
59
  }, n = () => {
60
60
  o("update:model-value", !1), o("close"), t();
61
- }, a = () => {
62
- e.persistent || s();
61
+ }, s = () => {
62
+ e.persistent || a();
63
63
  }, l = (v) => {
64
- !e.noCloseOnEscKey && v.key === "Escape" && !e.persistent && s();
65
- }, b = () => {
64
+ !e.noCloseOnEscKey && v.key === "Escape" && !e.persistent && a();
65
+ }, C = () => {
66
66
  G(), document.addEventListener("keyup", l, !1);
67
67
  }, t = () => {
68
68
  document.removeEventListener("keyup", l), J();
69
69
  };
70
70
  return O(() => {
71
- e.modelValue ? b() : t();
71
+ e.modelValue ? C() : t();
72
72
  }), P(
73
73
  () => e.modelValue,
74
74
  (v) => {
75
- i.value = v, v ? b() : t();
75
+ i.value = v, v ? C() : t();
76
76
  }
77
77
  ), {
78
78
  onBackdropAnimationEnter: f,
79
79
  onBackdropAnimationLeave: n,
80
- onBackdropClicked: a,
81
- close: s,
80
+ onBackdropClicked: s,
81
+ close: a,
82
82
  present: i,
83
- toggleModal: d,
83
+ toggleModal: r,
84
84
  onKeyPress: l
85
85
  };
86
86
  }
87
87
  }), V = (e, o) => {
88
88
  const i = e.__vccOpts || e;
89
- for (const [s, d] of o)
90
- i[s] = d;
89
+ for (const [a, r] of o)
90
+ i[a] = r;
91
91
  return i;
92
92
  };
93
- function R(e, o, i, s, d, f) {
93
+ function R(e, o, i, a, r, f) {
94
94
  return m(), $(N, { to: e.teleportSelector }, [
95
95
  B(H, {
96
96
  appear: "",
@@ -103,7 +103,7 @@ function R(e, o, i, s, d, f) {
103
103
  "div",
104
104
  {
105
105
  key: 0,
106
- class: E(["m-backdrop --present", [e.backdropClass]]),
106
+ class: D(["m-backdrop --present", [e.backdropClass]]),
107
107
  tabindex: "-1",
108
108
  role: "dialog"
109
109
  },
@@ -111,7 +111,7 @@ function R(e, o, i, s, d, f) {
111
111
  k(
112
112
  "button",
113
113
  {
114
- class: E(["m-backdrop-overlay", { "--disabled": e.persistent }]),
114
+ class: D(["m-backdrop-overlay", { "--disabled": e.persistent }]),
115
115
  tabindex: "-1",
116
116
  onClick: o[0] || (o[0] = W((...n) => e.onBackdropClicked && e.onBackdropClicked(...n), ["self"]))
117
117
  },
@@ -121,7 +121,7 @@ function R(e, o, i, s, d, f) {
121
121
  ),
122
122
  k(
123
123
  "div",
124
- h({
124
+ E({
125
125
  class: ["m-backdrop-content", e.backdropContentClass]
126
126
  }, e.$attrs, {
127
127
  role: "document",
@@ -145,8 +145,12 @@ function R(e, o, i, s, d, f) {
145
145
  }
146
146
  const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
147
147
  key: 0,
148
+ id: "dialogTitle",
148
149
  class: "maz-my-0 maz-text-xl maz-font-semibold"
149
- }, x = { class: "m-dialog-content" }, _ = {
150
+ }, x = {
151
+ id: "dialogDesc",
152
+ class: "m-dialog-content"
153
+ }, _ = {
150
154
  key: 0,
151
155
  class: "m-dialog-footer"
152
156
  }, ee = /* @__PURE__ */ j({
@@ -174,28 +178,31 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
174
178
  "open"
175
179
  ],
176
180
  setup(e) {
177
- const o = z(() => import("./MazBtn-ihybeYfj.mjs")), i = z(() => import("./x-mark-pPwcH6Hz.mjs")), s = K(), d = D(() => ({
178
- ...s,
181
+ const o = h(() => import("./MazBtn-1GfXytgO.mjs")), i = h(() => import("./x-mark-pPwcH6Hz.mjs")), a = K(), r = z(() => ({
182
+ ...a,
179
183
  class: void 0,
180
184
  style: void 0
181
- })), f = D(() => ({
182
- class: s.class,
183
- style: s.style
185
+ })), f = z(() => ({
186
+ class: a.class,
187
+ style: a.style
184
188
  }));
185
- return (n, a) => (m(), $(
189
+ return (n, s) => (m(), $(
186
190
  Y,
187
- h(d.value, {
191
+ E(r.value, {
188
192
  "transition-name": "modal-anim",
189
- onClose: a[0] || (a[0] = (l) => n.$emit("close", l)),
190
- onOpen: a[1] || (a[1] = (l) => n.$emit("open", l)),
191
- "onUpdate:modelValue": a[2] || (a[2] = (l) => n.$emit("update:model-value", l))
193
+ "aria-labelledby": "dialogTitle",
194
+ "aria-describedby": "dialogDesc",
195
+ onClose: s[0] || (s[0] = (l) => n.$emit("close", l)),
196
+ onOpen: s[1] || (s[1] = (l) => n.$emit("open", l)),
197
+ "onUpdate:modelValue": s[2] || (s[2] = (l) => n.$emit("update:model-value", l))
192
198
  }),
193
199
  {
194
200
  default: p(({ close: l }) => [
195
201
  k(
196
- "div",
197
- h({
202
+ "dialog",
203
+ E({
198
204
  class: ["m-dialog", { "--scrollable": e.scrollable }],
205
+ "aria-modal": "true",
199
206
  style: [{ width: e.width, maxWidth: e.maxWidth, maxHeight: e.maxHeight }]
200
207
  }, f.value),
201
208
  [
@@ -207,7 +214,7 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
207
214
  k(
208
215
  "div",
209
216
  {
210
- class: E(["m-dialog-header", { "--has-title": n.$slots.title || e.title }])
217
+ class: D(["m-dialog-header", { "--has-title": n.$slots.title || e.title }])
211
218
  },
212
219
  [
213
220
  n.$slots.title || e.title ? (m(), A("h2", Z, [
@@ -222,14 +229,14 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
222
229
  )
223
230
  ], !0)
224
231
  ])) : c("v-if", !0),
225
- e.noClose ? c("v-if", !0) : (m(), $(r(o), {
232
+ e.noClose ? c("v-if", !0) : (m(), $(d(o), {
226
233
  key: 1,
227
234
  class: "m-dialog-closebtn",
228
235
  color: "transparent",
229
236
  onClick: l
230
237
  }, {
231
238
  default: p(() => [
232
- B(r(i), { class: "maz-text-lg" })
239
+ B(d(i), { class: "maz-text-lg" })
233
240
  ]),
234
241
  _: 2
235
242
  /* DYNAMIC */
@@ -265,7 +272,7 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
265
272
  /* FULL_PROPS */
266
273
  ));
267
274
  }
268
- }), te = /* @__PURE__ */ V(ee, [["__scopeId", "data-v-085e6d92"]]), oe = { class: "maz-space-x-2" }, se = /* @__PURE__ */ j({
275
+ }), te = /* @__PURE__ */ V(ee, [["__scopeId", "data-v-8edfae74"]]), oe = { class: "maz-space-x-2" }, ae = /* @__PURE__ */ j({
269
276
  __name: "MazDialogPromise",
270
277
  props: {
271
278
  /** Dialog Data - type DialogData */
@@ -276,17 +283,17 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
276
283
  buttons: { type: Array, default: () => [] }
277
284
  },
278
285
  setup(e) {
279
- const o = z(() => import("./MazBtn-ihybeYfj.mjs")), i = e, { dialogState: s, rejectDialog: d, resolveDialog: f } = X(), n = D(
280
- () => s.value.find(({ id: a }) => a === i.identifier)
286
+ const o = h(() => import("./MazBtn-1GfXytgO.mjs")), i = e, { dialogState: a, rejectDialog: r, resolveDialog: f } = X(), n = z(
287
+ () => a.value.find(({ id: s }) => s === i.identifier)
281
288
  );
282
- return (a, l) => {
283
- var b;
289
+ return (s, l) => {
290
+ var C;
284
291
  return m(), $(te, {
285
- "model-value": ((b = n.value) == null ? void 0 : b.isActive) ?? !1,
286
- "onUpdate:modelValue": l[2] || (l[2] = (t) => r(d)(n.value))
292
+ "model-value": ((C = n.value) == null ? void 0 : C.isActive) ?? !1,
293
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => d(r)(n.value))
287
294
  }, {
288
295
  title: p(() => [
289
- u(a.$slots, "title", {}, () => {
296
+ u(s.$slots, "title", {}, () => {
290
297
  var t;
291
298
  return [
292
299
  y(
@@ -303,9 +310,9 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
303
310
  @binding {Function} resolve resolve function
304
311
  @binding {Function} reject reject function
305
312
  `),
306
- u(a.$slots, "default", {
307
- resolve: (t) => r(f)(n.value, t),
308
- reject: (t) => r(d)(n.value, t)
313
+ u(s.$slots, "default", {
314
+ resolve: (t) => d(f)(n.value, t),
315
+ reject: (t) => d(r)(n.value, t)
309
316
  }, () => {
310
317
  var t;
311
318
  return [
@@ -323,15 +330,15 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
323
330
  @binding {Function} resolve resolve function
324
331
  @binding {Function} reject reject function
325
332
  `),
326
- u(a.$slots, "footer-button", {
327
- resolve: (t) => r(f)(n.value, t),
328
- reject: (t) => r(d)(n.value, t)
333
+ u(s.$slots, "footer-button", {
334
+ resolve: (t) => d(f)(n.value, t),
335
+ reject: (t) => d(r)(n.value, t)
329
336
  }, () => [
330
337
  k("div", oe, [
331
338
  e.buttons.length > 0 ? (m(!0), A(
332
339
  w,
333
340
  { key: 0 },
334
- q(e.buttons, (t, v) => (m(), $(r(o), {
341
+ q(e.buttons, (t, v) => (m(), $(d(o), {
335
342
  key: v,
336
343
  color: t.color,
337
344
  size: t.size,
@@ -340,7 +347,7 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
340
347
  disabled: t.disabled,
341
348
  block: t.block,
342
349
  loading: t.loading,
343
- onClick: (S) => t.type === "resolve" ? r(f)(n.value, t.response) : r(d)(n.value, t.response)
350
+ onClick: (S) => t.type === "resolve" ? d(f)(n.value, t.response) : d(r)(n.value, t.response)
344
351
  }, {
345
352
  default: p(() => [
346
353
  y(
@@ -358,13 +365,13 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
358
365
  w,
359
366
  { key: 1 },
360
367
  [
361
- B(r(o), {
368
+ B(d(o), {
362
369
  color: "danger",
363
370
  outline: "",
364
- onClick: l[0] || (l[0] = (t) => r(d)(n.value))
371
+ onClick: l[0] || (l[0] = (t) => d(r)(n.value))
365
372
  }, {
366
373
  default: p(() => [
367
- u(a.$slots, "cancel-text", {}, () => {
374
+ u(s.$slots, "cancel-text", {}, () => {
368
375
  var t;
369
376
  return [
370
377
  y(
@@ -378,12 +385,12 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
378
385
  _: 3
379
386
  /* FORWARDED */
380
387
  }),
381
- B(r(o), {
388
+ B(d(o), {
382
389
  color: "success",
383
- onClick: l[1] || (l[1] = (t) => r(f)(n.value))
390
+ onClick: l[1] || (l[1] = (t) => d(f)(n.value))
384
391
  }, {
385
392
  default: p(() => [
386
- u(a.$slots, "confirm-text", {}, () => {
393
+ u(s.$slots, "confirm-text", {}, () => {
387
394
  var t;
388
395
  return [
389
396
  y(
@@ -412,6 +419,6 @@ const Y = /* @__PURE__ */ V(Q, [["render", R]]), Z = {
412
419
  });
413
420
  export {
414
421
  V as _,
415
- se as a,
422
+ ae as a,
416
423
  X as u
417
424
  };
@@ -1,7 +1,7 @@
1
1
  import "../assets/MazInput.css";
2
2
  import { computed as n, defineComponent as J, defineAsyncComponent as c, ref as p, getCurrentInstance as K, onMounted as Q, useSlots as W, openBlock as o, createElementBlock as m, normalizeClass as h, normalizeStyle as X, createElementVNode as z, renderSlot as B, createVNode as b, unref as r, createCommentVNode as i, withDirectives as Y, mergeProps as Z, toHandlers as _, vModelDynamic as ee, createTextVNode as te, toDisplayString as ae, createBlock as w, withModifiers as le, withCtx as V } from "vue";
3
3
  import { d as ne } from "./debounce-fEgGlH7P.mjs";
4
- import { _ as oe } from "./MazPicker--SpH1ACw.mjs";
4
+ import { _ as oe } from "./MazPicker-DBOTnZbk.mjs";
5
5
  const re = ({
6
6
  componentName: e,
7
7
  instance: d,
@@ -79,7 +79,7 @@ const re = ({
79
79
  },
80
80
  emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
81
81
  setup(e, { emit: d }) {
82
- const f = c(() => import("./MazBtn-aeOcptVQ.mjs")), k = c(() => import("./MazIcon-RrJDzX3V.mjs")), $ = c(() => import("./eye-slash-UoWe3WK1.mjs")), C = c(() => import("./eye-3jm1b22X.mjs")), M = c(() => import("./check-JxWJRZYz.mjs")), t = e, u = d, y = p(!1), s = p(!1), x = p(), q = K(), A = re({
82
+ const f = c(() => import("./MazBtn-v6ANLVfx.mjs")), k = c(() => import("./MazIcon-RrJDzX3V.mjs")), $ = c(() => import("./eye-slash-UoWe3WK1.mjs")), C = c(() => import("./eye-3jm1b22X.mjs")), M = c(() => import("./check-JxWJRZYz.mjs")), t = e, u = d, y = p(!1), s = p(!1), x = p(), q = K(), A = re({
83
83
  componentName: "MazInput",
84
84
  instance: q,
85
85
  providedId: t.id
@@ -640,7 +640,7 @@ const at = { class: "m-picker-container__wrapper" }, nt = /* @__PURE__ */ Me({
640
640
  },
641
641
  emits: ["update:model-value", "update:calendar-date", "close"],
642
642
  setup(e, { emit: u }) {
643
- const h = te(() => import("./MazPickerTime-ImYGbQI8.mjs")), y = te(() => import("./MazPickerHeader-vADXyCp_.mjs")), $ = te(() => import("./MazPickerCalendar-dq57Doac.mjs").then((b) => b.M)), t = e, k = u, M = R({
643
+ const h = te(() => import("./MazPickerTime-BnE9Z2o_.mjs")), y = te(() => import("./MazPickerHeader-s-Vi7Luu.mjs")), $ = te(() => import("./MazPickerCalendar-flhTDFlr.mjs").then((b) => b.M)), t = e, k = u, M = R({
644
644
  get: () => t.modelValue,
645
645
  set: (b) => {
646
646
  k("update:model-value", b);
@@ -872,7 +872,7 @@ const at = { class: "m-picker-container__wrapper" }, nt = /* @__PURE__ */ Me({
872
872
  },
873
873
  emits: ["update:model-value", "close"],
874
874
  setup(e, { emit: u }) {
875
- const h = te(() => import("./chevron-down-bC0s_0yH.mjs")), y = te(() => import("./MazInput-ygxp70-3.mjs"));
875
+ const h = te(() => import("./chevron-down-bC0s_0yH.mjs")), y = te(() => import("./MazInput-BJnR_H4m.mjs"));
876
876
  p.extend(We), p.extend(Fe);
877
877
  const $ = {
878
878
  dateStyle: "full"