@elliemae/ds-datagrids 3.16.0-next.11 → 3.16.0-next.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/DSDataGrid.js +143 -0
- package/dist/cjs/DSDataGrid.js.map +1 -1
- package/dist/cjs/DataGridImpl.js +4 -0
- package/dist/cjs/DataGridImpl.js.map +1 -1
- package/dist/cjs/PaginatedDataGrid.js +4 -0
- package/dist/cjs/PaginatedDataGrid.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/components/BodyList.js.map +1 -1
- package/dist/cjs/components/ColumnVisibilityMenuOption.js +4 -0
- package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +1 -1
- package/dist/cjs/components/ColumnsOptionsMenuSection.js +5 -0
- package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +1 -1
- package/dist/cjs/components/EmptyState.js +4 -0
- package/dist/cjs/components/EmptyState.js.map +1 -1
- package/dist/cjs/components/HeaderCell.js +4 -0
- package/dist/cjs/components/HeaderCell.js.map +1 -1
- package/dist/cjs/components/List.js +4 -0
- package/dist/cjs/components/List.js.map +1 -1
- package/dist/cjs/components/ListItem.js +4 -0
- package/dist/cjs/components/ListItem.js.map +1 -1
- package/dist/cjs/components/NoResults.js +4 -0
- package/dist/cjs/components/NoResults.js.map +1 -1
- package/dist/cjs/components/RowsLoader.js +4 -0
- package/dist/cjs/components/RowsLoader.js.map +1 -1
- package/dist/cjs/components/Table.js +4 -0
- package/dist/cjs/components/Table.js.map +1 -1
- package/dist/cjs/components/TableBody.js +4 -0
- package/dist/cjs/components/TableBody.js.map +1 -1
- package/dist/cjs/components/TableHeader.js +4 -0
- package/dist/cjs/components/TableHeader.js.map +1 -1
- package/dist/cjs/components/footer/addOptionalFooterComponents.js +4 -0
- package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/renderers/defaultClassedRenderers.js +4 -0
- package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +1 -1
- package/dist/cjs/components/renderers/index.js +4 -0
- package/dist/cjs/components/renderers/index.js.map +1 -1
- package/dist/cjs/components/renderers/renderRowsLoader.js +4 -0
- package/dist/cjs/components/renderers/renderRowsLoader.js.map +1 -1
- package/dist/cjs/components/tableContext.js +4 -0
- package/dist/cjs/components/tableContext.js.map +1 -1
- package/dist/cjs/defaultPlugins.js +4 -0
- package/dist/cjs/defaultPlugins.js.map +1 -1
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +4 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +1 -1
- package/dist/cjs/plugins/body-header-scroll-sync/index.js +4 -0
- package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +1 -1
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +4 -0
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/column-dnd/index.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +4 -0
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +4 -0
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/column-sizing/index.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +4 -0
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +5 -0
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +5 -0
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +4 -0
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/index.js +4 -0
- package/dist/cjs/plugins/custom-cell-renderer/index.js.map +1 -1
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +4 -0
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +4 -0
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +1 -1
- package/dist/cjs/plugins/editable/EditableComponents/index.js +4 -0
- package/dist/cjs/plugins/editable/EditableComponents/index.js.map +1 -1
- package/dist/cjs/plugins/editable/EditablePlugin.js +4 -0
- package/dist/cjs/plugins/editable/EditablePlugin.js.map +1 -1
- package/dist/cjs/plugins/editable/decorateEditable.js +4 -0
- package/dist/cjs/plugins/editable/decorateEditable.js.map +1 -1
- package/dist/cjs/plugins/editable/getEditorComponent.js +4 -0
- package/dist/cjs/plugins/editable/getEditorComponent.js.map +1 -1
- package/dist/cjs/plugins/editable/index.js +4 -0
- package/dist/cjs/plugins/editable/index.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +4 -0
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +4 -0
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +4 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +4 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/index.js +4 -0
- package/dist/cjs/plugins/expandable-grid/index.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +4 -0
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/export-data/index.js.map +1 -1
- package/dist/cjs/plugins/filterable/FilterablePlugin.js +4 -0
- package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +1 -1
- package/dist/cjs/plugins/filterable/addFilterToColumn.js +4 -0
- package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js +4 -0
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +5 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +4 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +5 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +4 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +1 -1
- package/dist/cjs/plugins/filterable/filterableFormatter.js +4 -0
- package/dist/cjs/plugins/filterable/filterableFormatter.js.map +1 -1
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +4 -0
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +1 -1
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +4 -0
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +1 -1
- package/dist/cjs/plugins/filterable/helper.js +4 -0
- package/dist/cjs/plugins/filterable/helper.js.map +1 -1
- package/dist/cjs/plugins/filterable/index.js +4 -0
- package/dist/cjs/plugins/filterable/index.js.map +1 -1
- package/dist/cjs/plugins/filterable/useFilterableState.js +4 -0
- package/dist/cjs/plugins/filterable/useFilterableState.js.map +1 -1
- 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 +16 -8
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +1 -1
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js +4 -0
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +1 -1
- package/dist/cjs/plugins/index.js +4 -0
- package/dist/cjs/plugins/index.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/infinite-scrolling/index.js.map +1 -1
- package/dist/cjs/plugins/pagination/PaginationPlugin.js +5 -0
- package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +1 -1
- package/dist/cjs/plugins/pagination/components/Pagination.js +4 -0
- package/dist/cjs/plugins/pagination/components/Pagination.js.map +1 -1
- package/dist/cjs/plugins/pagination/components/Paginator.js +4 -0
- package/dist/cjs/plugins/pagination/components/Paginator.js.map +1 -1
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +4 -0
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +1 -1
- package/dist/cjs/plugins/pagination/helper.js +4 -0
- package/dist/cjs/plugins/pagination/helper.js.map +1 -1
- package/dist/cjs/plugins/pagination/index.js +4 -0
- package/dist/cjs/plugins/pagination/index.js.map +1 -1
- package/dist/cjs/plugins/pagination/usePaginationState.js +4 -0
- package/dist/cjs/plugins/pagination/usePaginationState.js.map +1 -1
- package/dist/cjs/plugins/resizable/ResizablePlugin.js +4 -0
- package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +1 -1
- package/dist/cjs/plugins/resizable/decorateResizable.js +4 -0
- package/dist/cjs/plugins/resizable/decorateResizable.js.map +1 -1
- package/dist/cjs/plugins/resizable/index.js +4 -0
- package/dist/cjs/plugins/resizable/index.js.map +1 -1
- package/dist/cjs/plugins/resizable/useResizeHandle.js +8 -1
- package/dist/cjs/plugins/resizable/useResizeHandle.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/row-dnd/index.js.map +1 -1
- package/dist/cjs/plugins/selectable/SelectablePlugin.js +4 -0
- package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +1 -1
- package/dist/cjs/plugins/selectable/addSelectableColumn.js +6 -0
- package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/selectable/index.js.map +1 -1
- package/dist/cjs/plugins/selectable/selectableFormatter.js +4 -0
- package/dist/cjs/plugins/selectable/selectableFormatter.js.map +1 -1
- package/dist/cjs/plugins/selectable/useSelectableState.js +6 -0
- package/dist/cjs/plugins/selectable/useSelectableState.js.map +1 -1
- package/dist/cjs/plugins/sortable/SortablePlugin.js +4 -0
- package/dist/cjs/plugins/sortable/SortablePlugin.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/sortable/index.js.map +1 -1
- 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 +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/sortable/useSortableState.js.map +1 -1
- package/dist/cjs/plugins/toolbar/RowRenderer.js +5 -0
- package/dist/cjs/plugins/toolbar/RowRenderer.js.map +1 -1
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +4 -0
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/toolbar/index.js.map +1 -1
- package/dist/cjs/plugins/virtualization/AutoHeightList.js +4 -0
- package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +1 -1
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +6 -0
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +1 -1
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js +5 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +1 -1
- 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 +4 -0
- package/dist/cjs/plugins/virtualization/index.js.map +1 -1
- package/dist/cjs/renders/CellWithAddons.js +14 -0
- package/dist/cjs/renders/CellWithAddons.js.map +1 -1
- package/dist/cjs/renders/index.js +4 -0
- package/dist/cjs/renders/index.js.map +1 -1
- package/dist/cjs/renders/styled.js +4 -0
- package/dist/cjs/renders/styled.js.map +1 -1
- package/dist/cjs/rowSizes.js +4 -0
- package/dist/cjs/rowSizes.js.map +1 -1
- package/dist/cjs/utilities/getPluginsFromProps.js +4 -0
- package/dist/cjs/utilities/getPluginsFromProps.js.map +1 -1
- 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 +1 -1
- package/dist/esm/DSDataGrid.js +139 -0
- package/dist/esm/DSDataGrid.js.map +1 -1
- package/dist/esm/DataGridImpl.js.map +1 -1
- package/dist/esm/PaginatedDataGrid.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/components/ColumnsOptionsMenuSection.js +1 -0
- package/dist/esm/components/ColumnsOptionsMenuSection.js.map +1 -1
- package/dist/esm/components/EmptyState.js.map +1 -1
- package/dist/esm/components/NoResults.js.map +1 -1
- package/dist/esm/components/Table.js.map +1 -1
- package/dist/esm/components/TableBody.js.map +1 -1
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +1 -1
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +1 -1
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +1 -0
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
- package/dist/esm/plugins/column-sizing/utils.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +1 -0
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
- package/dist/esm/plugins/editable/EditablePlugin.js.map +1 -1
- package/dist/esm/plugins/editable/decorateEditable.js.map +1 -1
- package/dist/esm/plugins/editable/getEditorComponent.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +1 -1
- package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +1 -1
- package/dist/esm/plugins/filterable/FilterablePlugin.js.map +1 -1
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +1 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +1 -1
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +1 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +1 -1
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +1 -1
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +1 -1
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +1 -1
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +1 -1
- package/dist/esm/plugins/filterable/helper.js.map +1 -1
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +12 -8
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +1 -1
- package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +1 -1
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
- package/dist/esm/plugins/pagination/PaginationPlugin.js +1 -0
- package/dist/esm/plugins/pagination/PaginationPlugin.js.map +1 -1
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +1 -1
- package/dist/esm/plugins/resizable/ResizablePlugin.js.map +1 -1
- package/dist/esm/plugins/resizable/useResizeHandle.js +4 -1
- package/dist/esm/plugins/resizable/useResizeHandle.js.map +1 -1
- 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/selectable/SelectablePlugin.js.map +1 -1
- package/dist/esm/plugins/selectable/addSelectableColumn.js +2 -0
- package/dist/esm/plugins/selectable/addSelectableColumn.js.map +1 -1
- package/dist/esm/plugins/selectable/helper.js.map +1 -1
- package/dist/esm/plugins/selectable/selectableFormatter.js.map +1 -1
- package/dist/esm/plugins/selectable/useSelectableState.js +2 -0
- package/dist/esm/plugins/selectable/useSelectableState.js.map +1 -1
- package/dist/esm/plugins/sortable/SortablePlugin.js.map +1 -1
- package/dist/esm/plugins/sortable/checkIfSortable.js.map +1 -1
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +1 -1
- package/dist/esm/plugins/sortable/sorter.js +1 -0
- package/dist/esm/plugins/sortable/sorter.js.map +1 -1
- package/dist/esm/plugins/toolbar/RowRenderer.js +1 -0
- package/dist/esm/plugins/toolbar/RowRenderer.js.map +1 -1
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +1 -1
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js +1 -0
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +1 -1
- package/dist/esm/plugins/virtualization/AutoHeightList.js.map +1 -1
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +2 -0
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +1 -1
- package/dist/esm/plugins/virtualization/VirtualizedBody.js +1 -0
- package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +1 -1
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +1 -0
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
- package/dist/esm/renders/CellWithAddons.js +10 -0
- package/dist/esm/renders/CellWithAddons.js.map +1 -1
- package/dist/esm/renders/styled.js.map +1 -1
- package/dist/esm/utilities/getPluginsFromProps.js.map +1 -1
- package/dist/esm/utilities/normalizeData.js.map +1 -1
- package/package.json +24 -24
package/dist/esm/DSDataGrid.js
CHANGED
@@ -9,9 +9,11 @@ const DSDataGrids = ({
|
|
9
9
|
containerProps = {},
|
10
10
|
instanceRef,
|
11
11
|
className = "",
|
12
|
+
// data
|
12
13
|
columns = [],
|
13
14
|
rows = [],
|
14
15
|
rowKey = "id",
|
16
|
+
// features
|
15
17
|
infiniteScrolling = false,
|
16
18
|
editable = false,
|
17
19
|
sortable = false,
|
@@ -24,8 +26,11 @@ const DSDataGrids = ({
|
|
24
26
|
dragAndDropColumns = false,
|
25
27
|
useTreeData = false,
|
26
28
|
autoScrollToId,
|
29
|
+
// virtualization props
|
27
30
|
overscanCount = 10,
|
31
|
+
// feature state
|
28
32
|
selectAll = false,
|
33
|
+
// todo: change to isAllSelected
|
29
34
|
selectedRows = [],
|
30
35
|
filters = void 0,
|
31
36
|
onAddFilter = () => null,
|
@@ -41,6 +46,7 @@ const DSDataGrids = ({
|
|
41
46
|
aggregations = {},
|
42
47
|
groupingColumn = void 0,
|
43
48
|
sortingColumns = {},
|
49
|
+
// pagination
|
44
50
|
minPerPage = 0,
|
45
51
|
maxPerPage = 50,
|
46
52
|
onPerPageChange = () => null,
|
@@ -50,6 +56,7 @@ const DSDataGrids = ({
|
|
50
56
|
page: 1,
|
51
57
|
perPage: 10
|
52
58
|
},
|
59
|
+
// visual
|
53
60
|
showHeader = true,
|
54
61
|
fixedHeader = true,
|
55
62
|
wrapText = false,
|
@@ -57,21 +64,26 @@ const DSDataGrids = ({
|
|
57
64
|
minColumnWidth = 100,
|
58
65
|
showRowsLoader = false,
|
59
66
|
visibleColumns = void 0,
|
67
|
+
// this enforces visibility of columns
|
60
68
|
showSelectHighlight = false,
|
61
69
|
showSelectColumn = true,
|
62
70
|
selectColumnSortable = true,
|
63
71
|
selectColumnFilterable = false,
|
64
72
|
selectionColumnDefinition = {},
|
65
73
|
filterBarOptions = void 0,
|
74
|
+
// searchGrid = false,
|
66
75
|
renderToolbar = void 0,
|
67
76
|
toolbarDelayClose = 400,
|
68
77
|
renderFilterToolbar = void 0,
|
69
78
|
multiSelectComponent = void 0,
|
79
|
+
// todo: deprecate this
|
70
80
|
noResultsRender,
|
71
81
|
noResultsPlaceholder,
|
72
82
|
fluidHeight = false,
|
73
83
|
customHandlers = {},
|
84
|
+
// grouping feature
|
74
85
|
groupedBy = void 0,
|
86
|
+
// callbacks
|
75
87
|
onDefaultFiltersLoad = () => null,
|
76
88
|
onReorder = () => null,
|
77
89
|
onMoveRowEnd = () => null,
|
@@ -93,14 +105,17 @@ const DSDataGrids = ({
|
|
93
105
|
onFilterMenuClose = () => null,
|
94
106
|
onFilterMenuOpen = () => null,
|
95
107
|
getData = void 0,
|
108
|
+
// todo: change to onGetMoreData
|
96
109
|
serverSideData = false,
|
97
110
|
isDataSorted = false,
|
98
111
|
isDataFiltered = false,
|
99
112
|
virtualized = true,
|
100
113
|
numRowsVisible = void 0,
|
101
114
|
isColumnEditable = (column) => column.editable,
|
115
|
+
// grouped props
|
102
116
|
groupedRows = false,
|
103
117
|
groupedRowsRenderHeader = void 0,
|
118
|
+
// expandable props
|
104
119
|
renderExpandedDetails = () => null,
|
105
120
|
detailColumns,
|
106
121
|
expandable = false,
|
@@ -235,175 +250,299 @@ const DSDataGrids = ({
|
|
235
250
|
) });
|
236
251
|
};
|
237
252
|
const props = {
|
253
|
+
/** ref to the instance of the datagrid, handle it imperatively */
|
238
254
|
instanceRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(
|
239
255
|
"ref to the instance of the datagrid, handle it imperatively"
|
240
256
|
),
|
257
|
+
/** class for data grid wrapper */
|
241
258
|
className: PropTypes.string.description("class for data grid wrapper"),
|
259
|
+
/** inject props to datagrid wrapper */
|
242
260
|
containerProps: PropTypes.object.description("inject props to datagrid wrapper"),
|
261
|
+
/** FilterBar props passed down to FilterBar */
|
243
262
|
filterBarOptions: PropTypes.shape({
|
244
263
|
minWidth: PropTypes.number,
|
245
264
|
maxWidth: PropTypes.number
|
246
265
|
}).description("FilterBar props passed down to FilterBar"),
|
266
|
+
/** datagrid columns */
|
247
267
|
columns: PropTypes.arrayOf(
|
248
268
|
PropTypes.shape({
|
269
|
+
/** Column property as an identifier */
|
249
270
|
property: PropTypes.string.isRequired,
|
271
|
+
/** Label in the header */
|
250
272
|
label: PropTypes.string,
|
273
|
+
/** Defines the width of the column, can be a string with percentages ("50%"), if not defined the width is flexible */
|
251
274
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
275
|
+
/** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */
|
252
276
|
minWidth: PropTypes.number,
|
277
|
+
/** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */
|
253
278
|
customEditor: PropTypes.func,
|
279
|
+
/** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */
|
254
280
|
customRenderer: PropTypes.func,
|
281
|
+
/** Activates 'searchable' feature for this column */
|
255
282
|
searchable: PropTypes.bool,
|
283
|
+
/** Activates 'sortable' feature for this column */
|
256
284
|
sortable: PropTypes.bool,
|
285
|
+
/** Activates 'resizable' feature for this column */
|
257
286
|
resizable: PropTypes.bool,
|
287
|
+
/** Activates 'editable' feature for this column */
|
258
288
|
editable: PropTypes.bool,
|
289
|
+
/** Whether this column is visible or not */
|
259
290
|
visible: PropTypes.bool
|
260
291
|
})
|
261
292
|
).description("datagrid columns"),
|
293
|
+
/** datagrid rows */
|
262
294
|
rows: PropTypes.arrayOf(PropTypes.object).description("datagrid rows"),
|
295
|
+
/** key for each row */
|
263
296
|
rowKey: PropTypes.string.description("key for each row"),
|
297
|
+
/** toggle infinite scroll loading behavior */
|
264
298
|
infiniteScrolling: PropTypes.bool.description("toggle infinite scroll loading behavior"),
|
299
|
+
/** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */
|
265
300
|
overscanCount: PropTypes.number.description(
|
266
301
|
"Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well"
|
267
302
|
),
|
303
|
+
/** turn datagrid to editable mode */
|
268
304
|
editable: PropTypes.bool.description("turn datagrid to editable mode"),
|
305
|
+
/** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */
|
269
306
|
sortable: PropTypes.bool.description(
|
270
307
|
"Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well"
|
271
308
|
),
|
309
|
+
/** Put empty values always last on the column after sorting */
|
272
310
|
sortEmptyLast: PropTypes.bool.description("Put empty values always last on the column after sorting"),
|
311
|
+
/** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
273
312
|
paginated: PropTypes.bool.description(
|
274
313
|
"Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
275
314
|
),
|
315
|
+
/** Pagination step for clicking the next pages */
|
276
316
|
paginationStep: PropTypes.number.description("Pagination step for clicking the next pages"),
|
317
|
+
/** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
277
318
|
dragAndDropRows: PropTypes.bool.description(
|
278
319
|
"Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
279
320
|
),
|
321
|
+
/** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
280
322
|
selectable: PropTypes.bool.description(
|
281
323
|
"Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
282
324
|
),
|
325
|
+
/** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
283
326
|
resizeableColumns: PropTypes.bool.description(
|
284
327
|
"Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
285
328
|
),
|
329
|
+
/** Placeholder rendered when no rows are visible */
|
286
330
|
noResultsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(
|
287
331
|
"Placeholder rendered when no rows are visible"
|
288
332
|
),
|
333
|
+
/** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
289
334
|
searchFilters: PropTypes.bool.description(
|
290
335
|
"activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
291
336
|
),
|
337
|
+
/** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
292
338
|
dragAndDropColumns: PropTypes.bool.description(
|
293
339
|
"Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
294
340
|
),
|
341
|
+
/** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */
|
295
342
|
useTreeData: PropTypes.bool.description(
|
296
343
|
"activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well"
|
297
344
|
),
|
345
|
+
/** AutoScroll to row ID */
|
298
346
|
autoScrollToId: PropTypes.any.description("AutoScroll to row ID"),
|
347
|
+
/** Whether all rows are selected or not */
|
299
348
|
selectAll: PropTypes.bool.description("Whether all rows are selected or not"),
|
349
|
+
/** Defines the selected rows */
|
300
350
|
selectedRows: PropTypes.arrayOf(PropTypes.object).description(" Defines the selected rows"),
|
351
|
+
/** Filters to be applied to the grid */
|
301
352
|
filters: PropTypes.arrayOf(PropTypes.object).description("Filters to be applied to the grid"),
|
353
|
+
// todo: define params for handlers
|
354
|
+
/** Handler when user expands a row */
|
302
355
|
onExpandRow: PropTypes.func.description("Handler when user expands a row"),
|
356
|
+
/** Handler when user expands a row with full expand state */
|
303
357
|
onExpandChange: PropTypes.func.description("Handler when user expands a row with full expand state"),
|
358
|
+
/** Handler when user expands a row (old API) */
|
304
359
|
onToggleExpand: PropTypes.func.description("Handler when user expands a row (old API)"),
|
360
|
+
/** Handler when user adds a filter */
|
305
361
|
onAddFilter: PropTypes.func.description("Handler when user adds a filter"),
|
362
|
+
/** Handler when user removes a filter */
|
306
363
|
onRemoveFilter: PropTypes.func.description("Handler when user removes a filter"),
|
364
|
+
/** Handler when the filters state has changed */
|
307
365
|
onFiltersChange: PropTypes.func.description("Handler when the filters state has changed "),
|
366
|
+
/** Handler when the default filters load. Returns the rows rendered */
|
308
367
|
onDefaultFiltersLoad: PropTypes.func.description("Handler when the default filters load. Returns the rows rendered"),
|
368
|
+
/** Handler when column move is over another column */
|
309
369
|
onMoveColumnOver: PropTypes.func.description("Handler when column move is over another column"),
|
370
|
+
/** Handler when column move starts */
|
310
371
|
onMoveColumnStart: PropTypes.func.description(" Handler when column move starts"),
|
372
|
+
/** Handler when column move ends */
|
311
373
|
onMoveColumnEnd: PropTypes.func.description("Handler when column move ends"),
|
374
|
+
/** Whether to show the filter bar or not */
|
312
375
|
showFilterBar: PropTypes.bool.description("Whether to show the filter bar or not"),
|
376
|
+
/** Custom option for the header with multi select */
|
313
377
|
multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description(
|
314
378
|
"Custom option for the header with multi select"
|
315
379
|
),
|
380
|
+
/** Label to the header column for multi select */
|
316
381
|
multiSelectFilterLabel: PropTypes.string.description("Label to the header column for multi select"),
|
382
|
+
/** Labels for multi selects */
|
317
383
|
multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description("Labels for multi selects"),
|
384
|
+
/** unstable */
|
318
385
|
aggregations: PropTypes.object.description("").deprecated(""),
|
386
|
+
/** unstable */
|
387
|
+
/** Column which rows would be grouped by */
|
319
388
|
groupingColumn: PropTypes.string.description("Column which rows would be grouped by").deprecated(""),
|
389
|
+
/** group by */
|
320
390
|
groupedBy: PropTypes.string.description("group by"),
|
391
|
+
/** Defines the sorting state */
|
321
392
|
sortingColumns: PropTypes.objectOf(
|
322
393
|
PropTypes.shape({
|
394
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
323
395
|
direction: PropTypes.oneOf(["asc", "desc"]),
|
396
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
324
397
|
position: PropTypes.number
|
325
398
|
})
|
326
399
|
).description("Defines the sorting state"),
|
400
|
+
/** Visible columns property */
|
327
401
|
visibleColumns: PropTypes.arrayOf(PropTypes.string).description("Visible columns property"),
|
402
|
+
/** Pagination: Minimum number of rows per page */
|
328
403
|
minPerPage: PropTypes.string.description("Pagination: Minimum number of rows per page"),
|
404
|
+
/** Pagination: Maximum number of rows per page */
|
329
405
|
maxPerPage: PropTypes.string.description("Pagination: Maximum number of rows per page"),
|
406
|
+
/** Pagination: Handler when user changes the amount of rows per page */
|
330
407
|
onPerPageChange: PropTypes.string.description("Pagination: Handler when user changes the amount of rows per page"),
|
408
|
+
/** Pagination: Handler when user changes the page */
|
331
409
|
onPageChange: PropTypes.string.description("Pagination: Handler when user changes the page"),
|
410
|
+
/** Pagination state */
|
332
411
|
pagination: PropTypes.shape({
|
412
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
333
413
|
page: PropTypes.number,
|
414
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
334
415
|
perPage: PropTypes.number
|
335
416
|
}).description("pagination state"),
|
417
|
+
/** Whether to show the header or not */
|
336
418
|
showHeader: PropTypes.bool.description("Whether to show the header or not"),
|
419
|
+
/** Whether to header is fixed or not */
|
337
420
|
fixedHeader: PropTypes.bool.description("Whether to header is fixed or not"),
|
421
|
+
/** Defines the height of the DataGrid */
|
338
422
|
height: PropTypes.number.description("Defines the height of the DataGrid"),
|
423
|
+
/** General min column width for all the columns */
|
339
424
|
minColumnWidth: PropTypes.number.description("General min column width for all the columns "),
|
425
|
+
/** Whether to show a loader instead of the rows or not */
|
340
426
|
showRowsLoader: PropTypes.bool.description("Whether to show a loader instead of the rows or not"),
|
427
|
+
/** When a user selects a row, that row get highlighted */
|
341
428
|
showSelectHighlight: PropTypes.bool.description("When a user selects a row, that row get highlighted"),
|
429
|
+
/** Whether to show the select column when the selection feature is active */
|
342
430
|
showSelectColumn: PropTypes.bool.description(
|
343
431
|
"Whether to show the select column when the selection feature is active"
|
344
432
|
),
|
433
|
+
/** Activates sortable feature to selection column */
|
345
434
|
selectColumnSortable: PropTypes.bool.description("activates sortable feature to selection column"),
|
435
|
+
/** Activates filterable feature to selection column */
|
346
436
|
selectColumnFilterable: PropTypes.bool.description("Activates filterable feature to selection column"),
|
437
|
+
/** Define the definition for the selection column */
|
347
438
|
selectionColumnDefinition: PropTypes.object.description("Define the definition for the selection column"),
|
439
|
+
/** Function that returns a toolbar to show when the user hovers the row */
|
348
440
|
renderToolbar: PropTypes.func.description("Function that returns a toolbar to show when the user hovers the row"),
|
441
|
+
/** Timeout to close the toolbar */
|
349
442
|
toolbarDelayClose: PropTypes.number.description(" Timeout to close the toolbar"),
|
443
|
+
/** Function that returns a toolbar in the FilterBar component */
|
350
444
|
renderFilterToolbar: PropTypes.func.description("Function that returns a toolbar in the FilterBar component"),
|
445
|
+
/** Custom component for the selection */
|
351
446
|
multiSelectComponent: PropTypes.element.description("Custom component for the selection"),
|
447
|
+
/** Normalize the keys of the data received and the columns */
|
352
448
|
normalizeDataKeys: PropTypes.bool.description("Normalize the keys of the data received and the columns"),
|
449
|
+
/** Function that returns an Element when there are no rows */
|
353
450
|
noResultsRender: PropTypes.func.description("Function that returns an Element when there are no rows"),
|
451
|
+
/** The height of the DataGrid will expand to its container */
|
354
452
|
fluidHeight: PropTypes.bool.description("The height of the DataGrid will expand to its container"),
|
453
|
+
/** @deprecated */
|
355
454
|
customHandlers: PropTypes.object.description("").deprecated(""),
|
455
|
+
/** Handler when user closes the filter menu */
|
356
456
|
onFilterMenuClose: PropTypes.func.description("Handler when user closes the filter menu"),
|
457
|
+
/** Handler when user opens the filter menu */
|
357
458
|
onFilterMenuOpen: PropTypes.func.description("Handler when user opens the filter menu"),
|
459
|
+
/** Handler when user drags a row */
|
358
460
|
onReorder: PropTypes.func.description("handler when user drags a row "),
|
461
|
+
/** Handler when user stops dragging a row */
|
359
462
|
onMoveRowEnd: PropTypes.func.description("Handler when user stops dragging a row "),
|
463
|
+
/** Handler when user starts dragging a row */
|
360
464
|
onMoveRowStart: PropTypes.func.description("Handler when user starts dragging a row"),
|
465
|
+
/** Handler when user has resized a column */
|
361
466
|
onColumnResize: PropTypes.func.description("Handler when user has resized a column"),
|
467
|
+
/** Handler when user filters by a column */
|
362
468
|
onFilter: PropTypes.func.description("Handler when user filters by a column"),
|
469
|
+
/** Handler when user sorts by a column */
|
363
470
|
onSort: PropTypes.func.description("Handler when user sorts by a column "),
|
471
|
+
/** Handler when user has edited a cell row */
|
364
472
|
onColumnRowEdited: PropTypes.func.description("Handler when user has edited a cell row"),
|
473
|
+
/** Handler when user activates the cell row editing functionality */
|
365
474
|
onColumnRowEdit: PropTypes.func.description(" Handler when user activates the cell row editing functionality"),
|
475
|
+
/** Handler when user selects a row */
|
366
476
|
onSelectRow: PropTypes.func.description("Handler when user selects a row"),
|
477
|
+
/** Handler when user checks the selection header controller */
|
367
478
|
onSelectAll: PropTypes.func.description("Handler when user checks the selection header controller"),
|
479
|
+
/** Handler to get more data when infinite scroll is activated */
|
368
480
|
getData: PropTypes.func.description("Handler to get more data when infinite scroll is activated"),
|
481
|
+
/** Handler to get more data when infinite scroll is activated without side-effect */
|
369
482
|
onInfiniteScrolling: PropTypes.func.description(
|
370
483
|
"Handler to get more data when infinite scroll is activated without side-effect"
|
371
484
|
),
|
485
|
+
/** Flag to override empty sort when data is from server */
|
372
486
|
serverSideData: PropTypes.bool.description("Flag to override empty sort when data is from server"),
|
487
|
+
/** Flag to force virtualization. Not used */
|
373
488
|
virtualized: PropTypes.bool.description("Flag to force virtualization. Not used"),
|
489
|
+
/** Number of rows visible. Not used */
|
374
490
|
numRowsVisible: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(["all"])]).description(
|
375
491
|
"Number of rows visible. Not used"
|
376
492
|
),
|
493
|
+
/** Callback to check if column is editable */
|
377
494
|
isColumnEditable: PropTypes.func.description("Callback to check if column is editable"),
|
495
|
+
/** Flag for groupedRows */
|
378
496
|
groupedRows: PropTypes.bool.description("Flag for groupedRows"),
|
497
|
+
/** Header for grouped rows */
|
379
498
|
groupedRowsRenderHeader: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(
|
380
499
|
"Header for grouped rows"
|
381
500
|
),
|
501
|
+
/** Once activated will disable the internal logic for sorting */
|
382
502
|
isDataSorted: PropTypes.bool.description("Once activated will disable the internal logic for sorting"),
|
503
|
+
/** Once activated will disable the internal logic for filtering */
|
383
504
|
isDataFiltered: PropTypes.bool.description("Once activated will disable the internal logic for filtering"),
|
505
|
+
/** Change row size */
|
384
506
|
rowSize: PropTypes.oneOf(RowSizesOptionsArr).description("Change row size"),
|
507
|
+
/** Whether to wrap the text of the data grid or not */
|
385
508
|
wrapText: PropTypes.bool.description("Whether to wrap the text of the data grid or not"),
|
509
|
+
/** Element to render expanded details */
|
386
510
|
renderExpandedDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(
|
387
511
|
"Element to render expanded details"
|
388
512
|
),
|
513
|
+
/** Columns to render on the details of an expanded row */
|
389
514
|
detailColumns: PropTypes.arrayOf(PropTypes.object).description("Columns to render on the details of an expanded row"),
|
515
|
+
/** Flag to enable the expandable feature */
|
390
516
|
expandable: PropTypes.bool.description("Flag to enable the expandable feature "),
|
517
|
+
/** Callback to get the row children */
|
391
518
|
getChildrenRows: PropTypes.func.description("Callback to get the row children"),
|
519
|
+
/** Number of rows visible on the details of an expanded row */
|
392
520
|
expandableSubrowsVisible: PropTypes.number.description("Number of rows visible on the details of an expanded row"),
|
521
|
+
/** Element to render inside expanded row */
|
393
522
|
renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(
|
394
523
|
"Element to render inside expanded row"
|
395
524
|
),
|
525
|
+
/** Callback to get the expanded row size */
|
396
526
|
getExpandedRowSize: PropTypes.func.description("Callback to get the expanded row size"),
|
527
|
+
/** Callback to get the expanded row minimum size */
|
397
528
|
getExpandedRowMinSize: PropTypes.func.description("Callback to get the expanded row minimum size"),
|
529
|
+
/** Change expanded/details rows size */
|
398
530
|
subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description("Change expanded/details rows size"),
|
531
|
+
/** Bind the column size to another grid instance */
|
399
532
|
bindColumnsSizeTo: PropTypes.string.description("Bind the column size to another grid instance"),
|
533
|
+
/** Bind the row size to another grid instance */
|
400
534
|
bindRowSizeTo: PropTypes.string.description("Bind the row size to another grid instance"),
|
535
|
+
/** Handler when toggle show all is clicked */
|
401
536
|
onToggleShowAllRows: PropTypes.func.description("Handler when toggle show all is clicked"),
|
537
|
+
/** Expanded row state */
|
402
538
|
expandedRows: PropTypes.object.description("Expanded row state"),
|
539
|
+
/** Flag to enable autoheight */
|
403
540
|
autoHeight: PropTypes.bool.description("Flag to enable autoheight"),
|
541
|
+
/** Placeholder rendered when no columns are visible */
|
404
542
|
noColumnsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(
|
405
543
|
"Placeholder rendered when no columns are visible"
|
406
544
|
),
|
545
|
+
/** Plugin additional array */
|
407
546
|
plugins: PropTypes.arrayOf(PropTypes.any).description("Plugin additional array")
|
408
547
|
};
|
409
548
|
DSDataGrids.propTypes = props;
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataGrid.tsx"],
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { DataGridImpl } from './DataGridImpl.js';\nimport { RowSizesOptions, RowSizesOptionsArr } from './rowSizes.js';\n\nconst DSDataGrids = ({\n containerProps = {},\n instanceRef,\n className = '',\n\n // data\n columns = [],\n rows = [],\n rowKey = 'id',\n\n // features\n infiniteScrolling = false,\n editable = false,\n sortable = false,\n sortEmptyLast = false,\n paginated = false,\n dragAndDropRows = false,\n selectable = false,\n resizeableColumns = false,\n searchFilters = false,\n dragAndDropColumns = false,\n useTreeData = false,\n autoScrollToId,\n\n // virtualization props\n overscanCount = 10,\n\n // feature state\n selectAll = false, // todo: change to isAllSelected\n selectedRows = [],\n filters = undefined,\n onAddFilter = () => null,\n onRemoveFilter = () => null,\n onFiltersChange = () => null,\n showFilterBar = true,\n multiSelectFilterOptions = [\n { id: 'true', label: 'Selected' },\n { id: 'false', label: 'Not selected' },\n ],\n multiSelectFilterLabels = undefined,\n multiSelectFilterLabel = 'Selection',\n\n aggregations = {},\n groupingColumn = undefined,\n\n sortingColumns = {},\n\n // pagination\n minPerPage = 0,\n maxPerPage = 50,\n onPerPageChange = () => null,\n onPageChange = () => null,\n paginationStep = 2,\n pagination = {\n page: 1,\n perPage: 10,\n },\n // visual\n showHeader = true,\n fixedHeader = true,\n wrapText = false,\n height = undefined,\n minColumnWidth = 100,\n showRowsLoader = false,\n visibleColumns = undefined, // this enforces visibility of columns\n showSelectHighlight = false,\n showSelectColumn = true,\n selectColumnSortable = true,\n selectColumnFilterable = false,\n selectionColumnDefinition = {},\n filterBarOptions = undefined,\n // searchGrid = false,\n renderToolbar = undefined,\n toolbarDelayClose = 400,\n renderFilterToolbar = undefined,\n multiSelectComponent = undefined,\n // todo: deprecate this\n noResultsRender,\n noResultsPlaceholder,\n fluidHeight = false,\n\n customHandlers = {},\n\n // grouping feature\n groupedBy = undefined,\n\n // callbacks\n onDefaultFiltersLoad = () => null,\n onReorder = () => null,\n onMoveRowEnd = () => null,\n onMoveRowStart = () => null,\n onMoveColumnOver = () => null,\n onMoveColumnStart = () => null,\n onMoveColumnEnd = () => null,\n onColumnResize = () => null,\n onExpandChange = () => null,\n onToggleExpand = () => null,\n onExpandRow = () => null,\n onFilter = () => null,\n onSort = () => null,\n onColumnRowEdited = () => null,\n onColumnRowEdit = () => null,\n onSelectRow = () => null,\n onSelectAll = () => null,\n onInfiniteScrolling = () => null,\n onFilterMenuClose = () => null,\n onFilterMenuOpen = () => null,\n getData = undefined, // todo: change to onGetMoreData\n serverSideData = false,\n isDataSorted = false,\n isDataFiltered = false,\n virtualized = true,\n numRowsVisible = undefined,\n isColumnEditable = (column) => column.editable,\n\n // grouped props\n groupedRows = false,\n groupedRowsRenderHeader = undefined,\n // expandable props\n renderExpandedDetails = () => null,\n detailColumns,\n expandable = false,\n getChildrenRows = (row) => row.children,\n expandableSubrowsVisible = 7,\n renderRowDetails = () => null,\n getExpandedRowSize = undefined,\n getExpandedRowMinSize,\n rowSize = RowSizesOptions.normal,\n subRowSize = RowSizesOptions.normal,\n bindColumnsSizeTo = undefined,\n bindRowSizeTo = undefined,\n onToggleShowAllRows,\n expandedRows,\n autoHeight = false,\n noColumnsPlaceholder,\n plugins = [],\n normalizeDataKeys = false,\n}) => {\n useDeprecateComponent({ componentName: 'ds-datagrids', version: '3.x Date: 2023 Q1' });\n\n return (\n <TooltipTextProvider>\n <DataGridImpl\n aggregations={aggregations}\n autoHeight={autoHeight && !fluidHeight}\n autoScrollToId={autoScrollToId}\n bindColumnsSizeTo={bindColumnsSizeTo}\n bindRowSizeTo={bindRowSizeTo}\n className={className}\n columns={columns}\n containerProps={containerProps}\n customHandlers={customHandlers}\n detailColumns={detailColumns}\n dragAndDropColumns={dragAndDropColumns}\n dragAndDropRows={dragAndDropRows}\n editable={editable}\n expandable={expandable}\n expandableSubrowsVisible={expandableSubrowsVisible}\n expandedRows={expandedRows}\n filterBarOptions={filterBarOptions}\n filters={filters}\n fixedHeader={fixedHeader}\n fluidHeight={fluidHeight}\n getChildrenRows={getChildrenRows}\n getData={getData}\n getExpandedRowMinSize={getExpandedRowMinSize}\n getExpandedRowSize={getExpandedRowSize}\n groupedBy={groupedBy}\n groupedRows={groupedRows}\n groupedRowsRenderHeader={groupedRowsRenderHeader}\n groupingColumn={groupingColumn}\n height={height}\n infiniteScrolling={infiniteScrolling}\n instanceRef={instanceRef}\n isColumnEditable={isColumnEditable}\n isDataFiltered={isDataFiltered}\n isDataSorted={isDataSorted}\n maxPerPage={maxPerPage}\n minColumnWidth={minColumnWidth}\n minPerPage={minPerPage}\n multiSelectComponent={multiSelectComponent}\n multiSelectFilterLabel={multiSelectFilterLabel}\n multiSelectFilterLabels={multiSelectFilterLabels}\n multiSelectFilterOptions={multiSelectFilterOptions}\n noColumnsPlaceholder={noColumnsPlaceholder}\n noResultsPlaceholder={noResultsPlaceholder}\n noResultsRender={noResultsRender}\n normalizeDataKeys={normalizeDataKeys}\n numRowsVisible={numRowsVisible} // if defined, fluidHeight is disabled\n onAddFilter={onAddFilter}\n onColumnResize={onColumnResize}\n onColumnRowEdit={onColumnRowEdit}\n onColumnRowEdited={onColumnRowEdited}\n onExpandRow={onExpandRow}\n onExpandChange={onExpandChange}\n onFilter={onFilter}\n onFiltersChange={onFiltersChange}\n onFilterMenuClose={onFilterMenuClose}\n onFilterMenuOpen={onFilterMenuOpen}\n onDefaultFiltersLoad={onDefaultFiltersLoad}\n onInfiniteScrolling={onInfiniteScrolling}\n onMoveColumnEnd={onMoveColumnEnd}\n onMoveColumnOver={onMoveColumnOver}\n onMoveColumnStart={onMoveColumnStart}\n onMoveRowEnd={onMoveRowEnd}\n onMoveRowStart={onMoveRowStart}\n onPageChange={onPageChange}\n onPerPageChange={onPerPageChange}\n onRemoveFilter={onRemoveFilter}\n onReorder={onReorder}\n onSelectAll={onSelectAll}\n onSelectRow={onSelectRow}\n onSort={onSort}\n onToggleExpand={onToggleExpand}\n onToggleShowAllRows={onToggleShowAllRows}\n overscanCount={overscanCount}\n paginated={paginated}\n pagination={pagination}\n paginationStep={paginationStep}\n plugins={plugins}\n renderExpandedDetails={renderExpandedDetails}\n renderFilterToolbar={renderFilterToolbar}\n renderRowDetails={renderRowDetails}\n renderToolbar={renderToolbar}\n resizeableColumns={resizeableColumns}\n rowKey={rowKey}\n rows={rows}\n rowSize={rowSize}\n searchFilters={searchFilters}\n selectable={selectable}\n selectAll={selectAll}\n selectColumnFilterable={selectColumnFilterable}\n selectColumnSortable={selectColumnSortable}\n selectedRows={selectedRows}\n selectionColumnDefinition={selectionColumnDefinition}\n serverSideData={serverSideData}\n showFilterBar={showFilterBar}\n showHeader={showHeader}\n showRowsLoader={showRowsLoader}\n showSelectColumn={showSelectColumn}\n showSelectHighlight={showSelectHighlight}\n sortable={sortable}\n sortEmptyLast={sortEmptyLast}\n sortingColumns={sortingColumns}\n subrowSize={subRowSize}\n toolbarDelayClose={toolbarDelayClose}\n useTreeData={useTreeData}\n virtualized={virtualized}\n visibleColumns={visibleColumns}\n wrapText={wrapText}\n />\n </TooltipTextProvider>\n );\n};\n\nconst props = {\n /** ref to the instance of the datagrid, handle it imperatively */\n instanceRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'ref to the instance of the datagrid, handle it imperatively',\n ),\n /** class for data grid wrapper */\n className: PropTypes.string.description('class for data grid wrapper'),\n /** inject props to datagrid wrapper */\n containerProps: PropTypes.object.description('inject props to datagrid wrapper'),\n /** FilterBar props passed down to FilterBar */\n filterBarOptions: PropTypes.shape({\n minWidth: PropTypes.number,\n maxWidth: PropTypes.number,\n }).description('FilterBar props passed down to FilterBar'),\n /** datagrid columns */\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n /** Column property as an identifier */\n property: PropTypes.string.isRequired,\n /** Label in the header */\n label: PropTypes.string,\n /** Defines the width of the column, can be a string with percentages (\"50%\"), if not defined the width is flexible */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */\n minWidth: PropTypes.number,\n /** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */\n customEditor: PropTypes.func,\n /** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */\n customRenderer: PropTypes.func,\n /** Activates 'searchable' feature for this column */\n searchable: PropTypes.bool,\n /** Activates 'sortable' feature for this column */\n sortable: PropTypes.bool,\n /** Activates 'resizable' feature for this column */\n resizable: PropTypes.bool,\n /** Activates 'editable' feature for this column */\n editable: PropTypes.bool,\n /** Whether this column is visible or not */\n visible: PropTypes.bool,\n }),\n ).description('datagrid columns'),\n /** datagrid rows */\n rows: PropTypes.arrayOf(PropTypes.object).description('datagrid rows'),\n /** key for each row */\n rowKey: PropTypes.string.description('key for each row'),\n /** toggle infinite scroll loading behavior */\n infiniteScrolling: PropTypes.bool.description('toggle infinite scroll loading behavior'),\n /** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */\n overscanCount: PropTypes.number.description(\n \"Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** turn datagrid to editable mode */\n editable: PropTypes.bool.description('turn datagrid to editable mode'),\n /** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */\n sortable: PropTypes.bool.description(\n \"Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Put empty values always last on the column after sorting */\n sortEmptyLast: PropTypes.bool.description('Put empty values always last on the column after sorting'),\n /** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n paginated: PropTypes.bool.description(\n \"Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Pagination step for clicking the next pages */\n paginationStep: PropTypes.number.description('Pagination step for clicking the next pages'),\n /** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropRows: PropTypes.bool.description(\n \"Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n selectable: PropTypes.bool.description(\n \"Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n resizeableColumns: PropTypes.bool.description(\n \"Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Placeholder rendered when no rows are visible */\n noResultsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no rows are visible',\n ),\n /** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n searchFilters: PropTypes.bool.description(\n \"activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropColumns: PropTypes.bool.description(\n \"Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n useTreeData: PropTypes.bool.description(\n \"activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** AutoScroll to row ID */\n autoScrollToId: PropTypes.any.description('AutoScroll to row ID'),\n /** Whether all rows are selected or not */\n selectAll: PropTypes.bool.description('Whether all rows are selected or not'),\n /** Defines the selected rows */\n selectedRows: PropTypes.arrayOf(PropTypes.object).description(' Defines the selected rows'),\n /** Filters to be applied to the grid */\n filters: PropTypes.arrayOf(PropTypes.object).description('Filters to be applied to the grid'),\n // todo: define params for handlers\n /** Handler when user expands a row */\n onExpandRow: PropTypes.func.description('Handler when user expands a row'),\n /** Handler when user expands a row with full expand state */\n onExpandChange: PropTypes.func.description('Handler when user expands a row with full expand state'),\n /** Handler when user expands a row (old API) */\n onToggleExpand: PropTypes.func.description('Handler when user expands a row (old API)'),\n /** Handler when user adds a filter */\n onAddFilter: PropTypes.func.description('Handler when user adds a filter'),\n /** Handler when user removes a filter */\n onRemoveFilter: PropTypes.func.description('Handler when user removes a filter'),\n /** Handler when the filters state has changed */\n onFiltersChange: PropTypes.func.description('Handler when the filters state has changed '),\n /** Handler when the default filters load. Returns the rows rendered */\n onDefaultFiltersLoad: PropTypes.func.description('Handler when the default filters load. Returns the rows rendered'),\n /** Handler when column move is over another column */\n onMoveColumnOver: PropTypes.func.description('Handler when column move is over another column'),\n /** Handler when column move starts */\n onMoveColumnStart: PropTypes.func.description(' Handler when column move starts'),\n /** Handler when column move ends */\n onMoveColumnEnd: PropTypes.func.description('Handler when column move ends'),\n /** Whether to show the filter bar or not */\n showFilterBar: PropTypes.bool.description('Whether to show the filter bar or not'),\n /** Custom option for the header with multi select */\n multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description(\n 'Custom option for the header with multi select',\n ),\n /** Label to the header column for multi select */\n multiSelectFilterLabel: PropTypes.string.description('Label to the header column for multi select'),\n /** Labels for multi selects */\n multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description('Labels for multi selects'),\n /** unstable */\n aggregations: PropTypes.object.description('').deprecated(''),\n /** unstable */\n /** Column which rows would be grouped by */\n groupingColumn: PropTypes.string.description('Column which rows would be grouped by').deprecated(''),\n /** group by */\n groupedBy: PropTypes.string.description('group by'),\n /** Defines the sorting state */\n sortingColumns: PropTypes.objectOf(\n PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n direction: PropTypes.oneOf(['asc', 'desc']),\n // eslint-disable-next-line react/no-unused-prop-types\n position: PropTypes.number,\n }),\n ).description('Defines the sorting state'),\n /** Visible columns property */\n visibleColumns: PropTypes.arrayOf(PropTypes.string).description('Visible columns property'),\n /** Pagination: Minimum number of rows per page */\n minPerPage: PropTypes.string.description('Pagination: Minimum number of rows per page'),\n /** Pagination: Maximum number of rows per page */\n maxPerPage: PropTypes.string.description('Pagination: Maximum number of rows per page'),\n /** Pagination: Handler when user changes the amount of rows per page */\n onPerPageChange: PropTypes.string.description('Pagination: Handler when user changes the amount of rows per page'),\n /** Pagination: Handler when user changes the page */\n onPageChange: PropTypes.string.description('Pagination: Handler when user changes the page'),\n /** Pagination state */\n pagination: PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n page: PropTypes.number,\n // eslint-disable-next-line react/no-unused-prop-types\n perPage: PropTypes.number,\n }).description('pagination state'),\n /** Whether to show the header or not */\n showHeader: PropTypes.bool.description('Whether to show the header or not'),\n /** Whether to header is fixed or not */\n fixedHeader: PropTypes.bool.description('Whether to header is fixed or not'),\n /** Defines the height of the DataGrid */\n height: PropTypes.number.description('Defines the height of the DataGrid'),\n /** General min column width for all the columns */\n minColumnWidth: PropTypes.number.description('General min column width for all the columns '),\n /** Whether to show a loader instead of the rows or not */\n showRowsLoader: PropTypes.bool.description('Whether to show a loader instead of the rows or not'),\n /** When a user selects a row, that row get highlighted */\n showSelectHighlight: PropTypes.bool.description('When a user selects a row, that row get highlighted'),\n /** Whether to show the select column when the selection feature is active */\n showSelectColumn: PropTypes.bool.description(\n 'Whether to show the select column when the selection feature is active',\n ),\n /** Activates sortable feature to selection column */\n selectColumnSortable: PropTypes.bool.description('activates sortable feature to selection column'),\n /** Activates filterable feature to selection column */\n selectColumnFilterable: PropTypes.bool.description('Activates filterable feature to selection column'),\n /** Define the definition for the selection column */\n selectionColumnDefinition: PropTypes.object.description('Define the definition for the selection column'),\n /** Function that returns a toolbar to show when the user hovers the row */\n renderToolbar: PropTypes.func.description('Function that returns a toolbar to show when the user hovers the row'),\n /** Timeout to close the toolbar */\n toolbarDelayClose: PropTypes.number.description(' Timeout to close the toolbar'),\n /** Function that returns a toolbar in the FilterBar component */\n renderFilterToolbar: PropTypes.func.description('Function that returns a toolbar in the FilterBar component'),\n /** Custom component for the selection */\n multiSelectComponent: PropTypes.element.description('Custom component for the selection'),\n /** Normalize the keys of the data received and the columns */\n normalizeDataKeys: PropTypes.bool.description('Normalize the keys of the data received and the columns'),\n /** Function that returns an Element when there are no rows */\n noResultsRender: PropTypes.func.description('Function that returns an Element when there are no rows'),\n /** The height of the DataGrid will expand to its container */\n fluidHeight: PropTypes.bool.description('The height of the DataGrid will expand to its container'),\n /** @deprecated */\n customHandlers: PropTypes.object.description('').deprecated(''),\n /** Handler when user closes the filter menu */\n onFilterMenuClose: PropTypes.func.description('Handler when user closes the filter menu'),\n /** Handler when user opens the filter menu */\n onFilterMenuOpen: PropTypes.func.description('Handler when user opens the filter menu'),\n /** Handler when user drags a row */\n onReorder: PropTypes.func.description('handler when user drags a row '),\n /** Handler when user stops dragging a row */\n onMoveRowEnd: PropTypes.func.description('Handler when user stops dragging a row '),\n /** Handler when user starts dragging a row */\n onMoveRowStart: PropTypes.func.description('Handler when user starts dragging a row'),\n /** Handler when user has resized a column */\n onColumnResize: PropTypes.func.description('Handler when user has resized a column'),\n /** Handler when user filters by a column */\n onFilter: PropTypes.func.description('Handler when user filters by a column'),\n /** Handler when user sorts by a column */\n onSort: PropTypes.func.description('Handler when user sorts by a column '),\n /** Handler when user has edited a cell row */\n onColumnRowEdited: PropTypes.func.description('Handler when user has edited a cell row'),\n /** Handler when user activates the cell row editing functionality */\n onColumnRowEdit: PropTypes.func.description(' Handler when user activates the cell row editing functionality'),\n /** Handler when user selects a row */\n onSelectRow: PropTypes.func.description('Handler when user selects a row'),\n /** Handler when user checks the selection header controller */\n onSelectAll: PropTypes.func.description('Handler when user checks the selection header controller'),\n /** Handler to get more data when infinite scroll is activated */\n getData: PropTypes.func.description('Handler to get more data when infinite scroll is activated'),\n /** Handler to get more data when infinite scroll is activated without side-effect */\n onInfiniteScrolling: PropTypes.func.description(\n 'Handler to get more data when infinite scroll is activated without side-effect',\n ),\n /** Flag to override empty sort when data is from server */\n serverSideData: PropTypes.bool.description('Flag to override empty sort when data is from server'),\n /** Flag to force virtualization. Not used */\n virtualized: PropTypes.bool.description('Flag to force virtualization. Not used'),\n /** Number of rows visible. Not used */\n numRowsVisible: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['all'])]).description(\n 'Number of rows visible. Not used',\n ),\n /** Callback to check if column is editable */\n isColumnEditable: PropTypes.func.description('Callback to check if column is editable'),\n /** Flag for groupedRows */\n groupedRows: PropTypes.bool.description('Flag for groupedRows'),\n /** Header for grouped rows */\n groupedRowsRenderHeader: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Header for grouped rows',\n ),\n /** Once activated will disable the internal logic for sorting */\n isDataSorted: PropTypes.bool.description('Once activated will disable the internal logic for sorting'),\n /** Once activated will disable the internal logic for filtering */\n isDataFiltered: PropTypes.bool.description('Once activated will disable the internal logic for filtering'),\n /** Change row size */\n rowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change row size'),\n /** Whether to wrap the text of the data grid or not */\n wrapText: PropTypes.bool.description('Whether to wrap the text of the data grid or not'),\n /** Element to render expanded details */\n renderExpandedDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render expanded details',\n ),\n /** Columns to render on the details of an expanded row */\n detailColumns: PropTypes.arrayOf(PropTypes.object).description('Columns to render on the details of an expanded row'),\n /** Flag to enable the expandable feature */\n expandable: PropTypes.bool.description('Flag to enable the expandable feature '),\n /** Callback to get the row children */\n getChildrenRows: PropTypes.func.description('Callback to get the row children'),\n /** Number of rows visible on the details of an expanded row */\n expandableSubrowsVisible: PropTypes.number.description('Number of rows visible on the details of an expanded row'),\n /** Element to render inside expanded row */\n renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render inside expanded row',\n ),\n /** Callback to get the expanded row size */\n getExpandedRowSize: PropTypes.func.description('Callback to get the expanded row size'),\n /** Callback to get the expanded row minimum size */\n getExpandedRowMinSize: PropTypes.func.description('Callback to get the expanded row minimum size'),\n /** Change expanded/details rows size */\n subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change expanded/details rows size'),\n /** Bind the column size to another grid instance */\n bindColumnsSizeTo: PropTypes.string.description('Bind the column size to another grid instance'),\n /** Bind the row size to another grid instance */\n bindRowSizeTo: PropTypes.string.description('Bind the row size to another grid instance'),\n /** Handler when toggle show all is clicked */\n onToggleShowAllRows: PropTypes.func.description('Handler when toggle show all is clicked'),\n /** Expanded row state */\n expandedRows: PropTypes.object.description('Expanded row state'),\n /** Flag to enable autoheight */\n autoHeight: PropTypes.bool.description('Flag to enable autoheight'),\n /** Placeholder rendered when no columns are visible */\n noColumnsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no columns are visible',\n ),\n /** Plugin additional array */\n plugins: PropTypes.arrayOf(PropTypes.any).description('Plugin additional array'),\n};\n\nDSDataGrids.propTypes = props;\nDSDataGrids.displayName = 'DSDataGrids';\nconst DSDataGridsWithSchema = describe(DSDataGrids);\nDSDataGridsWithSchema.propTypes = props;\n\nexport { DSDataGridsWithSchema, DSDataGrids, DSDataGrids as DSDataGrid };\nexport default DSDataGrids;\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACsJjB;AApJN,SAAS,6BAA6B;AACtC,SAAS,WAAW,gBAAgB;AACpC,SAAS,2BAA2B;AACpC,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB,0BAA0B;AAEpD,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB,CAAC;AAAA,EAClB;AAAA,EACA,YAAY;AAAA,EAGZ,UAAU,CAAC;AAAA,EACX,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EAGT,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd;AAAA,EAGA,gBAAgB;AAAA,EAGhB,YAAY;AAAA,EACZ,eAAe,CAAC;AAAA,EAChB,UAAU;AAAA,EACV,cAAc,MAAM;AAAA,EACpB,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,gBAAgB;AAAA,EAChB,2BAA2B;AAAA,IACzB,EAAE,IAAI,QAAQ,OAAO,WAAW;AAAA,IAChC,EAAE,IAAI,SAAS,OAAO,eAAe;AAAA,EACvC;AAAA,EACA,0BAA0B;AAAA,EAC1B,yBAAyB;AAAA,EAEzB,eAAe,CAAC;AAAA,EAChB,iBAAiB;AAAA,EAEjB,iBAAiB,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,SACE,oBAAC,uBACC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,YAAY,cAAc,CAAC;AAAA,MAC3B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AA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
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DataGridImpl.tsx"],
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useMemo } from 'react';\nimport { isFunction, useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table.js';\nimport { TableBody } from './components/TableBody.js';\nimport { TableHeader } from './components/TableHeader.js';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers/index.js';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';\nimport { addOptionalFooterComponents } from './components/footer/addOptionalFooterComponents.js';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents.js';\nimport { EmptyState } from './components/EmptyState.js';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps.js';\nimport { defaultPlugins } from './defaultPlugins.js';\nimport { normalizeRows } from './utilities/normalizeData.js';\n\nconst isFluid = ({ autoHeight, paginated, numRowsVisible }) => {\n if (autoHeight) return false;\n if (paginated) return false;\n return !numRowsVisible;\n};\n\nconst DataGridImpl = ({\n className,\n renderers,\n columns,\n rows,\n containerProps,\n plugins: pluginsProp,\n normalizeDataKeys,\n ...otherProps\n}) => {\n const {\n noResultsPlaceholder = <EmptyState />,\n noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',\n noResultsRender,\n paginated,\n height,\n showHeader,\n showRowsLoader,\n rowsLoaderRenderer = renderRowsLoader,\n groupedRows,\n sortable,\n rowSize,\n wrapText,\n onDefaultFiltersLoad,\n rowKey,\n } = otherProps;\n\n const idKey = rowKey || 'id';\n const rowsIdsSet = new Set();\n const rowsIds = rows.map((row) => {\n if (row[idKey] === undefined) throw new Error('Missing id: each row must have an unique id');\n rowsIdsSet.add(row[idKey]);\n return row[idKey];\n });\n if (rowsIds.length !== rowsIdsSet.size) throw new Error('Repeated id: each row must have an unique id');\n\n const plugins = getPluginsFromProps({\n ...otherProps,\n virtualized: (!paginated || groupedRows) && !wrapText,\n paginated: (paginated && !groupedRows) || wrapText,\n sortable: sortable && !groupedRows,\n });\n\n if (normalizeDataKeys) {\n normalizeRows(rows);\n }\n\n const grid = useDataGrid({\n columns,\n rows,\n renderers: defaultRenderers,\n plugins: [...plugins, ...pluginsProp, ...defaultPlugins],\n ...otherProps,\n });\n\n const noColumnsVisible = useMemo(() => {\n const visibleUserColumns = grid.columns.filter((column) => column.visible || typeof column.visible === 'undefined');\n return visibleUserColumns.length === 0;\n }, [grid.columns]);\n\n const bodyPlaceholder = useMemo(() => {\n if (noColumnsVisible) {\n return noColumnsPlaceholder;\n }\n return isFunction(noResultsRender) ? noResultsRender() : noResultsPlaceholder;\n }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);\n\n const { pagination } = otherProps;\n const conditionalPagination =\n pagination && pagination.conditionalPagination === true && rows.length <= otherProps.pagination.perPage;\n const usePagination = paginated && !conditionalPagination;\n return (\n <DatagridWrapper\n className={`${className} ds-row-size-${rowSize}`}\n classProps={{\n fluidHeight: isFluid({\n autoHeight: otherProps.autoHeight,\n numRowsVisible: otherProps.numRowsVisible,\n paginated: usePagination,\n }),\n }}\n style={{ height }}\n {...containerProps}\n >\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid} onDefaultFiltersLoad={onDefaultFiltersLoad}>\n {showHeader && <TableHeader />}\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <TableBody\n isPlaceholderActive={\n noColumnsVisible ||\n (grid.composedRows.rows && grid.composedRows.rows.length === 0) ||\n grid.composedRows.length === 0\n }\n noResultsPlaceholder={bodyPlaceholder}\n />\n )}\n </Table>\n {addOptionalFooterComponents({\n grid,\n rows: grid.composedRows,\n })}\n </DatagridWrapper>\n );\n};\n\nexport { DataGridImpl };\n\nexport default DataGridImpl;\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;AC+BI,cA0ErB,YA1EqB;AA/B3B,SAAgB,eAAe;AAC/B,SAAS,YAAY,mBAAmB;AACxC,SAAS,aAAa;AACtB,SAAS,iBAAiB;AAC1B,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C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,yBAAyB;AAAA,MACvC,YAAY;AAAA,QACV,aAAa,QAAQ;AAAA,UACnB,YAAY,WAAW;AAAA,UACvB,gBAAgB,WAAW;AAAA,UAC3B,WAAW;AAAA,QACb,CAAC;AAAA,MACH;AAAA,MACA,OAAO,EAAE,OAAO;AAAA,MACf,GAAG;AAAA,MAEH;AAAA,oCAA4B,EAAE,KAAK,CAAC;AAAA,QACrC,qBAAC,SAAO,GAAG,MAAM,sBACd;AAAA,wBAAc,oBAAC,eAAY;AAAA,UAC3B,iBACC,mBAAmB,IAEnB;AAAA,YAAC;AAAA;AAAA,cACC,qBACE,oBACC,KAAK,aAAa,QAAQ,KAAK,aAAa,KAAK,WAAW,KAC7D,KAAK,aAAa,WAAW;AAAA,cAE/B,sBAAsB;AAAA;AAAA,UACxB;AAAA,WAEJ;AAAA,QACC,4BAA4B;AAAA,UAC3B;AAAA,UACA,MAAM,KAAK;AAAA,QACb,CAAC;AAAA;AAAA;AAAA,EACH;AAEJ;AAIA,IAAO,uBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/PaginatedDataGrid.tsx"],
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table.js';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers/index.js';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents.js';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps.js';\nimport { Pagination } from './plugins/pagination/components/Pagination.js';\n\nconst PaginatedDataGrid = ({\n columns,\n rows,\n showRowsLoader,\n noResultsPlaceholder,\n rowsLoaderRenderer = renderRowsLoader,\n maxPerPage,\n minPerPage,\n onPageSelect,\n onPerPage,\n pagination,\n ...otherProps\n}) => {\n const plugins = getPluginsFromProps(otherProps, { infiniteScrolling: true });\n const grid = useDataGrid({\n ...otherProps,\n columns,\n rows,\n renderers: defaultRenderers,\n plugins,\n });\n\n return (\n <DatagridWrapper>\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid}>\n <Table.Header />\n {showRowsLoader ? rowsLoaderRenderer() : <Table.Body rows={grid.composedRows.rows || grid.composedRows} />}\n </Table>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginated={rows}\n pagination={pagination}\n />\n </DatagridWrapper>\n );\n};\n\nexport default PaginatedDataGrid;\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACkCjB,SACE,KADF;AAjCN,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,uBAAuB;AAChC,SAAS,mCAAmC;AAC5C,SAAS,2BAA2B;AACpC,SAAS,kBAAkB;AAE3B,MAAM,oBAAoB,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACkCjB,SACE,KADF;AAjCN,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,uBAAuB;AAChC,SAAS,mCAAmC;AAC5C,SAAS,2BAA2B;AACpC,SAAS,kBAAkB;AAE3B,MAAM,oBAAoB,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,UAAU,oBAAoB,YAAY,EAAE,mBAAmB,KAAK,CAAC;AAC3E,QAAM,OAAO,YAAY;AAAA,IACvB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,EACF,CAAC;AAED,SACE,qBAAC,mBACE;AAAA,gCAA4B,EAAE,KAAK,CAAC;AAAA,IACrC,qBAAC,SAAO,GAAG,MACT;AAAA,0BAAC,MAAM,QAAN,EAAa;AAAA,MACb,iBAAiB,mBAAmB,IAAI,oBAAC,MAAM,MAAN,EAAW,MAAM,KAAK,aAAa,QAAQ,KAAK,cAAc;AAAA,OAC1G;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW;AAAA,QACX;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAO,4BAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/columns/IconColumn.tsx"],
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/display-name */\nimport React from 'react';\nimport { cx } from '@elliemae/ds-utilities';\nimport { DSButton } from '@elliemae/ds-button';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst Intents = {\n SUCCESS: 'success',\n INFO: 'info',\n DANGER: 'danger',\n WARNING: 'warning',\n};\n\nconst IntentIconColors = {\n [Intents.SUCCESS]: ['success', 900],\n [Intents.INFO]: ['brand-primary', 600],\n [Intents.DANGER]: ['danger', 900],\n [Intents.WARNING]: ['warning', 900],\n};\n\nconst ValueWrapper = aggregatedClasses('span')('icon-column-cell');\n\nconst addColorToIcon = (icon, intentColor) => {\n if (icon.props.color) {\n return icon;\n }\n return React.cloneElement(icon, { color: intentColor });\n};\n\nexport const IconColumn = ({\n property,\n label,\n headerIcon,\n getRowIcon = () => null,\n isVisited = () => null,\n intent = Intents.SUCCESS,\n width = 60,\n onClick,\n visible,\n resizable,\n sortable,\n searchable,\n}) => {\n const formatter = (value, extraParams) => {\n const icon = getRowIcon(value, extraParams);\n const onClickHandler = (e) => onClick(e, extraParams);\n return (\n <ValueWrapper className={cx(`icc-${intent}`, isVisited(value, extraParams))}>\n {icon && addColorToIcon(icon, IntentIconColors[intent])}\n {onClick && typeof value !== 'undefined' ? (\n <DSButton buttonType=\"text\" intent={intent} labelText={value} onClick={onClickHandler} />\n ) : (\n value\n )}\n </ValueWrapper>\n );\n };\n return {\n property,\n label,\n headerStyle: {\n justifyContent: 'center',\n },\n header: {\n formatters: [\n () => (\n <span>\n {React.cloneElement(headerIcon, {\n color: IntentIconColors[intent],\n })}\n </span>\n ),\n ],\n },\n cell: {\n formatters: [formatter],\n },\n cellStyle: {\n justifyContent: 'center',\n },\n width,\n visible: typeof visible === 'undefined' || visible,\n resizable,\n sortable,\n searchable,\n };\n};\n\nexport default IconColumn;\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;AC+CjB,SAGI,KAHJ;AA9CN,OAAOA,YAAW;AAClB,SAAS,UAAU;AACnB,SAAS,gBAAgB;AACzB,SAAS,yBAAyB;AAElC,MAAM,UAAU;AAAA,EACd,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AACX;AAEA,MAAM,mBAAmB;AAAA,EACvB,CAAC,QAAQ,
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AC+CjB,SAGI,KAHJ;AA9CN,OAAOA,YAAW;AAClB,SAAS,UAAU;AACnB,SAAS,gBAAgB;AACzB,SAAS,yBAAyB;AAElC,MAAM,UAAU;AAAA,EACd,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AACX;AAEA,MAAM,mBAAmB;AAAA,EACvB,CAAC,QAAQ,OAAO,GAAG,CAAC,WAAW,GAAG;AAAA,EAClC,CAAC,QAAQ,IAAI,GAAG,CAAC,iBAAiB,GAAG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IACA,WAAW;AAAA,MACT,gBAAgB;AAAA,IAClB;AAAA,IACA;AAAA,IACA,SAAS,OAAO,YAAY,eAAe;AAAA,IAC3C;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,qBAAQ;",
|
6
6
|
"names": ["React"]
|
7
7
|
}
|
@@ -20,6 +20,7 @@ const BodyCell = ({ component: Component, classProps, rowProps, column, columnIn
|
|
20
20
|
transforms = [],
|
21
21
|
formatters = [],
|
22
22
|
fixedFormatters = [],
|
23
|
+
// useful for the toolbar trigger at the last column
|
23
24
|
scrollingFormatters = []
|
24
25
|
} = cell || {};
|
25
26
|
const extraParameters = {
|
@@ -30,6 +31,7 @@ const BodyCell = ({ component: Component, classProps, rowProps, column, columnIn
|
|
30
31
|
rowIndex,
|
31
32
|
rowKey,
|
32
33
|
isScrolling,
|
34
|
+
// improve performance on scroll rendering a lightweight component instead
|
33
35
|
registerFocus,
|
34
36
|
...extraRowProps
|
35
37
|
};
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/BodyCell.tsx"],
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useEffect, useContext, useRef, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { FocusGridContext, evaluateFormatters, evaluateTransforms } from '@elliemae/ds-shared';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\n\nconst BodyCell = ({ component: Component, classProps, rowProps, column, columnIndex, rowIndex, grid }) => {\n const { rowData, rowKey, isScrolling, ...extraRowProps } = rowProps;\n const { property, cell, props } = column;\n const evaluatedProperty = property || (cell && cell.property);\n\n const ref = useRef(null);\n const { register } = useContext(FocusGridContext);\n\n const registerFocus = useCallback((node) => {\n register(node, rowIndex, columnIndex);\n }, []);\n\n useEffect(() => {\n registerFocus(ref.current);\n }, [ref.current]);\n\n const {\n transforms = [],\n formatters = [],\n fixedFormatters = [], // useful for the toolbar trigger at the last column\n scrollingFormatters = [],\n } = cell || {};\n\n const extraParameters = {\n columnIndex,\n property: evaluatedProperty,\n column,\n rowData,\n rowIndex,\n rowKey,\n isScrolling, // improve performance on scroll rendering a lightweight component instead\n registerFocus,\n ...extraRowProps,\n };\n const withTooltip = (v) => (classProps && classProps.wrapText ? v : <DSTruncatedTooltipText value={v} />);\n const value = rowData[`_${evaluatedProperty}`] || rowData[evaluatedProperty];\n const transformed = evaluateTransforms(transforms, value, extraParameters);\n return (\n <Component\n ref={ref}\n data-testid={`column-${property}`}\n tabIndex={-1}\n classProps={classProps}\n {...props}\n {...(cell && cell.props)}\n {...transformed}\n >\n {transformed.children ||\n evaluateFormatters(\n !isScrolling\n ? [withTooltip, ...formatters, ...fixedFormatters]\n : [...scrollingFormatters, ...fixedFormatters],\n value,\n extraParameters,\n grid,\n )}\n </Component>\n );\n};\n\nBodyCell.propTypes = {\n component: PropTypes.element,\n classProps: PropTypes.shape({\n wrapText: PropTypes.bool,\n }),\n rowProps: PropTypes.shape({\n rowData: PropTypes.shape({}),\n rowKey: PropTypes.string,\n isScrolling: PropTypes.bool,\n }),\n column: PropTypes.shape({\n property: PropTypes.string,\n cell: PropTypes.any,\n props: PropTypes.shape({}),\n }),\n columnIndex: PropTypes.number,\n rowIndex: PropTypes.number,\n grid: PropTypes.any,\n};\n\nexport { BodyCell };\nexport default BodyCell;\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACuC+C;AAvCtE,SAAgB,WAAW,YAAY,QAAQ,mBAAmB;AAClE,OAAO,eAAe;AACtB,SAAS,kBAAkB,oBAAoB,0BAA0B;AACzE,SAAS,8BAA8B;AAEvC,MAAM,WAAW,CAAC,EAAE,WAAW,WAAW,YAAY,UAAU,QAAQ,aAAa,UAAU,KAAK,MAAM;AACxG,QAAM,EAAE,SAAS,QAAQ,
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACuC+C;AAvCtE,SAAgB,WAAW,YAAY,QAAQ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AY,YACX;AAAA,QACE,CAAC,cACG,CAAC,aAAa,GAAG,YAAY,GAAG,eAAe,IAC/C,CAAC,GAAG,qBAAqB,GAAG,eAAe;AAAA,QAC/C;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA;AAAA,EACJ;AAEJ;AAEA,SAAS,YAAY;AAAA,EACnB,WAAW,UAAU;AAAA,EACrB,YAAY,UAAU,MAAM;AAAA,IAC1B,UAAU,UAAU;AAAA,EACtB,CAAC;AAAA,EACD,UAAU,UAAU,MAAM;AAAA,IACxB,SAAS,UAAU,MAAM,CAAC,CAAC;AAAA,IAC3B,QAAQ,UAAU;AAAA,IAClB,aAAa,UAAU;AAAA,EACzB,CAAC;AAAA,EACD,QAAQ,UAAU,MAAM;AAAA,IACtB,UAAU,UAAU;AAAA,IACpB,MAAM,UAAU;AAAA,IAChB,OAAO,UAAU,MAAM,CAAC,CAAC;AAAA,EAC3B,CAAC;AAAA,EACD,aAAa,UAAU;AAAA,EACvB,UAAU,UAAU;AAAA,EACpB,MAAM,UAAU;AAClB;AAGA,IAAO,mBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/BodyList.tsx"],
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { NoResults } from './NoResults.js';\n\nconst BodyWrapperDefaultRenderer = ({\n component: Component,\n rows,\n rowRenderer,\n noResultsPlaceholder,\n innerRef,\n innerBodyRef,\n ...otherBodyProps\n}) => (\n <Component {...otherBodyProps} innerRef={innerRef}>\n {rows.length ? (\n rows.map((row, index) => rowRenderer(row, { index }, {}))\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n);\n\nexport default React.memo(BodyWrapperDefaultRenderer);\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACgBjB;AAhBN,OAAOA,YAAW;AAClB,SAAS,iBAAiB;AAE1B,MAAM,6BAA6B,CAAC;AAAA,EAClC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACgBjB;AAhBN,OAAOA,YAAW;AAClB,SAAS,iBAAiB;AAE1B,MAAM,6BAA6B,CAAC;AAAA,EAClC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE,oBAAC,aAAW,GAAG,gBAAgB,UAC5B,eAAK,SACJ,KAAK,IAAI,CAAC,KAAK,UAAU,YAAY,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,IAExD,oBAAC,aAAU,UAAoB,aAC5B,gCACH,GAEJ;AAGF,IAAO,mBAAQA,OAAM,KAAK,0BAA0B;",
|
6
6
|
"names": ["React"]
|
7
7
|
}
|