-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update to support Forge 3.5.0 (#72)
- Loading branch information
1 parent
a6c7506
commit afe0e88
Showing
24 changed files
with
503 additions
and
44 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './key-item.component'; | ||
export * from './key-item.module'; |
35 changes: 35 additions & 0 deletions
35
projects/forge-angular/src/lib/key-item/key-item.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,35 @@ | ||
// This code was generated by the angular-custom-elements-schematic. Any changes will be overwritten next time it runs. | ||
import { booleanAttribute, Component, ElementRef, ChangeDetectionStrategy, ChangeDetectorRef, NgZone, Input } from '@angular/core'; | ||
import { KeyItemComponent as KeyItemComponentCustomElement, defineKeyItemComponent } from '@tylertech/forge'; | ||
|
||
/** */ | ||
@Component({ | ||
selector: 'forge-key-item', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
template: '<ng-content></ng-content>' | ||
}) | ||
export class KeyItemComponent { | ||
|
||
/** The forge-key-item element. */ | ||
public readonly nativeElement = this.elementRef.nativeElement; | ||
|
||
/** Whether the label and value dislay on one line. */ | ||
@Input({ transform: booleanAttribute }) | ||
public set inline(value: KeyItemComponentCustomElement['inline']) { | ||
this.zone.runOutsideAngular(() => { | ||
this.nativeElement.inline = value; | ||
}); | ||
} | ||
public get inline(): KeyItemComponentCustomElement['inline'] { | ||
return this.nativeElement.inline; | ||
} | ||
|
||
constructor( | ||
changeDetectorRef: ChangeDetectorRef, | ||
protected elementRef: ElementRef<KeyItemComponentCustomElement>, | ||
protected zone: NgZone | ||
) { | ||
defineKeyItemComponent(); | ||
changeDetectorRef.detach(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
projects/forge-angular/src/lib/key-item/key-item.module.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,17 @@ | ||
// This code was generated by the angular-custom-elements-schematic. Any changes will be overwritten next time it runs. | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { defineKeyItemComponent } from '@tylertech/forge'; | ||
|
||
import { KeyItemComponent } from './key-item.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
declarations: [KeyItemComponent], | ||
exports: [KeyItemComponent] | ||
}) | ||
export class ForgeKeyItemModule { | ||
constructor() { | ||
defineKeyItemComponent(); | ||
} | ||
} |
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,2 @@ | ||
export * from './key.component'; | ||
export * from './key.module'; |
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,24 @@ | ||
// This code was generated by the angular-custom-elements-schematic. Any changes will be overwritten next time it runs. | ||
import { Component, ElementRef, ChangeDetectionStrategy, ChangeDetectorRef, NgZone, Input } from '@angular/core'; | ||
import { KeyComponent as KeyComponentCustomElement, defineKeyComponent } from '@tylertech/forge'; | ||
|
||
/** */ | ||
@Component({ | ||
selector: 'forge-key', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
template: '<ng-content></ng-content>' | ||
}) | ||
export class KeyComponent { | ||
|
||
/** The forge-key element. */ | ||
public readonly nativeElement = this.elementRef.nativeElement; | ||
|
||
constructor( | ||
changeDetectorRef: ChangeDetectorRef, | ||
protected elementRef: ElementRef<KeyComponentCustomElement>, | ||
protected zone: NgZone | ||
) { | ||
defineKeyComponent(); | ||
changeDetectorRef.detach(); | ||
} | ||
} |
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 @@ | ||
// This code was generated by the angular-custom-elements-schematic. Any changes will be overwritten next time it runs. | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { defineKeyComponent } from '@tylertech/forge'; | ||
|
||
import { ForgeKeyItemModule } from '../key-item/key-item.module'; | ||
import { KeyComponent } from './key.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule, ForgeKeyItemModule], | ||
declarations: [KeyComponent], | ||
exports: [KeyComponent, ForgeKeyItemModule] | ||
}) | ||
export class ForgeKeyModule { | ||
constructor() { | ||
defineKeyComponent(); | ||
} | ||
} |
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,2 @@ | ||
export * from './meter-group.component'; | ||
export * from './meter-group.module'; |
Oops, something went wrong.