@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 {
|
|
14
|
-
import { Injectable, Pipe, Inject, LOCALE_ID,
|
|
13
|
+
import { CacheService, HttpService, LanguageService, SessionService } from '@ecp-caf/caf-common';
|
|
14
|
+
import { Injectable, Pipe, Inject, LOCALE_ID, Injector, ComponentFactoryResolver, Component, ViewChild, Input, NgModule, 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
|
/**
|
|
@@ -72,9 +72,11 @@ var FormdocUploadModule = /** @class */ (function () {
|
|
|
72
72
|
FormdocUploadModule.decorators = [
|
|
73
73
|
{ type: NgModule, args: [{
|
|
74
74
|
declarations: [FormdocUploadComponent],
|
|
75
|
-
imports: [
|
|
75
|
+
imports: [
|
|
76
|
+
HttpClientModule
|
|
77
|
+
],
|
|
76
78
|
exports: [FormdocUploadComponent],
|
|
77
|
-
providers: [LanguageService,
|
|
79
|
+
providers: [LanguageService, HttpService, CacheService, SessionService,
|
|
78
80
|
{ provide: LOCALE_ID, useValue: ɵ0 },]
|
|
79
81
|
},] }
|
|
80
82
|
];
|
|
@@ -155,6 +157,16 @@ var ChangeInstanceRequest = /** @class */ (function () {
|
|
|
155
157
|
return ChangeInstanceRequest;
|
|
156
158
|
}());
|
|
157
159
|
|
|
160
|
+
/**
|
|
161
|
+
* @fileoverview added by tsickle
|
|
162
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
163
|
+
*/
|
|
164
|
+
var CopyFileRequest = /** @class */ (function () {
|
|
165
|
+
function CopyFileRequest() {
|
|
166
|
+
}
|
|
167
|
+
return CopyFileRequest;
|
|
168
|
+
}());
|
|
169
|
+
|
|
158
170
|
/**
|
|
159
171
|
* @fileoverview added by tsickle
|
|
160
172
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -409,6 +421,38 @@ var UploadService = /** @class */ (function () {
|
|
|
409
421
|
return of(error);
|
|
410
422
|
})));
|
|
411
423
|
};
|
|
424
|
+
/**
|
|
425
|
+
* @param {?} metadataId
|
|
426
|
+
* @param {?} rootId
|
|
427
|
+
* @param {?} path
|
|
428
|
+
* @return {?}
|
|
429
|
+
*/
|
|
430
|
+
UploadService.prototype.copyFile = /**
|
|
431
|
+
* @param {?} metadataId
|
|
432
|
+
* @param {?} rootId
|
|
433
|
+
* @param {?} path
|
|
434
|
+
* @return {?}
|
|
435
|
+
*/
|
|
436
|
+
function (metadataId, rootId, path) {
|
|
437
|
+
/** @type {?} */
|
|
438
|
+
var url = "/api/runtime/dfs/v1.0/formdoc/copy";
|
|
439
|
+
/** @type {?} */
|
|
440
|
+
var request = new CopyFileRequest;
|
|
441
|
+
request.metadataId = metadataId;
|
|
442
|
+
request.rootId = rootId;
|
|
443
|
+
request.path = path;
|
|
444
|
+
return this.http.post(url, request).pipe(tap((/**
|
|
445
|
+
* @param {?} res
|
|
446
|
+
* @return {?}
|
|
447
|
+
*/
|
|
448
|
+
function (res) { })), catchError((/**
|
|
449
|
+
* @param {?} error
|
|
450
|
+
* @return {?}
|
|
451
|
+
*/
|
|
452
|
+
function (error) {
|
|
453
|
+
return of(error);
|
|
454
|
+
})));
|
|
455
|
+
};
|
|
412
456
|
/**
|
|
413
457
|
* @param {?} uploadFileInfoList
|
|
414
458
|
* @param {?} rootId
|
|
@@ -750,7 +794,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
750
794
|
this.beyondFileList = [];
|
|
751
795
|
this.showType = 0;
|
|
752
796
|
this.mouseOn = false;
|
|
753
|
-
this.bufferSize = 1024 * 1024;
|
|
797
|
+
this.bufferSize = 10 * 1024 * 1024;
|
|
754
798
|
this.selectedFileCount = 0;
|
|
755
799
|
this.uploadIconAddress = '/platform/runtime/dfs/images/upload.svg';
|
|
756
800
|
this.uploadLittleIconAddress = '/platform/runtime/dfs/images/uploadIcon.svg';
|
|
@@ -785,6 +829,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
785
829
|
this.totalLoad = null;
|
|
786
830
|
this.exStorageFileList = [];
|
|
787
831
|
if (this.injector) {
|
|
832
|
+
this.httpclient = this.injector.get(HttpClient);
|
|
788
833
|
this.localeid = localStorage.getItem("languageCode") || this.injector.get(LOCALE_ID);
|
|
789
834
|
this.localepipe = new LocalLangPipe(this.localeid);
|
|
790
835
|
}
|
|
@@ -1073,6 +1118,83 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1073
1118
|
function (file) {
|
|
1074
1119
|
this.msgService.error(this.localepipe.transform('uploadFailure') + file.errorMessage);
|
|
1075
1120
|
};
|
|
1121
|
+
/**
|
|
1122
|
+
* @param {?} uuid
|
|
1123
|
+
* @param {?} selectedFile
|
|
1124
|
+
* @param {?} fileName
|
|
1125
|
+
* @return {?}
|
|
1126
|
+
*/
|
|
1127
|
+
FileUploadComponent.prototype.handleFileInfo = /**
|
|
1128
|
+
* @param {?} uuid
|
|
1129
|
+
* @param {?} selectedFile
|
|
1130
|
+
* @param {?} fileName
|
|
1131
|
+
* @return {?}
|
|
1132
|
+
*/
|
|
1133
|
+
function (uuid, selectedFile, fileName) {
|
|
1134
|
+
var _this = this;
|
|
1135
|
+
return new Promise((/**
|
|
1136
|
+
* @param {?} resolve
|
|
1137
|
+
* @return {?}
|
|
1138
|
+
*/
|
|
1139
|
+
function (resolve) {
|
|
1140
|
+
/** @type {?} */
|
|
1141
|
+
var fileInfo;
|
|
1142
|
+
fileInfo = {
|
|
1143
|
+
id: uuid,
|
|
1144
|
+
name: fileName,
|
|
1145
|
+
type: selectedFile.type,
|
|
1146
|
+
source: "",
|
|
1147
|
+
size: _this.getFileSize(selectedFile.size),
|
|
1148
|
+
fileSize: selectedFile.size,
|
|
1149
|
+
picListDisplayName: _this.getPicListDisplayName(fileName),
|
|
1150
|
+
queueListDisplayName: _this.getQueueDisplayName(fileName),
|
|
1151
|
+
//content: reader.result.toString(),
|
|
1152
|
+
hasUploaded: false,
|
|
1153
|
+
mouseOn: false,
|
|
1154
|
+
selectd: false,
|
|
1155
|
+
isUploading: true,
|
|
1156
|
+
uploadResult: false,
|
|
1157
|
+
uploadProcess: 0,
|
|
1158
|
+
errorMessage: "",
|
|
1159
|
+
extensionDropListId: 0,
|
|
1160
|
+
extensionName: "",
|
|
1161
|
+
securityDropListId: 0,
|
|
1162
|
+
securityInfo: _this.securityInfoList[0]
|
|
1163
|
+
};
|
|
1164
|
+
if (_this.storageExtension != null)
|
|
1165
|
+
fileInfo.extensionName = _this.defaultPropertyName;
|
|
1166
|
+
/** @type {?} */
|
|
1167
|
+
var type = selectedFile.type;
|
|
1168
|
+
if (type.includes("tiff")) {
|
|
1169
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1170
|
+
}
|
|
1171
|
+
else if (type.includes("image")) {
|
|
1172
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Image);
|
|
1173
|
+
}
|
|
1174
|
+
else if (type.includes("word")) {
|
|
1175
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Word);
|
|
1176
|
+
}
|
|
1177
|
+
else if (type.includes("pdf")) {
|
|
1178
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Pdf);
|
|
1179
|
+
}
|
|
1180
|
+
else if (type.includes("plain")) {
|
|
1181
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Txt);
|
|
1182
|
+
}
|
|
1183
|
+
else if (type.includes("sheet") || type.includes("excel")) {
|
|
1184
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Excel);
|
|
1185
|
+
}
|
|
1186
|
+
else if (type.includes("powerpoint") || type.includes("presentation")) {
|
|
1187
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Powerpoint);
|
|
1188
|
+
}
|
|
1189
|
+
else {
|
|
1190
|
+
_this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1191
|
+
// let name: string = selectedFile.name;
|
|
1192
|
+
// let errType = name.substring(selectedFile.name.lastIndexOf('.'));
|
|
1193
|
+
// this.errTypeList.push(errType);
|
|
1194
|
+
}
|
|
1195
|
+
resolve(fileInfo);
|
|
1196
|
+
}));
|
|
1197
|
+
};
|
|
1076
1198
|
/**
|
|
1077
1199
|
* @param {?} uuid
|
|
1078
1200
|
* @param {?} selectedFile
|
|
@@ -1090,163 +1212,150 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1090
1212
|
function (uuid, selectedFile, fileName, state) {
|
|
1091
1213
|
var _this = this;
|
|
1092
1214
|
if (state === void 0) { state = FileState.New; }
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
fileInfo = {
|
|
1099
|
-
id: uuid,
|
|
1100
|
-
name: fileName,
|
|
1101
|
-
type: selectedFile.type,
|
|
1102
|
-
source: "",
|
|
1103
|
-
size: this.getFileSize(selectedFile.size),
|
|
1104
|
-
fileSize: selectedFile.size,
|
|
1105
|
-
picListDisplayName: this.getPicListDisplayName(fileName),
|
|
1106
|
-
queueListDisplayName: this.getQueueDisplayName(fileName),
|
|
1107
|
-
//content: reader.result.toString(),
|
|
1108
|
-
hasUploaded: false,
|
|
1109
|
-
mouseOn: false,
|
|
1110
|
-
selectd: false,
|
|
1111
|
-
isUploading: true,
|
|
1112
|
-
uploadResult: false,
|
|
1113
|
-
uploadProcess: 0,
|
|
1114
|
-
errorMessage: "",
|
|
1115
|
-
extensionDropListId: 0,
|
|
1116
|
-
extensionName: "",
|
|
1117
|
-
securityDropListId: 0,
|
|
1118
|
-
securityInfo: this.securityInfoList[0]
|
|
1119
|
-
};
|
|
1120
|
-
if (this.storageExtension != null)
|
|
1121
|
-
fileInfo.extensionName = this.defaultPropertyName;
|
|
1122
|
-
/** @type {?} */
|
|
1123
|
-
var chunkTotal = Math.ceil(selectedFile.size / this.bufferSize);
|
|
1124
|
-
/** @type {?} */
|
|
1125
|
-
var chunkIndex = 0;
|
|
1126
|
-
this.fileTotalChunk[uuid] = chunkTotal;
|
|
1127
|
-
/** @type {?} */
|
|
1128
|
-
var uploadFileInfo = new UploadFileInfo();
|
|
1129
|
-
uploadFileInfo.metadataId = uuid;
|
|
1130
|
-
uploadFileInfo.fileName = fileInfo.name;
|
|
1131
|
-
uploadFileInfo.fileSize = fileInfo.size;
|
|
1132
|
-
uploadFileInfo.state = state;
|
|
1133
|
-
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
1134
|
-
var _loop_2 = function () {
|
|
1135
|
-
/** @type {?} */
|
|
1136
|
-
var uploadInfo = new GspFormUploadEntity;
|
|
1137
|
-
uploadInfo.formId = this_2.formId;
|
|
1138
|
-
uploadInfo.mode = OperatingModes.Temp;
|
|
1139
|
-
uploadInfo.rootId = this_2.rootId;
|
|
1215
|
+
this.handleFileInfo(uuid, selectedFile, fileName).then((/**
|
|
1216
|
+
* @param {?} res
|
|
1217
|
+
* @return {?}
|
|
1218
|
+
*/
|
|
1219
|
+
function (res) {
|
|
1140
1220
|
/** @type {?} */
|
|
1141
|
-
var
|
|
1142
|
-
docInfo.fileName = fileName;
|
|
1143
|
-
docInfo.metadataId = uuid;
|
|
1144
|
-
docInfo.total = chunkTotal;
|
|
1145
|
-
this_2.uploadedChunk[docInfo.metadataId] = 0;
|
|
1221
|
+
var fileInfo = res;
|
|
1146
1222
|
/** @type {?} */
|
|
1147
|
-
var
|
|
1223
|
+
var chunkTotal = Math.ceil(selectedFile.size / _this.bufferSize);
|
|
1148
1224
|
/** @type {?} */
|
|
1149
|
-
var
|
|
1150
|
-
|
|
1151
|
-
// reader.readAsBinaryString(fileData);
|
|
1225
|
+
var chunkIndex = 0;
|
|
1226
|
+
_this.fileTotalChunk[uuid] = chunkTotal;
|
|
1152
1227
|
/** @type {?} */
|
|
1153
|
-
var
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1228
|
+
var uploadFileInfo = new UploadFileInfo();
|
|
1229
|
+
uploadFileInfo.metadataId = uuid;
|
|
1230
|
+
uploadFileInfo.fileName = fileInfo.name;
|
|
1231
|
+
uploadFileInfo.fileSize = fileInfo.size;
|
|
1232
|
+
uploadFileInfo.state = state;
|
|
1233
|
+
uploadFileInfo.securityInfo = _this.securityInfoList[0];
|
|
1234
|
+
while (chunkIndex < chunkTotal) {
|
|
1235
|
+
/** @type {?} */
|
|
1236
|
+
var uploadInfo = new GspFormUploadEntity;
|
|
1237
|
+
uploadInfo.formId = _this.formId;
|
|
1238
|
+
uploadInfo.mode = OperatingModes.Temp;
|
|
1239
|
+
uploadInfo.rootId = _this.rootId;
|
|
1240
|
+
/** @type {?} */
|
|
1241
|
+
var docInfo = new GspFormDocInfo;
|
|
1242
|
+
docInfo.fileName = fileName;
|
|
1243
|
+
docInfo.metadataId = uuid;
|
|
1244
|
+
docInfo.total = chunkTotal;
|
|
1245
|
+
_this.uploadedChunk[docInfo.metadataId] = 0;
|
|
1246
|
+
/** @type {?} */
|
|
1247
|
+
var nextSize = Math.min((chunkIndex + 1) * _this.bufferSize, selectedFile.size);
|
|
1248
|
+
/** @type {?} */
|
|
1249
|
+
var fileData = selectedFile.slice(chunkIndex * _this.bufferSize, nextSize);
|
|
1250
|
+
// let reader = new FileReader();
|
|
1251
|
+
// reader.readAsBinaryString(fileData);
|
|
1252
|
+
/** @type {?} */
|
|
1253
|
+
var innerIndex = chunkIndex;
|
|
1254
|
+
// reader.onload = () => {
|
|
1255
|
+
// docInfo.fileContent = btoa(reader.result.toString());
|
|
1256
|
+
docInfo.size = selectedFile.size;
|
|
1257
|
+
docInfo.index = innerIndex;
|
|
1258
|
+
docInfo.fileContent = "";
|
|
1259
|
+
//chunkIndex++;
|
|
1260
|
+
if (_this.haveExtensionProperty)
|
|
1261
|
+
docInfo.exPropertyName = _this.defaultPropertyName;
|
|
1262
|
+
//docInfo.isLast = true;
|
|
1263
|
+
uploadInfo.docInfo = docInfo;
|
|
1264
|
+
// let info = uploadInfo;
|
|
1265
|
+
// this.requestArray.push(this.uploadService.uploadFile(uploadInfo));
|
|
1266
|
+
// this.requestBodyArray.push(info);
|
|
1267
|
+
//封装请求formdata
|
|
1268
|
+
/** @type {?} */
|
|
1269
|
+
var formData = new FormData();
|
|
1270
|
+
formData.append('uploadInfo', JSON.stringify(uploadInfo));
|
|
1271
|
+
formData.append('docInfo', JSON.stringify(docInfo));
|
|
1272
|
+
formData.append('file', fileData);
|
|
1273
|
+
// }
|
|
1274
|
+
//console.log(chunkIndex + 1);
|
|
1275
|
+
chunkIndex = chunkIndex + 1;
|
|
1276
|
+
}
|
|
1168
1277
|
/** @type {?} */
|
|
1169
|
-
var
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
formData.append('file', fileData);
|
|
1173
|
-
this_2.uploadService.uploadSliceFile(formData).subscribe((/**
|
|
1174
|
-
* @param {?} res
|
|
1278
|
+
var index = -1;
|
|
1279
|
+
_this.files.forEach((/**
|
|
1280
|
+
* @param {?} x
|
|
1175
1281
|
* @return {?}
|
|
1176
1282
|
*/
|
|
1177
|
-
function (
|
|
1178
|
-
if (
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
_this.files[_this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
|
|
1182
|
-
}
|
|
1183
|
-
else {
|
|
1184
|
-
_this.uploadedChunk[docInfo.metadataId]++;
|
|
1185
|
-
_this.files[_this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((_this.uploadedChunk[docInfo.metadataId] / _this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
|
|
1186
|
-
if (_this.uploadedChunk[docInfo.metadataId] == _this.fileTotalChunk[docInfo.metadataId]) {
|
|
1187
|
-
_this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1188
|
-
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1189
|
-
_this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1190
|
-
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1191
|
-
_this.uploadedFileTotal++;
|
|
1192
|
-
}
|
|
1283
|
+
function (x) {
|
|
1284
|
+
if (x.name == fileInfo.name) {
|
|
1285
|
+
if (index == -1)
|
|
1286
|
+
index = _this.files.indexOf(x);
|
|
1193
1287
|
}
|
|
1194
1288
|
}));
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Excel);
|
|
1222
|
-
}
|
|
1223
|
-
else if (type.includes("powerpoint") || type.includes("presentation")) {
|
|
1224
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Powerpoint);
|
|
1225
|
-
}
|
|
1226
|
-
else {
|
|
1227
|
-
this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1228
|
-
// let name: string = selectedFile.name;
|
|
1229
|
-
// let errType = name.substring(selectedFile.name.lastIndexOf('.'));
|
|
1230
|
-
// this.errTypeList.push(errType);
|
|
1231
|
-
}
|
|
1232
|
-
/** @type {?} */
|
|
1233
|
-
var index = -1;
|
|
1234
|
-
this.files.forEach((/**
|
|
1235
|
-
* @param {?} x
|
|
1289
|
+
if (index != -1 && index != _this.files.length - 1) {
|
|
1290
|
+
_this.files.splice(index, 1);
|
|
1291
|
+
_this.uploadFileInfoList.splice(index, 1);
|
|
1292
|
+
_this.uploadedFileInfoList.splice(index, 1);
|
|
1293
|
+
_this.uploadedFileTotal--;
|
|
1294
|
+
}
|
|
1295
|
+
}));
|
|
1296
|
+
};
|
|
1297
|
+
/**
|
|
1298
|
+
* @param {?} formData
|
|
1299
|
+
* @param {?} fileInfo
|
|
1300
|
+
* @param {?} docInfo
|
|
1301
|
+
* @param {?} uploadFileInfo
|
|
1302
|
+
* @return {?}
|
|
1303
|
+
*/
|
|
1304
|
+
FileUploadComponent.prototype.sendUploadRequest = /**
|
|
1305
|
+
* @param {?} formData
|
|
1306
|
+
* @param {?} fileInfo
|
|
1307
|
+
* @param {?} docInfo
|
|
1308
|
+
* @param {?} uploadFileInfo
|
|
1309
|
+
* @return {?}
|
|
1310
|
+
*/
|
|
1311
|
+
function (formData, fileInfo, docInfo, uploadFileInfo) {
|
|
1312
|
+
var _this = this;
|
|
1313
|
+
this.uploadSliceFile(formData).subscribe((/**
|
|
1314
|
+
* @param {?} res
|
|
1236
1315
|
* @return {?}
|
|
1237
1316
|
*/
|
|
1238
|
-
function (
|
|
1239
|
-
if (
|
|
1240
|
-
|
|
1241
|
-
|
|
1317
|
+
function (res) {
|
|
1318
|
+
if (res != null) {
|
|
1319
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadResult = false;
|
|
1320
|
+
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1321
|
+
_this.files[_this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
|
|
1322
|
+
}
|
|
1323
|
+
else {
|
|
1324
|
+
_this.uploadedChunk[docInfo.metadataId]++;
|
|
1325
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((_this.uploadedChunk[docInfo.metadataId] / _this.fileTotalChunk[docInfo.metadataId] * 100).toFixed(0));
|
|
1326
|
+
if (_this.uploadedChunk[docInfo.metadataId] == _this.fileTotalChunk[docInfo.metadataId]) {
|
|
1327
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1328
|
+
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1329
|
+
_this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1330
|
+
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1331
|
+
_this.uploadedFileTotal++;
|
|
1332
|
+
}
|
|
1242
1333
|
}
|
|
1243
1334
|
}));
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {?} formdata
|
|
1338
|
+
* @return {?}
|
|
1339
|
+
*/
|
|
1340
|
+
FileUploadComponent.prototype.uploadSliceFile = /**
|
|
1341
|
+
* @param {?} formdata
|
|
1342
|
+
* @return {?}
|
|
1343
|
+
*/
|
|
1344
|
+
function (formdata) {
|
|
1345
|
+
/** @type {?} */
|
|
1346
|
+
var url = "/api/runtime/dfs/v1.0/formdoc/slice";
|
|
1347
|
+
//url = "/api/runtime/dfs/v1.0/formdoc/list";
|
|
1348
|
+
return this.httpclient.post(url, formdata).pipe(tap((/**
|
|
1349
|
+
* @param {?} res
|
|
1350
|
+
* @return {?}
|
|
1351
|
+
*/
|
|
1352
|
+
function (res) { })), catchError((/**
|
|
1353
|
+
* @param {?} error
|
|
1354
|
+
* @return {?}
|
|
1355
|
+
*/
|
|
1356
|
+
function (error) {
|
|
1357
|
+
return of$1(error);
|
|
1358
|
+
})));
|
|
1250
1359
|
};
|
|
1251
1360
|
/**
|
|
1252
1361
|
* @return {?}
|
|
@@ -1437,59 +1546,90 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1437
1546
|
*/
|
|
1438
1547
|
function (selectdFile, fileInfo, docType) {
|
|
1439
1548
|
var _this = this;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1549
|
+
return new Promise((/**
|
|
1550
|
+
* @param {?} resolve
|
|
1551
|
+
* @return {?}
|
|
1552
|
+
*/
|
|
1553
|
+
function (resolve) {
|
|
1554
|
+
switch (docType) {
|
|
1555
|
+
case DocType.Word: {
|
|
1556
|
+
fileInfo.source = "/platform/runtime/dfs/images/word.png";
|
|
1557
|
+
_this.files.push(fileInfo);
|
|
1558
|
+
break;
|
|
1559
|
+
}
|
|
1560
|
+
case DocType.Pdf: {
|
|
1561
|
+
fileInfo.source = "/platform/runtime/dfs/images/pdf.png";
|
|
1562
|
+
_this.files.push(fileInfo);
|
|
1563
|
+
break;
|
|
1564
|
+
}
|
|
1565
|
+
case DocType.Excel: {
|
|
1566
|
+
fileInfo.source = "/platform/runtime/dfs/images/excel.png";
|
|
1567
|
+
_this.files.push(fileInfo);
|
|
1568
|
+
break;
|
|
1569
|
+
}
|
|
1570
|
+
case DocType.Txt: {
|
|
1571
|
+
fileInfo.source = "/platform/runtime/dfs/images/txt.png";
|
|
1572
|
+
_this.files.push(fileInfo);
|
|
1573
|
+
break;
|
|
1574
|
+
}
|
|
1575
|
+
case DocType.Powerpoint: {
|
|
1576
|
+
fileInfo.source = "/platform/runtime/dfs/images/ppt.png";
|
|
1577
|
+
_this.files.push(fileInfo);
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
case DocType.Other: {
|
|
1581
|
+
fileInfo.source = "/platform/runtime/dfs/images/file.png";
|
|
1582
|
+
_this.files.push(fileInfo);
|
|
1583
|
+
break;
|
|
1584
|
+
}
|
|
1585
|
+
case DocType.Image: {
|
|
1586
|
+
_this.getImageUrl(selectdFile).then((/**
|
|
1587
|
+
* @param {?} res
|
|
1588
|
+
* @return {?}
|
|
1589
|
+
*/
|
|
1590
|
+
function (res) {
|
|
1591
|
+
fileInfo.source = res;
|
|
1592
|
+
_this.files.push(fileInfo);
|
|
1593
|
+
resolve(fileInfo);
|
|
1594
|
+
}));
|
|
1595
|
+
}
|
|
1470
1596
|
}
|
|
1471
|
-
|
|
1597
|
+
resolve(fileInfo);
|
|
1598
|
+
}));
|
|
1599
|
+
};
|
|
1600
|
+
/**
|
|
1601
|
+
* @param {?} selectdFile
|
|
1602
|
+
* @return {?}
|
|
1603
|
+
*/
|
|
1604
|
+
FileUploadComponent.prototype.getImageUrl = /**
|
|
1605
|
+
* @param {?} selectdFile
|
|
1606
|
+
* @return {?}
|
|
1607
|
+
*/
|
|
1608
|
+
function (selectdFile) {
|
|
1609
|
+
var _this = this;
|
|
1610
|
+
return new Promise((/**
|
|
1611
|
+
* @param {?} resolve
|
|
1612
|
+
* @return {?}
|
|
1613
|
+
*/
|
|
1614
|
+
function (resolve) {
|
|
1615
|
+
/** @type {?} */
|
|
1616
|
+
var reader = new FileReader();
|
|
1617
|
+
reader.readAsDataURL(selectdFile);
|
|
1618
|
+
reader.onload = (/**
|
|
1619
|
+
* @param {?} _event
|
|
1620
|
+
* @return {?}
|
|
1621
|
+
*/
|
|
1622
|
+
function (_event) {
|
|
1472
1623
|
/** @type {?} */
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1475
|
-
reader_1.onload = (/**
|
|
1476
|
-
* @param {?} _event
|
|
1477
|
-
* @return {?}
|
|
1478
|
-
*/
|
|
1479
|
-
function (_event) {
|
|
1624
|
+
var imgUrl = reader.result;
|
|
1625
|
+
if (_this.injector != null) {
|
|
1480
1626
|
/** @type {?} */
|
|
1481
|
-
var
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
else
|
|
1488
|
-
fileInfo.source = imgUrl;
|
|
1489
|
-
_this.files.push(fileInfo);
|
|
1490
|
-
});
|
|
1491
|
-
break;
|
|
1492
|
-
}
|
|
1627
|
+
var sanitizer = _this.injector.get(DomSanitizer);
|
|
1628
|
+
imgUrl = sanitizer.bypassSecurityTrustResourceUrl(imgUrl);
|
|
1629
|
+
}
|
|
1630
|
+
resolve(imgUrl);
|
|
1631
|
+
});
|
|
1632
|
+
}));
|
|
1493
1633
|
};
|
|
1494
1634
|
/**
|
|
1495
1635
|
* @param {?} strList
|
|
@@ -1742,7 +1882,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1742
1882
|
{ type: Component, args: [{
|
|
1743
1883
|
selector: 'app-file-upload',
|
|
1744
1884
|
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>",
|
|
1745
|
-
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:
|
|
1885
|
+
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}"]
|
|
1746
1886
|
}] }
|
|
1747
1887
|
];
|
|
1748
1888
|
/** @nocollapse */
|
|
@@ -1949,11 +2089,12 @@ var UploadModule = /** @class */ (function () {
|
|
|
1949
2089
|
LoadingModule.forRoot(),
|
|
1950
2090
|
ProgressModule,
|
|
1951
2091
|
FormsModule,
|
|
1952
|
-
ComboListModule
|
|
2092
|
+
ComboListModule,
|
|
2093
|
+
HttpClientModule
|
|
1953
2094
|
],
|
|
1954
2095
|
exports: [FileUploadComponent],
|
|
1955
2096
|
entryComponents: [FileUploadComponent],
|
|
1956
|
-
providers: [UploadService, DownloadService, LanguageService,
|
|
2097
|
+
providers: [UploadService, DownloadService, LanguageService, HttpService, CacheService, SessionService,
|
|
1957
2098
|
{ provide: LOCALE_ID, useValue: ɵ0$1 },]
|
|
1958
2099
|
},] }
|
|
1959
2100
|
];
|
|
@@ -2316,6 +2457,6 @@ var SecurityEntity = /** @class */ (function () {
|
|
|
2316
2457
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2317
2458
|
*/
|
|
2318
2459
|
|
|
2319
|
-
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 };
|
|
2460
|
+
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 };
|
|
2320
2461
|
|
|
2321
2462
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|