@elliemae/ds-data-table 3.13.1-rc.1 → 3.13.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.
Files changed (141) hide show
  1. package/dist/types/DataTable.d.ts +82 -0
  2. package/dist/types/DataTableContext.d.ts +7 -0
  3. package/dist/types/DataTableSchema.d.ts +2 -0
  4. package/dist/types/addons/Columns/ColumnAction/ColumnAction.d.ts +4 -0
  5. package/dist/types/addons/Columns/ColumnDragHandle/ColumnDragHandle.d.ts +2 -0
  6. package/dist/types/addons/Columns/ColumnExpand/ColumnExpand.d.ts +2 -0
  7. package/dist/types/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.d.ts +2 -0
  8. package/dist/types/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.d.ts +2 -0
  9. package/dist/types/addons/Columns/index.d.ts +6 -0
  10. package/dist/types/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.d.ts +2 -0
  11. package/dist/types/addons/Editables/DateEditableCell/DateEditableCell.d.ts +1 -0
  12. package/dist/types/addons/Editables/TextEditableCell/TextEditableCell.d.ts +2 -0
  13. package/dist/types/addons/Editables/index.d.ts +4 -0
  14. package/dist/types/addons/Filters/Components/CurrencyRangeFilter/index.d.ts +3 -0
  15. package/dist/types/addons/Filters/Components/DateRangeFilter/index.d.ts +3 -0
  16. package/dist/types/addons/Filters/Components/DateSwitcherFilter/index.d.ts +3 -0
  17. package/dist/types/addons/Filters/Components/NumberRangeFilter/index.d.ts +3 -0
  18. package/dist/types/addons/Filters/Components/SelectFilter/BaseSelectFilter.d.ts +16 -0
  19. package/dist/types/addons/Filters/Components/SelectFilter/MultiCreatableFilter.d.ts +3 -0
  20. package/dist/types/addons/Filters/Components/SelectFilter/MultiSelectFilter.d.ts +3 -0
  21. package/dist/types/addons/Filters/Components/SelectFilter/SingleCreatableFilter.d.ts +3 -0
  22. package/dist/types/addons/Filters/Components/SelectFilter/SingleSelectFilter.d.ts +3 -0
  23. package/dist/types/addons/Filters/Components/SingleDateFilter/index.d.ts +3 -0
  24. package/dist/types/addons/Filters/Components/index.d.ts +9 -0
  25. package/dist/types/addons/Filters/index.d.ts +1 -0
  26. package/dist/types/addons/Pagination/Pagination.d.ts +2 -0
  27. package/dist/types/addons/Pagination/index.d.ts +1 -0
  28. package/dist/types/configs/constants.d.ts +40 -0
  29. package/dist/types/configs/fixedSizes.d.ts +3 -0
  30. package/dist/types/configs/index.d.ts +5 -0
  31. package/dist/types/configs/useDatatableConfig.d.ts +2 -0
  32. package/dist/types/configs/useInternalStateConfig.d.ts +11 -0
  33. package/dist/types/configs/usePaginationConfig.d.ts +2 -0
  34. package/dist/types/configs/useRowFlattenization.d.ts +2 -0
  35. package/dist/types/configs/useTableColsWithAddons.d.ts +5 -0
  36. package/dist/types/configs/zIndexInternalConfig.d.ts +8 -0
  37. package/dist/types/exported-related/EditableCell.d.ts +2 -0
  38. package/dist/types/exported-related/FilterBar/FilterBarDropdownMenu.d.ts +1 -0
  39. package/dist/types/exported-related/FilterBar/index.d.ts +1 -0
  40. package/dist/types/exported-related/FilterPopover/index.d.ts +3 -0
  41. package/dist/types/exported-related/FilterPopover/types.d.ts +14 -0
  42. package/dist/types/exported-related/FilterPopover/useGetFilterHandlers.d.ts +9 -0
  43. package/dist/types/exported-related/FilterPopover/useGetFilterVisibility.d.ts +5 -0
  44. package/dist/types/exported-related/FilterTypes.d.ts +11 -0
  45. package/dist/types/exported-related/Filters/applyOutOfTheBoxFilters.d.ts +2 -0
  46. package/dist/types/exported-related/Filters/currencyRangeFilterFn.d.ts +5 -0
  47. package/dist/types/exported-related/Filters/dateRangeFilterFn.d.ts +5 -0
  48. package/dist/types/exported-related/Filters/dateSwitcherFilterFn.d.ts +6 -0
  49. package/dist/types/exported-related/Filters/index.d.ts +7 -0
  50. package/dist/types/exported-related/Filters/multiSelectFilterFn.d.ts +4 -0
  51. package/dist/types/exported-related/Filters/numberRangeFilterFn.d.ts +5 -0
  52. package/dist/types/exported-related/Filters/singleDateFilterFn.d.ts +2 -0
  53. package/dist/types/exported-related/Filters/singleSelectFilterFn.d.ts +4 -0
  54. package/dist/types/exported-related/Filters/types.d.ts +2 -0
  55. package/dist/types/exported-related/Filters/utilities.d.ts +3 -0
  56. package/dist/types/exported-related/RowRenderer/DefaultRowContentRenderer.d.ts +3 -0
  57. package/dist/types/exported-related/RowRenderer/index.d.ts +20 -0
  58. package/dist/types/exported-related/RowRenderer/useRowRendererHandlers.d.ts +16 -0
  59. package/dist/types/exported-related/RowRenderer/useRowRendererProperties.d.ts +15 -0
  60. package/dist/types/exported-related/RowRenderer/useRowStyle.d.ts +7 -0
  61. package/dist/types/exported-related/RowVariants.d.ts +10 -0
  62. package/dist/types/exported-related/Toolbar/Toolbar.d.ts +9 -0
  63. package/dist/types/exported-related/Toolbar/index.d.ts +1 -0
  64. package/dist/types/exported-related/groupBy.d.ts +5 -0
  65. package/dist/types/exported-related/index.d.ts +8 -0
  66. package/dist/types/helpers/addCellData.d.ts +2 -0
  67. package/dist/types/helpers/cellPadding.d.ts +9 -0
  68. package/dist/types/helpers/columnsToGrid.d.ts +3 -0
  69. package/dist/types/helpers/getIdFromUniqueRowAccessor.d.ts +2 -0
  70. package/dist/types/helpers/index.d.ts +6 -0
  71. package/dist/types/helpers/refs-helpers.d.ts +1 -0
  72. package/dist/types/helpers/sizeToCss.d.ts +1 -0
  73. package/dist/types/index.d.ts +3 -0
  74. package/dist/types/parts/Cells/Cell.d.ts +13 -0
  75. package/dist/types/parts/Cells/index.d.ts +9 -0
  76. package/dist/types/parts/Cells/useCellStyle.d.ts +3 -0
  77. package/dist/types/parts/DnDHandle.d.ts +9 -0
  78. package/dist/types/parts/DropIndicator.d.ts +11 -0
  79. package/dist/types/parts/EmptyContent.d.ts +6 -0
  80. package/dist/types/parts/FilterBar/FiltersBar.d.ts +2 -0
  81. package/dist/types/parts/FilterBar/components/DateRangePill.d.ts +5 -0
  82. package/dist/types/parts/FilterBar/components/DateSwitcherPill.d.ts +6 -0
  83. package/dist/types/parts/FilterBar/components/MultiSelectPill.d.ts +2 -0
  84. package/dist/types/parts/FilterBar/components/NumberRangePill.d.ts +5 -0
  85. package/dist/types/parts/FilterBar/components/SelectPill.d.ts +2 -0
  86. package/dist/types/parts/FilterBar/components/SingleDatePill.d.ts +2 -0
  87. package/dist/types/parts/FilterBar/components/index.d.ts +6 -0
  88. package/dist/types/parts/FilterBar/index.d.ts +1 -0
  89. package/dist/types/parts/FilterBar/styled.d.ts +3 -0
  90. package/dist/types/parts/FilterBar/types.d.ts +31 -0
  91. package/dist/types/parts/Filters/index.d.ts +3 -0
  92. package/dist/types/parts/Headers/EmptyChildrenGroup.d.ts +2 -0
  93. package/dist/types/parts/Headers/HeaderCell.d.ts +9 -0
  94. package/dist/types/parts/Headers/HeaderCellGroup.d.ts +13 -0
  95. package/dist/types/parts/Headers/HeaderCellTitle.d.ts +11 -0
  96. package/dist/types/parts/Headers/HeaderResizer.d.ts +5 -0
  97. package/dist/types/parts/Headers/RequiredDot.d.ts +2 -0
  98. package/dist/types/parts/Headers/index.d.ts +2 -0
  99. package/dist/types/parts/Headers/useHeaderCellConfig.d.ts +15 -0
  100. package/dist/types/parts/Headers/useHeaderCellHandlers.d.ts +18 -0
  101. package/dist/types/parts/HoC/DnDTreeContext.d.ts +12 -0
  102. package/dist/types/parts/HoC/SortableItemContext.d.ts +7 -0
  103. package/dist/types/parts/HoC/withConditionalDnDColumnContext.d.ts +8 -0
  104. package/dist/types/parts/HoC/withConditionalDnDRowContext.d.ts +2 -0
  105. package/dist/types/parts/HoC/withConditionalDnDSortableContext.d.ts +3 -0
  106. package/dist/types/parts/HoC/withDnDSortableColumnContext.d.ts +2 -0
  107. package/dist/types/parts/HoC/withDnDSortableRowContext.d.ts +2 -0
  108. package/dist/types/parts/Loader.d.ts +3 -0
  109. package/dist/types/parts/Row.d.ts +4 -0
  110. package/dist/types/parts/RowVariants/RowVariantHeader.d.ts +3 -0
  111. package/dist/types/parts/RowVariants/RowVariantPrimary.d.ts +3 -0
  112. package/dist/types/parts/RowVariants/RowVariantSecondary.d.ts +3 -0
  113. package/dist/types/parts/RowVariants/RowVariantSkeleton.d.ts +3 -0
  114. package/dist/types/parts/RowVariants/index.d.ts +12 -0
  115. package/dist/types/parts/RowVariants/types.d.ts +20 -0
  116. package/dist/types/parts/Rows.d.ts +2 -0
  117. package/dist/types/parts/SortByCaret.d.ts +4 -0
  118. package/dist/types/parts/SortableHeaderCell.d.ts +7 -0
  119. package/dist/types/parts/TableContent.d.ts +2 -0
  120. package/dist/types/parts/VirtualRowsList.d.ts +2 -0
  121. package/dist/types/parts/index.d.ts +5 -0
  122. package/dist/types/parts/internal.d.ts +2 -0
  123. package/dist/types/styled.d.ts +46 -0
  124. package/dist/types/tests/a11y/aria-level.test.d.ts +1 -0
  125. package/dist/types/tests/callbacks/pagination.events.test.d.ts +1 -0
  126. package/dist/types/tests/callbacks/row.events.test.d.ts +1 -0
  127. package/dist/types/tests/keyboard/dragAndDropColumns.test.d.ts +1 -0
  128. package/dist/types/tests/keyboard/dragAndDropRows.test.d.ts +1 -0
  129. package/dist/types/tests/keyboard/expandable.test.d.ts +1 -0
  130. package/dist/types/tests/keyboard/grouped.test.d.ts +1 -0
  131. package/dist/types/tests/keyboard/masterDetails.test.d.ts +1 -0
  132. package/dist/types/tests/keyboard/navigation.test.d.ts +1 -0
  133. package/dist/types/tests/keyboard/selectMultiple.test.d.ts +1 -0
  134. package/dist/types/tests/keyboard/selectSingle.test.d.ts +1 -0
  135. package/dist/types/tests/keyboard/sort.test.d.ts +1 -0
  136. package/dist/types/tests/render/empty-state.test.d.ts +1 -0
  137. package/dist/types/tests/render/toolbar.test.d.ts +1 -0
  138. package/dist/types/tests/utils/index.d.ts +46 -0
  139. package/dist/types/types/FunctionalHoC.d.ts +2 -0
  140. package/dist/types/types/props.d.ts +266 -0
  141. package/package.json +18 -18
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import type { TypescriptProps } from './types/props';
3
+ export declare const DataTable: {
4
+ (props: TypescriptProps): JSX.Element;
5
+ propTypes: React.WeakValidationMap<unknown>;
6
+ defaultProps: {
7
+ height?: string | undefined;
8
+ width?: string | undefined;
9
+ renderRowActions?: boolean | undefined;
10
+ getRowVariant?: ((row: import("./types/props").TypescriptRow, defaultCellRenderer: React.ComponentType<any>) => React.ComponentType<any> | import("./types/props").RowVariant) | undefined;
11
+ withFilterBar?: boolean | undefined;
12
+ isExpandable?: boolean | undefined;
13
+ expandedRows?: Record<string, boolean> | undefined;
14
+ disabledRows?: Record<string, boolean> | undefined;
15
+ isResizeable?: boolean | undefined;
16
+ isLoading?: boolean | undefined;
17
+ pagination?: false | import("./types/props").TypescriptPagination | undefined;
18
+ filters?: import("./types/props").DataTableFilter[] | undefined;
19
+ colsLayoutStyle?: import("./configs/constants").ColsLayoutStyle | undefined;
20
+ hiddenColumns?: string[] | undefined;
21
+ noResultsMessage?: string | undefined;
22
+ dragAndDropRows?: boolean | undefined;
23
+ maxDragAndDropLevel?: number | undefined;
24
+ onRowsReorder?: ((newData: import("./types/props").TypescriptRow[], indexes: {
25
+ targetIndex: number;
26
+ fromIndex: number;
27
+ }, considerExpanding: string, extraData: {
28
+ flattenedData: import("./types/props").InternalTypescriptRow[];
29
+ allDataFlattened: import("./types/props").InternalTypescriptRow[];
30
+ }) => void) | undefined;
31
+ dragAndDropColumns?: boolean | undefined;
32
+ onColumnsReorder?: ((newData: import("./types/props").TypescriptColumn<HTMLElement>[], indexes: {
33
+ targetIndex: number;
34
+ fromIndex: number;
35
+ }) => void) | undefined;
36
+ getIsDropValid?: ((active: import("./types/props").InternalTypescriptRow, over: import("./types/props").InternalTypescriptRow, dropIndicatorPosition: import("./types/props").DropIndicatorPosition) => boolean) | undefined;
37
+ onColumnResize?: ((headerId: string, width: number) => void) | undefined;
38
+ onColumnSizeChange?: ((newColumns: import("./types/props").TypescriptColumn<HTMLElement>[], headerId: string, width: number) => void) | undefined;
39
+ onRowClick?: import("./types/props").TypescriptGenericFunc | undefined;
40
+ onRowFocus?: import("./types/props").TypescriptGenericFunc | undefined;
41
+ noSelectionColumn?: boolean | undefined;
42
+ selectSingle?: boolean | undefined;
43
+ onSelectionChange?: ((newSelection: import("./types/props").TypescriptSelection, selectedControl: string, event: React.ChangeEvent<Element> | React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void) | undefined;
44
+ textWrap?: "wrap" | "wrap-all" | "truncate" | undefined;
45
+ onCellValueChange?: ((cellChange: {
46
+ value: any;
47
+ property: any;
48
+ rowIndex: number;
49
+ }) => void) | undefined;
50
+ onFiltersChange?: import("./types/props").TypescriptGenericFunc | undefined;
51
+ onPageChanged?: import("./types/props").TypescriptGenericFunc | undefined;
52
+ onRowExpand?: ((expandedRows: Record<string, boolean>, toggledRow: string) => void) | undefined;
53
+ onColumnSortChange?: ((newSortRequest: {
54
+ column: any;
55
+ direction: any;
56
+ }) => void) | undefined;
57
+ onColumnSort?: ((newColumns: import("./types/props").TypescriptColumn<HTMLElement>[], headerId: string, direction: "ASC" | "DESC") => void) | undefined;
58
+ columns?: import("./types/props").TypescriptColumn<HTMLElement>[] | undefined;
59
+ data?: import("./types/props").TypescriptRow[] | undefined;
60
+ uniqueRowAccessor?: import("./types/props").UniqueRowAccessorType;
61
+ cellRendererProps?: Record<string, any> | undefined;
62
+ selection?: import("./types/props").TypescriptSelection | undefined;
63
+ groupedRowsRenderHeader?: string | import("./types/props").TypescriptGenericFunc | undefined;
64
+ filterBarProps?: {
65
+ filterBarAddonRenderer?: React.ComponentType<any> | undefined;
66
+ customPillRenderer?: React.ComponentType<any> | undefined;
67
+ extraOptions?: {
68
+ type: string;
69
+ id: string;
70
+ label: string;
71
+ onClick?: import("./types/props").TypescriptGenericFunc | undefined;
72
+ }[] | undefined;
73
+ } | undefined;
74
+ actionRef?: React.RefObject<any> | undefined;
75
+ noResultsSecondaryMessage?: string | undefined;
76
+ noResultsButtonLabel?: string | undefined;
77
+ noResultsPlaceholder?: import("./types/props").TypescriptGenericFunc | undefined;
78
+ onNoResultsButtonClick?: import("./types/props").TypescriptGenericFunc | undefined;
79
+ };
80
+ displayName: string;
81
+ };
82
+ export declare const DataTableWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<TypescriptProps>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { TypescriptContext, TypescriptProps } from './types/props';
3
+ export declare const defaultProps: Partial<TypescriptProps>;
4
+ /** Context for cross component communication */
5
+ declare const DataTableContext: import("react").Context<TypescriptContext>;
6
+ export { DataTableContext };
7
+ export default DataTableContext;
@@ -0,0 +1,2 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ export declare const DataTableSchema: WeakValidationMap<unknown>;
@@ -0,0 +1,4 @@
1
+ import type { TypescriptColumn, TypescriptRenderRowActionsConfig } from '../../../types/props';
2
+ type ConfigurableColumn = (renderRowActions: TypescriptRenderRowActionsConfig) => TypescriptColumn;
3
+ export declare const actionColumn: ConfigurableColumn;
4
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { TypescriptColumn } from '../../../types/props';
2
+ export declare const dragHandleColumn: TypescriptColumn<HTMLDivElement>;
@@ -0,0 +1,2 @@
1
+ import type { TypescriptColumn } from '../../../types/props';
2
+ export declare const expandRowColumn: TypescriptColumn<HTMLSpanElement>;
@@ -0,0 +1,2 @@
1
+ import type { TypescriptColumn } from '../../../types/props';
2
+ export declare const multiSelectColumn: TypescriptColumn<HTMLInputElement>;
@@ -0,0 +1,2 @@
1
+ import type { TypescriptColumn } from '../../../types/props';
2
+ export declare const singleSelectColumn: TypescriptColumn<HTMLInputElement>;
@@ -0,0 +1,6 @@
1
+ export { actionColumn } from './ColumnAction/ColumnAction';
2
+ export { expandRowColumn } from './ColumnExpand/ColumnExpand';
3
+ export { multiSelectColumn } from './ColumnSelectMultiple/ColumnSelectMultiple';
4
+ export { singleSelectColumn } from './ColumnSelectSingle/ColumnSelectSingle';
5
+ export { dragHandleColumn } from './ColumnDragHandle/ColumnDragHandle';
6
+ export declare const INTERNAL_COLUMNS: string[];
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ComboboxEditableCell: React.ComponentType<any>;
@@ -0,0 +1 @@
1
+ export declare const DateEditableCell: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TextEditableCell: React.ComponentType<any>;
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ export declare const outOfTheBoxEditables: Record<string, {
3
+ EditableComponent: React.ComponentType<any>;
4
+ }>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const CurrencyRangeFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const DateRangeFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const DateSwitcherFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const NumberRangeFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ interface FilterOptionT {
4
+ dsId: string;
5
+ type: string;
6
+ value: string;
7
+ label: string;
8
+ }
9
+ interface BaseSelectProps {
10
+ isMulti?: boolean;
11
+ creatable?: boolean;
12
+ selectedItems?: FilterOptionT[] | FilterOptionT;
13
+ type: string;
14
+ }
15
+ export declare const BaseSelectFilter: React.ComponentType<FilterProps & BaseSelectProps>;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const MultiCreatableFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const MultiSelectFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const SingleCreatableFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const SingleSelectFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterProps } from '../../../../types/props';
3
+ export declare const SingleDateFilter: React.ComponentType<FilterProps>;
@@ -0,0 +1,9 @@
1
+ export * from './DateRangeFilter';
2
+ export * from './DateSwitcherFilter';
3
+ export * from './NumberRangeFilter';
4
+ export * from './CurrencyRangeFilter';
5
+ export * from './SelectFilter/SingleSelectFilter';
6
+ export * from './SelectFilter/MultiSelectFilter';
7
+ export * from './SingleDateFilter';
8
+ export * from './SelectFilter/SingleCreatableFilter';
9
+ export * from './SelectFilter/MultiCreatableFilter';
@@ -0,0 +1 @@
1
+ export * from './Components';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Pagination: React.ComponentType<Record<string, never>>;
@@ -0,0 +1 @@
1
+ export { Pagination } from './Pagination';
@@ -0,0 +1,40 @@
1
+ export declare const momentFormat = "MM/DD/YYYY";
2
+ export declare enum ColsLayoutStyle {
3
+ Fixed = "fixed",
4
+ Auto = "auto"
5
+ }
6
+ export declare const DATA_TESTID: {
7
+ DATA_TABLE_WRAPPER: string;
8
+ DATA_TABLE_GLOBAL_EXPAND_CELL: string;
9
+ DATA_TABLE_ICON_ARROW_DOWN: string;
10
+ DATA_TABLE_ICON_ARROW_RIGHT: string;
11
+ DATA_TABLE_ICON_ARROW_MIXED: string;
12
+ DATA_TABLE_ICON_CHILD: string;
13
+ DATA_TABLE_GLOBAL_CHECKBOX: string;
14
+ DATA_TABLE_CHECKBOX: string;
15
+ DATA_TABLE_RADIO: string;
16
+ DATA_TABLE_DATE_RANGE_CONTROLLER: string;
17
+ DATA_TABLE_DATE_RANGE_CONTROLLER_CHECKBOX_SWITCHER: string;
18
+ DATA_TABLE_SINGLE_DATE_CONTROLLER: string;
19
+ DATA_TABLE_NUMBER_RANGE_CONTROLLER: string;
20
+ DATA_TABLE_CURRENCY_RANGE_CONTROLLER: string;
21
+ DATA_TABLE_SELECT_MENU_ITEM: string;
22
+ DATA_TABLE_MULTISELECT_CONTROLLER: string;
23
+ DATA_TABLE_SINGLESELECT_CONTROLLER: string;
24
+ DATA_TABLE_FILTER_BUTTON: string;
25
+ DATA_TABLE_FILTER_MENU_CONTENT: string;
26
+ DATA_TABLE_ROW_CONTENT: string;
27
+ DATA_TABLE_ROW: string;
28
+ DATA_TABLE_TOOLBAR_TRIGGER: string;
29
+ DATA_TABLE_CELL: string;
30
+ DATA_TABLE_DRAG_HANDLE: string;
31
+ DATA_TABLE_CONTENT_WRAPPER: string;
32
+ DATA_TABLE_TABLE: string;
33
+ DATA_TABLE_SCROLLABLE_CONTAINER: string;
34
+ DATA_TABLE_HEADER: string;
35
+ DATA_TABLE_ROW_HEADER_CONTENT: string;
36
+ DATA_TABLE_ROW_GROUP_HEADER: string;
37
+ DATA_TABLE_COLUMN_DRAG_OVERLAY: string;
38
+ DATA_TABLE_HEADER_CELL_TITLE: string;
39
+ DATA_TABLE_FILTER_BAR_DD_MENU_BUTTON: string;
40
+ };
@@ -0,0 +1,3 @@
1
+ export declare const FIXED_SIZES: {
2
+ PAGINATION_HEIGHT: number;
3
+ };
@@ -0,0 +1,5 @@
1
+ export * from './constants';
2
+ export * from './fixedSizes';
3
+ export * from './useDatatableConfig';
4
+ export * from './useRowFlattenization';
5
+ export * from './zIndexInternalConfig';
@@ -0,0 +1,2 @@
1
+ import type { TypescriptContext, TypescriptProps } from '../types/props';
2
+ export declare const useDatatableConfig: (props: TypescriptProps) => TypescriptContext;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { ReduxHeader } from '../types/props';
3
+ export declare const useInternalStateConfig: () => {
4
+ drilldownRowId: string | null;
5
+ setDrilldownRowId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
6
+ focusedRowId: string | null;
7
+ setFocusedRowId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
8
+ reduxHeaders: Record<string, ReduxHeader>;
9
+ patchHeader: (headerId: string, newHeader: Partial<ReduxHeader>) => void;
10
+ patchHeaderFilterButtonAndMenu: (headerId: string, value: boolean) => void;
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { TypescriptPagination, TypescriptProps, TypescriptRow } from '../types/props';
2
+ export declare const usePaginationConfig: (props: TypescriptProps, flattenedData: TypescriptRow[]) => [TypescriptRow[] | null, TypescriptPagination];
@@ -0,0 +1,2 @@
1
+ import type { InternalTypescriptRow, TypescriptProps } from '../types/props';
2
+ export declare const useRowFlattenization: (props: TypescriptProps) => [InternalTypescriptRow[], InternalTypescriptRow[]];
@@ -0,0 +1,5 @@
1
+ import type { InternalTypescriptColumn, TypescriptProps } from '../types/props';
2
+ type UseTableColsWithAddonsType = (config: TypescriptProps) => InternalTypescriptColumn[];
3
+ declare const useTableColsWithAddons: UseTableColsWithAddonsType;
4
+ export { useTableColsWithAddons };
5
+ export default useTableColsWithAddons;
@@ -0,0 +1,8 @@
1
+ export declare const ZIndexDataTable: {
2
+ ROW: number;
3
+ EXTERNAL: number;
4
+ HEADER_ROW: number;
5
+ ROW_HOVER: number;
6
+ DROP_INDICATOR: number;
7
+ FOCUS_BORDER: number;
8
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EditableCell: React.ComponentType<any>;
@@ -0,0 +1 @@
1
+ export declare const FilterBarDropdownMenu: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './FilterBarDropdownMenu';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FilterPopoverProps } from './types';
3
+ export declare const FilterPopover: React.ComponentType<FilterPopoverProps>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { InternalTypescriptColumn, ReduxHeader } from '../../types/props';
3
+ export interface FilterPopoverProps {
4
+ column: InternalTypescriptColumn;
5
+ columnId: string;
6
+ triggerIcon: JSX.Element;
7
+ menuContent: JSX.Element;
8
+ onTriggerClick?: (id: string, e: React.MouseEvent) => void;
9
+ onClickOutsideMenu?: (id: string) => void;
10
+ reduxHeader: ReduxHeader;
11
+ innerRef: React.MutableRefObject<HTMLButtonElement | null>;
12
+ ariaLabel: string;
13
+ customStyles?: React.CSSProperties;
14
+ }
@@ -0,0 +1,9 @@
1
+ import type React from 'react';
2
+ import type { FilterPopoverProps } from './types';
3
+ export declare const useGetFilterHandlers: (props: FilterPopoverProps, isMenuOpen: boolean, buttonReference: HTMLButtonElement | null, setIsButtonFocused: React.Dispatch<React.SetStateAction<boolean>>) => {
4
+ handleTriggerClick: (e: React.MouseEvent) => void;
5
+ handleClickOutsideMenu: () => void;
6
+ handleMenuOnKeyDown: (e: React.KeyboardEvent) => void;
7
+ handleTriggerOnFocus: () => void;
8
+ handleTriggerOnBlur: () => void;
9
+ };
@@ -0,0 +1,5 @@
1
+ import type { ReduxHeader } from '../../types/props';
2
+ export declare const useGetFilterVisibility: (reduxHeader: ReduxHeader) => {
3
+ isIconVisible: boolean;
4
+ isMenuOpen: boolean;
5
+ };
@@ -0,0 +1,11 @@
1
+ export declare const FILTER_TYPES: {
2
+ readonly SELECT: "ds-filter-select";
3
+ readonly CREATABLE_SELECT: "ds-filter-creatable-select";
4
+ readonly MULTI_SELECT: "ds-filter-multi-select";
5
+ readonly CREATABLE_MULTI_SELECT: "ds-filter-multi-creatable-select";
6
+ readonly SINGLE_DATE: "ds-filter-single-date";
7
+ readonly DATE_RANGE: "ds-filter-date-range";
8
+ readonly DATE_SWITCHER: "ds-filter-date-switcher";
9
+ readonly NUMBER_RANGE: "ds-filter-number-range";
10
+ readonly CURRENCY_RANGE: "ds-filter-currency-range";
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { TypescriptAppliedFilter, TypescriptRow } from '../../types/props';
2
+ export declare const applyOutOfTheBoxFilters: (data: TypescriptRow[], filters: TypescriptAppliedFilter[]) => TypescriptRow[];
@@ -0,0 +1,5 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const currencyRangeFilterFn: FilterFn<{
3
+ from: string;
4
+ to: string;
5
+ }>;
@@ -0,0 +1,5 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const dateRangeFilterFn: FilterFn<{
3
+ startDate: string;
4
+ endDate: string;
5
+ }>;
@@ -0,0 +1,6 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const dateSwitcherFilterFn: FilterFn<{
3
+ startDate: string;
4
+ endDate: string;
5
+ isDateRange: boolean;
6
+ }>;
@@ -0,0 +1,7 @@
1
+ export * from './applyOutOfTheBoxFilters';
2
+ export * from './singleDateFilterFn';
3
+ export * from './singleSelectFilterFn';
4
+ export * from './multiSelectFilterFn';
5
+ export * from './numberRangeFilterFn';
6
+ export * from './currencyRangeFilterFn';
7
+ export * from './dateRangeFilterFn';
@@ -0,0 +1,4 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const multiSelectFilterFn: FilterFn<{
3
+ label: string;
4
+ }[]>;
@@ -0,0 +1,5 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const numberRangeFilterFn: FilterFn<{
3
+ from: number;
4
+ to: number;
5
+ }>;
@@ -0,0 +1,2 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const singleDateFilterFn: FilterFn<string>;
@@ -0,0 +1,4 @@
1
+ import type { FilterFn } from './types';
2
+ export declare const singleSelectFilterFn: FilterFn<{
3
+ label: string;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import type { TypescriptRow } from '../../types/props';
2
+ export type FilterFn<T = unknown> = (unfilteredData: TypescriptRow[], filterKey: string, filterValue: T) => TypescriptRow[];
@@ -0,0 +1,3 @@
1
+ export declare const isSameOrBefore: (date1: string, date2: string) => boolean;
2
+ export declare const isSameOrAfter: (date1: string, date2: string) => boolean;
3
+ export declare const isSame: (date1: string, date2: string) => boolean;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { RowVariantProps } from '../../parts/RowVariants/types';
3
+ export declare const DefaultRowContentRenderer: React.ComponentType<RowVariantProps>;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { RowVariantProps } from '../../parts/RowVariants/types';
3
+ import type { InternalTypescriptRow } from '../../types/props';
4
+ interface RowRendererProps {
5
+ row: InternalTypescriptRow;
6
+ compact?: boolean;
7
+ itemIndex: number;
8
+ isDragOverlay: boolean;
9
+ minHeight: string;
10
+ height: string;
11
+ rowsLayout?: string[] | number[];
12
+ colsLayout?: (string | number)[];
13
+ CustomRowContentRenderer?: React.ComponentType<RowVariantProps>;
14
+ focusedRowId: string | null;
15
+ drilldownRowId: string | null;
16
+ backgroundColor?: string;
17
+ }
18
+ declare const RowRenderer: React.ComponentType<RowRendererProps>;
19
+ export { RowRenderer };
20
+ export default RowRenderer;
@@ -0,0 +1,16 @@
1
+ import type React from 'react';
2
+ import type { SortableItemContextType } from '../../parts/HoC/SortableItemContext';
3
+ import type { InternalTypescriptRow } from '../../types/props';
4
+ export declare const useRowRendererHandlers: ({ row, itemIndex, items, draggableProps, isDragOverlay, drilldownRowId, }: {
5
+ row: InternalTypescriptRow;
6
+ itemIndex: number;
7
+ items: InternalTypescriptRow[];
8
+ draggableProps: SortableItemContextType['draggableProps'];
9
+ isDragOverlay: boolean;
10
+ drilldownRowId: string | null;
11
+ }) => {
12
+ handleItemClick: React.MouseEventHandler;
13
+ handleKeyDown: React.KeyboardEventHandler;
14
+ handleOnBlur: React.FocusEventHandler;
15
+ handleOnFocus: React.FocusEventHandler;
16
+ };
@@ -0,0 +1,15 @@
1
+ import type { ColsLayoutStyle } from '../../configs/constants';
2
+ import type { InternalTypescriptRow } from '../../types/props';
3
+ import { useRowStyle } from './useRowStyle';
4
+ export declare const useRowRendererProperties: ({ row, }: {
5
+ row: InternalTypescriptRow;
6
+ }) => {
7
+ userDataProperties: Record<string, unknown>;
8
+ colsLayoutStyle: ColsLayoutStyle;
9
+ totalColumnsWidth: string | number | undefined;
10
+ } & {
11
+ rowStyle: Record<string, unknown>;
12
+ shouldAppendDottedBorder: boolean;
13
+ dropIndicatorPosition: false | import("../../types/props").DropIndicatorPosition;
14
+ isDropValid: boolean;
15
+ };
@@ -0,0 +1,7 @@
1
+ import type { InternalTypescriptRow, DropIndicatorPosition } from '../../types/props';
2
+ export declare const useRowStyle: (row: InternalTypescriptRow) => {
3
+ rowStyle: Record<string, unknown>;
4
+ shouldAppendDottedBorder: boolean;
5
+ dropIndicatorPosition: false | DropIndicatorPosition;
6
+ isDropValid: boolean;
7
+ };
@@ -0,0 +1,10 @@
1
+ export declare const ROW_VARIANTS: {
2
+ readonly HEADER_GROUP: "ds-header-group-row";
3
+ readonly PRIMARY: "ds-primary-row";
4
+ readonly SECONDARY: "ds-secondary-row";
5
+ readonly COMPACT_PRIMARY: "ds-compact-primary-row";
6
+ readonly COMPACT_SECONDARY: "ds-compact-secondary-row";
7
+ readonly SKELETON: "ds-skeleton-row";
8
+ };
9
+ export declare const ROW_VARIANT_KEY = "row_variant_type";
10
+ export declare const ROW_VARIANT_COMPACT_KEY = "row_variant_compact";
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { TypescriptCell } from '../../types/props';
3
+ interface ToolbarProps {
4
+ isRowSelected?: boolean;
5
+ cell: TypescriptCell;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const Toolbar: React.ComponentType<ToolbarProps>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Toolbar } from './Toolbar';
@@ -0,0 +1,5 @@
1
+ export declare const groupBy: (data: any, headerKey: any) => {
2
+ dimsumHeaderValue: string;
3
+ subRows: unknown;
4
+ uid: string;
5
+ }[];
@@ -0,0 +1,8 @@
1
+ export { FilterPopover } from './FilterPopover';
2
+ export { EditableCell } from './EditableCell';
3
+ export { Toolbar } from './Toolbar';
4
+ export { groupBy } from './groupBy';
5
+ export * from './FilterTypes';
6
+ export * from './RowVariants';
7
+ export * from './Filters';
8
+ export * from './FilterBar';
@@ -0,0 +1,2 @@
1
+ import type { InternalTypescriptRow, TypescriptColumn } from '../types/props';
2
+ export declare const addCellData: (datum: InternalTypescriptRow, columns: TypescriptColumn[]) => void;
@@ -0,0 +1,9 @@
1
+ export declare const cellPadding: ({ theme, column }: {
2
+ theme: any;
3
+ column: any;
4
+ }) => string;
5
+ export declare const columnPadding: ({ theme, column, shouldShowDnD, }: {
6
+ theme: any;
7
+ column: any;
8
+ shouldShowDnD: boolean;
9
+ }) => string;
@@ -0,0 +1,3 @@
1
+ import { ColsLayoutStyle } from '../configs/constants';
2
+ import type { TypescriptColumn } from '../types/props';
3
+ export declare const columnsToGrid: (columns: TypescriptColumn[], colsLayoutStyle: ColsLayoutStyle) => string[];
@@ -0,0 +1,2 @@
1
+ import type { InternalTypescriptRow, UniqueRowAccessorType } from '../types/props';
2
+ export declare const getIdFromUniqueRowAccessor: (uniqueRowAccessor: UniqueRowAccessorType, row: Pick<InternalTypescriptRow, 'id' | 'original'>) => string;
@@ -0,0 +1,6 @@
1
+ export * from './sizeToCss';
2
+ export * from './columnsToGrid';
3
+ export * from './cellPadding';
4
+ export * from './refs-helpers';
5
+ export * from './getIdFromUniqueRowAccessor';
6
+ export * from './addCellData';
@@ -0,0 +1 @@
1
+ export declare const setMultipleRefs: (...refs: any[]) => (newRef: any) => void;
@@ -0,0 +1 @@
1
+ export declare const sizeToCss: (size: any) => any;