@mediusinc/mng-commons 0.17.3 → 0.17.4
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 +1 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +1 -1
- package/esm2020/lib/components/layout/menu-item.component.mjs +34 -6
- package/esm2020/lib/components/layout/menu.component.mjs +1 -1
- package/esm2020/lib/components/tableview/table/table.component.mjs +3 -3
- package/esm2020/lib/descriptors/column.descriptor.mjs +2 -1
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +21 -4
- package/esm2020/lib/pipes/enumerate-async.pipe.mjs +1 -1
- package/fesm2015/mediusinc-mng-commons.mjs +58 -12
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +56 -10
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/layout/menu-item.component.d.ts +12 -4
- package/lib/descriptors/tableview.descriptor.d.ts +6 -0
- package/package.json +1 -1
- package/scss/mng-overrides/_layout_dialog.scss +15 -3
- package/scss/mng-overrides/_theme_datatable.scss +17 -11
- package/version-info.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MngMenuItem } from '../../models';
|
|
@@ -17,28 +17,36 @@ export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
index: number;
|
|
18
18
|
root: boolean;
|
|
19
19
|
parentKey: string | null;
|
|
20
|
+
visibleChangeEventEmitter: EventEmitter<boolean>;
|
|
20
21
|
private hostClassNoPadding;
|
|
22
|
+
private hostClassChildrenHidden;
|
|
21
23
|
key: string;
|
|
22
24
|
active: boolean;
|
|
23
25
|
hover: boolean;
|
|
24
26
|
private guardsIsAllowedSubject;
|
|
25
|
-
guardsIsAllowed
|
|
27
|
+
private guardsIsAllowed$;
|
|
26
28
|
private isPermittedSubject;
|
|
27
|
-
isPermitted
|
|
29
|
+
private isPermitted$;
|
|
30
|
+
private isVisibleSubject;
|
|
31
|
+
isVisible$: Observable<boolean>;
|
|
32
|
+
private childrenVisibilitySubject;
|
|
28
33
|
private itemUrl?;
|
|
29
34
|
private menuSourceSubscription?;
|
|
30
35
|
private menuResetSubscription?;
|
|
31
36
|
private routerEventsSubscription?;
|
|
32
37
|
private guardsIsAllowedSubscription?;
|
|
33
38
|
private isPermittedSubscription?;
|
|
39
|
+
private isVisibleSubscription?;
|
|
34
40
|
private isVisibleCombinedSubscription?;
|
|
41
|
+
private areChildrenVisibleSubscription?;
|
|
35
42
|
constructor(injector: Injector, router: Router, route: ActivatedRoute, authorization: MngAuthorizationService, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
36
43
|
ngOnInit(): void;
|
|
37
44
|
updateActiveStateFromRoute(): void;
|
|
38
45
|
itemClick(event: Event): void;
|
|
39
46
|
onMouseEnter(): void;
|
|
40
47
|
ngOnDestroy(): void;
|
|
48
|
+
onChildVisibleChange(visible: boolean, item: MngMenuItem, idx: number): void;
|
|
41
49
|
private checkIfMenuItemIsAllowedFromGuard;
|
|
42
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuItemComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, {}, never, never, false>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, { "visibleChangeEventEmitter": "visibleChange"; }, never, never, false>;
|
|
44
52
|
}
|
|
@@ -42,6 +42,12 @@ export declare class TableviewDescriptor<T> {
|
|
|
42
42
|
withDetailsDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
43
43
|
withAddDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
44
44
|
withEditDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
45
|
+
/**
|
|
46
|
+
* creates new copy of editor descriptor and makes it disabled
|
|
47
|
+
* usable in combination with this::withEditorDescriptors, where detailsDescriptor is made non disabled
|
|
48
|
+
* @param type which editor type to set to disabled
|
|
49
|
+
*/
|
|
50
|
+
withDisabledEditorDescriptor(type?: TableviewEditorTypeEnum): this;
|
|
45
51
|
withTableTitle(title: string): this;
|
|
46
52
|
withValidator(name: string, expression: FieldValidatorFn): this;
|
|
47
53
|
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
package/package.json
CHANGED
|
@@ -33,22 +33,30 @@
|
|
|
33
33
|
|
|
34
34
|
&.mng-dialog-sm {
|
|
35
35
|
width: 50vw;
|
|
36
|
-
height:
|
|
37
|
-
max-height: 90vh;
|
|
36
|
+
height: 70vh;
|
|
38
37
|
|
|
39
38
|
@include mediaMaxLg() {
|
|
40
39
|
width: 70vw;
|
|
40
|
+
height: 80vh;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@include mediaMaxMd() {
|
|
44
44
|
width: 80vw;
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
@include mediaMaxXs() {
|
|
48
|
+
width: 90vw;
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
&.mng-dialog-xs {
|
|
49
|
-
width:
|
|
53
|
+
width: 30vw;
|
|
50
54
|
height: initial;
|
|
51
55
|
|
|
56
|
+
@media (max-width: 1500px) {
|
|
57
|
+
width: 45vw;
|
|
58
|
+
}
|
|
59
|
+
|
|
52
60
|
@include mediaMaxLg() {
|
|
53
61
|
width: 60vw;
|
|
54
62
|
}
|
|
@@ -56,6 +64,10 @@
|
|
|
56
64
|
@include mediaMaxMd() {
|
|
57
65
|
width: 70vw;
|
|
58
66
|
}
|
|
67
|
+
|
|
68
|
+
@include mediaMaxXs() {
|
|
69
|
+
width: 90vw;
|
|
70
|
+
}
|
|
59
71
|
}
|
|
60
72
|
|
|
61
73
|
&.mng-formly-field-lookup-dialog {
|
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
padding-right: 0.15rem;
|
|
14
14
|
|
|
15
15
|
// string
|
|
16
|
-
|
|
17
|
-
min-width: 135px;
|
|
16
|
+
.mng-column-filter-0 {
|
|
17
|
+
//min-width: 135px;
|
|
18
18
|
}
|
|
19
19
|
// number
|
|
20
|
-
|
|
21
|
-
min-width: 165px;
|
|
20
|
+
.mng-column-filter-1 {
|
|
21
|
+
//min-width: 165px;
|
|
22
22
|
}
|
|
23
23
|
// date
|
|
24
|
-
|
|
25
|
-
min-width: 170px;
|
|
24
|
+
.mng-column-filter-3 {
|
|
25
|
+
//min-width: 170px;
|
|
26
26
|
}
|
|
27
27
|
// boolean
|
|
28
|
-
|
|
29
|
-
min-width: 80px;
|
|
28
|
+
.mng-column-filter-2 {
|
|
29
|
+
//min-width: 80px;
|
|
30
30
|
}
|
|
31
31
|
// lookup, lookup enum
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
min-width: 180px;
|
|
32
|
+
.mng-column-filter-4,
|
|
33
|
+
.mng-column-filter-5 {
|
|
34
|
+
//min-width: 180px;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.p-column-filter-menu-button,
|
|
@@ -80,4 +80,10 @@
|
|
|
80
80
|
padding-bottom: 0.05rem;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
&.p-datatable-flex-scrollable {
|
|
85
|
+
.p-datatable-tbody > tr > td {
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
83
89
|
}
|
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.4",
|
|
4
|
+
"tag": "v0.17.4",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "7d047036",
|
|
7
7
|
"dirty": false,
|
|
8
|
-
"semver": "0.17.
|
|
9
|
-
"raw": "v0.17.
|
|
8
|
+
"semver": "0.17.4",
|
|
9
|
+
"raw": "v0.17.4-7d047036"
|
|
10
10
|
}
|