@camstack/ui-library 1.2.114 → 1.2.116

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.
@@ -1,6 +1,6 @@
1
1
  export interface BatteryStatusLike {
2
2
  readonly percentage: number;
3
- readonly charging: 'dc' | 'solar' | 'none';
3
+ readonly charging: 'dc' | 'solar' | 'none' | 'unknown';
4
4
  readonly sleeping: boolean;
5
5
  /** True for a binary LOW_BAT source with no real % — render "Normal"/"Low"
6
6
  * instead of a misleading exact percentage. */
@@ -52,11 +52,13 @@ export interface DeviceFacets {
52
52
  }
53
53
  /** The distinct locations and types on offer — the chips above the search. */
54
54
  export declare function deviceFacets(devices: readonly DeviceSelectCandidate[]): DeviceFacets;
55
+ /** Each facet is a SET of chosen values: any of them matches, none = all. */
55
56
  export interface FacetSelection {
56
- readonly location?: string;
57
- readonly type?: string;
57
+ readonly locations: readonly string[];
58
+ readonly types: readonly string[];
58
59
  }
59
- /** Every chosen facet must match; an unchosen one matches everything. */
60
+ export declare const NO_FACETS: FacetSelection;
61
+ /** Every facet with a choice must match one of its values. */
60
62
  export declare function matchesFacets(device: DeviceSelectCandidate, facets: FacetSelection): boolean;
61
63
  export interface SuggestedPartition<T extends DeviceOption> {
62
64
  readonly suggested: readonly T[];