@mediusinc/mng-commons 0.4.4 → 0.5.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.
Files changed (64) hide show
  1. package/esm2020/lib/api/services/api.abstract.service.mjs +15 -4
  2. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +3 -3
  3. package/esm2020/lib/components/action/action.component.mjs +52 -8
  4. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +25 -1
  5. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +12 -3
  6. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -1
  7. package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +17 -0
  8. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +8 -4
  9. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +3 -3
  10. package/esm2020/lib/components/form/formly/fields/index.mjs +2 -1
  11. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +3 -3
  12. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +3 -3
  13. package/esm2020/lib/config/formly.config.mjs +7 -2
  14. package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
  15. package/esm2020/lib/descriptors/action.descriptor.mjs +34 -6
  16. package/esm2020/lib/descriptors/field.descriptor.mjs +48 -10
  17. package/esm2020/lib/descriptors/table.descriptor.mjs +3 -13
  18. package/esm2020/lib/mng-commons.module.mjs +9 -4
  19. package/esm2020/lib/pipes/enum.pipe.mjs +2 -2
  20. package/esm2020/lib/services/action-executor.service.mjs +28 -5
  21. package/esm2020/lib/services/commons.service.mjs +9 -10
  22. package/esm2020/lib/services/configuration.service.mjs +53 -19
  23. package/esm2020/lib/services/internal/commons-init.provider.mjs +4 -0
  24. package/esm2020/lib/services/internal/commons-init.service.mjs +44 -0
  25. package/esm2020/lib/services/internal/index.mjs +3 -0
  26. package/esm2020/lib/services/providers/config-service.provider.mjs +13 -3
  27. package/esm2020/lib/services/providers/index.mjs +1 -2
  28. package/esm2020/lib/services/tokens/commons-init.token.mjs +3 -0
  29. package/esm2020/lib/services/tokens/index.mjs +2 -1
  30. package/esm2020/lib/utils/editor-formly.util.mjs +5 -5
  31. package/esm2020/public-api.mjs +3 -1
  32. package/fesm2015/mediusinc-mng-commons.mjs +395 -92
  33. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  34. package/fesm2020/mediusinc-mng-commons.mjs +381 -89
  35. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  36. package/lib/api/services/api.abstract.service.d.ts +1 -1
  37. package/lib/api/services/crud-api.abstract.service.d.ts +8 -8
  38. package/lib/components/action/action.component.d.ts +13 -2
  39. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +4 -2
  40. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +7 -1
  41. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -2
  42. package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts +6 -0
  43. package/lib/components/form/formly/fields/index.d.ts +1 -0
  44. package/lib/config/models/mng-config.model.d.ts +1 -1
  45. package/lib/descriptors/action.descriptor.d.ts +28 -3
  46. package/lib/descriptors/field.descriptor.d.ts +26 -12
  47. package/lib/descriptors/table.descriptor.d.ts +0 -1
  48. package/lib/mng-commons.module.d.ts +58 -57
  49. package/lib/pipes/enum.pipe.d.ts +2 -1
  50. package/lib/services/commons.service.d.ts +4 -4
  51. package/lib/services/configuration.service.d.ts +3 -2
  52. package/lib/services/internal/commons-init.provider.d.ts +3 -0
  53. package/lib/services/internal/commons-init.service.d.ts +16 -0
  54. package/lib/services/internal/index.d.ts +2 -0
  55. package/lib/services/providers/config-service.provider.d.ts +2 -1
  56. package/lib/services/providers/index.d.ts +0 -1
  57. package/lib/services/tokens/commons-init.token.d.ts +3 -0
  58. package/lib/services/tokens/index.d.ts +1 -0
  59. package/package.json +1 -1
  60. package/public-api.d.ts +1 -0
  61. package/scss/mng-overrides/_layout_dialog.scss +44 -14
  62. package/scss/mng-overrides/_theme_dialog.scss +2 -3
  63. package/esm2020/lib/services/providers/commons-init.provider.mjs +0 -4
  64. package/lib/services/providers/commons-init.provider.d.ts +0 -2
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ export declare const MNG_COMMONS_INITIALIZER_IT: InjectionToken<readonly (() => Observable<unknown>)[]>;
@@ -1,3 +1,4 @@
1
1
  export * from './browser-storage.token';
2
+ export * from './commons-init.token';
2
3
  export * from './default-setting.token';
3
4
  export * from './module-config.token';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.4.4",
3
+ "version": "0.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.1.0",
6
6
  "@angular/core": "^13.1.0",
package/public-api.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './lib/api/services';
3
3
  export * from './lib/components/layout/services';
4
4
  export * from './lib/services';
5
5
  export * from './lib/services/providers';
6
+ export * from './lib/services/tokens';
6
7
  export * from './lib/api/utils';
7
8
  export * from './lib/utils';
8
9
  export * from './lib/components/action';
@@ -1,9 +1,8 @@
1
1
  @import 'mixins';
2
2
 
3
3
  .p-dialog {
4
- &.mng-details-dialog,
5
- &.mng-details-dynamic-dialog {
6
- height: 90%;
4
+ &.mng-action-editor-dialog {
5
+ height: 90vh;
7
6
  width: 60vw;
8
7
 
9
8
  @include mediaMaxLg() {
@@ -11,25 +10,56 @@
11
10
  }
12
11
 
13
12
  @include mediaMaxMd() {
14
- width: 90%;
13
+ width: 90vw;
15
14
  }
16
- }
17
15
 
18
- &.mng-formly-field-table-form-dialog,
19
- &.mng-formly-field-table-multiselect-dialog,
20
- &.mng-formly-field-lookup-dialog {
21
- width: 50vw;
16
+ &.mng-action-editor-dialog-xl {
17
+ height: 100vh;
18
+ width: 100vw;
19
+ }
22
20
 
23
- @include mediaMaxLg() {
24
- width: 70vw;
21
+ &.mng-action-editor-dialog-lg {
22
+ height: 95vh;
23
+ width: 80vw;
24
+
25
+ @include mediaMaxLg() {
26
+ width: 85vw;
27
+ }
28
+
29
+ @include mediaMaxMd() {
30
+ width: 90vw;
31
+ }
25
32
  }
26
33
 
27
- @include mediaMaxMd() {
28
- width: 80%;
34
+ &.mng-action-editor-dialog-sm {
35
+ width: 50vw;
36
+ height: initial;
37
+
38
+ @include mediaMaxLg() {
39
+ width: 70vw;
40
+ }
41
+
42
+ @include mediaMaxMd() {
43
+ width: 80vw;
44
+ }
45
+ }
46
+
47
+ &.mng-action-editor-dialog-xs {
48
+ width: 40vw;
49
+
50
+ @include mediaMaxLg() {
51
+ width: 60vw;
52
+ }
53
+
54
+ @include mediaMaxMd() {
55
+ width: 70vw;
56
+ }
29
57
  }
30
58
  }
31
59
 
32
- &.p-confirm-dialog {
60
+ &.mng-formly-field-table-form-dialog,
61
+ &.mng-formly-field-table-multiselect-dialog,
62
+ &.mng-formly-field-lookup-dialog &.p-confirm-dialog {
33
63
  width: 450px;
34
64
 
35
65
  @include mediaMaxXs() {
@@ -1,7 +1,6 @@
1
1
  .p-dialog {
2
- &.mng-details-dynamic-dialog,
3
- &.mng-formly-field-table-multiselect-dialog,
4
- &.mng-formly-field-table-form-dialog {
2
+ &.mng-action-editor-dialog,
3
+ &.mng-field-dialog {
5
4
  .p-dialog-content {
6
5
  border-bottom-left-radius: $dialogBorderRadius;
7
6
  border-bottom-right-radius: $dialogBorderRadius;
@@ -1,4 +0,0 @@
1
- export function mngCommonsInitializerProvider(mngCommons) {
2
- return () => mngCommons.initialize();
3
- }
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9ucy1pbml0LnByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9zZXJ2aWNlcy9wcm92aWRlcnMvY29tbW9ucy1pbml0LnByb3ZpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sVUFBVSw2QkFBNkIsQ0FBQyxVQUE2QjtJQUN2RSxPQUFPLEdBQUcsRUFBRSxDQUFDLFVBQVUsQ0FBQyxVQUFVLEVBQUUsQ0FBQztBQUN6QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtNbmdDb21tb25zU2VydmljZX0gZnJvbSAnLi4vY29tbW9ucy5zZXJ2aWNlJztcblxuZXhwb3J0IGZ1bmN0aW9uIG1uZ0NvbW1vbnNJbml0aWFsaXplclByb3ZpZGVyKG1uZ0NvbW1vbnM6IE1uZ0NvbW1vbnNTZXJ2aWNlKSB7XG4gICAgcmV0dXJuICgpID0+IG1uZ0NvbW1vbnMuaW5pdGlhbGl6ZSgpO1xufVxuIl19
@@ -1,2 +0,0 @@
1
- import { MngCommonsService } from '../commons.service';
2
- export declare function mngCommonsInitializerProvider(mngCommons: MngCommonsService): () => void;