@mediusinc/mng-commons 0.17.0 → 0.17.1

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.
@@ -1,4 +1,2 @@
1
- export declare const typeNameDecoratorPropertyName = "typeName";
2
1
  export declare function TypeName(typeName: string): ClassDecorator;
3
- export declare const enumNameDecoratorPropertyName = "enumName";
4
2
  export declare function EnumName(typeName: string): ClassDecorator;
@@ -1,12 +1,14 @@
1
1
  import 'reflect-metadata';
2
2
  import { ClassType, EnumType } from '../types';
3
3
  export declare class TypeUtil {
4
+ static readonly typeNameDecoratorPropertyName = "typeName";
5
+ static readonly enumNameDecoratorPropertyName = "enumName";
4
6
  /**
5
7
  * Defines type name decorator.
6
8
  * @param targetType class.
7
9
  * @param typeName Name of the type.
8
10
  */
9
- static defineReflectTypeName(targetType: ClassType<any>, typeName?: string): void;
11
+ static defineReflectTypeName(targetType: ClassType<any>, typeName: string): void;
10
12
  /**
11
13
  * Defines enum name decorator.
12
14
  * @param targetType enum object.
@@ -19,18 +21,13 @@ export declare class TypeUtil {
19
21
  */
20
22
  static findTypeName(type: ClassType<any>): string;
21
23
  /**
22
- * Gets enum name from either decorator or reflect metadata.
23
- * @param enumType Class.
24
- */
25
- static findEnumName(enumType: EnumType): string;
26
- /**
27
- * Get value from decorator defined property name
24
+ * Gets type name from either decorator or reflect metadata.
28
25
  * @param type Class.
29
26
  */
30
- static getDecoratorTypeName(type: Function): string | undefined;
27
+ static typeNameExists(type: ClassType<any>): boolean;
31
28
  /**
32
- * Get value from decorator defined property name
33
- * @param type Enum object.
29
+ * Gets enum name from either decorator or reflect metadata.
30
+ * @param enumType Class.
34
31
  */
35
- static getDecoratorEnumName(type: EnumType): string | undefined;
32
+ static findEnumName(enumType: EnumType): string;
36
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
@@ -34,6 +34,7 @@
34
34
  &.mng-dialog-sm {
35
35
  width: 50vw;
36
36
  height: initial;
37
+ max-height: 90vh;
37
38
 
38
39
  @include mediaMaxLg() {
39
40
  width: 70vw;
@@ -56,13 +57,23 @@
56
57
  width: 70vw;
57
58
  }
58
59
  }
59
- }
60
60
 
61
- &.mng-formly-field-lookup-dialog {
62
- width: 450px;
61
+ &.mng-formly-field-lookup-dialog {
62
+ width: 95vw;
63
+ height: initial;
64
+ max-height: 90vh;
65
+
66
+ @include mediaMinSm() {
67
+ width: 90vw;
68
+ }
69
+
70
+ @include mediaMinMd() {
71
+ width: 80vw;
72
+ }
63
73
 
64
- @include mediaMaxXs() {
65
- width: 80%;
74
+ @include mediaMinLg() {
75
+ width: 70vw;
76
+ }
66
77
  }
67
78
  }
68
79
  }
package/version-info.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.17.0",
4
- "tag": "v0.17.0",
3
+ "version": "0.17.1",
4
+ "tag": "v0.17.1",
5
5
  "distance": 0,
6
- "hash": "32392869",
6
+ "hash": "cd13ca70",
7
7
  "dirty": false,
8
- "semver": "0.17.0",
9
- "raw": "v0.17.0-32392869"
8
+ "semver": "0.17.1",
9
+ "raw": "v0.17.1-cd13ca70"
10
10
  }