orbiq-neural-ui-kit 1.2.71 → 1.2.72

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.
@@ -7,7 +7,7 @@ import { FormsModule } from '@angular/forms';
7
7
  import * as i1$1 from '@angular/cdk/overlay';
8
8
  import { ConnectionPositionPair, OverlayModule, OverlayConfig, Overlay } from '@angular/cdk/overlay';
9
9
  import * as i2 from '@angular/router';
10
- import { RouterModule, Router } from '@angular/router';
10
+ import { RouterModule, Router, NavigationEnd } from '@angular/router';
11
11
  import { TemplatePortal } from '@angular/cdk/portal';
12
12
  import { Subject, takeUntil, filter } from 'rxjs';
13
13
  import * as i1$3 from '@angular/cdk/dialog';
@@ -16,6 +16,8 @@ import { init } from 'echarts';
16
16
  import dayjs from 'dayjs';
17
17
  import DOMPurify from 'dompurify';
18
18
  import { marked } from 'marked';
19
+ import { toSignal } from '@angular/core/rxjs-interop';
20
+ import { filter as filter$1 } from 'rxjs/operators';
19
21
  import { Editor } from '@tiptap/core';
20
22
  import StarterKit from '@tiptap/starter-kit';
21
23
  import { Placeholder } from '@tiptap/extensions';
@@ -14457,6 +14459,7 @@ class NeuralSidebarItemComponent {
14457
14459
  ...(ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []));
14458
14460
  router = inject(Router, { optional: true });
14459
14461
  sidebar = inject(NeuralSidebarComponent, { optional: true });
14462
+ routerEvent = this.router ? toSignal(this.router.events.pipe(filter$1(event => event instanceof NavigationEnd))) : null;
14460
14463
  isCollapsed = computed(() => {
14461
14464
  return this.sidebar ? this.sidebar.shouldCollapse() : false;
14462
14465
  }, /* @ts-ignore */
@@ -14468,6 +14471,8 @@ class NeuralSidebarItemComponent {
14468
14471
  tooltipText = computed(() => this.label(), /* @ts-ignore */
14469
14472
  ...(ngDevMode ? [{ debugName: "tooltipText" }] : /* istanbul ignore next */ []));
14470
14473
  resolvedActive = computed(() => {
14474
+ if (this.routerEvent)
14475
+ this.routerEvent(); // Depend on router events to trigger re-evaluation
14471
14476
  if (this.active() !== undefined)
14472
14477
  return this.active();
14473
14478
  // Check if any child is active