@fw-components/formula-editor 2.0.7-formula-editor.11 → 2.0.7-formula-editor.13

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.
@@ -176,6 +176,10 @@ let FormulaEditor = class FormulaEditor extends LitElement {
176
176
  this._recommendations = Array.from(this.variables.keys());
177
177
  }
178
178
  }
179
+ if (_changedProperties.has("variables")) {
180
+ this._parser = new Parser(this.variables, this.minSuggestionLen);
181
+ this.parseInput(null, false);
182
+ }
179
183
  }
180
184
  handleFocusOut(e) {
181
185
  this._recommendations = null;
@@ -216,6 +216,7 @@ export class Parser {
216
216
  parsedTokens.push(token);
217
217
  }
218
218
  previousToken = token;
219
+ currentTokens += token;
219
220
  }
220
221
  /**
221
222
  * Shunting Yard Algorithm (EW Dijkstra)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fw-components/formula-editor",
3
- "version": "2.0.7-formula-editor.11",
3
+ "version": "2.0.7-formula-editor.13",
4
4
  "description": "A WYSIWYG type formula editor",
5
5
  "main": "dist/formula-editor/src/formula-builder.js",
6
6
  "publishConfig": {
@@ -25,5 +25,5 @@
25
25
  "@types/big.js": "^6.1.6",
26
26
  "es-dev-server": "^2.1.0"
27
27
  },
28
- "gitHead": "8f3f50748f055ca017d8ff6f5ac946b8949825e5"
28
+ "gitHead": "64b2664ee2da986636148d45c0d05bcf4c223886"
29
29
  }