@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
package/index.d.ts CHANGED
@@ -1,5 +1 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@gettrx/core-components-angular" />
5
1
  export * from './public-api';
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- type BadgeColor = 'danger' | 'info' | 'brown' | 'pink' | 'purple' | 'blue' | 'warning' | 'success' | 'dark' | 'gray' | 'dark-green';
2
+ type BadgeColor = 'danger' | 'info' | 'brown' | 'pink' | 'purple' | 'blue' | 'warning' | 'success' | 'dark' | 'gray' | 'dark-green' | 'default';
3
3
  export declare class BadgeComponent {
4
4
  shape: 'default' | 'round';
5
5
  type: 'pill' | 'icon' | 'dot';
@@ -4,6 +4,6 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "../icon/icon.module";
5
5
  export declare class BadgeModule {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule, typeof i3.GtrIconModule], [typeof i1.BadgeComponent, typeof i1.BadgeComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule, typeof i3.IconModule], [typeof i1.BadgeComponent]>;
8
8
  static ɵinj: i0.ɵɵInjectorDeclaration<BadgeModule>;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { ButtonColor, ButtonVariant, ButtonType } from './utils/utils';
3
3
  import * as i0 from "@angular/core";
4
- export declare class CustomButtonComponent implements OnInit {
4
+ export declare class ButtonComponent implements OnInit {
5
5
  classMap: any;
6
6
  /** (optional) Button type */
7
7
  type?: ButtonType | any;
@@ -34,6 +34,6 @@ export declare class CustomButtonComponent implements OnInit {
34
34
  disabled: boolean | undefined;
35
35
  };
36
36
  ngOnInit(): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtonComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomButtonComponent, "gtr-button", never, { "type": { "alias": "type"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "gtr-button", never, { "type": { "alias": "type"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
39
39
  }
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./button.directive";
3
- import * as i2 from "./button-close.directive";
2
+ import * as i1 from "./button.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
4
5
  export declare class ButtonModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, never, [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective], [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, [typeof i1.ButtonComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.ButtonComponent]>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
8
9
  }
@@ -1 +1,2 @@
1
- export * from './public_api';
1
+ export { ButtonComponent } from './button.component';
2
+ export { ButtonModule } from './button.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button.directive";
3
+ import * as i2 from "./button-close.directive";
4
+ export declare class ButtonDirectiveModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirectiveModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonDirectiveModule, never, [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective], [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ButtonDirectiveModule>;
8
+ }
@@ -1,4 +1,4 @@
1
- import { ButtonType, Colors, Shapes } from '../gtr.types';
1
+ import { ButtonType, Colors, Shapes } from '../../core-components.types';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ButtonDirective {
4
4
  /**
@@ -1,3 +1,3 @@
1
1
  export { ButtonDirective } from './button.directive';
2
2
  export { ButtonCloseDirective } from './button-close.directive';
3
- export { ButtonModule } from './button.module';
3
+ export { ButtonDirectiveModule } from './button-directive.module';
@@ -16,11 +16,12 @@ export declare class IconComponent implements OnDestroy {
16
16
  /**
17
17
  * The icon size
18
18
  */
19
- size: number;
19
+ set size(value: number);
20
20
  /**
21
21
  * The element id
22
22
  */
23
23
  iconId: string;
24
+ height: string;
24
25
  ngOnDestroy(): void;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
26
27
  static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "gtr-icon", never, { "name": { "alias": "name"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconId": { "alias": "iconId"; "required": false; }; }, {}, never, never, false, never>;
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./icon.component";
3
3
  import * as i2 from "@angular/common";
4
- export declare class GtrIconModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrIconModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<GtrIconModule, [typeof i1.IconComponent], [typeof i2.CommonModule], [typeof i1.IconComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<GtrIconModule>;
4
+ export declare class IconModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IconModule, [typeof i1.IconComponent], [typeof i2.CommonModule], [typeof i1.IconComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<IconModule>;
8
8
  }
@@ -1,2 +1,2 @@
1
1
  export { IconComponent } from './icon.component';
2
- export { GtrIconModule } from './icon.module';
2
+ export { IconModule } from './icon.module';
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,160 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { InputDataResponse } from './utils/input-utils';
3
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputComponent implements ControlValueAccessor {
6
+ ngControl: NgControl;
7
+ constructor(ngControl: NgControl);
8
+ onChanged: any;
9
+ onTouched: any;
10
+ registerOnChange(fn: (value: any) => void): void;
11
+ writeValue(obj: any): void;
12
+ registerOnTouched(fn: () => void): void;
13
+ setDisabledState(isDisabled: boolean): void;
14
+ /**
15
+ * The Skeleton loading
16
+ */
17
+ inputWrapperId: string;
18
+ /**
19
+ * The Skeleton loading
20
+ */
21
+ loading: boolean;
22
+ inputType: string;
23
+ /**
24
+ * The input type
25
+ */
26
+ set type(value: string);
27
+ /**
28
+ * The input value
29
+ */
30
+ value: string | number;
31
+ /**
32
+ * The input pleaceholder
33
+ */
34
+ placeholder: string;
35
+ /**
36
+ * The input icon
37
+ */
38
+ inputIcon: string;
39
+ /**
40
+ * The input icon size
41
+ */
42
+ iconSize: number;
43
+ /**
44
+ * The input icon color
45
+ */
46
+ iconColor: string;
47
+ /**
48
+ * The required
49
+ */
50
+ iconPosition: 'start' | 'end';
51
+ /**
52
+ * The input icon font weight
53
+ */
54
+ iconFontWeight: string;
55
+ /**
56
+ * The input label
57
+ */
58
+ inputLabel: string;
59
+ /**
60
+ * The disabled input
61
+ */
62
+ disabled: boolean;
63
+ /**
64
+ * The check label
65
+ */
66
+ validateLabel: boolean;
67
+ /**
68
+ * The disabled input
69
+ */
70
+ isNumber: boolean;
71
+ /**
72
+ * The readonly input
73
+ */
74
+ readonly: boolean;
75
+ /**
76
+ * The readonly input
77
+ */
78
+ isOnlyView: boolean;
79
+ /**
80
+ * The default validation
81
+ */
82
+ defaultValidation: boolean;
83
+ /**
84
+ * The required
85
+ */
86
+ required: boolean;
87
+ /**
88
+ * The input valid boolean
89
+ */
90
+ isValid: boolean;
91
+ /**
92
+ * The error state
93
+ */
94
+ hasError: boolean;
95
+ /**
96
+ * The icon input field
97
+ */
98
+ isIcon: boolean;
99
+ /**
100
+ * The
101
+ */
102
+ isTouched: boolean;
103
+ /**
104
+ * The error message to be shown
105
+ */
106
+ errorMsg: string;
107
+ /**
108
+ * The input change eventemitter
109
+ */
110
+ inputChanged: EventEmitter<InputDataResponse>;
111
+ /**
112
+ * The error eventemitter
113
+ */
114
+ handleError: EventEmitter<Error>;
115
+ /**
116
+ * The input type validator
117
+ */
118
+ private inputFields;
119
+ /**
120
+ * The input data to be send when input value changes
121
+ */
122
+ private data;
123
+ /**
124
+ * The input unique id
125
+ */
126
+ inputId?: string;
127
+ /**
128
+ * The component function to handle input change
129
+ */
130
+ handledKeyPressed(event: Event): void;
131
+ /**
132
+ * The component function to handle input change
133
+ */
134
+ handleInput(event: Event): void;
135
+ /**
136
+ * The component function to handle input on focus event
137
+ */
138
+ handleOnfocus(): void;
139
+ /**
140
+ * The component function to handle input on blur event
141
+ */
142
+ handleOnBlur(): void;
143
+ /**
144
+ * The component function to verify error input messages
145
+ */
146
+ hasErrorValidate: () => void;
147
+ /**
148
+ * The component function to verify input type
149
+ */
150
+ isDesiredInput(): boolean;
151
+ /**
152
+ * The decorator used to detect every change accurred for input and call function on change
153
+ */
154
+ validateInput(): string | null;
155
+ get isShowCustomError(): boolean;
156
+ get isShowDefaultError(): boolean;
157
+ get isInputInvalid(): boolean;
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }]>;
159
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "gtr-input", never, { "inputWrapperId": { "alias": "inputWrapperId"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputIcon": { "alias": "inputIcon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "iconFontWeight": { "alias": "iconFontWeight"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "validateLabel": { "alias": "validateLabel"; "required": false; }; "isNumber": { "alias": "isNumber"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "defaultValidation": { "alias": "defaultValidation"; "required": false; }; "required": { "alias": "required"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "inputChanged": "inputChanged"; "handleError": "handleError"; }, never, never, false, never>;
160
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./input.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 InputModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InputModule, [typeof i1.InputComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.IconModule], [typeof i1.InputComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<InputModule>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export { InputComponent } from './input.component';
2
+ export { InputModule } from './input.module';
@@ -0,0 +1,30 @@
1
+ export declare const CONSTANTS: {
2
+ email_regex: RegExp;
3
+ password_regex: RegExp;
4
+ number_regex: RegExp;
5
+ };
6
+ export declare const ERROR_MESSAGES: {
7
+ invalid_number: string;
8
+ invalid_input_type: string;
9
+ invalid_email: string;
10
+ empty_field: string;
11
+ password_pattern: string;
12
+ input_not_allowed: string;
13
+ };
14
+ export type input = 'text' | 'number' | 'password' | 'email';
15
+ export declare enum InputType {
16
+ TEXT = "text",
17
+ NUMBER = "number",
18
+ PASSWORD = "password",
19
+ EMAIL = "email"
20
+ }
21
+ export declare enum InputState {
22
+ VALID = "valid",
23
+ INVALID = "invalid"
24
+ }
25
+ export interface InputDataResponse {
26
+ event: Event | KeyboardEvent;
27
+ value: string | number;
28
+ inputstate: string;
29
+ invalid: boolean;
30
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,35 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PopoverComponent implements OnInit {
4
+ private cdr;
5
+ position: 'top' | 'bottom' | 'left' | 'right';
6
+ isOpened: boolean;
7
+ showPositionIndicator: boolean;
8
+ moveX?: number | null;
9
+ moveY?: number | null;
10
+ padding?: number | null;
11
+ marginTop?: number | null;
12
+ marginBottom?: number | null;
13
+ marginLeft?: number | null;
14
+ marginRight?: number | null;
15
+ closeOnClickOutside: boolean;
16
+ id: string;
17
+ testId: string;
18
+ stateChanged: EventEmitter<any>;
19
+ popoverEl: ElementRef | undefined;
20
+ contentEl: ElementRef | undefined;
21
+ isVisible: boolean;
22
+ adjustedPosition: string;
23
+ positionMargin: string;
24
+ onResize(event: Event): void;
25
+ constructor(cdr: ChangeDetectorRef);
26
+ ngOnInit(): void;
27
+ ngAfterViewInit(): void;
28
+ togglePopover(): void;
29
+ handleClickOutside(event: Event): void;
30
+ handleKeyUp(event: KeyboardEvent): void;
31
+ popoverContentClicked(event: Event): void;
32
+ adjustPopoverPosition(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "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
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./popover.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class PopoverModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopoverModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PopoverModule, [typeof i1.PopoverComponent], [typeof i2.CommonModule], [typeof i1.PopoverComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<PopoverModule>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export { PopoverComponent } from './popover.component';
2
+ export { PopoverModule } from './popover.module';
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { RadioButtonComponent } from './radio-button.component';
2
+ export { RadioButtonhModule } from './radio-button.module';
@@ -0,0 +1,85 @@
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 value changed eventemitter
35
+ */
36
+ valueChanged: EventEmitter<any>;
37
+ /**
38
+ * The radio input id
39
+ */
40
+ radioId: string;
41
+ /**
42
+ * The radio input id
43
+ */
44
+ groupName: string;
45
+ /**
46
+ * The componentDidLoad hook
47
+ */
48
+ ngAfterViewInit(): void;
49
+ /**
50
+ * The decorator is used to select value via keyboard
51
+ */
52
+ handleKeyDown(event: KeyboardEvent): void;
53
+ /**
54
+ * The component function for toggle radio checked state
55
+ */
56
+ handleClick(): void;
57
+ /**
58
+ * The component function for toggle radio checked state
59
+ */
60
+ toggleCheckedState(): void;
61
+ /**
62
+ * The component function for selecting previous radio element
63
+ */
64
+ selectPreviousOption(): void;
65
+ /**
66
+ * The component function for check the active element
67
+ */
68
+ isElementFocused: (element: any) => boolean;
69
+ /**
70
+ * The component function for selecting next radio element
71
+ */
72
+ selectNextOption(): void;
73
+ /**
74
+ * The component function for deselect unchecked values
75
+ */
76
+ deselectOtherOptions(): void;
77
+ /**
78
+ * The component function for set changed value and send selected value via eventemitter
79
+ */
80
+ handleChange(event?: any): void;
81
+ detectEnter(e: any): void;
82
+ ngOnInit(): void;
83
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [{ optional: true; self: true; }, null]>;
84
+ 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; }; "radioId": { "alias": "radioId"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, ["[slot='grt-info']"], false, never>;
85
+ }
@@ -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,3 @@
1
+ export { SkeletonModule } from './skeleton.module';
2
+ export { SkeletonDirective } from './utils/skeleton.directive';
3
+ export { SkeletonComponent } from './skeleton.component';
@@ -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 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { SwitchComponent } from './switch.component';
2
+ export { SwitchModule } from './switch.module';
@@ -0,0 +1,55 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SwitchComponent implements ControlValueAccessor {
5
+ ngControl: NgControl;
6
+ constructor(ngControl: NgControl);
7
+ writeValue(obj: any): void;
8
+ registerOnChange(fn: any): void;
9
+ registerOnTouched(fn: any): void;
10
+ setDisabledState?(isDisabled: boolean): void;
11
+ /**
12
+ * Checked state for gtr switch button
13
+ * @returns boolean value
14
+ */
15
+ checked: boolean;
16
+ /**
17
+ * Id for debugging the element
18
+ * @returns boolean value
19
+ */
20
+ switchId: string;
21
+ /**
22
+ * Disabled state for switch button
23
+ * accept boolean value
24
+ */
25
+ disabled: boolean;
26
+ /**
27
+ * Readonly state for switch button
28
+ * accept boolean value
29
+ */
30
+ readonly: boolean;
31
+ /**
32
+ * Readonly state for switch button
33
+ * accept boolean value
34
+ */
35
+ tabIndex: number;
36
+ /**
37
+ * To add label text for switches
38
+ */
39
+ label?: string | number;
40
+ /**
41
+ * To detect value change events in gtr switch
42
+ * @returns Custom event for latest checked state
43
+ */
44
+ gtrChange: EventEmitter<boolean>;
45
+ /**
46
+ * Local method to handle keyboard events for switch button
47
+ */
48
+ handleKeyDown(event: KeyboardEvent): void;
49
+ /**
50
+ * Local method to handle click events for switch button
51
+ */
52
+ handleClick(): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, [{ optional: true; self: true; }]>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "gtr-switch", never, { "checked": { "alias": "checked"; "required": false; }; "switchId": { "alias": "switchId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "gtrChange": "gtrChange"; }, never, never, false, never>;
55
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./switch.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class SwitchModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SwitchModule, [typeof i1.SwitchComponent], [typeof i2.CommonModule], [typeof i1.SwitchComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<SwitchModule>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { TextareaComponent } from './textarea.component';
2
+ export { TextareaModule } from './textarea.module';