@gettrx/core-components-angular 1.0.33 → 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/table/gtr-table.interface.mjs +1 -1
- package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +7 -7
- package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +7 -7
- package/fesm2022/gettrx-core-components-angular.mjs +12 -12
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/molecules/table/gtr-table.interface.d.ts +11 -3
- package/package.json +2 -2
|
@@ -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';
|
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",
|