@eo-sdk/client 8.15.0-rc.1 → 8.16.0-rc.1
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/app/eo-framework/actions/actions/open-context-action/open-context-action.d.ts +2 -0
- package/app/eo-framework/actions/actions/share-object-action/share-object/share-object.component.d.ts +1 -0
- package/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.d.ts +3 -1
- package/app/eo-framework-core/agent/agent.service.d.ts +3 -2
- package/assets/_default/i18n/de.json +5 -3
- package/assets/_default/i18n/en.json +5 -3
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +4275 -4240
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
- package/bundles/eo-sdk-client.umd.js +40 -20
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/eo-sdk-client.metadata.json +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/app/eo-client/result-state/result-state.component.js +3 -3
- package/esm2015/app/eo-framework/actions/actions/delete-content-action/delete-content-action.js +2 -3
- package/esm2015/app/eo-framework/actions/actions/open-context-action/open-context-action.js +11 -4
- package/esm2015/app/eo-framework/actions/actions/share-object-action/share-object/share-object.component.js +10 -4
- package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +2 -2
- package/esm2015/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.js +3 -3
- package/esm2015/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.js +11 -4
- package/esm2015/app/eo-framework/object-form/object-form/object-form.component.js +4 -4
- package/esm2015/app/eo-framework/ui/eo-dialog/eo-dialog.component.js +1 -2
- package/esm2015/app/eo-framework-core/agent/agent.service.js +7 -5
- package/esm2015/projects/eo-sdk/core/lib/config/core-config.js +3 -1
- package/esm2015/projects/eo-sdk/core/lib/config/core-init.service.js +4 -2
- package/esm2015/projects/eo-sdk/core/lib/service/auth/auth.service.js +4 -3
- package/esm2015/projects/eo-sdk/core/lib/service/backend/backend.service.js +11 -7
- package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +7 -5
- package/esm2015/projects/eo-sdk/core/lib/service/upload/upload.service.js +8 -4
- package/esm2015/projects/eo-sdk/core/lib/util/utils.js +25 -1
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +3769 -3735
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +41 -22
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
- package/projects/eo-sdk/core/lib/config/core-config.d.ts +1 -0
- package/projects/eo-sdk/core/lib/service/backend/backend.service.d.ts +3 -1
- package/projects/eo-sdk/core/lib/service/dms/dms.service.d.ts +4 -3
- package/projects/eo-sdk/core/lib/service/upload/upload.service.d.ts +3 -1
- package/projects/eo-sdk/core/lib/util/utils.d.ts +3 -0
- package/projects/eo-sdk/core/package.json +1 -1
|
@@ -761,7 +761,8 @@
|
|
|
761
761
|
agentConfigKeys["LOCKSETTINGS"] = "locksettings";
|
|
762
762
|
})(exports.agentConfigKeys || (exports.agentConfigKeys = {}));
|
|
763
763
|
var AgentService = /** @class */ (function () {
|
|
764
|
-
function AgentService(logger, http, systemService, backendService, userService, translate, notifications, appCacheService) {
|
|
764
|
+
function AgentService(coreConfig, logger, http, systemService, backendService, userService, translate, notifications, appCacheService) {
|
|
765
|
+
this.coreConfig = coreConfig;
|
|
765
766
|
this.logger = logger;
|
|
766
767
|
this.http = http;
|
|
767
768
|
this.systemService = systemService;
|
|
@@ -793,7 +794,7 @@
|
|
|
793
794
|
};
|
|
794
795
|
AgentService.prototype.getAgentConfig = function () {
|
|
795
796
|
var _this = this;
|
|
796
|
-
return this.http.get('assets/_default/config/extend.json').pipe(operators.catchError(function () { return rxjs.of(null); }), operators.tap(function (config) { return _this.agentConfig.next(Object.assign({}, config === null || config === void 0 ? void 0 : config.agent)); }), operators.map(function (config) { return config === null || config === void 0 ? void 0 : config.agent; }));
|
|
797
|
+
return this.http.get('assets/_default/config/extend.json', { withCredentials: this.coreConfig.withCredentials }).pipe(operators.catchError(function () { return rxjs.of(null); }), operators.tap(function (config) { return _this.agentConfig.next(Object.assign({}, config === null || config === void 0 ? void 0 : config.agent)); }), operators.map(function (config) { return config === null || config === void 0 ? void 0 : config.agent; }));
|
|
797
798
|
};
|
|
798
799
|
Object.defineProperty(AgentService.prototype, "isConnected", {
|
|
799
800
|
get: function () {
|
|
@@ -932,6 +933,7 @@
|
|
|
932
933
|
{ type: i0.Injectable }
|
|
933
934
|
];
|
|
934
935
|
AgentService.ctorParameters = function () { return [
|
|
936
|
+
{ type: i1.CoreConfig, decorators: [{ type: i0.Inject, args: [i1.CORE_CONFIG,] }] },
|
|
935
937
|
{ type: i1.Logger },
|
|
936
938
|
{ type: http.HttpClient },
|
|
937
939
|
{ type: i1.SystemService },
|
|
@@ -4177,7 +4179,6 @@
|
|
|
4177
4179
|
.pipe(operators.takeUntil(_this.componentDestroyed$), operators.filter(function (evt) { return (_this.active || evt.data.id === _this.parentId) &&
|
|
4178
4180
|
evt.data.id !== _this.id; }))
|
|
4179
4181
|
.subscribe(function (event) {
|
|
4180
|
-
_this.toggleActive(!event.data.active, !event.data.active);
|
|
4181
4182
|
_this.parentId = event.data.active ? event.data.id : '';
|
|
4182
4183
|
});
|
|
4183
4184
|
return _this;
|
|
@@ -5282,7 +5283,7 @@
|
|
|
5282
5283
|
AppSearchComponent.prototype.triggerSearch = function () {
|
|
5283
5284
|
var _this = this;
|
|
5284
5285
|
this.query.resolveReference = true;
|
|
5285
|
-
var uriParam = encodeURIComponent(
|
|
5286
|
+
var uriParam = encodeURIComponent(i1.Utils.formDataStringify(this.query.getQueryJson()));
|
|
5286
5287
|
this.router.navigate([{ outlets: { modal: null } }]).then(function () {
|
|
5287
5288
|
var uriParamQuery = { queryParams: { query: uriParam } };
|
|
5288
5289
|
_this.router.navigate(['/result'], uriParamQuery);
|
|
@@ -10419,7 +10420,7 @@
|
|
|
10419
10420
|
// check if indexdata has been changed
|
|
10420
10421
|
var currentFormData = this.getFormData();
|
|
10421
10422
|
var idxChange = compare ? JSON.stringify(this.formData) !== JSON.stringify(currentFormData) : false;
|
|
10422
|
-
this.formData =
|
|
10423
|
+
this.formData = i1.Utils.formDataParse(i1.Utils.formDataStringify(currentFormData));
|
|
10423
10424
|
if (this.form) {
|
|
10424
10425
|
this.statusChanged.emit({
|
|
10425
10426
|
invalid: this.form.invalid,
|
|
@@ -10565,7 +10566,7 @@
|
|
|
10565
10566
|
// copy by value for arrays of objects (e.g. table data)
|
|
10566
10567
|
value_1 = [];
|
|
10567
10568
|
formElement.value.forEach(function (o) {
|
|
10568
|
-
value_1.push(
|
|
10569
|
+
value_1.push(i1.Utils.formDataParse(i1.Utils.formDataStringify(o)));
|
|
10569
10570
|
});
|
|
10570
10571
|
}
|
|
10571
10572
|
else {
|
|
@@ -11244,7 +11245,7 @@
|
|
|
11244
11245
|
}
|
|
11245
11246
|
this.value = value instanceof Array ? value : [];
|
|
11246
11247
|
// create a clone of the actual value for internal usage
|
|
11247
|
-
this.innerValue =
|
|
11248
|
+
this.innerValue = i1.Utils.formDataParse(i1.Utils.formDataStringify(this.value));
|
|
11248
11249
|
if (this.gridOptions.api) {
|
|
11249
11250
|
this.gridOptions.api.setRowData(this.innerValue);
|
|
11250
11251
|
}
|
|
@@ -11571,10 +11572,11 @@
|
|
|
11571
11572
|
*/
|
|
11572
11573
|
var RowEditComponent = /** @class */ (function (_super) {
|
|
11573
11574
|
__extends(RowEditComponent, _super);
|
|
11574
|
-
function RowEditComponent(pendingChanges, fb) {
|
|
11575
|
+
function RowEditComponent(pendingChanges, fb, storageService) {
|
|
11575
11576
|
var _this = _super.call(this) || this;
|
|
11576
11577
|
_this.pendingChanges = pendingChanges;
|
|
11577
11578
|
_this.fb = fb;
|
|
11579
|
+
_this.storageService = storageService;
|
|
11578
11580
|
_this.formState = {};
|
|
11579
11581
|
_this.queryEnabled = true;
|
|
11580
11582
|
_this.copyEnabled = true;
|
|
@@ -11587,8 +11589,12 @@
|
|
|
11587
11589
|
_this.onSave = new i0.EventEmitter();
|
|
11588
11590
|
_this.onSaveCopy = new i0.EventEmitter();
|
|
11589
11591
|
_this.onDelete = new i0.EventEmitter();
|
|
11592
|
+
_this.createNewRow = !!_this.storageService.getItem('createNewRow');
|
|
11590
11593
|
_this.createNewCheckbox = _this.fb.control(_this.createNewRow);
|
|
11591
|
-
_this.createNewCheckbox.valueChanges.pipe(operators.takeUntil(_this.componentDestroyed$)).subscribe(function (v) {
|
|
11594
|
+
_this.createNewCheckbox.valueChanges.pipe(operators.takeUntil(_this.componentDestroyed$)).subscribe(function (v) {
|
|
11595
|
+
_this.createNewRow = v;
|
|
11596
|
+
_this.storageService.setItem('createNewRow', _this.createNewRow);
|
|
11597
|
+
});
|
|
11592
11598
|
return _this;
|
|
11593
11599
|
}
|
|
11594
11600
|
Object.defineProperty(RowEditComponent.prototype, "showDeleteDialog", {
|
|
@@ -11706,7 +11712,8 @@
|
|
|
11706
11712
|
];
|
|
11707
11713
|
RowEditComponent.ctorParameters = function () { return [
|
|
11708
11714
|
{ type: PendingChangesService },
|
|
11709
|
-
{ type: forms.FormBuilder }
|
|
11715
|
+
{ type: forms.FormBuilder },
|
|
11716
|
+
{ type: i1.LocalStorageService }
|
|
11710
11717
|
]; };
|
|
11711
11718
|
RowEditComponent.propDecorators = {
|
|
11712
11719
|
confirmDeleteButton: [{ type: i0.ViewChild, args: ['confirmDelete',] }],
|
|
@@ -16486,9 +16493,9 @@
|
|
|
16486
16493
|
return _this;
|
|
16487
16494
|
}
|
|
16488
16495
|
OpenContextActionComponent.prototype.isExecutable = function (item) {
|
|
16489
|
-
|
|
16496
|
+
var isExecutable = !this.isFolder(item) || (this.isFolder(item) && this.isNotInObjectState());
|
|
16497
|
+
return rxjs.of(isExecutable);
|
|
16490
16498
|
};
|
|
16491
|
-
;
|
|
16492
16499
|
OpenContextActionComponent.prototype.getParams = function (selection) {
|
|
16493
16500
|
var item = selection[0];
|
|
16494
16501
|
return { type: item.typeName };
|
|
@@ -16500,6 +16507,14 @@
|
|
|
16500
16507
|
}
|
|
16501
16508
|
return "/object/" + id;
|
|
16502
16509
|
};
|
|
16510
|
+
OpenContextActionComponent.prototype.isFolder = function (item) {
|
|
16511
|
+
return item.isFolder;
|
|
16512
|
+
};
|
|
16513
|
+
OpenContextActionComponent.prototype.isNotInObjectState = function () {
|
|
16514
|
+
var _this = this;
|
|
16515
|
+
var disabledStates = ['/object'];
|
|
16516
|
+
return !disabledStates.some(function (s) { return _this.router.url.includes(s); });
|
|
16517
|
+
};
|
|
16503
16518
|
return OpenContextActionComponent;
|
|
16504
16519
|
}(DmsObjectTarget));
|
|
16505
16520
|
OpenContextActionComponent.decorators = [
|
|
@@ -17949,14 +17964,20 @@
|
|
|
17949
17964
|
this.finished = new i0.EventEmitter();
|
|
17950
17965
|
this.canceled = new i0.EventEmitter();
|
|
17951
17966
|
this.dataMeta = [];
|
|
17952
|
-
this.header = this.translate.instant('eo.manage.rights.title');
|
|
17967
|
+
this.header = this.translate.instant('eo.manage.rights.document.title');
|
|
17953
17968
|
this.orgaLabel = this.translate.instant('eo.manage.rights.element.label');
|
|
17954
17969
|
this.shareForm = new forms.FormGroup({});
|
|
17955
17970
|
this.orgaField = new forms.FormControl();
|
|
17971
|
+
this.includeChildrenField = new forms.FormControl();
|
|
17956
17972
|
this.shareForm.addControl('orgaFieldFCN', this.orgaField);
|
|
17973
|
+
this.shareForm.addControl('includeChildren', this.includeChildrenField);
|
|
17957
17974
|
}
|
|
17958
17975
|
ShareObjectComponent.prototype.ngOnInit = function () {
|
|
17959
17976
|
var orgaValue = [];
|
|
17977
|
+
this.includeChildrenField.setValue(true);
|
|
17978
|
+
if (this.selection[0].isFolder) {
|
|
17979
|
+
this.header = this.translate.instant('eo.manage.rights.folder.title');
|
|
17980
|
+
}
|
|
17960
17981
|
this.selection[0].additionalvisibility.forEach(function (avObject) {
|
|
17961
17982
|
orgaValue.push(avObject.name);
|
|
17962
17983
|
});
|
|
@@ -17977,7 +17998,7 @@
|
|
|
17977
17998
|
};
|
|
17978
17999
|
ShareObjectComponent.prototype.save = function () {
|
|
17979
18000
|
var _this = this;
|
|
17980
|
-
this.dms.setOrganizationObjectsWithReadRights(this.selection, this.orgaField.value)
|
|
18001
|
+
this.dms.setOrganizationObjectsWithReadRights(this.selection, this.orgaField.value, this.includeChildrenField.value)
|
|
17981
18002
|
.subscribe(function () {
|
|
17982
18003
|
_this.shareMessage();
|
|
17983
18004
|
_this.finished.emit();
|
|
@@ -17991,7 +18012,7 @@
|
|
|
17991
18012
|
ShareObjectComponent.decorators = [
|
|
17992
18013
|
{ type: i0.Component, args: [{
|
|
17993
18014
|
selector: 'eo-share-object',
|
|
17994
|
-
template: "<div class=\"eo-share-object\">\r\n <h2>{{header}}</h2>\r\n\r\n <form [formGroup]=\"shareForm\">\r\n <eo-form-input [label]=\"orgaLabel\">\r\n <eo-organization [dataMeta]=\"dataMeta\" [multiselect]=\"true\" formControlName=\"orgaFieldFCN\"></eo-organization>\r\n </eo-form-input>\r\n </form>\r\n\r\n <div class=\"form-buttons\">\r\n <button class=\"secondary\" (click)=\"cancel()\" translate>eo.manage.rights.cancel</button>\r\n <button class=\"primary\" (click)=\"save()\" [disabled]=\"shareForm.errors || !shareForm.dirty\" translate>eo.manage.rights.
|
|
18015
|
+
template: "<div class=\"eo-share-object\">\r\n <h2>{{header}}</h2>\r\n\r\n <form [formGroup]=\"shareForm\">\r\n <eo-form-input [label]=\"orgaLabel\">\r\n <eo-organization [dataMeta]=\"dataMeta\" [multiselect]=\"true\" formControlName=\"orgaFieldFCN\"></eo-organization>\r\n </eo-form-input>\r\n <eo-form-input *ngIf=\"selection[0].isFolder\" [label]=\"('eo.manage.rights.folder.include.documents.label' | translate)\">\r\n <eo-checkbox formControlName=\"includeChildren\" [tristate]=\"false\"></eo-checkbox>\r\n </eo-form-input>\r\n </form>\r\n\r\n <div class=\"form-buttons\">\r\n <button class=\"secondary\" (click)=\"cancel()\" translate>eo.manage.rights.cancel</button>\r\n <button class=\"primary\" (click)=\"save()\" [disabled]=\"shareForm.errors || !shareForm.dirty\" translate>eo.manage.rights.apply</button>\r\n </div>\r\n</div>\r\n",
|
|
17995
18016
|
styles: [".eo-share-object{display:flex;flex-flow:column;justify-content:center;margin:var(--app-pane-padding)}.eo-share-object h2{font-size:var(--font-subhead);font-weight:var(--font-weight-light)}.eo-share-object .form-buttons{padding:5px 0;text-align:right}.eo-share-object .form-buttons button:nth-child(2n):not(:last-child){margin:0 calc(var(--app-pane-padding)/2)}.eo-share-object .form-buttons button:nth-child(2n):last-child{margin-left:calc(var(--app-pane-padding)/2);margin-right:0}"]
|
|
17996
18017
|
},] }
|
|
17997
18018
|
];
|
|
@@ -18179,9 +18200,8 @@
|
|
|
18179
18200
|
DeleteContentActionComponent.prototype.isExecutable = function (item) {
|
|
18180
18201
|
var isLocked = item.lock && item.lock.by.other;
|
|
18181
18202
|
var hasContent = item.content && item.content.id === item.id;
|
|
18182
|
-
return rxjs.of(this.isAllowedState() && !item.isFinalized && hasContent && item.rights.edit && !isLocked);
|
|
18203
|
+
return rxjs.of(this.isAllowedState() && !item.isFinalized && hasContent && item.rights.edit && !isLocked && item.type.minFiles === 0);
|
|
18183
18204
|
};
|
|
18184
|
-
;
|
|
18185
18205
|
DeleteContentActionComponent.prototype.run = function (selection) {
|
|
18186
18206
|
var _this = this;
|
|
18187
18207
|
selection.forEach(function (item) {
|
|
@@ -24317,7 +24337,7 @@
|
|
|
24317
24337
|
if (params.query) {
|
|
24318
24338
|
if (!!_this.pendingChanges.check())
|
|
24319
24339
|
return;
|
|
24320
|
-
_this.query =
|
|
24340
|
+
_this.query = i1.Utils.formDataParse(decodeURIComponent(params.query));
|
|
24321
24341
|
_this.typeName = _this.query.types && _this.query.types.length === 1 ? _this.query.types[0] : 'default';
|
|
24322
24342
|
_this.clearAfterExecute = params.silent;
|
|
24323
24343
|
_this.searchTerm = _this.query.term;
|
|
@@ -24495,10 +24515,10 @@
|
|
|
24495
24515
|
this.http = http;
|
|
24496
24516
|
this.userService = userService;
|
|
24497
24517
|
this.config = config;
|
|
24498
|
-
this.__libraries__ = [{ "name": "@ag-grid-community/angular", "version": "22.1.2", "license": "MIT" }, { "name": "@ag-grid-community/client-side-row-model", "version": "22.1.1", "license": "MIT" }, { "name": "@ag-grid-community/core", "version": "22.1.1", "license": "MIT" }, { "name": "@ag-grid-community/csv-export", "version": "22.1.1", "license": "MIT" }, { "name": "@angular/animations", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/cdk", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/common", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/compiler", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/core", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/forms", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/platform-browser", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/platform-browser-dynamic", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/router", "version": "11.2.0", "license": "MIT" }, { "name": "@eo-sdk/core", "version": "8.
|
|
24518
|
+
this.__libraries__ = [{ "name": "@ag-grid-community/angular", "version": "22.1.2", "license": "MIT" }, { "name": "@ag-grid-community/client-side-row-model", "version": "22.1.1", "license": "MIT" }, { "name": "@ag-grid-community/core", "version": "22.1.1", "license": "MIT" }, { "name": "@ag-grid-community/csv-export", "version": "22.1.1", "license": "MIT" }, { "name": "@angular/animations", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/cdk", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/common", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/compiler", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/core", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/forms", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/platform-browser", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/platform-browser-dynamic", "version": "11.2.0", "license": "MIT" }, { "name": "@angular/router", "version": "11.2.0", "license": "MIT" }, { "name": "@eo-sdk/core", "version": "8.16.0-rc.1", "license": "MIT" }, { "name": "@ngx-pwa/local-storage", "version": "11.1.0", "license": "MIT" }, { "name": "@ngx-translate/core", "version": "13.0.0", "license": "MIT" }, { "name": "@types/lodash", "version": "4.14.88", "license": "MIT" }, { "name": "core-js", "version": "2.5.7", "license": "MIT" }, { "name": "file-saver", "version": "2.0.5", "license": "MIT" }, { "name": "font-awesome", "version": "4.7.0", "license": "(OFL-1.1 AND MIT)" }, { "name": "keyboardevent-key-polyfill", "version": "1.1.0", "license": "CC0-1.0" }, { "name": "keycode-js", "version": "0.0.4", "license": "MIT" }, { "name": "mobile-drag-drop", "version": "2.2.0", "license": "MIT" }, { "name": "moment", "version": "2.22.2", "license": "MIT" }, { "name": "ngx-toastr", "version": "13.2.0", "license": "MIT" }, { "name": "primeicons", "version": "1.0.0-beta.6", "license": "MIT" }, { "name": "primeng", "version": "7.0.1", "license": "MIT" }, { "name": "reflect-metadata", "version": "0.1.10", "license": "Apache-2.0" }, { "name": "rxjs", "version": "6.6.3", "license": "Apache-2.0" }, { "name": "tslib", "version": "2.1.0", "license": "0BSD" }, { "name": "zone.js", "version": "0.10.3", "license": "MIT" }];
|
|
24499
24519
|
this.ctrl = {
|
|
24500
24520
|
productName: 'yuuvis® RAD client',
|
|
24501
|
-
clientVersion: '8.
|
|
24521
|
+
clientVersion: '8.16.0-rc.1'
|
|
24502
24522
|
};
|
|
24503
24523
|
this.licenses = {
|
|
24504
24524
|
'MIT': {
|