dbx-filter

Community

Reactive filter state across components.

Authordereekb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

dbx-filter provides a reactive filter state management system for Angular applications, enabling components to share and manage filter state using RxJS observables, with support for multiple filter keys, default values, presets, and connector directives.

Core Features & Use Cases

  • Centralized FilterMap that holds multiple filter keys and exposes observables per key.
  • Filter sources and connector directives to link components and synchronize filters.
  • Preset and partial preset support for quick filter configurations.
  • Type-safe filter definitions and easy observability via filterForKey and default filter observables.
  • Integrates with DBX Web UI components for displaying and interacting with filters.

Quick Start

Install and import the core utilities, provide FilterMap at the component level, define a filter interface and a key, then observe and update filters:

  • Create a filter interface, e.g. interface MyFilter { search?: string; status?: 'active'|'archived'; }
  • Use const filterMap = inject(FilterMap<MyFilter>); and this.filterMap.filterForKey('main') to observe filters.
  • Set defaults with this.filterMap.addDefaultFilterObs('main', of({ status: 'active' }));

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dbx-filter
Download link: https://github.com/dereekb/dbx-components/archive/main.zip#dbx-filter

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.