@budibase/frontend-core 1.1.25-alpha.0 → 1.1.26

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "1.1.25-alpha.0",
3
+ "version": "1.1.26",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
7
7
  "svelte": "src/index.js",
8
8
  "dependencies": {
9
- "@budibase/bbui": "^1.1.25-alpha.0",
9
+ "@budibase/bbui": "^1.1.26",
10
10
  "lodash": "^4.17.21",
11
11
  "svelte": "^3.46.2"
12
12
  },
13
- "gitHead": "dd0b07d7c9e04583d9e46af1f8d39896767bc9b6"
13
+ "gitHead": "e30e9a6925f6ab4b7b1ccf34434e16676f16af38"
14
14
  }
package/src/constants.js CHANGED
@@ -35,7 +35,7 @@ export const OperatorOptions = {
35
35
  label: "Less than",
36
36
  },
37
37
  Contains: {
38
- value: "contains",
38
+ value: "equal",
39
39
  label: "Contains",
40
40
  },
41
41
  NotContains: {
@@ -99,16 +99,8 @@ export const buildLuceneQuery = filter => {
99
99
  filter.forEach(expression => {
100
100
  let { operator, field, type, value, externalType } = expression
101
101
  // Parse all values into correct types
102
- if (type === "datetime") {
103
- // Ensure date value is a valid date and parse into correct format
104
- if (!value) {
105
- return
106
- }
107
- try {
108
- value = new Date(value).toISOString()
109
- } catch (error) {
110
- return
111
- }
102
+ if (type === "datetime" && value) {
103
+ value = new Date(value).toISOString()
112
104
  }
113
105
  if (type === "number" && !Array.isArray(value)) {
114
106
  if (operator === "oneOf") {