@coolon/angular-ui-powerups 0.0.33 → 0.0.34
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 +2 -63
- 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/esm2015/coolon-angular-ui-powerups.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/lib/place/guards/leave-place.guard.js +2 -18
- package/esm2015/lib/place/index.js +2 -2
- package/esm2015/lib/place/place-component.js +2 -4
- package/esm2015/lib/place/route/parameter-decorators.js +1 -42
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +2 -2
- package/esm5/index.js +2 -2
- package/esm5/lib/place/guards/leave-place.guard.js +2 -18
- package/esm5/lib/place/index.js +2 -2
- package/esm5/lib/place/place-component.js +2 -6
- package/esm5/lib/place/route/parameter-decorators.js +1 -42
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +3 -60
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +3 -62
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/place-component.d.ts +2 -2
- package/lib/place/route/parameter-decorators.d.ts +0 -12
- package/package.json +1 -1
|
@@ -1693,11 +1693,9 @@ class PlaceComponent extends DisposableComponent {
|
|
|
1693
1693
|
return PlaceComponent.getDefinition((/** @type {?} */ ((/** @type {?} */ (this.constructor)))));
|
|
1694
1694
|
}
|
|
1695
1695
|
/**
|
|
1696
|
-
* @param {?=} nextPlace
|
|
1697
|
-
* @param {?=} nextState
|
|
1698
1696
|
* @return {?}
|
|
1699
1697
|
*/
|
|
1700
|
-
canDeactivate(
|
|
1698
|
+
canDeactivate() {
|
|
1701
1699
|
return true;
|
|
1702
1700
|
}
|
|
1703
1701
|
/**
|
|
@@ -2605,21 +2603,7 @@ class LeavePlaceGuard {
|
|
|
2605
2603
|
* @return {?}
|
|
2606
2604
|
*/
|
|
2607
2605
|
canDeactivate(component, currentRoute, currentState, nextState) {
|
|
2608
|
-
|
|
2609
|
-
const placeComponent = nextState ?
|
|
2610
|
-
(/** @type {?} */ (nextState.root.firstChild.component)) :
|
|
2611
|
-
null;
|
|
2612
|
-
/** @type {?} */
|
|
2613
|
-
const nextPlaceDefinition = lang.constructorChain(placeComponent).includes(PlaceComponent) ?
|
|
2614
|
-
PlaceComponent.getDefinition((/** @type {?} */ ((/** @type {?} */ (placeComponent))))) :
|
|
2615
|
-
null;
|
|
2616
|
-
if (nextPlaceDefinition.isDescriptorFor(component)) {
|
|
2617
|
-
// console.log("Same place different route. Do we need a place component hook for this??");
|
|
2618
|
-
return true;
|
|
2619
|
-
}
|
|
2620
|
-
else {
|
|
2621
|
-
return component.canDeactivate(nextPlaceDefinition, nextState);
|
|
2622
|
-
}
|
|
2606
|
+
return component.canDeactivate();
|
|
2623
2607
|
}
|
|
2624
2608
|
}
|
|
2625
2609
|
LeavePlaceGuard.decorators = [
|
|
@@ -3050,26 +3034,6 @@ function RouteId(type, options) {
|
|
|
3050
3034
|
UseDelegate()(prototype, propertyKey);
|
|
3051
3035
|
});
|
|
3052
3036
|
}
|
|
3053
|
-
/**
|
|
3054
|
-
* @deprecated use RouteParameter instead.
|
|
3055
|
-
* @template T
|
|
3056
|
-
* @param {?} type
|
|
3057
|
-
* @param {?=} options
|
|
3058
|
-
* @return {?}
|
|
3059
|
-
*/
|
|
3060
|
-
function QueryParameter(type, options) {
|
|
3061
|
-
return (/**
|
|
3062
|
-
* @param {?} prototype
|
|
3063
|
-
* @param {?} propertyKey
|
|
3064
|
-
* @return {?}
|
|
3065
|
-
*/
|
|
3066
|
-
(prototype, propertyKey) => {
|
|
3067
|
-
/** @type {?} */
|
|
3068
|
-
const param = createDefinition(propertyKey, type, options, false);
|
|
3069
|
-
Klass.get(prototype).addToOwnMetadataList(RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY, param);
|
|
3070
|
-
UseDelegate()(prototype, propertyKey);
|
|
3071
|
-
});
|
|
3072
|
-
}
|
|
3073
3037
|
/**
|
|
3074
3038
|
* @template T
|
|
3075
3039
|
* @param {?} type
|
|
@@ -3090,27 +3054,6 @@ function RouteParameter(type, options) {
|
|
|
3090
3054
|
UseDelegate()(prototype, propertyKey);
|
|
3091
3055
|
});
|
|
3092
3056
|
}
|
|
3093
|
-
/**
|
|
3094
|
-
* @deprecated use RouteParameterList instead
|
|
3095
|
-
* @template E
|
|
3096
|
-
* @param {?} elementType
|
|
3097
|
-
* @param {?=} options
|
|
3098
|
-
* @return {?}
|
|
3099
|
-
*/
|
|
3100
|
-
function QueryParameterList(elementType, options) {
|
|
3101
|
-
// assert.isTruthy(type.isValid());
|
|
3102
|
-
return (/**
|
|
3103
|
-
* @param {?} prototype
|
|
3104
|
-
* @param {?} propertyKey
|
|
3105
|
-
* @return {?}
|
|
3106
|
-
*/
|
|
3107
|
-
(prototype, propertyKey) => {
|
|
3108
|
-
/** @type {?} */
|
|
3109
|
-
const param = createArrayDefinition(propertyKey, elementType, options);
|
|
3110
|
-
Klass.get(prototype).addToOwnMetadataList(RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY, param);
|
|
3111
|
-
UseDelegate()(prototype, propertyKey);
|
|
3112
|
-
});
|
|
3113
|
-
}
|
|
3114
3057
|
/**
|
|
3115
3058
|
* @template E
|
|
3116
3059
|
* @param {?} elementType
|
|
@@ -3323,5 +3266,5 @@ class VisitSnapshot {
|
|
|
3323
3266
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3324
3267
|
*/
|
|
3325
3268
|
|
|
3326
|
-
export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DEFINITION_META_DATA_KEY, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, NumberInputComponent, ParameterType, PasswordInputComponent, Place, PlaceComponent, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, Point,
|
|
3269
|
+
export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DEFINITION_META_DATA_KEY, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, NumberInputComponent, ParameterType, PasswordInputComponent, Place, PlaceComponent, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, Point, ResizeAwareComponent, ResolvedRouteParameterSnapshot, RouteId, RouteParameter, RouteParameterBindings, RouteParameterList, RouteParameterSanitiser, Sanitiser, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, VisitSnapshot, slideDownAndUpAnimation, CommandDirective as ɵa, FocusBindingDirective as ɵb, DisposableComponent as ɵc, NumberInputComponent as ɵd, AbstractInputComponent as ɵe, StringInputComponent as ɵf, PasswordInputComponent as ɵg, SelectInputComponent as ɵh, PlaceModule as ɵi, EmptyStateComponent as ɵj, BusyOverlayComponent as ɵk, PlaceOutletComponent as ɵl, LEFT_RIGHT_PLACE_ANIMATION as ɵm, PlaceService as ɵn, TabbedPlaceNavigationComponent as ɵo, InteractionModule as ɵp, ActivityContainerComponent as ɵq, ConfirmationDialogComponent as ɵr, AbstractActivity as ɵs, ACTIVITY_DATA as ɵt, AlertDialogComponent as ɵv, ActivityOutletComponent as ɵx, DialogInteractionService as ɵy, InteractionContext as ɵz };
|
|
3327
3270
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|