@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.
@@ -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(value?: string, classNameMapFn?: (className?: string, i?: T) => string, i?: T): string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.0.0",
6
6
  "@angular/common": "^16.0.0",
@@ -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: -200px;
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
- position: absolute;
87
- bottom: 60px;
88
+ margin-bottom: 2rem;
88
89
  align-items: center;
89
90
  display: flex;
90
91
 
@@ -64,8 +64,8 @@
64
64
  }
65
65
 
66
66
  .login-footer {
67
- position: absolute;
68
- bottom: 75px;
67
+ bottom: 60px;
68
+ margin-bottom: 2rem;
69
69
 
70
70
  .login-footer-logo-container {
71
71
  padding-right: 1.5rem;