@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.
- package/dist/types/DataTable.d.ts +82 -0
- package/dist/types/DataTableContext.d.ts +7 -0
- package/dist/types/DataTableSchema.d.ts +2 -0
- package/dist/types/addons/Columns/ColumnAction/ColumnAction.d.ts +4 -0
- package/dist/types/addons/Columns/ColumnDragHandle/ColumnDragHandle.d.ts +2 -0
- package/dist/types/addons/Columns/ColumnExpand/ColumnExpand.d.ts +2 -0
- package/dist/types/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.d.ts +2 -0
- package/dist/types/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.d.ts +2 -0
- package/dist/types/addons/Columns/index.d.ts +6 -0
- package/dist/types/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.d.ts +2 -0
- package/dist/types/addons/Editables/DateEditableCell/DateEditableCell.d.ts +1 -0
- package/dist/types/addons/Editables/TextEditableCell/TextEditableCell.d.ts +2 -0
- package/dist/types/addons/Editables/index.d.ts +4 -0
- package/dist/types/addons/Filters/Components/CurrencyRangeFilter/index.d.ts +3 -0
- package/dist/types/addons/Filters/Components/DateRangeFilter/index.d.ts +3 -0
- package/dist/types/addons/Filters/Components/DateSwitcherFilter/index.d.ts +3 -0
- package/dist/types/addons/Filters/Components/NumberRangeFilter/index.d.ts +3 -0
- package/dist/types/addons/Filters/Components/SelectFilter/BaseSelectFilter.d.ts +16 -0
- package/dist/types/addons/Filters/Components/SelectFilter/MultiCreatableFilter.d.ts +3 -0
- package/dist/types/addons/Filters/Components/SelectFilter/MultiSelectFilter.d.ts +3 -0
- package/dist/types/addons/Filters/Components/SelectFilter/SingleCreatableFilter.d.ts +3 -0
- package/dist/types/addons/Filters/Components/SelectFilter/SingleSelectFilter.d.ts +3 -0
- package/dist/types/addons/Filters/Components/SingleDateFilter/index.d.ts +3 -0
- package/dist/types/addons/Filters/Components/index.d.ts +9 -0
- package/dist/types/addons/Filters/index.d.ts +1 -0
- package/dist/types/addons/Pagination/Pagination.d.ts +2 -0
- package/dist/types/addons/Pagination/index.d.ts +1 -0
- package/dist/types/configs/constants.d.ts +40 -0
- package/dist/types/configs/fixedSizes.d.ts +3 -0
- package/dist/types/configs/index.d.ts +5 -0
- package/dist/types/configs/useDatatableConfig.d.ts +2 -0
- package/dist/types/configs/useInternalStateConfig.d.ts +11 -0
- package/dist/types/configs/usePaginationConfig.d.ts +2 -0
- package/dist/types/configs/useRowFlattenization.d.ts +2 -0
- package/dist/types/configs/useTableColsWithAddons.d.ts +5 -0
- package/dist/types/configs/zIndexInternalConfig.d.ts +8 -0
- package/dist/types/exported-related/EditableCell.d.ts +2 -0
- package/dist/types/exported-related/FilterBar/FilterBarDropdownMenu.d.ts +1 -0
- package/dist/types/exported-related/FilterBar/index.d.ts +1 -0
- package/dist/types/exported-related/FilterPopover/index.d.ts +3 -0
- package/dist/types/exported-related/FilterPopover/types.d.ts +14 -0
- package/dist/types/exported-related/FilterPopover/useGetFilterHandlers.d.ts +9 -0
- package/dist/types/exported-related/FilterPopover/useGetFilterVisibility.d.ts +5 -0
- package/dist/types/exported-related/FilterTypes.d.ts +11 -0
- package/dist/types/exported-related/Filters/applyOutOfTheBoxFilters.d.ts +2 -0
- package/dist/types/exported-related/Filters/currencyRangeFilterFn.d.ts +5 -0
- package/dist/types/exported-related/Filters/dateRangeFilterFn.d.ts +5 -0
- package/dist/types/exported-related/Filters/dateSwitcherFilterFn.d.ts +6 -0
- package/dist/types/exported-related/Filters/index.d.ts +7 -0
- package/dist/types/exported-related/Filters/multiSelectFilterFn.d.ts +4 -0
- package/dist/types/exported-related/Filters/numberRangeFilterFn.d.ts +5 -0
- package/dist/types/exported-related/Filters/singleDateFilterFn.d.ts +2 -0
- package/dist/types/exported-related/Filters/singleSelectFilterFn.d.ts +4 -0
- package/dist/types/exported-related/Filters/types.d.ts +2 -0
- package/dist/types/exported-related/Filters/utilities.d.ts +3 -0
- package/dist/types/exported-related/RowRenderer/DefaultRowContentRenderer.d.ts +3 -0
- package/dist/types/exported-related/RowRenderer/index.d.ts +20 -0
- package/dist/types/exported-related/RowRenderer/useRowRendererHandlers.d.ts +16 -0
- package/dist/types/exported-related/RowRenderer/useRowRendererProperties.d.ts +15 -0
- package/dist/types/exported-related/RowRenderer/useRowStyle.d.ts +7 -0
- package/dist/types/exported-related/RowVariants.d.ts +10 -0
- package/dist/types/exported-related/Toolbar/Toolbar.d.ts +9 -0
- package/dist/types/exported-related/Toolbar/index.d.ts +1 -0
- package/dist/types/exported-related/groupBy.d.ts +5 -0
- package/dist/types/exported-related/index.d.ts +8 -0
- package/dist/types/helpers/addCellData.d.ts +2 -0
- package/dist/types/helpers/cellPadding.d.ts +9 -0
- package/dist/types/helpers/columnsToGrid.d.ts +3 -0
- package/dist/types/helpers/getIdFromUniqueRowAccessor.d.ts +2 -0
- package/dist/types/helpers/index.d.ts +6 -0
- package/dist/types/helpers/refs-helpers.d.ts +1 -0
- package/dist/types/helpers/sizeToCss.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/parts/Cells/Cell.d.ts +13 -0
- package/dist/types/parts/Cells/index.d.ts +9 -0
- package/dist/types/parts/Cells/useCellStyle.d.ts +3 -0
- package/dist/types/parts/DnDHandle.d.ts +9 -0
- package/dist/types/parts/DropIndicator.d.ts +11 -0
- package/dist/types/parts/EmptyContent.d.ts +6 -0
- package/dist/types/parts/FilterBar/FiltersBar.d.ts +2 -0
- package/dist/types/parts/FilterBar/components/DateRangePill.d.ts +5 -0
- package/dist/types/parts/FilterBar/components/DateSwitcherPill.d.ts +6 -0
- package/dist/types/parts/FilterBar/components/MultiSelectPill.d.ts +2 -0
- package/dist/types/parts/FilterBar/components/NumberRangePill.d.ts +5 -0
- package/dist/types/parts/FilterBar/components/SelectPill.d.ts +2 -0
- package/dist/types/parts/FilterBar/components/SingleDatePill.d.ts +2 -0
- package/dist/types/parts/FilterBar/components/index.d.ts +6 -0
- package/dist/types/parts/FilterBar/index.d.ts +1 -0
- package/dist/types/parts/FilterBar/styled.d.ts +3 -0
- package/dist/types/parts/FilterBar/types.d.ts +31 -0
- package/dist/types/parts/Filters/index.d.ts +3 -0
- package/dist/types/parts/Headers/EmptyChildrenGroup.d.ts +2 -0
- package/dist/types/parts/Headers/HeaderCell.d.ts +9 -0
- package/dist/types/parts/Headers/HeaderCellGroup.d.ts +13 -0
- package/dist/types/parts/Headers/HeaderCellTitle.d.ts +11 -0
- package/dist/types/parts/Headers/HeaderResizer.d.ts +5 -0
- package/dist/types/parts/Headers/RequiredDot.d.ts +2 -0
- package/dist/types/parts/Headers/index.d.ts +2 -0
- package/dist/types/parts/Headers/useHeaderCellConfig.d.ts +15 -0
- package/dist/types/parts/Headers/useHeaderCellHandlers.d.ts +18 -0
- package/dist/types/parts/HoC/DnDTreeContext.d.ts +12 -0
- package/dist/types/parts/HoC/SortableItemContext.d.ts +7 -0
- package/dist/types/parts/HoC/withConditionalDnDColumnContext.d.ts +8 -0
- package/dist/types/parts/HoC/withConditionalDnDRowContext.d.ts +2 -0
- package/dist/types/parts/HoC/withConditionalDnDSortableContext.d.ts +3 -0
- package/dist/types/parts/HoC/withDnDSortableColumnContext.d.ts +2 -0
- package/dist/types/parts/HoC/withDnDSortableRowContext.d.ts +2 -0
- package/dist/types/parts/Loader.d.ts +3 -0
- package/dist/types/parts/Row.d.ts +4 -0
- package/dist/types/parts/RowVariants/RowVariantHeader.d.ts +3 -0
- package/dist/types/parts/RowVariants/RowVariantPrimary.d.ts +3 -0
- package/dist/types/parts/RowVariants/RowVariantSecondary.d.ts +3 -0
- package/dist/types/parts/RowVariants/RowVariantSkeleton.d.ts +3 -0
- package/dist/types/parts/RowVariants/index.d.ts +12 -0
- package/dist/types/parts/RowVariants/types.d.ts +20 -0
- package/dist/types/parts/Rows.d.ts +2 -0
- package/dist/types/parts/SortByCaret.d.ts +4 -0
- package/dist/types/parts/SortableHeaderCell.d.ts +7 -0
- package/dist/types/parts/TableContent.d.ts +2 -0
- package/dist/types/parts/VirtualRowsList.d.ts +2 -0
- package/dist/types/parts/index.d.ts +5 -0
- package/dist/types/parts/internal.d.ts +2 -0
- package/dist/types/styled.d.ts +46 -0
- package/dist/types/tests/a11y/aria-level.test.d.ts +1 -0
- package/dist/types/tests/callbacks/pagination.events.test.d.ts +1 -0
- package/dist/types/tests/callbacks/row.events.test.d.ts +1 -0
- package/dist/types/tests/keyboard/dragAndDropColumns.test.d.ts +1 -0
- package/dist/types/tests/keyboard/dragAndDropRows.test.d.ts +1 -0
- package/dist/types/tests/keyboard/expandable.test.d.ts +1 -0
- package/dist/types/tests/keyboard/grouped.test.d.ts +1 -0
- package/dist/types/tests/keyboard/masterDetails.test.d.ts +1 -0
- package/dist/types/tests/keyboard/navigation.test.d.ts +1 -0
- package/dist/types/tests/keyboard/selectMultiple.test.d.ts +1 -0
- package/dist/types/tests/keyboard/selectSingle.test.d.ts +1 -0
- package/dist/types/tests/keyboard/sort.test.d.ts +1 -0
- package/dist/types/tests/render/empty-state.test.d.ts +1 -0
- package/dist/types/tests/render/toolbar.test.d.ts +1 -0
- package/dist/types/tests/utils/index.d.ts +46 -0
- package/dist/types/types/FunctionalHoC.d.ts +2 -0
- package/dist/types/types/props.d.ts +266 -0
- 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,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 @@
|
|
|
1
|
+
export declare const DateEditableCell: (props: any) => JSX.Element;
|
|
@@ -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,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 @@
|
|
|
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,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,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 @@
|
|
|
1
|
+
export declare const FilterBarDropdownMenu: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterBarDropdownMenu';
|
|
@@ -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,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,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,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,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 @@
|
|
|
1
|
+
export declare const setMultipleRefs: (...refs: any[]) => (newRef: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sizeToCss: (size: any) => any;
|