Skip to content

Commit 7bb04b9

Browse files
straversicopybara-github
authored andcommitted
Support internal tooling.
PiperOrigin-RevId: 334919805
1 parent 30b9e3a commit 7bb04b9

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
lines changed

packages/button/mwc-button-base.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ButtonBase extends LitElement {
5555
return this.ripple;
5656
});
5757

58-
/** @soyCompatible */
58+
/** @soyTemplate */
5959
protected renderRipple() {
6060
const filled = this.raised || this.unelevated;
6161
return this.shouldRenderRipple ?
@@ -84,7 +84,7 @@ export class ButtonBase extends LitElement {
8484
}
8585
}
8686

87-
/** @soyCompatible */
87+
/** @soyTemplate */
8888
protected getRenderClasses() {
8989
return classMap({
9090
'mdc-button--raised': this.raised,
@@ -94,7 +94,7 @@ export class ButtonBase extends LitElement {
9494
});
9595
}
9696

97-
/** @soyCompatible */
97+
/** @soyTemplate */
9898
protected render() {
9999
return html`
100100
<button
@@ -130,7 +130,7 @@ export class ButtonBase extends LitElement {
130130
</button>`;
131131
}
132132

133-
/** @soyCompatible */
133+
/** @soyTemplate */
134134
protected renderIcon() {
135135
return html`
136136
<mwc-icon class="mdc-button__icon">

packages/checkbox/mwc-checkbox-base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class CheckboxBase extends FormElement {
9898
});
9999

100100
// TODO(dfreedm): Make this use selected as a param after Polymer/internal#739
101-
/** @soyCompatible */
101+
/** @soyTemplate */
102102
protected renderRipple() {
103103
const selected = this.indeterminate || this.checked;
104104
return this.shouldRenderRipple ? html`
@@ -111,7 +111,7 @@ export class CheckboxBase extends FormElement {
111111
}
112112

113113
/**
114-
* @soyCompatible
114+
* @soyTemplate
115115
* @soyAttributes checkboxAttributes: input
116116
* @soyClasses checkboxClasses: .mdc-checkbox
117117
*/

packages/circular-progress-four-color/mwc-circular-progress-four-color-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {html} from 'lit-element';
1919

2020
/** @soyCompatible */
2121
export class CircularProgressFourColorBase extends CircularProgressBase {
22-
/** @soyCompatible */
22+
/** @soyTemplate */
2323
protected renderIndeterminateContainer() {
2424
return html`
2525
<div class="mdc-circular-progress__indeterminate-container">

packages/circular-progress/mwc-circular-progress-base.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class CircularProgressBase extends LitElement {
4040
}
4141

4242
/**
43-
* @soyCompatible
43+
* @soyTemplate
4444
*/
4545
protected render() {
4646
/** @classMap */
@@ -71,7 +71,7 @@ export class CircularProgressBase extends LitElement {
7171
}
7272

7373
/**
74-
* @soyCompatible
74+
* @soyTemplate
7575
*/
7676
private renderDeterminateContainer() {
7777
const sideLength = 48 + this.density * 4;
@@ -100,7 +100,7 @@ export class CircularProgressBase extends LitElement {
100100
}
101101

102102
/**
103-
* @soyCompatible
103+
* @soyTemplate
104104
*/
105105
protected renderIndeterminateContainer() {
106106
return html`
@@ -112,7 +112,7 @@ export class CircularProgressBase extends LitElement {
112112
}
113113

114114
/**
115-
* @soyCompatible
115+
* @soyTemplate
116116
*/
117117
protected renderIndeterminateSpinnerLayer() {
118118
const sideLength = 48 + this.density * 4;

packages/fab/mwc-fab-base.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class FabBase extends LitElement {
5555
return this.attachShadow({mode: 'open', delegatesFocus: true});
5656
}
5757

58-
/** @soyCompatible */
58+
/** @soyTemplate */
5959
protected render() {
6060
const hasTouchTarget = this.mini && !this.reducedTouchTarget;
6161
/** @classMap */
@@ -95,23 +95,23 @@ export class FabBase extends LitElement {
9595
</button>`;
9696
}
9797

98-
/** @soyCompatible */
98+
/** @soyTemplate */
9999
protected renderIcon() {
100100
return html`${
101101
this.icon ? html`
102102
<span class="material-icons mdc-fab__icon">${this.icon}</span>` :
103103
''}`;
104104
}
105105

106-
/** @soyCompatible */
106+
/** @soyTemplate */
107107
protected renderTouchTarget() {
108108
const hasTouchTarget = this.mini && !this.reducedTouchTarget;
109109

110110
return html`${
111111
hasTouchTarget ? html`<div class="mdc-fab__touch"></div>` : ''}`;
112112
}
113113

114-
/** @soyCompatible */
114+
/** @soyTemplate */
115115
protected renderLabel() {
116116
const showLabel = this.label !== '' && this.extended;
117117

@@ -120,12 +120,12 @@ export class FabBase extends LitElement {
120120
''}`;
121121
}
122122

123-
/** @soyCompatible */
123+
/** @soyTemplate */
124124
protected renderBeforeRipple() {
125125
return html``;
126126
}
127127

128-
/** @soyCompatible */
128+
/** @soyTemplate */
129129
protected renderRipple() {
130130
return this.shouldRenderRipple ?
131131
html`<mwc-ripple class="ripple"></mwc-ripple>` :

packages/icon-button/mwc-icon-button-base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class IconButtonBase extends LitElement {
3939
return this.ripple;
4040
});
4141

42-
/** @soyCompatible */
42+
/** @soyTemplate */
4343
protected renderRipple() {
4444
return this.shouldRenderRipple ? html`
4545
<mwc-ripple
@@ -65,7 +65,7 @@ export class IconButtonBase extends LitElement {
6565
}
6666
}
6767

68-
/** @soyCompatible */
68+
/** @soyTemplate */
6969
protected render() {
7070
return html`<button
7171
class="mdc-icon-button"

packages/icon/mwc-icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {style} from './mwc-icon-host-css';
2323
export class Icon extends LitElement {
2424
static styles = style;
2525

26-
/** @soyCompatible */
26+
/** @soyTemplate */
2727
protected render() {
2828
return html`<slot></slot>`;
2929
}

packages/linear-progress/mwc-linear-progress-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class LinearProgressBase extends LitElement {
5353
}
5454

5555
/**
56-
* @soyCompatible
56+
* @soyTemplate
5757
*/
5858
protected render() {
5959
/** @classMap */

packages/radio/mwc-radio-base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class RadioBase extends FormElement {
140140
return this.ripple;
141141
});
142142

143-
/** @soyCompatible */
143+
/** @soyTemplate */
144144
protected renderRipple() {
145145
return this.shouldRenderRipple ?
146146
html`<mwc-ripple unbounded accent .disabled="${
@@ -212,7 +212,7 @@ export class RadioBase extends FormElement {
212212
}
213213

214214
/**
215-
* @soyCompatible
215+
* @soyTemplate
216216
* @soyAttributes radioAttributes: input
217217
* @soyClasses radioClasses: .mdc-radio
218218
*/

packages/ripple/mwc-ripple-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class RippleBase extends BaseElement implements RippleAPI {
183183
}
184184
}
185185

186-
/** @soyCompatible */
186+
/** @soyTemplate */
187187
protected render() {
188188
/** @classMap */
189189
const classes = {

0 commit comments

Comments
 (0)