@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.
@@ -11,7 +11,7 @@ import { ProgressModule } from '@farris/ui-progress';
11
11
  import { FormsModule } from '@angular/forms';
12
12
  import { ComboListModule } from '@farris/ui-combo-list';
13
13
  import { LanguageService, HttpService } from '@ecp-caf/caf-common';
14
- import { Injectable, Pipe, Inject, LOCALE_ID, NgModule, Injector, ComponentFactoryResolver, Component, ViewChild, Input, defineInjectable } from '@angular/core';
14
+ import { Injectable, Pipe, Inject, LOCALE_ID, NgModule, Component, ViewChild, Input, Injector, ComponentFactoryResolver, 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';
@@ -461,6 +461,153 @@ var FileState = {
461
461
  FileState[FileState.New] = 'New';
462
462
  FileState[FileState.Update] = 'Update';
463
463
 
464
+ /**
465
+ * @fileoverview added by tsickle
466
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
467
+ */
468
+ /** @type {?} */
469
+ var LANG_RESOURCES = {
470
+ 'zh-CHS': {
471
+ 'uploadFile': '上传文件',
472
+ 'uploading': '正在上传文件……',
473
+ 'selectedCount': '已选择文件数量:',
474
+ 'limitCount': '超出系统限制数量:',
475
+ 'rechooseFile': ',重新选择上传文件。',
476
+ 'save': '保存',
477
+ 'cancel': '取消',
478
+ 'haveSameName': '已上传过同名文件: ',
479
+ 'rename': '重命名',
480
+ 'replace': '替换',
481
+ 'sizeZero': '文件大小为0',
482
+ 'uploadFailure': '上传失败',
483
+ 'uploadSucceed': '上传成功',
484
+ 'wait': '等一下,文档正在上传。',
485
+ 'saveTo': '正在将文件保存到',
486
+ 'delete': '删除',
487
+ 'selectAll': '全选',
488
+ 'selectNull': '全不选',
489
+ 'detail': '详情',
490
+ 'fileName': '文件名',
491
+ 'state': '状态',
492
+ 'operation': '操作',
493
+ 'size': '大小',
494
+ 'close': '关闭',
495
+ 'loading': '拼命加载中'
496
+ },
497
+ 'en-US': {
498
+ 'uploadFile': 'Upload File',
499
+ 'uploading': 'File Uploading……',
500
+ 'selectedCount': 'Selected files count:',
501
+ 'limitCount': 'System limit count:',
502
+ 'rechooseFile': ',Reselect upload file.',
503
+ 'save': 'Save',
504
+ 'cancel': 'Cancel',
505
+ 'haveSameName': 'A file with the same name has been uploaded: ',
506
+ 'rename': 'Rename',
507
+ 'replace': 'Replace',
508
+ 'sizeZero': 'File size is 0',
509
+ 'uploadFailure': 'Upload failed',
510
+ 'uploadSucceed': 'Upload successfully',
511
+ 'wait': 'Wait a minute, the file is uploading.',
512
+ 'saveTo': 'Saving file to',
513
+ 'delete': 'Delete',
514
+ 'selectAll': 'Select all',
515
+ 'selectNull': 'Not at all',
516
+ 'detail': 'Details',
517
+ 'fileName': 'Filename',
518
+ 'state': 'State',
519
+ 'operation': 'Operation',
520
+ 'size': 'Size',
521
+ 'close': 'Close',
522
+ 'loading': 'Loading'
523
+ },
524
+ 'en': {
525
+ 'uploadFile': 'Upload File',
526
+ 'uploading': 'File Uploading……',
527
+ 'selectedCount': 'Selected files count:',
528
+ 'limitCount': 'System limit count:',
529
+ 'rechooseFile': ',Reselect upload file.',
530
+ 'save': 'Save',
531
+ 'cancel': 'Cancel',
532
+ 'haveSameName': 'A file with the same name has been uploaded: ',
533
+ 'rename': 'Rename',
534
+ 'replace': 'Replace',
535
+ 'sizeZero': 'File size is 0',
536
+ 'uploadFailure': 'Upload failed',
537
+ 'uploadSucceed': 'Upload successfully',
538
+ 'wait': 'Wait a minute, the file is uploading.',
539
+ 'saveTo': 'Saving file to',
540
+ 'delete': 'Delete',
541
+ 'selectAll': 'Select all',
542
+ 'selectNull': 'Not at all',
543
+ 'detail': 'Details',
544
+ 'fileName': 'Filename',
545
+ 'state': 'State',
546
+ 'operation': 'Operation',
547
+ 'size': 'Size',
548
+ 'close': 'Close',
549
+ 'loading': 'Loading'
550
+ },
551
+ 'zh-CHT': {
552
+ 'uploadFile': '上傳文件',
553
+ 'uploading': '正在上傳文件……',
554
+ 'selectedCount': '已選擇文件數量:',
555
+ 'limitCount': '超出系統限制數量:',
556
+ 'rechooseFile': ',重新選擇上傳文件。',
557
+ 'save': '保存',
558
+ 'cancel': '取消',
559
+ 'haveSameName': '已上傳過同名文件: ',
560
+ 'rename': '重命名',
561
+ 'replace': '替換',
562
+ 'sizeZero': '文件大小為0',
563
+ 'uploadFailure': '上傳失敗',
564
+ 'uploadSucceed': '上傳成功',
565
+ 'wait': '等一下,文件正在上傳。',
566
+ 'saveTo': '正在將文件保存到',
567
+ 'delete': '删除',
568
+ 'selectAll': '全選',
569
+ 'selectNull': '全不選',
570
+ 'detail': '詳情',
571
+ 'fileName': '文件名',
572
+ 'state': '狀態',
573
+ 'operation': '操作',
574
+ 'size': '大小',
575
+ 'close': '關閉',
576
+ 'loading': '拼命加載中'
577
+ },
578
+ };
579
+
580
+ /**
581
+ * @fileoverview added by tsickle
582
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
583
+ */
584
+ var LocalLangPipe = /** @class */ (function () {
585
+ function LocalLangPipe(localeId) {
586
+ this.defaultLang = "zh-CHS";
587
+ this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
588
+ this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
589
+ }
590
+ /**
591
+ * @param {?} name
592
+ * @return {?}
593
+ */
594
+ LocalLangPipe.prototype.transform = /**
595
+ * @param {?} name
596
+ * @return {?}
597
+ */
598
+ function (name) {
599
+ return this.lang[name] || name;
600
+ };
601
+ LocalLangPipe.decorators = [
602
+ { type: Pipe, args: [{ name: 'locale' },] }
603
+ ];
604
+ /** @nocollapse */
605
+ LocalLangPipe.ctorParameters = function () { return [
606
+ { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
607
+ ]; };
608
+ return LocalLangPipe;
609
+ }());
610
+
464
611
  /**
465
612
  * @fileoverview added by tsickle
466
613
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -503,10 +650,16 @@ var FileUploadComponent = /** @class */ (function () {
503
650
  this.oldUploadedFileList = [];
504
651
  //uploadedNameList = [];
505
652
  this.sameNameAllowed = true;
653
+ this.checkboxPos = { top: '0px' };
506
654
  this.fileType = "*";
507
655
  this.fileCount = 0;
508
656
  this.oldIdList = [];
657
+ this.totalLoad = null;
509
658
  this.exStorageFileList = [];
659
+ if (this.injector) {
660
+ this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
661
+ this.localepipe = new LocalLangPipe(this.localeid);
662
+ }
510
663
  }
511
664
  /**
512
665
  * @return {?}
@@ -516,6 +669,8 @@ var FileUploadComponent = /** @class */ (function () {
516
669
  */
517
670
  function () {
518
671
  var _this = this;
672
+ if (navigator.userAgent.indexOf('Firefox') >= 0)
673
+ this.checkboxPos.top = '14px';
519
674
  //if (this.storageService != null) {
520
675
  this.uploadService.getStorageExtensionInfo().subscribe((/**
521
676
  * @param {?} res
@@ -565,6 +720,18 @@ var FileUploadComponent = /** @class */ (function () {
565
720
  this.uploadService.cancel(this.oldIdList, this.rootId).subscribe();
566
721
  }
567
722
  };
723
+ /**
724
+ * @return {?}
725
+ */
726
+ FileUploadComponent.prototype.showLoading = /**
727
+ * @return {?}
728
+ */
729
+ function () {
730
+ if (this.totalLoad == null)
731
+ this.totalLoad = this.loadService.show({
732
+ message: this.localepipe.transform('uploading')
733
+ });
734
+ };
568
735
  /**
569
736
  * @param {?} $event
570
737
  * @return {?}
@@ -574,11 +741,12 @@ var FileUploadComponent = /** @class */ (function () {
574
741
  * @return {?}
575
742
  */
576
743
  function ($event) {
744
+ // const loading = this.loadService.show({
745
+ // message: this.localepipe.transform('uploading')
746
+ // });
577
747
  var _this = this;
578
- /** @type {?} */
579
- var loading = this.loadService.show({
580
- message: this.localepipe.transform('uploading')
581
- });
748
+ this.totalLoad.close();
749
+ this.totalLoad = null;
582
750
  this.hasSelectedFile = true;
583
751
  this.selectedFiles = document.querySelector('#file');
584
752
  if (this.fileCount > 0) {
@@ -729,7 +897,7 @@ var FileUploadComponent = /** @class */ (function () {
729
897
  this.files = this.files.slice();
730
898
  this.fileAllSelected = false;
731
899
  $event.target.value = '';
732
- loading.close();
900
+ // loading.close();
733
901
  };
734
902
  /**
735
903
  * @param {?} file
@@ -1381,7 +1549,7 @@ var FileUploadComponent = /** @class */ (function () {
1381
1549
  FileUploadComponent.decorators = [
1382
1550
  { type: Component, args: [{
1383
1551
  selector: 'app-file-upload',
1384
- 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>",
1552
+ 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>",
1385
1553
  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}"]
1386
1554
  }] }
1387
1555
  ];
@@ -1569,153 +1737,6 @@ var DownloadService = /** @class */ (function () {
1569
1737
  return DownloadService;
1570
1738
  }());
1571
1739
 
1572
- /**
1573
- * @fileoverview added by tsickle
1574
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1575
- */
1576
- /** @type {?} */
1577
- var LANG_RESOURCES = {
1578
- 'zh-CHS': {
1579
- 'uploadFile': '上传文件',
1580
- 'uploading': '正在上传文件……',
1581
- 'selectedCount': '已选择文件数量:',
1582
- 'limitCount': '超出系统限制数量:',
1583
- 'rechooseFile': ',重新选择上传文件。',
1584
- 'save': '保存',
1585
- 'cancel': '取消',
1586
- 'haveSameName': '已上传过同名文件: ',
1587
- 'rename': '重命名',
1588
- 'replace': '替换',
1589
- 'sizeZero': '文件大小为0',
1590
- 'uploadFailure': '上传失败',
1591
- 'uploadSucceed': '上传成功',
1592
- 'wait': '等一下,文档正在上传。',
1593
- 'saveTo': '正在将文件保存到',
1594
- 'delete': '删除',
1595
- 'selectAll': '全选',
1596
- 'selectNull': '全不选',
1597
- 'detail': '详情',
1598
- 'fileName': '文件名',
1599
- 'state': '状态',
1600
- 'operation': '操作',
1601
- 'size': '大小',
1602
- 'close': '关闭',
1603
- 'loading': '拼命加载中'
1604
- },
1605
- 'en-US': {
1606
- 'uploadFile': 'Upload File',
1607
- 'uploading': 'File Uploading……',
1608
- 'selectedCount': 'Selected files count:',
1609
- 'limitCount': 'System limit count:',
1610
- 'rechooseFile': ',Reselect upload file.',
1611
- 'save': 'Save',
1612
- 'cancel': 'Cancel',
1613
- 'haveSameName': 'A file with the same name has been uploaded: ',
1614
- 'rename': 'Rename',
1615
- 'replace': 'Replace',
1616
- 'sizeZero': 'File size is 0',
1617
- 'uploadFailure': 'Upload failed',
1618
- 'uploadSucceed': 'Upload successfully',
1619
- 'wait': 'Wait a minute, the file is uploading.',
1620
- 'saveTo': 'Saving file to',
1621
- 'delete': 'Delete',
1622
- 'selectAll': 'Select all',
1623
- 'selectNull': 'Not at all',
1624
- 'detail': 'Details',
1625
- 'fileName': 'Filename',
1626
- 'state': 'State',
1627
- 'operation': 'Operation',
1628
- 'size': 'Size',
1629
- 'close': 'Close',
1630
- 'loading': 'Loading'
1631
- },
1632
- 'en': {
1633
- 'uploadFile': 'Upload File',
1634
- 'uploading': 'File Uploading……',
1635
- 'selectedCount': 'Selected files count:',
1636
- 'limitCount': 'System limit count:',
1637
- 'rechooseFile': ',Reselect upload file.',
1638
- 'save': 'Save',
1639
- 'cancel': 'Cancel',
1640
- 'haveSameName': 'A file with the same name has been uploaded: ',
1641
- 'rename': 'Rename',
1642
- 'replace': 'Replace',
1643
- 'sizeZero': 'File size is 0',
1644
- 'uploadFailure': 'Upload failed',
1645
- 'uploadSucceed': 'Upload successfully',
1646
- 'wait': 'Wait a minute, the file is uploading.',
1647
- 'saveTo': 'Saving file to',
1648
- 'delete': 'Delete',
1649
- 'selectAll': 'Select all',
1650
- 'selectNull': 'Not at all',
1651
- 'detail': 'Details',
1652
- 'fileName': 'Filename',
1653
- 'state': 'State',
1654
- 'operation': 'Operation',
1655
- 'size': 'Size',
1656
- 'close': 'Close',
1657
- 'loading': 'Loading'
1658
- },
1659
- 'zh-CHT': {
1660
- 'uploadFile': '上傳文件',
1661
- 'uploading': '正在上傳文件……',
1662
- 'selectedCount': '已選擇文件數量:',
1663
- 'limitCount': '超出系統限制數量:',
1664
- 'rechooseFile': ',重新選擇上傳文件。',
1665
- 'save': '保存',
1666
- 'cancel': '取消',
1667
- 'haveSameName': '已上傳過同名文件: ',
1668
- 'rename': '重命名',
1669
- 'replace': '替換',
1670
- 'sizeZero': '文件大小為0',
1671
- 'uploadFailure': '上傳失敗',
1672
- 'uploadSucceed': '上傳成功',
1673
- 'wait': '等一下,文件正在上傳。',
1674
- 'saveTo': '正在將文件保存到',
1675
- 'delete': '删除',
1676
- 'selectAll': '全選',
1677
- 'selectNull': '全不選',
1678
- 'detail': '詳情',
1679
- 'fileName': '文件名',
1680
- 'state': '狀態',
1681
- 'operation': '操作',
1682
- 'size': '大小',
1683
- 'close': '關閉',
1684
- 'loading': '拼命加載中'
1685
- },
1686
- };
1687
-
1688
- /**
1689
- * @fileoverview added by tsickle
1690
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1691
- */
1692
- var LocalLangPipe = /** @class */ (function () {
1693
- function LocalLangPipe(localeId) {
1694
- this.defaultLang = "zh-CHS";
1695
- this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
1696
- this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
1697
- }
1698
- /**
1699
- * @param {?} name
1700
- * @return {?}
1701
- */
1702
- LocalLangPipe.prototype.transform = /**
1703
- * @param {?} name
1704
- * @return {?}
1705
- */
1706
- function (name) {
1707
- return this.lang[name] || name;
1708
- };
1709
- LocalLangPipe.decorators = [
1710
- { type: Pipe, args: [{ name: 'locale' },] }
1711
- ];
1712
- /** @nocollapse */
1713
- LocalLangPipe.ctorParameters = function () { return [
1714
- { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
1715
- ]; };
1716
- return LocalLangPipe;
1717
- }());
1718
-
1719
1740
  /**
1720
1741
  * @fileoverview added by tsickle
1721
1742
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc