@gsp-svc/formdoc-upload 0.1.31 → 0.1.33

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.
Files changed (44) hide show
  1. package/bundles/gsp-svc-formdoc-upload.umd.js +184 -12
  2. package/bundles/gsp-svc-formdoc-upload.umd.js.map +1 -1
  3. package/bundles/gsp-svc-formdoc-upload.umd.min.js +1 -1
  4. package/bundles/gsp-svc-formdoc-upload.umd.min.js.map +1 -1
  5. package/esm2015/gsp-svc-formdoc-upload.js +2 -2
  6. package/esm2015/lib/i18n/language.resource.js +5 -1
  7. package/esm2015/lib/upload/entity/expropertyrequest.js +15 -0
  8. package/esm2015/lib/upload/entity/fileinfo.js +5 -1
  9. package/esm2015/lib/upload/entity/gspdocsecuritynaseinfo.js +15 -0
  10. package/esm2015/lib/upload/entity/securityentity.js +17 -0
  11. package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
  12. package/esm2015/lib/upload/entity/uploadlimit.js +4 -1
  13. package/esm2015/lib/upload/file-upload/file-upload.component.js +94 -13
  14. package/esm2015/lib/upload/upload.service.js +71 -1
  15. package/esm2015/lib/uploaddialog.service.js +2 -1
  16. package/esm2015/public-api.js +4 -1
  17. package/esm5/gsp-svc-formdoc-upload.js +2 -2
  18. package/esm5/lib/i18n/language.resource.js +5 -1
  19. package/esm5/lib/upload/entity/expropertyrequest.js +19 -0
  20. package/esm5/lib/upload/entity/fileinfo.js +5 -1
  21. package/esm5/lib/upload/entity/gspdocsecuritynaseinfo.js +19 -0
  22. package/esm5/lib/upload/entity/securityentity.js +21 -0
  23. package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
  24. package/esm5/lib/upload/entity/uploadlimit.js +4 -1
  25. package/esm5/lib/upload/file-upload/file-upload.component.js +99 -13
  26. package/esm5/lib/upload/upload.service.js +84 -1
  27. package/esm5/lib/uploaddialog.service.js +2 -1
  28. package/esm5/public-api.js +4 -1
  29. package/fesm2015/gsp-svc-formdoc-upload.js +171 -14
  30. package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
  31. package/fesm5/gsp-svc-formdoc-upload.js +194 -14
  32. package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
  33. package/gsp-svc-formdoc-upload.metadata.json +1 -1
  34. package/lib/i18n/language.resource.d.ts +4 -0
  35. package/lib/upload/entity/expropertyrequest.d.ts +5 -0
  36. package/lib/upload/entity/fileinfo.d.ts +3 -0
  37. package/lib/upload/entity/gspdocsecuritynaseinfo.d.ts +5 -0
  38. package/lib/upload/entity/securityentity.d.ts +6 -0
  39. package/lib/upload/entity/uploadfileinfo.d.ts +2 -0
  40. package/lib/upload/entity/uploadlimit.d.ts +2 -0
  41. package/lib/upload/file-upload/file-upload.component.d.ts +9 -0
  42. package/lib/upload/upload.service.d.ts +5 -0
  43. package/package.json +1 -1
  44. package/public-api.d.ts +3 -0
@@ -310,6 +310,28 @@
310
310
  return of.of(error);
311
311
  })));
312
312
  };
313
+ /**
314
+ * @param {?} baseInfo
315
+ * @return {?}
316
+ */
317
+ UploadService.prototype.getSecurityInfoList = /**
318
+ * @param {?} baseInfo
319
+ * @return {?}
320
+ */
321
+ function (baseInfo) {
322
+ /** @type {?} */
323
+ var url = "/api/runtime/dfs/v1.0/storagestrategy/security";
324
+ url = url + "?id=" + baseInfo.securityId + "&level=" + baseInfo.securityLevel;
325
+ return this.http.get(url).pipe(operators.tap(( /**
326
+ * @param {?} res
327
+ * @return {?}
328
+ */function (res) { })), operators.catchError(( /**
329
+ * @param {?} error
330
+ * @return {?}
331
+ */function (error) {
332
+ return of.of(error);
333
+ })));
334
+ };
313
335
  /**
314
336
  * @param {?} storageInfoList
315
337
  * @param {?} rootId
@@ -337,6 +359,39 @@
337
359
  return of.of(error);
338
360
  })));
339
361
  };
362
+ /**
363
+ * @param {?} uploadFileInfoList
364
+ * @param {?} rootId
365
+ * @return {?}
366
+ */
367
+ UploadService.prototype.saveSecurityInfo = /**
368
+ * @param {?} uploadFileInfoList
369
+ * @param {?} rootId
370
+ * @return {?}
371
+ */
372
+ function (uploadFileInfoList, rootId) {
373
+ /** @type {?} */
374
+ var url = "/api/runtime/dfs/v1.0/doc/exproperty";
375
+ /** @type {?} */
376
+ var reqList = [];
377
+ uploadFileInfoList.forEach(( /**
378
+ * @param {?} element
379
+ * @return {?}
380
+ */function (element) {
381
+ /** @type {?} */
382
+ var request = { id: element.metadataId, rootId: rootId, exProperty: JSON.stringify(element.securityInfo) };
383
+ reqList.push(request);
384
+ }));
385
+ return this.http.post(url, reqList).pipe(operators.tap(( /**
386
+ * @param {?} res
387
+ * @return {?}
388
+ */function (res) { })), operators.catchError(( /**
389
+ * @param {?} error
390
+ * @return {?}
391
+ */function (error) {
392
+ return of.of(error);
393
+ })));
394
+ };
340
395
  /**
341
396
  * @param {?} formId
342
397
  * @param {?} rootId
@@ -382,6 +437,27 @@
382
437
  return of.of(error);
383
438
  })));
384
439
  };
440
+ /**
441
+ * @param {?} id
442
+ * @return {?}
443
+ */
444
+ UploadService.prototype.getValidation = /**
445
+ * @param {?} id
446
+ * @return {?}
447
+ */
448
+ function (id) {
449
+ /** @type {?} */
450
+ var url = "/api/runtime/dfs/v1.0/validation/" + id;
451
+ return this.http.get(url).pipe(operators.tap(( /**
452
+ * @param {?} res
453
+ * @return {?}
454
+ */function (res) { })), operators.catchError(( /**
455
+ * @param {?} error
456
+ * @return {?}
457
+ */function (error) {
458
+ return of.of(error);
459
+ })));
460
+ };
385
461
  UploadService.decorators = [
386
462
  { type: i0.Injectable }
387
463
  ];
@@ -454,6 +530,7 @@
454
530
  'rename': '重命名',
455
531
  'replace': '替换',
456
532
  'sizeZero': '文件大小为0',
533
+ 'sizeMax': '文件大小超出限制',
457
534
  'uploadFailure': '上传失败',
458
535
  'uploadSucceed': '上传成功',
459
536
  'wait': '等一下,文档正在上传。',
@@ -481,6 +558,7 @@
481
558
  'rename': 'Rename',
482
559
  'replace': 'Replace',
483
560
  'sizeZero': 'File size is 0',
561
+ 'sizeMax': 'File size beyond limit',
484
562
  'uploadFailure': 'Upload failed',
485
563
  'uploadSucceed': 'Upload successfully',
486
564
  'wait': 'Wait a minute, the file is uploading.',
@@ -508,6 +586,7 @@
508
586
  'rename': 'Rename',
509
587
  'replace': 'Replace',
510
588
  'sizeZero': 'File size is 0',
589
+ 'sizeMax': 'File size beyond limit',
511
590
  'uploadFailure': 'Upload failed',
512
591
  'uploadSucceed': 'Upload successfully',
513
592
  'wait': 'Wait a minute, the file is uploading.',
@@ -535,6 +614,7 @@
535
614
  'rename': '重命名',
536
615
  'replace': '替換',
537
616
  'sizeZero': '文件大小為0',
617
+ 'sizeMax': '文件大小超出限制',
538
618
  'uploadFailure': '上傳失敗',
539
619
  'uploadSucceed': '上傳成功',
540
620
  'wait': '等一下,文件正在上傳。',
@@ -601,6 +681,7 @@
601
681
  this.errFileList = [];
602
682
  this.errTypeList = [];
603
683
  this.nullFileList = [];
684
+ this.beyondFileList = [];
604
685
  this.showType = 0;
605
686
  this.mouseOn = false;
606
687
  this.bufferSize = 1024 * 1024;
@@ -619,18 +700,22 @@
619
700
  this.uploadedProcess = {};
620
701
  this.defaultPropertyName = "";
621
702
  this.propertiesNames = [];
703
+ this.securityInfoList = [];
622
704
  this.queueListStyle = { width: '480px' };
623
705
  this.dropListValue = "";
624
706
  this.uploadedFileTotal = 0;
625
707
  this.haveExtensionProperty = false;
708
+ this.haveSecurityInfo = false;
626
709
  this.uploadedFileInfoList = [];
627
710
  this.oldUploadedFileList = [];
628
711
  //uploadedNameList = [];
629
712
  this.sameNameAllowed = true;
713
+ this.maxFileSize = 0;
630
714
  this.checkboxPos = { top: '0px' };
631
715
  this.fileType = "*";
632
716
  this.fileCount = 0;
633
717
  this.oldIdList = [];
718
+ this.securityInfo = null;
634
719
  this.totalLoad = null;
635
720
  this.exStorageFileList = [];
636
721
  if (this.injector) {
@@ -649,6 +734,23 @@
649
734
  if (navigator.userAgent.indexOf('Firefox') >= 0)
650
735
  this.checkboxPos.top = '14px';
651
736
  //if (this.storageService != null) {
737
+ if (this.securityInfo != null) {
738
+ this.uploadService.getSecurityInfoList(this.securityInfo).subscribe(( /**
739
+ * @param {?} res
740
+ * @return {?}
741
+ */function (res) {
742
+ _this.haveSecurityInfo = true;
743
+ /** @type {?} */
744
+ var i = 0;
745
+ res.forEach(( /**
746
+ * @param {?} element
747
+ * @return {?}
748
+ */function (element) {
749
+ _this.securityInfoList.push({ id: i.toString(), securityId: element.securityId, securityLevel: element.securityLevel, name: element.name });
750
+ i++;
751
+ }));
752
+ }));
753
+ }
652
754
  this.uploadService.getStorageExtensionInfo().subscribe(( /**
653
755
  * @param {?} res
654
756
  * @return {?}
@@ -676,6 +778,7 @@
676
778
  */function (res) {
677
779
  if (res != null && res.error == null) {
678
780
  _this.sameNameAllowed = res.sameNameAllowed;
781
+ _this.validationId = res.validationId;
679
782
  if (!_this.sameNameAllowed) {
680
783
  _this.uploadService.getUploadedFileInfoList(_this.formId, _this.rootId).subscribe(( /**
681
784
  * @param {?} res
@@ -687,6 +790,12 @@
687
790
  }
688
791
  }));
689
792
  }
793
+ _this.uploadService.getValidation(_this.validationId).subscribe(( /**
794
+ * @param {?} res
795
+ * @return {?}
796
+ */function (res) {
797
+ _this.maxFileSize = parseInt(JSON.parse(res.configuration).maxFileSize);
798
+ }));
690
799
  }
691
800
  }));
692
801
  if (this.oldIdList != null && this.oldIdList.length > 0) {
@@ -700,10 +809,11 @@
700
809
  * @return {?}
701
810
  */
702
811
  function () {
703
- if (this.totalLoad == null)
704
- this.totalLoad = this.loadService.show({
705
- message: this.localepipe.transform('uploading')
706
- });
812
+ this.hasSelectedFile = true;
813
+ // if (this.totalLoad == null)
814
+ // this.totalLoad = this.loadService.show({
815
+ // message: this.localepipe.transform('uploading')
816
+ // });
707
817
  };
708
818
  /**
709
819
  * @param {?} $event
@@ -718,8 +828,8 @@
718
828
  // message: this.localepipe.transform('uploading')
719
829
  // });
720
830
  var _this = this;
721
- this.totalLoad.close();
722
- this.totalLoad = null;
831
+ // this.totalLoad.close();
832
+ // this.totalLoad = null;
723
833
  this.hasSelectedFile = true;
724
834
  this.selectedFiles = document.querySelector('#file');
725
835
  if (this.fileCount > 0) {
@@ -736,6 +846,14 @@
736
846
  //selectedFile.slice
737
847
  /** @type {?} */
738
848
  var uuid = angular2Uuid.UUID.UUID();
849
+ if (selectedFile.size == 0) {
850
+ this_1.nullFileList.push(selectedFile.name);
851
+ return "continue";
852
+ }
853
+ if (selectedFile.size > this_1.maxFileSize * 1000) {
854
+ this_1.beyondFileList.push(selectedFile.name);
855
+ return "continue";
856
+ }
739
857
  if (!this_1.sameNameAllowed) {
740
858
  if (this_1.uploadedFileInfoList.find(( /**
741
859
  * @param {?} x
@@ -823,10 +941,6 @@
823
941
  // this.errFileList.push(selectedFile.name);
824
942
  // continue;
825
943
  // }
826
- if (selectedFile.size == 0) {
827
- this_1.nullFileList.push(selectedFile.name);
828
- return "continue";
829
- }
830
944
  //this.flag += Math.ceil(selectedFile.size / this.bufferSize);
831
945
  //let reader = new FileReader();
832
946
  this_1.uploadFile(uuid, selectedFile, selectedFile.name);
@@ -854,6 +968,13 @@
854
968
  this.msgService.warning(name_2 + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
855
969
  this.nullFileList = [];
856
970
  }
971
+ if (this.beyondFileList.length > 0) {
972
+ /** @type {?} */
973
+ var name_3 = this.listToString(this.beyondFileList);
974
+ name_3 = name_3.substring(0, name_3.length - 1);
975
+ this.msgService.warning(name_3 + this.localepipe.transform('sizeMax') + this.maxFileSize + "KB" + this.localepipe.transform('rechooseFile'));
976
+ this.nullFileList = [];
977
+ }
857
978
  // if (this.errTypeList.length > 0) {
858
979
  // let type: string = this.listToString(this.errTypeList);
859
980
  // this.msgService.warning('不支持上传类型为 ' + type + '的文件请重新选择上传文件。');
@@ -917,7 +1038,9 @@
917
1038
  uploadProcess: 0,
918
1039
  errorMessage: "",
919
1040
  extensionDropListId: 0,
920
- extensionName: ""
1041
+ extensionName: "",
1042
+ securityDropListId: 0,
1043
+ securityInfo: this.securityInfoList[0]
921
1044
  };
922
1045
  if (this.storageExtension != null)
923
1046
  fileInfo.extensionName = this.defaultPropertyName;
@@ -932,6 +1055,7 @@
932
1055
  uploadFileInfo.fileName = fileInfo.name;
933
1056
  uploadFileInfo.fileSize = fileInfo.size;
934
1057
  uploadFileInfo.state = state;
1058
+ uploadFileInfo.securityInfo = this.securityInfoList[0];
935
1059
  var _loop_2 = function () {
936
1060
  /** @type {?} */
937
1061
  var uploadInfo = new GspFormUploadEntity;
@@ -1298,6 +1422,25 @@
1298
1422
  * @param {?} file
1299
1423
  * @return {?}
1300
1424
  */
1425
+ FileUploadComponent.prototype.securityChange = /**
1426
+ * @param {?} $event
1427
+ * @param {?} file
1428
+ * @return {?}
1429
+ */
1430
+ function ($event, file) {
1431
+ file.securityInfo = $event.data;
1432
+ /** @type {?} */
1433
+ var uploadFile = this.uploadFileInfoList.filter(( /**
1434
+ * @param {?} x
1435
+ * @return {?}
1436
+ */function (x) { return x.metadataId = file.id; }))[0];
1437
+ uploadFile.securityInfo = $event.data;
1438
+ };
1439
+ /**
1440
+ * @param {?} $event
1441
+ * @param {?} file
1442
+ * @return {?}
1443
+ */
1301
1444
  FileUploadComponent.prototype.typeChange = /**
1302
1445
  * @param {?} $event
1303
1446
  * @param {?} file
@@ -1353,6 +1496,9 @@
1353
1496
  this.msgService.warning(this.localepipe.transform('wait'));
1354
1497
  return rxjs.of(false);
1355
1498
  }
1499
+ if (this.haveSecurityInfo) {
1500
+ this.uploadService.saveSecurityInfo(this.uploadFileInfoList, this.rootId).subscribe();
1501
+ }
1356
1502
  if (this.storageExtension == null)
1357
1503
  return rxjs.of(this.uploadFileInfoList);
1358
1504
  else {
@@ -1495,7 +1641,7 @@
1495
1641
  FileUploadComponent.decorators = [
1496
1642
  { type: i0.Component, args: [{
1497
1643
  selector: 'app-file-upload',
1498
- 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\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" 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\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (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'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" 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-error\"></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; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | 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\" 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\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [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;\" [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" 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\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [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\" [(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\" [(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\" (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' | locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [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\" 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\" (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\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
1644
+ 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>",
1499
1645
  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}"]
1500
1646
  }] }
1501
1647
  ];
@@ -1514,6 +1660,7 @@
1514
1660
  fileType: [{ type: i0.Input }],
1515
1661
  fileCount: [{ type: i0.Input }],
1516
1662
  oldIdList: [{ type: i0.Input }],
1663
+ securityInfo: [{ type: i0.Input }],
1517
1664
  opCell: [{ type: i0.ViewChild, args: ['opCell',] }]
1518
1665
  };
1519
1666
  return FileUploadComponent;
@@ -1916,6 +2063,7 @@
1916
2063
  var uploadRef = uploadFactory.create(_this.injector);
1917
2064
  if (limit != null) {
1918
2065
  uploadRef.instance.fileCount = limit.fileCount;
2066
+ uploadRef.instance.securityInfo = limit.securityInfo;
1919
2067
  if (limit.fileType != null && limit.fileType != "")
1920
2068
  uploadRef.instance.fileType = limit.fileType;
1921
2069
  }
@@ -2011,6 +2159,7 @@
2011
2159
  function UploadLimit() {
2012
2160
  this.fileType = "*";
2013
2161
  this.fileCount = 0;
2162
+ this.securityInfo = null;
2014
2163
  }
2015
2164
  return UploadLimit;
2016
2165
  }());
@@ -2045,6 +2194,26 @@
2045
2194
  return FileInfo;
2046
2195
  }());
2047
2196
 
2197
+ /**
2198
+ * @fileoverview added by tsickle
2199
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2200
+ */
2201
+ var GspDocSecurityBaseInfo = /** @class */ (function () {
2202
+ function GspDocSecurityBaseInfo() {
2203
+ }
2204
+ return GspDocSecurityBaseInfo;
2205
+ }());
2206
+
2207
+ /**
2208
+ * @fileoverview added by tsickle
2209
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2210
+ */
2211
+ var SecurityEntity = /** @class */ (function () {
2212
+ function SecurityEntity() {
2213
+ }
2214
+ return SecurityEntity;
2215
+ }());
2216
+
2048
2217
  /**
2049
2218
  * @fileoverview added by tsickle
2050
2219
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2077,6 +2246,9 @@
2077
2246
  exports.FileInfo = FileInfo;
2078
2247
  exports.OperatingModes = OperatingModes;
2079
2248
  exports.FileState = FileState;
2249
+ exports.GspDocSecurityBaseInfo = GspDocSecurityBaseInfo;
2250
+ exports.SecurityEntity = SecurityEntity;
2251
+ exports.ExStorageFileInfo = ExStorageFileInfo;
2080
2252
  exports.ɵb = LocalLangPipe;
2081
2253
 
2082
2254
  Object.defineProperty(exports, '__esModule', { value: true });