@fw-components/formula-editor 2.0.7-formula-editor.14 → 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.
|
@@ -118,7 +118,6 @@ let FormulaEditor = class FormulaEditor extends LitElement {
|
|
|
118
118
|
this._recommendations = parseOutput.recommendations;
|
|
119
119
|
this._formattedContent = parseOutput.formattedContent;
|
|
120
120
|
this.errorString = parseOutput.errorString;
|
|
121
|
-
// console.log("this._recommendation",parseOutput)
|
|
122
121
|
/**
|
|
123
122
|
* Don't modify the text stream manually if the text is being composed,
|
|
124
123
|
* unless the user manually chooses to do so by selecting a suggestion.
|
|
@@ -213,7 +212,7 @@ let FormulaEditor = class FormulaEditor extends LitElement {
|
|
|
213
212
|
@blur=${this.handleFocusOut}
|
|
214
213
|
@focus=${this.handleFocus}
|
|
215
214
|
></div>
|
|
216
|
-
${this._recommendations
|
|
215
|
+
${this._recommendations && this.currentCursorPosition
|
|
217
216
|
? html ` <suggestion-menu
|
|
218
217
|
.recommendations=${this._recommendations}
|
|
219
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.
|
|
7
|
-
color: var(--fe-label-color, #
|
|
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.
|
|
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": "
|
|
28
|
+
"gitHead": "be12aca1478fe579ff329b62b0e504d33b16d72c"
|
|
29
29
|
}
|