@mediusinc/mng-commons 3.5.0 → 3.6.0-rc.1

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 (253) hide show
  1. package/assets/fonts/poppins-v20-latin-500.woff +0 -0
  2. package/assets/fonts/poppins-v20-latin-500.woff2 +0 -0
  3. package/assets/fonts/poppins-v20-latin-600.woff +0 -0
  4. package/assets/fonts/poppins-v20-latin-600.woff2 +0 -0
  5. package/assets/fonts/poppins-v20-latin-700.woff +0 -0
  6. package/assets/fonts/poppins-v20-latin-700.woff2 +0 -0
  7. package/assets/fonts/poppins-v20-latin-regular.woff +0 -0
  8. package/assets/fonts/poppins-v20-latin-regular.woff2 +0 -0
  9. package/assets/i18n/en.json +6 -2
  10. package/assets/i18n/sl.json +6 -2
  11. package/esm2022/lib/api/models/filter-match-type.model.mjs +3 -1
  12. package/esm2022/lib/api/utils/medius-rest.util.mjs +70 -40
  13. package/esm2022/lib/components/action/action.component.mjs +5 -5
  14. package/esm2022/lib/components/action/editor/action-editor.component.mjs +8 -7
  15. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +96 -23
  16. package/esm2022/lib/components/form/date-range/date-range.component.mjs +14 -5
  17. package/esm2022/lib/components/form/dropdown/dropdown.component.mjs +3 -3
  18. package/esm2022/lib/components/form/formly/fields/formly-field-action/formly-field-action.component.mjs +2 -2
  19. package/esm2022/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +3 -3
  20. package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +17 -3
  21. package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +16 -4
  22. package/esm2022/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +2 -2
  23. package/esm2022/lib/components/layout/menu-item.component.mjs +3 -3
  24. package/esm2022/lib/components/layout/topbar.component.mjs +2 -2
  25. package/esm2022/lib/components/layoutV2/breadcrumb.component.mjs +30 -0
  26. package/esm2022/lib/components/layoutV2/footer.component.mjs +19 -0
  27. package/esm2022/lib/components/layoutV2/index.mjs +8 -0
  28. package/esm2022/lib/components/layoutV2/main-layout.component.mjs +89 -0
  29. package/esm2022/lib/components/layoutV2/menu-item.component.mjs +229 -0
  30. package/esm2022/lib/components/layoutV2/menu.component.mjs +31 -0
  31. package/esm2022/lib/components/layoutV2/model/index.mjs +3 -0
  32. package/esm2022/lib/components/layoutV2/model/layout-state.model.mjs +2 -0
  33. package/esm2022/lib/components/layoutV2/model/menu.model.mjs +2 -0
  34. package/esm2022/lib/components/layoutV2/services/index.mjs +3 -0
  35. package/esm2022/lib/components/layoutV2/services/main-layout.component.service.mjs +53 -0
  36. package/esm2022/lib/components/layoutV2/services/menu.service.mjs +122 -0
  37. package/esm2022/lib/components/layoutV2/sidebar.component.mjs +54 -0
  38. package/esm2022/lib/components/layoutV2/topbar-user.component.mjs +40 -0
  39. package/esm2022/lib/components/layoutV2/topbar.component.mjs +75 -0
  40. package/esm2022/lib/components/layoutV2/version.component.mjs +63 -0
  41. package/esm2022/lib/components/pages/error/error.page.component.mjs +3 -3
  42. package/esm2022/lib/components/pages/not-found/not-found.page.component.mjs +3 -3
  43. package/esm2022/lib/components/tableview/index.mjs +2 -1
  44. package/esm2022/lib/components/tableview/table/column-filter/column-filter.component.mjs +3 -6
  45. package/esm2022/lib/components/tableview/table/column-filter-full/column-filter-full.component.mjs +471 -0
  46. package/esm2022/lib/components/tableview/table/column-value/column-value.component.mjs +2 -2
  47. package/esm2022/lib/components/tableview/table/table.component.mjs +24 -16
  48. package/esm2022/lib/components/tableview/tableview.component.mjs +6 -5
  49. package/esm2022/lib/descriptors/editor/editor.descriptor.mjs +131 -34
  50. package/esm2022/lib/descriptors/editor/field.descriptor.mjs +25 -13
  51. package/esm2022/lib/descriptors/table/table.descriptor.mjs +10 -1
  52. package/esm2022/lib/descriptors/types/filter.type.mjs +3 -1
  53. package/esm2022/lib/directives/dialog-keydown-handler.directive.mjs +49 -0
  54. package/esm2022/lib/directives/index.mjs +2 -1
  55. package/esm2022/lib/mng-commons.module.mjs +10 -3
  56. package/esm2022/lib/models/common-init-event-enum.model.mjs +11 -0
  57. package/esm2022/lib/models/config.model.mjs +1 -1
  58. package/esm2022/lib/models/index.mjs +3 -1
  59. package/esm2022/lib/models/menu-config.model.mjs +2 -0
  60. package/esm2022/lib/models/menu.model.mjs +1 -1
  61. package/esm2022/lib/router/route-builder.mjs +55 -16
  62. package/esm2022/lib/router/routes-builder.mjs +9 -1
  63. package/esm2022/lib/services/action-executor.service.mjs +3 -4
  64. package/esm2022/lib/services/commons.service.mjs +26 -4
  65. package/esm2022/lib/services/internal/commons-init.service.mjs +28 -3
  66. package/esm2022/lib/utils/coercion.util.mjs +6 -0
  67. package/esm2022/lib/utils/index.mjs +2 -1
  68. package/esm2022/lib/utils/route.util.mjs +25 -1
  69. package/fesm2022/mediusinc-mng-commons.mjs +1897 -308
  70. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  71. package/lib/api/models/filter-match-type.model.d.ts +3 -1
  72. package/lib/components/action/action.component.d.ts +1 -0
  73. package/lib/components/action/editor/action-editor.component.d.ts +2 -1
  74. package/lib/components/form/autocomplete/autocomplete.component.d.ts +26 -4
  75. package/lib/components/form/date-range/date-range.component.d.ts +4 -1
  76. package/lib/components/layoutV2/breadcrumb.component.d.ts +10 -0
  77. package/lib/components/layoutV2/footer.component.d.ts +8 -0
  78. package/lib/components/layoutV2/index.d.ts +7 -0
  79. package/lib/components/layoutV2/main-layout.component.d.ts +23 -0
  80. package/lib/components/layoutV2/menu-item.component.d.ts +38 -0
  81. package/lib/components/layoutV2/menu.component.d.ts +12 -0
  82. package/lib/components/layoutV2/model/index.d.ts +2 -0
  83. package/lib/components/layoutV2/model/layout-state.model.d.ts +11 -0
  84. package/lib/components/layoutV2/model/menu.model.d.ts +4 -0
  85. package/lib/components/layoutV2/services/index.d.ts +2 -0
  86. package/lib/components/layoutV2/services/main-layout.component.service.d.ts +14 -0
  87. package/lib/components/layoutV2/services/menu.service.d.ts +22 -0
  88. package/lib/components/layoutV2/sidebar.component.d.ts +19 -0
  89. package/lib/components/layoutV2/topbar-user.component.d.ts +16 -0
  90. package/lib/components/layoutV2/topbar.component.d.ts +23 -0
  91. package/lib/components/layoutV2/version.component.d.ts +19 -0
  92. package/lib/components/tableview/index.d.ts +1 -0
  93. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +2 -3
  94. package/lib/components/tableview/table/column-filter-full/column-filter-full.component.d.ts +85 -0
  95. package/lib/components/tableview/table/table.component.d.ts +8 -6
  96. package/lib/descriptors/editor/editor.descriptor.d.ts +139 -42
  97. package/lib/descriptors/editor/field.descriptor.d.ts +35 -30
  98. package/lib/descriptors/table/table.descriptor.d.ts +3 -0
  99. package/lib/descriptors/types/filter.type.d.ts +3 -1
  100. package/lib/directives/dialog-keydown-handler.directive.d.ts +12 -0
  101. package/lib/directives/index.d.ts +1 -0
  102. package/lib/mng-commons.module.d.ts +50 -48
  103. package/lib/models/common-init-event-enum.model.d.ts +9 -0
  104. package/lib/models/config.model.d.ts +9 -8
  105. package/lib/models/index.d.ts +2 -0
  106. package/lib/models/menu-config.model.d.ts +15 -0
  107. package/lib/models/menu.model.d.ts +3 -1
  108. package/lib/router/route-builder.d.ts +21 -3
  109. package/lib/router/routes-builder.d.ts +5 -0
  110. package/lib/services/internal/commons-init.service.d.ts +5 -0
  111. package/lib/utils/coercion.util.d.ts +2 -0
  112. package/lib/utils/index.d.ts +1 -0
  113. package/lib/utils/route.util.d.ts +19 -30
  114. package/package.json +2 -2
  115. package/scss/common/layout/_breadcrumb.scss +0 -1
  116. package/scss/mng-commons-dark-v2.scss +9 -0
  117. package/scss/mng-commons-light-v2.scss +9 -0
  118. package/scss/mng-overrides/_theme_autocomplete.scss +10 -12
  119. package/scss/mng-overrides/_theme_fileupload.scss +24 -0
  120. package/scss/mng-overrides/_theme_styles.scss +1 -0
  121. package/scss/v2/layout/_animation.scss +53 -0
  122. package/scss/v2/layout/_breadcrumb.scss +97 -0
  123. package/scss/v2/layout/_config.scss +42 -0
  124. package/scss/v2/layout/_content.scss +3 -0
  125. package/scss/v2/layout/_fonts.scss +32 -0
  126. package/scss/v2/layout/_layout_dark.scss +12 -0
  127. package/scss/v2/layout/_layout_light.scss +12 -0
  128. package/scss/v2/layout/_main.scss +54 -0
  129. package/scss/v2/layout/_profile.scss +10 -0
  130. package/scss/v2/layout/_responsive.scss +131 -0
  131. package/scss/v2/layout/_sidebar_drawer.scss +283 -0
  132. package/scss/v2/layout/_sidebar_horizontal.scss +168 -0
  133. package/scss/v2/layout/_sidebar_reveal.scss +201 -0
  134. package/scss/v2/layout/_sidebar_slim.scss +157 -0
  135. package/scss/v2/layout/_sidebar_slim_plus.scss +167 -0
  136. package/scss/v2/layout/_sidebar_vertical.scss +176 -0
  137. package/scss/v2/layout/_topbar.scss +174 -0
  138. package/scss/v2/layout/_typography.scss +62 -0
  139. package/scss/v2/layout/_utils.scss +33 -0
  140. package/scss/v2/layout/layout.scss +24 -0
  141. package/scss/v2/layout/mng/_mng_layout_footer.scss +33 -0
  142. package/scss/v2/layout/mng/_mng_layout_menu.scss +10 -0
  143. package/scss/v2/layout/mng/_mng_layout_styles.scss +3 -0
  144. package/scss/v2/layout/mng/_mng_layout_topbar.scss +16 -0
  145. package/scss/v2/layout/preloading.scss +84 -0
  146. package/scss/v2/theme/theme-base/_colors.scss +18 -0
  147. package/scss/v2/theme/theme-base/_common.scss +73 -0
  148. package/scss/v2/theme/theme-base/_components.scss +106 -0
  149. package/scss/v2/theme/theme-base/_mixins.scss +203 -0
  150. package/scss/v2/theme/theme-base/components/button/_button.scss +564 -0
  151. package/scss/v2/theme/theme-base/components/button/_speeddial.scss +86 -0
  152. package/scss/v2/theme/theme-base/components/button/_splitbutton.scss +381 -0
  153. package/scss/v2/theme/theme-base/components/data/_carousel.scss +37 -0
  154. package/scss/v2/theme/theme-base/components/data/_datatable.scss +338 -0
  155. package/scss/v2/theme/theme-base/components/data/_dataview.scss +55 -0
  156. package/scss/v2/theme/theme-base/components/data/_filter.scss +138 -0
  157. package/scss/v2/theme/theme-base/components/data/_fullcalendar.scss +329 -0
  158. package/scss/v2/theme/theme-base/components/data/_orderlist.scss +103 -0
  159. package/scss/v2/theme/theme-base/components/data/_organizationchart.scss +50 -0
  160. package/scss/v2/theme/theme-base/components/data/_paginator.scss +92 -0
  161. package/scss/v2/theme/theme-base/components/data/_picklist.scss +103 -0
  162. package/scss/v2/theme/theme-base/components/data/_timeline.scss +38 -0
  163. package/scss/v2/theme/theme-base/components/data/_tree.scss +149 -0
  164. package/scss/v2/theme/theme-base/components/data/_treetable.scss +256 -0
  165. package/scss/v2/theme/theme-base/components/data/_virtualscroller.scss +28 -0
  166. package/scss/v2/theme/theme-base/components/file/_fileupload.scss +58 -0
  167. package/scss/v2/theme/theme-base/components/input/_autocomplete.scss +117 -0
  168. package/scss/v2/theme/theme-base/components/input/_calendar.scss +263 -0
  169. package/scss/v2/theme/theme-base/components/input/_cascadeselect.scss +130 -0
  170. package/scss/v2/theme/theme-base/components/input/_checkbox.scss +90 -0
  171. package/scss/v2/theme/theme-base/components/input/_chips.scss +54 -0
  172. package/scss/v2/theme/theme-base/components/input/_colorpicker.scss +19 -0
  173. package/scss/v2/theme/theme-base/components/input/_dropdown.scss +135 -0
  174. package/scss/v2/theme/theme-base/components/input/_editor.scss +122 -0
  175. package/scss/v2/theme/theme-base/components/input/_inputgroup.scss +75 -0
  176. package/scss/v2/theme/theme-base/components/input/_inputmask.scss +16 -0
  177. package/scss/v2/theme/theme-base/components/input/_inputnumber.scss +28 -0
  178. package/scss/v2/theme/theme-base/components/input/_inputswitch.scss +60 -0
  179. package/scss/v2/theme/theme-base/components/input/_inputtext.scss +99 -0
  180. package/scss/v2/theme/theme-base/components/input/_listbox.scss +82 -0
  181. package/scss/v2/theme/theme-base/components/input/_multiselect.scss +173 -0
  182. package/scss/v2/theme/theme-base/components/input/_password.scss +52 -0
  183. package/scss/v2/theme/theme-base/components/input/_radiobutton.scss +78 -0
  184. package/scss/v2/theme/theme-base/components/input/_rating.scss +55 -0
  185. package/scss/v2/theme/theme-base/components/input/_selectbutton.scss +50 -0
  186. package/scss/v2/theme/theme-base/components/input/_slider.scss +71 -0
  187. package/scss/v2/theme/theme-base/components/input/_togglebutton.scss +48 -0
  188. package/scss/v2/theme/theme-base/components/input/_treeselect.scss +139 -0
  189. package/scss/v2/theme/theme-base/components/menu/_breadcrumb.scss +42 -0
  190. package/scss/v2/theme/theme-base/components/menu/_contextmenu.scss +61 -0
  191. package/scss/v2/theme/theme-base/components/menu/_dock.scss +86 -0
  192. package/scss/v2/theme/theme-base/components/menu/_megamenu.scss +106 -0
  193. package/scss/v2/theme/theme-base/components/menu/_menu.scss +45 -0
  194. package/scss/v2/theme/theme-base/components/menu/_menubar.scss +188 -0
  195. package/scss/v2/theme/theme-base/components/menu/_panelmenu.scss +140 -0
  196. package/scss/v2/theme/theme-base/components/menu/_slidemenu.scss +64 -0
  197. package/scss/v2/theme/theme-base/components/menu/_steps.scss +56 -0
  198. package/scss/v2/theme/theme-base/components/menu/_tabmenu.scss +74 -0
  199. package/scss/v2/theme/theme-base/components/menu/_tieredmenu.scss +65 -0
  200. package/scss/v2/theme/theme-base/components/messages/_inlinemessage.scss +69 -0
  201. package/scss/v2/theme/theme-base/components/messages/_message.scss +107 -0
  202. package/scss/v2/theme/theme-base/components/messages/_toast.scss +100 -0
  203. package/scss/v2/theme/theme-base/components/misc/_avatar.scss +30 -0
  204. package/scss/v2/theme/theme-base/components/misc/_badge.scss +48 -0
  205. package/scss/v2/theme/theme-base/components/misc/_blockui.scss +0 -0
  206. package/scss/v2/theme/theme-base/components/misc/_chip.scss +38 -0
  207. package/scss/v2/theme/theme-base/components/misc/_inplace.scss +17 -0
  208. package/scss/v2/theme/theme-base/components/misc/_progressbar.scss +17 -0
  209. package/scss/v2/theme/theme-base/components/misc/_scrolltop.scss +25 -0
  210. package/scss/v2/theme/theme-base/components/misc/_skeleton.scss +8 -0
  211. package/scss/v2/theme/theme-base/components/misc/_tag.scss +40 -0
  212. package/scss/v2/theme/theme-base/components/misc/_terminal.scss +11 -0
  213. package/scss/v2/theme/theme-base/components/multimedia/_galleria.scss +149 -0
  214. package/scss/v2/theme/theme-base/components/multimedia/_image.scss +49 -0
  215. package/scss/v2/theme/theme-base/components/overlay/_confirmpopup.scss +72 -0
  216. package/scss/v2/theme/theme-base/components/overlay/_dialog.scss +69 -0
  217. package/scss/v2/theme/theme-base/components/overlay/_overlaypanel.scss +64 -0
  218. package/scss/v2/theme/theme-base/components/overlay/_sidebar.scss +27 -0
  219. package/scss/v2/theme/theme-base/components/overlay/_tooltip.scss +33 -0
  220. package/scss/v2/theme/theme-base/components/panel/_accordion.scss +119 -0
  221. package/scss/v2/theme/theme-base/components/panel/_card.scss +30 -0
  222. package/scss/v2/theme/theme-base/components/panel/_divider.scss +31 -0
  223. package/scss/v2/theme/theme-base/components/panel/_fieldset.scss +47 -0
  224. package/scss/v2/theme/theme-base/components/panel/_panel.scss +58 -0
  225. package/scss/v2/theme/theme-base/components/panel/_scrollpanel.scss +6 -0
  226. package/scss/v2/theme/theme-base/components/panel/_splitter.scss +19 -0
  227. package/scss/v2/theme/theme-base/components/panel/_tabview.scss +78 -0
  228. package/scss/v2/theme/theme-base/components/panel/_toolbar.scss +11 -0
  229. package/scss/v2/theme/theme-base/mng/_mng_mixins.scss +69 -0
  230. package/scss/v2/theme/theme-base/mng/_mng_theme_autocomplete.scss +34 -0
  231. package/scss/v2/theme/theme-base/mng/_mng_theme_button.scss +68 -0
  232. package/scss/v2/theme/theme-base/mng/_mng_theme_datatable.scss +146 -0
  233. package/scss/v2/theme/theme-base/mng/_mng_theme_datepicker.scss +21 -0
  234. package/scss/v2/theme/theme-base/mng/_mng_theme_dialog.scss +206 -0
  235. package/scss/v2/theme/theme-base/mng/_mng_theme_dropdown.scss +22 -0
  236. package/scss/v2/theme/theme-base/mng/_mng_theme_fileupload.scss +24 -0
  237. package/scss/v2/theme/theme-base/mng/_mng_theme_forms.scss +66 -0
  238. package/scss/v2/theme/theme-base/mng/_mng_theme_image.scss +27 -0
  239. package/scss/v2/theme/theme-base/mng/_mng_theme_input.scss +31 -0
  240. package/scss/v2/theme/theme-base/mng/_mng_theme_menu.scss +5 -0
  241. package/scss/v2/theme/theme-base/mng/_mng_theme_multiselect.scss +20 -0
  242. package/scss/v2/theme/theme-base/mng/_mng_theme_styles.scss +17 -0
  243. package/scss/v2/theme/theme-base/mng/_mng_theme_tableview.scss +97 -0
  244. package/scss/v2/theme/theme-base/mng/_mng_theme_tabview.scss +11 -0
  245. package/scss/v2/theme/theme-base/mng/_mng_theme_toast.scss +3 -0
  246. package/scss/v2/theme/theme-base/mng/_mng_theme_toolbar.scss +5 -0
  247. package/scss/v2/theme/theme-base/mng/_mng_variables.scss +15 -0
  248. package/scss/v2/theme/theme-dark/_extensions.scss +100 -0
  249. package/scss/v2/theme/theme-dark/_variables.scss +937 -0
  250. package/scss/v2/theme/theme-dark/blue/theme.scss +13 -0
  251. package/scss/v2/theme/theme-light/_extensions.scss +100 -0
  252. package/scss/v2/theme/theme-light/_variables.scss +937 -0
  253. package/scss/v2/theme/theme-light/blue/theme.scss +13 -0
@@ -12,103 +12,200 @@ import { FieldInputTypeEnum, TableviewEditorTypeEnum } from '../types';
12
12
  import { AFieldDescriptor, FieldActionDescriptor, FieldGroupDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor } from './field.descriptor';
13
13
  export declare class EditorDescriptor<T> {
14
14
  static readonly defaultGroupName = "_default";
15
- protected readonly _model: ModelDescriptor<T>;
16
- protected readonly _modelType: ClassType<T>;
17
- protected readonly _tableviewEditorType: TableviewEditorTypeEnum;
18
- protected readonly _tabs: Array<FieldTabGroupDescriptor<T>>;
19
- protected readonly _groups: Array<FieldGroupDescriptor<T>>;
20
- protected _fields: Array<AFieldDescriptor<any, T>>;
21
- protected _currentTabGroup?: FieldTabGroupDescriptor<T>;
22
- protected _currentGroup?: FieldGroupDescriptor<T>;
23
- protected _disabled: boolean;
24
- protected _isLocalized: boolean;
25
- protected _localizationLocaleProperty?: string;
26
- protected _localizationLocalizationProperty?: string;
27
- protected _localizationModelType?: ClassType<any>;
28
- protected _localeLookup?: (queryParam?: MediusQueryParam, service?: any, search?: string) => Observable<Array<string>>;
29
- protected readonly _eventsSubject: Subject<MngFormEvent<T>>;
15
+ /** @ignore */ protected readonly _model: ModelDescriptor<T>;
16
+ /** @ignore */ protected readonly _modelType: ClassType<T>;
17
+ /** @ignore */ protected readonly _tableviewEditorType: TableviewEditorTypeEnum;
18
+ /** @ignore */ protected readonly _tabs: Array<FieldTabGroupDescriptor<T>>;
19
+ /** @ignore */ protected readonly _groups: Array<FieldGroupDescriptor<T>>;
20
+ /** @ignore */ protected _fields: Array<AFieldDescriptor<any, T>>;
21
+ /** @ignore */ protected _currentTabGroup?: FieldTabGroupDescriptor<T>;
22
+ /** @ignore */ protected _currentGroup?: FieldGroupDescriptor<T>;
23
+ /** @ignore */ protected _disabled: boolean;
24
+ /** @ignore */ protected _isLocalized: boolean;
25
+ /** @ignore */ protected _localizationLocaleProperty?: string;
26
+ /** @ignore */ protected _localizationLocalizationProperty?: string;
27
+ /** @ignore */ protected _localizationModelType?: ClassType<any>;
28
+ /** @ignore */ protected _localeLookup?: (queryParam?: MediusQueryParam, service?: any, search?: string) => Observable<Array<string>>;
29
+ /** @ignore */ protected readonly _eventsSubject: Subject<MngFormEvent<T>>;
30
+ /**
31
+ * Creates new instance of editor descriptor.
32
+ * @param modelType Model's class.
33
+ * @param idProperty Id property representing model (optional).
34
+ * @param titleProperty Title property representing model (optional). If not provided, it will be automatically chosen.
35
+ * @param tableviewEditorType Type of editor in tableview (add, edit, view or none).
36
+ * @param i18nBaseKey Base key for translations.
37
+ */
30
38
  constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableviewEditorType?: TableviewEditorTypeEnum, i18nBaseKey?: string | ClassType<unknown>);
31
39
  /**
32
- * auto generated editor descriptor based on openapi definition
33
- * generates all fields from definition
34
- * @param modelType class type
35
- * @param idProperty
36
- * @param titleProperty
37
- * @param tableEditorType
40
+ * Creates editor descriptor automatically based on openapi model's attributes definition which is automatically extracted. All fields will be included.
41
+ * @param modelType Model's class.
42
+ * @param idProperty Id property representing model (optional).
43
+ * @param titleProperty Title property representing model (optional). If not provided, it will be automatically chosen.
44
+ * @param tableEditorType Type of editor in tableview (add, edit, view or none).
38
45
  */
39
46
  static from<T>(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableEditorType?: TableviewEditorTypeEnum): EditorDescriptor<T>;
40
47
  /**
41
- * auto generated editor descriptor based on openapi definition
42
- * generates only selected fields
43
- * @param modelType class type
44
- * @param attributes list of selected properties to generate fields based on
45
- * @param idProperty
46
- * @param titleProperty
47
- * @param tableEditorType
48
+ * Creates editor descriptor automatically based on openapi model's attributes definition provided in parameters. Only fields for provided attributes will be included.
49
+ * @param modelType Model's class.
50
+ * @param attributes List of attribute definitions from which fields should be created.
51
+ * @param idProperty Id property representing model (optional).
52
+ * @param titleProperty Title property representing model (optional). If not provided, it will be automatically chosen.
53
+ * @param tableEditorType Type of editor in tableview (add, edit, view or none).
48
54
  */
49
55
  static fromModelWithAttributes<T>(modelType: ClassType<T>, attributes: TableviewAttributeDef[], idProperty?: string, titleProperty?: string, tableEditorType?: TableviewEditorTypeEnum): EditorDescriptor<T>;
56
+ /**
57
+ * Model descriptor for editor.
58
+ */
50
59
  get model(): ModelDescriptor<T>;
60
+ /**
61
+ * Editor's tabs.
62
+ */
51
63
  get tabs(): FieldTabGroupDescriptor<T>[];
64
+ /**
65
+ * Editor's fields.
66
+ */
52
67
  get fields(): AFieldDescriptor<any, T, any>[];
68
+ /**
69
+ * Type of editor for tableview.
70
+ */
53
71
  get tableviewEditorType(): TableviewEditorTypeEnum;
72
+ /**
73
+ * If editor is disabled.
74
+ */
54
75
  get disabled(): boolean;
55
76
  get isLocalized(): boolean;
56
77
  get localizationLocaleProperty(): string | undefined;
57
78
  get localizationLocalizationProperty(): string | undefined;
58
79
  get localizationBeanType(): ClassType<any> | undefined;
59
80
  get localeLookup(): ((queryParam?: MediusQueryParam | undefined, service?: any, search?: string | undefined) => Observable<string[]>) | undefined;
81
+ /**
82
+ * Creates new tab group. Next added fields are added to newly created tab group.
83
+ * @param name Name of the group.
84
+ * @param title Title key for the tab.
85
+ */
60
86
  createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
87
+ /**
88
+ * Creates new field group. Next added fields are added to newly created field group.
89
+ * @param name Name of the group.
90
+ * @param title Title key for the group.
91
+ */
61
92
  createFieldGroup(name: string, title?: string | null): FieldGroupDescriptor<T>;
93
+ /**
94
+ * Adds field by the descriptor.
95
+ * @param field Field descriptor.
96
+ */
62
97
  addFieldDescriptor<FT, FVT = FT>(field: AFieldDescriptor<FT, T, FVT>): this;
98
+ /**
99
+ * Adds field by the model property name.
100
+ * @param property Model property name.
101
+ */
63
102
  addField(property: string): FieldInputDescriptor<T>;
64
103
  /**
65
- * removes filed if exists in descriptor
66
- * @param property field name
104
+ * Removes field by the model property name.
105
+ * @param property Model property name.
67
106
  */
68
107
  removeField(property: string): void;
108
+ /**
109
+ * Gets field by the model property name.
110
+ * @param property Model property name.
111
+ */
69
112
  getField(property: string): AFieldDescriptor<any, T> | null;
70
113
  addFieldAction(actionName: string): FieldActionDescriptor<T>;
114
+ /**
115
+ * Adds lookup field.
116
+ * @param property Model property name.
117
+ * @param modelType Model's class type (must be registered in ObjectSerializer!).
118
+ */
71
119
  addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
120
+ /**
121
+ * Adds enum lookup field.
122
+ * @param property Model's property name.
123
+ * @param enumType Type of enum (must be registered in ObjectSerializer!).
124
+ * @param options Provides subset of enum's available constants.
125
+ * @param nameAsValue If constant's name should be used as final value of the enum. Primarily, constant's value will be used.
126
+ * @param optionsTitlePath Title key path from where translations are provided. If null, the enum's values won't be translated.
127
+ */
72
128
  addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
129
+ /**
130
+ * Adds table/details/add/edit field for one-to-many (1:n) relations.
131
+ * @param property Model's property name.
132
+ * @param tableviewDescriptor Tableview descriptor for related model.
133
+ */
73
134
  addFieldManyEditor<FT>(property: string, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
135
+ /**
136
+ * Adds tables for many-to-many (m:n) relations.
137
+ * @param property Model's property name.
138
+ * @param mainTableDescriptor Main table descriptor for displaying items added to main model's property.
139
+ * @param lookupTableDescriptor Lookup table descriptor for displaying items to be added to main model's property.
140
+ */
74
141
  addFieldManyToManyEditor<FT>(property: string, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
142
+ /**
143
+ * Disables field on editor.
144
+ * @param disabled
145
+ */
75
146
  withDisabled(disabled?: boolean): this;
147
+ /**
148
+ * Adds group validator to editor.
149
+ * @param name Name of the validation.
150
+ * @param validator Field validator function.
151
+ * @param message Field validation message.
152
+ */
76
153
  addValidation(name: string, validator?: MngFieldValidator, message?: MngFieldValidationMessage): void;
154
+ /**
155
+ * Creates a copy of editor descriptor object.
156
+ */
77
157
  copy(): EditorDescriptor<T>;
158
+ /**
159
+ * Created group from field group descriptor.
160
+ * @param fieldGroup Field group descriptor.
161
+ * @internal
162
+ */
78
163
  createFieldGroupDescriptor(fieldGroup: FieldGroupDescriptor<T>): this;
164
+ /**
165
+ * Creates tab group from tab group descriptor.
166
+ * @param tabGroup Tab group descriptor.
167
+ * @internal
168
+ */
79
169
  protected createTabGroupDescriptor(tabGroup: FieldTabGroupDescriptor<T>): this;
170
+ /**
171
+ * Creates default field group.
172
+ * @internal
173
+ */
80
174
  private createDefaultGroup;
175
+ /**
176
+ * Creates default tab group.
177
+ * @internal
178
+ */
81
179
  private createDefaultTabGroup;
82
180
  /**
83
- * modifies selected field
84
- * do not use it for enums! (use withFieldModifiedEnum instead)
85
- * @param property field name
181
+ * Modifies selected field by field property. For enums use {withFieldModifiedEnum} instead.
182
+ * @param property Model's property name.
86
183
  * @param fieldType new field type for selected field
87
184
  * @param args additional parameters for field
88
185
  */
89
186
  withFieldModifiedType(property: string, fieldType: FieldInputTypeEnum, ...args: any[]): this;
90
187
  /**
91
- * modifies selected field with enum type
92
- * @param property field property name
188
+ * Modifies selected field with enum type.
189
+ * @param property Model's property name.
93
190
  * @param enumType type of enum for new field
94
191
  * @param optionsTitlePath
95
192
  * @param values
96
- * @param nameAsValue
97
193
  */
98
194
  withFieldModifiedEnum(property: string, enumType?: EnumType, optionsTitlePath?: string | null, values?: Array<EnumConstantType>, nameAsValue?: boolean): this;
99
195
  /**
100
- * adds lookup to given field
101
- * @param property field property name
196
+ * Modifies selected field with lookup field.
197
+ * @param property Model's property name.
102
198
  * @param modelType model type of field
103
199
  * @param lookupProvider provider to be added to field
104
200
  * @param titleProperty
105
201
  */
106
202
  withFieldModifiedLookup<MT>(property: string, modelType: ClassType<MT>, lookupProvider: ILookupDataProvider<any, any>, titleProperty?: string): this;
107
203
  /**
108
- * generates field based on attribute definition, used for auto model
109
- * @param attribute definition
110
- * @param field optional, if defined will be replaced, otherwise new will be generated
111
- * @param args additional arguments
204
+ * Generates field based on attribute definition, used for auto model
205
+ * @param attribute Attribute definition.
206
+ * @param field Optional, if defined will be replaced, otherwise new will be generated.
207
+ * @param args Optional additional arguments mapped to filed type. Arguments depend on possible arguments on fields.
208
+ * @internal
112
209
  */
113
210
  private upsertFieldFromAttributeDef;
114
211
  /**
@@ -24,38 +24,43 @@ export declare abstract class AGenericFieldDescriptor<ET> {
24
24
  get editor(): EditorDescriptor<ET>;
25
25
  get config(): FieldConfig;
26
26
  withConfig(config: FieldConfig): this;
27
+ /**
28
+ * Override toJSON implementation to prevent overflow with circular dependency.
29
+ * @ignore
30
+ */
31
+ protected toJSON(): string;
27
32
  }
28
33
  export declare abstract class AFieldDescriptor<T, ET, VT = T> extends AGenericFieldDescriptor<ET> {
29
- protected readonly _property: string;
30
- protected _label?: string | null;
31
- protected _placeholder?: string;
32
- protected _helpText?: string;
33
- protected _required: boolean;
34
- protected _requiredHideLabelMarker: boolean;
35
- protected _disabled: boolean;
36
- protected _defaultValue?: VT;
37
- protected _getter?: (item: ET) => VT;
38
- protected _setter?: (item: ET, value: VT) => void;
39
- protected _validations: Array<FieldValidationDescriptor>;
40
- protected _asyncValidations: Array<FieldValidationDescriptor>;
41
- protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
42
- protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
43
- protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
44
- protected _updateOn: 'change' | 'blur' | 'submit';
45
- protected _onInit?: MngFormlyHookFn;
46
- protected _onChanges?: MngFormlyHookFn;
47
- protected _afterContentInit?: MngFormlyHookFn;
48
- protected _afterViewInit?: MngFormlyHookFn;
49
- protected _onDestroy?: MngFormlyHookFn;
50
- protected _onValueChange?: (field: MngFormlyFieldConfig, value: any) => void;
51
- protected _className: string;
52
- protected _fieldClassName?: string;
53
- protected _labelClassName: string;
54
- protected _inputClassName: string;
55
- protected _size: FieldSizeEnum;
56
- protected _isLocalized: boolean;
57
- protected _localizationTableview?: TableviewDescriptor<any>;
58
- protected readonly _eventsSubject: Subject<MngFormFieldEvent<T, ET>>;
34
+ /** @ignore */ protected readonly _property: string;
35
+ /** @ignore */ protected _label?: string | null;
36
+ /** @ignore */ protected _placeholder?: string;
37
+ /** @ignore */ protected _helpText?: string;
38
+ /** @ignore */ protected _required: boolean;
39
+ /** @ignore */ protected _requiredHideLabelMarker: boolean;
40
+ /** @ignore */ protected _disabled: boolean;
41
+ /** @ignore */ protected _defaultValue?: VT;
42
+ /** @ignore */ protected _getter?: (item: ET) => VT;
43
+ /** @ignore */ protected _setter?: (item: ET, value: VT) => void;
44
+ /** @ignore */ protected _validations: Array<FieldValidationDescriptor>;
45
+ /** @ignore */ protected _asyncValidations: Array<FieldValidationDescriptor>;
46
+ /** @ignore */ protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
47
+ /** @ignore */ protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
48
+ /** @ignore */ protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
49
+ /** @ignore */ protected _updateOn: 'change' | 'blur' | 'submit';
50
+ /** @ignore */ protected _onInit?: MngFormlyHookFn;
51
+ /** @ignore */ protected _onChanges?: MngFormlyHookFn;
52
+ /** @ignore */ protected _afterContentInit?: MngFormlyHookFn;
53
+ /** @ignore */ protected _afterViewInit?: MngFormlyHookFn;
54
+ /** @ignore */ protected _onDestroy?: MngFormlyHookFn;
55
+ /** @ignore */ protected _onValueChange?: (field: MngFormlyFieldConfig, value: any) => void;
56
+ /** @ignore */ protected _className: string;
57
+ /** @ignore */ protected _fieldClassName?: string;
58
+ /** @ignore */ protected _labelClassName: string;
59
+ /** @ignore */ protected _inputClassName: string;
60
+ /** @ignore */ protected _size: FieldSizeEnum;
61
+ /** @ignore */ protected _isLocalized: boolean;
62
+ /** @ignore */ protected _localizationTableview?: TableviewDescriptor<any>;
63
+ /** @ignore */ protected readonly _eventsSubject: Subject<MngFormFieldEvent<T, ET>>;
59
64
  protected constructor(editor: EditorDescriptor<ET>, property: string);
60
65
  get property(): string;
61
66
  get label(): string | null | undefined;
@@ -39,6 +39,7 @@ export declare class TableDescriptor<T> {
39
39
  private _autoGenerated;
40
40
  private _isLocalized;
41
41
  private _localizationLocaleProperty?;
42
+ private _deprecatedFilters;
42
43
  constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, i18nBaseKey?: string | ClassType<unknown>);
43
44
  /**
44
45
  * generates descriptor based on modelType attribute definition
@@ -85,6 +86,7 @@ export declare class TableDescriptor<T> {
85
86
  get headerClassName(): string | undefined;
86
87
  get isLocalized(): boolean;
87
88
  get localizationLocaleProperty(): string | undefined;
89
+ get deprecatedFilters(): boolean;
88
90
  /**
89
91
  * dataKey is used for the purpose of combined saving user preferences in localstorage if 2 tables have the same dataKey they will share the same localstorage entry.
90
92
  * Similarly, this property can also be used to differentiate two tables of the same model on the same url (so that they have separate entries in localstorage).
@@ -171,6 +173,7 @@ export declare class TableDescriptor<T> {
171
173
  * @param filterProperty
172
174
  */
173
175
  withColumnModifiedLookup(property: string, lookupProvider: ILookupDataProvider<any, any>, itemsLabelProperty?: string, filterProperty?: string): this;
176
+ withDeprecatedFilters(deprecatedFilters?: boolean): this;
174
177
  }
175
178
  export declare class TableDynamicDescriptor extends TableDescriptor<any> {
176
179
  private _excludedColumns;
@@ -19,7 +19,9 @@ export declare enum FilterMatchModeEnum {
19
19
  DateIs = "dateIs",
20
20
  DateIsNot = "dateIsNot",
21
21
  DateBefore = "dateBefore",
22
- DateAfter = "dateAfter"
22
+ DateAfter = "dateAfter",
23
+ Exists = "is",
24
+ DoesNotExist = "isNot"
23
25
  }
24
26
  export declare enum FilterLookupTypeEnum {
25
27
  Dropdown = 0,
@@ -0,0 +1,12 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngDialogKeydownHandlerDirective implements OnInit, OnDestroy {
4
+ private readonly dialogService;
5
+ private readonly dynamicDialog;
6
+ private readonly dialog;
7
+ private readonly dialogsWithKeydownListener;
8
+ ngOnInit(): void;
9
+ ngOnDestroy(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngDialogKeydownHandlerDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngDialogKeydownHandlerDirective, "[mngDialogKeydownHandler]", never, {}, {}, never, never, true, never>;
12
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './component.directive';
2
+ export * from './dialog-keydown-handler.directive';
2
3
  export * from './template.directive';
@@ -47,57 +47,59 @@ import * as i42 from "primeng/slidemenu";
47
47
  import * as i43 from "primeng/image";
48
48
  import * as i44 from "./components/action/route/action-route.component";
49
49
  import * as i45 from "./directives/component.directive";
50
- import * as i46 from "./directives/template.directive";
51
- import * as i47 from "./pipes/json-path.pipe";
52
- import * as i48 from "./pipes/enum.pipe";
53
- import * as i49 from "./pipes/boolean.pipe";
54
- import * as i50 from "./pipes/i18n-property.pipe";
55
- import * as i51 from "./pipes/parametrize.pipe";
56
- import * as i52 from "./pipes/getter.pipe";
57
- import * as i53 from "./pipes/template.pipe";
58
- import * as i54 from "./pipes/class-map.pipe";
59
- import * as i55 from "./pipes/enumerate.pipe";
60
- import * as i56 from "./pipes/enumerate-async.pipe";
61
- import * as i57 from "./pipes/locale-default-row-class.pipe";
62
- import * as i58 from "./components/layout/breadcrumb.component";
63
- import * as i59 from "./components/layout/footer.component";
64
- import * as i60 from "./components/layout/main-layout.component";
65
- import * as i61 from "./components/layout/menu.component";
66
- import * as i62 from "./components/layout/menu-item.component";
67
- import * as i63 from "./components/layout/topbar.component";
68
- import * as i64 from "./components/layout/topbar-user.component";
69
- import * as i65 from "./components/layout/version.component";
70
- import * as i66 from "./components/form/autocomplete/autocomplete.component";
71
- import * as i67 from "./components/form/dropdown/dropdown.component";
72
- import * as i68 from "./components/form/date-range/date-range.component";
73
- import * as i69 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
74
- import * as i70 from "./components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component";
75
- import * as i71 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
76
- import * as i72 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
77
- import * as i73 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
78
- import * as i74 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
79
- import * as i75 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
80
- import * as i76 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
81
- import * as i77 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
82
- import * as i78 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
83
- import * as i79 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
84
- import * as i80 from "./components/form/formly/fields/formly-field-action/formly-field-action.component";
85
- import * as i81 from "./components/form/formly/fields/formly-field-custom/formly-field-custom.component";
86
- import * as i82 from "./components/tableview/table/table.component";
87
- import * as i83 from "./components/tableview/tableview.component";
88
- import * as i84 from "./components/tableview/table/column-value/column-value.component";
89
- import * as i85 from "./components/tableview/table/column-filter/column-filter.component";
90
- import * as i86 from "./components/tableview/route/tableview-route.component";
91
- import * as i87 from "./components/form/editor/form-editor.component";
92
- import * as i88 from "./components/action/action.component";
93
- import * as i89 from "./components/action/editor/action-editor.component";
94
- import * as i90 from "./components/action/localization/data-language-dropdown.component";
95
- import * as i91 from "./components/pages/error/error.page.component";
96
- import * as i92 from "./components/pages/not-found/not-found.page.component";
50
+ import * as i46 from "./directives/dialog-keydown-handler.directive";
51
+ import * as i47 from "./directives/template.directive";
52
+ import * as i48 from "./pipes/json-path.pipe";
53
+ import * as i49 from "./pipes/enum.pipe";
54
+ import * as i50 from "./pipes/boolean.pipe";
55
+ import * as i51 from "./pipes/i18n-property.pipe";
56
+ import * as i52 from "./pipes/parametrize.pipe";
57
+ import * as i53 from "./pipes/getter.pipe";
58
+ import * as i54 from "./pipes/template.pipe";
59
+ import * as i55 from "./pipes/class-map.pipe";
60
+ import * as i56 from "./pipes/enumerate.pipe";
61
+ import * as i57 from "./pipes/enumerate-async.pipe";
62
+ import * as i58 from "./pipes/locale-default-row-class.pipe";
63
+ import * as i59 from "./components/layout/breadcrumb.component";
64
+ import * as i60 from "./components/layout/footer.component";
65
+ import * as i61 from "./components/layout/main-layout.component";
66
+ import * as i62 from "./components/layout/menu.component";
67
+ import * as i63 from "./components/layout/menu-item.component";
68
+ import * as i64 from "./components/layout/topbar.component";
69
+ import * as i65 from "./components/layout/topbar-user.component";
70
+ import * as i66 from "./components/layout/version.component";
71
+ import * as i67 from "./components/form/autocomplete/autocomplete.component";
72
+ import * as i68 from "./components/form/dropdown/dropdown.component";
73
+ import * as i69 from "./components/form/date-range/date-range.component";
74
+ import * as i70 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
75
+ import * as i71 from "./components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component";
76
+ import * as i72 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
77
+ import * as i73 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
78
+ import * as i74 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
79
+ import * as i75 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
80
+ import * as i76 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
81
+ import * as i77 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
82
+ import * as i78 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
83
+ import * as i79 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
84
+ import * as i80 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
85
+ import * as i81 from "./components/form/formly/fields/formly-field-action/formly-field-action.component";
86
+ import * as i82 from "./components/form/formly/fields/formly-field-custom/formly-field-custom.component";
87
+ import * as i83 from "./components/tableview/table/table.component";
88
+ import * as i84 from "./components/tableview/tableview.component";
89
+ import * as i85 from "./components/tableview/table/column-value/column-value.component";
90
+ import * as i86 from "./components/tableview/table/column-filter/column-filter.component";
91
+ import * as i87 from "./components/tableview/table/column-filter-full/column-filter-full.component";
92
+ import * as i88 from "./components/tableview/route/tableview-route.component";
93
+ import * as i89 from "./components/form/editor/form-editor.component";
94
+ import * as i90 from "./components/action/action.component";
95
+ import * as i91 from "./components/action/editor/action-editor.component";
96
+ import * as i92 from "./components/action/localization/data-language-dropdown.component";
97
+ import * as i93 from "./components/pages/error/error.page.component";
98
+ import * as i94 from "./components/pages/not-found/not-found.page.component";
97
99
  export declare const primeNgModules: (typeof InputTextModule)[];
98
100
  export declare class MngCommonsModule {
99
101
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
100
102
  static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
101
- static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngFormlyFieldCustomComponent, typeof i82.MngTableComponent, typeof i83.MngTableviewComponent, typeof i84.MngTableColumnValueComponent, typeof i85.MngTableColumnFilterComponent, typeof i86.MngTableviewRouteComponent, typeof i87.MngFormEditorComponent, typeof i88.MngActionComponent, typeof i89.MngActionEditorComponent, typeof i90.MngDataLanguageDropdownComponent, typeof i91.MngErrorPageComponent, typeof i92.MngNotFoundPageComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngFormlyFieldCustomComponent, typeof i82.MngTableComponent, typeof i83.MngTableviewComponent, typeof i84.MngTableColumnValueComponent, typeof i85.MngTableColumnFilterComponent, typeof i86.MngTableviewRouteComponent, typeof i87.MngFormEditorComponent, typeof i88.MngActionComponent, typeof i89.MngActionEditorComponent, typeof i90.MngDataLanguageDropdownComponent, typeof i91.MngErrorPageComponent, typeof i92.MngNotFoundPageComponent]>;
103
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngDialogKeydownHandlerDirective, typeof i47.MngTemplateDirective, typeof i48.JsonPathPipe, typeof i49.MngEnumPipe, typeof i50.MngBooleanPipe, typeof i51.MngI18nPropertyPipe, typeof i52.MngParametrizePipe, typeof i53.MngGetterPipe, typeof i54.MngTemplatePipe, typeof i55.MngClassMapPipe, typeof i56.MngEnumeratePipe, typeof i57.MngEnumerateAsyncPipe, typeof i58.MngLocaleDefaultRowClassPipe, typeof i59.MngBreadcrumbComponent, typeof i60.MngFooterComponent, typeof i61.MngMainLayoutComponent, typeof i62.MngMenuComponent, typeof i63.MngMenuItemComponent, typeof i64.MngTopbarComponent, typeof i65.MngTopbarUserComponent, typeof i66.MngVersionComponent, typeof i67.MngAutocompleteComponent, typeof i68.MngDropdownComponent, typeof i69.MngDateRangeComponent, typeof i70.MngFormlyFieldWrapperComponent, typeof i71.MngFormlyFieldNoLabelWrapperComponent, typeof i72.MngFormlyFieldInputComponent, typeof i73.MngFormlyFieldLabelComponent, typeof i74.MngFormlyFieldDropdownComponent, typeof i75.MngFormlyFieldAutocompleteComponent, typeof i76.MngFormlyFieldLookupDialogComponent, typeof i77.MngFormlyFieldTableDialogMultiselectComponent, typeof i78.MngFormlyFieldTableDialogFormComponent, typeof i79.MngFormlyFieldTabsComponent, typeof i80.MngFormlyFieldFieldsetComponent, typeof i81.MngFormlyFieldActionComponent, typeof i82.MngFormlyFieldCustomComponent, typeof i83.MngTableComponent, typeof i84.MngTableviewComponent, typeof i85.MngTableColumnValueComponent, typeof i86.MngTableColumnFilterComponent, typeof i87.MngTableColumnFilterFullComponent, typeof i88.MngTableviewRouteComponent, typeof i89.MngFormEditorComponent, typeof i90.MngActionComponent, typeof i91.MngActionEditorComponent, typeof i92.MngDataLanguageDropdownComponent, typeof i93.MngErrorPageComponent, typeof i94.MngNotFoundPageComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngDialogKeydownHandlerDirective, typeof i47.MngTemplateDirective, typeof i48.JsonPathPipe, typeof i49.MngEnumPipe, typeof i50.MngBooleanPipe, typeof i51.MngI18nPropertyPipe, typeof i52.MngParametrizePipe, typeof i53.MngGetterPipe, typeof i54.MngTemplatePipe, typeof i55.MngClassMapPipe, typeof i56.MngEnumeratePipe, typeof i57.MngEnumerateAsyncPipe, typeof i58.MngLocaleDefaultRowClassPipe, typeof i59.MngBreadcrumbComponent, typeof i60.MngFooterComponent, typeof i61.MngMainLayoutComponent, typeof i62.MngMenuComponent, typeof i63.MngMenuItemComponent, typeof i64.MngTopbarComponent, typeof i65.MngTopbarUserComponent, typeof i66.MngVersionComponent, typeof i67.MngAutocompleteComponent, typeof i68.MngDropdownComponent, typeof i69.MngDateRangeComponent, typeof i70.MngFormlyFieldWrapperComponent, typeof i71.MngFormlyFieldNoLabelWrapperComponent, typeof i72.MngFormlyFieldInputComponent, typeof i73.MngFormlyFieldLabelComponent, typeof i74.MngFormlyFieldDropdownComponent, typeof i75.MngFormlyFieldAutocompleteComponent, typeof i76.MngFormlyFieldLookupDialogComponent, typeof i77.MngFormlyFieldTableDialogMultiselectComponent, typeof i78.MngFormlyFieldTableDialogFormComponent, typeof i79.MngFormlyFieldTabsComponent, typeof i80.MngFormlyFieldFieldsetComponent, typeof i81.MngFormlyFieldActionComponent, typeof i82.MngFormlyFieldCustomComponent, typeof i83.MngTableComponent, typeof i84.MngTableviewComponent, typeof i85.MngTableColumnValueComponent, typeof i86.MngTableColumnFilterComponent, typeof i87.MngTableColumnFilterFullComponent, typeof i88.MngTableviewRouteComponent, typeof i89.MngFormEditorComponent, typeof i90.MngActionComponent, typeof i91.MngActionEditorComponent, typeof i92.MngDataLanguageDropdownComponent, typeof i93.MngErrorPageComponent, typeof i94.MngNotFoundPageComponent]>;
102
104
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
103
105
  }
@@ -0,0 +1,9 @@
1
+ export declare enum MngCommonsInitEventEnum {
2
+ CommonsInitStart = 0,
3
+ ConfigSourceModuleLoaded = 1,
4
+ ConfigSourceProjectEnvLoaded = 2,
5
+ ConfigSourceJsonAdded = 3,
6
+ ConfigSourceJsonLoaded = 4,
7
+ CommonsInitEnd = 5,
8
+ CommonsInitError = 6
9
+ }
@@ -1,10 +1,11 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { ValidatorOption, WrapperOption } from '@ngx-formly/core/lib/models/config';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
- import { MenuItem } from 'primeng/api';
5
4
  import { MngFormlyTypeConfig } from '../components/form/formly/models';
6
5
  import { MngLogConfig } from './log.model';
6
+ import { MngMenuConfig, MngMenuConfigV2 } from './menu-config.model';
7
7
  import { VersionConfigType } from './version.model';
8
+ export type ColorScheme = 'light' | 'dark';
8
9
  export interface MngModuleConfig {
9
10
  app?: {
10
11
  name?: string;
@@ -17,15 +18,15 @@ export interface MngModuleConfig {
17
18
  logoNamePathDark?: string;
18
19
  languages?: string[];
19
20
  dataLanguages?: string[];
20
- colorScheme?: 'light' | 'dark';
21
+ colorScheme: ColorScheme;
21
22
  version?: VersionConfigType;
23
+ theme?: string;
22
24
  };
23
- menu?: {
24
- mode?: 'static' | 'sidebar' | 'slim' | 'overlay';
25
- menuItems?: MenuItem[];
26
- pinEnabled?: boolean;
27
- sidebarSlim?: boolean;
28
- };
25
+ /**
26
+ * @deprecated use menuV2 instead
27
+ */
28
+ menu?: MngMenuConfig;
29
+ menuV2?: MngMenuConfigV2;
29
30
  configuration?: {
30
31
  projectEnvironment?: any;
31
32
  jsonSource?: string | Array<string>;
@@ -10,3 +10,5 @@ export * from './view-container.model';
10
10
  export * from './tableview-attr.model';
11
11
  export * from './can-component-deactivate.model';
12
12
  export * from './action-editor.model';
13
+ export * from './common-init-event-enum.model';
14
+ export * from './menu-config.model';
@@ -0,0 +1,15 @@
1
+ import { MenuItem } from 'primeng/api';
2
+ export type MngMenuMode = 'static' | 'overlay' | 'reveal' | 'drawer';
3
+ /**
4
+ * @deprecated use MngMenuConfigV2 instead
5
+ */
6
+ export interface MngMenuConfig {
7
+ mode: 'static' | 'sidebar' | 'slim' | 'overlay';
8
+ menuItems?: MenuItem[];
9
+ pinEnabled?: boolean;
10
+ sidebarSlim?: boolean;
11
+ }
12
+ export interface MngMenuConfigV2 {
13
+ mode: MngMenuMode;
14
+ ripple?: boolean;
15
+ }
@@ -1,6 +1,8 @@
1
1
  import { QueryParamsHandling } from '@angular/router';
2
2
  import { APermissions } from '../security/model';
3
3
  export interface MngMenuItem {
4
+ index?: number;
5
+ key?: string;
4
6
  id?: string;
5
7
  positionIndex?: number;
6
8
  label?: string;
@@ -14,7 +16,7 @@ export interface MngMenuItem {
14
16
  badgeClassName?: string;
15
17
  visible?: boolean;
16
18
  disabled?: boolean;
17
- routerLink?: string | Array<string>;
19
+ routerLink?: string | Array<string> | null;
18
20
  href?: string;
19
21
  target?: string;
20
22
  queryParams?: {