@eo-sdk/client 7.16.8 → 7.16.9
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/object-details/object-history/object-history.component.d.ts +3 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +4 -2
- 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.map +1 -1
- package/bundles/eo-sdk-client.umd.js +26 -19
- 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-framework/inbox-details/inbox-details.component.js +5 -6
- package/esm2015/app/eo-framework/object-details/object-history/object-history.component.js +14 -7
- package/esm2015/app/eo-framework/process/details/process-details.component.js +6 -9
- package/esm2015/app/eo-framework/process/history/process-history.component.js +2 -2
- package/esm2015/projects/eo-sdk/core/lib/model/dms-object-history.model.js +1 -1
- package/esm2015/projects/eo-sdk/core/lib/service/bpm/bpm.service.js +1 -1
- package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +5 -3
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +4 -2
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +22 -19
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/package.json +1 -1
|
@@ -17480,7 +17480,7 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17480
17480
|
this.cd = cd;
|
|
17481
17481
|
this.eventService = eventService;
|
|
17482
17482
|
this._history = [];
|
|
17483
|
-
|
|
17483
|
+
// history: DmsObjectHistoryEntry[] = [];
|
|
17484
17484
|
this.filters = [];
|
|
17485
17485
|
this.visibleFilter = { select: true, input: true };
|
|
17486
17486
|
this.eventService
|
|
@@ -17491,6 +17491,12 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17491
17491
|
}
|
|
17492
17492
|
});
|
|
17493
17493
|
}
|
|
17494
|
+
set history(historyObj) {
|
|
17495
|
+
this._history = historyObj;
|
|
17496
|
+
}
|
|
17497
|
+
get history() {
|
|
17498
|
+
return this._history;
|
|
17499
|
+
}
|
|
17494
17500
|
set params(p) {
|
|
17495
17501
|
this._params = p;
|
|
17496
17502
|
this.fetchHistory(p.id, p.type);
|
|
@@ -17507,7 +17513,7 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17507
17513
|
this.filters.push(type);
|
|
17508
17514
|
}
|
|
17509
17515
|
// todo: ChangeDetection should not work here, Hä?
|
|
17510
|
-
this.history = this.
|
|
17516
|
+
this.history = this.history.filter(entry => this.filters.indexOf(entry.group) === -1);
|
|
17511
17517
|
}
|
|
17512
17518
|
trackByIndex(index, item) {
|
|
17513
17519
|
return index;
|
|
@@ -17515,11 +17521,12 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17515
17521
|
fetchHistory(id, type) {
|
|
17516
17522
|
this.dmsService
|
|
17517
17523
|
.getHistory(id, type)
|
|
17518
|
-
.
|
|
17519
|
-
this.
|
|
17524
|
+
.pipe(map((res) => {
|
|
17525
|
+
this.history = res.reverse();
|
|
17520
17526
|
this.toggleFilter(['INFORMATIONAL', true]);
|
|
17521
17527
|
this.cd.markForCheck();
|
|
17522
|
-
})
|
|
17528
|
+
}))
|
|
17529
|
+
.subscribe();
|
|
17523
17530
|
}
|
|
17524
17531
|
}
|
|
17525
17532
|
ObjectHistoryComponent.decorators = [
|
|
@@ -20437,16 +20444,14 @@ class InboxDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20437
20444
|
setupWorkItem() {
|
|
20438
20445
|
this.locked = this.workItem.state === 'PERSON';
|
|
20439
20446
|
this.preventClickThrough = true;
|
|
20440
|
-
setTimeout(() =>
|
|
20441
|
-
this.preventClickThrough = false;
|
|
20442
|
-
}, 1000);
|
|
20447
|
+
setTimeout(() => this.preventClickThrough = false, 1000);
|
|
20443
20448
|
const { form, data } = this.workItem;
|
|
20444
20449
|
const workItem = { form, data };
|
|
20445
20450
|
this.workItemIndexdata = form && data ? workItem : null;
|
|
20446
20451
|
// fetch history
|
|
20447
20452
|
this.bpmService
|
|
20448
20453
|
.getProcessHistory(this.workItem.processId)
|
|
20449
|
-
.
|
|
20454
|
+
.pipe(map(res => {
|
|
20450
20455
|
res.forEach(item => {
|
|
20451
20456
|
if (item.editor) {
|
|
20452
20457
|
item.data.image = this.userService.getUserImageUri(item.editor.id);
|
|
@@ -20455,7 +20460,8 @@ class InboxDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20455
20460
|
// sort by number because this is the auto-incrementing
|
|
20456
20461
|
// index of added history entries
|
|
20457
20462
|
this.history = res.sort((a, b) => b.number - a.number);
|
|
20458
|
-
})
|
|
20463
|
+
}))
|
|
20464
|
+
.subscribe();
|
|
20459
20465
|
}
|
|
20460
20466
|
trackByCode(index, item) {
|
|
20461
20467
|
return item.code;
|
|
@@ -20524,7 +20530,7 @@ class ProcessHistoryComponent {
|
|
|
20524
20530
|
ProcessHistoryComponent.decorators = [
|
|
20525
20531
|
{ type: Component, args: [{
|
|
20526
20532
|
selector: 'eo-process-history',
|
|
20527
|
-
template: "<div class=\"process-history\">\r\n\r\n <div class=\"filter\">\r\n <div class=\"input\" [ngClass]=\"{inactive: !history?.length}\">\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_filter.svg'\"></eo-icon>\r\n <input type=\"text\" [ngModelOptions]=\"{standalone: true}\" [(ngModel)]=\"filterterm\">\r\n\r\n </div>\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_clear.svg'\" (click)=\"filterterm = null\" *ngIf=\"filterterm\"></eo-icon>\r\n </div>\r\n\r\n\r\n <ng-template #empty>\r\n <eo-error-message [emptyState]=\"{icon: 'ic_no-file.svg', text: 'eo.timeline.empty', className: 'history empty'}\"></eo-error-message>\r\n </ng-template>\r\n\r\n\r\n <div class=\"history eo-timeline\" [ngClass]=\"{single: history?.length === 1}\" *ngIf=\"history?.length; else empty\">\r\n\r\n <div class=\"timeline-entry\"\r\n *ngFor=\"let entry of history | historyFilter:filterterm; trackBy: trackByIndex\"\r\n [ngClass]=\"{user: entry.editor, error: entry.type === 'error' || entry?.errorType}\">\r\n\r\n <div class=\"when\">\r\n <div class=\"date\">{{entry.time | localeDate: 'eoShortDate'}}</div>\r\n <div class=\"time\">{{entry.time | localeDate: 'eoShortTime'}}</div>\r\n </div>\r\n <div class=\"marker\">\r\n <img *ngIf=\"entry.editor\"\r\n title=\"{{entry.editor.lastname}}, {{entry.editor.firstname}} ({{entry.editor.name}})\"\r\n [src]=\"entry.data?.image\">\r\n </div>\r\n <div class=\"what\">\r\n <div class=\"title\">{{
|
|
20533
|
+
template: "<div class=\"process-history\">\r\n\r\n <div class=\"filter\">\r\n <div class=\"input\" [ngClass]=\"{inactive: !history?.length}\">\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_filter.svg'\"></eo-icon>\r\n <input type=\"text\" [ngModelOptions]=\"{standalone: true}\" [(ngModel)]=\"filterterm\">\r\n\r\n </div>\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_clear.svg'\" (click)=\"filterterm = null\" *ngIf=\"filterterm\"></eo-icon>\r\n </div>\r\n\r\n\r\n <ng-template #empty>\r\n <eo-error-message [emptyState]=\"{icon: 'ic_no-file.svg', text: 'eo.timeline.empty', className: 'history empty'}\"></eo-error-message>\r\n </ng-template>\r\n\r\n\r\n <div class=\"history eo-timeline\" [ngClass]=\"{single: history?.length === 1}\" *ngIf=\"history?.length; else empty\">\r\n\r\n <div class=\"timeline-entry\"\r\n *ngFor=\"let entry of history | historyFilter:filterterm; trackBy: trackByIndex\"\r\n [ngClass]=\"{user: entry.editor, error: entry.type === 'error' || entry?.errorType}\">\r\n\r\n <div class=\"when\">\r\n <div class=\"date\">{{entry.time | localeDate: 'eoShortDate'}}</div>\r\n <div class=\"time\">{{entry.time | localeDate: 'eoShortTime'}}</div>\r\n </div>\r\n <div class=\"marker\">\r\n <img *ngIf=\"entry.editor\"\r\n title=\"{{entry.editor.lastname}}, {{entry.editor.firstname}} ({{entry.editor.name}})\"\r\n [src]=\"entry.data?.image\">\r\n </div>\r\n <div class=\"what\">\r\n <div class=\"title\">{{entry.title}}</div>\r\n\r\n <div class=\"description\" *ngIf=\"entry.data?.periodFireTime && entry.type === 'DEADLINE_START'; else description\">\r\n <div class=\"deadline-fire\">\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_timer.svg'\"></eo-icon>\r\n <span>{{entry.data.periodFireTime | localeDate}}</span>\r\n </div>\r\n </div>\r\n <ng-template #description>\r\n <div class=\"description\">\r\n {{'eo.process.details.history.entry.type.' + entry.type + '.title'|translate}}\r\n </div>\r\n </ng-template>\r\n\r\n <div class=\"meta\" *ngIf=\"entry.performer?.length\">\r\n <span *ngFor=\"let p of entry.performer; trackBy: trackByIndex\">\r\n {{p.label}}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
20528
20534
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20529
20535
|
styles: [":host .process-history{display:flex;flex:1;flex-direction:column;height:100%;min-height:0;min-width:0}:host .history{flex:1 1 auto;overflow-y:auto;padding:var(--app-pane-padding)}:host .filter{background-color:var(--panel-background-lightgrey);border-bottom:1px solid var(--main-background);display:flex;flex:1;flex:0 0 auto;flex-direction:row;justify-content:space-between;min-height:0;min-width:0}:host .filter .input{background-color:var(--color-white);border:1px solid var(--main-background);display:flex;flex-flow:row nowrap;margin:calc(var(--app-pane-padding)/2);padding:2px 2px 2px 0}:host .filter .input.inactive{opacity:.5;pointer-events:none}:host .filter .input input{background-color:transparent;border:0}:host .filter .input eo-icon{margin:0 calc(var(--app-pane-padding)/4)}:host .filter .input eo-icon,:host .filter>eo-icon{align-self:center;color:var(--text-color-hint);height:16px;width:16px}:host .filter>eo-icon{box-sizing:content-box;cursor:pointer;flex:0 0 auto;padding:calc(var(--app-pane-padding)/2)}:host .timeline-entry.user img{border:2px solid var(--text-color-hint);border-radius:50%;height:30px;width:30px;z-index:1}:host .timeline-entry.user .marker:before{display:none}:host .timeline-entry .what{padding-bottom:0;width:66%}:host .timeline-entry .what .deadline-fire{align-items:center;display:flex;padding-bottom:4px}:host .timeline-entry .what .description{color:var(--text-color-body)}.deadline-fire :host .timeline-entry .what .description{align-items:center;display:flex;flex-flow:row nowrap}.deadline-fire :host .timeline-entry .what .description eo-icon{color:var(--text-color-hint);height:18px;width:18px}.deadline-fire :host .timeline-entry .what .description span{padding:0 calc(var(--app-pane-padding)/4)}:host .timeline-entry .what .meta{display:flex;flex-flow:row wrap;margin-bottom:calc(var(--app-pane-padding)/4)}:host .timeline-entry .what .meta span{background-color:rgba(var(--color-black-rgb),.08);border-radius:2px;display:block;font-size:var(--font-caption);margin:0 calc(var(--app-pane-padding)/4) calc(var(--app-pane-padding)/4) 0;padding:2px 4px}:host .timeline-entry.error .what .title{color:var(--color-error)}:host .timeline-entry.error .marker:before{align-items:center;border-color:var(--color-error);border-width:4px;color:var(--color-error);content:\"!\";display:flex;flex-flow:column;font-weight:var(--font-weight-bold);justify-content:center}"]
|
|
20530
20536
|
},] }
|
|
@@ -20534,9 +20540,7 @@ ProcessHistoryComponent.propDecorators = {
|
|
|
20534
20540
|
};
|
|
20535
20541
|
|
|
20536
20542
|
class ProcessDetailsComponent extends UnsubscribeOnDestroy {
|
|
20537
|
-
constructor(bpmService, userService, systemService,
|
|
20538
|
-
// private processService: ProcessService,
|
|
20539
|
-
selection, clipboardService, translate, router) {
|
|
20543
|
+
constructor(bpmService, userService, systemService, selection, clipboardService, translate, router) {
|
|
20540
20544
|
super();
|
|
20541
20545
|
this.bpmService = bpmService;
|
|
20542
20546
|
this.userService = userService;
|
|
@@ -20559,9 +20563,7 @@ class ProcessDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20559
20563
|
this.history = [];
|
|
20560
20564
|
this.locked = false;
|
|
20561
20565
|
this.loading = true;
|
|
20562
|
-
setTimeout(() =>
|
|
20563
|
-
this.process();
|
|
20564
|
-
}, 0);
|
|
20566
|
+
setTimeout(() => this.process(), 0);
|
|
20565
20567
|
}
|
|
20566
20568
|
}
|
|
20567
20569
|
get item() {
|
|
@@ -20599,6 +20601,7 @@ class ProcessDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20599
20601
|
item.data.image = this.userService.getUserImageUri(item.editor.id);
|
|
20600
20602
|
}
|
|
20601
20603
|
});
|
|
20604
|
+
console.log({ history });
|
|
20602
20605
|
this.history = history.sort((a, b) => b.number - a.number);
|
|
20603
20606
|
}
|
|
20604
20607
|
});
|
|
@@ -22023,10 +22026,10 @@ class AboutStateComponent {
|
|
|
22023
22026
|
this.http = http;
|
|
22024
22027
|
this.userService = userService;
|
|
22025
22028
|
this.config = config;
|
|
22026
|
-
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": "7.16.
|
|
22029
|
+
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": "7.16.9", "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": "6.0.0-beta.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" }];
|
|
22027
22030
|
this.ctrl = {
|
|
22028
22031
|
productName: 'yuuvis® RAD client',
|
|
22029
|
-
clientVersion: '7.16.
|
|
22032
|
+
clientVersion: '7.16.9'
|
|
22030
22033
|
};
|
|
22031
22034
|
this.licenses = {
|
|
22032
22035
|
'MIT': {
|