@gettrx/core-components-angular 1.0.47 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,10 +3,13 @@ export interface GtrPageEvent {
3
3
  pageIndex: number;
4
4
  pageSize: number;
5
5
  totalCount: number;
6
+ nextPageToken?: string | null;
7
+ prevPageToken?: string | null;
8
+ currentPageToken?: string | null;
6
9
  }
7
10
  export type GtrPage = string | number;
8
11
  export type GtrPaginationOptions = {
9
12
  type: GrtPaginationType;
10
13
  hideLast: boolean;
11
14
  };
12
- export type GrtPaginationType = 'default' | 'flat';
15
+ export type GrtPaginationType = 'default' | 'flat' | 'token';
@@ -25,6 +25,12 @@ export declare class GtrPaginationComponent implements OnInit, OnChanges {
25
25
  pageIndex: number;
26
26
  /** [aria-label] have string type and its used to set the aria attribute for pagination component */
27
27
  ariaLabel: string;
28
+ /** Next result token used for token pagination */
29
+ nextPageToken: string | null;
30
+ /** Previous page token used for token pagination */
31
+ prevPageToken: string | null;
32
+ /** Current page token used for token pagination */
33
+ currentPageToken: string | null;
28
34
  /**
29
35
  * (pageEvent) When the user interacts with the paginator, a pageEvent will be fired that can be used to update any associated data view.
30
36
  */
@@ -54,14 +60,15 @@ export declare class GtrPaginationComponent implements OnInit, OnChanges {
54
60
  * To set total pages
55
61
  */
56
62
  private _setTotalPages;
57
- /** changePage is a private function which is used to send page event to the consuming component */
63
+ /** changePage method which is used to send page event to the consuming component */
64
+ changeTokenPagination(token: string | null): void;
58
65
  changePage(currentPage: GtrPage): void;
59
66
  /** Change page size option */
60
67
  onPageSizeChange(value: number): void;
61
68
  /** Listen to screen change events */
62
69
  onScreenResize(): void;
63
70
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrPaginationComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrPaginationComponent, "gtr-pagination", never, { "options": { "alias": "options"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "pageEvent": "pageEvent"; "getNumberOfPages": "getNumberOfPages"; }, never, never, false, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrPaginationComponent, "gtr-pagination", never, { "options": { "alias": "options"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "nextPageToken": { "alias": "nextPageToken"; "required": false; }; "prevPageToken": { "alias": "prevPageToken"; "required": false; }; "currentPageToken": { "alias": "currentPageToken"; "required": false; }; }, { "pageEvent": "pageEvent"; "getNumberOfPages": "getNumberOfPages"; }, never, never, false, never>;
65
72
  static ngAcceptInputType_disabled: unknown;
66
73
  static ngAcceptInputType_showFirstLastButtons: unknown;
67
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -20,7 +20,7 @@
20
20
  "peerDependencies": {
21
21
  "@angular/common": "^16.1.0",
22
22
  "@angular/core": "^16.1.0",
23
- "@gettrx/core-styles": "1.0.47",
23
+ "@gettrx/core-styles": "1.0.48",
24
24
  "ngx-colors": "^3.6.0"
25
25
  },
26
26
  "module": "fesm2022/gettrx-core-components-angular.mjs",