@provoly/dashboard 1.4.5 → 1.4.7
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/filters/date/date-filter.component.mjs +3 -3
- package/esm2022/import/components/list/import-list.component.mjs +3 -3
- package/esm2022/lib/core/components/sort/sort-data.pipe.mjs +2 -2
- package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +1 -2
- package/esm2022/lib/core/store/config/config.service.mjs +22 -18
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +106 -92
- package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +11 -2
- package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +12 -3
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +2 -1
- package/fesm2022/provoly-dashboard-filters-date.mjs +2 -2
- package/fesm2022/provoly-dashboard-filters-date.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +2 -2
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +126 -94
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +1 -0
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +22 -19
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/sort/sort-data.pipe.d.ts +1 -1
- package/lib/core/store/config/config.service.d.ts +2 -1
- package/package.json +31 -31
- package/styles/components/_m-filter.scss +17 -2
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +13 -13
- package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +9 -0
- package/widgets/widget-aggregated-chart/i18n/fr.translations.d.ts +9 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class PrySortDataPipe<T> implements PipeTransform {
|
|
4
|
-
transform(list: T[], property: keyof T | null, direction: 'asc' | 'desc'): T[];
|
|
4
|
+
transform(list: T[] | null, property: keyof T | null, direction: 'asc' | 'desc'): T[];
|
|
5
5
|
private compareString;
|
|
6
6
|
private compareNumber;
|
|
7
7
|
private compareBoolean;
|
|
@@ -48,8 +48,9 @@ export declare class ConfigService {
|
|
|
48
48
|
* Get a list of all widgets from catalog
|
|
49
49
|
*/
|
|
50
50
|
getAllWidgets(): Observable<Widget[]>;
|
|
51
|
-
|
|
51
|
+
handleBackendVersion(url: string): Observable<BackendVersion>;
|
|
52
52
|
getAllVersions(): Observable<Versions>;
|
|
53
|
+
private addVersionIfDetected;
|
|
53
54
|
getAccessGroups(): Observable<Group[]>;
|
|
54
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
55
56
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "17.x || 18.x",
|
|
@@ -138,6 +138,36 @@
|
|
|
138
138
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
139
139
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
140
140
|
},
|
|
141
|
+
"./filters/autocomplete": {
|
|
142
|
+
"types": "./filters/autocomplete/index.d.ts",
|
|
143
|
+
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
144
|
+
"esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
145
|
+
"default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
|
|
146
|
+
},
|
|
147
|
+
"./filters/date": {
|
|
148
|
+
"types": "./filters/date/index.d.ts",
|
|
149
|
+
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
150
|
+
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
151
|
+
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
152
|
+
},
|
|
153
|
+
"./filters/list": {
|
|
154
|
+
"types": "./filters/list/index.d.ts",
|
|
155
|
+
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
156
|
+
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
157
|
+
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
158
|
+
},
|
|
159
|
+
"./filters/number": {
|
|
160
|
+
"types": "./filters/number/index.d.ts",
|
|
161
|
+
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
162
|
+
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
163
|
+
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
164
|
+
},
|
|
165
|
+
"./filters/text": {
|
|
166
|
+
"types": "./filters/text/index.d.ts",
|
|
167
|
+
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
168
|
+
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
169
|
+
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
170
|
+
},
|
|
141
171
|
"./components/card": {
|
|
142
172
|
"types": "./components/card/index.d.ts",
|
|
143
173
|
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
@@ -210,36 +240,6 @@
|
|
|
210
240
|
"esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
|
|
211
241
|
"default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
|
|
212
242
|
},
|
|
213
|
-
"./filters/autocomplete": {
|
|
214
|
-
"types": "./filters/autocomplete/index.d.ts",
|
|
215
|
-
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
216
|
-
"esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
217
|
-
"default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
|
|
218
|
-
},
|
|
219
|
-
"./filters/date": {
|
|
220
|
-
"types": "./filters/date/index.d.ts",
|
|
221
|
-
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
222
|
-
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
223
|
-
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
224
|
-
},
|
|
225
|
-
"./filters/list": {
|
|
226
|
-
"types": "./filters/list/index.d.ts",
|
|
227
|
-
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
228
|
-
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
229
|
-
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
230
|
-
},
|
|
231
|
-
"./filters/number": {
|
|
232
|
-
"types": "./filters/number/index.d.ts",
|
|
233
|
-
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
234
|
-
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
235
|
-
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
236
|
-
},
|
|
237
|
-
"./filters/text": {
|
|
238
|
-
"types": "./filters/text/index.d.ts",
|
|
239
|
-
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
240
|
-
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
241
|
-
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
242
|
-
},
|
|
243
243
|
"./pipeline-components/filter": {
|
|
244
244
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
245
245
|
"esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
min-height: toRem(20);
|
|
28
28
|
line-height: toRem(12);
|
|
29
29
|
padding: 0 toRem(2) toRem(1) toRem(1);
|
|
30
|
+
|
|
31
|
+
&__date {
|
|
32
|
+
width: toRem(85);
|
|
33
|
+
margin-right: toRem(5);
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
&__date-input-separator {
|
|
@@ -74,11 +79,11 @@
|
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
&--date {
|
|
77
|
-
right: toRem(
|
|
82
|
+
right: toRem(5);
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
&--two-dates {
|
|
81
|
-
right: toRem(
|
|
86
|
+
right: toRem(-5);
|
|
82
87
|
bottom: toRem(0);
|
|
83
88
|
}
|
|
84
89
|
}
|
|
@@ -97,3 +102,13 @@ pry-filter-instanciator {
|
|
|
97
102
|
justify-content: space-around;
|
|
98
103
|
padding: 0 toRem(10);
|
|
99
104
|
}
|
|
105
|
+
|
|
106
|
+
@supports (-moz-appearance:none) {
|
|
107
|
+
.m-filter__clear-wrapper.m-filter__clear-wrapper--two-dates {
|
|
108
|
+
right: toRem(-5);
|
|
109
|
+
}
|
|
110
|
+
.m-filter__input__date {
|
|
111
|
+
width: toRem(110);
|
|
112
|
+
margin-right: toRem(5);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -22,18 +22,18 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
22
22
|
attributeTypes$: Observable<{
|
|
23
23
|
ordinate: {
|
|
24
24
|
vegaType: VegaType;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
name: any;
|
|
26
|
+
field: any;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
groupBy: {
|
|
29
29
|
vegaType: VegaType;
|
|
30
|
-
field
|
|
31
|
-
name:
|
|
30
|
+
field: any;
|
|
31
|
+
name: any;
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
vegaType
|
|
35
|
-
field
|
|
36
|
-
name:
|
|
33
|
+
abscissa: {
|
|
34
|
+
vegaType: VegaType;
|
|
35
|
+
field: any;
|
|
36
|
+
name: any;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
aggregatedValues$: Observable<{
|
|
@@ -59,7 +59,6 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
59
59
|
fields: Field[];
|
|
60
60
|
ordinateAttributes$: Observable<Attribute[]>;
|
|
61
61
|
triggerOrdinateAttributes$: Subject<void>;
|
|
62
|
-
copyAbscissaField?: Field;
|
|
63
62
|
copyOrdinateField?: Field;
|
|
64
63
|
noData$: Observable<boolean>;
|
|
65
64
|
sortActive?: string | undefined;
|
|
@@ -79,6 +78,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
79
78
|
colors: any;
|
|
80
79
|
DEFAULT_ITEM_LIMIT: number;
|
|
81
80
|
constructor(store: Store<any>, translateService: PryI18nService, el: ElementRef, aggregationService: PryAggregationService, schemeService: PrySchemeService);
|
|
81
|
+
private fixInterval;
|
|
82
82
|
ngAfterViewInit(): void;
|
|
83
83
|
translateToVegaType(type?: FieldType, name?: string): VegaType;
|
|
84
84
|
static minTick(type: FieldType): {
|
|
@@ -139,8 +139,8 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
139
139
|
};
|
|
140
140
|
getAbscissaType(abscissaVegaType: VegaType, hasSort: boolean): VegaType;
|
|
141
141
|
isTimeInterval(abscissaInterval: string | number): abscissaInterval is string;
|
|
142
|
-
getLabelExpr(axis: 'x' | 'y', axisType: string, field?: Field): string;
|
|
143
|
-
getDataFormat(axisType: string, field?: Field): {
|
|
142
|
+
getLabelExpr(axis: 'x' | 'y', axisType: string, interval: string | undefined, field?: Field): string;
|
|
143
|
+
getDataFormat(axisType: string, interval: string | undefined, field?: Field): {
|
|
144
144
|
format: any;
|
|
145
145
|
scale: {
|
|
146
146
|
type: string;
|
|
@@ -152,7 +152,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
152
152
|
format?: undefined;
|
|
153
153
|
scale?: undefined;
|
|
154
154
|
};
|
|
155
|
-
getLocaleFormat(type: string | undefined): any;
|
|
155
|
+
getLocaleFormat(type: string | undefined, interval: string | undefined): any;
|
|
156
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAggregatedChartComponent, never>;
|
|
157
157
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAggregatedChartComponent, "pry-widget-aggregated-chart", never, {}, {}, never, never, false, never>;
|
|
158
158
|
}
|
|
@@ -27,6 +27,15 @@ export declare const enTranslations: {
|
|
|
27
27
|
YEAR: string;
|
|
28
28
|
MONTH: string;
|
|
29
29
|
DAY: string;
|
|
30
|
+
interval: {
|
|
31
|
+
default: string;
|
|
32
|
+
second: string;
|
|
33
|
+
minute: string;
|
|
34
|
+
hour: string;
|
|
35
|
+
day: string;
|
|
36
|
+
month: string;
|
|
37
|
+
year: string;
|
|
38
|
+
};
|
|
30
39
|
};
|
|
31
40
|
operation: {
|
|
32
41
|
none: string;
|
|
@@ -27,6 +27,15 @@ export declare const frTranslations: {
|
|
|
27
27
|
YEAR: string;
|
|
28
28
|
MONTH: string;
|
|
29
29
|
DAY: string;
|
|
30
|
+
interval: {
|
|
31
|
+
default: string;
|
|
32
|
+
second: string;
|
|
33
|
+
minute: string;
|
|
34
|
+
hour: string;
|
|
35
|
+
day: string;
|
|
36
|
+
month: string;
|
|
37
|
+
year: string;
|
|
38
|
+
};
|
|
30
39
|
};
|
|
31
40
|
operation: {
|
|
32
41
|
none: string;
|