@recursyve/nice-ui-kit.v2 13.2.0-beta.110 → 13.2.0-beta.111

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.
@@ -0,0 +1,34 @@
1
+ import { Overlay } from "@angular/cdk/overlay";
2
+ import { Platform } from "@angular/cdk/platform";
3
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef } from "@angular/core";
4
+ import { NiceNavigationItem } from "../navigation.types";
5
+ import * as i0 from "@angular/core";
6
+ export declare class NiceShowHintDirective implements AfterViewInit, OnDestroy {
7
+ private _overlay;
8
+ private _elementRef;
9
+ private _viewContainerRef;
10
+ private _ngZone;
11
+ private _platform;
12
+ shouldShow: boolean;
13
+ item: NiceNavigationItem;
14
+ private _pointerExitEventsInitialized;
15
+ private _portal;
16
+ private _hintInstance;
17
+ private _overlayRef;
18
+ private readonly _passiveListeners;
19
+ private readonly unsubscribeAll$;
20
+ constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _ngZone: NgZone, _platform: Platform);
21
+ ngAfterViewInit(): void;
22
+ ngOnDestroy(): void;
23
+ show(): void;
24
+ hide(): void;
25
+ private _createOverlay;
26
+ private _detach;
27
+ private _isHintVisible;
28
+ private _setupPointerEnterEventsIfNeeded;
29
+ private _setupPointerExitEventsIfNeeded;
30
+ private _platformSupportsMouseEvents;
31
+ private _addListeners;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceShowHintDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceShowHintDirective, "[niceShowHint]", never, { "shouldShow": "shouldShow"; "item": "item"; }, {}, never>;
34
+ }
@@ -12,17 +12,19 @@ import * as i10 from "./vertical/components/divider/divider.component";
12
12
  import * as i11 from "./vertical/components/group/group.component";
13
13
  import * as i12 from "./vertical/components/spacer/spacer.component";
14
14
  import * as i13 from "./vertical/vertical.component";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "@angular/router";
17
- import * as i16 from "@angular/material/button";
18
- import * as i17 from "@angular/material/divider";
19
- import * as i18 from "@angular/material/icon";
20
- import * as i19 from "@angular/material/menu";
21
- import * as i20 from "@angular/material/tooltip";
22
- import * as i21 from "../../directives/scrollbar/scrollbar.module";
23
- import * as i22 from "@ngx-translate/core";
15
+ import * as i14 from "./pipes/should-show-hint.pipe";
16
+ import * as i15 from "./directives/show-hint.directive";
17
+ import * as i16 from "@angular/common";
18
+ import * as i17 from "@angular/router";
19
+ import * as i18 from "@angular/material/button";
20
+ import * as i19 from "@angular/material/divider";
21
+ import * as i20 from "@angular/material/icon";
22
+ import * as i21 from "@angular/material/menu";
23
+ import * as i22 from "@angular/material/tooltip";
24
+ import * as i23 from "../../directives/scrollbar/scrollbar.module";
25
+ import * as i24 from "@ngx-translate/core";
24
26
  export declare class NiceNavigationModule {
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceNavigationModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<NiceNavigationModule, [typeof i1.NiceNavigationComponent, typeof i2.NiceHorizontalNavigationBasicItemComponent, typeof i3.NiceHorizontalNavigationBranchItemComponent, typeof i4.NiceHorizontalNavigationDividerItemComponent, typeof i5.NiceHorizontalNavigationSpacerItemComponent, typeof i6.NiceHorizontalNavigationComponent, typeof i7.NiceVerticalNavigationAsideItemComponent, typeof i8.NiceVerticalNavigationBasicItemComponent, typeof i9.NiceVerticalNavigationCollapsableItemComponent, typeof i10.NiceVerticalNavigationDividerItemComponent, typeof i11.NiceVerticalNavigationGroupItemComponent, typeof i12.NiceVerticalNavigationSpacerItemComponent, typeof i13.NiceVerticalNavigationComponent], [typeof i14.CommonModule, typeof i15.RouterModule, typeof i16.MatButtonModule, typeof i17.MatDividerModule, typeof i18.MatIconModule, typeof i19.MatMenuModule, typeof i20.MatTooltipModule, typeof i21.NiceScrollbarModule, typeof i22.TranslateModule], [typeof i6.NiceHorizontalNavigationComponent, typeof i13.NiceVerticalNavigationComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceNavigationModule, [typeof i1.NiceNavigationComponent, typeof i2.NiceHorizontalNavigationBasicItemComponent, typeof i3.NiceHorizontalNavigationBranchItemComponent, typeof i4.NiceHorizontalNavigationDividerItemComponent, typeof i5.NiceHorizontalNavigationSpacerItemComponent, typeof i6.NiceHorizontalNavigationComponent, typeof i7.NiceVerticalNavigationAsideItemComponent, typeof i8.NiceVerticalNavigationBasicItemComponent, typeof i9.NiceVerticalNavigationCollapsableItemComponent, typeof i10.NiceVerticalNavigationDividerItemComponent, typeof i11.NiceVerticalNavigationGroupItemComponent, typeof i12.NiceVerticalNavigationSpacerItemComponent, typeof i13.NiceVerticalNavigationComponent, typeof i14.NiceShouldShowHintPipe, typeof i15.NiceShowHintDirective], [typeof i16.CommonModule, typeof i17.RouterModule, typeof i18.MatButtonModule, typeof i19.MatDividerModule, typeof i20.MatIconModule, typeof i21.MatMenuModule, typeof i22.MatTooltipModule, typeof i23.NiceScrollbarModule, typeof i24.TranslateModule], [typeof i6.NiceHorizontalNavigationComponent, typeof i13.NiceVerticalNavigationComponent]>;
27
29
  static ɵinj: i0.ɵɵInjectorDeclaration<NiceNavigationModule>;
28
30
  }
@@ -1,3 +1,5 @@
1
+ import { Type } from "@angular/core";
2
+ import { NavigationHintResolver } from "./providers/hint.resolver";
1
3
  export declare type IconType = "fontawesome" | "material" | "svg";
2
4
  export interface NiceNavigationItem {
3
5
  id?: string;
@@ -28,6 +30,10 @@ export interface NiceNavigationItem {
28
30
  };
29
31
  children?: NiceNavigationItem[];
30
32
  meta?: any;
33
+ hint?: {
34
+ resolver: Type<NavigationHintResolver>;
35
+ component: Type<any>;
36
+ };
31
37
  }
32
38
  export declare type NiceVerticalNavigationAppearance = "default" | "compact" | "dense" | "thin";
33
39
  export declare type NiceVerticalNavigationMode = "over" | "side";
@@ -0,0 +1,12 @@
1
+ import { Injector, PipeTransform } from "@angular/core";
2
+ import { Observable } from "rxjs";
3
+ import { NiceNavigationItem } from "../navigation.types";
4
+ import * as i0 from "@angular/core";
5
+ export declare class NiceShouldShowHintPipe implements PipeTransform {
6
+ private injector;
7
+ constructor(injector: Injector);
8
+ transform(value: NiceNavigationItem | NiceNavigationItem[]): Observable<boolean>;
9
+ private transformHint;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceShouldShowHintPipe, never>;
11
+ static ɵpipe: i0.ɵɵPipeDeclaration<NiceShouldShowHintPipe, "niceShouldShowHint">;
12
+ }
@@ -0,0 +1,4 @@
1
+ import { Observable } from "rxjs";
2
+ export declare abstract class NavigationHintResolver {
3
+ abstract shouldShowHint(): Observable<boolean>;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursyve/nice-ui-kit.v2",
3
- "version": "13.2.0-beta.110",
3
+ "version": "13.2.0-beta.111",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",
@@ -240,6 +240,14 @@
240
240
  opacity: 0.4;
241
241
  }
242
242
 
243
+ .nice-vertical-navigation-item-icon-wrapper {
244
+ position: relative;
245
+
246
+ .nice-vertical-navigation-hint {
247
+ display: none;
248
+ }
249
+ }
250
+
243
251
  .nice-vertical-navigation-item-icon {
244
252
  margin-right: 16px;
245
253
 
@@ -254,6 +262,20 @@
254
262
  }
255
263
 
256
264
  .nice-vertical-navigation-item-title-wrapper {
265
+ .nice-vertical-navigation-item-title {
266
+ position: relative;
267
+
268
+ span {
269
+ padding: 16px;
270
+ }
271
+ }
272
+
273
+ .nice-vertical-navigation-hint {
274
+ width: 8px;
275
+ height: 8px;
276
+ top: -4px;
277
+ right: 4px
278
+ }
257
279
 
258
280
  .nice-vertical-navigation-item-subtitle {
259
281
  font-size: 11px;
@@ -481,6 +503,9 @@
481
503
  nice-vertical-navigation-basic-item,
482
504
  nice-vertical-navigation-collapsable-item,
483
505
  nice-vertical-navigation-group-item {
506
+ .nice-vertical-navigation-hint {
507
+ @apply absolute h-2 w-2 rounded-full bg-accent;
508
+ }
484
509
 
485
510
  .nice-vertical-navigation-item-wrapper {
486
511
 
@@ -602,4 +627,17 @@
602
627
  }
603
628
  }
604
629
  }
630
+
631
+ nice-vertical-navigation {
632
+ &.nice-vertical-navigation-appearance-dense:not(.nice-vertical-navigation-hover) {
633
+ .nice-vertical-navigation-hint {
634
+ display: block !important;
635
+
636
+ width: 8px;
637
+ height: 8px;
638
+ top: -4px;
639
+ right: 8px
640
+ }
641
+ }
642
+ }
605
643
  }