@elliemae/ds-datagrids 3.17.0-next.2 → 3.17.0-next.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/DSDataGrid.js.map +2 -2
- package/dist/esm/DSDataGrid.js.map +2 -2
- package/dist/types/DSDataGrid.d.ts +452 -0
- package/dist/types/DataGridImpl.d.ts +12 -0
- package/dist/types/PaginatedDataGrid.d.ts +14 -0
- package/dist/types/blockNames.d.ts +4 -0
- package/dist/types/columns/IconColumn.d.ts +35 -0
- package/dist/types/columns/NumberColumn.d.ts +4 -0
- package/dist/types/components/BodyCell.d.ts +33 -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 +8 -0
- package/dist/types/components/EmptyState.d.ts +6 -0
- package/dist/types/components/HeaderCell.d.ts +18 -0
- package/dist/types/components/List.d.ts +2 -0
- package/dist/types/components/ListItem.d.ts +2 -0
- package/dist/types/components/NoResults.d.ts +7 -0
- package/dist/types/components/RowsLoader.d.ts +4 -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 +3 -0
- package/dist/types/components/footer/addOptionalFooterComponents.d.ts +6 -0
- package/dist/types/components/header/PrimaryControls.d.ts +5 -0
- package/dist/types/components/header/addOptionalHeaderComponents.d.ts +10 -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 +1 -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 +11 -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 +28 -0
- package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +1 -0
- package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +11 -0
- package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +9 -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 +28 -0
- package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +30 -0
- package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +27 -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 +35 -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 +11 -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 +10 -0
- package/dist/types/plugins/pagination/components/Paginator.d.ts +9 -0
- package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +9 -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 +3 -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 +9 -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 +6 -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 +10 -0
- package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +1 -0
- package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +7 -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 +32 -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 +51 -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 +21 -21
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
declare const Table: {
|
3
|
+
(props: any): import("react/jsx-runtime.js").JSX.Element;
|
4
|
+
Header: (props: any) => import("react/jsx-runtime.js").JSX.Element;
|
5
|
+
Body: React.NamedExoticComponent<object>;
|
6
|
+
};
|
7
|
+
export { Table };
|
8
|
+
export default Table;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import PropTypes from 'prop-types';
|
2
|
+
export declare const addOptionalHeaderComponents: {
|
3
|
+
({ grid }: {
|
4
|
+
grid: any;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
6
|
+
propTypes: {
|
7
|
+
grid: PropTypes.Requireable<any>;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
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 declare const renderRowsLoader: () => import("react/jsx-runtime.js").JSX.Element;
|
@@ -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,11 @@
|
|
1
|
+
declare const getRendererComponent: ({ props }: {
|
2
|
+
props: any;
|
3
|
+
}, { type, handlers, ...rest }: {
|
4
|
+
[x: string]: any;
|
5
|
+
type?: string | undefined;
|
6
|
+
handlers: any;
|
7
|
+
}, { rowData }: {
|
8
|
+
rowData: any;
|
9
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
10
|
+
export { getRendererComponent };
|
11
|
+
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(): import("react/jsx-runtime").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(): import("react/jsx-runtime").JSX.Element;
|
22
|
+
}
|
23
|
+
export { TextBox };
|
24
|
+
export default TextBox;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const EditablePlugin: (decorators: any) => any;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export declare const ExpandableColumn: ({ property, label, renderRowLabel, renderRowDescription, renderExtraData, width, resizable, sortable, searchable, customRenderer, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
property: any;
|
4
|
+
label: any;
|
5
|
+
renderRowLabel?: (() => string) | undefined;
|
6
|
+
renderRowDescription?: (() => null) | undefined;
|
7
|
+
renderExtraData?: (() => null) | undefined;
|
8
|
+
width: any;
|
9
|
+
resizable: any;
|
10
|
+
sortable: any;
|
11
|
+
searchable: any;
|
12
|
+
customRenderer: any;
|
13
|
+
}) => {
|
14
|
+
label: any;
|
15
|
+
property: any;
|
16
|
+
cell: {
|
17
|
+
formatters: ((value: any, { rowData, isExpanded }: {
|
18
|
+
rowData: any;
|
19
|
+
isExpanded: any;
|
20
|
+
}, grid: any) => import("react/jsx-runtime.js").JSX.Element)[];
|
21
|
+
};
|
22
|
+
width: any;
|
23
|
+
expandableColumn: boolean;
|
24
|
+
resizable: any;
|
25
|
+
sortable: any;
|
26
|
+
searchable: any;
|
27
|
+
};
|
28
|
+
export default ExpandableColumn;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const ExpandablePlugin: (decorators: any) => any;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
declare const ExpandedRow: ({ parentGrid, detailColumns, rowData, rows, rowProps, cellComponent: CellComponent, rowComponent: RowComponent, }: {
|
2
|
+
parentGrid: any;
|
3
|
+
detailColumns: any;
|
4
|
+
rowData: any;
|
5
|
+
rows: any;
|
6
|
+
rowProps: any;
|
7
|
+
cellComponent: any;
|
8
|
+
rowComponent: any;
|
9
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
10
|
+
export { ExpandedRow };
|
11
|
+
export default ExpandedRow;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
declare const ExpandedRowExtra: ({ children, rowData, rowProps, rowComponent: RowComponent, renderRowDetails, }: {
|
2
|
+
children: any;
|
3
|
+
rowData: any;
|
4
|
+
rowProps: any;
|
5
|
+
rowComponent: any;
|
6
|
+
renderRowDetails?: (() => null) | undefined;
|
7
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
8
|
+
export { ExpandedRowExtra };
|
9
|
+
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,28 @@
|
|
1
|
+
import PropTypes from 'prop-types';
|
2
|
+
export declare const FilterableHeader: {
|
3
|
+
({ column, value, columnData, onAddFilter, onRemoveFilter, filterMenuRef, onFilterMenuClose, onFilterMenuOpen, filters, isMulti, }: {
|
4
|
+
column: any;
|
5
|
+
value: any;
|
6
|
+
columnData: any;
|
7
|
+
onAddFilter: any;
|
8
|
+
onRemoveFilter: any;
|
9
|
+
filterMenuRef: any;
|
10
|
+
onFilterMenuClose: any;
|
11
|
+
onFilterMenuOpen: any;
|
12
|
+
filters: any;
|
13
|
+
isMulti: any;
|
14
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
15
|
+
propTypes: {
|
16
|
+
column: PropTypes.Requireable<any>;
|
17
|
+
value: PropTypes.Requireable<any>;
|
18
|
+
columnData: PropTypes.Requireable<any>;
|
19
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
20
|
+
onRemoveFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
21
|
+
filterMenuRef: PropTypes.Requireable<any>;
|
22
|
+
onFilterMenuClose: PropTypes.Requireable<(...args: any[]) => any>;
|
23
|
+
onFilterMenuOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
24
|
+
filters: PropTypes.Requireable<(PropTypes.InferProps<{}> | null | undefined)[]>;
|
25
|
+
isMulti: PropTypes.Requireable<boolean>;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
export default FilterableHeader;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import PropTypes from 'prop-types';
|
2
|
+
declare const DateRangeFilterMenu: {
|
3
|
+
({ column, className, isMenuOpened, onOpenMenu, placement, onAddFilter, dateFormatter, showHeader, menuProps, }: {
|
4
|
+
column: any;
|
5
|
+
className: any;
|
6
|
+
isMenuOpened?: boolean | undefined;
|
7
|
+
onOpenMenu?: (() => null) | undefined;
|
8
|
+
placement?: string | undefined;
|
9
|
+
onAddFilter?: (() => null) | undefined;
|
10
|
+
dateFormatter?: (({ startDate, endDate }: {
|
11
|
+
startDate: any;
|
12
|
+
endDate: any;
|
13
|
+
}, format?: string) => string) | undefined;
|
14
|
+
showHeader?: boolean | undefined;
|
15
|
+
menuProps: any;
|
16
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
17
|
+
propTypes: {
|
18
|
+
column: PropTypes.Requireable<any>;
|
19
|
+
className: PropTypes.Requireable<string>;
|
20
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
21
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
22
|
+
placement: PropTypes.Requireable<string>;
|
23
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
24
|
+
dateFormatter: PropTypes.Requireable<any>;
|
25
|
+
showHeader: PropTypes.Requireable<boolean>;
|
26
|
+
menuProps: PropTypes.Requireable<any>;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export { DateRangeFilterMenu };
|
30
|
+
export default DateRangeFilterMenu;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import PropTypes from 'prop-types';
|
2
|
+
declare const SingleDateFilterMenu: {
|
3
|
+
({ column, className, isMenuOpened, onOpenMenu, placement, onAddFilter, dateFormatter, showHeader, menuProps, }: {
|
4
|
+
column: any;
|
5
|
+
className: any;
|
6
|
+
isMenuOpened?: boolean | undefined;
|
7
|
+
onOpenMenu?: (() => null) | undefined;
|
8
|
+
placement?: string | undefined;
|
9
|
+
onAddFilter?: (() => null) | undefined;
|
10
|
+
dateFormatter?: ((date: any, format?: string) => any) | undefined;
|
11
|
+
showHeader?: boolean | undefined;
|
12
|
+
menuProps: any;
|
13
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
14
|
+
propTypes: {
|
15
|
+
column: PropTypes.Requireable<any>;
|
16
|
+
className: PropTypes.Requireable<string>;
|
17
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
18
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
19
|
+
placement: PropTypes.Requireable<string>;
|
20
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
21
|
+
dateFormatter: PropTypes.Requireable<any>;
|
22
|
+
showHeader: PropTypes.Requireable<boolean>;
|
23
|
+
menuProps: PropTypes.Requireable<any>;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
export { SingleDateFilterMenu };
|
27
|
+
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,35 @@
|
|
1
|
+
import PropTypes from 'prop-types';
|
2
|
+
declare const TextFilterMenu: {
|
3
|
+
({ column, menuStyle, className, filters, isMenuOpened, onOpenMenu, onClose, placement, menuProps, onAddFilter, onRemoveFilter, maxOptions, isMulti, }: {
|
4
|
+
column: any;
|
5
|
+
menuStyle?: {} | undefined;
|
6
|
+
className: any;
|
7
|
+
filters?: never[] | undefined;
|
8
|
+
isMenuOpened?: boolean | undefined;
|
9
|
+
onOpenMenu?: (() => null) | undefined;
|
10
|
+
onClose?: (() => null) | undefined;
|
11
|
+
placement?: string | undefined;
|
12
|
+
menuProps?: {} | undefined;
|
13
|
+
onAddFilter?: (() => null) | undefined;
|
14
|
+
onRemoveFilter?: (() => null) | undefined;
|
15
|
+
maxOptions?: number | undefined;
|
16
|
+
isMulti?: boolean | undefined;
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
18
|
+
propTypes: {
|
19
|
+
column: PropTypes.Requireable<any>;
|
20
|
+
menuStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
21
|
+
className: PropTypes.Requireable<string>;
|
22
|
+
filters: PropTypes.Requireable<(PropTypes.InferProps<{}> | null | undefined)[]>;
|
23
|
+
isMenuOpened: PropTypes.Requireable<boolean>;
|
24
|
+
onOpenMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
26
|
+
placement: PropTypes.Requireable<string>;
|
27
|
+
menuProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
28
|
+
onAddFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
29
|
+
onRemoveFilter: PropTypes.Requireable<(...args: any[]) => any>;
|
30
|
+
maxOptions: PropTypes.Requireable<number>;
|
31
|
+
isMulti: PropTypes.Requireable<boolean>;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
export { TextFilterMenu };
|
35
|
+
export default TextFilterMenu;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const DEFAULT_DATE_FORMAT = "MM/DD/YYYY";
|
@@ -0,0 +1,11 @@
|
|
1
|
+
declare const FilterableFormatter: ({ grid, onAddFilter, onRemoveFilter, query, filterMenuRef }: {
|
2
|
+
grid: any;
|
3
|
+
onAddFilter: any;
|
4
|
+
onRemoveFilter: any;
|
5
|
+
query: any;
|
6
|
+
filterMenuRef: any;
|
7
|
+
}) => (value: any, { column }: {
|
8
|
+
column: any;
|
9
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
10
|
+
export { FilterableFormatter };
|
11
|
+
export default FilterableFormatter;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export declare const getFilterLabel: (column: any, value: any) => any;
|
2
|
+
export declare const getFilterLabels: (column: any, rows: any) => ({
|
3
|
+
id?: undefined;
|
4
|
+
label?: undefined;
|
5
|
+
} | {
|
6
|
+
id: any;
|
7
|
+
label: any;
|
8
|
+
})[];
|
9
|
+
export declare const getFilterLabelsGroup: (column: any, rows: any) => ({
|
10
|
+
id?: undefined;
|
11
|
+
label?: undefined;
|
12
|
+
} | {
|
13
|
+
id: any;
|
14
|
+
label: any;
|
15
|
+
})[];
|
16
|
+
export declare function getFilterValue(filter: any, column: any): any;
|
17
|
+
export declare function buildFilterArray(newFilter: any, filters: any): any[];
|
18
|
+
export declare const groupFilters: (filters: any) => any;
|
19
|
+
export declare function parseFiltersToQuery(filters: any): {
|
20
|
+
condition: string;
|
21
|
+
rules: never[];
|
22
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { FilterablePlugin } from './FilterablePlugin.js';
|