Skip to content

Commit

Permalink
Update internal-tools to 16.0.0-beta.5. Regenerate all
Browse files Browse the repository at this point in the history
  • Loading branch information
alexslavr committed Sep 25, 2024
1 parent a31fe82 commit 856ea80
Show file tree
Hide file tree
Showing 4 changed files with 383 additions and 413 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"axe-core": "4.10.0",
"cheerio": "1.0.0-rc.10",
"codelyzer": "6.0.2",
"devextreme-internal-tools": "16.0.0-beta.4",
"devextreme-internal-tools": "16.0.0-beta.5",
"http-server": "14.1.1",
"husky": "8.0.3",
"jest": "29.7.0",
Expand Down
12 changes: 9 additions & 3 deletions packages/devextreme-vue/src/pager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Pager, { Properties } from "devextreme/ui/pager";
import { createComponent } from "./core/index";
import { defineComponent } from "vue";
import { prepareComponentConfig } from "./core/index";

type AccessibleOptions = Pick<Properties,
"accessKey" |
Expand Down Expand Up @@ -33,7 +34,8 @@ type AccessibleOptions = Pick<Properties,
interface DxPager extends AccessibleOptions {
readonly instance?: Pager;
}
const DxPager = createComponent({

const componentConfig = {
props: {
accessKey: String,
activeStateEnabled: Boolean,
Expand Down Expand Up @@ -101,7 +103,11 @@ const DxPager = createComponent({
(this as any).$_WidgetClass = Pager;
(this as any).$_hasAsyncTemplate = true;
}
});
};

prepareComponentConfig(componentConfig);

const DxPager = defineComponent(componentConfig);

export default DxPager;
export {
Expand Down
88 changes: 41 additions & 47 deletions packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,40 @@ declare module DevExpress.common {
*/
validationCallback?: (options: ValidationCallbackData) => PromiseLike<any>;
};
/**
* [descr:BasePagerOptions]
*/
export type BasePagerOptions = {
/**
* [descr:BasePagerOptions.displayMode]
*/
displayMode?: PagerDisplayMode;
/**
* [descr:BasePagerOptions.infoText]
*/
infoText?: string;
/**
* [descr:BasePagerOptions.showInfo]
*/
showInfo?: boolean;
/**
* [descr:BasePagerOptions.showNavigationButtons]
*/
showNavigationButtons?: boolean;
/**
* [descr:BasePagerOptions.showPageSizeSelector]
*/
showPageSizeSelector?: boolean;
/**
* [descr:BasePagerOptions.label]
*/
label?: string;

/**
* [descr:BasePagerOptions.allowedPageSizes]
*/
allowedPageSizes?: Array<number | PagerAllPagesMode> | 'auto';
};
export type ButtonStyle = 'text' | 'outlined' | 'contained';
export type ButtonType = 'danger' | 'default' | 'normal' | 'success';
/**
Expand Down Expand Up @@ -1657,6 +1691,9 @@ declare module DevExpress.common {
export type Orientation = 'horizontal' | 'vertical';
export type PageLoadMode = 'nextButton' | 'scrollBottom';
export type PageOrientation = 'portrait' | 'landscape';
export type PagerAllPagesMode = 'all';
export type PagerDisplayMode = 'adaptive' | 'compact' | 'full';
export type PagerPageSize = 'all' | 'auto';
/**
* [descr:PatternRule]
*/
Expand Down Expand Up @@ -4256,13 +4293,11 @@ declare module DevExpress.common.grids {
/**
* [descr:Pager]
*/
export type Pager = DevExpress.ui.BasePagerOptions & {
export type Pager = BasePagerOptions & {
/**
* [descr:Pager.allowedPageSizes]
*/
allowedPageSizes?:
| Array<number | DevExpress.ui.dxPager.PagerPageSize>
| Mode;
allowedPageSizes?: Array<number | PagerPageSize> | Mode;

/**
* [descr:Pager.visible]
Expand Down Expand Up @@ -7902,42 +7937,6 @@ declare module DevExpress.ui {
* [descr:dxSchedulerAppointment]
*/
export type Appointment = dxSchedulerAppointment;
/**
* [descr:BasePagerOptions]
*/
export type BasePagerOptions = {
/**
* [descr:BasePagerOptions.displayMode]
*/
displayMode?: DevExpress.ui.dxPager.PagerDisplayMode;
/**
* [descr:BasePagerOptions.infoText]
*/
infoText?: string;
/**
* [descr:BasePagerOptions.showInfo]
*/
showInfo?: boolean;
/**
* [descr:BasePagerOptions.showNavigationButtons]
*/
showNavigationButtons?: boolean;
/**
* [descr:BasePagerOptions.showPageSizeSelector]
*/
showPageSizeSelector?: boolean;
/**
* [descr:BasePagerOptions.label]
*/
label?: string;

/**
* [descr:BasePagerOptions.allowedPageSizes]
*/
allowedPageSizes?:
| Array<number | DevExpress.ui.dxPager.PagerAllPagesMode>
| 'auto';
};
/**
* [descr:ColCountResponsible]
* @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 @@ -21749,7 +21748,7 @@ declare module DevExpress.ui {
* @deprecated [depNote:dxPagerOptions]
*/
export interface dxPagerOptions
extends BasePagerOptions,
extends DevExpress.common.BasePagerOptions,
WidgetOptions<dxPager> {
/**
* [descr:dxPagerOptions.pageIndex]
Expand All @@ -21769,7 +21768,7 @@ declare module DevExpress.ui {
/**
* [descr:dxPagerOptions.allowedPageSizes]
*/
allowedPageSizes?: Array<number | DevExpress.ui.dxPager.PagerAllPagesMode>;
allowedPageSizes?: Array<number | DevExpress.common.PagerAllPagesMode>;
}
/**
* [descr:dxPivotGrid]
Expand Down Expand Up @@ -30972,11 +30971,6 @@ declare module DevExpress.ui.dxOverlay {
*/
export function baseZIndex(zIndex: number): void;
}
declare module DevExpress.ui.dxPager {
export type PagerAllPagesMode = 'all';
export type PagerDisplayMode = 'adaptive' | 'compact' | 'full';
export type PagerPageSize = 'all' | 'auto';
}
declare module DevExpress.ui.dxPivotGrid {
export type Cell = dxPivotGridPivotGridCell;
}
Expand Down
Loading

0 comments on commit 856ea80

Please sign in to comment.