@ngrdt/menu 0.0.45 → 0.0.47

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/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import * as i5 from '@angular/router';
9
9
  import { Router } from '@angular/router';
10
10
  import { RdtButtonBaseInt } from '@ngrdt/button';
11
11
  import * as i4 from '@angular/common';
12
+ import * as i8 from '@ngrdt/icon';
12
13
 
13
14
  interface RdtMenuItemWithRoute extends RdtMenuItemBase {
14
15
  items?: never;
@@ -48,6 +49,7 @@ interface RdtMenuItemBase<TIcon = string> {
48
49
  shortcut?: RdtShortcut;
49
50
  command?: () => void;
50
51
  visible?: () => boolean;
52
+ disabled?: () => boolean;
51
53
  queryParams?: {
52
54
  [key: string]: any;
53
55
  };
@@ -55,6 +57,7 @@ interface RdtMenuItemBase<TIcon = string> {
55
57
  dataTestId?: string;
56
58
  }
57
59
  interface ParsedRdtMenuItemBase<TIcon = string> extends RdtMenuItemBase<TIcon> {
60
+ disabled: () => boolean;
58
61
  dataTestId: string;
59
62
  }
60
63
  interface ParsedRdtMenuItemWithChildren<TIcon = string> extends ParsedRdtMenuItemBase<TIcon> {
@@ -326,7 +329,7 @@ declare class RdtMenuComponent extends RdtMenuBaseComponent {
326
329
 
327
330
  declare class RdtMenuModule {
328
331
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtMenuModule, never>;
329
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdtMenuModule, [typeof RdtMenuOverlayComponent, typeof RdtMenuComponent, typeof RdtMenuBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.RdtAnyRouteActiveDirective, typeof i7.RdtKeyListenerDirective], [typeof RdtMenuComponent, typeof RdtMenuBarComponent]>;
332
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdtMenuModule, [typeof RdtMenuOverlayComponent, typeof RdtMenuComponent, typeof RdtMenuBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.RdtAnyRouteActiveDirective, typeof i7.RdtKeyListenerDirective, typeof i8.RdtIconOutletDirective], [typeof RdtMenuComponent, typeof RdtMenuBarComponent]>;
330
333
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdtMenuModule>;
331
334
  }
332
335
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@ngrdt/menu",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
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.45",
10
- "@ngrdt/utils": "^0.0.45",
11
- "@ngrdt/button": "^0.0.45",
12
- "@ngrdt/shortcuts": "^0.0.45"
9
+ "@ngrdt/router": "^0.0.47",
10
+ "@ngrdt/utils": "^0.0.47",
11
+ "@ngrdt/button": "^0.0.47",
12
+ "@ngrdt/shortcuts": "^0.0.47"
13
13
  },
14
14
  "sideEffects": false,
15
15
  "module": "fesm2022/ngrdt-menu.mjs",