datacontroller
z-filterFilter
Filters and sorts a list of items from declarative controls, with animated show/hide, grouped filters, and empty-state handling.
Notes
- Sorting reorders the DOM; clearing the sort restores the original item order.
- A MutationObserver re-applies the state when items are added or removed, including in external targets.
- Items marked
data-filter-emptyand<template>children are never treated as filterable items.