@coolon/angular-ui-powerups 0.0.134 → 1.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/CHANGELOG.md +301 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +1178 -6280
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +16 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +27 -26
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +26 -29
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/index.js +1 -5
  12. package/esm2015/index.js.map +1 -1
  13. package/esm2015/lib/angular-ui-powerups.module.js +32 -32
  14. package/esm2015/lib/angular-ui-powerups.module.js.map +1 -1
  15. package/esm2015/lib/angular-ui-powerups.module.metadata.json +1 -1
  16. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  17. package/esm2015/lib/animations/index.js +1 -5
  18. package/esm2015/lib/animations/index.js.map +1 -1
  19. package/esm2015/lib/animations/slide-animations.js +0 -8
  20. package/esm2015/lib/animations/slide-animations.js.map +1 -1
  21. package/esm2015/lib/components/components.module.js +40 -37
  22. package/esm2015/lib/components/components.module.js.map +1 -1
  23. package/esm2015/lib/components/components.module.metadata.json +1 -1
  24. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  25. package/esm2015/lib/components/disposable-component.js +8 -9
  26. package/esm2015/lib/components/disposable-component.js.map +1 -1
  27. package/esm2015/lib/components/disposable-component.metadata.json +1 -1
  28. package/esm2015/lib/components/forms/abstract-input.component.js +82 -114
  29. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  30. package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
  31. package/esm2015/lib/components/forms/number-input/number-input.component.js +12 -18
  32. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  33. package/esm2015/lib/components/forms/password-input/password-input.component.js +12 -18
  34. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  35. package/esm2015/lib/components/forms/select-input/select-input.component.js +38 -57
  36. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  37. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  38. package/esm2015/lib/components/forms/string-input/string-input.component.js +19 -41
  39. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  40. package/esm2015/lib/components/index.js +13 -16
  41. package/esm2015/lib/components/index.js.map +1 -1
  42. package/esm2015/lib/components/index.metadata.json +1 -1
  43. package/esm2015/lib/components/noop/noop.component.js +12 -15
  44. package/esm2015/lib/components/noop/noop.component.js.map +1 -1
  45. package/esm2015/lib/components/resize-aware.component.js +17 -64
  46. package/esm2015/lib/components/resize-aware.component.js.map +1 -1
  47. package/esm2015/lib/components/resize-aware.component.metadata.json +1 -1
  48. package/esm2015/lib/components/scroll-container/scroll-container.component.js +17 -0
  49. package/esm2015/lib/components/scroll-container/scroll-container.component.js.map +1 -0
  50. package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -0
  51. package/esm2015/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +1 -0
  52. package/esm2015/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +1 -0
  53. package/esm2015/lib/components/types/bounds.class.js +0 -29
  54. package/esm2015/lib/components/types/bounds.class.js.map +1 -1
  55. package/esm2015/lib/components/types/dimension.class.js +0 -14
  56. package/esm2015/lib/components/types/dimension.class.js.map +1 -1
  57. package/esm2015/lib/components/types/point.class.js +0 -23
  58. package/esm2015/lib/components/types/point.class.js.map +1 -1
  59. package/esm2015/lib/directives/command.directive.js +31 -85
  60. package/esm2015/lib/directives/command.directive.js.map +1 -1
  61. package/esm2015/lib/directives/directives.module.js +28 -28
  62. package/esm2015/lib/directives/directives.module.js.map +1 -1
  63. package/esm2015/lib/directives/directives.module.metadata.json +1 -1
  64. package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
  65. package/esm2015/lib/directives/focus-binding.directive.js +41 -96
  66. package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
  67. package/esm2015/lib/directives/index.js +3 -7
  68. package/esm2015/lib/directives/index.js.map +1 -1
  69. package/esm2015/lib/interaction/abstract-interaction-context.js +4 -73
  70. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
  71. package/esm2015/lib/interaction/activity-ref.js +2 -79
  72. package/esm2015/lib/interaction/activity-ref.js.map +1 -1
  73. package/esm2015/lib/interaction/activity.js +0 -72
  74. package/esm2015/lib/interaction/activity.js.map +1 -1
  75. package/esm2015/lib/interaction/alert.js +0 -22
  76. package/esm2015/lib/interaction/alert.js.map +1 -1
  77. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +41 -187
  78. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  79. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +24 -74
  80. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  81. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +13 -24
  82. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  83. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +15 -62
  84. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  85. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +13 -27
  86. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  87. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +16 -71
  88. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  89. package/esm2015/lib/interaction/confirm.js +0 -16
  90. package/esm2015/lib/interaction/confirm.js.map +1 -1
  91. package/esm2015/lib/interaction/index.js +15 -24
  92. package/esm2015/lib/interaction/index.js.map +1 -1
  93. package/esm2015/lib/interaction/interaction-context.js +0 -50
  94. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  95. package/esm2015/lib/interaction/interaction.module.js +41 -41
  96. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  97. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  98. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  99. package/esm2015/lib/interaction/result.js +2 -23
  100. package/esm2015/lib/interaction/result.js.map +1 -1
  101. package/esm2015/lib/interaction/route-synchronisation-adapter.js +0 -16
  102. package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -1
  103. package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js +0 -43
  104. package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
  105. package/esm2015/lib/interaction/services/interaction.service.js +22 -172
  106. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  107. package/esm2015/lib/interaction/services/interaction.service.metadata.json +1 -1
  108. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +17 -40
  109. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
  110. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.metadata.json +1 -1
  111. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +7 -86
  112. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
  113. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.metadata.json +1 -1
  114. package/esm2015/lib/interaction/services/modal-interaction-context.factory.js +0 -16
  115. package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
  116. package/esm2015/lib/place/components/abstract-place-navigation.component.js +36 -105
  117. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  118. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +17 -34
  119. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
  120. package/esm2015/lib/place/components/empty-state/empty-state.component.js +12 -18
  121. package/esm2015/lib/place/components/empty-state/empty-state.component.js.map +1 -1
  122. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +16 -33
  123. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  124. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +52 -240
  125. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  126. package/esm2015/lib/place/components/place-outlet/route-animations.js +0 -12
  127. package/esm2015/lib/place/components/place-outlet/route-animations.js.map +1 -1
  128. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +12 -17
  129. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  130. package/esm2015/lib/place/guards/consolidated-param-map.js +9 -92
  131. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  132. package/esm2015/lib/place/guards/noop-auth-guard.service.js +12 -21
  133. package/esm2015/lib/place/guards/noop-auth-guard.service.js.map +1 -1
  134. package/esm2015/lib/place/guards/noop-auth-guard.service.metadata.json +1 -1
  135. package/esm2015/lib/place/guards/place.guard.js +10 -119
  136. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  137. package/esm2015/lib/place/index.js +38 -46
  138. package/esm2015/lib/place/index.js.map +1 -1
  139. package/esm2015/lib/place/nav-item.js +0 -22
  140. package/esm2015/lib/place/nav-item.js.map +1 -1
  141. package/esm2015/lib/place/navigation/place-component-deactivation-handler.js +3 -49
  142. package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
  143. package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js +0 -23
  144. package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
  145. package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +0 -11
  146. package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
  147. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +2 -51
  148. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
  149. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +2 -54
  150. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -1
  151. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +2 -60
  152. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
  153. package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js +0 -24
  154. package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
  155. package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +1 -19
  156. package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
  157. package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +0 -55
  158. package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
  159. package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +4 -60
  160. package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
  161. package/esm2015/lib/place/navigation/session/navigating.js +0 -31
  162. package/esm2015/lib/place/navigation/session/navigating.js.map +1 -1
  163. package/esm2015/lib/place/navigation/session/navigation-context.js +0 -24
  164. package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -1
  165. package/esm2015/lib/place/navigation/session/navigation-session.js +12 -178
  166. package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -1
  167. package/esm2015/lib/place/navigation/session/pop-state-navigation.js +0 -16
  168. package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
  169. package/esm2015/lib/place/place-component.js +22 -107
  170. package/esm2015/lib/place/place-component.js.map +1 -1
  171. package/esm2015/lib/place/place-component.metadata.json +1 -1
  172. package/esm2015/lib/place/place-config.js +0 -13
  173. package/esm2015/lib/place/place-config.js.map +1 -1
  174. package/esm2015/lib/place/place-definition.js +26 -163
  175. package/esm2015/lib/place/place-definition.js.map +1 -1
  176. package/esm2015/lib/place/place-history.js +11 -38
  177. package/esm2015/lib/place/place-history.js.map +1 -1
  178. package/esm2015/lib/place/place-history.metadata.json +1 -1
  179. package/esm2015/lib/place/place-router.js +38 -247
  180. package/esm2015/lib/place/place-router.js.map +1 -1
  181. package/esm2015/lib/place/place-router.metadata.json +1 -1
  182. package/esm2015/lib/place/place.decorator.js +3 -38
  183. package/esm2015/lib/place/place.decorator.js.map +1 -1
  184. package/esm2015/lib/place/place.module.js +40 -42
  185. package/esm2015/lib/place/place.module.js.map +1 -1
  186. package/esm2015/lib/place/place.module.metadata.json +1 -1
  187. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  188. package/esm2015/lib/place/route/formatter.js +0 -30
  189. package/esm2015/lib/place/route/formatter.js.map +1 -1
  190. package/esm2015/lib/place/route/json-types.js +0 -12
  191. package/esm2015/lib/place/route/json-types.js.map +1 -1
  192. package/esm2015/lib/place/route/parameter-decorators.js +14 -133
  193. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  194. package/esm2015/lib/place/route/parameter-definition.class.js +2 -147
  195. package/esm2015/lib/place/route/parameter-definition.class.js.map +1 -1
  196. package/esm2015/lib/place/route/parameter-sanitiser.js +0 -18
  197. package/esm2015/lib/place/route/parameter-sanitiser.js.map +1 -1
  198. package/esm2015/lib/place/route/parameter-snapshot.js +0 -19
  199. package/esm2015/lib/place/route/parameter-snapshot.js.map +1 -1
  200. package/esm2015/lib/place/route/visit-sanitiser.js +2 -47
  201. package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
  202. package/esm2015/lib/place/url-service.js +13 -68
  203. package/esm2015/lib/place/url-service.js.map +1 -1
  204. package/esm2015/lib/place/url-service.metadata.json +1 -1
  205. package/esm2015/lib/place/url-snapshot.js +3 -86
  206. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  207. package/esm2015/lib/place/visit.js +5 -73
  208. package/esm2015/lib/place/visit.js.map +1 -1
  209. package/esm2015/public_api.js +6 -10
  210. package/esm2015/public_api.js.map +1 -1
  211. package/esm5/coolon-angular-ui-powerups.js +26 -29
  212. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  213. package/esm5/index.js +1 -5
  214. package/esm5/index.js.map +1 -1
  215. package/esm5/lib/angular-ui-powerups.module.js +29 -30
  216. package/esm5/lib/angular-ui-powerups.module.js.map +1 -1
  217. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  218. package/esm5/lib/animations/index.js +1 -5
  219. package/esm5/lib/animations/index.js.map +1 -1
  220. package/esm5/lib/animations/slide-animations.js +0 -8
  221. package/esm5/lib/animations/slide-animations.js.map +1 -1
  222. package/esm5/lib/components/components.module.js +37 -35
  223. package/esm5/lib/components/components.module.js.map +1 -1
  224. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  225. package/esm5/lib/components/disposable-component.js +7 -13
  226. package/esm5/lib/components/disposable-component.js.map +1 -1
  227. package/esm5/lib/components/forms/abstract-input.component.js +95 -157
  228. package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
  229. package/esm5/lib/components/forms/number-input/number-input.component.js +11 -22
  230. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  231. package/esm5/lib/components/forms/password-input/password-input.component.js +11 -22
  232. package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
  233. package/esm5/lib/components/forms/select-input/select-input.component.js +38 -61
  234. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  235. package/esm5/lib/components/forms/string-input/string-input.component.js +19 -45
  236. package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
  237. package/esm5/lib/components/index.js +13 -16
  238. package/esm5/lib/components/index.js.map +1 -1
  239. package/esm5/lib/components/noop/noop.component.js +9 -13
  240. package/esm5/lib/components/noop/noop.component.js.map +1 -1
  241. package/esm5/lib/components/resize-aware.component.js +21 -80
  242. package/esm5/lib/components/resize-aware.component.js.map +1 -1
  243. package/esm5/lib/components/scroll-container/scroll-container.component.js +19 -0
  244. package/esm5/lib/components/scroll-container/scroll-container.component.js.map +1 -0
  245. package/esm5/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +1 -0
  246. package/esm5/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +1 -0
  247. package/esm5/lib/components/types/bounds.class.js +3 -30
  248. package/esm5/lib/components/types/bounds.class.js.map +1 -1
  249. package/esm5/lib/components/types/dimension.class.js +0 -10
  250. package/esm5/lib/components/types/dimension.class.js.map +1 -1
  251. package/esm5/lib/components/types/point.class.js +2 -30
  252. package/esm5/lib/components/types/point.class.js.map +1 -1
  253. package/esm5/lib/directives/command.directive.js +37 -103
  254. package/esm5/lib/directives/command.directive.js.map +1 -1
  255. package/esm5/lib/directives/directives.module.js +25 -26
  256. package/esm5/lib/directives/directives.module.js.map +1 -1
  257. package/esm5/lib/directives/directives.module.ngfactory.js.map +1 -1
  258. package/esm5/lib/directives/focus-binding.directive.js +50 -147
  259. package/esm5/lib/directives/focus-binding.directive.js.map +1 -1
  260. package/esm5/lib/directives/index.js +3 -7
  261. package/esm5/lib/directives/index.js.map +1 -1
  262. package/esm5/lib/interaction/abstract-interaction-context.js +7 -114
  263. package/esm5/lib/interaction/abstract-interaction-context.js.map +1 -1
  264. package/esm5/lib/interaction/activity-ref.js +12 -109
  265. package/esm5/lib/interaction/activity-ref.js.map +1 -1
  266. package/esm5/lib/interaction/activity.js +12 -121
  267. package/esm5/lib/interaction/activity.js.map +1 -1
  268. package/esm5/lib/interaction/alert.js +0 -22
  269. package/esm5/lib/interaction/alert.js.map +1 -1
  270. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +64 -330
  271. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  272. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +26 -79
  273. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  274. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +12 -25
  275. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  276. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +17 -72
  277. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  278. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +13 -32
  279. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  280. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +24 -117
  281. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  282. package/esm5/lib/interaction/confirm.js +0 -16
  283. package/esm5/lib/interaction/confirm.js.map +1 -1
  284. package/esm5/lib/interaction/index.js +15 -24
  285. package/esm5/lib/interaction/index.js.map +1 -1
  286. package/esm5/lib/interaction/interaction-context.js +0 -50
  287. package/esm5/lib/interaction/interaction-context.js.map +1 -1
  288. package/esm5/lib/interaction/interaction.module.js +38 -39
  289. package/esm5/lib/interaction/interaction.module.js.map +1 -1
  290. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  291. package/esm5/lib/interaction/result.js +2 -23
  292. package/esm5/lib/interaction/result.js.map +1 -1
  293. package/esm5/lib/interaction/route-synchronisation-adapter.js +0 -16
  294. package/esm5/lib/interaction/route-synchronisation-adapter.js.map +1 -1
  295. package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +6 -73
  296. package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
  297. package/esm5/lib/interaction/services/interaction.service.js +33 -290
  298. package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
  299. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +16 -41
  300. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
  301. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +14 -109
  302. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
  303. package/esm5/lib/interaction/services/modal-interaction-context.factory.js +1 -23
  304. package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
  305. package/esm5/lib/place/components/abstract-place-navigation.component.js +37 -115
  306. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  307. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +16 -37
  308. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
  309. package/esm5/lib/place/components/empty-state/empty-state.component.js +10 -20
  310. package/esm5/lib/place/components/empty-state/empty-state.component.js.map +1 -1
  311. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +17 -42
  312. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  313. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +64 -314
  314. package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  315. package/esm5/lib/place/components/place-outlet/route-animations.js +0 -12
  316. package/esm5/lib/place/components/place-outlet/route-animations.js.map +1 -1
  317. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +10 -14
  318. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  319. package/esm5/lib/place/guards/consolidated-param-map.js +17 -117
  320. package/esm5/lib/place/guards/consolidated-param-map.js.map +1 -1
  321. package/esm5/lib/place/guards/noop-auth-guard.service.js +11 -26
  322. package/esm5/lib/place/guards/noop-auth-guard.service.js.map +1 -1
  323. package/esm5/lib/place/guards/place.guard.js +24 -172
  324. package/esm5/lib/place/guards/place.guard.js.map +1 -1
  325. package/esm5/lib/place/index.js +38 -46
  326. package/esm5/lib/place/index.js.map +1 -1
  327. package/esm5/lib/place/nav-item.js +0 -22
  328. package/esm5/lib/place/nav-item.js.map +1 -1
  329. package/esm5/lib/place/navigation/place-component-deactivation-handler.js +11 -86
  330. package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
  331. package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +4 -34
  332. package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
  333. package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +4 -25
  334. package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
  335. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +11 -110
  336. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
  337. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +12 -147
  338. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -1
  339. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +11 -126
  340. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
  341. package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +7 -71
  342. package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
  343. package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +6 -49
  344. package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
  345. package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +11 -120
  346. package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
  347. package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +13 -106
  348. package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
  349. package/esm5/lib/place/navigation/session/navigating.js +6 -53
  350. package/esm5/lib/place/navigation/session/navigating.js.map +1 -1
  351. package/esm5/lib/place/navigation/session/navigation-context.js +0 -17
  352. package/esm5/lib/place/navigation/session/navigation-context.js.map +1 -1
  353. package/esm5/lib/place/navigation/session/navigation-session.js +39 -306
  354. package/esm5/lib/place/navigation/session/navigation-session.js.map +1 -1
  355. package/esm5/lib/place/navigation/session/pop-state-navigation.js +5 -33
  356. package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
  357. package/esm5/lib/place/place-component.js +30 -142
  358. package/esm5/lib/place/place-component.js.map +1 -1
  359. package/esm5/lib/place/place-config.js +0 -13
  360. package/esm5/lib/place/place-config.js.map +1 -1
  361. package/esm5/lib/place/place-definition.js +37 -219
  362. package/esm5/lib/place/place-definition.js.map +1 -1
  363. package/esm5/lib/place/place-history.js +11 -56
  364. package/esm5/lib/place/place-history.js.map +1 -1
  365. package/esm5/lib/place/place-router.js +59 -372
  366. package/esm5/lib/place/place-router.js.map +1 -1
  367. package/esm5/lib/place/place.decorator.js +3 -38
  368. package/esm5/lib/place/place.decorator.js.map +1 -1
  369. package/esm5/lib/place/place.module.js +37 -40
  370. package/esm5/lib/place/place.module.js.map +1 -1
  371. package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
  372. package/esm5/lib/place/route/formatter.js +6 -60
  373. package/esm5/lib/place/route/formatter.js.map +1 -1
  374. package/esm5/lib/place/route/json-types.js +0 -12
  375. package/esm5/lib/place/route/json-types.js.map +1 -1
  376. package/esm5/lib/place/route/parameter-decorators.js +14 -133
  377. package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
  378. package/esm5/lib/place/route/parameter-definition.class.js +21 -222
  379. package/esm5/lib/place/route/parameter-definition.class.js.map +1 -1
  380. package/esm5/lib/place/route/parameter-sanitiser.js +0 -18
  381. package/esm5/lib/place/route/parameter-sanitiser.js.map +1 -1
  382. package/esm5/lib/place/route/parameter-snapshot.js +0 -19
  383. package/esm5/lib/place/route/parameter-snapshot.js.map +1 -1
  384. package/esm5/lib/place/route/visit-sanitiser.js +4 -42
  385. package/esm5/lib/place/route/visit-sanitiser.js.map +1 -1
  386. package/esm5/lib/place/url-service.js +20 -119
  387. package/esm5/lib/place/url-service.js.map +1 -1
  388. package/esm5/lib/place/url-snapshot.js +15 -143
  389. package/esm5/lib/place/url-snapshot.js.map +1 -1
  390. package/esm5/lib/place/visit.js +14 -132
  391. package/esm5/lib/place/visit.js.map +1 -1
  392. package/esm5/public_api.js +6 -10
  393. package/esm5/public_api.js.map +1 -1
  394. package/fesm2015/coolon-angular-ui-powerups.js +866 -4507
  395. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  396. package/fesm5/coolon-angular-ui-powerups.js +1136 -6252
  397. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  398. package/lib/components/forms/abstract-input.component.d.ts +9 -9
  399. package/lib/components/index.d.ts +1 -0
  400. package/lib/components/resize-aware.component.d.ts +3 -3
  401. package/lib/components/scroll-container/scroll-container.component.d.ts +5 -0
  402. package/lib/directives/command.directive.d.ts +4 -2
  403. package/lib/directives/focus-binding.directive.d.ts +1 -1
  404. package/lib/interaction/activity-ref.d.ts +2 -2
  405. package/lib/interaction/activity.d.ts +2 -2
  406. package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
  407. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -2
  408. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
  409. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
  410. package/lib/interaction/services/interaction.service.d.ts +1 -1
  411. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -1
  412. package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +1 -1
  413. package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -4
  414. package/lib/place/guards/consolidated-param-map.d.ts +1 -1
  415. package/lib/place/navigation/place-component-deactivation-handler.d.ts +2 -2
  416. package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +1 -1
  417. package/lib/place/navigation/session/navigation-session.d.ts +4 -4
  418. package/lib/place/place-component.d.ts +2 -2
  419. package/lib/place/place-router.d.ts +3 -3
  420. package/lib/place/route/formatter.d.ts +4 -3
  421. package/lib/place/route/parameter-definition.class.d.ts +2 -2
  422. package/package.json +10 -10
  423. package/schematics/place-routes/place-builder.js +4 -2
  424. package/schematics/place-routes/place-builder.js.map +1 -1
  425. package/schematics/place-routes/place-class-scanner.d.ts +3 -3
  426. package/schematics/place-routes/place-class-scanner.js +1 -1
  427. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  428. package/schematics/place-routes/place-def.d.ts +9 -9
  429. /package/{styles → assets}/styles.scss +0 -0
@@ -1,15 +1,11 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component, ComponentFactoryResolver, Injector, Input, ViewContainerRef } from '@angular/core';
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Component, ComponentFactoryResolver, ComponentRef, Injector, Input, OnInit, ViewContainerRef } from '@angular/core';
6
3
  import { lang } from '@coolon/typescript-utilities';
7
4
  import { ACTIVITY_DATA } from '../../../activity';
8
5
  import { ActivityRef } from '../../../activity-ref';
9
6
  /**
10
7
  * ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an
11
8
  * external service.
12
- * @template D, R, E
13
9
  */
14
10
  var ActivityOutletComponent = /** @class */ (function () {
15
11
  function ActivityOutletComponent(componentFactoryResolver, viewContainerRef, injector) {
@@ -18,17 +14,10 @@ var ActivityOutletComponent = /** @class */ (function () {
18
14
  this.injector = injector;
19
15
  }
20
16
  Object.defineProperty(ActivityOutletComponent.prototype, "activityRef", {
21
- get: /**
22
- * @return {?}
23
- */
24
- function () {
17
+ get: function () {
25
18
  return this._activityRef;
26
19
  },
27
- set: /**
28
- * @param {?} activityRef
29
- * @return {?}
30
- */
31
- function (activityRef) {
20
+ set: function (activityRef) {
32
21
  if (this.activityRef && !this.activityRef.isComplete()) {
33
22
  lang.illegalState("changing activity before previous one has completed");
34
23
  }
@@ -39,31 +28,15 @@ var ActivityOutletComponent = /** @class */ (function () {
39
28
  configurable: true
40
29
  });
41
30
  ;
42
- /**
43
- * @return {?}
44
- */
45
- ActivityOutletComponent.prototype.ngOnInit = /**
46
- * @return {?}
47
- */
48
- function () {
31
+ ActivityOutletComponent.prototype.ngOnInit = function () {
49
32
  };
50
- /**
51
- * @param {?} activityRef
52
- * @return {?}
53
- */
54
- ActivityOutletComponent.prototype.loadActivity = /**
55
- * @param {?} activityRef
56
- * @return {?}
57
- */
58
- function (activityRef) {
59
- /** @type {?} */
33
+ ActivityOutletComponent.prototype.loadActivity = function (activityRef) {
60
34
  var injector = Injector.create({
61
35
  providers: [
62
36
  { provide: ACTIVITY_DATA, useValue: activityRef.activityData }
63
37
  ],
64
38
  parent: this.injector
65
39
  });
66
- /** @type {?} */
67
40
  var componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityRef.activityClass);
68
41
  this.viewContainerRef.clear();
69
42
  // console.log(`creating component -> ${activityRef.activityClass.name}`);
@@ -71,63 +44,37 @@ var ActivityOutletComponent = /** @class */ (function () {
71
44
  this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);
72
45
  };
73
46
  Object.defineProperty(ActivityOutletComponent.prototype, "component", {
74
- get: /**
75
- * @return {?}
76
- */
77
- function () {
47
+ get: function () {
78
48
  return this.activityComponentRef.instance;
79
49
  },
80
50
  enumerable: true,
81
51
  configurable: true
82
52
  });
83
- ActivityOutletComponent.decorators = [
84
- { type: Component, args: [{
85
- selector: 'aup-activity-outlet',
86
- template: '',
87
- styles: [":host{display:block}"]
88
- }] }
89
- ];
90
- /** @nocollapse */
91
53
  ActivityOutletComponent.ctorParameters = function () { return [
92
54
  { type: ComponentFactoryResolver },
93
55
  { type: ViewContainerRef },
94
56
  { type: Injector }
95
57
  ]; };
96
- ActivityOutletComponent.propDecorators = {
97
- nestedInteractionContext: [{ type: Input }],
98
- activityRef: [{ type: Input }]
99
- };
58
+ __decorate([
59
+ Input(),
60
+ __metadata("design:type", Object)
61
+ ], ActivityOutletComponent.prototype, "nestedInteractionContext", void 0);
62
+ __decorate([
63
+ Input(),
64
+ __metadata("design:type", ActivityRef),
65
+ __metadata("design:paramtypes", [ActivityRef])
66
+ ], ActivityOutletComponent.prototype, "activityRef", null);
67
+ ActivityOutletComponent = __decorate([
68
+ Component({
69
+ selector: 'aup-activity-outlet',
70
+ template: '',
71
+ styles: [":host{display:block}"]
72
+ }),
73
+ __metadata("design:paramtypes", [ComponentFactoryResolver,
74
+ ViewContainerRef,
75
+ Injector])
76
+ ], ActivityOutletComponent);
100
77
  return ActivityOutletComponent;
101
78
  }());
102
79
  export { ActivityOutletComponent };
103
- if (false) {
104
- /**
105
- * @type {?}
106
- * @private
107
- */
108
- ActivityOutletComponent.prototype.activityComponentRef;
109
- /** @type {?} */
110
- ActivityOutletComponent.prototype.nestedInteractionContext;
111
- /**
112
- * @type {?}
113
- * @private
114
- */
115
- ActivityOutletComponent.prototype._activityRef;
116
- /**
117
- * @type {?}
118
- * @private
119
- */
120
- ActivityOutletComponent.prototype.componentFactoryResolver;
121
- /**
122
- * @type {?}
123
- * @private
124
- */
125
- ActivityOutletComponent.prototype.viewContainerRef;
126
- /**
127
- * @type {?}
128
- * @private
129
- */
130
- ActivityOutletComponent.prototype.injector;
131
- /* Skipping unhandled member: ;*/
132
- }
133
80
  //# sourceMappingURL=activity-outlet.component.js.map
@@ -1 +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,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAY,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;;;;;AAOpD;IA2BE,iCACU,wBAAkD,EAClD,gBAAkC,EAClC,QAAkB;QAFlB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,aAAQ,GAAR,QAAQ,CAAU;IAE5B,CAAC;IAlBD,sBACI,gDAAW;;;;QAQf;YACE,OAAO,IAAI,CAAC,YAAY,CAAC;QAC3B,CAAC;;;;;QAXD,UACgB,WAAiC;YAC/C,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE;gBACtD,IAAI,CAAC,YAAY,CAAC,qDAAqD,CAAC,CAAA;aACzE;YACD,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;YAChC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;;;OAAA;IAAA,CAAC;;;;IAaF,0CAAQ;;;IAAR;IACA,CAAC;;;;;IAED,8CAAY;;;;IAAZ,UAAa,WAAiC;;YACtC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YAC/B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,CAAC,YAAY,EAAE;aAC/D;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACtB,CAAC;;YACI,gBAAgB,GAAG,IAAI,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,WAAW,CAAC,aAAa,CAAC;QACzG,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC9B,0EAA0E;QAC1E,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;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"]}
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,EACxB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAY,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD;;;GAGG;AAMH;IAsBE,iCACU,wBAAkD,EAClD,gBAAkC,EAClC,QAAkB;QAFlB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,aAAQ,GAAR,QAAQ,CAAU;IAE5B,CAAC;IAjBD,sBAAI,gDAAW;aAQf;YACE,OAAO,IAAI,CAAC,YAAY,CAAC;QAC3B,CAAC;aAVD,UAAgB,WAAiC;YAC/C,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE;gBACtD,IAAI,CAAC,YAAY,CAAC,qDAAqD,CAAC,CAAA;aACzE;YACD,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;YAChC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;;;OAAA;IAAA,CAAC;IAaF,0CAAQ,GAAR;IACA,CAAC;IAED,8CAAY,GAAZ,UAAa,WAAiC;QAC5C,IAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YAC/B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,CAAC,YAAY,EAAE;aAC/D;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACtB,CAAC,CAAC;QACH,IAAM,gBAAgB,GAAG,IAAI,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAC1G,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC9B,0EAA0E;QAC1E,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;QACjG,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAC5G,CAAC;IAED,sBAAI,8CAAS;aAAb;YACE,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC;QAC5C,CAAC;;;OAAA;;gBAzBmC,wBAAwB;gBAChC,gBAAgB;gBACxB,QAAQ;;IApB5B;QADC,KAAK,EAAE;;6EACqC;IAK7C;QADC,KAAK,EAAE;kCACqB,WAAW;yCAAX,WAAW;8DAMvC;IAhBU,uBAAuB;QALnC,SAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;YAC/B,QAAQ,EAAE,EAAE;;SAEb,CAAC;yCAwBoC,wBAAwB;YAChC,gBAAgB;YACxB,QAAQ;OAzBjB,uBAAuB,CAkDnC;IAAD,8BAAC;CAAA,AAlDD,IAkDC;SAlDY,uBAAuB","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"]}
@@ -1,41 +1,28 @@
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";
1
+ import { __decorate, __extends, __metadata, __param } from "tslib";
6
2
  import { Component, Inject } from '@angular/core';
7
3
  import { Activity, ACTIVITY_DATA } from '../../activity';
8
4
  var AlertDialogComponent = /** @class */ (function (_super) {
9
- tslib_1.__extends(AlertDialogComponent, _super);
5
+ __extends(AlertDialogComponent, _super);
10
6
  function AlertDialogComponent(alert) {
11
7
  var _this = _super.call(this) || this;
12
8
  _this.alert = alert;
13
9
  return _this;
14
10
  }
15
- /**
16
- * @return {?}
17
- */
18
- AlertDialogComponent.prototype.ngOnInit = /**
19
- * @return {?}
20
- */
21
- function () {
11
+ AlertDialogComponent.prototype.ngOnInit = function () {
22
12
  };
23
- AlertDialogComponent.decorators = [
24
- { type: Component, args: [{
25
- selector: 'aup-alert-dialog',
26
- template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-raised-button color=\"primary\" (click)=\"done()\" data-cy=\"close-button\">{{alert.ok()}}</button>\n</div>\n",
27
- styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
28
- }] }
29
- ];
30
- /** @nocollapse */
31
13
  AlertDialogComponent.ctorParameters = function () { return [
32
14
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
33
15
  ]; };
16
+ AlertDialogComponent = __decorate([
17
+ Component({
18
+ selector: 'aup-alert-dialog',
19
+ template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-raised-button color=\"primary\" (click)=\"done()\" data-cy=\"close-button\">{{alert.ok()}}</button>\n</div>\n",
20
+ styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
21
+ }),
22
+ __param(0, Inject(ACTIVITY_DATA)),
23
+ __metadata("design:paramtypes", [Object])
24
+ ], AlertDialogComponent);
34
25
  return AlertDialogComponent;
35
26
  }(Activity));
36
27
  export { AlertDialogComponent };
37
- if (false) {
38
- /** @type {?} */
39
- AlertDialogComponent.prototype.alert;
40
- }
41
28
  //# sourceMappingURL=alert-dialog.component.js.map
@@ -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,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"]}
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;AAQzD;IAA0C,wCAAqB;IAE7D,8BAA4C,KAAY;QAAxD,YACE,iBAAO,SACR;QAF2C,WAAK,GAAL,KAAK,CAAO;;IAExD,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;;gDALY,MAAM,SAAC,aAAa;;IAFtB,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,0TAA4C;;SAE7C,CAAC;QAGa,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;;OAFvB,oBAAoB,CAShC;IAAD,2BAAC;CAAA,AATD,CAA0C,QAAQ,GASjD;SATY,oBAAoB","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"]}
@@ -1,101 +1,46 @@
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";
1
+ import { __decorate, __extends, __metadata, __param } from "tslib";
6
2
  import { Component, Inject } from '@angular/core';
7
3
  import { assert } from '@coolon/pectin';
8
4
  import { Activity, ACTIVITY_DATA } from '../../activity';
9
- /**
10
- * @template D, R, E
11
- */
12
5
  var ConfirmThenDialogComponent = /** @class */ (function (_super) {
13
- tslib_1.__extends(ConfirmThenDialogComponent, _super);
6
+ __extends(ConfirmThenDialogComponent, _super);
14
7
  function ConfirmThenDialogComponent(config) {
15
8
  var _this = _super.call(this) || this;
16
9
  _this.config = config;
17
10
  assert.notNil(config);
18
11
  return _this;
19
12
  }
20
- /**
21
- * @return {?}
22
- */
23
- ConfirmThenDialogComponent.prototype.ngOnInit = /**
24
- * @return {?}
25
- */
26
- function () {
13
+ ConfirmThenDialogComponent.prototype.ngOnInit = function () {
27
14
  };
28
15
  Object.defineProperty(ConfirmThenDialogComponent.prototype, "confirm", {
29
- get: /**
30
- * @return {?}
31
- */
32
- function () {
16
+ get: function () {
33
17
  return this.config.confirm;
34
18
  },
35
19
  enumerable: true,
36
20
  configurable: true
37
21
  });
38
- /**
39
- * @return {?}
40
- */
41
- ConfirmThenDialogComponent.prototype.isDestructive = /**
42
- * @return {?}
43
- */
44
- function () {
22
+ ConfirmThenDialogComponent.prototype.isDestructive = function () {
45
23
  return this.confirm.destructive && this.confirm.destructive();
46
24
  };
47
- /**
48
- * @return {?}
49
- */
50
- ConfirmThenDialogComponent.prototype.onConfirm = /**
51
- * @return {?}
52
- */
53
- function () {
25
+ ConfirmThenDialogComponent.prototype.onConfirm = function () {
54
26
  var _this = this;
55
27
  this.interactionContext.startActivity(this.config.activityType, this.config.data)
56
- .then((/**
57
- * @param {?} result
58
- * @return {?}
59
- */
60
- function (result) { return _this.done(result); }))
61
- .catch((/**
62
- * @param {?} error
63
- * @return {?}
64
- */
65
- function (error) { return _this.cancel(error); }));
28
+ .then(function (result) { return _this.done(result); })
29
+ .catch(function (error) { return _this.cancel(error); });
66
30
  };
67
- ConfirmThenDialogComponent.decorators = [
68
- { type: Component, args: [{
69
- selector: 'aup-confirmation-dialog',
70
- template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)=\"cancel()\" data-cy=\"cancel-button\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"onConfirm()\" data-cy=\"confirm-button\">{{confirm.ok()}}</button>\n</div>\n\n",
71
- styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
72
- }] }
73
- ];
74
- /** @nocollapse */
75
31
  ConfirmThenDialogComponent.ctorParameters = function () { return [
76
32
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
77
33
  ]; };
34
+ ConfirmThenDialogComponent = __decorate([
35
+ Component({
36
+ selector: 'aup-confirmation-dialog',
37
+ template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)=\"cancel()\" data-cy=\"cancel-button\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"onConfirm()\" data-cy=\"confirm-button\">{{confirm.ok()}}</button>\n</div>\n\n",
38
+ styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
39
+ }),
40
+ __param(0, Inject(ACTIVITY_DATA)),
41
+ __metadata("design:paramtypes", [Object])
42
+ ], ConfirmThenDialogComponent);
78
43
  return ConfirmThenDialogComponent;
79
44
  }(Activity));
80
45
  export { ConfirmThenDialogComponent };
81
- if (false) {
82
- /** @type {?} */
83
- ConfirmThenDialogComponent.prototype.config;
84
- }
85
- (function (ConfirmThenDialogComponent) {
86
- /**
87
- * @record
88
- * @template D, R, E
89
- */
90
- function Data() { }
91
- ConfirmThenDialogComponent.Data = Data;
92
- if (false) {
93
- /** @type {?} */
94
- Data.prototype.confirm;
95
- /** @type {?} */
96
- Data.prototype.activityType;
97
- /** @type {?} */
98
- Data.prototype.data;
99
- }
100
- })(ConfirmThenDialogComponent || (ConfirmThenDialogComponent = {}));
101
46
  //# sourceMappingURL=confirm-then-dialog.component.js.map
@@ -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,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"]}
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;AASzD;IAAyD,8CAAwD;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,GAAR;IACA,CAAC;IAED,sBAAI,+CAAO;aAAX;YACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7B,CAAC;;;OAAA;IAED,kDAAa,GAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;IAED,8CAAS,GAAT;QAAA,iBAIC;QAHC,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC9E,IAAI,CAAC,UAAC,MAAM,IAAK,OAAA,KAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAjB,CAAiB,CAAC;aACnC,KAAK,CAAC,UAAA,KAAK,IAAI,OAAA,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAlB,CAAkB,CAAC,CAAC;IACxC,CAAC;;gDApBY,MAAM,SAAC,aAAa;;IAFtB,0BAA0B;QALtC,SAAS,CAAC;YACT,QAAQ,EAAE,yBAAyB;YACnC,wdAAmD;;SAEpD,CAAC;QAGa,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;;OAFvB,0BAA0B,CAuBtC;IAAD,iCAAC;CAAA,AAvBD,CAAyD,QAAQ,GAuBhE;SAvBY,0BAA0B","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"]}
@@ -1,52 +1,33 @@
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";
1
+ import { __decorate, __extends, __metadata, __param } from "tslib";
6
2
  import { Component, Inject } from '@angular/core';
7
3
  import { assert } from '@coolon/pectin';
8
4
  import { Activity, ACTIVITY_DATA } from '../../activity';
9
5
  var ConfirmationDialogComponent = /** @class */ (function (_super) {
10
- tslib_1.__extends(ConfirmationDialogComponent, _super);
6
+ __extends(ConfirmationDialogComponent, _super);
11
7
  function ConfirmationDialogComponent(confirm) {
12
8
  var _this = _super.call(this) || this;
13
9
  _this.confirm = confirm;
14
10
  assert.notNil(confirm);
15
11
  return _this;
16
12
  }
17
- /**
18
- * @return {?}
19
- */
20
- ConfirmationDialogComponent.prototype.ngOnInit = /**
21
- * @return {?}
22
- */
23
- function () {
13
+ ConfirmationDialogComponent.prototype.ngOnInit = function () {
24
14
  };
25
- /**
26
- * @return {?}
27
- */
28
- ConfirmationDialogComponent.prototype.isDestructive = /**
29
- * @return {?}
30
- */
31
- function () {
15
+ ConfirmationDialogComponent.prototype.isDestructive = function () {
32
16
  return this.confirm.destructive && this.confirm.destructive();
33
17
  };
34
- ConfirmationDialogComponent.decorators = [
35
- { type: Component, args: [{
36
- selector: 'aup-confirmation-dialog',
37
- template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)=\"cancel()\" data-cy=\"cancel-button\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"done()\" data-cy=\"confirm-button\">{{confirm.ok()}}</button>\n</div>\n\n",
38
- styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
39
- }] }
40
- ];
41
- /** @nocollapse */
42
18
  ConfirmationDialogComponent.ctorParameters = function () { return [
43
19
  { type: undefined, decorators: [{ type: Inject, args: [ACTIVITY_DATA,] }] }
44
20
  ]; };
21
+ ConfirmationDialogComponent = __decorate([
22
+ Component({
23
+ selector: 'aup-confirmation-dialog',
24
+ template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)=\"cancel()\" data-cy=\"cancel-button\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"done()\" data-cy=\"confirm-button\">{{confirm.ok()}}</button>\n</div>\n\n",
25
+ styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
26
+ }),
27
+ __param(0, Inject(ACTIVITY_DATA)),
28
+ __metadata("design:paramtypes", [Object])
29
+ ], ConfirmationDialogComponent);
45
30
  return ConfirmationDialogComponent;
46
31
  }(Activity));
47
32
  export { ConfirmationDialogComponent };
48
- if (false) {
49
- /** @type {?} */
50
- ConfirmationDialogComponent.prototype.confirm;
51
- }
52
33
  //# sourceMappingURL=confirmation-dialog.component.js.map
@@ -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,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"]}
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;AAQzD;IAAiD,+CAAuB;IAEtE,qCAA4C,OAAgB;QAA5D,YACE,iBAAO,SAER;QAH2C,aAAO,GAAP,OAAO,CAAS;QAE1D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;;IACzB,CAAC;IAED,8CAAQ,GAAR;IACA,CAAC;IAED,mDAAa,GAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;;gDAVY,MAAM,SAAC,aAAa;;IAFtB,2BAA2B;QALvC,SAAS,CAAC;YACT,QAAQ,EAAE,yBAAyB;YACnC,mdAAmD;;SAEpD,CAAC;QAGa,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;;OAFvB,2BAA2B,CAavC;IAAD,kCAAC;CAAA,AAbD,CAAiD,QAAQ,GAaxD;SAbY,2BAA2B","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"]}
@@ -1,158 +1,65 @@
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";
1
+ import { __decorate, __extends, __metadata } from "tslib";
6
2
  import { Component, ViewChild } from '@angular/core';
7
3
  import { DisposableComponent } from '../../../components/disposable-component';
8
4
  import { InteractionService } from '../../services/interaction.service';
9
5
  import { ActivityContainerComponent } from '../activity-container/activity-container.component';
10
- /**
11
- * @template D, R, E
12
- */
13
6
  var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
14
- tslib_1.__extends(InPlaceInteractionContextComponent, _super);
7
+ __extends(InPlaceInteractionContextComponent, _super);
15
8
  function InPlaceInteractionContextComponent(interactionService) {
16
9
  var _this = _super.call(this) || this;
17
10
  _this.interactionService = interactionService;
18
11
  return _this;
19
12
  }
20
- /**
21
- * @return {?}
22
- */
23
- InPlaceInteractionContextComponent.prototype.ngAfterViewInit = /**
24
- * @return {?}
25
- */
26
- function () {
13
+ InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
27
14
  this.interactionService.registerInplaceInteractionContext(this);
28
15
  };
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) {
16
+ InPlaceInteractionContextComponent.prototype.initialise = function (id, api) {
40
17
  this.activityContainerComponent.initialise(id, api);
41
18
  };
42
19
  Object.defineProperty(InPlaceInteractionContextComponent.prototype, "identifier", {
43
- get: /**
44
- * @return {?}
45
- */
46
- function () {
20
+ get: function () {
47
21
  return this.activityContainerComponent.identifier;
48
22
  },
49
23
  enumerable: true,
50
24
  configurable: true
51
25
  });
52
- /**
53
- * @param {?} alert
54
- * @return {?}
55
- */
56
- InPlaceInteractionContextComponent.prototype.alert = /**
57
- * @param {?} alert
58
- * @return {?}
59
- */
60
- function (alert) {
26
+ InPlaceInteractionContextComponent.prototype.alert = function (alert) {
61
27
  return this.activityContainerComponent.alert(alert);
62
28
  };
63
- /**
64
- * @return {?}
65
- */
66
- InPlaceInteractionContextComponent.prototype.cancelActiveActivity = /**
67
- * @return {?}
68
- */
69
- function () {
29
+ InPlaceInteractionContextComponent.prototype.cancelActiveActivity = function () {
70
30
  return this.activityContainerComponent.cancelActiveActivity();
71
31
  };
72
- /**
73
- * @param {?} confirm
74
- * @return {?}
75
- */
76
- InPlaceInteractionContextComponent.prototype.confirm = /**
77
- * @param {?} confirm
78
- * @return {?}
79
- */
80
- function (confirm) {
32
+ InPlaceInteractionContextComponent.prototype.confirm = function (confirm) {
81
33
  return this.activityContainerComponent.confirm(confirm);
82
34
  };
83
- /**
84
- * @param {?} confirm
85
- * @return {?}
86
- */
87
- InPlaceInteractionContextComponent.prototype.confirmOrReject = /**
88
- * @param {?} confirm
89
- * @return {?}
90
- */
91
- function (confirm) {
35
+ InPlaceInteractionContextComponent.prototype.confirmOrReject = function (confirm) {
92
36
  return this.activityContainerComponent.confirmOrReject(confirm);
93
37
  };
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) {
38
+ InPlaceInteractionContextComponent.prototype.confirmThen = function (confirm, activityType, data) {
109
39
  return this.activityContainerComponent.confirmThen(confirm, activityType);
110
40
  };
111
- /**
112
- * @return {?}
113
- */
114
- InPlaceInteractionContextComponent.prototype.isActive = /**
115
- * @return {?}
116
- */
117
- function () {
41
+ InPlaceInteractionContextComponent.prototype.isActive = function () {
118
42
  return this.activityContainerComponent.isActive();
119
43
  };
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) {
44
+ InPlaceInteractionContextComponent.prototype.startActivity = function (activityType, data) {
133
45
  return this.activityContainerComponent.startActivity(activityType, data);
134
46
  };
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
47
  InPlaceInteractionContextComponent.ctorParameters = function () { return [
144
48
  { type: InteractionService }
145
49
  ]; };
146
- InPlaceInteractionContextComponent.propDecorators = {
147
- activityContainerComponent: [{ type: ViewChild, args: ['activityContainer', { static: true },] }]
148
- };
50
+ __decorate([
51
+ ViewChild('activityContainer', { static: true }),
52
+ __metadata("design:type", ActivityContainerComponent)
53
+ ], InPlaceInteractionContextComponent.prototype, "activityContainerComponent", void 0);
54
+ InPlaceInteractionContextComponent = __decorate([
55
+ Component({
56
+ selector: 'aup-in-place-interaction-context',
57
+ 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",
58
+ styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
59
+ }),
60
+ __metadata("design:paramtypes", [InteractionService])
61
+ ], InPlaceInteractionContextComponent);
149
62
  return InPlaceInteractionContextComponent;
150
63
  }(DisposableComponent));
151
64
  export { InPlaceInteractionContextComponent };
152
- if (false) {
153
- /** @type {?} */
154
- InPlaceInteractionContextComponent.prototype.activityContainerComponent;
155
- /** @type {?} */
156
- InPlaceInteractionContextComponent.prototype.interactionService;
157
- }
158
65
  //# sourceMappingURL=in-place-interaction-context.component.js.map