@vuu-ui/vuu-codemirror 4.0.0-alpha.2 → 4.0.0-alpha.20

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,5 +1,5 @@
1
1
  {
2
- "version": "4.0.0-alpha.2",
2
+ "version": "4.0.0-alpha.20",
3
3
  "author": "heswell",
4
4
  "main": "./src/index.js",
5
5
  "license": "Apache-2.0",
@@ -10,7 +10,7 @@
10
10
  "lezer-generate:column": "lezer-generator --output ./src/column-expression-input/column-language-parser/generated/column-parser.js ./src/column-expression-input/column-language-parser/grammar/column.grammar"
11
11
  },
12
12
  "devDependencies": {
13
- "@vuu-ui/vuu-table-types": "4.0.0-alpha.2"
13
+ "@vuu-ui/vuu-table-types": "4.0.0-alpha.20"
14
14
  },
15
15
  "dependencies": {
16
16
  "@codemirror/autocomplete": "^6.4.2",
@@ -18,7 +18,7 @@
18
18
  "@codemirror/language": "^6.6.0",
19
19
  "@codemirror/state": "^6.2.0",
20
20
  "@codemirror/view": "^6.9.3",
21
- "@vuu-ui/vuu-utils": "4.0.0-alpha.2",
21
+ "@vuu-ui/vuu-utils": "4.0.0-alpha.20",
22
22
  "@lezer/common": "1.2.3",
23
23
  "@lezer/highlight": "^1.1.3"
24
24
  },
@@ -30,8 +30,9 @@
30
30
  ],
31
31
  "exports": {
32
32
  ".": {
33
+ "types": "./types/index.d.ts",
33
34
  "import": "./src/index.js",
34
- "types": "./types/index.d.ts"
35
+ "default": "./src/index.js"
35
36
  }
36
37
  },
37
38
  "module": "./src/index.js",
@@ -1,5 +1,5 @@
1
1
  import { AnnotationType } from "@codemirror/state";
2
- import { isNumericColumn } from "@vuu-ui/vuu-utils";
2
+ import { isNumericColumn, isTemporalColumn } from "@vuu-ui/vuu-utils";
3
3
  const NO_OPTIONS = {};
4
4
  const applyWithCursorMove = ()=>(view, completion, from)=>{
5
5
  const annotation = new AnnotationType();
@@ -96,7 +96,7 @@ const numericOperators = [
96
96
  }
97
97
  ];
98
98
  const getRelationalOperators = (column)=>{
99
- if (void 0 === column || isNumericColumn(column)) return numericOperators;
99
+ if (void 0 === column || isNumericColumn(column) || isTemporalColumn(column)) return numericOperators;
100
100
  return equalityOperators;
101
101
  };
102
102
  const getNamePrompt = (entity)=>{