@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injectable, NgZone, Pipe, NgModule, EventEmitter, Injector, ɵɵdefineInjectable, ɵɵinject, ErrorHandler, Optional, SkipSelf, Component, Input, Output, ViewEncapsulation, ElementRef, Renderer2, Directive, HostListener, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, HostBinding, forwardRef, ViewChildren, ViewContainerRef, ContentChildren, ANALYZE_FOR_ENTRY_COMPONENTS, InjectionToken, Inject, ComponentFactoryResolver, ContentChild, QueryList } from '@angular/core';
|
|
1
|
+
import { Injectable, ApplicationRef, NgZone, Pipe, NgModule, EventEmitter, Injector, ɵɵdefineInjectable, ɵɵinject, ErrorHandler, Optional, SkipSelf, Component, Input, Output, ViewEncapsulation, ElementRef, Renderer2, Directive, HostListener, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, HostBinding, forwardRef, ViewChildren, ViewContainerRef, ContentChildren, ANALYZE_FOR_ENTRY_COMPONENTS, InjectionToken, Inject, ComponentFactoryResolver, ContentChild, QueryList } from '@angular/core';
|
|
2
2
|
import { DecimalPipe, PercentPipe, CurrencyPipe, DatePipe, getLocaleDateTimeFormat, FormatWidth, getLocaleTimeFormat, getLocaleDateFormat, CommonModule, Location, PlatformLocation } from '@angular/common';
|
|
3
3
|
import { HttpClient, HttpResponse, HttpErrorResponse, HttpClientModule, HTTP_INTERCEPTORS, HttpHeaders } from '@angular/common/http';
|
|
4
4
|
import { ReplaySubject, BehaviorSubject, from, forkJoin, of, Subject, fromEvent, AsyncSubject, Observable } from 'rxjs';
|
|
@@ -770,7 +770,7 @@ SelectionService.ctorParameters = () => [
|
|
|
770
770
|
|
|
771
771
|
const UNDOCK_WINDOW_NAME = 'eoViewer';
|
|
772
772
|
class PluginsService {
|
|
773
|
-
constructor(backend, notifications, clipboard, logger, translate, dmsService, router, agentService, eventService, userService, ngZone) {
|
|
773
|
+
constructor(backend, notifications, clipboard, logger, translate, dmsService, router, agentService, eventService, userService, appRef, ngZone) {
|
|
774
774
|
this.backend = backend;
|
|
775
775
|
this.notifications = notifications;
|
|
776
776
|
this.clipboard = clipboard;
|
|
@@ -781,6 +781,7 @@ class PluginsService {
|
|
|
781
781
|
this.agentService = agentService;
|
|
782
782
|
this.eventService = eventService;
|
|
783
783
|
this.userService = userService;
|
|
784
|
+
this.appRef = appRef;
|
|
784
785
|
this.ngZone = ngZone;
|
|
785
786
|
this.agentAction = {
|
|
786
787
|
OPEN: 'eo.agent.action.open',
|
|
@@ -821,6 +822,11 @@ class PluginsService {
|
|
|
821
822
|
// todo: create inreface for API
|
|
822
823
|
getApi() {
|
|
823
824
|
return {
|
|
825
|
+
detectChanges: () => {
|
|
826
|
+
setTimeout(() => {
|
|
827
|
+
this.appRef.tick();
|
|
828
|
+
}, 500);
|
|
829
|
+
},
|
|
824
830
|
router: {
|
|
825
831
|
get: () => this.router
|
|
826
832
|
},
|
|
@@ -1013,6 +1019,7 @@ PluginsService.ctorParameters = () => [
|
|
|
1013
1019
|
{ type: AgentService },
|
|
1014
1020
|
{ type: EventService },
|
|
1015
1021
|
{ type: UserService },
|
|
1022
|
+
{ type: ApplicationRef },
|
|
1016
1023
|
{ type: NgZone }
|
|
1017
1024
|
];
|
|
1018
1025
|
|
|
@@ -6083,7 +6090,7 @@ class DatepickerComponent {
|
|
|
6083
6090
|
// emitted when a new value is set by the picker
|
|
6084
6091
|
this.onDateChanged = new EventEmitter();
|
|
6085
6092
|
this.onCanceled = new EventEmitter();
|
|
6086
|
-
const locale = translate.currentLang.replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
6093
|
+
const locale = (translate.currentLang || translate.defaultLang).replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
6087
6094
|
moment$1.locale(locale);
|
|
6088
6095
|
let startDay = moment$1().startOf('week').day();
|
|
6089
6096
|
this.monthsShort = moment$1.monthsShort();
|
|
@@ -6294,7 +6301,7 @@ class DatetimeComponent {
|
|
|
6294
6301
|
this.propagateChange = (_) => {
|
|
6295
6302
|
};
|
|
6296
6303
|
this.datePipe = new LocaleDatePipe(translate);
|
|
6297
|
-
this.locale = this.translate.currentLang.replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
6304
|
+
this.locale = (this.translate.currentLang || this.translate.defaultLang).replace('zh', 'zh-cn'); // BUG: moment does not support 'zh'
|
|
6298
6305
|
moment$2.locale(this.locale);
|
|
6299
6306
|
}
|
|
6300
6307
|
set withTime(value) {
|
|
@@ -6782,10 +6789,11 @@ InputFocusDirective.propDecorators = {
|
|
|
6782
6789
|
};
|
|
6783
6790
|
|
|
6784
6791
|
class IdReferenceComponent {
|
|
6785
|
-
constructor(clipboardService, system, referenceService) {
|
|
6792
|
+
constructor(clipboardService, system, referenceService, searchService) {
|
|
6786
6793
|
this.clipboardService = clipboardService;
|
|
6787
6794
|
this.system = system;
|
|
6788
6795
|
this.referenceService = referenceService;
|
|
6796
|
+
this.searchService = searchService;
|
|
6789
6797
|
this.innerValues = []; // inner ng-model value
|
|
6790
6798
|
this.visibleDialog = false;
|
|
6791
6799
|
this.propagateChange = (value) => { };
|
|
@@ -6899,6 +6907,47 @@ class IdReferenceComponent {
|
|
|
6899
6907
|
validate(c) {
|
|
6900
6908
|
return null;
|
|
6901
6909
|
}
|
|
6910
|
+
// handler invoked when an entry was selected using the autocomplete input
|
|
6911
|
+
onAutoCompleteSelect(evt) {
|
|
6912
|
+
this.linkDmsObject([evt.value]);
|
|
6913
|
+
this.clearInnerInput();
|
|
6914
|
+
this.propagateChange(this.value);
|
|
6915
|
+
console.log(this.value);
|
|
6916
|
+
}
|
|
6917
|
+
autocompleteFn(evt) {
|
|
6918
|
+
let q = {
|
|
6919
|
+
fields: ['title', 'description', 'type'],
|
|
6920
|
+
types: [this.referenceType.name],
|
|
6921
|
+
term: evt.query,
|
|
6922
|
+
highlighting: true,
|
|
6923
|
+
filters: this.queryFilters,
|
|
6924
|
+
options: { withContext: true }
|
|
6925
|
+
};
|
|
6926
|
+
if (this.contextId) {
|
|
6927
|
+
if (q.filters) {
|
|
6928
|
+
q.filters.contextfolderid = { v1: this.contextId, o: 'eq' };
|
|
6929
|
+
}
|
|
6930
|
+
else {
|
|
6931
|
+
q.filters = { contextfolderid: { v1: this.contextId, o: 'eq' } };
|
|
6932
|
+
}
|
|
6933
|
+
}
|
|
6934
|
+
this.searchService
|
|
6935
|
+
.executeQuery(q)
|
|
6936
|
+
.pipe(debounceTime(500), map(item => item ? this.searchService.createResultFromResponse(item) : [])).subscribe((result) => {
|
|
6937
|
+
this.autocompleteRes = result.hits.map(h => ({ label: h.title, value: h }));
|
|
6938
|
+
});
|
|
6939
|
+
}
|
|
6940
|
+
onAutoCompleteBlur() {
|
|
6941
|
+
this.clearInnerInput();
|
|
6942
|
+
}
|
|
6943
|
+
clearInnerInput() {
|
|
6944
|
+
if (this.autoCompleteInput.multiInputEL) {
|
|
6945
|
+
this.autoCompleteInput.multiInputEL.nativeElement.value = '';
|
|
6946
|
+
}
|
|
6947
|
+
else {
|
|
6948
|
+
this.autoCompleteInput.inputEL.nativeElement.value = '';
|
|
6949
|
+
}
|
|
6950
|
+
}
|
|
6902
6951
|
ngOnInit() {
|
|
6903
6952
|
if (this.situation === 'SEARCH') {
|
|
6904
6953
|
this.multiselect = true;
|
|
@@ -6908,7 +6957,7 @@ class IdReferenceComponent {
|
|
|
6908
6957
|
IdReferenceComponent.decorators = [
|
|
6909
6958
|
{ type: Component, args: [{
|
|
6910
6959
|
selector: 'eo-id-reference',
|
|
6911
|
-
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",
|
|
6960
|
+
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",
|
|
6912
6961
|
providers: [
|
|
6913
6962
|
{
|
|
6914
6963
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -6921,13 +6970,14 @@ IdReferenceComponent.decorators = [
|
|
|
6921
6970
|
multi: true
|
|
6922
6971
|
}
|
|
6923
6972
|
],
|
|
6924
|
-
styles: [".eo-id-reference{align-items:center;display:flex
|
|
6973
|
+
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%}"]
|
|
6925
6974
|
},] }
|
|
6926
6975
|
];
|
|
6927
6976
|
IdReferenceComponent.ctorParameters = () => [
|
|
6928
6977
|
{ type: ClipboardService },
|
|
6929
6978
|
{ type: SystemService },
|
|
6930
|
-
{ type: ReferenceService }
|
|
6979
|
+
{ type: ReferenceService },
|
|
6980
|
+
{ type: SearchService }
|
|
6931
6981
|
];
|
|
6932
6982
|
IdReferenceComponent.propDecorators = {
|
|
6933
6983
|
readonly: [{ type: Input }],
|
|
@@ -6935,6 +6985,7 @@ IdReferenceComponent.propDecorators = {
|
|
|
6935
6985
|
situation: [{ type: Input }],
|
|
6936
6986
|
contextId: [{ type: Input }],
|
|
6937
6987
|
exceptionIDs: [{ type: Input }],
|
|
6988
|
+
autoCompleteInput: [{ type: ViewChild, args: ['autocomplete',] }],
|
|
6938
6989
|
dataToRender: [{ type: Input }],
|
|
6939
6990
|
reference: [{ type: Input }],
|
|
6940
6991
|
queryFilters: [{ type: Input }]
|
|
@@ -9484,7 +9535,7 @@ class ObjectFormComponent extends UnsubscribeOnDestroy {
|
|
|
9484
9535
|
}
|
|
9485
9536
|
else {
|
|
9486
9537
|
if (element.type === 'DATETIME' && data[element.name]) {
|
|
9487
|
-
value = new Date(data[element.name]);
|
|
9538
|
+
value = new Date(`${data[element.name]}${element.withtime ? '' : 'T00:00:00'}`);
|
|
9488
9539
|
}
|
|
9489
9540
|
else {
|
|
9490
9541
|
value = data[element.name];
|
|
@@ -17534,7 +17585,7 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17534
17585
|
this.cd = cd;
|
|
17535
17586
|
this.eventService = eventService;
|
|
17536
17587
|
this._history = [];
|
|
17537
|
-
|
|
17588
|
+
// history: DmsObjectHistoryEntry[] = [];
|
|
17538
17589
|
this.filters = [];
|
|
17539
17590
|
this.visibleFilter = { select: true, input: true };
|
|
17540
17591
|
this.eventService
|
|
@@ -17545,6 +17596,12 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17545
17596
|
}
|
|
17546
17597
|
});
|
|
17547
17598
|
}
|
|
17599
|
+
set history(historyObj) {
|
|
17600
|
+
this._history = historyObj;
|
|
17601
|
+
}
|
|
17602
|
+
get history() {
|
|
17603
|
+
return this._history;
|
|
17604
|
+
}
|
|
17548
17605
|
set params(p) {
|
|
17549
17606
|
this._params = p;
|
|
17550
17607
|
this.fetchHistory(p.id, p.type);
|
|
@@ -17561,7 +17618,7 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17561
17618
|
this.filters.push(type);
|
|
17562
17619
|
}
|
|
17563
17620
|
// todo: ChangeDetection should not work here, Hä?
|
|
17564
|
-
this.history = this.
|
|
17621
|
+
this.history = this.history.filter(entry => this.filters.indexOf(entry.group) === -1);
|
|
17565
17622
|
}
|
|
17566
17623
|
trackByIndex(index, item) {
|
|
17567
17624
|
return index;
|
|
@@ -17569,11 +17626,12 @@ class ObjectHistoryComponent extends UnsubscribeOnDestroy {
|
|
|
17569
17626
|
fetchHistory(id, type) {
|
|
17570
17627
|
this.dmsService
|
|
17571
17628
|
.getHistory(id, type)
|
|
17572
|
-
.
|
|
17573
|
-
this.
|
|
17629
|
+
.pipe(map((res) => {
|
|
17630
|
+
this.history = res.reverse();
|
|
17574
17631
|
this.toggleFilter(['INFORMATIONAL', true]);
|
|
17575
17632
|
this.cd.markForCheck();
|
|
17576
|
-
})
|
|
17633
|
+
}))
|
|
17634
|
+
.subscribe();
|
|
17577
17635
|
}
|
|
17578
17636
|
}
|
|
17579
17637
|
ObjectHistoryComponent.decorators = [
|
|
@@ -20527,16 +20585,14 @@ class InboxDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20527
20585
|
setupWorkItem() {
|
|
20528
20586
|
this.locked = this.workItem.state === 'PERSON';
|
|
20529
20587
|
this.preventClickThrough = true;
|
|
20530
|
-
setTimeout(() =>
|
|
20531
|
-
this.preventClickThrough = false;
|
|
20532
|
-
}, 1000);
|
|
20588
|
+
setTimeout(() => this.preventClickThrough = false, 1000);
|
|
20533
20589
|
const { form, data } = this.workItem;
|
|
20534
20590
|
const workItem = { form, data };
|
|
20535
20591
|
this.workItemIndexdata = form && data ? workItem : null;
|
|
20536
20592
|
// fetch history
|
|
20537
20593
|
this.bpmService
|
|
20538
20594
|
.getProcessHistory(this.workItem.processId)
|
|
20539
|
-
.
|
|
20595
|
+
.pipe(map(res => {
|
|
20540
20596
|
res.forEach(item => {
|
|
20541
20597
|
if (item.editor) {
|
|
20542
20598
|
item.data.image = this.userService.getUserImageUri(item.editor.id);
|
|
@@ -20545,7 +20601,8 @@ class InboxDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20545
20601
|
// sort by number because this is the auto-incrementing
|
|
20546
20602
|
// index of added history entries
|
|
20547
20603
|
this.history = res.sort((a, b) => b.number - a.number);
|
|
20548
|
-
})
|
|
20604
|
+
}))
|
|
20605
|
+
.subscribe();
|
|
20549
20606
|
}
|
|
20550
20607
|
trackByCode(index, item) {
|
|
20551
20608
|
return item.code;
|
|
@@ -20614,7 +20671,7 @@ class ProcessHistoryComponent {
|
|
|
20614
20671
|
ProcessHistoryComponent.decorators = [
|
|
20615
20672
|
{ type: Component, args: [{
|
|
20616
20673
|
selector: 'eo-process-history',
|
|
20617
|
-
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\">{{
|
|
20674
|
+
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",
|
|
20618
20675
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20619
20676
|
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}"]
|
|
20620
20677
|
},] }
|
|
@@ -20624,9 +20681,7 @@ ProcessHistoryComponent.propDecorators = {
|
|
|
20624
20681
|
};
|
|
20625
20682
|
|
|
20626
20683
|
class ProcessDetailsComponent extends UnsubscribeOnDestroy {
|
|
20627
|
-
constructor(bpmService, userService, systemService,
|
|
20628
|
-
// private processService: ProcessService,
|
|
20629
|
-
selection, clipboardService, translate, router) {
|
|
20684
|
+
constructor(bpmService, userService, systemService, selection, clipboardService, translate, router) {
|
|
20630
20685
|
super();
|
|
20631
20686
|
this.bpmService = bpmService;
|
|
20632
20687
|
this.userService = userService;
|
|
@@ -20649,9 +20704,7 @@ class ProcessDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20649
20704
|
this.history = [];
|
|
20650
20705
|
this.locked = false;
|
|
20651
20706
|
this.loading = true;
|
|
20652
|
-
setTimeout(() =>
|
|
20653
|
-
this.process();
|
|
20654
|
-
}, 0);
|
|
20707
|
+
setTimeout(() => this.process(), 0);
|
|
20655
20708
|
}
|
|
20656
20709
|
}
|
|
20657
20710
|
get item() {
|
|
@@ -20689,6 +20742,7 @@ class ProcessDetailsComponent extends UnsubscribeOnDestroy {
|
|
|
20689
20742
|
item.data.image = this.userService.getUserImageUri(item.editor.id);
|
|
20690
20743
|
}
|
|
20691
20744
|
});
|
|
20745
|
+
console.log({ history });
|
|
20692
20746
|
this.history = history.sort((a, b) => b.number - a.number);
|
|
20693
20747
|
}
|
|
20694
20748
|
});
|
|
@@ -22113,10 +22167,10 @@ class AboutStateComponent {
|
|
|
22113
22167
|
this.http = http;
|
|
22114
22168
|
this.userService = userService;
|
|
22115
22169
|
this.config = config;
|
|
22116
|
-
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" }];
|
|
22170
|
+
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" }];
|
|
22117
22171
|
this.ctrl = {
|
|
22118
22172
|
productName: 'yuuvis® RAD client',
|
|
22119
|
-
clientVersion: '8.0.1'
|
|
22173
|
+
clientVersion: '8.3.0-rc.1'
|
|
22120
22174
|
};
|
|
22121
22175
|
this.licenses = {
|
|
22122
22176
|
'MIT': {
|