@gettrx/core-components-angular 1.0.4 → 1.0.6

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.
Files changed (37) hide show
  1. package/esm2022/generated/text-value-accessor.mjs +3 -3
  2. package/esm2022/lib/atoms/popover/gtr-popover.component.mjs +10 -7
  3. package/esm2022/lib/atoms/radio-button/gtr-radio-button.component.mjs +7 -5
  4. package/esm2022/lib/atoms/toaster/gtr-toaster.component.mjs +85 -0
  5. package/esm2022/lib/atoms/toaster/gtr-toaster.module.mjs +22 -0
  6. package/esm2022/lib/atoms/toaster/index.mjs +2 -0
  7. package/esm2022/lib/atoms/toaster/public_api.mjs +4 -0
  8. package/esm2022/lib/atoms/toaster/services/gtr-toaster.service.mjs +56 -0
  9. package/esm2022/lib/atoms/toaster/util/gtr-toaster.util.mjs +2 -0
  10. package/esm2022/lib/molecules/modal/gtr-modal.component.mjs +7 -5
  11. package/esm2022/lib/molecules/tabs/gtr-tabs.module.mjs +19 -0
  12. package/esm2022/lib/molecules/tabs/index.mjs +2 -0
  13. package/esm2022/lib/molecules/tabs/public_api.mjs +4 -0
  14. package/esm2022/lib/molecules/tabs/tab/gtr-tab.component.mjs +34 -0
  15. package/esm2022/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.mjs +92 -0
  16. package/esm2022/lib/molecules/time-picker/public_api.mjs +2 -1
  17. package/esm2022/public-api.mjs +3 -3
  18. package/fesm2022/gettrx-core-components-angular.mjs +302 -16
  19. package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
  20. package/generated/text-value-accessor.d.ts +1 -1
  21. package/lib/atoms/popover/gtr-popover.component.d.ts +3 -0
  22. package/lib/atoms/radio-button/gtr-radio-button.component.d.ts +2 -0
  23. package/lib/atoms/toaster/gtr-toaster.component.d.ts +27 -0
  24. package/lib/atoms/toaster/gtr-toaster.module.d.ts +10 -0
  25. package/lib/atoms/toaster/index.d.ts +1 -0
  26. package/lib/atoms/toaster/public_api.d.ts +3 -0
  27. package/lib/atoms/toaster/services/gtr-toaster.service.d.ts +14 -0
  28. package/lib/atoms/toaster/util/gtr-toaster.util.d.ts +13 -0
  29. package/lib/molecules/modal/gtr-modal.component.d.ts +2 -0
  30. package/lib/molecules/tabs/gtr-tabs.module.d.ts +9 -0
  31. package/lib/molecules/tabs/index.d.ts +1 -0
  32. package/lib/molecules/tabs/public_api.d.ts +3 -0
  33. package/lib/molecules/tabs/tab/gtr-tab.component.d.ts +16 -0
  34. package/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.d.ts +23 -0
  35. package/lib/molecules/time-picker/public_api.d.ts +1 -0
  36. package/package.json +3 -3
  37. package/public-api.d.ts +2 -0
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  export declare class TextValueAccessor extends ValueAccessor {
5
5
  constructor(el: ElementRef);
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessor, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "gtr-input, gtr-textarea, gtr-select", never, {}, {}, never, never, false, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "gtr2-input, gtr2-textarea, gtr2-select", never, {}, {}, never, never, false, never>;
8
8
  }
@@ -32,4 +32,7 @@ export declare class GtrPopoverComponent implements OnInit {
32
32
  adjustPopoverPosition(): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrPopoverComponent, never>;
34
34
  static ɵcmp: i0.ɵɵComponentDeclaration<GtrPopoverComponent, "gtr-popover", never, { "position": { "alias": "position"; "required": false; }; "isOpened": { "alias": "isOpened"; "required": false; }; "showPositionIndicator": { "alias": "showPositionIndicator"; "required": false; }; "moveX": { "alias": "moveX"; "required": false; }; "moveY": { "alias": "moveY"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "closeOnClickOutside": { "alias": "closeOnClickOutside"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "stateChanged": "stateChanged"; }, never, ["[slot='gtr-popover-trigger']", "[slot='gtr-popover-content']"], false, never>;
35
+ static ngAcceptInputType_isOpened: unknown;
36
+ static ngAcceptInputType_showPositionIndicator: unknown;
37
+ static ngAcceptInputType_closeOnClickOutside: unknown;
35
38
  }
@@ -82,4 +82,6 @@ export declare class GtrRadioButtonComponent implements OnInit, AfterViewInit, C
82
82
  ngOnInit(): void;
83
83
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrRadioButtonComponent, [{ optional: true; self: true; }, null]>;
84
84
  static ɵcmp: i0.ɵɵComponentDeclaration<GtrRadioButtonComponent, "gtr-radio-button", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "label": { "alias": "label"; "required": false; }; "tabIndexNav": { "alias": "tabIndexNav"; "required": false; }; "radioId": { "alias": "radioId"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, ["[slot='grt-info']"], false, never>;
85
+ static ngAcceptInputType_disabled: unknown;
86
+ static ngAcceptInputType_checked: unknown;
85
87
  }
@@ -0,0 +1,27 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { GtrToasterEvent } from './util/gtr-toaster.util';
3
+ import { Subscription } from 'rxjs';
4
+ import { GtrToasterService } from './services/gtr-toaster.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class GtrToasterComponent {
7
+ private toasterV2Service;
8
+ id: string;
9
+ testId: string;
10
+ toasterElement?: ElementRef<HTMLDivElement>;
11
+ duration: number;
12
+ toasterData: GtrToasterEvent;
13
+ open: boolean;
14
+ timeout: any;
15
+ resolvePromise: (data?: any) => void;
16
+ toastSubscription: Subscription;
17
+ constructor(toasterV2Service: GtrToasterService);
18
+ ngOnInit(): void;
19
+ ngOnDestroy(): void;
20
+ showToast(config: any, duration: number, data?: any): Promise<any>;
21
+ scheduleHideToast(duration: number): void;
22
+ hideToast(): void;
23
+ handleKeyDown(event: KeyboardEvent): void;
24
+ subscribeToToasts(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrToasterComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrToasterComponent, "gtr-toaster", never, { "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, false, never>;
27
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./gtr-toaster.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../icon/gtr-icon.module";
5
+ import * as i4 from "../badge/gtr-badge.module";
6
+ export declare class GtrToasterModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrToasterModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrToasterModule, [typeof i1.GtrToasterComponent], [typeof i2.CommonModule, typeof i3.GtrIconModule, typeof i4.GtrBadgeModule], [typeof i1.GtrToasterComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<GtrToasterModule>;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,3 @@
1
+ export { GtrToasterComponent } from './gtr-toaster.component';
2
+ export { GtrToasterModule } from './gtr-toaster.module';
3
+ export { GtrToasterService } from './services/gtr-toaster.service';
@@ -0,0 +1,14 @@
1
+ import { Subject } from 'rxjs';
2
+ import { GtrToasterEvent } from '../util/gtr-toaster.util';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GtrToasterService {
5
+ private toastSubject;
6
+ showToast(config?: GtrToasterEvent, duration?: number, data?: any): void;
7
+ showError(message?: string, duration?: number): void;
8
+ showSuccess(message?: string, duration?: number): void;
9
+ showWarning(message?: string, duration?: number): void;
10
+ showInfo(message?: string, duration?: number): void;
11
+ getToastSubject(): Subject<any>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrToasterService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<GtrToasterService>;
14
+ }
@@ -0,0 +1,13 @@
1
+ export type RGB = `rgb(${number}, ${number}, ${number})`;
2
+ export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
3
+ export type HEX = `#${string}`;
4
+ export type GtrToasterType = 'success' | 'warning' | 'info' | 'error';
5
+ export interface GtrToasterEvent {
6
+ heading: string;
7
+ type: GtrToasterType;
8
+ message?: string;
9
+ backgroundColor?: RGB | RGBA | HEX;
10
+ color?: RGB | RGBA | HEX;
11
+ messageColor?: RGB | RGBA | HEX;
12
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center-right' | 'center-left';
13
+ }
@@ -72,4 +72,6 @@ export declare class GtrModalComponent implements AfterViewInit, ControlValueAcc
72
72
  handleCloseModal(): void;
73
73
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrModalComponent, [{ optional: true; self: true; }]>;
74
74
  static ɵcmp: i0.ɵɵComponentDeclaration<GtrModalComponent, "gtr-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "modalPosition": { "alias": "modalPosition"; "required": false; }; "modalId": { "alias": "modalId"; "required": false; }; "modalSize": { "alias": "modalSize"; "required": false; }; "scrollType": { "alias": "scrollType"; "required": false; }; "header": { "alias": "header"; "required": false; }; "hasHeading": { "alias": "hasHeading"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["[slot='modal-body']", "[slot='modal-actions']"], false, never>;
75
+ static ngAcceptInputType_isOpen: unknown;
76
+ static ngAcceptInputType_hasHeading: unknown;
75
77
  }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tab/gtr-tab.component";
3
+ import * as i2 from "./tabs-wrapper/gtr-tabs-wrapper.component";
4
+ import * as i3 from "@angular/common";
5
+ export declare class GtrTabsModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabsModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrTabsModule, [typeof i1.GtrTabComponent, typeof i2.GtrTabsWrapperComponent], [typeof i3.CommonModule], [typeof i1.GtrTabComponent, typeof i2.GtrTabsWrapperComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<GtrTabsModule>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,3 @@
1
+ export { GtrTabComponent } from './tab/gtr-tab.component';
2
+ export { GtrTabsWrapperComponent } from './tabs-wrapper/gtr-tabs-wrapper.component';
3
+ export { GtrTabsModule } from './gtr-tabs.module';
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GtrTabComponent {
4
+ label: string;
5
+ active: boolean;
6
+ disabled: boolean;
7
+ tabChange: EventEmitter<any>;
8
+ private _activeTab;
9
+ constructor();
10
+ set activeTab(activeTab: {
11
+ activeTab: GtrTabComponent | GtrTabComponent[];
12
+ index: number;
13
+ } | null);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTabComponent, "gtr-tab", never, { "label": { "alias": "label"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "tabChange": "tabChange"; }, never, ["*"], false, never>;
16
+ }
@@ -0,0 +1,23 @@
1
+ import { ElementRef, EventEmitter, QueryList } from '@angular/core';
2
+ import { GtrTabComponent } from '../tab/gtr-tab.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GtrTabsWrapperComponent {
5
+ tabs: QueryList<GtrTabComponent>;
6
+ position: 'start' | 'end' | 'center' | 'fill';
7
+ id: string;
8
+ testId: string;
9
+ tabScrollContainerRef: ElementRef;
10
+ tabScrollListRef: ElementRef;
11
+ tabChanges: EventEmitter<any>;
12
+ get tabsContainerClass(): string;
13
+ get tabsWrapperClass(): string;
14
+ get tabListLength(): number;
15
+ ngOnInit(): void;
16
+ ngAfterContentInit(): void;
17
+ ngAfterViewInit(): void;
18
+ selectTab(selectedTab: GtrTabComponent): void;
19
+ onTabListScroll(): void;
20
+ isScrollable(element: HTMLElement): boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabsWrapperComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTabsWrapperComponent, "gtr-tabs-wrapper", never, { "position": { "alias": "position"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "tabChanges": "tabChanges"; }, ["tabs"], ["*"], false, never>;
23
+ }
@@ -1,2 +1,3 @@
1
1
  export { GtrTimePickerComponent } from './gtr-time-picker.component';
2
2
  export { GtrTimePickerModule } from './gtr-time-picker.module';
3
+ export * from './gtr-time.utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -20,8 +20,8 @@
20
20
  "peerDependencies": {
21
21
  "@angular/common": "^16.1.0",
22
22
  "@angular/core": "^16.1.0",
23
- "@gettrx/core-components": "1.0.4",
24
- "@gettrx/core-styles": "1.0.4"
23
+ "@gettrx/core-components": "1.0.6",
24
+ "@gettrx/core-styles": "1.0.6"
25
25
  },
26
26
  "module": "fesm2022/gettrx-core-components-angular.mjs",
27
27
  "typings": "index.d.ts",
package/public-api.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './lib/atoms/icon';
14
14
  export * from './lib/atoms/popover';
15
15
  export * from './lib/atoms/radio-button';
16
16
  export * from './lib/atoms/skeleton';
17
+ export * from './lib/atoms/toaster';
17
18
  export * from './lib/molecules/accordion';
18
19
  export * from './lib/molecules/calendar';
19
20
  export * from './lib/molecules/checkbox';
@@ -28,4 +29,5 @@ export * from './lib/molecules/pagination';
28
29
  export * from './lib/molecules/select';
29
30
  export * from './lib/molecules/shared';
30
31
  export * from './lib/molecules/stat-card';
32
+ export * from './lib/molecules/tabs';
31
33
  export * from './lib/molecules/time-picker';