@mediusinc/mng-commons 0.2.1-rc → 0.2.4

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 (327) hide show
  1. package/esm2020/lib/api/models/builders/query-param.builder.mjs +48 -0
  2. package/esm2020/lib/api/models/filter-match-type.model.mjs +26 -0
  3. package/esm2020/lib/api/models/filter-param.model.mjs +46 -0
  4. package/esm2020/lib/api/models/index.mjs +9 -0
  5. package/esm2020/lib/api/models/mappers.mjs +17 -0
  6. package/esm2020/lib/api/models/query-mode.model.mjs +19 -0
  7. package/esm2020/lib/api/models/query-param.model.mjs +69 -0
  8. package/esm2020/lib/api/models/query-result.model.mjs +45 -0
  9. package/esm2020/lib/api/models/serialization.model.mjs +2 -0
  10. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +72 -0
  11. package/esm2020/lib/api/services/index.mjs +2 -0
  12. package/esm2020/lib/api/utils/index.mjs +3 -0
  13. package/esm2020/lib/api/utils/medius-rest.util.mjs +122 -0
  14. package/esm2020/lib/api/utils/object-serializer.util.mjs +226 -0
  15. package/esm2020/lib/components/action/action.component.mjs +65 -0
  16. package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +148 -0
  17. package/esm2020/lib/components/action/index.mjs +4 -0
  18. package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
  19. package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
  20. package/esm2020/lib/components/action/models/index.mjs +3 -0
  21. package/esm2020/lib/components/action/route/action-route.component.mjs +144 -0
  22. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
  23. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
  24. package/esm2020/lib/components/form/editor/form-editor.component.mjs +141 -0
  25. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +19 -0
  26. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +19 -0
  27. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +16 -0
  28. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -0
  29. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +109 -0
  30. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +122 -0
  31. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +17 -0
  32. package/esm2020/lib/components/form/formly/fields/index.mjs +8 -0
  33. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +17 -0
  34. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +16 -0
  35. package/esm2020/lib/components/form/formly/wrappers/index.mjs +3 -0
  36. package/esm2020/lib/components/form/index.mjs +4 -0
  37. package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
  38. package/esm2020/lib/components/form/models/index.mjs +2 -0
  39. package/esm2020/lib/components/layout/breadcrumb.component.mjs +17 -0
  40. package/esm2020/lib/components/layout/footer.component.mjs +17 -0
  41. package/esm2020/lib/components/layout/index.mjs +7 -0
  42. package/esm2020/lib/components/layout/main-layout.component.mjs +54 -0
  43. package/esm2020/lib/components/layout/menu-item.component.mjs +173 -0
  44. package/esm2020/lib/components/layout/menu.component.mjs +20 -0
  45. package/esm2020/lib/components/layout/services/index.mjs +2 -0
  46. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -0
  47. package/esm2020/lib/components/layout/topbar.component.mjs +59 -0
  48. package/esm2020/lib/components/tableview/index.mjs +6 -0
  49. package/esm2020/lib/components/tableview/models/index.mjs +2 -0
  50. package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
  51. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +24 -0
  52. package/esm2020/lib/components/tableview/services/index.mjs +2 -0
  53. package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
  54. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +74 -0
  55. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +25 -0
  56. package/esm2020/lib/components/tableview/table/table.component.mjs +307 -0
  57. package/esm2020/lib/components/tableview/tableview.component.mjs +82 -0
  58. package/esm2020/lib/config/formly.config.mjs +136 -0
  59. package/esm2020/lib/config/index.mjs +2 -0
  60. package/esm2020/lib/config/models/index.mjs +2 -0
  61. package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
  62. package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
  63. package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
  64. package/esm2020/lib/data-providers/index.mjs +6 -0
  65. package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
  66. package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
  67. package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
  68. package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
  69. package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
  70. package/esm2020/lib/descriptors/field.validator.mjs +21 -0
  71. package/esm2020/lib/descriptors/index.mjs +8 -0
  72. package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
  73. package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
  74. package/esm2020/lib/descriptors/table.descriptor.mjs +401 -0
  75. package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
  76. package/esm2020/lib/directives/component.directive.mjs +23 -0
  77. package/esm2020/lib/directives/index.mjs +3 -0
  78. package/esm2020/lib/directives/template.directive.mjs +29 -0
  79. package/esm2020/lib/mng-commons.module.mjs +410 -0
  80. package/esm2020/lib/models/index.mjs +3 -0
  81. package/esm2020/lib/models/router.model.mjs +2 -0
  82. package/esm2020/lib/models/user.model.mjs +2 -0
  83. package/esm2020/lib/pipes/boolean.pipe.mjs +22 -0
  84. package/esm2020/lib/pipes/index.mjs +3 -0
  85. package/esm2020/lib/pipes/property-path.pipe.mjs +36 -0
  86. package/esm2020/lib/services/action.service.mjs +269 -0
  87. package/esm2020/lib/services/commons.service.mjs +354 -0
  88. package/esm2020/lib/services/configuration.service.mjs +78 -0
  89. package/esm2020/lib/services/index.mjs +5 -0
  90. package/esm2020/lib/services/navigation.service.mjs +48 -0
  91. package/esm2020/lib/services/providers/commons-init.provider.mjs +4 -0
  92. package/esm2020/lib/services/providers/config-service.provider.mjs +20 -0
  93. package/esm2020/lib/services/providers/formly-config.provider.mjs +31 -0
  94. package/esm2020/lib/services/providers/index.mjs +4 -0
  95. package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
  96. package/esm2020/lib/services/tokens/index.mjs +3 -0
  97. package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
  98. package/esm2020/lib/types/index.mjs +3 -0
  99. package/esm2020/lib/types/type.decorator.mjs +7 -0
  100. package/esm2020/lib/types/type.model.mjs +2 -0
  101. package/esm2020/lib/utils/editor-formly.util.mjs +176 -0
  102. package/esm2020/lib/utils/i18n.util.mjs +125 -0
  103. package/esm2020/lib/utils/index.mjs +6 -0
  104. package/esm2020/lib/utils/model.util.mjs +57 -0
  105. package/esm2020/lib/utils/toast.util.mjs +39 -0
  106. package/esm2020/lib/utils/type.util.mjs +39 -0
  107. package/esm2020/mediusinc-mng-commons.mjs +5 -0
  108. package/esm2020/public-api.mjs +36 -0
  109. package/fesm2015/mediusinc-mng-commons.mjs +6252 -0
  110. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -0
  111. package/fesm2020/mediusinc-mng-commons.mjs +6177 -0
  112. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -0
  113. package/lib/api/models/builders/query-param.builder.d.ts +11 -0
  114. package/{src/lib/api/models/query-mode.model.ts → lib/api/models/filter-match-type.model.d.ts} +11 -6
  115. package/lib/api/models/filter-param.model.d.ts +23 -0
  116. package/{src/lib/api/models/index.ts → lib/api/models/index.d.ts} +0 -2
  117. package/lib/api/models/mappers.d.ts +6 -0
  118. package/lib/api/models/query-mode.model.d.ts +16 -0
  119. package/lib/api/models/query-param.model.d.ts +31 -0
  120. package/lib/api/models/query-result.model.d.ts +36 -0
  121. package/{src/lib/api/models/serialization.model.ts → lib/api/models/serialization.model.d.ts} +0 -1
  122. package/lib/api/services/crud-api.abstract.service.d.ts +23 -0
  123. package/{src/lib/api/services/index.ts → lib/api/services/index.d.ts} +0 -0
  124. package/{src/lib/api/utils/index.ts → lib/api/utils/index.d.ts} +0 -0
  125. package/lib/api/utils/medius-rest.util.d.ts +12 -0
  126. package/lib/api/utils/object-serializer.util.d.ts +30 -0
  127. package/lib/components/action/action.component.d.ts +36 -0
  128. package/lib/components/action/dialog/action-dialog.component.d.ts +46 -0
  129. package/{src/lib/components/action/index.ts → lib/components/action/index.d.ts} +0 -0
  130. package/{src/lib/components/action/models/action-confirmation-service.model.ts → lib/components/action/models/action-confirmation-service.model.d.ts} +2 -3
  131. package/lib/components/action/models/action-execution.model.d.ts +53 -0
  132. package/{src/lib/components/action/models/index.ts → lib/components/action/models/index.d.ts} +0 -0
  133. package/lib/components/action/route/action-route.component.d.ts +32 -0
  134. package/lib/components/form/autocomplete/autocomplete.component.d.ts +36 -0
  135. package/lib/components/form/dropdown/dropdown.component.d.ts +34 -0
  136. package/lib/components/form/editor/form-editor.component.d.ts +39 -0
  137. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +11 -0
  138. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +11 -0
  139. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +6 -0
  140. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +12 -0
  141. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +17 -0
  142. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +36 -0
  143. package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +6 -0
  144. package/{src/lib/components/form/formly/fields/index.ts → lib/components/form/formly/fields/index.d.ts} +0 -0
  145. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +8 -0
  146. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +8 -0
  147. package/{src/lib/components/form/formly/wrappers/index.ts → lib/components/form/formly/wrappers/index.d.ts} +0 -0
  148. package/{src/lib/components/form/index.ts → lib/components/form/index.d.ts} +0 -0
  149. package/lib/components/form/models/form-editor.event.d.ts +5 -0
  150. package/{src/lib/components/form/models/index.ts → lib/components/form/models/index.d.ts} +0 -0
  151. package/lib/components/layout/breadcrumb.component.d.ts +8 -0
  152. package/lib/components/layout/footer.component.d.ts +9 -0
  153. package/{src/lib/components/layout/index.ts → lib/components/layout/index.d.ts} +0 -0
  154. package/lib/components/layout/main-layout.component.d.ts +21 -0
  155. package/lib/components/layout/menu-item.component.d.ts +29 -0
  156. package/lib/components/layout/menu.component.d.ts +10 -0
  157. package/{src/lib/components/layout/services/index.ts → lib/components/layout/services/index.d.ts} +0 -0
  158. package/lib/components/layout/services/main-layout.component.service.d.ts +65 -0
  159. package/lib/components/layout/topbar.component.d.ts +25 -0
  160. package/{src/lib/components/tableview/index.ts → lib/components/tableview/index.d.ts} +0 -0
  161. package/{src/lib/components/tableview/models/index.ts → lib/components/tableview/models/index.d.ts} +0 -0
  162. package/lib/components/tableview/models/table.event.d.ts +17 -0
  163. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +14 -0
  164. package/{src/lib/components/tableview/services/index.ts → lib/components/tableview/services/index.d.ts} +0 -0
  165. package/lib/components/tableview/services/tableview.component.service.d.ts +13 -0
  166. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +22 -0
  167. package/lib/components/tableview/table/column-value/column-value.component.d.ts +12 -0
  168. package/lib/components/tableview/table/table.component.d.ts +79 -0
  169. package/lib/components/tableview/tableview.component.d.ts +35 -0
  170. package/lib/config/formly.config.d.ts +14 -0
  171. package/{src/lib/config/index.ts → lib/config/index.d.ts} +0 -0
  172. package/{src/lib/config/models/index.ts → lib/config/models/index.d.ts} +0 -0
  173. package/{src/lib/config/models/mng-config.model.ts → lib/config/models/mng-config.model.d.ts} +8 -9
  174. package/lib/data-providers/base.data-provider.d.ts +17 -0
  175. package/lib/data-providers/editor.data-provider.d.ts +25 -0
  176. package/{src/lib/data-providers/index.ts → lib/data-providers/index.d.ts} +0 -0
  177. package/lib/data-providers/lookup.data-provider.d.ts +14 -0
  178. package/{src/lib/data-providers/table.data-provider.ts → lib/data-providers/table.data-provider.d.ts} +3 -5
  179. package/lib/data-providers/tableview.data-provider.d.ts +15 -0
  180. package/lib/descriptors/action.descriptor.d.ts +148 -0
  181. package/lib/descriptors/editor.descriptor.d.ts +255 -0
  182. package/lib/descriptors/field.validator.d.ts +18 -0
  183. package/{src/lib/descriptors/index.ts → lib/descriptors/index.d.ts} +0 -0
  184. package/{src/lib/descriptors/lookup.descriptor.ts → lib/descriptors/lookup.descriptor.d.ts} +6 -9
  185. package/lib/descriptors/model.descriptor.d.ts +15 -0
  186. package/lib/descriptors/table.descriptor.d.ts +164 -0
  187. package/lib/descriptors/tableview.descriptor.d.ts +39 -0
  188. package/lib/directives/component.directive.d.ts +11 -0
  189. package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +0 -0
  190. package/lib/directives/template.directive.d.ts +13 -0
  191. package/lib/mng-commons.module.d.ts +79 -0
  192. package/{src/lib/models/index.ts → lib/models/index.d.ts} +0 -0
  193. package/lib/models/router.model.d.ts +14 -0
  194. package/{src/lib/models/user.model.ts → lib/models/user.model.d.ts} +2 -3
  195. package/lib/pipes/boolean.pipe.d.ts +7 -0
  196. package/{src/lib/pipes/index.ts → lib/pipes/index.d.ts} +0 -0
  197. package/lib/pipes/property-path.pipe.d.ts +7 -0
  198. package/lib/services/action.service.d.ts +92 -0
  199. package/lib/services/commons.service.d.ts +72 -0
  200. package/lib/services/configuration.service.d.ts +35 -0
  201. package/{src/lib/services/index.ts → lib/services/index.d.ts} +0 -0
  202. package/lib/services/navigation.service.d.ts +14 -0
  203. package/lib/services/providers/commons-init.provider.d.ts +2 -0
  204. package/lib/services/providers/config-service.provider.d.ts +5 -0
  205. package/lib/services/providers/formly-config.provider.d.ts +4 -0
  206. package/{src/lib/services/providers/index.ts → lib/services/providers/index.d.ts} +0 -0
  207. package/lib/services/tokens/browser-storage.token.d.ts +2 -0
  208. package/{src/lib/services/tokens/index.ts → lib/services/tokens/index.d.ts} +0 -0
  209. package/lib/services/tokens/module-config.token.d.ts +3 -0
  210. package/{src/lib/types/index.ts → lib/types/index.d.ts} +0 -0
  211. package/lib/types/type.decorator.d.ts +2 -0
  212. package/lib/types/type.model.d.ts +10 -0
  213. package/lib/utils/editor-formly.util.d.ts +9 -0
  214. package/lib/utils/i18n.util.d.ts +18 -0
  215. package/{src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
  216. package/lib/utils/model.util.d.ts +7 -0
  217. package/lib/utils/toast.util.d.ts +13 -0
  218. package/lib/utils/type.util.d.ts +15 -0
  219. package/mediusinc-mng-commons.d.ts +5 -0
  220. package/package.json +27 -6
  221. package/{src/public-api.ts → public-api.d.ts} +0 -17
  222. package/.browserslistrc +0 -16
  223. package/karma.conf.js +0 -51
  224. package/ng-package.json +0 -14
  225. package/src/lib/api/models/builders/query-param.builder.ts +0 -54
  226. package/src/lib/api/models/filter-match-type.model.ts +0 -25
  227. package/src/lib/api/models/filter-param.model.ts +0 -59
  228. package/src/lib/api/models/mappers.ts +0 -18
  229. package/src/lib/api/models/query-param.model.ts +0 -99
  230. package/src/lib/api/models/query-result.model.ts +0 -77
  231. package/src/lib/api/services/crud-api.abstract.service.ts +0 -113
  232. package/src/lib/api/utils/medius-rest.util.ts +0 -146
  233. package/src/lib/api/utils/object-serializer.util.ts +0 -227
  234. package/src/lib/components/action/action.component.html +0 -30
  235. package/src/lib/components/action/action.component.ts +0 -77
  236. package/src/lib/components/action/dialog/action-dialog.component.html +0 -26
  237. package/src/lib/components/action/dialog/action-dialog.component.ts +0 -171
  238. package/src/lib/components/action/models/action-execution.model.ts +0 -81
  239. package/src/lib/components/action/route/action-route.component.html +0 -1
  240. package/src/lib/components/action/route/action-route.component.ts +0 -159
  241. package/src/lib/components/form/autocomplete/autocomplete.component.html +0 -16
  242. package/src/lib/components/form/autocomplete/autocomplete.component.ts +0 -113
  243. package/src/lib/components/form/dropdown/dropdown.component.html +0 -29
  244. package/src/lib/components/form/dropdown/dropdown.component.ts +0 -109
  245. package/src/lib/components/form/editor/form-editor.component.html +0 -5
  246. package/src/lib/components/form/editor/form-editor.component.ts +0 -149
  247. package/src/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.html +0 -7
  248. package/src/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.ts +0 -21
  249. package/src/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.html +0 -9
  250. package/src/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.ts +0 -22
  251. package/src/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.html +0 -8
  252. package/src/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.ts +0 -10
  253. package/src/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.html +0 -56
  254. package/src/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.ts +0 -22
  255. package/src/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.html +0 -13
  256. package/src/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.scss +0 -4
  257. package/src/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.ts +0 -114
  258. package/src/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.html +0 -37
  259. package/src/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.ts +0 -133
  260. package/src/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.html +0 -10
  261. package/src/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.ts +0 -10
  262. package/src/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.html +0 -7
  263. package/src/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.ts +0 -13
  264. package/src/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.html +0 -6
  265. package/src/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.ts +0 -13
  266. package/src/lib/components/form/models/form-editor.event.ts +0 -7
  267. package/src/lib/components/layout/breadcrumb.component.html +0 -5
  268. package/src/lib/components/layout/breadcrumb.component.ts +0 -12
  269. package/src/lib/components/layout/footer.component.html +0 -7
  270. package/src/lib/components/layout/footer.component.ts +0 -15
  271. package/src/lib/components/layout/main-layout.component.html +0 -26
  272. package/src/lib/components/layout/main-layout.component.ts +0 -54
  273. package/src/lib/components/layout/menu-item.component.html +0 -41
  274. package/src/lib/components/layout/menu-item.component.ts +0 -170
  275. package/src/lib/components/layout/menu.component.html +0 -27
  276. package/src/lib/components/layout/menu.component.ts +0 -17
  277. package/src/lib/components/layout/services/main-layout.component.service.ts +0 -231
  278. package/src/lib/components/layout/topbar.component.html +0 -38
  279. package/src/lib/components/layout/topbar.component.ts +0 -62
  280. package/src/lib/components/tableview/models/table.event.ts +0 -22
  281. package/src/lib/components/tableview/route/tableview-route.abstract.component.ts +0 -31
  282. package/src/lib/components/tableview/services/tableview.component.service.ts +0 -22
  283. package/src/lib/components/tableview/table/column-filter/column-filter.component.html +0 -36
  284. package/src/lib/components/tableview/table/column-filter/column-filter.component.ts +0 -70
  285. package/src/lib/components/tableview/table/column-value/column-value.component.html +0 -14
  286. package/src/lib/components/tableview/table/column-value/column-value.component.ts +0 -19
  287. package/src/lib/components/tableview/table/table.component.html +0 -110
  288. package/src/lib/components/tableview/table/table.component.ts +0 -327
  289. package/src/lib/components/tableview/tableview.component.html +0 -37
  290. package/src/lib/components/tableview/tableview.component.ts +0 -78
  291. package/src/lib/config/formly.config.ts +0 -154
  292. package/src/lib/data-providers/base.data-provider.ts +0 -42
  293. package/src/lib/data-providers/editor.data-provider.ts +0 -60
  294. package/src/lib/data-providers/lookup.data-provider.ts +0 -29
  295. package/src/lib/data-providers/tableview.data-provider.ts +0 -29
  296. package/src/lib/descriptors/action.descriptor.ts +0 -439
  297. package/src/lib/descriptors/editor.descriptor.ts +0 -880
  298. package/src/lib/descriptors/field.validator.ts +0 -35
  299. package/src/lib/descriptors/model.descriptor.ts +0 -47
  300. package/src/lib/descriptors/table.descriptor.ts +0 -514
  301. package/src/lib/descriptors/tableview.descriptor.ts +0 -180
  302. package/src/lib/directives/component.directive.ts +0 -18
  303. package/src/lib/directives/template.directive.ts +0 -24
  304. package/src/lib/mng-commons.module.ts +0 -240
  305. package/src/lib/models/router.model.ts +0 -16
  306. package/src/lib/pipes/boolean.pipe.ts +0 -17
  307. package/src/lib/pipes/property-path.pipe.ts +0 -30
  308. package/src/lib/services/action.service.ts +0 -310
  309. package/src/lib/services/commons.service.ts +0 -407
  310. package/src/lib/services/configuration.service.ts +0 -98
  311. package/src/lib/services/navigation.service.ts +0 -42
  312. package/src/lib/services/providers/commons-init.provider.ts +0 -5
  313. package/src/lib/services/providers/config-service.provider.ts +0 -22
  314. package/src/lib/services/providers/formly-config.provider.ts +0 -39
  315. package/src/lib/services/tokens/browser-storage.token.ts +0 -9
  316. package/src/lib/services/tokens/module-config.token.ts +0 -5
  317. package/src/lib/types/type.decorator.ts +0 -7
  318. package/src/lib/types/type.model.ts +0 -12
  319. package/src/lib/utils/editor-formly.util.ts +0 -193
  320. package/src/lib/utils/i18n.util.ts +0 -148
  321. package/src/lib/utils/model.util.ts +0 -66
  322. package/src/lib/utils/toast.util.ts +0 -49
  323. package/src/lib/utils/type.util.ts +0 -44
  324. package/src/test.ts +0 -26
  325. package/tsconfig.lib.json +0 -15
  326. package/tsconfig.lib.prod.json +0 -10
  327. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,11 @@
1
+ import { MediusFilterMatchType, MediusQueryParam } from '../';
2
+ export declare class MediusQueryParamBuilder {
3
+ private queryParam;
4
+ private constructor();
5
+ static create(itemsPerPage?: number, itemsOffset?: number): MediusQueryParamBuilder;
6
+ withItemsPerPage(itemsPerPage: number): MediusQueryParamBuilder;
7
+ withItemsOffset(itemsOffset: number): MediusQueryParamBuilder;
8
+ withSort(property: string, asc?: boolean): MediusQueryParamBuilder;
9
+ withFilter(property: string, value: any, valueTo?: any, matchType?: MediusFilterMatchType, matchCaseSensitive?: boolean): MediusQueryParamBuilder;
10
+ build(): MediusQueryParam;
11
+ }
@@ -1,4 +1,3 @@
1
- /* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
2
1
  /**
3
2
  * Generated API
4
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -10,9 +9,15 @@
10
9
  * https://openapi-generator.tech
11
10
  * Do not edit the class manually.
12
11
  */
13
-
14
- export enum MediusQueryMode {
15
- All = <any> 'ALL',
16
- Count = <any> 'COUNT',
17
- Data = <any> 'DATA'
12
+ export declare enum MediusFilterMatchType {
13
+ Equals,
14
+ NotEquals,
15
+ Contains,
16
+ EndsWith,
17
+ StartsWith,
18
+ FromTo,
19
+ SmallerThan,
20
+ GreaterThan,
21
+ In,
22
+ NotIn
18
23
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AttributeDef } from './serialization.model';
13
+ import { MediusFilterMatchType } from './filter-match-type.model';
14
+ export declare class MediusFilterParam {
15
+ 'property'?: string;
16
+ 'filterMatchCaseSensitive'?: boolean;
17
+ 'filterMatchType'?: MediusFilterMatchType;
18
+ 'filterValue'?: object;
19
+ 'filterValueTo'?: object;
20
+ static discriminator: string | undefined;
21
+ static attributeTypeMap: Array<AttributeDef>;
22
+ static getAttributeTypeMap(): AttributeDef[];
23
+ }
@@ -4,7 +4,5 @@ export * from './query-mode.model';
4
4
  export * from './query-param.model';
5
5
  export * from './query-result.model';
6
6
  export * from './serialization.model';
7
-
8
7
  export * from './builders/query-param.builder';
9
-
10
8
  export * from './mappers';
@@ -0,0 +1,6 @@
1
+ export declare const enumsMapBase: {
2
+ [index: string]: any;
3
+ };
4
+ export declare const typeMapBase: {
5
+ [index: string]: any;
6
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare enum MediusQueryMode {
13
+ All,
14
+ Count,
15
+ Data
16
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { MediusFilterParam } from './filter-param.model';
13
+ import { MediusQueryMode } from './query-mode.model';
14
+ import { AttributeDef } from './serialization.model';
15
+ export declare class MediusQueryParam {
16
+ 'filterAllParam'?: string;
17
+ 'filterAllProperties'?: Array<string>;
18
+ 'filterParams'?: Array<MediusFilterParam>;
19
+ 'groupByProperties'?: Array<string>;
20
+ 'itemsOffset': number;
21
+ 'itemsPerPage': number;
22
+ 'queryMode'?: MediusQueryMode;
23
+ 'selectInTwoSteps'?: boolean;
24
+ 'sortAsc'?: Array<boolean>;
25
+ 'sortEnumByOrdinal'?: boolean;
26
+ 'sortProperty'?: Array<string>;
27
+ 'validateProperties'?: Array<string>;
28
+ static discriminator: string | undefined;
29
+ static attributeTypeMap: Array<AttributeDef>;
30
+ static getAttributeTypeMap(): AttributeDef[];
31
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AttributeDef } from './serialization.model';
13
+ export declare class MediusQueryResultBase {
14
+ 'selectInTwoSteps'?: boolean;
15
+ 'allDataCount'?: number;
16
+ static discriminator: string | undefined;
17
+ static attributeTypeMap: Array<AttributeDef>;
18
+ }
19
+ export declare class MediusQueryResultWithObject extends MediusQueryResultBase {
20
+ 'pageData'?: Array<object>;
21
+ static discriminator: string | undefined;
22
+ static attributeTypeMap: Array<AttributeDef>;
23
+ static getAttributeTypeMap(): AttributeDef[];
24
+ }
25
+ export declare class MediusQueryResult<T> extends MediusQueryResultBase implements IMediusQueryResult<T> {
26
+ 'pageData'?: Array<T>;
27
+ static discriminator: string | undefined;
28
+ static attributeTypeMapBase: Array<AttributeDef>;
29
+ static attributeTypeMap: Array<AttributeDef>;
30
+ static getAttributeTypeMap(): AttributeDef[];
31
+ }
32
+ export interface IMediusQueryResult<T> {
33
+ selectInTwoSteps?: boolean;
34
+ allDataCount?: number;
35
+ pageData?: Array<T>;
36
+ }
@@ -3,7 +3,6 @@ export interface AttributeDef {
3
3
  baseName: string;
4
4
  type: string;
5
5
  }
6
-
7
6
  export interface SerializableTypeMap {
8
7
  [index: string]: any;
9
8
  }
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { MediusQueryParam, MediusQueryResult } from '../models';
4
+ import { ClassType } from '../../types';
5
+ export declare abstract class AMngCrudApiService<T, QRT extends MediusQueryResult<T>> {
6
+ protected type: ClassType<T>;
7
+ protected queryResultType: ClassType<QRT>;
8
+ protected http: HttpClient;
9
+ private readonly objectSerializer;
10
+ protected constructor(type: ClassType<T>, queryResultType: ClassType<QRT>, http: HttpClient);
11
+ protected abstract getBasePath(): string;
12
+ protected abstract getServiceBasePath(): string;
13
+ protected getGetAllPostPath(): string;
14
+ protected getCreatePostPath(): string;
15
+ protected getUpdatePutPath(id: any, item: T): string;
16
+ protected getGetByIdGetPath(id: any): string;
17
+ protected getRemoveDeletePath(id: any, item: T): string;
18
+ createPost(item: T): Observable<T>;
19
+ getAllPost(queryParam?: MediusQueryParam): Observable<QRT>;
20
+ getByIdGet(id: any): Observable<T>;
21
+ updatePut(id: any, item: T): Observable<T>;
22
+ removeDelete(id: any, item: T): Observable<any>;
23
+ }
@@ -0,0 +1,12 @@
1
+ import { Params } from '@angular/router';
2
+ import { FilterMetadata, LazyLoadEvent } from 'primeng/api';
3
+ import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
4
+ import { FilterDescriptor } from '../../descriptors';
5
+ export declare class MediusRestUtil {
6
+ static readonly matchModeMapping: Array<[string, string, MediusFilterMatchType]>;
7
+ static fromAngularQueryParamsToMediusQueryParams(params: Params, filterDescriptors: Array<FilterDescriptor<any>>, defaultItemsPerPage?: number, defaultOffset?: number): MediusQueryParam;
8
+ static fromPrimeLazyLoadEventToAngularQueryParams(event: LazyLoadEvent, defaultItemsPerPage?: number, defaultOffset?: number): Params;
9
+ static fromPrimeLazyLoadEventToMediusQueryParams(event: LazyLoadEvent): MediusQueryParam;
10
+ static addMediusFilterFromPrimeFilterMetadata(queryParamBuilder: MediusQueryParamBuilder, property: string, filterMetadata: FilterMetadata): void;
11
+ static getMediusFilterMatchTypeFromPrimeMatchMode(matchMode: string): MediusFilterMatchType;
12
+ }
@@ -0,0 +1,30 @@
1
+ import { AttributeDef, SerializableTypeMap } from '../models';
2
+ import { ClassType } from '../../types';
3
+ export declare class ObjectSerializer {
4
+ private readonly _primitives;
5
+ private readonly _typeMap;
6
+ private readonly _enumMap;
7
+ private static _instance;
8
+ /**
9
+ * Only use one instance of object (out of Angular context)
10
+ */
11
+ static get(): ObjectSerializer;
12
+ get primitives(): string[];
13
+ get typeMap(): SerializableTypeMap;
14
+ get enumMap(): SerializableTypeMap;
15
+ findAttributeDefinitionByClassType(type: ClassType<any>, attributeName: string): AttributeDef | null;
16
+ findAttributeDefinition(typeName: string, attributeName: string): AttributeDef | null;
17
+ findAttributesDefinitionByClassType(type: ClassType<any>): Array<AttributeDef> | null;
18
+ findAttributesDefinition(typeName: string): Array<AttributeDef> | null;
19
+ findByClassType(type: ClassType<any>): any;
20
+ findType(typeName: string): any;
21
+ findEnum(enumName: string): any;
22
+ registerTypes(types: SerializableTypeMap): void;
23
+ registerType(type: ClassType<any>, optTypeName?: string): void;
24
+ registerEnums(enums: SerializableTypeMap): void;
25
+ findCorrectType(data: any, expectedType: string): any;
26
+ serializeClass<T>(data: any, type: ClassType<T>): any;
27
+ serialize(data: any, type: string): any;
28
+ deserializeClass<T>(data: any, type: ClassType<T>): any;
29
+ deserialize(data: any, type: string): any;
30
+ }
@@ -0,0 +1,36 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { Observable } from 'rxjs';
5
+ import { ConfirmationService } from 'primeng/api';
6
+ import { IdType } from '../../types';
7
+ import { ActionDescriptor } from '../../descriptors';
8
+ import { IActionConfirmationService, ActionData } from './models';
9
+ import { MngActionService } from '../../services';
10
+ import { TableviewComponentService } from '../tableview/services';
11
+ import * as i0 from "@angular/core";
12
+ export declare class MngActionComponent<T, S> implements OnInit, IActionConfirmationService {
13
+ private route;
14
+ private translate;
15
+ private actionService;
16
+ private confirmationService;
17
+ private tableviewService;
18
+ action: ActionDescriptor<T>;
19
+ item?: T;
20
+ itemId?: IdType;
21
+ actionData?: ActionData;
22
+ private loadingSubject;
23
+ $loading: Observable<boolean>;
24
+ cmpId: string;
25
+ $isVisible: Observable<boolean>;
26
+ $isEnabled: Observable<boolean>;
27
+ $label: Observable<string | null>;
28
+ $tooltip: Observable<string | null>;
29
+ constructor(route: ActivatedRoute, translate: TranslateService, actionService: MngActionService, confirmationService: ConfirmationService, tableviewService: TableviewComponentService<T, S>);
30
+ ngOnInit(): void;
31
+ triggerAction(event: Event): void;
32
+ getConfirmationService(): ConfirmationService;
33
+ getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngActionComponent<any, any>, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": "action"; "item": "item"; "itemId": "itemId"; "actionData": "actionData"; }, {}, never, never>;
36
+ }
@@ -0,0 +1,46 @@
1
+ import { Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
4
+ import { Observable } from 'rxjs';
5
+ import { ActionData, ActionRunResult } from '../models';
6
+ import { ActionEditorDescriptor } from '../../../descriptors';
7
+ import { IdType } from '../../../types';
8
+ import { IEditorDataProvider } from '../../../data-providers';
9
+ import { MngFormEditorSubmitEvent } from '../../form/models';
10
+ import { MngActionService } from '../../../services';
11
+ import { MngTemplateDirective } from '../../../directives';
12
+ import * as i0 from "@angular/core";
13
+ export declare class MngActionDialogComponent<T, S> implements OnInit, OnDestroy {
14
+ private injector;
15
+ private translate;
16
+ dialogRef: DynamicDialogRef;
17
+ dialogConfig: DynamicDialogConfig;
18
+ private actionService;
19
+ action: ActionEditorDescriptor<T>;
20
+ itemId?: IdType;
21
+ item?: T;
22
+ actionData?: ActionData;
23
+ dataProvider?: IEditorDataProvider<T, S>;
24
+ templates: QueryList<MngTemplateDirective>;
25
+ private submitButtonElementRef;
26
+ private editorComponent;
27
+ cmpId: string;
28
+ private loadingSubject;
29
+ private submitLoadingSubject;
30
+ loading$: Observable<boolean>;
31
+ submitLoading$: Observable<boolean>;
32
+ isSaveButton: boolean;
33
+ private tableviewService?;
34
+ private sourceComponent;
35
+ private subscriptions;
36
+ constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService);
37
+ ngOnInit(): void;
38
+ ngOnDestroy(): void;
39
+ onSubmit(event: MngFormEditorSubmitEvent<T>): void;
40
+ closeDialog(result?: ActionRunResult<T, any, any>): void;
41
+ saveItem(): void;
42
+ private loadItemWithDataProvider;
43
+ private setDialogHeaderTitle;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngActionDialogComponent<any, any>, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngActionDialogComponent<any, any>, "mng-action-dialog", never, { "action": "action"; "itemId": "itemId"; "item": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; }, {}, ["templates"], never>;
46
+ }
@@ -1,6 +1,5 @@
1
- import {ConfirmationService} from 'primeng/api';
2
- import {ActionDescriptor} from '../../../descriptors';
3
-
1
+ import { ConfirmationService } from 'primeng/api';
2
+ import { ActionDescriptor } from '../../../descriptors';
4
3
  export interface IActionConfirmationService {
5
4
  getConfirmationService(): ConfirmationService;
6
5
  getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
@@ -0,0 +1,53 @@
1
+ import { DynamicDialogRef } from 'primeng/dynamicdialog';
2
+ import { Observable } from 'rxjs';
3
+ import { IdType } from '../../../types';
4
+ import { IDataProvider } from '../../../data-providers';
5
+ import { TableviewComponentService } from '../../tableview/services';
6
+ export declare class ActionExecContext<T, S, DP extends IDataProvider<T, S>> {
7
+ readonly dataProvider?: DP | undefined;
8
+ readonly serviceInstance?: S | undefined;
9
+ readonly data?: {
10
+ item?: T | undefined;
11
+ itemId?: IdType | undefined;
12
+ actionData?: ActionData | undefined;
13
+ } | undefined;
14
+ readonly sourceComponent: any;
15
+ readonly tableview: TableviewComponentService<T, S> | null;
16
+ constructor(dataProvider?: DP | undefined, serviceInstance?: S | undefined, data?: {
17
+ item?: T | undefined;
18
+ itemId?: IdType | undefined;
19
+ actionData?: ActionData | undefined;
20
+ } | undefined, sourceComponent?: any, tableview?: TableviewComponentService<T, S> | null);
21
+ }
22
+ export declare class ActionError {
23
+ readonly error: any;
24
+ readonly dismissed: boolean;
25
+ constructor(error: any, // error details
26
+ dismissed?: boolean);
27
+ }
28
+ export declare class ActionRunResult<T, S, DP extends IDataProvider<T, S>> {
29
+ readonly context?: ActionExecContext<T, S, DP> | undefined;
30
+ readonly result?: T | undefined;
31
+ readonly error?: ActionError | undefined;
32
+ constructor(context?: ActionExecContext<T, S, DP> | undefined, result?: T | undefined, error?: ActionError | undefined);
33
+ }
34
+ export declare class ActionActivationResult<T, S, DP extends IDataProvider<T, S>> {
35
+ readonly runResult?: ActionRunResult<T, S, DP> | undefined;
36
+ readonly dialogRef?: DynamicDialogRef | undefined;
37
+ constructor(runResult?: ActionRunResult<T, S, DP> | undefined, dialogRef?: DynamicDialogRef | undefined);
38
+ get runContext(): ActionExecContext<T, S, DP> | null | undefined;
39
+ get result(): T | null | undefined;
40
+ get error(): ActionError | null | undefined;
41
+ }
42
+ export declare class ActionTriggerResult<T, S, DP extends IDataProvider<T, S>> {
43
+ readonly activationResult?: ActionActivationResult<T, S, DP> | undefined;
44
+ readonly routerNavigation?: Observable<boolean> | undefined;
45
+ constructor(activationResult?: ActionActivationResult<T, S, DP> | undefined, routerNavigation?: Observable<boolean> | undefined);
46
+ get runContext(): ActionRunResult<T, S, DP> | null | undefined;
47
+ get result(): T | null | undefined;
48
+ get error(): ActionError | null | undefined;
49
+ get dialogRef(): DynamicDialogRef | null | undefined;
50
+ }
51
+ export declare type ActionData = {
52
+ [key: string]: any;
53
+ };
@@ -0,0 +1,32 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { ConfirmationService } from 'primeng/api';
4
+ import { ActionDescriptor } from '../../../descriptors';
5
+ import { IActionConfirmationService } from '../models';
6
+ import { MngActionService, MngNavigationService } from '../../../services';
7
+ import { TableviewComponentService } from '../../tableview/services';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy, IActionConfirmationService {
10
+ private router;
11
+ private route;
12
+ private confirmationService;
13
+ private navigationService;
14
+ private actionService;
15
+ private tableviewService;
16
+ private actions;
17
+ private activeAction?;
18
+ private dialogRef?;
19
+ private dialogCloseSubscription?;
20
+ private subscriptions;
21
+ cmpId: string;
22
+ constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService: MngNavigationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
23
+ ngOnInit(): void;
24
+ ngOnDestroy(): void;
25
+ getConfirmationService(): ConfirmationService;
26
+ getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
27
+ private activateAction;
28
+ private deactivateAction;
29
+ private findActiveAction;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngActionRouteComponent<any, any>, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngActionRouteComponent<any, any>, "mng-action-route", never, {}, {}, never, never>;
32
+ }
@@ -0,0 +1,36 @@
1
+ import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { ILookupDataProvider } from '../../../data-providers';
5
+ import * as i0 from "@angular/core";
6
+ export declare const MNG_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider;
7
+ export declare class MngAutocompleteComponent implements OnInit, ControlValueAccessor {
8
+ private injector;
9
+ dataProvider?: ILookupDataProvider<any, any>;
10
+ dataKeyProperty?: string;
11
+ itemsLabelProperty?: string;
12
+ multiselect: boolean;
13
+ placeholder?: string;
14
+ className: string | null;
15
+ dropdownClassName: string | null;
16
+ onChange: EventEmitter<any>;
17
+ private primeAutocomplete?;
18
+ private suggestionsSubject;
19
+ private searchSubscription;
20
+ private dataProviderService;
21
+ private onChangeFn;
22
+ private onTouchedFn;
23
+ autocompleteFormControl: FormControl;
24
+ suggestions$: Observable<Array<any>>;
25
+ isLoading: boolean;
26
+ constructor(injector: Injector);
27
+ ngOnInit(): void;
28
+ onSearch(event: any): void;
29
+ onSelect(value: any): void;
30
+ registerOnChange(fn: any): void;
31
+ registerOnTouched(fn: any): void;
32
+ setDisabledState(isDisabled: boolean): void;
33
+ writeValue(obj: any): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
36
+ }
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { ILookupDataProvider } from '../../../data-providers';
5
+ import * as i0 from "@angular/core";
6
+ export declare const MNG_DROPDOWN_VALUE_ACCESSOR: ExistingProvider;
7
+ export declare class MngDropdownComponent implements OnInit, ControlValueAccessor {
8
+ private injector;
9
+ dataProvider?: ILookupDataProvider<any, any>;
10
+ dataKeyProperty?: string;
11
+ itemsLabelProperty?: string;
12
+ itemsValueProperty?: string;
13
+ multiselect: boolean;
14
+ placeholder?: string;
15
+ showClear: boolean;
16
+ className: string | null;
17
+ dropdownClassName: string | null;
18
+ onChange: EventEmitter<any>;
19
+ private primeDropdown?;
20
+ private itemsSubject;
21
+ private dataProviderService;
22
+ private onChangeFn;
23
+ private onTouchedFn;
24
+ dropdownFormControl: FormControl;
25
+ items$: Observable<Array<any>>;
26
+ constructor(injector: Injector);
27
+ ngOnInit(): void;
28
+ registerOnChange(fn: any): void;
29
+ registerOnTouched(fn: any): void;
30
+ setDisabledState(isDisabled: boolean): void;
31
+ writeValue(obj: any): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
34
+ }
@@ -0,0 +1,39 @@
1
+ import { AfterContentInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
4
+ import { Message } from 'primeng/api';
5
+ import { Observable } from 'rxjs';
6
+ import { TranslateService } from '@ngx-translate/core';
7
+ import { EditorDescriptor } from '../../../descriptors';
8
+ import { MngTemplateDirective } from '../../../directives';
9
+ import * as i0 from "@angular/core";
10
+ export declare class MngFormEditorComponent<T> implements OnInit, AfterContentInit, OnDestroy {
11
+ private translateService;
12
+ descriptor: EditorDescriptor<T>;
13
+ submitLoading: Observable<boolean> | boolean;
14
+ item?: T;
15
+ isSubmitButtonVisible: boolean;
16
+ isFormDisabled: null;
17
+ private submitEventEmitter;
18
+ templates: QueryList<MngTemplateDirective>;
19
+ submitButtonElementRef?: ElementRef;
20
+ form: FormGroup;
21
+ formOptions: FormlyFormOptions;
22
+ formFields: FormlyFieldConfig[];
23
+ formOrigItem?: T;
24
+ formModel: any;
25
+ formMessages: Message[];
26
+ submitLoading$: Observable<boolean>;
27
+ private subscriptions;
28
+ constructor(translateService: TranslateService);
29
+ ngOnInit(): void;
30
+ ngAfterContentInit(): void;
31
+ ngOnDestroy(): void;
32
+ submit(): void;
33
+ onSubmit(event: Event): void;
34
+ private isAnyFieldInvalid;
35
+ private updateFormModel;
36
+ private updateFormState;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "submitEventEmitter": "onSubmit"; }, ["templates"], never>;
39
+ }
@@ -0,0 +1,11 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { FieldLookupDescriptor } from '../../../../../descriptors';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType {
6
+ aFormControl: FormControl;
7
+ descriptor: FieldLookupDescriptor<T, any>;
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldAutocompleteComponent<any>, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { FieldLookupDescriptor } from '../../../../../descriptors';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MngFormlyFieldDropdownComponent<T> extends FieldType {
6
+ dFormControl: FormControl;
7
+ descriptor: FieldLookupDescriptor<T, any>;
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldDropdownComponent<any>, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never>;
11
+ }
@@ -0,0 +1,6 @@
1
+ import { FieldType } from '@ngx-formly/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngFormlyFieldFieldsetComponent extends FieldType {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldFieldsetComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldFieldsetComponent, "mng-formly-field-fieldset", never, {}, {}, never, never>;
6
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { FieldType } from '@ngx-formly/core';
4
+ import { FieldInputDescriptor } from '../../../../../descriptors';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MngFormlyFieldInputComponent extends FieldType implements OnInit {
7
+ iFormControl: FormControl;
8
+ descriptor: FieldInputDescriptor<any>;
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent, "mng-formly-field-input", never, {}, {}, never, never>;
12
+ }
@@ -0,0 +1,17 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { FieldManyEditorDescriptor, ActionDescriptor } from '../../../../../descriptors';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
7
+ descriptor: FieldManyEditorDescriptor<T, ET>;
8
+ itemsSubject: Subject<Array<T>>;
9
+ items$: Observable<Array<T>>;
10
+ toolbarActions: Array<ActionDescriptor<T>>;
11
+ rowActions: Array<ActionDescriptor<T>>;
12
+ private subscriptions;
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never>;
17
+ }