maz-ui 3.28.2 → 3.28.4

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-75uMWztZ.mjs → MazBtn-7F9Rioiz.mjs} +2 -2
  12. package/components/chunks/{MazBtn-ihybeYfj.mjs → MazBtn-N8P-Q8VF.mjs} +2 -2
  13. package/components/chunks/{MazBtn-aeOcptVQ.mjs → MazBtn-v6ANLVfx.mjs} +2 -2
  14. package/components/chunks/{MazDialog-4hwbB9Pu.mjs → MazDialog-PS3XQPuC.mjs} +53 -45
  15. package/components/chunks/{MazDialogPromise-S5KZWzcc.mjs → MazDialogPromise-EK4I6H_i.mjs} +78 -70
  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-o8W7u7BZ.mjs → MazSpinner-U4RTXx9S.mjs} +1 -1
  25. package/components/chunks/{MazSpinner-qBW8Wt2P.mjs → MazSpinner-njcLTql6.mjs} +1 -1
  26. package/components/chunks/{MazSpinner-QH5vPuqi.mjs → MazSpinner-zkOGM_fo.mjs} +1 -1
  27. package/modules/chunks/{MazBtn-pl1zplR1.cjs → MazBtn-5jYVOHi5.cjs} +1 -1
  28. package/modules/chunks/{MazBtn-vQMWTV0k.mjs → MazBtn-zKfVjg-f.mjs} +2 -2
  29. package/modules/chunks/{MazIcon-PpF58JqR.cjs → MazIcon-O-Sd2-b9.cjs} +1 -1
  30. package/modules/chunks/{MazIcon-iHejQyeA.mjs → MazIcon-osQoIva8.mjs} +1 -1
  31. package/modules/chunks/{MazSpinner-4FGq9uY1.cjs → MazSpinner-ElCcZG5D.cjs} +1 -1
  32. package/modules/chunks/{MazSpinner-DJzZmr-v.mjs → MazSpinner-IpRhoOeg.mjs} +1 -1
  33. package/modules/chunks/{index-eNQnoHF9.cjs → index-f0w7PwtX.cjs} +1 -1
  34. package/modules/chunks/{index-bXD69qtB.mjs → index-f8XjDm3D.mjs} +106 -108
  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,4 +1,4 @@
1
- import { M as f } from "./chunks/MazDialog-4hwbB9Pu.mjs";
1
+ import { M as f } from "./chunks/MazDialog-PS3XQPuC.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { type Color, type Size } from './types';
3
- import { type DialogData } from './../modules/composables/use-maz-dialog-promise';
3
+ import { type DialogData } from './MazDialogPromise/use-maz-dialog-promise';
4
4
  export type DialogButton = {
5
5
  text: string;
6
6
  type: 'resolve' | 'reject';
@@ -13,7 +13,7 @@ export type DialogButton = {
13
13
  rounded?: boolean;
14
14
  size?: Size;
15
15
  };
16
- export { useMazDialogPromise, type DialogState, type DialogData, } from './../modules/composables/use-maz-dialog-promise';
16
+ export { useMazDialogPromise, type DialogState, type DialogData, } from './MazDialogPromise/use-maz-dialog-promise';
17
17
  export type { Color, Size } from './types';
18
18
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
19
19
  /** Dialog Data - type DialogData */
@@ -1,4 +1,4 @@
1
- import { a as o, u as s } from "./chunks/MazDialogPromise-S5KZWzcc.mjs";
1
+ import { a as o, u as s } from "./chunks/MazDialogPromise-EK4I6H_i.mjs";
2
2
  export {
3
3
  o as default,
4
4
  s as useMazDialogPromise
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazPicker--SpH1ACw.mjs";
1
+ import { M as f } from "./chunks/MazPicker-DBOTnZbk.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "./assets/MazSlider.css";
2
- import { defineComponent as te, ref as y, computed as f, watch as F, onMounted as ne, onBeforeUnmount as oe, nextTick as g, openBlock as b, createElementBlock as w, Fragment as T, createCommentVNode as ae, createElementVNode as _, normalizeStyle as B, normalizeClass as j, renderList as K, toDisplayString as se } from "vue";
2
+ import { defineComponent as te, ref as y, computed as f, watch as F, onMounted as ne, onBeforeUnmount as oe, nextTick as b, openBlock as g, createElementBlock as w, Fragment as T, createCommentVNode as ae, createElementVNode as _, normalizeStyle as B, normalizeClass as j, renderList as K, toDisplayString as se } from "vue";
3
3
  function le(a, l) {
4
4
  let n;
5
5
  return function(...c) {
@@ -81,7 +81,7 @@ const ue = (a) => {
81
81
  window.removeEventListener("resize", $);
82
82
  });
83
83
  const z = async (e) => {
84
- e === !0 && U(), await Q(), await g();
84
+ e === !0 && U(), await Q(), await b();
85
85
  for (const [t, u] of p.value.entries())
86
86
  P(t);
87
87
  }, R = (e, t) => {
@@ -103,11 +103,11 @@ const ue = (a) => {
103
103
  D(e), n.noDivider || J();
104
104
  }, D = async (e) => {
105
105
  var u;
106
- await g();
106
+ await b();
107
107
  const t = document.querySelectorAll(".m-slider .m-slider__btn");
108
108
  if (t) {
109
109
  const o = t[e], s = (o == null ? void 0 : o.clientWidth) + 16, r = {
110
- left: typeof ((u = m.value) == null ? void 0 : u[e]) == "number" ? `${m.value[e] - s / 2}px` : ""
110
+ left: typeof ((u = m.value) == null ? void 0 : u[e]) == "number" ? `${m.value[e] - s / 2 || 1}px` : ""
111
111
  };
112
112
  C.value[e] = r;
113
113
  }
@@ -131,14 +131,14 @@ const ue = (a) => {
131
131
  }
132
132
  }, Q = async () => {
133
133
  var s, r;
134
- await g();
134
+ await b();
135
135
  const { min: e, max: t, log: u } = n, o = (s = v.value) == null ? void 0 : s.clientWidth;
136
136
  o ? m.value = (r = d.value) == null ? void 0 : r.map(
137
137
  (h) => u ? o / t * (e + (Math.log(h) - M.value) / L.value) : o / A.value * (h - e)
138
138
  ) : console.warn("[maz-ui][MazSlider] ref component not found");
139
139
  }, E = async () => {
140
140
  var s, r, h;
141
- await g();
141
+ await b();
142
142
  const { max: e, min: t, log: u } = n, o = (s = v.value) == null ? void 0 : s.clientWidth;
143
143
  if (o)
144
144
  return u ? (r = m.value) == null ? void 0 : r.map((V) => {
@@ -157,7 +157,7 @@ const ue = (a) => {
157
157
  e && x(e), i.value = void 0;
158
158
  }, N = async (e) => {
159
159
  var u;
160
- if (await g(), i.value === void 0)
160
+ if (await b(), i.value === void 0)
161
161
  return;
162
162
  const t = (u = v.value) == null ? void 0 : u.clientWidth;
163
163
  if (m.value) {
@@ -170,7 +170,7 @@ const ue = (a) => {
170
170
  })(), d.value = await E(), P(i.value);
171
171
  }
172
172
  };
173
- return (e, t) => (b(), w(
173
+ return (e, t) => (g(), w(
174
174
  T,
175
175
  null,
176
176
  [
@@ -197,10 +197,10 @@ const ue = (a) => {
197
197
  "aria-valuemin": a.min,
198
198
  "aria-valuemax": a.max
199
199
  }, [
200
- (b(!0), w(
200
+ (g(!0), w(
201
201
  T,
202
202
  null,
203
- K(k.value, (u, o) => (b(), w(
203
+ K(k.value, (u, o) => (g(), w(
204
204
  "div",
205
205
  {
206
206
  key: `divider-${o}`,
@@ -214,12 +214,12 @@ const ue = (a) => {
214
214
  128
215
215
  /* KEYED_FRAGMENT */
216
216
  )),
217
- (b(!0), w(
217
+ (g(!0), w(
218
218
  T,
219
219
  null,
220
220
  K(p.value, (u, o) => {
221
221
  var s;
222
- return b(), w("button", {
222
+ return g(), w("button", {
223
223
  key: `cursor-${o}`,
224
224
  type: "button",
225
225
  "data-label": G(o),
@@ -261,7 +261,7 @@ const ue = (a) => {
261
261
  for (const [c, v] of l)
262
262
  n[c] = v;
263
263
  return n;
264
- }, ye = /* @__PURE__ */ ve(de, [["__scopeId", "data-v-ea1cbcde"]]);
264
+ }, ye = /* @__PURE__ */ ve(de, [["__scopeId", "data-v-56717bb9"]]);
265
265
  export {
266
266
  ye as default
267
267
  };