@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,21 +0,0 @@
1
- import { GtrPage } from '../helpers';
2
- /**
3
- * component function to create page range
4
- * @param start
5
- * @param end
6
- * @returns
7
- */
8
- export declare function pageRange(start: number, end: number): GtrPage[];
9
- /**
10
- * Method to create pagination data
11
- * @param res
12
- * @returns
13
- */
14
- export declare function usePagination(res: {
15
- totalCount: number;
16
- pageSize: number;
17
- siblingCount: number;
18
- currentPage: number;
19
- pageIndex: number;
20
- }): GtrPage[] | undefined;
21
- export declare function hasMobileView(): boolean;
@@ -1,2 +0,0 @@
1
- export { GtrPaginationComponent } from './pagination/gtr-pagination.component';
2
- export { GtrValidatePagePipe } from './helpers';
@@ -1,4 +0,0 @@
1
- export declare enum GtrSelectListLoaderVariation {
2
- TEXT = "TEXT",
3
- SPINNER = "SPINNER"
4
- }
@@ -1 +0,0 @@
1
- export * from './gtr-select.enums';
@@ -1,3 +0,0 @@
1
- export * from './pipes';
2
- export * from './types';
3
- export * from './enums';
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GtrFormatSelectedValuePipe implements PipeTransform {
4
- private readonly _limitText;
5
- 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;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormatSelectedValuePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<GtrFormatSelectedValuePipe, "gtrFormatSelectedValue", true>;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './format-selected-value/gtr-format-selected-value.pipe';
2
- export * from './trim-text/gtr-trim-text.pipe';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GtrTrimTextPipe implements PipeTransform {
4
- transform(value: string | number | null | undefined, limit: number): string | number | undefined;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTrimTextPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<GtrTrimTextPipe, "gtrTrimText", true>;
7
- }
@@ -1,7 +0,0 @@
1
- export type GtrSelectScroll = {
2
- scrollHeight: number;
3
- scrollTop: number;
4
- clientHeight: number;
5
- reachedBottom: boolean;
6
- reachedTop: boolean;
7
- };
@@ -1 +0,0 @@
1
- export * from './gtr-select.type';
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1,2 +0,0 @@
1
- export { GtrSelectComponent } from './select/gtr-select.component';
2
- export * from './helpers';
@@ -1,233 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { GtrSelectListLoaderVariation, GtrSelectScroll } from '../helpers';
4
- import * as i0 from "@angular/core";
5
- export declare class GtrSelectComponent implements OnChanges, ControlValueAccessor, AfterViewInit, OnDestroy {
6
- private _el;
7
- /** Input Label used for select box label */
8
- inputLabel: string;
9
- /**
10
- * To Show placeholder for select box
11
- * @default Select
12
- */
13
- placeholder: string;
14
- /** Float placeholder is used to keep the placeholder in container after selection */
15
- floatPlaceholder: boolean;
16
- /** Label key used to map label for internal objects of options */
17
- labelKey: string;
18
- /** Value key used to map value for internal objects of options */
19
- valueKey: string;
20
- /** Selected label used to map display text instead of actual value from options */
21
- selectedLabel: string;
22
- /** Highlight label used to map higlight label by adding "font-weight: bold" style property text when sub label are present for option list */
23
- highlightLabel: string;
24
- /** Sub label used to show the second label in option list */
25
- subLabel: string;
26
- /** View Only state of select box */
27
- isOnlyView: boolean;
28
- /** Used to bind value of select box */
29
- value: any | any[];
30
- /** Multiple check is used to allow the select box to accept multiple values */
31
- multiple: boolean;
32
- /** To allow lazy loading feature */
33
- lazyLoaded: boolean;
34
- /** Searchable check used to enable search box in select box list wrapper */
35
- searchable: boolean;
36
- /** Allow to disable select box */
37
- disabled: boolean;
38
- /** Allow to disable select box */
39
- hideOptions: boolean;
40
- /** Allow to clean search when closing the select */
41
- cleanSearchWhenClose: boolean;
42
- /** Allow to enable readonly state for select box */
43
- readonly: boolean;
44
- /** If is invalid then select box accept error message and style border to red color of select box input wrapper */
45
- is_invalid: boolean;
46
- /** To show loading while searching or fetching list */
47
- listLoading: boolean;
48
- /** To show skeleton view */
49
- loading: boolean;
50
- /** To show a change is loading */
51
- changeLoading: boolean;
52
- /** TO show loading spinner in search box / searching... text in the lists while searching */
53
- listLoaderVariation: GtrSelectListLoaderVariation;
54
- /**
55
- * Pass options list must be an array
56
- * @default empty[]
57
- */
58
- options: any[];
59
- /**
60
- * Autowrap value and options text if increase than given value
61
- * @default 28
62
- */
63
- textLimit: number;
64
- /**
65
- * Mark first option ready to select
66
- * @default false
67
- */
68
- autoSelect: boolean;
69
- /**
70
- * Change select box to autocomplete input
71
- */
72
- autocomplete: boolean;
73
- /**
74
- * Reset autocomplete input
75
- */
76
- set resetAutocomplete(value: boolean);
77
- /**
78
- * To enable add button in select box
79
- */
80
- enableAddButton: boolean;
81
- /**
82
- * To change button position in option list
83
- */
84
- addButtonPosition: 'top' | 'bottom';
85
- /**
86
- * Input to change add button label
87
- */
88
- addButtonLabel: string;
89
- /**
90
- * Input property to change Search Placeholder
91
- */
92
- searchPlaceholder: string;
93
- /**
94
- * Enable clear button for single select mode
95
- * @default false
96
- */
97
- clearable: boolean;
98
- /**
99
- * Event for add button clicked
100
- */
101
- addButtonClicked: EventEmitter<string>;
102
- /** Toggle state for select box container */
103
- isOpen: boolean;
104
- /** To set search value */
105
- searchValue: string;
106
- /** To set autocomplete input value */
107
- autocompleteInputValue: string;
108
- /** Store selected values */
109
- selectedValues: any[];
110
- selectedValuesRaw: any[];
111
- /** Store selected values for multiple */
112
- multipleSelectedValues: any[];
113
- multipleSelectedValuesRaw: any[];
114
- /** State for touched events */
115
- touched: boolean;
116
- /** Filtered options without affection actual list */
117
- filteredOptions: any[];
118
- /** Store selected value if lazyloading is enabled */
119
- selectedValueLazy: any[];
120
- /** Enums for Custom Select Loader Variations */
121
- readonly loaderVariation: typeof GtrSelectListLoaderVariation;
122
- name: string;
123
- dataTransactionName: string;
124
- /** Event for value change */
125
- readonly valueChanged: EventEmitter<any>;
126
- /** Event for search value change */
127
- readonly searchChanged: EventEmitter<any>;
128
- /** Event for autocomplete input */
129
- readonly autocompleteInputChanged: EventEmitter<any>;
130
- /** Event for scrolling in list */
131
- readonly gtrScroll: EventEmitter<GtrSelectScroll>;
132
- /** Event if selectbox changed touched state */
133
- readonly gtrTouched: EventEmitter<any>;
134
- /** Event to validate autocomplete when select box get closed */
135
- readonly gtrBlur: EventEmitter<any>;
136
- /**
137
- * Contructor
138
- * @param _el
139
- */
140
- constructor(_el: ElementRef);
141
- /** Control Value Accessor Methods */
142
- private onChange;
143
- private onTouched;
144
- writeValue(value: any): void;
145
- registerOnChange(fn: any): void;
146
- registerOnTouched(fn: any): void;
147
- setDisabledState(isDisabled: boolean): void;
148
- /**
149
- * On Changes Hook
150
- * @param changes
151
- */
152
- ngOnChanges(changes: SimpleChanges): void;
153
- /**
154
- * On ViewInit Hook
155
- */
156
- ngAfterViewInit(): void;
157
- /*********** PUBLIC METHODS ***************/
158
- /**
159
- * NOTE: toggleSelectBox() function is declared to hide/show the dropdown list based on user latest event
160
- */
161
- toggleSelectBox(open?: boolean): void;
162
- /** Remove options */
163
- removeOptions(event: Event, option: any): void;
164
- /** Clear single select value */
165
- clearValue(event: Event): void;
166
- /**
167
- * HandleOptionClick function is declared to emit value changed events
168
- * @param option
169
- * @param removeOption
170
- * @param emitValue
171
- * @param toggleSelectBox
172
- */
173
- handleOptionClick(option: any, removeOption?: boolean, emitValue?: boolean, toggleSelectBox?: boolean): void;
174
- /**
175
- * handleSearchInput function is declared to filter the array based on search events.
176
- * @param event
177
- */
178
- handleSearchInput(event: Event): void;
179
- /** Method to filter option list */
180
- filterOptionList(): void;
181
- /**
182
- * Lazy loading on scroll for change page
183
- */
184
- lazyLoadPaginationScroll(): void;
185
- /*********** PRIVATE METHODS ***************/
186
- /** Handle Touch Events */
187
- private handleTouchEvent;
188
- /** Set Initial value on every change */
189
- private setInitialValue;
190
- private handleKeyboardNavigations;
191
- private getNextVisibleOption;
192
- private getPrevVisibleOption;
193
- private getFocusedOption;
194
- /**
195
- * Get first visible option of list
196
- */
197
- private getFirstVisibleOption;
198
- /**
199
- * setFocusOnOption function is declared to set focus on HTML li element.
200
- * @param option
201
- */
202
- private setFocusOnOption;
203
- /**
204
- * function to listen whether click triger outside of element to hide dropdown
205
- * @param event
206
- */
207
- private onClickOutside;
208
- /**
209
- * Function to listen whether screen size change to adjust position
210
- */
211
- private onWindowResize;
212
- /**
213
- * Function to listen whether screen scroll to adjust position
214
- */
215
- private onWindowScroll;
216
- /** TO adjust position of option list wrapper */
217
- private adjustPosition;
218
- private getOptionValue;
219
- /**
220
- * Handle click of add button in dropdown list
221
- */
222
- handleAddButton(enterKeyPressed?: boolean): void;
223
- /**
224
- * Handle emitted input value for autocomplete input
225
- * @param event
226
- */
227
- handleAutocompleteInput(event: Event): void;
228
- handleCloseSelect(): void;
229
- cleanSearch(): void;
230
- ngOnDestroy(): void;
231
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrSelectComponent, never>;
232
- 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>;
233
- }
@@ -1,16 +0,0 @@
1
- import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GtrHtmlAttributesDirective implements OnInit {
4
- private renderer;
5
- private el;
6
- gtrHtmlAttr?: {
7
- [key: string]: any;
8
- };
9
- constructor(renderer: Renderer2, el: ElementRef);
10
- ngOnInit(): void;
11
- private setStyle;
12
- private addClass;
13
- private setAttrib;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrHtmlAttributesDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<GtrHtmlAttributesDirective, "[gtrHtmlAttr]", ["gtrHtmlAttr"], { "gtrHtmlAttr": { "alias": "gtrHtmlAttr"; "required": false; }; }, {}, never, never, true, never>;
16
- }
@@ -1,9 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GtrTemplateIdDirective {
4
- templateRef: TemplateRef<any>;
5
- id: string;
6
- constructor(templateRef: TemplateRef<any>);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTemplateIdDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<GtrTemplateIdDirective, "[gtrTemplateId]", never, { "id": { "alias": "gtrTemplateId"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1,2 +0,0 @@
1
- export { GtrHtmlAttributesDirective } from './gtr-html-attr.directive';
2
- export { GtrTemplateIdDirective } from './gtr-template-id.directive';
@@ -1,58 +0,0 @@
1
- import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- declare const enum EStatCardDate {
4
- today = "Today",
5
- last7Days = "Last 7 days",
6
- last14Days = "Last 14 days",
7
- last30Days = "Last 30 days",
8
- currentMonth = "Current Month",
9
- lastMonth = "Last Month",
10
- custom = "Custom"
11
- }
12
- export declare class GtrStatCardComponent {
13
- private renderer;
14
- iconContainer?: ElementRef;
15
- labelContainer?: ElementRef;
16
- dateSelectWrapper?: ElementRef;
17
- showSkeletonLoading: boolean;
18
- /**
19
- * Stats
20
- */
21
- title: string;
22
- displayValue: string | number;
23
- value: string | number;
24
- iconName: string;
25
- isDangerCard: string | boolean;
26
- /**
27
- * Percentage
28
- **/
29
- enabledPercentage: string | boolean;
30
- percentage: number;
31
- isPercentageTrendUp: string | boolean;
32
- statsCardId: string;
33
- dataTransactionName: string;
34
- /**
35
- * Date Select
36
- */
37
- enabledDateSelect: string | boolean;
38
- dateOptions: EStatCardDate[] | string[];
39
- set dateSelected(dateSelected: EStatCardDate | string);
40
- get dateSelected(): EStatCardDate | string;
41
- private _dateSelected;
42
- dateSelectedChange: EventEmitter<string>;
43
- dateSelectOptions?: ElementRef;
44
- constructor(renderer: Renderer2);
45
- /**
46
- * Methods
47
- */
48
- openDateSelect(): void;
49
- closeDateSelect(): void;
50
- dateSelectedChangeEvent(date: EStatCardDate | string): void;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrStatCardComponent, never>;
52
- 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>;
53
- static ngAcceptInputType_isDangerCard: unknown;
54
- static ngAcceptInputType_enabledPercentage: unknown;
55
- static ngAcceptInputType_isPercentageTrendUp: unknown;
56
- static ngAcceptInputType_enabledDateSelect: unknown;
57
- }
58
- export {};
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1 +0,0 @@
1
- export { GtrStatCardComponent } from './gtr-stat-card.component';
@@ -1,24 +0,0 @@
1
- import { ComponentRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, Type, ViewContainerRef } from '@angular/core';
2
- import { Subject, Subscription } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class DynamicComponentDirective implements OnChanges, OnDestroy {
5
- component: any;
6
- isDestroy: boolean;
7
- eventEmitter: EventEmitter<any>;
8
- closed$: Subject<void>;
9
- componentRef: ComponentRef<any>;
10
- changesSubscription: Subscription | null;
11
- constructor();
12
- ngOnChanges(changes: SimpleChanges): void;
13
- private renderMatchingHost;
14
- ngOnDestroy(): void;
15
- loadComponents(ref: ViewContainerRef, rowIndex: number, properties: any, events: any, text: string): void;
16
- createDynamicComponent<T>(component: Type<T>, viewRef: ViewContainerRef): ComponentRef<T>;
17
- updateInstance(instances: Array<object>): void;
18
- detectChanges(ref: any, events: any, rowIndex: number): void;
19
- clickHandler(event?: any): void;
20
- eventHandler(event?: any): void;
21
- destroyComponent(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicComponentDirective, "[appDynamicComponent]", never, { "component": { "alias": "appDynamicComponent"; "required": false; }; "isDestroy": { "alias": "isDestroy"; "required": false; }; }, { "eventEmitter": "eventEmitter"; }, never, never, true, never>;
24
- }
@@ -1,13 +0,0 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DynamicHostDirective {
4
- viewContainerRef: ViewContainerRef;
5
- rowIndex: number;
6
- properties: any;
7
- events: any;
8
- text: any;
9
- colIndex: number;
10
- constructor(viewContainerRef: ViewContainerRef);
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicHostDirective, never>;
12
- 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>;
13
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { TCOLUMN, THEAD } from './gtr-table.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GtrFetchAttributePipe implements PipeTransform {
5
- constructor();
6
- transform(column: TCOLUMN | any, attribute: string, index: number, data: THEAD[] | any[]): any;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrFetchAttributePipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<GtrFetchAttributePipe, "gtrFetchAttribute", true>;
9
- }
@@ -1,89 +0,0 @@
1
- import { EventEmitter, OnDestroy } from '@angular/core';
2
- import { THEAD, TROW } from './gtr-table.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GtrTableComponent implements OnDestroy {
5
- constructor();
6
- switchState: boolean;
7
- dataTransactionName: string;
8
- /**
9
- * Set the table type.
10
- * @default 'boolean'
11
- * @type TableType
12
- */
13
- isResponsive: boolean;
14
- /**
15
- * Set the skeleton loading state.
16
- * @default 'boolean'
17
- * @type LoadingState
18
- */
19
- loading: boolean;
20
- /**
21
- * Set the hide/show state of checbox.
22
- * @default 'boolean'
23
- * @type CheckBox State
24
- */
25
- enableSelection: boolean;
26
- /**
27
- * Set the id of main web table.
28
- * @default 'string'
29
- * @type CheckBox State
30
- */
31
- tableMainId: string;
32
- /**
33
- * Set id of responsive table.
34
- * @default 'string'
35
- * @type CheckBox State
36
- */
37
- tableResponsiveId: string;
38
- /**
39
- * Table columns
40
- */
41
- columns: THEAD[];
42
- /**
43
- * Table data
44
- */
45
- data: TROW[];
46
- /**
47
- * The selection changed eventemitter
48
- * @default '{ value: any; all: boolean }'
49
- * @type Event Emitter
50
- */
51
- onSelection: EventEmitter<{
52
- value: any;
53
- all: boolean;
54
- }>;
55
- /**
56
- * Action eventemitter
57
- */
58
- onAction: EventEmitter<any>;
59
- /**
60
- * Component Event eventemitter
61
- */
62
- handleEvent: EventEmitter<any>;
63
- /**
64
- * Sorting eventemitter
65
- */
66
- onSort: EventEmitter<any>;
67
- /**
68
- * To check screen size
69
- */
70
- onResize(event: {
71
- target: {
72
- innerWidth: number;
73
- };
74
- }): void;
75
- ngOnInit(): void;
76
- selectionChange(ev: any): void;
77
- actionDone(ev: {
78
- value: boolean;
79
- id: number;
80
- }): void;
81
- fetchEvent(ev: any): void;
82
- sorting(ev: {
83
- value: boolean;
84
- id: number;
85
- }): void;
86
- ngOnDestroy(): void;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableComponent, never>;
88
- 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>;
89
- }
@@ -1,87 +0,0 @@
1
- interface TEXPAND {
2
- isExpanded: boolean;
3
- expandAfter: number;
4
- }
5
- interface TSORT {
6
- hasSorting: boolean;
7
- sort: -1 | 1 | 0;
8
- }
9
- interface TCOMPONENT {
10
- name: any;
11
- events: string[];
12
- properties: Array<object>;
13
- text: string;
14
- }
15
- interface TLINK {
16
- link?: string;
17
- text: string;
18
- disabled?: boolean;
19
- type?: 'internal' | 'external' | 'custom';
20
- target?: 'self' | '_blank';
21
- color?: string;
22
- }
23
- export type RGB = `rgb(${number}, ${number}, ${number})`;
24
- export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
25
- export type HEX = `#${string}`;
26
- interface TACTIONS {
27
- type: 'button' | 'icon' | 'dropdown' | 'input' | 'textarea' | 'toggle';
28
- icon: string;
29
- color: string | RGB | RGBA | HEX;
30
- name: string;
31
- size?: string;
32
- hide?: boolean;
33
- link?: string;
34
- }
35
- export interface STYLES {
36
- min?: string;
37
- max?: string;
38
- }
39
- export interface TCOLUMN {
40
- align?: 'left' | 'right' | 'center' | 'top' | 'bottom';
41
- styles?: STYLES;
42
- value: any | TCOMPONENT | TLINK;
43
- hide?: boolean;
44
- type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status' | 'link';
45
- wrap?: 'TRUNCATE' | 'WRAP' | 'INNERHTMLWRAP' | 'SPLITHEADING';
46
- label?: string;
47
- priority?: 'HIGH' | 'LOW';
48
- color?: string | RGB | RGBA | HEX;
49
- sorting?: TSORT;
50
- actions?: TACTIONS[];
51
- }
52
- export interface TROW {
53
- id: any;
54
- expand?: TEXPAND;
55
- isSelected?: boolean;
56
- columnsData: TCOLUMN[];
57
- }
58
- export interface SkeletonConfigs {
59
- mainTable: SkeletonMainTableConfigs;
60
- resposvieTable: SkeletonResponsiveTableConfigs;
61
- }
62
- export interface SkeletonMainTableConfigs {
63
- width?: string;
64
- height?: string;
65
- className?: string;
66
- repeat?: number;
67
- }
68
- export interface SkeletonResponsiveTableConfigs {
69
- width?: string;
70
- height?: string;
71
- className?: string;
72
- repeat?: number;
73
- }
74
- export interface THEAD {
75
- align?: 'left' | 'right' | 'center' | 'top' | 'bottom';
76
- headingType?: 'string' | 'innerHTML';
77
- hide?: boolean;
78
- styles?: STYLES;
79
- label: string;
80
- sorting: TSORT;
81
- type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status' | 'link';
82
- color?: string | RGB | RGBA | HEX;
83
- wrap?: 'TRUNCATE' | 'WRAP' | 'INNERHTMLWRAP' | 'SPLITHEADING';
84
- priority?: 'HIGH' | 'LOW';
85
- skeletonConfigs?: SkeletonConfigs;
86
- }
87
- export {};
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1,4 +0,0 @@
1
- export { GtrTableResponsiveComponent } from './table-responsive/gtr-table-responsive.component';
2
- export { GtrTableMainComponent } from './table-main/gtr-table-main.component';
3
- export { GtrTableComponent } from './gtr-table.component';
4
- export { TROW, THEAD, TCOLUMN } from './gtr-table.interface';