@gsp-svc/formdoc-upload 0.1.31 → 0.1.33
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 +184 -12
- 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 -2
- package/esm2015/lib/i18n/language.resource.js +5 -1
- package/esm2015/lib/upload/entity/expropertyrequest.js +15 -0
- package/esm2015/lib/upload/entity/fileinfo.js +5 -1
- package/esm2015/lib/upload/entity/gspdocsecuritynaseinfo.js +15 -0
- package/esm2015/lib/upload/entity/securityentity.js +17 -0
- package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm2015/lib/upload/entity/uploadlimit.js +4 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +94 -13
- package/esm2015/lib/upload/upload.service.js +71 -1
- package/esm2015/lib/uploaddialog.service.js +2 -1
- package/esm2015/public-api.js +4 -1
- package/esm5/gsp-svc-formdoc-upload.js +2 -2
- package/esm5/lib/i18n/language.resource.js +5 -1
- package/esm5/lib/upload/entity/expropertyrequest.js +19 -0
- package/esm5/lib/upload/entity/fileinfo.js +5 -1
- package/esm5/lib/upload/entity/gspdocsecuritynaseinfo.js +19 -0
- package/esm5/lib/upload/entity/securityentity.js +21 -0
- package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm5/lib/upload/entity/uploadlimit.js +4 -1
- package/esm5/lib/upload/file-upload/file-upload.component.js +99 -13
- package/esm5/lib/upload/upload.service.js +84 -1
- package/esm5/lib/uploaddialog.service.js +2 -1
- package/esm5/public-api.js +4 -1
- package/fesm2015/gsp-svc-formdoc-upload.js +171 -14
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +194 -14
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- package/lib/i18n/language.resource.d.ts +4 -0
- package/lib/upload/entity/expropertyrequest.d.ts +5 -0
- package/lib/upload/entity/fileinfo.d.ts +3 -0
- package/lib/upload/entity/gspdocsecuritynaseinfo.d.ts +5 -0
- package/lib/upload/entity/securityentity.d.ts +6 -0
- package/lib/upload/entity/uploadfileinfo.d.ts +2 -0
- package/lib/upload/entity/uploadlimit.d.ts +2 -0
- package/lib/upload/file-upload/file-upload.component.d.ts +9 -0
- package/lib/upload/upload.service.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -11,7 +11,7 @@ import { ProgressModule } from '@farris/ui-progress';
|
|
|
11
11
|
import { FormsModule } from '@angular/forms';
|
|
12
12
|
import { ComboListModule } from '@farris/ui-combo-list';
|
|
13
13
|
import { LanguageService, HttpService } from '@ecp-caf/caf-common';
|
|
14
|
-
import { Injectable, Pipe, Inject, LOCALE_ID, NgModule,
|
|
14
|
+
import { Injectable, Pipe, Inject, LOCALE_ID, NgModule, Injector, ComponentFactoryResolver, Component, 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';
|
|
@@ -331,6 +331,30 @@ var UploadService = /** @class */ (function () {
|
|
|
331
331
|
return of(error);
|
|
332
332
|
})));
|
|
333
333
|
};
|
|
334
|
+
/**
|
|
335
|
+
* @param {?} baseInfo
|
|
336
|
+
* @return {?}
|
|
337
|
+
*/
|
|
338
|
+
UploadService.prototype.getSecurityInfoList = /**
|
|
339
|
+
* @param {?} baseInfo
|
|
340
|
+
* @return {?}
|
|
341
|
+
*/
|
|
342
|
+
function (baseInfo) {
|
|
343
|
+
/** @type {?} */
|
|
344
|
+
var url = "/api/runtime/dfs/v1.0/storagestrategy/security";
|
|
345
|
+
url = url + "?id=" + baseInfo.securityId + "&level=" + baseInfo.securityLevel;
|
|
346
|
+
return this.http.get(url).pipe(tap((/**
|
|
347
|
+
* @param {?} res
|
|
348
|
+
* @return {?}
|
|
349
|
+
*/
|
|
350
|
+
function (res) { })), catchError((/**
|
|
351
|
+
* @param {?} error
|
|
352
|
+
* @return {?}
|
|
353
|
+
*/
|
|
354
|
+
function (error) {
|
|
355
|
+
return of(error);
|
|
356
|
+
})));
|
|
357
|
+
};
|
|
334
358
|
/**
|
|
335
359
|
* @param {?} storageInfoList
|
|
336
360
|
* @param {?} rootId
|
|
@@ -360,6 +384,42 @@ var UploadService = /** @class */ (function () {
|
|
|
360
384
|
return of(error);
|
|
361
385
|
})));
|
|
362
386
|
};
|
|
387
|
+
/**
|
|
388
|
+
* @param {?} uploadFileInfoList
|
|
389
|
+
* @param {?} rootId
|
|
390
|
+
* @return {?}
|
|
391
|
+
*/
|
|
392
|
+
UploadService.prototype.saveSecurityInfo = /**
|
|
393
|
+
* @param {?} uploadFileInfoList
|
|
394
|
+
* @param {?} rootId
|
|
395
|
+
* @return {?}
|
|
396
|
+
*/
|
|
397
|
+
function (uploadFileInfoList, rootId) {
|
|
398
|
+
/** @type {?} */
|
|
399
|
+
var url = "/api/runtime/dfs/v1.0/doc/exproperty";
|
|
400
|
+
/** @type {?} */
|
|
401
|
+
var reqList = [];
|
|
402
|
+
uploadFileInfoList.forEach((/**
|
|
403
|
+
* @param {?} element
|
|
404
|
+
* @return {?}
|
|
405
|
+
*/
|
|
406
|
+
function (element) {
|
|
407
|
+
/** @type {?} */
|
|
408
|
+
var request = { id: element.metadataId, rootId: rootId, exProperty: JSON.stringify(element.securityInfo) };
|
|
409
|
+
reqList.push(request);
|
|
410
|
+
}));
|
|
411
|
+
return this.http.post(url, reqList).pipe(tap((/**
|
|
412
|
+
* @param {?} res
|
|
413
|
+
* @return {?}
|
|
414
|
+
*/
|
|
415
|
+
function (res) { })), catchError((/**
|
|
416
|
+
* @param {?} error
|
|
417
|
+
* @return {?}
|
|
418
|
+
*/
|
|
419
|
+
function (error) {
|
|
420
|
+
return of(error);
|
|
421
|
+
})));
|
|
422
|
+
};
|
|
363
423
|
/**
|
|
364
424
|
* @param {?} formId
|
|
365
425
|
* @param {?} rootId
|
|
@@ -409,6 +469,29 @@ var UploadService = /** @class */ (function () {
|
|
|
409
469
|
return of(error);
|
|
410
470
|
})));
|
|
411
471
|
};
|
|
472
|
+
/**
|
|
473
|
+
* @param {?} id
|
|
474
|
+
* @return {?}
|
|
475
|
+
*/
|
|
476
|
+
UploadService.prototype.getValidation = /**
|
|
477
|
+
* @param {?} id
|
|
478
|
+
* @return {?}
|
|
479
|
+
*/
|
|
480
|
+
function (id) {
|
|
481
|
+
/** @type {?} */
|
|
482
|
+
var url = "/api/runtime/dfs/v1.0/validation/" + id;
|
|
483
|
+
return this.http.get(url).pipe(tap((/**
|
|
484
|
+
* @param {?} res
|
|
485
|
+
* @return {?}
|
|
486
|
+
*/
|
|
487
|
+
function (res) { })), catchError((/**
|
|
488
|
+
* @param {?} error
|
|
489
|
+
* @return {?}
|
|
490
|
+
*/
|
|
491
|
+
function (error) {
|
|
492
|
+
return of(error);
|
|
493
|
+
})));
|
|
494
|
+
};
|
|
412
495
|
UploadService.decorators = [
|
|
413
496
|
{ type: Injectable }
|
|
414
497
|
];
|
|
@@ -479,6 +562,7 @@ var LANG_RESOURCES = {
|
|
|
479
562
|
'rename': '重命名',
|
|
480
563
|
'replace': '替换',
|
|
481
564
|
'sizeZero': '文件大小为0',
|
|
565
|
+
'sizeMax': '文件大小超出限制',
|
|
482
566
|
'uploadFailure': '上传失败',
|
|
483
567
|
'uploadSucceed': '上传成功',
|
|
484
568
|
'wait': '等一下,文档正在上传。',
|
|
@@ -506,6 +590,7 @@ var LANG_RESOURCES = {
|
|
|
506
590
|
'rename': 'Rename',
|
|
507
591
|
'replace': 'Replace',
|
|
508
592
|
'sizeZero': 'File size is 0',
|
|
593
|
+
'sizeMax': 'File size beyond limit',
|
|
509
594
|
'uploadFailure': 'Upload failed',
|
|
510
595
|
'uploadSucceed': 'Upload successfully',
|
|
511
596
|
'wait': 'Wait a minute, the file is uploading.',
|
|
@@ -533,6 +618,7 @@ var LANG_RESOURCES = {
|
|
|
533
618
|
'rename': 'Rename',
|
|
534
619
|
'replace': 'Replace',
|
|
535
620
|
'sizeZero': 'File size is 0',
|
|
621
|
+
'sizeMax': 'File size beyond limit',
|
|
536
622
|
'uploadFailure': 'Upload failed',
|
|
537
623
|
'uploadSucceed': 'Upload successfully',
|
|
538
624
|
'wait': 'Wait a minute, the file is uploading.',
|
|
@@ -560,6 +646,7 @@ var LANG_RESOURCES = {
|
|
|
560
646
|
'rename': '重命名',
|
|
561
647
|
'replace': '替換',
|
|
562
648
|
'sizeZero': '文件大小為0',
|
|
649
|
+
'sizeMax': '文件大小超出限制',
|
|
563
650
|
'uploadFailure': '上傳失敗',
|
|
564
651
|
'uploadSucceed': '上傳成功',
|
|
565
652
|
'wait': '等一下,文件正在上傳。',
|
|
@@ -608,6 +695,16 @@ var LocalLangPipe = /** @class */ (function () {
|
|
|
608
695
|
return LocalLangPipe;
|
|
609
696
|
}());
|
|
610
697
|
|
|
698
|
+
/**
|
|
699
|
+
* @fileoverview added by tsickle
|
|
700
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
701
|
+
*/
|
|
702
|
+
var GspDocSecurityBaseInfo = /** @class */ (function () {
|
|
703
|
+
function GspDocSecurityBaseInfo() {
|
|
704
|
+
}
|
|
705
|
+
return GspDocSecurityBaseInfo;
|
|
706
|
+
}());
|
|
707
|
+
|
|
611
708
|
/**
|
|
612
709
|
* @fileoverview added by tsickle
|
|
613
710
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -624,6 +721,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
624
721
|
this.errFileList = [];
|
|
625
722
|
this.errTypeList = [];
|
|
626
723
|
this.nullFileList = [];
|
|
724
|
+
this.beyondFileList = [];
|
|
627
725
|
this.showType = 0;
|
|
628
726
|
this.mouseOn = false;
|
|
629
727
|
this.bufferSize = 1024 * 1024;
|
|
@@ -642,18 +740,22 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
642
740
|
this.uploadedProcess = {};
|
|
643
741
|
this.defaultPropertyName = "";
|
|
644
742
|
this.propertiesNames = [];
|
|
743
|
+
this.securityInfoList = [];
|
|
645
744
|
this.queueListStyle = { width: '480px' };
|
|
646
745
|
this.dropListValue = "";
|
|
647
746
|
this.uploadedFileTotal = 0;
|
|
648
747
|
this.haveExtensionProperty = false;
|
|
748
|
+
this.haveSecurityInfo = false;
|
|
649
749
|
this.uploadedFileInfoList = [];
|
|
650
750
|
this.oldUploadedFileList = [];
|
|
651
751
|
//uploadedNameList = [];
|
|
652
752
|
this.sameNameAllowed = true;
|
|
753
|
+
this.maxFileSize = 0;
|
|
653
754
|
this.checkboxPos = { top: '0px' };
|
|
654
755
|
this.fileType = "*";
|
|
655
756
|
this.fileCount = 0;
|
|
656
757
|
this.oldIdList = [];
|
|
758
|
+
this.securityInfo = null;
|
|
657
759
|
this.totalLoad = null;
|
|
658
760
|
this.exStorageFileList = [];
|
|
659
761
|
if (this.injector) {
|
|
@@ -672,6 +774,25 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
672
774
|
if (navigator.userAgent.indexOf('Firefox') >= 0)
|
|
673
775
|
this.checkboxPos.top = '14px';
|
|
674
776
|
//if (this.storageService != null) {
|
|
777
|
+
if (this.securityInfo != null) {
|
|
778
|
+
this.uploadService.getSecurityInfoList(this.securityInfo).subscribe((/**
|
|
779
|
+
* @param {?} res
|
|
780
|
+
* @return {?}
|
|
781
|
+
*/
|
|
782
|
+
function (res) {
|
|
783
|
+
_this.haveSecurityInfo = true;
|
|
784
|
+
/** @type {?} */
|
|
785
|
+
var i = 0;
|
|
786
|
+
res.forEach((/**
|
|
787
|
+
* @param {?} element
|
|
788
|
+
* @return {?}
|
|
789
|
+
*/
|
|
790
|
+
function (element) {
|
|
791
|
+
_this.securityInfoList.push({ id: i.toString(), securityId: element.securityId, securityLevel: element.securityLevel, name: element.name });
|
|
792
|
+
i++;
|
|
793
|
+
}));
|
|
794
|
+
}));
|
|
795
|
+
}
|
|
675
796
|
this.uploadService.getStorageExtensionInfo().subscribe((/**
|
|
676
797
|
* @param {?} res
|
|
677
798
|
* @return {?}
|
|
@@ -702,6 +823,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
702
823
|
function (res) {
|
|
703
824
|
if (res != null && res.error == null) {
|
|
704
825
|
_this.sameNameAllowed = res.sameNameAllowed;
|
|
826
|
+
_this.validationId = res.validationId;
|
|
705
827
|
if (!_this.sameNameAllowed) {
|
|
706
828
|
_this.uploadService.getUploadedFileInfoList(_this.formId, _this.rootId).subscribe((/**
|
|
707
829
|
* @param {?} res
|
|
@@ -714,6 +836,13 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
714
836
|
}
|
|
715
837
|
}));
|
|
716
838
|
}
|
|
839
|
+
_this.uploadService.getValidation(_this.validationId).subscribe((/**
|
|
840
|
+
* @param {?} res
|
|
841
|
+
* @return {?}
|
|
842
|
+
*/
|
|
843
|
+
function (res) {
|
|
844
|
+
_this.maxFileSize = parseInt(JSON.parse(res.configuration).maxFileSize);
|
|
845
|
+
}));
|
|
717
846
|
}
|
|
718
847
|
}));
|
|
719
848
|
if (this.oldIdList != null && this.oldIdList.length > 0) {
|
|
@@ -727,10 +856,11 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
727
856
|
* @return {?}
|
|
728
857
|
*/
|
|
729
858
|
function () {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
859
|
+
this.hasSelectedFile = true;
|
|
860
|
+
// if (this.totalLoad == null)
|
|
861
|
+
// this.totalLoad = this.loadService.show({
|
|
862
|
+
// message: this.localepipe.transform('uploading')
|
|
863
|
+
// });
|
|
734
864
|
};
|
|
735
865
|
/**
|
|
736
866
|
* @param {?} $event
|
|
@@ -745,8 +875,8 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
745
875
|
// message: this.localepipe.transform('uploading')
|
|
746
876
|
// });
|
|
747
877
|
var _this = this;
|
|
748
|
-
this.totalLoad.close();
|
|
749
|
-
this.totalLoad = null;
|
|
878
|
+
// this.totalLoad.close();
|
|
879
|
+
// this.totalLoad = null;
|
|
750
880
|
this.hasSelectedFile = true;
|
|
751
881
|
this.selectedFiles = document.querySelector('#file');
|
|
752
882
|
if (this.fileCount > 0) {
|
|
@@ -763,6 +893,14 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
763
893
|
//selectedFile.slice
|
|
764
894
|
/** @type {?} */
|
|
765
895
|
var uuid = UUID.UUID();
|
|
896
|
+
if (selectedFile.size == 0) {
|
|
897
|
+
this_1.nullFileList.push(selectedFile.name);
|
|
898
|
+
return "continue";
|
|
899
|
+
}
|
|
900
|
+
if (selectedFile.size > this_1.maxFileSize * 1000) {
|
|
901
|
+
this_1.beyondFileList.push(selectedFile.name);
|
|
902
|
+
return "continue";
|
|
903
|
+
}
|
|
766
904
|
if (!this_1.sameNameAllowed) {
|
|
767
905
|
if (this_1.uploadedFileInfoList.find((/**
|
|
768
906
|
* @param {?} x
|
|
@@ -858,10 +996,6 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
858
996
|
// this.errFileList.push(selectedFile.name);
|
|
859
997
|
// continue;
|
|
860
998
|
// }
|
|
861
|
-
if (selectedFile.size == 0) {
|
|
862
|
-
this_1.nullFileList.push(selectedFile.name);
|
|
863
|
-
return "continue";
|
|
864
|
-
}
|
|
865
999
|
//this.flag += Math.ceil(selectedFile.size / this.bufferSize);
|
|
866
1000
|
//let reader = new FileReader();
|
|
867
1001
|
this_1.uploadFile(uuid, selectedFile, selectedFile.name);
|
|
@@ -889,6 +1023,13 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
889
1023
|
this.msgService.warning(name_2 + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
|
|
890
1024
|
this.nullFileList = [];
|
|
891
1025
|
}
|
|
1026
|
+
if (this.beyondFileList.length > 0) {
|
|
1027
|
+
/** @type {?} */
|
|
1028
|
+
var name_3 = this.listToString(this.beyondFileList);
|
|
1029
|
+
name_3 = name_3.substring(0, name_3.length - 1);
|
|
1030
|
+
this.msgService.warning(name_3 + this.localepipe.transform('sizeMax') + this.maxFileSize + "KB" + this.localepipe.transform('rechooseFile'));
|
|
1031
|
+
this.nullFileList = [];
|
|
1032
|
+
}
|
|
892
1033
|
// if (this.errTypeList.length > 0) {
|
|
893
1034
|
// let type: string = this.listToString(this.errTypeList);
|
|
894
1035
|
// this.msgService.warning('不支持上传类型为 ' + type + '的文件请重新选择上传文件。');
|
|
@@ -950,7 +1091,9 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
950
1091
|
uploadProcess: 0,
|
|
951
1092
|
errorMessage: "",
|
|
952
1093
|
extensionDropListId: 0,
|
|
953
|
-
extensionName: ""
|
|
1094
|
+
extensionName: "",
|
|
1095
|
+
securityDropListId: 0,
|
|
1096
|
+
securityInfo: this.securityInfoList[0]
|
|
954
1097
|
};
|
|
955
1098
|
if (this.storageExtension != null)
|
|
956
1099
|
fileInfo.extensionName = this.defaultPropertyName;
|
|
@@ -965,6 +1108,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
965
1108
|
uploadFileInfo.fileName = fileInfo.name;
|
|
966
1109
|
uploadFileInfo.fileSize = fileInfo.size;
|
|
967
1110
|
uploadFileInfo.state = state;
|
|
1111
|
+
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
968
1112
|
var _loop_2 = function () {
|
|
969
1113
|
/** @type {?} */
|
|
970
1114
|
var uploadInfo = new GspFormUploadEntity;
|
|
@@ -1338,6 +1482,26 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1338
1482
|
}
|
|
1339
1483
|
return name;
|
|
1340
1484
|
};
|
|
1485
|
+
/**
|
|
1486
|
+
* @param {?} $event
|
|
1487
|
+
* @param {?} file
|
|
1488
|
+
* @return {?}
|
|
1489
|
+
*/
|
|
1490
|
+
FileUploadComponent.prototype.securityChange = /**
|
|
1491
|
+
* @param {?} $event
|
|
1492
|
+
* @param {?} file
|
|
1493
|
+
* @return {?}
|
|
1494
|
+
*/
|
|
1495
|
+
function ($event, file) {
|
|
1496
|
+
file.securityInfo = $event.data;
|
|
1497
|
+
/** @type {?} */
|
|
1498
|
+
var uploadFile = this.uploadFileInfoList.filter((/**
|
|
1499
|
+
* @param {?} x
|
|
1500
|
+
* @return {?}
|
|
1501
|
+
*/
|
|
1502
|
+
function (x) { return x.metadataId = file.id; }))[0];
|
|
1503
|
+
uploadFile.securityInfo = $event.data;
|
|
1504
|
+
};
|
|
1341
1505
|
/**
|
|
1342
1506
|
* @param {?} $event
|
|
1343
1507
|
* @param {?} file
|
|
@@ -1403,6 +1567,9 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1403
1567
|
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1404
1568
|
return of$1(false);
|
|
1405
1569
|
}
|
|
1570
|
+
if (this.haveSecurityInfo) {
|
|
1571
|
+
this.uploadService.saveSecurityInfo(this.uploadFileInfoList, this.rootId).subscribe();
|
|
1572
|
+
}
|
|
1406
1573
|
if (this.storageExtension == null)
|
|
1407
1574
|
return of$1(this.uploadFileInfoList);
|
|
1408
1575
|
else {
|
|
@@ -1549,7 +1716,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1549
1716
|
FileUploadComponent.decorators = [
|
|
1550
1717
|
{ type: Component, args: [{
|
|
1551
1718
|
selector: 'app-file-upload',
|
|
1552
|
-
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-error\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\" style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\" [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\" [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' | locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\" (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
|
|
1719
|
+
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\"\n title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\n 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\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \"\n style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\"\n [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\"\n (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'\"\n [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\"\n 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-warn\"></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; \"\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' |\n 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\"\n 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\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\n [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 *ngIf=\"haveSecurityInfo\"\n 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]=\"securityInfoList\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\n [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 [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\n [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\"\n 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\"\n style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton\n [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\"\n [(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\"\n [(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\"\n (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' |\n locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\"\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\n [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&&haveSecurityInfo\"\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\n [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\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\"\n (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\">{{'uploadFile' | locale}} </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n <!-- <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\"> -->\n </div>\n</div>",
|
|
1553
1720
|
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}"]
|
|
1554
1721
|
}] }
|
|
1555
1722
|
];
|
|
@@ -1566,6 +1733,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1566
1733
|
fileType: [{ type: Input }],
|
|
1567
1734
|
fileCount: [{ type: Input }],
|
|
1568
1735
|
oldIdList: [{ type: Input }],
|
|
1736
|
+
securityInfo: [{ type: Input }],
|
|
1569
1737
|
opCell: [{ type: ViewChild, args: ['opCell',] }]
|
|
1570
1738
|
};
|
|
1571
1739
|
return FileUploadComponent;
|
|
@@ -1970,6 +2138,7 @@ var UploadDialogService = /** @class */ (function () {
|
|
|
1970
2138
|
var uploadRef = uploadFactory.create(_this.injector);
|
|
1971
2139
|
if (limit != null) {
|
|
1972
2140
|
uploadRef.instance.fileCount = limit.fileCount;
|
|
2141
|
+
uploadRef.instance.securityInfo = limit.securityInfo;
|
|
1973
2142
|
if (limit.fileType != null && limit.fileType != "")
|
|
1974
2143
|
uploadRef.instance.fileType = limit.fileType;
|
|
1975
2144
|
}
|
|
@@ -2067,6 +2236,7 @@ var UploadLimit = /** @class */ (function () {
|
|
|
2067
2236
|
function UploadLimit() {
|
|
2068
2237
|
this.fileType = "*";
|
|
2069
2238
|
this.fileCount = 0;
|
|
2239
|
+
this.securityInfo = null;
|
|
2070
2240
|
}
|
|
2071
2241
|
return UploadLimit;
|
|
2072
2242
|
}());
|
|
@@ -2101,6 +2271,16 @@ var FileInfo = /** @class */ (function () {
|
|
|
2101
2271
|
return FileInfo;
|
|
2102
2272
|
}());
|
|
2103
2273
|
|
|
2274
|
+
/**
|
|
2275
|
+
* @fileoverview added by tsickle
|
|
2276
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2277
|
+
*/
|
|
2278
|
+
var SecurityEntity = /** @class */ (function () {
|
|
2279
|
+
function SecurityEntity() {
|
|
2280
|
+
}
|
|
2281
|
+
return SecurityEntity;
|
|
2282
|
+
}());
|
|
2283
|
+
|
|
2104
2284
|
/**
|
|
2105
2285
|
* @fileoverview added by tsickle
|
|
2106
2286
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -2111,6 +2291,6 @@ var FileInfo = /** @class */ (function () {
|
|
|
2111
2291
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2112
2292
|
*/
|
|
2113
2293
|
|
|
2114
|
-
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 };
|
|
2294
|
+
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState, GspDocSecurityBaseInfo, SecurityEntity, ExStorageFileInfo, LocalLangPipe as ɵb };
|
|
2115
2295
|
|
|
2116
2296
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|