forked from ember-bootstrap/ember-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run tagless-ember-components-codemod
This is the result of running the tagless-ember-components-codemod against Ember Bootstrap. The following open pull request have been merged in before: - Support native classes: ember-codemods/tagless-ember-components-codemod#44 - Support component with event handlers: ember-codemods/tagless-ember-components-codemod#52 - Support aria role for native classes: ember-codemods/tagless-ember-components-codemod#56 Steps: mv addon/templates/components/common addon/templates/components/base npx jelhan/tagless-ember-components-codemod#merged-native-class-support mv addon/templates/components/base addon/templates/components/common
- Loading branch information
Showing
16 changed files
with
68 additions
and
54 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
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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{{yield | ||
(hash | ||
item=(component this.itemComponent selected=this.isSelected onClick=this.doChange) | ||
change=this.doChange | ||
) | ||
}} | ||
<div ...attributes> | ||
{{yield | ||
(hash | ||
item=(component this.itemComponent selected=this.isSelected onClick=this.doChange) | ||
change=this.doChange | ||
) | ||
}} | ||
</div> |
4 changes: 3 additions & 1 deletion
4
addon/templates/components/common/bs-form/element/help-text.hbs
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{@text}} | ||
<div ...attributes> | ||
{{@text}} | ||
</div> |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{{yield}} | ||
{{#if this.hasFeedback}} | ||
<span class="form-control-feedback {{this.iconName}}" aria-hidden="true"></span> | ||
{{/if}} | ||
<div ...attributes> | ||
{{yield}} | ||
{{#if this.hasFeedback}} | ||
<span class="form-control-feedback {{this.iconName}}" aria-hidden="true"></span> | ||
{{/if}} | ||
</div> |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{yield}} | ||
<div class="modal-body" ...attributes> | ||
{{yield}} | ||
</div> |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
{{#if hasBlock}} | ||
{{yield}} | ||
{{else}} | ||
{{#if this.hasSubmitButton}} | ||
{{#component this.buttonComponent onClick=@onClose}}{{this.closeTitle}}{{/component}} | ||
{{#component this.buttonComponent type=this.submitButtonType onClick=@onSubmit _disabled=this.submitDisabled}}{{@submitTitle}}{{/component}} | ||
<form class="modal-footer" ...attributes {{on "submit" this.handleSubmit}}> | ||
{{#if hasBlock}} | ||
{{yield}} | ||
{{else}} | ||
{{#component this.buttonComponent type="primary" onClick=@onClose}}{{this.closeTitle}}{{/component}} | ||
{{#if this.hasSubmitButton}} | ||
{{#component this.buttonComponent onClick=@onClose}}{{this.closeTitle}}{{/component}} | ||
{{#component this.buttonComponent type=this.submitButtonType onClick=@onSubmit _disabled=this.submitDisabled}}{{@submitTitle}}{{/component}} | ||
{{else}} | ||
{{#component this.buttonComponent type="primary" onClick=@onClose}}{{this.closeTitle}}{{/component}} | ||
{{/if}} | ||
{{/if}} | ||
{{/if}} | ||
|
||
</form> |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
<span aria-hidden="true">×</span> | ||
<button type={{this.type}} aria-label={{this.aria-label}} class="close" ...attributes {{on "click" this.handleClick}}> | ||
<span aria-hidden="true">×</span> | ||
</button> |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
{{yield}} | ||
<h4 class="modal-title" ...attributes> | ||
{{yield}} | ||
|
||
</h4> |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{{yield | ||
(hash | ||
bar=(component this.progressBarComponent) | ||
) | ||
}} | ||
<div class="progress" ...attributes> | ||
{{yield | ||
(hash | ||
bar=(component this.progressBarComponent) | ||
) | ||
}} | ||
|
||
</div> |