@coolon/angular-ui-powerups 0.0.135 → 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 +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,35 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
5
2
|
import { Injectable } from '@angular/core';
|
|
6
3
|
import _ from 'lodash';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
8
|
-
|
|
5
|
+
let PlaceHistory = class PlaceHistory {
|
|
9
6
|
constructor() {
|
|
10
7
|
this._history = new Map();
|
|
11
8
|
}
|
|
12
9
|
// @Trace()
|
|
13
|
-
/**
|
|
14
|
-
* @param {?} state
|
|
15
|
-
* @return {?}
|
|
16
|
-
*/
|
|
17
10
|
add(state) {
|
|
18
|
-
/** @type {?} */
|
|
19
11
|
const history = this.getHistory(state.placeDefinition);
|
|
20
|
-
/** @type {?} */
|
|
21
12
|
const previousState = _.first(history);
|
|
22
13
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
23
14
|
history.unshift(state); // LIFO
|
|
24
15
|
this.setHistory(state.placeDefinition, history.slice(0, 3)); // limit our history to 4 visits
|
|
25
16
|
}
|
|
26
17
|
}
|
|
27
|
-
/**
|
|
28
|
-
* @param {?} placeDef
|
|
29
|
-
* @return {?}
|
|
30
|
-
*/
|
|
31
18
|
getHistory(placeDef) {
|
|
32
|
-
/** @type {?} */
|
|
33
19
|
let history = this._history.get(placeDef);
|
|
34
20
|
if (!history) {
|
|
35
21
|
history = [];
|
|
@@ -37,29 +23,16 @@ export class PlaceHistory {
|
|
|
37
23
|
}
|
|
38
24
|
return history;
|
|
39
25
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @private
|
|
42
|
-
* @param {?} placeDef
|
|
43
|
-
* @param {?} history
|
|
44
|
-
* @return {?}
|
|
45
|
-
*/
|
|
46
26
|
setHistory(placeDef, history) {
|
|
47
27
|
this._history.set(placeDef, history);
|
|
48
28
|
}
|
|
49
|
-
}
|
|
50
|
-
PlaceHistory
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
PlaceHistory
|
|
57
|
-
|
|
58
|
-
if (false) {
|
|
59
|
-
/**
|
|
60
|
-
* @type {?}
|
|
61
|
-
* @private
|
|
62
|
-
*/
|
|
63
|
-
PlaceHistory.prototype._history;
|
|
64
|
-
}
|
|
29
|
+
};
|
|
30
|
+
PlaceHistory.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlaceHistory_Factory() { return new PlaceHistory(); }, token: PlaceHistory, providedIn: "root" });
|
|
31
|
+
PlaceHistory = __decorate([
|
|
32
|
+
Injectable({
|
|
33
|
+
providedIn: 'root'
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:paramtypes", [])
|
|
36
|
+
], PlaceHistory);
|
|
37
|
+
export { PlaceHistory };
|
|
65
38
|
//# sourceMappingURL=place-history.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place-history.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/place-history.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"place-history.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/place-history.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,CAAC,MAAM,QAAQ,CAAC;;AAOvB,IAAa,YAAY,GAAzB,MAAa,YAAY;IAIvB;QAFQ,aAAQ,GAAG,IAAI,GAAG,EAA4B,CAAC;IAGvD,CAAC;IAED,WAAW;IACX,GAAG,CAAC,KAAY;QACd,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACvD,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,aAAa,IAAI,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE;YACzD,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO;YAC/B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC;SAC9F;IACH,CAAC;IAED,UAAU,CAAC,QAAyB;QAClC,IAAI,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;SACpC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,UAAU,CAAC,QAAyB,EAAE,OAAgB;QAC5D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CAcF,CAAA;;AA1CY,YAAY;IAHxB,UAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;;GACW,YAAY,CA0CxB;SA1CY,YAAY","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Trace } from '@coolon/pectin';\nimport _ from 'lodash';\nimport { PlaceDefinition } from './place-definition';\nimport { Visit } from './visit';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PlaceHistory {\n\n private _history = new Map<PlaceDefinition, Visit[]>();\n\n constructor() {\n }\n\n // @Trace()\n add(state: Visit) {\n const history = this.getHistory(state.placeDefinition);\n const previousState = _.first(history);\n if (!previousState || state.hasChangedFrom(previousState)) {\n history.unshift(state); // LIFO\n this.setHistory(state.placeDefinition, history.slice(0, 3)); // limit our history to 4 visits\n }\n }\n\n getHistory(placeDef: PlaceDefinition): Visit[] {\n let history = this._history.get(placeDef);\n if (!history) {\n history = [];\n this.setHistory(placeDef, history);\n }\n return history;\n }\n\n private setHistory(placeDef: PlaceDefinition, history: Visit[]) {\n this._history.set(placeDef, history);\n }\n\n// previousVisit(): Visit {\n // return _.last(this._history);\n // }\n //\n // withPreviousVisit<R>(callback:(previousVisit:Visit)=>R, defaultValue:R = null):R{\n // const visit = this.previousVisit();\n // return visit ? callback(visit) : defaultValue;\n // }\n //\n // previousVisitTo(place: Place): Visit {\n // return new VisitHistory.Query(this._history).to(place).last();\n // }\n}\n\nexport namespace VisitHistory {\n\n // export class Query {\n // private _history: Visit.State[];\n // private _places: Place[];\n // private _predicate: (visit: any) => boolean;\n // private _limit: number;\n //\n // constructor(history, limit = history.length) {\n // this._history = history;\n // this._places = [];\n // this._predicate = (visit => true);\n // this._limit = limit;\n // }\n //\n // to(...places:Place[]):this {\n // this._places = places;\n // return this;\n // }\n //\n // with(parameters: { [parameter: string]: any }): this {\n // this.matching(state => {\n // return Object.keys(parameters).reduce((acc, key) => {\n // const matchValue = parameters[key];\n // const visitValue = state.get(key);\n // const matched = matchValue === '*' ? !_.isNil(visitValue) : visitValue == matchValue;\n // // Logger.get(this).info(`matched=${matched}`, parameters, visitValue);\n // return acc && matched;\n // }, true);\n // });\n // return this;\n // }\n //\n // last(): Visit.State {\n // return _.findLast(this._history, visit => this._matches(visit))\n // }\n //\n // // @trace\n // allThatMatch(): Visit.State[] {\n // return _.filter(this._history, visit => this._matches(visit)).slice(-this._limit);\n // }\n //\n // // @trace\n // mostRecentValueOf<T=any>(param: string, defaultValue: T = null): T {\n // const lastStateWithParam = _.findLast(this.allThatMatch(), state => !_.isNil(state.get(param)));\n // return _.isNil(lastStateWithParam) ? defaultValue : lastStateWithParam.get(param);\n // }\n //\n // limit(limit: number): this {\n // this._limit = limit;\n // return this;\n // }\n //\n // matching(predicate: (visit: Visit.State) => boolean): this {\n // this._predicate = predicate;\n // return this;\n // }\n //\n // _matches(visit: Visit.State) {\n // return this._isPlaceMatch(visit) && this._predicate(visit);\n // }\n //\n // _isPlaceMatch(visit: Visit.State) {\n // return this._places.length < 1 || this._places.includes(visit.place)\n // }\n //\n // }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"PlaceHistory":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"add":[{"__symbolic":"method"}],"getHistory":[{"__symbolic":"method"}],"setHistory":[{"__symbolic":"method"}]},"statics":{"
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"PlaceHistory":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"add":[{"__symbolic":"method"}],"getHistory":[{"__symbolic":"method"}],"setHistory":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}}}]
|
|
@@ -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, __metadata } 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';
|
|
@@ -22,14 +18,7 @@ import * as i2 from "@angular/common";
|
|
|
22
18
|
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
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @param {?} angularRouter
|
|
28
|
-
* @param {?} angularLocation
|
|
29
|
-
* @param {?} interactionService
|
|
30
|
-
* @param {?} urlService
|
|
31
|
-
* @param {?} placeHistory
|
|
32
|
-
*/
|
|
21
|
+
let PlaceRouter = class PlaceRouter extends GarbageCollector {
|
|
33
22
|
constructor(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
34
23
|
super();
|
|
35
24
|
this.angularRouter = angularRouter;
|
|
@@ -42,45 +31,23 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
42
31
|
this.sessionFinishedJobs = [];
|
|
43
32
|
this.routerInteractionAdapter = interactionService.registerPlaceRouter(this);
|
|
44
33
|
// TODO: Make this an interface and use 'this' instead.
|
|
45
|
-
this.navigationContext = new NavigationContext.Impl(this.urlService, this.routerInteractionAdapter, (
|
|
46
|
-
* @param {?} urlSnapshot
|
|
47
|
-
* @param {?} options
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
(urlSnapshot, options) => {
|
|
34
|
+
this.navigationContext = new NavigationContext.Impl(this.urlService, this.routerInteractionAdapter, (urlSnapshot, options) => {
|
|
51
35
|
return this.navigateByUrl(urlSnapshot, options);
|
|
52
|
-
}
|
|
53
|
-
* @param {?} state
|
|
54
|
-
* @return {?}
|
|
55
|
-
*/
|
|
56
|
-
state => {
|
|
36
|
+
}, state => {
|
|
57
37
|
this.transitionTo(state);
|
|
58
|
-
}
|
|
59
|
-
* @param {?} visits
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
visits => {
|
|
38
|
+
}, visits => {
|
|
63
39
|
this.routingSessionFinished(visits);
|
|
64
|
-
})
|
|
40
|
+
});
|
|
65
41
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
66
42
|
this.navigationInProgress = chain(this.navigationSessionModel).isNotNil();
|
|
67
|
-
|
|
68
|
-
const idleStateName = chain(this.interactionService.active).map((/**
|
|
69
|
-
* @param {?} active
|
|
70
|
-
* @return {?}
|
|
71
|
-
*/
|
|
72
|
-
active => active ? 'IdleDuringInteraction' : 'Idle'));
|
|
43
|
+
const idleStateName = chain(this.interactionService.active).map(active => active ? 'IdleDuringInteraction' : 'Idle');
|
|
73
44
|
this.navigationSessionName = chain(this.navigationSessionModel)
|
|
74
45
|
.pluck('name')
|
|
75
46
|
.otherwise(idleStateName);
|
|
76
47
|
DebugContext.tag(this._activeVisits, "PlaceRouter.activeVisits");
|
|
77
48
|
this.activeVisitsByPlaceDefinition = chain(this._activeVisits).indexBy('placeDefinition');
|
|
78
49
|
// TODO: make setup the callbacks in during module initiation to make this testable.
|
|
79
|
-
angularRouter.events.subscribe(
|
|
80
|
-
* @param {?} event
|
|
81
|
-
* @return {?}
|
|
82
|
-
*/
|
|
83
|
-
event => {
|
|
50
|
+
angularRouter.events.subscribe(event => {
|
|
84
51
|
// Routing event sequence
|
|
85
52
|
// ======================
|
|
86
53
|
// NavigationStart -> .... -> NavigationCancel --> redirect, go around again in the same session
|
|
@@ -112,43 +79,26 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
112
79
|
this.onRouterCancelled(event);
|
|
113
80
|
// console.log(`<--- NavigationCancel[${event.id}]: ${event.url}`);
|
|
114
81
|
}
|
|
115
|
-
})
|
|
82
|
+
});
|
|
116
83
|
// The router needs to know about url changes and in some cases they are the only way the router can know if
|
|
117
84
|
// the back button was clicked.
|
|
118
|
-
angularLocation.onUrlChange((
|
|
119
|
-
* @param {?} url
|
|
120
|
-
* @return {?}
|
|
121
|
-
*/
|
|
122
|
-
url => this.onUrlChanged(url)));
|
|
85
|
+
angularLocation.onUrlChange(url => this.onUrlChanged(url));
|
|
123
86
|
}
|
|
124
|
-
/**
|
|
125
|
-
* @return {?}
|
|
126
|
-
*/
|
|
127
87
|
get navigationSession() {
|
|
128
88
|
return this.navigationSessionModel.value;
|
|
129
89
|
}
|
|
130
|
-
/**
|
|
131
|
-
* @return {?}
|
|
132
|
-
*/
|
|
133
90
|
get currentSession() {
|
|
134
91
|
return this.navigationSessionModel.value;
|
|
135
92
|
}
|
|
136
93
|
// @Trace()
|
|
137
|
-
/**
|
|
138
|
-
* @param {?} event
|
|
139
|
-
* @return {?}
|
|
140
|
-
*/
|
|
141
94
|
onPopState(event) {
|
|
142
95
|
assert.isTruthy(event.navigationTrigger === 'popstate');
|
|
143
96
|
if (this.currentSession) {
|
|
144
97
|
this.currentSession.onPopState(event);
|
|
145
98
|
}
|
|
146
99
|
else {
|
|
147
|
-
/** @type {?} */
|
|
148
100
|
const poppedHistoryUrl = event.url;
|
|
149
|
-
/** @type {?} */
|
|
150
101
|
const currentRouterUrl = this.urlService.getCurrentRouterUrl();
|
|
151
|
-
/** @type {?} */
|
|
152
102
|
const session = this.interactionService.isActive() ?
|
|
153
103
|
new PopStateDuringInteractionNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl) :
|
|
154
104
|
new PopStateNavigation(this.navigationContext, currentRouterUrl, poppedHistoryUrl);
|
|
@@ -156,13 +106,8 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
156
106
|
}
|
|
157
107
|
}
|
|
158
108
|
// @Trace()
|
|
159
|
-
/**
|
|
160
|
-
* @param {?} event
|
|
161
|
-
* @return {?}
|
|
162
|
-
*/
|
|
163
109
|
onRouterStarted(event) {
|
|
164
110
|
assert.isFalsey(event.navigationTrigger === 'popstate');
|
|
165
|
-
/** @type {?} */
|
|
166
111
|
const inInteraction = this.interactionService.isActive();
|
|
167
112
|
if (this.currentSession) {
|
|
168
113
|
this.currentSession.onRouterStarted(event);
|
|
@@ -172,10 +117,6 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
172
117
|
}
|
|
173
118
|
}
|
|
174
119
|
// @Trace()
|
|
175
|
-
/**
|
|
176
|
-
* @param {?} newUrl
|
|
177
|
-
* @return {?}
|
|
178
|
-
*/
|
|
179
120
|
onUrlChanged(newUrl) {
|
|
180
121
|
// the back button can trigger a url change without a navigation session in progress so we
|
|
181
122
|
// console.log(`---> Url Changed ${newUrl}`);
|
|
@@ -188,41 +129,19 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
188
129
|
// console.log(`<--- Url Changed`);
|
|
189
130
|
}
|
|
190
131
|
// @Trace()
|
|
191
|
-
/**
|
|
192
|
-
* @param {?} event
|
|
193
|
-
* @return {?}
|
|
194
|
-
*/
|
|
195
132
|
onRouterCancelled(event) {
|
|
196
133
|
this.currentSession.onRouterCancelled(event);
|
|
197
134
|
}
|
|
198
135
|
// @Trace()
|
|
199
|
-
/**
|
|
200
|
-
* @param {?} event
|
|
201
|
-
* @return {?}
|
|
202
|
-
*/
|
|
203
136
|
onRouterError(event) {
|
|
204
137
|
this.currentSession.onRouterError(event);
|
|
205
138
|
}
|
|
206
139
|
// @Trace()
|
|
207
|
-
/**
|
|
208
|
-
* @param {?} event
|
|
209
|
-
* @return {?}
|
|
210
|
-
*/
|
|
211
140
|
onRouterEnd(event) {
|
|
212
141
|
this.currentSession.onRouterEnd(event);
|
|
213
142
|
}
|
|
214
|
-
/**
|
|
215
|
-
* @param {?} visit
|
|
216
|
-
* @param {?=} options
|
|
217
|
-
* @return {?}
|
|
218
|
-
*/
|
|
219
143
|
navigate(visit, options) {
|
|
220
|
-
return this.doNavigation(visit, (
|
|
221
|
-
* @param {?} router
|
|
222
|
-
* @return {?}
|
|
223
|
-
*/
|
|
224
|
-
(router) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
/** @type {?} */
|
|
144
|
+
return this.doNavigation(visit, (router) => __awaiter(this, void 0, void 0, function* () {
|
|
226
145
|
const commands = [
|
|
227
146
|
visit.placeDefinition.path,
|
|
228
147
|
...this.createRouteParameters(visit)
|
|
@@ -230,20 +149,14 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
230
149
|
yield this.angularRouter.navigate(commands, {
|
|
231
150
|
relativeTo: options ? options.relativeTo : null
|
|
232
151
|
});
|
|
233
|
-
}))
|
|
152
|
+
}));
|
|
234
153
|
}
|
|
235
154
|
// @Trace()
|
|
236
|
-
/**
|
|
237
|
-
* @param {?} visit
|
|
238
|
-
* @param {?} runNavigationCommands
|
|
239
|
-
* @return {?}
|
|
240
|
-
*/
|
|
241
155
|
doNavigation(visit, runNavigationCommands) {
|
|
242
|
-
return
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
157
|
if (this.navigationInProgress.value) {
|
|
244
158
|
lang.illegalState('Navigation already in progress');
|
|
245
159
|
}
|
|
246
|
-
/** @type {?} */
|
|
247
160
|
const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
248
161
|
navigation.storeVisit(visit);
|
|
249
162
|
this.transitionTo(navigation);
|
|
@@ -259,67 +172,37 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
259
172
|
}
|
|
260
173
|
});
|
|
261
174
|
}
|
|
262
|
-
/**
|
|
263
|
-
* @param {?} urlSnapshot
|
|
264
|
-
* @param {?=} navigationExtras
|
|
265
|
-
* @return {?}
|
|
266
|
-
*/
|
|
267
175
|
navigateByUrl(urlSnapshot, navigationExtras) {
|
|
268
176
|
// console.log(`### navigationByUrl -> ${urlSnapshot.urlTree.toString()}`);
|
|
269
177
|
return this.angularRouter.navigateByUrl(urlSnapshot.urlTree, navigationExtras);
|
|
270
178
|
}
|
|
271
|
-
/**
|
|
272
|
-
* @return {?}
|
|
273
|
-
*/
|
|
274
179
|
get activeVisits() {
|
|
275
180
|
return this._activeVisits.readonly;
|
|
276
181
|
}
|
|
277
182
|
// @Trace()
|
|
278
|
-
/**
|
|
279
|
-
* @param {?} previous
|
|
280
|
-
* @param {?} next
|
|
281
|
-
* @return {?}
|
|
282
|
-
*/
|
|
283
183
|
pushVisitChangesToRoute(previous, next) {
|
|
284
|
-
return
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
285
185
|
// we have to push to history so our remember sanitisers don't pick up the previous value
|
|
286
186
|
// when it's been cleared by the user.
|
|
287
187
|
this.placeHistory.add(next);
|
|
288
188
|
// FIXME: no route id -> route id duplicates route parameters
|
|
289
189
|
if (next.hasRoutingChangedFrom(previous)) {
|
|
290
|
-
return this.doNavigation(next,
|
|
291
|
-
* @param {?} router
|
|
292
|
-
* @return {?}
|
|
293
|
-
*/
|
|
294
|
-
router => {
|
|
295
|
-
/** @type {?} */
|
|
190
|
+
return this.doNavigation(next, router => {
|
|
296
191
|
const urlSnapshot = this.urlService.parseUrl(this.angularRouter.routerState.snapshot.url).updateVisitSegments(next);
|
|
297
192
|
// console.log('### Push Changes to route Redirect', { commands: urlSnapshot.url });
|
|
298
193
|
return this.navigateByUrl(urlSnapshot);
|
|
299
|
-
})
|
|
194
|
+
});
|
|
300
195
|
}
|
|
301
196
|
});
|
|
302
197
|
}
|
|
303
|
-
/**
|
|
304
|
-
* @private
|
|
305
|
-
* @param {?} currentRouterUrl
|
|
306
|
-
* @return {?}
|
|
307
|
-
*/
|
|
308
198
|
createNavigationSession(currentRouterUrl) {
|
|
309
|
-
/** @type {?} */
|
|
310
199
|
const inInteraction = this.interactionService.isActive();
|
|
311
200
|
return inInteraction ?
|
|
312
201
|
new NavigatingDuringInteraction(this.navigationContext, currentRouterUrl) :
|
|
313
202
|
new Navigating(this.navigationContext, currentRouterUrl);
|
|
314
203
|
}
|
|
315
204
|
// @Trace()
|
|
316
|
-
/**
|
|
317
|
-
* @protected
|
|
318
|
-
* @param {?} next
|
|
319
|
-
* @return {?}
|
|
320
|
-
*/
|
|
321
205
|
transitionTo(next) {
|
|
322
|
-
/** @type {?} */
|
|
323
206
|
const previous = this.navigationSessionModel.value;
|
|
324
207
|
assert.isTruthy(next !== previous);
|
|
325
208
|
Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);
|
|
@@ -330,41 +213,22 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
330
213
|
next.notifyActive();
|
|
331
214
|
}
|
|
332
215
|
// @Trace()
|
|
333
|
-
/**
|
|
334
|
-
* @private
|
|
335
|
-
* @param {?} visits
|
|
336
|
-
* @return {?}
|
|
337
|
-
*/
|
|
338
216
|
routingSessionFinished(visits) {
|
|
339
217
|
if (visits && visits.length > 0) {
|
|
340
218
|
assert.isTruthy(this.navigationInProgress.value);
|
|
341
|
-
visits.forEach((
|
|
342
|
-
* @param {?} v
|
|
343
|
-
* @return {?}
|
|
344
|
-
*/
|
|
345
|
-
v => this.placeHistory.add(v)));
|
|
219
|
+
visits.forEach(v => this.placeHistory.add(v));
|
|
346
220
|
// We update the active visits before we finish the session so the
|
|
347
221
|
// place outlets can ignore the incoming changes until things are
|
|
348
222
|
// settled. TODO: can we removed the event'ness here and just do a push?
|
|
349
223
|
this._activeVisits.value = visits;
|
|
350
224
|
}
|
|
351
|
-
/** @type {?} */
|
|
352
225
|
const session = this.currentSession;
|
|
353
226
|
session.dispose();
|
|
354
227
|
this.navigationSessionModel.value = null;
|
|
355
228
|
console.log(`### Router Session Finished (was ${session.toString()})`);
|
|
356
|
-
this.sessionFinishedJobs.forEach((
|
|
357
|
-
* @param {?} job
|
|
358
|
-
* @return {?}
|
|
359
|
-
*/
|
|
360
|
-
job => job()));
|
|
229
|
+
this.sessionFinishedJobs.forEach(job => job());
|
|
361
230
|
this.sessionFinishedJobs = [];
|
|
362
231
|
}
|
|
363
|
-
/**
|
|
364
|
-
* @private
|
|
365
|
-
* @param {?} func
|
|
366
|
-
* @return {?}
|
|
367
|
-
*/
|
|
368
232
|
runAfterRoutingSessionFinishes(func) {
|
|
369
233
|
assert.isTruthy(this.navigationInProgress);
|
|
370
234
|
this.sessionFinishedJobs.push(func);
|
|
@@ -373,65 +237,36 @@ export class PlaceRouter extends GarbageCollector {
|
|
|
373
237
|
* Sync's the current interaction state with the URL. We need to push something in the URL in order
|
|
374
238
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
375
239
|
* the app directly and we don't get to ask.
|
|
376
|
-
* @return {?}
|
|
377
240
|
*/
|
|
378
241
|
// @Trace()
|
|
379
242
|
syncInteractionContextIdsWithRouter() {
|
|
380
243
|
if (this.navigationSession) {
|
|
381
244
|
// console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
|
|
382
|
-
/** @type {?} */
|
|
383
245
|
const session = this.navigationSession;
|
|
384
|
-
return new Promise((
|
|
385
|
-
|
|
386
|
-
* @param {?} reject
|
|
387
|
-
* @return {?}
|
|
388
|
-
*/
|
|
389
|
-
(resolve, reject) => {
|
|
390
|
-
this.runAfterRoutingSessionFinishes((/**
|
|
391
|
-
* @return {?}
|
|
392
|
-
*/
|
|
393
|
-
() => {
|
|
246
|
+
return new Promise((resolve, reject) => {
|
|
247
|
+
this.runAfterRoutingSessionFinishes(() => {
|
|
394
248
|
this.runAfterRoutingSessionFinishes(resolve);
|
|
395
|
-
/** @type {?} */
|
|
396
249
|
const syncSession = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);
|
|
397
250
|
this.transitionTo(syncSession);
|
|
398
|
-
})
|
|
399
|
-
})
|
|
251
|
+
});
|
|
252
|
+
});
|
|
400
253
|
}
|
|
401
254
|
else {
|
|
402
|
-
return new Promise(((
|
|
403
|
-
* @param {?} resolve
|
|
404
|
-
* @param {?} reject
|
|
405
|
-
* @return {?}
|
|
406
|
-
*/
|
|
407
|
-
(resolve, reject) => {
|
|
255
|
+
return new Promise(((resolve, reject) => {
|
|
408
256
|
// console.log(`No navigation in progress, starting synchronisation job`);
|
|
409
257
|
this.runAfterRoutingSessionFinishes(resolve);
|
|
410
|
-
/** @type {?} */
|
|
411
258
|
const session = new SynchroniseInteractionContextIdsWithRoute(this.navigationContext, this.urlService.getCurrentRouterUrl(), false);
|
|
412
259
|
this.transitionTo(session);
|
|
413
|
-
}))
|
|
260
|
+
}));
|
|
414
261
|
}
|
|
415
262
|
}
|
|
416
|
-
/**
|
|
417
|
-
* @private
|
|
418
|
-
* @param {?} visit
|
|
419
|
-
* @return {?}
|
|
420
|
-
*/
|
|
421
263
|
createRouteParameters(visit) {
|
|
422
|
-
/** @type {?} */
|
|
423
264
|
const def = visit.placeDefinition;
|
|
424
265
|
return visit.hasRouteId() ?
|
|
425
266
|
[def.getFormattedRouteId(visit), def.getFormattedRouteParameters(visit)] :
|
|
426
267
|
[def.getFormattedRouteParameters(visit)];
|
|
427
268
|
}
|
|
428
|
-
}
|
|
429
|
-
PlaceRouter.decorators = [
|
|
430
|
-
{ type: Injectable, args: [{
|
|
431
|
-
providedIn: 'root'
|
|
432
|
-
},] }
|
|
433
|
-
];
|
|
434
|
-
/** @nocollapse */
|
|
269
|
+
};
|
|
435
270
|
PlaceRouter.ctorParameters = () => [
|
|
436
271
|
{ type: Router },
|
|
437
272
|
{ type: Location },
|
|
@@ -439,60 +274,16 @@ PlaceRouter.ctorParameters = () => [
|
|
|
439
274
|
{ type: UrlService },
|
|
440
275
|
{ type: PlaceHistory }
|
|
441
276
|
];
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
PlaceRouter.prototype.navigationContext;
|
|
455
|
-
/**
|
|
456
|
-
* @type {?}
|
|
457
|
-
* @private
|
|
458
|
-
*/
|
|
459
|
-
PlaceRouter.prototype._activeVisits;
|
|
460
|
-
/** @type {?} */
|
|
461
|
-
PlaceRouter.prototype.activeVisitsByPlaceDefinition;
|
|
462
|
-
/**
|
|
463
|
-
* @type {?}
|
|
464
|
-
* @private
|
|
465
|
-
*/
|
|
466
|
-
PlaceRouter.prototype.routerInteractionAdapter;
|
|
467
|
-
/**
|
|
468
|
-
* @type {?}
|
|
469
|
-
* @private
|
|
470
|
-
*/
|
|
471
|
-
PlaceRouter.prototype.sessionFinishedJobs;
|
|
472
|
-
/**
|
|
473
|
-
* @type {?}
|
|
474
|
-
* @private
|
|
475
|
-
*/
|
|
476
|
-
PlaceRouter.prototype.angularRouter;
|
|
477
|
-
/**
|
|
478
|
-
* @type {?}
|
|
479
|
-
* @private
|
|
480
|
-
*/
|
|
481
|
-
PlaceRouter.prototype.angularLocation;
|
|
482
|
-
/**
|
|
483
|
-
* @type {?}
|
|
484
|
-
* @private
|
|
485
|
-
*/
|
|
486
|
-
PlaceRouter.prototype.interactionService;
|
|
487
|
-
/**
|
|
488
|
-
* @type {?}
|
|
489
|
-
* @private
|
|
490
|
-
*/
|
|
491
|
-
PlaceRouter.prototype.urlService;
|
|
492
|
-
/**
|
|
493
|
-
* @type {?}
|
|
494
|
-
* @private
|
|
495
|
-
*/
|
|
496
|
-
PlaceRouter.prototype.placeHistory;
|
|
497
|
-
}
|
|
277
|
+
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" });
|
|
278
|
+
PlaceRouter = __decorate([
|
|
279
|
+
Injectable({
|
|
280
|
+
providedIn: 'root'
|
|
281
|
+
}),
|
|
282
|
+
__metadata("design:paramtypes", [Router,
|
|
283
|
+
Location,
|
|
284
|
+
InteractionService,
|
|
285
|
+
UrlService,
|
|
286
|
+
PlaceHistory])
|
|
287
|
+
], PlaceRouter);
|
|
288
|
+
export { PlaceRouter };
|
|
498
289
|
//# sourceMappingURL=place-router.js.map
|