UNPKG

4.59 kBTypeScriptView Raw
1import { ChangeDetectorRef } from '@angular/core';
2import * as i0 from '@angular/core';
3import * as i2 from '@angular/common';
4import * as i3 from '@angular/material/legacy-button';
5import * as i4 from '@angular/material/legacy-select';
6import * as i5 from '@angular/material/legacy-tooltip';
7import * as i6 from '@angular/material/core';
8import { InjectionToken } from '@angular/core';
9import { PageEvent as LegacyPageEvent } from '@angular/material/paginator';
10import { MAT_PAGINATOR_INTL_PROVIDER as MAT_LEGACY_PAGINATOR_INTL_PROVIDER } from '@angular/material/paginator';
11import { MAT_PAGINATOR_INTL_PROVIDER_FACTORY as MAT_LEGACY_PAGINATOR_INTL_PROVIDER_FACTORY } from '@angular/material/paginator';
12import { MatLegacyFormFieldAppearance } from '@angular/material/legacy-form-field';
13import { _MatPaginatorBase as _MatLegacyPaginatorBase } from '@angular/material/paginator';
14import { MatPaginatorIntl as MatLegacyPaginatorIntl } from '@angular/material/paginator';
15import { MatPaginatorSelectConfig as MatLegacyPaginatorSelectConfig } from '@angular/material/paginator';
16
17declare namespace i1 {
18 export {
19 MatLegacyPaginatorDefaultOptions,
20 MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS,
21 MatLegacyPaginator
22 }
23}
24
25export { LegacyPageEvent }
26
27/**
28 * Injection token that can be used to provide the default options for the paginator module.
29 * @deprecated Use `MAT_PAGINATOR_DEFAULT_OPTIONS` from `@angular/material/paginator` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
30 * @breaking-change 17.0.0
31 */
32export declare const MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS: InjectionToken<MatLegacyPaginatorDefaultOptions>;
33
34export { MAT_LEGACY_PAGINATOR_INTL_PROVIDER }
35
36export { MAT_LEGACY_PAGINATOR_INTL_PROVIDER_FACTORY }
37
38/**
39 * Component to provide navigation between paged information. Displays the size of the current
40 * page, user-selectable options to change that size, what items are being shown, and
41 * navigational button to go to the previous or next page.
42 * @deprecated Use `MatPaginator` from `@angular/material/paginator` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
43 * @breaking-change 17.0.0
44 */
45export declare class MatLegacyPaginator extends _MatLegacyPaginatorBase<MatLegacyPaginatorDefaultOptions> {
46 /** If set, styles the "page size" form field with the designated style. */
47 _formFieldAppearance?: MatLegacyFormFieldAppearance;
48 constructor(intl: MatLegacyPaginatorIntl, changeDetectorRef: ChangeDetectorRef, defaults?: MatLegacyPaginatorDefaultOptions);
49 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyPaginator, [null, null, { optional: true; }]>;
50 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyPaginator, "mat-paginator", ["matPaginator"], { "disabled": "disabled"; }, {}, never, never, false, never>;
51}
52
53export { _MatLegacyPaginatorBase }
54
55/**
56 * Object that can be used to configure the default options for the paginator module.
57 * @deprecated Use `MatPaginatorDefaultOptions` from `@angular/material/paginator` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
58 * @breaking-change 17.0.0
59 */
60export declare interface MatLegacyPaginatorDefaultOptions {
61 /** Number of items to display on a page. By default set to 50. */
62 pageSize?: number;
63 /** The set of provided page size options to display to the user. */
64 pageSizeOptions?: number[];
65 /** Whether to hide the page size selection UI from the user. */
66 hidePageSize?: boolean;
67 /** Whether to show the first/last buttons UI to the user. */
68 showFirstLastButtons?: boolean;
69 /** The default form-field appearance to apply to the page size options selector. */
70 formFieldAppearance?: MatLegacyFormFieldAppearance;
71}
72
73export { MatLegacyPaginatorIntl }
74
75/**
76 * @deprecated Use `MatPaginatorModule` from `@angular/material/paginator` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
77 * @breaking-change 17.0.0
78 */
79export declare class MatLegacyPaginatorModule {
80 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyPaginatorModule, never>;
81 static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyPaginatorModule, [typeof i1.MatLegacyPaginator], [typeof i2.CommonModule, typeof i3.MatLegacyButtonModule, typeof i4.MatLegacySelectModule, typeof i5.MatLegacyTooltipModule, typeof i6.MatCommonModule], [typeof i1.MatLegacyPaginator]>;
82 static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyPaginatorModule>;
83}
84
85export { MatLegacyPaginatorSelectConfig }
86
87export { }