@bizdoc/core 1.13.29 → 1.13.32
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/esm2020/lib/admin/form/workflow/workflow.component.mjs +6 -2
- package/esm2020/lib/browse/browse-items.component.mjs +4 -4
- package/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +3 -5
- package/esm2020/lib/compose/action/assign-action.component.mjs +2 -2
- package/esm2020/lib/compose/action/moveto-action.component.mjs +5 -2
- package/esm2020/lib/compose/compose.pane.component.mjs +3 -3
- package/esm2020/lib/compose/form.component.mjs +3 -3
- package/esm2020/lib/compose/trace/flow.component.mjs +2 -2
- package/esm2020/lib/compose/trace/trace.component.mjs +6 -3
- package/esm2020/lib/core/mailbox.service.mjs +2 -2
- package/esm2020/lib/dashboard/cube/compare.widget.mjs +5 -1
- package/esm2020/lib/dashboard/score/compare-departments.widget.mjs +2 -1
- package/fesm2015/bizdoc-core.mjs +31 -18
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +31 -18
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/package.json +10 -10
package/fesm2020/bizdoc-core.mjs
CHANGED
@@ -1512,7 +1512,7 @@ class MailboxService {
|
|
1512
1512
|
return this._getGeoLocation(form).pipe(switchMap(params => this._http.put(`/api/mail/${id}?version=${version}&go=true`, model, { params }))).pipe(this._notify());
|
1513
1513
|
}
|
1514
1514
|
send(id, version, form, model, action, actionArgs, read, folderId, received) {
|
1515
|
-
return this._getGeoLocation(form).pipe(switchMap(params => this._http.put(`/api/mail/${id}?version=${version}&action=${action}`, model, { params:
|
1515
|
+
return this._getGeoLocation(form).pipe(switchMap(params => this._http.put(`/api/mail/${id}?version=${version}&action=${action}`, model, { params: { ...params, ...actionArgs } }))).pipe(tap(() => read === false && this._updateunreadcounter(received, folderId, -1)), this._notify());
|
1516
1516
|
}
|
1517
1517
|
events(starting, ending, contains) {
|
1518
1518
|
return this._http.get(`/api/events`, {
|
@@ -7414,10 +7414,8 @@ class ExpandedItemComponent {
|
|
7414
7414
|
(e.userId !== this._session.userId) && this._accounts.get(e.userId).subscribe(u => this._sb.toast('MailVersionUpdate', this.model.number, u.name));
|
7415
7415
|
}
|
7416
7416
|
});
|
7417
|
-
this._mailbox.changed.pipe(takeUntil(this._destroy)).subscribe(e =>
|
7418
|
-
|
7419
|
-
this._refresh();
|
7420
|
-
});
|
7417
|
+
this._mailbox.changed.pipe(takeUntil(this._destroy)).subscribe(e => (e.id === this.model.id) &&
|
7418
|
+
this._refresh());
|
7421
7419
|
this._messaging.commentTyping$.pipe(takeUntil(this._destroy), filter$1(e => e.id === this.model.documentId)).subscribe(c => {
|
7422
7420
|
this.typing = true;
|
7423
7421
|
clearTimeout(this._typingTask);
|
@@ -7815,7 +7813,7 @@ class BrowseItemsComponent {
|
|
7815
7813
|
this.refresh();
|
7816
7814
|
}
|
7817
7815
|
_assign(model1, model2) {
|
7818
|
-
Object.assign(model1, model2, {
|
7816
|
+
Object.assign(model1, { actions: null }, model2, {
|
7819
7817
|
model: Object.deepAssign(model1.model, model1.model)
|
7820
7818
|
});
|
7821
7819
|
}
|
@@ -7973,11 +7971,11 @@ class BrowseItemsComponent {
|
|
7973
7971
|
return;
|
7974
7972
|
const actions = m[0].actions.slice();
|
7975
7973
|
for (let i = 1; i < m.length; i++) {
|
7976
|
-
|
7974
|
+
let item = m[i];
|
7977
7975
|
if (!item.actions)
|
7978
7976
|
return;
|
7979
7977
|
for (let j = 0; j < actions.length; j++) {
|
7980
|
-
if (item.actions.indexOf(actions[j])
|
7978
|
+
if (item.actions.indexOf(actions[j]) < 0)
|
7981
7979
|
actions.splice(j, 1);
|
7982
7980
|
}
|
7983
7981
|
}
|
@@ -8872,7 +8870,7 @@ class ComposeFormComponent {
|
|
8872
8870
|
this.validChange.emit(this.valid);
|
8873
8871
|
this.dirty = false;
|
8874
8872
|
this.dirtyChange.emit(this.dirty);
|
8875
|
-
this.actions = this.model.actions ? this._session.profile.actions.filter(a => this.model.actions.indexOf(a.name) > -1).
|
8873
|
+
this.actions = this.model.actions.length ? this._session.profile.actions.filter(a => this.model.actions.indexOf(a.name) > -1).
|
8876
8874
|
sort(this._sortActions) : [];
|
8877
8875
|
}
|
8878
8876
|
_sortActions(a, b) {
|
@@ -9058,7 +9056,7 @@ class ComposeFormComponent {
|
|
9058
9056
|
}
|
9059
9057
|
}
|
9060
9058
|
_assign(model) {
|
9061
|
-
Object.assign(this.model, model, {
|
9059
|
+
Object.assign(this.model, { actions: null }, model, {
|
9062
9060
|
model: Object.deepAssign(this.model.model, model.model) // preserve object ref
|
9063
9061
|
});
|
9064
9062
|
this.modelChange.emit(this.model);
|
@@ -9253,12 +9251,12 @@ class ComposePaneComponent {
|
|
9253
9251
|
}
|
9254
9252
|
}
|
9255
9253
|
ComposePaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ComposePaneComponent, deps: [{ token: SessionService }, { token: MailboxService }, { token: PaneRef }, { token: PanesRouter }, { token: BIZDOC_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
9256
|
-
ComposePaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.5", type: ComposePaneComponent, selector: "bizdoc-compose.pane", host: { listeners: { "document:drop": "handleDocumentDrop($event)", "drop": "handleDrop($event)", "dragenter": "handleEnter($event)", "dragleave": "handleLeave($event)", "dragover": "handleOver($event)", "document:keydown": "handleKeydown($event)" }, classAttribute: "pane" }, viewQueries: [{ propertyName: "form", first: true, predicate: ComposeFormComponent, descendants: true, static: true }, { propertyName: "dropableElement", first: true, predicate: ["dropable"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<mat-toolbar class=\"nav-toolbar\">\r\n <button mat-icon-button color=\"primary\" (click)=\"form.back()\" [bizdocTooltip]=\"'Back'|translate\" *ngIf=\"form.page !== undefined\" tabindex=\"1\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">arrow_back</mat-icon>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"model.draft\" data-help=\"submit\"\r\n (click)=\"submit()\" [disabled]=\"!valid||working\">\r\n <span>{{'Submit' | translate}}</span>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"
|
9254
|
+
ComposePaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.5", type: ComposePaneComponent, selector: "bizdoc-compose.pane", host: { listeners: { "document:drop": "handleDocumentDrop($event)", "drop": "handleDrop($event)", "dragenter": "handleEnter($event)", "dragleave": "handleLeave($event)", "dragover": "handleOver($event)", "document:keydown": "handleKeydown($event)" }, classAttribute: "pane" }, viewQueries: [{ propertyName: "form", first: true, predicate: ComposeFormComponent, descendants: true, static: true }, { propertyName: "dropableElement", first: true, predicate: ["dropable"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<mat-toolbar class=\"nav-toolbar\">\r\n <button mat-icon-button color=\"primary\" (click)=\"form.back()\" [bizdocTooltip]=\"'Back'|translate\" *ngIf=\"form.page !== undefined\" tabindex=\"1\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">arrow_back</mat-icon>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"model.draft\" data-help=\"submit\"\r\n (click)=\"submit()\" [disabled]=\"!valid||working\">\r\n <span>{{'Submit' | translate}}</span>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"form.actions.length === 1\" [attr.data-help]=\"'action-'+form.actions[0].name\" (click)=\"send(model.actions[0])\" [disabled]=\"!valid||working\">\r\n <span>{{form.actions[0].title}}</span>\r\n </button>\r\n <button mat-stroked-button data-help=\"send\" color=\"primary\" *ngIf=\"form.actions.length > 1\" [matMenuTriggerFor]=\"actionMenu\" [disabled]=\"!valid||working\">\r\n <span>{{'Send' | translate}}</span>\r\n </button>\r\n <!-- action -->\r\n <mat-menu #actionMenu>\r\n <ng-template matMenuContent>\r\n <ng-container *ngFor=\"let a of form.actions; let i = index\">\r\n <mat-divider *ngIf=\"i > 0 && form.actions[i - 1].group !== a.group\"></mat-divider>\r\n <button mat-menu-item (click)=\"send(a.name)\">{{a.title}}</button>\r\n </ng-container>\r\n </ng-template>\r\n </mat-menu>\r\n <button mat-icon-button (click)=\"save()\" data-help=\"save\" [disabled]=\"!dirty||working\" [bizdocTooltip]=\"'Save'|translate\" *ngIf=\"mode === 'compose'\">\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n <button mat-icon-button data-help=\"tag\" (click)=\"form.tag($event)\" [bizdocTooltip]=\"'Tags' | translate\" [disabled]=\"working\"><mat-icon class=\"filled\">{{model.tags && model.tags.length ?'bookmark':'bookmark_border'}}</mat-icon></button>\r\n <button mat-icon-button data-help=\"flag\" [bizdocTooltip]=\"'Flagged'| translate\" [disabled]=\"working\" (click)=\"form.flag()\"><mat-icon [class.document-flag]=\"model.flag\">{{model.flag ? 'star' : 'star_border'}}</mat-icon></button>\r\n <button mat-icon-button (click)=\"form.attach()\" data-help=\"attach\" [bizdocTooltip]=\"'AttachFile' | translate\" [disabled]=\"working\"><mat-icon>attach_file</mat-icon></button>\r\n <button mat-icon-button [disabled]=\"working\" data-help=\"edit\" (click)=\"edit()\" [bizdocTooltip]=\"'Edit' | translate\" *ngIf=\"mode !== 'compose' && model.pending && !model.completed\"><mat-icon>create</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"navTrace()\" [bizdocTooltip]=\"'Trace' | translate\" tabindex=\"1\"><mat-icon>timeline</mat-icon></button>\r\n <button mat-icon-button (click)=\"navComments()\" data-help=\"comments\" [bizdocTooltip]=\"'Comments' | translate\" [matBadge]=\"newCommentsCount\" [matBadgeHidden]=\"!newCommentsCount\" matBadgeColor=\"accent\">\r\n <mat-icon [class.filled]=\"model.comments.length > 0\">format_quote</mat-icon>\r\n </button>\r\n <button mat-icon-button (click)=\"view()\" [bizdocTooltip]=\"'View' | translate\" [attr.aria-label]=\"'View' | translate\" *ngIf=\"enableAnalysis\" class=\"tool\"><mat-icon>data_usage</mat-icon></button>\r\n <button mat-icon-button (click)=\"expand()\" [bizdocTooltip]=\"'Expand' | translate\" *ngIf=\"expendable\" [attr.aria-label]=\"'Expand' | translate\"><mat-icon>open_in_new</mat-icon></button>\r\n <button mat-icon-button [matMenuTriggerFor]=\"optionsMenu\" [bizdocTooltip]=\"'Options' | translate\" [attr.aria-label]=\"'Options' | translate\"><mat-icon>more_vert</mat-icon></button>\r\n <mat-menu #optionsMenu=\"matMenu\">\r\n <ng-template matMenuContent>\r\n <button mat-menu-item (click)=\"form.copy()\" [disabled]=\"working\">\r\n <!--<mat-icon>content_copy</mat-icon>-->\r\n <span>{{'Copy' | translate}}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"discard()\" *ngIf=\"model.draft && !model.issued\" [disabled]=\"working\">\r\n <!--<mat-icon>delete_outlined</mat-icon>-->\r\n <span>{{'Discard' | translate}}</span>\r\n </button>\r\n <ng-container *ngIf=\"form.help\">\r\n <mat-divider></mat-divider>\r\n <button mat-menu-item (click)=\"form.guide(form.help)\">\r\n <!--<mat-icon>help_outline</mat-icon>-->\r\n <span>{{'Help' | translate}}</span>\r\n </button>\r\n </ng-container>\r\n <mat-divider></mat-divider>\r\n <button mat-menu-item (click)=\"close()\"><!--<mat-icon></mat-icon>--><span>{{'Close'| translate}}</span></button>\r\n </ng-template>\r\n </mat-menu>\r\n</mat-toolbar>\r\n<div class=\"file-dropable\" #dropable>\r\n <bizdoc-form [model]=model #form\r\n (modelChange)=\"change()\"\r\n (validChange)=\"valid=$event\"\r\n (workingChange)=\"working=$event\"\r\n (dirtyChange)=\"dirty=$event\" [mode]=\"mode\"></bizdoc-form>\r\n</div>\r\n", styles: [".nav-toolbar{position:sticky;top:0;z-index:1}\n"], components: [{ type: i7$3.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i7$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i12$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: i9.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: ComposeFormComponent, selector: "bizdoc-form", inputs: ["model", "working", "dirty", "valid", "mode", "contacts"], outputs: ["modelChange", "workingChange", "dirtyChange", "validChange"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i9.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i9.MatMenuContent, selector: "ng-template[matMenuContent]" }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }], pipes: { "translate": TranslatePipe } });
|
9257
9255
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ComposePaneComponent, decorators: [{
|
9258
9256
|
type: Component,
|
9259
9257
|
args: [{ selector: 'bizdoc-compose.pane', host: {
|
9260
9258
|
class: 'pane'
|
9261
|
-
}, template: "<mat-toolbar class=\"nav-toolbar\">\r\n <button mat-icon-button color=\"primary\" (click)=\"form.back()\" [bizdocTooltip]=\"'Back'|translate\" *ngIf=\"form.page !== undefined\" tabindex=\"1\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">arrow_back</mat-icon>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"model.draft\" data-help=\"submit\"\r\n (click)=\"submit()\" [disabled]=\"!valid||working\">\r\n <span>{{'Submit' | translate}}</span>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"
|
9259
|
+
}, template: "<mat-toolbar class=\"nav-toolbar\">\r\n <button mat-icon-button color=\"primary\" (click)=\"form.back()\" [bizdocTooltip]=\"'Back'|translate\" *ngIf=\"form.page !== undefined\" tabindex=\"1\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">arrow_back</mat-icon>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"model.draft\" data-help=\"submit\"\r\n (click)=\"submit()\" [disabled]=\"!valid||working\">\r\n <span>{{'Submit' | translate}}</span>\r\n </button>\r\n <button mat-stroked-button color=\"primary\" *ngIf=\"form.actions.length === 1\" [attr.data-help]=\"'action-'+form.actions[0].name\" (click)=\"send(model.actions[0])\" [disabled]=\"!valid||working\">\r\n <span>{{form.actions[0].title}}</span>\r\n </button>\r\n <button mat-stroked-button data-help=\"send\" color=\"primary\" *ngIf=\"form.actions.length > 1\" [matMenuTriggerFor]=\"actionMenu\" [disabled]=\"!valid||working\">\r\n <span>{{'Send' | translate}}</span>\r\n </button>\r\n <!-- action -->\r\n <mat-menu #actionMenu>\r\n <ng-template matMenuContent>\r\n <ng-container *ngFor=\"let a of form.actions; let i = index\">\r\n <mat-divider *ngIf=\"i > 0 && form.actions[i - 1].group !== a.group\"></mat-divider>\r\n <button mat-menu-item (click)=\"send(a.name)\">{{a.title}}</button>\r\n </ng-container>\r\n </ng-template>\r\n </mat-menu>\r\n <button mat-icon-button (click)=\"save()\" data-help=\"save\" [disabled]=\"!dirty||working\" [bizdocTooltip]=\"'Save'|translate\" *ngIf=\"mode === 'compose'\">\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n <button mat-icon-button data-help=\"tag\" (click)=\"form.tag($event)\" [bizdocTooltip]=\"'Tags' | translate\" [disabled]=\"working\"><mat-icon class=\"filled\">{{model.tags && model.tags.length ?'bookmark':'bookmark_border'}}</mat-icon></button>\r\n <button mat-icon-button data-help=\"flag\" [bizdocTooltip]=\"'Flagged'| translate\" [disabled]=\"working\" (click)=\"form.flag()\"><mat-icon [class.document-flag]=\"model.flag\">{{model.flag ? 'star' : 'star_border'}}</mat-icon></button>\r\n <button mat-icon-button (click)=\"form.attach()\" data-help=\"attach\" [bizdocTooltip]=\"'AttachFile' | translate\" [disabled]=\"working\"><mat-icon>attach_file</mat-icon></button>\r\n <button mat-icon-button [disabled]=\"working\" data-help=\"edit\" (click)=\"edit()\" [bizdocTooltip]=\"'Edit' | translate\" *ngIf=\"mode !== 'compose' && model.pending && !model.completed\"><mat-icon>create</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"navTrace()\" [bizdocTooltip]=\"'Trace' | translate\" tabindex=\"1\"><mat-icon>timeline</mat-icon></button>\r\n <button mat-icon-button (click)=\"navComments()\" data-help=\"comments\" [bizdocTooltip]=\"'Comments' | translate\" [matBadge]=\"newCommentsCount\" [matBadgeHidden]=\"!newCommentsCount\" matBadgeColor=\"accent\">\r\n <mat-icon [class.filled]=\"model.comments.length > 0\">format_quote</mat-icon>\r\n </button>\r\n <button mat-icon-button (click)=\"view()\" [bizdocTooltip]=\"'View' | translate\" [attr.aria-label]=\"'View' | translate\" *ngIf=\"enableAnalysis\" class=\"tool\"><mat-icon>data_usage</mat-icon></button>\r\n <button mat-icon-button (click)=\"expand()\" [bizdocTooltip]=\"'Expand' | translate\" *ngIf=\"expendable\" [attr.aria-label]=\"'Expand' | translate\"><mat-icon>open_in_new</mat-icon></button>\r\n <button mat-icon-button [matMenuTriggerFor]=\"optionsMenu\" [bizdocTooltip]=\"'Options' | translate\" [attr.aria-label]=\"'Options' | translate\"><mat-icon>more_vert</mat-icon></button>\r\n <mat-menu #optionsMenu=\"matMenu\">\r\n <ng-template matMenuContent>\r\n <button mat-menu-item (click)=\"form.copy()\" [disabled]=\"working\">\r\n <!--<mat-icon>content_copy</mat-icon>-->\r\n <span>{{'Copy' | translate}}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"discard()\" *ngIf=\"model.draft && !model.issued\" [disabled]=\"working\">\r\n <!--<mat-icon>delete_outlined</mat-icon>-->\r\n <span>{{'Discard' | translate}}</span>\r\n </button>\r\n <ng-container *ngIf=\"form.help\">\r\n <mat-divider></mat-divider>\r\n <button mat-menu-item (click)=\"form.guide(form.help)\">\r\n <!--<mat-icon>help_outline</mat-icon>-->\r\n <span>{{'Help' | translate}}</span>\r\n </button>\r\n </ng-container>\r\n <mat-divider></mat-divider>\r\n <button mat-menu-item (click)=\"close()\"><!--<mat-icon></mat-icon>--><span>{{'Close'| translate}}</span></button>\r\n </ng-template>\r\n </mat-menu>\r\n</mat-toolbar>\r\n<div class=\"file-dropable\" #dropable>\r\n <bizdoc-form [model]=model #form\r\n (modelChange)=\"change()\"\r\n (validChange)=\"valid=$event\"\r\n (workingChange)=\"working=$event\"\r\n (dirtyChange)=\"dirty=$event\" [mode]=\"mode\"></bizdoc-form>\r\n</div>\r\n", styles: [".nav-toolbar{position:sticky;top:0;z-index:1}\n"] }]
|
9262
9260
|
}], ctorParameters: function () { return [{ type: SessionService }, { type: MailboxService }, { type: PaneRef }, { type: PanesRouter }, { type: undefined, decorators: [{
|
9263
9261
|
type: Inject,
|
9264
9262
|
args: [BIZDOC_CONFIG]
|
@@ -13551,7 +13549,11 @@ class WorkflowComponent {
|
|
13551
13549
|
this.diagram.serializationSettings = {};
|
13552
13550
|
const obj = JSON.parse(this.diagram.saveDiagram());
|
13553
13551
|
this._form.workflow.connectors = obj.connectors;
|
13554
|
-
this._form.workflow.nodes = obj.nodes.filter(n => n.id !== 'version')
|
13552
|
+
this._form.workflow.nodes = obj.nodes.filter(n => n.id !== 'version').map((n) => {
|
13553
|
+
n.offsetX = Math.round(n.offsetX);
|
13554
|
+
n.offsetY = Math.round(n.offsetY);
|
13555
|
+
return n;
|
13556
|
+
});
|
13555
13557
|
this.saving = true;
|
13556
13558
|
return this._service.save(this._form).toPromise().then(v => {
|
13557
13559
|
this.ps.toast('ChangesSaved');
|
@@ -13973,7 +13975,7 @@ class FlowViewComponent extends TraceBase {
|
|
13973
13975
|
content: this._tooltip(tooltip),
|
13974
13976
|
position: 'TopCenter'
|
13975
13977
|
},
|
13976
|
-
constraints: Object.keys(tooltip).length ? NodeConstraints.Default
|
13978
|
+
constraints: Object.keys(tooltip).length ? NodeConstraints.Default : NodeConstraints.Default & ~NodeConstraints.Tooltip,
|
13977
13979
|
addInfo: {
|
13978
13980
|
tooltip,
|
13979
13981
|
recipient,
|
@@ -14594,7 +14596,7 @@ class TraceViewComponent extends TraceBase {
|
|
14594
14596
|
if (recipient.byId === this._session.userId && !this._session.isImpersonating) {
|
14595
14597
|
step.name = this._translate.get('ByYou', nameOf(who));
|
14596
14598
|
if (action)
|
14597
|
-
step.action = await actionBy(action,
|
14599
|
+
step.action = await actionBy(action, You, recipient.id);
|
14598
14600
|
}
|
14599
14601
|
else {
|
14600
14602
|
let by = await profileOf(recipient.byId);
|
@@ -14607,8 +14609,11 @@ class TraceViewComponent extends TraceBase {
|
|
14607
14609
|
}
|
14608
14610
|
}
|
14609
14611
|
else {
|
14610
|
-
if (recipient.userId === this._session.userId && !this._session.isImpersonating)
|
14612
|
+
if (recipient.userId === this._session.userId && !this._session.isImpersonating) {
|
14611
14613
|
step.name = this._translate.get('You');
|
14614
|
+
if (action)
|
14615
|
+
step.action = await actionBy(action, You, recipient.id);
|
14616
|
+
}
|
14612
14617
|
else {
|
14613
14618
|
let who = await profileOf(recipient.userId);
|
14614
14619
|
step.name = nameOf(who);
|
@@ -20879,7 +20884,7 @@ let AssignActionComponent = class AssignActionComponent {
|
|
20879
20884
|
this.users$ = this.userIds.valueChanges.
|
20880
20885
|
pipe(debounceTime$1(200), takeUntil(this._destroy), switchMap(v => this._accounts.findAll(v, { take: 20 }).
|
20881
20886
|
pipe(map(r => {
|
20882
|
-
const userIds = this.form.controls['userIds'].value;
|
20887
|
+
const userIds = this.form.controls['userIds'].value || [];
|
20883
20888
|
return r.filter(u => u.id !== me && userIds.indexOf(u.id) < 0);
|
20884
20889
|
}))));
|
20885
20890
|
}
|
@@ -22135,6 +22140,7 @@ let CompareDepartmentsWidget = CompareDepartmentsWidget_1 = class CompareDepartm
|
|
22135
22140
|
labelStyle: {
|
22136
22141
|
size: '0px'
|
22137
22142
|
},
|
22143
|
+
title: this._translate.get('Duration'),
|
22138
22144
|
lineStyle: { width: 0 },
|
22139
22145
|
minorTickLines: { width: 0 }
|
22140
22146
|
};
|
@@ -26773,7 +26779,11 @@ let CubeCompareWidget = CubeCompareWidget_1 = class CubeCompareWidget {
|
|
26773
26779
|
skeleton: 'duration',
|
26774
26780
|
labelStyle: {
|
26775
26781
|
size: '0px'
|
26782
|
+
}, visible: true,
|
26783
|
+
titleStyle: {
|
26784
|
+
fontFamily: FONT_FAMILY
|
26776
26785
|
},
|
26786
|
+
title: this._translate.get('Duration'),
|
26777
26787
|
lineStyle: { width: 0 },
|
26778
26788
|
minorTickLines: { width: 0 }
|
26779
26789
|
};
|
@@ -26913,7 +26923,10 @@ let MoveToActionComponent = class MoveToActionComponent {
|
|
26913
26923
|
const me = this._session.userId;
|
26914
26924
|
this.users$ = this.userIds.valueChanges.
|
26915
26925
|
pipe(debounceTime$1(200), takeUntil(this._destroy), switchMap(v => this._accounts.findAll(v, { take: 20 }).
|
26916
|
-
pipe(map(r =>
|
26926
|
+
pipe(map(r => {
|
26927
|
+
const userIds = this.form.controls['userIds'].value || [];
|
26928
|
+
return r.filter(u => u.id !== me && userIds.indexOf(u.id) < 0);
|
26929
|
+
}))));
|
26917
26930
|
}
|
26918
26931
|
/**
|
26919
26932
|
*
|