@ngrdt/menu 0.0.47 → 0.0.49
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 +20 -16
- package/fesm2022/ngrdt-menu.mjs.map +1 -1
- package/index.d.ts +7 -2
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -7,9 +7,10 @@ import * as _angular_core from '@angular/core';
|
|
|
7
7
|
import { InjectionToken, ElementRef, DestroyRef, QueryList, ChangeDetectorRef, Renderer2, EnvironmentInjector, Signal } from '@angular/core';
|
|
8
8
|
import * as i5 from '@angular/router';
|
|
9
9
|
import { Router } from '@angular/router';
|
|
10
|
+
import * as i8 from '@ngrdt/icon';
|
|
11
|
+
import { RdtIconRegistryService } from '@ngrdt/icon';
|
|
10
12
|
import { RdtButtonBaseInt } from '@ngrdt/button';
|
|
11
13
|
import * as i4 from '@angular/common';
|
|
12
|
-
import * as i8 from '@ngrdt/icon';
|
|
13
14
|
|
|
14
15
|
interface RdtMenuItemWithRoute extends RdtMenuItemBase {
|
|
15
16
|
items?: never;
|
|
@@ -120,6 +121,8 @@ declare class RdtMenuOverlayComponent {
|
|
|
120
121
|
private readonly router;
|
|
121
122
|
private readonly document;
|
|
122
123
|
private readonly shortcutService;
|
|
124
|
+
private readonly iconRegistry;
|
|
125
|
+
readonly arrowRightIcon: any;
|
|
123
126
|
readonly children: QueryList<RdtMenuOverlayComponent>;
|
|
124
127
|
private focusableElements;
|
|
125
128
|
private menuItemContainer;
|
|
@@ -216,6 +219,7 @@ declare abstract class RdtMenuBaseComponent {
|
|
|
216
219
|
protected readonly router: Router;
|
|
217
220
|
protected readonly shortcutService: RdtShortcutService;
|
|
218
221
|
protected readonly injector: EnvironmentInjector;
|
|
222
|
+
protected readonly iconRegistry: RdtIconRegistryService<any>;
|
|
219
223
|
protected children: QueryList<RdtMenuOverlayComponent>;
|
|
220
224
|
protected focusableElements: QueryList<ElementRef<HTMLElement>>;
|
|
221
225
|
abstract get buttonContainer(): HTMLElement | undefined;
|
|
@@ -273,7 +277,7 @@ declare abstract class RdtMenuBaseComponent {
|
|
|
273
277
|
protected readMargin(): void;
|
|
274
278
|
protected measureClientSize(): void;
|
|
275
279
|
protected measureButtonContainer(): void;
|
|
276
|
-
protected
|
|
280
|
+
protected listenWindowResizeScroll(): void;
|
|
277
281
|
protected listenShortcuts(): void;
|
|
278
282
|
protected getShortcutMap(itemsWithShortcuts: ParsedRdtMenuItemWithShortcut[]): Record<string, ParsedRdtMenuItem[]>;
|
|
279
283
|
protected onShortcut(shortcut: RdtShortcut, map: Record<string, ParsedRdtMenuItem[]>): void;
|
|
@@ -296,6 +300,7 @@ declare abstract class RdtMenuBaseComponent {
|
|
|
296
300
|
|
|
297
301
|
declare class RdtMenuBarComponent extends RdtMenuBaseComponent {
|
|
298
302
|
buttonContainerRef?: ElementRef<HTMLElement>;
|
|
303
|
+
readonly arrowDownIcon: any;
|
|
299
304
|
get buttonContainer(): HTMLElement | undefined;
|
|
300
305
|
readonly items: _angular_core.InputSignal<RdtMenuItem[]>;
|
|
301
306
|
readonly allParsedItems: _angular_core.Signal<ParsedRdtMenuItem[]>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrdt/menu",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.2.0",
|
|
6
6
|
"@angular/core": ">=18.2.0",
|
|
7
7
|
"@angular/router": ">=18.2.0",
|
|
8
8
|
"rxjs": ">=7.0.0",
|
|
9
|
-
"@ngrdt/router": "^0.0.
|
|
10
|
-
"@ngrdt/utils": "^0.0.
|
|
11
|
-
"@ngrdt/button": "^0.0.
|
|
12
|
-
"@ngrdt/shortcuts": "^0.0.
|
|
9
|
+
"@ngrdt/router": "^0.0.49",
|
|
10
|
+
"@ngrdt/utils": "^0.0.49",
|
|
11
|
+
"@ngrdt/button": "^0.0.49",
|
|
12
|
+
"@ngrdt/shortcuts": "^0.0.49"
|
|
13
13
|
},
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"module": "fesm2022/ngrdt-menu.mjs",
|