@mediusinc/mng-commons 0.0.1-rc.4 → 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 (453) hide show
  1. package/README.md +95 -0
  2. package/assets/i18n/en.json +54 -3
  3. package/assets/i18n/sl.json +54 -8
  4. package/assets/images/effect-ondark.png +0 -0
  5. package/assets/images/effect-ondark.svg +38 -0
  6. package/assets/images/effect-ondark@2x.png +0 -0
  7. package/assets/images/effect-onlight.png +0 -0
  8. package/assets/images/effect-onlight.svg +38 -0
  9. package/assets/images/effect-onlight@2x.png +0 -0
  10. package/assets/images/pages/exception-ondark.png +0 -0
  11. package/assets/images/pages/exception-onlight.png +0 -0
  12. package/assets/images/pages/login-ondark.png +0 -0
  13. package/assets/images/pages/login-onlight.png +0 -0
  14. package/esm2020/lib/api/models/builders/query-param.builder.mjs +48 -48
  15. package/esm2020/lib/api/models/filter-match-type.model.mjs +26 -24
  16. package/esm2020/lib/api/models/filter-param.model.mjs +46 -46
  17. package/esm2020/lib/api/models/index.mjs +9 -9
  18. package/esm2020/lib/api/models/mappers.mjs +17 -17
  19. package/esm2020/lib/api/models/query-mode.model.mjs +19 -19
  20. package/esm2020/lib/api/models/query-param.model.mjs +69 -69
  21. package/esm2020/lib/api/models/query-result.model.mjs +45 -45
  22. package/esm2020/lib/api/models/serialization.model.mjs +2 -2
  23. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +72 -0
  24. package/esm2020/lib/api/services/index.mjs +2 -2
  25. package/esm2020/lib/api/utils/index.mjs +3 -3
  26. package/esm2020/lib/api/utils/medius-rest.util.mjs +122 -70
  27. package/esm2020/lib/api/utils/object-serializer.util.mjs +226 -226
  28. package/esm2020/lib/components/action/action.component.mjs +65 -63
  29. package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +148 -157
  30. package/esm2020/lib/components/action/index.mjs +4 -4
  31. package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
  32. package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
  33. package/esm2020/lib/components/action/models/index.mjs +3 -0
  34. package/esm2020/lib/components/action/route/action-route.component.mjs +144 -144
  35. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
  36. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
  37. package/esm2020/lib/components/form/editor/form-editor.component.mjs +141 -142
  38. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +19 -58
  39. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +19 -51
  40. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +16 -16
  41. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -26
  42. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +109 -109
  43. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +122 -122
  44. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +17 -17
  45. package/esm2020/lib/components/form/formly/fields/index.mjs +8 -8
  46. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +17 -17
  47. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +16 -16
  48. package/esm2020/lib/components/form/formly/wrappers/index.mjs +3 -3
  49. package/esm2020/lib/components/form/index.mjs +4 -2
  50. package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
  51. package/esm2020/lib/components/form/models/index.mjs +2 -0
  52. package/esm2020/lib/components/layout/breadcrumb.component.mjs +17 -0
  53. package/esm2020/lib/components/layout/footer.component.mjs +17 -0
  54. package/esm2020/lib/components/layout/index.mjs +7 -7
  55. package/esm2020/lib/components/layout/main-layout.component.mjs +54 -0
  56. package/esm2020/lib/components/layout/menu-item.component.mjs +173 -0
  57. package/esm2020/lib/components/layout/menu.component.mjs +20 -0
  58. package/esm2020/lib/components/layout/services/index.mjs +2 -0
  59. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -0
  60. package/esm2020/lib/components/layout/topbar.component.mjs +59 -0
  61. package/esm2020/lib/components/tableview/index.mjs +6 -4
  62. package/esm2020/lib/components/tableview/models/index.mjs +2 -0
  63. package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
  64. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +24 -24
  65. package/esm2020/lib/components/tableview/services/index.mjs +2 -0
  66. package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
  67. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +74 -0
  68. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +25 -0
  69. package/esm2020/lib/components/tableview/table/table.component.mjs +307 -173
  70. package/esm2020/lib/components/tableview/tableview.component.mjs +82 -83
  71. package/esm2020/lib/config/formly.config.mjs +136 -136
  72. package/esm2020/lib/config/index.mjs +2 -2
  73. package/esm2020/lib/config/models/index.mjs +2 -0
  74. package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
  75. package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
  76. package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
  77. package/esm2020/lib/data-providers/index.mjs +6 -0
  78. package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
  79. package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
  80. package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
  81. package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
  82. package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
  83. package/esm2020/lib/descriptors/field.validator.mjs +21 -0
  84. package/esm2020/lib/descriptors/index.mjs +8 -0
  85. package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
  86. package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
  87. package/esm2020/lib/descriptors/table.descriptor.mjs +401 -0
  88. package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
  89. package/esm2020/lib/directives/component.directive.mjs +23 -0
  90. package/esm2020/lib/directives/index.mjs +3 -2
  91. package/esm2020/lib/directives/template.directive.mjs +29 -25
  92. package/esm2020/lib/mng-commons.module.mjs +410 -313
  93. package/esm2020/lib/models/index.mjs +3 -0
  94. package/esm2020/lib/models/router.model.mjs +2 -0
  95. package/esm2020/lib/models/user.model.mjs +2 -0
  96. package/esm2020/lib/pipes/boolean.pipe.mjs +22 -0
  97. package/esm2020/lib/pipes/index.mjs +3 -2
  98. package/esm2020/lib/pipes/property-path.pipe.mjs +36 -36
  99. package/esm2020/lib/services/action.service.mjs +269 -269
  100. package/esm2020/lib/services/commons.service.mjs +354 -0
  101. package/esm2020/lib/services/configuration.service.mjs +78 -77
  102. package/esm2020/lib/services/index.mjs +5 -7
  103. package/esm2020/lib/services/navigation.service.mjs +48 -49
  104. package/esm2020/lib/services/providers/commons-init.provider.mjs +4 -0
  105. package/esm2020/lib/services/providers/config-service.provider.mjs +20 -12
  106. package/esm2020/lib/services/providers/formly-config.provider.mjs +31 -31
  107. package/esm2020/lib/services/providers/index.mjs +4 -3
  108. package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
  109. package/esm2020/lib/services/tokens/index.mjs +3 -0
  110. package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
  111. package/esm2020/lib/types/index.mjs +3 -0
  112. package/esm2020/lib/types/type.decorator.mjs +7 -0
  113. package/esm2020/lib/types/type.model.mjs +2 -0
  114. package/esm2020/lib/utils/editor-formly.util.mjs +176 -176
  115. package/esm2020/lib/utils/i18n.util.mjs +125 -91
  116. package/esm2020/lib/utils/index.mjs +6 -5
  117. package/esm2020/lib/utils/model.util.mjs +57 -38
  118. package/esm2020/lib/utils/toast.util.mjs +39 -26
  119. package/esm2020/lib/utils/type.util.mjs +39 -39
  120. package/esm2020/mediusinc-mng-commons.mjs +5 -5
  121. package/esm2020/public-api.mjs +36 -33
  122. package/fesm2015/mediusinc-mng-commons.mjs +6093 -5081
  123. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  124. package/fesm2020/mediusinc-mng-commons.mjs +6018 -5030
  125. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  126. package/lib/api/models/builders/query-param.builder.d.ts +11 -11
  127. package/lib/api/models/filter-match-type.model.d.ts +23 -21
  128. package/lib/api/models/filter-param.model.d.ts +23 -23
  129. package/lib/api/models/index.d.ts +8 -8
  130. package/lib/api/models/mappers.d.ts +6 -6
  131. package/lib/api/models/query-mode.model.d.ts +16 -16
  132. package/lib/api/models/query-param.model.d.ts +31 -31
  133. package/lib/api/models/query-result.model.d.ts +36 -36
  134. package/lib/api/models/serialization.model.d.ts +8 -8
  135. package/lib/api/services/{abstract-crud-api.service.d.ts → crud-api.abstract.service.d.ts} +23 -23
  136. package/lib/api/services/index.d.ts +1 -1
  137. package/lib/api/utils/index.d.ts +2 -2
  138. package/lib/api/utils/medius-rest.util.d.ts +12 -6
  139. package/lib/api/utils/object-serializer.util.d.ts +30 -30
  140. package/lib/components/action/action.component.d.ts +36 -36
  141. package/lib/components/action/dialog/action-dialog.component.d.ts +46 -48
  142. package/lib/components/action/index.d.ts +3 -3
  143. package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +6 -6
  144. package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +53 -53
  145. package/lib/components/action/models/index.d.ts +2 -0
  146. package/lib/components/action/route/action-route.component.d.ts +32 -32
  147. package/lib/components/form/autocomplete/autocomplete.component.d.ts +36 -0
  148. package/lib/components/form/dropdown/dropdown.component.d.ts +34 -0
  149. package/lib/components/form/editor/form-editor.component.d.ts +39 -39
  150. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +11 -21
  151. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +11 -19
  152. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +6 -6
  153. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +12 -12
  154. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +17 -17
  155. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +36 -36
  156. package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +6 -6
  157. package/lib/components/form/formly/fields/index.d.ts +7 -7
  158. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +8 -8
  159. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +8 -8
  160. package/lib/components/form/formly/wrappers/index.d.ts +2 -2
  161. package/lib/components/form/index.d.ts +3 -1
  162. package/lib/components/form/models/form-editor.event.d.ts +5 -0
  163. package/lib/components/form/models/index.d.ts +1 -0
  164. package/lib/components/layout/breadcrumb.component.d.ts +8 -0
  165. package/lib/components/layout/footer.component.d.ts +9 -0
  166. package/lib/components/layout/index.d.ts +6 -6
  167. package/lib/components/layout/main-layout.component.d.ts +21 -0
  168. package/lib/components/layout/menu-item.component.d.ts +29 -0
  169. package/lib/components/layout/menu.component.d.ts +10 -0
  170. package/lib/components/layout/services/index.d.ts +1 -0
  171. package/lib/components/layout/services/main-layout.component.service.d.ts +65 -0
  172. package/lib/components/layout/topbar.component.d.ts +25 -0
  173. package/lib/components/tableview/index.d.ts +5 -3
  174. package/lib/components/tableview/models/index.d.ts +1 -0
  175. package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +17 -17
  176. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +14 -14
  177. package/lib/components/tableview/services/index.d.ts +1 -0
  178. package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +13 -13
  179. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +22 -0
  180. package/lib/components/tableview/table/column-value/column-value.component.d.ts +12 -0
  181. package/lib/components/tableview/table/table.component.d.ts +79 -47
  182. package/lib/components/tableview/tableview.component.d.ts +35 -36
  183. package/lib/config/formly.config.d.ts +14 -14
  184. package/lib/config/index.d.ts +1 -1
  185. package/lib/{models/config → config/models}/index.d.ts +1 -1
  186. package/lib/config/models/mng-config.model.d.ts +34 -0
  187. package/lib/data-providers/base.data-provider.d.ts +17 -0
  188. package/lib/data-providers/editor.data-provider.d.ts +25 -0
  189. package/lib/data-providers/index.d.ts +5 -0
  190. package/lib/data-providers/lookup.data-provider.d.ts +14 -0
  191. package/lib/data-providers/table.data-provider.d.ts +6 -0
  192. package/lib/data-providers/tableview.data-provider.d.ts +15 -0
  193. package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +148 -145
  194. package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +255 -255
  195. package/lib/{models/validators → descriptors}/field.validator.d.ts +18 -18
  196. package/lib/descriptors/index.d.ts +7 -0
  197. package/lib/descriptors/lookup.descriptor.d.ts +17 -0
  198. package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +15 -15
  199. package/lib/descriptors/table.descriptor.d.ts +164 -0
  200. package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +39 -38
  201. package/lib/directives/component.directive.d.ts +11 -0
  202. package/lib/directives/index.d.ts +2 -1
  203. package/lib/directives/template.directive.d.ts +13 -11
  204. package/lib/mng-commons.module.d.ts +79 -71
  205. package/lib/models/index.d.ts +2 -0
  206. package/lib/models/router.model.d.ts +14 -0
  207. package/lib/models/user.model.d.ts +8 -0
  208. package/lib/pipes/boolean.pipe.d.ts +7 -0
  209. package/lib/pipes/index.d.ts +2 -1
  210. package/lib/pipes/property-path.pipe.d.ts +7 -7
  211. package/lib/services/action.service.d.ts +92 -92
  212. package/lib/services/commons.service.d.ts +72 -0
  213. package/lib/services/configuration.service.d.ts +35 -35
  214. package/lib/services/index.d.ts +4 -6
  215. package/lib/services/navigation.service.d.ts +14 -14
  216. package/lib/services/providers/commons-init.provider.d.ts +2 -0
  217. package/lib/services/providers/config-service.provider.d.ts +5 -5
  218. package/lib/services/providers/formly-config.provider.d.ts +4 -4
  219. package/lib/services/providers/index.d.ts +3 -2
  220. package/lib/services/tokens/browser-storage.token.d.ts +2 -0
  221. package/lib/services/tokens/index.d.ts +2 -0
  222. package/lib/services/tokens/module-config.token.d.ts +3 -0
  223. package/lib/{models/types → types}/index.d.ts +2 -2
  224. package/lib/{models/types → types}/type.decorator.d.ts +2 -2
  225. package/lib/{models/types → types}/type.model.d.ts +10 -10
  226. package/lib/utils/editor-formly.util.d.ts +9 -9
  227. package/lib/utils/i18n.util.d.ts +18 -15
  228. package/lib/utils/index.d.ts +5 -4
  229. package/lib/utils/model.util.d.ts +7 -5
  230. package/lib/utils/toast.util.d.ts +13 -12
  231. package/lib/utils/type.util.d.ts +15 -15
  232. package/mediusinc-mng-commons.d.ts +5 -5
  233. package/package.json +37 -36
  234. package/public-api.d.ts +25 -22
  235. package/scss/common/layout/_breadcrumb.scss +96 -0
  236. package/scss/common/layout/_config.scss +101 -0
  237. package/scss/common/layout/_dashboard.scss +16 -0
  238. package/scss/common/layout/_exception.scss +131 -0
  239. package/scss/common/layout/_footer.scss +29 -0
  240. package/scss/common/layout/_help.scss +157 -0
  241. package/scss/common/layout/_inlinemenu.scss +55 -0
  242. package/scss/common/layout/_invoice.scss +176 -0
  243. package/scss/common/layout/_landing.scss +639 -0
  244. package/scss/common/layout/_layout_dark.scss +23 -0
  245. package/scss/common/layout/_layout_light.scss +23 -0
  246. package/scss/common/layout/_loader.scss +18 -0
  247. package/scss/common/layout/_login.scss +106 -0
  248. package/scss/common/layout/_main.scss +45 -0
  249. package/scss/common/layout/_mixins.scss +214 -0
  250. package/scss/common/layout/_rightmenu.scss +125 -0
  251. package/scss/common/layout/_topbar.scss +189 -0
  252. package/scss/common/layout/_typography.scss +63 -0
  253. package/scss/common/layout/_utils.scss +96 -0
  254. package/scss/common/layout/_widgets.scss +391 -0
  255. package/scss/common/layout/menu/_menu.scss +7 -0
  256. package/scss/common/layout/menu/_menu_common.scss +183 -0
  257. package/scss/common/layout/menu/_menu_overlay.scss +52 -0
  258. package/scss/common/layout/menu/_menu_sidebar.scss +232 -0
  259. package/scss/common/layout/menu/_menu_slim.scss +138 -0
  260. package/scss/common/layout/menu/_menu_static.scss +70 -0
  261. package/scss/common/layout/menu/_menu_theme.scss +365 -0
  262. package/scss/common/theme/_theme_dark.scss +5 -0
  263. package/scss/common/theme/_theme_light.scss +5 -0
  264. package/scss/common/theme/designer/_colors.scss +18 -0
  265. package/scss/common/theme/designer/_common.scss +40 -0
  266. package/scss/common/theme/designer/_components.scss +101 -0
  267. package/scss/common/theme/designer/_mixins.scss +174 -0
  268. package/scss/common/theme/designer/components/button/_button.scss +560 -0
  269. package/scss/common/theme/designer/components/button/_speeddial.scss +79 -0
  270. package/scss/common/theme/designer/components/button/_splitbutton.scss +1 -0
  271. package/scss/common/theme/designer/components/data/_carousel.scss +37 -0
  272. package/scss/common/theme/designer/components/data/_datatable.scss +266 -0
  273. package/scss/common/theme/designer/components/data/_dataview.scss +55 -0
  274. package/scss/common/theme/designer/components/data/_filter.scss +138 -0
  275. package/scss/common/theme/designer/components/data/_fullcalendar.scss +324 -0
  276. package/scss/common/theme/designer/components/data/_orderlist.scss +91 -0
  277. package/scss/common/theme/designer/components/data/_organizationchart.scss +50 -0
  278. package/scss/common/theme/designer/components/data/_paginator.scss +83 -0
  279. package/scss/common/theme/designer/components/data/_picklist.scss +91 -0
  280. package/scss/common/theme/designer/components/data/_timeline.scss +38 -0
  281. package/scss/common/theme/designer/components/data/_tree.scss +144 -0
  282. package/scss/common/theme/designer/components/data/_treetable.scss +242 -0
  283. package/scss/common/theme/designer/components/data/_virtualscroller.scss +28 -0
  284. package/scss/common/theme/designer/components/file/_fileupload.scss +58 -0
  285. package/scss/common/theme/designer/components/input/_autocomplete.scss +103 -0
  286. package/scss/common/theme/designer/components/input/_calendar.scss +212 -0
  287. package/scss/common/theme/designer/components/input/_cascadeselect.scss +98 -0
  288. package/scss/common/theme/designer/components/input/_checkbox.scss +85 -0
  289. package/scss/common/theme/designer/components/input/_chips.scss +41 -0
  290. package/scss/common/theme/designer/components/input/_colorpicker.scss +19 -0
  291. package/scss/common/theme/designer/components/input/_dropdown.scss +136 -0
  292. package/scss/common/theme/designer/components/input/_editor.scss +122 -0
  293. package/scss/common/theme/designer/components/input/_inputgroup.scss +69 -0
  294. package/scss/common/theme/designer/components/input/_inputmask.scss +3 -0
  295. package/scss/common/theme/designer/components/input/_inputnumber.scss +3 -0
  296. package/scss/common/theme/designer/components/input/_inputswitch.scss +58 -0
  297. package/scss/common/theme/designer/components/input/_inputtext.scss +97 -0
  298. package/scss/common/theme/designer/components/input/_listbox.scss +82 -0
  299. package/scss/common/theme/designer/components/input/_multiselect.scss +164 -0
  300. package/scss/common/theme/designer/components/input/_password.scss +33 -0
  301. package/scss/common/theme/designer/components/input/_radiobutton.scss +78 -0
  302. package/scss/common/theme/designer/components/input/_rating.scss +48 -0
  303. package/scss/common/theme/designer/components/input/_selectbutton.scss +50 -0
  304. package/scss/common/theme/designer/components/input/_slider.scss +69 -0
  305. package/scss/common/theme/designer/components/input/_togglebutton.scss +48 -0
  306. package/scss/common/theme/designer/components/input/_treeselect.scss +89 -0
  307. package/scss/common/theme/designer/components/menu/_breadcrumb.scss +42 -0
  308. package/scss/common/theme/designer/components/menu/_contextmenu.scss +50 -0
  309. package/scss/common/theme/designer/components/menu/_dock.scss +51 -0
  310. package/scss/common/theme/designer/components/menu/_megamenu.scss +102 -0
  311. package/scss/common/theme/designer/components/menu/_menu.scss +41 -0
  312. package/scss/common/theme/designer/components/menu/_menubar.scss +179 -0
  313. package/scss/common/theme/designer/components/menu/_panelmenu.scss +137 -0
  314. package/scss/common/theme/designer/components/menu/_slidemenu.scss +55 -0
  315. package/scss/common/theme/designer/components/menu/_steps.scss +55 -0
  316. package/scss/common/theme/designer/components/menu/_tabmenu.scss +49 -0
  317. package/scss/common/theme/designer/components/menu/_tieredmenu.scss +56 -0
  318. package/scss/common/theme/designer/components/messages/_inlinemessage.scss +64 -0
  319. package/scss/common/theme/designer/components/messages/_message.scss +102 -0
  320. package/scss/common/theme/designer/components/messages/_toast.scss +95 -0
  321. package/scss/common/theme/designer/components/misc/_avatar.scss +30 -0
  322. package/scss/common/theme/designer/components/misc/_badge.scss +48 -0
  323. package/scss/common/theme/designer/components/misc/_blockui.scss +3 -0
  324. package/scss/common/theme/designer/components/misc/_chip.scss +36 -0
  325. package/scss/common/theme/designer/components/misc/_inplace.scss +17 -0
  326. package/scss/common/theme/designer/components/misc/_progressbar.scss +17 -0
  327. package/scss/common/theme/designer/components/misc/_scrolltop.scss +20 -0
  328. package/scss/common/theme/designer/components/misc/_skeleton.scss +8 -0
  329. package/scss/common/theme/designer/components/misc/_tag.scss +33 -0
  330. package/scss/common/theme/designer/components/misc/_terminal.scss +11 -0
  331. package/scss/common/theme/designer/components/multimedia/_galleria.scss +141 -0
  332. package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +67 -0
  333. package/scss/common/theme/designer/components/overlay/_dialog.scss +63 -0
  334. package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +62 -0
  335. package/scss/common/theme/designer/components/overlay/_sidebar.scss +27 -0
  336. package/scss/common/theme/designer/components/overlay/_tooltip.scss +33 -0
  337. package/scss/common/theme/designer/components/panel/_accordion.scss +119 -0
  338. package/scss/common/theme/designer/components/panel/_card.scss +30 -0
  339. package/scss/common/theme/designer/components/panel/_divider.scss +31 -0
  340. package/scss/common/theme/designer/components/panel/_fieldset.scss +47 -0
  341. package/scss/common/theme/designer/components/panel/_panel.scss +42 -0
  342. package/scss/common/theme/designer/components/panel/_scrollpanel.scss +6 -0
  343. package/scss/common/theme/designer/components/panel/_splitter.scss +19 -0
  344. package/scss/common/theme/designer/components/panel/_tabview.scss +66 -0
  345. package/scss/common/theme/designer/components/panel/_toolbar.scss +10 -0
  346. package/scss/common/theme/extensions/_button.scss +99 -0
  347. package/scss/common/theme/extensions/_calendar.scss +18 -0
  348. package/scss/common/theme/extensions/_card.scss +6 -0
  349. package/scss/common/theme/extensions/_carousel.scss +13 -0
  350. package/scss/common/theme/extensions/_checkbox.scss +10 -0
  351. package/scss/common/theme/extensions/_contextmenu.scss +16 -0
  352. package/scss/common/theme/extensions/_datatable.scss +83 -0
  353. package/scss/common/theme/extensions/_dialog.scss +14 -0
  354. package/scss/common/theme/extensions/_fieldset.scss +6 -0
  355. package/scss/common/theme/extensions/_galleria.scss +25 -0
  356. package/scss/common/theme/extensions/_megamenu.scss +18 -0
  357. package/scss/common/theme/extensions/_menu.scss +14 -0
  358. package/scss/common/theme/extensions/_menubar.scss +14 -0
  359. package/scss/common/theme/extensions/_orderlist.scss +38 -0
  360. package/scss/common/theme/extensions/_paginator.scss +19 -0
  361. package/scss/common/theme/extensions/_panelmenu.scss +20 -0
  362. package/scss/common/theme/extensions/_password.scss +5 -0
  363. package/scss/common/theme/extensions/_picklist.scss +38 -0
  364. package/scss/common/theme/extensions/_radiobutton.scss +8 -0
  365. package/scss/common/theme/extensions/_sidebar.scss +19 -0
  366. package/scss/common/theme/extensions/_slidemenu.scss +10 -0
  367. package/scss/common/theme/extensions/_slider.scss +6 -0
  368. package/scss/common/theme/extensions/_steps.scss +50 -0
  369. package/scss/common/theme/extensions/_tieredmenu.scss +14 -0
  370. package/scss/common/theme/extensions/_toast.scss +6 -0
  371. package/scss/common/theme/extensions/_tree.scss +36 -0
  372. package/scss/common/theme/extensions/_treetable.scss +35 -0
  373. package/scss/common/theme/extensions/_vendor_extensions.scss +27 -0
  374. package/scss/common/variables/layout/_common.scss +12 -0
  375. package/scss/common/variables/layout/_layout_dark.scss +71 -0
  376. package/scss/common/variables/layout/_layout_light.scss +71 -0
  377. package/scss/common/variables/theme/_theme_dark.scss +897 -0
  378. package/scss/common/variables/theme/_theme_light.scss +885 -0
  379. package/scss/layout/default/_mng-variables-layout-dark.scss +2 -0
  380. package/scss/layout/default/_mng-variables-layout-light.scss +2 -0
  381. package/scss/layout/default/layout-dark.scss +2 -0
  382. package/scss/layout/default/layout-light.scss +2 -0
  383. package/scss/mng-commons-dark.scss +5 -0
  384. package/scss/mng-commons-light.scss +5 -0
  385. package/scss/mng-overrides/_layout_action.scss +3 -0
  386. package/scss/mng-overrides/_layout_dialog.scss +34 -0
  387. package/scss/mng-overrides/_layout_forms.scss +31 -0
  388. package/scss/mng-overrides/_layout_radio.scss +3 -0
  389. package/scss/mng-overrides/_layout_styles.scss +4 -0
  390. package/scss/mng-overrides/_theme_datatable.scss +9 -0
  391. package/scss/mng-overrides/_theme_dialog.scss +9 -0
  392. package/scss/mng-overrides/_theme_dropdown.scss +6 -0
  393. package/scss/mng-overrides/_theme_styles.scss +9 -0
  394. package/scss/mng-overrides/_theme_tableview.scss +94 -0
  395. package/scss/theme/default/_mng-variables-theme-dark.scss +8 -0
  396. package/scss/theme/default/_mng-variables-theme-light.scss +8 -0
  397. package/scss/theme/default/theme-dark.scss +2 -0
  398. package/scss/theme/default/theme-light.scss +2 -0
  399. package/esm2020/lib/api/services/abstract-crud-api.service.mjs +0 -72
  400. package/esm2020/lib/components/layout/app.breadcrumb.component.mjs +0 -26
  401. package/esm2020/lib/components/layout/app.footer.component.mjs +0 -35
  402. package/esm2020/lib/components/layout/app.main.component.mjs +0 -25
  403. package/esm2020/lib/components/layout/app.main.component.service.mjs +0 -133
  404. package/esm2020/lib/components/layout/app.menu.component.mjs +0 -24
  405. package/esm2020/lib/components/layout/app.menuitem.component.mjs +0 -241
  406. package/esm2020/lib/components/layout/app.topbar.component.mjs +0 -135
  407. package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
  408. package/esm2020/lib/models/action/action.model.mjs +0 -58
  409. package/esm2020/lib/models/action/index.mjs +0 -2
  410. package/esm2020/lib/models/config/index.mjs +0 -2
  411. package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
  412. package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -325
  413. package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -666
  414. package/esm2020/lib/models/descriptors/index.mjs +0 -6
  415. package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
  416. package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -123
  417. package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -124
  418. package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
  419. package/esm2020/lib/models/events/index.mjs +0 -3
  420. package/esm2020/lib/models/events/table-event.model.mjs +0 -16
  421. package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
  422. package/esm2020/lib/models/interfaces/index.mjs +0 -2
  423. package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
  424. package/esm2020/lib/models/providers/index.mjs +0 -2
  425. package/esm2020/lib/models/types/index.mjs +0 -3
  426. package/esm2020/lib/models/types/type.decorator.mjs +0 -7
  427. package/esm2020/lib/models/types/type.model.mjs +0 -2
  428. package/esm2020/lib/models/validators/field.validator.mjs +0 -21
  429. package/esm2020/lib/models/validators/index.mjs +0 -2
  430. package/esm2020/lib/services/breadcrumb.service.mjs +0 -74
  431. package/esm2020/lib/services/menu.service.mjs +0 -37
  432. package/esm2020/lib/services/settings.service.mjs +0 -81
  433. package/lib/components/layout/app.breadcrumb.component.d.ts +0 -14
  434. package/lib/components/layout/app.footer.component.d.ts +0 -8
  435. package/lib/components/layout/app.main.component.d.ts +0 -12
  436. package/lib/components/layout/app.main.component.service.d.ts +0 -40
  437. package/lib/components/layout/app.menu.component.d.ts +0 -15
  438. package/lib/components/layout/app.menuitem.component.d.ts +0 -31
  439. package/lib/components/layout/app.topbar.component.d.ts +0 -15
  440. package/lib/models/action/index.d.ts +0 -1
  441. package/lib/models/config/mng-config.model.d.ts +0 -20
  442. package/lib/models/descriptors/index.d.ts +0 -5
  443. package/lib/models/descriptors/table-descriptor.model.d.ts +0 -45
  444. package/lib/models/events/editor-event.model.d.ts +0 -11
  445. package/lib/models/events/index.d.ts +0 -2
  446. package/lib/models/interfaces/index.d.ts +0 -1
  447. package/lib/models/providers/data-provider.model.d.ts +0 -62
  448. package/lib/models/providers/index.d.ts +0 -1
  449. package/lib/models/validators/index.d.ts +0 -1
  450. package/lib/services/breadcrumb.service.d.ts +0 -15
  451. package/lib/services/menu.service.d.ts +0 -16
  452. package/lib/services/settings.service.d.ts +0 -30
  453. package/mediusinc-mng-commons-0.0.1-rc.4.tgz +0 -0
@@ -0,0 +1,164 @@
1
+ import { Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ModelDescriptor } from './model.descriptor';
4
+ import { ILookupDescriptor } from './lookup.descriptor';
5
+ import { ClassType } from '../types';
6
+ import { ILookupDataProvider } from '../data-providers';
7
+ import { MediusQueryParam } from '../api/models';
8
+ export declare class TableDescriptor<T> {
9
+ private readonly _model;
10
+ private _filterDisplay;
11
+ private _paginationMode;
12
+ private _columns;
13
+ private _title?;
14
+ private _dataKeyProperty?;
15
+ private _hasDefaultSort;
16
+ private _defaultSortProperty;
17
+ private _defaultSortAsc;
18
+ private _rowHeight;
19
+ private _tableFullHeightOffset;
20
+ constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
21
+ get model(): ModelDescriptor<T>;
22
+ get filterDisplay(): TableDescriptor.FilterDisplayEnum;
23
+ get paginationMode(): TableDescriptor.PaginationModeEnum;
24
+ get columns(): ColumnDescriptor<any, T>[];
25
+ get title(): string | undefined;
26
+ get dataKeyProperty(): string | undefined;
27
+ get hasDefaultSort(): boolean;
28
+ get defaultSortProperty(): string[];
29
+ get defaultSortAsc(): boolean[];
30
+ get rowHeight(): number;
31
+ get tableFullHeightOffset(): number;
32
+ addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
33
+ addColumn(property: string): ColumnDescriptor<string, T>;
34
+ addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
35
+ addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
36
+ addColumnBoolean(property: string): ColumnDescriptor<boolean, T>;
37
+ addColumnObject<CT>(property: string, modelType: ClassType<CT>, displayProperty: string): ColumnDescriptor<CT, T>;
38
+ withFilterDisplay(filterDisplayType: TableDescriptor.FilterDisplayEnum): this;
39
+ withPaginationMode(paginationMode: TableDescriptor.PaginationModeEnum): this;
40
+ withTitle(title: string): TableDescriptor<T>;
41
+ withDataKeyProperty(property: string): TableDescriptor<T>;
42
+ withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
43
+ withRowHeight(rowHeight: number): TableDescriptor<T>;
44
+ withTableFullHeightOffset(tableFullHeightOffset: number): TableDescriptor<T>;
45
+ private setDataKeyFromColumn;
46
+ copy(): TableDescriptor<T>;
47
+ }
48
+ export declare namespace TableDescriptor {
49
+ enum PaginationModeEnum {
50
+ Pagination = 0,
51
+ InfiniteScroll = 1
52
+ }
53
+ enum FilterDisplayEnum {
54
+ Row = 0,
55
+ Menu = 1
56
+ }
57
+ }
58
+ export declare class ColumnDescriptor<T, TT> {
59
+ private readonly _table;
60
+ private readonly _property;
61
+ private _modelType;
62
+ private _columnType;
63
+ private _title?;
64
+ private _displayPropertyPath?;
65
+ private _isSortEnabled;
66
+ private _filterDescriptor?;
67
+ private _displayFormat?;
68
+ constructor(table: TableDescriptor<TT>, property: string);
69
+ get table(): TableDescriptor<TT>;
70
+ get property(): string;
71
+ get modelType(): ClassType<T> | null;
72
+ get displayPropertyPath(): string | undefined;
73
+ get title(): string | undefined;
74
+ get isSortEnabled(): boolean;
75
+ get columnType(): ColumnDescriptor.TypeEnum;
76
+ get filterDescriptor(): FilterDescriptor<T> | undefined;
77
+ get displayFormat(): string | undefined;
78
+ asType(type?: ColumnDescriptor.TypeEnum): this;
79
+ asNumber(displayFormat?: string): this;
80
+ asDate(displayFormat?: string): this;
81
+ asBoolean(): this;
82
+ withModelType(modelType: ClassType<T>): this;
83
+ withTitle(title: string): this;
84
+ withDisplayPropertyPath(displayPropertyPath: string): this;
85
+ withFilter(): FilterDescriptor<T>;
86
+ withFilterLookup(): FilterLookupDescriptor<T>;
87
+ withSort(isEnabled?: boolean): this;
88
+ copy(): ColumnDescriptor<T, TT>;
89
+ }
90
+ export declare namespace ColumnDescriptor {
91
+ enum TypeEnum {
92
+ String = 0,
93
+ Number = 1,
94
+ Boolean = 2,
95
+ Date = 3
96
+ }
97
+ }
98
+ export declare class FilterDescriptor<T> {
99
+ protected readonly _property: string;
100
+ protected _filterType: FilterDescriptor.TypeEnum;
101
+ protected _filterProperty?: string;
102
+ protected _placeholder?: string;
103
+ protected _className: string;
104
+ constructor(property: string);
105
+ get property(): string;
106
+ get filterType(): FilterDescriptor.TypeEnum;
107
+ get filterProperty(): string | undefined;
108
+ get placeholder(): string | undefined;
109
+ get className(): string;
110
+ asFilterType(filterType: ColumnDescriptor.TypeEnum): this;
111
+ /**
112
+ * Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
113
+ * @param filterProperty
114
+ */
115
+ withFilterProperty(filterProperty: string): this;
116
+ withPlaceholder(placeholder: string): this;
117
+ withClassName(className: string): this;
118
+ protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
119
+ copy(): FilterDescriptor<T>;
120
+ }
121
+ export declare namespace FilterDescriptor {
122
+ enum TypeEnum {
123
+ String = 0,
124
+ Number = 1,
125
+ Boolean = 2,
126
+ Date = 3,
127
+ Lookup = 4
128
+ }
129
+ }
130
+ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
131
+ private readonly _modelType;
132
+ private _lookupType?;
133
+ private _dataProvider?;
134
+ private _itemsLabelProperty?;
135
+ private _itemsValueProperty?;
136
+ private _dataKeyProperty?;
137
+ private _multiselect;
138
+ protected _dropdownClassName: string;
139
+ constructor(property: string, modelType: ClassType<T> | null);
140
+ get modelType(): ClassType<T> | null;
141
+ get lookupType(): FilterLookupDescriptor.LookupTypeEnum | undefined;
142
+ get itemsLabelProperty(): string | undefined;
143
+ get itemsValueProperty(): string | undefined;
144
+ get dataKeyProperty(): string | undefined;
145
+ get dataProvider(): ILookupDataProvider<T, any> | undefined;
146
+ get multiselect(): boolean;
147
+ withItemsLabelProperty(itemsLabelProperty: string): this;
148
+ withItemsValueProperty(itemsValueProperty: string): this;
149
+ withDataKeyProperty(dataKeyProperty: string): this;
150
+ get dropdownClassName(): string;
151
+ withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
152
+ withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
153
+ withMultiselect(multiselect?: boolean): this;
154
+ withDropdownClassName(dropdownClassName: string): this;
155
+ asAutocomplete(): this;
156
+ protected copyFieldsTo(descriptor: FilterLookupDescriptor<T>): void;
157
+ copy(): FilterLookupDescriptor<T>;
158
+ }
159
+ export declare namespace FilterLookupDescriptor {
160
+ enum LookupTypeEnum {
161
+ Dropdown = 0,
162
+ Autocomplete = 1
163
+ }
164
+ }
@@ -1,38 +1,39 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { ModelDescriptor } from './model-descriptor.model';
3
- import { AFieldDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor } from './editor-descriptor.model';
4
- import { ColumnDescriptor, TableDescriptor } from './table-descriptor.model';
5
- import { ClassType, EnumMemberType } from '../types';
6
- export declare class TableviewDescriptor<T> {
7
- private readonly _model;
8
- private _table;
9
- private _viewEditor;
10
- private _addEditor;
11
- private _editEditor;
12
- private _tableTitle;
13
- constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
14
- get model(): ModelDescriptor<T>;
15
- get table(): TableDescriptor<T>;
16
- get viewEditor(): EditorDescriptor<T>;
17
- get addEditor(): EditorDescriptor<T>;
18
- get editEditor(): EditorDescriptor<T>;
19
- get tableTitle(): string;
20
- withTableDescriptor(descriptor: TableDescriptor<T>): this;
21
- withViewDescriptor(descriptor: EditorDescriptor<T>): this;
22
- withAddDescriptor(descriptor: EditorDescriptor<T>): this;
23
- withEditDescriptor(descriptor: EditorDescriptor<T>): this;
24
- withTableTitle(title: string): this;
25
- withValidator(name: string, expression: (control: AbstractControl) => boolean): this;
26
- addColumnDescriptor<CT>(column: ColumnDescriptor<CT>): TableDescriptor<T>;
27
- addColumn(property: string): ColumnDescriptor<string>;
28
- addColumnNumber(property: string): ColumnDescriptor<number>;
29
- createTabGroup(name: string, title?: string): this;
30
- createFieldGroup(name: string, title?: string): this;
31
- addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
32
- addField(property: string): FieldInputDescriptor<T>;
33
- addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
34
- addFieldLookupEnum(property: string, options: Array<EnumMemberType>): FieldLookupEnumDescriptor<T>;
35
- addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
36
- addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
37
- copy(): TableviewDescriptor<T>;
38
- }
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { ModelDescriptor, AFieldDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ColumnDescriptor, TableDescriptor } from './';
3
+ import { ClassType, EnumMemberType } from '../types';
4
+ export declare class TableviewDescriptor<T> {
5
+ private readonly _model;
6
+ private _table;
7
+ private _viewEditor;
8
+ private _addEditor;
9
+ private _editEditor;
10
+ private _tableTitle;
11
+ constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
12
+ get model(): ModelDescriptor<T>;
13
+ get table(): TableDescriptor<T>;
14
+ get viewEditor(): EditorDescriptor<T>;
15
+ get addEditor(): EditorDescriptor<T>;
16
+ get editEditor(): EditorDescriptor<T>;
17
+ get tableTitle(): string;
18
+ withTableDescriptor(descriptor: TableDescriptor<T>): this;
19
+ withViewDescriptor(descriptor: EditorDescriptor<T>): this;
20
+ withAddDescriptor(descriptor: EditorDescriptor<T>): this;
21
+ withEditDescriptor(descriptor: EditorDescriptor<T>): this;
22
+ withTableTitle(title: string): this;
23
+ withValidator(name: string, expression: (control: AbstractControl) => boolean): this;
24
+ addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
25
+ addColumn(property: string): ColumnDescriptor<string, T>;
26
+ addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
27
+ addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
28
+ addColumnBoolean(property: string): ColumnDescriptor<boolean, T>;
29
+ addColumnObject<CT>(property: string, modelType: ClassType<CT>, displayProperty: string): ColumnDescriptor<CT, T>;
30
+ createTabGroup(name: string, title?: string): this;
31
+ createFieldGroup(name: string, title?: string): this;
32
+ addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
33
+ addField(property: string): FieldInputDescriptor<T>;
34
+ addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
35
+ addFieldLookupEnum(property: string, options: Array<EnumMemberType>): FieldLookupEnumDescriptor<T>;
36
+ addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
37
+ addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
38
+ copy(): TableviewDescriptor<T>;
39
+ }
@@ -0,0 +1,11 @@
1
+ import { ComponentRef, OnInit, Type, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngComponentDirective<T> implements OnInit {
4
+ viewContainerRef: ViewContainerRef;
5
+ component: Type<T>;
6
+ componentRef: ComponentRef<T>;
7
+ constructor(viewContainerRef: ViewContainerRef);
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; }, {}, never>;
11
+ }
@@ -1 +1,2 @@
1
- export * from './template.directive';
1
+ export * from './component.directive';
2
+ export * from './template.directive';
@@ -1,11 +1,13 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TemplateDirective {
4
- template: TemplateRef<any>;
5
- type: string;
6
- name: string;
7
- constructor(template: TemplateRef<any>);
8
- getType(): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never>;
11
- }
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngTemplateDirective {
4
+ template: TemplateRef<any>;
5
+ private viewContainerRef;
6
+ type: string;
7
+ name: string;
8
+ constructor(template: TemplateRef<any>, viewContainerRef: ViewContainerRef);
9
+ getType(): string;
10
+ getViewContainerRef(): ViewContainerRef;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngTemplateDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngTemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never>;
13
+ }
@@ -1,71 +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 "./components/layout/app.breadcrumb.component";
8
- import * as i4 from "./components/layout/app.footer.component";
9
- import * as i5 from "./components/layout/app.main.component";
10
- import * as i6 from "./components/layout/app.menu.component";
11
- import * as i7 from "./components/layout/app.menuitem.component";
12
- import * as i8 from "./components/layout/app.topbar.component";
13
- import * as i9 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
14
- import * as i10 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
15
- import * as i11 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
16
- import * as i12 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
17
- import * as i13 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
18
- import * as i14 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
19
- import * as i15 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
20
- import * as i16 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
21
- import * as i17 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
22
- import * as i18 from "./components/tableview/table/table.component";
23
- import * as i19 from "./components/tableview/tableview.component";
24
- import * as i20 from "./components/form/editor/form-editor.component";
25
- import * as i21 from "./components/action/action.component";
26
- import * as i22 from "./components/action/dialog/action-dialog.component";
27
- import * as i23 from "./components/action/route/action-route.component";
28
- import * as i24 from "@angular/common";
29
- import * as i25 from "@angular/router";
30
- import * as i26 from "@angular/common/http";
31
- import * as i27 from "@angular/forms";
32
- import * as i28 from "@ngx-translate/core";
33
- import * as i29 from "@ngx-formly/core";
34
- import * as i30 from "primeng/autocomplete";
35
- import * as i31 from "primeng/breadcrumb";
36
- import * as i32 from "primeng/button";
37
- import * as i33 from "primeng/calendar";
38
- import * as i34 from "primeng/card";
39
- import * as i35 from "primeng/checkbox";
40
- import * as i36 from "primeng/chip";
41
- import * as i37 from "primeng/confirmdialog";
42
- import * as i38 from "primeng/confirmpopup";
43
- import * as i39 from "primeng/dialog";
44
- import * as i40 from "primeng/dynamicdialog";
45
- import * as i41 from "primeng/dropdown";
46
- import * as i42 from "primeng/inputnumber";
47
- import * as i43 from "primeng/inputmask";
48
- import * as i44 from "primeng/inputswitch";
49
- import * as i45 from "primeng/inputtext";
50
- import * as i46 from "primeng/inputtextarea";
51
- import * as i47 from "primeng/paginator";
52
- import * as i48 from "primeng/radiobutton";
53
- import * as i49 from "primeng/ripple";
54
- import * as i50 from "primeng/selectbutton";
55
- import * as i51 from "primeng/table";
56
- import * as i52 from "primeng/tag";
57
- import * as i53 from "primeng/toast";
58
- import * as i54 from "primeng/togglebutton";
59
- import * as i55 from "primeng/toolbar";
60
- import * as i56 from "primeng/tooltip";
61
- import * as i57 from "primeng/messages";
62
- import * as i58 from "primeng/progressspinner";
63
- import * as i59 from "primeng/tabview";
64
- import * as i60 from "primeng/fieldset";
65
- export declare const primeNgModules: (typeof InputTextModule)[];
66
- export declare class MngCommonsModule {
67
- static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
69
- static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.TemplateDirective, typeof i2.PropertyPathPipe, typeof i3.AppBreadcrumbComponent, typeof i4.AppFooterComponent, typeof i5.AppMainComponent, typeof i6.AppMenuComponent, typeof i7.AppMenuitemComponent, typeof i8.AppTopbarComponent, typeof i9.FormlyFieldWrapperComponent, typeof i10.FormlyTableWrapperComponent, typeof i11.FormlyFieldInputComponent, typeof i12.FormlyFieldDropdownComponent, typeof i13.FormlyFieldAutocompleteComponent, typeof i14.FormlyFieldTableDialogMultiselectComponent, typeof i15.FormlyFieldTableDialogFormComponent, typeof i16.FormlyFieldTabsComponent, typeof i17.FormlyFieldFieldsetComponent, typeof i18.TableComponent, typeof i19.TableviewComponent, typeof i20.FormEditorComponent, typeof i21.ActionComponent, typeof i22.ActionDialogComponent, typeof i23.ActionRouteComponent], [typeof i24.CommonModule, typeof i25.RouterModule, typeof i26.HttpClientModule, typeof i27.ReactiveFormsModule, typeof i28.TranslateModule, typeof i29.FormlyModule, typeof i30.AutoCompleteModule, typeof i31.BreadcrumbModule, typeof i32.ButtonModule, typeof i33.CalendarModule, typeof i34.CardModule, typeof i35.CheckboxModule, typeof i36.ChipModule, typeof i37.ConfirmDialogModule, typeof i38.ConfirmPopupModule, typeof i39.DialogModule, typeof i40.DynamicDialogModule, typeof i41.DropdownModule, typeof i42.InputNumberModule, typeof i43.InputMaskModule, typeof i44.InputSwitchModule, typeof i45.InputTextModule, typeof i46.InputTextareaModule, typeof i47.PaginatorModule, typeof i48.RadioButtonModule, typeof i49.RippleModule, typeof i50.SelectButtonModule, typeof i51.TableModule, typeof i52.TagModule, typeof i53.ToastModule, typeof i54.ToggleButtonModule, typeof i55.ToolbarModule, typeof i56.TooltipModule, typeof i57.MessagesModule, typeof i58.ProgressSpinnerModule, typeof i59.TabViewModule, typeof i60.FieldsetModule], [typeof i1.TemplateDirective, typeof i2.PropertyPathPipe, typeof i3.AppBreadcrumbComponent, typeof i4.AppFooterComponent, typeof i5.AppMainComponent, typeof i6.AppMenuComponent, typeof i7.AppMenuitemComponent, typeof i8.AppTopbarComponent, typeof i9.FormlyFieldWrapperComponent, typeof i10.FormlyTableWrapperComponent, typeof i11.FormlyFieldInputComponent, typeof i12.FormlyFieldDropdownComponent, typeof i13.FormlyFieldAutocompleteComponent, typeof i14.FormlyFieldTableDialogMultiselectComponent, typeof i15.FormlyFieldTableDialogFormComponent, typeof i16.FormlyFieldTabsComponent, typeof i17.FormlyFieldFieldsetComponent, typeof i18.TableComponent, typeof i19.TableviewComponent, typeof i20.FormEditorComponent, typeof i21.ActionComponent, typeof i22.ActionDialogComponent, typeof i23.ActionRouteComponent]>;
70
- static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
71
- }
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
+ }
@@ -0,0 +1,2 @@
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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,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 +1,2 @@
1
- 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
+ }