-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/cards): add card related components (#542)
Co-authored-by: Lukas Maurer <lukas.maurer@siemens.com>
- Loading branch information
1 parent
b0bb9e2
commit 510b131
Showing
72 changed files
with
4,330 additions
and
53 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
7 changes: 7 additions & 0 deletions
7
packages/angular-test-app/src/preview-examples/action-card.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,7 @@ | ||
<ix-action-card | ||
icon="refresh" | ||
heading="Scan for new devices" | ||
subheading="Secondary text" | ||
variant="insight" | ||
(click)="onClick($event)" | ||
></ix-action-card> |
20 changes: 20 additions & 0 deletions
20
packages/angular-test-app/src/preview-examples/action-card.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,20 @@ | ||
/* | ||
* 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: './action-card.html', | ||
}) | ||
export default class ActionCard { | ||
onClick(event: Event) { | ||
console.log(event); | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
packages/angular-test-app/src/preview-examples/card-list.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,69 @@ | ||
<!-- | ||
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. | ||
--> | ||
<ix-card-list label="Stack Layout" show-all-count="12" list-style="stack"> | ||
<ix-push-card | ||
icon="rocket" | ||
notification="3" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="notification" | ||
></ix-push-card> | ||
<ix-push-card | ||
icon="bulb" | ||
notification="1" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="warning" | ||
></ix-push-card> | ||
<ix-push-card | ||
icon="rocket" | ||
notification="3" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="success" | ||
></ix-push-card> | ||
</ix-card-list> | ||
|
||
<ix-card-list label="Flow Layout" show-all-count="12" list-style="scroll"> | ||
<ix-push-card | ||
icon="rocket" | ||
notification="3" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="notification" | ||
></ix-push-card> | ||
<ix-push-card | ||
icon="bulb" | ||
notification="1" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="warning" | ||
></ix-push-card> | ||
<ix-push-card | ||
icon="rocket" | ||
notification="3" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="notification" | ||
></ix-push-card> | ||
<ix-push-card | ||
icon="rocket" | ||
notification="3" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="notification" | ||
></ix-push-card> | ||
<ix-push-card | ||
icon="rocket" | ||
notification="3" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="notification" | ||
></ix-push-card> | ||
</ix-card-list> |
16 changes: 16 additions & 0 deletions
16
packages/angular-test-app/src/preview-examples/card-list.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: './card-list.html', | ||
}) | ||
export default class CardList {} |
38 changes: 38 additions & 0 deletions
38
packages/angular-test-app/src/preview-examples/push-card.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,38 @@ | ||
<ix-push-card | ||
icon="bulb" | ||
notification="99" | ||
heading="Heading content" | ||
subheading="Subheading" | ||
variant="insight" | ||
> | ||
<!-- Just example content --> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th scope="col">#</th> | ||
<th scope="col">First</th> | ||
<th scope="col">Last</th> | ||
<th scope="col">Handle</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th scope="row">1</th> | ||
<td>Mark</td> | ||
<td>Otto</td> | ||
<td>@mdo</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">2</th> | ||
<td>Jacob</td> | ||
<td>Thornton</td> | ||
<td>@fat</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">3</th> | ||
<td colspan="2">Larry the Bird</td> | ||
<td>@twitter</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</ix-push-card> |
16 changes: 16 additions & 0 deletions
16
packages/angular-test-app/src/preview-examples/push-card.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: './push-card.html', | ||
}) | ||
export default class PushCard {} |
Oops, something went wrong.