@gsp-svc/formdoc-upload 0.1.29 → 0.1.32

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 (41) hide show
  1. package/bundles/gsp-svc-formdoc-upload.umd.js +151 -7
  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/upload/entity/expropertyrequest.js +15 -0
  7. package/esm2015/lib/upload/entity/fileinfo.js +5 -1
  8. package/esm2015/lib/upload/entity/gspdocsecuritynaseinfo.js +15 -0
  9. package/esm2015/lib/upload/entity/securityentity.js +17 -0
  10. package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
  11. package/esm2015/lib/upload/entity/uploadlimit.js +4 -1
  12. package/esm2015/lib/upload/file-upload/file-upload.component.js +78 -8
  13. package/esm2015/lib/upload/upload.service.js +52 -1
  14. package/esm2015/lib/uploaddialog.service.js +2 -1
  15. package/esm2015/public-api.js +4 -1
  16. package/esm5/gsp-svc-formdoc-upload.js +2 -2
  17. package/esm5/lib/upload/entity/expropertyrequest.js +19 -0
  18. package/esm5/lib/upload/entity/fileinfo.js +5 -1
  19. package/esm5/lib/upload/entity/gspdocsecuritynaseinfo.js +19 -0
  20. package/esm5/lib/upload/entity/securityentity.js +21 -0
  21. package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
  22. package/esm5/lib/upload/entity/uploadlimit.js +4 -1
  23. package/esm5/lib/upload/file-upload/file-upload.component.js +86 -8
  24. package/esm5/lib/upload/upload.service.js +61 -1
  25. package/esm5/lib/uploaddialog.service.js +2 -1
  26. package/esm5/public-api.js +4 -1
  27. package/fesm2015/gsp-svc-formdoc-upload.js +135 -9
  28. package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
  29. package/fesm5/gsp-svc-formdoc-upload.js +158 -9
  30. package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
  31. package/gsp-svc-formdoc-upload.metadata.json +1 -1
  32. package/lib/upload/entity/expropertyrequest.d.ts +5 -0
  33. package/lib/upload/entity/fileinfo.d.ts +3 -0
  34. package/lib/upload/entity/gspdocsecuritynaseinfo.d.ts +5 -0
  35. package/lib/upload/entity/securityentity.d.ts +6 -0
  36. package/lib/upload/entity/uploadfileinfo.d.ts +2 -0
  37. package/lib/upload/entity/uploadlimit.d.ts +2 -0
  38. package/lib/upload/file-upload/file-upload.component.d.ts +11 -0
  39. package/lib/upload/upload.service.d.ts +4 -0
  40. package/package.json +1 -1
  41. package/public-api.d.ts +3 -0
@@ -11,7 +11,7 @@ import { ProgressModule } from '@farris/ui-progress';
11
11
  import { FormsModule } from '@angular/forms';
12
12
  import { ComboListModule } from '@farris/ui-combo-list';
13
13
  import { LanguageService, HttpService } from '@ecp-caf/caf-common';
14
- import { Injectable, Pipe, Inject, LOCALE_ID, Component, NgModule, Injector, ComponentFactoryResolver, Input, ViewChild, defineInjectable } from '@angular/core';
14
+ import { Injectable, Pipe, Inject, LOCALE_ID, Component, Injector, ComponentFactoryResolver, NgModule, ViewChild, Input, defineInjectable } from '@angular/core';
15
15
  import { BsModalService } from '@farris/ui-modal';
16
16
  import { of as of$1 } from 'rxjs';
17
17
  import { HttpClientModule } from '@angular/common/http';
@@ -331,6 +331,30 @@ var UploadService = /** @class */ (function () {
331
331
  return of(error);
332
332
  })));
333
333
  };
334
+ /**
335
+ * @param {?} baseInfo
336
+ * @return {?}
337
+ */
338
+ UploadService.prototype.getSecurityInfoList = /**
339
+ * @param {?} baseInfo
340
+ * @return {?}
341
+ */
342
+ function (baseInfo) {
343
+ /** @type {?} */
344
+ var url = "/api/runtime/dfs/v1.0/storagestrategy/security";
345
+ url = url + "?id=" + baseInfo.securityId + "&level=" + baseInfo.securityLevel;
346
+ return this.http.get(url).pipe(tap((/**
347
+ * @param {?} res
348
+ * @return {?}
349
+ */
350
+ function (res) { })), catchError((/**
351
+ * @param {?} error
352
+ * @return {?}
353
+ */
354
+ function (error) {
355
+ return of(error);
356
+ })));
357
+ };
334
358
  /**
335
359
  * @param {?} storageInfoList
336
360
  * @param {?} rootId
@@ -360,6 +384,42 @@ var UploadService = /** @class */ (function () {
360
384
  return of(error);
361
385
  })));
362
386
  };
387
+ /**
388
+ * @param {?} uploadFileInfoList
389
+ * @param {?} rootId
390
+ * @return {?}
391
+ */
392
+ UploadService.prototype.saveSecurityInfo = /**
393
+ * @param {?} uploadFileInfoList
394
+ * @param {?} rootId
395
+ * @return {?}
396
+ */
397
+ function (uploadFileInfoList, rootId) {
398
+ /** @type {?} */
399
+ var url = "/api/runtime/dfs/v1.0/doc/exproperty";
400
+ /** @type {?} */
401
+ var reqList = [];
402
+ uploadFileInfoList.forEach((/**
403
+ * @param {?} element
404
+ * @return {?}
405
+ */
406
+ function (element) {
407
+ /** @type {?} */
408
+ var request = { id: element.metadataId, rootId: rootId, exProperty: JSON.stringify(element.securityInfo) };
409
+ reqList.push(request);
410
+ }));
411
+ return this.http.post(url, reqList).pipe(tap((/**
412
+ * @param {?} res
413
+ * @return {?}
414
+ */
415
+ function (res) { })), catchError((/**
416
+ * @param {?} error
417
+ * @return {?}
418
+ */
419
+ function (error) {
420
+ return of(error);
421
+ })));
422
+ };
363
423
  /**
364
424
  * @param {?} formId
365
425
  * @param {?} rootId
@@ -608,6 +668,16 @@ var LocalLangPipe = /** @class */ (function () {
608
668
  return LocalLangPipe;
609
669
  }());
610
670
 
671
+ /**
672
+ * @fileoverview added by tsickle
673
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
674
+ */
675
+ var GspDocSecurityBaseInfo = /** @class */ (function () {
676
+ function GspDocSecurityBaseInfo() {
677
+ }
678
+ return GspDocSecurityBaseInfo;
679
+ }());
680
+
611
681
  /**
612
682
  * @fileoverview added by tsickle
613
683
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -642,17 +712,22 @@ var FileUploadComponent = /** @class */ (function () {
642
712
  this.uploadedProcess = {};
643
713
  this.defaultPropertyName = "";
644
714
  this.propertiesNames = [];
715
+ this.securityInfoList = [];
645
716
  this.queueListStyle = { width: '480px' };
646
717
  this.dropListValue = "";
647
718
  this.uploadedFileTotal = 0;
648
719
  this.haveExtensionProperty = false;
720
+ this.haveSecurityInfo = false;
649
721
  this.uploadedFileInfoList = [];
650
722
  this.oldUploadedFileList = [];
651
723
  //uploadedNameList = [];
652
724
  this.sameNameAllowed = true;
725
+ this.checkboxPos = { top: '0px' };
653
726
  this.fileType = "*";
654
727
  this.fileCount = 0;
655
728
  this.oldIdList = [];
729
+ this.securityInfo = null;
730
+ this.totalLoad = null;
656
731
  this.exStorageFileList = [];
657
732
  if (this.injector) {
658
733
  this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
@@ -667,7 +742,28 @@ var FileUploadComponent = /** @class */ (function () {
667
742
  */
668
743
  function () {
669
744
  var _this = this;
745
+ if (navigator.userAgent.indexOf('Firefox') >= 0)
746
+ this.checkboxPos.top = '14px';
670
747
  //if (this.storageService != null) {
748
+ if (this.securityInfo != null) {
749
+ this.uploadService.getSecurityInfoList(this.securityInfo).subscribe((/**
750
+ * @param {?} res
751
+ * @return {?}
752
+ */
753
+ function (res) {
754
+ _this.haveSecurityInfo = true;
755
+ /** @type {?} */
756
+ var i = 0;
757
+ res.forEach((/**
758
+ * @param {?} element
759
+ * @return {?}
760
+ */
761
+ function (element) {
762
+ _this.securityInfoList.push({ id: i.toString(), securityId: element.securityId, securityLevel: element.securityLevel, name: element.name });
763
+ i++;
764
+ }));
765
+ }));
766
+ }
671
767
  this.uploadService.getStorageExtensionInfo().subscribe((/**
672
768
  * @param {?} res
673
769
  * @return {?}
@@ -716,6 +812,19 @@ var FileUploadComponent = /** @class */ (function () {
716
812
  this.uploadService.cancel(this.oldIdList, this.rootId).subscribe();
717
813
  }
718
814
  };
815
+ /**
816
+ * @return {?}
817
+ */
818
+ FileUploadComponent.prototype.showLoading = /**
819
+ * @return {?}
820
+ */
821
+ function () {
822
+ this.hasSelectedFile = true;
823
+ // if (this.totalLoad == null)
824
+ // this.totalLoad = this.loadService.show({
825
+ // message: this.localepipe.transform('uploading')
826
+ // });
827
+ };
719
828
  /**
720
829
  * @param {?} $event
721
830
  * @return {?}
@@ -725,11 +834,12 @@ var FileUploadComponent = /** @class */ (function () {
725
834
  * @return {?}
726
835
  */
727
836
  function ($event) {
837
+ // const loading = this.loadService.show({
838
+ // message: this.localepipe.transform('uploading')
839
+ // });
728
840
  var _this = this;
729
- /** @type {?} */
730
- var loading = this.loadService.show({
731
- message: this.localepipe.transform('uploading')
732
- });
841
+ // this.totalLoad.close();
842
+ // this.totalLoad = null;
733
843
  this.hasSelectedFile = true;
734
844
  this.selectedFiles = document.querySelector('#file');
735
845
  if (this.fileCount > 0) {
@@ -880,7 +990,7 @@ var FileUploadComponent = /** @class */ (function () {
880
990
  this.files = this.files.slice();
881
991
  this.fileAllSelected = false;
882
992
  $event.target.value = '';
883
- loading.close();
993
+ // loading.close();
884
994
  };
885
995
  /**
886
996
  * @param {?} file
@@ -933,7 +1043,9 @@ var FileUploadComponent = /** @class */ (function () {
933
1043
  uploadProcess: 0,
934
1044
  errorMessage: "",
935
1045
  extensionDropListId: 0,
936
- extensionName: ""
1046
+ extensionName: "",
1047
+ securityDropListId: 0,
1048
+ securityInfo: this.securityInfoList[0]
937
1049
  };
938
1050
  if (this.storageExtension != null)
939
1051
  fileInfo.extensionName = this.defaultPropertyName;
@@ -948,6 +1060,7 @@ var FileUploadComponent = /** @class */ (function () {
948
1060
  uploadFileInfo.fileName = fileInfo.name;
949
1061
  uploadFileInfo.fileSize = fileInfo.size;
950
1062
  uploadFileInfo.state = state;
1063
+ uploadFileInfo.securityInfo = this.securityInfoList[0];
951
1064
  var _loop_2 = function () {
952
1065
  /** @type {?} */
953
1066
  var uploadInfo = new GspFormUploadEntity;
@@ -1321,6 +1434,26 @@ var FileUploadComponent = /** @class */ (function () {
1321
1434
  }
1322
1435
  return name;
1323
1436
  };
1437
+ /**
1438
+ * @param {?} $event
1439
+ * @param {?} file
1440
+ * @return {?}
1441
+ */
1442
+ FileUploadComponent.prototype.securityChange = /**
1443
+ * @param {?} $event
1444
+ * @param {?} file
1445
+ * @return {?}
1446
+ */
1447
+ function ($event, file) {
1448
+ file.securityInfo = $event.data;
1449
+ /** @type {?} */
1450
+ var uploadFile = this.uploadFileInfoList.filter((/**
1451
+ * @param {?} x
1452
+ * @return {?}
1453
+ */
1454
+ function (x) { return x.metadataId = file.id; }))[0];
1455
+ uploadFile.securityInfo = $event.data;
1456
+ };
1324
1457
  /**
1325
1458
  * @param {?} $event
1326
1459
  * @param {?} file
@@ -1386,6 +1519,9 @@ var FileUploadComponent = /** @class */ (function () {
1386
1519
  this.msgService.warning(this.localepipe.transform('wait'));
1387
1520
  return of$1(false);
1388
1521
  }
1522
+ if (this.haveSecurityInfo) {
1523
+ this.uploadService.saveSecurityInfo(this.uploadFileInfoList, this.rootId).subscribe();
1524
+ }
1389
1525
  if (this.storageExtension == null)
1390
1526
  return of$1(this.uploadFileInfoList);
1391
1527
  else {
@@ -1532,7 +1668,7 @@ var FileUploadComponent = /** @class */ (function () {
1532
1668
  FileUploadComponent.decorators = [
1533
1669
  { type: Component, args: [{
1534
1670
  selector: 'app-file-upload',
1535
- 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\" (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;\">\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\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
1671
+ 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-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; \"\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>",
1536
1672
  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}"]
1537
1673
  }] }
1538
1674
  ];
@@ -1549,6 +1685,7 @@ var FileUploadComponent = /** @class */ (function () {
1549
1685
  fileType: [{ type: Input }],
1550
1686
  fileCount: [{ type: Input }],
1551
1687
  oldIdList: [{ type: Input }],
1688
+ securityInfo: [{ type: Input }],
1552
1689
  opCell: [{ type: ViewChild, args: ['opCell',] }]
1553
1690
  };
1554
1691
  return FileUploadComponent;
@@ -1953,6 +2090,7 @@ var UploadDialogService = /** @class */ (function () {
1953
2090
  var uploadRef = uploadFactory.create(_this.injector);
1954
2091
  if (limit != null) {
1955
2092
  uploadRef.instance.fileCount = limit.fileCount;
2093
+ uploadRef.instance.securityInfo = limit.securityInfo;
1956
2094
  if (limit.fileType != null && limit.fileType != "")
1957
2095
  uploadRef.instance.fileType = limit.fileType;
1958
2096
  }
@@ -2050,6 +2188,7 @@ var UploadLimit = /** @class */ (function () {
2050
2188
  function UploadLimit() {
2051
2189
  this.fileType = "*";
2052
2190
  this.fileCount = 0;
2191
+ this.securityInfo = null;
2053
2192
  }
2054
2193
  return UploadLimit;
2055
2194
  }());
@@ -2084,6 +2223,16 @@ var FileInfo = /** @class */ (function () {
2084
2223
  return FileInfo;
2085
2224
  }());
2086
2225
 
2226
+ /**
2227
+ * @fileoverview added by tsickle
2228
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2229
+ */
2230
+ var SecurityEntity = /** @class */ (function () {
2231
+ function SecurityEntity() {
2232
+ }
2233
+ return SecurityEntity;
2234
+ }());
2235
+
2087
2236
  /**
2088
2237
  * @fileoverview added by tsickle
2089
2238
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2094,6 +2243,6 @@ var FileInfo = /** @class */ (function () {
2094
2243
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2095
2244
  */
2096
2245
 
2097
- export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState, LocalLangPipe as ɵb };
2246
+ export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState, GspDocSecurityBaseInfo, SecurityEntity, ExStorageFileInfo, LocalLangPipe as ɵb };
2098
2247
 
2099
2248
  //# sourceMappingURL=gsp-svc-formdoc-upload.js.map