@provoly/dashboard 1.4.4 → 1.4.6
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 +21 -42
- 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/model/filter.interface.mjs +1 -1
- package/esm2022/lib/core/store/config/config.service.mjs +22 -18
- package/esm2022/lib/core/store/search/search.service.mjs +10 -2
- package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +1 -1
- package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-factory.service.mjs +5 -2
- package/esm2022/lib/dashboard/date-utils.mjs +21 -1
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +3 -2
- package/esm2022/lib/dashboard/widget-loader.function.mjs +15 -4
- package/esm2022/notification/components/notification/content/notification-content.component.mjs +3 -3
- 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-analytic/component/widget-analytic.component.mjs +5 -2
- package/fesm2022/provoly-dashboard-filters-date.mjs +20 -41
- 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-notification.mjs +2 -2
- package/fesm2022/provoly-dashboard-notification.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-analytic.mjs +4 -1
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +90 -45
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/filters/date/date-filter.component.d.ts +2 -8
- package/lib/core/components/sort/sort-data.pipe.d.ts +1 -1
- package/lib/core/model/filter.interface.d.ts +1 -0
- package/lib/core/store/config/config.service.d.ts +2 -1
- package/lib/dashboard/components/widgets/widget-instanciator/widget-factory.service.d.ts +3 -0
- package/lib/dashboard/date-utils.d.ts +13 -0
- package/package.json +7 -7
- 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
- package/widgets/widget-analytic/component/widget-analytic.component.d.ts +1 -1
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { BaseFilterComponent, SubscriptionnerDirective } from '@provoly/dashboard';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class DateFilterComponent extends BaseFilterComponent implements SubscriptionnerDirective, OnInit {
|
|
7
|
-
|
|
8
|
-
date1?: string;
|
|
9
|
-
date2?: string;
|
|
10
|
-
date1$: Subject<string>;
|
|
11
|
-
date2$: Subject<string>;
|
|
6
|
+
dates: string[];
|
|
12
7
|
constructor(store: Store);
|
|
13
8
|
ngOnInit(): void;
|
|
14
|
-
|
|
15
|
-
changeValue($event: string): void;
|
|
9
|
+
onDateChange(index: number, value: string): void;
|
|
16
10
|
clearDate(index: number): void;
|
|
17
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent, never>;
|
|
18
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent, "pry-date-filter", never, {}, {}, never, never, false, never>;
|
|
@@ -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>;
|
|
@@ -7,6 +7,9 @@ import { Store } from '@ngrx/store';
|
|
|
7
7
|
import { DataSource } from '../../../../core/store/data-source/data-source.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare const WIDGET_DEFINITION: InjectionToken<string>;
|
|
10
|
+
export declare const NON_EXCLUDE_GEO_WIDGET_TYPES: {
|
|
11
|
+
values: string[];
|
|
12
|
+
};
|
|
10
13
|
export declare class WidgetFactoryService {
|
|
11
14
|
private injector;
|
|
12
15
|
private store;
|
|
@@ -2,5 +2,18 @@ import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
|
2
2
|
export declare class DateUtils {
|
|
3
3
|
static formatDate(date: Date): string;
|
|
4
4
|
static onlyPastDateValidator(control: AbstractControl): ValidationErrors | null;
|
|
5
|
+
/**
|
|
6
|
+
* Converts a string date into an ISO-8601 string format
|
|
7
|
+
*
|
|
8
|
+
* Works with this formats :
|
|
9
|
+
* - "YYYY-MM-DD" : '2024-12-31' --> '2024-12-31T00:00:00.000Z'
|
|
10
|
+
* - "MM/DD/YYYY" : '12/31/2024' --> '2024-12-30T23:00:00.000Z' (format FR donc prise en compte de la locale : UTC+1)
|
|
11
|
+
* - "YYYY" : '2025' --> '2025-01-01T00:00:00.000Z'
|
|
12
|
+
*
|
|
13
|
+
* @param dateAsString the date to convert (example : 2024-12-31)
|
|
14
|
+
* @see Date.parse
|
|
15
|
+
* @see Date.toISOString
|
|
16
|
+
*/
|
|
17
|
+
static parseToIsoString(dateAsString: string): string;
|
|
5
18
|
static isInTheFuture(date: Date): boolean;
|
|
6
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "17.x || 18.x",
|
|
@@ -102,18 +102,18 @@
|
|
|
102
102
|
"esm": "./esm2022/mock/provoly-dashboard-mock.mjs",
|
|
103
103
|
"default": "./fesm2022/provoly-dashboard-mock.mjs"
|
|
104
104
|
},
|
|
105
|
-
"./notification": {
|
|
106
|
-
"types": "./notification/index.d.ts",
|
|
107
|
-
"esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
108
|
-
"esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
109
|
-
"default": "./fesm2022/provoly-dashboard-notification.mjs"
|
|
110
|
-
},
|
|
111
105
|
"./pipeline": {
|
|
112
106
|
"types": "./pipeline/index.d.ts",
|
|
113
107
|
"esm2022": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
|
|
114
108
|
"esm": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
|
|
115
109
|
"default": "./fesm2022/provoly-dashboard-pipeline.mjs"
|
|
116
110
|
},
|
|
111
|
+
"./notification": {
|
|
112
|
+
"types": "./notification/index.d.ts",
|
|
113
|
+
"esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
114
|
+
"esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
115
|
+
"default": "./fesm2022/provoly-dashboard-notification.mjs"
|
|
116
|
+
},
|
|
117
117
|
"./presentation": {
|
|
118
118
|
"types": "./presentation/index.d.ts",
|
|
119
119
|
"esm2022": "./esm2022/presentation/provoly-dashboard-presentation.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;
|
|
@@ -48,7 +48,7 @@ export declare class WidgetAnalyticComponent extends DataWidgetComponent {
|
|
|
48
48
|
constructor(store: Store<any>, el: ElementRef);
|
|
49
49
|
private matchAttributeValue;
|
|
50
50
|
private createValueMap;
|
|
51
|
-
getPropertyLabelsForLevel
|
|
51
|
+
private getPropertyLabelsForLevel;
|
|
52
52
|
createColorMap(verticalProps: string[], primaryProps: string[], rs: ResultSet, options: AnalyticWidgetOptions): {
|
|
53
53
|
[k: string]: {
|
|
54
54
|
[k: string]: string | undefined;
|