@gettrx/core-components-angular 1.0.0 → 1.0.2

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 (166) hide show
  1. package/esm2022/gettrx-core-components-angular.mjs +2 -2
  2. package/esm2022/index.mjs +2 -0
  3. package/esm2022/lib/atoms/badge/badge.component.mjs +3 -3
  4. package/esm2022/lib/atoms/badge/badge.module.mjs +6 -6
  5. package/esm2022/lib/atoms/button/button.component.mjs +60 -0
  6. package/esm2022/lib/atoms/button/button.module.mjs +9 -7
  7. package/esm2022/lib/atoms/button/index.mjs +3 -2
  8. package/esm2022/lib/atoms/button/utils/utils.mjs +2 -0
  9. package/esm2022/lib/atoms/{button → button-directive}/button-close.directive.mjs +1 -1
  10. package/esm2022/lib/atoms/button-directive/button-directive.module.mjs +17 -0
  11. package/esm2022/lib/atoms/button-directive/button.directive.mjs +102 -0
  12. package/esm2022/lib/atoms/button-directive/index.mjs +2 -0
  13. package/esm2022/lib/atoms/button-directive/public_api.mjs +4 -0
  14. package/esm2022/lib/atoms/icon/icon.component.mjs +14 -8
  15. package/esm2022/lib/atoms/icon/icon.module.mjs +6 -6
  16. package/esm2022/lib/atoms/icon/public_api.mjs +2 -2
  17. package/esm2022/lib/atoms/input/index.mjs +2 -0
  18. package/esm2022/lib/atoms/input/input.component.mjs +375 -0
  19. package/esm2022/lib/atoms/input/input.module.mjs +21 -0
  20. package/esm2022/lib/atoms/input/public_api.mjs +3 -0
  21. package/esm2022/lib/atoms/input/utils/input-utils.mjs +26 -0
  22. package/esm2022/lib/atoms/popover/index.mjs +2 -0
  23. package/esm2022/lib/atoms/popover/popover.component.mjs +147 -0
  24. package/esm2022/lib/atoms/popover/popover.module.mjs +18 -0
  25. package/esm2022/lib/atoms/popover/public_api.mjs +3 -0
  26. package/esm2022/lib/atoms/radio-button/index.mjs +2 -0
  27. package/esm2022/lib/atoms/radio-button/public_api.mjs +3 -0
  28. package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +184 -0
  29. package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +19 -0
  30. package/esm2022/lib/atoms/skeleton/index.mjs +2 -0
  31. package/esm2022/lib/atoms/skeleton/public_api.mjs +4 -0
  32. package/esm2022/lib/atoms/skeleton/skeleton.module.mjs +20 -0
  33. package/esm2022/lib/atoms/switch/index.mjs +2 -0
  34. package/esm2022/lib/atoms/switch/public_api.mjs +3 -0
  35. package/esm2022/lib/atoms/switch/switch.component.mjs +106 -0
  36. package/esm2022/lib/atoms/switch/switch.module.mjs +18 -0
  37. package/esm2022/lib/atoms/textarea/index.mjs +2 -0
  38. package/esm2022/lib/atoms/textarea/public_api.mjs +3 -0
  39. package/esm2022/lib/atoms/textarea/textarea.component.mjs +242 -0
  40. package/esm2022/lib/atoms/textarea/textarea.module.mjs +21 -0
  41. package/esm2022/lib/atoms/textarea/utils/textarea.types.mjs +9 -0
  42. package/esm2022/lib/atoms/tooltip/index.mjs +2 -0
  43. package/esm2022/lib/atoms/tooltip/public_api.mjs +3 -0
  44. package/esm2022/lib/atoms/tooltip/tooltip.component.mjs +111 -0
  45. package/esm2022/lib/atoms/tooltip/tooltip.module.mjs +18 -0
  46. package/esm2022/lib/atoms/tooltip/utils/utils.mjs +2 -0
  47. package/esm2022/lib/core-components.types.mjs +10 -0
  48. package/esm2022/lib/molecules/accordion/accordion/accordion.component.mjs +108 -0
  49. package/esm2022/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.mjs +92 -0
  50. package/esm2022/lib/molecules/accordion/accordion.module.mjs +21 -0
  51. package/esm2022/lib/molecules/accordion/index.mjs +2 -0
  52. package/esm2022/lib/molecules/accordion/public_api.mjs +4 -0
  53. package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +5 -5
  54. package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +5 -5
  55. package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +1 -1
  56. package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +6 -6
  57. package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +4 -4
  58. package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +8 -6
  59. package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +2 -2
  60. package/esm2022/lib/molecules/file-input/file-input.module.mjs +5 -5
  61. package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +1 -1
  62. package/esm2022/lib/molecules/modal/index.mjs +2 -0
  63. package/esm2022/lib/molecules/modal/modal.component.mjs +148 -0
  64. package/esm2022/lib/molecules/modal/modal.module.mjs +18 -0
  65. package/esm2022/lib/molecules/modal/public_api.mjs +3 -0
  66. package/esm2022/lib/molecules/pagination/pagination.module.mjs +5 -5
  67. package/esm2022/lib/molecules/select/select/select.component.mjs +4 -4
  68. package/esm2022/lib/molecules/select/select.module.mjs +5 -5
  69. package/esm2022/lib/molecules/stat-card/index.mjs +2 -0
  70. package/esm2022/lib/molecules/stat-card/public_api.mjs +3 -0
  71. package/esm2022/lib/molecules/stat-card/stat-card.component.mjs +135 -0
  72. package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +22 -0
  73. package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +2 -2
  74. package/esm2022/public-api.mjs +25 -5
  75. package/fesm2022/gettrx-core-components-angular.mjs +7370 -5726
  76. package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
  77. package/index.d.ts +0 -4
  78. package/lib/atoms/badge/badge.component.d.ts +1 -1
  79. package/lib/atoms/badge/badge.module.d.ts +1 -1
  80. package/lib/atoms/{custom-button/custom-button.component.d.ts → button/button.component.d.ts} +3 -3
  81. package/lib/atoms/button/button.module.d.ts +4 -3
  82. package/lib/atoms/button/index.d.ts +2 -1
  83. package/lib/atoms/button-directive/button-directive.module.d.ts +8 -0
  84. package/lib/atoms/{button → button-directive}/button.directive.d.ts +1 -1
  85. package/lib/atoms/{button → button-directive}/public_api.d.ts +1 -1
  86. package/lib/atoms/icon/icon.component.d.ts +2 -1
  87. package/lib/atoms/icon/icon.module.d.ts +4 -4
  88. package/lib/atoms/icon/public_api.d.ts +1 -1
  89. package/lib/atoms/input/index.d.ts +1 -0
  90. package/lib/atoms/input/input.component.d.ts +160 -0
  91. package/lib/atoms/input/input.module.d.ts +10 -0
  92. package/lib/atoms/input/public_api.d.ts +2 -0
  93. package/lib/atoms/input/utils/input-utils.d.ts +30 -0
  94. package/lib/atoms/popover/index.d.ts +1 -0
  95. package/lib/atoms/popover/popover.component.d.ts +35 -0
  96. package/lib/atoms/popover/popover.module.d.ts +8 -0
  97. package/lib/atoms/popover/public_api.d.ts +2 -0
  98. package/lib/atoms/radio-button/index.d.ts +1 -0
  99. package/lib/atoms/radio-button/public_api.d.ts +2 -0
  100. package/lib/atoms/radio-button/radio-button.component.d.ts +85 -0
  101. package/lib/atoms/radio-button/radio-button.module.d.ts +9 -0
  102. package/lib/atoms/skeleton/index.d.ts +1 -0
  103. package/lib/atoms/skeleton/public_api.d.ts +3 -0
  104. package/lib/atoms/skeleton/skeleton.module.d.ts +9 -0
  105. package/lib/atoms/switch/index.d.ts +1 -0
  106. package/lib/atoms/switch/public_api.d.ts +2 -0
  107. package/lib/atoms/switch/switch.component.d.ts +55 -0
  108. package/lib/atoms/switch/switch.module.d.ts +8 -0
  109. package/lib/atoms/textarea/index.d.ts +1 -0
  110. package/lib/atoms/textarea/public_api.d.ts +2 -0
  111. package/lib/atoms/textarea/textarea.component.d.ts +112 -0
  112. package/lib/atoms/textarea/textarea.module.d.ts +10 -0
  113. package/lib/atoms/textarea/utils/textarea.types.d.ts +12 -0
  114. package/lib/atoms/tooltip/index.d.ts +1 -0
  115. package/lib/atoms/tooltip/public_api.d.ts +2 -0
  116. package/lib/atoms/tooltip/tooltip.component.d.ts +49 -0
  117. package/lib/atoms/tooltip/tooltip.module.d.ts +8 -0
  118. package/lib/atoms/tooltip/utils/utils.d.ts +1 -0
  119. package/lib/molecules/accordion/accordion/accordion.component.d.ts +59 -0
  120. package/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.d.ts +37 -0
  121. package/lib/molecules/accordion/accordion.module.d.ts +11 -0
  122. package/lib/molecules/accordion/index.d.ts +1 -0
  123. package/lib/molecules/accordion/public_api.d.ts +3 -0
  124. package/lib/molecules/checkbox/checkbox.module.d.ts +1 -1
  125. package/lib/molecules/date-picker/date-picker.module.d.ts +2 -2
  126. package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +1 -1
  127. package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +2 -2
  128. package/lib/molecules/file-input/file-input.module.d.ts +2 -2
  129. package/lib/molecules/form/form-control/form-control.directive.d.ts +1 -1
  130. package/lib/molecules/modal/index.d.ts +1 -0
  131. package/lib/molecules/modal/modal.component.d.ts +75 -0
  132. package/lib/molecules/modal/modal.module.d.ts +8 -0
  133. package/lib/molecules/modal/public_api.d.ts +2 -0
  134. package/lib/molecules/pagination/pagination.module.d.ts +1 -1
  135. package/lib/molecules/select/select.module.d.ts +1 -1
  136. package/lib/molecules/stat-card/index.d.ts +1 -0
  137. package/lib/molecules/stat-card/public_api.d.ts +2 -0
  138. package/lib/molecules/stat-card/stat-card.component.d.ts +56 -0
  139. package/lib/molecules/stat-card/stat-card.module.d.ts +11 -0
  140. package/lib/molecules/time-picker/time-picker.module.d.ts +1 -1
  141. package/package.json +3 -2
  142. package/public-api.d.ts +21 -4
  143. package/esm2022/lib/atoms/button/button.directive.mjs +0 -102
  144. package/esm2022/lib/atoms/button/public_api.mjs +0 -4
  145. package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +0 -60
  146. package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +0 -19
  147. package/esm2022/lib/atoms/custom-button/index.mjs +0 -3
  148. package/esm2022/lib/atoms/custom-button/utils/utils.mjs +0 -2
  149. package/esm2022/lib/atoms/gtr.types.mjs +0 -10
  150. package/esm2022/lib/molecules/button/button-close.directive.mjs +0 -39
  151. package/esm2022/lib/molecules/button/button.directive.mjs +0 -100
  152. package/esm2022/lib/molecules/button/button.module.mjs +0 -17
  153. package/esm2022/lib/molecules/button/index.mjs +0 -2
  154. package/esm2022/lib/molecules/button/public_api.mjs +0 -4
  155. package/esm2022/lib/molecules/core-components.types.mjs +0 -10
  156. package/lib/atoms/custom-button/custom-button.module.d.ts +0 -9
  157. package/lib/atoms/custom-button/index.d.ts +0 -2
  158. package/lib/atoms/gtr.types.d.ts +0 -46
  159. package/lib/molecules/button/button-close.directive.d.ts +0 -13
  160. package/lib/molecules/button/button.directive.d.ts +0 -48
  161. package/lib/molecules/button/button.module.d.ts +0 -8
  162. package/lib/molecules/button/public_api.d.ts +0 -3
  163. /package/lib/atoms/{custom-button → button}/utils/utils.d.ts +0 -0
  164. /package/lib/atoms/{button → button-directive}/button-close.directive.d.ts +0 -0
  165. /package/lib/{molecules/button → atoms/button-directive}/index.d.ts +0 -0
  166. /package/lib/{molecules/core-components.types.d.ts → core-components.types.d.ts} +0 -0
@@ -0,0 +1,112 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { textareaDataResponse } from './utils/textarea.types';
3
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TextareaComponent implements ControlValueAccessor {
6
+ ngControl: NgControl;
7
+ constructor(ngControl: NgControl);
8
+ onChanged: any;
9
+ onTouched: any;
10
+ writeValue(obj: any): void;
11
+ registerOnChange(fn: any): void;
12
+ registerOnTouched(fn: any): void;
13
+ setDisabledState?(isDisabled: boolean): void;
14
+ /**
15
+ * The textarea value
16
+ */
17
+ value: string;
18
+ /**
19
+ * The textarea pleaceholder
20
+ */
21
+ placeholder: string;
22
+ /**
23
+ * The textarea loading state
24
+ */
25
+ loading: boolean;
26
+ /**
27
+ * The textarea label
28
+ */
29
+ textareaLabel: string;
30
+ /**
31
+ * The disabled textarea
32
+ */
33
+ disabled: boolean;
34
+ /**
35
+ * The wrapper id textarea
36
+ */
37
+ textAreaWrapperId: string;
38
+ /**
39
+ * The readonly textarea
40
+ */
41
+ readonly: boolean;
42
+ /**
43
+ * The textarea valid boolean
44
+ */
45
+ isValid: boolean;
46
+ /**
47
+ * The readonly textarea
48
+ */
49
+ isOnlyView: boolean;
50
+ /**
51
+ * The default validation
52
+ */
53
+ defaultValidation?: boolean;
54
+ /**
55
+ * The error state
56
+ */
57
+ hasError?: boolean;
58
+ /**
59
+ * The is touched
60
+ */
61
+ isTouched: boolean;
62
+ /**
63
+ * The error message to be shown
64
+ */
65
+ errorMsg: string;
66
+ /**
67
+ * The textarea change eventemitter
68
+ */
69
+ textareaChanged: EventEmitter<textareaDataResponse>;
70
+ /**
71
+ * The error eventemitter
72
+ */
73
+ handleError: EventEmitter<any>;
74
+ /**
75
+ * The textarea data to be send when textarea value changes
76
+ */
77
+ private data;
78
+ /**
79
+ * The textarea unique id
80
+ */
81
+ textareaId: string;
82
+ /**
83
+ * The component function to handle textarea change
84
+ */
85
+ handleTextarea(event: Event): void;
86
+ /**
87
+ * The component function to handle textarea on focus event
88
+ */
89
+ handleOnfocus(): void;
90
+ /**
91
+ * The component function to handle textarea on blur event
92
+ */
93
+ handleOnBlur(): void;
94
+ /**
95
+ * The component function to verify error textarea messages
96
+ */
97
+ hasErrorValidate: () => void;
98
+ /**
99
+ * The componentWillLoad hook
100
+ */
101
+ componentWillLoad(): void;
102
+ /**
103
+ * The decorator used to detect every change accurred for textarea and call function on change
104
+ */
105
+ validatetextarea(): string | null;
106
+ get isShowCustomError(): boolean;
107
+ get isShowDefaultError(): boolean;
108
+ get isInputInvalid(): boolean;
109
+ render(): void;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, [{ optional: true; self: true; }]>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "gtr-textarea", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "textareaLabel": { "alias": "textareaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "textAreaWrapperId": { "alias": "textAreaWrapperId"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "defaultValidation": { "alias": "defaultValidation"; "required": false; }; }, { "textareaChanged": "textareaChanged"; "handleError": "handleError"; }, never, never, false, never>;
112
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./textarea.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../skeleton/utils/skeleton.directive";
5
+ import * as i4 from "../icon/icon.module";
6
+ export declare class TextareaModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextareaModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TextareaModule, [typeof i1.TextareaComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.IconModule], [typeof i1.TextareaComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<TextareaModule>;
10
+ }
@@ -0,0 +1,12 @@
1
+ export declare const TEXTTAREA_ERROR_MESSAGES: {
2
+ empty_field: string;
3
+ };
4
+ export declare enum textareaState {
5
+ VALID = "valid",
6
+ INVALID = "invalid"
7
+ }
8
+ export interface textareaDataResponse {
9
+ value: string | number;
10
+ textareastate: string;
11
+ invalid: boolean;
12
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { TooltipComponent } from './tooltip.component';
2
+ export { TooltipModule } from './tooltip.module';
@@ -0,0 +1,49 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { positionType } from './utils/utils';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TooltipComponent implements AfterViewInit {
5
+ tooltipElement: ElementRef;
6
+ /**
7
+ * The tooltip element
8
+ */
9
+ contentEl?: ElementRef;
10
+ /**
11
+ * The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
12
+ */
13
+ handleResizeScroll(): void;
14
+ constructor(tooltipElement: ElementRef);
15
+ /**
16
+ * The tooltip content
17
+ */
18
+ tooltipId: string;
19
+ /**
20
+ * The tooltip content
21
+ */
22
+ content?: string;
23
+ /**
24
+ * The tooltip position
25
+ */
26
+ position: positionType;
27
+ /**
28
+ * The popover auto adjust position
29
+ */
30
+ autoAdjustable: boolean;
31
+ /**
32
+ * The tooltip adjustable position
33
+ */
34
+ newPosition: string;
35
+ /**
36
+ * The watch decorator fires event when tooltip position changed
37
+ */
38
+ adjustPosition(): Promise<void>;
39
+ /**
40
+ * The click event for hide tooltip visibility
41
+ */
42
+ hideTooltip(): void;
43
+ /**
44
+ * The componentWillLoad hook
45
+ */
46
+ ngAfterViewInit(): void;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "gtr-tooltip", never, { "tooltipId": { "alias": "tooltipId"; "required": false; }; "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "autoAdjustable": { "alias": "autoAdjustable"; "required": false; }; }, {}, never, ["*"], false, never>;
49
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tooltip.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class TooltipModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1.TooltipComponent], [typeof i2.CommonModule], [typeof i1.TooltipComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
8
+ }
@@ -0,0 +1 @@
1
+ export type positionType = 'top' | 'bottom' | 'left' | 'right';
@@ -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.IconModule, 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,3 @@
1
+ export { AccordionModule } from './accordion.module';
2
+ export { AccordionWrapperComponent } from './accordion-wrapper/accordion-wrapper.component';
3
+ export { AccordionComponent } from './accordion/accordion.component';
@@ -5,6 +5,6 @@ import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../../atoms/icon/icon.module";
6
6
  export declare class CheckboxModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof i1.CheckboxComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i3.FormsModule, typeof i4.GtrIconModule], [typeof i1.CheckboxComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof i1.CheckboxComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i3.FormsModule, typeof i4.IconModule], [typeof i1.CheckboxComponent]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
10
10
  }
@@ -4,7 +4,7 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../calendar/calendar/calendar.component";
6
6
  import * as i5 from "../time-picker/time-picker.component";
7
- import * as i6 from "../button/button.directive";
7
+ import * as i6 from "../../atoms/button-directive/button.directive";
8
8
  import * as i7 from "../dropdown/dropdown/dropdown.component";
9
9
  import * as i8 from "../dropdown/dropdown-menu/dropdown-menu.directive";
10
10
  import * as i9 from "../form/input-group/input-group.component";
@@ -13,6 +13,6 @@ import * as i11 from "../form/input-group-text/input-group-text.directive";
13
13
  import * as i12 from "../../atoms/icon/icon.module";
14
14
  export declare class DatePickerModule {
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, [typeof i1.DatePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.GtrIconModule], [typeof i1.DatePickerComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, [typeof i1.DatePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.IconModule], [typeof i1.DatePickerComponent]>;
17
17
  static ɵinj: i0.ɵɵInjectorDeclaration<DatePickerModule>;
18
18
  }
@@ -6,7 +6,7 @@ import { Subscription } from 'rxjs';
6
6
  import { Options } from '@popperjs/core';
7
7
  import { DateFilterType, DayFormatType, WeekdayFormatType } from '../../calendar/calendar.service';
8
8
  import { CalendarComponent } from '../../calendar';
9
- import { Colors } from '../../core-components.types';
9
+ import { Colors } from '../../../core-components.types';
10
10
  import { TemplateIdDirective } from '../../shared';
11
11
  import * as i0 from "@angular/core";
12
12
  export interface ICalendarRanges {
@@ -4,7 +4,7 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../calendar/calendar/calendar.component";
6
6
  import * as i5 from "../time-picker/time-picker.component";
7
- import * as i6 from "../button/button.directive";
7
+ import * as i6 from "../../atoms/button-directive/button.directive";
8
8
  import * as i7 from "../dropdown/dropdown/dropdown.component";
9
9
  import * as i8 from "../dropdown/dropdown-menu/dropdown-menu.directive";
10
10
  import * as i9 from "../form/input-group/input-group.component";
@@ -13,6 +13,6 @@ import * as i11 from "../form/input-group-text/input-group-text.directive";
13
13
  import * as i12 from "../../atoms/icon/icon.module";
14
14
  export declare class DateRangePickerModule {
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<DateRangePickerModule, [typeof i1.DateRangePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.GtrIconModule], [typeof i1.DateRangePickerComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DateRangePickerModule, [typeof i1.DateRangePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.IconModule, typeof i6.ButtonDirective], [typeof i1.DateRangePickerComponent]>;
17
17
  static ɵinj: i0.ɵɵInjectorDeclaration<DateRangePickerModule>;
18
18
  }
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./file-input/file-input.component";
3
- import * as i2 from "../../atoms/custom-button/custom-button.module";
3
+ import * as i2 from "../../atoms/button/button.module";
4
4
  export declare class FileInputModule {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<FileInputModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<FileInputModule, [typeof i1.FileInputComponent], [typeof i2.CustomButtonModule], [typeof i1.FileInputComponent]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileInputModule, [typeof i1.FileInputComponent], [typeof i2.ButtonModule], [typeof i1.FileInputComponent]>;
7
7
  static ɵinj: i0.ɵɵInjectorDeclaration<FileInputModule>;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import { ElementRef, OnInit } from '@angular/core';
2
- import { InputType } from '../../core-components.types';
2
+ import { InputType } from '../../../core-components.types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormControlDirective implements OnInit {
5
5
  private hostElement;
@@ -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 ModalComponent 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<ModalComponent, [{ optional: true; self: true; }]>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "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
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./modal.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class ModalModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ModalModule, [typeof i1.ModalComponent], [typeof i2.CommonModule], [typeof i1.ModalComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ModalModule>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export { ModalComponent } from './modal.component';
2
+ export { ModalModule } from './modal.module';
@@ -6,6 +6,6 @@ import * as i4 from "../../atoms/icon/icon.module";
6
6
  import * as i5 from "./helpers/pipes/validate-page/validate-page.pipe";
7
7
  export declare class PaginationModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<PaginationModule, [typeof i1.PaginationComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.SelectModule, typeof i4.GtrIconModule, typeof i5.ValidatePagePipe], [typeof i1.PaginationComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PaginationModule, [typeof i1.PaginationComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.SelectModule, typeof i4.IconModule, typeof i5.ValidatePagePipe], [typeof i1.PaginationComponent]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<PaginationModule>;
11
11
  }
@@ -7,6 +7,6 @@ import * as i5 from "../../atoms/icon/icon.module";
7
7
  import * as i6 from "../../atoms/skeleton/utils/skeleton.directive";
8
8
  export declare class SelectModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof i1.SelectComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.FormatSelectedValuePipe, typeof i4.TrimTextPipe, typeof i5.GtrIconModule, typeof i6.SkeletonDirective], [typeof i1.SelectComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof i1.SelectComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgClass, typeof i2.NgTemplateOutlet, typeof i3.FormatSelectedValuePipe, typeof i4.TrimTextPipe, typeof i5.IconModule, typeof i6.SkeletonDirective], [typeof i1.SelectComponent]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
12
12
  }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { StatCardComponent } from './stat-card.component';
2
+ export { StatCardModule } from './stat-card.module';
@@ -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.IconModule], [typeof i1.StatCardComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<StatCardModule>;
11
+ }
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "../form/form.module";
5
- import * as i4 from "../button/button.module";
5
+ import * as i4 from "../../atoms/button/button.module";
6
6
  import * as i5 from "../dropdown/dropdown.module";
7
7
  import * as i6 from "./time-picker-roll-col/time-picker-roll-am-pm.component";
8
8
  import * as i7 from "./time-picker-roll-col/time-picker-roll-col.component";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -20,7 +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.0"
23
+ "@gettrx/core-components": "1.0.2",
24
+ "@gettrx/core-styles": "1.0.2"
24
25
  },
25
26
  "module": "fesm2022/gettrx-core-components-angular.mjs",
26
27
  "typings": "index.d.ts",