@coolon/angular-ui-powerups 0.0.125 → 0.0.128
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/bundles/coolon-angular-ui-powerups.umd.js +3743 -3012
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +17 -18
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +16 -17
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/index.js +1 -1
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js +104 -0
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -0
- package/esm2015/lib/interaction/abstract-interaction-context.metadata.json +1 -0
- package/esm2015/lib/interaction/activity-ref.js +123 -0
- package/esm2015/lib/interaction/activity-ref.js.map +1 -0
- package/esm2015/lib/interaction/activity-ref.metadata.json +1 -0
- package/esm2015/lib/interaction/activity.js +21 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +199 -230
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/{activity-outlet → activity-container/activity-outlet}/activity-outlet.component.js +24 -31
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +2 -3
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +4 -11
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +2 -3
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +113 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/index.js +7 -6
- package/esm2015/lib/interaction/index.js.map +1 -1
- package/esm2015/lib/interaction/index.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction-context.js +12 -67
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +4 -4
- 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/route-synchronisation-adapter.js +17 -0
- package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -0
- package/esm2015/lib/interaction/route-synchronisation-adapter.metadata.json +1 -0
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js +72 -0
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -0
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.metadata.json +1 -0
- package/esm2015/lib/interaction/services/interaction.service.js +174 -104
- 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 +4 -2
- 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 +79 -87
- 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 +3 -1
- package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +27 -6
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +9 -3
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +98 -110
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +9 -3
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +14 -13
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/guards/place.guard.metadata.json +1 -1
- package/esm2015/lib/place/index.js +15 -2
- package/esm2015/lib/place/index.js.map +1 -1
- package/esm2015/lib/place/index.metadata.json +1 -1
- package/esm2015/lib/place/{guards → navigation}/place-component-deactivation-handler.js +28 -22
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -0
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js +37 -0
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -0
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +19 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +95 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +132 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +123 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -0
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js +62 -0
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -0
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +48 -0
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -0
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +104 -0
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -0
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +141 -0
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -0
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/navigating.js +54 -0
- package/esm2015/lib/place/navigation/session/navigating.js.map +1 -0
- package/esm2015/lib/place/navigation/session/navigating.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/navigation-context.js +38 -0
- package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -0
- package/esm2015/lib/place/navigation/session/navigation-context.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/navigation-session.js +326 -0
- package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -0
- package/esm2015/lib/place/navigation/session/navigation-session.metadata.json +1 -0
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js +31 -0
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -0
- package/esm2015/lib/place/navigation/session/pop-state-navigation.metadata.json +1 -0
- package/esm2015/lib/place/place-component.js +47 -22
- 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-router.js +314 -309
- 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.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/parameter-decorators.js +1 -0
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
- package/esm2015/lib/place/url-service.js +126 -0
- package/esm2015/lib/place/url-service.js.map +1 -0
- package/esm2015/lib/place/url-service.metadata.json +1 -0
- package/esm2015/lib/place/url-service.ngfactory.js.map +1 -0
- package/esm2015/lib/place/url-snapshot.js +15 -1
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +10 -0
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/esm2015/public_api.js +2 -2
- package/esm2015/public_api.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +16 -17
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/index.js +1 -1
- package/esm5/index.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/abstract-interaction-context.js +146 -0
- package/esm5/lib/interaction/abstract-interaction-context.js.map +1 -0
- package/esm5/lib/interaction/activity-ref.js +153 -0
- package/esm5/lib/interaction/activity-ref.js.map +1 -0
- package/esm5/lib/interaction/activity.js +29 -1
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +273 -265
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/{activity-outlet → activity-container/activity-outlet}/activity-outlet.component.js +25 -32
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -0
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +2 -3
- 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 +4 -10
- 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 +2 -3
- 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 +158 -0
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -0
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/interaction/index.js +7 -6
- package/esm5/lib/interaction/index.js.map +1 -1
- package/esm5/lib/interaction/interaction-context.js +12 -106
- package/esm5/lib/interaction/interaction-context.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.js +4 -4
- 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/route-synchronisation-adapter.js +17 -0
- package/esm5/lib/interaction/route-synchronisation-adapter.js.map +1 -0
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +98 -0
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -0
- package/esm5/lib/interaction/services/interaction.service.js +243 -117
- package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +6 -2
- 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 +96 -107
- 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 +3 -1
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +24 -6
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +6 -3
- 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 +130 -129
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +6 -3
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/guards/place.guard.js +17 -13
- package/esm5/lib/place/guards/place.guard.js.map +1 -1
- package/esm5/lib/place/index.js +15 -2
- package/esm5/lib/place/index.js.map +1 -1
- package/esm5/lib/place/{guards → navigation}/place-component-deactivation-handler.js +45 -21
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +1 -0
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +49 -0
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -0
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +36 -0
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -0
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +151 -0
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -0
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +221 -0
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -0
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +186 -0
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -0
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +107 -0
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -0
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +77 -0
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -0
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +167 -0
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -0
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +185 -0
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -0
- package/esm5/lib/place/navigation/session/navigating.js +75 -0
- package/esm5/lib/place/navigation/session/navigating.js.map +1 -0
- package/esm5/lib/place/navigation/session/navigation-context.js +32 -0
- package/esm5/lib/place/navigation/session/navigation-context.js.map +1 -0
- package/esm5/lib/place/navigation/session/navigation-session.js +450 -0
- package/esm5/lib/place/navigation/session/navigation-session.js.map +1 -0
- package/esm5/lib/place/navigation/session/pop-state-navigation.js +50 -0
- package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +1 -0
- package/esm5/lib/place/place-component.js +66 -25
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place-router.js +414 -401
- package/esm5/lib/place/place-router.js.map +1 -1
- 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/parameter-decorators.js +1 -0
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm5/lib/place/url-service.js +176 -0
- package/esm5/lib/place/url-service.js.map +1 -0
- package/esm5/lib/place/url-service.ngfactory.js.map +1 -0
- package/esm5/lib/place/url-snapshot.js +22 -1
- package/esm5/lib/place/url-snapshot.js.map +1 -1
- package/esm5/lib/place/visit.js +14 -0
- package/esm5/lib/place/visit.js.map +1 -1
- package/esm5/public_api.js +2 -2
- package/esm5/public_api.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +2641 -2268
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +3703 -2984
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/abstract-interaction-context.d.ts +24 -0
- package/lib/interaction/activity-ref.d.ts +19 -0
- package/lib/interaction/activity.d.ts +5 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +42 -43
- package/lib/interaction/components/{activity-outlet → activity-container/activity-outlet}/activity-outlet.component.d.ts +7 -10
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +2 -2
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -5
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +24 -0
- package/lib/interaction/index.d.ts +6 -5
- package/lib/interaction/interaction-context.d.ts +8 -29
- package/lib/interaction/route-synchronisation-adapter.d.ts +5 -0
- package/lib/interaction/services/interaction-service-routing-adapter.d.ts +15 -0
- package/lib/interaction/services/interaction.service.d.ts +52 -24
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +15 -12
- package/lib/interaction/services/modal-interaction-context.factory.d.ts +2 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +5 -3
- package/lib/place/components/list-place-nav/list-place-nav.component.d.ts +2 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +9 -10
- package/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +2 -1
- package/lib/place/guards/place.guard.d.ts +4 -3
- package/lib/place/index.d.ts +15 -2
- package/lib/place/navigation/place-component-deactivation-handler.d.ts +22 -0
- package/lib/place/navigation/session/abstract-pop-state-navigation.d.ts +9 -0
- package/lib/place/navigation/session/event-cleanup/event-clean-up-session.d.ts +4 -0
- package/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.d.ts +27 -0
- package/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.d.ts +43 -0
- package/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.d.ts +33 -0
- package/lib/place/navigation/session/interactions/navigating-during-interaction.d.ts +15 -0
- package/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.d.ts +17 -0
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +24 -0
- package/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.d.ts +15 -0
- package/lib/place/navigation/session/navigating.d.ts +11 -0
- package/lib/place/navigation/session/navigation-context.d.ts +28 -0
- package/lib/place/navigation/session/navigation-session.d.ts +51 -0
- package/lib/place/navigation/session/pop-state-navigation.d.ts +7 -0
- package/lib/place/place-component.d.ts +6 -3
- package/lib/place/place-router.d.ts +39 -35
- package/lib/place/url-service.d.ts +30 -0
- package/lib/place/url-snapshot.d.ts +3 -1
- package/lib/place/visit.d.ts +1 -0
- package/package.json +1 -1
- package/schematics/place-routes/templates/place-routes.ts.template +4 -3
- package/esm2015/lib/interaction/abstract-activity.js +0 -13
- package/esm2015/lib/interaction/abstract-activity.js.map +0 -1
- package/esm2015/lib/interaction/abstract-activity.metadata.json +0 -1
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.js +0 -21
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.js.map +0 -1
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet-context.metadata.json +0 -1
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.js.map +0 -1
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js +0 -102
- package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js.map +0 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.metadata.json +0 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.ngfactory.js.map +0 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/interaction/interaction-context-base.js +0 -171
- package/esm2015/lib/interaction/interaction-context-base.js.map +0 -1
- package/esm2015/lib/interaction/interaction-context-base.metadata.json +0 -1
- package/esm2015/lib/place/guards/navigation-state.js +0 -1118
- package/esm2015/lib/place/guards/navigation-state.js.map +0 -1
- package/esm2015/lib/place/guards/navigation-state.metadata.json +0 -1
- package/esm2015/lib/place/guards/place-component-deactivation-handler.js.map +0 -1
- package/esm2015/lib/place/guards/place-component-deactivation-handler.metadata.json +0 -1
- package/esm5/lib/interaction/abstract-activity.js +0 -30
- package/esm5/lib/interaction/abstract-activity.js.map +0 -1
- package/esm5/lib/interaction/components/activity-outlet/activity-outlet-context.js +0 -21
- package/esm5/lib/interaction/components/activity-outlet/activity-outlet-context.js.map +0 -1
- package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.js.map +0 -1
- package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/activity-outlet/activity-outlet.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js +0 -119
- package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.js.map +0 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.ngfactory.js.map +0 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/interaction/interaction-context-base.js +0 -228
- package/esm5/lib/interaction/interaction-context-base.js.map +0 -1
- package/esm5/lib/place/guards/navigation-state.js +0 -1491
- package/esm5/lib/place/guards/navigation-state.js.map +0 -1
- package/esm5/lib/place/guards/place-component-deactivation-handler.js.map +0 -1
- package/lib/interaction/abstract-activity.d.ts +0 -6
- package/lib/interaction/components/activity-outlet/activity-outlet-context.d.ts +0 -7
- package/lib/interaction/components/inplace-interaction-context/inplace-interaction-context.component.d.ts +0 -17
- package/lib/interaction/interaction-context-base.d.ts +0 -29
- package/lib/place/guards/navigation-state.d.ts +0 -228
- package/lib/place/guards/place-component-deactivation-handler.d.ts +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"InteractionContext":{"__symbolic":"
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"InteractionContext":{"__symbolic":"interface"}}}]
|
|
@@ -8,11 +8,11 @@ import { NgModule } from '@angular/core';
|
|
|
8
8
|
import { MatButtonModule, MatDialogModule, MatTabsModule } from '@angular/material';
|
|
9
9
|
import { RouterModule } from '@angular/router';
|
|
10
10
|
import { ActivityContainerComponent } from './components/activity-container/activity-container.component';
|
|
11
|
-
import { ActivityOutletComponent } from './components/activity-outlet/activity-outlet.component';
|
|
11
|
+
import { ActivityOutletComponent } from './components/activity-container/activity-outlet/activity-outlet.component';
|
|
12
12
|
import { AlertDialogComponent } from './components/alert-dialog/alert-dialog.component';
|
|
13
13
|
import { ConfirmThenDialogComponent } from './components/confirm-then-dialog/confirm-then-dialog.component';
|
|
14
14
|
import { ConfirmationDialogComponent } from './components/confirmation-dialog/confirmation-dialog.component';
|
|
15
|
-
import {
|
|
15
|
+
import { InPlaceInteractionContextComponent } from './components/inplace-interaction-context/in-place-interaction-context.component';
|
|
16
16
|
import { InteractionService } from './services/interaction.service';
|
|
17
17
|
export class InteractionModule {
|
|
18
18
|
}
|
|
@@ -32,12 +32,12 @@ InteractionModule.decorators = [
|
|
|
32
32
|
ConfirmThenDialogComponent,
|
|
33
33
|
AlertDialogComponent,
|
|
34
34
|
ActivityOutletComponent,
|
|
35
|
-
|
|
35
|
+
InPlaceInteractionContextComponent
|
|
36
36
|
],
|
|
37
37
|
exports: [
|
|
38
38
|
ActivityContainerComponent,
|
|
39
39
|
ActivityOutletComponent,
|
|
40
|
-
|
|
40
|
+
InPlaceInteractionContextComponent
|
|
41
41
|
],
|
|
42
42
|
entryComponents: [
|
|
43
43
|
ActivityContainerComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"interaction.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,uBAAuB,EAAE,MAAM,2EAA2E,CAAC;AACpH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,kCAAkC,EAAE,MAAM,iFAAiF,CAAC;AACrI,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqCpE,MAAM,OAAO,iBAAiB;;;YAnC7B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,eAAe;oBACf,eAAe;oBACf,aAAa;oBACb,YAAY;oBACZ,YAAY;iBACb;gBACD,YAAY,EAAE;oBACZ,0BAA0B;oBAC1B,2BAA2B;oBAC3B,0BAA0B;oBAC1B,oBAAoB;oBACpB,uBAAuB;oBACvB,kCAAkC;iBACnC;gBACD,OAAO,EAAE;oBACP,0BAA0B;oBAC1B,uBAAuB;oBACvB,kCAAkC;iBACnC;gBACD,eAAe,EAAE;oBACf,0BAA0B;oBAC1B,2BAA2B;oBAC3B,0BAA0B;oBAC1B,oBAAoB;iBACrB;gBACD,SAAS,EAAE;oBACT,kBAAkB;iBAInB;aACF","sourcesContent":["import { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule, MatDialogModule, MatTabsModule } from '@angular/material';\nimport { MAT_TABS_CONFIG } from '@angular/material/tabs';\nimport { RouterModule } from '@angular/router';\nimport { PlaceModule } from '../place/place.module';\nimport { ActivityContainerComponent } from './components/activity-container/activity-container.component';\nimport { ActivityOutletComponent } from './components/activity-container/activity-outlet/activity-outlet.component';\nimport { AlertDialogComponent } from './components/alert-dialog/alert-dialog.component';\nimport { ConfirmThenDialogComponent } from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport { ConfirmationDialogComponent } from './components/confirmation-dialog/confirmation-dialog.component';\nimport { InPlaceInteractionContextComponent } from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport { InteractionService } from './services/interaction.service';\n\n@NgModule({\n imports: [\n CommonModule,\n MatButtonModule,\n MatDialogModule,\n MatTabsModule,\n PortalModule,\n RouterModule\n ],\n declarations: [\n ActivityContainerComponent,\n ConfirmationDialogComponent,\n ConfirmThenDialogComponent,\n AlertDialogComponent,\n ActivityOutletComponent,\n InPlaceInteractionContextComponent\n ],\n exports: [\n ActivityContainerComponent,\n ActivityOutletComponent,\n InPlaceInteractionContextComponent\n ],\n entryComponents: [\n ActivityContainerComponent,\n ConfirmationDialogComponent,\n ConfirmThenDialogComponent,\n AlertDialogComponent\n ],\n providers: [\n InteractionService,\n // {\n // provide: MAT_TABS_CONFIG, useValue: { animationDuration: \"2s\" }\n // }\n ]\n})\nexport class InteractionModule {\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"InteractionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatButtonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatDialogModule","line":19,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":20,"character":4},{"__symbolic":"reference","module":"@angular/cdk/portal","name":"PortalModule","line":21,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":22,"character":4}],"declarations":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":25,"character":4},{"__symbolic":"reference","module":"./components/confirmation-dialog/confirmation-dialog.component","name":"ConfirmationDialogComponent","line":26,"character":4},{"__symbolic":"reference","module":"./components/confirm-then-dialog/confirm-then-dialog.component","name":"ConfirmThenDialogComponent","line":27,"character":4},{"__symbolic":"reference","module":"./components/alert-dialog/alert-dialog.component","name":"AlertDialogComponent","line":28,"character":4},{"__symbolic":"reference","module":"./components/activity-outlet/activity-outlet.component","name":"ActivityOutletComponent","line":29,"character":4},{"__symbolic":"reference","module":"./components/inplace-interaction-context/
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"InteractionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatButtonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatDialogModule","line":19,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":20,"character":4},{"__symbolic":"reference","module":"@angular/cdk/portal","name":"PortalModule","line":21,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":22,"character":4}],"declarations":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":25,"character":4},{"__symbolic":"reference","module":"./components/confirmation-dialog/confirmation-dialog.component","name":"ConfirmationDialogComponent","line":26,"character":4},{"__symbolic":"reference","module":"./components/confirm-then-dialog/confirm-then-dialog.component","name":"ConfirmThenDialogComponent","line":27,"character":4},{"__symbolic":"reference","module":"./components/alert-dialog/alert-dialog.component","name":"AlertDialogComponent","line":28,"character":4},{"__symbolic":"reference","module":"./components/activity-container/activity-outlet/activity-outlet.component","name":"ActivityOutletComponent","line":29,"character":4},{"__symbolic":"reference","module":"./components/inplace-interaction-context/in-place-interaction-context.component","name":"InPlaceInteractionContextComponent","line":30,"character":4}],"exports":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":33,"character":4},{"__symbolic":"reference","module":"./components/activity-container/activity-outlet/activity-outlet.component","name":"ActivityOutletComponent","line":34,"character":4},{"__symbolic":"reference","module":"./components/inplace-interaction-context/in-place-interaction-context.component","name":"InPlaceInteractionContextComponent","line":35,"character":4}],"entryComponents":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":38,"character":4},{"__symbolic":"reference","module":"./components/confirmation-dialog/confirmation-dialog.component","name":"ConfirmationDialogComponent","line":39,"character":4},{"__symbolic":"reference","module":"./components/confirm-then-dialog/confirm-then-dialog.component","name":"ConfirmThenDialogComponent","line":40,"character":4},{"__symbolic":"reference","module":"./components/alert-dialog/alert-dialog.component","name":"AlertDialogComponent","line":41,"character":4}],"providers":[{"__symbolic":"reference","module":"./services/interaction.service","name":"InteractionService","line":44,"character":4}]}]}]}}}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from './components/activity-container/activity-container.component';\nimport * as i10 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i11 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i12 from './components/alert-dialog/alert-dialog.component';\nimport * as i13 from './components/activity-outlet/activity-outlet.component';\nimport * as i14 from './components/inplace-interaction-context/inplace-interaction-context.component';\nexport const InteractionModuleNgFactory:i0.NgModuleFactory<i1.InteractionModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatButton = (<any>(null as any));\nvar _decl0_13:i4.MatAnchor = (<any>(null as any));\nvar _decl0_14:i5.MatDialogContainer = (<any>(null as any));\nvar _decl0_15:i5.MatDialogClose = (<any>(null as any));\nvar _decl0_16:i5.MatDialogTitle = (<any>(null as any));\nvar _decl0_17:i5.MatDialogContent = (<any>(null as any));\nvar _decl0_18:i5.MatDialogActions = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.CdkPortal = (<any>(null as any));\nvar _decl0_26:i7.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_27:i7.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_28:i7.PortalHostDirective = (<any>(null as any));\nvar _decl0_29:i8.RouterOutlet = (<any>(null as any));\nvar _decl0_30:i8.RouterLink = (<any>(null as any));\nvar _decl0_31:i8.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_32:i8.RouterLinkActive = (<any>(null as any));\nvar _decl0_33:i8.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_34:i9.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_35:i10.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_36:i11.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_37:i12.AlertDialogComponent = (<any>(null as any));\nvar _decl0_38:i13.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_39:i14.InplaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_40:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_41:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_42:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_43:i2.JsonPipe = (<any>(null as any));\nvar _decl0_44:i2.SlicePipe = (<any>(null as any));\nvar _decl0_45:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_46:i2.PercentPipe = (<any>(null as any));\nvar _decl0_47:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_48:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_49:i2.DatePipe = (<any>(null as any));\nvar _decl0_50:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_51:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_52:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_53:i2.CommonModule = (<any>(null as any));\nvar _decl0_54:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_55:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_56:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_57:i7.PortalModule = (<any>(null as any));\nvar _decl0_58:i8.RouterModule = (<any>(null as any));\nvar _decl0_59:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_60:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ActivityContainerComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityContainerComponent_1_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n}\nfunction _View_ActivityContainerComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.dynamicHeight;\n currVal_0;\n const currVal_1:any = _decl0_19.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_19.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = !_decl0_34.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_34.activityTabs.value;\n currVal_4;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_35.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_35.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmationDialogComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_35.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_35.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_35.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_35.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_35.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_35.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_35.done()) !== false);\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_36.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_36.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmThenDialogComponent_3_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_36.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_36.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_36.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_36.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_36.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_36.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_36.onConfirm()) !== false);\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_37.alert.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_37.alert.title();\n currVal_1;\n }\n}\nfunction _View_AlertDialogComponent_4_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_37.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_37.alert.content();\n currVal_1;\n const currVal_2:any = 'primary';\n currVal_2;\n const currVal_3:any = (_decl0_12.disabled || null);\n currVal_3;\n const currVal_4:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_4;\n const currVal_5:any = _decl0_37.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_37.done()) !== false);\n}\nfunction _View_ActivityOutletComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityOutletComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InplaceInteractionContextComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InplaceInteractionContextComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = (_decl0_39.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_19.dynamicHeight;\n currVal_2;\n const currVal_3:any = (_decl0_19.headerPosition === 'below');\n currVal_3;\n const currVal_4:any = _decl0_39.initialActivityContext;\n currVal_4;\n const currVal_5:any = false;\n currVal_5;\n const pd_6:any = ((<any>(_decl0_39.initialActivityContext = _any)) !== false);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from './components/activity-container/activity-container.component';\nimport * as i10 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i11 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i12 from './components/alert-dialog/alert-dialog.component';\nimport * as i13 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i14 from './components/inplace-interaction-context/in-place-interaction-context.component';\nexport const InteractionModuleNgFactory:i0.NgModuleFactory<i1.InteractionModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatButton = (<any>(null as any));\nvar _decl0_13:i4.MatAnchor = (<any>(null as any));\nvar _decl0_14:i5.MatDialogContainer = (<any>(null as any));\nvar _decl0_15:i5.MatDialogClose = (<any>(null as any));\nvar _decl0_16:i5.MatDialogTitle = (<any>(null as any));\nvar _decl0_17:i5.MatDialogContent = (<any>(null as any));\nvar _decl0_18:i5.MatDialogActions = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.CdkPortal = (<any>(null as any));\nvar _decl0_26:i7.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_27:i7.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_28:i7.PortalHostDirective = (<any>(null as any));\nvar _decl0_29:i8.RouterOutlet = (<any>(null as any));\nvar _decl0_30:i8.RouterLink = (<any>(null as any));\nvar _decl0_31:i8.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_32:i8.RouterLinkActive = (<any>(null as any));\nvar _decl0_33:i8.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_34:i9.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_35:i10.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_36:i11.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_37:i12.AlertDialogComponent = (<any>(null as any));\nvar _decl0_38:i13.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_39:i14.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_40:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_41:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_42:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_43:i2.JsonPipe = (<any>(null as any));\nvar _decl0_44:i2.SlicePipe = (<any>(null as any));\nvar _decl0_45:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_46:i2.PercentPipe = (<any>(null as any));\nvar _decl0_47:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_48:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_49:i2.DatePipe = (<any>(null as any));\nvar _decl0_50:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_51:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_52:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_53:i2.CommonModule = (<any>(null as any));\nvar _decl0_54:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_55:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_56:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_57:i7.PortalModule = (<any>(null as any));\nvar _decl0_58:i8.RouterModule = (<any>(null as any));\nvar _decl0_59:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_60:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ActivityContainerComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityContainerComponent_1_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n}\nfunction _View_ActivityContainerComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.dynamicHeight;\n currVal_0;\n const currVal_1:any = _decl0_19.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_19.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = !_decl0_34.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_34.activityTabs;\n currVal_4;\n const currVal_5:any = _decl0_34.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_35.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_35.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmationDialogComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_35.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_35.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_35.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_35.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_35.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_35.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_35.done()) !== false);\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_36.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_36.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmThenDialogComponent_3_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_36.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_36.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_36.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_36.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_36.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_36.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_36.onConfirm()) !== false);\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_37.alert.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_37.alert.title();\n currVal_1;\n }\n}\nfunction _View_AlertDialogComponent_4_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_37.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_37.alert.content();\n currVal_1;\n const currVal_2:any = 'primary';\n currVal_2;\n const currVal_3:any = (_decl0_12.disabled || null);\n currVal_3;\n const currVal_4:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_4;\n const currVal_5:any = _decl0_37.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_37.done()) !== false);\n}\nfunction _View_ActivityOutletComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityOutletComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = (_decl0_39.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_19.dynamicHeight;\n currVal_2;\n const currVal_3:any = (_decl0_19.headerPosition === 'below');\n currVal_3;\n const currVal_4:any = false;\n currVal_4;\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @record
|
|
7
|
+
*/
|
|
8
|
+
export function RouteSynchronisationAdapter() { }
|
|
9
|
+
if (false) {
|
|
10
|
+
/**
|
|
11
|
+
* @param {?} interactionContext
|
|
12
|
+
* @param {?} activities
|
|
13
|
+
* @return {?}
|
|
14
|
+
*/
|
|
15
|
+
RouteSynchronisationAdapter.prototype.synchroniseRoute = function (interactionContext, activities) { };
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=route-synchronisation-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-synchronisation-adapter.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/route-synchronisation-adapter.ts"],"names":[],"mappings":";;;;;;;AAGA,iDAEC;;;;;;;IADC,uGAAyF","sourcesContent":["import { Activity } from './activity';\nimport { InteractionContext } from './interaction-context';\n\nexport interface RouteSynchronisationAdapter {\n synchroniseRoute(interactionContext: InteractionContext, activities:Activity<any, any>[])\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"RouteSynchronisationAdapter":{"__symbolic":"interface"}}}]
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
export class InteractionServiceRoutingAdapter {
|
|
6
|
+
/**
|
|
7
|
+
* @param {?} activeInteractionContextIds
|
|
8
|
+
* @param {?} activeModalContext
|
|
9
|
+
* @param {?} createExclusiveInteractionContext
|
|
10
|
+
*/
|
|
11
|
+
constructor(activeInteractionContextIds, activeModalContext, createExclusiveInteractionContext) {
|
|
12
|
+
this.activeInteractionContextIds = activeInteractionContextIds;
|
|
13
|
+
this.activeModalContext = activeModalContext;
|
|
14
|
+
this.createExclusiveInteractionContext = createExclusiveInteractionContext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @return {?}
|
|
18
|
+
*/
|
|
19
|
+
isActive() {
|
|
20
|
+
return this.getActiveInteractionContextIds().length > 0;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @return {?}
|
|
24
|
+
*/
|
|
25
|
+
isModalActive() {
|
|
26
|
+
return !!this.activeModalContext.value;
|
|
27
|
+
}
|
|
28
|
+
// @Trace()
|
|
29
|
+
/**
|
|
30
|
+
* @param {?} component
|
|
31
|
+
* @return {?}
|
|
32
|
+
*/
|
|
33
|
+
isComponentInteracting(component) {
|
|
34
|
+
return component.interactionContext && component.interactionContext.isActive();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @return {?}
|
|
38
|
+
*/
|
|
39
|
+
getActiveInteractionContextIds() {
|
|
40
|
+
return this.activeInteractionContextIds.value;
|
|
41
|
+
}
|
|
42
|
+
// @Trace()
|
|
43
|
+
/**
|
|
44
|
+
* @return {?}
|
|
45
|
+
*/
|
|
46
|
+
cancelCurrentModalInteraction() {
|
|
47
|
+
return this.activeModalContext.value.cancelActiveActivity();
|
|
48
|
+
}
|
|
49
|
+
// @Trace()
|
|
50
|
+
/**
|
|
51
|
+
* @param {?} component
|
|
52
|
+
* @return {?}
|
|
53
|
+
*/
|
|
54
|
+
cancelComponentInteraction(component) {
|
|
55
|
+
return component.interactionContext.cancelActiveActivity();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (false) {
|
|
59
|
+
/**
|
|
60
|
+
* @type {?}
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
63
|
+
InteractionServiceRoutingAdapter.prototype.activeInteractionContextIds;
|
|
64
|
+
/**
|
|
65
|
+
* @type {?}
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
InteractionServiceRoutingAdapter.prototype.activeModalContext;
|
|
69
|
+
/** @type {?} */
|
|
70
|
+
InteractionServiceRoutingAdapter.prototype.createExclusiveInteractionContext;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=interaction-service-routing-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction-service-routing-adapter.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/services/interaction-service-routing-adapter.ts"],"names":[],"mappings":";;;;AAIA,MAAM,OAAO,gCAAgC;;;;;;IAE3C,YAA6B,2BAA8C,EAC9C,kBAAkD,EAC1D,iCAA2D;QAFnD,gCAA2B,GAA3B,2BAA2B,CAAmB;QAC9C,uBAAkB,GAAlB,kBAAkB,CAAgC;QAC1D,sCAAiC,GAAjC,iCAAiC,CAA0B;IAChF,CAAC;;;;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,8BAA8B,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IAC1D,CAAC;;;;IAED,aAAa;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;IACzC,CAAC;;;;;;IAGD,sBAAsB,CAAC,SAAyB;QAC9C,OAAO,SAAS,CAAC,kBAAkB,IAAI,SAAS,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC;IACjF,CAAC;;;;IAED,8BAA8B;QAC5B,OAAO,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAChD,CAAC;;;;;IAGD,6BAA6B;QAC3B,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,oBAAoB,EAAE,CAAC;IAC9D,CAAC;;;;;;IAGD,0BAA0B,CAAC,SAAyB;QAClD,OAAO,SAAS,CAAC,kBAAkB,CAAC,oBAAoB,EAAE,CAAC;IAC7D,CAAC;CAEF;;;;;;IAhCa,uEAA+D;;;;;IAC/D,8DAAmE;;IACnE,6EAAoE","sourcesContent":["import { ListModel, Trace, ValueModel } from '@coolon/pectin';\nimport { PlaceComponent } from '../../place/place-component';\nimport { InteractionContext } from '../interaction-context';\n\nexport class InteractionServiceRoutingAdapter {\n\n constructor(private readonly activeInteractionContextIds: ListModel<string>,\n private readonly activeModalContext: ValueModel<InteractionContext>,\n readonly createExclusiveInteractionContext: () => InteractionContext) {\n }\n\n isActive(): boolean {\n return this.getActiveInteractionContextIds().length > 0;\n }\n\n isModalActive(): boolean {\n return !!this.activeModalContext.value;\n }\n\n // @Trace()\n isComponentInteracting(component: PlaceComponent): boolean {\n return component.interactionContext && component.interactionContext.isActive();\n }\n\n getActiveInteractionContextIds(): string[] {\n return this.activeInteractionContextIds.value;\n }\n\n // @Trace()\n cancelCurrentModalInteraction(): Promise<boolean> {\n return this.activeModalContext.value.cancelActiveActivity();\n }\n\n // @Trace()\n cancelComponentInteraction(component: PlaceComponent): Promise<boolean> {\n return component.interactionContext.cancelActiveActivity();\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"InteractionServiceRoutingAdapter":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@coolon/pectin","name":"ListModel","line":6,"character":60,"arguments":[{"__symbolic":"reference","name":"string"}]},{"__symbolic":"reference","module":"@coolon/pectin","name":"ValueModel","line":7,"character":51,"arguments":[{"__symbolic":"reference","module":"../interaction-context","name":"InteractionContext","line":7,"character":62}]},{"__symbolic":"error","message":"Expression form not supported","line":8,"character":58}]}],"isActive":[{"__symbolic":"method"}],"isModalActive":[{"__symbolic":"method"}],"isComponentInteracting":[{"__symbolic":"method"}],"getActiveInteractionContextIds":[{"__symbolic":"method"}],"cancelCurrentModalInteraction":[{"__symbolic":"method"}],"cancelComponentInteraction":[{"__symbolic":"method"}]}}}}]
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
4
|
*/
|
|
5
5
|
import { Injectable } from '@angular/core';
|
|
6
|
-
import { Dsl, GarbageCollector,
|
|
6
|
+
import { DelegatingValueModel, Dsl, GarbageCollector, MutableListModel } from '@coolon/pectin';
|
|
7
7
|
import { assert } from '@coolon/typescript-utilities';
|
|
8
|
+
import { InteractionServiceRoutingAdapter } from './interaction-service-routing-adapter';
|
|
8
9
|
import { ModalInteractionContextFactory } from './modal-interaction-context.factory';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "./modal-interaction-context.factory";
|
|
@@ -17,22 +18,22 @@ export class InteractionService {
|
|
|
17
18
|
constructor(modelInteractionContextFactory) {
|
|
18
19
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
19
20
|
this.garbage = new GarbageCollector();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
// private readonly _activeModalContext = new MutableValueModel<InteractionContext>();
|
|
22
|
+
// private readonly _activeInlineContext = new MutableValueModel<InteractionContext>();
|
|
23
|
+
// private readonly _activeContext: ValueModelChain<InteractionContext>;
|
|
24
|
+
this._navigationInProgress = new DelegatingValueModel().withDefault(false);
|
|
23
25
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this.garbage);
|
|
24
|
-
this.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.active
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
26
|
+
this.exclusiveInteractionRegistry = new InteractionService.ContextRegistry();
|
|
27
|
+
this.modalInteractionRegistry = new InteractionService.ContextRegistry();
|
|
28
|
+
this.inPlaceInteractionRegistry = new InteractionService.ContextRegistry();
|
|
29
|
+
this.modalInteractionRegistry.disableWhen(valueOf.any(this.exclusiveInteractionRegistry.active, this.modalInteractionRegistry.active).areTruthy());
|
|
30
|
+
this.inPlaceInteractionRegistry.disableWhen(valueOf.any(this.exclusiveInteractionRegistry.active, this.modalInteractionRegistry.active, this.inPlaceInteractionRegistry.active).areTruthy());
|
|
31
|
+
this.active = valueOf.any(this.inPlaceInteractionRegistry.active, this.modalInteractionRegistry.active).areTruthy();
|
|
30
32
|
// TODO: chain.concat(listOrValueModels) would be nice.
|
|
31
|
-
this.activeInteractionContextIds = chain(
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.pluck('id');
|
|
33
|
+
this.activeInteractionContextIds = chain(this.inPlaceInteractionRegistry.interactionContextIds)
|
|
34
|
+
.concat(this.modalInteractionRegistry.interactionContextIds);
|
|
35
|
+
this.activeModalContext = chain(this.modalInteractionRegistry.interactionContexts).first();
|
|
36
|
+
this.inModalInteraction = chain(this.activeModalContext).isNotNil();
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* @return {?}
|
|
@@ -40,12 +41,6 @@ export class InteractionService {
|
|
|
40
41
|
isActive() {
|
|
41
42
|
return this.active.value;
|
|
42
43
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @return {?}
|
|
45
|
-
*/
|
|
46
|
-
isModalActive() {
|
|
47
|
-
return this.modelInteractionActive.value;
|
|
48
|
-
}
|
|
49
44
|
/**
|
|
50
45
|
* @deprecated use #createModalInteractionContextDisposedWith instead.
|
|
51
46
|
* @param {?} disposable
|
|
@@ -60,47 +55,55 @@ export class InteractionService {
|
|
|
60
55
|
* @return {?}
|
|
61
56
|
*/
|
|
62
57
|
createModalInteractionContextDisposedWith(disposable) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
disposable.registerDisposable(new InteractionService.Monitor('modal', context, this._activeModalInteractionContextModel, this.exclusiveContext));
|
|
66
|
-
return context;
|
|
58
|
+
// TODO: look at making the registry the factory..
|
|
59
|
+
return this.modelInteractionContextFactory.createInteractionContext('modal', new InteractionService.ApiAdapter(this.placeRouter, this.modalInteractionRegistry));
|
|
67
60
|
}
|
|
68
61
|
/**
|
|
69
62
|
* @param {?} interactionContext
|
|
70
63
|
* @return {?}
|
|
71
64
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* @return {?}
|
|
78
|
-
*/
|
|
79
|
-
getActiveContext() {
|
|
80
|
-
assert.isTruthy(this.isActive());
|
|
81
|
-
return this._activeInteractionContext.value;
|
|
65
|
+
registerInplaceInteractionContext(interactionContext) {
|
|
66
|
+
// TODO: look at making the registry the factory..
|
|
67
|
+
// Todo: check for double registration.
|
|
68
|
+
// Todo: allow multiple inplace interactions..
|
|
69
|
+
interactionContext.initialise(`ip${++inplaceMonitorCount}`, new InteractionService.ApiAdapter(this.placeRouter, this.inPlaceInteractionRegistry));
|
|
82
70
|
}
|
|
71
|
+
// private assertModalCanStart() {
|
|
72
|
+
// assert.isFalsey(this.inExclusiveInteraction.value);
|
|
73
|
+
// assert.isFalsey(this.modalActive.value);
|
|
74
|
+
// }
|
|
75
|
+
//
|
|
76
|
+
// private assertInPlaceCanStart() {
|
|
77
|
+
// assert.isFalsey(this.inExclusiveInteraction.value);
|
|
78
|
+
// assert.isFalsey(this.modalActive.value);
|
|
79
|
+
// assert.isFalsey(this._activeInlineContext.value);
|
|
80
|
+
// }
|
|
81
|
+
// // @Trace()
|
|
82
|
+
// getActiveContext(): InteractionContext {
|
|
83
|
+
// assert.isTruthy(this.isActive());
|
|
84
|
+
// return this._activeContext.value;
|
|
85
|
+
// }
|
|
83
86
|
/**
|
|
84
87
|
* Creates an interaction context that will prevent any other contexts from starting an
|
|
85
88
|
* activity until it is disposed. This is intended for use by the router for passing
|
|
86
89
|
* to PlaceComponent.canDeactivate(interactionContext). This ensures components don't
|
|
87
90
|
* try and interact in a way that we can't track and synchronise with the browser back
|
|
88
91
|
* button.
|
|
92
|
+
* @param {?} router
|
|
89
93
|
* @return {?}
|
|
90
94
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
registerPlaceRouter(router) {
|
|
96
|
+
assert.isFalsey(this.placeRouter);
|
|
97
|
+
this.placeRouter = router;
|
|
98
|
+
this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);
|
|
93
99
|
/** @type {?} */
|
|
94
100
|
const self = this;
|
|
95
|
-
this.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
return this.exclusiveContext.value;
|
|
101
|
+
return new InteractionServiceRoutingAdapter(this.activeInteractionContextIds, this.activeModalContext, (/**
|
|
102
|
+
* @return {?}
|
|
103
|
+
*/
|
|
104
|
+
() => {
|
|
105
|
+
return self.modelInteractionContextFactory.createInteractionContext('exclusive', new InteractionService.ApiAdapter(this.placeRouter, this.exclusiveInteractionRegistry));
|
|
106
|
+
}));
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
InteractionService.decorators = [
|
|
@@ -125,28 +128,36 @@ if (false) {
|
|
|
125
128
|
* @type {?}
|
|
126
129
|
* @private
|
|
127
130
|
*/
|
|
128
|
-
InteractionService.prototype.
|
|
131
|
+
InteractionService.prototype._navigationInProgress;
|
|
132
|
+
/**
|
|
133
|
+
* @type {?}
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
InteractionService.prototype.placeRouter;
|
|
129
137
|
/**
|
|
130
138
|
* @type {?}
|
|
131
139
|
* @private
|
|
132
140
|
*/
|
|
133
|
-
InteractionService.prototype.
|
|
141
|
+
InteractionService.prototype.exclusiveInteractionRegistry;
|
|
134
142
|
/**
|
|
135
143
|
* @type {?}
|
|
136
144
|
* @private
|
|
137
145
|
*/
|
|
138
|
-
InteractionService.prototype.
|
|
146
|
+
InteractionService.prototype.modalInteractionRegistry;
|
|
139
147
|
/**
|
|
140
148
|
* @type {?}
|
|
141
149
|
* @private
|
|
142
150
|
*/
|
|
143
|
-
InteractionService.prototype.
|
|
151
|
+
InteractionService.prototype.inPlaceInteractionRegistry;
|
|
152
|
+
/**
|
|
153
|
+
* @type {?}
|
|
154
|
+
* @private
|
|
155
|
+
*/
|
|
156
|
+
InteractionService.prototype.activeModalContext;
|
|
144
157
|
/** @type {?} */
|
|
145
158
|
InteractionService.prototype.activeInteractionContextIds;
|
|
146
159
|
/** @type {?} */
|
|
147
|
-
InteractionService.prototype.
|
|
148
|
-
/** @type {?} */
|
|
149
|
-
InteractionService.prototype.inlineInteractionActive;
|
|
160
|
+
InteractionService.prototype.inModalInteraction;
|
|
150
161
|
/** @type {?} */
|
|
151
162
|
InteractionService.prototype.modelInteractionContextFactory;
|
|
152
163
|
}
|
|
@@ -154,88 +165,147 @@ if (false) {
|
|
|
154
165
|
/**
|
|
155
166
|
* @record
|
|
156
167
|
*/
|
|
157
|
-
function
|
|
158
|
-
InteractionService.
|
|
168
|
+
function Api() { }
|
|
169
|
+
InteractionService.Api = Api;
|
|
159
170
|
if (false) {
|
|
160
171
|
/**
|
|
161
|
-
*
|
|
172
|
+
* Notifies the interaction service that a particular interactionContext has become active. The interaction
|
|
173
|
+
* services will then push changes to the router to track state. If the router is idle, the promise will
|
|
174
|
+
* resolve when the routing has finished updating. Otherwise it will return immediately.
|
|
175
|
+
* @param {?} interactionContext
|
|
162
176
|
* @return {?}
|
|
163
177
|
*/
|
|
164
|
-
|
|
178
|
+
Api.prototype.notifyActive = function (interactionContext) { };
|
|
165
179
|
/**
|
|
166
|
-
*
|
|
180
|
+
* Notifies the interaction service that a particular interactionContext has become idle. The interaction
|
|
181
|
+
* services will then push changes to the router to track state. If the router is idle, the promise will
|
|
182
|
+
* resolve when the routing has finished updating. Otherwise it will return immediately.
|
|
183
|
+
* @param {?} interactionContext
|
|
167
184
|
* @return {?}
|
|
168
185
|
*/
|
|
169
|
-
|
|
186
|
+
Api.prototype.notifyFinished = function (interactionContext) { };
|
|
170
187
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
constructor(id, interactionContext, currentActiveMonitor, exclusiveContext) {
|
|
188
|
+
/**
|
|
189
|
+
* Provides a mechanism for the service to keep track of what the API adapters are doing to
|
|
190
|
+
* ensure the rules are followed, i.e. modal or in-place interaction aren't started while
|
|
191
|
+
* an exclusive routing interaction is active.
|
|
192
|
+
*/
|
|
193
|
+
class ContextRegistry extends GarbageCollector {
|
|
194
|
+
constructor() {
|
|
179
195
|
super();
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
182
|
-
this.currentActiveMonitor = currentActiveMonitor;
|
|
183
|
-
this.exclusiveContext = exclusiveContext;
|
|
196
|
+
this._interactions = new MutableListModel();
|
|
197
|
+
this._disabledDelegate = new DelegatingValueModel().withDefault(false);
|
|
184
198
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*/
|
|
188
|
-
() => this.onStarted()));
|
|
189
|
-
when.valueOf(interactionContext.active).becomesFalsey((/**
|
|
190
|
-
* @return {?}
|
|
191
|
-
*/
|
|
192
|
-
() => this.onFinished()));
|
|
193
|
-
interactionContext.registerDisposable(this);
|
|
199
|
+
this.active = chain(this._interactions).isNotEmpty();
|
|
200
|
+
this.interactionContextIds = chain(this._interactions).pluck("identifier");
|
|
194
201
|
}
|
|
195
202
|
/**
|
|
196
|
-
* @protected
|
|
197
203
|
* @return {?}
|
|
198
204
|
*/
|
|
199
|
-
|
|
200
|
-
this.
|
|
201
|
-
this.currentActiveMonitor.value = this;
|
|
205
|
+
get interactionContexts() {
|
|
206
|
+
return this._interactions.readonly;
|
|
202
207
|
}
|
|
203
208
|
/**
|
|
204
|
-
* @
|
|
209
|
+
* @param {?} context
|
|
205
210
|
* @return {?}
|
|
206
211
|
*/
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (this.exclusiveContext.value && this.interactionContext !== this.exclusiveContext.value) {
|
|
210
|
-
lang.illegalState('Interaction started while exclusive lock active. This is usually because you using a different context during place.canDeactivate(interactionContext)');
|
|
211
|
-
}
|
|
212
|
+
start(context) {
|
|
213
|
+
this._interactions.push(context);
|
|
212
214
|
}
|
|
213
215
|
/**
|
|
214
|
-
* @
|
|
216
|
+
* @param {?} context
|
|
215
217
|
* @return {?}
|
|
216
218
|
*/
|
|
217
|
-
|
|
218
|
-
this.
|
|
219
|
-
this.currentActiveMonitor.value = null;
|
|
219
|
+
finish(context) {
|
|
220
|
+
this._interactions.remove(context);
|
|
220
221
|
}
|
|
221
222
|
/**
|
|
222
|
-
* @private
|
|
223
223
|
* @return {?}
|
|
224
224
|
*/
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
isActive() {
|
|
226
|
+
return this.active.value;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @param {?} disabled
|
|
230
|
+
* @return {?}
|
|
231
|
+
*/
|
|
232
|
+
disableWhen(disabled) {
|
|
233
|
+
this._disabledDelegate.setDelegate(disabled);
|
|
227
234
|
}
|
|
228
235
|
}
|
|
229
|
-
InteractionService.
|
|
236
|
+
InteractionService.ContextRegistry = ContextRegistry;
|
|
230
237
|
if (false) {
|
|
238
|
+
/**
|
|
239
|
+
* @type {?}
|
|
240
|
+
* @private
|
|
241
|
+
*/
|
|
242
|
+
ContextRegistry.prototype._interactions;
|
|
243
|
+
/**
|
|
244
|
+
* @type {?}
|
|
245
|
+
* @private
|
|
246
|
+
*/
|
|
247
|
+
ContextRegistry.prototype._disabledDelegate;
|
|
231
248
|
/** @type {?} */
|
|
232
|
-
|
|
233
|
-
/** @type {?} */
|
|
234
|
-
Monitor.prototype.interactionContext;
|
|
235
|
-
/** @type {?} */
|
|
236
|
-
Monitor.prototype.currentActiveMonitor;
|
|
249
|
+
ContextRegistry.prototype.active;
|
|
237
250
|
/** @type {?} */
|
|
238
|
-
|
|
251
|
+
ContextRegistry.prototype.interactionContextIds;
|
|
252
|
+
}
|
|
253
|
+
class ApiAdapter {
|
|
254
|
+
/**
|
|
255
|
+
* @param {?} placeRouter
|
|
256
|
+
* @param {?} contextRegistry
|
|
257
|
+
*/
|
|
258
|
+
constructor(placeRouter, contextRegistry) {
|
|
259
|
+
this.placeRouter = placeRouter;
|
|
260
|
+
this.contextRegistry = contextRegistry;
|
|
261
|
+
}
|
|
262
|
+
// @Trace()
|
|
263
|
+
/**
|
|
264
|
+
* @param {?} context
|
|
265
|
+
* @return {?}
|
|
266
|
+
*/
|
|
267
|
+
notifyActive(context) {
|
|
268
|
+
assert.isTruthy(context.identifier);
|
|
269
|
+
this.contextRegistry.start(context);
|
|
270
|
+
return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();
|
|
271
|
+
}
|
|
272
|
+
// @Trace()
|
|
273
|
+
/**
|
|
274
|
+
* @private
|
|
275
|
+
* @return {?}
|
|
276
|
+
*/
|
|
277
|
+
isNavigationInProgress() {
|
|
278
|
+
return this.placeRouter.navigationInProgress.value;
|
|
279
|
+
}
|
|
280
|
+
// @Trace()
|
|
281
|
+
/**
|
|
282
|
+
* @param {?} context
|
|
283
|
+
* @return {?}
|
|
284
|
+
*/
|
|
285
|
+
notifyFinished(context) {
|
|
286
|
+
this.contextRegistry.finish(context);
|
|
287
|
+
// :: Important ::
|
|
288
|
+
// This method will be traversed by both the place router (during can canDeactivate guards) and user land code
|
|
289
|
+
// (both when routing is idle and while it is active in PlaceComponent.canDeactivate()).
|
|
290
|
+
// The result of pushInteractionIdsToRoute will not start until after the current route finishes, and the
|
|
291
|
+
// current route won't finish until after this promise returns... Deadlock.
|
|
292
|
+
// So in order to keep this logic out of the activities we perform the check here and ensure that
|
|
293
|
+
// any interactions with the context while routing is active returns immediately.
|
|
294
|
+
return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
InteractionService.ApiAdapter = ApiAdapter;
|
|
298
|
+
if (false) {
|
|
299
|
+
/**
|
|
300
|
+
* @type {?}
|
|
301
|
+
* @private
|
|
302
|
+
*/
|
|
303
|
+
ApiAdapter.prototype.placeRouter;
|
|
304
|
+
/**
|
|
305
|
+
* @type {?}
|
|
306
|
+
* @private
|
|
307
|
+
*/
|
|
308
|
+
ApiAdapter.prototype.contextRegistry;
|
|
239
309
|
}
|
|
240
310
|
})(InteractionService || (InteractionService = {}));
|
|
241
311
|
//# sourceMappingURL=interaction.service.js.map
|