diff --git a/packages/angular/src/components.ts b/packages/angular/src/components.ts index 0b196acfde9..44a87626475 100644 --- a/packages/angular/src/components.ts +++ b/packages/angular/src/components.ts @@ -837,6 +837,10 @@ export declare interface IxMenu extends Components.IxMenu { * Map Sidebar expanded */ mapExpandChange: EventEmitter>; + /** + * Event to emit to parent that the item was selected + */ + overlayClose: EventEmitter>; } @@ -856,7 +860,7 @@ export class IxMenu { constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) { c.detach(); this.el = r.nativeElement; - proxyOutputs(this, this.el, ['expandChange', 'mapExpandChange']); + proxyOutputs(this, this.el, ['expandChange', 'mapExpandChange', 'overlayClose']); } } @@ -865,7 +869,7 @@ export declare interface IxMenuAbout extends Components.IxMenuAbout { /** * About and Legal closed */ - close: EventEmitter>; + close: EventEmitter>; } @@ -998,7 +1002,13 @@ export class IxMenuAvatarItem { } -export declare interface IxMenuItem extends Components.IxMenuItem {} +export declare interface IxMenuItem extends Components.IxMenuItem { + /** + * Event to emit to parent that the item was selected + */ + itemClicked: EventEmitter>; + +} @ProxyCmp({ defineCustomElementFn: undefined, @@ -1015,6 +1025,7 @@ export class IxMenuItem { constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) { c.detach(); this.el = r.nativeElement; + proxyOutputs(this, this.el, ['itemClicked']); } } @@ -1023,7 +1034,7 @@ export declare interface IxMenuSettings extends Components.IxMenuSettings { /** * Popover closed */ - close: EventEmitter>; + close: EventEmitter>; } diff --git a/packages/core/src/components/menu-about/readme.md b/packages/core/src/components/menu-about/readme.md index 0075beea6bd..04bf2bf87e5 100644 --- a/packages/core/src/components/menu-about/readme.md +++ b/packages/core/src/components/menu-about/readme.md @@ -20,9 +20,9 @@ SPDX-License-Identifier: MIT ## Events -| Event | Description | Type | -| ------- | ---------------------- | ------------------------- | -| `close` | About and Legal closed | `CustomEvent` | +| Event | Description | Type | +| ------- | ---------------------- | ------------------ | +| `close` | About and Legal closed | `CustomEvent` | ---------------------------------------------- diff --git a/packages/core/src/components/menu-item/readme.md b/packages/core/src/components/menu-item/readme.md index 9c991aac897..5929fe344f4 100644 --- a/packages/core/src/components/menu-item/readme.md +++ b/packages/core/src/components/menu-item/readme.md @@ -21,6 +21,13 @@ SPDX-License-Identifier: MIT | `tabIcon` | `tab-icon` | Icon name from @siemens/ix-icons | `string` | `'document'` | +## Events + +| Event | Description | Type | +| ------------- | -------------------------------------------------- | ---------------------- | +| `itemClicked` | Event to emit to parent that the item was selected | `CustomEvent` | + + ---------------------------------------------- diff --git a/packages/core/src/components/menu-settings/readme.md b/packages/core/src/components/menu-settings/readme.md index 25370215465..348b32f6c5e 100644 --- a/packages/core/src/components/menu-settings/readme.md +++ b/packages/core/src/components/menu-settings/readme.md @@ -20,9 +20,9 @@ SPDX-License-Identifier: MIT ## Events -| Event | Description | Type | -| ------- | -------------- | ------------------------- | -| `close` | Popover closed | `CustomEvent` | +| Event | Description | Type | +| ------- | -------------- | ------------------ | +| `close` | Popover closed | `CustomEvent` | ---------------------------------------------- diff --git a/packages/core/src/components/menu/readme.md b/packages/core/src/components/menu/readme.md index 8a1635a2065..26df8d01d4f 100644 --- a/packages/core/src/components/menu/readme.md +++ b/packages/core/src/components/menu/readme.md @@ -32,10 +32,11 @@ SPDX-License-Identifier: MIT ## Events -| Event | Description | Type | -| ----------------- | -------------------- | ---------------------- | -| `expandChange` | Menu expanded | `CustomEvent` | -| `mapExpandChange` | Map Sidebar expanded | `CustomEvent` | +| Event | Description | Type | +| ----------------- | -------------------------------------------------- | ---------------------- | +| `expandChange` | Menu expanded | `CustomEvent` | +| `mapExpandChange` | Map Sidebar expanded | `CustomEvent` | +| `overlayClose` | Event to emit to parent that the item was selected | `CustomEvent` | ## Methods