()
| 615 | } |
| 616 | |
| 617 | _updateValueState() { |
| 618 | const valid = this._checkValueValidity(this.value); |
| 619 | const previousValueState = this.valueState; |
| 620 | |
| 621 | this.valueState = valid ? ValueState.None : ValueState.Negative; |
| 622 | |
| 623 | const eventPrevented = !this.fireDecoratorEvent("value-state-change", { valueState: this.valueState, valid }); |
| 624 | |
| 625 | if (eventPrevented) { |
| 626 | this.valueState = previousValueState; |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | getValueFromDisplayValue(value: string): string { |
| 631 | if (!this.getDisplayFormat().parse(value)) { |
no test coverage detected