Skip to content

[Filter] deprecate component and expose a filter utility to handle filtering with optional custom filter function #8877

@SkyeSeitz

Description

@SkyeSeitz

monday.com sync: #9562706041

Check existing issues

Description

Remove the UI of calcite-filter and expose as a utility with a new ability to pass a custom filter function. There is a need to support custom filtering for end-users (see #2208, #2209).

When #10044 and #10186 are closed, deprecate the calcite-filter component.

image

Acceptance Criteria

UI Considerations

  • Add a way to remove the padding (component token?).
  • Removing the padding from calcite-filter and add to components that use it (e.g. calcite-list)

Functionality

From a designer perspective, it makes the most sense to decouple calcite-filter and its visual UI since it is just an input with padding (which is not always needed). Ideally a developer could choose to use calcite-filter on an input whether or not it is directly adjacent to the filtered UI elements. When built into other Calcite components, I would expect the padding around the input to come from the parent component at the specifications needed, e.g. calcite-list, and not prescribe that padding everywhere calcite-filter is used.

Relevant Info

Blocking Issues: #10044, #10186

Original Filter Function Issue: #3454

Which Component

calcite-filter

Example Use Case

Ease of use for developer implementations and support for typeahead functionality.

Filter doesn't align with other input components in a form
image

Priority impact

p4 - not time sensitive

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

Calcite (design)

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - newNew issues that need assignment.Calcite (design)Issues logged by Calcite designers.blockedThis issue is blocked by another issue.calcite-componentsIssues specific to the @esri/calcite-components package.docsIssues relating to documentation updates only.estimate - 2Small fix or update, may require updates to tests.figma changesIssues that require additions or updates to the Figma UI Kit where no `design` label existsimpact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitivemonday.com syncMonday.com syncneeds milestonePlanning workflow - pending milestone assignment, has priority and/or estimate.p - mediumIssue is non core or affecting less that 60% of people using the libraryrefactorIssues tied to code that needs to be significantly reworked.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions