@webtypen/webframez-core 0.2.56 → 0.2.58
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.
|
@@ -343,7 +343,8 @@ class Datatable {
|
|
|
343
343
|
tempType === "float-range" ||
|
|
344
344
|
tempType === "date-range" ||
|
|
345
345
|
tempType === "daterange") &&
|
|
346
|
-
valueClean !== undefined
|
|
346
|
+
valueClean !== undefined &&
|
|
347
|
+
valueClean.toString().trim() !== "") {
|
|
347
348
|
const mappingKey = filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key;
|
|
348
349
|
const cleanVal = (val) => {
|
|
349
350
|
return tempType === "float-range" || tempType === "currency"
|
|
@@ -356,7 +357,10 @@ class Datatable {
|
|
|
356
357
|
: val
|
|
357
358
|
: val;
|
|
358
359
|
};
|
|
359
|
-
if (valueClean.startsWith("
|
|
360
|
+
if (valueClean.startsWith("==null")) {
|
|
361
|
+
out[mappingKey] = null;
|
|
362
|
+
}
|
|
363
|
+
else if (valueClean.startsWith("<=")) {
|
|
360
364
|
const val = valueClean.replace("<=", "").trim();
|
|
361
365
|
out[mappingKey] = {
|
|
362
366
|
$lte: cleanVal(val),
|
package/package.json
CHANGED
|
@@ -356,7 +356,8 @@ export class Datatable {
|
|
|
356
356
|
tempType === "float-range" ||
|
|
357
357
|
tempType === "date-range" ||
|
|
358
358
|
tempType === "daterange") &&
|
|
359
|
-
valueClean !== undefined
|
|
359
|
+
valueClean !== undefined &&
|
|
360
|
+
valueClean.toString().trim() !== ""
|
|
360
361
|
) {
|
|
361
362
|
const mappingKey = filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key;
|
|
362
363
|
|
|
@@ -372,7 +373,9 @@ export class Datatable {
|
|
|
372
373
|
: val;
|
|
373
374
|
};
|
|
374
375
|
|
|
375
|
-
if (valueClean.startsWith("
|
|
376
|
+
if (valueClean.startsWith("==null")) {
|
|
377
|
+
out[mappingKey] = null;
|
|
378
|
+
} else if (valueClean.startsWith("<=")) {
|
|
376
379
|
const val = valueClean.replace("<=", "").trim();
|
|
377
380
|
|
|
378
381
|
out[mappingKey] = {
|