@provoly/dashboard 0.24.10 → 0.24.12
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/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2022/lib/core/components/edit-input/edit-input.component.mjs +3 -3
- package/esm2022/lib/core/store/search/search.actions.mjs +1 -1
- package/esm2022/lib/core/store/search/search.service.mjs +1 -1
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +6 -3
- package/esm2022/search/i18n/en.translations.mjs +5 -4
- package/esm2022/search/i18n/fr.translations.mjs +3 -2
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +8 -4
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +4 -4
- package/esm2022/widgets/widget-template/component/widget-template.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +1 -1
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +6 -4
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +7 -3
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +3 -3
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-template.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-template.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +6 -4
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/store/search/search.actions.d.ts +0 -4
- package/lib/core/store/search/search.service.d.ts +0 -2
- package/package.json +7 -7
- package/search/i18n/en.translations.d.ts +1 -0
- package/search/i18n/fr.translations.d.ts +1 -0
|
@@ -2055,7 +2055,7 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
2055
2055
|
const order = this.optionsCopy.layers.some((layer) => layer.order)
|
|
2056
2056
|
? Math.max(...this.optionsCopy.layers.map((layer) => layer.order ?? 0)) + 1
|
|
2057
2057
|
: this.optionsCopy.layers.length + 1;
|
|
2058
|
-
this.optionsCopy.layers.
|
|
2058
|
+
this.optionsCopy.layers.push({
|
|
2059
2059
|
attribute: '',
|
|
2060
2060
|
group: group.name,
|
|
2061
2061
|
title,
|
|
@@ -2454,10 +2454,10 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
2454
2454
|
const toIndex = this.optionsCopy.layers.findIndex((layer) => layer.title === groupLayers[targetIdxInGroup].title);
|
|
2455
2455
|
let newOrder = toIndex;
|
|
2456
2456
|
if (toIndex === 0) {
|
|
2457
|
-
newOrder = (this.optionsCopy.layers[toIndex].order ?? toIndex)
|
|
2457
|
+
newOrder = (this.optionsCopy.layers[toIndex].order ?? toIndex) / 2;
|
|
2458
2458
|
}
|
|
2459
2459
|
else if (toIndex === this.optionsCopy.layers.length - 1) {
|
|
2460
|
-
newOrder = (this.optionsCopy.layers[toIndex].order ?? toIndex)
|
|
2460
|
+
newOrder = (this.optionsCopy.layers[toIndex].order ?? toIndex) + 1;
|
|
2461
2461
|
}
|
|
2462
2462
|
else {
|
|
2463
2463
|
if (direction > 0) {
|