@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,64 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
6
2
|
import { Component, HostBinding } from '@angular/core';
|
|
7
3
|
import { PlaceRouter } from '../../place-router';
|
|
8
4
|
import { AbstractPlaceNavigationComponent } from '../abstract-place-navigation.component';
|
|
9
5
|
var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
10
|
-
|
|
6
|
+
__extends(ListPlaceNavComponent, _super);
|
|
11
7
|
function ListPlaceNavComponent(placeRouter) {
|
|
12
8
|
var _this = _super.call(this, placeRouter) || this;
|
|
13
9
|
_this.expanded = true;
|
|
14
10
|
return _this;
|
|
15
11
|
}
|
|
16
|
-
|
|
17
|
-
* @return {?}
|
|
18
|
-
*/
|
|
19
|
-
ListPlaceNavComponent.prototype.expandMenu = /**
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
function () {
|
|
12
|
+
ListPlaceNavComponent.prototype.expandMenu = function () {
|
|
23
13
|
this.expanded = true;
|
|
24
14
|
};
|
|
25
|
-
|
|
26
|
-
* @return {?}
|
|
27
|
-
*/
|
|
28
|
-
ListPlaceNavComponent.prototype.collapseMenu = /**
|
|
29
|
-
* @return {?}
|
|
30
|
-
*/
|
|
31
|
-
function () {
|
|
15
|
+
ListPlaceNavComponent.prototype.collapseMenu = function () {
|
|
32
16
|
this.expanded = false;
|
|
33
17
|
};
|
|
34
|
-
|
|
35
|
-
* @return {?}
|
|
36
|
-
*/
|
|
37
|
-
ListPlaceNavComponent.prototype.toggleMenu = /**
|
|
38
|
-
* @return {?}
|
|
39
|
-
*/
|
|
40
|
-
function () {
|
|
18
|
+
ListPlaceNavComponent.prototype.toggleMenu = function () {
|
|
41
19
|
this.expanded = !this.expanded;
|
|
42
20
|
};
|
|
43
|
-
ListPlaceNavComponent.decorators = [
|
|
44
|
-
{ type: Component, args: [{
|
|
45
|
-
selector: 'aup-list-place-nav',
|
|
46
|
-
template: "<mat-nav-list class=\"app-menu\">\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <mat-icon *ngIf=\"getNav(placeDefinition).icon()\">{{getNav(placeDefinition).icon()}}</mat-icon>\n <span class=\"expanded-only\">{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
|
|
47
|
-
styles: [":host{display:flex;flex-direction:column;--expanded-width:235px;--nav-item-width:var(--nav-bar-height);width:var(--nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--expanded-width);max-width:var(--expanded-width)}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}.header{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;height:var(--nav-bar-height);border-bottom:var(--pinstripe-border);cursor:pointer}.header .menu{flex:1}.header button{color:inherit;width:var(--nav-item-width);height:var(--nav-bar-height)}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--nav-item-width);height:var(--nav-bar-height);color:rgba(0,0,0,.6)}.mat-list-item.active{background-color:rgba(0,0,0,.1);color:rgba(0,0,0,.9)}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item mat-icon{margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}a[ng-reflect-router-link=manage-instruments] mat-icon{transform:rotate(90deg)}.app-menu{padding-top:0}"]
|
|
48
|
-
}] }
|
|
49
|
-
];
|
|
50
|
-
/** @nocollapse */
|
|
51
21
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
52
22
|
{ type: PlaceRouter }
|
|
53
23
|
]; };
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
24
|
+
__decorate([
|
|
25
|
+
HostBinding('class.expanded'),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], ListPlaceNavComponent.prototype, "expanded", void 0);
|
|
28
|
+
ListPlaceNavComponent = __decorate([
|
|
29
|
+
Component({
|
|
30
|
+
selector: 'aup-list-place-nav',
|
|
31
|
+
template: "<mat-nav-list class=\"app-menu\">\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <mat-icon *ngIf=\"getNav(placeDefinition).icon()\">{{getNav(placeDefinition).icon()}}</mat-icon>\n <span class=\"expanded-only\">{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
|
|
32
|
+
styles: [":host{display:flex;flex-direction:column;--expanded-width:235px;--nav-item-width:var(--nav-bar-height);width:var(--nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--expanded-width);max-width:var(--expanded-width)}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}.header{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;height:var(--nav-bar-height);border-bottom:var(--pinstripe-border);cursor:pointer}.header .menu{flex:1}.header button{color:inherit;width:var(--nav-item-width);height:var(--nav-bar-height)}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--nav-item-width);height:var(--nav-bar-height);color:rgba(0,0,0,.6)}.mat-list-item.active{background-color:rgba(0,0,0,.1);color:rgba(0,0,0,.9)}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item mat-icon{margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}a[ng-reflect-router-link=manage-instruments] mat-icon{transform:rotate(90deg)}.app-menu{padding-top:0}"]
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:paramtypes", [PlaceRouter])
|
|
35
|
+
], ListPlaceNavComponent);
|
|
57
36
|
return ListPlaceNavComponent;
|
|
58
37
|
}(AbstractPlaceNavigationComponent));
|
|
59
38
|
export { ListPlaceNavComponent };
|
|
60
|
-
if (false) {
|
|
61
|
-
/** @type {?} */
|
|
62
|
-
ListPlaceNavComponent.prototype.expanded;
|
|
63
|
-
}
|
|
64
39
|
//# sourceMappingURL=list-place-nav.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-place-nav.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/components/list-place-nav/list-place-nav.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-place-nav.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/place/components/list-place-nav/list-place-nav.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAO1F;IAA2C,yCAAgC;IAKzE,+BAAY,WAAuB;QAAnC,YACE,kBAAM,WAAW,CAAC,SACnB;QAJM,cAAQ,GAAG,IAAI,CAAC;;IAIvB,CAAC;IAED,0CAAU,GAAV;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,4CAAY,GAAZ;QACE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,0CAAU,GAAV;QACE,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,CAAC;;gBAduB,WAAW;;IAFnC;QADC,WAAW,CAAC,gBAAgB,CAAC;;2DACP;IAHZ,qBAAqB;QALjC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,ufAA8C;;SAE/C,CAAC;yCAMwB,WAAW;OALxB,qBAAqB,CAoBjC;IAAD,4BAAC;CAAA,AApBD,CAA2C,gCAAgC,GAoB1E;SApBY,qBAAqB","sourcesContent":["import { Component, HostBinding } from '@angular/core';\nimport { PlaceRouter } from '../../place-router';\nimport { AbstractPlaceNavigationComponent } from '../abstract-place-navigation.component';\n\n@Component({\n selector: 'aup-list-place-nav',\n templateUrl: './list-place-nav.component.html',\n styleUrls: ['./list-place-nav.component.scss']\n})\nexport class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {\n\n @HostBinding('class.expanded')\n public expanded = true;\n\n constructor(placeRouter:PlaceRouter) {\n super(placeRouter);\n }\n\n expandMenu() {\n this.expanded = true;\n }\n\n collapseMenu() {\n this.expanded = false;\n }\n\n toggleMenu() {\n this.expanded = !this.expanded;\n }\n}\n"]}
|
|
@@ -1,35 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __decorate, __extends, __metadata, __param } from "tslib";
|
|
6
2
|
import { Component, EventEmitter, Inject, Input, Optional, Output, SkipSelf, ViewChild } from '@angular/core';
|
|
7
|
-
import { Router, RouterOutlet } from '@angular/router';
|
|
3
|
+
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
8
4
|
import { DebugContext, Dsl, lang, ListModel, MutableValueModel, StoreInListModel, StoreInValueModel, UseDelegate, ValueModel } from '@coolon/pectin';
|
|
9
5
|
import * as _ from 'lodash';
|
|
10
6
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
11
7
|
import { AUP_PLACE_CONFIG } from '../../place-config';
|
|
12
8
|
import { PlaceRouter } from '../../place-router';
|
|
13
9
|
import { LEFT_RIGHT_PLACE_ANIMATION } from './route-animations';
|
|
14
|
-
/**
|
|
15
|
-
* @record
|
|
16
|
-
*/
|
|
17
|
-
function PlaceRef() { }
|
|
18
|
-
if (false) {
|
|
19
|
-
/** @type {?} */
|
|
20
|
-
PlaceRef.prototype.placeDefinition;
|
|
21
|
-
/**
|
|
22
|
-
* @param {?} param
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
PlaceRef.prototype.initialiseBindings = function (param) { };
|
|
26
|
-
/**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
PlaceRef.prototype.onPlaceReady = function () { };
|
|
30
|
-
}
|
|
31
10
|
var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
32
|
-
|
|
11
|
+
__extends(PlaceOutletComponent, _super);
|
|
33
12
|
function PlaceOutletComponent(router, placeRouter, placeConfig, parentOutlet) {
|
|
34
13
|
var _this = _super.call(this) || this;
|
|
35
14
|
_this.router = router;
|
|
@@ -43,30 +22,15 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
43
22
|
_this._isPushingVisitToRoute = new MutableValueModel(false);
|
|
44
23
|
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
45
24
|
_this.parentOutletModel = new MutableValueModel(parentOutlet);
|
|
46
|
-
/** @type {?} */
|
|
47
25
|
var defaultPlaceAnimationOrder = chain(_this.parentOutletModel)
|
|
48
|
-
.pullValueModel((
|
|
49
|
-
* @param {?} o
|
|
50
|
-
* @return {?}
|
|
51
|
-
*/
|
|
52
|
-
function (o) { return o.activePlaceModel; }))
|
|
26
|
+
.pullValueModel(function (o) { return o.activePlaceModel; })
|
|
53
27
|
.pluck('placeDefinition')
|
|
54
28
|
.pluckList('children')
|
|
55
29
|
.pluck('component');
|
|
56
|
-
|
|
57
|
-
var activatePlaceType = chain(_this.activePlaceModel).map((/**
|
|
58
|
-
* @param {?} p
|
|
59
|
-
* @return {?}
|
|
60
|
-
*/
|
|
61
|
-
function (p) { return (/** @type {?} */ (p.constructor)); }));
|
|
30
|
+
var activatePlaceType = chain(_this.activePlaceModel).map(function (p) { return p.constructor; });
|
|
62
31
|
_this.placeAnimationOrder = chain(_this.customPlaceAnimationOrderModel)
|
|
63
32
|
.otherwise(defaultPlaceAnimationOrder)
|
|
64
|
-
.reduce((
|
|
65
|
-
* @param {?} placesInOrder
|
|
66
|
-
* @return {?}
|
|
67
|
-
*/
|
|
68
|
-
function (placesInOrder) {
|
|
69
|
-
/** @type {?} */
|
|
33
|
+
.reduce(function (placesInOrder) {
|
|
70
34
|
var placeIndex = 0;
|
|
71
35
|
if (activatePlaceType.value) {
|
|
72
36
|
placeIndex = placesInOrder.indexOf(activatePlaceType.value);
|
|
@@ -75,166 +39,80 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
75
39
|
}
|
|
76
40
|
}
|
|
77
41
|
return _.isNil(_this.initialPlaceIndex) ? 0 : placeIndex - _this.initialPlaceIndex;
|
|
78
|
-
}
|
|
42
|
+
}, { dependsOn: activatePlaceType });
|
|
79
43
|
// Extract our visit model from the place router.
|
|
80
44
|
_this._activePlaceDefinition = chain(_this._activePlaceModel).pluck('placeDefinition');
|
|
81
45
|
_this.routerVisitModel = _this._activePlaceDefinition.findIn(chain(placeRouter.activeVisitsByPlaceDefinition));
|
|
82
46
|
_this.navigationInProgress = chain(_this.placeRouter.navigationInProgress);
|
|
83
|
-
when.valueOf(_this.navigationInProgress).becomesFalsey((
|
|
84
|
-
* @return {?}
|
|
85
|
-
*/
|
|
86
|
-
function () {
|
|
47
|
+
when.valueOf(_this.navigationInProgress).becomesFalsey(function () {
|
|
87
48
|
_this.checkStateAndInitialise();
|
|
88
|
-
})
|
|
89
|
-
when.valueOf(_this.outletActivated).becomesTruthy((
|
|
90
|
-
* @return {?}
|
|
91
|
-
*/
|
|
92
|
-
function () {
|
|
49
|
+
});
|
|
50
|
+
when.valueOf(_this.outletActivated).becomesTruthy(function () {
|
|
93
51
|
_this.checkStateAndInitialise();
|
|
94
|
-
})
|
|
52
|
+
});
|
|
95
53
|
chain(_this._activePlaceModel)
|
|
96
54
|
.postponeWhile(_this.navigationInProgress)
|
|
97
|
-
.subscribe((
|
|
98
|
-
* @param {?} place
|
|
99
|
-
* @return {?}
|
|
100
|
-
*/
|
|
101
|
-
function (place) { return _this.placeChanged.emit(place); }));
|
|
55
|
+
.subscribe(function (place) { return _this.placeChanged.emit(place); });
|
|
102
56
|
return _this;
|
|
103
57
|
}
|
|
104
58
|
// @Trace()
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @return {?}
|
|
108
|
-
*/
|
|
109
|
-
PlaceOutletComponent.prototype.ngOnInit =
|
|
110
|
-
// @Trace()
|
|
111
|
-
/**
|
|
112
|
-
* @return {?}
|
|
113
|
-
*/
|
|
114
|
-
function () {
|
|
59
|
+
PlaceOutletComponent.prototype.ngOnInit = function () {
|
|
115
60
|
};
|
|
116
61
|
// @Trace()
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @return {?}
|
|
120
|
-
*/
|
|
121
|
-
PlaceOutletComponent.prototype.getAnimationOrder =
|
|
122
|
-
// @Trace()
|
|
123
|
-
/**
|
|
124
|
-
* @return {?}
|
|
125
|
-
*/
|
|
126
|
-
function () {
|
|
62
|
+
PlaceOutletComponent.prototype.getAnimationOrder = function () {
|
|
127
63
|
return this.placeAnimationOrder.value;
|
|
128
64
|
};
|
|
129
65
|
Object.defineProperty(PlaceOutletComponent.prototype, "animationDuration", {
|
|
130
|
-
get:
|
|
131
|
-
* @return {?}
|
|
132
|
-
*/
|
|
133
|
-
function () {
|
|
66
|
+
get: function () {
|
|
134
67
|
return this.placeConfig && this.placeConfig.animationDuration ? this.placeConfig.animationDuration : '500ms';
|
|
135
68
|
},
|
|
136
69
|
enumerable: true,
|
|
137
70
|
configurable: true
|
|
138
71
|
});
|
|
139
72
|
// @Trace()
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @param {?} visit
|
|
143
|
-
* @return {?}
|
|
144
|
-
*/
|
|
145
|
-
PlaceOutletComponent.prototype.navigate =
|
|
146
|
-
// @Trace()
|
|
147
|
-
/**
|
|
148
|
-
* @param {?} visit
|
|
149
|
-
* @return {?}
|
|
150
|
-
*/
|
|
151
|
-
function (visit) {
|
|
73
|
+
PlaceOutletComponent.prototype.navigate = function (visit) {
|
|
152
74
|
// console.log({ activatedRoute: this._activatedRouteModel.value });
|
|
153
75
|
this.placeRouter.navigate(visit, {
|
|
154
76
|
relativeTo: this.parentOutlet ? this.parentOutlet.activatedRouteModel.value : null
|
|
155
77
|
});
|
|
156
78
|
};
|
|
157
79
|
Object.defineProperty(PlaceOutletComponent.prototype, "parentOutlet", {
|
|
158
|
-
get:
|
|
159
|
-
* @return {?}
|
|
160
|
-
*/
|
|
161
|
-
function () {
|
|
80
|
+
get: function () {
|
|
162
81
|
return this.parentOutletModel.value;
|
|
163
82
|
},
|
|
164
83
|
enumerable: true,
|
|
165
84
|
configurable: true
|
|
166
85
|
});
|
|
167
86
|
Object.defineProperty(PlaceOutletComponent.prototype, "activePlaceModel", {
|
|
168
|
-
get:
|
|
169
|
-
* @return {?}
|
|
170
|
-
*/
|
|
171
|
-
function () {
|
|
87
|
+
get: function () {
|
|
172
88
|
return this._activePlaceModel.readonly;
|
|
173
89
|
},
|
|
174
90
|
enumerable: true,
|
|
175
91
|
configurable: true
|
|
176
92
|
});
|
|
177
93
|
Object.defineProperty(PlaceOutletComponent.prototype, "activatedRouteModel", {
|
|
178
|
-
get:
|
|
179
|
-
* @return {?}
|
|
180
|
-
*/
|
|
181
|
-
function () {
|
|
94
|
+
get: function () {
|
|
182
95
|
return this._activatedRouteModel.readonly;
|
|
183
96
|
},
|
|
184
97
|
enumerable: true,
|
|
185
98
|
configurable: true
|
|
186
99
|
});
|
|
187
100
|
// @Trace()
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @param {?} routerOutlet
|
|
191
|
-
* @param {?} place
|
|
192
|
-
* @return {?}
|
|
193
|
-
*/
|
|
194
|
-
PlaceOutletComponent.prototype.onOutletActivated =
|
|
195
|
-
// @Trace()
|
|
196
|
-
/**
|
|
197
|
-
* @param {?} routerOutlet
|
|
198
|
-
* @param {?} place
|
|
199
|
-
* @return {?}
|
|
200
|
-
*/
|
|
201
|
-
function (routerOutlet, place) {
|
|
101
|
+
PlaceOutletComponent.prototype.onOutletActivated = function (routerOutlet, place) {
|
|
202
102
|
this._activatedRouteModel.value = routerOutlet.activatedRoute;
|
|
203
103
|
this._activePlaceModel.value = place;
|
|
204
104
|
this.outletActivated.value = true;
|
|
205
105
|
this.checkStateAndInitialise();
|
|
206
106
|
};
|
|
207
107
|
// @Trace()
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @return {?}
|
|
211
|
-
*/
|
|
212
|
-
PlaceOutletComponent.prototype.onOutletDeactivated =
|
|
213
|
-
// @Trace()
|
|
214
|
-
/**
|
|
215
|
-
* @return {?}
|
|
216
|
-
*/
|
|
217
|
-
function () {
|
|
108
|
+
PlaceOutletComponent.prototype.onOutletDeactivated = function () {
|
|
218
109
|
this.outletActivated.value = false;
|
|
219
110
|
this._activePlaceModel.value = null;
|
|
220
111
|
this._activatedRouteModel.value = null;
|
|
221
112
|
};
|
|
222
113
|
// @Trace()
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @private
|
|
226
|
-
* @return {?}
|
|
227
|
-
*/
|
|
228
|
-
PlaceOutletComponent.prototype.checkStateAndInitialise =
|
|
229
|
-
// @Trace()
|
|
230
|
-
/**
|
|
231
|
-
* @private
|
|
232
|
-
* @return {?}
|
|
233
|
-
*/
|
|
234
|
-
function () {
|
|
235
|
-
/** @type {?} */
|
|
114
|
+
PlaceOutletComponent.prototype.checkStateAndInitialise = function () {
|
|
236
115
|
var routerVisit = this.routerVisitModel.value;
|
|
237
|
-
/** @type {?} */
|
|
238
116
|
var activePlace = this.activePlaceModel.value;
|
|
239
117
|
if (routerVisit && activePlace && !activePlace.isInitialised()) {
|
|
240
118
|
if (routerVisit.placeDefinition !== activePlace.placeDefinition) {
|
|
@@ -244,213 +122,85 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
244
122
|
}
|
|
245
123
|
};
|
|
246
124
|
// @Trace()
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @private
|
|
250
|
-
* @param {?} routerVisit
|
|
251
|
-
* @param {?} activePlace
|
|
252
|
-
* @return {?}
|
|
253
|
-
*/
|
|
254
|
-
PlaceOutletComponent.prototype.initialisePlace =
|
|
255
|
-
// @Trace()
|
|
256
|
-
/**
|
|
257
|
-
* @private
|
|
258
|
-
* @param {?} routerVisit
|
|
259
|
-
* @param {?} activePlace
|
|
260
|
-
* @return {?}
|
|
261
|
-
*/
|
|
262
|
-
function (routerVisit, activePlace) {
|
|
125
|
+
PlaceOutletComponent.prototype.initialisePlace = function (routerVisit, activePlace) {
|
|
263
126
|
var _this = this;
|
|
264
|
-
/** @type {?} */
|
|
265
127
|
var visitModel = new MutableValueModel(routerVisit);
|
|
266
128
|
DebugContext.tag(visitModel, "PlaceOutletComponent[" + activePlace.constructor.name + ")].visitModel");
|
|
267
|
-
activePlace.initialiseVisit(routerVisit, (
|
|
268
|
-
* @param {?} current
|
|
269
|
-
* @param {?} previous
|
|
270
|
-
* @return {?}
|
|
271
|
-
*/
|
|
272
|
-
function (current, previous) {
|
|
129
|
+
activePlace.initialiseVisit(routerVisit, function (current, previous) {
|
|
273
130
|
_this.pushVisitChangeToRoute(previous, current);
|
|
274
|
-
})
|
|
131
|
+
});
|
|
275
132
|
if (!this.animateModel.value) {
|
|
276
133
|
// we're not animating so trigger any post animation callbacks now.
|
|
277
134
|
this.animationDone();
|
|
278
135
|
}
|
|
279
136
|
var _a = Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
|
|
280
137
|
when.valueOf(this.routerVisitModel)
|
|
281
|
-
.changes((
|
|
282
|
-
* @param {?} visit
|
|
283
|
-
* @return {?}
|
|
284
|
-
*/
|
|
285
|
-
function (visit) {
|
|
138
|
+
.changes(function (visit) {
|
|
286
139
|
activePlace.updateVisit(visit);
|
|
287
|
-
}
|
|
140
|
+
}, {
|
|
288
141
|
unless: valueOf.any(this._isPushingVisitToRoute, this.routerVisitModel.isNil()).areTruthy()
|
|
289
142
|
});
|
|
290
143
|
};
|
|
291
|
-
|
|
292
|
-
* @private
|
|
293
|
-
* @param {?} previous
|
|
294
|
-
* @param {?} current
|
|
295
|
-
* @return {?}
|
|
296
|
-
*/
|
|
297
|
-
PlaceOutletComponent.prototype.pushVisitChangeToRoute = /**
|
|
298
|
-
* @private
|
|
299
|
-
* @param {?} previous
|
|
300
|
-
* @param {?} current
|
|
301
|
-
* @return {?}
|
|
302
|
-
*/
|
|
303
|
-
function (previous, current) {
|
|
144
|
+
PlaceOutletComponent.prototype.pushVisitChangeToRoute = function (previous, current) {
|
|
304
145
|
var _this = this;
|
|
305
146
|
this._isPushingVisitToRoute.value = true;
|
|
306
|
-
this.placeRouter.pushVisitChangesToRoute(previous, current).finally((
|
|
307
|
-
* @return {?}
|
|
308
|
-
*/
|
|
309
|
-
function () {
|
|
147
|
+
this.placeRouter.pushVisitChangesToRoute(previous, current).finally(function () {
|
|
310
148
|
_this._isPushingVisitToRoute.value = false;
|
|
311
|
-
})
|
|
149
|
+
});
|
|
312
150
|
};
|
|
313
151
|
// @Trace()
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* @return {?}
|
|
317
|
-
*/
|
|
318
|
-
PlaceOutletComponent.prototype.animationStarted =
|
|
319
|
-
// @Trace()
|
|
320
|
-
/**
|
|
321
|
-
* @return {?}
|
|
322
|
-
*/
|
|
323
|
-
function () {
|
|
152
|
+
PlaceOutletComponent.prototype.animationStarted = function () {
|
|
324
153
|
// console.log({ activePlace: this._activePlaceModel.value });
|
|
325
154
|
};
|
|
326
155
|
// @Trace()
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* @return {?}
|
|
330
|
-
*/
|
|
331
|
-
PlaceOutletComponent.prototype.animationDone =
|
|
332
|
-
// @Trace()
|
|
333
|
-
/**
|
|
334
|
-
* @return {?}
|
|
335
|
-
*/
|
|
336
|
-
function () {
|
|
156
|
+
PlaceOutletComponent.prototype.animationDone = function () {
|
|
337
157
|
if (this._activePlaceModel.value) {
|
|
338
158
|
this._activePlaceModel.value.onPlaceReady();
|
|
339
159
|
}
|
|
340
160
|
};
|
|
341
|
-
PlaceOutletComponent.decorators = [
|
|
342
|
-
{ type: Component, args: [{
|
|
343
|
-
selector: 'aup-place-outlet',
|
|
344
|
-
template: "<ng-container *ngIf=\"animateModel.value\">\n <div class=\"router-outlet-container\"\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animateModel.value\">\n <div class=\"router-outlet-container\">\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n",
|
|
345
|
-
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
346
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0;overflow-x:hidden}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
|
|
347
|
-
}] }
|
|
348
|
-
];
|
|
349
|
-
/** @nocollapse */
|
|
350
161
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
351
162
|
{ type: Router },
|
|
352
163
|
{ type: PlaceRouter },
|
|
353
164
|
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [AUP_PLACE_CONFIG,] }] },
|
|
354
165
|
{ type: PlaceOutletComponent, decorators: [{ type: SkipSelf }, { type: Optional }] }
|
|
355
166
|
]; };
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
customPlaceAnimationOrderModel: [{ type: Input, args: ['placeAnimationOrderModel',] }],
|
|
360
|
-
customPlaceAnimationOrder: [{ type: Input, args: ['placeAnimationOrder',] }],
|
|
361
|
-
placeChanged: [{ type: Output }],
|
|
362
|
-
routerOut: [{ type: ViewChild, args: ['routeOutlet', { static: true },] }]
|
|
363
|
-
};
|
|
364
|
-
tslib_1.__decorate([
|
|
365
|
-
StoreInValueModel('animateModel'),
|
|
366
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
167
|
+
__decorate([
|
|
168
|
+
Input(), StoreInValueModel('animateModel'),
|
|
169
|
+
__metadata("design:type", Boolean)
|
|
367
170
|
], PlaceOutletComponent.prototype, "animate", void 0);
|
|
368
|
-
|
|
369
|
-
UseDelegate({ defaultValue: true }),
|
|
370
|
-
|
|
171
|
+
__decorate([
|
|
172
|
+
Input(), UseDelegate({ defaultValue: true }),
|
|
173
|
+
__metadata("design:type", ValueModel)
|
|
371
174
|
], PlaceOutletComponent.prototype, "animateModel", void 0);
|
|
372
|
-
|
|
373
|
-
UseDelegate(),
|
|
374
|
-
|
|
175
|
+
__decorate([
|
|
176
|
+
Input('placeAnimationOrderModel'), UseDelegate(),
|
|
177
|
+
__metadata("design:type", ListModel)
|
|
375
178
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrderModel", void 0);
|
|
376
|
-
|
|
377
|
-
StoreInListModel('customPlaceAnimationOrderModel'),
|
|
378
|
-
|
|
179
|
+
__decorate([
|
|
180
|
+
Input('placeAnimationOrder'), StoreInListModel('customPlaceAnimationOrderModel'),
|
|
181
|
+
__metadata("design:type", Array)
|
|
379
182
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrder", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
Output(),
|
|
185
|
+
__metadata("design:type", Object)
|
|
186
|
+
], PlaceOutletComponent.prototype, "placeChanged", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
ViewChild('routeOutlet', { static: true }),
|
|
189
|
+
__metadata("design:type", RouterOutlet)
|
|
190
|
+
], PlaceOutletComponent.prototype, "routerOut", void 0);
|
|
191
|
+
PlaceOutletComponent = __decorate([
|
|
192
|
+
Component({
|
|
193
|
+
selector: 'aup-place-outlet',
|
|
194
|
+
template: "<ng-container *ngIf=\"animateModel.value\">\n <div class=\"router-outlet-container\"\n [@routeAnimations]=\"{value: getAnimationOrder(), params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n >\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!animateModel.value\">\n <div class=\"router-outlet-container\">\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n </div>\n</ng-container>\n\n",
|
|
195
|
+
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
196
|
+
styles: [":host{display:flex;flex-direction:column;min-height:0;overflow-x:hidden}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
|
|
197
|
+
}),
|
|
198
|
+
__param(2, Optional()), __param(2, Inject(AUP_PLACE_CONFIG)),
|
|
199
|
+
__param(3, SkipSelf()), __param(3, Optional()),
|
|
200
|
+
__metadata("design:paramtypes", [Router,
|
|
201
|
+
PlaceRouter, Object, PlaceOutletComponent])
|
|
202
|
+
], PlaceOutletComponent);
|
|
380
203
|
return PlaceOutletComponent;
|
|
381
204
|
}(DisposableComponent));
|
|
382
205
|
export { PlaceOutletComponent };
|
|
383
|
-
if (false) {
|
|
384
|
-
/** @type {?} */
|
|
385
|
-
PlaceOutletComponent.prototype.animate;
|
|
386
|
-
/** @type {?} */
|
|
387
|
-
PlaceOutletComponent.prototype.animateModel;
|
|
388
|
-
/** @type {?} */
|
|
389
|
-
PlaceOutletComponent.prototype.customPlaceAnimationOrderModel;
|
|
390
|
-
/** @type {?} */
|
|
391
|
-
PlaceOutletComponent.prototype.customPlaceAnimationOrder;
|
|
392
|
-
/** @type {?} */
|
|
393
|
-
PlaceOutletComponent.prototype.placeChanged;
|
|
394
|
-
/** @type {?} */
|
|
395
|
-
PlaceOutletComponent.prototype.routerOut;
|
|
396
|
-
/**
|
|
397
|
-
* @type {?}
|
|
398
|
-
* @private
|
|
399
|
-
*/
|
|
400
|
-
PlaceOutletComponent.prototype.outletActivated;
|
|
401
|
-
/**
|
|
402
|
-
* @type {?}
|
|
403
|
-
* @private
|
|
404
|
-
*/
|
|
405
|
-
PlaceOutletComponent.prototype._activatedRouteModel;
|
|
406
|
-
/**
|
|
407
|
-
* @type {?}
|
|
408
|
-
* @private
|
|
409
|
-
*/
|
|
410
|
-
PlaceOutletComponent.prototype._activePlaceModel;
|
|
411
|
-
/**
|
|
412
|
-
* @type {?}
|
|
413
|
-
* @private
|
|
414
|
-
*/
|
|
415
|
-
PlaceOutletComponent.prototype._activePlaceDefinition;
|
|
416
|
-
/**
|
|
417
|
-
* @type {?}
|
|
418
|
-
* @private
|
|
419
|
-
*/
|
|
420
|
-
PlaceOutletComponent.prototype.parentOutletModel;
|
|
421
|
-
/** @type {?} */
|
|
422
|
-
PlaceOutletComponent.prototype.placeAnimationOrder;
|
|
423
|
-
/**
|
|
424
|
-
* @type {?}
|
|
425
|
-
* @private
|
|
426
|
-
*/
|
|
427
|
-
PlaceOutletComponent.prototype.initialPlaceIndex;
|
|
428
|
-
/**
|
|
429
|
-
* @type {?}
|
|
430
|
-
* @private
|
|
431
|
-
*/
|
|
432
|
-
PlaceOutletComponent.prototype.routerVisitModel;
|
|
433
|
-
/**
|
|
434
|
-
* @type {?}
|
|
435
|
-
* @private
|
|
436
|
-
*/
|
|
437
|
-
PlaceOutletComponent.prototype._isPushingVisitToRoute;
|
|
438
|
-
/**
|
|
439
|
-
* @type {?}
|
|
440
|
-
* @private
|
|
441
|
-
*/
|
|
442
|
-
PlaceOutletComponent.prototype.navigationInProgress;
|
|
443
|
-
/**
|
|
444
|
-
* @type {?}
|
|
445
|
-
* @private
|
|
446
|
-
*/
|
|
447
|
-
PlaceOutletComponent.prototype.router;
|
|
448
|
-
/**
|
|
449
|
-
* @type {?}
|
|
450
|
-
* @private
|
|
451
|
-
*/
|
|
452
|
-
PlaceOutletComponent.prototype.placeRouter;
|
|
453
|
-
/** @type {?} */
|
|
454
|
-
PlaceOutletComponent.prototype.placeConfig;
|
|
455
|
-
}
|
|
456
206
|
//# sourceMappingURL=place-outlet.component.js.map
|