@webtypen/webframez-core 0.2.47 → 0.2.49
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.
|
@@ -337,13 +337,14 @@ class Datatable {
|
|
|
337
337
|
const range = valueClean.split("-");
|
|
338
338
|
const min = range[0].toString().replace(",", ".");
|
|
339
339
|
const max = range[1].toString().replace(",", ".");
|
|
340
|
-
|
|
340
|
+
out[filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key] = {
|
|
341
341
|
$gte: filterEl.type === "float-range" ? parseFloat(min) : parseInt(min),
|
|
342
342
|
$lte: filterEl.type === "float-range" ? parseFloat(max) : parseInt(max),
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
else {
|
|
346
|
-
|
|
346
|
+
out[filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key] =
|
|
347
|
+
filterEl.type === "float-range" ? parseFloat(valueClean.toString().replace(",", ".")) : parseInt(valueClean);
|
|
347
348
|
}
|
|
348
349
|
continue;
|
|
349
350
|
}
|
package/package.json
CHANGED
|
@@ -352,12 +352,13 @@ export class Datatable {
|
|
|
352
352
|
const min = range[0].toString().replace(",", ".");
|
|
353
353
|
const max = range[1].toString().replace(",", ".");
|
|
354
354
|
|
|
355
|
-
|
|
355
|
+
out[filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key] = {
|
|
356
356
|
$gte: filterEl.type === "float-range" ? parseFloat(min) : parseInt(min),
|
|
357
357
|
$lte: filterEl.type === "float-range" ? parseFloat(max) : parseInt(max),
|
|
358
358
|
};
|
|
359
359
|
} else {
|
|
360
|
-
|
|
360
|
+
out[filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key] =
|
|
361
|
+
filterEl.type === "float-range" ? parseFloat(valueClean.toString().replace(",", ".")) : parseInt(valueClean);
|
|
361
362
|
}
|
|
362
363
|
|
|
363
364
|
continue;
|