ud-components 0.5.26 → 0.5.27
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.
|
@@ -3,6 +3,7 @@ import { TemplateRef } from '@angular/core';
|
|
|
3
3
|
import { SortDirection } from '@angular/material/sort';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { UdSelectOption } from '../lib/form-fields/multi-select/multi-select.component';
|
|
6
|
+
import { KpiPillType } from '../lib/kpi/kpi.enum';
|
|
6
7
|
export interface TableDisplayColumn {
|
|
7
8
|
/**
|
|
8
9
|
* Property in which to take the value from
|
|
@@ -68,7 +69,15 @@ export interface TableDisplayColumn {
|
|
|
68
69
|
*/
|
|
69
70
|
editable?: boolean;
|
|
70
71
|
/**
|
|
71
|
-
* Options for
|
|
72
|
+
* Options for editable columns that use a dropdown (the enum values to pick from).
|
|
72
73
|
*/
|
|
73
74
|
editOptions?: UdSelectOption[];
|
|
75
|
+
/**
|
|
76
|
+
* When true, the edit dropdown allows selecting multiple values.
|
|
77
|
+
*/
|
|
78
|
+
allowMultiSelectOnEdit?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* For PILL type columns. Receives the row and returns the KpiPillType to apply.
|
|
81
|
+
*/
|
|
82
|
+
pillTypeFn?: (row: any) => KpiPillType;
|
|
74
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ud-components",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.27",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=19",
|
|
6
6
|
"@angular/common": ">=19",
|
|
@@ -21,6 +21,30 @@
|
|
|
21
21
|
".": {
|
|
22
22
|
"types": "./index.d.ts",
|
|
23
23
|
"default": "./fesm2022/ud-components.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./enums/role.enum": {
|
|
26
|
+
"types": "./enums/role.enum.d.ts",
|
|
27
|
+
"default": "./enums/role.enum.js"
|
|
28
|
+
},
|
|
29
|
+
"./lib/kpi/kpi.enum": {
|
|
30
|
+
"types": "./lib/kpi/kpi.enum.d.ts",
|
|
31
|
+
"default": "./lib/kpi/kpi.enum.js"
|
|
32
|
+
},
|
|
33
|
+
"./lib/edit-view/edit-view-section.directive": {
|
|
34
|
+
"types": "./lib/edit-view/edit-view-section.directive.d.ts",
|
|
35
|
+
"default": "./lib/edit-view/edit-view-section.directive.js"
|
|
36
|
+
},
|
|
37
|
+
"./interfaces/page-request.interface": {
|
|
38
|
+
"types": "./interfaces/page-request.interface.d.ts",
|
|
39
|
+
"default": "./interfaces/page-request.interface.js"
|
|
40
|
+
},
|
|
41
|
+
"./interfaces/table.interface": {
|
|
42
|
+
"types": "./interfaces/table.interface.d.ts",
|
|
43
|
+
"default": "./interfaces/table.interface.js"
|
|
44
|
+
},
|
|
45
|
+
"./interfaces/table-display-column.interface": {
|
|
46
|
+
"types": "./interfaces/table-display-column.interface.d.ts",
|
|
47
|
+
"default": "./interfaces/table-display-column.interface.js"
|
|
24
48
|
}
|
|
25
49
|
}
|
|
26
|
-
}
|
|
50
|
+
}
|