-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core, platform): fix illustrated message in table
- Loading branch information
Showing
10 changed files
with
199 additions
and
10 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
32 changes: 32 additions & 0 deletions
32
libs/docs/core/table/examples/no-data/no-data-example.component.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,32 @@ | ||
<table fd-table aria-label="Default"> | ||
<thead fd-table-header> | ||
<tr fd-table-row> | ||
<th fd-table-cell>Column Header</th> | ||
<th fd-table-cell>Column Header</th> | ||
<th fd-table-cell>Column Header</th> | ||
</tr> | ||
</thead> | ||
<tbody fd-table-body> | ||
<tr fd-table-row> | ||
<td | ||
fd-table-cell | ||
class="fd-table__cell--no-data fd-table__cell fd-table__cell--focusable" | ||
tabindex="0" | ||
colspan="5" | ||
aria-colindex="0" | ||
> | ||
<div style="width: 100%; display: flex; justify-content: center"> | ||
<figure style="width: 100%" fd-illustrated-message [svgConfig]="sceneConfig"> | ||
<figcaption fd-illustrated-message-figcaption> | ||
<h3 fd-illustrated-message-title>Headline text goes here</h3> | ||
<p fd-illustrated-message-text> | ||
Description provides user with clarity and possible next steps. | ||
</p> | ||
</figcaption> | ||
<fd-illustrated-message-actions> </fd-illustrated-message-actions> | ||
</figure> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
26 changes: 26 additions & 0 deletions
26
libs/docs/core/table/examples/no-data/no-data-example.component.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,26 @@ | ||
import { Component } from '@angular/core'; | ||
import { IconComponent } from '@fundamental-ngx/core/icon'; | ||
import { IllustratedMessageModule } from '@fundamental-ngx/core/illustrated-message'; | ||
import { LinkComponent } from '@fundamental-ngx/core/link'; | ||
import { TableModule } from '@fundamental-ngx/core/table'; | ||
|
||
@Component({ | ||
selector: 'fdp-platform-table-no-data-example', | ||
templateUrl: './no-data-example.component.html', | ||
standalone: true, | ||
imports: [TableModule, LinkComponent, IconComponent, IllustratedMessageModule] | ||
}) | ||
export class NoDataExampleComponent { | ||
tableRows = []; | ||
|
||
sceneConfig = { | ||
scene: { | ||
url: 'assets/images/sapIllus-Scene-NoMail.svg', | ||
id: 'sapIllus-Scene-NoMail-1' | ||
}, | ||
dialog: { | ||
url: 'assets/images/sapIllus-Dialog-NoMail.svg', | ||
id: 'sapIllus-Dialog-NoMail' | ||
} | ||
}; | ||
} |
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
18 changes: 18 additions & 0 deletions
18
libs/docs/platform/table/examples/no-data/no-data-example.component.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,18 @@ | ||
<fdp-table [dataSource]="source"> | ||
<fdp-column [nonInteractive]="true" name="name" key="name" label="Name" align="start"> </fdp-column> | ||
|
||
<fdp-column name="description" key="description" label="Description"> </fdp-column> | ||
|
||
<fdp-column name="price" key="price.value" label="Price" align="end"> </fdp-column> | ||
|
||
<fdp-column [nonInteractive]="true" name="status" key="status" label="Status" align="center"> </fdp-column> | ||
<fdp-table-no-data-wrapper style="display: block; width: 100%"> | ||
<figure style="width: 100%" fd-illustrated-message [svgConfig]="sceneConfig"> | ||
<figcaption fd-illustrated-message-figcaption> | ||
<h3 fd-illustrated-message-title>Headline text goes here</h3> | ||
<p fd-illustrated-message-text>Description provides user with clarity and possible next steps.</p> | ||
</figcaption> | ||
<fd-illustrated-message-actions> </fd-illustrated-message-actions> | ||
</figure> | ||
</fdp-table-no-data-wrapper> | ||
</fdp-table> |
56 changes: 56 additions & 0 deletions
56
libs/docs/platform/table/examples/no-data/no-data-example.component.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,56 @@ | ||
import { ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation } from '@angular/core'; | ||
import { PlatformButtonModule } from '@fundamental-ngx/platform/button'; | ||
import { PlatformTableModule } from '@fundamental-ngx/platform/table'; | ||
import { | ||
TableDataSourceDirective, | ||
TableHeaderResizerDirective, | ||
TableInitialStateDirective | ||
} from '@fundamental-ngx/platform/table-helpers'; | ||
|
||
import { IllustratedMessageModule } from '@fundamental-ngx/core/illustrated-message'; | ||
|
||
@Component({ | ||
selector: 'fdp-platform-table-no-data-example', | ||
templateUrl: './no-data-example.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
encapsulation: ViewEncapsulation.None, | ||
standalone: true, | ||
imports: [ | ||
TableDataSourceDirective, | ||
TableHeaderResizerDirective, | ||
PlatformTableModule, | ||
TableInitialStateDirective, | ||
PlatformButtonModule, | ||
IllustratedMessageModule | ||
] | ||
}) | ||
export class NoDataExampleComponent { | ||
source; | ||
|
||
constructor(readonly hostElement: ElementRef<HTMLElement>) { | ||
this.source = []; | ||
} | ||
|
||
sceneConfig = { | ||
scene: { | ||
url: 'assets/images/sapIllus-Scene-NoMail.svg', | ||
id: 'sapIllus-Scene-NoMail-1' | ||
}, | ||
dialog: { | ||
url: 'assets/images/sapIllus-Dialog-NoMail.svg', | ||
id: 'sapIllus-Dialog-NoMail' | ||
}, | ||
base: { | ||
url: 'assets/images/sapIllus-Dialog-NoMail.svg', | ||
id: 'sapIllus-Dialog-NoMail' | ||
}, | ||
spot: { | ||
url: 'assets/images/sapIllus-Spot-NoMail.svg', | ||
id: 'sapIllus-Spot-NoEmail' | ||
}, | ||
dot: { | ||
url: 'assets/images/sapIllus-Spot-NoMail.svg', | ||
id: 'sapIllus-Spot-NoEmail' | ||
} | ||
}; | ||
} |
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
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