@fw-components/formula-editor 2.0.7-formula-editor.15 → 2.0.7-formula-editor.16

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.
@@ -212,7 +212,7 @@ let FormulaEditor = class FormulaEditor extends LitElement {
212
212
  @blur=${this.handleFocusOut}
213
213
  @focus=${this.handleFocus}
214
214
  ></div>
215
- ${this._recommendations
215
+ ${this._recommendations && this.currentCursorPosition
216
216
  ? html ` <suggestion-menu
217
217
  .recommendations=${this._recommendations}
218
218
  .currentSelection=${this._selectedRecommendation}
@@ -9,8 +9,8 @@ export var Operator;
9
9
  export class Formula {
10
10
  constructor(name, formulaString, precision = -1) {
11
11
  this.error = null;
12
- this.name = name;
13
- this.formulaString = formulaString;
12
+ this.name = name || "";
13
+ this.formulaString = formulaString || "";
14
14
  this.precision = precision;
15
15
  }
16
16
  }
@@ -3,8 +3,8 @@ export const FormulaEditorStyles = css `
3
3
 
4
4
  .formula-editor-label {
5
5
  display: block;
6
- font-size: var(--fe-label-font-size, 0.9rem);
7
- color: var(--fe-label-color, #343434);
6
+ font-size: var(--fe-label-font-size, 0.8rem);
7
+ color: var(--fe-label-color, #515151);
8
8
  margin-bottom: var(--fe-label-margin-bottom, 1px);
9
9
  }
10
10
 
@@ -19,6 +19,7 @@ export const FormulaEditorStyles = css `
19
19
  border-radius: var(--fe-border-radius, 4px);
20
20
  overflow: auto;
21
21
  border: var(--fe-border, 2px solid black);
22
+ border-bottom: var(--fe-border-bottom, 0px solid black);
22
23
  outline: 0px solid black;
23
24
  white-space: pre-wrap;
24
25
  background-color: var(--fe-background-color, #222222);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fw-components/formula-editor",
3
- "version": "2.0.7-formula-editor.15",
3
+ "version": "2.0.7-formula-editor.16",
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": "c544f7013f65838c0ce25819898c444386fa5602"
28
+ "gitHead": "be12aca1478fe579ff329b62b0e504d33b16d72c"
29
29
  }