@comercti/react-components-hmg 0.24.4 → 0.24.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.
package/comerc-style-guide.es.js
CHANGED
|
@@ -4147,15 +4147,11 @@ const ql = /* @__PURE__ */ pt(Rl, [["render", Nl]]), Ul = ["id", "checked", "dis
|
|
|
4147
4147
|
B(p) || (z = y.dataTransfer) != null && z.items && (Array.from(y.dataTransfer.items).some(
|
|
4148
4148
|
(te) => te.kind === "file" && !e.accept.includes(te.type)
|
|
4149
4149
|
) ? (o.value = !0, n.value = "Arquivo inválido") : l.value = !0);
|
|
4150
|
-
}, j = (y) =>
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
(te) => Z.name === te.file.name && Z.size === te.file.size && Z.lastModified === te.file.lastModified
|
|
4156
|
-
)
|
|
4157
|
-
) ? (n.value = "Arquivo já selecionado", o.value = !0, !0) : !1;
|
|
4158
|
-
}, E = (y, p) => {
|
|
4150
|
+
}, j = (y) => y && (Array.isArray(y) ? y : y instanceof FileList ? Array.from(y) : [y]).some(
|
|
4151
|
+
(Z) => s.value.some(
|
|
4152
|
+
(te) => Z.name === te.file.name && Z.size === te.file.size && Z.lastModified === te.file.lastModified
|
|
4153
|
+
)
|
|
4154
|
+
) ? (n.value = "Arquivo já selecionado", o.value = !0, !0) : !1, E = (y, p) => {
|
|
4159
4155
|
$();
|
|
4160
4156
|
const z = y.target;
|
|
4161
4157
|
j(z.files) || z != null && z.files && Array.from(z.files).forEach((Z) => {
|
|
@@ -4218,7 +4214,7 @@ const ql = /* @__PURE__ */ pt(Rl, [["render", Nl]]), Ul = ["id", "checked", "dis
|
|
|
4218
4214
|
), K(
|
|
4219
4215
|
() => e.removableFileName,
|
|
4220
4216
|
(y) => {
|
|
4221
|
-
y && (s.value = s.value.filter((p) => p.file.name !== y), d.value = [], o.value = !1, n.value = null,
|
|
4217
|
+
y && (s.value = s.value.filter((p) => p.file.name !== y), d.value = [], o.value = !1, n.value = null, a.value && (a.value.value = null));
|
|
4222
4218
|
},
|
|
4223
4219
|
{ immediate: !0 }
|
|
4224
4220
|
), {
|