@gsp-svc/formdoc-upload 0.1.24 → 0.1.29
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.
- package/bundles/gsp-svc-formdoc-upload.umd.js +212 -24
- package/bundles/gsp-svc-formdoc-upload.umd.js.map +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js.map +1 -1
- package/esm2015/gsp-svc-formdoc-upload.js +3 -2
- package/esm2015/lib/formdoc-upload.module.js +8 -3
- package/esm2015/lib/i18n/language.resource.js +116 -0
- package/esm2015/lib/local.pipe.js +48 -0
- package/esm2015/lib/upload/entity/filestate.js +13 -0
- package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +34 -17
- package/esm2015/lib/upload/upload.module.js +9 -4
- package/esm2015/lib/uploaddialog.service.js +18 -8
- package/esm2015/public-api.js +2 -1
- package/esm5/gsp-svc-formdoc-upload.js +3 -2
- package/esm5/lib/formdoc-upload.module.js +8 -3
- package/esm5/lib/i18n/language.resource.js +116 -0
- package/esm5/lib/local.pipe.js +51 -0
- package/esm5/lib/upload/entity/filestate.js +13 -0
- package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm5/lib/upload/file-upload/file-upload.component.js +36 -17
- package/esm5/lib/upload/upload.module.js +9 -4
- package/esm5/lib/uploaddialog.service.js +18 -8
- package/esm5/public-api.js +2 -1
- package/fesm2015/gsp-svc-formdoc-upload.js +205 -27
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +209 -27
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.d.ts +1 -0
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- package/lib/i18n/language.resource.d.ts +110 -0
- package/lib/local.pipe.d.ts +8 -0
- package/lib/upload/entity/filestate.d.ts +4 -0
- package/lib/upload/entity/uploadfileinfo.d.ts +2 -0
- package/lib/upload/file-upload/file-upload.component.d.ts +5 -1
- package/lib/uploaddialog.service.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -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, Injector, ComponentFactoryResolver,
|
|
13
|
+
import { LanguageService, HttpService } from '@ecp-caf/caf-common';
|
|
14
|
+
import { Injectable, Pipe, Inject, LOCALE_ID, Component, NgModule, Injector, ComponentFactoryResolver, Input, ViewChild, defineInjectable } from '@angular/core';
|
|
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';
|
|
@@ -65,6 +65,7 @@ var FormdocUploadComponent = /** @class */ (function () {
|
|
|
65
65
|
* @fileoverview added by tsickle
|
|
66
66
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
67
67
|
*/
|
|
68
|
+
var ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
68
69
|
var FormdocUploadModule = /** @class */ (function () {
|
|
69
70
|
function FormdocUploadModule() {
|
|
70
71
|
}
|
|
@@ -72,7 +73,9 @@ var FormdocUploadModule = /** @class */ (function () {
|
|
|
72
73
|
{ type: NgModule, args: [{
|
|
73
74
|
declarations: [FormdocUploadComponent],
|
|
74
75
|
imports: [],
|
|
75
|
-
exports: [FormdocUploadComponent]
|
|
76
|
+
exports: [FormdocUploadComponent],
|
|
77
|
+
providers: [LanguageService,
|
|
78
|
+
{ provide: LOCALE_ID, useValue: ɵ0 },]
|
|
76
79
|
},] }
|
|
77
80
|
];
|
|
78
81
|
return FormdocUploadModule;
|
|
@@ -446,6 +449,165 @@ var ExStorageFileInfo = /** @class */ (function () {
|
|
|
446
449
|
return ExStorageFileInfo;
|
|
447
450
|
}());
|
|
448
451
|
|
|
452
|
+
/**
|
|
453
|
+
* @fileoverview added by tsickle
|
|
454
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
455
|
+
*/
|
|
456
|
+
/** @enum {number} */
|
|
457
|
+
var FileState = {
|
|
458
|
+
New: 0,
|
|
459
|
+
Update: 1,
|
|
460
|
+
};
|
|
461
|
+
FileState[FileState.New] = 'New';
|
|
462
|
+
FileState[FileState.Update] = 'Update';
|
|
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
|
+
|
|
449
611
|
/**
|
|
450
612
|
* @fileoverview added by tsickle
|
|
451
613
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -492,6 +654,10 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
492
654
|
this.fileCount = 0;
|
|
493
655
|
this.oldIdList = [];
|
|
494
656
|
this.exStorageFileList = [];
|
|
657
|
+
if (this.injector) {
|
|
658
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
659
|
+
this.localepipe = new LocalLangPipe(this.localeid);
|
|
660
|
+
}
|
|
495
661
|
}
|
|
496
662
|
/**
|
|
497
663
|
* @return {?}
|
|
@@ -560,13 +726,17 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
560
726
|
*/
|
|
561
727
|
function ($event) {
|
|
562
728
|
var _this = this;
|
|
729
|
+
/** @type {?} */
|
|
730
|
+
var loading = this.loadService.show({
|
|
731
|
+
message: this.localepipe.transform('uploading')
|
|
732
|
+
});
|
|
563
733
|
this.hasSelectedFile = true;
|
|
564
734
|
this.selectedFiles = document.querySelector('#file');
|
|
565
735
|
if (this.fileCount > 0) {
|
|
566
736
|
if (this.selectedFiles.files.length + this.files.length > this.fileCount) {
|
|
567
737
|
/** @type {?} */
|
|
568
738
|
var selectedNum = ((/** @type {?} */ (this.selectedFiles.files.length))) + this.files.length;
|
|
569
|
-
this.msgService.warning('
|
|
739
|
+
this.msgService.warning(this.localepipe.transform('selectedCount') + selectedNum + this.localepipe.transform('limitCount') + this.fileCount + this.localepipe.transform('rechooseFile'));
|
|
570
740
|
return;
|
|
571
741
|
}
|
|
572
742
|
}
|
|
@@ -588,11 +758,11 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
588
758
|
// this.uploadFile(uuid, selectedFile);
|
|
589
759
|
// })
|
|
590
760
|
/** @type {?} */
|
|
591
|
-
var msg_1 = this_1.msgService.show('warning', '
|
|
761
|
+
var msg_1 = this_1.msgService.show('warning', this_1.localepipe.transform('haveSameName') + selectedFile.name, {
|
|
592
762
|
initialState: {
|
|
593
763
|
buttons: [
|
|
594
764
|
{
|
|
595
|
-
text: '
|
|
765
|
+
text: this_1.localepipe.transform('rename'),
|
|
596
766
|
cls: 'btn btn-secondary',
|
|
597
767
|
handle: (/**
|
|
598
768
|
* @return {?}
|
|
@@ -623,7 +793,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
623
793
|
})
|
|
624
794
|
},
|
|
625
795
|
{
|
|
626
|
-
text: '
|
|
796
|
+
text: this_1.localepipe.transform('replace'),
|
|
627
797
|
cls: 'btn btn-secondary',
|
|
628
798
|
handle: (/**
|
|
629
799
|
* @return {?}
|
|
@@ -634,7 +804,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
634
804
|
* @return {?}
|
|
635
805
|
*/
|
|
636
806
|
function (x) { return x.fileName == selectedFile.name; })).metadataId;
|
|
637
|
-
_this.uploadFile(uuid, selectedFile, selectedFile.name);
|
|
807
|
+
_this.uploadFile(uuid, selectedFile, selectedFile.name, FileState.Update);
|
|
638
808
|
_this.uploadedFileTotal--;
|
|
639
809
|
if (_this.oldUploadedFileList.find((/**
|
|
640
810
|
* @param {?} x
|
|
@@ -652,7 +822,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
652
822
|
})
|
|
653
823
|
},
|
|
654
824
|
{
|
|
655
|
-
text: '
|
|
825
|
+
text: this_1.localepipe.transform('cancel'),
|
|
656
826
|
cls: 'btn btn-secondary',
|
|
657
827
|
handle: (/**
|
|
658
828
|
* @return {?}
|
|
@@ -692,14 +862,14 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
692
862
|
if (this.errFileList.length > 0) {
|
|
693
863
|
/** @type {?} */
|
|
694
864
|
var name_1 = this.listToString(this.errFileList);
|
|
695
|
-
this.msgService.warning('
|
|
865
|
+
this.msgService.warning(this.localepipe.transform('haveSameName') + name_1 + this.localepipe.transform('rechooseFile'));
|
|
696
866
|
this.errFileList = [];
|
|
697
867
|
}
|
|
698
868
|
if (this.nullFileList.length > 0) {
|
|
699
869
|
/** @type {?} */
|
|
700
870
|
var name_2 = this.listToString(this.nullFileList);
|
|
701
871
|
name_2 = name_2.substring(0, name_2.length - 1);
|
|
702
|
-
this.msgService.warning(
|
|
872
|
+
this.msgService.warning(name_2 + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
|
|
703
873
|
this.nullFileList = [];
|
|
704
874
|
}
|
|
705
875
|
// if (this.errTypeList.length > 0) {
|
|
@@ -710,6 +880,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
710
880
|
this.files = this.files.slice();
|
|
711
881
|
this.fileAllSelected = false;
|
|
712
882
|
$event.target.value = '';
|
|
883
|
+
loading.close();
|
|
713
884
|
};
|
|
714
885
|
/**
|
|
715
886
|
* @param {?} file
|
|
@@ -720,22 +891,25 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
720
891
|
* @return {?}
|
|
721
892
|
*/
|
|
722
893
|
function (file) {
|
|
723
|
-
this.msgService.error('
|
|
894
|
+
this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
|
|
724
895
|
};
|
|
725
896
|
/**
|
|
726
897
|
* @param {?} uuid
|
|
727
898
|
* @param {?} selectedFile
|
|
728
899
|
* @param {?} fileName
|
|
900
|
+
* @param {?=} state
|
|
729
901
|
* @return {?}
|
|
730
902
|
*/
|
|
731
903
|
FileUploadComponent.prototype.uploadFile = /**
|
|
732
904
|
* @param {?} uuid
|
|
733
905
|
* @param {?} selectedFile
|
|
734
906
|
* @param {?} fileName
|
|
907
|
+
* @param {?=} state
|
|
735
908
|
* @return {?}
|
|
736
909
|
*/
|
|
737
|
-
function (uuid, selectedFile, fileName) {
|
|
910
|
+
function (uuid, selectedFile, fileName, state) {
|
|
738
911
|
var _this = this;
|
|
912
|
+
if (state === void 0) { state = FileState.New; }
|
|
739
913
|
/** @type {?} */
|
|
740
914
|
var fileInfo;
|
|
741
915
|
// let uuid = UUID.UUID();
|
|
@@ -773,6 +947,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
773
947
|
uploadFileInfo.metadataId = uuid;
|
|
774
948
|
uploadFileInfo.fileName = fileInfo.name;
|
|
775
949
|
uploadFileInfo.fileSize = fileInfo.size;
|
|
950
|
+
uploadFileInfo.state = state;
|
|
776
951
|
var _loop_2 = function () {
|
|
777
952
|
/** @type {?} */
|
|
778
953
|
var uploadInfo = new GspFormUploadEntity;
|
|
@@ -1208,7 +1383,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1208
1383
|
// this.notifyService.success(<NotifyOptions>{
|
|
1209
1384
|
// msg: '保存成功!', timeout: 3000
|
|
1210
1385
|
// });
|
|
1211
|
-
this.msgService.warning('
|
|
1386
|
+
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1212
1387
|
return of$1(false);
|
|
1213
1388
|
}
|
|
1214
1389
|
if (this.storageExtension == null)
|
|
@@ -1219,15 +1394,15 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1219
1394
|
else {
|
|
1220
1395
|
/** @type {?} */
|
|
1221
1396
|
var loading_1 = this.loadService.show({
|
|
1222
|
-
message: '
|
|
1397
|
+
message: this.localepipe.transform('saveTo') + this.storageExtension.extensionName
|
|
1223
1398
|
});
|
|
1224
1399
|
return this.uploadService.changeStorageInstance(this.exStorageFileList, this.rootId).pipe(map((/**
|
|
1225
1400
|
* @param {?} res
|
|
1226
1401
|
* @return {?}
|
|
1227
1402
|
*/
|
|
1228
1403
|
function (res) {
|
|
1229
|
-
if (res != null)
|
|
1230
|
-
|
|
1404
|
+
// if (res != null)
|
|
1405
|
+
// this.msgService.error('保存到' + this.storageExtension.extensionName + "失败,上传文件自动保存到" + this.storageExtension.defaultPropertyName + "存储。" + res.error.Message);
|
|
1231
1406
|
loading_1.close();
|
|
1232
1407
|
return _this.uploadFileInfoList;
|
|
1233
1408
|
})));
|
|
@@ -1357,7 +1532,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1357
1532
|
FileUploadComponent.decorators = [
|
|
1358
1533
|
{ type: Component, args: [{
|
|
1359
1534
|
selector: 'app-file-upload',
|
|
1360
|
-
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>",
|
|
1535
|
+
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-error\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\" style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\" [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' | locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\" (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
|
|
1361
1536
|
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}"]
|
|
1362
1537
|
}] }
|
|
1363
1538
|
];
|
|
@@ -1549,12 +1724,13 @@ var DownloadService = /** @class */ (function () {
|
|
|
1549
1724
|
* @fileoverview added by tsickle
|
|
1550
1725
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1551
1726
|
*/
|
|
1727
|
+
var ɵ0$1 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
1552
1728
|
var UploadModule = /** @class */ (function () {
|
|
1553
1729
|
function UploadModule() {
|
|
1554
1730
|
}
|
|
1555
1731
|
UploadModule.decorators = [
|
|
1556
1732
|
{ type: NgModule, args: [{
|
|
1557
|
-
declarations: [FileUploadComponent],
|
|
1733
|
+
declarations: [FileUploadComponent, LocalLangPipe],
|
|
1558
1734
|
imports: [
|
|
1559
1735
|
CommonModule,
|
|
1560
1736
|
ButtonsModule,
|
|
@@ -1567,7 +1743,8 @@ var UploadModule = /** @class */ (function () {
|
|
|
1567
1743
|
],
|
|
1568
1744
|
exports: [FileUploadComponent],
|
|
1569
1745
|
entryComponents: [FileUploadComponent],
|
|
1570
|
-
providers: [UploadService, DownloadService
|
|
1746
|
+
providers: [UploadService, DownloadService, LanguageService,
|
|
1747
|
+
{ provide: LOCALE_ID, useValue: ɵ0$1 },]
|
|
1571
1748
|
},] }
|
|
1572
1749
|
];
|
|
1573
1750
|
return UploadModule;
|
|
@@ -1655,6 +1832,11 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1655
1832
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
1656
1833
|
this.injector = injector;
|
|
1657
1834
|
this.fileInfoList = [];
|
|
1835
|
+
if (this.injector) {
|
|
1836
|
+
this.modalService = this.injector.get(BsModalService);
|
|
1837
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
1838
|
+
this.localpipe = new LocalLangPipe(this.localeid);
|
|
1839
|
+
}
|
|
1658
1840
|
}
|
|
1659
1841
|
/**
|
|
1660
1842
|
* @param {?} formId
|
|
@@ -1682,11 +1864,11 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1682
1864
|
viewerRef.instance.rootId = rootId;
|
|
1683
1865
|
viewerRef.instance.formId = formId;
|
|
1684
1866
|
_this.dlg = _this.modalService.show(viewerRef, {
|
|
1685
|
-
title: '
|
|
1867
|
+
title: _this.localpipe.transform('uploadFile'),
|
|
1686
1868
|
width: 950, height: 570,
|
|
1687
1869
|
buttons: [
|
|
1688
1870
|
{
|
|
1689
|
-
text: '
|
|
1871
|
+
text: _this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
|
|
1690
1872
|
* @return {?}
|
|
1691
1873
|
*/
|
|
1692
1874
|
function () {
|
|
@@ -1704,7 +1886,7 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1704
1886
|
})
|
|
1705
1887
|
},
|
|
1706
1888
|
{
|
|
1707
|
-
text: '
|
|
1889
|
+
text: _this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
|
|
1708
1890
|
* @return {?}
|
|
1709
1891
|
*/
|
|
1710
1892
|
function () {
|
|
@@ -1778,11 +1960,11 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1778
1960
|
uploadRef.instance.formId = formId;
|
|
1779
1961
|
uploadRef.instance.oldIdList = oldIdList;
|
|
1780
1962
|
_this.dlg = _this.modalService.show(uploadRef, {
|
|
1781
|
-
title: '
|
|
1963
|
+
title: _this.localpipe.transform('uploadFile'),
|
|
1782
1964
|
width: 950, height: 570,
|
|
1783
1965
|
buttons: [
|
|
1784
1966
|
{
|
|
1785
|
-
text: '
|
|
1967
|
+
text: _this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
|
|
1786
1968
|
* @return {?}
|
|
1787
1969
|
*/
|
|
1788
1970
|
function () {
|
|
@@ -1800,7 +1982,7 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1800
1982
|
})
|
|
1801
1983
|
},
|
|
1802
1984
|
{
|
|
1803
|
-
text: '
|
|
1985
|
+
text: _this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
|
|
1804
1986
|
* @return {?}
|
|
1805
1987
|
*/
|
|
1806
1988
|
function () {
|
|
@@ -1912,6 +2094,6 @@ var FileInfo = /** @class */ (function () {
|
|
|
1912
2094
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1913
2095
|
*/
|
|
1914
2096
|
|
|
1915
|
-
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes };
|
|
2097
|
+
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState, LocalLangPipe as ɵb };
|
|
1916
2098
|
|
|
1917
2099
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|