@bizdoc/core 1.12.0 → 1.12.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/esm2020/lib/browse/expanded-item/expanded-item.component.mjs +4 -2
- package/esm2020/lib/compose/trace/flow.component.mjs +3 -3
- package/esm2020/lib/compose/trace/trace.component.mjs +10 -8
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/core/translations.mjs +5 -1
- package/esm2020/lib/cube/declarations.mjs +1 -1
- package/esm2020/lib/cube/matrix/matrix.mobile.component.mjs +5 -3
- package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +5 -3
- package/esm2020/lib/cube/matrix/table.component.mjs +27 -24
- package/esm2020/lib/views/cube/matrix.component.mjs +6 -4
- package/fesm2015/bizdoc-core.mjs +57 -40
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +57 -40
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/core/models.d.ts +2 -1
- package/lib/core/translations.d.ts +4 -0
- package/lib/cube/matrix/matrix.mobile.component.d.ts +2 -1
- package/lib/cube/matrix/matrix.pane.component.d.ts +2 -1
- package/lib/cube/matrix/table.component.d.ts +3 -2
- package/lib/views/cube/matrix.component.d.ts +3 -2
- package/package.json +1 -1
package/fesm2020/bizdoc-core.mjs
CHANGED
@@ -2031,7 +2031,9 @@ const STRINGS = {
|
|
2031
2031
|
SubstitutingFor: 'Substituting {0}',
|
2032
2032
|
SubstitutingNote: 'Substituting {0} {1} {2}',
|
2033
2033
|
ActionTaken: '{0} {1} this document {2}',
|
2034
|
+
ActionTakenTo: '{0} {1} this document to {2} {3}',
|
2034
2035
|
YouTakenAction: 'You {0} this document {1}',
|
2036
|
+
YouTakenActionTo: 'You {0} this document {1} to {2}',
|
2035
2037
|
YouReceived: 'You received {0}',
|
2036
2038
|
ReceivedTime: 'Received {0}',
|
2037
2039
|
ReceivedBy: 'Received by {0} {1}',
|
@@ -2560,6 +2562,7 @@ const STRINGS = {
|
|
2560
2562
|
SubstitutingByYouFemale: '{0} מחליפה את {1} דרכך}',
|
2561
2563
|
SubstitutingNote: 'במקום {0} {1} {2}',
|
2562
2564
|
ActionTaken: '{0} {1} את המסמך {2} ',
|
2565
|
+
ActionTakenTo: '{0} {1} את המסמך {2} {3}',
|
2563
2566
|
YouReceived: 'קיבלת את המסמך {0}',
|
2564
2567
|
ReceivedTimeFemale: 'קיבלה את המסמך {0}',
|
2565
2568
|
ReceivedTimeMale: 'קיבל את המסמך {0}',
|
@@ -2568,6 +2571,7 @@ const STRINGS = {
|
|
2568
2571
|
ReceivedByMale: 'מחליף את {0} המסמך התקבל {1}',
|
2569
2572
|
ReceivedByFemale: 'מחליפה את {0} המסמך התקבל {1}',
|
2570
2573
|
YouTakenAction: '{0} {1}',
|
2574
|
+
YouTakenActionTo: '{0} {1} {2}',
|
2571
2575
|
ActionTakenBy: '{0} {1} את המסמך כמחליף {2}',
|
2572
2576
|
YouTakenActionBy: '{0} {1} בשמך את המסמך {2}',
|
2573
2577
|
ActionTakenByYou: '{0} את המסמך בשם {1} {2}',
|
@@ -6905,9 +6909,11 @@ class ExpandedItemComponent {
|
|
6905
6909
|
this._refreshTask = setInterval(() => this._refresh(), REFRESH_TIME);
|
6906
6910
|
}
|
6907
6911
|
async _note() {
|
6908
|
-
const { ownerId, issued, substitutingId, received, replied, log, id, note, byId, action } = this.item;
|
6912
|
+
const { ownerId, issued, substitutingId, received, replied, log, id, note, byId, action, toId } = this.item;
|
6909
6913
|
if (substitutingId) {
|
6910
6914
|
this._accounts.get(substitutingId).subscribe(u => {
|
6915
|
+
//if (toId) { }
|
6916
|
+
//else
|
6911
6917
|
if (replied) {
|
6912
6918
|
const time = this._fromNow(replied), action = this._session.profile.actions.find(a => a.name === action), adjective = action ? (action.adjective || action.title).toLowerCase() : action;
|
6913
6919
|
this.note = this._translate.personalize('YouSubstituteActionTaken', u.gender, adjective, this._formatUserElement(u), time);
|
@@ -13337,7 +13343,7 @@ class FlowViewComponent extends TraceBase {
|
|
13337
13343
|
if (r > 0) {
|
13338
13344
|
dconnectors.forEach(c => {
|
13339
13345
|
if (c.targetId === node.id)
|
13340
|
-
|
13346
|
+
connectors.push({
|
13341
13347
|
sourceID: c.sourceId,
|
13342
13348
|
targetID: nod.id,
|
13343
13349
|
addInfo: {
|
@@ -13345,7 +13351,7 @@ class FlowViewComponent extends TraceBase {
|
|
13345
13351
|
}
|
13346
13352
|
});
|
13347
13353
|
if (c.sourceId === node.id)
|
13348
|
-
|
13354
|
+
connectors.push({
|
13349
13355
|
sourceID: nod.id,
|
13350
13356
|
targetID: c.targetId,
|
13351
13357
|
addInfo: {
|
@@ -13893,6 +13899,8 @@ class TraceViewComponent extends TraceBase {
|
|
13893
13899
|
step.action = action ? this._actionName(action, by) : l.action;
|
13894
13900
|
}
|
13895
13901
|
}
|
13902
|
+
//else if (recipient.toId) {
|
13903
|
+
//}
|
13896
13904
|
else {
|
13897
13905
|
if (l.userId === this._session.userId)
|
13898
13906
|
step.name = this._translate.get('You');
|
@@ -13913,8 +13921,9 @@ class TraceViewComponent extends TraceBase {
|
|
13913
13921
|
if (who.role)
|
13914
13922
|
step.role = who.role;
|
13915
13923
|
}
|
13916
|
-
if (action)
|
13924
|
+
if (action) {
|
13917
13925
|
step.action = action ? this._actionName(action, who) : l.action;
|
13926
|
+
}
|
13918
13927
|
}
|
13919
13928
|
trace.push(step);
|
13920
13929
|
}
|
@@ -14051,7 +14060,7 @@ class TraceViewComponent extends TraceBase {
|
|
14051
14060
|
*/
|
14052
14061
|
_actionName(action, user) {
|
14053
14062
|
if (user === You) {
|
14054
|
-
const gender = this._session
|
14063
|
+
const { gender } = this._session;
|
14055
14064
|
return (gender === 'Male' ? (action.youMale || action.you) :
|
14056
14065
|
gender === 'Female' ? (action.youFemale || action.you) :
|
14057
14066
|
action.you) ||
|
@@ -14059,9 +14068,8 @@ class TraceViewComponent extends TraceBase {
|
|
14059
14068
|
action.title;
|
14060
14069
|
}
|
14061
14070
|
else {
|
14062
|
-
|
14063
|
-
|
14064
|
-
gender === 'Female' ? (action.pastFemale || action.past) :
|
14071
|
+
return (user.gender === 'Male' ? (action.pastMale || action.past) :
|
14072
|
+
user.gender === 'Female' ? (action.pastFemale || action.past) :
|
14065
14073
|
action.past)
|
14066
14074
|
|| action.title;
|
14067
14075
|
}
|
@@ -14080,10 +14088,10 @@ class TraceViewComponent extends TraceBase {
|
|
14080
14088
|
}
|
14081
14089
|
}
|
14082
14090
|
TraceViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TraceViewComponent, deps: [{ token: SessionService }, { token: TranslateService }, { token: AccountService }, { token: ChatInfo }, { token: HubService }], target: i0.ɵɵFactoryTarget.Component });
|
14083
|
-
TraceViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: TraceViewComponent, selector: "bizdoc-trace", inputs: { model: "model" }, outputs: { versionSelected: "versionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"nav-toolbar row\">\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" [bizdocTooltip]=\"'ShowAll'|translate\"><mat-icon>filter_list</mat-icon></button>\r\n <mat-menu #menu> \r\n <button mat-menu-item (click)=\"showAll=false\">\r\n <mat-icon>{{ !showAll?'check':'' }}</mat-icon>\r\n <span>{{'Route' | translate }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"showAll=true\">\r\n <mat-icon>{{showAll?'check':''}}</mat-icon>\r\n <span>{{'Log' | translate }}</span>\r\n </button>\r\n </mat-menu>\r\n</div>\r\n<table class=\"mat-table\" @list>\r\n <tbody role=\"rowgroup\">\r\n <tr class=\"mat-row\" *ngFor=\"let l of data\" @item>\r\n <td class=\"mat-cell\">\r\n <span [innerHTML]=\"l.name | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n <span *ngIf=l.role>{{'JoinComma'|translate}}{{l.role}}</span>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <ng-container [ngSwitch]=\"l.type\">\r\n <
|
14091
|
+
TraceViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: TraceViewComponent, selector: "bizdoc-trace", inputs: { model: "model" }, outputs: { versionSelected: "versionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"nav-toolbar row\">\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" [bizdocTooltip]=\"'ShowAll'|translate\"><mat-icon>filter_list</mat-icon></button>\r\n <mat-menu #menu> \r\n <button mat-menu-item (click)=\"showAll=false\">\r\n <mat-icon>{{ !showAll?'check':'' }}</mat-icon>\r\n <span>{{'Route' | translate }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"showAll=true\">\r\n <mat-icon>{{showAll?'check':''}}</mat-icon>\r\n <span>{{'Log' | translate }}</span>\r\n </button>\r\n </mat-menu>\r\n</div>\r\n<table class=\"mat-table\" @list>\r\n <tbody role=\"rowgroup\">\r\n <tr class=\"mat-row\" *ngFor=\"let l of data\" @item>\r\n <td class=\"mat-cell\">\r\n <span [innerHTML]=\"l.name | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n <span *ngIf=l.role>{{'JoinComma'|translate}}{{l.role}}</span>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <ng-container [ngSwitch]=\"l.type\">\r\n <ng-container *ngSwitchCase=\"'ActionTaken'\">\r\n <span [innerHTML]=\"l.action | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n </ng-container>\r\n <span *ngSwitchCase=\"'Owner'\">{{'Issued' | translate}}</span>\r\n <span *ngSwitchCase=\"'Pending'\">{{'IsPending' | translate}}</span>\r\n <span *ngSwitchCase=\"'CheckOut'\">{{'CheckedIn' | translate : l.fileName}}</span>\r\n <span *ngSwitchCase=\"'CheckIn'\">{{'CheckedOut' | translate : l.fileName}}</span>\r\n <span *ngSwitchCase=\"'Estimate'\">{{'Estimate' | translate}}</span>\r\n <span *ngSwitchCase=\"'ModelChange'\">{{'Changed' | translate}}</span>\r\n </ng-container>\r\n <span *ngIf=\"l.fyi\"> {{'FYI'|translate}}</span>\r\n </td>\r\n <td class=\"mat-cell\" [ngSwitch]=\"l.estimate\">\r\n <ng-container *ngSwitchCase=\"true\">\r\n <span *ngIf=\"l.durationMax && l.durationMax === l.durationMin\" [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTime'| translate : (l.durationMax | amDuration:'s')}}</span>\r\n <span *ngIf=\"l.durationMax && l.durationMax !== l.durationMin\"\r\n [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTimeRange'| translate : (l.durationMin | amDuration:'s') : (l.durationMax | amDuration:'s')}}</span>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <span>{{l.time | amCalendar : null : CALENDAR_SPEC }}</span>\r\n <span *ngIf=\"l.duration\" [bizdocTooltip]=\"l.duration|amDurationFormat\" class=\"duration\"> ({{l.duration | amDuration:'s'}})</span>\r\n </ng-container>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <span *ngIf=\"l.note\">{{l.note}}</span>\r\n <button mat-icon-button *ngIf=\"l.model\" (click)=\"compare(l)\" [bizdocTooltip]=\"'Compare'|translate\" bizdocTooltipPosition=\"start\"><mat-icon>more_horiz</mat-icon></button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n", styles: [":host{width:100%}table{width:100%;background:transparent}table td{padding:0 4px}.duration{white-space:nowrap}\n"], components: [{ 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: i8$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i8$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i8$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "translate": TranslatePipe, "sanitizeHtml": SanitizeHtmlPipe, "amDurationFormat": DurationFormatPipe, "amDuration": DurationPipe, "amCalendar": CalendarPipe }, animations: [listAnimation, itemAnimation] });
|
14084
14092
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TraceViewComponent, decorators: [{
|
14085
14093
|
type: Component,
|
14086
|
-
args: [{ selector: 'bizdoc-trace', animations: [listAnimation, itemAnimation], template: "<div class=\"nav-toolbar row\">\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" [bizdocTooltip]=\"'ShowAll'|translate\"><mat-icon>filter_list</mat-icon></button>\r\n <mat-menu #menu> \r\n <button mat-menu-item (click)=\"showAll=false\">\r\n <mat-icon>{{ !showAll?'check':'' }}</mat-icon>\r\n <span>{{'Route' | translate }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"showAll=true\">\r\n <mat-icon>{{showAll?'check':''}}</mat-icon>\r\n <span>{{'Log' | translate }}</span>\r\n </button>\r\n </mat-menu>\r\n</div>\r\n<table class=\"mat-table\" @list>\r\n <tbody role=\"rowgroup\">\r\n <tr class=\"mat-row\" *ngFor=\"let l of data\" @item>\r\n <td class=\"mat-cell\">\r\n <span [innerHTML]=\"l.name | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n <span *ngIf=l.role>{{'JoinComma'|translate}}{{l.role}}</span>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <ng-container [ngSwitch]=\"l.type\">\r\n <
|
14094
|
+
args: [{ selector: 'bizdoc-trace', animations: [listAnimation, itemAnimation], template: "<div class=\"nav-toolbar row\">\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" [bizdocTooltip]=\"'ShowAll'|translate\"><mat-icon>filter_list</mat-icon></button>\r\n <mat-menu #menu> \r\n <button mat-menu-item (click)=\"showAll=false\">\r\n <mat-icon>{{ !showAll?'check':'' }}</mat-icon>\r\n <span>{{'Route' | translate }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"showAll=true\">\r\n <mat-icon>{{showAll?'check':''}}</mat-icon>\r\n <span>{{'Log' | translate }}</span>\r\n </button>\r\n </mat-menu>\r\n</div>\r\n<table class=\"mat-table\" @list>\r\n <tbody role=\"rowgroup\">\r\n <tr class=\"mat-row\" *ngFor=\"let l of data\" @item>\r\n <td class=\"mat-cell\">\r\n <span [innerHTML]=\"l.name | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n <span *ngIf=l.role>{{'JoinComma'|translate}}{{l.role}}</span>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <ng-container [ngSwitch]=\"l.type\">\r\n <ng-container *ngSwitchCase=\"'ActionTaken'\">\r\n <span [innerHTML]=\"l.action | sanitizeHtml\" (click)=\"chat($event)\"></span>\r\n </ng-container>\r\n <span *ngSwitchCase=\"'Owner'\">{{'Issued' | translate}}</span>\r\n <span *ngSwitchCase=\"'Pending'\">{{'IsPending' | translate}}</span>\r\n <span *ngSwitchCase=\"'CheckOut'\">{{'CheckedIn' | translate : l.fileName}}</span>\r\n <span *ngSwitchCase=\"'CheckIn'\">{{'CheckedOut' | translate : l.fileName}}</span>\r\n <span *ngSwitchCase=\"'Estimate'\">{{'Estimate' | translate}}</span>\r\n <span *ngSwitchCase=\"'ModelChange'\">{{'Changed' | translate}}</span>\r\n </ng-container>\r\n <span *ngIf=\"l.fyi\"> {{'FYI'|translate}}</span>\r\n </td>\r\n <td class=\"mat-cell\" [ngSwitch]=\"l.estimate\">\r\n <ng-container *ngSwitchCase=\"true\">\r\n <span *ngIf=\"l.durationMax && l.durationMax === l.durationMin\" [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTime'| translate : (l.durationMax | amDuration:'s')}}</span>\r\n <span *ngIf=\"l.durationMax && l.durationMax !== l.durationMin\"\r\n [bizdocTooltip]=\"l.durationMax|amDurationFormat\">{{'EstimateTimeRange'| translate : (l.durationMin | amDuration:'s') : (l.durationMax | amDuration:'s')}}</span>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <span>{{l.time | amCalendar : null : CALENDAR_SPEC }}</span>\r\n <span *ngIf=\"l.duration\" [bizdocTooltip]=\"l.duration|amDurationFormat\" class=\"duration\"> ({{l.duration | amDuration:'s'}})</span>\r\n </ng-container>\r\n </td>\r\n <td class=\"mat-cell\">\r\n <span *ngIf=\"l.note\">{{l.note}}</span>\r\n <button mat-icon-button *ngIf=\"l.model\" (click)=\"compare(l)\" [bizdocTooltip]=\"'Compare'|translate\" bizdocTooltipPosition=\"start\"><mat-icon>more_horiz</mat-icon></button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n", styles: [":host{width:100%}table{width:100%;background:transparent}table td{padding:0 4px}.duration{white-space:nowrap}\n"] }]
|
14087
14095
|
}], ctorParameters: function () { return [{ type: SessionService }, { type: TranslateService }, { type: AccountService }, { type: ChatInfo }, { type: HubService }]; }, propDecorators: { model: [{
|
14088
14096
|
type: Input
|
14089
14097
|
}], versionSelected: [{
|
@@ -14863,7 +14871,7 @@ class CubeMatrixComponent {
|
|
14863
14871
|
explore(column, row) {
|
14864
14872
|
if (!this.interactive)
|
14865
14873
|
return;
|
14866
|
-
let x, series;
|
14874
|
+
let x, series, index;
|
14867
14875
|
const axes = { ...this.filters };
|
14868
14876
|
if (column.index === undefined)
|
14869
14877
|
x = column.key;
|
@@ -14872,8 +14880,7 @@ class CubeMatrixComponent {
|
|
14872
14880
|
if (isFunction(calculate))
|
14873
14881
|
return;
|
14874
14882
|
x = [];
|
14875
|
-
for (let
|
14876
|
-
let column = this.columns[i];
|
14883
|
+
for (let column of this.columns) {
|
14877
14884
|
if (column.index !== undefined)
|
14878
14885
|
continue;
|
14879
14886
|
let key = column.key;
|
@@ -14882,26 +14889,30 @@ class CubeMatrixComponent {
|
|
14882
14889
|
break;
|
14883
14890
|
}
|
14884
14891
|
}
|
14885
|
-
|
14886
|
-
|
14887
|
-
|
14888
|
-
|
14889
|
-
|
14890
|
-
|
14891
|
-
|
14892
|
-
|
14893
|
-
|
14894
|
-
|
14895
|
-
|
14896
|
-
|
14897
|
-
|
14898
|
-
|
14899
|
-
|
14892
|
+
axes[this.xAxis.name] = x;
|
14893
|
+
if (row.key) {
|
14894
|
+
if (row.index === undefined)
|
14895
|
+
series = row.key;
|
14896
|
+
else {
|
14897
|
+
let { value, calculate } = this._sum[row.index];
|
14898
|
+
if (isFunction(calculate))
|
14899
|
+
return;
|
14900
|
+
series = [];
|
14901
|
+
for (let row of this.rows) {
|
14902
|
+
if (row.index !== undefined)
|
14903
|
+
continue;
|
14904
|
+
let key = row.key;
|
14905
|
+
series.push(key);
|
14906
|
+
if (key === value)
|
14907
|
+
break;
|
14908
|
+
}
|
14900
14909
|
}
|
14910
|
+
axes[this.series.name] = series;
|
14911
|
+
index = null;
|
14901
14912
|
}
|
14902
|
-
|
14903
|
-
|
14904
|
-
this.onExplore.emit(axes);
|
14913
|
+
else
|
14914
|
+
index = row.name;
|
14915
|
+
this.onExplore.emit({ axes, index });
|
14905
14916
|
}
|
14906
14917
|
export() {
|
14907
14918
|
const numberFormat = this._service.numberFormat, cells = [], rows = [{ index: 1, cells }];
|
@@ -14983,10 +14994,10 @@ class CubeMatrixComponent {
|
|
14983
14994
|
}
|
14984
14995
|
}
|
14985
14996
|
CubeMatrixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CubeMatrixComponent, deps: [{ token: PromptService }, { token: CubeService }, { token: SessionService }, { token: TranslateService }, { token: DatasourceService }], target: i0.ɵɵFactoryTarget.Component });
|
14986
|
-
CubeMatrixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CubeMatrixComponent, selector: "bizdoc-cube-matrix", inputs: { seriesTotalLabel: "seriesTotalLabel", xAxisTotalLabel: "xAxisTotalLabel", _cube: ["cube", "_cube"], _xAxis: ["xAxis", "_xAxis"], _series: ["series", "_series"], _indices: ["indices", "_indices"], scope: "scope", sum: "sum", filters: "filters", loading: "loading", interactive: "interactive" }, outputs: { onExplore: "explore", loadingChange: "loadingChange" }, viewQueries: [{ propertyName: "tableElement", first: true, predicate: ["table"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<table #table class=\"mat-table cube-table\" (mouseleave)=\"move(-1, -1)\" *ngIf=\"data\">\r\n <thead>\r\n <!-- headers -->\r\n <tr class=\"mat-header-row\">\r\n <th></th>\r\n <th *ngFor=\"let column of columns; let x = index\" (mouseenter)=\"move(x + 1, -2)\" class=\"mat-header-cell\">\r\n {{ column.value }}\r\n </th>\r\n <th class=\"mat-header-cell\">{{xAxisTotalLabel}}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <!-- indices -->\r\n <tr class=\"mat-row cube-index\" *ngFor=\"let index of indices; let y = index\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(0, y)\">{{index.title}}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y)\">\r\n {{ data[index.name][column.key] }}\r\n </td>\r\n <th class=\"mat-cell figure\" (mouseenter)=\"move(0, y)\">\r\n {{ data[index.name]['_total'] }}\r\n </th>\r\n </tr>\r\n </tbody>\r\n <tbody>\r\n <!-- rows -->\r\n <tr *ngFor=\"let row of rows; let y = index\" class=\"mat-row\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(-2, y + indices.length)\">{{ row.value }}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y + indices.length)\"
|
14997
|
+
CubeMatrixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CubeMatrixComponent, selector: "bizdoc-cube-matrix", inputs: { seriesTotalLabel: "seriesTotalLabel", xAxisTotalLabel: "xAxisTotalLabel", _cube: ["cube", "_cube"], _xAxis: ["xAxis", "_xAxis"], _series: ["series", "_series"], _indices: ["indices", "_indices"], scope: "scope", sum: "sum", filters: "filters", loading: "loading", interactive: "interactive" }, outputs: { onExplore: "explore", loadingChange: "loadingChange" }, viewQueries: [{ propertyName: "tableElement", first: true, predicate: ["table"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<table #table class=\"mat-table cube-table\" (mouseleave)=\"move(-1, -1)\" *ngIf=\"data\">\r\n <thead>\r\n <!-- headers -->\r\n <tr class=\"mat-header-row\">\r\n <th></th>\r\n <th *ngFor=\"let column of columns; let x = index\" (mouseenter)=\"move(x + 1, -2)\" class=\"mat-header-cell\">\r\n {{ column.value }}\r\n </th>\r\n <th class=\"mat-header-cell\">{{xAxisTotalLabel}}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <!-- indices -->\r\n <tr class=\"mat-row cube-index\" *ngFor=\"let index of indices; let y = index\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(0, y)\">{{index.title}}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" [class.clickable]=\"interactive && column.explorable !== false\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y)\" (click)=\"explore(column, index)\">\r\n {{ data[index.name][column.key] }}\r\n </td>\r\n <th class=\"mat-cell figure\" (mouseenter)=\"move(0, y)\">\r\n {{ data[index.name]['_total'] }}\r\n </th>\r\n </tr>\r\n </tbody>\r\n <tbody>\r\n <!-- rows -->\r\n <tr *ngFor=\"let row of rows; let y = index\" class=\"mat-row\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(-2, y + indices.length)\">{{ row.value }}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y + indices.length)\" [class.clickable]=\"interactive && column.explorable !== false && row.explorable !== false\" (click)=\"explore(column, row)\">\r\n {{ data[row.key][column.key] }}\r\n </td>\r\n <th class=\"mat-cell figure\" (mouseenter)=\"move(-1, y + indices.length)\">\r\n <ng-container *ngIf=\"data[row.key]['_total'] !== undefined\">\r\n {{ data[row.key]['_total'] }}\r\n </ng-container>\r\n </th>\r\n </tr>\r\n </tbody>\r\n <tfoot>\r\n <!-- footer -->\r\n <tr class=\"mat-footer-row\">\r\n <td class=\"mat-footer-cell\">{{seriesTotalLabel}}</td>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-footer-cell figure\" (mouseenter)=\"move(x + 1, -2)\"\r\n [class.negative-figure]=\"totals[column.key].startsWith('-')\">\r\n <ng-container *ngIf=\"totals[column.key] !== undefined\">\r\n {{ totals[column.key] }}\r\n </ng-container>\r\n </td>\r\n <th class=\"mat-footer-cell figure\">{{ totals['_grand'] }}</th>\r\n </tr>\r\n </tfoot>\r\n</table>\r\n", styles: [".clickable{cursor:pointer}.cube-table{width:100%;background:transparent!important;table-layout:fixed}.cube-table th{cursor:default}.cube-table th.figure{font-weight:500}.cube-table td,.cube-table th{padding-right:8px}\n"], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [matrixAnimation] });
|
14987
14998
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CubeMatrixComponent, decorators: [{
|
14988
14999
|
type: Component,
|
14989
|
-
args: [{ selector: 'bizdoc-cube-matrix', animations: [matrixAnimation], template: "<table #table class=\"mat-table cube-table\" (mouseleave)=\"move(-1, -1)\" *ngIf=\"data\">\r\n <thead>\r\n <!-- headers -->\r\n <tr class=\"mat-header-row\">\r\n <th></th>\r\n <th *ngFor=\"let column of columns; let x = index\" (mouseenter)=\"move(x + 1, -2)\" class=\"mat-header-cell\">\r\n {{ column.value }}\r\n </th>\r\n <th class=\"mat-header-cell\">{{xAxisTotalLabel}}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <!-- indices -->\r\n <tr class=\"mat-row cube-index\" *ngFor=\"let index of indices; let y = index\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(0, y)\">{{index.title}}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y)\">\r\n {{ data[index.name][column.key] }}\r\n </td>\r\n <th class=\"mat-cell figure\" (mouseenter)=\"move(0, y)\">\r\n {{ data[index.name]['_total'] }}\r\n </th>\r\n </tr>\r\n </tbody>\r\n <tbody>\r\n <!-- rows -->\r\n <tr *ngFor=\"let row of rows; let y = index\" class=\"mat-row\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(-2, y + indices.length)\">{{ row.value }}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y + indices.length)\"
|
15000
|
+
args: [{ selector: 'bizdoc-cube-matrix', animations: [matrixAnimation], template: "<table #table class=\"mat-table cube-table\" (mouseleave)=\"move(-1, -1)\" *ngIf=\"data\">\r\n <thead>\r\n <!-- headers -->\r\n <tr class=\"mat-header-row\">\r\n <th></th>\r\n <th *ngFor=\"let column of columns; let x = index\" (mouseenter)=\"move(x + 1, -2)\" class=\"mat-header-cell\">\r\n {{ column.value }}\r\n </th>\r\n <th class=\"mat-header-cell\">{{xAxisTotalLabel}}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <!-- indices -->\r\n <tr class=\"mat-row cube-index\" *ngFor=\"let index of indices; let y = index\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(0, y)\">{{index.title}}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" [class.clickable]=\"interactive && column.explorable !== false\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y)\" (click)=\"explore(column, index)\">\r\n {{ data[index.name][column.key] }}\r\n </td>\r\n <th class=\"mat-cell figure\" (mouseenter)=\"move(0, y)\">\r\n {{ data[index.name]['_total'] }}\r\n </th>\r\n </tr>\r\n </tbody>\r\n <tbody>\r\n <!-- rows -->\r\n <tr *ngFor=\"let row of rows; let y = index\" class=\"mat-row\">\r\n <th class=\"mat-header-cell\" (mouseenter)=\"move(-2, y + indices.length)\">{{ row.value }}</th>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-cell figure\" (mouseenter)=\"move(x + 1, y + indices.length)\" [class.clickable]=\"interactive && column.explorable !== false && row.explorable !== false\" (click)=\"explore(column, row)\">\r\n {{ data[row.key][column.key] }}\r\n </td>\r\n <th class=\"mat-cell figure\" (mouseenter)=\"move(-1, y + indices.length)\">\r\n <ng-container *ngIf=\"data[row.key]['_total'] !== undefined\">\r\n {{ data[row.key]['_total'] }}\r\n </ng-container>\r\n </th>\r\n </tr>\r\n </tbody>\r\n <tfoot>\r\n <!-- footer -->\r\n <tr class=\"mat-footer-row\">\r\n <td class=\"mat-footer-cell\">{{seriesTotalLabel}}</td>\r\n <td *ngFor=\"let column of columns; let x = index\" class=\"mat-footer-cell figure\" (mouseenter)=\"move(x + 1, -2)\"\r\n [class.negative-figure]=\"totals[column.key].startsWith('-')\">\r\n <ng-container *ngIf=\"totals[column.key] !== undefined\">\r\n {{ totals[column.key] }}\r\n </ng-container>\r\n </td>\r\n <th class=\"mat-footer-cell figure\">{{ totals['_grand'] }}</th>\r\n </tr>\r\n </tfoot>\r\n</table>\r\n", styles: [".clickable{cursor:pointer}.cube-table{width:100%;background:transparent!important;table-layout:fixed}.cube-table th{cursor:default}.cube-table th.figure{font-weight:500}.cube-table td,.cube-table th{padding-right:8px}\n"] }]
|
14990
15001
|
}], ctorParameters: function () { return [{ type: PromptService }, { type: CubeService }, { type: SessionService }, { type: TranslateService }, { type: DatasourceService }]; }, propDecorators: { tableElement: [{
|
14991
15002
|
type: ViewChild,
|
14992
15003
|
args: ['table']
|
@@ -15212,10 +15223,12 @@ class CubeMatrixPaneComponent extends CubeMatrixBase {
|
|
15212
15223
|
policy: OpenPolicy.Tab
|
15213
15224
|
});
|
15214
15225
|
}
|
15215
|
-
explore(
|
15226
|
+
explore(evt) {
|
15227
|
+
const { axes: queryParams, index } = evt;
|
15216
15228
|
this._router.navigate(['cube', this.cube, 'explore'], {
|
15217
15229
|
queryParams,
|
15218
|
-
policy: OpenPolicy.Tab | OpenPolicy.Dismissable
|
15230
|
+
policy: OpenPolicy.Tab | OpenPolicy.Dismissable,
|
15231
|
+
state: { index }
|
15219
15232
|
});
|
15220
15233
|
}
|
15221
15234
|
}
|
@@ -19770,9 +19783,11 @@ class CubeMatrixMobileComponent extends CubeMatrixBase {
|
|
19770
19783
|
onFilter(axes) {
|
19771
19784
|
this._router.navigate([], { queryParams: axes });
|
19772
19785
|
}
|
19773
|
-
explore(
|
19786
|
+
explore(evt) {
|
19787
|
+
const { axes: queryParams, index } = evt;
|
19774
19788
|
this._router.navigate(['cube', this.cube, 'explore'], {
|
19775
|
-
queryParams
|
19789
|
+
queryParams,
|
19790
|
+
state: { index }
|
19776
19791
|
});
|
19777
19792
|
}
|
19778
19793
|
}
|
@@ -24595,10 +24610,12 @@ let CubeDocumentMatrixComponent = class CubeDocumentMatrixComponent extends Cube
|
|
24595
24610
|
a.name === filters);
|
24596
24611
|
this.filters.forEach(f => this.sources[f.name] = this._service.values(this.cube.name, f.name).pipe(map$1(mapToArray)));
|
24597
24612
|
}
|
24598
|
-
explore(
|
24613
|
+
explore(evt) {
|
24614
|
+
const { axes: queryParams, index } = evt;
|
24599
24615
|
this._router.navigate(['cube', this.cube.name, 'explore'], {
|
24600
|
-
queryParams
|
24601
|
-
group: this.group
|
24616
|
+
queryParams,
|
24617
|
+
group: this.group,
|
24618
|
+
state: { index }
|
24602
24619
|
});
|
24603
24620
|
}
|
24604
24621
|
/**
|