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
@@ -1,4 +1,4 @@
import DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import { createDataSourceAdapterProvider } from '@ts/grids/grid_core/data_source_adapter/provider';

export default createDataSourceAdapterProvider(DataSourceAdapter);
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getHeight } from '@js/core/utils/size';
import { isDefined } from '@js/core/utils/type';
import { restoreFocus, setTabIndex } from '@js/ui/shared/accessibility';
import { ColumnContextMenuMixin } from '@ts/grids/grid_core/context_menu/m_column_context_menu_mixin';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import { registerKeyboardAction } from '@ts/grids/grid_core/m_accessibility';
import type { ModuleType } from '@ts/grids/grid_core/types';
import { CLASSES as VIEW_CLASSES } from '@ts/grids/grid_core/views/const';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Deferred, when } from '@js/core/utils/deferred';
import { extend } from '@js/core/utils/extend';
import { each } from '@js/core/utils/iterator';
import errors from '@js/ui/widget/ui.errors';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type { RawItemData } from '@ts/grids/grid_core/data_source_adapter/types';
import { combineFilters } from '@ts/grids/grid_core/filter/utils';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { toComparable } from '@js/core/utils/data';
import { Deferred, when } from '@js/core/utils/deferred';
import { extend } from '@js/core/utils/extend';
import { each } from '@js/core/utils/iterator';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import { combineFilters } from '@ts/grids/grid_core/filter/utils';

import dataGridCore from '../core';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { isDefined, isPlainObject } from '@js/core/utils/type';
import type { GroupData } from '@js/ui/data_grid';
import type { DataSource } from '@ts/data/data_source/data_source';
import type { ColumnsController } from '@ts/grids/grid_core/columns_controller/columns_controller';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type { RawItemData, RemoteOperationsOptions } from '@ts/grids/grid_core/data_source_adapter/types';
import type { ModuleType } from '@ts/grids/grid_core/types';
import { ColumnsView } from '@ts/grids/grid_core/views/columns_view';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Column } from '@ts/grids/grid_core/columns_controller/types';
import type { ColumnsController } from '../../columns_controller/columns_controller';
import type { DataController } from '../../data_controller/data_controller';
import type { DataSourceController } from '../../data_source/data_source_controller';
import type DataSourceAdapter from '../../data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '../../data_source_adapter/data_source_adapter';
import type { ChangedEvent, RawItemData } from '../../data_source_adapter/types';
import gridCoreUtils from '../../m_utils';
import { Controller } from '../../modules/modules';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import type {
SavedColumnState,
WithCellValueCalculator,
} from '@ts/grids/grid_core/columns_controller/types';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type { RawItemData } from '@ts/grids/grid_core/data_source_adapter/types';
import type { DataFilter } from '@ts/grids/grid_core/filter/types';
import type { Module } from '@ts/grids/grid_core/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import errors from '@js/ui/widget/ui.errors';
import { CLASSES as COLUMN_HEADERS_CLASSES } from '@ts/grids/grid_core/column_headers/const';

import { AI_COLUMN_NAME } from '../ai_column/const';
import type DataSourceAdapter from '../data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '../data_source_adapter/data_source_adapter';
import type { RawItemData } from '../data_source_adapter/types';
import gridCoreUtils from '../m_utils';
import { StickyPosition } from '../sticky_columns/const';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { DataSource } from '@ts/data/data_source/data_source';
import type { ChangingEvent } from '@ts/data/data_source/types';
import type { Column, ColumnsChanges } from '@ts/grids/grid_core/columns_controller/types';
import type { DataSourceController } from '@ts/grids/grid_core/data_source/data_source_controller';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type {
ChangedEvent, LoadOperation, OperationTypes, RawItemData,
} from '@ts/grids/grid_core/data_source_adapter/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { StoreChange } from '@js/data/store';
import type Store from '@ts/data/abstract_store';
import type { StoreKey } from '@ts/data/abstract_store';
import type { DataSource } from '@ts/data/data_source/data_source';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type {
DataSourceAdapterProvider, RawItemData, RemoteOperationsOptions,
} from '@ts/grids/grid_core/data_source_adapter/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type Store from '@ts/data/abstract_store';
import type { StoreKey } from '@ts/data/abstract_store';
import type { DataSource } from '@ts/data/data_source/data_source';
import type { StoreLoadOptions } from '@ts/data/data_source/types';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type {
DataSourceAdapterProvider, LastLoadOptions, OperationTypes, RawItemData, RemoteOperationsOptions,
} from '@ts/grids/grid_core/data_source_adapter/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { extend } from '@js/core/utils/extend';
import type { DataSource } from '@ts/data/data_source/data_source';
import type { StoreLoadOptions } from '@ts/data/data_source/types';

import { executeTask } from './m_data_source_adapter_utils';
import { executeTask } from './data_source_adapter_utils';
import type { LoadOperation, RawItemData } from './types';

export type CustomStoreLoadOptions = StoreLoadOptions & { isLoadingAll?: boolean };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
createEmptyCachedData,
getPageDataFromCache,
setPageDataToCache,
} from './m_data_source_adapter_utils';
} from './data_source_adapter_utils';
import type {
ChangedEvent,
LastLoadOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ModuleType } from '../types';
import type DataSourceAdapter from './m_data_source_adapter';
import type DataSourceAdapter from './data_source_adapter';
import type { DataSourceAdapterProvider } from './types';

export function createDataSourceAdapterProvider<TAdapter extends DataSourceAdapter>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
} from '@ts/data/data_source/types';

import type { InternalGrid, ModuleType } from '../types';
import type DataSourceAdapter from './m_data_source_adapter';
import type DataSourceAdapter from './data_source_adapter';

export type RawItemData = Record<string, unknown>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import type { Column } from '@ts/grids/grid_core/columns_controller/types';
import type { ColumnPoint, SelectionRange } from '@ts/grids/grid_core/types';

import { AI_COLUMN_NAME } from './ai_column/const';
import type DataSourceAdapter from './data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from './data_source_adapter/data_source_adapter';
import { combineFilters } from './filter/utils';
import { isEqualSelectors, isSelectorEqualWithCallback } from './utils/index';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import errors from '@js/ui/widget/ui.errors';
import type { DataController } from '@ts/grids/grid_core/data_controller/data_controller';
import type { DataChange } from '@ts/grids/grid_core/data_controller/types';
import type { DataSourceController } from '@ts/grids/grid_core/data_source/data_source_controller';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type { ErrorHandlingViewController } from '@ts/grids/grid_core/error_handling/error_handling_view_controller';
import type { ModuleType } from '@ts/grids/grid_core/types';
import { CLASSES as VIEW_CLASSES } from '@ts/grids/grid_core/views/const';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {
} from '@ts/grids/grid_core/virtual_data_loader/types';

import gridCoreUtils from '../m_utils';
import { VirtualDataLoader } from '../virtual_data_loader/m_virtual_data_loader';
import { VirtualDataLoader } from '../virtual_data_loader/virtual_data_loader';

const SCROLLING_MODE_INFINITE = 'infinite';
const SCROLLING_MODE_VIRTUAL = 'virtual';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isDefined } from '@js/core/utils/type';
import { ColumnsController, columnsControllerModule } from '@ts/grids/grid_core/columns_controller/columns_controller';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import type { RawItemData } from '@ts/grids/grid_core/data_source_adapter/types';

import treeListCore from './core';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ export class TreeListDataController extends DataController {

treeListCore.registerModule('data', {
defaultOptions() {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- extend() returns any
return extend({}, dataControllerModule.defaultOptions?.(), {
itemsExpr: 'items',
parentIdExpr: 'parentId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type { StoreKey } from '@ts/data/abstract_store';
import { DataSourceController } from '@ts/grids/grid_core/data_source/data_source_controller';
import type { DataSourceAdapterProvider, RawItemData } from '@ts/grids/grid_core/data_source_adapter/types';
import type { RowKey } from '@ts/grids/grid_core/types';
import type { DataSourceAdapterTreeList } from '@ts/grids/tree_list/data_source_adapter/m_data_source_adapter';
import dataSourceAdapterProvider from '@ts/grids/tree_list/data_source_adapter/m_data_source_adapter';
import type { DataSourceAdapterTreeList } from '@ts/grids/tree_list/data_source_adapter/data_source_adapter';
import dataSourceAdapterProvider from '@ts/grids/tree_list/data_source_adapter/data_source_adapter';

export class TreeListDataSourceController
extends DataSourceController<DataSourceAdapterTreeList> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DataSource } from '@ts/data/data_source/data_source';
import type { CustomLoadResult } from '@ts/grids/grid_core/data_source_adapter/custom_loader';
import type { RawItemData } from '@ts/grids/grid_core/data_source_adapter/types';

import { DataSourceAdapterTreeList } from './m_data_source_adapter';
import { DataSourceAdapterTreeList } from './data_source_adapter';
import type { TreeNode } from './types';
import type { LoadBranchesContext } from './utils/load_branches';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type Store from '@ts/data/abstract_store';
import type { DataSource } from '@ts/data/data_source/data_source';
import type { ChangingEvent, StoreLoadOptions } from '@ts/data/data_source/types';
import type { BeforePushEvent } from '@ts/data/types';
import DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import { createDataSourceAdapterProvider } from '@ts/grids/grid_core/data_source_adapter/provider';
import type { OperationTypes as BaseOperationTypes, RawItemData } from '@ts/grids/grid_core/data_source_adapter/types';
import gridCoreUtils from '@ts/grids/grid_core/m_utils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type { ModuleType } from '@ts/grids/grid_core/types';

import type { RowsView } from '../../grid_core/views/m_rows_view';
import treeListCore from '../core';
import type { TreeListDataController } from '../data_controller/m_data_controller';
import type { TreeListDataController } from '../data_controller/data_controller';
import type { TreeListDataSourceController } from '../data_source/data_source_controller';

const TREELIST_EXPAND_ICON_CONTAINER_CLASS = 'dx-treelist-icon-container';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { extend } from '@js/core/utils/extend';
import type { DataController } from '@ts/grids/grid_core/data_controller/data_controller';
import type { DataSourceController } from '@ts/grids/grid_core/data_source/data_source_controller';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/m_data_source_adapter';
import type DataSourceAdapter from '@ts/grids/grid_core/data_source_adapter/data_source_adapter';
import gridCoreUtils from '@ts/grids/grid_core/m_utils';
import type { ModuleType, RowKey } from '@ts/grids/grid_core/types';
import type { RowsView } from '@ts/grids/grid_core/views/m_rows_view';
Expand All @@ -15,7 +15,7 @@ import {
} from '@ts/grids/grid_core/virtual_scrolling/index';

import gridCore from './core';
import dataSourceAdapterProvider from './data_source_adapter/m_data_source_adapter';
import dataSourceAdapterProvider from './data_source_adapter/data_source_adapter';

const oldDefaultOptions = virtualScrollingModule.defaultOptions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './module_not_extended/column_headers';
import './columns_controller';
import './data_source/data_source_module';
import './module_not_extended/filter';
import './data_controller/m_data_controller';
import './data_controller/data_controller';
import './module_not_extended/sorting';
import './rows/m_rows';
import './module_not_extended/context_menu';
Expand Down
Loading