@rebilly/revel 13.1.4 → 13.1.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/CHANGELOG.md +4 -2
- package/dist/revel.mjs +53 -34
- package/dist/revel.umd.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
## 13.1.
|
|
1
|
+
## 13.1.6 (2026-10-13)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **recomm, revel:** list Files API image types on logo dropzones ([#28942](https://github.com/Rebilly/rebilly/pull/28942))
|
package/dist/revel.mjs
CHANGED
|
@@ -9317,6 +9317,10 @@ function ow(e) {
|
|
|
9317
9317
|
"image/*": "All image types",
|
|
9318
9318
|
"video/*": "All video types",
|
|
9319
9319
|
"audio/*": "All audio types",
|
|
9320
|
+
"image/jpeg": "JPEG",
|
|
9321
|
+
"image/png": "PNG",
|
|
9322
|
+
"image/gif": "GIF",
|
|
9323
|
+
"image/webp": "WEBP",
|
|
9320
9324
|
"application/pdf": "PDF",
|
|
9321
9325
|
"application/zip": "ZIP",
|
|
9322
9326
|
"application/msword": "DOC",
|
|
@@ -9424,31 +9428,43 @@ var cw = { class: "r-file-dropzone-fields" }, lw = { class: "r-file-dropzone-hea
|
|
|
9424
9428
|
return YC(e) ? !0 : e.size <= r.maxFileSize * 1024 * 1024;
|
|
9425
9429
|
}
|
|
9426
9430
|
function E(e) {
|
|
9427
|
-
h.invalidFiles = [];
|
|
9428
|
-
let t =
|
|
9429
|
-
if (!t || !t.length) return;
|
|
9430
|
-
let n = r.accept ? Array.from(t).filter((e) => {
|
|
9431
|
+
if (h.invalidFiles = [], !e || !e.length) return;
|
|
9432
|
+
let t = r.accept ? Array.from(e).filter((e) => {
|
|
9431
9433
|
let t = w(e, r.accept);
|
|
9432
9434
|
return t || h.invalidFiles.push({
|
|
9433
9435
|
name: e.name,
|
|
9434
9436
|
type: "format"
|
|
9435
9437
|
}), t;
|
|
9436
|
-
}) :
|
|
9438
|
+
}) : e, n = r.maxFileSize ? Array.from(t).filter((e) => {
|
|
9437
9439
|
let t = T(e);
|
|
9438
9440
|
return t || h.invalidFiles.push({
|
|
9439
9441
|
name: e.name,
|
|
9440
9442
|
type: "size"
|
|
9441
9443
|
}), t;
|
|
9442
|
-
}) :
|
|
9443
|
-
|
|
9444
|
+
}) : t;
|
|
9445
|
+
n.length !== 0 && (g.value = r.multiple ? [...g.value, ...n] : n);
|
|
9444
9446
|
}
|
|
9445
9447
|
function O(e) {
|
|
9446
|
-
h.dropzoneHighlight = !1, E(e), f.value && (f.value.value = "");
|
|
9448
|
+
h.dropzoneHighlight = !1, E(e.target?.files), f.value && (f.value.value = "");
|
|
9447
9449
|
}
|
|
9448
|
-
function A(
|
|
9450
|
+
function A() {
|
|
9451
|
+
r.disabled || (h.dropzoneHighlight = !0);
|
|
9452
|
+
}
|
|
9453
|
+
function j(e) {
|
|
9454
|
+
e.currentTarget.contains(e.relatedTarget) || (h.dropzoneHighlight = !1);
|
|
9455
|
+
}
|
|
9456
|
+
function P(e) {
|
|
9457
|
+
h.dropzoneHighlight = !1, r.disabled || E(e.dataTransfer?.files);
|
|
9458
|
+
}
|
|
9459
|
+
function F(e) {
|
|
9449
9460
|
g.value = g.value.filter((t, n) => n !== e);
|
|
9450
9461
|
}
|
|
9451
|
-
return (t, n) => (D(), s("div", {
|
|
9462
|
+
return (t, n) => (D(), s("div", {
|
|
9463
|
+
class: b(["r-file-dropzone", y.value]),
|
|
9464
|
+
onDragover: K(A, ["prevent"]),
|
|
9465
|
+
onDragleave: j,
|
|
9466
|
+
onDrop: K(P, ["prevent"])
|
|
9467
|
+
}, [
|
|
9452
9468
|
N(t.$slots, "default", {}, () => [c("div", cw, [
|
|
9453
9469
|
d(Q, {
|
|
9454
9470
|
icon: "upload",
|
|
@@ -9461,13 +9477,13 @@ var cw = { class: "r-file-dropzone-fields" }, lw = { class: "r-file-dropzone-hea
|
|
|
9461
9477
|
r.accept && r.maxFileSize ? (D(), s(e, { key: 1 }, [u(" \xA0.\xA0 ")], 64)) : o("", !0),
|
|
9462
9478
|
r.maxFileSize ? (D(), s(e, { key: 2 }, [u(" Max file size: " + I(r.maxFileSize) + " MB ", 1)], 64)) : o("", !0)
|
|
9463
9479
|
])])) : o("", !0),
|
|
9464
|
-
n[
|
|
9480
|
+
n[1] ||= c("div", { class: "r-file-dropzone-or r-mb-5" }, [
|
|
9465
9481
|
c("hr"),
|
|
9466
9482
|
c("span", null, "or"),
|
|
9467
9483
|
c("hr")
|
|
9468
9484
|
], -1),
|
|
9469
9485
|
d(Bb, null, {
|
|
9470
|
-
default: W(() => [...n[
|
|
9486
|
+
default: W(() => [...n[0] ||= [u("Browse files", -1)]]),
|
|
9471
9487
|
_: 1
|
|
9472
9488
|
})
|
|
9473
9489
|
])]),
|
|
@@ -9484,21 +9500,18 @@ var cw = { class: "r-file-dropzone-fields" }, lw = { class: "r-file-dropzone-hea
|
|
|
9484
9500
|
accept: r.accept,
|
|
9485
9501
|
multiple: r.multiple,
|
|
9486
9502
|
disabled: r.disabled,
|
|
9487
|
-
onDragenter: n[0] ||= (e) => !r.disabled && (h.dropzoneHighlight = !0),
|
|
9488
|
-
onDragleave: n[1] ||= (e) => !r.disabled && (h.dropzoneHighlight = !1),
|
|
9489
|
-
onDrop: n[2] ||= (e) => !r.disabled && (h.dropzoneHighlight = !1),
|
|
9490
9503
|
onChange: O
|
|
9491
9504
|
}, null, 40, hw),
|
|
9492
9505
|
v.value ? (D(), s("div", gw, [r.previewType === "list" ? (D(), a(JC, {
|
|
9493
9506
|
key: 0,
|
|
9494
9507
|
files: _.value,
|
|
9495
|
-
onRemove:
|
|
9508
|
+
onRemove: F
|
|
9496
9509
|
}, null, 8, ["files"])) : (D(), a(aw, {
|
|
9497
9510
|
key: 1,
|
|
9498
9511
|
files: _.value,
|
|
9499
|
-
onRemove:
|
|
9512
|
+
onRemove: F
|
|
9500
9513
|
}, null, 8, ["files"]))])) : o("", !0)
|
|
9501
|
-
],
|
|
9514
|
+
], 34));
|
|
9502
9515
|
}
|
|
9503
9516
|
}), vw = [
|
|
9504
9517
|
"multiple",
|
|
@@ -9821,7 +9834,7 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9821
9834
|
return l.leftIcon && (e["r-has-icon-left"] = !0), (l.rightIcon || l.password) && (e["r-has-icon-right"] = !0), e;
|
|
9822
9835
|
}), C = i(() => l.password ? "password" : l.numeric ? "number" : "text"), w = i(() => l.autoComplete || `new-${l.name}`), E = i(() => `(${(l.modelValue ? Number(l.maxLength) - String(l.modelValue).length : Number(l.maxLength)).toLocaleString("en-US")} characters left)`);
|
|
9823
9836
|
function O(e) {
|
|
9824
|
-
l.autoResize && m.value &&
|
|
9837
|
+
l.autoResize && m.value && B(m.value);
|
|
9825
9838
|
let t = e.target.value;
|
|
9826
9839
|
f("update:modelValue", t);
|
|
9827
9840
|
}
|
|
@@ -9835,7 +9848,7 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9835
9848
|
f("key-press", e);
|
|
9836
9849
|
}
|
|
9837
9850
|
function P(e) {
|
|
9838
|
-
|
|
9851
|
+
V(e), f("key-down", e);
|
|
9839
9852
|
}
|
|
9840
9853
|
function F() {
|
|
9841
9854
|
let e = h.value || m.value;
|
|
@@ -9846,23 +9859,27 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9846
9859
|
e && e.blur(), f("blur");
|
|
9847
9860
|
}
|
|
9848
9861
|
function te() {
|
|
9849
|
-
l.autoHighlightOnFocus &&
|
|
9862
|
+
l.autoHighlightOnFocus && ae(), f("focus");
|
|
9850
9863
|
}
|
|
9851
9864
|
function L() {
|
|
9852
9865
|
f("click");
|
|
9853
9866
|
}
|
|
9854
9867
|
function R(e) {
|
|
9868
|
+
let t = e.target;
|
|
9869
|
+
t.type === "number" && document.activeElement === t && t.blur();
|
|
9870
|
+
}
|
|
9871
|
+
function B(e) {
|
|
9855
9872
|
e.style.height = "auto", e.style.height = `${e.scrollHeight}px`;
|
|
9856
9873
|
}
|
|
9857
|
-
function
|
|
9874
|
+
function re() {
|
|
9858
9875
|
h.value && (h.value.type = h.value.type === "password" ? "text" : "password", _.value = !_.value);
|
|
9859
9876
|
}
|
|
9860
|
-
function
|
|
9877
|
+
function ae() {
|
|
9861
9878
|
y(() => {
|
|
9862
9879
|
h.value?.select();
|
|
9863
9880
|
});
|
|
9864
9881
|
}
|
|
9865
|
-
function
|
|
9882
|
+
function V(e) {
|
|
9866
9883
|
if (!(!l.integer || e.key.length > 1 || e.ctrlKey || e.metaKey || e.altKey)) {
|
|
9867
9884
|
if (e.key === "-") {
|
|
9868
9885
|
let t = e.target, n = t.selectionStart === 0 && t.selectionEnd === t.value.length;
|
|
@@ -9876,21 +9893,21 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9876
9893
|
}
|
|
9877
9894
|
}
|
|
9878
9895
|
}
|
|
9879
|
-
function
|
|
9896
|
+
function H(e) {
|
|
9880
9897
|
if (!l.integer) return;
|
|
9881
9898
|
let t = e.clipboardData?.getData("text") ?? "";
|
|
9882
9899
|
/^-?\d+$/.test(t) || e.preventDefault();
|
|
9883
9900
|
}
|
|
9884
|
-
function
|
|
9885
|
-
|
|
9901
|
+
function U(e) {
|
|
9902
|
+
H(e), l.onPaste?.(e);
|
|
9886
9903
|
}
|
|
9887
9904
|
return n({
|
|
9888
9905
|
focus: te,
|
|
9889
9906
|
blur: ee,
|
|
9890
|
-
highlight:
|
|
9907
|
+
highlight: ae,
|
|
9891
9908
|
getFocus: F
|
|
9892
9909
|
}), T(() => {
|
|
9893
|
-
l.autoFocus && F(), l.autoHighlight &&
|
|
9910
|
+
l.autoFocus && F(), l.autoHighlight && ae(), l.autoResize && m.value && B(m.value);
|
|
9894
9911
|
}), (n, r) => (D(), s("div", { class: b(["r-field", { "r-is-error": z(g) }]) }, [
|
|
9895
9912
|
t.label ? (D(), s("label", {
|
|
9896
9913
|
key: 0,
|
|
@@ -9911,7 +9928,7 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9911
9928
|
onInput: O,
|
|
9912
9929
|
onKeydown: [se(K(j, ["exact", "prevent"]), ["enter"]), P],
|
|
9913
9930
|
onKeyup: M,
|
|
9914
|
-
onPaste:
|
|
9931
|
+
onPaste: U
|
|
9915
9932
|
}, ne(t.inputEvents, !0)), " ", 16, jw)) : t.multiline && !t.submitOnEnter ? (D(), s("textarea", v({
|
|
9916
9933
|
key: 2,
|
|
9917
9934
|
id: t.name,
|
|
@@ -9926,7 +9943,7 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9926
9943
|
onInput: O,
|
|
9927
9944
|
onKeydown: [se(j, ["enter"]), P],
|
|
9928
9945
|
onKeyup: M,
|
|
9929
|
-
onPaste:
|
|
9946
|
+
onPaste: U
|
|
9930
9947
|
}), null, 16, Mw)) : o("", !0) : (D(), s("input", v({
|
|
9931
9948
|
key: 0,
|
|
9932
9949
|
id: t.name,
|
|
@@ -9945,7 +9962,8 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9945
9962
|
onFocus: te,
|
|
9946
9963
|
onBlur: r[0] ||= (e) => f("blur"),
|
|
9947
9964
|
onClick: L,
|
|
9948
|
-
onPaste:
|
|
9965
|
+
onPaste: U,
|
|
9966
|
+
onWheelPassive: R
|
|
9949
9967
|
}, ne(t.inputEvents, !0)), null, 16, Aw))], 64)),
|
|
9950
9968
|
x.value ? (D(), a(Ow, { key: 2 }, {
|
|
9951
9969
|
default: W(() => [
|
|
@@ -9977,13 +9995,14 @@ var Ow = /*#__PURE__*/ ww(Tw, [["render", Dw]]), kw = ["for"], Aw = [
|
|
|
9977
9995
|
onFocus: te,
|
|
9978
9996
|
onBlur: r[2] ||= (e) => f("blur"),
|
|
9979
9997
|
onClick: L,
|
|
9980
|
-
onPaste:
|
|
9998
|
+
onPaste: U,
|
|
9999
|
+
onWheelPassive: R
|
|
9981
10000
|
}, ne(t.inputEvents, !0)), null, 16, Pw),
|
|
9982
10001
|
t.password ? (D(), a(Q, {
|
|
9983
10002
|
key: 1,
|
|
9984
10003
|
icon: _.value ? "eye-closed" : "eye",
|
|
9985
10004
|
class: "r-cursor-pointer",
|
|
9986
|
-
onClick:
|
|
10005
|
+
onClick: re
|
|
9987
10006
|
}, null, 8, ["icon"])) : t.rightIcon ? (D(), a(Q, {
|
|
9988
10007
|
key: 2,
|
|
9989
10008
|
icon: t.rightIcon,
|