@nokecy/qc-ui 1.0.1 → 1.0.3

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.
@@ -95,6 +95,7 @@ var FormRender = function FormRender(props) {
95
95
  component = "DatePicker.RangePicker";
96
96
  break;
97
97
  case "boolColumn":
98
+ case "bool":
98
99
  component = "BoolSelect";
99
100
  break;
100
101
  }
@@ -37,7 +37,9 @@ var getFilter = function getFilter(objectKey, value) {
37
37
  }
38
38
  var items = [];
39
39
  getObjectFilter(value, objectKey, items);
40
- return items.join(",");
40
+ return items.filter(function (x) {
41
+ return !!x;
42
+ }).join(",");
41
43
  };
42
44
  var getObjectFilter = function getObjectFilter(obj, objKey, items) {
43
45
  Object.keys(obj).map(function (key) {
@@ -47,7 +49,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
47
49
  items.push("".concat(objectKey, " = ").concat(value));
48
50
  }
49
51
  if (typeof value === 'string') {
50
- value && value != "" && items.push("".concat(objectKey, " ^ ").concat(esc(value)));
52
+ value && value != "" && items.push("".concat(objectKey, " =* ").concat(esc(value)));
51
53
  }
52
54
  if (typeof value === 'boolean') {
53
55
  items.push("".concat(objectKey, " = ").concat(value));
@@ -87,6 +87,7 @@ var FormRender = function FormRender(props) {
87
87
  component = "DatePicker.RangePicker";
88
88
  break;
89
89
  case "boolColumn":
90
+ case "bool":
90
91
  component = "BoolSelect";
91
92
  break;
92
93
  }
@@ -30,7 +30,9 @@ var getFilter = function getFilter(objectKey, value) {
30
30
  }
31
31
  var items = [];
32
32
  getObjectFilter(value, objectKey, items);
33
- return items.join(",");
33
+ return items.filter(function (x) {
34
+ return !!x;
35
+ }).join(",");
34
36
  };
35
37
  var getObjectFilter = function getObjectFilter(obj, objKey, items) {
36
38
  Object.keys(obj).map(function (key) {
@@ -40,7 +42,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
40
42
  items.push("".concat(objectKey, " = ").concat(value));
41
43
  }
42
44
  if (typeof value === 'string') {
43
- value && value != "" && items.push("".concat(objectKey, " ^ ").concat(esc(value)));
45
+ value && value != "" && items.push("".concat(objectKey, " =* ").concat(esc(value)));
44
46
  }
45
47
  if (typeof value === 'boolean') {
46
48
  items.push("".concat(objectKey, " = ").concat(value));