@gsp-svc/formdoc-upload 0.1.28 → 0.1.31

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.
@@ -436,6 +436,155 @@
436
436
  FileState[FileState.New] = 'New';
437
437
  FileState[FileState.Update] = 'Update';
438
438
 
439
+ /**
440
+ * @fileoverview added by tsickle
441
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
442
+ */
443
+ /** @type {?} */
444
+ var LANG_RESOURCES = {
445
+ 'zh-CHS': {
446
+ 'uploadFile': '上传文件',
447
+ 'uploading': '正在上传文件……',
448
+ 'selectedCount': '已选择文件数量:',
449
+ 'limitCount': '超出系统限制数量:',
450
+ 'rechooseFile': ',重新选择上传文件。',
451
+ 'save': '保存',
452
+ 'cancel': '取消',
453
+ 'haveSameName': '已上传过同名文件: ',
454
+ 'rename': '重命名',
455
+ 'replace': '替换',
456
+ 'sizeZero': '文件大小为0',
457
+ 'uploadFailure': '上传失败',
458
+ 'uploadSucceed': '上传成功',
459
+ 'wait': '等一下,文档正在上传。',
460
+ 'saveTo': '正在将文件保存到',
461
+ 'delete': '删除',
462
+ 'selectAll': '全选',
463
+ 'selectNull': '全不选',
464
+ 'detail': '详情',
465
+ 'fileName': '文件名',
466
+ 'state': '状态',
467
+ 'operation': '操作',
468
+ 'size': '大小',
469
+ 'close': '关闭',
470
+ 'loading': '拼命加载中'
471
+ },
472
+ 'en-US': {
473
+ 'uploadFile': 'Upload File',
474
+ 'uploading': 'File Uploading……',
475
+ 'selectedCount': 'Selected files count:',
476
+ 'limitCount': 'System limit count:',
477
+ 'rechooseFile': ',Reselect upload file.',
478
+ 'save': 'Save',
479
+ 'cancel': 'Cancel',
480
+ 'haveSameName': 'A file with the same name has been uploaded: ',
481
+ 'rename': 'Rename',
482
+ 'replace': 'Replace',
483
+ 'sizeZero': 'File size is 0',
484
+ 'uploadFailure': 'Upload failed',
485
+ 'uploadSucceed': 'Upload successfully',
486
+ 'wait': 'Wait a minute, the file is uploading.',
487
+ 'saveTo': 'Saving file to',
488
+ 'delete': 'Delete',
489
+ 'selectAll': 'Select all',
490
+ 'selectNull': 'Not at all',
491
+ 'detail': 'Details',
492
+ 'fileName': 'Filename',
493
+ 'state': 'State',
494
+ 'operation': 'Operation',
495
+ 'size': 'Size',
496
+ 'close': 'Close',
497
+ 'loading': 'Loading'
498
+ },
499
+ 'en': {
500
+ 'uploadFile': 'Upload File',
501
+ 'uploading': 'File Uploading……',
502
+ 'selectedCount': 'Selected files count:',
503
+ 'limitCount': 'System limit count:',
504
+ 'rechooseFile': ',Reselect upload file.',
505
+ 'save': 'Save',
506
+ 'cancel': 'Cancel',
507
+ 'haveSameName': 'A file with the same name has been uploaded: ',
508
+ 'rename': 'Rename',
509
+ 'replace': 'Replace',
510
+ 'sizeZero': 'File size is 0',
511
+ 'uploadFailure': 'Upload failed',
512
+ 'uploadSucceed': 'Upload successfully',
513
+ 'wait': 'Wait a minute, the file is uploading.',
514
+ 'saveTo': 'Saving file to',
515
+ 'delete': 'Delete',
516
+ 'selectAll': 'Select all',
517
+ 'selectNull': 'Not at all',
518
+ 'detail': 'Details',
519
+ 'fileName': 'Filename',
520
+ 'state': 'State',
521
+ 'operation': 'Operation',
522
+ 'size': 'Size',
523
+ 'close': 'Close',
524
+ 'loading': 'Loading'
525
+ },
526
+ 'zh-CHT': {
527
+ 'uploadFile': '上傳文件',
528
+ 'uploading': '正在上傳文件……',
529
+ 'selectedCount': '已選擇文件數量:',
530
+ 'limitCount': '超出系統限制數量:',
531
+ 'rechooseFile': ',重新選擇上傳文件。',
532
+ 'save': '保存',
533
+ 'cancel': '取消',
534
+ 'haveSameName': '已上傳過同名文件: ',
535
+ 'rename': '重命名',
536
+ 'replace': '替換',
537
+ 'sizeZero': '文件大小為0',
538
+ 'uploadFailure': '上傳失敗',
539
+ 'uploadSucceed': '上傳成功',
540
+ 'wait': '等一下,文件正在上傳。',
541
+ 'saveTo': '正在將文件保存到',
542
+ 'delete': '删除',
543
+ 'selectAll': '全選',
544
+ 'selectNull': '全不選',
545
+ 'detail': '詳情',
546
+ 'fileName': '文件名',
547
+ 'state': '狀態',
548
+ 'operation': '操作',
549
+ 'size': '大小',
550
+ 'close': '關閉',
551
+ 'loading': '拼命加載中'
552
+ },
553
+ };
554
+
555
+ /**
556
+ * @fileoverview added by tsickle
557
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
558
+ */
559
+ var LocalLangPipe = /** @class */ (function () {
560
+ function LocalLangPipe(localeId) {
561
+ this.defaultLang = "zh-CHS";
562
+ this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
563
+ this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
564
+ }
565
+ /**
566
+ * @param {?} name
567
+ * @return {?}
568
+ */
569
+ LocalLangPipe.prototype.transform = /**
570
+ * @param {?} name
571
+ * @return {?}
572
+ */
573
+ function (name) {
574
+ return this.lang[name] || name;
575
+ };
576
+ LocalLangPipe.decorators = [
577
+ { type: i0.Pipe, args: [{ name: 'locale' },] }
578
+ ];
579
+ /** @nocollapse */
580
+ LocalLangPipe.ctorParameters = function () {
581
+ return [
582
+ { type: String, decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
583
+ ];
584
+ };
585
+ return LocalLangPipe;
586
+ }());
587
+
439
588
  /**
440
589
  * @fileoverview added by tsickle
441
590
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -478,10 +627,16 @@
478
627
  this.oldUploadedFileList = [];
479
628
  //uploadedNameList = [];
480
629
  this.sameNameAllowed = true;
630
+ this.checkboxPos = { top: '0px' };
481
631
  this.fileType = "*";
482
632
  this.fileCount = 0;
483
633
  this.oldIdList = [];
634
+ this.totalLoad = null;
484
635
  this.exStorageFileList = [];
636
+ if (this.injector) {
637
+ this.localeid = localStorage.getItem("languageCode") || this.injector.get(i0.LOCALE_ID);
638
+ this.localepipe = new LocalLangPipe(this.localeid);
639
+ }
485
640
  }
486
641
  /**
487
642
  * @return {?}
@@ -491,6 +646,8 @@
491
646
  */
492
647
  function () {
493
648
  var _this = this;
649
+ if (navigator.userAgent.indexOf('Firefox') >= 0)
650
+ this.checkboxPos.top = '14px';
494
651
  //if (this.storageService != null) {
495
652
  this.uploadService.getStorageExtensionInfo().subscribe(( /**
496
653
  * @param {?} res
@@ -536,6 +693,18 @@
536
693
  this.uploadService.cancel(this.oldIdList, this.rootId).subscribe();
537
694
  }
538
695
  };
696
+ /**
697
+ * @return {?}
698
+ */
699
+ FileUploadComponent.prototype.showLoading = /**
700
+ * @return {?}
701
+ */
702
+ function () {
703
+ if (this.totalLoad == null)
704
+ this.totalLoad = this.loadService.show({
705
+ message: this.localepipe.transform('uploading')
706
+ });
707
+ };
539
708
  /**
540
709
  * @param {?} $event
541
710
  * @return {?}
@@ -545,11 +714,12 @@
545
714
  * @return {?}
546
715
  */
547
716
  function ($event) {
717
+ // const loading = this.loadService.show({
718
+ // message: this.localepipe.transform('uploading')
719
+ // });
548
720
  var _this = this;
549
- /** @type {?} */
550
- var loading = this.loadService.show({
551
- message: this.localepipe.transform('uploading')
552
- });
721
+ this.totalLoad.close();
722
+ this.totalLoad = null;
553
723
  this.hasSelectedFile = true;
554
724
  this.selectedFiles = document.querySelector('#file');
555
725
  if (this.fileCount > 0) {
@@ -692,7 +862,7 @@
692
862
  this.files = this.files.slice();
693
863
  this.fileAllSelected = false;
694
864
  $event.target.value = '';
695
- loading.close();
865
+ // loading.close();
696
866
  };
697
867
  /**
698
868
  * @param {?} file
@@ -1325,7 +1495,7 @@
1325
1495
  FileUploadComponent.decorators = [
1326
1496
  { type: i0.Component, args: [{
1327
1497
  selector: 'app-file-upload',
1328
- 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>",
1498
+ template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-error\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\" style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\" [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\" [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' | locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\" (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
1329
1499
  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}"]
1330
1500
  }] }
1331
1501
  ];
@@ -1515,155 +1685,6 @@
1515
1685
  return DownloadService;
1516
1686
  }());
1517
1687
 
1518
- /**
1519
- * @fileoverview added by tsickle
1520
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1521
- */
1522
- /** @type {?} */
1523
- var LANG_RESOURCES = {
1524
- 'zh-CHS': {
1525
- 'uploadFile': '上传文件',
1526
- 'uploading': '正在上传文件……',
1527
- 'selectedCount': '已选择文件数量:',
1528
- 'limitCount': '超出系统限制数量:',
1529
- 'rechooseFile': ',重新选择上传文件。',
1530
- 'save': '保存',
1531
- 'cancel': '取消',
1532
- 'haveSameName': '已上传过同名文件: ',
1533
- 'rename': '重命名',
1534
- 'replace': '替换',
1535
- 'sizeZero': '文件大小为0',
1536
- 'uploadFailure': '上传失败',
1537
- 'uploadSucceed': '上传成功',
1538
- 'wait': '等一下,文档正在上传。',
1539
- 'saveTo': '正在将文件保存到',
1540
- 'delete': '删除',
1541
- 'selectAll': '全选',
1542
- 'selectNull': '全不选',
1543
- 'detail': '详情',
1544
- 'fileName': '文件名',
1545
- 'state': '状态',
1546
- 'operation': '操作',
1547
- 'size': '大小',
1548
- 'close': '关闭',
1549
- 'loading': '拼命加载中'
1550
- },
1551
- 'en-US': {
1552
- 'uploadFile': 'Upload File',
1553
- 'uploading': 'File Uploading……',
1554
- 'selectedCount': 'Selected files count:',
1555
- 'limitCount': 'System limit count:',
1556
- 'rechooseFile': ',Reselect upload file.',
1557
- 'save': 'Save',
1558
- 'cancel': 'Cancel',
1559
- 'haveSameName': 'A file with the same name has been uploaded: ',
1560
- 'rename': 'Rename',
1561
- 'replace': 'Replace',
1562
- 'sizeZero': 'File size is 0',
1563
- 'uploadFailure': 'Upload failed',
1564
- 'uploadSucceed': 'Upload successfully',
1565
- 'wait': 'Wait a minute, the file is uploading.',
1566
- 'saveTo': 'Saving file to',
1567
- 'delete': 'Delete',
1568
- 'selectAll': 'Select all',
1569
- 'selectNull': 'Not at all',
1570
- 'detail': 'Details',
1571
- 'fileName': 'Filename',
1572
- 'state': 'State',
1573
- 'operation': 'Operation',
1574
- 'size': 'Size',
1575
- 'close': 'Close',
1576
- 'loading': 'Loading'
1577
- },
1578
- 'en': {
1579
- 'uploadFile': 'Upload File',
1580
- 'uploading': 'File Uploading……',
1581
- 'selectedCount': 'Selected files count:',
1582
- 'limitCount': 'System limit count:',
1583
- 'rechooseFile': ',Reselect upload file.',
1584
- 'save': 'Save',
1585
- 'cancel': 'Cancel',
1586
- 'haveSameName': 'A file with the same name has been uploaded: ',
1587
- 'rename': 'Rename',
1588
- 'replace': 'Replace',
1589
- 'sizeZero': 'File size is 0',
1590
- 'uploadFailure': 'Upload failed',
1591
- 'uploadSucceed': 'Upload successfully',
1592
- 'wait': 'Wait a minute, the file is uploading.',
1593
- 'saveTo': 'Saving file to',
1594
- 'delete': 'Delete',
1595
- 'selectAll': 'Select all',
1596
- 'selectNull': 'Not at all',
1597
- 'detail': 'Details',
1598
- 'fileName': 'Filename',
1599
- 'state': 'State',
1600
- 'operation': 'Operation',
1601
- 'size': 'Size',
1602
- 'close': 'Close',
1603
- 'loading': 'Loading'
1604
- },
1605
- 'zh-CHT': {
1606
- 'uploadFile': '上傳文件',
1607
- 'uploading': '正在上傳文件……',
1608
- 'selectedCount': '已選擇文件數量:',
1609
- 'limitCount': '超出系統限制數量:',
1610
- 'rechooseFile': ',重新選擇上傳文件。',
1611
- 'save': '保存',
1612
- 'cancel': '取消',
1613
- 'haveSameName': '已上傳過同名文件: ',
1614
- 'rename': '重命名',
1615
- 'replace': '替換',
1616
- 'sizeZero': '文件大小為0',
1617
- 'uploadFailure': '上傳失敗',
1618
- 'uploadSucceed': '上傳成功',
1619
- 'wait': '等一下,文件正在上傳。',
1620
- 'saveTo': '正在將文件保存到',
1621
- 'delete': '删除',
1622
- 'selectAll': '全選',
1623
- 'selectNull': '全不選',
1624
- 'detail': '詳情',
1625
- 'fileName': '文件名',
1626
- 'state': '狀態',
1627
- 'operation': '操作',
1628
- 'size': '大小',
1629
- 'close': '關閉',
1630
- 'loading': '拼命加載中'
1631
- },
1632
- };
1633
-
1634
- /**
1635
- * @fileoverview added by tsickle
1636
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1637
- */
1638
- var LocalLangPipe = /** @class */ (function () {
1639
- function LocalLangPipe(localeId) {
1640
- this.defaultLang = "zh-CHS";
1641
- this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
1642
- this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
1643
- }
1644
- /**
1645
- * @param {?} name
1646
- * @return {?}
1647
- */
1648
- LocalLangPipe.prototype.transform = /**
1649
- * @param {?} name
1650
- * @return {?}
1651
- */
1652
- function (name) {
1653
- return this.lang[name] || name;
1654
- };
1655
- LocalLangPipe.decorators = [
1656
- { type: i0.Pipe, args: [{ name: 'locale' },] }
1657
- ];
1658
- /** @nocollapse */
1659
- LocalLangPipe.ctorParameters = function () {
1660
- return [
1661
- { type: String, decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
1662
- ];
1663
- };
1664
- return LocalLangPipe;
1665
- }());
1666
-
1667
1688
  /**
1668
1689
  * @fileoverview added by tsickle
1669
1690
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc