-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of decorated select altogether
- Loading branch information
1 parent
e903da1
commit 5ffc2bf
Showing
14 changed files
with
71 additions
and
243 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 was deleted.
Oops, something went wrong.
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
134 changes: 0 additions & 134 deletions
134
.../autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,31 +1,9 @@ | ||
<%= render(FormControl.new(input: @input, data: @wrapper_data_attributes)) do %> | ||
<%= content_tag(:div, **@field_wrap_arguments) do %> | ||
<% if decorated_select? %> | ||
<%= render partial: '/augmented/autocomplete_select_decoration', | ||
formats: %i[html], | ||
locals: { | ||
inputs: @autocomplete_options.merge( | ||
classes: "ng-select--primerized #{@input.invalid? ? '-error' : ''}", | ||
inputName: @autocomplete_options.fetch(:inputName) { builder.field_name(@input.name) }, | ||
inputId: @autocomplete_options.fetch(:inputId) { builder.field_id(@input.name) }, | ||
inputValue: @autocomplete_options.fetch(:inputValue) { builder.object.send(@input.name) }, | ||
key: @autocomplete_options.fetch(:resource, ''), | ||
defaultData: @autocomplete_options.fetch(:defaultData) { true } | ||
), | ||
select_options: select_options.map(&:to_h), | ||
} %> | ||
<% else %> | ||
<%= content_tag(:div, class: ("projects-autocomplete-with-search-icon" if @autocomplete_options.delete(:with_search_icon))) do %> | ||
<%= angular_component_tag @autocomplete_options.fetch(:component), | ||
data: @autocomplete_options.delete(:data) { {} }, | ||
inputs: @autocomplete_options.merge( | ||
classes: "ng-select--primerized #{@input.invalid? ? '-error' : ''}", | ||
inputName: @autocomplete_options.fetch(:inputName) { builder.field_name(@input.name) }, | ||
inputValue: @autocomplete_options.fetch(:inputValue) { builder.object.send(@input.name) }, | ||
defaultData: @autocomplete_options.fetch(:defaultData) { true } | ||
) | ||
%> | ||
<% end %> | ||
<%= content_tag(:div, class: ("projects-autocomplete-with-search-icon" if @with_search_icon)) do %> | ||
<%= angular_component_tag(@autocomplete_component, | ||
data: @autocomplete_data, | ||
inputs: @autocomplete_inputs) %> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
Oops, something went wrong.