# ember-hell-filters

> This is filters-hell solving ember component

Latest version **0.1.22** (published 2017-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-hell-filters
pnpm add ember-hell-filters
yarn add ember-hell-filters
bun add ember-hell-filters
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.22 |
| Published | 2017-01-11 |
| First published | 2016-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Alex Kanunnikov |
| Maintainers | lifeart |
| Keywords | ember-addon, filters, ember-filters, filter-component, filter, filters, forms, form-builder, interactive-forms |

## Links

- npm: https://www.npmjs.com/package/ember-hell-filters
- Repository: https://github.com/lifeart/ember-hell-filters
- Homepage: https://github.com/lifeart/ember-hell-filters#readme
- Issues: https://github.com/lifeart/ember-hell-filters/issues
- npm.io page: https://npm.io/package/ember-hell-filters

## Dependencies (3)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.6
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^1.0.3
- [ember-cli-bootstrap-datepicker](https://npm.io/package/ember-cli-bootstrap-datepicker.md) 0.5.5

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.22 (latest) — 2017-01-11
- 0.1.21 — 2017-01-09
- 0.1.20 — 2016-12-28
- 0.1.19 — 2016-12-14
- 0.1.18 — 2016-12-09
- 0.1.16 — 2016-10-13
- 0.1.15 — 2016-09-15
- 0.1.14 — 2016-09-14

## README

# Ember-hell-filters

This README outlines the details of collaborating on this Ember addon.
## DEMO

 [https://lifeart.github.io/ember-hell-filters/demo/](https://lifeart.github.io/ember-hell-filters/demo/)

## Example

In template:
``` 
 {{#filters-group filters=filters values=(hash one=1 two=2) filtersDidChange=(action 'reloadPlots') }}
```
In component:
``` 
Component.extend({

    filters: Ember.computed(function() {
        let store = this.get('store');
        return [{
                componentName: 'hell-filters/select-2',
                name: 'one',
                config: {
                    idKey: 'id',
                    multiple: true,
                    textKey: 'full_name',
                    options: Ember.computed(function() {
                        return store.peekAll('user');
                    }),
                }
            }, {
                componentName: 'hell-filters/select-2',
                name: 'two',
                dependsOn: {
                    name: 'one',
                    value: '@any'
                },
                config: {
                    idKey: 'id',
                    multiple: true,
                    textKey: 'full_name',
                    options: Ember.computed(function() {
                        return store.peekAll('user').filterBy('role', 3);
                    }),
                }
            },

        ];
    }),
    actions: {
        reloadPlots: function(filtersState) {
            console.log(filtersState);
        }
    }
});
```



## Installation

* `git clone <repository-url>` this repository
* `cd ember-hell-filters`
* `npm install`
* `bower install`

## Running

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).

---
_Source: https://npm.io/package/ember-hell-filters · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
