@mediusinc/mng-commons 4.0.0-rc.1 → 4.0.0-rc.3

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 (184) hide show
  1. package/esm2022/index.mjs +12 -2
  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/index.mjs +2 -1
  8. package/esm2022/lib/components/action/localization/data-language-dropdown.component.mjs +6 -7
  9. package/esm2022/lib/components/action/models/action-component.model.mjs +1 -1
  10. package/esm2022/lib/components/action/models/action-execution.model.mjs +3 -6
  11. package/esm2022/lib/components/action/models/index.mjs +1 -2
  12. package/esm2022/lib/components/action/route/action-route.component.mjs +14 -30
  13. package/esm2022/lib/components/action/table/action-table.component.mjs +154 -0
  14. package/esm2022/lib/components/form/editor/form-editor.component.mjs +5 -11
  15. package/esm2022/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +1 -1
  16. package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +5 -5
  17. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +6 -7
  18. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +5 -5
  19. package/esm2022/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +1 -1
  20. package/esm2022/lib/components/layout/main-layout.component.mjs +21 -25
  21. package/esm2022/lib/components/layout/topbar.component.mjs +8 -8
  22. package/esm2022/lib/components/layoutV2/main-layout.component.mjs +13 -10
  23. package/esm2022/lib/components/layoutV2/menu-item.component.mjs +48 -5
  24. package/esm2022/lib/components/layoutV2/menu.component.mjs +13 -4
  25. package/esm2022/lib/components/layoutV2/services/main-layout.component.service.mjs +11 -2
  26. package/esm2022/lib/components/layoutV2/sidebar.component.mjs +5 -5
  27. package/esm2022/lib/components/layoutV2/topbar.component.mjs +7 -12
  28. package/esm2022/lib/components/notification/notification-wrapper.component.mjs +50 -0
  29. package/esm2022/lib/components/table/column-filter-full/column-filter-full.component.mjs +466 -0
  30. package/esm2022/lib/components/table/column-value/column-value.component.mjs +87 -0
  31. package/esm2022/lib/components/table/models/table.event.mjs +16 -0
  32. package/esm2022/lib/components/table/models/table.interface.mjs +2 -0
  33. package/esm2022/lib/components/table/table-column-filter-class/table-column-filter-class.pipe.mjs +25 -0
  34. package/esm2022/lib/components/table/table.component.mjs +717 -0
  35. package/esm2022/lib/components/tableview/index.mjs +1 -4
  36. package/esm2022/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -5
  37. package/esm2022/lib/components/tableview/route/tableview-route.component.mjs +3 -9
  38. package/esm2022/lib/components/tableview/tableview.component.mjs +18 -78
  39. package/esm2022/lib/descriptors/editor/editor.descriptor.mjs +1 -1
  40. package/esm2022/lib/descriptors/editor/field-lookup.descriptor.mjs +1 -2
  41. package/esm2022/lib/descriptors/filter/filter.descriptor.mjs +20 -20
  42. package/esm2022/lib/descriptors/table/table.descriptor.mjs +16 -17
  43. package/esm2022/lib/descriptors/tableview/tableview.descriptor.mjs +1 -1
  44. package/esm2022/lib/directives/component.directive.mjs +8 -4
  45. package/esm2022/lib/helpers/coercion.mjs +8 -1
  46. package/esm2022/lib/models/action-editor.model.mjs +1 -1
  47. package/esm2022/lib/models/config.model.mjs +1 -1
  48. package/esm2022/lib/models/index.mjs +2 -2
  49. package/esm2022/lib/models/layout-config.model.mjs +2 -0
  50. package/esm2022/lib/models/view-container.model.mjs +1 -1
  51. package/esm2022/lib/provide-commons.mjs +7 -1
  52. package/esm2022/lib/registry/type.registry.mjs +2 -3
  53. package/esm2022/lib/router/route-builder.mjs +1 -1
  54. package/esm2022/lib/services/action/action-executor.service.mjs +725 -0
  55. package/esm2022/lib/services/action/component-action-executor.service.mjs +19 -0
  56. package/esm2022/lib/services/action/index.mjs +5 -0
  57. package/esm2022/lib/services/action/provide-action-executor.mjs +9 -0
  58. package/esm2022/lib/services/action/root-action-executor.service.mjs +18 -0
  59. package/esm2022/lib/services/commons.service.mjs +5 -5
  60. package/esm2022/lib/services/index.mjs +1 -3
  61. package/esm2022/lib/services/logger.service.mjs +2 -2
  62. package/esm2022/lib/services/view/index.mjs +3 -0
  63. package/esm2022/lib/services/view/provide-view-container.mjs +17 -0
  64. package/esm2022/lib/services/view/view-container.service.mjs +59 -0
  65. package/esm2022/lib/utils/date.util.mjs +33 -23
  66. package/esm2022/lib/utils/notification.util.mjs +9 -16
  67. package/esm2022/lib/utils/string.util.mjs +2 -2
  68. package/esm2022/lib/utils/tableview.util.mjs +2 -2
  69. package/fesm2022/mediusinc-mng-commons.mjs +4305 -4121
  70. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  71. package/index.d.ts +10 -1
  72. package/lib/components/action/action.component.d.ts +11 -17
  73. package/lib/components/action/editor/action-editor.component.d.ts +20 -80
  74. package/lib/components/action/editor/injector-context/action-editor-injector-context.component.d.ts +80 -0
  75. package/lib/components/action/index.d.ts +1 -0
  76. package/lib/components/action/localization/data-language-dropdown.component.d.ts +2 -3
  77. package/lib/components/action/models/action-component.model.d.ts +0 -2
  78. package/lib/components/action/models/action-execution.model.d.ts +6 -6
  79. package/lib/components/action/models/index.d.ts +0 -1
  80. package/lib/components/action/route/action-route.component.d.ts +6 -12
  81. package/lib/components/action/table/action-table.component.d.ts +50 -0
  82. package/lib/components/form/editor/form-editor.component.d.ts +4 -7
  83. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +2 -4
  84. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -2
  85. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +1 -3
  86. package/lib/components/layout/main-layout.component.d.ts +4 -7
  87. package/lib/components/layoutV2/main-layout.component.d.ts +4 -3
  88. package/lib/components/layoutV2/menu-item.component.d.ts +7 -3
  89. package/lib/components/layoutV2/menu.component.d.ts +2 -0
  90. package/lib/components/layoutV2/services/main-layout.component.service.d.ts +3 -0
  91. package/lib/components/layoutV2/sidebar.component.d.ts +1 -1
  92. package/lib/components/layoutV2/topbar.component.d.ts +2 -3
  93. package/lib/components/notification/notification-wrapper.component.d.ts +12 -0
  94. package/lib/components/{tableview/table → table}/column-filter-full/column-filter-full.component.d.ts +2 -2
  95. package/lib/components/{tableview/table → table}/column-value/column-value.component.d.ts +3 -3
  96. package/lib/components/{tableview/table → table}/models/table.interface.d.ts +3 -1
  97. package/lib/components/table/table-column-filter-class/table-column-filter-class.pipe.d.ts +8 -0
  98. package/lib/components/table/table.component.d.ts +122 -0
  99. package/lib/components/tableview/index.d.ts +0 -3
  100. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -3
  101. package/lib/components/tableview/route/tableview-route.component.d.ts +0 -3
  102. package/lib/components/tableview/tableview.component.d.ts +4 -20
  103. package/lib/descriptors/editor/editor.descriptor.d.ts +1 -1
  104. package/lib/descriptors/filter/filter.descriptor.d.ts +7 -7
  105. package/lib/descriptors/table/table.descriptor.d.ts +15 -12
  106. package/lib/descriptors/tableview/tableview.descriptor.d.ts +1 -1
  107. package/lib/directives/component.directive.d.ts +3 -2
  108. package/lib/models/action-editor.model.d.ts +11 -0
  109. package/lib/models/config.model.d.ts +3 -13
  110. package/lib/models/index.d.ts +1 -1
  111. package/lib/models/layout-config.model.d.ts +33 -0
  112. package/lib/models/view-container.model.d.ts +0 -25
  113. package/lib/router/route-builder.d.ts +1 -1
  114. package/lib/services/{action-executor.service.d.ts → action/action-executor.service.d.ts} +32 -31
  115. package/lib/services/action/component-action-executor.service.d.ts +9 -0
  116. package/lib/services/action/index.d.ts +4 -0
  117. package/lib/services/action/provide-action-executor.d.ts +2 -0
  118. package/lib/services/action/root-action-executor.service.d.ts +9 -0
  119. package/lib/services/index.d.ts +0 -2
  120. package/lib/services/view/index.d.ts +2 -0
  121. package/lib/services/view/provide-view-container.d.ts +2 -0
  122. package/lib/services/view/view-container.service.d.ts +32 -0
  123. package/lib/utils/date.util.d.ts +12 -2
  124. package/lib/utils/notification.util.d.ts +6 -6
  125. package/openapi/angular/README.mustache +226 -0
  126. package/openapi/angular/api.module.mustache +39 -0
  127. package/openapi/angular/api.service.mustache +253 -0
  128. package/openapi/angular/apiInterface.mustache +47 -0
  129. package/openapi/angular/apis.mustache +12 -0
  130. package/openapi/angular/configuration.mustache +128 -0
  131. package/openapi/angular/custom/base-api.service.mustache +14 -0
  132. package/openapi/angular/custom/helpers.mustache +71 -0
  133. package/openapi/angular/custom/modelSchema.mustache +46 -0
  134. package/openapi/angular/custom/schema.mustache +18 -0
  135. package/openapi/angular/encoder.mustache +20 -0
  136. package/openapi/angular/git_push.sh.mustache +57 -0
  137. package/openapi/angular/index.mustache +0 -0
  138. package/openapi/angular/licenseInfo.mustache +11 -0
  139. package/openapi/angular/model.mustache +16 -0
  140. package/openapi/angular/modelAlias.mustache +1 -0
  141. package/openapi/angular/modelEnum.mustache +24 -0
  142. package/openapi/angular/modelGeneric.mustache +14 -0
  143. package/openapi/angular/modelGenericAdditionalProperties.mustache +5 -0
  144. package/openapi/angular/modelGenericEnums.mustache +30 -0
  145. package/openapi/angular/modelOneOf.mustache +14 -0
  146. package/openapi/angular/modelTaggedUnion.mustache +21 -0
  147. package/openapi/angular/models.mustache +5 -0
  148. package/openapi/angular/ng-package.mustache +6 -0
  149. package/openapi/angular/package.mustache +39 -0
  150. package/openapi/angular/param.mustache +69 -0
  151. package/openapi/angular/tsconfig.mustache +28 -0
  152. package/openapi/angular/variables.mustache +9 -0
  153. package/openapi/{templates → node}/model.mustache +3 -17
  154. package/package.json +2 -2
  155. package/scss/mng-commons-dark-v2.scss +1 -1
  156. package/scss/mng-commons-light-v2.scss +1 -1
  157. package/scss/mng-overrides/_theme_datatable.scss +24 -10
  158. package/scss/v2/layout/layout.scss +2 -2
  159. package/scss/v2/layout/mng/_mng_layout_topbar.scss +2 -0
  160. package/scss/v2/layout/preloading.scss +8 -8
  161. package/scss/v2/theme/theme-base/mng/_mng_theme_datatable.scss +24 -9
  162. package/scss/v2/theme/theme-dark/_variables.scss +24 -12
  163. package/scss/v2/theme/theme-dark/blue/theme.scss +4 -4
  164. package/scss/v2/theme/theme-light/_variables.scss +23 -11
  165. package/scss/v2/theme/theme-light/blue/theme.scss +2 -2
  166. package/esm2022/lib/components/action/models/action-confirmation-service.model.mjs +0 -2
  167. package/esm2022/lib/components/tableview/models/index.mjs +0 -2
  168. package/esm2022/lib/components/tableview/models/table.event.mjs +0 -16
  169. package/esm2022/lib/components/tableview/table/column-filter-full/column-filter-full.component.mjs +0 -467
  170. package/esm2022/lib/components/tableview/table/column-value/column-value.component.mjs +0 -87
  171. package/esm2022/lib/components/tableview/table/models/index.mjs +0 -2
  172. package/esm2022/lib/components/tableview/table/models/table.interface.mjs +0 -2
  173. package/esm2022/lib/components/tableview/table/table.component.mjs +0 -752
  174. package/esm2022/lib/models/menu-config.model.mjs +0 -2
  175. package/esm2022/lib/services/action-executor.service.mjs +0 -747
  176. package/esm2022/lib/services/view-container.component.service.mjs +0 -65
  177. package/lib/components/action/models/action-confirmation-service.model.d.ts +0 -6
  178. package/lib/components/tableview/models/index.d.ts +0 -1
  179. package/lib/components/tableview/table/models/index.d.ts +0 -1
  180. package/lib/components/tableview/table/table.component.d.ts +0 -147
  181. package/lib/models/menu-config.model.d.ts +0 -15
  182. package/lib/services/view-container.component.service.d.ts +0 -36
  183. /package/lib/components/{tableview → table}/models/table.event.d.ts +0 -0
  184. /package/openapi/{templates → node}/models.mustache +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * {{{appName}}}
3
+ * {{{appDescription}}}
4
+ *
5
+ * {{#version}}The version of the OpenAPI document: {{{.}}}{{/version}}
6
+ * {{#infoEmail}}Contact: {{{.}}}{{/infoEmail}}
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
@@ -0,0 +1,16 @@
1
+ {{>licenseInfo}}
2
+ {{#models}}
3
+ {{#model}}
4
+ {{#tsImports}}
5
+ import { {{classname}} } from '{{filename}}';
6
+ {{/tsImports}}
7
+
8
+
9
+ {{#description}}
10
+ /**
11
+ * {{{.}}}
12
+ */
13
+ {{/description}}
14
+ {{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{#isAlias}}{{>modelAlias}}{{/isAlias}}{{^isAlias}}{{#taggedUnions}}{{>modelTaggedUnion}}{{/taggedUnions}}{{^taggedUnions}}{{#oneOf}}{{#-first}}{{>modelOneOf}}{{/-first}}{{/oneOf}}{{^oneOf}}{{>modelGeneric}}{{/oneOf}}{{/taggedUnions}}{{/isAlias}}{{/isEnum}}
15
+ {{/model}}
16
+ {{/models}}
@@ -0,0 +1 @@
1
+ export type {{classname}} = {{dataType}};
@@ -0,0 +1,24 @@
1
+ import {TypeRegistry} from '@mediusinc/mng-commons';
2
+
3
+ {{#stringEnums}}
4
+ export enum {{classname}} {
5
+ {{#allowableValues}}
6
+ {{#enumVars}}
7
+ {{name}} = {{{value}}}{{^-last}},{{/-last}}
8
+ {{/enumVars}}
9
+ {{/allowableValues}}
10
+ }
11
+
12
+ TypeRegistry.get().registerEnum({{classname}}, '{{classname}}');
13
+ {{/stringEnums}}
14
+ {{^stringEnums}}
15
+ export type {{classname}} = {{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}} | {{/-last}}{{/enumVars}}{{/allowableValues}};
16
+
17
+ export const {{classname}} = {
18
+ {{#allowableValues}}
19
+ {{#enumVars}}
20
+ {{name}}: {{{value}}} as {{classname}}{{^-last}},{{/-last}}
21
+ {{/enumVars}}
22
+ {{/allowableValues}}
23
+ };
24
+ {{/stringEnums}}
@@ -0,0 +1,14 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */
2
+
3
+ export interface {{classname}}{{#allParents}}{{#-first}} extends {{/-first}}{{{.}}}{{^-last}}, {{/-last}}{{/allParents}} { {{>modelGenericAdditionalProperties}}
4
+ {{#vars}}
5
+ {{#description}}
6
+ /**
7
+ * {{{.}}}
8
+ */
9
+ {{/description}}
10
+ {{#isReadOnly}}readonly {{/isReadOnly}}{{{name}}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
11
+ {{/vars}}
12
+ }{{>modelGenericEnums}}
13
+
14
+ export const {{classname}}TypeName = '{{classname}}';
@@ -0,0 +1,5 @@
1
+ {{#additionalPropertiesType}}
2
+
3
+ [key: string]: {{{additionalPropertiesType}}}{{#hasVars}} | any{{/hasVars}};
4
+
5
+ {{/additionalPropertiesType}}
@@ -0,0 +1,30 @@
1
+ {{#hasEnums}}
2
+
3
+ {{^stringEnums}}
4
+ export namespace {{classname}} {
5
+ {{/stringEnums}}
6
+ {{#vars}}
7
+ {{#isEnum}}
8
+ {{#stringEnums}}
9
+ export enum {{classname}}{{enumName}} {
10
+ {{#allowableValues}}
11
+ {{#enumVars}}
12
+ {{name}} = {{{value}}}{{^-last}},{{/-last}}
13
+ {{/enumVars}}
14
+ {{/allowableValues}}
15
+ };
16
+ {{/stringEnums}}
17
+ {{^stringEnums}}
18
+ export type {{enumName}} = {{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}} | {{/-last}}{{/enumVars}}{{/allowableValues}};
19
+ export const {{enumName}} = {
20
+ {{#allowableValues}}
21
+ {{#enumVars}}
22
+ {{name}}: {{{value}}} as {{enumName}}{{^-last}},{{/-last}}
23
+ {{/enumVars}}
24
+ {{/allowableValues}}
25
+ };
26
+ {{/stringEnums}}
27
+ {{/isEnum}}
28
+ {{/vars}}
29
+ {{^stringEnums}}}{{/stringEnums}}
30
+ {{/hasEnums}}
@@ -0,0 +1,14 @@
1
+ {{#hasImports}}
2
+ import {
3
+ {{#imports}}
4
+ {{{.}}},
5
+ {{/imports}}
6
+ } from './';
7
+
8
+ {{/hasImports}}
9
+ /**
10
+ * @type {{classname}}{{#description}}
11
+ * {{{.}}}{{/description}}
12
+ * @export
13
+ */
14
+ export type {{classname}} = {{#oneOf}}{{{.}}}{{^-last}} | {{/-last}}{{/oneOf}};
@@ -0,0 +1,21 @@
1
+ {{#discriminator}}
2
+ export type {{classname}} = {{#children}}{{^-first}} | {{/-first}}{{classname}}{{/children}};
3
+ {{/discriminator}}
4
+ {{^discriminator}}
5
+ {{#parent}}
6
+ export interface {{classname}} { {{>modelGenericAdditionalProperties}}
7
+ {{#allVars}}
8
+ {{#description}}
9
+ /**
10
+ * {{{.}}}
11
+ */
12
+ {{/description}}
13
+ {{name}}{{^required}}?{{/required}}: {{#discriminatorValue}}'{{.}}'{{/discriminatorValue}}{{^discriminatorValue}}{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{/discriminatorValue}}{{#isNullable}} | null{{/isNullable}};
14
+ {{/allVars}}
15
+ }
16
+ {{>modelGenericEnums}}
17
+ {{/parent}}
18
+ {{^parent}}
19
+ {{>modelGeneric}}
20
+ {{/parent}}
21
+ {{/discriminator}}
@@ -0,0 +1,5 @@
1
+ {{#models}}
2
+ {{#model}}
3
+ export * from '{{{ classFilename }}}';
4
+ {{/model}}
5
+ {{/models}}
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
+ "lib": {
4
+ "entryFile": "index.ts"
5
+ }
6
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "{{{npmName}}}",
3
+ "version": "{{{npmVersion}}}",
4
+ "description": "OpenAPI client for {{{npmName}}}",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9
+ },
10
+ "keywords": [
11
+ "openapi-client",
12
+ "openapi-generator"
13
+ ],
14
+ "license": "Unlicense",
15
+ "scripts": {
16
+ "build": "ng-packagr -p ng-package.json"
17
+ },
18
+ "peerDependencies": {
19
+ "@angular/core": "^{{ngVersion}}",
20
+ "rxjs": "^{{rxjsVersion}}"
21
+ },
22
+ "devDependencies": {
23
+ "@angular/common": "^{{ngVersion}}",
24
+ "@angular/compiler": "^{{ngVersion}}",
25
+ "@angular/compiler-cli": "^{{ngVersion}}",
26
+ "@angular/core": "^{{ngVersion}}",
27
+ "@angular/platform-browser": "^{{ngVersion}}",
28
+ "ng-packagr": "^{{ngPackagrVersion}}",
29
+ "reflect-metadata": "^0.1.3",
30
+ "rxjs": "^{{rxjsVersion}}",{{#tsickleVersion}}
31
+ "tsickle": "^{{tsickleVersion}}",{{/tsickleVersion}}
32
+ "typescript": "{{{tsVersion}}}",
33
+ "zone.js": "^{{zonejsVersion}}"
34
+ }{{#npmRepository}},
35
+ "publishConfig": {
36
+ "registry": "{{{npmRepository}}}"
37
+ }
38
+ {{/npmRepository}}
39
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Standard parameter styles defined by OpenAPI spec
3
+ */
4
+ export type StandardParamStyle =
5
+ | 'matrix'
6
+ | 'label'
7
+ | 'form'
8
+ | 'simple'
9
+ | 'spaceDelimited'
10
+ | 'pipeDelimited'
11
+ | 'deepObject'
12
+ ;
13
+
14
+ /**
15
+ * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
16
+ */
17
+ export type ParamStyle = StandardParamStyle | string;
18
+
19
+ /**
20
+ * Standard parameter locations defined by OpenAPI spec
21
+ */
22
+ export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
23
+
24
+ /**
25
+ * Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
26
+ */
27
+ export type StandardDataType =
28
+ | "integer"
29
+ | "number"
30
+ | "boolean"
31
+ | "string"
32
+ | "object"
33
+ | "array"
34
+ ;
35
+
36
+ /**
37
+ * Standard {@link DataType}s plus your own types/classes.
38
+ */
39
+ export type DataType = StandardDataType | string;
40
+
41
+ /**
42
+ * Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
43
+ */
44
+ export type StandardDataFormat =
45
+ | "int32"
46
+ | "int64"
47
+ | "float"
48
+ | "double"
49
+ | "byte"
50
+ | "binary"
51
+ | "date"
52
+ | "date-time"
53
+ | "password"
54
+ ;
55
+
56
+ export type DataFormat = StandardDataFormat | string;
57
+
58
+ /**
59
+ * The parameter to encode.
60
+ */
61
+ export interface Param {
62
+ name: string;
63
+ value: unknown;
64
+ in: ParamLocation;
65
+ style: ParamStyle,
66
+ explode: boolean;
67
+ dataType: DataType;
68
+ dataFormat: DataFormat | undefined;
69
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "emitDecoratorMetadata": true,
4
+ "experimentalDecorators": true,
5
+ "noImplicitAny": false,
6
+ "suppressImplicitAnyIndexErrors": true,
7
+ "target": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}es5{{/supportsES6}}",
8
+ "module": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}commonjs{{/supportsES6}}",
9
+ "moduleResolution": "node",
10
+ "removeComments": true,
11
+ "sourceMap": true,
12
+ "outDir": "./dist",
13
+ "noLib": false,
14
+ "declaration": true,
15
+ "lib": [ "es6", "dom" ],
16
+ "typeRoots": [
17
+ "node_modules/@types"
18
+ ]
19
+ },
20
+ "exclude": [
21
+ "node_modules",
22
+ "dist"
23
+ ],
24
+ "filesGlob": [
25
+ "./model/*.ts",
26
+ "./api/*.ts"
27
+ ]
28
+ }
@@ -0,0 +1,9 @@
1
+ import { InjectionToken } from '@angular/core';
2
+
3
+ export const BASE_PATH = new InjectionToken<string>('basePath');
4
+ export const COLLECTION_FORMATS = {
5
+ 'csv': ',',
6
+ 'tsv': ' ',
7
+ 'ssv': ' ',
8
+ 'pipes': '|'
9
+ }
@@ -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.1",
3
+ "version": "4.0.0-rc.3",
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';
@@ -9,28 +9,35 @@
9
9
 
10
10
  .p-datatable-thead > tr > th,
11
11
  .p-datatable-tbody > tr > td {
12
- // string
13
- &.mng-column-filter-0 {
12
+ &.mng-column-filter-string {
14
13
  min-width: 135px;
15
14
  }
16
15
  // number
17
- &.mng-column-filter-1 {
16
+ &.mng-column-filter-number {
18
17
  min-width: 165px;
19
18
  }
20
19
  // date
21
- &.mng-column-filter-3 {
20
+ &.mng-column-filter-date {
22
21
  min-width: 170px;
23
22
  }
24
23
  // boolean
25
- &.mng-column-filter-2 {
24
+ &.mng-column-filter-boolean {
26
25
  min-width: 80px;
27
26
  }
28
27
  // lookup, lookup enum
29
- &.mng-column-filter-4,
30
- &.mng-column-filter-5 {
28
+ &.mng-column-filter-lookup,
29
+ &.mng-column-filter-lookupenum {
31
30
  min-width: 180px;
32
31
  }
33
32
 
33
+ .mng-column-filter-string-input {
34
+ width: 100%;
35
+ }
36
+
37
+ .mng-column-filter-number-input {
38
+ width: 100%;
39
+ }
40
+
34
41
  &:hover {
35
42
  mng-table-column-value .help-buttons {
36
43
  display: block;
@@ -52,10 +59,17 @@
52
59
  }
53
60
  }
54
61
 
62
+ .p-datatable-thead > tr > th {
63
+ &.column-custom-last {
64
+ padding-top: 0.1rem;
65
+ padding-bottom: 0.1rem;
66
+ }
67
+ }
68
+
55
69
  .p-datatable-tbody > tr > td {
56
70
  position: relative;
57
71
 
58
- &.column-action {
72
+ &.column-custom-last {
59
73
  padding-top: 0.1rem;
60
74
  padding-bottom: 0.1rem;
61
75
  }
@@ -77,14 +91,14 @@
77
91
  //}
78
92
 
79
93
  &.p-datatable-lg .p-datatable-tbody > tr > td {
80
- &.column-action {
94
+ &.column-custom-last {
81
95
  padding-top: 0.15rem;
82
96
  padding-bottom: 0.15rem;
83
97
  }
84
98
  }
85
99
 
86
100
  &.p-datatable-sm .p-datatable-tbody > tr > td {
87
- &.column-action {
101
+ &.column-custom-last {
88
102
  padding-top: 0.05rem;
89
103
  padding-bottom: 0.05rem;
90
104
  }
@@ -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
+ }
@@ -10,27 +10,35 @@
10
10
  .p-datatable-thead > tr > th,
11
11
  .p-datatable-tbody > tr > td {
12
12
  // string
13
- &.mng-column-filter-0 {
13
+ &.mng-column-filter-string {
14
14
  min-width: 135px;
15
15
  }
16
16
  // number
17
- &.mng-column-filter-1 {
17
+ &.mng-column-filter-number {
18
18
  min-width: 165px;
19
19
  }
20
20
  // date
21
- &.mng-column-filter-3 {
21
+ &.mng-column-filter-date {
22
22
  min-width: 170px;
23
23
  }
24
24
  // boolean
25
- &.mng-column-filter-2 {
25
+ &.mng-column-filter-boolean {
26
26
  min-width: 80px;
27
27
  }
28
28
  // lookup, lookup enum
29
- &.mng-column-filter-4,
30
- &.mng-column-filter-5 {
29
+ &.mng-column-filter-lookup,
30
+ &.mng-column-filter-lookupenum {
31
31
  min-width: 180px;
32
32
  }
33
33
 
34
+ .mng-column-filter-string-input {
35
+ width: 100%;
36
+ }
37
+
38
+ .mng-column-filter-number-input {
39
+ width: 100%;
40
+ }
41
+
34
42
  &:hover {
35
43
  mng-table-column-value .help-buttons {
36
44
  display: block;
@@ -52,10 +60,17 @@
52
60
  }
53
61
  }
54
62
 
63
+ .p-datatable-thead > tr > th {
64
+ &.column-custom-last {
65
+ padding-top: 0.1rem;
66
+ padding-bottom: 0.1rem;
67
+ }
68
+ }
69
+
55
70
  .p-datatable-tbody > tr > td {
56
71
  position: relative;
57
72
 
58
- &.column-action {
73
+ &.column-custom-last {
59
74
  padding-top: 0.1rem;
60
75
  padding-bottom: 0.1rem;
61
76
  }
@@ -77,14 +92,14 @@
77
92
  //}
78
93
 
79
94
  &.p-datatable-lg .p-datatable-tbody > tr > td {
80
- &.column-action {
95
+ &.column-custom-last {
81
96
  padding-top: 0.15rem;
82
97
  padding-bottom: 0.15rem;
83
98
  }
84
99
  }
85
100
 
86
101
  &.p-datatable-sm .p-datatable-tbody > tr > td {
87
- &.column-action {
102
+ &.column-custom-last {
88
103
  padding-top: 0.05rem;
89
104
  padding-bottom: 0.05rem;
90
105
  }
@@ -1,17 +1,29 @@
1
+ $blue: #2196f3 !default;
2
+ $green: #4caf50 !default;
3
+ $yellow: #fbc02d !default;
4
+ $cyan: #00bcd4 !default;
5
+ $pink: #e91e63 !default;
6
+ $indigo: #3f51b5 !default;
7
+ $teal: #009688 !default;
8
+ $orange: #f57c00 !default;
9
+ $bluegray: #607d8b !default;
10
+ $purple: #9c27b0 !default;
11
+ $red: #ff3d32 !default;
12
+
1
13
  $colors: (
2
- 'blue': #2196f3,
3
- 'green': #4caf50,
4
- 'yellow': #fbc02d,
5
- 'cyan': #00bcd4,
6
- 'pink': #e91e63,
7
- 'indigo': #3f51b5,
8
- 'teal': #009688,
9
- 'orange': #f57c00,
10
- 'bluegray': #607d8b,
11
- 'purple': #9c27b0,
12
- 'red': #ff3d32,
14
+ 'blue': $blue,
15
+ 'green': $green,
16
+ 'yellow': $yellow,
17
+ 'cyan': $cyan,
18
+ 'pink': $pink,
19
+ 'indigo': $indigo,
20
+ 'teal': $teal,
21
+ 'orange': $orange,
22
+ 'bluegray': $bluegray,
23
+ 'purple': $purple,
24
+ 'red': $red,
13
25
  'primary': $primaryColor
14
- );
26
+ ) !default;
15
27
 
16
28
  //shades
17
29
  $shade000: #ffffff !default; //text color
@@ -1,12 +1,12 @@
1
- $primaryColor: #0f8bfd;
1
+ $primaryColor: #0f8bfd !default;
2
2
  $primaryLightColor: scale-color($primaryColor, $lightness: 60%) !default;
3
3
  $primaryDarkColor: scale-color($primaryColor, $lightness: -10%) !default;
4
4
  $primaryDarkerColor: scale-color($primaryColor, $lightness: -20%) !default;
5
- $primaryTextColor: #ffffff;
5
+ $primaryTextColor: #ffffff !default;
6
6
  $primary500: #0f8bfd !default;
7
7
 
8
- $highlightBg: $primaryColor;
9
- $highlightTextColor: $primaryTextColor;
8
+ $highlightBg: $primaryColor !default;
9
+ $highlightTextColor: $primaryTextColor !default;
10
10
 
11
11
  @import '../_variables';
12
12
  @import '../../theme-base/_components';