@coolon/angular-ui-powerups 12.4.0-alpha.79 → 12.4.0-alpha.8

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 (542) hide show
  1. package/assets/activities.scss +70 -0
  2. package/assets/form.scss +2 -10
  3. package/assets/interaction.scss +7 -10
  4. package/assets/mixins.scss +7 -5
  5. package/assets/styles.scss +15 -11
  6. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +336 -741
  7. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  8. package/bundles/coolon-angular-ui-powerups.umd.js +422 -1409
  9. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  10. package/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/cypress/components/aup-command-face.d.ts +8 -2
  12. package/cypress/components/aup-command.d.ts +1 -2
  13. package/cypress/components/aup-empty-state.d.ts +2 -1
  14. package/cypress/components/aup-input.d.ts +5 -11
  15. package/cypress/components/aup-more-menu.d.ts +4 -0
  16. package/cypress/components/aup-popup-menu.d.ts +7 -0
  17. package/cypress/components/aup-table.d.ts +18 -5
  18. package/cypress/components/button-mixin.d.ts +19 -0
  19. package/cypress/components/button.d.ts +7 -11
  20. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  21. package/cypress/exports.d.ts +4 -24
  22. package/cypress/package.json +1 -1
  23. package/cypress/page-element.d.ts +12 -12
  24. package/cypress/page.d.ts +34 -8
  25. package/cypress/section.d.ts +55 -0
  26. package/esm2015/cypress/components/aup-command-face.js +22 -11
  27. package/esm2015/cypress/components/aup-command-face.js.map +1 -1
  28. package/esm2015/cypress/components/aup-command-face.metadata.json +1 -1
  29. package/esm2015/cypress/components/aup-command.js +6 -12
  30. package/esm2015/cypress/components/aup-command.js.map +1 -1
  31. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  32. package/esm2015/cypress/components/aup-empty-state.js +2 -2
  33. package/esm2015/cypress/components/aup-empty-state.js.map +1 -1
  34. package/esm2015/cypress/components/aup-empty-state.metadata.json +1 -1
  35. package/esm2015/cypress/components/aup-input.js +5 -17
  36. package/esm2015/cypress/components/aup-input.js.map +1 -1
  37. package/esm2015/cypress/components/aup-input.metadata.json +1 -1
  38. package/esm2015/cypress/components/aup-more-menu.js +7 -0
  39. package/esm2015/cypress/components/aup-more-menu.js.map +1 -0
  40. package/esm2015/cypress/components/aup-more-menu.metadata.json +1 -0
  41. package/esm2015/cypress/components/aup-navigation.js +1 -1
  42. package/esm2015/cypress/components/aup-navigation.js.map +1 -1
  43. package/esm2015/cypress/components/aup-popup-menu.js +19 -0
  44. package/esm2015/cypress/components/aup-popup-menu.js.map +1 -0
  45. package/esm2015/cypress/components/aup-popup-menu.metadata.json +1 -0
  46. package/esm2015/cypress/components/aup-table.js +33 -5
  47. package/esm2015/cypress/components/aup-table.js.map +1 -1
  48. package/esm2015/cypress/components/aup-table.metadata.json +1 -1
  49. package/esm2015/cypress/components/button-mixin.js +15 -0
  50. package/esm2015/cypress/components/button-mixin.js.map +1 -0
  51. package/esm2015/cypress/components/button-mixin.metadata.json +1 -0
  52. package/esm2015/cypress/components/button.js +10 -4
  53. package/esm2015/cypress/components/button.js.map +1 -1
  54. package/esm2015/cypress/components/button.metadata.json +1 -1
  55. package/esm2015/cypress/exports.js +4 -24
  56. package/esm2015/cypress/exports.js.map +1 -1
  57. package/esm2015/cypress/exports.metadata.json +1 -1
  58. package/esm2015/cypress/page-element.js +19 -26
  59. package/esm2015/cypress/page-element.js.map +1 -1
  60. package/esm2015/cypress/page-element.metadata.json +1 -1
  61. package/esm2015/cypress/page.js +19 -31
  62. package/esm2015/cypress/page.js.map +1 -1
  63. package/esm2015/cypress/page.metadata.json +1 -1
  64. package/esm2015/cypress/section.js +76 -0
  65. package/esm2015/cypress/section.js.map +1 -0
  66. package/esm2015/cypress/section.metadata.json +1 -0
  67. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  68. package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
  69. package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
  70. package/esm2015/lib/components/card-container/card-container.component.js +84 -0
  71. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -0
  72. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -0
  73. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -0
  74. package/esm2015/lib/components/{labelled-value/labelled-value.component.scss.shim.ngstyle.js.map → card-container/card-container.component.scss.shim.ngstyle.js.map} +1 -1
  75. package/esm2015/lib/components/commands/command/command.component.js +1 -1
  76. package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
  77. package/esm2015/lib/components/commands/command-face/command-face.component.js +1 -5
  78. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  79. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  80. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
  81. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
  82. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +1 -1
  83. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
  84. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +1 -1
  85. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
  86. package/esm2015/lib/components/components.module.js +25 -43
  87. package/esm2015/lib/components/components.module.js.map +1 -1
  88. package/esm2015/lib/components/components.module.metadata.json +1 -1
  89. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  90. package/esm2015/lib/components/empty-state/empty-state.component.js +1 -1
  91. package/esm2015/lib/components/empty-state/empty-state.component.metadata.json +1 -1
  92. package/esm2015/lib/components/exports.js +4 -8
  93. package/esm2015/lib/components/exports.js.map +1 -1
  94. package/esm2015/lib/components/exports.metadata.json +1 -1
  95. package/esm2015/lib/components/focus-container/focus-container.component.js +1 -1
  96. package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
  97. package/esm2015/lib/components/forms/abstract-input.component.js +0 -1
  98. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  99. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +1 -1
  100. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
  101. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +1 -1
  102. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  103. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +1 -1
  104. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
  105. package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
  106. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  107. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  108. package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
  109. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  110. package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
  111. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  112. package/esm2015/lib/components/icon/icon.component.js +1 -1
  113. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  114. package/esm2015/lib/components/noop/noop.component.js +1 -1
  115. package/esm2015/lib/components/noop/noop.component.metadata.json +1 -1
  116. package/esm2015/lib/components/scroll-container/scroll-container.component.js +1 -1
  117. package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
  118. package/esm2015/lib/components/section-header/section-header.component.js +5 -12
  119. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  120. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  121. package/esm2015/lib/components/switch-case/switch-case.component.js +1 -1
  122. package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
  123. package/esm2015/lib/components/tables/abstract-table-model.js +20 -34
  124. package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
  125. package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
  126. package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -1
  127. package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -1
  128. package/esm2015/lib/components/tables/table/column-model.js +10 -35
  129. package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
  130. package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
  131. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
  132. package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
  133. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js +12 -19
  134. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  135. package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
  136. package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
  137. package/esm2015/lib/components/tables/{edit-session.metadata.json → table/edit-session.metadata.json} +1 -1
  138. package/esm2015/lib/components/tables/table/paginator/paginator.component.js +1 -1
  139. package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -1
  140. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
  141. package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  142. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
  143. package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
  144. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js +2 -0
  145. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -1
  146. package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
  147. package/esm2015/lib/components/tables/table/table.component.js +13 -14
  148. package/esm2015/lib/components/tables/table/table.component.js.map +1 -1
  149. package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -1
  150. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js +4 -4
  151. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.js.map +1 -1
  152. package/esm2015/lib/components/tables/tree-table/flattened-tree-list-model.metadata.json +1 -1
  153. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js +1 -1
  154. package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +1 -1
  155. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +13 -21
  156. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
  157. package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
  158. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +1 -1
  159. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
  160. package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
  161. package/esm2015/lib/components/tables/tree-table/tree-node.js +2 -0
  162. package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
  163. package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +1 -0
  164. package/esm2015/lib/components/tables/tree-table/tree-table-component.js +1 -1
  165. package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
  166. package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -1
  167. package/esm2015/lib/components/tables/tree-table/tree-table-model.js +2 -3
  168. package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
  169. package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
  170. package/esm2015/lib/components/tables/tree-table/visitable.class.js +26 -0
  171. package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
  172. package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +1 -0
  173. package/esm2015/lib/components/track-by.js +0 -12
  174. package/esm2015/lib/components/track-by.js.map +1 -1
  175. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +1 -1
  176. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
  177. package/esm2015/lib/directives/command.directive.js +1 -1
  178. package/esm2015/lib/directives/command.directive.js.map +1 -1
  179. package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
  180. package/esm2015/lib/interaction/abstract-interaction-context.js +0 -7
  181. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
  182. package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -1
  183. package/esm2015/lib/interaction/activity.js +1 -2
  184. package/esm2015/lib/interaction/activity.js.map +1 -1
  185. package/esm2015/lib/interaction/alert.js +1 -17
  186. package/esm2015/lib/interaction/alert.js.map +1 -1
  187. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +11 -17
  188. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  189. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  190. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +3 -3
  191. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  192. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  193. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
  194. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  195. package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +1 -1
  196. package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
  197. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +0 -4
  198. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  199. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  200. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +2 -5
  201. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  202. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  203. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +2 -5
  204. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  205. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  206. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +2 -5
  207. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  208. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  209. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +1 -1
  210. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  211. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +14 -8
  212. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  213. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  214. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +31 -8
  215. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  216. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  217. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +26 -7
  218. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  219. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  220. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +3 -10
  221. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  222. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  223. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +43 -0
  224. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -0
  225. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.metadata.json +1 -0
  226. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -0
  227. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +2 -0
  228. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -0
  229. package/esm2015/lib/interaction/components/input-activities/input-activity-data.metadata.json +1 -0
  230. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +2 -0
  231. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -0
  232. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.metadata.json +1 -0
  233. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +3 -5
  234. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  235. package/esm2015/lib/interaction/components/input-activities/select-input-activity.metadata.json +1 -1
  236. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +4 -6
  237. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  238. package/esm2015/lib/interaction/components/input-activities/string-input-activity.metadata.json +1 -1
  239. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +1 -2
  240. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  241. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
  242. package/esm2015/lib/interaction/exports.js +4 -8
  243. package/esm2015/lib/interaction/exports.js.map +1 -1
  244. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  245. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  246. package/esm2015/lib/interaction/interaction.module.js +9 -29
  247. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  248. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  249. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  250. package/esm2015/lib/interaction/result.js +4 -0
  251. package/esm2015/lib/interaction/result.js.map +1 -0
  252. package/esm2015/lib/interaction/result.metadata.json +1 -0
  253. package/esm2015/lib/interaction/services/interaction.service.js +1 -1
  254. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  255. package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
  256. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  257. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
  258. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  259. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.js +1 -1
  260. package/esm2015/lib/place/components/not-authorised-notice/not-authorised-notice.component.metadata.json +1 -1
  261. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
  262. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  263. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
  264. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  265. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
  266. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  267. package/esm2015/lib/place/guards/consolidated-param-map.js +1 -2
  268. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  269. package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
  270. package/esm2015/lib/place/guards/place.guard.js +1 -2
  271. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  272. package/esm2015/lib/place/place-component.js +4 -31
  273. package/esm2015/lib/place/place-component.js.map +1 -1
  274. package/esm2015/lib/place/place-component.metadata.json +1 -1
  275. package/esm2015/lib/place/place-router.js +14 -11
  276. package/esm2015/lib/place/place-router.js.map +1 -1
  277. package/esm2015/lib/place/place-router.metadata.json +1 -1
  278. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  279. package/esm2015/lib/place/visit.js +1 -5
  280. package/esm2015/lib/place/visit.js.map +1 -1
  281. package/esm2015/lib/place/visit.metadata.json +1 -1
  282. package/esm2015/lib/services/exports.js +0 -2
  283. package/esm2015/lib/services/exports.js.map +1 -1
  284. package/esm2015/lib/services/exports.metadata.json +1 -1
  285. package/fesm2015/coolon-angular-ui-powerups-cypress.js +244 -546
  286. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  287. package/fesm2015/coolon-angular-ui-powerups.js +354 -1199
  288. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  289. package/lib/components/{cards/card-container → card-container}/card-container.component.d.ts +9 -30
  290. package/lib/components/commands/command-face/command-face.component.d.ts +0 -1
  291. package/lib/components/exports.d.ts +4 -8
  292. package/lib/components/section-header/section-header.component.d.ts +2 -5
  293. package/lib/components/tables/abstract-table-model.d.ts +7 -10
  294. package/lib/components/tables/table/cell-portal-ref.d.ts +1 -1
  295. package/lib/components/tables/table/cell-renderer.d.ts +0 -2
  296. package/lib/components/tables/table/column-model.d.ts +5 -14
  297. package/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.d.ts +1 -2
  298. package/lib/components/tables/table/edit-row-controls/edit-row-controls.component.d.ts +2 -4
  299. package/lib/components/tables/{edit-session.d.ts → table/edit-session.d.ts} +3 -3
  300. package/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
  301. package/lib/components/tables/table/table-row-menu/table-row-menu.component.d.ts +3 -2
  302. package/lib/components/tables/table/table.component.d.ts +12 -13
  303. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -0
  304. package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -2
  305. package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
  306. package/lib/components/tables/tree-table/tree-node.d.ts +3 -0
  307. package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
  308. package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
  309. package/lib/components/tables/tree-table/visitable.class.d.ts +22 -0
  310. package/lib/components/track-by.d.ts +0 -9
  311. package/lib/interaction/abstract-interaction-context.d.ts +0 -1
  312. package/lib/interaction/alert.d.ts +1 -7
  313. package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -14
  314. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  315. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -2
  316. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -2
  317. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -2
  318. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +7 -2
  319. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +10 -2
  320. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +9 -2
  321. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +0 -2
  322. package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +12 -0
  323. package/lib/interaction/components/input-activities/input-activity-data.d.ts +11 -0
  324. package/lib/interaction/components/input-activities/select-input-activity-data.d.ts +8 -0
  325. package/lib/interaction/components/input-activities/select-input-activity.d.ts +3 -11
  326. package/lib/interaction/components/input-activities/string-input-activity.d.ts +2 -6
  327. package/lib/interaction/exports.d.ts +4 -8
  328. package/lib/interaction/interaction-context.d.ts +0 -1
  329. package/lib/interaction/result.d.ts +8 -0
  330. package/lib/place/place-component.d.ts +1 -6
  331. package/lib/place/place-router.d.ts +2 -2
  332. package/lib/services/exports.d.ts +0 -2
  333. package/package.json +16 -17
  334. package/schematics/activity/index.js +1 -1
  335. package/schematics/activity/index.js.map +1 -1
  336. package/schematics/activity/templates/component/__name@dasherize__.component.html.template +1 -1
  337. package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +3 -5
  338. package/schematics/aup-i18n/index.js +1 -1
  339. package/schematics/aup-i18n/index.js.map +1 -1
  340. package/schematics/component/index.js +1 -1
  341. package/schematics/component/index.js.map +1 -1
  342. package/schematics/component/templates/component/__name@dasherize__.component.ts.template +1 -1
  343. package/schematics/place-routes/place-class-scanner.js +1 -3
  344. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  345. package/schematics/utils/build-context.d.ts +3 -6
  346. package/schematics/utils/build-context.js +3 -3
  347. package/schematics/utils/build-context.js.map +1 -1
  348. package/schematics/utils/workspace.d.ts +0 -1
  349. package/schematics/utils/workspace.js +3 -11
  350. package/schematics/utils/workspace.js.map +1 -1
  351. package/assets/activities/activities.scss +0 -77
  352. package/assets/activities/input-activities.scss +0 -36
  353. package/assets/cards.scss +0 -17
  354. package/assets/empty-state.scss +0 -11
  355. package/assets/forms/mixins.scss +0 -6
  356. package/assets/interaction/editor/inline-string-editor.scss +0 -54
  357. package/assets/markdown.scss +0 -10
  358. package/assets/pills.scss +0 -45
  359. package/cypress/component-builder.d.ts +0 -71
  360. package/cypress/components/aup-abstract-activity.d.ts +0 -31
  361. package/cypress/components/aup-abstract-table.d.ts +0 -18
  362. package/cypress/components/aup-activity.d.ts +0 -9
  363. package/cypress/components/aup-alert-dialog.d.ts +0 -27
  364. package/cypress/components/aup-alert.d.ts +0 -9
  365. package/cypress/components/aup-confirm-dialog.d.ts +0 -27
  366. package/cypress/components/aup-confirm.d.ts +0 -11
  367. package/cypress/components/aup-modal-activity.d.ts +0 -24
  368. package/cypress/components/aup-modal-mixin.d.ts +0 -23
  369. package/cypress/components/aup-tree-table.d.ts +0 -16
  370. package/cypress/components/form-element-mixin.d.ts +0 -22
  371. package/cypress/components/mat-checkbox.d.ts +0 -31
  372. package/cypress/components/popup/aup-abstract-popup-menu.d.ts +0 -15
  373. package/cypress/components/popup/aup-more-menu.d.ts +0 -5
  374. package/cypress/components/popup/aup-popup-menu-panel.d.ts +0 -3
  375. package/cypress/components/popup/aup-popup-menu.d.ts +0 -7
  376. package/cypress/components/table/aup-table-cell.d.ts +0 -9
  377. package/cypress/components/table/aup-table-column.d.ts +0 -10
  378. package/cypress/components/table/aup-table-row.d.ts +0 -17
  379. package/cypress/components/table/aup-table-selection-cell.d.ts +0 -5
  380. package/cypress/components/table/aup-table-selection-column.d.ts +0 -5
  381. package/cypress/element-locator.d.ts +0 -8
  382. package/cypress/page-builder.d.ts +0 -9
  383. package/esm2015/cypress/component-builder.js +0 -92
  384. package/esm2015/cypress/component-builder.js.map +0 -1
  385. package/esm2015/cypress/component-builder.metadata.json +0 -1
  386. package/esm2015/cypress/components/aup-abstract-activity.js +0 -12
  387. package/esm2015/cypress/components/aup-abstract-activity.js.map +0 -1
  388. package/esm2015/cypress/components/aup-abstract-activity.metadata.json +0 -1
  389. package/esm2015/cypress/components/aup-abstract-table.js +0 -50
  390. package/esm2015/cypress/components/aup-abstract-table.js.map +0 -1
  391. package/esm2015/cypress/components/aup-abstract-table.metadata.json +0 -1
  392. package/esm2015/cypress/components/aup-activity.js +0 -13
  393. package/esm2015/cypress/components/aup-activity.js.map +0 -1
  394. package/esm2015/cypress/components/aup-activity.metadata.json +0 -1
  395. package/esm2015/cypress/components/aup-alert-dialog.js +0 -8
  396. package/esm2015/cypress/components/aup-alert-dialog.js.map +0 -1
  397. package/esm2015/cypress/components/aup-alert-dialog.metadata.json +0 -1
  398. package/esm2015/cypress/components/aup-alert.js +0 -13
  399. package/esm2015/cypress/components/aup-alert.js.map +0 -1
  400. package/esm2015/cypress/components/aup-alert.metadata.json +0 -1
  401. package/esm2015/cypress/components/aup-confirm-dialog.js +0 -8
  402. package/esm2015/cypress/components/aup-confirm-dialog.js.map +0 -1
  403. package/esm2015/cypress/components/aup-confirm-dialog.metadata.json +0 -1
  404. package/esm2015/cypress/components/aup-confirm.js +0 -19
  405. package/esm2015/cypress/components/aup-confirm.js.map +0 -1
  406. package/esm2015/cypress/components/aup-confirm.metadata.json +0 -1
  407. package/esm2015/cypress/components/aup-modal-activity.js +0 -5
  408. package/esm2015/cypress/components/aup-modal-activity.js.map +0 -1
  409. package/esm2015/cypress/components/aup-modal-activity.metadata.json +0 -1
  410. package/esm2015/cypress/components/aup-modal-mixin.js +0 -18
  411. package/esm2015/cypress/components/aup-modal-mixin.js.map +0 -1
  412. package/esm2015/cypress/components/aup-modal-mixin.metadata.json +0 -1
  413. package/esm2015/cypress/components/aup-tree-table.js +0 -34
  414. package/esm2015/cypress/components/aup-tree-table.js.map +0 -1
  415. package/esm2015/cypress/components/aup-tree-table.metadata.json +0 -1
  416. package/esm2015/cypress/components/form-element-mixin.js +0 -11
  417. package/esm2015/cypress/components/form-element-mixin.js.map +0 -1
  418. package/esm2015/cypress/components/form-element-mixin.metadata.json +0 -1
  419. package/esm2015/cypress/components/mat-checkbox.js +0 -34
  420. package/esm2015/cypress/components/mat-checkbox.js.map +0 -1
  421. package/esm2015/cypress/components/mat-checkbox.metadata.json +0 -1
  422. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js +0 -33
  423. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.js.map +0 -1
  424. package/esm2015/cypress/components/popup/aup-abstract-popup-menu.metadata.json +0 -1
  425. package/esm2015/cypress/components/popup/aup-more-menu.js +0 -8
  426. package/esm2015/cypress/components/popup/aup-more-menu.js.map +0 -1
  427. package/esm2015/cypress/components/popup/aup-more-menu.metadata.json +0 -1
  428. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js +0 -4
  429. package/esm2015/cypress/components/popup/aup-popup-menu-panel.js.map +0 -1
  430. package/esm2015/cypress/components/popup/aup-popup-menu-panel.metadata.json +0 -1
  431. package/esm2015/cypress/components/popup/aup-popup-menu.js +0 -12
  432. package/esm2015/cypress/components/popup/aup-popup-menu.js.map +0 -1
  433. package/esm2015/cypress/components/popup/aup-popup-menu.metadata.json +0 -1
  434. package/esm2015/cypress/components/table/aup-table-cell.js +0 -14
  435. package/esm2015/cypress/components/table/aup-table-cell.js.map +0 -1
  436. package/esm2015/cypress/components/table/aup-table-cell.metadata.json +0 -1
  437. package/esm2015/cypress/components/table/aup-table-column.js +0 -19
  438. package/esm2015/cypress/components/table/aup-table-column.js.map +0 -1
  439. package/esm2015/cypress/components/table/aup-table-column.metadata.json +0 -1
  440. package/esm2015/cypress/components/table/aup-table-row.js +0 -28
  441. package/esm2015/cypress/components/table/aup-table-row.js.map +0 -1
  442. package/esm2015/cypress/components/table/aup-table-row.metadata.json +0 -1
  443. package/esm2015/cypress/components/table/aup-table-selection-cell.js +0 -6
  444. package/esm2015/cypress/components/table/aup-table-selection-cell.js.map +0 -1
  445. package/esm2015/cypress/components/table/aup-table-selection-cell.metadata.json +0 -1
  446. package/esm2015/cypress/components/table/aup-table-selection-column.js +0 -6
  447. package/esm2015/cypress/components/table/aup-table-selection-column.js.map +0 -1
  448. package/esm2015/cypress/components/table/aup-table-selection-column.metadata.json +0 -1
  449. package/esm2015/cypress/element-locator.js +0 -16
  450. package/esm2015/cypress/element-locator.js.map +0 -1
  451. package/esm2015/cypress/element-locator.metadata.json +0 -1
  452. package/esm2015/cypress/page-builder.js +0 -16
  453. package/esm2015/cypress/page-builder.js.map +0 -1
  454. package/esm2015/cypress/page-builder.metadata.json +0 -1
  455. package/esm2015/lib/components/cards/abstract-card-container.component.js +0 -29
  456. package/esm2015/lib/components/cards/abstract-card-container.component.js.map +0 -1
  457. package/esm2015/lib/components/cards/abstract-card-container.component.metadata.json +0 -1
  458. package/esm2015/lib/components/cards/abstract-card-container.component.ngfactory.js.map +0 -1
  459. package/esm2015/lib/components/cards/card-container/card-container.component.js +0 -123
  460. package/esm2015/lib/components/cards/card-container/card-container.component.js.map +0 -1
  461. package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +0 -1
  462. package/esm2015/lib/components/cards/card-container/card-container.component.ngfactory.js.map +0 -1
  463. package/esm2015/lib/components/cards/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  464. package/esm2015/lib/components/cards/card-stack/card-stack.component.js +0 -78
  465. package/esm2015/lib/components/cards/card-stack/card-stack.component.js.map +0 -1
  466. package/esm2015/lib/components/cards/card-stack/card-stack.component.metadata.json +0 -1
  467. package/esm2015/lib/components/cards/card-stack/card-stack.component.ngfactory.js.map +0 -1
  468. package/esm2015/lib/components/cards/card-stack/card-stack.component.scss.shim.ngstyle.js.map +0 -1
  469. package/esm2015/lib/components/labelled-value/labelled-value.component.js +0 -22
  470. package/esm2015/lib/components/labelled-value/labelled-value.component.js.map +0 -1
  471. package/esm2015/lib/components/labelled-value/labelled-value.component.metadata.json +0 -1
  472. package/esm2015/lib/components/labelled-value/labelled-value.component.ngfactory.js.map +0 -1
  473. package/esm2015/lib/components/loading-container/loading-container.component.js +0 -45
  474. package/esm2015/lib/components/loading-container/loading-container.component.js.map +0 -1
  475. package/esm2015/lib/components/loading-container/loading-container.component.metadata.json +0 -1
  476. package/esm2015/lib/components/loading-container/loading-container.component.ngfactory.js.map +0 -1
  477. package/esm2015/lib/components/loading-container/loading-container.component.scss.shim.ngstyle.js.map +0 -1
  478. package/esm2015/lib/components/tables/edit-session.js.map +0 -1
  479. package/esm2015/lib/components/tables/table/text-search-predicate.js +0 -2
  480. package/esm2015/lib/components/tables/table/text-search-predicate.js.map +0 -1
  481. package/esm2015/lib/components/tables/table/text-search-predicate.metadata.json +0 -1
  482. package/esm2015/lib/components/text/markdown/markdown.component.js +0 -76
  483. package/esm2015/lib/components/text/markdown/markdown.component.js.map +0 -1
  484. package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +0 -1
  485. package/esm2015/lib/components/text/markdown/markdown.component.ngfactory.js.map +0 -1
  486. package/esm2015/lib/components/text/markdown/markdown.component.scss.shim.ngstyle.js.map +0 -1
  487. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +0 -23
  488. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +0 -1
  489. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +0 -1
  490. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +0 -1
  491. package/esm2015/lib/interaction/components/abstract-dialog.component.js +0 -52
  492. package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +0 -1
  493. package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +0 -1
  494. package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +0 -1
  495. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +0 -77
  496. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +0 -1
  497. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +0 -1
  498. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +0 -1
  499. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +0 -1
  500. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +0 -30
  501. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +0 -1
  502. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +0 -1
  503. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.ngfactory.js.map +0 -1
  504. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.scss.shim.ngstyle.js.map +0 -1
  505. package/esm2015/lib/interaction/components/editors/edit-context.js +0 -2
  506. package/esm2015/lib/interaction/components/editors/edit-context.js.map +0 -1
  507. package/esm2015/lib/interaction/components/editors/edit-context.metadata.json +0 -1
  508. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +0 -50
  509. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +0 -1
  510. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +0 -1
  511. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +0 -161
  512. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +0 -1
  513. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +0 -1
  514. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.ngfactory.js.map +0 -1
  515. package/esm2015/lib/interaction/components/input-activities/input-activity.js +0 -95
  516. package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +0 -1
  517. package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +0 -1
  518. package/esm2015/lib/interaction/components/input-activities/input-activity.ngfactory.js.map +0 -1
  519. package/esm2015/lib/services/markdown/markdown.service.js +0 -25
  520. package/esm2015/lib/services/markdown/markdown.service.js.map +0 -1
  521. package/esm2015/lib/services/markdown/markdown.service.metadata.json +0 -1
  522. package/esm2015/lib/services/markdown/markdown.service.ngfactory.js.map +0 -1
  523. package/esm2015/lib/services/markdown/pill-plugin.js +0 -38
  524. package/esm2015/lib/services/markdown/pill-plugin.js.map +0 -1
  525. package/esm2015/lib/services/markdown/pill-plugin.metadata.json +0 -1
  526. package/lib/components/cards/abstract-card-container.component.d.ts +0 -11
  527. package/lib/components/cards/card-stack/card-stack.component.d.ts +0 -65
  528. package/lib/components/labelled-value/labelled-value.component.d.ts +0 -7
  529. package/lib/components/loading-container/loading-container.component.d.ts +0 -11
  530. package/lib/components/tables/table/text-search-predicate.d.ts +0 -1
  531. package/lib/components/text/markdown/markdown.component.d.ts +0 -28
  532. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -7
  533. package/lib/interaction/components/abstract-dialog.component.d.ts +0 -17
  534. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +0 -39
  535. package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +0 -12
  536. package/lib/interaction/components/editors/edit-context.d.ts +0 -3
  537. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +0 -24
  538. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +0 -57
  539. package/lib/interaction/components/input-activities/input-activity.d.ts +0 -41
  540. package/lib/services/markdown/markdown.service.d.ts +0 -6
  541. package/lib/services/markdown/pill-plugin.d.ts +0 -15
  542. /package/esm2015/lib/components/tables/{edit-session.js → table/edit-session.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { __awaiter } from "tslib";
1
+ import { __awaiter, __decorate, __metadata } from "tslib";
2
2
  import { Location } from '@angular/common';
3
3
  import { Injectable } from '@angular/core';
4
4
  import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router } from '@angular/router';
5
- import { assert, Binding, DebugContext, DelegatingValueModel, Dsl, GarbageCollector, lang, MutableListModel, MutableValueModel } from '@coolon/pectin';
5
+ import { assert, Binding, DebugContext, DelegatingValueModel, Dsl, GarbageCollector, lang, MutableListModel, MutableValueModel, Trace } from '@coolon/pectin';
6
6
  import { InteractionService } from '../interaction/services/interaction.service';
7
7
  import { NavigatingDuringInteraction } from './navigation/session/interactions/navigating-during-interaction';
8
8
  import { PopStateDuringInteractionNavigation } from './navigation/session/interactions/pop-state-during-interaction-navigation';
@@ -19,9 +19,6 @@ import * as i2 from "@angular/common";
19
19
  import * as i3 from "../interaction/services/interaction.service";
20
20
  import * as i4 from "./url-service";
21
21
  import * as i5 from "./place-history";
22
- function asArray(item) {
23
- return Array.isArray(item) ? item : [item];
24
- }
25
22
  export class PlaceRouter extends GarbageCollector {
26
23
  constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
27
24
  super();
@@ -37,7 +34,7 @@ export class PlaceRouter extends GarbageCollector {
37
34
  * An observable model containing the authoriser function. This allows places to react to changes
38
35
  * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
39
36
  */
40
- this._accessGuard = this.registerDisposable(new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth()));
37
+ this._accessGuard = new DelegatingValueModel().withDefault(new PlaceAccessGuard.NoAuth());
41
38
  if (window['Cypress']) {
42
39
  window['aup.PlaceRouter'] = this;
43
40
  }
@@ -185,10 +182,11 @@ export class PlaceRouter extends GarbageCollector {
185
182
  this.currentSession.onRouterEnd(event);
186
183
  }
187
184
  navigate(visit, options) {
188
- const commands = asArray(visit).reduce((result, v) => {
189
- return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];
190
- }, []);
191
185
  return this.doNavigation(visit, (router) => __awaiter(this, void 0, void 0, function* () {
186
+ const commands = [
187
+ visit.placeDefinition.path,
188
+ ...this.createRouteParameters(visit)
189
+ ];
192
190
  yield this.angularRouter.navigate(commands, {
193
191
  relativeTo: options ? options.relativeTo : null
194
192
  });
@@ -201,7 +199,7 @@ export class PlaceRouter extends GarbageCollector {
201
199
  lang.illegalState('Navigation already in progress');
202
200
  }
203
201
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
204
- asArray(visit).forEach(v => navigation.storeVisit(v));
202
+ navigation.storeVisit(visit);
205
203
  this.transitionTo(navigation);
206
204
  try {
207
205
  yield runNavigationCommands(this.angularRouter);
@@ -282,7 +280,6 @@ export class PlaceRouter extends GarbageCollector {
282
280
  * to be able to capture the back button on the first page. If we don't then the back click will exit
283
281
  * the app directly and we don't get to ask.
284
282
  */
285
- // @Trace()
286
283
  syncInteractionContextIdsWithRouter() {
287
284
  if (this.navigationSession) {
288
285
  // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
@@ -324,6 +321,12 @@ PlaceRouter.ctorParameters = () => [
324
321
  { type: UrlService },
325
322
  { type: PlaceHistory }
326
323
  ];
324
+ __decorate([
325
+ Trace(),
326
+ __metadata("design:type", Function),
327
+ __metadata("design:paramtypes", []),
328
+ __metadata("design:returntype", Promise)
329
+ ], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
327
330
  (function (PlaceRouter) {
328
331
  class State {
329
332
  constructor(activeVisits) {
@@ -1 +1 @@
1
- {"version":3,"file":"place-router.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place-router.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,eAAe,EAEf,eAAe,EACf,MAAM,EAEP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,GAAG,EACH,gBAAgB,EAChB,IAAI,EAEJ,gBAAgB,EAChB,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iEAAiE,CAAC;AAC9G,OAAO,EAAE,mCAAmC,EAAE,MAAM,2EAA2E,CAAC;AAChI,OAAO,EAAE,yCAAyC,EAAE,MAAM,kFAAkF,CAAC;AAC7I,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;;;;;AAI3C,SAAS,OAAO,CAA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AC;gBACV,UAAU,EAAE,MAAM;aACnB;;;YAvCC,MAAM;YAVC,QAAQ;YA4BR,kBAAkB;YAWlB,UAAU;YADV,YAAY;;AA2VrB,WAAiB,WAAW;IAM1B,MAAa,KAAK;QAChB,YAA6B,YAAqB;YAArB,iBAAY,GAAZ,YAAY,CAAS;QAClD,CAAC;QAED,aAAa,CAAC,eAAgC;YAC5C,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC7C,CAAC;QAED,WAAW,CAAC,eAAgC;YAC1C,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,KAAK,eAAe,CAAC,CAAC;QAC5E,CAAC;KACF;IAXY,iBAAK,QAWjB,CAAA;AAEH,CAAC,EAnBgB,WAAW,KAAX,WAAW,QAmB3B","sourcesContent":["import { Location } from '@angular/common';\nimport { Injectable } from '@angular/core';\nimport {\n ActivatedRoute,\n ActivatedRouteSnapshot,\n NavigationCancel,\n NavigationEnd,\n NavigationError,\n NavigationExtras,\n NavigationStart,\n Router,\n RouterStateSnapshot\n} from '@angular/router';\nimport {\n assert,\n Binding,\n DebugContext,\n DelegatingValueModel,\n Dsl,\n GarbageCollector,\n lang,\n ListModel,\n MutableListModel,\n MutableValueModel,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { InteractionServiceRoutingAdapter } from '../interaction/services/interaction-service-routing-adapter';\nimport { InteractionService } from '../interaction/services/interaction.service';\nimport { NavigatingDuringInteraction } from './navigation/session/interactions/navigating-during-interaction';\nimport { PopStateDuringInteractionNavigation } from './navigation/session/interactions/pop-state-during-interaction-navigation';\nimport { SynchroniseInteractionContextIdsWithRoute } from './navigation/session/interactions/synchronise-interaction-context-ids-with-route';\nimport { Navigating } from './navigation/session/navigating';\nimport { NavigationContext } from './navigation/session/navigation-context';\nimport { NavigationSession } from './navigation/session/navigation-session';\nimport { PopStateNavigation } from './navigation/session/pop-state-navigation';\nimport { PlaceAccessGuard } from './place-access-guard';\nimport { PlaceDefinition } from './place-definition';\nimport { PlaceHistory } from './place-history';\nimport { UrlService } from './url-service';\nimport { UrlSnapshot } from './url-snapshot';\nimport { Visit } from './visit';\n\nfunction asArray<T>(item: T | T[]):T[] {\n return Array.isArray(item) ? item : [item];\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PlaceRouter extends GarbageCollector {\n\n readonly navigationSessionModel = new MutableValueModel<NavigationSession>();\n readonly navigationInProgress: ValueModelChain<boolean>;\n readonly navigationSessionName: ValueModelChain<string>; // used by tests\n\n private readonly navigationContext: NavigationContext.Impl;\n\n private readonly _activeVisits = new MutableListModel<Visit>();\n private readonly routerInteractionAdapter: InteractionServiceRoutingAdapter;\n private sessionFinishedJobs: (() => void)[] = [];\n\n public readonly state: ValueModel<PlaceRouter.State>;\n\n /**\n * An observable model containing the authoriser function. This allows places to react to changes\n * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.\n */\n private readonly _accessGuard = this.registerDisposable(new DelegatingValueModel<PlaceAccessGuard>().withDefault(new PlaceAccessGuard.NoAuth()));\n private redirections: PlaceRouter.Redirections;\n\n constructor(private readonly angularRouter: Router,\n private readonly angularLocation: Location,\n private readonly interactionService: InteractionService,\n private readonly urlService: UrlService,\n private readonly placeHistory: PlaceHistory) {\n super();\n\n if (window['Cypress']) {\n window['aup.PlaceRouter'] = this;\n }\n\n this.routerInteractionAdapter = interactionService.registerPlaceRouter(this);\n\n // TODO: Make this an interface and use 'this' instead.\n this.navigationContext = new NavigationContext.Impl(\n this.urlService,\n this.routerInteractionAdapter,\n (urlSnapshot: UrlSnapshot, options: { replaceUrl: boolean }) => {\n return this.navigateByUrl(urlSnapshot, options);\n },\n state => {\n this.transitionTo(state);\n },\n visits => {\n this.routingSessionFinished(visits);\n });\n\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.navigationInProgress = chain(this.navigationSessionModel).isNotNil();\n\n const idleStateName = chain(this.interactionService.active).map(active => active ? 'IdleDuringInteraction' : 'Idle');\n this.navigationSessionName = chain(this.navigationSessionModel)\n .pluck('name')\n .otherwise(idleStateName);\n\n DebugContext.tag(this._activeVisits, 'PlaceRouter.activeVisits');\n this.state = chain(this._activeVisits).reduce(visits => new PlaceRouter.State(visits));\n\n // TODO: make setup the callbacks in during module initiation to make this testable.\n angularRouter.events.subscribe(event => {\n // Routing event sequence\n // ======================\n // NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session\n // NavigationStart -> .... -> NavigationEnd --> navigation complete, end session.\n // NavigationStart -> .... -> NavigationError --> navigation aborted, end session.\n // =======================\n if (event instanceof NavigationStart) {\n // console.log(`---> NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n if (event.navigationTrigger === 'popstate') {\n this.onPopState(event);\n } else {\n this.onRouterStarted(event);\n }\n // console.log(`<--- NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n }\n if (event instanceof NavigationEnd) {\n // console.log(`---> NavigationEnd[${event.id}]: ${event.url}`);\n this.onRouterEnd(event);\n // console.log(`<--- NavigationEnd[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationError) {\n // console.log(`---> NavigationError[${event.id}]: ${event.url}`);\n this.onRouterError(event);\n // console.log(`<--- NavigationError[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationCancel) {\n // console.log(`---> NavigationCancel[${event.id}]: ${event.url}`);\n this.onRouterCancelled(event);\n // console.log(`<--- NavigationCancel[${event.id}]: ${event.url}`);\n }\n });\n\n // The router needs to know about url changes and in some cases they are the only way the router can know if\n // the back button was clicked.\n angularLocation.onUrlChange(url => this.onUrlChanged(url));\n\n }\n\n get accessGuard(): ValueModel<PlaceAccessGuard> {\n return this._accessGuard.readonly;\n }\n\n // @Trace()\n configureAuth(accessGrant: ValueModel<PlaceAccessGuard>, redirections: PlaceRouter.Redirections) {\n // We need a shitty mutable model until setDelegate is clever enough to work with readonly models.\n const hackyMutableModel = new MutableValueModel<PlaceAccessGuard>();\n const binding = new Binding(hackyMutableModel, accessGrant, {\n toRight(leftValue: PlaceAccessGuard) {\n return lang.illegalState('hackyMutableModel is read only');\n },\n toLeft: (rightValue: PlaceAccessGuard) => rightValue\n });\n binding.writeLeft();\n this._accessGuard.setDelegate(hackyMutableModel);\n this.redirections = redirections;\n }\n\n getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit {\n return this.redirections.onAuthenticationFailure(activatedRoute, state);\n }\n\n get navigationSession() {\n return this.navigationSessionModel.value;\n }\n\n get currentSession() {\n return this.navigationSessionModel.value;\n }\n\n isNavigating(): boolean {\n return this.navigationInProgress.value;\n }\n\n waitUntilIdle(): Promise<this> {\n const { when } = Dsl.disposeWith(this);\n return new Promise<this>(resolve => {\n when(this.navigationInProgress).becomesFalsey(() => resolve(this), {\n initialValue: 'evaluate',\n once: true\n });\n });\n }\n\n // @Trace()\n onPopState(event: NavigationStart) {\n assert.isTruthy(event.navigationTrigger === 'popstate');\n if (this.currentSession) {\n this.currentSession.onPopState(event);\n } else {\n const poppedHistoryUrl = event.url;\n const currentRouterUrl = this.urlService.getCurrentRouterUrl();\n const session = this.interactionService.isActive() ?\n new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :\n new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);\n this.transitionTo(session);\n }\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart) {\n assert.isFalsey(event.navigationTrigger === 'popstate');\n const inInteraction = this.interactionService.isActive();\n if (this.currentSession) {\n this.currentSession.onRouterStarted(event);\n } else {\n this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()));\n }\n }\n\n // @Trace()\n onUrlChanged(newUrl: string) {\n // the back button can trigger a url change without a navigation session in progress so we\n // console.log(`---> Url Changed ${newUrl}`);\n if (this.currentSession) {\n this.currentSession.onUrlChange(newUrl);\n } else {\n console.log('FYI: url changed without a navigation session in progress');\n }\n // console.log(`<--- Url Changed`);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel) {\n this.currentSession.onRouterCancelled(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError) {\n this.currentSession.onRouterError(event);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd) {\n this.currentSession.onRouterEnd(event);\n }\n\n navigate(visit: Visit | Visit[], options?: { relativeTo: ActivatedRoute }) {\n const commands = asArray(visit).reduce((result, v) => {\n return [...result, v.placeDefinition.path, ...this.createRouteParameters(v)];\n }, []);\n return this.doNavigation(visit, async router => {\n await this.angularRouter.navigate(commands, {\n relativeTo: options ? options.relativeTo : null\n });\n });\n }\n\n // @Trace()\n async doNavigation(visit: Visit| Visit[], runNavigationCommands: (router: Router) => any) {\n if (this.navigationInProgress.value) {\n lang.illegalState('Navigation already in progress');\n }\n const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());\n asArray(visit).forEach(v => navigation.storeVisit(v));\n this.transitionTo(navigation);\n try {\n await runNavigationCommands(this.angularRouter);\n } finally {\n // Check if the router has finished (in the case where no router change required) and we're still in a\n // transient state and finish of the transition.\n if (!this.angularRouter.getCurrentNavigation() && this.currentSession) {\n this.currentSession.onRouterEnd(new NavigationEnd(-1, '', ''));\n }\n }\n }\n\n navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean> {\n console.log(`### navigationByUrl -> ${urlSnapshot.urlTree.toString()}`);\n return this.angularRouter.navigateByUrl(urlSnapshot.urlTree, navigationExtras);\n }\n\n get activeVisits(): ListModel<Visit> {\n return this._activeVisits.readonly;\n }\n\n // @Trace()\n async pushVisitChangesToRoute(previous: Visit, next: Visit): Promise<void> {\n this.placeHistory.updateVisit(next);\n\n // FIXME: no route id -> route id duplicates route parameters\n if (next.hasRoutingChangedFrom(previous)) {\n return this.doNavigation(next, router => {\n const urlSnapshot = this.urlService.parseUrl(this.angularRouter.routerState.snapshot.url).updateVisitSegments(next);\n // console.log('### Push Changes to route Redirect', { commands: urlSnapshot.url });\n return this.navigateByUrl(urlSnapshot);\n });\n }\n }\n\n\n private createNavigationSession(currentRouterUrl: string): NavigationSession {\n const inInteraction = this.interactionService.isActive();\n return inInteraction ?\n new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :\n new Navigating(this.navigationContext, currentRouterUrl);\n }\n\n // @Trace()\n protected transitionTo(next: NavigationSession) {\n const previous = this.navigationSessionModel.value;\n if (!previous) {\n this.placeHistory.notifyNavigationStarted();\n }\n assert.isTruthy(next !== previous);\n // Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);\n this.navigationSessionModel.value = next;\n if (!!previous) {\n previous.dispose();\n }\n next.notifyActive();\n }\n\n // @Trace()\n private routingSessionFinished(visits: Visit[]) {\n if (visits && visits.length > 0) {\n assert.isTruthy(this.navigationInProgress.value);\n this.placeHistory.notifyNavigationFinished(visits);\n // We update the active visits before we finish the session so the\n // place outlets can ignore the incoming changes until things are\n // settled. TODO: can we removed the event'ness here and just do a push?\n this._activeVisits.value = visits;\n }\n const session = this.currentSession;\n session.dispose();\n this.navigationSessionModel.value = null;\n // console.log(`### Router Session Finished (was ${session.toString()})`);\n this.sessionFinishedJobs.forEach(job => job());\n this.sessionFinishedJobs = [];\n }\n\n private runAfterRoutingSessionFinishes(func: () => void) {\n assert.isTruthy(this.navigationInProgress);\n this.sessionFinishedJobs.push(func);\n }\n\n\n /**\n * Sync's the current interaction state with the URL. We need to push something in the URL in order\n * to be able to capture the back button on the first page. If we don't then the back click will exit\n * the app directly and we don't get to ask.\n */\n // @Trace()\n syncInteractionContextIdsWithRouter(): Promise<void> {\n if (this.navigationSession) {\n // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);\n const session = this.navigationSession;\n return new Promise<void>((resolve, reject) => {\n this.runAfterRoutingSessionFinishes(() => {\n this.runAfterRoutingSessionFinishes(resolve);\n const syncSession = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(syncSession);\n });\n });\n } else {\n return new Promise<void>(((resolve, reject) => {\n // console.log(`No navigation in progress, starting synchronisation job`);\n this.runAfterRoutingSessionFinishes(resolve);\n const session = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(session);\n }));\n\n }\n }\n\n\n private createRouteParameters(visit: Visit) {\n const def = visit.placeDefinition;\n return visit.hasRouteId() ?\n [def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :\n [def.getFormattedRouteParameters(visit)];\n }\n\n}\n\nexport namespace PlaceRouter {\n\n export interface Redirections {\n onAuthenticationFailure(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit;\n }\n\n export class State {\n constructor(private readonly activeVisits: Visit[]) {\n }\n\n isPlaceActive(placeDefinition: PlaceDefinition): boolean {\n return !!this.getVisitFor(placeDefinition);\n }\n\n getVisitFor(placeDefinition: PlaceDefinition): Visit {\n return this.activeVisits.find(v => v.placeDefinition === placeDefinition);\n }\n }\n\n}\n"]}
1
+ {"version":3,"file":"place-router.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place-router.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,eAAe,EAEf,eAAe,EACf,MAAM,EAEP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,GAAG,EACH,gBAAgB,EAChB,IAAI,EAEJ,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,EAGN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,E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AAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;;;;YA/UF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;YApCC,MAAM;YAVC,QAAQ;YA6BR,kBAAkB;YAWlB,UAAU;YADV,YAAY;;AAwTnB;IADC,KAAK,EAAE;;;;sEAqBP;AAYH,WAAiB,WAAW;IAM1B,MAAa,KAAK;QAChB,YAA6B,YAAqB;YAArB,iBAAY,GAAZ,YAAY,CAAS;QAClD,CAAC;QAED,aAAa,CAAC,eAAgC;YAC5C,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC7C,CAAC;QAED,WAAW,CAAC,eAAgC;YAC1C,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,KAAK,eAAe,CAAC,CAAC;QAC5E,CAAC;KACF;IAXY,iBAAK,QAWjB,CAAA;AAEH,CAAC,EAnBgB,WAAW,KAAX,WAAW,QAmB3B","sourcesContent":["import { Location } from '@angular/common';\nimport { Injectable } from '@angular/core';\nimport {\n ActivatedRoute,\n ActivatedRouteSnapshot,\n NavigationCancel,\n NavigationEnd,\n NavigationError,\n NavigationExtras,\n NavigationStart,\n Router,\n RouterStateSnapshot\n} from '@angular/router';\nimport {\n assert,\n Binding,\n DebugContext,\n DelegatingValueModel,\n Dsl,\n GarbageCollector,\n lang,\n ListModel,\n MutableListModel,\n MutableValueModel,\n Trace,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { InteractionServiceRoutingAdapter } from '../interaction/services/interaction-service-routing-adapter';\nimport { InteractionService } from '../interaction/services/interaction.service';\nimport { NavigatingDuringInteraction } from './navigation/session/interactions/navigating-during-interaction';\nimport { PopStateDuringInteractionNavigation } from './navigation/session/interactions/pop-state-during-interaction-navigation';\nimport { SynchroniseInteractionContextIdsWithRoute } from './navigation/session/interactions/synchronise-interaction-context-ids-with-route';\nimport { Navigating } from './navigation/session/navigating';\nimport { NavigationContext } from './navigation/session/navigation-context';\nimport { NavigationSession } from './navigation/session/navigation-session';\nimport { PopStateNavigation } from './navigation/session/pop-state-navigation';\nimport { PlaceAccessGuard } from './place-access-guard';\nimport { PlaceDefinition } from './place-definition';\nimport { PlaceHistory } from './place-history';\nimport { UrlService } from './url-service';\nimport { UrlSnapshot } from './url-snapshot';\nimport { Visit } from './visit';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PlaceRouter extends GarbageCollector {\n\n readonly navigationSessionModel = new MutableValueModel<NavigationSession>();\n readonly navigationInProgress: ValueModelChain<boolean>;\n readonly navigationSessionName: ValueModelChain<string>; // used by tests\n\n private readonly navigationContext: NavigationContext.Impl;\n\n private readonly _activeVisits = new MutableListModel<Visit>();\n private readonly routerInteractionAdapter: InteractionServiceRoutingAdapter;\n private sessionFinishedJobs: (() => void)[] = [];\n\n public readonly state: ValueModel<PlaceRouter.State>;\n\n /**\n * An observable model containing the authoriser function. This allows places to react to changes\n * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.\n */\n private readonly _accessGuard = new DelegatingValueModel<PlaceAccessGuard>().withDefault(new PlaceAccessGuard.NoAuth());\n private redirections: PlaceRouter.Redirections;\n\n constructor(private readonly angularRouter: Router,\n private readonly angularLocation: Location,\n private readonly interactionService: InteractionService,\n private readonly urlService: UrlService,\n private readonly placeHistory: PlaceHistory) {\n super();\n\n if (window['Cypress']) {\n window['aup.PlaceRouter'] = this;\n }\n\n this.routerInteractionAdapter = interactionService.registerPlaceRouter(this);\n\n // TODO: Make this an interface and use 'this' instead.\n this.navigationContext = new NavigationContext.Impl(\n this.urlService,\n this.routerInteractionAdapter,\n (urlSnapshot: UrlSnapshot, options: { replaceUrl: boolean }) => {\n return this.navigateByUrl(urlSnapshot, options);\n },\n state => {\n this.transitionTo(state);\n },\n visits => {\n this.routingSessionFinished(visits);\n });\n\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.navigationInProgress = chain(this.navigationSessionModel).isNotNil();\n\n const idleStateName = chain(this.interactionService.active).map(active => active ? 'IdleDuringInteraction' : 'Idle');\n this.navigationSessionName = chain(this.navigationSessionModel)\n .pluck('name')\n .otherwise(idleStateName);\n\n DebugContext.tag(this._activeVisits, 'PlaceRouter.activeVisits');\n this.state = chain(this._activeVisits).reduce(visits => new PlaceRouter.State(visits));\n\n // TODO: make setup the callbacks in during module initiation to make this testable.\n angularRouter.events.subscribe(event => {\n // Routing event sequence\n // ======================\n // NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session\n // NavigationStart -> .... -> NavigationEnd --> navigation complete, end session.\n // NavigationStart -> .... -> NavigationError --> navigation aborted, end session.\n // =======================\n if (event instanceof NavigationStart) {\n // console.log(`---> NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n if (event.navigationTrigger === 'popstate') {\n this.onPopState(event);\n } else {\n this.onRouterStarted(event);\n }\n // console.log(`<--- NavigationStart[${event.id}]: ${event.url} (${event.navigationTrigger})`);\n }\n if (event instanceof NavigationEnd) {\n // console.log(`---> NavigationEnd[${event.id}]: ${event.url}`);\n this.onRouterEnd(event);\n // console.log(`<--- NavigationEnd[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationError) {\n // console.log(`---> NavigationError[${event.id}]: ${event.url}`);\n this.onRouterError(event);\n // console.log(`<--- NavigationError[${event.id}]: ${event.url}`);\n }\n if (event instanceof NavigationCancel) {\n // console.log(`---> NavigationCancel[${event.id}]: ${event.url}`);\n this.onRouterCancelled(event);\n // console.log(`<--- NavigationCancel[${event.id}]: ${event.url}`);\n }\n });\n\n // The router needs to know about url changes and in some cases they are the only way the router can know if\n // the back button was clicked.\n angularLocation.onUrlChange(url => this.onUrlChanged(url));\n\n }\n\n get accessGuard(): ValueModel<PlaceAccessGuard> {\n return this._accessGuard.readonly;\n }\n\n // @Trace()\n configureAuth(accessGrant: ValueModel<PlaceAccessGuard>, redirections: PlaceRouter.Redirections) {\n // We need a shitty mutable model until setDelegate is clever enough to work with readonly models.\n const hackyMutableModel = new MutableValueModel<PlaceAccessGuard>();\n const binding = new Binding(hackyMutableModel, accessGrant, {\n toRight(leftValue: PlaceAccessGuard) {\n return lang.illegalState('hackyMutableModel is read only');\n },\n toLeft: (rightValue: PlaceAccessGuard) => rightValue\n });\n binding.writeLeft();\n this._accessGuard.setDelegate(hackyMutableModel);\n this.redirections = redirections;\n }\n\n getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit {\n return this.redirections.onAuthenticationFailure(activatedRoute, state);\n }\n\n get navigationSession() {\n return this.navigationSessionModel.value;\n }\n\n get currentSession() {\n return this.navigationSessionModel.value;\n }\n\n isNavigating(): boolean {\n return this.navigationInProgress.value;\n }\n\n waitUntilIdle(): Promise<this> {\n const { when } = Dsl.disposeWith(this);\n return new Promise<this>(resolve => {\n when(this.navigationInProgress).becomesFalsey(() => resolve(this), {\n initialValue: 'evaluate',\n once: true\n });\n });\n }\n\n // @Trace()\n onPopState(event: NavigationStart) {\n assert.isTruthy(event.navigationTrigger === 'popstate');\n if (this.currentSession) {\n this.currentSession.onPopState(event);\n } else {\n const poppedHistoryUrl = event.url;\n const currentRouterUrl = this.urlService.getCurrentRouterUrl();\n const session = this.interactionService.isActive() ?\n new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :\n new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);\n this.transitionTo(session);\n }\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart) {\n assert.isFalsey(event.navigationTrigger === 'popstate');\n const inInteraction = this.interactionService.isActive();\n if (this.currentSession) {\n this.currentSession.onRouterStarted(event);\n } else {\n this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()));\n }\n }\n\n // @Trace()\n onUrlChanged(newUrl: string) {\n // the back button can trigger a url change without a navigation session in progress so we\n // console.log(`---> Url Changed ${newUrl}`);\n if (this.currentSession) {\n this.currentSession.onUrlChange(newUrl);\n } else {\n console.log('FYI: url changed without a navigation session in progress');\n }\n // console.log(`<--- Url Changed`);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel) {\n this.currentSession.onRouterCancelled(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError) {\n this.currentSession.onRouterError(event);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd) {\n this.currentSession.onRouterEnd(event);\n }\n\n navigate(visit: Visit, options?: { relativeTo: ActivatedRoute }) {\n return this.doNavigation(visit, async router => {\n const commands = [\n visit.placeDefinition.path,\n ...this.createRouteParameters(visit)\n ];\n await this.angularRouter.navigate(commands, {\n relativeTo: options ? options.relativeTo : null\n });\n });\n }\n\n // @Trace()\n async doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any) {\n if (this.navigationInProgress.value) {\n lang.illegalState('Navigation already in progress');\n }\n const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());\n navigation.storeVisit(visit);\n this.transitionTo(navigation);\n try {\n await runNavigationCommands(this.angularRouter);\n } finally {\n // Check if the router has finished (in the case where no router change required) and we're still in a\n // transient state and finish of the transition.\n if (!this.angularRouter.getCurrentNavigation() && this.currentSession) {\n this.currentSession.onRouterEnd(new NavigationEnd(-1, '', ''));\n }\n }\n }\n\n navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean> {\n console.log(`### navigationByUrl -> ${urlSnapshot.urlTree.toString()}`);\n return this.angularRouter.navigateByUrl(urlSnapshot.urlTree, navigationExtras);\n }\n\n get activeVisits(): ListModel<Visit> {\n return this._activeVisits.readonly;\n }\n\n // @Trace()\n async pushVisitChangesToRoute(previous: Visit, next: Visit): Promise<void> {\n this.placeHistory.updateVisit(next);\n\n // FIXME: no route id -> route id duplicates route parameters\n if (next.hasRoutingChangedFrom(previous)) {\n return this.doNavigation(next, router => {\n const urlSnapshot = this.urlService.parseUrl(this.angularRouter.routerState.snapshot.url).updateVisitSegments(next);\n // console.log('### Push Changes to route Redirect', { commands: urlSnapshot.url });\n return this.navigateByUrl(urlSnapshot);\n });\n }\n }\n\n\n private createNavigationSession(currentRouterUrl: string): NavigationSession {\n const inInteraction = this.interactionService.isActive();\n return inInteraction ?\n new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :\n new Navigating(this.navigationContext, currentRouterUrl);\n }\n\n // @Trace()\n protected transitionTo(next: NavigationSession) {\n const previous = this.navigationSessionModel.value;\n if (!previous) {\n this.placeHistory.notifyNavigationStarted();\n }\n assert.isTruthy(next !== previous);\n // Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);\n this.navigationSessionModel.value = next;\n if (!!previous) {\n previous.dispose();\n }\n next.notifyActive();\n }\n\n // @Trace()\n private routingSessionFinished(visits: Visit[]) {\n if (visits && visits.length > 0) {\n assert.isTruthy(this.navigationInProgress.value);\n this.placeHistory.notifyNavigationFinished(visits);\n // We update the active visits before we finish the session so the\n // place outlets can ignore the incoming changes until things are\n // settled. TODO: can we removed the event'ness here and just do a push?\n this._activeVisits.value = visits;\n }\n const session = this.currentSession;\n session.dispose();\n this.navigationSessionModel.value = null;\n // console.log(`### Router Session Finished (was ${session.toString()})`);\n this.sessionFinishedJobs.forEach(job => job());\n this.sessionFinishedJobs = [];\n }\n\n private runAfterRoutingSessionFinishes(func: () => void) {\n assert.isTruthy(this.navigationInProgress);\n this.sessionFinishedJobs.push(func);\n }\n\n\n /**\n * Sync's the current interaction state with the URL. We need to push something in the URL in order\n * to be able to capture the back button on the first page. If we don't then the back click will exit\n * the app directly and we don't get to ask.\n */\n @Trace()\n syncInteractionContextIdsWithRouter(): Promise<void> {\n if (this.navigationSession) {\n // console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);\n const session = this.navigationSession;\n return new Promise<void>((resolve, reject) => {\n this.runAfterRoutingSessionFinishes(() => {\n this.runAfterRoutingSessionFinishes(resolve);\n const syncSession = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(syncSession);\n });\n });\n } else {\n return new Promise<void>(((resolve, reject) => {\n // console.log(`No navigation in progress, starting synchronisation job`);\n this.runAfterRoutingSessionFinishes(resolve);\n const session = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);\n this.transitionTo(session);\n }));\n\n }\n }\n\n\n private createRouteParameters(visit: Visit) {\n const def = visit.placeDefinition;\n return visit.hasRouteId() ?\n [def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :\n [def.getFormattedRouteParameters(visit)];\n }\n\n}\n\nexport namespace PlaceRouter {\n\n export interface Redirections {\n onAuthenticationFailure(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit;\n }\n\n export class State {\n constructor(private readonly activeVisits: Visit[]) {\n }\n\n isPlaceActive(placeDefinition: PlaceDefinition): boolean {\n return !!this.getVisitFor(placeDefinition);\n }\n\n getVisitFor(placeDefinition: PlaceDefinition): Visit {\n return this.activeVisits.find(v => v.placeDefinition === placeDefinition);\n }\n }\n\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"PlaceRouter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":50,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":47,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":71,"character":46},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":72,"character":48},{"__symbolic":"reference","module":"../interaction/services/interaction.service","name":"InteractionService","line":73,"character":51},{"__symbolic":"reference","module":"./url-service","name":"UrlService","line":74,"character":43},{"__symbolic":"reference","module":"./place-history","name":"PlaceHistory","line":75,"character":45}]}],"configureAuth":[{"__symbolic":"method"}],"getAuthenticationFailureRedirect":[{"__symbolic":"method"}],"isNavigating":[{"__symbolic":"method"}],"waitUntilIdle":[{"__symbolic":"method"}],"onPopState":[{"__symbolic":"method"}],"onRouterStarted":[{"__symbolic":"method"}],"onUrlChanged":[{"__symbolic":"method"}],"onRouterCancelled":[{"__symbolic":"method"}],"onRouterError":[{"__symbolic":"method"}],"onRouterEnd":[{"__symbolic":"method"}],"navigate":[{"__symbolic":"method"}],"doNavigation":[{"__symbolic":"method"}],"navigateByUrl":[{"__symbolic":"method"}],"pushVisitChangesToRoute":[{"__symbolic":"method"}],"createNavigationSession":[{"__symbolic":"method"}],"transitionTo":[{"__symbolic":"method"}],"routingSessionFinished":[{"__symbolic":"method"}],"runAfterRoutingSessionFinishes":[{"__symbolic":"method"}],"syncInteractionContextIdsWithRouter":[{"__symbolic":"method"}],"createRouteParameters":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"PlaceRouter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":47,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":44,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":68,"character":46},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":69,"character":48},{"__symbolic":"reference","module":"../interaction/services/interaction.service","name":"InteractionService","line":70,"character":51},{"__symbolic":"reference","module":"./url-service","name":"UrlService","line":71,"character":43},{"__symbolic":"reference","module":"./place-history","name":"PlaceHistory","line":72,"character":45}]}],"configureAuth":[{"__symbolic":"method"}],"getAuthenticationFailureRedirect":[{"__symbolic":"method"}],"isNavigating":[{"__symbolic":"method"}],"waitUntilIdle":[{"__symbolic":"method"}],"onPopState":[{"__symbolic":"method"}],"onRouterStarted":[{"__symbolic":"method"}],"onUrlChanged":[{"__symbolic":"method"}],"onRouterCancelled":[{"__symbolic":"method"}],"onRouterError":[{"__symbolic":"method"}],"onRouterEnd":[{"__symbolic":"method"}],"navigate":[{"__symbolic":"method"}],"doNavigation":[{"__symbolic":"method"}],"navigateByUrl":[{"__symbolic":"method"}],"pushVisitChangesToRoute":[{"__symbolic":"method"}],"createNavigationSession":[{"__symbolic":"method"}],"transitionTo":[{"__symbolic":"method"}],"routingSessionFinished":[{"__symbolic":"method"}],"runAfterRoutingSessionFinishes":[{"__symbolic":"method"}],"syncInteractionContextIdsWithRouter":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"Trace","line":350,"character":3}}]}],"createRouteParameters":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}}}]
@@ -1 +1 @@
1
- {"version":3,"file":"place.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './place.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/progress-spinner';\nimport * as i5 from '@angular/router';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/material/core';\nimport * as i8 from '@angular/material/divider';\nimport * as i9 from '@angular/material/list';\nimport * as i10 from '@angular/cdk/scrolling';\nimport * as i11 from '@angular/material/tooltip';\nimport * as i12 from '@angular/material/icon';\nimport * as i13 from '../directives/command.directive';\nimport * as i14 from '../directives/focus-binding.directive';\nimport * as i15 from '../directives/highlight-text-model.directive';\nimport * as i16 from '@angular/flex-layout/flex';\nimport * as i17 from '../components/forms/number-input/number-input.component';\nimport * as i18 from '../components/forms/string-input/string-input.component';\nimport * as i19 from '../components/forms/text-input/text-input.component';\nimport * as i20 from '../components/forms/password-input/password-input.component';\nimport * as i21 from '../components/forms/checkbox-input/checkbox-input.component';\nimport * as i22 from '../components/forms/select-input/select-input.component';\nimport * as i23 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i24 from '../components/forms/autocomplete-input/autocomplete-input.component';\nimport * as i25 from '../components/scroll-container/scroll-container.component';\nimport * as i26 from '../components/noop/noop.component';\nimport * as i27 from '../components/switch-case/switch-case.component';\nimport * as i28 from '../components/focus-container/focus-container.component';\nimport * as i29 from '../components/vertical-focus-container/vertical-focus-container.component';\nimport * as i30 from '../components/focusable.component';\nimport * as i31 from '../components/cards/card-container/card-container.component';\nimport * as i32 from '../components/tables/table/table.component';\nimport * as i33 from '../components/tables/table/edit-row-controls/edit-row-controls.component';\nimport * as i34 from '../components/tables/table/column-template/column-template.directive';\nimport * as i35 from '../components/icon/icon.component';\nimport * as i36 from '../components/section-header/section-header.component';\nimport * as i37 from '../components/tables/table/table-row-menu/table-row-menu.component';\nimport * as i38 from '../components/commands/group/tool-bar/tool-bar.component';\nimport * as i39 from '../components/commands/command/command.component';\nimport * as i40 from '../components/commands/group/popup-menu/popup-menu.component';\nimport * as i41 from '../components/commands/command-face/command-face.component';\nimport * as i42 from '../components/commands/group/popup-menu/more-menu.component';\nimport * as i43 from '../components/commands/separator.component';\nimport * as i44 from '../components/commands/flex.component';\nimport * as i45 from '../components/tables/tree-table/tree-table-component';\nimport * as i46 from '../components/busy-overlay/busy-overlay.component';\nimport * as i47 from '../components/empty-state/empty-state.component';\nimport * as i48 from '../components/tables/table/paginator/paginator.component';\nimport * as i49 from '../components/cards/card-stack/card-stack.component';\nimport * as i50 from '../components/labelled-value/labelled-value.component';\nimport * as i51 from '../components/loading-container/loading-container.component';\nimport * as i52 from '../components/text/markdown/markdown.component';\nimport * as i53 from '@angular/cdk/portal';\nimport * as i54 from './components/place-outlet/place-outlet.component';\nimport * as i55 from './components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i56 from './components/list-place-nav/list-place-nav.component';\nimport * as i57 from './components/side-place-navigation/side-place-navigation.component';\nimport * as i58 from './components/abstract-place-navigation.component';\nimport * as i59 from './components/not-authorised-notice/not-authorised-notice.component';\nimport * as i60 from '../directives/highlight.pipe';\nimport * as i61 from '@angular/platform-browser/animations';\nimport * as i62 from '../directives/directives.module';\nimport * as i63 from '../components/components.module';\nexport const PlaceModuleNgFactory:i0.NgModuleFactory<i1.PlaceModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatProgressSpinner = (<any>(null as any));\nvar _decl0_13:i4.MatSpinner = (<any>(null as any));\nvar _decl0_14:i5.RouterOutlet = (<any>(null as any));\nvar _decl0_15:i5.RouterLink = (<any>(null as any));\nvar _decl0_16:i5.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_17:i5.RouterLinkActive = (<any>(null as any));\nvar _decl0_18:i5.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.MatLine = (<any>(null as any));\nvar _decl0_26:i7.MatPseudoCheckbox = (<any>(null as any));\nvar _decl0_27:i8.MatDivider = (<any>(null as any));\nvar _decl0_28:i9.MatList = (<any>(null as any));\nvar _decl0_29:i9.MatNavList = (<any>(null as any));\nvar _decl0_30:i9.MatListItem = (<any>(null as any));\nvar _decl0_31:i9.MatListAvatarCssMatStyler = (<any>(null as any));\nvar _decl0_32:i9.MatListIconCssMatStyler = (<any>(null as any));\nvar _decl0_33:i9.MatListSubheaderCssMatStyler = (<any>(null as any));\nvar _decl0_34:i9.MatSelectionList = (<any>(null as any));\nvar _decl0_35:i9.MatListOption = (<any>(null as any));\nvar _decl0_36:i10.CdkScrollable = (<any>(null as any));\nvar _decl0_37:i11.MatTooltip = (<any>(null as any));\nvar _decl0_38:i11.TooltipComponent = (<any>(null as any));\nvar _decl0_39:i12.MatIcon = (<any>(null as any));\nvar _decl0_40:i13.CommandDirective<any> = (<any>(null as any));\nvar _decl0_41:i14.FocusBindingDirective = (<any>(null as any));\nvar _decl0_42:i15.HighlightTextModelDirective = (<any>(null as any));\nvar _decl0_43:i16.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_44:i16.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_45:i16.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_46:i16.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_47:i16.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_48:i16.FlexFillDirective = (<any>(null as any));\nvar _decl0_49:i16.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_50:i16.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_51:i17.NumberInputComponent = (<any>(null as any));\nvar _decl0_52:i18.StringInputComponent = (<any>(null as any));\nvar _decl0_53:i19.TextInputComponent = (<any>(null as any));\nvar _decl0_54:i20.PasswordInputComponent = (<any>(null as any));\nvar _decl0_55:i21.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_56:i22.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_57:i23.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_58:i24.AutocompleteInputComponent<any> = (<any>(null as any));\nvar _decl0_59:i25.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_60:i26.NoopComponent = (<any>(null as any));\nvar _decl0_61:i27.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_62:i27.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_63:i27.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_64:i28.FocusContainerComponent = (<any>(null as any));\nvar _decl0_65:i29.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_66:i30.FocusableComponent = (<any>(null as any));\nvar _decl0_67:i31.CardContainerComponent = (<any>(null as any));\nvar _decl0_68:i32.TableComponent<any> = (<any>(null as any));\nvar _decl0_69:i33.EditRowControls<any> = (<any>(null as any));\nvar _decl0_70:i34.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_71:i35.IconComponent = (<any>(null as any));\nvar _decl0_72:i36.SectionHeaderComponent = (<any>(null as any));\nvar _decl0_73:i37.TableRowMenuComponent<any> = (<any>(null as any));\nvar _decl0_74:i38.ToolBarComponent = (<any>(null as any));\nvar _decl0_75:i39.CommandComponent = (<any>(null as any));\nvar _decl0_76:i40.PopupMenuComponent = (<any>(null as any));\nvar _decl0_77:i41.CommandFaceComponent<any> = (<any>(null as any));\nvar _decl0_78:i42.MoreMenuComponent = (<any>(null as any));\nvar _decl0_79:i43.SeparatorComponent = (<any>(null as any));\nvar _decl0_80:i44.FlexComponent = (<any>(null as any));\nvar _decl0_81:i45.TreeTableComponent<any> = (<any>(null as any));\nvar _decl0_82:i46.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_83:i47.EmptyStateComponent = (<any>(null as any));\nvar _decl0_84:i48.PaginatorComponent = (<any>(null as any));\nvar _decl0_85:i49.CardStackComponent = (<any>(null as any));\nvar _decl0_86:i50.LabelledValueComponent = (<any>(null as any));\nvar _decl0_87:i51.LoadingContainerComponent = (<any>(null as any));\nvar _decl0_88:i52.MarkdownComponent = (<any>(null as any));\nvar _decl0_89:i53.CdkPortal = (<any>(null as any));\nvar _decl0_90:i53.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_91:i53.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_92:i53.PortalHostDirective = (<any>(null as any));\nvar _decl0_93:i54.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_94:i55.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_95:i56.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_96:i57.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_97:i58.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_98:i59.NotAuthorisedNoticeComponent = (<any>(null as any));\nvar _decl0_99:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_100:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_101:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_102:i2.JsonPipe = (<any>(null as any));\nvar _decl0_103:i2.SlicePipe = (<any>(null as any));\nvar _decl0_104:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_105:i2.PercentPipe = (<any>(null as any));\nvar _decl0_106:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_107:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_108:i2.DatePipe = (<any>(null as any));\nvar _decl0_109:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_110:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_111:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_112:i60.HighlightPipe = (<any>(null as any));\nvar _decl0_113:i2.CommonModule = (<any>(null as any));\nvar _decl0_114:i61.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_115:i4.MatProgressSpinnerModule = (<any>(null as any));\nvar _decl0_116:i5.RouterModule = (<any>(null as any));\nvar _decl0_117:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_118:i9.MatListModule = (<any>(null as any));\nvar _decl0_119:i11.MatTooltipModule = (<any>(null as any));\nvar _decl0_120:i12.MatIconModule = (<any>(null as any));\nvar _decl0_121:i62.DirectivesModule = (<any>(null as any));\nvar _decl0_122:i16.FlexModule = (<any>(null as any));\nvar _decl0_123:i63.ComponentsModule = (<any>(null as any));\nvar _decl0_124:i53.PortalModule = (<any>(null as any));\nvar _decl0_125:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_126:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_PlaceOutletComponent_Host_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.isAuthorised;\n currVal_0;\n}\nfunction _View_PlaceOutletComponent_1_1():void {\n if (_decl0_93.animationEnabled.value) {\n var _any:any = (null as any);\n const currVal_0:any = {value:_decl0_93.getAnimationOrder(),params:{duration:_decl0_93.animationDuration}};\n currVal_0;\n const pd_1:any = ((<any>_decl0_93.animationStarted()) !== false);\n const pd_2:any = ((<any>_decl0_93.animationDone()) !== false);\n const pd_3:any = ((<any>_decl0_93.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_4:any = ((<any>_decl0_93.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_2():void {\n if (!_decl0_93.animationEnabled.value) {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_93.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_1:any = ((<any>_decl0_93.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_4():void {\n if (!_decl0_93.authorised.value) { var _any:any = (null as any); }\n}\nfunction _View_PlaceOutletComponent_1_3():void {\n if (!_decl0_93.authorised.value) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.notAuthorisedNoticePortal;\n currVal_0;\n }\n}\nfunction _View_PlaceOutletComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.animationEnabled.value;\n currVal_0;\n const currVal_1:any = !_decl0_93.animationEnabled.value;\n currVal_1;\n const currVal_2:any = !_decl0_93.authorised.value;\n currVal_2;\n}\nfunction _View_TabbedPlaceNavigationComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _any.active;\n currVal_0;\n const currVal_1:any = (_decl0_23.active? 'page': null);\n currVal_1;\n const currVal_2:any = _decl0_23.disabled;\n currVal_2;\n const currVal_3:any = _decl0_23.tabIndex;\n currVal_3;\n const currVal_4:any = _decl0_23.disabled;\n currVal_4;\n const currVal_5:any = _decl0_23.active;\n currVal_5;\n const currVal_6:any = _decl0_94.getNavigationFace(_any.place).tooltip();\n currVal_6;\n const currVal_7:any = _decl0_94.commandFactory.create(_any.place);\n currVal_7;\n const currVal_8:any = [_decl0_94.getNavigationFace(_any.place)];\n currVal_8;\n const currVal_9:any = _decl0_77.requiresMissingIconInLayout;\n currVal_9;\n const currVal_10:any = _decl0_77.color;\n currVal_10;\n const pd_11:any = ((<any>_decl0_23._handleFocus()) !== false);\n const pd_12:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_22._showPaginationControls;\n currVal_0;\n const currVal_1:any = (_decl0_22._getLayoutDirection() == 'rtl');\n currVal_1;\n const currVal_2:any = ((_decl0_22.color !== 'warn') && (_decl0_22.color !== 'accent'));\n currVal_2;\n const currVal_3:any = (_decl0_22.color === 'accent');\n currVal_3;\n const currVal_4:any = (_decl0_22.color === 'warn');\n currVal_4;\n const currVal_5:any = _decl0_94.menuItems.value;\n currVal_5;\n const currVal_6:any = _decl0_94.trackByPlaceDef;\n currVal_6;\n}\nfunction _View_ListPlaceNavComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ListPlaceNavComponent_3_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_95.getNavigationFace(_any.place).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_95.commandFactory.create(_any.place);\n currVal_4;\n const currVal_5:any = _any.active;\n currVal_5;\n const currVal_6:any = [_decl0_95.getNavigationFace(_any.place)];\n currVal_6;\n const currVal_7:any = _decl0_77.requiresMissingIconInLayout;\n currVal_7;\n const currVal_8:any = _decl0_77.color;\n currVal_8;\n const pd_9:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_ListPlaceNavComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = '';\n currVal_0;\n const currVal_1:any = _decl0_95.menuItems.value;\n currVal_1;\n const currVal_2:any = _decl0_95.trackByPlaceDef;\n currVal_2;\n}\nfunction _View_SidePlaceNavigationComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_96.expanded;\n currVal_0;\n}\nfunction _View_SidePlaceNavigationComponent_4_2():void {\n if (_decl0_96.getNavigationFace(_any.place).icon()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_96.getNavigationFace(_any.place).icon();\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_96.getNavigationFace(_any.place).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_96.commandFactory.create(_any.place);\n currVal_4;\n const currVal_5:any = _any.active;\n currVal_5;\n const currVal_6:any = _decl0_96.getNavigationFace(_any.place).icon();\n currVal_6;\n const currVal_7:any = _decl0_96.getNavigationFace(_any.place).text();\n currVal_7;\n const pd_8:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_SidePlaceNavigationComponent_4_3():void {\n if (_decl0_96.navEndTemplate) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_96.navEndTemplate;\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = 'mat:menu';\n currVal_3;\n const currVal_4:any = 'mat:arrow_back';\n currVal_4;\n const currVal_5:any = _decl0_96.menuItems.value;\n currVal_5;\n const currVal_6:any = _decl0_96.trackByPlaceDef;\n currVal_6;\n const currVal_7:any = 1;\n currVal_7;\n const currVal_8:any = _decl0_96.navEndTemplate;\n currVal_8;\n const pd_9:any = ((<any>_decl0_96.toggleMenu()) !== false);\n}\nfunction _View_AbstractPlaceNavigationComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractPlaceNavigationComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NotAuthorisedNoticeComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NotAuthorisedNoticeComponent_6_0():void {\n var _any:any = (null as any);\n}\n"]}
1
+ {"version":3,"file":"place.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './place.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/progress-spinner';\nimport * as i5 from '@angular/router';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/material/core';\nimport * as i8 from '@angular/material/divider';\nimport * as i9 from '@angular/material/list';\nimport * as i10 from '@angular/cdk/scrolling';\nimport * as i11 from '@angular/material/tooltip';\nimport * as i12 from '@angular/material/icon';\nimport * as i13 from '../directives/command.directive';\nimport * as i14 from '../directives/focus-binding.directive';\nimport * as i15 from '../directives/highlight-text-model.directive';\nimport * as i16 from '@angular/flex-layout/flex';\nimport * as i17 from '../components/forms/number-input/number-input.component';\nimport * as i18 from '../components/forms/string-input/string-input.component';\nimport * as i19 from '../components/forms/text-input/text-input.component';\nimport * as i20 from '../components/forms/password-input/password-input.component';\nimport * as i21 from '../components/forms/checkbox-input/checkbox-input.component';\nimport * as i22 from '../components/forms/select-input/select-input.component';\nimport * as i23 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i24 from '../components/forms/autocomplete-input/autocomplete-input.component';\nimport * as i25 from '../components/scroll-container/scroll-container.component';\nimport * as i26 from '../components/noop/noop.component';\nimport * as i27 from '../components/switch-case/switch-case.component';\nimport * as i28 from '../components/focus-container/focus-container.component';\nimport * as i29 from '../components/vertical-focus-container/vertical-focus-container.component';\nimport * as i30 from '../components/focusable.component';\nimport * as i31 from '../components/card-container/card-container.component';\nimport * as i32 from '../components/tables/table/table.component';\nimport * as i33 from '../components/tables/table/edit-row-controls/edit-row-controls.component';\nimport * as i34 from '../components/tables/table/column-template/column-template.directive';\nimport * as i35 from '../components/icon/icon.component';\nimport * as i36 from '../components/section-header/section-header.component';\nimport * as i37 from '../components/tables/table/table-row-menu/table-row-menu.component';\nimport * as i38 from '../components/commands/group/tool-bar/tool-bar.component';\nimport * as i39 from '../components/commands/command/command.component';\nimport * as i40 from '../components/commands/group/popup-menu/popup-menu.component';\nimport * as i41 from '../components/commands/command-face/command-face.component';\nimport * as i42 from '../components/commands/group/popup-menu/more-menu.component';\nimport * as i43 from '../components/commands/separator.component';\nimport * as i44 from '../components/commands/flex.component';\nimport * as i45 from '../components/tables/tree-table/tree-table-component';\nimport * as i46 from '../components/busy-overlay/busy-overlay.component';\nimport * as i47 from '../components/empty-state/empty-state.component';\nimport * as i48 from '../components/tables/table/paginator/paginator.component';\nimport * as i49 from '@angular/cdk/portal';\nimport * as i50 from './components/place-outlet/place-outlet.component';\nimport * as i51 from './components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i52 from './components/list-place-nav/list-place-nav.component';\nimport * as i53 from './components/side-place-navigation/side-place-navigation.component';\nimport * as i54 from './components/abstract-place-navigation.component';\nimport * as i55 from './components/not-authorised-notice/not-authorised-notice.component';\nimport * as i56 from '../directives/highlight.pipe';\nimport * as i57 from '@angular/platform-browser/animations';\nimport * as i58 from '../directives/directives.module';\nimport * as i59 from '../components/components.module';\nexport const PlaceModuleNgFactory:i0.NgModuleFactory<i1.PlaceModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatProgressSpinner = (<any>(null as any));\nvar _decl0_13:i4.MatSpinner = (<any>(null as any));\nvar _decl0_14:i5.RouterOutlet = (<any>(null as any));\nvar _decl0_15:i5.RouterLink = (<any>(null as any));\nvar _decl0_16:i5.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_17:i5.RouterLinkActive = (<any>(null as any));\nvar _decl0_18:i5.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.MatLine = (<any>(null as any));\nvar _decl0_26:i7.MatPseudoCheckbox = (<any>(null as any));\nvar _decl0_27:i8.MatDivider = (<any>(null as any));\nvar _decl0_28:i9.MatList = (<any>(null as any));\nvar _decl0_29:i9.MatNavList = (<any>(null as any));\nvar _decl0_30:i9.MatListItem = (<any>(null as any));\nvar _decl0_31:i9.MatListAvatarCssMatStyler = (<any>(null as any));\nvar _decl0_32:i9.MatListIconCssMatStyler = (<any>(null as any));\nvar _decl0_33:i9.MatListSubheaderCssMatStyler = (<any>(null as any));\nvar _decl0_34:i9.MatSelectionList = (<any>(null as any));\nvar _decl0_35:i9.MatListOption = (<any>(null as any));\nvar _decl0_36:i10.CdkScrollable = (<any>(null as any));\nvar _decl0_37:i11.MatTooltip = (<any>(null as any));\nvar _decl0_38:i11.TooltipComponent = (<any>(null as any));\nvar _decl0_39:i12.MatIcon = (<any>(null as any));\nvar _decl0_40:i13.CommandDirective<any> = (<any>(null as any));\nvar _decl0_41:i14.FocusBindingDirective = (<any>(null as any));\nvar _decl0_42:i15.HighlightTextModelDirective = (<any>(null as any));\nvar _decl0_43:i16.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_44:i16.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_45:i16.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_46:i16.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_47:i16.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_48:i16.FlexFillDirective = (<any>(null as any));\nvar _decl0_49:i16.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_50:i16.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_51:i17.NumberInputComponent = (<any>(null as any));\nvar _decl0_52:i18.StringInputComponent = (<any>(null as any));\nvar _decl0_53:i19.TextInputComponent = (<any>(null as any));\nvar _decl0_54:i20.PasswordInputComponent = (<any>(null as any));\nvar _decl0_55:i21.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_56:i22.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_57:i23.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_58:i24.AutocompleteInputComponent<any> = (<any>(null as any));\nvar _decl0_59:i25.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_60:i26.NoopComponent = (<any>(null as any));\nvar _decl0_61:i27.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_62:i27.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_63:i27.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_64:i28.FocusContainerComponent = (<any>(null as any));\nvar _decl0_65:i29.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_66:i30.FocusableComponent = (<any>(null as any));\nvar _decl0_67:i31.CardContainerComponent = (<any>(null as any));\nvar _decl0_68:i32.TableComponent<any> = (<any>(null as any));\nvar _decl0_69:i33.EditRowControls<any> = (<any>(null as any));\nvar _decl0_70:i34.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_71:i35.IconComponent = (<any>(null as any));\nvar _decl0_72:i36.SectionHeaderComponent = (<any>(null as any));\nvar _decl0_73:i37.TableRowMenuComponent<any> = (<any>(null as any));\nvar _decl0_74:i38.ToolBarComponent = (<any>(null as any));\nvar _decl0_75:i39.CommandComponent = (<any>(null as any));\nvar _decl0_76:i40.PopupMenuComponent = (<any>(null as any));\nvar _decl0_77:i41.CommandFaceComponent<any> = (<any>(null as any));\nvar _decl0_78:i42.MoreMenuComponent = (<any>(null as any));\nvar _decl0_79:i43.SeparatorComponent = (<any>(null as any));\nvar _decl0_80:i44.FlexComponent = (<any>(null as any));\nvar _decl0_81:i45.TreeTableComponent<any> = (<any>(null as any));\nvar _decl0_82:i46.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_83:i47.EmptyStateComponent = (<any>(null as any));\nvar _decl0_84:i48.PaginatorComponent = (<any>(null as any));\nvar _decl0_85:i49.CdkPortal = (<any>(null as any));\nvar _decl0_86:i49.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_87:i49.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_88:i49.PortalHostDirective = (<any>(null as any));\nvar _decl0_89:i50.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_90:i51.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_91:i52.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_92:i53.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_93:i54.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_94:i55.NotAuthorisedNoticeComponent = (<any>(null as any));\nvar _decl0_95:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_96:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_97:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_98:i2.JsonPipe = (<any>(null as any));\nvar _decl0_99:i2.SlicePipe = (<any>(null as any));\nvar _decl0_100:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_101:i2.PercentPipe = (<any>(null as any));\nvar _decl0_102:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_103:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_104:i2.DatePipe = (<any>(null as any));\nvar _decl0_105:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_106:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_107:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_108:i56.HighlightPipe = (<any>(null as any));\nvar _decl0_109:i2.CommonModule = (<any>(null as any));\nvar _decl0_110:i57.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_111:i4.MatProgressSpinnerModule = (<any>(null as any));\nvar _decl0_112:i5.RouterModule = (<any>(null as any));\nvar _decl0_113:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_114:i9.MatListModule = (<any>(null as any));\nvar _decl0_115:i11.MatTooltipModule = (<any>(null as any));\nvar _decl0_116:i12.MatIconModule = (<any>(null as any));\nvar _decl0_117:i58.DirectivesModule = (<any>(null as any));\nvar _decl0_118:i16.FlexModule = (<any>(null as any));\nvar _decl0_119:i59.ComponentsModule = (<any>(null as any));\nvar _decl0_120:i49.PortalModule = (<any>(null as any));\nvar _decl0_121:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_122:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_PlaceOutletComponent_Host_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_89.isAuthorised;\n currVal_0;\n}\nfunction _View_PlaceOutletComponent_1_1():void {\n if (_decl0_89.animationEnabled.value) {\n var _any:any = (null as any);\n const currVal_0:any = {value:_decl0_89.getAnimationOrder(),params:{duration:_decl0_89.animationDuration}};\n currVal_0;\n const pd_1:any = ((<any>_decl0_89.animationStarted()) !== false);\n const pd_2:any = ((<any>_decl0_89.animationDone()) !== false);\n const pd_3:any = ((<any>_decl0_89.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_4:any = ((<any>_decl0_89.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_2():void {\n if (!_decl0_89.animationEnabled.value) {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_89.onOutletActivated(_decl0_14,_any)) !== false);\n const pd_1:any = ((<any>_decl0_89.onOutletDeactivated()) !== false);\n }\n}\nfunction _View_PlaceOutletComponent_1_4():void {\n if (!_decl0_89.authorised.value) { var _any:any = (null as any); }\n}\nfunction _View_PlaceOutletComponent_1_3():void {\n if (!_decl0_89.authorised.value) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_89.notAuthorisedNoticePortal;\n currVal_0;\n }\n}\nfunction _View_PlaceOutletComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_89.animationEnabled.value;\n currVal_0;\n const currVal_1:any = !_decl0_89.animationEnabled.value;\n currVal_1;\n const currVal_2:any = !_decl0_89.authorised.value;\n currVal_2;\n}\nfunction _View_TabbedPlaceNavigationComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _any.active;\n currVal_0;\n const currVal_1:any = (_decl0_23.active? 'page': null);\n currVal_1;\n const currVal_2:any = _decl0_23.disabled;\n currVal_2;\n const currVal_3:any = _decl0_23.tabIndex;\n currVal_3;\n const currVal_4:any = _decl0_23.disabled;\n currVal_4;\n const currVal_5:any = _decl0_23.active;\n currVal_5;\n const currVal_6:any = _decl0_90.getNavigationFace(_any.place).tooltip();\n currVal_6;\n const currVal_7:any = _decl0_90.commandFactory.create(_any.place);\n currVal_7;\n const currVal_8:any = [_decl0_90.getNavigationFace(_any.place)];\n currVal_8;\n const currVal_9:any = _decl0_77.requiresMissingIconInLayout;\n currVal_9;\n const currVal_10:any = _decl0_77.color;\n currVal_10;\n const pd_11:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_TabbedPlaceNavigationComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_22._showPaginationControls;\n currVal_0;\n const currVal_1:any = (_decl0_22._getLayoutDirection() == 'rtl');\n currVal_1;\n const currVal_2:any = ((_decl0_22.color !== 'warn') && (_decl0_22.color !== 'accent'));\n currVal_2;\n const currVal_3:any = (_decl0_22.color === 'accent');\n currVal_3;\n const currVal_4:any = (_decl0_22.color === 'warn');\n currVal_4;\n const currVal_5:any = _decl0_90.menuItems.value;\n currVal_5;\n const currVal_6:any = _decl0_90.trackByPlaceDef;\n currVal_6;\n}\nfunction _View_ListPlaceNavComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ListPlaceNavComponent_3_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_91.getNavigationFace(_any.place).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_91.commandFactory.create(_any.place);\n currVal_4;\n const currVal_5:any = _any.active;\n currVal_5;\n const currVal_6:any = [_decl0_91.getNavigationFace(_any.place)];\n currVal_6;\n const currVal_7:any = _decl0_77.requiresMissingIconInLayout;\n currVal_7;\n const currVal_8:any = _decl0_77.color;\n currVal_8;\n const pd_9:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_ListPlaceNavComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = '';\n currVal_0;\n const currVal_1:any = _decl0_91.menuItems.value;\n currVal_1;\n const currVal_2:any = _decl0_91.trackByPlaceDef;\n currVal_2;\n}\nfunction _View_SidePlaceNavigationComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.expanded;\n currVal_0;\n}\nfunction _View_SidePlaceNavigationComponent_4_2():void {\n if (_decl0_92.getNavigationFace(_any.place).icon()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.getNavigationFace(_any.place).icon();\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = _decl0_92.getNavigationFace(_any.place).tooltip();\n currVal_3;\n const currVal_4:any = _decl0_92.commandFactory.create(_any.place);\n currVal_4;\n const currVal_5:any = _any.active;\n currVal_5;\n const currVal_6:any = _decl0_92.getNavigationFace(_any.place).icon();\n currVal_6;\n const currVal_7:any = _decl0_92.getNavigationFace(_any.place).text();\n currVal_7;\n const pd_8:any = ((<any>_decl0_40.notifyClick(_any)) !== false);\n}\nfunction _View_SidePlaceNavigationComponent_4_3():void {\n if (_decl0_92.navEndTemplate) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.navEndTemplate;\n currVal_0;\n }\n}\nfunction _View_SidePlaceNavigationComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_30.disabled;\n currVal_0;\n const currVal_1:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_1;\n const currVal_2:any = (_decl0_30._avatar || _decl0_30._icon);\n currVal_2;\n const currVal_3:any = 'mat:menu';\n currVal_3;\n const currVal_4:any = 'mat:arrow_back';\n currVal_4;\n const currVal_5:any = _decl0_92.menuItems.value;\n currVal_5;\n const currVal_6:any = _decl0_92.trackByPlaceDef;\n currVal_6;\n const currVal_7:any = 1;\n currVal_7;\n const currVal_8:any = _decl0_92.navEndTemplate;\n currVal_8;\n const pd_9:any = ((<any>_decl0_92.toggleMenu()) !== false);\n}\nfunction _View_AbstractPlaceNavigationComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractPlaceNavigationComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NotAuthorisedNoticeComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NotAuthorisedNoticeComponent_6_0():void {\n var _any:any = (null as any);\n}\n"]}
@@ -49,13 +49,9 @@ export class Visit {
49
49
  });
50
50
  return new Visit(this.placeDefinition, params);
51
51
  }
52
- // @Trace()
53
52
  hasRoutingChangedFrom(other) {
54
53
  const samePlace = other.placeDefinition === this.placeDefinition;
55
- const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
56
- const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
57
- // console.log({currentParams, otherParams});
58
- const sameRouteParameters = _.isEqual(currentParams, otherParams);
54
+ const sameRouteParameters = _.isEqual(this.placeDefinition.getFormattedRouteParameters(this, true), this.placeDefinition.getFormattedRouteParameters(other, true));
59
55
  return !samePlace || !sameRouteParameters;
60
56
  }
61
57
  hasChangedFrom(other) {
@@ -1 +1 @@
1
- {"version":3,"file":"visit.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/visit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAS5B,MAAM,OAAO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,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjG,CAAC;CAEF","sourcesContent":["import { Trace } from '@coolon/pectin';\nimport * as _ from 'lodash';\nimport { PlaceDefinition } from './place-definition';\nimport { ParameterDefinition } from './route/parameter-definition';\n\ninterface Params {\n [p: string]: any;\n}\n\n\nexport class Visit {\n\n constructor(readonly placeDefinition: PlaceDefinition, private readonly visitParameters: Params = {}) {\n }\n\n // @Trace()\n getRouteId(): any {\n return this.placeDefinition.getRouteIdFrom(this);\n }\n\n // @Trace()\n hasRouteId(): boolean {\n return !_.isNil(this.getRouteId());\n }\n\n /**\n * Returns the value of the place parameter with the specified name. The parameter\n * name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the\n * same as the the ValueModel property name.\n * @param parameterDef the visit parameter definition\n */\n getParameterValue<T, S>(parameterDef: ParameterDefinition<T, S>): T {\n return this.visitParameters[parameterDef.name];\n }\n\n // @Trace()\n hasParameter(parameterDef: ParameterDefinition<any>): boolean {\n return Object.keys(this.visitParameters).includes(parameterDef.name);\n }\n\n replace<T>(parameter: ParameterDefinition<T, any>, value: T): Visit {\n return new Visit(this.placeDefinition, { ...this.visitParameters, [parameter.name]: value });\n }\n\n mergeRouteParameters<S>(routeParams: { [p: string]: any }): Visit {\n // todo: whitelist parameters.\n const routeParameterKeys = Object.keys(routeParams);\n const params = {};\n this.placeDefinition.getVisitParameterDefs().forEach(def => {\n if (def.isRouteId || def.isRouteParameter) {\n if (routeParameterKeys.includes(def.name)) {\n params[def.name] = routeParams[def.name];\n }\n } else {\n // copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the\n // defaults and remember sanitisation process.\n const value = this.getParameterValue(def);\n if (this.hasParameter(def)) {\n params[def.name] = value;\n }\n }\n });\n return new Visit(this.placeDefinition, params);\n }\n\n // @Trace()\n hasRoutingChangedFrom(other: Visit): boolean {\n const samePlace = other.placeDefinition === this.placeDefinition;\n const currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);\n const otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);\n // console.log({currentParams, otherParams});\n const sameRouteParameters = _.isEqual(currentParams, otherParams);\n return !samePlace || !sameRouteParameters;\n }\n\n hasChangedFrom(other: Visit) {\n const sameNonRouteParameters = _.isEqual(\n this.placeDefinition.getNonRouteParameters(this),\n this.placeDefinition.getNonRouteParameters(other)\n );\n return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);\n }\n\n toDebugString() {\n return Object.keys(this.visitParameters).map(k => `${k}=${this.visitParameters[k]}`).join(',');\n }\n\n}\n"]}
1
+ {"version":3,"file":"visit.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/visit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAS5B,MAAM,OAAO,KAAK;IAEhB,YAAqB,eAAgC,EAAmB,kBAA0B,EAAE;QAA/E,oBAAe,GAAf,eAAe,CAAiB;QAAmB,oBAAe,GAAf,eAAe,CAAa;IACpG,CAAC;IAED,WAAW;IACX,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,WAAW;IACX,UAAU;QACR,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACrC,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAO,YAAuC;QAC7D,OAAO,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,WAAW;IACX,YAAY,CAAC,YAAsC;QACjD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACvE,CAAC;IAED,OAAO,CAAI,SAAsC,EAAE,KAAQ;QACzD,OAAO,IAAI,KAAK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ACF,OAAO,CAAC,SAAS,IAAI,CAAC,mBAAmB,CAAC;IAC5C,CAAC;IAED,cAAc,CAAC,KAAY;QACzB,MAAM,sBAAsB,GAAG,CAAC,CAAC,OAAO,CACtC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAChD,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAClD,CAAC;QACF,OAAO,CAAC,sBAAsB,IAAI,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC;IAED,aAAa;QACX,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjG,CAAC;CAEF","sourcesContent":["import * as _ from 'lodash';\nimport { PlaceDefinition } from './place-definition';\nimport { ParameterDefinition } from './route/parameter-definition';\n\ninterface Params {\n [p: string]: any\n}\n\n\nexport class Visit {\n\n constructor(readonly placeDefinition: PlaceDefinition, private readonly visitParameters: Params = {}) {\n }\n\n // @Trace()\n getRouteId(): any {\n return this.placeDefinition.getRouteIdFrom(this);\n }\n\n // @Trace()\n hasRouteId(): boolean {\n return !_.isNil(this.getRouteId());\n }\n\n /**\n * Returns the value of the place parameter with the specified name. The parameter\n * name is taken from the `as` option, e.g. {as: 'aCustomName'} otherwise it is the\n * same as the the ValueModel property name.\n * @param parameterDef the visit parameter definition\n */\n getParameterValue<T, S>(parameterDef: ParameterDefinition<T, S>): T {\n return this.visitParameters[parameterDef.name];\n }\n\n // @Trace()\n hasParameter(parameterDef: ParameterDefinition<any>): boolean {\n return Object.keys(this.visitParameters).includes(parameterDef.name);\n }\n\n replace<T>(parameter: ParameterDefinition<T, any>, value: T): Visit {\n return new Visit(this.placeDefinition, { ...this.visitParameters, [parameter.name]: value });\n }\n\n mergeRouteParameters<S>(routeParams: { [p: string]: any }): Visit {\n // todo: whitelist parameters.\n const routeParameterKeys = Object.keys(routeParams);\n const params = {};\n this.placeDefinition.getVisitParameterDefs().forEach(def => {\n if (def.isRouteId || def.isRouteParameter) {\n if (routeParameterKeys.includes(def.name)) {\n params[def.name] = routeParams[def.name];\n }\n } else {\n // copy non route params as is, but only if they already exist otherwise we'll inject nil values and break the\n // defaults and remember sanitisation process.\n const value = this.getParameterValue(def);\n if (this.hasParameter(def)) {\n params[def.name] = value;\n }\n }\n });\n return new Visit(this.placeDefinition, params);\n }\n\n hasRoutingChangedFrom(other: Visit): boolean {\n const samePlace = other.placeDefinition === this.placeDefinition;\n const sameRouteParameters = _.isEqual(\n this.placeDefinition.getFormattedRouteParameters(this, true),\n this.placeDefinition.getFormattedRouteParameters(other, true)\n );\n return !samePlace || !sameRouteParameters;\n }\n\n hasChangedFrom(other: Visit) {\n const sameNonRouteParameters = _.isEqual(\n this.placeDefinition.getNonRouteParameters(this),\n this.placeDefinition.getNonRouteParameters(other)\n );\n return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);\n }\n\n toDebugString() {\n return Object.keys(this.visitParameters).map(k => `${k}=${this.visitParameters[k]}`).join(',');\n }\n\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"Visit":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./place-definition","name":"PlaceDefinition","line":12,"character":40},{"__symbolic":"reference","name":"any"}]}],"getRouteId":[{"__symbolic":"method"}],"hasRouteId":[{"__symbolic":"method"}],"getParameterValue":[{"__symbolic":"method"}],"hasParameter":[{"__symbolic":"method"}],"replace":[{"__symbolic":"method"}],"mergeRouteParameters":[{"__symbolic":"method"}],"hasRoutingChangedFrom":[{"__symbolic":"method"}],"hasChangedFrom":[{"__symbolic":"method"}],"toDebugString":[{"__symbolic":"method"}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"Visit":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./place-definition","name":"PlaceDefinition","line":11,"character":40},{"__symbolic":"reference","name":"any"}]}],"getRouteId":[{"__symbolic":"method"}],"hasRouteId":[{"__symbolic":"method"}],"getParameterValue":[{"__symbolic":"method"}],"hasParameter":[{"__symbolic":"method"}],"replace":[{"__symbolic":"method"}],"mergeRouteParameters":[{"__symbolic":"method"}],"hasRoutingChangedFrom":[{"__symbolic":"method"}],"hasChangedFrom":[{"__symbolic":"method"}],"toDebugString":[{"__symbolic":"method"}]}}}}]
@@ -2,6 +2,4 @@
2
2
  * @file Automatically generated by barrelsby.
3
3
  */
4
4
  export * from "./visibility-service";
5
- export * from "./markdown/markdown.service";
6
- export * from "./markdown/pill-plugin";
7
5
  //# sourceMappingURL=exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/services/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./visibility-service\";\nexport * from \"./markdown/markdown.service\";\nexport * from \"./markdown/pill-plugin\";\n"]}
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/services/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,sBAAsB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./visibility-service\";\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./visibility-service"},{"from":"./markdown/markdown.service"},{"from":"./markdown/pill-plugin"}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./visibility-service"}]}]