@coolon/angular-ui-powerups 16.1.0-alpha.274 → 16.1.0-alpha.276
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/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +4 -9
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +42 -4
- package/fesm2022/coolon-angular-ui-powerups.mjs +41 -9
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -2
- package/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +16 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
-
import { MutableValueModel
|
|
2
|
+
import { MutableValueModel } from "@coolon/pectin";
|
|
3
3
|
import { PlaceRouter } from '../../place-router';
|
|
4
4
|
import { AbstractPlaceNavigationComponent } from '../abstract-place-navigation.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -49,7 +49,6 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
49
49
|
accessor expanded$: MutableValueModel<boolean>;
|
|
50
50
|
accessor expanded: boolean;
|
|
51
51
|
navEndTemplate: TemplateRef<any>;
|
|
52
|
-
readonly homeIcon$: ValueModel<string>;
|
|
53
52
|
constructor(router: PlaceRouter);
|
|
54
53
|
expandMenu(): void;
|
|
55
54
|
collapseMenu(): void;
|
|
@@ -2,6 +2,22 @@ import { PlaceRouter } from '../../place-router';
|
|
|
2
2
|
import { AbstractPlaceNavigationComponent } from '../abstract-place-navigation.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Animations are suppressed while a navigation is in flight, and for a frame after it settles.
|
|
7
|
+
*
|
|
8
|
+
* The bar is `*ngIf`d, so without this its `:enter` fires on the initial render of EVERY tabbed
|
|
9
|
+
* place — every bar visibly slid in on every page load, which is noise: nobody is watching a
|
|
10
|
+
* transition while a page is still arriving. What should animate is a bar appearing or collapsing
|
|
11
|
+
* because state CHANGED on a page the user is already looking at (a place being enabled, a role
|
|
12
|
+
* granted, the last sibling tab disappearing).
|
|
13
|
+
*
|
|
14
|
+
* Keyed on the router's own in-flight signal rather than a timer, so it scales with however long
|
|
15
|
+
* the navigation actually takes. The trailing frame matters: the bar is often rendered in the same
|
|
16
|
+
* turn the navigation completes, so re-enabling immediately would let that first render animate
|
|
17
|
+
* anyway. Same disable-then-reset-after-a-frame shape as TableBodyComponent.
|
|
18
|
+
*/
|
|
19
|
+
protected animationsDisabled: boolean;
|
|
20
|
+
private resetHandle;
|
|
5
21
|
constructor(router: PlaceRouter);
|
|
6
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabbedPlaceNavigationComponent, never>;
|
|
7
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabbedPlaceNavigationComponent, "aup-tabbed-place-navigation", never, {}, {}, never, ["[nav-start]", "[nav-end]"], false, never>;
|