@mediusinc/mng-commons 0.1.0 → 0.2.5

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 (274) hide show
  1. package/esm2020/lib/api/models/builders/query-param.builder.mjs +48 -48
  2. package/esm2020/lib/api/models/filter-match-type.model.mjs +26 -26
  3. package/esm2020/lib/api/models/filter-param.model.mjs +46 -46
  4. package/esm2020/lib/api/models/index.mjs +9 -9
  5. package/esm2020/lib/api/models/mappers.mjs +17 -17
  6. package/esm2020/lib/api/models/query-mode.model.mjs +19 -19
  7. package/esm2020/lib/api/models/query-param.model.mjs +69 -69
  8. package/esm2020/lib/api/models/query-result.model.mjs +45 -45
  9. package/esm2020/lib/api/models/serialization.model.mjs +2 -2
  10. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +72 -0
  11. package/esm2020/lib/api/services/index.mjs +2 -2
  12. package/esm2020/lib/api/utils/index.mjs +3 -3
  13. package/esm2020/lib/api/utils/medius-rest.util.mjs +122 -122
  14. package/esm2020/lib/api/utils/object-serializer.util.mjs +226 -226
  15. package/esm2020/lib/components/action/action.component.mjs +65 -63
  16. package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +148 -159
  17. package/esm2020/lib/components/action/index.mjs +4 -4
  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 -144
  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 -142
  25. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +19 -19
  26. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +19 -19
  27. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +16 -16
  28. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -26
  29. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +109 -109
  30. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +122 -122
  31. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +17 -17
  32. package/esm2020/lib/components/form/formly/fields/index.mjs +8 -8
  33. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +17 -17
  34. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +16 -16
  35. package/esm2020/lib/components/form/formly/wrappers/index.mjs +3 -3
  36. package/esm2020/lib/components/form/index.mjs +4 -4
  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 -17
  40. package/esm2020/lib/components/layout/footer.component.mjs +17 -17
  41. package/esm2020/lib/components/layout/index.mjs +7 -7
  42. package/esm2020/lib/components/layout/main-layout.component.mjs +54 -33
  43. package/esm2020/lib/components/layout/menu-item.component.mjs +173 -173
  44. package/esm2020/lib/components/layout/menu.component.mjs +20 -20
  45. package/esm2020/lib/components/layout/services/index.mjs +2 -0
  46. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -190
  47. package/esm2020/lib/components/layout/topbar.component.mjs +59 -40
  48. package/esm2020/lib/components/tableview/index.mjs +6 -6
  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 -24
  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 +85 -74
  55. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +25 -25
  56. package/esm2020/lib/components/tableview/table/table.component.mjs +307 -307
  57. package/esm2020/lib/components/tableview/tableview.component.mjs +82 -83
  58. package/esm2020/lib/config/formly.config.mjs +136 -136
  59. package/esm2020/lib/config/index.mjs +2 -2
  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 +427 -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 -2
  78. package/esm2020/lib/directives/template.directive.mjs +29 -25
  79. package/esm2020/lib/mng-commons.module.mjs +410 -343
  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 -22
  84. package/esm2020/lib/pipes/index.mjs +3 -3
  85. package/esm2020/lib/pipes/property-path.pipe.mjs +36 -36
  86. package/esm2020/lib/services/action.service.mjs +269 -270
  87. package/esm2020/lib/services/commons.service.mjs +354 -357
  88. package/esm2020/lib/services/configuration.service.mjs +78 -77
  89. package/esm2020/lib/services/index.mjs +5 -5
  90. package/esm2020/lib/services/navigation.service.mjs +48 -48
  91. package/esm2020/lib/services/providers/commons-init.provider.mjs +4 -4
  92. package/esm2020/lib/services/providers/config-service.provider.mjs +20 -12
  93. package/esm2020/lib/services/providers/formly-config.provider.mjs +31 -31
  94. package/esm2020/lib/services/providers/index.mjs +4 -3
  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 -176
  102. package/esm2020/lib/utils/i18n.util.mjs +125 -125
  103. package/esm2020/lib/utils/index.mjs +6 -5
  104. package/esm2020/lib/utils/model.util.mjs +57 -57
  105. package/esm2020/lib/utils/toast.util.mjs +39 -39
  106. package/esm2020/lib/utils/type.util.mjs +39 -39
  107. package/esm2020/mediusinc-mng-commons.mjs +5 -5
  108. package/esm2020/public-api.mjs +36 -35
  109. package/fesm2015/mediusinc-mng-commons.mjs +6086 -5914
  110. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  111. package/fesm2020/mediusinc-mng-commons.mjs +6010 -5841
  112. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  113. package/lib/api/models/builders/query-param.builder.d.ts +11 -11
  114. package/lib/api/models/filter-match-type.model.d.ts +23 -23
  115. package/lib/api/models/filter-param.model.d.ts +23 -23
  116. package/lib/api/models/index.d.ts +8 -8
  117. package/lib/api/models/mappers.d.ts +6 -6
  118. package/lib/api/models/query-mode.model.d.ts +16 -16
  119. package/lib/api/models/query-param.model.d.ts +31 -31
  120. package/lib/api/models/query-result.model.d.ts +36 -36
  121. package/lib/api/models/serialization.model.d.ts +8 -8
  122. package/lib/api/services/{abstract-crud-api.service.d.ts → crud-api.abstract.service.d.ts} +23 -23
  123. package/lib/api/services/index.d.ts +1 -1
  124. package/lib/api/utils/index.d.ts +2 -2
  125. package/lib/api/utils/medius-rest.util.d.ts +12 -12
  126. package/lib/api/utils/object-serializer.util.d.ts +30 -30
  127. package/lib/components/action/action.component.d.ts +36 -36
  128. package/lib/components/action/dialog/action-dialog.component.d.ts +46 -49
  129. package/lib/components/action/index.d.ts +3 -3
  130. package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +6 -6
  131. package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +53 -53
  132. package/lib/components/action/models/index.d.ts +2 -0
  133. package/lib/components/action/route/action-route.component.d.ts +32 -32
  134. package/lib/components/form/autocomplete/{mng-autocomplete.component.d.ts → autocomplete.component.d.ts} +36 -36
  135. package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts} +34 -34
  136. package/lib/components/form/editor/form-editor.component.d.ts +39 -39
  137. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +11 -11
  138. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +11 -11
  139. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +6 -6
  140. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +12 -12
  141. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +17 -17
  142. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +36 -36
  143. package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +6 -6
  144. package/lib/components/form/formly/fields/index.d.ts +7 -7
  145. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +8 -8
  146. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +8 -8
  147. package/lib/components/form/formly/wrappers/index.d.ts +2 -2
  148. package/lib/components/form/index.d.ts +3 -3
  149. package/lib/components/form/models/form-editor.event.d.ts +5 -0
  150. package/lib/components/form/models/index.d.ts +1 -0
  151. package/lib/components/layout/breadcrumb.component.d.ts +8 -8
  152. package/lib/components/layout/footer.component.d.ts +9 -9
  153. package/lib/components/layout/index.d.ts +6 -6
  154. package/lib/components/layout/main-layout.component.d.ts +21 -13
  155. package/lib/components/layout/menu-item.component.d.ts +29 -29
  156. package/lib/components/layout/menu.component.d.ts +10 -10
  157. package/lib/components/layout/services/index.d.ts +1 -0
  158. package/lib/components/layout/services/main-layout.component.service.d.ts +65 -65
  159. package/lib/components/layout/topbar.component.d.ts +25 -18
  160. package/lib/components/tableview/index.d.ts +5 -5
  161. package/lib/components/tableview/models/index.d.ts +1 -0
  162. package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +17 -17
  163. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +14 -14
  164. package/lib/components/tableview/services/index.d.ts +1 -0
  165. package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +13 -13
  166. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +27 -22
  167. package/lib/components/tableview/table/column-value/column-value.component.d.ts +12 -12
  168. package/lib/components/tableview/table/table.component.d.ts +79 -79
  169. package/lib/components/tableview/tableview.component.d.ts +35 -36
  170. package/lib/config/formly.config.d.ts +14 -14
  171. package/lib/config/index.d.ts +1 -1
  172. package/lib/{models/config → config/models}/index.d.ts +1 -1
  173. package/lib/{models/config → config/models}/mng-config.model.d.ts +34 -37
  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/lib/data-providers/index.d.ts +5 -0
  177. package/lib/data-providers/lookup.data-provider.d.ts +14 -0
  178. package/lib/data-providers/table.data-provider.d.ts +6 -0
  179. package/lib/data-providers/tableview.data-provider.d.ts +15 -0
  180. package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +148 -145
  181. package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +255 -257
  182. package/lib/{models/validators → descriptors}/field.validator.d.ts +18 -18
  183. package/lib/descriptors/index.d.ts +7 -0
  184. package/lib/{models/interfaces/lookup.model.d.ts → descriptors/lookup.descriptor.d.ts} +17 -17
  185. package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +15 -15
  186. package/lib/{models/descriptors/table-descriptor.model.d.ts → descriptors/table.descriptor.d.ts} +184 -164
  187. package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +39 -41
  188. package/lib/directives/component.directive.d.ts +11 -0
  189. package/lib/directives/index.d.ts +2 -1
  190. package/lib/directives/template.directive.d.ts +13 -11
  191. package/lib/mng-commons.module.d.ts +79 -78
  192. package/lib/models/{router/index.d.ts → index.d.ts} +2 -1
  193. package/lib/models/router.model.d.ts +14 -0
  194. package/lib/models/{user/user.model.d.ts → user.model.d.ts} +8 -8
  195. package/lib/pipes/boolean.pipe.d.ts +7 -7
  196. package/lib/pipes/index.d.ts +2 -2
  197. package/lib/pipes/property-path.pipe.d.ts +7 -7
  198. package/lib/services/action.service.d.ts +92 -92
  199. package/lib/services/commons.service.d.ts +72 -74
  200. package/lib/services/configuration.service.d.ts +35 -35
  201. package/lib/services/index.d.ts +4 -4
  202. package/lib/services/navigation.service.d.ts +14 -14
  203. package/lib/services/providers/commons-init.provider.d.ts +2 -2
  204. package/lib/services/providers/config-service.provider.d.ts +5 -5
  205. package/lib/services/providers/formly-config.provider.d.ts +4 -4
  206. package/lib/services/providers/index.d.ts +3 -2
  207. package/lib/services/tokens/browser-storage.token.d.ts +2 -0
  208. package/lib/services/tokens/index.d.ts +2 -0
  209. package/lib/services/tokens/module-config.token.d.ts +3 -0
  210. package/lib/{models/types → types}/index.d.ts +2 -2
  211. package/lib/{models/types → types}/type.decorator.d.ts +2 -2
  212. package/lib/{models/types → types}/type.model.d.ts +10 -10
  213. package/lib/utils/editor-formly.util.d.ts +9 -9
  214. package/lib/utils/i18n.util.d.ts +18 -18
  215. package/lib/utils/index.d.ts +5 -4
  216. package/lib/utils/model.util.d.ts +7 -7
  217. package/lib/utils/toast.util.d.ts +13 -13
  218. package/lib/utils/type.util.d.ts +15 -15
  219. package/mediusinc-mng-commons.d.ts +5 -5
  220. package/package.json +4 -4
  221. package/public-api.d.ts +25 -24
  222. package/scss/common/layout/_exception.scss +1 -1
  223. package/scss/common/layout/_help.scss +3 -3
  224. package/scss/common/layout/_landing.scss +1 -1
  225. package/scss/common/variables/layout/_common.scss +2 -0
  226. package/scss/common/variables/layout/_layout_dark.scss +4 -3
  227. package/scss/common/variables/layout/_layout_light.scss +4 -3
  228. package/scss/layout/default/_mng-variables-layout-light.scss +2 -2
  229. package/scss/mng-commons-dark.scss +0 -5
  230. package/scss/mng-commons-light.scss +0 -8
  231. package/scss/theme/default/_mng-variables-theme-light.scss +4 -4
  232. package/.pnpm-debug.log +0 -15
  233. package/esm2020/lib/api/services/abstract-crud-api.service.mjs +0 -72
  234. package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +0 -114
  235. package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +0 -113
  236. package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
  237. package/esm2020/lib/models/action/action.model.mjs +0 -58
  238. package/esm2020/lib/models/action/index.mjs +0 -2
  239. package/esm2020/lib/models/config/index.mjs +0 -2
  240. package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
  241. package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -325
  242. package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -671
  243. package/esm2020/lib/models/descriptors/index.mjs +0 -6
  244. package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
  245. package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -401
  246. package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -133
  247. package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
  248. package/esm2020/lib/models/events/index.mjs +0 -3
  249. package/esm2020/lib/models/events/table-event.model.mjs +0 -16
  250. package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
  251. package/esm2020/lib/models/interfaces/index.mjs +0 -3
  252. package/esm2020/lib/models/interfaces/lookup.model.mjs +0 -2
  253. package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
  254. package/esm2020/lib/models/providers/index.mjs +0 -2
  255. package/esm2020/lib/models/router/index.mjs +0 -2
  256. package/esm2020/lib/models/router/router.model.mjs +0 -2
  257. package/esm2020/lib/models/types/index.mjs +0 -3
  258. package/esm2020/lib/models/types/type.decorator.mjs +0 -7
  259. package/esm2020/lib/models/types/type.model.mjs +0 -2
  260. package/esm2020/lib/models/user/index.mjs +0 -2
  261. package/esm2020/lib/models/user/user.model.mjs +0 -2
  262. package/esm2020/lib/models/validators/field.validator.mjs +0 -21
  263. package/esm2020/lib/models/validators/index.mjs +0 -2
  264. package/lib/models/action/index.d.ts +0 -1
  265. package/lib/models/descriptors/index.d.ts +0 -5
  266. package/lib/models/events/editor-event.model.d.ts +0 -11
  267. package/lib/models/events/index.d.ts +0 -2
  268. package/lib/models/interfaces/index.d.ts +0 -2
  269. package/lib/models/providers/data-provider.model.d.ts +0 -62
  270. package/lib/models/providers/index.d.ts +0 -1
  271. package/lib/models/router/router.model.d.ts +0 -9
  272. package/lib/models/user/index.d.ts +0 -1
  273. package/lib/models/validators/index.d.ts +0 -1
  274. package/mediusinc-mng-commons-0.1.0.tgz +0 -0
@@ -1,78 +1,79 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { InputTextModule } from 'primeng/inputtext';
3
- import { MngModuleConfig } from './models/config';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./directives/template.directive";
6
- import * as i2 from "./pipes/property-path.pipe";
7
- import * as i3 from "./pipes/boolean.pipe";
8
- import * as i4 from "./components/layout/breadcrumb.component";
9
- import * as i5 from "./components/layout/footer.component";
10
- import * as i6 from "./components/layout/main-layout.component";
11
- import * as i7 from "./components/layout/menu.component";
12
- import * as i8 from "./components/layout/menu-item.component";
13
- import * as i9 from "./components/layout/topbar.component";
14
- import * as i10 from "./components/form/autocomplete/mng-autocomplete.component";
15
- import * as i11 from "./components/form/dropdown/mng-dropdown.component";
16
- import * as i12 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
17
- import * as i13 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
18
- import * as i14 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
19
- import * as i15 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
20
- import * as i16 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
21
- import * as i17 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
22
- import * as i18 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
23
- import * as i19 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
24
- import * as i20 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
25
- import * as i21 from "./components/tableview/table/table.component";
26
- import * as i22 from "./components/tableview/tableview.component";
27
- import * as i23 from "./components/tableview/table/column-value/column-value.component";
28
- import * as i24 from "./components/tableview/table/column-filter/column-filter.component";
29
- import * as i25 from "./components/form/editor/form-editor.component";
30
- import * as i26 from "./components/action/action.component";
31
- import * as i27 from "./components/action/dialog/action-dialog.component";
32
- import * as i28 from "./components/action/route/action-route.component";
33
- import * as i29 from "@angular/common";
34
- import * as i30 from "@angular/router";
35
- import * as i31 from "@angular/common/http";
36
- import * as i32 from "@angular/forms";
37
- import * as i33 from "@ngx-translate/core";
38
- import * as i34 from "@ngx-formly/core";
39
- import * as i35 from "primeng/autocomplete";
40
- import * as i36 from "primeng/breadcrumb";
41
- import * as i37 from "primeng/button";
42
- import * as i38 from "primeng/calendar";
43
- import * as i39 from "primeng/card";
44
- import * as i40 from "primeng/checkbox";
45
- import * as i41 from "primeng/chip";
46
- import * as i42 from "primeng/confirmdialog";
47
- import * as i43 from "primeng/confirmpopup";
48
- import * as i44 from "primeng/dialog";
49
- import * as i45 from "primeng/dynamicdialog";
50
- import * as i46 from "primeng/dropdown";
51
- import * as i47 from "primeng/inputnumber";
52
- import * as i48 from "primeng/inputmask";
53
- import * as i49 from "primeng/inputswitch";
54
- import * as i50 from "primeng/inputtext";
55
- import * as i51 from "primeng/inputtextarea";
56
- import * as i52 from "primeng/paginator";
57
- import * as i53 from "primeng/radiobutton";
58
- import * as i54 from "primeng/ripple";
59
- import * as i55 from "primeng/selectbutton";
60
- import * as i56 from "primeng/table";
61
- import * as i57 from "primeng/tag";
62
- import * as i58 from "primeng/toast";
63
- import * as i59 from "primeng/togglebutton";
64
- import * as i60 from "primeng/toolbar";
65
- import * as i61 from "primeng/tooltip";
66
- import * as i62 from "primeng/messages";
67
- import * as i63 from "primeng/progressspinner";
68
- import * as i64 from "primeng/tabview";
69
- import * as i65 from "primeng/fieldset";
70
- import * as i66 from "primeng/multiselect";
71
- import * as i67 from "primeng/skeleton";
72
- export declare const primeNgModules: (typeof InputTextModule)[];
73
- export declare class MngCommonsModule {
74
- static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
76
- static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.TemplateDirective, typeof i2.PropertyPathPipe, typeof i3.BooleanPipe, typeof i4.MngBreadcrumbComponent, typeof i5.MngFooterComponent, typeof i6.MngMainLayoutComponent, typeof i7.MngMenuComponent, typeof i8.MngMenuItemComponent, typeof i9.MngTopbarComponent, typeof i10.MngAutocompleteComponent, typeof i11.MngDropdownComponent, typeof i12.FormlyFieldWrapperComponent, typeof i13.FormlyTableWrapperComponent, typeof i14.FormlyFieldInputComponent, typeof i15.FormlyFieldDropdownComponent, typeof i16.FormlyFieldAutocompleteComponent, typeof i17.FormlyFieldTableDialogMultiselectComponent, typeof i18.FormlyFieldTableDialogFormComponent, typeof i19.FormlyFieldTabsComponent, typeof i20.FormlyFieldFieldsetComponent, typeof i21.TableComponent, typeof i22.TableviewComponent, typeof i23.MngTableColumnValueComponent, typeof i24.MngTableColumnFilterComponent, typeof i25.FormEditorComponent, typeof i26.ActionComponent, typeof i27.ActionDialogComponent, typeof i28.ActionRouteComponent], [typeof i29.CommonModule, typeof i30.RouterModule, typeof i31.HttpClientModule, typeof i32.ReactiveFormsModule, typeof i33.TranslateModule, typeof i34.FormlyModule, typeof i35.AutoCompleteModule, typeof i36.BreadcrumbModule, typeof i37.ButtonModule, typeof i38.CalendarModule, typeof i39.CardModule, typeof i40.CheckboxModule, typeof i41.ChipModule, typeof i42.ConfirmDialogModule, typeof i43.ConfirmPopupModule, typeof i44.DialogModule, typeof i45.DynamicDialogModule, typeof i46.DropdownModule, typeof i47.InputNumberModule, typeof i48.InputMaskModule, typeof i49.InputSwitchModule, typeof i50.InputTextModule, typeof i51.InputTextareaModule, typeof i52.PaginatorModule, typeof i53.RadioButtonModule, typeof i54.RippleModule, typeof i55.SelectButtonModule, typeof i56.TableModule, typeof i57.TagModule, typeof i58.ToastModule, typeof i59.ToggleButtonModule, typeof i60.ToolbarModule, typeof i61.TooltipModule, typeof i62.MessagesModule, typeof i63.ProgressSpinnerModule, typeof i64.TabViewModule, typeof i65.FieldsetModule, typeof i66.MultiSelectModule, typeof i67.SkeletonModule], [typeof i1.TemplateDirective, typeof i2.PropertyPathPipe, typeof i3.BooleanPipe, typeof i4.MngBreadcrumbComponent, typeof i5.MngFooterComponent, typeof i6.MngMainLayoutComponent, typeof i7.MngMenuComponent, typeof i8.MngMenuItemComponent, typeof i9.MngTopbarComponent, typeof i10.MngAutocompleteComponent, typeof i11.MngDropdownComponent, typeof i12.FormlyFieldWrapperComponent, typeof i13.FormlyTableWrapperComponent, typeof i14.FormlyFieldInputComponent, typeof i15.FormlyFieldDropdownComponent, typeof i16.FormlyFieldAutocompleteComponent, typeof i17.FormlyFieldTableDialogMultiselectComponent, typeof i18.FormlyFieldTableDialogFormComponent, typeof i19.FormlyFieldTabsComponent, typeof i20.FormlyFieldFieldsetComponent, typeof i21.TableComponent, typeof i22.TableviewComponent, typeof i23.MngTableColumnValueComponent, typeof i24.MngTableColumnFilterComponent, typeof i25.FormEditorComponent, typeof i26.ActionComponent, typeof i27.ActionDialogComponent, typeof i28.ActionRouteComponent]>;
77
- static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
78
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { InputTextModule } from 'primeng/inputtext';
3
+ import { MngModuleConfig } from './config/models';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./directives/component.directive";
6
+ import * as i2 from "./directives/template.directive";
7
+ import * as i3 from "./pipes/property-path.pipe";
8
+ import * as i4 from "./pipes/boolean.pipe";
9
+ import * as i5 from "./components/layout/breadcrumb.component";
10
+ import * as i6 from "./components/layout/footer.component";
11
+ import * as i7 from "./components/layout/main-layout.component";
12
+ import * as i8 from "./components/layout/menu.component";
13
+ import * as i9 from "./components/layout/menu-item.component";
14
+ import * as i10 from "./components/layout/topbar.component";
15
+ import * as i11 from "./components/form/autocomplete/autocomplete.component";
16
+ import * as i12 from "./components/form/dropdown/dropdown.component";
17
+ import * as i13 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
18
+ import * as i14 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
19
+ import * as i15 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
20
+ import * as i16 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
21
+ import * as i17 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
22
+ import * as i18 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
23
+ import * as i19 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
24
+ import * as i20 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
25
+ import * as i21 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
26
+ import * as i22 from "./components/tableview/table/table.component";
27
+ import * as i23 from "./components/tableview/tableview.component";
28
+ import * as i24 from "./components/tableview/table/column-value/column-value.component";
29
+ import * as i25 from "./components/tableview/table/column-filter/column-filter.component";
30
+ import * as i26 from "./components/form/editor/form-editor.component";
31
+ import * as i27 from "./components/action/action.component";
32
+ import * as i28 from "./components/action/dialog/action-dialog.component";
33
+ import * as i29 from "./components/action/route/action-route.component";
34
+ import * as i30 from "@angular/common";
35
+ import * as i31 from "@angular/router";
36
+ import * as i32 from "@angular/common/http";
37
+ import * as i33 from "@angular/forms";
38
+ import * as i34 from "@ngx-translate/core";
39
+ import * as i35 from "@ngx-formly/core";
40
+ import * as i36 from "primeng/autocomplete";
41
+ import * as i37 from "primeng/breadcrumb";
42
+ import * as i38 from "primeng/button";
43
+ import * as i39 from "primeng/calendar";
44
+ import * as i40 from "primeng/card";
45
+ import * as i41 from "primeng/checkbox";
46
+ import * as i42 from "primeng/chip";
47
+ import * as i43 from "primeng/confirmdialog";
48
+ import * as i44 from "primeng/confirmpopup";
49
+ import * as i45 from "primeng/dialog";
50
+ import * as i46 from "primeng/dynamicdialog";
51
+ import * as i47 from "primeng/dropdown";
52
+ import * as i48 from "primeng/inputnumber";
53
+ import * as i49 from "primeng/inputmask";
54
+ import * as i50 from "primeng/inputswitch";
55
+ import * as i51 from "primeng/inputtext";
56
+ import * as i52 from "primeng/inputtextarea";
57
+ import * as i53 from "primeng/paginator";
58
+ import * as i54 from "primeng/radiobutton";
59
+ import * as i55 from "primeng/ripple";
60
+ import * as i56 from "primeng/selectbutton";
61
+ import * as i57 from "primeng/table";
62
+ import * as i58 from "primeng/tag";
63
+ import * as i59 from "primeng/toast";
64
+ import * as i60 from "primeng/togglebutton";
65
+ import * as i61 from "primeng/toolbar";
66
+ import * as i62 from "primeng/tooltip";
67
+ import * as i63 from "primeng/messages";
68
+ import * as i64 from "primeng/progressspinner";
69
+ import * as i65 from "primeng/tabview";
70
+ import * as i66 from "primeng/fieldset";
71
+ import * as i67 from "primeng/multiselect";
72
+ import * as i68 from "primeng/skeleton";
73
+ export declare const primeNgModules: (typeof InputTextModule)[];
74
+ export declare class MngCommonsModule {
75
+ static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
77
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.MngBreadcrumbComponent, typeof i6.MngFooterComponent, typeof i7.MngMainLayoutComponent, typeof i8.MngMenuComponent, typeof i9.MngMenuItemComponent, typeof i10.MngTopbarComponent, typeof i11.MngAutocompleteComponent, typeof i12.MngDropdownComponent, typeof i13.MngFormlyFieldWrapperComponent, typeof i14.MngFormlyTableWrapperComponent, typeof i15.MngFormlyFieldInputComponent, typeof i16.MngFormlyFieldDropdownComponent, typeof i17.MngFormlyFieldAutocompleteComponent, typeof i18.MngFormlyFieldTableDialogMultiselectComponent, typeof i19.MngFormlyFieldTableDialogFormComponent, typeof i20.MngFormlyFieldTabsComponent, typeof i21.MngFormlyFieldFieldsetComponent, typeof i22.MngTableComponent, typeof i23.MngTableviewComponent, typeof i24.MngTableColumnValueComponent, typeof i25.MngTableColumnFilterComponent, typeof i26.MngFormEditorComponent, typeof i27.MngActionComponent, typeof i28.MngActionDialogComponent, typeof i29.MngActionRouteComponent], [typeof i30.CommonModule, typeof i31.RouterModule, typeof i32.HttpClientModule, typeof i33.ReactiveFormsModule, typeof i34.TranslateModule, typeof i35.FormlyModule, typeof i36.AutoCompleteModule, typeof i37.BreadcrumbModule, typeof i38.ButtonModule, typeof i39.CalendarModule, typeof i40.CardModule, typeof i41.CheckboxModule, typeof i42.ChipModule, typeof i43.ConfirmDialogModule, typeof i44.ConfirmPopupModule, typeof i45.DialogModule, typeof i46.DynamicDialogModule, typeof i47.DropdownModule, typeof i48.InputNumberModule, typeof i49.InputMaskModule, typeof i50.InputSwitchModule, typeof i51.InputTextModule, typeof i52.InputTextareaModule, typeof i53.PaginatorModule, typeof i54.RadioButtonModule, typeof i55.RippleModule, typeof i56.SelectButtonModule, typeof i57.TableModule, typeof i58.TagModule, typeof i59.ToastModule, typeof i60.ToggleButtonModule, typeof i61.ToolbarModule, typeof i62.TooltipModule, typeof i63.MessagesModule, typeof i64.ProgressSpinnerModule, typeof i65.TabViewModule, typeof i66.FieldsetModule, typeof i67.MultiSelectModule, typeof i68.SkeletonModule], [typeof i36.AutoCompleteModule, typeof i37.BreadcrumbModule, typeof i38.ButtonModule, typeof i39.CalendarModule, typeof i40.CardModule, typeof i41.CheckboxModule, typeof i42.ChipModule, typeof i43.ConfirmDialogModule, typeof i44.ConfirmPopupModule, typeof i45.DialogModule, typeof i46.DynamicDialogModule, typeof i47.DropdownModule, typeof i48.InputNumberModule, typeof i49.InputMaskModule, typeof i50.InputSwitchModule, typeof i51.InputTextModule, typeof i52.InputTextareaModule, typeof i53.PaginatorModule, typeof i54.RadioButtonModule, typeof i55.RippleModule, typeof i56.SelectButtonModule, typeof i57.TableModule, typeof i58.TagModule, typeof i59.ToastModule, typeof i60.ToggleButtonModule, typeof i61.ToolbarModule, typeof i62.TooltipModule, typeof i63.MessagesModule, typeof i64.ProgressSpinnerModule, typeof i65.TabViewModule, typeof i66.FieldsetModule, typeof i67.MultiSelectModule, typeof i68.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.MngBreadcrumbComponent, typeof i6.MngFooterComponent, typeof i7.MngMainLayoutComponent, typeof i8.MngMenuComponent, typeof i9.MngMenuItemComponent, typeof i10.MngTopbarComponent, typeof i11.MngAutocompleteComponent, typeof i12.MngDropdownComponent, typeof i13.MngFormlyFieldWrapperComponent, typeof i14.MngFormlyTableWrapperComponent, typeof i15.MngFormlyFieldInputComponent, typeof i16.MngFormlyFieldDropdownComponent, typeof i17.MngFormlyFieldAutocompleteComponent, typeof i18.MngFormlyFieldTableDialogMultiselectComponent, typeof i19.MngFormlyFieldTableDialogFormComponent, typeof i20.MngFormlyFieldTabsComponent, typeof i21.MngFormlyFieldFieldsetComponent, typeof i22.MngTableComponent, typeof i23.MngTableviewComponent, typeof i24.MngTableColumnValueComponent, typeof i25.MngTableColumnFilterComponent, typeof i26.MngFormEditorComponent, typeof i27.MngActionComponent, typeof i28.MngActionDialogComponent, typeof i29.MngActionRouteComponent]>;
78
+ static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
79
+ }
@@ -1 +1,2 @@
1
- export * from './router.model';
1
+ export * from './router.model';
2
+ export * from './user.model';
@@ -0,0 +1,14 @@
1
+ import { ActivatedRouteSnapshot, Data } from '@angular/router';
2
+ import { MenuItem } from 'primeng/api';
3
+ import { Type } from '@angular/core';
4
+ export interface MngBreadcrumbMenuItem extends MenuItem {
5
+ isHome?: boolean;
6
+ }
7
+ export interface MngRouterData extends Data {
8
+ breadcrumb?: string | string[] | MngBreadcrumbMenuItem | MngBreadcrumbMenuItem[] | ((routeUrl: string, route: ActivatedRouteSnapshot) => MngBreadcrumbMenuItem[]);
9
+ pageTitle?: string;
10
+ topbarComponent?: Type<any>;
11
+ breadcrumbComponent?: Type<any>;
12
+ menuComponent?: Type<any>;
13
+ footerComponent?: Type<any>;
14
+ }
@@ -1,8 +1,8 @@
1
- import { IdType } from '../types';
2
- export interface IUser {
3
- id: IdType;
4
- username: string;
5
- displayName?: string;
6
- logout?: () => void;
7
- logoutUrl?: string;
8
- }
1
+ import { IdType } from '../types';
2
+ export interface IUser {
3
+ id: IdType;
4
+ username: string;
5
+ displayName?: string;
6
+ logout?: () => void;
7
+ logoutUrl?: string;
8
+ }
@@ -1,7 +1,7 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BooleanPipe implements PipeTransform {
4
- transform(value: any): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<BooleanPipe, "boolean">;
7
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngBooleanPipe implements PipeTransform {
4
+ transform(value: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngBooleanPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean">;
7
+ }
@@ -1,2 +1,2 @@
1
- export * from './boolean.pipe';
2
- export * from './property-path.pipe';
1
+ export * from './boolean.pipe';
2
+ export * from './property-path.pipe';
@@ -1,7 +1,7 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class PropertyPathPipe implements PipeTransform {
4
- transform(value: any, path?: string): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<PropertyPathPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<PropertyPathPipe, "propertyPath">;
7
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngPropertyPathPipe implements PipeTransform {
4
+ transform(value: any, path?: string): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngPropertyPathPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngPropertyPathPipe, "propertyPath">;
7
+ }
@@ -1,92 +1,92 @@
1
- import { Injector } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { DialogService } from 'primeng/dynamicdialog';
4
- import { ConfirmationService } from 'primeng/api';
5
- import { TranslateService } from '@ngx-translate/core';
6
- import { Observable } from 'rxjs';
7
- import { ActionActivationResult, ActionData, ActionExecContext, ActionRunResult, ActionTriggerResult } from '../models/action';
8
- import { ActionDescriptor, ActionEditorDescriptor } from '../models/descriptors';
9
- import { MngTableCellClickEvent } from '../models/events';
10
- import { IDataProvider, IEditorDataProvider } from '../models/providers';
11
- import { IdType } from '../models/types';
12
- import { TableviewComponentService } from '../components/tableview/tableview.component.service';
13
- import * as i0 from "@angular/core";
14
- export declare class MngActionService {
15
- private injector;
16
- private router;
17
- private dialogService;
18
- private confirmationService;
19
- private translate;
20
- constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService);
21
- getActionExecContext<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, tableview?: TableviewComponentService<T, S>, sourceComponent?: any, actionData?: ActionData): ActionExecContext<T, S, IDataProvider<T, S>>;
22
- runAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IDataProvider<T, S>>>;
23
- /**
24
- * Runs editor action save function usually triggered on form submit.
25
- *
26
- * @param action Action descriptor.
27
- * @param itemId Item id (if exists).
28
- * @param formItem Item instance (from form).
29
- * @param dataProvider Data provider
30
- * @param sourceComponent Source component from where the fetch function was called.
31
- * @param tableview Tableview component.
32
- * @param actionData Additional action data.
33
- */
34
- runEditorSave<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, formItem?: T, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
35
- /**
36
- * Runs editor action fetch function.
37
- *
38
- * @param action Action descriptor.
39
- * @param itemId Item id.
40
- * @param dataProvider Data provider
41
- * @param sourceComponent Source component from where the fetch function was called.
42
- * @param tableview Tableview component.
43
- * @param actionData Additional action data.
44
- */
45
- runEditorFetch<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
46
- /**
47
- * Prepares action run context for action of type editor.
48
- *
49
- * @param item Item instance (if exists).
50
- * @param itemId Item id (if exists).
51
- * @param dataProvider Data provider.
52
- * @param sourceComponent Source component from where the context preparation was called.
53
- * @param tableview Tableview component.
54
- * @param actionData Additional action data.
55
- */
56
- private prepareRunContextForEditor;
57
- /**
58
- * Gets service instance of data provider.
59
- *
60
- * @param dataProvider Data provider instance.
61
- */
62
- private getDataProviderService;
63
- /**
64
- * Activates action.
65
- *
66
- * @param action Action descriptor.
67
- * @param item Item instance (if exists).
68
- * @param itemId Item id (if exists).
69
- * @param actionData Optional additional action data.
70
- * @param tableview Tableview component.
71
- * @param sourceComponent Source activation component.
72
- */
73
- activateAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionActivationResult<T, S, IDataProvider<T, S>>>;
74
- /**
75
- * Triggers action from table row click position.
76
- *
77
- * @param action Action descriptor.
78
- * @param event Target table click event.
79
- * @param route Currently activate route.
80
- */
81
- triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route: ActivatedRoute): Observable<ActionTriggerResult<T, unknown, IDataProvider<T, unknown>>>;
82
- /**
83
- * Triggers action with optional data (item, itemId, ...) and currently activated route.
84
- *
85
- * @param action Action.
86
- * @param actionData Optional action data.
87
- * @param route Optional activated route.
88
- */
89
- triggerAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, route?: ActivatedRoute, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionTriggerResult<T, S, IDataProvider<T, S>>>;
90
- static ɵfac: i0.ɵɵFactoryDeclaration<MngActionService, never>;
91
- static ɵprov: i0.ɵɵInjectableDeclaration<MngActionService>;
92
- }
1
+ import { Injector } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { DialogService } from 'primeng/dynamicdialog';
4
+ import { ConfirmationService } from 'primeng/api';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+ import { Observable } from 'rxjs';
7
+ import { ActionActivationResult, ActionData, ActionExecContext, ActionRunResult, ActionTriggerResult } from '../components/action/models';
8
+ import { ActionDescriptor, ActionEditorDescriptor } from '../descriptors';
9
+ import { MngTableCellClickEvent } from '../components/tableview/models';
10
+ import { TableviewComponentService } from '../components/tableview/services';
11
+ import { IDataProvider, IEditorDataProvider } from '../data-providers';
12
+ import { IdType } from '../types';
13
+ import * as i0 from "@angular/core";
14
+ export declare class MngActionService {
15
+ private injector;
16
+ private router;
17
+ private dialogService;
18
+ private confirmationService;
19
+ private translate;
20
+ constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService);
21
+ getActionExecContext<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, tableview?: TableviewComponentService<T, S>, sourceComponent?: any, actionData?: ActionData): ActionExecContext<T, S, IDataProvider<T, S>>;
22
+ runAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IDataProvider<T, S>>>;
23
+ /**
24
+ * Runs editor action save function usually triggered on form submit.
25
+ *
26
+ * @param action Action descriptor.
27
+ * @param itemId Item id (if exists).
28
+ * @param formItem Item instance (from form).
29
+ * @param dataProvider Data provider
30
+ * @param sourceComponent Source component from where the fetch function was called.
31
+ * @param tableview Tableview component.
32
+ * @param actionData Additional action data.
33
+ */
34
+ runEditorSave<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, formItem?: T, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
35
+ /**
36
+ * Runs editor action fetch function.
37
+ *
38
+ * @param action Action descriptor.
39
+ * @param itemId Item id.
40
+ * @param dataProvider Data provider
41
+ * @param sourceComponent Source component from where the fetch function was called.
42
+ * @param tableview Tableview component.
43
+ * @param actionData Additional action data.
44
+ */
45
+ runEditorFetch<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
46
+ /**
47
+ * Prepares action run context for action of type editor.
48
+ *
49
+ * @param item Item instance (if exists).
50
+ * @param itemId Item id (if exists).
51
+ * @param dataProvider Data provider.
52
+ * @param sourceComponent Source component from where the context preparation was called.
53
+ * @param tableview Tableview component.
54
+ * @param actionData Additional action data.
55
+ */
56
+ private prepareRunContextForEditor;
57
+ /**
58
+ * Gets service instance of data provider.
59
+ *
60
+ * @param dataProvider Data provider instance.
61
+ */
62
+ private getDataProviderService;
63
+ /**
64
+ * Activates action.
65
+ *
66
+ * @param action Action descriptor.
67
+ * @param item Item instance (if exists).
68
+ * @param itemId Item id (if exists).
69
+ * @param actionData Optional additional action data.
70
+ * @param tableview Tableview component.
71
+ * @param sourceComponent Source activation component.
72
+ */
73
+ activateAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionActivationResult<T, S, IDataProvider<T, S>>>;
74
+ /**
75
+ * Triggers action from table row click position.
76
+ *
77
+ * @param action Action descriptor.
78
+ * @param event Target table click event.
79
+ * @param route Currently activate route.
80
+ */
81
+ triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route: ActivatedRoute): Observable<ActionTriggerResult<T, unknown, IDataProvider<T, unknown>>>;
82
+ /**
83
+ * Triggers action with optional data (item, itemId, ...) and currently activated route.
84
+ *
85
+ * @param action Action.
86
+ * @param actionData Optional action data.
87
+ * @param route Optional activated route.
88
+ */
89
+ triggerAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, route?: ActivatedRoute, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionTriggerResult<T, S, IDataProvider<T, S>>>;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngActionService, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<MngActionService>;
92
+ }
@@ -1,74 +1,72 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { Title } from '@angular/platform-browser';
4
- import { MenuItem, PrimeNGConfig } from 'primeng/api';
5
- import { TranslateService } from '@ngx-translate/core';
6
- import { Observable } from 'rxjs';
7
- import { MngConfigurationService } from './configuration.service';
8
- import { MngModuleConfig } from '../models/config';
9
- import { IUser } from '../models/user/user.model';
10
- import * as i0 from "@angular/core";
11
- export declare const BROWSER_STORAGE_IT: InjectionToken<Storage>;
12
- export declare class MngCommonsService {
13
- private router;
14
- private primengConfig;
15
- private translate;
16
- private titleService;
17
- private configurationService;
18
- private moduleConfig;
19
- private localStorage;
20
- private _menuMode;
21
- private _menuModeSubject;
22
- private _menuItems;
23
- private _menuPinEnabled;
24
- private _menuActiveKeySubject;
25
- private _menuResetSubject;
26
- private readonly breadcrumbHomeSubject;
27
- private readonly breadcrumbsSubject;
28
- private breadcrumbsTranslateSubscription?;
29
- private breadcrumbHomeTranslateSubscription?;
30
- private _colorScheme;
31
- private _user?;
32
- private userSubject;
33
- constructor(router: Router, primengConfig: PrimeNGConfig, translate: TranslateService, titleService: Title, configurationService: MngConfigurationService, moduleConfig: MngModuleConfig, localStorage: Storage);
34
- get appName(): string;
35
- get appOwner(): string;
36
- get appLogoLight(): string;
37
- get appLogoDark(): string;
38
- get appLogoNameLight(): string;
39
- get appLogoNameDark(): string;
40
- get appLanguages(): string[];
41
- get appLanguage(): string;
42
- set appLanguage(language: string);
43
- get menuModeIsStatic(): boolean;
44
- get menuModeIsStatic$(): Observable<boolean>;
45
- get menuModeIsOverlay(): boolean;
46
- get menuModeIsOverlay$(): Observable<boolean>;
47
- get menuModeIsSlim(): boolean;
48
- get menuModeIsSlim$(): Observable<boolean>;
49
- get menuModeIsSidebar(): boolean;
50
- get menuModeIsSidebar$(): Observable<boolean>;
51
- get menuActiveKey$(): Observable<string>;
52
- get menuReset$(): Observable<any>;
53
- get menuItems(): MenuItem[];
54
- set menuItems(menuItems: MenuItem[]);
55
- get menuPinEnabled(): boolean;
56
- get breadcrumbHome$(): Observable<MenuItem | null>;
57
- get breadcrumbs$(): Observable<MenuItem[]>;
58
- get colorSchemeIsLight(): boolean;
59
- get colorSchemeIsDark(): boolean;
60
- get user(): IUser;
61
- get user$(): Observable<IUser>;
62
- set user(user: IUser);
63
- initialize(): void;
64
- menuChangeActiveKey(key: string): void;
65
- menuReset(): void;
66
- private updateBreadcrumbs;
67
- private generateHomeBreadcrumb;
68
- private generateBreadcrumbs;
69
- private createBreadcrumb;
70
- setPageTitle(title?: string): void;
71
- private formatPageTitle;
72
- static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsService, never>;
73
- static ɵprov: i0.ɵɵInjectableDeclaration<MngCommonsService>;
74
- }
1
+ import { Router } from '@angular/router';
2
+ import { Title } from '@angular/platform-browser';
3
+ import { MenuItem, PrimeNGConfig } from 'primeng/api';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { Observable } from 'rxjs';
6
+ import { MngConfigurationService } from './configuration.service';
7
+ import { MngModuleConfig } from '../config/models';
8
+ import { IUser } from '../models';
9
+ import * as i0 from "@angular/core";
10
+ export declare class MngCommonsService {
11
+ private router;
12
+ private primengConfig;
13
+ private translate;
14
+ private titleService;
15
+ private configurationService;
16
+ private moduleConfig;
17
+ private localStorage;
18
+ private _menuMode;
19
+ private _menuModeSubject;
20
+ private _menuItems;
21
+ private _menuPinEnabled;
22
+ private _menuActiveKeySubject;
23
+ private _menuResetSubject;
24
+ private readonly breadcrumbHomeSubject;
25
+ private readonly breadcrumbsSubject;
26
+ private breadcrumbsTranslateSubscription?;
27
+ private breadcrumbHomeTranslateSubscription?;
28
+ private _colorScheme;
29
+ private _user?;
30
+ private userSubject;
31
+ constructor(router: Router, primengConfig: PrimeNGConfig, translate: TranslateService, titleService: Title, configurationService: MngConfigurationService, moduleConfig: MngModuleConfig, localStorage: Storage);
32
+ get appName(): string;
33
+ get appOwner(): string;
34
+ get appLogoLight(): string;
35
+ get appLogoDark(): string;
36
+ get appLogoNameLight(): string;
37
+ get appLogoNameDark(): string;
38
+ get appLanguages(): string[];
39
+ get appLanguage(): string;
40
+ set appLanguage(language: string);
41
+ get menuModeIsStatic(): boolean;
42
+ get menuModeIsStatic$(): Observable<boolean>;
43
+ get menuModeIsOverlay(): boolean;
44
+ get menuModeIsOverlay$(): Observable<boolean>;
45
+ get menuModeIsSlim(): boolean;
46
+ get menuModeIsSlim$(): Observable<boolean>;
47
+ get menuModeIsSidebar(): boolean;
48
+ get menuModeIsSidebar$(): Observable<boolean>;
49
+ get menuActiveKey$(): Observable<string>;
50
+ get menuReset$(): Observable<any>;
51
+ get menuItems(): MenuItem[];
52
+ set menuItems(menuItems: MenuItem[]);
53
+ get menuPinEnabled(): boolean;
54
+ get breadcrumbHome$(): Observable<MenuItem | null>;
55
+ get breadcrumbs$(): Observable<MenuItem[]>;
56
+ get colorSchemeIsLight(): boolean;
57
+ get colorSchemeIsDark(): boolean;
58
+ get user(): IUser;
59
+ get user$(): Observable<IUser>;
60
+ set user(user: IUser);
61
+ initialize(): void;
62
+ menuChangeActiveKey(key: string): void;
63
+ menuReset(): void;
64
+ private updateBreadcrumbs;
65
+ private generateHomeBreadcrumb;
66
+ private generateBreadcrumbs;
67
+ private createBreadcrumb;
68
+ setPageTitle(title?: string): void;
69
+ private formatPageTitle;
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsService, never>;
71
+ static ɵprov: i0.ɵɵInjectableDeclaration<MngCommonsService>;
72
+ }