@elliemae/ds-datagrids 2.3.0-alpha.8 → 2.3.0-alpha.9
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/DSDataGrid.d.ts +863 -0
- package/dist/types/DataGridImpl.d.ts +13 -0
- package/dist/types/PaginatedDataGrid.d.ts +15 -0
- package/dist/types/blockNames.d.ts +4 -0
- package/dist/types/columns/IconColumn.d.ts +36 -0
- package/dist/types/columns/NumberColumn.d.ts +4 -0
- package/dist/types/components/BodyCell.d.ts +34 -0
- package/dist/types/components/BodyList.d.ts +12 -0
- package/dist/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
- package/dist/types/components/ColumnsOptionsMenuSection.d.ts +9 -0
- package/dist/types/components/EmptyState.d.ts +7 -0
- package/dist/types/components/HeaderCell.d.ts +19 -0
- package/dist/types/components/List.d.ts +3 -0
- package/dist/types/components/ListItem.d.ts +3 -0
- package/dist/types/components/NoResults.d.ts +8 -0
- package/dist/types/components/RowsLoader.d.ts +5 -0
- package/dist/types/components/Table.d.ts +8 -0
- package/dist/types/components/TableBody.d.ts +4 -0
- package/dist/types/components/TableHeader.d.ts +4 -0
- package/dist/types/components/footer/addOptionalFooterComponents.d.ts +7 -0
- package/dist/types/components/header/PrimaryControls.d.ts +6 -0
- package/dist/types/components/header/addOptionalHeaderComponents.d.ts +11 -0
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/components/renderers/defaultClassedRenderers.d.ts +11 -0
- package/dist/types/components/renderers/index.d.ts +15 -0
- package/dist/types/components/renderers/renderRowsLoader.d.ts +2 -0
- package/dist/types/components/tableContext.d.ts +2 -0
- package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +1 -0
- package/dist/types/defaultPlugins.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +1 -0
- package/dist/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
- package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +1 -0
- package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +2 -0
- package/dist/types/plugins/column-dnd/index.d.ts +1 -0
- package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +1 -0
- package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +6 -0
- package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +1 -0
- package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +10 -0
- package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -0
- package/dist/types/plugins/column-sizing/index.d.ts +1 -0
- package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +18 -0
- package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +22 -0
- package/dist/types/plugins/column-sizing/utils.d.ts +5 -0
- package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +1 -0
- package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +4 -0
- package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +12 -0
- package/dist/types/plugins/custom-cell-renderer/index.d.ts +1 -0
- package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +12 -0
- package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +24 -0
- package/dist/types/plugins/editable/EditableComponents/index.d.ts +2 -0
- package/dist/types/plugins/editable/EditablePlugin.d.ts +1 -0
- package/dist/types/plugins/editable/decorateEditable.d.ts +7 -0
- package/dist/types/plugins/editable/getEditorComponent.d.ts +7 -0
- package/dist/types/plugins/editable/index.d.ts +2 -0
- package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +29 -0
- package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +1 -0
- package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +12 -0
- package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +10 -0
- package/dist/types/plugins/expandable-grid/index.d.ts +2 -0
- package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +1 -0
- package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +14 -0
- package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +4 -0
- package/dist/types/plugins/export-data/index.d.ts +1 -0
- package/dist/types/plugins/filterable/FilterablePlugin.d.ts +1 -0
- package/dist/types/plugins/filterable/addFilterToColumn.d.ts +1 -0
- package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +29 -0
- package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +31 -0
- package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +28 -0
- package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +31 -0
- package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +36 -0
- package/dist/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +1 -0
- package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -0
- package/dist/types/plugins/filterable/filterableFormatter.d.ts +12 -0
- package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +3 -0
- package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
- package/dist/types/plugins/filterable/helper.d.ts +22 -0
- package/dist/types/plugins/filterable/index.d.ts +1 -0
- package/dist/types/plugins/filterable/useFilterableState.d.ts +18 -0
- package/dist/types/plugins/grouping-by/GroupingByPlugin.d.ts +1 -0
- package/dist/types/plugins/grouping-grid/GroupingPlugin.d.ts +1 -0
- package/dist/types/plugins/grouping-grid/walkStrategy.d.ts +9 -0
- package/dist/types/plugins/index.d.ts +16 -0
- package/dist/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +1 -0
- package/dist/types/plugins/infinite-scrolling/index.d.ts +1 -0
- package/dist/types/plugins/pagination/PaginationPlugin.d.ts +1 -0
- package/dist/types/plugins/pagination/components/Pagination.d.ts +11 -0
- package/dist/types/plugins/pagination/components/Paginator.d.ts +10 -0
- package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +10 -0
- package/dist/types/plugins/pagination/helper.d.ts +18 -0
- package/dist/types/plugins/pagination/index.d.ts +1 -0
- package/dist/types/plugins/pagination/usePaginationState.d.ts +9 -0
- package/dist/types/plugins/resizable/ResizablePlugin.d.ts +1 -0
- package/dist/types/plugins/resizable/decorateResizable.d.ts +4 -0
- package/dist/types/plugins/resizable/index.d.ts +1 -0
- package/dist/types/plugins/resizable/useResizeHandle.d.ts +13 -0
- package/dist/types/plugins/resizable/utils.d.ts +3 -0
- package/dist/types/plugins/row-dnd/DndRowsPlugin.d.ts +1 -0
- package/dist/types/plugins/row-dnd/index.d.ts +1 -0
- package/dist/types/plugins/selectable/SelectablePlugin.d.ts +1 -0
- package/dist/types/plugins/selectable/addSelectableColumn.d.ts +30 -0
- package/dist/types/plugins/selectable/helper.d.ts +5 -0
- package/dist/types/plugins/selectable/index.d.ts +1 -0
- package/dist/types/plugins/selectable/selectableFormatter.d.ts +10 -0
- package/dist/types/plugins/selectable/useSelectableState.d.ts +9 -0
- package/dist/types/plugins/sortable/SortablePlugin.d.ts +1 -0
- package/dist/types/plugins/sortable/checkIfSortable.d.ts +2 -0
- package/dist/types/plugins/sortable/index.d.ts +1 -0
- package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +7 -0
- package/dist/types/plugins/sortable/sortTree.d.ts +3 -0
- package/dist/types/plugins/sortable/sorter.d.ts +12 -0
- package/dist/types/plugins/sortable/useSortableState.d.ts +8 -0
- package/dist/types/plugins/toolbar/RowRenderer.d.ts +11 -0
- package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +1 -0
- package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +8 -0
- package/dist/types/plugins/toolbar/index.d.ts +1 -0
- package/dist/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
- package/dist/types/plugins/virtualization/VirtualizationPlugin.d.ts +1 -0
- package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +33 -0
- package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
- package/dist/types/plugins/virtualization/helper.d.ts +1 -0
- package/dist/types/plugins/virtualization/index.d.ts +1 -0
- package/dist/types/renders/CellWithAddons.d.ts +52 -0
- package/dist/types/renders/index.d.ts +2 -0
- package/dist/types/renders/styled.d.ts +4 -0
- package/dist/types/rowSizes.d.ts +11 -0
- package/dist/types/stories/datagrids-export.stories.d.ts +1 -0
- package/dist/types/stories/datagrids-selectable-multi.stories.d.ts +1 -0
- package/dist/types/tests/DataGrid-Columns.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Editable.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Export.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Filter-helper.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Filterable-Dates.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Filterable-State.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-RowDnd.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Selectable.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Sortable.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Toolbar.test.d.ts +1 -0
- package/dist/types/tests/DataGrid-Virtualization.test.d.ts +1 -0
- package/dist/types/tests/DataGrids-ColumnSizing.test.d.ts +1 -0
- package/dist/types/tests/DataGrids-ConditionalPagination.test.d.ts +1 -0
- package/dist/types/tests/DataGrids-Rows.test.d.ts +1 -0
- package/dist/types/tests/DataGrids.test.d.ts +1 -0
- package/dist/types/utilities/getPluginsFromProps.d.ts +2 -0
- package/dist/types/utilities/getScrollbarSize.d.ts +1 -0
- package/dist/types/utilities/normalizeData.d.ts +3 -0
- package/package.json +20 -20
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DataGridImpl: ({ className, renderers, columns, rows, containerProps, plugins: pluginsProp, normalizeDataKeys, ...otherProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
className: any;
|
|
5
|
+
renderers: any;
|
|
6
|
+
columns: any;
|
|
7
|
+
rows: any;
|
|
8
|
+
containerProps: any;
|
|
9
|
+
plugins: any;
|
|
10
|
+
normalizeDataKeys: any;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export { DataGridImpl };
|
|
13
|
+
export default DataGridImpl;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function PaginatedDataGrid({ columns, rows, showRowsLoader, noResultsPlaceholder, rowsLoaderRenderer, maxPerPage, minPerPage, onPageSelect, onPerPage, pagination, ...otherProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
columns: any;
|
|
5
|
+
rows: any;
|
|
6
|
+
showRowsLoader: any;
|
|
7
|
+
noResultsPlaceholder: any;
|
|
8
|
+
rowsLoaderRenderer?: (() => JSX.Element) | undefined;
|
|
9
|
+
maxPerPage: any;
|
|
10
|
+
minPerPage: any;
|
|
11
|
+
onPageSelect: any;
|
|
12
|
+
onPerPage: any;
|
|
13
|
+
pagination: any;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
export default PaginatedDataGrid;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconColumn: ({ property, label, headerIcon, getRowIcon, isVisited, intent, width, onClick, visible, resizable, sortable, searchable, }: {
|
|
3
|
+
property: any;
|
|
4
|
+
label: any;
|
|
5
|
+
headerIcon: any;
|
|
6
|
+
getRowIcon?: (() => null) | undefined;
|
|
7
|
+
isVisited?: (() => null) | undefined;
|
|
8
|
+
intent?: string | undefined;
|
|
9
|
+
width?: number | undefined;
|
|
10
|
+
onClick: any;
|
|
11
|
+
visible: any;
|
|
12
|
+
resizable: any;
|
|
13
|
+
sortable: any;
|
|
14
|
+
searchable: any;
|
|
15
|
+
}) => {
|
|
16
|
+
property: any;
|
|
17
|
+
label: any;
|
|
18
|
+
headerStyle: {
|
|
19
|
+
justifyContent: string;
|
|
20
|
+
};
|
|
21
|
+
header: {
|
|
22
|
+
formatters: (() => JSX.Element)[];
|
|
23
|
+
};
|
|
24
|
+
cell: {
|
|
25
|
+
formatters: ((value: any, extraParams: any) => JSX.Element)[];
|
|
26
|
+
};
|
|
27
|
+
cellStyle: {
|
|
28
|
+
justifyContent: string;
|
|
29
|
+
};
|
|
30
|
+
width: number;
|
|
31
|
+
visible: any;
|
|
32
|
+
resizable: any;
|
|
33
|
+
sortable: any;
|
|
34
|
+
searchable: any;
|
|
35
|
+
};
|
|
36
|
+
export default IconColumn;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
declare const BodyCell: {
|
|
4
|
+
({ component: Component, classProps, rowProps, column, columnIndex, rowIndex, grid }: {
|
|
5
|
+
component: any;
|
|
6
|
+
classProps: any;
|
|
7
|
+
rowProps: any;
|
|
8
|
+
column: any;
|
|
9
|
+
columnIndex: any;
|
|
10
|
+
rowIndex: any;
|
|
11
|
+
grid: any;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
component: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
15
|
+
classProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
+
wrapText: PropTypes.Requireable<boolean>;
|
|
17
|
+
}>>;
|
|
18
|
+
rowProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
19
|
+
rowData: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
20
|
+
rowKey: PropTypes.Requireable<string>;
|
|
21
|
+
isScrolling: PropTypes.Requireable<boolean>;
|
|
22
|
+
}>>;
|
|
23
|
+
column: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
property: PropTypes.Requireable<string>;
|
|
25
|
+
cell: PropTypes.Requireable<any>;
|
|
26
|
+
props: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
27
|
+
}>>;
|
|
28
|
+
columnIndex: PropTypes.Requireable<number>;
|
|
29
|
+
rowIndex: PropTypes.Requireable<number>;
|
|
30
|
+
grid: PropTypes.Requireable<any>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { BodyCell };
|
|
34
|
+
export default BodyCell;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare function BodyWrapperDefaultRenderer({ component: Component, rows, rowRenderer, noResultsPlaceholder, innerRef, innerBodyRef, ...otherBodyProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
component: any;
|
|
5
|
+
rows: any;
|
|
6
|
+
rowRenderer: any;
|
|
7
|
+
noResultsPlaceholder: any;
|
|
8
|
+
innerRef: any;
|
|
9
|
+
innerBodyRef: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
declare const _default: React.MemoExoticComponent<typeof BodyWrapperDefaultRenderer>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const getColumnVisibilityMenuOption: ({ columns, onColumnVisibilityChange, searchable, height, }: {
|
|
2
|
+
columns: any;
|
|
3
|
+
onColumnVisibilityChange: any;
|
|
4
|
+
searchable: any;
|
|
5
|
+
height: any;
|
|
6
|
+
}) => {
|
|
7
|
+
type: string;
|
|
8
|
+
id: string;
|
|
9
|
+
multi: boolean;
|
|
10
|
+
searchable: any;
|
|
11
|
+
closeOnClick: boolean;
|
|
12
|
+
active: any;
|
|
13
|
+
items: any;
|
|
14
|
+
height: any;
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ColumnsOptionsMenuSection: ({ columns, onColumnVisibilityChange, searchable, height, }: {
|
|
3
|
+
columns: any;
|
|
4
|
+
onColumnVisibilityChange: any;
|
|
5
|
+
searchable?: boolean | undefined;
|
|
6
|
+
height: any;
|
|
7
|
+
}) => () => JSX.Element;
|
|
8
|
+
export { ColumnsOptionsMenuSection };
|
|
9
|
+
export default ColumnsOptionsMenuSection;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const EmptyState: ({ primaryMessage, secondaryMessage, buttonLabel, onButtonClick, }: {
|
|
3
|
+
primaryMessage?: string | undefined;
|
|
4
|
+
secondaryMessage: any;
|
|
5
|
+
buttonLabel: any;
|
|
6
|
+
onButtonClick?: (() => void) | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export declare const HeaderCell: {
|
|
4
|
+
({ column, columnIndex, component: Component, classProps, grid }: {
|
|
5
|
+
column: any;
|
|
6
|
+
columnIndex: any;
|
|
7
|
+
component: any;
|
|
8
|
+
classProps: any;
|
|
9
|
+
grid: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
column: PropTypes.Requireable<any>;
|
|
13
|
+
columnIndex: PropTypes.Requireable<number>;
|
|
14
|
+
component: PropTypes.Requireable<any>;
|
|
15
|
+
classProps: PropTypes.Requireable<any>;
|
|
16
|
+
grid: PropTypes.Requireable<any>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default HeaderCell;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export declare const addOptionalHeaderComponents: {
|
|
4
|
+
({ grid }: {
|
|
5
|
+
grid: any;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
propTypes: {
|
|
8
|
+
grid: PropTypes.Requireable<any>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default addOptionalHeaderComponents;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const NoResultsContainer: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
3
|
+
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
4
|
+
export declare const DatagridWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare const TableWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
6
|
+
export declare const HeaderWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
7
|
+
export declare const HeaderRow: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
8
|
+
export declare const HeaderCell: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
9
|
+
export declare const BodyWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
10
|
+
export declare const BodyRow: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
11
|
+
export declare const BodyCell: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export { renderRowsLoader } from './renderRowsLoader';
|
|
3
|
+
export declare const defaultRenderers: {
|
|
4
|
+
table: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
|
+
header: {
|
|
6
|
+
wrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
7
|
+
row: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
8
|
+
cell: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
9
|
+
};
|
|
10
|
+
body: {
|
|
11
|
+
wrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
12
|
+
row: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
13
|
+
cell: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultPlugins: any[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { DSDataGrid } from './DSDataGrid';
|
|
2
|
+
export { DSDataGridsWithSchema } from './DSDataGrid';
|
|
3
|
+
export { ColumnsOptionsMenuSection } from './components/ColumnsOptionsMenuSection';
|
|
4
|
+
export { getColumnVisibilityMenuOption } from './components/ColumnVisibilityMenuOption';
|
|
5
|
+
export { EmptyState } from './components/EmptyState';
|
|
6
|
+
export { IconColumn } from './columns/IconColumn';
|
|
7
|
+
export { BodyHeaderScrollSyncPlugin, DndColumnsPlugin, ColumnSizingPlugin, CustomRendererPlugin, EditablePlugin, ComboBox, TextBox, ExpandablePlugin, ExpandableColumn, FilterablePlugin, InfiniteScrollPlugin, PaginationPlugin, ResizablePlugin, DndRowsPlugin, SelectablePlugin, SortablePlugin, ToolbarPlugin, ExportDataPlugin, VirtualizationPlugin, } from './plugins';
|
|
8
|
+
export { RowSizes, RowSizesOptions, RowSizesOptionsArr } from './rowSizes';
|
|
9
|
+
export { CellWithAddons, CellContainer } from './renders';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BodyHeaderScrollSyncPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BodyHeaderScrollSyncPlugin } from './BodyHeaderScrollSyncPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DndColumnsPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DndColumnsPlugin } from './DndColumnsPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ColumnSizingPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function decorateColumn(column: any, grid: any, index: any): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getTableProps(tableProps: any, { refs, tableRef, bodyWidth, scrollbarWidth, isDragging, columnSizeService, updateRowWidth, columns }: {
|
|
2
|
+
refs: any;
|
|
3
|
+
tableRef: any;
|
|
4
|
+
bodyWidth: any;
|
|
5
|
+
scrollbarWidth: any;
|
|
6
|
+
isDragging: any;
|
|
7
|
+
columnSizeService: any;
|
|
8
|
+
updateRowWidth: any;
|
|
9
|
+
columns: any;
|
|
10
|
+
}): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ColumnSizingPlugin } from './ColumnSizingPlugin';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const useColumnSizeService: (instance: any) => {
|
|
2
|
+
columns: {};
|
|
3
|
+
expandedToContentColumns: {};
|
|
4
|
+
initialUsedSpace: {
|
|
5
|
+
space: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
percentage: number;
|
|
8
|
+
};
|
|
9
|
+
increaseUsedSpace: (space: any, columnUuid: any) => void;
|
|
10
|
+
registerColumn: (column: any) => (node: any) => any;
|
|
11
|
+
unregisterColumn: (column: any) => void;
|
|
12
|
+
updateMissingWidths: (totalWidth: any) => void;
|
|
13
|
+
computeColumnsTotalSize: () => unknown;
|
|
14
|
+
setActualColumnsSizesFixed: () => void;
|
|
15
|
+
expandableGridDetailWidth: number;
|
|
16
|
+
expandableColumnWidth: number;
|
|
17
|
+
};
|
|
18
|
+
export default useColumnSizeService;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const RowStylesheetHelper: ({ grid, className }: {
|
|
2
|
+
grid: any;
|
|
3
|
+
className: any;
|
|
4
|
+
}) => {
|
|
5
|
+
update: (width: any) => void;
|
|
6
|
+
remove: () => any;
|
|
7
|
+
getRowClassName: () => any;
|
|
8
|
+
};
|
|
9
|
+
export declare function useStylesheetHelpers(grid: any): {
|
|
10
|
+
columnsStylesheet: {
|
|
11
|
+
decorateColumns: (columns: any, grid: any) => any;
|
|
12
|
+
getColumnCellClassName(column: any): string;
|
|
13
|
+
getColumnHeaderClassName(column: any): string;
|
|
14
|
+
cleanup(): void;
|
|
15
|
+
};
|
|
16
|
+
rowsStylesheet: {
|
|
17
|
+
update: (width: any) => void;
|
|
18
|
+
remove: () => any;
|
|
19
|
+
getRowClassName: () => any;
|
|
20
|
+
};
|
|
21
|
+
rowClassName: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getScrollbarSizeFromHeaderAndBody(refs: any): number;
|
|
2
|
+
export declare const isScrollbarVisible: (element: any) => boolean;
|
|
3
|
+
export declare const getPercentageValue: (percentString: any) => number | null;
|
|
4
|
+
export declare const getColumnWidthSize: (width: any, minWidth: any, column: any) => any;
|
|
5
|
+
export declare const calculateMinWidthForWrappedText: (columns: any) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CustomRendererPlugin: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const getRendererComponent: ({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}, { type, handlers, ...rest }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
type?: string | undefined;
|
|
7
|
+
handlers: any;
|
|
8
|
+
}, { rowData }: {
|
|
9
|
+
rowData: any;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export { getRendererComponent };
|
|
12
|
+
export default getRendererComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomRendererPlugin } from './CustomRendererPlugin';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class ComboBox extends Component {
|
|
3
|
+
static defaultProps: {
|
|
4
|
+
onValue: () => null;
|
|
5
|
+
};
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
handleChange(value: any): void;
|
|
8
|
+
handleBlur(): void;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export { ComboBox };
|
|
12
|
+
export default ComboBox;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class TextBox extends Component {
|
|
3
|
+
static defaultProps: {
|
|
4
|
+
onValue: () => null;
|
|
5
|
+
};
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
handleKeyUp({ key, target: { value } }: {
|
|
9
|
+
key: any;
|
|
10
|
+
target: {
|
|
11
|
+
value: any;
|
|
12
|
+
};
|
|
13
|
+
}): void;
|
|
14
|
+
handleKeyDown(e: any): void;
|
|
15
|
+
handleBlur(e: any): void;
|
|
16
|
+
handleChange({ target: { value } }: {
|
|
17
|
+
target: {
|
|
18
|
+
value: any;
|
|
19
|
+
};
|
|
20
|
+
}): void;
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export { TextBox };
|
|
24
|
+
export default TextBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EditablePlugin: any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ExpandableColumn: ({ property, label, renderRowLabel, renderRowDescription, renderExtraData, width, resizable, sortable, searchable, customRenderer, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
property: any;
|
|
5
|
+
label: any;
|
|
6
|
+
renderRowLabel?: (() => string) | undefined;
|
|
7
|
+
renderRowDescription?: (() => null) | undefined;
|
|
8
|
+
renderExtraData?: (() => null) | undefined;
|
|
9
|
+
width: any;
|
|
10
|
+
resizable: any;
|
|
11
|
+
sortable: any;
|
|
12
|
+
searchable: any;
|
|
13
|
+
customRenderer: any;
|
|
14
|
+
}) => {
|
|
15
|
+
label: any;
|
|
16
|
+
property: any;
|
|
17
|
+
cell: {
|
|
18
|
+
formatters: ((value: any, { rowData, isExpanded }: {
|
|
19
|
+
rowData: any;
|
|
20
|
+
isExpanded: any;
|
|
21
|
+
}, grid: any) => JSX.Element)[];
|
|
22
|
+
};
|
|
23
|
+
width: any;
|
|
24
|
+
expandableColumn: boolean;
|
|
25
|
+
resizable: any;
|
|
26
|
+
sortable: any;
|
|
27
|
+
searchable: any;
|
|
28
|
+
};
|
|
29
|
+
export default ExpandableColumn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExpandablePlugin: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function ExpandedRow({ parentGrid, detailColumns, rowData, rows, rowProps, cellComponent: CellComponent, rowComponent: RowComponent, }: {
|
|
3
|
+
parentGrid: any;
|
|
4
|
+
detailColumns: any;
|
|
5
|
+
rowData: any;
|
|
6
|
+
rows: any;
|
|
7
|
+
rowProps: any;
|
|
8
|
+
cellComponent: any;
|
|
9
|
+
rowComponent: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
export { ExpandedRow };
|
|
12
|
+
export default ExpandedRow;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function ExpandedRowExtra({ children, rowData, rowProps, rowComponent: RowComponent, renderRowDetails }: {
|
|
3
|
+
children: any;
|
|
4
|
+
rowData: any;
|
|
5
|
+
rowProps: any;
|
|
6
|
+
rowComponent: any;
|
|
7
|
+
renderRowDetails?: (() => null) | undefined;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export { ExpandedRowExtra };
|
|
10
|
+
export default ExpandedRowExtra;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const useExpandGridState: (grid: any) => {
|
|
2
|
+
state: {
|
|
3
|
+
expandedRows: any;
|
|
4
|
+
isExpandedAll: boolean;
|
|
5
|
+
shouldRefocus: boolean;
|
|
6
|
+
};
|
|
7
|
+
actions: {
|
|
8
|
+
expandRow: (row: any) => void;
|
|
9
|
+
toggleExpandAllRows: (stateData?: boolean | undefined) => void;
|
|
10
|
+
toggleExpand: (row: any) => void;
|
|
11
|
+
toggleShowAllRows: (row: any) => void;
|
|
12
|
+
collapseRow: (item: any) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getColumnValue: (row: any, property: any) => any;
|
|
2
|
+
export declare const getVisibleRowData: (row: any, columns: any) => any;
|
|
3
|
+
export declare const getExportedData: (rows: any, columns: any, range: any) => string;
|
|
4
|
+
export declare const ExportDataPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ExportDataPlugin } from './ExportDataPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FilterablePlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const addFilterToColumn: (props: any, column: any) => any;
|