@coolon/angular-ui-powerups 0.0.126 → 0.0.129

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 (350) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +3745 -3019
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  5. package/coolon-angular-ui-powerups.d.ts +17 -18
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/coolon-angular-ui-powerups.js +16 -17
  8. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  9. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  10. package/esm2015/index.js +1 -1
  11. package/esm2015/index.js.map +1 -1
  12. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  13. package/esm2015/lib/interaction/abstract-interaction-context.js +104 -0
  14. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -0
  15. package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -0
  16. package/esm2015/lib/interaction/activity-ref.js +123 -0
  17. package/esm2015/lib/interaction/activity-ref.js.map +1 -0
  18. package/esm2015/lib/interaction/activity-ref.metadata.json +1 -0
  19. package/esm2015/lib/interaction/activity.js +21 -1
  20. package/esm2015/lib/interaction/activity.js.map +1 -1
  21. package/esm2015/lib/interaction/activity.metadata.json +1 -1
  22. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +199 -230
  23. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  24. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  25. package/esm2015/lib/interaction/components/{activity-outlet → activity-container/activity-outlet}/activity-outlet.component.js +24 -31
  26. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -0
  27. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -0
  28. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +1 -0
  29. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +1 -0
  30. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +2 -3
  31. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  32. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  33. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +4 -11
  34. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  35. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  36. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -3
  37. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  38. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  39. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +113 -0
  40. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -0
  41. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -0
  42. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +1 -0
  43. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
  44. package/esm2015/lib/interaction/index.js +7 -6
  45. package/esm2015/lib/interaction/index.js.map +1 -1
  46. package/esm2015/lib/interaction/index.metadata.json +1 -1
  47. package/esm2015/lib/interaction/interaction-context.js +12 -67
  48. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  49. package/esm2015/lib/interaction/interaction-context.metadata.json +1 -1
  50. package/esm2015/lib/interaction/interaction.module.js +4 -4
  51. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  52. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  53. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  54. package/esm2015/lib/interaction/route-synchronisation-adapter.js +17 -0
  55. package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -0
  56. package/esm2015/lib/interaction/route-synchronisation-adapter.metadata.json +1 -0
  57. package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js +72 -0
  58. package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -0
  59. package/esm2015/lib/interaction/services/interaction-service-routing-adapter.metadata.json +1 -0
  60. package/esm2015/lib/interaction/services/interaction.service.js +174 -104
  61. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  62. package/esm2015/lib/interaction/services/interaction.service.metadata.json +1 -1
  63. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +4 -2
  64. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
  65. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.metadata.json +1 -1
  66. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +79 -87
  67. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
  68. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.metadata.json +1 -1
  69. package/esm2015/lib/interaction/services/modal-interaction-context.factory.js +3 -1
  70. package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
  71. package/esm2015/lib/place/components/abstract-place-navigation.component.js +27 -6
  72. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  73. package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
  74. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +9 -3
  75. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  76. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  77. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +98 -110
  78. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  79. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  80. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +9 -3
  81. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  82. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
  83. package/esm2015/lib/place/guards/place.guard.js +14 -13
  84. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  85. package/esm2015/lib/place/guards/place.guard.metadata.json +1 -1
  86. package/esm2015/lib/place/index.js +15 -2
  87. package/esm2015/lib/place/index.js.map +1 -1
  88. package/esm2015/lib/place/index.metadata.json +1 -1
  89. package/esm2015/lib/place/{guards → navigation}/place-component-deactivation-handler.js +28 -22
  90. package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -0
  91. package/esm2015/lib/place/navigation/place-component-deactivation-handler.metadata.json +1 -0
  92. package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js +37 -0
  93. package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -0
  94. package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.metadata.json +1 -0
  95. package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +19 -0
  96. package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -0
  97. package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.metadata.json +1 -0
  98. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +95 -0
  99. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -0
  100. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.metadata.json +1 -0
  101. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +132 -0
  102. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -0
  103. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.metadata.json +1 -0
  104. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +123 -0
  105. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -0
  106. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.metadata.json +1 -0
  107. package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js +62 -0
  108. package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -0
  109. package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.metadata.json +1 -0
  110. package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +48 -0
  111. package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -0
  112. package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.metadata.json +1 -0
  113. package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +104 -0
  114. package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -0
  115. package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.metadata.json +1 -0
  116. package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +141 -0
  117. package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -0
  118. package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.metadata.json +1 -0
  119. package/esm2015/lib/place/navigation/session/navigating.js +54 -0
  120. package/esm2015/lib/place/navigation/session/navigating.js.map +1 -0
  121. package/esm2015/lib/place/navigation/session/navigating.metadata.json +1 -0
  122. package/esm2015/lib/place/navigation/session/navigation-context.js +38 -0
  123. package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -0
  124. package/esm2015/lib/place/navigation/session/navigation-context.metadata.json +1 -0
  125. package/esm2015/lib/place/navigation/session/navigation-session.js +326 -0
  126. package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -0
  127. package/esm2015/lib/place/navigation/session/navigation-session.metadata.json +1 -0
  128. package/esm2015/lib/place/navigation/session/pop-state-navigation.js +31 -0
  129. package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -0
  130. package/esm2015/lib/place/navigation/session/pop-state-navigation.metadata.json +1 -0
  131. package/esm2015/lib/place/place-component.js +46 -15
  132. package/esm2015/lib/place/place-component.js.map +1 -1
  133. package/esm2015/lib/place/place-component.metadata.json +1 -1
  134. package/esm2015/lib/place/place-router.js +307 -309
  135. package/esm2015/lib/place/place-router.js.map +1 -1
  136. package/esm2015/lib/place/place-router.metadata.json +1 -1
  137. package/esm2015/lib/place/place.module.js.map +1 -1
  138. package/esm2015/lib/place/place.module.metadata.json +1 -1
  139. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  140. package/esm2015/lib/place/route/parameter-decorators.js +1 -0
  141. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  142. package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
  143. package/esm2015/lib/place/url-service.js +126 -0
  144. package/esm2015/lib/place/url-service.js.map +1 -0
  145. package/esm2015/lib/place/url-service.metadata.json +1 -0
  146. package/esm2015/lib/place/url-service.ngfactory.js.map +1 -0
  147. package/esm2015/lib/place/url-snapshot.js +15 -1
  148. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  149. package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
  150. package/esm2015/lib/place/visit.js +10 -0
  151. package/esm2015/lib/place/visit.js.map +1 -1
  152. package/esm2015/lib/place/visit.metadata.json +1 -1
  153. package/esm2015/public_api.js +2 -2
  154. package/esm2015/public_api.js.map +1 -1
  155. package/esm5/coolon-angular-ui-powerups.js +16 -17
  156. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  157. package/esm5/index.js +1 -1
  158. package/esm5/index.js.map +1 -1
  159. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  160. package/esm5/lib/interaction/abstract-interaction-context.js +146 -0
  161. package/esm5/lib/interaction/abstract-interaction-context.js.map +1 -0
  162. package/esm5/lib/interaction/activity-ref.js +153 -0
  163. package/esm5/lib/interaction/activity-ref.js.map +1 -0
  164. package/esm5/lib/interaction/activity.js +29 -1
  165. package/esm5/lib/interaction/activity.js.map +1 -1
  166. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +273 -265
  167. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  168. package/esm5/lib/interaction/components/{activity-outlet → activity-container/activity-outlet}/activity-outlet.component.js +25 -32
  169. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -0
  170. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +1 -0
  171. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +1 -0
  172. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +2 -3
  173. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  174. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +4 -10
  175. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  176. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -3
  177. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  178. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +158 -0
  179. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -0
  180. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +1 -0
  181. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
  182. package/esm5/lib/interaction/index.js +7 -6
  183. package/esm5/lib/interaction/index.js.map +1 -1
  184. package/esm5/lib/interaction/interaction-context.js +12 -106
  185. package/esm5/lib/interaction/interaction-context.js.map +1 -1
  186. package/esm5/lib/interaction/interaction.module.js +4 -4
  187. package/esm5/lib/interaction/interaction.module.js.map +1 -1
  188. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  189. package/esm5/lib/interaction/route-synchronisation-adapter.js +17 -0
  190. package/esm5/lib/interaction/route-synchronisation-adapter.js.map +1 -0
  191. package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +98 -0
  192. package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -0
  193. package/esm5/lib/interaction/services/interaction.service.js +243 -117
  194. package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
  195. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +6 -2
  196. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
  197. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +96 -107
  198. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
  199. package/esm5/lib/interaction/services/modal-interaction-context.factory.js +3 -1
  200. package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
  201. package/esm5/lib/place/components/abstract-place-navigation.component.js +24 -6
  202. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  203. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +6 -3
  204. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  205. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +130 -129
  206. package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  207. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +6 -3
  208. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  209. package/esm5/lib/place/guards/place.guard.js +17 -13
  210. package/esm5/lib/place/guards/place.guard.js.map +1 -1
  211. package/esm5/lib/place/index.js +15 -2
  212. package/esm5/lib/place/index.js.map +1 -1
  213. package/esm5/lib/place/{guards → navigation}/place-component-deactivation-handler.js +45 -21
  214. package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +1 -0
  215. package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +49 -0
  216. package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -0
  217. package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +36 -0
  218. package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -0
  219. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +151 -0
  220. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -0
  221. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +221 -0
  222. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -0
  223. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +186 -0
  224. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -0
  225. package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +107 -0
  226. package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -0
  227. package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +77 -0
  228. package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -0
  229. package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +167 -0
  230. package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -0
  231. package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +185 -0
  232. package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -0
  233. package/esm5/lib/place/navigation/session/navigating.js +75 -0
  234. package/esm5/lib/place/navigation/session/navigating.js.map +1 -0
  235. package/esm5/lib/place/navigation/session/navigation-context.js +32 -0
  236. package/esm5/lib/place/navigation/session/navigation-context.js.map +1 -0
  237. package/esm5/lib/place/navigation/session/navigation-session.js +450 -0
  238. package/esm5/lib/place/navigation/session/navigation-session.js.map +1 -0
  239. package/esm5/lib/place/navigation/session/pop-state-navigation.js +50 -0
  240. package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +1 -0
  241. package/esm5/lib/place/place-component.js +61 -17
  242. package/esm5/lib/place/place-component.js.map +1 -1
  243. package/esm5/lib/place/place-router.js +407 -401
  244. package/esm5/lib/place/place-router.js.map +1 -1
  245. package/esm5/lib/place/place.module.js.map +1 -1
  246. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  247. package/esm5/lib/place/route/parameter-decorators.js +1 -0
  248. package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
  249. package/esm5/lib/place/url-service.js +176 -0
  250. package/esm5/lib/place/url-service.js.map +1 -0
  251. package/esm5/lib/place/url-service.ngfactory.js.map +1 -0
  252. package/esm5/lib/place/url-snapshot.js +22 -1
  253. package/esm5/lib/place/url-snapshot.js.map +1 -1
  254. package/esm5/lib/place/visit.js +14 -0
  255. package/esm5/lib/place/visit.js.map +1 -1
  256. package/esm5/public_api.js +2 -2
  257. package/esm5/public_api.js.map +1 -1
  258. package/fesm2015/coolon-angular-ui-powerups.js +2637 -2266
  259. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  260. package/fesm5/coolon-angular-ui-powerups.js +3694 -2980
  261. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  262. package/lib/interaction/abstract-interaction-context.d.ts +24 -0
  263. package/lib/interaction/activity-ref.d.ts +19 -0
  264. package/lib/interaction/activity.d.ts +5 -1
  265. package/lib/interaction/components/activity-container/activity-container.component.d.ts +42 -43
  266. package/lib/interaction/components/{activity-outlet → activity-container/activity-outlet}/activity-outlet.component.d.ts +7 -10
  267. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +2 -2
  268. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -5
  269. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -2
  270. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +24 -0
  271. package/lib/interaction/index.d.ts +6 -5
  272. package/lib/interaction/interaction-context.d.ts +8 -29
  273. package/lib/interaction/route-synchronisation-adapter.d.ts +5 -0
  274. package/lib/interaction/services/interaction-service-routing-adapter.d.ts +15 -0
  275. package/lib/interaction/services/interaction.service.d.ts +52 -24
  276. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -1
  277. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +15 -12
  278. package/lib/interaction/services/modal-interaction-context.factory.d.ts +2 -1
  279. package/lib/place/components/abstract-place-navigation.component.d.ts +5 -3
  280. package/lib/place/components/list-place-nav/list-place-nav.component.d.ts +2 -1
  281. package/lib/place/components/place-outlet/place-outlet.component.d.ts +9 -10
  282. package/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +2 -1
  283. package/lib/place/guards/place.guard.d.ts +4 -3
  284. package/lib/place/index.d.ts +15 -2
  285. package/lib/place/navigation/place-component-deactivation-handler.d.ts +22 -0
  286. package/lib/place/navigation/session/abstract-pop-state-navigation.d.ts +9 -0
  287. package/lib/place/navigation/session/event-cleanup/event-clean-up-session.d.ts +4 -0
  288. package/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.d.ts +27 -0
  289. package/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.d.ts +43 -0
  290. package/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.d.ts +33 -0
  291. package/lib/place/navigation/session/interactions/navigating-during-interaction.d.ts +15 -0
  292. package/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.d.ts +17 -0
  293. package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +24 -0
  294. package/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.d.ts +15 -0
  295. package/lib/place/navigation/session/navigating.d.ts +11 -0
  296. package/lib/place/navigation/session/navigation-context.d.ts +28 -0
  297. package/lib/place/navigation/session/navigation-session.d.ts +51 -0
  298. package/lib/place/navigation/session/pop-state-navigation.d.ts +7 -0
  299. package/lib/place/place-component.d.ts +6 -3
  300. package/lib/place/place-router.d.ts +39 -35
  301. package/lib/place/url-service.d.ts +30 -0
  302. package/lib/place/url-snapshot.d.ts +3 -1
  303. package/lib/place/visit.d.ts +1 -0
  304. package/package.json +1 -1
  305. package/schematics/place-routes/templates/place-routes.ts.template +4 -3
  306. package/esm2015/lib/interaction/abstract-activity.js +0 -13
  307. package/esm2015/lib/interaction/abstract-activity.js.map +0 -1
  308. package/esm2015/lib/interaction/abstract-activity.metadata.json +0 -1
  309. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.js +0 -21
  310. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.js.map +0 -1
  311. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.metadata.json +0 -1
  312. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.js.map +0 -1
  313. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.metadata.json +0 -1
  314. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.ngfactory.js.map +0 -1
  315. package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +0 -1
  316. package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js +0 -102
  317. package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js.map +0 -1
  318. package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.metadata.json +0 -1
  319. package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.ngfactory.js.map +0 -1
  320. package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
  321. package/esm2015/lib/interaction/interaction-context-base.js +0 -171
  322. package/esm2015/lib/interaction/interaction-context-base.js.map +0 -1
  323. package/esm2015/lib/interaction/interaction-context-base.metadata.json +0 -1
  324. package/esm2015/lib/place/guards/navigation-state.js +0 -1118
  325. package/esm2015/lib/place/guards/navigation-state.js.map +0 -1
  326. package/esm2015/lib/place/guards/navigation-state.metadata.json +0 -1
  327. package/esm2015/lib/place/guards/place-component-deactivation-handler.js.map +0 -1
  328. package/esm2015/lib/place/guards/place-component-deactivation-handler.metadata.json +0 -1
  329. package/esm5/lib/interaction/abstract-activity.js +0 -30
  330. package/esm5/lib/interaction/abstract-activity.js.map +0 -1
  331. package/esm5/lib/interaction/components/activity-outlet/activity-outlet-context.js +0 -21
  332. package/esm5/lib/interaction/components/activity-outlet/activity-outlet-context.js.map +0 -1
  333. package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.js.map +0 -1
  334. package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.ngfactory.js.map +0 -1
  335. package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +0 -1
  336. package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js +0 -119
  337. package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js.map +0 -1
  338. package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.ngfactory.js.map +0 -1
  339. package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
  340. package/esm5/lib/interaction/interaction-context-base.js +0 -228
  341. package/esm5/lib/interaction/interaction-context-base.js.map +0 -1
  342. package/esm5/lib/place/guards/navigation-state.js +0 -1491
  343. package/esm5/lib/place/guards/navigation-state.js.map +0 -1
  344. package/esm5/lib/place/guards/place-component-deactivation-handler.js.map +0 -1
  345. package/lib/interaction/abstract-activity.d.ts +0 -6
  346. package/lib/interaction/components/activity-outlet/activity-outlet-context.d.ts +0 -7
  347. package/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.d.ts +0 -17
  348. package/lib/interaction/interaction-context-base.d.ts +0 -29
  349. package/lib/place/guards/navigation-state.d.ts +0 -228
  350. package/lib/place/guards/place-component-deactivation-handler.d.ts +0 -15
@@ -1 +1 @@
1
- {"version":3,"file":"activity-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-container.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAEL,SAAS,EACT,YAAY,EACZ,KAAK,EAEL,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,MAAM,EAEN,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EAElB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;;;;;;;AAOvF;;;;;;;IAKE,oBAAqB,YAAe,EACf,aAA+C,EAC/C,kBAAsC,EACtC,iBAA2C;QAH3C,iBAAY,GAAZ,YAAY,CAAG;QACf,kBAAa,GAAb,aAAa,CAAkC;QAC/C,uBAAkB,GAAlB,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AOE,KAAK;oDA4BL,MAAM,SAAC,8BAA8B;gCAGrC,KAAK;uBAGL,SAAS,SAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;0BAGlC,YAAY,SAAC,uBAAuB;;IAiGvC,iCAAC;CAAA,AAjJD,CAKyD,sBAAsB,GA4I9E;SA5IY,0BAA0B;;;;;;IAErC,yEAAgF;;;;;IAEhF,mEAAyG;;IA8BzG,uEACuF;;IAEvF,mDACsB;;IAEtB,0CACkB;;IAElB,6CAC2D;;IAE3D,kDAA0E;;IAE1E,4CAAoC;;;;;IAEpC,mDAA4E","sourcesContent":["import {\n AfterViewInit,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output,\n QueryList,\n ViewChild,\n ViewChildren\n} from '@angular/core';\nimport { MatTabGroup } from '@angular/material';\nimport {\n assert,\n Constructable,\n Dsl,\n MutableListModel,\n MutableStream,\n MutableValueModel,\n ValueModel\n} from '@coolon/pectin';\n\nimport { Activity } from '../../activity';\nimport { InteractionContext } from '../../interaction-context';\nimport { InteractionContextBase } from '../../interaction-context-base';\nimport { ActivityOutletContext } from '../activity-outlet/activity-outlet-context';\nimport { ActivityOutletComponent } from '../activity-outlet/activity-outlet.component';\n\n/**\n * Note: this class is mutable and is stored in a list model. This is normally a big no no but\n * we're manually deriving other models from the list after view state changes. I.e. we not\n * using pectin chains on any of the mutable fields.\n */\nclass TabContext<D, R, E> implements ActivityOutletContext<D, R, E> {\n\n private _complete = false;\n private _component: Activity<D, R, E>;\n\n constructor(readonly activityData: D,\n readonly activityClass: Constructable<Activity<D, R, E>>,\n readonly interactionContext: InteractionContext,\n readonly activityCallbacks: Activity.Callbacks<R, E>) {\n }\n\n isComponentRealised(): boolean {\n return !!this._component;\n }\n\n isComplete() {\n return this._complete;\n }\n\n componentReady(component: Activity<D, R, E>) {\n assert.isNil(this._component);\n this._component = component;\n }\n\n get component(): Activity<D, R, E> {\n return this._component;\n }\n\n // @Trace()\n onDone(result: R): void {\n this._complete = true;\n this.activityCallbacks.onDone(result);\n }\n\n // @Trace()\n onCancel(error: E): void {\n this._complete = true;\n this.activityCallbacks.onCancel(error);\n }\n\n dispose() {\n this.component.dispose();\n }\n\n}\n\n\n@Component({\n selector: 'aup-activity-container',\n templateUrl: './activity-container.component.html',\n styleUrls: ['./activity-container.component.scss']\n})\nexport class ActivityContainerComponent<D, R, E> extends InteractionContextBase implements OnInit, AfterViewInit {\n\n private readonly throttledNestedActivityFinishEvents = new MutableStream<any>();\n\n private readonly _initialActivityOutletContext = new MutableValueModel<ActivityOutletContext<D, R, E>>();\n\n @Input()\n set initialActivityOutletContext(initialContext: ActivityOutletContext<D, R, E>) {\n assert.isNil(this._initialActivityOutletContext.value);\n // we clean up at the start as we leave the initial activity in place after it finishes\n // so that the activity remains visible during the inplace-interaction-context animations.\n this.activityTabs.value = [];\n this._activityList.value = [];\n const self = this;\n if (initialContext) {\n this._initialActivityOutletContext.value = initialContext;\n this.activityTabs.push(new TabContext(initialContext.activityData, initialContext.activityClass, this, {\n onDone: (result: R) => {\n self.finishInitialActivity();\n initialContext.onDone(result);\n },\n onCancel: (error: E) => {\n self.finishInitialActivity();\n initialContext.onCancel(error);\n }\n }));\n }\n }\n\n get initialActivityOutletContext() {\n return this._initialActivityOutletContext.value;\n }\n\n // tslint:disable-next-line:no-output-rename\n @Output('initialActivityOutletContext')\n initialActivityOutletContextEvent = new EventEmitter<ActivityOutletContext<D, R, E>>();\n\n @Input()\n dynamicHeight = false;\n\n @ViewChild('tabs', { static: true })\n tabs: MatTabGroup;\n\n @ViewChildren(ActivityOutletComponent)\n outlets: QueryList<ActivityOutletComponent<any, any, any>>;\n\n readonly activityTabs = new MutableListModel<TabContext<any, any, any>>();\n\n readonly active:ValueModel<boolean>;\n\n private readonly _activityList = new MutableListModel<Activity<any, any>>();\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n chain(this.throttledNestedActivityFinishEvents).throttle(50).subscribe(() => this.onNestedActivityFinished());\n this.setActivityList(this._activityList.readonly);\n this.active = chain(this._initialActivityOutletContext).isNotNil();\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit(): void {\n const { chain, observe } = Dsl.disposeWith(this);\n observe.valuesFrom(this.outlets.changes).subscribe(() => setTimeout(() => this.updateActivityList()));\n observe.valuesFrom(this.tabs.animationDone).subscribe(() => this.onAnimationFinished());\n this.updateActivityList();\n }\n\n _startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1> {\n this.cleanupStaleNestedActivities();\n const self = this;\n return new Promise<R1>((resolve, reject) => {\n const context = new TabContext(data, activityType, self, {\n onDone: function(result: R1) {\n resolve(result);\n self.throttledNestedActivityFinishEvents.publish({});\n },\n onCancel: function(error: E1) {\n reject(error);\n self.throttledNestedActivityFinishEvents.publish({});\n }\n });\n self.activityTabs.push(context);\n self.tabs.selectedIndex = this.activityTabs.length;\n });\n }\n\n private finishInitialActivity() {\n this.updateActivityList();\n this._initialActivityOutletContext.value = null;\n this.initialActivityOutletContextEvent.emit(null);\n }\n\n // @Trace()\n private onNestedActivityFinished() {\n this.synchroniseSelectedTabIndex();\n this.updateActivityList();\n }\n\n // @Trace()\n private cleanupStaleNestedActivities() {\n if (this.tabs.selectedIndex < this.activityTabs.length - 1) {\n const tabs = this.activityTabs.value;\n const remainingActivities = tabs.slice(0, 1 + this.tabs.selectedIndex);\n const finishedActivityTabs = tabs.slice(1 + this.tabs.selectedIndex);\n finishedActivityTabs.forEach(a => a.dispose());\n this.activityTabs.runInTransaction(draft => {\n\n draft.value = remainingActivities;\n });\n }\n }\n\n /**\n * Synchronises the selected tab index. Returns true if there was no change to the selected index.\n */\n // @Trace()\n private synchroniseSelectedTabIndex(): boolean {\n const previousIndex = this.tabs.selectedIndex;\n const newIndex = this.activityTabs.query().findIndex(t => t.isComplete()) - 1;\n this.tabs.selectedIndex = newIndex;\n return previousIndex === newIndex;\n }\n\n // @Trace()\n private onAnimationFinished() {\n this.getSelectedOutlet().component.onActivityReady();\n this.cleanupStaleNestedActivities();\n this.updateActivityList();\n }\n\n private updateActivityList() {\n this._activityList.value = this.activityTabs.value.filter(t => !t.isComplete() && t.isComponentRealised()).map(t => t.component);\n }\n\n private getSelectedOutlet() {\n return this.outlets.toArray()[this.tabs.selectedIndex];\n }\n}\n"]}
1
+ {"version":3,"file":"activity-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-container.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAiB,SAAS,EAAE,KAAK,EAAU,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,MAAM,EAA6B,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAc,MAAM,gBAAgB,CAAC;AAC7G,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;;;;AAEtF;IAKyD,sDAA0B;IAqBjF;QAAA,YACE,iBAAO,SACR;QApBD,mBAAa,GAAG,KAAK,CAAC;QAQtB,kBAAY,GAAiC,EAAE,CAAC;QAOxC,aAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;;IAKzC,CAAC;;;;IAED,6CAAQ;;;IAAR;IACA,CAAC;;;;IAED,oDAAe;;;IAAf;QAAA,iBAGC;QAFO,IAAA,0BAA0C,EAAxC,gBAAK,EAAE,oBAAiC;QAChD,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS;;;QAAC,cAAM,OAAA,KAAI,CAAC,mBAAm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IAEtD,6CAAyC;;;;;IACzC,4DAAoC","sourcesContent":["import { AfterViewInit, Component, Input, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';\nimport { MatTabGroup } from '@angular/material';\nimport { assert, Constructable, Disposable, Dsl, GarbageCollector, Trace, ValueModel } from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport _ from 'lodash';\nimport { AbstractInteractionContext } from '../../abstract-interaction-context';\nimport { Activity } from '../../activity';\nimport { ActivityRef } from '../../activity-ref';\nimport { InteractionService } from '../../services/interaction.service';\nimport { ActivityOutletComponent } from './activity-outlet/activity-outlet.component';\n\n@Component({\n selector: 'aup-activity-container',\n templateUrl: './activity-container.component.html',\n styleUrls: ['./activity-container.component.scss']\n})\nexport class ActivityContainerComponent<D, R, E> extends AbstractInteractionContext implements OnInit, AfterViewInit {\n\n @Input()\n dynamicHeight = false;\n\n @ViewChild('tabs', { static: true })\n tabs: MatTabGroup;\n\n @ViewChildren(ActivityOutletComponent)\n activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;\n\n activityTabs: ActivityRef<any, any, any>[] = [];\n\n private _identifier: string;\n private _deferredCleanUp: Promise<any>;\n\n private interactionServiceApi: InteractionService.Api;\n\n private garbage = new GarbageCollector();\n private syncSelectedTabTimeout: any;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit(): void {\n const { chain, observe } = Dsl.disposeWith(this);\n observe.valuesFrom(this.tabs.animationDone).subscribe(() => this.onAnimationFinished());\n }\n\n initialise(identifier: string, api: InteractionService.Api) {\n assert.isFalsey(this.isInitialised());\n assert.notNil(identifier);\n assert.notNil(api);\n this._identifier = identifier;\n this.interactionServiceApi = api;\n }\n\n get identifier() {\n return this._identifier;\n }\n\n isInitialised() {\n return !!this.identifier;\n }\n\n /**\n * Returns true if an activity is currently running.\n */\n isActive(): boolean {\n return this.getActiveActivityCount() > 0;\n }\n\n registerDisposable<T extends Disposable>(disposable: T): T {\n return this.garbage.registerDisposable(disposable);\n }\n\n @Trace()\n dispose(): void {\n // TODO: think about auto cancelling any outstanding activity on dispose.\n // See NavigationState.Navigating for a use-case.\n assert.isFalsey(this.isActive());\n this.garbage.dispose();\n }\n\n getActiveActivityRef(): ActivityRef<any, any, any> {\n if (!this.isActive()) {\n lang.illegalState('no activity in progress');\n }\n return _.findLast(this.activityTabs, tab => !tab.isComplete());\n }\n\n /**\n * Cancels the current activity and returns true the context is no longer active, false if\n * there is still another activity running.\n */\n // @Trace()\n async cancelActiveActivity(): Promise<boolean> {\n const activity = this.getActiveActivityRef();\n activity.cancel();\n if (this.isCleaningUp()) {\n return this.waitForInteractionContextCleanupToFinish();\n } else {\n return !this.isActive();\n }\n }\n\n // TODO: this handling of multiple nested activities is only used by the activity component and is not a general case.\n // @Trace()\n protected createAndLaunchActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data: D1, disableClose: boolean): Promise<R1> {\n assert.isTruthy(this.isInitialised()); // make sure we've been initialised\n const activityRef = new ActivityRef<D1, R1, E1>(activityType, data, () => {\n const activeActivityCount = this.getActiveActivityCount() > 0;\n if (activeActivityCount) {\n this.triggerTabSynchronisation();\n } else {\n this.finishAndStartCleanup();\n }\n });\n this.launchActivity(activityRef);\n // if this is the first activity let the interaction service know.\n if (this.activityTabs.length === 1) {\n // console.log('Now active!!!');\n this.interactionServiceApi.notifyActive(this);\n }\n return activityRef.activityResult;\n }\n\n private getActiveActivityCount(): number {\n return this.activityTabs.filter(ref => !ref.isComplete()).length;\n }\n\n /**\n * Checks if this interaction context has finished an is in the process of waiting\n * for all the infrastructure (including route updates) to be completed.\n */\n isCleaningUp(): boolean {\n return !!this._deferredCleanUp;\n }\n\n async waitForInteractionContextCleanupToFinish(): Promise<any> {\n return this._deferredCleanUp ?\n this._deferredCleanUp :\n true;\n }\n\n // @Trace()\n private finishAndStartCleanup(): void {\n if (!this._deferredCleanUp) {\n const promise = this.interactionServiceApi.notifyFinished(this);\n this._deferredCleanUp = promise\n .finally(() => {\n this._deferredCleanUp = null;\n });\n }\n }\n\n// @Trace()\n launchActivity<D1, R1, E1>(activityRef: ActivityRef<D1, R1, E1>) {\n const cleanedTabs = this.activityTabs.filter(tab => !tab.isComplete());\n this.activityTabs = cleanedTabs.concat(activityRef);\n this.tabs.selectedIndex = this.activityTabs.length;\n }\n\n activityIndex(index: number, activityRef: ActivityRef<any, any, any>) {\n return index;\n };\n\n\n // @Trace()\n private onAnimationFinished() {\n this.getSelectedOutlet().component.onActivityReady();\n this.activityTabs = this.activityTabs.filter(tab => !tab.isComplete());\n }\n\n /**\n * Synchronises the selected tab index. Returns true if there was no change to the selected index.\n */\n // @Trace()\n private synchroniseSelectedTabIndex(): boolean {\n const previousIndex = this.tabs.selectedIndex;\n const newIndex = this.getActiveActivityCount() - 1;\n this.tabs.selectedIndex = newIndex;\n return previousIndex === newIndex;\n }\n\n private getSelectedOutlet() {\n return this.activityOutlets.toArray()[this.tabs.selectedIndex];\n }\n\n // @Trace()\n private triggerTabSynchronisation() {\n if (this.syncSelectedTabTimeout) {\n clearTimeout(this.syncSelectedTabTimeout);\n }\n this.syncSelectedTabTimeout = setTimeout(() => {\n this.syncSelectedTabTimeout = null;\n this.synchroniseSelectedTabIndex();\n }, 75);\n }\n}\n"]}
@@ -3,15 +3,12 @@
3
3
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
4
  */
5
5
  import { Component, ComponentFactoryResolver, Injector, Input, ViewContainerRef } from '@angular/core';
6
- import { ACTIVITY_DATA } from '../../activity';
7
- import { InteractionContext } from '../../interaction-context';
8
- import { assert } from '@coolon/pectin';
6
+ import { lang } from '@coolon/typescript-utilities';
7
+ import { ACTIVITY_DATA } from '../../../activity';
8
+ import { ActivityRef } from '../../../activity-ref';
9
9
  /**
10
10
  * ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an
11
11
  * external service.
12
- *
13
- * It might be nice to have wrapper component that allows more declarative use, i.e.
14
- * <activity-view [activityClass]="...", [activityData]="..." (done)=".." (cancel)="..."></activity-view>
15
12
  * @template D, R, E
16
13
  */
17
14
  var ActivityOutletComponent = /** @class */ (function () {
@@ -20,21 +17,23 @@ var ActivityOutletComponent = /** @class */ (function () {
20
17
  this.viewContainerRef = viewContainerRef;
21
18
  this.injector = injector;
22
19
  }
23
- Object.defineProperty(ActivityOutletComponent.prototype, "activityContext", {
20
+ Object.defineProperty(ActivityOutletComponent.prototype, "activityRef", {
24
21
  get: /**
25
22
  * @return {?}
26
23
  */
27
24
  function () {
28
- return this._activityContext;
25
+ return this._activityRef;
29
26
  },
30
27
  set: /**
31
- * @param {?} activityContext
28
+ * @param {?} activityRef
32
29
  * @return {?}
33
30
  */
34
- function (activityContext) {
35
- assert.isNil(this._activityContext);
36
- this._activityContext = activityContext;
37
- this.loadActivity(activityContext);
31
+ function (activityRef) {
32
+ if (this.activityRef && !this.activityRef.isComplete()) {
33
+ lang.illegalState("changing activity before previous one has completed");
34
+ }
35
+ this._activityRef = activityRef;
36
+ this.loadActivity(activityRef);
38
37
  },
39
38
  enumerable: true,
40
39
  configurable: true
@@ -49,33 +48,27 @@ var ActivityOutletComponent = /** @class */ (function () {
49
48
  function () {
50
49
  };
51
50
  /**
52
- * @param {?} activityContext
51
+ * @param {?} activityRef
53
52
  * @return {?}
54
53
  */
55
54
  ActivityOutletComponent.prototype.loadActivity = /**
56
- * @param {?} activityContext
55
+ * @param {?} activityRef
57
56
  * @return {?}
58
57
  */
59
- function (activityContext) {
58
+ function (activityRef) {
60
59
  /** @type {?} */
61
60
  var injector = Injector.create({
62
61
  providers: [
63
- {
64
- provide: InteractionContext,
65
- useValue: this.interactionContext
66
- },
67
- { provide: ACTIVITY_DATA, useValue: activityContext.activityData }
62
+ { provide: ACTIVITY_DATA, useValue: activityRef.activityData }
68
63
  ],
69
64
  parent: this.injector
70
65
  });
71
66
  /** @type {?} */
72
- var componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityContext.activityClass);
67
+ var componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityRef.activityClass);
73
68
  this.viewContainerRef.clear();
69
+ // console.log(`creating component -> ${activityRef.activityClass.name}`);
74
70
  this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);
75
- this.activityComponentRef.instance.initialise(activityContext);
76
- if (this.activityContext.componentReady) {
77
- this.activityContext.componentReady(this.component);
78
- }
71
+ this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);
79
72
  };
80
73
  Object.defineProperty(ActivityOutletComponent.prototype, "component", {
81
74
  get: /**
@@ -101,25 +94,25 @@ var ActivityOutletComponent = /** @class */ (function () {
101
94
  { type: Injector }
102
95
  ]; };
103
96
  ActivityOutletComponent.propDecorators = {
104
- interactionContext: [{ type: Input }],
105
- activityContext: [{ type: Input }]
97
+ nestedInteractionContext: [{ type: Input }],
98
+ activityRef: [{ type: Input }]
106
99
  };
107
100
  return ActivityOutletComponent;
108
101
  }());
109
102
  export { ActivityOutletComponent };
110
103
  if (false) {
111
- /** @type {?} */
112
- ActivityOutletComponent.prototype.interactionContext;
113
104
  /**
114
105
  * @type {?}
115
106
  * @private
116
107
  */
117
- ActivityOutletComponent.prototype._activityContext;
108
+ ActivityOutletComponent.prototype.activityComponentRef;
109
+ /** @type {?} */
110
+ ActivityOutletComponent.prototype.nestedInteractionContext;
118
111
  /**
119
112
  * @type {?}
120
113
  * @private
121
114
  */
122
- ActivityOutletComponent.prototype.activityComponentRef;
115
+ ActivityOutletComponent.prototype._activityRef;
123
116
  /**
124
117
  * @type {?}
125
118
  * @private
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-outlet.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EACL,SAAS,EACT,wBAAwB,EAExB,QAAQ,EACR,KAAK,EAEL,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,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;QACjG,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAC5G,CAAC;IAED,sBAAI,8CAAS;;;;QAAb;YACE,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC;QAC5C,CAAC;;;OAAA;;gBArDF,SAAS,SAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,QAAQ,EAAE,EAAE;;iBAEb;;;;gBArBC,wBAAwB;gBAKxB,gBAAgB;gBAHhB,QAAQ;;;2CAwBP,KAAK;8BAKL,KAAK;;IAyCR,8BAAC;CAAA,AAvDD,IAuDC;SAlDY,uBAAuB;;;;;;IAElC,uDAA8D;;IAE9D,2DAC6C;;;;;IAE7C,+CAA2C;;;;;IAgBzC,2DAA0D;;;;;IAC1D,mDAA0C;;;;;IAC1C,2CAA0B","sourcesContent":["import {\n Component,\n ComponentFactoryResolver,\n ComponentRef,\n Injector,\n Input,\n OnInit,\n ViewContainerRef\n} from '@angular/core';\nimport { assert } from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport { Activity, ACTIVITY_DATA } from '../../../activity';\nimport { ActivityRef } from '../../../activity-ref';\nimport { InteractionContext } from '../../../interaction-context';\n\n/**\n * ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an\n * external service.\n */\n@Component({\n selector: 'aup-activity-outlet',\n template: '',\n styleUrls: ['./activity-outlet.component.scss']\n})\nexport class ActivityOutletComponent<D, R, E> implements OnInit {\n\n private activityComponentRef: ComponentRef<Activity<D, R, E>>;\n\n @Input()\n nestedInteractionContext: InteractionContext;\n\n private _activityRef: ActivityRef<D, R, E>;\n\n @Input()\n set activityRef(activityRef: ActivityRef<D, R, E>) {\n if (this.activityRef && !this.activityRef.isComplete()) {\n lang.illegalState(\"changing activity before previous one has completed\")\n }\n this._activityRef = activityRef;\n this.loadActivity(activityRef);\n };\n\n get activityRef(): ActivityRef<D, R, E> {\n return this._activityRef;\n }\n\n constructor(\n private componentFactoryResolver: ComponentFactoryResolver,\n private viewContainerRef: ViewContainerRef,\n private injector: Injector\n ) {\n }\n\n ngOnInit() {\n }\n\n loadActivity(activityRef: ActivityRef<D, R, E>) {\n const injector = Injector.create({\n providers: [\n { provide: ACTIVITY_DATA, useValue: activityRef.activityData }\n ],\n parent: this.injector\n });\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityRef.activityClass);\n this.viewContainerRef.clear();\n // console.log(`creating component -> ${activityRef.activityClass.name}`);\n this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);\n this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);\n }\n\n get component(): Activity<D, R, E> {\n return this.activityComponentRef.instance;\n }\n\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-outlet.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-outlet.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -4,8 +4,7 @@
4
4
  */
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, Inject } from '@angular/core';
7
- import { AbstractActivity } from '../../abstract-activity';
8
- import { ACTIVITY_DATA } from '../../activity';
7
+ import { Activity, ACTIVITY_DATA } from '../../activity';
9
8
  var AlertDialogComponent = /** @class */ (function (_super) {
10
9
  tslib_1.__extends(AlertDialogComponent, _super);
11
10
  function AlertDialogComponent(alert) {
@@ -33,7 +32,7 @@ var AlertDialogComponent = /** @class */ (function (_super) {
33
32
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
34
33
  ]; };
35
34
  return AlertDialogComponent;
36
- }(AbstractActivity));
35
+ }(Activity));
37
36
  export { AlertDialogComponent };
38
37
  if (false) {
39
38
  /** @type {?} */
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/alert-dialog/alert-dialog.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C;IAK0C,gDAA6B;IAErE,8BAA4C,KAAY;QAAxD,YACE,iBAAO,SACR;QAF2C,WAAK,GAAL,KAAK,CAAO;;IAExD,CAAC;;;;IAED,uCAAQ;;;IAAR;IACA,CAAC;;gBAZF,SAAS,SAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,0TAA4C;;iBAE7C;;;;gDAGc,MAAM,SAAC,aAAa;;IAOnC,2BAAC;CAAA,AAdD,CAK0C,gBAAgB,GASzD;SATY,oBAAoB;;;IAEnB,qCAA4C","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\nimport { AbstractActivity } from '../../abstract-activity';\nimport { ACTIVITY_DATA } from '../../activity';\nimport { Alert } from '../../alert';\n\n@Component({\n selector: 'aup-alert-dialog',\n templateUrl: './alert-dialog.component.html',\n styleUrls: ['./alert-dialog.component.scss']\n})\nexport class AlertDialogComponent extends AbstractActivity<Alert, void> implements OnInit {\n\n constructor(@Inject(ACTIVITY_DATA) readonly alert: Alert) {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
1
+ {"version":3,"file":"alert-dialog.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/alert-dialog/alert-dialog.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGzD;IAK0C,gDAAqB;IAE7D,8BAA4C,KAAY;QAAxD,YACE,iBAAO,SACR;QAF2C,WAAK,GAAL,KAAK,CAAO;;IAExD,CAAC;;;;IAED,uCAAQ;;;IAAR;IACA,CAAC;;gBAZF,SAAS,SAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,0TAA4C;;iBAE7C;;;;gDAGc,MAAM,SAAC,aAAa;;IAOnC,2BAAC;CAAA,AAdD,CAK0C,QAAQ,GASjD;SATY,oBAAoB;;;IAEnB,qCAA4C","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\nimport { Activity, ACTIVITY_DATA } from '../../activity';\nimport { Alert } from '../../alert';\n\n@Component({\n selector: 'aup-alert-dialog',\n templateUrl: './alert-dialog.component.html',\n styleUrls: ['./alert-dialog.component.scss']\n})\nexport class AlertDialogComponent extends Activity<Alert, void> implements OnInit {\n\n constructor(@Inject(ACTIVITY_DATA) readonly alert: Alert) {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
@@ -5,18 +5,15 @@
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, Inject } from '@angular/core';
7
7
  import { assert } from '@coolon/pectin';
8
- import { AbstractActivity } from '../../abstract-activity';
9
- import { ACTIVITY_DATA } from '../../activity';
10
- import { InteractionContext } from '../../interaction-context';
8
+ import { Activity, ACTIVITY_DATA } from '../../activity';
11
9
  /**
12
10
  * @template D, R, E
13
11
  */
14
12
  var ConfirmThenDialogComponent = /** @class */ (function (_super) {
15
13
  tslib_1.__extends(ConfirmThenDialogComponent, _super);
16
- function ConfirmThenDialogComponent(config, interactionContext) {
14
+ function ConfirmThenDialogComponent(config) {
17
15
  var _this = _super.call(this) || this;
18
16
  _this.config = config;
19
- _this.interactionContext = interactionContext;
20
17
  assert.notNil(config);
21
18
  return _this;
22
19
  }
@@ -76,17 +73,14 @@ var ConfirmThenDialogComponent = /** @class */ (function (_super) {
76
73
  ];
77
74
  /** @nocollapse */
78
75
  ConfirmThenDialogComponent.ctorParameters = function () { return [
79
- { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] },
80
- { type: InteractionContext }
76
+ { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
81
77
  ]; };
82
78
  return ConfirmThenDialogComponent;
83
- }(AbstractActivity));
79
+ }(Activity));
84
80
  export { ConfirmThenDialogComponent };
85
81
  if (false) {
86
82
  /** @type {?} */
87
83
  ConfirmThenDialogComponent.prototype.config;
88
- /** @type {?} */
89
- ConfirmThenDialogComponent.prototype.interactionContext;
90
84
  }
91
85
  (function (ConfirmThenDialogComponent) {
92
86
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-then-dialog.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAiB,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAY,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;;;;AAE/D;IAKuD,sDAA8D;IAEnH,oCAA4C,MAA8C,EAAW,kBAAqC;QAA1I,YACE,iBAAO,SAER;QAH2C,YAAM,GAAN,MAAM,CAAwC;QAAW,wBAAkB,GAAlB,kBAAkB,CAAmB;QAExI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;;IACxB,CAAC;;;;IAED,6CAAQ;;;IAAR;IACA,CAAC;IAED,sBAAI,+CAAO;;;;QAAX;YACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7B,CAAC;;;OAAA;;;;IAED,kDAAa;;;IAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;;;;IAED,8CAAS;;;IAAT;QAAA,iBAIC;QAHC,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC9E,IAAI;;;;QAAC,UAAC,MAAM,IAAK,OAAA,KAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAjB,CAAiB,EAAC;aACnC,KAAK;;;;QAAC,UAAA,KAAK,IAAI,OAAA,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAlB,CAAkB,EAAC,CAAC;IACxC,CAAC;;gBA3BF,SAAS,SAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,wdAAmD;;iBAEpD;;;;gDAGc,MAAM,SAAC,aAAa;gBAT1B,kBAAkB;;IA8B3B,iCAAC;CAAA,AA5BD,CAKuD,gBAAgB,GAuBtE;SAvBY,0BAA0B;;;IAEzB,4CAA8E;;IAAE,wDAA8C;;AAuB5I,WAAiB,0BAA0B;;;;;IACzC,mBAIC;;;;QAHC,uBAAgB;;QAChB,4BAA8C;;QAC9C,oBAAO;;AAEX,CAAC,EANgB,0BAA0B,KAA1B,0BAA0B,QAM1C","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\nimport { assert, Constructable } from '@coolon/pectin';\nimport { AbstractActivity } from '../../abstract-activity';\nimport { Activity, ACTIVITY_DATA } from '../../activity';\nimport { Confirm } from '../../confirm';\nimport { InteractionContext } from '../../interaction-context';\n\n@Component({\n selector: 'aup-confirmation-dialog',\n templateUrl: './confirm-then-dialog.component.html',\n styleUrls: ['./confirm-then-dialog.component.scss']\n})\nexport class ConfirmThenDialogComponent<D,R,E> extends AbstractActivity<ConfirmThenDialogComponent.Data<D,R,E>, R, E> implements OnInit {\n\n constructor(@Inject(ACTIVITY_DATA) readonly config: ConfirmThenDialogComponent.Data<D,R,E>, readonly interactionContext:InteractionContext) {\n super();\n assert.notNil(config);\n }\n\n ngOnInit() {\n }\n\n get confirm():Confirm {\n return this.config.confirm;\n }\n\n isDestructive(): boolean {\n return this.confirm.destructive && this.confirm.destructive();\n }\n\n onConfirm() {\n this.interactionContext.startActivity(this.config.activityType, this.config.data)\n .then((result) => this.done(result))\n .catch(error => this.cancel(error));\n }\n}\n\nexport namespace ConfirmThenDialogComponent {\n export interface Data<D, R, E> {\n confirm:Confirm,\n activityType:Constructable<Activity<D, R, E>>,\n data: D\n }\n}\n"]}
1
+ {"version":3,"file":"confirm-then-dialog.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAiB,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;;;;AAIzD;IAKyD,sDAAwD;IAE/G,oCAA4C,MAAgD;QAA5F,YACE,iBAAO,SAER;QAH2C,YAAM,GAAN,MAAM,CAA0C;QAE1F,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;;IACxB,CAAC;;;;IAED,6CAAQ;;;IAAR;IACA,CAAC;IAED,sBAAI,+CAAO;;;;QAAX;YACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7B,CAAC;;;OAAA;;;;IAED,kDAAa;;;IAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;;;;IAED,8CAAS;;;IAAT;QAAA,iBAIC;QAHC,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC9E,IAAI;;;;QAAC,UAAC,MAAM,IAAK,OAAA,KAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAjB,CAAiB,EAAC;aACnC,KAAK;;;;QAAC,UAAA,KAAK,IAAI,OAAA,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAlB,CAAkB,EAAC,CAAC;IACxC,CAAC;;gBA3BF,SAAS,SAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,wdAAmD;;iBAEpD;;;;gDAGc,MAAM,SAAC,aAAa;;IAqBnC,iCAAC;CAAA,AA5BD,CAKyD,QAAQ,GAuBhE;SAvBY,0BAA0B;;;IAEzB,4CAAgF;;AAuB9F,WAAiB,0BAA0B;;;;;IACzC,mBAIC;;;;QAHC,uBAAiB;;QACjB,4BAA+C;;QAC/C,oBAAO;;AAEX,CAAC,EANgB,0BAA0B,KAA1B,0BAA0B,QAM1C","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\nimport { assert, Constructable } from '@coolon/pectin';\nimport { Activity, ACTIVITY_DATA } from '../../activity';\nimport { Confirm } from '../../confirm';\nimport { InteractionContext } from '../../interaction-context';\n\n@Component({\n selector: 'aup-confirmation-dialog',\n templateUrl: './confirm-then-dialog.component.html',\n styleUrls: ['./confirm-then-dialog.component.scss']\n})\nexport class ConfirmThenDialogComponent<D, R, E> extends Activity<ConfirmThenDialogComponent.Data<D, R, E>, R, E> implements OnInit {\n\n constructor(@Inject(ACTIVITY_DATA) readonly config: ConfirmThenDialogComponent.Data<D, R, E>) {\n super();\n assert.notNil(config);\n }\n\n ngOnInit() {\n }\n\n get confirm(): Confirm {\n return this.config.confirm;\n }\n\n isDestructive(): boolean {\n return this.confirm.destructive && this.confirm.destructive();\n }\n\n onConfirm() {\n this.interactionContext.startActivity(this.config.activityType, this.config.data)\n .then((result) => this.done(result))\n .catch(error => this.cancel(error));\n }\n}\n\nexport namespace ConfirmThenDialogComponent {\n export interface Data<D, R, E> {\n confirm: Confirm,\n activityType: Constructable<Activity<D, R, E>>,\n data: D\n }\n}\n"]}
@@ -5,8 +5,7 @@
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, Inject } from '@angular/core';
7
7
  import { assert } from '@coolon/pectin';
8
- import { AbstractActivity } from '../../abstract-activity';
9
- import { ACTIVITY_DATA } from '../../activity';
8
+ import { Activity, ACTIVITY_DATA } from '../../activity';
10
9
  var ConfirmationDialogComponent = /** @class */ (function (_super) {
11
10
  tslib_1.__extends(ConfirmationDialogComponent, _super);
12
11
  function ConfirmationDialogComponent(confirm) {
@@ -44,7 +43,7 @@ var ConfirmationDialogComponent = /** @class */ (function (_super) {
44
43
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
45
44
  ]; };
46
45
  return ConfirmationDialogComponent;
47
- }(AbstractActivity));
46
+ }(Activity));
48
47
  export { ConfirmationDialogComponent };
49
48
  if (false) {
50
49
  /** @type {?} */
@@ -1 +1 @@
1
- {"version":3,"file":"confirmation-dialog.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/confirmation-dialog/confirmation-dialog.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C;IAKiD,uDAA+B;IAE9E,qCAA4C,OAAgB;QAA5D,YACE,iBAAO,SAER;QAH2C,aAAO,GAAP,OAAO,CAAS;QAE1D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;;IACzB,CAAC;;;;IAED,8CAAQ;;;IAAR;IACA,CAAC;;;;IAED,mDAAa;;;IAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;;gBAjBF,SAAS,SAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,mdAAmD;;iBAEpD;;;;gDAGc,MAAM,SAAC,aAAa;;IAWnC,kCAAC;CAAA,AAlBD,CAKiD,gBAAgB,GAahE;SAbY,2BAA2B;;;IAE1B,8CAAgD","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\nimport { assert } from '@coolon/pectin';\nimport { AbstractActivity } from '../../abstract-activity';\nimport { ACTIVITY_DATA } from '../../activity';\nimport { Confirm } from '../../confirm';\n\n@Component({\n selector: 'aup-confirmation-dialog',\n templateUrl: './confirmation-dialog.component.html',\n styleUrls: ['./confirmation-dialog.component.scss']\n})\nexport class ConfirmationDialogComponent extends AbstractActivity<Confirm, void> implements OnInit {\n\n constructor(@Inject(ACTIVITY_DATA) readonly confirm: Confirm) {\n super();\n assert.notNil(confirm);\n }\n\n ngOnInit() {\n }\n\n isDestructive(): boolean {\n return this.confirm.destructive && this.confirm.destructive();\n }\n}\n"]}
1
+ {"version":3,"file":"confirmation-dialog.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/confirmation-dialog/confirmation-dialog.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGzD;IAKiD,uDAAuB;IAEtE,qCAA4C,OAAgB;QAA5D,YACE,iBAAO,SAER;QAH2C,aAAO,GAAP,OAAO,CAAS;QAE1D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;;IACzB,CAAC;;;;IAED,8CAAQ;;;IAAR;IACA,CAAC;;;;IAED,mDAAa;;;IAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;;gBAjBF,SAAS,SAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,mdAAmD;;iBAEpD;;;;gDAGc,MAAM,SAAC,aAAa;;IAWnC,kCAAC;CAAA,AAlBD,CAKiD,QAAQ,GAaxD;SAbY,2BAA2B;;;IAE1B,8CAAgD","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\nimport { assert } from '@coolon/pectin';\nimport { Activity, ACTIVITY_DATA } from '../../activity';\nimport { Confirm } from '../../confirm';\n\n@Component({\n selector: 'aup-confirmation-dialog',\n templateUrl: './confirmation-dialog.component.html',\n styleUrls: ['./confirmation-dialog.component.scss']\n})\nexport class ConfirmationDialogComponent extends Activity<Confirm, void> implements OnInit {\n\n constructor(@Inject(ACTIVITY_DATA) readonly confirm: Confirm) {\n super();\n assert.notNil(confirm);\n }\n\n ngOnInit() {\n }\n\n isDestructive(): boolean {\n return this.confirm.destructive && this.confirm.destructive();\n }\n}\n"]}
@@ -0,0 +1,158 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ import * as tslib_1 from "tslib";
6
+ import { Component, ViewChild } from '@angular/core';
7
+ import { DisposableComponent } from '../../../components/disposable-component';
8
+ import { InteractionService } from '../../services/interaction.service';
9
+ import { ActivityContainerComponent } from '../activity-container/activity-container.component';
10
+ /**
11
+ * @template D, R, E
12
+ */
13
+ var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
14
+ tslib_1.__extends(InPlaceInteractionContextComponent, _super);
15
+ function InPlaceInteractionContextComponent(interactionService) {
16
+ var _this = _super.call(this) || this;
17
+ _this.interactionService = interactionService;
18
+ return _this;
19
+ }
20
+ /**
21
+ * @return {?}
22
+ */
23
+ InPlaceInteractionContextComponent.prototype.ngAfterViewInit = /**
24
+ * @return {?}
25
+ */
26
+ function () {
27
+ this.interactionService.registerInplaceInteractionContext(this);
28
+ };
29
+ /**
30
+ * @param {?} id
31
+ * @param {?} api
32
+ * @return {?}
33
+ */
34
+ InPlaceInteractionContextComponent.prototype.initialise = /**
35
+ * @param {?} id
36
+ * @param {?} api
37
+ * @return {?}
38
+ */
39
+ function (id, api) {
40
+ this.activityContainerComponent.initialise(id, api);
41
+ };
42
+ Object.defineProperty(InPlaceInteractionContextComponent.prototype, "identifier", {
43
+ get: /**
44
+ * @return {?}
45
+ */
46
+ function () {
47
+ return this.activityContainerComponent.identifier;
48
+ },
49
+ enumerable: true,
50
+ configurable: true
51
+ });
52
+ /**
53
+ * @param {?} alert
54
+ * @return {?}
55
+ */
56
+ InPlaceInteractionContextComponent.prototype.alert = /**
57
+ * @param {?} alert
58
+ * @return {?}
59
+ */
60
+ function (alert) {
61
+ return this.activityContainerComponent.alert(alert);
62
+ };
63
+ /**
64
+ * @return {?}
65
+ */
66
+ InPlaceInteractionContextComponent.prototype.cancelActiveActivity = /**
67
+ * @return {?}
68
+ */
69
+ function () {
70
+ return this.activityContainerComponent.cancelActiveActivity();
71
+ };
72
+ /**
73
+ * @param {?} confirm
74
+ * @return {?}
75
+ */
76
+ InPlaceInteractionContextComponent.prototype.confirm = /**
77
+ * @param {?} confirm
78
+ * @return {?}
79
+ */
80
+ function (confirm) {
81
+ return this.activityContainerComponent.confirm(confirm);
82
+ };
83
+ /**
84
+ * @param {?} confirm
85
+ * @return {?}
86
+ */
87
+ InPlaceInteractionContextComponent.prototype.confirmOrReject = /**
88
+ * @param {?} confirm
89
+ * @return {?}
90
+ */
91
+ function (confirm) {
92
+ return this.activityContainerComponent.confirmOrReject(confirm);
93
+ };
94
+ /**
95
+ * @template D1, R1, E1
96
+ * @param {?} confirm
97
+ * @param {?} activityType
98
+ * @param {?=} data
99
+ * @return {?}
100
+ */
101
+ InPlaceInteractionContextComponent.prototype.confirmThen = /**
102
+ * @template D1, R1, E1
103
+ * @param {?} confirm
104
+ * @param {?} activityType
105
+ * @param {?=} data
106
+ * @return {?}
107
+ */
108
+ function (confirm, activityType, data) {
109
+ return this.activityContainerComponent.confirmThen(confirm, activityType);
110
+ };
111
+ /**
112
+ * @return {?}
113
+ */
114
+ InPlaceInteractionContextComponent.prototype.isActive = /**
115
+ * @return {?}
116
+ */
117
+ function () {
118
+ return this.activityContainerComponent.isActive();
119
+ };
120
+ /**
121
+ * @template D1, R1, E1
122
+ * @param {?} activityType
123
+ * @param {?=} data
124
+ * @return {?}
125
+ */
126
+ InPlaceInteractionContextComponent.prototype.startActivity = /**
127
+ * @template D1, R1, E1
128
+ * @param {?} activityType
129
+ * @param {?=} data
130
+ * @return {?}
131
+ */
132
+ function (activityType, data) {
133
+ return this.activityContainerComponent.startActivity(activityType, data);
134
+ };
135
+ InPlaceInteractionContextComponent.decorators = [
136
+ { type: Component, args: [{
137
+ selector: 'aup-in-place-interaction-context',
138
+ template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
139
+ styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
140
+ }] }
141
+ ];
142
+ /** @nocollapse */
143
+ InPlaceInteractionContextComponent.ctorParameters = function () { return [
144
+ { type: InteractionService }
145
+ ]; };
146
+ InPlaceInteractionContextComponent.propDecorators = {
147
+ activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }]
148
+ };
149
+ return InPlaceInteractionContextComponent;
150
+ }(DisposableComponent));
151
+ export { InPlaceInteractionContextComponent };
152
+ if (false) {
153
+ /** @type {?} */
154
+ InPlaceInteractionContextComponent.prototype.activityContainerComponent;
155
+ /** @type {?} */
156
+ InPlaceInteractionContextComponent.prototype.interactionService;
157
+ }
158
+ //# sourceMappingURL=in-place-interaction-context.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in-place-interaction-context.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAiB,SAAS,EAAe,SAAS,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAK/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;;;;AAEhG;IAKiE,8DAAmB;IAKlF,4CAAqB,kBAAsC;QAA3D,YACE,iBAAO,SACR;QAFoB,wBAAkB,GAAlB,kBAAkB,CAAoB;;IAE3D,CAAC;;;;IAED,4DAAe;;;IAAf;QACE,IAAI,CAAC,kBAAkB,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;;;;;;IAED,uDAAU;;;;;IAAV,UAAW,EAAU,EAAE,GAA2B;QAChD,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACtD,CAAC;IAED,sBAAI,0DAAU;;;;QAAd;YACE,OAAO,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC;QACpD,CAAC;;;OAAA;;;;;IAED,kDAAK;;;;IAAL,UAAM,KAAY;QAChB,OAAO,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;;;;IAED,iEAAoB;;;IAApB;QACE,OAAO,IAAI,CAAC,0BAA0B,CAAC,oBAAoB,EAAE,CAAC;IAChE,CAAC;;;;;IAED,oDAAO;;;;IAAP,UAAQ,OAAgB;QACtB,OAAO,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;;;;;IAED,4DAAe;;;;IAAf,UAAgB,OAAgB;QAC9B,OAAO,IAAI,CAAC,0BAA0B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;;;;;;;;IAED,wDAAW;;;;;;;IAAX,UAAwB,OAAgB,EAAE,YAAiD,EAAE,IAAS;QACpG,OAAO,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC5E,CAAC;;;;IAED,qDAAQ;;;IAAR;QACE,OAAO,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;IACpD,CAAC;;;;;;;IAED,0DAAa;;;;;;IAAb,UAA0B,YAAiD,EAAE,IAAS;QACpF,OAAO,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;gBApDF,SAAS,SAAC;oBACT,QAAQ,EAAE,kCAAkC;oBAC5C,0UAA4D;;iBAE7D;;;;gBAPQ,kBAAkB;;;6CAUxB,SAAS,SAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;IAgDlD,yCAAC;CAAA,AAvDD,CAKiE,mBAAmB,GAkDnF;SAlDY,kCAAkC;;;IAE7C,wEACsE;;IAE1D,gEAA+C","sourcesContent":["import { AfterViewInit, Component, HostBinding, ViewChild } from '@angular/core';\nimport { Constructable } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../components/disposable-component';\nimport { Activity } from '../../activity';\nimport { Alert } from '../../alert';\nimport { Confirm } from '../../confirm';\nimport { InteractionContext } from '../../interaction-context';\nimport { InteractionService } from '../../services/interaction.service';\nimport { ActivityContainerComponent } from '../activity-container/activity-container.component';\n\n@Component({\n selector: 'aup-in-place-interaction-context',\n templateUrl: './in-place-interaction-context.component.html',\n styleUrls: ['./in-place-interaction-context.component.scss'],\n})\nexport class InPlaceInteractionContextComponent<D, R, E> extends DisposableComponent implements InteractionContext, AfterViewInit {\n\n @ViewChild('activityContainer', { static: true })\n activityContainerComponent: ActivityContainerComponent<any, any, any>;\n\n constructor(readonly interactionService: InteractionService) {\n super();\n }\n\n ngAfterViewInit(): void {\n this.interactionService.registerInplaceInteractionContext(this);\n }\n\n initialise(id: string, api: InteractionService.Api) {\n this.activityContainerComponent.initialise(id, api);\n }\n\n get identifier() {\n return this.activityContainerComponent.identifier;\n }\n\n alert(alert: Alert): Promise<void> {\n return this.activityContainerComponent.alert(alert);\n }\n\n cancelActiveActivity(): Promise<boolean> {\n return this.activityContainerComponent.cancelActiveActivity();\n }\n\n confirm(confirm: Confirm): Promise<boolean> {\n return this.activityContainerComponent.confirm(confirm);\n }\n\n confirmOrReject(confirm: Confirm): Promise<void> {\n return this.activityContainerComponent.confirmOrReject(confirm);\n }\n\n confirmThen<D1, R1, E1>(confirm: Confirm, activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1> {\n return this.activityContainerComponent.confirmThen(confirm, activityType);\n }\n\n isActive(): boolean {\n return this.activityContainerComponent.isActive();\n }\n\n startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1> {\n return this.activityContainerComponent.startActivity(activityType, data);\n }\n\n\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in-place-interaction-context.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in-place-interaction-context.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -5,21 +5,22 @@
5
5
  /**
6
6
  * @file Automatically generated by barrelsby.
7
7
  */
8
- export { AbstractActivity } from "./abstract-activity";
8
+ export { AbstractInteractionContext } from "./abstract-interaction-context";
9
+ export { ActivityRef } from "./activity-ref";
9
10
  export { ACTIVITY_DATA, Activity } from "./activity";
10
11
  export {} from "./alert";
11
12
  export {} from "./confirm";
12
- export { InteractionContextBase } from "./interaction-context-base";
13
- export { InteractionContext } from "./interaction-context";
13
+ export {} from "./interaction-context";
14
14
  export { InteractionModule } from "./interaction.module";
15
15
  export {} from "./result";
16
+ export {} from "./route-synchronisation-adapter";
16
17
  export { ActivityContainerComponent } from "./components/activity-container/activity-container.component";
17
- export {} from "./components/activity-outlet/activity-outlet-context";
18
- export { ActivityOutletComponent } from "./components/activity-outlet/activity-outlet.component";
18
+ export { ActivityOutletComponent } from "./components/activity-container/activity-outlet/activity-outlet.component";
19
19
  export { AlertDialogComponent } from "./components/alert-dialog/alert-dialog.component";
20
20
  export { ConfirmThenDialogComponent } from "./components/confirm-then-dialog/confirm-then-dialog.component";
21
21
  export { ConfirmationDialogComponent } from "./components/confirmation-dialog/confirmation-dialog.component";
22
- export { InplaceInteractionContextComponent } from "./components/inplace-interaction-context/inplace-interaction-context.component";
22
+ export { InPlaceInteractionContextComponent } from "./components/inplace-interaction-context/in-place-interaction-context.component";
23
+ export { InteractionServiceRoutingAdapter } from "./services/interaction-service-routing-adapter";
23
24
  export { InteractionService } from "./services/interaction.service";
24
25
  export { ModalInteractionContextFactory } from "./services/modal-interaction-context.factory";
25
26
  export { DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContextFactory } from "./services/mat-dialog-interaction/dialog-interaction-context-factory";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/index.ts"],"names":[],"mappings":";;;;;;;AAIA,iCAAc,qBAAqB,CAAC;AACpC,wCAAc,YAAY,CAAC;AAC3B,eAAc,SAAS,CAAC;AACxB,eAAc,WAAW,CAAC;AAC1B,uCAAc,4BAA4B,CAAC;AAC3C,mCAAc,uBAAuB,CAAC;AACtC,kCAAc,sBAAsB,CAAC;AACrC,eAAc,UAAU,CAAC;AACzB,2CAAc,8DAA8D,CAAC;AAC7E,eAAc,sDAAsD,CAAC;AACrE,wCAAc,wDAAwD,CAAC;AACvE,qCAAc,kDAAkD,CAAC;AACjE,2CAAc,gEAAgE,CAAC;AAC/E,4CAAc,gEAAgE,CAAC;AAC/E,mDAAc,gFAAgF,CAAC;AAC/F,mCAAc,gCAAgC,CAAC;AAC/C,+CAAc,8CAA8C,CAAC;AAC7D,qFAAc,sEAAsE,CAAC;AACrF,yCAAc,8DAA8D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./abstract-activity\";\nexport * from \"./activity\";\nexport * from \"./alert\";\nexport * from \"./confirm\";\nexport * from \"./interaction-context-base\";\nexport * from \"./interaction-context\";\nexport * from \"./interaction.module\";\nexport * from \"./result\";\nexport * from \"./components/activity-container/activity-container.component\";\nexport * from \"./components/activity-outlet/activity-outlet-context\";\nexport * from \"./components/activity-outlet/activity-outlet.component\";\nexport * from \"./components/alert-dialog/alert-dialog.component\";\nexport * from \"./components/confirm-then-dialog/confirm-then-dialog.component\";\nexport * from \"./components/confirmation-dialog/confirmation-dialog.component\";\nexport * from \"./components/inplace-interaction-context/inplace-interaction-context.component\";\nexport * from \"./services/interaction.service\";\nexport * from \"./services/modal-interaction-context.factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context-factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/index.ts"],"names":[],"mappings":";;;;;;;AAIA,2CAAc,gCAAgC,CAAC;AAC/C,4BAAc,gBAAgB,CAAC;AAC/B,wCAAc,YAAY,CAAC;AAC3B,eAAc,SAAS,CAAC;AACxB,eAAc,WAAW,CAAC;AAC1B,eAAc,uBAAuB,CAAC;AACtC,kCAAc,sBAAsB,CAAC;AACrC,eAAc,UAAU,CAAC;AACzB,eAAc,iCAAiC,CAAC;AAChD,2CAAc,8DAA8D,CAAC;AAC7E,wCAAc,2EAA2E,CAAC;AAC1F,qCAAc,kDAAkD,CAAC;AACjE,2CAAc,gEAAgE,CAAC;AAC/E,4CAAc,gEAAgE,CAAC;AAC/E,mDAAc,iFAAiF,CAAC;AAChG,iDAAc,gDAAgD,CAAC;AAC/D,mCAAc,gCAAgC,CAAC;AAC/C,+CAAc,8CAA8C,CAAC;AAC7D,qFAAc,sEAAsE,CAAC;AACrF,yCAAc,8DAA8D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./abstract-interaction-context\";\nexport * from \"./activity-ref\";\nexport * from \"./activity\";\nexport * from \"./alert\";\nexport * from \"./confirm\";\nexport * from \"./interaction-context\";\nexport * from \"./interaction.module\";\nexport * from \"./result\";\nexport * from \"./route-synchronisation-adapter\";\nexport * from \"./components/activity-container/activity-container.component\";\nexport * from \"./components/activity-container/activity-outlet/activity-outlet.component\";\nexport * from \"./components/alert-dialog/alert-dialog.component\";\nexport * from \"./components/confirm-then-dialog/confirm-then-dialog.component\";\nexport * from \"./components/confirmation-dialog/confirmation-dialog.component\";\nexport * from \"./components/inplace-interaction-context/in-place-interaction-context.component\";\nexport * from \"./services/interaction-service-routing-adapter\";\nexport * from \"./services/interaction.service\";\nexport * from \"./services/modal-interaction-context.factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context-factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context\";\n"]}