@provoly/dashboard 0.20.2 → 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/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.service.mjs +1 -1
- package/esm2022/lib/dashboard/components/context-menu/object-edition/object-edition.component.mjs +26 -26
- package/esm2022/lib/dashboard/item-utils.mjs +7 -7
- package/esm2022/pipeline/store/pipeline.actions.mjs +1 -1
- package/esm2022/pipeline-components/filter/component/filter.component.mjs +4 -4
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +3 -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 +6 -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-toolbox.mjs +2 -2
- package/fesm2022/provoly-dashboard-toolbox.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 +11 -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 +36 -32
- package/fesm2022/provoly-dashboard.mjs.map +1 -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.service.d.ts +1 -1
- package/package.json +7 -7
- package/pipeline/store/pipeline.actions.d.ts +1 -1
- package/styles-theme/components-theme/_a-pry-select.theme.scss +1 -1
- package/toolbox/components/filter-settings/filter-settings.component.d.ts +2 -2
|
@@ -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,7 +1040,7 @@ 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
|
}
|
|
@@ -1198,10 +1198,10 @@ class GeometryFieldsForPipe {
|
|
|
1198
1198
|
const attrField = fields.find((f) => f.id === attr.field);
|
|
1199
1199
|
return !!attrField && attrField.type === type;
|
|
1200
1200
|
})
|
|
1201
|
-
.sort((a, b) => a.
|
|
1201
|
+
.sort((a, b) => a.technicalName.localeCompare(b.technicalName));
|
|
1202
1202
|
const resArr = [];
|
|
1203
1203
|
potentialFields.forEach(function (attr) {
|
|
1204
|
-
if (resArr.findIndex((x) => x.
|
|
1204
|
+
if (resArr.findIndex((x) => x.technicalName == attr.technicalName) <= -1) {
|
|
1205
1205
|
resArr.push(attr);
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
@@ -1398,7 +1398,7 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1398
1398
|
key: ds.id,
|
|
1399
1399
|
subType: geo.field.type,
|
|
1400
1400
|
classes: [ds.oClass],
|
|
1401
|
-
attribute: geo.attr.
|
|
1401
|
+
attribute: geo.attr.technicalName
|
|
1402
1402
|
}));
|
|
1403
1403
|
})
|
|
1404
1404
|
.flat()));
|
|
@@ -1940,12 +1940,12 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1940
1940
|
return { locationAttribute, intensityAttribute };
|
|
1941
1941
|
}
|
|
1942
1942
|
getIntensityAttribute(classObj, layer) {
|
|
1943
|
-
return ((classObj || { attributes: [] }).attributes.find((attr) => attr.
|
|
1943
|
+
return ((classObj || { attributes: [] }).attributes.find((attr) => attr.technicalName === layer?.intensityAttribute ?? '') ??
|
|
1944
1944
|
undefined);
|
|
1945
1945
|
}
|
|
1946
1946
|
getLocationAttribute(classObj, layer) {
|
|
1947
1947
|
const specificLayer = layer;
|
|
1948
|
-
return (classObj.attributes.find((attr) => attr.
|
|
1948
|
+
return (classObj.attributes.find((attr) => attr.technicalName === (specificLayer?.attribute ?? []) ?? '') ??
|
|
1949
1949
|
undefined);
|
|
1950
1950
|
}
|
|
1951
1951
|
changeStyle($event) {
|