@uploadcare/file-uploader 1.15.0-alpha.7 → 1.15.0-alpha.8
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/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +1 -3
- package/package.json +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +14 -9
- package/web/file-uploader.iife.min.js +1 -1
- package/web/file-uploader.min.js +1 -1
- package/web/uc-file-uploader-inline.min.js +1 -1
- package/web/uc-file-uploader-minimal.min.js +1 -1
- package/web/uc-file-uploader-regular.min.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAoBA;IAIE,eAAe;IACf,mBAAuB;IACvB;;;OAGG;IACH,eAAc;IACd,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gCAA4E;IAC5E,eAAe;IACf,iCAA0E;IAE1E,eAAe;IACf,sBAAsB;IAKpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BC;IAGH,eASC;IAED;;;OAGG;IACH,0BAeC;IAXC,wCAA0C;IAa5C,eAAe;IACf,wBAgBC;IAED,eAAe;IACf,
|
|
1
|
+
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAoBA;IAIE,eAAe;IACf,mBAAuB;IACvB;;;OAGG;IACH,eAAc;IACd,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gCAA4E;IAC5E,eAAe;IACf,iCAA0E;IAE1E,eAAe;IACf,sBAAsB;IAKpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BC;IAGH,eASC;IAED;;;OAGG;IACH,0BAeC;IAXC,wCAA0C;IAa5C,eAAe;IACf,wBAgBC;IAED,eAAe;IACf,2BAuCC;IAED;;;;OAIG;IACH,kBAUC;IAED;;MAaQ;IAER;;;OAGG;IACH,uBAmDC;IA+CD,wEAAwE;IACxE,oBADY,CAAC,oBAAoB,CAAC,CAAC,MAAM,oBAAoB,CAAC,QA0B7D;IAaC,eAAe;IACf,kBAEE;IAWJ;;;MAEC;IAED;;;OAGG;IACH,uBAEC;IAED,wBAsFC;CACF;;;;;8BArc6B,iCAAiC;AAS/D;;;;;GAKG"}
|
|
@@ -104,7 +104,7 @@ export class FileItem extends UploaderBlock {
|
|
|
104
104
|
if (entry.intersectionRatio === 0) {
|
|
105
105
|
this._debouncedGenerateThumb.cancel();
|
|
106
106
|
} else {
|
|
107
|
-
|
|
107
|
+
this._debouncedGenerateThumb();
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -134,8 +134,6 @@ export class FileItem extends UploaderBlock {
|
|
|
134
134
|
}
|
|
135
135
|
let entry = this._entry;
|
|
136
136
|
|
|
137
|
-
console.log('_generateThumbnail');
|
|
138
|
-
|
|
139
137
|
if (entry.getValue('fileInfo') && entry.getValue('isImage')) {
|
|
140
138
|
let size = Math.max(
|
|
141
139
|
parseInt(String(this?._thumbRect?.height || 0)),
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploaderMinimal.d.ts","sourceRoot":"","sources":["FileUploaderMinimal.js"],"names":[],"mappings":"AAQA;IAMI;;;;;;;;;;;;;;;;;;MAMC;
|
|
1
|
+
{"version":3,"file":"FileUploaderMinimal.d.ts","sourceRoot":"","sources":["FileUploaderMinimal.js"],"names":[],"mappings":"AAQA;IAMI;;;;;;;;;;;;;;;;;;MAMC;CA+FJ;;;;8BAjH6B,oCAAoC"}
|
|
@@ -58,16 +58,21 @@ export class FileUploaderMinimal extends SolutionBlock {
|
|
|
58
58
|
|
|
59
59
|
this.subConfigValue('filesViewMode', (mode) => {
|
|
60
60
|
this.setAttribute('mode', mode);
|
|
61
|
-
});
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
this.subConfigValue('multiple', (multiple) => {
|
|
63
|
+
if (mode === 'grid') {
|
|
64
|
+
if (multiple) {
|
|
65
|
+
this.style.removeProperty('--uc-grid-col');
|
|
66
|
+
} else {
|
|
67
|
+
this.style.setProperty('--uc-grid-col', '1');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
this.$.singleUpload = !multiple;
|
|
71
|
+
} else {
|
|
72
|
+
this.style.removeProperty('--uc-grid-col');
|
|
73
|
+
this.$.singleUpload = false;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
71
76
|
});
|
|
72
77
|
|
|
73
78
|
this.modalManager.subscribe(ModalEvents.OPEN, () => {
|