Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@
/packages/devextreme/js/ui/text_area.d.ts @DevExpress/devextreme-editors
/packages/devextreme/js/ui/text_area_types.d.ts @DevExpress/devextreme-editors

/packages/devextreme/js/__internal/ui/m_text_area.ts @DevExpress/devextreme-editors
/packages/devextreme/js/__internal/ui/text_area.ts @DevExpress/devextreme-editors

/packages/devextreme-scss/scss/widgets/**/textArea/** @DevExpress/devextreme-editors

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TEXTAREA_CLASS } from '@ts/ui/m_text_area';
import { SPEECH_TO_TEXT_CLASS } from '@ts/ui/speech_to_text/speech_to_text';
import { TEXTAREA_CLASS } from '@ts/ui/text_area';

export const DEFAULT_POPUP_OPTIONS = {
width: 400,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { EventInfo, NativeEventInfo } from '@js/events';
import messageLocalization from '@js/localization/message';
import type { TextBoxInstance } from '@js/ui/text_box';
import gridCoreUtils from '@ts/grids/grid_core/m_utils';
import type { TextBoxProperties } from '@ts/ui/text_box/m_text_box';
import type { TextBoxProperties } from '@ts/ui/text_box/text_box';

import type { Column } from '../columns_controller/types';
import type { DefaultToolbarItem } from '../toolbar/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TextArea from '@ts/ui/m_text_area';
import TextArea from '@ts/ui/text_area';

const CLASSES = {
textArea: 'dx-texteditor-input',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import type {
Properties as FileUploaderProperties,
} from '@ts/ui/file_uploader/file_uploader.types';
import Informer from '@ts/ui/informer/informer';
import type { TextAreaProperties } from '@ts/ui/m_text_area';
import TextArea from '@ts/ui/m_text_area';
import type { TextAreaProperties } from '@ts/ui/text_area';
import TextArea from '@ts/ui/text_area';

type EnterKeyEvent = NativeEventInfo<ChatTextArea, KeyboardEvent>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { Deferred } from '@js/core/utils/deferred';
import type { ValueChangedEvent } from '@js/ui/text_box';
import type { SearchBoxMixinOptions } from '@js/ui/widget/ui.search_box_mixin';
import { stubComponent } from '@ts/core/utils/m_stubs';
import type TextBox from '@ts/ui/text_box/m_text_box';
import type { TextBoxProperties } from '@ts/ui/text_box/m_text_box';
import type TextBox from '@ts/ui/text_box/text_box';
import type { TextBoxProperties } from '@ts/ui/text_box/text_box';

export const getOperationBySearchMode = (searchMode?: SearchMode): string | undefined => (searchMode === 'equals' ? '=' : searchMode);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { EditorProperties, ValueChangedEvent } from '@ts/ui/editor/editor';
import Editor from '@ts/ui/editor/editor';
import NumberBox from '@ts/ui/number_box/m_number_box';
import { WIDGET_CLASS as NUMBERBOX_CLASS } from '@ts/ui/number_box/m_number_box.base';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';

const COLOR_VIEW_CLASS = 'dx-colorview';
const COLOR_VIEW_CONTAINER_CLASS = 'dx-colorview-container';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import DiagramFloatingPanel from '@ts/ui/diagram/ui.diagram.floating_panel';
import Tooltip from '@ts/ui/m_tooltip';
import type { PopupProperties } from '@ts/ui/popup/m_popup';
import ScrollView from '@ts/ui/scroll_view/scroll_view';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';

const DIAGRAM_TOOLBOX_MIN_HEIGHT = 130;
const DIAGRAM_TOOLBOX_POPUP_CLASS = 'dx-diagram-toolbox-popup';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import errors from '@js/ui/widget/ui.errors';
import Widget from '@js/ui/widget/ui.widget';
import { focused } from '@ts/core/utils/m_selectors';
import type { OptionChanged } from '@ts/core/widget/types';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';

import type Popover from '../popover/m_popover';
import type { TextEditorButtonInfo } from '../text_box/texteditor_button_collection/index';
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/form/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ import type { ScreenSizeQualifier } from '@ts/ui/responsive_box';
import Scrollable from '@ts/ui/scroll_view/scrollable';
import type { TabPanelProperties } from '@ts/ui/tab_panel/tab_panel';
import TabPanel from '@ts/ui/tab_panel/tab_panel';
import { TEXTEDITOR_CLASS, TEXTEDITOR_INPUT_CLASS } from '@ts/ui/text_box/m_text_editor.base';
import { TEXTEDITOR_CLASS, TEXTEDITOR_INPUT_CLASS } from '@ts/ui/text_box/text_editor.base';
import { TOOLBAR_CLASS } from '@ts/ui/toolbar/constants';

export type FormAICommandName = 'smartPaste';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { DisabledNodeSelectionMode } from '@js/ui/tree_view';
import errors from '@js/ui/widget/ui.errors';
import { getIntersection } from '@ts/core/utils/m_array';
import SearchBoxController, { getOperationBySearchMode } from '@ts/ui/collection/search_box_controller';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';

import HierarchicalDataConverter, {
type DataAccessors,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { isSmallScreen } from '@ts/ui/html_editor/utils/small_screen';
import type { Properties as InformerProperties } from '@ts/ui/informer/informer';
import type { LoadIndicatorProperties } from '@ts/ui/load_indicator';
import { AnimationType } from '@ts/ui/load_indicator';
import { TEXTEDITOR_INPUT_CONTAINER_CLASS } from '@ts/ui/text_box/m_text_editor.base';
import { TEXTEDITOR_INPUT_CONTAINER_CLASS } from '@ts/ui/text_box/text_editor.base';

export const AI_DIALOG_CLASS = 'dx-aidialog';
export const AI_DIALOG_CONTROLS_CLASS = 'dx-aidialog-controls';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SearchBoxController from '@ts/ui/collection/search_box_controller';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';

SearchBoxController.setEditorClass(TextBox);
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/m_lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import supportUtils from '@ts/core/utils/m_support';
import type { OptionChanged } from '@ts/core/widget/types';
import DropDownList from '@ts/ui/drop_down_editor/m_drop_down_list';
import { getElementWidth } from '@ts/ui/drop_down_editor/m_utils';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';

const window = getWindow();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { Deferred } from '@js/core/utils/deferred';
import { fitIntoRange, inRange } from '@js/core/utils/math';
import { isDefined } from '@js/core/utils/type';
import { getGlobalFormatByDataType } from '@ts/core/m_global_format_config';
import TextEditor from '@ts/ui/text_box/m_text_editor';
import TextEditor from '@ts/ui/text_box/text_editor';

import type { TextEditorBaseProperties } from '../text_box/m_text_editor.base';
import type { TextEditorBaseProperties } from '../text_box/text_editor.base';
import type { TextEditorButtonInfo } from '../text_box/texteditor_button_collection/index';
import SpinButtons from './m_number_box.spins';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { isDefined } from '@js/core/utils/type';
import { getWindow, hasWindow } from '@js/core/utils/window';
import type { Properties } from '@js/ui/text_area';
import type { OptionChanged } from '@ts/core/widget/types';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';
import { allowScroll, prepareScrollData } from '@ts/ui/text_box/utils.scroll';

type ScrollAwareEvent = (MouseEvent | PointerEvent) & {
Expand Down Expand Up @@ -80,7 +80,6 @@ class TextArea<
return $input;
}

// eslint-disable-next-line class-methods-use-this
_setInputMinHeight(): void {}

_renderScrollHandler(): void {
Expand Down Expand Up @@ -236,7 +235,6 @@ class TextArea<
}
}

// eslint-disable-next-line class-methods-use-this
_getAdjustedMaxHeight(maxHeight: number, heightDifference: number): number {
const adjustedMaxHeight = maxHeight - heightDifference;

Expand All @@ -263,7 +261,6 @@ class TextArea<
return undefined;
}

// eslint-disable-next-line class-methods-use-this
_renderInputType(): void {}

_visibilityChanged(visible: boolean): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getOuterWidth, getWidth } from '@js/core/utils/size';
import type { OptionChanged } from '@ts/core/widget/types';
import TextEditor from '@ts/ui/text_box/text_editor.mask';

import type { TextEditorBaseProperties } from './m_text_editor.base';
import type { TextEditorBaseProperties } from './text_editor.base';

// STYLE textBox

Expand Down Expand Up @@ -55,7 +55,6 @@ class TextBox<
this._renderSearchMode();
}

// eslint-disable-next-line class-methods-use-this
_useTemplates(): boolean {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ class TextEditorBase<
return rules;
}

// eslint-disable-next-line class-methods-use-this
_getDefaultButtons(): TextEditorButtonInfo[] {
return [
{
Expand Down Expand Up @@ -237,7 +236,6 @@ class TextEditorBase<
return this._inputWrapper().find(`.${TEXTEDITOR_BUTTONS_CONTAINER_CLASS}`).eq(0);
}

// eslint-disable-next-line class-methods-use-this
_isControlKey(key: string): boolean {
return CONTROL_KEYS.includes(key);
}
Expand Down Expand Up @@ -781,7 +779,6 @@ class TextEditorBase<
}
}

// eslint-disable-next-line class-methods-use-this
_getValueChangeEventOptionName(): keyof TProperties {
return 'valueChangeEvent';
}
Expand Down Expand Up @@ -814,7 +811,6 @@ class TextEditorBase<
this._renderValueChangeEvent();
}

// eslint-disable-next-line class-methods-use-this
_renderValueEventName(): string {
return 'input change keypress';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { dxElementWrapper } from '@js/core/renderer';
import browser from '@js/core/utils/browser';
import { clipboardText as getClipboardText } from '@js/core/utils/dom';
import type { DxEvent } from '@js/events';
import type { TextEditorBaseProperties } from '@ts/ui/text_box/m_text_editor.base';
import type { TextEditorBaseProperties } from '@ts/ui/text_box/text_editor.base';
import type TextEditorMask from '@ts/ui/text_box/text_editor.mask';
import type { HandlingArgs } from '@ts/ui/text_box/text_editor.mask.rule';
import type { CaretRange } from '@ts/ui/text_box/utils.caret';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import type { OptionChanged } from '@ts/core/widget/types';
import type { SupportedKeys } from '@ts/core/widget/widget';
import type { ValueChangedEvent } from '@ts/ui/editor/editor';
import type { DxMouseWheelEvent } from '@ts/ui/scroll_view/types';
import type { TextEditorBaseProperties } from '@ts/ui/text_box/m_text_editor.base';
import TextEditorBase from '@ts/ui/text_box/m_text_editor.base';
import type { TextEditorBaseProperties } from '@ts/ui/text_box/text_editor.base';
import TextEditorBase from '@ts/ui/text_box/text_editor.base';
import type { HandlingArgs } from '@ts/ui/text_box/text_editor.mask.rule';
import { EmptyMaskRule, MaskRule, StubMaskRule } from '@ts/ui/text_box/text_editor.mask.rule';
import MaskStrategy from '@ts/ui/text_box/text_editor.mask.strategy';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { dxElementWrapper } from '@js/core/renderer';
import $ from '@js/core/renderer';
import type { Properties } from '@js/ui/button';
import Button from '@js/ui/button';
import type TextEditorBase from '@ts/ui/text_box/m_text_editor.base';
import type TextEditorBase from '@ts/ui/text_box/text_editor.base';

type TextEditorButtonInstance = dxElementWrapper | Button;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { dxElementWrapper } from '@js/core/renderer';
import $ from '@js/core/renderer';
import type { Properties as ButtonProperties } from '@js/ui/button';
import Button from '@js/ui/button';
import type TextEditorBase from '@ts/ui/text_box/m_text_editor.base';
import type TextEditorBase from '@ts/ui/text_box/text_editor.base';
import TextEditorButton, { isButtonInstance } from '@ts/ui/text_box/texteditor_button_collection/button';

const CUSTOM_BUTTON_HOVERED_CLASS = 'dx-custom-button-hovered';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import $ from '@js/core/renderer';
import type dxButton from '@js/ui/button';
import type { Properties } from '@js/ui/button';
import errors from '@js/ui/widget/ui.errors';
import type TextEditorBase from '@ts/ui/text_box/m_text_editor.base';
import type TextEditorBase from '@ts/ui/text_box/text_editor.base';
import type TextEditorButton from '@ts/ui/text_box/texteditor_button_collection/button';
import CustomButton from '@ts/ui/text_box/texteditor_button_collection/custom';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { SearchBoxControllerOptions } from '@ts/ui/collection/search_box_co
import SearchBoxController from '@ts/ui/collection/search_box_controller';
import type { DataAdapterOptions } from '@ts/ui/hierarchical_collection/data_adapter';
import type { InternalNode } from '@ts/ui/hierarchical_collection/data_converter';
import TextBox from '@ts/ui/text_box/m_text_box';
import TextBox from '@ts/ui/text_box/text_box';
import type { TreeViewBaseProperties } from '@ts/ui/tree_view/tree_view.base';
import TreeViewBase from '@ts/ui/tree_view/tree_view.base';

Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/text_area.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TextArea from '../__internal/ui/m_text_area';
import TextArea from '../__internal/ui/text_area';

export default TextArea;

Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/text_box/text_box.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import TextBox from '../../__internal/ui/text_box/m_text_box';
import TextBox from '../../__internal/ui/text_box/text_box';

export default TextBox;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import TextEditorBase from '../../__internal/ui/text_box/m_text_editor.base';
import TextEditorBase from '../../__internal/ui/text_box/text_editor.base';

export default TextEditorBase;
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/text_box/ui.text_editor.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import TextEditorMask from '../../__internal/ui/text_box/m_text_editor';
import TextEditorMask from '../../__internal/ui/text_box/text_editor';

export default TextEditorMask;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import consoleUtils from 'core/utils/console';
import { normalizeKeyName } from 'common/core/events/utils/index';
import { getWidth, implementationsMap } from 'core/utils/size';

import TextEditor from '__internal/ui/text_box/m_text_editor';
import TextEditor from '__internal/ui/text_box/text_editor';
import { TextEditorLabel } from '__internal/ui/text_box/text_editor.label';

const TEXTEDITOR_CLASS = 'dx-texteditor';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import LoadIndicator from 'ui/load_indicator';
import TextEditorBase from 'ui/text_box/ui.text_editor.base.js';
import {
TEXTEDITOR_INPUT_CLASS
} from '__internal/ui/text_box/m_text_editor.base';
} from '__internal/ui/text_box/text_editor.base';

import {
FIELD_ITEM_CLASS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import AIDialog, {
} from '__internal/ui/html_editor/ui/aiDialog';
import { BUTTON_GROUP_CLASS } from '__internal/ui/button_group';
import { POPUP_CLASS } from '__internal/ui/popup/m_popup';
import { TEXTAREA_CLASS } from '__internal/ui/m_text_area';
import { TEXTEDITOR_INPUT_CLASS } from '__internal/ui/text_box/m_text_editor.base';
import { TEXTAREA_CLASS } from '__internal/ui/text_area';
import { TEXTEDITOR_INPUT_CLASS } from '__internal/ui/text_box/text_editor.base';
import { SELECTBOX_CLASS } from '__internal/ui/m_select_box';
import { INFORMER_CLASS } from '__internal/ui/informer/informer';
import { BUTTON_CLASS } from '__internal/ui/button/button';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { BUTTON_CLASS } from '__internal/ui/button/button';
import Informer, { INFORMER_CLASS, INFORMER_TEXT_CLASS } from '__internal/ui/informer/informer';
import SpeechToText, { SPEECH_TO_TEXT_CLASS } from '__internal/ui/speech_to_text/speech_to_text';
import { TOOLBAR_BEFORE_CLASS, TOOLBAR_AFTER_CLASS } from '__internal/ui/toolbar/toolbar.base';
import { TEXTEDITOR_INPUT_CLASS } from '__internal/ui/text_box/m_text_editor.base';
import { TEXTEDITOR_INPUT_CLASS_AUTO_RESIZE } from '__internal/ui/m_text_area';
import { TEXTEDITOR_INPUT_CLASS } from '__internal/ui/text_box/text_editor.base';
import { TEXTEDITOR_INPUT_CLASS_AUTO_RESIZE } from '__internal/ui/text_area';

const fakeFile = {
name: 'fakefile.png',
Expand Down
Loading