@tetrascience-npm/tetrascience-react-ui 0.5.0-beta.41.1 → 0.5.0-beta.43.1
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/components/ui/data-table/data-table-filter.cjs +2 -0
- package/dist/components/ui/data-table/data-table-filter.cjs.map +1 -0
- package/dist/components/ui/data-table/data-table-filter.js +178 -0
- package/dist/components/ui/data-table/data-table-filter.js.map +1 -0
- package/dist/components/ui/data-table/data-table.cjs +1 -1
- package/dist/components/ui/data-table/data-table.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table.js +320 -215
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/table.cjs +1 -1
- package/dist/components/ui/table.cjs.map +1 -1
- package/dist/components/ui/table.js +26 -21
- package/dist/components/ui/table.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +51 -4
- package/dist/index.js +425 -423
- package/dist/index.js.map +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/providers/athena.d.ts +7 -0
- package/dist/providers/databricks.d.ts +7 -0
- package/dist/providers/snowflake.d.ts +7 -0
- package/dist/server.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1096,7 +1096,7 @@ export declare interface DataAppShellProps {
|
|
|
1096
1096
|
className?: string;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
|
-
export declare function DataTable<TData, TValue>({ columns, data, toolbar, enableSorting, enableColumnVisibility, children, columnOrder: controlledColumnOrder, onColumnOrderChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange, columnLabels: controlledColumnLabels, onColumnLabelChange, enablePagination, defaultPageSize, pagination: controlledPagination, onPaginationChange, enableColumnReorder, density, className, variant, containerClassName, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
1099
|
+
export declare function DataTable<TData, TValue>({ columns, data, toolbar, enableSorting, enableColumnVisibility, children, columnOrder: controlledColumnOrder, onColumnOrderChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange, columnLabels: controlledColumnLabels, onColumnLabelChange, enablePagination, defaultPageSize, pagination: controlledPagination, onPaginationChange, enableColumnReorder, enableFiltering, filters: controlledFilters, onFiltersChange, filterConfig, manualFiltering, density, className, variant, containerClassName, truncate, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
1100
1100
|
|
|
1101
1101
|
export declare function DataTableColumnToggle({ className }: DataTableColumnToggleProps): JSX.Element | null;
|
|
1102
1102
|
|
|
@@ -1104,6 +1104,16 @@ export declare interface DataTableColumnToggleProps {
|
|
|
1104
1104
|
className?: string;
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
+
export declare function DataTableFilter({ className }: DataTableFilterProps): JSX.Element | null;
|
|
1108
|
+
|
|
1109
|
+
export declare namespace DataTableFilter {
|
|
1110
|
+
var displayName: string;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
export declare interface DataTableFilterProps {
|
|
1114
|
+
className?: string;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1107
1117
|
export declare function DataTablePagination({ pageSizeOptions, className, }: DataTablePaginationProps): JSX.Element | null;
|
|
1108
1118
|
|
|
1109
1119
|
export declare interface DataTablePaginationProps {
|
|
@@ -1129,6 +1139,12 @@ export declare interface DataTableProps<TData, TValue> {
|
|
|
1129
1139
|
pagination?: PaginationState;
|
|
1130
1140
|
onPaginationChange?: (pagination: PaginationState) => void;
|
|
1131
1141
|
enableColumnReorder?: boolean;
|
|
1142
|
+
enableFiltering?: boolean;
|
|
1143
|
+
filters?: FilterCondition[];
|
|
1144
|
+
onFiltersChange?: (filters: FilterCondition[]) => void;
|
|
1145
|
+
filterConfig?: FilterColumnConfig[];
|
|
1146
|
+
/** When true, filtering is handled externally — onFiltersChange fires but rows are not filtered client-side. */
|
|
1147
|
+
manualFiltering?: boolean;
|
|
1132
1148
|
density?: "compact" | "default" | "relaxed";
|
|
1133
1149
|
children?: React_2.ReactNode;
|
|
1134
1150
|
className?: string;
|
|
@@ -1136,6 +1152,7 @@ export declare interface DataTableProps<TData, TValue> {
|
|
|
1136
1152
|
variant?: React_2.ComponentProps<typeof Table>["variant"];
|
|
1137
1153
|
/** className passed to the base Table's container div */
|
|
1138
1154
|
containerClassName?: React_2.ComponentProps<typeof Table>["containerClassName"];
|
|
1155
|
+
truncate?: boolean;
|
|
1139
1156
|
}
|
|
1140
1157
|
|
|
1141
1158
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof Dialog_2.Root>): JSX.Element;
|
|
@@ -1281,6 +1298,22 @@ declare const fieldVariants: (props?: ({
|
|
|
1281
1298
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
1282
1299
|
} & ClassProp) | undefined) => string;
|
|
1283
1300
|
|
|
1301
|
+
export declare interface FilterColumnConfig {
|
|
1302
|
+
columnId: string;
|
|
1303
|
+
label?: string;
|
|
1304
|
+
operators?: FilterOperator[];
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export declare interface FilterCondition {
|
|
1308
|
+
/** Stable unique key for React reconciliation. */
|
|
1309
|
+
id: string;
|
|
1310
|
+
columnId: string;
|
|
1311
|
+
operator: FilterOperator;
|
|
1312
|
+
value: string;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
export declare type FilterOperator = "contains" | "equals" | "not_equals" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty";
|
|
1316
|
+
|
|
1284
1317
|
export declare const getAttachmentLabel: (data: AttachmentData) => string;
|
|
1285
1318
|
|
|
1286
1319
|
export declare const getMediaCategory: (data: AttachmentData) => AttachmentMediaCategory;
|
|
@@ -2723,29 +2756,36 @@ export declare function Switch({ className, size, ...props }: React_2.ComponentP
|
|
|
2723
2756
|
size?: "sm" | "default";
|
|
2724
2757
|
}): JSX.Element;
|
|
2725
2758
|
|
|
2726
|
-
export declare function Table({ className, containerClassName, variant, ...props }: React_2.ComponentProps<"table"> & {
|
|
2759
|
+
export declare function Table({ className, containerClassName, variant, layout, ...props }: React_2.ComponentProps<"table"> & {
|
|
2727
2760
|
containerClassName?: string;
|
|
2728
2761
|
variant?: "default" | "card";
|
|
2762
|
+
layout?: "auto" | "fixed";
|
|
2729
2763
|
}): JSX.Element;
|
|
2730
2764
|
|
|
2731
2765
|
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
2732
2766
|
|
|
2733
2767
|
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
|
|
2734
2768
|
|
|
2735
|
-
export declare function TableCell({ className, variant, ...props }: React_2.ComponentProps<"td"> & {
|
|
2769
|
+
export declare function TableCell({ className, variant, truncate, ...props }: React_2.ComponentProps<"td"> & {
|
|
2736
2770
|
variant?: "default" | "numeric" | "action";
|
|
2771
|
+
truncate?: boolean;
|
|
2737
2772
|
}): JSX.Element;
|
|
2738
2773
|
|
|
2739
2774
|
declare interface TableContextValue<TData> {
|
|
2740
2775
|
table: Table_2<TData>;
|
|
2741
2776
|
columnLabels: Record<string, string>;
|
|
2742
2777
|
setColumnLabel: (columnId: string, label: string) => void;
|
|
2778
|
+
filters: FilterCondition[];
|
|
2779
|
+
setFilters: (filters: FilterCondition[]) => void;
|
|
2780
|
+
filterConfig: FilterColumnConfig[];
|
|
2781
|
+
enableFiltering: boolean;
|
|
2743
2782
|
}
|
|
2744
2783
|
|
|
2745
2784
|
export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
|
|
2746
2785
|
|
|
2747
|
-
export declare function TableHead({ className, variant, ...props }: React_2.ComponentProps<"th"> & {
|
|
2786
|
+
export declare function TableHead({ className, variant, truncate, ...props }: React_2.ComponentProps<"th"> & {
|
|
2748
2787
|
variant?: "default" | "numeric" | "action";
|
|
2788
|
+
truncate?: boolean;
|
|
2749
2789
|
}): JSX.Element;
|
|
2750
2790
|
|
|
2751
2791
|
export declare function TableHeader({ className, variant, ...props }: React_2.ComponentProps<"thead"> & {
|
|
@@ -3250,3 +3290,10 @@ export declare interface WellData {
|
|
|
3250
3290
|
}
|
|
3251
3291
|
|
|
3252
3292
|
export { }
|
|
3293
|
+
|
|
3294
|
+
|
|
3295
|
+
declare module "@tanstack/react-table" {
|
|
3296
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
3297
|
+
truncate?: boolean;
|
|
3298
|
+
}
|
|
3299
|
+
}
|