Skip to content

Commit

Permalink
move widget to @ts/core/r1
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Oct 24, 2024
1 parent 915c4b5 commit 59907d0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@
/* eslint-disable spellcheck/spell-checker */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import '../../../events/click';
import '../../../events/hover';
import '@js/events/click';
import '@js/events/hover';

import {
createReRenderEffect, InfernoEffect, InfernoWrapperComponent,
} from '@devextreme/runtime/inferno';
import type { RefObject } from '@devextreme-generator/declarations';
import { createRef as infernoCreateRef } from 'inferno';

import domAdapter from '../../../core/dom_adapter';
import errors from '../../../core/errors';
import { extend } from '../../../core/utils/extend';
import resizeCallbacks from '../../../core/utils/resize_callbacks';
import { normalizeStyleProp } from '../../../core/utils/style';
import { isFunction } from '../../../core/utils/type';
import domAdapter from '@js/core/dom_adapter';
import errors from '@js/core/errors';
import { extend } from '@js/core/utils/extend';
import resizeCallbacks from '@js/core/utils/resize_callbacks';
import { normalizeStyleProp } from '@js/core/utils/style';
import { isFunction } from '@js/core/utils/type';
import {
dxClick, focus, keyboard, resize, visibility,
} from '../../../events/short';
import type { ConfigContextValue } from '../../core/r1/config_context';
import { ConfigContext } from '../../core/r1/config_context';
import { ConfigProvider } from '../../core/r1/config_provider';
import type { EffectReturn } from '../../core/r1/utils/effect_return';
import { combineClasses } from '../../core/r1/utils/render_utils';
import { resolveRtlEnabled, resolveRtlEnabledDefinition } from '../../core/r1/utils/resolve_rtl';
} from '@js/events/short';
import type { ConfigContextValue } from '@ts/core/r1/config_context';
import { ConfigContext } from '@ts/core/r1/config_context';
import { ConfigProvider } from '@ts/core/r1/config_provider';
import type { EffectReturn } from '@ts/core/r1/utils/effect_return';
import { combineClasses } from '@ts/core/r1/utils/render_utils';
import { resolveRtlEnabled, resolveRtlEnabledDefinition } from '@ts/core/r1/utils/resolve_rtl';
import { createRef as infernoCreateRef } from 'inferno';

import type { BaseWidgetProps } from './base_props';
import { BaseWidgetDefaultProps } from './base_props';
import {
subscribeToDxActiveEvent,
subscribeToDxFocusInEvent,
subscribeToDxFocusOutEvent,
subscribeToDxHoverEndEvent,
subscribeToDxHoverStartEvent,
subscribeToDxInactiveEvent,
} from '../../core/r1/utils/subscribe_to_event';
import type { BaseWidgetProps } from '../base_props';
import { BaseWidgetDefaultProps } from '../base_props';
} from './utils/subscribe_to_event';

const DEFAULT_FEEDBACK_HIDE_TIMEOUT = 400;
const DEFAULT_FEEDBACK_SHOW_TIMEOUT = 30;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { DisplayMode } from '@js/common';
import type { PageSize } from '@js/ui/pagination_types';
import { BaseWidgetDefaultProps, type BaseWidgetProps } from '@ts/core/r1/base_props';

import messageLocalization from '../../../localization/message';
import type { EventCallback } from '../../core/r1/event_callback';
import { BaseWidgetDefaultProps, type BaseWidgetProps } from '../base_props';

export interface BasePaginationProps extends BaseWidgetProps {
isGridCompatibilityMode?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/pager/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { InfernoComponent, InfernoEffect } from '@devextreme/runtime/inferno';
import type { RefObject } from '@devextreme-generator/declarations';
import type { DisplayMode } from '@js/common';
import { Widget } from '@ts/core/r1/widget';
import { createRef as infernoCreateRef } from 'inferno';

import { registerKeyboardAction } from '../../ui/shared/accessibility';
Expand All @@ -17,7 +18,6 @@ import { KeyboardActionContext } from './common/keyboard_action_context';
import { PaginationConfigProvider } from './common/pagination_config_provider';
import type { PaginationProps } from './common/pagination_props';
import { PaginationDefaultProps } from './common/pagination_props';
import { Widget } from './common/widget';
import { InfoText } from './info';
import { PageSizeSelector } from './page_size/selector';
import { PageIndexSelector } from './pages/page_index_selector';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseWidgetDefaultProps } from '@ts/core/r1/base_props';
import type { RefObject } from 'inferno';

import { BaseWidgetDefaultProps } from '../../base_props';
import type { BaseWidgetProps } from './base_widget_props';

const DEFAULT_FEEDBACK_HIDE_TIMEOUT = 400;
Expand Down

0 comments on commit 59907d0

Please sign in to comment.