@provoly/dashboard 0.15.12 → 0.18.0
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/components/metadata-editor/metadata-editor.component.mjs +3 -3
- package/esm2022/dataset/i18n/en.translations.mjs +2 -2
- package/esm2022/dataset/i18n/fr.translations.mjs +2 -2
- package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +2 -2
- package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/core/store/aggregation/frontend-aggregation/frontend-aggregation.service.mjs +1 -3
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +15 -8
- package/esm2022/search/search-home/search-home.component.mjs +3 -3
- package/esm2022/search/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +4 -4
- package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +3 -3
- package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -18
- package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +47 -35
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +2 -2
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +2 -2
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +14 -7
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +4 -4
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +7 -7
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +64 -51
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +3 -5
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
- package/package.json +31 -31
- package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +1 -0
- package/search/style/_o-pry-search-home.scss +1 -1
- package/styles/components/_a-tooltip.scss +2 -2
- package/styles/components/_o-pry-card.scss +8 -1
- package/styles/components/_o-pry-expand-panel.scss +2 -2
- package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -7
|
@@ -2194,7 +2194,7 @@ const enTranslations = {
|
|
|
2194
2194
|
WARNING: 'Warning'
|
|
2195
2195
|
},
|
|
2196
2196
|
code: {
|
|
2197
|
-
UNRECOGNIZED: 'Unrecognized attribute {{name}}',
|
|
2197
|
+
UNRECOGNIZED: 'Unrecognized attribute{{plural}} {{name}}',
|
|
2198
2198
|
FORMAT: 'Wrong format for attribute {{name}}',
|
|
2199
2199
|
STORAGE: 'Insertion error for element {{recordId}}',
|
|
2200
2200
|
NO_VALUES: 'No value for {{recordId}} line',
|
|
@@ -2264,7 +2264,7 @@ const frTranslations = {
|
|
|
2264
2264
|
WARNING: 'Warning'
|
|
2265
2265
|
},
|
|
2266
2266
|
code: {
|
|
2267
|
-
UNRECOGNIZED: 'Attribut
|
|
2267
|
+
UNRECOGNIZED: 'Attribut{{plural}} {{name}} non reconnu {{plural}}',
|
|
2268
2268
|
FORMAT: "Format d'attribut {{name}} incorrect",
|
|
2269
2269
|
STORAGE: "Erreur d'insertion pour l'élément {{recordId}}",
|
|
2270
2270
|
NO_VALUES: 'Pas de valeur pour la ligne {{recordId}}',
|
|
@@ -5498,7 +5498,6 @@ class PryFrontendAggregationService extends PryAggregationService {
|
|
|
5498
5498
|
if (!!options.ordinate.operation)
|
|
5499
5499
|
console.warn('no ordinate operation selected');
|
|
5500
5500
|
aggregationResult.values = this.getChartDataBasedOnOperation(items, options.ordinate.operation, abscissa, ordinate, options.abscissa.limit);
|
|
5501
|
-
console.log(aggregationResult.values);
|
|
5502
5501
|
}
|
|
5503
5502
|
else {
|
|
5504
5503
|
const groupByAttribute = classes
|
|
@@ -5530,7 +5529,6 @@ class PryFrontendAggregationService extends PryAggregationService {
|
|
|
5530
5529
|
const groupByAbscissa = this.getItemsGroupedByAttributeValue(items, abscissa);
|
|
5531
5530
|
let result = [
|
|
5532
5531
|
...Object.keys(groupByAbscissa).map((abscissaAttribute) => {
|
|
5533
|
-
console.log(AggregationUtils.getAggregatedValue(operation, groupByAbscissa, abscissaAttribute, ordinate ?? ''));
|
|
5534
5532
|
return {
|
|
5535
5533
|
key: +abscissaAttribute || abscissaAttribute,
|
|
5536
5534
|
value: AggregationUtils.getAggregatedValue(operation, groupByAbscissa, abscissaAttribute, ordinate ?? '')
|
|
@@ -8961,7 +8959,7 @@ class PryHttpErrorInterceptorService {
|
|
|
8961
8959
|
intercept(req, next) {
|
|
8962
8960
|
return next.handle(req).pipe(catchError((error) => {
|
|
8963
8961
|
if (httpErrorOptions.isDevMode) {
|
|
8964
|
-
const message = error
|
|
8962
|
+
const message = error?.error?.message ?? error?.message ?? error?.error?.error;
|
|
8965
8963
|
if (error.status >= 400) {
|
|
8966
8964
|
this.snackbar.open({
|
|
8967
8965
|
message: 'Statut: ' + error.status + '. Erreur: ' + message,
|