Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import $ from '@js/core/renderer';
import { getOuterWidth, getWidth } from '@js/core/utils/size';
import { getWindow } from '@js/core/utils/window';
import type { OptionChanged } from '@ts/core/widget/types';
import TextEditor from '@ts/ui/text_box/m_text_editor.mask';
import TextEditor from '@ts/ui/text_box/text_editor.mask';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import registerComponent from '@js/core/component_registrator';

import TextEditorMask from './m_text_editor.mask';
import TextEditorMask from './text_editor.mask';

registerComponent('dxTextEditor', TextEditorMask);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable class-methods-use-this */
/* eslint-disable max-classes-per-file */
import { extend } from '@js/core/utils/extend';
import { isFunction } from '@js/core/utils/type';
Expand Down Expand Up @@ -190,6 +189,7 @@ export class MaskRule extends BaseMaskRule {

handle(args: HandlingArgs): number {
const str = Object.prototype.hasOwnProperty.call(args, 'value') ? args.value : args.text;
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (!str || !str.length || !args.length) {
return 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ 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 TextEditorMask from '@ts/ui/text_box/m_text_editor.mask';
import type { HandlingArgs } from '@ts/ui/text_box/m_text_editor.mask.rule';
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';

const MASK_EVENT_NAMESPACE = 'dxMask';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable class-methods-use-this */
import eventsEngine from '@js/common/core/events/core/events_engine';
import { name as wheelEventName } from '@js/common/core/events/core/wheel';
import {
Expand All @@ -19,9 +18,9 @@ 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 { HandlingArgs } from '@ts/ui/text_box/m_text_editor.mask.rule';
import { EmptyMaskRule, MaskRule, StubMaskRule } from '@ts/ui/text_box/m_text_editor.mask.rule';
import MaskStrategy from '@ts/ui/text_box/m_text_editor.mask.strategy';
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';
import type { CaretRange } from '@ts/ui/text_box/utils.caret';
import caretUtils from '@ts/ui/text_box/utils.caret';

Expand Down
Loading