From 877e8c4dffb3b1937a8dcafef8e4c44a18c9c553 Mon Sep 17 00:00:00 2001 From: Oleg Kipchatov <35765711+OlegKipchatov@users.noreply.github.com> Date: Thu, 17 Sep 2020 11:10:22 +0300 Subject: [PATCH] Change placeholder format 19.2 (#1110) --- .gitignore | 1 + templates/component.tst | 29 ++++++++++++++++++++++------- templates/nested-component.tst | 13 ++++++++++--- 3 files changed, 33 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index a7db30237..b9ede4714 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ npm-debug.log metadata/generated src/ui/ src/index.ts +artifacts diff --git a/templates/component.tst b/templates/component.tst index b50d0c708..7ccd96376 100644 --- a/templates/component.tst +++ b/templates/component.tst @@ -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 #><#?#>',<#? it.isViz #> @@ -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 #>'); @@ -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 #> <#?#><#~#> diff --git a/templates/nested-component.tst b/templates/nested-component.tst index e2973974b..0f93d2041 100644 --- a/templates/nested-component.tst +++ b/templates/nested-component.tst @@ -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() {