@gsp-svc/formdoc-upload 0.1.31 → 0.1.32
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 +135 -8
- 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/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 +61 -9
- package/esm2015/lib/upload/upload.service.js +52 -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/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 +66 -9
- package/esm5/lib/upload/upload.service.js +61 -1
- package/esm5/lib/uploaddialog.service.js +2 -1
- package/esm5/public-api.js +4 -1
- package/fesm2015/gsp-svc-formdoc-upload.js +122 -10
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +142 -10
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- 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 +6 -0
- package/lib/upload/upload.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -310,6 +310,28 @@
|
|
|
310
310
|
return of.of(error);
|
|
311
311
|
})));
|
|
312
312
|
};
|
|
313
|
+
/**
|
|
314
|
+
* @param {?} baseInfo
|
|
315
|
+
* @return {?}
|
|
316
|
+
*/
|
|
317
|
+
UploadService.prototype.getSecurityInfoList = /**
|
|
318
|
+
* @param {?} baseInfo
|
|
319
|
+
* @return {?}
|
|
320
|
+
*/
|
|
321
|
+
function (baseInfo) {
|
|
322
|
+
/** @type {?} */
|
|
323
|
+
var url = "/api/runtime/dfs/v1.0/storagestrategy/security";
|
|
324
|
+
url = url + "?id=" + baseInfo.securityId + "&level=" + baseInfo.securityLevel;
|
|
325
|
+
return this.http.get(url).pipe(operators.tap(( /**
|
|
326
|
+
* @param {?} res
|
|
327
|
+
* @return {?}
|
|
328
|
+
*/function (res) { })), operators.catchError(( /**
|
|
329
|
+
* @param {?} error
|
|
330
|
+
* @return {?}
|
|
331
|
+
*/function (error) {
|
|
332
|
+
return of.of(error);
|
|
333
|
+
})));
|
|
334
|
+
};
|
|
313
335
|
/**
|
|
314
336
|
* @param {?} storageInfoList
|
|
315
337
|
* @param {?} rootId
|
|
@@ -337,6 +359,39 @@
|
|
|
337
359
|
return of.of(error);
|
|
338
360
|
})));
|
|
339
361
|
};
|
|
362
|
+
/**
|
|
363
|
+
* @param {?} uploadFileInfoList
|
|
364
|
+
* @param {?} rootId
|
|
365
|
+
* @return {?}
|
|
366
|
+
*/
|
|
367
|
+
UploadService.prototype.saveSecurityInfo = /**
|
|
368
|
+
* @param {?} uploadFileInfoList
|
|
369
|
+
* @param {?} rootId
|
|
370
|
+
* @return {?}
|
|
371
|
+
*/
|
|
372
|
+
function (uploadFileInfoList, rootId) {
|
|
373
|
+
/** @type {?} */
|
|
374
|
+
var url = "/api/runtime/dfs/v1.0/doc/exproperty";
|
|
375
|
+
/** @type {?} */
|
|
376
|
+
var reqList = [];
|
|
377
|
+
uploadFileInfoList.forEach(( /**
|
|
378
|
+
* @param {?} element
|
|
379
|
+
* @return {?}
|
|
380
|
+
*/function (element) {
|
|
381
|
+
/** @type {?} */
|
|
382
|
+
var request = { id: element.metadataId, rootId: rootId, exProperty: JSON.stringify(element.securityInfo) };
|
|
383
|
+
reqList.push(request);
|
|
384
|
+
}));
|
|
385
|
+
return this.http.post(url, reqList).pipe(operators.tap(( /**
|
|
386
|
+
* @param {?} res
|
|
387
|
+
* @return {?}
|
|
388
|
+
*/function (res) { })), operators.catchError(( /**
|
|
389
|
+
* @param {?} error
|
|
390
|
+
* @return {?}
|
|
391
|
+
*/function (error) {
|
|
392
|
+
return of.of(error);
|
|
393
|
+
})));
|
|
394
|
+
};
|
|
340
395
|
/**
|
|
341
396
|
* @param {?} formId
|
|
342
397
|
* @param {?} rootId
|
|
@@ -619,10 +674,12 @@
|
|
|
619
674
|
this.uploadedProcess = {};
|
|
620
675
|
this.defaultPropertyName = "";
|
|
621
676
|
this.propertiesNames = [];
|
|
677
|
+
this.securityInfoList = [];
|
|
622
678
|
this.queueListStyle = { width: '480px' };
|
|
623
679
|
this.dropListValue = "";
|
|
624
680
|
this.uploadedFileTotal = 0;
|
|
625
681
|
this.haveExtensionProperty = false;
|
|
682
|
+
this.haveSecurityInfo = false;
|
|
626
683
|
this.uploadedFileInfoList = [];
|
|
627
684
|
this.oldUploadedFileList = [];
|
|
628
685
|
//uploadedNameList = [];
|
|
@@ -631,6 +688,7 @@
|
|
|
631
688
|
this.fileType = "*";
|
|
632
689
|
this.fileCount = 0;
|
|
633
690
|
this.oldIdList = [];
|
|
691
|
+
this.securityInfo = null;
|
|
634
692
|
this.totalLoad = null;
|
|
635
693
|
this.exStorageFileList = [];
|
|
636
694
|
if (this.injector) {
|
|
@@ -649,6 +707,23 @@
|
|
|
649
707
|
if (navigator.userAgent.indexOf('Firefox') >= 0)
|
|
650
708
|
this.checkboxPos.top = '14px';
|
|
651
709
|
//if (this.storageService != null) {
|
|
710
|
+
if (this.securityInfo != null) {
|
|
711
|
+
this.uploadService.getSecurityInfoList(this.securityInfo).subscribe(( /**
|
|
712
|
+
* @param {?} res
|
|
713
|
+
* @return {?}
|
|
714
|
+
*/function (res) {
|
|
715
|
+
_this.haveSecurityInfo = true;
|
|
716
|
+
/** @type {?} */
|
|
717
|
+
var i = 0;
|
|
718
|
+
res.forEach(( /**
|
|
719
|
+
* @param {?} element
|
|
720
|
+
* @return {?}
|
|
721
|
+
*/function (element) {
|
|
722
|
+
_this.securityInfoList.push({ id: i.toString(), securityId: element.securityId, securityLevel: element.securityLevel, name: element.name });
|
|
723
|
+
i++;
|
|
724
|
+
}));
|
|
725
|
+
}));
|
|
726
|
+
}
|
|
652
727
|
this.uploadService.getStorageExtensionInfo().subscribe(( /**
|
|
653
728
|
* @param {?} res
|
|
654
729
|
* @return {?}
|
|
@@ -700,10 +775,11 @@
|
|
|
700
775
|
* @return {?}
|
|
701
776
|
*/
|
|
702
777
|
function () {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
778
|
+
this.hasSelectedFile = true;
|
|
779
|
+
// if (this.totalLoad == null)
|
|
780
|
+
// this.totalLoad = this.loadService.show({
|
|
781
|
+
// message: this.localepipe.transform('uploading')
|
|
782
|
+
// });
|
|
707
783
|
};
|
|
708
784
|
/**
|
|
709
785
|
* @param {?} $event
|
|
@@ -718,8 +794,8 @@
|
|
|
718
794
|
// message: this.localepipe.transform('uploading')
|
|
719
795
|
// });
|
|
720
796
|
var _this = this;
|
|
721
|
-
this.totalLoad.close();
|
|
722
|
-
this.totalLoad = null;
|
|
797
|
+
// this.totalLoad.close();
|
|
798
|
+
// this.totalLoad = null;
|
|
723
799
|
this.hasSelectedFile = true;
|
|
724
800
|
this.selectedFiles = document.querySelector('#file');
|
|
725
801
|
if (this.fileCount > 0) {
|
|
@@ -917,7 +993,9 @@
|
|
|
917
993
|
uploadProcess: 0,
|
|
918
994
|
errorMessage: "",
|
|
919
995
|
extensionDropListId: 0,
|
|
920
|
-
extensionName: ""
|
|
996
|
+
extensionName: "",
|
|
997
|
+
securityDropListId: 0,
|
|
998
|
+
securityInfo: this.securityInfoList[0]
|
|
921
999
|
};
|
|
922
1000
|
if (this.storageExtension != null)
|
|
923
1001
|
fileInfo.extensionName = this.defaultPropertyName;
|
|
@@ -932,6 +1010,7 @@
|
|
|
932
1010
|
uploadFileInfo.fileName = fileInfo.name;
|
|
933
1011
|
uploadFileInfo.fileSize = fileInfo.size;
|
|
934
1012
|
uploadFileInfo.state = state;
|
|
1013
|
+
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
935
1014
|
var _loop_2 = function () {
|
|
936
1015
|
/** @type {?} */
|
|
937
1016
|
var uploadInfo = new GspFormUploadEntity;
|
|
@@ -1298,6 +1377,25 @@
|
|
|
1298
1377
|
* @param {?} file
|
|
1299
1378
|
* @return {?}
|
|
1300
1379
|
*/
|
|
1380
|
+
FileUploadComponent.prototype.securityChange = /**
|
|
1381
|
+
* @param {?} $event
|
|
1382
|
+
* @param {?} file
|
|
1383
|
+
* @return {?}
|
|
1384
|
+
*/
|
|
1385
|
+
function ($event, file) {
|
|
1386
|
+
file.securityInfo = $event.data;
|
|
1387
|
+
/** @type {?} */
|
|
1388
|
+
var uploadFile = this.uploadFileInfoList.filter(( /**
|
|
1389
|
+
* @param {?} x
|
|
1390
|
+
* @return {?}
|
|
1391
|
+
*/function (x) { return x.metadataId = file.id; }))[0];
|
|
1392
|
+
uploadFile.securityInfo = $event.data;
|
|
1393
|
+
};
|
|
1394
|
+
/**
|
|
1395
|
+
* @param {?} $event
|
|
1396
|
+
* @param {?} file
|
|
1397
|
+
* @return {?}
|
|
1398
|
+
*/
|
|
1301
1399
|
FileUploadComponent.prototype.typeChange = /**
|
|
1302
1400
|
* @param {?} $event
|
|
1303
1401
|
* @param {?} file
|
|
@@ -1353,6 +1451,9 @@
|
|
|
1353
1451
|
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1354
1452
|
return rxjs.of(false);
|
|
1355
1453
|
}
|
|
1454
|
+
if (this.haveSecurityInfo) {
|
|
1455
|
+
this.uploadService.saveSecurityInfo(this.uploadFileInfoList, this.rootId).subscribe();
|
|
1456
|
+
}
|
|
1356
1457
|
if (this.storageExtension == null)
|
|
1357
1458
|
return rxjs.of(this.uploadFileInfoList);
|
|
1358
1459
|
else {
|
|
@@ -1495,7 +1596,7 @@
|
|
|
1495
1596
|
FileUploadComponent.decorators = [
|
|
1496
1597
|
{ type: i0.Component, args: [{
|
|
1497
1598
|
selector: 'app-file-upload',
|
|
1498
|
-
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>",
|
|
1599
|
+
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-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; \"\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>",
|
|
1499
1600
|
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}"]
|
|
1500
1601
|
}] }
|
|
1501
1602
|
];
|
|
@@ -1514,6 +1615,7 @@
|
|
|
1514
1615
|
fileType: [{ type: i0.Input }],
|
|
1515
1616
|
fileCount: [{ type: i0.Input }],
|
|
1516
1617
|
oldIdList: [{ type: i0.Input }],
|
|
1618
|
+
securityInfo: [{ type: i0.Input }],
|
|
1517
1619
|
opCell: [{ type: i0.ViewChild, args: ['opCell',] }]
|
|
1518
1620
|
};
|
|
1519
1621
|
return FileUploadComponent;
|
|
@@ -1916,6 +2018,7 @@
|
|
|
1916
2018
|
var uploadRef = uploadFactory.create(_this.injector);
|
|
1917
2019
|
if (limit != null) {
|
|
1918
2020
|
uploadRef.instance.fileCount = limit.fileCount;
|
|
2021
|
+
uploadRef.instance.securityInfo = limit.securityInfo;
|
|
1919
2022
|
if (limit.fileType != null && limit.fileType != "")
|
|
1920
2023
|
uploadRef.instance.fileType = limit.fileType;
|
|
1921
2024
|
}
|
|
@@ -2011,6 +2114,7 @@
|
|
|
2011
2114
|
function UploadLimit() {
|
|
2012
2115
|
this.fileType = "*";
|
|
2013
2116
|
this.fileCount = 0;
|
|
2117
|
+
this.securityInfo = null;
|
|
2014
2118
|
}
|
|
2015
2119
|
return UploadLimit;
|
|
2016
2120
|
}());
|
|
@@ -2045,6 +2149,26 @@
|
|
|
2045
2149
|
return FileInfo;
|
|
2046
2150
|
}());
|
|
2047
2151
|
|
|
2152
|
+
/**
|
|
2153
|
+
* @fileoverview added by tsickle
|
|
2154
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2155
|
+
*/
|
|
2156
|
+
var GspDocSecurityBaseInfo = /** @class */ (function () {
|
|
2157
|
+
function GspDocSecurityBaseInfo() {
|
|
2158
|
+
}
|
|
2159
|
+
return GspDocSecurityBaseInfo;
|
|
2160
|
+
}());
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* @fileoverview added by tsickle
|
|
2164
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2165
|
+
*/
|
|
2166
|
+
var SecurityEntity = /** @class */ (function () {
|
|
2167
|
+
function SecurityEntity() {
|
|
2168
|
+
}
|
|
2169
|
+
return SecurityEntity;
|
|
2170
|
+
}());
|
|
2171
|
+
|
|
2048
2172
|
/**
|
|
2049
2173
|
* @fileoverview added by tsickle
|
|
2050
2174
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -2077,6 +2201,9 @@
|
|
|
2077
2201
|
exports.FileInfo = FileInfo;
|
|
2078
2202
|
exports.OperatingModes = OperatingModes;
|
|
2079
2203
|
exports.FileState = FileState;
|
|
2204
|
+
exports.GspDocSecurityBaseInfo = GspDocSecurityBaseInfo;
|
|
2205
|
+
exports.SecurityEntity = SecurityEntity;
|
|
2206
|
+
exports.ExStorageFileInfo = ExStorageFileInfo;
|
|
2080
2207
|
exports.ɵb = LocalLangPipe;
|
|
2081
2208
|
|
|
2082
2209
|
Object.defineProperty(exports, '__esModule', { value: true });
|