@coolon/angular-ui-powerups 2.0.2 → 3.0.0

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 (844) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +2192 -2390
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -16
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  8. package/esm2015/index.js.map +1 -1
  9. package/esm2015/lib/angular-ui-powerups.module.js +27 -29
  10. package/esm2015/lib/angular-ui-powerups.module.js.map +1 -1
  11. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  12. package/esm2015/lib/animations/index.js.map +1 -1
  13. package/esm2015/lib/animations/slide-animations.js.map +1 -1
  14. package/esm2015/lib/components/card-container/card-container.component.js +13 -15
  15. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -1
  16. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  17. package/esm2015/lib/components/card-container/card-container.component.ngfactory.js.map +1 -1
  18. package/esm2015/lib/components/card-container/card-container.component.scss.shim.ngstyle.js.map +1 -1
  19. package/esm2015/lib/components/commands/command/command.component.js +21 -17
  20. package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
  21. package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -1
  22. package/esm2015/lib/components/commands/command-face/command-face.component.js +19 -34
  23. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  24. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  25. package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -1
  26. package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -1
  27. package/esm2015/lib/components/commands/command-face.js.map +1 -1
  28. package/esm2015/lib/components/commands/flex.component.js +8 -11
  29. package/esm2015/lib/components/commands/flex.component.js.map +1 -1
  30. package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -1
  31. package/esm2015/lib/components/commands/group/command-group/command-group.component.js +20 -26
  32. package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -1
  33. package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -1
  34. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +16 -25
  35. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -1
  36. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -1
  37. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +16 -17
  38. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -1
  39. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -1
  40. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -1
  41. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -1
  42. package/esm2015/lib/components/commands/group/command-group.js.map +1 -1
  43. package/esm2015/lib/components/commands/group/more-menu.component.js +15 -19
  44. package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -1
  45. package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -1
  46. package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -1
  47. package/esm2015/lib/components/commands/group/popup-menu.component.js +19 -32
  48. package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -1
  49. package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -1
  50. package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -1
  51. package/esm2015/lib/components/commands/group/registration.js.map +1 -1
  52. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +13 -32
  53. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -1
  54. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
  55. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -1
  56. package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -1
  57. package/esm2015/lib/components/commands/group/view-data.js.map +1 -1
  58. package/esm2015/lib/components/commands/separator.component.js +9 -13
  59. package/esm2015/lib/components/commands/separator.component.js.map +1 -1
  60. package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -1
  61. package/esm2015/lib/components/components.module.js +107 -110
  62. package/esm2015/lib/components/components.module.js.map +1 -1
  63. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  64. package/esm2015/lib/components/disposable-component.js +5 -7
  65. package/esm2015/lib/components/disposable-component.js.map +1 -1
  66. package/esm2015/lib/components/focus-container/focus-container.component.js +16 -21
  67. package/esm2015/lib/components/focus-container/focus-container.component.js.map +1 -1
  68. package/esm2015/lib/components/focus-container/focus-container.component.ngfactory.js.map +1 -1
  69. package/esm2015/lib/components/focus-container/focus-container.component.scss.shim.ngstyle.js.map +1 -1
  70. package/esm2015/lib/components/focusable.component.js +10 -25
  71. package/esm2015/lib/components/focusable.component.js.map +1 -1
  72. package/esm2015/lib/components/focusable.component.ngfactory.js.map +1 -1
  73. package/esm2015/lib/components/forms/abstract-input.component.js +25 -86
  74. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  75. package/esm2015/lib/components/forms/abstract-input.component.ngfactory.js.map +1 -1
  76. package/esm2015/lib/components/forms/abstract-list-input.component.js +12 -17
  77. package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
  78. package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
  79. package/esm2015/lib/components/forms/abstract-list-input.component.ngfactory.js.map +1 -1
  80. package/esm2015/lib/components/forms/abstract-value-input.component.js +12 -17
  81. package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
  82. package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
  83. package/esm2015/lib/components/forms/abstract-value-input.component.ngfactory.js.map +1 -1
  84. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +19 -28
  85. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -1
  86. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +1 -1
  87. package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +1 -1
  88. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +14 -20
  89. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
  90. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
  91. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.ngfactory.js.map +1 -1
  92. package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.scss.shim.ngstyle.js.map +1 -1
  93. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +18 -24
  94. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
  95. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.ngfactory.js.map +1 -1
  96. package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.scss.shim.ngstyle.js.map +1 -1
  97. package/esm2015/lib/components/forms/number-input/number-input.component.js +14 -20
  98. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  99. package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
  100. package/esm2015/lib/components/forms/number-input/number-input.component.ngfactory.js.map +1 -1
  101. package/esm2015/lib/components/forms/number-input/number-input.component.scss.shim.ngstyle.js.map +1 -1
  102. package/esm2015/lib/components/forms/password-input/password-input.component.js +11 -13
  103. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  104. package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
  105. package/esm2015/lib/components/forms/password-input/password-input.component.ngfactory.js.map +1 -1
  106. package/esm2015/lib/components/forms/password-input/password-input.component.scss.shim.ngstyle.js.map +1 -1
  107. package/esm2015/lib/components/forms/select-input/select-input.component.js +20 -32
  108. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  109. package/esm2015/lib/components/forms/select-input/select-input.component.ngfactory.js.map +1 -1
  110. package/esm2015/lib/components/forms/select-input/select-input.component.scss.shim.ngstyle.js.map +1 -1
  111. package/esm2015/lib/components/forms/string-input/string-input.component.js +15 -12
  112. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  113. package/esm2015/lib/components/forms/string-input/string-input.component.ngfactory.js.map +1 -1
  114. package/esm2015/lib/components/forms/string-input/string-input.component.scss.shim.ngstyle.js.map +1 -1
  115. package/esm2015/lib/components/forms/text-input/text-input.component.js +14 -20
  116. package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
  117. package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
  118. package/esm2015/lib/components/forms/text-input/text-input.component.ngfactory.js.map +1 -1
  119. package/esm2015/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +1 -1
  120. package/esm2015/lib/components/icon/icon.component.js +13 -18
  121. package/esm2015/lib/components/icon/icon.component.js.map +1 -1
  122. package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
  123. package/esm2015/lib/components/icon/icon.component.ngfactory.js.map +1 -1
  124. package/esm2015/lib/components/icon/icon.component.scss.shim.ngstyle.js.map +1 -1
  125. package/esm2015/lib/components/index.js +5 -0
  126. package/esm2015/lib/components/index.js.map +1 -1
  127. package/esm2015/lib/components/noop/noop.component.js +10 -12
  128. package/esm2015/lib/components/noop/noop.component.js.map +1 -1
  129. package/esm2015/lib/components/noop/noop.component.ngfactory.js.map +1 -1
  130. package/esm2015/lib/components/noop/noop.component.scss.shim.ngstyle.js.map +1 -1
  131. package/esm2015/lib/components/resize-aware.component.js +6 -9
  132. package/esm2015/lib/components/resize-aware.component.js.map +1 -1
  133. package/esm2015/lib/components/scroll-container/scroll-container.component.js +10 -12
  134. package/esm2015/lib/components/scroll-container/scroll-container.component.js.map +1 -1
  135. package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -1
  136. package/esm2015/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +1 -1
  137. package/esm2015/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +1 -1
  138. package/esm2015/lib/components/section-header/section-header.component.js +12 -16
  139. package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
  140. package/esm2015/lib/components/section-header/section-header.component.metadata.json +1 -1
  141. package/esm2015/lib/components/section-header/section-header.component.ngfactory.js.map +1 -1
  142. package/esm2015/lib/components/section-header/section-header.component.scss.shim.ngstyle.js.map +1 -1
  143. package/esm2015/lib/components/switch-case/switch-case.component.js +36 -43
  144. package/esm2015/lib/components/switch-case/switch-case.component.js.map +1 -1
  145. package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -1
  146. package/esm2015/lib/components/switch-case/switch-case.component.ngfactory.js.map +1 -1
  147. package/esm2015/lib/components/switch-case/switch-case.component.scss.shim.ngstyle.js.map +1 -1
  148. package/esm2015/lib/components/table/cell-editors.js +1 -0
  149. package/esm2015/lib/components/table/cell-editors.js.map +1 -1
  150. package/esm2015/lib/components/table/cell-portal-ref.js.map +1 -1
  151. package/esm2015/lib/components/table/cell-renderer.js +1 -0
  152. package/esm2015/lib/components/table/cell-renderer.js.map +1 -1
  153. package/esm2015/lib/components/table/column-model.js.map +1 -1
  154. package/esm2015/lib/components/table/column-template/column-template.directive.js +14 -29
  155. package/esm2015/lib/components/table/column-template/column-template.directive.js.map +1 -1
  156. package/esm2015/lib/components/table/column-template/column-template.directive.ngfactory.js.map +1 -1
  157. package/esm2015/lib/components/table/column-text-properties.js +1 -0
  158. package/esm2015/lib/components/table/column-text-properties.js.map +1 -1
  159. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +12 -16
  160. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
  161. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +1 -1
  162. package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
  163. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +12 -15
  164. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -1
  165. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +1 -1
  166. package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
  167. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js +14 -19
  168. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
  169. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +1 -1
  170. package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +1 -1
  171. package/esm2015/lib/components/table/edit-session.js.map +1 -1
  172. package/esm2015/lib/components/table/mutable-cell-renderer.js +1 -0
  173. package/esm2015/lib/components/table/mutable-cell-renderer.js.map +1 -1
  174. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js +12 -15
  175. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +1 -1
  176. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +1 -1
  177. package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
  178. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +10 -12
  179. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -1
  180. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +1 -1
  181. package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
  182. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +18 -39
  183. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
  184. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +1 -1
  185. package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
  186. package/esm2015/lib/components/table/table-def.js +1 -0
  187. package/esm2015/lib/components/table/table-def.js.map +1 -1
  188. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +13 -19
  189. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
  190. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
  191. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +1 -1
  192. package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -1
  193. package/esm2015/lib/components/table/table-model.js +1 -4
  194. package/esm2015/lib/components/table/table-model.js.map +1 -1
  195. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +14 -20
  196. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
  197. package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -1
  198. package/esm2015/lib/components/table/table.component.js +12 -11
  199. package/esm2015/lib/components/table/table.component.js.map +1 -1
  200. package/esm2015/lib/components/table/table.component.metadata.json +1 -1
  201. package/esm2015/lib/components/table/table.component.ngfactory.js.map +1 -1
  202. package/esm2015/lib/components/table/table.component.scss.shim.ngstyle.js.map +1 -1
  203. package/esm2015/lib/components/track-by.js.map +1 -1
  204. package/esm2015/lib/components/types/bounds.class.js.map +1 -1
  205. package/esm2015/lib/components/types/dimension.class.js.map +1 -1
  206. package/esm2015/lib/components/types/point.class.js.map +1 -1
  207. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +21 -42
  208. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -1
  209. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +1 -1
  210. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +1 -1
  211. package/esm2015/lib/directives/command.directive.js +14 -29
  212. package/esm2015/lib/directives/command.directive.js.map +1 -1
  213. package/esm2015/lib/directives/command.directive.ngfactory.js.map +1 -1
  214. package/esm2015/lib/directives/directives.module.js +23 -25
  215. package/esm2015/lib/directives/directives.module.js.map +1 -1
  216. package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
  217. package/esm2015/lib/directives/focus-binding-factory.js +9 -13
  218. package/esm2015/lib/directives/focus-binding-factory.js.map +1 -1
  219. package/esm2015/lib/directives/focus-binding-factory.ngfactory.js.map +1 -1
  220. package/esm2015/lib/directives/focus-binding.directive.js +15 -34
  221. package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
  222. package/esm2015/lib/directives/focus-binding.directive.ngfactory.js.map +1 -1
  223. package/esm2015/lib/directives/focus-binding.js +8 -10
  224. package/esm2015/lib/directives/focus-binding.js.map +1 -1
  225. package/esm2015/lib/directives/index.js.map +1 -1
  226. package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
  227. package/esm2015/lib/interaction/activity-ref.js.map +1 -1
  228. package/esm2015/lib/interaction/activity.js +10 -11
  229. package/esm2015/lib/interaction/activity.js.map +1 -1
  230. package/esm2015/lib/interaction/activity.metadata.json +1 -1
  231. package/esm2015/lib/interaction/activity.ngfactory.js.map +1 -0
  232. package/esm2015/lib/interaction/alert.js +1 -0
  233. package/esm2015/lib/interaction/alert.js.map +1 -1
  234. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -33
  235. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
  236. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
  237. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +1 -1
  238. package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +1 -1
  239. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +15 -23
  240. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  241. package/esm2015/lib/interaction/components/activity-container/activity-container.component.ngfactory.js.map +1 -1
  242. package/esm2015/lib/interaction/components/activity-container/activity-container.component.scss.shim.ngstyle.js.map +1 -1
  243. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +14 -24
  244. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  245. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +1 -1
  246. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +1 -1
  247. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +19 -40
  248. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -1
  249. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  250. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +1 -1
  251. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +1 -1
  252. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +9 -13
  253. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  254. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  255. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.ngfactory.js.map +1 -1
  256. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.scss.shim.ngstyle.js.map +1 -1
  257. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +9 -13
  258. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  259. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  260. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.ngfactory.js.map +1 -1
  261. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.scss.shim.ngstyle.js.map +1 -1
  262. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +9 -13
  263. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  264. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  265. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.ngfactory.js.map +1 -1
  266. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.scss.shim.ngstyle.js.map +1 -1
  267. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +13 -21
  268. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  269. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +1 -1
  270. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +1 -1
  271. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +8 -13
  272. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
  273. package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +1 -1
  274. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js +1 -0
  275. package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -1
  276. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js +1 -0
  277. package/esm2015/lib/interaction/components/input-activities/select-input-activity-data.js.map +1 -1
  278. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js +8 -10
  279. package/esm2015/lib/interaction/components/input-activities/select-input-activity.js.map +1 -1
  280. package/esm2015/lib/interaction/components/input-activities/select-input-activity.ngfactory.js.map +1 -1
  281. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js +8 -10
  282. package/esm2015/lib/interaction/components/input-activities/string-input-activity.js.map +1 -1
  283. package/esm2015/lib/interaction/components/input-activities/string-input-activity.ngfactory.js.map +1 -1
  284. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +16 -28
  285. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
  286. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.ngfactory.js.map +1 -1
  287. package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.scss.shim.ngstyle.js.map +1 -1
  288. package/esm2015/lib/interaction/confirm.js +1 -0
  289. package/esm2015/lib/interaction/confirm.js.map +1 -1
  290. package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js +17 -45
  291. package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -1
  292. package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.ngfactory.js.map +1 -1
  293. package/esm2015/lib/interaction/index.js +7 -0
  294. package/esm2015/lib/interaction/index.js.map +1 -1
  295. package/esm2015/lib/interaction/interaction-context.js +1 -0
  296. package/esm2015/lib/interaction/interaction-context.js.map +1 -1
  297. package/esm2015/lib/interaction/interaction.module.js +59 -59
  298. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  299. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  300. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  301. package/esm2015/lib/interaction/result.js +1 -0
  302. package/esm2015/lib/interaction/result.js.map +1 -1
  303. package/esm2015/lib/interaction/route-synchronisation-adapter.js +1 -0
  304. package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -1
  305. package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
  306. package/esm2015/lib/interaction/services/interaction.service.js +14 -18
  307. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  308. package/esm2015/lib/interaction/services/interaction.service.ngfactory.js.map +1 -1
  309. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +8 -15
  310. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
  311. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.ngfactory.js.map +1 -1
  312. package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
  313. package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
  314. package/esm2015/lib/place/components/abstract-place-navigation.component.js +17 -13
  315. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  316. package/esm2015/lib/place/components/abstract-place-navigation.component.ngfactory.js.map +1 -1
  317. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +15 -12
  318. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
  319. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
  320. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.ngfactory.js.map +1 -1
  321. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.scss.shim.ngstyle.js.map +1 -1
  322. package/esm2015/lib/place/components/empty-state/empty-state.component.js +10 -12
  323. package/esm2015/lib/place/components/empty-state/empty-state.component.js.map +1 -1
  324. package/esm2015/lib/place/components/empty-state/empty-state.component.metadata.json +1 -1
  325. package/esm2015/lib/place/components/empty-state/empty-state.component.ngfactory.js.map +1 -1
  326. package/esm2015/lib/place/components/empty-state/empty-state.component.scss.shim.ngstyle.js.map +1 -1
  327. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +9 -12
  328. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
  329. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
  330. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.ngfactory.js.map +1 -1
  331. package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.scss.shim.ngstyle.js.map +1 -1
  332. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +24 -29
  333. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  334. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  335. package/esm2015/lib/place/components/place-outlet/place-outlet.component.ngfactory.js.map +1 -1
  336. package/esm2015/lib/place/components/place-outlet/place-outlet.component.scss.shim.ngstyle.js.map +1 -1
  337. package/esm2015/lib/place/components/place-outlet/route-animations.js.map +1 -1
  338. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +13 -20
  339. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
  340. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
  341. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.ngfactory.js.map +1 -1
  342. package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.scss.shim.ngstyle.js.map +1 -1
  343. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +9 -12
  344. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
  345. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.ngfactory.js.map +1 -1
  346. package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.scss.shim.ngstyle.js.map +1 -1
  347. package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
  348. package/esm2015/lib/place/guards/noop-auth-guard.service.js +9 -10
  349. package/esm2015/lib/place/guards/noop-auth-guard.service.js.map +1 -1
  350. package/esm2015/lib/place/guards/noop-auth-guard.service.ngfactory.js.map +1 -1
  351. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  352. package/esm2015/lib/place/index.js +5 -1
  353. package/esm2015/lib/place/index.js.map +1 -1
  354. package/esm2015/lib/place/index.metadata.json +1 -1
  355. package/esm2015/lib/place/nav-item.js +1 -0
  356. package/esm2015/lib/place/nav-item.js.map +1 -1
  357. package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
  358. package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
  359. package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
  360. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
  361. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js +171 -0
  362. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js.map +1 -0
  363. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.metadata.json +1 -0
  364. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
  365. package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
  366. package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
  367. package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
  368. package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
  369. package/esm2015/lib/place/navigation/session/navigating.js +2 -2
  370. package/esm2015/lib/place/navigation/session/navigating.js.map +1 -1
  371. package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -1
  372. package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -1
  373. package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
  374. package/esm2015/lib/place/navigation/session/pop-state-navigation.metadata.json +1 -1
  375. package/esm2015/lib/place/place-component.js +7 -9
  376. package/esm2015/lib/place/place-component.js.map +1 -1
  377. package/esm2015/lib/place/place-config.js.map +1 -1
  378. package/esm2015/lib/place/place-definition.js.map +1 -1
  379. package/esm2015/lib/place/place-history.js +9 -12
  380. package/esm2015/lib/place/place-history.js.map +1 -1
  381. package/esm2015/lib/place/place-history.ngfactory.js.map +1 -1
  382. package/esm2015/lib/place/place-router.js +10 -16
  383. package/esm2015/lib/place/place-router.js.map +1 -1
  384. package/esm2015/lib/place/place-router.ngfactory.js.map +1 -1
  385. package/esm2015/lib/place/place.decorator.js.map +1 -1
  386. package/esm2015/lib/place/place.module.js +41 -43
  387. package/esm2015/lib/place/place.module.js.map +1 -1
  388. package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
  389. package/esm2015/lib/place/route/formatter.js.map +1 -1
  390. package/esm2015/lib/place/route/json-types.js +1 -0
  391. package/esm2015/lib/place/route/json-types.js.map +1 -1
  392. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  393. package/esm2015/lib/place/route/parameter-definition.class.js.map +1 -1
  394. package/esm2015/lib/place/route/parameter-sanitiser.js +1 -0
  395. package/esm2015/lib/place/route/parameter-sanitiser.js.map +1 -1
  396. package/esm2015/lib/place/route/parameter-snapshot.js +1 -0
  397. package/esm2015/lib/place/route/parameter-snapshot.js.map +1 -1
  398. package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
  399. package/esm2015/lib/place/url-service.js +8 -11
  400. package/esm2015/lib/place/url-service.js.map +1 -1
  401. package/esm2015/lib/place/url-service.ngfactory.js.map +1 -1
  402. package/esm2015/lib/place/url-snapshot.js.map +1 -1
  403. package/esm2015/lib/place/visit.js.map +1 -1
  404. package/esm2015/public_api.js.map +1 -1
  405. package/fesm2015/coolon-angular-ui-powerups.js +1446 -1754
  406. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  407. package/lib/components/forms/abstract-list-input.component.d.ts +3 -3
  408. package/lib/components/forms/abstract-value-input.component.d.ts +3 -3
  409. package/lib/components/table/cell-editors.d.ts +3 -3
  410. package/lib/interaction/activity.d.ts +1 -1
  411. package/lib/place/index.d.ts +1 -1
  412. package/lib/place/navigation/session/event-cleanup/{wait-until-link-triggered-interaction-cancelation-finishes.d.ts → wait-until-link-triggered-navigation-interaction-cancelation-type-determined.d.ts} +8 -24
  413. package/package.json +5 -7
  414. package/schematics/bootstrap-app/index.js +1 -0
  415. package/schematics/bootstrap-app/index.js.map +1 -1
  416. package/schematics/ng-add/index.js +1 -0
  417. package/schematics/ng-add/index.js.map +1 -1
  418. package/schematics/package-util.js +1 -0
  419. package/schematics/package-util.js.map +1 -1
  420. package/schematics/place-add/index.js +1 -0
  421. package/schematics/place-add/index.js.map +1 -1
  422. package/schematics/place-routes/index.js +1 -0
  423. package/schematics/place-routes/index.js.map +1 -1
  424. package/schematics/place-routes/place-builder.js +1 -0
  425. package/schematics/place-routes/place-builder.js.map +1 -1
  426. package/schematics/place-routes/place-class-scanner.js +1 -0
  427. package/schematics/place-routes/place-class-scanner.js.map +1 -1
  428. package/schematics/place-routes/place-def.js +1 -0
  429. package/schematics/place-routes/place-def.js.map +1 -1
  430. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +0 -80
  431. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +0 -1
  432. package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.metadata.json +0 -1
  433. package/esm5/coolon-angular-ui-powerups.js +0 -84
  434. package/esm5/coolon-angular-ui-powerups.js.map +0 -1
  435. package/esm5/index.js +0 -2
  436. package/esm5/index.js.map +0 -1
  437. package/esm5/lib/angular-ui-powerups.module.js +0 -46
  438. package/esm5/lib/angular-ui-powerups.module.js.map +0 -1
  439. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +0 -1
  440. package/esm5/lib/animations/index.js +0 -5
  441. package/esm5/lib/animations/index.js.map +0 -1
  442. package/esm5/lib/animations/slide-animations.js +0 -23
  443. package/esm5/lib/animations/slide-animations.js.map +0 -1
  444. package/esm5/lib/components/card-container/card-container.component.js +0 -50
  445. package/esm5/lib/components/card-container/card-container.component.js.map +0 -1
  446. package/esm5/lib/components/card-container/card-container.component.ngfactory.js.map +0 -1
  447. package/esm5/lib/components/card-container/card-container.component.scss.shim.ngstyle.js.map +0 -1
  448. package/esm5/lib/components/commands/command/command.component.js +0 -64
  449. package/esm5/lib/components/commands/command/command.component.js.map +0 -1
  450. package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +0 -1
  451. package/esm5/lib/components/commands/command-face/command-face.component.js +0 -123
  452. package/esm5/lib/components/commands/command-face/command-face.component.js.map +0 -1
  453. package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
  454. package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
  455. package/esm5/lib/components/commands/command-face.js +0 -145
  456. package/esm5/lib/components/commands/command-face.js.map +0 -1
  457. package/esm5/lib/components/commands/flex.component.js +0 -33
  458. package/esm5/lib/components/commands/flex.component.js.map +0 -1
  459. package/esm5/lib/components/commands/flex.component.ngfactory.js.map +0 -1
  460. package/esm5/lib/components/commands/group/command-group/command-group.component.js +0 -51
  461. package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
  462. package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
  463. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -59
  464. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
  465. package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
  466. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -42
  467. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
  468. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
  469. package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
  470. package/esm5/lib/components/commands/group/command-group.js +0 -122
  471. package/esm5/lib/components/commands/group/command-group.js.map +0 -1
  472. package/esm5/lib/components/commands/group/more-menu.component.js +0 -58
  473. package/esm5/lib/components/commands/group/more-menu.component.js.map +0 -1
  474. package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
  475. package/esm5/lib/components/commands/group/popup-menu.component.js +0 -68
  476. package/esm5/lib/components/commands/group/popup-menu.component.js.map +0 -1
  477. package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
  478. package/esm5/lib/components/commands/group/registration.js +0 -80
  479. package/esm5/lib/components/commands/group/registration.js.map +0 -1
  480. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +0 -58
  481. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +0 -1
  482. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +0 -1
  483. package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
  484. package/esm5/lib/components/commands/group/view-data.js +0 -131
  485. package/esm5/lib/components/commands/group/view-data.js.map +0 -1
  486. package/esm5/lib/components/commands/separator.component.js +0 -37
  487. package/esm5/lib/components/commands/separator.component.js.map +0 -1
  488. package/esm5/lib/components/commands/separator.component.ngfactory.js.map +0 -1
  489. package/esm5/lib/components/components.module.js +0 -180
  490. package/esm5/lib/components/components.module.js.map +0 -1
  491. package/esm5/lib/components/components.module.ngfactory.js.map +0 -1
  492. package/esm5/lib/components/disposable-component.js +0 -18
  493. package/esm5/lib/components/disposable-component.js.map +0 -1
  494. package/esm5/lib/components/focus-container/focus-container.component.js +0 -44
  495. package/esm5/lib/components/focus-container/focus-container.component.js.map +0 -1
  496. package/esm5/lib/components/focus-container/focus-container.component.ngfactory.js.map +0 -1
  497. package/esm5/lib/components/focus-container/focus-container.component.scss.shim.ngstyle.js.map +0 -1
  498. package/esm5/lib/components/focusable.component.js +0 -71
  499. package/esm5/lib/components/focusable.component.js.map +0 -1
  500. package/esm5/lib/components/focusable.component.ngfactory.js.map +0 -1
  501. package/esm5/lib/components/forms/abstract-input.component.js +0 -197
  502. package/esm5/lib/components/forms/abstract-input.component.js.map +0 -1
  503. package/esm5/lib/components/forms/abstract-input.component.ngfactory.js.map +0 -1
  504. package/esm5/lib/components/forms/abstract-list-input.component.js +0 -80
  505. package/esm5/lib/components/forms/abstract-list-input.component.js.map +0 -1
  506. package/esm5/lib/components/forms/abstract-list-input.component.ngfactory.js.map +0 -1
  507. package/esm5/lib/components/forms/abstract-value-input.component.js +0 -80
  508. package/esm5/lib/components/forms/abstract-value-input.component.js.map +0 -1
  509. package/esm5/lib/components/forms/abstract-value-input.component.ngfactory.js.map +0 -1
  510. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -73
  511. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
  512. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
  513. package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
  514. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +0 -35
  515. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +0 -1
  516. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.ngfactory.js.map +0 -1
  517. package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.scss.shim.ngstyle.js.map +0 -1
  518. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +0 -52
  519. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +0 -1
  520. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.ngfactory.js.map +0 -1
  521. package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.scss.shim.ngstyle.js.map +0 -1
  522. package/esm5/lib/components/forms/number-input/number-input.component.js +0 -35
  523. package/esm5/lib/components/forms/number-input/number-input.component.js.map +0 -1
  524. package/esm5/lib/components/forms/number-input/number-input.component.ngfactory.js.map +0 -1
  525. package/esm5/lib/components/forms/number-input/number-input.component.scss.shim.ngstyle.js.map +0 -1
  526. package/esm5/lib/components/forms/password-input/password-input.component.js +0 -24
  527. package/esm5/lib/components/forms/password-input/password-input.component.js.map +0 -1
  528. package/esm5/lib/components/forms/password-input/password-input.component.ngfactory.js.map +0 -1
  529. package/esm5/lib/components/forms/password-input/password-input.component.scss.shim.ngstyle.js.map +0 -1
  530. package/esm5/lib/components/forms/select-input/select-input.component.js +0 -60
  531. package/esm5/lib/components/forms/select-input/select-input.component.js.map +0 -1
  532. package/esm5/lib/components/forms/select-input/select-input.component.ngfactory.js.map +0 -1
  533. package/esm5/lib/components/forms/select-input/select-input.component.scss.shim.ngstyle.js.map +0 -1
  534. package/esm5/lib/components/forms/string-input/string-input.component.js +0 -37
  535. package/esm5/lib/components/forms/string-input/string-input.component.js.map +0 -1
  536. package/esm5/lib/components/forms/string-input/string-input.component.ngfactory.js.map +0 -1
  537. package/esm5/lib/components/forms/string-input/string-input.component.scss.shim.ngstyle.js.map +0 -1
  538. package/esm5/lib/components/forms/text-input/text-input.component.js +0 -35
  539. package/esm5/lib/components/forms/text-input/text-input.component.js.map +0 -1
  540. package/esm5/lib/components/forms/text-input/text-input.component.ngfactory.js.map +0 -1
  541. package/esm5/lib/components/forms/text-input/text-input.component.scss.shim.ngstyle.js.map +0 -1
  542. package/esm5/lib/components/icon/icon.component.js +0 -57
  543. package/esm5/lib/components/icon/icon.component.js.map +0 -1
  544. package/esm5/lib/components/icon/icon.component.ngfactory.js.map +0 -1
  545. package/esm5/lib/components/icon/icon.component.scss.shim.ngstyle.js.map +0 -1
  546. package/esm5/lib/components/index.js +0 -59
  547. package/esm5/lib/components/index.js.map +0 -1
  548. package/esm5/lib/components/noop/noop.component.js +0 -17
  549. package/esm5/lib/components/noop/noop.component.js.map +0 -1
  550. package/esm5/lib/components/noop/noop.component.ngfactory.js.map +0 -1
  551. package/esm5/lib/components/noop/noop.component.scss.shim.ngstyle.js.map +0 -1
  552. package/esm5/lib/components/resize-aware.component.js +0 -65
  553. package/esm5/lib/components/resize-aware.component.js.map +0 -1
  554. package/esm5/lib/components/scroll-container/scroll-container.component.js +0 -19
  555. package/esm5/lib/components/scroll-container/scroll-container.component.js.map +0 -1
  556. package/esm5/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +0 -1
  557. package/esm5/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +0 -1
  558. package/esm5/lib/components/section-header/section-header.component.js +0 -25
  559. package/esm5/lib/components/section-header/section-header.component.js.map +0 -1
  560. package/esm5/lib/components/section-header/section-header.component.ngfactory.js.map +0 -1
  561. package/esm5/lib/components/section-header/section-header.component.scss.shim.ngstyle.js.map +0 -1
  562. package/esm5/lib/components/switch-case/switch-case.component.js +0 -144
  563. package/esm5/lib/components/switch-case/switch-case.component.js.map +0 -1
  564. package/esm5/lib/components/switch-case/switch-case.component.ngfactory.js.map +0 -1
  565. package/esm5/lib/components/switch-case/switch-case.component.scss.shim.ngstyle.js.map +0 -1
  566. package/esm5/lib/components/table/cell-editors.js +0 -1
  567. package/esm5/lib/components/table/cell-editors.js.map +0 -1
  568. package/esm5/lib/components/table/cell-portal-ref.js +0 -117
  569. package/esm5/lib/components/table/cell-portal-ref.js.map +0 -1
  570. package/esm5/lib/components/table/cell-renderer.js +0 -1
  571. package/esm5/lib/components/table/cell-renderer.js.map +0 -1
  572. package/esm5/lib/components/table/column-model.js +0 -346
  573. package/esm5/lib/components/table/column-model.js.map +0 -1
  574. package/esm5/lib/components/table/column-template/column-template.directive.js +0 -50
  575. package/esm5/lib/components/table/column-template/column-template.directive.js.map +0 -1
  576. package/esm5/lib/components/table/column-template/column-template.directive.ngfactory.js.map +0 -1
  577. package/esm5/lib/components/table/column-text-properties.js +0 -1
  578. package/esm5/lib/components/table/column-text-properties.js.map +0 -1
  579. package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +0 -32
  580. package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +0 -1
  581. package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +0 -1
  582. package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  583. package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +0 -21
  584. package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +0 -1
  585. package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +0 -1
  586. package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  587. package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js +0 -57
  588. package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +0 -1
  589. package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +0 -1
  590. package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +0 -1
  591. package/esm5/lib/components/table/edit-session.js +0 -28
  592. package/esm5/lib/components/table/edit-session.js.map +0 -1
  593. package/esm5/lib/components/table/mutable-cell-renderer.js +0 -1
  594. package/esm5/lib/components/table/mutable-cell-renderer.js.map +0 -1
  595. package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.js +0 -32
  596. package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +0 -1
  597. package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +0 -1
  598. package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  599. package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +0 -33
  600. package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +0 -1
  601. package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +0 -1
  602. package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  603. package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +0 -106
  604. package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +0 -1
  605. package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +0 -1
  606. package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  607. package/esm5/lib/components/table/table-def.js +0 -1
  608. package/esm5/lib/components/table/table-def.js.map +0 -1
  609. package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +0 -38
  610. package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +0 -1
  611. package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +0 -1
  612. package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
  613. package/esm5/lib/components/table/table-model.js +0 -243
  614. package/esm5/lib/components/table/table-model.js.map +0 -1
  615. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +0 -63
  616. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
  617. package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
  618. package/esm5/lib/components/table/table.component.js +0 -75
  619. package/esm5/lib/components/table/table.component.js.map +0 -1
  620. package/esm5/lib/components/table/table.component.ngfactory.js.map +0 -1
  621. package/esm5/lib/components/table/table.component.scss.shim.ngstyle.js.map +0 -1
  622. package/esm5/lib/components/track-by.js +0 -5
  623. package/esm5/lib/components/track-by.js.map +0 -1
  624. package/esm5/lib/components/types/bounds.class.js +0 -32
  625. package/esm5/lib/components/types/bounds.class.js.map +0 -1
  626. package/esm5/lib/components/types/dimension.class.js +0 -9
  627. package/esm5/lib/components/types/dimension.class.js.map +0 -1
  628. package/esm5/lib/components/types/point.class.js +0 -15
  629. package/esm5/lib/components/types/point.class.js.map +0 -1
  630. package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js +0 -90
  631. package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +0 -1
  632. package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +0 -1
  633. package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +0 -1
  634. package/esm5/lib/directives/command.directive.js +0 -116
  635. package/esm5/lib/directives/command.directive.js.map +0 -1
  636. package/esm5/lib/directives/command.directive.ngfactory.js.map +0 -1
  637. package/esm5/lib/directives/directives.module.js +0 -39
  638. package/esm5/lib/directives/directives.module.js.map +0 -1
  639. package/esm5/lib/directives/directives.module.ngfactory.js.map +0 -1
  640. package/esm5/lib/directives/focus-binding-factory.js +0 -32
  641. package/esm5/lib/directives/focus-binding-factory.js.map +0 -1
  642. package/esm5/lib/directives/focus-binding-factory.ngfactory.js.map +0 -1
  643. package/esm5/lib/directives/focus-binding.directive.js +0 -80
  644. package/esm5/lib/directives/focus-binding.directive.js.map +0 -1
  645. package/esm5/lib/directives/focus-binding.directive.ngfactory.js.map +0 -1
  646. package/esm5/lib/directives/focus-binding.js +0 -88
  647. package/esm5/lib/directives/focus-binding.js.map +0 -1
  648. package/esm5/lib/directives/index.js +0 -9
  649. package/esm5/lib/directives/index.js.map +0 -1
  650. package/esm5/lib/interaction/abstract-interaction-context.js +0 -40
  651. package/esm5/lib/interaction/abstract-interaction-context.js.map +0 -1
  652. package/esm5/lib/interaction/activity-ref.js +0 -68
  653. package/esm5/lib/interaction/activity-ref.js.map +0 -1
  654. package/esm5/lib/interaction/activity.js +0 -86
  655. package/esm5/lib/interaction/activity.js.map +0 -1
  656. package/esm5/lib/interaction/alert.js +0 -1
  657. package/esm5/lib/interaction/alert.js.map +0 -1
  658. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +0 -83
  659. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +0 -1
  660. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +0 -1
  661. package/esm5/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +0 -1
  662. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +0 -226
  663. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +0 -1
  664. package/esm5/lib/interaction/components/activity-container/activity-container.component.ngfactory.js.map +0 -1
  665. package/esm5/lib/interaction/components/activity-container/activity-container.component.scss.shim.ngstyle.js.map +0 -1
  666. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +0 -80
  667. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +0 -1
  668. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +0 -1
  669. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +0 -1
  670. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +0 -90
  671. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +0 -1
  672. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +0 -1
  673. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
  674. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +0 -28
  675. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +0 -1
  676. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.ngfactory.js.map +0 -1
  677. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.scss.shim.ngstyle.js.map +0 -1
  678. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +0 -46
  679. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +0 -1
  680. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.ngfactory.js.map +0 -1
  681. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.scss.shim.ngstyle.js.map +0 -1
  682. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +0 -33
  683. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +0 -1
  684. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.ngfactory.js.map +0 -1
  685. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.scss.shim.ngstyle.js.map +0 -1
  686. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +0 -86
  687. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +0 -1
  688. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +0 -1
  689. package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
  690. package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js +0 -51
  691. package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js.map +0 -1
  692. package/esm5/lib/interaction/components/input-activities/abstract-input-activity.ngfactory.js.map +0 -1
  693. package/esm5/lib/interaction/components/input-activities/input-activity-data.js +0 -1
  694. package/esm5/lib/interaction/components/input-activities/input-activity-data.js.map +0 -1
  695. package/esm5/lib/interaction/components/input-activities/select-input-activity-data.js +0 -1
  696. package/esm5/lib/interaction/components/input-activities/select-input-activity-data.js.map +0 -1
  697. package/esm5/lib/interaction/components/input-activities/select-input-activity.js +0 -38
  698. package/esm5/lib/interaction/components/input-activities/select-input-activity.js.map +0 -1
  699. package/esm5/lib/interaction/components/input-activities/select-input-activity.ngfactory.js.map +0 -1
  700. package/esm5/lib/interaction/components/input-activities/string-input-activity.js +0 -18
  701. package/esm5/lib/interaction/components/input-activities/string-input-activity.js.map +0 -1
  702. package/esm5/lib/interaction/components/input-activities/string-input-activity.ngfactory.js.map +0 -1
  703. package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +0 -111
  704. package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +0 -1
  705. package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.ngfactory.js.map +0 -1
  706. package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
  707. package/esm5/lib/interaction/confirm.js +0 -1
  708. package/esm5/lib/interaction/confirm.js.map +0 -1
  709. package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js +0 -94
  710. package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +0 -1
  711. package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.ngfactory.js.map +0 -1
  712. package/esm5/lib/interaction/index.js +0 -26
  713. package/esm5/lib/interaction/index.js.map +0 -1
  714. package/esm5/lib/interaction/interaction-context.js +0 -1
  715. package/esm5/lib/interaction/interaction-context.js.map +0 -1
  716. package/esm5/lib/interaction/interaction.module.js +0 -88
  717. package/esm5/lib/interaction/interaction.module.js.map +0 -1
  718. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +0 -1
  719. package/esm5/lib/interaction/result.js +0 -3
  720. package/esm5/lib/interaction/result.js.map +0 -1
  721. package/esm5/lib/interaction/route-synchronisation-adapter.js +0 -1
  722. package/esm5/lib/interaction/route-synchronisation-adapter.js.map +0 -1
  723. package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +0 -31
  724. package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +0 -1
  725. package/esm5/lib/interaction/services/interaction.service.js +0 -157
  726. package/esm5/lib/interaction/services/interaction.service.js.map +0 -1
  727. package/esm5/lib/interaction/services/interaction.service.ngfactory.js.map +0 -1
  728. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +0 -44
  729. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +0 -1
  730. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.ngfactory.js.map +0 -1
  731. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +0 -64
  732. package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +0 -1
  733. package/esm5/lib/interaction/services/modal-interaction-context.factory.js +0 -7
  734. package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +0 -1
  735. package/esm5/lib/place/components/abstract-place-navigation.component.js +0 -78
  736. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +0 -1
  737. package/esm5/lib/place/components/abstract-place-navigation.component.ngfactory.js.map +0 -1
  738. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +0 -28
  739. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js.map +0 -1
  740. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.ngfactory.js.map +0 -1
  741. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.scss.shim.ngstyle.js.map +0 -1
  742. package/esm5/lib/place/components/empty-state/empty-state.component.js +0 -19
  743. package/esm5/lib/place/components/empty-state/empty-state.component.js.map +0 -1
  744. package/esm5/lib/place/components/empty-state/empty-state.component.ngfactory.js.map +0 -1
  745. package/esm5/lib/place/components/empty-state/empty-state.component.scss.shim.ngstyle.js.map +0 -1
  746. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +0 -24
  747. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +0 -1
  748. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.ngfactory.js.map +0 -1
  749. package/esm5/lib/place/components/list-place-nav/list-place-nav.component.scss.shim.ngstyle.js.map +0 -1
  750. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +0 -246
  751. package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +0 -1
  752. package/esm5/lib/place/components/place-outlet/place-outlet.component.ngfactory.js.map +0 -1
  753. package/esm5/lib/place/components/place-outlet/place-outlet.component.scss.shim.ngstyle.js.map +0 -1
  754. package/esm5/lib/place/components/place-outlet/route-animations.js +0 -45
  755. package/esm5/lib/place/components/place-outlet/route-animations.js.map +0 -1
  756. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +0 -88
  757. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +0 -1
  758. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.ngfactory.js.map +0 -1
  759. package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.scss.shim.ngstyle.js.map +0 -1
  760. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +0 -24
  761. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +0 -1
  762. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.ngfactory.js.map +0 -1
  763. package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.scss.shim.ngstyle.js.map +0 -1
  764. package/esm5/lib/place/guards/consolidated-param-map.js +0 -61
  765. package/esm5/lib/place/guards/consolidated-param-map.js.map +0 -1
  766. package/esm5/lib/place/guards/noop-auth-guard.service.js +0 -24
  767. package/esm5/lib/place/guards/noop-auth-guard.service.js.map +0 -1
  768. package/esm5/lib/place/guards/noop-auth-guard.service.ngfactory.js.map +0 -1
  769. package/esm5/lib/place/guards/place.guard.js +0 -157
  770. package/esm5/lib/place/guards/place.guard.js.map +0 -1
  771. package/esm5/lib/place/index.js +0 -43
  772. package/esm5/lib/place/index.js.map +0 -1
  773. package/esm5/lib/place/nav-item.js +0 -1
  774. package/esm5/lib/place/nav-item.js.map +0 -1
  775. package/esm5/lib/place/navigation/place-component-deactivation-handler.js +0 -98
  776. package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +0 -1
  777. package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +0 -19
  778. package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +0 -1
  779. package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +0 -15
  780. package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +0 -1
  781. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +0 -52
  782. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +0 -1
  783. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +0 -86
  784. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +0 -1
  785. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +0 -71
  786. package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +0 -1
  787. package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +0 -43
  788. package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +0 -1
  789. package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +0 -34
  790. package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +0 -1
  791. package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +0 -58
  792. package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +0 -1
  793. package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +0 -92
  794. package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +0 -1
  795. package/esm5/lib/place/navigation/session/navigating.js +0 -28
  796. package/esm5/lib/place/navigation/session/navigating.js.map +0 -1
  797. package/esm5/lib/place/navigation/session/navigation-context.js +0 -15
  798. package/esm5/lib/place/navigation/session/navigation-context.js.map +0 -1
  799. package/esm5/lib/place/navigation/session/navigation-session.js +0 -183
  800. package/esm5/lib/place/navigation/session/navigation-session.js.map +0 -1
  801. package/esm5/lib/place/navigation/session/pop-state-navigation.js +0 -22
  802. package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +0 -1
  803. package/esm5/lib/place/place-component.js +0 -125
  804. package/esm5/lib/place/place-component.js.map +0 -1
  805. package/esm5/lib/place/place-config.js +0 -3
  806. package/esm5/lib/place/place-config.js.map +0 -1
  807. package/esm5/lib/place/place-definition.js +0 -148
  808. package/esm5/lib/place/place-definition.js.map +0 -1
  809. package/esm5/lib/place/place-history.js +0 -145
  810. package/esm5/lib/place/place-history.js.map +0 -1
  811. package/esm5/lib/place/place-history.ngfactory.js.map +0 -1
  812. package/esm5/lib/place/place-router.js +0 -330
  813. package/esm5/lib/place/place-router.js.map +0 -1
  814. package/esm5/lib/place/place-router.ngfactory.js.map +0 -1
  815. package/esm5/lib/place/place.decorator.js +0 -15
  816. package/esm5/lib/place/place.decorator.js.map +0 -1
  817. package/esm5/lib/place/place.module.js +0 -66
  818. package/esm5/lib/place/place.module.js.map +0 -1
  819. package/esm5/lib/place/place.module.ngfactory.js.map +0 -1
  820. package/esm5/lib/place/route/formatter.js +0 -42
  821. package/esm5/lib/place/route/formatter.js.map +0 -1
  822. package/esm5/lib/place/route/json-types.js +0 -1
  823. package/esm5/lib/place/route/json-types.js.map +0 -1
  824. package/esm5/lib/place/route/parameter-decorators.js +0 -64
  825. package/esm5/lib/place/route/parameter-decorators.js.map +0 -1
  826. package/esm5/lib/place/route/parameter-definition.class.js +0 -109
  827. package/esm5/lib/place/route/parameter-definition.class.js.map +0 -1
  828. package/esm5/lib/place/route/parameter-sanitiser.js +0 -1
  829. package/esm5/lib/place/route/parameter-sanitiser.js.map +0 -1
  830. package/esm5/lib/place/route/parameter-snapshot.js +0 -1
  831. package/esm5/lib/place/route/parameter-snapshot.js.map +0 -1
  832. package/esm5/lib/place/route/visit-sanitiser.js +0 -62
  833. package/esm5/lib/place/route/visit-sanitiser.js.map +0 -1
  834. package/esm5/lib/place/url-service.js +0 -77
  835. package/esm5/lib/place/url-service.js.map +0 -1
  836. package/esm5/lib/place/url-service.ngfactory.js.map +0 -1
  837. package/esm5/lib/place/url-snapshot.js +0 -98
  838. package/esm5/lib/place/url-snapshot.js.map +0 -1
  839. package/esm5/lib/place/visit.js +0 -72
  840. package/esm5/lib/place/visit.js.map +0 -1
  841. package/esm5/public_api.js +0 -7
  842. package/esm5/public_api.js.map +0 -1
  843. package/fesm5/coolon-angular-ui-powerups.js +0 -8132
  844. package/fesm5/coolon-angular-ui-powerups.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"consolidated-param-map.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/guards/consolidated-param-map.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAE3E;;;;GAIG;AACH,MAAM,OAAO,wBAAwB;IAInC,YAAY,QAAkB,EAAE,WAAyB;QACvD,IAAI,CAAC,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAChC,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAChE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,4CAA4C;IAClE,CAAC;IAED,GAAG,CAAC,IAAY;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACvD,OAAO,QAAQ,CAAC,GAAG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AClC,CAAC;CAEF","sourcesContent":["import { ParamMap, UrlSegment } from '@angular/router';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\n\n/**\n * This a work around for the fact that an activated route with multiple segments doesn't\n * include the segment params in the paramMap as well as each segment returns an empty\n * param map even when `parameter`s has content.\n */\nexport class ConsolidatedParameterMap implements ParamMap {\n\n private paramMaps: ParamMap[];\n\n constructor(paramMap: ParamMap, urlSegments: UrlSegment[]) {\n this.paramMaps = [paramMap].concat(\n (urlSegments || []).map(s => new ParamMapAdapter(s.parameters))\n ).filter(m => !!m); // the activated route param map can be null\n }\n\n get(name: string): string | null {\n const paramMap = this.paramMaps.find(m => m.has(name));\n return paramMap.get(name);\n }\n\n getAll(name: string): string[] {\n const paramMap = this.paramMaps.find(m => m.has(name));\n return paramMap.getAll(name);\n }\n\n has(name: string): boolean {\n return !!this.paramMaps.find(m => m.has(name));\n }\n\n @Memoize()\n get keys(): string[] {\n return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);\n }\n}\n\nclass ParamMapAdapter implements ParamMap {\n constructor(private readonly params: { [p: string]: string }) {\n }\n\n get(name: string): string | null {\n return this.params[name];\n }\n\n getAll(name: string): string[] {\n const value = this.get(name);\n return Array.isArray(value) ? value : [value];\n }\n\n has(name: string): boolean {\n return this.keys.includes(name);\n }\n\n get keys(): string[] {\n return Object.keys(this.params);\n }\n\n}\n"]}
1
+ {"version":3,"file":"consolidated-param-map.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/guards/consolidated-param-map.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAE3E;;;;GAIG;AACH,MAAM,OAAO,wBAAwB;IAInC,YAAY,QAAkB,EAAE,WAAyB;QACvD,IAAI,CAAC,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAChC,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE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AC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC7B,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,GAAG,CAAC,IAAY;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;CAEF","sourcesContent":["import { ParamMap, UrlSegment } from '@angular/router';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\n\n/**\n * This a work around for the fact that an activated route with multiple segments doesn't\n * include the segment params in the paramMap as well as each segment returns an empty\n * param map even when `parameter`s has content.\n */\nexport class ConsolidatedParameterMap implements ParamMap {\n\n private paramMaps: ParamMap[];\n\n constructor(paramMap: ParamMap, urlSegments: UrlSegment[]) {\n this.paramMaps = [paramMap].concat(\n (urlSegments || []).map(s => new ParamMapAdapter(s.parameters))\n ).filter(m => !!m); // the activated route param map can be null\n }\n\n get(name: string): string | null {\n const paramMap = this.paramMaps.find(m => m.has(name));\n return paramMap.get(name);\n }\n\n getAll(name: string): string[] {\n const paramMap = this.paramMaps.find(m => m.has(name));\n return paramMap.getAll(name);\n }\n\n has(name: string): boolean {\n return !!this.paramMaps.find(m => m.has(name));\n }\n\n @Memoize()\n get keys(): string[] {\n return this.paramMaps.reduce((result, params) => result.concat(params.keys), []);\n }\n}\n\nclass ParamMapAdapter implements ParamMap {\n constructor(private readonly params: { [p: string]: string }) {\n }\n\n get(name: string): string | null {\n return this.params[name];\n }\n\n getAll(name: string): string[] {\n const value = this.get(name);\n return Array.isArray(value) ? value : [value];\n }\n\n has(name: string): boolean {\n return this.keys.includes(name);\n }\n\n get keys(): string[] {\n return Object.keys(this.params);\n }\n\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { __awaiter, __decorate, __metadata } from "tslib";
1
+ import { __awaiter } from "tslib";
2
2
  import { Injectable } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- let NoopAuthGuard = class NoopAuthGuard {
4
+ export class NoopAuthGuard {
5
5
  constructor() {
6
6
  }
7
7
  canActivate(activatedRoute, state) {
@@ -9,13 +9,12 @@ let NoopAuthGuard = class NoopAuthGuard {
9
9
  return true;
10
10
  });
11
11
  }
12
- };
12
+ }
13
13
  NoopAuthGuard.ɵprov = i0.ɵɵdefineInjectable({ factory: function NoopAuthGuard_Factory() { return new NoopAuthGuard(); }, token: NoopAuthGuard, providedIn: "root" });
14
- NoopAuthGuard = __decorate([
15
- Injectable({
16
- providedIn: 'root'
17
- }),
18
- __metadata("design:paramtypes", [])
19
- ], NoopAuthGuard);
20
- export { NoopAuthGuard };
14
+ NoopAuthGuard.decorators = [
15
+ { type: Injectable, args: [{
16
+ providedIn: 'root'
17
+ },] }
18
+ ];
19
+ NoopAuthGuard.ctorParameters = () => [];
21
20
  //# sourceMappingURL=noop-auth-guard.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"noop-auth-guard.service.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/guards/noop-auth-guard.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAM3C,IAAa,aAAa,GAA1B,MAAa,aAAa;IAExB;IACA,CAAC;IAEK,WAAW,CAAC,cAAsC,EAAE,KAA0B;;YAClF,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;CACF,CAAA;;AARY,aAAa;IAHzB,UAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;;GACW,aAAa,CAQzB;SARY,aAAa","sourcesContent":["import { Injectable } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NoopAuthGuard implements CanActivate {\n\n constructor() {\n }\n\n async canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree> {\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"noop-auth-guard.service.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/guards/noop-auth-guard.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAM3C,MAAM,OAAO,aAAa;IAExB;IACA,CAAC;IAEK,WAAW,CAAC,cAAsC,EAAE,KAA0B;;YAClF,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;;;;YAVF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NoopAuthGuard implements CanActivate {\n\n constructor() {\n }\n\n async canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree> {\n return true;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"noop-auth-guard.service.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/guards/noop-auth-guard.service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
1
+ {"version":3,"file":"noop-auth-guard.service.ngfactory.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/guards/noop-auth-guard.service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"place.guard.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/guards/place.guard.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,IAAI,EAAS,MAAM,gBAAgB,CAAC;AAC7C,OAAO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G,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChD,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE;gBAChE,iGAAiG;gBACjG,mDAAmD;gBACnD,OAAO,GAAG,CAAC,oBAAoB,EAAE,CAAC;aACnC;iBAAM;gBACL,OAAO,IAAI,EAAE,CAAC;aACf;QACH,CAAC;KAAA;CAEF","sourcesContent":["import { Injector } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n CanActivate,\n CanDeactivate,\n Router,\n RouterStateSnapshot,\n UrlSerializer,\n UrlTree\n} from '@angular/router';\nimport { lang, Trace } from '@coolon/pectin';\nimport { Observable } from 'rxjs';\nimport { InteractionService } from '../../interaction/services/interaction.service';\nimport { PlaceComponent } from '../place-component';\nimport { PlaceDefinition } from '../place-definition';\nimport { PlaceHistory } from '../place-history';\nimport { PlaceRouter } from '../place-router';\nimport { VisitSanitiser } from '../route/visit-sanitiser';\nimport { UrlService } from '../url-service';\nimport { UrlSnapshot } from '../url-snapshot';\nimport { Visit } from '../visit';\nimport { ConsolidatedParameterMap } from './consolidated-param-map';\n\n\nexport abstract class PlaceGuard implements CanActivate, CanDeactivate<PlaceComponent> {\n\n\n constructor(private readonly router: Router,\n private urlService: UrlService,\n private readonly placeRouter: PlaceRouter,\n private readonly placeHistory: PlaceHistory,\n private readonly interactionService: InteractionService,\n private readonly injector: Injector) {\n }\n\n // @Trace()\n async canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree> {\n\n // TODO: this is ugly now that I'm return UrlSnapshots and not UrlTrees. It'd be better if the functions\n // weren't nested or if I implemented a handler chain.\n return this.authorisePlaceThen(activatedRoute, state, async (placeDefinition) => {\n\n const result = await this.cleanInteractionState(activatedRoute, state, async () => {\n // Parse our route params.\n const params = new ConsolidatedParameterMap(activatedRoute.paramMap, activatedRoute.url);\n const parsedParams = placeDefinition.parseRouteParams(params);\n\n const navigationSession = this.placeRouter.navigationSession;\n const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);\n const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);\n const sanitisedVisit = await sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));\n\n // Save the visit with any updated parameters. We need to save it so we remember any non route parameters\n navigationSession.storeVisit(sanitisedVisit);\n if (initialVisit.hasRoutingChangedFrom(sanitisedVisit)) {\n // Regenerate the url\n const urlSnapshot = this.urlService.parseUrl(state.url).updateVisitSegments(sanitisedVisit);\n // console.log('##### Place Guard Redirect', urlSnapshot);\n return urlSnapshot;\n } else {\n return true;\n }\n });\n return this.handleGuardResult(result);\n\n });\n }\n\n // @Trace()\n async canDeactivate(component: PlaceComponent, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Promise<boolean | UrlTree> {\n const currentUrl = this.urlService.parseUrl(currentState.url);\n const nextUrl = this.urlService.parseUrl(nextState.url);\n const result = await this.placeRouter.navigationSession.canDeactivatePlace(component, currentUrl, nextUrl);\n return this.handleGuardResult(result);\n }\n\n // @Trace()\n private handleGuardResult(result) {\n if (result instanceof UrlSnapshot) {\n return result.urlTree;\n } else {\n return result;\n }\n }\n\n // @Trace()\n protected async authorisePlaceThen(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot, runPlaceGuards: (placeDefinition: PlaceDefinition) => Promise<boolean | UrlTree>) {\n if (PlaceComponent.isPlaceComponentConstructor(activatedRoute.component)) {\n const placeDefinition = PlaceComponent.getDefinition(activatedRoute.component);\n const authoriseResult = placeDefinition.authenticate ? await this.isAuthorised(activatedRoute, state) : true;\n if (authoriseResult === true) {\n // we're authorised, now run the place guards.\n return runPlaceGuards(placeDefinition);\n } else {\n console.log('not authorised result', authoriseResult);\n return authoriseResult;\n }\n } else {\n return lang.illegalState(`expected component to be an instance of PlaceComponent, got ${activatedRoute.component}`);\n }\n }\n\n // @Trace()\n async isAuthorised(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree> {\n const authorised = this.getAuthGuard(this.injector).canActivate(activatedRoute, state);\n return (authorised instanceof Observable) ? authorised.toPromise() : authorised;\n }\n\n abstract getAuthGuard(injector: Injector): CanActivate;\n\n // @Trace()\n async cleanInteractionState(route: ActivatedRouteSnapshot, state: RouterStateSnapshot, then: () => Promise<boolean | UrlSnapshot>): Promise<boolean | UrlSnapshot> {\n const url = this.urlService.parseUrl(state.url);\n if (!this.interactionService.isActive() && url.hasInteractions()) {\n // This happens if we reload the page or the url was pasted as the route should only be activated\n // after the interaction context has become active.\n return url.removeInteractionIds();\n } else {\n return then();\n }\n }\n\n}\n"]}
1
+ {"version":3,"file":"place.guard.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/guards/place.guard.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,IAAI,EAAS,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAGpE,MAAM,OAAgB,UAAU;IAG9B,YAA6B,MAAc,EACvB,UAAsB,EACb,WAAwB,EACxB,YAA0B,EAC1B,kBAAsC,EACtC,QAAkB;QALlB,WAAM,GAAN,MAAM,CAAQ;QACvB,eAAU,GAAV,UAAU,CAAY;QACb,gBAAW,GAAX,WAAW,CAAa;QACxB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,uBAAkB,GAAlB,kBAAkB,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8CAA8C;oBAC9C,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;iBACxC;qBAAM;oBACL,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,eAAe,CAAC,CAAC;oBACtD,OAAO,eAAe,CAAC;iBACxB;aACF;iBAAM;gBACL,OAAO,IAAI,CAAC,YAAY,CAAC,+DAA+D,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC;aACrH;QACH,CAAC;KAAA;IAED,WAAW;IACL,YAAY,CAAC,cAAsC,EAAE,KAA0B;;YACnF,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;YACvF,OAAO,CAAC,UAAU,YAAY,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;QAClF,CAAC;KAAA;IAID,WAAW;IACL,qBAAqB,CAAC,KAA6B,EAAE,KAA0B,EAAE,IAA0C;;YAC/H,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChD,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,IAAI,GAAG,CAAC,eAAe,EAAE,EAAE;gBAChE,iGAAiG;gBACjG,mDAAmD;gBACnD,OAAO,GAAG,CAAC,oBAAoB,EAAE,CAAC;aACnC;iBAAM;gBACL,OAAO,IAAI,EAAE,CAAC;aACf;QACH,CAAC;KAAA;CAEF","sourcesContent":["import { Injector } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n CanActivate,\n CanDeactivate,\n Router,\n RouterStateSnapshot,\n UrlSerializer,\n UrlTree\n} from '@angular/router';\nimport { lang, Trace } from '@coolon/pectin';\nimport { Observable } from 'rxjs';\nimport { InteractionService } from '../../interaction/services/interaction.service';\nimport { PlaceComponent } from '../place-component';\nimport { PlaceDefinition } from '../place-definition';\nimport { PlaceHistory } from '../place-history';\nimport { PlaceRouter } from '../place-router';\nimport { VisitSanitiser } from '../route/visit-sanitiser';\nimport { UrlService } from '../url-service';\nimport { UrlSnapshot } from '../url-snapshot';\nimport { Visit } from '../visit';\nimport { ConsolidatedParameterMap } from './consolidated-param-map';\n\n\nexport abstract class PlaceGuard implements CanActivate, CanDeactivate<PlaceComponent> {\n\n\n constructor(private readonly router: Router,\n private urlService: UrlService,\n private readonly placeRouter: PlaceRouter,\n private readonly placeHistory: PlaceHistory,\n private readonly interactionService: InteractionService,\n private readonly injector: Injector) {\n }\n\n // @Trace()\n async canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree> {\n\n // TODO: this is ugly now that I'm return UrlSnapshots and not UrlTrees. It'd be better if the functions\n // weren't nested or if I implemented a handler chain.\n return this.authorisePlaceThen(activatedRoute, state, async (placeDefinition) => {\n\n const result = await this.cleanInteractionState(activatedRoute, state, async () => {\n // Parse our route params.\n const params = new ConsolidatedParameterMap(activatedRoute.paramMap, activatedRoute.url);\n const parsedParams = placeDefinition.parseRouteParams(params);\n\n const navigationSession = this.placeRouter.navigationSession;\n const initialVisit = navigationSession.getVisitFor(placeDefinition) || new Visit(placeDefinition, parsedParams);\n const sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);\n const sanitisedVisit = await sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams));\n\n // Save the visit with any updated parameters. We need to save it so we remember any non route parameters\n navigationSession.storeVisit(sanitisedVisit);\n if (initialVisit.hasRoutingChangedFrom(sanitisedVisit)) {\n // Regenerate the url\n const urlSnapshot = this.urlService.parseUrl(state.url).updateVisitSegments(sanitisedVisit);\n // console.log('##### Place Guard Redirect', urlSnapshot);\n return urlSnapshot;\n } else {\n return true;\n }\n });\n return this.handleGuardResult(result);\n\n });\n }\n\n // @Trace()\n async canDeactivate(component: PlaceComponent, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Promise<boolean | UrlTree> {\n const currentUrl = this.urlService.parseUrl(currentState.url);\n const nextUrl = this.urlService.parseUrl(nextState.url);\n const result = await this.placeRouter.navigationSession.canDeactivatePlace(component, currentUrl, nextUrl);\n return this.handleGuardResult(result);\n }\n\n // @Trace()\n private handleGuardResult(result) {\n if (result instanceof UrlSnapshot) {\n return result.urlTree;\n } else {\n return result;\n }\n }\n\n // @Trace()\n protected async authorisePlaceThen(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot, runPlaceGuards: (placeDefinition: PlaceDefinition) => Promise<boolean | UrlTree>) {\n if (PlaceComponent.isPlaceComponentConstructor(activatedRoute.component)) {\n const placeDefinition = PlaceComponent.getDefinition(activatedRoute.component);\n const authoriseResult = placeDefinition.authenticate ? await this.isAuthorised(activatedRoute, state) : true;\n if (authoriseResult === true) {\n // we're authorised, now run the place guards.\n return runPlaceGuards(placeDefinition);\n } else {\n console.log('not authorised result', authoriseResult);\n return authoriseResult;\n }\n } else {\n return lang.illegalState(`expected component to be an instance of PlaceComponent, got ${activatedRoute.component}`);\n }\n }\n\n // @Trace()\n async isAuthorised(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree> {\n const authorised = this.getAuthGuard(this.injector).canActivate(activatedRoute, state);\n return (authorised instanceof Observable) ? authorised.toPromise() : authorised;\n }\n\n abstract getAuthGuard(injector: Injector): CanActivate;\n\n // @Trace()\n async cleanInteractionState(route: ActivatedRouteSnapshot, state: RouterStateSnapshot, then: () => Promise<boolean | UrlSnapshot>): Promise<boolean | UrlSnapshot> {\n const url = this.urlService.parseUrl(state.url);\n if (!this.interactionService.isActive() && url.hasInteractions()) {\n // This happens if we reload the page or the url was pasted as the route should only be activated\n // after the interaction context has become active.\n return url.removeInteractionIds();\n } else {\n return then();\n }\n }\n\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @file Automatically generated by barrelsby.
3
3
  */
4
+ export * from "./nav-item";
4
5
  export * from "./place-component";
5
6
  export * from "./place-config";
6
7
  export * from "./place-definition";
@@ -30,14 +31,17 @@ export * from "./navigation/session/navigation-session";
30
31
  export * from "./navigation/session/pop-state-navigation";
31
32
  export * from "./navigation/session/event-cleanup/event-clean-up-session";
32
33
  export * from "./navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled";
33
- export * from "./navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes";
34
+ export * from "./navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined";
34
35
  export * from "./navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes";
35
36
  export * from "./navigation/session/interactions/navigating-during-interaction";
36
37
  export * from "./navigation/session/interactions/pop-state-during-interaction-navigation";
37
38
  export * from "./navigation/session/interactions/remove-last-interaction-from-url-navigation-session";
38
39
  export * from "./navigation/session/interactions/synchronise-interaction-context-ids-with-route";
39
40
  export * from "./route/formatter";
41
+ export * from "./route/json-types";
40
42
  export * from "./route/parameter-decorators";
41
43
  export * from "./route/parameter-definition.class";
44
+ export * from "./route/parameter-sanitiser";
45
+ export * from "./route/parameter-snapshot";
42
46
  export * from "./route/visit-sanitiser";
43
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oEAAoE,CAAC;AACnF,cAAc,wEAAwE,CAAC;AACvF,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wFAAwF,CAAC;AACvG,cAAc,+FAA+F,CAAC;AAC9G,cAAc,kGAAkG,CAAC;AACjH,cAAc,iEAAiE,CAAC;AAChF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,uFAAuF,CAAC;AACtG,cAAc,kFAAkF,CAAC;AACjG,cAAc,mBAAmB,CAAC;AAElC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AAGnD,cAAc,yBAAyB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./nav-item\";\nexport * from \"./place-component\";\nexport * from \"./place-config\";\nexport * from \"./place-definition\";\nexport * from \"./place-history\";\nexport * from \"./place-router\";\nexport * from \"./place.decorator\";\nexport * from \"./place.module\";\nexport * from \"./url-service\";\nexport * from \"./url-snapshot\";\nexport * from \"./visit\";\nexport * from \"./components/abstract-place-navigation.component\";\nexport * from \"./components/busy-overlay/busy-overlay.component\";\nexport * from \"./components/empty-state/empty-state.component\";\nexport * from \"./components/list-place-nav/list-place-nav.component\";\nexport * from \"./components/place-outlet/place-outlet.component\";\nexport * from \"./components/place-outlet/route-animations\";\nexport * from \"./components/side-place-navigation/side-place-navigation.component\";\nexport * from \"./components/tabbed-place-navigation/tabbed-place-navigation.component\";\nexport * from \"./guards/consolidated-param-map\";\nexport * from \"./guards/noop-auth-guard.service\";\nexport * from \"./guards/place.guard\";\nexport * from \"./navigation/place-component-deactivation-handler\";\nexport * from \"./navigation/session/abstract-pop-state-navigation\";\nexport * from \"./navigation/session/navigating\";\nexport * from \"./navigation/session/navigation-context\";\nexport * from \"./navigation/session/navigation-session\";\nexport * from \"./navigation/session/pop-state-navigation\";\nexport * from \"./navigation/session/event-cleanup/event-clean-up-session\";\nexport * from \"./navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled\";\nexport * from \"./navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes\";\nexport * from \"./navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes\";\nexport * from \"./navigation/session/interactions/navigating-during-interaction\";\nexport * from \"./navigation/session/interactions/pop-state-during-interaction-navigation\";\nexport * from \"./navigation/session/interactions/remove-last-interaction-from-url-navigation-session\";\nexport * from \"./navigation/session/interactions/synchronise-interaction-context-ids-with-route\";\nexport * from \"./route/formatter\";\nexport * from \"./route/json-types\";\nexport * from \"./route/parameter-decorators\";\nexport * from \"./route/parameter-definition.class\";\nexport * from \"./route/parameter-sanitiser\";\nexport * from \"./route/parameter-snapshot\";\nexport * from \"./route/visit-sanitiser\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oEAAoE,CAAC;AACnF,cAAc,wEAAwE,CAAC;AACvF,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wFAAwF,CAAC;AACvG,cAAc,iHAAiH,CAAC;AAChI,cAAc,kGAAkG,CAAC;AACjH,cAAc,iEAAiE,CAAC;AAChF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,uFAAuF,CAAC;AACtG,cAAc,kFAAkF,CAAC;AACjG,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./nav-item\";\nexport * from \"./place-component\";\nexport * from \"./place-config\";\nexport * from \"./place-definition\";\nexport * from \"./place-history\";\nexport * from \"./place-router\";\nexport * from \"./place.decorator\";\nexport * from \"./place.module\";\nexport * from \"./url-service\";\nexport * from \"./url-snapshot\";\nexport * from \"./visit\";\nexport * from \"./components/abstract-place-navigation.component\";\nexport * from \"./components/busy-overlay/busy-overlay.component\";\nexport * from \"./components/empty-state/empty-state.component\";\nexport * from \"./components/list-place-nav/list-place-nav.component\";\nexport * from \"./components/place-outlet/place-outlet.component\";\nexport * from \"./components/place-outlet/route-animations\";\nexport * from \"./components/side-place-navigation/side-place-navigation.component\";\nexport * from \"./components/tabbed-place-navigation/tabbed-place-navigation.component\";\nexport * from \"./guards/consolidated-param-map\";\nexport * from \"./guards/noop-auth-guard.service\";\nexport * from \"./guards/place.guard\";\nexport * from \"./navigation/place-component-deactivation-handler\";\nexport * from \"./navigation/session/abstract-pop-state-navigation\";\nexport * from \"./navigation/session/navigating\";\nexport * from \"./navigation/session/navigation-context\";\nexport * from \"./navigation/session/navigation-session\";\nexport * from \"./navigation/session/pop-state-navigation\";\nexport * from \"./navigation/session/event-cleanup/event-clean-up-session\";\nexport * from \"./navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled\";\nexport * from \"./navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined\";\nexport * from \"./navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes\";\nexport * from \"./navigation/session/interactions/navigating-during-interaction\";\nexport * from \"./navigation/session/interactions/pop-state-during-interaction-navigation\";\nexport * from \"./navigation/session/interactions/remove-last-interaction-from-url-navigation-session\";\nexport * from \"./navigation/session/interactions/synchronise-interaction-context-ids-with-route\";\nexport * from \"./route/formatter\";\nexport * from \"./route/json-types\";\nexport * from \"./route/parameter-decorators\";\nexport * from \"./route/parameter-definition.class\";\nexport * from \"./route/parameter-sanitiser\";\nexport * from \"./route/parameter-snapshot\";\nexport * from \"./route/visit-sanitiser\";\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./nav-item"},{"from":"./place-component"},{"from":"./place-config"},{"from":"./place-definition"},{"from":"./place-history"},{"from":"./place-router"},{"from":"./place.decorator"},{"from":"./place.module"},{"from":"./url-service"},{"from":"./url-snapshot"},{"from":"./visit"},{"from":"./components/abstract-place-navigation.component"},{"from":"./components/busy-overlay/busy-overlay.component"},{"from":"./components/empty-state/empty-state.component"},{"from":"./components/list-place-nav/list-place-nav.component"},{"from":"./components/place-outlet/place-outlet.component"},{"from":"./components/place-outlet/route-animations"},{"from":"./components/side-place-navigation/side-place-navigation.component"},{"from":"./components/tabbed-place-navigation/tabbed-place-navigation.component"},{"from":"./guards/consolidated-param-map"},{"from":"./guards/noop-auth-guard.service"},{"from":"./guards/place.guard"},{"from":"./navigation/place-component-deactivation-handler"},{"from":"./navigation/session/abstract-pop-state-navigation"},{"from":"./navigation/session/navigating"},{"from":"./navigation/session/navigation-context"},{"from":"./navigation/session/navigation-session"},{"from":"./navigation/session/pop-state-navigation"},{"from":"./navigation/session/event-cleanup/event-clean-up-session"},{"from":"./navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled"},{"from":"./navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes"},{"from":"./navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes"},{"from":"./navigation/session/interactions/navigating-during-interaction"},{"from":"./navigation/session/interactions/pop-state-during-interaction-navigation"},{"from":"./navigation/session/interactions/remove-last-interaction-from-url-navigation-session"},{"from":"./navigation/session/interactions/synchronise-interaction-context-ids-with-route"},{"from":"./route/formatter"},{"from":"./route/json-types"},{"from":"./route/parameter-decorators"},{"from":"./route/parameter-definition.class"},{"from":"./route/parameter-sanitiser"},{"from":"./route/parameter-snapshot"},{"from":"./route/visit-sanitiser"}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./nav-item"},{"from":"./place-component"},{"from":"./place-config"},{"from":"./place-definition"},{"from":"./place-history"},{"from":"./place-router"},{"from":"./place.decorator"},{"from":"./place.module"},{"from":"./url-service"},{"from":"./url-snapshot"},{"from":"./visit"},{"from":"./components/abstract-place-navigation.component"},{"from":"./components/busy-overlay/busy-overlay.component"},{"from":"./components/empty-state/empty-state.component"},{"from":"./components/list-place-nav/list-place-nav.component"},{"from":"./components/place-outlet/place-outlet.component"},{"from":"./components/place-outlet/route-animations"},{"from":"./components/side-place-navigation/side-place-navigation.component"},{"from":"./components/tabbed-place-navigation/tabbed-place-navigation.component"},{"from":"./guards/consolidated-param-map"},{"from":"./guards/noop-auth-guard.service"},{"from":"./guards/place.guard"},{"from":"./navigation/place-component-deactivation-handler"},{"from":"./navigation/session/abstract-pop-state-navigation"},{"from":"./navigation/session/navigating"},{"from":"./navigation/session/navigation-context"},{"from":"./navigation/session/navigation-session"},{"from":"./navigation/session/pop-state-navigation"},{"from":"./navigation/session/event-cleanup/event-clean-up-session"},{"from":"./navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled"},{"from":"./navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined"},{"from":"./navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes"},{"from":"./navigation/session/interactions/navigating-during-interaction"},{"from":"./navigation/session/interactions/pop-state-during-interaction-navigation"},{"from":"./navigation/session/interactions/remove-last-interaction-from-url-navigation-session"},{"from":"./navigation/session/interactions/synchronise-interaction-context-ids-with-route"},{"from":"./route/formatter"},{"from":"./route/json-types"},{"from":"./route/parameter-decorators"},{"from":"./route/parameter-definition.class"},{"from":"./route/parameter-sanitiser"},{"from":"./route/parameter-snapshot"},{"from":"./route/visit-sanitiser"}]}]
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=nav-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nav-item.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/nav-item.ts"],"names":[],"mappings":"","sourcesContent":["export interface NavItem {\n title(): string;\n\n icon?(): string;\n\n tooltip?(): string;\n}\n"]}
1
+ {"version":3,"file":"nav-item.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/nav-item.ts"],"names":[],"mappings":"","sourcesContent":["export interface NavItem {\n title(): string;\n\n icon?(): string;\n\n tooltip?(): string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"place-component-deactivation-handler.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/place-component-deactivation-handler.ts"],"names":[],"mappings":";AACA,OAAO,KAAK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AA6B,EAAE,CAAC;wBACpE,OAAO,KAAK,CAAC;qBACd;iBACF;qBAAM;oBACL,qDAAqD;oBACrD,IAAI,IAAI,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;wBACxE,MAAM,IAAI,CAAC,wBAAwB,CAAC,0BAA0B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBAC/E,OAAO,KAAK,CAAC;qBACd;iBACF;aACF;YAGD,0EAA0E;YAC1E,IAAI,IAAI,CAAC,yBAAyB,CAAC,SAAS,CAAC,EAAE;gBAE7C,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE;oBAChC,qDAAqD;oBACrD,8HAA8H;oBAC9H,+GAA+G;oBAC/G,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,+BAA+B,CAAC,CAAC;iBAC7F;gBAED,qGAAqG;gBACrG,wDAAwD;gBACxD,IAAI,IAAI,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;oBACxE,OAAO,CAAC,IAAI,CAAC,6EAA6E,CAAC,CAAC;oBAC5F,OAAO,KAAK,CAAC;iBACd;aAEF;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAES,yBAAyB,CAAC,SAAsB;QACxD,qFAAqF;QACrF,gFAAgF;QAChF,0CAA0C;QAC1C,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["import { Trace } from '@coolon/pectin';\nimport * as _ from 'lodash';\nimport { PlaceComponent } from '../place-component';\nimport { UrlSnapshot } from '../url-snapshot';\nimport { NavigationSession } from './session/navigation-session';\n\n/**\n * This class handles the logic around canDeactivate for a given router state transition. It's core responsibilities are:\n * 1. Ensure we only ask the component to deactivate once on a given navigation cycle (since visit sanitisation can result in multiple round trips to through the router.)\n * 2. Ensure only the primary place component is asked when there are nested places. The primary component is the one at the top\n * of the routing change tree.\n * 3. Automatically handle standard interaction scenarios on the components behalf.\n */\nexport class PlaceComponentDeactivationHandler {\n\n private canDeactivatePromise: Promise<boolean | UrlSnapshot>;\n\n constructor(readonly component: PlaceComponent, readonly navigationSession: NavigationSession, readonly isPrimaryComponent: boolean) {\n }\n\n get routerInteractionAdapter() {\n return this.navigationSession.interactionServiceAdapter;\n }\n\n get urlService() {\n return this.navigationSession.urlService;\n }\n\n // @Trace()\n async canDeactivate(currentUrl: UrlSnapshot, nextState: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n // We'll get called multiple times if there's any parameter sanitisation so\n // we always return true if we accepted promise from a previous cycle of the current\n // navigation session.\n if (!this.canDeactivatePromise) {\n // console.log(`creating deactivate promise for -> ${this.component.constructor.name}`);\n this.canDeactivatePromise = this.canDeactivateComponent(currentUrl, nextState);\n }\n return this.canDeactivatePromise;\n }\n\n\n // @Trace()\n protected async canDeactivateComponent(currentUrl: UrlSnapshot, nextState: UrlSnapshot): Promise<UrlSnapshot | boolean> {\n // Automatically cancel any active activities if the navigation session was triggered by the back button.\n // If we handled more than just the pop state then it leads to the UI ignoring clicks and just cancelling things which is deeply disconcerting.\n if (this.navigationSession.isPopState) {\n\n if (this.isPrimaryComponent && this.routerInteractionAdapter.isModalActive()) {\n const routeIds = this.urlService.getActiveInteractionIdsFromUrl(nextState.url);\n const currentIds = this.routerInteractionAdapter.getActiveInteractionContextIds();\n if (!_.isEqual(currentIds, routeIds)) { // why am I checking this????\n await this.routerInteractionAdapter.cancelCurrentModalInteraction();\n return false;\n }\n } else {\n // check if the component has an in place interaction\n if (this.routerInteractionAdapter.isComponentInteracting(this.component)) {\n await this.routerInteractionAdapter.cancelComponentInteraction(this.component);\n return false;\n }\n }\n }\n\n\n // Ok, so now we're really leaving, so we ask the component if we should.;\n if (this.isNotJustAChangeInRouteId(nextState)) {\n\n if (this.component.canDeactivate) {\n // No interaction in progress, so ask the component .\n // This may start an interaction, hence checking the interaction context before now. I.e. if the place pops up the dialog, and\n // the user clicks back again, we'll re-enter here and go bang when the component tries to open another dialog.\n return this.component.canDeactivate(this.navigationSession.canDeactivateInteractionContext);\n }\n\n // The component has an active interaction but no deactivation hook. Rather than guessing what to do\n // we'll just cancel the navigation and print a warning.\n if (this.routerInteractionAdapter.isComponentInteracting(this.component)) {\n console.warn('Route changed while component has active interaction, cancelling navigation');\n return false;\n }\n\n }\n return true;\n }\n\n protected isNotJustAChangeInRouteId(nextState: UrlSnapshot) {\n // Because places with a route-id cover two route segments we get asked to deactivate\n // if the route id is added or removed. So if our path is still present the url\n // then we shouldn't deactivate the place.\n return !nextState.includesPathOf(this.component.placeDefinition);\n }\n}\n"]}
1
+ {"version":3,"file":"place-component-deactivation-handler.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/place-component-deactivation-handler.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAK5B;;;;;;GAMG;AACH,MAAM,OAAO,iCAAiC;IAI5C,YAAqB,SAAyB,EAAW,iBAAoC,EAAW,kBAA2B;QAA9G,cAAS,GAAT,SAAS,CAAgB;QAAW,sBAAiB,GAAjB,iBAAiB,CAAmB;QAAW,uBAAkB,GAAlB,kBAAkB,CAAS;IACnI,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,iBAAiB,CAAC,yBAAyB,CAAC;IAC1D,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC;IAC3C,CAAC;IAED,WAAW;IACL,aAAa,CAAC,UAAuB,EAAE,SAAsB;;YACjE,2EAA2E;YAC3E,oFAAoF;YACpF,sBAAsB;YACtB,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE;gBAC9B,wFAAwF;gBACxF,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,SAAS,C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B,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;oBACxE,OAAO,CAAC,IAAI,CAAC,6EAA6E,CAAC,CAAC;oBAC5F,OAAO,KAAK,CAAC;iBACd;aAEF;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAES,yBAAyB,CAAC,SAAsB;QACxD,qFAAqF;QACrF,gFAAgF;QAChF,0CAA0C;QAC1C,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["import { Trace } from '@coolon/pectin';\nimport * as _ from 'lodash';\nimport { PlaceComponent } from '../place-component';\nimport { UrlSnapshot } from '../url-snapshot';\nimport { NavigationSession } from './session/navigation-session';\n\n/**\n * This class handles the logic around canDeactivate for a given router state transition. It's core responsibilities are:\n * 1. Ensure we only ask the component to deactivate once on a given navigation cycle (since visit sanitisation can result in multiple round trips to through the router.)\n * 2. Ensure only the primary place component is asked when there are nested places. The primary component is the one at the top\n * of the routing change tree.\n * 3. Automatically handle standard interaction scenarios on the components behalf.\n */\nexport class PlaceComponentDeactivationHandler {\n\n private canDeactivatePromise: Promise<boolean | UrlSnapshot>;\n\n constructor(readonly component: PlaceComponent, readonly navigationSession: NavigationSession, readonly isPrimaryComponent: boolean) {\n }\n\n get routerInteractionAdapter() {\n return this.navigationSession.interactionServiceAdapter;\n }\n\n get urlService() {\n return this.navigationSession.urlService;\n }\n\n // @Trace()\n async canDeactivate(currentUrl: UrlSnapshot, nextState: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n // We'll get called multiple times if there's any parameter sanitisation so\n // we always return true if we accepted promise from a previous cycle of the current\n // navigation session.\n if (!this.canDeactivatePromise) {\n // console.log(`creating deactivate promise for -> ${this.component.constructor.name}`);\n this.canDeactivatePromise = this.canDeactivateComponent(currentUrl, nextState);\n }\n return this.canDeactivatePromise;\n }\n\n\n // @Trace()\n protected async canDeactivateComponent(currentUrl: UrlSnapshot, nextState: UrlSnapshot): Promise<UrlSnapshot | boolean> {\n // Automatically cancel any active activities if the navigation session was triggered by the back button.\n // If we handled more than just the pop state then it leads to the UI ignoring clicks and just cancelling things which is deeply disconcerting.\n if (this.navigationSession.isPopState) {\n\n if (this.isPrimaryComponent && this.routerInteractionAdapter.isModalActive()) {\n const routeIds = this.urlService.getActiveInteractionIdsFromUrl(nextState.url);\n const currentIds = this.routerInteractionAdapter.getActiveInteractionContextIds();\n if (!_.isEqual(currentIds, routeIds)) { // why am I checking this????\n await this.routerInteractionAdapter.cancelCurrentModalInteraction();\n return false;\n }\n } else {\n // check if the component has an in place interaction\n if (this.routerInteractionAdapter.isComponentInteracting(this.component)) {\n await this.routerInteractionAdapter.cancelComponentInteraction(this.component);\n return false;\n }\n }\n }\n\n\n // Ok, so now we're really leaving, so we ask the component if we should.;\n if (this.isNotJustAChangeInRouteId(nextState)) {\n\n if (this.component.canDeactivate) {\n // No interaction in progress, so ask the component .\n // This may start an interaction, hence checking the interaction context before now. I.e. if the place pops up the dialog, and\n // the user clicks back again, we'll re-enter here and go bang when the component tries to open another dialog.\n return this.component.canDeactivate(this.navigationSession.canDeactivateInteractionContext);\n }\n\n // The component has an active interaction but no deactivation hook. Rather than guessing what to do\n // we'll just cancel the navigation and print a warning.\n if (this.routerInteractionAdapter.isComponentInteracting(this.component)) {\n console.warn('Route changed while component has active interaction, cancelling navigation');\n return false;\n }\n\n }\n return true;\n }\n\n protected isNotJustAChangeInRouteId(nextState: UrlSnapshot) {\n // Because places with a route-id cover two route segments we get asked to deactivate\n // if the route id is added or removed. So if our path is still present the url\n // then we shouldn't deactivate the place.\n return !nextState.includesPathOf(this.component.placeDefinition);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-pop-state-navigation.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/abstract-pop-state-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,OAAgB,0BAA2B,SAAQ,iBAAiB;IAIxE,YAAY,OAA0B,EAAE,WAAmB,EAAW,gBAAwB;QAC5F,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QADwC,qBAAgB,GAAhB,gBAAgB,CAAQ;QAHrF,eAAU,GAAG,IAAI,CAAC;QAC3B,sBAAiB,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;IAIxD,CAAC;IAED,WAAW;IACX,gDAAgD;QAC9C,KAAK,CAAC,gDAAgD,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;IACjG,CAAC;CAEF","sourcesContent":["import { Logger, Trace } from '@coolon/pectin';\nimport { NavigationContext } from './navigation-context';\nimport { NavigationSession } from './navigation-session';\n\nexport abstract class AbstractPopStateNavigation extends NavigationSession {\n readonly isPopState = true;\n debugPropertyKeys = ['startingUrl', 'poppedHistoryUrl'];\n\n constructor(context: NavigationContext, startingUrl: string, readonly poppedHistoryUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n repairBrowserHistoryAndUrlAfterGuardCancellation(): void {\n super.repairBrowserHistoryAndUrlAfterGuardCancellation(this.poppedHistoryUrl, this.startingUrl)\n }\n\n}\n"]}
1
+ {"version":3,"file":"abstract-pop-state-navigation.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/abstract-pop-state-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,OAAgB,0BAA2B,SAAQ,iBAAiB;IAIxE,YAAY,OAA0B,EAAE,WAAmB,EAAW,gBAAwB;QAC5F,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QADwC,qBAAgB,GAAhB,gBAAgB,CAAQ;QAHrF,eAAU,GAAG,IAAI,CAAC;QAC3B,sBAAiB,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;IAIxD,CAAC;IAED,WAAW;IACX,gDAAgD;QAC9C,KAAK,CAAC,gDAAgD,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;IACjG,CAAC;CAEF","sourcesContent":["import { Logger, Trace } from '@coolon/pectin';\nimport { NavigationContext } from './navigation-context';\nimport { NavigationSession } from './navigation-session';\n\nexport abstract class AbstractPopStateNavigation extends NavigationSession {\n readonly isPopState = true;\n debugPropertyKeys = ['startingUrl', 'poppedHistoryUrl'];\n\n constructor(context: NavigationContext, startingUrl: string, readonly poppedHistoryUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n repairBrowserHistoryAndUrlAfterGuardCancellation(): void {\n super.repairBrowserHistoryAndUrlAfterGuardCancellation(this.poppedHistoryUrl, this.startingUrl)\n }\n\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"event-clean-up-session.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/event-cleanup/event-clean-up-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,OAAgB,mBAAoB,SAAQ,iBAAiB;IAGjE,yCAAyC,CAAC,MAAc;QACtD,IAAI,CAAC,YAAY,CAAC,6EAA6E,CAAC,CAAC;IACnG,CAAC;CAEF","sourcesContent":["import { lang } from '@coolon/typescript-utilities';\nimport { NavigationSession } from '../navigation-session';\n\nexport abstract class EventCleanUpSession extends NavigationSession {\n\n\n handleCanDeactivateCancelledEventScenario(newUrl: string): void {\n lang.illegalState('onCanDeactivateInteractionCancelled not supported for event clean up states');\n }\n\n}\n"]}
1
+ {"version":3,"file":"event-clean-up-session.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/event-cleanup/event-clean-up-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,OAAgB,mBAAoB,SAAQ,iBAAiB;IAGjE,yCAAyC,CAAC,MAAc;QACtD,IAAI,CAAC,YAAY,CAAC,6EAA6E,CAAC,CAAC;IACnG,CAAC;CAEF","sourcesContent":["import { lang } from '@coolon/typescript-utilities';\nimport { NavigationSession } from '../navigation-session';\n\nexport abstract class EventCleanUpSession extends NavigationSession {\n\n\n handleCanDeactivateCancelledEventScenario(newUrl: string): void {\n lang.illegalState('onCanDeactivateInteractionCancelled not supported for event clean up states');\n }\n\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wait-until-leaving-interaction-transition-cancelled.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,OAAO,8CAA+C,SAAQ,mBAAmB;IAQrF,YAAY,OAA0B,EAC1B,WAAmB,EACV,wBAAgC;QACnD,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QADT,6BAAwB,GAAxB,wBAAwB,CAAQ;QAR5C,eAAU,GAAG,KAAK,CAAC;QAC5B,uBAAkB,GAAG,KAAK,CAAC;QAC3B,oBAAe,GAAG,KAAK,CAAC;QAExB,sBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;IAMzJ,CAAC;IAED,WAAW;IACX,eAAe,CAAC,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,gDAAgD,CAAC,IAAI,CAAC,wBAAwB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACvG,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,aAAa,CAAC,KAAsB;QAClC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,UAAU,CAAC,KAAsB;QAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAEK,kBAAkB,CAAC,SAAyB,EAAE,UAAuB,EAAE,OAAoB;;YAC/F,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;CACF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart } from '@angular/router';\nimport { Logger, Trace } from '@coolon/pectin';\nimport { PlaceComponent } from '../../../place-component';\nimport { UrlSnapshot } from '../../../url-snapshot';\nimport { SynchroniseInteractionContextIdsWithRoute } from '../interactions/synchronise-interaction-context-ids-with-route';\nimport { NavigationContext } from '../navigation-context';\nimport { NavigationSession } from '../navigation-session';\nimport { lang } from '@coolon/typescript-utilities';\nimport { EventCleanUpSession } from './event-clean-up-session';\n\n/**\n * The sequence of router events are:\n * NavigationError -> url = url of navigation link\n * NavigationEnd\n * onPopState url = Our currentUrl sans and interaction query params\n * NavigationCancel url == same as above.\n */\nexport class WaitUntilLeavingInteractionTransitionCancelled extends EventCleanUpSession {\n\n readonly isPopState = false;\n firstCancelHandled = false;\n popStateHandled = false;\n popStateEventUrl: string;\n debugPropertyKeys = ['idle', 'startingUrl', 'poppedHistoryUrl', 'locationChangeTriggerUrl', 'popStateEventUrl', 'firstCancelHandled', 'popStateHandled'];\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly locationChangeTriggerUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.locationChangeTriggerUrl, this.startingUrl);\n this.context.finishRoutingSession();\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n this.ignore(event);\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.ignore(event);\n }\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n}\n"]}
1
+ {"version":3,"file":"wait-until-leaving-interaction-transition-cancelled.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,OAAO,8CAA+C,SAAQ,mBAAmB;IAQrF,YAAY,OAA0B,EAC1B,WAAmB,EACV,wBAAgC;QACnD,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QADT,6BAAwB,GAAxB,wBAAwB,CAAQ;QAR5C,eAAU,GAAG,KAAK,CAAC;QAC5B,uBAAkB,GAAG,KAAK,CAAC;QAC3B,oBAAe,GAAG,KAAK,CAAC;QAExB,sBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;IAMzJ,CAAC;IAED,WAAW;IACX,eAAe,CAAC,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,gDAAgD,CAAC,IAAI,CAAC,wBAAwB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACvG,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,aAAa,CAAC,KAAsB;QAClC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,UAAU,CAAC,KAAsB;QAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAEK,kBAAkB,CAAC,SAAyB,EAAE,UAAuB,EAAE,OAAoB;;YAC/F,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;CACF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart } from '@angular/router';\nimport { Logger, Trace } from '@coolon/pectin';\nimport { PlaceComponent } from '../../../place-component';\nimport { UrlSnapshot } from '../../../url-snapshot';\nimport { SynchroniseInteractionContextIdsWithRoute } from '../interactions/synchronise-interaction-context-ids-with-route';\nimport { NavigationContext } from '../navigation-context';\nimport { NavigationSession } from '../navigation-session';\nimport { lang } from '@coolon/typescript-utilities';\nimport { EventCleanUpSession } from './event-clean-up-session';\n\n/**\n * The sequence of router events are:\n * NavigationError -> url = url of navigation link\n * NavigationEnd\n * onPopState url = Our currentUrl sans and interaction query params\n * NavigationCancel url == same as above.\n */\nexport class WaitUntilLeavingInteractionTransitionCancelled extends EventCleanUpSession {\n\n readonly isPopState = false;\n firstCancelHandled = false;\n popStateHandled = false;\n popStateEventUrl: string;\n debugPropertyKeys = ['idle', 'startingUrl', 'poppedHistoryUrl', 'locationChangeTriggerUrl', 'popStateEventUrl', 'firstCancelHandled', 'popStateHandled'];\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly locationChangeTriggerUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.locationChangeTriggerUrl, this.startingUrl);\n this.context.finishRoutingSession();\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n this.ignore(event);\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.ignore(event);\n }\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n}\n"]}
@@ -0,0 +1,171 @@
1
+ import { __awaiter, __decorate, __metadata } from "tslib";
2
+ import { NavigationCancel, NavigationStart } from '@angular/router';
3
+ import { Trace } from '@coolon/pectin';
4
+ import { EventCleanUpSession } from './event-clean-up-session';
5
+ /**
6
+ * This state handles the scenario where a link navigation triggered an interaction and the user clicked back a to cancel it.
7
+ * The routing event sequence is different depending on the link that was clicked.
8
+ *
9
+ * NOTE: In angular prior to 10 the sequence of routing events was different depending on the initial link that was clicked.
10
+ * This class used have ugle if/else code to handle it and a not that it should be split into sub states.
11
+ * During the update to angular 10 I did this (as the tests for this scenario were failings). After doing so
12
+ * it appears that angular now behaves the same in both cases. But rather that revert the changes I've left the
13
+ * sub-state handling in in case it ever comes back.
14
+ */
15
+ export class WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined extends EventCleanUpSession {
16
+ constructor(context, startingUrl, clickedLinkUrl) {
17
+ super(context, startingUrl);
18
+ this.clickedLinkUrl = clickedLinkUrl;
19
+ this.isPopState = false;
20
+ this.clickedLinkMatchedBackButtonUrl = false;
21
+ this.debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'firstCancelEventUrl', 'clickedLinkMatchedBackButtonUrl', 'popStateEventUrl'];
22
+ }
23
+ onRouterStarted(event) {
24
+ this.ignore(event);
25
+ }
26
+ onRouterCancelled(event) {
27
+ if (event.url === this.clickedLinkUrl) {
28
+ this.context.transitionTo(new WaitForLinkSameAsBackToPlayOut(this.context, this.startingUrl, this.clickedLinkUrl));
29
+ }
30
+ else {
31
+ this.context.transitionTo(new WaitForLinkDifferentFromBackToPlayOut(this.context, this.startingUrl, this.clickedLinkUrl));
32
+ }
33
+ }
34
+ canDeactivatePlace(component, currentUrl, nextUrl) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return false;
37
+ });
38
+ }
39
+ }
40
+ __decorate([
41
+ Trace(),
42
+ __metadata("design:type", Function),
43
+ __metadata("design:paramtypes", [NavigationStart]),
44
+ __metadata("design:returntype", void 0)
45
+ ], WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined.prototype, "onRouterStarted", null);
46
+ __decorate([
47
+ Trace(),
48
+ __metadata("design:type", Function),
49
+ __metadata("design:paramtypes", [NavigationCancel]),
50
+ __metadata("design:returntype", void 0)
51
+ ], WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined.prototype, "onRouterCancelled", null);
52
+ class WaitForLinkSameAsBackToPlayOut extends EventCleanUpSession {
53
+ constructor(context, startingUrl, clickedLinkUrl) {
54
+ super(context, startingUrl);
55
+ this.clickedLinkUrl = clickedLinkUrl;
56
+ this.isPopState = false;
57
+ this.debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'popStateEventUrl'];
58
+ }
59
+ // @Trace()
60
+ onRouterEnd(event) {
61
+ this.ignore(event);
62
+ }
63
+ // @Trace()
64
+ onRouterError(event) {
65
+ this.ignore(event);
66
+ }
67
+ // @Trace()
68
+ onPopState(event) {
69
+ this.popStateEventUrl = event.url;
70
+ this.ignore(event);
71
+ }
72
+ // @Trace()
73
+ onRouterCancelled(event) {
74
+ if (this.popStateEventUrl) {
75
+ this.finaliseRouting();
76
+ }
77
+ }
78
+ // @Trace()
79
+ finaliseRouting() {
80
+ this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl, this.startingUrl);
81
+ return this.context.finishRoutingSession();
82
+ }
83
+ canDeactivatePlace(component, currentUrl, nextUrl) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ return false;
86
+ });
87
+ }
88
+ }
89
+ // See the note above. This class is identical to the previous but I've left it here in case angular decides to
90
+ // route differently in this scenario going forward.
91
+ class WaitForLinkDifferentFromBackToPlayOut extends EventCleanUpSession {
92
+ constructor(context, startingUrl, clickedLinkUrl) {
93
+ super(context, startingUrl);
94
+ this.clickedLinkUrl = clickedLinkUrl;
95
+ this.isPopState = false;
96
+ this.debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'popStateEventUrl'];
97
+ }
98
+ // @Trace()
99
+ onRouterEnd(event) {
100
+ this.ignore(event);
101
+ }
102
+ // @Trace()
103
+ onRouterError(event) {
104
+ this.ignore(event);
105
+ }
106
+ // @Trace()
107
+ onPopState(event) {
108
+ this.popStateEventUrl = event.url;
109
+ this.ignore(event);
110
+ }
111
+ // @Trace()
112
+ onRouterCancelled(event) {
113
+ if (this.popStateEventUrl) {
114
+ this.finaliseRouting();
115
+ }
116
+ }
117
+ // @Trace()
118
+ finaliseRouting() {
119
+ this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl, this.startingUrl);
120
+ return this.context.finishRoutingSession();
121
+ }
122
+ canDeactivatePlace(component, currentUrl, nextUrl) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ return false;
125
+ });
126
+ }
127
+ }
128
+ //
129
+ // ### Router State Transition: null -> Navigating(startingUrl: /activities/dialogs;l=en, urlAfterRedirects: undefined)
130
+ // ### ###### Router Event: NavigationStart
131
+ // NavigationStart(id: 6, url: '/home')
132
+ // NavigationStart {id: 6, url: "/home", navigationTrigger: "imperative", restoredState: null}
133
+ // logger.js:39 Ignoring router event: NavigationStart -> /home :: Navigating(startingUrl: /activities/dialogs;l=en, urlAfterRedirects: undefined)
134
+ // ### ###### Router Event: RoutesRecognized
135
+ // RoutesRecognized(id: 6, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )
136
+ // RoutesRecognized {id: 6, url: "/home", urlAfterRedirects: "/home", state: RouterStateSnapshot}
137
+ // ###### Router Event: GuardsCheckStart
138
+ // GuardsCheckStart(id: 6, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )
139
+ // GuardsCheckStart {id: 6, url: "/home", urlAfterRedirects: "/home", state: RouterStateSnapshot}
140
+ // logger.js:39 back button pressed during navigation session interaction promise
141
+ // logger.js:39 cancelling current navigation activity..
142
+ // logger.js:39 ### Router State Transition: Navigating(startingUrl: /activities/dialogs;l=en, urlAfterRedirects: undefined) -> WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish(idle: undefined, startingUrl: /activities/dialogs;l=en, clickedLinkUrl: /home, firstCancelEventUrl: undefined, clickedLinkMatchedBackButtonUrl: false, popStateEventUrl: undefined)
143
+ // ###### Router Event: GuardsCheckEnd
144
+ // GuardsCheckEnd(id: 6, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } , shouldActivate: false)
145
+ // GuardsCheckEnd {id: 6, url: "/home", urlAfterRedirects: "/home", state: RouterStateSnapshot, shouldActivate: false}
146
+ // ###### Router Event: NavigationCancel
147
+ // NavigationCancel(id: 6, url: '/home')
148
+ // NavigationCancel {id: 6, url: "/home", reason: ""}
149
+ // logger.js:54 WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterCancelled
150
+ // logger.js:19 args NavigationCancel {id: 6, url: "/home", reason: ""}
151
+ // logger.js:39 Ignoring router event: NavigationCancel -> /home :: WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish(idle: undefined, startingUrl: /activities/dialogs;l=en, clickedLinkUrl: /home, firstCancelEventUrl: /home, clickedLinkMatchedBackButtonUrl: true, popStateEventUrl: undefined)
152
+ // logger.js:28 <-- WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterCancelled undefined
153
+ // logger.js:54 WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterEnd
154
+ // logger.js:19 args NavigationEnd {id: -1, url: "", urlAfterRedirects: ""}
155
+ // logger.js:54 WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.finaliseRouting
156
+ // logger.js:39 WORK-AROUND: Updating browser location after pop state - see angular issue #13586
157
+ // navigation-session.ts:129 replacing /activities/dialogs;l=en with /home
158
+ // navigation-session.ts:131 pushing /activities/dialogs;l=en back onto the history.
159
+ // ????? place-router.ts:281 ### Router Session Finished (was WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish(idle: undefined, startingUrl: /activities/dialogs;l=en, clickedLinkUrl: /home, firstCancelEventUrl: /home, clickedLinkMatchedBackButtonUrl: true, popStateEventUrl: undefined))
160
+ // logger.js:28 <-- WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.finaliseRouting undefined
161
+ // logger.js:28 <-- WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterEnd undefined
162
+ // ###### Router Event: NavigationStart
163
+ // NavigationStart(id: 7, url: '/home')
164
+ // NavigationStart {id: 7, url: "/home", navigationTrigger: "popstate", restoredState: {…}}
165
+ // logger.js:39 ### Router State Transition: null -> PopStateNavigation(startingUrl: /activities/dialogs;l=en, poppedHistoryUrl: /home)
166
+ // ###### Router Event: RoutesRecognized
167
+ // RoutesRecognized(id: 7, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )
168
+ // RoutesRecognized {id: 7, url: "/home", urlAfterRedirects: "/home", state: RouterStateSnapshot}
169
+ // ###### Router Event: GuardsCheckStart
170
+ // GuardsCheckStart(id: 7, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )
171
+ //# sourceMappingURL=wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait-until-link-triggered-navigation-interaction-cancelation-type-determined.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAkC,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;;;;GASG;AACH,MAAM,OAAO,qEAAsE,SAAQ,mBAAmB;IAQ5G,YAAY,OAA0B,EAC1B,WAAmB,EACV,cAAsB;QACzC,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QADT,mBAAc,GAAd,cAAc,CAAQ;QARlC,eAAU,GAAG,KAAK,CAAC;QAG5B,oCAA+B,GAAG,KAAK,CAAC;QACxC,sBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,iCAAiC,EAAE,kBAAkB,CAAC,CAAC;IAM5I,CAAC;IAGD,eAAe,CAAC,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAGD,iBAAiB,CAAC,KAAuB;QACvC,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,CAAC,cAAc,EAAE;YACrC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;SACpH;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,qCAAqC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;SAC3H;IACH,CAAC;IAEK,kBAAkB,CAAC,SAAyB,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;AAClG,iFAAiF;AACjF,wDAAwD;AACxD,yXAAyX;AACzX,uCAAuC;AACvC,6JAA6J;AAC7J,uHAAuH;AACvH,yCAAyC;AACzC,yCAAyC;AACzC,sDAAsD;AACtD,qGAAqG;AACrG,uEAAuE;AACvE,sTAAsT;AACtT,mHAAmH;AACnH,+FAA+F;AAC/F,2EAA2E;AAC3E,mGAAmG;AACnG,iGAAiG;AACjG,0EAA0E;AAC1E,sFAAsF;AACtF,kTAAkT;AAClT,iHAAiH;AACjH,6GAA6G;AAC7G,wCAAwC;AACxC,wCAAwC;AACxC,4FAA4F;AAC5F,uIAAuI;AACvI,yCAAyC;AACzC,wIAAwI;AACxI,kGAAkG;AAClG,yCAAyC;AACzC,wIAAwI","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport { PlaceComponent } from '../../../place-component';\nimport { UrlSnapshot } from '../../../url-snapshot';\nimport { NavigationContext } from '../navigation-context';\nimport { EventCleanUpSession } from './event-clean-up-session';\n\n/**\n * This state handles the scenario where a link navigation triggered an interaction and the user clicked back a to cancel it.\n * The routing event sequence is different depending on the link that was clicked.\n *\n * NOTE: In angular prior to 10 the sequence of routing events was different depending on the initial link that was clicked.\n * This class used have ugle if/else code to handle it and a not that it should be split into sub states.\n * During the update to angular 10 I did this (as the tests for this scenario were failings). After doing so\n * it appears that angular now behaves the same in both cases. But rather that revert the changes I've left the\n * sub-state handling in in case it ever comes back.\n */\nexport class WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined extends EventCleanUpSession {\n\n readonly isPopState = false;\n firstCancelEventUrl: string;\n popStateEventUrl: string;\n clickedLinkMatchedBackButtonUrl = false;\n debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'firstCancelEventUrl', 'clickedLinkMatchedBackButtonUrl', 'popStateEventUrl'];\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly clickedLinkUrl: string) {\n super(context, startingUrl);\n }\n\n @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n if (event.url === this.clickedLinkUrl) {\n this.context.transitionTo(new WaitForLinkSameAsBackToPlayOut(this.context, this.startingUrl, this.clickedLinkUrl));\n } else {\n this.context.transitionTo(new WaitForLinkDifferentFromBackToPlayOut(this.context, this.startingUrl, this.clickedLinkUrl));\n }\n }\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n}\n\nclass WaitForLinkSameAsBackToPlayOut extends EventCleanUpSession {\n readonly isPopState = false;\n popStateEventUrl: string;\n debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'popStateEventUrl'];\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly clickedLinkUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n this.ignore(event);\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.popStateEventUrl = event.url;\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel) {\n if (this.popStateEventUrl) {\n this.finaliseRouting();\n }\n }\n\n // @Trace()\n finaliseRouting() {\n this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl, this.startingUrl);\n return this.context.finishRoutingSession();\n }\n\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n\n}\n\n// See the note above. This class is identical to the previous but I've left it here in case angular decides to\n// route differently in this scenario going forward.\nclass WaitForLinkDifferentFromBackToPlayOut extends EventCleanUpSession {\n readonly isPopState = false;\n popStateEventUrl: string;\n debugPropertyKeys = ['idle', 'startingUrl', 'clickedLinkUrl', 'popStateEventUrl'];\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly clickedLinkUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n this.ignore(event);\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.popStateEventUrl = event.url;\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel) {\n if (this.popStateEventUrl) {\n this.finaliseRouting();\n }\n }\n\n // @Trace()\n finaliseRouting() {\n this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl, this.startingUrl);\n return this.context.finishRoutingSession();\n }\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n}\n\n\n//\n// ### Router State Transition: null -> Navigating(startingUrl: /activities/dialogs;l=en, urlAfterRedirects: undefined)\n// ### ###### Router Event: NavigationStart\n// NavigationStart(id: 6, url: '/home')\n// NavigationStart {id: 6, url: \"/home\", navigationTrigger: \"imperative\", restoredState: null}\n// logger.js:39 Ignoring router event: NavigationStart -> /home :: Navigating(startingUrl: /activities/dialogs;l=en, urlAfterRedirects: undefined)\n// ### ###### Router Event: RoutesRecognized\n// RoutesRecognized(id: 6, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )\n// RoutesRecognized {id: 6, url: \"/home\", urlAfterRedirects: \"/home\", state: RouterStateSnapshot}\n// ###### Router Event: GuardsCheckStart\n// GuardsCheckStart(id: 6, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )\n// GuardsCheckStart {id: 6, url: \"/home\", urlAfterRedirects: \"/home\", state: RouterStateSnapshot}\n// logger.js:39 back button pressed during navigation session interaction promise\n// logger.js:39 cancelling current navigation activity..\n// logger.js:39 ### Router State Transition: Navigating(startingUrl: /activities/dialogs;l=en, urlAfterRedirects: undefined) -> WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish(idle: undefined, startingUrl: /activities/dialogs;l=en, clickedLinkUrl: /home, firstCancelEventUrl: undefined, clickedLinkMatchedBackButtonUrl: false, popStateEventUrl: undefined)\n// ###### Router Event: GuardsCheckEnd\n// GuardsCheckEnd(id: 6, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } , shouldActivate: false)\n// GuardsCheckEnd {id: 6, url: \"/home\", urlAfterRedirects: \"/home\", state: RouterStateSnapshot, shouldActivate: false}\n// ###### Router Event: NavigationCancel\n// NavigationCancel(id: 6, url: '/home')\n// NavigationCancel {id: 6, url: \"/home\", reason: \"\"}\n// logger.js:54 WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterCancelled\n// logger.js:19 args NavigationCancel {id: 6, url: \"/home\", reason: \"\"}\n// logger.js:39 Ignoring router event: NavigationCancel -> /home :: WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish(idle: undefined, startingUrl: /activities/dialogs;l=en, clickedLinkUrl: /home, firstCancelEventUrl: /home, clickedLinkMatchedBackButtonUrl: true, popStateEventUrl: undefined)\n// logger.js:28 <-- WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterCancelled undefined\n// logger.js:54 WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterEnd\n// logger.js:19 args NavigationEnd {id: -1, url: \"\", urlAfterRedirects: \"\"}\n// logger.js:54 WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.finaliseRouting\n// logger.js:39 WORK-AROUND: Updating browser location after pop state - see angular issue #13586\n// navigation-session.ts:129 replacing /activities/dialogs;l=en with /home\n// navigation-session.ts:131 pushing /activities/dialogs;l=en back onto the history.\n// ????? place-router.ts:281 ### Router Session Finished (was WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish(idle: undefined, startingUrl: /activities/dialogs;l=en, clickedLinkUrl: /home, firstCancelEventUrl: /home, clickedLinkMatchedBackButtonUrl: true, popStateEventUrl: undefined))\n// logger.js:28 <-- WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.finaliseRouting undefined\n// logger.js:28 <-- WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish.onRouterEnd undefined\n// ###### Router Event: NavigationStart\n// NavigationStart(id: 7, url: '/home')\n// NavigationStart {id: 7, url: \"/home\", navigationTrigger: \"popstate\", restoredState: {…}}\n// logger.js:39 ### Router State Transition: null -> PopStateNavigation(startingUrl: /activities/dialogs;l=en, poppedHistoryUrl: /home)\n// ###### Router Event: RoutesRecognized\n// RoutesRecognized(id: 7, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )\n// RoutesRecognized {id: 7, url: \"/home\", urlAfterRedirects: \"/home\", state: RouterStateSnapshot}\n// ###### Router Event: GuardsCheckStart\n// GuardsCheckStart(id: 7, url: '/home', urlAfterRedirects: '/home', state: Route(url:'', path:'') { Route(url:'home', path:'home') } )\n"]}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./event-clean-up-session","name":"EventCleanUpSession","line":17,"character":91},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../navigation-context","name":"NavigationContext","line":25,"character":23},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"}]}],"onRouterStarted":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"Trace","line":31,"character":3}}]}],"onRouterCancelled":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"Trace","line":36,"character":3}}]}],"canDeactivatePlace":[{"__symbolic":"method"}]}}}}]
@@ -1 +1 @@
1
- {"version":3,"file":"wait-until-popstate-during-can-deactivate-transition-finishes.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,uDAAwD,SAAQ,mBAAmB;IAS9F,YAAY,OAA0B,EAC1B,WAAmB,EACV,wBAAgC,EAChC,gBAAwB;QAC3C,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAFT,6BAAwB,GAAxB,wBAAwB,CAAQ;QAChC,qBAAgB,GAAhB,gBAAgB,CAAQ;QAVpC,eAAU,GAAG,KAAK,CAAC;QAC5B,uBAAkB,GAAG,KAAK,CAAC;QAC3B,oBAAe,GAAG,KAAK,CAAC;QAExB,sBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;IAQzJ,CAAC;IAED,WAAW;IACX,eAAe,CAAC,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC5B,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;YAC/B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACpB;aAAM;YACL,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,MAAM,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC;gBACrC,IAAI,CAAC,gDAAgD,CAAC,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;gBAC9F,+FAA+F;gBAC/F,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,WAAW,EAAE,EAAC,cAAc,EAAE,KAAK,EAAC,CAAC,CAAC;gBACrE,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;aAC5C;SACF;IACH,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,aAAa,CAAC,KAAsB;QAClC,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IAED,WAAW;IACX,UAAU,CAAC,KAAsB;QAC/B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC;QAClC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAEK,kBAAkB,CAAC,SAAyB,EAAE,UAAuB,EAAE,OAAoB;;YAC/F,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;CACF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart } from '@angular/router';\nimport { Logger, Trace } from '@coolon/pectin';\nimport { PlaceComponent } from '../../../place-component';\nimport { UrlSnapshot } from '../../../url-snapshot';\nimport { NavigationContext } from '../navigation-context';\nimport { EventCleanUpSession } from './event-clean-up-session';\n\n/**\n * This state handles the scenario where a pop state triggered and interaction and the user clickeb back a second time to cancel it.\n * The sequence of routing events/state transitions is as follows.\n * -> Idle -> PopStateTransition (poppedHistoryUrl == page to go to, startingUrl = page to stay on )\n * -> confirm dialog shown.\n * -> click back\n * -> PopStateTransition -> CancelledDuringBackButtonNavigationInteraction(trigger url is the page before the popped history url)\n * -> NavigationCancel (for the previous back)\n * -> PopState\n * -> NavigationCancel\n */\nexport class WaitUntilPopStateDuringCanDeactivateInteractionFinishes extends EventCleanUpSession {\n\n readonly isPopState = false;\n firstCancelHandled = false;\n popStateHandled = false;\n popStateEventUrl: string;\n debugPropertyKeys = ['idle', 'startingUrl', 'poppedHistoryUrl', 'locationChangeTriggerUrl', 'popStateEventUrl', 'firstCancelHandled', 'popStateHandled'];\n private parentPageUrl: string;\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly locationChangeTriggerUrl: string,\n readonly poppedHistoryUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n if (!this.firstCancelHandled) {\n this.firstCancelHandled = true;\n this.parentPageUrl = event.url;\n this.ignore(event);\n } else {\n if (this.popStateHandled) {\n const grandParentPageUrl = event.url;\n this.repairBrowserHistoryAndUrlAfterGuardCancellation(grandParentPageUrl, this.parentPageUrl);\n // we've had one more back click than normal so we need to add our initial url back in as well.\n this.resetBrowserLocation(this.startingUrl, {replaceCurrent: false});\n return this.context.finishRoutingSession();\n }\n }\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n void this.ignore(event);\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.popStateHandled = true;\n this.popStateEventUrl = event.url;\n this.ignore(event);\n }\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n}\n"]}
1
+ {"version":3,"file":"wait-until-popstate-during-can-deactivate-transition-finishes.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,uDAAwD,SAAQ,mBAAmB;IAS9F,YAAY,OAA0B,EAC1B,WAAmB,EACV,wBAAgC,EAChC,gBAAwB;QAC3C,KA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AAC,CAAC;IAC1B,CAAC;IAED,WAAW;IACX,UAAU,CAAC,KAAsB;QAC/B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC;QAClC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAEK,kBAAkB,CAAC,SAAyB,EAAE,UAAuB,EAAE,OAAoB;;YAC/F,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;CACF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart } from '@angular/router';\nimport { Logger, Trace } from '@coolon/pectin';\nimport { PlaceComponent } from '../../../place-component';\nimport { UrlSnapshot } from '../../../url-snapshot';\nimport { NavigationContext } from '../navigation-context';\nimport { EventCleanUpSession } from './event-clean-up-session';\n\n/**\n * This state handles the scenario where a pop state triggered and interaction and the user clickeb back a second time to cancel it.\n * The sequence of routing events/state transitions is as follows.\n * -> Idle -> PopStateTransition (poppedHistoryUrl == page to go to, startingUrl = page to stay on )\n * -> confirm dialog shown.\n * -> click back\n * -> PopStateTransition -> CancelledDuringBackButtonNavigationInteraction(trigger url is the page before the popped history url)\n * -> NavigationCancel (for the previous back)\n * -> PopState\n * -> NavigationCancel\n */\nexport class WaitUntilPopStateDuringCanDeactivateInteractionFinishes extends EventCleanUpSession {\n\n readonly isPopState = false;\n firstCancelHandled = false;\n popStateHandled = false;\n popStateEventUrl: string;\n debugPropertyKeys = ['idle', 'startingUrl', 'poppedHistoryUrl', 'locationChangeTriggerUrl', 'popStateEventUrl', 'firstCancelHandled', 'popStateHandled'];\n private parentPageUrl: string;\n\n constructor(context: NavigationContext,\n startingUrl: string,\n readonly locationChangeTriggerUrl: string,\n readonly poppedHistoryUrl: string) {\n super(context, startingUrl);\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n if (!this.firstCancelHandled) {\n this.firstCancelHandled = true;\n this.parentPageUrl = event.url;\n this.ignore(event);\n } else {\n if (this.popStateHandled) {\n const grandParentPageUrl = event.url;\n this.repairBrowserHistoryAndUrlAfterGuardCancellation(grandParentPageUrl, this.parentPageUrl);\n // we've had one more back click than normal so we need to add our initial url back in as well.\n this.resetBrowserLocation(this.startingUrl, {replaceCurrent: false});\n return this.context.finishRoutingSession();\n }\n }\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n void this.ignore(event);\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.popStateHandled = true;\n this.popStateEventUrl = event.url;\n this.ignore(event);\n }\n\n async canDeactivatePlace(component: PlaceComponent, currentUrl: UrlSnapshot, nextUrl: UrlSnapshot): Promise<boolean | UrlSnapshot> {\n return false;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"navigating-during-interaction.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/interactions/navigating-during-interaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,8CAA8C,EAAE,MAAM,sEAAsE,CAAC;AACtI,OAAO,EAAE,yCAAyC,EAAE,MAAM,kDAAkD,CAAC;AAE7G;;;;;GAKG;AACH,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAAlE;;QACW,eAAU,GAAG,KAAK,CAAC;IA6B9B,CAAC;IA3BC,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,aAAa,CAAC,KAAsB;QAClC,0BAA0B;QAC1B,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,QAAQ,EAAE,EAAE;YACpD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,yCAAyC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAA;SAChH;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;SACrD;IACH,CAAC;IAED,WAAW;IACX,yCAAyC,CAAC,kBAA0B;QAClE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8CAA8C,CAAC,IAAI,CAAC,OAAO,EACvF,IAAI,CAAC,WAAW,EAChB,kBAAkB,CAAC,CAAC,CAAC;IACzB,CAAC;CAEF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport { NavigationSession } from '../navigation-session';\n\nimport { WaitUntilLeavingInteractionTransitionCancelled } from '../event-cleanup/wait-until-leaving-interaction-transition-cancelled';\nimport { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interaction-context-ids-with-route';\n\n/**\n * This state exists to handle all events while any kind of navigation is in progress. That way all other states can\n * happily ignore interaction contexts.\n * NOTE: This state is activated when ever an interaction is started. It might be better to split it into\n * different states for different scenarios, e.g. starting model, starting model during route guard etc.\n */\nexport class NavigatingDuringInteraction extends NavigationSession {\n readonly isPopState = false;\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.context.finishRoutingSession();\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n // navigation was aborted.\n this.context.finishRoutingSession();\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n if (this.context.routerInteractionAdapter.isActive()) {\n this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.startingUrl, false))\n } else {\n this.context.finishRoutingSession(this.getVisits());\n }\n }\n\n // @Trace()\n handleCanDeactivateCancelledEventScenario(locationTriggerUrl: string): void {\n this.context.transitionTo(new WaitUntilLeavingInteractionTransitionCancelled(this.context,\n this.startingUrl,\n locationTriggerUrl));\n }\n\n}\n"]}
1
+ {"version":3,"file":"navigating-during-interaction.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/interactions/navigating-during-interaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,8CAA8C,EAAE,MAAM,sEAAsE,CAAC;AACtI,OAAO,EAAE,yCAAyC,EAAE,MAAM,kDAAkD,CAAC;AAE7G;;;;;GAKG;AACH,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAAlE;;QACW,eAAU,GAAG,KAAK,CAAC;IA6B9B,CAAC;IA3BC,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,aAAa,CAAC,KAAsB;QAClC,0BAA0B;QAC1B,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,QAAQ,EAAE,EAAE;YACpD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,yCAAyC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAA;SAChH;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;SACrD;IACH,CAAC;IAED,WAAW;IACX,yCAAyC,CAAC,kBAA0B;QAClE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8CAA8C,CAAC,IAAI,CAAC,OAAO,EACvF,IAAI,CAAC,WAAW,EAChB,kBAAkB,CAAC,CAAC,CAAC;IACzB,CAAC;CAEF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationError } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport { NavigationSession } from '../navigation-session';\n\nimport { WaitUntilLeavingInteractionTransitionCancelled } from '../event-cleanup/wait-until-leaving-interaction-transition-cancelled';\nimport { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interaction-context-ids-with-route';\n\n/**\n * This state exists to handle all events while any kind of navigation is in progress. That way all other states can\n * happily ignore interaction contexts.\n * NOTE: This state is activated when ever an interaction is started. It might be better to split it into\n * different states for different scenarios, e.g. starting model, starting model during route guard etc.\n */\nexport class NavigatingDuringInteraction extends NavigationSession {\n readonly isPopState = false;\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.context.finishRoutingSession();\n }\n\n // @Trace()\n onRouterError(event: NavigationError): void {\n // navigation was aborted.\n this.context.finishRoutingSession();\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n if (this.context.routerInteractionAdapter.isActive()) {\n this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.startingUrl, false))\n } else {\n this.context.finishRoutingSession(this.getVisits());\n }\n }\n\n // @Trace()\n handleCanDeactivateCancelledEventScenario(locationTriggerUrl: string): void {\n this.context.transitionTo(new WaitUntilLeavingInteractionTransitionCancelled(this.context,\n this.startingUrl,\n locationTriggerUrl));\n }\n\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pop-state-during-interaction-navigation.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,EAAE,yCAAyC,EAAE,MAAM,kDAAkD,CAAC;AAE7G;;;GAGG;AACH,MAAM,OAAO,mCAAoC,SAAQ,0BAA0B;IAEjF,YAAY,OAA0B,EAAE,WAAmB,EAAE,gBAAwB;QACnF,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACH,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,gDAAgD,EAAE,CAAC;QACxD,0HAA0H;QAC1H,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,yCAAyC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC;IACvH,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,wHAAwH;QACxH,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,yCAAyC,CAAC,MAAc;QACtD,IAAI,CAAC,iBAAiB,CAAC,6FAA6F,CAAC,CAAC;IACxH,CAAC;CAEF","sourcesContent":["import { NavigationCancel, NavigationEnd } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport { AbstractPopStateNavigation } from '../abstract-pop-state-navigation';\nimport { NavigationContext } from '../navigation-context';\nimport { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interaction-context-ids-with-route';\n\n/**\n * This state exists to handle all events while any kind of navigation is in progress. That way all other states can\n * happily ignore interaction contexts.\n */\nexport class PopStateDuringInteractionNavigation extends AbstractPopStateNavigation {\n\n constructor(context: NavigationContext, startingUrl: string, poppedHistoryUrl: string) {\n super(context, startingUrl, poppedHistoryUrl);\n }\n\n /**\n * Invoked when the place refuses to deactivate because of an unfinished interaction.\n * @param event\n */\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.repairBrowserHistoryAndUrlAfterGuardCancellation();\n // NOTE: for now we need to wasTriggeredByPopState=false because we're resetting the url and history in the previous line.\n this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n // this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));\n this.context.finishRoutingSession();\n }\n\n handleCanDeactivateCancelledEventScenario(newUrl: string): void {\n this.illegalTransition('Leaving interaction after pop-state should\\'t block so should never see a back button click');\n }\n\n}\n"]}
1
+ {"version":3,"file":"pop-state-during-interaction-navigation.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,EAAE,yCAAyC,EAAE,MAAM,kDAAkD,CAAC;AAE7G;;;GAGG;AACH,MAAM,OAAO,mCAAoC,SAAQ,0BAA0B;IAEjF,YAAY,OAA0B,EAAE,WAAmB,EAAE,gBAAwB;QACnF,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACH,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,gDAAgD,EAAE,CAAC;QACxD,0HAA0H;QAC1H,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,yCAAyC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC;IACvH,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,wHAAwH;QACxH,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,yCAAyC,CAAC,MAAc;QACtD,IAAI,CAAC,iBAAiB,CAAC,6FAA6F,CAAC,CAAC;IACxH,CAAC;CAEF","sourcesContent":["import { NavigationCancel, NavigationEnd } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport { AbstractPopStateNavigation } from '../abstract-pop-state-navigation';\nimport { NavigationContext } from '../navigation-context';\nimport { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interaction-context-ids-with-route';\n\n/**\n * This state exists to handle all events while any kind of navigation is in progress. That way all other states can\n * happily ignore interaction contexts.\n */\nexport class PopStateDuringInteractionNavigation extends AbstractPopStateNavigation {\n\n constructor(context: NavigationContext, startingUrl: string, poppedHistoryUrl: string) {\n super(context, startingUrl, poppedHistoryUrl);\n }\n\n /**\n * Invoked when the place refuses to deactivate because of an unfinished interaction.\n * @param event\n */\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.repairBrowserHistoryAndUrlAfterGuardCancellation();\n // NOTE: for now we need to wasTriggeredByPopState=false because we're resetting the url and history in the previous line.\n this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n // this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));\n this.context.finishRoutingSession();\n }\n\n handleCanDeactivateCancelledEventScenario(newUrl: string): void {\n this.illegalTransition('Leaving interaction after pop-state should\\'t block so should never see a back button click');\n }\n\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"remove-last-interaction-from-url-navigation-session.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAS,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,OAAO,6CAA8C,SAAQ,iBAAiB;IAOlF,YAAY,OAA0B,EAAE,WAAmB;QACzD,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAPrB,eAAU,GAAG,IAAI,CAAC;QAC3B,sBAAiB,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;QAOtD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAW,CAAC;IAC5C,CAAC;IAED,WAAW;IACX,UAAU,CAAC,KAAsB;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED,WAAW;IACX,eAAe,CAAC,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,WAAW,CAAC,GAAW;IACvB,CAAC;IAEO,QAAQ;QACd,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACpC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;IACH,CAAC;IAED,WAAW;IACX,yCAAyC,CAAC,kBAA0B;QAClE,IAAI,CAAC,YAAY,CAAC,4HAA4H,CAAC,CAAC;IAClJ,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC/B,CAAC;CAEF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationStart } from '@angular/router';\nimport { Deferred, lang, Trace } from '@coolon/pectin';\nimport { NavigationContext } from '../navigation-context';\nimport { NavigationSession } from '../navigation-session';\n\n/**\n * This session tracks the process of removing the last interaction context from the URL and provides a promise\n * the resolves when the process and completed. This case is special as the process involves a regular routing cycle\n * followed by a call to location.back(). The later triggers a url change with no other routing events. So this\n * class tracks when the first routing cycle finishes and then waits for the subsequent lone url change event.\n */\nexport class RemoveLastInteractionFromUrlNavigationSession extends NavigationSession {\n readonly isPopState = true;\n debugPropertyKeys = ['startingUrl', 'poppedHistoryUrl'];\n\n private finished: Deferred<boolean>;\n private gotPopState: boolean;\n\n constructor(context: NavigationContext, startingUrl: string) {\n super(context, startingUrl);\n this.finished = Deferred.defer<boolean>();\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.gotPopState = true;\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.ignore(event);\n }\n\n // @Trace()\n onUrlChange(url: string) {\n }\n\n private finishUp() {\n this.context.finishRoutingSession();\n this.finished.resolve(true);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n if (this.gotPopState) {\n this.finishUp();\n }\n }\n\n // @Trace()\n handleCanDeactivateCancelledEventScenario(locationTriggerUrl: string): void {\n lang.illegalState('onCanDeactivateInteractionCancelled not supported for activity context synchronisation since we should never leave a place');\n }\n\n get finishedPromise(): Promise<boolean> {\n return this.finished.promise;\n }\n\n}\n"]}
1
+ {"version":3,"file":"remove-last-interaction-from-url-navigation-session.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAS,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,OAAO,6CAA8C,SAAQ,iBAAiB;IAOlF,YAAY,OAA0B,EAAE,WAAmB;QACzD,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAPrB,eAAU,GAAG,IAAI,CAAC;QAC3B,sBAAiB,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;QAOtD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAW,CAAC;IAC5C,CAAC;IAED,WAAW;IACX,UAAU,CAAC,KAAsB;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED,WAAW;IACX,eAAe,CAAC,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,iBAAiB,CAAC,KAAuB;QACvC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,WAAW,CAAC,GAAW;IACvB,CAAC;IAEO,QAAQ;QACd,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACpC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,WAAW;IACX,WAAW,CAAC,KAAoB;QAC9B,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;IACH,CAAC;IAED,WAAW;IACX,yCAAyC,CAAC,kBAA0B;QAClE,IAAI,CAAC,YAAY,CAAC,4HAA4H,CAAC,CAAC;IAClJ,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC/B,CAAC;CAEF","sourcesContent":["import { NavigationCancel, NavigationEnd, NavigationStart } from '@angular/router';\nimport { Deferred, lang, Trace } from '@coolon/pectin';\nimport { NavigationContext } from '../navigation-context';\nimport { NavigationSession } from '../navigation-session';\n\n/**\n * This session tracks the process of removing the last interaction context from the URL and provides a promise\n * the resolves when the process and completed. This case is special as the process involves a regular routing cycle\n * followed by a call to location.back(). The later triggers a url change with no other routing events. So this\n * class tracks when the first routing cycle finishes and then waits for the subsequent lone url change event.\n */\nexport class RemoveLastInteractionFromUrlNavigationSession extends NavigationSession {\n readonly isPopState = true;\n debugPropertyKeys = ['startingUrl', 'poppedHistoryUrl'];\n\n private finished: Deferred<boolean>;\n private gotPopState: boolean;\n\n constructor(context: NavigationContext, startingUrl: string) {\n super(context, startingUrl);\n this.finished = Deferred.defer<boolean>();\n }\n\n // @Trace()\n onPopState(event: NavigationStart): void {\n this.gotPopState = true;\n }\n\n // @Trace()\n onRouterStarted(event: NavigationStart): void {\n this.ignore(event);\n }\n\n // @Trace()\n onRouterCancelled(event: NavigationCancel): void {\n this.ignore(event);\n }\n\n // @Trace()\n onUrlChange(url: string) {\n }\n\n private finishUp() {\n this.context.finishRoutingSession();\n this.finished.resolve(true);\n }\n\n // @Trace()\n onRouterEnd(event: NavigationEnd): void {\n if (this.gotPopState) {\n this.finishUp();\n }\n }\n\n // @Trace()\n handleCanDeactivateCancelledEventScenario(locationTriggerUrl: string): void {\n lang.illegalState('onCanDeactivateInteractionCancelled not supported for activity context synchronisation since we should never leave a place');\n }\n\n get finishedPromise(): Promise<boolean> {\n return this.finished.promise;\n }\n\n}\n"]}