@eo-sdk/client 8.0.1 → 8.3.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/README.md +2 -2
- package/app/eo-framework/form-elements/id-reference/id-reference.component.d.ts +10 -2
- package/app/eo-framework/object-details/object-history/object-history.component.d.ts +3 -2
- package/app/eo-framework-core/api/plugins.service.d.ts +3 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +26 -14
- 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 +86 -27
- 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/form-elements/datetime/datepicker/datepicker.component.js +2 -2
- package/esm2015/app/eo-framework/form-elements/datetime/datetime.component.js +2 -2
- package/esm2015/app/eo-framework/form-elements/id-reference/id-reference.component.js +52 -7
- 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/object-form/object-form/object-form.component.js +2 -2
- 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/app/eo-framework-core/api/plugins.service.js +10 -3
- package/esm2015/projects/eo-sdk/core/lib/config/translate-json-loader.js +10 -1
- package/esm2015/projects/eo-sdk/core/lib/model/dms-object-history.model.js +1 -1
- package/esm2015/projects/eo-sdk/core/lib/model/eo-user.model.js +2 -2
- 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/esm2015/projects/eo-sdk/core/lib/service/search/search.service.js +4 -4
- package/esm2015/projects/eo-sdk/core/lib/service/user/user.service.js +7 -6
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +23 -11
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +82 -28
- 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/package.json +1 -1
|
@@ -1152,7 +1152,7 @@
|
|
|
1152
1152
|
|
|
1153
1153
|
var UNDOCK_WINDOW_NAME = 'eoViewer';
|
|
1154
1154
|
var PluginsService = /** @class */ (function () {
|
|
1155
|
-
function PluginsService(backend, notifications, clipboard, logger, translate, dmsService, router, agentService, eventService, userService, ngZone) {
|
|
1155
|
+
function PluginsService(backend, notifications, clipboard, logger, translate, dmsService, router, agentService, eventService, userService, appRef, ngZone) {
|
|
1156
1156
|
var _this = this;
|
|
1157
1157
|
this.backend = backend;
|
|
1158
1158
|
this.notifications = notifications;
|
|
@@ -1164,6 +1164,7 @@
|
|
|
1164
1164
|
this.agentService = agentService;
|
|
1165
1165
|
this.eventService = eventService;
|
|
1166
1166
|
this.userService = userService;
|
|
1167
|
+
this.appRef = appRef;
|
|
1167
1168
|
this.ngZone = ngZone;
|
|
1168
1169
|
this.agentAction = {
|
|
1169
1170
|
OPEN: 'eo.agent.action.open',
|
|
@@ -1213,6 +1214,11 @@
|
|
|
1213
1214
|
PluginsService.prototype.getApi = function () {
|
|
1214
1215
|
var _this = this;
|
|
1215
1216
|
return {
|
|
1217
|
+
detectChanges: function () {
|
|
1218
|
+
setTimeout(function () {
|
|
1219
|
+
_this.appRef.tick();
|
|
1220
|
+
}, 500);
|
|
1221
|
+
},
|
|
1216
1222
|
router: {
|
|
1217
1223
|
get: function () { return _this.router; }
|
|
1218
1224
|
},
|
|
@@ -1424,6 +1430,7 @@
|
|
|
1424
1430
|
{ type: AgentService },
|
|
1425
1431
|
{ type: i1.EventService },
|
|
1426
1432
|
{ type: i1.UserService },
|
|
1433
|
+
{ type: i0.ApplicationRef },
|
|
1427
1434
|
{ type: i0.NgZone }
|
|
1428
1435
|
]; };
|
|
1429
1436
|
|
|
@@ -6832,7 +6839,7 @@
|
|
|
6832
6839
|
// emitted when a new value is set by the picker
|
|
6833
6840
|
this.onDateChanged = new i0.EventEmitter();
|
|
6834
6841
|
this.onCanceled = new i0.EventEmitter();
|
|
6835
|
-
var locale = translate.currentLang.replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
6842
|
+
var locale = (translate.currentLang || translate.defaultLang).replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
6836
6843
|
moment$1.locale(locale);
|
|
6837
6844
|
var startDay = moment$1().startOf('week').day();
|
|
6838
6845
|
this.monthsShort = moment$1.monthsShort();
|
|
@@ -7070,7 +7077,7 @@
|
|
|
7070
7077
|
this.propagateChange = function (_) {
|
|
7071
7078
|
};
|
|
7072
7079
|
this.datePipe = new LocaleDatePipe(translate);
|
|
7073
|
-
this.locale = this.translate.currentLang.replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
7080
|
+
this.locale = (this.translate.currentLang || this.translate.defaultLang).replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
7074
7081
|
moment$2.locale(this.locale);
|
|
7075
7082
|
}
|
|
7076
7083
|
Object.defineProperty(DatetimeComponent.prototype, "withTime", {
|
|
@@ -7613,11 +7620,12 @@
|
|
|
7613
7620
|
};
|
|
7614
7621
|
|
|
7615
7622
|
var IdReferenceComponent = /** @class */ (function () {
|
|
7616
|
-
function IdReferenceComponent(clipboardService, system, referenceService) {
|
|
7623
|
+
function IdReferenceComponent(clipboardService, system, referenceService, searchService) {
|
|
7617
7624
|
var _this = this;
|
|
7618
7625
|
this.clipboardService = clipboardService;
|
|
7619
7626
|
this.system = system;
|
|
7620
7627
|
this.referenceService = referenceService;
|
|
7628
|
+
this.searchService = searchService;
|
|
7621
7629
|
this.innerValues = []; // inner ng-model value
|
|
7622
7630
|
this.visibleDialog = false;
|
|
7623
7631
|
this.propagateChange = function (value) { };
|
|
@@ -7750,6 +7758,48 @@
|
|
|
7750
7758
|
IdReferenceComponent.prototype.validate = function (c) {
|
|
7751
7759
|
return null;
|
|
7752
7760
|
};
|
|
7761
|
+
// handler invoked when an entry was selected using the autocomplete input
|
|
7762
|
+
IdReferenceComponent.prototype.onAutoCompleteSelect = function (evt) {
|
|
7763
|
+
this.linkDmsObject([evt.value]);
|
|
7764
|
+
this.clearInnerInput();
|
|
7765
|
+
this.propagateChange(this.value);
|
|
7766
|
+
console.log(this.value);
|
|
7767
|
+
};
|
|
7768
|
+
IdReferenceComponent.prototype.autocompleteFn = function (evt) {
|
|
7769
|
+
var _this = this;
|
|
7770
|
+
var q = {
|
|
7771
|
+
fields: ['title', 'description', 'type'],
|
|
7772
|
+
types: [this.referenceType.name],
|
|
7773
|
+
term: evt.query,
|
|
7774
|
+
highlighting: true,
|
|
7775
|
+
filters: this.queryFilters,
|
|
7776
|
+
options: { withContext: true }
|
|
7777
|
+
};
|
|
7778
|
+
if (this.contextId) {
|
|
7779
|
+
if (q.filters) {
|
|
7780
|
+
q.filters.contextfolderid = { v1: this.contextId, o: 'eq' };
|
|
7781
|
+
}
|
|
7782
|
+
else {
|
|
7783
|
+
q.filters = { contextfolderid: { v1: this.contextId, o: 'eq' } };
|
|
7784
|
+
}
|
|
7785
|
+
}
|
|
7786
|
+
this.searchService
|
|
7787
|
+
.executeQuery(q)
|
|
7788
|
+
.pipe(operators.debounceTime(500), operators.map(function (item) { return item ? _this.searchService.createResultFromResponse(item) : []; })).subscribe(function (result) {
|
|
7789
|
+
_this.autocompleteRes = result.hits.map(function (h) { return ({ label: h.title, value: h }); });
|
|
7790
|
+
});
|
|
7791
|
+
};
|
|
7792
|
+
IdReferenceComponent.prototype.onAutoCompleteBlur = function () {
|
|
7793
|
+
this.clearInnerInput();
|
|
7794
|
+
};
|
|
7795
|
+
IdReferenceComponent.prototype.clearInnerInput = function () {
|
|
7796
|
+
if (this.autoCompleteInput.multiInputEL) {
|
|
7797
|
+
this.autoCompleteInput.multiInputEL.nativeElement.value = '';
|
|
7798
|
+
}
|
|
7799
|
+
else {
|
|
7800
|
+
this.autoCompleteInput.inputEL.nativeElement.value = '';
|
|
7801
|
+
}
|
|
7802
|
+
};
|
|
7753
7803
|
IdReferenceComponent.prototype.ngOnInit = function () {
|
|
7754
7804
|
if (this.situation === 'SEARCH') {
|
|
7755
7805
|
this.multiselect = true;
|
|
@@ -7760,7 +7810,7 @@
|
|
|
7760
7810
|
IdReferenceComponent.decorators = [
|
|
7761
7811
|
{ type: i0.Component, args: [{
|
|
7762
7812
|
selector: 'eo-id-reference',
|
|
7763
|
-
template: "<div class=\"eo-id-reference\">\r\n\r\n <div class=\"eo-id-reference__element\" *ngIf=\"referenceType; else notFound\">\r\n <div *ngFor=\"let item of innerValues\" class=\"chip\">\r\n <a *ngIf=\"!item.state || item.state === 'OK'\" class=\"link router-link\" [routerLink]=\"['/object', item.id, {outlets: {modal: null}}]\" [queryParams]=\"{type: referenceType.qname}\">\r\n <svg focusable=\"false\" class=\"ref-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n viewBox=\"0 0 24 24\">\r\n <path d=\"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8\r\n 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z\"></path>\r\n </svg>\r\n </a>\r\n <eo-icon [objectType]=\"referenceType\" title=\"{{referenceType.label}}\" class=\"ref-type-icon\" [ngClass]=\"{'deleted-reference-label': item.state && (item.state === 'RECYCLED' || item.state === 'GONE')}\"></eo-icon>\r\n <span *ngIf=\"!(item.state && (item.state === 'RECYCLED' || item.state === 'GONE')); else deleted\" class=\"label\">{{item.title || referenceType.label}}</span>\r\n <ng-template #deleted>\r\n <span class=\"label deleted-reference-label\">{{('eo.references.deleted' | translate)}}</span>\r\n </ng-template>\r\n <eo-icon *ngIf=\"!readonly\" [iconSrc]=\"'assets/_default/svg/ic_clear.svg'\" (click)=\"removeItem(item)\" class=\"remove-icon\"></eo-icon>\r\n </div>\r\n </div>\r\n\r\n <ng-template #notFound><span class=\"label\">{{innerValues && innerValues.length ? ('eo.references.not.available' | translate) : ''}}</span></ng-template>\r\n\r\n <button #button class=\"ui-button\" *ngIf=\"!readonly\"\r\n title=\"{{('eo.references.search' | translate) + ' ' + tooltipTypeHint}}\"\r\n [disabled]=\"selectionDisabled\"\r\n (click)=\"showDialog()\">\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_none.svg'\"></eo-icon>\r\n </button>\r\n</div>\r\n\r\n<eo-dialog [title]=\"('eo.references.add' | translate)\"\r\n [subtitle]=\"referenceType.label\"\r\n [(visible)]=\"visibleDialog\"\r\n [minWidth]=\"577\"\r\n [minHeight]=\"590\"\r\n [styleClass]=\"'reference-field-dialog'\"\r\n #dialog>\r\n\r\n <eo-reference-finder *ngIf=\"dialog.visible\"\r\n [isDisabled]=\"isDisabled\"\r\n [types]=\"referenceType.qname\"\r\n [multiselect]=\"multiselect\"\r\n [currentSelection]=\"innerValues\"\r\n [clipboard]=\"clipboard\"\r\n [contextId]=\"contextId\"\r\n [exceptionIDs]=\"exceptionIDs\"\r\n [queryFilters]=\"queryFilters\"\r\n (addDmsObjects)=\"paste($event)\">\r\n </eo-reference-finder>\r\n</eo-dialog>\r\n",
|
|
7813
|
+
template: "<div class=\"eo-id-reference\">\r\n\r\n <div class=\"eo-id-reference__element\" *ngIf=\"referenceType; else notFound\">\r\n <div *ngFor=\"let item of innerValues\" class=\"chip\">\r\n <a *ngIf=\"!item.state || item.state === 'OK'\" class=\"link router-link\" [routerLink]=\"['/object', item.id, {outlets: {modal: null}}]\" [queryParams]=\"{type: referenceType.qname}\">\r\n <svg focusable=\"false\" class=\"ref-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n viewBox=\"0 0 24 24\">\r\n <path d=\"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8\r\n 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z\"></path>\r\n </svg>\r\n </a>\r\n <eo-icon [objectType]=\"referenceType\" title=\"{{referenceType.label}}\" class=\"ref-type-icon\" [ngClass]=\"{'deleted-reference-label': item.state && (item.state === 'RECYCLED' || item.state === 'GONE')}\"></eo-icon>\r\n <span *ngIf=\"!(item.state && (item.state === 'RECYCLED' || item.state === 'GONE')); else deleted\" class=\"label\">{{item.title || referenceType.label}}</span>\r\n <ng-template #deleted>\r\n <span class=\"label deleted-reference-label\">{{('eo.references.deleted' | translate)}}</span>\r\n </ng-template>\r\n <eo-icon *ngIf=\"!readonly\" [iconSrc]=\"'assets/_default/svg/ic_clear.svg'\" (click)=\"removeItem(item)\" class=\"remove-icon\"></eo-icon>\r\n </div>\r\n </div>\r\n\r\n <p-autoComplete [minLength]=\"1\" [delay]=\"500\" #autocomplete\r\n (onSelect)=\"onAutoCompleteSelect($event)\"\r\n (onBlur)=\"onAutoCompleteBlur()\"\r\n [suggestions]=\"autocompleteRes\" field=\"label\"\r\n [readonly]=\"readonly\"\r\n [forceSelection]=\"true\"\r\n (completeMethod)=\"autocompleteFn($event)\" [multiple]=\"multiselect\">\r\n </p-autoComplete>\r\n\r\n <ng-template #notFound><span class=\"label\">{{innerValues && innerValues.length ? ('eo.references.not.available' | translate) : ''}}</span></ng-template>\r\n\r\n <button #button class=\"ui-button\" *ngIf=\"!readonly\"\r\n title=\"{{('eo.references.search' | translate) + ' ' + tooltipTypeHint}}\"\r\n [disabled]=\"selectionDisabled\"\r\n (click)=\"showDialog()\">\r\n <eo-icon [iconSrc]=\"'assets/_default/svg/ic_none.svg'\"></eo-icon>\r\n </button>\r\n</div>\r\n\r\n<eo-dialog [title]=\"('eo.references.add' | translate)\"\r\n [subtitle]=\"referenceType.label\"\r\n [(visible)]=\"visibleDialog\"\r\n [minWidth]=\"577\"\r\n [minHeight]=\"590\"\r\n [styleClass]=\"'reference-field-dialog'\"\r\n #dialog>\r\n\r\n <eo-reference-finder *ngIf=\"dialog.visible\"\r\n [isDisabled]=\"isDisabled\"\r\n [types]=\"referenceType.qname\"\r\n [multiselect]=\"multiselect\"\r\n [currentSelection]=\"innerValues\"\r\n [clipboard]=\"clipboard\"\r\n [contextId]=\"contextId\"\r\n [exceptionIDs]=\"exceptionIDs\"\r\n [queryFilters]=\"queryFilters\"\r\n (addDmsObjects)=\"paste($event)\">\r\n </eo-reference-finder>\r\n</eo-dialog>\r\n",
|
|
7764
7814
|
providers: [
|
|
7765
7815
|
{
|
|
7766
7816
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -7773,13 +7823,14 @@
|
|
|
7773
7823
|
multi: true
|
|
7774
7824
|
}
|
|
7775
7825
|
],
|
|
7776
|
-
styles: [".eo-id-reference{align-items:center;display:flex
|
|
7826
|
+
styles: [".eo-id-reference{align-items:center;display:flex}.eo-id-reference__element{align-self:center;display:flex;flex-wrap:wrap}.eo-id-reference .chip{align-items:center;display:flex}.eo-id-reference .chip .ref-type-icon{height:16px;margin-right:4px;width:16px}.eo-id-reference .chip .label{display:flex;flex-flow:column;margin-right:4px}.eo-id-reference .chip .label>span{font-size:var(--font-hint)}.eo-id-reference .chip .remove-icon{color:var(--text-color-hint);flex:0 0 auto;height:14px;width:14px}.eo-id-reference .chip .remove-icon:hover{color:var(--text-color-caption);cursor:pointer}.eo-id-reference .chip .deleted-reference-label{color:var(--color-error)}.eo-id-reference .ui-button:disabled{cursor:default}::ng-deep .reference-field-dialog{width:577px}p-autoComplete{width:100%}"]
|
|
7777
7827
|
},] }
|
|
7778
7828
|
];
|
|
7779
7829
|
IdReferenceComponent.ctorParameters = function () { return [
|
|
7780
7830
|
{ type: i1.ClipboardService },
|
|
7781
7831
|
{ type: i1.SystemService },
|
|
7782
|
-
{ type: ReferenceService }
|
|
7832
|
+
{ type: ReferenceService },
|
|
7833
|
+
{ type: i1.SearchService }
|
|
7783
7834
|
]; };
|
|
7784
7835
|
IdReferenceComponent.propDecorators = {
|
|
7785
7836
|
readonly: [{ type: i0.Input }],
|
|
@@ -7787,6 +7838,7 @@
|
|
|
7787
7838
|
situation: [{ type: i0.Input }],
|
|
7788
7839
|
contextId: [{ type: i0.Input }],
|
|
7789
7840
|
exceptionIDs: [{ type: i0.Input }],
|
|
7841
|
+
autoCompleteInput: [{ type: i0.ViewChild, args: ['autocomplete',] }],
|
|
7790
7842
|
dataToRender: [{ type: i0.Input }],
|
|
7791
7843
|
reference: [{ type: i0.Input }],
|
|
7792
7844
|
queryFilters: [{ type: i0.Input }]
|
|
@@ -10646,7 +10698,7 @@
|
|
|
10646
10698
|
}
|
|
10647
10699
|
else {
|
|
10648
10700
|
if (element.type === 'DATETIME' && data[element.name]) {
|
|
10649
|
-
value = new Date(data[element.name]);
|
|
10701
|
+
value = new Date("" + data[element.name] + (element.withtime ? '' : 'T00:00:00'));
|
|
10650
10702
|
}
|
|
10651
10703
|
else {
|
|
10652
10704
|
value = data[element.name];
|
|
@@ -19402,7 +19454,7 @@
|
|
|
19402
19454
|
_this.cd = cd;
|
|
19403
19455
|
_this.eventService = eventService;
|
|
19404
19456
|
_this._history = [];
|
|
19405
|
-
|
|
19457
|
+
// history: DmsObjectHistoryEntry[] = [];
|
|
19406
19458
|
_this.filters = [];
|
|
19407
19459
|
_this.visibleFilter = { select: true, input: true };
|
|
19408
19460
|
_this.eventService
|
|
@@ -19414,6 +19466,16 @@
|
|
|
19414
19466
|
});
|
|
19415
19467
|
return _this;
|
|
19416
19468
|
}
|
|
19469
|
+
Object.defineProperty(ObjectHistoryComponent.prototype, "history", {
|
|
19470
|
+
get: function () {
|
|
19471
|
+
return this._history;
|
|
19472
|
+
},
|
|
19473
|
+
set: function (historyObj) {
|
|
19474
|
+
this._history = historyObj;
|
|
19475
|
+
},
|
|
19476
|
+
enumerable: false,
|
|
19477
|
+
configurable: true
|
|
19478
|
+
});
|
|
19417
19479
|
Object.defineProperty(ObjectHistoryComponent.prototype, "params", {
|
|
19418
19480
|
get: function () {
|
|
19419
19481
|
return this._params;
|
|
@@ -19435,7 +19497,7 @@
|
|
|
19435
19497
|
this.filters.push(type);
|
|
19436
19498
|
}
|
|
19437
19499
|
// todo: ChangeDetection should not work here, Hä?
|
|
19438
|
-
this.history = this.
|
|
19500
|
+
this.history = this.history.filter(function (entry) { return _this.filters.indexOf(entry.group) === -1; });
|
|
19439
19501
|
};
|
|
19440
19502
|
ObjectHistoryComponent.prototype.trackByIndex = function (index, item) {
|
|
19441
19503
|
return index;
|
|
@@ -19444,11 +19506,12 @@
|
|
|
19444
19506
|
var _this = this;
|
|
19445
19507
|
this.dmsService
|
|
19446
19508
|
.getHistory(id, type)
|
|
19447
|
-
.
|
|
19448
|
-
_this.
|
|
19509
|
+
.pipe(operators.map(function (res) {
|
|
19510
|
+
_this.history = res.reverse();
|
|
19449
19511
|
_this.toggleFilter(['INFORMATIONAL', true]);
|
|
19450
19512
|
_this.cd.markForCheck();
|
|
19451
|
-
})
|
|
19513
|
+
}))
|
|
19514
|
+
.subscribe();
|
|
19452
19515
|
};
|
|
19453
19516
|
return ObjectHistoryComponent;
|
|
19454
19517
|
}(UnsubscribeOnDestroy));
|
|
@@ -22566,16 +22629,14 @@
|
|
|
22566
22629
|
var _this = this;
|
|
22567
22630
|
this.locked = this.workItem.state === 'PERSON';
|
|
22568
22631
|
this.preventClickThrough = true;
|
|
22569
|
-
setTimeout(function () {
|
|
22570
|
-
_this.preventClickThrough = false;
|
|
22571
|
-
}, 1000);
|
|
22632
|
+
setTimeout(function () { return _this.preventClickThrough = false; }, 1000);
|
|
22572
22633
|
var _b = this.workItem, form = _b.form, data = _b.data;
|
|
22573
22634
|
var workItem = { form: form, data: data };
|
|
22574
22635
|
this.workItemIndexdata = form && data ? workItem : null;
|
|
22575
22636
|
// fetch history
|
|
22576
22637
|
this.bpmService
|
|
22577
22638
|
.getProcessHistory(this.workItem.processId)
|
|
22578
|
-
.
|
|
22639
|
+
.pipe(operators.map(function (res) {
|
|
22579
22640
|
res.forEach(function (item) {
|
|
22580
22641
|
if (item.editor) {
|
|
22581
22642
|
item.data.image = _this.userService.getUserImageUri(item.editor.id);
|
|
@@ -22584,7 +22645,8 @@
|
|
|
22584
22645
|
// sort by number because this is the auto-incrementing
|
|
22585
22646
|
// index of added history entries
|
|
22586
22647
|
_this.history = res.sort(function (a, b) { return b.number - a.number; });
|
|
22587
|
-
})
|
|
22648
|
+
}))
|
|
22649
|
+
.subscribe();
|
|
22588
22650
|
};
|
|
22589
22651
|
InboxDetailsComponent.prototype.trackByCode = function (index, item) {
|
|
22590
22652
|
return item.code;
|
|
@@ -22658,7 +22720,7 @@
|
|
|
22658
22720
|
ProcessHistoryComponent.decorators = [
|
|
22659
22721
|
{ type: i0.Component, args: [{
|
|
22660
22722
|
selector: 'eo-process-history',
|
|
22661
|
-
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\">{{
|
|
22723
|
+
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",
|
|
22662
22724
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
22663
22725
|
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}"]
|
|
22664
22726
|
},] }
|
|
@@ -22669,9 +22731,7 @@
|
|
|
22669
22731
|
|
|
22670
22732
|
var ProcessDetailsComponent = /** @class */ (function (_super) {
|
|
22671
22733
|
__extends(ProcessDetailsComponent, _super);
|
|
22672
|
-
function ProcessDetailsComponent(bpmService, userService, systemService,
|
|
22673
|
-
// private processService: ProcessService,
|
|
22674
|
-
selection, clipboardService, translate, router) {
|
|
22734
|
+
function ProcessDetailsComponent(bpmService, userService, systemService, selection, clipboardService, translate, router) {
|
|
22675
22735
|
var _this = _super.call(this) || this;
|
|
22676
22736
|
_this.bpmService = bpmService;
|
|
22677
22737
|
_this.userService = userService;
|
|
@@ -22700,9 +22760,7 @@
|
|
|
22700
22760
|
this.history = [];
|
|
22701
22761
|
this.locked = false;
|
|
22702
22762
|
this.loading = true;
|
|
22703
|
-
setTimeout(function () {
|
|
22704
|
-
_this.process();
|
|
22705
|
-
}, 0);
|
|
22763
|
+
setTimeout(function () { return _this.process(); }, 0);
|
|
22706
22764
|
}
|
|
22707
22765
|
},
|
|
22708
22766
|
enumerable: false,
|
|
@@ -22741,6 +22799,7 @@
|
|
|
22741
22799
|
item.data.image = _this.userService.getUserImageUri(item.editor.id);
|
|
22742
22800
|
}
|
|
22743
22801
|
});
|
|
22802
|
+
console.log({ history: history });
|
|
22744
22803
|
_this.history = history.sort(function (a, b) { return b.number - a.number; });
|
|
22745
22804
|
}
|
|
22746
22805
|
});
|
|
@@ -24271,10 +24330,10 @@
|
|
|
24271
24330
|
this.http = http;
|
|
24272
24331
|
this.userService = userService;
|
|
24273
24332
|
this.config = config;
|
|
24274
|
-
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.0.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": "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" }];
|
|
24333
|
+
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.3.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": "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" }];
|
|
24275
24334
|
this.ctrl = {
|
|
24276
24335
|
productName: 'yuuvis® RAD client',
|
|
24277
|
-
clientVersion: '8.0.1'
|
|
24336
|
+
clientVersion: '8.3.0-rc.1'
|
|
24278
24337
|
};
|
|
24279
24338
|
this.licenses = {
|
|
24280
24339
|
'MIT': {
|