@mediusinc/mng-commons 4.1.0 → 5.0.0-rc.0-c31d5206

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 (251) hide show
  1. package/assets/i18n/en.json +13 -66
  2. package/assets/i18n/sl.json +12 -67
  3. package/data-api/README.md +3 -0
  4. package/data-api/class-dto/README.md +3 -0
  5. package/data-api/class-dto/helpers/tableview-crud-create.d.ts +40 -0
  6. package/data-api/class-dto/index.d.ts +7 -0
  7. package/data-api/class-dto/models/query-result.model.d.ts +13 -0
  8. package/data-api/class-dto/obsolete/README.md +3 -0
  9. package/data-api/class-dto/obsolete/helpers/query-param-convert.d.ts +23 -0
  10. package/data-api/class-dto/obsolete/helpers/tableview-crud-create.d.ts +22 -0
  11. package/data-api/class-dto/obsolete/index.d.ts +14 -0
  12. package/data-api/class-dto/obsolete/models/builders/query-param.builder.d.ts +36 -0
  13. package/{lib/api → data-api/class-dto/obsolete}/models/filter-param.model.d.ts +1 -1
  14. package/{lib/api → data-api/class-dto/obsolete}/models/query-param.model.d.ts +1 -1
  15. package/{lib/api → data-api/class-dto/obsolete}/models/query-result.model.d.ts +1 -1
  16. package/data-api/class-dto/obsolete/provide.d.ts +9 -0
  17. package/data-api/class-dto/obsolete/services/api.abstract.service.d.ts +36 -0
  18. package/{lib/api → data-api/class-dto/obsolete}/services/crud-api.abstract.service.d.ts +20 -5
  19. package/data-api/class-dto/obsolete/services/get-all-api.abstract.service.d.ts +30 -0
  20. package/data-api/class-dto/obsolete/tableview/tableview-crud.data-provider.d.ts +28 -0
  21. package/data-api/class-dto/obsolete/utils/query-param-map.util.d.ts +22 -0
  22. package/{lib/api/utils/object-serializer.util.d.ts → data-api/class-dto/serder/object-serializer.d.ts} +1 -1
  23. package/{lib/api → data-api/class-dto}/services/api.abstract.service.d.ts +2 -4
  24. package/data-api/class-dto/services/crud-api.abstract.service.d.ts +25 -0
  25. package/data-api/class-dto/services/get-all-api.abstract.service.d.ts +14 -0
  26. package/data-api/class-dto/tableview/tableview-crud.data-provider.d.ts +17 -0
  27. package/data-api/helpers/get-all-params.d.ts +69 -0
  28. package/data-api/helpers/tableview-get-all-params-create.d.ts +14 -0
  29. package/data-api/index.d.ts +5 -0
  30. package/data-api/models/request-params.model.d.ts +61 -0
  31. package/data-api/rxjs/map-to-data-list.operator.d.ts +9 -0
  32. package/data-api/types/extract-get-all-params.type.d.ts +14 -0
  33. package/esm2022/data-api/class-dto/helpers/tableview-crud-create.mjs +40 -0
  34. package/esm2022/data-api/class-dto/index.mjs +13 -0
  35. package/esm2022/data-api/class-dto/mediusinc-mng-commons-data-api-class-dto.mjs +5 -0
  36. package/esm2022/data-api/class-dto/models/query-result.model.mjs +24 -0
  37. package/esm2022/data-api/class-dto/obsolete/helpers/query-param-convert.mjs +103 -0
  38. package/esm2022/data-api/class-dto/obsolete/helpers/tableview-crud-create.mjs +21 -0
  39. package/esm2022/data-api/class-dto/obsolete/index.mjs +21 -0
  40. package/esm2022/data-api/class-dto/obsolete/mediusinc-mng-commons-data-api-class-dto-obsolete.mjs +5 -0
  41. package/esm2022/data-api/class-dto/obsolete/models/builders/query-param.builder.mjs +83 -0
  42. package/esm2022/data-api/class-dto/obsolete/models/filter-match-type.model.mjs +27 -0
  43. package/esm2022/data-api/class-dto/obsolete/models/filter-param.model.mjs +33 -0
  44. package/esm2022/data-api/class-dto/obsolete/models/query-mode.model.mjs +18 -0
  45. package/esm2022/data-api/class-dto/obsolete/models/query-param.model.mjs +68 -0
  46. package/esm2022/data-api/class-dto/obsolete/models/query-result.model.mjs +24 -0
  47. package/esm2022/data-api/class-dto/obsolete/provide.mjs +40 -0
  48. package/esm2022/data-api/class-dto/obsolete/services/api.abstract.service.mjs +70 -0
  49. package/esm2022/data-api/class-dto/obsolete/services/crud-api.abstract.service.mjs +83 -0
  50. package/esm2022/data-api/class-dto/obsolete/services/get-all-api.abstract.service.mjs +38 -0
  51. package/esm2022/data-api/class-dto/obsolete/tableview/tableview-crud.data-provider.mjs +51 -0
  52. package/esm2022/data-api/class-dto/obsolete/utils/query-param-map.util.mjs +57 -0
  53. package/esm2022/data-api/class-dto/serder/object-serializer.mjs +184 -0
  54. package/esm2022/data-api/class-dto/services/api.abstract.service.mjs +55 -0
  55. package/esm2022/data-api/class-dto/services/crud-api.abstract.service.mjs +82 -0
  56. package/esm2022/data-api/class-dto/services/get-all-api.abstract.service.mjs +49 -0
  57. package/esm2022/data-api/class-dto/tableview/tableview-crud.data-provider.mjs +49 -0
  58. package/esm2022/data-api/helpers/get-all-params.mjs +180 -0
  59. package/esm2022/data-api/helpers/tableview-get-all-params-create.mjs +18 -0
  60. package/esm2022/data-api/index.mjs +10 -0
  61. package/esm2022/data-api/mediusinc-mng-commons-data-api.mjs +5 -0
  62. package/esm2022/data-api/models/request-params.model.mjs +2 -0
  63. package/esm2022/data-api/rxjs/map-to-data-list.operator.mjs +19 -0
  64. package/esm2022/data-api/types/extract-get-all-params.type.mjs +2 -0
  65. package/esm2022/index.mjs +3 -6
  66. package/esm2022/lib/components/action/action.component.mjs +4 -5
  67. package/esm2022/lib/components/action/editor/injector-context/action-editor-injector-context.component.mjs +2 -2
  68. package/esm2022/lib/components/action/models/action-execution.model.mjs +5 -4
  69. package/esm2022/lib/components/action/route/action-route.component.mjs +1 -2
  70. package/esm2022/lib/components/action/table/action-table.component.mjs +4 -6
  71. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +29 -17
  72. package/esm2022/lib/components/form/dropdown/dropdown.component.mjs +3 -7
  73. package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +20 -18
  74. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +2 -2
  75. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +23 -12
  76. package/esm2022/lib/components/table/column-filter-full/column-filter-full.component.mjs +162 -33
  77. package/esm2022/lib/components/table/column-value/column-value.component.mjs +3 -3
  78. package/esm2022/lib/components/table/models/table.event.mjs +1 -1
  79. package/esm2022/lib/components/table/models/table.interface.mjs +1 -1
  80. package/esm2022/lib/components/table/table-column-filter-class/table-column-filter-class.pipe.mjs +4 -4
  81. package/esm2022/lib/components/table/table.component.mjs +117 -191
  82. package/esm2022/lib/components/tableview/actions/tableview-default-actions.mjs +215 -0
  83. package/esm2022/lib/components/tableview/builders/tableview-builder.mjs +162 -0
  84. package/esm2022/lib/components/tableview/helpers/tableview-create.mjs +24 -0
  85. package/esm2022/lib/components/tableview/index.mjs +5 -2
  86. package/esm2022/lib/components/tableview/models/tableview.model.mjs +2 -0
  87. package/esm2022/lib/components/tableview/route/tableview-route.component.mjs +7 -39
  88. package/esm2022/lib/components/tableview/tableview.component.mjs +4 -4
  89. package/esm2022/lib/data-providers/editor.data-provider.mjs +13 -13
  90. package/esm2022/lib/data-providers/index.mjs +1 -2
  91. package/esm2022/lib/data-providers/lookup.data-provider.mjs +1 -1
  92. package/esm2022/lib/data-providers/table.data-provider.mjs +4 -5
  93. package/esm2022/lib/data-providers/tableview.data-provider.mjs +1 -1
  94. package/esm2022/lib/descriptors/action/action-confirmation.descriptor.mjs +1 -1
  95. package/esm2022/lib/descriptors/action/action-editor.descriptor.mjs +10 -6
  96. package/esm2022/lib/descriptors/action/action.descriptor.mjs +2 -3
  97. package/esm2022/lib/descriptors/editor/editor.descriptor.mjs +13 -17
  98. package/esm2022/lib/descriptors/editor/field-lookup.descriptor.mjs +12 -17
  99. package/esm2022/lib/descriptors/editor/field.descriptor.mjs +5 -8
  100. package/esm2022/lib/descriptors/editor/internal/editor-fields.model.mjs +1 -1
  101. package/esm2022/lib/descriptors/filter/filter-lookup.descriptor.mjs +28 -52
  102. package/esm2022/lib/descriptors/filter/filter.descriptor.mjs +40 -23
  103. package/esm2022/lib/descriptors/model/enum.descriptor.mjs +31 -0
  104. package/esm2022/lib/descriptors/model/index.mjs +3 -1
  105. package/esm2022/lib/descriptors/model/model.descriptor.mjs +10 -1
  106. package/esm2022/lib/descriptors/model/type.descriptor.mjs +11 -0
  107. package/esm2022/lib/descriptors/table/column.descriptor.mjs +12 -107
  108. package/esm2022/lib/descriptors/table/index.mjs +2 -1
  109. package/esm2022/lib/descriptors/table/internal/table-columns.model.mjs +1 -1
  110. package/esm2022/lib/descriptors/table/internal/table.model.mjs +1 -1
  111. package/esm2022/lib/descriptors/table/sort.descriptor.mjs +45 -0
  112. package/esm2022/lib/descriptors/table/table.descriptor.mjs +208 -57
  113. package/esm2022/lib/descriptors/tableview/internal/tableview.model.mjs +1 -1
  114. package/esm2022/lib/descriptors/tableview/tableview.descriptor.mjs +114 -17
  115. package/esm2022/lib/descriptors/types/filter.type.mjs +1 -19
  116. package/esm2022/lib/descriptors/types/table.type.mjs +1 -5
  117. package/esm2022/lib/error/error.handler.mjs +1 -1
  118. package/esm2022/lib/helpers/data-provider-executors.mjs +80 -0
  119. package/esm2022/lib/models/data-list.model.mjs +2 -0
  120. package/esm2022/lib/models/filter-match.model.mjs +105 -0
  121. package/esm2022/lib/models/index.mjs +3 -1
  122. package/esm2022/lib/models/view-container.model.mjs +1 -1
  123. package/esm2022/lib/pipes/enum.pipe.mjs +6 -6
  124. package/esm2022/lib/provide.mjs +101 -0
  125. package/esm2022/lib/registry/type.registry.mjs +3 -10
  126. package/esm2022/lib/router/models/router.model.mjs +1 -1
  127. package/esm2022/lib/router/tableview-route-builder.mjs +1 -1
  128. package/esm2022/lib/services/action/action-executor.service.mjs +54 -32
  129. package/esm2022/lib/services/commons.service.mjs +1 -37
  130. package/esm2022/lib/services/data-provider-executor.service.mjs +52 -0
  131. package/esm2022/lib/services/index.mjs +2 -1
  132. package/esm2022/lib/services/view/view-container.service.mjs +1 -1
  133. package/esm2022/lib/types/action-descriptor.types.mjs +1 -1
  134. package/esm2022/lib/types/type.model.mjs +1 -1
  135. package/esm2022/lib/utils/data-list-params.util.mjs +416 -0
  136. package/esm2022/lib/utils/date.util.mjs +8 -2
  137. package/esm2022/lib/utils/enum.util.mjs +2 -1
  138. package/esm2022/lib/utils/error.util.mjs +3 -3
  139. package/esm2022/lib/utils/export.util.mjs +1 -1
  140. package/esm2022/lib/utils/index.mjs +2 -2
  141. package/esm2022/lib/utils/route.util.mjs +1 -2
  142. package/fesm2022/mediusinc-mng-commons-data-api-class-dto-obsolete.mjs +698 -0
  143. package/fesm2022/mediusinc-mng-commons-data-api-class-dto-obsolete.mjs.map +1 -0
  144. package/fesm2022/mediusinc-mng-commons-data-api-class-dto.mjs +480 -0
  145. package/fesm2022/mediusinc-mng-commons-data-api-class-dto.mjs.map +1 -0
  146. package/fesm2022/mediusinc-mng-commons-data-api.mjs +224 -0
  147. package/fesm2022/mediusinc-mng-commons-data-api.mjs.map +1 -0
  148. package/fesm2022/mediusinc-mng-commons.mjs +2634 -2549
  149. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  150. package/index.d.ts +2 -4
  151. package/lib/components/action/action.component.d.ts +13 -13
  152. package/lib/components/action/models/action-execution.model.d.ts +47 -46
  153. package/lib/components/action/table/action-table.component.d.ts +15 -16
  154. package/lib/components/form/autocomplete/autocomplete.component.d.ts +1 -1
  155. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +3 -5
  156. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +10 -10
  157. package/lib/components/table/column-filter-full/column-filter-full.component.d.ts +25 -9
  158. package/lib/components/table/models/table.event.d.ts +2 -2
  159. package/lib/components/table/models/table.interface.d.ts +4 -1
  160. package/lib/components/table/table-column-filter-class/table-column-filter-class.pipe.d.ts +2 -2
  161. package/lib/components/table/table.component.d.ts +19 -18
  162. package/lib/components/tableview/actions/tableview-default-actions.d.ts +36 -0
  163. package/lib/components/tableview/builders/tableview-builder.d.ts +115 -0
  164. package/lib/components/tableview/helpers/tableview-create.d.ts +16 -0
  165. package/lib/components/tableview/index.d.ts +4 -1
  166. package/lib/components/tableview/models/tableview.model.d.ts +8 -0
  167. package/lib/components/tableview/route/tableview-route.component.d.ts +5 -14
  168. package/lib/components/tableview/tableview.component.d.ts +12 -12
  169. package/lib/data-providers/editor.data-provider.d.ts +12 -12
  170. package/lib/data-providers/index.d.ts +0 -1
  171. package/lib/data-providers/lookup.data-provider.d.ts +2 -2
  172. package/lib/data-providers/table.data-provider.d.ts +25 -25
  173. package/lib/data-providers/tableview.data-provider.d.ts +18 -18
  174. package/lib/descriptors/action/action-confirmation.descriptor.d.ts +1 -1
  175. package/lib/descriptors/action/action-editor.descriptor.d.ts +20 -17
  176. package/lib/descriptors/editor/editor.descriptor.d.ts +8 -12
  177. package/lib/descriptors/editor/field-base.descriptor.d.ts +3 -3
  178. package/lib/descriptors/editor/field-lookup.descriptor.d.ts +11 -11
  179. package/lib/descriptors/editor/field-many.descriptor.d.ts +4 -4
  180. package/lib/descriptors/editor/field.descriptor.d.ts +2 -2
  181. package/lib/descriptors/editor/internal/editor-fields.model.d.ts +6 -5
  182. package/lib/descriptors/filter/filter-lookup.descriptor.d.ts +15 -14
  183. package/lib/descriptors/filter/filter.descriptor.d.ts +17 -18
  184. package/lib/descriptors/model/enum.descriptor.d.ts +14 -0
  185. package/lib/descriptors/model/index.d.ts +2 -0
  186. package/lib/descriptors/model/model.descriptor.d.ts +9 -0
  187. package/lib/descriptors/model/type.descriptor.d.ts +5 -0
  188. package/lib/descriptors/table/column.descriptor.d.ts +10 -24
  189. package/lib/descriptors/table/index.d.ts +1 -0
  190. package/lib/descriptors/table/internal/table-columns.model.d.ts +36 -5
  191. package/lib/descriptors/table/internal/table.model.d.ts +5 -2
  192. package/lib/descriptors/table/sort.descriptor.d.ts +17 -0
  193. package/lib/descriptors/table/table.descriptor.d.ts +57 -33
  194. package/lib/descriptors/tableview/internal/tableview.model.d.ts +3 -3
  195. package/lib/descriptors/tableview/tableview.descriptor.d.ts +49 -19
  196. package/lib/descriptors/types/filter.type.d.ts +0 -17
  197. package/lib/descriptors/types/table.type.d.ts +0 -3
  198. package/lib/error/error.handler.d.ts +1 -1
  199. package/lib/helpers/data-provider-executors.d.ts +19 -0
  200. package/lib/models/data-list.model.d.ts +27 -0
  201. package/lib/models/filter-match.model.d.ts +36 -0
  202. package/lib/models/index.d.ts +2 -0
  203. package/lib/models/view-container.model.d.ts +2 -2
  204. package/lib/pipes/enum.pipe.d.ts +2 -2
  205. package/lib/provide.d.ts +10 -0
  206. package/lib/router/models/router.model.d.ts +1 -1
  207. package/lib/router/tableview-route-builder.d.ts +1 -2
  208. package/lib/services/action/action-executor.service.d.ts +18 -16
  209. package/lib/services/data-provider-executor.service.d.ts +60 -0
  210. package/lib/services/index.d.ts +1 -0
  211. package/lib/services/view/view-container.service.d.ts +11 -11
  212. package/lib/types/action-descriptor.types.d.ts +2 -2
  213. package/lib/types/type.model.d.ts +1 -3
  214. package/lib/utils/data-list-params.util.d.ts +84 -0
  215. package/lib/utils/date.util.d.ts +3 -1
  216. package/lib/utils/enum.util.d.ts +4 -3
  217. package/lib/utils/export.util.d.ts +1 -1
  218. package/lib/utils/index.d.ts +1 -1
  219. package/openapi/angular/modelEnum.mustache +0 -3
  220. package/package.json +20 -2
  221. package/esm2022/lib/api/models/builders/query-param.builder.mjs +0 -59
  222. package/esm2022/lib/api/models/filter-match-type.model.mjs +0 -27
  223. package/esm2022/lib/api/models/filter-param.model.mjs +0 -33
  224. package/esm2022/lib/api/models/index.mjs +0 -7
  225. package/esm2022/lib/api/models/query-mode.model.mjs +0 -18
  226. package/esm2022/lib/api/models/query-param.model.mjs +0 -68
  227. package/esm2022/lib/api/models/query-result.model.mjs +0 -35
  228. package/esm2022/lib/api/services/api.abstract.service.mjs +0 -58
  229. package/esm2022/lib/api/services/crud-api.abstract.service.mjs +0 -75
  230. package/esm2022/lib/api/services/get-all-api.abstract.service.mjs +0 -30
  231. package/esm2022/lib/api/services/index.mjs +0 -4
  232. package/esm2022/lib/api/utils/index.mjs +0 -3
  233. package/esm2022/lib/api/utils/medius-rest.util.mjs +0 -293
  234. package/esm2022/lib/api/utils/object-serializer.util.mjs +0 -185
  235. package/esm2022/lib/components/tableview/route/tableview-route.abstract.component.mjs +0 -158
  236. package/esm2022/lib/data-providers/tableview-crud.data-provider.mjs +0 -32
  237. package/esm2022/lib/provide-commons.mjs +0 -88
  238. package/esm2022/lib/utils/action-data-provider.util.mjs +0 -171
  239. package/lib/api/models/builders/query-param.builder.d.ts +0 -13
  240. package/lib/api/models/index.d.ts +0 -6
  241. package/lib/api/services/get-all-api.abstract.service.d.ts +0 -14
  242. package/lib/api/services/index.d.ts +0 -3
  243. package/lib/api/utils/index.d.ts +0 -2
  244. package/lib/api/utils/medius-rest.util.d.ts +0 -32
  245. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +0 -35
  246. package/lib/data-providers/tableview-crud.data-provider.d.ts +0 -12
  247. package/lib/provide-commons.d.ts +0 -3
  248. package/lib/utils/action-data-provider.util.d.ts +0 -35
  249. package/templates/tableview-route.component.html +0 -5
  250. /package/{lib/api → data-api/class-dto/obsolete}/models/filter-match-type.model.d.ts +0 -0
  251. /package/{lib/api → data-api/class-dto/obsolete}/models/query-mode.model.d.ts +0 -0
@@ -10,6 +10,7 @@ import { IActionEditorComponent, IMngError } from '../../models';
10
10
  import { MngParametrizePipe } from '../../pipes';
11
11
  import { MngActionErrorMapperService } from '../action-error-mapper.service';
12
12
  import { MngCommonsService } from '../commons.service';
13
+ import { DataProviderExecutor } from '../data-provider-executor.service';
13
14
  import { MngLoggerService } from '../logger.service';
14
15
  import { MngNavigationService } from '../navigation.service';
15
16
  import { ViewContainer } from '../view';
@@ -19,6 +20,7 @@ export declare abstract class MngActionExecutorService {
19
20
  protected readonly dialogService: DialogService;
20
21
  protected readonly translate: TranslateService;
21
22
  protected readonly mngCommons: MngCommonsService;
23
+ protected readonly dataProviderExecutor: DataProviderExecutor;
22
24
  protected readonly navigationService: MngNavigationService;
23
25
  protected readonly errorMapper: MngActionErrorMapperService;
24
26
  protected readonly parametrize: MngParametrizePipe;
@@ -35,21 +37,21 @@ export declare abstract class MngActionExecutorService {
35
37
  * @param parameters Action parameters.
36
38
  * @param dataProvider Data provider.
37
39
  */
38
- prepareActionContextValidation<T, S>(action: ActionDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>): ActionContextValidation<T, S>;
40
+ prepareActionContextValidation<Item, Service>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<Item>, dataProvider?: IDataProvider<Item, Service>): ActionContextValidation<Item, Service>;
39
41
  /**
40
42
  * Runs action context by submitting execution results/errors to context, watching over instance results/errors, displaying notifications,
41
43
  * running next/error action and triggering dismiss of action. Confirmation is also processed here.
42
44
  *
43
45
  * @param ctx Action context to run.
44
46
  */
45
- run<T, S>(ctx: ActionContext<T, S>): void;
47
+ run<Item, Service = undefined>(ctx: ActionContext<Item, Service>): void;
46
48
  /**
47
49
  * Runs action context by submitting execution results/errors to context, watching over instance results/errors, displaying notifications,
48
50
  * running next/error action and triggering dismiss of action. Confirmation
49
51
  *
50
52
  * @param ctx Action context to run.
51
53
  *
52
- * @return Action context for submit (=run) function.
54
+ * @returns Action context for submit (=run) function.
53
55
  */
54
56
  private runWithoutConfirmation;
55
57
  /**
@@ -61,9 +63,9 @@ export declare abstract class MngActionExecutorService {
61
63
  * @param instance Optional existing action instance (if non provided, new will be created).
62
64
  * @param previousActionInstance Optional previous action instance to link in next instance.
63
65
  *
64
- * @return Action context for fetch function.
66
+ * @returns Action context for fetch function.
65
67
  */
66
- prepareContextForEditorFetch<T, S>(action: ActionEditorDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<T, S>;
68
+ prepareContextForEditorFetch<Item, Service>(action: ActionEditorDescriptorInst<Item>, parameters: ActionParameters<Item>, dataProvider?: IDataProvider<Item, Service>, instance?: ActionInstance<Item, Service>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<Item, Service>;
67
69
  /**
68
70
  * Runs editor action's submit (=main run) function by creating new action context for action instance.
69
71
  *
@@ -73,9 +75,9 @@ export declare abstract class MngActionExecutorService {
73
75
  * @param instance Optional existing action instance (if non provided, new will be created).
74
76
  * @param previousActionInstance Optional previous action instance to link in next instance.
75
77
  *
76
- * @return Action context for submit (=run) function.
78
+ * @returns Action context for submit (=run) function.
77
79
  */
78
- prepareContextForEditorSubmit<T, S>(action: ActionEditorDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<T, S>;
80
+ prepareContextForEditorSubmit<Item, Service>(action: ActionEditorDescriptorInst<Item>, parameters: ActionParameters<Item>, dataProvider?: IDataProvider<Item, Service>, instance?: ActionInstance<Item, Service>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<Item, Service>;
79
81
  /**
80
82
  * Prepares action exec context for action of type editor.
81
83
  *
@@ -95,7 +97,7 @@ export declare abstract class MngActionExecutorService {
95
97
  * @param instance Optional existing action instance (if non provided, new will be created).
96
98
  * @param previousActionInstance Optional previous action instance to link in next instance.
97
99
  *
98
- * @return Action context for run function.
100
+ * @returns Action context for run function.
99
101
  */
100
102
  private prepareContext;
101
103
  /**
@@ -107,9 +109,9 @@ export declare abstract class MngActionExecutorService {
107
109
  * @param previousActionInstance Optional previous action instance to link in next instance.
108
110
  * @param runContext Marks if context should be run.
109
111
  *
110
- * @return Action instance - if non provided in parameters, the newly created will be returned.
112
+ * @returns Action instance - if non provided in parameters, the newly created will be returned.
111
113
  */
112
- activateAction<T, S>(action: ActionDescriptorInst<T>, parameters: ActionParameters<T>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<any, any>, runContext?: boolean): ActionInstance<T, S>;
114
+ activateAction<Item, Service = undefined>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<Item>, instance?: ActionInstance<Item, Service>, previousActionInstance?: ActionInstance<any, any>, runContext?: boolean): ActionInstance<Item, Service>;
113
115
  /**
114
116
  * To be called when action editor is initialized to correctly activate action.
115
117
  * @param action Action descriptor.
@@ -138,7 +140,7 @@ export declare abstract class MngActionExecutorService {
138
140
  * @param instance Action instance.
139
141
  * @param onDestroy Marks if finish is called on component destroy lifecycle hook.
140
142
  */
141
- finishAction<T, S>(instance: ActionInstance<T, S>, onDestroy?: boolean): void;
143
+ finishAction<Item, Service = undefined>(instance: ActionInstance<Item, Service>, onDestroy?: boolean): void;
142
144
  /**
143
145
  * Triggers action with parameters.
144
146
  *
@@ -146,20 +148,20 @@ export declare abstract class MngActionExecutorService {
146
148
  * @param parameters Action parameters for action execution to construct new route.
147
149
  * @param runContext Marks if context should be run.
148
150
  *
149
- * @return Action instance - if non provided in parameters, the newly created will be returned.
151
+ * @returns Action instance - if non provided in parameters, the newly created will be returned.
150
152
  */
151
- triggerAction<T, S>(action: ActionDescriptorInst<T>, parameters: ActionParameters<T>, runContext?: boolean): ActionInstance<T, S>;
153
+ triggerAction<Item, Service = undefined>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<Item>, runContext?: boolean): ActionInstance<Item, Service>;
152
154
  /**
153
155
  * Deactivates on route triggered action by trying to reroute back to location where action was triggered.
154
156
  * @param instance Action instance.
155
157
  */
156
- finishActionRouteUntrigger<T, S>(instance: ActionInstance<T, S>): void;
158
+ finishActionRouteUntrigger<Item, Service = undefined>(instance: ActionInstance<Item, Service>): void;
157
159
  /**
158
160
  * Transform error of any type to mng error by using error mapper that could be provided by final project.
159
161
  * @param error error of any type.
160
162
  * @param context Action context.
161
163
  *
162
- * @return mapped MngError.
164
+ * @returns mapped MngError.
163
165
  */
164
166
  toMngActionError(error?: any, context?: ActionContext<any, any>): IMngError;
165
167
  /**
@@ -171,5 +173,5 @@ export declare abstract class MngActionExecutorService {
171
173
  * @param skipInitializationFromViewContainer If initialization of instance from view container should be skipped.
172
174
  * @private
173
175
  */
174
- protected getOrCreateInstance<T, S>(instance: ActionInstance<T, S> | undefined, action?: ActionDescriptorInst<T>, parameters?: ActionParameters<T>, instanceInitialStatus?: ActionInstanceStateEnum, skipInitializationFromViewContainer?: boolean): ActionInstance<T, S>;
176
+ protected getOrCreateInstance<Item, Service = undefined>(instance: ActionInstance<Item, Service> | undefined, action?: ActionDescriptorInst<Item, Service>, parameters?: ActionParameters<Item>, instanceInitialStatus?: ActionInstanceStateEnum, skipInitializationFromViewContainer?: boolean): ActionInstance<Item, Service>;
175
177
  }
@@ -0,0 +1,60 @@
1
+ import { Injector } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ActionContext } from '../components/action/models';
4
+ import { IDataProvider } from '../data-providers';
5
+ import { DataListResult } from '../models';
6
+ import { Nullable } from '../types';
7
+ import * as i0 from "@angular/core";
8
+ export declare abstract class DataProviderExecutor {
9
+ runGetAllOrFail<Item, Service>(ctx: ActionContext<Item, Service>): Observable<DataListResult<Item>>;
10
+ abstract runGetAll<Item, Service>(ctx: ActionContext<Item, Service>): Observable<DataListResult<Item>> | null;
11
+ abstract runGetAll<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<DataListResult<Item>>): Observable<DataListResult<Item>>;
12
+ abstract runGetAll<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<DataListResult<Item>> | null;
13
+ abstract runGetAll<Item, Service>(ctx: ActionContext<Item, Service>, fallback?: Observable<DataListResult<Item>>): Observable<DataListResult<Item>> | null;
14
+ runFetchOrFail<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item>;
15
+ abstract runFetch<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item> | null;
16
+ abstract runFetch<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
17
+ abstract runFetch<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
18
+ abstract runFetch<Item, Service>(ctx: ActionContext<Item, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
19
+ runCreateOrFail<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item>;
20
+ abstract runCreate<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item> | null;
21
+ abstract runCreate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
22
+ abstract runCreate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
23
+ abstract runCreate<Item, Service>(ctx: ActionContext<Item, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
24
+ runUpdateOrFail<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item>;
25
+ abstract runUpdate<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item> | null;
26
+ abstract runUpdate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
27
+ abstract runUpdate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
28
+ abstract runUpdate<Item, Service>(ctx: ActionContext<Item, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
29
+ runDeleteOrFail<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item | null>;
30
+ abstract runDelete<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Nullable<Item>> | null;
31
+ abstract runDelete<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
32
+ abstract runDelete<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
33
+ abstract runDelete<Item, Service>(ctx: ActionContext<Item, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
34
+ /**
35
+ * Gets service instance of data provider.
36
+ *
37
+ * @param injector Injector instance
38
+ * @param dataProvider Data provider instance.
39
+ */
40
+ getDataProviderService<Item, Service>(injector: Injector, dataProvider?: IDataProvider<Item, Service>): Service | null;
41
+ }
42
+ export declare class DefaultDataProviderExecutor extends DataProviderExecutor {
43
+ runGetAll<Item, Service>(ctx: ActionContext<Item, Service>): Observable<DataListResult<Item>> | null;
44
+ runGetAll<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<DataListResult<Item>>): Observable<DataListResult<Item>>;
45
+ runGetAll<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<DataListResult<Item>> | null;
46
+ runFetch<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item> | null;
47
+ runFetch<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
48
+ runFetch<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
49
+ runCreate<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item> | null;
50
+ runCreate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
51
+ runCreate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
52
+ runUpdate<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Item> | null;
53
+ runUpdate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
54
+ runUpdate<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
55
+ runDelete<Item, Service>(ctx: ActionContext<Item, Service>): Observable<Nullable<Item>> | null;
56
+ runDelete<Item, Service>(ctx: ActionContext<Item, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
57
+ runDelete<Item, Service>(ctx: ActionContext<Item, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultDataProviderExecutor, never>;
59
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultDataProviderExecutor>;
60
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './action-error-mapper.service';
2
2
  export * from './configuration.service';
3
3
  export * from './commons.service';
4
+ export * from './data-provider-executor.service';
4
5
  export * from './navigation.service';
5
6
  export * from './router.service';
6
7
  export * from './version.service';
@@ -7,25 +7,25 @@ import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Should be used with providers defined within component.
9
9
  */
10
- export declare class ViewContainer<T, S> {
10
+ export declare class ViewContainer<Item, Service = undefined> {
11
11
  private _dataProvider?;
12
12
  private _routeTriggeredActionInstance?;
13
13
  private actions;
14
14
  private _tableReloadSubject;
15
15
  private _editorResetSubject;
16
16
  private _editorCloseSubject;
17
- set dataProvider(dataProvider: IDataProvider<T, S>);
18
- getDataProvider(): IDataProvider<T, S> | undefined;
19
- getActions(): Array<ActionDescriptorInst<T>>;
20
- setActions(actions: Array<ActionDescriptorInst<T>>): void;
17
+ set dataProvider(dataProvider: IDataProvider<Item, Service>);
18
+ getDataProvider(): IDataProvider<Item, Service> | undefined;
19
+ getActions(): Array<ActionDescriptorInst<Item>>;
20
+ setActions(actions: Array<ActionDescriptorInst<Item>>): void;
21
21
  getTableReload$(): Observable<ViewContainerTableReloadEvent>;
22
22
  reloadTable(event?: ViewContainerTableReloadEvent): void;
23
- getEditorReset$(): Observable<ViewContainerEditorResetEvent<T>>;
24
- resetEditor(event?: ViewContainerEditorResetEvent<T> | undefined): void;
25
- getEditorClose$(): Observable<ViewContainerEditorCloseEvent<T>>;
26
- closeEditor(event?: ViewContainerEditorCloseEvent<T>): void;
27
- getRouteTriggeredActionInstance(): ActionInstance<T, S> | undefined;
28
- setRouteTriggeredActionInstance(instance: ActionInstance<T, S>): void;
23
+ getEditorReset$(): Observable<ViewContainerEditorResetEvent<Item>>;
24
+ resetEditor(event?: ViewContainerEditorResetEvent<Item> | undefined): void;
25
+ getEditorClose$(): Observable<ViewContainerEditorCloseEvent<Item>>;
26
+ closeEditor(event?: ViewContainerEditorCloseEvent<Item>): void;
27
+ getRouteTriggeredActionInstance(): ActionInstance<Item, Service> | undefined;
28
+ setRouteTriggeredActionInstance(instance: ActionInstance<Item, Service>): void;
29
29
  unsetRouteTriggeredActionInstance(): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewContainer<any, any>, never>;
31
31
  static ɵprov: i0.ɵɵInjectableDeclaration<ViewContainer<any, any>>;
@@ -1,4 +1,4 @@
1
1
  import { ActionContext, ActionContextValidation } from '../components/action/models';
2
2
  import { ItemOrObservable } from './type.model';
3
- export type ActionRunFnType<T, S = undefined, RT = ItemOrObservable<T | undefined | null>> = (ctx: ActionContext<T, S>) => RT;
4
- export type ActionValidationFnType<T, S = undefined> = (ctx: ActionContextValidation<T, S>) => ItemOrObservable<boolean>;
3
+ export type ActionRunFnType<Item, Service = undefined, Return = ItemOrObservable<Item | undefined | null>> = (ctx: ActionContext<Item, Service>) => Return;
4
+ export type ActionValidationFnType<Item, Service = undefined, Return = ItemOrObservable<boolean>> = (ctx: ActionContextValidation<Item, Service>) => Return;
@@ -1,8 +1,6 @@
1
1
  import { AbstractControl, ValidationErrors } from '@angular/forms';
2
2
  import { FormlyFieldConfig } from '@ngx-formly/core/lib/models/fieldconfig';
3
3
  import { Observable } from 'rxjs';
4
- import { MediusFilterMatchType } from '../api/models';
5
- import { FilterTypeEnum } from '../descriptors/types';
6
4
  export interface ClassType<T> extends Function {
7
5
  new (...args: any[]): T;
8
6
  }
@@ -18,6 +16,7 @@ export type ArrayItemType<T> = NonNullable<T> extends Array<infer U> ? U : T;
18
16
  export interface EnumType<V = EnumConstantType> {
19
17
  [key: string]: V;
20
18
  }
19
+ export type EnumFromProperty<Type, Property extends keyof Type> = Type[Property] extends EnumType | undefined | null ? NonNullable<Type[Property]> : never;
21
20
  export type EnumConstantType = string | number;
22
21
  export type IdType = number | string;
23
22
  export type PrimitiveType = string | boolean | number;
@@ -29,5 +28,4 @@ export type MngFieldAsyncValidator = (control: AbstractControl, field: FormlyFie
29
28
  [id: string]: any;
30
29
  }) => Observable<ValidationErrors | boolean | null>;
31
30
  export type MngFieldValidationMessage = string | ((error: any, field: FormlyFieldConfig) => string | Observable<string>);
32
- export type MatchModeMapType = [string, string, MediusFilterMatchType, FilterTypeEnum | null];
33
31
  export type ItemOrObservable<T> = T | Observable<T>;
@@ -0,0 +1,84 @@
1
+ import { Params } from '@angular/router';
2
+ import { TableLazyLoadEvent } from 'primeng/table';
3
+ import { DataListFilter, DataListParams } from '../models';
4
+ export declare class DataListParamsUtil {
5
+ /**
6
+ * Converts a TableLazyLoadEvent to DataListParams.
7
+ *
8
+ * @param {TableLazyLoadEvent} event - The event containing the data to convert.
9
+ * @return {DataListParams} - The converted DataListParams object.
10
+ */
11
+ static fromPrimeTableLoad(event: TableLazyLoadEvent): DataListParams;
12
+ /**
13
+ * Converts the given parameters to URL query parameters.
14
+ * Sorts are formatted in Medius data API sort query language: `asc:prop1,desc:prop2`, ...
15
+ * Filter keys are "flattened" in the new object, values are formatted in Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
16
+ *
17
+ * @param {DataListParams} params - The parameters to convert.
18
+ * @param {DataListParams|null} defaults - The default parameters used if no matching property in params is available. Defaults to { limit: 25, offset: 0 } if not provided.
19
+ * @returns {Params} - The URL query parameters object.
20
+ */
21
+ static toUrlQueryParams(params: DataListParams<any, any>, defaults?: DataListParams<any, any> | null): Params;
22
+ /**
23
+ * Merges the provided parameters with default values and returns the merged object.
24
+ *
25
+ * @param {DataListParams} params - The parameters to merge with defaults.
26
+ * @param {DataListParams} defaults - The default values to merge with params (optional, default is { limit: 25, offset: 0 }).
27
+ * @returns {DataListParams} - The merged parameters object.
28
+ */
29
+ static mergeWithDefaults<Sorts = any, Filters extends keyof any = any>(params: DataListParams<Sorts, Filters>, defaults?: DataListParams<Sorts, Filters>): DataListParams<Sorts, Filters>;
30
+ /**
31
+ * Converts an object of parameters to a URL query string for sorting.
32
+ * Sorts are formatted in Medius data API sort query language: `asc:prop1,desc:prop2`, ...
33
+ *
34
+ * @param {DataListParams} params - An optional object containing sort parameters.
35
+ * @returns A string representing the URL query or undefined if no sort parameters are provided.
36
+ */
37
+ static sortToUrlQuery(params?: DataListParams<any, any>): string | undefined;
38
+ /**
39
+ * Converts a specific filter parameter (by key) from DataListParams object to a URL query string.
40
+ * Filter keys are "flattened" in the new object, values are formatted in Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
41
+ *
42
+ * @param {DataListParams<any, Filters> | undefined} params - The DataListParams object containing the filters.
43
+ * @param {Filters} key - The key of the filter to convert.
44
+ * @param {boolean} [allowNull=false] - Indicates whether to allow null values in the query string.
45
+ * @return {string | undefined} - The URL query string representing the specified filter, or undefined if the filter is not found.
46
+ */
47
+ static paramsFilterToUrlQuery<Filters extends keyof any = string>(params: DataListParams<any, Filters> | undefined, key: Filters, allowNull?: boolean): string | undefined;
48
+ /**
49
+ * Converts a filter to a URL query string.
50
+ * Filter keys are "flattened" in the new object, values are formatted in Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
51
+ *
52
+ * @param {DataListFilter} paramFilter - The filter object to be converted.
53
+ * @param {boolean} [allowNull=false] - Indicates whether to allow null values in the filter.
54
+ * @returns {string|undefined} - The filter converted to a URL query string, or undefined if no filter is provided or the filter has empty or invalid values.
55
+ * @throws {MngInternalError} - If the filter has invalid values.
56
+ */
57
+ static filterToUrlQuery(paramFilter?: DataListFilter, allowNull?: boolean): string | undefined;
58
+ /**
59
+ * Converts URL query parameters to a DataListParams object.
60
+ * Sorts are formatted from Medius data API sort query language: `asc:prop1,desc:prop2`, ...
61
+ * Filter keys are all keys in Params object that are not matched elsewhere, values are formatted from Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
62
+ *
63
+ * @param {Params} urlParams - The URL query parameters.
64
+ * @return {DataListParams} - The converted DataListParams object.
65
+ */
66
+ static fromUrlQueryParams(urlParams: Params): DataListParams;
67
+ /**
68
+ * Makes a copy of the given DataListParams object.
69
+ *
70
+ * @param {DataListParams<Sorts, Filters>} params - The DataListParams object to be copied.
71
+ * @returns {DataListParams<Sorts, Filters>} - Returns a new copy of the DataListParams object.
72
+ */
73
+ static copy<Sorts = string, Filters extends keyof any = string>(params: DataListParams<Sorts, Filters>): DataListParams<Sorts, Filters>;
74
+ /**
75
+ * Converts a value to a URL query param string representation.
76
+ *
77
+ * @param {unknown} value - The value to be converted.
78
+ * @param {boolean} [allowNull=false] - Indicates whether null values are allowed.
79
+ * @returns {string} The URL parameter representation of the value.
80
+ * @throws {MngInternalError} If an undefined value is passed without allowNull set to true.
81
+ * @throws {MngInternalError} If the value is an object (excluding Date).
82
+ */
83
+ static filterValueToUrlParam(value: unknown, allowNull?: boolean): string;
84
+ }
@@ -14,5 +14,7 @@ export declare class DateUtil {
14
14
  static toIsoString(value: undefined | null | unknown, type?: 'date'): null;
15
15
  static toIsoString(value: undefined | null | unknown, type: 'date-time' | 'dateTime', dateTimeOpts?: toIsoStringDateTimeOptsType): null;
16
16
  static toIsoString(value: unknown, type?: toIsoStringTypeOptType, dateTimeOpts?: toIsoStringDateTimeOptsType): string | null;
17
- static fromPrimeToAngularDateFormat(ngDateFormat: string): string;
17
+ static fromAngularToPrimeDateFormat(ngDateFormat: string): string;
18
+ static fromAngularDateFormatHasTime(ngDateFormat: string): boolean;
19
+ static fromAngularDateFormatHasSeconds(ngDateFormat: string): boolean;
18
20
  }
@@ -31,20 +31,21 @@ export declare class EnumUtil {
31
31
  /**
32
32
  * Returns array of type EnumValue for provided values in enum.
33
33
  * @param enumType Enum object.
34
+ * @param values Enum values (constants).
34
35
  * @param nameAsValue If use name of constant as value (optional, default: false).
35
36
  * @param titlePath Base path for title to use as translation (optional).
36
37
  */
37
- static fromValuesAsEnumValueArray(enumType: EnumType, values: Array<EnumConstantType>, nameAsValue?: boolean, titlePath?: string): EnumValue[];
38
+ static fromValuesAsEnumValueArray<EnumConstant = EnumConstantType>(enumType: EnumType, values: Array<EnumConstant>, nameAsValue?: boolean, titlePath?: string): EnumValue[];
38
39
  /**
39
40
  * Gets constant name for value.
40
41
  * @param enumType Enum object.
41
42
  * @param value Value of enum constant.
42
43
  */
43
- static getConstantName(enumType: EnumType, value: EnumConstantType): string | null;
44
+ static getConstantName<EnumConstant = EnumConstantType>(enumType: EnumType, value: EnumConstant): string | null;
44
45
  /**
45
46
  * Gets constant name for value.
46
47
  * @param enumObj Enum object.
47
48
  * @param value Value of enum constant.
48
49
  */
49
- static getConstantNameFromEnumObject(enumObj: object, value: EnumConstantType): string | null;
50
+ static getConstantNameFromEnumObject<EnumConstant = EnumConstantType>(enumObj: object, value: EnumConstant): string | null;
50
51
  }
@@ -1,5 +1,5 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
2
  import { TableviewDescriptorInst } from '../descriptors/tableview';
3
3
  export declare class ExportUtils {
4
- static prepareDataForExport(pageData: any[], delimiter: string, descriptor: TableviewDescriptorInst<any>, translate: TranslateService): string;
4
+ static prepareDataForExport(pageData: any[], delimiter: string, descriptor: TableviewDescriptorInst<any, any, any>, translate: TranslateService): string;
5
5
  }
@@ -1,4 +1,4 @@
1
- export * from './action-data-provider.util';
1
+ export * from './data-list-params.util';
2
2
  export * from './date.util';
3
3
  export * from './editor-formly.util';
4
4
  export * from './enum.util';
@@ -1,5 +1,3 @@
1
- import {TypeRegistry} from '@mediusinc/mng-commons';
2
-
3
1
  {{#stringEnums}}
4
2
  export enum {{classname}} {
5
3
  {{#allowableValues}}
@@ -9,7 +7,6 @@ export enum {{classname}} {
9
7
  {{/allowableValues}}
10
8
  }
11
9
 
12
- TypeRegistry.get().registerEnum({{classname}}, '{{classname}}');
13
10
  {{/stringEnums}}
14
11
  {{^stringEnums}}
15
12
  export type {{classname}} = {{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}} | {{/-last}}{{/enumVars}}{{/allowableValues}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "4.1.0",
3
+ "version": "5.0.0-rc.0-c31d5206",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^17.2.0",
6
6
  "@angular/common": "^17.2.0",
@@ -10,7 +10,7 @@
10
10
  "@angular/router": "^17.2.0",
11
11
  "@ngx-formly/core": "^6.3.0",
12
12
  "@ngx-translate/core": "^15.0.0",
13
- "primeng": "~17.4.0"
13
+ "primeng": "^17.6.0"
14
14
  },
15
15
  "dependencies": {
16
16
  "reflect-metadata": "^0.1.13",
@@ -31,6 +31,24 @@
31
31
  "esm2022": "./esm2022/mediusinc-mng-commons.mjs",
32
32
  "esm": "./esm2022/mediusinc-mng-commons.mjs",
33
33
  "default": "./fesm2022/mediusinc-mng-commons.mjs"
34
+ },
35
+ "./data-api": {
36
+ "types": "./data-api/index.d.ts",
37
+ "esm2022": "./esm2022/data-api/mediusinc-mng-commons-data-api.mjs",
38
+ "esm": "./esm2022/data-api/mediusinc-mng-commons-data-api.mjs",
39
+ "default": "./fesm2022/mediusinc-mng-commons-data-api.mjs"
40
+ },
41
+ "./data-api/class-dto": {
42
+ "types": "./data-api/class-dto/index.d.ts",
43
+ "esm2022": "./esm2022/data-api/class-dto/mediusinc-mng-commons-data-api-class-dto.mjs",
44
+ "esm": "./esm2022/data-api/class-dto/mediusinc-mng-commons-data-api-class-dto.mjs",
45
+ "default": "./fesm2022/mediusinc-mng-commons-data-api-class-dto.mjs"
46
+ },
47
+ "./data-api/class-dto/obsolete": {
48
+ "types": "./data-api/class-dto/obsolete/index.d.ts",
49
+ "esm2022": "./esm2022/data-api/class-dto/obsolete/mediusinc-mng-commons-data-api-class-dto-obsolete.mjs",
50
+ "esm": "./esm2022/data-api/class-dto/obsolete/mediusinc-mng-commons-data-api-class-dto-obsolete.mjs",
51
+ "default": "./fesm2022/mediusinc-mng-commons-data-api-class-dto-obsolete.mjs"
34
52
  }
35
53
  }
36
54
  }
@@ -1,59 +0,0 @@
1
- import { MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam } from '../';
2
- export class MediusQueryParamBuilder {
3
- constructor(queryParam) {
4
- this.queryParam = queryParam;
5
- }
6
- static create(itemsPerPage = 50, itemsOffset = 0) {
7
- const queryParam = new MediusQueryParam();
8
- queryParam.itemsPerPage = itemsPerPage;
9
- queryParam.itemsOffset = itemsOffset;
10
- queryParam.queryMode = MediusQueryMode.All;
11
- return new MediusQueryParamBuilder(queryParam);
12
- }
13
- static createFromExisting(queryParam, itemsPerPage, itemsOffset) {
14
- queryParam.itemsPerPage = itemsPerPage ?? queryParam.itemsPerPage ?? 50;
15
- queryParam.itemsOffset = itemsOffset ?? queryParam.itemsOffset ?? 0;
16
- queryParam.queryMode = queryParam.queryMode ?? MediusQueryMode.All;
17
- return new MediusQueryParamBuilder(queryParam);
18
- }
19
- withItemsPerPage(itemsPerPage) {
20
- this.queryParam.itemsPerPage = itemsPerPage;
21
- return this;
22
- }
23
- withItemsOffset(itemsOffset) {
24
- this.queryParam.itemsOffset = itemsOffset;
25
- return this;
26
- }
27
- withQueryMode(queryMode) {
28
- this.queryParam.queryMode = queryMode;
29
- return this;
30
- }
31
- withSort(property, asc = true) {
32
- if (!this.queryParam.sortProperty || !this.queryParam.sortAsc) {
33
- this.queryParam.sortProperty = [];
34
- this.queryParam.sortAsc = [];
35
- }
36
- this.queryParam.sortProperty.push(property);
37
- this.queryParam.sortAsc.push(asc);
38
- return this;
39
- }
40
- withFilter(property, value, valueTo = undefined, matchType = MediusFilterMatchType.Contains, matchCaseSensitive = false) {
41
- if (!this.queryParam.filterParams) {
42
- this.queryParam.filterParams = [];
43
- }
44
- const filterParam = new MediusFilterParam();
45
- filterParam.property = property;
46
- filterParam.filterValue = value;
47
- filterParam.filterValueTo = valueTo;
48
- filterParam.filterMatchType = matchType;
49
- filterParam.filterMatchCaseSensitive = matchCaseSensitive;
50
- this.queryParam.filterParams.push(filterParam);
51
- return this;
52
- }
53
- build() {
54
- const queryParam = this.queryParam;
55
- this.queryParam = new MediusQueryParam();
56
- return queryParam;
57
- }
58
- }
59
- //# sourceMappingURL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mlsdGVyTWF0Y2hDYXNlU2Vuc2l0aXZlID0gbWF0Y2hDYXNlU2Vuc2l0aXZlO1xuICAgICAgICB0aGlzLnF1ZXJ5UGFyYW0uZmlsdGVyUGFyYW1zLnB1c2goZmlsdGVyUGFyYW0pO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBwdWJsaWMgYnVpbGQoKTogTWVkaXVzUXVlcnlQYXJhbSB7XG4gICAgICAgIGNvbnN0IHF1ZXJ5UGFyYW0gPSB0aGlzLnF1ZXJ5UGFyYW07XG4gICAgICAgIHRoaXMucXVlcnlQYXJhbSA9IG5ldyBNZWRpdXNRdWVyeVBhcmFtKCk7XG4gICAgICAgIHJldHVybiBxdWVyeVBhcmFtO1xuICAgIH1cbn1cbiJdfQ==
@@ -1,27 +0,0 @@
1
- /**
2
- * Generated API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
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
- */
12
- export var MediusFilterMatchType;
13
- (function (MediusFilterMatchType) {
14
- MediusFilterMatchType["Equals"] = "EQUALS";
15
- MediusFilterMatchType["NotEquals"] = "NOT_EQUALS";
16
- MediusFilterMatchType["FromTo"] = "FROM_TO";
17
- MediusFilterMatchType["Contains"] = "CONTAINS";
18
- MediusFilterMatchType["StartsWith"] = "STARTS_WITH";
19
- MediusFilterMatchType["EndsWith"] = "ENDS_WITH";
20
- MediusFilterMatchType["In"] = "IN";
21
- MediusFilterMatchType["NotIn"] = "NOT_IN";
22
- MediusFilterMatchType["SmallerThan"] = "SMALLER_THAN";
23
- MediusFilterMatchType["GreaterThan"] = "GREATER_THAN";
24
- MediusFilterMatchType["Exists"] = "EXISTS";
25
- MediusFilterMatchType["DoesNotExist"] = "DOES_NOT_EXIST";
26
- })(MediusFilterMatchType || (MediusFilterMat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hdG9yLnRlY2gpLlxuICogaHR0cHM6Ly9vcGVuYXBpLWdlbmVyYXRvci50ZWNoXG4gKiBEbyBub3QgZWRpdCB0aGUgY2xhc3MgbWFudWFsbHkuXG4gKi9cblxuZXhwb3J0IGVudW0gTWVkaXVzRmlsdGVyTWF0Y2hUeXBlIHtcbiAgICBFcXVhbHMgPSAnRVFVQUxTJyxcbiAgICBOb3RFcXVhbHMgPSAnTk9UX0VRVUFMUycsXG4gICAgRnJvbVRvID0gJ0ZST01fVE8nLFxuICAgIENvbnRhaW5zID0gJ0NPTlRBSU5TJyxcbiAgICBTdGFydHNXaXRoID0gJ1NUQVJUU19XSVRIJyxcbiAgICBFbmRzV2l0aCA9ICdFTkRTX1dJVEgnLFxuICAgIEluID0gJ0lOJyxcbiAgICBOb3RJbiA9ICdOT1RfSU4nLFxuICAgIFNtYWxsZXJUaGFuID0gJ1NNQUxMRVJfVEhBTicsXG4gICAgR3JlYXRlclRoYW4gPSAnR1JFQVRFUl9USEFOJyxcbiAgICBFeGlzdHMgPSAnRVhJU1RTJyxcbiAgICBEb2VzTm90RXhpc3QgPSAnRE9FU19OT1RfRVhJU1QnXG59XG4iXX0=
@@ -1,33 +0,0 @@
1
- export class MediusFilterParam {
2
- static { this.attributeTypeMap = [
3
- {
4
- name: 'property',
5
- baseName: 'property',
6
- type: 'string'
7
- },
8
- {
9
- name: 'filterValue',
10
- baseName: 'filter_value',
11
- type: 'object'
12
- },
13
- {
14
- name: 'filterValueTo',
15
- baseName: 'filter_value_to',
16
- type: 'object'
17
- },
18
- {
19
- name: 'filterMatchType',
20
- baseName: 'filter_match_type',
21
- type: 'FilterMatchType'
22
- },
23
- {
24
- name: 'filterMatchCaseSensitive',
25
- baseName: 'filter_match_case_sensitive',
26
- type: 'boolean'
27
- }
28
- ]; }
29
- static getAttributeTypeMap() {
30
- return MediusFilterParam.attributeTypeMap;
31
- }
32
- }
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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gICBuYW1lOiAnZmlsdGVyVmFsdWUnLFxuICAgICAgICAgICAgYmFzZU5hbWU6ICdmaWx0ZXJfdmFsdWUnLFxuICAgICAgICAgICAgdHlwZTogJ29iamVjdCdcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgICAgbmFtZTogJ2ZpbHRlclZhbHVlVG8nLFxuICAgICAgICAgICAgYmFzZU5hbWU6ICdmaWx0ZXJfdmFsdWVfdG8nLFxuICAgICAgICAgICAgdHlwZTogJ29iamVjdCdcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgICAgbmFtZTogJ2ZpbHRlck1hdGNoVHlwZScsXG4gICAgICAgICAgICBiYXNlTmFtZTogJ2ZpbHRlcl9tYXRjaF90eXBlJyxcbiAgICAgICAgICAgIHR5cGU6ICdGaWx0ZXJNYXRjaFR5cGUnXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICAgIG5hbWU6ICdmaWx0ZXJNYXRjaENhc2VTZW5zaXRpdmUnLFxuICAgICAgICAgICAgYmFzZU5hbWU6ICdmaWx0ZXJfbWF0Y2hfY2FzZV9zZW5zaXRpdmUnLFxuICAgICAgICAgICAgdHlwZTogJ2Jvb2xlYW4nXG4gICAgICAgIH1cbiAgICBdO1xuXG4gICAgcHVibGljIHN0YXRpYyBnZXRBdHRyaWJ1dGVUeXBlTWFwKCkge1xuICAgICAgICByZXR1cm4gTWVkaXVzRmlsdGVyUGFyYW0uYXR0cmlidXRlVHlwZU1hcDtcbiAgICB9XG59XG4iXX0=
@@ -1,7 +0,0 @@
1
- export * from './filter-match-type.model';
2
- export * from './filter-param.model';
3
- export * from './query-mode.model';
4
- export * from './query-param.model';
5
- export * from './query-result.model';
6
- export * from './builders/query-param.builder';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2FwaS9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLHNCQUFzQixDQUFDO0FBRXJDLGNBQWMsZ0NBQWdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZpbHRlci1tYXRjaC10eXBlLm1vZGVsJztcbmV4cG9ydCAqIGZyb20gJy4vZmlsdGVyLXBhcmFtLm1vZGVsJztcbmV4cG9ydCAqIGZyb20gJy4vcXVlcnktbW9kZS5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL3F1ZXJ5LXBhcmFtLm1vZGVsJztcbmV4cG9ydCAqIGZyb20gJy4vcXVlcnktcmVzdWx0Lm1vZGVsJztcblxuZXhwb3J0ICogZnJvbSAnLi9idWlsZGVycy9xdWVyeS1wYXJhbS5idWlsZGVyJztcbiJdfQ==