@mediusinc/mng-commons 5.0.0-rc.0 → 5.0.0-rc.1

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 (245) hide show
  1. package/core/data-list/data-list-params-helpers.d.ts +82 -0
  2. package/core/descriptors/action.descriptor.d.ts +3 -3
  3. package/core/descriptors/column.descriptor.d.ts +1 -1
  4. package/core/descriptors/editor.descriptor.d.ts +6 -6
  5. package/core/descriptors/enum.descriptor.d.ts +6 -0
  6. package/core/descriptors/filter.descriptor.d.ts +1 -1
  7. package/core/descriptors/model.descriptor.d.ts +1 -1
  8. package/core/descriptors/table.descriptor.d.ts +6 -6
  9. package/core/descriptors/tableview.descriptor.d.ts +10 -10
  10. package/core/enum/enum-helpers.d.ts +49 -0
  11. package/core/error/error-helpers.d.ts +114 -0
  12. package/core/helpers/date.d.ts +14 -0
  13. package/core/helpers/object.d.ts +27 -0
  14. package/core/helpers/route.d.ts +35 -0
  15. package/core/helpers/string.d.ts +7 -0
  16. package/core/helpers/templates.d.ts +3 -0
  17. package/core/i18n/i18n-common.d.ts +6 -0
  18. package/core/i18n/i18n-error.d.ts +4 -0
  19. package/core/i18n/i18n-type.d.ts +20 -0
  20. package/core/index.d.ts +15 -9
  21. package/{model → core}/pipes/enum.pipe.d.ts +2 -2
  22. package/core/pipes/enumerate.pipe.d.ts +3 -3
  23. package/{model → core}/pipes/i18n-property.pipe.d.ts +2 -2
  24. package/core/pipes/template.pipe.d.ts +0 -2
  25. package/core/router/route-builder.d.ts +2 -4
  26. package/core/router/routes-builder.d.ts +5 -6
  27. package/core/security/permission-helpers.d.ts +3 -0
  28. package/core/security/permissions.model.d.ts +2 -2
  29. package/esm2022/core/components/notification/notification-wrapper.component.mjs +4 -4
  30. package/esm2022/core/components/pages/error/error.page.component.mjs +3 -3
  31. package/esm2022/core/components/pages/not-found/not-found.page.component.mjs +3 -3
  32. package/esm2022/core/data-list/data-list-params-helpers.mjs +415 -0
  33. package/esm2022/core/data-list/filter-match.model.mjs +1 -1
  34. package/esm2022/core/data-providers/base.data-provider.mjs +1 -1
  35. package/esm2022/core/descriptors/action.descriptor.mjs +1 -1
  36. package/esm2022/core/descriptors/column.descriptor.mjs +1 -1
  37. package/esm2022/core/descriptors/editor.descriptor.mjs +1 -1
  38. package/esm2022/core/descriptors/enum.descriptor.mjs +2 -0
  39. package/esm2022/core/descriptors/filter.descriptor.mjs +1 -1
  40. package/esm2022/core/descriptors/model.descriptor.mjs +1 -1
  41. package/esm2022/core/descriptors/table.descriptor.mjs +1 -1
  42. package/esm2022/core/descriptors/tableview.descriptor.mjs +1 -1
  43. package/esm2022/core/directives/component.directive.mjs +4 -4
  44. package/esm2022/core/directives/dialog-keydown-handler.directive.mjs +4 -4
  45. package/esm2022/core/directives/template.directive.mjs +3 -3
  46. package/esm2022/core/enum/enum-helpers.mjs +81 -0
  47. package/esm2022/core/error/error-handler.mjs +3 -3
  48. package/esm2022/core/error/error-helpers.mjs +247 -0
  49. package/esm2022/core/helpers/coercion.mjs +1 -1
  50. package/esm2022/core/helpers/date.mjs +119 -0
  51. package/esm2022/core/helpers/object.mjs +145 -0
  52. package/esm2022/core/helpers/route.mjs +58 -0
  53. package/esm2022/core/helpers/string.mjs +57 -0
  54. package/esm2022/core/helpers/templates.mjs +4 -0
  55. package/esm2022/core/i18n/i18n-common.mjs +24 -0
  56. package/esm2022/core/i18n/i18n-error.mjs +27 -0
  57. package/esm2022/core/i18n/i18n-type.mjs +79 -0
  58. package/esm2022/core/index.mjs +17 -11
  59. package/esm2022/core/log/log-publisher-console.service.mjs +3 -3
  60. package/esm2022/core/log/logger.service.mjs +3 -3
  61. package/esm2022/core/pipes/boolean.pipe.mjs +4 -4
  62. package/esm2022/core/pipes/class-map.pipe.mjs +4 -4
  63. package/esm2022/core/pipes/enum.pipe.mjs +27 -0
  64. package/esm2022/core/pipes/enumerate-async.pipe.mjs +8 -8
  65. package/esm2022/core/pipes/enumerate.pipe.mjs +10 -10
  66. package/esm2022/core/pipes/getter.pipe.mjs +4 -4
  67. package/esm2022/core/pipes/i18n-property.pipe.mjs +19 -0
  68. package/esm2022/core/pipes/json-path.pipe.mjs +6 -6
  69. package/esm2022/core/pipes/parametrize.pipe.mjs +6 -6
  70. package/esm2022/core/pipes/template.pipe.mjs +7 -8
  71. package/esm2022/core/provide.mjs +1 -21
  72. package/esm2022/core/reflect/type-enum-metadata.mjs +1 -1
  73. package/esm2022/core/registry/type-registry.mjs +1 -1
  74. package/esm2022/core/router/route-builder.mjs +8 -24
  75. package/esm2022/core/router/routes-builder.mjs +17 -16
  76. package/esm2022/core/security/permission-helpers.mjs +14 -0
  77. package/esm2022/core/security/permission.guard.mjs +1 -1
  78. package/esm2022/core/security/permission.service.mjs +6 -6
  79. package/esm2022/core/security/permissions.model.mjs +1 -1
  80. package/esm2022/core/services/commons-configuration.service.mjs +6 -6
  81. package/esm2022/core/services/commons-init.service.mjs +4 -4
  82. package/esm2022/core/services/commons-router.service.mjs +4 -4
  83. package/esm2022/core/services/commons.service.mjs +4 -4
  84. package/esm2022/core/services/local-storage-config.service.mjs +4 -4
  85. package/esm2022/filter/descriptors/filter-lookup.descriptor.mjs +9 -10
  86. package/esm2022/filter/descriptors/filter.descriptor.mjs +1 -1
  87. package/esm2022/form/api/data-providers/lookup.data-provider.mjs +1 -1
  88. package/esm2022/form/api/descriptors/button-style.builder.mjs +1 -1
  89. package/esm2022/form/components/autocomplete/autocomplete.component.mjs +7 -7
  90. package/esm2022/form/components/date-range/date-range.component.mjs +4 -4
  91. package/esm2022/form/components/dropdown/dropdown.component.mjs +7 -7
  92. package/esm2022/form/directives/input-trim.directive.mjs +4 -4
  93. package/esm2022/model/descriptors/enum.descriptor.mjs +1 -1
  94. package/esm2022/model/descriptors/model.descriptor.mjs +4 -4
  95. package/esm2022/model/helpers/i18n.mjs +45 -0
  96. package/esm2022/model/helpers/model.mjs +71 -0
  97. package/esm2022/model/index.mjs +4 -7
  98. package/esm2022/table/api/data-providers/table.data-provider.mjs +1 -1
  99. package/esm2022/table/api/descriptors/column.descriptor.mjs +1 -1
  100. package/esm2022/table/api/descriptors/table.descriptor.mjs +36 -8
  101. package/esm2022/table/api/helpers/class-attribute-converter.mjs +1 -1
  102. package/esm2022/table/components/column-filter-full/column-filter-full.component.mjs +9 -9
  103. package/esm2022/table/components/column-value/column-value.component.mjs +12 -14
  104. package/esm2022/table/components/table/table.component.mjs +20 -37
  105. package/esm2022/table/helpers/notification.mjs +4 -4
  106. package/esm2022/table/pipes/locale-default-row-class.pipe.mjs +4 -4
  107. package/esm2022/table/pipes/table-column-filter-class.pipe.mjs +4 -4
  108. package/esm2022/table/services/data-list.service.mjs +3 -3
  109. package/esm2022/tableview/action/components/action/action.component.mjs +9 -9
  110. package/esm2022/tableview/action/components/editor/action-editor.component.mjs +4 -4
  111. package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +6 -6
  112. package/esm2022/tableview/action/components/localization/data-language-dropdown.component.mjs +3 -3
  113. package/esm2022/tableview/action/components/route/action-route.component.mjs +4 -4
  114. package/esm2022/tableview/action/components/table/action-table.component.mjs +12 -24
  115. package/esm2022/tableview/action/helpers/i18n.mjs +82 -0
  116. package/esm2022/tableview/action/helpers/notification.mjs +8 -8
  117. package/esm2022/tableview/action/helpers/styles.mjs +1 -1
  118. package/esm2022/tableview/action/models/execution/action-context.model.mjs +1 -1
  119. package/esm2022/tableview/action/models/execution/action-instance.model.mjs +1 -1
  120. package/esm2022/tableview/action/services/action-error-mapper.service.mjs +1 -1
  121. package/esm2022/tableview/action/services/action-executor.service.mjs +9 -8
  122. package/esm2022/tableview/action/services/component-action-executor.service.mjs +3 -3
  123. package/esm2022/tableview/action/services/data-provider-executor.service.mjs +3 -3
  124. package/esm2022/tableview/action/services/navigation.service.mjs +4 -4
  125. package/esm2022/tableview/action/services/providers/provide-view-container.mjs +1 -1
  126. package/esm2022/tableview/action/services/root-action-executor.service.mjs +3 -3
  127. package/esm2022/tableview/action/services/view-container.service.mjs +3 -3
  128. package/esm2022/tableview/api/action/descriptors/action-confirmation.descriptor.mjs +1 -1
  129. package/esm2022/tableview/api/action/descriptors/action-editor.descriptor.mjs +1 -1
  130. package/esm2022/tableview/api/action/descriptors/action.descriptor.mjs +1 -1
  131. package/esm2022/tableview/api/action/helpers/data-provider-executors.mjs +1 -1
  132. package/esm2022/tableview/api/editor/data-providers/editor.data-provider.mjs +1 -1
  133. package/esm2022/tableview/api/editor/descriptors/editor.descriptor.mjs +4 -4
  134. package/esm2022/tableview/api/editor/descriptors/field-action.descriptor.mjs +1 -1
  135. package/esm2022/tableview/api/editor/descriptors/field-base.descriptor.mjs +3 -3
  136. package/esm2022/tableview/api/editor/descriptors/field-group.descriptor.mjs +1 -1
  137. package/esm2022/tableview/api/editor/descriptors/field-lookup.descriptor.mjs +8 -8
  138. package/esm2022/tableview/api/editor/descriptors/field-many.descriptor.mjs +1 -1
  139. package/esm2022/tableview/api/editor/descriptors/field.descriptor.mjs +4 -4
  140. package/esm2022/tableview/api/editor/helpers/class-attribute-converter.mjs +1 -1
  141. package/esm2022/tableview/api/editor/helpers/field-validators.mjs +1 -1
  142. package/esm2022/tableview/api/editor/models/editor-fields.model.mjs +1 -1
  143. package/esm2022/tableview/api/editor/models/formly-custom-field.model.mjs +3 -3
  144. package/esm2022/tableview/api/tableview/data-providers/tableview.data-provider.mjs +1 -1
  145. package/esm2022/tableview/api/tableview/descriptors/tableview.descriptor.mjs +4 -4
  146. package/esm2022/tableview/api/tableview/helpers/class-attribute-converter.mjs +1 -1
  147. package/esm2022/tableview/api/tableview/helpers/files-export.mjs +1 -1
  148. package/esm2022/tableview/api/tableview/helpers/tableview-default-actions.mjs +4 -4
  149. package/esm2022/tableview/api/tableview/helpers/tableview-input-builder.mjs +1 -1
  150. package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +9 -9
  151. package/esm2022/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.mjs +4 -4
  152. package/esm2022/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +4 -4
  153. package/esm2022/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.mjs +3 -3
  154. package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +4 -4
  155. package/esm2022/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +3 -3
  156. package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +4 -4
  157. package/esm2022/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.mjs +3 -3
  158. package/esm2022/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +7 -7
  159. package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +4 -4
  160. package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +9 -9
  161. package/esm2022/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +3 -3
  162. package/esm2022/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +4 -4
  163. package/esm2022/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +4 -4
  164. package/esm2022/tableview/editor/helpers/editor-formly.mjs +335 -0
  165. package/esm2022/tableview/editor/helpers/formly-config.mjs +1 -1
  166. package/esm2022/tableview/editor/services/formly-config.provider.mjs +1 -1
  167. package/esm2022/tableview/index.mjs +3 -5
  168. package/esm2022/tableview/provide.mjs +2 -1
  169. package/esm2022/tableview/tableview/components/route/tableview-route.component.mjs +3 -3
  170. package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +10 -19
  171. package/esm2022/tableview/tableview/router/tableview-route-builder.mjs +1 -1
  172. package/fesm2022/mediusinc-mng-commons-core.mjs +1367 -1389
  173. package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
  174. package/fesm2022/mediusinc-mng-commons-filter.mjs +8 -9
  175. package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
  176. package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
  177. package/fesm2022/mediusinc-mng-commons-form.mjs +17 -17
  178. package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
  179. package/fesm2022/mediusinc-mng-commons-model.mjs +99 -148
  180. package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
  181. package/fesm2022/mediusinc-mng-commons-table-api.mjs +35 -7
  182. package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
  183. package/fesm2022/mediusinc-mng-commons-table.mjs +48 -65
  184. package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
  185. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +19 -19
  186. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
  187. package/fesm2022/mediusinc-mng-commons-tableview.mjs +507 -572
  188. package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
  189. package/filter/descriptors/filter.descriptor.d.ts +2 -2
  190. package/model/descriptors/model.descriptor.d.ts +2 -2
  191. package/model/helpers/i18n.d.ts +10 -0
  192. package/model/helpers/model.d.ts +5 -0
  193. package/model/index.d.ts +2 -4
  194. package/package.json +7 -7
  195. package/table/api/descriptors/table.descriptor.d.ts +10 -0
  196. package/table/components/column-value/column-value.component.d.ts +3 -4
  197. package/table/components/table/table.component.d.ts +13 -13
  198. package/tableview/action/components/table/action-table.component.d.ts +6 -6
  199. package/tableview/action/helpers/i18n.d.ts +22 -0
  200. package/tableview/action/models/execution/action-instance-state.model.d.ts +21 -21
  201. package/tableview/action/services/action-executor.service.d.ts +1 -1
  202. package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +1 -1
  203. package/tableview/api/action/descriptors/action.descriptor.d.ts +3 -3
  204. package/tableview/api/action/models/action.type.d.ts +2 -2
  205. package/tableview/api/action/models/execution/action-instance-state.model.d.ts +21 -21
  206. package/tableview/api/editor/descriptors/editor.descriptor.d.ts +2 -2
  207. package/tableview/api/editor/descriptors/field-action.descriptor.d.ts +2 -2
  208. package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +5 -5
  209. package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +4 -4
  210. package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +4 -4
  211. package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +4 -4
  212. package/tableview/api/editor/descriptors/field.descriptor.d.ts +2 -2
  213. package/tableview/api/editor/models/editor-fields.model.d.ts +3 -3
  214. package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +2 -2
  215. package/tableview/editor/helpers/editor-formly.d.ts +10 -0
  216. package/tableview/index.d.ts +2 -2
  217. package/tableview/tableview/components/tableview/tableview.component.d.ts +5 -5
  218. package/core/data-list/data-list-params.util.d.ts +0 -84
  219. package/core/enum/enum.util.d.ts +0 -51
  220. package/core/error/error.util.d.ts +0 -116
  221. package/core/security/permission.util.d.ts +0 -5
  222. package/core/utils/date.util.d.ts +0 -20
  223. package/core/utils/i18n.util.d.ts +0 -36
  224. package/core/utils/object.util.d.ts +0 -31
  225. package/core/utils/route.util.d.ts +0 -37
  226. package/core/utils/string.util.d.ts +0 -9
  227. package/esm2022/core/data-list/data-list-params.util.mjs +0 -417
  228. package/esm2022/core/enum/enum.util.mjs +0 -83
  229. package/esm2022/core/error/error.util.mjs +0 -249
  230. package/esm2022/core/security/permission.util.mjs +0 -16
  231. package/esm2022/core/utils/date.util.mjs +0 -136
  232. package/esm2022/core/utils/i18n.util.mjs +0 -137
  233. package/esm2022/core/utils/object.util.mjs +0 -147
  234. package/esm2022/core/utils/route.util.mjs +0 -60
  235. package/esm2022/core/utils/string.util.mjs +0 -59
  236. package/esm2022/model/pipes/enum.pipe.mjs +0 -26
  237. package/esm2022/model/pipes/i18n-property.pipe.mjs +0 -19
  238. package/esm2022/model/utils/i18n.util.mjs +0 -51
  239. package/esm2022/model/utils/model.util.mjs +0 -73
  240. package/esm2022/tableview/action/utils/i18n.util.mjs +0 -126
  241. package/esm2022/tableview/editor/utils/editor-formly.util.mjs +0 -337
  242. package/model/utils/i18n.util.d.ts +0 -15
  243. package/model/utils/model.util.d.ts +0 -8
  244. package/tableview/action/utils/i18n.util.d.ts +0 -48
  245. package/tableview/editor/utils/editor-formly.util.d.ts +0 -12
@@ -1,4 +1,4 @@
1
- import { ArrayItemType, EnumConstantType, ITableviewDescriptorInternal, IdType, Nullable } from '@mediusinc/mng-commons/core';
1
+ import { ArrayItemType, EnumConstantType, ITableviewDescriptor, IdType, Nullable } from '@mediusinc/mng-commons/core';
2
2
  import { EnumDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
3
3
  import { ITableDataProvider, ITableDescriptorInternal } from '@mediusinc/mng-commons/table/api';
4
4
  import { AFieldDescriptor } from '../descriptors/field-base.descriptor';
@@ -25,8 +25,8 @@ export interface IFieldsManageInterface<EditorModel> {
25
25
  addFieldLookupWithProviderAndOptionsValuePropertyUnsafe<Service, FieldModel, FieldValue = FieldModel>(property: string, provider: FieldLookupProviderType<FieldModel, Service>, type: TypeDescriptor<FieldModel>, lookupOptionsValueProperty: string): FieldLookupDescriptor<FieldModel, EditorModel, Service, FieldValue>;
26
26
  addFieldLookupEnum<Property extends keyof EditorModel, Enum extends NonNullable<EditorModel[Property]>>(property: keyof EditorModel, enumModel: EnumDescriptor<Enum>, options?: Array<Enum>): FieldLookupEnumDescriptor<Enum, EditorModel>;
27
27
  addFieldLookupEnumUnsafe<Enum = EnumConstantType>(property: string, enumModel: EnumDescriptor<Enum>, options?: Array<Enum>): FieldLookupEnumDescriptor<Enum, EditorModel>;
28
- addFieldManyEditor<Property extends keyof EditorModel, FieldModel = ArrayItemType<EditorModel[Property]>, FieldValue = EditorModel[Property]>(property: Property, tableviewDescriptor: ITableviewDescriptorInternal<FieldModel, any, any>): FieldManyEditorDescriptor<FieldModel, EditorModel, FieldValue>;
29
- addFieldManyEditorUnsafe<FieldModel, FieldValue = FieldModel[]>(property: string, tableviewDescriptor: ITableviewDescriptorInternal<FieldModel, any, any>): FieldManyEditorDescriptor<FieldModel, EditorModel, FieldValue>;
28
+ addFieldManyEditor<Property extends keyof EditorModel, FieldModel = ArrayItemType<EditorModel[Property]>, FieldValue = EditorModel[Property]>(property: Property, tableviewDescriptor: ITableviewDescriptor<FieldModel, any, any>): FieldManyEditorDescriptor<FieldModel, EditorModel, FieldValue>;
29
+ addFieldManyEditorUnsafe<FieldModel, FieldValue = FieldModel[]>(property: string, tableviewDescriptor: ITableviewDescriptor<FieldModel, any, any>): FieldManyEditorDescriptor<FieldModel, EditorModel, FieldValue>;
30
30
  addFieldManyToManyEditor<Property extends keyof EditorModel, FieldModel = ArrayItemType<EditorModel[Property]>, FieldValue = EditorModel[Property]>(property: Property, mainTableDescriptor: ITableDescriptorInternal<FieldModel>, lookupTableDescriptor: ITableDescriptorInternal<FieldModel>): FieldManyToManyEditorDescriptor<FieldModel, EditorModel, undefined, FieldValue>;
31
31
  addFieldManyToManyEditorUnsafe<FieldModel, FieldValue = FieldModel[]>(property: string, mainTableDescriptor: ITableDescriptorInternal<FieldModel>, lookupTableDescriptor: ITableDescriptorInternal<FieldModel>): FieldManyToManyEditorDescriptor<FieldModel, EditorModel, undefined, FieldValue>;
32
32
  addFieldManyToManyEditorWithProvider<Property extends keyof EditorModel, Service, FieldModel = ArrayItemType<EditorModel[Property]>, FieldValue = EditorModel[Property]>(property: Property, mainTableDescriptor: ITableDescriptorInternal<FieldModel>, lookupTableDescriptor: ITableDescriptorInternal<FieldModel>, lookupDataProvider: ITableDataProvider<FieldModel, Service>): FieldManyToManyEditorDescriptor<FieldModel, EditorModel, Service, FieldValue>;
@@ -1,5 +1,5 @@
1
1
  import { FieldValidatorFn } from '@ngx-formly/core/lib/models/config';
2
- import { ArrayItemType, ClassType, EnumConstantType, ILookupDataProvider, ITableviewDescriptorInternal, IdType, KeyofAndOfType, Nullable } from '@mediusinc/mng-commons/core';
2
+ import { ArrayItemType, ClassType, EnumConstantType, ILookupDataProvider, ITableviewDescriptor, IdType, KeyofAndOfType, Nullable } from '@mediusinc/mng-commons/core';
3
3
  import { FilterDescriptor } from '@mediusinc/mng-commons/filter';
4
4
  import { EnumDescriptor, ModelDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
5
5
  import { ColumnDescriptor, ColumnDisplayTypeEnum, ColumnTypeEnum, IColumnsManageInterface, ITableDataProvider, TableDescriptorInst, TableDynamicDescriptorInst } from '@mediusinc/mng-commons/table/api';
@@ -11,7 +11,7 @@ import { IFieldsManageInterface } from '../../editor/models/editor-fields.model'
11
11
  import { TableviewEditorTypeEnum } from '../../editor/models/editor.model';
12
12
  import { FieldInputTypeEnum } from '../../editor/models/field.model';
13
13
  import { TableviewClassAttributeDef } from '../models/class-tableview-attribute.model';
14
- export declare class TableviewDescriptorInst<TableviewModel, Sorts = keyof TableviewModel, Filters = keyof TableviewModel> implements ITableviewDescriptorInternal<TableviewModel, Sorts, Filters>, IColumnsManageInterface<TableviewModel, Sorts, Filters>, IFieldsManageInterface<TableviewModel> {
14
+ export declare class TableviewDescriptorInst<TableviewModel, Sorts = keyof TableviewModel, Filters = keyof TableviewModel> implements ITableviewDescriptor<TableviewModel, Sorts, Filters>, IColumnsManageInterface<TableviewModel, Sorts, Filters>, IFieldsManageInterface<TableviewModel> {
15
15
  private readonly _model;
16
16
  protected _table: TableDescriptorInst<TableviewModel, Sorts, Filters>;
17
17
  protected _detailsEditor: EditorDescriptorInst<TableviewModel>;
@@ -0,0 +1,10 @@
1
+ import { FormlyFieldConfig } from '@ngx-formly/core';
2
+ import { AFieldDescriptor, EditorDescriptorInst, FieldGroupDescriptor, FieldTabGroupDescriptor, FieldValidationDescriptor, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
3
+ export declare function createFormlyConfigFromDescriptor(descriptor: EditorDescriptorInst<any>, formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig[];
4
+ export declare function createFormlyLocalizationsTab(descriptor: EditorDescriptorInst<any>): EditorDescriptorInst<any>;
5
+ export declare function createFormlyTabType(tabGroups: FieldTabGroupDescriptor<any>[], formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig[];
6
+ export declare function createFormlyGroupType(groups: FieldGroupDescriptor<any>[], formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig[];
7
+ export declare function createFormlyFields(descriptor: FieldGroupDescriptor<any>, formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig[];
8
+ export declare function createFormlyField(descriptor: AFieldDescriptor<any, any>, formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig;
9
+ export declare function addValidationsToFormlyField(config: FormlyFieldConfig, validations: Array<FieldValidationDescriptor>): void;
10
+ export declare function addAsyncValidationsToFormlyField(config: FormlyFieldConfig, asyncValidations: Array<FieldValidationDescriptor>): void;
@@ -4,6 +4,7 @@ export * from './action/components/localization/data-language-dropdown.component
4
4
  export * from './action/components/route/action-route.component';
5
5
  export * from './action/components/table/action-table.component';
6
6
  export * from './action/guards/unsaved-changes.guard';
7
+ export * from './action/helpers/i18n';
7
8
  export * from './action/helpers/notification';
8
9
  export * from './action/helpers/styles';
9
10
  export * from './action/models/execution/action-context.model';
@@ -21,7 +22,6 @@ export * from './action/services/data-provider-executor.service';
21
22
  export * from './action/services/navigation.service';
22
23
  export * from './action/services/root-action-executor.service';
23
24
  export * from './action/services/view-container.service';
24
- export * from './action/utils/i18n.util';
25
25
  export * from './editor/components/editor/form-editor.component';
26
26
  export * from './editor/components/formly/fields/formly-field-action/formly-field-action.component';
27
27
  export * from './editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component';
@@ -36,11 +36,11 @@ export * from './editor/components/formly/fields/formly-field-table-dialog-multi
36
36
  export * from './editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component';
37
37
  export * from './editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component';
38
38
  export * from './editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component';
39
+ export * from './editor/helpers/editor-formly';
39
40
  export * from './editor/helpers/formly-config';
40
41
  export * from './editor/helpers/notification';
41
42
  export * from './editor/models/formly-config.model';
42
43
  export * from './editor/services/formly-config.provider';
43
- export * from './editor/utils/editor-formly.util';
44
44
  export * from './tableview/components/route/tableview-route.component';
45
45
  export * from './tableview/components/tableview/tableview.component';
46
46
  export * from './tableview/router/tableview-route-builder';
@@ -1,10 +1,10 @@
1
- import { AfterContentInit, OnInit, QueryList, TemplateRef } from '@angular/core';
1
+ import { OnInit, Signal, TemplateRef } from '@angular/core';
2
2
  import { DataListParams, TemplateDirective } from '@mediusinc/mng-commons/core';
3
3
  import { TableLoadEvent } from '@mediusinc/mng-commons/table/api';
4
4
  import { ActionDescriptorInst, ITableviewDataProvider, TableviewDescriptorInst } from '@mediusinc/mng-commons/tableview/api';
5
5
  import { ViewContainer } from '../../../action/services/view-container.service';
6
6
  import * as i0 from "@angular/core";
7
- export declare class TableviewComponent<Item = any, Service = undefined, Sorts = keyof Item, Filters extends keyof any = keyof Item> implements OnInit, AfterContentInit {
7
+ export declare class TableviewComponent<Item = any, Service = undefined, Sorts = keyof Item, Filters extends keyof any = keyof Item> implements OnInit {
8
8
  readonly viewContainer: ViewContainer<any, any> | null;
9
9
  descriptor: TableviewDescriptorInst<Item, Sorts, Filters>;
10
10
  dataProvider?: ITableviewDataProvider<Item, Service, Sorts, Filters>;
@@ -15,10 +15,10 @@ export declare class TableviewComponent<Item = any, Service = undefined, Sorts =
15
15
  tableParams?: DataListParams;
16
16
  hasItemSelectionAction: boolean;
17
17
  selectedItems: Item[];
18
- templates: QueryList<TemplateDirective>;
19
- footerTemplate?: TemplateRef<any>;
18
+ templates: Signal<readonly TemplateDirective[]>;
19
+ footerTemplate: Signal<TemplateRef<any> | null>;
20
+ rowExpandTemplate: Signal<TemplateRef<any> | null>;
20
21
  ngOnInit(): void;
21
- ngAfterContentInit(): void;
22
22
  onTableLoad(event: TableLoadEvent): void;
23
23
  selectionChange(selectedItems: Array<Item>): void;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<TableviewComponent<any, any, any, any>, never>;
@@ -1,84 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { TableLazyLoadEvent } from 'primeng/table';
3
- import { DataListFilter, DataListParams } from './data-list.model';
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 {CommonsInternalError} - 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 {CommonsInternalError} If an undefined value is passed without allowNull set to true.
81
- * @throws {CommonsInternalError} If the value is an object (excluding Date).
82
- */
83
- static filterValueToUrlParam(value: unknown, allowNull?: boolean): string;
84
- }
@@ -1,51 +0,0 @@
1
- import { EnumConstantType, EnumType } from '../helpers/type-helpers';
2
- import { EnumValue } from './enum.model';
3
- export declare class EnumUtil {
4
- /**
5
- * Returns array of names for constants in enum.
6
- * @param enumType Enum object.
7
- */
8
- static getConstantNames(enumType: EnumType): Array<string>;
9
- /**
10
- * Returns array of names for constants in enum.
11
- * @param enumObj Enum object.
12
- */
13
- static getConstantNamesFromEnumObject(enumObj: object): Array<string>;
14
- /**
15
- * Returns array of string values for constants in enum.
16
- * @param enumType Enum object.
17
- */
18
- static getConstantValuesAsString(enumType: EnumType): Array<string>;
19
- /**
20
- * Returns array of number values for constants in enum.
21
- * @param enumType Enum object.
22
- */
23
- static getConstantValuesAsNumber(enumType: EnumType): Array<number>;
24
- /**
25
- * Returns array of type EnumValue for all constants in enum.
26
- * @param enumType Enum object.
27
- * @param nameAsValue If use name of constant as value (optional, default: false).
28
- * @param titlePath Base path for title to use as translation (optional).
29
- */
30
- static fromConstantsAsEnumValueArray(enumType: EnumType, nameAsValue?: boolean, titlePath?: string): EnumValue[];
31
- /**
32
- * Returns array of type EnumValue for provided values in enum.
33
- * @param enumType Enum object.
34
- * @param values Enum values (constants).
35
- * @param nameAsValue If use name of constant as value (optional, default: false).
36
- * @param titlePath Base path for title to use as translation (optional).
37
- */
38
- static fromValuesAsEnumValueArray<EnumConstant = EnumConstantType>(enumType: EnumType, values: Array<EnumConstant>, nameAsValue?: boolean, titlePath?: string): EnumValue[];
39
- /**
40
- * Gets constant name for value.
41
- * @param enumType Enum object.
42
- * @param value Value of enum constant.
43
- */
44
- static getConstantName<EnumConstant = EnumConstantType>(enumType: EnumType, value: EnumConstant): string | null;
45
- /**
46
- * Gets constant name for value.
47
- * @param enumObj Enum object.
48
- * @param value Value of enum constant.
49
- */
50
- static getConstantNameFromEnumObject<EnumConstant = EnumConstantType>(enumObj: object, value: EnumConstant): string | null;
51
- }
@@ -1,116 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import { LogLevelEnum } from '../log/log.model';
3
- import { ACommonsErrorBase, ICommonsActionError } from './error.model';
4
- export declare class ErrorUtil {
5
- /**
6
- * Converts RxJS subscription error to CommonsError.
7
- * @param error Error.
8
- * @param name Optional name to write in commons error.
9
- * @param details Optional details of error.
10
- */
11
- static fromSubscribeError(error: any, name?: string, details?: any): ACommonsErrorBase;
12
- /**
13
- * Checks if error is Http error (Angular or Commons).
14
- * @param error
15
- */
16
- static isHttpErrorResponse(error: any): boolean;
17
- /**
18
- * Gets HttpErrorResponse from error (Angular or Commons).
19
- * @param error Error.
20
- */
21
- static getHttpErrorResponse(error: any): HttpErrorResponse | null;
22
- /**
23
- * Gets HttpErrorResponse status from error (Angular or Commons).
24
- * @param error Error.
25
- */
26
- static getHttpErrorResponseStatus(error: any): number | null;
27
- /**
28
- * Get error log level. All is error, except if error is http error with status >=400 and <500.
29
- * @param error Error.
30
- */
31
- static getErrorLogLevel(error: any): LogLevelEnum;
32
- /**
33
- * Get error name (prototype name or type from commons error if name is not provided).
34
- * @param error Error.
35
- */
36
- static getErrorName(error: any): string;
37
- /**
38
- * Writes http error to string with all headers and body.
39
- * @param error Http response error.
40
- * @param opts Options for hiding parts of error:
41
- * - hideMessage Hides message of error (message include url, status and status text!).
42
- * - hideHeaders Hides headers.
43
- * - hideBody Hides JSON representation of body.
44
- */
45
- static httpErrorResponseToString(error: HttpErrorResponse, opts?: HttpErrorResponseToStringOptionsType): string;
46
- /**
47
- * Error to string.
48
- * @param error Error.
49
- * @param opts Options for hiding parts of error:
50
- * - hideMessage Hides message of error.
51
- * - hideName Hides error name.
52
- * - hideCause Hides cause of an error (if present, see @link(errorCauseToString) for other options).
53
- * - hideStack Hides stack of an error (if present).
54
- * - hideDetails Hides JSON detail's representation of error (if present).
55
- * - hideLocation Hides location (URL) where error was thrown.
56
- * - hideHttp Hides http error portion of error if http error response (see @link(httpErrorResponseToString) for other options).
57
- */
58
- static errorToString(error: Error, opts?: ErrorToStringOptionsType): string;
59
- /**
60
- * Commons error to string.
61
- * @param error Commons error.
62
- * @param opts Options for hiding parts of error:
63
- * - hideMessage Hides message of error.
64
- * - hideName Hides error name.
65
- * - hideCause Hides cause of an error (if present, see @link(errorCauseToString) for other options).
66
- * - hideStack Hides stack of an error (if present).
67
- * - hideDetails Hides JSON detail's representation of error (if present).
68
- * - hideLocation Hides location (URL) where error was thrown.
69
- * - hideHttp Hides http error portion of error if http error response (see @link(httpErrorResponseToString) for other options).
70
- * - hideItems Hides all item information (http body, action context data).
71
- * - hideActionData See @link(commonsActionErrorContextToString) for additional info.
72
- * - hideQueryParams See @link(commonsActionErrorContextToString) for additional info.
73
- */
74
- static commonsErrorToString(error: ACommonsErrorBase, opts?: ErrorToStringOptionsType): string;
75
- /**
76
- * Writes commons action error info from context as string.
77
- * @param error Commons action error.
78
- * @param opts Options for hiding parts of error:
79
- * - hideItems Hides all item related information (item, form item, submit item, ...).
80
- * - hideActionData Hides action data.
81
- * - hideQueryParams Hides query params.
82
- */
83
- static commonsActionErrorContextToString(error: ICommonsActionError, opts?: ActionErrorContextToStringOptionsType): string;
84
- /**
85
- * Writes cause of an error as string.
86
- * @param error Error.
87
- * @param opts Options for hiding parts of error:
88
- * - causeOnErrorOnly Prints only if cause is instance of error.
89
- * - causeAsJson Print error cause as a JSON (by default, if error only message and name will be printed).
90
- */
91
- static errorCauseToString(error: Error, opts?: ErrorCauseToStringOptionsType): string;
92
- }
93
- export type ErrorToStringOptionsType = ErrorToStringOptionsBaseType & HttpErrorResponseToStringOptionsType & ActionErrorContextToStringOptionsType & ErrorCauseToStringOptionsType & {
94
- hideDetails?: boolean;
95
- hideLocation?: boolean;
96
- };
97
- export interface ErrorToStringOptionsBaseType {
98
- hideName?: boolean;
99
- hideStack?: boolean;
100
- hideCause?: boolean;
101
- hideHttp?: boolean;
102
- }
103
- export interface HttpErrorResponseToStringOptionsType {
104
- hideMessage?: boolean;
105
- hideHeaders?: boolean;
106
- hideBody?: boolean;
107
- }
108
- export interface ActionErrorContextToStringOptionsType {
109
- hideItems?: boolean;
110
- hideActionData?: boolean;
111
- hideQueryParams?: boolean;
112
- }
113
- export interface ErrorCauseToStringOptionsType {
114
- causeOnErrorOnly?: boolean;
115
- causeAsJson?: boolean;
116
- }
@@ -1,5 +0,0 @@
1
- import { APermissions, Permissions } from './permissions.model';
2
- export declare class PermissionUtil {
3
- static isPermitted(permissions: APermissions, userRoles: Array<string>): boolean;
4
- static isRbacPermitted(permissions: Permissions.Roles, userRoles: Array<string>): boolean;
5
- }
@@ -1,20 +0,0 @@
1
- export type toIsoStringTypeOptType = 'date' | 'date-time' | 'dateTime';
2
- export type toIsoStringDateTimeOptsType = {
3
- utc?: boolean;
4
- noTimezone?: boolean;
5
- noMillis?: boolean;
6
- };
7
- export declare class DateUtil {
8
- private static readonly NG_PRIME_FORMAT_SUPPORTED;
9
- private static readonly NG_PRIME_FORMAT_OTHER;
10
- private static readonly NG_PRIME_FORMAT_MAP;
11
- private static padNumber;
12
- static toIsoString(value: string | number | Date, type?: 'date'): string;
13
- static toIsoString(value: string | number | Date, type: 'date-time' | 'dateTime', dateTimeOpts?: toIsoStringDateTimeOptsType): string;
14
- static toIsoString(value: undefined | null | unknown, type?: 'date'): null;
15
- static toIsoString(value: undefined | null | unknown, type: 'date-time' | 'dateTime', dateTimeOpts?: toIsoStringDateTimeOptsType): null;
16
- static toIsoString(value: unknown, type?: toIsoStringTypeOptType, dateTimeOpts?: toIsoStringDateTimeOptsType): string | null;
17
- static fromAngularToPrimeDateFormat(ngDateFormat: string): string;
18
- static fromAngularDateFormatHasTime(ngDateFormat: string): boolean;
19
- static fromAngularDateFormatHasSeconds(ngDateFormat: string): boolean;
20
- }
@@ -1,36 +0,0 @@
1
- import { TranslateService } from '@ngx-translate/core';
2
- import { Observable } from 'rxjs';
3
- import { ICommonsError } from '../error/error.model';
4
- import { ClassType } from '../models/class-service.model';
5
- export declare namespace I18nUtils {
6
- class Common {
7
- static getAsync(translate: TranslateService, params?: any, ...keys: Array<string>): Observable<string | null>;
8
- static get(translate: TranslateService, params?: any, ...keys: Array<string>): string | null;
9
- static populateParams(item?: any, params?: any): any;
10
- static selectI18n(keys: string[], i18n: any): string | null;
11
- }
12
- class Type {
13
- static getClassNameAsync(translate: TranslateService, classType: ClassType<any>, singular?: boolean): Observable<string | null>;
14
- static getClassName(translate: TranslateService, classType: ClassType<any>, singular?: boolean): string | null;
15
- static getNameAsync(translate: TranslateService, typeName: string, singular?: boolean): Observable<string | null>;
16
- static getName(translate: TranslateService, typeName: string, singular?: boolean): string | null;
17
- static getClassTabKey(classType: ClassType<any>, tab: string): string;
18
- static getTabKey(typeName: string, tab: string): string;
19
- static getClassGroupKey(classType: ClassType<any>, group: string): string;
20
- static getGroupKey(typeName: string, group: string): string;
21
- static getClassPropertyKey(classType: ClassType<any>, property: string): string;
22
- static getPropertyKey(typeName: string, property: string): string;
23
- static getClassPath(classType: ClassType<any>, ...path: Array<string>): string;
24
- static getPath(typeName: string, ...path: Array<string>): string;
25
- static getClassParams(translate: TranslateService, classType: ClassType<any>, item: any, params?: any): any;
26
- static getParams(translate: TranslateService, typeName?: string, item?: any, params?: any): any;
27
- static getClassParamsAsync(translate: TranslateService, classType: ClassType<any>, item?: any, params?: any): Observable<any>;
28
- static getParamsAsync(translate: TranslateService, typeName?: string, item?: any, params?: any): Observable<any>;
29
- static populateParams(i18nTypeName?: string, item?: any, params?: any): any;
30
- private static getNameKeys;
31
- }
32
- class Error {
33
- static get(translate: TranslateService, error: ICommonsError, params?: any): string | null;
34
- static getParams(error: ICommonsError, params?: any): any;
35
- }
36
- }
@@ -1,31 +0,0 @@
1
- import { ClassType } from '../models/class-service.model';
2
- interface DeepCopyPropsOptions {
3
- mapGettersToProperties?: boolean;
4
- }
5
- export interface DeepCopyOptions<P = object> extends DeepCopyPropsOptions {
6
- objectPrototype?: ClassType<P>;
7
- }
8
- export declare class ObjectUtil {
9
- static deepCopy<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
10
- mapGettersToProperties: true;
11
- }): T | Record<string, any>;
12
- static deepCopy<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
13
- objectPrototype: ClassType<P>;
14
- } & {
15
- mapGettersToProperties?: false;
16
- }): P;
17
- static deepCopy<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
18
- objectPrototype: ClassType<P>;
19
- } & {
20
- mapGettersToProperties: true;
21
- }): P | Record<string, any>;
22
- static deepCopy<T = object, P = object>(obj: T, options?: DeepCopyOptions<P>): T;
23
- static deepMerge(target: Record<string, any>, source: Record<string, any>): Record<string, any>;
24
- private static isObject;
25
- private static handleProp;
26
- static getProperties(obj: object): string[];
27
- static getGetters(obj: any): string[];
28
- static getPropertyByPath(value: any, path: string): any | undefined;
29
- static flattenObjectKeys(objectModel: any): string[];
30
- }
31
- export {};
@@ -1,37 +0,0 @@
1
- import { MenuItem as PrimeMenuItem } from 'primeng/api';
2
- import { CommonsMenuItem } from '../models/menu.model';
3
- export declare class RouteUtil {
4
- static removeEmptyPathSegments(path: Array<string>): string[];
5
- static appendPathToBasePath(basePath: Array<string>, path: Array<string>): string[];
6
- static doesUrlMatchRouterLink(link: Array<string> | string, url: Array<string> | string): boolean;
7
- static adjustMenuLazyChildrenRouterLinks(rootMenuItem: PrimeMenuItem, lazyChildren: Array<CommonsMenuItem>): {
8
- index?: number | undefined;
9
- key?: string | undefined;
10
- id?: string | undefined;
11
- positionIndex?: number | undefined;
12
- label?: string | undefined;
13
- icon?: string | undefined;
14
- items?: CommonsMenuItem[] | undefined;
15
- guards?: any[] | undefined;
16
- permissions?: import("@mediusinc/mng-commons/core").APermissions | undefined;
17
- separator?: boolean | undefined;
18
- className?: string | undefined;
19
- badge?: string | undefined;
20
- badgeClassName?: string | undefined;
21
- visible?: boolean | undefined;
22
- disabled?: boolean | undefined;
23
- routerLink?: string | string[] | null | undefined;
24
- href?: string | undefined;
25
- target?: string | undefined;
26
- queryParams?: {
27
- [k: string]: any;
28
- } | undefined;
29
- fragment?: string | undefined;
30
- queryParamsHandling?: import("@angular/router").QueryParamsHandling | undefined;
31
- preserveFragment?: boolean | undefined;
32
- skipLocationChange?: boolean | undefined;
33
- replaceUrl?: boolean | undefined;
34
- updated?: boolean | undefined;
35
- lazyChildren?: boolean | undefined;
36
- }[];
37
- }
@@ -1,9 +0,0 @@
1
- export declare class StringUtil {
2
- static escapeHtml(value: string): any;
3
- static escapeHtmlAny(value?: any): any;
4
- /**
5
- * Stringifies a value - primitives with toString, dates with dateUtil, objects with JSON.stringify.
6
- * @param value Any value.
7
- */
8
- static stringify(value: any): string;
9
- }