@memobit/libs 1.0.44 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -592,6 +592,19 @@ export declare interface ControlPanelFilter {
592
592
  * px; string is passed through (`'40vh'`, `'320px'`, etc.). Omit to let
593
593
  * the list expand freely. Honored by the `chips` filter today. */
594
594
  maxHeight?: string | number;
595
+ /** Overrides the panel-level `collapsibleFilters` setting for this filter —
596
+ * e.g. to keep one cheap filter always visible in an otherwise collapsed
597
+ * panel. `checkbox` filters are never collapsible (they render as a single
598
+ * chip with no heading to click). */
599
+ collapsible?: boolean;
600
+ /** Starts a collapsible section open. Sections collapse by default so a long
601
+ * filter list stays scannable; the collapsed header still previews what is
602
+ * applied. Ignored when the filter isn't collapsible. */
603
+ defaultExpanded?: boolean;
604
+ /** Replaces the preview text shown in a collapsed section's header. Derived
605
+ * from the filter's value when omitted (selected option labels, the date
606
+ * range, the typed text, ...). Pass `''` to hide the preview. */
607
+ summary?: string;
595
608
  }
596
609
 
597
610
  export declare interface ControlPanelFilterChangeEvent {
@@ -728,6 +741,13 @@ export declare interface ControlPanelProps {
728
741
  actions?: ControlPanelAction[];
729
742
  filters?: ControlPanelFilter[];
730
743
  filtersCount?: number;
744
+ /** Renders each filter as a collapsible section so a panel carrying many
745
+ * filters stays compact. `true` collapses every filter; a number turns
746
+ * collapsing on only once the panel renders at least that many filters
747
+ * (`collapsibleFilters={3}` leaves a one- or two-filter page untouched).
748
+ * Sections toggle independently — any number can be open at once — and a
749
+ * collapsed header previews the applied value. */
750
+ collapsibleFilters?: boolean | number;
731
751
  onFilterChange?: (event: ControlPanelFilterChangeEvent) => void;
732
752
  onClearFilters?: (event: ControlPanelClearFiltersEvent) => void;
733
753
  options?: ControlPanelOption[] | ControlPanelOptionGroup[];
@@ -743,7 +763,10 @@ declare interface ControlPanelProviderProps {
743
763
  children: default_2.ReactNode;
744
764
  }
745
765
 
746
- export declare type ControlPanelViewMode = 'table' | 'cards' | 'gallery';
766
+ /** Built-in listing modes. 'map' has no default toggle button — a page that
767
+ * offers it supplies its own `options` entry, since only pages whose rows
768
+ * carry coordinates can render one. */
769
+ export declare type ControlPanelViewMode = 'table' | 'cards' | 'gallery' | 'map';
747
770
 
748
771
  export declare interface ControlPanelViewToggleConfig {
749
772
  value: string;