open-consul/ui/packages/consul-partitions/app/components/consul/partition/search-bar
Michael Klein f58fca2048
ui: upgrade ember composable helper (#13394)
Upgrade ember-composable-helpers to version 5.x. This version contains the pick-helper which makes composition in the template layer easier with Octane.

{{!-- this is usually hard to do with Octane --}}
<input {{on "input" (pick "target.value" this.updateText)}} .../>
Version 5.x also fixes a regression with sort-by that according to @johncowen was the reason why the version was pinned to 4.0.0 at the moment.

Version 5 of ember-composable-helpers removes the contains-helper in favor of includes which I changed all occurences for.
2022-06-08 16:07:51 +01:00
..
README.mdx ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
index.hbs ui: upgrade ember composable helper (#13394) 2022-06-08 16:07:51 +01:00

README.mdx

# Consul::Partition::SearchBar

Searchbar tailored for searching Partitions. Follows our more generic
'*::SearchBar' component interface.

```hbs preview-template
  <Consul::Partition::SearchBar
    @search={{this.search}}
    @onsearch={{fn (mut this.search) value="target.value"}}

    @sort={{hash 
      value='Name:asc'
      change=(noop)
    }}

    @filter={{hash
      searchproperty=(hash
        value=(array)
        change=(noop)
        default=(array)
      )
    }}
  />
```

## See

- [Template Source Code](./index.hbs)

---