@syncfusion/ej2-inputs 25.1.38 → 25.1.42
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 +14 -0
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +7 -3
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +7 -3
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/uploader/uploader.js +7 -3
- package/styles/input/_layout.scss +2 -2
- package/styles/input/material-dark.css +2 -2
- package/styles/input/material.css +2 -2
- package/styles/input/material3-dark.css +2 -2
- package/styles/input/material3.css +2 -2
- package/styles/material-dark.css +2 -2
- package/styles/material.css +2 -2
- package/styles/material3-dark.css +2 -2
- package/styles/material3.css +2 -2
|
@@ -9374,7 +9374,8 @@ let Uploader = class Uploader extends Component {
|
|
|
9374
9374
|
allowedExtensions.push(extension.trim().toLocaleLowerCase());
|
|
9375
9375
|
}
|
|
9376
9376
|
for (let i = 0; i < files.length; i++) {
|
|
9377
|
-
|
|
9377
|
+
let checkFileType = files[i].type.indexOf(".") !== -1 ? files[i].type.replace(".", "") : files[i].type;
|
|
9378
|
+
if (allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1) {
|
|
9378
9379
|
files[i].status = this.localizedTexts('invalidFileType');
|
|
9379
9380
|
files[i].statusCode = '0';
|
|
9380
9381
|
}
|
|
@@ -9803,7 +9804,10 @@ let Uploader = class Uploader extends Component {
|
|
|
9803
9804
|
let li;
|
|
9804
9805
|
for (let i = 0; i < files.length; i++) {
|
|
9805
9806
|
li = this.getLiElement(files[i]);
|
|
9806
|
-
if (!li.classList.contains(UPLOAD_SUCCESS)) {
|
|
9807
|
+
if (!isNullOrUndefined(li) && !li.classList.contains(UPLOAD_SUCCESS)) {
|
|
9808
|
+
filterFiles.push(files[i]);
|
|
9809
|
+
}
|
|
9810
|
+
else if (!this.showFileList && files[i].status !== "File uploaded successfully") {
|
|
9807
9811
|
filterFiles.push(files[i]);
|
|
9808
9812
|
}
|
|
9809
9813
|
}
|
|
@@ -10005,7 +10009,7 @@ let Uploader = class Uploader extends Component {
|
|
|
10005
10009
|
const status = e.target;
|
|
10006
10010
|
if (status.readyState === 4 && status.status >= 200 && status.status <= 299) {
|
|
10007
10011
|
const li = this.getLiElement(file);
|
|
10008
|
-
if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI))) {
|
|
10012
|
+
if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI)) && this.showFileList) {
|
|
10009
10013
|
return;
|
|
10010
10014
|
}
|
|
10011
10015
|
if (!isNullOrUndefined(li)) {
|