orbiq-neural-ui-kit 1.2.71 → 1.2.73

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
@@ -14517,6 +14522,7 @@ class NeuralSidebarItemComponent {
14517
14522
  routerLinkActive="active"
14518
14523
  #rla="routerLinkActive"
14519
14524
  [attr.aria-label]="tooltipText() || undefined"
14525
+ [title]="isCollapsed() ? tooltipText() : null"
14520
14526
  [attr.aria-current]="resolvedActive() ? 'page' : undefined"
14521
14527
  class="flex h-full w-full items-center rounded-4 focus-visible:ring-0 focus-visible:focus-ring overflow-hidden transition-all duration-300 ease-in-out"
14522
14528
  (click)="handleClick($event)"
@@ -14527,6 +14533,7 @@ class NeuralSidebarItemComponent {
14527
14533
  <button
14528
14534
  type="button"
14529
14535
  [attr.aria-label]="tooltipText() || undefined"
14536
+ [title]="isCollapsed() ? tooltipText() : null"
14530
14537
  class="flex h-full w-full text-left items-center rounded-4 focus-visible:ring-0 focus-visible:focus-ring overflow-hidden transition-all duration-300 ease-in-out"
14531
14538
  (click)="handleClick($event)"
14532
14539
  >
@@ -14623,6 +14630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14623
14630
  routerLinkActive="active"
14624
14631
  #rla="routerLinkActive"
14625
14632
  [attr.aria-label]="tooltipText() || undefined"
14633
+ [title]="isCollapsed() ? tooltipText() : null"
14626
14634
  [attr.aria-current]="resolvedActive() ? 'page' : undefined"
14627
14635
  class="flex h-full w-full items-center rounded-4 focus-visible:ring-0 focus-visible:focus-ring overflow-hidden transition-all duration-300 ease-in-out"
14628
14636
  (click)="handleClick($event)"
@@ -14633,6 +14641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14633
14641
  <button
14634
14642
  type="button"
14635
14643
  [attr.aria-label]="tooltipText() || undefined"
14644
+ [title]="isCollapsed() ? tooltipText() : null"
14636
14645
  class="flex h-full w-full text-left items-center rounded-4 focus-visible:ring-0 focus-visible:focus-ring overflow-hidden transition-all duration-300 ease-in-out"
14637
14646
  (click)="handleClick($event)"
14638
14647
  >