Skip to content

Commit d5ceb4a

Browse files
DropDownEditor, DropDownList, SelectBox, TagBox, DropDownBox: convert into ES6 class (DevExpress#29165)
1 parent db8ad67 commit d5ceb4a

File tree

15 files changed

+1507
-1056
lines changed

15 files changed

+1507
-1056
lines changed

packages/devextreme/js/__internal/core/utils/m_array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getIntersection = function (firstArray, secondArray) {
2727
});
2828
};
2929

30-
export const removeDuplicates = function (from = [], toRemove = []) {
30+
export const removeDuplicates = function (from = [], toRemove: any[] = []) {
3131
const toRemoveMap = createOccurrenceMap(toRemove);
3232
return from.filter((value) => {
3333
const occurrencesCount = toRemoveMap.get(value);

packages/devextreme/js/__internal/core/utils/m_position.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import config from '@js/core/config';
22
import { isWindow } from '@js/core/utils/type';
33

4-
const getDefaultAlignment = (isRtlEnabled) => {
4+
const getDefaultAlignment = (isRtlEnabled?: boolean): 'left' | 'right' => {
55
const rtlEnabled = isRtlEnabled ?? config().rtlEnabled;
66

77
return rtlEnabled ? 'right' : 'left';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Widget<
5454

5555
private readonly _feedbackShowTimeout = 30;
5656

57-
private _contentReadyAction?: ((event?: Record<string, unknown>) => void) | null;
57+
_contentReadyAction?: ((event?: Record<string, unknown>) => void) | null;
5858

5959
private _keyboardListenerId?: string | null;
6060

packages/devextreme/js/__internal/ui/date_box/m_date_box.base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const STRATEGY_CLASSES = {
5757
CalendarWithTime,
5858
List,
5959
};
60-
60+
// @ts-expect-error
6161
const DateBox = DropDownEditor.inherit({
6262

6363
_supportedKeys() {

0 commit comments

Comments
 (0)