()
| 384 | static i18nBundle: I18nBundle; |
| 385 | |
| 386 | get formValidityMessage() { |
| 387 | const validity = this.formValidity; |
| 388 | |
| 389 | if (validity.valueMissing) { |
| 390 | // @ts-ignore oFormatOptions is a private API of DateFormat |
| 391 | return TimePicker.i18nBundle.getText(TIMEPICKER_VALUE_MISSING, this.getValueFormat().oFormatOptions.pattern as string); |
| 392 | } |
| 393 | if (validity.patternMismatch) { |
| 394 | // @ts-ignore oFormatOptions is a private API of DateFormat |
| 395 | return TimePicker.i18nBundle.getText(TIMEPICKER_PATTERN_MISSMATCH, this.getValueFormat().oFormatOptions.pattern as string); |
| 396 | } |
| 397 | |
| 398 | return ""; |
| 399 | } |
| 400 | |
| 401 | get formValidity(): ValidityStateFlags { |
| 402 | return { |
nothing calls this directly
no test coverage detected