@mediusinc/mng-commons 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/esm2020/lib/api/services/{abstract-crud-api.service.mjs → crud-api.abstract.service.mjs} +2 -2
  2. package/esm2020/lib/api/services/index.mjs +2 -2
  3. package/esm2020/lib/api/utils/medius-rest.util.mjs +1 -1
  4. package/esm2020/lib/api/utils/object-serializer.util.mjs +1 -1
  5. package/esm2020/lib/components/action/action.component.mjs +9 -7
  6. package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +15 -26
  7. package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
  8. package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
  9. package/esm2020/lib/components/action/models/index.mjs +3 -0
  10. package/esm2020/lib/components/action/route/action-route.component.mjs +8 -8
  11. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
  12. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
  13. package/esm2020/lib/components/form/editor/form-editor.component.mjs +11 -12
  14. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +6 -6
  15. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +6 -6
  16. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -5
  17. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +5 -5
  18. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +6 -6
  19. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +6 -6
  20. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +5 -5
  21. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +5 -5
  22. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +5 -5
  23. package/esm2020/lib/components/form/index.mjs +3 -3
  24. package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
  25. package/esm2020/lib/components/form/models/index.mjs +2 -0
  26. package/esm2020/lib/components/layout/main-layout.component.mjs +36 -15
  27. package/esm2020/lib/components/layout/menu-item.component.mjs +4 -4
  28. package/esm2020/lib/components/layout/menu.component.mjs +6 -6
  29. package/esm2020/lib/components/layout/services/index.mjs +2 -0
  30. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +5 -5
  31. package/esm2020/lib/components/layout/topbar.component.mjs +35 -16
  32. package/esm2020/lib/components/tableview/models/index.mjs +2 -0
  33. package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
  34. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +2 -2
  35. package/esm2020/lib/components/tableview/services/index.mjs +2 -0
  36. package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
  37. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +4 -4
  38. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +3 -3
  39. package/esm2020/lib/components/tableview/table/table.component.mjs +11 -11
  40. package/esm2020/lib/components/tableview/tableview.component.mjs +11 -12
  41. package/esm2020/lib/config/formly.config.mjs +13 -13
  42. package/esm2020/lib/{models/config → config/models}/index.mjs +1 -1
  43. package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
  44. package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
  45. package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
  46. package/esm2020/lib/data-providers/index.mjs +6 -0
  47. package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
  48. package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
  49. package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
  50. package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
  51. package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
  52. package/esm2020/lib/descriptors/field.validator.mjs +21 -0
  53. package/esm2020/lib/descriptors/index.mjs +8 -0
  54. package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
  55. package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
  56. package/esm2020/lib/descriptors/table.descriptor.mjs +401 -0
  57. package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
  58. package/esm2020/lib/directives/component.directive.mjs +23 -0
  59. package/esm2020/lib/directives/index.mjs +2 -1
  60. package/esm2020/lib/directives/template.directive.mjs +11 -7
  61. package/esm2020/lib/mng-commons.module.mjs +137 -70
  62. package/esm2020/lib/models/index.mjs +3 -0
  63. package/esm2020/lib/models/router.model.mjs +2 -0
  64. package/esm2020/lib/models/user.model.mjs +2 -0
  65. package/esm2020/lib/pipes/boolean.pipe.mjs +5 -5
  66. package/esm2020/lib/pipes/property-path.pipe.mjs +5 -5
  67. package/esm2020/lib/services/action.service.mjs +6 -7
  68. package/esm2020/lib/services/commons.service.mjs +5 -9
  69. package/esm2020/lib/services/configuration.service.mjs +2 -1
  70. package/esm2020/lib/services/providers/config-service.provider.mjs +10 -2
  71. package/esm2020/lib/services/providers/formly-config.provider.mjs +1 -1
  72. package/esm2020/lib/services/providers/index.mjs +2 -1
  73. package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
  74. package/esm2020/lib/services/tokens/index.mjs +3 -0
  75. package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
  76. package/esm2020/lib/types/index.mjs +3 -0
  77. package/esm2020/lib/types/type.decorator.mjs +7 -0
  78. package/esm2020/lib/types/type.model.mjs +2 -0
  79. package/esm2020/lib/utils/editor-formly.util.mjs +2 -2
  80. package/esm2020/lib/utils/i18n.util.mjs +1 -1
  81. package/esm2020/lib/utils/index.mjs +2 -1
  82. package/esm2020/lib/utils/model.util.mjs +1 -1
  83. package/esm2020/lib/utils/toast.util.mjs +2 -2
  84. package/esm2020/lib/utils/type.util.mjs +2 -2
  85. package/esm2020/public-api.mjs +12 -11
  86. package/fesm2015/mediusinc-mng-commons.mjs +509 -377
  87. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  88. package/fesm2020/mediusinc-mng-commons.mjs +502 -371
  89. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  90. package/lib/api/services/{abstract-crud-api.service.d.ts → crud-api.abstract.service.d.ts} +2 -2
  91. package/lib/api/services/index.d.ts +1 -1
  92. package/lib/api/utils/medius-rest.util.d.ts +1 -1
  93. package/lib/api/utils/object-serializer.util.d.ts +1 -1
  94. package/lib/components/action/action.component.d.ts +8 -8
  95. package/lib/components/action/dialog/action-dialog.component.d.ts +13 -16
  96. package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +2 -2
  97. package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +3 -3
  98. package/lib/components/action/models/index.d.ts +2 -0
  99. package/lib/components/action/route/action-route.component.d.ts +6 -6
  100. package/lib/components/form/autocomplete/{mng-autocomplete.component.d.ts → autocomplete.component.d.ts} +1 -1
  101. package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts} +1 -1
  102. package/lib/components/form/editor/form-editor.component.d.ts +6 -6
  103. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +4 -4
  104. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +4 -4
  105. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +3 -3
  106. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -4
  107. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +4 -4
  108. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +4 -4
  109. package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +3 -3
  110. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +3 -3
  111. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +3 -3
  112. package/lib/components/form/index.d.ts +2 -2
  113. package/lib/components/form/models/form-editor.event.d.ts +5 -0
  114. package/lib/components/form/models/index.d.ts +1 -0
  115. package/lib/components/layout/main-layout.component.d.ts +12 -4
  116. package/lib/components/layout/menu-item.component.d.ts +3 -3
  117. package/lib/components/layout/menu.component.d.ts +3 -3
  118. package/lib/components/layout/services/index.d.ts +1 -0
  119. package/lib/components/layout/services/main-layout.component.service.d.ts +3 -3
  120. package/lib/components/layout/topbar.component.d.ts +13 -6
  121. package/lib/components/tableview/models/index.d.ts +1 -0
  122. package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +2 -2
  123. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -2
  124. package/lib/components/tableview/services/index.d.ts +1 -0
  125. package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +2 -2
  126. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +1 -1
  127. package/lib/components/tableview/table/column-value/column-value.component.d.ts +1 -1
  128. package/lib/components/tableview/table/table.component.d.ts +8 -8
  129. package/lib/components/tableview/tableview.component.d.ts +9 -10
  130. package/lib/config/formly.config.d.ts +3 -3
  131. package/lib/{models/config → config/models}/index.d.ts +0 -0
  132. package/lib/{models/config → config/models}/mng-config.model.d.ts +0 -3
  133. package/lib/data-providers/base.data-provider.d.ts +17 -0
  134. package/lib/data-providers/editor.data-provider.d.ts +25 -0
  135. package/lib/data-providers/index.d.ts +5 -0
  136. package/lib/data-providers/lookup.data-provider.d.ts +14 -0
  137. package/lib/data-providers/table.data-provider.d.ts +6 -0
  138. package/lib/data-providers/tableview.data-provider.d.ts +15 -0
  139. package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +6 -3
  140. package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +5 -7
  141. package/lib/{models/validators → descriptors}/field.validator.d.ts +0 -0
  142. package/lib/descriptors/index.d.ts +7 -0
  143. package/lib/{models/interfaces/lookup.model.d.ts → descriptors/lookup.descriptor.d.ts} +3 -3
  144. package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +0 -0
  145. package/lib/{models/descriptors/table-descriptor.model.d.ts → descriptors/table.descriptor.d.ts} +5 -5
  146. package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +1 -3
  147. package/lib/directives/component.directive.d.ts +11 -0
  148. package/lib/directives/index.d.ts +1 -0
  149. package/lib/directives/template.directive.d.ts +7 -5
  150. package/lib/mng-commons.module.d.ts +70 -69
  151. package/lib/models/{router/index.d.ts → index.d.ts} +1 -0
  152. package/lib/models/router.model.d.ts +14 -0
  153. package/lib/models/{user/user.model.d.ts → user.model.d.ts} +0 -0
  154. package/lib/pipes/boolean.pipe.d.ts +3 -3
  155. package/lib/pipes/property-path.pipe.d.ts +3 -3
  156. package/lib/services/action.service.d.ts +6 -6
  157. package/lib/services/commons.service.d.ts +2 -4
  158. package/lib/services/providers/config-service.provider.d.ts +1 -1
  159. package/lib/services/providers/formly-config.provider.d.ts +1 -1
  160. package/lib/services/providers/index.d.ts +1 -0
  161. package/lib/services/tokens/browser-storage.token.d.ts +2 -0
  162. package/lib/services/tokens/index.d.ts +2 -0
  163. package/lib/services/tokens/module-config.token.d.ts +3 -0
  164. package/lib/{models/types → types}/index.d.ts +0 -0
  165. package/lib/{models/types → types}/type.decorator.d.ts +0 -0
  166. package/lib/{models/types → types}/type.model.d.ts +0 -0
  167. package/lib/utils/editor-formly.util.d.ts +1 -1
  168. package/lib/utils/i18n.util.d.ts +1 -1
  169. package/lib/utils/index.d.ts +1 -0
  170. package/lib/utils/model.util.d.ts +3 -3
  171. package/lib/utils/toast.util.d.ts +3 -3
  172. package/lib/utils/type.util.d.ts +1 -1
  173. package/{mediusinc-mng-commons-0.1.0.tgz → mediusinc-mng-commons-0.2.0.tgz} +0 -0
  174. package/package.json +1 -1
  175. package/public-api.d.ts +10 -9
  176. package/scss/common/layout/_help.scss +3 -3
  177. package/scss/common/layout/_landing.scss +1 -1
  178. package/scss/common/variables/layout/_common.scss +2 -0
  179. package/scss/common/variables/layout/_layout_dark.scss +4 -3
  180. package/scss/common/variables/layout/_layout_light.scss +4 -3
  181. package/scss/layout/default/_mng-variables-layout-light.scss +2 -2
  182. package/scss/mng-commons-dark.scss +0 -5
  183. package/scss/mng-commons-light.scss +0 -8
  184. package/scss/theme/default/_mng-variables-theme-light.scss +4 -4
  185. package/.pnpm-debug.log +0 -15
  186. package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +0 -114
  187. package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +0 -113
  188. package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
  189. package/esm2020/lib/models/action/action.model.mjs +0 -58
  190. package/esm2020/lib/models/action/index.mjs +0 -2
  191. package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
  192. package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -325
  193. package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -671
  194. package/esm2020/lib/models/descriptors/index.mjs +0 -6
  195. package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
  196. package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -401
  197. package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -133
  198. package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
  199. package/esm2020/lib/models/events/index.mjs +0 -3
  200. package/esm2020/lib/models/events/table-event.model.mjs +0 -16
  201. package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
  202. package/esm2020/lib/models/interfaces/index.mjs +0 -3
  203. package/esm2020/lib/models/interfaces/lookup.model.mjs +0 -2
  204. package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
  205. package/esm2020/lib/models/providers/index.mjs +0 -2
  206. package/esm2020/lib/models/router/index.mjs +0 -2
  207. package/esm2020/lib/models/router/router.model.mjs +0 -2
  208. package/esm2020/lib/models/types/index.mjs +0 -3
  209. package/esm2020/lib/models/types/type.decorator.mjs +0 -7
  210. package/esm2020/lib/models/types/type.model.mjs +0 -2
  211. package/esm2020/lib/models/user/index.mjs +0 -2
  212. package/esm2020/lib/models/user/user.model.mjs +0 -2
  213. package/esm2020/lib/models/validators/field.validator.mjs +0 -21
  214. package/esm2020/lib/models/validators/index.mjs +0 -2
  215. package/lib/models/action/index.d.ts +0 -1
  216. package/lib/models/descriptors/index.d.ts +0 -5
  217. package/lib/models/events/editor-event.model.d.ts +0 -11
  218. package/lib/models/events/index.d.ts +0 -2
  219. package/lib/models/interfaces/index.d.ts +0 -2
  220. package/lib/models/providers/data-provider.model.d.ts +0 -62
  221. package/lib/models/providers/index.d.ts +0 -1
  222. package/lib/models/router/router.model.d.ts +0 -9
  223. package/lib/models/user/index.d.ts +0 -1
  224. package/lib/models/validators/index.d.ts +0 -1
@@ -5,12 +5,12 @@ import { FilterMetadata } from 'primeng/api/filtermetadata';
5
5
  import { Observable } from 'rxjs';
6
6
  import { TranslateService } from '@ngx-translate/core';
7
7
  import { MediusQueryResult } from '../../../api/models';
8
- import { ColumnDescriptor, TableDescriptor } from '../../../models/descriptors';
9
- import { ITableDataProvider } from '../../../models/providers';
10
- import { TemplateDirective } from '../../../directives';
11
- import { TableviewComponentService } from '../tableview.component.service';
8
+ import { ColumnDescriptor, TableDescriptor } from '../../../descriptors';
9
+ import { ITableDataProvider } from '../../../data-providers';
10
+ import { MngTemplateDirective } from '../../../directives';
11
+ import { TableviewComponentService } from '../services';
12
12
  import * as i0 from "@angular/core";
13
- export declare class TableComponent<T, S> implements OnInit, AfterContentInit, OnDestroy {
13
+ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit, OnDestroy {
14
14
  private injector;
15
15
  private router;
16
16
  private activatedRoute;
@@ -28,7 +28,7 @@ export declare class TableComponent<T, S> implements OnInit, AfterContentInit, O
28
28
  private loadEventEmitter;
29
29
  private cellClickEventEmitter;
30
30
  private selectionChangeEventEmitter;
31
- templates: QueryList<TemplateDirective>;
31
+ templates: QueryList<MngTemplateDirective>;
32
32
  private primeTable;
33
33
  captionTemplate?: TemplateRef<any>;
34
34
  columnActionTemplate?: TemplateRef<any>;
@@ -74,6 +74,6 @@ export declare class TableComponent<T, S> implements OnInit, AfterContentInit, O
74
74
  private loadTableFromRouteUpdate;
75
75
  private updatePrimeSortAndFilter;
76
76
  private getDefaultSortMeta;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, [null, null, null, null, { optional: true; }]>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionEnabled": "selectionEnabled"; }, { "loadEventEmitter": "onLoad"; "cellClickEventEmitter": "onCellClick"; "selectionChangeEventEmitter": "onSelectionChange"; }, ["templates"], never>;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, { optional: true; }]>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionEnabled": "selectionEnabled"; }, { "loadEventEmitter": "onLoad"; "cellClickEventEmitter": "onCellClick"; "selectionChangeEventEmitter": "onSelectionChange"; }, ["templates"], never>;
79
79
  }
@@ -4,14 +4,13 @@ import { TranslateService } from '@ngx-translate/core';
4
4
  import { ConfirmationService, MessageService } from 'primeng/api';
5
5
  import { DialogService } from 'primeng/dynamicdialog';
6
6
  import { MngActionService } from '../../services';
7
- import { TableviewDescriptor } from '../../models/descriptors';
8
- import { ITableviewDataProvider } from '../../models/providers';
9
- import { MngTableCellClickEvent } from '../../models/events';
10
- import { ActionDescriptor } from '../../models/descriptors';
11
- import { TableComponent } from './table/table.component';
12
- import { TableviewComponentService } from './tableview.component.service';
7
+ import { TableviewDescriptor, ActionDescriptor } from '../../descriptors';
8
+ import { ITableviewDataProvider } from '../../data-providers';
9
+ import { MngTableCellClickEvent } from './models';
10
+ import { TableviewComponentService } from './services';
11
+ import { MngTableComponent } from './table/table.component';
13
12
  import * as i0 from "@angular/core";
14
- export declare class TableviewComponent<T, S> implements OnInit {
13
+ export declare class MngTableviewComponent<T, S> implements OnInit {
15
14
  private route;
16
15
  private messageService;
17
16
  private translateService;
@@ -22,7 +21,7 @@ export declare class TableviewComponent<T, S> implements OnInit {
22
21
  descriptor: TableviewDescriptor<T>;
23
22
  dataProvider?: ITableviewDataProvider<T, S>;
24
23
  actions: Array<ActionDescriptor<T>>;
25
- tableComponent: TableComponent<T, S> | null;
24
+ tableComponent: MngTableComponent<T, S> | null;
26
25
  rowClickActions: ActionDescriptor<T>[];
27
26
  rowInlineActions: ActionDescriptor<T>[];
28
27
  toolbarLeftActions: ActionDescriptor<T>[];
@@ -31,6 +30,6 @@ export declare class TableviewComponent<T, S> implements OnInit {
31
30
  ngOnInit(): void;
32
31
  reloadTable(): void;
33
32
  onTableCellClick(event: MngTableCellClickEvent<T>): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<TableviewComponent<any, any>, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<TableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, never, never>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, never, never>;
36
35
  }
@@ -1,10 +1,10 @@
1
- import { FormlyFieldWrapperComponent } from '../components/form/formly/wrappers';
2
1
  import { TranslateService } from '@ngx-translate/core';
3
2
  import { FormlyFieldConfig } from '@ngx-formly/core';
4
- import { Observable } from "rxjs";
3
+ import { Observable } from 'rxjs';
4
+ import { MngFormlyFieldWrapperComponent } from '../components/form/formly/wrappers';
5
5
  export declare const formlyWrappersConfig: {
6
6
  name: string;
7
- component: typeof FormlyFieldWrapperComponent;
7
+ component: typeof MngFormlyFieldWrapperComponent;
8
8
  }[];
9
9
  export declare const formlyTypesConfig: any[];
10
10
  export declare function getRequiredValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string>;
File without changes
@@ -1,7 +1,5 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { TranslateService } from '@ngx-translate/core';
3
2
  import { MenuItem } from 'primeng/api';
4
- export declare const MNG_MODULE_CONFIG_IT: InjectionToken<MngModuleConfig>;
5
3
  export interface MngModuleConfig {
6
4
  app?: {
7
5
  name?: string;
@@ -33,5 +31,4 @@ export interface MngModuleConfig {
33
31
  validators?: any[];
34
32
  getValidationMessages?: (translate: TranslateService) => any[];
35
33
  };
36
- skipObjectSerializer?: boolean;
37
34
  }
@@ -0,0 +1,17 @@
1
+ import { Type } from '@angular/core';
2
+ import { ClassType } from '../types';
3
+ export interface IDataProvider<T, S> {
4
+ modelType: ClassType<T> | null;
5
+ serviceType?: Type<S>;
6
+ }
7
+ export declare class DataProvider<T, S> {
8
+ protected _modelType: ClassType<T> | null;
9
+ protected _serviceType?: Type<S>;
10
+ protected _enumName?: string;
11
+ constructor(modelType: ClassType<T> | null, serviceType?: Type<S>);
12
+ get serviceType(): Type<S> | undefined;
13
+ get modelType(): ClassType<T> | null;
14
+ get enumName(): string | undefined;
15
+ withServiceType(type: Type<S>): this;
16
+ withEnumName(enumName: string): this;
17
+ }
@@ -0,0 +1,25 @@
1
+ import { Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ClassType, IdType } from '../types';
4
+ import { DataProvider, IDataProvider } from './base.data-provider';
5
+ export interface IEditorDataProvider<T, S> extends IDataProvider<T, S> {
6
+ fetch: (id: IdType, service?: S) => Observable<T>;
7
+ create?: (item?: T, service?: S) => Observable<T>;
8
+ update?: (id: IdType, item?: T, service?: S) => Observable<T>;
9
+ delete?: (id: IdType, item?: T, service?: S) => Observable<T>;
10
+ }
11
+ export declare class EditorDataProvider<T, S> extends DataProvider<T, S> implements IEditorDataProvider<T, S> {
12
+ protected _fetch: (id: IdType, service?: S) => Observable<T>;
13
+ protected _create?: (item?: T, service?: S) => Observable<T>;
14
+ protected _update?: (id: IdType, item?: T, service?: S) => Observable<T>;
15
+ protected _delete?: (id: IdType, item?: T, service?: S) => Observable<T>;
16
+ constructor(modelType: ClassType<T>, serviceType?: Type<S>);
17
+ get fetch(): (id: IdType, service?: S | undefined) => Observable<T>;
18
+ get create(): ((item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
19
+ get update(): ((id: IdType, item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
20
+ get delete(): ((id: IdType, item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
21
+ withFetch(fetch: (id: IdType, service?: S) => Observable<T>): this;
22
+ withCreate(create: (item?: T, service?: S) => Observable<T>): this;
23
+ withUpdate(update: (id: IdType, item?: T, service?: S) => Observable<T>): this;
24
+ withDelete(deleteFn: (id: IdType, item?: T, service?: S) => Observable<T>): this;
25
+ }
@@ -0,0 +1,5 @@
1
+ export * from './base.data-provider';
2
+ export * from './editor.data-provider';
3
+ export * from './lookup.data-provider';
4
+ export * from './table.data-provider';
5
+ export * from './tableview.data-provider';
@@ -0,0 +1,14 @@
1
+ import { Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { MediusQueryParam } from '../api/models';
4
+ import { ClassType } from '../types';
5
+ import { DataProvider, IDataProvider } from './base.data-provider';
6
+ export interface ILookupDataProvider<T, S> extends IDataProvider<T, S> {
7
+ lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>;
8
+ }
9
+ export declare class LookupDataProvider<T, S> extends DataProvider<T, S> implements ILookupDataProvider<T, S> {
10
+ protected _lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>;
11
+ constructor(modelType: ClassType<T> | null, serviceType?: Type<S>);
12
+ get lookup(): (queryParam?: MediusQueryParam | undefined, service?: S | undefined, search?: string | undefined) => Observable<T[]>;
13
+ withLookup(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>): this;
14
+ }
@@ -0,0 +1,6 @@
1
+ import { Observable } from 'rxjs';
2
+ import { MediusQueryParam, MediusQueryResult } from '../api/models';
3
+ import { IDataProvider } from './base.data-provider';
4
+ export interface ITableDataProvider<T, S> extends IDataProvider<T, S> {
5
+ getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>;
6
+ }
@@ -0,0 +1,15 @@
1
+ import { Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { MediusQueryParam, MediusQueryResult } from '../api/models';
4
+ import { ClassType } from '../types';
5
+ import { EditorDataProvider, IEditorDataProvider } from './editor.data-provider';
6
+ import { ITableDataProvider } from './table.data-provider';
7
+ export interface ITableviewDataProvider<T, S> extends IEditorDataProvider<T, S> {
8
+ getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>;
9
+ }
10
+ export declare class TableviewDataProvider<T, S> extends EditorDataProvider<T, S> implements ITableviewDataProvider<T, S>, ITableDataProvider<T, S>, IEditorDataProvider<T, S> {
11
+ protected _getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>;
12
+ constructor(modelType: ClassType<T>, serviceType?: Type<S>);
13
+ get getAll(): (queryParam: MediusQueryParam, service?: S | undefined) => Observable<MediusQueryResult<T>>;
14
+ withGetAll(getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>): this;
15
+ }
@@ -1,8 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ClassType } from '../types';
3
- import { EditorDescriptor, ModelDescriptor } from '../descriptors';
4
- import { IDataProvider, IEditorDataProvider } from '../providers';
5
- import { ActionExecContext } from '../action';
3
+ import { EditorDescriptor, ModelDescriptor } from './';
4
+ import { IDataProvider, IEditorDataProvider } from '../data-providers';
5
+ import { ActionExecContext } from '../components/action/models';
6
6
  export declare class ActionDescriptor<T> {
7
7
  protected readonly _model: ModelDescriptor<T>;
8
8
  protected readonly _actionName: string;
@@ -18,6 +18,7 @@ export declare class ActionDescriptor<T> {
18
18
  protected _title?: string | null;
19
19
  protected _icon?: string;
20
20
  protected _className: string;
21
+ protected _tooltip?: string | null;
21
22
  protected _runFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
22
23
  protected _isVisibleFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
23
24
  protected _isEnabledFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
@@ -45,6 +46,7 @@ export declare class ActionDescriptor<T> {
45
46
  get routeUrl(): string | null;
46
47
  get title(): string | null | undefined;
47
48
  get icon(): string | undefined;
49
+ get tooltip(): string | null | undefined;
48
50
  get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
49
51
  get isVisibleFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
50
52
  get isEnabledFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
@@ -77,6 +79,7 @@ export declare class ActionDescriptor<T> {
77
79
  */
78
80
  withTitle(title: string | null): this;
79
81
  withIcon(icon: string): this;
82
+ withTooltip(tooltip: string | null): this;
80
83
  withClassName(className: string): this;
81
84
  withPosition(position: ActionPositionEnum): this;
82
85
  withRunConfirmation(icon?: string, title?: string, message?: string, acceptTitle?: string, rejectTitle?: string): this;
@@ -2,12 +2,10 @@ import { Type } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { FormlyFieldConfig } from '@ngx-formly/core';
4
4
  import { Observable } from 'rxjs';
5
- import { ClassType, EnumMemberType } from '../../models/types';
6
- import { ILookupDataProvider, ITableDataProvider } from '../../models/providers';
7
- import { ModelDescriptor, TableDescriptor, TableviewDescriptor } from '../../models/descriptors';
8
- import { FieldValidator } from '../../models/validators';
9
- import { MediusQueryParam, MediusQueryResult } from '../../api/models';
10
- import { ILookup } from '../interfaces';
5
+ import { ClassType, EnumMemberType } from '../types';
6
+ import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
7
+ import { ModelDescriptor, TableDescriptor, TableviewDescriptor, FieldValidator, ILookupDescriptor } from './';
8
+ import { MediusQueryParam, MediusQueryResult } from '../api/models';
11
9
  export declare class EditorDescriptor<T> {
12
10
  static readonly defaultGroupName = "_default";
13
11
  private readonly _model;
@@ -128,7 +126,7 @@ export declare namespace FieldInputDescriptor {
128
126
  Datepicker = 5
129
127
  }
130
128
  }
131
- export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET> implements ILookup<T> {
129
+ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET> implements ILookupDescriptor<T> {
132
130
  protected readonly _modelType: ClassType<T> | null;
133
131
  protected _lookupType: FieldLookupDescriptor.LookupTypeEnum;
134
132
  protected _itemsLabelProperty?: string;
@@ -0,0 +1,7 @@
1
+ export * from './action.descriptor';
2
+ export * from './editor.descriptor';
3
+ export * from './field.validator';
4
+ export * from './lookup.descriptor';
5
+ export * from './model.descriptor';
6
+ export * from './table.descriptor';
7
+ export * from './tableview.descriptor';
@@ -1,9 +1,9 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { ILookupDataProvider } from '../providers';
3
+ import { ILookupDataProvider } from '../data-providers';
4
4
  import { ClassType } from '../types';
5
- import { MediusQueryParam } from '../../api/models';
6
- export interface ILookup<T> {
5
+ import { MediusQueryParam } from '../api/models';
6
+ export interface ILookupDescriptor<T> {
7
7
  modelType: ClassType<T> | null;
8
8
  itemsLabelProperty?: string;
9
9
  itemsValueProperty?: string;
@@ -1,10 +1,10 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { ModelDescriptor } from './model-descriptor.model';
3
+ import { ModelDescriptor } from './model.descriptor';
4
+ import { ILookupDescriptor } from './lookup.descriptor';
4
5
  import { ClassType } from '../types';
5
- import { ILookupDataProvider } from '../providers';
6
- import { MediusQueryParam } from '../../api/models';
7
- import { ILookup } from '../interfaces';
6
+ import { ILookupDataProvider } from '../data-providers';
7
+ import { MediusQueryParam } from '../api/models';
8
8
  export declare class TableDescriptor<T> {
9
9
  private readonly _model;
10
10
  private _filterDisplay;
@@ -127,7 +127,7 @@ export declare namespace FilterDescriptor {
127
127
  Lookup = 4
128
128
  }
129
129
  }
130
- export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookup<T> {
130
+ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
131
131
  private readonly _modelType;
132
132
  private _lookupType?;
133
133
  private _dataProvider?;
@@ -1,7 +1,5 @@
1
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';
2
+ import { ModelDescriptor, AFieldDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ColumnDescriptor, TableDescriptor } from './';
5
3
  import { ClassType, EnumMemberType } from '../types';
6
4
  export declare class TableviewDescriptor<T> {
7
5
  private readonly _model;
@@ -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 './component.directive';
1
2
  export * from './template.directive';
@@ -1,11 +1,13 @@
1
- import { TemplateRef } from '@angular/core';
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class TemplateDirective {
3
+ export declare class MngTemplateDirective {
4
4
  template: TemplateRef<any>;
5
+ private viewContainerRef;
5
6
  type: string;
6
7
  name: string;
7
- constructor(template: TemplateRef<any>);
8
+ constructor(template: TemplateRef<any>, viewContainerRef: ViewContainerRef);
8
9
  getType(): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never>;
10
+ getViewContainerRef(): ViewContainerRef;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngTemplateDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngTemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never>;
11
13
  }
@@ -1,78 +1,79 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { InputTextModule } from 'primeng/inputtext';
3
- import { MngModuleConfig } from './models/config';
3
+ import { MngModuleConfig } from './config/models';
4
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";
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";
72
73
  export declare const primeNgModules: (typeof InputTextModule)[];
73
74
  export declare class MngCommonsModule {
74
75
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
75
76
  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 ɵ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]>;
77
78
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
78
79
  }
@@ -1 +1,2 @@
1
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,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class BooleanPipe implements PipeTransform {
3
+ export declare class MngBooleanPipe implements PipeTransform {
4
4
  transform(value: any): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<BooleanPipe, "boolean">;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngBooleanPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean">;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class PropertyPathPipe implements PipeTransform {
3
+ export declare class MngPropertyPathPipe implements PipeTransform {
4
4
  transform(value: any, path?: string): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<PropertyPathPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<PropertyPathPipe, "propertyPath">;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngPropertyPathPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngPropertyPathPipe, "propertyPath">;
7
7
  }
@@ -4,12 +4,12 @@ import { DialogService } from 'primeng/dynamicdialog';
4
4
  import { ConfirmationService } from 'primeng/api';
5
5
  import { TranslateService } from '@ngx-translate/core';
6
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';
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
13
  import * as i0 from "@angular/core";
14
14
  export declare class MngActionService {
15
15
  private injector;