@elliemae/ds-datagrids 2.0.0-next.1 → 2.0.0-next.13

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.
Files changed (204) hide show
  1. package/cjs/DSDataGrid.js +246 -243
  2. package/cjs/DataGridImpl.js +18 -9
  3. package/cjs/PaginatedDataGrid.js +5 -0
  4. package/cjs/blockNames.js +2 -2
  5. package/cjs/columns/IconColumn.js +19 -17
  6. package/cjs/columns/NumberColumn.js +2 -4
  7. package/cjs/components/BodyCell.js +20 -12
  8. package/cjs/components/BodyList.js +7 -0
  9. package/cjs/components/ColumnVisibilityMenuOption.js +12 -6
  10. package/cjs/components/ColumnsOptionsMenuSection.js +35 -28
  11. package/cjs/components/EmptyState.js +19 -17
  12. package/cjs/components/HeaderCell.js +15 -9
  13. package/cjs/components/List.js +5 -0
  14. package/cjs/components/ListItem.js +7 -0
  15. package/cjs/components/NoResults.js +5 -0
  16. package/cjs/components/RowsLoader.js +5 -4
  17. package/cjs/components/Table.js +5 -0
  18. package/cjs/components/TableBody.js +5 -0
  19. package/cjs/components/TableHeader.js +5 -0
  20. package/cjs/components/footer/addOptionalFooterComponents.js +5 -4
  21. package/cjs/components/header/PrimaryControls.js +20 -15
  22. package/cjs/components/header/addOptionalHeaderComponents.js +4 -3
  23. package/cjs/components/renderers/defaultClassedRenderers.js +35 -23
  24. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +50 -39
  25. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +11 -7
  26. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +2 -3
  27. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +11 -9
  28. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +13 -6
  29. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +3 -3
  30. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +23 -17
  31. package/cjs/plugins/column-sizing/useColumnSizeService.js +13 -3
  32. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +69 -53
  33. package/cjs/plugins/column-sizing/utils.js +10 -6
  34. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +9 -4
  35. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +20 -21
  36. package/cjs/plugins/editable/EditableComponents/ComboBox.js +7 -3
  37. package/cjs/plugins/editable/EditableComponents/TextBox.js +20 -14
  38. package/cjs/plugins/editable/EditablePlugin.js +16 -15
  39. package/cjs/plugins/editable/decorateEditable.js +19 -11
  40. package/cjs/plugins/editable/getEditorComponent.js +45 -34
  41. package/cjs/plugins/expandable-grid/ExpandableColumn.js +60 -53
  42. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +38 -26
  43. package/cjs/plugins/expandable-grid/ExpandedRow.js +28 -18
  44. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +18 -12
  45. package/cjs/plugins/expandable-grid/useExpandGridState.js +4 -8
  46. package/cjs/plugins/export-data/ExportDataPlugin.js +31 -17
  47. package/cjs/plugins/filterable/FilterablePlugin.js +7 -6
  48. package/cjs/plugins/filterable/addFilterToColumn.js +5 -0
  49. package/cjs/plugins/filterable/components/FilterableHeader.js +36 -27
  50. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +41 -34
  51. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +27 -22
  52. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +122 -156
  53. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +29 -20
  54. package/cjs/plugins/filterable/filterableFormatter.js +15 -10
  55. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +16 -4
  56. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
  57. package/cjs/plugins/filterable/helper.js +17 -7
  58. package/cjs/plugins/filterable/useFilterableState.js +12 -5
  59. package/cjs/plugins/grouping-by/GroupingByPlugin.js +3 -1
  60. package/cjs/plugins/grouping-grid/GroupingPlugin.js +10 -1
  61. package/cjs/plugins/grouping-grid/walkStrategy.js +13 -9
  62. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +8 -1
  63. package/cjs/plugins/pagination/PaginationPlugin.js +9 -2
  64. package/cjs/plugins/pagination/components/Pagination.js +10 -9
  65. package/cjs/plugins/pagination/components/Paginator.js +8 -7
  66. package/cjs/plugins/pagination/components/PerPageDropdown.js +20 -13
  67. package/cjs/plugins/pagination/helper.js +10 -7
  68. package/cjs/plugins/pagination/usePaginationState.js +8 -3
  69. package/cjs/plugins/resizable/ResizablePlugin.js +5 -4
  70. package/cjs/plugins/resizable/decorateResizable.js +14 -8
  71. package/cjs/plugins/resizable/useResizeHandle.js +21 -16
  72. package/cjs/plugins/resizable/utils.js +9 -6
  73. package/cjs/plugins/row-dnd/DndRowsPlugin.js +24 -16
  74. package/cjs/plugins/selectable/SelectablePlugin.js +11 -10
  75. package/cjs/plugins/selectable/addSelectableColumn.js +24 -16
  76. package/cjs/plugins/selectable/helper.js +12 -3
  77. package/cjs/plugins/selectable/selectableFormatter.js +80 -71
  78. package/cjs/plugins/selectable/useSelectableState.js +25 -11
  79. package/cjs/plugins/sortable/SortablePlugin.js +8 -7
  80. package/cjs/plugins/sortable/sortHeaderFormatter.js +14 -15
  81. package/cjs/plugins/sortable/sortTree.js +13 -3
  82. package/cjs/plugins/sortable/sorter.js +152 -134
  83. package/cjs/plugins/sortable/useSortableState.js +8 -0
  84. package/cjs/plugins/toolbar/RowRenderer.js +9 -3
  85. package/cjs/plugins/toolbar/ToolbarPlugin.js +1 -0
  86. package/cjs/plugins/toolbar/ToolbarTrigger.js +18 -13
  87. package/cjs/plugins/virtualization/AutoHeightList.js +10 -8
  88. package/cjs/plugins/virtualization/VirtualizationPlugin.js +32 -25
  89. package/cjs/plugins/virtualization/VirtualizedBody.js +20 -10
  90. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +8 -7
  91. package/cjs/renders/CellWithAddons.js +20 -18
  92. package/cjs/renders/styled.js +5 -16
  93. package/cjs/utilities/getPluginsFromProps.js +5 -1
  94. package/cjs/utilities/getScrollbarSize.js +2 -1
  95. package/cjs/utilities/normalizeData.js +7 -1
  96. package/esm/DSDataGrid.js +246 -243
  97. package/esm/DataGridImpl.js +18 -9
  98. package/esm/PaginatedDataGrid.js +5 -0
  99. package/esm/blockNames.js +2 -2
  100. package/esm/columns/IconColumn.js +19 -17
  101. package/esm/columns/NumberColumn.js +2 -4
  102. package/esm/components/BodyCell.js +20 -12
  103. package/esm/components/BodyList.js +7 -0
  104. package/esm/components/ColumnVisibilityMenuOption.js +12 -6
  105. package/esm/components/ColumnsOptionsMenuSection.js +35 -28
  106. package/esm/components/EmptyState.js +18 -15
  107. package/esm/components/HeaderCell.js +15 -9
  108. package/esm/components/List.js +5 -0
  109. package/esm/components/ListItem.js +7 -0
  110. package/esm/components/NoResults.js +5 -0
  111. package/esm/components/RowsLoader.js +5 -4
  112. package/esm/components/Table.js +5 -0
  113. package/esm/components/TableBody.js +5 -0
  114. package/esm/components/TableHeader.js +5 -0
  115. package/esm/components/footer/addOptionalFooterComponents.js +5 -4
  116. package/esm/components/header/PrimaryControls.js +20 -14
  117. package/esm/components/header/addOptionalHeaderComponents.js +4 -3
  118. package/esm/components/renderers/defaultClassedRenderers.js +35 -23
  119. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +50 -39
  120. package/esm/plugins/column-dnd/DndColumnsPlugin.js +8 -4
  121. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +1 -1
  122. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +10 -8
  123. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +12 -5
  124. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
  125. package/esm/plugins/column-sizing/ext-points/getTableProps.js +22 -15
  126. package/esm/plugins/column-sizing/useColumnSizeService.js +13 -3
  127. package/esm/plugins/column-sizing/useStylesheetHelpers.js +67 -51
  128. package/esm/plugins/column-sizing/utils.js +8 -4
  129. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +6 -1
  130. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +15 -11
  131. package/esm/plugins/editable/EditableComponents/ComboBox.js +6 -1
  132. package/esm/plugins/editable/EditableComponents/TextBox.js +19 -12
  133. package/esm/plugins/editable/EditablePlugin.js +14 -12
  134. package/esm/plugins/editable/decorateEditable.js +18 -9
  135. package/esm/plugins/editable/getEditorComponent.js +49 -38
  136. package/esm/plugins/expandable-grid/ExpandableColumn.js +59 -50
  137. package/esm/plugins/expandable-grid/ExpandablePlugin.js +34 -20
  138. package/esm/plugins/expandable-grid/ExpandedRow.js +27 -17
  139. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +17 -11
  140. package/esm/plugins/expandable-grid/useExpandGridState.js +2 -2
  141. package/esm/plugins/export-data/ExportDataPlugin.js +30 -16
  142. package/esm/plugins/filterable/FilterablePlugin.js +5 -4
  143. package/esm/plugins/filterable/addFilterToColumn.js +5 -0
  144. package/esm/plugins/filterable/components/FilterableHeader.js +32 -22
  145. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +41 -33
  146. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +27 -21
  147. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +121 -154
  148. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +28 -18
  149. package/esm/plugins/filterable/filterableFormatter.js +15 -10
  150. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +14 -2
  151. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
  152. package/esm/plugins/filterable/helper.js +11 -1
  153. package/esm/plugins/filterable/useFilterableState.js +12 -5
  154. package/esm/plugins/grouping-by/GroupingByPlugin.js +3 -1
  155. package/esm/plugins/grouping-grid/GroupingPlugin.js +10 -1
  156. package/esm/plugins/grouping-grid/walkStrategy.js +13 -9
  157. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +8 -1
  158. package/esm/plugins/pagination/PaginationPlugin.js +8 -1
  159. package/esm/plugins/pagination/components/Pagination.js +10 -9
  160. package/esm/plugins/pagination/components/Paginator.js +8 -7
  161. package/esm/plugins/pagination/components/PerPageDropdown.js +17 -9
  162. package/esm/plugins/pagination/helper.js +10 -7
  163. package/esm/plugins/pagination/usePaginationState.js +7 -1
  164. package/esm/plugins/resizable/ResizablePlugin.js +4 -3
  165. package/esm/plugins/resizable/decorateResizable.js +14 -8
  166. package/esm/plugins/resizable/useResizeHandle.js +21 -16
  167. package/esm/plugins/resizable/utils.js +7 -4
  168. package/esm/plugins/row-dnd/DndRowsPlugin.js +22 -13
  169. package/esm/plugins/selectable/SelectablePlugin.js +10 -9
  170. package/esm/plugins/selectable/addSelectableColumn.js +24 -16
  171. package/esm/plugins/selectable/helper.js +10 -1
  172. package/esm/plugins/selectable/selectableFormatter.js +79 -68
  173. package/esm/plugins/selectable/useSelectableState.js +20 -5
  174. package/esm/plugins/sortable/SortablePlugin.js +5 -4
  175. package/esm/plugins/sortable/sortHeaderFormatter.js +12 -11
  176. package/esm/plugins/sortable/sortTree.js +13 -3
  177. package/esm/plugins/sortable/sorter.js +152 -134
  178. package/esm/plugins/sortable/useSortableState.js +8 -0
  179. package/esm/plugins/toolbar/RowRenderer.js +8 -2
  180. package/esm/plugins/toolbar/ToolbarPlugin.js +1 -0
  181. package/esm/plugins/toolbar/ToolbarTrigger.js +17 -11
  182. package/esm/plugins/virtualization/AutoHeightList.js +6 -3
  183. package/esm/plugins/virtualization/VirtualizationPlugin.js +31 -24
  184. package/esm/plugins/virtualization/VirtualizedBody.js +16 -6
  185. package/esm/plugins/virtualization/VirtualizedBodyRow.js +8 -7
  186. package/esm/renders/CellWithAddons.js +15 -14
  187. package/esm/renders/styled.js +3 -15
  188. package/esm/utilities/getPluginsFromProps.js +5 -1
  189. package/esm/utilities/getScrollbarSize.js +2 -1
  190. package/esm/utilities/normalizeData.js +7 -1
  191. package/package.json +19 -18
  192. package/types/components/BodyCell.d.ts +1 -1
  193. package/types/components/HeaderCell.d.ts +1 -1
  194. package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +1 -1
  195. package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +1 -1
  196. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -1
  197. package/types/plugins/expandable-grid/useExpandGridState.d.ts +4 -4
  198. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -1
  199. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -1
  200. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -1
  201. package/types/plugins/filterable/helper.d.ts +15 -3
  202. package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -1
  203. package/cjs/package.json +0 -7
  204. package/esm/package.json +0 -7
@@ -1,10 +1,16 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.filter.js';
1
3
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
4
+ import 'core-js/modules/esnext.async-iterator.map.js';
5
+ import 'core-js/modules/esnext.iterator.map.js';
6
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
7
+ import 'core-js/modules/esnext.iterator.constructor.js';
8
+ import 'core-js/modules/esnext.iterator.for-each.js';
2
9
  import 'core-js/modules/es.string.replace.js';
3
10
 
4
11
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
5
12
 
6
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7
-
8
14
  const normalizeRows = rows => rows.map(row => {
9
15
  Object.keys(row).forEach(key => row[normalizeText(key)] = row[key]);
10
16
  return row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-datagrids",
3
- "version": "2.0.0-next.1",
3
+ "version": "2.0.0-next.13",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Grids",
6
6
  "module": "./esm/index.js",
@@ -541,41 +541,42 @@
541
541
  "generateSubmodules": true
542
542
  },
543
543
  "dependencies": {
544
- "@elliemae/ds-basic": "2.0.0-next.1",
545
- "@elliemae/ds-classnames": "2.0.0-next.1",
546
- "@elliemae/ds-date-range-picker": "2.0.0-next.1",
547
- "@elliemae/ds-dropdownmenu": "2.0.0-next.1",
548
- "@elliemae/ds-filterbar": "2.0.0-next.1",
549
- "@elliemae/ds-icons": "2.0.0-next.1",
550
- "@elliemae/ds-shared": "2.0.0-next.1",
551
- "@elliemae/ds-utilities": "2.0.0-next.1",
544
+ "@elliemae/ds-basic": "2.0.0-next.13",
545
+ "@elliemae/ds-classnames": "2.0.0-next.13",
546
+ "@elliemae/ds-controlled-form": "2.0.0-next.13",
547
+ "@elliemae/ds-datagrids": "2.0.0-next.13",
548
+ "@elliemae/ds-date-picker": "2.0.0-next.13",
549
+ "@elliemae/ds-date-range-picker": "2.0.0-next.13",
550
+ "@elliemae/ds-dropdownmenu": "2.0.0-next.13",
551
+ "@elliemae/ds-filterbar": "2.0.0-next.13",
552
+ "@elliemae/ds-grid": "2.0.0-next.13",
553
+ "@elliemae/ds-icons": "2.0.0-next.13",
554
+ "@elliemae/ds-menu": "2.0.0-next.13",
555
+ "@elliemae/ds-shared": "2.0.0-next.13",
556
+ "@elliemae/ds-system": "2.0.0-next.13",
557
+ "@elliemae/ds-utilities": "2.0.0-next.13",
552
558
  "comparejs": "~1.0.3",
553
- "defer-render-hoc": "~0.3.0",
554
559
  "memoize-one": "~5.1.1",
555
560
  "moment": "~2.29.1",
561
+ "obj-str": "~1.1.0",
556
562
  "prop-types": "~15.7.2",
557
- "raf": "~3.4.1",
558
- "react-beautiful-dnd": "~12.2.0",
559
- "react-dates": "~21.8.0",
563
+ "react-desc": "~4.1.3",
560
564
  "react-edit": "~6.4.1",
561
565
  "react-pagify": "~2.4.0",
562
566
  "react-sortable-hoc": "~1.11.0",
563
- "react-virtualized-auto-sizer": "~1.0.6",
564
567
  "react-window": "~1.8.6",
565
- "redux": "~4.0.5",
566
568
  "segmentize": "~0.4.1",
567
569
  "sortabular": "~1.6.0",
568
570
  "stylesheet-helpers": "~0.2.2",
569
- "table-resolver": "~4.1.1",
570
571
  "uuid": "~8.3.2"
571
572
  },
572
573
  "devDependencies": {
573
- "styled-components": "~5.3.1"
574
+ "styled-components": "~5.3.3"
574
575
  },
575
576
  "peerDependencies": {
576
577
  "lodash": "^4.17.21",
577
578
  "react": "~17.0.2",
578
579
  "react-dom": "^17.0.2",
579
- "styled-components": "^5.3.1"
580
+ "styled-components": "^5.3.3"
580
581
  }
581
582
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import PropTypes from 'prop-types';
3
- declare function BodyCell({ component: Component, classProps, rowProps, column, columnIndex, rowIndex, grid, }: {
3
+ declare function BodyCell({ component: Component, classProps, rowProps, column, columnIndex, rowIndex, grid }: {
4
4
  component: any;
5
5
  classProps: any;
6
6
  rowProps: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import PropTypes from 'prop-types';
3
- declare function HeaderCell({ column, columnIndex, component: Component, classProps, grid, }: {
3
+ declare function HeaderCell({ column, columnIndex, component: Component, classProps, grid }: {
4
4
  column: any;
5
5
  columnIndex: any;
6
6
  component: any;
@@ -2,5 +2,5 @@ export declare const columnMeasurerTransformer: (columnSizeService: any) => (val
2
2
  column: any;
3
3
  grid: any;
4
4
  }, props?: {}) => {
5
- innerRef: any;
5
+ innerRef: (node: any) => void;
6
6
  };
@@ -1,4 +1,4 @@
1
- export declare function getTableProps(tableProps: any, { refs, tableRef, bodyWidth, scrollbarWidth, isDragging, columnSizeService, updateRowWidth, columns, }: {
1
+ export declare function getTableProps(tableProps: any, { refs, tableRef, bodyWidth, scrollbarWidth, isDragging, columnSizeService, updateRowWidth, columns }: {
2
2
  refs: any;
3
3
  tableRef: any;
4
4
  bodyWidth: any;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare function ExpandedRowExtra({ children, rowData, rowProps, rowComponent: RowComponent, renderRowDetails, }: {
2
+ declare function ExpandedRowExtra({ children, rowData, rowProps, rowComponent: RowComponent, renderRowDetails }: {
3
3
  children: any;
4
4
  rowData: any;
5
5
  rowProps: any;
@@ -1,14 +1,14 @@
1
1
  export declare const useExpandGridState: (grid: any) => {
2
2
  state: {
3
3
  expandedRows: any;
4
- isExpandedAll: any;
4
+ isExpandedAll: boolean;
5
5
  shouldRefocus: boolean;
6
6
  };
7
7
  actions: {
8
- expandRow: (row: any) => any;
9
- toggleExpandAllRows: any;
8
+ expandRow: (row: any) => void;
9
+ toggleExpandAllRows: (stateData?: boolean | undefined) => void;
10
10
  toggleExpand: (row: any) => void;
11
11
  toggleShowAllRows: (row: any) => void;
12
- collapseRow: any;
12
+ collapseRow: (item: any) => void;
13
13
  };
14
14
  };
@@ -5,7 +5,7 @@ declare function DateRangeFilterMenu({ column, className, isMenuOpened, onOpenMe
5
5
  className: any;
6
6
  isMenuOpened?: boolean | undefined;
7
7
  onOpenMenu?: (() => null) | undefined;
8
- placement?: any;
8
+ placement?: string | undefined;
9
9
  onAddFilter?: (() => null) | undefined;
10
10
  dateFormatter?: (({ startDate, endDate }: {
11
11
  startDate: any;
@@ -5,7 +5,7 @@ declare function SingleDateFilterMenu({ column, className, isMenuOpened, onOpenM
5
5
  className: any;
6
6
  isMenuOpened?: boolean | undefined;
7
7
  onOpenMenu?: (() => null) | undefined;
8
- placement?: any;
8
+ placement?: string | undefined;
9
9
  onAddFilter?: (() => null) | undefined;
10
10
  dateFormatter?: ((date: any, format?: string) => any) | undefined;
11
11
  showHeader?: boolean | undefined;
@@ -8,7 +8,7 @@ declare function TextFilterMenu({ column, menuStyle, className, filters, isMenuO
8
8
  isMenuOpened?: boolean | undefined;
9
9
  onOpenMenu?: (() => null) | undefined;
10
10
  onClose?: (() => null) | undefined;
11
- placement?: any;
11
+ placement?: string | undefined;
12
12
  menuProps?: {} | undefined;
13
13
  onAddFilter?: (() => null) | undefined;
14
14
  onRemoveFilter?: (() => null) | undefined;
@@ -1,8 +1,20 @@
1
1
  export declare const getFilterLabel: (column: any, value: any) => any;
2
- export declare const getFilterLabels: (column: any, rows: any) => any;
3
- export declare const getFilterLabelsGroup: (column: any, rows: 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
+ })[];
4
16
  export declare function getFilterValue(filter: any, column: any): any;
5
- export declare function buildFilterArray(newFilter: any, filters: any): any;
17
+ export declare function buildFilterArray(newFilter: any, filters: any): any[];
6
18
  export declare const groupFilters: (filters: any) => any;
7
19
  export declare function parseFiltersToQuery(filters: any): {
8
20
  condition: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare function PerPageDropdown({ min, max, step, value, onChange, }: {
2
+ declare function PerPageDropdown({ min, max, step, value, onChange }: {
3
3
  min?: number | undefined;
4
4
  max?: number | undefined;
5
5
  step?: number | undefined;
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }