maz-ui 3.29.4 → 3.29.5

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,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(...a) {
13
+ return function(...n) {
14
14
  clearTimeout(e), e = setTimeout(() => {
15
- t.apply(this, a);
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, a = r, u = F();
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: (n) => a("input", n)
88
- }), x = (n) => {
89
- a("focus", n), i.value = !0;
90
- }, S = (n) => {
91
- a("blur", n), i.value = !1;
92
- }, T = (n) => a("change", n), c = o(() => e.label || e.hint), E = o(() => c.value && (i.value || p.value)), V = o(() => {
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 (n, v) => (m(), f(
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
- }, n.$attrs, {
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 [a, u] of r)
179
- e[a] = u;
182
+ for (const [n, u] of r)
183
+ e[n] = u;
180
184
  return e;
181
- }, _ = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-f5263337"]]);
185
+ }, _ = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-26ae4abd"]]);
182
186
  export {
183
187
  _ as default
184
188
  };