Skip to content

Commit

Permalink
Change placeholder format 19.2 (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegKipchatov authored Sep 17, 2020
1 parent 617b8c3 commit 877e8c4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ npm-debug.log
metadata/generated
src/ui/
src/index.ts
artifacts
29 changes: 22 additions & 7 deletions templates/component.tst
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ const CUSTOM_VALUE_ACCESSOR_PROVIDER = {
multi: true
};<#?#>

<#? it.isDeprecated #>/** @deprecated */<#?#>
<#? it.docID #>/** @name <#= it.docID #> */<#?#>
/**
* [descr:<#= it.docID #>]
<#? it.isDeprecated #>
* @deprecated [depNote:<#= it.docID #>]
<#?#>
*/
@Component({
selector: '<#= it.selector #>',
template: '<#? it.isTranscludedContent #><ng-content></ng-content><#?#>',<#? it.isViz #>
Expand All @@ -87,8 +91,12 @@ const CUSTOM_VALUE_ACCESSOR_PROVIDER = {
export class <#= it.className #>Component extends <#= baseClass #> <#? implementedInterfaces.length #>implements <#= implementedInterfaces.join(', ') #> <#?#>{
instance: <#= it.className #>;
<#~ it.properties :prop:i #>
<#? prop.isDeprecated #>/** @deprecated */<#?#>
<#? prop.docID #>/** @name <#= prop.docID #> */<#?#>
/**
* [descr:<#= prop.docID #>]
<#? prop.isDeprecated #>
* @deprecated [depNote:<#= prop.docID #>]
<#?#>
*/
@Input()
get <#= prop.name #>(): <#= prop.type #> {
return this._getOption('<#= prop.name #>');
Expand All @@ -99,9 +107,16 @@ export class <#= it.className #>Component extends <#= baseClass #> <#? implement

<#?#><#~#>
<#~ it.events :event:i #>
<#? event.isDeprecated #>/** @deprecated */<#?#>
<#? event.docID #>/** @name <#= event.docID #> */<#?#>
<#? event.isInternal #>/** This member supports the internal infrastructure and is not intended to be used directly from your code. */<#?#>
/**
<#? event.isInternal #>
* This member supports the internal infrastructure and is not intended to be used directly from your code.
<#??#>
* [descr:<#= event.docID #>]
<#? event.isDeprecated #>
* @deprecated [depNote:<#= event.docID #>]
<#?#>
<#?#>
*/
@Output() <#= event.emit #>: <#= event.type #>;<#? i < it.events.length-1 #>
<#?#><#~#>

Expand Down
13 changes: 10 additions & 3 deletions templates/nested-component.tst
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,16 @@ export class <#= it.className #>Component extends <#= it.baseClass #><#? it.hasT
}
<#~#>
<#~ it.events :event:i #>
<#? event.isDeprecated #>/** @deprecated */<#?#>
<#? event.docID #>/** @name <#= event.docID #> */<#?#>
<#? event.isInternal #>/** This member supports the internal infrastructure and is not intended to be used directly from your code. */<#?#>
/**
<#? event.isInternal #>
* This member supports the internal infrastructure and is not intended to be used directly from your code.
<#??#>
* [descr:<#= event.docID #>]
<#? event.isDeprecated #>
* @deprecated [depNote:<#= event.docID #>]
<#?#>
<#?#>
*/
@Output() <#= event.emit #>: <#= event.type #>;<#? i < it.events.length-1 #>
<#?#><#~#>
protected get _optionPath() {
Expand Down

0 comments on commit 877e8c4

Please sign in to comment.