@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
|
-
{"version":3,"file":"coolon-angular-ui-powerups.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["coolon-angular-ui-powerups.ts"],"names":[],"mappings":";;;;;;;AAIA,
|
|
1
|
+
{"version":3,"file":"coolon-angular-ui-powerups.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["coolon-angular-ui-powerups.ts"],"names":[],"mappings":";;;;;;;AAIA,gyDAAc,SAAS,CAAC;AAExB,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,aAAa,IAAI,EAAE,EAAC,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,qBAAqB,IAAI,EAAE,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,0BAA0B,IAAI,GAAG,EAAC,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAC,aAAa,IAAI,GAAG,EAAC,QAAQ,IAAI,GAAG,EAAC,MAAM,4BAA4B,CAAC;AAEhF,OAAO,EAAC,0BAA0B,IAAI,GAAG,EAAC,MAAM,8EAA8E,CAAC;AAC/H,OAAO,EAAC,uBAAuB,IAAI,GAAG,EAAC,MAAM,2FAA2F,CAAC;AACzI,OAAO,EAAC,oBAAoB,IAAI,GAAG,EAAC,MAAM,kEAAkE,CAAC;AAC7G,OAAO,EAAC,0BAA0B,IAAI,GAAG,EAAC,MAAM,gFAAgF,CAAC;AACjI,OAAO,EAAC,2BAA2B,IAAI,GAAG,EAAC,MAAM,gFAAgF,CAAC;AAClI,OAAO,EAAC,kCAAkC,IAAI,GAAG,EAAC,MAAM,iGAAiG,CAAC;AAE1J,OAAO,EAAC,iBAAiB,IAAI,GAAG,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,kBAAkB,IAAI,EAAE,EAAC,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAC,8BAA8B,IAAI,EAAE,EAAC,MAAM,8DAA8D,CAAC;AAClH,OAAO,EAAC,gCAAgC,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AAClH,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAC,qBAAqB,IAAI,GAAG,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,0BAA0B,IAAI,EAAE,EAAC,uBAAuB,IAAI,EAAE,EAAC,MAAM,sDAAsD,CAAC;AACpI,OAAO,EAAC,8BAA8B,IAAI,EAAE,EAAC,MAAM,kFAAkF,CAAC;AACtI,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAmB,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAC,YAAY,IAAI,EAAE,EAAC,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAC,WAAW,IAAI,EAAE,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,WAAW,IAAI,EAAE,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,UAAU,IAAI,EAAE,EAAC,MAAM,yBAAyB,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ComponentsModule as ɵe} from './lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {AbstractInputComponent as ɵg} from './lib/components/forms/abstract-input.component';\nexport {NumberInputComponent as ɵf} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵi} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵj} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵh} from './lib/components/forms/string-input/string-input.component';\nexport {NoopComponent as ɵk} from './lib/components/noop/noop.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {AbstractInteractionContext as ɵbd} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbg,Activity as ɵbh} from './lib/interaction/activity';\nexport {Alert as ɵbl} from './lib/interaction/alert';\nexport {ActivityContainerComponent as ɵbc} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbe} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AlertDialogComponent as ɵbk} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbj} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbf} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbm} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbi} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbb} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵu} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵv} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵz} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵn} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵm} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵba} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵo} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵq,leftRightPlaceAnimation as ɵp} from './lib/place/components/place-outlet/route-animations';\nexport {TabbedPlaceNavigationComponent as ɵy} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵr,PlaceConfig as ɵs} from './lib/place/place-config';\nexport {PlaceHistory as ɵx} from './lib/place/place-history';\nexport {PlaceRouter as ɵt} from './lib/place/place-router';\nexport {PlaceModule as ɵl} from './lib/place/place.module';\nexport {UrlService as ɵw} from './lib/place/url-service';"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components/components.module","export":[{"name":"ComponentsModule","as":"ɵe"}]},{"from":"./lib/components/disposable-component","export":[{"name":"DisposableComponent","as":"ɵd"}]},{"from":"./lib/components/forms/abstract-input.component","export":[{"name":"AbstractInputComponent","as":"ɵg"}]},{"from":"./lib/components/forms/number-input/number-input.component","export":[{"name":"NumberInputComponent","as":"ɵf"}]},{"from":"./lib/components/forms/password-input/password-input.component","export":[{"name":"PasswordInputComponent","as":"ɵi"}]},{"from":"./lib/components/forms/select-input/select-input.component","export":[{"name":"SelectInputComponent","as":"ɵj"}]},{"from":"./lib/components/forms/string-input/string-input.component","export":[{"name":"StringInputComponent","as":"ɵh"}]},{"from":"./lib/components/noop/noop.component","export":[{"name":"NoopComponent","as":"ɵk"}]},{"from":"./lib/directives/command.directive","export":[{"name":"CommandDirective","as":"ɵb"}]},{"from":"./lib/directives/directives.module","export":[{"name":"DirectivesModule","as":"ɵa"}]},{"from":"./lib/directives/focus-binding.directive","export":[{"name":"FocusBindingDirective","as":"ɵc"}]},{"from":"./lib/interaction/abstract-
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components/components.module","export":[{"name":"ComponentsModule","as":"ɵe"}]},{"from":"./lib/components/disposable-component","export":[{"name":"DisposableComponent","as":"ɵd"}]},{"from":"./lib/components/forms/abstract-input.component","export":[{"name":"AbstractInputComponent","as":"ɵg"}]},{"from":"./lib/components/forms/number-input/number-input.component","export":[{"name":"NumberInputComponent","as":"ɵf"}]},{"from":"./lib/components/forms/password-input/password-input.component","export":[{"name":"PasswordInputComponent","as":"ɵi"}]},{"from":"./lib/components/forms/select-input/select-input.component","export":[{"name":"SelectInputComponent","as":"ɵj"}]},{"from":"./lib/components/forms/string-input/string-input.component","export":[{"name":"StringInputComponent","as":"ɵh"}]},{"from":"./lib/components/noop/noop.component","export":[{"name":"NoopComponent","as":"ɵk"}]},{"from":"./lib/directives/command.directive","export":[{"name":"CommandDirective","as":"ɵb"}]},{"from":"./lib/directives/directives.module","export":[{"name":"DirectivesModule","as":"ɵa"}]},{"from":"./lib/directives/focus-binding.directive","export":[{"name":"FocusBindingDirective","as":"ɵc"}]},{"from":"./lib/interaction/abstract-interaction-context","export":[{"name":"AbstractInteractionContext","as":"ɵbd"}]},{"from":"./lib/interaction/activity","export":[{"name":"ACTIVITY_DATA","as":"ɵbg"},{"name":"Activity","as":"ɵbh"}]},{"from":"./lib/interaction/alert","export":[{"name":"Alert","as":"ɵbl"}]},{"from":"./lib/interaction/components/activity-container/activity-container.component","export":[{"name":"ActivityContainerComponent","as":"ɵbc"}]},{"from":"./lib/interaction/components/activity-container/activity-outlet/activity-outlet.component","export":[{"name":"ActivityOutletComponent","as":"ɵbe"}]},{"from":"./lib/interaction/components/alert-dialog/alert-dialog.component","export":[{"name":"AlertDialogComponent","as":"ɵbk"}]},{"from":"./lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component","export":[{"name":"ConfirmThenDialogComponent","as":"ɵbj"}]},{"from":"./lib/interaction/components/confirmation-dialog/confirmation-dialog.component","export":[{"name":"ConfirmationDialogComponent","as":"ɵbf"}]},{"from":"./lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component","export":[{"name":"InPlaceInteractionContextComponent","as":"ɵbm"}]},{"from":"./lib/interaction/confirm","export":[{"name":"Confirm","as":"ɵbi"}]},{"from":"./lib/interaction/interaction.module","export":[{"name":"InteractionModule","as":"ɵbb"}]},{"from":"./lib/interaction/services/interaction.service","export":[{"name":"InteractionService","as":"ɵu"}]},{"from":"./lib/interaction/services/modal-interaction-context.factory","export":[{"name":"ModalInteractionContextFactory","as":"ɵv"}]},{"from":"./lib/place/components/abstract-place-navigation.component","export":[{"name":"AbstractPlaceNavigationComponent","as":"ɵz"}]},{"from":"./lib/place/components/busy-overlay/busy-overlay.component","export":[{"name":"BusyOverlayComponent","as":"ɵn"}]},{"from":"./lib/place/components/empty-state/empty-state.component","export":[{"name":"EmptyStateComponent","as":"ɵm"}]},{"from":"./lib/place/components/list-place-nav/list-place-nav.component","export":[{"name":"ListPlaceNavComponent","as":"ɵba"}]},{"from":"./lib/place/components/place-outlet/place-outlet.component","export":[{"name":"PlaceOutletComponent","as":"ɵo"}]},{"from":"./lib/place/components/place-outlet/route-animations","export":[{"name":"LEFT_RIGHT_PLACE_ANIMATION","as":"ɵq"},{"name":"leftRightPlaceAnimation","as":"ɵp"}]},{"from":"./lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component","export":[{"name":"TabbedPlaceNavigationComponent","as":"ɵy"}]},{"from":"./lib/place/place-config","export":[{"name":"AUP_PLACE_CONFIG","as":"ɵr"},{"name":"PlaceConfig","as":"ɵs"}]},{"from":"./lib/place/place-history","export":[{"name":"PlaceHistory","as":"ɵx"}]},{"from":"./lib/place/place-router","export":[{"name":"PlaceRouter","as":"ɵt"}]},{"from":"./lib/place/place.module","export":[{"name":"PlaceModule","as":"ɵl"}]},{"from":"./lib/place/url-service","export":[{"name":"UrlService","as":"ɵw"}]}]}]
|
package/esm2015/index.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* @fileoverview added by tsickle
|
|
3
3
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
4
|
*/
|
|
5
|
-
export { AngularUiPowerupsModule, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ComponentsModule, DisposableComponent, ResizeAwareComponent, AbstractInputComponent, NumberInputComponent, PasswordInputComponent, SelectInputComponent, StringInputComponent, NoopComponent, Bounds, Dimension, Point, CommandDirective, DirectivesModule, FocusBindingDirective,
|
|
5
|
+
export { AngularUiPowerupsModule, slideDownOnEnterAnimation, slideRightOnEnterAnimation, ComponentsModule, DisposableComponent, ResizeAwareComponent, AbstractInputComponent, NumberInputComponent, PasswordInputComponent, SelectInputComponent, StringInputComponent, NoopComponent, Bounds, Dimension, Point, CommandDirective, DirectivesModule, FocusBindingDirective, AbstractInteractionContext, ActivityRef, ACTIVITY_DATA, Activity, InteractionModule, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, ConfirmThenDialogComponent, ConfirmationDialogComponent, InPlaceInteractionContextComponent, InteractionServiceRoutingAdapter, InteractionService, ModalInteractionContextFactory, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContextFactory, DialogInteractionContext, DEFINITION_META_DATA_KEY, ROUTE_PARAMETER_LIST_KEY, PlaceComponent, AUP_PLACE_CONFIG, PlaceDefinition, PlaceHistory, PlaceRouter, Place, PlaceModule, UrlService, UrlSnapshot, Visit, AbstractPlaceNavigationComponent, BusyOverlayComponent, EmptyStateComponent, ListPlaceNavComponent, PlaceOutletComponent, leftRightPlaceAnimation, LEFT_RIGHT_PLACE_ANIMATION, TabbedPlaceNavigationComponent, ConsolidatedParameterMap, NoopAuthGuard, PlaceGuard, PlaceComponentDeactivationHandler, AbstractPopStateNavigation, Navigating, NavigationContext, NavigationSession, PopStateNavigation, EventCleanUpSession, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, NavigatingDuringInteraction, PopStateDuringInteractionNavigation, RemoveLastInteractionFromUrlNavigationSession, SynchroniseInteractionContextIdsWithRoute, Formatter, RouteId, VisitParameter, VisitParameterList, ParameterDefinition, VisitSanitiser } from './public_api';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/esm2015/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,gyDAAc,cAAc,CAAC","sourcesContent":["export * from './public_api';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-ui-powerups.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/angular-ui-powerups.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './angular-ui-powerups.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/material/form-field';\nimport * as i6 from '@angular/material/input';\nimport * as i7 from '@angular/material/core';\nimport * as i8 from '@angular/cdk/bidi';\nimport * as i9 from '@angular/material/select';\nimport * as i10 from '@angular/material/tabs';\nimport * as i11 from './directives/command.directive';\nimport * as i12 from './directives/focus-binding.directive';\nimport * as i13 from './components/forms/number-input/number-input.component';\nimport * as i14 from './components/forms/string-input/string-input.component';\nimport * as i15 from './components/forms/password-input/password-input.component';\nimport * as i16 from './components/forms/select-input/select-input.component';\nimport * as i17 from './components/noop/noop.component';\nimport * as i18 from './place/components/busy-overlay/busy-overlay.component';\nimport * as i19 from './place/components/place-outlet/place-outlet.component';\nimport * as i20 from './place/components/empty-state/empty-state.component';\nimport * as i21 from './place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i22 from './place/components/list-place-nav/list-place-nav.component';\nimport * as i23 from './place/components/abstract-place-navigation.component';\nimport * as i24 from './interaction/components/activity-container/activity-container.component';\nimport * as i25 from './interaction/components/activity-outlet/activity-outlet.component';\nimport * as i26 from './interaction/components/inplace-interaction-context/
|
|
1
|
+
{"version":3,"file":"angular-ui-powerups.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/angular-ui-powerups.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './angular-ui-powerups.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/material/form-field';\nimport * as i6 from '@angular/material/input';\nimport * as i7 from '@angular/material/core';\nimport * as i8 from '@angular/cdk/bidi';\nimport * as i9 from '@angular/material/select';\nimport * as i10 from '@angular/material/tabs';\nimport * as i11 from './directives/command.directive';\nimport * as i12 from './directives/focus-binding.directive';\nimport * as i13 from './components/forms/number-input/number-input.component';\nimport * as i14 from './components/forms/string-input/string-input.component';\nimport * as i15 from './components/forms/password-input/password-input.component';\nimport * as i16 from './components/forms/select-input/select-input.component';\nimport * as i17 from './components/noop/noop.component';\nimport * as i18 from './place/components/busy-overlay/busy-overlay.component';\nimport * as i19 from './place/components/place-outlet/place-outlet.component';\nimport * as i20 from './place/components/empty-state/empty-state.component';\nimport * as i21 from './place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i22 from './place/components/list-place-nav/list-place-nav.component';\nimport * as i23 from './place/components/abstract-place-navigation.component';\nimport * as i24 from './interaction/components/activity-container/activity-container.component';\nimport * as i25 from './interaction/components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i26 from './interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i27 from '@angular/platform-browser/animations';\nimport * as i28 from './directives/directives.module';\nimport * as i29 from './components/components.module';\nimport * as i30 from './place/place.module';\nimport * as i31 from './interaction/interaction.module';\nexport const AngularUiPowerupsModuleNgFactory:i0.NgModuleFactory<i1.AngularUiPowerupsModule> = (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.ɵangular_packages_forms_forms_z = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_y = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_16:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i3.NgFormSelectorWarning = (<any>(null as any));\nvar _decl0_33:i4.CdkAutofill = (<any>(null as any));\nvar _decl0_34:i4.CdkTextareaAutosize = (<any>(null as any));\nvar _decl0_35:i5.MatError = (<any>(null as any));\nvar _decl0_36:i5.MatFormField = (<any>(null as any));\nvar _decl0_37:i5.MatHint = (<any>(null as any));\nvar _decl0_38:i5.MatLabel = (<any>(null as any));\nvar _decl0_39:i5.MatPlaceholder = (<any>(null as any));\nvar _decl0_40:i5.MatPrefix = (<any>(null as any));\nvar _decl0_41:i5.MatSuffix = (<any>(null as any));\nvar _decl0_42:i6.MatInput = (<any>(null as any));\nvar _decl0_43:i6.MatTextareaAutosize = (<any>(null as any));\nvar _decl0_44:i7.MatOption = (<any>(null as any));\nvar _decl0_45:i7.MatOptgroup = (<any>(null as any));\nvar _decl0_46:i8.Dir = (<any>(null as any));\nvar _decl0_47:i9.MatSelect = (<any>(null as any));\nvar _decl0_48:i9.MatSelectTrigger = (<any>(null as any));\nvar _decl0_49:i10.MatTabGroup = (<any>(null as any));\nvar _decl0_50:i10.MatTabLabel = (<any>(null as any));\nvar _decl0_51:i10.MatTab = (<any>(null as any));\nvar _decl0_52:i10.MatTabNav = (<any>(null as any));\nvar _decl0_53:i10.MatTabLink = (<any>(null as any));\nvar _decl0_54:i10.MatTabContent = (<any>(null as any));\nvar _decl0_55:i11.CommandDirective<any> = (<any>(null as any));\nvar _decl0_56:i12.FocusBindingDirective = (<any>(null as any));\nvar _decl0_57:i13.NumberInputComponent = (<any>(null as any));\nvar _decl0_58:i14.StringInputComponent = (<any>(null as any));\nvar _decl0_59:i15.PasswordInputComponent = (<any>(null as any));\nvar _decl0_60:i16.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_61:i17.NoopComponent = (<any>(null as any));\nvar _decl0_62:i18.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_63:i19.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_64:i20.EmptyStateComponent = (<any>(null as any));\nvar _decl0_65:i21.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_66:i22.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_67:i23.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_68:i24.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_69:i25.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_70:i26.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_71:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_72:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_73:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_74:i2.JsonPipe = (<any>(null as any));\nvar _decl0_75:i2.SlicePipe = (<any>(null as any));\nvar _decl0_76:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_77:i2.PercentPipe = (<any>(null as any));\nvar _decl0_78:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_79:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_80:i2.DatePipe = (<any>(null as any));\nvar _decl0_81:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_82:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_83:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_84:i2.CommonModule = (<any>(null as any));\nvar _decl0_85:i27.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_86:i3.FormsModule = (<any>(null as any));\nvar _decl0_87:i6.MatInputModule = (<any>(null as any));\nvar _decl0_88:i5.MatFormFieldModule = (<any>(null as any));\nvar _decl0_89:i9.MatSelectModule = (<any>(null as any));\nvar _decl0_90:i10.MatTabsModule = (<any>(null as any));\nvar _decl0_97:i28.DirectivesModule = (<any>(null as any));\nvar _decl0_98:i29.ComponentsModule = (<any>(null as any));\nvar _decl0_96:i30.PlaceModule = (<any>(null as any));\nvar _decl0_95:i31.InteractionModule = (<any>(null as any));\nvar _decl0_99:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_100:i0.ElementRef<any> = (<any>(null as any));\n"]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { AlertDialogComponent } from './components/alert-dialog/alert-dialog.component';
|
|
6
|
+
import { ConfirmThenDialogComponent } from './components/confirm-then-dialog/confirm-then-dialog.component';
|
|
7
|
+
import { ConfirmationDialogComponent } from './components/confirmation-dialog/confirmation-dialog.component';
|
|
8
|
+
/**
|
|
9
|
+
* @abstract
|
|
10
|
+
*/
|
|
11
|
+
export class AbstractInteractionContext {
|
|
12
|
+
/**
|
|
13
|
+
* @template D, R, E
|
|
14
|
+
* @param {?} activityType
|
|
15
|
+
* @param {?=} data
|
|
16
|
+
* @return {?}
|
|
17
|
+
*/
|
|
18
|
+
startActivity(activityType, data) {
|
|
19
|
+
return this.createAndLaunchActivity(activityType, data, false);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @param {?} confirm
|
|
23
|
+
* @return {?}
|
|
24
|
+
*/
|
|
25
|
+
confirm(confirm) {
|
|
26
|
+
// Important: we have to implement confirmOrReject as the main entry point
|
|
27
|
+
// as the canDeactivation guards need to be able to cancel an interaction
|
|
28
|
+
// without caring about returning a value.
|
|
29
|
+
return this.confirmOrReject(confirm).then((/**
|
|
30
|
+
* @return {?}
|
|
31
|
+
*/
|
|
32
|
+
() => true)).catch((/**
|
|
33
|
+
* @return {?}
|
|
34
|
+
*/
|
|
35
|
+
() => false));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @param {?} alert
|
|
39
|
+
* @return {?}
|
|
40
|
+
*/
|
|
41
|
+
alert(alert) {
|
|
42
|
+
// TODO: Test disableClose === false
|
|
43
|
+
return this.createAndLaunchActivity(AlertDialogComponent, alert, false);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @param {?} confirm
|
|
47
|
+
* @return {?}
|
|
48
|
+
*/
|
|
49
|
+
confirmOrReject(confirm) {
|
|
50
|
+
return this.createAndLaunchActivity(ConfirmationDialogComponent, confirm, true);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Presents the confirmation to the user and runs the activity only if the user confirms.
|
|
54
|
+
* @template D, R, E
|
|
55
|
+
* @param {?} confirm
|
|
56
|
+
* @param {?} activityType the activity to run if confirmed.
|
|
57
|
+
* @param {?=} data the activity data.
|
|
58
|
+
* @return {?}
|
|
59
|
+
*/
|
|
60
|
+
confirmThen(confirm, activityType, data) {
|
|
61
|
+
return this.createAndLaunchActivity(ConfirmThenDialogComponent, {
|
|
62
|
+
confirm,
|
|
63
|
+
activityType: activityType,
|
|
64
|
+
data: data
|
|
65
|
+
}, true);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (false) {
|
|
69
|
+
/** @type {?} */
|
|
70
|
+
AbstractInteractionContext.prototype.identifier;
|
|
71
|
+
/**
|
|
72
|
+
* @abstract
|
|
73
|
+
* @return {?}
|
|
74
|
+
*/
|
|
75
|
+
AbstractInteractionContext.prototype.cancelActiveActivity = function () { };
|
|
76
|
+
/**
|
|
77
|
+
* @abstract
|
|
78
|
+
* @return {?}
|
|
79
|
+
*/
|
|
80
|
+
AbstractInteractionContext.prototype.dispose = function () { };
|
|
81
|
+
/**
|
|
82
|
+
* @abstract
|
|
83
|
+
* @template T
|
|
84
|
+
* @param {?} disposable
|
|
85
|
+
* @return {?}
|
|
86
|
+
*/
|
|
87
|
+
AbstractInteractionContext.prototype.registerDisposable = function (disposable) { };
|
|
88
|
+
/**
|
|
89
|
+
* @abstract
|
|
90
|
+
* @return {?}
|
|
91
|
+
*/
|
|
92
|
+
AbstractInteractionContext.prototype.isActive = function () { };
|
|
93
|
+
/**
|
|
94
|
+
* @abstract
|
|
95
|
+
* @protected
|
|
96
|
+
* @template D, R, E
|
|
97
|
+
* @param {?} activityType
|
|
98
|
+
* @param {?} data
|
|
99
|
+
* @param {?} disableClose
|
|
100
|
+
* @return {?}
|
|
101
|
+
*/
|
|
102
|
+
AbstractInteractionContext.prototype.createAndLaunchActivity = function (activityType, data, disableClose) { };
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=abstract-interaction-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstract-interaction-context.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/abstract-interaction-context.ts"],"names":[],"mappings":";;;;AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;;;;AAI7G,MAAM,OAAgB,0BAA0B;;;;;;;IAY9C,aAAa,CAAU,YAA8C,EAAE,IAAQ;QAC7E,OAAO,IAAI,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;;;;;IAED,OAAO,CAAC,OAAgB;QACtB,0EAA0E;QAC1E,yEAAyE;QACzE,0CAA0C;QAC1C,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,IAAI;;;QAAC,GAAG,EAAE,CAAC,IAAI,EAAC,CAAC,KAAK;;;QAAC,GAAG,EAAE,CAAC,KAAK,EAAC,CAAC;IAC3E,CAAC;;;;;IAED,KAAK,CAAC,KAAY;QAChB,oCAAoC;QACpC,OAAO,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1E,CAAC;;;;;IAED,eAAe,CAAC,OAAgB;QAC9B,OAAO,IAAI,CAAC,uBAAuB,CAAC,2BAA2B,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;;;;;;;;IAOD,WAAW,CAAU,OAAgB,EAAE,YAA8C,EAAE,IAAQ;QAC7F,OAAO,IAAI,CAAC,uBAAuB,CAAiD,0BAA0B,EAAE;YAC9G,OAAO;YACP,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,IAAI;SACX,EAAE,IAAI,CAAC,CAAC;IACX,CAAC;CAEF;;;IA5CC,gDAAqC;;;;;IAErC,4EAAkD;;;;;IAElD,+DAAyB;;;;;;;IAEzB,oFAAoE;;;;;IACpE,gEAA6B;;;;;;;;;;IAE7B,+GAAgJ","sourcesContent":["import { Constructable, Disposable, ValueModel } from '@coolon/pectin';\nimport { Activity } from './activity';\nimport { Alert } from './alert';\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 { Confirm } from './confirm';\nimport { InteractionContext } from './interaction-context';\n\nexport abstract class AbstractInteractionContext implements InteractionContext {\n abstract readonly identifier: string;\n\n abstract cancelActiveActivity(): Promise<boolean>;\n\n abstract dispose(): void;\n\n abstract registerDisposable<T extends Disposable>(disposable: T): T;\n abstract isActive(): boolean;\n\n protected abstract createAndLaunchActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data: D, disableClose: boolean): Promise<R>;\n\n startActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R> {\n return this.createAndLaunchActivity(activityType, data, false);\n }\n\n confirm(confirm: Confirm): Promise<boolean> {\n // Important: we have to implement confirmOrReject as the main entry point\n // as the canDeactivation guards need to be able to cancel an interaction\n // without caring about returning a value.\n return this.confirmOrReject(confirm).then(() => true).catch(() => false);\n }\n\n alert(alert: Alert): Promise<void> {\n // TODO: Test disableClose === false\n return this.createAndLaunchActivity(AlertDialogComponent, alert, false);\n }\n\n confirmOrReject(confirm: Confirm): Promise<void> {\n return this.createAndLaunchActivity(ConfirmationDialogComponent, confirm, true);\n }\n /**\n * Presents the confirmation to the user and runs the activity only if the user confirms.\n * @param confirm:Confirm the confirmation to display.\n * @param activityType the activity to run if confirmed.\n * @param data the activity data.\n */\n confirmThen<D, R, E>(confirm: Confirm, activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R> {\n return this.createAndLaunchActivity<ConfirmThenDialogComponent.Data<D, R, E>, R, E>(ConfirmThenDialogComponent, {\n confirm,\n activityType: activityType,\n data: data\n }, true);\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"AbstractInteractionContext":{"__symbolic":"class","members":{"cancelActiveActivity":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method"}],"registerDisposable":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"createAndLaunchActivity":[{"__symbolic":"method"}],"startActivity":[{"__symbolic":"method"}],"confirm":[{"__symbolic":"method"}],"alert":[{"__symbolic":"method"}],"confirmOrReject":[{"__symbolic":"method"}],"confirmThen":[{"__symbolic":"method"}]}}}}]
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { assert, Deferred } from '@coolon/pectin';
|
|
6
|
+
/**
|
|
7
|
+
* @template D, R, E
|
|
8
|
+
*/
|
|
9
|
+
export class ActivityRef {
|
|
10
|
+
/**
|
|
11
|
+
* @param {?} activityClass
|
|
12
|
+
* @param {?} activityData
|
|
13
|
+
* @param {?} onComplete
|
|
14
|
+
*/
|
|
15
|
+
constructor(activityClass, activityData, onComplete) {
|
|
16
|
+
this.activityClass = activityClass;
|
|
17
|
+
this.activityData = activityData;
|
|
18
|
+
this.onComplete = onComplete;
|
|
19
|
+
this._complete = false;
|
|
20
|
+
this.deferredResult = Deferred.defer();
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @return {?}
|
|
24
|
+
*/
|
|
25
|
+
isActivityRealised() {
|
|
26
|
+
return !!this._activity;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @return {?}
|
|
30
|
+
*/
|
|
31
|
+
isComplete() {
|
|
32
|
+
return this._complete;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @return {?}
|
|
36
|
+
*/
|
|
37
|
+
get activity() {
|
|
38
|
+
assert.isTruthy(this.isActivityRealised());
|
|
39
|
+
return this._activity;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @param {?} activity
|
|
43
|
+
* @param {?} nestedInteractionContext
|
|
44
|
+
* @return {?}
|
|
45
|
+
*/
|
|
46
|
+
notifyActivityCreated(activity, nestedInteractionContext) {
|
|
47
|
+
assert.isNil(this._activity);
|
|
48
|
+
this._activity = activity;
|
|
49
|
+
/** @type {?} */
|
|
50
|
+
const self = this;
|
|
51
|
+
this._activity.initialise(nestedInteractionContext, {
|
|
52
|
+
/**
|
|
53
|
+
* @param {?} result
|
|
54
|
+
* @return {?}
|
|
55
|
+
*/
|
|
56
|
+
onDone(result) {
|
|
57
|
+
self.finishActivity((/**
|
|
58
|
+
* @param {?} deferred
|
|
59
|
+
* @return {?}
|
|
60
|
+
*/
|
|
61
|
+
deferred => deferred.resolve(result)));
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* @param {?} error
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
onCancel(error) {
|
|
68
|
+
self.finishActivity((/**
|
|
69
|
+
* @param {?} deferred
|
|
70
|
+
* @return {?}
|
|
71
|
+
*/
|
|
72
|
+
deferred => deferred.reject(error)));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @protected
|
|
78
|
+
* @param {?} resolveOrReject
|
|
79
|
+
* @return {?}
|
|
80
|
+
*/
|
|
81
|
+
finishActivity(resolveOrReject) {
|
|
82
|
+
assert.isFalsey(this.isComplete());
|
|
83
|
+
resolveOrReject(this.deferredResult);
|
|
84
|
+
this._complete = true;
|
|
85
|
+
this.onComplete(this);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @return {?}
|
|
89
|
+
*/
|
|
90
|
+
cancel() {
|
|
91
|
+
this.activity.cancel();
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @return {?}
|
|
95
|
+
*/
|
|
96
|
+
get activityResult() {
|
|
97
|
+
return this.deferredResult.promise;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (false) {
|
|
101
|
+
/**
|
|
102
|
+
* @type {?}
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
ActivityRef.prototype._complete;
|
|
106
|
+
/**
|
|
107
|
+
* @type {?}
|
|
108
|
+
* @private
|
|
109
|
+
*/
|
|
110
|
+
ActivityRef.prototype._activity;
|
|
111
|
+
/**
|
|
112
|
+
* @type {?}
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
ActivityRef.prototype.deferredResult;
|
|
116
|
+
/** @type {?} */
|
|
117
|
+
ActivityRef.prototype.activityClass;
|
|
118
|
+
/** @type {?} */
|
|
119
|
+
ActivityRef.prototype.activityData;
|
|
120
|
+
/** @type {?} */
|
|
121
|
+
ActivityRef.prototype.onComplete;
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=activity-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-ref.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/activity-ref.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,MAAM,EAAiB,QAAQ,EAAS,MAAM,gBAAgB,CAAC;;;;AAIxE,MAAM,OAAO,WAAW;;;;;;IAMtB,YAAqB,aAA+C,EAC/C,YAAe,EACf,UAAuD;QAFvD,kBAAa,GAAb,aAAa,CAAkC;QAC/C,iBAAY,GAAZ,YAAY,CAAG;QACf,eAAU,GAAV,UAAU,CAA6C;QANpE,cAAS,GAAG,KAAK,CAAC;QAElB,mBAAc,GAAG,QAAQ,CAAC,KAAK,EAAK,CAAC;IAK7C,CAAC;;;;IAED,kBAAkB;QAChB,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;;;;IAED,UAAU;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;;;;IAED,IAAI,QAAQ;QACV,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;;;;;;IAED,qBAAqB,CAAC,QAA2B,EAAE,wBAA4C;QAC7F,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;;cACpB,IAAI,GAAG,IAAI;QACjB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,wBAAwB,EAAE;;;;;YAClD,MAAM,CAAC,MAAS;gBACd,IAAI,CAAC,cAAc;;;;gBAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAC,CAAC;YAC5D,CAAC;;;;;YACD,QAAQ,CAAC,KAAQ;gBACf,IAAI,CAAC,cAAc;;;;gBAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAC,CAAC;YAC1D,CAAC;SACF,CAAC,CAAC;IACL,CAAC;;;;;;IAES,cAAc,CAAC,eAAgD;QAEvE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QACnC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;;;;IAED,MAAM;QACJ,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;;;;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;IACrC,CAAC;CAEF;;;;;;IApDC,gCAA0B;;;;;IAC1B,gCAAqC;;;;;IACrC,qCAA6C;;IAEjC,oCAAwD;;IACxD,mCAAwB;;IACxB,iCAAgE","sourcesContent":["import { assert, Constructable, Deferred, Trace } from '@coolon/pectin';\nimport { Activity } from './activity';\nimport { InteractionContext } from './interaction-context';\n\nexport class ActivityRef<D, R, E> {\n\n private _complete = false;\n private _activity: Activity<D, R, E>;\n private deferredResult = Deferred.defer<R>();\n\n constructor(readonly activityClass: Constructable<Activity<D, R, E>>,\n readonly activityData: D,\n readonly onComplete: (activityRef: ActivityRef<D, R, E>) => void) {\n }\n\n isActivityRealised(): boolean {\n return !!this._activity;\n }\n\n isComplete() {\n return this._complete;\n }\n\n get activity(): Activity<D, R, E> {\n assert.isTruthy(this.isActivityRealised());\n return this._activity;\n }\n\n notifyActivityCreated(activity: Activity<D, R, E>, nestedInteractionContext: InteractionContext) {\n assert.isNil(this._activity);\n this._activity = activity;\n const self = this;\n this._activity.initialise(nestedInteractionContext, {\n onDone(result: R) {\n self.finishActivity(deferred => deferred.resolve(result));\n },\n onCancel(error: E) {\n self.finishActivity(deferred => deferred.reject(error));\n }\n });\n }\n\n protected finishActivity(resolveOrReject: (deferred: Deferred<R>) => void) {\n\n assert.isFalsey(this.isComplete());\n resolveOrReject(this.deferredResult);\n this._complete = true;\n this.onComplete(this);\n }\n\n cancel() {\n this.activity.cancel();\n }\n\n get activityResult(): Promise<R> {\n return this.deferredResult.promise;\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ActivityRef":{"__symbolic":"class","arity":3,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@coolon/pectin","name":"Constructable","line":10,"character":38,"arguments":[{"__symbolic":"reference","module":"./activity","name":"Activity","line":10,"character":52,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":10,"character":61,"context":{"typeName":"D"}},{"__symbolic":"error","message":"Could not resolve type","line":10,"character":64,"context":{"typeName":"R"}},{"__symbolic":"error","message":"Could not resolve type","line":10,"character":67,"context":{"typeName":"E"}}]}]},{"__symbolic":"error","message":"Could not resolve type","line":11,"character":37,"context":{"typeName":"D"}},{"__symbolic":"error","message":"Expression form not supported","line":12,"character":35}]}],"isActivityRealised":[{"__symbolic":"method"}],"isComplete":[{"__symbolic":"method"}],"notifyActivityCreated":[{"__symbolic":"method"}],"finishActivity":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}]}}}}]
|
|
@@ -17,12 +17,21 @@ export class Activity extends GarbageCollector {
|
|
|
17
17
|
this._busyModel = new DelegatingValueModel().withDefault(false);
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
+
* @param {?} nestedInteractionContext
|
|
20
21
|
* @param {?} activityContext
|
|
21
22
|
* @return {?}
|
|
22
23
|
*/
|
|
23
|
-
initialise(activityContext) {
|
|
24
|
+
initialise(nestedInteractionContext, activityContext) {
|
|
24
25
|
assert.isNil(this._activityContext);
|
|
25
26
|
this._activityContext = activityContext;
|
|
27
|
+
this._interactionContext = nestedInteractionContext;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @return {?}
|
|
31
|
+
*/
|
|
32
|
+
get interactionContext() {
|
|
33
|
+
assert.isTruthy(this.isInitialised());
|
|
34
|
+
return this._interactionContext;
|
|
26
35
|
}
|
|
27
36
|
/**
|
|
28
37
|
* @param {?=} result
|
|
@@ -63,6 +72,12 @@ export class Activity extends GarbageCollector {
|
|
|
63
72
|
isBusy() {
|
|
64
73
|
return this._busyModel.value;
|
|
65
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @return {?}
|
|
77
|
+
*/
|
|
78
|
+
isInitialised() {
|
|
79
|
+
return !!this._activityContext;
|
|
80
|
+
}
|
|
66
81
|
}
|
|
67
82
|
if (false) {
|
|
68
83
|
/**
|
|
@@ -75,6 +90,11 @@ if (false) {
|
|
|
75
90
|
* @private
|
|
76
91
|
*/
|
|
77
92
|
Activity.prototype._activityContext;
|
|
93
|
+
/**
|
|
94
|
+
* @type {?}
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
Activity.prototype._interactionContext;
|
|
78
98
|
}
|
|
79
99
|
(function (Activity) {
|
|
80
100
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/activity.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"activity.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/activity.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;;AAGtD,MAAM,OAAO,aAAa,GAAG,IAAI,cAAc,CAAM,yBAAyB,CAAC;;;;;AAE/E,MAAM,OAAgB,QAAwB,SAAQ,gBAAgB;IAAtE;;QAEmB,eAAU,GAAG,IAAI,oBAAoB,EAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IA6CvF,CAAC;;;;;;IAvCC,UAAU,CAAC,wBAA4C,EAAE,eAAyC;QAChG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,mBAAmB,GAAG,wBAAwB,CAAC;IACtD,CAAC;;;;IAED,IAAI,kBAAkB;QACpB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;;;;;IAED,IAAI,CAAC,MAAU;QACb,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;;;;;IAED,MAAM,CAAC,KAAS;QACd,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;;;;;IAGD,eAAe;IACf,CAAC;;;;IAGD,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;IAClC,CAAC;;;;;IAED,SAAS,CAAC,SAA8B;QACtC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;;;;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;IAC/B,CAAC;;;;IAED,aAAa;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;CACF;;;;;;IA7CC,8BAAqF;;;;;IACrF,oCAAmD;;;;;IAGnD,uCAAgD;;AA2ClD,WAAiB,QAAQ;;;;;IAEvB,wBAGC;;;;QAFC,2BAA4B;;QAC5B,6BAA6B;;AAEjC,CAAC,EANgB,QAAQ,KAAR,QAAQ,QAMxB","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { DelegatingValueModel, GarbageCollector, Trace, ValueModel } from '@coolon/pectin';\nimport { assert } from '@coolon/typescript-utilities';\nimport { InteractionContext } from './interaction-context';\n\nexport const ACTIVITY_DATA = new InjectionToken<any>('InteractionActivityData');\n\nexport abstract class Activity<D, R, E = any> extends GarbageCollector {\n\n private readonly _busyModel = new DelegatingValueModel<boolean>().withDefault(false);\n private _activityContext: Activity.Callbacks<R, E>;\n\n // @Trace()\n private _interactionContext: InteractionContext;\n\n initialise(nestedInteractionContext: InteractionContext, activityContext: Activity.Callbacks<R, E>): void {\n assert.isNil(this._activityContext);\n this._activityContext = activityContext;\n this._interactionContext = nestedInteractionContext;\n }\n\n get interactionContext() {\n assert.isTruthy(this.isInitialised());\n return this._interactionContext;\n }\n\n done(result?: R): void {\n return this._activityContext.onDone(result);\n }\n\n cancel(error?: E): void {\n this._activityContext.onCancel(error);\n }\n\n // @Trace()\n onActivityReady() {\n }\n\n\n get busy(): ValueModel<boolean> {\n return this._busyModel.readonly;\n }\n\n busyWhile(busyModel: ValueModel<boolean>) {\n this._busyModel.setDelegate(busyModel);\n }\n\n isBusy() {\n return this._busyModel.value;\n }\n\n isInitialised() {\n return !!this._activityContext;\n }\n}\n\nexport namespace Activity {\n\n export interface Callbacks<R, E> {\n onDone: (result: R) => void,\n onCancel: (error: E) => void,\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ACTIVITY_DATA":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ACTIVITY_DATA":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":33},"arguments":["InteractionActivityData"]},"Activity":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":7,"character":54},"arity":3,"members":{"initialise":[{"__symbolic":"method"}],"done":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"onActivityReady":[{"__symbolic":"method"}],"busyWhile":[{"__symbolic":"method"}],"isBusy":[{"__symbolic":"method"}],"isInitialised":[{"__symbolic":"method"}]}}}}]
|