maz-ui 3.37.0 → 3.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazCheckbox.d.ts +4 -0
- package/components/MazCheckbox.mjs +31 -24
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.d.ts +2 -0
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +8 -0
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +2 -0
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +2 -0
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +2 -0
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.d.ts +9 -0
- package/components/MazRadio.mjs +44 -37
- package/components/MazSelect.d.ts +2 -0
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBtn-C3z_znl5.mjs → MazBtn-Bo51KtKY.mjs} +2 -2
- package/components/chunks/{MazBtn-CuYCQCM2.mjs → MazBtn-CDQAW3fg.mjs} +2 -2
- package/components/chunks/MazBtn-D-Axz-X0.mjs +151 -0
- package/components/chunks/{MazBtn-D7b2VFGB.mjs → MazBtn-Koayc6g_.mjs} +2 -2
- package/components/chunks/{MazBtn-CS2F1-mC.mjs → MazBtn-pLRsSxug.mjs} +2 -2
- package/components/chunks/{MazCheckbox-BTM3Xpxz.mjs → MazCheckbox-CXVe5vda.mjs} +30 -23
- package/components/chunks/{MazCheckbox-COTppi08.mjs → MazCheckbox-DBlQwP82.mjs} +30 -23
- package/components/chunks/{MazIcon-Bspx_Ojq.mjs → MazIcon-BTsi1M-S.mjs} +1 -1
- package/components/chunks/{MazInput-C1r0b8BB.mjs → MazInput-Caas-0Nk.mjs} +19 -17
- package/components/chunks/{MazInputNumber-DJWxTvJ0.mjs → MazInputNumber-CnoCQQzg.mjs} +85 -81
- package/components/chunks/{MazInputPrice-CmX_rC0L.mjs → MazInputPrice---5nCUKm.mjs} +57 -53
- package/components/chunks/{MazInputTags-pm_5HtHM.mjs → MazInputTags-CipoVBP2.mjs} +83 -79
- package/components/chunks/{MazPhoneNumberInput-CVz5eTvG.mjs → MazPhoneNumberInput-CsX6Kqob.mjs} +402 -395
- package/components/chunks/{MazPicker-DP1zd8tt.mjs → MazPicker-CfhI75aw.mjs} +67 -62
- package/components/chunks/{MazPickerCalendar-qjcDNw86.mjs → MazPickerCalendar-DnkNE-Am.mjs} +3 -3
- package/components/chunks/{MazPickerHeader-CozeYkFf.mjs → MazPickerHeader-Vt86yzXS.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-aaUELZpE.mjs → MazPickerMonthSwitcher-zfKhsjW1.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-ppox8lXf.mjs → MazPickerShortcuts-DUIKfOO8.mjs} +2 -2
- package/components/chunks/{MazPickerTime-DmpypIWr.mjs → MazPickerTime-B2znRxr2.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-BNBvipzs.mjs → MazPickerYearSwitcher-CB339kof.mjs} +3 -3
- package/components/chunks/{MazSelect-DGEof7R3.mjs → MazSelect-DZeXglR8.mjs} +117 -109
- package/components/chunks/{MazSpinner-CTdeHHNH.mjs → MazSpinner-BAhgxOgg.mjs} +1 -1
- package/components/chunks/{MazSpinner-DmFFdtxB.mjs → MazSpinner-CJaSrYbQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-KKcK5-QF.mjs → MazSpinner-CORsBFCP.mjs} +1 -1
- package/components/chunks/{MazSpinner-DTZHIIMh.mjs → MazSpinner-CVBVegaS.mjs} +1 -1
- package/components/chunks/MazSpinner-CkdjTE0y.mjs +38 -0
- package/components/chunks/{MazSpinner-DZTqt2Yn.mjs → MazSpinner-DECa8Pby.mjs} +1 -1
- package/components/chunks/{MazSpinner-DUVEeU4h.mjs → MazSpinner-Dq4o-_GM.mjs} +1 -1
- package/components/chunks/{MazSpinner-CiPbsWOG.mjs → MazSpinner-DqXjnLKa.mjs} +1 -1
- package/components/chunks/{MazTable-BhDfeDU1.mjs → MazTable-DrFqDO-J.mjs} +214 -199
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCheckbox.vue.d.ts +4 -0
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazInputNumber.vue.d.ts +2 -0
- package/types/components/MazInputPrice.vue.d.ts +8 -0
- package/types/components/MazInputTags.vue.d.ts +2 -0
- package/types/components/MazPhoneNumberInput.vue.d.ts +2 -0
- package/types/components/MazPicker.vue.d.ts +2 -0
- package/types/components/MazRadio.vue.d.ts +9 -0
- package/types/components/MazSelect.vue.d.ts +2 -0
- package/components/chunks/MazBtn-OUDBhJKd.mjs +0 -151
- package/components/chunks/MazSpinner-yPD_Biya.mjs +0 -38
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assets/MazPicker.css';
|
|
2
|
-
import { nextTick as Se, defineComponent as Me, defineAsyncComponent as ne, computed as I, openBlock as q, createElementBlock as re, normalizeClass as ie, createBlock as _, unref as Q, createCommentVNode as W, createElementVNode as oe, getCurrentInstance as ze, ref as ee, onMounted as Oe, useSlots as Ae, normalizeStyle as
|
|
2
|
+
import { nextTick as Se, defineComponent as Me, defineAsyncComponent as ne, computed as I, openBlock as q, createElementBlock as re, normalizeClass as ie, createBlock as _, unref as Q, createCommentVNode as W, createElementVNode as oe, getCurrentInstance as ze, ref as ee, onMounted as Oe, useSlots as Ae, normalizeStyle as Be, renderSlot as ye, resolveDynamicComponent as Ye, withDirectives as De, mergeProps as Te, toHandlers as qe, vModelDynamic as Ue, createTextVNode as Fe, toDisplayString as je, withModifiers as We, withCtx as de, createVNode as se, onBeforeMount as xe, onUnmounted as Ne, watch as pe, Transition as Ze, vShow as Re } from "vue";
|
|
3
3
|
var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function me(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -9,7 +9,7 @@ var Ce = { exports: {} };
|
|
|
9
9
|
(function(f, a) {
|
|
10
10
|
e.exports = a();
|
|
11
11
|
})(fe, function() {
|
|
12
|
-
var f = 1e3, a = 6e4, g = 36e5, k = "millisecond", M = "second", l = "minute", O = "hour", p = "day", $ = "week", Y = "month", X = "quarter", N = "year",
|
|
12
|
+
var f = 1e3, a = 6e4, g = 36e5, k = "millisecond", M = "second", l = "minute", O = "hour", p = "day", $ = "week", Y = "month", X = "quarter", N = "year", T = "date", y = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(u) {
|
|
13
13
|
var i = ["th", "st", "nd", "rd"], s = u % 100;
|
|
14
14
|
return "[" + u + (i[(s - 20) % 10] || i[s] || i[0]) + "]";
|
|
15
15
|
} }, F = function(u, i, s) {
|
|
@@ -26,7 +26,7 @@ var Ce = { exports: {} };
|
|
|
26
26
|
}, a: function(u) {
|
|
27
27
|
return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
|
|
28
28
|
}, p: function(u) {
|
|
29
|
-
return { M: Y, y: N, w: $, d: p, D:
|
|
29
|
+
return { M: Y, y: N, w: $, d: p, D: T, h: O, m: l, s: M, ms: k, Q: X }[u] || String(u || "").toLowerCase().replace(/s$/, "");
|
|
30
30
|
}, u: function(u) {
|
|
31
31
|
return u === void 0;
|
|
32
32
|
} }, L = "en", V = {};
|
|
@@ -116,7 +116,7 @@ var Ce = { exports: {} };
|
|
|
116
116
|
var Z = this.$locale().weekStart || 0, K = (b < Z ? b + 7 : b) - Z;
|
|
117
117
|
return n(m ? j - K : j + (6 - K), C);
|
|
118
118
|
case p:
|
|
119
|
-
case
|
|
119
|
+
case T:
|
|
120
120
|
return h(G + "Hours", 0);
|
|
121
121
|
case O:
|
|
122
122
|
return h(G + "Minutes", 1);
|
|
@@ -130,10 +130,10 @@ var Ce = { exports: {} };
|
|
|
130
130
|
}, i.endOf = function(s) {
|
|
131
131
|
return this.startOf(s, !1);
|
|
132
132
|
}, i.$set = function(s, d) {
|
|
133
|
-
var o, m = v.p(s), t = "set" + (this.$u ? "UTC" : ""), n = (o = {}, o[p] = t + "Date", o[
|
|
133
|
+
var o, m = v.p(s), t = "set" + (this.$u ? "UTC" : ""), n = (o = {}, o[p] = t + "Date", o[T] = t + "Date", o[Y] = t + "Month", o[N] = t + "FullYear", o[O] = t + "Hours", o[l] = t + "Minutes", o[M] = t + "Seconds", o[k] = t + "Milliseconds", o)[m], h = m === p ? this.$D + (d - this.$W) : d;
|
|
134
134
|
if (m === Y || m === N) {
|
|
135
|
-
var b = this.clone().set(
|
|
136
|
-
b.$d[n](h), b.init(), this.$d = b.set(
|
|
135
|
+
var b = this.clone().set(T, 1);
|
|
136
|
+
b.$d[n](h), b.init(), this.$d = b.set(T, Math.min(this.$D, b.daysInMonth())).$d;
|
|
137
137
|
} else
|
|
138
138
|
n && this.$d[n](h);
|
|
139
139
|
return this.init(), this;
|
|
@@ -172,7 +172,7 @@ var Ce = { exports: {} };
|
|
|
172
172
|
var ae = U < 12 ? "AM" : "PM";
|
|
173
173
|
return te ? ae.toLowerCase() : ae;
|
|
174
174
|
};
|
|
175
|
-
return m.replace(
|
|
175
|
+
return m.replace(B, function(U, J) {
|
|
176
176
|
return J || function(te) {
|
|
177
177
|
switch (te) {
|
|
178
178
|
case "YY":
|
|
@@ -283,7 +283,7 @@ var Ce = { exports: {} };
|
|
|
283
283
|
return this.$d.toUTCString();
|
|
284
284
|
}, u;
|
|
285
285
|
}(), r = P.prototype;
|
|
286
|
-
return z.prototype = r, [["$ms", k], ["$s", M], ["$m", l], ["$H", O], ["$W", p], ["$M", Y], ["$y", N], ["$D",
|
|
286
|
+
return z.prototype = r, [["$ms", k], ["$s", M], ["$m", l], ["$H", O], ["$W", p], ["$M", Y], ["$y", N], ["$D", T]].forEach(function(u) {
|
|
287
287
|
r[u[1]] = function(i) {
|
|
288
288
|
return this.$g(i, u[0], u[1]);
|
|
289
289
|
};
|
|
@@ -311,23 +311,23 @@ var Le = { exports: {} };
|
|
|
311
311
|
(this.zone || (this.zone = {})).offset = function(w) {
|
|
312
312
|
if (!w || w === "Z")
|
|
313
313
|
return 0;
|
|
314
|
-
var
|
|
315
|
-
return S === 0 ? 0 :
|
|
314
|
+
var B = w.match(/([+-]|\d\d)/g), S = 60 * B[1] + (+B[2] || 0);
|
|
315
|
+
return S === 0 ? 0 : B[0] === "+" ? -S : S;
|
|
316
316
|
}(y);
|
|
317
317
|
}], Y = function(y) {
|
|
318
318
|
var w = l[y];
|
|
319
319
|
return w && (w.indexOf ? w : w.s.concat(w.f));
|
|
320
320
|
}, X = function(y, w) {
|
|
321
|
-
var
|
|
321
|
+
var B, S = l.meridiem;
|
|
322
322
|
if (S) {
|
|
323
323
|
for (var F = 1; F <= 24; F += 1)
|
|
324
324
|
if (y.indexOf(S(F, 0, w)) > -1) {
|
|
325
|
-
|
|
325
|
+
B = F > 12;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
} else
|
|
329
|
-
|
|
330
|
-
return
|
|
329
|
+
B = y === (w ? "pm" : "PM");
|
|
330
|
+
return B;
|
|
331
331
|
}, N = { A: [M, function(y) {
|
|
332
332
|
this.afternoon = X(y, !1);
|
|
333
333
|
}], a: [M, function(y) {
|
|
@@ -339,17 +339,17 @@ var Le = { exports: {} };
|
|
|
339
339
|
}], SSS: [/\d{3}/, function(y) {
|
|
340
340
|
this.milliseconds = +y;
|
|
341
341
|
}], s: [k, p("seconds")], ss: [k, p("seconds")], m: [k, p("minutes")], mm: [k, p("minutes")], H: [k, p("hours")], h: [k, p("hours")], HH: [k, p("hours")], hh: [k, p("hours")], D: [k, p("day")], DD: [g, p("day")], Do: [M, function(y) {
|
|
342
|
-
var w = l.ordinal,
|
|
343
|
-
if (this.day =
|
|
342
|
+
var w = l.ordinal, B = y.match(/\d+/);
|
|
343
|
+
if (this.day = B[0], w)
|
|
344
344
|
for (var S = 1; S <= 31; S += 1)
|
|
345
345
|
w(S).replace(/\[|\]/g, "") === y && (this.day = S);
|
|
346
346
|
}], M: [k, p("month")], MM: [g, p("month")], MMM: [M, function(y) {
|
|
347
|
-
var w = Y("months"),
|
|
347
|
+
var w = Y("months"), B = (Y("monthsShort") || w.map(function(S) {
|
|
348
348
|
return S.slice(0, 3);
|
|
349
349
|
})).indexOf(y) + 1;
|
|
350
|
-
if (
|
|
350
|
+
if (B < 1)
|
|
351
351
|
throw new Error();
|
|
352
|
-
this.month =
|
|
352
|
+
this.month = B % 12 || B;
|
|
353
353
|
}], MMMM: [M, function(y) {
|
|
354
354
|
var w = Y("months").indexOf(y) + 1;
|
|
355
355
|
if (w < 1)
|
|
@@ -358,12 +358,12 @@ var Le = { exports: {} };
|
|
|
358
358
|
}], Y: [/[+-]?\d+/, p("year")], YY: [g, function(y) {
|
|
359
359
|
this.year = O(y);
|
|
360
360
|
}], YYYY: [/\d{4}/, p("year")], Z: $, ZZ: $ };
|
|
361
|
-
function
|
|
362
|
-
var w,
|
|
363
|
-
w = y,
|
|
361
|
+
function T(y) {
|
|
362
|
+
var w, B;
|
|
363
|
+
w = y, B = l && l.formats;
|
|
364
364
|
for (var S = (y = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, z, v) {
|
|
365
365
|
var P = v && v.toUpperCase();
|
|
366
|
-
return z ||
|
|
366
|
+
return z || B[v] || f[v] || B[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(r, u, i) {
|
|
367
367
|
return u || i.slice(1);
|
|
368
368
|
});
|
|
369
369
|
})).match(a), F = S.length, H = 0; H < F; H += 1) {
|
|
@@ -389,8 +389,8 @@ var Le = { exports: {} };
|
|
|
389
389
|
}(z), z;
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
return function(y, w,
|
|
393
|
-
|
|
392
|
+
return function(y, w, B) {
|
|
393
|
+
B.p.customParseFormat = !0, y && y.parseTwoDigitYear && (O = y.parseTwoDigitYear);
|
|
394
394
|
var S = w.prototype, F = S.parse;
|
|
395
395
|
S.parse = function(H) {
|
|
396
396
|
var L = H.date, V = H.utc, E = H.args;
|
|
@@ -398,11 +398,11 @@ var Le = { exports: {} };
|
|
|
398
398
|
var A = E[1];
|
|
399
399
|
if (typeof A == "string") {
|
|
400
400
|
var x = E[2] === !0, z = E[3] === !0, v = x || z, P = E[2];
|
|
401
|
-
z && (P = E[2]), l = this.$locale(), !x && P && (l =
|
|
401
|
+
z && (P = E[2]), l = this.$locale(), !x && P && (l = B.Ls[P]), this.$d = function(s, d, o) {
|
|
402
402
|
try {
|
|
403
403
|
if (["x", "X"].indexOf(d) > -1)
|
|
404
404
|
return new Date((d === "X" ? 1e3 : 1) * s);
|
|
405
|
-
var m =
|
|
405
|
+
var m = T(d)(s), t = m.year, n = m.month, h = m.day, b = m.hours, C = m.minutes, j = m.seconds, G = m.milliseconds, Z = m.zone, K = /* @__PURE__ */ new Date(), R = h || (t || n ? 1 : K.getDate()), U = t || K.getFullYear(), J = 0;
|
|
406
406
|
t && !n || (J = n > 0 ? n - 1 : K.getMonth());
|
|
407
407
|
var te = b || 0, ae = C || 0, he = j || 0, ve = G || 0;
|
|
408
408
|
return Z ? new Date(Date.UTC(U, J, R, te, ae, he, ve + 60 * Z.offset * 1e3)) : o ? new Date(Date.UTC(U, J, R, te, ae, he, ve)) : new Date(U, J, R, te, ae, he, ve);
|
|
@@ -413,7 +413,7 @@ var Le = { exports: {} };
|
|
|
413
413
|
} else if (A instanceof Array)
|
|
414
414
|
for (var r = A.length, u = 1; u <= r; u += 1) {
|
|
415
415
|
E[1] = A[u - 1];
|
|
416
|
-
var i =
|
|
416
|
+
var i = B.apply(this, E);
|
|
417
417
|
if (i.isValid()) {
|
|
418
418
|
this.$d = i.$d, this.$L = i.$L, this.init();
|
|
419
419
|
break;
|
|
@@ -536,7 +536,7 @@ function ot({
|
|
|
536
536
|
});
|
|
537
537
|
return a || g ? `${a || "..."} - ${g || "..."}` : void 0;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Tt(e) {
|
|
540
540
|
return D(e).startOf("month").day();
|
|
541
541
|
}
|
|
542
542
|
function Ct(e, c) {
|
|
@@ -658,7 +658,7 @@ const dt = { class: "m-picker-container__wrapper" }, ct = /* @__PURE__ */ Me({
|
|
|
658
658
|
},
|
|
659
659
|
emits: ["update:model-value", "update:calendar-date", "close"],
|
|
660
660
|
setup(e, { emit: c }) {
|
|
661
|
-
const f = ne(() => import("./MazPickerTime-
|
|
661
|
+
const f = ne(() => import("./MazPickerTime-B2znRxr2.mjs")), a = ne(() => import("./MazPickerHeader-Vt86yzXS.mjs")), g = ne(() => import("./MazPickerCalendar-DnkNE-Am.mjs").then((p) => p.M)), k = e, M = c, l = I({
|
|
662
662
|
get: () => k.modelValue,
|
|
663
663
|
set: (p) => {
|
|
664
664
|
M("update:model-value", p);
|
|
@@ -821,11 +821,12 @@ const Dt = ({
|
|
|
821
821
|
borderActive: { type: Boolean, default: !1 },
|
|
822
822
|
leftIcon: { default: void 0 },
|
|
823
823
|
rightIcon: { default: void 0 },
|
|
824
|
-
roundedSize: { default: void 0 }
|
|
824
|
+
roundedSize: { default: void 0 },
|
|
825
|
+
block: { type: Boolean }
|
|
825
826
|
},
|
|
826
827
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
827
828
|
setup(e, { emit: c }) {
|
|
828
|
-
const f = ne(() => import("./MazBtn-
|
|
829
|
+
const f = ne(() => import("./MazBtn-CDQAW3fg.mjs")), a = ne(() => import("./MazIcon-Cxrv3_OK.mjs")), g = ne(() => import("./eye-slash-tjfxO0LK.mjs")), k = ne(() => import("./eye-DqO_Jx56.mjs")), M = ne(() => import("./check-CL-vqe79.mjs")), l = e, O = c, p = ee(!1), $ = ee(!1), Y = ee(), X = Dt({
|
|
829
830
|
componentName: "MazInput",
|
|
830
831
|
providedId: l.id
|
|
831
832
|
});
|
|
@@ -833,7 +834,7 @@ const Dt = ({
|
|
|
833
834
|
var r;
|
|
834
835
|
l.autoFocus && ((r = Y.value) == null || r.focus());
|
|
835
836
|
});
|
|
836
|
-
const N = I(() => l.type === "password"),
|
|
837
|
+
const N = I(() => l.type === "password"), T = I(() => p.value ? "text" : l.type), y = I(() => {
|
|
837
838
|
if (!l.noBorder) {
|
|
838
839
|
if (l.error)
|
|
839
840
|
return "maz-border-danger";
|
|
@@ -861,7 +862,7 @@ const Dt = ({
|
|
|
861
862
|
}
|
|
862
863
|
return "--default-border";
|
|
863
864
|
}
|
|
864
|
-
}), w = Ae(),
|
|
865
|
+
}), w = Ae(), B = I(() => {
|
|
865
866
|
const { required: r, placeholder: u } = l;
|
|
866
867
|
if (u)
|
|
867
868
|
return r ? `${u} *` : u;
|
|
@@ -904,13 +905,14 @@ const Dt = ({
|
|
|
904
905
|
"--is-disabled": r.disabled,
|
|
905
906
|
"--is-readonly": r.readonly,
|
|
906
907
|
"--has-z-2": r.error || r.warning || r.success,
|
|
907
|
-
"--has-state": r.error || r.warning || r.success
|
|
908
|
+
"--has-state": r.error || r.warning || r.success,
|
|
909
|
+
"--block": r.block
|
|
908
910
|
},
|
|
909
911
|
l.class,
|
|
910
912
|
`--${r.color}`,
|
|
911
913
|
`--${r.size}`
|
|
912
914
|
]]),
|
|
913
|
-
style:
|
|
915
|
+
style: Be(r.style)
|
|
914
916
|
},
|
|
915
917
|
[
|
|
916
918
|
oe(
|
|
@@ -939,16 +941,16 @@ const Dt = ({
|
|
|
939
941
|
], !0) : W("v-if", !0)
|
|
940
942
|
])) : W("v-if", !0),
|
|
941
943
|
oe("div", gt, [
|
|
942
|
-
De(oe("input",
|
|
944
|
+
De(oe("input", Te({
|
|
943
945
|
id: Q(X),
|
|
944
946
|
ref_key: "input",
|
|
945
947
|
ref: Y,
|
|
946
948
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => L.value = i),
|
|
947
|
-
type:
|
|
949
|
+
type: T.value,
|
|
948
950
|
name: r.name
|
|
949
951
|
}, r.$attrs, {
|
|
950
952
|
inputmode: r.inputmode,
|
|
951
|
-
placeholder:
|
|
953
|
+
placeholder: B.value,
|
|
952
954
|
"aria-label": r.label || r.placeholder,
|
|
953
955
|
disabled: r.disabled,
|
|
954
956
|
readonly: r.readonly,
|
|
@@ -1051,7 +1053,7 @@ const Dt = ({
|
|
|
1051
1053
|
/* CLASS, STYLE */
|
|
1052
1054
|
));
|
|
1053
1055
|
}
|
|
1054
|
-
}), St = /* @__PURE__ */ $e(Yt, [["__scopeId", "data-v-
|
|
1056
|
+
}), St = /* @__PURE__ */ $e(Yt, [["__scopeId", "data-v-78090be8"]]), zt = /* @__PURE__ */ Me({
|
|
1055
1057
|
inheritAttrs: !1,
|
|
1056
1058
|
__name: "MazPicker",
|
|
1057
1059
|
props: {
|
|
@@ -1144,14 +1146,15 @@ const Dt = ({
|
|
|
1144
1146
|
maxDate: { default: void 0 },
|
|
1145
1147
|
disabledWeekly: { default: () => [] },
|
|
1146
1148
|
disabledDates: { default: () => [] },
|
|
1147
|
-
disabledHours: { default: () => [] }
|
|
1149
|
+
disabledHours: { default: () => [] },
|
|
1150
|
+
block: { type: Boolean }
|
|
1148
1151
|
},
|
|
1149
1152
|
emits: ["update:model-value", "close"],
|
|
1150
1153
|
setup(e, { emit: c }) {
|
|
1151
1154
|
D.extend(Xe), D.extend(Ke);
|
|
1152
1155
|
const f = {
|
|
1153
1156
|
dateStyle: "full"
|
|
1154
|
-
}, a = e, g = ze(), k = ee(a.locale || "en-US"), M = I(() => a.locale ?? k.value), l = I(() => `mazPickerContainer-${g == null ? void 0 : g.uid}`), O = c, p = ee(), $ = I(() => a.time || a.onlyTime), Y = I(() => a.double && !a.onlyTime), X = I(() => !a.onlyTime), N = I(() => typeof
|
|
1157
|
+
}, a = e, g = ze(), k = ee(a.locale || "en-US"), M = I(() => a.locale ?? k.value), l = I(() => `mazPickerContainer-${g == null ? void 0 : g.uid}`), O = c, p = ee(), $ = I(() => a.time || a.onlyTime), Y = I(() => a.double && !a.onlyTime), X = I(() => !a.onlyTime), N = I(() => typeof T.value == "object");
|
|
1155
1158
|
xe(() => {
|
|
1156
1159
|
N.value && $.value && console.error("[maz-ui](MazPicker) You can't use time picker with range picker"), $.value && !(a.format.includes("h") || a.format.includes("H")) && console.error(
|
|
1157
1160
|
'[maz-ui](MazPicker) When you use the time picker, you must provided a format with time - Ex: "YYYY-MM-DD HH:mm"'
|
|
@@ -1159,7 +1162,7 @@ const Dt = ({
|
|
|
1159
1162
|
'[maz-ui](MazPicker) if you use the 12 format "h" or "hh", you must add "a" or "A" at the end of the format - Ex: "YYYY-MM-DD hh:mm a"'
|
|
1160
1163
|
);
|
|
1161
1164
|
});
|
|
1162
|
-
const
|
|
1165
|
+
const T = I({
|
|
1163
1166
|
get: () => a.modelValue && typeof a.modelValue == "object" ? {
|
|
1164
1167
|
start: a.modelValue.start ? D(a.modelValue.start, a.format).format() : void 0,
|
|
1165
1168
|
end: a.modelValue.end ? D(a.modelValue.end, a.format).format() : void 0
|
|
@@ -1174,24 +1177,24 @@ const Dt = ({
|
|
|
1174
1177
|
}), w = ee(((t) => {
|
|
1175
1178
|
const n = (typeof t == "object" ? t.start : t) ?? D().format();
|
|
1176
1179
|
return a.minDate && D(n).isBefore(a.minDate) ? a.minDate : a.maxDate && D(n).isAfter(a.maxDate) ? a.minDate ?? a.maxDate : n;
|
|
1177
|
-
})(
|
|
1180
|
+
})(T.value)), B = I(
|
|
1178
1181
|
() => a.format.includes("a") || a.format.includes("A") || a.format.includes("h")
|
|
1179
1182
|
), S = I(() => ({
|
|
1180
1183
|
...f,
|
|
1181
1184
|
...a.inputDateStyle,
|
|
1182
1185
|
timeStyle: a.inputDateStyle.timeStyle ?? $.value ? "short" : void 0,
|
|
1183
|
-
hour12: a.inputDateStyle.hour12 ??
|
|
1186
|
+
hour12: a.inputDateStyle.hour12 ?? B.value
|
|
1184
1187
|
})), F = I(() => {
|
|
1185
|
-
if (
|
|
1186
|
-
return a.onlyTime ?
|
|
1188
|
+
if (T.value)
|
|
1189
|
+
return a.onlyTime ? T.value ? ke(D(T.value).format(), M.value, {
|
|
1187
1190
|
timeStyle: S.value.timeStyle,
|
|
1188
1191
|
hour12: S.value.hour12
|
|
1189
|
-
}) : void 0 : typeof
|
|
1190
|
-
value:
|
|
1192
|
+
}) : void 0 : typeof T.value == "object" ? ot({
|
|
1193
|
+
value: T.value,
|
|
1191
1194
|
locale: M.value,
|
|
1192
1195
|
options: S.value
|
|
1193
1196
|
}) : we({
|
|
1194
|
-
value: D(
|
|
1197
|
+
value: D(T.value).format(),
|
|
1195
1198
|
locale: M.value,
|
|
1196
1199
|
options: S.value
|
|
1197
1200
|
});
|
|
@@ -1296,7 +1299,7 @@ const Dt = ({
|
|
|
1296
1299
|
O("update:model-value", ge(t, a.format));
|
|
1297
1300
|
};
|
|
1298
1301
|
pe(
|
|
1299
|
-
() => [
|
|
1302
|
+
() => [T.value, a.minDate, a.maxDate],
|
|
1300
1303
|
(t, n) => {
|
|
1301
1304
|
const h = t[0], b = n == null ? void 0 : n[0];
|
|
1302
1305
|
typeof h == "object" && (h.start || h.end) ? (!b || typeof b == "object" && (b.start !== h.start || b.end !== h.end)) && (o(h), s(h)) : typeof h == "string" && h !== b && (o(h), s(h));
|
|
@@ -1313,10 +1316,10 @@ const Dt = ({
|
|
|
1313
1316
|
},
|
|
1314
1317
|
{ immediate: !0 }
|
|
1315
1318
|
), pe(
|
|
1316
|
-
() => [
|
|
1319
|
+
() => [T.value, a.disabledWeekly, a.disabledDates],
|
|
1317
1320
|
(t) => {
|
|
1318
1321
|
const n = t[0], h = t[1], b = t[2];
|
|
1319
|
-
typeof n == "object" && (n.start || n.end) ? ((n.start && le({ value: n.start, disabledWeekly: h }) || n.start && ue({ value: n.start, disabledDates: b }) || n.end && le({ value: n.end, disabledWeekly: h }) || n.end && ue({ value: n.end, disabledDates: b })) && (
|
|
1322
|
+
typeof n == "object" && (n.start || n.end) ? ((n.start && le({ value: n.start, disabledWeekly: h }) || n.start && ue({ value: n.start, disabledDates: b }) || n.end && le({ value: n.end, disabledWeekly: h }) || n.end && ue({ value: n.end, disabledDates: b })) && (T.value = { start: void 0, end: void 0 }), (n.end && le({ value: n.end, disabledWeekly: h }) || n.end && ue({ value: n.end, disabledDates: b })) && (T.value = { start: n.start, end: void 0 })) : typeof n == "string" && (le({ value: n, disabledWeekly: h }) || ue({ value: n, disabledDates: b })) && (T.value = void 0);
|
|
1320
1323
|
},
|
|
1321
1324
|
{ immediate: !0 }
|
|
1322
1325
|
), (t, n) => De((q(), re(
|
|
@@ -1330,19 +1333,21 @@ const Dt = ({
|
|
|
1330
1333
|
`m-picker--${V.value.horizontal}`,
|
|
1331
1334
|
{
|
|
1332
1335
|
"--is-open": E.value,
|
|
1333
|
-
"--is-disabled": t.disabled
|
|
1336
|
+
"--is-disabled": t.disabled,
|
|
1337
|
+
"--block": t.block
|
|
1334
1338
|
},
|
|
1335
1339
|
a.class
|
|
1336
1340
|
]]),
|
|
1337
1341
|
role: "none",
|
|
1338
|
-
style:
|
|
1342
|
+
style: Be(t.style)
|
|
1339
1343
|
},
|
|
1340
1344
|
[
|
|
1341
|
-
!t.customElementSelector && !t.inline ? (q(), _(St,
|
|
1345
|
+
!t.customElementSelector && !t.inline ? (q(), _(St, Te({
|
|
1342
1346
|
key: 0,
|
|
1343
1347
|
"model-value": F.value,
|
|
1344
1348
|
readonly: ""
|
|
1345
1349
|
}, t.$attrs, {
|
|
1350
|
+
block: "",
|
|
1346
1351
|
autocomplete: "off",
|
|
1347
1352
|
class: "m-picker__input",
|
|
1348
1353
|
label: t.label,
|
|
@@ -1372,8 +1377,8 @@ const Dt = ({
|
|
|
1372
1377
|
De(se(ft, {
|
|
1373
1378
|
id: l.value,
|
|
1374
1379
|
ref: "PickerContainer",
|
|
1375
|
-
modelValue:
|
|
1376
|
-
"onUpdate:modelValue": n[2] || (n[2] = (h) =>
|
|
1380
|
+
modelValue: T.value,
|
|
1381
|
+
"onUpdate:modelValue": n[2] || (n[2] = (h) => T.value = h),
|
|
1377
1382
|
"calendar-date": w.value,
|
|
1378
1383
|
"onUpdate:calendarDate": n[3] || (n[3] = (h) => w.value = h),
|
|
1379
1384
|
"is-open": E.value,
|
|
@@ -1386,7 +1391,7 @@ const Dt = ({
|
|
|
1386
1391
|
"no-header": t.noHeader,
|
|
1387
1392
|
"min-date": t.minDate,
|
|
1388
1393
|
format: t.format,
|
|
1389
|
-
"is-hour12":
|
|
1394
|
+
"is-hour12": B.value,
|
|
1390
1395
|
"max-date": t.maxDate,
|
|
1391
1396
|
"disabled-weekly": t.disabledWeekly,
|
|
1392
1397
|
inline: t.inline,
|
|
@@ -1413,12 +1418,12 @@ const Dt = ({
|
|
|
1413
1418
|
[Q(et), P]
|
|
1414
1419
|
]);
|
|
1415
1420
|
}
|
|
1416
|
-
}), Ht = /* @__PURE__ */ $e(zt, [["__scopeId", "data-v-
|
|
1421
|
+
}), Ht = /* @__PURE__ */ $e(zt, [["__scopeId", "data-v-ba37f958"]]);
|
|
1417
1422
|
export {
|
|
1418
1423
|
Ht as M,
|
|
1419
1424
|
$e as _,
|
|
1420
1425
|
ke as a,
|
|
1421
|
-
|
|
1426
|
+
Tt as b,
|
|
1422
1427
|
rt as c,
|
|
1423
1428
|
D as d,
|
|
1424
1429
|
Vt as e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/MazPickerCalendar.css';
|
|
2
2
|
import { openBlock as d, createElementBlock as y, createElementVNode as N, defineComponent as P, computed as o, createVNode as k, withCtx as z, unref as $, createTextVNode as X, toDisplayString as H, useCssVars as ue, ref as O, watch as ce, TransitionGroup as me, Fragment as W, renderList as j, normalizeClass as U, createBlock as q, defineAsyncComponent as R, createCommentVNode as E, Transition as Z } from "vue";
|
|
3
|
-
import { d as D, c as Y, a as I, _ as A, g as ve, b as fe, i as w, e as ye, h as pe, j as he, k as be } from "./MazPicker-
|
|
4
|
-
import B from "./MazBtn-
|
|
3
|
+
import { d as D, c as Y, a as I, _ as A, g as ve, b as fe, i as w, e as ye, h as pe, j as he, k as be } from "./MazPicker-CfhI75aw.mjs";
|
|
4
|
+
import B from "./MazBtn-CDQAW3fg.mjs";
|
|
5
5
|
const De = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "1em",
|
|
@@ -424,7 +424,7 @@ const _ = { render: Ve }, we = { class: "m-picker-calendar-switcher" }, ze = /*
|
|
|
424
424
|
},
|
|
425
425
|
emits: ["update:model-value", "update:calendar-date"],
|
|
426
426
|
setup(r, { emit: g }) {
|
|
427
|
-
const e = R(() => import("./MazPickerMonthSwitcher-
|
|
427
|
+
const e = R(() => import("./MazPickerMonthSwitcher-zfKhsjW1.mjs")), p = R(() => import("./MazPickerYearSwitcher-CB339kof.mjs")), n = R(() => import("./MazPickerShortcuts-DUIKfOO8.mjs")), s = r, V = g, c = O(), S = o(() => s.modelValue && typeof s.modelValue == "object"), m = o(
|
|
428
428
|
() => !s.noShortcuts && s.shortcuts.length > 0 && S.value
|
|
429
429
|
), v = O(!1), i = O(!1), C = o({
|
|
430
430
|
get: () => s.modelValue,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/MazPickerHeader.css';
|
|
2
2
|
import { defineComponent as q, computed as l, ref as D, watch as j, openBlock as r, createElementBlock as o, normalizeClass as k, createVNode as d, TransitionGroup as c, withCtx as p, Fragment as y, renderList as f, toDisplayString as v, createCommentVNode as g } from "vue";
|
|
3
|
-
import { a as i, c as h, d as Z, _ as z } from "./MazPicker-
|
|
3
|
+
import { a as i, c as h, d as Z, _ as z } from "./MazPicker-CfhI75aw.mjs";
|
|
4
4
|
const B = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "m-picker-header__date"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/MazPickerMonthSwitcher.css';
|
|
2
2
|
import { defineComponent as g, computed as v, openBlock as l, createElementBlock as d, createElementVNode as m, createVNode as u, withModifiers as p, withCtx as h, unref as s, normalizeClass as f, Fragment as w, renderList as x, createBlock as D, createTextVNode as M, toDisplayString as S } from "vue";
|
|
3
|
-
import { d as C, c as n, a as c, i as k, _ as B } from "./MazPicker-
|
|
4
|
-
import z from "./MazBtn-
|
|
3
|
+
import { d as C, c as n, a as c, i as k, _ as B } from "./MazPicker-CfhI75aw.mjs";
|
|
4
|
+
import z from "./MazBtn-CDQAW3fg.mjs";
|
|
5
5
|
import { X as q } from "./x-mark-CKwYEQQZ.mjs";
|
|
6
6
|
const $ = { class: "maz-picker-month-switcher" }, N = { class: "maz-picker-month-switcher__header" }, V = /* @__PURE__ */ g({
|
|
7
7
|
__name: "MazPickerMonthSwitcher",
|
package/components/chunks/{MazPickerShortcuts-ppox8lXf.mjs → MazPickerShortcuts-DUIKfOO8.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/MazPickerShortcuts.css';
|
|
2
2
|
import { defineComponent as h, ref as f, watch as i, openBlock as l, createElementBlock as n, Fragment as v, renderList as y, createBlock as _, normalizeClass as k, withModifiers as S, withCtx as b, createTextVNode as z, toDisplayString as B } from "vue";
|
|
3
|
-
import g from "./MazBtn-
|
|
4
|
-
import { _ as x } from "./MazPicker-
|
|
3
|
+
import g from "./MazBtn-CDQAW3fg.mjs";
|
|
4
|
+
import { _ as x } from "./MazPicker-CfhI75aw.mjs";
|
|
5
5
|
const C = { class: "maz-picker-shortcuts" }, q = /* @__PURE__ */ h({
|
|
6
6
|
__name: "MazPickerShortcuts",
|
|
7
7
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/MazPickerTime.css';
|
|
2
2
|
import { defineComponent as W, ref as x, computed as n, watch as B, nextTick as h, openBlock as d, createElementBlock as _, normalizeClass as g, Fragment as w, renderList as M, createElementVNode as b, normalizeStyle as S, createBlock as E, withModifiers as G, withCtx as J, createTextVNode as K, toDisplayString as Q } from "vue";
|
|
3
|
-
import { d as i, f as $, s as R, _ as U } from "./MazPicker-
|
|
4
|
-
import X from "./MazBtn-
|
|
3
|
+
import { d as i, f as $, s as R, _ as U } from "./MazPicker-CfhI75aw.mjs";
|
|
4
|
+
import X from "./MazBtn-CDQAW3fg.mjs";
|
|
5
5
|
const Y = { class: "m-picker-time__column__items" }, Z = /* @__PURE__ */ W({
|
|
6
6
|
__name: "MazPickerTime",
|
|
7
7
|
props: {
|
package/components/chunks/{MazPickerYearSwitcher-BNBvipzs.mjs → MazPickerYearSwitcher-CB339kof.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../assets/MazPickerYearSwitcher.css';
|
|
2
2
|
import { defineComponent as C, ref as b, computed as w, openBlock as m, createElementBlock as _, createElementVNode as u, createVNode as s, withModifiers as l, withCtx as i, unref as o, Fragment as D, renderList as S, createBlock as Y, normalizeClass as B, createTextVNode as M, toDisplayString as q } from "vue";
|
|
3
|
-
import { d as c, a as I, i as y, _ as N } from "./MazPicker-
|
|
4
|
-
import d from "./MazBtn-
|
|
3
|
+
import { d as c, a as I, i as y, _ as N } from "./MazPicker-CfhI75aw.mjs";
|
|
4
|
+
import d from "./MazBtn-CDQAW3fg.mjs";
|
|
5
5
|
import { X as V } from "./x-mark-CKwYEQQZ.mjs";
|
|
6
|
-
import { C as z } from "./MazPickerCalendar-
|
|
6
|
+
import { C as z } from "./MazPickerCalendar-DnkNE-Am.mjs";
|
|
7
7
|
const E = { class: "maz-picker-year-switcher" }, L = { class: "maz-picker-year-switcher__header" }, P = { class: "maz-flex maz-space-x-2" }, T = { class: "maz-picker-year-switcher__main" }, X = /* @__PURE__ */ C({
|
|
8
8
|
__name: "MazPickerYearSwitcher",
|
|
9
9
|
props: {
|