-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(demo): migrate documentation page
BlockStatus
to standalone c…
…omponents (#7183)
- Loading branch information
Showing
15 changed files
with
115 additions
and
221 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
43 changes: 0 additions & 43 deletions
43
projects/demo/src/modules/components/block-status/block-status.component.ts
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
projects/demo/src/modules/components/block-status/block-status.module.ts
This file was deleted.
Oops, something went wrong.
110 changes: 0 additions & 110 deletions
110
projects/demo/src/modules/components/block-status/block-status.template.html
This file was deleted.
Oops, something went wrong.
Empty file.
7 changes: 5 additions & 2 deletions
7
projects/demo/src/modules/components/block-status/examples/1/index.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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiBlockStatusModule} from '@taiga-ui/layout'; | ||
|
||
@Component({ | ||
selector: 'tui-block-status-example-1', | ||
standalone: true, | ||
imports: [TuiBlockStatusModule], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export class TuiBlockStatusExample1 {} | ||
export default class ExampleComponent {} |
Empty file.
10 changes: 7 additions & 3 deletions
10
projects/demo/src/modules/components/block-status/examples/2/index.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
9 changes: 6 additions & 3 deletions
9
projects/demo/src/modules/components/block-status/examples/3/index.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
16 changes: 14 additions & 2 deletions
16
projects/demo/src/modules/components/block-status/examples/4/index.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
8 changes: 6 additions & 2 deletions
8
projects/demo/src/modules/components/block-status/examples/5/index.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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiPlatformModule} from '@taiga-ui/cdk'; | ||
import {TuiButtonDirective} from '@taiga-ui/core'; | ||
import {TuiBlockStatusModule} from '@taiga-ui/layout'; | ||
|
||
@Component({ | ||
selector: 'tui-block-status-example-5', | ||
standalone: true, | ||
imports: [TuiBlockStatusModule, TuiButtonDirective, TuiPlatformModule], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export class TuiBlockStatusExample5 {} | ||
export default class ExampleComponent {} |
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
projects/demo/src/modules/components/block-status/index.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,50 @@ | ||
<tui-doc-page | ||
header="BlockStatus" | ||
package="LAYOUT" | ||
type="components" | ||
> | ||
<ng-template pageTab> | ||
<p>Component for status screens, result screens and zero screens</p> | ||
|
||
<tui-doc-example | ||
*ngFor="let example of examples; let index = index" | ||
[component]="index + 1 | tuiComponent" | ||
[content]="index + 1 | tuiExample" | ||
[fullsize]="true" | ||
[heading]="example" | ||
[id]="example | tuiKebab" | ||
/> | ||
</ng-template> | ||
|
||
<ng-template pageTab> | ||
<tui-doc-demo> | ||
<tui-block-status [card]="card"> | ||
<img | ||
alt="hidden content" | ||
src="./assets/images/camping.svg" | ||
tuiSlot="top" | ||
/> | ||
<h4>Title</h4> | ||
Description | ||
<button | ||
appearance="secondary" | ||
tuiButton | ||
> | ||
Action | ||
</button> | ||
</tui-block-status> | ||
</tui-doc-demo> | ||
<tui-doc-documentation> | ||
<ng-template | ||
documentationPropertyMode="input" | ||
documentationPropertyName="card" | ||
documentationPropertyType="boolean" | ||
[(documentationPropertyValue)]="card" | ||
> | ||
Enable border radius and padding for card view | ||
</ng-template> | ||
</tui-doc-documentation> | ||
</ng-template> | ||
|
||
<tui-setup *pageTab /> | ||
</tui-doc-page> |
Oops, something went wrong.