@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
|
@@ -7823,13 +7823,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
7823
7823
|
}]
|
|
7824
7824
|
}] });
|
|
7825
7825
|
|
|
7826
|
+
class NiceNavigationHintService {
|
|
7827
|
+
constructor() {
|
|
7828
|
+
this.hasActiveHint$ = new BehaviorSubject(false);
|
|
7829
|
+
}
|
|
7830
|
+
get hasActiveHint() {
|
|
7831
|
+
return this.hasActiveHint$.value;
|
|
7832
|
+
}
|
|
7833
|
+
setActiveHint(isActive) {
|
|
7834
|
+
this.hasActiveHint$.next(isActive);
|
|
7835
|
+
}
|
|
7836
|
+
}
|
|
7837
|
+
NiceNavigationHintService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceNavigationHintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7838
|
+
NiceNavigationHintService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceNavigationHintService });
|
|
7839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceNavigationHintService, decorators: [{
|
|
7840
|
+
type: Injectable
|
|
7841
|
+
}] });
|
|
7842
|
+
|
|
7826
7843
|
class NiceShowHintDirective {
|
|
7827
|
-
constructor(_overlay, _elementRef, _viewContainerRef, _ngZone, _platform) {
|
|
7844
|
+
constructor(_overlay, _elementRef, _viewContainerRef, _ngZone, _platform, _hintService) {
|
|
7828
7845
|
this._overlay = _overlay;
|
|
7829
7846
|
this._elementRef = _elementRef;
|
|
7830
7847
|
this._viewContainerRef = _viewContainerRef;
|
|
7831
7848
|
this._ngZone = _ngZone;
|
|
7832
7849
|
this._platform = _platform;
|
|
7850
|
+
this._hintService = _hintService;
|
|
7833
7851
|
this.shouldShow = false;
|
|
7834
7852
|
this._pointerExitEventsInitialized = false;
|
|
7835
7853
|
this._passiveListeners = [];
|
|
@@ -7852,11 +7870,13 @@ class NiceShowHintDirective {
|
|
|
7852
7870
|
const overlayRef = this._createOverlay();
|
|
7853
7871
|
this._detach();
|
|
7854
7872
|
this._hintInstance = overlayRef.attach(this._portal).instance;
|
|
7873
|
+
this._hintService.setActiveHint(true);
|
|
7855
7874
|
}
|
|
7856
7875
|
hide() {
|
|
7857
7876
|
const instance = this._hintInstance;
|
|
7858
7877
|
if (instance) {
|
|
7859
7878
|
this._detach();
|
|
7879
|
+
this._hintService.setActiveHint(false);
|
|
7860
7880
|
}
|
|
7861
7881
|
}
|
|
7862
7882
|
_createOverlay() {
|
|
@@ -7885,7 +7905,7 @@ class NiceShowHintDirective {
|
|
|
7885
7905
|
.withFlexibleDimensions(false);
|
|
7886
7906
|
strategy.positionChanges.pipe(takeUntil(this.unsubscribeAll$)).subscribe(change => {
|
|
7887
7907
|
if (this._hintInstance) {
|
|
7888
|
-
if (change.scrollableViewProperties.isOverlayClipped
|
|
7908
|
+
if (change.scrollableViewProperties.isOverlayClipped) {
|
|
7889
7909
|
// After position changes occur and the overlay is clipped by
|
|
7890
7910
|
// a parent scrollable then close the tooltip.
|
|
7891
7911
|
this._ngZone.run(() => this.hide());
|
|
@@ -7899,10 +7919,10 @@ class NiceShowHintDirective {
|
|
|
7899
7919
|
.detachments()
|
|
7900
7920
|
.pipe(takeUntil(this.unsubscribeAll$))
|
|
7901
7921
|
.subscribe(() => this._detach());
|
|
7902
|
-
this._overlayRef
|
|
7922
|
+
/*this._overlayRef
|
|
7903
7923
|
.outsidePointerEvents()
|
|
7904
7924
|
.pipe(takeUntil(this.unsubscribeAll$))
|
|
7905
|
-
.subscribe(() => this._hintInstance?._handleBodyInteraction())
|
|
7925
|
+
.subscribe(() => this._hintInstance?._handleBodyInteraction());*/
|
|
7906
7926
|
return this._overlayRef;
|
|
7907
7927
|
}
|
|
7908
7928
|
_detach() {
|
|
@@ -7912,7 +7932,7 @@ class NiceShowHintDirective {
|
|
|
7912
7932
|
this._hintInstance = null;
|
|
7913
7933
|
}
|
|
7914
7934
|
_isHintVisible() {
|
|
7915
|
-
return !!this._hintInstance
|
|
7935
|
+
return !!this._hintInstance;
|
|
7916
7936
|
}
|
|
7917
7937
|
_setupPointerEnterEventsIfNeeded() {
|
|
7918
7938
|
// Optimization: Defer hooking up events if there's no message or the tooltip is disabled.
|
|
@@ -7961,12 +7981,12 @@ class NiceShowHintDirective {
|
|
|
7961
7981
|
});
|
|
7962
7982
|
}
|
|
7963
7983
|
}
|
|
7964
|
-
NiceShowHintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceShowHintDirective, deps: [{ token: i1$4.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i1$d.Platform }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7984
|
+
NiceShowHintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceShowHintDirective, deps: [{ token: i1$4.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i1$d.Platform }, { token: NiceNavigationHintService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7965
7985
|
NiceShowHintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.3", type: NiceShowHintDirective, selector: "[niceShowHint]", inputs: { shouldShow: "shouldShow", item: "item" }, ngImport: i0 });
|
|
7966
7986
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceShowHintDirective, decorators: [{
|
|
7967
7987
|
type: Directive,
|
|
7968
7988
|
args: [{ selector: "[niceShowHint]" }]
|
|
7969
|
-
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i1$d.Platform }]; }, propDecorators: { shouldShow: [{
|
|
7989
|
+
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i1$d.Platform }, { type: NiceNavigationHintService }]; }, propDecorators: { shouldShow: [{
|
|
7970
7990
|
type: Input
|
|
7971
7991
|
}], item: [{
|
|
7972
7992
|
type: Input
|
|
@@ -8565,13 +8585,14 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8565
8585
|
/**
|
|
8566
8586
|
* Constructor
|
|
8567
8587
|
*/
|
|
8568
|
-
constructor(_changeDetectorRef, _niceNavigationService, _niceUtilsService, _animationBuilder, _elementRef, _renderer2, _router, _scrollStrategyOptions) {
|
|
8588
|
+
constructor(_changeDetectorRef, _niceNavigationService, _niceUtilsService, _animationBuilder, _elementRef, _renderer2, _router, _scrollStrategyOptions, _hintService) {
|
|
8569
8589
|
super(_changeDetectorRef, _niceNavigationService, _niceUtilsService);
|
|
8570
8590
|
this._animationBuilder = _animationBuilder;
|
|
8571
8591
|
this._elementRef = _elementRef;
|
|
8572
8592
|
this._renderer2 = _renderer2;
|
|
8573
8593
|
this._router = _router;
|
|
8574
8594
|
this._scrollStrategyOptions = _scrollStrategyOptions;
|
|
8595
|
+
this._hintService = _hintService;
|
|
8575
8596
|
this._animationsEnabled = false;
|
|
8576
8597
|
this._scrollStrategy = this._scrollStrategyOptions.block();
|
|
8577
8598
|
this.name = this._niceUtilsService.randomId();
|
|
@@ -8581,11 +8602,13 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8581
8602
|
this.mode = "side";
|
|
8582
8603
|
this.opened = true;
|
|
8583
8604
|
this.hovered = false;
|
|
8605
|
+
this.hasHint = false;
|
|
8584
8606
|
this.position = "left";
|
|
8585
8607
|
this.transparentOverlay = false;
|
|
8586
8608
|
this.appearanceChanged = new EventEmitter();
|
|
8587
8609
|
this.modeChanged = new EventEmitter();
|
|
8588
8610
|
this.openedChanged = new EventEmitter();
|
|
8611
|
+
this.hoveredChanged = new EventEmitter();
|
|
8589
8612
|
this.positionChanged = new EventEmitter();
|
|
8590
8613
|
this.activeAsideItemId = null;
|
|
8591
8614
|
this.onCollapsableItemCollapsed = new ReplaySubject(1);
|
|
@@ -8620,7 +8643,8 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8620
8643
|
"nice-vertical-navigation-mode-side": this.mode === "side",
|
|
8621
8644
|
"nice-vertical-navigation-opened": this.opened,
|
|
8622
8645
|
"nice-vertical-navigation-position-left": this.position === "left",
|
|
8623
|
-
"nice-vertical-navigation-position-right": this.position === "right"
|
|
8646
|
+
"nice-vertical-navigation-position-right": this.position === "right",
|
|
8647
|
+
"nice-vertical-navigation-has-hint": this.hasHint
|
|
8624
8648
|
};
|
|
8625
8649
|
}
|
|
8626
8650
|
/**
|
|
@@ -8749,6 +8773,10 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8749
8773
|
this.closeAside();
|
|
8750
8774
|
}
|
|
8751
8775
|
});
|
|
8776
|
+
this._hintService.hasActiveHint$.pipe(takeUntil(this._unsubscribeAll)).subscribe(hasHint => {
|
|
8777
|
+
this.hasHint = hasHint;
|
|
8778
|
+
this.hoveredChanged.next(this.hovered || this.hasHint);
|
|
8779
|
+
});
|
|
8752
8780
|
}
|
|
8753
8781
|
/**
|
|
8754
8782
|
* After view init
|
|
@@ -9013,6 +9041,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
9013
9041
|
this._enableAnimations();
|
|
9014
9042
|
// Set the hovered
|
|
9015
9043
|
this.hovered = true;
|
|
9044
|
+
this.hoveredChanged.next(this.hovered);
|
|
9016
9045
|
}
|
|
9017
9046
|
/**
|
|
9018
9047
|
* On mouseleave
|
|
@@ -9022,6 +9051,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
9022
9051
|
this._enableAnimations();
|
|
9023
9052
|
// Set the hovered
|
|
9024
9053
|
this.hovered = false;
|
|
9054
|
+
this.hoveredChanged.next(this.hovered || this.hasHint);
|
|
9025
9055
|
}
|
|
9026
9056
|
/**
|
|
9027
9057
|
* Open/close the navigation
|
|
@@ -9048,12 +9078,12 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
9048
9078
|
this.openedChanged.next(open);
|
|
9049
9079
|
}
|
|
9050
9080
|
}
|
|
9051
|
-
NiceVerticalNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceVerticalNavigationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: NiceNavigationService }, { token: NiceUtilsService }, { token: i1$a.AnimationBuilder }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$9.Router }, { token: i1$4.ScrollStrategyOptions }], target: i0.ɵɵFactoryTarget.Component });
|
|
9052
|
-
NiceVerticalNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: NiceVerticalNavigationComponent, selector: "nice-vertical-navigation", inputs: { name: "name", appearance: "appearance", autoCollapse: "autoCollapse", inner: "inner", mode: "mode", opened: "opened", hovered: "hovered", position: "position", transparentOverlay: "transparentOverlay", navigation: "navigation" }, outputs: { appearanceChanged: "appearanceChanged", modeChanged: "modeChanged", openedChanged: "openedChanged", positionChanged: "positionChanged" }, host: { listeners: { "mouseenter": "_onMouseenter()", "mouseleave": "_onMouseleave()" }, properties: { "class": "this.classList", "style": "this.styleList" } }, viewQueries: [{ propertyName: "_navigationContentEl", first: true, predicate: ["navigationContent"], descendants: true }, { propertyName: "niceScrollbarDirectives", predicate: NiceScrollbarDirective, descendants: true }], exportAs: ["niceVerticalNavigation"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"nice-vertical-navigation-wrapper\">\n <!-- Header -->\n <div class=\"nice-vertical-navigation-header\">\n <ng-content select=\"[niceVerticalNavigationHeader]\"></ng-content>\n </div>\n\n <!-- Content -->\n <div\n class=\"nice-vertical-navigation-content\"\n niceScrollbar\n [niceScrollbarOptions]=\"{ wheelPropagation: inner, suppressScrollX: true }\"\n #navigationContent\n >\n <!-- Content header -->\n <div class=\"nice-vertical-navigation-content-header\">\n <ng-content select=\"[niceVerticalNavigationContentHeader]\"></ng-content>\n </div>\n\n <!-- Items -->\n <div *ngFor=\"let item of navigation; trackBy: trackByFn\" [@.disabled]=\"!animateNextNavChange\" @slideInRight>\n <!-- Skip the hidden items -->\n <ng-container *ngIf=\"!(item | niceShouldHide | async)\">\n <!-- Aside -->\n <nice-vertical-navigation-aside-item\n *ngIf=\"item.type === 'aside'\"\n [item]=\"item\"\n [name]=\"name\"\n [activeItemId]=\"activeAsideItemId\"\n [autoCollapse]=\"autoCollapse\"\n [skipChildren]=\"true\"\n (click)=\"toggleAside(item)\"\n ></nice-vertical-navigation-aside-item>\n\n <!-- Basic -->\n <nice-vertical-navigation-basic-item\n *ngIf=\"item.type === 'basic'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-basic-item>\n\n <!-- Collapsable -->\n <nice-vertical-navigation-collapsable-item\n *ngIf=\"item.type === 'collapsable'\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-collapsable-item>\n\n <!-- Divider -->\n <nice-vertical-navigation-divider-item\n *ngIf=\"item.type === 'divider'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-divider-item>\n\n <!-- Group -->\n <nice-vertical-navigation-group-item\n *ngIf=\"item.type === 'group'\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-group-item>\n\n <!-- Spacer -->\n <nice-vertical-navigation-spacer-item\n *ngIf=\"item.type === 'spacer'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-spacer-item>\n </ng-container>\n </div>\n\n <!-- Content footer -->\n <div class=\"nice-vertical-navigation-content-footer\">\n <ng-content select=\"[niceVerticalNavigationContentFooter]\"></ng-content>\n </div>\n\n </div>\n\n <!-- Footer -->\n <div class=\"nice-vertical-navigation-footer\">\n <ng-content select=\"[niceVerticalNavigationFooter]\"></ng-content>\n </div>\n</div>\n\n<!-- Aside -->\n<div\n class=\"nice-vertical-navigation-aside-wrapper\"\n *ngIf=\"activeAsideItemId\"\n niceScrollbar\n [niceScrollbarOptions]=\"{ wheelPropagation: false, suppressScrollX: true }\"\n [@fadeInLeft]=\"position === 'left'\"\n [@fadeInRight]=\"position === 'right'\"\n [@fadeOutLeft]=\"position === 'left'\"\n [@fadeOutRight]=\"position === 'right'\"\n>\n\n <!-- Items -->\n <ng-container *ngFor=\"let item of navigation; trackBy: trackByFn\">\n <!-- Skip the hidden items -->\n <ng-container *ngIf=\"(item.hidden && !item.hidden(item)) || !item.hidden\">\n <!-- Aside -->\n <nice-vertical-navigation-aside-item\n *ngIf=\"item.type === 'aside' && item.id === activeAsideItemId\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-aside-item>\n </ng-container>\n </ng-container>\n</div>\n", components: [{ type: NiceVerticalNavigationAsideItemComponent, selector: "nice-vertical-navigation-aside-item", inputs: ["activeItemId", "autoCollapse", "item", "name", "skipChildren"] }, { type: NiceVerticalNavigationBasicItemComponent, selector: "nice-vertical-navigation-basic-item", inputs: ["item", "name"] }, { type: NiceVerticalNavigationCollapsableItemComponent, selector: "nice-vertical-navigation-collapsable-item", inputs: ["autoCollapse", "item", "name"] }, { type: NiceVerticalNavigationDividerItemComponent, selector: "nice-vertical-navigation-divider-item", inputs: ["item", "name"] }, { type: NiceVerticalNavigationGroupItemComponent, selector: "nice-vertical-navigation-group-item", inputs: ["autoCollapse", "item", "name"] }, { type: NiceVerticalNavigationSpacerItemComponent, selector: "nice-vertical-navigation-spacer-item", inputs: ["item", "name"] }], directives: [{ type: NiceScrollbarDirective, selector: "[niceScrollbar]", inputs: ["niceScrollbar", "niceScrollbarOptions"], exportAs: ["niceScrollbar"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i6.AsyncPipe, "niceShouldHide": NiceShouldHidePipe }, animations: niceAnimations, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
9081
|
+
NiceVerticalNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceVerticalNavigationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: NiceNavigationService }, { token: NiceUtilsService }, { token: i1$a.AnimationBuilder }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$9.Router }, { token: i1$4.ScrollStrategyOptions }, { token: NiceNavigationHintService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9082
|
+
NiceVerticalNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: NiceVerticalNavigationComponent, selector: "nice-vertical-navigation", inputs: { name: "name", appearance: "appearance", autoCollapse: "autoCollapse", inner: "inner", mode: "mode", opened: "opened", hovered: "hovered", hasHint: "hasHint", position: "position", transparentOverlay: "transparentOverlay", navigation: "navigation" }, outputs: { appearanceChanged: "appearanceChanged", modeChanged: "modeChanged", openedChanged: "openedChanged", hoveredChanged: "hoveredChanged", positionChanged: "positionChanged" }, host: { listeners: { "mouseenter": "_onMouseenter()", "mouseleave": "_onMouseleave()" }, properties: { "class": "this.classList", "style": "this.styleList" } }, viewQueries: [{ propertyName: "_navigationContentEl", first: true, predicate: ["navigationContent"], descendants: true }, { propertyName: "niceScrollbarDirectives", predicate: NiceScrollbarDirective, descendants: true }], exportAs: ["niceVerticalNavigation"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"nice-vertical-navigation-wrapper\">\n <!-- Header -->\n <div class=\"nice-vertical-navigation-header\">\n <ng-content select=\"[niceVerticalNavigationHeader]\"></ng-content>\n </div>\n\n <!-- Content -->\n <div\n class=\"nice-vertical-navigation-content\"\n niceScrollbar\n [niceScrollbarOptions]=\"{ wheelPropagation: inner, suppressScrollX: true }\"\n #navigationContent\n >\n <!-- Content header -->\n <div class=\"nice-vertical-navigation-content-header\">\n <ng-content select=\"[niceVerticalNavigationContentHeader]\"></ng-content>\n </div>\n\n <!-- Items -->\n <div *ngFor=\"let item of navigation; trackBy: trackByFn\" [@.disabled]=\"!animateNextNavChange\" @slideInRight>\n <!-- Skip the hidden items -->\n <ng-container *ngIf=\"!(item | niceShouldHide | async)\">\n <!-- Aside -->\n <nice-vertical-navigation-aside-item\n *ngIf=\"item.type === 'aside'\"\n [item]=\"item\"\n [name]=\"name\"\n [activeItemId]=\"activeAsideItemId\"\n [autoCollapse]=\"autoCollapse\"\n [skipChildren]=\"true\"\n (click)=\"toggleAside(item)\"\n ></nice-vertical-navigation-aside-item>\n\n <!-- Basic -->\n <nice-vertical-navigation-basic-item\n *ngIf=\"item.type === 'basic'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-basic-item>\n\n <!-- Collapsable -->\n <nice-vertical-navigation-collapsable-item\n *ngIf=\"item.type === 'collapsable'\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-collapsable-item>\n\n <!-- Divider -->\n <nice-vertical-navigation-divider-item\n *ngIf=\"item.type === 'divider'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-divider-item>\n\n <!-- Group -->\n <nice-vertical-navigation-group-item\n *ngIf=\"item.type === 'group'\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-group-item>\n\n <!-- Spacer -->\n <nice-vertical-navigation-spacer-item\n *ngIf=\"item.type === 'spacer'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-spacer-item>\n </ng-container>\n </div>\n\n <!-- Content footer -->\n <div class=\"nice-vertical-navigation-content-footer\">\n <ng-content select=\"[niceVerticalNavigationContentFooter]\"></ng-content>\n </div>\n\n </div>\n\n <!-- Footer -->\n <div class=\"nice-vertical-navigation-footer\">\n <ng-content select=\"[niceVerticalNavigationFooter]\"></ng-content>\n </div>\n</div>\n\n<!-- Aside -->\n<div\n class=\"nice-vertical-navigation-aside-wrapper\"\n *ngIf=\"activeAsideItemId\"\n niceScrollbar\n [niceScrollbarOptions]=\"{ wheelPropagation: false, suppressScrollX: true }\"\n [@fadeInLeft]=\"position === 'left'\"\n [@fadeInRight]=\"position === 'right'\"\n [@fadeOutLeft]=\"position === 'left'\"\n [@fadeOutRight]=\"position === 'right'\"\n>\n\n <!-- Items -->\n <ng-container *ngFor=\"let item of navigation; trackBy: trackByFn\">\n <!-- Skip the hidden items -->\n <ng-container *ngIf=\"(item.hidden && !item.hidden(item)) || !item.hidden\">\n <!-- Aside -->\n <nice-vertical-navigation-aside-item\n *ngIf=\"item.type === 'aside' && item.id === activeAsideItemId\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-aside-item>\n </ng-container>\n </ng-container>\n</div>\n", components: [{ type: NiceVerticalNavigationAsideItemComponent, selector: "nice-vertical-navigation-aside-item", inputs: ["activeItemId", "autoCollapse", "item", "name", "skipChildren"] }, { type: NiceVerticalNavigationBasicItemComponent, selector: "nice-vertical-navigation-basic-item", inputs: ["item", "name"] }, { type: NiceVerticalNavigationCollapsableItemComponent, selector: "nice-vertical-navigation-collapsable-item", inputs: ["autoCollapse", "item", "name"] }, { type: NiceVerticalNavigationDividerItemComponent, selector: "nice-vertical-navigation-divider-item", inputs: ["item", "name"] }, { type: NiceVerticalNavigationGroupItemComponent, selector: "nice-vertical-navigation-group-item", inputs: ["autoCollapse", "item", "name"] }, { type: NiceVerticalNavigationSpacerItemComponent, selector: "nice-vertical-navigation-spacer-item", inputs: ["item", "name"] }], directives: [{ type: NiceScrollbarDirective, selector: "[niceScrollbar]", inputs: ["niceScrollbar", "niceScrollbarOptions"], exportAs: ["niceScrollbar"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i6.AsyncPipe, "niceShouldHide": NiceShouldHidePipe }, animations: niceAnimations, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
9053
9083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceVerticalNavigationComponent, decorators: [{
|
|
9054
9084
|
type: Component,
|
|
9055
9085
|
args: [{ selector: "nice-vertical-navigation", animations: niceAnimations, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: "niceVerticalNavigation", template: "<div class=\"nice-vertical-navigation-wrapper\">\n <!-- Header -->\n <div class=\"nice-vertical-navigation-header\">\n <ng-content select=\"[niceVerticalNavigationHeader]\"></ng-content>\n </div>\n\n <!-- Content -->\n <div\n class=\"nice-vertical-navigation-content\"\n niceScrollbar\n [niceScrollbarOptions]=\"{ wheelPropagation: inner, suppressScrollX: true }\"\n #navigationContent\n >\n <!-- Content header -->\n <div class=\"nice-vertical-navigation-content-header\">\n <ng-content select=\"[niceVerticalNavigationContentHeader]\"></ng-content>\n </div>\n\n <!-- Items -->\n <div *ngFor=\"let item of navigation; trackBy: trackByFn\" [@.disabled]=\"!animateNextNavChange\" @slideInRight>\n <!-- Skip the hidden items -->\n <ng-container *ngIf=\"!(item | niceShouldHide | async)\">\n <!-- Aside -->\n <nice-vertical-navigation-aside-item\n *ngIf=\"item.type === 'aside'\"\n [item]=\"item\"\n [name]=\"name\"\n [activeItemId]=\"activeAsideItemId\"\n [autoCollapse]=\"autoCollapse\"\n [skipChildren]=\"true\"\n (click)=\"toggleAside(item)\"\n ></nice-vertical-navigation-aside-item>\n\n <!-- Basic -->\n <nice-vertical-navigation-basic-item\n *ngIf=\"item.type === 'basic'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-basic-item>\n\n <!-- Collapsable -->\n <nice-vertical-navigation-collapsable-item\n *ngIf=\"item.type === 'collapsable'\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-collapsable-item>\n\n <!-- Divider -->\n <nice-vertical-navigation-divider-item\n *ngIf=\"item.type === 'divider'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-divider-item>\n\n <!-- Group -->\n <nice-vertical-navigation-group-item\n *ngIf=\"item.type === 'group'\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-group-item>\n\n <!-- Spacer -->\n <nice-vertical-navigation-spacer-item\n *ngIf=\"item.type === 'spacer'\"\n [item]=\"item\"\n [name]=\"name\"\n ></nice-vertical-navigation-spacer-item>\n </ng-container>\n </div>\n\n <!-- Content footer -->\n <div class=\"nice-vertical-navigation-content-footer\">\n <ng-content select=\"[niceVerticalNavigationContentFooter]\"></ng-content>\n </div>\n\n </div>\n\n <!-- Footer -->\n <div class=\"nice-vertical-navigation-footer\">\n <ng-content select=\"[niceVerticalNavigationFooter]\"></ng-content>\n </div>\n</div>\n\n<!-- Aside -->\n<div\n class=\"nice-vertical-navigation-aside-wrapper\"\n *ngIf=\"activeAsideItemId\"\n niceScrollbar\n [niceScrollbarOptions]=\"{ wheelPropagation: false, suppressScrollX: true }\"\n [@fadeInLeft]=\"position === 'left'\"\n [@fadeInRight]=\"position === 'right'\"\n [@fadeOutLeft]=\"position === 'left'\"\n [@fadeOutRight]=\"position === 'right'\"\n>\n\n <!-- Items -->\n <ng-container *ngFor=\"let item of navigation; trackBy: trackByFn\">\n <!-- Skip the hidden items -->\n <ng-container *ngIf=\"(item.hidden && !item.hidden(item)) || !item.hidden\">\n <!-- Aside -->\n <nice-vertical-navigation-aside-item\n *ngIf=\"item.type === 'aside' && item.id === activeAsideItemId\"\n [item]=\"item\"\n [name]=\"name\"\n [autoCollapse]=\"autoCollapse\"\n ></nice-vertical-navigation-aside-item>\n </ng-container>\n </ng-container>\n</div>\n" }]
|
|
9056
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: NiceNavigationService }, { type: NiceUtilsService }, { type: i1$a.AnimationBuilder }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$9.Router }, { type: i1$4.ScrollStrategyOptions }]; }, propDecorators: { name: [{
|
|
9086
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: NiceNavigationService }, { type: NiceUtilsService }, { type: i1$a.AnimationBuilder }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$9.Router }, { type: i1$4.ScrollStrategyOptions }, { type: NiceNavigationHintService }]; }, propDecorators: { name: [{
|
|
9057
9087
|
type: Input
|
|
9058
9088
|
}], appearance: [{
|
|
9059
9089
|
type: Input
|
|
@@ -9067,6 +9097,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
9067
9097
|
type: Input
|
|
9068
9098
|
}], hovered: [{
|
|
9069
9099
|
type: Input
|
|
9100
|
+
}], hasHint: [{
|
|
9101
|
+
type: Input
|
|
9070
9102
|
}], position: [{
|
|
9071
9103
|
type: Input
|
|
9072
9104
|
}], transparentOverlay: [{
|
|
@@ -9077,6 +9109,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
9077
9109
|
type: Output
|
|
9078
9110
|
}], openedChanged: [{
|
|
9079
9111
|
type: Output
|
|
9112
|
+
}], hoveredChanged: [{
|
|
9113
|
+
type: Output
|
|
9080
9114
|
}], positionChanged: [{
|
|
9081
9115
|
type: Output
|
|
9082
9116
|
}], _navigationContentEl: [{
|
|
@@ -9129,7 +9163,7 @@ NiceNavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
9129
9163
|
NiceScrollbarModule,
|
|
9130
9164
|
TranslateModule], exports: [NiceHorizontalNavigationComponent,
|
|
9131
9165
|
NiceVerticalNavigationComponent] });
|
|
9132
|
-
NiceNavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceNavigationModule, imports: [[
|
|
9166
|
+
NiceNavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceNavigationModule, providers: [NiceNavigationHintService], imports: [[
|
|
9133
9167
|
CommonModule,
|
|
9134
9168
|
RouterModule,
|
|
9135
9169
|
MatButtonModule,
|
|
@@ -9172,6 +9206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
9172
9206
|
NiceShouldShowHintPipe,
|
|
9173
9207
|
NiceShowHintDirective
|
|
9174
9208
|
],
|
|
9209
|
+
providers: [NiceNavigationHintService],
|
|
9175
9210
|
exports: [
|
|
9176
9211
|
NiceHorizontalNavigationComponent,
|
|
9177
9212
|
NiceVerticalNavigationComponent
|