@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
|
@@ -2033,16 +2033,12 @@ var PlaceComponent = /** @class */ (function (_super) {
|
|
|
2033
2033
|
configurable: true
|
|
2034
2034
|
});
|
|
2035
2035
|
/**
|
|
2036
|
-
* @param {?=} nextPlace
|
|
2037
|
-
* @param {?=} nextState
|
|
2038
2036
|
* @return {?}
|
|
2039
2037
|
*/
|
|
2040
2038
|
PlaceComponent.prototype.canDeactivate = /**
|
|
2041
|
-
* @param {?=} nextPlace
|
|
2042
|
-
* @param {?=} nextState
|
|
2043
2039
|
* @return {?}
|
|
2044
2040
|
*/
|
|
2045
|
-
function (
|
|
2041
|
+
function () {
|
|
2046
2042
|
return true;
|
|
2047
2043
|
};
|
|
2048
2044
|
/**
|
|
@@ -3053,21 +3049,7 @@ var LeavePlaceGuard = /** @class */ (function () {
|
|
|
3053
3049
|
* @return {?}
|
|
3054
3050
|
*/
|
|
3055
3051
|
function (component, currentRoute, currentState, nextState) {
|
|
3056
|
-
|
|
3057
|
-
var placeComponent = nextState ?
|
|
3058
|
-
(/** @type {?} */ (nextState.root.firstChild.component)) :
|
|
3059
|
-
null;
|
|
3060
|
-
/** @type {?} */
|
|
3061
|
-
var nextPlaceDefinition = lang.constructorChain(placeComponent).includes(PlaceComponent) ?
|
|
3062
|
-
PlaceComponent.getDefinition((/** @type {?} */ ((/** @type {?} */ (placeComponent))))) :
|
|
3063
|
-
null;
|
|
3064
|
-
if (nextPlaceDefinition.isDescriptorFor(component)) {
|
|
3065
|
-
// console.log("Same place different route. Do we need a place component hook for this??");
|
|
3066
|
-
return true;
|
|
3067
|
-
}
|
|
3068
|
-
else {
|
|
3069
|
-
return component.canDeactivate(nextPlaceDefinition, nextState);
|
|
3070
|
-
}
|
|
3052
|
+
return component.canDeactivate();
|
|
3071
3053
|
};
|
|
3072
3054
|
LeavePlaceGuard.decorators = [
|
|
3073
3055
|
{ type: Injectable, args: [{
|
|
@@ -3611,26 +3593,6 @@ function RouteId(type, options) {
|
|
|
3611
3593
|
UseDelegate()(prototype, propertyKey);
|
|
3612
3594
|
});
|
|
3613
3595
|
}
|
|
3614
|
-
/**
|
|
3615
|
-
* @deprecated use RouteParameter instead.
|
|
3616
|
-
* @template T
|
|
3617
|
-
* @param {?} type
|
|
3618
|
-
* @param {?=} options
|
|
3619
|
-
* @return {?}
|
|
3620
|
-
*/
|
|
3621
|
-
function QueryParameter(type, options) {
|
|
3622
|
-
return (/**
|
|
3623
|
-
* @param {?} prototype
|
|
3624
|
-
* @param {?} propertyKey
|
|
3625
|
-
* @return {?}
|
|
3626
|
-
*/
|
|
3627
|
-
function (prototype, propertyKey) {
|
|
3628
|
-
/** @type {?} */
|
|
3629
|
-
var param = createDefinition(propertyKey, type, options, false);
|
|
3630
|
-
Klass.get(prototype).addToOwnMetadataList(RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY, param);
|
|
3631
|
-
UseDelegate()(prototype, propertyKey);
|
|
3632
|
-
});
|
|
3633
|
-
}
|
|
3634
3596
|
/**
|
|
3635
3597
|
* @template T
|
|
3636
3598
|
* @param {?} type
|
|
@@ -3651,27 +3613,6 @@ function RouteParameter(type, options) {
|
|
|
3651
3613
|
UseDelegate()(prototype, propertyKey);
|
|
3652
3614
|
});
|
|
3653
3615
|
}
|
|
3654
|
-
/**
|
|
3655
|
-
* @deprecated use RouteParameterList instead
|
|
3656
|
-
* @template E
|
|
3657
|
-
* @param {?} elementType
|
|
3658
|
-
* @param {?=} options
|
|
3659
|
-
* @return {?}
|
|
3660
|
-
*/
|
|
3661
|
-
function QueryParameterList(elementType, options) {
|
|
3662
|
-
// assert.isTruthy(type.isValid());
|
|
3663
|
-
return (/**
|
|
3664
|
-
* @param {?} prototype
|
|
3665
|
-
* @param {?} propertyKey
|
|
3666
|
-
* @return {?}
|
|
3667
|
-
*/
|
|
3668
|
-
function (prototype, propertyKey) {
|
|
3669
|
-
/** @type {?} */
|
|
3670
|
-
var param = createArrayDefinition(propertyKey, elementType, options);
|
|
3671
|
-
Klass.get(prototype).addToOwnMetadataList(RouteParameterBindings.ROUTE_PARAMETER_LIST_KEY, param);
|
|
3672
|
-
UseDelegate()(prototype, propertyKey);
|
|
3673
|
-
});
|
|
3674
|
-
}
|
|
3675
3616
|
/**
|
|
3676
3617
|
* @template E
|
|
3677
3618
|
* @param {?} elementType
|
|
@@ -3920,5 +3861,5 @@ var VisitSnapshot = /** @class */ (function () {
|
|
|
3920
3861
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3921
3862
|
*/
|
|
3922
3863
|
|
|
3923
|
-
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,
|
|
3864
|
+
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 };
|
|
3924
3865
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|