@provoly/dashboard 1.1.1 → 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/esm2022/lib/core/model/widget-aggregated-chart-manifest.interface.mjs +1 -1
- 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/dashboard/components/widgets/header/widget-header.component.mjs +4 -2
- 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 +2 -2
- 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 +5 -5
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +2 -2
- 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-vega/component/widget-vega.component.mjs +2 -2
- 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 +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -1
- 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 +7 -7
- 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-vega.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +19 -27
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/widget-aggregated-chart-manifest.interface.d.ts +3 -12
- 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/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
- package/package.json +31 -31
- 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-iframe/component/widget-iframe.component.d.ts +3 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +3 -1
- 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 +3 -1
|
@@ -22,16 +22,7 @@ export declare enum GraphType {
|
|
|
22
22
|
HISTOGRAM = "bar-histogram",
|
|
23
23
|
POINTS = "point-default"
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
at: number;
|
|
27
|
-
others: boolean;
|
|
28
|
-
order: 'asc' | 'desc';
|
|
29
|
-
isTimeLimit: false;
|
|
30
|
-
}
|
|
31
|
-
export interface TimeLimit {
|
|
32
|
-
interval: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'quarter' | 'year';
|
|
33
|
-
isTimeLimit: true;
|
|
34
|
-
}
|
|
25
|
+
export type TimeInterval = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'quarter' | 'year';
|
|
35
26
|
export interface Sort {
|
|
36
27
|
value: 'key' | 'value';
|
|
37
28
|
direction: 'asc' | 'desc';
|
|
@@ -41,7 +32,8 @@ export interface ChartAggregatedWidgetOptions {
|
|
|
41
32
|
label: string;
|
|
42
33
|
attribute: string;
|
|
43
34
|
keep0: boolean;
|
|
44
|
-
limit?:
|
|
35
|
+
limit?: number | null;
|
|
36
|
+
interval?: number | TimeInterval;
|
|
45
37
|
};
|
|
46
38
|
ordinate: {
|
|
47
39
|
operation: Operation;
|
|
@@ -61,7 +53,6 @@ export interface ChartAggregatedWidgetOptions {
|
|
|
61
53
|
stacked?: boolean;
|
|
62
54
|
legend?: boolean;
|
|
63
55
|
sort?: Sort;
|
|
64
|
-
limitItems?: number | null;
|
|
65
56
|
};
|
|
66
57
|
additionalSpec?: any;
|
|
67
58
|
circleColorScheme?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartAggregatedWidgetOptions, Operation, TimeInterval } from '../../../model/widget-aggregated-chart-manifest.interface';
|
|
2
2
|
import { Class } from '../../class/class.interface';
|
|
3
3
|
import { Item, ValueType } from '../../../model/item.interface';
|
|
4
4
|
import { ResultSets } from '../../../model/result-set.interface';
|
|
@@ -15,19 +15,19 @@ export declare class AggregationUtils {
|
|
|
15
15
|
static formatByLimit(data: {
|
|
16
16
|
key: ValueType;
|
|
17
17
|
value: ValueType;
|
|
18
|
-
}[],
|
|
18
|
+
}[], interval: number | TimeInterval, operation: Operation): {
|
|
19
19
|
key: ValueType;
|
|
20
20
|
value: ValueType;
|
|
21
21
|
}[];
|
|
22
22
|
static formatDataByTimeLimit(data: {
|
|
23
23
|
key: ValueType;
|
|
24
24
|
value: ValueType;
|
|
25
|
-
}[],
|
|
25
|
+
}[], interval: TimeInterval, operation: Operation): {
|
|
26
26
|
value: ValueType;
|
|
27
27
|
key: ValueType;
|
|
28
28
|
values: ValueType[];
|
|
29
29
|
}[];
|
|
30
|
-
static getKeyValueForTimeInterval(key: ValueType, interval:
|
|
30
|
+
static getKeyValueForTimeInterval(key: ValueType, interval: TimeInterval): string;
|
|
31
31
|
static filterItems(items: Item[], filters: Filter[]): Item[];
|
|
32
32
|
static doesItemValuePassFilter(item: Item, attribute: string, operator: string | undefined, filterValue: string | number | undefined): boolean;
|
|
33
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Store } from '@ngrx/store';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Item, ValueType } from '../../../model/item.interface';
|
|
4
|
-
import {
|
|
4
|
+
import { ChartAggregatedWidgetOptions, Operation, TimeInterval } from '../../../model/widget-aggregated-chart-manifest.interface';
|
|
5
5
|
import { AggregationResult, PryAggregationService } from '../base-aggregation.service';
|
|
6
6
|
import { Class } from '../../class/class.interface';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -13,7 +13,7 @@ export declare class PryFrontendAggregationService extends PryAggregationService
|
|
|
13
13
|
getItemsGroupedByAttributeValue(items: Item[], attribute: string): {
|
|
14
14
|
[key: string | number]: Item[];
|
|
15
15
|
};
|
|
16
|
-
getChartDataBasedOnOperation(items: Item[], operation: Operation, abscissa: string, ordinate: string,
|
|
16
|
+
getChartDataBasedOnOperation(items: Item[], operation: Operation, abscissa: string, ordinate: string, interval?: number | TimeInterval): {
|
|
17
17
|
key: ValueType;
|
|
18
18
|
value: ValueType;
|
|
19
19
|
}[];
|
|
@@ -10,7 +10,9 @@ import { ToolboxMenuService } from '../../../../core/toolbox/toolbox-menu.servic
|
|
|
10
10
|
import { SubscriptionnerDirective } from '../../subscriptionner.directive';
|
|
11
11
|
import { WidgetContextMenuDisplayOptions } from '../../../../core/model/display-options.interface';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare const WIDGET_HEADER_HEIGHT
|
|
13
|
+
export declare const WIDGET_HEADER_HEIGHT: {
|
|
14
|
+
value: number;
|
|
15
|
+
};
|
|
14
16
|
export type HeaderAction = {
|
|
15
17
|
icon: string;
|
|
16
18
|
action: (that: PryWidgetHeaderComponent) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "16.x || 17.x",
|
|
@@ -132,36 +132,6 @@
|
|
|
132
132
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
133
133
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
134
134
|
},
|
|
135
|
-
"./filters/autocomplete": {
|
|
136
|
-
"types": "./filters/autocomplete/index.d.ts",
|
|
137
|
-
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
138
|
-
"esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
139
|
-
"default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
|
|
140
|
-
},
|
|
141
|
-
"./filters/date": {
|
|
142
|
-
"types": "./filters/date/index.d.ts",
|
|
143
|
-
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
144
|
-
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
145
|
-
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
146
|
-
},
|
|
147
|
-
"./filters/list": {
|
|
148
|
-
"types": "./filters/list/index.d.ts",
|
|
149
|
-
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
150
|
-
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
151
|
-
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
152
|
-
},
|
|
153
|
-
"./filters/number": {
|
|
154
|
-
"types": "./filters/number/index.d.ts",
|
|
155
|
-
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
156
|
-
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
157
|
-
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
158
|
-
},
|
|
159
|
-
"./filters/text": {
|
|
160
|
-
"types": "./filters/text/index.d.ts",
|
|
161
|
-
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
162
|
-
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
163
|
-
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
164
|
-
},
|
|
165
135
|
"./components/card": {
|
|
166
136
|
"types": "./components/card/index.d.ts",
|
|
167
137
|
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
@@ -228,6 +198,36 @@
|
|
|
228
198
|
"esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
|
|
229
199
|
"default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
|
|
230
200
|
},
|
|
201
|
+
"./filters/autocomplete": {
|
|
202
|
+
"types": "./filters/autocomplete/index.d.ts",
|
|
203
|
+
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
204
|
+
"esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
205
|
+
"default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
|
|
206
|
+
},
|
|
207
|
+
"./filters/date": {
|
|
208
|
+
"types": "./filters/date/index.d.ts",
|
|
209
|
+
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
210
|
+
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
211
|
+
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
212
|
+
},
|
|
213
|
+
"./filters/list": {
|
|
214
|
+
"types": "./filters/list/index.d.ts",
|
|
215
|
+
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
216
|
+
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
217
|
+
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
218
|
+
},
|
|
219
|
+
"./filters/number": {
|
|
220
|
+
"types": "./filters/number/index.d.ts",
|
|
221
|
+
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
222
|
+
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
223
|
+
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
224
|
+
},
|
|
225
|
+
"./filters/text": {
|
|
226
|
+
"types": "./filters/text/index.d.ts",
|
|
227
|
+
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
228
|
+
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
229
|
+
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
230
|
+
},
|
|
231
231
|
"./pipeline-components/filter": {
|
|
232
232
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
233
233
|
"esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
@@ -43,20 +43,6 @@
|
|
|
43
43
|
border-color: themed($theme-map, 'color', 'primary', 400);
|
|
44
44
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
|
|
45
45
|
|
|
46
|
-
&.-map-export {
|
|
47
|
-
&:hover {
|
|
48
|
-
@include changeBgColor(
|
|
49
|
-
$targetBgColor: themed($theme-map, 'color', 'primary', 600),
|
|
50
|
-
$targetTextColor: themed($theme-map, 'color', 'primary', 'contrast', 50),
|
|
51
|
-
$targetBorderColor: themed($theme-map, 'color', 'primary', 600)
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
button {
|
|
55
|
-
color: themed($theme-map, 'color', 'primary', 50);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
46
|
.a-btn {
|
|
61
47
|
color: themed($theme-map, 'color', 'primary', 600);
|
|
62
48
|
background-color: transparent;
|
|
@@ -6,6 +6,7 @@ import { View } from 'vega';
|
|
|
6
6
|
import { TopLevelSpec } from 'vega-lite';
|
|
7
7
|
import { PrySchemeService } from '@provoly/dashboard/components/scheme-picker';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
export declare const CHART_INTERVAL_STEP = 3;
|
|
9
10
|
export declare class WidgetAggregatedChartComponent extends DataWidgetComponent implements AfterViewInit {
|
|
10
11
|
private translateService;
|
|
11
12
|
private aggregationService;
|
|
@@ -39,7 +40,9 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
39
40
|
data: any;
|
|
40
41
|
operation: any;
|
|
41
42
|
}>;
|
|
42
|
-
WIDGET_HEADER_HEIGHT:
|
|
43
|
+
WIDGET_HEADER_HEIGHT: {
|
|
44
|
+
value: number;
|
|
45
|
+
};
|
|
43
46
|
GraphType: typeof GraphType;
|
|
44
47
|
Operation: typeof Operation;
|
|
45
48
|
isChartValid$: Observable<boolean>;
|
|
@@ -104,11 +107,9 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
104
107
|
changeOrdinateLabel($event: any): void;
|
|
105
108
|
changeKeep0Abscissa($event: any): void;
|
|
106
109
|
changeKeep0Ordinate($event: any): void;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
changeLimitOrder($event: any): void;
|
|
111
|
-
changeTimeLimit($event: any): void;
|
|
110
|
+
enableIntervals($event: any): void;
|
|
111
|
+
changeInterval($event: any): void;
|
|
112
|
+
changeTimeInterval($event: any): void;
|
|
112
113
|
toggleLegend($event: any): void;
|
|
113
114
|
toggleTooltip($event: any): void;
|
|
114
115
|
toggleGroupBy($event: any): void;
|
|
@@ -124,7 +125,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
124
125
|
changeSortValue($event: 'key' | 'value'): void;
|
|
125
126
|
changeSortDirection($event: 'asc' | 'desc'): void;
|
|
126
127
|
toggleLimitItems($event: boolean): void;
|
|
127
|
-
|
|
128
|
+
changeLimitValue($event: number | null): void;
|
|
128
129
|
toImage(): Promise<string>;
|
|
129
130
|
changeCircleColorScheme($event: any): void;
|
|
130
131
|
changeBaseColor($event: any): void;
|
|
@@ -142,6 +143,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
142
143
|
labelAngle?: undefined;
|
|
143
144
|
};
|
|
144
145
|
getAbscissaType(abscissaVegaType: VegaType, hasSort: boolean): VegaType;
|
|
146
|
+
isTimeInterval(abscissaInterval: string | number): boolean;
|
|
145
147
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAggregatedChartComponent, never>;
|
|
146
148
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAggregatedChartComponent, "pry-widget-aggregated-chart", never, {}, {}, never, never, false, never>;
|
|
147
149
|
}
|
|
@@ -53,11 +53,9 @@ export declare const frTranslations: {
|
|
|
53
53
|
origin: string;
|
|
54
54
|
limit: string;
|
|
55
55
|
limitMaxNb: string;
|
|
56
|
-
|
|
57
|
-
desc: string;
|
|
56
|
+
interval: string;
|
|
58
57
|
timeInterval: string;
|
|
59
|
-
|
|
60
|
-
order: string;
|
|
58
|
+
specifyInterval: string;
|
|
61
59
|
groupBy: string;
|
|
62
60
|
groupAttr: string;
|
|
63
61
|
colorScheme: string;
|
|
@@ -12,7 +12,9 @@ export declare class WidgetIframeComponent extends BaseWidgetComponent {
|
|
|
12
12
|
src$: Observable<SafeResourceUrl | undefined>;
|
|
13
13
|
height$: Observable<number>;
|
|
14
14
|
optionsCopy: IframeWidgetOptions;
|
|
15
|
-
WIDGET_HEADER_HEIGHT:
|
|
15
|
+
WIDGET_HEADER_HEIGHT: {
|
|
16
|
+
value: number;
|
|
17
|
+
};
|
|
16
18
|
iframe?: ElementRef;
|
|
17
19
|
constructor(store: Store<any>, domSanitizer: DomSanitizer, iframeMessagingService: IframeMessagingService, el: ElementRef);
|
|
18
20
|
changeSrc($event: Event): void;
|
|
@@ -52,7 +52,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
52
52
|
identifier: string;
|
|
53
53
|
label: string;
|
|
54
54
|
}[]>;
|
|
55
|
-
WIDGET_HEADER_HEIGHT:
|
|
55
|
+
WIDGET_HEADER_HEIGHT: {
|
|
56
|
+
value: number;
|
|
57
|
+
};
|
|
56
58
|
i: number;
|
|
57
59
|
itemStyles$: Observable<{
|
|
58
60
|
[id: string]: {
|
|
@@ -22,7 +22,9 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
|
22
22
|
Array: ArrayConstructor;
|
|
23
23
|
currentClasses: string[];
|
|
24
24
|
selectedIds: string[];
|
|
25
|
-
WIDGET_HEADER_HEIGHT:
|
|
25
|
+
WIDGET_HEADER_HEIGHT: {
|
|
26
|
+
value: number;
|
|
27
|
+
};
|
|
26
28
|
private classes$;
|
|
27
29
|
properties$: Observable<{
|
|
28
30
|
label: string;
|
|
@@ -26,7 +26,9 @@ export declare class WidgetTileComponent extends DataWidgetComponent {
|
|
|
26
26
|
};
|
|
27
27
|
classes$: Observable<Class[]>;
|
|
28
28
|
optionsCopy: TileWidgetOptions;
|
|
29
|
-
WIDGET_HEADER_HEIGHT:
|
|
29
|
+
WIDGET_HEADER_HEIGHT: {
|
|
30
|
+
value: number;
|
|
31
|
+
};
|
|
30
32
|
propertiesToDisplay$: Observable<{
|
|
31
33
|
[p: string]: {
|
|
32
34
|
label: string;
|