@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
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
* @fileoverview added by tsickle
|
|
53
53
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
54
54
|
*/
|
|
55
|
+
var ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
55
56
|
var FormdocUploadModule = /** @class */ (function () {
|
|
56
57
|
function FormdocUploadModule() {
|
|
57
58
|
}
|
|
@@ -59,7 +60,9 @@
|
|
|
59
60
|
{ type: i0.NgModule, args: [{
|
|
60
61
|
declarations: [FormdocUploadComponent],
|
|
61
62
|
imports: [],
|
|
62
|
-
exports: [FormdocUploadComponent]
|
|
63
|
+
exports: [FormdocUploadComponent],
|
|
64
|
+
providers: [cafCommon.LanguageService,
|
|
65
|
+
{ provide: i0.LOCALE_ID, useValue: ɵ0 },]
|
|
63
66
|
},] }
|
|
64
67
|
];
|
|
65
68
|
return FormdocUploadModule;
|
|
@@ -433,6 +436,155 @@
|
|
|
433
436
|
FileState[FileState.New] = 'New';
|
|
434
437
|
FileState[FileState.Update] = 'Update';
|
|
435
438
|
|
|
439
|
+
/**
|
|
440
|
+
* @fileoverview added by tsickle
|
|
441
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
442
|
+
*/
|
|
443
|
+
/** @type {?} */
|
|
444
|
+
var LANG_RESOURCES = {
|
|
445
|
+
'zh-CHS': {
|
|
446
|
+
'uploadFile': '上传文件',
|
|
447
|
+
'uploading': '正在上传文件……',
|
|
448
|
+
'selectedCount': '已选择文件数量:',
|
|
449
|
+
'limitCount': '超出系统限制数量:',
|
|
450
|
+
'rechooseFile': ',重新选择上传文件。',
|
|
451
|
+
'save': '保存',
|
|
452
|
+
'cancel': '取消',
|
|
453
|
+
'haveSameName': '已上传过同名文件: ',
|
|
454
|
+
'rename': '重命名',
|
|
455
|
+
'replace': '替换',
|
|
456
|
+
'sizeZero': '文件大小为0',
|
|
457
|
+
'uploadFailure': '上传失败',
|
|
458
|
+
'uploadSucceed': '上传成功',
|
|
459
|
+
'wait': '等一下,文档正在上传。',
|
|
460
|
+
'saveTo': '正在将文件保存到',
|
|
461
|
+
'delete': '删除',
|
|
462
|
+
'selectAll': '全选',
|
|
463
|
+
'selectNull': '全不选',
|
|
464
|
+
'detail': '详情',
|
|
465
|
+
'fileName': '文件名',
|
|
466
|
+
'state': '状态',
|
|
467
|
+
'operation': '操作',
|
|
468
|
+
'size': '大小',
|
|
469
|
+
'close': '关闭',
|
|
470
|
+
'loading': '拼命加载中'
|
|
471
|
+
},
|
|
472
|
+
'en-US': {
|
|
473
|
+
'uploadFile': 'Upload File',
|
|
474
|
+
'uploading': 'File Uploading……',
|
|
475
|
+
'selectedCount': 'Selected files count:',
|
|
476
|
+
'limitCount': 'System limit count:',
|
|
477
|
+
'rechooseFile': ',Reselect upload file.',
|
|
478
|
+
'save': 'Save',
|
|
479
|
+
'cancel': 'Cancel',
|
|
480
|
+
'haveSameName': 'A file with the same name has been uploaded: ',
|
|
481
|
+
'rename': 'Rename',
|
|
482
|
+
'replace': 'Replace',
|
|
483
|
+
'sizeZero': 'File size is 0',
|
|
484
|
+
'uploadFailure': 'Upload failed',
|
|
485
|
+
'uploadSucceed': 'Upload successfully',
|
|
486
|
+
'wait': 'Wait a minute, the file is uploading.',
|
|
487
|
+
'saveTo': 'Saving file to',
|
|
488
|
+
'delete': 'Delete',
|
|
489
|
+
'selectAll': 'Select all',
|
|
490
|
+
'selectNull': 'Not at all',
|
|
491
|
+
'detail': 'Details',
|
|
492
|
+
'fileName': 'Filename',
|
|
493
|
+
'state': 'State',
|
|
494
|
+
'operation': 'Operation',
|
|
495
|
+
'size': 'Size',
|
|
496
|
+
'close': 'Close',
|
|
497
|
+
'loading': 'Loading'
|
|
498
|
+
},
|
|
499
|
+
'en': {
|
|
500
|
+
'uploadFile': 'Upload File',
|
|
501
|
+
'uploading': 'File Uploading……',
|
|
502
|
+
'selectedCount': 'Selected files count:',
|
|
503
|
+
'limitCount': 'System limit count:',
|
|
504
|
+
'rechooseFile': ',Reselect upload file.',
|
|
505
|
+
'save': 'Save',
|
|
506
|
+
'cancel': 'Cancel',
|
|
507
|
+
'haveSameName': 'A file with the same name has been uploaded: ',
|
|
508
|
+
'rename': 'Rename',
|
|
509
|
+
'replace': 'Replace',
|
|
510
|
+
'sizeZero': 'File size is 0',
|
|
511
|
+
'uploadFailure': 'Upload failed',
|
|
512
|
+
'uploadSucceed': 'Upload successfully',
|
|
513
|
+
'wait': 'Wait a minute, the file is uploading.',
|
|
514
|
+
'saveTo': 'Saving file to',
|
|
515
|
+
'delete': 'Delete',
|
|
516
|
+
'selectAll': 'Select all',
|
|
517
|
+
'selectNull': 'Not at all',
|
|
518
|
+
'detail': 'Details',
|
|
519
|
+
'fileName': 'Filename',
|
|
520
|
+
'state': 'State',
|
|
521
|
+
'operation': 'Operation',
|
|
522
|
+
'size': 'Size',
|
|
523
|
+
'close': 'Close',
|
|
524
|
+
'loading': 'Loading'
|
|
525
|
+
},
|
|
526
|
+
'zh-CHT': {
|
|
527
|
+
'uploadFile': '上傳文件',
|
|
528
|
+
'uploading': '正在上傳文件……',
|
|
529
|
+
'selectedCount': '已選擇文件數量:',
|
|
530
|
+
'limitCount': '超出系統限制數量:',
|
|
531
|
+
'rechooseFile': ',重新選擇上傳文件。',
|
|
532
|
+
'save': '保存',
|
|
533
|
+
'cancel': '取消',
|
|
534
|
+
'haveSameName': '已上傳過同名文件: ',
|
|
535
|
+
'rename': '重命名',
|
|
536
|
+
'replace': '替換',
|
|
537
|
+
'sizeZero': '文件大小為0',
|
|
538
|
+
'uploadFailure': '上傳失敗',
|
|
539
|
+
'uploadSucceed': '上傳成功',
|
|
540
|
+
'wait': '等一下,文件正在上傳。',
|
|
541
|
+
'saveTo': '正在將文件保存到',
|
|
542
|
+
'delete': '删除',
|
|
543
|
+
'selectAll': '全選',
|
|
544
|
+
'selectNull': '全不選',
|
|
545
|
+
'detail': '詳情',
|
|
546
|
+
'fileName': '文件名',
|
|
547
|
+
'state': '狀態',
|
|
548
|
+
'operation': '操作',
|
|
549
|
+
'size': '大小',
|
|
550
|
+
'close': '關閉',
|
|
551
|
+
'loading': '拼命加載中'
|
|
552
|
+
},
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @fileoverview added by tsickle
|
|
557
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
558
|
+
*/
|
|
559
|
+
var LocalLangPipe = /** @class */ (function () {
|
|
560
|
+
function LocalLangPipe(localeId) {
|
|
561
|
+
this.defaultLang = "zh-CHS";
|
|
562
|
+
this.langCode = localStorage.getItem("languageCode") || localeId || this.defaultLang;
|
|
563
|
+
this.lang = LANG_RESOURCES[this.langCode] || LANG_RESOURCES[this.defaultLang];
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* @param {?} name
|
|
567
|
+
* @return {?}
|
|
568
|
+
*/
|
|
569
|
+
LocalLangPipe.prototype.transform = /**
|
|
570
|
+
* @param {?} name
|
|
571
|
+
* @return {?}
|
|
572
|
+
*/
|
|
573
|
+
function (name) {
|
|
574
|
+
return this.lang[name] || name;
|
|
575
|
+
};
|
|
576
|
+
LocalLangPipe.decorators = [
|
|
577
|
+
{ type: i0.Pipe, args: [{ name: 'locale' },] }
|
|
578
|
+
];
|
|
579
|
+
/** @nocollapse */
|
|
580
|
+
LocalLangPipe.ctorParameters = function () {
|
|
581
|
+
return [
|
|
582
|
+
{ type: String, decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
|
|
583
|
+
];
|
|
584
|
+
};
|
|
585
|
+
return LocalLangPipe;
|
|
586
|
+
}());
|
|
587
|
+
|
|
436
588
|
/**
|
|
437
589
|
* @fileoverview added by tsickle
|
|
438
590
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -475,10 +627,15 @@
|
|
|
475
627
|
this.oldUploadedFileList = [];
|
|
476
628
|
//uploadedNameList = [];
|
|
477
629
|
this.sameNameAllowed = true;
|
|
630
|
+
this.checkboxPos = { top: '0px' };
|
|
478
631
|
this.fileType = "*";
|
|
479
632
|
this.fileCount = 0;
|
|
480
633
|
this.oldIdList = [];
|
|
481
634
|
this.exStorageFileList = [];
|
|
635
|
+
if (this.injector) {
|
|
636
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(i0.LOCALE_ID);
|
|
637
|
+
this.localepipe = new LocalLangPipe(this.localeid);
|
|
638
|
+
}
|
|
482
639
|
}
|
|
483
640
|
/**
|
|
484
641
|
* @return {?}
|
|
@@ -488,6 +645,8 @@
|
|
|
488
645
|
*/
|
|
489
646
|
function () {
|
|
490
647
|
var _this = this;
|
|
648
|
+
if (navigator.userAgent.indexOf('Firefox') >= 0)
|
|
649
|
+
this.checkboxPos.top = '14px';
|
|
491
650
|
//if (this.storageService != null) {
|
|
492
651
|
this.uploadService.getStorageExtensionInfo().subscribe(( /**
|
|
493
652
|
* @param {?} res
|
|
@@ -545,7 +704,7 @@
|
|
|
545
704
|
var _this = this;
|
|
546
705
|
/** @type {?} */
|
|
547
706
|
var loading = this.loadService.show({
|
|
548
|
-
message: '
|
|
707
|
+
message: this.localepipe.transform('uploading')
|
|
549
708
|
});
|
|
550
709
|
this.hasSelectedFile = true;
|
|
551
710
|
this.selectedFiles = document.querySelector('#file');
|
|
@@ -553,7 +712,7 @@
|
|
|
553
712
|
if (this.selectedFiles.files.length + this.files.length > this.fileCount) {
|
|
554
713
|
/** @type {?} */
|
|
555
714
|
var selectedNum = (( /** @type {?} */(this.selectedFiles.files.length))) + this.files.length;
|
|
556
|
-
this.msgService.warning('
|
|
715
|
+
this.msgService.warning(this.localepipe.transform('selectedCount') + selectedNum + this.localepipe.transform('limitCount') + this.fileCount + this.localepipe.transform('rechooseFile'));
|
|
557
716
|
return;
|
|
558
717
|
}
|
|
559
718
|
}
|
|
@@ -574,11 +733,11 @@
|
|
|
574
733
|
// this.uploadFile(uuid, selectedFile);
|
|
575
734
|
// })
|
|
576
735
|
/** @type {?} */
|
|
577
|
-
var msg_1 = this_1.msgService.show('warning', '
|
|
736
|
+
var msg_1 = this_1.msgService.show('warning', this_1.localepipe.transform('haveSameName') + selectedFile.name, {
|
|
578
737
|
initialState: {
|
|
579
738
|
buttons: [
|
|
580
739
|
{
|
|
581
|
-
text: '
|
|
740
|
+
text: this_1.localepipe.transform('rename'),
|
|
582
741
|
cls: 'btn btn-secondary',
|
|
583
742
|
handle: ( /**
|
|
584
743
|
* @return {?}
|
|
@@ -607,7 +766,7 @@
|
|
|
607
766
|
})
|
|
608
767
|
},
|
|
609
768
|
{
|
|
610
|
-
text: '
|
|
769
|
+
text: this_1.localepipe.transform('replace'),
|
|
611
770
|
cls: 'btn btn-secondary',
|
|
612
771
|
handle: ( /**
|
|
613
772
|
* @return {?}
|
|
@@ -632,7 +791,7 @@
|
|
|
632
791
|
})
|
|
633
792
|
},
|
|
634
793
|
{
|
|
635
|
-
text: '
|
|
794
|
+
text: this_1.localepipe.transform('cancel'),
|
|
636
795
|
cls: 'btn btn-secondary',
|
|
637
796
|
handle: ( /**
|
|
638
797
|
* @return {?}
|
|
@@ -671,14 +830,14 @@
|
|
|
671
830
|
if (this.errFileList.length > 0) {
|
|
672
831
|
/** @type {?} */
|
|
673
832
|
var name_1 = this.listToString(this.errFileList);
|
|
674
|
-
this.msgService.warning('
|
|
833
|
+
this.msgService.warning(this.localepipe.transform('haveSameName') + name_1 + this.localepipe.transform('rechooseFile'));
|
|
675
834
|
this.errFileList = [];
|
|
676
835
|
}
|
|
677
836
|
if (this.nullFileList.length > 0) {
|
|
678
837
|
/** @type {?} */
|
|
679
838
|
var name_2 = this.listToString(this.nullFileList);
|
|
680
839
|
name_2 = name_2.substring(0, name_2.length - 1);
|
|
681
|
-
this.msgService.warning(
|
|
840
|
+
this.msgService.warning(name_2 + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
|
|
682
841
|
this.nullFileList = [];
|
|
683
842
|
}
|
|
684
843
|
// if (this.errTypeList.length > 0) {
|
|
@@ -700,7 +859,7 @@
|
|
|
700
859
|
* @return {?}
|
|
701
860
|
*/
|
|
702
861
|
function (file) {
|
|
703
|
-
this.msgService.error('
|
|
862
|
+
this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
|
|
704
863
|
};
|
|
705
864
|
/**
|
|
706
865
|
* @param {?} uuid
|
|
@@ -1177,7 +1336,7 @@
|
|
|
1177
1336
|
// this.notifyService.success(<NotifyOptions>{
|
|
1178
1337
|
// msg: '保存成功!', timeout: 3000
|
|
1179
1338
|
// });
|
|
1180
|
-
this.msgService.warning('
|
|
1339
|
+
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1181
1340
|
return rxjs.of(false);
|
|
1182
1341
|
}
|
|
1183
1342
|
if (this.storageExtension == null)
|
|
@@ -1188,14 +1347,14 @@
|
|
|
1188
1347
|
else {
|
|
1189
1348
|
/** @type {?} */
|
|
1190
1349
|
var loading_1 = this.loadService.show({
|
|
1191
|
-
message: '
|
|
1350
|
+
message: this.localepipe.transform('saveTo') + this.storageExtension.extensionName
|
|
1192
1351
|
});
|
|
1193
1352
|
return this.uploadService.changeStorageInstance(this.exStorageFileList, this.rootId).pipe(operators.map(( /**
|
|
1194
1353
|
* @param {?} res
|
|
1195
1354
|
* @return {?}
|
|
1196
1355
|
*/function (res) {
|
|
1197
|
-
if (res != null)
|
|
1198
|
-
|
|
1356
|
+
// if (res != null)
|
|
1357
|
+
// this.msgService.error('保存到' + this.storageExtension.extensionName + "失败,上传文件自动保存到" + this.storageExtension.defaultPropertyName + "存储。" + res.error.Message);
|
|
1199
1358
|
loading_1.close();
|
|
1200
1359
|
return _this.uploadFileInfoList;
|
|
1201
1360
|
})));
|
|
@@ -1322,7 +1481,7 @@
|
|
|
1322
1481
|
FileUploadComponent.decorators = [
|
|
1323
1482
|
{ type: i0.Component, args: [{
|
|
1324
1483
|
selector: 'app-file-upload',
|
|
1325
|
-
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>",
|
|
1484
|
+
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>",
|
|
1326
1485
|
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}"]
|
|
1327
1486
|
}] }
|
|
1328
1487
|
];
|
|
@@ -1516,12 +1675,13 @@
|
|
|
1516
1675
|
* @fileoverview added by tsickle
|
|
1517
1676
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1518
1677
|
*/
|
|
1678
|
+
var ɵ0$1 = localStorage.getItem('languageCode') || 'zh-CHS';
|
|
1519
1679
|
var UploadModule = /** @class */ (function () {
|
|
1520
1680
|
function UploadModule() {
|
|
1521
1681
|
}
|
|
1522
1682
|
UploadModule.decorators = [
|
|
1523
1683
|
{ type: i0.NgModule, args: [{
|
|
1524
|
-
declarations: [FileUploadComponent],
|
|
1684
|
+
declarations: [FileUploadComponent, LocalLangPipe],
|
|
1525
1685
|
imports: [
|
|
1526
1686
|
common.CommonModule,
|
|
1527
1687
|
kendoAngularButtons.ButtonsModule,
|
|
@@ -1534,7 +1694,8 @@
|
|
|
1534
1694
|
],
|
|
1535
1695
|
exports: [FileUploadComponent],
|
|
1536
1696
|
entryComponents: [FileUploadComponent],
|
|
1537
|
-
providers: [UploadService, DownloadService
|
|
1697
|
+
providers: [UploadService, DownloadService, cafCommon.LanguageService,
|
|
1698
|
+
{ provide: i0.LOCALE_ID, useValue: ɵ0$1 },]
|
|
1538
1699
|
},] }
|
|
1539
1700
|
];
|
|
1540
1701
|
return UploadModule;
|
|
@@ -1622,6 +1783,11 @@
|
|
|
1622
1783
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
1623
1784
|
this.injector = injector;
|
|
1624
1785
|
this.fileInfoList = [];
|
|
1786
|
+
if (this.injector) {
|
|
1787
|
+
this.modalService = this.injector.get(uiModal.BsModalService);
|
|
1788
|
+
this.localeid = localStorage.getItem("languageCode") || this.injector.get(i0.LOCALE_ID);
|
|
1789
|
+
this.localpipe = new LocalLangPipe(this.localeid);
|
|
1790
|
+
}
|
|
1625
1791
|
}
|
|
1626
1792
|
/**
|
|
1627
1793
|
* @param {?} formId
|
|
@@ -1648,11 +1814,11 @@
|
|
|
1648
1814
|
viewerRef.instance.rootId = rootId;
|
|
1649
1815
|
viewerRef.instance.formId = formId;
|
|
1650
1816
|
_this.dlg = _this.modalService.show(viewerRef, {
|
|
1651
|
-
title: '
|
|
1817
|
+
title: _this.localpipe.transform('uploadFile'),
|
|
1652
1818
|
width: 950, height: 570,
|
|
1653
1819
|
buttons: [
|
|
1654
1820
|
{
|
|
1655
|
-
text: '
|
|
1821
|
+
text: _this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: ( /**
|
|
1656
1822
|
* @return {?}
|
|
1657
1823
|
*/function () {
|
|
1658
1824
|
_this.dlg.content.upload().subscribe(( /**
|
|
@@ -1668,7 +1834,7 @@
|
|
|
1668
1834
|
})
|
|
1669
1835
|
},
|
|
1670
1836
|
{
|
|
1671
|
-
text: '
|
|
1837
|
+
text: _this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: ( /**
|
|
1672
1838
|
* @return {?}
|
|
1673
1839
|
*/function () {
|
|
1674
1840
|
_this.dlg.close();
|
|
@@ -1743,11 +1909,11 @@
|
|
|
1743
1909
|
uploadRef.instance.formId = formId;
|
|
1744
1910
|
uploadRef.instance.oldIdList = oldIdList;
|
|
1745
1911
|
_this.dlg = _this.modalService.show(uploadRef, {
|
|
1746
|
-
title: '
|
|
1912
|
+
title: _this.localpipe.transform('uploadFile'),
|
|
1747
1913
|
width: 950, height: 570,
|
|
1748
1914
|
buttons: [
|
|
1749
1915
|
{
|
|
1750
|
-
text: '
|
|
1916
|
+
text: _this.localpipe.transform('save'), cls: 'k-button k-button-icontext k-primary', handle: ( /**
|
|
1751
1917
|
* @return {?}
|
|
1752
1918
|
*/function () {
|
|
1753
1919
|
_this.dlg.content.upload().subscribe(( /**
|
|
@@ -1763,7 +1929,7 @@
|
|
|
1763
1929
|
})
|
|
1764
1930
|
},
|
|
1765
1931
|
{
|
|
1766
|
-
text: '
|
|
1932
|
+
text: _this.localpipe.transform('close'), cls: 'k-button k-button-icontext', handle: ( /**
|
|
1767
1933
|
* @return {?}
|
|
1768
1934
|
*/function () {
|
|
1769
1935
|
_this.dlg.close();
|
|
@@ -1897,6 +2063,7 @@
|
|
|
1897
2063
|
exports.FileInfo = FileInfo;
|
|
1898
2064
|
exports.OperatingModes = OperatingModes;
|
|
1899
2065
|
exports.FileState = FileState;
|
|
2066
|
+
exports.ɵb = LocalLangPipe;
|
|
1900
2067
|
|
|
1901
2068
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1902
2069
|
|