@gettrx/core-components-angular 1.0.31 → 1.0.33
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.
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +2 -2
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.component.mjs +1 -1
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.mjs +6 -6
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +117 -9
- package/esm2022/lib/molecules/table/gtr-table.module.mjs +5 -4
- package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +9 -3
- package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +9 -3
- package/fesm2022/gettrx-core-components-angular.mjs +140 -22
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.d.ts +1 -1
- package/lib/molecules/select/select/gtr-select.component.d.ts +52 -2
- package/lib/molecules/table/gtr-table.module.d.ts +2 -1
- package/lib/molecules/table/table-main/gtr-table-main.component.d.ts +2 -1
- package/lib/molecules/table/table-responsive/gtr-table-responsive.component.d.ts +1 -0
- package/package.json +2 -2
package/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class GtrFormatSelectedValuePipe implements PipeTransform {
|
|
4
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, lazyLoaded: boolean): any;
|
|
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
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrFormatSelectedValuePipe, never>;
|
|
7
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<GtrFormatSelectedValuePipe, "gtrFormatSelectedValue", true>;
|
|
8
8
|
}
|
|
@@ -57,14 +57,47 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
|
|
|
57
57
|
* @default 28
|
|
58
58
|
*/
|
|
59
59
|
textLimit: number;
|
|
60
|
+
/**
|
|
61
|
+
* Mark first option ready to select
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
autoSelect: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Change select box to autocomplete input
|
|
67
|
+
*/
|
|
68
|
+
autocomplete: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* To enable add button in select box
|
|
71
|
+
*/
|
|
72
|
+
enableAddButton: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* To change button position in option list
|
|
75
|
+
*/
|
|
76
|
+
addButtonPosition: 'top' | 'bottom';
|
|
77
|
+
/**
|
|
78
|
+
* Input to change add button label
|
|
79
|
+
*/
|
|
80
|
+
addButtonLabel: string;
|
|
81
|
+
/**
|
|
82
|
+
* Input property to change Search Placeholder
|
|
83
|
+
*/
|
|
84
|
+
searchPlaceholder: string;
|
|
85
|
+
/**
|
|
86
|
+
* Event for add button clicked
|
|
87
|
+
*/
|
|
88
|
+
addButtonClicked: EventEmitter<string>;
|
|
60
89
|
/** Toggle state for select box container */
|
|
61
90
|
isOpen: boolean;
|
|
62
91
|
/** To set search value */
|
|
63
92
|
searchValue: string;
|
|
93
|
+
/** To set autocomplete input value */
|
|
94
|
+
autocompleteInputValue: string;
|
|
64
95
|
/** Store selected values */
|
|
65
96
|
selectedValues: any[];
|
|
97
|
+
selectedValuesRaw: any[];
|
|
66
98
|
/** Store selected values for multiple */
|
|
67
99
|
multipleSelectedValues: any[];
|
|
100
|
+
multipleSelectedValuesRaw: any[];
|
|
68
101
|
/** State for touched events */
|
|
69
102
|
touched: boolean;
|
|
70
103
|
/** Filtered options without affection actual list */
|
|
@@ -77,10 +110,14 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
|
|
|
77
110
|
readonly valueChanged: EventEmitter<any>;
|
|
78
111
|
/** Event for search value change */
|
|
79
112
|
readonly searchChanged: EventEmitter<any>;
|
|
113
|
+
/** Event for autocomplete input */
|
|
114
|
+
readonly autocompleteInputChanged: EventEmitter<any>;
|
|
80
115
|
/** Event for scrolling in list */
|
|
81
116
|
readonly gtrScroll: EventEmitter<GtrSelectScroll>;
|
|
82
117
|
/** Event if selectbox changed touched state */
|
|
83
118
|
readonly gtrTouched: EventEmitter<any>;
|
|
119
|
+
/** Event to validate autocomplete when select box get closed */
|
|
120
|
+
readonly gtrBlur: EventEmitter<any>;
|
|
84
121
|
/**
|
|
85
122
|
* Contructor
|
|
86
123
|
* @param _el
|
|
@@ -106,7 +143,7 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
|
|
|
106
143
|
/**
|
|
107
144
|
* NOTE: toggleSelectBox() function is declared to hide/show the dropdown list based on user latest event
|
|
108
145
|
*/
|
|
109
|
-
toggleSelectBox(): void;
|
|
146
|
+
toggleSelectBox(open?: boolean): void;
|
|
110
147
|
/** Remove options */
|
|
111
148
|
removeOptions(event: Event, option: any): void;
|
|
112
149
|
/**
|
|
@@ -137,6 +174,10 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
|
|
|
137
174
|
private getNextVisibleOption;
|
|
138
175
|
private getPrevVisibleOption;
|
|
139
176
|
private getFocusedOption;
|
|
177
|
+
/**
|
|
178
|
+
* Get first visible option of list
|
|
179
|
+
*/
|
|
180
|
+
private getFirstVisibleOption;
|
|
140
181
|
/**
|
|
141
182
|
* setFocusOnOption function is declared to set focus on HTML li element.
|
|
142
183
|
* @param option
|
|
@@ -158,6 +199,15 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
|
|
|
158
199
|
/** TO adjust position of option list wrapper */
|
|
159
200
|
private adjustPosition;
|
|
160
201
|
private getOptionValue;
|
|
202
|
+
/**
|
|
203
|
+
* Handle click of add button in dropdown list
|
|
204
|
+
*/
|
|
205
|
+
handleAddButton(enterKeyPressed?: boolean): void;
|
|
206
|
+
/**
|
|
207
|
+
* Handle emitted input value for autocomplete input
|
|
208
|
+
* @param event
|
|
209
|
+
*/
|
|
210
|
+
handleAutocompleteInput(event: Event): void;
|
|
161
211
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrSelectComponent, never>;
|
|
162
|
-
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; }; "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; }; }, { "valueChanged": "valueChanged"; "searchChanged": "searchChanged"; "gtrScroll": "gtrScroll"; "gtrTouched": "gtrTouched"; }, never, ["[slot='custom-error']"], false, never>;
|
|
212
|
+
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; }; "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; }; "enableAddButton": { "alias": "enableAddButton"; "required": false; }; "addButtonPosition": { "alias": "addButtonPosition"; "required": false; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; }, { "addButtonClicked": "addButtonClicked"; "valueChanged": "valueChanged"; "searchChanged": "searchChanged"; "autocompleteInputChanged": "autocompleteInputChanged"; "gtrScroll": "gtrScroll"; "gtrTouched": "gtrTouched"; "gtrBlur": "gtrBlur"; }, never, ["[slot='custom-error']"], false, never>;
|
|
163
213
|
}
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./gtr-table.component";
|
|
3
3
|
import * as i2 from "./table-responsive/gtr-table-responsive.component";
|
|
4
4
|
import * as i3 from "./table-main/gtr-table-main.component";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
5
6
|
export declare class GtrTableModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GtrTableModule, never, [typeof i1.GtrTableComponent, typeof i2.GtrTableResponsiveComponent, typeof i3.GtrTableMainComponent], [typeof i1.GtrTableComponent, typeof i2.GtrTableResponsiveComponent, typeof i3.GtrTableMainComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GtrTableModule, never, [typeof i1.GtrTableComponent, typeof i2.GtrTableResponsiveComponent, typeof i3.GtrTableMainComponent, typeof i4.RouterModule], [typeof i1.GtrTableComponent, typeof i2.GtrTableResponsiveComponent, typeof i3.GtrTableMainComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<GtrTableModule>;
|
|
9
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { THEAD, TROW } from '../gtr-table.interface';
|
|
2
|
+
import { TCOLUMN, THEAD, TROW } from '../gtr-table.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecked {
|
|
5
5
|
private cdRef;
|
|
@@ -44,6 +44,7 @@ export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecke
|
|
|
44
44
|
ngAfterViewChecked(): void;
|
|
45
45
|
onSorting(sortType: number, column: any): void;
|
|
46
46
|
actionDone(event: any, rowId: any, action: any): void;
|
|
47
|
+
onColumnClick(rowId: any, column: TCOLUMN): void;
|
|
47
48
|
selectAll(event: any): void;
|
|
48
49
|
fectchSelection(): boolean;
|
|
49
50
|
selectionDone(event: any, item: any): void;
|
|
@@ -60,6 +60,7 @@ export declare class GtrTableResponsiveComponent implements OnDestroy, AfterView
|
|
|
60
60
|
* The method is used to emit action
|
|
61
61
|
*/
|
|
62
62
|
actionDone(value: string, row: any, action: any): void;
|
|
63
|
+
onColumnClick(rowId: any, column: TCOLUMN): void;
|
|
63
64
|
getActions(columns: TCOLUMN[] | undefined): TCOLUMN | undefined;
|
|
64
65
|
/**
|
|
65
66
|
* The method is used to check show/hidden state of row
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gettrx/core-components-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "Angular specific wrappers for @gettrx/core-components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gettrx",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "^16.1.0",
|
|
22
22
|
"@angular/core": "^16.1.0",
|
|
23
|
-
"@gettrx/core-styles": "1.0.
|
|
23
|
+
"@gettrx/core-styles": "1.0.33"
|
|
24
24
|
},
|
|
25
25
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
|
26
26
|
"typings": "index.d.ts",
|