@mediusinc/mng-commons 4.0.0-rc.2 → 4.0.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 (148) hide show
  1. package/esm2022/index.mjs +5 -1
  2. package/esm2022/lib/api/utils/medius-rest.util.mjs +15 -7
  3. package/esm2022/lib/api/utils/object-serializer.util.mjs +8 -4
  4. package/esm2022/lib/components/action/action.component.mjs +16 -45
  5. package/esm2022/lib/components/action/editor/action-editor.component.mjs +60 -434
  6. package/esm2022/lib/components/action/editor/injector-context/action-editor-injector-context.component.mjs +394 -0
  7. package/esm2022/lib/components/action/localization/data-language-dropdown.component.mjs +6 -7
  8. package/esm2022/lib/components/action/models/action-component.model.mjs +1 -1
  9. package/esm2022/lib/components/action/models/action-execution.model.mjs +3 -6
  10. package/esm2022/lib/components/action/models/index.mjs +1 -2
  11. package/esm2022/lib/components/action/route/action-route.component.mjs +14 -30
  12. package/esm2022/lib/components/action/table/action-table.component.mjs +9 -19
  13. package/esm2022/lib/components/form/editor/form-editor.component.mjs +5 -11
  14. package/esm2022/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +1 -1
  15. package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +4 -4
  16. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +5 -5
  17. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -4
  18. package/esm2022/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +1 -1
  19. package/esm2022/lib/components/layout/main-layout.component.mjs +21 -25
  20. package/esm2022/lib/components/layout/topbar.component.mjs +8 -8
  21. package/esm2022/lib/components/layoutV2/main-layout.component.mjs +13 -10
  22. package/esm2022/lib/components/layoutV2/menu-item.component.mjs +48 -5
  23. package/esm2022/lib/components/layoutV2/menu.component.mjs +13 -4
  24. package/esm2022/lib/components/layoutV2/services/main-layout.component.service.mjs +11 -2
  25. package/esm2022/lib/components/layoutV2/sidebar.component.mjs +5 -5
  26. package/esm2022/lib/components/layoutV2/topbar.component.mjs +7 -7
  27. package/esm2022/lib/components/notification/notification-wrapper.component.mjs +50 -0
  28. package/esm2022/lib/components/table/column-value/column-value.component.mjs +2 -2
  29. package/esm2022/lib/components/table/table.component.mjs +17 -23
  30. package/esm2022/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -5
  31. package/esm2022/lib/components/tableview/route/tableview-route.component.mjs +3 -9
  32. package/esm2022/lib/components/tableview/tableview.component.mjs +17 -76
  33. package/esm2022/lib/descriptors/editor/field-lookup.descriptor.mjs +1 -2
  34. package/esm2022/lib/descriptors/filter/filter.descriptor.mjs +20 -20
  35. package/esm2022/lib/directives/component.directive.mjs +8 -4
  36. package/esm2022/lib/helpers/coercion.mjs +8 -1
  37. package/esm2022/lib/models/action-editor.model.mjs +1 -1
  38. package/esm2022/lib/models/config.model.mjs +1 -1
  39. package/esm2022/lib/models/index.mjs +2 -2
  40. package/esm2022/lib/models/layout-config.model.mjs +2 -0
  41. package/esm2022/lib/models/view-container.model.mjs +1 -1
  42. package/esm2022/lib/provide-commons.mjs +7 -1
  43. package/esm2022/lib/registry/type.registry.mjs +2 -3
  44. package/esm2022/lib/router/route-builder.mjs +1 -1
  45. package/esm2022/lib/services/action/action-executor.service.mjs +725 -0
  46. package/esm2022/lib/services/action/component-action-executor.service.mjs +19 -0
  47. package/esm2022/lib/services/action/index.mjs +5 -0
  48. package/esm2022/lib/services/action/provide-action-executor.mjs +9 -0
  49. package/esm2022/lib/services/action/root-action-executor.service.mjs +18 -0
  50. package/esm2022/lib/services/commons.service.mjs +5 -5
  51. package/esm2022/lib/services/index.mjs +1 -3
  52. package/esm2022/lib/services/logger.service.mjs +2 -2
  53. package/esm2022/lib/services/view/index.mjs +3 -0
  54. package/esm2022/lib/services/view/provide-view-container.mjs +17 -0
  55. package/esm2022/lib/services/view/view-container.service.mjs +59 -0
  56. package/esm2022/lib/utils/date.util.mjs +33 -23
  57. package/esm2022/lib/utils/notification.util.mjs +9 -16
  58. package/esm2022/lib/utils/string.util.mjs +2 -2
  59. package/fesm2022/mediusinc-mng-commons.mjs +3199 -3156
  60. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  61. package/index.d.ts +4 -0
  62. package/lib/components/action/action.component.d.ts +11 -17
  63. package/lib/components/action/editor/action-editor.component.d.ts +20 -80
  64. package/lib/components/action/editor/injector-context/action-editor-injector-context.component.d.ts +80 -0
  65. package/lib/components/action/localization/data-language-dropdown.component.d.ts +2 -3
  66. package/lib/components/action/models/action-component.model.d.ts +0 -2
  67. package/lib/components/action/models/action-execution.model.d.ts +6 -6
  68. package/lib/components/action/models/index.d.ts +0 -1
  69. package/lib/components/action/route/action-route.component.d.ts +6 -12
  70. package/lib/components/action/table/action-table.component.d.ts +3 -8
  71. package/lib/components/form/editor/form-editor.component.d.ts +4 -7
  72. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +1 -3
  73. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -2
  74. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -2
  75. package/lib/components/layout/main-layout.component.d.ts +4 -7
  76. package/lib/components/layoutV2/main-layout.component.d.ts +4 -3
  77. package/lib/components/layoutV2/menu-item.component.d.ts +7 -3
  78. package/lib/components/layoutV2/menu.component.d.ts +2 -0
  79. package/lib/components/layoutV2/services/main-layout.component.service.d.ts +3 -0
  80. package/lib/components/layoutV2/sidebar.component.d.ts +1 -1
  81. package/lib/components/layoutV2/topbar.component.d.ts +2 -2
  82. package/lib/components/notification/notification-wrapper.component.d.ts +12 -0
  83. package/lib/components/table/table.component.d.ts +4 -7
  84. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -3
  85. package/lib/components/tableview/route/tableview-route.component.d.ts +0 -3
  86. package/lib/components/tableview/tableview.component.d.ts +3 -19
  87. package/lib/descriptors/filter/filter.descriptor.d.ts +7 -7
  88. package/lib/directives/component.directive.d.ts +3 -2
  89. package/lib/models/action-editor.model.d.ts +11 -0
  90. package/lib/models/config.model.d.ts +3 -13
  91. package/lib/models/index.d.ts +1 -1
  92. package/lib/models/layout-config.model.d.ts +33 -0
  93. package/lib/models/view-container.model.d.ts +0 -25
  94. package/lib/router/route-builder.d.ts +1 -1
  95. package/lib/services/{action-executor.service.d.ts → action/action-executor.service.d.ts} +32 -31
  96. package/lib/services/action/component-action-executor.service.d.ts +9 -0
  97. package/lib/services/action/index.d.ts +4 -0
  98. package/lib/services/action/provide-action-executor.d.ts +2 -0
  99. package/lib/services/action/root-action-executor.service.d.ts +9 -0
  100. package/lib/services/index.d.ts +0 -2
  101. package/lib/services/view/index.d.ts +2 -0
  102. package/lib/services/view/provide-view-container.d.ts +2 -0
  103. package/lib/services/view/view-container.service.d.ts +32 -0
  104. package/lib/utils/date.util.d.ts +12 -2
  105. package/lib/utils/notification.util.d.ts +6 -6
  106. package/openapi/angular/README.mustache +226 -0
  107. package/openapi/angular/api.module.mustache +39 -0
  108. package/openapi/angular/api.service.mustache +253 -0
  109. package/openapi/angular/apiInterface.mustache +47 -0
  110. package/openapi/angular/apis.mustache +12 -0
  111. package/openapi/angular/configuration.mustache +128 -0
  112. package/openapi/angular/custom/base-api.service.mustache +14 -0
  113. package/openapi/angular/custom/helpers.mustache +71 -0
  114. package/openapi/angular/custom/modelSchema.mustache +46 -0
  115. package/openapi/angular/custom/schema.mustache +18 -0
  116. package/openapi/angular/encoder.mustache +20 -0
  117. package/openapi/angular/git_push.sh.mustache +57 -0
  118. package/openapi/angular/index.mustache +0 -0
  119. package/openapi/angular/licenseInfo.mustache +11 -0
  120. package/openapi/angular/model.mustache +16 -0
  121. package/openapi/angular/modelAlias.mustache +1 -0
  122. package/openapi/angular/modelEnum.mustache +24 -0
  123. package/openapi/angular/modelGeneric.mustache +14 -0
  124. package/openapi/angular/modelGenericAdditionalProperties.mustache +5 -0
  125. package/openapi/angular/modelGenericEnums.mustache +30 -0
  126. package/openapi/angular/modelOneOf.mustache +14 -0
  127. package/openapi/angular/modelTaggedUnion.mustache +21 -0
  128. package/openapi/angular/models.mustache +5 -0
  129. package/openapi/angular/ng-package.mustache +6 -0
  130. package/openapi/angular/package.mustache +39 -0
  131. package/openapi/angular/param.mustache +69 -0
  132. package/openapi/angular/tsconfig.mustache +28 -0
  133. package/openapi/angular/variables.mustache +9 -0
  134. package/openapi/{templates → node}/model.mustache +3 -17
  135. package/package.json +2 -2
  136. package/scss/mng-commons-dark-v2.scss +1 -1
  137. package/scss/mng-commons-light-v2.scss +1 -1
  138. package/scss/v2/layout/layout.scss +2 -2
  139. package/scss/v2/layout/mng/_mng_layout_topbar.scss +2 -0
  140. package/scss/v2/layout/preloading.scss +8 -8
  141. package/esm2022/lib/components/action/models/action-confirmation-service.model.mjs +0 -2
  142. package/esm2022/lib/models/menu-config.model.mjs +0 -2
  143. package/esm2022/lib/services/action-executor.service.mjs +0 -747
  144. package/esm2022/lib/services/view-container.component.service.mjs +0 -65
  145. package/lib/components/action/models/action-confirmation-service.model.d.ts +0 -6
  146. package/lib/models/menu-config.model.d.ts +0 -15
  147. package/lib/services/view-container.component.service.d.ts +0 -36
  148. /package/openapi/{templates → node}/models.mustache +0 -0
@@ -1,4 +1,7 @@
1
1
  {{>licenseInfo}}
2
+
3
+ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */
4
+
2
5
  {{#models}}
3
6
  {{#model}}
4
7
  {{#isEnum}}
@@ -62,23 +65,6 @@ export class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
62
65
  }
63
66
  {{/isArray}}
64
67
  }
65
- {{#hasEnums}}
66
- export namespace {{classname}} {
67
- {{#vars}}
68
- {{#isEnum}}
69
- export enum {{enumName}} {
70
- {{#allowableValues}}
71
- {{#enumVars}}
72
- {{name}} = {{{value}}}{{^-last}},{{/-last}}
73
- {{/enumVars}}
74
- {{/allowableValues}}
75
- }
76
-
77
- TypeRegistry.get().registerEnum({{enumName}}, '{{classname}}.{{enumName}}');
78
- {{/isEnum}}
79
- {{/vars}}
80
- }
81
- {{/hasEnums}}
82
68
 
83
69
  TypeRegistry.get().registerType({{classname}});
84
70
  {{/isEnum}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "4.0.0-rc.2",
3
+ "version": "4.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^17.0.0",
6
6
  "@angular/common": "^17.0.0",
@@ -8,7 +8,7 @@
8
8
  "@angular/forms": "^17.0.0",
9
9
  "@angular/platform-browser": "^17.0.0",
10
10
  "@angular/router": "^17.0.0",
11
- "@ngx-formly/core": "^6.1.3",
11
+ "@ngx-formly/core": "^6.3.0",
12
12
  "@ngx-translate/core": "^15.0.0",
13
13
  "primeng": "~17.3.0"
14
14
  },
@@ -4,6 +4,6 @@ $multiselectHighlightTextColor: #44486d;
4
4
  $baseHref: '/' !default;
5
5
 
6
6
  // theme and layout
7
+ @import 'v2/theme/theme-dark/blue/theme';
7
8
  @import 'v2/theme/theme-base/mng/mng_variables';
8
9
  @import 'v2/layout/layout.scss';
9
- @import 'v2/theme/theme-dark/blue/theme';
@@ -4,6 +4,6 @@ $multiselectHighlightTextColor: #44486d;
4
4
  $baseHref: '/' !default;
5
5
 
6
6
  // theme and layout
7
+ @import 'v2/theme/theme-light/blue/theme';
7
8
  @import 'v2/theme/theme-base/mng/mng_variables';
8
9
  @import 'v2/layout/layout.scss';
9
- @import 'v2/theme/theme-light/blue/theme';
@@ -7,8 +7,8 @@ $scale: 14px !default;
7
7
  @import './_layout_dark';
8
8
  @import './_main';
9
9
  @import './_sidebar_vertical';
10
- //@import './_sidebar_slim';
11
- //@import './_sidebar_slim_plus';
10
+ @import './_sidebar_slim';
11
+ @import './_sidebar_slim_plus';
12
12
  //@import './_sidebar_horizontal';
13
13
  @import './_sidebar_reveal';
14
14
  @import './_sidebar_drawer';
@@ -5,6 +5,8 @@
5
5
 
6
6
  .layout-topbar .topbar-menu li.topbar-item ul {
7
7
  padding: 8px 0 8px 0;
8
+ background: white;
9
+ box-shadow: $inputOverlayShadow;
8
10
 
9
11
  & li {
10
12
  margin-left: 0;
@@ -22,7 +22,7 @@
22
22
  text-transform: uppercase;
23
23
  text-shadow: 0 0 10px #6366F1;
24
24
  box-shadow: 0 0 20px rgba(0, 0, 0, .5);
25
-
25
+
26
26
  &:before {
27
27
  content: '';
28
28
  position: absolute;
@@ -31,12 +31,12 @@
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  border: 3px solid transparent;
34
- border-top: 3px solid #6366F1;
35
- border-right: 3px solid #6366F1;
34
+ border-top: 3px solid #6366f1;
35
+ border-right: 3px solid #6366f1;
36
36
  border-radius: 50%;
37
37
  animation: preloader-rotate-c 1s linear infinite;
38
38
  }
39
-
39
+
40
40
  span {
41
41
  display: block;
42
42
  position: absolute;
@@ -48,17 +48,17 @@
48
48
  transform-origin: left;
49
49
  animation: preloader-rotate 1s linear infinite;
50
50
  }
51
-
51
+
52
52
  span:before {
53
53
  content: '';
54
54
  position: absolute;
55
55
  width: 16px;
56
56
  height: 16px;
57
57
  border-radius: 50%;
58
- background: #6366F1;
58
+ background: #6366f1;
59
59
  top: -6px;
60
60
  right: -8px;
61
- box-shadow: 0 0 20px #6366F1;
61
+ box-shadow: 0 0 20px #6366f1;
62
62
  }
63
63
  }
64
64
  }
@@ -81,4 +81,4 @@
81
81
  100% {
82
82
  transform: rotate(405deg);
83
83
  }
84
- }
84
+ }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWNvbmZpcm1hdGlvbi1zZXJ2aWNlLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMi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RcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBNbmdNZW51Q29uZmlnIHtcbiAgICBtb2RlOiAnc3RhdGljJyB8ICdzaWRlYmFyJyB8ICdzbGltJyB8ICdvdmVybGF5JztcbiAgICBtZW51SXRlbXM/OiBNZW51SXRlbVtdO1xuICAgIHBpbkVuYWJsZWQ/OiBib29sZWFuO1xuICAgIHNpZGViYXJTbGltPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBNbmdNZW51Q29uZmlnVjIge1xuICAgIG1vZGU6IE1uZ01lbnVNb2RlO1xuICAgIHJpcHBsZT86IGJvb2xlYW47XG59XG4iXX0=