Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
282 stars 77 forks source link

Allow calcite-list to search without the search box #10258

Open fangqidev opened 1 week ago

fangqidev commented 1 week ago

Check existing issues

Description

We want to use a single search box for multiple calcite-list-based widgets at the same time in the ExB (For example, layerlist, tablelist, and basemaplayerlist). Right now, the calcite list is only able to filter items with a search box (by setting visibleItems.filter to true in the JS API).

Acceptance Criteria

An option to hide the search input box when filter is true and the items number exceeds minFilterItems. So we can use a single self-implemented search input box for several calcite lists at the same time. For example, we can apply the same search content for a layerlist, a tablelist, and a basemaplist.

Relevant Info

JSAPI issue: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/64561 ExB issue: https://devtopia.esri.com/Beijing-R-D-Center/ExperienceBuilder-Web-Extensions/issues/21467#issuecomment-4979724

Which Component

calcite list

Example Use Case

No response

Priority impact

impact - p2 - want for an upcoming milestone

Calcite package

Esri team

ArcGIS Experience Builder

thming commented 1 week ago

cc @geospatialem

geospatialem commented 1 week ago

Added design for expertise on the UI/UX and if Calcite should consider for list.

thming commented 1 week ago

Some more information: The lack of this feature has blocked the implementation of ENH-000167930, so we decided to withdraw this feature to the next release and wait for this capability to be added, otherwise, the behavior in the ExB Map Layers widget would look like a bug to users. It would be great if it could be supported in the next one. Thanks!