@gettrx/core-components-angular 1.0.32 → 1.0.34
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/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.mjs +6 -6
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +10 -3
- package/esm2022/lib/molecules/table/gtr-table.interface.mjs +1 -1
- package/esm2022/lib/molecules/table/gtr-table.module.mjs +5 -4
- package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +13 -7
- package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +13 -7
- package/fesm2022/gettrx-core-components-angular.mjs +40 -23
- 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 +2 -0
- package/lib/molecules/table/gtr-table.interface.d.ts +11 -3
- 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
|
}
|
|
@@ -94,8 +94,10 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
|
|
|
94
94
|
autocompleteInputValue: string;
|
|
95
95
|
/** Store selected values */
|
|
96
96
|
selectedValues: any[];
|
|
97
|
+
selectedValuesRaw: any[];
|
|
97
98
|
/** Store selected values for multiple */
|
|
98
99
|
multipleSelectedValues: any[];
|
|
100
|
+
multipleSelectedValuesRaw: any[];
|
|
99
101
|
/** State for touched events */
|
|
100
102
|
touched: boolean;
|
|
101
103
|
/** Filtered options without affection actual list */
|
|
@@ -12,6 +12,14 @@ interface TCOMPONENT {
|
|
|
12
12
|
properties: Array<object>;
|
|
13
13
|
text: string;
|
|
14
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
|
+
}
|
|
15
23
|
export type RGB = `rgb(${number}, ${number}, ${number})`;
|
|
16
24
|
export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
17
25
|
export type HEX = `#${string}`;
|
|
@@ -30,9 +38,9 @@ export interface STYLES {
|
|
|
30
38
|
export interface TCOLUMN {
|
|
31
39
|
align?: 'left' | 'right' | 'center' | 'top' | 'bottom';
|
|
32
40
|
styles?: STYLES;
|
|
33
|
-
value: any | TCOMPONENT;
|
|
41
|
+
value: any | TCOMPONENT | TLINK;
|
|
34
42
|
hide?: boolean;
|
|
35
|
-
type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status';
|
|
43
|
+
type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status' | 'link';
|
|
36
44
|
wrap?: 'TRUNCATE' | 'WRAP' | 'INNERHTMLWRAP' | 'SPLITHEADING';
|
|
37
45
|
label?: string;
|
|
38
46
|
priority?: 'HIGH' | 'LOW';
|
|
@@ -69,7 +77,7 @@ export interface THEAD {
|
|
|
69
77
|
styles?: STYLES;
|
|
70
78
|
label: string;
|
|
71
79
|
sorting: TSORT;
|
|
72
|
-
type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status';
|
|
80
|
+
type?: 'string' | 'component' | 'innerHTML' | 'actions' | 'status' | 'link';
|
|
73
81
|
color?: string | RGB | RGBA | HEX;
|
|
74
82
|
wrap?: 'TRUNCATE' | 'WRAP' | 'INNERHTMLWRAP' | 'SPLITHEADING';
|
|
75
83
|
priority?: 'HIGH' | 'LOW';
|
|
@@ -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.34",
|
|
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.34"
|
|
24
24
|
},
|
|
25
25
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
|
26
26
|
"typings": "index.d.ts",
|