Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core/cards): add card related components #542

Merged
merged 62 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
41faa30
feat(core/cards): add cards
danielleroux Mar 21, 2023
51cc4c9
feat: rename list to accordion
danielleroux Mar 21, 2023
f163b66
fix: remove expand content handling
danielleroux Mar 22, 2023
2681d23
fix: replace div with button tag
danielleroux Mar 28, 2023
5903893
feat: add variants
danielleroux Apr 5, 2023
180e6f5
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux Apr 5, 2023
c20286b
fix: border behavior
danielleroux Apr 5, 2023
5561644
chore: rename header to title
danielleroux Apr 5, 2023
d830dd8
feat: add notification cards
danielleroux Apr 5, 2023
e978d27
fix: expand color
danielleroux Apr 6, 2023
abcf1ca
feat: add coloring to cards
danielleroux Apr 12, 2023
5727a4c
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux May 2, 2023
e7112a8
feat: add card-list container component
danielleroux May 3, 2023
4235b65
feat: add animation to card list
danielleroux May 3, 2023
18bf489
feat: overflow handling to card list
danielleroux May 3, 2023
22f0c65
feat: add event listener
danielleroux May 4, 2023
a068f55
fix: show card borders
danielleroux May 5, 2023
180410c
fix: remove min width from card
danielleroux May 5, 2023
e23cecf
feat: add basic layouting
danielleroux May 5, 2023
0608774
fix: content sizing
danielleroux May 5, 2023
7159532
feat: suppress flag
danielleroux May 8, 2023
0d3fba3
fix(core/card): update layout and animation
nuke-ellington May 8, 2023
874882f
fix(core/css-grid): update row gaps
nuke-ellington May 8, 2023
4ddb891
docs(core/button): fix jsdocs typo
nuke-ellington May 9, 2023
d7967d5
refactor(core/card): move card variant to card component
nuke-ellington May 9, 2023
928f10f
fix(core/fonts): add header large
nuke-ellington May 9, 2023
93a0301
feat(core/action-card): add component
nuke-ellington May 9, 2023
f4d8c29
chore: remove grid example
danielleroux May 12, 2023
4748132
chore: rename to push card
danielleroux May 12, 2023
e2ad480
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux May 12, 2023
a5b9822
fix: file import typo
danielleroux May 12, 2023
e975573
feat: use shadowDOM
danielleroux May 12, 2023
bbd86a8
docs: add tags
danielleroux May 12, 2023
6bcb9b0
feat: add selected state to action card
danielleroux May 12, 2023
b19bf49
test: add vrt tests
danielleroux May 12, 2023
02fa482
docs: add card
danielleroux May 12, 2023
6cb005a
docs: add card-list
danielleroux May 12, 2023
19061d9
docs: add card list examples
danielleroux May 12, 2023
12a7f72
feat(core/card-list): add overflow indicator
danielleroux May 15, 2023
5646361
fix: space between show more label and count
danielleroux May 15, 2023
acb7306
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux May 15, 2023
6096112
fix: vue app
danielleroux May 15, 2023
dc302e8
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux May 15, 2023
17eccd3
fix: adjust color values of overflow
danielleroux May 15, 2023
3dd0bdc
feat: add show more card
danielleroux May 15, 2023
284f437
fix: show more card is visible on all default layouts
danielleroux May 15, 2023
e38baec
fix: mask overflow handling
danielleroux May 16, 2023
835f10e
fix: adjust example code
danielleroux May 16, 2023
a3fc743
test: update image refs
danielleroux May 16, 2023
b94e1e5
test: update refs
danielleroux May 16, 2023
e841c0e
feat: overflow with mask-image
danielleroux May 22, 2023
8f6656d
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux May 23, 2023
7528538
chore: reset format of components.d.ts
danielleroux May 23, 2023
56fef4d
Merge remote-tracking branch 'origin/main' into feat/cards
danielleroux May 24, 2023
44e7190
fix: change box-sizing
danielleroux May 24, 2023
194b28f
chore: cleanup
danielleroux May 24, 2023
784f3bd
docs(example/card-list): rename layouts
danielleroux May 26, 2023
240b11b
feat: add hover and active to pushcard
danielleroux May 26, 2023
b71b77d
feat: resolve merge request comments
danielleroux May 26, 2023
e4c55bc
feat(core/card-list): add i18n support to show all cards button
nuke-ellington May 30, 2023
b6174ac
Merge branch 'main' into feat/cards
nuke-ellington May 30, 2023
f91d14f
fix(core): fix merge errors
nuke-ellington May 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/angular-test-app/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import AboutAndLegal from 'src/preview-examples/about-and-legal';
import ActionCard from 'src/preview-examples/action-card';
import AGGrid from 'src/preview-examples/aggrid';
import BasicNavigation from 'src/preview-examples/basic-navigation';
import BasicNavigationWithOutHeader from 'src/preview-examples/basic-navigation-without-header';
Expand All @@ -21,6 +22,7 @@ import ButtonGroup from 'src/preview-examples/button-group';
import ButtonSelected from 'src/preview-examples/button-selected';
import ButtonWithIcon from 'src/preview-examples/button-with-icon';
import Buttons from 'src/preview-examples/buttons';
import CardList from 'src/preview-examples/card-list';
import CategoryFilter from 'src/preview-examples/category-filter';
import CategoryFilterSuggestions from 'src/preview-examples/category-filter-suggestions';
import Checkbox from 'src/preview-examples/checkbox';
Expand Down Expand Up @@ -68,6 +70,7 @@ import PageHeader from 'src/preview-examples/page-header';
import PageHeaderNoBack from 'src/preview-examples/page-header-no-back';
import Pill from 'src/preview-examples/pill';
import PopoverNews from 'src/preview-examples/popover-news';
import PushCard from 'src/preview-examples/push-card';
import Radiobutton from 'src/preview-examples/radio-button';
import Select from 'src/preview-examples/select';
import SelectEditable from 'src/preview-examples/select-editable';
Expand Down Expand Up @@ -278,6 +281,9 @@ const routes: Routes = [
{ path: 'tooltip', component: Tooltip },
{ path: 'tooltip-title', component: TooltipTitle },
{ path: 'modal-by-instance', component: ModalByInstance },
{ path: 'push-card', component: PushCard },
{ path: 'action-card', component: ActionCard },
{ path: 'card-list', component: CardList },
{ path: 'page-header', component: PageHeader },
{ path: 'page-header-no-back', component: PageHeaderNoBack },
{ path: 'empty-state', component: EmptyState },
Expand Down
6 changes: 6 additions & 0 deletions packages/angular-test-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { FormsModule } from '@angular/forms';
import { IxModule } from '@siemens/ix-angular';
import { AgGridModule } from 'ag-grid-angular';
import AboutAndLegal from 'src/preview-examples/about-and-legal';
import ActionCard from 'src/preview-examples/action-card';
import AGGrid from 'src/preview-examples/aggrid';
import BasicNavigation from 'src/preview-examples/basic-navigation';
import BasicNavigationWithOutHeader from 'src/preview-examples/basic-navigation-without-header';
Expand All @@ -28,6 +29,7 @@ import ButtonGroup from 'src/preview-examples/button-group';
import ButtonSelected from 'src/preview-examples/button-selected';
import ButtonWithIcon from 'src/preview-examples/button-with-icon';
import Buttons from 'src/preview-examples/buttons';
import CardList from 'src/preview-examples/card-list';
import CategoryFilter from 'src/preview-examples/category-filter';
import CategoryFilterSuggestions from 'src/preview-examples/category-filter-suggestions';
import Checkbox from 'src/preview-examples/checkbox';
Expand Down Expand Up @@ -76,6 +78,7 @@ import PageHeader from 'src/preview-examples/page-header';
import PageHeaderNoBack from 'src/preview-examples/page-header-no-back';
import Pill from 'src/preview-examples/pill';
import PopoverNews from 'src/preview-examples/popover-news';
import PushCard from 'src/preview-examples/push-card';
import Radiobutton from 'src/preview-examples/radio-button';
import Select from 'src/preview-examples/select';
import SelectEditable from 'src/preview-examples/select-editable';
Expand Down Expand Up @@ -193,6 +196,9 @@ import { NavigationTestComponent } from './components/navigation-test.component'
TooltipTitle,
ModalByInstance,
ModalByInstanceExample,
PushCard,
ActionCard,
CardList,
PageHeader,
EmptyState,
EmptyStateCompact,
Expand Down
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 packages/angular-test-app/src/preview-examples/action-card.ts
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 packages/angular-test-app/src/preview-examples/card-list.html
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="Layout Stack" 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="Layout Flow" 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 packages/angular-test-app/src/preview-examples/card-list.ts
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 packages/angular-test-app/src/preview-examples/push-card.html
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 packages/angular-test-app/src/preview-examples/push-card.ts
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 {}
Loading