@mediusinc/mng-commons 0.17.5 → 0.17.6
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/esm2020/lib/components/action/editor/action-editor.component.mjs +4 -1
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +4 -3
- package/esm2020/lib/descriptors/action.descriptor.mjs +2 -2
- package/esm2020/lib/descriptors/column.descriptor.mjs +8 -1
- package/esm2020/lib/descriptors/types/column.type.mjs +2 -1
- package/esm2020/lib/pipes/getter.pipe.mjs +4 -4
- package/fesm2015/mediusinc-mng-commons.mjs +18 -6
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +18 -6
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +1 -0
- package/lib/descriptors/column.descriptor.d.ts +3 -2
- package/lib/descriptors/types/column.type.d.ts +2 -1
- package/lib/pipes/getter.pipe.d.ts +1 -1
- package/package.json +1 -1
- package/scss/mng-overrides/_theme_datatable.scss +9 -3
- package/version-info.json +5 -5
|
@@ -15,6 +15,7 @@ export declare class MngTableColumnValueComponent<T, TT> implements OnInit {
|
|
|
15
15
|
readonly columnTypeDate: ColumnTypeEnum;
|
|
16
16
|
readonly columnTypeEnum: ColumnTypeEnum;
|
|
17
17
|
readonly columnTypeCustom: ColumnTypeEnum;
|
|
18
|
+
readonly columnTypeHtml: ColumnTypeEnum;
|
|
18
19
|
descriptor: ColumnDescriptor<T, TT>;
|
|
19
20
|
item: any;
|
|
20
21
|
styleMaxWidth: number | null;
|
|
@@ -63,7 +63,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
63
63
|
get currencyFromProperty(): string | undefined;
|
|
64
64
|
get hasCopyToClipboard(): boolean;
|
|
65
65
|
get template(): string | undefined;
|
|
66
|
-
get getter(): ((item:
|
|
66
|
+
get getter(): ((item: TT, value?: T | null | undefined) => unknown) | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* converts column to given type with additional arguments
|
|
69
69
|
* @param type column type enum
|
|
@@ -76,6 +76,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
76
76
|
asBoolean(yes?: string, no?: string, asIcon?: boolean): this;
|
|
77
77
|
asEnum(enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): this;
|
|
78
78
|
asCustomComponent(customComponentType: Type<IColumnValueComponent<TT>>): this;
|
|
79
|
+
asHtml(): this;
|
|
79
80
|
withClassName(className?: string, headerClassName?: string): this;
|
|
80
81
|
withWidth(width?: number, minWidth?: number, maxWidth?: number): this;
|
|
81
82
|
withObjectProperty<MT>(modelType: ClassType<MT>, titleProperty?: string): this;
|
|
@@ -88,7 +89,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
88
89
|
withDefaultSort(asc?: boolean): this;
|
|
89
90
|
withCopyToClipboard(hasCopyToCliboard?: boolean): this;
|
|
90
91
|
withTemplate(template: string): this;
|
|
91
|
-
withGetter(getter?: (item:
|
|
92
|
+
withGetter(getter?: (item: TT, value?: T | null) => unknown): this;
|
|
92
93
|
copy(): ColumnDescriptor<T, TT>;
|
|
93
94
|
protected copyFieldsTo(obj: ColumnDescriptor<T, TT>): void;
|
|
94
95
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MngGetterPipe implements PipeTransform {
|
|
4
|
-
transform(
|
|
4
|
+
transform<I, V>(item: I, getterFn: (item: I, value?: V | null) => unknown, value?: V | null): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngGetterPipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<MngGetterPipe, "getter", false>;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -9,9 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
.p-datatable-thead > tr > th,
|
|
11
11
|
.p-datatable-tbody > tr > td {
|
|
12
|
-
padding-left: 0.15rem;
|
|
13
|
-
padding-right: 0.15rem;
|
|
14
|
-
|
|
15
12
|
// string
|
|
16
13
|
&.mng-column-filter-0 {
|
|
17
14
|
min-width: 135px;
|
|
@@ -33,10 +30,19 @@
|
|
|
33
30
|
&.mng-column-filter-5 {
|
|
34
31
|
min-width: 180px;
|
|
35
32
|
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
mng-table-column-value .help-buttons {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
.p-datatable-thead > tr.mng-column-filter-row {
|
|
39
42
|
> th {
|
|
43
|
+
padding-left: 0.15rem;
|
|
44
|
+
padding-right: 0.15rem;
|
|
45
|
+
|
|
40
46
|
.p-column-filter-menu-button,
|
|
41
47
|
.p-column-filter-clear-button {
|
|
42
48
|
width: 1.75rem;
|
package/version-info.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "0.17.
|
|
4
|
-
"tag": "v0.17.
|
|
3
|
+
"version": "0.17.6",
|
|
4
|
+
"tag": "v0.17.6",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "68f206ef",
|
|
7
7
|
"dirty": false,
|
|
8
|
-
"semver": "0.17.
|
|
9
|
-
"raw": "v0.17.
|
|
8
|
+
"semver": "0.17.6",
|
|
9
|
+
"raw": "v0.17.6-68f206ef"
|
|
10
10
|
}
|