zaravand-ui 1.7.0 → 1.8.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.
|
@@ -56,6 +56,13 @@ export type TableSchemaColumn = {
|
|
|
56
56
|
type: TableFieldType;
|
|
57
57
|
options?: TableSelectOption[];
|
|
58
58
|
optionsSource?: TableSelectOptionsSource;
|
|
59
|
+
/**
|
|
60
|
+
* Fixed column width. Numbers are treated as pixels (e.g. `160` -> `160px`);
|
|
61
|
+
* strings are used as-is (e.g. `"20%"`, `"12rem"`). When omitted, the
|
|
62
|
+
* column keeps the default behavior of splitting remaining space evenly
|
|
63
|
+
* with the other un-sized columns.
|
|
64
|
+
*/
|
|
65
|
+
width?: number | string;
|
|
59
66
|
};
|
|
60
67
|
export type TableSchemaPagination = {
|
|
61
68
|
page: number;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
1
2
|
import type { DynamicTableRow, TablePaginationToken, TableRowId, TableRowIdResolver, TableSchemaColumn } from './Table.interface';
|
|
3
|
+
export declare function resolveColumnWidthStyle(width: TableSchemaColumn['width']): React.CSSProperties | undefined;
|
|
2
4
|
export declare function resolveLoadingRowsCount(pageSize: number | undefined, dataLength: number): number;
|
|
3
5
|
export declare function resolveLoadingCellSkeletonClassName(column: TableSchemaColumn, rowIndex: number): string;
|
|
4
6
|
export declare function buildPaginationTokens(currentPage: number, totalPages: number): TablePaginationToken[];
|