@bfrs/agentic-components 0.6.2 → 0.6.4

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.
@@ -691,7 +691,6 @@ Angular custom element:
691
691
  | `disabled` | `boolean` | `false` |
692
692
  | `error` | `boolean` | `false` |
693
693
  | `clearable` | `boolean` | `true` |
694
- | `maxVisibleValues` | `number` | `2` |
695
694
  | `commitMode` | `"change" \| "apply"` | `"change"` |
696
695
  | `applyLabel` | `string` | `"Apply"` |
697
696
  | `cancelLabel` | `string` | `"Cancel"` |
@@ -2123,7 +2122,8 @@ Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels
2123
2122
 
2124
2123
  - `SideNavSection`: `{ id?, title?, items, action? }` — `title` (uppercase) and `action` are hidden when collapsed.
2125
2124
  - `SideNavItem`: `{ id, label, icon?, active?, badge?, nested?, onSelect? }` — `badge` is hidden when collapsed; `nested` opens a hover flyout (expanded only).
2126
- - When `collapsed`, each row hides its `label` and surfaces it as a right-side `Tooltip` on hover, so items stay identifiable by icon alone.
2125
+ - When `collapsed`, each row hides its `label` and surfaces it as a right-side light (`variant="white"`) `Tooltip` on hover, so items stay identifiable by icon alone.
2126
+ - The active row carries `data-active` and is themed by `--bfrs-sidenav-row-active-bg` (default `#F6F9F6`) and `--bfrs-sidenav-row-active-hover-bg` (default `#E5EBEA`); set either on a wrapper to retint active rows without targeting internals.
2127
2127
 
2128
2128
  ---
2129
2129
 
@@ -141,6 +141,17 @@ export type TableStateProps = {
141
141
  colSpan?: number;
142
142
  className?: string;
143
143
  };
144
+ /**
145
+ * Empty ("no data") view props. Unlike the shared `TableStateProps` (used by the
146
+ * loading/error rows), both `title` and `description` are **required** — the
147
+ * no-data view is always a two-line message. DataTable defaults both, so table
148
+ * consumers never have to pass them; consumers rendering TableEmptyState directly
149
+ * must supply both lines.
150
+ */
151
+ export type TableEmptyStateProps = Omit<TableStateProps, "title" | "description"> & {
152
+ title: ReactNode;
153
+ description: ReactNode;
154
+ };
144
155
  export type TableSkeletonProps = {
145
156
  rows?: number;
146
157
  columns?: number;
@@ -202,6 +213,12 @@ export type TableColumnVisibilityProps = {
202
213
  label?: ReactNode;
203
214
  resetLabel?: ReactNode;
204
215
  onReset?: () => void;
216
+ /**
217
+ * Clears any active table filters. Called by the "Reset" footer action
218
+ * alongside `onReset`, so resetting the view reverts columns *and* filters.
219
+ * Supplying only this (without `onReset`) still renders the Reset button.
220
+ */
221
+ onClearFilters?: () => void;
205
222
  /** Label for the "Show all" footer button. Defaults to "Show all". */
206
223
  showAllLabel?: ReactNode;
207
224
  /** Override the "Show all" action. Defaults to making every column visible. */
@@ -1,2 +1,2 @@
1
1
  import { TableColumnVisibilityProps } from './DataTable.types';
2
- export declare function TableColumnVisibility({ columns, visibleColumnIds, onVisibleColumnIdsChange, label, resetLabel, onReset, showAllLabel, onShowAll, className }: TableColumnVisibilityProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TableColumnVisibility({ columns, visibleColumnIds, onVisibleColumnIdsChange, label, resetLabel, onReset, onClearFilters, showAllLabel, onShowAll, className }: TableColumnVisibilityProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { TableStateProps } from './DataTable.types';
2
- export declare function TableEmptyState({ title, description, action, colSpan, className }: TableStateProps): import("react/jsx-runtime").JSX.Element;
1
+ import { TableEmptyStateProps } from './DataTable.types';
2
+ export declare function TableEmptyState({ title, description, action, colSpan, className }: TableEmptyStateProps): import("react/jsx-runtime").JSX.Element;
@@ -28,6 +28,14 @@ export declare function hasCompleteRange(value: DateRangeValue): value is DateRa
28
28
  from: Date;
29
29
  to: Date;
30
30
  };
31
+ /**
32
+ * Normalizes an incoming value so `from`/`to` are always real `Date` objects (or
33
+ * `undefined`). Consumers commonly hydrate the value/defaultValue from
34
+ * JSON/API/storage where dates arrive as ISO strings or timestamps; without this
35
+ * the picker crashes on `getFullYear` and never recognizes the range as filled
36
+ * (so the trigger's filled border never lights up).
37
+ */
38
+ export declare function coerceDateRangeValue(value: DateRangeValue): DateRangeValue;
31
39
  export declare function getInitialCalendar(value: DateRangeValue, months: 1 | 2): {
32
40
  year: number;
33
41
  month: number;
@@ -24,7 +24,6 @@ export type MultiSelectProps = {
24
24
  error?: boolean;
25
25
  clearable?: boolean;
26
26
  size?: "sm" | "md";
27
- maxVisibleValues?: number;
28
27
  /** Option popover width relative to the trigger. Defaults to `"auto"` (the
29
28
  * popover grows to fit its content and can be wider than the trigger). */
30
29
  menuWidth?: SelectMenuWidth;
@@ -584,6 +584,8 @@ export declare class BfrsTableToolbarElement extends ReactCustomElement {
584
584
  declare abstract class BfrsTableStateElement extends ReactCustomElement {
585
585
  protected abstract stateComponent(): typeof TableEmptyState | typeof TableErrorState;
586
586
  protected abstract defaultTitle(): string;
587
+ /** Default second line. Empty for the error row; the empty state overrides it. */
588
+ protected defaultDescription(): string;
587
589
  static get observedAttributes(): string[];
588
590
  protected defaultDisplay(): string;
589
591
  protected renderElement(): unknown;
@@ -592,6 +594,7 @@ export declare class BfrsTableEmptyStateElement extends BfrsTableStateElement {
592
594
  static readonly tagName = "table-empty-state";
593
595
  protected stateComponent(): typeof TableEmptyState;
594
596
  protected defaultTitle(): string;
597
+ protected defaultDescription(): string;
595
598
  }
596
599
  export declare class BfrsTableErrorStateElement extends BfrsTableStateElement {
597
600
  static readonly tagName = "table-error-state";