@gsp-svc/formdoc-upload 0.1.27 → 0.1.30
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 +190 -23
- 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 +2 -1
- 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/file-upload/file-upload.component.js +30 -16
- package/esm2015/lib/upload/upload.module.js +9 -4
- package/esm2015/lib/uploaddialog.service.js +18 -8
- package/esm5/gsp-svc-formdoc-upload.js +2 -1
- 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/file-upload/file-upload.component.js +30 -16
- package/esm5/lib/upload/upload.module.js +9 -4
- package/esm5/lib/uploaddialog.service.js +18 -8
- package/fesm2015/gsp-svc-formdoc-upload.js +188 -26
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +190 -26
- 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/file-upload/file-upload.component.d.ts +6 -0
- package/lib/uploaddialog.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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, Injector, ComponentFactoryResolver, ViewChild, Input, defineInjectable } from '@angular/core';
|
|
15
15
|
import { BsModalService } from '@farris/ui-modal';
|
|
16
16
|
import { of as of$1 } from 'rxjs';
|
|
17
17
|
import { HttpClientModule } from '@angular/common/http';
|
|
@@ -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;
|
|
@@ -458,6 +461,153 @@ var FileState = {
|
|
|
458
461
|
FileState[FileState.New] = 'New';
|
|
459
462
|
FileState[FileState.Update] = 'Update';
|
|
460
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
|
+
|
|
461
611
|
/**
|
|
462
612
|
* @fileoverview added by tsickle
|
|
463
613
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -500,10 +650,15 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
500
650
|
this.oldUploadedFileList = [];
|
|
501
651
|
//uploadedNameList = [];
|
|
502
652
|
this.sameNameAllowed = true;
|
|
653
|
+
this.checkboxPos = { top: '0px' };
|
|
503
654
|
this.fileType = "*";
|
|
504
655
|
this.fileCount = 0;
|
|
505
656
|
this.oldIdList = [];
|
|
506
657
|
this.exStorageFileList = [];
|
|
658
|
+
if (this.injector) {
|
|
659
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
660
|
+
this.localepipe = new LocalLangPipe(this.localeid);
|
|
661
|
+
}
|
|
507
662
|
}
|
|
508
663
|
/**
|
|
509
664
|
* @return {?}
|
|
@@ -513,6 +668,8 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
513
668
|
*/
|
|
514
669
|
function () {
|
|
515
670
|
var _this = this;
|
|
671
|
+
if (navigator.userAgent.indexOf('Firefox') >= 0)
|
|
672
|
+
this.checkboxPos.top = '14px';
|
|
516
673
|
//if (this.storageService != null) {
|
|
517
674
|
this.uploadService.getStorageExtensionInfo().subscribe((/**
|
|
518
675
|
* @param {?} res
|
|
@@ -574,7 +731,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
574
731
|
var _this = this;
|
|
575
732
|
/** @type {?} */
|
|
576
733
|
var loading = this.loadService.show({
|
|
577
|
-
message: '
|
|
734
|
+
message: this.localepipe.transform('uploading')
|
|
578
735
|
});
|
|
579
736
|
this.hasSelectedFile = true;
|
|
580
737
|
this.selectedFiles = document.querySelector('#file');
|
|
@@ -582,7 +739,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
582
739
|
if (this.selectedFiles.files.length + this.files.length > this.fileCount) {
|
|
583
740
|
/** @type {?} */
|
|
584
741
|
var selectedNum = ((/** @type {?} */ (this.selectedFiles.files.length))) + this.files.length;
|
|
585
|
-
this.msgService.warning('
|
|
742
|
+
this.msgService.warning(this.localepipe.transform('selectedCount') + selectedNum + this.localepipe.transform('limitCount') + this.fileCount + this.localepipe.transform('rechooseFile'));
|
|
586
743
|
return;
|
|
587
744
|
}
|
|
588
745
|
}
|
|
@@ -604,11 +761,11 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
604
761
|
// this.uploadFile(uuid, selectedFile);
|
|
605
762
|
// })
|
|
606
763
|
/** @type {?} */
|
|
607
|
-
var msg_1 = this_1.msgService.show('warning', '
|
|
764
|
+
var msg_1 = this_1.msgService.show('warning', this_1.localepipe.transform('haveSameName') + selectedFile.name, {
|
|
608
765
|
initialState: {
|
|
609
766
|
buttons: [
|
|
610
767
|
{
|
|
611
|
-
text: '
|
|
768
|
+
text: this_1.localepipe.transform('rename'),
|
|
612
769
|
cls: 'btn btn-secondary',
|
|
613
770
|
handle: (/**
|
|
614
771
|
* @return {?}
|
|
@@ -639,7 +796,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
639
796
|
})
|
|
640
797
|
},
|
|
641
798
|
{
|
|
642
|
-
text: '
|
|
799
|
+
text: this_1.localepipe.transform('replace'),
|
|
643
800
|
cls: 'btn btn-secondary',
|
|
644
801
|
handle: (/**
|
|
645
802
|
* @return {?}
|
|
@@ -668,7 +825,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
668
825
|
})
|
|
669
826
|
},
|
|
670
827
|
{
|
|
671
|
-
text: '
|
|
828
|
+
text: this_1.localepipe.transform('cancel'),
|
|
672
829
|
cls: 'btn btn-secondary',
|
|
673
830
|
handle: (/**
|
|
674
831
|
* @return {?}
|
|
@@ -708,14 +865,14 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
708
865
|
if (this.errFileList.length > 0) {
|
|
709
866
|
/** @type {?} */
|
|
710
867
|
var name_1 = this.listToString(this.errFileList);
|
|
711
|
-
this.msgService.warning('
|
|
868
|
+
this.msgService.warning(this.localepipe.transform('haveSameName') + name_1 + this.localepipe.transform('rechooseFile'));
|
|
712
869
|
this.errFileList = [];
|
|
713
870
|
}
|
|
714
871
|
if (this.nullFileList.length > 0) {
|
|
715
872
|
/** @type {?} */
|
|
716
873
|
var name_2 = this.listToString(this.nullFileList);
|
|
717
874
|
name_2 = name_2.substring(0, name_2.length - 1);
|
|
718
|
-
this.msgService.warning(
|
|
875
|
+
this.msgService.warning(name_2 + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
|
|
719
876
|
this.nullFileList = [];
|
|
720
877
|
}
|
|
721
878
|
// if (this.errTypeList.length > 0) {
|
|
@@ -737,7 +894,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
737
894
|
* @return {?}
|
|
738
895
|
*/
|
|
739
896
|
function (file) {
|
|
740
|
-
this.msgService.error('
|
|
897
|
+
this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
|
|
741
898
|
};
|
|
742
899
|
/**
|
|
743
900
|
* @param {?} uuid
|
|
@@ -1229,7 +1386,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1229
1386
|
// this.notifyService.success(<NotifyOptions>{
|
|
1230
1387
|
// msg: '保存成功!', timeout: 3000
|
|
1231
1388
|
// });
|
|
1232
|
-
this.msgService.warning('
|
|
1389
|
+
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1233
1390
|
return of$1(false);
|
|
1234
1391
|
}
|
|
1235
1392
|
if (this.storageExtension == null)
|
|
@@ -1240,15 +1397,15 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1240
1397
|
else {
|
|
1241
1398
|
/** @type {?} */
|
|
1242
1399
|
var loading_1 = this.loadService.show({
|
|
1243
|
-
message: '
|
|
1400
|
+
message: this.localepipe.transform('saveTo') + this.storageExtension.extensionName
|
|
1244
1401
|
});
|
|
1245
1402
|
return this.uploadService.changeStorageInstance(this.exStorageFileList, this.rootId).pipe(map((/**
|
|
1246
1403
|
* @param {?} res
|
|
1247
1404
|
* @return {?}
|
|
1248
1405
|
*/
|
|
1249
1406
|
function (res) {
|
|
1250
|
-
if (res != null)
|
|
1251
|
-
|
|
1407
|
+
// if (res != null)
|
|
1408
|
+
// this.msgService.error('保存到' + this.storageExtension.extensionName + "失败,上传文件自动保存到" + this.storageExtension.defaultPropertyName + "存储。" + res.error.Message);
|
|
1252
1409
|
loading_1.close();
|
|
1253
1410
|
return _this.uploadFileInfoList;
|
|
1254
1411
|
})));
|
|
@@ -1378,7 +1535,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1378
1535
|
FileUploadComponent.decorators = [
|
|
1379
1536
|
{ type: Component, args: [{
|
|
1380
1537
|
selector: 'app-file-upload',
|
|
1381
|
-
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>",
|
|
1538
|
+
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;\" [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\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
|
|
1382
1539
|
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}"]
|
|
1383
1540
|
}] }
|
|
1384
1541
|
];
|
|
@@ -1570,12 +1727,13 @@ var DownloadService = /** @class */ (function () {
|
|
|
1570
1727
|
* @fileoverview added by tsickle
|
|
1571
1728
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1572
1729
|
*/
|
|
1730
|
+
var ɵ0$1 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
1573
1731
|
var UploadModule = /** @class */ (function () {
|
|
1574
1732
|
function UploadModule() {
|
|
1575
1733
|
}
|
|
1576
1734
|
UploadModule.decorators = [
|
|
1577
1735
|
{ type: NgModule, args: [{
|
|
1578
|
-
declarations: [FileUploadComponent],
|
|
1736
|
+
declarations: [FileUploadComponent, LocalLangPipe],
|
|
1579
1737
|
imports: [
|
|
1580
1738
|
CommonModule,
|
|
1581
1739
|
ButtonsModule,
|
|
@@ -1588,7 +1746,8 @@ var UploadModule = /** @class */ (function () {
|
|
|
1588
1746
|
],
|
|
1589
1747
|
exports: [FileUploadComponent],
|
|
1590
1748
|
entryComponents: [FileUploadComponent],
|
|
1591
|
-
providers: [UploadService, DownloadService
|
|
1749
|
+
providers: [UploadService, DownloadService, LanguageService,
|
|
1750
|
+
{ provide: LOCALE_ID, useValue: ɵ0$1 },]
|
|
1592
1751
|
},] }
|
|
1593
1752
|
];
|
|
1594
1753
|
return UploadModule;
|
|
@@ -1676,6 +1835,11 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1676
1835
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
1677
1836
|
this.injector = injector;
|
|
1678
1837
|
this.fileInfoList = [];
|
|
1838
|
+
if (this.injector) {
|
|
1839
|
+
this.modalService = this.injector.get(BsModalService);
|
|
1840
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
1841
|
+
this.localpipe = new LocalLangPipe(this.localeid);
|
|
1842
|
+
}
|
|
1679
1843
|
}
|
|
1680
1844
|
/**
|
|
1681
1845
|
* @param {?} formId
|
|
@@ -1703,11 +1867,11 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1703
1867
|
viewerRef.instance.rootId = rootId;
|
|
1704
1868
|
viewerRef.instance.formId = formId;
|
|
1705
1869
|
_this.dlg = _this.modalService.show(viewerRef, {
|
|
1706
|
-
title: '
|
|
1870
|
+
title: _this.localpipe.transform('uploadFile'),
|
|
1707
1871
|
width: 950, height: 570,
|
|
1708
1872
|
buttons: [
|
|
1709
1873
|
{
|
|
1710
|
-
text: '
|
|
1874
|
+
text: _this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
|
|
1711
1875
|
* @return {?}
|
|
1712
1876
|
*/
|
|
1713
1877
|
function () {
|
|
@@ -1725,7 +1889,7 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1725
1889
|
})
|
|
1726
1890
|
},
|
|
1727
1891
|
{
|
|
1728
|
-
text: '
|
|
1892
|
+
text: _this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
|
|
1729
1893
|
* @return {?}
|
|
1730
1894
|
*/
|
|
1731
1895
|
function () {
|
|
@@ -1799,11 +1963,11 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1799
1963
|
uploadRef.instance.formId = formId;
|
|
1800
1964
|
uploadRef.instance.oldIdList = oldIdList;
|
|
1801
1965
|
_this.dlg = _this.modalService.show(uploadRef, {
|
|
1802
|
-
title: '
|
|
1966
|
+
title: _this.localpipe.transform('uploadFile'),
|
|
1803
1967
|
width: 950, height: 570,
|
|
1804
1968
|
buttons: [
|
|
1805
1969
|
{
|
|
1806
|
-
text: '
|
|
1970
|
+
text: _this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: (/**
|
|
1807
1971
|
* @return {?}
|
|
1808
1972
|
*/
|
|
1809
1973
|
function () {
|
|
@@ -1821,7 +1985,7 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1821
1985
|
})
|
|
1822
1986
|
},
|
|
1823
1987
|
{
|
|
1824
|
-
text: '
|
|
1988
|
+
text: _this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: (/**
|
|
1825
1989
|
* @return {?}
|
|
1826
1990
|
*/
|
|
1827
1991
|
function () {
|
|
@@ -1933,6 +2097,6 @@ var FileInfo = /** @class */ (function () {
|
|
|
1933
2097
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1934
2098
|
*/
|
|
1935
2099
|
|
|
1936
|
-
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState };
|
|
2100
|
+
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 };
|
|
1937
2101
|
|
|
1938
2102
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|