@mediusinc/mng-commons 0.2.6 → 0.2.11

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 (259) hide show
  1. package/README.md +46 -0
  2. package/assets/i18n/en.json +202 -147
  3. package/assets/i18n/sl.json +202 -147
  4. package/esm2020/lib/api/models/builders/query-param.builder.mjs +1 -1
  5. package/esm2020/lib/api/models/filter-match-type.model.mjs +1 -1
  6. package/esm2020/lib/api/models/filter-param.model.mjs +16 -27
  7. package/esm2020/lib/api/models/mappers.mjs +7 -7
  8. package/esm2020/lib/api/models/query-mode.model.mjs +1 -1
  9. package/esm2020/lib/api/models/query-param.model.mjs +38 -37
  10. package/esm2020/lib/api/models/query-result.model.mjs +14 -13
  11. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +28 -21
  12. package/esm2020/lib/api/utils/medius-rest.util.mjs +11 -7
  13. package/esm2020/lib/api/utils/object-serializer.util.mjs +34 -27
  14. package/esm2020/lib/components/action/action.component.mjs +10 -7
  15. package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +17 -14
  16. package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +1 -1
  17. package/esm2020/lib/components/action/models/action-execution.model.mjs +1 -1
  18. package/esm2020/lib/components/action/route/action-route.component.mjs +8 -6
  19. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +16 -14
  20. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +16 -15
  21. package/esm2020/lib/components/form/editor/form-editor.component.mjs +21 -24
  22. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +3 -3
  23. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +3 -3
  24. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +4 -4
  25. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +9 -8
  26. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +13 -13
  27. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +12 -11
  28. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +4 -4
  29. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +1 -3
  30. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +1 -3
  31. package/esm2020/lib/components/form/models/form-editor.event.mjs +1 -1
  32. package/esm2020/lib/components/layout/breadcrumb.component.mjs +3 -3
  33. package/esm2020/lib/components/layout/footer.component.mjs +3 -3
  34. package/esm2020/lib/components/layout/main-layout.component.mjs +4 -4
  35. package/esm2020/lib/components/layout/menu-item.component.mjs +82 -38
  36. package/esm2020/lib/components/layout/menu.component.mjs +3 -3
  37. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +4 -1
  38. package/esm2020/lib/components/layout/topbar.component.mjs +5 -4
  39. package/esm2020/lib/components/tableview/index.mjs +1 -1
  40. package/esm2020/lib/components/tableview/models/table.event.mjs +1 -1
  41. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +2 -2
  42. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +1 -1
  43. package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +9 -4
  44. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +4 -3
  45. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +1 -1
  46. package/esm2020/lib/components/tableview/table/table.component.mjs +29 -27
  47. package/esm2020/lib/components/tableview/tableview.component.mjs +11 -3
  48. package/esm2020/lib/config/formly.config.mjs +39 -22
  49. package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
  50. package/esm2020/lib/data-providers/base.data-provider.mjs +1 -8
  51. package/esm2020/lib/data-providers/editor.data-provider.mjs +2 -2
  52. package/esm2020/lib/data-providers/lookup.data-provider.mjs +1 -1
  53. package/esm2020/lib/data-providers/tableview.data-provider.mjs +2 -2
  54. package/esm2020/lib/descriptors/action.descriptor.mjs +3 -5
  55. package/esm2020/lib/descriptors/editor.descriptor.mjs +130 -72
  56. package/esm2020/lib/descriptors/field.validator.mjs +1 -1
  57. package/esm2020/lib/descriptors/lookup.descriptor.mjs +1 -1
  58. package/esm2020/lib/descriptors/model.descriptor.mjs +3 -3
  59. package/esm2020/lib/descriptors/table.descriptor.mjs +52 -43
  60. package/esm2020/lib/descriptors/tableview.descriptor.mjs +7 -7
  61. package/esm2020/lib/directives/component.directive.mjs +2 -2
  62. package/esm2020/lib/directives/template.directive.mjs +2 -3
  63. package/esm2020/lib/mng-commons.module.mjs +30 -37
  64. package/esm2020/lib/models/enum.model.mjs +2 -0
  65. package/esm2020/lib/models/index.mjs +3 -1
  66. package/esm2020/lib/models/menu.model.mjs +2 -0
  67. package/esm2020/lib/models/user.model.mjs +1 -1
  68. package/esm2020/lib/pipes/boolean.pipe.mjs +1 -1
  69. package/esm2020/lib/pipes/i18n-property.pipe.mjs +18 -0
  70. package/esm2020/lib/pipes/index.mjs +2 -1
  71. package/esm2020/lib/pipes/property-path.pipe.mjs +1 -1
  72. package/esm2020/lib/router/models/router.model.mjs +1 -1
  73. package/esm2020/lib/router/route-builder.mjs +119 -45
  74. package/esm2020/lib/services/action.service.mjs +19 -15
  75. package/esm2020/lib/services/commons.service.mjs +15 -23
  76. package/esm2020/lib/services/configuration.service.mjs +3 -4
  77. package/esm2020/lib/services/navigation.service.mjs +2 -2
  78. package/esm2020/lib/services/providers/config-service.provider.mjs +2 -2
  79. package/esm2020/lib/services/providers/formly-config.provider.mjs +1 -1
  80. package/esm2020/lib/services/tokens/browser-storage.token.mjs +1 -1
  81. package/esm2020/lib/types/type.decorator.mjs +7 -1
  82. package/esm2020/lib/types/type.model.mjs +1 -1
  83. package/esm2020/lib/utils/editor-formly.util.mjs +16 -21
  84. package/esm2020/lib/utils/enum.util.mjs +61 -0
  85. package/esm2020/lib/utils/i18n.util.mjs +39 -27
  86. package/esm2020/lib/utils/index.mjs +2 -1
  87. package/esm2020/lib/utils/model.util.mjs +1 -1
  88. package/esm2020/lib/utils/route.util.mjs +1 -1
  89. package/esm2020/lib/utils/toast.util.mjs +3 -2
  90. package/esm2020/lib/utils/type.util.mjs +40 -2
  91. package/esm2020/public-api.mjs +2 -1
  92. package/fesm2015/mediusinc-mng-commons.mjs +3547 -3198
  93. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  94. package/fesm2020/mediusinc-mng-commons.mjs +3182 -2832
  95. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  96. package/lib/api/models/filter-param.model.d.ts +1 -1
  97. package/lib/api/services/crud-api.abstract.service.d.ts +6 -6
  98. package/lib/api/utils/medius-rest.util.d.ts +1 -1
  99. package/lib/api/utils/object-serializer.util.d.ts +6 -5
  100. package/lib/components/action/action.component.d.ts +3 -3
  101. package/lib/components/action/dialog/action-dialog.component.d.ts +9 -8
  102. package/lib/components/action/models/action-execution.model.d.ts +1 -1
  103. package/lib/components/action/route/action-route.component.d.ts +2 -2
  104. package/lib/components/form/autocomplete/autocomplete.component.d.ts +4 -3
  105. package/lib/components/form/dropdown/dropdown.component.d.ts +4 -3
  106. package/lib/components/form/editor/form-editor.component.d.ts +7 -6
  107. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +2 -1
  108. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +2 -1
  109. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +1 -1
  110. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +1 -3
  111. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +1 -3
  112. package/lib/components/layout/main-layout.component.d.ts +3 -3
  113. package/lib/components/layout/menu-item.component.d.ts +18 -10
  114. package/lib/components/layout/services/main-layout.component.service.d.ts +1 -1
  115. package/lib/components/layout/topbar.component.d.ts +4 -4
  116. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -1
  117. package/lib/components/tableview/route/tableview-route.component.d.ts +1 -1
  118. package/lib/components/tableview/services/tableview.component.service.d.ts +3 -2
  119. package/lib/components/tableview/table/table.component.d.ts +21 -19
  120. package/lib/components/tableview/tableview.component.d.ts +6 -4
  121. package/lib/config/formly.config.d.ts +2 -1
  122. package/lib/data-providers/base.data-provider.d.ts +0 -3
  123. package/lib/descriptors/action.descriptor.d.ts +2 -2
  124. package/lib/descriptors/editor.descriptor.d.ts +51 -34
  125. package/lib/descriptors/lookup.descriptor.d.ts +1 -1
  126. package/lib/descriptors/table.descriptor.d.ts +19 -16
  127. package/lib/descriptors/tableview.descriptor.d.ts +9 -9
  128. package/lib/mng-commons.module.d.ts +68 -66
  129. package/lib/models/enum.model.d.ts +5 -0
  130. package/lib/models/index.d.ts +2 -0
  131. package/lib/models/menu.model.d.ts +25 -0
  132. package/lib/pipes/i18n-property.pipe.d.ts +8 -0
  133. package/lib/pipes/index.d.ts +1 -0
  134. package/lib/router/models/router.model.d.ts +1 -1
  135. package/lib/router/route-builder.d.ts +13 -9
  136. package/lib/services/action.service.d.ts +3 -3
  137. package/lib/services/commons.service.d.ts +11 -11
  138. package/lib/services/navigation.service.d.ts +1 -1
  139. package/lib/services/providers/formly-config.provider.d.ts +1 -1
  140. package/lib/types/type.decorator.d.ts +2 -0
  141. package/lib/types/type.model.d.ts +2 -2
  142. package/lib/utils/editor-formly.util.d.ts +1 -1
  143. package/lib/utils/enum.util.d.ts +39 -0
  144. package/lib/utils/i18n.util.d.ts +6 -2
  145. package/lib/utils/index.d.ts +1 -0
  146. package/lib/utils/model.util.d.ts +1 -1
  147. package/lib/utils/toast.util.d.ts +1 -1
  148. package/lib/utils/type.util.d.ts +22 -1
  149. package/package.json +2 -2
  150. package/public-api.d.ts +1 -0
  151. package/scss/common/layout/_breadcrumb.scss +6 -6
  152. package/scss/common/layout/_config.scss +7 -8
  153. package/scss/common/layout/_exception.scss +12 -11
  154. package/scss/common/layout/_footer.scss +3 -3
  155. package/scss/common/layout/_help.scss +8 -9
  156. package/scss/common/layout/_inlinemenu.scss +3 -3
  157. package/scss/common/layout/_invoice.scss +16 -16
  158. package/scss/common/layout/_landing.scss +57 -60
  159. package/scss/common/layout/_loader.scss +0 -1
  160. package/scss/common/layout/_login.scss +3 -4
  161. package/scss/common/layout/_main.scss +3 -3
  162. package/scss/common/layout/_mixins.scss +28 -20
  163. package/scss/common/layout/_rightmenu.scss +5 -5
  164. package/scss/common/layout/_topbar.scss +7 -5
  165. package/scss/common/layout/_typography.scss +11 -6
  166. package/scss/common/layout/_utils.scss +1 -1
  167. package/scss/common/layout/_widgets.scss +20 -19
  168. package/scss/common/layout/menu/_menu_common.scss +6 -6
  169. package/scss/common/layout/menu/_menu_overlay.scss +1 -1
  170. package/scss/common/layout/menu/_menu_sidebar.scss +6 -5
  171. package/scss/common/layout/menu/_menu_slim.scss +2 -3
  172. package/scss/common/layout/menu/_menu_static.scss +1 -1
  173. package/scss/common/layout/menu/_menu_theme.scss +2 -3
  174. package/scss/common/theme/designer/_colors.scss +11 -12
  175. package/scss/common/theme/designer/_common.scss +4 -3
  176. package/scss/common/theme/designer/_mixins.scss +56 -56
  177. package/scss/common/theme/designer/components/button/_button.scss +32 -20
  178. package/scss/common/theme/designer/components/button/_speeddial.scss +1 -1
  179. package/scss/common/theme/designer/components/button/_splitbutton.scss +2 -1
  180. package/scss/common/theme/designer/components/data/_carousel.scss +1 -1
  181. package/scss/common/theme/designer/components/data/_datatable.scss +5 -5
  182. package/scss/common/theme/designer/components/data/_filter.scss +2 -3
  183. package/scss/common/theme/designer/components/data/_fullcalendar.scss +10 -10
  184. package/scss/common/theme/designer/components/data/_orderlist.scss +2 -2
  185. package/scss/common/theme/designer/components/data/_paginator.scss +1 -1
  186. package/scss/common/theme/designer/components/data/_picklist.scss +1 -1
  187. package/scss/common/theme/designer/components/data/_timeline.scss +3 -6
  188. package/scss/common/theme/designer/components/data/_tree.scss +2 -2
  189. package/scss/common/theme/designer/components/data/_treetable.scss +2 -3
  190. package/scss/common/theme/designer/components/input/_autocomplete.scss +8 -8
  191. package/scss/common/theme/designer/components/input/_calendar.scss +6 -6
  192. package/scss/common/theme/designer/components/input/_cascadeselect.scss +1 -1
  193. package/scss/common/theme/designer/components/input/_checkbox.scss +4 -4
  194. package/scss/common/theme/designer/components/input/_chips.scss +4 -4
  195. package/scss/common/theme/designer/components/input/_colorpicker.scss +2 -2
  196. package/scss/common/theme/designer/components/input/_dropdown.scss +2 -2
  197. package/scss/common/theme/designer/components/input/_editor.scss +7 -7
  198. package/scss/common/theme/designer/components/input/_inputgroup.scss +1 -1
  199. package/scss/common/theme/designer/components/input/_inputmask.scss +1 -1
  200. package/scss/common/theme/designer/components/input/_inputnumber.scss +1 -1
  201. package/scss/common/theme/designer/components/input/_inputswitch.scss +2 -2
  202. package/scss/common/theme/designer/components/input/_inputtext.scss +3 -3
  203. package/scss/common/theme/designer/components/input/_listbox.scss +1 -1
  204. package/scss/common/theme/designer/components/input/_multiselect.scss +5 -6
  205. package/scss/common/theme/designer/components/input/_radiobutton.scss +2 -2
  206. package/scss/common/theme/designer/components/input/_rating.scss +1 -1
  207. package/scss/common/theme/designer/components/input/_selectbutton.scss +1 -1
  208. package/scss/common/theme/designer/components/input/_togglebutton.scss +1 -1
  209. package/scss/common/theme/designer/components/input/_treeselect.scss +2 -2
  210. package/scss/common/theme/designer/components/menu/_contextmenu.scss +3 -2
  211. package/scss/common/theme/designer/components/menu/_dock.scss +4 -4
  212. package/scss/common/theme/designer/components/menu/_megamenu.scss +10 -9
  213. package/scss/common/theme/designer/components/menu/_menu.scss +2 -2
  214. package/scss/common/theme/designer/components/menu/_menubar.scss +12 -11
  215. package/scss/common/theme/designer/components/menu/_panelmenu.scss +1 -2
  216. package/scss/common/theme/designer/components/menu/_slidemenu.scss +3 -2
  217. package/scss/common/theme/designer/components/menu/_steps.scss +1 -2
  218. package/scss/common/theme/designer/components/menu/_tieredmenu.scss +3 -2
  219. package/scss/common/theme/designer/components/messages/_message.scss +1 -1
  220. package/scss/common/theme/designer/components/messages/_toast.scss +1 -2
  221. package/scss/common/theme/designer/components/misc/_avatar.scss +1 -1
  222. package/scss/common/theme/designer/components/misc/_badge.scss +1 -1
  223. package/scss/common/theme/designer/components/misc/_blockui.scss +1 -1
  224. package/scss/common/theme/designer/components/misc/_chip.scss +2 -2
  225. package/scss/common/theme/designer/components/misc/_inplace.scss +0 -1
  226. package/scss/common/theme/designer/components/misc/_scrolltop.scss +1 -1
  227. package/scss/common/theme/designer/components/misc/_skeleton.scss +1 -1
  228. package/scss/common/theme/designer/components/misc/_tag.scss +1 -1
  229. package/scss/common/theme/designer/components/misc/_terminal.scss +8 -8
  230. package/scss/common/theme/designer/components/multimedia/_galleria.scss +1 -1
  231. package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +2 -4
  232. package/scss/common/theme/designer/components/overlay/_dialog.scss +3 -3
  233. package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +2 -4
  234. package/scss/common/theme/designer/components/panel/_accordion.scss +2 -2
  235. package/scss/common/theme/designer/components/panel/_divider.scss +1 -1
  236. package/scss/common/theme/designer/components/panel/_scrollpanel.scss +1 -1
  237. package/scss/common/theme/designer/components/panel/_splitter.scss +1 -1
  238. package/scss/common/theme/extensions/_button.scss +18 -6
  239. package/scss/common/theme/extensions/_orderlist.scss +0 -1
  240. package/scss/common/theme/extensions/_picklist.scss +0 -1
  241. package/scss/common/theme/extensions/_tree.scss +0 -1
  242. package/scss/common/variables/layout/_common.scss +9 -9
  243. package/scss/common/variables/layout/_layout_dark.scss +12 -12
  244. package/scss/common/variables/layout/_layout_light.scss +13 -13
  245. package/scss/common/variables/theme/_theme_dark.scss +76 -76
  246. package/scss/common/variables/theme/_theme_light.scss +80 -80
  247. package/scss/layout/default/_mng-variables-layout-dark.scss +1 -1
  248. package/scss/mng-commons-dark.scss +2 -2
  249. package/scss/mng-commons-light.scss +2 -2
  250. package/scss/mng-overrides/_layout_dialog.scss +4 -3
  251. package/scss/mng-overrides/_layout_forms.scss +6 -1
  252. package/scss/mng-overrides/_layout_radio.scss +1 -1
  253. package/scss/mng-overrides/_theme_datepicker.scss +7 -0
  254. package/scss/mng-overrides/_theme_dialog.scss +0 -1
  255. package/scss/mng-overrides/_theme_dropdown.scss +0 -1
  256. package/scss/mng-overrides/_theme_styles.scss +1 -0
  257. package/scss/mng-overrides/_theme_tableview.scss +6 -6
  258. package/scss/theme/default/_mng-variables-theme-dark.scss +2 -1
  259. package/scss/theme/default/_mng-variables-theme-light.scss +2 -1
@@ -2,10 +2,11 @@ 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 '../types';
6
- import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
7
- import { ModelDescriptor, TableDescriptor, TableviewDescriptor, FieldValidator, ILookupDescriptor } from './';
8
5
  import { MediusQueryParam, MediusQueryResult } from '../api/models';
6
+ import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
7
+ import { EnumValue } from '../models';
8
+ import { ClassType, EnumConstantType, EnumType } from '../types';
9
+ import { FieldValidator, ILookupDescriptor, ModelDescriptor, TableDescriptor, TableviewDescriptor } from './';
9
10
  export declare class EditorDescriptor<T> {
10
11
  static readonly defaultGroupName = "_default";
11
12
  private readonly _model;
@@ -14,27 +15,27 @@ export declare class EditorDescriptor<T> {
14
15
  private readonly _fields;
15
16
  private _currentTabGroup?;
16
17
  private _currentGroup?;
17
- private _disabled;
18
18
  constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
19
+ private _disabled;
20
+ get disabled(): boolean;
19
21
  get model(): ModelDescriptor<T>;
20
22
  get tabs(): FieldTabGroupDescriptor<T>[];
21
- get disabled(): boolean;
22
23
  get fields(): AFieldDescriptor<any, T>[];
23
24
  createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
24
- createFieldGroup(name: string, title?: string): FieldGroupDescriptor<T>;
25
+ createFieldGroup(name: string, title?: string | null): FieldGroupDescriptor<T>;
25
26
  addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
26
27
  addField(property: string): FieldInputDescriptor<T>;
27
28
  removeField(property: string): this;
28
29
  getField(property: string): AFieldDescriptor<any, T> | null;
29
30
  addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
30
- addFieldLookupEnum(property: string, options: Array<EnumMemberType>): FieldLookupEnumDescriptor<T>;
31
+ addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
31
32
  addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
32
33
  addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
33
34
  withDisabled(disabled?: boolean): this;
34
35
  addValidator(name: string, expression: (control: AbstractControl) => boolean): void;
35
36
  copy(): EditorDescriptor<T>;
36
- private createTabGroupDescriptor;
37
37
  createFieldGroupDescriptor(fieldGroup: FieldGroupDescriptor<T>): this;
38
+ private createTabGroupDescriptor;
38
39
  private createDefaultGroup;
39
40
  private createDefaultTabGroup;
40
41
  }
@@ -50,30 +51,35 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
50
51
  protected _placeholder?: string;
51
52
  protected _required: boolean;
52
53
  protected _disabled: boolean;
54
+ protected _defaultValue?: T;
53
55
  protected _className: string;
54
56
  protected _getter?: (item: ET) => T;
55
57
  protected _setter?: (item: ET, value: T) => void;
56
58
  protected _validators: Array<FieldValidator>;
59
+ protected _disabledFunction?: (model: any) => boolean;
57
60
  protected constructor(editor: EditorDescriptor<ET>, property: string);
58
- abstract copy(): AFieldDescriptor<T, ET>;
59
- get property(): string;
60
61
  get group(): AFieldGroupDescriptor<ET> | undefined;
61
62
  get label(): string | undefined;
62
63
  get placeholder(): string | undefined;
63
64
  get required(): boolean;
64
65
  get disabled(): boolean;
66
+ get defaultValue(): T | undefined;
65
67
  get className(): string;
66
68
  get getter(): ((item: ET) => T) | undefined;
67
69
  get setter(): ((item: ET, value: T) => void) | undefined;
68
70
  get validators(): FieldValidator[];
71
+ get disabledFunction(): ((model: any) => boolean) | undefined;
72
+ get property(): string;
73
+ abstract copy(): AFieldDescriptor<T, ET>;
69
74
  withLabel(label: string): this;
70
75
  withPlaceholder(placeholder: string): this;
71
76
  withRequired(required?: boolean): this;
72
- withDisabled(disabled?: boolean): this;
77
+ withDisabled(disabled?: boolean, disabledFunction?: (model: any) => boolean): this;
78
+ withDefaultValue(defaultValue: T): this;
73
79
  withClassName(className: string): this;
74
80
  withGetter(getter: (item: ET) => T): this;
75
81
  withSetter(setter: (item: ET, value: T) => void): this;
76
- withValidator(name: string, expression: (control: AbstractControl) => boolean, message: (err: any, field: FormlyFieldConfig) => string): this;
82
+ withValidator(name: string, expression: (control: AbstractControl) => boolean, message?: (err: any, field: FormlyFieldConfig) => string): this;
77
83
  protected copyFieldsTo(obj: AFieldDescriptor<T, ET>): void;
78
84
  }
79
85
  export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string | number | boolean | Date, ET> {
@@ -92,15 +98,18 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
92
98
  private _maxLength?;
93
99
  private _minLength?;
94
100
  private _pattern?;
101
+ private _mask?;
102
+ private _slotChar?;
103
+ private _customComponentName?;
95
104
  constructor(editor: EditorDescriptor<ET>, property: string);
96
105
  get fieldType(): FieldInputDescriptor.TypeEnum;
97
- get numberStep(): number | undefined;
106
+ get rows(): number | undefined;
98
107
  get numberMin(): number | undefined;
99
108
  get numberMax(): number | undefined;
100
- get rows(): number | undefined;
109
+ get numberStep(): number | undefined;
101
110
  get numberMinFractionDigits(): number | undefined;
102
111
  get numberMaxFractionDigits(): number | undefined;
103
- get radioOptions(): string[];
112
+ get radioOptions(): EnumValue<string | number | boolean | Date>[];
104
113
  get datePickerFormat(): string | undefined;
105
114
  get datePickerMin(): Date | undefined;
106
115
  get datePickerMax(): Date | undefined;
@@ -108,12 +117,18 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
108
117
  get maxLength(): number | undefined;
109
118
  get minLength(): number | undefined;
110
119
  get pattern(): string | RegExp | undefined;
111
- asText(minLength?: number, maxLength?: number, pattern?: string | RegExp): this;
112
- asTextarea(rows?: number): this;
120
+ get mask(): string | undefined;
121
+ get slotChar(): string | undefined;
122
+ get customComponentName(): string | undefined;
123
+ asText(minLength?: number, maxLength?: number, pattern?: string | RegExp, isEmail?: boolean): this;
124
+ asTextarea(rows?: number, minLength?: number, maxLength?: number, pattern?: string | RegExp): this;
113
125
  asNumber(step?: number, min?: number, max?: number, minFractionDigits?: number, maxFractionDigits?: number): this;
114
126
  asSwitch(): this;
115
- asRadio(options: Array<string>): this;
127
+ asRadio(options: Array<string | number>, optionsTitlePath?: string): this;
128
+ asRadioFromEnum(enumType: EnumType, optionsTitlePath?: string | null, values?: Array<EnumConstantType>, nameAsValue?: boolean): this;
116
129
  asDatePicker(format?: string, min?: Date, max?: Date, showTime?: boolean): this;
130
+ asMask(mask: string, slotChar: string): this;
131
+ asCustomComponent(customComponentName: string): this;
117
132
  copy(): FieldInputDescriptor<ET>;
118
133
  }
119
134
  export declare namespace FieldInputDescriptor {
@@ -123,7 +138,9 @@ export declare namespace FieldInputDescriptor {
123
138
  Number = 2,
124
139
  Switch = 3,
125
140
  Radio = 4,
126
- Datepicker = 5
141
+ Datepicker = 5,
142
+ Mask = 6,
143
+ Custom = 7
127
144
  }
128
145
  }
129
146
  export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET> implements ILookupDescriptor<T> {
@@ -134,12 +151,12 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
134
151
  protected _dataKeyProperty?: string;
135
152
  protected _dataProvider?: ILookupDataProvider<T, any>;
136
153
  constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T> | null);
137
- get modelType(): ClassType<T> | null;
138
154
  get lookupType(): FieldLookupDescriptor.LookupTypeEnum;
139
155
  get itemsLabelProperty(): string | undefined;
140
156
  get itemsValueProperty(): string | undefined;
141
157
  get dataKeyProperty(): string | undefined;
142
158
  get dataProvider(): ILookupDataProvider<T, any> | undefined;
159
+ get modelType(): ClassType<T> | null;
143
160
  withItemsLabelProperty(itemsLabelProperty: string): this;
144
161
  withItemsValueProperty(itemsValueProperty: string): this;
145
162
  withDataKeyProperty(property: string): this;
@@ -154,10 +171,10 @@ export declare namespace FieldLookupDescriptor {
154
171
  Autocomplete = 1
155
172
  }
156
173
  }
157
- export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumMemberType, ET> {
158
- private readonly _enumName;
159
- constructor(editor: EditorDescriptor<ET>, property: string, enumName: string, options: Array<EnumMemberType>);
160
- get enumName(): string;
174
+ export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumValue<string | number>, ET> {
175
+ private readonly _enumType;
176
+ constructor(editor: EditorDescriptor<ET>, property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
177
+ get enumType(): EnumType;
161
178
  copy(): FieldLookupEnumDescriptor<ET>;
162
179
  }
163
180
  export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
@@ -171,14 +188,14 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
171
188
  private _excludeFilterProperty;
172
189
  private _excludeValueProperty;
173
190
  constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, mainTableDescriptor: TableDescriptor<T>, lookupTableDescriptor: TableDescriptor<T>);
174
- get mainTableDescriptor(): TableDescriptor<T>;
175
- get lookupTableDescriptor(): TableDescriptor<T>;
191
+ get fieldType(): FieldManyToManyEditorDescriptor.TypeEnum;
176
192
  get lookupTableDataProvider(): ITableDataProvider<T, any> | null;
177
193
  get actions(): FieldManyToManyEditorDescriptor.ActionEnum[];
178
- get fieldType(): FieldManyToManyEditorDescriptor.TypeEnum;
179
194
  get hasLookupExcludeValues(): boolean;
180
195
  get excludeFilterProperty(): string;
181
196
  get excludeValueProperty(): string;
197
+ get mainTableDescriptor(): TableDescriptor<T>;
198
+ get lookupTableDescriptor(): TableDescriptor<T>;
182
199
  withLookup<S>(getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>, serviceType?: Type<S>): this;
183
200
  withLookupDataProvider(dataProvider: ITableDataProvider<T, any>): this;
184
201
  withActions(actions?: Array<FieldManyToManyEditorDescriptor.ActionEnum>): this;
@@ -200,13 +217,13 @@ export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T
200
217
  private _fieldType;
201
218
  private _actions;
202
219
  constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, tableviewDescriptor: TableviewDescriptor<T>);
220
+ get fieldType(): FieldManyEditorDescriptor.TypeEnum;
221
+ get actions(): FieldManyEditorDescriptor.ActionEnum[];
203
222
  get tableviewDescriptor(): TableviewDescriptor<T>;
204
223
  get tableDescriptor(): TableDescriptor<T>;
205
224
  get editorForCreate(): EditorDescriptor<T>;
206
225
  get editorForRead(): EditorDescriptor<T>;
207
226
  get editorForUpdate(): EditorDescriptor<T>;
208
- get fieldType(): FieldManyEditorDescriptor.TypeEnum;
209
- get actions(): FieldManyEditorDescriptor.ActionEnum[];
210
227
  withActions(actions?: Array<FieldManyToManyEditorDescriptor.ActionEnum>): this;
211
228
  copy(): FieldManyEditorDescriptor<T, ET>;
212
229
  }
@@ -227,15 +244,15 @@ export declare abstract class AFieldGroupDescriptor<ET> extends AGenericFieldDes
227
244
  protected _fields: AGenericFieldDescriptor<ET>[];
228
245
  protected _validators: Array<FieldValidator>;
229
246
  protected constructor(editor: EditorDescriptor<ET>, name: string);
247
+ get title(): string | undefined;
230
248
  abstract get fields(): AGenericFieldDescriptor<ET>[];
231
- abstract groupName(): string;
232
- abstract addField(field: AGenericFieldDescriptor<ET>): this;
233
- abstract copy(): AFieldGroupDescriptor<ET>;
249
+ get validators(): FieldValidator[];
234
250
  get baseName(): string;
235
251
  get name(): string;
236
252
  get default(): boolean;
237
- get title(): string | undefined;
238
- get validators(): FieldValidator[];
253
+ abstract groupName(): string;
254
+ abstract addField(field: AGenericFieldDescriptor<ET>): this;
255
+ abstract copy(): AFieldGroupDescriptor<ET>;
239
256
  withTitle(title: string): this;
240
257
  withValidator(name: string, expression: (control: AbstractControl) => boolean): this;
241
258
  }
@@ -1,8 +1,8 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
+ import { MediusQueryParam } from '../api/models';
3
4
  import { ILookupDataProvider } from '../data-providers';
4
5
  import { ClassType } from '../types';
5
- import { MediusQueryParam } from '../api/models';
6
6
  export interface ILookupDescriptor<T> {
7
7
  modelType: ClassType<T> | null;
8
8
  itemsLabelProperty?: string;
@@ -1,16 +1,17 @@
1
1
  import { Type } from '@angular/core';
2
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
3
  import { MediusQueryParam } from '../api/models';
4
+ import { ILookupDataProvider } from '../data-providers';
5
+ import { ClassType } from '../types';
6
+ import { ILookupDescriptor } from './lookup.descriptor';
7
+ import { ModelDescriptor } from './model.descriptor';
8
8
  export declare class TableDescriptor<T> {
9
9
  private readonly _model;
10
10
  private _filterDisplay;
11
11
  private _paginationMode;
12
12
  private _columns;
13
13
  private _title?;
14
+ private _hideHeader;
14
15
  private _dataKeyProperty?;
15
16
  private _hasDefaultSort;
16
17
  private _defaultSortProperty;
@@ -18,17 +19,18 @@ export declare class TableDescriptor<T> {
18
19
  private _rowHeight;
19
20
  private _tableFullHeightOffset;
20
21
  constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
21
- get model(): ModelDescriptor<T>;
22
22
  get filterDisplay(): TableDescriptor.FilterDisplayEnum;
23
23
  get paginationMode(): TableDescriptor.PaginationModeEnum;
24
24
  get columns(): ColumnDescriptor<any, T>[];
25
25
  get title(): string | undefined;
26
+ get hideHeader(): boolean;
26
27
  get dataKeyProperty(): string | undefined;
27
28
  get hasDefaultSort(): boolean;
28
29
  get defaultSortProperty(): string[];
29
30
  get defaultSortAsc(): boolean[];
30
31
  get rowHeight(): number;
31
32
  get tableFullHeightOffset(): number;
33
+ get model(): ModelDescriptor<T>;
32
34
  addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
33
35
  addColumn(property: string): ColumnDescriptor<string, T>;
34
36
  addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
@@ -38,12 +40,13 @@ export declare class TableDescriptor<T> {
38
40
  withFilterDisplay(filterDisplayType: TableDescriptor.FilterDisplayEnum): this;
39
41
  withPaginationMode(paginationMode: TableDescriptor.PaginationModeEnum): this;
40
42
  withTitle(title: string): TableDescriptor<T>;
43
+ withHideHeader(hideHeader?: boolean): this;
41
44
  withDataKeyProperty(property: string): TableDescriptor<T>;
42
45
  withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
43
46
  withRowHeight(rowHeight: number): TableDescriptor<T>;
44
47
  withTableFullHeightOffset(tableFullHeightOffset: number): TableDescriptor<T>;
45
- private setDataKeyFromColumn;
46
48
  copy(): TableDescriptor<T>;
49
+ private setDataKeyFromColumn;
47
50
  }
48
51
  export declare namespace TableDescriptor {
49
52
  enum PaginationModeEnum {
@@ -66,15 +69,15 @@ export declare class ColumnDescriptor<T, TT> {
66
69
  private _filterDescriptor?;
67
70
  private _displayFormat?;
68
71
  constructor(table: TableDescriptor<TT>, property: string);
69
- get table(): TableDescriptor<TT>;
70
- get property(): string;
71
72
  get modelType(): ClassType<T> | null;
72
- get displayPropertyPath(): string | undefined;
73
+ get columnType(): ColumnDescriptor.TypeEnum;
73
74
  get title(): string | undefined;
75
+ get displayPropertyPath(): string | undefined;
74
76
  get isSortEnabled(): boolean;
75
- get columnType(): ColumnDescriptor.TypeEnum;
76
77
  get filterDescriptor(): FilterDescriptor<T> | undefined;
77
78
  get displayFormat(): string | undefined;
79
+ get table(): TableDescriptor<TT>;
80
+ get property(): string;
78
81
  asType(type?: ColumnDescriptor.TypeEnum): this;
79
82
  asNumber(displayFormat?: string): this;
80
83
  asDate(displayFormat?: string): this;
@@ -103,12 +106,12 @@ export declare class FilterDescriptor<T> {
103
106
  protected _placeholder?: string;
104
107
  protected _className: string;
105
108
  constructor(property: string);
106
- get property(): string;
107
109
  get filterType(): FilterDescriptor.TypeEnum;
108
110
  get filterProperty(): string | undefined;
109
111
  get matchModes(): string[] | null;
110
112
  get placeholder(): string | undefined;
111
113
  get className(): string;
114
+ get property(): string;
112
115
  asFilterType(filterType: ColumnDescriptor.TypeEnum): this;
113
116
  /**
114
117
  * Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
@@ -118,8 +121,8 @@ export declare class FilterDescriptor<T> {
118
121
  withPlaceholder(placeholder: string): this;
119
122
  withClassName(className: string): this;
120
123
  withMatchModes(matchModes: Array<FilterDescriptor.MatchModeEnum>): this;
121
- protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
122
124
  copy(): FilterDescriptor<T>;
125
+ protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
123
126
  }
124
127
  export declare namespace FilterDescriptor {
125
128
  enum TypeEnum {
@@ -157,24 +160,24 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
157
160
  private _multiselect;
158
161
  protected _dropdownClassName: string;
159
162
  constructor(property: string, modelType: ClassType<T> | null);
160
- get modelType(): ClassType<T> | null;
161
163
  get lookupType(): FilterLookupDescriptor.LookupTypeEnum | undefined;
164
+ get dataProvider(): ILookupDataProvider<T, any> | undefined;
162
165
  get itemsLabelProperty(): string | undefined;
163
166
  get itemsValueProperty(): string | undefined;
164
167
  get dataKeyProperty(): string | undefined;
165
- get dataProvider(): ILookupDataProvider<T, any> | undefined;
166
168
  get multiselect(): boolean;
169
+ get dropdownClassName(): string;
170
+ get modelType(): ClassType<T> | null;
167
171
  withItemsLabelProperty(itemsLabelProperty: string): this;
168
172
  withItemsValueProperty(itemsValueProperty: string): this;
169
173
  withDataKeyProperty(dataKeyProperty: string): this;
170
- get dropdownClassName(): string;
171
174
  withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
172
175
  withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
173
176
  withMultiselect(multiselect?: boolean): this;
174
177
  withDropdownClassName(dropdownClassName: string): this;
175
178
  asAutocomplete(): this;
176
- protected copyFieldsTo(descriptor: FilterLookupDescriptor<T>): void;
177
179
  copy(): FilterLookupDescriptor<T>;
180
+ protected copyFieldsTo(descriptor: FilterLookupDescriptor<T>): void;
178
181
  }
179
182
  export declare namespace FilterLookupDescriptor {
180
183
  enum LookupTypeEnum {
@@ -1,20 +1,20 @@
1
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';
2
+ import { ClassType, EnumConstantType, EnumType } from '../types';
3
+ import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor } from './';
4
4
  export declare class TableviewDescriptor<T> {
5
5
  private readonly _model;
6
- private _table;
7
- private _viewEditor;
8
- private _addEditor;
9
- private _editEditor;
10
- private _tableTitle;
11
6
  constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
12
- get model(): ModelDescriptor<T>;
7
+ private _table;
13
8
  get table(): TableDescriptor<T>;
9
+ private _viewEditor;
14
10
  get viewEditor(): EditorDescriptor<T>;
11
+ private _addEditor;
15
12
  get addEditor(): EditorDescriptor<T>;
13
+ private _editEditor;
16
14
  get editEditor(): EditorDescriptor<T>;
15
+ private _tableTitle;
17
16
  get tableTitle(): string;
17
+ get model(): ModelDescriptor<T>;
18
18
  withTableDescriptor(descriptor: TableDescriptor<T>): this;
19
19
  withViewDescriptor(descriptor: EditorDescriptor<T>): this;
20
20
  withAddDescriptor(descriptor: EditorDescriptor<T>): this;
@@ -32,7 +32,7 @@ export declare class TableviewDescriptor<T> {
32
32
  addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
33
33
  addField(property: string): FieldInputDescriptor<T>;
34
34
  addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
35
- addFieldLookupEnum(property: string, options: Array<EnumMemberType>): FieldLookupEnumDescriptor<T>;
35
+ addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
36
36
  addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
37
37
  addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
38
38
  copy(): TableviewDescriptor<T>;
@@ -6,75 +6,77 @@ import * as i1 from "./directives/component.directive";
6
6
  import * as i2 from "./directives/template.directive";
7
7
  import * as i3 from "./pipes/property-path.pipe";
8
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/tableview/route/tableview-route.component";
31
- import * as i27 from "./components/form/editor/form-editor.component";
32
- import * as i28 from "./components/action/action.component";
33
- import * as i29 from "./components/action/dialog/action-dialog.component";
34
- import * as i30 from "./components/action/route/action-route.component";
35
- import * as i31 from "@angular/common";
36
- import * as i32 from "@angular/router";
37
- import * as i33 from "@angular/common/http";
38
- import * as i34 from "@angular/forms";
39
- import * as i35 from "@ngx-translate/core";
40
- import * as i36 from "@ngx-formly/core";
41
- import * as i37 from "primeng/autocomplete";
42
- import * as i38 from "primeng/breadcrumb";
43
- import * as i39 from "primeng/button";
44
- import * as i40 from "primeng/calendar";
45
- import * as i41 from "primeng/card";
46
- import * as i42 from "primeng/checkbox";
47
- import * as i43 from "primeng/chip";
48
- import * as i44 from "primeng/confirmdialog";
49
- import * as i45 from "primeng/confirmpopup";
50
- import * as i46 from "primeng/dialog";
51
- import * as i47 from "primeng/dynamicdialog";
52
- import * as i48 from "primeng/dropdown";
53
- import * as i49 from "primeng/inputnumber";
54
- import * as i50 from "primeng/inputmask";
55
- import * as i51 from "primeng/inputswitch";
56
- import * as i52 from "primeng/inputtext";
57
- import * as i53 from "primeng/inputtextarea";
58
- import * as i54 from "primeng/paginator";
59
- import * as i55 from "primeng/radiobutton";
60
- import * as i56 from "primeng/ripple";
61
- import * as i57 from "primeng/selectbutton";
62
- import * as i58 from "primeng/table";
63
- import * as i59 from "primeng/tag";
64
- import * as i60 from "primeng/toast";
65
- import * as i61 from "primeng/togglebutton";
66
- import * as i62 from "primeng/toolbar";
67
- import * as i63 from "primeng/tooltip";
68
- import * as i64 from "primeng/messages";
69
- import * as i65 from "primeng/progressspinner";
70
- import * as i66 from "primeng/tabview";
71
- import * as i67 from "primeng/fieldset";
72
- import * as i68 from "primeng/multiselect";
73
- import * as i69 from "primeng/skeleton";
9
+ import * as i5 from "./pipes/i18n-property.pipe";
10
+ import * as i6 from "./components/layout/breadcrumb.component";
11
+ import * as i7 from "./components/layout/footer.component";
12
+ import * as i8 from "./components/layout/main-layout.component";
13
+ import * as i9 from "./components/layout/menu.component";
14
+ import * as i10 from "./components/layout/menu-item.component";
15
+ import * as i11 from "./components/layout/topbar.component";
16
+ import * as i12 from "./components/form/autocomplete/autocomplete.component";
17
+ import * as i13 from "./components/form/dropdown/dropdown.component";
18
+ import * as i14 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
19
+ import * as i15 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
20
+ import * as i16 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
21
+ import * as i17 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
22
+ import * as i18 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
23
+ import * as i19 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
24
+ import * as i20 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
25
+ import * as i21 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
26
+ import * as i22 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
27
+ import * as i23 from "./components/tableview/table/table.component";
28
+ import * as i24 from "./components/tableview/tableview.component";
29
+ import * as i25 from "./components/tableview/table/column-value/column-value.component";
30
+ import * as i26 from "./components/tableview/table/column-filter/column-filter.component";
31
+ import * as i27 from "./components/tableview/route/tableview-route.component";
32
+ import * as i28 from "./components/form/editor/form-editor.component";
33
+ import * as i29 from "./components/action/action.component";
34
+ import * as i30 from "./components/action/dialog/action-dialog.component";
35
+ import * as i31 from "./components/action/route/action-route.component";
36
+ import * as i32 from "@angular/common";
37
+ import * as i33 from "@angular/router";
38
+ import * as i34 from "@angular/common/http";
39
+ import * as i35 from "@angular/forms";
40
+ import * as i36 from "@ngx-translate/core";
41
+ import * as i37 from "@ngx-formly/core";
42
+ import * as i38 from "primeng/autocomplete";
43
+ import * as i39 from "primeng/breadcrumb";
44
+ import * as i40 from "primeng/button";
45
+ import * as i41 from "primeng/calendar";
46
+ import * as i42 from "primeng/card";
47
+ import * as i43 from "primeng/checkbox";
48
+ import * as i44 from "primeng/chip";
49
+ import * as i45 from "primeng/confirmdialog";
50
+ import * as i46 from "primeng/confirmpopup";
51
+ import * as i47 from "primeng/dialog";
52
+ import * as i48 from "primeng/dynamicdialog";
53
+ import * as i49 from "primeng/dropdown";
54
+ import * as i50 from "primeng/fileupload";
55
+ import * as i51 from "primeng/inputnumber";
56
+ import * as i52 from "primeng/inputmask";
57
+ import * as i53 from "primeng/inputswitch";
58
+ import * as i54 from "primeng/inputtext";
59
+ import * as i55 from "primeng/inputtextarea";
60
+ import * as i56 from "primeng/paginator";
61
+ import * as i57 from "primeng/radiobutton";
62
+ import * as i58 from "primeng/ripple";
63
+ import * as i59 from "primeng/selectbutton";
64
+ import * as i60 from "primeng/table";
65
+ import * as i61 from "primeng/tag";
66
+ import * as i62 from "primeng/toast";
67
+ import * as i63 from "primeng/togglebutton";
68
+ import * as i64 from "primeng/toolbar";
69
+ import * as i65 from "primeng/tooltip";
70
+ import * as i66 from "primeng/messages";
71
+ import * as i67 from "primeng/progressspinner";
72
+ import * as i68 from "primeng/tabview";
73
+ import * as i69 from "primeng/fieldset";
74
+ import * as i70 from "primeng/multiselect";
75
+ import * as i71 from "primeng/skeleton";
74
76
  export declare const primeNgModules: (typeof InputTextModule)[];
75
77
  export declare class MngCommonsModule {
76
78
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
77
79
  static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
78
- 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.MngTableviewRouteComponent, typeof i27.MngFormEditorComponent, typeof i28.MngActionComponent, typeof i29.MngActionDialogComponent, typeof i30.MngActionRouteComponent], [typeof i31.CommonModule, typeof i32.RouterModule, typeof i33.HttpClientModule, typeof i34.ReactiveFormsModule, typeof i35.TranslateModule, typeof i36.FormlyModule, typeof i37.AutoCompleteModule, typeof i38.BreadcrumbModule, typeof i39.ButtonModule, typeof i40.CalendarModule, typeof i41.CardModule, typeof i42.CheckboxModule, typeof i43.ChipModule, typeof i44.ConfirmDialogModule, typeof i45.ConfirmPopupModule, typeof i46.DialogModule, typeof i47.DynamicDialogModule, typeof i48.DropdownModule, typeof i49.InputNumberModule, typeof i50.InputMaskModule, typeof i51.InputSwitchModule, typeof i52.InputTextModule, typeof i53.InputTextareaModule, typeof i54.PaginatorModule, typeof i55.RadioButtonModule, typeof i56.RippleModule, typeof i57.SelectButtonModule, typeof i58.TableModule, typeof i59.TagModule, typeof i60.ToastModule, typeof i61.ToggleButtonModule, typeof i62.ToolbarModule, typeof i63.TooltipModule, typeof i64.MessagesModule, typeof i65.ProgressSpinnerModule, typeof i66.TabViewModule, typeof i67.FieldsetModule, typeof i68.MultiSelectModule, typeof i69.SkeletonModule], [typeof i37.AutoCompleteModule, typeof i38.BreadcrumbModule, typeof i39.ButtonModule, typeof i40.CalendarModule, typeof i41.CardModule, typeof i42.CheckboxModule, typeof i43.ChipModule, typeof i44.ConfirmDialogModule, typeof i45.ConfirmPopupModule, typeof i46.DialogModule, typeof i47.DynamicDialogModule, typeof i48.DropdownModule, typeof i49.InputNumberModule, typeof i50.InputMaskModule, typeof i51.InputSwitchModule, typeof i52.InputTextModule, typeof i53.InputTextareaModule, typeof i54.PaginatorModule, typeof i55.RadioButtonModule, typeof i56.RippleModule, typeof i57.SelectButtonModule, typeof i58.TableModule, typeof i59.TagModule, typeof i60.ToastModule, typeof i61.ToggleButtonModule, typeof i62.ToolbarModule, typeof i63.TooltipModule, typeof i64.MessagesModule, typeof i65.ProgressSpinnerModule, typeof i66.TabViewModule, typeof i67.FieldsetModule, typeof i68.MultiSelectModule, typeof i69.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.MngTableviewRouteComponent, typeof i27.MngFormEditorComponent, typeof i28.MngActionComponent, typeof i29.MngActionDialogComponent, typeof i30.MngActionRouteComponent]>;
80
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.MngI18nPropertyPipe, typeof i6.MngBreadcrumbComponent, typeof i7.MngFooterComponent, typeof i8.MngMainLayoutComponent, typeof i9.MngMenuComponent, typeof i10.MngMenuItemComponent, typeof i11.MngTopbarComponent, typeof i12.MngAutocompleteComponent, typeof i13.MngDropdownComponent, typeof i14.MngFormlyFieldWrapperComponent, typeof i15.MngFormlyTableWrapperComponent, typeof i16.MngFormlyFieldInputComponent, typeof i17.MngFormlyFieldDropdownComponent, typeof i18.MngFormlyFieldAutocompleteComponent, typeof i19.MngFormlyFieldTableDialogMultiselectComponent, typeof i20.MngFormlyFieldTableDialogFormComponent, typeof i21.MngFormlyFieldTabsComponent, typeof i22.MngFormlyFieldFieldsetComponent, typeof i23.MngTableComponent, typeof i24.MngTableviewComponent, typeof i25.MngTableColumnValueComponent, typeof i26.MngTableColumnFilterComponent, typeof i27.MngTableviewRouteComponent, typeof i28.MngFormEditorComponent, typeof i29.MngActionComponent, typeof i30.MngActionDialogComponent, typeof i31.MngActionRouteComponent], [typeof i32.CommonModule, typeof i33.RouterModule, typeof i34.HttpClientModule, typeof i35.ReactiveFormsModule, typeof i36.TranslateModule, typeof i37.FormlyModule, typeof i38.AutoCompleteModule, typeof i39.BreadcrumbModule, typeof i40.ButtonModule, typeof i41.CalendarModule, typeof i42.CardModule, typeof i43.CheckboxModule, typeof i44.ChipModule, typeof i45.ConfirmDialogModule, typeof i46.ConfirmPopupModule, typeof i47.DialogModule, typeof i48.DynamicDialogModule, typeof i49.DropdownModule, typeof i50.FileUploadModule, typeof i51.InputNumberModule, typeof i52.InputMaskModule, typeof i53.InputSwitchModule, typeof i54.InputTextModule, typeof i55.InputTextareaModule, typeof i56.PaginatorModule, typeof i57.RadioButtonModule, typeof i58.RippleModule, typeof i59.SelectButtonModule, typeof i60.TableModule, typeof i61.TagModule, typeof i62.ToastModule, typeof i63.ToggleButtonModule, typeof i64.ToolbarModule, typeof i65.TooltipModule, typeof i66.MessagesModule, typeof i67.ProgressSpinnerModule, typeof i68.TabViewModule, typeof i69.FieldsetModule, typeof i70.MultiSelectModule, typeof i71.SkeletonModule], [typeof i38.AutoCompleteModule, typeof i39.BreadcrumbModule, typeof i40.ButtonModule, typeof i41.CalendarModule, typeof i42.CardModule, typeof i43.CheckboxModule, typeof i44.ChipModule, typeof i45.ConfirmDialogModule, typeof i46.ConfirmPopupModule, typeof i47.DialogModule, typeof i48.DynamicDialogModule, typeof i49.DropdownModule, typeof i50.FileUploadModule, typeof i51.InputNumberModule, typeof i52.InputMaskModule, typeof i53.InputSwitchModule, typeof i54.InputTextModule, typeof i55.InputTextareaModule, typeof i56.PaginatorModule, typeof i57.RadioButtonModule, typeof i58.RippleModule, typeof i59.SelectButtonModule, typeof i60.TableModule, typeof i61.TagModule, typeof i62.ToastModule, typeof i63.ToggleButtonModule, typeof i64.ToolbarModule, typeof i65.TooltipModule, typeof i66.MessagesModule, typeof i67.ProgressSpinnerModule, typeof i68.TabViewModule, typeof i69.FieldsetModule, typeof i70.MultiSelectModule, typeof i71.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.MngI18nPropertyPipe, typeof i6.MngBreadcrumbComponent, typeof i7.MngFooterComponent, typeof i8.MngMainLayoutComponent, typeof i9.MngMenuComponent, typeof i10.MngMenuItemComponent, typeof i11.MngTopbarComponent, typeof i12.MngAutocompleteComponent, typeof i13.MngDropdownComponent, typeof i14.MngFormlyFieldWrapperComponent, typeof i15.MngFormlyTableWrapperComponent, typeof i16.MngFormlyFieldInputComponent, typeof i17.MngFormlyFieldDropdownComponent, typeof i18.MngFormlyFieldAutocompleteComponent, typeof i19.MngFormlyFieldTableDialogMultiselectComponent, typeof i20.MngFormlyFieldTableDialogFormComponent, typeof i21.MngFormlyFieldTabsComponent, typeof i22.MngFormlyFieldFieldsetComponent, typeof i23.MngTableComponent, typeof i24.MngTableviewComponent, typeof i25.MngTableColumnValueComponent, typeof i26.MngTableColumnFilterComponent, typeof i27.MngTableviewRouteComponent, typeof i28.MngFormEditorComponent, typeof i29.MngActionComponent, typeof i30.MngActionDialogComponent, typeof i31.MngActionRouteComponent]>;
79
81
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
80
82
  }
@@ -0,0 +1,5 @@
1
+ export interface EnumValue<T> {
2
+ name?: string;
3
+ value: T;
4
+ title: string;
5
+ }
@@ -1 +1,3 @@
1
+ export * from './enum.model';
2
+ export * from './menu.model';
1
3
  export * from './user.model';
@@ -0,0 +1,25 @@
1
+ import { QueryParamsHandling } from '@angular/router';
2
+ export interface MngMenuItem {
3
+ title?: string;
4
+ label?: string;
5
+ icon?: string;
6
+ items?: Array<MngMenuItem>;
7
+ guards?: Array<any>;
8
+ separator?: boolean;
9
+ className?: string;
10
+ badge?: string;
11
+ badgeClassName?: string;
12
+ visible?: boolean;
13
+ disabled?: boolean;
14
+ routerLink?: string | Array<string>;
15
+ href?: string;
16
+ target?: string;
17
+ queryParams?: {
18
+ [k: string]: any;
19
+ };
20
+ fragment?: string;
21
+ queryParamsHandling?: QueryParamsHandling;
22
+ preserveFragment?: boolean;
23
+ skipLocationChange?: boolean;
24
+ replaceUrl?: boolean;
25
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ModelDescriptor } from '../descriptors';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MngI18nPropertyPipe implements PipeTransform {
5
+ transform(property: string, model: ModelDescriptor<any>): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngI18nPropertyPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngI18nPropertyPipe, "i18nProperty">;
8
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './boolean.pipe';
2
+ export * from './i18n-property.pipe';
2
3
  export * from './property-path.pipe';