@danxbot/ui 15.32.4 → 15.32.6
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.js +1688 -1683
- package/dist/index.js.map +1 -1
- package/dist/types/components/Progress.d.ts +1 -1
- package/dist/types/components/Table.d.ts +26 -1
- package/package.json +1 -1
|
@@ -355,7 +355,7 @@ interface ProgressRingBase extends VariantProps<typeof ring> {
|
|
|
355
355
|
*/
|
|
356
356
|
showValue?: boolean;
|
|
357
357
|
/**
|
|
358
|
-
* DX-4062
|
|
358
|
+
* DX-4062 — opt-in done state: at 100% or more the centre shows a green check
|
|
359
359
|
* (the library's `check` icon) instead of "100%". Below 100% nothing changes.
|
|
360
360
|
* Off by default so no existing ring changes; it takes the place of the
|
|
361
361
|
* number, so it has no effect with `showValue={false}`.
|
|
@@ -93,12 +93,37 @@ export interface DataTableProps<TData> {
|
|
|
93
93
|
*/
|
|
94
94
|
getRowClassName?: (row: TData, index: number) => string | undefined;
|
|
95
95
|
onRowClick?: (row: TData) => void;
|
|
96
|
+
/**
|
|
97
|
+
* DX-4062 — opt-in column span. Called for every body cell with its row and
|
|
98
|
+
* column id; return how many columns the cell covers (including its own) and
|
|
99
|
+
* the table renders it with that `colSpan` and drops the cells it covers.
|
|
100
|
+
* Return `undefined` or `1` for an ordinary cell. A span past the last column
|
|
101
|
+
* is clamped to it.
|
|
102
|
+
*
|
|
103
|
+
* For a row that says one thing across several columns — "None yet" under
|
|
104
|
+
* both Person and Agent — which a per-column cell cannot express. Header
|
|
105
|
+
* cells are not affected. Off by default: no existing table changes.
|
|
106
|
+
*/
|
|
107
|
+
getCellSpan?: (row: TData, columnId: string) => number | undefined;
|
|
96
108
|
/** Rendered above the table; receives the table instance for counts/filters. */
|
|
97
109
|
toolbar?: (table: TanstackTable<TData>) => ReactNode;
|
|
98
110
|
className?: string;
|
|
99
111
|
getRowId?: (row: TData, index: number) => string;
|
|
100
112
|
}
|
|
101
|
-
|
|
113
|
+
/**
|
|
114
|
+
* DX-4062 — the cells a row actually renders once spans are applied: a cell
|
|
115
|
+
* with span N is kept (carrying N) and the N-1 cells after it are dropped.
|
|
116
|
+
* Exported for its test only; not part of the public surface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function visibleBodyCells<C extends {
|
|
119
|
+
column: {
|
|
120
|
+
id: string;
|
|
121
|
+
};
|
|
122
|
+
}>(cells: C[], spanOf: (columnId: string) => number | undefined): {
|
|
123
|
+
cell: C;
|
|
124
|
+
span: number;
|
|
125
|
+
}[];
|
|
126
|
+
export declare function DataTable<TData>({ data, columns, density, selectable, maxHeight, zebra, loading, refreshing, loadingRows, pageSize, pageSizeOptions, onPageSizeChange, emptyState, getRowClassName, onRowClick, getCellSpan, toolbar, className, getRowId, }: DataTableProps<TData>): import("react").JSX.Element;
|
|
102
127
|
/** `DataTable`'s own default empty state — a thin `EmptyState` wrapper (DX-3254:
|
|
103
128
|
* this used to be a second, independently hand-written copy of `EmptyState`'s
|
|
104
129
|
* markup) whose one real addition is a table-appropriate default title, since
|