@provoly/dashboard 1.1.0 → 1.1.2
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/assets/svgs/analytic.svg +1 -0
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +5 -4
- package/esm2022/import/components/import.component.mjs +22 -10
- package/esm2022/import/i18n/en.translations.mjs +3 -1
- package/esm2022/import/i18n/fr.translations.mjs +3 -1
- package/esm2022/lib/core/access/access.service.mjs +4 -1
- package/esm2022/lib/core/i18n/en.translations.mjs +2 -1
- package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
- package/esm2022/lib/core/model/public-api.mjs +2 -1
- package/esm2022/lib/core/model/widget-aggregated-chart-manifest.interface.mjs +1 -1
- package/esm2022/lib/core/model/widget-analytic-manifest.interface.mjs +2 -0
- package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +8 -12
- package/esm2022/lib/core/store/aggregation/frontend-aggregation/aggregation-utils.class.mjs +5 -11
- package/esm2022/lib/core/store/aggregation/frontend-aggregation/frontend-aggregation.service.mjs +6 -6
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +5 -2
- package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +12 -1
- package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +4 -3
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +4 -2
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +6 -4
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +17 -9
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +8 -2
- package/esm2022/presentation/components/presentation.component.mjs +18 -9
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +42 -87
- package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +2 -1
- package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +3 -5
- package/esm2022/widgets/widget-analytic/component/widget-analytic.component.mjs +108 -0
- package/esm2022/widgets/widget-analytic/i18n/en.translations.mjs +13 -0
- package/esm2022/widgets/widget-analytic/i18n/fr.translations.mjs +13 -0
- package/esm2022/widgets/widget-analytic/provoly-dashboard-widgets-widget-analytic.mjs +5 -0
- package/esm2022/widgets/widget-analytic/public-api.mjs +3 -0
- package/esm2022/widgets/widget-analytic/style/css.component.mjs +11 -0
- package/esm2022/widgets/widget-analytic/widget-analytic.module.mjs +70 -0
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +2 -2
- package/esm2022/widgets/widget-iframe/component/widget-iframe.component.mjs +2 -2
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +18 -141
- package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +2 -34
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +191 -0
- package/esm2022/widgets/widget-map/public-api.mjs +2 -1
- package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +2 -2
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +24 -5
- package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs +3 -2
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +25 -9
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +17 -8
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +45 -91
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs +211 -0
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -0
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +207 -175
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +23 -4
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +71 -43
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/import/components/import.component.d.ts +4 -2
- package/import/i18n/en.translations.d.ts +2 -0
- package/import/i18n/fr.translations.d.ts +2 -0
- package/lib/core/access/access.service.d.ts +3 -0
- package/lib/core/i18n/en.translations.d.ts +1 -0
- package/lib/core/i18n/fr.translations.d.ts +1 -0
- package/lib/core/model/public-api.d.ts +1 -0
- package/lib/core/model/widget-aggregated-chart-manifest.interface.d.ts +3 -12
- package/lib/core/model/widget-analytic-manifest.interface.d.ts +6 -0
- package/lib/core/store/aggregation/frontend-aggregation/aggregation-utils.class.d.ts +4 -4
- package/lib/core/store/aggregation/frontend-aggregation/frontend-aggregation.service.d.ts +2 -2
- package/lib/core/store/data-source/data-source.effects.d.ts +4 -2
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
- package/lib/dashboard/store/dashboard.actions.d.ts +11 -1
- package/lib/dashboard/store/dashboard.effects.d.ts +2 -0
- package/lib/dashboard/store/dashboard.reducers.d.ts +3 -1
- package/lib/dashboard/store/dashboard.selectors.d.ts +1 -1
- package/package.json +37 -31
- package/presentation/components/presentation.component.d.ts +5 -3
- package/styles/components/_o-pry-admin-classes-customize.scss +1 -0
- package/styles-theme/components-theme/_o-widget.theme.scss +0 -14
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +9 -7
- package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-aggregated-chart/i18n/fr.translations.d.ts +2 -4
- package/widgets/widget-analytic/component/widget-analytic.component.d.ts +47 -0
- package/widgets/widget-analytic/i18n/en.translations.d.ts +12 -0
- package/widgets/widget-analytic/i18n/fr.translations.d.ts +12 -0
- package/widgets/widget-analytic/index.d.ts +5 -0
- package/widgets/widget-analytic/public-api.d.ts +2 -0
- package/widgets/widget-analytic/style/_o-widget-analytic.scss +43 -0
- package/widgets/widget-analytic/style/css.component.d.ts +5 -0
- package/widgets/widget-analytic/widget-analytic.module.d.ts +19 -0
- package/widgets/widget-iframe/component/widget-iframe.component.d.ts +3 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +12 -23
- package/widgets/widget-map/interaction/interaction-manager.class.d.ts +0 -5
- package/widgets/widget-map/interaction/tooltip-manager.class.d.ts +43 -0
- package/widgets/widget-map/public-api.d.ts +1 -0
- package/widgets/widget-map/style/_m-layer-legend.scss +1 -4
- package/widgets/widget-table/component/widget-table.component.d.ts +3 -1
- package/widgets/widget-tile/component/widget-tile.component.d.ts +7 -2
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
|
+
import * as i4 from '@provoly/dashboard';
|
|
4
|
+
import { DataWidgetComponent, ClassSelectors, WIDGET_HEADER_HEIGHT, BaseWidgetModule, PryCoreModule, PryDashboardModule, PrySelectModule, PryIconModule, PryToggleModule, PryI18nModule } from '@provoly/dashboard';
|
|
5
|
+
import { map, combineLatest } from 'rxjs';
|
|
6
|
+
import * as i1 from '@ngrx/store';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import { CommonModule, AsyncPipe } from '@angular/common';
|
|
9
|
+
import * as i3 from '@angular/forms';
|
|
10
|
+
import { FormsModule } from '@angular/forms';
|
|
11
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
12
|
+
import { PryCheckboxModule } from '@provoly/dashboard/components/checkbox';
|
|
13
|
+
import { WidgetMapModule } from '@provoly/dashboard/widgets/widget-map';
|
|
14
|
+
|
|
15
|
+
class PryWidgetAnalyticCssComponent {
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PryWidgetAnalyticCssComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: PryWidgetAnalyticCssComponent, selector: "pry-widget-analytic-css", ngImport: i0, template: '', isInline: true, styles: [".o-widget__analytic__table,.o-widget__analytic__table table{width:100%}.o-widget__analytic__table table th,.o-widget__analytic__table table td{text-align:center}.o-widget__analytic__table table th:first-child,.o-widget__analytic__table table td:first-child{text-align:left}.o-widget__analytic__table table .primary-header th:not(:first-child){background-color:#d7e7f7}.o-widget__analytic__table table .secondary-header th:not(:first-child){background-color:#f3f8fc}.o-widget__analytic__table table .partial-total th,.o-widget__analytic__table table .partial-total td{background-color:#f0f0f0}.o-widget__analytic__table table .grand-total th,.o-widget__analytic__table table .grand-total td{background-color:#bdb9da}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PryWidgetAnalyticCssComponent, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: 'pry-widget-analytic-css', template: '', encapsulation: ViewEncapsulation.None, styles: [".o-widget__analytic__table,.o-widget__analytic__table table{width:100%}.o-widget__analytic__table table th,.o-widget__analytic__table table td{text-align:center}.o-widget__analytic__table table th:first-child,.o-widget__analytic__table table td:first-child{text-align:left}.o-widget__analytic__table table .primary-header th:not(:first-child){background-color:#d7e7f7}.o-widget__analytic__table table .secondary-header th:not(:first-child){background-color:#f3f8fc}.o-widget__analytic__table table .partial-total th,.o-widget__analytic__table table .partial-total td{background-color:#f0f0f0}.o-widget__analytic__table table .grand-total th,.o-widget__analytic__table table .grand-total td{background-color:#bdb9da}\n"] }]
|
|
22
|
+
}] });
|
|
23
|
+
|
|
24
|
+
class WidgetAnalyticComponent extends DataWidgetComponent {
|
|
25
|
+
change($event, prop) {
|
|
26
|
+
this.optionsCopy[prop] = $event;
|
|
27
|
+
}
|
|
28
|
+
constructor(store, el) {
|
|
29
|
+
super(store, el);
|
|
30
|
+
this.optionsCopy = { primaryProp: '', secondaryProp: '', verticalProp: '', valueProp: '' };
|
|
31
|
+
this.options$ = this.manifest$.pipe(map((manifest) => (manifest.options ?? {})));
|
|
32
|
+
this.classes$ = this.store.select(ClassSelectors.classes);
|
|
33
|
+
this.height$ = combineLatest([this.widgetSize$, this.displayHeader$]).pipe(map(([size, header]) => size.height - (header ? WIDGET_HEADER_HEIGHT.value : 0)));
|
|
34
|
+
this.subscriptions.add(this.options$.subscribe((options) => {
|
|
35
|
+
this.optionsCopy = JSON.parse(JSON.stringify(options));
|
|
36
|
+
}));
|
|
37
|
+
this.primaryProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.primaryProp)));
|
|
38
|
+
this.secondaryProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.secondaryProp, 1)));
|
|
39
|
+
this.verticalProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.verticalProp, 1)));
|
|
40
|
+
this.totalProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.verticalProp, 2)));
|
|
41
|
+
this.grandTotalProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.verticalProp, 3)));
|
|
42
|
+
this.lines$ = combineLatest([
|
|
43
|
+
this.options$,
|
|
44
|
+
this.primaryProperty$,
|
|
45
|
+
this.secondaryProperty$,
|
|
46
|
+
this.verticalProperty$,
|
|
47
|
+
this.resultSet$
|
|
48
|
+
]).pipe(map(([options, primaryProps, secondaryProps, verticalProps, rs]) => this.createValueMap(verticalProps, primaryProps, secondaryProps, rs, options, 1)));
|
|
49
|
+
this.totals$ = combineLatest([
|
|
50
|
+
this.options$,
|
|
51
|
+
this.primaryProperty$,
|
|
52
|
+
this.secondaryProperty$,
|
|
53
|
+
this.totalProperty$,
|
|
54
|
+
this.resultSet$
|
|
55
|
+
]).pipe(map(([options, primaryProps, secondaryProps, verticalProps, rs]) => this.createValueMap(verticalProps, primaryProps, secondaryProps, rs, options, 2)));
|
|
56
|
+
this.grandTotals$ = combineLatest([
|
|
57
|
+
this.options$,
|
|
58
|
+
this.primaryProperty$,
|
|
59
|
+
this.grandTotalProperty$,
|
|
60
|
+
this.resultSet$
|
|
61
|
+
]).pipe(map(([options, primaryProps, verticalProps, rs]) => this.createValueMap(verticalProps, primaryProps, undefined, rs, options, 3)));
|
|
62
|
+
this.availableProperties$ = combineLatest([this.classes$, this.resultSet$]).pipe(map(([classes, rs]) => {
|
|
63
|
+
const presentClassesId = Object.keys(rs.items);
|
|
64
|
+
const presentClasses = presentClassesId
|
|
65
|
+
.map((classId) => classes.find((cl) => cl.id === classId))
|
|
66
|
+
.filter((cl) => !!cl);
|
|
67
|
+
return presentClasses.map((cl) => cl.attributes).flat();
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
matchAttributeValue(item, prop, comparisonValue) {
|
|
71
|
+
return comparisonValue ? item.attributes[prop].value == comparisonValue : true;
|
|
72
|
+
}
|
|
73
|
+
createValueMap(verticalProps, primaryProps, secondaryProps, rs, options, level) {
|
|
74
|
+
return verticalProps.map((vertical) => {
|
|
75
|
+
const value = {};
|
|
76
|
+
primaryProps.forEach((primary) => {
|
|
77
|
+
(secondaryProps ?? [undefined]).forEach((secondary) => {
|
|
78
|
+
const matchingItem = (rs.items[Object.keys(rs.items)[0]] ?? []).find((item) => this.matchAttributeValue(item, options.primaryProp, primary) &&
|
|
79
|
+
this.matchAttributeValue(item, options.secondaryProp, secondary) &&
|
|
80
|
+
this.matchAttributeValue(item, options.verticalProp, vertical) &&
|
|
81
|
+
this.matchAttributeValue(item, 'level', level + ''));
|
|
82
|
+
if (!!matchingItem) {
|
|
83
|
+
if (!!secondary) {
|
|
84
|
+
if (!value[primary]) {
|
|
85
|
+
value[primary] = {};
|
|
86
|
+
}
|
|
87
|
+
value[primary][secondary] = matchingItem.attributes[options.valueProp].value;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
value[primary] = matchingItem.attributes[options.valueProp].value;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
return { name: vertical, value };
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
getPropertyLabelsForLevel(rs, property, level) {
|
|
99
|
+
const values = Object.values(rs.items)
|
|
100
|
+
.map((items) => items
|
|
101
|
+
.filter((item) => level
|
|
102
|
+
? [level, '' + level].includes(item.attributes['level'].value)
|
|
103
|
+
: true)
|
|
104
|
+
.map((item) => item.attributes[property].value + ''))
|
|
105
|
+
.flat()
|
|
106
|
+
.flat();
|
|
107
|
+
return [...new Set(values)];
|
|
108
|
+
}
|
|
109
|
+
emitManifest() {
|
|
110
|
+
this.manifestModified.emit({
|
|
111
|
+
widgetIndex: this.widgetIndex,
|
|
112
|
+
manifest: { ...this.manifest, options: this.optionsCopy }
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WidgetAnalyticComponent, deps: [{ token: i1.Store }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
116
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.3", type: WidgetAnalyticComponent, selector: "pry-widget-analytic", usesInheritance: true, ngImport: i0, template: "<pry-widget-analytic-css></pry-widget-analytic-css>\n<div class=\"o-widget o-widget__analytic\">\n <pry-widget-header\n *ngIf=\"displayHeader$ | async\"\n [widgetIndex]=\"widgetIndex\"\n [manifest]=\"manifest\"\n (manifestModified)=\"manifestModified.emit($event)\"\n #header\n [headerOptions]=\"(displayHeader$ | async) ?? {}\"\n [datasourceIds]=\"(datasourceIds$ | async) ?? []\"\n >\n <pry-settings\n (saveTriggered)=\"emitManifest()\"\n (changeTitle)=\"changeWidgetTitle($event)\"\n [headerPresent]=\"displayHeader$ | async\"\n [widgetIndex]=\"widgetIndex\"\n [header]=\"header\"\n [open$]=\"open$\"\n class=\"o-settings\"\n >\n <div class=\"o-settings__fields\">\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"primaryProp\">{{ '@pry.widget.analytic.primaryProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'primaryProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.primaryProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"primaryProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"secondaryProp\">{{ '@pry.widget.analytic.secondaryProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'secondaryProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.secondaryProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"secondaryProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"verticalProp\">{{ '@pry.widget.analytic.verticalProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'verticalProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.verticalProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"verticalProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"valueProp\">{{ '@pry.widget.analytic.valueProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'valueProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.valueProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"valueProp\"\n ></pry-select>\n </div>\n </div>\n </pry-settings>\n </pry-widget-header>\n <div class=\"o-widget__analytic__table\">\n <table [style.height.px]=\"height$ | async\">\n <thead>\n <tr class=\"primary-header\">\n <th></th>\n @for (primary of primaryProperty$ | async; track primary) {\n <th [colSpan]=\"(secondaryProperty$ | async)?.length ?? 1\">\n {{ primary }}\n </th>\n }\n </tr>\n <tr class=\"secondary-header\">\n <th></th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <th>{{ secondary }}</th>\n }\n }\n </tr>\n </thead>\n <tbody>\n @for (line of lines$ | async; track line.name) {\n <tr>\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <td>\n {{ line.value[primary][secondary] }}\n </td>\n }\n }\n </tr>\n }\n </tbody>\n <tfoot>\n @for (line of totals$ | async; track line.name) {\n <tr class=\"partial-total\">\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <td>\n {{ line.value[primary][secondary] }}\n </td>\n }\n }\n </tr>\n }\n @for (line of grandTotals$ | async; track line.name) {\n <tr class=\"grand-total\">\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n <td [colSpan]=\"(secondaryProperty$ | async)?.length ?? 1\">\n {{ line.value[primary] }}\n </td>\n }\n </tr>\n }\n </tfoot>\n </table>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.SettingsComponent, selector: "pry-settings", inputs: ["widgetIndex", "isDisable", "headerPresent", "open$", "header"], outputs: ["triggerClick", "saveTriggered", "changeTitle"] }, { kind: "component", type: i4.PryWidgetHeaderComponent, selector: "pry-widget-header", inputs: ["manifest", "openData$", "additionalOptions", "headerOptions", "displayCount", "datasourceIds", "widgetIndex"], outputs: ["manifestModified"] }, { kind: "component", type: i4.PrySelectComponent, selector: "pry-select", inputs: ["items", "clearable", "multiple", "closeOnSelect", "placeholder", "isForm", "required", "name", "readonly", "autocomplete", "alwaysShowAutosuggestedValues", "externalAutocompleteService", "bindValue", "bindLabel", "iconSize", "bindIcon", "template", "i18nPrefix", "bindClasses", "loading", "elementRef"], outputs: ["searched", "cleared", "clicked"] }, { kind: "component", type: PryWidgetAnalyticCssComponent, selector: "pry-widget-analytic-css" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.I18nPipe, name: "i18n" }] }); }
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WidgetAnalyticComponent, decorators: [{
|
|
119
|
+
type: Component,
|
|
120
|
+
args: [{ selector: 'pry-widget-analytic', template: "<pry-widget-analytic-css></pry-widget-analytic-css>\n<div class=\"o-widget o-widget__analytic\">\n <pry-widget-header\n *ngIf=\"displayHeader$ | async\"\n [widgetIndex]=\"widgetIndex\"\n [manifest]=\"manifest\"\n (manifestModified)=\"manifestModified.emit($event)\"\n #header\n [headerOptions]=\"(displayHeader$ | async) ?? {}\"\n [datasourceIds]=\"(datasourceIds$ | async) ?? []\"\n >\n <pry-settings\n (saveTriggered)=\"emitManifest()\"\n (changeTitle)=\"changeWidgetTitle($event)\"\n [headerPresent]=\"displayHeader$ | async\"\n [widgetIndex]=\"widgetIndex\"\n [header]=\"header\"\n [open$]=\"open$\"\n class=\"o-settings\"\n >\n <div class=\"o-settings__fields\">\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"primaryProp\">{{ '@pry.widget.analytic.primaryProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'primaryProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.primaryProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"primaryProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"secondaryProp\">{{ '@pry.widget.analytic.secondaryProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'secondaryProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.secondaryProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"secondaryProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"verticalProp\">{{ '@pry.widget.analytic.verticalProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'verticalProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.verticalProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"verticalProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"valueProp\">{{ '@pry.widget.analytic.valueProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'valueProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.valueProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"valueProp\"\n ></pry-select>\n </div>\n </div>\n </pry-settings>\n </pry-widget-header>\n <div class=\"o-widget__analytic__table\">\n <table [style.height.px]=\"height$ | async\">\n <thead>\n <tr class=\"primary-header\">\n <th></th>\n @for (primary of primaryProperty$ | async; track primary) {\n <th [colSpan]=\"(secondaryProperty$ | async)?.length ?? 1\">\n {{ primary }}\n </th>\n }\n </tr>\n <tr class=\"secondary-header\">\n <th></th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <th>{{ secondary }}</th>\n }\n }\n </tr>\n </thead>\n <tbody>\n @for (line of lines$ | async; track line.name) {\n <tr>\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <td>\n {{ line.value[primary][secondary] }}\n </td>\n }\n }\n </tr>\n }\n </tbody>\n <tfoot>\n @for (line of totals$ | async; track line.name) {\n <tr class=\"partial-total\">\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <td>\n {{ line.value[primary][secondary] }}\n </td>\n }\n }\n </tr>\n }\n @for (line of grandTotals$ | async; track line.name) {\n <tr class=\"grand-total\">\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n <td [colSpan]=\"(secondaryProperty$ | async)?.length ?? 1\">\n {{ line.value[primary] }}\n </td>\n }\n </tr>\n }\n </tfoot>\n </table>\n </div>\n</div>\n" }]
|
|
121
|
+
}], ctorParameters: () => [{ type: i1.Store }, { type: i0.ElementRef }] });
|
|
122
|
+
|
|
123
|
+
const enTranslations = {
|
|
124
|
+
'@pry': {
|
|
125
|
+
widget: {
|
|
126
|
+
analytic: {
|
|
127
|
+
primaryProp: 'Attribute that contains the horizontal primary field',
|
|
128
|
+
secondaryProp: 'Attribute that contains the horizontal secondary field',
|
|
129
|
+
verticalProp: 'Attribute that contains the vertical attribute',
|
|
130
|
+
valueProp: 'Attribute that contains the value'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const frTranslations = {
|
|
137
|
+
'@pry': {
|
|
138
|
+
widget: {
|
|
139
|
+
analytic: {
|
|
140
|
+
primaryProp: 'Attribut horizontal primaire',
|
|
141
|
+
secondaryProp: 'Attribut horizontal secondaire',
|
|
142
|
+
verticalProp: 'Attribut vertical',
|
|
143
|
+
valueProp: 'Attribut contenant la valeur'
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
class WidgetAnalyticModule extends BaseWidgetModule {
|
|
150
|
+
constructor(pryTranslateService) {
|
|
151
|
+
super();
|
|
152
|
+
this.pryTranslateService = pryTranslateService;
|
|
153
|
+
this.pryTranslateService.addLangObject('fr', 'widget-vega', frTranslations);
|
|
154
|
+
this.pryTranslateService.addLangObject('en', 'widget-vega', enTranslations);
|
|
155
|
+
}
|
|
156
|
+
getComponent() {
|
|
157
|
+
return WidgetAnalyticComponent;
|
|
158
|
+
}
|
|
159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WidgetAnalyticModule, deps: [{ token: i4.PryI18nService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
160
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: WidgetAnalyticModule, declarations: [WidgetAnalyticComponent, PryWidgetAnalyticCssComponent], imports: [CommonModule,
|
|
161
|
+
FormsModule,
|
|
162
|
+
OverlayModule,
|
|
163
|
+
PryCoreModule,
|
|
164
|
+
PryDashboardModule,
|
|
165
|
+
PrySelectModule,
|
|
166
|
+
PryIconModule,
|
|
167
|
+
PryCheckboxModule,
|
|
168
|
+
PryToggleModule,
|
|
169
|
+
WidgetMapModule,
|
|
170
|
+
PryI18nModule,
|
|
171
|
+
AsyncPipe], exports: [WidgetAnalyticComponent] }); }
|
|
172
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WidgetAnalyticModule, imports: [CommonModule,
|
|
173
|
+
FormsModule,
|
|
174
|
+
OverlayModule,
|
|
175
|
+
PryCoreModule,
|
|
176
|
+
PryDashboardModule,
|
|
177
|
+
PrySelectModule,
|
|
178
|
+
PryIconModule,
|
|
179
|
+
PryCheckboxModule,
|
|
180
|
+
PryToggleModule,
|
|
181
|
+
WidgetMapModule,
|
|
182
|
+
PryI18nModule] }); }
|
|
183
|
+
}
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WidgetAnalyticModule, decorators: [{
|
|
185
|
+
type: NgModule,
|
|
186
|
+
args: [{
|
|
187
|
+
declarations: [WidgetAnalyticComponent, PryWidgetAnalyticCssComponent],
|
|
188
|
+
imports: [
|
|
189
|
+
CommonModule,
|
|
190
|
+
FormsModule,
|
|
191
|
+
OverlayModule,
|
|
192
|
+
PryCoreModule,
|
|
193
|
+
PryDashboardModule,
|
|
194
|
+
PrySelectModule,
|
|
195
|
+
PryIconModule,
|
|
196
|
+
PryCheckboxModule,
|
|
197
|
+
PryToggleModule,
|
|
198
|
+
WidgetMapModule,
|
|
199
|
+
PryI18nModule,
|
|
200
|
+
AsyncPipe
|
|
201
|
+
],
|
|
202
|
+
exports: [WidgetAnalyticComponent]
|
|
203
|
+
}]
|
|
204
|
+
}], ctorParameters: () => [{ type: i4.PryI18nService }] });
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Generated bundle index. Do not edit.
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
export { WidgetAnalyticComponent, WidgetAnalyticModule };
|
|
211
|
+
//# sourceMappingURL=provoly-dashboard-widgets-widget-analytic.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provoly-dashboard-widgets-widget-analytic.mjs","sources":["../../../../projects/provoly/dashboard/widgets/widget-analytic/style/css.component.ts","../../../../projects/provoly/dashboard/widgets/widget-analytic/component/widget-analytic.component.ts","../../../../projects/provoly/dashboard/widgets/widget-analytic/component/widget-analytic.component.html","../../../../projects/provoly/dashboard/widgets/widget-analytic/i18n/en.translations.ts","../../../../projects/provoly/dashboard/widgets/widget-analytic/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/widgets/widget-analytic/widget-analytic.module.ts","../../../../projects/provoly/dashboard/widgets/widget-analytic/provoly-dashboard-widgets-widget-analytic.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-widget-analytic-css',\n template: '',\n styleUrls: ['./_o-widget-analytic.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryWidgetAnalyticCssComponent {}\n","import { Component, ElementRef } from '@angular/core';\nimport {\n AnalyticWidgetOptions,\n Attribute,\n AttributeSimpleValue,\n Class,\n ClassSelectors,\n DataWidgetComponent,\n Item,\n ResultSet,\n WIDGET_HEADER_HEIGHT\n} from '@provoly/dashboard';\nimport { combineLatest, map, Observable } from 'rxjs';\nimport { Store } from '@ngrx/store';\n\n@Component({\n selector: 'pry-widget-analytic',\n templateUrl: './widget-analytic.component.html'\n})\nexport class WidgetAnalyticComponent extends DataWidgetComponent {\n optionsCopy: AnalyticWidgetOptions = { primaryProp: '', secondaryProp: '', verticalProp: '', valueProp: '' };\n options$: Observable<AnalyticWidgetOptions>;\n\n primaryProperty$: Observable<string[]>;\n secondaryProperty$: Observable<string[]>;\n verticalProperty$: Observable<string[]>;\n totalProperty$: Observable<string[]>;\n grandTotalProperty$: Observable<string[]>;\n lines$: Observable<{ name: string; value: { [key: string]: { [key: string]: any } } }[]>;\n totals$: Observable<{ name: string; value: { [key: string]: { [key: string]: any } } }[]>;\n grandTotals$: Observable<{ name: any; value: { [p: string]: any } }[]>;\n height$: Observable<number>;\n classes$: Observable<Class[]>;\n availableProperties$: Observable<Attribute[]>;\n\n change($event: string, prop: 'primaryProp' | 'secondaryProp' | 'valueProp' | 'verticalProp') {\n this.optionsCopy[prop] = $event;\n }\n\n constructor(store: Store<any>, el: ElementRef) {\n super(store, el);\n this.options$ = this.manifest$.pipe(map((manifest) => (manifest.options ?? {}) as AnalyticWidgetOptions));\n this.classes$ = this.store.select(ClassSelectors.classes);\n this.height$ = combineLatest([this.widgetSize$, this.displayHeader$]).pipe(\n map(([size, header]) => size.height - (header ? WIDGET_HEADER_HEIGHT.value : 0))\n );\n this.subscriptions.add(\n this.options$.subscribe((options) => {\n this.optionsCopy = JSON.parse(JSON.stringify(options));\n })\n );\n this.primaryProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(\n map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.primaryProp))\n );\n this.secondaryProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(\n map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.secondaryProp, 1))\n );\n this.verticalProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(\n map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.verticalProp, 1))\n );\n this.totalProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(\n map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.verticalProp, 2))\n );\n this.grandTotalProperty$ = combineLatest([this.options$, this.resultSet$]).pipe(\n map(([options, rs]) => this.getPropertyLabelsForLevel(rs, options.verticalProp, 3))\n );\n\n this.lines$ = combineLatest([\n this.options$,\n this.primaryProperty$,\n this.secondaryProperty$,\n this.verticalProperty$,\n this.resultSet$\n ]).pipe(\n map(([options, primaryProps, secondaryProps, verticalProps, rs]) =>\n this.createValueMap(verticalProps, primaryProps, secondaryProps, rs, options, 1)\n )\n );\n\n this.totals$ = combineLatest([\n this.options$,\n this.primaryProperty$,\n this.secondaryProperty$,\n this.totalProperty$,\n this.resultSet$\n ]).pipe(\n map(([options, primaryProps, secondaryProps, verticalProps, rs]) =>\n this.createValueMap(verticalProps, primaryProps, secondaryProps, rs, options, 2)\n )\n );\n\n this.grandTotals$ = combineLatest([\n this.options$,\n this.primaryProperty$,\n this.grandTotalProperty$,\n this.resultSet$\n ]).pipe(\n map(([options, primaryProps, verticalProps, rs]) =>\n this.createValueMap(verticalProps, primaryProps, undefined, rs, options, 3)\n )\n );\n\n this.availableProperties$ = combineLatest([this.classes$, this.resultSet$]).pipe(\n map(([classes, rs]) => {\n const presentClassesId = Object.keys(rs.items);\n const presentClasses = presentClassesId\n .map((classId) => classes.find((cl) => cl.id === classId))\n .filter((cl) => !!cl) as Class[];\n return presentClasses.map((cl) => cl.attributes).flat();\n })\n );\n }\n\n private matchAttributeValue(item: Item, prop: string, comparisonValue: string | undefined) {\n return comparisonValue ? (item.attributes[prop] as AttributeSimpleValue).value == comparisonValue : true;\n }\n\n private createValueMap(\n verticalProps: string[],\n primaryProps: string[],\n secondaryProps: string[] | undefined,\n rs: ResultSet,\n options: AnalyticWidgetOptions,\n level?: number\n ) {\n return verticalProps.map((vertical) => {\n const value = {} as { [key: string]: { [key: string]: any } | any };\n primaryProps.forEach((primary) => {\n (secondaryProps ?? [undefined]).forEach((secondary) => {\n const matchingItem = (rs.items[Object.keys(rs.items)[0]] ?? []).find(\n (item) =>\n this.matchAttributeValue(item, options.primaryProp, primary) &&\n this.matchAttributeValue(item, options.secondaryProp, secondary) &&\n this.matchAttributeValue(item, options.verticalProp, vertical) &&\n this.matchAttributeValue(item, 'level', level + '')\n );\n if (!!matchingItem) {\n if (!!secondary) {\n if (!value[primary]) {\n value[primary] = {};\n }\n value[primary][secondary] = (matchingItem!.attributes[options.valueProp] as AttributeSimpleValue).value;\n } else {\n value[primary] = (matchingItem!.attributes[options.valueProp] as AttributeSimpleValue).value;\n }\n }\n });\n });\n return { name: vertical, value };\n });\n }\n\n getPropertyLabelsForLevel(rs: ResultSet, property: string, level?: number) {\n const values = Object.values(rs.items)\n .map((items) =>\n items\n .filter((item) =>\n level\n ? [level, '' + level].includes(\n (item.attributes['level'] as AttributeSimpleValue).value as string | number\n )\n : true\n )\n .map((item) => (item.attributes[property] as AttributeSimpleValue).value + '')\n )\n .flat()\n .flat();\n return [...new Set(values)];\n }\n\n emitManifest() {\n this.manifestModified.emit({\n widgetIndex: this.widgetIndex,\n manifest: { ...this.manifest, options: this.optionsCopy }\n });\n }\n}\n","<pry-widget-analytic-css></pry-widget-analytic-css>\n<div class=\"o-widget o-widget__analytic\">\n <pry-widget-header\n *ngIf=\"displayHeader$ | async\"\n [widgetIndex]=\"widgetIndex\"\n [manifest]=\"manifest\"\n (manifestModified)=\"manifestModified.emit($event)\"\n #header\n [headerOptions]=\"(displayHeader$ | async) ?? {}\"\n [datasourceIds]=\"(datasourceIds$ | async) ?? []\"\n >\n <pry-settings\n (saveTriggered)=\"emitManifest()\"\n (changeTitle)=\"changeWidgetTitle($event)\"\n [headerPresent]=\"displayHeader$ | async\"\n [widgetIndex]=\"widgetIndex\"\n [header]=\"header\"\n [open$]=\"open$\"\n class=\"o-settings\"\n >\n <div class=\"o-settings__fields\">\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"primaryProp\">{{ '@pry.widget.analytic.primaryProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'primaryProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.primaryProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"primaryProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"secondaryProp\">{{ '@pry.widget.analytic.secondaryProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'secondaryProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.secondaryProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"secondaryProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"verticalProp\">{{ '@pry.widget.analytic.verticalProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'verticalProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.verticalProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"verticalProp\"\n ></pry-select>\n </div>\n <div class=\"m-form-label-field\">\n <label class=\"a-label\" for=\"valueProp\">{{ '@pry.widget.analytic.valueProp' | i18n }}</label>\n <pry-select\n (ngModelChange)=\"change($event, 'valueProp')\"\n [items]=\"availableProperties$ | async\"\n [ngModel]=\"optionsCopy.valueProp\"\n bindLabel=\"name\"\n bindValue=\"name\"\n id=\"valueProp\"\n ></pry-select>\n </div>\n </div>\n </pry-settings>\n </pry-widget-header>\n <div class=\"o-widget__analytic__table\">\n <table [style.height.px]=\"height$ | async\">\n <thead>\n <tr class=\"primary-header\">\n <th></th>\n @for (primary of primaryProperty$ | async; track primary) {\n <th [colSpan]=\"(secondaryProperty$ | async)?.length ?? 1\">\n {{ primary }}\n </th>\n }\n </tr>\n <tr class=\"secondary-header\">\n <th></th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <th>{{ secondary }}</th>\n }\n }\n </tr>\n </thead>\n <tbody>\n @for (line of lines$ | async; track line.name) {\n <tr>\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <td>\n {{ line.value[primary][secondary] }}\n </td>\n }\n }\n </tr>\n }\n </tbody>\n <tfoot>\n @for (line of totals$ | async; track line.name) {\n <tr class=\"partial-total\">\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n @for (secondary of secondaryProperty$ | async; track secondary) {\n <td>\n {{ line.value[primary][secondary] }}\n </td>\n }\n }\n </tr>\n }\n @for (line of grandTotals$ | async; track line.name) {\n <tr class=\"grand-total\">\n <th>{{ line.name }}</th>\n @for (primary of primaryProperty$ | async; track primary) {\n <td [colSpan]=\"(secondaryProperty$ | async)?.length ?? 1\">\n {{ line.value[primary] }}\n </td>\n }\n </tr>\n }\n </tfoot>\n </table>\n </div>\n</div>\n","export const enTranslations = {\n '@pry': {\n widget: {\n analytic: {\n primaryProp: 'Attribute that contains the horizontal primary field',\n secondaryProp: 'Attribute that contains the horizontal secondary field',\n verticalProp: 'Attribute that contains the vertical attribute',\n valueProp: 'Attribute that contains the value'\n }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n widget: {\n analytic: {\n primaryProp: 'Attribut horizontal primaire',\n secondaryProp: 'Attribut horizontal secondaire',\n verticalProp: 'Attribut vertical',\n valueProp: 'Attribut contenant la valeur'\n }\n }\n }\n};\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n BaseWidgetComponent,\n BaseWidgetModule,\n PryCoreModule,\n PryDashboardModule,\n PryI18nModule,\n PryI18nService,\n PryIconModule,\n PrySelectModule,\n PryToggleModule\n} from '@provoly/dashboard';\nimport { PryCheckboxModule } from '@provoly/dashboard/components/checkbox';\nimport { WidgetMapModule } from '@provoly/dashboard/widgets/widget-map';\nimport { WidgetAnalyticComponent } from './component/widget-analytic.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { PryWidgetAnalyticCssComponent } from './style/css.component';\n\n@NgModule({\n declarations: [WidgetAnalyticComponent, PryWidgetAnalyticCssComponent],\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PryCoreModule,\n PryDashboardModule,\n PrySelectModule,\n PryIconModule,\n PryCheckboxModule,\n PryToggleModule,\n WidgetMapModule,\n PryI18nModule,\n AsyncPipe\n ],\n exports: [WidgetAnalyticComponent]\n})\nexport class WidgetAnalyticModule extends BaseWidgetModule {\n constructor(private pryTranslateService: PryI18nService) {\n super();\n this.pryTranslateService.addLangObject('fr', 'widget-vega', frTranslations);\n this.pryTranslateService.addLangObject('en', 'widget-vega', enTranslations);\n }\n\n override getComponent() {\n return WidgetAnalyticComponent as Type<BaseWidgetComponent>;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5.PryWidgetAnalyticCssComponent","i1"],"mappings":";;;;;;;;;;;;;;MAQa,6BAA6B,CAAA;8GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,6BAA6B,+DAJ9B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+sBAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAID,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EACzB,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,MAAA,EAAA,CAAA,+sBAAA,CAAA,EAAA,CAAA;;;ACajC,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;IAgB9D,MAAM,CAAC,MAAc,EAAE,IAAoE,EAAA;AACzF,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;KACjC;IAED,WAAY,CAAA,KAAiB,EAAE,EAAc,EAAA;AAC3C,QAAA,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AApBnB,QAAA,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D,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,iBAAA,CAAA;;;ACvCD;;AAEG;;;;"}
|
|
@@ -319,7 +319,7 @@ class WidgetChartComponent extends DataWidgetComponent {
|
|
|
319
319
|
this.markTypes = [];
|
|
320
320
|
this.MarkType = MarkType;
|
|
321
321
|
this.MarkSubType = MarkSubType;
|
|
322
|
-
this.WIDGET_HEADER_HEIGHT = WIDGET_HEADER_HEIGHT;
|
|
322
|
+
this.WIDGET_HEADER_HEIGHT = WIDGET_HEADER_HEIGHT.value;
|
|
323
323
|
this.timeUnits = ['year', 'quarter', 'month', 'week', 'day', 'hours', 'minutes'];
|
|
324
324
|
this.optionsCopy = {};
|
|
325
325
|
this.triggerCalculatePossibleAttributes$ = new BehaviorSubject(undefined);
|