@provoly/dashboard 0.20.1 → 0.20.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/components/about/about.component.mjs +8 -5
- package/esm2022/lib/core/store/search/search.actions.mjs +2 -2
- package/esm2022/lib/dashboard/action-bus/service/bus.service.mjs +2 -2
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +4 -1
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -2
- package/esm2022/lib/dashboard/store/proxy.utils.mjs +4 -24
- package/esm2022/presentation/components/presentation.component.mjs +3 -3
- package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
- package/esm2022/restitution/i18n/en.translations.mjs +2 -2
- package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +10 -3
- package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +5 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +2 -2
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +8 -8
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +9 -2
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +4 -0
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +15 -29
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/about/about.component.d.ts +2 -1
- package/lib/core/store/search/search.actions.d.ts +2 -2
- package/lib/dashboard/store/dashboard.actions.d.ts +2 -2
- package/lib/dashboard/store/dashboard.effects.d.ts +3 -3
- package/lib/dashboard/store/proxy.utils.d.ts +1 -1
- package/package.json +7 -7
- package/styles/components/_o-about.scss +44 -6
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +1 -0
|
@@ -3746,7 +3746,7 @@ const DashboardActions = {
|
|
|
3746
3746
|
followManifestRoute: createAction('[Dashboard] (bus) follow manifest route'),
|
|
3747
3747
|
moveWidget: createAction('[Dashboard] moving widget', props()),
|
|
3748
3748
|
maximizeWidget: createAction('[Dashboard] maximize widget', props()),
|
|
3749
|
-
assertResultSets: createAction('[Dashboard]
|
|
3749
|
+
assertResultSets: createAction('[Dashboard] assert resultSet', props()),
|
|
3750
3750
|
updateResultSet: createAction('[Dashboard] (bus) received named resultSet', props()),
|
|
3751
3751
|
addRelationsToResultSets: createAction('[Dashboard] (bus) add relations to resultSet', props()),
|
|
3752
3752
|
addItemToResultSets: createAction('[Dashboard] (bus) add item to resultSet', props()),
|
|
@@ -3815,7 +3815,7 @@ class ManifestUtils {
|
|
|
3815
3815
|
|
|
3816
3816
|
const SearchActions = {
|
|
3817
3817
|
search: createAction('[Search] search', props()),
|
|
3818
|
-
getDatasourceItems: createAction('[Search] (bus)
|
|
3818
|
+
getDatasourceItems: createAction('[Search] (bus) get datasource items', props()),
|
|
3819
3819
|
// result Search
|
|
3820
3820
|
searchSuccess: createAction('[Search Api] (bus) Search Success', props()),
|
|
3821
3821
|
searchFailure: createAction('[Search Api] (bus) Search Failure', props()),
|
|
@@ -3865,29 +3865,9 @@ class ProxyUtils {
|
|
|
3865
3865
|
});
|
|
3866
3866
|
}
|
|
3867
3867
|
static ResultSets(rss) {
|
|
3868
|
-
return
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
return ProxyUtils.ResultSet(original[prop], prop);
|
|
3872
|
-
}
|
|
3873
|
-
else {
|
|
3874
|
-
/* actuellement fait via le assertResult
|
|
3875
|
-
setTimeout(() => {
|
|
3876
|
-
if (!this.currentlyLoading.includes(prop as string) && this.requested[prop as string] !== true) {
|
|
3877
|
-
this.requested[prop as string] = true;
|
|
3878
|
-
this.store.dispatch(
|
|
3879
|
-
SearchActions.getDatasourceItems({
|
|
3880
|
-
id: prop as string,
|
|
3881
|
-
excludeGeo: true,
|
|
3882
|
-
from: 'ProxyUtils.ResultSets()'
|
|
3883
|
-
})
|
|
3884
|
-
);
|
|
3885
|
-
}
|
|
3886
|
-
}, 100); */
|
|
3887
|
-
}
|
|
3888
|
-
return undefined;
|
|
3889
|
-
}
|
|
3890
|
-
});
|
|
3868
|
+
return Object.entries(rss)
|
|
3869
|
+
.map(([key, value]) => ({ key, proxy: ProxyUtils.ResultSet(value, key) }))
|
|
3870
|
+
.reduce((p, c) => ({ ...p, [c.key]: c.proxy }), {});
|
|
3891
3871
|
}
|
|
3892
3872
|
static ResultSet(rs, rsId) {
|
|
3893
3873
|
return {
|
|
@@ -8016,6 +7996,9 @@ class DashboardComponent extends SubscriptionnerDirective {
|
|
|
8016
7996
|
getDataActions.forEach((action) => this.store.dispatch(action));
|
|
8017
7997
|
}
|
|
8018
7998
|
}));
|
|
7999
|
+
this.subscriptions.add(this.windowManifest$.subscribe(() => {
|
|
8000
|
+
this.store.dispatch(DashboardActions.assertResultSets({}));
|
|
8001
|
+
}));
|
|
8019
8002
|
this.store.dispatch(FieldActions.load());
|
|
8020
8003
|
this.store.dispatch(ClassActions.load());
|
|
8021
8004
|
this.store.dispatch(CategoryActions.load());
|
|
@@ -9077,6 +9060,7 @@ class PryAboutComponent {
|
|
|
9077
9060
|
constructor(store, i18nService) {
|
|
9078
9061
|
this.store = store;
|
|
9079
9062
|
this.i18nService = i18nService;
|
|
9063
|
+
this.tooltipPosition = 'bottom';
|
|
9080
9064
|
this.store.dispatch(ConfigActions.loadVersions());
|
|
9081
9065
|
this.version$ = this.store.select(ConfigSelectors.selectVersions);
|
|
9082
9066
|
}
|
|
@@ -9097,12 +9081,14 @@ class PryAboutComponent {
|
|
|
9097
9081
|
return !!value && (!!backVersion.chartVersion || !!frontVersion.libVersion);
|
|
9098
9082
|
}
|
|
9099
9083
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PryAboutComponent, deps: [{ token: i1.Store }, { token: PryI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9100
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PryAboutComponent, selector: "pry-about", ngImport: i0, template: "<div class=\"o-about\">\n <div class=\"info-icon description-container description\">\n <span class=\"info-text\">i</span>\n </div>\n <div class=\"description-tooltip
|
|
9084
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PryAboutComponent, selector: "pry-about", inputs: { tooltipPosition: "tooltipPosition" }, ngImport: i0, template: "<div class=\"o-about\">\n <div class=\"info-icon description-container description\">\n <span class=\"info-text\">i</span>\n </div>\n <div class=\"description-tooltip -position-{{ tooltipPosition }}\">\n <ng-container *ngFor=\"let version of (version$ | async) ?? {} | keyvalue\">\n <div class=\"o-about__line\">\n {{ '@pry.about.' + version.key | i18n }}\n <p class=\"a-chips -md\" [class.-not-found]=\"!hasVersion(version.value)\">\n {{ displayVersion(version.value) }}\n </p>\n </div>\n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: I18nPipe, name: "i18n" }] }); }
|
|
9101
9085
|
}
|
|
9102
9086
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PryAboutComponent, decorators: [{
|
|
9103
9087
|
type: Component,
|
|
9104
|
-
args: [{ selector: 'pry-about', template: "<div class=\"o-about\">\n <div class=\"info-icon description-container description\">\n <span class=\"info-text\">i</span>\n </div>\n <div class=\"description-tooltip
|
|
9105
|
-
}], ctorParameters: function () { return [{ type: i1.Store }, { type: PryI18nService }]; }
|
|
9088
|
+
args: [{ selector: 'pry-about', template: "<div class=\"o-about\">\n <div class=\"info-icon description-container description\">\n <span class=\"info-text\">i</span>\n </div>\n <div class=\"description-tooltip -position-{{ tooltipPosition }}\">\n <ng-container *ngFor=\"let version of (version$ | async) ?? {} | keyvalue\">\n <div class=\"o-about__line\">\n {{ '@pry.about.' + version.key | i18n }}\n <p class=\"a-chips -md\" [class.-not-found]=\"!hasVersion(version.value)\">\n {{ displayVersion(version.value) }}\n </p>\n </div>\n </ng-container>\n </div>\n</div>\n" }]
|
|
9089
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: PryI18nService }]; }, propDecorators: { tooltipPosition: [{
|
|
9090
|
+
type: Input
|
|
9091
|
+
}] } });
|
|
9106
9092
|
|
|
9107
9093
|
const PRY_ABOUT_COMPONENTS = [PryAboutComponent];
|
|
9108
9094
|
class PryAboutModule {
|
|
@@ -9157,7 +9143,7 @@ class BusService {
|
|
|
9157
9143
|
if (!action.sender) {
|
|
9158
9144
|
// Send only non bus-received messages
|
|
9159
9145
|
this.dataChannel.postMessage({
|
|
9160
|
-
...action,
|
|
9146
|
+
...JSON.parse(JSON.stringify(action)),
|
|
9161
9147
|
sender: this.sender,
|
|
9162
9148
|
target
|
|
9163
9149
|
});
|