maz-ui 3.29.2 → 3.29.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.
@@ -1,6 +1,9 @@
1
1
  import "../assets/MazDropzone.css";
2
- import { defineAsyncComponent as L, defineComponent as H, ref as v, computed as Q, onMounted as V, onBeforeUnmount as j, resolveComponent as I, openBlock as z, createElementBlock as N, normalizeStyle as T, renderSlot as f, createElementVNode as i, toDisplayString as w, createBlock as W } from "vue";
3
- const J = L(() => import("./MazSpinner-qHlsOW7F.mjs")), G = `<div class="dz-preview dz-file-preview maz-flex-1">
2
+ import { defineAsyncComponent as H, defineComponent as Q, ref as h, computed as V, onMounted as j, onBeforeUnmount as I, resolveComponent as N, openBlock as f, createElementBlock as T, normalizeStyle as W, renderSlot as w, createElementVNode as c, toDisplayString as y, createBlock as J } from "vue";
3
+ function G(n) {
4
+ return n.default ?? n;
5
+ }
6
+ const K = H(() => import("./MazSpinner-rQ5_r_4K.mjs")), P = `<div class="dz-preview dz-file-preview maz-flex-1">
4
7
  <div class="dz-image">
5
8
  <div data-dz-thumbnail-bg></div>
6
9
  </div>
@@ -17,9 +20,9 @@ const J = L(() => import("./MazSpinner-qHlsOW7F.mjs")), G = `<div class="dz-prev
17
20
  <div class="dz-error-mark">
18
21
  <svg class="material-icons" xmlns="http://www.w3.org/2000/svg" height="6rem" viewBox="0 0 24 24" width="6rem" fill="currentColor"><path d="M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg>
19
22
  </div>
20
- </div>`, K = H({
23
+ </div>`, X = Q({
21
24
  name: "MazDropzone",
22
- components: { MazSpinner: J },
25
+ components: { MazSpinner: K },
23
26
  props: {
24
27
  options: { type: Object, required: !0 },
25
28
  height: {
@@ -62,37 +65,37 @@ const J = L(() => import("./MazSpinner-qHlsOW7F.mjs")), G = `<div class="dz-prev
62
65
  "reset"
63
66
  ],
64
67
  setup(n, { emit: t }) {
65
- const r = v(), c = v(!1);
68
+ const d = h(), p = h(!1);
66
69
  let e;
67
- const m = v(), g = Q(() => ({
70
+ const g = h(), v = V(() => ({
68
71
  width: typeof n.width == "number" ? `${n.width}px` : n.width,
69
72
  height: typeof n.height == "number" ? `${n.height}px` : n.height
70
- })), p = (s, l) => {
73
+ })), u = (s, l) => {
71
74
  t("thumbnail", { file: s, dataUrl: l });
72
- let o;
73
- s.previewElement.classList.remove("dz-file-preview"), s.previewElement.querySelectorAll("[data-dz-thumbnail-bg]").forEach((d) => {
74
- o = d, o.alt = s.name, o.style.backgroundImage = `url('${l}')`;
75
+ let r;
76
+ s.previewElement.classList.remove("dz-file-preview"), s.previewElement.querySelectorAll("[data-dz-thumbnail-bg]").forEach((a) => {
77
+ r = a, r.alt = s.name, r.style.backgroundImage = `url('${l}')`;
75
78
  }), s.status === "success" && e.emit("complete", s);
76
- }, u = (s, l, o) => {
77
- t("error", { file: s, message: l, xhr: o }), e.options.autoRemoveOnError && setTimeout(() => e.removeFile(s), 3e3);
78
- }, y = (s, l, o) => {
79
- t("error", { files: s, message: l, xhr: o }), e.options.autoRemoveOnError && setTimeout(() => {
80
- for (const a of s)
81
- e.removeFile(a);
79
+ }, m = (s, l, r) => {
80
+ t("error", { file: s, message: l, xhr: r }), e.options.autoRemoveOnError && setTimeout(() => e.removeFile(s), 3e3);
81
+ }, F = (s, l, r) => {
82
+ t("error", { files: s, message: l, xhr: r }), e.options.autoRemoveOnError && setTimeout(() => {
83
+ for (const o of s)
84
+ e.removeFile(o);
82
85
  }, 3e3);
83
86
  };
84
- V(async () => {
87
+ j(async () => {
85
88
  const s = {
86
89
  parallelUploads: n.options.maxFiles,
87
- previewTemplate: G,
90
+ previewTemplate: P,
88
91
  addRemoveLinks: !0
89
92
  };
90
- if (r.value) {
91
- const { default: l } = await import("dropzone");
92
- e = new l(r.value, {
93
+ if (d.value) {
94
+ const { default: l } = await import("dropzone"), r = G(l);
95
+ e = new r(d.value, {
93
96
  ...s,
94
97
  ...n.options
95
- }), e && (m.value = e.options, c.value = !0, e.on("thumbnail", p), e.on("error", u), e.on("errormultiple", y), e.on("drop", (o) => t("drop", o)), e.on("dragstart", (o) => t("dragstart", o)), e.on("dragend", (o) => t("dragend", o)), e.on("dragenter", (o) => t("dragenter", o)), e.on("dragover", (o) => t("dragover", o)), e.on("dragleave", (o) => t("dragleave", o)), e.on("paste", (o) => t("paste", o)), e.on("addedfile", (o) => t("addedfile", o)), e.on("addedfiles", (o) => t("addedfiles", o)), e.on("removedfile", (o) => t("removedfile", o)), e.on(
98
+ }), e && (g.value = e.options, p.value = !0, e.on("thumbnail", u), e.on("error", m), e.on("errormultiple", F), e.on("drop", (o) => t("drop", o)), e.on("dragstart", (o) => t("dragstart", o)), e.on("dragend", (o) => t("dragend", o)), e.on("dragenter", (o) => t("dragenter", o)), e.on("dragover", (o) => t("dragover", o)), e.on("dragleave", (o) => t("dragleave", o)), e.on("paste", (o) => t("paste", o)), e.on("addedfile", (o) => t("addedfile", o)), e.on("addedfiles", (o) => t("addedfiles", o)), e.on("removedfile", (o) => t("removedfile", o)), e.on(
96
99
  "success",
97
100
  (o, a) => t("success", { file: o, response: a })
98
101
  ), e.on(
@@ -103,20 +106,20 @@ const J = L(() => import("./MazSpinner-qHlsOW7F.mjs")), G = `<div class="dz-prev
103
106
  (o) => t("processingmultiple", o)
104
107
  ), e.on(
105
108
  "uploadprogress",
106
- (o, a, d) => t("uploadprogress", { file: o, progress: a, bytesSent: d })
109
+ (o, a, i) => t("uploadprogress", { file: o, progress: a, bytesSent: i })
107
110
  ), e.on(
108
111
  "totaluploadprogress",
109
- (o, a, d) => t("totaluploadprogress", {
112
+ (o, a, i) => t("totaluploadprogress", {
110
113
  totalProgress: o,
111
114
  totalBytes: a,
112
- totalBytesSent: d
115
+ totalBytesSent: i
113
116
  })
114
117
  ), e.on(
115
118
  "sending",
116
- (o, a, d) => t("sending", { file: o, xhr: a, formData: d })
119
+ (o, a, i) => t("sending", { file: o, xhr: a, formData: i })
117
120
  ), e.on(
118
121
  "sendingmultiple",
119
- (o, a, d) => t("sendingmultiple", { files: o, xhr: a, formData: d })
122
+ (o, a, i) => t("sendingmultiple", { files: o, xhr: a, formData: i })
120
123
  ), e.on("canceled", (o) => t("canceled", o)), e.on(
121
124
  "canceledmultiple",
122
125
  (o) => t("canceledmultiple", o)
@@ -127,49 +130,49 @@ const J = L(() => import("./MazSpinner-qHlsOW7F.mjs")), G = `<div class="dz-prev
127
130
  "maxfilesreached",
128
131
  (o) => t("maxfilesreached", o)
129
132
  ), e.on("queuecomplete", () => {
130
- h().every((o) => o.manuallyAdded) || t("queuecomplete");
133
+ z().every((o) => o.manuallyAdded) || t("queuecomplete");
131
134
  }), e.on("reset", () => t("reset")));
132
135
  }
133
136
  });
134
- const F = (s, l) => (e.options = {
137
+ const b = (s, l) => (e.options = {
135
138
  ...e.options,
136
139
  [s]: l
137
- }, e.options), b = (s, l) => {
140
+ }, e.options), x = (s, l) => {
138
141
  e.emit("addedfile", s), e.emit("thumbnail", s, l), e.files.push(s);
139
- }, x = (s) => e.removeAllFiles(s), M = () => e.processQueue(), _ = () => e.destroy(), S = () => e.disable(), A = () => e.enable(), O = (s, l) => e.accept(s, l), k = (s) => e.addFile(s), B = (s, l, o, a, d) => e.resizeImage(s, l, o, a, d), C = (s) => e.cancelUpload(s), h = () => e.getAcceptedFiles(), E = () => e.getRejectedFiles(), $ = () => e.getFilesWithStatus(status), D = () => e.getQueuedFiles(), R = () => e.getUploadingFiles(), U = () => e.getAddedFiles(), q = () => e.getActiveFiles();
140
- return j(() => {
142
+ }, M = (s) => e.removeAllFiles(s), _ = () => e.processQueue(), S = () => e.destroy(), A = () => e.disable(), O = () => e.enable(), C = (s, l) => e.accept(s, l), k = (s) => e.addFile(s), B = (s, l, r, o, a) => e.resizeImage(s, l, r, o, a), E = (s) => e.cancelUpload(s), z = () => e.getAcceptedFiles(), $ = () => e.getRejectedFiles(), D = () => e.getFilesWithStatus(status), R = () => e.getQueuedFiles(), U = () => e.getUploadingFiles(), q = () => e.getAddedFiles(), L = () => e.getActiveFiles();
143
+ return I(() => {
141
144
  n.noDestroyOnUnmount || e.destroy();
142
145
  }), {
143
- ButtonElement: r,
144
- dropzoneReady: c,
145
- dropzoneOptions: m,
146
- dropzoneStyle: g,
147
- setOption: F,
148
- manuallyAddFile: b,
149
- removeAllFiles: x,
150
- processQueue: M,
151
- destroy: _,
152
- disable: S,
153
- enable: A,
154
- accept: O,
146
+ ButtonElement: d,
147
+ dropzoneReady: p,
148
+ dropzoneOptions: g,
149
+ dropzoneStyle: v,
150
+ setOption: b,
151
+ manuallyAddFile: x,
152
+ removeAllFiles: M,
153
+ processQueue: _,
154
+ destroy: S,
155
+ disable: A,
156
+ enable: O,
157
+ accept: C,
155
158
  addFile: k,
156
159
  resizeImage: B,
157
- cancelUpload: C,
158
- getAcceptedFiles: h,
159
- getRejectedFiles: E,
160
- getFilesWithStatus: $,
161
- getQueuedFiles: D,
162
- getUploadingFiles: R,
163
- getAddedFiles: U,
164
- getActiveFiles: q
160
+ cancelUpload: E,
161
+ getAcceptedFiles: z,
162
+ getRejectedFiles: $,
163
+ getFilesWithStatus: D,
164
+ getQueuedFiles: R,
165
+ getUploadingFiles: U,
166
+ getAddedFiles: q,
167
+ getActiveFiles: L
165
168
  };
166
169
  }
167
- }), P = (n, t) => {
168
- const r = n.__vccOpts || n;
169
- for (const [c, e] of t)
170
- r[c] = e;
171
- return r;
172
- }, X = { class: "dz-message" }, Y = /* @__PURE__ */ i(
170
+ }), Y = (n, t) => {
171
+ const d = n.__vccOpts || n;
172
+ for (const [p, e] of t)
173
+ d[p] = e;
174
+ return d;
175
+ }, Z = { class: "dz-message" }, ee = /* @__PURE__ */ c(
173
176
  "svg",
174
177
  {
175
178
  xmlns: "http://www.w3.org/2000/svg",
@@ -181,61 +184,61 @@ const J = L(() => import("./MazSpinner-qHlsOW7F.mjs")), G = `<div class="dz-prev
181
184
  "aria-hidden": "true"
182
185
  },
183
186
  [
184
- /* @__PURE__ */ i("path", {
187
+ /* @__PURE__ */ c("path", {
185
188
  d: "M0 0h24v24H0V0z",
186
189
  fill: "none"
187
190
  }),
188
- /* @__PURE__ */ i("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z" })
191
+ /* @__PURE__ */ c("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z" })
189
192
  ],
190
193
  -1
191
194
  /* HOISTED */
192
- ), Z = { class: "maz-my-2 maz-text-normal" }, ee = { class: "maz-my-0 maz-text-muted" };
193
- function oe(n, t, r, c, e, m) {
194
- const g = I("MazSpinner");
195
- return z(), N(
195
+ ), oe = { class: "maz-my-2 maz-text-normal" }, te = { class: "maz-my-0 maz-text-muted" };
196
+ function se(n, t, d, p, e, g) {
197
+ const v = N("MazSpinner");
198
+ return f(), T(
196
199
  "button",
197
200
  {
198
201
  ref: "ButtonElement",
199
202
  type: "button",
200
203
  name: "maz-dropzone",
201
204
  class: "maz-dropzone",
202
- style: T([n.dropzoneStyle])
205
+ style: W([n.dropzoneStyle])
203
206
  },
204
207
  [
205
- n.dropzoneReady ? f(n.$slots, "default", {
208
+ n.dropzoneReady ? w(n.$slots, "default", {
206
209
  key: 0,
207
210
  options: n.dropzoneOptions
208
211
  }, () => {
209
- var p, u;
212
+ var u, m;
210
213
  return [
211
- i("div", X, [
212
- f(n.$slots, "icon", {}, () => [
213
- Y
214
+ c("div", Z, [
215
+ w(n.$slots, "icon", {}, () => [
216
+ ee
214
217
  ]),
215
- i(
218
+ c(
216
219
  "p",
217
- Z,
218
- w((p = n.dropzoneOptions) == null ? void 0 : p.dictDefaultMessage),
220
+ oe,
221
+ y((u = n.dropzoneOptions) == null ? void 0 : u.dictDefaultMessage),
219
222
  1
220
223
  /* TEXT */
221
224
  ),
222
- i(
225
+ c(
223
226
  "p",
224
- ee,
225
- w((u = n.dropzoneOptions) == null ? void 0 : u.dictFilesDescriptions),
227
+ te,
228
+ y((m = n.dropzoneOptions) == null ? void 0 : m.dictFilesDescriptions),
226
229
  1
227
230
  /* TEXT */
228
231
  )
229
232
  ])
230
233
  ];
231
- }) : (z(), W(g, { key: 1 }))
234
+ }) : (f(), J(v, { key: 1 }))
232
235
  ],
233
236
  4
234
237
  /* STYLE */
235
238
  );
236
239
  }
237
- const ne = /* @__PURE__ */ P(K, [["render", oe]]);
240
+ const ae = /* @__PURE__ */ Y(X, [["render", se]]);
238
241
  export {
239
- ne as M,
240
- P as _
242
+ ae as M,
243
+ Y as _
241
244
  };
@@ -1,5 +1,5 @@
1
1
  import "../assets/MazInputNumber.css";
2
- import { defineComponent as O, defineAsyncComponent as B, useAttrs as te, useSlots as F, onBeforeMount as ne, computed as l, openBlock as u, createBlock as x, resolveDynamicComponent as ae, normalizeClass as p, withCtx as N, createElementBlock as v, renderSlot as w, unref as d, createCommentVNode as c, createElementVNode as V, ref as T, getCurrentInstance as le, onMounted as oe, normalizeStyle as R, createVNode as z, withDirectives as ie, mergeProps as U, toHandlers as re, vModelDynamic as ue, createTextVNode as se, toDisplayString as de, withModifiers as D, withKeys as q } from "vue";
2
+ import { defineComponent as O, defineAsyncComponent as B, useAttrs as te, useSlots as q, onBeforeMount as ne, computed as l, openBlock as u, createBlock as x, resolveDynamicComponent as ae, normalizeClass as p, withCtx as N, createElementBlock as v, renderSlot as w, unref as d, createCommentVNode as c, createElementVNode as V, ref as T, getCurrentInstance as le, onMounted as oe, normalizeStyle as R, createVNode as z, withDirectives as ie, mergeProps as U, toHandlers as re, vModelDynamic as ue, createTextVNode as se, toDisplayString as de, withModifiers as D, withKeys as L } from "vue";
3
3
  const ce = /* @__PURE__ */ O({
4
4
  __name: "MazBtn",
5
5
  props: {
@@ -39,7 +39,7 @@ const ce = /* @__PURE__ */ O({
39
39
  noElevation: { type: Boolean, default: !1 }
40
40
  },
41
41
  setup(e) {
42
- const s = B(() => import("./MazSpinner-mURNBzAj.mjs")), n = B(() => import("./MazIcon-RrJDzX3V.mjs")), { href: b, to: r } = te(), $ = F(), i = e;
42
+ const s = B(() => import("./MazSpinner-bnjZoL8U.mjs")), n = B(() => import("./MazIcon-RrJDzX3V.mjs")), { href: b, to: r } = te(), $ = q(), i = e;
43
43
  ne(() => {
44
44
  i.icon && !i.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
45
45
  });
@@ -276,11 +276,11 @@ const fe = ({
276
276
  }
277
277
  return "--default-border";
278
278
  }
279
- }), M = F(), S = l(() => {
279
+ }), M = q(), S = l(() => {
280
280
  const { required: a, placeholder: h } = t;
281
281
  if (h)
282
282
  return a ? `${h} *` : h;
283
- }), j = l(() => t.modelValue !== void 0 && t.modelValue !== ""), L = l({
283
+ }), j = l(() => t.modelValue !== void 0 && t.modelValue !== ""), F = l({
284
284
  get: () => t.modelValue,
285
285
  set: (a) => ee(a)
286
286
  }), G = l(() => (!!t.label || !!t.hint) && (y.value || !!j.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), H = l(() => !!t.label || !!t.hint), J = () => !!M["right-icon"] || k.value || !!M["valid-button"] || t.validButton || !!t.rightIcon, Q = () => !!M["left-icon"] || !!t.leftIcon, W = (a) => {
@@ -333,7 +333,7 @@ const fe = ({
333
333
  id: d(o),
334
334
  ref_key: "input",
335
335
  ref: I,
336
- "onUpdate:modelValue": h[0] || (h[0] = (A) => L.value = A),
336
+ "onUpdate:modelValue": h[0] || (h[0] = (A) => F.value = A),
337
337
  type: C.value,
338
338
  name: e.name
339
339
  }, a.$attrs, {
@@ -350,7 +350,7 @@ const fe = ({
350
350
  }, !0), {
351
351
  onClick: h[1] || (h[1] = (A) => a.$emit("click", A))
352
352
  }), null, 16, ye), [
353
- [ue, L.value]
353
+ [ue, F.value]
354
354
  ]),
355
355
  e.label || e.hint ? (u(), v(
356
356
  "span",
@@ -519,19 +519,19 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
519
519
  m(r.value);
520
520
  const f = l(() => n.modelValue && n.modelValue >= n.max), y = l(() => n.modelValue && n.modelValue <= n.min), I = () => {
521
521
  if (!(n.disabled || f.value)) {
522
- if (r.value === void 0 || r.value === null) {
522
+ if ((r.value === void 0 || r.value === null) && Number.isFinite(n.min)) {
523
523
  r.value = n.min;
524
524
  return;
525
525
  }
526
- r.value = r.value + 1 * n.step;
526
+ r.value = (r.value ?? 0) + 1 * n.step;
527
527
  }
528
528
  }, g = () => {
529
529
  if (!(n.disabled || y.value)) {
530
- if (r.value === void 0 || r.value === null) {
530
+ if ((r.value === void 0 || r.value === null) && Number.isFinite(n.min)) {
531
531
  r.value = n.min;
532
532
  return;
533
533
  }
534
- r.value = r.value - 1 * n.step;
534
+ r.value = (r.value ?? 0) - 1 * n.step;
535
535
  }
536
536
  };
537
537
  return (o, k) => (u(), v(
@@ -566,8 +566,8 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
566
566
  }, o.$attrs, {
567
567
  size: e.size,
568
568
  onKeydown: [
569
- q(D(I, ["prevent"]), ["up"]),
570
- q(D(g, ["prevent"]), ["down"])
569
+ L(D(I, ["prevent"]), ["up"]),
570
+ L(D(g, ["prevent"]), ["down"])
571
571
  ],
572
572
  "onUpdate:modelValue": k[0] || (k[0] = (C) => d(t)(C))
573
573
  }), null, 16, ["model-value", "disabled", "min", "max", "step", "size", "onKeydown"]),
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazSpinner.css";
2
2
  import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
3
- import { _ as p } from "./MazInputNumber-m-H5m2ud.mjs";
3
+ import { _ as p } from "./MazInputNumber-nZPwmWuy.mjs";
4
4
  const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
5
5
  "path",
6
6
  { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
2
- import { _ as p } from "./MazAccordion-pZkwkqAr.mjs";
2
+ import { _ as p } from "./MazAccordion-lLsUI5mV.mjs";
3
3
  const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
4
4
  "path",
5
5
  { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazSpinner.css";
2
2
  import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
3
- import { _ as p } from "./MazDropzone-WoRcaxpi.mjs";
3
+ import { _ as p } from "./MazDropzone-Sa1T-FyC.mjs";
4
4
  const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
5
5
  "path",
6
6
  { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.29.2"
7
+ "version": "3.29.4"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.29.2",
3
+ "version": "3.29.4",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -104,19 +104,19 @@
104
104
  "@mazui/cli": "latest"
105
105
  },
106
106
  "devDependencies": {
107
- "@babel/core": "^7.23.3",
108
- "@babel/preset-env": "^7.23.3",
107
+ "@babel/core": "^7.23.5",
108
+ "@babel/preset-env": "^7.23.5",
109
109
  "@babel/preset-typescript": "^7.23.3",
110
110
  "@nuxt/kit": "^3.8.2",
111
111
  "@nuxt/schema": "^3.8.2",
112
112
  "@types/dropzone": "^5.7.8",
113
- "@types/google.maps": "^3.54.9",
114
- "@vitejs/plugin-vue": "^4.5.0",
113
+ "@types/google.maps": "^3.54.10",
114
+ "@vitejs/plugin-vue": "^4.5.1",
115
115
  "@vitest/coverage-v8": "^0.34.6",
116
116
  "@vue/compiler-sfc": "^3.3.9",
117
117
  "@vue/eslint-config-prettier": "^8.0.0",
118
118
  "@vue/eslint-config-typescript": "^12.0.0",
119
- "@vue/test-utils": "^2.4.2",
119
+ "@vue/test-utils": "^2.4.3",
120
120
  "@vue/tsconfig": "^0.4.0",
121
121
  "autoprefixer": "^10.4.16",
122
122
  "c8": "^8.0.1",
@@ -125,10 +125,10 @@
125
125
  "dayjs": "^1.11.10",
126
126
  "defu": "^6.1.3",
127
127
  "dropzone": "^5.9.3",
128
- "eslint-plugin-vue": "^9.18.1",
128
+ "eslint-plugin-vue": "^9.19.2",
129
129
  "eslint-plugin-vuejs-accessibility": "^2.2.0",
130
130
  "fs": "0.0.2",
131
- "jsdom": "^23.0.0",
131
+ "jsdom": "^23.0.1",
132
132
  "json-templater": "^1.2.0",
133
133
  "libphonenumber-js": "^1.10.51",
134
134
  "minimist": "^1.2.8",
@@ -154,7 +154,7 @@
154
154
  "stylelint-config-tailwindcss": "^0.0.7",
155
155
  "tailwindcss": "^3.3.5",
156
156
  "unplugin-vue-components": "^0.25.2",
157
- "vite": "^5.0.2",
157
+ "vite": "^5.0.4",
158
158
  "vite-plugin-css-injected-by-js": "^3.3.0",
159
159
  "vite-plugin-lib-inject-css": "^1.3.0",
160
160
  "vite-plugin-static-copy": "^0.17.1",
@@ -166,7 +166,7 @@
166
166
  "vue-loader": "^17.3.1",
167
167
  "vue-router": "^4.2.5",
168
168
  "vue-scrollto": "^2.20.0",
169
- "vue-tsc": "^1.8.22"
169
+ "vue-tsc": "^1.8.24"
170
170
  },
171
171
  "engines": {
172
172
  "node": ">= 6.0.0",
@@ -210,6 +210,6 @@
210
210
  "test:unit:coverage:master": "vitest run --coverage --changed master",
211
211
  "pre-commit": "lint-staged",
212
212
  "gen-vue-tsc": "vue-tsc --declaration --emitDeclarationOnly",
213
- "build:new": "vite build -c build/new-vite.config.ts"
213
+ "type-check": "tsc --noEmit"
214
214
  }
215
215
  }
@@ -7,13 +7,16 @@ export function getColors() {
7
7
  }
8
8
 
9
9
  for (const color of Object.keys(variatingColors)) {
10
- colors[color] = variations.reduce((colorVariations, variation) => {
11
- colorVariations[variation] =
12
- variation === 'DEFAULT'
13
- ? `var(--maz-color-${color})`
14
- : `var(--maz-color-${color}-${variation})`
15
- return colorVariations
16
- }, {})
10
+ colors[color] = variations.reduce(
11
+ (colorVariations, variation) => {
12
+ colorVariations[variation] =
13
+ variation === 'DEFAULT'
14
+ ? `var(--maz-color-${color})`
15
+ : `var(--maz-color-${color}-${variation})`
16
+ return colorVariations
17
+ },
18
+ {} as Record<string, string>,
19
+ )
17
20
  }
18
21
 
19
22
  return colors satisfies ThemeConfig['colors']
@@ -21,15 +21,15 @@ export const baseColors = {
21
21
 
22
22
  export const variations = [
23
23
  'DEFAULT',
24
- 50,
25
- 100,
26
- 200,
27
- 300,
28
- 400,
29
- 600,
30
- 700,
31
- 800,
32
- 900,
24
+ '50',
25
+ '100',
26
+ '200',
27
+ '300',
28
+ '400',
29
+ '600',
30
+ '700',
31
+ '800',
32
+ '900',
33
33
  'contrast',
34
34
  'alpha',
35
35
  'alpha-20',
@@ -18,7 +18,7 @@ export declare const baseColors: {
18
18
  muted: string;
19
19
  overlay: string;
20
20
  };
21
- export declare const variations: (string | number)[];
21
+ export declare const variations: string[];
22
22
  export declare const variatingColors: {
23
23
  primary: boolean;
24
24
  secondary: boolean;