@coolon/angular-ui-powerups 0.0.135 → 1.0.0-alpha.12
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 +303 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +1142 -6275
- 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.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +1 -5
- package/esm2015/coolon-angular-ui-powerups.js.map +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 +39 -39
- 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 -17
- package/esm2015/lib/components/index.js.map +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 +12 -18
- package/esm2015/lib/components/scroll-container/scroll-container.component.js.map +1 -1
- 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 +1 -5
- 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 +36 -37
- 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 -17
- 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 +10 -20
- package/esm5/lib/components/scroll-container/scroll-container.component.js.map +1 -1
- 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 +861 -4526
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +1129 -6274
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +9 -9
- package/lib/components/resize-aware.component.d.ts +3 -3
- 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,8 +1,4 @@
|
|
|
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, __extends, __generator } from "tslib";
|
|
6
2
|
import { EventCleanUpSession } from './event-clean-up-session';
|
|
7
3
|
/**
|
|
8
4
|
* This state handles the scenario where a pop state triggered and interaction and the user clickeb back a second time to cancel it.
|
|
@@ -15,19 +11,8 @@ import { EventCleanUpSession } from './event-clean-up-session';
|
|
|
15
11
|
* -> PopState
|
|
16
12
|
* -> NavigationCancel
|
|
17
13
|
*/
|
|
18
|
-
var /**
|
|
19
|
-
|
|
20
|
-
* The sequence of routing events/state transitions is as follows.
|
|
21
|
-
* -> Idle -> PopStateTransition (poppedHistoryUrl == page to go to, startingUrl = page to stay on )
|
|
22
|
-
* -> confirm dialog shown.
|
|
23
|
-
* -> click back
|
|
24
|
-
* -> PopStateTransition -> CancelledDuringBackButtonNavigationInteraction(trigger url is the page before the popped history url)
|
|
25
|
-
* -> NavigationCancel (for the previous back)
|
|
26
|
-
* -> PopState
|
|
27
|
-
* -> NavigationCancel
|
|
28
|
-
*/
|
|
29
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes = /** @class */ (function (_super) {
|
|
30
|
-
tslib_1.__extends(WaitUntilPopStateDuringCanDeactivateInteractionFinishes, _super);
|
|
14
|
+
var WaitUntilPopStateDuringCanDeactivateInteractionFinishes = /** @class */ (function (_super) {
|
|
15
|
+
__extends(WaitUntilPopStateDuringCanDeactivateInteractionFinishes, _super);
|
|
31
16
|
function WaitUntilPopStateDuringCanDeactivateInteractionFinishes(context, startingUrl, locationChangeTriggerUrl, poppedHistoryUrl) {
|
|
32
17
|
var _this = _super.call(this, context, startingUrl) || this;
|
|
33
18
|
_this.locationChangeTriggerUrl = locationChangeTriggerUrl;
|
|
@@ -39,33 +24,11 @@ WaitUntilPopStateDuringCanDeactivateInteractionFinishes = /** @class */ (functio
|
|
|
39
24
|
return _this;
|
|
40
25
|
}
|
|
41
26
|
// @Trace()
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @param {?} event
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterStarted =
|
|
48
|
-
// @Trace()
|
|
49
|
-
/**
|
|
50
|
-
* @param {?} event
|
|
51
|
-
* @return {?}
|
|
52
|
-
*/
|
|
53
|
-
function (event) {
|
|
27
|
+
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterStarted = function (event) {
|
|
54
28
|
this.ignore(event);
|
|
55
29
|
};
|
|
56
30
|
// @Trace()
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @param {?} event
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterCancelled =
|
|
63
|
-
// @Trace()
|
|
64
|
-
/**
|
|
65
|
-
* @param {?} event
|
|
66
|
-
* @return {?}
|
|
67
|
-
*/
|
|
68
|
-
function (event) {
|
|
31
|
+
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterCancelled = function (event) {
|
|
69
32
|
if (!this.firstCancelHandled) {
|
|
70
33
|
this.firstCancelHandled = true;
|
|
71
34
|
this.parentPageUrl = event.url;
|
|
@@ -73,7 +36,6 @@ WaitUntilPopStateDuringCanDeactivateInteractionFinishes = /** @class */ (functio
|
|
|
73
36
|
}
|
|
74
37
|
else {
|
|
75
38
|
if (this.popStateHandled) {
|
|
76
|
-
/** @type {?} */
|
|
77
39
|
var grandParentPageUrl = event.url;
|
|
78
40
|
this.repairBrowserHistoryAndUrlAfterGuardCancellation(grandParentPageUrl, this.parentPageUrl);
|
|
79
41
|
// we've had one more back click than normal so we need to add our initial url back in as well.
|
|
@@ -83,104 +45,27 @@ WaitUntilPopStateDuringCanDeactivateInteractionFinishes = /** @class */ (functio
|
|
|
83
45
|
}
|
|
84
46
|
};
|
|
85
47
|
// @Trace()
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @param {?} event
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterEnd =
|
|
92
|
-
// @Trace()
|
|
93
|
-
/**
|
|
94
|
-
* @param {?} event
|
|
95
|
-
* @return {?}
|
|
96
|
-
*/
|
|
97
|
-
function (event) {
|
|
48
|
+
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterEnd = function (event) {
|
|
98
49
|
this.ignore(event);
|
|
99
50
|
};
|
|
100
51
|
// @Trace()
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @param {?} event
|
|
104
|
-
* @return {?}
|
|
105
|
-
*/
|
|
106
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterError =
|
|
107
|
-
// @Trace()
|
|
108
|
-
/**
|
|
109
|
-
* @param {?} event
|
|
110
|
-
* @return {?}
|
|
111
|
-
*/
|
|
112
|
-
function (event) {
|
|
52
|
+
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onRouterError = function (event) {
|
|
113
53
|
void this.ignore(event);
|
|
114
54
|
};
|
|
115
55
|
// @Trace()
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @param {?} event
|
|
119
|
-
* @return {?}
|
|
120
|
-
*/
|
|
121
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onPopState =
|
|
122
|
-
// @Trace()
|
|
123
|
-
/**
|
|
124
|
-
* @param {?} event
|
|
125
|
-
* @return {?}
|
|
126
|
-
*/
|
|
127
|
-
function (event) {
|
|
56
|
+
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.onPopState = function (event) {
|
|
128
57
|
this.popStateHandled = true;
|
|
129
58
|
this.popStateEventUrl = event.url;
|
|
130
59
|
this.ignore(event);
|
|
131
60
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
* @param {?} nextUrl
|
|
136
|
-
* @return {?}
|
|
137
|
-
*/
|
|
138
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.canDeactivatePlace = /**
|
|
139
|
-
* @param {?} component
|
|
140
|
-
* @param {?} currentUrl
|
|
141
|
-
* @param {?} nextUrl
|
|
142
|
-
* @return {?}
|
|
143
|
-
*/
|
|
144
|
-
function (component, currentUrl, nextUrl) {
|
|
145
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
146
|
-
return tslib_1.__generator(this, function (_a) {
|
|
61
|
+
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.canDeactivatePlace = function (component, currentUrl, nextUrl) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
63
|
+
return __generator(this, function (_a) {
|
|
147
64
|
return [2 /*return*/, false];
|
|
148
65
|
});
|
|
149
66
|
});
|
|
150
67
|
};
|
|
151
68
|
return WaitUntilPopStateDuringCanDeactivateInteractionFinishes;
|
|
152
69
|
}(EventCleanUpSession));
|
|
153
|
-
/**
|
|
154
|
-
* This state handles the scenario where a pop state triggered and interaction and the user clickeb back a second time to cancel it.
|
|
155
|
-
* The sequence of routing events/state transitions is as follows.
|
|
156
|
-
* -> Idle -> PopStateTransition (poppedHistoryUrl == page to go to, startingUrl = page to stay on )
|
|
157
|
-
* -> confirm dialog shown.
|
|
158
|
-
* -> click back
|
|
159
|
-
* -> PopStateTransition -> CancelledDuringBackButtonNavigationInteraction(trigger url is the page before the popped history url)
|
|
160
|
-
* -> NavigationCancel (for the previous back)
|
|
161
|
-
* -> PopState
|
|
162
|
-
* -> NavigationCancel
|
|
163
|
-
*/
|
|
164
70
|
export { WaitUntilPopStateDuringCanDeactivateInteractionFinishes };
|
|
165
|
-
if (false) {
|
|
166
|
-
/** @type {?} */
|
|
167
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.isPopState;
|
|
168
|
-
/** @type {?} */
|
|
169
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.firstCancelHandled;
|
|
170
|
-
/** @type {?} */
|
|
171
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.popStateHandled;
|
|
172
|
-
/** @type {?} */
|
|
173
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.popStateEventUrl;
|
|
174
|
-
/** @type {?} */
|
|
175
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.debugPropertyKeys;
|
|
176
|
-
/**
|
|
177
|
-
* @type {?}
|
|
178
|
-
* @private
|
|
179
|
-
*/
|
|
180
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.parentPageUrl;
|
|
181
|
-
/** @type {?} */
|
|
182
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.locationChangeTriggerUrl;
|
|
183
|
-
/** @type {?} */
|
|
184
|
-
WaitUntilPopStateDuringCanDeactivateInteractionFinishes.prototype.poppedHistoryUrl;
|
|
185
|
-
}
|
|
186
71
|
//# sourceMappingURL=wait-until-popstate-during-can-deactivate-transition-finishes.js.map
|
|
@@ -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":"
|
|
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;IAA6E,2EAAmB;IAS9F,iEAAY,OAA0B,EAC1B,WAAmB,EACV,wBAAgC,EAChC,gBAAwB;QAH7C,YAIE,kBAAM,OAAO,EAAE,WAAW,CAAC,SAC5B;QAHoB,8BAAwB,GAAxB,wBAAwB,CAAQ;QAChC,sBAAgB,GAAhB,gBAAgB,CAAQ;QAVpC,gBAAU,GAAG,KAAK,CAAC;QAC5B,wBAAkB,GAAG,KAAK,CAAC;QAC3B,qBAAe,GAAG,KAAK,CAAC;QAExB,uBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;;IAQzJ,CAAC;IAED,WAAW;IACX,iFAAe,GAAf,UAAgB,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,mFAAiB,GAAjB,UAAkB,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,IAAM,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,6EAAW,GAAX,UAAY,KAAoB;QAC9B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,+EAAa,GAAb,UAAc,KAAsB;QAClC,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IAED,WAAW;IACX,4EAAU,GAAV,UAAW,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,oFAAkB,GAAxB,UAAyB,SAAyB,EAAE,UAAuB,EAAE,OAAoB;;;gBAC/F,sBAAO,KAAK,EAAC;;;KACd;IACH,8DAAC;AAAD,CAAC,AA1DD,CAA6E,mBAAmB,GA0D/F","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,8 +1,4 @@
|
|
|
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 { __extends } from "tslib";
|
|
6
2
|
import { NavigationSession } from '../navigation-session';
|
|
7
3
|
import { WaitUntilLeavingInteractionTransitionCancelled } from '../event-cleanup/wait-until-leaving-interaction-transition-cancelled';
|
|
8
4
|
import { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interaction-context-ids-with-route';
|
|
@@ -12,63 +8,24 @@ import { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interac
|
|
|
12
8
|
* NOTE: This state is activated when ever an interaction is started. It might be better to split it into
|
|
13
9
|
* different states for different scenarios, e.g. starting model, starting model during route guard etc.
|
|
14
10
|
*/
|
|
15
|
-
var /**
|
|
16
|
-
|
|
17
|
-
* happily ignore interaction contexts.
|
|
18
|
-
* NOTE: This state is activated when ever an interaction is started. It might be better to split it into
|
|
19
|
-
* different states for different scenarios, e.g. starting model, starting model during route guard etc.
|
|
20
|
-
*/
|
|
21
|
-
NavigatingDuringInteraction = /** @class */ (function (_super) {
|
|
22
|
-
tslib_1.__extends(NavigatingDuringInteraction, _super);
|
|
11
|
+
var NavigatingDuringInteraction = /** @class */ (function (_super) {
|
|
12
|
+
__extends(NavigatingDuringInteraction, _super);
|
|
23
13
|
function NavigatingDuringInteraction() {
|
|
24
14
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25
15
|
_this.isPopState = false;
|
|
26
16
|
return _this;
|
|
27
17
|
}
|
|
28
18
|
// @Trace()
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @param {?} event
|
|
32
|
-
* @return {?}
|
|
33
|
-
*/
|
|
34
|
-
NavigatingDuringInteraction.prototype.onRouterCancelled =
|
|
35
|
-
// @Trace()
|
|
36
|
-
/**
|
|
37
|
-
* @param {?} event
|
|
38
|
-
* @return {?}
|
|
39
|
-
*/
|
|
40
|
-
function (event) {
|
|
19
|
+
NavigatingDuringInteraction.prototype.onRouterCancelled = function (event) {
|
|
41
20
|
this.context.finishRoutingSession();
|
|
42
21
|
};
|
|
43
22
|
// @Trace()
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @param {?} event
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
NavigatingDuringInteraction.prototype.onRouterError =
|
|
50
|
-
// @Trace()
|
|
51
|
-
/**
|
|
52
|
-
* @param {?} event
|
|
53
|
-
* @return {?}
|
|
54
|
-
*/
|
|
55
|
-
function (event) {
|
|
23
|
+
NavigatingDuringInteraction.prototype.onRouterError = function (event) {
|
|
56
24
|
// navigation was aborted.
|
|
57
25
|
this.context.finishRoutingSession();
|
|
58
26
|
};
|
|
59
27
|
// @Trace()
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @param {?} event
|
|
63
|
-
* @return {?}
|
|
64
|
-
*/
|
|
65
|
-
NavigatingDuringInteraction.prototype.onRouterEnd =
|
|
66
|
-
// @Trace()
|
|
67
|
-
/**
|
|
68
|
-
* @param {?} event
|
|
69
|
-
* @return {?}
|
|
70
|
-
*/
|
|
71
|
-
function (event) {
|
|
28
|
+
NavigatingDuringInteraction.prototype.onRouterEnd = function (event) {
|
|
72
29
|
if (this.context.routerInteractionAdapter.isActive()) {
|
|
73
30
|
this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.startingUrl, false));
|
|
74
31
|
}
|
|
@@ -77,31 +34,10 @@ NavigatingDuringInteraction = /** @class */ (function (_super) {
|
|
|
77
34
|
}
|
|
78
35
|
};
|
|
79
36
|
// @Trace()
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @param {?} locationTriggerUrl
|
|
83
|
-
* @return {?}
|
|
84
|
-
*/
|
|
85
|
-
NavigatingDuringInteraction.prototype.handleCanDeactivateCancelledEventScenario =
|
|
86
|
-
// @Trace()
|
|
87
|
-
/**
|
|
88
|
-
* @param {?} locationTriggerUrl
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function (locationTriggerUrl) {
|
|
37
|
+
NavigatingDuringInteraction.prototype.handleCanDeactivateCancelledEventScenario = function (locationTriggerUrl) {
|
|
92
38
|
this.context.transitionTo(new WaitUntilLeavingInteractionTransitionCancelled(this.context, this.startingUrl, locationTriggerUrl));
|
|
93
39
|
};
|
|
94
40
|
return NavigatingDuringInteraction;
|
|
95
41
|
}(NavigationSession));
|
|
96
|
-
/**
|
|
97
|
-
* This state exists to handle all events while any kind of navigation is in progress. That way all other states can
|
|
98
|
-
* happily ignore interaction contexts.
|
|
99
|
-
* NOTE: This state is activated when ever an interaction is started. It might be better to split it into
|
|
100
|
-
* different states for different scenarios, e.g. starting model, starting model during route guard etc.
|
|
101
|
-
*/
|
|
102
42
|
export { NavigatingDuringInteraction };
|
|
103
|
-
if (false) {
|
|
104
|
-
/** @type {?} */
|
|
105
|
-
NavigatingDuringInteraction.prototype.isPopState;
|
|
106
|
-
}
|
|
107
43
|
//# sourceMappingURL=navigating-during-interaction.js.map
|
|
@@ -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":"
|
|
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;IAAiD,+CAAiB;IAAlE;QAAA,qEA8BC;QA7BU,gBAAU,GAAG,KAAK,CAAC;;IA6B9B,CAAC;IA3BC,WAAW;IACX,uDAAiB,GAAjB,UAAkB,KAAuB;QACvC,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,mDAAa,GAAb,UAAc,KAAsB;QAClC,0BAA0B;QAC1B,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,WAAW;IACX,iDAAW,GAAX,UAAY,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,+EAAyC,GAAzC,UAA0C,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;IAEH,kCAAC;AAAD,CAAC,AA9BD,CAAiD,iBAAiB,GA8BjE","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"]}
|
package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
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 { __extends } from "tslib";
|
|
6
2
|
import { AbstractPopStateNavigation } from '../abstract-pop-state-navigation';
|
|
7
3
|
import { SynchroniseInteractionContextIdsWithRoute } from './synchronise-interaction-context-ids-with-route';
|
|
8
4
|
/**
|
|
9
5
|
* This state exists to handle all events while any kind of navigation is in progress. That way all other states can
|
|
10
6
|
* happily ignore interaction contexts.
|
|
11
7
|
*/
|
|
12
|
-
var /**
|
|
13
|
-
|
|
14
|
-
* happily ignore interaction contexts.
|
|
15
|
-
*/
|
|
16
|
-
PopStateDuringInteractionNavigation = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(PopStateDuringInteractionNavigation, _super);
|
|
8
|
+
var PopStateDuringInteractionNavigation = /** @class */ (function (_super) {
|
|
9
|
+
__extends(PopStateDuringInteractionNavigation, _super);
|
|
18
10
|
function PopStateDuringInteractionNavigation(context, startingUrl, poppedHistoryUrl) {
|
|
19
11
|
return _super.call(this, context, startingUrl, poppedHistoryUrl) || this;
|
|
20
12
|
}
|
|
@@ -23,55 +15,20 @@ PopStateDuringInteractionNavigation = /** @class */ (function (_super) {
|
|
|
23
15
|
* @param event
|
|
24
16
|
*/
|
|
25
17
|
// @Trace()
|
|
26
|
-
|
|
27
|
-
* Invoked when the place refuses to deactivate because of an unfinished interaction.
|
|
28
|
-
* @param {?} event
|
|
29
|
-
* @return {?}
|
|
30
|
-
*/
|
|
31
|
-
// @Trace()
|
|
32
|
-
PopStateDuringInteractionNavigation.prototype.onRouterCancelled = /**
|
|
33
|
-
* Invoked when the place refuses to deactivate because of an unfinished interaction.
|
|
34
|
-
* @param {?} event
|
|
35
|
-
* @return {?}
|
|
36
|
-
*/
|
|
37
|
-
// @Trace()
|
|
38
|
-
function (event) {
|
|
18
|
+
PopStateDuringInteractionNavigation.prototype.onRouterCancelled = function (event) {
|
|
39
19
|
this.repairBrowserHistoryAndUrlAfterGuardCancellation();
|
|
40
20
|
// NOTE: for now we need to wasTriggeredByPopState=false because we're resetting the url and history in the previous line.
|
|
41
21
|
this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));
|
|
42
22
|
};
|
|
43
23
|
// @Trace()
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @param {?} event
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
PopStateDuringInteractionNavigation.prototype.onRouterEnd =
|
|
50
|
-
// @Trace()
|
|
51
|
-
/**
|
|
52
|
-
* @param {?} event
|
|
53
|
-
* @return {?}
|
|
54
|
-
*/
|
|
55
|
-
function (event) {
|
|
24
|
+
PopStateDuringInteractionNavigation.prototype.onRouterEnd = function (event) {
|
|
56
25
|
// this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));
|
|
57
26
|
this.context.finishRoutingSession();
|
|
58
27
|
};
|
|
59
|
-
|
|
60
|
-
* @param {?} newUrl
|
|
61
|
-
* @return {?}
|
|
62
|
-
*/
|
|
63
|
-
PopStateDuringInteractionNavigation.prototype.handleCanDeactivateCancelledEventScenario = /**
|
|
64
|
-
* @param {?} newUrl
|
|
65
|
-
* @return {?}
|
|
66
|
-
*/
|
|
67
|
-
function (newUrl) {
|
|
28
|
+
PopStateDuringInteractionNavigation.prototype.handleCanDeactivateCancelledEventScenario = function (newUrl) {
|
|
68
29
|
this.illegalTransition('Leaving interaction after pop-state should\'t block so should never see a back button click');
|
|
69
30
|
};
|
|
70
31
|
return PopStateDuringInteractionNavigation;
|
|
71
32
|
}(AbstractPopStateNavigation));
|
|
72
|
-
/**
|
|
73
|
-
* This state exists to handle all events while any kind of navigation is in progress. That way all other states can
|
|
74
|
-
* happily ignore interaction contexts.
|
|
75
|
-
*/
|
|
76
33
|
export { PopStateDuringInteractionNavigation };
|
|
77
34
|
//# sourceMappingURL=pop-state-during-interaction-navigation.js.map
|
|
@@ -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":"
|
|
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;IAAyD,uDAA0B;IAEjF,6CAAY,OAA0B,EAAE,WAAmB,EAAE,gBAAwB;eACnF,kBAAM,OAAO,EAAE,WAAW,EAAE,gBAAgB,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,WAAW;IACX,+DAAiB,GAAjB,UAAkB,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,yDAAW,GAAX,UAAY,KAAoB;QAC9B,wHAAwH;QACxH,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,uFAAyC,GAAzC,UAA0C,MAAc;QACtD,IAAI,CAAC,iBAAiB,CAAC,6FAA6F,CAAC,CAAC;IACxH,CAAC;IAEH,0CAAC;AAAD,CAAC,AA3BD,CAAyD,0BAA0B,GA2BlF","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,8 +1,4 @@
|
|
|
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 { __extends } from "tslib";
|
|
6
2
|
import { Deferred, lang } from '@coolon/pectin';
|
|
7
3
|
import { NavigationSession } from '../navigation-session';
|
|
8
4
|
/**
|
|
@@ -11,14 +7,8 @@ import { NavigationSession } from '../navigation-session';
|
|
|
11
7
|
* followed by a call to location.back(). The later triggers a url change with no other routing events. So this
|
|
12
8
|
* class tracks when the first routing cycle finishes and then waits for the subsequent lone url change event.
|
|
13
9
|
*/
|
|
14
|
-
var /**
|
|
15
|
-
|
|
16
|
-
* the resolves when the process and completed. This case is special as the process involves a regular routing cycle
|
|
17
|
-
* followed by a call to location.back(). The later triggers a url change with no other routing events. So this
|
|
18
|
-
* class tracks when the first routing cycle finishes and then waits for the subsequent lone url change event.
|
|
19
|
-
*/
|
|
20
|
-
RemoveLastInteractionFromUrlNavigationSession = /** @class */ (function (_super) {
|
|
21
|
-
tslib_1.__extends(RemoveLastInteractionFromUrlNavigationSession, _super);
|
|
10
|
+
var RemoveLastInteractionFromUrlNavigationSession = /** @class */ (function (_super) {
|
|
11
|
+
__extends(RemoveLastInteractionFromUrlNavigationSession, _super);
|
|
22
12
|
function RemoveLastInteractionFromUrlNavigationSession(context, startingUrl) {
|
|
23
13
|
var _this = _super.call(this, context, startingUrl) || this;
|
|
24
14
|
_this.isPopState = true;
|
|
@@ -27,113 +17,36 @@ RemoveLastInteractionFromUrlNavigationSession = /** @class */ (function (_super)
|
|
|
27
17
|
return _this;
|
|
28
18
|
}
|
|
29
19
|
// @Trace()
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @param {?} event
|
|
33
|
-
* @return {?}
|
|
34
|
-
*/
|
|
35
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.onPopState =
|
|
36
|
-
// @Trace()
|
|
37
|
-
/**
|
|
38
|
-
* @param {?} event
|
|
39
|
-
* @return {?}
|
|
40
|
-
*/
|
|
41
|
-
function (event) {
|
|
20
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.onPopState = function (event) {
|
|
42
21
|
this.gotPopState = true;
|
|
43
22
|
};
|
|
44
23
|
// @Trace()
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @param {?} event
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.onRouterStarted =
|
|
51
|
-
// @Trace()
|
|
52
|
-
/**
|
|
53
|
-
* @param {?} event
|
|
54
|
-
* @return {?}
|
|
55
|
-
*/
|
|
56
|
-
function (event) {
|
|
24
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.onRouterStarted = function (event) {
|
|
57
25
|
this.ignore(event);
|
|
58
26
|
};
|
|
59
27
|
// @Trace()
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @param {?} event
|
|
63
|
-
* @return {?}
|
|
64
|
-
*/
|
|
65
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.onRouterCancelled =
|
|
66
|
-
// @Trace()
|
|
67
|
-
/**
|
|
68
|
-
* @param {?} event
|
|
69
|
-
* @return {?}
|
|
70
|
-
*/
|
|
71
|
-
function (event) {
|
|
28
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.onRouterCancelled = function (event) {
|
|
72
29
|
this.ignore(event);
|
|
73
30
|
};
|
|
74
31
|
// @Trace()
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @param {?} url
|
|
78
|
-
* @return {?}
|
|
79
|
-
*/
|
|
80
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.onUrlChange =
|
|
81
|
-
// @Trace()
|
|
82
|
-
/**
|
|
83
|
-
* @param {?} url
|
|
84
|
-
* @return {?}
|
|
85
|
-
*/
|
|
86
|
-
function (url) {
|
|
32
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.onUrlChange = function (url) {
|
|
87
33
|
};
|
|
88
|
-
|
|
89
|
-
* @private
|
|
90
|
-
* @return {?}
|
|
91
|
-
*/
|
|
92
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.finishUp = /**
|
|
93
|
-
* @private
|
|
94
|
-
* @return {?}
|
|
95
|
-
*/
|
|
96
|
-
function () {
|
|
34
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.finishUp = function () {
|
|
97
35
|
this.context.finishRoutingSession();
|
|
98
36
|
this.finished.resolve(true);
|
|
99
37
|
};
|
|
100
38
|
// @Trace()
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @param {?} event
|
|
104
|
-
* @return {?}
|
|
105
|
-
*/
|
|
106
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.onRouterEnd =
|
|
107
|
-
// @Trace()
|
|
108
|
-
/**
|
|
109
|
-
* @param {?} event
|
|
110
|
-
* @return {?}
|
|
111
|
-
*/
|
|
112
|
-
function (event) {
|
|
39
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.onRouterEnd = function (event) {
|
|
113
40
|
if (this.gotPopState) {
|
|
114
41
|
this.finishUp();
|
|
115
42
|
}
|
|
116
43
|
};
|
|
117
44
|
// @Trace()
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @param {?} locationTriggerUrl
|
|
121
|
-
* @return {?}
|
|
122
|
-
*/
|
|
123
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.handleCanDeactivateCancelledEventScenario =
|
|
124
|
-
// @Trace()
|
|
125
|
-
/**
|
|
126
|
-
* @param {?} locationTriggerUrl
|
|
127
|
-
* @return {?}
|
|
128
|
-
*/
|
|
129
|
-
function (locationTriggerUrl) {
|
|
45
|
+
RemoveLastInteractionFromUrlNavigationSession.prototype.handleCanDeactivateCancelledEventScenario = function (locationTriggerUrl) {
|
|
130
46
|
lang.illegalState('onCanDeactivateInteractionCancelled not supported for activity context synchronisation since we should never leave a place');
|
|
131
47
|
};
|
|
132
48
|
Object.defineProperty(RemoveLastInteractionFromUrlNavigationSession.prototype, "finishedPromise", {
|
|
133
|
-
get:
|
|
134
|
-
* @return {?}
|
|
135
|
-
*/
|
|
136
|
-
function () {
|
|
49
|
+
get: function () {
|
|
137
50
|
return this.finished.promise;
|
|
138
51
|
},
|
|
139
52
|
enumerable: true,
|
|
@@ -141,27 +54,5 @@ RemoveLastInteractionFromUrlNavigationSession = /** @class */ (function (_super)
|
|
|
141
54
|
});
|
|
142
55
|
return RemoveLastInteractionFromUrlNavigationSession;
|
|
143
56
|
}(NavigationSession));
|
|
144
|
-
/**
|
|
145
|
-
* This session tracks the process of removing the last interaction context from the URL and provides a promise
|
|
146
|
-
* the resolves when the process and completed. This case is special as the process involves a regular routing cycle
|
|
147
|
-
* followed by a call to location.back(). The later triggers a url change with no other routing events. So this
|
|
148
|
-
* class tracks when the first routing cycle finishes and then waits for the subsequent lone url change event.
|
|
149
|
-
*/
|
|
150
57
|
export { RemoveLastInteractionFromUrlNavigationSession };
|
|
151
|
-
if (false) {
|
|
152
|
-
/** @type {?} */
|
|
153
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.isPopState;
|
|
154
|
-
/** @type {?} */
|
|
155
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.debugPropertyKeys;
|
|
156
|
-
/**
|
|
157
|
-
* @type {?}
|
|
158
|
-
* @private
|
|
159
|
-
*/
|
|
160
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.finished;
|
|
161
|
-
/**
|
|
162
|
-
* @type {?}
|
|
163
|
-
* @private
|
|
164
|
-
*/
|
|
165
|
-
RemoveLastInteractionFromUrlNavigationSession.prototype.gotPopState;
|
|
166
|
-
}
|
|
167
58
|
//# sourceMappingURL=remove-last-interaction-from-url-navigation-session.js.map
|
|
@@ -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":"
|
|
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;IAAmE,iEAAiB;IAOlF,uDAAY,OAA0B,EAAE,WAAmB;QAA3D,YACE,kBAAM,OAAO,EAAE,WAAW,CAAC,SAE5B;QATQ,gBAAU,GAAG,IAAI,CAAC;QAC3B,uBAAiB,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;QAOtD,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAW,CAAC;;IAC5C,CAAC;IAED,WAAW;IACX,kEAAU,GAAV,UAAW,KAAsB;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED,WAAW;IACX,uEAAe,GAAf,UAAgB,KAAsB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,yEAAiB,GAAjB,UAAkB,KAAuB;QACvC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,WAAW;IACX,mEAAW,GAAX,UAAY,GAAW;IACvB,CAAC;IAEO,gEAAQ,GAAhB;QACE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACpC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,WAAW;IACX,mEAAW,GAAX,UAAY,KAAoB;QAC9B,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;IACH,CAAC;IAED,WAAW;IACX,iGAAyC,GAAzC,UAA0C,kBAA0B;QAClE,IAAI,CAAC,YAAY,CAAC,4HAA4H,CAAC,CAAC;IAClJ,CAAC;IAED,sBAAI,0EAAe;aAAnB;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC/B,CAAC;;;OAAA;IAEH,oDAAC;AAAD,CAAC,AApDD,CAAmE,iBAAiB,GAoDnF","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"]}
|