maz-ui 3.29.4 → 3.29.6
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/MazChart.d.ts +2 -1
- package/components/MazTextarea.d.ts +9 -0
- package/components/MazTextarea.mjs +19 -15
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/modules/chunks/{MazBtn-23G6MO1u.mjs → MazBtn-6X33pE4R.mjs} +2 -2
- package/modules/chunks/{MazBtn-BVge7L6B.cjs → MazBtn-Pvva3xxJ.cjs} +1 -1
- package/modules/chunks/{MazIcon-tK6rWxmD.cjs → MazIcon-nsdEk_bi.cjs} +1 -1
- package/modules/chunks/{MazIcon-3ecUGYyh.mjs → MazIcon-pUHpzvQR.mjs} +1 -1
- package/modules/chunks/{MazSpinner-Yp72xl7m.cjs → MazSpinner-bRHruIu5.cjs} +1 -1
- package/modules/chunks/{MazSpinner-CKpey7-9.mjs → MazSpinner-jE6mxCt9.mjs} +1 -1
- package/modules/chunks/index-9HcOUWhm.cjs +124 -0
- package/modules/chunks/{index-w7bAz52b.mjs → index-UXaYPYFG.mjs} +191 -183
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +7 -7
- package/tailwindcss/utils/colors.ts +1 -1
- package/tailwindcss/variables/utilities.ts +2 -2
- package/types/components/MazChart.vue.d.ts +2 -1
- package/types/components/MazTextarea.vue.d.ts +9 -0
- package/types/tailwindcss/tailwind.config.d.ts +1 -20
- package/types/tailwindcss/utils/colors.d.ts +1 -20
- package/modules/chunks/index-t7LFFnFX.cjs +0 -124
package/components/MazChart.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type ChartData } from 'chart.js';
|
|
2
|
+
import { type ChartType, type ChartData, type UpdateMode } from 'chart.js';
|
|
3
|
+
export type { ChartType, ChartData, UpdateMode };
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
/**
|
|
5
6
|
* Chart.js chart type
|
|
@@ -26,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
type: StringConstructor;
|
|
27
27
|
default: undefined;
|
|
28
28
|
};
|
|
29
|
+
placeholder: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
29
33
|
required: {
|
|
30
34
|
type: BooleanConstructor;
|
|
31
35
|
default: boolean;
|
|
@@ -88,6 +92,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
92
|
type: StringConstructor;
|
|
89
93
|
default: undefined;
|
|
90
94
|
};
|
|
95
|
+
placeholder: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
91
99
|
required: {
|
|
92
100
|
type: BooleanConstructor;
|
|
93
101
|
default: boolean;
|
|
@@ -134,6 +142,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
142
|
class: any;
|
|
135
143
|
disabled: boolean;
|
|
136
144
|
name: string;
|
|
145
|
+
placeholder: string;
|
|
137
146
|
required: boolean;
|
|
138
147
|
id: string;
|
|
139
148
|
error: boolean;
|
|
@@ -10,9 +10,9 @@ const H = ({
|
|
|
10
10
|
}) => o(() => e ?? `${t}-${r == null ? void 0 : r.uid}`);
|
|
11
11
|
function D(t, r) {
|
|
12
12
|
let e;
|
|
13
|
-
return function(...
|
|
13
|
+
return function(...n) {
|
|
14
14
|
clearTimeout(e), e = setTimeout(() => {
|
|
15
|
-
t.apply(this,
|
|
15
|
+
t.apply(this, n);
|
|
16
16
|
}, r);
|
|
17
17
|
};
|
|
18
18
|
}
|
|
@@ -37,7 +37,7 @@ class P {
|
|
|
37
37
|
this.element.style.height = "auto", this.element.style.overflow = "hidden", this.element.style.height = `${this.element.scrollHeight}px`;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q = /* @__PURE__ */ q({
|
|
40
|
+
const G = ["for"], J = { key: 0 }, K = ["id", "placeholder", "name", "disabled", "required"], Q = /* @__PURE__ */ q({
|
|
41
41
|
inheritAttrs: !1,
|
|
42
42
|
__name: "MazTextarea",
|
|
43
43
|
props: {
|
|
@@ -56,6 +56,7 @@ const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q
|
|
|
56
56
|
id: { type: String, default: void 0 },
|
|
57
57
|
name: { type: String, default: "MazTextarea" },
|
|
58
58
|
label: { type: String, default: void 0 },
|
|
59
|
+
placeholder: { type: String, default: void 0 },
|
|
59
60
|
required: { type: Boolean, default: !1 },
|
|
60
61
|
disabled: { type: Boolean, default: !1 },
|
|
61
62
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -70,7 +71,7 @@ const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q
|
|
|
70
71
|
},
|
|
71
72
|
emits: ["input", "focus", "blur", "change"],
|
|
72
73
|
setup(t, { emit: r }) {
|
|
73
|
-
const e = t,
|
|
74
|
+
const e = t, n = r, u = F();
|
|
74
75
|
let s;
|
|
75
76
|
const h = H({
|
|
76
77
|
componentName: "MazTextarea",
|
|
@@ -84,12 +85,14 @@ const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q
|
|
|
84
85
|
});
|
|
85
86
|
const b = o({
|
|
86
87
|
get: () => e.modelValue,
|
|
87
|
-
set: (
|
|
88
|
-
}), x = (
|
|
89
|
-
|
|
90
|
-
}, S = (
|
|
91
|
-
|
|
92
|
-
}, T = (
|
|
88
|
+
set: (a) => n("input", a)
|
|
89
|
+
}), x = (a) => {
|
|
90
|
+
n("focus", a), i.value = !0;
|
|
91
|
+
}, S = (a) => {
|
|
92
|
+
n("blur", a), i.value = !1;
|
|
93
|
+
}, T = (a) => n("change", a), c = o(() => e.label || e.hint), E = o(
|
|
94
|
+
() => c.value && (i.value || p.value || !!e.placeholder)
|
|
95
|
+
), V = o(() => {
|
|
93
96
|
if (e.error)
|
|
94
97
|
return "maz-border-danger";
|
|
95
98
|
if (e.success)
|
|
@@ -116,7 +119,7 @@ const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q
|
|
|
116
119
|
}
|
|
117
120
|
return "--default-border";
|
|
118
121
|
});
|
|
119
|
-
return (
|
|
122
|
+
return (a, v) => (m(), f(
|
|
120
123
|
"div",
|
|
121
124
|
{
|
|
122
125
|
class: z(["m-textarea", [
|
|
@@ -155,8 +158,9 @@ const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q
|
|
|
155
158
|
id: w(h),
|
|
156
159
|
ref_key: "TextareaElement",
|
|
157
160
|
ref: d
|
|
158
|
-
},
|
|
161
|
+
}, a.$attrs, {
|
|
159
162
|
"onUpdate:modelValue": v[0] || (v[0] = (B) => b.value = B),
|
|
163
|
+
placeholder: t.placeholder,
|
|
160
164
|
name: t.name,
|
|
161
165
|
disabled: t.disabled,
|
|
162
166
|
required: t.required,
|
|
@@ -175,10 +179,10 @@ const G = ["for"], J = { key: 0 }, K = ["id", "name", "disabled", "required"], Q
|
|
|
175
179
|
}
|
|
176
180
|
}), W = (t, r) => {
|
|
177
181
|
const e = t.__vccOpts || t;
|
|
178
|
-
for (const [
|
|
179
|
-
e[
|
|
182
|
+
for (const [n, u] of r)
|
|
183
|
+
e[n] = u;
|
|
180
184
|
return e;
|
|
181
|
-
}, _ = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-
|
|
185
|
+
}, _ = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-26ae4abd"]]);
|
|
182
186
|
export {
|
|
183
187
|
_ as default
|
|
184
188
|
};
|