Skip to content

Commit 0cb4fda

Browse files
ColorBox, ColorView, NumberBox(Base, Mask, Spin), TextArea, Switch, Validation: convert into ES6 class (DevExpress#29209)
1 parent ec46411 commit 0cb4fda

21 files changed

+1233
-870
lines changed

packages/devextreme/js/__internal/core/widget/widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ class Widget<
682682
focus.trigger(this._focusTarget());
683683
}
684684

685-
registerKeyHandler(key: string, handler: () => void): void {
685+
registerKeyHandler(key: string, handler: (event?) => void): void {
686686
const currentKeys = this._supportedKeys();
687687

688688
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, max-len

packages/devextreme/js/__internal/ui/chat/messagebox.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import Button from '@js/ui/button';
66
import type { Properties as DOMComponentProperties } from '@ts/core/widget/dom_component';
77
import DOMComponent from '@ts/core/widget/dom_component';
88
import type { OptionChanged } from '@ts/core/widget/types';
9+
import TextArea from '@ts/ui/m_text_area';
910

1011
import type { EnterKeyEvent, InputEvent } from '../../../ui/text_area';
11-
import type dxTextArea from '../../../ui/text_area';
12-
import TextArea from '../m_text_area';
1312

1413
const CHAT_MESSAGEBOX_CLASS = 'dx-chat-messagebox';
1514
const CHAT_MESSAGEBOX_TEXTAREA_CLASS = 'dx-chat-messagebox-textarea';
@@ -38,7 +37,7 @@ export interface Properties extends DOMComponentProperties<MessageBox> {
3837
}
3938

4039
class MessageBox extends DOMComponent<MessageBox, Properties> {
41-
_textArea!: dxTextArea;
40+
_textArea!: TextArea;
4241

4342
_button!: Button;
4443

0 commit comments

Comments
 (0)