-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(design)!: change
daffArticleEncapsulatedMixin
to a directive (#…
…2913) BREAKING CHANGE: daffArticleEncapsulatedMixin has been removed in favor of DaffArticleEncapsulatedDirective. Update usage by using the hostDirective instead. Co-authored-by: Damien Retzinger <damienwebdev@gmail.com>
- Loading branch information
1 parent
e953dca
commit b00d1e1
Showing
18 changed files
with
165 additions
and
176 deletions.
There are no files selected for viewing
25 changes: 6 additions & 19 deletions
25
apps/design-land/src/app/core/article-encapsulated/article-encapsulated.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,26 +1,13 @@ | ||
import { | ||
Component, | ||
ElementRef, | ||
Renderer2, | ||
} from '@angular/core'; | ||
import { Component } from '@angular/core'; | ||
|
||
import { daffArticleEncapsulatedMixin } from '@daffodil/design'; | ||
|
||
/** | ||
* An _elementRef and an instance of renderer2 are needed for the link set mixins | ||
*/ | ||
class DesignLandArticleEncapsulatedBase { | ||
constructor(public _elementRef: ElementRef, public _renderer: Renderer2) {} | ||
} | ||
|
||
const _designLandArticleEncapsulatedBase = daffArticleEncapsulatedMixin((DesignLandArticleEncapsulatedBase)); | ||
import { DaffArticleEncapsulatedDirective } from '@daffodil/design'; | ||
|
||
@Component({ | ||
selector: 'design-land-article-encapsulated', | ||
template: '<ng-content></ng-content>', | ||
hostDirectives: [{ | ||
directive: DaffArticleEncapsulatedDirective, | ||
}], | ||
}) | ||
export class DesignLandArticleEncapsulatedComponent extends _designLandArticleEncapsulatedBase { | ||
constructor(private elementRef: ElementRef, private renderer: Renderer2) { | ||
super(elementRef, renderer); | ||
} | ||
export class DesignLandArticleEncapsulatedComponent { | ||
} |
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
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
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.