@mediusinc/mng-commons 0.16.0 → 0.16.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,6 +1,5 @@
1
1
  import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FieldType } from '@ngx-formly/core';
3
- import { Message } from 'primeng/api';
4
3
  import { Observable, Subject } from 'rxjs';
5
4
  import { MediusQueryResult } from '../../../../../api/models';
6
5
  import { FieldManyToManyEditorDescriptor } from '../../../../../descriptors';
@@ -18,7 +17,6 @@ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extend
18
17
  isDialogVisible: boolean;
19
18
  dialogAreItemsLoaded: boolean;
20
19
  dialogSelectedAddItems: Array<any>;
21
- dialogMessages: Message[];
22
20
  dialogIsLoading$: Observable<boolean>;
23
21
  hasAddAction: boolean;
24
22
  hasDeleteAction: boolean;
@@ -39,8 +39,10 @@ export declare class MngCommonsService {
39
39
  get appLogoNameLight(): string;
40
40
  get appLogoNameDark(): string;
41
41
  get appLanguages(): string[];
42
- get appLanguage(): string;
43
- set appLanguage(language: string);
42
+ get appLanguage(): string | null;
43
+ set appLanguage(language: string | null);
44
+ initLanguage(): string;
45
+ getOrInitLanguage(): string;
44
46
  get appVersion(): import("../models").VersionConfigType;
45
47
  get menuModeIsStatic(): boolean;
46
48
  get menuModeIsStatic$(): Observable<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~14.1.0",
6
6
  "@angular/core": "~14.1.0",
@@ -1,7 +1,7 @@
1
1
  @import 'mixins';
2
2
 
3
3
  .p-dialog {
4
- &.mng-action-editor-dialog {
4
+ &.mng-dialog {
5
5
  height: 90vh;
6
6
  width: 60vw;
7
7
 
@@ -13,12 +13,12 @@
13
13
  width: 90vw;
14
14
  }
15
15
 
16
- &.mng-action-editor-dialog-xl {
16
+ &.mng-dialog-xl {
17
17
  height: 100vh;
18
18
  width: 100vw;
19
19
  }
20
20
 
21
- &.mng-action-editor-dialog-lg {
21
+ &.mng-dialog-lg {
22
22
  height: 95vh;
23
23
  width: 80vw;
24
24
 
@@ -31,7 +31,7 @@
31
31
  }
32
32
  }
33
33
 
34
- &.mng-action-editor-dialog-sm {
34
+ &.mng-dialog-sm {
35
35
  width: 50vw;
36
36
  height: initial;
37
37
 
@@ -44,7 +44,7 @@
44
44
  }
45
45
  }
46
46
 
47
- &.mng-action-editor-dialog-xs {
47
+ &.mng-dialog-xs {
48
48
  width: 40vw;
49
49
  height: initial;
50
50
 
@@ -58,9 +58,7 @@
58
58
  }
59
59
  }
60
60
 
61
- &.mng-formly-field-table-form-dialog,
62
- &.mng-formly-field-table-multiselect-dialog,
63
- &.mng-formly-field-lookup-dialog &.p-confirm-dialog {
61
+ &.mng-formly-field-lookup-dialog {
64
62
  width: 450px;
65
63
 
66
64
  @include mediaMaxXs() {
@@ -1,9 +1,65 @@
1
+ @import 'variables';
2
+
1
3
  .p-dialog {
2
4
  &.mng-action-editor-dialog,
3
- &.mng-field-dialog {
5
+ &.mng-formly-field-table-multiselect-dialog {
4
6
  .p-dialog-content {
5
7
  border-bottom-left-radius: $dialogBorderRadius;
6
8
  border-bottom-right-radius: $dialogBorderRadius;
7
9
  }
8
10
  }
11
+
12
+ &.mng-formly-field-table-multiselect-dialog {
13
+ .p-dialog-content {
14
+ padding: 0;
15
+ overflow-y: hidden;
16
+ }
17
+
18
+ .mng-formly-field-table-multiselect-dialog-table {
19
+ padding: $mngDialogContentPadding;
20
+ }
21
+
22
+ .mng-formly-field-table-multiselect-dialog-footer {
23
+ padding: $mngDialogFooterPadding;
24
+
25
+ button {
26
+ width: initial;
27
+ margin: 0.15rem 0.15rem;
28
+ }
29
+ }
30
+ }
31
+
32
+ &.mng-formly-field-lookup-dialog {
33
+ .p-dialog-content {
34
+ padding-bottom: 0;
35
+ }
36
+
37
+ .mng-formly-field-table-multiselect-dialog-table {
38
+ padding: $mngDialogContentPadding;
39
+ }
40
+
41
+ .p-dialog-footer {
42
+ padding: $mngDialogFooterPadding;
43
+
44
+ button {
45
+ margin: 0.15rem 0.15rem;
46
+ }
47
+ }
48
+ }
49
+
50
+ &.mng-action-editor-dialog {
51
+ .p-dialog-content {
52
+ padding: 0;
53
+ overflow-y: hidden;
54
+ }
55
+
56
+ .mng-action-editor-form-container {
57
+ padding: $mngDialogContentPadding;
58
+ overflow-y: auto;
59
+ }
60
+
61
+ .mng-action-editor-footer-container {
62
+ padding: $mngDialogFooterPadding;
63
+ }
64
+ }
9
65
  }
@@ -10,3 +10,6 @@ $mediaLgWidthMax: #{$mediaXlWidthMin - 1} !default;
10
10
 
11
11
  $scaleXS: 0.8 !default;
12
12
  $scaleLG: 1.4 !default;
13
+
14
+ $mngDialogContentPadding: 0 1.714rem !default;
15
+ $mngDialogFooterPadding: 1.286rem 1.714rem !default;
package/version-info.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.16.0",
4
- "tag": "v0.16.0",
3
+ "version": "0.16.1",
4
+ "tag": "v0.16.1",
5
5
  "distance": 0,
6
- "hash": "c9a14910",
6
+ "hash": "95560438",
7
7
  "dirty": false,
8
- "semver": "0.16.0",
9
- "raw": "v0.16.0-c9a14910"
8
+ "semver": "0.16.1",
9
+ "raw": "v0.16.1-95560438"
10
10
  }