Skip to content

Commit

Permalink
Merge branch 'Pager_d.ts_2_24_2' of github.com:Raushen/DevExtreme int…
Browse files Browse the repository at this point in the history
…o Pager_d.ts_2_24_2

# Conflicts:
#	packages/devextreme-angular/src/ui/data-grid/nested/pager.ts
#	packages/devextreme-angular/src/ui/nested/base/pager.ts
#	packages/devextreme-angular/src/ui/tree-list/nested/pager.ts
#	packages/devextreme-react/src/data-grid.ts
#	packages/devextreme-react/src/tree-list.ts
  • Loading branch information
Raushen committed Sep 24, 2024
2 parents 727913c + ec41972 commit f11fa7a
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 45 deletions.
2 changes: 0 additions & 2 deletions packages/devextreme-angular/src/common/grids/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export {
NewRowInfo,
NewRowPosition,
Pager,
PagerDisplayMode,
PagerPageSize,
PagingBase,
RowDragging,
RowDraggingTemplateData,
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-angular/src/ui/data-grid/nested/pager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {



import { Mode, PagerAllPagesMode, PagerDisplayMode } from 'devextreme/common';
import { Mode, PagerDisplayMode, PagerPageSize } from 'devextreme/common';

import {
NestedOptionHost,
Expand All @@ -30,10 +30,10 @@ import { NestedOption } from 'devextreme-angular/core';
})
export class DxoDataGridPagerComponent extends NestedOption implements OnDestroy, OnInit {
@Input()
get allowedPageSizes(): string | Array<PagerAllPagesMode | number> {
get allowedPageSizes(): Mode | Array<PagerPageSize | number> {
return this._getOption('allowedPageSizes');
}
set allowedPageSizes(value: string | Array<PagerAllPagesMode | number>) {
set allowedPageSizes(value: Mode | Array<PagerPageSize | number>) {
this._setOption('allowedPageSizes', value);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-angular/src/ui/nested/base/pager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import {
Component,
} from '@angular/core';

import { Mode, PagerAllPagesMode, PagerDisplayMode } from 'devextreme/common';
import { Mode, PagerDisplayMode, PagerPageSize } from 'devextreme/common';

@Component({
template: ''
})
export abstract class DxoPager extends NestedOption {
get allowedPageSizes(): string | Array<PagerAllPagesMode | number> {
get allowedPageSizes(): Mode | Array<PagerPageSize | number> {
return this._getOption('allowedPageSizes');
}
set allowedPageSizes(value: string | Array<PagerAllPagesMode | number>) {
set allowedPageSizes(value: Mode | Array<PagerPageSize | number>) {
this._setOption('allowedPageSizes', value);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-angular/src/ui/tree-list/nested/pager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {



import { Mode, PagerAllPagesMode, PagerDisplayMode } from 'devextreme/common';
import { Mode, PagerDisplayMode, PagerPageSize } from 'devextreme/common';

import {
NestedOptionHost,
Expand All @@ -30,10 +30,10 @@ import { NestedOption } from 'devextreme-angular/core';
})
export class DxoTreeListPagerComponent extends NestedOption implements OnDestroy, OnInit {
@Input()
get allowedPageSizes(): string | Array<PagerAllPagesMode | number> {
get allowedPageSizes(): Mode | Array<PagerPageSize | number> {
return this._getOption('allowedPageSizes');
}
set allowedPageSizes(value: string | Array<PagerAllPagesMode | number>) {
set allowedPageSizes(value: Mode | Array<PagerPageSize | number>) {
this._setOption('allowedPageSizes', value);
}

Expand Down
2 changes: 0 additions & 2 deletions packages/devextreme-react/src/common/grids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export {
NewRowInfo,
NewRowPosition,
Pager,
PagerDisplayMode,
PagerPageSize,
PagingBase,
RowDragging,
RowDraggingTemplateData,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-react/src/data-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ const OperationDescriptions: typeof _componentOperationDescriptions & IElementDe
// owners:
// DataGrid
type IPagerProps = React.PropsWithChildren<{
allowedPageSizes?: Array<number | "all"> | "auto";
allowedPageSizes?: Array<number | "all" | "auto"> | "auto";
displayMode?: "adaptive" | "compact" | "full";
infoText?: string;
label?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-react/src/tree-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ const OperationDescriptions: typeof _componentOperationDescriptions & IElementDe
// owners:
// TreeList
type IPagerProps = React.PropsWithChildren<{
allowedPageSizes?: Array<number | "all"> | "auto";
allowedPageSizes?: Array<number | "all" | "auto"> | "auto";
displayMode?: "adaptive" | "compact" | "full";
infoText?: string;
label?: string;
Expand Down
2 changes: 0 additions & 2 deletions packages/devextreme-vue/src/common/grids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export {
NewRowInfo,
NewRowPosition,
Pager,
PagerDisplayMode,
PagerPageSize,
PagingBase,
RowDragging,
RowDraggingTemplateData,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ export type PagerAllPagesMode = 'all';
* @public
* @namespace DevExpress.ui.dxPager
*/
export type PagerPageSize = PagerAllPagesMode & 'auto';
export type PagerPageSize = 'all' | 'auto';

/**
* @docid
Expand Down
27 changes: 9 additions & 18 deletions packages/devextreme/js/common/grids.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import {
Sortable,
SortOrder,
ValidationRule,
PagerDisplayMode as PagerDisplayModeType,
PagerPageSize as PagerPageSizeType,
PagerPageSize,
BasePagerOptions,
} from '../common';

Expand Down Expand Up @@ -73,20 +72,6 @@ import {
} from '../ui/widget/ui.widget';
import { PositionConfig } from '../animation/position';

/**
* @docid
* @public
* @namespace DevExpress.common.grids
*/
export type PagerDisplayMode = PagerDisplayModeType;

/**
* @docid
* @public
* @namespace DevExpress.common.grids
*/
export type PagerPageSize = PagerPageSizeType;

/**
* @docid
* @hidden
Expand Down Expand Up @@ -2471,11 +2456,17 @@ export type NewRowPosition = 'first' | 'last' | 'pageBottom' | 'pageTop' | 'view
* @namespace DevExpress.common.grids
*/
export type Pager = BasePagerOptions & {
/**
/**
* @docid
* @default "auto"
*/
allowedPageSizes?: Array<(number | PagerPageSize)> | Mode;

/**
* @docid
* @default "auto"
*/
visible?: boolean | Mode;
visible?: boolean | Mode;
};

/**
Expand Down
17 changes: 8 additions & 9 deletions packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4257,19 +4257,18 @@ declare module DevExpress.common.grids {
* [descr:Pager]
*/
export type Pager = DevExpress.ui.BasePagerOptions & {
/**
* [descr:Pager.allowedPageSizes]
*/
allowedPageSizes?:
| Array<number | DevExpress.ui.dxPager.PagerPageSize>
| Mode;

/**
* [descr:Pager.visible]
*/
visible?: boolean | Mode;
};
/**
* [descr:PagerDisplayMode]
*/
export type PagerDisplayMode = DevExpress.ui.dxPager.PagerDisplayMode;
/**
* [descr:PagerPageSize]
*/
export type PagerPageSize = DevExpress.ui.dxPager.PagerPageSize;
/**
* [descr:PagingBase]
* @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution.
Expand Down Expand Up @@ -30976,7 +30975,7 @@ declare module DevExpress.ui.dxOverlay {
declare module DevExpress.ui.dxPager {
export type PagerAllPagesMode = 'all';
export type PagerDisplayMode = 'adaptive' | 'compact' | 'full';
export type PagerPageSize = PagerAllPagesMode & 'auto';
export type PagerPageSize = 'all' | 'auto';
}
declare module DevExpress.ui.dxPivotGrid {
export type Cell = dxPivotGridPivotGridCell;
Expand Down

0 comments on commit f11fa7a

Please sign in to comment.