@elliemae/ds-datagrids 3.17.0-next.10 → 3.17.0-next.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/dist/types/DSDataGrid.d.ts +453 -0
  2. package/dist/types/DataGridImpl.d.ts +13 -0
  3. package/dist/types/PaginatedDataGrid.d.ts +15 -0
  4. package/dist/types/blockNames.d.ts +4 -0
  5. package/dist/types/columns/IconColumn.d.ts +36 -0
  6. package/dist/types/columns/NumberColumn.d.ts +4 -0
  7. package/dist/types/components/BodyCell.d.ts +34 -0
  8. package/dist/types/components/BodyList.d.ts +11 -0
  9. package/dist/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
  10. package/dist/types/components/ColumnsOptionsMenuSection.d.ts +9 -0
  11. package/dist/types/components/EmptyState.d.ts +7 -0
  12. package/dist/types/components/HeaderCell.d.ts +19 -0
  13. package/dist/types/components/List.d.ts +3 -0
  14. package/dist/types/components/ListItem.d.ts +3 -0
  15. package/dist/types/components/NoResults.d.ts +8 -0
  16. package/dist/types/components/RowsLoader.d.ts +5 -0
  17. package/dist/types/components/Table.d.ts +8 -0
  18. package/dist/types/components/TableBody.d.ts +4 -0
  19. package/dist/types/components/TableHeader.d.ts +4 -0
  20. package/dist/types/components/footer/addOptionalFooterComponents.d.ts +7 -0
  21. package/dist/types/components/header/PrimaryControls.d.ts +6 -0
  22. package/dist/types/components/header/addOptionalHeaderComponents.d.ts +11 -0
  23. package/dist/types/components/index.d.ts +5 -0
  24. package/dist/types/components/renderers/defaultClassedRenderers.d.ts +11 -0
  25. package/dist/types/components/renderers/index.d.ts +15 -0
  26. package/dist/types/components/renderers/renderRowsLoader.d.ts +2 -0
  27. package/dist/types/components/tableContext.d.ts +2 -0
  28. package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +1 -0
  29. package/dist/types/defaultPlugins.d.ts +1 -0
  30. package/dist/types/index.d.ts +9 -0
  31. package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +1 -0
  32. package/dist/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
  33. package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +1 -0
  34. package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +2 -0
  35. package/dist/types/plugins/column-dnd/index.d.ts +1 -0
  36. package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +1 -0
  37. package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +6 -0
  38. package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +1 -0
  39. package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +10 -0
  40. package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -0
  41. package/dist/types/plugins/column-sizing/index.d.ts +1 -0
  42. package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +18 -0
  43. package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +22 -0
  44. package/dist/types/plugins/column-sizing/utils.d.ts +5 -0
  45. package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +1 -0
  46. package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +4 -0
  47. package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +12 -0
  48. package/dist/types/plugins/custom-cell-renderer/index.d.ts +1 -0
  49. package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +12 -0
  50. package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +24 -0
  51. package/dist/types/plugins/editable/EditableComponents/index.d.ts +2 -0
  52. package/dist/types/plugins/editable/EditablePlugin.d.ts +1 -0
  53. package/dist/types/plugins/editable/decorateEditable.d.ts +7 -0
  54. package/dist/types/plugins/editable/getEditorComponent.d.ts +7 -0
  55. package/dist/types/plugins/editable/index.d.ts +2 -0
  56. package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +29 -0
  57. package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +1 -0
  58. package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +12 -0
  59. package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +10 -0
  60. package/dist/types/plugins/expandable-grid/index.d.ts +2 -0
  61. package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +1 -0
  62. package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +16 -0
  63. package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +4 -0
  64. package/dist/types/plugins/export-data/index.d.ts +1 -0
  65. package/dist/types/plugins/filterable/FilterablePlugin.d.ts +1 -0
  66. package/dist/types/plugins/filterable/addFilterToColumn.d.ts +1 -0
  67. package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +29 -0
  68. package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +31 -0
  69. package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +28 -0
  70. package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +31 -0
  71. package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +36 -0
  72. package/dist/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +1 -0
  73. package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -0
  74. package/dist/types/plugins/filterable/filterableFormatter.d.ts +12 -0
  75. package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +3 -0
  76. package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
  77. package/dist/types/plugins/filterable/helper.d.ts +22 -0
  78. package/dist/types/plugins/filterable/index.d.ts +1 -0
  79. package/dist/types/plugins/filterable/useFilterableState.d.ts +18 -0
  80. package/dist/types/plugins/grouping-by/GroupingByPlugin.d.ts +1 -0
  81. package/dist/types/plugins/grouping-grid/GroupingPlugin.d.ts +1 -0
  82. package/dist/types/plugins/grouping-grid/walkStrategy.d.ts +9 -0
  83. package/dist/types/plugins/index.d.ts +16 -0
  84. package/dist/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +1 -0
  85. package/dist/types/plugins/infinite-scrolling/index.d.ts +1 -0
  86. package/dist/types/plugins/pagination/PaginationPlugin.d.ts +1 -0
  87. package/dist/types/plugins/pagination/components/Pagination.d.ts +11 -0
  88. package/dist/types/plugins/pagination/components/Paginator.d.ts +10 -0
  89. package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +10 -0
  90. package/dist/types/plugins/pagination/helper.d.ts +18 -0
  91. package/dist/types/plugins/pagination/index.d.ts +1 -0
  92. package/dist/types/plugins/pagination/usePaginationState.d.ts +9 -0
  93. package/dist/types/plugins/resizable/ResizablePlugin.d.ts +1 -0
  94. package/dist/types/plugins/resizable/decorateResizable.d.ts +4 -0
  95. package/dist/types/plugins/resizable/index.d.ts +1 -0
  96. package/dist/types/plugins/resizable/useResizeHandle.d.ts +13 -0
  97. package/dist/types/plugins/resizable/utils.d.ts +3 -0
  98. package/dist/types/plugins/row-dnd/DndRowsPlugin.d.ts +1 -0
  99. package/dist/types/plugins/row-dnd/index.d.ts +1 -0
  100. package/dist/types/plugins/selectable/SelectablePlugin.d.ts +1 -0
  101. package/dist/types/plugins/selectable/addSelectableColumn.d.ts +30 -0
  102. package/dist/types/plugins/selectable/helper.d.ts +6 -0
  103. package/dist/types/plugins/selectable/index.d.ts +1 -0
  104. package/dist/types/plugins/selectable/selectableFormatter.d.ts +10 -0
  105. package/dist/types/plugins/selectable/useSelectableState.d.ts +12 -0
  106. package/dist/types/plugins/sortable/SortablePlugin.d.ts +1 -0
  107. package/dist/types/plugins/sortable/checkIfSortable.d.ts +2 -0
  108. package/dist/types/plugins/sortable/index.d.ts +1 -0
  109. package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +7 -0
  110. package/dist/types/plugins/sortable/sortTree.d.ts +3 -0
  111. package/dist/types/plugins/sortable/sorter.d.ts +12 -0
  112. package/dist/types/plugins/sortable/useSortableState.d.ts +8 -0
  113. package/dist/types/plugins/toolbar/RowRenderer.d.ts +11 -0
  114. package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +1 -0
  115. package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +8 -0
  116. package/dist/types/plugins/toolbar/index.d.ts +1 -0
  117. package/dist/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
  118. package/dist/types/plugins/virtualization/VirtualizationPlugin.d.ts +1 -0
  119. package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +33 -0
  120. package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
  121. package/dist/types/plugins/virtualization/helper.d.ts +1 -0
  122. package/dist/types/plugins/virtualization/index.d.ts +1 -0
  123. package/dist/types/renders/CellWithAddons.d.ts +52 -0
  124. package/dist/types/renders/index.d.ts +2 -0
  125. package/dist/types/renders/styled.d.ts +4 -0
  126. package/dist/types/rowSizes.d.ts +11 -0
  127. package/dist/types/tests/DataGrid-Columns.test.d.ts +1 -0
  128. package/dist/types/tests/DataGrid-Editable.test.d.ts +1 -0
  129. package/dist/types/tests/DataGrid-Export.test.d.ts +1 -0
  130. package/dist/types/tests/DataGrid-Filter-helper.test.d.ts +1 -0
  131. package/dist/types/tests/DataGrid-Filterable-Dates.test.d.ts +1 -0
  132. package/dist/types/tests/DataGrid-Filterable-State.test.d.ts +1 -0
  133. package/dist/types/tests/DataGrid-RowDnd.test.d.ts +1 -0
  134. package/dist/types/tests/DataGrid-Selectable.test.d.ts +1 -0
  135. package/dist/types/tests/DataGrid-Sortable.test.d.ts +1 -0
  136. package/dist/types/tests/DataGrid-Toolbar.test.d.ts +1 -0
  137. package/dist/types/tests/DataGrid-Virtualization.test.d.ts +1 -0
  138. package/dist/types/tests/DataGrids-ColumnSizing.test.d.ts +1 -0
  139. package/dist/types/tests/DataGrids-ConditionalPagination.test.d.ts +1 -0
  140. package/dist/types/tests/DataGrids-Rows.test.d.ts +1 -0
  141. package/dist/types/tests/DataGrids.test.d.ts +1 -0
  142. package/dist/types/utilities/getPluginsFromProps.d.ts +2 -0
  143. package/dist/types/utilities/getScrollbarSize.d.ts +1 -0
  144. package/dist/types/utilities/normalizeData.d.ts +3 -0
  145. package/package.json +20 -20
@@ -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';
@@ -0,0 +1,18 @@
1
+ export declare function useFilterableState(grid: any): {
2
+ actions: {
3
+ addFilter: (filter: any, column: any) => void;
4
+ removeFilter: ({ group, pill, nextFilters }: {
5
+ group: any;
6
+ pill: any;
7
+ nextFilters: any;
8
+ }) => void;
9
+ removeAllFilters: () => void;
10
+ };
11
+ state: {
12
+ query: {
13
+ condition: string;
14
+ rules: never[];
15
+ };
16
+ filters: any;
17
+ };
18
+ };
@@ -0,0 +1 @@
1
+ export declare const GroupingByPlugin: (decorators: any) => any;
@@ -0,0 +1 @@
1
+ export declare const GroupingPlugin: (decorators: any) => any;
@@ -0,0 +1,9 @@
1
+ export declare function walkTreeStrategy({ data, childrenKey, level, getId, parentNode, shouldWalkChildren, cb, }: {
2
+ data: any;
3
+ childrenKey?: string | undefined;
4
+ level?: number | undefined;
5
+ getId?: ((item: any) => any) | undefined;
6
+ parentNode: any;
7
+ shouldWalkChildren?: (() => boolean) | undefined;
8
+ cb: any;
9
+ }): void;
@@ -0,0 +1,16 @@
1
+ export { BodyHeaderScrollSyncPlugin } from './body-header-scroll-sync/index.js';
2
+ export { DndColumnsPlugin } from './column-dnd/index.js';
3
+ export { ColumnSizingPlugin } from './column-sizing/index.js';
4
+ export { CustomRendererPlugin } from './custom-cell-renderer/index.js';
5
+ export { EditablePlugin, ComboBox, TextBox } from './editable/index.js';
6
+ export { ExpandableColumn, ExpandablePlugin } from './expandable-grid/index.js';
7
+ export { FilterablePlugin } from './filterable/index.js';
8
+ export { InfiniteScrollPlugin } from './infinite-scrolling/index.js';
9
+ export { PaginationPlugin } from './pagination/index.js';
10
+ export { ResizablePlugin } from './resizable/index.js';
11
+ export { DndRowsPlugin } from './row-dnd/index.js';
12
+ export { SelectablePlugin } from './selectable/index.js';
13
+ export { SortablePlugin } from './sortable/index.js';
14
+ export { ToolbarPlugin } from './toolbar/index.js';
15
+ export { ExportDataPlugin } from './export-data/index.js';
16
+ export { VirtualizationPlugin } from './virtualization/index.js';
@@ -0,0 +1 @@
1
+ export declare const InfiniteScrollPlugin: (decorators: any) => any;
@@ -0,0 +1 @@
1
+ export { InfiniteScrollPlugin } from './InfiniteScrollPlugin.js';
@@ -0,0 +1 @@
1
+ export declare const PaginationPlugin: (decorators: any) => any;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare const Pagination: ({ paginated, pagination, onPerPage, onPageSelect, paginationStep, maxPerPage, minPerPage, }: {
3
+ paginated: any;
4
+ pagination?: {} | undefined;
5
+ onPerPage: any;
6
+ onPageSelect: any;
7
+ paginationStep?: number | undefined;
8
+ maxPerPage?: number | undefined;
9
+ minPerPage?: number | undefined;
10
+ }) => JSX.Element | null;
11
+ export { Pagination };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const Paginator: ({ pagination, pages, onSelect, labelPrevious, labelNext }: {
3
+ pagination: any;
4
+ pages: any;
5
+ onSelect: any;
6
+ labelPrevious?: string | undefined;
7
+ labelNext?: string | undefined;
8
+ }) => JSX.Element;
9
+ export { Paginator };
10
+ export default Paginator;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const PerPageDropdown: ({ min, max, step, value, onChange }: {
3
+ min?: number | undefined;
4
+ max?: number | undefined;
5
+ step?: number | undefined;
6
+ value?: number | undefined;
7
+ onChange?: (() => null) | undefined;
8
+ }) => JSX.Element;
9
+ export { PerPageDropdown };
10
+ export default PerPageDropdown;
@@ -0,0 +1,18 @@
1
+ export declare const parsePerPageNumber: (number: any, max: any, min?: number) => any;
2
+ export declare const paginate: (rows: any, { page, perPage, amountOfPages: amount, totalRows }: {
3
+ page: any;
4
+ perPage?: number | undefined;
5
+ amountOfPages: any;
6
+ totalRows: any;
7
+ }) => {
8
+ amount: any;
9
+ rows: any;
10
+ page: any;
11
+ allRows?: undefined;
12
+ } | {
13
+ amount: number;
14
+ rows: any;
15
+ allRows: any;
16
+ page: number;
17
+ };
18
+ export default paginate;
@@ -0,0 +1 @@
1
+ export { PaginationPlugin } from './PaginationPlugin.js';
@@ -0,0 +1,9 @@
1
+ export declare function usePaginationState(grid: any): {
2
+ state: {
3
+ pagination: any;
4
+ };
5
+ actions: {
6
+ onPerPage: (perPageNumber: any) => void;
7
+ onPageSelect: (page: any) => void;
8
+ };
9
+ };
@@ -0,0 +1 @@
1
+ export declare const ResizablePlugin: (decorators: any) => any;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const addResizableToColumn: (column: any, formatter: any) => any;
3
+ declare const resizableFormatter: (options: any) => (value: any) => JSX.Element;
4
+ export { addResizableToColumn, resizableFormatter };
@@ -0,0 +1 @@
1
+ export { ResizablePlugin } from './ResizablePlugin.js';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export declare const useResizeHandle: ({ onDragStart, onDrag, onDragEnd, minWidth, isLast }: {
3
+ onDragStart: any;
4
+ onDrag: any;
5
+ onDragEnd: any;
6
+ minWidth?: number | undefined;
7
+ isLast?: boolean | undefined;
8
+ }) => {
9
+ containerRef: React.MutableRefObject<undefined>;
10
+ Handle: ({ className }: {
11
+ className?: string | undefined;
12
+ }) => JSX.Element;
13
+ };
@@ -0,0 +1,3 @@
1
+ export declare const isPercentNumber: (stringNumber: any) => boolean;
2
+ export declare const isPxNumber: (stringNumber: any) => boolean;
3
+ export declare const translatePercentageToPx: import("memoize-one").MemoizedFn<(this: any, totalWidth: any, percentage: any, minWidth?: any) => any>;
@@ -0,0 +1 @@
1
+ export declare const DndRowsPlugin: (decorators: any) => any;
@@ -0,0 +1 @@
1
+ export { DndRowsPlugin } from './DndRowsPlugin.js';
@@ -0,0 +1 @@
1
+ export declare const SelectablePlugin: (decorators: any) => any;
@@ -0,0 +1,30 @@
1
+ export declare function selectionColumnCreator({ grid, selectAll, selectionComponent, onSelectRow, onSelectAll, multiple, multiSelectFilterLabel, multiSelectFilterOptions, multiSelectFilterLabels, multiSelectComponent, }: {
2
+ grid: any;
3
+ selectAll: any;
4
+ selectionComponent: any;
5
+ onSelectRow: any;
6
+ onSelectAll: any;
7
+ multiple: any;
8
+ multiSelectFilterLabel: any;
9
+ multiSelectFilterOptions: any;
10
+ multiSelectFilterLabels: any;
11
+ multiSelectComponent: any;
12
+ }): ({ visible, isDataColumn, width, minWidth, cellRenderer, headerCellRenderer, customRenderer, header, ...column }?: {
13
+ visible?: boolean | undefined;
14
+ isDataColumn?: boolean | undefined;
15
+ width?: number | undefined;
16
+ minWidth: any;
17
+ cellRenderer: any;
18
+ headerCellRenderer: any;
19
+ customRenderer: any;
20
+ header: any;
21
+ }) => {
22
+ property: string;
23
+ filterLabel: any;
24
+ filterOptions: any;
25
+ filterLabels: any;
26
+ visible: boolean;
27
+ width: number;
28
+ minWidth: any;
29
+ isDataColumn: boolean;
30
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="lodash" />
2
+ export declare const checkAllRowsSelected: (rows: any, selectedRows: any) => boolean | "mixed";
3
+ export declare const toggleSelectAll: (rows: any, checked: any) => any;
4
+ export declare const toggleSingleSelectable: (selectedRows: any, id: any) => import("lodash").Omit<Record<string, unknown>, string>;
5
+ export declare const selectSingleRow: (rows: any, filter: any) => any;
6
+ export declare const selectMultipleRow: (rows: any, isRowSelectedPredicate: any) => any;
@@ -0,0 +1 @@
1
+ export { SelectablePlugin } from './SelectablePlugin.js';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const selectableFormatter: ({ isMultiSelect, renderer, className, isHeader, onSelect }: {
3
+ isMultiSelect?: boolean | undefined;
4
+ renderer: any;
5
+ className: any;
6
+ isHeader: any;
7
+ onSelect: any;
8
+ }, grid: any) => (valueRender: any, extraParams: any) => JSX.Element;
9
+ export { selectableFormatter };
10
+ export default selectableFormatter;
@@ -0,0 +1,12 @@
1
+ export declare function useSelectableState(grid: any): {
2
+ actions: {
3
+ selectRow: (id: any, index: any, shift?: boolean, lastSelectedRow?: null) => void;
4
+ selectAll: (checked: any) => void;
5
+ };
6
+ state: {
7
+ selection: {
8
+ selectedRows: any;
9
+ selectAll: any;
10
+ };
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export declare const SortablePlugin: (decorators: any) => any;
@@ -0,0 +1,2 @@
1
+ export declare const checkIfSortable: (column: any, rows: any) => boolean;
2
+ export default checkIfSortable;
@@ -0,0 +1 @@
1
+ export { SortablePlugin } from './SortablePlugin.js';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const sortHeaderFormatter: (sortable: any, grid: any) => (value: any, { columnIndex, property }: {
3
+ columnIndex: any;
4
+ property: any;
5
+ }) => JSX.Element;
6
+ export { sortHeaderFormatter };
7
+ export default sortHeaderFormatter;
@@ -0,0 +1,3 @@
1
+ declare function sortTree(sortConfig: any): (rows: any) => any;
2
+ export { sortTree };
3
+ export default sortTree;
@@ -0,0 +1,12 @@
1
+ export declare const sorter: ({ columns, sortingColumns, sort, emptyLast }?: {
2
+ columns: any;
3
+ sortingColumns: any;
4
+ sort: any;
5
+ emptyLast: any;
6
+ }) => (data: any) => any;
7
+ export declare const sorterGroups: ({ columns, sortingColumns, sort, emptyLast }?: {
8
+ columns: any;
9
+ sortingColumns: any;
10
+ sort: any;
11
+ emptyLast: any;
12
+ }) => (data: any, rowsData: any) => any;
@@ -0,0 +1,8 @@
1
+ export declare function useSortableState(grid: any): {
2
+ state: {
3
+ sortingColumns: any;
4
+ };
5
+ actions: {
6
+ sort: (selectedColumn: any) => void;
7
+ };
8
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ export declare const RowRenderer: (Row: any, grid: any) => {
4
+ (props: any): JSX.Element;
5
+ propTypes: {
6
+ rowData: PropTypes.Requireable<any>;
7
+ index: PropTypes.Requireable<number>;
8
+ rowIndex: PropTypes.Requireable<number>;
9
+ style: PropTypes.Requireable<any>;
10
+ };
11
+ };
@@ -0,0 +1 @@
1
+ export declare const ToolbarPlugin: (decorators: any) => any;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const ToolbarTrigger: ({ grid, rowData, hasScrollBar, rowRef }: {
3
+ grid: any;
4
+ rowData: any;
5
+ hasScrollBar: any;
6
+ rowRef: any;
7
+ }) => JSX.Element;
8
+ export default ToolbarTrigger;
@@ -0,0 +1 @@
1
+ export { ToolbarPlugin } from './ToolbarPlugin.js';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const AutoHeightList: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
+ export default AutoHeightList;
@@ -0,0 +1 @@
1
+ export declare const VirtualizationPlugin: (decorators: any) => any;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ declare const VirtualizedBody: {
4
+ (props: any): JSX.Element;
5
+ defaultProps: {
6
+ rows: never[];
7
+ overscanCount: number;
8
+ };
9
+ propTypes: {
10
+ autoScrollToId: PropTypes.Requireable<number>;
11
+ columns: PropTypes.Requireable<(PropTypes.InferProps<{}> | null | undefined)[]>;
12
+ component: PropTypes.Requireable<PropTypes.ReactElementLike>;
13
+ expandable: PropTypes.Requireable<boolean>;
14
+ filters: PropTypes.Requireable<any>;
15
+ innerRef: PropTypes.Requireable<any>;
16
+ innerBody: PropTypes.Requireable<any>;
17
+ isPlaceholderActive: PropTypes.Requireable<boolean>;
18
+ listProps: PropTypes.Requireable<PropTypes.InferProps<{
19
+ itemSize: PropTypes.Requireable<(...args: any[]) => any>;
20
+ outerRef: PropTypes.Requireable<any>;
21
+ }>>;
22
+ noResultsPlaceholder: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
23
+ overscanCount: PropTypes.Requireable<number>;
24
+ rows: PropTypes.Requireable<(PropTypes.InferProps<{}> | null | undefined)[]>;
25
+ rowHeight: PropTypes.Requireable<number>;
26
+ rowKey: PropTypes.Requireable<string>;
27
+ rowRenderer: PropTypes.Requireable<PropTypes.ReactElementLike>;
28
+ rowSize: PropTypes.Requireable<any>;
29
+ setHasScroll: PropTypes.Requireable<(...args: any[]) => any>;
30
+ };
31
+ };
32
+ export { VirtualizedBody };
33
+ export default VirtualizedBody;
@@ -0,0 +1,8 @@
1
+ export declare const VirtualizedBodyRow: ({ data, index, style, key, isScrolling }: {
2
+ data: any;
3
+ index: any;
4
+ style: any;
5
+ key: any;
6
+ isScrolling: any;
7
+ }) => any;
8
+ export default VirtualizedBodyRow;
@@ -0,0 +1 @@
1
+ export declare const isSafari: boolean | "";
@@ -0,0 +1 @@
1
+ export { VirtualizationPlugin } from './VirtualizationPlugin.js';
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ export declare const CellWithAddons: {
4
+ ({ leftAddon, keepLeftPadding, rightAddon, badgeAddon, highLight, isEdit, editComponent, value, neutralText, metaData, }: {
5
+ leftAddon: any;
6
+ keepLeftPadding: any;
7
+ rightAddon: any;
8
+ badgeAddon: any;
9
+ highLight: any;
10
+ isEdit: any;
11
+ editComponent: any;
12
+ value: any;
13
+ neutralText: any;
14
+ metaData: any;
15
+ }): JSX.Element;
16
+ propTypes: {
17
+ /** Text to render inside the cell */
18
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
19
+ /** Left Icon */
20
+ leftAddon: PropTypes.Requireable<PropTypes.ReactElementLike>;
21
+ /** keep the left spacing even if no left addons is addded */
22
+ keepLeftPadding: PropTypes.Requireable<boolean>;
23
+ /** Right Icon Button or Dropdown */
24
+ rightAddon: PropTypes.Requireable<PropTypes.ReactElementLike>;
25
+ /** TextBox/InputMask/ComboBox */
26
+ editComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
27
+ /** if is true it will show editComponent */
28
+ isEdit: PropTypes.Requireable<boolean>;
29
+ /** Shows a blue mark in the top left corner */
30
+ badgeAddon: PropTypes.Requireable<boolean>;
31
+ /** change background color to light blue */
32
+ highLight: PropTypes.Requireable<boolean>;
33
+ /** change text color to light gray */
34
+ neutralText: PropTypes.Requireable<boolean>;
35
+ /** data grid meta-information */
36
+ metaData: PropTypes.Requireable<PropTypes.InferProps<{
37
+ className: PropTypes.Requireable<string>;
38
+ column: PropTypes.Requireable<object>;
39
+ columnIndex: PropTypes.Requireable<number>;
40
+ index: PropTypes.Requireable<number>;
41
+ isScrolling: PropTypes.Requireable<boolean>;
42
+ key: PropTypes.Requireable<string>;
43
+ parentRowData: PropTypes.Requireable<any>;
44
+ property: PropTypes.Requireable<string>;
45
+ registerFocus: PropTypes.Requireable<(...args: any[]) => any>;
46
+ rowData: PropTypes.Requireable<object>;
47
+ rowIndex: PropTypes.Requireable<number>;
48
+ rowKey: PropTypes.Requireable<string>;
49
+ style: PropTypes.Requireable<object>;
50
+ }>>;
51
+ };
52
+ };
@@ -0,0 +1,2 @@
1
+ export { CellWithAddons } from './CellWithAddons.js';
2
+ export { CellContainer } from './styled.js';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const CellWrapper: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & object, never>;
3
+ export declare const ValueWrapper: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & object, never>;
4
+ export declare const CellContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object, never>;
@@ -0,0 +1,11 @@
1
+ export declare const RowSizes: {
2
+ compact: number;
3
+ normal: number;
4
+ extend: number;
5
+ };
6
+ export declare const RowSizesOptions: {
7
+ compact: string;
8
+ normal: string;
9
+ extend: string;
10
+ };
11
+ export declare const RowSizesOptionsArr: string[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const getPluginsFromProps: (props: any, omit?: {}) => any[];
2
+ export default getPluginsFromProps;
@@ -0,0 +1 @@
1
+ export declare function getScrollbarWidth(compensatePixels?: number): number;
@@ -0,0 +1,3 @@
1
+ export declare const normalizeRows: (rows: any) => any;
2
+ export declare const normalizeColumns: (columns: any) => any;
3
+ export declare const normalizeText: (text: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-datagrids",
3
- "version": "3.17.0-next.10",
3
+ "version": "3.17.0-next.11",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Grids",
6
6
  "files": [
@@ -556,25 +556,25 @@
556
556
  "sortabular": "~1.6.0",
557
557
  "stylesheet-helpers": "~0.2.2",
558
558
  "uuid": "~8.3.2",
559
- "@elliemae/ds-button": "3.17.0-next.10",
560
- "@elliemae/ds-classnames": "3.17.0-next.10",
561
- "@elliemae/ds-controlled-form": "3.17.0-next.10",
562
- "@elliemae/ds-datagrids": "3.17.0-next.10",
563
- "@elliemae/ds-dropdownmenu": "3.17.0-next.10",
564
- "@elliemae/ds-filterbar": "3.17.0-next.10",
565
- "@elliemae/ds-form": "3.17.0-next.10",
566
- "@elliemae/ds-grid": "3.17.0-next.10",
567
- "@elliemae/ds-icons": "3.17.0-next.10",
568
- "@elliemae/ds-menu": "3.17.0-next.10",
569
- "@elliemae/ds-popper": "3.17.0-next.10",
570
- "@elliemae/ds-props-helpers": "3.17.0-next.10",
571
- "@elliemae/ds-separator": "3.17.0-next.10",
572
- "@elliemae/ds-shared": "3.17.0-next.10",
573
- "@elliemae/ds-spinner": "3.17.0-next.10",
574
- "@elliemae/ds-system": "3.17.0-next.10",
575
- "@elliemae/ds-toolbar": "3.17.0-next.10",
576
- "@elliemae/ds-truncated-tooltip-text": "3.17.0-next.10",
577
- "@elliemae/ds-utilities": "3.17.0-next.10"
559
+ "@elliemae/ds-button": "3.17.0-next.11",
560
+ "@elliemae/ds-classnames": "3.17.0-next.11",
561
+ "@elliemae/ds-dropdownmenu": "3.17.0-next.11",
562
+ "@elliemae/ds-filterbar": "3.17.0-next.11",
563
+ "@elliemae/ds-form": "3.17.0-next.11",
564
+ "@elliemae/ds-grid": "3.17.0-next.11",
565
+ "@elliemae/ds-icons": "3.17.0-next.11",
566
+ "@elliemae/ds-menu": "3.17.0-next.11",
567
+ "@elliemae/ds-popper": "3.17.0-next.11",
568
+ "@elliemae/ds-props-helpers": "3.17.0-next.11",
569
+ "@elliemae/ds-separator": "3.17.0-next.11",
570
+ "@elliemae/ds-shared": "3.17.0-next.11",
571
+ "@elliemae/ds-spinner": "3.17.0-next.11",
572
+ "@elliemae/ds-system": "3.17.0-next.11",
573
+ "@elliemae/ds-toolbar": "3.17.0-next.11",
574
+ "@elliemae/ds-truncated-tooltip-text": "3.17.0-next.11",
575
+ "@elliemae/ds-utilities": "3.17.0-next.11",
576
+ "@elliemae/ds-controlled-form": "3.17.0-next.11",
577
+ "@elliemae/ds-datagrids": "3.17.0-next.11"
578
578
  },
579
579
  "devDependencies": {
580
580
  "@testing-library/jest-dom": "~5.16.5",