@gettrx/core-components-angular 1.0.0 → 1.0.1
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.
- package/esm2022/gettrx-core-components-angular.mjs +2 -2
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/badge.module.mjs +3 -3
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +2 -2
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.mjs +109 -0
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.mjs +18 -0
- package/esm2022/lib/atoms/custom-gtr-switch/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-switch/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.mjs +143 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.mjs +18 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/custom-input/custom-input.component.mjs +364 -0
- package/esm2022/lib/atoms/custom-input/custom-input.module.mjs +21 -0
- package/esm2022/lib/atoms/custom-input/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-input/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-input/utils/input-utils.mjs +26 -0
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.component.mjs +242 -0
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.module.mjs +21 -0
- package/esm2022/lib/atoms/custom-textarea/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-textarea/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-textarea/utils/gtr-textarea.types.mjs +9 -0
- package/esm2022/lib/atoms/popover/index.mjs +2 -0
- package/esm2022/lib/atoms/popover/popover.component.mjs +147 -0
- package/esm2022/lib/atoms/popover/popover.module.mjs +18 -0
- package/esm2022/lib/atoms/popover/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/index.mjs +2 -0
- package/esm2022/lib/atoms/radio-button/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +186 -0
- package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +19 -0
- package/esm2022/lib/atoms/skeleton/index.mjs +2 -0
- package/esm2022/lib/atoms/skeleton/public_api.mjs +4 -0
- package/esm2022/lib/atoms/skeleton/skeleton.module.mjs +20 -0
- package/esm2022/lib/molecules/accordion/accordion/accordion.component.mjs +108 -0
- package/esm2022/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.mjs +92 -0
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +21 -0
- package/esm2022/lib/molecules/accordion/index.mjs +2 -0
- package/esm2022/lib/molecules/accordion/public_api.mjs +4 -0
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.mjs +148 -0
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.mjs +18 -0
- package/esm2022/lib/molecules/custom-gtr-modal/index.mjs +2 -0
- package/esm2022/lib/molecules/custom-gtr-modal/public_api.mjs +3 -0
- package/esm2022/lib/molecules/stat-card/index.mjs +2 -0
- package/esm2022/lib/molecules/stat-card/public_api.mjs +3 -0
- package/esm2022/lib/molecules/stat-card/stat-card.component.mjs +135 -0
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +21 -0
- package/esm2022/public-api.mjs +24 -4
- package/fesm2022/gettrx-core-components-angular.mjs +4904 -3096
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/lib/atoms/badge/badge.module.d.ts +1 -1
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.d.ts +56 -0
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.d.ts +8 -0
- package/lib/atoms/custom-gtr-switch/index.d.ts +1 -0
- package/lib/atoms/custom-gtr-switch/public_api.d.ts +2 -0
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.d.ts +59 -0
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.d.ts +8 -0
- package/lib/atoms/custom-gtr-tooltip/index.d.ts +1 -0
- package/lib/atoms/custom-gtr-tooltip/public_api.d.ts +2 -0
- package/lib/atoms/custom-gtr-tooltip/utils/utils.d.ts +1 -0
- package/lib/atoms/custom-input/custom-input.component.d.ts +161 -0
- package/lib/atoms/custom-input/custom-input.module.d.ts +10 -0
- package/lib/atoms/custom-input/index.d.ts +1 -0
- package/lib/atoms/custom-input/public_api.d.ts +2 -0
- package/lib/atoms/custom-input/utils/input-utils.d.ts +30 -0
- package/lib/atoms/custom-textarea/custom-textarea.component.d.ts +112 -0
- package/lib/atoms/custom-textarea/custom-textarea.module.d.ts +10 -0
- package/lib/atoms/custom-textarea/index.d.ts +1 -0
- package/lib/atoms/custom-textarea/public_api.d.ts +2 -0
- package/lib/atoms/custom-textarea/utils/gtr-textarea.types.d.ts +12 -0
- package/lib/atoms/popover/index.d.ts +1 -0
- package/lib/atoms/popover/popover.component.d.ts +35 -0
- package/lib/atoms/popover/popover.module.d.ts +8 -0
- package/lib/atoms/popover/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/index.d.ts +1 -0
- package/lib/atoms/radio-button/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/radio-button.component.d.ts +89 -0
- package/lib/atoms/radio-button/radio-button.module.d.ts +9 -0
- package/lib/atoms/skeleton/index.d.ts +1 -0
- package/lib/atoms/skeleton/public_api.d.ts +3 -0
- package/lib/atoms/skeleton/skeleton.module.d.ts +9 -0
- package/lib/molecules/accordion/accordion/accordion.component.d.ts +59 -0
- package/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.d.ts +37 -0
- package/lib/molecules/accordion/accordion.module.d.ts +11 -0
- package/lib/molecules/accordion/index.d.ts +1 -0
- package/lib/molecules/accordion/public_api.d.ts +3 -0
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.d.ts +75 -0
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.d.ts +8 -0
- package/lib/molecules/custom-gtr-modal/index.d.ts +1 -0
- package/lib/molecules/custom-gtr-modal/public_api.d.ts +2 -0
- package/lib/molecules/stat-card/index.d.ts +1 -0
- package/lib/molecules/stat-card/public_api.d.ts +2 -0
- package/lib/molecules/stat-card/stat-card.component.d.ts +56 -0
- package/lib/molecules/stat-card/stat-card.module.d.ts +11 -0
- package/package.json +2 -2
- package/public-api.d.ts +20 -3
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RadioButtonComponent implements OnInit, AfterViewInit, ControlValueAccessor {
|
|
5
|
+
ngControl: NgControl;
|
|
6
|
+
radioEl: ElementRef;
|
|
7
|
+
constructor(ngControl: NgControl, radioEl: ElementRef);
|
|
8
|
+
onChanged: any;
|
|
9
|
+
onTouched: any;
|
|
10
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
11
|
+
writeValue(obj: any): void;
|
|
12
|
+
registerOnTouched(fn: () => void): void;
|
|
13
|
+
/**
|
|
14
|
+
* The radio input value
|
|
15
|
+
*/
|
|
16
|
+
value: string;
|
|
17
|
+
/**
|
|
18
|
+
* The radio input disabled state
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The radio input checked state
|
|
23
|
+
*/
|
|
24
|
+
checked: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The radio input label
|
|
27
|
+
*/
|
|
28
|
+
label?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The radio input tabindex
|
|
31
|
+
*/
|
|
32
|
+
tabIndexNav?: number;
|
|
33
|
+
/**
|
|
34
|
+
* The radio input template id
|
|
35
|
+
*/
|
|
36
|
+
templateId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The radio input value changed eventemitter
|
|
39
|
+
*/
|
|
40
|
+
valueChanged: EventEmitter<any>;
|
|
41
|
+
/**
|
|
42
|
+
* The radio input id
|
|
43
|
+
*/
|
|
44
|
+
radioId: string;
|
|
45
|
+
/**
|
|
46
|
+
* The radio input id
|
|
47
|
+
*/
|
|
48
|
+
groupName: string;
|
|
49
|
+
/**
|
|
50
|
+
* The componentDidLoad hook
|
|
51
|
+
*/
|
|
52
|
+
ngAfterViewInit(): void;
|
|
53
|
+
/**
|
|
54
|
+
* The decorator is used to select value via keyboard
|
|
55
|
+
*/
|
|
56
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
57
|
+
/**
|
|
58
|
+
* The component function for toggle radio checked state
|
|
59
|
+
*/
|
|
60
|
+
handleClick(): void;
|
|
61
|
+
/**
|
|
62
|
+
* The component function for toggle radio checked state
|
|
63
|
+
*/
|
|
64
|
+
toggleCheckedState(): void;
|
|
65
|
+
/**
|
|
66
|
+
* The component function for selecting previous radio element
|
|
67
|
+
*/
|
|
68
|
+
selectPreviousOption(): void;
|
|
69
|
+
/**
|
|
70
|
+
* The component function for check the active element
|
|
71
|
+
*/
|
|
72
|
+
isElementFocused: (element: any) => boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The component function for selecting next radio element
|
|
75
|
+
*/
|
|
76
|
+
selectNextOption(): void;
|
|
77
|
+
/**
|
|
78
|
+
* The component function for deselect unchecked values
|
|
79
|
+
*/
|
|
80
|
+
deselectOtherOptions(): void;
|
|
81
|
+
/**
|
|
82
|
+
* The component function for set changed value and send selected value via eventemitter
|
|
83
|
+
*/
|
|
84
|
+
handleChange(event?: any): void;
|
|
85
|
+
detectEnter(e: any): void;
|
|
86
|
+
ngOnInit(): void;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [{ optional: true; self: true; }, null]>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "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; }; "templateId": { "alias": "templateId"; "required": false; }; "radioId": { "alias": "radioId"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, [".grt-info"], false, never>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./radio-button.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class RadioButtonhModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonhModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioButtonhModule, [typeof i1.RadioButtonComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.RadioButtonComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RadioButtonhModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./skeleton.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "./utils/skeleton.directive";
|
|
5
|
+
export declare class SkeletonModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkeletonModule, [typeof i1.SkeletonComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective], [typeof i1.SkeletonComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkeletonModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AccordionComponent {
|
|
4
|
+
/**
|
|
5
|
+
* The accordion title
|
|
6
|
+
*/
|
|
7
|
+
header: string;
|
|
8
|
+
/**
|
|
9
|
+
* The accordion status
|
|
10
|
+
*/
|
|
11
|
+
status: any;
|
|
12
|
+
id: string;
|
|
13
|
+
testId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The accordion content container class
|
|
16
|
+
*/
|
|
17
|
+
justifyContent: string;
|
|
18
|
+
/**
|
|
19
|
+
* The icon prefix url
|
|
20
|
+
*/
|
|
21
|
+
prefixIcon: string;
|
|
22
|
+
/**
|
|
23
|
+
* The accordion open state
|
|
24
|
+
*/
|
|
25
|
+
opened: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The accordion icon size
|
|
28
|
+
*/
|
|
29
|
+
iconSize: number;
|
|
30
|
+
/**
|
|
31
|
+
* The accordion icon color
|
|
32
|
+
*/
|
|
33
|
+
iconColor: string;
|
|
34
|
+
/**
|
|
35
|
+
* The accordion icon font-weight
|
|
36
|
+
*/
|
|
37
|
+
iconWeight: string;
|
|
38
|
+
/**
|
|
39
|
+
* The accordion state for allow multiple active accordion sessions
|
|
40
|
+
*/
|
|
41
|
+
allowMultiple: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The accordion state for expand all accordion sessions
|
|
44
|
+
*/
|
|
45
|
+
expandAll: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The accordion arrow icon boolean
|
|
48
|
+
*/
|
|
49
|
+
showArrowIcon: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The accordion data eventemitter
|
|
52
|
+
*/
|
|
53
|
+
accordionState: EventEmitter<any>;
|
|
54
|
+
constructor();
|
|
55
|
+
toggleSection(): void;
|
|
56
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "gtr-accordion", never, { "header": { "alias": "header"; "required": false; }; "status": { "alias": "status"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "justifyContent": { "alias": "justifyContent"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconWeight": { "alias": "iconWeight"; "required": false; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; }; "expandAll": { "alias": "expandAll"; "required": false; }; "showArrowIcon": { "alias": "showArrowIcon"; "required": false; }; }, { "accordionState": "accordionState"; }, never, ["*"], false, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { AccordionComponent } from '../accordion/accordion.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AccordionWrapperComponent {
|
|
5
|
+
/**
|
|
6
|
+
* The accordion wrapper data eventemitter
|
|
7
|
+
*/
|
|
8
|
+
accordionStateChanged: EventEmitter<any>;
|
|
9
|
+
/**
|
|
10
|
+
* The accordion wrapper multiple active screens boolean
|
|
11
|
+
*/
|
|
12
|
+
allowMultiple: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The accordion wrapper identifier
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The accordion wrapper testing identifier
|
|
19
|
+
*/
|
|
20
|
+
testId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The accordion wrapper expand boolean
|
|
23
|
+
*/
|
|
24
|
+
expandAll: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The accordion wrapper for show arrow icons at end
|
|
27
|
+
*/
|
|
28
|
+
showArrowIcon: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The accordion list from child component
|
|
31
|
+
*/
|
|
32
|
+
accordions: QueryList<AccordionComponent>;
|
|
33
|
+
ngAfterContentInit(): void;
|
|
34
|
+
toggleAccordion(selectedAccordion: AccordionComponent): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionWrapperComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionWrapperComponent, "gtr-accordion-wrapper", never, { "allowMultiple": { "alias": "allowMultiple"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "expandAll": { "alias": "expandAll"; "required": false; }; "showArrowIcon": { "alias": "showArrowIcon"; "required": false; }; }, { "accordionStateChanged": "accordionStateChanged"; }, ["accordions"], ["*"], false, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./accordion/accordion.component";
|
|
3
|
+
import * as i2 from "./accordion-wrapper/accordion-wrapper.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../../atoms/icon/icon.module";
|
|
6
|
+
import * as i5 from "../../atoms/badge/badge.module";
|
|
7
|
+
export declare class AccordionModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AccordionModule, [typeof i1.AccordionComponent, typeof i2.AccordionWrapperComponent], [typeof i3.CommonModule, typeof i4.GtrIconModule, typeof i5.BadgeModule], [typeof i1.AccordionComponent, typeof i2.AccordionWrapperComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AccordionModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomGtrModalComponent implements AfterViewInit, ControlValueAccessor {
|
|
5
|
+
ngControl: NgControl;
|
|
6
|
+
/**
|
|
7
|
+
* The modal element
|
|
8
|
+
*/
|
|
9
|
+
modalElement?: ElementRef;
|
|
10
|
+
/**
|
|
11
|
+
* The listen decorator used to close modal via keyboard
|
|
12
|
+
*/
|
|
13
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
14
|
+
constructor(ngControl: NgControl);
|
|
15
|
+
ngAfterViewInit(): void;
|
|
16
|
+
writeValue(obj: any): void;
|
|
17
|
+
registerOnChange(fn: any): void;
|
|
18
|
+
registerOnTouched(fn: any): void;
|
|
19
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
20
|
+
/**
|
|
21
|
+
* The modal open state
|
|
22
|
+
*/
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The modal position
|
|
26
|
+
*/
|
|
27
|
+
modalPosition: 'top' | 'bottom' | 'center';
|
|
28
|
+
/**
|
|
29
|
+
* The modal position
|
|
30
|
+
*/
|
|
31
|
+
modalId: string;
|
|
32
|
+
/**
|
|
33
|
+
* The modal size
|
|
34
|
+
*/
|
|
35
|
+
modalSize: 'small' | 'medium' | 'large';
|
|
36
|
+
/**
|
|
37
|
+
* The modal scroll
|
|
38
|
+
*/
|
|
39
|
+
scrollType: 'scroll-body' | 'scroll-content';
|
|
40
|
+
/**
|
|
41
|
+
* The modal header
|
|
42
|
+
*/
|
|
43
|
+
header: string;
|
|
44
|
+
/**
|
|
45
|
+
* The modal header
|
|
46
|
+
*/
|
|
47
|
+
hasHeading: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The modal action eventemitter
|
|
50
|
+
*/
|
|
51
|
+
closeModal: EventEmitter<void>;
|
|
52
|
+
/**
|
|
53
|
+
* The connectedCallback hook
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* The disconnectedCallback hook
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* The component funtion used to handle click on modal overlay
|
|
60
|
+
*/
|
|
61
|
+
handleOverlayClick(event: MouseEvent): void;
|
|
62
|
+
/**
|
|
63
|
+
* The componentDidUpdate hook
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* The component funtion used to set focus on modal
|
|
67
|
+
*/
|
|
68
|
+
setFocusToModal(): void;
|
|
69
|
+
/**
|
|
70
|
+
* The component funtion used to set close modal
|
|
71
|
+
*/
|
|
72
|
+
handleCloseModal(): void;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrModalComponent, [{ optional: true; self: true; }]>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGtrModalComponent, "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, ["[modal-body]", "[modal-actions]"], false, never>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-gtr-modal.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CustomGtrModalModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrModalModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrModalModule, [typeof i1.CustomGtrModalComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrModalComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrModalModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
declare const enum EStatCardDate {
|
|
4
|
+
today = "Today",
|
|
5
|
+
last7Days = "Last 7 days",
|
|
6
|
+
last14Days = "Last 14 days",
|
|
7
|
+
last30Days = "Last 30 days",
|
|
8
|
+
currentMonth = "Current Month",
|
|
9
|
+
lastMonth = "Last Month",
|
|
10
|
+
custom = "Custom"
|
|
11
|
+
}
|
|
12
|
+
export declare class StatCardComponent {
|
|
13
|
+
private renderer;
|
|
14
|
+
iconContainer?: ElementRef;
|
|
15
|
+
labelContainer?: ElementRef;
|
|
16
|
+
showSkeletonLoading: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Stats
|
|
19
|
+
*/
|
|
20
|
+
title: string;
|
|
21
|
+
displayValue: string | number;
|
|
22
|
+
value: string | number;
|
|
23
|
+
iconName: string;
|
|
24
|
+
isDangerCard: string | boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Percentage
|
|
27
|
+
**/
|
|
28
|
+
enabledPercentage: string | boolean;
|
|
29
|
+
percentage: number;
|
|
30
|
+
isPercentageTrendUp: string | boolean;
|
|
31
|
+
statsCardId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Date Select
|
|
34
|
+
*/
|
|
35
|
+
enabledDateSelect: string | boolean;
|
|
36
|
+
dateOptions: EStatCardDate[] | string[];
|
|
37
|
+
set dateSelected(dateSelected: EStatCardDate | string);
|
|
38
|
+
get dateSelected(): EStatCardDate | string;
|
|
39
|
+
private _dateSelected;
|
|
40
|
+
dateSelectedChange: EventEmitter<string>;
|
|
41
|
+
dateSelectOptions?: ElementRef;
|
|
42
|
+
constructor(renderer: Renderer2);
|
|
43
|
+
/**
|
|
44
|
+
* Methods
|
|
45
|
+
*/
|
|
46
|
+
openDateSelect(): void;
|
|
47
|
+
closeDateSelect(): void;
|
|
48
|
+
dateSelectedChangeEvent(date: EStatCardDate | string): void;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatCardComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatCardComponent, "app-stat-card", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "title": { "alias": "title"; "required": true; }; "displayValue": { "alias": "displayValue"; "required": true; }; "value": { "alias": "value"; "required": true; }; "iconName": { "alias": "iconName"; "required": false; }; "isDangerCard": { "alias": "isDangerCard"; "required": false; }; "enabledPercentage": { "alias": "enabledPercentage"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "isPercentageTrendUp": { "alias": "isPercentageTrendUp"; "required": false; }; "statsCardId": { "alias": "statsCardId"; "required": false; }; "enabledDateSelect": { "alias": "enabledDateSelect"; "required": false; }; "dateOptions": { "alias": "dateOptions"; "required": false; }; "dateSelected": { "alias": "dateSelected"; "required": false; }; }, { "dateSelectedChange": "dateSelectedChange"; }, never, never, false, never>;
|
|
51
|
+
static ngAcceptInputType_isDangerCard: unknown;
|
|
52
|
+
static ngAcceptInputType_enabledPercentage: unknown;
|
|
53
|
+
static ngAcceptInputType_isPercentageTrendUp: unknown;
|
|
54
|
+
static ngAcceptInputType_enabledDateSelect: unknown;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stat-card.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../atoms/skeleton/utils/skeleton.directive";
|
|
6
|
+
import * as i5 from "../../atoms/icon/icon.module";
|
|
7
|
+
export declare class StatCardModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatCardModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StatCardModule, [typeof i1.StatCardComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.SkeletonDirective, typeof i5.GtrIconModule], [typeof i1.StatCardComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StatCardModule>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gettrx/core-components-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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-components": "1.0.
|
|
23
|
+
"@gettrx/core-components": "1.0.1"
|
|
24
24
|
},
|
|
25
25
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
|
26
26
|
"typings": "index.d.ts",
|
package/public-api.d.ts
CHANGED
|
@@ -5,10 +5,27 @@ export { GettrxModule } from './gettrx-module';
|
|
|
5
5
|
export * from './lib/atoms/gtr.types';
|
|
6
6
|
export * from './lib/atoms/badge';
|
|
7
7
|
export * from './lib/atoms/button';
|
|
8
|
+
export * from './lib/atoms/custom-button';
|
|
9
|
+
export * from './lib/atoms/custom-gtr-switch';
|
|
10
|
+
export * from './lib/atoms/custom-gtr-tooltip';
|
|
11
|
+
export * from './lib/atoms/custom-input';
|
|
12
|
+
export * from './lib/atoms/custom-textarea';
|
|
13
|
+
export * from './lib/atoms/icon';
|
|
14
|
+
export * from './lib/atoms/popover';
|
|
15
|
+
export * from './lib/atoms/radio-button';
|
|
16
|
+
export * from './lib/atoms/skeleton';
|
|
17
|
+
export * from './lib/molecules/accordion';
|
|
18
|
+
export * from './lib/molecules/calendar';
|
|
19
|
+
export * from './lib/molecules/checkbox';
|
|
20
|
+
export * from './lib/molecules/custom-gtr-modal';
|
|
8
21
|
export * from './lib/molecules/date-picker';
|
|
9
22
|
export * from './lib/molecules/date-range-picker';
|
|
10
|
-
export * from './lib/molecules/
|
|
11
|
-
export * from './lib/molecules/numeric-counter';
|
|
12
|
-
export * from './lib/molecules/checkbox';
|
|
23
|
+
export * from './lib/molecules/dropdown';
|
|
13
24
|
export * from './lib/molecules/file-input';
|
|
25
|
+
export * from './lib/molecules/form';
|
|
26
|
+
export * from './lib/molecules/numeric-counter';
|
|
27
|
+
export * from './lib/molecules/pagination';
|
|
14
28
|
export * from './lib/molecules/select';
|
|
29
|
+
export * from './lib/molecules/shared';
|
|
30
|
+
export * from './lib/molecules/stat-card';
|
|
31
|
+
export * from './lib/molecules/time-picker';
|