@mediusinc/mng-commons 0.6.1 → 0.8.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 (285) hide show
  1. package/assets/i18n/en.json +3 -3
  2. package/assets/i18n/sl.json +3 -3
  3. package/esm2020/lib/api/models/builders/query-param.builder.mjs +59 -53
  4. package/esm2020/lib/api/models/filter-match-type.model.mjs +24 -24
  5. package/esm2020/lib/api/models/filter-param.model.mjs +32 -32
  6. package/esm2020/lib/api/models/index.mjs +8 -8
  7. package/esm2020/lib/api/models/mappers.mjs +12 -12
  8. package/esm2020/lib/api/models/query-mode.model.mjs +17 -17
  9. package/esm2020/lib/api/models/query-param.model.mjs +67 -67
  10. package/esm2020/lib/api/models/query-result.model.mjs +17 -17
  11. package/esm2020/lib/api/models/serialization.model.mjs +1 -1
  12. package/esm2020/lib/api/services/api.abstract.service.mjs +55 -55
  13. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +66 -66
  14. package/esm2020/lib/api/services/get-all-api.abstract.service.mjs +22 -22
  15. package/esm2020/lib/api/services/index.mjs +3 -3
  16. package/esm2020/lib/api/utils/index.mjs +2 -2
  17. package/esm2020/lib/api/utils/medius-rest.util.mjs +152 -126
  18. package/esm2020/lib/api/utils/object-serializer.util.mjs +243 -243
  19. package/esm2020/lib/components/action/action.component.mjs +174 -161
  20. package/esm2020/lib/components/action/editor/action-editor.component.mjs +230 -236
  21. package/esm2020/lib/components/action/index.mjs +3 -3
  22. package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +1 -1
  23. package/esm2020/lib/components/action/models/action-execution.model.mjs +231 -59
  24. package/esm2020/lib/components/action/models/index.mjs +2 -2
  25. package/esm2020/lib/components/action/route/action-route.component.mjs +125 -127
  26. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +268 -268
  27. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +160 -160
  28. package/esm2020/lib/components/form/editor/form-editor.component.mjs +189 -189
  29. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +18 -18
  30. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +43 -43
  31. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +24 -24
  32. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +79 -56
  33. package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +16 -16
  34. package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +179 -179
  35. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +156 -165
  36. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +126 -126
  37. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +16 -16
  38. package/esm2020/lib/components/form/formly/fields/index.mjs +9 -9
  39. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +14 -14
  40. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +14 -14
  41. package/esm2020/lib/components/form/formly/wrappers/index.mjs +2 -2
  42. package/esm2020/lib/components/form/index.mjs +3 -3
  43. package/esm2020/lib/components/form/models/form-editor.event.mjs +34 -34
  44. package/esm2020/lib/components/form/models/index.mjs +1 -1
  45. package/esm2020/lib/components/layout/breadcrumb.component.mjs +16 -16
  46. package/esm2020/lib/components/layout/footer.component.mjs +16 -16
  47. package/esm2020/lib/components/layout/index.mjs +6 -6
  48. package/esm2020/lib/components/layout/main-layout.component.mjs +51 -51
  49. package/esm2020/lib/components/layout/menu-item.component.mjs +216 -216
  50. package/esm2020/lib/components/layout/menu.component.mjs +19 -19
  51. package/esm2020/lib/components/layout/services/index.mjs +1 -1
  52. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +192 -192
  53. package/esm2020/lib/components/layout/topbar.component.mjs +57 -57
  54. package/esm2020/lib/components/tableview/index.mjs +6 -6
  55. package/esm2020/lib/components/tableview/models/index.mjs +1 -1
  56. package/esm2020/lib/components/tableview/models/table.event.mjs +15 -15
  57. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +35 -35
  58. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +53 -53
  59. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +102 -85
  60. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +41 -41
  61. package/esm2020/lib/components/tableview/table/table.component.mjs +430 -339
  62. package/esm2020/lib/components/tableview/tableview.component.mjs +89 -97
  63. package/esm2020/lib/config/formly.config.mjs +172 -163
  64. package/esm2020/lib/config/index.mjs +1 -1
  65. package/esm2020/lib/config/models/index.mjs +1 -1
  66. package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
  67. package/esm2020/lib/data-providers/base.data-provider.mjs +16 -16
  68. package/esm2020/lib/data-providers/editor.data-provider.mjs +36 -36
  69. package/esm2020/lib/data-providers/index.mjs +5 -5
  70. package/esm2020/lib/data-providers/lookup.data-provider.mjs +15 -15
  71. package/esm2020/lib/data-providers/table.data-provider.mjs +16 -16
  72. package/esm2020/lib/data-providers/tableview.data-provider.mjs +16 -16
  73. package/esm2020/lib/descriptors/action.descriptor.mjs +623 -600
  74. package/esm2020/lib/descriptors/column.descriptor.mjs +228 -197
  75. package/esm2020/lib/descriptors/editor.descriptor.mjs +154 -154
  76. package/esm2020/lib/descriptors/field-validation.descriptor.mjs +20 -20
  77. package/esm2020/lib/descriptors/field.descriptor.interface.mjs +1 -1
  78. package/esm2020/lib/descriptors/field.descriptor.mjs +823 -793
  79. package/esm2020/lib/descriptors/filter.descriptor.mjs +295 -237
  80. package/esm2020/lib/descriptors/index.mjs +11 -11
  81. package/esm2020/lib/descriptors/lookup.descriptor.mjs +1 -1
  82. package/esm2020/lib/descriptors/model.descriptor.mjs +33 -33
  83. package/esm2020/lib/descriptors/table.descriptor.mjs +214 -171
  84. package/esm2020/lib/descriptors/tableview.descriptor.mjs +134 -134
  85. package/esm2020/lib/directives/component.directive.mjs +43 -43
  86. package/esm2020/lib/directives/index.mjs +2 -2
  87. package/esm2020/lib/directives/template.directive.mjs +27 -27
  88. package/esm2020/lib/mng-commons.module.mjs +426 -426
  89. package/esm2020/lib/models/column-value.model.mjs +1 -1
  90. package/esm2020/lib/models/enum.model.mjs +1 -1
  91. package/esm2020/lib/models/error.model.mjs +1 -1
  92. package/esm2020/lib/models/index.mjs +6 -6
  93. package/esm2020/lib/models/menu.model.mjs +1 -1
  94. package/esm2020/lib/models/user.model.mjs +1 -1
  95. package/esm2020/lib/models/view-container.model.mjs +1 -1
  96. package/esm2020/lib/pipes/boolean.pipe.mjs +26 -26
  97. package/esm2020/lib/pipes/enum.pipe.mjs +24 -24
  98. package/esm2020/lib/pipes/i18n-property.pipe.mjs +17 -17
  99. package/esm2020/lib/pipes/index.mjs +5 -5
  100. package/esm2020/lib/pipes/json-path.pipe.mjs +79 -79
  101. package/esm2020/lib/pipes/link-formatter.pipe.mjs +38 -38
  102. package/esm2020/lib/router/index.mjs +1 -1
  103. package/esm2020/lib/router/models/index.mjs +1 -1
  104. package/esm2020/lib/router/models/router.model.mjs +1 -1
  105. package/esm2020/lib/router/route-builder.mjs +431 -431
  106. package/esm2020/lib/services/action-executor.service.mjs +535 -361
  107. package/esm2020/lib/services/commons.service.mjs +344 -344
  108. package/esm2020/lib/services/configuration.service.mjs +110 -110
  109. package/esm2020/lib/services/error-mapper.service.mjs +13 -13
  110. package/esm2020/lib/services/index.mjs +6 -6
  111. package/esm2020/lib/services/internal/commons-init.provider.mjs +3 -3
  112. package/esm2020/lib/services/internal/commons-init.service.mjs +43 -43
  113. package/esm2020/lib/services/internal/index.mjs +2 -2
  114. package/esm2020/lib/services/navigation.service.mjs +47 -47
  115. package/esm2020/lib/services/providers/config-service.provider.mjs +29 -29
  116. package/esm2020/lib/services/providers/formly-config.provider.mjs +30 -30
  117. package/esm2020/lib/services/providers/index.mjs +2 -2
  118. package/esm2020/lib/services/tokens/browser-storage.token.mjs +5 -5
  119. package/esm2020/lib/services/tokens/commons-init.token.mjs +2 -2
  120. package/esm2020/lib/services/tokens/default-setting.token.mjs +2 -2
  121. package/esm2020/lib/services/tokens/index.mjs +4 -4
  122. package/esm2020/lib/services/tokens/module-config.token.mjs +2 -2
  123. package/esm2020/lib/services/view-container.component.service.mjs +34 -34
  124. package/esm2020/lib/types/index.mjs +2 -2
  125. package/esm2020/lib/types/type.decorator.mjs +12 -12
  126. package/esm2020/lib/types/type.model.mjs +2 -2
  127. package/esm2020/lib/utils/action-data-provider.util.mjs +116 -116
  128. package/esm2020/lib/utils/editor-formly.util.mjs +205 -202
  129. package/esm2020/lib/utils/enum.util.mjs +82 -82
  130. package/esm2020/lib/utils/i18n.util.mjs +232 -232
  131. package/esm2020/lib/utils/index.mjs +7 -7
  132. package/esm2020/lib/utils/model.util.mjs +59 -59
  133. package/esm2020/lib/utils/notification.util.mjs +45 -45
  134. package/esm2020/lib/utils/route.util.mjs +23 -23
  135. package/esm2020/lib/utils/styles.util.mjs +41 -0
  136. package/esm2020/lib/utils/type.util.mjs +76 -76
  137. package/esm2020/mediusinc-mng-commons.mjs +4 -4
  138. package/esm2020/public-api.mjs +39 -39
  139. package/fesm2015/mediusinc-mng-commons.mjs +9702 -8977
  140. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  141. package/fesm2020/mediusinc-mng-commons.mjs +9574 -8848
  142. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  143. package/lib/api/models/builders/query-param.builder.d.ts +13 -12
  144. package/lib/api/models/filter-match-type.model.d.ts +23 -23
  145. package/lib/api/models/filter-param.model.d.ts +23 -23
  146. package/lib/api/models/index.d.ts +8 -8
  147. package/lib/api/models/mappers.d.ts +6 -6
  148. package/lib/api/models/query-mode.model.d.ts +16 -16
  149. package/lib/api/models/query-param.model.d.ts +31 -31
  150. package/lib/api/models/query-result.model.d.ts +23 -23
  151. package/lib/api/models/serialization.model.d.ts +8 -8
  152. package/lib/api/services/api.abstract.service.d.ts +24 -24
  153. package/lib/api/services/crud-api.abstract.service.d.ts +22 -22
  154. package/lib/api/services/get-all-api.abstract.service.d.ts +11 -11
  155. package/lib/api/services/index.d.ts +3 -3
  156. package/lib/api/utils/index.d.ts +2 -2
  157. package/lib/api/utils/medius-rest.util.d.ts +14 -12
  158. package/lib/api/utils/object-serializer.util.d.ts +33 -33
  159. package/lib/components/action/action.component.d.ts +66 -65
  160. package/lib/components/action/editor/action-editor.component.d.ts +62 -59
  161. package/lib/components/action/index.d.ts +3 -3
  162. package/lib/components/action/models/action-confirmation-service.model.d.ts +6 -6
  163. package/lib/components/action/models/action-execution.model.d.ts +126 -57
  164. package/lib/components/action/models/index.d.ts +2 -2
  165. package/lib/components/action/route/action-route.component.d.ts +31 -31
  166. package/lib/components/form/autocomplete/autocomplete.component.d.ts +53 -53
  167. package/lib/components/form/dropdown/dropdown.component.d.ts +44 -44
  168. package/lib/components/form/editor/form-editor.component.d.ts +45 -45
  169. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +12 -12
  170. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +14 -14
  171. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +12 -12
  172. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +19 -14
  173. package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts +6 -6
  174. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +44 -44
  175. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +22 -25
  176. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +37 -37
  177. package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +6 -6
  178. package/lib/components/form/formly/fields/index.d.ts +9 -9
  179. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +6 -6
  180. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +6 -6
  181. package/lib/components/form/formly/wrappers/index.d.ts +2 -2
  182. package/lib/components/form/index.d.ts +3 -3
  183. package/lib/components/form/models/form-editor.event.d.ts +37 -37
  184. package/lib/components/form/models/index.d.ts +1 -1
  185. package/lib/components/layout/breadcrumb.component.d.ts +8 -8
  186. package/lib/components/layout/footer.component.d.ts +9 -9
  187. package/lib/components/layout/index.d.ts +6 -6
  188. package/lib/components/layout/main-layout.component.d.ts +20 -20
  189. package/lib/components/layout/menu-item.component.d.ts +37 -37
  190. package/lib/components/layout/menu.component.d.ts +10 -10
  191. package/lib/components/layout/services/index.d.ts +1 -1
  192. package/lib/components/layout/services/main-layout.component.service.d.ts +65 -65
  193. package/lib/components/layout/topbar.component.d.ts +24 -24
  194. package/lib/components/tableview/index.d.ts +6 -6
  195. package/lib/components/tableview/models/index.d.ts +1 -1
  196. package/lib/components/tableview/models/table.event.d.ts +17 -17
  197. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +19 -19
  198. package/lib/components/tableview/route/tableview-route.component.d.ts +18 -18
  199. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +31 -29
  200. package/lib/components/tableview/table/column-value/column-value.component.d.ts +17 -17
  201. package/lib/components/tableview/table/table.component.d.ts +104 -93
  202. package/lib/components/tableview/tableview.component.d.ts +37 -39
  203. package/lib/config/formly.config.d.ts +15 -15
  204. package/lib/config/index.d.ts +1 -1
  205. package/lib/config/models/index.d.ts +1 -1
  206. package/lib/config/models/mng-config.model.d.ts +34 -34
  207. package/lib/data-providers/base.data-provider.d.ts +14 -14
  208. package/lib/data-providers/editor.data-provider.d.ts +25 -25
  209. package/lib/data-providers/index.d.ts +5 -5
  210. package/lib/data-providers/lookup.data-provider.d.ts +14 -14
  211. package/lib/data-providers/table.data-provider.d.ts +14 -14
  212. package/lib/data-providers/tableview.data-provider.d.ts +15 -15
  213. package/lib/descriptors/action.descriptor.d.ts +277 -270
  214. package/lib/descriptors/column.descriptor.d.ts +76 -66
  215. package/lib/descriptors/editor.descriptor.d.ts +44 -44
  216. package/lib/descriptors/field-validation.descriptor.d.ts +18 -18
  217. package/lib/descriptors/field.descriptor.d.ts +326 -314
  218. package/lib/descriptors/field.descriptor.interface.d.ts +9 -9
  219. package/lib/descriptors/filter.descriptor.d.ts +127 -108
  220. package/lib/descriptors/index.d.ts +11 -11
  221. package/lib/descriptors/lookup.descriptor.d.ts +17 -17
  222. package/lib/descriptors/model.descriptor.d.ts +15 -15
  223. package/lib/descriptors/table.descriptor.d.ts +80 -63
  224. package/lib/descriptors/tableview.descriptor.d.ts +42 -42
  225. package/lib/directives/component.directive.d.ts +16 -16
  226. package/lib/directives/index.d.ts +2 -2
  227. package/lib/directives/template.directive.d.ts +13 -13
  228. package/lib/mng-commons.module.d.ts +86 -86
  229. package/lib/models/column-value.model.d.ts +4 -4
  230. package/lib/models/enum.model.d.ts +6 -6
  231. package/lib/models/error.model.d.ts +14 -14
  232. package/lib/models/index.d.ts +6 -6
  233. package/lib/models/menu.model.d.ts +25 -25
  234. package/lib/models/user.model.d.ts +8 -8
  235. package/lib/models/view-container.model.d.ts +6 -6
  236. package/lib/pipes/boolean.pipe.d.ts +7 -7
  237. package/lib/pipes/enum.pipe.d.ts +8 -8
  238. package/lib/pipes/i18n-property.pipe.d.ts +8 -8
  239. package/lib/pipes/index.d.ts +5 -5
  240. package/lib/pipes/json-path.pipe.d.ts +13 -13
  241. package/lib/pipes/link-formatter.pipe.d.ts +11 -11
  242. package/lib/router/index.d.ts +1 -1
  243. package/lib/router/models/index.d.ts +1 -1
  244. package/lib/router/models/router.model.d.ts +22 -22
  245. package/lib/router/route-builder.d.ts +86 -86
  246. package/lib/services/action-executor.service.d.ts +149 -104
  247. package/lib/services/commons.service.d.ts +72 -72
  248. package/lib/services/configuration.service.d.ts +36 -36
  249. package/lib/services/error-mapper.service.d.ts +7 -7
  250. package/lib/services/index.d.ts +6 -6
  251. package/lib/services/internal/commons-init.provider.d.ts +3 -3
  252. package/lib/services/internal/commons-init.service.d.ts +16 -16
  253. package/lib/services/internal/index.d.ts +2 -2
  254. package/lib/services/navigation.service.d.ts +14 -14
  255. package/lib/services/providers/config-service.provider.d.ts +6 -6
  256. package/lib/services/providers/formly-config.provider.d.ts +4 -4
  257. package/lib/services/providers/index.d.ts +2 -2
  258. package/lib/services/tokens/browser-storage.token.d.ts +2 -2
  259. package/lib/services/tokens/commons-init.token.d.ts +3 -3
  260. package/lib/services/tokens/default-setting.token.d.ts +2 -2
  261. package/lib/services/tokens/index.d.ts +4 -4
  262. package/lib/services/tokens/module-config.token.d.ts +3 -3
  263. package/lib/services/view-container.component.service.d.ts +22 -22
  264. package/lib/types/index.d.ts +2 -2
  265. package/lib/types/type.decorator.d.ts +4 -4
  266. package/lib/types/type.model.d.ts +20 -17
  267. package/lib/utils/action-data-provider.util.d.ts +16 -17
  268. package/lib/utils/editor-formly.util.d.ts +10 -10
  269. package/lib/utils/enum.util.d.ts +50 -50
  270. package/lib/utils/i18n.util.d.ts +56 -56
  271. package/lib/utils/index.d.ts +7 -7
  272. package/lib/utils/model.util.d.ts +8 -8
  273. package/lib/utils/notification.util.d.ts +11 -11
  274. package/lib/utils/route.util.d.ts +4 -4
  275. package/lib/utils/styles.util.d.ts +14 -0
  276. package/lib/utils/type.util.d.ts +36 -36
  277. package/mediusinc-mng-commons-0.8.0-rc.1.tgz +0 -0
  278. package/mediusinc-mng-commons.d.ts +5 -5
  279. package/package.json +1 -1
  280. package/public-api.d.ts +28 -28
  281. package/scss/common/theme/designer/_components.scss +1 -1
  282. package/scss/mng-overrides/_theme_datatable.scss +57 -0
  283. package/scss/mng-overrides/_theme_forms.scss +16 -0
  284. package/scss/mng-overrides/_theme_styles.scss +1 -0
  285. package/scss/mng-overrides/_theme_tableview.scss +0 -43
@@ -1,2 +1,2 @@
1
- export * from './form-editor.event';
1
+ export * from './form-editor.event';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvZm9ybS9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZm9ybS1lZGl0b3IuZXZlbnQnO1xuIl19
@@ -1,17 +1,17 @@
1
- import { ChangeDetectionStrategy, Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "../../services";
4
- import * as i2 from "primeng/breadcrumb";
5
- import * as i3 from "@angular/common";
6
- export class MngBreadcrumbComponent {
7
- constructor(mngCommons) {
8
- this.mngCommons = mngCommons;
9
- }
10
- }
11
- MngBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngBreadcrumbComponent, deps: [{ token: i1.MngCommonsService }], target: i0.ɵɵFactoryTarget.Component });
12
- MngBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: MngBreadcrumbComponent, selector: "mng-breadcrumb", ngImport: i0, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ | async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n", components: [{ type: i2.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngBreadcrumbComponent, decorators: [{
14
- type: Component,
15
- args: [{ selector: 'mng-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ | async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n" }]
16
- }], ctorParameters: function () { return [{ type: i1.MngCommonsService }]; } });
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../services";
4
+ import * as i2 from "primeng/breadcrumb";
5
+ import * as i3 from "@angular/common";
6
+ export class MngBreadcrumbComponent {
7
+ constructor(mngCommons) {
8
+ this.mngCommons = mngCommons;
9
+ }
10
+ }
11
+ MngBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngBreadcrumbComponent, deps: [{ token: i1.MngCommonsService }], target: i0.ɵɵFactoryTarget.Component });
12
+ MngBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: MngBreadcrumbComponent, selector: "mng-breadcrumb", ngImport: i0, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ | async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n", components: [{ type: i2.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngBreadcrumbComponent, decorators: [{
14
+ type: Component,
15
+ args: [{ selector: 'mng-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ | async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n" }]
16
+ }], ctorParameters: function () { return [{ type: i1.MngCommonsService }]; } });
17
17
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvbGF5b3V0L2JyZWFkY3J1bWIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2xheW91dC9icmVhZGNydW1iLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7O0FBU2pFLE1BQU0sT0FBTyxzQkFBc0I7SUFDL0IsWUFBbUIsVUFBNkI7UUFBN0IsZUFBVSxHQUFWLFVBQVUsQ0FBbUI7SUFBRyxDQUFDOzttSEFEM0Msc0JBQXNCO3VHQUF0QixzQkFBc0Isc0RDVG5DLDZSQUtBOzJGRElhLHNCQUFzQjtrQkFMbEMsU0FBUzsrQkFDSSxnQkFBZ0IsbUJBRVQsdUJBQXVCLENBQUMsTUFBTSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7TW5nQ29tbW9uc1NlcnZpY2V9IGZyb20gJy4uLy4uL3NlcnZpY2VzJztcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdtbmctYnJlYWRjcnVtYicsXG4gICAgdGVtcGxhdGVVcmw6ICcuL2JyZWFkY3J1bWIuY29tcG9uZW50Lmh0bWwnLFxuICAgIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIE1uZ0JyZWFkY3J1bWJDb21wb25lbnQge1xuICAgIGNvbnN0cnVjdG9yKHB1YmxpYyBtbmdDb21tb25zOiBNbmdDb21tb25zU2VydmljZSkge31cbn1cbiIsIjxkaXYgY2xhc3M9XCJsYXlvdXQtYnJlYWRjcnVtYi1jb250YWluZXJcIj5cbiAgICA8ZGl2IGNsYXNzPVwibGF5b3V0LWJyZWFkY3J1bWJcIj5cbiAgICAgICAgPHAtYnJlYWRjcnVtYiBbaG9tZV09XCIkYW55KG1uZ0NvbW1vbnMuYnJlYWRjcnVtYkhvbWUkIHwgYXN5bmMpXCIgW21vZGVsXT1cIiRhbnkobW5nQ29tbW9ucy5icmVhZGNydW1icyQgfCBhc3luYylcIiBzdHlsZUNsYXNzPVwibGF5b3V0LWJyZWFkY3J1bWIgcHktMlwiPjwvcC1icmVhZGNydW1iPlxuICAgIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -1,17 +1,17 @@
1
- import { ChangeDetectionStrategy, Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "../../services";
4
- import * as i2 from "@ngx-translate/core";
5
- export class MngFooterComponent {
6
- constructor(mngCommons) {
7
- this.mngCommons = mngCommons;
8
- this.currentYear = new Date().getFullYear();
9
- }
10
- }
11
- MngFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngFooterComponent, deps: [{ token: i1.MngCommonsService }], target: i0.ɵɵFactoryTarget.Component });
12
- MngFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: MngFooterComponent, selector: "mng-footer", ngImport: i0, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">&#169; {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n", pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngFooterComponent, decorators: [{
14
- type: Component,
15
- args: [{ selector: 'mng-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">&#169; {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n" }]
16
- }], ctorParameters: function () { return [{ type: i1.MngCommonsService }]; } });
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../services";
4
+ import * as i2 from "@ngx-translate/core";
5
+ export class MngFooterComponent {
6
+ constructor(mngCommons) {
7
+ this.mngCommons = mngCommons;
8
+ this.currentYear = new Date().getFullYear();
9
+ }
10
+ }
11
+ MngFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngFooterComponent, deps: [{ token: i1.MngCommonsService }], target: i0.ɵɵFactoryTarget.Component });
12
+ MngFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: MngFooterComponent, selector: "mng-footer", ngImport: i0, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">&#169; {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n", pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngFooterComponent, decorators: [{
14
+ type: Component,
15
+ args: [{ selector: 'mng-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">&#169; {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n" }]
16
+ }], ctorParameters: function () { return [{ type: i1.MngCommonsService }]; } });
17
17
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vdGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9sYXlvdXQvZm9vdGVyLmNvbXBvbmVudC50cyIsIi4uLy4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UpIHt9XG59XG4iLCI8ZGl2IGNsYXNzPVwibGF5b3V0LWZvb3RlclwiPlxuICAgIDxkaXYgY2xhc3M9XCJmb290ZXItbG9nby1jb250YWluZXJcIj5cbiAgICAgICAgPGltZyBpZD1cImZvb3Rlci1sb2dvXCIgW3NyY109XCJtbmdDb21tb25zLmNvbG9yU2NoZW1lSXNMaWdodCA/IG1uZ0NvbW1vbnMuYXBwTG9nb0RhcmsgOiBtbmdDb21tb25zLmFwcExvZ29MaWdodFwiIGFsdD1cImF0bGFudGlzLWxheW91dFwiIC8+XG4gICAgICAgIDxzcGFuIGNsYXNzPVwiYXBwLW5hbWVcIj57eyBtbmdDb21tb25zLmFwcE5hbWUgfCB0cmFuc2xhdGUgfX08L3NwYW4+XG4gICAgPC9kaXY+XG4gICAgPHNwYW4gY2xhc3M9XCJjb3B5cmlnaHRcIj4mIzE2OTsge3sgbW5nQ29tbW9ucy5hcHBPd25lciB8IHRyYW5zbGF0ZSB9fSAtIHt7IGN1cnJlbnRZZWFyIH19PC9zcGFuPlxuPC9kaXY+XG4iXX0=
@@ -1,7 +1,7 @@
1
- export * from './breadcrumb.component';
2
- export * from './footer.component';
3
- export * from './main-layout.component';
4
- export * from './menu.component';
5
- export * from './menu-item.component';
6
- export * from './topbar.component';
1
+ export * from './breadcrumb.component';
2
+ export * from './footer.component';
3
+ export * from './main-layout.component';
4
+ export * from './menu.component';
5
+ export * from './menu-item.component';
6
+ export * from './topbar.component';
7
7
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvbGF5b3V0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9icmVhZGNydW1iLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2Zvb3Rlci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9tYWluLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9tZW51LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL21lbnUtaXRlbS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi90b3BiYXIuY29tcG9uZW50JztcbiJdfQ==
@@ -1,52 +1,52 @@
1
- import { ChangeDetectionStrategy, Component, HostListener, ViewChildren } from '@angular/core';
2
- import { MngTemplateDirective } from '../../directives';
3
- import { MngFooterComponent } from './footer.component';
4
- import { MngMenuComponent } from './menu.component';
5
- import { MngMainLayoutComponentService } from './services';
6
- import { MngTopbarComponent } from './topbar.component';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/router";
9
- import * as i2 from "../../services";
10
- import * as i3 from "./services";
11
- import * as i4 from "@angular/common";
12
- import * as i5 from "../../directives/component.directive";
13
- export class MngMainLayoutComponent {
14
- constructor(route, mngCommons, mainLayoutService) {
15
- this.route = route;
16
- this.mngCommons = mngCommons;
17
- this.mainLayoutService = mainLayoutService;
18
- this.topbarComponent = MngTopbarComponent;
19
- this.menuComponent = MngMenuComponent;
20
- this.footerComponent = MngFooterComponent;
21
- }
22
- ngOnInit() {
23
- const routeData = this.route.snapshot.data;
24
- if (routeData?.topbarComponent) {
25
- this.topbarComponent = routeData.topbarComponent;
26
- }
27
- if (routeData?.menuComponent) {
28
- this.menuComponent = routeData.menuComponent;
29
- }
30
- if (routeData?.footerComponent) {
31
- this.footerComponent = routeData.footerComponent;
32
- }
33
- this.mainLayoutService.innerWidth = window.innerWidth;
34
- }
35
- onWindowResize(event) {
36
- const target = event.target;
37
- this.mainLayoutService.innerWidth = target?.innerWidth ?? window.innerWidth;
38
- }
39
- }
40
- MngMainLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngMainLayoutComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.MngCommonsService }, { token: i3.MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component });
41
- MngMainLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: MngMainLayoutComponent, selector: "mng-main-layout", host: { listeners: { "window:resize": "onWindowResize($event)" } }, providers: [MngMainLayoutComponentService], viewQueries: [{ propertyName: "templates", predicate: MngTemplateDirective, descendants: true }], ngImport: i0, template: "<div\n class=\"layout-wrapper\"\n (click)=\"mainLayoutService.onLayoutClick()\"\n [ngClass]=\"{\n 'layout-static': mngCommons.menuModeIsStatic$ | async,\n 'layout-overlay': mngCommons.menuModeIsOverlay$ | async,\n 'layout-slim': mngCommons.menuModeIsSlim$ | async,\n 'layout-sidebar': mngCommons.menuModeIsSidebar$ | async,\n 'layout-sidebar-static': (mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async),\n 'layout-overlay-active': mainLayoutService.overlayMenuActive$ | async,\n 'layout-mobile-active': mainLayoutService.staticMenuMobileActive$ | async,\n 'layout-static-inactive': (mainLayoutService.staticMenuDesktopInactive$ | async) && (mngCommons.menuModeIsStatic$ | async)\n }\">\n <div class=\"layout-main\">\n <ng-container [mngComponent]=\"topbarComponent\"></ng-container>\n\n <ng-container\n *ngIf=\"\n (mainLayoutService.isMobile$ | async) === false &&\n ((mngCommons.menuModeIsStatic$ | async) || (mngCommons.menuModeIsSlim$ | async) || (mngCommons.menuModeIsSidebar$ | async))\n \"\n [mngComponent]=\"menuComponent\">\n </ng-container>\n\n <div class=\"layout-main-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n </div>\n</div>\n", directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs"], outputs: ["instanceCreated"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngMainLayoutComponent, decorators: [{
43
- type: Component,
44
- args: [{ selector: 'mng-main-layout', providers: [MngMainLayoutComponentService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"layout-wrapper\"\n (click)=\"mainLayoutService.onLayoutClick()\"\n [ngClass]=\"{\n 'layout-static': mngCommons.menuModeIsStatic$ | async,\n 'layout-overlay': mngCommons.menuModeIsOverlay$ | async,\n 'layout-slim': mngCommons.menuModeIsSlim$ | async,\n 'layout-sidebar': mngCommons.menuModeIsSidebar$ | async,\n 'layout-sidebar-static': (mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async),\n 'layout-overlay-active': mainLayoutService.overlayMenuActive$ | async,\n 'layout-mobile-active': mainLayoutService.staticMenuMobileActive$ | async,\n 'layout-static-inactive': (mainLayoutService.staticMenuDesktopInactive$ | async) && (mngCommons.menuModeIsStatic$ | async)\n }\">\n <div class=\"layout-main\">\n <ng-container [mngComponent]=\"topbarComponent\"></ng-container>\n\n <ng-container\n *ngIf=\"\n (mainLayoutService.isMobile$ | async) === false &&\n ((mngCommons.menuModeIsStatic$ | async) || (mngCommons.menuModeIsSlim$ | async) || (mngCommons.menuModeIsSidebar$ | async))\n \"\n [mngComponent]=\"menuComponent\">\n </ng-container>\n\n <div class=\"layout-main-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n </div>\n</div>\n" }]
45
- }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.MngCommonsService }, { type: i3.MngMainLayoutComponentService }]; }, propDecorators: { templates: [{
46
- type: ViewChildren,
47
- args: [MngTemplateDirective]
48
- }], onWindowResize: [{
49
- type: HostListener,
50
- args: ['window:resize', ['$event']]
51
- }] } });
1
+ import { ChangeDetectionStrategy, Component, HostListener, ViewChildren } from '@angular/core';
2
+ import { MngTemplateDirective } from '../../directives';
3
+ import { MngFooterComponent } from './footer.component';
4
+ import { MngMenuComponent } from './menu.component';
5
+ import { MngMainLayoutComponentService } from './services';
6
+ import { MngTopbarComponent } from './topbar.component';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/router";
9
+ import * as i2 from "../../services";
10
+ import * as i3 from "./services";
11
+ import * as i4 from "@angular/common";
12
+ import * as i5 from "../../directives/component.directive";
13
+ export class MngMainLayoutComponent {
14
+ constructor(route, mngCommons, mainLayoutService) {
15
+ this.route = route;
16
+ this.mngCommons = mngCommons;
17
+ this.mainLayoutService = mainLayoutService;
18
+ this.topbarComponent = MngTopbarComponent;
19
+ this.menuComponent = MngMenuComponent;
20
+ this.footerComponent = MngFooterComponent;
21
+ }
22
+ ngOnInit() {
23
+ const routeData = this.route.snapshot.data;
24
+ if (routeData?.topbarComponent) {
25
+ this.topbarComponent = routeData.topbarComponent;
26
+ }
27
+ if (routeData?.menuComponent) {
28
+ this.menuComponent = routeData.menuComponent;
29
+ }
30
+ if (routeData?.footerComponent) {
31
+ this.footerComponent = routeData.footerComponent;
32
+ }
33
+ this.mainLayoutService.innerWidth = window.innerWidth;
34
+ }
35
+ onWindowResize(event) {
36
+ const target = event.target;
37
+ this.mainLayoutService.innerWidth = target?.innerWidth ?? window.innerWidth;
38
+ }
39
+ }
40
+ MngMainLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngMainLayoutComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.MngCommonsService }, { token: i3.MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component });
41
+ MngMainLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: MngMainLayoutComponent, selector: "mng-main-layout", host: { listeners: { "window:resize": "onWindowResize($event)" } }, providers: [MngMainLayoutComponentService], viewQueries: [{ propertyName: "templates", predicate: MngTemplateDirective, descendants: true }], ngImport: i0, template: "<div\n class=\"layout-wrapper\"\n (click)=\"mainLayoutService.onLayoutClick()\"\n [ngClass]=\"{\n 'layout-static': mngCommons.menuModeIsStatic$ | async,\n 'layout-overlay': mngCommons.menuModeIsOverlay$ | async,\n 'layout-slim': mngCommons.menuModeIsSlim$ | async,\n 'layout-sidebar': mngCommons.menuModeIsSidebar$ | async,\n 'layout-sidebar-static': (mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async),\n 'layout-overlay-active': mainLayoutService.overlayMenuActive$ | async,\n 'layout-mobile-active': mainLayoutService.staticMenuMobileActive$ | async,\n 'layout-static-inactive': (mainLayoutService.staticMenuDesktopInactive$ | async) && (mngCommons.menuModeIsStatic$ | async)\n }\">\n <div class=\"layout-main\">\n <ng-container [mngComponent]=\"topbarComponent\"></ng-container>\n\n <ng-container\n *ngIf=\"\n (mainLayoutService.isMobile$ | async) === false &&\n ((mngCommons.menuModeIsStatic$ | async) || (mngCommons.menuModeIsSlim$ | async) || (mngCommons.menuModeIsSidebar$ | async))\n \"\n [mngComponent]=\"menuComponent\">\n </ng-container>\n\n <div class=\"layout-main-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n </div>\n</div>\n", directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs"], outputs: ["instanceCreated"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MngMainLayoutComponent, decorators: [{
43
+ type: Component,
44
+ args: [{ selector: 'mng-main-layout', providers: [MngMainLayoutComponentService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"layout-wrapper\"\n (click)=\"mainLayoutService.onLayoutClick()\"\n [ngClass]=\"{\n 'layout-static': mngCommons.menuModeIsStatic$ | async,\n 'layout-overlay': mngCommons.menuModeIsOverlay$ | async,\n 'layout-slim': mngCommons.menuModeIsSlim$ | async,\n 'layout-sidebar': mngCommons.menuModeIsSidebar$ | async,\n 'layout-sidebar-static': (mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async),\n 'layout-overlay-active': mainLayoutService.overlayMenuActive$ | async,\n 'layout-mobile-active': mainLayoutService.staticMenuMobileActive$ | async,\n 'layout-static-inactive': (mainLayoutService.staticMenuDesktopInactive$ | async) && (mngCommons.menuModeIsStatic$ | async)\n }\">\n <div class=\"layout-main\">\n <ng-container [mngComponent]=\"topbarComponent\"></ng-container>\n\n <ng-container\n *ngIf=\"\n (mainLayoutService.isMobile$ | async) === false &&\n ((mngCommons.menuModeIsStatic$ | async) || (mngCommons.menuModeIsSlim$ | async) || (mngCommons.menuModeIsSidebar$ | async))\n \"\n [mngComponent]=\"menuComponent\">\n </ng-container>\n\n <div class=\"layout-main-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n </div>\n</div>\n" }]
45
+ }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.MngCommonsService }, { type: i3.MngMainLayoutComponentService }]; }, propDecorators: { templates: [{
46
+ type: ViewChildren,
47
+ args: [MngTemplateDirective]
48
+ }], onWindowResize: [{
49
+ type: HostListener,
50
+ args: ['window:resize', ['$event']]
51
+ }] } });
52
52
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi1sYXlvdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2xheW91dC9tYWluLWxheW91dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvbGF5b3V0L21haW4tbGF5b3V0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUEyQixZQUFZLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFHdEgsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFHdEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFDLDZCQUE2QixFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQ3pELE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLG9CQUFvQixDQUFDOzs7Ozs7O0FBUXRELE1BQU0sT0FBTyxzQkFBc0I7SUFPL0IsWUFBb0IsS0FBcUIsRUFBUyxVQUE2QixFQUFTLGlCQUFnRDtRQUFwSCxVQUFLLEdBQUwsS0FBSyxDQUFnQjtRQUFTLGVBQVUsR0FBVix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FyJzogbW5nQ29tbW9ucy5tZW51TW9kZUlzU2lkZWJhciQgfCBhc3luYyxcbiAgICAgICAgJ2xheW91dC1zaWRlYmFyLXN0YXRpYyc6IChtbmdDb21tb25zLm1lbnVNb2RlSXNTaWRlYmFyJCB8IGFzeW5jKSAmJiAobWFpbkxheW91dFNlcnZpY2Uuc2lkZWJhclN0YXRpYyQgfCBhc3luYyksXG4gICAgICAgICdsYXlvdXQtb3ZlcmxheS1hY3RpdmUnOiBtYWluTGF5b3V0U2VydmljZS5vdmVybGF5TWVudUFjdGl2ZSQgfCBhc3luYyxcbiAgICAgICAgJ2xheW91dC1tb2JpbGUtYWN0aXZlJzogbWFpbkxheW91dFNlcnZpY2Uuc3RhdGljTWVudU1vYmlsZUFjdGl2ZSQgfCBhc3luYyxcbiAgICAgICAgJ2xheW91dC1zdGF0aWMtaW5hY3RpdmUnOiAobWFpbkxheW91dFNlcnZpY2Uuc3RhdGljTWVudURlc2t0b3BJbmFjdGl2ZSQgfCBhc3luYykgJiYgKG1uZ0NvbW1vbnMubWVudU1vZGVJc1N0YXRpYyQgfCBhc3luYylcbiAgICB9XCI+XG4gICAgPGRpdiBjbGFzcz1cImxheW91dC1tYWluXCI+XG4gICAgICAgIDxuZy1jb250YWluZXIgW21uZ0NvbXBvbmVudF09XCJ0b3BiYXJDb21wb25lbnRcIj48L25nLWNvbnRhaW5lcj5cblxuICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAqbmdJZj1cIlxuICAgICAgICAgICAgICAgIChtYWluTGF5b3V0U2VydmljZS5pc01vYmlsZSQgfCBhc3luYykgPT09IGZhbHNlICYmXG4gICAgICAgICAgICAgICAgKChtbmdDb21tb25zLm1lbnVNb2RlSXNTdGF0aWMkIHwgYXN5bmMpIHx8IChtbmdDb21tb25zLm1lbnVNb2RlSXNTbGltJCB8IGFzeW5jKSB8fCAobW5nQ29tbW9ucy5tZW51TW9kZUlzU2lkZWJhciQgfCBhc3luYykpXG4gICAgICAgICAgICBcIlxuICAgICAgICAgICAgW21uZ0NvbXBvbmVudF09XCJtZW51Q29tcG9uZW50XCI+XG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgIDxkaXYgY2xhc3M9XCJsYXlvdXQtbWFpbi1jb250ZW50XCI+XG4gICAgICAgICAgICA8cm91dGVyLW91dGxldD48L3JvdXRlci1vdXRsZXQ+XG4gICAgICAgIDwvZGl2PlxuXG4gICAgICAgIDxuZy1jb250YWluZXIgW21uZ0NvbXBvbmVudF09XCJmb290ZXJDb21wb25lbnRcIj48L25nLWNvbnRhaW5lcj5cbiAgICA8L2Rpdj5cbjwvZGl2PlxuIl19