@mediusinc/mng-commons 6.2.0-rc.0 → 7.0.0-rc.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 (328) hide show
  1. package/core/index.d.ts +1743 -84
  2. package/fesm2022/mediusinc-mng-commons-core.mjs +104 -87
  3. package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
  4. package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
  5. package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
  6. package/fesm2022/mediusinc-mng-commons-form.mjs +97 -97
  7. package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
  8. package/fesm2022/mediusinc-mng-commons-model-class.mjs.map +1 -1
  9. package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
  10. package/fesm2022/mediusinc-mng-commons-table-api-class.mjs.map +1 -1
  11. package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
  12. package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs +30 -0
  13. package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs.map +1 -0
  14. package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs} +183 -186
  15. package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs.map +1 -0
  16. package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
  17. package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs.map +1 -1
  18. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +3 -3
  19. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
  20. package/fesm2022/mediusinc-mng-commons-tableview.mjs +305 -289
  21. package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
  22. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  23. package/filter/index.d.ts +398 -5
  24. package/form/api/index.d.ts +134 -7
  25. package/form/index.d.ts +301 -6
  26. package/index.d.ts +11 -1
  27. package/model/class/index.d.ts +25 -4
  28. package/model/index.d.ts +71 -5
  29. package/package.json +10 -10
  30. package/table/api/class/index.d.ts +77 -5
  31. package/table/api/index.d.ts +1161 -14
  32. package/table/index.d.ts +545 -17
  33. package/tableview/api/class/index.d.ts +141 -10
  34. package/tableview/api/index.d.ts +2542 -63
  35. package/tableview/index.d.ts +1274 -54
  36. package/version-info.json +5 -5
  37. package/core/action/action-data.model.d.ts +0 -3
  38. package/core/action/action-parameters.model.d.ts +0 -44
  39. package/core/components/notification/notification-wrapper.component.d.ts +0 -14
  40. package/core/data-list/data-list-params-helpers.d.ts +0 -93
  41. package/core/data-list/data-list.model.d.ts +0 -28
  42. package/core/data-list/filter-match.model.d.ts +0 -36
  43. package/core/data-list/filter-metadata.model.d.ts +0 -20
  44. package/core/data-providers/base.data-provider.d.ts +0 -17
  45. package/core/data-providers/lookup.data-provider.d.ts +0 -10
  46. package/core/descriptors/action.descriptor.d.ts +0 -12
  47. package/core/descriptors/column.descriptor.d.ts +0 -3
  48. package/core/descriptors/editor.descriptor.d.ts +0 -11
  49. package/core/descriptors/enum.descriptor.d.ts +0 -6
  50. package/core/descriptors/filter.descriptor.d.ts +0 -3
  51. package/core/descriptors/lookup.descriptor.d.ts +0 -12
  52. package/core/descriptors/model.descriptor.d.ts +0 -5
  53. package/core/descriptors/table.descriptor.d.ts +0 -11
  54. package/core/descriptors/tableview.descriptor.d.ts +0 -11
  55. package/core/directives/component.directive.d.ts +0 -18
  56. package/core/directives/rerender.directive.d.ts +0 -9
  57. package/core/directives/template.directive.d.ts +0 -8
  58. package/core/enum/enum-helpers.d.ts +0 -54
  59. package/core/enum/enum.model.d.ts +0 -8
  60. package/core/error/error-handler.d.ts +0 -6
  61. package/core/error/error-helpers.d.ts +0 -136
  62. package/core/error/error.model.d.ts +0 -53
  63. package/core/helpers/coercion.d.ts +0 -10
  64. package/core/helpers/date.d.ts +0 -14
  65. package/core/helpers/notification.d.ts +0 -18
  66. package/core/helpers/number.d.ts +0 -5
  67. package/core/helpers/object.d.ts +0 -27
  68. package/core/helpers/route.d.ts +0 -34
  69. package/core/helpers/string.d.ts +0 -7
  70. package/core/helpers/templates.d.ts +0 -3
  71. package/core/helpers/type-helpers.d.ts +0 -37
  72. package/core/i18n/i18n-common.d.ts +0 -6
  73. package/core/i18n/i18n-error.d.ts +0 -3
  74. package/core/i18n/i18n-type.d.ts +0 -11
  75. package/core/log/log-publisher-console.service.d.ts +0 -4
  76. package/core/log/log.model.d.ts +0 -40
  77. package/core/log/logger.service.d.ts +0 -33
  78. package/core/models/class-attribute.model.d.ts +0 -6
  79. package/core/models/class-service.model.d.ts +0 -7
  80. package/core/models/getter.model.d.ts +0 -2
  81. package/core/models/i18n.model.d.ts +0 -1
  82. package/core/models/menu.model.d.ts +0 -42
  83. package/core/models/user.model.d.ts +0 -8
  84. package/core/models/version.model.d.ts +0 -31
  85. package/core/pipes/boolean.pipe.d.ts +0 -7
  86. package/core/pipes/class-map.pipe.d.ts +0 -7
  87. package/core/pipes/enum.pipe.d.ts +0 -8
  88. package/core/pipes/enumerate-async.pipe.d.ts +0 -9
  89. package/core/pipes/enumerate.pipe.d.ts +0 -16
  90. package/core/pipes/getter.pipe.d.ts +0 -8
  91. package/core/pipes/i18n-property.pipe.d.ts +0 -8
  92. package/core/pipes/json-path.pipe.d.ts +0 -13
  93. package/core/pipes/parametrize.pipe.d.ts +0 -16
  94. package/core/pipes/template.pipe.d.ts +0 -8
  95. package/core/provide.d.ts +0 -13
  96. package/core/reactivity/effect.d.ts +0 -16
  97. package/core/reflect/type-enum-decorator.d.ts +0 -2
  98. package/core/reflect/type-enum-metadata.d.ts +0 -32
  99. package/core/registry/registry.model.d.ts +0 -8
  100. package/core/registry/type-registry.d.ts +0 -27
  101. package/core/router/route-builder.d.ts +0 -187
  102. package/core/router/router.model.d.ts +0 -13
  103. package/core/router/routes-builder.d.ts +0 -33
  104. package/core/rxjs/map-data-list-result-operator.d.ts +0 -9
  105. package/core/security/permission-helpers.d.ts +0 -3
  106. package/core/security/permission.guard.d.ts +0 -2
  107. package/core/security/permission.service.d.ts +0 -25
  108. package/core/security/permissions.model.d.ts +0 -82
  109. package/core/services/commons-configuration.service.d.ts +0 -81
  110. package/core/services/commons-init.service.d.ts +0 -30
  111. package/core/services/commons-router.service.d.ts +0 -37
  112. package/core/services/commons-storage.service.d.ts +0 -12
  113. package/core/services/commons.service.d.ts +0 -47
  114. package/core/services/providers/commons-init.provider.d.ts +0 -4
  115. package/core/services/tokens/browser-storage.token.d.ts +0 -2
  116. package/core/services/tokens/commons-init.token.d.ts +0 -3
  117. package/core/services/tokens/log-publisher.token.d.ts +0 -3
  118. package/core/services/tokens/module-config.token.d.ts +0 -28
  119. package/core/styles/style-constants.d.ts +0 -11
  120. package/core/styles/style.model.d.ts +0 -18
  121. package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs +0 -30
  122. package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs.map +0 -1
  123. package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs.map +0 -1
  124. package/filter/descriptors/filter-generic.descriptor.d.ts +0 -14
  125. package/filter/descriptors/filter-lookup.descriptor.d.ts +0 -97
  126. package/filter/descriptors/filter.descriptor.d.ts +0 -264
  127. package/filter/models/filter-generic-property.model.d.ts +0 -7
  128. package/filter/models/filter.model.d.ts +0 -16
  129. package/form/api/data-providers/lookup-data-provider.factory.d.ts +0 -19
  130. package/form/api/data-providers/lookup.data-provider.d.ts +0 -7
  131. package/form/api/descriptors/action-button.descriptor.d.ts +0 -23
  132. package/form/api/descriptors/button-style.builder.d.ts +0 -54
  133. package/form/api/models/button.model.d.ts +0 -19
  134. package/form/api/models/empty-value.model.d.ts +0 -7
  135. package/form/api/models/trim.model.d.ts +0 -1
  136. package/form/components/autocomplete/autocomplete.component.d.ts +0 -99
  137. package/form/components/date-range/date-range.component.d.ts +0 -37
  138. package/form/components/dropdown/dropdown.component.d.ts +0 -89
  139. package/form/components/number-range/number-range.component.d.ts +0 -35
  140. package/form/directives/input-empty-value.directive.d.ts +0 -40
  141. package/form/directives/input-trim.directive.d.ts +0 -9
  142. package/model/class/data-providers/base-from-class-data-provider.factory.d.ts +0 -3
  143. package/model/class/descriptors/model-class.descriptor.d.ts +0 -12
  144. package/model/class/descriptors/type-class.descriptor.d.ts +0 -3
  145. package/model/class/helpers/model.d.ts +0 -4
  146. package/model/data-providers/base-from-type-data-provider.factory.d.ts +0 -15
  147. package/model/descriptors/enum.descriptor.d.ts +0 -13
  148. package/model/descriptors/model.descriptor.d.ts +0 -25
  149. package/model/descriptors/type.descriptor.d.ts +0 -3
  150. package/model/helpers/i18n.d.ts +0 -13
  151. package/provide.d.ts +0 -7
  152. package/table/api/class/class-table-attribute-converter.d.ts +0 -15
  153. package/table/api/class/class-table-attribute.model.d.ts +0 -8
  154. package/table/api/class/class-table-data-provider.factory.d.ts +0 -4
  155. package/table/api/class/class-table-descriptor-helpers.d.ts +0 -42
  156. package/table/api/class/class-table-descriptor.factory.d.ts +0 -11
  157. package/table/api/data-providers/table-data-provider.factory.d.ts +0 -19
  158. package/table/api/data-providers/table.data-provider.d.ts +0 -27
  159. package/table/api/descriptors/column.descriptor.d.ts +0 -269
  160. package/table/api/descriptors/sort.descriptor.d.ts +0 -39
  161. package/table/api/descriptors/table-descriptor.factory.d.ts +0 -12
  162. package/table/api/descriptors/table.descriptor.d.ts +0 -672
  163. package/table/api/helpers/column-converter.d.ts +0 -7
  164. package/table/api/helpers/table-data-provider-descriptor-convert.d.ts +0 -20
  165. package/table/api/models/column-value.model.d.ts +0 -7
  166. package/table/api/models/column.model.d.ts +0 -18
  167. package/table/api/models/row-expandable-component.model.d.ts +0 -4
  168. package/table/api/models/table-columns.model.d.ts +0 -42
  169. package/table/api/models/table-event.model.d.ts +0 -18
  170. package/table/api/models/table.model.d.ts +0 -22
  171. package/table/components/column-filter/column-filter.component.d.ts +0 -81
  172. package/table/components/column-toggle/column-toggle.component.d.ts +0 -12
  173. package/table/components/column-value/column-value.component.d.ts +0 -33
  174. package/table/components/filter/filter-active-tag/filter-active-tag.component.d.ts +0 -20
  175. package/table/components/filter/filter-form/filter-form.component.d.ts +0 -56
  176. package/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.d.ts +0 -54
  177. package/table/components/table/table.component.d.ts +0 -83
  178. package/table/helpers/filters.d.ts +0 -37
  179. package/table/helpers/notification.d.ts +0 -13
  180. package/table/helpers/table-layout-prefs.d.ts +0 -7
  181. package/table/helpers/table.d.ts +0 -6
  182. package/table/models/column-preferences.model.d.ts +0 -12
  183. package/table/models/filter.model.d.ts +0 -36
  184. package/table/pipes/filter-value.pipe.d.ts +0 -19
  185. package/table/pipes/locale-default-row-class.pipe.d.ts +0 -10
  186. package/table/pipes/table-column-filter-class.pipe.d.ts +0 -8
  187. package/table/provide.d.ts +0 -15
  188. package/table/services/table-data.service.d.ts +0 -37
  189. package/table/services/table-feature-config.token.d.ts +0 -7
  190. package/table/services/table-metadata.service.d.ts +0 -31
  191. package/table/services/table-preferences.service.d.ts +0 -25
  192. package/tableview/action/components/action/action.component.d.ts +0 -63
  193. package/tableview/action/components/editor/action-editor.component.d.ts +0 -32
  194. package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +0 -79
  195. package/tableview/action/components/localization/data-language-dropdown.component.d.ts +0 -19
  196. package/tableview/action/components/route/action-route.component.d.ts +0 -26
  197. package/tableview/action/components/table/action-table.component.d.ts +0 -50
  198. package/tableview/action/guards/unsaved-changes.guard.d.ts +0 -3
  199. package/tableview/action/helpers/action-execution.d.ts +0 -7
  200. package/tableview/action/helpers/i18n.d.ts +0 -47
  201. package/tableview/action/helpers/inject.d.ts +0 -39
  202. package/tableview/action/helpers/notification.d.ts +0 -40
  203. package/tableview/action/helpers/styles.d.ts +0 -5
  204. package/tableview/action/models/action-editor-dialog-data.model.d.ts +0 -11
  205. package/tableview/action/models/can-component-deactivate.model.d.ts +0 -4
  206. package/tableview/action/models/execution/action-context.model.d.ts +0 -43
  207. package/tableview/action/models/execution/action-instance.model.d.ts +0 -56
  208. package/tableview/action/services/action-error-mapper.service.d.ts +0 -18
  209. package/tableview/action/services/action-executor.service.d.ts +0 -174
  210. package/tableview/action/services/component-action-executor.service.d.ts +0 -9
  211. package/tableview/action/services/data-provider-executor.service.d.ts +0 -23
  212. package/tableview/action/services/navigation.service.d.ts +0 -15
  213. package/tableview/action/services/providers/provide-action-executor.d.ts +0 -2
  214. package/tableview/action/services/providers/provide-view-container.d.ts +0 -2
  215. package/tableview/action/services/root-action-executor.service.d.ts +0 -9
  216. package/tableview/action/services/tokens/action-editor.token.d.ts +0 -2
  217. package/tableview/action/services/view-container.service.d.ts +0 -25
  218. package/tableview/api/action/descriptors/action-descriptor.factory.d.ts +0 -25
  219. package/tableview/api/action/descriptors/action-editor-descriptor.factory.d.ts +0 -24
  220. package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +0 -105
  221. package/tableview/api/action/descriptors/action-link-descriptor.factory.d.ts +0 -23
  222. package/tableview/api/action/descriptors/action-link.descriptor.d.ts +0 -27
  223. package/tableview/api/action/descriptors/action.descriptor.d.ts +0 -118
  224. package/tableview/api/action/descriptors/editor-action-descriptor.factory.d.ts +0 -21
  225. package/tableview/api/action/descriptors/editor-action-editor-descriptor.factory.d.ts +0 -21
  226. package/tableview/api/action/descriptors/table-action-descriptor.factory.d.ts +0 -36
  227. package/tableview/api/action/descriptors/table-action-editor-descriptor.factory.d.ts +0 -40
  228. package/tableview/api/action/helpers/data-provider-executors.d.ts +0 -23
  229. package/tableview/api/action/models/action-component.model.d.ts +0 -12
  230. package/tableview/api/action/models/action-confirmation.model.d.ts +0 -16
  231. package/tableview/api/action/models/action-descriptor.types.d.ts +0 -10
  232. package/tableview/api/action/models/action-editor.model.d.ts +0 -4
  233. package/tableview/api/action/models/action-error.model.d.ts +0 -14
  234. package/tableview/api/action/models/action.type.d.ts +0 -21
  235. package/tableview/api/action/models/execution/action-context-validation.model.d.ts +0 -11
  236. package/tableview/api/action/models/execution/action-context.model.d.ts +0 -25
  237. package/tableview/api/action/models/execution/action-execution-error.model.d.ts +0 -4
  238. package/tableview/api/action/models/execution/action-instance-state.model.d.ts +0 -30
  239. package/tableview/api/action/models/execution/action-instance.model.d.ts +0 -32
  240. package/tableview/api/action/models/execution/view-container.model.d.ts +0 -22
  241. package/tableview/api/action/models/tableview-action-default-categories.model.d.ts +0 -10
  242. package/tableview/api/action/services/data-provider-executor.service.d.ts +0 -39
  243. package/tableview/api/action/services/tokens/data-language-dropdown.token.d.ts +0 -2
  244. package/tableview/api/class/editor/class-editor-attribute-converter.d.ts +0 -21
  245. package/tableview/api/class/editor/class-editor-attribute.model.d.ts +0 -7
  246. package/tableview/api/class/editor/class-editor-data-provider.factory.d.ts +0 -4
  247. package/tableview/api/class/editor/class-editor-descriptor-helpers.d.ts +0 -40
  248. package/tableview/api/class/editor/class-editor-descriptor.factory.d.ts +0 -11
  249. package/tableview/api/class/tableview/class-tableview-attribute-converter.d.ts +0 -8
  250. package/tableview/api/class/tableview/class-tableview-attribute.model.d.ts +0 -3
  251. package/tableview/api/class/tableview/class-tableview-data-provider.factory.d.ts +0 -4
  252. package/tableview/api/class/tableview/class-tableview-descriptor-helpers.d.ts +0 -41
  253. package/tableview/api/class/tableview/class-tableview-descriptor.factory.d.ts +0 -12
  254. package/tableview/api/editor/data-providers/editor-data-provider.factory.d.ts +0 -19
  255. package/tableview/api/editor/data-providers/editor.data-provider.d.ts +0 -119
  256. package/tableview/api/editor/descriptors/editor-descriptor.factory.d.ts +0 -11
  257. package/tableview/api/editor/descriptors/editor.descriptor.d.ts +0 -254
  258. package/tableview/api/editor/descriptors/field-action.descriptor.d.ts +0 -21
  259. package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +0 -147
  260. package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +0 -58
  261. package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +0 -80
  262. package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +0 -56
  263. package/tableview/api/editor/descriptors/field-validation.descriptor.d.ts +0 -16
  264. package/tableview/api/editor/descriptors/field.descriptor.d.ts +0 -239
  265. package/tableview/api/editor/descriptors/wrappers/editor-descriptor-nested-object-wrapper.d.ts +0 -25
  266. package/tableview/api/editor/models/editor-fields.model.d.ts +0 -42
  267. package/tableview/api/editor/models/editor.model.d.ts +0 -7
  268. package/tableview/api/editor/models/field-action-context.model.d.ts +0 -26
  269. package/tableview/api/editor/models/field-image-preview.model.d.ts +0 -4
  270. package/tableview/api/editor/models/field-validation.model.d.ts +0 -26
  271. package/tableview/api/editor/models/field.model.d.ts +0 -56
  272. package/tableview/api/editor/models/form-editor.event.d.ts +0 -74
  273. package/tableview/api/editor/models/form-editor.interface.d.ts +0 -53
  274. package/tableview/api/editor/models/formly-custom-field.model.d.ts +0 -30
  275. package/tableview/api/editor/models/formly-field.model.d.ts +0 -42
  276. package/tableview/api/editor/models/formly-options.model.d.ts +0 -15
  277. package/tableview/api/editor/models/radio.model.d.ts +0 -6
  278. package/tableview/api/tableview/data-providers/tableview-data-provider.factory.d.ts +0 -24
  279. package/tableview/api/tableview/data-providers/tableview.data-provider.d.ts +0 -33
  280. package/tableview/api/tableview/descriptors/tableview-descriptor.factory.d.ts +0 -23
  281. package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +0 -153
  282. package/tableview/api/tableview/helpers/files-export.d.ts +0 -4
  283. package/tableview/api/tableview/helpers/tableview-create.d.ts +0 -29
  284. package/tableview/api/tableview/helpers/tableview-data-provider-descriptor-convert.d.ts +0 -20
  285. package/tableview/api/tableview/helpers/tableview-default-actions.d.ts +0 -93
  286. package/tableview/api/tableview/helpers/tableview-input-builder.d.ts +0 -192
  287. package/tableview/api/tableview/models/tableview-descriptor-fields-manage-helper.type.d.ts +0 -9
  288. package/tableview/api/tableview/models/tableview-descriptor-helper.type.d.ts +0 -2
  289. package/tableview/api/tableview/models/tableview-input.model.d.ts +0 -8
  290. package/tableview/api/tableview/models/tableview-route.model.d.ts +0 -20
  291. package/tableview/editor/components/editor/auto-save-status/auto-save-status.component.d.ts +0 -10
  292. package/tableview/editor/components/editor/form-editor.component.d.ts +0 -117
  293. package/tableview/editor/components/formly/constants.d.ts +0 -1
  294. package/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.d.ts +0 -15
  295. package/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +0 -11
  296. package/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.d.ts +0 -10
  297. package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +0 -24
  298. package/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -10
  299. package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +0 -12
  300. package/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.d.ts +0 -33
  301. package/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.d.ts +0 -10
  302. package/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +0 -36
  303. package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -22
  304. package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -37
  305. package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +0 -10
  306. package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +0 -11
  307. package/tableview/editor/components/formly/fields/formly-group-type.abstract.component.d.ts +0 -7
  308. package/tableview/editor/components/formly/fields/formly-type.abstract.component.d.ts +0 -20
  309. package/tableview/editor/components/formly/pipes/formly-field-label.pipe.d.ts +0 -8
  310. package/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.d.ts +0 -18
  311. package/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +0 -16
  312. package/tableview/editor/helpers/editor-autosave.d.ts +0 -17
  313. package/tableview/editor/helpers/editor-field.d.ts +0 -2
  314. package/tableview/editor/helpers/editor-formly.d.ts +0 -11
  315. package/tableview/editor/helpers/editor-validators.d.ts +0 -7
  316. package/tableview/editor/helpers/field-create.d.ts +0 -9
  317. package/tableview/editor/helpers/formly-config.d.ts +0 -18
  318. package/tableview/editor/helpers/notification.d.ts +0 -4
  319. package/tableview/editor/models/editor-auto-save-preview.model.d.ts +0 -10
  320. package/tableview/editor/models/formly-config.model.d.ts +0 -14
  321. package/tableview/editor/models/formly.model.d.ts +0 -23
  322. package/tableview/editor/services/form-editor.service.d.ts +0 -39
  323. package/tableview/editor/services/formly-config.provider.d.ts +0 -5
  324. package/tableview/provide.d.ts +0 -15
  325. package/tableview/tableview/components/route/tableview-route.component.d.ts +0 -7
  326. package/tableview/tableview/components/tableview/tableview.component.d.ts +0 -29
  327. package/tableview/tableview/router/tableview-route-builder.d.ts +0 -43
  328. package/tableview/tableview/services/tableview-feature-config.token.d.ts +0 -18
@@ -1,4 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export interface CanComponentDeactivate {
3
- canDeactivate: () => Observable<boolean>;
4
- }
@@ -1,43 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { Confirmation, ToastMessageOptions } from 'primeng/api';
3
- import { BehaviorSubject, ReplaySubject, Subscription } from 'rxjs';
4
- import { ActionParameters, ICommonsError, IDataProvider } from '@mediusinc/mng-commons/core';
5
- import { IActionContext, IActionInstance } from '@mediusinc/mng-commons/tableview/api';
6
- import { ViewContainer } from '../../services/view-container.service';
7
- import { ActionInstance } from './action-instance.model';
8
- /**
9
- * Class containing all main data for action to be executed in run/fetch/submit states.
10
- */
11
- export declare class ActionContext<Item, ParametersItem, Service = undefined> implements IActionContext<Item, ParametersItem, Service, ActionInstance<Item, Service>, ViewContainer<Item, Service>> {
12
- readonly injector: Injector;
13
- readonly instance: ActionInstance<Item, Service>;
14
- readonly parameters: ActionParameters<ParametersItem>;
15
- readonly functionName: 'run' | 'fetch' | 'submit';
16
- readonly serviceInstance: Service;
17
- readonly dataProvider?: IDataProvider<Item, Service> | undefined;
18
- readonly viewContainer?: ViewContainer<Item, Service> | undefined;
19
- private readonly executionSubject;
20
- private readonly executionIsRunningSubject;
21
- private readonly logger;
22
- readonly contextLongName: string;
23
- previousActionInstance?: IActionInstance<any, any>;
24
- confirmation?: Confirmation;
25
- notification?: ToastMessageOptions;
26
- runSubscription?: Subscription;
27
- dataProviderSource: ActionDataProviderSource;
28
- constructor(injector: Injector, instance: ActionInstance<Item, Service>, parameters: ActionParameters<ParametersItem>, functionName: 'run' | 'fetch' | 'submit', serviceInstance: Service, dataProvider?: IDataProvider<Item, Service> | undefined, viewContainer?: ViewContainer<Item, Service> | undefined, executionSubject?: ReplaySubject<Item | null | undefined>, executionIsRunningSubject?: BehaviorSubject<boolean>);
29
- get execution$(): import("rxjs").Observable<Item | null | undefined>;
30
- get executionIsRunning$(): import("rxjs").Observable<boolean>;
31
- executionStart(): void;
32
- executionNext(next: Item | null | undefined, finish?: boolean): void;
33
- executionComplete(): void;
34
- executionError(err: ICommonsError): void;
35
- finish(): void;
36
- isClosed(): boolean;
37
- }
38
- export declare enum ActionDataProviderSource {
39
- Undefined = 0,
40
- ViewContainer = 1,
41
- Descriptor = 2,
42
- ParameterOrInput = 3
43
- }
@@ -1,56 +0,0 @@
1
- import { DynamicDialogRef } from 'primeng/dynamicdialog';
2
- import { BehaviorSubject, Observable } from 'rxjs';
3
- import { ActionParameters } from '@mediusinc/mng-commons/core';
4
- import { ActionDescriptorInst, ActionExecutionError, ActionInstanceStateEnum, IActionEditorComponent, IActionInstance } from '@mediusinc/mng-commons/tableview/api';
5
- import { ActionContext } from './action-context.model';
6
- /**
7
- * Action execution instance containing data about execution state of action
8
- */
9
- export declare class ActionInstance<Item, Service = undefined> implements IActionInstance<Item, Service> {
10
- readonly instanceId: string;
11
- readonly instanceLongName: string;
12
- readonly action: ActionDescriptorInst<Item, Service, any, any, any>;
13
- readonly createdDate: Date;
14
- private readonly logger;
15
- readonly isRunLoadingSubject: BehaviorSubject<boolean>;
16
- triggerParameters?: ActionParameters<Item>;
17
- activationParameters?: ActionParameters<any>;
18
- private readonly contexts;
19
- private readonly executionSubject;
20
- private readonly executionIsRunningSubject;
21
- private readonly stateSubject;
22
- private readonly resultSubject;
23
- private readonly errorSubject;
24
- private contextExecutionSubscriptions;
25
- private _result?;
26
- private _error?;
27
- activationDialogRef?: DynamicDialogRef;
28
- activationEditorComponentRef?: IActionEditorComponent;
29
- private _reactivationInstanceSubject;
30
- reactivationPreviousInstance?: IActionInstance<Item, Service>;
31
- previousInstance?: IActionInstance<any, any>;
32
- nextActionInstance?: IActionInstance<any, any>;
33
- errorActionInstance?: IActionInstance<Item, Service>;
34
- constructor(action: ActionDescriptorInst<Item, Service, any, any, any>, state?: ActionInstanceStateEnum);
35
- get isRunLoading$(): Observable<boolean>;
36
- get context(): ActionContext<Item, any, Service> | undefined;
37
- get execution$(): Observable<Item | null | undefined>;
38
- get executionIsRunning$(): Observable<boolean>;
39
- get state(): ActionInstanceStateEnum;
40
- set state(state: ActionInstanceStateEnum);
41
- get state$(): Observable<ActionInstanceStateEnum>;
42
- get result(): Item | null | undefined;
43
- set result(result: Item | null | undefined);
44
- get result$(): Observable<Item | null>;
45
- get error(): ActionExecutionError | undefined;
46
- set error(error: ActionExecutionError | undefined);
47
- get error$(): Observable<ActionExecutionError>;
48
- set reactivationInstance(instance: IActionInstance<Item, Service> | undefined);
49
- get reactivationInstance(): IActionInstance<Item, Service> | undefined;
50
- get reactivationInstance$(): Observable<IActionInstance<Item, Service>>;
51
- contextAt(idx: number): ActionContext<Item, any, Service> | undefined;
52
- newContext(context: ActionContext<Item, any, Service>, finishPrevious?: boolean): void;
53
- forceFinish(): void;
54
- private finish;
55
- isClosed(): boolean;
56
- }
@@ -1,18 +0,0 @@
1
- import { ICommonsError } from '@mediusinc/mng-commons/core';
2
- /**
3
- * Service for transforming errors in action execution.
4
- * Can be used to transform errors to Commons Error interface for correct error message display.
5
- */
6
- export declare abstract class ActionErrorMapperService {
7
- /**
8
- * Can be used to enrich data from error and make it more "stable". Most use cases cover extracting message or message code of an
9
- * error out of http response body/headers.
10
- *
11
- * @param error Original error (cause).
12
- * @param commonsError Commons error that wraps original error.
13
- */
14
- abstract toCommonsError(error?: any, commonsError?: ICommonsError): ICommonsError;
15
- }
16
- export declare class DefaultActionErrorMapperService extends ActionErrorMapperService {
17
- toCommonsError(error?: any, commonsError?: ICommonsError): ICommonsError;
18
- }
@@ -1,174 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import { ConfirmationService, MessageService } from 'primeng/api';
5
- import { DialogService } from 'primeng/dynamicdialog';
6
- import { ActionParameters, CommonsService, ICommonsError, IDataProvider, LoggerService, ParametrizePipe } from '@mediusinc/mng-commons/core';
7
- import { ActionContextValidation, ActionDescriptorInst, ActionEditorDescriptorInst, ActionInstanceStateEnum, DataProviderExecutor, IActionEditorComponent, IActionInstance } from '@mediusinc/mng-commons/tableview/api';
8
- import { ActionContext } from '../models/execution/action-context.model';
9
- import { ActionInstance } from '../models/execution/action-instance.model';
10
- import { ActionErrorMapperService } from './action-error-mapper.service';
11
- import { NavigationService } from './navigation.service';
12
- import { ViewContainer } from './view-container.service';
13
- export declare abstract class ActionExecutorService {
14
- private static readonly className;
15
- protected readonly injector: Injector;
16
- protected readonly router: Router;
17
- protected readonly dialogService: DialogService;
18
- protected readonly translate: TranslateService;
19
- protected readonly commons: CommonsService;
20
- protected readonly dataProviderExecutor: DataProviderExecutor;
21
- protected readonly navigationService: NavigationService;
22
- protected readonly errorMapper: ActionErrorMapperService;
23
- protected readonly config: import("@mediusinc/mng-commons/tableview").TableviewFeatureConfig | null;
24
- protected readonly defaultEditorDialogComponent: import("@angular/core").Type<any>;
25
- protected readonly messageService: MessageService;
26
- protected readonly confirmationService: ConfirmationService;
27
- protected readonly viewContainer: ViewContainer<any, any> | null;
28
- protected readonly parametrize: ParametrizePipe;
29
- protected readonly instancesBufferMax = 100;
30
- protected logger: LoggerService;
31
- abstract get instances(): ActionInstance<any, any>[];
32
- /**
33
- * Prepares action context for usage in validation.
34
- * @param action Action descriptor.
35
- * @param parameters Action parameters.
36
- * @param dataProvider Data provider.
37
- */
38
- prepareActionContextValidation<Item, ParametersItem, Service>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<ParametersItem>, dataProvider?: IDataProvider<Item, Service>): ActionContextValidation<Item, ParametersItem, Service>;
39
- /**
40
- * Runs action context by submitting execution results/errors to context, watching over instance results/errors, displaying notifications,
41
- * running next/error action and triggering dismiss of action. Confirmation is also processed here.
42
- *
43
- * @param ctx Action context to run.
44
- */
45
- run<Item, ParametersItem, Service = undefined>(ctx: ActionContext<Item, ParametersItem, Service>): void;
46
- /**
47
- * Runs action context by submitting execution results/errors to context, watching over instance results/errors, displaying notifications,
48
- * running next/error action and triggering dismiss of action. Confirmation
49
- *
50
- * @param ctx Action context to run.
51
- *
52
- * @returns Action context for submit (=run) function.
53
- */
54
- private runWithoutConfirmation;
55
- /**
56
- * Prepares editor action's fetch function by creating new action context for action instance.
57
- *
58
- * @param action Action descriptor.
59
- * @param parameters Action parameters for context.
60
- * @param dataProvider Editor data provider for context.
61
- * @param instance Optional existing action instance (if non provided, new will be created).
62
- * @param previousActionInstance Optional previous action instance to link in next instance.
63
- *
64
- * @returns Action context for fetch function.
65
- */
66
- prepareContextForEditorFetch<Item, ParametersItem, Service>(action: ActionEditorDescriptorInst<Item, any, any, ParametersItem, any, any>, parameters: ActionParameters<ParametersItem>, dataProvider?: IDataProvider<Item, Service>, instance?: ActionInstance<Item, Service>, previousActionInstance?: IActionInstance<any, any>): ActionContext<Item, ParametersItem, Service>;
67
- /**
68
- * Runs editor action's submit (=main run) function by creating new action context for action instance.
69
- *
70
- * @param action Action descriptor.
71
- * @param parameters Action parameters for context.
72
- * @param dataProvider Editor data provider for context.
73
- * @param instance Optional existing action instance (if non provided, new will be created).
74
- * @param previousActionInstance Optional previous action instance to link in next instance.
75
- *
76
- * @returns Action context for submit (=run) function.
77
- */
78
- prepareContextForEditorSubmit<Item, ParametersItem, Service>(action: ActionEditorDescriptorInst<Item, any, ParametersItem, any, any, any>, parameters: ActionParameters<ParametersItem>, dataProvider?: IDataProvider<Item, Service>, instance?: ActionInstance<Item, Service>, previousActionInstance?: IActionInstance<any, any>): ActionContext<Item, ParametersItem, Service>;
79
- /**
80
- * Prepares action exec context for action of type editor.
81
- *
82
- * @param instance Action instance.
83
- * @param parameters Action parameters for context.
84
- * @param functionName Action function name parameter.
85
- * @param dataProvider Optional data provider. If not provided data provider from either the action editor or view container will be used.
86
- * @param previousActionInstance Optional previous action instance to link in next instance.
87
- */
88
- private prepareContextForEditor;
89
- /**
90
- * Runs action's main run function by creating new action context for action instance.
91
- *
92
- * @param action Action descriptor.
93
- * @param parameters Action parameters for context run.
94
- * @param instance Optional existing action instance (if non provided, new will be created).
95
- * @param previousActionInstance Optional previous action instance to link in next instance.
96
- *
97
- * @returns Action context for run function.
98
- */
99
- private prepareContext;
100
- /**
101
- * Activates action (in case of dialog, dialog will be opened).
102
- *
103
- * @param action Action descriptor.
104
- * @param parameters Action parameters for activation of action instance.
105
- * @param instance Optional existing action instance (if non provided, new will be created).
106
- * @param previousActionInstance Optional previous action instance to link in next instance.
107
- * @param runContext Marks if context should be run.
108
- *
109
- * @returns Action instance - if non provided in parameters, the newly created will be returned.
110
- */
111
- activateAction<Item, ParametersItem, Service = undefined>(action: ActionDescriptorInst<Item, any, ParametersItem, any, any>, parameters: ActionParameters<ParametersItem>, instance?: ActionInstance<Item, Service>, previousActionInstance?: ActionInstance<any, any>, runContext?: boolean): ActionInstance<Item, Service>;
112
- /**
113
- * To be called when action editor is initialized to correctly activate action.
114
- * @param action Action descriptor.
115
- * @param instance Action instance (if available).
116
- * @param componentRef Optional action editor component reference.
117
- */
118
- onActionEditorInit<T, S>(action: ActionDescriptorInst<T>, instance?: ActionInstance<T, S>, componentRef?: IActionEditorComponent): ActionInstance<T, S>;
119
- /**
120
- * To be called when action editor cmp is being destroyed to correctly finish action.
121
- * @param instance Action instance.
122
- */
123
- onActionDestroy<T, S>(instance?: ActionInstance<T, S>): void;
124
- /**
125
- * To be called when action editor cmp is being destroyed to correctly finish action.
126
- * @param instance Action instance.
127
- */
128
- onActionEditorDestroy<T, S>(instance?: ActionInstance<T, S>): void;
129
- /**
130
- * To be called when action route cmp is being destroyed to correctly finish action.
131
- * @param instance Action instance.
132
- */
133
- onActionRouteDestroy<T, S>(instance?: ActionInstance<T, S>): void;
134
- /**
135
- * Deactivates action by choosing final state, closing dialog and completing all subjects in instance and contexts.
136
- *
137
- * @param instance Action instance.
138
- * @param onDestroy Marks if finish is called on component destroy lifecycle hook.
139
- */
140
- finishAction<Item, Service = undefined>(instance: ActionInstance<Item, Service>, onDestroy?: boolean): void;
141
- /**
142
- * Triggers action with parameters.
143
- *
144
- * @param action Action descriptor.
145
- * @param parameters Action parameters for action execution to construct new route.
146
- * @param runContext Marks if context should be run.
147
- *
148
- * @returns Action instance - if non provided in parameters, the newly created will be returned.
149
- */
150
- triggerAction<Item, Service = undefined>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<Item>, runContext?: boolean): ActionInstance<Item, Service>;
151
- /**
152
- * Deactivates on route triggered action by trying to reroute back to location where action was triggered.
153
- * @param instance Action instance.
154
- */
155
- finishActionRouteUntrigger<Item, Service = undefined>(instance: ActionInstance<Item, Service>): void;
156
- /**
157
- * Transform error of any type to error by using error mapper that could be provided by final project.
158
- * @param error error of any type.
159
- * @param context Action context.
160
- *
161
- * @returns mapped ICommonsError.
162
- */
163
- toActionError(error?: any, context?: ActionContext<any, any, any>): ICommonsError;
164
- /**
165
- * Creates or gets existing action instance.
166
- * @param instance Action instance.
167
- * @param action Action descriptor.
168
- * @param parameters Action parameters.
169
- * @param instanceInitialStatus Action instance initial status.
170
- * @param skipInitializationFromViewContainer If initialization of instance from view container should be skipped.
171
- * @private
172
- */
173
- protected getOrCreateInstance<Item, Service = undefined>(instance: ActionInstance<Item, Service> | undefined, action?: ActionDescriptorInst<Item, Service, any, any, any>, parameters?: ActionParameters<any>, instanceInitialStatus?: ActionInstanceStateEnum, skipInitializationFromViewContainer?: boolean): ActionInstance<Item, Service>;
174
- }
@@ -1,9 +0,0 @@
1
- import { ActionInstance } from '../models/execution/action-instance.model';
2
- import { ActionExecutorService } from './action-executor.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ComponentActionExecutorService extends ActionExecutorService {
5
- private readonly rootActionExecutorService;
6
- get instances(): ActionInstance<any, any>[];
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentActionExecutorService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<ComponentActionExecutorService>;
9
- }
@@ -1,23 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DataListResult, Nullable } from '@mediusinc/mng-commons/core';
3
- import { DataProviderExecutor, IActionContext, RunFetchFromDataProviderReasonType } from '@mediusinc/mng-commons/tableview/api';
4
- import * as i0 from "@angular/core";
5
- export declare class DefaultDataProviderExecutor extends DataProviderExecutor {
6
- runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<DataListResult<Item>> | null;
7
- runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<DataListResult<Item>>): Observable<DataListResult<Item>>;
8
- runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<DataListResult<Item>> | null;
9
- runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason?: RunFetchFromDataProviderReasonType): Observable<Item> | null;
10
- runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
11
- runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback: undefined): Observable<Nullable<Item>> | null;
12
- runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item> | null;
13
- runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
14
- runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
15
- runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item> | null;
16
- runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
17
- runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
18
- runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Nullable<Item>> | null;
19
- runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
20
- runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DefaultDataProviderExecutor, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<DefaultDataProviderExecutor>;
23
- }
@@ -1,15 +0,0 @@
1
- import { Location } from '@angular/common';
2
- import { Router } from '@angular/router';
3
- import * as i0 from "@angular/core";
4
- export declare class NavigationService {
5
- private router;
6
- private location;
7
- private history;
8
- constructor(router: Router, location: Location);
9
- getCurrentLocationFromHistory(): string | null;
10
- getCurrentLocationFromUrl(): string;
11
- getPreviousLocationFromHistory(): string | null;
12
- back(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
15
- }
@@ -1,2 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- export declare function provideActionExecutor(): Provider;
@@ -1,2 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- export declare function provideViewContainer(provideParentIfPresent?: boolean): Provider;
@@ -1,9 +0,0 @@
1
- import { ActionInstance } from '../models/execution/action-instance.model';
2
- import { ActionExecutorService } from './action-executor.service';
3
- import * as i0 from "@angular/core";
4
- export declare class RootActionExecutorService extends ActionExecutorService {
5
- private readonly _instances;
6
- get instances(): ActionInstance<any, any>[];
7
- static ɵfac: i0.ɵɵFactoryDeclaration<RootActionExecutorService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<RootActionExecutorService>;
9
- }
@@ -1,2 +0,0 @@
1
- import { InjectionToken, Type } from '@angular/core';
2
- export declare const ACTION_EDITOR_COMPONENT_IT: InjectionToken<Type<any>>;
@@ -1,25 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { IDataProvider } from '@mediusinc/mng-commons/core';
3
- import { TableReloadEvent } from '@mediusinc/mng-commons/table/api';
4
- import { ActionDescriptorInst, EditorResetEvent, IViewContainer, ViewContainerEditorCloseEvent } from '@mediusinc/mng-commons/tableview/api';
5
- import { ActionInstance } from '../models/execution/action-instance.model';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Should be used with providers defined within component.
9
- */
10
- export declare class ViewContainer<Item, Service = undefined> implements IViewContainer<Item, Service, ActionInstance<Item, Service>> {
11
- dataProvider: import("@angular/core").WritableSignal<IDataProvider<Item, Service> | undefined>;
12
- routeTriggeredActionInstance: import("@angular/core").WritableSignal<ActionInstance<Item, Service> | undefined>;
13
- actions: import("@angular/core").WritableSignal<ActionDescriptorInst<any, any, any, any, any>[]>;
14
- private _tableReloadSubject;
15
- private _editorResetSubject;
16
- private _editorCloseSubject;
17
- get tableReload$(): Observable<TableReloadEvent>;
18
- reloadTable(event?: TableReloadEvent): void;
19
- get editorReset$(): Observable<EditorResetEvent<Item>>;
20
- resetEditor(event?: EditorResetEvent<Item> | undefined): void;
21
- get editorClose$(): Observable<ViewContainerEditorCloseEvent<Item>>;
22
- closeEditor(event?: ViewContainerEditorCloseEvent<Item>): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewContainer<any, any>, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<ViewContainer<any, any>>;
25
- }
@@ -1,25 +0,0 @@
1
- import { IDataProvider, ServiceClassType } from '@mediusinc/mng-commons/core';
2
- import { ModelDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
3
- import { ActionDescriptorCreateOptsParentType, ActionDescriptorCreateOptsProviderType, ActionDescriptorInst } from './action.descriptor';
4
- export type ActionDescriptorCreateFromModelOptsType<RunInputType, RunReturnType, ValidationInput> = ActionDescriptorCreateOptsParentType & {
5
- runInputType?: TypeDescriptor<RunInputType>;
6
- runReturnType?: TypeDescriptor<RunReturnType>;
7
- validationType?: TypeDescriptor<ValidationInput>;
8
- };
9
- export type ActionDescriptorCreateOptsType<Model, Service, RunInputType, RunReturnType, ValidationInput> = ActionDescriptorCreateOptsParentType & {
10
- model?: ModelDescriptor<Model>;
11
- serviceProvider?: ActionProviderType<Model, Service>;
12
- runInputType?: TypeDescriptor<RunInputType>;
13
- runReturnType?: TypeDescriptor<RunReturnType>;
14
- validationType?: TypeDescriptor<ValidationInput>;
15
- };
16
- export type ActionProviderType<Model, Service> = ServiceClassType<Service> | IDataProvider<Model, Service>;
17
- export declare const actionGetProviderCfgObj: <Model, Service>(serviceOrDataProvider?: ActionProviderType<Model, Service>) => ActionDescriptorCreateOptsProviderType<Model, Service>;
18
- /**
19
- * Creates and returns an instance of ActionDescriptorInst, allowing customization of the action's behavior through configuration options.
20
- *
21
- * @param {string} actionName - The unique name of the action.
22
- * @param {ActionDescriptorCreateFromModelOptsType<Model, Service, RunInput, RunResult, ValidationInput>} [opts] - Optional configuration object to define the action's behavior, including model, service provider and other.
23
- * @return {ActionDescriptorInst<Model, Service, RunInput, RunResult, ValidationInput>} An instance of ActionDescriptorInst configured with the provided parameters.
24
- */
25
- export declare function action<Model, Service = undefined, RunInput = Model, RunResult = Model, ValidationInput = Model>(actionName: string, opts?: ActionDescriptorCreateOptsType<Model, Service, RunInput, RunResult, ValidationInput>): ActionDescriptorInst<Model, Service, RunInput, RunResult, ValidationInput>;
@@ -1,24 +0,0 @@
1
- import { ServiceClassType } from '@mediusinc/mng-commons/core';
2
- import { ModelDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
3
- import { IEditorDataProvider } from '../../editor/data-providers/editor.data-provider';
4
- import { EditorDescriptorInst } from '../../editor/descriptors/editor.descriptor';
5
- import { ActionEditorDescriptorCreateOptsProviderType, ActionEditorDescriptorInst } from './action-editor.descriptor';
6
- import { ActionDescriptorCreateOptsParentType } from './action.descriptor';
7
- export type ActionEditorProviderType<Model, Service> = ServiceClassType<Service> | IEditorDataProvider<Model, Service>;
8
- export type ActionEditorDescriptorOptsType<Model, Service, FetchInput, SubmitReturn, ValidationInput> = ActionDescriptorCreateOptsParentType & {
9
- model?: ModelDescriptor<Model>;
10
- serviceProvider?: ActionEditorProviderType<Model, Service>;
11
- fetchInputType?: TypeDescriptor<FetchInput>;
12
- submitReturnType?: TypeDescriptor<SubmitReturn>;
13
- validationType?: TypeDescriptor<ValidationInput>;
14
- };
15
- export declare const actionEditorGetProviderCfgObj: <Model, Service>(serviceOrDataProvider?: ActionEditorProviderType<Model, Service>) => ActionEditorDescriptorCreateOptsProviderType<Model, Service>;
16
- /**
17
- * Creates an ActionEditorDescriptorInst instance with the provided editor descriptor and options.
18
- *
19
- * @param {string} actionName - The name of the action to associate with the editor.
20
- * @param {EditorDescriptorInst<EditorModel, any>} editor - The editor descriptor instance to be used.
21
- * @param {ActionEditorDescriptorOptsType<Model, Service, FetchInput, SubmitReturn, ValidationInput>} [opts] - Optional configuration options for the ActionEditor.
22
- * @return {ActionEditorDescriptorInst<Model, Service, EditorModel, FetchInput, SubmitReturn, ValidationInput>} An instance of ActionEditorDescriptor with the configured parameters.
23
- */
24
- export declare function actionEditor<EditorModel, Model = EditorModel, Service = undefined, FetchInput = Model, SubmitReturn = Model, ValidationInput = Model, ParentEditorItem = undefined>(actionName: string, editor: EditorDescriptorInst<EditorModel, ParentEditorItem>, opts?: ActionEditorDescriptorOptsType<Model, Service, FetchInput, SubmitReturn, ValidationInput>): ActionEditorDescriptorInst<Model, Service, EditorModel, FetchInput, SubmitReturn, ValidationInput, ParentEditorItem>;
@@ -1,105 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { ServiceClassType, StyleSizeEnum } from '@mediusinc/mng-commons/core';
3
- import { ModelDescriptor } from '@mediusinc/mng-commons/model';
4
- import { IEditorDataProvider } from '../../editor/data-providers/editor.data-provider';
5
- import { EditorDescriptorInst } from '../../editor/descriptors/editor.descriptor';
6
- import { ActionEditorRunFnType, ActionNotificationType, ActionRunFnType } from '../models/action-descriptor.types';
7
- import { ActionEditorSubmitTypeEnum } from '../models/action.type';
8
- import { ActionDescriptorCreateOptsParentType, ActionDescriptorInst } from './action.descriptor';
9
- export type ActionEditorDescriptorConstructorOptsType<Model, Service> = ActionDescriptorCreateOptsParentType & ActionEditorDescriptorCreateOptsProviderType<Model, Service> & {
10
- model?: ModelDescriptor<Model>;
11
- isTableviewMainEditor?: boolean;
12
- };
13
- export type ActionEditorDescriptorCreateOptsProviderType<Model, Service> = {
14
- serviceType?: ServiceClassType<Service>;
15
- dataProvider?: IEditorDataProvider<Model, Service>;
16
- };
17
- export declare class ActionEditorDescriptorInst<Item, Service = any, EditorItem = Item, FetchInputItem = Item, SubmitReturnItem = Item, ValidationInputItem = Item, ParentEditorItem = undefined> extends ActionDescriptorInst<Item, Service, EditorItem, SubmitReturnItem, ValidationInputItem> {
18
- private readonly _editorDescriptor;
19
- protected readonly _dataProvider?: IEditorDataProvider<Item, any>;
20
- protected _editorActions: ActionDescriptorInst<any, any, EditorItem, any, EditorItem>[];
21
- protected _editorTitle?: string | null;
22
- protected _editorTitleParams?: any;
23
- protected _fetchNotificationOnSuccess?: ActionNotificationType | boolean;
24
- protected _fetchNotificationOnError?: ActionNotificationType | boolean;
25
- protected _dialogSize: StyleSizeEnum;
26
- protected _dialogClassName?: string;
27
- protected _fetchFunction?: ActionEditorRunFnType<Item, ParentEditorItem, Service, FetchInputItem, EditorItem>;
28
- protected _submitFunction?: ActionEditorRunFnType<Item, ParentEditorItem, Service, EditorItem, SubmitReturnItem>;
29
- protected _editorComponent?: Type<any>;
30
- protected _resubmitEnabled?: boolean;
31
- protected _resubmitRefetch: boolean;
32
- protected _unsavedChangesConfirmation: boolean;
33
- constructor(editorDescriptor: EditorDescriptorInst<EditorItem, any>, actionName: string, cfg?: ActionEditorDescriptorConstructorOptsType<Item, Service>);
34
- get editorTitle(): string | null | undefined;
35
- get editorTitleParams(): any;
36
- get editorDescriptor(): EditorDescriptorInst<EditorItem, ParentEditorItem>;
37
- get dialogSize(): StyleSizeEnum;
38
- get dialogClassName(): string | undefined;
39
- get fetchNotificationOnSuccess(): boolean | ActionNotificationType | undefined;
40
- get fetchNotificationOnError(): boolean | ActionNotificationType | undefined;
41
- get dataProvider(): IEditorDataProvider<Item, any> | undefined;
42
- get hasRunFunction(): boolean;
43
- get runFunction(): ActionRunFnType<Item, Service, EditorItem, SubmitReturnItem>;
44
- get hasFetchFunction(): boolean;
45
- get fetchFunction(): ActionEditorRunFnType<Item, ParentEditorItem, Service, FetchInputItem, EditorItem> | undefined;
46
- get hasSubmitFunction(): boolean;
47
- get submitFunction(): ActionEditorRunFnType<Item, ParentEditorItem, Service, EditorItem, SubmitReturnItem> | undefined;
48
- get editorActions(): ActionDescriptorInst<any, any, EditorItem, any, EditorItem>[];
49
- get editorComponent(): Type<any> | undefined;
50
- get resubmitEnabled(): boolean | undefined;
51
- get resubmitRefetch(): boolean;
52
- get unsavedChangesConfirmation(): boolean;
53
- withEditorTitle(title: string | null, params?: any): this;
54
- withDialogSize(size?: StyleSizeEnum): this;
55
- withDialogClassName(className: string): this;
56
- withRunFunction(fn: ActionEditorRunFnType<Item, ParentEditorItem, Service, EditorItem, SubmitReturnItem>): this;
57
- withFetchFunction(fn: ActionEditorRunFnType<Item, ParentEditorItem, Service, FetchInputItem, EditorItem>): this;
58
- withSubmitFunction(fn: ActionEditorRunFnType<Item, ParentEditorItem, Service, EditorItem, SubmitReturnItem>): this;
59
- /**
60
- * Override default notifications setup. Notifications can either be overridden with custom text or turned on/off.
61
- *
62
- * @param opts Provide config for texts or on/off flag for submit (is same as run) or fetch success/error notifications.
63
- */
64
- withNotifications(opts?: {
65
- submitOnSuccess?: ActionNotificationType | boolean;
66
- submitOnError?: ActionNotificationType | boolean;
67
- runOnSuccess?: ActionNotificationType | boolean;
68
- runOnError?: ActionNotificationType | boolean;
69
- fetchOnSuccess?: ActionNotificationType | boolean;
70
- fetchOnError?: ActionNotificationType | boolean;
71
- } | boolean): this;
72
- withEditorAction(action: ActionDescriptorInst<any, any, EditorItem, any, EditorItem>): this;
73
- withEditorActions(actions: ActionDescriptorInst<any, any, EditorItem, any, EditorItem>[]): this;
74
- withEditorComponent(editorComponent: Type<any>): this;
75
- /**
76
- * Enables or disables resubmit resubmit - this means the form will not exit after successful submission, but will instead remain open.
77
- *
78
- * @param {boolean} [enabled=true] - Specifies whether resubmit is enabled or disabled. Defaults to true if not provided.
79
- * @param {boolean} [refetch=true] - Specifies whether the data should be refetched after resubmit. If not, the data in the form stays as is. Defaults to true if not provided.
80
- *
81
- * @returns {this} - Returns the current instance with the resubmit configuration updated.
82
- */
83
- withResubmit(enabled?: boolean, refetch?: boolean): this;
84
- withUnsavedChangesConfirmation(unsavedChangesConfirmation?: boolean): this;
85
- copyFieldsTo(descriptor: ActionEditorDescriptorInst<Item, Service, EditorItem, FetchInputItem, SubmitReturnItem, ValidationInputItem, ParentEditorItem>): ActionEditorDescriptorInst<Item, Service, EditorItem, FetchInputItem, SubmitReturnItem, ValidationInputItem, ParentEditorItem>;
86
- copy(): ActionEditorDescriptorInst<Item, Service, EditorItem, FetchInputItem, SubmitReturnItem, ValidationInputItem, ParentEditorItem>;
87
- }
88
- export declare class ActionEditorSubmitDescriptorInst<Model, EditorModel> extends ActionDescriptorInst<Model, undefined, EditorModel, EditorModel, EditorModel> {
89
- private readonly _submitType;
90
- constructor(editorActionName: string, editorActionModel: ModelDescriptor<Model> | undefined, submitType?: ActionEditorSubmitTypeEnum);
91
- get submitType(): ActionEditorSubmitTypeEnum;
92
- copy(): ActionEditorSubmitDescriptorInst<Model, EditorModel>;
93
- }
94
- /**
95
- * creates primary action with primary button style
96
- * @param editorAction
97
- * @param submitType
98
- */
99
- export declare function actionEditorSubmit<Model, EditorModel>(editorAction: ActionEditorDescriptorInst<Model, any, EditorModel, any, any, any, any>, submitType?: ActionEditorSubmitTypeEnum): ActionEditorSubmitDescriptorInst<Model, EditorModel>;
100
- /**
101
- * creates secondary button with text button style
102
- * @param editorAction
103
- * @param submitType
104
- */
105
- export declare function actionEditorCancel<Model, EditorModel>(editorAction: ActionEditorDescriptorInst<Model, any, EditorModel, any, any, any, any>, submitType?: ActionEditorSubmitTypeEnum): ActionEditorSubmitDescriptorInst<Model, EditorModel>;
@@ -1,23 +0,0 @@
1
- import { ModelDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
2
- import { ActionLinkDescriptorInst } from './action-link.descriptor';
3
- import { ActionDescriptorCreateOptsParentType, ActionDescriptorInst } from './action.descriptor';
4
- type ActionLinkCreateOptsType<Model, ValidationInput> = ActionDescriptorCreateOptsParentType & {
5
- model?: ModelDescriptor<Model>;
6
- validationType?: TypeDescriptor<ValidationInput>;
7
- };
8
- /**
9
- * Creates an instance of ActionLinkDescriptorInst with the provided action name and options.
10
- *
11
- * @param {string} actionName - The unique name of the action.
12
- * @param {ActionLinkCreateOptsType<Model, ValidationInput>} [opts] - Optional parameters for configuring the action link, including the model and validation type.
13
- * @return {ActionLinkDescriptorInst<Model, ValidationInput>} An instance of ActionLinkDescriptorInst initialized with the action name and options.
14
- */
15
- export declare function actionLink<Model = any, ValidationInput = Model>(actionName: string, opts?: ActionLinkCreateOptsType<Model, ValidationInput>): ActionLinkDescriptorInst<Model, ValidationInput>;
16
- /**
17
- * Generates an ActionLinkDescriptorInst from the provided ActionDescriptorInst.
18
- *
19
- * @param {ActionDescriptorInst<Model, any, any, any, ValidationInput>} action - The action descriptor instance that serves as the basis for the action link.
20
- * @return {ActionLinkDescriptorInst<Model, ValidationInput>} A newly created ActionLinkDescriptorInst configured with the provided action parameters.
21
- */
22
- export declare function actionLinkFromAction<Model, ValidationInput = Model>(action: ActionDescriptorInst<Model, any, any, any, ValidationInput>): ActionLinkDescriptorInst<Model, ValidationInput>;
23
- export {};
@@ -1,27 +0,0 @@
1
- import { Params, QueryParamsHandling } from '@angular/router';
2
- import { ActionDescriptorConstructorOptsType, ActionDescriptorInst } from './action.descriptor';
3
- export type ActionLinkDescriptorConstructorOpts<Model> = Omit<ActionDescriptorConstructorOptsType<Model, undefined>, 'serviceType' | 'dataProvider'>;
4
- export declare class ActionLinkDescriptorInst<Item, ValidationInputItem = Item> extends ActionDescriptorInst<Item, undefined, undefined, undefined, ValidationInputItem> {
5
- private _url;
6
- private _pathSegments;
7
- private _queryParams?;
8
- private _queryParamsHandling?;
9
- private _replaceUrl;
10
- private _target;
11
- private _isStyleLink;
12
- constructor(actionName?: string, cfg?: ActionLinkDescriptorConstructorOpts<Item>);
13
- get url(): string;
14
- get pathSegments(): string[];
15
- get queryParams(): Params | undefined;
16
- get queryParamsHandling(): QueryParamsHandling | undefined;
17
- get replaceUrl(): boolean;
18
- get target(): string;
19
- get isStyleLink(): boolean;
20
- withHref(url: string): this;
21
- withRouterLink(...pathSegments: string[]): this;
22
- withQueryParams(queryParams: Params, queryParamsHandling?: QueryParamsHandling): this;
23
- withReplaceUrl(replaceUrl?: boolean): this;
24
- withTarget(target?: '_self' | '_blank'): this;
25
- withStyleLink(isStyleLink: boolean): this;
26
- copy(): ActionLinkDescriptorInst<Item, ValidationInputItem>;
27
- }