@mediusinc/mng-commons 3.3.0 → 3.4.0
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/components/tableview/table/table.component.mjs +3 -3
- package/esm2022/lib/descriptors/table/column.descriptor.mjs +7 -2
- package/esm2022/lib/pipes/class-map.pipe.mjs +4 -4
- package/fesm2022/mediusinc-mng-commons.mjs +11 -6
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/descriptors/table/column.descriptor.d.ts +3 -1
- package/lib/pipes/class-map.pipe.d.ts +1 -1
- package/package.json +1 -1
- package/scss/common/layout/_exception.scss +4 -3
- package/scss/common/layout/_login.scss +2 -2
|
@@ -25,6 +25,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
25
25
|
private _isVisible;
|
|
26
26
|
private _headerClassName;
|
|
27
27
|
private _className;
|
|
28
|
+
private _classNameMapFn?;
|
|
28
29
|
private _width;
|
|
29
30
|
private _minWidth;
|
|
30
31
|
private _maxWidth;
|
|
@@ -56,6 +57,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
56
57
|
get property(): string;
|
|
57
58
|
get headerClassName(): string;
|
|
58
59
|
get className(): string;
|
|
60
|
+
get classNameMapFn(): ((className?: string | undefined, item?: TT | undefined) => string) | undefined;
|
|
59
61
|
get width(): number | null;
|
|
60
62
|
get minWidth(): number | null;
|
|
61
63
|
get maxWidth(): number | null;
|
|
@@ -95,7 +97,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
95
97
|
asEnum(enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): this;
|
|
96
98
|
asCustomComponent(customComponentType: Type<IColumnValueComponent<TT>>): this;
|
|
97
99
|
asHtml(): this;
|
|
98
|
-
withClassName(className?: string, headerClassName?: string): this;
|
|
100
|
+
withClassName(className?: string, headerClassName?: string, classNameMapFn?: (className?: string, item?: TT) => string): this;
|
|
99
101
|
withWidth(width?: number, minWidth?: number, maxWidth?: number): this;
|
|
100
102
|
withObjectProperty<MT>(modelType: ClassType<MT>, titleProperty?: string): this;
|
|
101
103
|
withTitle(title: string): this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MngClassMapPipe<T> implements PipeTransform {
|
|
4
|
-
transform(
|
|
4
|
+
transform(className?: string, classNameMapFn?: (className?: string, item?: T) => string, item?: T): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngClassMapPipe<any>, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<MngClassMapPipe<any>, "mngClassMapPipe", true>;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -53,10 +53,12 @@
|
|
|
53
53
|
text-align: center;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
display: flex;
|
|
56
|
+
flex-grow: 1;
|
|
56
57
|
align-items: center;
|
|
57
58
|
justify-content: center;
|
|
58
59
|
flex-direction: column;
|
|
59
|
-
margin-top:
|
|
60
|
+
margin-top: 3rem;
|
|
61
|
+
margin-bottom: 3rem;
|
|
60
62
|
|
|
61
63
|
h1 {
|
|
62
64
|
font-size: 140px;
|
|
@@ -83,8 +85,7 @@
|
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
.exception-footer {
|
|
86
|
-
|
|
87
|
-
bottom: 60px;
|
|
88
|
+
margin-bottom: 2rem;
|
|
88
89
|
align-items: center;
|
|
89
90
|
display: flex;
|
|
90
91
|
|