@elliemae/ds-datagrids 2.1.0-rc.7 → 2.2.0-alpha.2
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/DSDataGrid.js +395 -635
- package/cjs/DSDataGrid.js.map +7 -0
- package/cjs/DataGridImpl.js +103 -128
- package/cjs/DataGridImpl.js.map +7 -0
- package/cjs/PaginatedDataGrid.js +68 -68
- package/cjs/PaginatedDataGrid.js.map +7 -0
- package/cjs/blockNames.js +39 -11
- package/cjs/blockNames.js.map +7 -0
- package/cjs/columns/IconColumn.js +78 -62
- package/cjs/columns/IconColumn.js.map +7 -0
- package/cjs/columns/NumberColumn.js +35 -5
- package/cjs/columns/NumberColumn.js.map +7 -0
- package/cjs/components/BodyCell.js +83 -80
- package/cjs/components/BodyCell.js.map +7 -0
- package/cjs/components/BodyList.js +52 -52
- package/cjs/components/BodyList.js.map +7 -0
- package/cjs/components/ColumnVisibilityMenuOption.js +53 -31
- package/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/cjs/components/ColumnsOptionsMenuSection.js +59 -44
- package/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/cjs/components/EmptyState.js +81 -50
- package/cjs/components/EmptyState.js.map +7 -0
- package/cjs/components/HeaderCell.js +64 -58
- package/cjs/components/HeaderCell.js.map +7 -0
- package/cjs/components/List.js +41 -29
- package/cjs/components/List.js.map +7 -0
- package/cjs/components/ListItem.js +43 -36
- package/cjs/components/ListItem.js.map +7 -0
- package/cjs/components/NoResults.js +55 -51
- package/cjs/components/NoResults.js.map +7 -0
- package/cjs/components/RowsLoader.js +42 -22
- package/cjs/components/RowsLoader.js.map +7 -0
- package/cjs/components/Table.js +78 -87
- package/cjs/components/Table.js.map +7 -0
- package/cjs/components/TableBody.js +61 -60
- package/cjs/components/TableBody.js.map +7 -0
- package/cjs/components/TableHeader.js +47 -30
- package/cjs/components/TableHeader.js.map +7 -0
- package/cjs/components/footer/addOptionalFooterComponents.js +53 -43
- package/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/cjs/components/header/PrimaryControls.js +49 -35
- package/cjs/components/header/PrimaryControls.js.map +7 -0
- package/cjs/components/header/addOptionalHeaderComponents.js +54 -43
- package/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/cjs/components/index.js +43 -17
- package/cjs/components/index.js.map +7 -0
- package/cjs/components/renderers/defaultClassedRenderers.js +64 -57
- package/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/cjs/components/renderers/index.js +44 -17
- package/cjs/components/renderers/index.js.map +7 -0
- package/cjs/components/renderers/renderRowsLoader.js +39 -18
- package/cjs/components/renderers/renderRowsLoader.js.map +7 -0
- package/cjs/components/tableContext.js +36 -13
- package/cjs/components/tableContext.js.map +7 -0
- package/cjs/defaultPlugins.js +44 -12
- package/cjs/defaultPlugins.js.map +7 -0
- package/cjs/index.js +72 -67
- package/cjs/index.js.map +7 -0
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +102 -114
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/cjs/plugins/body-header-scroll-sync/index.js +35 -9
- package/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +107 -86
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +43 -27
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/cjs/plugins/column-dnd/index.js +35 -9
- package/cjs/plugins/column-dnd/index.js.map +7 -0
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +59 -55
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +48 -53
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +40 -13
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +55 -54
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -9
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/cjs/plugins/column-sizing/index.js +35 -9
- package/cjs/plugins/column-sizing/index.js.map +7 -0
- package/cjs/plugins/column-sizing/useColumnSizeService.js +72 -86
- package/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +96 -199
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/cjs/plugins/column-sizing/utils.js +52 -29
- package/cjs/plugins/column-sizing/utils.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +38 -16
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +61 -56
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +58 -60
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/index.js +35 -9
- package/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +50 -53
- package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/cjs/plugins/editable/EditableComponents/TextBox.js +56 -76
- package/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/cjs/plugins/editable/EditableComponents/index.js +37 -11
- package/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
- package/cjs/plugins/editable/EditablePlugin.js +60 -75
- package/cjs/plugins/editable/EditablePlugin.js.map +7 -0
- package/cjs/plugins/editable/decorateEditable.js +61 -98
- package/cjs/plugins/editable/decorateEditable.js.map +7 -0
- package/cjs/plugins/editable/getEditorComponent.js +70 -76
- package/cjs/plugins/editable/getEditorComponent.js.map +7 -0
- package/cjs/plugins/editable/index.js +38 -13
- package/cjs/plugins/editable/index.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +112 -144
- package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +118 -180
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandedRow.js +117 -139
- package/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +54 -52
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/cjs/plugins/expandable-grid/index.js +37 -11
- package/cjs/plugins/expandable-grid/index.js.map +7 -0
- package/cjs/plugins/expandable-grid/useExpandGridState.js +45 -31
- package/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/cjs/plugins/export-data/ExportDataPlugin.js +82 -116
- package/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/cjs/plugins/export-data/index.js +35 -12
- package/cjs/plugins/export-data/index.js.map +7 -0
- package/cjs/plugins/filterable/FilterablePlugin.js +54 -55
- package/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/cjs/plugins/filterable/addFilterToColumn.js +40 -28
- package/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/cjs/plugins/filterable/components/FilterableHeader.js +119 -107
- package/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +116 -116
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +97 -73
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +138 -132
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +115 -119
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -7
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +46 -15
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/cjs/plugins/filterable/filterableFormatter.js +61 -51
- package/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +60 -55
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +43 -22
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/cjs/plugins/filterable/helper.js +68 -79
- package/cjs/plugins/filterable/helper.js.map +7 -0
- package/cjs/plugins/filterable/index.js +35 -9
- package/cjs/plugins/filterable/index.js.map +7 -0
- package/cjs/plugins/filterable/useFilterableState.js +62 -66
- package/cjs/plugins/filterable/useFilterableState.js.map +7 -0
- package/cjs/plugins/grouping-by/GroupingByPlugin.js +40 -23
- package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/cjs/plugins/grouping-grid/GroupingPlugin.js +86 -109
- package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/cjs/plugins/grouping-grid/walkStrategy.js +46 -26
- package/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/cjs/plugins/index.js +68 -48
- package/cjs/plugins/index.js.map +7 -0
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +64 -88
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/cjs/plugins/infinite-scrolling/index.js +35 -9
- package/cjs/plugins/infinite-scrolling/index.js.map +7 -0
- package/cjs/plugins/pagination/PaginationPlugin.js +73 -90
- package/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/cjs/plugins/pagination/components/Pagination.js +54 -35
- package/cjs/plugins/pagination/components/Pagination.js.map +7 -0
- package/cjs/plugins/pagination/components/Paginator.js +59 -44
- package/cjs/plugins/pagination/components/Paginator.js.map +7 -0
- package/cjs/plugins/pagination/components/PerPageDropdown.js +51 -63
- package/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/cjs/plugins/pagination/helper.js +45 -24
- package/cjs/plugins/pagination/helper.js.map +7 -0
- package/cjs/plugins/pagination/index.js +35 -9
- package/cjs/plugins/pagination/index.js.map +7 -0
- package/cjs/plugins/pagination/usePaginationState.js +46 -38
- package/cjs/plugins/pagination/usePaginationState.js.map +7 -0
- package/cjs/plugins/resizable/ResizablePlugin.js +51 -55
- package/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/cjs/plugins/resizable/decorateResizable.js +49 -53
- package/cjs/plugins/resizable/decorateResizable.js.map +7 -0
- package/cjs/plugins/resizable/index.js +35 -9
- package/cjs/plugins/resizable/index.js.map +7 -0
- package/cjs/plugins/resizable/useResizeHandle.js +56 -50
- package/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
- package/cjs/plugins/resizable/utils.js +49 -28
- package/cjs/plugins/resizable/utils.js.map +7 -0
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +103 -82
- package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/cjs/plugins/row-dnd/index.js +35 -9
- package/cjs/plugins/row-dnd/index.js.map +7 -0
- package/cjs/plugins/selectable/SelectablePlugin.js +101 -134
- package/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/cjs/plugins/selectable/addSelectableColumn.js +67 -68
- package/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/cjs/plugins/selectable/helper.js +50 -39
- package/cjs/plugins/selectable/helper.js.map +7 -0
- package/cjs/plugins/selectable/index.js +35 -9
- package/cjs/plugins/selectable/index.js.map +7 -0
- package/cjs/plugins/selectable/selectableFormatter.js +83 -105
- package/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
- package/cjs/plugins/selectable/useSelectableState.js +67 -94
- package/cjs/plugins/selectable/useSelectableState.js.map +7 -0
- package/cjs/plugins/sortable/SortablePlugin.js +62 -76
- package/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
- package/cjs/plugins/sortable/checkIfSortable.js +37 -14
- package/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
- package/cjs/plugins/sortable/index.js +35 -9
- package/cjs/plugins/sortable/index.js.map +7 -0
- package/cjs/plugins/sortable/sortHeaderFormatter.js +56 -50
- package/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/cjs/plugins/sortable/sortTree.js +40 -47
- package/cjs/plugins/sortable/sortTree.js.map +7 -0
- package/cjs/plugins/sortable/sorter.js +140 -172
- package/cjs/plugins/sortable/sorter.js.map +7 -0
- package/cjs/plugins/sortable/useSortableState.js +53 -79
- package/cjs/plugins/sortable/useSortableState.js.map +7 -0
- package/cjs/plugins/toolbar/RowRenderer.js +75 -76
- package/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
- package/cjs/plugins/toolbar/ToolbarPlugin.js +49 -33
- package/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/cjs/plugins/toolbar/ToolbarTrigger.js +89 -70
- package/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/cjs/plugins/toolbar/index.js +35 -9
- package/cjs/plugins/toolbar/index.js.map +7 -0
- package/cjs/plugins/virtualization/AutoHeightList.js +64 -52
- package/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +86 -97
- package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/cjs/plugins/virtualization/VirtualizedBody.js +139 -155
- package/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js +39 -17
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/cjs/plugins/virtualization/helper.js +35 -7
- package/cjs/plugins/virtualization/helper.js.map +7 -0
- package/cjs/plugins/virtualization/index.js +35 -9
- package/cjs/plugins/virtualization/index.js.map +7 -0
- package/cjs/renders/CellWithAddons.js +98 -50
- package/cjs/renders/CellWithAddons.js.map +7 -0
- package/cjs/renders/index.js +37 -11
- package/cjs/renders/index.js.map +7 -0
- package/cjs/renders/styled.js +78 -27
- package/cjs/renders/styled.js.map +7 -0
- package/cjs/rowSizes.js +44 -12
- package/cjs/rowSizes.js.map +7 -0
- package/cjs/utilities/DataGridUtilities.json +1315 -0
- package/cjs/utilities/getPluginsFromProps.js +67 -39
- package/cjs/utilities/getPluginsFromProps.js.map +7 -0
- package/cjs/utilities/getScrollbarSize.js +44 -25
- package/cjs/utilities/getScrollbarSize.js.map +7 -0
- package/cjs/utilities/normalizeData.js +44 -34
- package/cjs/utilities/normalizeData.js.map +7 -0
- package/esm/DSDataGrid.js +337 -597
- package/esm/DSDataGrid.js.map +7 -0
- package/esm/DataGridImpl.js +68 -113
- package/esm/DataGridImpl.js.map +7 -0
- package/esm/PaginatedDataGrid.js +39 -59
- package/esm/PaginatedDataGrid.js.map +7 -0
- package/esm/blockNames.js +10 -5
- package/esm/blockNames.js.map +7 -0
- package/esm/columns/IconColumn.js +49 -54
- package/esm/columns/IconColumn.js.map +7 -0
- package/esm/columns/NumberColumn.js +6 -3
- package/esm/columns/NumberColumn.js.map +7 -0
- package/esm/components/BodyCell.js +51 -68
- package/esm/components/BodyCell.js.map +7 -0
- package/esm/components/BodyList.js +23 -43
- package/esm/components/BodyList.js.map +7 -0
- package/esm/components/ColumnVisibilityMenuOption.js +24 -27
- package/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/esm/components/ColumnsOptionsMenuSection.js +30 -38
- package/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/esm/components/EmptyState.js +52 -40
- package/esm/components/EmptyState.js.map +7 -0
- package/esm/components/HeaderCell.js +33 -48
- package/esm/components/HeaderCell.js.map +7 -0
- package/esm/components/List.js +12 -23
- package/esm/components/List.js.map +7 -0
- package/esm/components/ListItem.js +14 -30
- package/esm/components/ListItem.js.map +7 -0
- package/esm/components/NoResults.js +26 -43
- package/esm/components/NoResults.js.map +7 -0
- package/esm/components/RowsLoader.js +13 -15
- package/esm/components/RowsLoader.js.map +7 -0
- package/esm/components/Table.js +45 -76
- package/esm/components/Table.js.map +7 -0
- package/esm/components/TableBody.js +32 -52
- package/esm/components/TableBody.js.map +7 -0
- package/esm/components/TableHeader.js +17 -23
- package/esm/components/TableHeader.js.map +7 -0
- package/esm/components/footer/addOptionalFooterComponents.js +24 -37
- package/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/esm/components/header/PrimaryControls.js +20 -29
- package/esm/components/header/PrimaryControls.js.map +7 -0
- package/esm/components/header/addOptionalHeaderComponents.js +25 -36
- package/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/esm/components/index.js +14 -5
- package/esm/components/index.js.map +7 -0
- package/esm/components/renderers/defaultClassedRenderers.js +41 -46
- package/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/esm/components/renderers/index.js +16 -5
- package/esm/components/renderers/index.js.map +7 -0
- package/esm/components/renderers/renderRowsLoader.js +10 -10
- package/esm/components/renderers/renderRowsLoader.js.map +7 -0
- package/esm/components/tableContext.js +7 -5
- package/esm/components/tableContext.js.map +7 -0
- package/esm/defaultPlugins.js +15 -8
- package/esm/defaultPlugins.js.map +7 -0
- package/esm/index.js +63 -27
- package/esm/index.js.map +7 -0
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +71 -101
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/esm/plugins/body-header-scroll-sync/index.js +6 -1
- package/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +69 -68
- package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +16 -18
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/esm/plugins/column-dnd/index.js +6 -1
- package/esm/plugins/column-dnd/index.js.map +7 -0
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +20 -37
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +16 -42
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +9 -7
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +23 -43
- package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -7
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/esm/plugins/column-sizing/index.js +6 -1
- package/esm/plugins/column-sizing/index.js.map +7 -0
- package/esm/plugins/column-sizing/useColumnSizeService.js +34 -71
- package/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +64 -171
- package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/esm/plugins/column-sizing/utils.js +23 -21
- package/esm/plugins/column-sizing/utils.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +8 -7
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +28 -43
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +22 -44
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/index.js +6 -1
- package/esm/plugins/custom-cell-renderer/index.js.map +7 -0
- package/esm/plugins/editable/EditableComponents/ComboBox.js +20 -46
- package/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/esm/plugins/editable/EditableComponents/TextBox.js +26 -68
- package/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/esm/plugins/editable/EditableComponents/index.js +8 -2
- package/esm/plugins/editable/EditableComponents/index.js.map +7 -0
- package/esm/plugins/editable/EditablePlugin.js +27 -63
- package/esm/plugins/editable/EditablePlugin.js.map +7 -0
- package/esm/plugins/editable/decorateEditable.js +32 -68
- package/esm/plugins/editable/decorateEditable.js.map +7 -0
- package/esm/plugins/editable/getEditorComponent.js +39 -66
- package/esm/plugins/editable/getEditorComponent.js.map +7 -0
- package/esm/plugins/editable/index.js +9 -3
- package/esm/plugins/editable/index.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandableColumn.js +82 -133
- package/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +81 -160
- package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandedRow.js +86 -124
- package/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +25 -44
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/esm/plugins/expandable-grid/index.js +8 -2
- package/esm/plugins/expandable-grid/index.js.map +7 -0
- package/esm/plugins/expandable-grid/useExpandGridState.js +14 -25
- package/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/esm/plugins/export-data/ExportDataPlugin.js +52 -103
- package/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/esm/plugins/export-data/index.js +6 -1
- package/esm/plugins/export-data/index.js.map +7 -0
- package/esm/plugins/filterable/FilterablePlugin.js +22 -44
- package/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/esm/plugins/filterable/addFilterToColumn.js +11 -20
- package/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/esm/plugins/filterable/components/FilterableHeader.js +85 -95
- package/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +83 -103
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +68 -63
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +108 -116
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +84 -106
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -3
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +16 -12
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/esm/plugins/filterable/filterableFormatter.js +32 -45
- package/esm/plugins/filterable/filterableFormatter.js.map +7 -0
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +29 -44
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +11 -13
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/esm/plugins/filterable/helper.js +42 -62
- package/esm/plugins/filterable/helper.js.map +7 -0
- package/esm/plugins/filterable/index.js +6 -1
- package/esm/plugins/filterable/index.js.map +7 -0
- package/esm/plugins/filterable/useFilterableState.js +33 -54
- package/esm/plugins/filterable/useFilterableState.js.map +7 -0
- package/esm/plugins/grouping-by/GroupingByPlugin.js +10 -14
- package/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/esm/plugins/grouping-grid/GroupingPlugin.js +53 -94
- package/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/esm/plugins/grouping-grid/walkStrategy.js +17 -22
- package/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/esm/plugins/index.js +39 -19
- package/esm/plugins/index.js.map +7 -0
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +31 -74
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/esm/plugins/infinite-scrolling/index.js +6 -1
- package/esm/plugins/infinite-scrolling/index.js.map +7 -0
- package/esm/plugins/pagination/PaginationPlugin.js +42 -75
- package/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/esm/plugins/pagination/components/Pagination.js +25 -27
- package/esm/plugins/pagination/components/Pagination.js.map +7 -0
- package/esm/plugins/pagination/components/Paginator.js +29 -35
- package/esm/plugins/pagination/components/Paginator.js.map +7 -0
- package/esm/plugins/pagination/components/PerPageDropdown.js +22 -54
- package/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/esm/plugins/pagination/helper.js +16 -19
- package/esm/plugins/pagination/helper.js.map +7 -0
- package/esm/plugins/pagination/index.js +6 -1
- package/esm/plugins/pagination/index.js.map +7 -0
- package/esm/plugins/pagination/usePaginationState.js +15 -28
- package/esm/plugins/pagination/usePaginationState.js.map +7 -0
- package/esm/plugins/resizable/ResizablePlugin.js +20 -45
- package/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/esm/plugins/resizable/decorateResizable.js +19 -41
- package/esm/plugins/resizable/decorateResizable.js.map +7 -0
- package/esm/plugins/resizable/index.js +6 -1
- package/esm/plugins/resizable/index.js.map +7 -0
- package/esm/plugins/resizable/useResizeHandle.js +24 -39
- package/esm/plugins/resizable/useResizeHandle.js.map +7 -0
- package/esm/plugins/resizable/utils.js +20 -18
- package/esm/plugins/resizable/utils.js.map +7 -0
- package/esm/plugins/row-dnd/DndRowsPlugin.js +73 -71
- package/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/esm/plugins/row-dnd/index.js +6 -1
- package/esm/plugins/row-dnd/index.js.map +7 -0
- package/esm/plugins/selectable/SelectablePlugin.js +64 -117
- package/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/esm/plugins/selectable/addSelectableColumn.js +39 -57
- package/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/esm/plugins/selectable/helper.js +19 -25
- package/esm/plugins/selectable/helper.js.map +7 -0
- package/esm/plugins/selectable/index.js +6 -1
- package/esm/plugins/selectable/index.js.map +7 -0
- package/esm/plugins/selectable/selectableFormatter.js +54 -97
- package/esm/plugins/selectable/selectableFormatter.js.map +7 -0
- package/esm/plugins/selectable/useSelectableState.js +34 -78
- package/esm/plugins/selectable/useSelectableState.js.map +7 -0
- package/esm/plugins/sortable/SortablePlugin.js +30 -43
- package/esm/plugins/sortable/SortablePlugin.js.map +7 -0
- package/esm/plugins/sortable/checkIfSortable.js +8 -9
- package/esm/plugins/sortable/checkIfSortable.js.map +7 -0
- package/esm/plugins/sortable/index.js +6 -1
- package/esm/plugins/sortable/index.js.map +7 -0
- package/esm/plugins/sortable/sortHeaderFormatter.js +27 -43
- package/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/esm/plugins/sortable/sortTree.js +13 -24
- package/esm/plugins/sortable/sortTree.js.map +7 -0
- package/esm/plugins/sortable/sorter.js +112 -163
- package/esm/plugins/sortable/sorter.js.map +7 -0
- package/esm/plugins/sortable/useSortableState.js +22 -49
- package/esm/plugins/sortable/useSortableState.js.map +7 -0
- package/esm/plugins/toolbar/RowRenderer.js +40 -61
- package/esm/plugins/toolbar/RowRenderer.js.map +7 -0
- package/esm/plugins/toolbar/ToolbarPlugin.js +19 -23
- package/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/esm/plugins/toolbar/ToolbarTrigger.js +59 -57
- package/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/esm/plugins/toolbar/index.js +6 -1
- package/esm/plugins/toolbar/index.js.map +7 -0
- package/esm/plugins/virtualization/AutoHeightList.js +30 -40
- package/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/esm/plugins/virtualization/VirtualizationPlugin.js +55 -84
- package/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/esm/plugins/virtualization/VirtualizedBody.js +94 -132
- package/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/esm/plugins/virtualization/VirtualizedBodyRow.js +10 -15
- package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/esm/plugins/virtualization/helper.js +6 -3
- package/esm/plugins/virtualization/helper.js.map +7 -0
- package/esm/plugins/virtualization/index.js +6 -1
- package/esm/plugins/virtualization/index.js.map +7 -0
- package/esm/renders/CellWithAddons.js +69 -40
- package/esm/renders/CellWithAddons.js.map +7 -0
- package/esm/renders/index.js +8 -2
- package/esm/renders/index.js.map +7 -0
- package/esm/renders/styled.js +49 -16
- package/esm/renders/styled.js.map +7 -0
- package/esm/rowSizes.js +15 -6
- package/esm/rowSizes.js.map +7 -0
- package/esm/utilities/DataGridUtilities.json +1315 -0
- package/esm/utilities/getPluginsFromProps.js +25 -24
- package/esm/utilities/getPluginsFromProps.js.map +7 -0
- package/esm/utilities/getScrollbarSize.js +15 -21
- package/esm/utilities/getScrollbarSize.js.map +7 -0
- package/esm/utilities/normalizeData.js +15 -24
- package/esm/utilities/normalizeData.js.map +7 -0
- package/package.json +20 -20
- package/types/DSDataGrid.d.ts +1 -1
- package/types/DataGridImpl.d.ts +3 -2
- package/types/PaginatedDataGrid.d.ts +1 -2
- package/types/columns/IconColumn.d.ts +3 -2
- package/types/components/BodyCell.d.ts +13 -12
- package/types/components/ColumnVisibilityMenuOption.d.ts +2 -2
- package/types/components/ColumnsOptionsMenuSection.d.ts +1 -0
- package/types/components/HeaderCell.d.ts +10 -10
- package/types/components/NoResults.d.ts +2 -2
- package/types/components/RowsLoader.d.ts +2 -2
- package/types/components/Table.d.ts +6 -11
- package/types/components/TableBody.d.ts +3 -8
- package/types/components/TableHeader.d.ts +2 -1
- package/types/components/footer/addOptionalFooterComponents.d.ts +1 -0
- package/types/components/header/PrimaryControls.d.ts +1 -0
- package/types/components/header/addOptionalHeaderComponents.d.ts +1 -1
- package/types/components/renderers/index.d.ts +1 -1
- package/types/components/renderers/renderRowsLoader.d.ts +1 -1
- package/types/index.d.ts +7 -8
- package/types/plugins/body-header-scroll-sync/index.d.ts +1 -1
- package/types/plugins/column-dnd/index.d.ts +1 -1
- package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -1
- package/types/plugins/column-sizing/index.d.ts +1 -1
- package/types/plugins/column-sizing/useColumnSizeService.d.ts +2 -1
- package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +1 -0
- package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +1 -0
- package/types/plugins/custom-cell-renderer/index.d.ts +1 -1
- package/types/plugins/editable/EditableComponents/ComboBox.d.ts +3 -1
- package/types/plugins/editable/EditableComponents/TextBox.d.ts +3 -1
- package/types/plugins/editable/getEditorComponent.d.ts +1 -0
- package/types/plugins/editable/index.d.ts +2 -2
- package/types/plugins/expandable-grid/ExpandableColumn.d.ts +3 -2
- package/types/plugins/expandable-grid/ExpandedRow.d.ts +1 -0
- package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -0
- package/types/plugins/expandable-grid/index.d.ts +2 -2
- package/types/plugins/export-data/index.d.ts +1 -1
- package/types/plugins/filterable/components/FilterableHeader.d.ts +15 -15
- package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +2 -1
- package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -1
- package/types/plugins/filterable/filterableFormatter.d.ts +3 -2
- package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +2 -1
- package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -2
- package/types/plugins/filterable/index.d.ts +1 -1
- package/types/plugins/index.d.ts +16 -16
- package/types/plugins/infinite-scrolling/index.d.ts +1 -1
- package/types/plugins/pagination/components/Paginator.d.ts +1 -0
- package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -0
- package/types/plugins/pagination/helper.d.ts +3 -2
- package/types/plugins/pagination/index.d.ts +1 -1
- package/types/plugins/resizable/index.d.ts +1 -1
- package/types/plugins/row-dnd/index.d.ts +1 -1
- package/types/plugins/selectable/index.d.ts +1 -1
- package/types/plugins/selectable/selectableFormatter.d.ts +1 -0
- package/types/plugins/sortable/index.d.ts +1 -1
- package/types/plugins/sortable/sortHeaderFormatter.d.ts +1 -0
- package/types/plugins/sortable/sortTree.d.ts +1 -0
- package/types/plugins/sortable/sorter.d.ts +1 -1
- package/types/plugins/toolbar/index.d.ts +1 -1
- package/types/plugins/virtualization/AutoHeightList.d.ts +1 -1
- package/types/plugins/virtualization/VirtualizedBody.d.ts +1 -0
- package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +2 -2
- package/types/plugins/virtualization/index.d.ts +1 -1
- package/types/utilities/getPluginsFromProps.d.ts +2 -1
package/esm/DSDataGrid.js
CHANGED
|
@@ -1,630 +1,370 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { PropTypes, describe } from
|
|
4
|
-
import { TooltipTextProvider } from
|
|
5
|
-
import DataGridImpl from
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
selectable: selectable,
|
|
231
|
-
selectAll: selectAll,
|
|
232
|
-
selectColumnFilterable: selectColumnFilterable,
|
|
233
|
-
selectColumnSortable: selectColumnSortable,
|
|
234
|
-
selectedRows: selectedRows,
|
|
235
|
-
selectionColumnDefinition: selectionColumnDefinition,
|
|
236
|
-
serverSideData: serverSideData,
|
|
237
|
-
showFilterBar: showFilterBar,
|
|
238
|
-
showHeader: showHeader,
|
|
239
|
-
showRowsLoader: showRowsLoader,
|
|
240
|
-
showSelectColumn: showSelectColumn,
|
|
241
|
-
showSelectHighlight: showSelectHighlight,
|
|
242
|
-
sortable: sortable,
|
|
243
|
-
sortEmptyLast: sortEmptyLast,
|
|
244
|
-
sortingColumns: sortingColumns,
|
|
245
|
-
subrowSize: subRowSize,
|
|
246
|
-
toolbarDelayClose: toolbarDelayClose,
|
|
247
|
-
useTreeData: useTreeData,
|
|
248
|
-
virtualized: virtualized,
|
|
249
|
-
visibleColumns: visibleColumns,
|
|
250
|
-
wrapText: wrapText
|
|
251
|
-
}));
|
|
252
|
-
};
|
|
253
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import { TooltipTextProvider } from "@elliemae/ds-truncated-tooltip-text";
|
|
5
|
+
import { DataGridImpl } from "./DataGridImpl";
|
|
6
|
+
import { RowSizesOptions, RowSizesOptionsArr } from "./rowSizes";
|
|
7
|
+
const DSDataGrids = ({
|
|
8
|
+
containerProps = {},
|
|
9
|
+
instanceRef,
|
|
10
|
+
className = "",
|
|
11
|
+
columns = [],
|
|
12
|
+
rows = [],
|
|
13
|
+
rowKey = "id",
|
|
14
|
+
infiniteScrolling = false,
|
|
15
|
+
editable = false,
|
|
16
|
+
sortable = false,
|
|
17
|
+
sortEmptyLast = false,
|
|
18
|
+
paginated = false,
|
|
19
|
+
dragAndDropRows = false,
|
|
20
|
+
selectable = false,
|
|
21
|
+
resizeableColumns = false,
|
|
22
|
+
searchFilters = false,
|
|
23
|
+
dragAndDropColumns = false,
|
|
24
|
+
useTreeData = false,
|
|
25
|
+
autoScrollToId,
|
|
26
|
+
overscanCount = 10,
|
|
27
|
+
selectAll = false,
|
|
28
|
+
selectedRows = [],
|
|
29
|
+
filters = void 0,
|
|
30
|
+
onAddFilter = () => null,
|
|
31
|
+
onRemoveFilter = () => null,
|
|
32
|
+
onFiltersChange = () => null,
|
|
33
|
+
showFilterBar = true,
|
|
34
|
+
multiSelectFilterOptions = [
|
|
35
|
+
{ id: "true", label: "Selected" },
|
|
36
|
+
{ id: "false", label: "Not selected" }
|
|
37
|
+
],
|
|
38
|
+
multiSelectFilterLabels = void 0,
|
|
39
|
+
multiSelectFilterLabel = "Selection",
|
|
40
|
+
aggregations = {},
|
|
41
|
+
groupingColumn = void 0,
|
|
42
|
+
sortingColumns = {},
|
|
43
|
+
minPerPage = 0,
|
|
44
|
+
maxPerPage = 50,
|
|
45
|
+
onPerPageChange = () => null,
|
|
46
|
+
onPageChange = () => null,
|
|
47
|
+
paginationStep = 2,
|
|
48
|
+
pagination = {
|
|
49
|
+
page: 1,
|
|
50
|
+
perPage: 10
|
|
51
|
+
},
|
|
52
|
+
showHeader = true,
|
|
53
|
+
fixedHeader = true,
|
|
54
|
+
wrapText = false,
|
|
55
|
+
height = void 0,
|
|
56
|
+
minColumnWidth = 100,
|
|
57
|
+
showRowsLoader = false,
|
|
58
|
+
visibleColumns = void 0,
|
|
59
|
+
showSelectHighlight = false,
|
|
60
|
+
showSelectColumn = true,
|
|
61
|
+
selectColumnSortable = true,
|
|
62
|
+
selectColumnFilterable = false,
|
|
63
|
+
selectionColumnDefinition = {},
|
|
64
|
+
filterBarOptions = void 0,
|
|
65
|
+
renderToolbar = void 0,
|
|
66
|
+
toolbarDelayClose = 400,
|
|
67
|
+
renderFilterToolbar = void 0,
|
|
68
|
+
multiSelectComponent = void 0,
|
|
69
|
+
noResultsRender,
|
|
70
|
+
noResultsPlaceholder,
|
|
71
|
+
fluidHeight = false,
|
|
72
|
+
customHandlers = {},
|
|
73
|
+
groupedBy = void 0,
|
|
74
|
+
onDefaultFiltersLoad = () => null,
|
|
75
|
+
onReorder = () => null,
|
|
76
|
+
onMoveRowEnd = () => null,
|
|
77
|
+
onMoveRowStart = () => null,
|
|
78
|
+
onMoveColumnOver = () => null,
|
|
79
|
+
onMoveColumnStart = () => null,
|
|
80
|
+
onMoveColumnEnd = () => null,
|
|
81
|
+
onColumnResize = () => null,
|
|
82
|
+
onExpandChange = () => null,
|
|
83
|
+
onToggleExpand = () => null,
|
|
84
|
+
onExpandRow = () => null,
|
|
85
|
+
onFilter = () => null,
|
|
86
|
+
onSort = () => null,
|
|
87
|
+
onColumnRowEdited = () => null,
|
|
88
|
+
onColumnRowEdit = () => null,
|
|
89
|
+
onSelectRow = () => null,
|
|
90
|
+
onSelectAll = () => null,
|
|
91
|
+
onInfiniteScrolling = () => null,
|
|
92
|
+
onFilterMenuClose = () => null,
|
|
93
|
+
onFilterMenuOpen = () => null,
|
|
94
|
+
getData = void 0,
|
|
95
|
+
serverSideData = false,
|
|
96
|
+
isDataSorted = false,
|
|
97
|
+
isDataFiltered = false,
|
|
98
|
+
virtualized = true,
|
|
99
|
+
numRowsVisible = void 0,
|
|
100
|
+
isColumnEditable = (column) => column.editable,
|
|
101
|
+
groupedRows = false,
|
|
102
|
+
groupedRowsRenderHeader = void 0,
|
|
103
|
+
renderExpandedDetails = () => null,
|
|
104
|
+
detailColumns,
|
|
105
|
+
expandable = false,
|
|
106
|
+
getChildrenRows = (row) => row.children,
|
|
107
|
+
expandableSubrowsVisible = 7,
|
|
108
|
+
renderRowDetails = () => null,
|
|
109
|
+
getExpandedRowSize = void 0,
|
|
110
|
+
getExpandedRowMinSize,
|
|
111
|
+
rowSize = RowSizesOptions.normal,
|
|
112
|
+
subRowSize = RowSizesOptions.normal,
|
|
113
|
+
bindColumnsSizeTo = void 0,
|
|
114
|
+
bindRowSizeTo = void 0,
|
|
115
|
+
onToggleShowAllRows,
|
|
116
|
+
expandedRows,
|
|
117
|
+
autoHeight = false,
|
|
118
|
+
noColumnsPlaceholder,
|
|
119
|
+
plugins = [],
|
|
120
|
+
normalizeDataKeys = false
|
|
121
|
+
}) => /* @__PURE__ */ React2.createElement(TooltipTextProvider, null, /* @__PURE__ */ React2.createElement(DataGridImpl, {
|
|
122
|
+
aggregations,
|
|
123
|
+
autoHeight: autoHeight && !fluidHeight,
|
|
124
|
+
autoScrollToId,
|
|
125
|
+
bindColumnsSizeTo,
|
|
126
|
+
bindRowSizeTo,
|
|
127
|
+
className,
|
|
128
|
+
columns,
|
|
129
|
+
containerProps,
|
|
130
|
+
customHandlers,
|
|
131
|
+
detailColumns,
|
|
132
|
+
dragAndDropColumns,
|
|
133
|
+
dragAndDropRows,
|
|
134
|
+
editable,
|
|
135
|
+
expandable,
|
|
136
|
+
expandableSubrowsVisible,
|
|
137
|
+
expandedRows,
|
|
138
|
+
filterBarOptions,
|
|
139
|
+
filters,
|
|
140
|
+
fixedHeader,
|
|
141
|
+
fluidHeight,
|
|
142
|
+
getChildrenRows,
|
|
143
|
+
getData,
|
|
144
|
+
getExpandedRowMinSize,
|
|
145
|
+
getExpandedRowSize,
|
|
146
|
+
groupedBy,
|
|
147
|
+
groupedRows,
|
|
148
|
+
groupedRowsRenderHeader,
|
|
149
|
+
groupingColumn,
|
|
150
|
+
height,
|
|
151
|
+
infiniteScrolling,
|
|
152
|
+
instanceRef,
|
|
153
|
+
isColumnEditable,
|
|
154
|
+
isDataFiltered,
|
|
155
|
+
isDataSorted,
|
|
156
|
+
maxPerPage,
|
|
157
|
+
minColumnWidth,
|
|
158
|
+
minPerPage,
|
|
159
|
+
multiSelectComponent,
|
|
160
|
+
multiSelectFilterLabel,
|
|
161
|
+
multiSelectFilterLabels,
|
|
162
|
+
multiSelectFilterOptions,
|
|
163
|
+
noColumnsPlaceholder,
|
|
164
|
+
noResultsPlaceholder,
|
|
165
|
+
noResultsRender,
|
|
166
|
+
normalizeDataKeys,
|
|
167
|
+
numRowsVisible,
|
|
168
|
+
onAddFilter,
|
|
169
|
+
onColumnResize,
|
|
170
|
+
onColumnRowEdit,
|
|
171
|
+
onColumnRowEdited,
|
|
172
|
+
onExpandRow,
|
|
173
|
+
onExpandChange,
|
|
174
|
+
onFilter,
|
|
175
|
+
onFiltersChange,
|
|
176
|
+
onFilterMenuClose,
|
|
177
|
+
onFilterMenuOpen,
|
|
178
|
+
onDefaultFiltersLoad,
|
|
179
|
+
onInfiniteScrolling,
|
|
180
|
+
onMoveColumnEnd,
|
|
181
|
+
onMoveColumnOver,
|
|
182
|
+
onMoveColumnStart,
|
|
183
|
+
onMoveRowEnd,
|
|
184
|
+
onMoveRowStart,
|
|
185
|
+
onPageChange,
|
|
186
|
+
onPerPageChange,
|
|
187
|
+
onRemoveFilter,
|
|
188
|
+
onReorder,
|
|
189
|
+
onSelectAll,
|
|
190
|
+
onSelectRow,
|
|
191
|
+
onSort,
|
|
192
|
+
onToggleExpand,
|
|
193
|
+
onToggleShowAllRows,
|
|
194
|
+
overscanCount,
|
|
195
|
+
paginated,
|
|
196
|
+
pagination,
|
|
197
|
+
paginationStep,
|
|
198
|
+
plugins,
|
|
199
|
+
renderExpandedDetails,
|
|
200
|
+
renderFilterToolbar,
|
|
201
|
+
renderRowDetails,
|
|
202
|
+
renderToolbar,
|
|
203
|
+
resizeableColumns,
|
|
204
|
+
rowKey,
|
|
205
|
+
rows,
|
|
206
|
+
rowSize,
|
|
207
|
+
searchFilters,
|
|
208
|
+
selectable,
|
|
209
|
+
selectAll,
|
|
210
|
+
selectColumnFilterable,
|
|
211
|
+
selectColumnSortable,
|
|
212
|
+
selectedRows,
|
|
213
|
+
selectionColumnDefinition,
|
|
214
|
+
serverSideData,
|
|
215
|
+
showFilterBar,
|
|
216
|
+
showHeader,
|
|
217
|
+
showRowsLoader,
|
|
218
|
+
showSelectColumn,
|
|
219
|
+
showSelectHighlight,
|
|
220
|
+
sortable,
|
|
221
|
+
sortEmptyLast,
|
|
222
|
+
sortingColumns,
|
|
223
|
+
subrowSize: subRowSize,
|
|
224
|
+
toolbarDelayClose,
|
|
225
|
+
useTreeData,
|
|
226
|
+
virtualized,
|
|
227
|
+
visibleColumns,
|
|
228
|
+
wrapText
|
|
229
|
+
}));
|
|
254
230
|
const props = {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
})]).description('ref to the instance of the datagrid, handle it imperatively'),
|
|
259
|
-
|
|
260
|
-
/** class for data grid wrapper */
|
|
261
|
-
className: PropTypes.string.description('class for data grid wrapper'),
|
|
262
|
-
|
|
263
|
-
/** inject props to datagrid wrapper */
|
|
264
|
-
containerProps: PropTypes.object.description('inject props to datagrid wrapper'),
|
|
265
|
-
|
|
266
|
-
/** FilterBar props passed down to FilterBar */
|
|
231
|
+
instanceRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description("ref to the instance of the datagrid, handle it imperatively"),
|
|
232
|
+
className: PropTypes.string.description("class for data grid wrapper"),
|
|
233
|
+
containerProps: PropTypes.object.description("inject props to datagrid wrapper"),
|
|
267
234
|
filterBarOptions: PropTypes.shape({
|
|
268
235
|
minWidth: PropTypes.number,
|
|
269
236
|
maxWidth: PropTypes.number
|
|
270
|
-
}).description(
|
|
271
|
-
|
|
272
|
-
/** datagrid columns */
|
|
237
|
+
}).description("FilterBar props passed down to FilterBar"),
|
|
273
238
|
columns: PropTypes.arrayOf(PropTypes.shape({
|
|
274
|
-
/** Column property as an identifier */
|
|
275
239
|
property: PropTypes.string.isRequired,
|
|
276
|
-
|
|
277
|
-
/** Label in the header */
|
|
278
240
|
label: PropTypes.string,
|
|
279
|
-
|
|
280
|
-
/** Defines the width of the column, can be a string with percentages ("50%"), if not defined the width is flexible */
|
|
281
241
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
282
|
-
|
|
283
|
-
/** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */
|
|
284
242
|
minWidth: PropTypes.number,
|
|
285
|
-
|
|
286
|
-
/** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */
|
|
287
243
|
customEditor: PropTypes.func,
|
|
288
|
-
|
|
289
|
-
/** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */
|
|
290
244
|
customRenderer: PropTypes.func,
|
|
291
|
-
|
|
292
|
-
/** Activates 'searchable' feature for this column */
|
|
293
245
|
searchable: PropTypes.bool,
|
|
294
|
-
|
|
295
|
-
/** Activates 'sortable' feature for this column */
|
|
296
246
|
sortable: PropTypes.bool,
|
|
297
|
-
|
|
298
|
-
/** Activates 'resizable' feature for this column */
|
|
299
247
|
resizable: PropTypes.bool,
|
|
300
|
-
|
|
301
|
-
/** Activates 'editable' feature for this column */
|
|
302
248
|
editable: PropTypes.bool,
|
|
303
|
-
|
|
304
|
-
/** Whether this column is visible or not */
|
|
305
249
|
visible: PropTypes.bool
|
|
306
|
-
})).description(
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/** key for each row */
|
|
312
|
-
rowKey: PropTypes.string.description('key for each row'),
|
|
313
|
-
|
|
314
|
-
/** toggle infinite scroll loading behavior */
|
|
315
|
-
infiniteScrolling: PropTypes.bool.description('toggle infinite scroll loading behavior'),
|
|
316
|
-
|
|
317
|
-
/** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */
|
|
250
|
+
})).description("datagrid columns"),
|
|
251
|
+
rows: PropTypes.arrayOf(PropTypes.object).description("datagrid rows"),
|
|
252
|
+
rowKey: PropTypes.string.description("key for each row"),
|
|
253
|
+
infiniteScrolling: PropTypes.bool.description("toggle infinite scroll loading behavior"),
|
|
318
254
|
overscanCount: PropTypes.number.description("Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well"),
|
|
319
|
-
|
|
320
|
-
/** turn datagrid to editable mode */
|
|
321
|
-
editable: PropTypes.bool.description('turn datagrid to editable mode'),
|
|
322
|
-
|
|
323
|
-
/** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */
|
|
255
|
+
editable: PropTypes.bool.description("turn datagrid to editable mode"),
|
|
324
256
|
sortable: PropTypes.bool.description("Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well"),
|
|
325
|
-
|
|
326
|
-
/** Put empty values always last on the column after sorting */
|
|
327
|
-
sortEmptyLast: PropTypes.bool.description('Put empty values always last on the column after sorting'),
|
|
328
|
-
|
|
329
|
-
/** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
257
|
+
sortEmptyLast: PropTypes.bool.description("Put empty values always last on the column after sorting"),
|
|
330
258
|
paginated: PropTypes.bool.description("Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
331
|
-
|
|
332
|
-
/** Pagination step for clicking the next pages */
|
|
333
|
-
paginationStep: PropTypes.number.description('Pagination step for clicking the next pages'),
|
|
334
|
-
|
|
335
|
-
/** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
259
|
+
paginationStep: PropTypes.number.description("Pagination step for clicking the next pages"),
|
|
336
260
|
dragAndDropRows: PropTypes.bool.description("Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
337
|
-
|
|
338
|
-
/** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
339
261
|
selectable: PropTypes.bool.description("Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
340
|
-
|
|
341
|
-
/** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
342
262
|
resizeableColumns: PropTypes.bool.description("Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
343
|
-
|
|
344
|
-
/** Placeholder rendered when no rows are visible */
|
|
345
|
-
noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]).description('Placeholder rendered when no rows are visible'),
|
|
346
|
-
|
|
347
|
-
/** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
263
|
+
noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]).description("Placeholder rendered when no rows are visible"),
|
|
348
264
|
searchFilters: PropTypes.bool.description("activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
349
|
-
|
|
350
|
-
/** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
351
265
|
dragAndDropColumns: PropTypes.bool.description("Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
352
|
-
|
|
353
|
-
/** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
|
354
266
|
useTreeData: PropTypes.bool.description("activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well"),
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
onToggleExpand: PropTypes.func.description('Handler when user expands a row (old API)'),
|
|
377
|
-
|
|
378
|
-
/** Handler when user adds a filter */
|
|
379
|
-
onAddFilter: PropTypes.func.description('Handler when user adds a filter'),
|
|
380
|
-
|
|
381
|
-
/** Handler when user removes a filter */
|
|
382
|
-
onRemoveFilter: PropTypes.func.description('Handler when user removes a filter'),
|
|
383
|
-
|
|
384
|
-
/** Handler when the filters state has changed */
|
|
385
|
-
onFiltersChange: PropTypes.func.description('Handler when the filters state has changed '),
|
|
386
|
-
|
|
387
|
-
/** Handler when the default filters load. Returns the rows rendered */
|
|
388
|
-
onDefaultFiltersLoad: PropTypes.func.description('Handler when the default filters load. Returns the rows rendered'),
|
|
389
|
-
|
|
390
|
-
/** Handler when column move is over another column */
|
|
391
|
-
onMoveColumnOver: PropTypes.func.description('Handler when column move is over another column'),
|
|
392
|
-
|
|
393
|
-
/** Handler when column move starts */
|
|
394
|
-
onMoveColumnStart: PropTypes.func.description(' Handler when column move starts'),
|
|
395
|
-
|
|
396
|
-
/** Handler when column move ends */
|
|
397
|
-
onMoveColumnEnd: PropTypes.func.description('Handler when column move ends'),
|
|
398
|
-
|
|
399
|
-
/** Whether to show the filter bar or not */
|
|
400
|
-
showFilterBar: PropTypes.bool.description('Whether to show the filter bar or not'),
|
|
401
|
-
|
|
402
|
-
/** Custom option for the header with multi select */
|
|
403
|
-
multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description('Custom option for the header with multi select'),
|
|
404
|
-
|
|
405
|
-
/** Label to the header column for multi select */
|
|
406
|
-
multiSelectFilterLabel: PropTypes.string.description('Label to the header column for multi select'),
|
|
407
|
-
|
|
408
|
-
/** Labels for multi selects */
|
|
409
|
-
multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description('Labels for multi selects'),
|
|
410
|
-
|
|
411
|
-
/** unstable */
|
|
412
|
-
aggregations: PropTypes.object.description('').deprecated(''),
|
|
413
|
-
|
|
414
|
-
/** unstable */
|
|
415
|
-
|
|
416
|
-
/** Column which rows would be grouped by */
|
|
417
|
-
groupingColumn: PropTypes.string.description('Column which rows would be grouped by').deprecated(''),
|
|
418
|
-
|
|
419
|
-
/** group by */
|
|
420
|
-
groupedBy: PropTypes.string.description('group by'),
|
|
421
|
-
|
|
422
|
-
/** Defines the sorting state */
|
|
267
|
+
autoScrollToId: PropTypes.any.description("AutoScroll to row ID"),
|
|
268
|
+
selectAll: PropTypes.bool.description("Whether all rows are selected or not"),
|
|
269
|
+
selectedRows: PropTypes.arrayOf(PropTypes.object).description(" Defines the selected rows"),
|
|
270
|
+
filters: PropTypes.arrayOf(PropTypes.object).description("Filters to be applied to the grid"),
|
|
271
|
+
onExpandRow: PropTypes.func.description("Handler when user expands a row"),
|
|
272
|
+
onExpandChange: PropTypes.func.description("Handler when user expands a row with full expand state"),
|
|
273
|
+
onToggleExpand: PropTypes.func.description("Handler when user expands a row (old API)"),
|
|
274
|
+
onAddFilter: PropTypes.func.description("Handler when user adds a filter"),
|
|
275
|
+
onRemoveFilter: PropTypes.func.description("Handler when user removes a filter"),
|
|
276
|
+
onFiltersChange: PropTypes.func.description("Handler when the filters state has changed "),
|
|
277
|
+
onDefaultFiltersLoad: PropTypes.func.description("Handler when the default filters load. Returns the rows rendered"),
|
|
278
|
+
onMoveColumnOver: PropTypes.func.description("Handler when column move is over another column"),
|
|
279
|
+
onMoveColumnStart: PropTypes.func.description(" Handler when column move starts"),
|
|
280
|
+
onMoveColumnEnd: PropTypes.func.description("Handler when column move ends"),
|
|
281
|
+
showFilterBar: PropTypes.bool.description("Whether to show the filter bar or not"),
|
|
282
|
+
multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description("Custom option for the header with multi select"),
|
|
283
|
+
multiSelectFilterLabel: PropTypes.string.description("Label to the header column for multi select"),
|
|
284
|
+
multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description("Labels for multi selects"),
|
|
285
|
+
aggregations: PropTypes.object.description("").deprecated(""),
|
|
286
|
+
groupingColumn: PropTypes.string.description("Column which rows would be grouped by").deprecated(""),
|
|
287
|
+
groupedBy: PropTypes.string.description("group by"),
|
|
423
288
|
sortingColumns: PropTypes.objectOf(PropTypes.shape({
|
|
424
|
-
|
|
425
|
-
direction: PropTypes.oneOf(['asc', 'desc']),
|
|
426
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
289
|
+
direction: PropTypes.oneOf(["asc", "desc"]),
|
|
427
290
|
position: PropTypes.number
|
|
428
|
-
})).description(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
minPerPage: PropTypes.string.description('Pagination: Minimum number of rows per page'),
|
|
435
|
-
|
|
436
|
-
/** Pagination: Maximum number of rows per page */
|
|
437
|
-
maxPerPage: PropTypes.string.description('Pagination: Maximum number of rows per page'),
|
|
438
|
-
|
|
439
|
-
/** Pagination: Handler when user changes the amount of rows per page */
|
|
440
|
-
onPerPageChange: PropTypes.string.description('Pagination: Handler when user changes the amount of rows per page'),
|
|
441
|
-
|
|
442
|
-
/** Pagination: Handler when user changes the page */
|
|
443
|
-
onPageChange: PropTypes.string.description('Pagination: Handler when user changes the page'),
|
|
444
|
-
|
|
445
|
-
/** Pagination state */
|
|
291
|
+
})).description("Defines the sorting state"),
|
|
292
|
+
visibleColumns: PropTypes.arrayOf(PropTypes.string).description("Visible columns property"),
|
|
293
|
+
minPerPage: PropTypes.string.description("Pagination: Minimum number of rows per page"),
|
|
294
|
+
maxPerPage: PropTypes.string.description("Pagination: Maximum number of rows per page"),
|
|
295
|
+
onPerPageChange: PropTypes.string.description("Pagination: Handler when user changes the amount of rows per page"),
|
|
296
|
+
onPageChange: PropTypes.string.description("Pagination: Handler when user changes the page"),
|
|
446
297
|
pagination: PropTypes.shape({
|
|
447
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
448
298
|
page: PropTypes.number,
|
|
449
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
450
299
|
perPage: PropTypes.number
|
|
451
|
-
}).description(
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
/** Handler when user opens the filter menu */
|
|
511
|
-
onFilterMenuOpen: PropTypes.func.description('Handler when user opens the filter menu'),
|
|
512
|
-
|
|
513
|
-
/** Handler when user drags a row */
|
|
514
|
-
onReorder: PropTypes.func.description('handler when user drags a row '),
|
|
515
|
-
|
|
516
|
-
/** Handler when user stops dragging a row */
|
|
517
|
-
onMoveRowEnd: PropTypes.func.description('Handler when user stops dragging a row '),
|
|
518
|
-
|
|
519
|
-
/** Handler when user starts dragging a row */
|
|
520
|
-
onMoveRowStart: PropTypes.func.description('Handler when user starts dragging a row'),
|
|
521
|
-
|
|
522
|
-
/** Handler when user has resized a column */
|
|
523
|
-
onColumnResize: PropTypes.func.description('Handler when user has resized a column'),
|
|
524
|
-
|
|
525
|
-
/** Handler when user filters by a column */
|
|
526
|
-
onFilter: PropTypes.func.description('Handler when user filters by a column'),
|
|
527
|
-
|
|
528
|
-
/** Handler when user sorts by a column */
|
|
529
|
-
onSort: PropTypes.func.description('Handler when user sorts by a column '),
|
|
530
|
-
|
|
531
|
-
/** Handler when user has edited a cell row */
|
|
532
|
-
onColumnRowEdited: PropTypes.func.description('Handler when user has edited a cell row'),
|
|
533
|
-
|
|
534
|
-
/** Handler when user activates the cell row editing functionality */
|
|
535
|
-
onColumnRowEdit: PropTypes.func.description(' Handler when user activates the cell row editing functionality'),
|
|
536
|
-
|
|
537
|
-
/** Handler when user selects a row */
|
|
538
|
-
onSelectRow: PropTypes.func.description('Handler when user selects a row'),
|
|
539
|
-
|
|
540
|
-
/** Handler when user checks the selection header controller */
|
|
541
|
-
onSelectAll: PropTypes.func.description('Handler when user checks the selection header controller'),
|
|
542
|
-
|
|
543
|
-
/** Handler to get more data when infinite scroll is activated */
|
|
544
|
-
getData: PropTypes.func.description('Handler to get more data when infinite scroll is activated'),
|
|
545
|
-
|
|
546
|
-
/** Handler to get more data when infinite scroll is activated without side-effect */
|
|
547
|
-
onInfiniteScrolling: PropTypes.func.description('Handler to get more data when infinite scroll is activated without side-effect'),
|
|
548
|
-
|
|
549
|
-
/** Flag to override empty sort when data is from server */
|
|
550
|
-
serverSideData: PropTypes.bool.description('Flag to override empty sort when data is from server'),
|
|
551
|
-
|
|
552
|
-
/** Flag to force virtualization. Not used */
|
|
553
|
-
virtualized: PropTypes.bool.description('Flag to force virtualization. Not used'),
|
|
554
|
-
|
|
555
|
-
/** Number of rows visible. Not used */
|
|
556
|
-
numRowsVisible: PropTypes.oneOf([PropTypes.number, 'all']).description('Number of rows visible. Not used'),
|
|
557
|
-
|
|
558
|
-
/** Callback to check if column is editable */
|
|
559
|
-
isColumnEditable: PropTypes.func.description('Callback to check if column is editable'),
|
|
560
|
-
|
|
561
|
-
/** Flag for groupedRows */
|
|
562
|
-
groupedRows: PropTypes.bool.description('Flag for groupedRows'),
|
|
563
|
-
|
|
564
|
-
/** Header for grouped rows */
|
|
565
|
-
groupedRowsRenderHeader: PropTypes.oneOf([PropTypes.func, PropTypes.element]).description('Header for grouped rows'),
|
|
566
|
-
|
|
567
|
-
/** Once activated will disable the internal logic for sorting */
|
|
568
|
-
isDataSorted: PropTypes.bool.description('Once activated will disable the internal logic for sorting'),
|
|
569
|
-
|
|
570
|
-
/** Once activated will disable the internal logic for filtering */
|
|
571
|
-
isDataFiltered: PropTypes.bool.description('Once activated will disable the internal logic for filtering'),
|
|
572
|
-
|
|
573
|
-
/** Change row size */
|
|
574
|
-
rowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change row size'),
|
|
575
|
-
|
|
576
|
-
/** Whether to wrap the text of the data grid or not */
|
|
577
|
-
wrapText: PropTypes.bool.description('Whether to wrap the text of the data grid or not'),
|
|
578
|
-
|
|
579
|
-
/** Element to render expanded details */
|
|
580
|
-
renderExpandedDetails: PropTypes.oneOf([PropTypes.func, PropTypes.element]).description('Element to render expanded details'),
|
|
581
|
-
|
|
582
|
-
/** Columns to render on the details of an expanded row */
|
|
583
|
-
detailColumns: PropTypes.arrayOf(PropTypes.object).description('Columns to render on the details of an expanded row'),
|
|
584
|
-
|
|
585
|
-
/** Flag to enable the expandable feature */
|
|
586
|
-
expandable: PropTypes.bool.description('Flag to enable the expandable feature '),
|
|
587
|
-
|
|
588
|
-
/** Callback to get the row children */
|
|
589
|
-
getChildrenRows: PropTypes.func.description('Callback to get the row children'),
|
|
590
|
-
|
|
591
|
-
/** Number of rows visible on the details of an expanded row */
|
|
592
|
-
expandableSubrowsVisible: PropTypes.number.description('Number of rows visible on the details of an expanded row'),
|
|
593
|
-
|
|
594
|
-
/** Element to render inside expanded row */
|
|
595
|
-
renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description('Element to render inside expanded row'),
|
|
596
|
-
|
|
597
|
-
/** Callback to get the expanded row size */
|
|
598
|
-
getExpandedRowSize: PropTypes.func.description('Callback to get the expanded row size'),
|
|
599
|
-
|
|
600
|
-
/** Callback to get the expanded row minimum size */
|
|
601
|
-
getExpandedRowMinSize: PropTypes.func.description('Callback to get the expanded row minimum size'),
|
|
602
|
-
|
|
603
|
-
/** Change expanded/details rows size */
|
|
604
|
-
subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change expanded/details rows size'),
|
|
605
|
-
|
|
606
|
-
/** Bind the column size to another grid instance */
|
|
607
|
-
bindColumnsSizeTo: PropTypes.string.description('Bind the column size to another grid instance'),
|
|
608
|
-
|
|
609
|
-
/** Bind the row size to another grid instance */
|
|
610
|
-
bindRowSizeTo: PropTypes.string.description('Bind the row size to another grid instance'),
|
|
611
|
-
|
|
612
|
-
/** Handler when toggle show all is clicked */
|
|
613
|
-
onToggleShowAllRows: PropTypes.func.description('Handler when toggle show all is clicked'),
|
|
614
|
-
|
|
615
|
-
/** Expanded row state */
|
|
616
|
-
expandedRows: PropTypes.object.description('Expanded row state'),
|
|
617
|
-
|
|
618
|
-
/** Flag to enable autoheight */
|
|
619
|
-
autoHeight: PropTypes.bool.description('Flag to enable autoheight'),
|
|
620
|
-
|
|
621
|
-
/** Placeholder rendered when no columns are visible */
|
|
622
|
-
noColumnsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]).description('Placeholder rendered when no columns are visible'),
|
|
623
|
-
|
|
624
|
-
/** Plugin additional array */
|
|
625
|
-
plugins: PropTypes.arrayOf(PropTypes.any).description('Plugin additional array')
|
|
300
|
+
}).description("pagination state"),
|
|
301
|
+
showHeader: PropTypes.bool.description("Whether to show the header or not"),
|
|
302
|
+
fixedHeader: PropTypes.bool.description("Whether to header is fixed or not"),
|
|
303
|
+
height: PropTypes.number.description("Defines the height of the DataGrid"),
|
|
304
|
+
minColumnWidth: PropTypes.number.description("General min column width for all the columns "),
|
|
305
|
+
showRowsLoader: PropTypes.bool.description("Whether to show a loader instead of the rows or not"),
|
|
306
|
+
showSelectHighlight: PropTypes.bool.description("When a user selects a row, that row get highlighted"),
|
|
307
|
+
showSelectColumn: PropTypes.bool.description("Whether to show the select column when the selection feature is active"),
|
|
308
|
+
selectColumnSortable: PropTypes.bool.description("activates sortable feature to selection column"),
|
|
309
|
+
selectColumnFilterable: PropTypes.bool.description("Activates filterable feature to selection column"),
|
|
310
|
+
selectionColumnDefinition: PropTypes.object.description("Define the definition for the selection column"),
|
|
311
|
+
renderToolbar: PropTypes.func.description("Function that returns a toolbar to show when the user hovers the row"),
|
|
312
|
+
toolbarDelayClose: PropTypes.number.description(" Timeout to close the toolbar"),
|
|
313
|
+
renderFilterToolbar: PropTypes.func.description("Function that returns a toolbar in the FilterBar component"),
|
|
314
|
+
multiSelectComponent: PropTypes.element.description("Custom component for the selection"),
|
|
315
|
+
normalizeDataKeys: PropTypes.bool.description("Normalize the keys of the data received and the columns"),
|
|
316
|
+
noResultsRender: PropTypes.func.description("Function that returns an Element when there are no rows"),
|
|
317
|
+
fluidHeight: PropTypes.bool.description("The height of the DataGrid will expand to its container"),
|
|
318
|
+
customHandlers: PropTypes.object.description("").deprecated(""),
|
|
319
|
+
onFilterMenuClose: PropTypes.func.description("Handler when user closes the filter menu"),
|
|
320
|
+
onFilterMenuOpen: PropTypes.func.description("Handler when user opens the filter menu"),
|
|
321
|
+
onReorder: PropTypes.func.description("handler when user drags a row "),
|
|
322
|
+
onMoveRowEnd: PropTypes.func.description("Handler when user stops dragging a row "),
|
|
323
|
+
onMoveRowStart: PropTypes.func.description("Handler when user starts dragging a row"),
|
|
324
|
+
onColumnResize: PropTypes.func.description("Handler when user has resized a column"),
|
|
325
|
+
onFilter: PropTypes.func.description("Handler when user filters by a column"),
|
|
326
|
+
onSort: PropTypes.func.description("Handler when user sorts by a column "),
|
|
327
|
+
onColumnRowEdited: PropTypes.func.description("Handler when user has edited a cell row"),
|
|
328
|
+
onColumnRowEdit: PropTypes.func.description(" Handler when user activates the cell row editing functionality"),
|
|
329
|
+
onSelectRow: PropTypes.func.description("Handler when user selects a row"),
|
|
330
|
+
onSelectAll: PropTypes.func.description("Handler when user checks the selection header controller"),
|
|
331
|
+
getData: PropTypes.func.description("Handler to get more data when infinite scroll is activated"),
|
|
332
|
+
onInfiniteScrolling: PropTypes.func.description("Handler to get more data when infinite scroll is activated without side-effect"),
|
|
333
|
+
serverSideData: PropTypes.bool.description("Flag to override empty sort when data is from server"),
|
|
334
|
+
virtualized: PropTypes.bool.description("Flag to force virtualization. Not used"),
|
|
335
|
+
numRowsVisible: PropTypes.oneOf([PropTypes.number, "all"]).description("Number of rows visible. Not used"),
|
|
336
|
+
isColumnEditable: PropTypes.func.description("Callback to check if column is editable"),
|
|
337
|
+
groupedRows: PropTypes.bool.description("Flag for groupedRows"),
|
|
338
|
+
groupedRowsRenderHeader: PropTypes.oneOf([PropTypes.func, PropTypes.element]).description("Header for grouped rows"),
|
|
339
|
+
isDataSorted: PropTypes.bool.description("Once activated will disable the internal logic for sorting"),
|
|
340
|
+
isDataFiltered: PropTypes.bool.description("Once activated will disable the internal logic for filtering"),
|
|
341
|
+
rowSize: PropTypes.oneOf(RowSizesOptionsArr).description("Change row size"),
|
|
342
|
+
wrapText: PropTypes.bool.description("Whether to wrap the text of the data grid or not"),
|
|
343
|
+
renderExpandedDetails: PropTypes.oneOf([PropTypes.func, PropTypes.element]).description("Element to render expanded details"),
|
|
344
|
+
detailColumns: PropTypes.arrayOf(PropTypes.object).description("Columns to render on the details of an expanded row"),
|
|
345
|
+
expandable: PropTypes.bool.description("Flag to enable the expandable feature "),
|
|
346
|
+
getChildrenRows: PropTypes.func.description("Callback to get the row children"),
|
|
347
|
+
expandableSubrowsVisible: PropTypes.number.description("Number of rows visible on the details of an expanded row"),
|
|
348
|
+
renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description("Element to render inside expanded row"),
|
|
349
|
+
getExpandedRowSize: PropTypes.func.description("Callback to get the expanded row size"),
|
|
350
|
+
getExpandedRowMinSize: PropTypes.func.description("Callback to get the expanded row minimum size"),
|
|
351
|
+
subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description("Change expanded/details rows size"),
|
|
352
|
+
bindColumnsSizeTo: PropTypes.string.description("Bind the column size to another grid instance"),
|
|
353
|
+
bindRowSizeTo: PropTypes.string.description("Bind the row size to another grid instance"),
|
|
354
|
+
onToggleShowAllRows: PropTypes.func.description("Handler when toggle show all is clicked"),
|
|
355
|
+
expandedRows: PropTypes.object.description("Expanded row state"),
|
|
356
|
+
autoHeight: PropTypes.bool.description("Flag to enable autoheight"),
|
|
357
|
+
noColumnsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]).description("Placeholder rendered when no columns are visible"),
|
|
358
|
+
plugins: PropTypes.arrayOf(PropTypes.any).description("Plugin additional array")
|
|
626
359
|
};
|
|
360
|
+
DSDataGrids.propTypes = props;
|
|
627
361
|
const DSDataGridsWithSchema = describe(DSDataGrids);
|
|
628
362
|
DSDataGridsWithSchema.propTypes = props;
|
|
629
|
-
|
|
630
|
-
export {
|
|
363
|
+
var DSDataGrid_default = DSDataGrids;
|
|
364
|
+
export {
|
|
365
|
+
DSDataGrids as DSDataGrid,
|
|
366
|
+
DSDataGrids,
|
|
367
|
+
DSDataGridsWithSchema,
|
|
368
|
+
DSDataGrid_default as default
|
|
369
|
+
};
|
|
370
|
+
//# sourceMappingURL=DSDataGrid.js.map
|