@coolon/angular-ui-powerups 0.0.134 → 1.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +301 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +1178 -6280
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +16 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +27 -26
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +26 -29
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/index.js +1 -5
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.js +32 -32
- package/esm2015/lib/angular-ui-powerups.module.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/animations/index.js +1 -5
- package/esm2015/lib/animations/index.js.map +1 -1
- package/esm2015/lib/animations/slide-animations.js +0 -8
- package/esm2015/lib/animations/slide-animations.js.map +1 -1
- package/esm2015/lib/components/components.module.js +40 -37
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/disposable-component.js +8 -9
- package/esm2015/lib/components/disposable-component.js.map +1 -1
- package/esm2015/lib/components/disposable-component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +82 -114
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +12 -18
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js +12 -18
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +38 -57
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +19 -41
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/index.js +13 -16
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/noop/noop.component.js +12 -15
- package/esm2015/lib/components/noop/noop.component.js.map +1 -1
- package/esm2015/lib/components/resize-aware.component.js +17 -64
- package/esm2015/lib/components/resize-aware.component.js.map +1 -1
- package/esm2015/lib/components/resize-aware.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +17 -0
- package/esm2015/lib/components/scroll-container/scroll-container.component.js.map +1 -0
- package/esm2015/lib/components/scroll-container/scroll-container.component.metadata.json +1 -0
- package/esm2015/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/types/bounds.class.js +0 -29
- package/esm2015/lib/components/types/bounds.class.js.map +1 -1
- package/esm2015/lib/components/types/dimension.class.js +0 -14
- package/esm2015/lib/components/types/dimension.class.js.map +1 -1
- package/esm2015/lib/components/types/point.class.js +0 -23
- package/esm2015/lib/components/types/point.class.js.map +1 -1
- package/esm2015/lib/directives/command.directive.js +31 -85
- package/esm2015/lib/directives/command.directive.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +28 -28
- package/esm2015/lib/directives/directives.module.js.map +1 -1
- package/esm2015/lib/directives/directives.module.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/focus-binding.directive.js +41 -96
- package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
- package/esm2015/lib/directives/index.js +3 -7
- package/esm2015/lib/directives/index.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js +4 -73
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/activity-ref.js +2 -79
- package/esm2015/lib/interaction/activity-ref.js.map +1 -1
- package/esm2015/lib/interaction/activity.js +0 -72
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +0 -22
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +41 -187
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +24 -74
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +13 -24
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +15 -62
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +13 -27
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +16 -71
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/confirm.js +0 -16
- package/esm2015/lib/interaction/confirm.js.map +1 -1
- package/esm2015/lib/interaction/index.js +15 -24
- package/esm2015/lib/interaction/index.js.map +1 -1
- package/esm2015/lib/interaction/interaction-context.js +0 -50
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +41 -41
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/result.js +2 -23
- package/esm2015/lib/interaction/result.js.map +1 -1
- package/esm2015/lib/interaction/route-synchronisation-adapter.js +0 -16
- package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js +0 -43
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js +22 -172
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.metadata.json +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +17 -40
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.metadata.json +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +7 -86
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/services/modal-interaction-context.factory.js +0 -16
- package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +36 -105
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +17 -34
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.js +12 -18
- package/esm2015/lib/place/components/empty-state/empty-state.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +16 -33
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +52 -240
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/route-animations.js +0 -12
- package/esm2015/lib/place/components/place-outlet/route-animations.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +12 -17
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js +9 -92
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/noop-auth-guard.service.js +12 -21
- package/esm2015/lib/place/guards/noop-auth-guard.service.js.map +1 -1
- package/esm2015/lib/place/guards/noop-auth-guard.service.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +10 -119
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/index.js +38 -46
- package/esm2015/lib/place/index.js.map +1 -1
- package/esm2015/lib/place/nav-item.js +0 -22
- package/esm2015/lib/place/nav-item.js.map +1 -1
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js +3 -49
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js +0 -23
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +0 -11
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +2 -51
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +2 -54
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +2 -60
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js +0 -24
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +1 -19
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +0 -55
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +4 -60
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigating.js +0 -31
- package/esm2015/lib/place/navigation/session/navigating.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigation-context.js +0 -24
- package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigation-session.js +12 -178
- package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js +0 -16
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
- package/esm2015/lib/place/place-component.js +22 -107
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-config.js +0 -13
- package/esm2015/lib/place/place-config.js.map +1 -1
- package/esm2015/lib/place/place-definition.js +26 -163
- package/esm2015/lib/place/place-definition.js.map +1 -1
- package/esm2015/lib/place/place-history.js +11 -38
- package/esm2015/lib/place/place-history.js.map +1 -1
- package/esm2015/lib/place/place-history.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +38 -247
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.decorator.js +3 -38
- package/esm2015/lib/place/place.decorator.js.map +1 -1
- package/esm2015/lib/place/place.module.js +40 -42
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/route/formatter.js +0 -30
- package/esm2015/lib/place/route/formatter.js.map +1 -1
- package/esm2015/lib/place/route/json-types.js +0 -12
- package/esm2015/lib/place/route/json-types.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js +14 -133
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-definition.class.js +2 -147
- package/esm2015/lib/place/route/parameter-definition.class.js.map +1 -1
- package/esm2015/lib/place/route/parameter-sanitiser.js +0 -18
- package/esm2015/lib/place/route/parameter-sanitiser.js.map +1 -1
- package/esm2015/lib/place/route/parameter-snapshot.js +0 -19
- package/esm2015/lib/place/route/parameter-snapshot.js.map +1 -1
- package/esm2015/lib/place/route/visit-sanitiser.js +2 -47
- package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
- package/esm2015/lib/place/url-service.js +13 -68
- package/esm2015/lib/place/url-service.js.map +1 -1
- package/esm2015/lib/place/url-service.metadata.json +1 -1
- package/esm2015/lib/place/url-snapshot.js +3 -86
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/visit.js +5 -73
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/public_api.js +6 -10
- package/esm2015/public_api.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +26 -29
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/index.js +1 -5
- package/esm5/index.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.js +29 -30
- package/esm5/lib/angular-ui-powerups.module.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/animations/index.js +1 -5
- package/esm5/lib/animations/index.js.map +1 -1
- package/esm5/lib/animations/slide-animations.js +0 -8
- package/esm5/lib/animations/slide-animations.js.map +1 -1
- package/esm5/lib/components/components.module.js +37 -35
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/disposable-component.js +7 -13
- package/esm5/lib/components/disposable-component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-input.component.js +95 -157
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +11 -22
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +11 -22
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +38 -61
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +19 -45
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/index.js +13 -16
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/noop/noop.component.js +9 -13
- package/esm5/lib/components/noop/noop.component.js.map +1 -1
- package/esm5/lib/components/resize-aware.component.js +21 -80
- package/esm5/lib/components/resize-aware.component.js.map +1 -1
- package/esm5/lib/components/scroll-container/scroll-container.component.js +19 -0
- package/esm5/lib/components/scroll-container/scroll-container.component.js.map +1 -0
- package/esm5/lib/components/scroll-container/scroll-container.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/scroll-container/scroll-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/types/bounds.class.js +3 -30
- package/esm5/lib/components/types/bounds.class.js.map +1 -1
- package/esm5/lib/components/types/dimension.class.js +0 -10
- package/esm5/lib/components/types/dimension.class.js.map +1 -1
- package/esm5/lib/components/types/point.class.js +2 -30
- package/esm5/lib/components/types/point.class.js.map +1 -1
- package/esm5/lib/directives/command.directive.js +37 -103
- package/esm5/lib/directives/command.directive.js.map +1 -1
- package/esm5/lib/directives/directives.module.js +25 -26
- package/esm5/lib/directives/directives.module.js.map +1 -1
- package/esm5/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm5/lib/directives/focus-binding.directive.js +50 -147
- package/esm5/lib/directives/focus-binding.directive.js.map +1 -1
- package/esm5/lib/directives/index.js +3 -7
- package/esm5/lib/directives/index.js.map +1 -1
- package/esm5/lib/interaction/abstract-interaction-context.js +7 -114
- package/esm5/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm5/lib/interaction/activity-ref.js +12 -109
- package/esm5/lib/interaction/activity-ref.js.map +1 -1
- package/esm5/lib/interaction/activity.js +12 -121
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/alert.js +0 -22
- package/esm5/lib/interaction/alert.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +64 -330
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +26 -79
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +12 -25
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +17 -72
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +13 -32
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +24 -117
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm5/lib/interaction/confirm.js +0 -16
- package/esm5/lib/interaction/confirm.js.map +1 -1
- package/esm5/lib/interaction/index.js +15 -24
- package/esm5/lib/interaction/index.js.map +1 -1
- package/esm5/lib/interaction/interaction-context.js +0 -50
- package/esm5/lib/interaction/interaction-context.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.js +38 -39
- package/esm5/lib/interaction/interaction.module.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/result.js +2 -23
- package/esm5/lib/interaction/result.js.map +1 -1
- package/esm5/lib/interaction/route-synchronisation-adapter.js +0 -16
- package/esm5/lib/interaction/route-synchronisation-adapter.js.map +1 -1
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +6 -73
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
- package/esm5/lib/interaction/services/interaction.service.js +33 -290
- package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +16 -41
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +14 -109
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js +1 -23
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +37 -115
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +16 -37
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
- package/esm5/lib/place/components/empty-state/empty-state.component.js +10 -20
- package/esm5/lib/place/components/empty-state/empty-state.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +17 -42
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +64 -314
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/route-animations.js +0 -12
- package/esm5/lib/place/components/place-outlet/route-animations.js.map +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +10 -14
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/guards/consolidated-param-map.js +17 -117
- package/esm5/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm5/lib/place/guards/noop-auth-guard.service.js +11 -26
- package/esm5/lib/place/guards/noop-auth-guard.service.js.map +1 -1
- package/esm5/lib/place/guards/place.guard.js +24 -172
- package/esm5/lib/place/guards/place.guard.js.map +1 -1
- package/esm5/lib/place/index.js +38 -46
- package/esm5/lib/place/index.js.map +1 -1
- package/esm5/lib/place/nav-item.js +0 -22
- package/esm5/lib/place/nav-item.js.map +1 -1
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js +11 -86
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +4 -34
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +4 -25
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +11 -110
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +12 -147
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +11 -126
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +7 -71
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +6 -49
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +11 -120
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +13 -106
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
- package/esm5/lib/place/navigation/session/navigating.js +6 -53
- package/esm5/lib/place/navigation/session/navigating.js.map +1 -1
- package/esm5/lib/place/navigation/session/navigation-context.js +0 -17
- package/esm5/lib/place/navigation/session/navigation-context.js.map +1 -1
- package/esm5/lib/place/navigation/session/navigation-session.js +39 -306
- package/esm5/lib/place/navigation/session/navigation-session.js.map +1 -1
- package/esm5/lib/place/navigation/session/pop-state-navigation.js +5 -33
- package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
- package/esm5/lib/place/place-component.js +30 -142
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place-config.js +0 -13
- package/esm5/lib/place/place-config.js.map +1 -1
- package/esm5/lib/place/place-definition.js +37 -219
- package/esm5/lib/place/place-definition.js.map +1 -1
- package/esm5/lib/place/place-history.js +11 -56
- package/esm5/lib/place/place-history.js.map +1 -1
- package/esm5/lib/place/place-router.js +59 -372
- package/esm5/lib/place/place-router.js.map +1 -1
- package/esm5/lib/place/place.decorator.js +3 -38
- package/esm5/lib/place/place.decorator.js.map +1 -1
- package/esm5/lib/place/place.module.js +37 -40
- package/esm5/lib/place/place.module.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/route/formatter.js +6 -60
- package/esm5/lib/place/route/formatter.js.map +1 -1
- package/esm5/lib/place/route/json-types.js +0 -12
- package/esm5/lib/place/route/json-types.js.map +1 -1
- package/esm5/lib/place/route/parameter-decorators.js +14 -133
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm5/lib/place/route/parameter-definition.class.js +21 -222
- package/esm5/lib/place/route/parameter-definition.class.js.map +1 -1
- package/esm5/lib/place/route/parameter-sanitiser.js +0 -18
- package/esm5/lib/place/route/parameter-sanitiser.js.map +1 -1
- package/esm5/lib/place/route/parameter-snapshot.js +0 -19
- package/esm5/lib/place/route/parameter-snapshot.js.map +1 -1
- package/esm5/lib/place/route/visit-sanitiser.js +4 -42
- package/esm5/lib/place/route/visit-sanitiser.js.map +1 -1
- package/esm5/lib/place/url-service.js +20 -119
- package/esm5/lib/place/url-service.js.map +1 -1
- package/esm5/lib/place/url-snapshot.js +15 -143
- package/esm5/lib/place/url-snapshot.js.map +1 -1
- package/esm5/lib/place/visit.js +14 -132
- package/esm5/lib/place/visit.js.map +1 -1
- package/esm5/public_api.js +6 -10
- package/esm5/public_api.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +866 -4507
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +1136 -6252
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +9 -9
- package/lib/components/index.d.ts +1 -0
- package/lib/components/resize-aware.component.d.ts +3 -3
- package/lib/components/scroll-container/scroll-container.component.d.ts +5 -0
- package/lib/directives/command.directive.d.ts +4 -2
- package/lib/directives/focus-binding.directive.d.ts +1 -1
- package/lib/interaction/activity-ref.d.ts +2 -2
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -2
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
- package/lib/interaction/services/interaction.service.d.ts +1 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -4
- package/lib/place/guards/consolidated-param-map.d.ts +1 -1
- package/lib/place/navigation/place-component-deactivation-handler.d.ts +2 -2
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +1 -1
- package/lib/place/navigation/session/navigation-session.d.ts +4 -4
- package/lib/place/place-component.d.ts +2 -2
- package/lib/place/place-router.d.ts +3 -3
- package/lib/place/route/formatter.d.ts +4 -3
- package/lib/place/route/parameter-definition.class.d.ts +2 -2
- package/package.json +10 -10
- package/schematics/place-routes/place-builder.js +4 -2
- package/schematics/place-routes/place-builder.js.map +1 -1
- package/schematics/place-routes/place-class-scanner.d.ts +3 -3
- package/schematics/place-routes/place-class-scanner.js +1 -1
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/place-routes/place-def.d.ts +9 -9
- /package/{styles → assets}/styles.scss +0 -0
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __awaiter, __decorate, __extends, __generator, __metadata, __read, __spread } from "tslib";
|
|
6
2
|
import { Location } from '@angular/common';
|
|
7
3
|
import { Injectable } from '@angular/core';
|
|
8
|
-
import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router } from '@angular/router';
|
|
4
|
+
import { ActivatedRoute, NavigationCancel, NavigationEnd, NavigationError, NavigationExtras, NavigationStart, Router } from '@angular/router';
|
|
9
5
|
import { assert, DebugContext, Dsl, GarbageCollector, lang, Logger, MutableListModel, MutableValueModel } from '@coolon/pectin';
|
|
10
6
|
import { InteractionService } from '../interaction/services/interaction.service';
|
|
11
7
|
import { NavigatingDuringInteraction } from './navigation/session/interactions/navigating-during-interaction';
|
|
@@ -23,7 +19,7 @@ import * as i3 from "../interaction/services/interaction.service";
|
|
|
23
19
|
import * as i4 from "./url-service";
|
|
24
20
|
import * as i5 from "./place-history";
|
|
25
21
|
var PlaceRouter = /** @class */ (function (_super) {
|
|
26
|
-
|
|
22
|
+
__extends(PlaceRouter, _super);
|
|
27
23
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
28
24
|
var _this = _super.call(this) || this;
|
|
29
25
|
_this.angularRouter = angularRouter;
|
|
@@ -36,45 +32,23 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
36
32
|
_this.sessionFinishedJobs = [];
|
|
37
33
|
_this.routerInteractionAdapter = interactionService.registerPlaceRouter(_this);
|
|
38
34
|
// TODO: Make this an interface and use 'this' instead.
|
|
39
|
-
_this.navigationContext = new NavigationContext.Impl(_this.urlService, _this.routerInteractionAdapter, (
|
|
40
|
-
* @param {?} urlSnapshot
|
|
41
|
-
* @param {?} options
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
function (urlSnapshot, options) {
|
|
35
|
+
_this.navigationContext = new NavigationContext.Impl(_this.urlService, _this.routerInteractionAdapter, function (urlSnapshot, options) {
|
|
45
36
|
return _this.navigateByUrl(urlSnapshot, options);
|
|
46
|
-
}
|
|
47
|
-
* @param {?} state
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
function (state) {
|
|
37
|
+
}, function (state) {
|
|
51
38
|
_this.transitionTo(state);
|
|
52
|
-
}
|
|
53
|
-
* @param {?} visits
|
|
54
|
-
* @return {?}
|
|
55
|
-
*/
|
|
56
|
-
function (visits) {
|
|
39
|
+
}, function (visits) {
|
|
57
40
|
_this.routingSessionFinished(visits);
|
|
58
|
-
})
|
|
41
|
+
});
|
|
59
42
|
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
60
43
|
_this.navigationInProgress = chain(_this.navigationSessionModel).isNotNil();
|
|
61
|
-
|
|
62
|
-
var idleStateName = chain(_this.interactionService.active).map((/**
|
|
63
|
-
* @param {?} active
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
function (active) { return active ? 'IdleDuringInteraction' : 'Idle'; }));
|
|
44
|
+
var idleStateName = chain(_this.interactionService.active).map(function (active) { return active ? 'IdleDuringInteraction' : 'Idle'; });
|
|
67
45
|
_this.navigationSessionName = chain(_this.navigationSessionModel)
|
|
68
46
|
.pluck('name')
|
|
69
47
|
.otherwise(idleStateName);
|
|
70
48
|
DebugContext.tag(_this._activeVisits, "PlaceRouter.activeVisits");
|
|
71
49
|
_this.activeVisitsByPlaceDefinition = chain(_this._activeVisits).indexBy('placeDefinition');
|
|
72
50
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
73
|
-
angularRouter.events.subscribe((
|
|
74
|
-
* @param {?} event
|
|
75
|
-
* @return {?}
|
|
76
|
-
*/
|
|
77
|
-
function (event) {
|
|
51
|
+
angularRouter.events.subscribe(function (event) {
|
|
78
52
|
// Routing event sequence
|
|
79
53
|
// ======================
|
|
80
54
|
// NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session
|
|
@@ -106,59 +80,35 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
106
80
|
_this.onRouterCancelled(event);
|
|
107
81
|
// console.log(`<--- NavigationCancel[${event.id}]: ${event.url}`);
|
|
108
82
|
}
|
|
109
|
-
})
|
|
83
|
+
});
|
|
110
84
|
// The router needs to know about url changes and in some cases they are the only way the router can know if
|
|
111
85
|
// the back button was clicked.
|
|
112
|
-
angularLocation.onUrlChange((
|
|
113
|
-
* @param {?} url
|
|
114
|
-
* @return {?}
|
|
115
|
-
*/
|
|
116
|
-
function (url) { return _this.onUrlChanged(url); }));
|
|
86
|
+
angularLocation.onUrlChange(function (url) { return _this.onUrlChanged(url); });
|
|
117
87
|
return _this;
|
|
118
88
|
}
|
|
119
89
|
Object.defineProperty(PlaceRouter.prototype, "navigationSession", {
|
|
120
|
-
get:
|
|
121
|
-
* @return {?}
|
|
122
|
-
*/
|
|
123
|
-
function () {
|
|
90
|
+
get: function () {
|
|
124
91
|
return this.navigationSessionModel.value;
|
|
125
92
|
},
|
|
126
93
|
enumerable: true,
|
|
127
94
|
configurable: true
|
|
128
95
|
});
|
|
129
96
|
Object.defineProperty(PlaceRouter.prototype, "currentSession", {
|
|
130
|
-
get:
|
|
131
|
-
* @return {?}
|
|
132
|
-
*/
|
|
133
|
-
function () {
|
|
97
|
+
get: function () {
|
|
134
98
|
return this.navigationSessionModel.value;
|
|
135
99
|
},
|
|
136
100
|
enumerable: true,
|
|
137
101
|
configurable: true
|
|
138
102
|
});
|
|
139
103
|
// @Trace()
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @param {?} event
|
|
143
|
-
* @return {?}
|
|
144
|
-
*/
|
|
145
|
-
PlaceRouter.prototype.onPopState =
|
|
146
|
-
// @Trace()
|
|
147
|
-
/**
|
|
148
|
-
* @param {?} event
|
|
149
|
-
* @return {?}
|
|
150
|
-
*/
|
|
151
|
-
function (event) {
|
|
104
|
+
PlaceRouter.prototype.onPopState = function (event) {
|
|
152
105
|
assert.isTruthy(event.navigationTrigger === 'popstate');
|
|
153
106
|
if (this.currentSession) {
|
|
154
107
|
this.currentSession.onPopState(event);
|
|
155
108
|
}
|
|
156
109
|
else {
|
|
157
|
-
/** @type {?} */
|
|
158
110
|
var poppedHistoryUrl = event.url;
|
|
159
|
-
/** @type {?} */
|
|
160
111
|
var currentRouterUrl = this.urlService.getCurrentRouterUrl();
|
|
161
|
-
/** @type {?} */
|
|
162
112
|
var session = this.interactionService.isActive() ?
|
|
163
113
|
new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :
|
|
164
114
|
new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);
|
|
@@ -166,20 +116,8 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
166
116
|
}
|
|
167
117
|
};
|
|
168
118
|
// @Trace()
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @param {?} event
|
|
172
|
-
* @return {?}
|
|
173
|
-
*/
|
|
174
|
-
PlaceRouter.prototype.onRouterStarted =
|
|
175
|
-
// @Trace()
|
|
176
|
-
/**
|
|
177
|
-
* @param {?} event
|
|
178
|
-
* @return {?}
|
|
179
|
-
*/
|
|
180
|
-
function (event) {
|
|
119
|
+
PlaceRouter.prototype.onRouterStarted = function (event) {
|
|
181
120
|
assert.isFalsey(event.navigationTrigger === 'popstate');
|
|
182
|
-
/** @type {?} */
|
|
183
121
|
var inInteraction = this.interactionService.isActive();
|
|
184
122
|
if (this.currentSession) {
|
|
185
123
|
this.currentSession.onRouterStarted(event);
|
|
@@ -189,18 +127,7 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
189
127
|
}
|
|
190
128
|
};
|
|
191
129
|
// @Trace()
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* @param {?} newUrl
|
|
195
|
-
* @return {?}
|
|
196
|
-
*/
|
|
197
|
-
PlaceRouter.prototype.onUrlChanged =
|
|
198
|
-
// @Trace()
|
|
199
|
-
/**
|
|
200
|
-
* @param {?} newUrl
|
|
201
|
-
* @return {?}
|
|
202
|
-
*/
|
|
203
|
-
function (newUrl) {
|
|
130
|
+
PlaceRouter.prototype.onUrlChanged = function (newUrl) {
|
|
204
131
|
// the back button can trigger a url change without a navigation session in progress so we
|
|
205
132
|
// console.log(`---> Url Changed ${newUrl}`);
|
|
206
133
|
if (this.currentSession) {
|
|
@@ -212,72 +139,25 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
212
139
|
// console.log(`<--- Url Changed`);
|
|
213
140
|
};
|
|
214
141
|
// @Trace()
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @param {?} event
|
|
218
|
-
* @return {?}
|
|
219
|
-
*/
|
|
220
|
-
PlaceRouter.prototype.onRouterCancelled =
|
|
221
|
-
// @Trace()
|
|
222
|
-
/**
|
|
223
|
-
* @param {?} event
|
|
224
|
-
* @return {?}
|
|
225
|
-
*/
|
|
226
|
-
function (event) {
|
|
142
|
+
PlaceRouter.prototype.onRouterCancelled = function (event) {
|
|
227
143
|
this.currentSession.onRouterCancelled(event);
|
|
228
144
|
};
|
|
229
145
|
// @Trace()
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* @param {?} event
|
|
233
|
-
* @return {?}
|
|
234
|
-
*/
|
|
235
|
-
PlaceRouter.prototype.onRouterError =
|
|
236
|
-
// @Trace()
|
|
237
|
-
/**
|
|
238
|
-
* @param {?} event
|
|
239
|
-
* @return {?}
|
|
240
|
-
*/
|
|
241
|
-
function (event) {
|
|
146
|
+
PlaceRouter.prototype.onRouterError = function (event) {
|
|
242
147
|
this.currentSession.onRouterError(event);
|
|
243
148
|
};
|
|
244
149
|
// @Trace()
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* @param {?} event
|
|
248
|
-
* @return {?}
|
|
249
|
-
*/
|
|
250
|
-
PlaceRouter.prototype.onRouterEnd =
|
|
251
|
-
// @Trace()
|
|
252
|
-
/**
|
|
253
|
-
* @param {?} event
|
|
254
|
-
* @return {?}
|
|
255
|
-
*/
|
|
256
|
-
function (event) {
|
|
150
|
+
PlaceRouter.prototype.onRouterEnd = function (event) {
|
|
257
151
|
this.currentSession.onRouterEnd(event);
|
|
258
152
|
};
|
|
259
|
-
|
|
260
|
-
* @param {?} visit
|
|
261
|
-
* @param {?=} options
|
|
262
|
-
* @return {?}
|
|
263
|
-
*/
|
|
264
|
-
PlaceRouter.prototype.navigate = /**
|
|
265
|
-
* @param {?} visit
|
|
266
|
-
* @param {?=} options
|
|
267
|
-
* @return {?}
|
|
268
|
-
*/
|
|
269
|
-
function (visit, options) {
|
|
153
|
+
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
270
154
|
var _this = this;
|
|
271
|
-
return this.doNavigation(visit, (
|
|
272
|
-
* @param {?} router
|
|
273
|
-
* @return {?}
|
|
274
|
-
*/
|
|
275
|
-
function (router) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
276
156
|
var commands;
|
|
277
|
-
return
|
|
157
|
+
return __generator(this, function (_a) {
|
|
278
158
|
switch (_a.label) {
|
|
279
159
|
case 0:
|
|
280
|
-
commands =
|
|
160
|
+
commands = __spread([
|
|
281
161
|
visit.placeDefinition.path
|
|
282
162
|
], this.createRouteParameters(visit));
|
|
283
163
|
return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
@@ -288,26 +168,13 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
288
168
|
return [2 /*return*/];
|
|
289
169
|
}
|
|
290
170
|
});
|
|
291
|
-
}); })
|
|
171
|
+
}); });
|
|
292
172
|
};
|
|
293
173
|
// @Trace()
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
* @param {?} visit
|
|
297
|
-
* @param {?} runNavigationCommands
|
|
298
|
-
* @return {?}
|
|
299
|
-
*/
|
|
300
|
-
PlaceRouter.prototype.doNavigation =
|
|
301
|
-
// @Trace()
|
|
302
|
-
/**
|
|
303
|
-
* @param {?} visit
|
|
304
|
-
* @param {?} runNavigationCommands
|
|
305
|
-
* @return {?}
|
|
306
|
-
*/
|
|
307
|
-
function (visit, runNavigationCommands) {
|
|
308
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
174
|
+
PlaceRouter.prototype.doNavigation = function (visit, runNavigationCommands) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
309
176
|
var navigation;
|
|
310
|
-
return
|
|
177
|
+
return __generator(this, function (_a) {
|
|
311
178
|
switch (_a.label) {
|
|
312
179
|
case 0:
|
|
313
180
|
if (this.navigationInProgress.value) {
|
|
@@ -335,101 +202,45 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
335
202
|
});
|
|
336
203
|
});
|
|
337
204
|
};
|
|
338
|
-
|
|
339
|
-
* @param {?} urlSnapshot
|
|
340
|
-
* @param {?=} navigationExtras
|
|
341
|
-
* @return {?}
|
|
342
|
-
*/
|
|
343
|
-
PlaceRouter.prototype.navigateByUrl = /**
|
|
344
|
-
* @param {?} urlSnapshot
|
|
345
|
-
* @param {?=} navigationExtras
|
|
346
|
-
* @return {?}
|
|
347
|
-
*/
|
|
348
|
-
function (urlSnapshot, navigationExtras) {
|
|
205
|
+
PlaceRouter.prototype.navigateByUrl = function (urlSnapshot, navigationExtras) {
|
|
349
206
|
// console.log(`### navigationByUrl -> ${urlSnapshot.urlTree.toString()}`);
|
|
350
207
|
return this.angularRouter.navigateByUrl(urlSnapshot.urlTree, navigationExtras);
|
|
351
208
|
};
|
|
352
209
|
Object.defineProperty(PlaceRouter.prototype, "activeVisits", {
|
|
353
|
-
get:
|
|
354
|
-
* @return {?}
|
|
355
|
-
*/
|
|
356
|
-
function () {
|
|
210
|
+
get: function () {
|
|
357
211
|
return this._activeVisits.readonly;
|
|
358
212
|
},
|
|
359
213
|
enumerable: true,
|
|
360
214
|
configurable: true
|
|
361
215
|
});
|
|
362
216
|
// @Trace()
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
* @param {?} previous
|
|
366
|
-
* @param {?} next
|
|
367
|
-
* @return {?}
|
|
368
|
-
*/
|
|
369
|
-
PlaceRouter.prototype.pushVisitChangesToRoute =
|
|
370
|
-
// @Trace()
|
|
371
|
-
/**
|
|
372
|
-
* @param {?} previous
|
|
373
|
-
* @param {?} next
|
|
374
|
-
* @return {?}
|
|
375
|
-
*/
|
|
376
|
-
function (previous, next) {
|
|
377
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
217
|
+
PlaceRouter.prototype.pushVisitChangesToRoute = function (previous, next) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
378
219
|
var _this = this;
|
|
379
|
-
return
|
|
220
|
+
return __generator(this, function (_a) {
|
|
380
221
|
// we have to push to history so our remember sanitisers don't pick up the previous value
|
|
381
222
|
// when it's been cleared by the user.
|
|
382
223
|
this.placeHistory.add(next);
|
|
383
224
|
// FIXME: no route id -> route id duplicates route parameters
|
|
384
225
|
if (next.hasRoutingChangedFrom(previous)) {
|
|
385
|
-
return [2 /*return*/, this.doNavigation(next, (
|
|
386
|
-
* @param {?} router
|
|
387
|
-
* @return {?}
|
|
388
|
-
*/
|
|
389
|
-
function (router) {
|
|
390
|
-
/** @type {?} */
|
|
226
|
+
return [2 /*return*/, this.doNavigation(next, function (router) {
|
|
391
227
|
var urlSnapshot = _this.urlService.parseUrl(_this.angularRouter.routerState.snapshot.url).updateVisitSegments(next);
|
|
392
228
|
// console.log('### Push Changes to route Redirect', { commands: urlSnapshot.url });
|
|
393
229
|
return _this.navigateByUrl(urlSnapshot);
|
|
394
|
-
})
|
|
230
|
+
})];
|
|
395
231
|
}
|
|
396
232
|
return [2 /*return*/];
|
|
397
233
|
});
|
|
398
234
|
});
|
|
399
235
|
};
|
|
400
|
-
|
|
401
|
-
* @private
|
|
402
|
-
* @param {?} currentRouterUrl
|
|
403
|
-
* @return {?}
|
|
404
|
-
*/
|
|
405
|
-
PlaceRouter.prototype.createNavigationSession = /**
|
|
406
|
-
* @private
|
|
407
|
-
* @param {?} currentRouterUrl
|
|
408
|
-
* @return {?}
|
|
409
|
-
*/
|
|
410
|
-
function (currentRouterUrl) {
|
|
411
|
-
/** @type {?} */
|
|
236
|
+
PlaceRouter.prototype.createNavigationSession = function (currentRouterUrl) {
|
|
412
237
|
var inInteraction = this.interactionService.isActive();
|
|
413
238
|
return inInteraction ?
|
|
414
239
|
new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :
|
|
415
240
|
new Navigating(this.navigationContext, currentRouterUrl);
|
|
416
241
|
};
|
|
417
242
|
// @Trace()
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* @protected
|
|
421
|
-
* @param {?} next
|
|
422
|
-
* @return {?}
|
|
423
|
-
*/
|
|
424
|
-
PlaceRouter.prototype.transitionTo =
|
|
425
|
-
// @Trace()
|
|
426
|
-
/**
|
|
427
|
-
* @protected
|
|
428
|
-
* @param {?} next
|
|
429
|
-
* @return {?}
|
|
430
|
-
*/
|
|
431
|
-
function (next) {
|
|
432
|
-
/** @type {?} */
|
|
243
|
+
PlaceRouter.prototype.transitionTo = function (next) {
|
|
433
244
|
var previous = this.navigationSessionModel.value;
|
|
434
245
|
assert.isTruthy(next !== previous);
|
|
435
246
|
Logger.get(this).info("### Router State Transition: " + (previous ? previous.toString() : 'null') + " -> " + next.toString());
|
|
@@ -440,56 +251,24 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
440
251
|
next.notifyActive();
|
|
441
252
|
};
|
|
442
253
|
// @Trace()
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* @private
|
|
446
|
-
* @param {?} visits
|
|
447
|
-
* @return {?}
|
|
448
|
-
*/
|
|
449
|
-
PlaceRouter.prototype.routingSessionFinished =
|
|
450
|
-
// @Trace()
|
|
451
|
-
/**
|
|
452
|
-
* @private
|
|
453
|
-
* @param {?} visits
|
|
454
|
-
* @return {?}
|
|
455
|
-
*/
|
|
456
|
-
function (visits) {
|
|
254
|
+
PlaceRouter.prototype.routingSessionFinished = function (visits) {
|
|
457
255
|
var _this = this;
|
|
458
256
|
if (visits && visits.length > 0) {
|
|
459
257
|
assert.isTruthy(this.navigationInProgress.value);
|
|
460
|
-
visits.forEach((
|
|
461
|
-
* @param {?} v
|
|
462
|
-
* @return {?}
|
|
463
|
-
*/
|
|
464
|
-
function (v) { return _this.placeHistory.add(v); }));
|
|
258
|
+
visits.forEach(function (v) { return _this.placeHistory.add(v); });
|
|
465
259
|
// We update the active visits before we finish the session so the
|
|
466
260
|
// place outlets can ignore the incoming changes until things are
|
|
467
261
|
// settled. TODO: can we removed the event'ness here and just do a push?
|
|
468
262
|
this._activeVisits.value = visits;
|
|
469
263
|
}
|
|
470
|
-
/** @type {?} */
|
|
471
264
|
var session = this.currentSession;
|
|
472
265
|
session.dispose();
|
|
473
266
|
this.navigationSessionModel.value = null;
|
|
474
267
|
console.log("### Router Session Finished (was " + session.toString() + ")");
|
|
475
|
-
this.sessionFinishedJobs.forEach((
|
|
476
|
-
* @param {?} job
|
|
477
|
-
* @return {?}
|
|
478
|
-
*/
|
|
479
|
-
function (job) { return job(); }));
|
|
268
|
+
this.sessionFinishedJobs.forEach(function (job) { return job(); });
|
|
480
269
|
this.sessionFinishedJobs = [];
|
|
481
270
|
};
|
|
482
|
-
|
|
483
|
-
* @private
|
|
484
|
-
* @param {?} func
|
|
485
|
-
* @return {?}
|
|
486
|
-
*/
|
|
487
|
-
PlaceRouter.prototype.runAfterRoutingSessionFinishes = /**
|
|
488
|
-
* @private
|
|
489
|
-
* @param {?} func
|
|
490
|
-
* @return {?}
|
|
491
|
-
*/
|
|
492
|
-
function (func) {
|
|
271
|
+
PlaceRouter.prototype.runAfterRoutingSessionFinishes = function (func) {
|
|
493
272
|
assert.isTruthy(this.navigationInProgress);
|
|
494
273
|
this.sessionFinishedJobs.push(func);
|
|
495
274
|
};
|
|
@@ -499,81 +278,34 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
499
278
|
* the app directly and we don't get to ask.
|
|
500
279
|
*/
|
|
501
280
|
// @Trace()
|
|
502
|
-
|
|
503
|
-
* Sync's the current interaction state with the URL. We need to push something in the URL in order
|
|
504
|
-
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
505
|
-
* the app directly and we don't get to ask.
|
|
506
|
-
* @return {?}
|
|
507
|
-
*/
|
|
508
|
-
// @Trace()
|
|
509
|
-
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = /**
|
|
510
|
-
* Sync's the current interaction state with the URL. We need to push something in the URL in order
|
|
511
|
-
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
512
|
-
* the app directly and we don't get to ask.
|
|
513
|
-
* @return {?}
|
|
514
|
-
*/
|
|
515
|
-
// @Trace()
|
|
516
|
-
function () {
|
|
281
|
+
PlaceRouter.prototype.syncInteractionContextIdsWithRouter = function () {
|
|
517
282
|
var _this = this;
|
|
518
283
|
if (this.navigationSession) {
|
|
519
284
|
// console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
|
|
520
|
-
/** @type {?} */
|
|
521
285
|
var session = this.navigationSession;
|
|
522
|
-
return new Promise((
|
|
523
|
-
|
|
524
|
-
* @param {?} reject
|
|
525
|
-
* @return {?}
|
|
526
|
-
*/
|
|
527
|
-
function (resolve, reject) {
|
|
528
|
-
_this.runAfterRoutingSessionFinishes((/**
|
|
529
|
-
* @return {?}
|
|
530
|
-
*/
|
|
531
|
-
function () {
|
|
286
|
+
return new Promise(function (resolve, reject) {
|
|
287
|
+
_this.runAfterRoutingSessionFinishes(function () {
|
|
532
288
|
_this.runAfterRoutingSessionFinishes(resolve);
|
|
533
|
-
/** @type {?} */
|
|
534
289
|
var syncSession = new SynchroniseInteractionContextIdsWithRoute(_this.navigationContext, _this.urlService.getCurrentRouterUrl(), false);
|
|
535
290
|
_this.transitionTo(syncSession);
|
|
536
|
-
})
|
|
537
|
-
})
|
|
291
|
+
});
|
|
292
|
+
});
|
|
538
293
|
}
|
|
539
294
|
else {
|
|
540
|
-
return new Promise(((
|
|
541
|
-
* @param {?} resolve
|
|
542
|
-
* @param {?} reject
|
|
543
|
-
* @return {?}
|
|
544
|
-
*/
|
|
545
|
-
function (resolve, reject) {
|
|
295
|
+
return new Promise((function (resolve, reject) {
|
|
546
296
|
// console.log(`No navigation in progress, starting synchronisation job`);
|
|
547
297
|
_this.runAfterRoutingSessionFinishes(resolve);
|
|
548
|
-
/** @type {?} */
|
|
549
298
|
var session = new SynchroniseInteractionContextIdsWithRoute(_this.navigationContext, _this.urlService.getCurrentRouterUrl(), false);
|
|
550
299
|
_this.transitionTo(session);
|
|
551
|
-
}))
|
|
300
|
+
}));
|
|
552
301
|
}
|
|
553
302
|
};
|
|
554
|
-
|
|
555
|
-
* @private
|
|
556
|
-
* @param {?} visit
|
|
557
|
-
* @return {?}
|
|
558
|
-
*/
|
|
559
|
-
PlaceRouter.prototype.createRouteParameters = /**
|
|
560
|
-
* @private
|
|
561
|
-
* @param {?} visit
|
|
562
|
-
* @return {?}
|
|
563
|
-
*/
|
|
564
|
-
function (visit) {
|
|
565
|
-
/** @type {?} */
|
|
303
|
+
PlaceRouter.prototype.createRouteParameters = function (visit) {
|
|
566
304
|
var def = visit.placeDefinition;
|
|
567
305
|
return visit.hasRouteId() ?
|
|
568
306
|
[def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :
|
|
569
307
|
[def.getFormattedRouteParameters(visit)];
|
|
570
308
|
};
|
|
571
|
-
PlaceRouter.decorators = [
|
|
572
|
-
{ type: Injectable, args: [{
|
|
573
|
-
providedIn: 'root'
|
|
574
|
-
},] }
|
|
575
|
-
];
|
|
576
|
-
/** @nocollapse */
|
|
577
309
|
PlaceRouter.ctorParameters = function () { return [
|
|
578
310
|
{ type: Router },
|
|
579
311
|
{ type: Location },
|
|
@@ -581,63 +313,18 @@ var PlaceRouter = /** @class */ (function (_super) {
|
|
|
581
313
|
{ type: UrlService },
|
|
582
314
|
{ type: PlaceHistory }
|
|
583
315
|
]; };
|
|
584
|
-
|
|
316
|
+
PlaceRouter.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.Location), i0.ɵɵinject(i3.InteractionService), i0.ɵɵinject(i4.UrlService), i0.ɵɵinject(i5.PlaceHistory)); }, token: PlaceRouter, providedIn: "root" });
|
|
317
|
+
PlaceRouter = __decorate([
|
|
318
|
+
Injectable({
|
|
319
|
+
providedIn: 'root'
|
|
320
|
+
}),
|
|
321
|
+
__metadata("design:paramtypes", [Router,
|
|
322
|
+
Location,
|
|
323
|
+
InteractionService,
|
|
324
|
+
UrlService,
|
|
325
|
+
PlaceHistory])
|
|
326
|
+
], PlaceRouter);
|
|
585
327
|
return PlaceRouter;
|
|
586
328
|
}(GarbageCollector));
|
|
587
329
|
export { PlaceRouter };
|
|
588
|
-
if (false) {
|
|
589
|
-
/** @type {?} */
|
|
590
|
-
PlaceRouter.prototype.navigationSessionModel;
|
|
591
|
-
/** @type {?} */
|
|
592
|
-
PlaceRouter.prototype.navigationInProgress;
|
|
593
|
-
/** @type {?} */
|
|
594
|
-
PlaceRouter.prototype.navigationSessionName;
|
|
595
|
-
/**
|
|
596
|
-
* @type {?}
|
|
597
|
-
* @private
|
|
598
|
-
*/
|
|
599
|
-
PlaceRouter.prototype.navigationContext;
|
|
600
|
-
/**
|
|
601
|
-
* @type {?}
|
|
602
|
-
* @private
|
|
603
|
-
*/
|
|
604
|
-
PlaceRouter.prototype._activeVisits;
|
|
605
|
-
/** @type {?} */
|
|
606
|
-
PlaceRouter.prototype.activeVisitsByPlaceDefinition;
|
|
607
|
-
/**
|
|
608
|
-
* @type {?}
|
|
609
|
-
* @private
|
|
610
|
-
*/
|
|
611
|
-
PlaceRouter.prototype.routerInteractionAdapter;
|
|
612
|
-
/**
|
|
613
|
-
* @type {?}
|
|
614
|
-
* @private
|
|
615
|
-
*/
|
|
616
|
-
PlaceRouter.prototype.sessionFinishedJobs;
|
|
617
|
-
/**
|
|
618
|
-
* @type {?}
|
|
619
|
-
* @private
|
|
620
|
-
*/
|
|
621
|
-
PlaceRouter.prototype.angularRouter;
|
|
622
|
-
/**
|
|
623
|
-
* @type {?}
|
|
624
|
-
* @private
|
|
625
|
-
*/
|
|
626
|
-
PlaceRouter.prototype.angularLocation;
|
|
627
|
-
/**
|
|
628
|
-
* @type {?}
|
|
629
|
-
* @private
|
|
630
|
-
*/
|
|
631
|
-
PlaceRouter.prototype.interactionService;
|
|
632
|
-
/**
|
|
633
|
-
* @type {?}
|
|
634
|
-
* @private
|
|
635
|
-
*/
|
|
636
|
-
PlaceRouter.prototype.urlService;
|
|
637
|
-
/**
|
|
638
|
-
* @type {?}
|
|
639
|
-
* @private
|
|
640
|
-
*/
|
|
641
|
-
PlaceRouter.prototype.placeHistory;
|
|
642
|
-
}
|
|
643
330
|
//# sourceMappingURL=place-router.js.map
|