@webtypen/webframez-core 0.2.45 → 0.2.46

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.
@@ -324,6 +324,12 @@ class Datatable {
324
324
  if (filterEl && filterEl.ignore) {
325
325
  continue;
326
326
  }
327
+ if (filterEl.type === "boolean") {
328
+ if ((typeof valueClean === "boolean" && valueClean) || (valueClean && valueClean.toString() === "true")) {
329
+ out[filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key] = true;
330
+ continue;
331
+ }
332
+ }
327
333
  switch (operator) {
328
334
  case "empty":
329
335
  value = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.2.45",
3
+ "version": "0.2.46",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -337,6 +337,13 @@ export class Datatable {
337
337
  continue;
338
338
  }
339
339
 
340
+ if (filterEl.type === "boolean") {
341
+ if ((typeof valueClean === "boolean" && valueClean) || (valueClean && valueClean.toString() === "true")) {
342
+ out[filterEl && filterEl.mapping && filterEl.mapping.trim() !== "" ? filterEl.mapping : key] = true;
343
+ continue;
344
+ }
345
+ }
346
+
340
347
  switch (operator) {
341
348
  case "empty":
342
349
  value = null;