myrta-ui 1.1.33 → 1.1.35
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/esm2020/lib/components/form/formula-editor/formula-editor.component.mjs +9 -4
- package/esm2020/lib/components/form/input-text/input-text.component.mjs +2 -2
- package/fesm2015/myrta-ui.mjs +9 -4
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +9 -4
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/myrta-ui.mjs
CHANGED
|
@@ -5492,7 +5492,7 @@ class InputTextComponent {
|
|
|
5492
5492
|
return this.maxlength > this.value?.length;
|
|
5493
5493
|
}
|
|
5494
5494
|
formatValue(value) {
|
|
5495
|
-
return value.length === this.maskPrefix.length ? '' : value;
|
|
5495
|
+
return value ? value.length === this.maskPrefix.length ? '' : value : '';
|
|
5496
5496
|
}
|
|
5497
5497
|
insertPositionText(tagText) {
|
|
5498
5498
|
if (this.selectionStart && this.selectionEnd) {
|
|
@@ -17513,7 +17513,8 @@ class FormulaEditorComponent {
|
|
|
17513
17513
|
}
|
|
17514
17514
|
onFocus(event) {
|
|
17515
17515
|
this.isFocused = true;
|
|
17516
|
-
this._detector.
|
|
17516
|
+
this._detector.detectChanges();
|
|
17517
|
+
this._placeCaretAtEnd();
|
|
17517
17518
|
}
|
|
17518
17519
|
onClear() {
|
|
17519
17520
|
this.updateValue('');
|
|
@@ -17524,8 +17525,11 @@ class FormulaEditorComponent {
|
|
|
17524
17525
|
}
|
|
17525
17526
|
onKeyup(event) {
|
|
17526
17527
|
event.preventDefault();
|
|
17527
|
-
this.
|
|
17528
|
+
const { value, visibleValue } = this._transformValue(this._modifiedValue(this._inputValue), true);
|
|
17529
|
+
this.updateValue(value);
|
|
17530
|
+
this.updateVisibleValue(visibleValue);
|
|
17528
17531
|
this.isFocused = false;
|
|
17532
|
+
this.inputElement.nativeElement.blur();
|
|
17529
17533
|
this._detector.detectChanges();
|
|
17530
17534
|
}
|
|
17531
17535
|
insertTag(whiteListItem) {
|
|
@@ -17664,7 +17668,8 @@ class FormulaEditorComponent {
|
|
|
17664
17668
|
}
|
|
17665
17669
|
clickOut(event) {
|
|
17666
17670
|
if (!this.eRef.nativeElement.contains(event.target) && this.isFocused) {
|
|
17667
|
-
const { visibleValue } = this._transformValue(this._modifiedValue(this._inputValue), true);
|
|
17671
|
+
const { value, visibleValue } = this._transformValue(this._modifiedValue(this._inputValue), true);
|
|
17672
|
+
this.updateValue(value);
|
|
17668
17673
|
this.updateVisibleValue(visibleValue);
|
|
17669
17674
|
this.isFocused = false;
|
|
17670
17675
|
this._detector.detectChanges();
|