@coolon/angular-ui-powerups 0.0.21 → 0.0.23
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 +90 -31
- 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 +14 -13
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +14 -13
- package/esm2015/index.js +2 -2
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +19 -4
- package/esm2015/lib/place/components/place-outlet/route-animations.js +35 -0
- package/esm2015/lib/place/index.js +2 -1
- package/esm2015/lib/place/place.decorator.js +6 -1
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +14 -13
- package/esm5/index.js +2 -2
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +23 -4
- package/esm5/lib/place/components/place-outlet/route-animations.js +35 -0
- package/esm5/lib/place/index.js +2 -1
- package/esm5/lib/place/place.decorator.js +6 -1
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +57 -4
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +61 -4
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -0
- package/lib/place/components/place-outlet/route-animations.d.ts +1 -0
- package/lib/place/index.d.ts +1 -0
- package/lib/place/place.decorator.d.ts +2 -0
- package/package.json +1 -1
- package/schematics/place-routes/index.js +2 -0
- package/schematics/place-routes/index.js.map +1 -1
- package/schematics/place-routes/place-def.d.ts +3 -0
- package/schematics/place-routes/place-def.js +9 -0
- package/schematics/place-routes/place-def.js.map +1 -1
- package/schematics/place-routes/scanner.js +1 -0
- package/schematics/place-routes/scanner.js.map +1 -1
- package/schematics/place-routes/templates/{apps/__project__/src/app/place-routes.ts.template → place-routes.ts.template} +2 -1
- package/schematics/place-routes/templates/services/place-router.service.ts.template +38 -0
|
@@ -14,7 +14,7 @@ import { MatListModule } from '@angular/material/list';
|
|
|
14
14
|
import { MatTabsModule as MatTabsModule$1 } from '@angular/material/tabs';
|
|
15
15
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
16
|
import { RouterModule, Router, ActivatedRoute, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
17
|
-
import { style, trigger, transition
|
|
17
|
+
import { query, style, group, animate, trigger, transition } from '@angular/animations';
|
|
18
18
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
19
19
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator';
|
|
20
20
|
import { isNil } from 'lodash';
|
|
@@ -1822,6 +1822,40 @@ if (false) {
|
|
|
1822
1822
|
PlaceService.prototype._activePlaces;
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
1825
|
+
/**
|
|
1826
|
+
* @fileoverview added by tsickle
|
|
1827
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1828
|
+
*/
|
|
1829
|
+
/** @type {?} */
|
|
1830
|
+
var left = [
|
|
1831
|
+
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
|
|
1832
|
+
group([
|
|
1833
|
+
query(':enter', [style({ transform: 'translateX(-100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
|
|
1834
|
+
optional: true,
|
|
1835
|
+
}),
|
|
1836
|
+
query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(100%)' }))], {
|
|
1837
|
+
optional: true,
|
|
1838
|
+
}),
|
|
1839
|
+
]),
|
|
1840
|
+
];
|
|
1841
|
+
/** @type {?} */
|
|
1842
|
+
var right = [
|
|
1843
|
+
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
|
|
1844
|
+
group([
|
|
1845
|
+
query(':enter', [style({ transform: 'translateX(100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
|
|
1846
|
+
optional: true,
|
|
1847
|
+
}),
|
|
1848
|
+
query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(-100%)' }))], {
|
|
1849
|
+
optional: true,
|
|
1850
|
+
}),
|
|
1851
|
+
]),
|
|
1852
|
+
];
|
|
1853
|
+
/** @type {?} */
|
|
1854
|
+
var LEFT_RIGHT_PLACE_ANIMATION = trigger('routeAnimations', [
|
|
1855
|
+
transition(':increment', right),
|
|
1856
|
+
transition(':decrement', left),
|
|
1857
|
+
]);
|
|
1858
|
+
|
|
1825
1859
|
/**
|
|
1826
1860
|
* @fileoverview added by tsickle
|
|
1827
1861
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1829,6 +1863,7 @@ if (false) {
|
|
|
1829
1863
|
var PlaceOutletComponent = /** @class */ (function () {
|
|
1830
1864
|
function PlaceOutletComponent(placeService) {
|
|
1831
1865
|
this.placeService = placeService;
|
|
1866
|
+
this.animate = true;
|
|
1832
1867
|
}
|
|
1833
1868
|
/**
|
|
1834
1869
|
* @return {?}
|
|
@@ -1860,20 +1895,37 @@ var PlaceOutletComponent = /** @class */ (function () {
|
|
|
1860
1895
|
function ($event) {
|
|
1861
1896
|
this.placeService.onDeactivate($event);
|
|
1862
1897
|
};
|
|
1898
|
+
/**
|
|
1899
|
+
* @param {?} outlet
|
|
1900
|
+
* @return {?}
|
|
1901
|
+
*/
|
|
1902
|
+
PlaceOutletComponent.prototype.getPlaceOrder = /**
|
|
1903
|
+
* @param {?} outlet
|
|
1904
|
+
* @return {?}
|
|
1905
|
+
*/
|
|
1906
|
+
function (outlet) {
|
|
1907
|
+
return this.animate && outlet && outlet.activatedRouteData && outlet.activatedRouteData['placeOrder'];
|
|
1908
|
+
};
|
|
1863
1909
|
PlaceOutletComponent.decorators = [
|
|
1864
1910
|
{ type: Component, args: [{
|
|
1865
1911
|
selector: 'angular-ui-powerups-place-outlet',
|
|
1866
|
-
template: "<router-outlet (activate)=\"onActivate($event)\"
|
|
1867
|
-
|
|
1912
|
+
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",
|
|
1913
|
+
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
1914
|
+
styles: [":host{display:block}.container{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
|
|
1868
1915
|
}] }
|
|
1869
1916
|
];
|
|
1870
1917
|
/** @nocollapse */
|
|
1871
1918
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
1872
1919
|
{ type: PlaceService }
|
|
1873
1920
|
]; };
|
|
1921
|
+
PlaceOutletComponent.propDecorators = {
|
|
1922
|
+
animate: [{ type: Input }]
|
|
1923
|
+
};
|
|
1874
1924
|
return PlaceOutletComponent;
|
|
1875
1925
|
}());
|
|
1876
1926
|
if (false) {
|
|
1927
|
+
/** @type {?} */
|
|
1928
|
+
PlaceOutletComponent.prototype.animate;
|
|
1877
1929
|
/**
|
|
1878
1930
|
* @type {?}
|
|
1879
1931
|
* @private
|
|
@@ -2358,6 +2410,8 @@ function Place(options) {
|
|
|
2358
2410
|
Options.prototype.path;
|
|
2359
2411
|
/** @type {?} */
|
|
2360
2412
|
Options.prototype.title;
|
|
2413
|
+
/** @type {?} */
|
|
2414
|
+
Options.prototype.order;
|
|
2361
2415
|
/** @type {?|undefined} */
|
|
2362
2416
|
Options.prototype.authenticate;
|
|
2363
2417
|
}
|
|
@@ -2366,6 +2420,7 @@ function Place(options) {
|
|
|
2366
2420
|
assert.notNil(options);
|
|
2367
2421
|
this.path = options.path;
|
|
2368
2422
|
this.title = options.title;
|
|
2423
|
+
this.order = options.order;
|
|
2369
2424
|
this.authenticate = isNil(options.authenticate) || options.authenticate;
|
|
2370
2425
|
}
|
|
2371
2426
|
return Descriptor;
|
|
@@ -2378,6 +2433,8 @@ function Place(options) {
|
|
|
2378
2433
|
Descriptor.prototype.authenticate;
|
|
2379
2434
|
/** @type {?} */
|
|
2380
2435
|
Descriptor.prototype.title;
|
|
2436
|
+
/** @type {?} */
|
|
2437
|
+
Descriptor.prototype.order;
|
|
2381
2438
|
}
|
|
2382
2439
|
/**
|
|
2383
2440
|
* @param {?} klass
|
|
@@ -3620,5 +3677,5 @@ var ParameterType;
|
|
|
3620
3677
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3621
3678
|
*/
|
|
3622
3679
|
|
|
3623
|
-
export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LeavePlaceGuard, NavComponent, NumberInputComponent, ParameterType, PasswordInputComponent, Place, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, Point, QueryParameter, QueryParameterList, ResizeAwareComponent, RouteId, RouteParameter, RouteParameterBindings, RouteParameterList, RouteParameterSanitiser, Sanitiser, SelectInputComponent, StringInputComponent, 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,
|
|
3680
|
+
export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, NavComponent, NumberInputComponent, ParameterType, PasswordInputComponent, Place, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, Point, QueryParameter, QueryParameterList, ResizeAwareComponent, RouteId, RouteParameter, RouteParameterBindings, RouteParameterList, RouteParameterSanitiser, Sanitiser, SelectInputComponent, StringInputComponent, 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, NavComponent 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 };
|
|
3624
3681
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|