maz-ui 3.49.3 → 3.50.1

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 (52) hide show
  1. package/components/MazAnimatedCounter.d.ts +9 -1
  2. package/components/MazAnimatedCounter.mjs +82 -63
  3. package/components/MazAnimatedElement.d.ts +5 -0
  4. package/components/MazAnimatedElement.mjs +18 -19
  5. package/components/MazAnimatedText.d.ts +5 -0
  6. package/components/MazAnimatedText.mjs +57 -75
  7. package/components/MazCircularProgressBar.d.ts +20 -4
  8. package/components/MazCircularProgressBar.mjs +177 -134
  9. package/components/MazPicker.mjs +1 -1
  10. package/components/MazSlider.mjs +4 -4
  11. package/components/MazTable.mjs +1 -1
  12. package/components/MazTableCell.mjs +1 -1
  13. package/components/MazTableRow.mjs +1 -1
  14. package/components/assets/{MazAnimatedCounter.D9UJwqkf.css → MazAnimatedCounter.DTzaNX_Y.css} +1 -1
  15. package/components/assets/{MazAnimatedElement.XhNfpNyM.css → MazAnimatedElement.BkcmWrHr.css} +1 -1
  16. package/components/assets/MazAnimatedText.B91Kt1PP.css +1 -0
  17. package/components/assets/{MazCircularProgressBar.DYOxvMCy.css → MazCircularProgressBar.Cq-jEps6.css} +1 -1
  18. package/components/assets/{MazPicker.BlZ4a3b1.css → MazPicker.DMFpwla9.css} +1 -1
  19. package/components/assets/{MazSlider.CsKD3vKO.css → MazSlider.Dlk7nygF.css} +1 -1
  20. package/components/assets/MazTable.zJ2YXDrE.css +1 -0
  21. package/components/assets/{MazTableCell.DINPNnIA.css → MazTableCell.BKBZEOQb.css} +1 -1
  22. package/components/assets/{MazTableRow.CtlU4Bey.css → MazTableRow.CtZjgh-L.css} +1 -1
  23. package/components/chunks/{MazBtn.DmpYZZhK.mjs → MazBtn.B6UiTgcv.mjs} +2 -2
  24. package/components/chunks/{MazCheckbox.CFDDHjBj.mjs → MazCheckbox.CYeDQcMp.mjs} +1 -1
  25. package/components/chunks/{MazInput.B_V7iI9q.mjs → MazInput.CwPPyy_i.mjs} +2 -2
  26. package/components/chunks/{MazLoadingBar.J84kR8Ts.mjs → MazLoadingBar.LkmX0AHd.mjs} +1 -1
  27. package/components/chunks/MazPicker.SL-MdmD5.mjs +2752 -0
  28. package/components/chunks/{MazSelect.vuuMDnLv.mjs → MazSelect.CZ8-FJbx.mjs} +3 -3
  29. package/components/chunks/{MazSpinner.DQVV537L.mjs → MazSpinner.B2KPFXAm.mjs} +1 -1
  30. package/components/chunks/{MazSpinner.D9YU6PN7.mjs → MazSpinner.BabK9PkN.mjs} +1 -1
  31. package/components/chunks/{MazTable.Ch8nGfGk.mjs → MazTable.BtL5to1U.mjs} +41 -41
  32. package/components/chunks/{MazTableCell.JKCc-pLM.mjs → MazTableCell.CN6g3CD7.mjs} +1 -1
  33. package/components/chunks/{MazTableRow.Brc02APS.mjs → MazTableRow.BjoUmiPj.mjs} +1 -1
  34. package/components/chunks/{MazTableTitle.CwXDPRXA.mjs → MazTableTitle.Dh-2buat.mjs} +1 -1
  35. package/nuxt/index.json +1 -1
  36. package/package.json +1 -1
  37. package/types/components/MazAnimatedCounter.vue.d.ts +9 -1
  38. package/types/components/MazAnimatedElement.vue.d.ts +5 -0
  39. package/types/components/MazAnimatedText.vue.d.ts +5 -0
  40. package/types/components/MazCircularProgressBar.vue.d.ts +20 -4
  41. package/types/modules/helpers/index.d.ts +1 -1
  42. package/components/assets/MazAnimatedText.ztrJF5LY.css +0 -1
  43. package/components/assets/MazPickerMonthSwitcher.Bnp_FbY4.css +0 -1
  44. package/components/assets/MazPickerShortcuts.DxPdP3Ky.css +0 -1
  45. package/components/assets/MazPickerYearSwitcher.BTPNT2u1.css +0 -1
  46. package/components/assets/MazTable.CLzaJZ6_.css +0 -1
  47. package/components/chunks/MazPicker.z_H1w2TI.mjs +0 -2482
  48. package/components/chunks/MazPickerMonthSwitcher.D42-_FwL.mjs +0 -95
  49. package/components/chunks/MazPickerShortcuts.D1UfHxwB.mjs +0 -72
  50. package/components/chunks/MazPickerYearSwitcher.BfS0Lz92.mjs +0 -105
  51. package/components/chunks/x-mark.wyoa-ywi.mjs +0 -29
  52. /package/types/modules/helpers/{check-availability.d.ts → checkAvailability.d.ts} +0 -0
@@ -1,95 +0,0 @@
1
- import { defineComponent as g, computed as M, openBlock as l, createElementBlock as d, createElementVNode as m, createVNode as u, withModifiers as h, withCtx as p, unref as n, normalizeClass as f, Fragment as v, renderList as w, createBlock as x, createTextVNode as D, toDisplayString as S } from "vue";
2
- import { d as C, c as s, a as c, M as k, i as z, _ as B } from "./MazPicker.z_H1w2TI.mjs";
3
- import { X as q } from "./x-mark.wyoa-ywi.mjs";
4
- import '../assets/MazPickerMonthSwitcher.Bnp_FbY4.css';const $ = { class: "maz-picker-month-switcher" }, N = { class: "maz-picker-month-switcher__header" }, V = /* @__PURE__ */ g({
5
- __name: "MazPickerMonthSwitcher",
6
- props: {
7
- calendarDate: { type: String, required: !0 },
8
- color: { type: String, required: !0 },
9
- locale: { type: String, required: !0 },
10
- double: { type: Boolean, required: !0 }
11
- },
12
- emits: ["update:calendar-date", "close"],
13
- setup(r, { emit: b }) {
14
- const a = r, i = b, _ = M(() => Array.from({ length: 12 }, (o, e) => e).map((o) => {
15
- const e = C(a.calendarDate).set("month", o);
16
- return a.double ? {
17
- label: `${s(
18
- c(e.format(), a.locale, {
19
- month: "short"
20
- })
21
- )} - ${s(
22
- c(e.add(1, "month").format(), a.locale, {
23
- month: "short"
24
- })
25
- )}`,
26
- date: e
27
- } : {
28
- label: s(
29
- c(e.format(), a.locale, {
30
- month: "long"
31
- })
32
- ),
33
- date: e
34
- };
35
- }));
36
- function y(o) {
37
- i("update:calendar-date", o.format()), i("close");
38
- }
39
- return (o, e) => (l(), d("div", $, [
40
- m("div", N, [
41
- u(k, {
42
- size: "xs",
43
- color: "transparent",
44
- type: "button",
45
- onClick: e[0] || (e[0] = h((t) => o.$emit("close", t), ["stop"]))
46
- }, {
47
- default: p(() => [
48
- u(n(q), { class: "maz-text-lg" })
49
- ]),
50
- _: 1
51
- /* STABLE */
52
- })
53
- ]),
54
- m(
55
- "div",
56
- {
57
- class: f(["maz-picker-month-switcher__main", { "--has-double": r.double }])
58
- },
59
- [
60
- (l(!0), d(
61
- v,
62
- null,
63
- w(_.value, (t) => (l(), x(k, {
64
- key: t.label,
65
- size: a.double ? "sm" : "xs",
66
- class: f({
67
- "--is-selected": n(z)(t.date, r.calendarDate, "month")
68
- }),
69
- color: n(z)(t.date, r.calendarDate, "month") ? r.color : "transparent",
70
- type: "button",
71
- onClick: h((E) => y(t.date), ["stop"])
72
- }, {
73
- default: p(() => [
74
- D(
75
- S(t.label),
76
- 1
77
- /* TEXT */
78
- )
79
- ]),
80
- _: 2
81
- /* DYNAMIC */
82
- }, 1032, ["size", "class", "color", "onClick"]))),
83
- 128
84
- /* KEYED_FRAGMENT */
85
- ))
86
- ],
87
- 2
88
- /* CLASS */
89
- )
90
- ]));
91
- }
92
- }), j = /* @__PURE__ */ B(V, [["__scopeId", "data-v-e125d63c"]]);
93
- export {
94
- j as default
95
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as h, ref as f, watch as n, openBlock as l, createElementBlock as d, 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";
2
- import { M as g, _ as x } from "./MazPicker.z_H1w2TI.mjs";
3
- import '../assets/MazPickerShortcuts.DxPdP3Ky.css';const C = { class: "maz-picker-shortcuts" }, M = /* @__PURE__ */ h({
4
- __name: "MazPickerShortcuts",
5
- props: {
6
- color: { type: String, required: !0 },
7
- modelValue: {
8
- type: [String, Object],
9
- default: void 0
10
- },
11
- shortcuts: {
12
- type: Array,
13
- required: !0
14
- },
15
- double: { type: Boolean, required: !0 },
16
- shortcut: { type: String, default: void 0 },
17
- disabled: { type: Boolean, required: !0 }
18
- },
19
- emits: ["update:model-value"],
20
- setup(c, { emit: i }) {
21
- const r = c, m = i, s = f(r.shortcut);
22
- function u(o, e) {
23
- s.value = e, m("update:model-value", o);
24
- }
25
- return n(
26
- () => r.modelValue,
27
- (o) => {
28
- const e = o;
29
- e != null && e.end || (s.value = void 0);
30
- }
31
- ), n(
32
- () => r.shortcut,
33
- (o) => {
34
- const e = r.shortcuts.find(({ identifier: t }) => o === t);
35
- if (e) {
36
- const { value: t, identifier: a } = e;
37
- u(t, a);
38
- }
39
- },
40
- { immediate: !0 }
41
- ), (o, e) => (l(), d("div", C, [
42
- (l(!0), d(
43
- v,
44
- null,
45
- y(c.shortcuts, ({ identifier: t, label: a, value: p }) => (l(), _(g, {
46
- key: t,
47
- type: "button",
48
- size: "sm",
49
- disabled: c.disabled,
50
- color: t === s.value ? r.color : "transparent",
51
- class: k({ "--is-selected": t === s.value }),
52
- onClick: S((q) => u(p, t), ["stop"])
53
- }, {
54
- default: b(() => [
55
- z(
56
- B(a),
57
- 1
58
- /* TEXT */
59
- )
60
- ]),
61
- _: 2
62
- /* DYNAMIC */
63
- }, 1032, ["disabled", "color", "class", "onClick"]))),
64
- 128
65
- /* KEYED_FRAGMENT */
66
- ))
67
- ]));
68
- }
69
- }), P = /* @__PURE__ */ x(M, [["__scopeId", "data-v-3b44c0d0"]]);
70
- export {
71
- P as default
72
- };
@@ -1,105 +0,0 @@
1
- import { defineComponent as C, ref as b, computed as w, openBlock as u, createElementBlock as _, createElementVNode as m, createVNode as s, withModifiers as l, withCtx as i, unref as o, Fragment as D, renderList as S, createBlock as Y, normalizeClass as M, createTextVNode as B, toDisplayString as q } from "vue";
2
- import { d as c, a as I, M as d, C as y, i as z, _ as N } from "./MazPicker.z_H1w2TI.mjs";
3
- import { X as V } from "./x-mark.wyoa-ywi.mjs";
4
- import '../assets/MazPickerYearSwitcher.BTPNT2u1.css';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({
5
- __name: "MazPickerYearSwitcher",
6
- props: {
7
- color: { type: String, required: !0 },
8
- locale: { type: String, required: !0 },
9
- calendarDate: { type: String, required: !0 }
10
- },
11
- emits: ["update:calendar-date", "close"],
12
- setup(n, { emit: v }) {
13
- const p = n, f = v, t = b(p.calendarDate), k = w(() => Array.from({ length: 15 }, (a, r) => r - 7).map((a) => {
14
- const r = c(t.value).get("year"), e = c(t.value).set("year", r + a);
15
- return {
16
- label: I(e.format(), p.locale, {
17
- year: "numeric"
18
- }),
19
- date: e
20
- };
21
- }));
22
- function h(a) {
23
- f("update:calendar-date", c(a).format()), f("close");
24
- }
25
- function x() {
26
- t.value = c(t.value).subtract(7, "year").format();
27
- }
28
- function g() {
29
- t.value = c(t.value).add(7, "year").format();
30
- }
31
- return (a, r) => (u(), _("div", E, [
32
- m("div", L, [
33
- m("div", P, [
34
- s(d, {
35
- size: "xs",
36
- color: "transparent",
37
- type: "button",
38
- onClick: l(x, ["stop"])
39
- }, {
40
- default: i(() => [
41
- s(o(y), { class: "maz-text-lg" })
42
- ]),
43
- _: 1
44
- /* STABLE */
45
- }),
46
- s(d, {
47
- size: "xs",
48
- color: "transparent",
49
- type: "button",
50
- onClick: l(g, ["stop"])
51
- }, {
52
- default: i(() => [
53
- s(o(y), { class: "maz-rotate-180 maz-text-lg" })
54
- ]),
55
- _: 1
56
- /* STABLE */
57
- })
58
- ]),
59
- s(d, {
60
- size: "xs",
61
- color: "transparent",
62
- type: "button",
63
- onClick: r[0] || (r[0] = l((e) => a.$emit("close", e), ["stop"]))
64
- }, {
65
- default: i(() => [
66
- s(o(V), { class: "maz-text-lg" })
67
- ]),
68
- _: 1
69
- /* STABLE */
70
- })
71
- ]),
72
- m("div", T, [
73
- (u(!0), _(
74
- D,
75
- null,
76
- S(k.value, (e) => (u(), Y(d, {
77
- key: e.label,
78
- size: "sm",
79
- type: "button",
80
- class: M({
81
- "--is-selected": o(z)(e.date, n.calendarDate, "year")
82
- }),
83
- color: o(z)(e.date, n.calendarDate, "year") ? n.color : "transparent",
84
- onClick: l(($) => h(e.date), ["stop"])
85
- }, {
86
- default: i(() => [
87
- B(
88
- q(e.label),
89
- 1
90
- /* TEXT */
91
- )
92
- ]),
93
- _: 2
94
- /* DYNAMIC */
95
- }, 1032, ["class", "color", "onClick"]))),
96
- 128
97
- /* KEYED_FRAGMENT */
98
- ))
99
- ])
100
- ]));
101
- }
102
- }), G = /* @__PURE__ */ N(X, [["__scopeId", "data-v-1d7d1729"]]);
103
- export {
104
- G as default
105
- };
@@ -1,29 +0,0 @@
1
- import { openBlock as o, createElementBlock as t, createElementVNode as n } from "vue";
2
- const r = {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- width: "1em",
5
- height: "1em",
6
- fill: "none",
7
- viewBox: "0 0 24 24"
8
- };
9
- function l(i, e) {
10
- return o(), t("svg", r, e[0] || (e[0] = [
11
- n(
12
- "path",
13
- {
14
- stroke: "currentColor",
15
- "stroke-linecap": "round",
16
- "stroke-linejoin": "round",
17
- "stroke-width": "1.5",
18
- d: "M6 18 18 6M6 6l12 12"
19
- },
20
- null,
21
- -1
22
- /* HOISTED */
23
- )
24
- ]));
25
- }
26
- const c = { render: l };
27
- export {
28
- c as X
29
- };