[{"name":"Criteria","comment":" This package help you create a hierarchy of \"filters\"\ncontained in a dropdown\n\nHave a look at a live [example] and its [code]\n\n[example]: https://dwyl.github.io/elm-criteria/example.html\n[code]: https://github.com/dwyl/elm-criteria/blob/master/examples/Example.elm\n\n\n# View\n\n@docs view\n\n\n# Config\n\n@docs Config, config\n\n\n# State\n\n@docs State, init\n\n\n# Helpers\n\n@docs selectedIdFilters\n\n","unions":[{"name":"Config","comment":" Configuration for displaying the hierarchy of filters\n","args":["msg","filter"],"cases":[]},{"name":"State","comment":" Define if the hierarchy of filters is open and the set of the selected filters\n\n    State False Set.empty\n\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"config","comment":" Create the configuation to pass in your view.\n\n  - `title` &mdash; A string displayed for the button text\n  - `toMsg` &mdash; The message which is responsible for updating the `Criteria.State` in your model\n  - `toId` &mdash; A function taking a filter and returning a unique string which represent the filter\n  - `tostring` &mdash; A function taking a filter and returning a string which will be used as label in the hierarchy\n  - `getSubFilters` &mdash; A fuction taking a filter and returning the a list of its sub-filters\n\n","type":"{ title : String.String, toMsg : Criteria.State -> msg, toId : filter -> String.String, toString : filter -> String.String, getSubFilters : filter -> List.List filter } -> Criteria.Config msg filter"},{"name":"init","comment":" Initialise the state, ie filters are hidden and no filter selected yet\n\n    import Criteria\n\n    Criteria.init\n\n","type":"Criteria.State"},{"name":"selectedIdFilters","comment":" Return the set of the selected filters' id\n","type":"Criteria.State -> Set.Set String.String"},{"name":"view","comment":" The view function which take the configuration the state and a list of filters\n","type":"Criteria.Config msg filter -> Criteria.State -> List.List filter -> Html.Html msg"}],"binops":[]}]