@gsp-svc/formdoc-upload 0.1.35 → 0.1.37
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/bundles/gsp-svc-formdoc-upload.umd.js +97 -49
- package/bundles/gsp-svc-formdoc-upload.umd.js.map +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js.map +1 -1
- package/esm2015/lib/formdoc-upload.module.js +7 -4
- package/esm2015/lib/upload/entity/gspformdocinfo.js +3 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +67 -46
- package/esm2015/lib/upload/upload.module.js +6 -4
- package/esm2015/lib/upload/upload.service.js +32 -3
- package/esm5/lib/formdoc-upload.module.js +7 -4
- package/esm5/lib/upload/entity/gspformdocinfo.js +3 -1
- package/esm5/lib/upload/file-upload/file-upload.component.js +71 -46
- package/esm5/lib/upload/upload.module.js +6 -4
- package/esm5/lib/upload/upload.service.js +35 -3
- package/fesm2015/gsp-svc-formdoc-upload.js +97 -53
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +104 -53
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- package/lib/upload/entity/gspformdocinfo.d.ts +1 -0
- package/lib/upload/file-upload/file-upload.component.d.ts +3 -0
- package/lib/upload/upload.service.d.ts +4 -2
- package/package.json +1 -1
|
@@ -59,9 +59,11 @@
|
|
|
59
59
|
FormdocUploadModule.decorators = [
|
|
60
60
|
{ type: i0.NgModule, args: [{
|
|
61
61
|
declarations: [FormdocUploadComponent],
|
|
62
|
-
imports: [
|
|
62
|
+
imports: [
|
|
63
|
+
http.HttpClientModule
|
|
64
|
+
],
|
|
63
65
|
exports: [FormdocUploadComponent],
|
|
64
|
-
providers: [cafCommon.LanguageService,
|
|
66
|
+
providers: [cafCommon.LanguageService, cafCommon.HttpService, cafCommon.CacheService, cafCommon.SessionService,
|
|
65
67
|
{ provide: i0.LOCALE_ID, useValue: ɵ0 },]
|
|
66
68
|
},] }
|
|
67
69
|
];
|
|
@@ -147,8 +149,9 @@
|
|
|
147
149
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
148
150
|
*/
|
|
149
151
|
var UploadService = /** @class */ (function () {
|
|
150
|
-
function UploadService(http$$1) {
|
|
152
|
+
function UploadService(http$$1, httpclient) {
|
|
151
153
|
this.http = http$$1;
|
|
154
|
+
this.httpclient = httpclient;
|
|
152
155
|
}
|
|
153
156
|
/**
|
|
154
157
|
* @param {?} docListInfo
|
|
@@ -290,6 +293,28 @@
|
|
|
290
293
|
return of.of(error);
|
|
291
294
|
})));
|
|
292
295
|
};
|
|
296
|
+
/**
|
|
297
|
+
* @param {?} formdata
|
|
298
|
+
* @return {?}
|
|
299
|
+
*/
|
|
300
|
+
UploadService.prototype.uploadSliceFile = /**
|
|
301
|
+
* @param {?} formdata
|
|
302
|
+
* @return {?}
|
|
303
|
+
*/
|
|
304
|
+
function (formdata) {
|
|
305
|
+
/** @type {?} */
|
|
306
|
+
var url = "/api/runtime/dfs/v1.0/formdoc/slice";
|
|
307
|
+
//url = "/api/runtime/dfs/v1.0/formdoc/list";
|
|
308
|
+
return this.httpclient.post(url, formdata).pipe(operators.tap(( /**
|
|
309
|
+
* @param {?} res
|
|
310
|
+
* @return {?}
|
|
311
|
+
*/function (res) { })), operators.catchError(( /**
|
|
312
|
+
* @param {?} error
|
|
313
|
+
* @return {?}
|
|
314
|
+
*/function (error) {
|
|
315
|
+
return of.of(error);
|
|
316
|
+
})));
|
|
317
|
+
};
|
|
293
318
|
/**
|
|
294
319
|
* @return {?}
|
|
295
320
|
*/
|
|
@@ -464,7 +489,8 @@
|
|
|
464
489
|
/** @nocollapse */
|
|
465
490
|
UploadService.ctorParameters = function () {
|
|
466
491
|
return [
|
|
467
|
-
{ type: cafCommon.HttpService }
|
|
492
|
+
{ type: cafCommon.HttpService },
|
|
493
|
+
{ type: http.HttpClient }
|
|
468
494
|
];
|
|
469
495
|
};
|
|
470
496
|
return UploadService;
|
|
@@ -719,6 +745,7 @@
|
|
|
719
745
|
this.totalLoad = null;
|
|
720
746
|
this.exStorageFileList = [];
|
|
721
747
|
if (this.injector) {
|
|
748
|
+
this.httpclient = this.injector.get(http.HttpClient);
|
|
722
749
|
this.localeid = localStorage.getItem("languageCode") || this.injector.get(i0.LOCALE_ID);
|
|
723
750
|
this.localepipe = new LocalLangPipe(this.localeid);
|
|
724
751
|
}
|
|
@@ -939,12 +966,6 @@
|
|
|
939
966
|
return "continue";
|
|
940
967
|
}
|
|
941
968
|
}
|
|
942
|
-
// if (this.files.find(x => x.name == selectedFile.name) != null) {
|
|
943
|
-
// this.errFileList.push(selectedFile.name);
|
|
944
|
-
// continue;
|
|
945
|
-
// }
|
|
946
|
-
//this.flag += Math.ceil(selectedFile.size / this.bufferSize);
|
|
947
|
-
//let reader = new FileReader();
|
|
948
969
|
this_1.uploadFile(uuid, selectedFile, selectedFile.name);
|
|
949
970
|
};
|
|
950
971
|
var this_1 = this;
|
|
@@ -1074,47 +1095,51 @@
|
|
|
1074
1095
|
var nextSize = Math.min((chunkIndex + 1) * this_2.bufferSize, selectedFile.size);
|
|
1075
1096
|
/** @type {?} */
|
|
1076
1097
|
var fileData = selectedFile.slice(chunkIndex * this_2.bufferSize, nextSize);
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
reader.readAsBinaryString(fileData);
|
|
1098
|
+
// let reader = new FileReader();
|
|
1099
|
+
// reader.readAsBinaryString(fileData);
|
|
1080
1100
|
/** @type {?} */
|
|
1081
1101
|
var innerIndex = chunkIndex;
|
|
1082
|
-
reader.onload = (
|
|
1102
|
+
// reader.onload = () => {
|
|
1103
|
+
// docInfo.fileContent = btoa(reader.result.toString());
|
|
1104
|
+
docInfo.size = selectedFile.size;
|
|
1105
|
+
docInfo.index = innerIndex;
|
|
1106
|
+
docInfo.fileContent = "";
|
|
1107
|
+
//chunkIndex++;
|
|
1108
|
+
if (this_2.haveExtensionProperty)
|
|
1109
|
+
docInfo.exPropertyName = this_2.defaultPropertyName;
|
|
1110
|
+
//docInfo.isLast = true;
|
|
1111
|
+
uploadInfo.docInfo = docInfo;
|
|
1112
|
+
// let info = uploadInfo;
|
|
1113
|
+
// this.requestArray.push(this.uploadService.uploadFile(uploadInfo));
|
|
1114
|
+
// this.requestBodyArray.push(info);
|
|
1115
|
+
//封装请求formdata
|
|
1116
|
+
/** @type {?} */
|
|
1117
|
+
var formData = new FormData();
|
|
1118
|
+
formData.append('uploadInfo', JSON.stringify(uploadInfo));
|
|
1119
|
+
formData.append('docInfo', JSON.stringify(docInfo));
|
|
1120
|
+
formData.append('file', fileData);
|
|
1121
|
+
this_2.uploadSliceFile(formData).subscribe(( /**
|
|
1122
|
+
* @param {?} res
|
|
1083
1123
|
* @return {?}
|
|
1084
|
-
*/function () {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
_this.requestBodyArray.push(info);
|
|
1096
|
-
_this.uploadService.uploadFile(info).subscribe(( /**
|
|
1097
|
-
* @param {?} res
|
|
1098
|
-
* @return {?}
|
|
1099
|
-
*/function (res) {
|
|
1100
|
-
if (res != null) {
|
|
1101
|
-
_this.files[_this.files.indexOf(fileInfo)].uploadResult = false;
|
|
1124
|
+
*/function (res) {
|
|
1125
|
+
if (res != null) {
|
|
1126
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadResult = false;
|
|
1127
|
+
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1128
|
+
_this.files[_this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
|
|
1129
|
+
}
|
|
1130
|
+
else {
|
|
1131
|
+
_this.uploadedChunk[docInfo.metadataId]++;
|
|
1132
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((_this.uploadedChunk[docInfo.metadataId] / _this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
|
|
1133
|
+
if (_this.uploadedChunk[docInfo.metadataId] == _this.fileTotalChunk[docInfo.metadataId]) {
|
|
1134
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1102
1135
|
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1103
|
-
_this.
|
|
1136
|
+
_this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1137
|
+
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1138
|
+
_this.uploadedFileTotal++;
|
|
1104
1139
|
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
if (_this.uploadedChunk[docInfo.metadataId] == _this.fileTotalChunk[docInfo.metadataId]) {
|
|
1109
|
-
_this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1110
|
-
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1111
|
-
_this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1112
|
-
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1113
|
-
_this.uploadedFileTotal++;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
}));
|
|
1117
|
-
});
|
|
1140
|
+
}
|
|
1141
|
+
}));
|
|
1142
|
+
// }
|
|
1118
1143
|
//console.log(chunkIndex + 1);
|
|
1119
1144
|
chunkIndex = chunkIndex + 1;
|
|
1120
1145
|
};
|
|
@@ -1169,6 +1194,28 @@
|
|
|
1169
1194
|
this.uploadedFileTotal--;
|
|
1170
1195
|
}
|
|
1171
1196
|
};
|
|
1197
|
+
/**
|
|
1198
|
+
* @param {?} formdata
|
|
1199
|
+
* @return {?}
|
|
1200
|
+
*/
|
|
1201
|
+
FileUploadComponent.prototype.uploadSliceFile = /**
|
|
1202
|
+
* @param {?} formdata
|
|
1203
|
+
* @return {?}
|
|
1204
|
+
*/
|
|
1205
|
+
function (formdata) {
|
|
1206
|
+
/** @type {?} */
|
|
1207
|
+
var url = "/api/runtime/dfs/v1.0/formdoc/slice";
|
|
1208
|
+
//url = "/api/runtime/dfs/v1.0/formdoc/list";
|
|
1209
|
+
return this.httpclient.post(url, formdata).pipe(operators.tap(( /**
|
|
1210
|
+
* @param {?} res
|
|
1211
|
+
* @return {?}
|
|
1212
|
+
*/function (res) { })), operators.catchError(( /**
|
|
1213
|
+
* @param {?} error
|
|
1214
|
+
* @return {?}
|
|
1215
|
+
*/function (error) {
|
|
1216
|
+
return rxjs.of(error);
|
|
1217
|
+
})));
|
|
1218
|
+
};
|
|
1172
1219
|
/**
|
|
1173
1220
|
* @return {?}
|
|
1174
1221
|
*/
|
|
@@ -1644,7 +1691,7 @@
|
|
|
1644
1691
|
{ type: i0.Component, args: [{
|
|
1645
1692
|
selector: 'app-file-upload',
|
|
1646
1693
|
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\"\n title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \"\n style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\"\n [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\"\n (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\"\n [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\"\n style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-warn\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \"\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' |\n locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\"\n style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n <div *ngIf=\"haveSecurityInfo\"\n style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\"\n [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\n [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\"\n style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\"\n style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton\n [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\"\n [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\n [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\"\n (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' |\n locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\"\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading&&haveSecurityInfo\"\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\"\n (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">{{'uploadFile' | locale}} </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n <!-- <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\"> -->\n </div>\n</div>",
|
|
1647
|
-
styles: [".home_page{text-align:center}.home_page img{position:absolute;top:180px;margin-left:-35px;width:70px;height:56px}.home_page div{position:absolute;left:50%;top:255px;margin-left:-75px;width:150px;height:32px;overflow:hidden}.home_page div span{width:150px;height:32px;position:absolute;z-index:10;left:0}.home_page div input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)';z-index:11}.upload_button{width:110px;height:32px;overflow:hidden}.upload_button span{position:relative;right:-4px;top:4px;width:56px;height:22px;font-size:14px}.upload_button input{height:32px;width:110px;position:absolute;left:22px;top:12px;opacity:0;filter:'alpha(opacity=0)';overflow:hidden}.upload_button img{position:relative;left:-6px;top:3px;width:14px;height:14px}.button_group_upload{position:absolute;right:18px;top:12px;height:26px;width:53px}.button_group_upload button{height:26px;width:26px}.fileinput-button{position:absolute;right:60px;bottom:40px;overflow:hidden;width:24px;height:24px;border-radius:12px;transform:scale(2.5);-ms-transform:scale(2.5);-moz-transform:scale(2.5);-webkit-transform:scale(2.5);-o-transform:scale(2.5);color:#0686fd}.fileinput-button input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)'}.pic-droplist{height:24px;color:#e0e1e2;background-color:#e0e1e2}.pic-droplist input-group{display:table-cell;width:100px;text-align:center;border:0}.pic-droplist input-group div{border:0}.pic-droplist input-group div div,.pic-droplist input-group div input{background-color:#e0e1e2}.pic_list{padding:0;height:
|
|
1694
|
+
styles: [".home_page{text-align:center}.home_page img{position:absolute;top:180px;margin-left:-35px;width:70px;height:56px}.home_page div{position:absolute;left:50%;top:255px;margin-left:-75px;width:150px;height:32px;overflow:hidden}.home_page div span{width:150px;height:32px;position:absolute;z-index:10;left:0}.home_page div input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)';z-index:11}.upload_button{width:110px;height:32px;overflow:hidden}.upload_button span{position:relative;right:-4px;top:4px;width:56px;height:22px;font-size:14px}.upload_button input{height:32px;width:110px;position:absolute;left:22px;top:12px;opacity:0;filter:'alpha(opacity=0)';overflow:hidden}.upload_button img{position:relative;left:-6px;top:3px;width:14px;height:14px}.button_group_upload{position:absolute;right:18px;top:12px;height:26px;width:53px}.button_group_upload button{height:26px;width:26px}.fileinput-button{position:absolute;right:60px;bottom:40px;overflow:hidden;width:24px;height:24px;border-radius:12px;transform:scale(2.5);-ms-transform:scale(2.5);-moz-transform:scale(2.5);-webkit-transform:scale(2.5);-o-transform:scale(2.5);color:#0686fd}.fileinput-button input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)'}.pic-droplist{height:24px;color:#e0e1e2;background-color:#e0e1e2}.pic-droplist input-group{display:table-cell;width:100px;text-align:center;border:0}.pic-droplist input-group div{border:0}.pic-droplist input-group div div,.pic-droplist input-group div input{background-color:#e0e1e2}.pic_list{padding:0;height:415px;overflow-y:auto;overflow-x:hidden}.pic_list ul{padding:0;list-style:none;width:100%;margin:20px 0 0 20px}.pic_list ul li{height:179px;width:135px;margin:8px 0 8px 12px;float:left;overflow:hidden;align-items:center;position:relative}.pic_list ul li div{width:135px;height:159px;margin:auto;display:table-cell;vertical-align:middle;text-align:center;position:relative}.pic_list ul li div img{max-width:120px;max-height:118px;align-items:center;margin:auto;vertical-align:middle;text-align:center}.pic_list ul li span.filename{width:100px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue_list{display:block;height:420px;overflow-y:auto}.file_list{list-style:none;margin:0;padding:0;overflow-x:hidden;overflow-y:auto}.file_list li{height:50px;line-height:35px;font-size:16px;position:relative}.file_list li button{float:right;top:6px;right:10px;width:20px}.file_list li p.title{padding:0 0 0 6px;margin:0 210px 0 0}.file_list li p.size{position:absolute;width:100px;top:0;right:100px}"]
|
|
1648
1695
|
}] }
|
|
1649
1696
|
];
|
|
1650
1697
|
/** @nocollapse */
|
|
@@ -1853,11 +1900,12 @@
|
|
|
1853
1900
|
uiLoading.LoadingModule.forRoot(),
|
|
1854
1901
|
uiProgress.ProgressModule,
|
|
1855
1902
|
forms.FormsModule,
|
|
1856
|
-
uiComboList.ComboListModule
|
|
1903
|
+
uiComboList.ComboListModule,
|
|
1904
|
+
http.HttpClientModule
|
|
1857
1905
|
],
|
|
1858
1906
|
exports: [FileUploadComponent],
|
|
1859
1907
|
entryComponents: [FileUploadComponent],
|
|
1860
|
-
providers: [UploadService, DownloadService, cafCommon.LanguageService,
|
|
1908
|
+
providers: [UploadService, DownloadService, cafCommon.LanguageService, cafCommon.HttpService, cafCommon.CacheService, cafCommon.SessionService,
|
|
1861
1909
|
{ provide: i0.LOCALE_ID, useValue: ɵ0$1 },]
|
|
1862
1910
|
},] }
|
|
1863
1911
|
];
|