@gsp-svc/formdoc-upload 0.1.36 → 0.1.38
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 +332 -199
- 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/formdoc-upload.module.js +7 -4
- package/esm2015/lib/upload/entity/copyfilerequest.js +15 -0
- package/esm2015/lib/upload/entity/fileinfo.js +1 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +273 -194
- package/esm2015/lib/upload/upload.module.js +6 -4
- package/esm2015/lib/upload/upload.service.js +28 -1
- package/esm2015/public-api.js +2 -1
- package/esm5/gsp-svc-formdoc-upload.js +2 -2
- package/esm5/lib/formdoc-upload.module.js +7 -4
- package/esm5/lib/upload/entity/copyfilerequest.js +19 -0
- package/esm5/lib/upload/entity/fileinfo.js +1 -1
- package/esm5/lib/upload/file-upload/file-upload.component.js +297 -198
- package/esm5/lib/upload/upload.module.js +6 -4
- package/esm5/lib/upload/upload.service.js +34 -1
- package/esm5/public-api.js +2 -1
- package/fesm2015/gsp-svc-formdoc-upload.js +311 -199
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +345 -204
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- package/lib/upload/entity/copyfilerequest.d.ts +5 -0
- package/lib/upload/entity/fileinfo.d.ts +1 -1
- package/lib/upload/file-upload/file-upload.component.d.ts +7 -1
- package/lib/upload/upload.service.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -10,11 +10,11 @@ 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 {
|
|
13
|
+
import { CacheService, HttpService, LanguageService, SessionService } from '@ecp-caf/caf-common';
|
|
14
14
|
import { Injectable, Pipe, Inject, LOCALE_ID, Component, ViewChild, Input, NgModule, Injector, ComponentFactoryResolver, defineInjectable } from '@angular/core';
|
|
15
15
|
import { BsModalService } from '@farris/ui-modal';
|
|
16
16
|
import { of as of$1 } from 'rxjs';
|
|
17
|
-
import {
|
|
17
|
+
import { HttpClientModule, HttpClient } from '@angular/common/http';
|
|
18
18
|
import { NotifyModule } from '@farris/ui-notify';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -68,9 +68,11 @@ class FormdocUploadModule {
|
|
|
68
68
|
FormdocUploadModule.decorators = [
|
|
69
69
|
{ type: NgModule, args: [{
|
|
70
70
|
declarations: [FormdocUploadComponent],
|
|
71
|
-
imports: [
|
|
71
|
+
imports: [
|
|
72
|
+
HttpClientModule
|
|
73
|
+
],
|
|
72
74
|
exports: [FormdocUploadComponent],
|
|
73
|
-
providers: [LanguageService,
|
|
75
|
+
providers: [LanguageService, HttpService, CacheService, SessionService,
|
|
74
76
|
{ provide: LOCALE_ID, useValue: ɵ0 },]
|
|
75
77
|
},] }
|
|
76
78
|
];
|
|
@@ -137,6 +139,13 @@ class GspFormDocOperateEntity {
|
|
|
137
139
|
class ChangeInstanceRequest {
|
|
138
140
|
}
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* @fileoverview added by tsickle
|
|
144
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
145
|
+
*/
|
|
146
|
+
class CopyFileRequest {
|
|
147
|
+
}
|
|
148
|
+
|
|
140
149
|
/**
|
|
141
150
|
* @fileoverview added by tsickle
|
|
142
151
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -350,6 +359,32 @@ class UploadService {
|
|
|
350
359
|
return of(error);
|
|
351
360
|
})));
|
|
352
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* @param {?} metadataId
|
|
364
|
+
* @param {?} rootId
|
|
365
|
+
* @param {?} path
|
|
366
|
+
* @return {?}
|
|
367
|
+
*/
|
|
368
|
+
copyFile(metadataId, rootId, path) {
|
|
369
|
+
/** @type {?} */
|
|
370
|
+
let url = "/api/runtime/dfs/v1.0/formdoc/copy";
|
|
371
|
+
/** @type {?} */
|
|
372
|
+
let request = new CopyFileRequest;
|
|
373
|
+
request.metadataId = metadataId;
|
|
374
|
+
request.rootId = rootId;
|
|
375
|
+
request.path = path;
|
|
376
|
+
return this.http.post(url, request).pipe(tap((/**
|
|
377
|
+
* @param {?} res
|
|
378
|
+
* @return {?}
|
|
379
|
+
*/
|
|
380
|
+
res => { })), catchError((/**
|
|
381
|
+
* @param {?} error
|
|
382
|
+
* @return {?}
|
|
383
|
+
*/
|
|
384
|
+
(error) => {
|
|
385
|
+
return of(error);
|
|
386
|
+
})));
|
|
387
|
+
}
|
|
353
388
|
/**
|
|
354
389
|
* @param {?} uploadFileInfoList
|
|
355
390
|
* @param {?} rootId
|
|
@@ -664,7 +699,7 @@ class FileUploadComponent {
|
|
|
664
699
|
this.beyondFileList = [];
|
|
665
700
|
this.showType = 0;
|
|
666
701
|
this.mouseOn = false;
|
|
667
|
-
this.bufferSize = 1024 * 1024;
|
|
702
|
+
this.bufferSize = 10 * 1024 * 1024;
|
|
668
703
|
this.selectedFileCount = 0;
|
|
669
704
|
this.uploadIconAddress = '/platform/runtime/dfs/images/upload.svg';
|
|
670
705
|
this.uploadLittleIconAddress = '/platform/runtime/dfs/images/uploadIcon.svg';
|
|
@@ -699,6 +734,7 @@ class FileUploadComponent {
|
|
|
699
734
|
this.totalLoad = null;
|
|
700
735
|
this.exStorageFileList = [];
|
|
701
736
|
if (this.injector) {
|
|
737
|
+
this.httpclient = this.injector.get(HttpClient);
|
|
702
738
|
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
703
739
|
this.localepipe = new LocalLangPipe(this.localeid);
|
|
704
740
|
}
|
|
@@ -968,6 +1004,76 @@ class FileUploadComponent {
|
|
|
968
1004
|
showErrorMessage(file) {
|
|
969
1005
|
this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
|
|
970
1006
|
}
|
|
1007
|
+
/**
|
|
1008
|
+
* @param {?} uuid
|
|
1009
|
+
* @param {?} selectedFile
|
|
1010
|
+
* @param {?} fileName
|
|
1011
|
+
* @return {?}
|
|
1012
|
+
*/
|
|
1013
|
+
handleFileInfo(uuid, selectedFile, fileName) {
|
|
1014
|
+
return new Promise((/**
|
|
1015
|
+
* @param {?} resolve
|
|
1016
|
+
* @return {?}
|
|
1017
|
+
*/
|
|
1018
|
+
resolve => {
|
|
1019
|
+
/** @type {?} */
|
|
1020
|
+
let fileInfo;
|
|
1021
|
+
fileInfo = {
|
|
1022
|
+
id: uuid,
|
|
1023
|
+
name: fileName,
|
|
1024
|
+
type: selectedFile.type,
|
|
1025
|
+
source: "",
|
|
1026
|
+
size: this.getFileSize(selectedFile.size),
|
|
1027
|
+
fileSize: selectedFile.size,
|
|
1028
|
+
picListDisplayName: this.getPicListDisplayName(fileName),
|
|
1029
|
+
queueListDisplayName: this.getQueueDisplayName(fileName),
|
|
1030
|
+
//content: reader.result.toString(),
|
|
1031
|
+
hasUploaded: false,
|
|
1032
|
+
mouseOn: false,
|
|
1033
|
+
selectd: false,
|
|
1034
|
+
isUploading: true,
|
|
1035
|
+
uploadResult: false,
|
|
1036
|
+
uploadProcess: 0,
|
|
1037
|
+
errorMessage: "",
|
|
1038
|
+
extensionDropListId: 0,
|
|
1039
|
+
extensionName: "",
|
|
1040
|
+
securityDropListId: 0,
|
|
1041
|
+
securityInfo: this.securityInfoList[0]
|
|
1042
|
+
};
|
|
1043
|
+
if (this.storageExtension != null)
|
|
1044
|
+
fileInfo.extensionName = this.defaultPropertyName;
|
|
1045
|
+
/** @type {?} */
|
|
1046
|
+
let type = selectedFile.type;
|
|
1047
|
+
if (type.includes("tiff")) {
|
|
1048
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1049
|
+
}
|
|
1050
|
+
else if (type.includes("image")) {
|
|
1051
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Image);
|
|
1052
|
+
}
|
|
1053
|
+
else if (type.includes("word")) {
|
|
1054
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Word);
|
|
1055
|
+
}
|
|
1056
|
+
else if (type.includes("pdf")) {
|
|
1057
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Pdf);
|
|
1058
|
+
}
|
|
1059
|
+
else if (type.includes("plain")) {
|
|
1060
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Txt);
|
|
1061
|
+
}
|
|
1062
|
+
else if (type.includes("sheet") || type.includes("excel")) {
|
|
1063
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Excel);
|
|
1064
|
+
}
|
|
1065
|
+
else if (type.includes("powerpoint") || type.includes("presentation")) {
|
|
1066
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Powerpoint);
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1070
|
+
// let name: string = selectedFile.name;
|
|
1071
|
+
// let errType = name.substring(selectedFile.name.lastIndexOf('.'));
|
|
1072
|
+
// this.errTypeList.push(errType);
|
|
1073
|
+
}
|
|
1074
|
+
resolve(fileInfo);
|
|
1075
|
+
}));
|
|
1076
|
+
}
|
|
971
1077
|
/**
|
|
972
1078
|
* @param {?} uuid
|
|
973
1079
|
* @param {?} selectedFile
|
|
@@ -976,159 +1082,138 @@ class FileUploadComponent {
|
|
|
976
1082
|
* @return {?}
|
|
977
1083
|
*/
|
|
978
1084
|
uploadFile(uuid, selectedFile, fileName, state = FileState.New) {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
fileInfo = {
|
|
985
|
-
id: uuid,
|
|
986
|
-
name: fileName,
|
|
987
|
-
type: selectedFile.type,
|
|
988
|
-
source: "",
|
|
989
|
-
size: this.getFileSize(selectedFile.size),
|
|
990
|
-
fileSize: selectedFile.size,
|
|
991
|
-
picListDisplayName: this.getPicListDisplayName(fileName),
|
|
992
|
-
queueListDisplayName: this.getQueueDisplayName(fileName),
|
|
993
|
-
//content: reader.result.toString(),
|
|
994
|
-
hasUploaded: false,
|
|
995
|
-
mouseOn: false,
|
|
996
|
-
selectd: false,
|
|
997
|
-
isUploading: true,
|
|
998
|
-
uploadResult: false,
|
|
999
|
-
uploadProcess: 0,
|
|
1000
|
-
errorMessage: "",
|
|
1001
|
-
extensionDropListId: 0,
|
|
1002
|
-
extensionName: "",
|
|
1003
|
-
securityDropListId: 0,
|
|
1004
|
-
securityInfo: this.securityInfoList[0]
|
|
1005
|
-
};
|
|
1006
|
-
if (this.storageExtension != null)
|
|
1007
|
-
fileInfo.extensionName = this.defaultPropertyName;
|
|
1008
|
-
/** @type {?} */
|
|
1009
|
-
let chunkTotal = Math.ceil(selectedFile.size / this.bufferSize);
|
|
1010
|
-
/** @type {?} */
|
|
1011
|
-
let chunkIndex = 0;
|
|
1012
|
-
this.fileTotalChunk[uuid] = chunkTotal;
|
|
1013
|
-
/** @type {?} */
|
|
1014
|
-
let uploadFileInfo = new UploadFileInfo();
|
|
1015
|
-
uploadFileInfo.metadataId = uuid;
|
|
1016
|
-
uploadFileInfo.fileName = fileInfo.name;
|
|
1017
|
-
uploadFileInfo.fileSize = fileInfo.size;
|
|
1018
|
-
uploadFileInfo.state = state;
|
|
1019
|
-
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
1020
|
-
while (chunkIndex < chunkTotal) {
|
|
1021
|
-
/** @type {?} */
|
|
1022
|
-
let uploadInfo = new GspFormUploadEntity;
|
|
1023
|
-
uploadInfo.formId = this.formId;
|
|
1024
|
-
uploadInfo.mode = OperatingModes.Temp;
|
|
1025
|
-
uploadInfo.rootId = this.rootId;
|
|
1085
|
+
this.handleFileInfo(uuid, selectedFile, fileName).then((/**
|
|
1086
|
+
* @param {?} res
|
|
1087
|
+
* @return {?}
|
|
1088
|
+
*/
|
|
1089
|
+
res => {
|
|
1026
1090
|
/** @type {?} */
|
|
1027
|
-
let
|
|
1028
|
-
docInfo.fileName = fileName;
|
|
1029
|
-
docInfo.metadataId = uuid;
|
|
1030
|
-
docInfo.total = chunkTotal;
|
|
1031
|
-
this.uploadedChunk[docInfo.metadataId] = 0;
|
|
1091
|
+
let fileInfo = res;
|
|
1032
1092
|
/** @type {?} */
|
|
1033
|
-
let
|
|
1093
|
+
let chunkTotal = Math.ceil(selectedFile.size / this.bufferSize);
|
|
1034
1094
|
/** @type {?} */
|
|
1035
|
-
let
|
|
1036
|
-
|
|
1037
|
-
// reader.readAsBinaryString(fileData);
|
|
1095
|
+
let chunkIndex = 0;
|
|
1096
|
+
this.fileTotalChunk[uuid] = chunkTotal;
|
|
1038
1097
|
/** @type {?} */
|
|
1039
|
-
let
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1098
|
+
let uploadFileInfo = new UploadFileInfo();
|
|
1099
|
+
uploadFileInfo.metadataId = uuid;
|
|
1100
|
+
uploadFileInfo.fileName = fileInfo.name;
|
|
1101
|
+
uploadFileInfo.fileSize = fileInfo.size;
|
|
1102
|
+
uploadFileInfo.state = state;
|
|
1103
|
+
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
1104
|
+
while (chunkIndex < chunkTotal) {
|
|
1105
|
+
/** @type {?} */
|
|
1106
|
+
let uploadInfo = new GspFormUploadEntity;
|
|
1107
|
+
uploadInfo.formId = this.formId;
|
|
1108
|
+
uploadInfo.mode = OperatingModes.Temp;
|
|
1109
|
+
uploadInfo.rootId = this.rootId;
|
|
1110
|
+
/** @type {?} */
|
|
1111
|
+
let docInfo = new GspFormDocInfo;
|
|
1112
|
+
docInfo.fileName = fileName;
|
|
1113
|
+
docInfo.metadataId = uuid;
|
|
1114
|
+
docInfo.total = chunkTotal;
|
|
1115
|
+
this.uploadedChunk[docInfo.metadataId] = 0;
|
|
1116
|
+
/** @type {?} */
|
|
1117
|
+
let nextSize = Math.min((chunkIndex + 1) * this.bufferSize, selectedFile.size);
|
|
1118
|
+
/** @type {?} */
|
|
1119
|
+
let fileData = selectedFile.slice(chunkIndex * this.bufferSize, nextSize);
|
|
1120
|
+
// let reader = new FileReader();
|
|
1121
|
+
// reader.readAsBinaryString(fileData);
|
|
1122
|
+
/** @type {?} */
|
|
1123
|
+
let innerIndex = chunkIndex;
|
|
1124
|
+
// reader.onload = () => {
|
|
1125
|
+
// docInfo.fileContent = btoa(reader.result.toString());
|
|
1126
|
+
docInfo.size = selectedFile.size;
|
|
1127
|
+
docInfo.index = innerIndex;
|
|
1128
|
+
docInfo.fileContent = "";
|
|
1129
|
+
//chunkIndex++;
|
|
1130
|
+
if (this.haveExtensionProperty)
|
|
1131
|
+
docInfo.exPropertyName = this.defaultPropertyName;
|
|
1132
|
+
//docInfo.isLast = true;
|
|
1133
|
+
uploadInfo.docInfo = docInfo;
|
|
1134
|
+
// let info = uploadInfo;
|
|
1135
|
+
// this.requestArray.push(this.uploadService.uploadFile(uploadInfo));
|
|
1136
|
+
// this.requestBodyArray.push(info);
|
|
1137
|
+
//封装请求formdata
|
|
1138
|
+
/** @type {?} */
|
|
1139
|
+
let formData = new FormData();
|
|
1140
|
+
formData.append('uploadInfo', JSON.stringify(uploadInfo));
|
|
1141
|
+
formData.append('docInfo', JSON.stringify(docInfo));
|
|
1142
|
+
formData.append('file', fileData);
|
|
1143
|
+
// }
|
|
1144
|
+
//console.log(chunkIndex + 1);
|
|
1145
|
+
chunkIndex = chunkIndex + 1;
|
|
1146
|
+
}
|
|
1054
1147
|
/** @type {?} */
|
|
1055
|
-
let
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
formData.append('file', fileData);
|
|
1059
|
-
this.uploadService.uploadSliceFile(formData).subscribe((/**
|
|
1060
|
-
* @param {?} res
|
|
1148
|
+
let index = -1;
|
|
1149
|
+
this.files.forEach((/**
|
|
1150
|
+
* @param {?} x
|
|
1061
1151
|
* @return {?}
|
|
1062
1152
|
*/
|
|
1063
|
-
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
this.files[this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
|
|
1068
|
-
}
|
|
1069
|
-
else {
|
|
1070
|
-
this.uploadedChunk[docInfo.metadataId]++;
|
|
1071
|
-
this.files[this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((this.uploadedChunk[docInfo.metadataId] / this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
|
|
1072
|
-
if (this.uploadedChunk[docInfo.metadataId] == this.fileTotalChunk[docInfo.metadataId]) {
|
|
1073
|
-
this.files[this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1074
|
-
this.files[this.files.indexOf(fileInfo)].isUploading = false;
|
|
1075
|
-
this.uploadFileInfoList = this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1076
|
-
this.uploadedFileInfoList = this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1077
|
-
this.uploadedFileTotal++;
|
|
1078
|
-
}
|
|
1153
|
+
x => {
|
|
1154
|
+
if (x.name == fileInfo.name) {
|
|
1155
|
+
if (index == -1)
|
|
1156
|
+
index = this.files.indexOf(x);
|
|
1079
1157
|
}
|
|
1080
1158
|
}));
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
else if (type.includes("plain")) {
|
|
1100
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Txt);
|
|
1101
|
-
}
|
|
1102
|
-
else if (type.includes("sheet") || type.includes("excel")) {
|
|
1103
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Excel);
|
|
1104
|
-
}
|
|
1105
|
-
else if (type.includes("powerpoint") || type.includes("presentation")) {
|
|
1106
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Powerpoint);
|
|
1107
|
-
}
|
|
1108
|
-
else {
|
|
1109
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1110
|
-
// let name: string = selectedFile.name;
|
|
1111
|
-
// let errType = name.substring(selectedFile.name.lastIndexOf('.'));
|
|
1112
|
-
// this.errTypeList.push(errType);
|
|
1113
|
-
}
|
|
1114
|
-
/** @type {?} */
|
|
1115
|
-
let index = -1;
|
|
1116
|
-
this.files.forEach((/**
|
|
1117
|
-
* @param {?} x
|
|
1159
|
+
if (index != -1 && index != this.files.length - 1) {
|
|
1160
|
+
this.files.splice(index, 1);
|
|
1161
|
+
this.uploadFileInfoList.splice(index, 1);
|
|
1162
|
+
this.uploadedFileInfoList.splice(index, 1);
|
|
1163
|
+
this.uploadedFileTotal--;
|
|
1164
|
+
}
|
|
1165
|
+
}));
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* @param {?} formData
|
|
1169
|
+
* @param {?} fileInfo
|
|
1170
|
+
* @param {?} docInfo
|
|
1171
|
+
* @param {?} uploadFileInfo
|
|
1172
|
+
* @return {?}
|
|
1173
|
+
*/
|
|
1174
|
+
sendUploadRequest(formData, fileInfo, docInfo, uploadFileInfo) {
|
|
1175
|
+
this.uploadSliceFile(formData).subscribe((/**
|
|
1176
|
+
* @param {?} res
|
|
1118
1177
|
* @return {?}
|
|
1119
1178
|
*/
|
|
1120
|
-
|
|
1121
|
-
if (
|
|
1122
|
-
|
|
1123
|
-
|
|
1179
|
+
res => {
|
|
1180
|
+
if (res != null) {
|
|
1181
|
+
this.files[this.files.indexOf(fileInfo)].uploadResult = false;
|
|
1182
|
+
this.files[this.files.indexOf(fileInfo)].isUploading = false;
|
|
1183
|
+
this.files[this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
|
|
1184
|
+
}
|
|
1185
|
+
else {
|
|
1186
|
+
this.uploadedChunk[docInfo.metadataId]++;
|
|
1187
|
+
this.files[this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((this.uploadedChunk[docInfo.metadataId] / this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
|
|
1188
|
+
if (this.uploadedChunk[docInfo.metadataId] == this.fileTotalChunk[docInfo.metadataId]) {
|
|
1189
|
+
this.files[this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1190
|
+
this.files[this.files.indexOf(fileInfo)].isUploading = false;
|
|
1191
|
+
this.uploadFileInfoList = this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1192
|
+
this.uploadedFileInfoList = this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1193
|
+
this.uploadedFileTotal++;
|
|
1194
|
+
}
|
|
1124
1195
|
}
|
|
1125
1196
|
}));
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* @param {?} formdata
|
|
1200
|
+
* @return {?}
|
|
1201
|
+
*/
|
|
1202
|
+
uploadSliceFile(formdata) {
|
|
1203
|
+
/** @type {?} */
|
|
1204
|
+
let url = "/api/runtime/dfs/v1.0/formdoc/slice";
|
|
1205
|
+
//url = "/api/runtime/dfs/v1.0/formdoc/list";
|
|
1206
|
+
return this.httpclient.post(url, formdata).pipe(tap((/**
|
|
1207
|
+
* @param {?} res
|
|
1208
|
+
* @return {?}
|
|
1209
|
+
*/
|
|
1210
|
+
res => { })), catchError((/**
|
|
1211
|
+
* @param {?} error
|
|
1212
|
+
* @return {?}
|
|
1213
|
+
*/
|
|
1214
|
+
(error) => {
|
|
1215
|
+
return of$1(error);
|
|
1216
|
+
})));
|
|
1132
1217
|
}
|
|
1133
1218
|
/**
|
|
1134
1219
|
* @return {?}
|
|
@@ -1289,59 +1374,85 @@ class FileUploadComponent {
|
|
|
1289
1374
|
* @return {?}
|
|
1290
1375
|
*/
|
|
1291
1376
|
addDocInfo(selectdFile, fileInfo, docType) {
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1377
|
+
return new Promise((/**
|
|
1378
|
+
* @param {?} resolve
|
|
1379
|
+
* @return {?}
|
|
1380
|
+
*/
|
|
1381
|
+
resolve => {
|
|
1382
|
+
switch (docType) {
|
|
1383
|
+
case DocType.Word: {
|
|
1384
|
+
fileInfo.source = "/platform/runtime/dfs/images/word.png";
|
|
1385
|
+
this.files.push(fileInfo);
|
|
1386
|
+
break;
|
|
1387
|
+
}
|
|
1388
|
+
case DocType.Pdf: {
|
|
1389
|
+
fileInfo.source = "/platform/runtime/dfs/images/pdf.png";
|
|
1390
|
+
this.files.push(fileInfo);
|
|
1391
|
+
break;
|
|
1392
|
+
}
|
|
1393
|
+
case DocType.Excel: {
|
|
1394
|
+
fileInfo.source = "/platform/runtime/dfs/images/excel.png";
|
|
1395
|
+
this.files.push(fileInfo);
|
|
1396
|
+
break;
|
|
1397
|
+
}
|
|
1398
|
+
case DocType.Txt: {
|
|
1399
|
+
fileInfo.source = "/platform/runtime/dfs/images/txt.png";
|
|
1400
|
+
this.files.push(fileInfo);
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
case DocType.Powerpoint: {
|
|
1404
|
+
fileInfo.source = "/platform/runtime/dfs/images/ppt.png";
|
|
1405
|
+
this.files.push(fileInfo);
|
|
1406
|
+
break;
|
|
1407
|
+
}
|
|
1408
|
+
case DocType.Other: {
|
|
1409
|
+
fileInfo.source = "/platform/runtime/dfs/images/file.png";
|
|
1410
|
+
this.files.push(fileInfo);
|
|
1411
|
+
break;
|
|
1412
|
+
}
|
|
1413
|
+
case DocType.Image: {
|
|
1414
|
+
this.getImageUrl(selectdFile).then((/**
|
|
1415
|
+
* @param {?} res
|
|
1416
|
+
* @return {?}
|
|
1417
|
+
*/
|
|
1418
|
+
res => {
|
|
1419
|
+
fileInfo.source = res;
|
|
1420
|
+
this.files.push(fileInfo);
|
|
1421
|
+
resolve(fileInfo);
|
|
1422
|
+
}));
|
|
1423
|
+
}
|
|
1322
1424
|
}
|
|
1323
|
-
|
|
1425
|
+
resolve(fileInfo);
|
|
1426
|
+
}));
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* @param {?} selectdFile
|
|
1430
|
+
* @return {?}
|
|
1431
|
+
*/
|
|
1432
|
+
getImageUrl(selectdFile) {
|
|
1433
|
+
return new Promise((/**
|
|
1434
|
+
* @param {?} resolve
|
|
1435
|
+
* @return {?}
|
|
1436
|
+
*/
|
|
1437
|
+
resolve => {
|
|
1438
|
+
/** @type {?} */
|
|
1439
|
+
let reader = new FileReader();
|
|
1440
|
+
reader.readAsDataURL(selectdFile);
|
|
1441
|
+
reader.onload = (/**
|
|
1442
|
+
* @param {?} _event
|
|
1443
|
+
* @return {?}
|
|
1444
|
+
*/
|
|
1445
|
+
(_event) => {
|
|
1324
1446
|
/** @type {?} */
|
|
1325
|
-
let
|
|
1326
|
-
|
|
1327
|
-
reader.onload = (/**
|
|
1328
|
-
* @param {?} _event
|
|
1329
|
-
* @return {?}
|
|
1330
|
-
*/
|
|
1331
|
-
(_event) => {
|
|
1447
|
+
let imgUrl = reader.result;
|
|
1448
|
+
if (this.injector != null) {
|
|
1332
1449
|
/** @type {?} */
|
|
1333
|
-
let
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
else
|
|
1340
|
-
fileInfo.source = imgUrl;
|
|
1341
|
-
this.files.push(fileInfo);
|
|
1342
|
-
});
|
|
1343
|
-
break;
|
|
1344
|
-
}
|
|
1450
|
+
let sanitizer = this.injector.get(DomSanitizer);
|
|
1451
|
+
imgUrl = sanitizer.bypassSecurityTrustResourceUrl(imgUrl);
|
|
1452
|
+
}
|
|
1453
|
+
resolve(imgUrl);
|
|
1454
|
+
});
|
|
1455
|
+
}));
|
|
1345
1456
|
}
|
|
1346
1457
|
/**
|
|
1347
1458
|
* @param {?} strList
|
|
@@ -1548,7 +1659,7 @@ FileUploadComponent.decorators = [
|
|
|
1548
1659
|
{ type: Component, args: [{
|
|
1549
1660
|
selector: 'app-file-upload',
|
|
1550
1661
|
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>",
|
|
1551
|
-
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:
|
|
1662
|
+
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:415px;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:179px;width:135px;margin:8px 0 8px 12px;float:left;overflow:hidden;align-items:center;position:relative}.pic_list ul li div{width:135px;height:159px;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}"]
|
|
1552
1663
|
}] }
|
|
1553
1664
|
];
|
|
1554
1665
|
/** @nocollapse */
|
|
@@ -1709,11 +1820,12 @@ UploadModule.decorators = [
|
|
|
1709
1820
|
LoadingModule.forRoot(),
|
|
1710
1821
|
ProgressModule,
|
|
1711
1822
|
FormsModule,
|
|
1712
|
-
ComboListModule
|
|
1823
|
+
ComboListModule,
|
|
1824
|
+
HttpClientModule
|
|
1713
1825
|
],
|
|
1714
1826
|
exports: [FileUploadComponent],
|
|
1715
1827
|
entryComponents: [FileUploadComponent],
|
|
1716
|
-
providers: [UploadService, DownloadService, LanguageService,
|
|
1828
|
+
providers: [UploadService, DownloadService, LanguageService, HttpService, CacheService, SessionService,
|
|
1717
1829
|
{ provide: LOCALE_ID, useValue: ɵ0$1 },]
|
|
1718
1830
|
},] }
|
|
1719
1831
|
];
|
|
@@ -2035,6 +2147,6 @@ class SecurityEntity {
|
|
|
2035
2147
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2036
2148
|
*/
|
|
2037
2149
|
|
|
2038
|
-
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 };
|
|
2150
|
+
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, CopyFileRequest, LocalLangPipe as ɵb };
|
|
2039
2151
|
|
|
2040
2152
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|