@elliemae/ds-data-table 2.2.0-next.3 → 2.2.0-next.7

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/cjs/DataTable.js CHANGED
@@ -12,7 +12,7 @@ var _jsx = require('@babel/runtime/helpers/jsx');
12
12
  var React = require('react');
13
13
  var reactRedux = require('react-redux');
14
14
  var toolkit = require('@reduxjs/toolkit');
15
- var reactDesc = require('react-desc');
15
+ var dsPropsHelpers = require('@elliemae/ds-props-helpers');
16
16
  var TableContent = require('./parts/TableContent.js');
17
17
  var storeConfig = require('./redux/storeConfig.js');
18
18
  var DataTableContext = require('./DataTableContext.js');
@@ -54,7 +54,7 @@ const DataTable = props => {
54
54
  })));
55
55
  };
56
56
  DataTable.defaultProps = _objectSpread({}, DataTableContext.defaultProps);
57
- const DataTableWithSchema = reactDesc.describe(DataTable).description('Data Table');
57
+ const DataTableWithSchema = dsPropsHelpers.describe(DataTable).description('Data Table');
58
58
  DataTableWithSchema.propTypes = DataTableSchema.DataTableSchema;
59
59
 
60
60
  exports.DataTable = DataTable;
@@ -2,118 +2,114 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactDesc = require('react-desc');
5
+ var dsPropsHelpers = require('@elliemae/ds-props-helpers');
6
6
 
7
7
  /* eslint-disable max-lines */
8
- const outOfTheBoxFilterType = reactDesc.PropTypes.oneOf(['ds-filter-select', 'ds-filter-multi-select', 'ds-filter-single-date', 'ds-filter-date-range', 'ds-filter-number-range']);
9
- const textWrappingType = reactDesc.PropTypes.oneOf(['wrap', 'wrap-all', 'truncate']);
10
- const rowVariantType = reactDesc.PropTypes.oneOf(['ds_header_group_row', 'ds_primary_row', 'ds_secondary_row']);
8
+ const outOfTheBoxFilterType = dsPropsHelpers.PropTypes.oneOf(['ds-filter-select', 'ds-filter-multi-select', 'ds-filter-single-date', 'ds-filter-date-range', 'ds-filter-number-range']);
9
+ const textWrappingType = dsPropsHelpers.PropTypes.oneOf(['wrap', 'wrap-all', 'truncate']);
11
10
  const columnPropTypes = {
12
- Header: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('Header name or component').isRequired,
13
- accessor: reactDesc.PropTypes.string.description('The entry of the data that this column will display'),
14
- id: reactDesc.PropTypes.string.description('The id of the column, will default to the Header or accessor if not present'),
11
+ Header: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('Header name or component').isRequired,
12
+ accessor: dsPropsHelpers.PropTypes.string.description('The entry of the data that this column will display'),
13
+ id: dsPropsHelpers.PropTypes.string.description('The id of the column, will default to the Header or accessor if not present'),
15
14
  filter: outOfTheBoxFilterType.description('out-of-the-box filters'),
16
- Filter: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('The custom component to render as a filter'),
17
- Cell: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('The custom cell renderer component'),
18
- editable: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('The editable out-of-the-box or component to render'),
19
- disableDnD: reactDesc.PropTypes.bool.description('Whereas this column should be draggable'),
20
- canResize: reactDesc.PropTypes.bool.description('Whereas this column should be resizable'),
21
- width: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('Width of this column'),
22
- minWidth: reactDesc.PropTypes.number.description('Minimum width of this column, useful when resizing'),
23
- maxWidth: reactDesc.PropTypes.number.description('Maximum width of this column, useful when resizing'),
24
- canSort: reactDesc.PropTypes.bool.description('Whereas this column is sortable'),
25
- isSortedDesc: reactDesc.PropTypes.bool.description('Whereas this column is sorted descendingly'),
26
- required: reactDesc.PropTypes.bool.description('Whereas this column is required'),
27
- alwaysDisplayEditIcon: reactDesc.PropTypes.bool.description('Whereas to always show the edit icon on this column if it is editable'),
28
- textWrap: textWrappingType
15
+ Filter: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('The custom component to render as a filter'),
16
+ Cell: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('The custom cell renderer component'),
17
+ editable: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('The editable out-of-the-box or component to render'),
18
+ disableDnD: dsPropsHelpers.PropTypes.bool.description('Whereas this column should be draggable'),
19
+ canResize: dsPropsHelpers.PropTypes.bool.description('Whereas this column should be resizable'),
20
+ width: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number]).description('Width of this column'),
21
+ minWidth: dsPropsHelpers.PropTypes.number.description('Minimum width of this column, useful when resizing'),
22
+ maxWidth: dsPropsHelpers.PropTypes.number.description('Maximum width of this column, useful when resizing'),
23
+ canSort: dsPropsHelpers.PropTypes.bool.description('Whereas this column is sortable'),
24
+ isSortedDesc: dsPropsHelpers.PropTypes.bool.description('Whereas this column is sorted descendingly'),
25
+ required: dsPropsHelpers.PropTypes.bool.description('Whereas this column is required'),
26
+ alwaysDisplayEditIcon: dsPropsHelpers.PropTypes.bool.description('Whereas to always show the edit icon on this column if it is editable'),
27
+ textWrap: textWrappingType.description('How to wrap the text in the column')
29
28
  };
30
- const columnsPropTypes = reactDesc.PropTypes.shape(columnPropTypes).description('Columns props');
29
+ const columnsPropTypes = dsPropsHelpers.PropTypes.shape(columnPropTypes).description('Columns props');
31
30
  const rowPropTypes = {
32
- row_variant_type: rowVariantType.description('Which row variant to use, will default to primary'),
33
- row_variant_compact: reactDesc.PropTypes.bool.description('Whether to use the compact version of the row'),
34
- tableRowDetails: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('Component for row details'),
35
- dimsumHeaderValue: reactDesc.PropTypes.string.description('Header displayed on the header variant of the row')
31
+ tableRowDetails: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('Component for row details'),
32
+ dimsumHeaderValue: dsPropsHelpers.PropTypes.string.description('Header displayed on the header variant of the row')
36
33
  };
37
- const rowsPropTypes = reactDesc.PropTypes.shape(rowPropTypes).description('Rows props');
34
+ const rowsPropTypes = dsPropsHelpers.PropTypes.shape(rowPropTypes).description('Rows props');
38
35
  const DataTableSchema = {
39
- columns: reactDesc.PropTypes.arrayOf(columnsPropTypes).description('Array of columns').isRequired,
40
- data: reactDesc.PropTypes.arrayOf(rowsPropTypes).description('Array of rows'),
41
- height: reactDesc.PropTypes.number.description('Height of the datatable component'),
42
- width: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('Width of the datatable component'),
43
- renderRowActions: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.object, reactDesc.PropTypes.bool]).description('The renderer to use for the action toolbar'),
44
- isExpandable: reactDesc.PropTypes.bool.description('Whether the datatable is expandable').defaultValue(false),
45
- uniqueRowAccessor: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string), reactDesc.PropTypes.func]).description('Column / Combination of columns / Function to call to produce a unique identifier for each row.' + ' This is necessary for the selectable and drag and drop features'),
46
- disabledRows: reactDesc.PropTypes.object.description('Object with the identifiers of the rows as keys, and booleans as values. Specifies if a row is disabled or not'),
47
- expandedRows: reactDesc.PropTypes.object.description('Object with the identifiers of the rows as keys, and booleans as values. Specifies if a row is expanded or not'),
48
- onRowExpand: reactDesc.PropTypes.func.description('Function invoked when a row is (un)expanded'),
49
- cellRendererProps: reactDesc.PropTypes.object.description('Object with all the props you want the cells to have available when rendering'),
50
- selectSingle: reactDesc.PropTypes.bool.description('Whether the selectable feature is single').defaultValue(false),
51
- selection: reactDesc.PropTypes.object.description('Object with the identifiers of the rows as keys, and booleans as values. Specifies if a row is selected or not'),
52
- onSelectionChange: reactDesc.PropTypes.func.description('Function invoked when a row is selected'),
53
- groupedRowsRenderHeader: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.func]).description('String | Function to call which will display in the row headers'),
54
- isResizeable: reactDesc.PropTypes.bool.description("Whether the datatable's columns are resizeable"),
55
- filters: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.shape({
56
- id: reactDesc.PropTypes.string,
57
- type: reactDesc.PropTypes.string,
58
- value: reactDesc.PropTypes.any
36
+ columns: dsPropsHelpers.PropTypes.arrayOf(columnsPropTypes).description('Array of columns').isRequired,
37
+ data: dsPropsHelpers.PropTypes.arrayOf(rowsPropTypes).description('Array of rows'),
38
+ height: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number]).description('Height of the datatable component'),
39
+ width: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number]).description('Width of the datatable component'),
40
+ renderRowActions: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.object, dsPropsHelpers.PropTypes.bool]).description('The renderer to use for the action toolbar'),
41
+ isExpandable: dsPropsHelpers.PropTypes.bool.description('Whether the datatable is expandable').defaultValue(false),
42
+ uniqueRowAccessor: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.string), dsPropsHelpers.PropTypes.func]).description('Column / Combination of columns / Function to call to produce a unique identifier for each row.' + ' This is necessary for the selectable and drag and drop features'),
43
+ disabledRows: dsPropsHelpers.PropTypes.object.description('Object with the identifiers of the rows as keys, and booleans as values. Specifies if a row is disabled or not'),
44
+ expandedRows: dsPropsHelpers.PropTypes.object.description('Object with the identifiers of the rows as keys, and booleans as values. Specifies if a row is expanded or not'),
45
+ onRowExpand: dsPropsHelpers.PropTypes.func.description('Function invoked when a row is (un)expanded'),
46
+ cellRendererProps: dsPropsHelpers.PropTypes.object.description('Object with all the props you want the cells to have available when rendering'),
47
+ selectSingle: dsPropsHelpers.PropTypes.bool.description('Whether the selectable feature is single').defaultValue(false),
48
+ selection: dsPropsHelpers.PropTypes.object.description('Object with the identifiers of the rows as keys, and booleans as values. Specifies if a row is selected or not'),
49
+ onSelectionChange: dsPropsHelpers.PropTypes.func.description('Function invoked when a row is selected'),
50
+ groupedRowsRenderHeader: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.func]).description('String | Function to call which will display in the row headers'),
51
+ isResizeable: dsPropsHelpers.PropTypes.bool.description("Whether the datatable's columns are resizeable"),
52
+ filters: dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.shape({
53
+ id: dsPropsHelpers.PropTypes.string,
54
+ type: dsPropsHelpers.PropTypes.string,
55
+ value: dsPropsHelpers.PropTypes.any
59
56
  })).description('Array of filter keys and values'),
60
- withFilterBar: reactDesc.PropTypes.bool.description('Whether to display the filter bar'),
61
- filterBarProps: reactDesc.PropTypes.shape({
62
- customPillRenderer: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('If you specify custom filters, you will need to render their pills here'),
63
- extraOptions: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.shape({
64
- type: reactDesc.PropTypes.string,
65
- id: reactDesc.PropTypes.string,
66
- label: reactDesc.PropTypes.string,
67
- onClick: reactDesc.PropTypes.func
57
+ withFilterBar: dsPropsHelpers.PropTypes.bool.description('Whether to display the filter bar'),
58
+ filterBarProps: dsPropsHelpers.PropTypes.shape({
59
+ customPillRenderer: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('If you specify custom filters, you will need to render their pills here'),
60
+ extraOptions: dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.shape({
61
+ type: dsPropsHelpers.PropTypes.string,
62
+ id: dsPropsHelpers.PropTypes.string,
63
+ label: dsPropsHelpers.PropTypes.string,
64
+ onClick: dsPropsHelpers.PropTypes.func
68
65
  })).description('Any extra option you want in the dropdownmenu of the filter bar')
69
66
  }).description('Props for the filter bar'),
70
- onFiltersChange: reactDesc.PropTypes.func.description('Function invoked when filters change'),
71
- pagination: reactDesc.PropTypes.shape({
72
- pageCount: reactDesc.PropTypes.number.description('How many pages are there'),
73
- pageIndex: reactDesc.PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),
74
- canPreviousPage: reactDesc.PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),
75
- canNextPage: reactDesc.PropTypes.bool.description('Whether the next button is disabled or not').defaultValue(true),
76
- pageSize: reactDesc.PropTypes.number.description('The current page size').defaultValue(10),
77
- showPerPageSelector: reactDesc.PropTypes.bool.description('Whether to show the page selector').defaultValue(true),
78
- perPageOptions: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.number, reactDesc.PropTypes.shape({
79
- dsId: reactDesc.PropTypes.string,
80
- value: reactDesc.PropTypes.number,
81
- label: reactDesc.PropTypes.string,
82
- type: reactDesc.PropTypes.oneOf(['single'])
67
+ onFiltersChange: dsPropsHelpers.PropTypes.func.description('Function invoked when filters change'),
68
+ pagination: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.oneOf([false]), dsPropsHelpers.PropTypes.shape({
69
+ pageCount: dsPropsHelpers.PropTypes.number.description('How many pages are there'),
70
+ pageIndex: dsPropsHelpers.PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),
71
+ canPreviousPage: dsPropsHelpers.PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),
72
+ canNextPage: dsPropsHelpers.PropTypes.bool.description('Whether the next button is disabled or not').defaultValue(true),
73
+ pageSize: dsPropsHelpers.PropTypes.number.description('The current page size').defaultValue(10),
74
+ showPerPageSelector: dsPropsHelpers.PropTypes.bool.description('Whether to show the page selector').defaultValue(true),
75
+ perPageOptions: dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.number, dsPropsHelpers.PropTypes.shape({
76
+ dsId: dsPropsHelpers.PropTypes.string,
77
+ value: dsPropsHelpers.PropTypes.number,
78
+ label: dsPropsHelpers.PropTypes.string,
79
+ type: dsPropsHelpers.PropTypes.oneOf(['single'])
83
80
  })])).description('The available options for page size').defaultValue([10]),
84
- perPageStep: reactDesc.PropTypes.number.description('Step for the per page options').defaultValue(5),
85
- minPerPage: reactDesc.PropTypes.number.description('Step for the per page options').defaultValue(0),
86
- maxPerPage: reactDesc.PropTypes.number.description('Step for the per page options').defaultValue(100),
87
- onPageSizeChange: reactDesc.PropTypes.func.description('Function invoked when the page size changes').defaultValue(() => null),
88
- onPreviousPage: reactDesc.PropTypes.func.description('Function invoked when the previous button is pressed').defaultValue(() => null),
89
- onPageChange: reactDesc.PropTypes.func.description('Function invoked when the page changes').defaultValue(() => null),
90
- onNextPage: reactDesc.PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),
91
- pageDetails: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string).description('Details to provide for each page').defaultValue([]),
92
- pageDetailsTitle: reactDesc.PropTypes.string.description('The title of the details (usually a column of your dataset)').defaultValue('')
93
- }).description('Object containing the data for the pagination'),
94
- colsLayoutStyle: reactDesc.PropTypes.oneOf(['auto', 'fixed']).description('Whether the datatable fills its container or not'),
95
- hiddenColumns: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string).description('IDs of columns not to render'),
96
- dragAndDropRows: reactDesc.PropTypes.bool.description('Whether to turn on the d&d feature for the rows').defaultValue(false),
97
- onRowsReorder: reactDesc.PropTypes.func.description('Function invoked when a row is reordered'),
98
- maxDragAndDropLevel: reactDesc.PropTypes.number.description('Which level is the maximum allowed to drop into'),
99
- dragAndDropColumns: reactDesc.PropTypes.bool.description('Whether to turn on the d&d feature for the columns'),
100
- onColumnsReorder: reactDesc.PropTypes.func.description('Function invoked when a column is reordered'),
81
+ perPageStep: dsPropsHelpers.PropTypes.number.description('Step for the per page options').defaultValue(5),
82
+ minPerPage: dsPropsHelpers.PropTypes.number.description('Step for the per page options').defaultValue(0),
83
+ maxPerPage: dsPropsHelpers.PropTypes.number.description('Step for the per page options').defaultValue(100),
84
+ onPageSizeChange: dsPropsHelpers.PropTypes.func.description('Function invoked when the page size changes').defaultValue(() => null),
85
+ onPreviousPage: dsPropsHelpers.PropTypes.func.description('Function invoked when the previous button is pressed').defaultValue(() => null),
86
+ onPageChange: dsPropsHelpers.PropTypes.func.description('Function invoked when the page changes').defaultValue(() => null),
87
+ onNextPage: dsPropsHelpers.PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),
88
+ pageDetails: dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.string).description('Details to provide for each page').defaultValue([]),
89
+ pageDetailsTitle: dsPropsHelpers.PropTypes.string.description('The title of the details (usually a column of your dataset)').defaultValue('')
90
+ })]).description('Object containing the data for the pagination'),
91
+ colsLayoutStyle: dsPropsHelpers.PropTypes.oneOf(['auto', 'fixed']).description('Whether the datatable fills its container or not'),
92
+ hiddenColumns: dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.string).description('IDs of columns not to render'),
93
+ dragAndDropRows: dsPropsHelpers.PropTypes.bool.description('Whether to turn on the d&d feature for the rows').defaultValue(false),
94
+ onRowsReorder: dsPropsHelpers.PropTypes.func.description('Function invoked when a row is reordered'),
95
+ maxDragAndDropLevel: dsPropsHelpers.PropTypes.number.description('Which level is the maximum allowed to drop into'),
96
+ dragAndDropColumns: dsPropsHelpers.PropTypes.bool.description('Whether to turn on the d&d feature for the columns'),
97
+ onColumnsReorder: dsPropsHelpers.PropTypes.func.description('Function invoked when a column is reordered'),
101
98
  textWrap: textWrappingType.description('Global wrapping rule'),
102
- noResultsMessage: reactDesc.PropTypes.string.description('Message to show when no more data is available'),
103
- noResultsSecondaryMessage: reactDesc.PropTypes.string.description('Secondary message to show when no more data is available'),
104
- noResultsButtonLabel: reactDesc.PropTypes.string.description('Label of the button when no more data is available'),
105
- noResultsPlaceholder: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.element]).description('Custom content to show when dataset is empty'),
106
- isLoading: reactDesc.PropTypes.bool.description('Whether to show a global loader in the datatable'),
107
- isLoadingAppended: reactDesc.PropTypes.bool.description('Whether to show an appended loader in the datatable'),
108
- // eslint-disable-next-line max-lines
109
- onColumnResize: reactDesc.PropTypes.func.description('Function invoked when a column is resized'),
110
- isNoMoreDataAppended: reactDesc.PropTypes.bool.description('Whether to show an appended message in the datatable for no more data'),
111
- noMoreDataMessage: reactDesc.PropTypes.string.description('The message to show when no more data is available'),
112
- onRowClick: reactDesc.PropTypes.func.description('Function invoked when clicking a row'),
113
- onRowFocus: reactDesc.PropTypes.func.description('Function invoked when focusing a row'),
114
- onCellValueChange: reactDesc.PropTypes.func.description("Function invoked when an editable cell's content is changed"),
115
- onColumnSortChange: reactDesc.PropTypes.func.description('Function invoked when a column is sorted'),
116
- actionRef: reactDesc.PropTypes.object.description('Reference where all the exposed action callbacks will be exposed')
99
+ noResultsMessage: dsPropsHelpers.PropTypes.string.description('Message to show when no more data is available'),
100
+ noResultsSecondaryMessage: dsPropsHelpers.PropTypes.string.description('Secondary message to show when no more data is available'),
101
+ noResultsButtonLabel: dsPropsHelpers.PropTypes.string.description('Label of the button when no more data is available'),
102
+ noResultsPlaceholder: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.func, dsPropsHelpers.PropTypes.element]).description('Custom content to show when dataset is empty'),
103
+ isLoading: dsPropsHelpers.PropTypes.bool.description('Whether to show a global loader in the datatable'),
104
+ isLoadingAppended: dsPropsHelpers.PropTypes.bool.description('Whether to show an appended loader in the datatable'),
105
+ onColumnResize: dsPropsHelpers.PropTypes.func.description('Function invoked when a column is resized'),
106
+ isNoMoreDataAppended: dsPropsHelpers.PropTypes.bool.description('Whether to show an appended message in the datatable for no more data'),
107
+ noMoreDataMessage: dsPropsHelpers.PropTypes.string.description('The message to show when no more data is available'),
108
+ onRowClick: dsPropsHelpers.PropTypes.func.description('Function invoked when clicking a row'),
109
+ onRowFocus: dsPropsHelpers.PropTypes.func.description('Function invoked when focusing a row'),
110
+ onCellValueChange: dsPropsHelpers.PropTypes.func.description("Function invoked when an editable cell's content is changed"),
111
+ onColumnSortChange: dsPropsHelpers.PropTypes.func.description('Function invoked when a column is sorted'),
112
+ actionRef: dsPropsHelpers.PropTypes.object.description('Reference where all the exposed action callbacks will be exposed')
117
113
  };
118
114
 
119
115
  exports.DataTableSchema = DataTableSchema;
package/esm/DataTable.js CHANGED
@@ -8,7 +8,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
8
8
  import { useMemo, useRef } from 'react';
9
9
  import { Provider } from 'react-redux';
10
10
  import { configureStore } from '@reduxjs/toolkit';
11
- import { describe } from 'react-desc';
11
+ import { describe } from '@elliemae/ds-props-helpers';
12
12
  import TableContent from './parts/TableContent.js';
13
13
  import { storeConfig } from './redux/storeConfig.js';
14
14
  import DataTableContext, { defaultProps } from './DataTableContext.js';
@@ -1,9 +1,8 @@
1
- import { PropTypes } from 'react-desc';
1
+ import { PropTypes } from '@elliemae/ds-props-helpers';
2
2
 
3
3
  /* eslint-disable max-lines */
4
4
  const outOfTheBoxFilterType = PropTypes.oneOf(['ds-filter-select', 'ds-filter-multi-select', 'ds-filter-single-date', 'ds-filter-date-range', 'ds-filter-number-range']);
5
5
  const textWrappingType = PropTypes.oneOf(['wrap', 'wrap-all', 'truncate']);
6
- const rowVariantType = PropTypes.oneOf(['ds_header_group_row', 'ds_primary_row', 'ds_secondary_row']);
7
6
  const columnPropTypes = {
8
7
  Header: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.element]).description('Header name or component').isRequired,
9
8
  accessor: PropTypes.string.description('The entry of the data that this column will display'),
@@ -21,12 +20,10 @@ const columnPropTypes = {
21
20
  isSortedDesc: PropTypes.bool.description('Whereas this column is sorted descendingly'),
22
21
  required: PropTypes.bool.description('Whereas this column is required'),
23
22
  alwaysDisplayEditIcon: PropTypes.bool.description('Whereas to always show the edit icon on this column if it is editable'),
24
- textWrap: textWrappingType
23
+ textWrap: textWrappingType.description('How to wrap the text in the column')
25
24
  };
26
25
  const columnsPropTypes = PropTypes.shape(columnPropTypes).description('Columns props');
27
26
  const rowPropTypes = {
28
- row_variant_type: rowVariantType.description('Which row variant to use, will default to primary'),
29
- row_variant_compact: PropTypes.bool.description('Whether to use the compact version of the row'),
30
27
  tableRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description('Component for row details'),
31
28
  dimsumHeaderValue: PropTypes.string.description('Header displayed on the header variant of the row')
32
29
  };
@@ -34,7 +31,7 @@ const rowsPropTypes = PropTypes.shape(rowPropTypes).description('Rows props');
34
31
  const DataTableSchema = {
35
32
  columns: PropTypes.arrayOf(columnsPropTypes).description('Array of columns').isRequired,
36
33
  data: PropTypes.arrayOf(rowsPropTypes).description('Array of rows'),
37
- height: PropTypes.number.description('Height of the datatable component'),
34
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Height of the datatable component'),
38
35
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Width of the datatable component'),
39
36
  renderRowActions: PropTypes.oneOfType([PropTypes.object, PropTypes.bool]).description('The renderer to use for the action toolbar'),
40
37
  isExpandable: PropTypes.bool.description('Whether the datatable is expandable').defaultValue(false),
@@ -64,7 +61,7 @@ const DataTableSchema = {
64
61
  })).description('Any extra option you want in the dropdownmenu of the filter bar')
65
62
  }).description('Props for the filter bar'),
66
63
  onFiltersChange: PropTypes.func.description('Function invoked when filters change'),
67
- pagination: PropTypes.shape({
64
+ pagination: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.shape({
68
65
  pageCount: PropTypes.number.description('How many pages are there'),
69
66
  pageIndex: PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),
70
67
  canPreviousPage: PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),
@@ -86,7 +83,7 @@ const DataTableSchema = {
86
83
  onNextPage: PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),
87
84
  pageDetails: PropTypes.arrayOf(PropTypes.string).description('Details to provide for each page').defaultValue([]),
88
85
  pageDetailsTitle: PropTypes.string.description('The title of the details (usually a column of your dataset)').defaultValue('')
89
- }).description('Object containing the data for the pagination'),
86
+ })]).description('Object containing the data for the pagination'),
90
87
  colsLayoutStyle: PropTypes.oneOf(['auto', 'fixed']).description('Whether the datatable fills its container or not'),
91
88
  hiddenColumns: PropTypes.arrayOf(PropTypes.string).description('IDs of columns not to render'),
92
89
  dragAndDropRows: PropTypes.bool.description('Whether to turn on the d&d feature for the rows').defaultValue(false),
@@ -101,7 +98,6 @@ const DataTableSchema = {
101
98
  noResultsPlaceholder: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description('Custom content to show when dataset is empty'),
102
99
  isLoading: PropTypes.bool.description('Whether to show a global loader in the datatable'),
103
100
  isLoadingAppended: PropTypes.bool.description('Whether to show an appended loader in the datatable'),
104
- // eslint-disable-next-line max-lines
105
101
  onColumnResize: PropTypes.func.description('Function invoked when a column is resized'),
106
102
  isNoMoreDataAppended: PropTypes.bool.description('Whether to show an appended message in the datatable for no more data'),
107
103
  noMoreDataMessage: PropTypes.string.description('The message to show when no more data is available'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-data-table",
3
- "version": "2.2.0-next.3",
3
+ "version": "2.2.0-next.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Table",
6
6
  "module": "./esm/index.js",
@@ -570,23 +570,23 @@
570
570
  "dependencies": {
571
571
  "@dnd-kit/core": "~4.0.1",
572
572
  "@dnd-kit/sortable": "~5.0.0",
573
- "@elliemae/ds-button": "2.2.0-next.3",
574
- "@elliemae/ds-circular-progress-indicator": "2.2.0-next.3",
575
- "@elliemae/ds-controlled-form": "2.2.0-next.3",
576
- "@elliemae/ds-drag-and-drop": "2.2.0-next.3",
577
- "@elliemae/ds-dropdownmenu": "2.2.0-next.3",
578
- "@elliemae/ds-form": "2.2.0-next.3",
579
- "@elliemae/ds-form-layout-blocks": "2.2.0-next.3",
580
- "@elliemae/ds-grid": "2.2.0-next.3",
581
- "@elliemae/ds-icons": "2.2.0-next.3",
582
- "@elliemae/ds-indeterminate-progress-indicator": "2.2.0-next.3",
583
- "@elliemae/ds-pagination": "2.2.0-next.3",
584
- "@elliemae/ds-pills": "2.2.0-next.3",
585
- "@elliemae/ds-popperjs": "2.2.0-next.3",
586
- "@elliemae/ds-system": "2.2.0-next.3",
587
- "@elliemae/ds-toolbar": "2.2.0-next.3",
588
- "@elliemae/ds-truncated-tooltip-text": "2.2.0-next.3",
589
- "@elliemae/ds-utilities": "2.2.0-next.3",
573
+ "@elliemae/ds-button": "2.2.0-next.7",
574
+ "@elliemae/ds-circular-progress-indicator": "2.2.0-next.7",
575
+ "@elliemae/ds-controlled-form": "2.2.0-next.7",
576
+ "@elliemae/ds-drag-and-drop": "2.2.0-next.7",
577
+ "@elliemae/ds-dropdownmenu": "2.2.0-next.7",
578
+ "@elliemae/ds-form": "2.2.0-next.7",
579
+ "@elliemae/ds-form-layout-blocks": "2.2.0-next.7",
580
+ "@elliemae/ds-grid": "2.2.0-next.7",
581
+ "@elliemae/ds-icons": "2.2.0-next.7",
582
+ "@elliemae/ds-indeterminate-progress-indicator": "2.2.0-next.7",
583
+ "@elliemae/ds-pagination": "2.2.0-next.7",
584
+ "@elliemae/ds-pills": "2.2.0-next.7",
585
+ "@elliemae/ds-popperjs": "2.2.0-next.7",
586
+ "@elliemae/ds-system": "2.2.0-next.7",
587
+ "@elliemae/ds-toolbar": "2.2.0-next.7",
588
+ "@elliemae/ds-truncated-tooltip-text": "2.2.0-next.7",
589
+ "@elliemae/ds-utilities": "2.2.0-next.7",
590
590
  "@reduxjs/toolkit": "~1.6.2",
591
591
  "csstype": "~3.0.9",
592
592
  "moment": "~2.29.1",
@@ -1,253 +1,51 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
1
  import React from 'react';
3
2
  import { TypescriptProps } from './types/props';
4
3
  export declare const DataTable: {
5
4
  (props: TypescriptProps): JSX.Element;
6
5
  propTypes: {
7
- columns: import("react-desc").PropTypesDescValue;
8
- data: {
9
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
10
- deprecated: import("react-desc").PropTypesDescValidator;
11
- };
12
- isRequired: import("react-desc").PropTypesDescValue;
13
- };
14
- height: {
15
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
16
- deprecated: import("react-desc").PropTypesDescValidator;
17
- };
18
- isRequired: import("react-desc").PropTypesDescValue;
19
- };
20
- width: {
21
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
22
- deprecated: import("react-desc").PropTypesDescValidator;
23
- };
24
- isRequired: import("react-desc").PropTypesDescValue;
25
- };
26
- renderRowActions: {
27
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
28
- deprecated: import("react-desc").PropTypesDescValidator;
29
- };
30
- isRequired: import("react-desc").PropTypesDescValue;
31
- };
32
- isExpandable: {
33
- deprecated: import("react-desc").PropTypesDescValidator;
34
- };
35
- uniqueRowAccessor: {
36
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
37
- deprecated: import("react-desc").PropTypesDescValidator;
38
- };
39
- isRequired: import("react-desc").PropTypesDescValue;
40
- };
41
- disabledRows: {
42
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
43
- deprecated: import("react-desc").PropTypesDescValidator;
44
- };
45
- isRequired: import("react-desc").PropTypesDescValue;
46
- };
47
- expandedRows: {
48
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
49
- deprecated: import("react-desc").PropTypesDescValidator;
50
- };
51
- isRequired: import("react-desc").PropTypesDescValue;
52
- };
53
- onRowExpand: {
54
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
55
- deprecated: import("react-desc").PropTypesDescValidator;
56
- };
57
- isRequired: import("react-desc").PropTypesDescValue;
58
- };
59
- cellRendererProps: {
60
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
61
- deprecated: import("react-desc").PropTypesDescValidator;
62
- };
63
- isRequired: import("react-desc").PropTypesDescValue;
64
- };
65
- selectSingle: {
66
- deprecated: import("react-desc").PropTypesDescValidator;
67
- };
68
- selection: {
69
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
70
- deprecated: import("react-desc").PropTypesDescValidator;
71
- };
72
- isRequired: import("react-desc").PropTypesDescValue;
73
- };
74
- onSelectionChange: {
75
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
76
- deprecated: import("react-desc").PropTypesDescValidator;
77
- };
78
- isRequired: import("react-desc").PropTypesDescValue;
79
- };
80
- groupedRowsRenderHeader: {
81
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
82
- deprecated: import("react-desc").PropTypesDescValidator;
83
- };
84
- isRequired: import("react-desc").PropTypesDescValue;
85
- };
86
- isResizeable: {
87
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
88
- deprecated: import("react-desc").PropTypesDescValidator;
89
- };
90
- isRequired: import("react-desc").PropTypesDescValue;
91
- };
92
- filters: {
93
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
94
- deprecated: import("react-desc").PropTypesDescValidator;
95
- };
96
- isRequired: import("react-desc").PropTypesDescValue;
97
- };
98
- withFilterBar: {
99
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
100
- deprecated: import("react-desc").PropTypesDescValidator;
101
- };
102
- isRequired: import("react-desc").PropTypesDescValue;
103
- };
104
- filterBarProps: {
105
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
106
- deprecated: import("react-desc").PropTypesDescValidator;
107
- };
108
- isRequired: import("react-desc").PropTypesDescValue;
109
- };
110
- onFiltersChange: {
111
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
112
- deprecated: import("react-desc").PropTypesDescValidator;
113
- };
114
- isRequired: import("react-desc").PropTypesDescValue;
115
- };
116
- pagination: {
117
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
118
- deprecated: import("react-desc").PropTypesDescValidator;
119
- };
120
- isRequired: import("react-desc").PropTypesDescValue;
121
- };
122
- colsLayoutStyle: {
123
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
124
- deprecated: import("react-desc").PropTypesDescValidator;
125
- };
126
- isRequired: import("react-desc").PropTypesDescValue;
127
- };
128
- hiddenColumns: {
129
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
130
- deprecated: import("react-desc").PropTypesDescValidator;
131
- };
132
- isRequired: import("react-desc").PropTypesDescValue;
133
- };
134
- dragAndDropRows: {
135
- deprecated: import("react-desc").PropTypesDescValidator;
136
- };
137
- onRowsReorder: {
138
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
139
- deprecated: import("react-desc").PropTypesDescValidator;
140
- };
141
- isRequired: import("react-desc").PropTypesDescValue;
142
- };
143
- maxDragAndDropLevel: {
144
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
145
- deprecated: import("react-desc").PropTypesDescValidator;
146
- };
147
- isRequired: import("react-desc").PropTypesDescValue;
148
- };
149
- dragAndDropColumns: {
150
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
151
- deprecated: import("react-desc").PropTypesDescValidator;
152
- };
153
- isRequired: import("react-desc").PropTypesDescValue;
154
- };
155
- onColumnsReorder: {
156
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
157
- deprecated: import("react-desc").PropTypesDescValidator;
158
- };
159
- isRequired: import("react-desc").PropTypesDescValue;
160
- };
161
- textWrap: {
162
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
163
- deprecated: import("react-desc").PropTypesDescValidator;
164
- };
165
- isRequired: import("react-desc").PropTypesDescValue;
166
- };
167
- noResultsMessage: {
168
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
169
- deprecated: import("react-desc").PropTypesDescValidator;
170
- };
171
- isRequired: import("react-desc").PropTypesDescValue;
172
- };
173
- noResultsSecondaryMessage: {
174
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
175
- deprecated: import("react-desc").PropTypesDescValidator;
176
- };
177
- isRequired: import("react-desc").PropTypesDescValue;
178
- };
179
- noResultsButtonLabel: {
180
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
181
- deprecated: import("react-desc").PropTypesDescValidator;
182
- };
183
- isRequired: import("react-desc").PropTypesDescValue;
184
- };
185
- noResultsPlaceholder: {
186
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
187
- deprecated: import("react-desc").PropTypesDescValidator;
188
- };
189
- isRequired: import("react-desc").PropTypesDescValue;
190
- };
191
- isLoading: {
192
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
193
- deprecated: import("react-desc").PropTypesDescValidator;
194
- };
195
- isRequired: import("react-desc").PropTypesDescValue;
196
- };
197
- isLoadingAppended: {
198
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
199
- deprecated: import("react-desc").PropTypesDescValidator;
200
- };
201
- isRequired: import("react-desc").PropTypesDescValue;
202
- };
203
- onColumnResize: {
204
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
205
- deprecated: import("react-desc").PropTypesDescValidator;
206
- };
207
- isRequired: import("react-desc").PropTypesDescValue;
208
- };
209
- isNoMoreDataAppended: {
210
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
211
- deprecated: import("react-desc").PropTypesDescValidator;
212
- };
213
- isRequired: import("react-desc").PropTypesDescValue;
214
- };
215
- noMoreDataMessage: {
216
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
217
- deprecated: import("react-desc").PropTypesDescValidator;
218
- };
219
- isRequired: import("react-desc").PropTypesDescValue;
220
- };
221
- onRowClick: {
222
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
223
- deprecated: import("react-desc").PropTypesDescValidator;
224
- };
225
- isRequired: import("react-desc").PropTypesDescValue;
226
- };
227
- onRowFocus: {
228
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
229
- deprecated: import("react-desc").PropTypesDescValidator;
230
- };
231
- isRequired: import("react-desc").PropTypesDescValue;
232
- };
233
- onCellValueChange: {
234
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
235
- deprecated: import("react-desc").PropTypesDescValidator;
236
- };
237
- isRequired: import("react-desc").PropTypesDescValue;
238
- };
239
- onColumnSortChange: {
240
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
241
- deprecated: import("react-desc").PropTypesDescValidator;
242
- };
243
- isRequired: import("react-desc").PropTypesDescValue;
244
- };
245
- actionRef: {
246
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
247
- deprecated: import("react-desc").PropTypesDescValidator;
248
- };
249
- isRequired: import("react-desc").PropTypesDescValue;
250
- };
6
+ columns: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
7
+ data: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
8
+ height: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ width: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
10
+ renderRowActions: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
11
+ isExpandable: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
12
+ uniqueRowAccessor: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
13
+ disabledRows: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
14
+ expandedRows: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
15
+ onRowExpand: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
16
+ cellRendererProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
17
+ selectSingle: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
18
+ selection: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
19
+ onSelectionChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
20
+ groupedRowsRenderHeader: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
21
+ isResizeable: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
22
+ filters: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
23
+ withFilterBar: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
24
+ filterBarProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
25
+ onFiltersChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
26
+ pagination: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
27
+ colsLayoutStyle: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
28
+ hiddenColumns: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
29
+ dragAndDropRows: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
30
+ onRowsReorder: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
31
+ maxDragAndDropLevel: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
32
+ dragAndDropColumns: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
33
+ onColumnsReorder: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
34
+ textWrap: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
35
+ noResultsMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
36
+ noResultsSecondaryMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
37
+ noResultsButtonLabel: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
38
+ noResultsPlaceholder: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
39
+ isLoading: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
40
+ isLoadingAppended: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
41
+ onColumnResize: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
42
+ isNoMoreDataAppended: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
43
+ noMoreDataMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
44
+ onRowClick: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
45
+ onRowFocus: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
46
+ onCellValueChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
47
+ onColumnSortChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
48
+ actionRef: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
251
49
  };
252
50
  defaultProps: {
253
51
  columns?: import("./types/props").TypescriptColumn[] | undefined;
@@ -1,247 +1,45 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
1
  export declare const DataTableSchema: {
3
- columns: import("react-desc").PropTypesDescValue;
4
- data: {
5
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
6
- deprecated: import("react-desc").PropTypesDescValidator;
7
- };
8
- isRequired: import("react-desc").PropTypesDescValue;
9
- };
10
- height: {
11
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
12
- deprecated: import("react-desc").PropTypesDescValidator;
13
- };
14
- isRequired: import("react-desc").PropTypesDescValue;
15
- };
16
- width: {
17
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
18
- deprecated: import("react-desc").PropTypesDescValidator;
19
- };
20
- isRequired: import("react-desc").PropTypesDescValue;
21
- };
22
- renderRowActions: {
23
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
24
- deprecated: import("react-desc").PropTypesDescValidator;
25
- };
26
- isRequired: import("react-desc").PropTypesDescValue;
27
- };
28
- isExpandable: {
29
- deprecated: import("react-desc").PropTypesDescValidator;
30
- };
31
- uniqueRowAccessor: {
32
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
33
- deprecated: import("react-desc").PropTypesDescValidator;
34
- };
35
- isRequired: import("react-desc").PropTypesDescValue;
36
- };
37
- disabledRows: {
38
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
39
- deprecated: import("react-desc").PropTypesDescValidator;
40
- };
41
- isRequired: import("react-desc").PropTypesDescValue;
42
- };
43
- expandedRows: {
44
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
45
- deprecated: import("react-desc").PropTypesDescValidator;
46
- };
47
- isRequired: import("react-desc").PropTypesDescValue;
48
- };
49
- onRowExpand: {
50
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
51
- deprecated: import("react-desc").PropTypesDescValidator;
52
- };
53
- isRequired: import("react-desc").PropTypesDescValue;
54
- };
55
- cellRendererProps: {
56
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
57
- deprecated: import("react-desc").PropTypesDescValidator;
58
- };
59
- isRequired: import("react-desc").PropTypesDescValue;
60
- };
61
- selectSingle: {
62
- deprecated: import("react-desc").PropTypesDescValidator;
63
- };
64
- selection: {
65
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
66
- deprecated: import("react-desc").PropTypesDescValidator;
67
- };
68
- isRequired: import("react-desc").PropTypesDescValue;
69
- };
70
- onSelectionChange: {
71
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
72
- deprecated: import("react-desc").PropTypesDescValidator;
73
- };
74
- isRequired: import("react-desc").PropTypesDescValue;
75
- };
76
- groupedRowsRenderHeader: {
77
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
78
- deprecated: import("react-desc").PropTypesDescValidator;
79
- };
80
- isRequired: import("react-desc").PropTypesDescValue;
81
- };
82
- isResizeable: {
83
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
84
- deprecated: import("react-desc").PropTypesDescValidator;
85
- };
86
- isRequired: import("react-desc").PropTypesDescValue;
87
- };
88
- filters: {
89
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
90
- deprecated: import("react-desc").PropTypesDescValidator;
91
- };
92
- isRequired: import("react-desc").PropTypesDescValue;
93
- };
94
- withFilterBar: {
95
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
96
- deprecated: import("react-desc").PropTypesDescValidator;
97
- };
98
- isRequired: import("react-desc").PropTypesDescValue;
99
- };
100
- filterBarProps: {
101
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
102
- deprecated: import("react-desc").PropTypesDescValidator;
103
- };
104
- isRequired: import("react-desc").PropTypesDescValue;
105
- };
106
- onFiltersChange: {
107
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
108
- deprecated: import("react-desc").PropTypesDescValidator;
109
- };
110
- isRequired: import("react-desc").PropTypesDescValue;
111
- };
112
- pagination: {
113
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
114
- deprecated: import("react-desc").PropTypesDescValidator;
115
- };
116
- isRequired: import("react-desc").PropTypesDescValue;
117
- };
118
- colsLayoutStyle: {
119
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
120
- deprecated: import("react-desc").PropTypesDescValidator;
121
- };
122
- isRequired: import("react-desc").PropTypesDescValue;
123
- };
124
- hiddenColumns: {
125
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
126
- deprecated: import("react-desc").PropTypesDescValidator;
127
- };
128
- isRequired: import("react-desc").PropTypesDescValue;
129
- };
130
- dragAndDropRows: {
131
- deprecated: import("react-desc").PropTypesDescValidator;
132
- };
133
- onRowsReorder: {
134
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
135
- deprecated: import("react-desc").PropTypesDescValidator;
136
- };
137
- isRequired: import("react-desc").PropTypesDescValue;
138
- };
139
- maxDragAndDropLevel: {
140
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
141
- deprecated: import("react-desc").PropTypesDescValidator;
142
- };
143
- isRequired: import("react-desc").PropTypesDescValue;
144
- };
145
- dragAndDropColumns: {
146
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
147
- deprecated: import("react-desc").PropTypesDescValidator;
148
- };
149
- isRequired: import("react-desc").PropTypesDescValue;
150
- };
151
- onColumnsReorder: {
152
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
153
- deprecated: import("react-desc").PropTypesDescValidator;
154
- };
155
- isRequired: import("react-desc").PropTypesDescValue;
156
- };
157
- textWrap: {
158
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
159
- deprecated: import("react-desc").PropTypesDescValidator;
160
- };
161
- isRequired: import("react-desc").PropTypesDescValue;
162
- };
163
- noResultsMessage: {
164
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
165
- deprecated: import("react-desc").PropTypesDescValidator;
166
- };
167
- isRequired: import("react-desc").PropTypesDescValue;
168
- };
169
- noResultsSecondaryMessage: {
170
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
171
- deprecated: import("react-desc").PropTypesDescValidator;
172
- };
173
- isRequired: import("react-desc").PropTypesDescValue;
174
- };
175
- noResultsButtonLabel: {
176
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
177
- deprecated: import("react-desc").PropTypesDescValidator;
178
- };
179
- isRequired: import("react-desc").PropTypesDescValue;
180
- };
181
- noResultsPlaceholder: {
182
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
183
- deprecated: import("react-desc").PropTypesDescValidator;
184
- };
185
- isRequired: import("react-desc").PropTypesDescValue;
186
- };
187
- isLoading: {
188
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
189
- deprecated: import("react-desc").PropTypesDescValidator;
190
- };
191
- isRequired: import("react-desc").PropTypesDescValue;
192
- };
193
- isLoadingAppended: {
194
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
195
- deprecated: import("react-desc").PropTypesDescValidator;
196
- };
197
- isRequired: import("react-desc").PropTypesDescValue;
198
- };
199
- onColumnResize: {
200
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
201
- deprecated: import("react-desc").PropTypesDescValidator;
202
- };
203
- isRequired: import("react-desc").PropTypesDescValue;
204
- };
205
- isNoMoreDataAppended: {
206
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
207
- deprecated: import("react-desc").PropTypesDescValidator;
208
- };
209
- isRequired: import("react-desc").PropTypesDescValue;
210
- };
211
- noMoreDataMessage: {
212
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
213
- deprecated: import("react-desc").PropTypesDescValidator;
214
- };
215
- isRequired: import("react-desc").PropTypesDescValue;
216
- };
217
- onRowClick: {
218
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
219
- deprecated: import("react-desc").PropTypesDescValidator;
220
- };
221
- isRequired: import("react-desc").PropTypesDescValue;
222
- };
223
- onRowFocus: {
224
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
225
- deprecated: import("react-desc").PropTypesDescValidator;
226
- };
227
- isRequired: import("react-desc").PropTypesDescValue;
228
- };
229
- onCellValueChange: {
230
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
231
- deprecated: import("react-desc").PropTypesDescValidator;
232
- };
233
- isRequired: import("react-desc").PropTypesDescValue;
234
- };
235
- onColumnSortChange: {
236
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
237
- deprecated: import("react-desc").PropTypesDescValidator;
238
- };
239
- isRequired: import("react-desc").PropTypesDescValue;
240
- };
241
- actionRef: {
242
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
243
- deprecated: import("react-desc").PropTypesDescValidator;
244
- };
245
- isRequired: import("react-desc").PropTypesDescValue;
246
- };
2
+ columns: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
3
+ data: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
4
+ height: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
5
+ width: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
6
+ renderRowActions: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
7
+ isExpandable: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
8
+ uniqueRowAccessor: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ disabledRows: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
10
+ expandedRows: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
11
+ onRowExpand: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
12
+ cellRendererProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
13
+ selectSingle: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
14
+ selection: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
15
+ onSelectionChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
16
+ groupedRowsRenderHeader: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
17
+ isResizeable: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
18
+ filters: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
19
+ withFilterBar: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
20
+ filterBarProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
21
+ onFiltersChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
22
+ pagination: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
23
+ colsLayoutStyle: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
24
+ hiddenColumns: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
25
+ dragAndDropRows: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
26
+ onRowsReorder: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
27
+ maxDragAndDropLevel: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
28
+ dragAndDropColumns: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
29
+ onColumnsReorder: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
30
+ textWrap: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
31
+ noResultsMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
32
+ noResultsSecondaryMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
33
+ noResultsButtonLabel: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
34
+ noResultsPlaceholder: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
35
+ isLoading: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
36
+ isLoadingAppended: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
37
+ onColumnResize: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
38
+ isNoMoreDataAppended: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
39
+ noMoreDataMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
40
+ onRowClick: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
41
+ onRowFocus: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
42
+ onCellValueChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
43
+ onColumnSortChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
44
+ actionRef: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
247
45
  };