@steedos/filters 2.2.53-beta.3 → 2.2.53-beta.4

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/lib/filter.js CHANGED
@@ -187,7 +187,8 @@ var SteedosFilter = /*#__PURE__*/function () {
187
187
  "notcontains": this.createStringFuncFormatter("not contains"),
188
188
  "notstartswith": this.createStringFuncFormatter("not startswith"),
189
189
  "notendswith": this.createStringFuncFormatter("not endswith"),
190
- "in": this.createBinaryOperationFormatter("in")
190
+ "in": this.createBinaryOperationFormatter("in"),
191
+ "notin": this.createBinaryOperationFormatter("notin")
191
192
  });
192
193
  }
193
194
 
@@ -271,7 +272,7 @@ var SteedosFilter = /*#__PURE__*/function () {
271
272
 
272
273
  var fieldName = criteria[0],
273
274
  value = criteria[2];
274
- return formatter(DevExpressOData.serializePropName(fieldName), op === 'in' ? value : DevExpressOData.serializeValue(value, this.protocolVersion));
275
+ return formatter(DevExpressOData.serializePropName(fieldName), op === 'in' || op === 'notin' ? value : DevExpressOData.serializeValue(value, this.protocolVersion));
275
276
  }
276
277
  }, {
277
278
  key: "compileCore",
package/lib/format.js CHANGED
@@ -216,9 +216,9 @@ var formatFiltersToDev = function formatFiltersToDev(filters) {
216
216
  sub_selector.push([field, "=", "__badQueryForEmptyArray"], "and");
217
217
  }
218
218
  } else if (["<>", "notin"].indexOf(option) > -1) {
219
- _.each(value, function (v) {
220
- return sub_selector.push([field, "<>", v], "and");
221
- });
219
+ sub_selector.push([field, "notin", "(".concat(JSON.stringify(value).replace(/\"/g, "'").slice(1).slice(0, -1), ")")], "and"); // _.each(value, function (v) {
220
+ // return sub_selector.push([field, "<>", v], "and");
221
+ // });
222
222
  } else if (["notcontains", "notstartswith", "notendswith"].indexOf(option) > -1) {
223
223
  _.each(value, function (v) {
224
224
  return sub_selector.push([field, option, v], "and");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos/filters",
3
3
  "private": false,
4
- "version": "2.2.53-beta.3",
4
+ "version": "2.2.53-beta.4",
5
5
  "description": "filters lib for steedos",
6
6
  "main": "lib/index.js",
7
7
  "files": [
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "5782f1171133c05cce158adef71e527d970ef50e"
34
+ "gitHead": "4e43f69e542667e1b83485832a65bfa12371786a"
35
35
  }