Skip to content

Commit

Permalink
fix(core): fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalosard committed Oct 28, 2022
1 parent 0322c96 commit 1ec9c1f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 14 deletions.
19 changes: 15 additions & 4 deletions packages/angular/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,10 @@ export declare interface IxMenu extends Components.IxMenu {
* Map Sidebar expanded
*/
mapExpandChange: EventEmitter<CustomEvent<boolean>>;
/**
* Event to emit to parent that the item was selected
*/
overlayClose: EventEmitter<CustomEvent<boolean>>;

}

Expand All @@ -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']);
}
}

Expand All @@ -865,7 +869,7 @@ export declare interface IxMenuAbout extends Components.IxMenuAbout {
/**
* About and Legal closed
*/
close: EventEmitter<CustomEvent<MouseEvent>>;
close: EventEmitter<CustomEvent<any>>;

}

Expand Down Expand Up @@ -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<CustomEvent<boolean>>;

}

@ProxyCmp({
defineCustomElementFn: undefined,
Expand All @@ -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']);
}
}

Expand All @@ -1023,7 +1034,7 @@ export declare interface IxMenuSettings extends Components.IxMenuSettings {
/**
* Popover closed
*/
close: EventEmitter<CustomEvent<MouseEvent>>;
close: EventEmitter<CustomEvent<any>>;

}

Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/components/menu-about/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ SPDX-License-Identifier: MIT

## Events

| Event | Description | Type |
| ------- | ---------------------- | ------------------------- |
| `close` | About and Legal closed | `CustomEvent<MouseEvent>` |
| Event | Description | Type |
| ------- | ---------------------- | ------------------ |
| `close` | About and Legal closed | `CustomEvent<any>` |


----------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/components/menu-item/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>` |


----------------------------------------------


6 changes: 3 additions & 3 deletions packages/core/src/components/menu-settings/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ SPDX-License-Identifier: MIT

## Events

| Event | Description | Type |
| ------- | -------------- | ------------------------- |
| `close` | Popover closed | `CustomEvent<MouseEvent>` |
| Event | Description | Type |
| ------- | -------------- | ------------------ |
| `close` | Popover closed | `CustomEvent<any>` |


----------------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions packages/core/src/components/menu/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ SPDX-License-Identifier: MIT

## Events

| Event | Description | Type |
| ----------------- | -------------------- | ---------------------- |
| `expandChange` | Menu expanded | `CustomEvent<boolean>` |
| `mapExpandChange` | Map Sidebar expanded | `CustomEvent<boolean>` |
| Event | Description | Type |
| ----------------- | -------------------------------------------------- | ---------------------- |
| `expandChange` | Menu expanded | `CustomEvent<boolean>` |
| `mapExpandChange` | Map Sidebar expanded | `CustomEvent<boolean>` |
| `overlayClose` | Event to emit to parent that the item was selected | `CustomEvent<boolean>` |


## Methods
Expand Down

0 comments on commit 1ec9c1f

Please sign in to comment.