@gsp-svc/formdoc-upload 0.1.23 → 0.1.28

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 (40) hide show
  1. package/bundles/gsp-svc-formdoc-upload.umd.js +221 -25
  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 +3 -2
  6. package/esm2015/lib/formdoc-upload.module.js +8 -3
  7. package/esm2015/lib/i18n/language.resource.js +116 -0
  8. package/esm2015/lib/local.pipe.js +48 -0
  9. package/esm2015/lib/upload/download.service.js +2 -2
  10. package/esm2015/lib/upload/entity/filestate.js +13 -0
  11. package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
  12. package/esm2015/lib/upload/file-upload/file-upload.component.js +26 -16
  13. package/esm2015/lib/upload/upload.module.js +9 -4
  14. package/esm2015/lib/uploaddialog.service.js +18 -8
  15. package/esm2015/public-api.js +4 -1
  16. package/esm5/gsp-svc-formdoc-upload.js +3 -2
  17. package/esm5/lib/formdoc-upload.module.js +8 -3
  18. package/esm5/lib/i18n/language.resource.js +116 -0
  19. package/esm5/lib/local.pipe.js +51 -0
  20. package/esm5/lib/upload/download.service.js +2 -2
  21. package/esm5/lib/upload/entity/filestate.js +13 -0
  22. package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
  23. package/esm5/lib/upload/file-upload/file-upload.component.js +28 -16
  24. package/esm5/lib/upload/upload.module.js +9 -4
  25. package/esm5/lib/uploaddialog.service.js +18 -8
  26. package/esm5/public-api.js +4 -1
  27. package/fesm2015/gsp-svc-formdoc-upload.js +209 -28
  28. package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
  29. package/fesm5/gsp-svc-formdoc-upload.js +216 -28
  30. package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
  31. package/gsp-svc-formdoc-upload.d.ts +1 -0
  32. package/gsp-svc-formdoc-upload.metadata.json +1 -1
  33. package/lib/i18n/language.resource.d.ts +110 -0
  34. package/lib/local.pipe.d.ts +8 -0
  35. package/lib/upload/entity/filestate.d.ts +4 -0
  36. package/lib/upload/entity/uploadfileinfo.d.ts +2 -0
  37. package/lib/upload/file-upload/file-upload.component.d.ts +4 -1
  38. package/lib/uploaddialog.service.d.ts +3 -0
  39. package/package.json +1 -1
  40. package/public-api.d.ts +3 -0
@@ -10,8 +10,8 @@ import { LoadingService, LoadingModule } from '@farris/ui-loading';
10
10
  import { ProgressModule } from '@farris/ui-progress';
11
11
  import { FormsModule } from '@angular/forms';
12
12
  import { ComboListModule } from '@farris/ui-combo-list';
13
- import { HttpService } from '@ecp-caf/caf-common';
14
- import { Injectable, Component, NgModule, Injector, ComponentFactoryResolver, ViewChild, Input, defineInjectable } from '@angular/core';
13
+ import { LanguageService, HttpService } from '@ecp-caf/caf-common';
14
+ import { Injectable, Pipe, Inject, LOCALE_ID, NgModule, Component, Injector, ComponentFactoryResolver, 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';
@@ -62,13 +62,16 @@ FormdocUploadComponent.ctorParameters = () => [];
62
62
  * @fileoverview added by tsickle
63
63
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
64
64
  */
65
+ const ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
65
66
  class FormdocUploadModule {
66
67
  }
67
68
  FormdocUploadModule.decorators = [
68
69
  { type: NgModule, args: [{
69
70
  declarations: [FormdocUploadComponent],
70
71
  imports: [],
71
- exports: [FormdocUploadComponent]
72
+ exports: [FormdocUploadComponent],
73
+ providers: [LanguageService,
74
+ { provide: LOCALE_ID, useValue: ɵ0 },]
72
75
  },] }
73
76
  ];
74
77
 
@@ -375,6 +378,18 @@ class GspFormUploadEntity {
375
378
  class ExStorageFileInfo {
376
379
  }
377
380
 
381
+ /**
382
+ * @fileoverview added by tsickle
383
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
384
+ */
385
+ /** @enum {number} */
386
+ const FileState = {
387
+ New: 0,
388
+ Update: 1,
389
+ };
390
+ FileState[FileState.New] = 'New';
391
+ FileState[FileState.Update] = 'Update';
392
+
378
393
  /**
379
394
  * @fileoverview added by tsickle
380
395
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -486,13 +501,17 @@ class FileUploadComponent {
486
501
  * @return {?}
487
502
  */
488
503
  fileSelected($event) {
504
+ /** @type {?} */
505
+ const loading = this.loadService.show({
506
+ message: this.localepipe.transform('uploading')
507
+ });
489
508
  this.hasSelectedFile = true;
490
509
  this.selectedFiles = document.querySelector('#file');
491
510
  if (this.fileCount > 0) {
492
511
  if (this.selectedFiles.files.length + this.files.length > this.fileCount) {
493
512
  /** @type {?} */
494
513
  let selectedNum = ((/** @type {?} */ (this.selectedFiles.files.length))) + this.files.length;
495
- this.msgService.warning('已选择' + selectedNum + '个文件,超过系统设置的数量限制' + this.fileCount + '个,请重新选择上传文件。');
514
+ this.msgService.warning(this.localepipe.transform('selectedCount') + selectedNum + this.localepipe.transform('limitCount') + this.fileCount + this.localepipe.transform('rechooseFile'));
496
515
  return;
497
516
  }
498
517
  }
@@ -515,11 +534,11 @@ class FileUploadComponent {
515
534
  // this.uploadFile(uuid, selectedFile);
516
535
  // })
517
536
  /** @type {?} */
518
- const msg = this.msgService.show('warning', '已上传过同名文件: ' + selectedFile.name, {
537
+ const msg = this.msgService.show('warning', this.localepipe.transform('haveSameName') + selectedFile.name, {
519
538
  initialState: {
520
539
  buttons: [
521
540
  {
522
- text: '重命名',
541
+ text: this.localepipe.transform('rename'),
523
542
  cls: 'btn btn-secondary',
524
543
  handle: (/**
525
544
  * @return {?}
@@ -550,7 +569,7 @@ class FileUploadComponent {
550
569
  })
551
570
  },
552
571
  {
553
- text: '替换',
572
+ text: this.localepipe.transform('replace'),
554
573
  cls: 'btn btn-secondary',
555
574
  handle: (/**
556
575
  * @return {?}
@@ -561,7 +580,7 @@ class FileUploadComponent {
561
580
  * @return {?}
562
581
  */
563
582
  x => x.fileName == selectedFile.name)).metadataId;
564
- this.uploadFile(uuid, selectedFile, selectedFile.name);
583
+ this.uploadFile(uuid, selectedFile, selectedFile.name, FileState.Update);
565
584
  this.uploadedFileTotal--;
566
585
  if (this.oldUploadedFileList.find((/**
567
586
  * @param {?} x
@@ -579,7 +598,7 @@ class FileUploadComponent {
579
598
  })
580
599
  },
581
600
  {
582
- text: '取消',
601
+ text: this.localepipe.transform('cancel'),
583
602
  cls: 'btn btn-secondary',
584
603
  handle: (/**
585
604
  * @return {?}
@@ -614,14 +633,14 @@ class FileUploadComponent {
614
633
  if (this.errFileList.length > 0) {
615
634
  /** @type {?} */
616
635
  let name = this.listToString(this.errFileList);
617
- this.msgService.warning('已上传同名文件: ' + name + '请重新选择上传文件。');
636
+ this.msgService.warning(this.localepipe.transform('haveSameName') + name + this.localepipe.transform('rechooseFile'));
618
637
  this.errFileList = [];
619
638
  }
620
639
  if (this.nullFileList.length > 0) {
621
640
  /** @type {?} */
622
641
  let name = this.listToString(this.nullFileList);
623
642
  name = name.substring(0, name.length - 1);
624
- this.msgService.warning('文件: ' + name + ' 大小为0,请重新选择上传文件。');
643
+ this.msgService.warning(name + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
625
644
  this.nullFileList = [];
626
645
  }
627
646
  // if (this.errTypeList.length > 0) {
@@ -632,21 +651,23 @@ class FileUploadComponent {
632
651
  this.files = this.files.slice();
633
652
  this.fileAllSelected = false;
634
653
  $event.target.value = '';
654
+ loading.close();
635
655
  }
636
656
  /**
637
657
  * @param {?} file
638
658
  * @return {?}
639
659
  */
640
660
  showErrorMessage(file) {
641
- this.msgService.error('上传附件失败。' + file.errorMessage);
661
+ this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
642
662
  }
643
663
  /**
644
664
  * @param {?} uuid
645
665
  * @param {?} selectedFile
646
666
  * @param {?} fileName
667
+ * @param {?=} state
647
668
  * @return {?}
648
669
  */
649
- uploadFile(uuid, selectedFile, fileName) {
670
+ uploadFile(uuid, selectedFile, fileName, state = FileState.New) {
650
671
  /** @type {?} */
651
672
  let fileInfo;
652
673
  // let uuid = UUID.UUID();
@@ -684,6 +705,7 @@ class FileUploadComponent {
684
705
  uploadFileInfo.metadataId = uuid;
685
706
  uploadFileInfo.fileName = fileInfo.name;
686
707
  uploadFileInfo.fileSize = fileInfo.size;
708
+ uploadFileInfo.state = state;
687
709
  while (chunkIndex < chunkTotal) {
688
710
  /** @type {?} */
689
711
  let uploadInfo = new GspFormUploadEntity;
@@ -1072,7 +1094,7 @@ class FileUploadComponent {
1072
1094
  // this.notifyService.success(<NotifyOptions>{
1073
1095
  // msg: '保存成功!', timeout: 3000
1074
1096
  // });
1075
- this.msgService.warning('等一下,文档正在上传。');
1097
+ this.msgService.warning(this.localepipe.transform('wait'));
1076
1098
  return of$1(false);
1077
1099
  }
1078
1100
  if (this.storageExtension == null)
@@ -1083,15 +1105,15 @@ class FileUploadComponent {
1083
1105
  else {
1084
1106
  /** @type {?} */
1085
1107
  const loading = this.loadService.show({
1086
- message: '正在将文件保存到' + this.storageExtension.extensionName
1108
+ message: this.localepipe.transform('saveTo') + this.storageExtension.extensionName
1087
1109
  });
1088
1110
  return this.uploadService.changeStorageInstance(this.exStorageFileList, this.rootId).pipe(map((/**
1089
1111
  * @param {?} res
1090
1112
  * @return {?}
1091
1113
  */
1092
1114
  res => {
1093
- if (res != null)
1094
- this.msgService.error('保存到' + this.storageExtension.extensionName + "失败,上传文件自动保存到" + this.storageExtension.defaultPropertyName + "存储。" + res.error.Message);
1115
+ // if (res != null)
1116
+ // this.msgService.error('保存到' + this.storageExtension.extensionName + "失败,上传文件自动保存到" + this.storageExtension.defaultPropertyName + "存储。" + res.error.Message);
1095
1117
  loading.close();
1096
1118
  return this.uploadFileInfoList;
1097
1119
  })));
@@ -1193,7 +1215,7 @@ class FileUploadComponent {
1193
1215
  FileUploadComponent.decorators = [
1194
1216
  { type: Component, args: [{
1195
1217
  selector: 'app-file-upload',
1196
- 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>\u4E0A\u4F20\u6587\u4EF6 </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()\">\u5168\u9009</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">\u5168\u4E0D\u9009</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">\u5220\u9664</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">\u5220\u9664</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\"> \u4E0A\u4F20\u5931\u8D25 </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)\">\u8BE6\u60C5</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\">\u6587\u4EF6\u540D</th>\n <th style=\"width: 100px; vertical-align: middle\">\u5927\u5C0F</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">\u72B6\u6001</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\">\u64CD\u4F5C</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> \u4E0A\u4F20\u5931\u8D25 </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</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> \u4E0A\u4F20\u6210\u529F</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)\">\u5220\u9664</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>",
1218
+ 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>",
1197
1219
  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}"]
1198
1220
  }] }
1199
1221
  ];
@@ -1250,7 +1272,7 @@ class DownloadService {
1250
1272
  zipName = 'unifile.zip';
1251
1273
  if (!zipName.endsWith(".zip"))
1252
1274
  zipName += '.zip';
1253
- return "/api/runtime/dfs/v1.0/doc/compress/download?metadataidlist=" + metadataIdList + "&rootid=" + rootId + "&token=" + this.getToken(this.mergeString(list[0], rootId)) + "&zipName=" + zipName;
1275
+ return "/api/runtime/dfs/v1.0/doc/compress/download?metadataidlist=" + metadataIdList + "&rootid=" + rootId + "&token=" + this.getToken(this.mergeString(list[0], rootId)) + "&zipName=" + encodeURIComponent(zipName);
1254
1276
  }
1255
1277
  /**
1256
1278
  * @param {?} metadataId
@@ -1340,11 +1362,157 @@ DownloadService.ctorParameters = () => [];
1340
1362
  * @fileoverview added by tsickle
1341
1363
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1342
1364
  */
1365
+ /** @type {?} */
1366
+ const LANG_RESOURCES = {
1367
+ 'zh-CHS': {
1368
+ 'uploadFile': '上传文件',
1369
+ 'uploading': '正在上传文件……',
1370
+ 'selectedCount': '已选择文件数量:',
1371
+ 'limitCount': '超出系统限制数量:',
1372
+ 'rechooseFile': ',重新选择上传文件。',
1373
+ 'save': '保存',
1374
+ 'cancel': '取消',
1375
+ 'haveSameName': '已上传过同名文件: ',
1376
+ 'rename': '重命名',
1377
+ 'replace': '替换',
1378
+ 'sizeZero': '文件大小为0',
1379
+ 'uploadFailure': '上传失败',
1380
+ 'uploadSucceed': '上传成功',
1381
+ 'wait': '等一下,文档正在上传。',
1382
+ 'saveTo': '正在将文件保存到',
1383
+ 'delete': '删除',
1384
+ 'selectAll': '全选',
1385
+ 'selectNull': '全不选',
1386
+ 'detail': '详情',
1387
+ 'fileName': '文件名',
1388
+ 'state': '状态',
1389
+ 'operation': '操作',
1390
+ 'size': '大小',
1391
+ 'close': '关闭',
1392
+ 'loading': '拼命加载中'
1393
+ },
1394
+ 'en-US': {
1395
+ 'uploadFile': 'Upload File',
1396
+ 'uploading': 'File Uploading……',
1397
+ 'selectedCount': 'Selected files count:',
1398
+ 'limitCount': 'System limit count:',
1399
+ 'rechooseFile': ',Reselect upload file.',
1400
+ 'save': 'Save',
1401
+ 'cancel': 'Cancel',
1402
+ 'haveSameName': 'A file with the same name has been uploaded: ',
1403
+ 'rename': 'Rename',
1404
+ 'replace': 'Replace',
1405
+ 'sizeZero': 'File size is 0',
1406
+ 'uploadFailure': 'Upload failed',
1407
+ 'uploadSucceed': 'Upload successfully',
1408
+ 'wait': 'Wait a minute, the file is uploading.',
1409
+ 'saveTo': 'Saving file to',
1410
+ 'delete': 'Delete',
1411
+ 'selectAll': 'Select all',
1412
+ 'selectNull': 'Not at all',
1413
+ 'detail': 'Details',
1414
+ 'fileName': 'Filename',
1415
+ 'state': 'State',
1416
+ 'operation': 'Operation',
1417
+ 'size': 'Size',
1418
+ 'close': 'Close',
1419
+ 'loading': 'Loading'
1420
+ },
1421
+ 'en': {
1422
+ 'uploadFile': 'Upload File',
1423
+ 'uploading': 'File Uploading……',
1424
+ 'selectedCount': 'Selected files count:',
1425
+ 'limitCount': 'System limit count:',
1426
+ 'rechooseFile': ',Reselect upload file.',
1427
+ 'save': 'Save',
1428
+ 'cancel': 'Cancel',
1429
+ 'haveSameName': 'A file with the same name has been uploaded: ',
1430
+ 'rename': 'Rename',
1431
+ 'replace': 'Replace',
1432
+ 'sizeZero': 'File size is 0',
1433
+ 'uploadFailure': 'Upload failed',
1434
+ 'uploadSucceed': 'Upload successfully',
1435
+ 'wait': 'Wait a minute, the file is uploading.',
1436
+ 'saveTo': 'Saving file to',
1437
+ 'delete': 'Delete',
1438
+ 'selectAll': 'Select all',
1439
+ 'selectNull': 'Not at all',
1440
+ 'detail': 'Details',
1441
+ 'fileName': 'Filename',
1442
+ 'state': 'State',
1443
+ 'operation': 'Operation',
1444
+ 'size': 'Size',
1445
+ 'close': 'Close',
1446
+ 'loading': 'Loading'
1447
+ },
1448
+ 'zh-CHT': {
1449
+ 'uploadFile': '上傳文件',
1450
+ 'uploading': '正在上傳文件……',
1451
+ 'selectedCount': '已選擇文件數量:',
1452
+ 'limitCount': '超出系統限制數量:',
1453
+ 'rechooseFile': ',重新選擇上傳文件。',
1454
+ 'save': '保存',
1455
+ 'cancel': '取消',
1456
+ 'haveSameName': '已上傳過同名文件: ',
1457
+ 'rename': '重命名',
1458
+ 'replace': '替換',
1459
+ 'sizeZero': '文件大小為0',
1460
+ 'uploadFailure': '上傳失敗',
1461
+ 'uploadSucceed': '上傳成功',
1462
+ 'wait': '等一下,文件正在上傳。',
1463
+ 'saveTo': '正在將文件保存到',
1464
+ 'delete': '删除',
1465
+ 'selectAll': '全選',
1466
+ 'selectNull': '全不選',
1467
+ 'detail': '詳情',
1468
+ 'fileName': '文件名',
1469
+ 'state': '狀態',
1470
+ 'operation': '操作',
1471
+ 'size': '大小',
1472
+ 'close': '關閉',
1473
+ 'loading': '拼命加載中'
1474
+ },
1475
+ };
1476
+
1477
+ /**
1478
+ * @fileoverview added by tsickle
1479
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1480
+ */
1481
+ class LocalLangPipe {
1482
+ /**
1483
+ * @param {?} localeId
1484
+ */
1485
+ constructor(localeId) {
1486
+ this.defaultLang = "zh-CHS";
1487
+ this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
1488
+ this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
1489
+ }
1490
+ /**
1491
+ * @param {?} name
1492
+ * @return {?}
1493
+ */
1494
+ transform(name) {
1495
+ return this.lang[name] || name;
1496
+ }
1497
+ }
1498
+ LocalLangPipe.decorators = [
1499
+ { type: Pipe, args: [{ name: 'locale' },] }
1500
+ ];
1501
+ /** @nocollapse */
1502
+ LocalLangPipe.ctorParameters = () => [
1503
+ { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
1504
+ ];
1505
+
1506
+ /**
1507
+ * @fileoverview added by tsickle
1508
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1509
+ */
1510
+ const ɵ0$1 = localStorage.getItem('languageCode') || 'zh-CHS';
1343
1511
  class UploadModule {
1344
1512
  }
1345
1513
  UploadModule.decorators = [
1346
1514
  { type: NgModule, args: [{
1347
- declarations: [FileUploadComponent],
1515
+ declarations: [FileUploadComponent, LocalLangPipe],
1348
1516
  imports: [
1349
1517
  CommonModule,
1350
1518
  ButtonsModule,
@@ -1357,7 +1525,8 @@ UploadModule.decorators = [
1357
1525
  ],
1358
1526
  exports: [FileUploadComponent],
1359
1527
  entryComponents: [FileUploadComponent],
1360
- providers: [UploadService, DownloadService]
1528
+ providers: [UploadService, DownloadService, LanguageService,
1529
+ { provide: LOCALE_ID, useValue: ɵ0$1 },]
1361
1530
  },] }
1362
1531
  ];
1363
1532
  /** @type {?} */
@@ -1443,6 +1612,11 @@ class UploadDialogService {
1443
1612
  this.componentFactoryResolver = componentFactoryResolver;
1444
1613
  this.injector = injector;
1445
1614
  this.fileInfoList = [];
1615
+ if (this.injector) {
1616
+ this.modalService = this.injector.get(BsModalService);
1617
+ this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
1618
+ this.localpipe = new LocalLangPipe(this.localeid);
1619
+ }
1446
1620
  }
1447
1621
  /**
1448
1622
  * @param {?} formId
@@ -1464,11 +1638,11 @@ class UploadDialogService {
1464
1638
  viewerRef.instance.rootId = rootId;
1465
1639
  viewerRef.instance.formId = formId;
1466
1640
  this.dlg = this.modalService.show(viewerRef, {
1467
- title: '上传文件',
1641
+ title: this.localpipe.transform('uploadFile'),
1468
1642
  width: 950, height: 570,
1469
1643
  buttons: [
1470
1644
  {
1471
- text: '保存', cls: 'k-button k-button-icontext k-primary', handle: (/**
1645
+ text: this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
1472
1646
  * @return {?}
1473
1647
  */
1474
1648
  () => {
@@ -1486,7 +1660,7 @@ class UploadDialogService {
1486
1660
  })
1487
1661
  },
1488
1662
  {
1489
- text: '关闭', cls: 'k-button k-button-icontext', handle: (/**
1663
+ text: this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
1490
1664
  * @return {?}
1491
1665
  */
1492
1666
  () => {
@@ -1544,11 +1718,11 @@ class UploadDialogService {
1544
1718
  uploadRef.instance.formId = formId;
1545
1719
  uploadRef.instance.oldIdList = oldIdList;
1546
1720
  this.dlg = this.modalService.show(uploadRef, {
1547
- title: '上传文件',
1721
+ title: this.localpipe.transform('uploadFile'),
1548
1722
  width: 950, height: 570,
1549
1723
  buttons: [
1550
1724
  {
1551
- text: '保存', cls: 'k-button k-button-icontext k-primary', handle: (/**
1725
+ text: this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
1552
1726
  * @return {?}
1553
1727
  */
1554
1728
  () => {
@@ -1566,7 +1740,7 @@ class UploadDialogService {
1566
1740
  })
1567
1741
  },
1568
1742
  {
1569
- text: '关闭', cls: 'k-button k-button-icontext', handle: (/**
1743
+ text: this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
1570
1744
  * @return {?}
1571
1745
  */
1572
1746
  () => {
@@ -1647,6 +1821,13 @@ class GspFormUploadListEntity {
1647
1821
  class GspDocMetaProperty {
1648
1822
  }
1649
1823
 
1824
+ /**
1825
+ * @fileoverview added by tsickle
1826
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1827
+ */
1828
+ class FileInfo {
1829
+ }
1830
+
1650
1831
  /**
1651
1832
  * @fileoverview added by tsickle
1652
1833
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -1657,6 +1838,6 @@ class GspDocMetaProperty {
1657
1838
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1658
1839
  */
1659
1840
 
1660
- export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity };
1841
+ 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 };
1661
1842
 
1662
1843
  //# sourceMappingURL=gsp-svc-formdoc-upload.js.map