@elliemae/ds-datagrids 3.16.4-rc.2 → 3.16.4-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/types/DSDataGrid.d.ts +453 -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 +11 -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 +16 -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 +6 -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 +12 -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/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,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,5 @@
|
|
1
|
+
export { default as HeaderCell } from './HeaderCell.js';
|
2
|
+
export { default as BodyCell } from './BodyCell.js';
|
3
|
+
export { default as TableBody } from './TableBody.js';
|
4
|
+
export { default as TableHeader } from './TableHeader.js';
|
5
|
+
export { default as Table } from './Table.js';
|
@@ -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.js';
|
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: ((decorators: any) => any)[];
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export { DSDataGrid } from './DSDataGrid.js';
|
2
|
+
export { DSDataGridsWithSchema } from './DSDataGrid.js';
|
3
|
+
export { ColumnsOptionsMenuSection } from './components/ColumnsOptionsMenuSection.js';
|
4
|
+
export { getColumnVisibilityMenuOption } from './components/ColumnVisibilityMenuOption.js';
|
5
|
+
export { EmptyState } from './components/EmptyState.js';
|
6
|
+
export { IconColumn } from './columns/IconColumn.js';
|
7
|
+
export { BodyHeaderScrollSyncPlugin, DndColumnsPlugin, ColumnSizingPlugin, CustomRendererPlugin, EditablePlugin, ComboBox, TextBox, ExpandablePlugin, ExpandableColumn, FilterablePlugin, InfiniteScrollPlugin, PaginationPlugin, ResizablePlugin, DndRowsPlugin, SelectablePlugin, SortablePlugin, ToolbarPlugin, ExportDataPlugin, VirtualizationPlugin, } from './plugins/index.js';
|
8
|
+
export { RowSizes, RowSizesOptions, RowSizesOptionsArr } from './rowSizes.js';
|
9
|
+
export { CellWithAddons, CellContainer } from './renders/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const BodyHeaderScrollSyncPlugin: (decorators: any) => any;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { BodyHeaderScrollSyncPlugin } from './BodyHeaderScrollSyncPlugin.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const DndColumnsPlugin: (decorators: any) => any;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DndColumnsPlugin } from './DndColumnsPlugin.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const ColumnSizingPlugin: (decorators: any) => 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.js';
|
@@ -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: (decorators: any) => 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.js';
|
@@ -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: (decorators: any) => 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: (decorators: any) => any;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const 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 const 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,16 @@
|
|
1
|
+
export declare const useExpandGridState: (grid: any) => {
|
2
|
+
state: {
|
3
|
+
expandedRows: Record<string, boolean>;
|
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: {
|
13
|
+
[x: string]: string;
|
14
|
+
}) => void;
|
15
|
+
};
|
16
|
+
};
|
@@ -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: (decorators: any) => any;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ExportDataPlugin } from './ExportDataPlugin.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const FilterablePlugin: (decorators: any) => any;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const addFilterToColumn: (props: any, column: any) => any;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
export declare const FilterableHeader: {
|
4
|
+
({ column, value, columnData, onAddFilter, onRemoveFilter, filterMenuRef, onFilterMenuClose, onFilterMenuOpen, filters, isMulti, }: {
|
5
|
+
column: any;
|
6
|
+
value: any;
|
7
|
+
columnData: any;
|
8
|
+
onAddFilter: any;
|
9
|
+
onRemoveFilter: any;
|
10
|
+
filterMenuRef: any;
|
11
|
+
onFilterMenuClose: any;
|
12
|
+
onFilterMenuOpen: any;
|
13
|
+
filters: any;
|
14
|
+
isMulti: any;
|
15
|
+
}): JSX.Element;
|
16
|
+
propTypes: {
|
17
|
+
column: PropTypes.Requireable<any>;
|
18
|
+
value: PropTypes.Requireable<any>;
|
19
|
+
columnData: PropTypes.Requireable<any>;
|
20
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
21
|
+
onRemoveFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
22
|
+
filterMenuRef: PropTypes.Requireable<any>;
|
23
|
+
onFilterMenuClose: PropTypes.Requireable<(...args: any[]) => any>;
|
24
|
+
onFilterMenuOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
+
filters: PropTypes.Requireable<(PropTypes.InferProps<{}> | null | undefined)[]>;
|
26
|
+
isMulti: PropTypes.Requireable<boolean>;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export default FilterableHeader;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
declare const DateRangeFilterMenu: {
|
4
|
+
({ column, className, isMenuOpened, onOpenMenu, placement, onAddFilter, dateFormatter, showHeader, menuProps, }: {
|
5
|
+
column: any;
|
6
|
+
className: any;
|
7
|
+
isMenuOpened?: boolean | undefined;
|
8
|
+
onOpenMenu?: (() => null) | undefined;
|
9
|
+
placement?: string | undefined;
|
10
|
+
onAddFilter?: (() => null) | undefined;
|
11
|
+
dateFormatter?: (({ startDate, endDate }: {
|
12
|
+
startDate: any;
|
13
|
+
endDate: any;
|
14
|
+
}, format?: string) => string) | undefined;
|
15
|
+
showHeader?: boolean | undefined;
|
16
|
+
menuProps: any;
|
17
|
+
}): JSX.Element;
|
18
|
+
propTypes: {
|
19
|
+
column: PropTypes.Requireable<any>;
|
20
|
+
className: PropTypes.Requireable<string>;
|
21
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
22
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
23
|
+
placement: PropTypes.Requireable<string>;
|
24
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
+
dateFormatter: PropTypes.Requireable<any>;
|
26
|
+
showHeader: PropTypes.Requireable<boolean>;
|
27
|
+
menuProps: PropTypes.Requireable<any>;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
export { DateRangeFilterMenu };
|
31
|
+
export default DateRangeFilterMenu;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
declare const SingleDateFilterMenu: {
|
4
|
+
({ column, className, isMenuOpened, onOpenMenu, placement, onAddFilter, dateFormatter, showHeader, menuProps, }: {
|
5
|
+
column: any;
|
6
|
+
className: any;
|
7
|
+
isMenuOpened?: boolean | undefined;
|
8
|
+
onOpenMenu?: (() => null) | undefined;
|
9
|
+
placement?: string | undefined;
|
10
|
+
onAddFilter?: (() => null) | undefined;
|
11
|
+
dateFormatter?: ((date: any, format?: string) => any) | undefined;
|
12
|
+
showHeader?: boolean | undefined;
|
13
|
+
menuProps: any;
|
14
|
+
}): JSX.Element;
|
15
|
+
propTypes: {
|
16
|
+
column: PropTypes.Requireable<any>;
|
17
|
+
className: PropTypes.Requireable<string>;
|
18
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
19
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
20
|
+
placement: PropTypes.Requireable<string>;
|
21
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
22
|
+
dateFormatter: PropTypes.Requireable<any>;
|
23
|
+
showHeader: PropTypes.Requireable<boolean>;
|
24
|
+
menuProps: PropTypes.Requireable<any>;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export { SingleDateFilterMenu };
|
28
|
+
export default SingleDateFilterMenu;
|
package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
declare const SingleRangeSwitcherMenu: {
|
4
|
+
({ column, className, isMenuOpened, onOpenMenu, placement, onAddFilter, dateFormatter, enableOutsideDays, menuProps, }: {
|
5
|
+
column: any;
|
6
|
+
className: any;
|
7
|
+
isMenuOpened?: boolean | undefined;
|
8
|
+
onOpenMenu?: ((...args: any[]) => void) | undefined;
|
9
|
+
placement?: string | undefined;
|
10
|
+
onAddFilter?: ((...args: any[]) => void) | undefined;
|
11
|
+
dateFormatter?: (({ startDate, endDate }: {
|
12
|
+
startDate: any;
|
13
|
+
endDate: any;
|
14
|
+
}, format?: string) => string) | undefined;
|
15
|
+
enableOutsideDays?: boolean | undefined;
|
16
|
+
menuProps: any;
|
17
|
+
}): JSX.Element;
|
18
|
+
propTypes: {
|
19
|
+
column: PropTypes.Requireable<any>;
|
20
|
+
className: PropTypes.Requireable<string>;
|
21
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
22
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
23
|
+
placement: PropTypes.Requireable<string>;
|
24
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
+
dateFormatter: PropTypes.Requireable<any>;
|
26
|
+
enableOutsideDays: PropTypes.Requireable<boolean>;
|
27
|
+
menuProps: PropTypes.Requireable<any>;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
export { SingleRangeSwitcherMenu };
|
31
|
+
export default SingleRangeSwitcherMenu;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
declare const TextFilterMenu: {
|
4
|
+
({ column, menuStyle, className, filters, isMenuOpened, onOpenMenu, onClose, placement, menuProps, onAddFilter, onRemoveFilter, maxOptions, isMulti, }: {
|
5
|
+
column: any;
|
6
|
+
menuStyle?: {} | undefined;
|
7
|
+
className: any;
|
8
|
+
filters?: never[] | undefined;
|
9
|
+
isMenuOpened?: boolean | undefined;
|
10
|
+
onOpenMenu?: (() => null) | undefined;
|
11
|
+
onClose?: (() => null) | undefined;
|
12
|
+
placement?: string | undefined;
|
13
|
+
menuProps?: {} | undefined;
|
14
|
+
onAddFilter?: (() => null) | undefined;
|
15
|
+
onRemoveFilter?: (() => null) | undefined;
|
16
|
+
maxOptions?: number | undefined;
|
17
|
+
isMulti?: boolean | undefined;
|
18
|
+
}): JSX.Element;
|
19
|
+
propTypes: {
|
20
|
+
column: PropTypes.Requireable<any>;
|
21
|
+
menuStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
22
|
+
className: PropTypes.Requireable<string>;
|
23
|
+
filters: PropTypes.Requireable<(PropTypes.InferProps<{}> | null | undefined)[]>;
|
24
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
25
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
26
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
27
|
+
placement: PropTypes.Requireable<string>;
|
28
|
+
menuProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
29
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
30
|
+
onRemoveFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
31
|
+
maxOptions: PropTypes.Requireable<number>;
|
32
|
+
isMulti: PropTypes.Requireable<boolean>;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export { TextFilterMenu };
|
36
|
+
export default TextFilterMenu;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const DEFAULT_DATE_FORMAT = "MM/DD/YYYY";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const FilterableFormatter: ({ grid, onAddFilter, onRemoveFilter, query, filterMenuRef }: {
|
3
|
+
grid: any;
|
4
|
+
onAddFilter: any;
|
5
|
+
onRemoveFilter: any;
|
6
|
+
query: any;
|
7
|
+
filterMenuRef: any;
|
8
|
+
}) => (value: any, { column }: {
|
9
|
+
column: any;
|
10
|
+
}) => JSX.Element;
|
11
|
+
export { FilterableFormatter };
|
12
|
+
export default FilterableFormatter;
|