@bfrs/agentic-components 0.6.3 → 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.
- package/BFRS_AGENTIC_COMPONENTS.md +0 -1
- package/dist/components/data-display/DataTable/DataTable.types.d.ts +17 -0
- package/dist/components/data-display/DataTable/TableColumnVisibility.d.ts +1 -1
- package/dist/components/data-display/DataTable/TableEmptyState.d.ts +2 -2
- package/dist/components/filters/DateRangePicker/DateRangePicker.utils.d.ts +8 -0
- package/dist/components/ui/forms/MultiSelect/MultiSelect.d.ts +0 -1
- package/dist/custom-elements.d.ts +3 -0
- package/dist/custom-elements.js +5953 -5933
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +4669 -4654
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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"` |
|
|
@@ -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 {
|
|
2
|
-
export declare function TableEmptyState({ title, description, action, colSpan, className }:
|
|
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";
|