@provoly/dashboard 0.20.1 → 0.20.3
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/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +5 -2
- package/admin/components/admin-fields/admin-fields-select/admin-fields-select.component.d.ts +1 -1
- package/admin/i18n/en.translations.d.ts +1 -0
- package/admin/i18n/fr.translations.d.ts +1 -0
- package/esm2022/admin/components/admin-classes/admin-classes-customize/admin-classes-customize.component.mjs +5 -5
- package/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +36 -11
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-new/admin-attributes-new.component.mjs +1 -1
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-select/admin-attributes-select.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.mjs +3 -3
- package/esm2022/admin/components/admin-fields/admin-fields-select/admin-fields-select.component.mjs +2 -2
- package/esm2022/admin/i18n/en.translations.mjs +3 -2
- package/esm2022/admin/i18n/fr.translations.mjs +3 -2
- package/esm2022/lib/core/components/about/about.component.mjs +8 -5
- package/esm2022/lib/core/model/admin-api.model.mjs +1 -1
- package/esm2022/lib/core/model/filter.interface.mjs +1 -1
- package/esm2022/lib/core/store/class/class.interface.mjs +1 -1
- package/esm2022/lib/core/store/class/class.selectors.mjs +6 -2
- package/esm2022/lib/core/store/search/search.actions.mjs +2 -2
- package/esm2022/lib/core/store/search/search.service.mjs +1 -1
- package/esm2022/lib/dashboard/action-bus/service/bus.service.mjs +2 -2
- package/esm2022/lib/dashboard/components/context-menu/object-edition/object-edition.component.mjs +26 -26
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +4 -1
- package/esm2022/lib/dashboard/item-utils.mjs +7 -7
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -2
- package/esm2022/lib/dashboard/store/proxy.utils.mjs +4 -24
- package/esm2022/pipeline/store/pipeline.actions.mjs +1 -1
- package/esm2022/pipeline-components/filter/component/filter.component.mjs +4 -4
- 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/toolbox/components/filter-settings/filter-settings.component.mjs +3 -3
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +10 -3
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +12 -12
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +4 -4
- package/esm2022/widgets/widget-map/pipe/widget-map-geometry-fields-for.pipe.mjs +3 -3
- package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +2 -2
- package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +10 -6
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +4 -4
- package/esm2022/widgets/widget-table/get-value/get-value.pipe.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs +49 -22
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs +3 -3
- package/fesm2022/provoly-dashboard-pipeline-components-filter.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -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-toolbox.mjs +2 -2
- package/fesm2022/provoly-dashboard-toolbox.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-chart.mjs +11 -11
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +15 -11
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +4 -4
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +51 -61
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/about/about.component.d.ts +2 -1
- package/lib/core/model/admin-api.model.d.ts +1 -0
- package/lib/core/model/filter.interface.d.ts +1 -1
- package/lib/core/store/class/class.interface.d.ts +1 -0
- package/lib/core/store/class/class.selectors.d.ts +105 -5
- package/lib/core/store/search/search.actions.d.ts +2 -2
- package/lib/core/store/search/search.service.d.ts +1 -1
- 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 +1 -1
- package/pipeline/store/pipeline.actions.d.ts +1 -1
- package/styles/components/_o-about.scss +44 -6
- package/styles-theme/components-theme/_a-pry-select.theme.scss +1 -1
- package/toolbox/components/filter-settings/filter-settings.component.d.ts +2 -2
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +1 -0
|
@@ -305,7 +305,7 @@ class CqlUtils {
|
|
|
305
305
|
return filters[datasourceId]
|
|
306
306
|
.map((cond) => {
|
|
307
307
|
const conditions = [];
|
|
308
|
-
const attributeName = attributesReference.find((attr) => attr.id === cond.attribute)?.
|
|
308
|
+
const attributeName = attributesReference.find((attr) => attr.id === cond.attribute)?.technicalName;
|
|
309
309
|
if (attributeName && cond.value && (typeof cond.value !== 'string' || cond.value.length > 0)) {
|
|
310
310
|
switch (cond.operator) {
|
|
311
311
|
case 'EQUALS':
|
|
@@ -840,7 +840,7 @@ class WidgetMapUtils {
|
|
|
840
840
|
.filter(({ attr, field }) => field?.type === geometry);
|
|
841
841
|
}
|
|
842
842
|
if (candidates.length > 0) {
|
|
843
|
-
specificLayer.attribute = candidates[0].attr.
|
|
843
|
+
specificLayer.attribute = candidates[0].attr.technicalName;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
}
|
|
@@ -852,7 +852,7 @@ class WidgetMapUtils {
|
|
|
852
852
|
classesNotFiltered.length > 0) {
|
|
853
853
|
const specificLayer = layer;
|
|
854
854
|
const classes = classesNotFiltered.filter((cl) => (specificLayer.classes?.includes(cl.id) || !specificLayer.classes || specificLayer.classes.length === 0) &&
|
|
855
|
-
cl.attributes.find((attr) => attr.
|
|
855
|
+
cl.attributes.find((attr) => attr.technicalName === (specificLayer?.attribute ?? [])));
|
|
856
856
|
if (!specificLayer.intensityAttribute) {
|
|
857
857
|
// No intensity attribute available, then take the maximum intensity matching attribute
|
|
858
858
|
const candidatesDry = Object.keys(resultSet.items)
|
|
@@ -866,14 +866,14 @@ class WidgetMapUtils {
|
|
|
866
866
|
return {
|
|
867
867
|
min: Math.min(...attrValues),
|
|
868
868
|
max: Math.max(...attrValues),
|
|
869
|
-
|
|
869
|
+
technicalName: attr.attr.technicalName
|
|
870
870
|
};
|
|
871
871
|
});
|
|
872
872
|
})
|
|
873
873
|
.reduce((p, c) => [...p, ...c], [])
|
|
874
874
|
.sort((a, b) => b.max - a.max);
|
|
875
875
|
if (candidatesDry.length > 0) {
|
|
876
|
-
specificLayer.intensityAttribute = candidatesDry[0].
|
|
876
|
+
specificLayer.intensityAttribute = candidatesDry[0].technicalName;
|
|
877
877
|
specificLayer.intensityAsc = true;
|
|
878
878
|
}
|
|
879
879
|
}
|
|
@@ -1040,10 +1040,14 @@ class WidgetMapUtils {
|
|
|
1040
1040
|
// @ts-ignore
|
|
1041
1041
|
return null;
|
|
1042
1042
|
}
|
|
1043
|
-
let value = item.attributes[attribute.
|
|
1043
|
+
let value = item.attributes[attribute.technicalName];
|
|
1044
1044
|
if (value.type === 'MULTI') {
|
|
1045
1045
|
value = value.values[0];
|
|
1046
1046
|
}
|
|
1047
|
+
if (!value.visible) {
|
|
1048
|
+
console.warn(`Geometry not visible for item ${item.id}`);
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1047
1051
|
let geometry;
|
|
1048
1052
|
try {
|
|
1049
1053
|
geometry = new GeoJSON().readGeometry(value.value, {
|
|
@@ -1194,10 +1198,10 @@ class GeometryFieldsForPipe {
|
|
|
1194
1198
|
const attrField = fields.find((f) => f.id === attr.field);
|
|
1195
1199
|
return !!attrField && attrField.type === type;
|
|
1196
1200
|
})
|
|
1197
|
-
.sort((a, b) => a.
|
|
1201
|
+
.sort((a, b) => a.technicalName.localeCompare(b.technicalName));
|
|
1198
1202
|
const resArr = [];
|
|
1199
1203
|
potentialFields.forEach(function (attr) {
|
|
1200
|
-
if (resArr.findIndex((x) => x.
|
|
1204
|
+
if (resArr.findIndex((x) => x.technicalName == attr.technicalName) <= -1) {
|
|
1201
1205
|
resArr.push(attr);
|
|
1202
1206
|
}
|
|
1203
1207
|
});
|
|
@@ -1394,7 +1398,7 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1394
1398
|
key: ds.id,
|
|
1395
1399
|
subType: geo.field.type,
|
|
1396
1400
|
classes: [ds.oClass],
|
|
1397
|
-
attribute: geo.attr.
|
|
1401
|
+
attribute: geo.attr.technicalName
|
|
1398
1402
|
}));
|
|
1399
1403
|
})
|
|
1400
1404
|
.flat()));
|
|
@@ -1936,12 +1940,12 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1936
1940
|
return { locationAttribute, intensityAttribute };
|
|
1937
1941
|
}
|
|
1938
1942
|
getIntensityAttribute(classObj, layer) {
|
|
1939
|
-
return ((classObj || { attributes: [] }).attributes.find((attr) => attr.
|
|
1943
|
+
return ((classObj || { attributes: [] }).attributes.find((attr) => attr.technicalName === layer?.intensityAttribute ?? '') ??
|
|
1940
1944
|
undefined);
|
|
1941
1945
|
}
|
|
1942
1946
|
getLocationAttribute(classObj, layer) {
|
|
1943
1947
|
const specificLayer = layer;
|
|
1944
|
-
return (classObj.attributes.find((attr) => attr.
|
|
1948
|
+
return (classObj.attributes.find((attr) => attr.technicalName === (specificLayer?.attribute ?? []) ?? '') ??
|
|
1945
1949
|
undefined);
|
|
1946
1950
|
}
|
|
1947
1951
|
changeStyle($event) {
|