@provoly/dashboard 1.4.5 → 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.
Files changed (23) hide show
  1. package/esm2022/filters/date/date-filter.component.mjs +3 -3
  2. package/esm2022/import/components/list/import-list.component.mjs +3 -3
  3. package/esm2022/lib/core/components/sort/sort-data.pipe.mjs +2 -2
  4. package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +1 -2
  5. package/esm2022/lib/core/store/config/config.service.mjs +22 -18
  6. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +106 -92
  7. package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +11 -2
  8. package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +12 -3
  9. package/fesm2022/provoly-dashboard-filters-date.mjs +2 -2
  10. package/fesm2022/provoly-dashboard-filters-date.mjs.map +1 -1
  11. package/fesm2022/provoly-dashboard-import.mjs +2 -2
  12. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  13. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +126 -94
  14. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  15. package/fesm2022/provoly-dashboard.mjs +22 -19
  16. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  17. package/lib/core/components/sort/sort-data.pipe.d.ts +1 -1
  18. package/lib/core/store/config/config.service.d.ts +2 -1
  19. package/package.json +7 -7
  20. package/styles/components/_m-filter.scss +17 -2
  21. package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +13 -13
  22. package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +9 -0
  23. 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
- handleBackendVersionError(obs: Observable<BackendVersion>): Observable<BackendVersion>;
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.5",
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(35);
82
+ right: toRem(5);
78
83
  }
79
84
 
80
85
  &--two-dates {
81
- right: toRem(35);
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
- field?: Field;
26
- name: string;
25
+ name: any;
26
+ field: any;
27
27
  };
28
- abscissa: {
28
+ groupBy: {
29
29
  vegaType: VegaType;
30
- field?: Field;
31
- name: string;
30
+ field: any;
31
+ name: any;
32
32
  };
33
- groupBy: {
34
- vegaType?: VegaType;
35
- field?: Field;
36
- name: string;
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;