Skip to content

Commit

Permalink
Release 21.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
groshenkovamarina committed Oct 1, 2021
1 parent 879834b commit 36994da
Show file tree
Hide file tree
Showing 29 changed files with 164 additions and 124 deletions.
3 changes: 0 additions & 3 deletions .vscode/extensions.json

This file was deleted.

39 changes: 0 additions & 39 deletions .vscode/launch.json

This file was deleted.

5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

4 changes: 3 additions & 1 deletion js/data/abstract_store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
LoadOptions,
} from './load_options';

export type Options = StoreOptions;

/** @namespace DevExpress.data */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export interface StoreOptions<T = Store> {
Expand Down Expand Up @@ -101,7 +103,7 @@ export interface StoreOptions<T = Store> {
* @namespace DevExpress.data
*/
export default class Store {
constructor(options?: StoreOptions)
constructor(options?: Options)
/**
* @docid
* @publicName byKey(key)
Expand Down
14 changes: 10 additions & 4 deletions js/data/array_store.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import Store, {
StoreOptions,
Options as StoreOptions,
} from './abstract_store';

/** @namespace DevExpress.data */
export interface ArrayStoreOptions<T = ArrayStore> extends StoreOptions<T> {
/** @public */
export type Options = ArrayStoreOptions;

/**
* @namespace DevExpress.data
* @deprecated Use Options instead
*/
export interface ArrayStoreOptions<T = ArrayStore> extends StoreOptions { // eslint-disable-line @typescript-eslint/no-unused-vars
/**
* @docid
* @public
Expand All @@ -16,7 +22,7 @@ export interface ArrayStoreOptions<T = ArrayStore> extends StoreOptions<T> {
* @public
*/
export default class ArrayStore extends Store {
constructor(options?: ArrayStoreOptions)
constructor(options?: Options)
/**
* @docid
* @publicName clear()
Expand Down
14 changes: 10 additions & 4 deletions js/data/custom_store.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import Store, {
StoreOptions,
Options as StoreOptions,
} from './abstract_store';

import {
LoadOptions,
} from './load_options';

/** @namespace DevExpress.data */
export interface CustomStoreOptions extends StoreOptions<CustomStore> {
/** @public */
export type Options = CustomStoreOptions;

/**
* @namespace DevExpress.data
* @deprecated Use Options instead
*/
export interface CustomStoreOptions extends StoreOptions {
/**
* @docid
* @type_function_param1 key:object|string|number
Expand Down Expand Up @@ -76,7 +82,7 @@ export interface CustomStoreOptions extends StoreOptions<CustomStore> {
* @public
*/
export default class CustomStore extends Store {
constructor(options?: CustomStoreOptions)
constructor(options?: Options)
/**
* @docid
* @publicName clearRawDataCache()
Expand Down
14 changes: 10 additions & 4 deletions js/data/data_source.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ import {
} from '../core/utils/deferred';

import Store, {
StoreOptions,
Options as StoreOptions,
} from './abstract_store';

import {
CustomStoreOptions,
Options as CustomStoreOptions,
} from './custom_store';

/** @namespace DevExpress.data */
/** @public */
export type Options = DataSourceOptions;

/**
* @namespace DevExpress.data
* @deprecated Use Options instead
*/
export interface DataSourceOptions {
/**
* @docid
Expand Down Expand Up @@ -137,7 +143,7 @@ export interface DataSourceOptions {
*/
export default class DataSource {
constructor(data: Array<any>);
constructor(options: CustomStoreOptions | DataSourceOptions);
constructor(options: CustomStoreOptions | Options);
constructor(store: Store);
constructor(url: string);
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { DxPromise } from '../../../../../core/utils/deferred'; // eslint-disabl
import type { UserDefinedElement, DxElement } from '../../../../../core/element'; // eslint-disable-line import/named
import type { template } from '../../../../../core/templates/template';
import DataSource from '../../../../../data/data_source';
import type { DataSourceOptions } from '../../../../../data/data_source';
import type { Options as DataSourceOptions } from '../../../../../data/data_source';
import type { dxPopupOptions } from '../../../../../ui/popup';
import type {
RequiredRule,
Expand Down
2 changes: 1 addition & 1 deletion js/renovation/ui/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Component, ComponentBindings, JSXComponent, OneWay, Event,
} from '@devextreme-generator/declarations';
/* eslint-disable import/named */
import DataSource, { DataSourceOptions } from '../../data/data_source';
import DataSource, { Options as DataSourceOptions } from '../../data/data_source';
import type Store from '../../data/abstract_store';
import { WidgetProps } from './common/widget';
import LegacyList, { dxListItem } from '../../ui/list';
Expand Down
2 changes: 1 addition & 1 deletion js/renovation/ui/select_box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
import { WidgetProps } from './common/widget';
// https://github.com/benmosher/eslint-plugin-import/issues/1699
/* eslint-disable-next-line import/named */
import DataSource, { DataSourceOptions } from '../../data/data_source';
import DataSource, { Options as DataSourceOptions } from '../../data/data_source';
import type Store from '../../data/abstract_store';
/* eslint-disable-next-line import/named */
import LegacySelectBox from '../../ui/select_box';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/collection/ui.collection_widget.base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '../../core/templates/template';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../../data/data_source';

import Store from '../../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/context_menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '../core/utils/deferred';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/context_menu/ui.menu_base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '../../core/element';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../../data/data_source';

import Store from '../../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/data_grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import Store from '../data/abstract_store';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import {
Expand Down
2 changes: 1 addition & 1 deletion js/ui/editor/ui.data_expression.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '../../core/templates/template';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../../data/data_source';

import Store from '../../data/abstract_store';
Expand Down
12 changes: 7 additions & 5 deletions js/ui/file_manager/ui.file_manager.notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,20 @@ export default class FileManagerNotificationControl extends Widget {
}

_dimensionChanged(dimension) {
const notificationManager = this._getNotificationManager();
if(!(dimension && dimension === 'height') && notificationManager.handleDimensionChanged()) {
if(!(dimension && dimension === 'height')) {
this._checkAdaptiveState();
}
}

_checkAdaptiveState() {
const oldState = this._isInAdaptiveState;
this._isInAdaptiveState = this._isSmallScreen();
if(this._progressDrawer && oldState !== this._isInAdaptiveState) {
const options = this._getProgressDrawerAdaptiveOptions();
this._progressDrawer.option(options);
if(oldState !== this._isInAdaptiveState && this._progressDrawer) {
const notificationManager = this._getNotificationManager();
if(notificationManager.handleDimensionChanged()) {
const options = this._getProgressDrawerAdaptiveOptions();
this._progressDrawer.option(options);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion js/ui/filter_builder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import Store from '../data/abstract_store';

import {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import {
Expand Down
2 changes: 1 addition & 1 deletion js/ui/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../core/utils/deferred';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from '../core/element';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/multi_view.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
} from '../core/element';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/pivot_grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

import PivotGridDataSource, {
Field,
PivotGridDataSourceOptions,
Options as PivotGridDataSourceOptions,
dxPivotGridSummaryCell as SummaryCell,
} from './pivot_grid/data_source';

Expand Down
12 changes: 9 additions & 3 deletions js/ui/pivot_grid/data_source.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
} from '../../core/utils/deferred';

import Store, {
StoreOptions,
Options as StoreOptions,
} from '../../data/abstract_store';

import DataSource from '../../data/data_source';
Expand Down Expand Up @@ -155,7 +155,13 @@ interface dxPivotGridSummaryCell {
value(postProcessed: boolean): any;
}

/** @namespace DevExpress.data */
/** @public */
export type Options = PivotGridDataSourceOptions;

/**
* @namespace DevExpress.data
* @deprecated Use Options instead
*/
export interface PivotGridDataSourceOptions {
/**
* @docid
Expand Down Expand Up @@ -494,7 +500,7 @@ export interface PivotGridDataSourceField {
* @public
*/
export default class PivotGridDataSource {
constructor(options?: PivotGridDataSourceOptions)
constructor(options?: Options)
/**
* @docid
* @publicName collapseAll(id)
Expand Down
2 changes: 1 addition & 1 deletion js/ui/scheduler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '../core/templates/template';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/tab_panel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '../core/templates/template';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/toolbar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '../core/templates/template';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
2 changes: 1 addition & 1 deletion js/ui/tree_view.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '../core/utils/deferred';

import DataSource, {
DataSourceOptions,
Options as DataSourceOptions,
} from '../data/data_source';

import Store from '../data/abstract_store';
Expand Down
Loading

0 comments on commit 36994da

Please sign in to comment.