-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
13 changes: 10 additions & 3 deletions
13
projects/mantic-ui/src/lib/components/error/error.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 |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import { Component } from '@angular/core'; | ||
import { BaseComponent } from '../../base/base.component'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
import { InvertibleComponent } from '../../base/invertible.component'; | ||
import { IgnoredDirective } from '../../directives/ignored.directive'; | ||
import { MessageComponent } from '../message/message.component'; | ||
|
||
@Component({ | ||
selector: 'm-error', | ||
templateUrl: './error.component.html', | ||
styleUrls: ['./error.component.scss'], | ||
standalone: true, | ||
hostDirectives: [IgnoredDirective.default], | ||
providers: [...BaseComponent.providers] | ||
providers: [...InvertibleComponent.providers] | ||
}) | ||
export class ErrorComponent extends BaseComponent { | ||
export class ErrorComponent extends InvertibleComponent { | ||
public constructor() { | ||
super(); | ||
this.classes.registerFixed('visible', 'error', 'message'); | ||
} | ||
|
||
public override ngOnInit(): void { | ||
super.ngOnInit(); | ||
MessageComponent.defaults.invertedChange.pipe(takeUntil(this.destroy)).subscribe(value => this.refreshInverted(value)); | ||
} | ||
} |
15 changes: 11 additions & 4 deletions
15
projects/mantic-ui/src/lib/components/info/info.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 |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import { Component } from '@angular/core'; | ||
import { BaseComponent } from '../../base/base.component'; | ||
import { Component, OnInit } from '@angular/core'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
import { InvertibleComponent } from '../../base/invertible.component'; | ||
import { IgnoredDirective } from '../../directives/ignored.directive'; | ||
import { MessageComponent } from '../message/message.component'; | ||
|
||
@Component({ | ||
selector: 'm-info', | ||
templateUrl: './info.component.html', | ||
styleUrls: ['./info.component.scss'], | ||
standalone: true, | ||
hostDirectives: [IgnoredDirective.default], | ||
providers: [...BaseComponent.providers] | ||
providers: [...InvertibleComponent.providers] | ||
}) | ||
export class InfoComponent extends BaseComponent { | ||
export class InfoComponent extends InvertibleComponent implements OnInit { | ||
public constructor() { | ||
super(); | ||
this.classes.registerFixed('visible', 'info', 'message'); | ||
} | ||
|
||
public override ngOnInit(): void { | ||
super.ngOnInit(); | ||
MessageComponent.defaults.invertedChange.pipe(takeUntil(this.destroy)).subscribe(value => this.refreshInverted(value)); | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
projects/semantic-ui/src/lib/semantic-ui-theme/semantic-ui-theme.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