@ngrdt/menu 0.0.36 → 0.0.37
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/fesm2022/ngrdt-menu.mjs +4 -6
- package/fesm2022/ngrdt-menu.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/package.json +5 -5
package/fesm2022/ngrdt-menu.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, inject, ElementRef, DestroyRef, Renderer2, ChangeDetectorRef, input, linkedSignal, computed, signal, untracked, effect, afterRenderEffect, afterNextRender, HostListener, ViewChild, ViewChildren, ChangeDetectionStrategy, Component, booleanAttribute, numberAttribute, EnvironmentInjector, Directive, ViewEncapsulation, QueryList, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
5
|
-
import { takeUntilDestroyed, toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
5
|
+
import { takeUntilDestroyed, toSignal, toObservable, outputToObservable } from '@angular/core/rxjs-interop';
|
|
6
6
|
import * as i2 from '@angular/router';
|
|
7
7
|
import { Router, RouterModule } from '@angular/router';
|
|
8
8
|
import * as i3 from '@ngrdt/router';
|
|
@@ -11,7 +11,7 @@ import * as i4 from '@ngrdt/shortcuts';
|
|
|
11
11
|
import { RdtShortcutService, RdtShortcut, RdtKeyListenerDirective } from '@ngrdt/shortcuts';
|
|
12
12
|
import { RdtStringUtils, KB_CODE, RdtObjectUtils } from '@ngrdt/utils';
|
|
13
13
|
import { delay, of, map, first, fromEvent, throttleTime, animationFrameScheduler, switchMap, withLatestFrom } from 'rxjs';
|
|
14
|
-
import { RDT_BUTTON_BASE_PROVIDER
|
|
14
|
+
import { RDT_BUTTON_BASE_PROVIDER } from '@ngrdt/button';
|
|
15
15
|
|
|
16
16
|
var RdtMenuShortcutMode;
|
|
17
17
|
(function (RdtMenuShortcutMode) {
|
|
@@ -1267,7 +1267,7 @@ class RdtMenuComponent extends RdtMenuBaseComponent {
|
|
|
1267
1267
|
});
|
|
1268
1268
|
subscribeClicks() {
|
|
1269
1269
|
toObservable(this.trigger)
|
|
1270
|
-
.pipe(switchMap((trigger) => trigger.click
|
|
1270
|
+
.pipe(switchMap((trigger) => outputToObservable(trigger.click)), takeUntilDestroyed(this.destroyRef))
|
|
1271
1271
|
.subscribe(() => this.toggle());
|
|
1272
1272
|
}
|
|
1273
1273
|
toggle() {
|
|
@@ -1312,8 +1312,7 @@ class RdtMenuModule {
|
|
|
1312
1312
|
RdtMenuBarComponent], imports: [CommonModule,
|
|
1313
1313
|
RouterModule,
|
|
1314
1314
|
RdtAnyRouteActiveDirective,
|
|
1315
|
-
RdtKeyListenerDirective,
|
|
1316
|
-
RdtButtonOutletDirective], exports: [RdtMenuComponent, RdtMenuBarComponent] });
|
|
1315
|
+
RdtKeyListenerDirective], exports: [RdtMenuComponent, RdtMenuBarComponent] });
|
|
1317
1316
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: RdtMenuModule, imports: [CommonModule,
|
|
1318
1317
|
RouterModule] });
|
|
1319
1318
|
}
|
|
@@ -1325,7 +1324,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1325
1324
|
RouterModule,
|
|
1326
1325
|
RdtAnyRouteActiveDirective,
|
|
1327
1326
|
RdtKeyListenerDirective,
|
|
1328
|
-
RdtButtonOutletDirective,
|
|
1329
1327
|
],
|
|
1330
1328
|
declarations: [
|
|
1331
1329
|
RdtMenuOverlayComponent,
|