@alfadocs/ui-kit 0.18.2 → 0.20.0
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/_chunks/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_chunks/{ai-prompt-input-B-w5Rx3V.js → ai-prompt-input-B5MdixzR.js} +2 -2
- package/dist/_chunks/{leo-sidebar-DIsiTju3.js → alia-sidebar-Bof6TlFx.js} +211 -211
- package/dist/_chunks/{chat-message-g3lxpXM_.js → chat-message-ChOnwqf_.js} +5 -5
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +1590 -0
- package/dist/_chunks/email-input-DvJ_kPKL.js +396 -0
- package/dist/_chunks/exceljs.min-DUJ-5CGx.js +23045 -0
- package/dist/_chunks/file-spreadsheet-zUkY8rJ2.js +25 -0
- package/dist/_chunks/{file-upload-nMh-1jDD.js → file-upload-DxAQprcU.js} +103 -122
- package/dist/_chunks/html2canvas.esm-dgT_1dIT.js +4872 -0
- package/dist/_chunks/{index-CFoBa86t.js → index-BcMWc8W2.js} +2 -2
- package/dist/_chunks/index.es-B8zMZ1wV.js +6694 -0
- package/dist/_chunks/jspdf.es.min-DaapWjR1.js +10007 -0
- package/dist/_chunks/jspdf.plugin.autotable-CSiDNyPn.js +1088 -0
- package/dist/_chunks/{map-view-DVP-Kp9l.js → map-view-CcwycFQX.js} +2 -2
- package/dist/_chunks/{purify.es-DpIUMBYC.js → purify.es-Cm3utOpm.js} +2 -2
- package/dist/_chunks/{rich-text-editor-C7TCIlQO.js → rich-text-editor-J-wAz9eN.js} +22 -22
- package/dist/_chunks/{suggestion-chip-C4Jz0LrM.js → suggestion-chip-C4kxWUIs.js} +2 -2
- package/dist/_chunks/{use-password-requirements-BOgFsoIe.js → use-password-requirements-C9vKBSVn.js} +92 -81
- package/dist/agent-catalog.json +31 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/app-frame/app-frame.d.ts +1 -1
- package/dist/components/chat-container/chat-container.d.ts +1 -1
- package/dist/components/chat-message/chat-message.d.ts +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/data-table/cell-renderers/editable-currency-cell-renderer.d.ts +23 -0
- package/dist/components/data-table/cell-renderers/editable-text-cell-renderer.d.ts +11 -0
- package/dist/components/data-table/cell-renderers/image-cell-renderer.d.ts +19 -0
- package/dist/components/data-table/cell-renderers/toggle-cell-renderer.d.ts +15 -3
- package/dist/components/data-table/data-table.d.ts +30 -3
- package/dist/components/data-table/filters/date-range-filter.d.ts +22 -0
- package/dist/components/data-table/index.d.ts +9 -2
- package/dist/components/data-table/index.js +18 -13
- package/dist/components/data-table/toolbar.d.ts +80 -1
- package/dist/components/email-input/email-input.agent.d.ts +13 -0
- package/dist/components/email-input/email-input.d.ts +28 -0
- package/dist/components/email-input/index.d.ts +5 -0
- package/dist/components/email-input/index.js +6 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/use-password-requirements.d.ts +9 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/i18n/config.js +59 -9
- package/dist/i18n/resources.d.ts +59 -9
- package/dist/index.js +464 -456
- package/dist/locales/de.json +7 -3
- package/dist/locales/en.json +26 -3
- package/dist/locales/it.json +26 -3
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts +3 -0
- package/dist/patterns/alia-assistant/alia-embedded.d.ts +13 -0
- package/dist/patterns/{leo-assistant/leo-popout.d.ts → alia-assistant/alia-popout.d.ts} +4 -4
- package/dist/patterns/{leo-assistant/leo-sidebar.d.ts → alia-assistant/alia-sidebar.d.ts} +10 -10
- package/dist/patterns/{leo-assistant/leo-types.d.ts → alia-assistant/alia-types.d.ts} +23 -23
- package/dist/patterns/alia-assistant/index.d.ts +20 -0
- package/dist/patterns/alia-assistant/index.js +8 -0
- package/dist/patterns/patient-shell/patient-shell.d.ts +1 -1
- package/dist/safe-html/index.js +6 -6
- package/dist/tokens.css +1 -1
- package/package.json +14 -5
- package/dist/_chunks/_commonjsHelpers-C6fGbg64.js +0 -7
- package/dist/_chunks/balance-cell-renderer-DJB6WDPe.js +0 -1015
- package/dist/patterns/leo-assistant/index.d.ts +0 -20
- package/dist/patterns/leo-assistant/index.js +0 -8
- package/dist/patterns/leo-assistant/leo-chat-surface.d.ts +0 -3
- package/dist/patterns/leo-assistant/leo-embedded.d.ts +0 -13
|
@@ -7,7 +7,7 @@ export interface ChatMessageAvatar {
|
|
|
7
7
|
src?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Optional custom avatar node. When provided, it REPLACES the built-in
|
|
10
|
-
* `<Avatar>` (initials / image) for this message. Used by the
|
|
10
|
+
* `<Avatar>` (initials / image) for this message. Used by the Alia
|
|
11
11
|
* pattern to render a Sparkles identity tile instead of an avatar, and
|
|
12
12
|
* by consumers that want to swap in a user-icon chip, brand glyph, etc.
|
|
13
13
|
* The caller is responsible for accessible labelling on the custom node
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CustomCellEditorProps } from 'ag-grid-react';
|
|
2
|
+
export interface EditableCurrencyCellEditorParams {
|
|
3
|
+
/** ISO 4217 currency code (e.g. `EUR`, `USD`). Defaults to `EUR`. */
|
|
4
|
+
currency?: string;
|
|
5
|
+
/** Decimal places allowed in the editor. Defaults to 2 (cents precision). */
|
|
6
|
+
decimals?: number;
|
|
7
|
+
/** Minimum allowed value — values below this are clamped on commit. */
|
|
8
|
+
min?: number;
|
|
9
|
+
/** Maximum allowed value — values above this are clamped on commit. */
|
|
10
|
+
max?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Inline numeric editor that visually matches `<TextInput size="sm">`. Use as
|
|
14
|
+
* `cellEditor` on a colDef with `editable: true`. The display formatting is
|
|
15
|
+
* still the renderer's job — once editing stops, the cell hands back to
|
|
16
|
+
* `CurrencyCellRenderer` (or whichever renderer the colDef declares).
|
|
17
|
+
*
|
|
18
|
+
* Stores a Number, not a string, so consumers receive `row.amount = 12.5`
|
|
19
|
+
* not `"12.5"`. Strips locale separators on each change so commas/dots in
|
|
20
|
+
* any language convert to a clean numeric value.
|
|
21
|
+
*/
|
|
22
|
+
export declare function EditableCurrencyCellRenderer<TData = unknown>(props: CustomCellEditorProps<TData, number> & EditableCurrencyCellEditorParams): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=editable-currency-cell-renderer.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CustomCellEditorProps } from 'ag-grid-react';
|
|
2
|
+
/**
|
|
3
|
+
* Inline text editor that visually matches `<TextInput size="sm">`. Use as
|
|
4
|
+
* `cellEditor` on a colDef with `editable: true`. The cell renderer (default
|
|
5
|
+
* or custom) takes over again once editing stops.
|
|
6
|
+
*
|
|
7
|
+
* AG Grid commits on Enter or Tab or blur; cancels on Escape. The consumer
|
|
8
|
+
* receives the committed value via `onCellValueChanged`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function EditableTextCellRenderer<TData = unknown>(props: CustomCellEditorProps<TData, string>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=editable-text-cell-renderer.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CustomCellRendererProps } from 'ag-grid-react';
|
|
2
|
+
export interface ImageCellRendererParams {
|
|
3
|
+
/** Field name on the row whose value holds the image URL. */
|
|
4
|
+
srcField: string;
|
|
5
|
+
/** Optional field name holding alt text. Falls back to '' (decorative). */
|
|
6
|
+
altField?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional field name holding a name string. When the src URL is missing or
|
|
9
|
+
* rejected, the cell falls back to `<Avatar name={fallback}>` so the cell
|
|
10
|
+
* still has a visual.
|
|
11
|
+
*/
|
|
12
|
+
fallbackField?: string;
|
|
13
|
+
/** Visual size of the image. Matches `<Avatar>` sizes (sm=32, md=40, lg=48). */
|
|
14
|
+
size?: 'sm' | 'md' | 'lg';
|
|
15
|
+
/** Corner radius preset. `circle` matches `<Avatar>`. */
|
|
16
|
+
shape?: 'square' | 'rounded' | 'circle';
|
|
17
|
+
}
|
|
18
|
+
export declare function ImageCellRenderer<TData = unknown>(props: CustomCellRendererProps<TData> & ImageCellRendererParams): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
//# sourceMappingURL=image-cell-renderer.d.ts.map
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import type { CustomCellRendererProps } from 'ag-grid-react';
|
|
3
3
|
export interface ToggleCellRendererParams<TData = unknown> {
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Fires with the row and the new target value. May return a `Promise` —
|
|
6
|
+
* if it rejects, the consumer is expected to revert the underlying value
|
|
7
|
+
* and flash the row with `data-table-row-error` (return that row class
|
|
8
|
+
* from `getRowClass`). Use `onError` below to be notified inside this
|
|
9
|
+
* renderer.
|
|
10
|
+
*/
|
|
11
|
+
onToggle: (data: TData, newValue: boolean) => void | Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Optional reject hook. Fires when the `onToggle` promise rejects, with
|
|
14
|
+
* the row and the error. The button auto-disables during the in-flight
|
|
15
|
+
* promise and re-enables on either settle.
|
|
16
|
+
*/
|
|
17
|
+
onError?: (data: TData, error: unknown) => void;
|
|
6
18
|
/** Icon shown when the current value is truthy. */
|
|
7
19
|
trueIcon?: ReactNode;
|
|
8
20
|
/** Icon shown when the current value is falsy. */
|
|
@@ -3,7 +3,7 @@ import 'ag-grid-community/styles/agGridQuartzFont.css';
|
|
|
3
3
|
import '../../tokens/ag-grid-theme.css';
|
|
4
4
|
import { type ComponentType, type ReactNode } from 'react';
|
|
5
5
|
import { type VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { type ColDef, type
|
|
6
|
+
import { type ColDef, type ColGroupDef, type FilterChangedEvent, type GridApi, type GridOptions, type RowClassParams, type SortChangedEvent } from 'ag-grid-community';
|
|
7
7
|
declare const dataTableVariants: (props?: ({
|
|
8
8
|
density?: "default" | "compact" | "expanded" | null | undefined;
|
|
9
9
|
bordered?: boolean | null | undefined;
|
|
@@ -31,12 +31,20 @@ export interface DataTableHandle<TData = unknown> {
|
|
|
31
31
|
getRawApi: () => GridApi<TData> | undefined;
|
|
32
32
|
}
|
|
33
33
|
export interface DataTableProps<TData = unknown> extends Omit<VariantProps<typeof dataTableVariants>, 'density'> {
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Column definitions — accepts a mix of leaf `ColDef`s and header
|
|
36
|
+
* `ColGroupDef`s (for two-row grouped headers via `children: [...]`).
|
|
37
|
+
*/
|
|
38
|
+
columnDefs: (ColDef<TData> | ColGroupDef<TData>)[];
|
|
35
39
|
rowData?: TData[];
|
|
36
40
|
rowSelection?: 'single' | 'multiple';
|
|
37
41
|
pagination?: boolean;
|
|
38
42
|
paginationPageSize?: number;
|
|
39
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Page-size dropdown options shown in the AG Grid pagination panel.
|
|
45
|
+
* Pass `false` to hide the dropdown entirely. Default: `[10, 25, 50, 100]`.
|
|
46
|
+
*/
|
|
47
|
+
paginationPageSizeSelector?: number[] | false;
|
|
40
48
|
gridId?: string;
|
|
41
49
|
onSelectionChanged?: (rows: TData[]) => void;
|
|
42
50
|
onSortChanged?: (event: SortChangedEvent<TData>) => void;
|
|
@@ -74,6 +82,25 @@ export declare const DataTable: (<TData = unknown>(props: DataTableProps<TData>
|
|
|
74
82
|
displayName: string;
|
|
75
83
|
};
|
|
76
84
|
BulkAction: import("react").ForwardRefExoticComponent<import("./toolbar").BulkActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
85
|
+
QuickSearch: {
|
|
86
|
+
({ placeholder, debounceMs }: import("./toolbar").QuickSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
Refresh: import("react").ForwardRefExoticComponent<import("./toolbar").RefreshButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
90
|
+
FilterChips: {
|
|
91
|
+
(): import("react/jsx-runtime").JSX.Element | null;
|
|
92
|
+
displayName: string;
|
|
93
|
+
};
|
|
94
|
+
FacetFilter: <TValue extends string | number | boolean = string>({ field, options, label, }: import("./toolbar").FacetFilterProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
ExportMenu: {
|
|
96
|
+
({ children, label }: import("./toolbar").ExportMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
displayName: string;
|
|
98
|
+
} & {
|
|
99
|
+
Item: {
|
|
100
|
+
({ format, label, onClick, fileName, }: import("./toolbar").ExportMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
displayName: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
77
104
|
};
|
|
78
105
|
};
|
|
79
106
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CustomFilterProps } from 'ag-grid-react';
|
|
2
|
+
/**
|
|
3
|
+
* Custom AG Grid filter component for date *ranges*. AG Grid Community's
|
|
4
|
+
* built-in `agDateColumnFilter` only handles single-date comparison —
|
|
5
|
+
* platform needs "between X and Y" for invoice / transaction lists.
|
|
6
|
+
*
|
|
7
|
+
* Wire on a colDef:
|
|
8
|
+
* ```tsx
|
|
9
|
+
* { field: 'date', filter: DateRangeFilter }
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* The filter model has shape `{ type: 'inRange', dateFrom, dateTo }` to
|
|
13
|
+
* stay close to AG Grid's own date-filter convention so server-side
|
|
14
|
+
* adapters can interpret it the same way.
|
|
15
|
+
*/
|
|
16
|
+
export interface DateRangeFilterModel {
|
|
17
|
+
type: 'inRange';
|
|
18
|
+
dateFrom: string | null;
|
|
19
|
+
dateTo: string | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function DateRangeFilter(props: CustomFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=date-range-filter.d.ts.map
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
export { DataTable } from './data-table';
|
|
2
2
|
export type { DataTableProps, DataTableHandle, DataTableSortEntry, } from './data-table';
|
|
3
3
|
export { dataTableAgent } from './data-table.agent';
|
|
4
|
-
export { Toolbar, ToolbarProvider } from './toolbar';
|
|
5
|
-
export type { ToolbarProviderProps, ToolbarRootProps, ExportCsvProps, ExportPdfProps, PrintProps, ColumnToggleProps, BulkActionProps, } from './toolbar';
|
|
4
|
+
export { Toolbar, ToolbarProvider, defaultExportPdf } from './toolbar';
|
|
5
|
+
export type { ToolbarProviderProps, ToolbarRootProps, ExportCsvProps, ExportPdfProps, PrintProps, ColumnToggleProps, BulkActionProps, QuickSearchProps, RefreshButtonProps, FacetFilterOption, FacetFilterProps, ExportFormat, ExportMenuProps, ExportMenuItemProps, } from './toolbar';
|
|
6
6
|
export { useTotalRow } from './hooks/use-total-row';
|
|
7
|
+
export { DateRangeFilter } from './filters/date-range-filter';
|
|
8
|
+
export type { DateRangeFilterModel } from './filters/date-range-filter';
|
|
7
9
|
export { StatusCellRenderer } from './cell-renderers/status-cell-renderer';
|
|
8
10
|
export type { BadgeVariant, StatusCellRendererParams, } from './cell-renderers/status-cell-renderer';
|
|
9
11
|
export { UserCellRenderer } from './cell-renderers/user-cell-renderer';
|
|
10
12
|
export type { UserCellValue } from './cell-renderers/user-cell-renderer';
|
|
13
|
+
export { ImageCellRenderer } from './cell-renderers/image-cell-renderer';
|
|
14
|
+
export type { ImageCellRendererParams } from './cell-renderers/image-cell-renderer';
|
|
11
15
|
export { TagListCellRenderer } from './cell-renderers/tag-list-cell-renderer';
|
|
12
16
|
export type { TagListCellRendererParams } from './cell-renderers/tag-list-cell-renderer';
|
|
13
17
|
export { DateCellRenderer } from './cell-renderers/date-cell-renderer';
|
|
@@ -24,4 +28,7 @@ export { ColorDotCellRenderer } from './cell-renderers/color-dot-cell-renderer';
|
|
|
24
28
|
export type { ColorDotCellRendererParams } from './cell-renderers/color-dot-cell-renderer';
|
|
25
29
|
export { BalanceCellRenderer } from './cell-renderers/balance-cell-renderer';
|
|
26
30
|
export type { BalanceLine, BalanceCellRendererParams, } from './cell-renderers/balance-cell-renderer';
|
|
31
|
+
export { EditableTextCellRenderer } from './cell-renderers/editable-text-cell-renderer';
|
|
32
|
+
export { EditableCurrencyCellRenderer } from './cell-renderers/editable-currency-cell-renderer';
|
|
33
|
+
export type { EditableCurrencyCellEditorParams } from './cell-renderers/editable-currency-cell-renderer';
|
|
27
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { A as r, B as l, C as s, a as
|
|
1
|
+
import { A as r, B as l, C as s, a as d, D as n, b as t, c as C, E as o, d as R, I as T, L as i, S as b, T as g, e as u, f as c, g as D, U as f, h as E, i as x, u as A } from "../../_chunks/editable-currency-cell-renderer-CqMs0Y8L.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ActionsCellRenderer,
|
|
4
4
|
l as BalanceCellRenderer,
|
|
5
5
|
s as ColorDotCellRenderer,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
C as
|
|
10
|
-
|
|
11
|
-
R as
|
|
12
|
-
T as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
g as
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
d as CurrencyCellRenderer,
|
|
7
|
+
n as DataTable,
|
|
8
|
+
t as DateCellRenderer,
|
|
9
|
+
C as DateRangeFilter,
|
|
10
|
+
o as EditableCurrencyCellRenderer,
|
|
11
|
+
R as EditableTextCellRenderer,
|
|
12
|
+
T as ImageCellRenderer,
|
|
13
|
+
i as LinkCellRenderer,
|
|
14
|
+
b as StatusCellRenderer,
|
|
15
|
+
g as TagListCellRenderer,
|
|
16
|
+
u as ToggleCellRenderer,
|
|
17
|
+
c as Toolbar,
|
|
18
|
+
D as ToolbarProvider,
|
|
19
|
+
f as UserCellRenderer,
|
|
20
|
+
E as dataTableAgent,
|
|
21
|
+
x as defaultExportPdf,
|
|
22
|
+
A as useTotalRow
|
|
18
23
|
};
|
|
19
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -19,9 +19,67 @@ export interface ExportCsvProps extends ToolbarIconButtonProps {
|
|
|
19
19
|
onExport?: (api: GridApi) => void;
|
|
20
20
|
}
|
|
21
21
|
export interface ExportPdfProps extends ToolbarIconButtonProps {
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Optional override for the default PDF generation. When omitted, clicking
|
|
24
|
+
* the button calls the built-in handler (`defaultExportPdf`) which
|
|
25
|
+
* dynamic-imports `jspdf` + `jspdf-autotable` and produces a paged PDF
|
|
26
|
+
* of the current sort/filter state. Supply your own to plug in a
|
|
27
|
+
* server-side PDF generator or a custom layout.
|
|
28
|
+
*/
|
|
29
|
+
onClick?: (api: GridApi | undefined) => void;
|
|
30
|
+
/** Filename for the generated PDF (default `data-table-export.pdf`). */
|
|
31
|
+
fileName?: string;
|
|
32
|
+
}
|
|
33
|
+
interface DefaultExportPdfOptions {
|
|
34
|
+
fileName: string;
|
|
23
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Default Export PDF handler. Exported for tests and for consumers who want
|
|
38
|
+
* to call it from a custom `onClick` (e.g. to add a logo or signature).
|
|
39
|
+
*/
|
|
40
|
+
export declare function defaultExportPdf(api: GridApi | undefined, options: DefaultExportPdfOptions): Promise<void>;
|
|
24
41
|
export type PrintProps = ToolbarIconButtonProps;
|
|
42
|
+
export interface QuickSearchProps {
|
|
43
|
+
/** Placeholder text. Falls back to `t('dataTable.quickSearch.placeholder')`. */
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
/** Debounce ms before pushing to AG Grid. Defaults to 150 ms. */
|
|
46
|
+
debounceMs?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface RefreshButtonProps extends Omit<IconButtonProps, 'icon' | 'aria-label' | 'tooltip' | 'onClick'> {
|
|
49
|
+
/** Called when the user clicks Refresh. */
|
|
50
|
+
onRefresh: () => void;
|
|
51
|
+
/** Accessible label. Falls back to `t('dataTable.refresh')`. */
|
|
52
|
+
label?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface FacetFilterOption<TValue = string> {
|
|
55
|
+
value: TValue | null;
|
|
56
|
+
label: string;
|
|
57
|
+
}
|
|
58
|
+
export interface FacetFilterProps<TValue = string> {
|
|
59
|
+
/** Column field to filter on. */
|
|
60
|
+
field: string;
|
|
61
|
+
/** Options shown as pills. `value: null` clears the filter. */
|
|
62
|
+
options: FacetFilterOption<TValue>[];
|
|
63
|
+
/** Accessible label for the pill group. */
|
|
64
|
+
label?: string;
|
|
65
|
+
}
|
|
66
|
+
export type ExportFormat = 'csv' | 'xlsx' | 'pdf' | 'custom';
|
|
67
|
+
export interface ExportMenuItemProps {
|
|
68
|
+
/** Built-in format or `custom` for consumer-supplied handler. */
|
|
69
|
+
format: ExportFormat;
|
|
70
|
+
/** Label override. Built-in formats default to `t('dataTable.export.{format}')`. */
|
|
71
|
+
label?: string;
|
|
72
|
+
/** Consumer handler — required for `format: 'custom'`. */
|
|
73
|
+
onClick?: (api: GridApi | undefined) => void;
|
|
74
|
+
/** File-name override (only used by built-in formats). */
|
|
75
|
+
fileName?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface ExportMenuProps {
|
|
78
|
+
/** Custom menu items. When omitted, renders the default CSV+Excel+PDF trio. */
|
|
79
|
+
children?: ReactNode;
|
|
80
|
+
/** Accessible label for the trigger. */
|
|
81
|
+
label?: string;
|
|
82
|
+
}
|
|
25
83
|
export interface ColumnToggleProps {
|
|
26
84
|
label?: string;
|
|
27
85
|
}
|
|
@@ -34,7 +92,9 @@ export interface BulkActionProps extends Omit<ButtonProps, 'onClick' | 'children
|
|
|
34
92
|
export declare const Toolbar: import("react").ForwardRefExoticComponent<ToolbarRootProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
35
93
|
FilterBar: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
94
|
Actions: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
95
|
+
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
37
96
|
ExportCsv: import("react").ForwardRefExoticComponent<ExportCsvProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
97
|
+
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
38
98
|
ExportPdf: import("react").ForwardRefExoticComponent<ExportPdfProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
39
99
|
Print: import("react").ForwardRefExoticComponent<Omit<IconButtonProps, "aria-label" | "onClick" | "tooltip" | "icon"> & {
|
|
40
100
|
/** Accessible label — becomes the tooltip text and `aria-label`. */
|
|
@@ -45,6 +105,25 @@ export declare const Toolbar: import("react").ForwardRefExoticComponent<ToolbarR
|
|
|
45
105
|
displayName: string;
|
|
46
106
|
};
|
|
47
107
|
BulkAction: import("react").ForwardRefExoticComponent<BulkActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
108
|
+
QuickSearch: {
|
|
109
|
+
({ placeholder, debounceMs }: QuickSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
displayName: string;
|
|
111
|
+
};
|
|
112
|
+
Refresh: import("react").ForwardRefExoticComponent<RefreshButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
113
|
+
FilterChips: {
|
|
114
|
+
(): import("react/jsx-runtime").JSX.Element | null;
|
|
115
|
+
displayName: string;
|
|
116
|
+
};
|
|
117
|
+
FacetFilter: <TValue extends string | number | boolean = string>({ field, options, label, }: FacetFilterProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
ExportMenu: {
|
|
119
|
+
({ children, label }: ExportMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
displayName: string;
|
|
121
|
+
} & {
|
|
122
|
+
Item: {
|
|
123
|
+
({ format, label, onClick, fileName, }: ExportMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
48
127
|
};
|
|
49
128
|
export {};
|
|
50
129
|
//# sourceMappingURL=toolbar.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AgentAdapter } from '../../agent/types';
|
|
2
|
+
/**
|
|
3
|
+
* Curated agent handle for EmailInput. State stays scoped to the visible
|
|
4
|
+
* value + the kit-derived validity flag; never PHI (per PRS §Security).
|
|
5
|
+
*/
|
|
6
|
+
export interface EmailInputHandle {
|
|
7
|
+
/** Returns the current input value. */
|
|
8
|
+
getValue: () => string;
|
|
9
|
+
/** Returns whether the current value parses as a valid email (non-empty + RFC). */
|
|
10
|
+
isValid: () => boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const emailInputAgent: AgentAdapter<EmailInputHandle>;
|
|
13
|
+
//# sourceMappingURL=email-input.agent.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TextInputProps } from '../text-input';
|
|
3
|
+
export interface EmailInputProps extends Omit<TextInputProps, 'type' | 'autoComplete' | 'inputMode' | 'tone'> {
|
|
4
|
+
/**
|
|
5
|
+
* Override the "Invalid email" error message. Pass `null` to suppress
|
|
6
|
+
* the built-in message entirely (e.g. when wrapping the input in a
|
|
7
|
+
* `FormField` and surfacing the error through its `error` prop). When
|
|
8
|
+
* omitted, the translated default `t('inputs.email.invalid')` is used.
|
|
9
|
+
*/
|
|
10
|
+
errorMessage?: ReactNode | null;
|
|
11
|
+
/**
|
|
12
|
+
* Called whenever the validation state flips. `valid` is `true` when
|
|
13
|
+
* the value is non-empty AND parses as a valid email, `false`
|
|
14
|
+
* otherwise. The callback fires on every blur AND on every change
|
|
15
|
+
* after the first blur — never before the user has had a chance to
|
|
16
|
+
* type something.
|
|
17
|
+
*/
|
|
18
|
+
onValidityChange?: (valid: boolean) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Skip the built-in validation entirely. The input behaves like a
|
|
21
|
+
* plain `<TextInput type="email">` — useful when the consumer is
|
|
22
|
+
* wiring `FormField`'s `invalid` prop themselves, or running their
|
|
23
|
+
* own schema validation (zod, react-hook-form). Default: `false`.
|
|
24
|
+
*/
|
|
25
|
+
disableBuiltInValidation?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const EmailInput: import("react").ForwardRefExoticComponent<EmailInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
28
|
+
//# sourceMappingURL=email-input.d.ts.map
|
|
@@ -18,6 +18,7 @@ export * from './copy-field';
|
|
|
18
18
|
export * from './date-picker';
|
|
19
19
|
export * from './date-range-picker';
|
|
20
20
|
export * from './date-time-picker';
|
|
21
|
+
export * from './email-input';
|
|
21
22
|
export * from './file-upload';
|
|
22
23
|
export * from './form-field';
|
|
23
24
|
export * from './multi-select';
|
|
@@ -124,6 +125,6 @@ export * from './tooth-scheme';
|
|
|
124
125
|
export * from './transaction-chip';
|
|
125
126
|
export * from './whatsapp-button';
|
|
126
127
|
export * from './workflow';
|
|
127
|
-
export * from '../patterns/
|
|
128
|
+
export * from '../patterns/alia-assistant';
|
|
128
129
|
export * from '../patterns/patient-shell';
|
|
129
130
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,6 +15,13 @@ export interface UsePasswordRequirementsOptions {
|
|
|
15
15
|
digit?: boolean;
|
|
16
16
|
/** Adds a "symbol" requirement when true. Matches anything outside `[A-Za-z0-9\s]`. */
|
|
17
17
|
symbol?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Adds a "no spaces" requirement when true. Fails if the value
|
|
20
|
+
* contains any whitespace character (space, tab, non-breaking space,
|
|
21
|
+
* narrow no-break space, etc.). Useful to catch paste-time stray
|
|
22
|
+
* whitespace from credential managers.
|
|
23
|
+
*/
|
|
24
|
+
noSpaces?: boolean;
|
|
18
25
|
}
|
|
19
26
|
/**
|
|
20
27
|
* Builds the common set of password requirements with i18n-resolved
|
|
@@ -23,7 +30,7 @@ export interface UsePasswordRequirementsOptions {
|
|
|
23
30
|
* generic enough for any consumer.
|
|
24
31
|
*
|
|
25
32
|
* Each opt-in flag adds one row to the returned array, in a stable
|
|
26
|
-
* visual order (length → uppercase → lowercase → digit → symbol).
|
|
33
|
+
* visual order (length → uppercase → lowercase → digit → symbol → noSpaces).
|
|
27
34
|
* Predicates are pure and run on every keystroke.
|
|
28
35
|
*
|
|
29
36
|
* @example
|
|
@@ -32,6 +39,7 @@ export interface UsePasswordRequirementsOptions {
|
|
|
32
39
|
* uppercase: true,
|
|
33
40
|
* lowercase: true,
|
|
34
41
|
* digit: true,
|
|
42
|
+
* noSpaces: true,
|
|
35
43
|
* });
|
|
36
44
|
* <PasswordInput requirements={requirements} deriveStrength />
|
|
37
45
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-
|
|
1
|
+
import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-J-wAz9eN.js";
|
|
2
2
|
export {
|
|
3
3
|
t as RichTextEditor,
|
|
4
4
|
o as editorSurfaceVariants,
|