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