@mediusinc/mng-commons 0.16.3 → 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.
- package/esm2020/lib/api/utils/object-serializer.util.mjs +13 -9
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +2 -2
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +3 -3
- package/esm2020/lib/components/layout/topbar.component.mjs +3 -3
- package/esm2020/lib/components/tableview/table/table.component.mjs +3 -5
- package/esm2020/lib/descriptors/action.descriptor.mjs +3 -1
- package/esm2020/lib/pipes/enumerate-async.pipe.mjs +1 -2
- package/esm2020/lib/types/type.decorator.mjs +4 -5
- package/esm2020/lib/utils/type.util.mjs +22 -42
- package/fesm2015/mediusinc-mng-commons.mjs +57 -75
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +56 -74
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/tableview/table/table.component.d.ts +0 -1
- package/lib/types/type.decorator.d.ts +0 -2
- package/lib/utils/type.util.d.ts +8 -11
- package/package.json +1 -1
- package/scss/mng-overrides/_layout_dialog.scss +16 -5
- package/scss/mng-overrides/_layout_styles.scss +25 -0
- package/scss/mng-overrides/_theme_datatable.scss +15 -0
- package/scss/mng-overrides/_theme_tableview.scss +3 -3
- package/version-info.json +5 -5
|
@@ -65,7 +65,6 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
65
65
|
[s: string]: FilterMetadata;
|
|
66
66
|
};
|
|
67
67
|
infiniteScroll: boolean;
|
|
68
|
-
scrollHeight: 'flex' | null;
|
|
69
68
|
className: string;
|
|
70
69
|
tableFullHeightOffset: number | null;
|
|
71
70
|
rowHeight: number | null;
|
package/lib/utils/type.util.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
27
|
+
static typeNameExists(type: ClassType<any>): boolean;
|
|
31
28
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
29
|
+
* Gets enum name from either decorator or reflect metadata.
|
|
30
|
+
* @param enumType Class.
|
|
34
31
|
*/
|
|
35
|
-
static
|
|
32
|
+
static findEnumName(enumType: EnumType): string;
|
|
36
33
|
}
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
62
|
-
|
|
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
|
-
|
|
65
|
-
|
|
74
|
+
@include mediaMinLg() {
|
|
75
|
+
width: 70vw;
|
|
76
|
+
}
|
|
66
77
|
}
|
|
67
78
|
}
|
|
68
79
|
}
|
|
@@ -4,3 +4,28 @@
|
|
|
4
4
|
@import './_layout_action';
|
|
5
5
|
@import './_layout_radio';
|
|
6
6
|
@import './layout_topbar';
|
|
7
|
+
|
|
8
|
+
// general layout overrides
|
|
9
|
+
.layout-breadcrumb-container {
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
|
|
12
|
+
.layout-breadcrumb {
|
|
13
|
+
padding-left: 10px;
|
|
14
|
+
|
|
15
|
+
@include mediaMinMd {
|
|
16
|
+
padding-left: 20px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.layout-wrapper {
|
|
22
|
+
.layout-main {
|
|
23
|
+
.layout-main-content {
|
|
24
|
+
padding: 5px 10px;
|
|
25
|
+
|
|
26
|
+
@include mediaMinMd {
|
|
27
|
+
padding: 30px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -50,8 +50,23 @@
|
|
|
50
50
|
padding-top: 0.1rem;
|
|
51
51
|
padding-bottom: 0.1rem;
|
|
52
52
|
}
|
|
53
|
+
|
|
54
|
+
&.p-frozen-column {
|
|
55
|
+
position: sticky;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
background: transparent;
|
|
58
|
+
}
|
|
53
59
|
}
|
|
54
60
|
|
|
61
|
+
// TODO: uncomment, need to address mobile devices dooooh
|
|
62
|
+
//.p-datatable-tbody {
|
|
63
|
+
// > tr:not(:hover) {
|
|
64
|
+
// > td.p-frozen-column {
|
|
65
|
+
// visibility: hidden;
|
|
66
|
+
// }
|
|
67
|
+
// }
|
|
68
|
+
//}
|
|
69
|
+
|
|
55
70
|
&.p-datatable-lg .p-datatable-tbody > tr > td {
|
|
56
71
|
&.column-action {
|
|
57
72
|
padding-top: 0.15rem;
|
package/version-info.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"tag": "v0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
|
+
"tag": "v0.17.1",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "cd13ca70",
|
|
7
7
|
"dirty": false,
|
|
8
|
-
"semver": "0.
|
|
9
|
-
"raw": "v0.
|
|
8
|
+
"semver": "0.17.1",
|
|
9
|
+
"raw": "v0.17.1-cd13ca70"
|
|
10
10
|
}
|