orbiq-neural-ui-kit 1.2.70 → 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';
|
|
@@ -13732,8 +13734,8 @@ class NeuralNotificationCenterComponent {
|
|
|
13732
13734
|
'absolute left-full border-r': position() === 'sidebar',
|
|
13733
13735
|
'fixed right-0 border-l': position() === 'right',
|
|
13734
13736
|
'translate-x-0': open(),
|
|
13735
|
-
'-translate-x-full
|
|
13736
|
-
'translate-x-full
|
|
13737
|
+
'-translate-x-full pointer-events-none': !open() && position() === 'sidebar',
|
|
13738
|
+
'translate-x-full pointer-events-none': !open() && position() === 'right'
|
|
13737
13739
|
}"
|
|
13738
13740
|
>
|
|
13739
13741
|
<div class="flex items-center justify-between border-b border-outline-gray-2 px-4 pt-3 pb-0">
|
|
@@ -13774,8 +13776,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
13774
13776
|
'absolute left-full border-r': position() === 'sidebar',
|
|
13775
13777
|
'fixed right-0 border-l': position() === 'right',
|
|
13776
13778
|
'translate-x-0': open(),
|
|
13777
|
-
'-translate-x-full
|
|
13778
|
-
'translate-x-full
|
|
13779
|
+
'-translate-x-full pointer-events-none': !open() && position() === 'sidebar',
|
|
13780
|
+
'translate-x-full pointer-events-none': !open() && position() === 'right'
|
|
13779
13781
|
}"
|
|
13780
13782
|
>
|
|
13781
13783
|
<div class="flex items-center justify-between border-b border-outline-gray-2 px-4 pt-3 pb-0">
|
|
@@ -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
|