@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.
@@ -10,11 +10,11 @@ import { LoadingService, LoadingModule } from '@farris/ui-loading';
10
10
  import { ProgressModule } from '@farris/ui-progress';
11
11
  import { FormsModule } from '@angular/forms';
12
12
  import { ComboListModule } from '@farris/ui-combo-list';
13
- import { LanguageService, HttpService } from '@ecp-caf/caf-common';
14
- import { Injectable, Pipe, Inject, LOCALE_ID, NgModule, Component, ViewChild, Input, Injector, ComponentFactoryResolver, defineInjectable } from '@angular/core';
13
+ import { CacheService, HttpService, LanguageService, SessionService } from '@ecp-caf/caf-common';
14
+ import { Injectable, Pipe, Inject, LOCALE_ID, Component, ViewChild, Input, Injector, ComponentFactoryResolver, NgModule, defineInjectable } from '@angular/core';
15
15
  import { BsModalService } from '@farris/ui-modal';
16
16
  import { of as of$1 } from 'rxjs';
17
- import { HttpClientModule } from '@angular/common/http';
17
+ import { HttpClientModule, HttpClient } from '@angular/common/http';
18
18
  import { NotifyModule } from '@farris/ui-notify';
19
19
 
20
20
  /**
@@ -72,9 +72,11 @@ var FormdocUploadModule = /** @class */ (function () {
72
72
  FormdocUploadModule.decorators = [
73
73
  { type: NgModule, args: [{
74
74
  declarations: [FormdocUploadComponent],
75
- imports: [],
75
+ imports: [
76
+ HttpClientModule
77
+ ],
76
78
  exports: [FormdocUploadComponent],
77
- providers: [LanguageService,
79
+ providers: [LanguageService, HttpService, CacheService, SessionService,
78
80
  { provide: LOCALE_ID, useValue: ɵ0 },]
79
81
  },] }
80
82
  ];
@@ -160,8 +162,9 @@ var ChangeInstanceRequest = /** @class */ (function () {
160
162
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
161
163
  */
162
164
  var UploadService = /** @class */ (function () {
163
- function UploadService(http) {
165
+ function UploadService(http, httpclient) {
164
166
  this.http = http;
167
+ this.httpclient = httpclient;
165
168
  }
166
169
  /**
167
170
  * @param {?} docListInfo
@@ -309,6 +312,30 @@ var UploadService = /** @class */ (function () {
309
312
  return of(error);
310
313
  })));
311
314
  };
315
+ /**
316
+ * @param {?} formdata
317
+ * @return {?}
318
+ */
319
+ UploadService.prototype.uploadSliceFile = /**
320
+ * @param {?} formdata
321
+ * @return {?}
322
+ */
323
+ function (formdata) {
324
+ /** @type {?} */
325
+ var url = "/api/runtime/dfs/v1.0/formdoc/slice";
326
+ //url = "/api/runtime/dfs/v1.0/formdoc/list";
327
+ return this.httpclient.post(url, formdata).pipe(tap((/**
328
+ * @param {?} res
329
+ * @return {?}
330
+ */
331
+ function (res) { })), catchError((/**
332
+ * @param {?} error
333
+ * @return {?}
334
+ */
335
+ function (error) {
336
+ return of(error);
337
+ })));
338
+ };
312
339
  /**
313
340
  * @return {?}
314
341
  */
@@ -497,7 +524,8 @@ var UploadService = /** @class */ (function () {
497
524
  ];
498
525
  /** @nocollapse */
499
526
  UploadService.ctorParameters = function () { return [
500
- { type: HttpService }
527
+ { type: HttpService },
528
+ { type: HttpClient }
501
529
  ]; };
502
530
  return UploadService;
503
531
  }());
@@ -759,6 +787,7 @@ var FileUploadComponent = /** @class */ (function () {
759
787
  this.totalLoad = null;
760
788
  this.exStorageFileList = [];
761
789
  if (this.injector) {
790
+ this.httpclient = this.injector.get(HttpClient);
762
791
  this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
763
792
  this.localepipe = new LocalLangPipe(this.localeid);
764
793
  }
@@ -994,12 +1023,6 @@ var FileUploadComponent = /** @class */ (function () {
994
1023
  return "continue";
995
1024
  }
996
1025
  }
997
- // if (this.files.find(x => x.name == selectedFile.name) != null) {
998
- // this.errFileList.push(selectedFile.name);
999
- // continue;
1000
- // }
1001
- //this.flag += Math.ceil(selectedFile.size / this.bufferSize);
1002
- //let reader = new FileReader();
1003
1026
  this_1.uploadFile(uuid, selectedFile, selectedFile.name);
1004
1027
  };
1005
1028
  var this_1 = this;
@@ -1127,49 +1150,52 @@ var FileUploadComponent = /** @class */ (function () {
1127
1150
  var nextSize = Math.min((chunkIndex + 1) * this_2.bufferSize, selectedFile.size);
1128
1151
  /** @type {?} */
1129
1152
  var fileData = selectedFile.slice(chunkIndex * this_2.bufferSize, nextSize);
1130
- /** @type {?} */
1131
- var reader = new FileReader();
1132
- reader.readAsBinaryString(fileData);
1153
+ // let reader = new FileReader();
1154
+ // reader.readAsBinaryString(fileData);
1133
1155
  /** @type {?} */
1134
1156
  var innerIndex = chunkIndex;
1135
- reader.onload = (/**
1157
+ // reader.onload = () => {
1158
+ // docInfo.fileContent = btoa(reader.result.toString());
1159
+ docInfo.size = selectedFile.size;
1160
+ docInfo.index = innerIndex;
1161
+ docInfo.fileContent = "";
1162
+ //chunkIndex++;
1163
+ if (this_2.haveExtensionProperty)
1164
+ docInfo.exPropertyName = this_2.defaultPropertyName;
1165
+ //docInfo.isLast = true;
1166
+ uploadInfo.docInfo = docInfo;
1167
+ // let info = uploadInfo;
1168
+ // this.requestArray.push(this.uploadService.uploadFile(uploadInfo));
1169
+ // this.requestBodyArray.push(info);
1170
+ //封装请求formdata
1171
+ /** @type {?} */
1172
+ var formData = new FormData();
1173
+ formData.append('uploadInfo', JSON.stringify(uploadInfo));
1174
+ formData.append('docInfo', JSON.stringify(docInfo));
1175
+ formData.append('file', fileData);
1176
+ this_2.uploadSliceFile(formData).subscribe((/**
1177
+ * @param {?} res
1136
1178
  * @return {?}
1137
1179
  */
1138
- function () {
1139
- docInfo.fileContent = btoa(reader.result.toString());
1140
- docInfo.index = innerIndex;
1141
- //chunkIndex++;
1142
- if (_this.haveExtensionProperty)
1143
- docInfo.exPropertyName = _this.defaultPropertyName;
1144
- //docInfo.isLast = true;
1145
- uploadInfo.docInfo = docInfo;
1146
- /** @type {?} */
1147
- var info = uploadInfo;
1148
- // this.requestArray.push(this.uploadService.uploadFile(uploadInfo));
1149
- _this.requestBodyArray.push(info);
1150
- _this.uploadService.uploadFile(info).subscribe((/**
1151
- * @param {?} res
1152
- * @return {?}
1153
- */
1154
- function (res) {
1155
- if (res != null) {
1156
- _this.files[_this.files.indexOf(fileInfo)].uploadResult = false;
1180
+ function (res) {
1181
+ if (res != null) {
1182
+ _this.files[_this.files.indexOf(fileInfo)].uploadResult = false;
1183
+ _this.files[_this.files.indexOf(fileInfo)].isUploading = false;
1184
+ _this.files[_this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
1185
+ }
1186
+ else {
1187
+ _this.uploadedChunk[docInfo.metadataId]++;
1188
+ _this.files[_this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((_this.uploadedChunk[docInfo.metadataId] / _this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
1189
+ if (_this.uploadedChunk[docInfo.metadataId] == _this.fileTotalChunk[docInfo.metadataId]) {
1190
+ _this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
1157
1191
  _this.files[_this.files.indexOf(fileInfo)].isUploading = false;
1158
- _this.files[_this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
1192
+ _this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
1193
+ _this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
1194
+ _this.uploadedFileTotal++;
1159
1195
  }
1160
- else {
1161
- _this.uploadedChunk[docInfo.metadataId]++;
1162
- _this.files[_this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((_this.uploadedChunk[docInfo.metadataId] / _this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
1163
- if (_this.uploadedChunk[docInfo.metadataId] == _this.fileTotalChunk[docInfo.metadataId]) {
1164
- _this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
1165
- _this.files[_this.files.indexOf(fileInfo)].isUploading = false;
1166
- _this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
1167
- _this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
1168
- _this.uploadedFileTotal++;
1169
- }
1170
- }
1171
- }));
1172
- });
1196
+ }
1197
+ }));
1198
+ // }
1173
1199
  //console.log(chunkIndex + 1);
1174
1200
  chunkIndex = chunkIndex + 1;
1175
1201
  };
@@ -1225,6 +1251,30 @@ var FileUploadComponent = /** @class */ (function () {
1225
1251
  this.uploadedFileTotal--;
1226
1252
  }
1227
1253
  };
1254
+ /**
1255
+ * @param {?} formdata
1256
+ * @return {?}
1257
+ */
1258
+ FileUploadComponent.prototype.uploadSliceFile = /**
1259
+ * @param {?} formdata
1260
+ * @return {?}
1261
+ */
1262
+ function (formdata) {
1263
+ /** @type {?} */
1264
+ var url = "/api/runtime/dfs/v1.0/formdoc/slice";
1265
+ //url = "/api/runtime/dfs/v1.0/formdoc/list";
1266
+ return this.httpclient.post(url, formdata).pipe(tap((/**
1267
+ * @param {?} res
1268
+ * @return {?}
1269
+ */
1270
+ function (res) { })), catchError((/**
1271
+ * @param {?} error
1272
+ * @return {?}
1273
+ */
1274
+ function (error) {
1275
+ return of$1(error);
1276
+ })));
1277
+ };
1228
1278
  /**
1229
1279
  * @return {?}
1230
1280
  */
@@ -1719,7 +1769,7 @@ var FileUploadComponent = /** @class */ (function () {
1719
1769
  { type: Component, args: [{
1720
1770
  selector: 'app-file-upload',
1721
1771
  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>",
1722
- 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:420px;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:180px;width:135px;margin:8px 0 8px 12px;float:left;overflow:hidden;align-items:center;position:relative}.pic_list ul li div{width:135px;height:160px;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}"]
1772
+ 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}"]
1723
1773
  }] }
1724
1774
  ];
1725
1775
  /** @nocollapse */
@@ -1926,11 +1976,12 @@ var UploadModule = /** @class */ (function () {
1926
1976
  LoadingModule.forRoot(),
1927
1977
  ProgressModule,
1928
1978
  FormsModule,
1929
- ComboListModule
1979
+ ComboListModule,
1980
+ HttpClientModule
1930
1981
  ],
1931
1982
  exports: [FileUploadComponent],
1932
1983
  entryComponents: [FileUploadComponent],
1933
- providers: [UploadService, DownloadService, LanguageService,
1984
+ providers: [UploadService, DownloadService, LanguageService, HttpService, CacheService, SessionService,
1934
1985
  { provide: LOCALE_ID, useValue: ɵ0$1 },]
1935
1986
  },] }
1936
1987
  ];