@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.
- 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/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.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 +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
|
@@ -12,7 +12,7 @@ import * as i1$3 from '@ngrx/effects';
|
|
|
12
12
|
import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
|
|
13
13
|
import * as i1 from '@ngrx/store';
|
|
14
14
|
import { createAction, props, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
|
|
15
|
-
import { of, Subscription, filter, combineLatest, debounceTime, BehaviorSubject, map, Subject, windowTime, switchMap, mergeMap, from as from$1, forkJoin, catchError as catchError$1, throwError, tap as tap$1, withLatestFrom as withLatestFrom$1, share, merge, ReplaySubject, combineLatestWith, distinctUntilChanged as distinctUntilChanged$1,
|
|
15
|
+
import { of, Subscription, filter, combineLatest, debounceTime, BehaviorSubject, map, Subject, windowTime, switchMap, mergeMap, from as from$1, forkJoin, catchError as catchError$1, startWith, throwError, tap as tap$1, withLatestFrom as withLatestFrom$1, share, merge, ReplaySubject, combineLatestWith, distinctUntilChanged as distinctUntilChanged$1, delay, fromEvent, auditTime, interval } from 'rxjs';
|
|
16
16
|
import * as i3$1 from '@angular/platform-browser';
|
|
17
17
|
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
18
18
|
import * as i3$2 from '@angular/cdk/a11y';
|
|
@@ -3565,8 +3565,8 @@ class ConfigService {
|
|
|
3565
3565
|
return of([]);
|
|
3566
3566
|
}));
|
|
3567
3567
|
}
|
|
3568
|
-
|
|
3569
|
-
return
|
|
3568
|
+
handleBackendVersion(url) {
|
|
3569
|
+
return this.httpClient.get(encodeURI(url)).pipe(catchError$1(() => of({})));
|
|
3570
3570
|
}
|
|
3571
3571
|
getAllVersions() {
|
|
3572
3572
|
return combineLatest([
|
|
@@ -3577,26 +3577,30 @@ class ConfigService {
|
|
|
3577
3577
|
this.store.select(ConfigSelectors.transfoUrl)
|
|
3578
3578
|
]).pipe(mergeMap(([ref, data, replay, exec, transfo]) => {
|
|
3579
3579
|
const allVersions = [
|
|
3580
|
-
this.
|
|
3581
|
-
this.
|
|
3582
|
-
this.
|
|
3583
|
-
this.
|
|
3584
|
-
this.
|
|
3585
|
-
this.httpClient.get(encodeURI(`/assets/pry.version`)).pipe(map((version) => (version ? { libVersion: version } : {})), catchError$1(() => of({})))
|
|
3580
|
+
this.handleBackendVersion(`${ref}/about/version`),
|
|
3581
|
+
this.handleBackendVersion(`${data}/about/version`),
|
|
3582
|
+
this.handleBackendVersion(`${replay}/about/version`),
|
|
3583
|
+
this.handleBackendVersion(`${exec}/about/version`),
|
|
3584
|
+
this.handleBackendVersion(`${transfo}/about/version`),
|
|
3585
|
+
this.httpClient.get(encodeURI(`/assets/pry.version`)).pipe(startWith({}), map((version) => (version ? { libVersion: version } : {})), catchError$1(() => of({})))
|
|
3586
3586
|
];
|
|
3587
3587
|
return combineLatest(allVersions).pipe(map(([refVersion, dataVersion, replayVersion, execVersion, tranfoVersion, frontend]) => {
|
|
3588
|
-
const versions = {
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
};
|
|
3588
|
+
const versions = {};
|
|
3589
|
+
this.addVersionIfDetected(refVersion, 'ref', versions);
|
|
3590
|
+
this.addVersionIfDetected(dataVersion, 'data', versions);
|
|
3591
|
+
this.addVersionIfDetected(replayVersion, 'replay', versions);
|
|
3592
|
+
this.addVersionIfDetected(execVersion, 'exec', versions);
|
|
3593
|
+
this.addVersionIfDetected(tranfoVersion, 'transfo', versions);
|
|
3594
|
+
this.addVersionIfDetected(frontend, 'front', versions);
|
|
3596
3595
|
return versions;
|
|
3597
3596
|
}));
|
|
3598
3597
|
}));
|
|
3599
3598
|
}
|
|
3599
|
+
addVersionIfDetected(version, type, versions) {
|
|
3600
|
+
if (!!version && Object.keys(version).length > 0) {
|
|
3601
|
+
versions[type] = version;
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3600
3604
|
getAccessGroups() {
|
|
3601
3605
|
return this.store
|
|
3602
3606
|
.select(ConfigSelectors.refUrl)
|
|
@@ -6838,7 +6842,7 @@ class PrySortDataPipe {
|
|
|
6838
6842
|
}
|
|
6839
6843
|
});
|
|
6840
6844
|
}
|
|
6841
|
-
return list;
|
|
6845
|
+
return list ?? [];
|
|
6842
6846
|
}
|
|
6843
6847
|
compareString(a, b, isAsc) {
|
|
6844
6848
|
return a.localeCompare(b) * (isAsc ? 1 : -1);
|
|
@@ -10368,7 +10372,6 @@ class PryHttpErrorInterceptorService {
|
|
|
10368
10372
|
type: 'error'
|
|
10369
10373
|
});
|
|
10370
10374
|
}
|
|
10371
|
-
console.error(error);
|
|
10372
10375
|
}
|
|
10373
10376
|
else {
|
|
10374
10377
|
if (error.status >= 400) {
|