UNPKG

@empathyco/x-components

Version:
29 lines (20 loc) 1.83 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsState](./x-components.facetsstate.md) ## FacetsState interface Facets store state. **Signature:** ```typescript export interface FacetsState extends StatusState, QueryState ``` **Extends:** [StatusState](./x-components.statusstate.md)<!-- -->, [QueryState](./x-components.querystate.md) ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [config](./x-components.facetsstate.config.md) | | [FacetsConfig](./x-components.facetsconfig.md) | The current facets config [FacetsState.config](./x-components.facetsstate.config.md)<!-- -->. | | [facets](./x-components.facetsstate.facets.md) | | Record&lt;Facet\['id'\], Omit&lt;Facet, 'filters'&gt;&gt; | The facets without their filters. | | [filters](./x-components.facetsstate.filters.md) | | Record&lt;Filter\['id'\], Filter&gt; | Record of all available filters indexed by its id. | | [groups](./x-components.facetsstate.groups.md) | | Record&lt;Facet\['id'\], [GroupId](./x-components.groupid.md)<!-- -->&gt; | Record specifying the group each facet belongs to. | | [origin](./x-components.facetsstate.origin.md) | | [QueryOrigin](./x-components.queryorigin.md) \| null | The origin property of the request. | | [params](./x-components.facetsstate.params.md) | | Dictionary&lt;unknown&gt; | The extra params property of the state. | | [preselectedFilters](./x-components.facetsstate.preselectedfilters.md) | | RawFilter\[\] | Record of preselected filters indexed by its id. | | [stickyFilters](./x-components.facetsstate.stickyfilters.md) | | Record&lt;Filter\['id'\], Filter&gt; | Record of sticky filters indexed by its id. |