@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
@@ -1,62 +0,0 @@
1
- import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
2
- import { TCOLUMN, THEAD, TROW } from '../gtr-table.interface';
3
- import { DynamicHostDirective } from '../dynamic-host.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecked {
6
- private cdRef;
7
- dynamicHosts: QueryList<DynamicHostDirective>;
8
- constructor(cdRef: ChangeDetectorRef);
9
- templateRef: QueryList<ViewContainerRef>;
10
- childRowRef: QueryList<ViewContainerRef>;
11
- dataTransactionName: string;
12
- /**
13
- * Set the hide/show state of checbox.
14
- * @default 'boolean'
15
- * @type CheckBox State
16
- */
17
- enableSelection: boolean;
18
- isLoading: boolean;
19
- /**
20
- * Table columns
21
- */
22
- columns: THEAD[];
23
- /**
24
- * Table columns
25
- */
26
- tableMainId: string;
27
- /**
28
- * Table data
29
- */
30
- data: TROW[];
31
- /**
32
- * The selection changed eventemitter
33
- */
34
- onSelection: EventEmitter<{
35
- lastSelected?: any;
36
- selectedRows: any;
37
- all: boolean;
38
- }>;
39
- /**
40
- * Action eventemitter
41
- */
42
- onAction: EventEmitter<any>;
43
- /**
44
- * Component Event eventemitter
45
- */
46
- handleEvent: EventEmitter<any>;
47
- /**
48
- * Sorting eventemitter
49
- */
50
- onSort: EventEmitter<any>;
51
- ngAfterViewChecked(): void;
52
- onSorting(sortType: number, column: any): void;
53
- actionDone(event: any, rowId: any, action: any): void;
54
- fetchEvent(e: any): void;
55
- onColumnClick(rowId: string, column: TCOLUMN, event: any, colIndex: number, eventType?: string): void;
56
- selectAll(event: any): void;
57
- fectchSelection(): boolean;
58
- selectionDone(event: any, item: any): void;
59
- ngOnDestroy(): void;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableMainComponent, never>;
61
- 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>;
62
- }
@@ -1,84 +0,0 @@
1
- import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
2
- import { TCOLUMN, THEAD, TROW } from '../gtr-table.interface';
3
- import { GtrFetchAttributePipe } from '../gtr-fetch-attribute.pipe';
4
- import { DynamicHostDirective } from '../dynamic-host.directive';
5
- import * as i0 from "@angular/core";
6
- export declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked {
7
- private cdRef;
8
- private attributesPipe;
9
- dynamicHosts: QueryList<DynamicHostDirective>;
10
- isLoading: boolean;
11
- appDynamicHost: any;
12
- constructor(cdRef: ChangeDetectorRef, attributesPipe: GtrFetchAttributePipe);
13
- /**
14
- * Set the hide/show state of checbox.
15
- * @default 'boolean'
16
- * @type CheckBox State
17
- */
18
- enableSelection: boolean;
19
- /**
20
- * Table columns
21
- */
22
- columns: THEAD[];
23
- /**
24
- * Table data
25
- */
26
- data: TROW[];
27
- /**
28
- * Table data
29
- */
30
- tableResponsiveId: string;
31
- dataTransactionName: string;
32
- /**
33
- * The selection changed eventemitter
34
- */
35
- onSelection: EventEmitter<any>;
36
- /**
37
- * Action eventemitter
38
- */
39
- onAction: EventEmitter<any>;
40
- /**
41
- * Component Event eventemitter
42
- */
43
- handleEvent: EventEmitter<any>;
44
- /**
45
- * Sorting eventemitter
46
- */
47
- onSort: EventEmitter<any>;
48
- /**
49
- * To check screen size
50
- */
51
- onResize(event: {
52
- target: {
53
- innerWidth: any;
54
- };
55
- }): void;
56
- ngAfterViewChecked(): void;
57
- fetchSelection(): boolean;
58
- /**
59
- * The method is used to emit Select All state
60
- */
61
- selectAll(event: any): void;
62
- /**
63
- * The method is used to emit selected rows
64
- */
65
- selectionDone(event: any, item: any): void;
66
- /**
67
- * The method is used to emit action
68
- */
69
- actionDone(value: string, row: any, action: any): void;
70
- fetchEvent(e: any): void;
71
- onColumnClick(rowId: any, column: TCOLUMN): void;
72
- getActions(columns: TCOLUMN[] | undefined): TCOLUMN | undefined;
73
- /**
74
- * The method is used to check show/hidden state of row
75
- */
76
- checkRowHiddenState(row: any, column: any, expandAttributes: any, i: number): boolean | undefined;
77
- /**
78
- * The method is used to toggle show/hide state of row
79
- */
80
- expandRow(row: any): void;
81
- ngOnDestroy(): void;
82
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableResponsiveComponent, never>;
83
- 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>;
84
- }
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1,2 +0,0 @@
1
- export { GtrTabComponent } from './tab/gtr-tab.component';
2
- export { GtrTabsWrapperComponent } from './tabs-wrapper/gtr-tabs-wrapper.component';
@@ -1,17 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GtrTabComponent {
4
- label: string;
5
- active: boolean;
6
- dataTransactionName: string;
7
- disabled: boolean;
8
- tabChange: EventEmitter<any>;
9
- private _activeTab;
10
- constructor();
11
- set activeTab(activeTab: {
12
- activeTab: GtrTabComponent | GtrTabComponent[];
13
- index: number;
14
- } | null);
15
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabComponent, never>;
16
- 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>;
17
- }
@@ -1,24 +0,0 @@
1
- import { ElementRef, EventEmitter, QueryList } from '@angular/core';
2
- import { GtrTabComponent } from '../tab/gtr-tab.component';
3
- import * as i0 from "@angular/core";
4
- export declare class GtrTabsWrapperComponent {
5
- tabs: QueryList<GtrTabComponent>;
6
- position: 'start' | 'end' | 'center' | 'fill';
7
- dataTransactionName: string;
8
- id: string;
9
- testId: string;
10
- tabScrollContainerRef: ElementRef;
11
- tabScrollListRef: ElementRef;
12
- tabChanges: EventEmitter<any>;
13
- get tabsContainerClass(): string;
14
- get tabsWrapperClass(): string;
15
- get tabListLength(): number;
16
- ngOnInit(): void;
17
- ngAfterContentInit(): void;
18
- ngAfterViewInit(): void;
19
- selectTab(selectedTab: GtrTabComponent): void;
20
- onTabListScroll(): void;
21
- isScrollable(element: HTMLElement): boolean;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTabsWrapperComponent, never>;
23
- 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>;
24
- }
@@ -1,2 +0,0 @@
1
- /** Converts any CSS color (hex, rgb, hsl, etc.) to rgba with alpha */
2
- export declare function toRGBA(color: string, alpha: number): string;
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1 +0,0 @@
1
- export { GtrTagsInputComponent } from './tag-input/gtr-tags-input.component';
@@ -1,57 +0,0 @@
1
- import { EventEmitter, OnInit, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
2
- import { ControlValueAccessor, FormControl, ValidatorFn } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class GtrTagsInputComponent implements ControlValueAccessor, OnInit, OnChanges {
5
- tagInputRef: ElementRef<HTMLInputElement>;
6
- value: string[];
7
- inputLabel: string;
8
- type: string;
9
- disabled: boolean;
10
- readonly: boolean;
11
- dataTransactionName: string;
12
- invalid: boolean;
13
- placeholder: string;
14
- options: string[];
15
- maxTags: number;
16
- removeLastOnBackspace: boolean;
17
- canDeleteTags: boolean;
18
- canAddTags: boolean;
19
- onlyFromDropdown: boolean;
20
- color: string;
21
- dangerColor: string;
22
- private _removeValidators;
23
- set resetTagInput(state: boolean);
24
- valueChanged: EventEmitter<string[]>;
25
- touched: EventEmitter<boolean>;
26
- inputStatus: EventEmitter<string>;
27
- removeValidators: boolean;
28
- customValidators: ValidatorFn[];
29
- private readonly _destroyRef;
30
- isTouched: boolean;
31
- /** Control Value Accessor Methods */
32
- private onChange;
33
- private onTouched;
34
- tagControl: FormControl<string | null>;
35
- filteredOptions: string[];
36
- showDropdown: boolean;
37
- private controlDir;
38
- private elementRef;
39
- constructor();
40
- ngOnChanges(changes: SimpleChanges): void;
41
- ngOnInit(): void;
42
- private updateDisabledState;
43
- private applyColorVariables;
44
- filterOptions(inputValue: string): void;
45
- selectOption(option: string): void;
46
- private updateTagValidators;
47
- writeValue(value: string[] | null | undefined): void;
48
- registerOnChange(fn: any): void;
49
- registerOnTouched(fn: any): void;
50
- handleBackspace(event: KeyboardEvent | Event): void;
51
- setDisabledState(isDisabled: boolean): void;
52
- handleBlur(): void;
53
- addTag(event: Event): void;
54
- removeTag(index: number): void;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTagsInputComponent, never>;
56
- 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>;
57
- }
@@ -1,196 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core';
2
- import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
- import { BooleanInput } from '@angular/cdk/coercion';
4
- import { DateTimeFormatOptions, DayPeriod, ITimeValue } from './gtr-time.utils';
5
- import { GtrTemplateIdDirective } from '../shared';
6
- import * as i0 from "@angular/core";
7
- export declare class GtrTimePickerComponent implements OnChanges, OnInit, ControlValueAccessor, AfterViewInit {
8
- constructor();
9
- static ngAcceptInputType_cleaner: BooleanInput;
10
- static ngAcceptInputType_disabled: BooleanInput;
11
- static ngAcceptInputType_indicator: BooleanInput;
12
- static ngAcceptInputType_inputReadOnly: BooleanInput;
13
- static ngAcceptInputType_seconds: BooleanInput;
14
- static ngAcceptInputType_visible: BooleanInput;
15
- /**
16
- * Toggle visibility or set the content of the cleaner button.
17
- * @type boolean
18
- * @default true
19
- */
20
- set cleaner(value: boolean);
21
- get cleaner(): boolean;
22
- private _cleaner;
23
- /**
24
- * Sets DateTime format options including timeZone
25
- * @type DateTimeFormatOptions
26
- * @default {}
27
- * @note The date object doesn't store timeZone, it keeps the local timezone of the browser, regardless if you parsed UTC dates.
28
- */
29
- dateTimeFormatOptions: DateTimeFormatOptions;
30
- /**
31
- * Toggle the disabled state for the component.
32
- * @type boolean
33
- * @default false
34
- */
35
- set disabled(value: boolean);
36
- get disabled(): boolean;
37
- private _disabled;
38
- /**
39
- * Filter available hours to pick.
40
- * @type (value: number) => boolean;
41
- * @default undefined
42
- */
43
- filterHours?: (value: number) => boolean;
44
- /**
45
- * Filter available minutes to pick.
46
- * @type (value: number) => boolean;
47
- * @default undefined
48
- */
49
- filterMinutes?: (value: number) => boolean;
50
- /**
51
- * Filter available seconds to pick.
52
- * @type (value: number) => boolean;
53
- * @default undefined
54
- */
55
- filterSeconds?: (value: number) => boolean;
56
- /**
57
- * Toggle visibility or set the content of the input indicator.
58
- * @type boolean
59
- * @default true
60
- */
61
- set indicator(value: boolean);
62
- get indicator(): boolean;
63
- private _indicator;
64
- /**
65
- * Toggle the readonly state for the component.
66
- * @type boolean
67
- * @default false
68
- */
69
- set inputReadOnly(value: boolean);
70
- get inputReadOnly(): boolean;
71
- private _inputReadOnly;
72
- /**
73
- * Sets the default locale for components. If not set, it is inherited from the browser.
74
- * @type string
75
- * @default default
76
- */
77
- locale: string;
78
- /**
79
- * Specifies short hint visible in time input.
80
- * @type string
81
- * @default 'Select time'
82
- */
83
- placeholder: string;
84
- /**
85
- * Toggle seconds visibility.
86
- * @type boolean
87
- * @default false
88
- */
89
- set seconds(value: boolean);
90
- get seconds(): boolean;
91
- private _seconds;
92
- /**
93
- * Size the component small or large.
94
- * @type 'sm' | 'lg' | undefined
95
- * @default undefined
96
- */
97
- size?: 'sm' | 'lg';
98
- /**
99
- * Initial selected time.
100
- * @type Date | string | null | number
101
- * @default undefined
102
- */
103
- set time(value: Date | string | undefined);
104
- get time(): Date | undefined;
105
- private _time?;
106
- private _timeInternal?;
107
- /**
108
- * Set the time picker variant to a roll or select.
109
- * @type 'roll' | 'select'
110
- * @default 'roll'
111
- */
112
- variant: 'roll' | 'select';
113
- /**
114
- * Toggle visual validation feedback.
115
- * @type boolean | undefined
116
- * @default undefined
117
- */
118
- valid?: boolean;
119
- /**
120
- * Toggle the visibility of dropdown timepicker menu component.
121
- * @type boolean
122
- * @default false
123
- */
124
- set visible(value: boolean);
125
- get visible(): boolean;
126
- private _visible;
127
- timeChange: EventEmitter<Date | undefined>;
128
- onBlur(): void;
129
- dropdownRef: ElementRef;
130
- templates: any;
131
- contentTemplates: QueryList<GtrTemplateIdDirective>;
132
- listOfHours: ITimeValue[];
133
- listOfHours12: ITimeValue[];
134
- listOfMinutes: ITimeValue[];
135
- listOfSeconds: ITimeValue[];
136
- hour12: boolean;
137
- dayPeriods: {
138
- value: string;
139
- label: string;
140
- }[];
141
- set timeInputValue(value: string);
142
- get timeInputValue(): string;
143
- private _timeInputValue;
144
- get timePickerClasses(): {
145
- 'form-control': boolean;
146
- 'is-valid': boolean;
147
- 'is-invalid': boolean;
148
- };
149
- selectTime: FormGroup<{
150
- selectHours: FormControl<number | null>;
151
- selectMinutes: FormControl<number | null>;
152
- selectSeconds?: FormControl<number | null>;
153
- selectDayPeriod?: FormControl<"am" | "pm" | null>;
154
- }>;
155
- timeInput: FormControl<string | null>;
156
- set hour(value: number);
157
- get hour(): number;
158
- private _hour;
159
- set minute(value: number);
160
- get minute(): number;
161
- private _minute;
162
- set second(value: number);
163
- get second(): number;
164
- private _second;
165
- set dayPeriod(value: DayPeriod);
166
- get dayPeriod(): DayPeriod;
167
- private _dayPeriod;
168
- setTime(): void;
169
- clearTime(): void;
170
- emitTime(time: Date | undefined): void;
171
- ngOnInit(): void;
172
- ngOnChanges(changes: SimpleChanges): void;
173
- ngAfterViewInit(): void;
174
- setTimeLists(): void;
175
- updateSelectTime(time?: Date | undefined): void;
176
- closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
177
- listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
178
- handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
179
- handleSelectHoursChange(hour: number): void;
180
- handleSelectMinutesChange(minute: number): void;
181
- handleSelectSecondsChange(second: number): void;
182
- patchSelectTimeValues(): void;
183
- trackByHour(index: number, hour: ITimeValue): ITimeValue;
184
- onChange: (value: Date | undefined) => void;
185
- onTouched: () => void;
186
- writeValue(value: any): void;
187
- registerOnChange(fn: any): void;
188
- registerOnTouched(fn: any): void;
189
- setDisabledState(isDisabled: boolean): void;
190
- handleTimeInputChange($event: any): void;
191
- handleClear($event: MouseEvent): void;
192
- handleBlur($event: FocusEvent): void;
193
- handleFocus($event: FocusEvent): void;
194
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTimePickerComponent, never>;
195
- 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>;
196
- }
@@ -1,57 +0,0 @@
1
- export interface DateTimeFormatOptions {
2
- localeMatcher?: 'best fit' | 'lookup' | undefined;
3
- weekday?: 'long' | 'short' | 'narrow' | undefined;
4
- era?: 'long' | 'short' | 'narrow' | undefined;
5
- year?: 'numeric' | '2-digit' | undefined;
6
- month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow' | undefined;
7
- day?: 'numeric' | '2-digit' | undefined;
8
- hour?: 'numeric' | '2-digit' | undefined;
9
- minute?: 'numeric' | '2-digit' | undefined;
10
- second?: 'numeric' | '2-digit' | undefined;
11
- timeZoneName?: 'long' | 'short' | undefined;
12
- formatMatcher?: 'best fit' | 'basic' | undefined;
13
- hour12?: boolean | undefined;
14
- timeZone?: string | undefined;
15
- }
16
- export type DayPeriod = 'am' | 'pm';
17
- export interface ITimeValue {
18
- value: number;
19
- label: string;
20
- dayPeriod?: DayPeriod;
21
- disabled?: boolean;
22
- }
23
- export interface IDayPeriods {
24
- am: string;
25
- pm: string;
26
- }
27
- export declare const getSupportedLocale: (locale?: string) => string;
28
- export declare const isHour12: (locale?: string) => boolean;
29
- export declare const convert12hTo24h: (abbr: "am" | "pm", hour: number) => number;
30
- export declare const convert24hTo12h: (hour: number) => number;
31
- export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
32
- export declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
33
- export declare const isAm: (date: Date) => boolean;
34
- export declare const isPm: (date: Date) => boolean;
35
- export declare const isValidTimeZone: (timeZone: unknown) => boolean;
36
- export declare const getListOfHours: (locale: string, options?: DateTimeFormatOptions) => {
37
- value: number;
38
- dayPeriod: DayPeriod;
39
- label: string;
40
- }[];
41
- export declare const getListOfMinutes: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
42
- value: number;
43
- label: string;
44
- }[];
45
- export declare const getListOfSeconds: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
46
- value: number;
47
- label: string;
48
- }[];
49
- export declare const getSelectedHour: (date: Date | null, locale: string) => number | "";
50
- export declare const getSelectedMinutes: (date: Date | null) => number | "";
51
- export declare const getSelectedSeconds: (date: Date | null) => number | "";
52
- export declare const isAmPm: (locale?: string) => boolean;
53
- export declare const isValidTime: (time: string | Date | number | any) => boolean;
54
- export declare const getDayPeriods: (locale?: string, options?: DateTimeFormatOptions) => {
55
- value: string;
56
- label: string;
57
- }[];
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1,2 +0,0 @@
1
- export { GtrTimePickerComponent } from './gtr-time-picker.component';
2
- export * from './gtr-time.utils';
@@ -1,38 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
- import { DayPeriod } from '../gtr-time.utils';
3
- import * as i0 from "@angular/core";
4
- export interface IDayPeriod {
5
- value: string;
6
- label: string;
7
- dayPeriod?: DayPeriod;
8
- disabled?: boolean;
9
- }
10
- export declare class GtrDayPeriodElementDirective {
11
- elementRef: ElementRef;
12
- constructor(elementRef: ElementRef);
13
- gtrDayPeriodElement: IDayPeriod;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrDayPeriodElementDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<GtrDayPeriodElementDirective, "[gtrDayPeriodElement]", ["gtrDayPeriodElement"], { "gtrDayPeriodElement": { "alias": "gtrDayPeriodElement"; "required": false; }; }, {}, never, never, true, never>;
16
- }
17
- export declare class GtrTimePickerRollAmPmComponent implements OnChanges, AfterViewInit {
18
- elementRef: ElementRef;
19
- constructor(elementRef: ElementRef);
20
- private init;
21
- disabled: boolean;
22
- elements: IDayPeriod[];
23
- onClick?: (value: number | string) => void;
24
- selected?: number | string | null;
25
- refresh?: boolean;
26
- selectedChange: EventEmitter<any>;
27
- get hostClasses(): {
28
- 'time-picker-roll-col': boolean;
29
- disabled: boolean;
30
- };
31
- dayPeriodElements: QueryList<GtrDayPeriodElementDirective>;
32
- ngAfterViewInit(): void;
33
- ngOnChanges(changes: SimpleChanges): void;
34
- scrollToElement(element: any): void;
35
- handleElementClick($event: MouseEvent, element: any): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTimePickerRollAmPmComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrTimePickerRollAmPmComponent, "gtr-time-picker-roll-am-pm", never, { "disabled": { "alias": "disabled"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
38
- }
@@ -1,38 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
- import { ITimeValue } from '../gtr-time.utils';
3
- import * as i0 from "@angular/core";
4
- export interface ITimePickerRollCol {
5
- elements: ITimeValue[];
6
- onClick?: (value: number | string) => void;
7
- selected?: number | string | null;
8
- }
9
- export declare class GtrTimeElementDirective {
10
- elementRef: ElementRef;
11
- constructor(elementRef: ElementRef);
12
- gtrTimeElement: ITimeValue;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTimeElementDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<GtrTimeElementDirective, "[gtrTimeElement]", ["gtrTimeElement"], { "gtrTimeElement": { "alias": "gtrTimeElement"; "required": false; }; }, {}, never, never, true, never>;
15
- }
16
- export declare class GtrTimePickerRollColComponent implements ITimePickerRollCol, OnChanges, AfterViewInit {
17
- elementRef: ElementRef;
18
- constructor(elementRef: ElementRef);
19
- private init;
20
- disabled: boolean;
21
- elements: ITimeValue[];
22
- onClick?: (value: number | string) => void;
23
- selected?: number | string | null;
24
- refresh?: boolean;
25
- selectedChange: EventEmitter<any>;
26
- get hostClasses(): {
27
- 'time-picker-roll-col': boolean;
28
- disabled: boolean;
29
- };
30
- timeElements: QueryList<GtrTimeElementDirective>;
31
- ngAfterViewInit(): void;
32
- ngOnChanges(changes: SimpleChanges): void;
33
- scrollToElement(element: any): void;
34
- handleElementClick($event: MouseEvent, element: any): void;
35
- trackByElement(index: number, element: ITimeValue): number;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTimePickerRollColComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrTimePickerRollColComponent, "gtr-time-picker-roll-col", ["gtrTimePickerRollCol"], { "disabled": { "alias": "disabled"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
38
- }
@@ -1,8 +0,0 @@
1
- export declare enum EContrastColor {
2
- light = 1,
3
- dark = 2
4
- }
5
- export declare const CContrastBorderColorVariable: {
6
- 1: string;
7
- 2: string;
8
- };
@@ -1,7 +0,0 @@
1
- export declare class StyleVariables {
2
- static white: string;
3
- static black: string;
4
- static gray40: string;
5
- static gray10: string;
6
- static borderContrast: string;
7
- }