@sysvale/cuida 3.39.0 → 3.39.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.
- package/dist/@sysvale/cuida.es.js +12 -8
- package/dist/@sysvale/cuida.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -29318,7 +29318,8 @@ const Rp = {
|
|
|
29318
29318
|
file: !!this.modelValue && !_i.exports.isEmpty(this.modelValue) ? this.modelValue : null,
|
|
29319
29319
|
isOnDragEnterState: !1,
|
|
29320
29320
|
isValid: !0,
|
|
29321
|
-
internalState: this.state
|
|
29321
|
+
internalState: this.state,
|
|
29322
|
+
invalidExtensionError: null
|
|
29322
29323
|
};
|
|
29323
29324
|
},
|
|
29324
29325
|
computed: {
|
|
@@ -29341,10 +29342,11 @@ const Rp = {
|
|
|
29341
29342
|
},
|
|
29342
29343
|
computedAllowedMessage() {
|
|
29343
29344
|
if (this.allowedExtensions) {
|
|
29344
|
-
if (this.
|
|
29345
|
-
|
|
29346
|
-
|
|
29347
|
-
|
|
29345
|
+
if (this.invalidExtensionError) {
|
|
29346
|
+
const e = this.allowedExtensions.split(",").length === 1 ? "" : "s";
|
|
29347
|
+
return `${`S\xE3o aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`;
|
|
29348
|
+
}
|
|
29349
|
+
return this.errorMessage;
|
|
29348
29350
|
} else if (this.state === "invalid")
|
|
29349
29351
|
return this.errorMessage;
|
|
29350
29352
|
return null;
|
|
@@ -29396,7 +29398,9 @@ const Rp = {
|
|
|
29396
29398
|
return !0;
|
|
29397
29399
|
const e = this.allowedExtensions.split(",");
|
|
29398
29400
|
let n = t.split(".");
|
|
29399
|
-
|
|
29401
|
+
n = n[n.length - 1].trim();
|
|
29402
|
+
const i = e.filter((s) => s === n).length > 0;
|
|
29403
|
+
return this.invalidExtensionError = !i, i;
|
|
29400
29404
|
},
|
|
29401
29405
|
handleFormFileChange(t) {
|
|
29402
29406
|
this.isValid = "invalid";
|
|
@@ -29415,7 +29419,7 @@ const Rp = {
|
|
|
29415
29419
|
}
|
|
29416
29420
|
}, X4 = () => {
|
|
29417
29421
|
ln((t) => ({
|
|
29418
|
-
|
|
29422
|
+
d2504baa: t.textAlignmentResolver
|
|
29419
29423
|
}));
|
|
29420
29424
|
}, J4 = Rp.setup;
|
|
29421
29425
|
Rp.setup = J4 ? (t, e) => (X4(), J4(t, e)) : X4;
|
|
@@ -29525,7 +29529,7 @@ function kse(t, e, n, i, s, r) {
|
|
|
29525
29529
|
s.internalState === "invalid" ? (y(), M("div", Cse, Z(r.computedAllowedMessage), 1)) : K("", !0)
|
|
29526
29530
|
], 64);
|
|
29527
29531
|
}
|
|
29528
|
-
const Mse = /* @__PURE__ */ me(vse, [["render", kse], ["__scopeId", "data-v-
|
|
29532
|
+
const Mse = /* @__PURE__ */ me(vse, [["render", kse], ["__scopeId", "data-v-94ce0691"]]), Np = [
|
|
29529
29533
|
{
|
|
29530
29534
|
name: "turquoise",
|
|
29531
29535
|
hex: "#3CACDD",
|