@provoly/dashboard 1.4.0 → 1.4.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/store/search/search.service.mjs +10 -4
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +51 -54
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +52 -55
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +9 -3
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/components/_m-tooltip.scss +0 -6
- package/widgets/widget-map/interaction/tooltip-manager.class.d.ts +4 -2
|
@@ -4184,9 +4184,15 @@ class SearchService {
|
|
|
4184
4184
|
this.filters[id]
|
|
4185
4185
|
.filter((filter) => filter.value !== null && filter.value !== undefined)
|
|
4186
4186
|
.forEach((filter) => {
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4187
|
+
let valuesToAddToParams = filter.value;
|
|
4188
|
+
// INSIDE and OUTSIDE operators uses 2 values but not sent in an array, values are separated by a coma
|
|
4189
|
+
// wich must not be encoded (as if values were in an array)
|
|
4190
|
+
if (['INSIDE', 'OUTSIDE'].find((val) => val === filter.operator) !== undefined) {
|
|
4191
|
+
valuesToAddToParams = filter.value.split(',');
|
|
4192
|
+
}
|
|
4193
|
+
const value = Array.isArray(valuesToAddToParams)
|
|
4194
|
+
? valuesToAddToParams.map((v) => encodeURIComponent(v.toString().split(',').join('\\,'))).join(',')
|
|
4195
|
+
: encodeURIComponent(valuesToAddToParams.toString().replace(/,/g, '\\,'));
|
|
4190
4196
|
params = params.append('filter', `${filter.attribute},${filter.operator},${value}`);
|
|
4191
4197
|
});
|
|
4192
4198
|
}
|