@gettrx/core-components-angular 1.0.46 → 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.
@@ -1,13 +1,12 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormControl } from '@angular/forms';
3
- import { StylesStoreService } from '../../../services/styles-store.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class GtrInputColorComponent implements ControlValueAccessor, OnInit {
6
- private stylesStore;
7
5
  private readonly destroyRef;
8
6
  touched: boolean;
9
7
  inputControl: FormControl<string | null>;
10
8
  colorControl: FormControl<string | null>;
9
+ hasBorder: boolean;
11
10
  inputLabel: string;
12
11
  invalid: boolean;
13
12
  placeholder: string;
@@ -22,7 +21,7 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
22
21
  set inputValue(value: string);
23
22
  set colorValue(value: string);
24
23
  valueChange: EventEmitter<string>;
25
- constructor(stylesStore: StylesStoreService);
24
+ constructor();
26
25
  ngOnInit(): void;
27
26
  private onChange;
28
27
  private onTouched;
@@ -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.46",
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.46",
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",
@@ -1,26 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import { Inject, Injectable } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export class StylesStoreService {
5
- constructor() {
6
- this._document = document;
7
- }
8
- /**
9
- * Common method to set property
10
- * @param property
11
- * @param value
12
- */
13
- setDocumentStyleProperty(property, value) {
14
- this._document.documentElement.style.setProperty(property, value);
15
- }
16
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StylesStoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StylesStoreService, providedIn: 'root' }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StylesStoreService, decorators: [{
20
- type: Injectable,
21
- args: [{ providedIn: 'root' }]
22
- }], ctorParameters: function () { return []; }, propDecorators: { _document: [{
23
- type: Inject,
24
- args: [DOCUMENT]
25
- }] } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVzLXN0b3JlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvc3R5bGVzLXN0b3JlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUduRCxNQUFNLE9BQU8sa0JBQWtCO0lBRzdCO1FBQ0UsSUFBSSxDQUFDLFNBQVMsR0FBRyxRQUFRLENBQUM7SUFDNUIsQ0FBQztJQUVEOzs7O09BSUc7SUFDSSx3QkFBd0IsQ0FBQyxRQUFnQixFQUFFLEtBQWE7UUFDN0QsSUFBSSxDQUFDLFNBQVMsQ0FBQyxlQUFlLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxRQUFRLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDcEUsQ0FBQztrSUFkVSxrQkFBa0I7c0lBQWxCLGtCQUFrQixjQURMLE1BQU07OzRGQUNuQixrQkFBa0I7a0JBRDlCLFVBQVU7bUJBQUMsRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFOzBFQUVOLFNBQVM7c0JBQWxDLE1BQU07dUJBQUMsUUFBUSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERPQ1VNRU5UIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IEluamVjdCwgSW5qZWN0YWJsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIFN0eWxlc1N0b3JlU2VydmljZSB7XG4gIEBJbmplY3QoRE9DVU1FTlQpIHByaXZhdGUgX2RvY3VtZW50OiBEb2N1bWVudDtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICB0aGlzLl9kb2N1bWVudCA9IGRvY3VtZW50O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbW1vbiBtZXRob2QgdG8gc2V0IHByb3BlcnR5XG4gICAqIEBwYXJhbSBwcm9wZXJ0eVxuICAgKiBAcGFyYW0gdmFsdWVcbiAgICovXG4gIHB1YmxpYyBzZXREb2N1bWVudFN0eWxlUHJvcGVydHkocHJvcGVydHk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xuICAgIHRoaXMuX2RvY3VtZW50LmRvY3VtZW50RWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShwcm9wZXJ0eSwgdmFsdWUpO1xuICB9XG59XG4iXX0=
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class StylesStoreService {
3
- private _document;
4
- constructor();
5
- /**
6
- * Common method to set property
7
- * @param property
8
- * @param value
9
- */
10
- setDocumentStyleProperty(property: string, value: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<StylesStoreService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<StylesStoreService>;
13
- }