nuxeo-development-framework 3.1.9 → 3.2.0
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/nuxeo-development-framework.umd.js +31 -9
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/activities-log/activities-log/activities-log.component.js +3 -3
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +26 -6
- package/esm2015/lib/shared-services/file-manager.service.js +4 -3
- package/fesm2015/nuxeo-development-framework.js +30 -9
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +1 -0
- package/lib/shared-services/file-manager.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -21697,9 +21697,10 @@
|
|
|
21697
21697
|
throw err;
|
|
21698
21698
|
}));
|
|
21699
21699
|
};
|
|
21700
|
-
FileManagerService.prototype.createFile = function (payload, id) {
|
|
21700
|
+
FileManagerService.prototype.createFile = function (payload, id, customApi) {
|
|
21701
|
+
var api = (customApi) ? customApi : 'Document.DynamicRegister';
|
|
21701
21702
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
21702
|
-
.operation(
|
|
21703
|
+
.operation(api, {
|
|
21703
21704
|
url: "" + this.environment.nuxeo + this.environment.customAutomation,
|
|
21704
21705
|
})
|
|
21705
21706
|
.params(Object.assign({}, payload.params))
|
|
@@ -23459,7 +23460,7 @@
|
|
|
23459
23460
|
this.myConfigService = myConfigService;
|
|
23460
23461
|
this.success = new i0.EventEmitter();
|
|
23461
23462
|
this.filterForm = new i6.FormGroup({
|
|
23462
|
-
allevent: new i6.FormControl(
|
|
23463
|
+
allevent: new i6.FormControl(false),
|
|
23463
23464
|
});
|
|
23464
23465
|
this.p = 1;
|
|
23465
23466
|
this.count = 100;
|
|
@@ -23539,7 +23540,7 @@
|
|
|
23539
23540
|
});
|
|
23540
23541
|
}
|
|
23541
23542
|
else {
|
|
23542
|
-
res.entries.filter(function (f) { return
|
|
23543
|
+
res.entries.filter(function (f) { return _this.myConfigService.myConfiguration.logs.excludedStates.includes(f.eventId); })
|
|
23543
23544
|
.map(function (item) {
|
|
23544
23545
|
var _a, _b, _c;
|
|
23545
23546
|
if ((item === null || item === void 0 ? void 0 : item.eventId) == "Download") {
|
|
@@ -25949,16 +25950,24 @@
|
|
|
25949
25950
|
};
|
|
25950
25951
|
CreateModalComponent.prototype.createDocument = function () {
|
|
25951
25952
|
var _this = this;
|
|
25953
|
+
var _a;
|
|
25952
25954
|
this.creating = true;
|
|
25953
25955
|
this.uploadMangmentService.failedFiles = [];
|
|
25954
25956
|
this.uploadMangmentService.GeneralFormValidation = this.checkValidation();
|
|
25955
25957
|
if (this.uploadMangmentService.GeneralFormValidation) {
|
|
25956
|
-
this.constructPayLoad(this.uploadMangmentService.uploadedFilesStatus.uploadedFiles);
|
|
25957
25958
|
var apiCalls_1 = [];
|
|
25958
|
-
|
|
25959
|
-
|
|
25960
|
-
|
|
25961
|
-
|
|
25959
|
+
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.path.includes('/default-domain/workspaces/DMS/')) {
|
|
25960
|
+
this.constructPayLoad(this.uploadMangmentService.uploadedFilesStatus.uploadedFiles);
|
|
25961
|
+
this.payloadList.map(function (payload) {
|
|
25962
|
+
apiCalls_1.push(_this.fileMangerService.createFile(payload, _this.fileManagerService.selectedFolderId));
|
|
25963
|
+
});
|
|
25964
|
+
}
|
|
25965
|
+
else {
|
|
25966
|
+
this.constructPayLoadToWorkSpace(this.uploadMangmentService.uploadedFilesStatus.uploadedFiles);
|
|
25967
|
+
this.payloadList.map(function (payload) {
|
|
25968
|
+
apiCalls_1.push(_this.fileMangerService.createFile(payload, _this.fileManagerService.selectedFolderId, 'DMS.CreateDocumentFromBlob'));
|
|
25969
|
+
});
|
|
25970
|
+
}
|
|
25962
25971
|
rxjs.forkJoin(apiCalls_1).subscribe(function (response) {
|
|
25963
25972
|
//console.log(res);
|
|
25964
25973
|
_this.creating = false;
|
|
@@ -25990,6 +25999,19 @@
|
|
|
25990
25999
|
this.creating = false;
|
|
25991
26000
|
}
|
|
25992
26001
|
};
|
|
26002
|
+
CreateModalComponent.prototype.constructPayLoadToWorkSpace = function (files) {
|
|
26003
|
+
var _this = this;
|
|
26004
|
+
this.payloadList = [];
|
|
26005
|
+
files.map(function (file) {
|
|
26006
|
+
var param = {
|
|
26007
|
+
"fileindex": 0,
|
|
26008
|
+
"fileName": file.staticData.title,
|
|
26009
|
+
"batchid": file.batch.blob['upload-batch'],
|
|
26010
|
+
"description": _this.fileForm.controls.description.value
|
|
26011
|
+
};
|
|
26012
|
+
_this.payloadList.push({ params: param, originFile: file });
|
|
26013
|
+
});
|
|
26014
|
+
};
|
|
25993
26015
|
CreateModalComponent.prototype.tryAgainCreateDocument = function () {
|
|
25994
26016
|
this.uploadMangmentService.uploadFilesMangment(this.uploadMangmentService.failedFiles);
|
|
25995
26017
|
};
|