@recursyve/nice-ui-kit.v2 13.2.0-beta.117 → 13.2.0-beta.118
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/esm2020/lib/components/navigation/directives/show-hint.directive.mjs +13 -8
- package/esm2020/lib/components/navigation/navigation.module.mjs +4 -2
- package/esm2020/lib/components/navigation/providers/hint.service.mjs +20 -0
- package/esm2020/lib/components/navigation/vertical/vertical.component.mjs +31 -15
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +48 -13
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +48 -13
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/navigation/directives/show-hint.directive.d.ts +3 -1
- package/lib/components/navigation/providers/hint.service.d.ts +9 -0
- package/lib/components/navigation/vertical/vertical.component.d.ts +6 -2
- package/package.json +1 -1
- package/src/lib/components/navigation/vertical/styles/appearances/default.theme.scss +1 -1
- package/src/lib/components/navigation/vertical/styles/appearances/dense.theme.scss +2 -2
|
@@ -2,6 +2,7 @@ import { Overlay } from "@angular/cdk/overlay";
|
|
|
2
2
|
import { Platform } from "@angular/cdk/platform";
|
|
3
3
|
import { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef } from "@angular/core";
|
|
4
4
|
import { NiceNavigationItem } from "../navigation.types";
|
|
5
|
+
import { NiceNavigationHintService } from "../providers/hint.service";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NiceShowHintDirective implements AfterViewInit, OnDestroy {
|
|
7
8
|
private _overlay;
|
|
@@ -9,6 +10,7 @@ export declare class NiceShowHintDirective implements AfterViewInit, OnDestroy {
|
|
|
9
10
|
private _viewContainerRef;
|
|
10
11
|
private _ngZone;
|
|
11
12
|
private _platform;
|
|
13
|
+
private _hintService;
|
|
12
14
|
shouldShow: boolean;
|
|
13
15
|
item: NiceNavigationItem;
|
|
14
16
|
private _pointerExitEventsInitialized;
|
|
@@ -17,7 +19,7 @@ export declare class NiceShowHintDirective implements AfterViewInit, OnDestroy {
|
|
|
17
19
|
private _overlayRef;
|
|
18
20
|
private readonly _passiveListeners;
|
|
19
21
|
private readonly unsubscribeAll$;
|
|
20
|
-
constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _ngZone: NgZone, _platform: Platform);
|
|
22
|
+
constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _ngZone: NgZone, _platform: Platform, _hintService: NiceNavigationHintService);
|
|
21
23
|
ngAfterViewInit(): void;
|
|
22
24
|
ngOnDestroy(): void;
|
|
23
25
|
show(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NiceNavigationHintService {
|
|
4
|
+
hasActiveHint$: BehaviorSubject<boolean>;
|
|
5
|
+
get hasActiveHint(): boolean;
|
|
6
|
+
setActiveHint(isActive: boolean): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceNavigationHintService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NiceNavigationHintService>;
|
|
9
|
+
}
|
|
@@ -9,6 +9,7 @@ import { NiceUtilsService } from "../../../providers/utils";
|
|
|
9
9
|
import { NiceNavigationComponent } from "../navigation.component";
|
|
10
10
|
import { NiceNavigationService } from "../navigation.service";
|
|
11
11
|
import { NiceNavigationItem, NiceVerticalNavigationAppearance, NiceVerticalNavigationMode, NiceVerticalNavigationPosition } from "../navigation.types";
|
|
12
|
+
import { NiceNavigationHintService } from "../providers/hint.service";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class NiceVerticalNavigationComponent extends NiceNavigationComponent implements OnChanges, OnInit, AfterViewInit {
|
|
14
15
|
private _animationBuilder;
|
|
@@ -16,6 +17,7 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
16
17
|
private _renderer2;
|
|
17
18
|
private _router;
|
|
18
19
|
private _scrollStrategyOptions;
|
|
20
|
+
private _hintService;
|
|
19
21
|
static ngAcceptInputType_inner: BooleanInput;
|
|
20
22
|
static ngAcceptInputType_opened: BooleanInput;
|
|
21
23
|
static ngAcceptInputType_transparentOverlay: BooleanInput;
|
|
@@ -35,11 +37,13 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
35
37
|
mode: NiceVerticalNavigationMode;
|
|
36
38
|
opened: boolean;
|
|
37
39
|
hovered: boolean;
|
|
40
|
+
hasHint: boolean;
|
|
38
41
|
position: NiceVerticalNavigationPosition;
|
|
39
42
|
transparentOverlay: boolean;
|
|
40
43
|
readonly appearanceChanged: EventEmitter<NiceVerticalNavigationAppearance>;
|
|
41
44
|
readonly modeChanged: EventEmitter<NiceVerticalNavigationMode>;
|
|
42
45
|
readonly openedChanged: EventEmitter<boolean>;
|
|
46
|
+
readonly hoveredChanged: EventEmitter<boolean>;
|
|
43
47
|
readonly positionChanged: EventEmitter<NiceVerticalNavigationPosition>;
|
|
44
48
|
private _navigationContentEl;
|
|
45
49
|
set navigation(navigation: NiceNavigationItem[]);
|
|
@@ -50,7 +54,7 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
50
54
|
/**
|
|
51
55
|
* Constructor
|
|
52
56
|
*/
|
|
53
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _niceNavigationService: NiceNavigationService, _niceUtilsService: NiceUtilsService, _animationBuilder: AnimationBuilder, _elementRef: ElementRef, _renderer2: Renderer2, _router: Router, _scrollStrategyOptions: ScrollStrategyOptions);
|
|
57
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _niceNavigationService: NiceNavigationService, _niceUtilsService: NiceUtilsService, _animationBuilder: AnimationBuilder, _elementRef: ElementRef, _renderer2: Renderer2, _router: Router, _scrollStrategyOptions: ScrollStrategyOptions, _hintService: NiceNavigationHintService);
|
|
54
58
|
/**
|
|
55
59
|
* Host binding for component classes
|
|
56
60
|
*/
|
|
@@ -153,5 +157,5 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
153
157
|
*/
|
|
154
158
|
private _toggleOpened;
|
|
155
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceVerticalNavigationComponent, never>;
|
|
156
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NiceVerticalNavigationComponent, "nice-vertical-navigation", ["niceVerticalNavigation"], { "name": "name"; "appearance": "appearance"; "autoCollapse": "autoCollapse"; "inner": "inner"; "mode": "mode"; "opened": "opened"; "hovered": "hovered"; "position": "position"; "transparentOverlay": "transparentOverlay"; "navigation": "navigation"; }, { "appearanceChanged": "appearanceChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "positionChanged": "positionChanged"; }, never, ["[niceVerticalNavigationHeader]", "[niceVerticalNavigationContentHeader]", "[niceVerticalNavigationContentFooter]", "[niceVerticalNavigationFooter]"]>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceVerticalNavigationComponent, "nice-vertical-navigation", ["niceVerticalNavigation"], { "name": "name"; "appearance": "appearance"; "autoCollapse": "autoCollapse"; "inner": "inner"; "mode": "mode"; "opened": "opened"; "hovered": "hovered"; "hasHint": "hasHint"; "position": "position"; "transparentOverlay": "transparentOverlay"; "navigation": "navigation"; }, { "appearanceChanged": "appearanceChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "hoveredChanged": "hoveredChanged"; "positionChanged": "positionChanged"; }, never, ["[niceVerticalNavigationHeader]", "[niceVerticalNavigationContentHeader]", "[niceVerticalNavigationContentFooter]", "[niceVerticalNavigationFooter]"]>;
|
|
157
161
|
}
|
package/package.json
CHANGED
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
nice-vertical-navigation {
|
|
632
|
-
&.nice-vertical-navigation-appearance-dense:not(.nice-vertical-navigation-hover) {
|
|
632
|
+
&.nice-vertical-navigation-appearance-dense:not(.nice-vertical-navigation-hover):not(.nice-vertical-navigation-has-hint) {
|
|
633
633
|
.nice-vertical-navigation-hint {
|
|
634
634
|
display: block !important;
|
|
635
635
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&:not(.nice-vertical-navigation-hover):not(.nice-vertical-navigation-mode-over) {
|
|
97
|
+
&:not(.nice-vertical-navigation-hover):not(.nice-vertical-navigation-mode-over):not(.nice-vertical-navigation-has-hint) {
|
|
98
98
|
|
|
99
99
|
/* Wrapper */
|
|
100
100
|
.nice-vertical-navigation-wrapper {
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/* Hover */
|
|
152
|
-
&.nice-vertical-navigation-hover {
|
|
152
|
+
&.nice-vertical-navigation-hover, &.nice-vertical-navigation-has-hint {
|
|
153
153
|
|
|
154
154
|
.nice-vertical-navigation-wrapper {
|
|
155
155
|
width: var(--nice-vertical-navigation-width);
|