@gettrx/core-components-angular 1.0.36 → 1.0.37

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.
@@ -6,6 +6,6 @@ import * as i4 from "../../atoms/icon/gtr-icon.module";
6
6
  import * as i5 from "./helpers/pipes/validate-page/gtr-validate-page.pipe";
7
7
  export declare class GtrPaginationModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrPaginationModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<GtrPaginationModule, [typeof i1.GtrPaginationComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.GtrSelectModule, typeof i4.GtrIconModule, typeof i5.GtrValidatePagePipe], [typeof i1.GtrPaginationComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrPaginationModule, [typeof i1.GtrPaginationComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.GtrSelectModule, typeof i4.GtrIconModule, typeof i5.GtrValidatePagePipe, typeof i2.NgSwitch, typeof i2.NgSwitchCase, typeof i2.NgSwitchDefault], [typeof i1.GtrPaginationComponent]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<GtrPaginationModule>;
11
11
  }
@@ -5,3 +5,8 @@ export interface GtrPageEvent {
5
5
  totalCount: number;
6
6
  }
7
7
  export type GtrPage = string | number;
8
+ export type GtrPaginationOptions = {
9
+ type: GrtPaginationType;
10
+ hideLast: boolean;
11
+ };
12
+ export type GrtPaginationType = 'default' | 'flat';
@@ -1,7 +1,9 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { GtrPage, GtrPageEvent } from '../helpers/models/gtr-pagination.interface';
2
+ import { GtrPage, GtrPageEvent, GtrPaginationOptions } from '../helpers/models/gtr-pagination.interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GtrPaginationComponent implements OnInit, OnChanges {
5
+ /** [aria-label] have string type and its used to set the aria attribute for pagination component */
6
+ options: GtrPaginationOptions;
5
7
  /** identifier] for dom reference */
6
8
  identifier: string;
7
9
  /** [disabled] is type of boolean which is used to disable the pagination navigation */
@@ -59,7 +61,7 @@ export declare class GtrPaginationComponent implements OnInit, OnChanges {
59
61
  /** Listen to screen change events */
60
62
  onScreenResize(): void;
61
63
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrPaginationComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrPaginationComponent, "gtr-pagination", never, { "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>;
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>;
63
65
  static ngAcceptInputType_disabled: unknown;
64
66
  static ngAcceptInputType_showFirstLastButtons: unknown;
65
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
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.36"
23
+ "@gettrx/core-styles": "1.0.37"
24
24
  },
25
25
  "module": "fesm2022/gettrx-core-components-angular.mjs",
26
26
  "typings": "index.d.ts",