-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: taiga-family-bot <[email protected]>
- Loading branch information
1 parent
1ff5e38
commit 3cb028b
Showing
15 changed files
with
178 additions
and
65 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
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
5 changes: 0 additions & 5 deletions
5
projects/demo/src/modules/components/action-bar/examples/1/index.less
This file was deleted.
Oops, something went wrong.
11 changes: 8 additions & 3 deletions
11
projects/demo/src/modules/components/action-bar/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
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
5 changes: 0 additions & 5 deletions
5
projects/demo/src/modules/components/action-bar/examples/2/index.less
This file was deleted.
Oops, something went wrong.
16 changes: 12 additions & 4 deletions
16
projects/demo/src/modules/components/action-bar/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
import {Component, signal} from '@angular/core'; | ||
import {NgIf} from '@angular/common'; | ||
import {Component, inject, signal} from '@angular/core'; | ||
import {toSignal} from '@angular/core/rxjs-interop'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {TuiButton} from '@taiga-ui/core'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiBreakpointService, TuiButton} from '@taiga-ui/core'; | ||
import {TuiActionBar} from '@taiga-ui/kit'; | ||
import {map} from 'rxjs'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiActionBar, TuiButton], | ||
imports: [NgIf, TuiActionBar, TuiButton], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export default class Example { | ||
protected open = signal(false); | ||
|
||
protected readonly isMobile = toSignal( | ||
inject(TuiBreakpointService).pipe(map((size) => size === 'mobile')), | ||
); | ||
} |
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
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.