@v1nt1248/3nclient-lib 0.1.51 → 0.1.52
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/ui3n-components.js
CHANGED
|
@@ -12695,7 +12695,8 @@ const jd = ["for"], Xd = ["id", "multiple", "accept", "disabled"], _d = /* @__PU
|
|
|
12695
12695
|
setup(Q, { emit: A }) {
|
|
12696
12696
|
const I = Q, C = A, E = vd(4), e = yA(null);
|
|
12697
12697
|
function o(r) {
|
|
12698
|
-
|
|
12698
|
+
var U;
|
|
12699
|
+
I.disabled || (r.stopImmediatePropagation(), (U = e.value) == null || U.click());
|
|
12699
12700
|
}
|
|
12700
12701
|
function u(r) {
|
|
12701
12702
|
if (!r)
|
|
@@ -12735,7 +12736,7 @@ const jd = ["for"], Xd = ["id", "multiple", "accept", "disabled"], _d = /* @__PU
|
|
|
12735
12736
|
}
|
|
12736
12737
|
}
|
|
12737
12738
|
function h() {
|
|
12738
|
-
f([...e.value.files]), e.value.value = "";
|
|
12739
|
+
console.log("Ui3nInputFiles:onChange"), e.value && e.value.files && f([...e.value.files]), e.value && (e.value.value = "");
|
|
12739
12740
|
}
|
|
12740
12741
|
return (r, U) => (tA(), uA("div", {
|
|
12741
12742
|
class: CA(r.$style.ui3nInputFile)
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
ev.stopImmediatePropagation();
|
|
50
|
-
fileInput.value
|
|
50
|
+
fileInput.value?.click();
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function validateFileSize(file: File) {
|
|
@@ -136,8 +136,8 @@
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
function onChange() {
|
|
139
|
-
processFiles([...fileInput.value
|
|
140
|
-
fileInput.value!.value = '';
|
|
139
|
+
fileInput.value && fileInput.value.files && processFiles([...fileInput.value.files]);
|
|
140
|
+
fileInput.value && (fileInput.value!.value = '');
|
|
141
141
|
}
|
|
142
142
|
</script>
|
|
143
143
|
|