@bsol-oss/react-datatable5 12.0.0-beta.5 → 12.0.0-beta.50

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.
Files changed (61) hide show
  1. package/dist/index.d.ts +181 -86
  2. package/dist/index.js +873 -358
  3. package/dist/index.mjs +878 -364
  4. package/dist/types/components/DataTable/DataTable.d.ts +4 -2
  5. package/dist/types/components/DataTable/DataTableServer.d.ts +1 -1
  6. package/dist/types/components/DataTable/DefaultTable.d.ts +9 -12
  7. package/dist/types/components/DataTable/context/DataTableContext.d.ts +19 -3
  8. package/dist/types/components/DataTable/context/useDataTableContext.d.ts +2 -2
  9. package/dist/types/components/DataTable/controls/DensityFeature.d.ts +23 -0
  10. package/dist/types/components/DataTable/controls/DensityToggleButton.d.ts +6 -0
  11. package/dist/types/components/DataTable/controls/EditSortingButton.d.ts +7 -0
  12. package/dist/types/components/DataTable/controls/FilterDialog.d.ts +5 -0
  13. package/dist/types/components/DataTable/controls/PageSizeControl.d.ts +4 -0
  14. package/dist/types/components/DataTable/controls/Pagination.d.ts +1 -0
  15. package/dist/types/components/DataTable/controls/ReloadButton.d.ts +4 -0
  16. package/dist/types/components/DataTable/controls/ResetFilteringButton.d.ts +1 -0
  17. package/dist/types/components/DataTable/controls/ResetSelectionButton.d.ts +1 -0
  18. package/dist/types/components/DataTable/controls/ResetSortingButton.d.ts +1 -0
  19. package/dist/types/components/DataTable/controls/RowCountText.d.ts +1 -0
  20. package/dist/types/components/DataTable/controls/SelectAllRowsToggle.d.ts +8 -0
  21. package/dist/types/components/DataTable/controls/TableControls.d.ts +26 -0
  22. package/dist/types/components/DataTable/controls/TableFilterTags.d.ts +1 -0
  23. package/dist/types/components/DataTable/controls/TableFilters.d.ts +1 -0
  24. package/dist/types/components/DataTable/controls/TableSelector.d.ts +1 -0
  25. package/dist/types/components/DataTable/controls/TableSorter.d.ts +1 -0
  26. package/dist/types/components/DataTable/controls/TableViewer.d.ts +1 -0
  27. package/dist/types/components/DataTable/controls/ViewDialog.d.ts +5 -0
  28. package/dist/types/components/DataTable/display/CardHeader.d.ts +13 -0
  29. package/dist/types/components/DataTable/display/DataDisplay.d.ts +6 -0
  30. package/dist/types/components/DataTable/display/EmptyState.d.ts +5 -0
  31. package/dist/types/components/DataTable/display/ErrorAlert.d.ts +4 -0
  32. package/dist/types/components/DataTable/display/RecordDisplay.d.ts +9 -0
  33. package/dist/types/components/DataTable/display/Table.d.ts +10 -0
  34. package/dist/types/components/DataTable/display/TableBody.d.ts +20 -0
  35. package/dist/types/components/DataTable/display/TableCardContainer.d.ts +10 -0
  36. package/dist/types/components/DataTable/display/TableCards.d.ts +11 -0
  37. package/dist/types/components/DataTable/display/TableComponent.d.ts +6 -0
  38. package/dist/types/components/DataTable/display/TableDataDisplay.d.ts +6 -0
  39. package/dist/types/components/DataTable/display/TableFooter.d.ts +5 -0
  40. package/dist/types/components/DataTable/display/TableHeader.d.ts +51 -0
  41. package/dist/types/components/DataTable/display/TableLoadingComponent.d.ts +5 -0
  42. package/dist/types/components/DataTable/display/TextCell.d.ts +10 -0
  43. package/dist/types/components/DataTable/useDataTable.d.ts +1 -1
  44. package/dist/types/components/Form/components/core/DefaultForm.d.ts +2 -1
  45. package/dist/types/components/Form/components/core/FormRoot.d.ts +2 -1
  46. package/dist/types/components/Form/components/fields/CustomInput.d.ts +8 -0
  47. package/dist/types/components/Form/components/fields/DatePicker.d.ts +2 -7
  48. package/dist/types/components/Form/components/fields/EnumPicker.d.ts +2 -1
  49. package/dist/types/components/Form/components/fields/FilePicker.d.ts +2 -5
  50. package/dist/types/components/Form/components/fields/StringInputField.d.ts +2 -5
  51. package/dist/types/components/Form/components/fields/TextAreaInput.d.ts +12 -0
  52. package/dist/types/components/Form/components/fields/TimePicker.d.ts +7 -0
  53. package/dist/types/components/Form/components/fields/types.d.ts +6 -0
  54. package/dist/types/components/Form/components/types/CustomJSONSchema7.d.ts +19 -1
  55. package/dist/types/components/Form/components/viewers/CustomViewer.d.ts +8 -0
  56. package/dist/types/components/Form/components/viewers/TextAreaViewer.d.ts +12 -0
  57. package/dist/types/components/Form/components/viewers/TimeViewer.d.ts +7 -0
  58. package/dist/types/components/Form/utils/translateWrapper.d.ts +6 -0
  59. package/dist/types/components/TimePicker/TimePicker.d.ts +20 -0
  60. package/dist/types/index.d.ts +48 -32
  61. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
1
  /// <reference types="react" />
2
- import { Row, Table as Table$1, OnChangeFn, RowData, Updater, FilterFn, ColumnDef, RowSelectionState, ColumnOrderState, ColumnFiltersState, PaginationState, SortingState, VisibilityState, Column } from '@tanstack/react-table';
2
+ import { Row, RowData, OnChangeFn, Updater, FilterFn, ColumnDef, RowSelectionState, ColumnOrderState, ColumnFiltersState, PaginationState, SortingState, VisibilityState, Table as Table$1, Column } from '@tanstack/react-table';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode, Dispatch, SetStateAction } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { ImageProps, TableHeaderProps as TableHeaderProps$1, TableRootProps, GridProps, CardBodyProps, FlexProps, TextProps, BoxProps } from '@chakra-ui/react';
6
+ import { ImageProps, GridProps, TableRootProps, TableHeaderProps as TableHeaderProps$1, TableRowProps, BoxProps, FlexProps, CardBodyProps, TextProps } from '@chakra-ui/react';
7
7
  import { IconType } from 'react-icons';
8
8
  import * as react_i18next from 'react-i18next';
9
9
  import { UseTranslationResponse } from 'react-i18next';
10
10
  import { RankingInfo } from '@tanstack/match-sorter-utils';
11
11
  import { UseQueryResult } from '@tanstack/react-query';
12
12
  import { JSONSchema7 } from 'json-schema';
13
- import { ForeignKeyProps } from '@/components/Form/components/fields/StringInputField';
13
+ import { ForeignKeyProps as ForeignKeyProps$1 } from '@/components/Form/components/fields/StringInputField';
14
14
  import { AxiosRequestConfig } from 'axios';
15
15
  import * as react_hook_form from 'react-hook-form';
16
- import { FieldValues, UseFormReturn, SubmitHandler } from 'react-hook-form';
16
+ import { UseFormReturn, FieldValues, SubmitHandler } from 'react-hook-form';
17
17
  import { RenderProps, Props } from '@bsol-oss/dayzed-react19';
18
18
 
19
19
  interface DensityToggleButtonProps {
@@ -41,20 +41,11 @@ declare const PageSizeControl: ({ pageSizes, }: PageSizeControlProps) => react_j
41
41
 
42
42
  declare const Pagination: () => react_jsx_runtime.JSX.Element;
43
43
 
44
- interface ResetFilteringButtonProps {
45
- text?: string;
46
- }
47
- declare const ResetFilteringButton: ({ text, }: ResetFilteringButtonProps) => react_jsx_runtime.JSX.Element;
44
+ declare const ResetFilteringButton: () => react_jsx_runtime.JSX.Element;
48
45
 
49
- interface ResetSelectionButtonProps {
50
- text?: string;
51
- }
52
- declare const ResetSelectionButton: ({ text, }: ResetSelectionButtonProps) => react_jsx_runtime.JSX.Element;
46
+ declare const ResetSelectionButton: () => react_jsx_runtime.JSX.Element;
53
47
 
54
- interface ResetSortingButtonProps {
55
- text?: string;
56
- }
57
- declare const ResetSortingButton: ({ text, }: ResetSortingButtonProps) => react_jsx_runtime.JSX.Element;
48
+ declare const ResetSortingButton: () => react_jsx_runtime.JSX.Element;
58
49
 
59
50
  declare const RowCountText: () => react_jsx_runtime.JSX.Element;
60
51
 
@@ -85,23 +76,6 @@ interface ErrorAlertProps {
85
76
  }
86
77
  declare const ErrorAlert: ({ showMessage }: ErrorAlertProps) => react_jsx_runtime.JSX.Element;
87
78
 
88
- interface DataTableContext<TData = unknown> {
89
- table: Table$1<TData>;
90
- globalFilter: string;
91
- setGlobalFilter: OnChangeFn<string>;
92
- type: "client" | "server";
93
- translate: UseTranslationResponse<any, any>;
94
- }
95
- declare const DataTableContext: React$1.Context<DataTableContext<unknown>>;
96
-
97
- declare const useDataTableContext: <TData>() => DataTableContext<TData>;
98
-
99
- interface DataDisplayProps {
100
- variant?: "horizontal" | "stats" | "";
101
- translate?: UseTranslationResponse<any, any>;
102
- }
103
- declare const DataDisplay: ({ variant }: DataDisplayProps) => react_jsx_runtime.JSX.Element;
104
-
105
79
  type DensityState = "sm" | "md" | "lg";
106
80
  interface DensityTableState {
107
81
  density: DensityState;
@@ -170,6 +144,7 @@ interface DataTableProps<TData = unknown> {
170
144
  setDensity: OnChangeFn<DensityState>;
171
145
  setColumnVisibility: OnChangeFn<VisibilityState>;
172
146
  translate: UseTranslationResponse<any, any>;
147
+ tableLabel: DataTableLabel;
173
148
  }
174
149
  /**
175
150
  * DataTable will create a context to hold all values to
@@ -181,7 +156,38 @@ interface DataTableProps<TData = unknown> {
181
156
  *
182
157
  * @link https://tanstack.com/table/latest/docs/guide/column-defs
183
158
  */
184
- declare function DataTable<TData = unknown>({ columns, data, enableRowSelection, enableMultiRowSelection, enableSubRowSelection, columnOrder, columnFilters, columnVisibility, density, globalFilter, pagination, sorting, rowSelection, setPagination, setSorting, setColumnFilters, setRowSelection, setGlobalFilter, setColumnOrder, setDensity, setColumnVisibility, translate, children, }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
159
+ declare function DataTable<TData = unknown>({ columns, data, enableRowSelection, enableMultiRowSelection, enableSubRowSelection, columnOrder, columnFilters, columnVisibility, density, globalFilter, pagination, sorting, rowSelection, setPagination, setSorting, setColumnFilters, setRowSelection, setGlobalFilter, setColumnOrder, setDensity, setColumnVisibility, translate, children, tableLabel, }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
160
+
161
+ interface DataTableLabel {
162
+ view: string;
163
+ edit: string;
164
+ filterButtonText: string;
165
+ filterTitle: string;
166
+ filterReset: string;
167
+ filterClose: string;
168
+ reloadTooltip: string;
169
+ reloadButtonText: string;
170
+ resetSelection: string;
171
+ resetSorting: string;
172
+ rowCountText: string;
173
+ hasErrorText: string;
174
+ }
175
+ interface DataTableContextProps<TData = unknown> extends DataTableProps {
176
+ table: Table$1<TData>;
177
+ globalFilter: string;
178
+ setGlobalFilter: OnChangeFn<string>;
179
+ type: "client" | "server";
180
+ translate: UseTranslationResponse<any, unknown>;
181
+ tableLabel: DataTableLabel;
182
+ }
183
+
184
+ declare const useDataTableContext: <TData>() => DataTableContextProps<TData>;
185
+
186
+ interface DataDisplayProps {
187
+ variant?: "horizontal" | "stats" | "";
188
+ translate?: UseTranslationResponse<any, any>;
189
+ }
190
+ declare const DataDisplay: ({ variant }: DataDisplayProps) => react_jsx_runtime.JSX.Element;
185
191
 
186
192
  interface DataTableDefaultState {
187
193
  sorting?: SortingState;
@@ -290,27 +296,6 @@ interface DataTableServerProps<TData extends DataResponse = DataResponse<unknown
290
296
  */
291
297
  declare function DataTableServer<TData extends DataResponse = DataResponse<unknown>>({ columns, enableRowSelection, enableMultiRowSelection, enableSubRowSelection, columnOrder, columnFilters, columnVisibility, density, globalFilter, pagination, sorting, rowSelection, setPagination, setSorting, setColumnFilters, setRowSelection, setGlobalFilter, setColumnOrder, setDensity, setColumnVisibility, query, url, translate, children, }: DataTableServerProps<TData>): react_jsx_runtime.JSX.Element;
292
298
 
293
- interface TableBodyProps {
294
- pinnedBgColor?: {
295
- light: string;
296
- dark: string;
297
- };
298
- showSelector?: boolean;
299
- alwaysShowSelector?: boolean;
300
- canResize?: boolean;
301
- }
302
- interface TableRowSelectorProps<TData> {
303
- index: number;
304
- row: Row<TData>;
305
- hoveredRow: number;
306
- pinnedBgColor?: {
307
- light: string;
308
- dark: string;
309
- };
310
- alwaysShowSelector?: boolean;
311
- }
312
- declare const TableBody: ({ pinnedBgColor, showSelector, alwaysShowSelector, canResize, }: TableBodyProps) => react_jsx_runtime.JSX.Element;
313
-
314
299
  interface TableControlsProps {
315
300
  totalText?: string;
316
301
  fitTableWidth?: boolean;
@@ -325,69 +310,127 @@ interface TableControlsProps {
325
310
  showPageSizeControl?: boolean;
326
311
  showPageCountText?: boolean;
327
312
  showView?: boolean;
328
- filterOptions?: string[];
313
+ filterOptions?: {
314
+ label: string;
315
+ value: string;
316
+ }[];
329
317
  extraItems?: ReactNode;
330
318
  loading?: boolean;
331
319
  hasError?: boolean;
320
+ gridProps?: GridProps;
332
321
  }
333
- declare const TableControls: ({ fitTableWidth, fitTableHeight, children, showGlobalFilter, showFilter, showFilterName, showFilterTags, showReload, showPagination, showPageSizeControl, showPageCountText, showView, filterOptions, extraItems, loading, hasError, }: TableControlsProps) => react_jsx_runtime.JSX.Element;
322
+ declare const TableControls: ({ fitTableWidth, fitTableHeight, children, showGlobalFilter, showFilter, showFilterName, showFilterTags, showReload, showPagination, showPageSizeControl, showPageCountText, showView, filterOptions, extraItems, loading, hasError, gridProps, }: TableControlsProps) => react_jsx_runtime.JSX.Element;
334
323
 
335
- interface TableFooterProps {
324
+ interface TableProps extends TableRootProps {
325
+ showLoading?: boolean;
326
+ loadingComponent?: ReactNode;
327
+ emptyComponent?: ReactNode;
328
+ canResize?: boolean;
329
+ children: ReactNode;
330
+ }
331
+ declare const Table: ({ children, emptyComponent, canResize, ...props }: TableProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
332
+
333
+ interface TableBodyProps {
336
334
  pinnedBgColor?: {
337
335
  light: string;
338
336
  dark: string;
339
337
  };
340
338
  showSelector?: boolean;
341
339
  alwaysShowSelector?: boolean;
342
- }
343
- declare const TableFooter: ({ pinnedBgColor, showSelector, alwaysShowSelector, }: TableFooterProps) => react_jsx_runtime.JSX.Element;
344
-
345
- interface TableHeaderProps {
346
340
  canResize?: boolean;
341
+ }
342
+ interface TableRowSelectorProps<TData> {
343
+ index: number;
344
+ row: Row<TData>;
345
+ hoveredRow: number;
347
346
  pinnedBgColor?: {
348
347
  light: string;
349
348
  dark: string;
350
349
  };
350
+ }
351
+ declare const TableBody: ({ showSelector, canResize, }: TableBodyProps) => react_jsx_runtime.JSX.Element;
352
+
353
+ interface TableFooterProps {
351
354
  showSelector?: boolean;
352
- isSticky?: boolean;
353
355
  alwaysShowSelector?: boolean;
354
- tHeadProps?: TableHeaderProps$1;
355
356
  }
356
- declare const TableHeader: ({ canResize, pinnedBgColor, showSelector, isSticky, alwaysShowSelector, tHeadProps, }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
357
+ declare const TableFooter: ({ showSelector, alwaysShowSelector, }: TableFooterProps) => react_jsx_runtime.JSX.Element;
357
358
 
358
- interface TableProps extends TableRootProps {
359
- showLoading?: boolean;
360
- loadingComponent?: ReactNode;
361
- emptyComponent?: ReactNode;
359
+ interface TableHeaderTexts {
360
+ pinColumn?: string;
361
+ cancelPin?: string;
362
+ sortAscending?: string;
363
+ sortDescending?: string;
364
+ clearSorting?: string;
365
+ }
366
+ interface TableHeaderProps {
362
367
  canResize?: boolean;
363
- children: ReactNode;
368
+ showSelector?: boolean;
369
+ isSticky?: boolean;
370
+ tableHeaderProps?: TableHeaderProps$1;
371
+ tableRowProps?: TableRowProps;
372
+ /**
373
+ * Default text configuration for all columns.
374
+ * Can be overridden per column via meta.headerTexts.
375
+ */
376
+ defaultTexts?: TableHeaderTexts;
364
377
  }
365
- declare const Table: ({ children, emptyComponent, canResize, ...props }: TableProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
378
+ /**
379
+ * TableHeader component with configurable text strings.
380
+ *
381
+ * @example
382
+ * // Using default texts
383
+ * <TableHeader />
384
+ *
385
+ * @example
386
+ * // Customizing default texts for all columns
387
+ * <TableHeader
388
+ * defaultTexts={{
389
+ * pinColumn: "Pin This Column",
390
+ * sortAscending: "Sort A-Z"
391
+ * }}
392
+ * />
393
+ *
394
+ * @example
395
+ * // Customizing texts per column via meta
396
+ * const columns = [
397
+ * columnHelper.accessor("name", {
398
+ * header: "Name",
399
+ * meta: {
400
+ * headerTexts: {
401
+ * pinColumn: "Pin Name Column",
402
+ * sortAscending: "Sort Names A-Z"
403
+ * }
404
+ * }
405
+ * })
406
+ * ];
407
+ */
408
+ declare const TableHeader: ({ canResize, showSelector, isSticky, tableHeaderProps, tableRowProps, defaultTexts, }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
366
409
 
367
410
  interface DefaultTableProps {
368
411
  showFooter?: boolean;
369
- showSelector?: boolean;
370
412
  tableProps?: Omit<TableProps, "children">;
371
- tHeadProps?: TableHeaderProps$1;
372
- controlProps?: TableControlsProps;
373
- tableFooterProps?: TableFooterProps;
374
- tableBodyProps?: TableBodyProps;
375
413
  tableHeaderProps?: TableHeaderProps;
414
+ tableBodyProps?: TableBodyProps;
415
+ tableFooterProps?: TableFooterProps;
416
+ controlProps?: TableControlsProps;
376
417
  variant?: "" | "greedy";
377
418
  }
378
- declare const DefaultTable: ({ showFooter, tableProps, tableHeaderProps, tableBodyProps, controlProps, tableFooterProps, variant, }: DefaultTableProps) => react_jsx_runtime.JSX.Element;
419
+ declare const DefaultTable: ({ showFooter, tableProps, tableHeaderProps, tableBodyProps, tableFooterProps, controlProps, variant, }: DefaultTableProps) => react_jsx_runtime.JSX.Element;
379
420
 
380
421
  interface ReloadButtonProps {
381
- text?: string;
382
422
  variant?: string;
383
423
  }
384
- declare const ReloadButton: ({ text, variant, }: ReloadButtonProps) => react_jsx_runtime.JSX.Element;
424
+ declare const ReloadButton: ({ variant, }: ReloadButtonProps) => react_jsx_runtime.JSX.Element;
385
425
 
386
- interface TableCardContainerProps extends GridProps {
426
+ interface TableCardContainerProps extends BoxProps {
387
427
  children: ReactNode;
388
428
  variant?: "carousel" | "";
429
+ gap?: string;
430
+ gridTemplateColumns?: string;
431
+ direction?: FlexProps["direction"];
389
432
  }
390
- declare const TableCardContainer: ({ children, variant, ...props }: TableCardContainerProps) => react_jsx_runtime.JSX.Element;
433
+ declare const TableCardContainer: ({ children, variant, gap, gridTemplateColumns, direction, ...props }: TableCardContainerProps) => react_jsx_runtime.JSX.Element;
391
434
 
392
435
  interface TableCardsProps<TData> {
393
436
  isSelectable?: boolean;
@@ -441,6 +484,12 @@ interface GetColumnsConfigs<K extends RowData> {
441
484
  declare const widthSanityCheck: <K extends unknown>(widthList: number[], ignoreList: K[], properties: { [key in K as string]?: object | undefined; }) => void;
442
485
  declare const getColumns: <TData extends unknown>({ schema, include, ignore, width, meta, defaultWidth, translate, }: GetColumnsConfigs<TData>) => ColumnDef<TData>[];
443
486
 
487
+ interface TableDataDisplayProps {
488
+ colorPalette?: string;
489
+ emptyComponent?: ReactNode;
490
+ }
491
+ declare const TableDataDisplay: ({ colorPalette, emptyComponent, }: TableDataDisplayProps) => react_jsx_runtime.JSX.Element;
492
+
444
493
  interface FilterOptionsProps {
445
494
  column: string;
446
495
  }
@@ -448,8 +497,39 @@ declare const FilterOptions: ({ column }: FilterOptionsProps) => react_jsx_runti
448
497
 
449
498
  declare const GlobalFilter: () => react_jsx_runtime.JSX.Element;
450
499
 
500
+ interface ForeignKeyProps {
501
+ column: string;
502
+ table: string;
503
+ display_column: string;
504
+ }
505
+
506
+ interface CustomJSONSchema7 extends JSONSchema7 {
507
+ gridColumn?: string;
508
+ gridRow?: string;
509
+ foreign_key?: ForeignKeyProps;
510
+ variant?: string;
511
+ renderDisplay?: (item: unknown) => ReactNode;
512
+ inputRender?: (props: {
513
+ column: string;
514
+ schema: CustomJSONSchema7;
515
+ prefix: string;
516
+ formContext: UseFormReturn;
517
+ }) => ReactNode;
518
+ inputViewerRender?: (props: {
519
+ column: string;
520
+ schema: CustomJSONSchema7;
521
+ prefix: string;
522
+ formContext: UseFormReturn;
523
+ }) => ReactNode;
524
+ dateFormat?: string;
525
+ displayDateFormat?: string;
526
+ timeFormat?: string;
527
+ displayTimeFormat?: string;
528
+ showLabel?: boolean;
529
+ }
530
+
451
531
  interface FormRootProps<TData extends FieldValues> {
452
- schema: JSONSchema7;
532
+ schema: CustomJSONSchema7;
453
533
  serverUrl: string;
454
534
  requestUrl?: string;
455
535
  idMap: Record<string, object>;
@@ -472,7 +552,7 @@ interface CustomJSONSchema7Definition extends JSONSchema7 {
472
552
  display_column: string;
473
553
  gridColumn: string;
474
554
  gridRow: string;
475
- foreign_key: ForeignKeyProps;
555
+ foreign_key: ForeignKeyProps$1;
476
556
  children: ReactNode;
477
557
  }
478
558
  declare const idPickerSanityCheck: (column: string, foreign_key?: {
@@ -484,8 +564,9 @@ declare const FormRoot: <TData extends FieldValues>({ schema, idMap, setIdMap, f
484
564
 
485
565
  interface DefaultFormProps<TData extends FieldValues> {
486
566
  formConfig: Omit<FormRootProps<TData>, "children">;
567
+ showTitle?: boolean;
487
568
  }
488
- declare const DefaultForm: <TData extends FieldValues>({ formConfig, }: DefaultFormProps<TData>) => react_jsx_runtime.JSX.Element;
569
+ declare const DefaultForm: <TData extends FieldValues>({ formConfig, showTitle, }: DefaultFormProps<TData>) => react_jsx_runtime.JSX.Element;
489
570
 
490
571
  declare const FormTitle: () => react_jsx_runtime.JSX.Element;
491
572
 
@@ -566,6 +647,17 @@ declare module "@tanstack/react-table" {
566
647
  * The display name of the column, used for rendering headers.
567
648
  */
568
649
  displayName?: string;
650
+ /**
651
+ * Text configuration for the column header menu items.
652
+ * These strings can be customized per column.
653
+ */
654
+ headerTexts?: {
655
+ pinColumn?: string;
656
+ cancelPin?: string;
657
+ sortAscending?: string;
658
+ sortDescending?: string;
659
+ clearSorting?: string;
660
+ };
569
661
  /**
570
662
  * Specifies the type of filter to be used for the column.
571
663
  *
@@ -586,7 +678,10 @@ declare module "@tanstack/react-table" {
586
678
  /**
587
679
  * Options for the select filter variant, if applicable.
588
680
  */
589
- filterOptions?: string[];
681
+ filterOptions?: {
682
+ label: string;
683
+ value: string;
684
+ }[];
590
685
  /**
591
686
  * Configuration for the range filter variant, if applicable.
592
687
  *
@@ -612,4 +707,4 @@ declare module "@tanstack/react-table" {
612
707
  }
613
708
  }
614
709
 
615
- export { type CalendarProps, CardHeader, type CardHeaderProps, type CustomJSONSchema7Definition, DataDisplay, type DataDisplayProps, type DataResponse, DataTable, type DataTableDefaultState, type DataTableProps, DataTableServer, type DataTableServerProps, type DatePickerProps, DefaultCardTitle, DefaultForm, type DefaultFormProps, DefaultTable, type DefaultTableProps, DensityToggleButton, type DensityToggleButtonProps, type EditFilterButtonProps, EditSortingButton, type EditSortingButtonProps, type EditViewButtonProps, EmptyState, type EmptyStateProps, ErrorAlert, type ErrorAlertProps, FilterDialog, FilterOptions, type FilterOptionsProps, FormBody, FormRoot, type FormRootProps, FormTitle, type GetColumnsConfigs, type GetDateColorProps, type GetMultiDatesProps, type GetRangeDatesProps, type GetStyleProps, type GetVariantProps, GlobalFilter, PageSizeControl, type PageSizeControlProps, Pagination, type RangeCalendarProps, type RangeDatePickerProps, RecordDisplay, type RecordDisplayProps, ReloadButton, type ReloadButtonProps, ResetFilteringButton, type ResetFilteringButtonProps, ResetSelectionButton, type ResetSelectionButtonProps, ResetSortingButton, type ResetSortingButtonProps, type Result, RowCountText, Table, TableBody, type TableBodyProps, TableCardContainer, type TableCardContainerProps, TableCards, type TableCardsProps, TableComponent, TableControls, type TableControlsProps, TableFilter, TableFilterTags, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableLoadingComponent, type TableLoadingComponentProps, type TableProps, type TableRendererProps, type TableRowSelectorProps, TableSelector, TableSorter, TableViewer, TextCell, type TextCellProps, type UseDataTableProps, type UseDataTableReturn, type UseDataTableServerProps, type UseDataTableServerReturn, type UseFormProps, ViewDialog, getColumns, getMultiDates, getRangeDates, idPickerSanityCheck, useDataTable, useDataTableContext, useDataTableServer, useForm, widthSanityCheck };
710
+ export { type CalendarProps, CardHeader, type CardHeaderProps, type CustomJSONSchema7Definition, DataDisplay, type DataDisplayProps, type DataResponse, DataTable, type DataTableDefaultState, type DataTableProps, DataTableServer, type DataTableServerProps, type DatePickerProps, DefaultCardTitle, DefaultForm, type DefaultFormProps, DefaultTable, type DefaultTableProps, DensityToggleButton, type DensityToggleButtonProps, type EditFilterButtonProps, EditSortingButton, type EditSortingButtonProps, type EditViewButtonProps, EmptyState, type EmptyStateProps, ErrorAlert, type ErrorAlertProps, FilterDialog, FilterOptions, type FilterOptionsProps, FormBody, FormRoot, type FormRootProps, FormTitle, type GetColumnsConfigs, type GetDateColorProps, type GetMultiDatesProps, type GetRangeDatesProps, type GetStyleProps, type GetVariantProps, GlobalFilter, PageSizeControl, type PageSizeControlProps, Pagination, type RangeCalendarProps, type RangeDatePickerProps, RecordDisplay, type RecordDisplayProps, ReloadButton, type ReloadButtonProps, ResetFilteringButton, ResetSelectionButton, ResetSortingButton, type Result, RowCountText, Table, TableBody, type TableBodyProps, TableCardContainer, type TableCardContainerProps, TableCards, type TableCardsProps, TableComponent, TableControls, type TableControlsProps, TableDataDisplay, type TableDataDisplayProps, TableFilter, TableFilterTags, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, type TableHeaderTexts, TableLoadingComponent, type TableLoadingComponentProps, type TableProps, type TableRendererProps, type TableRowSelectorProps, TableSelector, TableSorter, TableViewer, TextCell, type TextCellProps, type UseDataTableProps, type UseDataTableReturn, type UseDataTableServerProps, type UseDataTableServerReturn, type UseFormProps, ViewDialog, getColumns, getMultiDates, getRangeDates, idPickerSanityCheck, useDataTable, useDataTableContext, useDataTableServer, useForm, widthSanityCheck };