@gsp-svc/formdoc-upload 0.1.38 → 0.2.0

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 (48) hide show
  1. package/bundles/gsp-svc-formdoc-upload.umd.js +434 -341
  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/lib/i18n/language.resource.js +9 -5
  6. package/esm2015/lib/upload/download.service.js +9 -1
  7. package/esm2015/lib/upload/entity/completemultiuploadrequest.js +21 -0
  8. package/esm2015/lib/upload/entity/{gspdocsecuritynaseinfo.js → gspdocsecuritybaseinfo.js} +1 -1
  9. package/esm2015/lib/upload/entity/gspformstreamentity.js +25 -0
  10. package/esm2015/lib/upload/entity/gspformuploadentity.js +1 -1
  11. package/esm2015/lib/upload/entity/initmultiuploadrequest.js +19 -0
  12. package/esm2015/lib/upload/entity/multiuploadrequest.js +21 -0
  13. package/esm2015/lib/upload/entity/multiuploadresult.js +13 -0
  14. package/esm2015/lib/upload/entity/uploadlimit.js +1 -1
  15. package/esm2015/lib/upload/file-upload/file-upload.component.js +354 -284
  16. package/esm2015/lib/upload/upload.service.js +5 -30
  17. package/esm2015/public-api.js +2 -2
  18. package/esm5/lib/i18n/language.resource.js +9 -5
  19. package/esm5/lib/upload/download.service.js +14 -1
  20. package/esm5/lib/upload/entity/completemultiuploadrequest.js +25 -0
  21. package/esm5/lib/upload/entity/{gspdocsecuritynaseinfo.js → gspdocsecuritybaseinfo.js} +1 -1
  22. package/esm5/lib/upload/entity/gspformstreamentity.js +29 -0
  23. package/esm5/lib/upload/entity/gspformuploadentity.js +1 -1
  24. package/esm5/lib/upload/entity/initmultiuploadrequest.js +23 -0
  25. package/esm5/lib/upload/entity/multiuploadrequest.js +25 -0
  26. package/esm5/lib/upload/entity/multiuploadresult.js +17 -0
  27. package/esm5/lib/upload/entity/uploadlimit.js +1 -1
  28. package/esm5/lib/upload/file-upload/file-upload.component.js +368 -296
  29. package/esm5/lib/upload/upload.service.js +5 -34
  30. package/esm5/public-api.js +2 -2
  31. package/fesm2015/gsp-svc-formdoc-upload.js +410 -329
  32. package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
  33. package/fesm5/gsp-svc-formdoc-upload.js +447 -351
  34. package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
  35. package/gsp-svc-formdoc-upload.metadata.json +1 -1
  36. package/lib/i18n/language.resource.d.ts +4 -0
  37. package/lib/upload/download.service.d.ts +1 -0
  38. package/lib/upload/entity/completemultiuploadrequest.d.ts +9 -0
  39. package/lib/upload/entity/gspformstreamentity.d.ts +12 -0
  40. package/lib/upload/entity/initmultiuploadrequest.d.ts +7 -0
  41. package/lib/upload/entity/multiuploadrequest.d.ts +8 -0
  42. package/lib/upload/entity/multiuploadresult.d.ts +4 -0
  43. package/lib/upload/entity/uploadlimit.d.ts +1 -1
  44. package/lib/upload/file-upload/file-upload.component.d.ts +10 -6
  45. package/lib/upload/upload.service.d.ts +2 -3
  46. package/package.json +1 -1
  47. package/public-api.d.ts +1 -1
  48. /package/lib/upload/entity/{gspdocsecuritynaseinfo.d.ts → gspdocsecuritybaseinfo.d.ts} +0 -0
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"FormdocUploadService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ngInjectableDef":{}}},"FormdocUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-formdoc-upload","template":"\n <p>\n formdoc-upload works!\n </p>\n ","styles":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"FormdocUploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FormdocUploadComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":10,"character":4}],"exports":[{"__symbolic":"reference","name":"FormdocUploadComponent"}],"providers":[{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"LanguageService","line":14,"character":17},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":14,"character":33},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"CacheService","line":14,"character":45},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"SessionService","line":14,"character":58},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":15,"character":15},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"localStorage"},"member":"getItem"},"arguments":["languageCode"]},"right":"zh-CHS"}}]}]}],"members":{}},"UploadDialogMoudle":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"UploadDialogComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4},{"__symbolic":"reference","module":"@farris/ui-dialog","name":"FarrisDialogModule","line":22,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerModule","line":23,"character":4},"member":"forRoot"}},{"__symbolic":"reference","name":"UploadModule"},{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"ButtonsModule","line":25,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyModule","line":26,"character":4},"member":"forRoot"}},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":27,"character":4}],"exports":[{"__symbolic":"reference","name":"UploadDialogComponent"},{"__symbolic":"reference","name":"FileUploadComponent"}],"entryComponents":[{"__symbolic":"reference","name":"UploadDialogComponent"},{"__symbolic":"reference","name":"FileUploadComponent"}],"providers":[{"__symbolic":"reference","module":"@farris/ui-modal","name":"BsModalService","line":31,"character":14},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":31,"character":30},{"__symbolic":"reference","name":"UploadDialogService"},{"__symbolic":"reference","name":"UploadService"}]}]}],"members":{}},"UploadDialogComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"app-uploaddialog","template":"\n","styles":[""]}]}],"members":{"formId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@farris/ui-modal","name":"BsModalService","line":17,"character":36}]}],"fileUpload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":19,"character":3},"arguments":[{"__symbolic":"reference","name":"FileUploadComponent"}]}]}],"ngOnInit":[{"__symbolic":"method"}],"showDialog":[{"__symbolic":"method"}]}},"UploadDialogService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@farris/ui-modal","name":"BsModalService","line":14,"character":38},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":14,"character":88},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":14,"character":132}]}],"showDialog":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"uploadFileWithLimit":[{"__symbolic":"method"}]}},"UploadService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":24,"character":28},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":24,"character":61}]}],"uploadList":[{"__symbolic":"method"}],"commit":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"removeList":[{"__symbolic":"method"}],"getFile":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"uploadSliceFile":[{"__symbolic":"method"}],"getStorageExtensionInfo":[{"__symbolic":"method"}],"getSecurityInfoList":[{"__symbolic":"method"}],"changeStorageInstance":[{"__symbolic":"method"}],"copyFile":[{"__symbolic":"method"}],"saveSecurityInfo":[{"__symbolic":"method"}],"getUploadedFileInfoList":[{"__symbolic":"method"}],"getRootSetting":[{"__symbolic":"method"}],"getValidation":[{"__symbolic":"method"}]}},"DownloadService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"getDownloadUrl":[{"__symbolic":"method"}],"getMultipleDownloadUrl":[{"__symbolic":"method"}],"getMultipleDownloadUrlWithName":[{"__symbolic":"method"}],"getHistoryDownloadUrl":[{"__symbolic":"method"}],"mergeString":[{"__symbolic":"method"}],"getToken":[{"__symbolic":"method"}],"switchStr":[{"__symbolic":"method"}]}},"FileUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"selector":"app-file-upload","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> 上传失败 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">详情</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)\">重试</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>","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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerService","line":98,"character":34},{"__symbolic":"reference","name":"UploadService"},{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingService","line":98,"character":110},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":98,"character":145}]}],"formId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":3}}]}],"rootId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":3}}]}],"fileType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":107,"character":3}}]}],"fileCount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":108,"character":3}}]}],"oldIdList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":3}}]}],"securityInfo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":110,"character":3}}]}],"opCell":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":114,"character":3},"arguments":["opCell"]}]}],"ngOnInit":[{"__symbolic":"method"}],"showLoading":[{"__symbolic":"method"}],"fileSelected":[{"__symbolic":"method"}],"showErrorMessage":[{"__symbolic":"method"}],"handleFileInfo":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"sendUploadRequest":[{"__symbolic":"method"}],"uploadSliceFile":[{"__symbolic":"method"}],"selectAllFile":[{"__symbolic":"method"}],"checkoutSelectFile":[{"__symbolic":"method"}],"listDeleteFile":[{"__symbolic":"method"}],"listMultipleDeleteFile":[{"__symbolic":"method"}],"getPicListDisplayName":[{"__symbolic":"method"}],"getQueueDisplayName":[{"__symbolic":"method"}],"addDocInfo":[{"__symbolic":"method"}],"getImageUrl":[{"__symbolic":"method"}],"listToString":[{"__symbolic":"method"}],"securityChange":[{"__symbolic":"method"}],"typeChange":[{"__symbolic":"method"}],"upload":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"getUploadFileInfoList":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"getFileSize":[{"__symbolic":"method"}],"showByGroup":[{"__symbolic":"method"}],"showByList":[{"__symbolic":"method"}],"mouseOver":[{"__symbolic":"method"}],"mouseOut":[{"__symbolic":"method"}]}},"UploadFileInfo":{"__symbolic":"class","members":{}},"UploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FileUploadComponent"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"ButtonsModule","line":22,"character":4},{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyModule","line":23,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerModule","line":24,"character":4},"member":"forRoot"}},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingModule","line":25,"character":4},"member":"forRoot"}},{"__symbolic":"reference","module":"@farris/ui-progress","name":"ProgressModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":27,"character":4},{"__symbolic":"reference","module":"@farris/ui-combo-list","name":"ComboListModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":29,"character":4}],"exports":[{"__symbolic":"reference","name":"FileUploadComponent"}],"entryComponents":[{"__symbolic":"reference","name":"FileUploadComponent"}],"providers":[{"__symbolic":"reference","name":"UploadService"},{"__symbolic":"reference","name":"DownloadService"},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"LanguageService","line":33,"character":46},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":33,"character":63},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"CacheService","line":33,"character":76},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"SessionService","line":33,"character":90},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":34,"character":15},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"localStorage"},"member":"getItem"},"arguments":["languageCode"]},"right":"zh-CHS"}}]}]}],"members":{}},"ɵa":{"__symbolic":"reference","name":"UploadModule"},"UploadLimit":{"__symbolic":"class","members":{}},"GspFormDocOperateEntity":{"__symbolic":"class","members":{}},"GspFormRemoveListEntity":{"__symbolic":"class","members":{}},"GspFormUploadListEntity":{"__symbolic":"class","members":{}},"GspFormDocInfo":{"__symbolic":"class","members":{}},"GspDocMetaProperty":{"__symbolic":"class","members":{}},"GspFormUploadEntity":{"__symbolic":"class","members":{}},"FileInfo":{"__symbolic":"class","members":{}},"OperatingModes":{"Formal":0,"Temp":1},"FileState":{"New":0,"Update":1},"GspDocSecurityBaseInfo":{"__symbolic":"class","members":{}},"SecurityEntity":{"__symbolic":"class","members":{}},"ExStorageFileInfo":{"__symbolic":"class","members":{}},"CopyFileRequest":{"__symbolic":"class","members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"locale"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":9,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":9,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}],"transform":[{"__symbolic":"method"}]}}},"origins":{"FormdocUploadService":"./lib/formdoc-upload.service","FormdocUploadComponent":"./lib/formdoc-upload.component","FormdocUploadModule":"./lib/formdoc-upload.module","UploadDialogMoudle":"./lib/uploaddialog/uploaddialog.module","UploadDialogComponent":"./lib/uploaddialog/uploaddialog/uploaddialog.component","UploadDialogService":"./lib/uploaddialog.service","UploadService":"./lib/upload/upload.service","DownloadService":"./lib/upload/download.service","FileUploadComponent":"./lib/upload/file-upload/file-upload.component","UploadFileInfo":"./lib/upload/entity/uploadfileinfo","UploadModule":"./lib/upload/upload.module","ɵa":"./lib/upload/upload.module","UploadLimit":"./lib/upload/entity/uploadlimit","GspFormDocOperateEntity":"./lib/upload/entity/gspformdocoperateentity","GspFormRemoveListEntity":"./lib/upload/entity/gspformremovelistentity","GspFormUploadListEntity":"./lib/upload/entity/gspformuploadlistentity","GspFormDocInfo":"./lib/upload/entity/gspformdocinfo","GspDocMetaProperty":"./lib/upload/entity/gspdocmetaproperty","GspFormUploadEntity":"./lib/upload/entity/gspformuploadentity","FileInfo":"./lib/upload/entity/fileinfo","OperatingModes":"./lib/upload/entity/operatingmodes","FileState":"./lib/upload/entity/filestate","GspDocSecurityBaseInfo":"./lib/upload/entity/gspdocsecuritynaseinfo","SecurityEntity":"./lib/upload/entity/securityentity","ExStorageFileInfo":"./lib/upload/entity/extensionstoragefileinfo","CopyFileRequest":"./lib/upload/entity/copyfilerequest","ɵb":"./lib/local.pipe"},"importAs":"@gsp-svc/formdoc-upload"}
1
+ {"__symbolic":"module","version":4,"metadata":{"FormdocUploadService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ngInjectableDef":{}}},"FormdocUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-formdoc-upload","template":"\n <p>\n formdoc-upload works!\n </p>\n ","styles":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"FormdocUploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FormdocUploadComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":10,"character":4}],"exports":[{"__symbolic":"reference","name":"FormdocUploadComponent"}],"providers":[{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"LanguageService","line":14,"character":17},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":14,"character":33},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"CacheService","line":14,"character":45},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"SessionService","line":14,"character":58},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":15,"character":15},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"localStorage"},"member":"getItem"},"arguments":["languageCode"]},"right":"zh-CHS"}}]}]}],"members":{}},"UploadDialogMoudle":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"UploadDialogComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4},{"__symbolic":"reference","module":"@farris/ui-dialog","name":"FarrisDialogModule","line":22,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerModule","line":23,"character":4},"member":"forRoot"}},{"__symbolic":"reference","name":"UploadModule"},{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"ButtonsModule","line":25,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyModule","line":26,"character":4},"member":"forRoot"}},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":27,"character":4}],"exports":[{"__symbolic":"reference","name":"UploadDialogComponent"},{"__symbolic":"reference","name":"FileUploadComponent"}],"entryComponents":[{"__symbolic":"reference","name":"UploadDialogComponent"},{"__symbolic":"reference","name":"FileUploadComponent"}],"providers":[{"__symbolic":"reference","module":"@farris/ui-modal","name":"BsModalService","line":31,"character":14},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":31,"character":30},{"__symbolic":"reference","name":"UploadDialogService"},{"__symbolic":"reference","name":"UploadService"}]}]}],"members":{}},"UploadDialogComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"app-uploaddialog","template":"\n","styles":[""]}]}],"members":{"formId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@farris/ui-modal","name":"BsModalService","line":17,"character":36}]}],"fileUpload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":19,"character":3},"arguments":[{"__symbolic":"reference","name":"FileUploadComponent"}]}]}],"ngOnInit":[{"__symbolic":"method"}],"showDialog":[{"__symbolic":"method"}]}},"UploadDialogService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@farris/ui-modal","name":"BsModalService","line":14,"character":38},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":14,"character":88},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":14,"character":132}]}],"showDialog":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"uploadFileWithLimit":[{"__symbolic":"method"}]}},"UploadService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":24,"character":28},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":24,"character":61}]}],"uploadList":[{"__symbolic":"method"}],"commit":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"removeList":[{"__symbolic":"method"}],"getFile":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"uploadSliceFile":[{"__symbolic":"method"}],"getStorageExtensionInfo":[{"__symbolic":"method"}],"getSecurityInfoList":[{"__symbolic":"method"}],"changeStorageInstance":[{"__symbolic":"method"}],"copyFile":[{"__symbolic":"method"}],"saveSecurityInfo":[{"__symbolic":"method"}],"getUploadedFileInfoList":[{"__symbolic":"method"}],"getUploadInfo":[{"__symbolic":"method"}]}},"DownloadService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"getDownloadUrl":[{"__symbolic":"method"}],"getStreamDownloadUrl":[{"__symbolic":"method"}],"getMultipleDownloadUrl":[{"__symbolic":"method"}],"getMultipleDownloadUrlWithName":[{"__symbolic":"method"}],"getHistoryDownloadUrl":[{"__symbolic":"method"}],"mergeString":[{"__symbolic":"method"}],"getToken":[{"__symbolic":"method"}],"switchStr":[{"__symbolic":"method"}]}},"FileUploadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":29,"character":1},"arguments":[{"selector":"app-file-upload","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> 上传失败 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">详情</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)\">重试</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>","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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerService","line":99,"character":34},{"__symbolic":"reference","name":"UploadService"},{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingService","line":99,"character":110},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":99,"character":145}]}],"formId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":3}}]}],"rootId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":107,"character":3}}]}],"fileType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":108,"character":3}}]}],"fileCount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":3}}]}],"oldIdList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":110,"character":3}}]}],"securityInfo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":111,"character":3}}]}],"opCell":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":113,"character":3},"arguments":["opCell"]}]}],"ngOnInit":[{"__symbolic":"method"}],"showLoading":[{"__symbolic":"method"}],"fileSelected":[{"__symbolic":"method"}],"showErrorMessage":[{"__symbolic":"method"}],"handleFileInfo":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"uploadSingleFile":[{"__symbolic":"method"}],"uploadSliceFile":[{"__symbolic":"method"}],"initMultiUpload":[{"__symbolic":"method"}],"multiUpload":[{"__symbolic":"method"}],"completeMultiUpload":[{"__symbolic":"method"}],"selectAllFile":[{"__symbolic":"method"}],"checkoutSelectFile":[{"__symbolic":"method"}],"listDeleteFile":[{"__symbolic":"method"}],"listMultipleDeleteFile":[{"__symbolic":"method"}],"getPicListDisplayName":[{"__symbolic":"method"}],"getQueueDisplayName":[{"__symbolic":"method"}],"addDocInfo":[{"__symbolic":"method"}],"listToString":[{"__symbolic":"method"}],"securityChange":[{"__symbolic":"method"}],"typeChange":[{"__symbolic":"method"}],"upload":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"getUploadFileInfoList":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"getFileSize":[{"__symbolic":"method"}],"showByGroup":[{"__symbolic":"method"}],"showByList":[{"__symbolic":"method"}],"mouseOver":[{"__symbolic":"method"}],"mouseOut":[{"__symbolic":"method"}]}},"UploadFileInfo":{"__symbolic":"class","members":{}},"UploadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FileUploadComponent"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"ButtonsModule","line":22,"character":4},{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyModule","line":23,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerModule","line":24,"character":4},"member":"forRoot"}},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingModule","line":25,"character":4},"member":"forRoot"}},{"__symbolic":"reference","module":"@farris/ui-progress","name":"ProgressModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":27,"character":4},{"__symbolic":"reference","module":"@farris/ui-combo-list","name":"ComboListModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":29,"character":4}],"exports":[{"__symbolic":"reference","name":"FileUploadComponent"}],"entryComponents":[{"__symbolic":"reference","name":"FileUploadComponent"}],"providers":[{"__symbolic":"reference","name":"UploadService"},{"__symbolic":"reference","name":"DownloadService"},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"LanguageService","line":33,"character":46},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"HttpService","line":33,"character":63},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"CacheService","line":33,"character":76},{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"SessionService","line":33,"character":90},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":34,"character":15},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"localStorage"},"member":"getItem"},"arguments":["languageCode"]},"right":"zh-CHS"}}]}]}],"members":{}},"ɵa":{"__symbolic":"reference","name":"UploadModule"},"UploadLimit":{"__symbolic":"class","members":{}},"GspFormDocOperateEntity":{"__symbolic":"class","members":{}},"GspFormRemoveListEntity":{"__symbolic":"class","members":{}},"GspFormUploadListEntity":{"__symbolic":"class","members":{}},"GspFormDocInfo":{"__symbolic":"class","members":{}},"GspDocMetaProperty":{"__symbolic":"class","members":{}},"GspFormUploadEntity":{"__symbolic":"class","members":{}},"FileInfo":{"__symbolic":"class","members":{}},"OperatingModes":{"Formal":0,"Temp":1},"FileState":{"New":0,"Update":1},"GspDocSecurityBaseInfo":{"__symbolic":"class","members":{}},"SecurityEntity":{"__symbolic":"class","members":{}},"ExStorageFileInfo":{"__symbolic":"class","members":{}},"CopyFileRequest":{"__symbolic":"class","members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"locale"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":9,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":9,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}],"transform":[{"__symbolic":"method"}]}}},"origins":{"FormdocUploadService":"./lib/formdoc-upload.service","FormdocUploadComponent":"./lib/formdoc-upload.component","FormdocUploadModule":"./lib/formdoc-upload.module","UploadDialogMoudle":"./lib/uploaddialog/uploaddialog.module","UploadDialogComponent":"./lib/uploaddialog/uploaddialog/uploaddialog.component","UploadDialogService":"./lib/uploaddialog.service","UploadService":"./lib/upload/upload.service","DownloadService":"./lib/upload/download.service","FileUploadComponent":"./lib/upload/file-upload/file-upload.component","UploadFileInfo":"./lib/upload/entity/uploadfileinfo","UploadModule":"./lib/upload/upload.module","ɵa":"./lib/upload/upload.module","UploadLimit":"./lib/upload/entity/uploadlimit","GspFormDocOperateEntity":"./lib/upload/entity/gspformdocoperateentity","GspFormRemoveListEntity":"./lib/upload/entity/gspformremovelistentity","GspFormUploadListEntity":"./lib/upload/entity/gspformuploadlistentity","GspFormDocInfo":"./lib/upload/entity/gspformdocinfo","GspDocMetaProperty":"./lib/upload/entity/gspdocmetaproperty","GspFormUploadEntity":"./lib/upload/entity/gspformuploadentity","FileInfo":"./lib/upload/entity/fileinfo","OperatingModes":"./lib/upload/entity/operatingmodes","FileState":"./lib/upload/entity/filestate","GspDocSecurityBaseInfo":"./lib/upload/entity/gspdocsecuritybaseinfo","SecurityEntity":"./lib/upload/entity/securityentity","ExStorageFileInfo":"./lib/upload/entity/extensionstoragefileinfo","CopyFileRequest":"./lib/upload/entity/copyfilerequest","ɵb":"./lib/local.pipe"},"importAs":"@gsp-svc/formdoc-upload"}
@@ -26,6 +26,7 @@ export declare const LANG_RESOURCES: {
26
26
  'size': string;
27
27
  'close': string;
28
28
  'loading': string;
29
+ 'mismatchChunkSize': string;
29
30
  };
30
31
  'en-US': {
31
32
  'uploadFile': string;
@@ -54,6 +55,7 @@ export declare const LANG_RESOURCES: {
54
55
  'size': string;
55
56
  'close': string;
56
57
  'loading': string;
58
+ 'mismatchChunkSize': string;
57
59
  };
58
60
  'en': {
59
61
  'uploadFile': string;
@@ -82,6 +84,7 @@ export declare const LANG_RESOURCES: {
82
84
  'size': string;
83
85
  'close': string;
84
86
  'loading': string;
87
+ 'mismatchChunkSize': string;
85
88
  };
86
89
  'zh-CHT': {
87
90
  'uploadFile': string;
@@ -110,5 +113,6 @@ export declare const LANG_RESOURCES: {
110
113
  'size': string;
111
114
  'close': string;
112
115
  'loading': string;
116
+ 'mismatchChunkSize': string;
113
117
  };
114
118
  };
@@ -1,6 +1,7 @@
1
1
  export declare class DownloadService {
2
2
  constructor();
3
3
  getDownloadUrl(metadataId: string, rootId: string): string;
4
+ getStreamDownloadUrl(metadataId: string, rootId: string): string;
4
5
  getMultipleDownloadUrl(metadataIdList: string, rootId: string): string;
5
6
  getMultipleDownloadUrlWithName(metadataIdList: string, rootId: string, zipName: string): string;
6
7
  getHistoryDownloadUrl(metadataId: string, rootId: string, version: string): string;
@@ -0,0 +1,9 @@
1
+ import { MultiUploadResult } from "./multiuploadresult";
2
+ export declare class CompleteMultiUploadRequest {
3
+ metadataId: string;
4
+ rootId: string;
5
+ uploadId: string;
6
+ size: number;
7
+ partList: MultiUploadResult[];
8
+ exPropertyName: string;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { GspDocMetaProperty } from "./gspdocmetaproperty";
2
+ import { OperatingModes } from "./operatingmodes";
3
+ export declare class GspFormStreamEntity {
4
+ formId: string;
5
+ metadataId: string;
6
+ rootId: string;
7
+ fileName: string;
8
+ size: number;
9
+ mode: OperatingModes;
10
+ exPropertyName: string;
11
+ extProperty: GspDocMetaProperty;
12
+ }
@@ -0,0 +1,7 @@
1
+ export declare class InitMultiUploadRequest {
2
+ path: string;
3
+ metadataId: string;
4
+ rootId: string;
5
+ fileName: string;
6
+ size: number;
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare class MultiUploadRequest {
2
+ metadataId: string;
3
+ total: number;
4
+ size: number;
5
+ index: number;
6
+ rootId: string;
7
+ uploadId: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare class MultiUploadResult {
2
+ index: number;
3
+ tag: string;
4
+ }
@@ -1,4 +1,4 @@
1
- import { GspDocSecurityBaseInfo } from "./gspdocsecuritynaseinfo";
1
+ import { GspDocSecurityBaseInfo } from "./gspdocsecuritybaseinfo";
2
2
  export declare class UploadLimit {
3
3
  fileType: string;
4
4
  fileCount: number;
@@ -12,9 +12,11 @@ import { DropListEntity } from '../entity/droplistentity';
12
12
  import { LoadingService } from '@farris/ui-loading';
13
13
  import { FileState } from '../entity/filestate';
14
14
  import { LocalLangPipe } from '../../local.pipe';
15
- import { GspDocSecurityBaseInfo } from '../entity/gspdocsecuritynaseinfo';
15
+ import { GspDocSecurityBaseInfo } from '../entity/gspdocsecuritybaseinfo';
16
16
  import { SecurityEntity } from '../entity/securityentity';
17
17
  import { HttpClient } from '@angular/common/http';
18
+ import { InitMultiUploadRequest } from '../entity/initmultiuploadrequest';
19
+ import { CompleteMultiUploadRequest } from '../entity/completemultiuploadrequest';
18
20
  export declare class FileUploadComponent implements OnInit {
19
21
  private msgService;
20
22
  private uploadService;
@@ -59,7 +61,7 @@ export declare class FileUploadComponent implements OnInit {
59
61
  };
60
62
  dropListValue: string;
61
63
  uploadedFileTotal: number;
62
- validationId: string;
64
+ allowedMultiUpload: boolean;
63
65
  haveExtensionProperty: boolean;
64
66
  haveSecurityInfo: boolean;
65
67
  uploadedFileInfoList: any[];
@@ -85,18 +87,20 @@ export declare class FileUploadComponent implements OnInit {
85
87
  showLoading(): void;
86
88
  fileSelected($event: any): void;
87
89
  showErrorMessage(file: any): void;
88
- handleFileInfo(uuid: string, selectedFile: any, fileName: string): Promise<any>;
90
+ handleFileInfo(uuid: string, selectedFile: any, fileName: string): any;
89
91
  uploadFile(uuid: string, selectedFile: any, fileName: string, state?: FileState): void;
90
- sendUploadRequest(formData: any, fileInfo: any, docInfo: any, uploadFileInfo: any): void;
92
+ uploadSingleFile(formdata: FormData): Observable<any>;
91
93
  uploadSliceFile(formdata: FormData): Observable<any>;
94
+ initMultiUpload(request: InitMultiUploadRequest): Observable<any>;
95
+ multiUpload(formdata: FormData): Observable<any>;
96
+ completeMultiUpload(request: CompleteMultiUploadRequest): Observable<any>;
92
97
  selectAllFile(): void;
93
98
  checkoutSelectFile(file: FileInfo): void;
94
99
  listDeleteFile(fileInfo: FileInfo): void;
95
100
  listMultipleDeleteFile(): void;
96
101
  getPicListDisplayName(fileName: string): string;
97
102
  getQueueDisplayName(fileName: string): string;
98
- addDocInfo(selectdFile: any, fileInfo: FileInfo, docType: DocType): Promise<any>;
99
- getImageUrl(selectdFile: any): Promise<any>;
103
+ addDocInfo(selectdFile: any, fileInfo: FileInfo, docType: DocType): void;
100
104
  listToString(strList: string[]): string;
101
105
  securityChange($event: any, file: FileInfo): void;
102
106
  exStorageFileList: ExStorageFileInfo[];
@@ -4,7 +4,7 @@ import { HttpService } from '@ecp-caf/caf-common';
4
4
  import { HttpClient, HttpErrorResponse } from '@angular/common/http';
5
5
  import { GspFormUploadEntity } from './entity/gspformuploadentity';
6
6
  import { ExStorageFileInfo } from './entity/extensionstoragefileinfo';
7
- import { GspDocSecurityBaseInfo } from './entity/gspdocsecuritynaseinfo';
7
+ import { GspDocSecurityBaseInfo } from './entity/gspdocsecuritybaseinfo';
8
8
  import { UploadFileInfo } from './entity/uploadfileinfo';
9
9
  export declare class UploadService {
10
10
  private http;
@@ -23,6 +23,5 @@ export declare class UploadService {
23
23
  copyFile(metadataId: string, rootId: string, path: string): Observable<any>;
24
24
  saveSecurityInfo(uploadFileInfoList: UploadFileInfo[], rootId: string): Observable<any>;
25
25
  getUploadedFileInfoList(formId: string, rootId: string): Observable<any>;
26
- getRootSetting(rootId: string): Observable<any>;
27
- getValidation(id: string): Observable<any>;
26
+ getUploadInfo(rootId: string): Observable<any>;
28
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gsp-svc/formdoc-upload",
3
- "version": "0.1.38",
3
+ "version": "0.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0"
package/public-api.d.ts CHANGED
@@ -19,7 +19,7 @@ export * from './lib/upload/entity/gspformuploadentity';
19
19
  export * from './lib/upload/entity/fileinfo';
20
20
  export * from './lib/upload/entity/operatingmodes';
21
21
  export * from './lib/upload/entity/filestate';
22
- export * from './lib/upload/entity/gspdocsecuritynaseinfo';
22
+ export * from './lib/upload/entity/gspdocsecuritybaseinfo';
23
23
  export * from './lib/upload/entity/securityentity';
24
24
  export * from './lib/upload/entity/extensionstoragefileinfo';
25
25
  export * from './lib/upload/entity/copyfilerequest';