@coolon/angular-ui-powerups 0.0.22 → 0.0.24
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 +145 -68
- 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/components/tabbed-place-navigation/tabbed-place-navigation.component.js +50 -0
- package/esm2015/lib/place/index.js +3 -2
- package/esm2015/lib/place/place.decorator.js +6 -1
- package/esm2015/lib/place/place.module.js +4 -4
- 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/components/tabbed-place-navigation/tabbed-place-navigation.component.js +57 -0
- package/esm5/lib/place/index.js +3 -2
- package/esm5/lib/place/place.decorator.js +6 -1
- package/esm5/lib/place/place.module.js +4 -4
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +105 -36
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +115 -40
- 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/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +11 -0
- package/lib/place/index.d.ts +2 -1
- package/lib/place/place.decorator.d.ts +2 -0
- package/package.json +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/place-routes.ts.template +2 -1
- package/schematics/place-routes/templates/services/place-router.service.ts.template +38 -0
- package/esm2015/lib/place/components/nav/nav.component.js +0 -31
- package/esm5/lib/place/components/nav/nav.component.js +0 -36
- package/lib/place/components/nav/nav.component.d.ts +0 -7
|
@@ -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';
|
|
@@ -1718,40 +1718,6 @@ var EmptyStateComponent = /** @class */ (function () {
|
|
|
1718
1718
|
return EmptyStateComponent;
|
|
1719
1719
|
}());
|
|
1720
1720
|
|
|
1721
|
-
/**
|
|
1722
|
-
* @fileoverview added by tsickle
|
|
1723
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1724
|
-
*/
|
|
1725
|
-
var NavComponent = /** @class */ (function () {
|
|
1726
|
-
function NavComponent() {
|
|
1727
|
-
}
|
|
1728
|
-
/**
|
|
1729
|
-
* @return {?}
|
|
1730
|
-
*/
|
|
1731
|
-
NavComponent.prototype.ngOnInit = /**
|
|
1732
|
-
* @return {?}
|
|
1733
|
-
*/
|
|
1734
|
-
function () {
|
|
1735
|
-
};
|
|
1736
|
-
NavComponent.decorators = [
|
|
1737
|
-
{ type: Component, args: [{
|
|
1738
|
-
selector: 'angular-ui-powerups-nav',
|
|
1739
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDescriptor of places\" [routerLink]='placeDescriptor.path'\n routerLinkActive #rla=\"routerLinkActive\"\n [active]=\"rla.isActive\"\n [matTooltip]=\"placeDescriptor.title\">{{placeDescriptor.title}}</a>\n</nav>\n\n",
|
|
1740
|
-
styles: [""]
|
|
1741
|
-
}] }
|
|
1742
|
-
];
|
|
1743
|
-
/** @nocollapse */
|
|
1744
|
-
NavComponent.ctorParameters = function () { return []; };
|
|
1745
|
-
NavComponent.propDecorators = {
|
|
1746
|
-
places: [{ type: Input }]
|
|
1747
|
-
};
|
|
1748
|
-
return NavComponent;
|
|
1749
|
-
}());
|
|
1750
|
-
if (false) {
|
|
1751
|
-
/** @type {?} */
|
|
1752
|
-
NavComponent.prototype.places;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
1721
|
/**
|
|
1756
1722
|
* @fileoverview added by tsickle
|
|
1757
1723
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1822,6 +1788,40 @@ if (false) {
|
|
|
1822
1788
|
PlaceService.prototype._activePlaces;
|
|
1823
1789
|
}
|
|
1824
1790
|
|
|
1791
|
+
/**
|
|
1792
|
+
* @fileoverview added by tsickle
|
|
1793
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1794
|
+
*/
|
|
1795
|
+
/** @type {?} */
|
|
1796
|
+
var left = [
|
|
1797
|
+
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
|
|
1798
|
+
group([
|
|
1799
|
+
query(':enter', [style({ transform: 'translateX(-100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
|
|
1800
|
+
optional: true,
|
|
1801
|
+
}),
|
|
1802
|
+
query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(100%)' }))], {
|
|
1803
|
+
optional: true,
|
|
1804
|
+
}),
|
|
1805
|
+
]),
|
|
1806
|
+
];
|
|
1807
|
+
/** @type {?} */
|
|
1808
|
+
var right = [
|
|
1809
|
+
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
|
|
1810
|
+
group([
|
|
1811
|
+
query(':enter', [style({ transform: 'translateX(100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
|
|
1812
|
+
optional: true,
|
|
1813
|
+
}),
|
|
1814
|
+
query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(-100%)' }))], {
|
|
1815
|
+
optional: true,
|
|
1816
|
+
}),
|
|
1817
|
+
]),
|
|
1818
|
+
];
|
|
1819
|
+
/** @type {?} */
|
|
1820
|
+
var LEFT_RIGHT_PLACE_ANIMATION = trigger('routeAnimations', [
|
|
1821
|
+
transition(':increment', right),
|
|
1822
|
+
transition(':decrement', left),
|
|
1823
|
+
]);
|
|
1824
|
+
|
|
1825
1825
|
/**
|
|
1826
1826
|
* @fileoverview added by tsickle
|
|
1827
1827
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1829,6 +1829,7 @@ if (false) {
|
|
|
1829
1829
|
var PlaceOutletComponent = /** @class */ (function () {
|
|
1830
1830
|
function PlaceOutletComponent(placeService) {
|
|
1831
1831
|
this.placeService = placeService;
|
|
1832
|
+
this.animate = true;
|
|
1832
1833
|
}
|
|
1833
1834
|
/**
|
|
1834
1835
|
* @return {?}
|
|
@@ -1860,20 +1861,37 @@ var PlaceOutletComponent = /** @class */ (function () {
|
|
|
1860
1861
|
function ($event) {
|
|
1861
1862
|
this.placeService.onDeactivate($event);
|
|
1862
1863
|
};
|
|
1864
|
+
/**
|
|
1865
|
+
* @param {?} outlet
|
|
1866
|
+
* @return {?}
|
|
1867
|
+
*/
|
|
1868
|
+
PlaceOutletComponent.prototype.getPlaceOrder = /**
|
|
1869
|
+
* @param {?} outlet
|
|
1870
|
+
* @return {?}
|
|
1871
|
+
*/
|
|
1872
|
+
function (outlet) {
|
|
1873
|
+
return this.animate && outlet && outlet.activatedRouteData && outlet.activatedRouteData['placeOrder'];
|
|
1874
|
+
};
|
|
1863
1875
|
PlaceOutletComponent.decorators = [
|
|
1864
1876
|
{ type: Component, args: [{
|
|
1865
1877
|
selector: 'angular-ui-powerups-place-outlet',
|
|
1866
|
-
template: "<router-outlet (activate)=\"onActivate($event)\"
|
|
1867
|
-
|
|
1878
|
+
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",
|
|
1879
|
+
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
1880
|
+
styles: [":host{display:flex;flex-direction:column;min-height:0}[container]{flex:1;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
|
|
1868
1881
|
}] }
|
|
1869
1882
|
];
|
|
1870
1883
|
/** @nocollapse */
|
|
1871
1884
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
1872
1885
|
{ type: PlaceService }
|
|
1873
1886
|
]; };
|
|
1887
|
+
PlaceOutletComponent.propDecorators = {
|
|
1888
|
+
animate: [{ type: Input }]
|
|
1889
|
+
};
|
|
1874
1890
|
return PlaceOutletComponent;
|
|
1875
1891
|
}());
|
|
1876
1892
|
if (false) {
|
|
1893
|
+
/** @type {?} */
|
|
1894
|
+
PlaceOutletComponent.prototype.animate;
|
|
1877
1895
|
/**
|
|
1878
1896
|
* @type {?}
|
|
1879
1897
|
* @private
|
|
@@ -1881,6 +1899,58 @@ if (false) {
|
|
|
1881
1899
|
PlaceOutletComponent.prototype.placeService;
|
|
1882
1900
|
}
|
|
1883
1901
|
|
|
1902
|
+
/**
|
|
1903
|
+
* @fileoverview added by tsickle
|
|
1904
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1905
|
+
*/
|
|
1906
|
+
var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
1907
|
+
__extends(TabbedPlaceNavigationComponent, _super);
|
|
1908
|
+
function TabbedPlaceNavigationComponent() {
|
|
1909
|
+
var _this = _super.call(this) || this;
|
|
1910
|
+
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1911
|
+
_this.orderedPlaces = chain(_this.placesModel).sortBy('order');
|
|
1912
|
+
return _this;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* @return {?}
|
|
1916
|
+
*/
|
|
1917
|
+
TabbedPlaceNavigationComponent.prototype.ngOnInit = /**
|
|
1918
|
+
* @return {?}
|
|
1919
|
+
*/
|
|
1920
|
+
function () {
|
|
1921
|
+
};
|
|
1922
|
+
TabbedPlaceNavigationComponent.decorators = [
|
|
1923
|
+
{ type: Component, args: [{
|
|
1924
|
+
selector: 'angular-ui-powerups-tabbed-place-navigation',
|
|
1925
|
+
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDescriptor of orderedPlaces.value\" [routerLink]='placeDescriptor.path'\n routerLinkActive #rla=\"routerLinkActive\"\n [active]=\"rla.isActive\"\n [matTooltip]=\"placeDescriptor.title\">{{placeDescriptor.title}}</a>\n</nav>\n\n",
|
|
1926
|
+
styles: [""]
|
|
1927
|
+
}] }
|
|
1928
|
+
];
|
|
1929
|
+
/** @nocollapse */
|
|
1930
|
+
TabbedPlaceNavigationComponent.ctorParameters = function () { return []; };
|
|
1931
|
+
TabbedPlaceNavigationComponent.propDecorators = {
|
|
1932
|
+
places: [{ type: Input }],
|
|
1933
|
+
placesModel: [{ type: Input }]
|
|
1934
|
+
};
|
|
1935
|
+
__decorate([
|
|
1936
|
+
StoreInListModel('placesModel'),
|
|
1937
|
+
__metadata("design:type", Array)
|
|
1938
|
+
], TabbedPlaceNavigationComponent.prototype, "places", void 0);
|
|
1939
|
+
__decorate([
|
|
1940
|
+
UseDelegate(),
|
|
1941
|
+
__metadata("design:type", ListModel)
|
|
1942
|
+
], TabbedPlaceNavigationComponent.prototype, "placesModel", void 0);
|
|
1943
|
+
return TabbedPlaceNavigationComponent;
|
|
1944
|
+
}(DisposableComponent));
|
|
1945
|
+
if (false) {
|
|
1946
|
+
/** @type {?} */
|
|
1947
|
+
TabbedPlaceNavigationComponent.prototype.places;
|
|
1948
|
+
/** @type {?} */
|
|
1949
|
+
TabbedPlaceNavigationComponent.prototype.placesModel;
|
|
1950
|
+
/** @type {?} */
|
|
1951
|
+
TabbedPlaceNavigationComponent.prototype.orderedPlaces;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1884
1954
|
/**
|
|
1885
1955
|
* @fileoverview added by tsickle
|
|
1886
1956
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1903,14 +1973,14 @@ var PlaceModule = /** @class */ (function () {
|
|
|
1903
1973
|
EmptyStateComponent,
|
|
1904
1974
|
BusyOverlayComponent,
|
|
1905
1975
|
PlaceOutletComponent,
|
|
1906
|
-
|
|
1976
|
+
TabbedPlaceNavigationComponent
|
|
1907
1977
|
],
|
|
1908
1978
|
entryComponents: [BusyOverlayComponent],
|
|
1909
1979
|
exports: [
|
|
1910
1980
|
BusyOverlayComponent,
|
|
1911
1981
|
PlaceOutletComponent,
|
|
1912
1982
|
EmptyStateComponent,
|
|
1913
|
-
|
|
1983
|
+
TabbedPlaceNavigationComponent
|
|
1914
1984
|
],
|
|
1915
1985
|
providers: [
|
|
1916
1986
|
PlaceService
|
|
@@ -2358,6 +2428,8 @@ function Place(options) {
|
|
|
2358
2428
|
Options.prototype.path;
|
|
2359
2429
|
/** @type {?} */
|
|
2360
2430
|
Options.prototype.title;
|
|
2431
|
+
/** @type {?} */
|
|
2432
|
+
Options.prototype.order;
|
|
2361
2433
|
/** @type {?|undefined} */
|
|
2362
2434
|
Options.prototype.authenticate;
|
|
2363
2435
|
}
|
|
@@ -2366,6 +2438,7 @@ function Place(options) {
|
|
|
2366
2438
|
assert.notNil(options);
|
|
2367
2439
|
this.path = options.path;
|
|
2368
2440
|
this.title = options.title;
|
|
2441
|
+
this.order = options.order;
|
|
2369
2442
|
this.authenticate = isNil(options.authenticate) || options.authenticate;
|
|
2370
2443
|
}
|
|
2371
2444
|
return Descriptor;
|
|
@@ -2378,6 +2451,8 @@ function Place(options) {
|
|
|
2378
2451
|
Descriptor.prototype.authenticate;
|
|
2379
2452
|
/** @type {?} */
|
|
2380
2453
|
Descriptor.prototype.title;
|
|
2454
|
+
/** @type {?} */
|
|
2455
|
+
Descriptor.prototype.order;
|
|
2381
2456
|
}
|
|
2382
2457
|
/**
|
|
2383
2458
|
* @param {?} klass
|
|
@@ -3620,5 +3695,5 @@ var ParameterType;
|
|
|
3620
3695
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3621
3696
|
*/
|
|
3622
3697
|
|
|
3623
|
-
export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceComponent, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ConfirmationDialogComponent, DialogInteractionService, Dimension, DisposableComponent, EmptyStateComponent, FocusBindingDirective, INTERACTION_CONTEXT, InteractionContext, InteractionModule,
|
|
3698
|
+
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, NumberInputComponent, ParameterType, PasswordInputComponent, Place, PlaceModule, PlaceOutletComponent, PlaceRouteGuard, PlaceService, Point, QueryParameter, QueryParameterList, ResizeAwareComponent, RouteId, RouteParameter, RouteParameterBindings, RouteParameterList, RouteParameterSanitiser, Sanitiser, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, 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 };
|
|
3624
3699
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|