@coolon/angular-ui-powerups 0.0.30 → 0.0.32
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 +58 -18
- 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.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +3 -3
- package/esm2015/lib/place/components/place-outlet/route-animations.js +29 -17
- package/esm2015/lib/place/route/parameter-type.js +18 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +3 -3
- package/esm5/lib/place/components/place-outlet/route-animations.js +29 -17
- package/esm5/lib/place/route/parameter-type.js +29 -1
- package/fesm2015/coolon-angular-ui-powerups.js +48 -19
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +59 -19
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/route/parameter-type.d.ts +5 -0
- package/package.json +1 -1
- package/styles/styles.scss +10 -0
|
@@ -1974,34 +1974,46 @@
|
|
|
1974
1974
|
* @fileoverview added by tsickle
|
|
1975
1975
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1976
1976
|
*/
|
|
1977
|
+
// Freezes the state of the components at the start of the animation.
|
|
1978
|
+
/** @type {?} */
|
|
1979
|
+
var animationStartStyle = animations$1.style({ position: 'absolute', top: '0', left: '0', bottom: '0', right: '0' });
|
|
1977
1980
|
/** @type {?} */
|
|
1978
1981
|
var left = [
|
|
1979
|
-
animations$1.query(':enter, :leave',
|
|
1982
|
+
animations$1.query(':enter, :leave', animationStartStyle, { optional: true }),
|
|
1980
1983
|
animations$1.group([
|
|
1981
|
-
animations$1.query(':enter', [
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
optional: true
|
|
1984
|
+
animations$1.query(':enter', [
|
|
1985
|
+
animations$1.style({ transform: 'translateX(-100%)' }),
|
|
1986
|
+
animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(0%)' }))
|
|
1987
|
+
], {
|
|
1988
|
+
optional: true
|
|
1986
1989
|
}),
|
|
1987
|
-
|
|
1990
|
+
animations$1.query(':leave', [
|
|
1991
|
+
animations$1.style({ transform: 'translateX(0%)' }),
|
|
1992
|
+
animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(100%)' }))
|
|
1993
|
+
], {
|
|
1994
|
+
optional: true
|
|
1995
|
+
})
|
|
1996
|
+
])
|
|
1988
1997
|
];
|
|
1989
1998
|
/** @type {?} */
|
|
1990
1999
|
var right = [
|
|
1991
|
-
animations$1.query(':enter, :leave',
|
|
2000
|
+
animations$1.query(':enter, :leave', animationStartStyle, { optional: true }),
|
|
1992
2001
|
animations$1.group([
|
|
1993
|
-
animations$1.query(':enter', [
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
optional: true
|
|
2002
|
+
animations$1.query(':enter', [
|
|
2003
|
+
animations$1.style({ transform: 'translateX(100%)' }),
|
|
2004
|
+
animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(0%)' }))
|
|
2005
|
+
], {
|
|
2006
|
+
optional: true
|
|
1998
2007
|
}),
|
|
1999
|
-
|
|
2008
|
+
animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(-100%)' }))], {
|
|
2009
|
+
optional: true
|
|
2010
|
+
})
|
|
2011
|
+
])
|
|
2000
2012
|
];
|
|
2001
2013
|
/** @type {?} */
|
|
2002
2014
|
var LEFT_RIGHT_PLACE_ANIMATION = animations$1.trigger('routeAnimations', [
|
|
2003
|
-
animations$1.transition(':increment', right),
|
|
2004
|
-
animations$1.transition(':decrement', left)
|
|
2015
|
+
animations$1.transition(':increment', right, { params: { duration: '.3s' } }),
|
|
2016
|
+
animations$1.transition(':decrement', left, { params: { duration: '.3s' } })
|
|
2005
2017
|
]);
|
|
2006
2018
|
|
|
2007
2019
|
/**
|
|
@@ -2057,9 +2069,9 @@
|
|
|
2057
2069
|
PlaceOutletComponent.decorators = [
|
|
2058
2070
|
{ type: core.Component, args: [{
|
|
2059
2071
|
selector: 'angular-ui-powerups-place-outlet',
|
|
2060
|
-
template: "<div container [@routeAnimations]=\"getPlaceOrder(routerOutlet)\">\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\">\n </router-outlet>\n</div>\n\n",
|
|
2072
|
+
template: "<div class=\"router-outlet-container\" [@routeAnimations]=\"getPlaceOrder(routerOutlet)\">\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\">\n </router-outlet>\n</div>\n\n",
|
|
2061
2073
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
2062
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0}
|
|
2074
|
+
styles: [":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
|
|
2063
2075
|
}] }
|
|
2064
2076
|
];
|
|
2065
2077
|
/** @nocollapse */
|
|
@@ -3896,8 +3908,36 @@
|
|
|
3896
3908
|
};
|
|
3897
3909
|
return NumberType;
|
|
3898
3910
|
}());
|
|
3911
|
+
var BooleanType = /** @class */ (function () {
|
|
3912
|
+
function BooleanType() {
|
|
3913
|
+
}
|
|
3914
|
+
/**
|
|
3915
|
+
* @param {?} value
|
|
3916
|
+
* @return {?}
|
|
3917
|
+
*/
|
|
3918
|
+
BooleanType.prototype.format = /**
|
|
3919
|
+
* @param {?} value
|
|
3920
|
+
* @return {?}
|
|
3921
|
+
*/
|
|
3922
|
+
function (value) {
|
|
3923
|
+
return value ? 'true' : 'false';
|
|
3924
|
+
};
|
|
3925
|
+
/**
|
|
3926
|
+
* @param {?} value
|
|
3927
|
+
* @return {?}
|
|
3928
|
+
*/
|
|
3929
|
+
BooleanType.prototype.parse = /**
|
|
3930
|
+
* @param {?} value
|
|
3931
|
+
* @return {?}
|
|
3932
|
+
*/
|
|
3933
|
+
function (value) {
|
|
3934
|
+
return value === 'true';
|
|
3935
|
+
};
|
|
3936
|
+
return BooleanType;
|
|
3937
|
+
}());
|
|
3899
3938
|
ParameterType.STRING = new StringType();
|
|
3900
3939
|
ParameterType.NUMBER = new NumberType();
|
|
3940
|
+
ParameterType.BOOLEAN = new BooleanType();
|
|
3901
3941
|
})(exports.ParameterType || (exports.ParameterType = {}));
|
|
3902
3942
|
|
|
3903
3943
|
exports.ACTIVITY_DATA = ACTIVITY_DATA;
|