@gettrx/core-components-angular 1.1.28 → 2.0.0

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 (184) hide show
  1. package/fesm2022/gettrx-core-components-angular.mjs +294 -285
  2. package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
  3. package/index.d.ts +3525 -1
  4. package/package.json +6 -3
  5. package/helpers/color.helper.d.ts +0 -4
  6. package/lib/atoms/badge/gtr-badge.component.d.ts +0 -28
  7. package/lib/atoms/badge/index.d.ts +0 -1
  8. package/lib/atoms/badge/public_api.d.ts +0 -1
  9. package/lib/atoms/button/gtr-button.component.d.ts +0 -42
  10. package/lib/atoms/button/gtr-button.types.d.ts +0 -3
  11. package/lib/atoms/button/index.d.ts +0 -1
  12. package/lib/atoms/button-directive/gtr-button-close.directive.d.ts +0 -13
  13. package/lib/atoms/button-directive/gtr-button.directive.d.ts +0 -48
  14. package/lib/atoms/button-directive/index.d.ts +0 -1
  15. package/lib/atoms/button-directive/public_api.d.ts +0 -2
  16. package/lib/atoms/button-dropdown/gtr-button-dropdown.component.d.ts +0 -33
  17. package/lib/atoms/button-dropdown/index.d.ts +0 -1
  18. package/lib/atoms/button-dropdown/public_api.d.ts +0 -1
  19. package/lib/atoms/display-value/gtr-display-value.component.d.ts +0 -28
  20. package/lib/atoms/display-value/index.d.ts +0 -1
  21. package/lib/atoms/display-value/public-api.d.ts +0 -1
  22. package/lib/atoms/icon/gtr-icon.component.d.ts +0 -29
  23. package/lib/atoms/icon/index.d.ts +0 -1
  24. package/lib/atoms/icon/public_api.d.ts +0 -1
  25. package/lib/atoms/input/gtr-input.component.d.ts +0 -172
  26. package/lib/atoms/input/index.d.ts +0 -1
  27. package/lib/atoms/input/public_api.d.ts +0 -1
  28. package/lib/atoms/input/utils/gtr-input-utils.d.ts +0 -30
  29. package/lib/atoms/popover/gtr-popover.component.d.ts +0 -49
  30. package/lib/atoms/popover/index.d.ts +0 -1
  31. package/lib/atoms/popover/public_api.d.ts +0 -1
  32. package/lib/atoms/radio-button/gtr-radio-button.component.d.ts +0 -92
  33. package/lib/atoms/radio-button/index.d.ts +0 -1
  34. package/lib/atoms/radio-button/public_api.d.ts +0 -1
  35. package/lib/atoms/skeleton/gtr-skeleton.component.d.ts +0 -12
  36. package/lib/atoms/skeleton/index.d.ts +0 -1
  37. package/lib/atoms/skeleton/public_api.d.ts +0 -2
  38. package/lib/atoms/skeleton/utils/gtr-skeleton.directive.d.ts +0 -15
  39. package/lib/atoms/switch/gtr-switch.component.d.ts +0 -58
  40. package/lib/atoms/switch/index.d.ts +0 -1
  41. package/lib/atoms/switch/public_api.d.ts +0 -1
  42. package/lib/atoms/textarea/gtr-textarea.component.d.ts +0 -113
  43. package/lib/atoms/textarea/index.d.ts +0 -1
  44. package/lib/atoms/textarea/public_api.d.ts +0 -1
  45. package/lib/atoms/textarea/utils/gtr-textarea.types.d.ts +0 -12
  46. package/lib/atoms/toaster/gtr-toaster.component.d.ts +0 -28
  47. package/lib/atoms/toaster/index.d.ts +0 -1
  48. package/lib/atoms/toaster/public_api.d.ts +0 -2
  49. package/lib/atoms/toaster/services/gtr-toaster.service.d.ts +0 -14
  50. package/lib/atoms/toaster/util/gtr-toaster.util.d.ts +0 -13
  51. package/lib/atoms/tooltip/gtr-tooltip.component.d.ts +0 -50
  52. package/lib/atoms/tooltip/index.d.ts +0 -1
  53. package/lib/atoms/tooltip/public_api.d.ts +0 -1
  54. package/lib/atoms/tooltip/utils/utils.d.ts +0 -1
  55. package/lib/core-components.types.d.ts +0 -46
  56. package/lib/directives/autosize/autosize.directive.d.ts +0 -32
  57. package/lib/directives/autosize/index.d.ts +0 -1
  58. package/lib/directives/autosize/public-api.d.ts +0 -1
  59. package/lib/molecules/accordion/accordion/gtr-accordion.component.d.ts +0 -60
  60. package/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.d.ts +0 -40
  61. package/lib/molecules/accordion/index.d.ts +0 -1
  62. package/lib/molecules/accordion/public_api.d.ts +0 -2
  63. package/lib/molecules/calendar/calendar/gtr-calendar-class-view.pipe.d.ts +0 -7
  64. package/lib/molecules/calendar/calendar/gtr-calendar.component.d.ts +0 -178
  65. package/lib/molecules/calendar/calendar-month/gtr-calendar-class-day.pipe.d.ts +0 -15
  66. package/lib/molecules/calendar/calendar-month/gtr-calendar-class-month.pipe.d.ts +0 -7
  67. package/lib/molecules/calendar/calendar-month/gtr-calendar-class-year.pipe.d.ts +0 -7
  68. package/lib/molecules/calendar/calendar-month/gtr-calendar-day-title.pipe.d.ts +0 -7
  69. package/lib/molecules/calendar/calendar-month/gtr-calendar-day.directive.d.ts +0 -33
  70. package/lib/molecules/calendar/calendar-month/gtr-calendar-day.pipe.d.ts +0 -8
  71. package/lib/molecules/calendar/calendar-month/gtr-calendar-month-title.pipe.d.ts +0 -7
  72. package/lib/molecules/calendar/calendar-month/gtr-calendar-month.component.d.ts +0 -136
  73. package/lib/molecules/calendar/calendar-month/gtr-calendar-month.pipe.d.ts +0 -7
  74. package/lib/molecules/calendar/calendar-month/gtr-calendar-weekday.pipe.d.ts +0 -8
  75. package/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.d.ts +0 -32
  76. package/lib/molecules/calendar/gtr-calendar.service.d.ts +0 -36
  77. package/lib/molecules/calendar/gtr-calendar.utils.d.ts +0 -28
  78. package/lib/molecules/calendar/index.d.ts +0 -1
  79. package/lib/molecules/calendar/public_api.d.ts +0 -3
  80. package/lib/molecules/checkbox/checkbox/gtr-checkbox.component.d.ts +0 -56
  81. package/lib/molecules/checkbox/checkbox/gtr-checkbox.utils.d.ts +0 -4
  82. package/lib/molecules/checkbox/index.d.ts +0 -1
  83. package/lib/molecules/checkbox/public_api.d.ts +0 -2
  84. package/lib/molecules/date-picker/gtr-date-picker.component.d.ts +0 -19
  85. package/lib/molecules/date-picker/index.d.ts +0 -1
  86. package/lib/molecules/date-picker/public_api.d.ts +0 -1
  87. package/lib/molecules/date-range-picker/date-range-picker/gtr-custom-range-key.pipe.d.ts +0 -8
  88. package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts +0 -286
  89. package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.types.d.ts +0 -7
  90. package/lib/molecules/date-range-picker/index.d.ts +0 -1
  91. package/lib/molecules/date-range-picker/public_api.d.ts +0 -1
  92. package/lib/molecules/dropdown/dropdown/gtr-dropdown.component.d.ts +0 -136
  93. package/lib/molecules/dropdown/dropdown-close/gtr-dropdown-close.directive.d.ts +0 -26
  94. package/lib/molecules/dropdown/dropdown-divider/gtr-dropdown-divider.directive.d.ts +0 -6
  95. package/lib/molecules/dropdown/dropdown-header/gtr-dropdown-header.directive.d.ts +0 -6
  96. package/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item-plain.directive.d.ts +0 -6
  97. package/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item.directive.d.ts +0 -36
  98. package/lib/molecules/dropdown/dropdown-menu/gtr-dropdown-menu.directive.d.ts +0 -34
  99. package/lib/molecules/dropdown/gtr-dropdown.service.d.ts +0 -13
  100. package/lib/molecules/dropdown/index.d.ts +0 -1
  101. package/lib/molecules/dropdown/public_api.d.ts +0 -8
  102. package/lib/molecules/file-input/file-input/gtr-file-input.component.d.ts +0 -74
  103. package/lib/molecules/file-input/file-input/gtr-file-input.model.d.ts +0 -3
  104. package/lib/molecules/file-input/index.d.ts +0 -1
  105. package/lib/molecules/file-input/public_api.d.ts +0 -2
  106. package/lib/molecules/form/form/gtr-form.directive.d.ts +0 -13
  107. package/lib/molecules/form/form-check/gtr-form-check-input.directive.d.ts +0 -31
  108. package/lib/molecules/form/form-check/gtr-form-check-label.directive.d.ts +0 -6
  109. package/lib/molecules/form/form-check/gtr-form-check.component.d.ts +0 -39
  110. package/lib/molecules/form/form-control/gtr-form-control.directive.d.ts +0 -31
  111. package/lib/molecules/form/form-feedback/gtr-form-feedback.component.d.ts +0 -17
  112. package/lib/molecules/form/form-floating/gtr-form-floating.directive.d.ts +0 -12
  113. package/lib/molecules/form/form-label/gtr-form-label.directive.d.ts +0 -16
  114. package/lib/molecules/form/form-select/gtr-form-select.directive.d.ts +0 -16
  115. package/lib/molecules/form/form-text/gtr-form-text.directive.d.ts +0 -6
  116. package/lib/molecules/form/index.d.ts +0 -1
  117. package/lib/molecules/form/input-group/gtr-input-group.component.d.ts +0 -12
  118. package/lib/molecules/form/input-group-text/gtr-input-group-text.directive.d.ts +0 -7
  119. package/lib/molecules/form/public_api.d.ts +0 -12
  120. package/lib/molecules/input-color/gtr-input-color.component.d.ts +0 -39
  121. package/lib/molecules/input-color/index.d.ts +0 -1
  122. package/lib/molecules/input-color/public_api.d.ts +0 -1
  123. package/lib/molecules/modal/gtr-modal.component.d.ts +0 -78
  124. package/lib/molecules/modal/index.d.ts +0 -1
  125. package/lib/molecules/modal/public_api.d.ts +0 -1
  126. package/lib/molecules/numeric-counter/index.d.ts +0 -1
  127. package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.component.d.ts +0 -28
  128. package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.const.d.ts +0 -1
  129. package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.type.d.ts +0 -4
  130. package/lib/molecules/numeric-counter/public_api.d.ts +0 -3
  131. package/lib/molecules/pagination/helpers/index.d.ts +0 -2
  132. package/lib/molecules/pagination/helpers/models/gtr-pagination.interface.d.ts +0 -15
  133. package/lib/molecules/pagination/helpers/models/gtr-pagination.model.d.ts +0 -2
  134. package/lib/molecules/pagination/helpers/models/index.d.ts +0 -2
  135. package/lib/molecules/pagination/helpers/pipes/index.d.ts +0 -1
  136. package/lib/molecules/pagination/helpers/pipes/validate-page/gtr-validate-page.pipe.d.ts +0 -8
  137. package/lib/molecules/pagination/index.d.ts +0 -1
  138. package/lib/molecules/pagination/pagination/gtr-pagination.component.d.ts +0 -75
  139. package/lib/molecules/pagination/pagination/gtr-pagination.utils.d.ts +0 -21
  140. package/lib/molecules/pagination/public_api.d.ts +0 -2
  141. package/lib/molecules/select/helpers/enums/gtr-select.enums.d.ts +0 -4
  142. package/lib/molecules/select/helpers/enums/index.d.ts +0 -1
  143. package/lib/molecules/select/helpers/index.d.ts +0 -3
  144. package/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.d.ts +0 -8
  145. package/lib/molecules/select/helpers/pipes/index.d.ts +0 -2
  146. package/lib/molecules/select/helpers/pipes/trim-text/gtr-trim-text.pipe.d.ts +0 -7
  147. package/lib/molecules/select/helpers/types/gtr-select.type.d.ts +0 -7
  148. package/lib/molecules/select/helpers/types/index.d.ts +0 -1
  149. package/lib/molecules/select/index.d.ts +0 -1
  150. package/lib/molecules/select/public_api.d.ts +0 -2
  151. package/lib/molecules/select/select/gtr-select.component.d.ts +0 -233
  152. package/lib/molecules/shared/gtr-html-attr.directive.d.ts +0 -16
  153. package/lib/molecules/shared/gtr-template-id.directive.d.ts +0 -9
  154. package/lib/molecules/shared/index.d.ts +0 -1
  155. package/lib/molecules/shared/public_api.d.ts +0 -2
  156. package/lib/molecules/stat-card/gtr-stat-card.component.d.ts +0 -58
  157. package/lib/molecules/stat-card/index.d.ts +0 -1
  158. package/lib/molecules/stat-card/public_api.d.ts +0 -1
  159. package/lib/molecules/table/dynamic-component.directive.d.ts +0 -24
  160. package/lib/molecules/table/dynamic-host.directive.d.ts +0 -13
  161. package/lib/molecules/table/gtr-fetch-attribute.pipe.d.ts +0 -9
  162. package/lib/molecules/table/gtr-table.component.d.ts +0 -89
  163. package/lib/molecules/table/gtr-table.interface.d.ts +0 -87
  164. package/lib/molecules/table/index.d.ts +0 -1
  165. package/lib/molecules/table/public_api.d.ts +0 -4
  166. package/lib/molecules/table/table-main/gtr-table-main.component.d.ts +0 -62
  167. package/lib/molecules/table/table-responsive/gtr-table-responsive.component.d.ts +0 -84
  168. package/lib/molecules/tabs/index.d.ts +0 -1
  169. package/lib/molecules/tabs/public_api.d.ts +0 -2
  170. package/lib/molecules/tabs/tab/gtr-tab.component.d.ts +0 -17
  171. package/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.d.ts +0 -24
  172. package/lib/molecules/tags-input/helpers/functions.d.ts +0 -2
  173. package/lib/molecules/tags-input/index.d.ts +0 -1
  174. package/lib/molecules/tags-input/public_api.d.ts +0 -1
  175. package/lib/molecules/tags-input/tag-input/gtr-tags-input.component.d.ts +0 -57
  176. package/lib/molecules/time-picker/gtr-time-picker.component.d.ts +0 -196
  177. package/lib/molecules/time-picker/gtr-time.utils.d.ts +0 -57
  178. package/lib/molecules/time-picker/index.d.ts +0 -1
  179. package/lib/molecules/time-picker/public_api.d.ts +0 -2
  180. package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-am-pm.component.d.ts +0 -38
  181. package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-col.component.d.ts +0 -38
  182. package/parameters/colors.parameter.d.ts +0 -8
  183. package/parameters/variables.parameters.d.ts +0 -7
  184. package/public-api.d.ts +0 -37
package/index.d.ts CHANGED
@@ -1 +1,3525 @@
1
- export * from './public-api';
1
+ import { IsActiveMatchOptions } from '@angular/router';
2
+ import * as i0 from '@angular/core';
3
+ import { OnInit, AfterViewInit, ElementRef, EventEmitter, Renderer2, OnDestroy, ChangeDetectorRef, OnChanges, TemplateRef, ViewContainerRef, SimpleChanges, QueryList, KeyValueDiffers, AfterContentInit, NgZone, PipeTransform, AfterViewChecked, AfterContentChecked } from '@angular/core';
4
+ import { ControlValueAccessor, NgControl, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
5
+ import * as rxjs from 'rxjs';
6
+ import { Subject, Subscription } from 'rxjs';
7
+ import { BooleanInput } from '@angular/cdk/coercion';
8
+ import { BreakpointObserver } from '@angular/cdk/layout';
9
+ import { Options, Placement } from '@popperjs/core';
10
+
11
+ declare enum BreakpointInfix {
12
+ xs = "xs",
13
+ sm = "sm",
14
+ md = "md",
15
+ lg = "lg",
16
+ xl = "xl",
17
+ xxl = "xxl"
18
+ }
19
+ type BreakpointInfixStrings = keyof typeof BreakpointInfix;
20
+ type Breakpoints = BreakpointInfixStrings | string;
21
+ type Sizes = 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
22
+ type Colors = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string;
23
+ type ColorsGradient = `${Colors}-gradient`;
24
+ type BackgroundColors = Colors | 'body' | 'white' | 'transparent';
25
+ type Directions = 'down' | 'up' | 'start' | 'end' | '';
26
+ type TextColors = Colors | 'body' | 'white' | 'muted' | 'black-50' | 'white-50' | 'high-emphasis' | 'medium-emphasis' | 'disabled' | 'high-emphasis-inverse' | 'medium-emphasis-inverse' | 'disabled-inverse';
27
+ type Alignment = 'baseline' | 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom';
28
+ type BadgePositions = 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start' | string | undefined;
29
+ type Placements = 'auto' | 'auto-start' | 'auto-end' | 'top-end' | 'top' | 'top-start' | 'bottom-end' | 'bottom' | 'bottom-start' | 'right-start' | 'right' | 'right-end' | 'left-start' | 'left' | 'left-end' | undefined;
30
+ type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string;
31
+ type Triggers = 'hover' | 'focus' | 'click';
32
+ type Positions = 'fixed' | 'sticky';
33
+ type InputType = 'button' | 'color' | 'date' | 'datetime' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'checkbox' | 'radio';
34
+ interface INavLinkProps {
35
+ queryParams?: {
36
+ [k: string]: any;
37
+ };
38
+ fragment?: string;
39
+ queryParamsHandling?: 'merge' | 'preserve' | '' | null;
40
+ preserveFragment?: boolean;
41
+ skipLocationChange?: boolean;
42
+ replaceUrl?: boolean;
43
+ state?: {
44
+ [k: string]: any;
45
+ };
46
+ routerLinkActiveOptions?: {
47
+ exact: boolean;
48
+ } | IsActiveMatchOptions;
49
+ routerLinkActive?: string | string[];
50
+ ariaCurrentWhenActive?: 'page' | 'step' | 'location' | 'date' | 'time' | true | false;
51
+ }
52
+ interface INavAttributes {
53
+ [propName: string]: any;
54
+ }
55
+ type ButtonType$1 = 'button' | 'submit' | 'reset';
56
+
57
+ type BadgeColor = 'danger' | 'info' | 'brown' | 'pink' | 'purple' | 'blue' | 'warning' | 'success' | 'dark' | 'gray' | 'dark-green' | 'indigo' | 'default';
58
+ declare class GtrBadgeComponent {
59
+ name: string;
60
+ dataTransactionName: string;
61
+ shape: 'default' | 'round';
62
+ type: 'pill' | 'icon' | 'dot';
63
+ color: BadgeColor;
64
+ ariaLabel: string | undefined;
65
+ hidden: boolean;
66
+ position: 'default' | 'overlap';
67
+ id: string;
68
+ testid: string;
69
+ positionProperty: {
70
+ top?: string;
71
+ bottom?: string;
72
+ left?: string;
73
+ right?: string;
74
+ align?: string;
75
+ };
76
+ backgroundColor?: string;
77
+ iconName?: string;
78
+ constructor();
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrBadgeComponent, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrBadgeComponent, "gtr-badge", never, { "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "position": { "alias": "position"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testid": { "alias": "testid"; "required": false; }; "positionProperty": { "alias": "positionProperty"; "required": false; }; "backgroundColor": { "alias": "background-color"; "required": false; }; "iconName": { "alias": "icon-name"; "required": false; }; }, {}, never, ["*"], true, never>;
81
+ static ngAcceptInputType_hidden: unknown;
82
+ }
83
+
84
+ declare class GtrButtonDirective {
85
+ /**
86
+ * Toggle the active state for the component. [docs]
87
+ * @type boolean
88
+ */
89
+ active: string | boolean;
90
+ /**
91
+ * Sets the color context of the component to one of Gettrx’s themed colors. [docs]
92
+ * @type Colors
93
+ */
94
+ color?: Colors;
95
+ /**
96
+ * Toggle the disabled state for the component.
97
+ * @type boolean
98
+ */
99
+ disabled: string | boolean;
100
+ /**
101
+ * Select the shape of the component.
102
+ * @type { 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string }
103
+ */
104
+ shape?: Shapes;
105
+ /**
106
+ * Size the component small or large.
107
+ * @type {'sm' | 'lg'}
108
+ */
109
+ size?: 'sm' | 'lg' | '';
110
+ /**
111
+ * Specifies the type of button. Always specify the type attribute for the `<button>` element.
112
+ * Different browsers may use different default types for the `<button>` element.
113
+ */
114
+ type: ButtonType$1;
115
+ /**
116
+ * Set the button variant to an outlined button or a ghost button.
117
+ * @type {'ghost' | 'outline'}
118
+ */
119
+ variant?: 'ghost' | 'outline';
120
+ get hostClasses(): any;
121
+ get ariaDisabled(): string | true | null;
122
+ get isActive(): boolean | null;
123
+ get attrDisabled(): "" | null;
124
+ get tabIndex(): string | null;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrButtonDirective, never>;
126
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrButtonDirective, "[gtrButton]", ["gtrButton"], { "active": { "alias": "active"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
127
+ static ngAcceptInputType_active: unknown;
128
+ static ngAcceptInputType_disabled: unknown;
129
+ }
130
+
131
+ declare class GtrButtonCloseDirective extends GtrButtonDirective {
132
+ /**
133
+ * Change the default color to white.
134
+ * @type boolean
135
+ */
136
+ white: string | boolean;
137
+ get hostClasses(): any;
138
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrButtonCloseDirective, never>;
139
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrButtonCloseDirective, "[gtrButtonClose]", never, { "white": { "alias": "white"; "required": false; }; }, {}, never, never, true, never>;
140
+ static ngAcceptInputType_white: unknown;
141
+ }
142
+
143
+ type ButtonType = 'button' | 'reset' | 'submit';
144
+ type ButtonColor = 'primary' | 'secondary' | 'success' | 'danger' | 'gray';
145
+ type ButtonVariant = 'raised' | 'flat' | 'outline' | 'link' | 'icon';
146
+
147
+ declare class GtrButtonComponent implements OnInit {
148
+ classMap: any;
149
+ /** (optional) Button type */
150
+ type?: ButtonType | any;
151
+ /** (optional) Button type */
152
+ btnId: string;
153
+ /** (optional) Button type */
154
+ name: string;
155
+ dataTransactionName: string;
156
+ /**
157
+ * (optional) color.
158
+ * @default primary
159
+ */
160
+ color?: ButtonColor | any;
161
+ /**
162
+ * (optional) loading.
163
+ * @default isLoading
164
+ */
165
+ isLoading?: boolean;
166
+ /**
167
+ * Optional variant. <br />
168
+ * `raised` : Rectangular contained button w/ elevation <br />
169
+ * `flat` : Rectangular contained button w/ no elevation <br />
170
+ * `outline` : Rectangular outlined button w/ no elevation <br />
171
+ * `link` : Rectangular text button w/ no elevation <br />
172
+ * `icon` : Circular button with a transparent background, meant to contain an icon
173
+ */
174
+ variant?: ButtonVariant | any;
175
+ /** (optional) If `true`, the button is disabled */
176
+ disabled?: boolean;
177
+ getCssClassMap(): {
178
+ [x: string]: boolean | undefined;
179
+ "button--loading": boolean | undefined;
180
+ disabled: boolean | undefined;
181
+ };
182
+ ngOnInit(): void;
183
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrButtonComponent, never>;
184
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrButtonComponent, "gtr-button", never, { "type": { "alias": "type"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "color": { "alias": "color"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
185
+ }
186
+
187
+ declare class GtrButtonDropdownComponent implements AfterViewInit {
188
+ private elementRef;
189
+ csvLoader: boolean;
190
+ isOpened: boolean;
191
+ constructor(elementRef: ElementRef);
192
+ isDropdownOpen: boolean;
193
+ dropdownPosition: {
194
+ top: string;
195
+ left: string;
196
+ };
197
+ options: any;
198
+ color: string;
199
+ backgroundColor: string;
200
+ /** (optional) Button type */
201
+ type?: any;
202
+ /** (optional) Button type */
203
+ btnId: string;
204
+ /** (optional) Button type */
205
+ name: string;
206
+ dataTransactionName: string;
207
+ dropdownMenu: ElementRef;
208
+ onSelect: EventEmitter<any>;
209
+ toggleDropdown(event: Event): void;
210
+ closeDropdown(event: Event): void;
211
+ ngAfterViewInit(): void;
212
+ onScroll: (event: Event) => void;
213
+ updateDropdownPosition(): void;
214
+ onSelectOption(option: string | number): void;
215
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrButtonDropdownComponent, never>;
216
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrButtonDropdownComponent, "gtr-button-dropdown", never, { "options": { "alias": "options"; "required": false; }; "color": { "alias": "color"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "type": { "alias": "type"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
217
+ }
218
+
219
+ declare class GtrSwitchComponent implements ControlValueAccessor {
220
+ ngControl: NgControl;
221
+ /**
222
+ * Checked state for gtr switch button
223
+ * @returns boolean value
224
+ */
225
+ checked: boolean;
226
+ /**
227
+ * Id for debugging the element
228
+ * @returns boolean value
229
+ */
230
+ switchId: string;
231
+ /**
232
+ * Disabled state for switch button
233
+ * accept boolean value
234
+ */
235
+ disabled: boolean;
236
+ /**
237
+ * Readonly state for switch button
238
+ * accept boolean value
239
+ */
240
+ readonly: boolean;
241
+ /**
242
+ * Readonly state for switch button
243
+ * accept boolean value
244
+ */
245
+ tabIndex: number;
246
+ /**
247
+ * To add label text for switches
248
+ */
249
+ label?: string | number;
250
+ dataTransactionName: string;
251
+ /**
252
+ * To detect value change events in gtr switch
253
+ * @returns Custom event for latest checked state
254
+ */
255
+ gtrChange: EventEmitter<boolean>;
256
+ constructor(ngControl: NgControl);
257
+ onChanged: any;
258
+ onTouched: any;
259
+ writeValue(value: boolean): void;
260
+ registerOnChange(fn: any): void;
261
+ registerOnTouched(fn: any): void;
262
+ setDisabledState?(isDisabled: boolean): void;
263
+ /**
264
+ * Local method to handle keyboard events for switch button
265
+ */
266
+ handleKeyDown(event: KeyboardEvent): void;
267
+ /**
268
+ * Local method to handle click events for switch button
269
+ */
270
+ handleClick(): void;
271
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrSwitchComponent, [{ optional: true; self: true; }]>;
272
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrSwitchComponent, "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; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "gtrChange": "gtrChange"; }, never, never, true, never>;
273
+ }
274
+
275
+ type positionType = 'top' | 'bottom' | 'left' | 'right';
276
+
277
+ declare class GtrTooltipComponent implements AfterViewInit {
278
+ tooltipElement: ElementRef;
279
+ /**
280
+ * The tooltip element
281
+ */
282
+ contentEl?: ElementRef;
283
+ /**
284
+ * The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
285
+ */
286
+ handleResizeScroll(): void;
287
+ constructor(tooltipElement: ElementRef);
288
+ /**
289
+ * The tooltip content
290
+ */
291
+ tooltipId: string;
292
+ /**
293
+ * The tooltip content
294
+ */
295
+ content?: string;
296
+ /**
297
+ * The tooltip position
298
+ */
299
+ position: positionType;
300
+ /**
301
+ * The popover auto adjust position
302
+ */
303
+ autoAdjustable: boolean;
304
+ dataTransactionName: string;
305
+ /**
306
+ * The tooltip adjustable position
307
+ */
308
+ newPosition: string;
309
+ /**
310
+ * The watch decorator fires event when tooltip position changed
311
+ */
312
+ adjustPosition(): Promise<void>;
313
+ /**
314
+ * The click event for hide tooltip visibility
315
+ */
316
+ hideTooltip(): void;
317
+ /**
318
+ * The componentWillLoad hook
319
+ */
320
+ ngAfterViewInit(): void;
321
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTooltipComponent, never>;
322
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTooltipComponent, "gtr-tooltip", never, { "tooltipId": { "alias": "tooltipId"; "required": false; }; "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "autoAdjustable": { "alias": "autoAdjustable"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, {}, never, ["*"], true, never>;
323
+ }
324
+
325
+ interface GtrInputDataResponse {
326
+ event: Event | KeyboardEvent;
327
+ value: string | number;
328
+ inputstate: string;
329
+ invalid: boolean;
330
+ }
331
+
332
+ declare class GtrInputComponent implements ControlValueAccessor, AfterViewInit {
333
+ ngControl: NgControl;
334
+ private renderer;
335
+ constructor(ngControl: NgControl, renderer: Renderer2);
336
+ onChanged: any;
337
+ onTouched: any;
338
+ registerOnChange(fn: (value: any) => void): void;
339
+ writeValue(obj: any): void;
340
+ registerOnTouched(fn: () => void): void;
341
+ setDisabledState(isDisabled: boolean): void;
342
+ ngAfterViewInit(): void;
343
+ /**
344
+ * The Skeleton loading
345
+ */
346
+ inputWrapperId: string;
347
+ /**
348
+ * The Skeleton loading
349
+ */
350
+ loading: boolean;
351
+ inputType: string;
352
+ /**
353
+ * The input type
354
+ */
355
+ set type(value: string);
356
+ name: string;
357
+ dataTransactionName: string;
358
+ /**
359
+ * The input value
360
+ */
361
+ value: string | number;
362
+ /**
363
+ * The input pleaceholder
364
+ */
365
+ placeholder: string;
366
+ /**
367
+ * The input icon
368
+ */
369
+ inputIcon: string;
370
+ /**
371
+ * The input icon size
372
+ */
373
+ iconSize: number;
374
+ /**
375
+ * The input icon color
376
+ */
377
+ iconColor: string;
378
+ /**
379
+ * The required
380
+ */
381
+ iconPosition: 'start' | 'end';
382
+ /**
383
+ * The input icon font weight
384
+ */
385
+ iconFontWeight: string;
386
+ /**
387
+ * The input label
388
+ */
389
+ inputLabel: string;
390
+ /**
391
+ * The disabled input
392
+ */
393
+ disabled: boolean;
394
+ /**
395
+ * The check label
396
+ */
397
+ validateLabel: boolean;
398
+ /**
399
+ * The disabled input
400
+ */
401
+ isNumber: boolean;
402
+ /**
403
+ * The readonly input
404
+ */
405
+ readonly: boolean;
406
+ /**
407
+ * The readonly input
408
+ */
409
+ isOnlyView: boolean;
410
+ /**
411
+ * The default validation
412
+ */
413
+ defaultValidation: boolean;
414
+ /**
415
+ * The required
416
+ */
417
+ required: boolean;
418
+ /**
419
+ * The input valid boolean
420
+ */
421
+ isValid: boolean;
422
+ /**
423
+ * The input valid boolean
424
+ */
425
+ crop: boolean;
426
+ /**
427
+ * The error state
428
+ */
429
+ hasError: boolean;
430
+ /**
431
+ * The icon input field
432
+ */
433
+ isIcon: boolean;
434
+ /**
435
+ * The
436
+ */
437
+ isTouched: boolean;
438
+ /**
439
+ * The error message to be shown
440
+ */
441
+ errorMsg: string;
442
+ /**
443
+ * The input change eventemitter
444
+ */
445
+ inputChanged: EventEmitter<GtrInputDataResponse>;
446
+ /**
447
+ * The error eventemitter
448
+ */
449
+ handleError: EventEmitter<Error>;
450
+ /**
451
+ * The input type validator
452
+ */
453
+ private inputFields;
454
+ /**
455
+ * The input data to be send when input value changes
456
+ */
457
+ private data;
458
+ /**
459
+ * The input unique id
460
+ */
461
+ inputId?: string;
462
+ /**
463
+ * The input unique id
464
+ */
465
+ setFocus: boolean;
466
+ /**
467
+ * The component function to handle input change
468
+ */
469
+ handledKeyPressed(event: Event): void;
470
+ /**
471
+ * The component function to handle input change
472
+ */
473
+ handleInput(event: Event): void;
474
+ /**
475
+ * The component function to handle input on focus event
476
+ */
477
+ handleOnfocus(): void;
478
+ /**
479
+ * The component function to handle input on blur event
480
+ */
481
+ handleOnBlur(): void;
482
+ /**
483
+ * The component function to verify error input messages
484
+ */
485
+ hasErrorValidate: () => void;
486
+ /**
487
+ * The component function to verify input type
488
+ */
489
+ isDesiredInput(): boolean;
490
+ /**
491
+ * The decorator used to detect every change accurred for input and call function on change
492
+ */
493
+ validateInput(): string | null;
494
+ get isShowCustomError(): boolean;
495
+ get isShowDefaultError(): boolean;
496
+ get isInputInvalid(): boolean;
497
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputComponent, [{ optional: true; self: true; }, null]>;
498
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputComponent, "gtr-input", never, { "inputWrapperId": { "alias": "inputWrapperId"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "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; }; "crop": { "alias": "crop"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "setFocus": { "alias": "setFocus"; "required": false; }; }, { "inputChanged": "inputChanged"; "handleError": "handleError"; }, never, ["[slot='custom-error']"], true, never>;
499
+ }
500
+
501
+ interface GtrTextareaDataResponse {
502
+ value: string | number;
503
+ textareastate: string;
504
+ invalid: boolean;
505
+ }
506
+
507
+ declare class GtrTextareaComponent implements ControlValueAccessor {
508
+ ngControl: NgControl;
509
+ constructor(ngControl: NgControl);
510
+ onChanged: any;
511
+ onTouched: any;
512
+ writeValue(obj: any): void;
513
+ registerOnChange(fn: any): void;
514
+ registerOnTouched(fn: any): void;
515
+ setDisabledState?(isDisabled: boolean): void;
516
+ name: string;
517
+ dataTransactionName: string;
518
+ /**
519
+ * The textarea value
520
+ */
521
+ value: string;
522
+ /**
523
+ * The textarea pleaceholder
524
+ */
525
+ placeholder: string;
526
+ /**
527
+ * The textarea loading state
528
+ */
529
+ loading: boolean;
530
+ /**
531
+ * The textarea label
532
+ */
533
+ textareaLabel: string;
534
+ /**
535
+ * The disabled textarea
536
+ */
537
+ disabled: boolean;
538
+ /**
539
+ * The wrapper id textarea
540
+ */
541
+ textAreaWrapperId: string;
542
+ /**
543
+ * The readonly textarea
544
+ */
545
+ readonly: boolean;
546
+ /**
547
+ * The textarea valid boolean
548
+ */
549
+ isValid: boolean;
550
+ /**
551
+ * The readonly textarea
552
+ */
553
+ isOnlyView: boolean;
554
+ /**
555
+ * The default validation
556
+ */
557
+ defaultValidation?: boolean;
558
+ /**
559
+ * The error state
560
+ */
561
+ hasError?: boolean;
562
+ /**
563
+ * The is touched
564
+ */
565
+ isTouched: boolean;
566
+ /**
567
+ * The error message to be shown
568
+ */
569
+ errorMsg: string;
570
+ /**
571
+ * The textarea change eventemitter
572
+ */
573
+ textareaChanged: EventEmitter<GtrTextareaDataResponse>;
574
+ /**
575
+ * The error eventemitter
576
+ */
577
+ handleError: EventEmitter<any>;
578
+ /**
579
+ * The textarea data to be send when textarea value changes
580
+ */
581
+ private data;
582
+ /**
583
+ * The textarea unique id
584
+ */
585
+ textareaId: string;
586
+ /**
587
+ * The component function to handle textarea change
588
+ */
589
+ handleTextarea(event: Event): void;
590
+ /**
591
+ * The component function to handle textarea on focus event
592
+ */
593
+ handleOnfocus(): void;
594
+ /**
595
+ * The component function to handle textarea on blur event
596
+ */
597
+ handleOnBlur(): void;
598
+ /**
599
+ * The component function to verify error textarea messages
600
+ */
601
+ hasErrorValidate: () => void;
602
+ /**
603
+ * The componentWillLoad hook
604
+ */
605
+ componentWillLoad(): void;
606
+ /**
607
+ * The decorator used to detect every change accurred for textarea and call function on change
608
+ */
609
+ validatetextarea(): string | null;
610
+ get isShowCustomError(): boolean;
611
+ get isShowDefaultError(): boolean;
612
+ get isInputInvalid(): boolean;
613
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTextareaComponent, [{ optional: true; self: true; }]>;
614
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTextareaComponent, "gtr-textarea", never, { "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "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, ["[slot='custom-error']"], true, never>;
615
+ }
616
+
617
+ declare class GtrIconComponent implements OnDestroy {
618
+ dataTransactionName: string;
619
+ /**
620
+ * The font icon
621
+ */
622
+ name: string;
623
+ /**
624
+ * The icon width
625
+ */
626
+ weight: string;
627
+ /**
628
+ * The icon color
629
+ */
630
+ color: string;
631
+ /**
632
+ * The icon size
633
+ */
634
+ set size(value: number);
635
+ /**
636
+ * The element id
637
+ */
638
+ iconId: string;
639
+ height: string;
640
+ ngOnDestroy(): void;
641
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrIconComponent, never>;
642
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrIconComponent, "gtr-icon", never, { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "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, true, never>;
643
+ }
644
+
645
+ declare class GtrPopoverComponent implements OnInit, OnDestroy {
646
+ private cdr;
647
+ position: 'top' | 'bottom' | 'left' | 'right';
648
+ isOpened: boolean;
649
+ showPositionIndicator: boolean;
650
+ moveX?: number | null;
651
+ moveY?: number | null;
652
+ padding?: number | null;
653
+ marginTop?: number | null;
654
+ marginBottom?: number | null;
655
+ marginLeft?: number | null;
656
+ marginRight?: number | null;
657
+ scrollToBody?: boolean | null;
658
+ closeOnClickOutside: boolean;
659
+ dataTransactionName: string;
660
+ id: string;
661
+ testId: string;
662
+ stateChanged: EventEmitter<any>;
663
+ popoverEl: ElementRef | undefined;
664
+ contentEl: ElementRef | undefined;
665
+ isVisible: boolean;
666
+ adjustedPosition: string;
667
+ positionMargin: string;
668
+ private appendedToBody;
669
+ private originalParent;
670
+ private scrollParent;
671
+ onResize(event: Event): void;
672
+ constructor(cdr: ChangeDetectorRef);
673
+ ngOnInit(): void;
674
+ ngOnDestroy(): void;
675
+ handleBodyScroll: () => void;
676
+ ngAfterViewInit(): void;
677
+ findScrollParent(element: HTMLElement): HTMLElement | null;
678
+ handleScroll: () => void;
679
+ togglePopover(): void;
680
+ moveToBody(): void;
681
+ restoreContent(): void;
682
+ handleClickOutside(event: Event): void;
683
+ handleKeyUp(event: KeyboardEvent): void;
684
+ popoverContentClicked(event: Event): void;
685
+ adjustPopoverPosition(): void;
686
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrPopoverComponent, never>;
687
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrPopoverComponent, "gtr-popover", never, { "position": { "alias": "position"; "required": false; }; "isOpened": { "alias": "isOpened"; "required": false; }; "showPositionIndicator": { "alias": "showPositionIndicator"; "required": false; }; "moveX": { "alias": "moveX"; "required": false; }; "moveY": { "alias": "moveY"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "scrollToBody": { "alias": "scrollToBody"; "required": false; }; "closeOnClickOutside": { "alias": "closeOnClickOutside"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "stateChanged": "stateChanged"; }, never, ["[slot='gtr-popover-trigger']", "[slot='gtr-popover-content']"], true, never>;
688
+ static ngAcceptInputType_isOpened: unknown;
689
+ static ngAcceptInputType_showPositionIndicator: unknown;
690
+ static ngAcceptInputType_closeOnClickOutside: unknown;
691
+ }
692
+
693
+ declare class GtrRadioButtonComponent implements OnInit, AfterViewInit, ControlValueAccessor {
694
+ ngControl: NgControl;
695
+ radioEl: ElementRef;
696
+ constructor(ngControl: NgControl, radioEl: ElementRef);
697
+ onChanged: any;
698
+ onTouched: any;
699
+ registerOnChange(fn: (value: any) => void): void;
700
+ writeValue(obj: any): void;
701
+ registerOnTouched(fn: () => void): void;
702
+ /**
703
+ * The radio input name
704
+ */
705
+ name: string;
706
+ dataTransactionName: string;
707
+ /**
708
+ * The radio input value
709
+ */
710
+ value: string;
711
+ /**
712
+ * The radio input disabled state
713
+ */
714
+ disabled?: boolean;
715
+ /**
716
+ * The radio input checked state
717
+ */
718
+ checked: boolean;
719
+ /**
720
+ * The radio input label
721
+ */
722
+ label?: string;
723
+ /**
724
+ * The radio input tabindex
725
+ */
726
+ tabIndexNav?: number;
727
+ /**
728
+ * The radio input value changed eventemitter
729
+ */
730
+ valueChanged: EventEmitter<any>;
731
+ /**
732
+ * The radio input id
733
+ */
734
+ radioId: string;
735
+ /**
736
+ * The radio input id
737
+ */
738
+ groupName: string;
739
+ /**
740
+ * The componentDidLoad hook
741
+ */
742
+ ngAfterViewInit(): void;
743
+ /**
744
+ * The decorator is used to select value via keyboard
745
+ */
746
+ handleKeyDown(event: KeyboardEvent): void;
747
+ /**
748
+ * The component function for toggle radio checked state
749
+ */
750
+ handleClick(): void;
751
+ /**
752
+ * The component function for toggle radio checked state
753
+ */
754
+ toggleCheckedState(): void;
755
+ /**
756
+ * The component function for selecting previous radio element
757
+ */
758
+ selectPreviousOption(): void;
759
+ /**
760
+ * The component function for check the active element
761
+ */
762
+ isElementFocused: (element: any) => boolean;
763
+ /**
764
+ * The component function for selecting next radio element
765
+ */
766
+ selectNextOption(): void;
767
+ /**
768
+ * The component function for deselect unchecked values
769
+ */
770
+ deselectOtherOptions(): void;
771
+ /**
772
+ * The component function for set changed value and send selected value via eventemitter
773
+ */
774
+ handleChange(event?: any): void;
775
+ detectEnter(e: any): void;
776
+ ngOnInit(): void;
777
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrRadioButtonComponent, [{ optional: true; self: true; }, null]>;
778
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrRadioButtonComponent, "gtr-radio-button", never, { "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "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']"], true, never>;
779
+ static ngAcceptInputType_disabled: unknown;
780
+ static ngAcceptInputType_checked: unknown;
781
+ }
782
+
783
+ declare class GtrSkeletonDirective implements OnChanges {
784
+ private tpl;
785
+ private vcr;
786
+ isLoading: boolean;
787
+ size: number;
788
+ width: string;
789
+ height: string;
790
+ className: string;
791
+ constructor(tpl: TemplateRef<any>, vcr: ViewContainerRef);
792
+ ngOnChanges(changes: SimpleChanges): void;
793
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrSkeletonDirective, never>;
794
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrSkeletonDirective, "[skeleton]", never, { "isLoading": { "alias": "skeleton"; "required": false; }; "size": { "alias": "skeletonRepeat"; "required": false; }; "width": { "alias": "skeletonWidth"; "required": false; }; "height": { "alias": "skeletonHeight"; "required": false; }; "className": { "alias": "skeletonClassName"; "required": false; }; }, {}, never, never, true, never>;
795
+ }
796
+
797
+ declare class GtrSkeletonComponent {
798
+ private host;
799
+ width: string;
800
+ height: string;
801
+ className: string;
802
+ constructor(host: ElementRef<HTMLElement>);
803
+ ngOnInit(): void;
804
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrSkeletonComponent, never>;
805
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrSkeletonComponent, "gtr-skeleton", never, {}, {}, never, never, true, never>;
806
+ }
807
+
808
+ type RGB$1 = `rgb(${number}, ${number}, ${number})`;
809
+ type RGBA$1 = `rgba(${number}, ${number}, ${number}, ${number})`;
810
+ type HEX$1 = `#${string}`;
811
+ type GtrToasterType = 'success' | 'warning' | 'info' | 'error';
812
+ interface GtrToasterEvent {
813
+ heading: string;
814
+ type: GtrToasterType;
815
+ message?: string;
816
+ backgroundColor?: RGB$1 | RGBA$1 | HEX$1;
817
+ color?: RGB$1 | RGBA$1 | HEX$1;
818
+ messageColor?: RGB$1 | RGBA$1 | HEX$1;
819
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center-right' | 'center-left';
820
+ }
821
+
822
+ declare class GtrToasterService {
823
+ private toastSubject;
824
+ showToast(config?: GtrToasterEvent, duration?: number, data?: any): void;
825
+ showError(message?: string, duration?: number): void;
826
+ showSuccess(message?: string, duration?: number): void;
827
+ showWarning(message?: string, duration?: number): void;
828
+ showInfo(message?: string, duration?: number): void;
829
+ getToastSubject(): Subject<any>;
830
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrToasterService, never>;
831
+ static ɵprov: i0.ɵɵInjectableDeclaration<GtrToasterService>;
832
+ }
833
+
834
+ declare class GtrToasterComponent {
835
+ private toasterV2Service;
836
+ id: string;
837
+ testId: string;
838
+ dataTransactionName: string;
839
+ toasterElement?: ElementRef<HTMLDivElement>;
840
+ duration: number;
841
+ toasterData: GtrToasterEvent;
842
+ open: boolean;
843
+ timeout: any;
844
+ resolvePromise: (data?: any) => void;
845
+ toastSubscription: Subscription;
846
+ constructor(toasterV2Service: GtrToasterService);
847
+ ngOnInit(): void;
848
+ ngOnDestroy(): void;
849
+ showToast(config: any, duration: number, data?: any): Promise<any>;
850
+ scheduleHideToast(duration: number): void;
851
+ hideToast(): void;
852
+ handleKeyDown(event: KeyboardEvent): void;
853
+ subscribeToToasts(): void;
854
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrToasterComponent, never>;
855
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrToasterComponent, "gtr-toaster", never, { "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, {}, never, never, true, never>;
856
+ }
857
+
858
+ declare class GtrDisplayValueComponent {
859
+ /** To manage skeleton loading state of component */
860
+ loading: boolean;
861
+ /** Label value of component */
862
+ label: string;
863
+ /** Value of component */
864
+ value: any;
865
+ /**
866
+ * 'html' Content type is used to show value as an html/text
867
+ * 'projected' Content type is used to show content in ng-content with the help of slot='custom-content' passed as an attribute to its parent container
868
+ */
869
+ contentType: 'html' | 'projected';
870
+ /** id attribute of component */
871
+ id: string;
872
+ /** dataTestId attribute of component */
873
+ dataTestId: string;
874
+ /** Skeleton configurations */
875
+ skeletonConfigs: {
876
+ repeat: number;
877
+ className: string;
878
+ height: string;
879
+ width: string;
880
+ };
881
+ dataTransactionName: string;
882
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDisplayValueComponent, never>;
883
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrDisplayValueComponent, "gtr-display-value", never, { "loading": { "alias": "loading"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "dataTestId": { "alias": "dataTestId"; "required": false; }; "skeletonConfigs": { "alias": "skeletonConfigs"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, {}, never, ["[slot='custom-content']"], true, never>;
884
+ }
885
+
886
+ declare class GtrAccordionComponent {
887
+ /**
888
+ * The accordion title
889
+ */
890
+ header: string;
891
+ /**
892
+ * The accordion status
893
+ */
894
+ status: any;
895
+ id: string;
896
+ testId: string;
897
+ /**
898
+ * The accordion content container class
899
+ */
900
+ justifyContent: string;
901
+ /**
902
+ * The icon prefix url
903
+ */
904
+ prefixIcon: string;
905
+ /**
906
+ * The accordion open state
907
+ */
908
+ opened: boolean;
909
+ /**
910
+ * The accordion icon size
911
+ */
912
+ iconSize: number;
913
+ /**
914
+ * The accordion icon color
915
+ */
916
+ iconColor: string;
917
+ /**
918
+ * The accordion icon font-weight
919
+ */
920
+ iconWeight: string;
921
+ /**
922
+ * The accordion state for allow multiple active accordion sessions
923
+ */
924
+ allowMultiple: boolean;
925
+ /**
926
+ * The accordion state for expand all accordion sessions
927
+ */
928
+ expandAll: boolean;
929
+ /**
930
+ * The accordion arrow icon boolean
931
+ */
932
+ showArrowIcon: boolean;
933
+ dataTransactionName: string;
934
+ /**
935
+ * The accordion data eventemitter
936
+ */
937
+ accordionState: EventEmitter<any>;
938
+ constructor();
939
+ toggleSection(): void;
940
+ onKeyDown(event: KeyboardEvent): void;
941
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrAccordionComponent, never>;
942
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrAccordionComponent, "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; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "accordionState": "accordionState"; }, never, ["*"], true, never>;
943
+ }
944
+
945
+ declare class GtrAccordionWrapperComponent {
946
+ /**
947
+ * The accordion wrapper data eventemitter
948
+ */
949
+ accordionStateChanged: EventEmitter<any>;
950
+ /**
951
+ * The accordion wrapper multiple active screens boolean
952
+ */
953
+ allowMultiple: boolean;
954
+ /**
955
+ * The accordion wrapper identifier
956
+ */
957
+ id: string;
958
+ /**
959
+ * The accordion wrapper testing identifier
960
+ */
961
+ testId: string;
962
+ dataTransactionName: string;
963
+ /**
964
+ * The accordion wrapper expand boolean
965
+ */
966
+ expandAll: boolean;
967
+ /**
968
+ * The accordion wrapper for show arrow icons at end
969
+ */
970
+ showArrowIcon: boolean;
971
+ /**
972
+ * The accordion list from child component
973
+ */
974
+ accordions: QueryList<GtrAccordionComponent>;
975
+ ngAfterViewInit(): void;
976
+ ngAfterContentInit(): void;
977
+ mapAccordion(): void;
978
+ toggleAccordion(selectedAccordion: GtrAccordionComponent): void;
979
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrAccordionWrapperComponent, never>;
980
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrAccordionWrapperComponent, "gtr-accordion-wrapper", never, { "allowMultiple": { "alias": "allowMultiple"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "expandAll": { "alias": "expandAll"; "required": false; }; "showArrowIcon": { "alias": "showArrowIcon"; "required": false; }; }, { "accordionStateChanged": "accordionStateChanged"; }, ["accordions"], ["*"], true, never>;
981
+ }
982
+
983
+ type DateFilterType = (date: Date) => boolean;
984
+ type DayFormatType = 'numeric' | '2-digit' | ((date: Date) => string | number);
985
+ type WeekdayFormatType = number | 'long' | 'narrow' | 'short' | ((date: Date) => string | number);
986
+ interface ICalendarState {
987
+ [key: string]: any;
988
+ calendarDate?: Date | null;
989
+ hoverDate?: Date | null;
990
+ startDate?: Date | null;
991
+ endDate?: Date | null;
992
+ maxDate?: Date | null;
993
+ minDate?: Date | null;
994
+ disabledDates?: (Date | Date[])[];
995
+ range?: boolean;
996
+ view?: string;
997
+ type?: string;
998
+ locale?: string;
999
+ dateFilter?: DateFilterType;
1000
+ dayFormat?: DayFormatType;
1001
+ weekdayFormat?: WeekdayFormatType;
1002
+ navYearFirst?: boolean;
1003
+ showAdjacentDays?: boolean;
1004
+ selectAdjacentDays?: boolean;
1005
+ }
1006
+ declare class GtrCalendarService {
1007
+ private keyValueDiffers;
1008
+ constructor(keyValueDiffers: KeyValueDiffers);
1009
+ private readonly differ;
1010
+ calendarStateObject: ICalendarState;
1011
+ private calendarState;
1012
+ calendarState$: rxjs.Observable<ICalendarState>;
1013
+ update(state: ICalendarState): void;
1014
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarService, never>;
1015
+ static ɵprov: i0.ɵɵInjectableDeclaration<GtrCalendarService>;
1016
+ }
1017
+
1018
+ interface INavigationClick {
1019
+ direction: 'prev' | 'next';
1020
+ years: boolean;
1021
+ }
1022
+ declare class GtrCalendarNavigationComponent implements OnDestroy {
1023
+ private calendarService;
1024
+ constructor(calendarService: GtrCalendarService);
1025
+ dataTransactionName: string;
1026
+ addMonths: number;
1027
+ set calendarDate(value: Date);
1028
+ get calendarDate(): Date;
1029
+ private _calendarDate;
1030
+ navigation: boolean;
1031
+ navYearFirst: boolean;
1032
+ locale: string;
1033
+ view: 'days' | 'months' | 'years';
1034
+ type: 'days' | 'months' | 'years';
1035
+ navigationClick: EventEmitter<INavigationClick>;
1036
+ private calendarStateSubscription;
1037
+ get date(): Date;
1038
+ get hostClasses(): any;
1039
+ ngOnDestroy(): void;
1040
+ calendarStateSubscribe(subscribe?: boolean): void;
1041
+ setView(view: 'days' | 'months' | 'years'): void;
1042
+ handleNavigationClick(direction: 'prev' | 'next', years?: boolean): void;
1043
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarNavigationComponent, never>;
1044
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrCalendarNavigationComponent, "gtr-calendar-navigation", never, { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "addMonths": { "alias": "addMonths"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; }, { "navigationClick": "navigationClick"; }, never, never, true, never>;
1045
+ }
1046
+
1047
+ declare class GtrCalendarMonthComponent implements OnInit, OnDestroy {
1048
+ private calendarService;
1049
+ constructor(calendarService: GtrCalendarService);
1050
+ dataTransactionName: string;
1051
+ addMonths: number;
1052
+ /**
1053
+ * Initial selected date.
1054
+ * @type (Date | null)
1055
+ */
1056
+ set startDate(value: Date | number | string | null | undefined);
1057
+ get startDate(): Date | number | string | null | undefined;
1058
+ _startDate: Date | null;
1059
+ /**
1060
+ * Initial selected to date (range).
1061
+ * @type (Date | null)
1062
+ */
1063
+ set endDate(value: Date | number | string | null | undefined);
1064
+ get endDate(): Date | number | string | null | undefined;
1065
+ _endDate: Date | null;
1066
+ /**
1067
+ * Specify the list of dates that cannot be selected.
1068
+ * @type (Date[] | Date[][])
1069
+ */
1070
+ set disabledDates(value: Date[] | Date[][]);
1071
+ get disabledDates(): Date[] | Date[][];
1072
+ private _disabledDates;
1073
+ /**
1074
+ * Sets the day of start week.
1075
+ * - 0 - Sunday,
1076
+ * - 1 - Monday,
1077
+ * - 2 - Tuesday,
1078
+ * - 3 - Wednesday,
1079
+ * - 4 - Thursday,
1080
+ * - 5 - Friday,
1081
+ * - 6 - Saturday,
1082
+ */
1083
+ set firstDayOfWeek(value: number);
1084
+ get firstDayOfWeek(): number;
1085
+ private _firstDayOfWeek;
1086
+ /**
1087
+ * Sets the default locale for components. If not set, it is inherited from the browser.
1088
+ * @default 'default'
1089
+ */
1090
+ set locale(value: string);
1091
+ get locale(): string;
1092
+ private _locale;
1093
+ /**
1094
+ * Allow range selection.
1095
+ */
1096
+ set range(value: boolean);
1097
+ get range(): boolean;
1098
+ private _range;
1099
+ /**
1100
+ * Set length or format of day name.
1101
+ * @type number | 'long' | 'narrow' | 'short'
1102
+ * @default 'short'
1103
+ */
1104
+ weekdayFormat: WeekdayFormatType;
1105
+ /**
1106
+ * Set calendar view.
1107
+ * @type 'days' | 'months' | 'years'
1108
+ * @default 'days'
1109
+ */
1110
+ set view(value: "days" | "months" | "years");
1111
+ get view(): "days" | "months" | "years";
1112
+ private _view;
1113
+ /**
1114
+ * Set calendar type.
1115
+ * @type 'days' | 'months' | 'years'
1116
+ * @default 'days'
1117
+ */
1118
+ set type(value: "days" | "months" | "years");
1119
+ get type(): "days" | "months" | "years";
1120
+ private _type;
1121
+ /**
1122
+ * Max selectable date.
1123
+ */
1124
+ set maxDate(value: Date | null);
1125
+ get maxDate(): Date | null;
1126
+ private _maxDate;
1127
+ /**
1128
+ * Min selectable date.
1129
+ */
1130
+ set minDate(value: Date | null);
1131
+ get minDate(): Date | null;
1132
+ private _minDate;
1133
+ listOfMonths: any[][];
1134
+ listOfYears: any[][];
1135
+ private calendarStateSubscription;
1136
+ /**
1137
+ * Default date of the component
1138
+ * @type Date
1139
+ */
1140
+ set calendarDate(value: Date | string | number);
1141
+ get calendarDate(): Date;
1142
+ private _calendarDate;
1143
+ dateFilter: DateFilterType;
1144
+ get date(): Date;
1145
+ dayFormat: DayFormatType;
1146
+ selectAdjacentDays: boolean;
1147
+ showAdjacentDays: boolean;
1148
+ touchDevice: boolean;
1149
+ private _monthDetails;
1150
+ get monthDetails(): {
1151
+ date: Date;
1152
+ month: string;
1153
+ }[][];
1154
+ get weekDays(): {
1155
+ date: Date;
1156
+ month: string;
1157
+ }[];
1158
+ ngOnInit(): void;
1159
+ setListOfYears(date: Date): void;
1160
+ setMonthDetails(date?: Date): void;
1161
+ yearNumber(year: any): string;
1162
+ isDateDisabled(date: Date): any;
1163
+ calendarCellTitle(date: Date): string;
1164
+ handleYearCellMouseEnter(year: number): void;
1165
+ handleMonthCellMouseEnter(date: Date, i: number, idx: number): void;
1166
+ handleCellMouseEnter(hoverDate: Date): void;
1167
+ handleYearCellClick(year: any): void;
1168
+ handleYearCellKeyUp($event: KeyboardEvent, year: any): void;
1169
+ handleMonthCellKeyUp($event: KeyboardEvent, i: number, idx: number): void;
1170
+ handleMonthCellClick(i: number, idx: number): void;
1171
+ setCalendarPage(years: number, months?: number, setMonth?: number): void;
1172
+ handleCellMouseLeave(): void;
1173
+ handleDayCellKeyUp($event: KeyboardEvent, date: Date): void;
1174
+ handleDayCellClick(date: Date): void;
1175
+ calendarStateSubscribe(subscribe?: boolean): void;
1176
+ ngOnDestroy(): void;
1177
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarMonthComponent, never>;
1178
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrCalendarMonthComponent, "gtr-calendar-month", ["gtrCalendarMonth"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "addMonths": { "alias": "addMonths"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "range": { "alias": "range"; "required": false; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; }; "view": { "alias": "view"; "required": false; }; "type": { "alias": "type"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; }, {}, never, never, true, never>;
1179
+ }
1180
+
1181
+ declare class GtrCalendarComponent implements OnInit, OnDestroy {
1182
+ private calendarService;
1183
+ static ngAcceptInputType_navigation: BooleanInput;
1184
+ static ngAcceptInputType_navYearFirst: BooleanInput;
1185
+ static ngAcceptInputType_range: BooleanInput;
1186
+ static ngAcceptInputType_selectAdjacentDays: BooleanInput;
1187
+ constructor(calendarService: GtrCalendarService);
1188
+ /**
1189
+ * Default date of the component
1190
+ * @type (Date | string)
1191
+ */
1192
+ set calendarDate(value: Date | string | number);
1193
+ get calendarDate(): Date;
1194
+ private _calendarDate;
1195
+ /**
1196
+ * The number of calendars that render on desktop devices.
1197
+ * @type number
1198
+ * default 1
1199
+ */
1200
+ set calendars(value: number);
1201
+ get calendars(): number;
1202
+ private _calendars;
1203
+ get calendarsArray(): unknown[];
1204
+ /**
1205
+ * Set the format of day name.
1206
+ * @default 'numeric'
1207
+ * @type DayFormatType
1208
+ */
1209
+ set dayFormat(value: DayFormatType);
1210
+ get dayFormat(): DayFormatType;
1211
+ private _dayFormat;
1212
+ /**
1213
+ * Specify the list of dates that cannot be selected.
1214
+ * @type (Date[] | Date[][])
1215
+ */
1216
+ set disabledDates(value: Date[] | Date[][]);
1217
+ get disabledDates(): Date[] | Date[][];
1218
+ private _disabledDates;
1219
+ /**
1220
+ * Initial selected date.
1221
+ * @type (Date | null)
1222
+ */
1223
+ set startDate(value: Date | number | string | null | undefined);
1224
+ get startDate(): Date | number | string | null | undefined;
1225
+ _startDate: Date | null;
1226
+ /**
1227
+ * Initial selected to date (range).
1228
+ * @type (Date | null)
1229
+ */
1230
+ set endDate(value: Date | number | string | null | undefined);
1231
+ get endDate(): Date | number | string | null | undefined;
1232
+ _endDate: Date | null;
1233
+ /**
1234
+ * Sets the day of start week.
1235
+ * - 0 - Sunday,
1236
+ * - 1 - Monday,
1237
+ * - 2 - Tuesday,
1238
+ * - 3 - Wednesday,
1239
+ * - 4 - Thursday,
1240
+ * - 5 - Friday,
1241
+ * - 6 - Saturday,
1242
+ *
1243
+ * @type number
1244
+ * @default 1
1245
+ */
1246
+ set firstDayOfWeek(value: number);
1247
+ get firstDayOfWeek(): number;
1248
+ private _firstDayOfWeek;
1249
+ /**
1250
+ * Sets the default locale for components. If not set, it is inherited from the browser.
1251
+ * @default 'default'
1252
+ */
1253
+ set locale(value: string);
1254
+ get locale(): string;
1255
+ private _locale;
1256
+ /**
1257
+ * Max selectable date.
1258
+ */
1259
+ set maxDate(value: Date | string | null | undefined);
1260
+ get maxDate(): Date | string | null | undefined;
1261
+ private _maxDate;
1262
+ /**
1263
+ * Min selectable date.
1264
+ */
1265
+ set minDate(value: Date | string | null | undefined);
1266
+ get minDate(): Date | string | null | undefined;
1267
+ private _minDate;
1268
+ /**
1269
+ * Show navigation.
1270
+ * @type boolean
1271
+ */
1272
+ set navigation(value: boolean);
1273
+ get navigation(): boolean;
1274
+ private _navigation;
1275
+ /**
1276
+ * Reorder year-month navigation, and render year first.
1277
+ * @type boolean
1278
+ * @default false
1279
+ */
1280
+ set navYearFirst(value: boolean);
1281
+ get navYearFirst(): boolean;
1282
+ private _navYearFirst;
1283
+ /**
1284
+ * Allow range selection.
1285
+ * @type boolean
1286
+ * @default false
1287
+ */
1288
+ set range(value: boolean);
1289
+ get range(): boolean;
1290
+ private _range;
1291
+ /**
1292
+ * Set calendar view.
1293
+ * @type 'days' | 'months' | 'years'
1294
+ * @default 'days'
1295
+ */
1296
+ set view(value: "days" | "months" | "years");
1297
+ get view(): "days" | "months" | "years";
1298
+ private _view;
1299
+ /**
1300
+ * Set calendar type.
1301
+ * @type 'days' | 'months' | 'years'
1302
+ * @default 'days'
1303
+ */
1304
+ set type(value: 'days' | 'months' | 'years');
1305
+ get type(): "days" | "months" | "years";
1306
+ private _type;
1307
+ /**
1308
+ * Set length or format of day name.
1309
+ * @type number | 'long' | 'narrow' | 'short'
1310
+ * @default 'short'
1311
+ */
1312
+ set weekdayFormat(value: WeekdayFormatType);
1313
+ get weekdayFormat(): WeekdayFormatType;
1314
+ private _weekdayFormat;
1315
+ set dateFilter(value: DateFilterType | undefined);
1316
+ /**
1317
+ * Set whether days in adjacent months shown before or after the current month are selectable. This only applies if the `showAdjacentDays` option is set to true.
1318
+ * @type boolean
1319
+ * @default false
1320
+ * @since 4.4.10
1321
+ */
1322
+ selectAdjacentDays: boolean;
1323
+ /**
1324
+ * Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
1325
+ * @type boolean
1326
+ * @default true
1327
+ */
1328
+ showAdjacentDays: boolean;
1329
+ dataTransactionName: string;
1330
+ calendarCellHover: EventEmitter<Date | null>;
1331
+ calendarDateChange: EventEmitter<Date>;
1332
+ endDateChange: EventEmitter<Date | null>;
1333
+ startDateChange: EventEmitter<Date | null>;
1334
+ viewChange: EventEmitter<string>;
1335
+ set hoverDate(value: Date | null);
1336
+ get hoverDate(): Date | null;
1337
+ private _hoverDate;
1338
+ private calendarStateSubscription;
1339
+ get hostClasses(): any;
1340
+ calendarMonths: QueryList<GtrCalendarMonthComponent>;
1341
+ ngOnDestroy(): void;
1342
+ ngOnInit(): void;
1343
+ calendarStateSubscribe(subscribe?: boolean): void;
1344
+ setCalendarPage(years: number, months?: number, setMonth?: number): void;
1345
+ handleNavigationClick(direction: 'prev' | 'next', years?: boolean): void;
1346
+ /**
1347
+ * Clear startDate and endDate
1348
+ * @type void
1349
+ */
1350
+ clearDates(): void;
1351
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrCalendarComponent, never>;
1352
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrCalendarComponent, "gtr-calendar", ["gtrCalendar"], { "calendarDate": { "alias": "calendarDate"; "required": false; }; "calendars": { "alias": "calendars"; "required": false; }; "dayFormat": { "alias": "dayFormat"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; "range": { "alias": "range"; "required": false; }; "view": { "alias": "view"; "required": false; }; "type": { "alias": "type"; "required": false; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "selectAdjacentDays": { "alias": "selectAdjacentDays"; "required": false; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; "viewChange": "viewChange"; }, never, never, true, never>;
1353
+ }
1354
+
1355
+ interface GtrCheckboxValueChanged {
1356
+ value: any;
1357
+ checked: boolean;
1358
+ }
1359
+
1360
+ declare class GtrCheckboxComponent implements ControlValueAccessor {
1361
+ name: string;
1362
+ dataTransactionName: string;
1363
+ /**
1364
+ * To pass identifier to checkbox
1365
+ */
1366
+ identifier: string;
1367
+ /**
1368
+ * To pass additional value to checkbox
1369
+ */
1370
+ value: any;
1371
+ /**
1372
+ * Option to add checkbox label
1373
+ * */
1374
+ label: string;
1375
+ /**
1376
+ * Option to mark checkbox checked
1377
+ * @default false
1378
+ */
1379
+ checked: boolean;
1380
+ /**
1381
+ * Option to mark checkbox disabled
1382
+ * @default false
1383
+ */
1384
+ disabled: boolean;
1385
+ /**
1386
+ * Option to mark checkbox readonly
1387
+ * @default false
1388
+ */
1389
+ readonly: boolean;
1390
+ /**
1391
+ * Option to send event when checkbox value changed
1392
+ */
1393
+ readonly selectionChanged: EventEmitter<GtrCheckboxValueChanged>;
1394
+ private onChange;
1395
+ private onTouch;
1396
+ writeValue(value: any): void;
1397
+ registerOnChange(fn: any): void;
1398
+ registerOnTouched(fn: any): void;
1399
+ setDisabledState(isDisabled: boolean): void;
1400
+ /**
1401
+ * Method to handle click on checkbox input
1402
+ */
1403
+ handleClick(): void;
1404
+ /**
1405
+ * Method to handle keydown events for checkbox input
1406
+ * @param event
1407
+ */
1408
+ handleKeydown(event: KeyboardEvent): void;
1409
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrCheckboxComponent, never>;
1410
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrCheckboxComponent, "gtr-checkbox", never, { "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "selectionChanged": "selectionChanged"; }, never, never, true, never>;
1411
+ }
1412
+
1413
+ declare class GtrModalComponent implements AfterViewInit, ControlValueAccessor {
1414
+ ngControl: NgControl;
1415
+ /**
1416
+ * The modal element
1417
+ */
1418
+ modalElement?: ElementRef;
1419
+ /**
1420
+ * The listen decorator used to close modal via keyboard
1421
+ */
1422
+ handleKeyDown(event: KeyboardEvent): void;
1423
+ constructor(ngControl: NgControl);
1424
+ ngAfterViewInit(): void;
1425
+ writeValue(obj: any): void;
1426
+ registerOnChange(fn: any): void;
1427
+ registerOnTouched(fn: any): void;
1428
+ setDisabledState?(isDisabled: boolean): void;
1429
+ /**
1430
+ * The modal open state
1431
+ */
1432
+ isOpen: boolean;
1433
+ /**
1434
+ * The modal position
1435
+ */
1436
+ modalPosition: 'top' | 'bottom' | 'center';
1437
+ /**
1438
+ * The modal position
1439
+ */
1440
+ modalId: string;
1441
+ /**
1442
+ * The modal size
1443
+ */
1444
+ modalSize: 'small' | 'medium' | 'large';
1445
+ /**
1446
+ * The modal scroll
1447
+ */
1448
+ scrollType: 'scroll-body' | 'scroll-content';
1449
+ /**
1450
+ * The modal header
1451
+ */
1452
+ header: string;
1453
+ /**
1454
+ * The modal header
1455
+ */
1456
+ hasHeading: boolean;
1457
+ dataTransactionName: string;
1458
+ /**
1459
+ * The modal action eventemitter
1460
+ */
1461
+ closeModal: EventEmitter<void>;
1462
+ /**
1463
+ * The connectedCallback hook
1464
+ */
1465
+ /**
1466
+ * The disconnectedCallback hook
1467
+ */
1468
+ /**
1469
+ * The component funtion used to handle click on modal overlay
1470
+ */
1471
+ handleOverlayClick(event: MouseEvent): void;
1472
+ /**
1473
+ * The componentDidUpdate hook
1474
+ */
1475
+ /**
1476
+ * The component funtion used to set focus on modal
1477
+ */
1478
+ setFocusToModal(): void;
1479
+ /**
1480
+ * The component funtion used to set close modal
1481
+ */
1482
+ handleCloseModal(): void;
1483
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrModalComponent, [{ optional: true; self: true; }]>;
1484
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrModalComponent, "gtr-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "modalPosition": { "alias": "modalPosition"; "required": false; }; "modalId": { "alias": "modalId"; "required": false; }; "modalSize": { "alias": "modalSize"; "required": false; }; "scrollType": { "alias": "scrollType"; "required": false; }; "header": { "alias": "header"; "required": false; }; "hasHeading": { "alias": "hasHeading"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["[slot='modal-body']", "[slot='modal-actions']"], true, never>;
1485
+ static ngAcceptInputType_isOpen: unknown;
1486
+ static ngAcceptInputType_hasHeading: unknown;
1487
+ }
1488
+
1489
+ declare class GtrHtmlAttributesDirective implements OnInit {
1490
+ private renderer;
1491
+ private el;
1492
+ gtrHtmlAttr?: {
1493
+ [key: string]: any;
1494
+ };
1495
+ constructor(renderer: Renderer2, el: ElementRef);
1496
+ ngOnInit(): void;
1497
+ private setStyle;
1498
+ private addClass;
1499
+ private setAttrib;
1500
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrHtmlAttributesDirective, never>;
1501
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrHtmlAttributesDirective, "[gtrHtmlAttr]", ["gtrHtmlAttr"], { "gtrHtmlAttr": { "alias": "gtrHtmlAttr"; "required": false; }; }, {}, never, never, true, never>;
1502
+ }
1503
+
1504
+ declare class GtrTemplateIdDirective {
1505
+ templateRef: TemplateRef<any>;
1506
+ id: string;
1507
+ constructor(templateRef: TemplateRef<any>);
1508
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTemplateIdDirective, never>;
1509
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrTemplateIdDirective, "[gtrTemplateId]", never, { "id": { "alias": "gtrTemplateId"; "required": false; }; }, {}, never, never, true, never>;
1510
+ }
1511
+
1512
+ type TCustomRange = [string, Date[]];
1513
+ interface IDateValidation {
1514
+ wrongDate?: boolean;
1515
+ }
1516
+
1517
+ /** Must be a valid date string */
1518
+ declare class GtrDateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit, OnChanges {
1519
+ #private;
1520
+ private breakpointObserver;
1521
+ private localeId;
1522
+ static ngAcceptInputType_closeOnSelect: BooleanInput;
1523
+ static ngAcceptInputType_disabled: BooleanInput;
1524
+ static ngAcceptInputType_navYearFirst: BooleanInput;
1525
+ constructor(breakpointObserver: BreakpointObserver, localeId: string);
1526
+ id: string;
1527
+ testid: string;
1528
+ required: boolean;
1529
+ /**
1530
+ * Set the format of day name.
1531
+ * @default 'numeric'
1532
+ * @type DayFormatType
1533
+ */
1534
+ dayFormat: DayFormatType;
1535
+ /**
1536
+ * The number of calendars that render on desktop devices.
1537
+ * @type number
1538
+ * @default 2
1539
+ */
1540
+ set calendars(value: number);
1541
+ get calendars(): number;
1542
+ private _calendars;
1543
+ /**
1544
+ * Toggle visibility or set the content of the cleaner button.
1545
+ * @type boolean
1546
+ * @default true
1547
+ */
1548
+ set cleaner(value: boolean);
1549
+ get cleaner(): boolean;
1550
+ private _cleaner;
1551
+ /**
1552
+ * Determine if the dropdown should be closed after value setting.
1553
+ * @type boolean
1554
+ * @default false
1555
+ */
1556
+ set closeOnSelect(value: boolean);
1557
+ get closeOnSelect(): boolean;
1558
+ /**
1559
+ * Set date format.
1560
+ * We use Angular formatDate() function, see:
1561
+ * - https://angular.io/api/common/formatDate
1562
+ * - https://angular.io/api/common/DatePipe#pre-defined-format-options
1563
+ */
1564
+ format?: string;
1565
+ /**
1566
+ * Toggle visibility or set the content of the input indicator.
1567
+ * @type boolean
1568
+ * @default true
1569
+ */
1570
+ set indicator(value: boolean);
1571
+ get indicator(): boolean;
1572
+ private _indicator;
1573
+ /**
1574
+ * Toggle the readonly state for the component.
1575
+ * @type boolean
1576
+ * @default false
1577
+ */
1578
+ set inputReadOnly(value: boolean);
1579
+ get inputReadOnly(): boolean;
1580
+ private _inputReadOnly;
1581
+ /**
1582
+ * Reorder year-month navigation, and render year first.
1583
+ * @type boolean
1584
+ * @default false
1585
+ */
1586
+ set navYearFirst(value: boolean);
1587
+ get navYearFirst(): boolean;
1588
+ private _navYearFirst;
1589
+ set alwaysOpen(value: boolean);
1590
+ get alwaysOpen(): boolean;
1591
+ private _alwaysOpen;
1592
+ /**
1593
+ * Specifies short hints that are visible in start date and end date inputs.
1594
+ * type string
1595
+ */
1596
+ set placeholder(value: string | string[]);
1597
+ get placeholder(): string | string[];
1598
+ private _placeholder;
1599
+ /**
1600
+ * Predefined date ranges the user can select from.
1601
+ * @type ICalendarRanges
1602
+ */
1603
+ ranges?: object;
1604
+ set type(value: 'days' | 'months' | 'years');
1605
+ get type(): "days" | "months" | "years";
1606
+ _type: 'days' | 'months' | 'years';
1607
+ /**
1608
+ * Sets the color context of the cancel button to one of Gettrx’s themed colors.
1609
+ * @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
1610
+ * @default 'secondary'
1611
+ */
1612
+ rangesButtonsColor?: Colors;
1613
+ /**
1614
+ * Size the ranges button small or large.
1615
+ * @type 'sm' | 'lg' | ''
1616
+ */
1617
+ rangesButtonsSize: 'sm' | 'lg' | '';
1618
+ /**
1619
+ * Set the ranges button variant to an outlined button or a ghost button.
1620
+ * @type 'outline' | 'ghost' | undefined
1621
+ */
1622
+ rangesButtonsVariant?: 'outline' | 'ghost';
1623
+ /**
1624
+ * Default icon or character that separates two dates.
1625
+ * @type boolean
1626
+ * @default true
1627
+ */
1628
+ set separator(value: boolean);
1629
+ get separator(): boolean;
1630
+ private _separator;
1631
+ /**
1632
+ * Size the component small or large.
1633
+ * @type 'sm' | 'lg' | undefined
1634
+ * @default undefined
1635
+ */
1636
+ size?: 'sm' | 'lg';
1637
+ /**
1638
+ * Provide an additional time selection by adding select boxes to choose time.
1639
+ * @type boolean
1640
+ * @default false
1641
+ */
1642
+ set timepicker(value: boolean);
1643
+ get timepicker(): boolean;
1644
+ private _timepicker;
1645
+ /**
1646
+ * Toggle visual validation feedback.
1647
+ * @type boolean | undefined
1648
+ * @default undefined
1649
+ */
1650
+ valid?: boolean;
1651
+ /**
1652
+ * Toggle visual validation feedback.
1653
+ * @type boolean | undefined
1654
+ * @default undefined
1655
+ */
1656
+ invalid?: boolean;
1657
+ /**
1658
+ * Toggle the visibility of the dropdown date-picker component.
1659
+ * @type boolean
1660
+ * @default false
1661
+ */
1662
+ set visible(value: boolean);
1663
+ get visible(): boolean;
1664
+ private _visible;
1665
+ set startDate(value: Date | null | undefined);
1666
+ get startDate(): Date | null | undefined;
1667
+ private _startDate?;
1668
+ set endDate(value: Date | null | undefined);
1669
+ get endDate(): Date | null | undefined;
1670
+ private _endDate?;
1671
+ calendarDate: Date;
1672
+ disabledDates: Date[] | Date[][];
1673
+ set firstDayOfWeek(value: number);
1674
+ get firstDayOfWeek(): number;
1675
+ private _firstDayOfWeek;
1676
+ locale: string;
1677
+ maxDate: Date | null;
1678
+ minDate: Date | null;
1679
+ name: string;
1680
+ dataTransactionName: string;
1681
+ set navigation(value: boolean);
1682
+ get navigation(): boolean;
1683
+ private _navigation;
1684
+ /**
1685
+ * Allow range selection.
1686
+ * @type boolean
1687
+ * @default false
1688
+ */
1689
+ set range(value: boolean);
1690
+ get range(): boolean;
1691
+ private _range;
1692
+ dateFilter?: DateFilterType;
1693
+ set disabled(value: boolean);
1694
+ get disabled(): boolean;
1695
+ private _disabled;
1696
+ set value(value: any);
1697
+ get value(): any;
1698
+ private _value;
1699
+ /**
1700
+ * Set length or format of day name.
1701
+ * @type WeekdayFormatType
1702
+ * @default 'short'
1703
+ */
1704
+ weekdayFormat: WeekdayFormatType;
1705
+ /**
1706
+ * Optional popper Options object
1707
+ * @type Partial<Options>
1708
+ */
1709
+ popperjsOptions: Partial<Options>;
1710
+ /**
1711
+ * Set whether days in adjacent months shown before or after the current month are selectable. This only applies if the `showAdjacentDays` option is set to true.
1712
+ * @type boolean
1713
+ * @default false
1714
+ */
1715
+ set selectAdjacentDays(value: boolean);
1716
+ get selectAdjacentDays(): boolean;
1717
+ /**
1718
+ * Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
1719
+ * @type boolean
1720
+ * @default true
1721
+ */
1722
+ showAdjacentDays: boolean;
1723
+ readonly valueChange: EventEmitter<Date | Date[] | undefined>;
1724
+ calendarCellHover: EventEmitter<Date | null>;
1725
+ calendarDateChange: EventEmitter<Date>;
1726
+ endDateChange: EventEmitter<Date | null>;
1727
+ startDateChange: EventEmitter<Date | null>;
1728
+ dateValidationChange: EventEmitter<IDateValidation | null>;
1729
+ startDateElementRef: ElementRef<HTMLInputElement>;
1730
+ endDateElementRef: ElementRef<HTMLInputElement>;
1731
+ templates: any;
1732
+ contentTemplates: QueryList<GtrTemplateIdDirective>;
1733
+ protected dateChangeSubscriptions: Subscription[];
1734
+ protected subscribeDateChange(subscribe?: boolean): void;
1735
+ onBlur(): void;
1736
+ isMobile: boolean;
1737
+ customRanges: TCustomRange[];
1738
+ showRanges: boolean;
1739
+ set startDateValue(value: string);
1740
+ get startDateValue(): string;
1741
+ private _startDateValue;
1742
+ set endDateValue(value: string);
1743
+ get endDateValue(): string;
1744
+ _endDateValue: string;
1745
+ get startDatePlaceholder(): string;
1746
+ get endDatePlaceholder(): string;
1747
+ private layoutChanges;
1748
+ startDateInput: FormControl<string | null>;
1749
+ endDateInput: FormControl<string | null>;
1750
+ dateRangeGroup: FormGroup;
1751
+ set inputStartHoverValue(value: Date | null);
1752
+ get inputStartHoverValue(): Date | null;
1753
+ private _inputStartHoverValue;
1754
+ set inputEndHoverValue(value: Date | null);
1755
+ get inputEndHoverValue(): Date | null;
1756
+ private _inputEndHoverValue;
1757
+ get datePickerClasses(): {
1758
+ 'is-valid': boolean;
1759
+ 'is-invalid': boolean;
1760
+ };
1761
+ formatDate(date: Date | null | undefined): string;
1762
+ formatPlaceholder(): string | string[];
1763
+ ngOnInit(): void;
1764
+ ngOnDestroy(): void;
1765
+ ngAfterViewInit(): void;
1766
+ ngOnChanges(changes: SimpleChanges): void;
1767
+ convertValueToDate(value: Date | string | number | undefined | null): Date | null | undefined;
1768
+ getCustomRangeKey(customRange: any): any;
1769
+ setCustomRange(customRange: any): void;
1770
+ handleCalendarCellHover($event: Date | null): void;
1771
+ handleCalendarDateChange($event: Date): void;
1772
+ handleStartDateChange(date: Date | null): void;
1773
+ handleEndDateChange(date: Date | null): void;
1774
+ handleClear($event?: MouseEvent): void;
1775
+ handleStartDateInputChange($event: any): void;
1776
+ handleEndDateInputChange($event: any): void;
1777
+ forbiddenDate(date: Date): any;
1778
+ setInputValue: (elementRef: ElementRef, date: Date | null) => void;
1779
+ onChange: any;
1780
+ onTouched: any;
1781
+ registerOnChange(fn: any): void;
1782
+ registerOnTouched(fn: any): void;
1783
+ setDisabledState(isDisabled: boolean): void;
1784
+ writeValue(value: any): void;
1785
+ handleStartTimeChange(time: Date | undefined): void;
1786
+ handleEndTimeChange(time: Date | undefined): void;
1787
+ handleInputChangeValidations(valid?: boolean): void;
1788
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDateRangePickerComponent, never>;
1789
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrDateRangePickerComponent, "gtr-date-range-picker", ["gtrDateRangePicker"], { "id": { "alias": "id"; "required": false; }; "testid": { "alias": "testid"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dayFormat": { "alias": "dayFormat"; "required": false; }; "calendars": { "alias": "calendars"; "required": false; }; "cleaner": { "alias": "cleaner"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "format": { "alias": "format"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ranges": { "alias": "ranges"; "required": false; }; "type": { "alias": "type"; "required": false; }; "rangesButtonsColor": { "alias": "rangesButtonsColor"; "required": false; }; "rangesButtonsSize": { "alias": "rangesButtonsSize"; "required": false; }; "rangesButtonsVariant": { "alias": "rangesButtonsVariant"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "size": { "alias": "size"; "required": false; }; "timepicker": { "alias": "timepicker"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "range": { "alias": "range"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; }; "popperjsOptions": { "alias": "popperOptions"; "required": false; }; "selectAdjacentDays": { "alias": "selectAdjacentDays"; "required": false; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; }; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; "dateValidationChange": "dateValidationChange"; }, ["contentTemplates"], ["*", "*"], true, never>;
1790
+ static ngAcceptInputType_invalid: unknown;
1791
+ }
1792
+
1793
+ declare class GtrDatePickerComponent extends GtrDateRangePickerComponent {
1794
+ constructor(breakpointObserver: BreakpointObserver, localeId: string);
1795
+ startDateChange: EventEmitter<Date | null>;
1796
+ get range(): boolean;
1797
+ get calendars(): number;
1798
+ get endDate(): null;
1799
+ name: string;
1800
+ dataTransactionName: string;
1801
+ get date(): Date | null | undefined;
1802
+ set date(value: Date | null | undefined);
1803
+ writeValue(value: Date | null | undefined): void;
1804
+ subscribeDateChange(subscribe?: boolean): void;
1805
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDatePickerComponent, never>;
1806
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrDatePickerComponent, "gtr-date-picker", ["gtrDatePicker"], { "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "date": { "alias": "date"; "required": false; }; }, { "startDateChange": "dateChange"; }, never, ["*", "*"], true, never>;
1807
+ }
1808
+
1809
+ declare class GtrDropdownDividerDirective {
1810
+ get hostClasses(): any;
1811
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownDividerDirective, never>;
1812
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownDividerDirective, "[gtrDropdownDivider]", never, {}, {}, never, never, true, never>;
1813
+ }
1814
+
1815
+ declare class GtrDropdownHeaderDirective {
1816
+ get hostClasses(): any;
1817
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownHeaderDirective, never>;
1818
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownHeaderDirective, "[gtrDropdownHeader]", never, {}, {}, never, never, true, never>;
1819
+ }
1820
+
1821
+ interface IGtrDropdownState {
1822
+ visible?: boolean | 'toggle';
1823
+ dropdown?: any;
1824
+ }
1825
+ declare class GtrDropdownService {
1826
+ private dropdownState;
1827
+ dropdownState$: rxjs.Observable<any>;
1828
+ constructor();
1829
+ toggle(state: IGtrDropdownState): void;
1830
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownService, never>;
1831
+ static ɵprov: i0.ɵɵInjectableDeclaration<GtrDropdownService>;
1832
+ }
1833
+
1834
+ declare class GtrDropdownMenuDirective implements OnInit, OnDestroy {
1835
+ elementRef: ElementRef;
1836
+ private dropdownService;
1837
+ constructor(elementRef: ElementRef, dropdownService: GtrDropdownService);
1838
+ /**
1839
+ * Set alignment of dropdown menu.
1840
+ * @type {'start' | 'end' }
1841
+ */
1842
+ alignment?: 'start' | 'end' | string;
1843
+ /**
1844
+ * Toggle the visibility of dropdown menu component.
1845
+ */
1846
+ visible: boolean;
1847
+ /**
1848
+ * Sets a darker color scheme to match a dark navbar.
1849
+ * @type boolean
1850
+ */
1851
+ dark: string | boolean;
1852
+ private dropdownStateSubscription;
1853
+ get hostClasses(): any;
1854
+ get hostStyles(): {
1855
+ visibility: string | null;
1856
+ display: string | null;
1857
+ };
1858
+ ngOnInit(): void;
1859
+ ngOnDestroy(): void;
1860
+ private dropdownStateSubscribe;
1861
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownMenuDirective, never>;
1862
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownMenuDirective, "[gtrDropdownMenu]", ["gtrDropdownMenu"], { "alignment": { "alias": "alignment"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
1863
+ static ngAcceptInputType_dark: unknown;
1864
+ }
1865
+
1866
+ declare abstract class GtrDropdownToken {
1867
+ }
1868
+ declare class GtrDropdownToggleDirective implements AfterViewInit {
1869
+ elementRef: ElementRef;
1870
+ private dropdownService;
1871
+ dropdown?: GtrDropdownToken | undefined;
1872
+ static ngAcceptInputType_split: BooleanInput;
1873
+ static ngAcceptInputType_popper: BooleanInput;
1874
+ constructor(elementRef: ElementRef, dropdownService: GtrDropdownService, dropdown?: GtrDropdownToken | undefined);
1875
+ /**
1876
+ * Toggle the disabled state for the toggler.
1877
+ * @type GtrDropdownComponent | undefined
1878
+ * @default undefined
1879
+ */
1880
+ dropdownComponent?: GtrDropdownComponent;
1881
+ /**
1882
+ * Disables the toggler.
1883
+ * @type boolean
1884
+ * @default false
1885
+ */
1886
+ disabled?: boolean;
1887
+ /**
1888
+ * Enables pseudo element caret on toggler.
1889
+ * @type boolean
1890
+ */
1891
+ caret: boolean;
1892
+ /**
1893
+ * Create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` class for proper spacing around the dropdown caret.
1894
+ * @type boolean
1895
+ */
1896
+ set split(value: boolean);
1897
+ get split(): boolean;
1898
+ private _split;
1899
+ get hostClasses(): any;
1900
+ onClick($event: MouseEvent): void;
1901
+ ngAfterViewInit(): void;
1902
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownToggleDirective, [null, null, { optional: true; }]>;
1903
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownToggleDirective, "[gtrDropdownToggle]", ["gtrDropdownToggle"], { "dropdownComponent": { "alias": "dropdownComponent"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "caret": { "alias": "caret"; "required": false; }; "split": { "alias": "split"; "required": false; }; }, {}, never, never, true, never>;
1904
+ }
1905
+ declare class GtrDropdownComponent implements AfterContentInit, OnChanges, OnDestroy, OnInit {
1906
+ private document;
1907
+ private elementRef;
1908
+ private renderer;
1909
+ private ngZone;
1910
+ private changeDetectorRef;
1911
+ dropdownService: GtrDropdownService;
1912
+ static ngAcceptInputType_dark: BooleanInput;
1913
+ static ngAcceptInputType_visible: BooleanInput;
1914
+ constructor(document: Document, elementRef: ElementRef, renderer: Renderer2, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, dropdownService: GtrDropdownService);
1915
+ /**
1916
+ * Set alignment of dropdown menu.
1917
+ * @type {'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'}}
1918
+ */
1919
+ alignment?: string;
1920
+ autoClose: boolean | 'inside' | 'outside';
1921
+ /**
1922
+ * Sets a darker color scheme to match a dark navbar.
1923
+ * @type boolean
1924
+ * @default false
1925
+ */
1926
+ set dark(value: boolean);
1927
+ get dark(): boolean;
1928
+ private _dark;
1929
+ /**
1930
+ * Sets a specified direction and location of the dropdown menu.
1931
+ * @type 'dropup' | 'dropend' | 'dropstart'
1932
+ */
1933
+ direction?: 'center' | 'dropup' | 'dropup-center' | 'dropend' | 'dropstart';
1934
+ /**
1935
+ * Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
1936
+ * @type Placement
1937
+ */
1938
+ placement: Placement;
1939
+ /**
1940
+ * If you want to disable dynamic positioning set this property to `false`.
1941
+ * @type boolean
1942
+ * @default true
1943
+ */
1944
+ set popper(value: boolean);
1945
+ get popper(): boolean;
1946
+ private _popper;
1947
+ /**
1948
+ * Optional popper Options object, placement prop takes precedence over
1949
+ * @type Partial<Options>
1950
+ */
1951
+ set popperOptions(value: Partial<Options>);
1952
+ get popperOptions(): Partial<Options>;
1953
+ private _popperOptions;
1954
+ /**
1955
+ * Set the dropdown variant to a btn-group, dropdown, input-group, and nav-item.
1956
+ */
1957
+ variant?: 'btn-group' | 'dropdown' | 'input-group' | 'nav-item';
1958
+ /**
1959
+ * Toggle the visibility of dropdown menu component.
1960
+ * @type boolean
1961
+ * @default false
1962
+ */
1963
+ set visible(value: boolean);
1964
+ get visible(): boolean;
1965
+ private _visible;
1966
+ visibleChange: EventEmitter<boolean>;
1967
+ dropdownContext: {
1968
+ $implicit: boolean;
1969
+ };
1970
+ _toggler: GtrDropdownToggleDirective;
1971
+ _menu: GtrDropdownMenuDirective;
1972
+ _menuElementRef: ElementRef;
1973
+ activeTrap: boolean;
1974
+ private dropdownStateSubscription;
1975
+ private popperInstance;
1976
+ private listeners;
1977
+ get hostClasses(): any;
1978
+ get hostStyle(): any;
1979
+ private clickedTarget;
1980
+ onHostClick($event: MouseEvent): void;
1981
+ dropdownStateSubscribe(subscribe?: boolean): void;
1982
+ toggleDropdown(): void;
1983
+ onClick(event: any): void;
1984
+ ngAfterContentInit(): void;
1985
+ ngOnInit(): void;
1986
+ ngOnChanges(changes: SimpleChanges): void;
1987
+ ngOnDestroy(): void;
1988
+ setVisibleState(value: boolean): void;
1989
+ createPopperInstance(): void;
1990
+ destroyPopperInstance(): void;
1991
+ private setListeners;
1992
+ private clearListeners;
1993
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownComponent, never>;
1994
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrDropdownComponent, "gtr-dropdown", ["gtrDropdown"], { "alignment": { "alias": "alignment"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "popper": { "alias": "popper"; "required": false; }; "popperOptions": { "alias": "popperOptions"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, ["_toggler", "_menu", "_menuElementRef"], ["*"], true, never>;
1995
+ }
1996
+
1997
+ declare class GtrDropdownItemDirective {
1998
+ private dropdownService;
1999
+ dropdown?: GtrDropdownComponent | undefined;
2000
+ /**
2001
+ * Set active state to a dropdown-item.
2002
+ * @type boolean
2003
+ * @default undefined
2004
+ */
2005
+ active?: boolean;
2006
+ /**
2007
+ * Configure dropdown-item close dropdown behavior.
2008
+ * @type boolean
2009
+ * @default true
2010
+ */
2011
+ autoClose: boolean;
2012
+ /**
2013
+ * Disables a dropdown-item.
2014
+ * @type boolean
2015
+ * @default undefined
2016
+ */
2017
+ disabled?: boolean;
2018
+ constructor(dropdownService: GtrDropdownService, dropdown?: GtrDropdownComponent | undefined);
2019
+ get ariaCurrent(): string | null;
2020
+ get hostClasses(): any;
2021
+ set tabIndex(value: string | number | null);
2022
+ get tabIndex(): string | number | null;
2023
+ private _tabIndex;
2024
+ get isDisabled(): boolean | null;
2025
+ onClick($event: MouseEvent): void;
2026
+ onKeyUp($event: KeyboardEvent): void;
2027
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownItemDirective, [null, { optional: true; }]>;
2028
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownItemDirective, "[gtrDropdownItem]", ["gtrDropdownItem"], { "active": { "alias": "active"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
2029
+ }
2030
+
2031
+ declare class GtrDropdownItemPlainDirective {
2032
+ get hostClasses(): any;
2033
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownItemPlainDirective, never>;
2034
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownItemPlainDirective, "[gtrDropdownItemPlain]", never, {}, {}, never, never, true, never>;
2035
+ }
2036
+
2037
+ declare class GtrDropdownCloseDirective implements AfterViewInit {
2038
+ private dropdownService;
2039
+ dropdown?: GtrDropdownComponent | undefined;
2040
+ constructor(dropdownService: GtrDropdownService, dropdown?: GtrDropdownComponent | undefined);
2041
+ /**
2042
+ * Disables a dropdown-close directive.
2043
+ * @type boolean
2044
+ * @default undefined
2045
+ */
2046
+ disabled?: boolean;
2047
+ dropdownComponent?: GtrDropdownComponent;
2048
+ ngAfterViewInit(): void;
2049
+ get hostClasses(): any;
2050
+ set tabIndex(value: string | number | null);
2051
+ get tabIndex(): string | number | null;
2052
+ private _tabIndex;
2053
+ get isDisabled(): boolean | null;
2054
+ onClick($event: MouseEvent): void;
2055
+ onKeyUp($event: KeyboardEvent): void;
2056
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrDropdownCloseDirective, [null, { optional: true; }]>;
2057
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDropdownCloseDirective, "[gtrDropdownClose]", ["gtrDropdownClose"], { "disabled": { "alias": "disabled"; "required": false; }; "dropdownComponent": { "alias": "dropdownComponent"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
2058
+ }
2059
+
2060
+ interface GtrFileInputList extends FileList {
2061
+ files: File[];
2062
+ }
2063
+
2064
+ declare class GtrFileInputComponent {
2065
+ fileInputElement: ElementRef<HTMLInputElement>;
2066
+ name: string;
2067
+ dataTransactionName: string;
2068
+ /**
2069
+ * accept for file input
2070
+ * i.e. CSV, png, image/*
2071
+ */
2072
+ accept: string;
2073
+ /**
2074
+ * heading text for file input
2075
+ */
2076
+ heading: string;
2077
+ /**
2078
+ * description/info text for file input
2079
+ */
2080
+ description: string;
2081
+ /**
2082
+ * aria label attribute
2083
+ */
2084
+ ariaLabel: string | null;
2085
+ /**
2086
+ * identifier attribute
2087
+ */
2088
+ identifier: string;
2089
+ /**
2090
+ * File upload event
2091
+ * @returns list of files selected
2092
+ */
2093
+ readonly gtrFileSelected: EventEmitter<GtrFileInputList | null>;
2094
+ /**
2095
+ * File upload event
2096
+ * @returns list of files selected
2097
+ */
2098
+ readonly gtrFileError: EventEmitter<string[]>;
2099
+ /**
2100
+ * Show name of current selected file at 0 index
2101
+ */
2102
+ currentSelectedFileName: string;
2103
+ /**
2104
+ * TO get file input
2105
+ * @returns
2106
+ */
2107
+ getFileInputElement(): HTMLInputElement;
2108
+ /**
2109
+ * Local function to validate file type
2110
+ * @param file
2111
+ * @returns boolean
2112
+ */
2113
+ validateFileType(file: File): boolean;
2114
+ /**
2115
+ * validate file type
2116
+ */
2117
+ filterValidFiles(files: FileList): GtrFileInputList | null;
2118
+ /**
2119
+ * local method to handle file change events
2120
+ * @param event
2121
+ */
2122
+ handleFileChange(event: Event): void;
2123
+ /**
2124
+ * local method to handle file drop event
2125
+ * @param event
2126
+ */
2127
+ handleDrop(event: DragEvent): void;
2128
+ /**
2129
+ * local function to set text limit
2130
+ */
2131
+ fileTextLimit(fileName: string): string;
2132
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFileInputComponent, never>;
2133
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrFileInputComponent, "gtr-file-input", never, { "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "description": { "alias": "description"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; }, { "gtrFileSelected": "gtrFileSelected"; "gtrFileError": "gtrFileError"; }, never, never, true, never>;
2134
+ }
2135
+
2136
+ declare class GtrFormDirective {
2137
+ /**
2138
+ * Mark a form as validated. If you set it `true`, all validation styles will be applied to the form. [docs]
2139
+ * @type boolean
2140
+ * @default false
2141
+ */
2142
+ validated: string | boolean;
2143
+ get hostClasses(): any;
2144
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormDirective, never>;
2145
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormDirective, "form[gtrForm]", never, { "validated": { "alias": "validated"; "required": false; }; }, {}, never, never, true, never>;
2146
+ static ngAcceptInputType_validated: unknown;
2147
+ }
2148
+
2149
+ declare class GtrFormFeedbackComponent {
2150
+ /**
2151
+ * If your form layout allows it, you can display validation feedback in a styled tooltip.
2152
+ * @type boolean
2153
+ */
2154
+ tooltip: string | boolean;
2155
+ /**
2156
+ * Set component validation state to valid.
2157
+ * @type boolean
2158
+ */
2159
+ valid?: boolean;
2160
+ get hostClasses(): any;
2161
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormFeedbackComponent, never>;
2162
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrFormFeedbackComponent, "gtr-form-feedback", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, ["*"], true, never>;
2163
+ static ngAcceptInputType_tooltip: unknown;
2164
+ }
2165
+
2166
+ declare class GtrInputGroupComponent {
2167
+ /**
2168
+ * Size the component small or large.
2169
+ */
2170
+ sizing: string | 'sm' | 'lg' | '';
2171
+ invalid: boolean | undefined;
2172
+ get hostClasses(): any;
2173
+ constructor();
2174
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputGroupComponent, never>;
2175
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputGroupComponent, "gtr-input-group", never, { "sizing": { "alias": "sizing"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, {}, never, ["*"], true, never>;
2176
+ }
2177
+
2178
+ declare class GtrFormSelectDirective {
2179
+ /**
2180
+ * Size the component small or large.
2181
+ */
2182
+ sizing?: '' | 'sm' | 'lg' | string;
2183
+ /**
2184
+ * Set component validation state to valid.
2185
+ * @type {boolean | undefined}
2186
+ */
2187
+ valid?: boolean;
2188
+ get hostClasses(): any;
2189
+ constructor();
2190
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormSelectDirective, never>;
2191
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormSelectDirective, "select[gtrSelect]", never, { "sizing": { "alias": "sizing"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, never, true, never>;
2192
+ }
2193
+
2194
+ declare class GtrFormLabelDirective {
2195
+ /**
2196
+ * For horizontal forms set labels to 'col' and make them vertically centered with their associated form controls.
2197
+ * @type 'col'
2198
+ */
2199
+ col: 'col' | '';
2200
+ /**
2201
+ * Size the label small or large.
2202
+ */
2203
+ sizing: '' | 'sm' | 'lg' | string;
2204
+ get hostClasses(): any;
2205
+ constructor();
2206
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormLabelDirective, never>;
2207
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormLabelDirective, "[gtrLabel]", never, { "col": { "alias": "gtrLabel"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; }, {}, never, never, true, never>;
2208
+ }
2209
+
2210
+ declare class GtrFormCheckLabelDirective {
2211
+ get hostClasses(): any;
2212
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormCheckLabelDirective, never>;
2213
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormCheckLabelDirective, "label[gtrFormCheckLabel]", never, {}, {}, never, never, true, never>;
2214
+ }
2215
+
2216
+ declare class GtrFormCheckComponent implements AfterContentInit {
2217
+ #private;
2218
+ /**
2219
+ * Group checkboxes or radios on the same horizontal row.
2220
+ * @type boolean
2221
+ * @default false
2222
+ */
2223
+ inline: string | boolean;
2224
+ /**
2225
+ * Put checkboxes or radios on the opposite side.
2226
+ * @type boolean
2227
+ * @default false
2228
+ * @since 4.4.7
2229
+ */
2230
+ reverse: string | boolean;
2231
+ /**
2232
+ * Size the component large or extra large. Works only with `[switch]="true"` [docs]
2233
+ * @type {'lg' | 'xl' | ''}
2234
+ */
2235
+ sizing?: 'lg' | 'xl' | '';
2236
+ /**
2237
+ * Render a toggle switch on for checkbox.
2238
+ * @type boolean
2239
+ * @default false
2240
+ */
2241
+ switch: string | boolean;
2242
+ get hostClasses(): any;
2243
+ formCheckLabel: GtrFormCheckLabelDirective;
2244
+ get formCheckClass(): boolean;
2245
+ ngAfterContentInit(): void;
2246
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormCheckComponent, never>;
2247
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrFormCheckComponent, "gtr-form-check", ["gtrFormCheck"], { "inline": { "alias": "inline"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; "switch": { "alias": "switch"; "required": false; }; }, {}, ["formCheckLabel"], ["*"], true, never>;
2248
+ static ngAcceptInputType_inline: unknown;
2249
+ static ngAcceptInputType_reverse: unknown;
2250
+ static ngAcceptInputType_switch: unknown;
2251
+ }
2252
+
2253
+ declare class GtrFormCheckInputDirective {
2254
+ private renderer;
2255
+ private hostElement;
2256
+ static ngAcceptInputType_indeterminate: BooleanInput;
2257
+ /**
2258
+ * Specifies the type of component.
2259
+ * @type {'checkbox' | 'radio'}
2260
+ * @default 'checkbox'
2261
+ */
2262
+ type: 'checkbox' | 'radio';
2263
+ /**
2264
+ * Set component indeterminate state.
2265
+ * @type boolean
2266
+ */
2267
+ set indeterminate(value: boolean);
2268
+ get indeterminate(): boolean;
2269
+ private _indeterminate;
2270
+ /**
2271
+ * Set component validation state to valid.
2272
+ * @type boolean
2273
+ */
2274
+ valid?: boolean;
2275
+ get hostClasses(): any;
2276
+ get checked(): boolean;
2277
+ constructor(renderer: Renderer2, hostElement: ElementRef);
2278
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormCheckInputDirective, never>;
2279
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormCheckInputDirective, "input[gtrFormCheckInput]", never, { "type": { "alias": "type"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, never, true, never>;
2280
+ }
2281
+
2282
+ declare class GtrFormControlDirective implements OnInit {
2283
+ private hostElement;
2284
+ constructor(hostElement: ElementRef);
2285
+ /**
2286
+ * Size the component small or large.
2287
+ * @type {'sm' | 'lg'}
2288
+ */
2289
+ sizing?: '' | 'sm' | 'lg' | string;
2290
+ /**
2291
+ * Set component validation state to valid.
2292
+ * @type boolean
2293
+ */
2294
+ valid?: boolean;
2295
+ /**
2296
+ * Specifies the type of input element.
2297
+ */
2298
+ type: Omit<InputType, 'checkbox' | 'radio'>;
2299
+ /**
2300
+ * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use alongside `readonly` [docs]
2301
+ */
2302
+ plaintext: string | boolean;
2303
+ get hostClasses(): any;
2304
+ get hostTag(): string;
2305
+ ngOnInit(): void;
2306
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormControlDirective, never>;
2307
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormControlDirective, "input[gtrFormControl], textarea[gtrFormControl]", never, { "sizing": { "alias": "sizing"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "type": { "alias": "type"; "required": false; }; "plaintext": { "alias": "plaintext"; "required": false; }; }, {}, never, never, true, never>;
2308
+ static ngAcceptInputType_plaintext: unknown;
2309
+ }
2310
+
2311
+ declare class GtrFormTextDirective {
2312
+ get hostClasses(): any;
2313
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormTextDirective, never>;
2314
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormTextDirective, "[gtrFormText]", never, {}, {}, never, never, true, never>;
2315
+ }
2316
+
2317
+ declare class GtrFormFloatingDirective {
2318
+ /**
2319
+ * Enable floating labels
2320
+ * @type boolean
2321
+ */
2322
+ floating: string | boolean;
2323
+ get hostClasses(): any;
2324
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormFloatingDirective, never>;
2325
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrFormFloatingDirective, "[gtrFormFloating]", never, { "floating": { "alias": "gtrFormFloating"; "required": false; }; }, {}, never, never, true, never>;
2326
+ static ngAcceptInputType_floating: unknown;
2327
+ }
2328
+
2329
+ declare class GtrInputGroupTextDirective {
2330
+ get hostClasses(): any;
2331
+ constructor();
2332
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputGroupTextDirective, never>;
2333
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GtrInputGroupTextDirective, "[gtrInputGroupText]", never, {}, {}, never, never, true, never>;
2334
+ }
2335
+
2336
+ declare class GtrInputColorComponent implements ControlValueAccessor, OnInit {
2337
+ private readonly destroyRef;
2338
+ touched: boolean;
2339
+ inputControl: FormControl<string>;
2340
+ colorControl: FormControl<string>;
2341
+ hasBorder: boolean;
2342
+ inputInvalid: boolean;
2343
+ inputLabel: string;
2344
+ invalid: boolean;
2345
+ placeholder: string;
2346
+ colorPickerControls: 'default' | 'only-alpha' | 'no-alpha';
2347
+ hideColorPicker: boolean;
2348
+ hidePickerTextInput: boolean;
2349
+ hideErrorMessage: boolean;
2350
+ name: string;
2351
+ dataTransactionName: string;
2352
+ set disabled(value: boolean);
2353
+ get disabled(): boolean;
2354
+ private _disabled;
2355
+ set value(value: string);
2356
+ set inputValue(value: string);
2357
+ set colorValue(value: string);
2358
+ valueChange: EventEmitter<string>;
2359
+ constructor();
2360
+ ngOnInit(): void;
2361
+ private onChange;
2362
+ private onTouched;
2363
+ handleValue(color: string | null): void;
2364
+ registerOnChange(fn: any): void;
2365
+ registerOnTouched(fn: any): void;
2366
+ setDisabledState(isDisabled: boolean): void;
2367
+ writeValue(obj: any): void;
2368
+ handleTouch(): void;
2369
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputColorComponent, never>;
2370
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputColorComponent, "gtr-input-color", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "colorPickerControls": { "alias": "colorPickerControls"; "required": false; }; "hideColorPicker": { "alias": "hideColorPicker"; "required": false; }; "hidePickerTextInput": { "alias": "hidePickerTextInput"; "required": false; }; "hideErrorMessage": { "alias": "hideErrorMessage"; "required": false; }; "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "inputValue": { "alias": "inputValue"; "required": false; }; "colorValue": { "alias": "colorValue"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
2371
+ }
2372
+
2373
+ type GtrNumericCounterChangeEvent = {
2374
+ component: 'gtr-numeric-counter';
2375
+ value: number;
2376
+ };
2377
+
2378
+ declare class GtrNumericCounterComponent implements ControlValueAccessor {
2379
+ value: number;
2380
+ step: number;
2381
+ min: number;
2382
+ max: number;
2383
+ name: string;
2384
+ identifier: string;
2385
+ disabled: boolean;
2386
+ readonly: boolean;
2387
+ dataTransactionName: string;
2388
+ readonly gtrChange: EventEmitter<GtrNumericCounterChangeEvent>;
2389
+ private onChange;
2390
+ private onTouch;
2391
+ writeValue(value: any): void;
2392
+ registerOnChange(fn: any): void;
2393
+ registerOnTouched(fn: any): void;
2394
+ setDisabledState?(isDisabled: boolean): void;
2395
+ handleKeyDown(event: KeyboardEvent): void;
2396
+ incrementCounter: () => void;
2397
+ decrementCounter: () => void;
2398
+ handleOnChange: (event?: Event) => void;
2399
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrNumericCounterComponent, never>;
2400
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrNumericCounterComponent, "gtr-numeric-counter", never, { "value": { "alias": "value"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "name": { "alias": "name"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "gtrChange": "gtrChange"; }, never, never, true, never>;
2401
+ }
2402
+
2403
+ declare const GtrComponentName = "gtr-numeric-counter";
2404
+
2405
+ interface GtrPageEvent {
2406
+ previousPageIndex: number;
2407
+ pageIndex: number;
2408
+ pageSize: number;
2409
+ totalCount: number;
2410
+ nextPageToken?: string | null;
2411
+ prevPageToken?: string | null;
2412
+ currentPageToken?: string | null;
2413
+ }
2414
+ type GtrPage = string | number;
2415
+ type GtrPaginationOptions = {
2416
+ type: GrtPaginationType;
2417
+ hideLast: boolean;
2418
+ };
2419
+ type GrtPaginationType = 'default' | 'flat' | 'token';
2420
+
2421
+ declare const GtrPageSizeOptions: number[];
2422
+ declare const GtrDefaultPageIndex: number;
2423
+
2424
+ declare class GtrValidatePagePipe implements PipeTransform {
2425
+ transform(value: GtrPage | undefined, returnValue?: string): number | string;
2426
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrValidatePagePipe, never>;
2427
+ static ɵpipe: i0.ɵɵPipeDeclaration<GtrValidatePagePipe, "gtrValidatePage", true>;
2428
+ }
2429
+
2430
+ declare class GtrPaginationComponent implements OnInit, OnChanges {
2431
+ /** [aria-label] have string type and its used to set the aria attribute for pagination component */
2432
+ options: GtrPaginationOptions;
2433
+ /** identifier] for dom reference */
2434
+ identifier: string;
2435
+ /** [disabled] is type of boolean which is used to disable the pagination navigation */
2436
+ disabled: boolean;
2437
+ /** [limit] is used for the count of total items */
2438
+ limit: number;
2439
+ /** [pageSize] is used to set the limit of total items per page */
2440
+ pageSize: number;
2441
+ /** [pageSizeOptions] have number array type it is used to set the page size options */
2442
+ pageSizeOptions: number[];
2443
+ /** [hidePageSize] have boolean type and its used to hide/show the pagesize options default value is true */
2444
+ hidePageSize: boolean;
2445
+ dataTransactionName: string;
2446
+ /**
2447
+ * [showFirstLastButtons] have boolean type and its used to hide/show the
2448
+ * first and last navigation buttons for pagination and its default value is true
2449
+ */
2450
+ showFirstLastButtons: boolean;
2451
+ /** [pageIndex] have number type and its used to set the current page default value is 1 */
2452
+ pageIndex: number;
2453
+ /** [aria-label] have string type and its used to set the aria attribute for pagination component */
2454
+ ariaLabel: string;
2455
+ /** Next result token used for token pagination */
2456
+ nextPageToken: string | null;
2457
+ /** Previous page token used for token pagination */
2458
+ prevPageToken: string | null;
2459
+ /** Current page token used for token pagination */
2460
+ currentPageToken: string | null;
2461
+ /**
2462
+ * (pageEvent) When the user interacts with the paginator, a pageEvent will be fired that can be used to update any associated data view.
2463
+ */
2464
+ readonly pageEvent: EventEmitter<GtrPageEvent>;
2465
+ /**
2466
+ * (getNumberOfPages) When the user interacts with the paginator, a pageEvent will be fired that can be used to get the total number of pages.
2467
+ */
2468
+ readonly getNumberOfPages: EventEmitter<number>;
2469
+ /** [totalPages] have number type and used to store the count of total pages */
2470
+ totalPages: number;
2471
+ /**
2472
+ * state to manage page array
2473
+ */
2474
+ pagesArray: GtrPage[];
2475
+ /**
2476
+ * state to manage responsive view for mobile and desktop
2477
+ */
2478
+ private _isMobile;
2479
+ defaultPage: number;
2480
+ hasBothDots: any;
2481
+ /**
2482
+ * Component Initialization
2483
+ */
2484
+ ngOnInit(): void;
2485
+ ngOnChanges(changes: SimpleChanges): void;
2486
+ /**
2487
+ * To set total pages
2488
+ */
2489
+ private _setTotalPages;
2490
+ /** changePage method which is used to send page event to the consuming component */
2491
+ changeTokenPagination(token: string | null): void;
2492
+ changePage(currentPage: GtrPage): void;
2493
+ /** Change page size option */
2494
+ onPageSizeChange(value: number): void;
2495
+ /** Listen to screen change events */
2496
+ onScreenResize(): void;
2497
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrPaginationComponent, never>;
2498
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrPaginationComponent, "gtr-pagination", never, { "options": { "alias": "options"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "nextPageToken": { "alias": "nextPageToken"; "required": false; }; "prevPageToken": { "alias": "prevPageToken"; "required": false; }; "currentPageToken": { "alias": "currentPageToken"; "required": false; }; }, { "pageEvent": "pageEvent"; "getNumberOfPages": "getNumberOfPages"; }, never, never, true, never>;
2499
+ static ngAcceptInputType_disabled: unknown;
2500
+ static ngAcceptInputType_showFirstLastButtons: unknown;
2501
+ }
2502
+
2503
+ declare class GtrFormatSelectedValuePipe implements PipeTransform {
2504
+ private readonly _limitText;
2505
+ transform(value: any, options: any[], valueKey: string, selectedLabel: string, labelKey: string, textLimit: number, multiple: boolean, selectedValueLazy: any[], selectedValues: any[] | undefined, selectedValuesRaw: any[] | undefined, lazyLoaded: boolean): any;
2506
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormatSelectedValuePipe, never>;
2507
+ static ɵpipe: i0.ɵɵPipeDeclaration<GtrFormatSelectedValuePipe, "gtrFormatSelectedValue", true>;
2508
+ }
2509
+
2510
+ declare class GtrTrimTextPipe implements PipeTransform {
2511
+ transform(value: string | number | null | undefined, limit: number): string | number | undefined;
2512
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTrimTextPipe, never>;
2513
+ static ɵpipe: i0.ɵɵPipeDeclaration<GtrTrimTextPipe, "gtrTrimText", true>;
2514
+ }
2515
+
2516
+ type GtrSelectScroll = {
2517
+ scrollHeight: number;
2518
+ scrollTop: number;
2519
+ clientHeight: number;
2520
+ reachedBottom: boolean;
2521
+ reachedTop: boolean;
2522
+ };
2523
+
2524
+ declare enum GtrSelectListLoaderVariation {
2525
+ TEXT = "TEXT",
2526
+ SPINNER = "SPINNER"
2527
+ }
2528
+
2529
+ declare class GtrSelectComponent implements OnChanges, ControlValueAccessor, AfterViewInit, OnDestroy {
2530
+ private _el;
2531
+ /** Input Label used for select box label */
2532
+ inputLabel: string;
2533
+ /**
2534
+ * To Show placeholder for select box
2535
+ * @default Select
2536
+ */
2537
+ placeholder: string;
2538
+ /** Float placeholder is used to keep the placeholder in container after selection */
2539
+ floatPlaceholder: boolean;
2540
+ /** Label key used to map label for internal objects of options */
2541
+ labelKey: string;
2542
+ /** Value key used to map value for internal objects of options */
2543
+ valueKey: string;
2544
+ /** Selected label used to map display text instead of actual value from options */
2545
+ selectedLabel: string;
2546
+ /** Highlight label used to map higlight label by adding "font-weight: bold" style property text when sub label are present for option list */
2547
+ highlightLabel: string;
2548
+ /** Sub label used to show the second label in option list */
2549
+ subLabel: string;
2550
+ /** View Only state of select box */
2551
+ isOnlyView: boolean;
2552
+ /** Used to bind value of select box */
2553
+ value: any | any[];
2554
+ /** Multiple check is used to allow the select box to accept multiple values */
2555
+ multiple: boolean;
2556
+ /** To allow lazy loading feature */
2557
+ lazyLoaded: boolean;
2558
+ /** Searchable check used to enable search box in select box list wrapper */
2559
+ searchable: boolean;
2560
+ /** Allow to disable select box */
2561
+ disabled: boolean;
2562
+ /** Allow to disable select box */
2563
+ hideOptions: boolean;
2564
+ /** Allow to clean search when closing the select */
2565
+ cleanSearchWhenClose: boolean;
2566
+ /** Allow to enable readonly state for select box */
2567
+ readonly: boolean;
2568
+ /** If is invalid then select box accept error message and style border to red color of select box input wrapper */
2569
+ is_invalid: boolean;
2570
+ /** To show loading while searching or fetching list */
2571
+ listLoading: boolean;
2572
+ /** To show skeleton view */
2573
+ loading: boolean;
2574
+ /** To show a change is loading */
2575
+ changeLoading: boolean;
2576
+ /** TO show loading spinner in search box / searching... text in the lists while searching */
2577
+ listLoaderVariation: GtrSelectListLoaderVariation;
2578
+ /**
2579
+ * Pass options list must be an array
2580
+ * @default empty[]
2581
+ */
2582
+ options: any[];
2583
+ /**
2584
+ * Autowrap value and options text if increase than given value
2585
+ * @default 28
2586
+ */
2587
+ textLimit: number;
2588
+ /**
2589
+ * Mark first option ready to select
2590
+ * @default false
2591
+ */
2592
+ autoSelect: boolean;
2593
+ /**
2594
+ * Change select box to autocomplete input
2595
+ */
2596
+ autocomplete: boolean;
2597
+ /**
2598
+ * Reset autocomplete input
2599
+ */
2600
+ set resetAutocomplete(value: boolean);
2601
+ /**
2602
+ * To enable add button in select box
2603
+ */
2604
+ enableAddButton: boolean;
2605
+ /**
2606
+ * To change button position in option list
2607
+ */
2608
+ addButtonPosition: 'top' | 'bottom';
2609
+ /**
2610
+ * Input to change add button label
2611
+ */
2612
+ addButtonLabel: string;
2613
+ /**
2614
+ * Input property to change Search Placeholder
2615
+ */
2616
+ searchPlaceholder: string;
2617
+ /**
2618
+ * Enable clear button for single select mode
2619
+ * @default false
2620
+ */
2621
+ clearable: boolean;
2622
+ /**
2623
+ * Event for add button clicked
2624
+ */
2625
+ addButtonClicked: EventEmitter<string>;
2626
+ /** Toggle state for select box container */
2627
+ isOpen: boolean;
2628
+ /** To set search value */
2629
+ searchValue: string;
2630
+ /** To set autocomplete input value */
2631
+ autocompleteInputValue: string;
2632
+ /** Store selected values */
2633
+ selectedValues: any[];
2634
+ selectedValuesRaw: any[];
2635
+ /** Store selected values for multiple */
2636
+ multipleSelectedValues: any[];
2637
+ multipleSelectedValuesRaw: any[];
2638
+ /** State for touched events */
2639
+ touched: boolean;
2640
+ /** Filtered options without affection actual list */
2641
+ filteredOptions: any[];
2642
+ /** Store selected value if lazyloading is enabled */
2643
+ selectedValueLazy: any[];
2644
+ /** Enums for Custom Select Loader Variations */
2645
+ readonly loaderVariation: typeof GtrSelectListLoaderVariation;
2646
+ name: string;
2647
+ dataTransactionName: string;
2648
+ /** Event for value change */
2649
+ readonly valueChanged: EventEmitter<any>;
2650
+ /** Event for search value change */
2651
+ readonly searchChanged: EventEmitter<any>;
2652
+ /** Event for autocomplete input */
2653
+ readonly autocompleteInputChanged: EventEmitter<any>;
2654
+ /** Event for scrolling in list */
2655
+ readonly gtrScroll: EventEmitter<GtrSelectScroll>;
2656
+ /** Event if selectbox changed touched state */
2657
+ readonly gtrTouched: EventEmitter<any>;
2658
+ /** Event to validate autocomplete when select box get closed */
2659
+ readonly gtrBlur: EventEmitter<any>;
2660
+ /**
2661
+ * Contructor
2662
+ * @param _el
2663
+ */
2664
+ constructor(_el: ElementRef);
2665
+ /** Control Value Accessor Methods */
2666
+ private onChange;
2667
+ private onTouched;
2668
+ writeValue(value: any): void;
2669
+ registerOnChange(fn: any): void;
2670
+ registerOnTouched(fn: any): void;
2671
+ setDisabledState(isDisabled: boolean): void;
2672
+ /**
2673
+ * On Changes Hook
2674
+ * @param changes
2675
+ */
2676
+ ngOnChanges(changes: SimpleChanges): void;
2677
+ /**
2678
+ * On ViewInit Hook
2679
+ */
2680
+ ngAfterViewInit(): void;
2681
+ /*********** PUBLIC METHODS ***************/
2682
+ /**
2683
+ * NOTE: toggleSelectBox() function is declared to hide/show the dropdown list based on user latest event
2684
+ */
2685
+ toggleSelectBox(open?: boolean): void;
2686
+ /** Remove options */
2687
+ removeOptions(event: Event, option: any): void;
2688
+ /** Clear single select value */
2689
+ clearValue(event: Event): void;
2690
+ /**
2691
+ * HandleOptionClick function is declared to emit value changed events
2692
+ * @param option
2693
+ * @param removeOption
2694
+ * @param emitValue
2695
+ * @param toggleSelectBox
2696
+ */
2697
+ handleOptionClick(option: any, removeOption?: boolean, emitValue?: boolean, toggleSelectBox?: boolean): void;
2698
+ /**
2699
+ * handleSearchInput function is declared to filter the array based on search events.
2700
+ * @param event
2701
+ */
2702
+ handleSearchInput(event: Event): void;
2703
+ /** Method to filter option list */
2704
+ filterOptionList(): void;
2705
+ /**
2706
+ * Lazy loading on scroll for change page
2707
+ */
2708
+ lazyLoadPaginationScroll(): void;
2709
+ /*********** PRIVATE METHODS ***************/
2710
+ /** Handle Touch Events */
2711
+ private handleTouchEvent;
2712
+ /** Set Initial value on every change */
2713
+ private setInitialValue;
2714
+ handleKeyboardNavigations(event: KeyboardEvent): void;
2715
+ private getNextVisibleOption;
2716
+ private getPrevVisibleOption;
2717
+ private getFocusedOption;
2718
+ /**
2719
+ * Get first visible option of list
2720
+ */
2721
+ private getFirstVisibleOption;
2722
+ /**
2723
+ * setFocusOnOption function is declared to set focus on HTML li element.
2724
+ * @param option
2725
+ */
2726
+ private setFocusOnOption;
2727
+ /**
2728
+ * function to listen whether click triger outside of element to hide dropdown
2729
+ * @param event
2730
+ */
2731
+ onClickOutside(event: any): void;
2732
+ /**
2733
+ * Function to listen whether screen size change to adjust position
2734
+ */
2735
+ onWindowResize(event: UIEvent): void;
2736
+ /**
2737
+ * Function to listen whether screen scroll to adjust position
2738
+ */
2739
+ onWindowScroll(event: Event): void;
2740
+ /** TO adjust position of option list wrapper */
2741
+ private adjustPosition;
2742
+ private getOptionValue;
2743
+ /**
2744
+ * Handle click of add button in dropdown list
2745
+ */
2746
+ handleAddButton(enterKeyPressed?: boolean): void;
2747
+ /**
2748
+ * Handle emitted input value for autocomplete input
2749
+ * @param event
2750
+ */
2751
+ handleAutocompleteInput(event: Event): void;
2752
+ handleCloseSelect(): void;
2753
+ cleanSearch(): void;
2754
+ ngOnDestroy(): void;
2755
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrSelectComponent, never>;
2756
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrSelectComponent, "gtr-select", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatPlaceholder": { "alias": "floatPlaceholder"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "highlightLabel": { "alias": "highlightLabel"; "required": false; }; "subLabel": { "alias": "subLabel"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "lazyLoaded": { "alias": "lazyLoaded"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideOptions": { "alias": "hideOptions"; "required": false; }; "cleanSearchWhenClose": { "alias": "cleanSearchWhenClose"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "is_invalid": { "alias": "is_invalid"; "required": false; }; "listLoading": { "alias": "listLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "changeLoading": { "alias": "changeLoading"; "required": false; }; "listLoaderVariation": { "alias": "listLoaderVariation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textLimit": { "alias": "textLimit"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "resetAutocomplete": { "alias": "resetAutocomplete"; "required": false; }; "enableAddButton": { "alias": "enableAddButton"; "required": false; }; "addButtonPosition": { "alias": "addButtonPosition"; "required": false; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "name": { "alias": "name"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "addButtonClicked": "addButtonClicked"; "valueChanged": "valueChanged"; "searchChanged": "searchChanged"; "autocompleteInputChanged": "autocompleteInputChanged"; "gtrScroll": "gtrScroll"; "gtrTouched": "gtrTouched"; "gtrBlur": "gtrBlur"; }, never, ["[slot='custom-error']"], true, never>;
2757
+ }
2758
+
2759
+ declare const enum EStatCardDate {
2760
+ today = "Today",
2761
+ last7Days = "Last 7 days",
2762
+ last14Days = "Last 14 days",
2763
+ last30Days = "Last 30 days",
2764
+ currentMonth = "Current Month",
2765
+ lastMonth = "Last Month",
2766
+ custom = "Custom"
2767
+ }
2768
+ declare class GtrStatCardComponent {
2769
+ private renderer;
2770
+ iconContainer?: ElementRef;
2771
+ labelContainer?: ElementRef;
2772
+ dateSelectWrapper?: ElementRef;
2773
+ showSkeletonLoading: boolean;
2774
+ /**
2775
+ * Stats
2776
+ */
2777
+ title: string;
2778
+ displayValue: string | number;
2779
+ value: string | number;
2780
+ iconName: string;
2781
+ isDangerCard: string | boolean;
2782
+ /**
2783
+ * Percentage
2784
+ **/
2785
+ enabledPercentage: string | boolean;
2786
+ percentage: number;
2787
+ isPercentageTrendUp: string | boolean;
2788
+ statsCardId: string;
2789
+ dataTransactionName: string;
2790
+ /**
2791
+ * Date Select
2792
+ */
2793
+ enabledDateSelect: string | boolean;
2794
+ dateOptions: EStatCardDate[] | string[];
2795
+ set dateSelected(dateSelected: EStatCardDate | string);
2796
+ get dateSelected(): EStatCardDate | string;
2797
+ private _dateSelected;
2798
+ dateSelectedChange: EventEmitter<string>;
2799
+ dateSelectOptions?: ElementRef;
2800
+ constructor(renderer: Renderer2);
2801
+ /**
2802
+ * Methods
2803
+ */
2804
+ openDateSelect(): void;
2805
+ closeDateSelect(): void;
2806
+ dateSelectedChangeEvent(date: EStatCardDate | string): void;
2807
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrStatCardComponent, never>;
2808
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrStatCardComponent, "gtr-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; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "enabledDateSelect": { "alias": "enabledDateSelect"; "required": false; }; "dateOptions": { "alias": "dateOptions"; "required": false; }; "dateSelected": { "alias": "dateSelected"; "required": false; }; }, { "dateSelectedChange": "dateSelectedChange"; }, never, never, true, never>;
2809
+ static ngAcceptInputType_isDangerCard: unknown;
2810
+ static ngAcceptInputType_enabledPercentage: unknown;
2811
+ static ngAcceptInputType_isPercentageTrendUp: unknown;
2812
+ static ngAcceptInputType_enabledDateSelect: unknown;
2813
+ }
2814
+
2815
+ interface TEXPAND {
2816
+ isExpanded: boolean;
2817
+ expandAfter: number;
2818
+ }
2819
+ interface TSORT {
2820
+ hasSorting: boolean;
2821
+ sort: -1 | 1 | 0;
2822
+ }
2823
+ interface TCOMPONENT {
2824
+ name: any;
2825
+ events: string[];
2826
+ properties: Array<object>;
2827
+ text: string;
2828
+ }
2829
+ interface TLINK {
2830
+ link?: string;
2831
+ text: string;
2832
+ disabled?: boolean;
2833
+ type?: 'internal' | 'external' | 'custom';
2834
+ target?: 'self' | '_blank';
2835
+ color?: string;
2836
+ }
2837
+ type RGB = `rgb(${number}, ${number}, ${number})`;
2838
+ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
2839
+ type HEX = `#${string}`;
2840
+ interface TACTIONS {
2841
+ type: 'button' | 'icon' | 'dropdown' | 'input' | 'textarea' | 'toggle';
2842
+ icon: string;
2843
+ color: string | RGB | RGBA | HEX;
2844
+ name: string;
2845
+ size?: string;
2846
+ hide?: boolean;
2847
+ link?: string;
2848
+ }
2849
+ interface STYLES {
2850
+ min?: string;
2851
+ max?: string;
2852
+ }
2853
+ interface TCOLUMN {
2854
+ align?: 'left' | 'right' | 'center' | 'top' | 'bottom';
2855
+ styles?: STYLES;
2856
+ value: any | TCOMPONENT | TLINK;
2857
+ hide?: boolean;
2858
+ type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status' | 'link';
2859
+ wrap?: 'TRUNCATE' | 'WRAP' | 'INNERHTMLWRAP' | 'SPLITHEADING';
2860
+ label?: string;
2861
+ priority?: 'HIGH' | 'LOW';
2862
+ color?: string | RGB | RGBA | HEX;
2863
+ sorting?: TSORT;
2864
+ actions?: TACTIONS[];
2865
+ }
2866
+ interface TROW {
2867
+ id: any;
2868
+ expand?: TEXPAND;
2869
+ isSelected?: boolean;
2870
+ columnsData: TCOLUMN[];
2871
+ }
2872
+ interface SkeletonConfigs {
2873
+ mainTable: SkeletonMainTableConfigs;
2874
+ resposvieTable: SkeletonResponsiveTableConfigs;
2875
+ }
2876
+ interface SkeletonMainTableConfigs {
2877
+ width?: string;
2878
+ height?: string;
2879
+ className?: string;
2880
+ repeat?: number;
2881
+ }
2882
+ interface SkeletonResponsiveTableConfigs {
2883
+ width?: string;
2884
+ height?: string;
2885
+ className?: string;
2886
+ repeat?: number;
2887
+ }
2888
+ interface THEAD {
2889
+ align?: 'left' | 'right' | 'center' | 'top' | 'bottom';
2890
+ headingType?: 'string' | 'innerHTML';
2891
+ hide?: boolean;
2892
+ styles?: STYLES;
2893
+ label: string;
2894
+ sorting: TSORT;
2895
+ type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status' | 'link';
2896
+ color?: string | RGB | RGBA | HEX;
2897
+ wrap?: 'TRUNCATE' | 'WRAP' | 'INNERHTMLWRAP' | 'SPLITHEADING';
2898
+ priority?: 'HIGH' | 'LOW';
2899
+ skeletonConfigs?: SkeletonConfigs;
2900
+ }
2901
+
2902
+ declare class GtrFetchAttributePipe implements PipeTransform {
2903
+ constructor();
2904
+ transform(column: TCOLUMN | any, attribute: string, index: number, data: THEAD[] | any[]): any;
2905
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrFetchAttributePipe, never>;
2906
+ static ɵpipe: i0.ɵɵPipeDeclaration<GtrFetchAttributePipe, "gtrFetchAttribute", true>;
2907
+ }
2908
+
2909
+ declare class DynamicHostDirective {
2910
+ viewContainerRef: ViewContainerRef;
2911
+ rowIndex: number;
2912
+ properties: any;
2913
+ events: any;
2914
+ text: any;
2915
+ colIndex: number;
2916
+ constructor(viewContainerRef: ViewContainerRef);
2917
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicHostDirective, never>;
2918
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicHostDirective, "[appDynamicHost]", ["appDynamicHost"], { "rowIndex": { "alias": "rowIndex"; "required": false; }; "properties": { "alias": "properties"; "required": false; }; "events": { "alias": "events"; "required": false; }; "text": { "alias": "text"; "required": false; }; "colIndex": { "alias": "colIndex"; "required": false; }; }, {}, never, never, true, never>;
2919
+ }
2920
+
2921
+ declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked {
2922
+ private cdRef;
2923
+ private attributesPipe;
2924
+ dynamicHosts: QueryList<DynamicHostDirective>;
2925
+ isLoading: boolean;
2926
+ appDynamicHost: any;
2927
+ constructor(cdRef: ChangeDetectorRef, attributesPipe: GtrFetchAttributePipe);
2928
+ /**
2929
+ * Set the hide/show state of checbox.
2930
+ * @default 'boolean'
2931
+ * @type CheckBox State
2932
+ */
2933
+ enableSelection: boolean;
2934
+ /**
2935
+ * Table columns
2936
+ */
2937
+ columns: THEAD[];
2938
+ /**
2939
+ * Table data
2940
+ */
2941
+ data: TROW[];
2942
+ /**
2943
+ * Table data
2944
+ */
2945
+ tableResponsiveId: string;
2946
+ dataTransactionName: string;
2947
+ /**
2948
+ * The selection changed eventemitter
2949
+ */
2950
+ onSelection: EventEmitter<any>;
2951
+ /**
2952
+ * Action eventemitter
2953
+ */
2954
+ onAction: EventEmitter<any>;
2955
+ /**
2956
+ * Component Event eventemitter
2957
+ */
2958
+ handleEvent: EventEmitter<any>;
2959
+ /**
2960
+ * Sorting eventemitter
2961
+ */
2962
+ onSort: EventEmitter<any>;
2963
+ /**
2964
+ * To check screen size
2965
+ */
2966
+ onResize(event: UIEvent): void;
2967
+ ngAfterViewChecked(): void;
2968
+ fetchSelection(): boolean;
2969
+ /**
2970
+ * The method is used to emit Select All state
2971
+ */
2972
+ selectAll(event: any): void;
2973
+ /**
2974
+ * The method is used to emit selected rows
2975
+ */
2976
+ selectionDone(event: any, item: any): void;
2977
+ /**
2978
+ * The method is used to emit action
2979
+ */
2980
+ actionDone(value: string, row: any, action: any): void;
2981
+ fetchEvent(e: any): void;
2982
+ onColumnClick(rowId: any, column: TCOLUMN): void;
2983
+ getActions(columns: TCOLUMN[] | undefined): TCOLUMN | undefined;
2984
+ /**
2985
+ * The method is used to check show/hidden state of row
2986
+ */
2987
+ checkRowHiddenState(row: any, column: any, expandAttributes: any, i: number): boolean | undefined;
2988
+ /**
2989
+ * The method is used to toggle show/hide state of row
2990
+ */
2991
+ expandRow(row: any): void;
2992
+ ngOnDestroy(): void;
2993
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableResponsiveComponent, never>;
2994
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableResponsiveComponent, "gtr-table-responsive", ["gtrTableResponsive"], { "isLoading": { "alias": "isLoading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
2995
+ }
2996
+
2997
+ declare class GtrTableMainComponent implements AfterViewChecked {
2998
+ private cdRef;
2999
+ dynamicHosts: QueryList<DynamicHostDirective>;
3000
+ constructor(cdRef: ChangeDetectorRef);
3001
+ templateRef: QueryList<ViewContainerRef>;
3002
+ childRowRef: QueryList<ViewContainerRef>;
3003
+ dataTransactionName: string;
3004
+ /**
3005
+ * Set the hide/show state of checbox.
3006
+ * @default 'boolean'
3007
+ * @type CheckBox State
3008
+ */
3009
+ enableSelection: boolean;
3010
+ isLoading: boolean;
3011
+ /**
3012
+ * Table columns
3013
+ */
3014
+ columns: THEAD[];
3015
+ /**
3016
+ * Table columns
3017
+ */
3018
+ tableMainId: string;
3019
+ /**
3020
+ * Table data
3021
+ */
3022
+ data: TROW[];
3023
+ /**
3024
+ * The selection changed eventemitter
3025
+ */
3026
+ onSelection: EventEmitter<{
3027
+ lastSelected?: any;
3028
+ selectedRows: any;
3029
+ all: boolean;
3030
+ }>;
3031
+ /**
3032
+ * Action eventemitter
3033
+ */
3034
+ onAction: EventEmitter<any>;
3035
+ /**
3036
+ * Component Event eventemitter
3037
+ */
3038
+ handleEvent: EventEmitter<any>;
3039
+ /**
3040
+ * Sorting eventemitter
3041
+ */
3042
+ onSort: EventEmitter<any>;
3043
+ ngAfterViewChecked(): void;
3044
+ onSorting(sortType: number, column: any): void;
3045
+ actionDone(event: any, rowId: any, action: any): void;
3046
+ fetchEvent(e: any): void;
3047
+ onColumnClick(rowId: string, column: TCOLUMN, event: any, colIndex: number, eventType?: string): void;
3048
+ selectAll(event: any): void;
3049
+ fectchSelection(): boolean;
3050
+ selectionDone(event: any, item: any): void;
3051
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableMainComponent, never>;
3052
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableMainComponent, "gtr-table-main", ["gtrTableMain"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
3053
+ }
3054
+
3055
+ declare class GtrTableComponent implements OnDestroy {
3056
+ constructor();
3057
+ switchState: boolean;
3058
+ dataTransactionName: string;
3059
+ /**
3060
+ * Set the table type.
3061
+ * @default 'boolean'
3062
+ * @type TableType
3063
+ */
3064
+ isResponsive: boolean;
3065
+ /**
3066
+ * Set the skeleton loading state.
3067
+ * @default 'boolean'
3068
+ * @type LoadingState
3069
+ */
3070
+ loading: boolean;
3071
+ /**
3072
+ * Set the hide/show state of checbox.
3073
+ * @default 'boolean'
3074
+ * @type CheckBox State
3075
+ */
3076
+ enableSelection: boolean;
3077
+ /**
3078
+ * Set the id of main web table.
3079
+ * @default 'string'
3080
+ * @type CheckBox State
3081
+ */
3082
+ tableMainId: string;
3083
+ /**
3084
+ * Set id of responsive table.
3085
+ * @default 'string'
3086
+ * @type CheckBox State
3087
+ */
3088
+ tableResponsiveId: string;
3089
+ /**
3090
+ * Table columns
3091
+ */
3092
+ columns: THEAD[];
3093
+ /**
3094
+ * Table data
3095
+ */
3096
+ data: TROW[];
3097
+ /**
3098
+ * The selection changed eventemitter
3099
+ * @default '{ value: any; all: boolean }'
3100
+ * @type Event Emitter
3101
+ */
3102
+ onSelection: EventEmitter<{
3103
+ value: any;
3104
+ all: boolean;
3105
+ }>;
3106
+ /**
3107
+ * Action eventemitter
3108
+ */
3109
+ onAction: EventEmitter<any>;
3110
+ /**
3111
+ * Component Event eventemitter
3112
+ */
3113
+ handleEvent: EventEmitter<any>;
3114
+ /**
3115
+ * Sorting eventemitter
3116
+ */
3117
+ onSort: EventEmitter<any>;
3118
+ /**
3119
+ * To check screen size
3120
+ */
3121
+ onResize(event: UIEvent): void;
3122
+ ngOnInit(): void;
3123
+ selectionChange(ev: any): void;
3124
+ actionDone(ev: {
3125
+ value: boolean;
3126
+ id: number;
3127
+ }): void;
3128
+ fetchEvent(ev: any): void;
3129
+ sorting(ev: {
3130
+ value: boolean;
3131
+ id: number;
3132
+ }): void;
3133
+ ngOnDestroy(): void;
3134
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableComponent, never>;
3135
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableComponent, "gtr-table", ["gtrTable"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "isResponsive": { "alias": "isResponsive"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
3136
+ }
3137
+
3138
+ declare class GtrTabComponent {
3139
+ label: string;
3140
+ active: boolean;
3141
+ dataTransactionName: string;
3142
+ disabled: boolean;
3143
+ tabChange: EventEmitter<any>;
3144
+ private _activeTab;
3145
+ constructor();
3146
+ set activeTab(activeTab: {
3147
+ activeTab: GtrTabComponent | GtrTabComponent[];
3148
+ index: number;
3149
+ } | null);
3150
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabComponent, never>;
3151
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTabComponent, "gtr-tab", never, { "label": { "alias": "label"; "required": false; }; "active": { "alias": "active"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "tabChange": "tabChange"; }, never, ["*"], true, never>;
3152
+ }
3153
+
3154
+ declare class GtrTabsWrapperComponent {
3155
+ tabs: QueryList<GtrTabComponent>;
3156
+ position: 'start' | 'end' | 'center' | 'fill';
3157
+ dataTransactionName: string;
3158
+ id: string;
3159
+ testId: string;
3160
+ tabScrollContainerRef: ElementRef;
3161
+ tabScrollListRef: ElementRef;
3162
+ tabChanges: EventEmitter<any>;
3163
+ get tabsContainerClass(): string;
3164
+ get tabsWrapperClass(): string;
3165
+ get tabListLength(): number;
3166
+ ngOnInit(): void;
3167
+ ngAfterContentInit(): void;
3168
+ ngAfterViewInit(): void;
3169
+ selectTab(selectedTab: GtrTabComponent): void;
3170
+ onTabListScroll(): void;
3171
+ isScrollable(element: HTMLElement): boolean;
3172
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabsWrapperComponent, never>;
3173
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTabsWrapperComponent, "gtr-tabs-wrapper", never, { "position": { "alias": "position"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "tabChanges": "tabChanges"; }, ["tabs"], ["*"], true, never>;
3174
+ }
3175
+
3176
+ interface DateTimeFormatOptions {
3177
+ localeMatcher?: 'best fit' | 'lookup' | undefined;
3178
+ weekday?: 'long' | 'short' | 'narrow' | undefined;
3179
+ era?: 'long' | 'short' | 'narrow' | undefined;
3180
+ year?: 'numeric' | '2-digit' | undefined;
3181
+ month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow' | undefined;
3182
+ day?: 'numeric' | '2-digit' | undefined;
3183
+ hour?: 'numeric' | '2-digit' | undefined;
3184
+ minute?: 'numeric' | '2-digit' | undefined;
3185
+ second?: 'numeric' | '2-digit' | undefined;
3186
+ timeZoneName?: 'long' | 'short' | undefined;
3187
+ formatMatcher?: 'best fit' | 'basic' | undefined;
3188
+ hour12?: boolean | undefined;
3189
+ timeZone?: string | undefined;
3190
+ }
3191
+ type DayPeriod = 'am' | 'pm';
3192
+ interface ITimeValue {
3193
+ value: number;
3194
+ label: string;
3195
+ dayPeriod?: DayPeriod;
3196
+ disabled?: boolean;
3197
+ }
3198
+ interface IDayPeriods {
3199
+ am: string;
3200
+ pm: string;
3201
+ }
3202
+ declare const getSupportedLocale: (locale?: string) => string;
3203
+ declare const isHour12: (locale?: string) => boolean;
3204
+ declare const convert12hTo24h: (abbr: "am" | "pm", hour: number) => number;
3205
+ declare const convert24hTo12h: (hour: number) => number;
3206
+ declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
3207
+ declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
3208
+ declare const isAm: (date: Date) => boolean;
3209
+ declare const isPm: (date: Date) => boolean;
3210
+ declare const isValidTimeZone: (timeZone: unknown) => boolean;
3211
+ declare const getListOfHours: (locale: string, options?: DateTimeFormatOptions) => {
3212
+ value: number;
3213
+ dayPeriod: DayPeriod;
3214
+ label: string;
3215
+ }[];
3216
+ declare const getListOfMinutes: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
3217
+ value: number;
3218
+ label: string;
3219
+ }[];
3220
+ declare const getListOfSeconds: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
3221
+ value: number;
3222
+ label: string;
3223
+ }[];
3224
+ declare const getSelectedHour: (date: Date | null, locale: string) => number | "";
3225
+ declare const getSelectedMinutes: (date: Date | null) => number | "";
3226
+ declare const getSelectedSeconds: (date: Date | null) => number | "";
3227
+ declare const isAmPm: (locale?: string) => boolean;
3228
+ declare const isValidTime: (time: string | Date | number | any) => boolean;
3229
+ declare const getDayPeriods: (locale?: string, options?: DateTimeFormatOptions) => {
3230
+ value: string;
3231
+ label: string;
3232
+ }[];
3233
+
3234
+ declare class GtrTimePickerComponent implements OnChanges, OnInit, ControlValueAccessor, AfterViewInit {
3235
+ constructor();
3236
+ static ngAcceptInputType_cleaner: BooleanInput;
3237
+ static ngAcceptInputType_disabled: BooleanInput;
3238
+ static ngAcceptInputType_indicator: BooleanInput;
3239
+ static ngAcceptInputType_inputReadOnly: BooleanInput;
3240
+ static ngAcceptInputType_seconds: BooleanInput;
3241
+ static ngAcceptInputType_visible: BooleanInput;
3242
+ /**
3243
+ * Toggle visibility or set the content of the cleaner button.
3244
+ * @type boolean
3245
+ * @default true
3246
+ */
3247
+ set cleaner(value: boolean);
3248
+ get cleaner(): boolean;
3249
+ private _cleaner;
3250
+ /**
3251
+ * Sets DateTime format options including timeZone
3252
+ * @type DateTimeFormatOptions
3253
+ * @default {}
3254
+ * @note The date object doesn't store timeZone, it keeps the local timezone of the browser, regardless if you parsed UTC dates.
3255
+ */
3256
+ dateTimeFormatOptions: DateTimeFormatOptions;
3257
+ /**
3258
+ * Toggle the disabled state for the component.
3259
+ * @type boolean
3260
+ * @default false
3261
+ */
3262
+ set disabled(value: boolean);
3263
+ get disabled(): boolean;
3264
+ private _disabled;
3265
+ /**
3266
+ * Filter available hours to pick.
3267
+ * @type (value: number) => boolean;
3268
+ * @default undefined
3269
+ */
3270
+ filterHours?: (value: number) => boolean;
3271
+ /**
3272
+ * Filter available minutes to pick.
3273
+ * @type (value: number) => boolean;
3274
+ * @default undefined
3275
+ */
3276
+ filterMinutes?: (value: number) => boolean;
3277
+ /**
3278
+ * Filter available seconds to pick.
3279
+ * @type (value: number) => boolean;
3280
+ * @default undefined
3281
+ */
3282
+ filterSeconds?: (value: number) => boolean;
3283
+ /**
3284
+ * Toggle visibility or set the content of the input indicator.
3285
+ * @type boolean
3286
+ * @default true
3287
+ */
3288
+ set indicator(value: boolean);
3289
+ get indicator(): boolean;
3290
+ private _indicator;
3291
+ /**
3292
+ * Toggle the readonly state for the component.
3293
+ * @type boolean
3294
+ * @default false
3295
+ */
3296
+ set inputReadOnly(value: boolean);
3297
+ get inputReadOnly(): boolean;
3298
+ private _inputReadOnly;
3299
+ /**
3300
+ * Sets the default locale for components. If not set, it is inherited from the browser.
3301
+ * @type string
3302
+ * @default default
3303
+ */
3304
+ locale: string;
3305
+ /**
3306
+ * Specifies short hint visible in time input.
3307
+ * @type string
3308
+ * @default 'Select time'
3309
+ */
3310
+ placeholder: string;
3311
+ /**
3312
+ * Toggle seconds visibility.
3313
+ * @type boolean
3314
+ * @default false
3315
+ */
3316
+ set seconds(value: boolean);
3317
+ get seconds(): boolean;
3318
+ private _seconds;
3319
+ /**
3320
+ * Size the component small or large.
3321
+ * @type 'sm' | 'lg' | undefined
3322
+ * @default undefined
3323
+ */
3324
+ size?: 'sm' | 'lg';
3325
+ /**
3326
+ * Initial selected time.
3327
+ * @type Date | string | null | number
3328
+ * @default undefined
3329
+ */
3330
+ set time(value: Date | string | undefined);
3331
+ get time(): Date | undefined;
3332
+ private _time?;
3333
+ private _timeInternal?;
3334
+ /**
3335
+ * Set the time picker variant to a roll or select.
3336
+ * @type 'roll' | 'select'
3337
+ * @default 'roll'
3338
+ */
3339
+ variant: 'roll' | 'select';
3340
+ /**
3341
+ * Toggle visual validation feedback.
3342
+ * @type boolean | undefined
3343
+ * @default undefined
3344
+ */
3345
+ valid?: boolean;
3346
+ /**
3347
+ * Toggle the visibility of dropdown timepicker menu component.
3348
+ * @type boolean
3349
+ * @default false
3350
+ */
3351
+ set visible(value: boolean);
3352
+ get visible(): boolean;
3353
+ private _visible;
3354
+ timeChange: EventEmitter<Date | undefined>;
3355
+ onBlur(): void;
3356
+ dropdownRef: ElementRef;
3357
+ templates: any;
3358
+ contentTemplates: QueryList<GtrTemplateIdDirective>;
3359
+ listOfHours: ITimeValue[];
3360
+ listOfHours12: ITimeValue[];
3361
+ listOfMinutes: ITimeValue[];
3362
+ listOfSeconds: ITimeValue[];
3363
+ hour12: boolean;
3364
+ dayPeriods: {
3365
+ value: string;
3366
+ label: string;
3367
+ }[];
3368
+ set timeInputValue(value: string);
3369
+ get timeInputValue(): string;
3370
+ private _timeInputValue;
3371
+ get timePickerClasses(): {
3372
+ 'form-control': boolean;
3373
+ 'is-valid': boolean;
3374
+ 'is-invalid': boolean;
3375
+ };
3376
+ selectTime: FormGroup<{
3377
+ selectHours: FormControl<number | null>;
3378
+ selectMinutes: FormControl<number | null>;
3379
+ selectSeconds?: FormControl<number | null>;
3380
+ selectDayPeriod?: FormControl<"am" | "pm" | null>;
3381
+ }>;
3382
+ timeInput: FormControl<string | null>;
3383
+ set hour(value: number);
3384
+ get hour(): number;
3385
+ private _hour;
3386
+ set minute(value: number);
3387
+ get minute(): number;
3388
+ private _minute;
3389
+ set second(value: number);
3390
+ get second(): number;
3391
+ private _second;
3392
+ set dayPeriod(value: DayPeriod);
3393
+ get dayPeriod(): DayPeriod;
3394
+ private _dayPeriod;
3395
+ setTime(): void;
3396
+ clearTime(): void;
3397
+ emitTime(time: Date | undefined): void;
3398
+ ngOnInit(): void;
3399
+ ngOnChanges(changes: SimpleChanges): void;
3400
+ ngAfterViewInit(): void;
3401
+ setTimeLists(): void;
3402
+ updateSelectTime(time?: Date | undefined): void;
3403
+ closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
3404
+ listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
3405
+ handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
3406
+ handleSelectHoursChange(hour: number): void;
3407
+ handleSelectMinutesChange(minute: number): void;
3408
+ handleSelectSecondsChange(second: number): void;
3409
+ patchSelectTimeValues(): void;
3410
+ trackByHour(index: number, hour: ITimeValue): ITimeValue;
3411
+ onChange: (value: Date | undefined) => void;
3412
+ onTouched: () => void;
3413
+ writeValue(value: any): void;
3414
+ registerOnChange(fn: any): void;
3415
+ registerOnTouched(fn: any): void;
3416
+ setDisabledState(isDisabled: boolean): void;
3417
+ handleTimeInputChange($event: any): void;
3418
+ handleClear($event: MouseEvent): void;
3419
+ handleBlur($event: FocusEvent): void;
3420
+ handleFocus($event: FocusEvent): void;
3421
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTimePickerComponent, never>;
3422
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTimePickerComponent, "gtr-time-picker", ["gtrTimePicker"], { "cleaner": { "alias": "cleaner"; "required": false; }; "dateTimeFormatOptions": { "alias": "dateTimeFormatOptions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "filterHours": { "alias": "filterHours"; "required": false; }; "filterMinutes": { "alias": "filterMinutes"; "required": false; }; "filterSeconds": { "alias": "filterSeconds"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "size": { "alias": "size"; "required": false; }; "time": { "alias": "time"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "timeChange": "timeChange"; }, ["contentTemplates"], never, true, never>;
3423
+ }
3424
+
3425
+ declare class GtrTagsInputComponent implements ControlValueAccessor, OnInit, OnChanges {
3426
+ tagInputRef: ElementRef<HTMLInputElement>;
3427
+ value: string[];
3428
+ inputLabel: string;
3429
+ type: string;
3430
+ disabled: boolean;
3431
+ readonly: boolean;
3432
+ dataTransactionName: string;
3433
+ invalid: boolean;
3434
+ placeholder: string;
3435
+ options: string[];
3436
+ maxTags: number;
3437
+ removeLastOnBackspace: boolean;
3438
+ canDeleteTags: boolean;
3439
+ canAddTags: boolean;
3440
+ onlyFromDropdown: boolean;
3441
+ color: string;
3442
+ dangerColor: string;
3443
+ private _removeValidators;
3444
+ set resetTagInput(state: boolean);
3445
+ valueChanged: EventEmitter<string[]>;
3446
+ touched: EventEmitter<boolean>;
3447
+ inputStatus: EventEmitter<string>;
3448
+ removeValidators: boolean;
3449
+ customValidators: ValidatorFn[];
3450
+ private readonly _destroyRef;
3451
+ isTouched: boolean;
3452
+ /** Control Value Accessor Methods */
3453
+ private onChange;
3454
+ private onTouched;
3455
+ tagControl: FormControl<string | null>;
3456
+ filteredOptions: string[];
3457
+ showDropdown: boolean;
3458
+ private controlDir;
3459
+ private elementRef;
3460
+ constructor();
3461
+ ngOnChanges(changes: SimpleChanges): void;
3462
+ ngOnInit(): void;
3463
+ private updateDisabledState;
3464
+ private applyColorVariables;
3465
+ filterOptions(inputValue: string): void;
3466
+ selectOption(option: string): void;
3467
+ private updateTagValidators;
3468
+ writeValue(value: string[] | null | undefined): void;
3469
+ registerOnChange(fn: any): void;
3470
+ registerOnTouched(fn: any): void;
3471
+ handleBackspace(event: KeyboardEvent | Event): void;
3472
+ setDisabledState(isDisabled: boolean): void;
3473
+ handleBlur(): void;
3474
+ addTag(event: Event): void;
3475
+ removeTag(index: number): void;
3476
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTagsInputComponent, never>;
3477
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTagsInputComponent, "gtr-tags-input", never, { "value": { "alias": "value"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "maxTags": { "alias": "maxTags"; "required": false; }; "removeLastOnBackspace": { "alias": "removeLastOnBackspace"; "required": false; }; "canDeleteTags": { "alias": "canDeleteTags"; "required": false; }; "canAddTags": { "alias": "canAddTags"; "required": false; }; "onlyFromDropdown": { "alias": "onlyFromDropdown"; "required": false; }; "color": { "alias": "color"; "required": false; }; "dangerColor": { "alias": "dangerColor"; "required": false; }; "resetTagInput": { "alias": "resetTagInput"; "required": false; }; "removeValidators": { "alias": "removeValidators"; "required": false; }; "customValidators": { "alias": "customValidators"; "required": false; }; }, { "valueChanged": "valueChanged"; "touched": "touched"; "inputStatus": "inputStatus"; }, never, ["*"], true, never>;
3478
+ }
3479
+
3480
+ declare class AutosizeDirective implements OnDestroy, OnChanges, AfterContentChecked {
3481
+ element: ElementRef;
3482
+ private _zone;
3483
+ set minRows(value: number);
3484
+ set _autosize(autosize: boolean | string);
3485
+ private _minRows;
3486
+ maxRows: number;
3487
+ onlyGrow: boolean;
3488
+ useImportant: boolean;
3489
+ resized: EventEmitter<number>;
3490
+ private autosize;
3491
+ private retries;
3492
+ private textAreaEl;
3493
+ private _oldContent;
3494
+ private _oldWidth;
3495
+ private _windowResizeHandler;
3496
+ private _destroyed;
3497
+ onInput(event: Event): void;
3498
+ constructor(element: ElementRef, _zone: NgZone);
3499
+ ngOnDestroy(): void;
3500
+ ngAfterContentChecked(): void;
3501
+ ngOnChanges(changes: SimpleChanges): void;
3502
+ _findNestedTextArea(): void;
3503
+ _onTextAreaFound(): void;
3504
+ _addWindowResizeHandler(): void;
3505
+ adjust(inputsChanged?: boolean): void;
3506
+ private _getLineHeight;
3507
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutosizeDirective, never>;
3508
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutosizeDirective, "[autosize]", never, { "minRows": { "alias": "minRows"; "required": false; }; "_autosize": { "alias": "autosize"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "onlyGrow": { "alias": "onlyGrow"; "required": false; }; "useImportant": { "alias": "useImportant"; "required": false; }; }, { "resized": "resized"; }, never, never, true, never>;
3509
+ }
3510
+
3511
+ declare enum EContrastColor {
3512
+ light = 1,
3513
+ dark = 2
3514
+ }
3515
+ declare const CContrastBorderColorVariable: {
3516
+ 1: string;
3517
+ 2: string;
3518
+ };
3519
+
3520
+ declare class ColorHelper {
3521
+ static getContrastColor(hex: string, contrastValue?: number): EContrastColor;
3522
+ }
3523
+
3524
+ export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDefaultPageIndex, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPageSizeOptions, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
3525
+ export type { Alignment, BackgroundColors, BadgePositions, BreakpointInfixStrings, Breakpoints, ButtonType$1 as ButtonType, Colors, ColorsGradient, DateTimeFormatOptions, DayPeriod, Directions, GrtPaginationType, GtrCheckboxValueChanged, GtrFileInputList, GtrNumericCounterChangeEvent, GtrPage, GtrPageEvent, GtrPaginationOptions, GtrSelectScroll, IDayPeriods, INavAttributes, INavLinkProps, ITimeValue, InputType, Placements, Positions, Shapes, Sizes, TCOLUMN, THEAD, TROW, TextColors, Triggers };