-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/menu): rework of menu (#592)
Co-authored-by: Lukas Maurer <lukas.maurer@siemens.com>
- Loading branch information
1 parent
e4b0355
commit 932b051
Showing
126 changed files
with
2,735 additions
and
1,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Breaking Changes | ||
|
||
## v2.0.0 | ||
|
||
### `ix-menu-item` | ||
|
||
#### `tabIcon` is deprecated and gets replaced with `icon` property | ||
|
||
___Before___ | ||
|
||
```tsx | ||
<ix-menu-item tabIcon="rocket"></ix-menu-item> | ||
``` | ||
|
||
___Now___ | ||
|
||
```tsx | ||
<ix-menu-item icon="rocket"></ix-menu-item> | ||
``` | ||
|
||
## `ix-menu-about`, `ix-menu-settings` | ||
|
||
### `close` event | ||
|
||
___Before___ | ||
```typescript | ||
@Event() close: EventEmitter<string>; | ||
``` | ||
|
||
___Now___ | ||
```typescript | ||
@Event() close: EventEmitter<{ | ||
nativeEvent: MouseEvent; | ||
name: string; | ||
}>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/angular-test-app/src/preview-examples/menu-category.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<ix-basic-navigation> | ||
<ix-menu> | ||
<ix-menu-item home icon="home">Home</ix-menu-item> | ||
<ix-menu-item icon="globe">Normal Tab</ix-menu-item> | ||
<ix-menu-category label="Top level Category" icon="rocket"> | ||
<ix-menu-item icon="globe">Nested Tab</ix-menu-item> | ||
<ix-menu-item icon="globe">Nested Tab</ix-menu-item> | ||
</ix-menu-category> | ||
</ix-menu> | ||
</ix-basic-navigation> |
16 changes: 16 additions & 0 deletions
16
packages/angular-test-app/src/preview-examples/menu-category.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: './menu-category.html', | ||
}) | ||
export default class MenuCategory {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.