@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,
|
|
13
|
+
import { LanguageService, HttpService } from '@ecp-caf/caf-common';
|
|
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';
|
|
@@ -62,13 +62,16 @@ FormdocUploadComponent.ctorParameters = () => [];
|
|
|
62
62
|
* @fileoverview added by tsickle
|
|
63
63
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
64
64
|
*/
|
|
65
|
+
const ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
65
66
|
class FormdocUploadModule {
|
|
66
67
|
}
|
|
67
68
|
FormdocUploadModule.decorators = [
|
|
68
69
|
{ type: NgModule, args: [{
|
|
69
70
|
declarations: [FormdocUploadComponent],
|
|
70
71
|
imports: [],
|
|
71
|
-
exports: [FormdocUploadComponent]
|
|
72
|
+
exports: [FormdocUploadComponent],
|
|
73
|
+
providers: [LanguageService,
|
|
74
|
+
{ provide: LOCALE_ID, useValue: ɵ0 },]
|
|
72
75
|
},] }
|
|
73
76
|
];
|
|
74
77
|
|
|
@@ -375,6 +378,163 @@ class GspFormUploadEntity {
|
|
|
375
378
|
class ExStorageFileInfo {
|
|
376
379
|
}
|
|
377
380
|
|
|
381
|
+
/**
|
|
382
|
+
* @fileoverview added by tsickle
|
|
383
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
384
|
+
*/
|
|
385
|
+
/** @enum {number} */
|
|
386
|
+
const FileState = {
|
|
387
|
+
New: 0,
|
|
388
|
+
Update: 1,
|
|
389
|
+
};
|
|
390
|
+
FileState[FileState.New] = 'New';
|
|
391
|
+
FileState[FileState.Update] = 'Update';
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @fileoverview added by tsickle
|
|
395
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
396
|
+
*/
|
|
397
|
+
/** @type {?} */
|
|
398
|
+
const LANG_RESOURCES = {
|
|
399
|
+
'zh-CHS': {
|
|
400
|
+
'uploadFile': '上传文件',
|
|
401
|
+
'uploading': '正在上传文件……',
|
|
402
|
+
'selectedCount': '已选择文件数量:',
|
|
403
|
+
'limitCount': '超出系统限制数量:',
|
|
404
|
+
'rechooseFile': ',重新选择上传文件。',
|
|
405
|
+
'save': '保存',
|
|
406
|
+
'cancel': '取消',
|
|
407
|
+
'haveSameName': '已上传过同名文件: ',
|
|
408
|
+
'rename': '重命名',
|
|
409
|
+
'replace': '替换',
|
|
410
|
+
'sizeZero': '文件大小为0',
|
|
411
|
+
'uploadFailure': '上传失败',
|
|
412
|
+
'uploadSucceed': '上传成功',
|
|
413
|
+
'wait': '等一下,文档正在上传。',
|
|
414
|
+
'saveTo': '正在将文件保存到',
|
|
415
|
+
'delete': '删除',
|
|
416
|
+
'selectAll': '全选',
|
|
417
|
+
'selectNull': '全不选',
|
|
418
|
+
'detail': '详情',
|
|
419
|
+
'fileName': '文件名',
|
|
420
|
+
'state': '状态',
|
|
421
|
+
'operation': '操作',
|
|
422
|
+
'size': '大小',
|
|
423
|
+
'close': '关闭',
|
|
424
|
+
'loading': '拼命加载中'
|
|
425
|
+
},
|
|
426
|
+
'en-US': {
|
|
427
|
+
'uploadFile': 'Upload File',
|
|
428
|
+
'uploading': 'File Uploading……',
|
|
429
|
+
'selectedCount': 'Selected files count:',
|
|
430
|
+
'limitCount': 'System limit count:',
|
|
431
|
+
'rechooseFile': ',Reselect upload file.',
|
|
432
|
+
'save': 'Save',
|
|
433
|
+
'cancel': 'Cancel',
|
|
434
|
+
'haveSameName': 'A file with the same name has been uploaded: ',
|
|
435
|
+
'rename': 'Rename',
|
|
436
|
+
'replace': 'Replace',
|
|
437
|
+
'sizeZero': 'File size is 0',
|
|
438
|
+
'uploadFailure': 'Upload failed',
|
|
439
|
+
'uploadSucceed': 'Upload successfully',
|
|
440
|
+
'wait': 'Wait a minute, the file is uploading.',
|
|
441
|
+
'saveTo': 'Saving file to',
|
|
442
|
+
'delete': 'Delete',
|
|
443
|
+
'selectAll': 'Select all',
|
|
444
|
+
'selectNull': 'Not at all',
|
|
445
|
+
'detail': 'Details',
|
|
446
|
+
'fileName': 'Filename',
|
|
447
|
+
'state': 'State',
|
|
448
|
+
'operation': 'Operation',
|
|
449
|
+
'size': 'Size',
|
|
450
|
+
'close': 'Close',
|
|
451
|
+
'loading': 'Loading'
|
|
452
|
+
},
|
|
453
|
+
'en': {
|
|
454
|
+
'uploadFile': 'Upload File',
|
|
455
|
+
'uploading': 'File Uploading……',
|
|
456
|
+
'selectedCount': 'Selected files count:',
|
|
457
|
+
'limitCount': 'System limit count:',
|
|
458
|
+
'rechooseFile': ',Reselect upload file.',
|
|
459
|
+
'save': 'Save',
|
|
460
|
+
'cancel': 'Cancel',
|
|
461
|
+
'haveSameName': 'A file with the same name has been uploaded: ',
|
|
462
|
+
'rename': 'Rename',
|
|
463
|
+
'replace': 'Replace',
|
|
464
|
+
'sizeZero': 'File size is 0',
|
|
465
|
+
'uploadFailure': 'Upload failed',
|
|
466
|
+
'uploadSucceed': 'Upload successfully',
|
|
467
|
+
'wait': 'Wait a minute, the file is uploading.',
|
|
468
|
+
'saveTo': 'Saving file to',
|
|
469
|
+
'delete': 'Delete',
|
|
470
|
+
'selectAll': 'Select all',
|
|
471
|
+
'selectNull': 'Not at all',
|
|
472
|
+
'detail': 'Details',
|
|
473
|
+
'fileName': 'Filename',
|
|
474
|
+
'state': 'State',
|
|
475
|
+
'operation': 'Operation',
|
|
476
|
+
'size': 'Size',
|
|
477
|
+
'close': 'Close',
|
|
478
|
+
'loading': 'Loading'
|
|
479
|
+
},
|
|
480
|
+
'zh-CHT': {
|
|
481
|
+
'uploadFile': '上傳文件',
|
|
482
|
+
'uploading': '正在上傳文件……',
|
|
483
|
+
'selectedCount': '已選擇文件數量:',
|
|
484
|
+
'limitCount': '超出系統限制數量:',
|
|
485
|
+
'rechooseFile': ',重新選擇上傳文件。',
|
|
486
|
+
'save': '保存',
|
|
487
|
+
'cancel': '取消',
|
|
488
|
+
'haveSameName': '已上傳過同名文件: ',
|
|
489
|
+
'rename': '重命名',
|
|
490
|
+
'replace': '替換',
|
|
491
|
+
'sizeZero': '文件大小為0',
|
|
492
|
+
'uploadFailure': '上傳失敗',
|
|
493
|
+
'uploadSucceed': '上傳成功',
|
|
494
|
+
'wait': '等一下,文件正在上傳。',
|
|
495
|
+
'saveTo': '正在將文件保存到',
|
|
496
|
+
'delete': '删除',
|
|
497
|
+
'selectAll': '全選',
|
|
498
|
+
'selectNull': '全不選',
|
|
499
|
+
'detail': '詳情',
|
|
500
|
+
'fileName': '文件名',
|
|
501
|
+
'state': '狀態',
|
|
502
|
+
'operation': '操作',
|
|
503
|
+
'size': '大小',
|
|
504
|
+
'close': '關閉',
|
|
505
|
+
'loading': '拼命加載中'
|
|
506
|
+
},
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @fileoverview added by tsickle
|
|
511
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
512
|
+
*/
|
|
513
|
+
class LocalLangPipe {
|
|
514
|
+
/**
|
|
515
|
+
* @param {?} localeId
|
|
516
|
+
*/
|
|
517
|
+
constructor(localeId) {
|
|
518
|
+
this.defaultLang = "zh-CHS";
|
|
519
|
+
this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
|
|
520
|
+
this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @param {?} name
|
|
524
|
+
* @return {?}
|
|
525
|
+
*/
|
|
526
|
+
transform(name) {
|
|
527
|
+
return this.lang[name] || name;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
LocalLangPipe.decorators = [
|
|
531
|
+
{ type: Pipe, args: [{ name: 'locale' },] }
|
|
532
|
+
];
|
|
533
|
+
/** @nocollapse */
|
|
534
|
+
LocalLangPipe.ctorParameters = () => [
|
|
535
|
+
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
|
|
536
|
+
];
|
|
537
|
+
|
|
378
538
|
/**
|
|
379
539
|
* @fileoverview added by tsickle
|
|
380
540
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -427,6 +587,10 @@ class FileUploadComponent {
|
|
|
427
587
|
this.fileCount = 0;
|
|
428
588
|
this.oldIdList = [];
|
|
429
589
|
this.exStorageFileList = [];
|
|
590
|
+
if (this.injector) {
|
|
591
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
592
|
+
this.localepipe = new LocalLangPipe(this.localeid);
|
|
593
|
+
}
|
|
430
594
|
}
|
|
431
595
|
/**
|
|
432
596
|
* @return {?}
|
|
@@ -486,13 +650,17 @@ class FileUploadComponent {
|
|
|
486
650
|
* @return {?}
|
|
487
651
|
*/
|
|
488
652
|
fileSelected($event) {
|
|
653
|
+
/** @type {?} */
|
|
654
|
+
const loading = this.loadService.show({
|
|
655
|
+
message: this.localepipe.transform('uploading')
|
|
656
|
+
});
|
|
489
657
|
this.hasSelectedFile = true;
|
|
490
658
|
this.selectedFiles = document.querySelector('#file');
|
|
491
659
|
if (this.fileCount > 0) {
|
|
492
660
|
if (this.selectedFiles.files.length + this.files.length > this.fileCount) {
|
|
493
661
|
/** @type {?} */
|
|
494
662
|
let selectedNum = ((/** @type {?} */ (this.selectedFiles.files.length))) + this.files.length;
|
|
495
|
-
this.msgService.warning('
|
|
663
|
+
this.msgService.warning(this.localepipe.transform('selectedCount') + selectedNum + this.localepipe.transform('limitCount') + this.fileCount + this.localepipe.transform('rechooseFile'));
|
|
496
664
|
return;
|
|
497
665
|
}
|
|
498
666
|
}
|
|
@@ -515,11 +683,11 @@ class FileUploadComponent {
|
|
|
515
683
|
// this.uploadFile(uuid, selectedFile);
|
|
516
684
|
// })
|
|
517
685
|
/** @type {?} */
|
|
518
|
-
const msg = this.msgService.show('warning', '
|
|
686
|
+
const msg = this.msgService.show('warning', this.localepipe.transform('haveSameName') + selectedFile.name, {
|
|
519
687
|
initialState: {
|
|
520
688
|
buttons: [
|
|
521
689
|
{
|
|
522
|
-
text: '
|
|
690
|
+
text: this.localepipe.transform('rename'),
|
|
523
691
|
cls: 'btn btn-secondary',
|
|
524
692
|
handle: (/**
|
|
525
693
|
* @return {?}
|
|
@@ -550,7 +718,7 @@ class FileUploadComponent {
|
|
|
550
718
|
})
|
|
551
719
|
},
|
|
552
720
|
{
|
|
553
|
-
text: '
|
|
721
|
+
text: this.localepipe.transform('replace'),
|
|
554
722
|
cls: 'btn btn-secondary',
|
|
555
723
|
handle: (/**
|
|
556
724
|
* @return {?}
|
|
@@ -561,7 +729,7 @@ class FileUploadComponent {
|
|
|
561
729
|
* @return {?}
|
|
562
730
|
*/
|
|
563
731
|
x => x.fileName == selectedFile.name)).metadataId;
|
|
564
|
-
this.uploadFile(uuid, selectedFile, selectedFile.name);
|
|
732
|
+
this.uploadFile(uuid, selectedFile, selectedFile.name, FileState.Update);
|
|
565
733
|
this.uploadedFileTotal--;
|
|
566
734
|
if (this.oldUploadedFileList.find((/**
|
|
567
735
|
* @param {?} x
|
|
@@ -579,7 +747,7 @@ class FileUploadComponent {
|
|
|
579
747
|
})
|
|
580
748
|
},
|
|
581
749
|
{
|
|
582
|
-
text: '
|
|
750
|
+
text: this.localepipe.transform('cancel'),
|
|
583
751
|
cls: 'btn btn-secondary',
|
|
584
752
|
handle: (/**
|
|
585
753
|
* @return {?}
|
|
@@ -614,14 +782,14 @@ class FileUploadComponent {
|
|
|
614
782
|
if (this.errFileList.length > 0) {
|
|
615
783
|
/** @type {?} */
|
|
616
784
|
let name = this.listToString(this.errFileList);
|
|
617
|
-
this.msgService.warning('
|
|
785
|
+
this.msgService.warning(this.localepipe.transform('haveSameName') + name + this.localepipe.transform('rechooseFile'));
|
|
618
786
|
this.errFileList = [];
|
|
619
787
|
}
|
|
620
788
|
if (this.nullFileList.length > 0) {
|
|
621
789
|
/** @type {?} */
|
|
622
790
|
let name = this.listToString(this.nullFileList);
|
|
623
791
|
name = name.substring(0, name.length - 1);
|
|
624
|
-
this.msgService.warning(
|
|
792
|
+
this.msgService.warning(name + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
|
|
625
793
|
this.nullFileList = [];
|
|
626
794
|
}
|
|
627
795
|
// if (this.errTypeList.length > 0) {
|
|
@@ -632,21 +800,23 @@ class FileUploadComponent {
|
|
|
632
800
|
this.files = this.files.slice();
|
|
633
801
|
this.fileAllSelected = false;
|
|
634
802
|
$event.target.value = '';
|
|
803
|
+
loading.close();
|
|
635
804
|
}
|
|
636
805
|
/**
|
|
637
806
|
* @param {?} file
|
|
638
807
|
* @return {?}
|
|
639
808
|
*/
|
|
640
809
|
showErrorMessage(file) {
|
|
641
|
-
this.msgService.error('
|
|
810
|
+
this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
|
|
642
811
|
}
|
|
643
812
|
/**
|
|
644
813
|
* @param {?} uuid
|
|
645
814
|
* @param {?} selectedFile
|
|
646
815
|
* @param {?} fileName
|
|
816
|
+
* @param {?=} state
|
|
647
817
|
* @return {?}
|
|
648
818
|
*/
|
|
649
|
-
uploadFile(uuid, selectedFile, fileName) {
|
|
819
|
+
uploadFile(uuid, selectedFile, fileName, state = FileState.New) {
|
|
650
820
|
/** @type {?} */
|
|
651
821
|
let fileInfo;
|
|
652
822
|
// let uuid = UUID.UUID();
|
|
@@ -684,6 +854,7 @@ class FileUploadComponent {
|
|
|
684
854
|
uploadFileInfo.metadataId = uuid;
|
|
685
855
|
uploadFileInfo.fileName = fileInfo.name;
|
|
686
856
|
uploadFileInfo.fileSize = fileInfo.size;
|
|
857
|
+
uploadFileInfo.state = state;
|
|
687
858
|
while (chunkIndex < chunkTotal) {
|
|
688
859
|
/** @type {?} */
|
|
689
860
|
let uploadInfo = new GspFormUploadEntity;
|
|
@@ -1072,7 +1243,7 @@ class FileUploadComponent {
|
|
|
1072
1243
|
// this.notifyService.success(<NotifyOptions>{
|
|
1073
1244
|
// msg: '保存成功!', timeout: 3000
|
|
1074
1245
|
// });
|
|
1075
|
-
this.msgService.warning('
|
|
1246
|
+
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1076
1247
|
return of$1(false);
|
|
1077
1248
|
}
|
|
1078
1249
|
if (this.storageExtension == null)
|
|
@@ -1083,15 +1254,15 @@ class FileUploadComponent {
|
|
|
1083
1254
|
else {
|
|
1084
1255
|
/** @type {?} */
|
|
1085
1256
|
const loading = this.loadService.show({
|
|
1086
|
-
message: '
|
|
1257
|
+
message: this.localepipe.transform('saveTo') + this.storageExtension.extensionName
|
|
1087
1258
|
});
|
|
1088
1259
|
return this.uploadService.changeStorageInstance(this.exStorageFileList, this.rootId).pipe(map((/**
|
|
1089
1260
|
* @param {?} res
|
|
1090
1261
|
* @return {?}
|
|
1091
1262
|
*/
|
|
1092
1263
|
res => {
|
|
1093
|
-
if (res != null)
|
|
1094
|
-
|
|
1264
|
+
// if (res != null)
|
|
1265
|
+
// this.msgService.error('保存到' + this.storageExtension.extensionName + "失败,上传文件自动保存到" + this.storageExtension.defaultPropertyName + "存储。" + res.error.Message);
|
|
1095
1266
|
loading.close();
|
|
1096
1267
|
return this.uploadFileInfoList;
|
|
1097
1268
|
})));
|
|
@@ -1193,7 +1364,7 @@ class FileUploadComponent {
|
|
|
1193
1364
|
FileUploadComponent.decorators = [
|
|
1194
1365
|
{ type: Component, args: [{
|
|
1195
1366
|
selector: 'app-file-upload',
|
|
1196
|
-
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">\u5168\u9009</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">\u5168\u4E0D\u9009</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">\u5220\u9664</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">\u5220\u9664</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-error\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> \u4E0A\u4F20\u5931\u8D25 </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\" style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\" [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\u6587\u4EF6\u540D</th>\n <th style=\"width: 100px; vertical-align: middle\">\u5927\u5C0F</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">\u72B6\u6001</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">\u64CD\u4F5C</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> \u4E0A\u4F20\u5931\u8D25 </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> \u4E0A\u4F20\u6210\u529F</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\" (click)=\"listDeleteFile(file)\">\u5220\u9664</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
|
|
1367
|
+
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-error\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\" style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\" [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' | locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\" (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
|
|
1197
1368
|
styles: [".home_page{text-align:center}.home_page img{position:absolute;top:180px;margin-left:-35px;width:70px;height:56px}.home_page div{position:absolute;left:50%;top:255px;margin-left:-75px;width:150px;height:32px;overflow:hidden}.home_page div span{width:150px;height:32px;position:absolute;z-index:10;left:0}.home_page div input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)';z-index:11}.upload_button{width:110px;height:32px;overflow:hidden}.upload_button span{position:relative;right:-4px;top:4px;width:56px;height:22px;font-size:14px}.upload_button input{height:32px;width:110px;position:absolute;left:22px;top:12px;opacity:0;filter:'alpha(opacity=0)';overflow:hidden}.upload_button img{position:relative;left:-6px;top:3px;width:14px;height:14px}.button_group_upload{position:absolute;right:18px;top:12px;height:26px;width:53px}.button_group_upload button{height:26px;width:26px}.fileinput-button{position:absolute;right:60px;bottom:40px;overflow:hidden;width:24px;height:24px;border-radius:12px;transform:scale(2.5);-ms-transform:scale(2.5);-moz-transform:scale(2.5);-webkit-transform:scale(2.5);-o-transform:scale(2.5);color:#0686fd}.fileinput-button input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)'}.pic-droplist{height:24px;color:#e0e1e2;background-color:#e0e1e2}.pic-droplist input-group{display:table-cell;width:100px;text-align:center;border:0}.pic-droplist input-group div{border:0}.pic-droplist input-group div div,.pic-droplist input-group div input{background-color:#e0e1e2}.pic_list{padding:0;height:420px;overflow-y:auto;overflow-x:hidden}.pic_list ul{padding:0;list-style:none;width:100%;margin:20px 0 0 20px}.pic_list ul li{height:180px;width:135px;margin:8px 0 8px 12px;float:left;overflow:hidden;align-items:center;position:relative}.pic_list ul li div{width:135px;height:160px;margin:auto;display:table-cell;vertical-align:middle;text-align:center;position:relative}.pic_list ul li div img{max-width:120px;max-height:118px;align-items:center;margin:auto;vertical-align:middle;text-align:center}.pic_list ul li span.filename{width:100px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue_list{display:block;height:420px;overflow-y:auto}.file_list{list-style:none;margin:0;padding:0;overflow-x:hidden;overflow-y:auto}.file_list li{height:50px;line-height:35px;font-size:16px;position:relative}.file_list li button{float:right;top:6px;right:10px;width:20px}.file_list li p.title{padding:0 0 0 6px;margin:0 210px 0 0}.file_list li p.size{position:absolute;width:100px;top:0;right:100px}"]
|
|
1198
1369
|
}] }
|
|
1199
1370
|
];
|
|
@@ -1340,11 +1511,12 @@ DownloadService.ctorParameters = () => [];
|
|
|
1340
1511
|
* @fileoverview added by tsickle
|
|
1341
1512
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1342
1513
|
*/
|
|
1514
|
+
const ɵ0$1 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
1343
1515
|
class UploadModule {
|
|
1344
1516
|
}
|
|
1345
1517
|
UploadModule.decorators = [
|
|
1346
1518
|
{ type: NgModule, args: [{
|
|
1347
|
-
declarations: [FileUploadComponent],
|
|
1519
|
+
declarations: [FileUploadComponent, LocalLangPipe],
|
|
1348
1520
|
imports: [
|
|
1349
1521
|
CommonModule,
|
|
1350
1522
|
ButtonsModule,
|
|
@@ -1357,7 +1529,8 @@ UploadModule.decorators = [
|
|
|
1357
1529
|
],
|
|
1358
1530
|
exports: [FileUploadComponent],
|
|
1359
1531
|
entryComponents: [FileUploadComponent],
|
|
1360
|
-
providers: [UploadService, DownloadService
|
|
1532
|
+
providers: [UploadService, DownloadService, LanguageService,
|
|
1533
|
+
{ provide: LOCALE_ID, useValue: ɵ0$1 },]
|
|
1361
1534
|
},] }
|
|
1362
1535
|
];
|
|
1363
1536
|
/** @type {?} */
|
|
@@ -1443,6 +1616,11 @@ class UploadDialogService {
|
|
|
1443
1616
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
1444
1617
|
this.injector = injector;
|
|
1445
1618
|
this.fileInfoList = [];
|
|
1619
|
+
if (this.injector) {
|
|
1620
|
+
this.modalService = this.injector.get(BsModalService);
|
|
1621
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
1622
|
+
this.localpipe = new LocalLangPipe(this.localeid);
|
|
1623
|
+
}
|
|
1446
1624
|
}
|
|
1447
1625
|
/**
|
|
1448
1626
|
* @param {?} formId
|
|
@@ -1464,11 +1642,11 @@ class UploadDialogService {
|
|
|
1464
1642
|
viewerRef.instance.rootId = rootId;
|
|
1465
1643
|
viewerRef.instance.formId = formId;
|
|
1466
1644
|
this.dlg = this.modalService.show(viewerRef, {
|
|
1467
|
-
title: '
|
|
1645
|
+
title: this.localpipe.transform('uploadFile'),
|
|
1468
1646
|
width: 950, height: 570,
|
|
1469
1647
|
buttons: [
|
|
1470
1648
|
{
|
|
1471
|
-
text: '
|
|
1649
|
+
text: this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
|
|
1472
1650
|
* @return {?}
|
|
1473
1651
|
*/
|
|
1474
1652
|
() => {
|
|
@@ -1486,7 +1664,7 @@ class UploadDialogService {
|
|
|
1486
1664
|
})
|
|
1487
1665
|
},
|
|
1488
1666
|
{
|
|
1489
|
-
text: '
|
|
1667
|
+
text: this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
|
|
1490
1668
|
* @return {?}
|
|
1491
1669
|
*/
|
|
1492
1670
|
() => {
|
|
@@ -1544,11 +1722,11 @@ class UploadDialogService {
|
|
|
1544
1722
|
uploadRef.instance.formId = formId;
|
|
1545
1723
|
uploadRef.instance.oldIdList = oldIdList;
|
|
1546
1724
|
this.dlg = this.modalService.show(uploadRef, {
|
|
1547
|
-
title: '
|
|
1725
|
+
title: this.localpipe.transform('uploadFile'),
|
|
1548
1726
|
width: 950, height: 570,
|
|
1549
1727
|
buttons: [
|
|
1550
1728
|
{
|
|
1551
|
-
text: '
|
|
1729
|
+
text: this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
|
|
1552
1730
|
* @return {?}
|
|
1553
1731
|
*/
|
|
1554
1732
|
() => {
|
|
@@ -1566,7 +1744,7 @@ class UploadDialogService {
|
|
|
1566
1744
|
})
|
|
1567
1745
|
},
|
|
1568
1746
|
{
|
|
1569
|
-
text: '
|
|
1747
|
+
text: this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
|
|
1570
1748
|
* @return {?}
|
|
1571
1749
|
*/
|
|
1572
1750
|
() => {
|
|
@@ -1664,6 +1842,6 @@ class FileInfo {
|
|
|
1664
1842
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1665
1843
|
*/
|
|
1666
1844
|
|
|
1667
|
-
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes };
|
|
1845
|
+
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 };
|
|
1668
1846
|
|
|
1669
1847
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|