@eo-sdk/client 8.15.0-rc.1 → 8.16.0-rc.2
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-client/inbox-state/inbox-state/inbox-state.component.d.ts +4 -5
- 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/inbox-details/inbox-details.component.d.ts +6 -5
- 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 +4274 -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 +64 -34
- 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/inbox-state/inbox-state/inbox-state.component.js +16 -8
- 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/inbox-details/inbox-details.component.js +13 -11
- 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 +6 -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 -3736
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +65 -36
- 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) {
|
|
@@ -22419,7 +22439,7 @@
|
|
|
22419
22439
|
|
|
22420
22440
|
var InboxDetailsComponent = /** @class */ (function (_super) {
|
|
22421
22441
|
__extends(InboxDetailsComponent, _super);
|
|
22422
|
-
function InboxDetailsComponent(bpmService, userService, inboxService, selection, router, eventService, clipboardService, translate, pendingChanges, notify) {
|
|
22442
|
+
function InboxDetailsComponent(bpmService, userService, inboxService, selection, router, eventService, clipboardService, translate, pendingChanges, notify, storageService) {
|
|
22423
22443
|
var _this = _super.call(this) || this;
|
|
22424
22444
|
_this.bpmService = bpmService;
|
|
22425
22445
|
_this.userService = userService;
|
|
@@ -22431,11 +22451,12 @@
|
|
|
22431
22451
|
_this.translate = translate;
|
|
22432
22452
|
_this.pendingChanges = pendingChanges;
|
|
22433
22453
|
_this.notify = notify;
|
|
22454
|
+
_this.storageService = storageService;
|
|
22434
22455
|
_this.actionProcessing = { closed: true };
|
|
22435
22456
|
_this.initializing = { closed: true };
|
|
22436
22457
|
_this.filesAdding = { closed: true };
|
|
22458
|
+
_this.storageKeyLastItemID = 'eo.inbox.lastItemID';
|
|
22437
22459
|
_this.externalPanels = new i0.QueryList();
|
|
22438
|
-
_this.onDmsItemSelected = new i0.EventEmitter();
|
|
22439
22460
|
_this.addDefaultActionIfEmpty = function (res) {
|
|
22440
22461
|
var _a;
|
|
22441
22462
|
if (!((_a = res.actions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
@@ -22665,13 +22686,12 @@
|
|
|
22665
22686
|
}
|
|
22666
22687
|
};
|
|
22667
22688
|
/**
|
|
22668
|
-
* Selects a work items file entry
|
|
22689
|
+
* Selects a work items file entry.
|
|
22669
22690
|
* @param file FileEntry element to be selected
|
|
22670
22691
|
*/
|
|
22671
22692
|
InboxDetailsComponent.prototype.openWorkItemContent = function (file) {
|
|
22672
22693
|
if (!file) {
|
|
22673
22694
|
this.selectedContentFileId = null;
|
|
22674
|
-
this.onDmsItemSelected.emit(null);
|
|
22675
22695
|
if (this.applySelection) {
|
|
22676
22696
|
this.selection.find(this.applySelection.out).focus(null);
|
|
22677
22697
|
}
|
|
@@ -22682,7 +22702,6 @@
|
|
|
22682
22702
|
id: file.id,
|
|
22683
22703
|
type: file.type
|
|
22684
22704
|
};
|
|
22685
|
-
this.onDmsItemSelected.emit(params);
|
|
22686
22705
|
if (this.applySelection) {
|
|
22687
22706
|
this.selection.find(this.applySelection.out).focus(params);
|
|
22688
22707
|
}
|
|
@@ -22829,7 +22848,10 @@
|
|
|
22829
22848
|
this.selection
|
|
22830
22849
|
.find(this.applySelection.in)
|
|
22831
22850
|
.focus$.pipe(operators.takeUntil(this.componentDestroyed$))
|
|
22832
|
-
.subscribe(function (item) {
|
|
22851
|
+
.subscribe(function (item) {
|
|
22852
|
+
_this.item = item;
|
|
22853
|
+
_this.storageService.setItem(_this.storageKeyLastItemID, _this.item.id);
|
|
22854
|
+
});
|
|
22833
22855
|
}
|
|
22834
22856
|
};
|
|
22835
22857
|
InboxDetailsComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -22856,7 +22878,8 @@
|
|
|
22856
22878
|
{ type: i1.ClipboardService },
|
|
22857
22879
|
{ type: i1.TranslateService },
|
|
22858
22880
|
{ type: PendingChangesService },
|
|
22859
|
-
{ type: i1.NotificationsService }
|
|
22881
|
+
{ type: i1.NotificationsService },
|
|
22882
|
+
{ type: i1.LocalStorageService }
|
|
22860
22883
|
]; };
|
|
22861
22884
|
InboxDetailsComponent.propDecorators = {
|
|
22862
22885
|
bpmFormEl: [{ type: i0.ViewChild, args: ['bpmForm',] }],
|
|
@@ -22865,7 +22888,6 @@
|
|
|
22865
22888
|
emptyState: [{ type: i0.Input }],
|
|
22866
22889
|
applySelection: [{ type: i0.Input }],
|
|
22867
22890
|
item: [{ type: i0.Input, args: ['item',] }],
|
|
22868
|
-
onDmsItemSelected: [{ type: i0.Output }],
|
|
22869
22891
|
dataType: [{ type: i0.HostBinding, args: ['attr.data-type',] }]
|
|
22870
22892
|
};
|
|
22871
22893
|
|
|
@@ -24317,7 +24339,7 @@
|
|
|
24317
24339
|
if (params.query) {
|
|
24318
24340
|
if (!!_this.pendingChanges.check())
|
|
24319
24341
|
return;
|
|
24320
|
-
_this.query =
|
|
24342
|
+
_this.query = i1.Utils.formDataParse(decodeURIComponent(params.query));
|
|
24321
24343
|
_this.typeName = _this.query.types && _this.query.types.length === 1 ? _this.query.types[0] : 'default';
|
|
24322
24344
|
_this.clearAfterExecute = params.silent;
|
|
24323
24345
|
_this.searchTerm = _this.query.term;
|
|
@@ -24495,10 +24517,10 @@
|
|
|
24495
24517
|
this.http = http;
|
|
24496
24518
|
this.userService = userService;
|
|
24497
24519
|
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.
|
|
24520
|
+
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.2", "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
24521
|
this.ctrl = {
|
|
24500
24522
|
productName: 'yuuvis® RAD client',
|
|
24501
|
-
clientVersion: '8.
|
|
24523
|
+
clientVersion: '8.16.0-rc.2'
|
|
24502
24524
|
};
|
|
24503
24525
|
this.licenses = {
|
|
24504
24526
|
'MIT': {
|
|
@@ -25919,7 +25941,7 @@
|
|
|
25919
25941
|
|
|
25920
25942
|
var InboxStateComponent = /** @class */ (function (_super) {
|
|
25921
25943
|
__extends(InboxStateComponent, _super);
|
|
25922
|
-
function InboxStateComponent(translate, selection, titleService, inboxService, pendingChanges, empty, eventService, route) {
|
|
25944
|
+
function InboxStateComponent(translate, selection, titleService, inboxService, pendingChanges, empty, eventService, route, storageService) {
|
|
25923
25945
|
var _this = _super.call(this) || this;
|
|
25924
25946
|
_this.translate = translate;
|
|
25925
25947
|
_this.selection = selection;
|
|
@@ -25929,6 +25951,7 @@
|
|
|
25929
25951
|
_this.empty = empty;
|
|
25930
25952
|
_this.eventService = eventService;
|
|
25931
25953
|
_this.route = route;
|
|
25954
|
+
_this.storageService = storageService;
|
|
25932
25955
|
_this.inboxFilterFields = [];
|
|
25933
25956
|
_this.typeFilterFields = [];
|
|
25934
25957
|
_this.inboxSelectionId = 'inbox';
|
|
@@ -25938,6 +25961,7 @@
|
|
|
25938
25961
|
_this.defaultFilterParams = {};
|
|
25939
25962
|
_this.emptyState = { icon: 'ic_no-file.svg', text: '', className: '' };
|
|
25940
25963
|
_this.inboxChanged = false;
|
|
25964
|
+
_this.storageKeyLastItemID = 'eo.inbox.lastItemID';
|
|
25941
25965
|
_this.titleService.setBaseTitle(_this.translate.instant('eo.inbox.list.title'));
|
|
25942
25966
|
//secondary selection instance for inbox items
|
|
25943
25967
|
_this.inboxSelection = _this.selection.createNew(_this.inboxSelectionId);
|
|
@@ -25974,9 +25998,6 @@
|
|
|
25974
25998
|
InboxStateComponent.prototype.hasPendingChanges = function () {
|
|
25975
25999
|
return this.pendingChanges.hasPendingTask();
|
|
25976
26000
|
};
|
|
25977
|
-
InboxStateComponent.prototype.onDmsItemSelected = function (data) {
|
|
25978
|
-
this.selectedDmsParams = data;
|
|
25979
|
-
};
|
|
25980
26001
|
InboxStateComponent.prototype.refreshGrid = function () {
|
|
25981
26002
|
this.inboxChanged = false;
|
|
25982
26003
|
this.inboxSelection.disable(false);
|
|
@@ -26066,6 +26087,14 @@
|
|
|
26066
26087
|
_this.gridData = data;
|
|
26067
26088
|
_this.updateGrid(_this.gridData);
|
|
26068
26089
|
});
|
|
26090
|
+
var lastInboxItemID = this.storageService.getItem(this.storageKeyLastItemID);
|
|
26091
|
+
if (lastInboxItemID) {
|
|
26092
|
+
var item_1 = this.gridData.find(function (i) { return i.id === lastInboxItemID; });
|
|
26093
|
+
if (item_1) {
|
|
26094
|
+
this.selectFirst = false;
|
|
26095
|
+
setTimeout(function () { return _this.eoGrid.selectRow(item_1); }, 500);
|
|
26096
|
+
}
|
|
26097
|
+
}
|
|
26069
26098
|
};
|
|
26070
26099
|
InboxStateComponent.prototype.ngOnDestroy = function () {
|
|
26071
26100
|
this.selection.clear();
|
|
@@ -26075,7 +26104,7 @@
|
|
|
26075
26104
|
InboxStateComponent.decorators = [
|
|
26076
26105
|
{ type: i0.Component, args: [{
|
|
26077
26106
|
selector: 'eo-inbox-state',
|
|
26078
|
-
template: "<eo-undock-split>\r\n <eo-split [gutterSize]=\"16\" [visibleTransition]=\"true\" [cacheLayout]=\"'inbox.state'\">\r\n <eo-split-area [size]=\"30\" [minSizePixel]=\"300\">\r\n <ng-template pTemplate=\"content\">\r\n <eo-list-container #eoList [applySelection]=\"{out: inboxSelectionId}\">\r\n <div class=\"eo-header\">\r\n\r\n <eo-icon class=\"eo-header-icon\" [iconSrc]=\"'assets/_default/svg/ic_inbox.svg'\"></eo-icon>\r\n <div class=\"eo-header-info\">\r\n <div class=\"eo-header-title\" translate>eo.inbox.list.title</div>\r\n </div>\r\n <div class=\"eo-header-actions\">\r\n <eo-icon class=\"button primary refresh-button\"\r\n [ngClass]=\"{inboxChanged: inboxChanged}\"\r\n (click)=\"cFilter.resetFilter(); refreshGrid()\"\r\n [iconSrc]=\"'assets/_default/svg/ic_refresh.svg'\"\r\n [iconTitle]=\"('eo.list.refresh' | translate)\"></eo-icon>\r\n\r\n <eo-overlay #oFilter class=\"overlay-filter\"\r\n [iconSrc]=\"'assets/_default/svg/ic_filter.svg'\"\r\n [iconClass]=\"'primary'\"\r\n [iconTitle]=\"'eo.list.filter' | translate\">\r\n <eo-custom-filter #cFilter\r\n (change)=\"cFilter.updateGrid(eoList.eoGridSubject, $event)\"\r\n (active)=\"oFilter.onActiveChanged($event)\">\r\n <eo-text-filter [title]=\"'eo.inbox.filter.title' | translate\"\r\n [filterParams]=\"defaultFilterParams\" [id]=\"'inbox.text'\"
|
|
26107
|
+
template: "<eo-undock-split>\r\n <eo-split [gutterSize]=\"16\" [visibleTransition]=\"true\" [cacheLayout]=\"'inbox.state'\">\r\n <eo-split-area [size]=\"30\" [minSizePixel]=\"300\">\r\n <ng-template pTemplate=\"content\">\r\n <eo-list-container #eoList [applySelection]=\"{out: inboxSelectionId}\">\r\n <div class=\"eo-header\">\r\n\r\n <eo-icon class=\"eo-header-icon\" [iconSrc]=\"'assets/_default/svg/ic_inbox.svg'\"></eo-icon>\r\n <div class=\"eo-header-info\">\r\n <div class=\"eo-header-title\" translate>eo.inbox.list.title</div>\r\n </div>\r\n <div class=\"eo-header-actions\">\r\n <eo-icon class=\"button primary refresh-button\"\r\n [ngClass]=\"{inboxChanged: inboxChanged}\"\r\n (click)=\"cFilter.resetFilter(); refreshGrid()\"\r\n [iconSrc]=\"'assets/_default/svg/ic_refresh.svg'\"\r\n [iconTitle]=\"('eo.list.refresh' | translate)\"></eo-icon>\r\n\r\n <eo-overlay #oFilter class=\"overlay-filter\"\r\n [iconSrc]=\"'assets/_default/svg/ic_filter.svg'\"\r\n [iconClass]=\"'primary'\"\r\n [iconTitle]=\"'eo.list.filter' | translate\">\r\n <eo-custom-filter #cFilter\r\n (change)=\"cFilter.updateGrid(eoList.eoGridSubject, $event)\"\r\n (active)=\"oFilter.onActiveChanged($event)\">\r\n <eo-text-filter [title]=\"'eo.inbox.filter.title' | translate\"\r\n [filterParams]=\"defaultFilterParams\" [id]=\"'inbox.text'\"\r\n [matchFields]=\"['title','description','id']\"></eo-text-filter>\r\n <eo-set-filter [operator]=\"'AND'\" [id]=\"'inbox.set'\" [filterParams]=\"defaultFilterParams\" [options]=\"inboxFilterFields\"></eo-set-filter>\r\n <eo-set-filter [operator]=\"'OR'\" [id]=\"'inbox.type'\" [filterParams]=\"defaultFilterParams\" [options]=\"typeFilterFields\"\r\n [title]=\"'eo.inbox.filter.section.type' | translate\"></eo-set-filter>\r\n </eo-custom-filter>\r\n </eo-overlay>\r\n\r\n <eo-overlay #oSort class=\"overlay-sort\"\r\n [iconSrc]=\"'assets/_default/svg/ic_sort.svg'\"\r\n [iconTitle]=\"'eo.list.sort' | translate\"\r\n [iconClass]=\"'primary'\">\r\n <eo-custom-sort #cSort [id]=\"'inbox.sort'\"\r\n (change)=\"cSort.updateGrid(eoList.eoGrid, $event)\"\r\n (active)=\"oSort.onActiveChanged($event)\"\r\n [sortFields]=\"sortFields\"></eo-custom-sort>\r\n </eo-overlay>\r\n\r\n </div>\r\n </div>\r\n <div class=\"eo-body\">\r\n <eo-grid #eoGrid\r\n *ngIf=\"gridOptions?.rowData\"\r\n [gridOptions]=\"gridOptions\"\r\n [fullWidth]=\"true\"\r\n [showHeader]=\"true\"\r\n [showFooter]=\"true\"\r\n [selectFirst]=\"selectFirst\"\r\n [options]=\"{filterActive: oFilter.active}\"\r\n (eoGridCountChanged)=\"eoList.onCountChanged($event);onCountChanged($event)\"\r\n (eoGridSelectionChanged)=\"eoList.onSelectionChanged($event)\"\r\n (eoGridFocusChanged)=\"eoList.onFocusChanged($event)\">\r\n <div class=\"header\">\r\n </div>\r\n\r\n <div class=\"footer\">\r\n <eo-total-count [gridCount]=\"eoList.gridCount\" [outsideGrid]=\"false\" class=\"flex-row\"></eo-total-count>\r\n </div>\r\n\r\n <div class=\"empty\">\r\n <eo-error-message\r\n [emptyState]=\"{icon: 'ic_inbox.svg', text: oFilter.active ? 'eo.no.filter.result' : 'eo.inbox.list.empty'}\"></eo-error-message>\r\n <eo-reset-filter [isFilterActive]=\"oFilter.active\" (click)=\"cFilter.resetFilter();cSort.reset();refreshGrid()\"></eo-reset-filter>\r\n </div>\r\n\r\n </eo-grid>\r\n </div>\r\n </eo-list-container>\r\n </ng-template>\r\n </eo-split-area>\r\n <eo-split-area [size]=\"30\" [minSizePixel]=\"400\">\r\n <ng-template pTemplate=\"content\">\r\n <eo-inbox-details [applySelection]=\"{in: inboxSelectionId, out: inboxDmsObjectSelectionId}\" [emptyState]=\"emptyState\">\r\n <eo-tab-plugin [type]=\"'inbox-details-tab.inbox'\"></eo-tab-plugin>\r\n </eo-inbox-details>\r\n </ng-template>\r\n </eo-split-area>\r\n <eo-split-area [size]=\"40\" [minSizePixel]=\"400\" [cache]=\"false\">\r\n <ng-template pTemplate=\"content\">\r\n\r\n <eo-object-details [applySelection]=\"{in: inboxDmsObjectSelectionId}\" [cacheLayout]=\"'inbox.state.object-details'\">\r\n <eo-tab-plugin [type]=\"'object-details-tab.inbox'\"></eo-tab-plugin>\r\n </eo-object-details>\r\n </ng-template>\r\n </eo-split-area>\r\n </eo-split>\r\n</eo-undock-split>\r\n",
|
|
26079
26108
|
styles: [":host{bottom:var(--app-pane-padding);left:var(--app-pane-padding);position:absolute;right:var(--app-pane-padding);top:var(--app-pane-padding)}:host eo-split-area{background-color:var(--panel-background-grey);box-shadow:0 2px 5px 0 rgba(0,0,0,.2)}:host .inboxChanged,:host .inboxChanged:hover{background:var(--color-success);color:#fff}:host ::ng-deep .ag-cell .list-item{align-items:center;display:flex;flex:1;flex-direction:row;height:80px;min-height:0;min-width:0}:host ::ng-deep .ag-cell .list-item[unselectable]{-moz-user-select:none;-webkit-user-select:none;user-select:none}:host ::ng-deep .ag-cell .list-item .content{display:inline-block;flex:1;max-width:none;overflow:hidden;padding:var(--app-pane-padding);text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .ag-cell .list-item .content .notes>span{-webkit-border-radius:2px;background-color:var(--color-primary-4);border-radius:2px;color:var(--color-white);font-size:var(--font-hint);padding:1px calc(var(--app-pane-padding)/4) 0 calc(var(--app-pane-padding)/4)}:host ::ng-deep .ag-cell .list-item .content .notes.pastDue span.period{background-color:var(--color-error)}:host ::ng-deep .ag-cell .list-item .content .title{font-size:var(--font-body);font-weight:var(--font-weight-bold)}:host ::ng-deep .ag-cell .list-item .content .description{color:var(--text-color-caption);font-size:var(--font-caption)}:host ::ng-deep .ag-cell .list-item.read .title{font-weight:var(--font-weight-normal)}:host ::ng-deep .ag-cell .list-item .meta{align-items:flex-end;display:flex;flex-flow:column;padding:0 calc(var(--app-pane-padding)/2)}:host ::ng-deep .ag-cell .list-item .meta .date{color:rgba(var(--color-black-rgb),.4)}"]
|
|
26080
26109
|
},] }
|
|
26081
26110
|
];
|
|
@@ -26087,7 +26116,8 @@
|
|
|
26087
26116
|
{ type: PendingChangesService },
|
|
26088
26117
|
{ type: EmptyStateService },
|
|
26089
26118
|
{ type: i1.EventService },
|
|
26090
|
-
{ type: i2.ActivatedRoute }
|
|
26119
|
+
{ type: i2.ActivatedRoute },
|
|
26120
|
+
{ type: i1.LocalStorageService }
|
|
26091
26121
|
]; };
|
|
26092
26122
|
InboxStateComponent.propDecorators = {
|
|
26093
26123
|
eoGrid: [{ type: i0.ViewChild, args: ['eoGrid',] }]
|