Skip to content

Commit

Permalink
swap broccoli-filter for broccoli-persistent-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Subtletree committed Jan 12, 2022
1 parent 8943b81 commit de63053
Show file tree
Hide file tree
Showing 13 changed files with 2,281 additions and 37 deletions.
2 changes: 1 addition & 1 deletion addon/components/paper-autocomplete/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@scrollTo={{this.scrollTo}}
@onKeydown={{@onKeydown}}
as |option term|>
{{#if hasBlock}}
{{#if (has-block)}}
{{yield option term}}
{{else}}
<PaperAutocomplete::Highlight
Expand Down
4 changes: 2 additions & 2 deletions addon/components/paper-chips/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{on "click" (fn this.handleChipClick index)}}>

<div class="md-chip-content" tabindex="-1" aria-hidden="true">
{{#if hasBlock}}
{{#if (has-block)}}
{{yield item "chip"}}
{{else}}
<span>{{item}}</span>
Expand Down Expand Up @@ -62,7 +62,7 @@
@onOpen={{this.handleAutocompleteOpen}}
@onCreate={{this.handleAddItem}}
as |item|>
{{#if hasBlock}}
{{#if (has-block)}}
{{yield item "suggestion"}}
{{else}}
<span>{{item}}</span>
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-button.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if hasBlock}}
{{#if (has-block)}}
{{yield}}
{{else}}
{{label}}
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-card-media.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if hasBlock}}
{{#if (has-block)}}
<div class="md-media-{{size}}">
{{yield}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-card-title-media.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if hasBlock}}
{{#if (has-block)}}
<div class="md-media-{{size}}">
{{yield}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-checkbox.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@center={{true}}
@fitRipple={{true}}/>
</div>
{{#if hasBlock}}
{{#if (has-block)}}
<div class="md-label">
<span id={{labelId}}>
{{yield}}
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-radio-base.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@center={{true}}
@fitRipple={{true}}/>
</div>
{{#if hasBlock}}
{{#if (has-block)}}
<div class="md-label">
<span>
{{yield}}
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-radio-group-label.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if hasBlock}}
{{#if (has-block)}}
{{yield}}
{{else}}
{{text}}
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-switch.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
</div>
</div>
{{#if hasBlock}}
{{#if (has-block)}}
<div class="md-label">
{{yield}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/paper-tab.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if hasBlock}}
{{#if (has-block)}}
{{yield}}
{{else}}
{{name}}
Expand Down
2 changes: 1 addition & 1 deletion lib/angular-scss-filter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const Filter = require('broccoli-filter');
const Filter = require('broccoli-persistent-filter');

const LINE_RULE_REGEX = /.*{{.*}}.*/g;
const EXPRESSION_REGEX = /(?:'|"|'\\'){{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default|color|contrast)-?(\d\.?\d*)?(contrast)?\s*}}(?:'|"|\\'')/g;
Expand Down
Loading

0 comments on commit de63053

Please sign in to comment.