diff --git a/addon/components/paper-button.hbs b/addon/components/paper-button.hbs index 10ba7b34f..79afe4288 100644 --- a/addon/components/paper-button.hbs +++ b/addon/components/paper-button.hbs @@ -1,8 +1,8 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-curly-component-invocation }} {{#if (has-block)}} {{yield}} {{else}} - {{label}} + {{@label}} {{/if}} +
{{yield}}
{{else}} - {{alt}} + {{@alt}} {{/if}} \ No newline at end of file diff --git a/addon/components/paper-card-title-media.hbs b/addon/components/paper-card-title-media.hbs index ff4629985..eb1835447 100644 --- a/addon/components/paper-card-title-media.hbs +++ b/addon/components/paper-card-title-media.hbs @@ -1,8 +1,7 @@ -{{! template-lint-disable no-implicit-this }} {{#if (has-block)}} -
+
{{yield}}
{{else}} - {{alt}} + {{@alt}} {{/if}} \ No newline at end of file diff --git a/addon/components/paper-checkbox.hbs b/addon/components/paper-checkbox.hbs index 4348a6b98..09128b63d 100644 --- a/addon/components/paper-checkbox.hbs +++ b/addon/components/paper-checkbox.hbs @@ -1,4 +1,4 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-curly-component-invocation }}
{{#if (has-block)}}
- + {{yield}}
{{else}}
- - {{label}} + + {{@label}}
{{/if}} diff --git a/addon/components/paper-contact-chips/template.hbs b/addon/components/paper-contact-chips/template.hbs index 2f6a22a76..628966778 100644 --- a/addon/components/paper-contact-chips/template.hbs +++ b/addon/components/paper-contact-chips/template.hbs @@ -1,4 +1,3 @@ -{{! template-lint-disable no-implicit-this }} - {{get + {{get
- {{get item nameField}} + {{get item this.nameField}} {{/if}} diff --git a/addon/components/paper-dialog.hbs b/addon/components/paper-dialog.hbs index a57646227..288562901 100644 --- a/addon/components/paper-dialog.hbs +++ b/addon/components/paper-dialog.hbs @@ -1,8 +1,8 @@ -{{! template-lint-disable no-action no-implicit-this }} -{{#in-element destinationEl insertBefore=null}} - - - +{{! template-lint-disable no-action }} +{{#in-element this.destinationEl insertBefore=null}} + + + {{yield}} diff --git a/addon/components/paper-form.hbs b/addon/components/paper-form.hbs index a779b13a9..7211e91f2 100644 --- a/addon/components/paper-form.hbs +++ b/addon/components/paper-form.hbs @@ -1,21 +1,21 @@ -{{! template-lint-disable no-action no-implicit-this }} +{{! template-lint-disable no-action }} {{yield (hash - isValid=isValid - isInvalid=isInvalid - isTouched=isTouched - isInvalidAndTouched=isInvalidAndTouched - input=(component inputComponent + isValid=this.isValid + isInvalid=this.isInvalid + isTouched=this.isTouched + isInvalidAndTouched=this.isInvalidAndTouched + input=(component this.inputComponent parentComponent=this onValidityChange=(action "localOnValidityChange") ) - submit-button=(component submitButtonComponent + submit-button=(component this.submitButtonComponent type="submit" ) - select=(component selectComponent + select=(component this.selectComponent parentComponent=this onValidityChange=(action "localOnValidityChange") ) - autocomplete=(component autocompleteComponent + autocomplete=(component this.autocompleteComponent parentComponent=this onValidityChange=(action "localOnValidityChange") ) diff --git a/addon/components/paper-icon.hbs b/addon/components/paper-icon.hbs index b463a6d2d..132416f12 100644 --- a/addon/components/paper-icon.hbs +++ b/addon/components/paper-icon.hbs @@ -1,3 +1,2 @@ -{{! template-lint-disable no-implicit-this }} -{{-paper-underscore iconClass}} +{{-paper-underscore this.iconClass}} {{yield}} diff --git a/addon/components/paper-input.hbs b/addon/components/paper-input.hbs index 4ed134c4b..2041b50bd 100644 --- a/addon/components/paper-input.hbs +++ b/addon/components/paper-input.hbs @@ -1,97 +1,97 @@ -{{! template-lint-disable no-action no-curly-component-invocation no-down-event-binding no-implicit-this no-positive-tabindex }} -{{#if label}} - +{{! template-lint-disable no-action no-curly-component-invocation no-down-event-binding no-positive-tabindex }} +{{#if @label}} + {{/if}} -{{#if icon}} - {{component iconComponent icon}} +{{#if @icon}} + {{component this.iconComponent @icon}} {{/if}} -{{#if textarea}} +{{#if @textarea}} + name={{@passThru.name}} + rows={{@passThru.rows}} + cols={{@passThru.cols}} + maxlength={{@passThru.maxlength}} + tabindex={{@passThru.tabindex}} + title={{@title}} + required={{@passThru.required}} + selectionEnd={{@passThru.selectionEnd}} + selectionStart={{@passThru.selectionStart}} + selectionDirection={{@passThru.selectionDirection}} + wrap={{@passThru.wrap}} + readonly={{@passThru.readonly}} + form={{@passThru.form}} + spellcheck={{@passThru.spellcheck}}> {{else}} + accept={{@passThru.accept}} + autocomplete={{@passThru.autocomplete}} + autocorrect={{@passThru.autocorrect}} + autocapitalize={{@passThru.autocapitalize}} + autosave={{@passThru.autosave}} + form={{@passThru.form}} + formaction={{@passThru.formaction}} + formenctype={{@passThru.formenctype}} + formmethod={{@passThru.formmethod}} + formnovalidate={{@passThru.formnovalidate}} + formtarget={{@passThru.formtarget}} + height={{@passThru.height}} + inputmode={{@passThru.inputmode}} + min={{@passThru.min}} + maxlength={{@passThru.maxlength}} + max={{@passThru.max}} + multiple={{@passThru.multiple}} + name={{@passThru.name}} + pattern={{@passThru.pattern}} + readonly={{@passThru.readonly}} + required={{@passThru.required}} + selectionDirection={{@passThru.selectionDirection}} + size={{@passThru.size}} + spellcheck={{@passThru.spellcheck}} + step={{@passThru.step}} + tabindex={{@passThru.tabindex}} + title={{@title}} + width={{@passThru.width}}> {{/if}} -{{#unless hideAllMessages}} -
- {{#if maxlength}} -
{{renderCharCount}}
+{{#unless this.hideAllMessages}} +
+ {{#if @maxlength}} +
{{this.currentLength}}/{{@maxlength}}
{{/if}}
- {{#if isInvalidAndTouched}} -
- {{#each validationErrorMessages as |error index|}} -
+ {{#each this.validationErrorMessages as |error index|}} +
{{error.message}} @@ -102,14 +102,14 @@ {{/unless}} {{yield (hash - charCount=currentLength - isInvalid=isInvalid - isTouched=isTouched - isInvalidAndTouched=isInvalidAndTouched - hasValue=hasValue - validationErrorMessages=validationErrorMessages + charCount=this.currentLength + isInvalid=this.isInvalid + isTouched=this.isTouched + isInvalidAndTouched=this.isInvalidAndTouched + hasValue=this.hasValue + validationErrorMessages=this.validationErrorMessages )}} -{{#if iconRight}} - {{component iconComponent iconRight}} +{{#if @iconRight}} + {{component this.iconComponent @iconRight}} {{/if}} diff --git a/addon/components/paper-input.js b/addon/components/paper-input.js index c4c8d0587..1d2f97dcd 100644 --- a/addon/components/paper-input.js +++ b/addon/components/paper-input.js @@ -76,9 +76,8 @@ export default Component.extend( }, }), - renderCharCount: computed('value', function () { - let currentLength = this.value ? this.value.length : 0; - return `${currentLength}/${this.maxlength}`; + currentLength: computed('value', function () { + return this.value ? this.value.length : 0; }), hasLeftIcon: bool('icon'), diff --git a/addon/components/paper-item.hbs b/addon/components/paper-item.hbs index 7e797cdc4..6b9458716 100644 --- a/addon/components/paper-item.hbs +++ b/addon/components/paper-item.hbs @@ -1,4 +1,4 @@ -{{! template-lint-disable no-action no-implicit-this }} +{{! template-lint-disable no-action }} {{#with (hash checkbox=(component "paper-checkbox" parentComponent=this bubbles=false shouldRegister=true) button=(component "paper-button" parentComponent=this bubbles=false shouldRegister=true skipProxy=true) @@ -6,9 +6,9 @@ radio=(component "paper-radio-proxiable" parentComponent=this bubbles=false shouldRegister=true) ) as |controls|}} - {{#if hasPrimaryAction}} + {{#if this.hasPrimaryAction}}
- +
{{yield controls}}
diff --git a/addon/components/paper-optgroup.hbs b/addon/components/paper-optgroup.hbs index ed979e762..d55e314cb 100644 --- a/addon/components/paper-optgroup.hbs +++ b/addon/components/paper-optgroup.hbs @@ -1,3 +1,3 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} - +{{! template-lint-disable no-curly-component-invocation }} + {{yield}} \ No newline at end of file diff --git a/addon/components/paper-progress-circular.hbs b/addon/components/paper-progress-circular.hbs index ba47b774e..1ea117beb 100644 --- a/addon/components/paper-progress-circular.hbs +++ b/addon/components/paper-progress-circular.hbs @@ -1,4 +1,3 @@ -{{! template-lint-disable no-implicit-this }} - - + + \ No newline at end of file diff --git a/addon/components/paper-progress-linear.hbs b/addon/components/paper-progress-linear.hbs index 91bec9c31..29c14b4f4 100644 --- a/addon/components/paper-progress-linear.hbs +++ b/addon/components/paper-progress-linear.hbs @@ -1,6 +1,5 @@ -{{! template-lint-disable no-implicit-this }} -
+
-
-
+
+
diff --git a/addon/components/paper-radio-base.hbs b/addon/components/paper-radio-base.hbs index 33a6751bf..46afc79ee 100644 --- a/addon/components/paper-radio-base.hbs +++ b/addon/components/paper-radio-base.hbs @@ -1,4 +1,4 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-curly-component-invocation }}
@@ -15,7 +15,7 @@ {{else}}
- {{label}} + {{@label}}
{{/if}} diff --git a/addon/components/paper-radio-group-label.hbs b/addon/components/paper-radio-group-label.hbs index c5de95f60..7dea1d339 100644 --- a/addon/components/paper-radio-group-label.hbs +++ b/addon/components/paper-radio-group-label.hbs @@ -1,7 +1,7 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-curly-component-invocation }} {{#if (has-block)}} {{yield}} {{else}} - {{text}} + {{@text}} {{/if}} diff --git a/addon/components/paper-radio-group.hbs b/addon/components/paper-radio-group.hbs index 7f6aada97..0d700809c 100644 --- a/addon/components/paper-radio-group.hbs +++ b/addon/components/paper-radio-group.hbs @@ -1,12 +1,12 @@ -{{! template-lint-disable no-action no-implicit-this }} +{{! template-lint-disable no-action }} {{yield (hash - label=(component labelComponent - setAriaLabelledby=(action (mut ariaLabelledby)) + label=(component this.labelComponent + setAriaLabelledby=(action (mut this.ariaLabelledby)) ) - radio=(component radioComponent - toggle=toggle - disabled=disabled - groupValue=groupValue + radio=(component this.radioComponent + toggle=this.toggle + disabled=this.disabled + groupValue=@groupValue onChange=(action "onChange") parentComponent=this shouldRegister=true) diff --git a/addon/components/paper-sidenav-toggle.hbs b/addon/components/paper-sidenav-toggle.hbs index 788f02acb..ac354e36e 100644 --- a/addon/components/paper-sidenav-toggle.hbs +++ b/addon/components/paper-sidenav-toggle.hbs @@ -1,2 +1,2 @@ -{{! template-lint-disable no-action no-implicit-this }} -{{yield (action toggle)}} \ No newline at end of file +{{! template-lint-disable no-action }} +{{yield (action this.toggle)}} \ No newline at end of file diff --git a/addon/components/paper-sidenav.hbs b/addon/components/paper-sidenav.hbs index 9fafa7eff..0faf8335a 100644 --- a/addon/components/paper-sidenav.hbs +++ b/addon/components/paper-sidenav.hbs @@ -1,15 +1,15 @@ -{{! template-lint-disable no-action no-implicit-this }} -{{#unless closed}} +{{! template-lint-disable no-action }} +{{#unless this.closed}} {{/unless}} {{yield}} diff --git a/addon/components/paper-speed-dial-actions.hbs b/addon/components/paper-speed-dial-actions.hbs index 9df0043dc..9ce8dd959 100644 --- a/addon/components/paper-speed-dial-actions.hbs +++ b/addon/components/paper-speed-dial-actions.hbs @@ -1,4 +1,3 @@ -{{! template-lint-disable no-implicit-this }} {{yield (hash - action=(component "paper-speed-dial-actions-action" speedDial=speedDial) + action=(component "paper-speed-dial-actions-action" speedDial=@speedDial) )}} \ No newline at end of file diff --git a/addon/components/paper-switch.hbs b/addon/components/paper-switch.hbs index 52c4ebe32..461fc73e0 100644 --- a/addon/components/paper-switch.hbs +++ b/addon/components/paper-switch.hbs @@ -1,8 +1,8 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-curly-component-invocation }}
-
+
@@ -14,6 +14,6 @@
{{else}}
- {{label}} + {{@label}}
{{/if}} diff --git a/addon/components/paper-tab.hbs b/addon/components/paper-tab.hbs index 8021a2a57..f5007a8b9 100644 --- a/addon/components/paper-tab.hbs +++ b/addon/components/paper-tab.hbs @@ -1,7 +1,7 @@ -{{! template-lint-disable no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-curly-component-invocation }} {{#if (has-block)}} {{yield}} {{else}} - {{name}} + {{@name}} {{/if}} \ No newline at end of file diff --git a/addon/components/paper-tabs.hbs b/addon/components/paper-tabs.hbs index cf2d7c442..5df13b113 100644 --- a/addon/components/paper-tabs.hbs +++ b/addon/components/paper-tabs.hbs @@ -1,28 +1,28 @@ -{{! template-lint-disable no-action no-implicit-this }} - +{{! template-lint-disable no-action }} + - {{#if shouldPaginate}} - + {{#if this.shouldPaginate}} + {{paper-icon "keyboard-arrow-left"}} - + {{paper-icon "keyboard-arrow-left"}} {{/if}} - - + + {{yield (hash tab=(component "paper-tab" - noInk=noInk - selected=selected + noInk=this.noInk + selected=this.selected onSelect=(action "localOnChange") ) )}} - {{#if inkBar}} - + {{#if this.inkBar}} + {{/if}} diff --git a/addon/components/paper-toast.hbs b/addon/components/paper-toast.hbs index f6ab59c44..8c9bd9208 100644 --- a/addon/components/paper-toast.hbs +++ b/addon/components/paper-toast.hbs @@ -1,6 +1,5 @@ -{{! template-lint-disable no-implicit-this }} -{{#in-element destinationEl insertBefore=null}} - +{{#in-element this.destinationEl insertBefore=null}} + {{yield (hash text=(component "paper-toast-text") )}} diff --git a/addon/components/paper-toaster.hbs b/addon/components/paper-toaster.hbs index b32cce8e1..411208f71 100644 --- a/addon/components/paper-toaster.hbs +++ b/addon/components/paper-toaster.hbs @@ -1,14 +1,14 @@ -{{! template-lint-disable no-action no-curly-component-invocation no-implicit-this }} +{{! template-lint-disable no-action no-curly-component-invocation }} {{yield}} -{{#if activeToast.show}} - - {{#if activeToast.componentName}} - {{component activeToast.componentName}} +{{#if this.activeToast.show}} + + {{#if this.activeToast.componentName}} + {{component this.activeToast.componentName}} {{else}} - {{activeToast.text}} - {{#if activeToast.action}} - - {{activeToast.action.label}} + {{this.activeToast.text}} + {{#if this.activeToast.action}} + + {{this.activeToast.action.label}} {{/if}} {{/if}} diff --git a/addon/components/paper-tooltip.hbs b/addon/components/paper-tooltip.hbs index 624fdba56..c05c6cfb0 100644 --- a/addon/components/paper-tooltip.hbs +++ b/addon/components/paper-tooltip.hbs @@ -1,8 +1,7 @@ -{{! template-lint-disable no-implicit-this }} -{{#if renderTooltip}} - {{#in-element destinationEl insertBefore=null}} -
- +{{#if this.renderTooltip}} + {{#in-element this.destinationEl insertBefore=null}} +
+ {{yield}}
diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs index 2a2824e95..ee405d002 100644 --- a/tests/dummy/app/templates/application.hbs +++ b/tests/dummy/app/templates/application.hbs @@ -1,6 +1,6 @@ -{{! template-lint-disable no-action no-implicit-this }} +{{! template-lint-disable no-action }} - +