@elliemae/ds-datagrids 3.0.0-next.1 → 3.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DSDataGrid.js +399 -0
- package/dist/cjs/DSDataGrid.js.map +7 -0
- package/dist/cjs/DataGridImpl.js +177 -0
- package/dist/cjs/DataGridImpl.js.map +7 -0
- package/dist/cjs/PaginatedDataGrid.js +114 -0
- package/dist/cjs/PaginatedDataGrid.js.map +7 -0
- package/dist/cjs/blockNames.js +39 -0
- package/dist/cjs/blockNames.js.map +7 -0
- package/dist/cjs/columns/IconColumn.js +111 -0
- package/dist/cjs/columns/IconColumn.js.map +7 -0
- package/dist/cjs/columns/NumberColumn.js +36 -0
- package/dist/cjs/columns/NumberColumn.js.map +7 -0
- package/dist/cjs/components/BodyCell.js +126 -0
- package/dist/cjs/components/BodyCell.js.map +7 -0
- package/dist/cjs/components/BodyList.js +89 -0
- package/dist/cjs/components/BodyList.js.map +7 -0
- package/dist/cjs/components/ColumnVisibilityMenuOption.js +66 -0
- package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/dist/cjs/components/ColumnsOptionsMenuSection.js +64 -0
- package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/dist/cjs/components/EmptyState.js +82 -0
- package/dist/cjs/components/EmptyState.js.map +7 -0
- package/dist/cjs/components/HeaderCell.js +87 -0
- package/dist/cjs/components/HeaderCell.js.map +7 -0
- package/dist/cjs/components/List.js +56 -0
- package/dist/cjs/components/List.js.map +7 -0
- package/dist/cjs/components/ListItem.js +64 -0
- package/dist/cjs/components/ListItem.js.map +7 -0
- package/dist/cjs/components/NoResults.js +84 -0
- package/dist/cjs/components/NoResults.js.map +7 -0
- package/dist/cjs/components/RowsLoader.js +42 -0
- package/dist/cjs/components/RowsLoader.js.map +7 -0
- package/dist/cjs/components/Table.js +125 -0
- package/dist/cjs/components/Table.js.map +7 -0
- package/dist/cjs/components/TableBody.js +101 -0
- package/dist/cjs/components/TableBody.js.map +7 -0
- package/dist/cjs/components/TableHeader.js +68 -0
- package/dist/cjs/components/TableHeader.js.map +7 -0
- package/dist/cjs/components/footer/addOptionalFooterComponents.js +56 -0
- package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/dist/cjs/components/header/PrimaryControls.js +50 -0
- package/dist/cjs/components/header/PrimaryControls.js.map +7 -0
- package/dist/cjs/components/header/addOptionalHeaderComponents.js +58 -0
- package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/dist/cjs/components/index.js +43 -0
- package/dist/cjs/components/index.js.map +7 -0
- package/dist/cjs/components/renderers/defaultClassedRenderers.js +66 -0
- package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/dist/cjs/components/renderers/index.js +50 -0
- package/dist/cjs/components/renderers/index.js.map +7 -0
- package/dist/cjs/components/renderers/renderRowsLoader.js +39 -0
- package/dist/cjs/components/renderers/renderRowsLoader.js.map +7 -0
- package/dist/cjs/components/tableContext.js +36 -0
- package/dist/cjs/components/tableContext.js.map +7 -0
- package/dist/cjs/defaultPlugins.js +44 -0
- package/dist/cjs/defaultPlugins.js.map +7 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +178 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/dist/cjs/plugins/body-header-scroll-sync/index.js +35 -0
- package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +168 -0
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +46 -0
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/dist/cjs/plugins/column-dnd/index.js +35 -0
- package/dist/cjs/plugins/column-dnd/index.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +92 -0
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +85 -0
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +44 -0
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +80 -0
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -0
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/index.js +35 -0
- package/dist/cjs/plugins/column-sizing/index.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +165 -0
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +167 -0
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/utils.js +68 -0
- package/dist/cjs/plugins/column-sizing/utils.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +40 -0
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +94 -0
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +86 -0
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/index.js +35 -0
- package/dist/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +84 -0
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +107 -0
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/dist/cjs/plugins/editable/EditableComponents/index.js +37 -0
- package/dist/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
- package/dist/cjs/plugins/editable/EditablePlugin.js +108 -0
- package/dist/cjs/plugins/editable/EditablePlugin.js.map +7 -0
- package/dist/cjs/plugins/editable/decorateEditable.js +111 -0
- package/dist/cjs/plugins/editable/decorateEditable.js.map +7 -0
- package/dist/cjs/plugins/editable/getEditorComponent.js +99 -0
- package/dist/cjs/plugins/editable/getEditorComponent.js.map +7 -0
- package/dist/cjs/plugins/editable/index.js +38 -0
- package/dist/cjs/plugins/editable/index.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +163 -0
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +205 -0
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +159 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +72 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/index.js +37 -0
- package/dist/cjs/plugins/expandable-grid/index.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +93 -0
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js +145 -0
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/dist/cjs/plugins/export-data/index.js +35 -0
- package/dist/cjs/plugins/export-data/index.js.map +7 -0
- package/dist/cjs/plugins/filterable/FilterablePlugin.js +80 -0
- package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/dist/cjs/plugins/filterable/addFilterToColumn.js +60 -0
- package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js +145 -0
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +157 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +131 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +201 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +196 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +49 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/dist/cjs/plugins/filterable/filterableFormatter.js +73 -0
- package/dist/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +94 -0
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +44 -0
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/dist/cjs/plugins/filterable/helper.js +125 -0
- package/dist/cjs/plugins/filterable/helper.js.map +7 -0
- package/dist/cjs/plugins/filterable/index.js +35 -0
- package/dist/cjs/plugins/filterable/index.js.map +7 -0
- package/dist/cjs/plugins/filterable/useFilterableState.js +127 -0
- package/dist/cjs/plugins/filterable/useFilterableState.js.map +7 -0
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +57 -0
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +146 -0
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js +76 -0
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/dist/cjs/plugins/index.js +68 -0
- package/dist/cjs/plugins/index.js.map +7 -0
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +129 -0
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/dist/cjs/plugins/infinite-scrolling/index.js +35 -0
- package/dist/cjs/plugins/infinite-scrolling/index.js.map +7 -0
- package/dist/cjs/plugins/pagination/PaginationPlugin.js +128 -0
- package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/dist/cjs/plugins/pagination/components/Pagination.js +63 -0
- package/dist/cjs/plugins/pagination/components/Pagination.js.map +7 -0
- package/dist/cjs/plugins/pagination/components/Paginator.js +82 -0
- package/dist/cjs/plugins/pagination/components/Paginator.js.map +7 -0
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +95 -0
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/dist/cjs/plugins/pagination/helper.js +62 -0
- package/dist/cjs/plugins/pagination/helper.js.map +7 -0
- package/dist/cjs/plugins/pagination/index.js +35 -0
- package/dist/cjs/plugins/pagination/index.js.map +7 -0
- package/dist/cjs/plugins/pagination/usePaginationState.js +98 -0
- package/dist/cjs/plugins/pagination/usePaginationState.js.map +7 -0
- package/dist/cjs/plugins/resizable/ResizablePlugin.js +109 -0
- package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/dist/cjs/plugins/resizable/decorateResizable.js +72 -0
- package/dist/cjs/plugins/resizable/decorateResizable.js.map +7 -0
- package/dist/cjs/plugins/resizable/index.js +35 -0
- package/dist/cjs/plugins/resizable/index.js.map +7 -0
- package/dist/cjs/plugins/resizable/useResizeHandle.js +79 -0
- package/dist/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
- package/dist/cjs/plugins/resizable/utils.js +54 -0
- package/dist/cjs/plugins/resizable/utils.js.map +7 -0
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +148 -0
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/dist/cjs/plugins/row-dnd/index.js +35 -0
- package/dist/cjs/plugins/row-dnd/index.js.map +7 -0
- package/dist/cjs/plugins/selectable/SelectablePlugin.js +166 -0
- package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/dist/cjs/plugins/selectable/addSelectableColumn.js +129 -0
- package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/dist/cjs/plugins/selectable/helper.js +70 -0
- package/dist/cjs/plugins/selectable/helper.js.map +7 -0
- package/dist/cjs/plugins/selectable/index.js +35 -0
- package/dist/cjs/plugins/selectable/index.js.map +7 -0
- package/dist/cjs/plugins/selectable/selectableFormatter.js +110 -0
- package/dist/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
- package/dist/cjs/plugins/selectable/useSelectableState.js +130 -0
- package/dist/cjs/plugins/selectable/useSelectableState.js.map +7 -0
- package/dist/cjs/plugins/sortable/SortablePlugin.js +95 -0
- package/dist/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
- package/dist/cjs/plugins/sortable/checkIfSortable.js +45 -0
- package/dist/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
- package/dist/cjs/plugins/sortable/index.js +35 -0
- package/dist/cjs/plugins/sortable/index.js.map +7 -0
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +66 -0
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/dist/cjs/plugins/sortable/sortTree.js +60 -0
- package/dist/cjs/plugins/sortable/sortTree.js.map +7 -0
- package/dist/cjs/plugins/sortable/sorter.js +154 -0
- package/dist/cjs/plugins/sortable/sorter.js.map +7 -0
- package/dist/cjs/plugins/sortable/useSortableState.js +89 -0
- package/dist/cjs/plugins/sortable/useSortableState.js.map +7 -0
- package/dist/cjs/plugins/toolbar/RowRenderer.js +110 -0
- package/dist/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +58 -0
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +121 -0
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/dist/cjs/plugins/toolbar/index.js +35 -0
- package/dist/cjs/plugins/toolbar/index.js.map +7 -0
- package/dist/cjs/plugins/virtualization/AutoHeightList.js +108 -0
- package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +111 -0
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js +274 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +52 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/dist/cjs/plugins/virtualization/helper.js +35 -0
- package/dist/cjs/plugins/virtualization/helper.js.map +7 -0
- package/dist/cjs/plugins/virtualization/index.js +35 -0
- package/dist/cjs/plugins/virtualization/index.js.map +7 -0
- package/dist/cjs/renders/CellWithAddons.js +111 -0
- package/dist/cjs/renders/CellWithAddons.js.map +7 -0
- package/dist/cjs/renders/index.js +37 -0
- package/dist/cjs/renders/index.js.map +7 -0
- package/dist/cjs/renders/styled.js +78 -0
- package/dist/cjs/renders/styled.js.map +7 -0
- package/dist/cjs/rowSizes.js +51 -0
- package/dist/cjs/rowSizes.js.map +7 -0
- package/dist/cjs/utilities/DataGridUtilities.json +1315 -0
- package/dist/cjs/utilities/getPluginsFromProps.js +72 -0
- package/dist/cjs/utilities/getPluginsFromProps.js.map +7 -0
- package/dist/cjs/utilities/getScrollbarSize.js +46 -0
- package/dist/cjs/utilities/getScrollbarSize.js.map +7 -0
- package/dist/cjs/utilities/normalizeData.js +65 -0
- package/dist/cjs/utilities/normalizeData.js.map +7 -0
- package/dist/esm/DSDataGrid.js +370 -0
- package/dist/esm/DSDataGrid.js.map +7 -0
- package/dist/esm/DataGridImpl.js +150 -0
- package/dist/esm/DataGridImpl.js.map +7 -0
- package/dist/esm/PaginatedDataGrid.js +87 -0
- package/dist/esm/PaginatedDataGrid.js.map +7 -0
- package/dist/esm/blockNames.js +10 -0
- package/dist/esm/blockNames.js.map +7 -0
- package/dist/esm/columns/IconColumn.js +82 -0
- package/dist/esm/columns/IconColumn.js.map +7 -0
- package/dist/esm/columns/NumberColumn.js +7 -0
- package/dist/esm/columns/NumberColumn.js.map +7 -0
- package/dist/esm/components/BodyCell.js +99 -0
- package/dist/esm/components/BodyCell.js.map +7 -0
- package/dist/esm/components/BodyList.js +62 -0
- package/dist/esm/components/BodyList.js.map +7 -0
- package/dist/esm/components/ColumnVisibilityMenuOption.js +37 -0
- package/dist/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/dist/esm/components/ColumnsOptionsMenuSection.js +35 -0
- package/dist/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/dist/esm/components/EmptyState.js +53 -0
- package/dist/esm/components/EmptyState.js.map +7 -0
- package/dist/esm/components/HeaderCell.js +60 -0
- package/dist/esm/components/HeaderCell.js.map +7 -0
- package/dist/esm/components/List.js +29 -0
- package/dist/esm/components/List.js.map +7 -0
- package/dist/esm/components/ListItem.js +37 -0
- package/dist/esm/components/ListItem.js.map +7 -0
- package/dist/esm/components/NoResults.js +57 -0
- package/dist/esm/components/NoResults.js.map +7 -0
- package/dist/esm/components/RowsLoader.js +13 -0
- package/dist/esm/components/RowsLoader.js.map +7 -0
- package/dist/esm/components/Table.js +98 -0
- package/dist/esm/components/Table.js.map +7 -0
- package/dist/esm/components/TableBody.js +74 -0
- package/dist/esm/components/TableBody.js.map +7 -0
- package/dist/esm/components/TableHeader.js +41 -0
- package/dist/esm/components/TableHeader.js.map +7 -0
- package/dist/esm/components/footer/addOptionalFooterComponents.js +27 -0
- package/dist/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/dist/esm/components/header/PrimaryControls.js +21 -0
- package/dist/esm/components/header/PrimaryControls.js.map +7 -0
- package/dist/esm/components/header/addOptionalHeaderComponents.js +29 -0
- package/dist/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/dist/esm/components/index.js +14 -0
- package/dist/esm/components/index.js.map +7 -0
- package/dist/esm/components/renderers/defaultClassedRenderers.js +41 -0
- package/dist/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/dist/esm/components/renderers/index.js +29 -0
- package/dist/esm/components/renderers/index.js.map +7 -0
- package/dist/esm/components/renderers/renderRowsLoader.js +10 -0
- package/dist/esm/components/renderers/renderRowsLoader.js.map +7 -0
- package/dist/esm/components/tableContext.js +7 -0
- package/dist/esm/components/tableContext.js.map +7 -0
- package/dist/esm/defaultPlugins.js +15 -0
- package/dist/esm/defaultPlugins.js.map +7 -0
- package/dist/esm/index.js +63 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +151 -0
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/dist/esm/plugins/body-header-scroll-sync/index.js +6 -0
- package/dist/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +141 -0
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +20 -0
- package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/dist/esm/plugins/column-dnd/index.js +6 -0
- package/dist/esm/plugins/column-dnd/index.js.map +7 -0
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +63 -0
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +58 -0
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +15 -0
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +53 -0
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -0
- package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/dist/esm/plugins/column-sizing/index.js +6 -0
- package/dist/esm/plugins/column-sizing/index.js.map +7 -0
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js +138 -0
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +138 -0
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/dist/esm/plugins/column-sizing/utils.js +39 -0
- package/dist/esm/plugins/column-sizing/utils.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +11 -0
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +67 -0
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +59 -0
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/index.js +6 -0
- package/dist/esm/plugins/custom-cell-renderer/index.js.map +7 -0
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +57 -0
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js +80 -0
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/dist/esm/plugins/editable/EditableComponents/index.js +8 -0
- package/dist/esm/plugins/editable/EditableComponents/index.js.map +7 -0
- package/dist/esm/plugins/editable/EditablePlugin.js +79 -0
- package/dist/esm/plugins/editable/EditablePlugin.js.map +7 -0
- package/dist/esm/plugins/editable/decorateEditable.js +84 -0
- package/dist/esm/plugins/editable/decorateEditable.js.map +7 -0
- package/dist/esm/plugins/editable/getEditorComponent.js +72 -0
- package/dist/esm/plugins/editable/getEditorComponent.js.map +7 -0
- package/dist/esm/plugins/editable/index.js +9 -0
- package/dist/esm/plugins/editable/index.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +136 -0
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +178 -0
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js +132 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +45 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/index.js +8 -0
- package/dist/esm/plugins/expandable-grid/index.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js +64 -0
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/dist/esm/plugins/export-data/ExportDataPlugin.js +118 -0
- package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/dist/esm/plugins/export-data/index.js +6 -0
- package/dist/esm/plugins/export-data/index.js.map +7 -0
- package/dist/esm/plugins/filterable/FilterablePlugin.js +51 -0
- package/dist/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/dist/esm/plugins/filterable/addFilterToColumn.js +33 -0
- package/dist/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/dist/esm/plugins/filterable/components/FilterableHeader.js +118 -0
- package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +128 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +102 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +176 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +169 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +20 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/dist/esm/plugins/filterable/filterableFormatter.js +44 -0
- package/dist/esm/plugins/filterable/filterableFormatter.js.map +7 -0
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +67 -0
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +15 -0
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/dist/esm/plugins/filterable/helper.js +104 -0
- package/dist/esm/plugins/filterable/helper.js.map +7 -0
- package/dist/esm/plugins/filterable/index.js +6 -0
- package/dist/esm/plugins/filterable/index.js.map +7 -0
- package/dist/esm/plugins/filterable/useFilterableState.js +104 -0
- package/dist/esm/plugins/filterable/useFilterableState.js.map +7 -0
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +28 -0
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +119 -0
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/dist/esm/plugins/grouping-grid/walkStrategy.js +47 -0
- package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/dist/esm/plugins/index.js +39 -0
- package/dist/esm/plugins/index.js.map +7 -0
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +102 -0
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/dist/esm/plugins/infinite-scrolling/index.js +6 -0
- package/dist/esm/plugins/infinite-scrolling/index.js.map +7 -0
- package/dist/esm/plugins/pagination/PaginationPlugin.js +101 -0
- package/dist/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/dist/esm/plugins/pagination/components/Pagination.js +34 -0
- package/dist/esm/plugins/pagination/components/Pagination.js.map +7 -0
- package/dist/esm/plugins/pagination/components/Paginator.js +53 -0
- package/dist/esm/plugins/pagination/components/Paginator.js.map +7 -0
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js +68 -0
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/dist/esm/plugins/pagination/helper.js +33 -0
- package/dist/esm/plugins/pagination/helper.js.map +7 -0
- package/dist/esm/plugins/pagination/index.js +6 -0
- package/dist/esm/plugins/pagination/index.js.map +7 -0
- package/dist/esm/plugins/pagination/usePaginationState.js +71 -0
- package/dist/esm/plugins/pagination/usePaginationState.js.map +7 -0
- package/dist/esm/plugins/resizable/ResizablePlugin.js +80 -0
- package/dist/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/dist/esm/plugins/resizable/decorateResizable.js +45 -0
- package/dist/esm/plugins/resizable/decorateResizable.js.map +7 -0
- package/dist/esm/plugins/resizable/index.js +6 -0
- package/dist/esm/plugins/resizable/index.js.map +7 -0
- package/dist/esm/plugins/resizable/useResizeHandle.js +50 -0
- package/dist/esm/plugins/resizable/useResizeHandle.js.map +7 -0
- package/dist/esm/plugins/resizable/utils.js +25 -0
- package/dist/esm/plugins/resizable/utils.js.map +7 -0
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +121 -0
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/dist/esm/plugins/row-dnd/index.js +6 -0
- package/dist/esm/plugins/row-dnd/index.js.map +7 -0
- package/dist/esm/plugins/selectable/SelectablePlugin.js +137 -0
- package/dist/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/dist/esm/plugins/selectable/addSelectableColumn.js +105 -0
- package/dist/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/dist/esm/plugins/selectable/helper.js +43 -0
- package/dist/esm/plugins/selectable/helper.js.map +7 -0
- package/dist/esm/plugins/selectable/index.js +6 -0
- package/dist/esm/plugins/selectable/index.js.map +7 -0
- package/dist/esm/plugins/selectable/selectableFormatter.js +83 -0
- package/dist/esm/plugins/selectable/selectableFormatter.js.map +7 -0
- package/dist/esm/plugins/selectable/useSelectableState.js +107 -0
- package/dist/esm/plugins/selectable/useSelectableState.js.map +7 -0
- package/dist/esm/plugins/sortable/SortablePlugin.js +69 -0
- package/dist/esm/plugins/sortable/SortablePlugin.js.map +7 -0
- package/dist/esm/plugins/sortable/checkIfSortable.js +16 -0
- package/dist/esm/plugins/sortable/checkIfSortable.js.map +7 -0
- package/dist/esm/plugins/sortable/index.js +6 -0
- package/dist/esm/plugins/sortable/index.js.map +7 -0
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js +37 -0
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/dist/esm/plugins/sortable/sortTree.js +33 -0
- package/dist/esm/plugins/sortable/sortTree.js.map +7 -0
- package/dist/esm/plugins/sortable/sorter.js +127 -0
- package/dist/esm/plugins/sortable/sorter.js.map +7 -0
- package/dist/esm/plugins/sortable/useSortableState.js +62 -0
- package/dist/esm/plugins/sortable/useSortableState.js.map +7 -0
- package/dist/esm/plugins/toolbar/RowRenderer.js +83 -0
- package/dist/esm/plugins/toolbar/RowRenderer.js.map +7 -0
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js +29 -0
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js +94 -0
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/dist/esm/plugins/toolbar/index.js +6 -0
- package/dist/esm/plugins/toolbar/index.js.map +7 -0
- package/dist/esm/plugins/virtualization/AutoHeightList.js +81 -0
- package/dist/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +84 -0
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/dist/esm/plugins/virtualization/VirtualizedBody.js +247 -0
- package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +23 -0
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/dist/esm/plugins/virtualization/helper.js +6 -0
- package/dist/esm/plugins/virtualization/helper.js.map +7 -0
- package/dist/esm/plugins/virtualization/index.js +6 -0
- package/dist/esm/plugins/virtualization/index.js.map +7 -0
- package/dist/esm/renders/CellWithAddons.js +82 -0
- package/dist/esm/renders/CellWithAddons.js.map +7 -0
- package/dist/esm/renders/index.js +8 -0
- package/dist/esm/renders/index.js.map +7 -0
- package/dist/esm/renders/styled.js +49 -0
- package/dist/esm/renders/styled.js.map +7 -0
- package/dist/esm/rowSizes.js +22 -0
- package/dist/esm/rowSizes.js.map +7 -0
- package/dist/esm/utilities/DataGridUtilities.json +1315 -0
- package/dist/esm/utilities/getPluginsFromProps.js +43 -0
- package/dist/esm/utilities/getPluginsFromProps.js.map +7 -0
- package/dist/esm/utilities/getScrollbarSize.js +17 -0
- package/dist/esm/utilities/getScrollbarSize.js.map +7 -0
- package/dist/esm/utilities/normalizeData.js +38 -0
- package/dist/esm/utilities/normalizeData.js.map +7 -0
- package/package.json +296 -288
- package/cjs/DSDataGrid.js +0 -639
- package/cjs/DataGridImpl.js +0 -169
- package/cjs/PaginatedDataGrid.js +0 -77
- package/cjs/blockNames.js +0 -11
- package/cjs/columns/IconColumn.js +0 -95
- package/cjs/columns/NumberColumn.js +0 -6
- package/cjs/components/BodyCell.js +0 -101
- package/cjs/components/BodyList.js +0 -54
- package/cjs/components/ColumnVisibilityMenuOption.js +0 -44
- package/cjs/components/ColumnsOptionsMenuSection.js +0 -49
- package/cjs/components/EmptyState.js +0 -51
- package/cjs/components/HeaderCell.js +0 -70
- package/cjs/components/List.js +0 -32
- package/cjs/components/ListItem.js +0 -44
- package/cjs/components/NoResults.js +0 -51
- package/cjs/components/RowsLoader.js +0 -22
- package/cjs/components/Table.js +0 -122
- package/cjs/components/TableBody.js +0 -69
- package/cjs/components/TableHeader.js +0 -37
- package/cjs/components/footer/addOptionalFooterComponents.js +0 -46
- package/cjs/components/header/PrimaryControls.js +0 -36
- package/cjs/components/header/addOptionalHeaderComponents.js +0 -47
- package/cjs/components/index.js +0 -17
- package/cjs/components/renderers/defaultClassedRenderers.js +0 -59
- package/cjs/components/renderers/index.js +0 -23
- package/cjs/components/renderers/renderRowsLoader.js +0 -18
- package/cjs/components/tableContext.js +0 -13
- package/cjs/defaultPlugins.js +0 -12
- package/cjs/index.js +0 -67
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -143
- package/cjs/plugins/body-header-scroll-sync/index.js +0 -9
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -134
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -30
- package/cjs/plugins/column-dnd/index.js +0 -9
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -88
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -74
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -17
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -63
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -9
- package/cjs/plugins/column-sizing/index.js +0 -9
- package/cjs/plugins/column-sizing/useColumnSizeService.js +0 -162
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -270
- package/cjs/plugins/column-sizing/utils.js +0 -45
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -18
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -72
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -65
- package/cjs/plugins/custom-cell-renderer/index.js +0 -9
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -71
- package/cjs/plugins/editable/EditableComponents/TextBox.js +0 -110
- package/cjs/plugins/editable/EditableComponents/index.js +0 -11
- package/cjs/plugins/editable/EditablePlugin.js +0 -123
- package/cjs/plugins/editable/decorateEditable.js +0 -122
- package/cjs/plugins/editable/getEditorComponent.js +0 -82
- package/cjs/plugins/editable/index.js +0 -13
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -156
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -243
- package/cjs/plugins/expandable-grid/ExpandedRow.js +0 -156
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -54
- package/cjs/plugins/expandable-grid/index.js +0 -11
- package/cjs/plugins/expandable-grid/useExpandGridState.js +0 -79
- package/cjs/plugins/export-data/ExportDataPlugin.js +0 -168
- package/cjs/plugins/export-data/index.js +0 -12
- package/cjs/plugins/filterable/FilterablePlugin.js +0 -81
- package/cjs/plugins/filterable/addFilterToColumn.js +0 -31
- package/cjs/plugins/filterable/components/FilterableHeader.js +0 -120
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -157
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -107
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -195
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -174
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -7
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
- package/cjs/plugins/filterable/filterableFormatter.js +0 -63
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -74
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -23
- package/cjs/plugins/filterable/helper.js +0 -120
- package/cjs/plugins/filterable/index.js +0 -9
- package/cjs/plugins/filterable/useFilterableState.js +0 -117
- package/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -40
- package/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -149
- package/cjs/plugins/grouping-grid/walkStrategy.js +0 -56
- package/cjs/plugins/index.js +0 -48
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -124
- package/cjs/plugins/infinite-scrolling/index.js +0 -9
- package/cjs/plugins/pagination/PaginationPlugin.js +0 -109
- package/cjs/plugins/pagination/components/Pagination.js +0 -44
- package/cjs/plugins/pagination/components/Paginator.js +0 -67
- package/cjs/plugins/pagination/components/PerPageDropdown.js +0 -80
- package/cjs/plugins/pagination/helper.js +0 -41
- package/cjs/plugins/pagination/index.js +0 -9
- package/cjs/plugins/pagination/usePaginationState.js +0 -74
- package/cjs/plugins/resizable/ResizablePlugin.js +0 -113
- package/cjs/plugins/resizable/decorateResizable.js +0 -60
- package/cjs/plugins/resizable/index.js +0 -9
- package/cjs/plugins/resizable/useResizeHandle.js +0 -73
- package/cjs/plugins/resizable/utils.js +0 -33
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -115
- package/cjs/plugins/row-dnd/index.js +0 -9
- package/cjs/plugins/selectable/SelectablePlugin.js +0 -199
- package/cjs/plugins/selectable/addSelectableColumn.js +0 -93
- package/cjs/plugins/selectable/helper.js +0 -43
- package/cjs/plugins/selectable/index.js +0 -9
- package/cjs/plugins/selectable/selectableFormatter.js +0 -115
- package/cjs/plugins/selectable/useSelectableState.js +0 -143
- package/cjs/plugins/sortable/SortablePlugin.js +0 -109
- package/cjs/plugins/sortable/checkIfSortable.js +0 -22
- package/cjs/plugins/sortable/index.js +0 -9
- package/cjs/plugins/sortable/sortHeaderFormatter.js +0 -60
- package/cjs/plugins/sortable/sortTree.js +0 -51
- package/cjs/plugins/sortable/sorter.js +0 -176
- package/cjs/plugins/sortable/useSortableState.js +0 -99
- package/cjs/plugins/toolbar/RowRenderer.js +0 -97
- package/cjs/plugins/toolbar/ToolbarPlugin.js +0 -42
- package/cjs/plugins/toolbar/ToolbarTrigger.js +0 -86
- package/cjs/plugins/toolbar/index.js +0 -9
- package/cjs/plugins/virtualization/AutoHeightList.js +0 -59
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -108
- package/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -30
- package/cjs/plugins/virtualization/helper.js +0 -7
- package/cjs/plugins/virtualization/index.js +0 -9
- package/cjs/renders/CellWithAddons.js +0 -63
- package/cjs/renders/index.js +0 -11
- package/cjs/renders/styled.js +0 -27
- package/cjs/rowSizes.js +0 -19
- package/cjs/utilities/getPluginsFromProps.js +0 -44
- package/cjs/utilities/getScrollbarSize.js +0 -27
- package/cjs/utilities/normalizeData.js +0 -39
- package/esm/DSDataGrid.js +0 -630
- package/esm/DataGridImpl.js +0 -160
- package/esm/PaginatedDataGrid.js +0 -68
- package/esm/blockNames.js +0 -5
- package/esm/columns/IconColumn.js +0 -87
- package/esm/columns/NumberColumn.js +0 -4
- package/esm/components/BodyCell.js +0 -92
- package/esm/components/BodyList.js +0 -45
- package/esm/components/ColumnVisibilityMenuOption.js +0 -40
- package/esm/components/ColumnsOptionsMenuSection.js +0 -43
- package/esm/components/EmptyState.js +0 -41
- package/esm/components/HeaderCell.js +0 -62
- package/esm/components/List.js +0 -26
- package/esm/components/ListItem.js +0 -38
- package/esm/components/NoResults.js +0 -43
- package/esm/components/RowsLoader.js +0 -15
- package/esm/components/Table.js +0 -115
- package/esm/components/TableBody.js +0 -61
- package/esm/components/TableHeader.js +0 -31
- package/esm/components/footer/addOptionalFooterComponents.js +0 -40
- package/esm/components/header/PrimaryControls.js +0 -30
- package/esm/components/header/addOptionalHeaderComponents.js +0 -40
- package/esm/components/index.js +0 -5
- package/esm/components/renderers/defaultClassedRenderers.js +0 -46
- package/esm/components/renderers/index.js +0 -18
- package/esm/components/renderers/renderRowsLoader.js +0 -10
- package/esm/components/tableContext.js +0 -5
- package/esm/defaultPlugins.js +0 -8
- package/esm/index.js +0 -27
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -132
- package/esm/plugins/body-header-scroll-sync/index.js +0 -1
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -125
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -22
- package/esm/plugins/column-dnd/index.js +0 -1
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -80
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -66
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -13
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -55
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -7
- package/esm/plugins/column-sizing/index.js +0 -1
- package/esm/plugins/column-sizing/useColumnSizeService.js +0 -156
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -245
- package/esm/plugins/column-sizing/utils.js +0 -37
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -10
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -63
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -56
- package/esm/plugins/custom-cell-renderer/index.js +0 -1
- package/esm/plugins/editable/EditableComponents/ComboBox.js +0 -65
- package/esm/plugins/editable/EditableComponents/TextBox.js +0 -103
- package/esm/plugins/editable/EditableComponents/index.js +0 -2
- package/esm/plugins/editable/EditablePlugin.js +0 -115
- package/esm/plugins/editable/decorateEditable.js +0 -92
- package/esm/plugins/editable/getEditorComponent.js +0 -74
- package/esm/plugins/editable/index.js +0 -3
- package/esm/plugins/expandable-grid/ExpandableColumn.js +0 -146
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -231
- package/esm/plugins/expandable-grid/ExpandedRow.js +0 -143
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -46
- package/esm/plugins/expandable-grid/index.js +0 -2
- package/esm/plugins/expandable-grid/useExpandGridState.js +0 -75
- package/esm/plugins/export-data/ExportDataPlugin.js +0 -156
- package/esm/plugins/export-data/index.js +0 -1
- package/esm/plugins/filterable/FilterablePlugin.js +0 -73
- package/esm/plugins/filterable/addFilterToColumn.js +0 -23
- package/esm/plugins/filterable/components/FilterableHeader.js +0 -113
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -148
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -97
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -184
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -163
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -3
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -16
- package/esm/plugins/filterable/filterableFormatter.js +0 -57
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -65
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -17
- package/esm/plugins/filterable/helper.js +0 -106
- package/esm/plugins/filterable/index.js +0 -1
- package/esm/plugins/filterable/useFilterableState.js +0 -109
- package/esm/plugins/grouping-by/GroupingByPlugin.js +0 -32
- package/esm/plugins/grouping-grid/GroupingPlugin.js +0 -138
- package/esm/plugins/grouping-grid/walkStrategy.js +0 -52
- package/esm/plugins/index.js +0 -19
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -114
- package/esm/plugins/infinite-scrolling/index.js +0 -1
- package/esm/plugins/pagination/PaginationPlugin.js +0 -96
- package/esm/plugins/pagination/components/Pagination.js +0 -36
- package/esm/plugins/pagination/components/Paginator.js +0 -59
- package/esm/plugins/pagination/components/PerPageDropdown.js +0 -71
- package/esm/plugins/pagination/helper.js +0 -36
- package/esm/plugins/pagination/index.js +0 -1
- package/esm/plugins/pagination/usePaginationState.js +0 -66
- package/esm/plugins/resizable/ResizablePlugin.js +0 -105
- package/esm/plugins/resizable/decorateResizable.js +0 -49
- package/esm/plugins/resizable/index.js +0 -1
- package/esm/plugins/resizable/useResizeHandle.js +0 -65
- package/esm/plugins/resizable/utils.js +0 -23
- package/esm/plugins/row-dnd/DndRowsPlugin.js +0 -105
- package/esm/plugins/row-dnd/index.js +0 -1
- package/esm/plugins/selectable/SelectablePlugin.js +0 -190
- package/esm/plugins/selectable/addSelectableColumn.js +0 -84
- package/esm/plugins/selectable/helper.js +0 -31
- package/esm/plugins/selectable/index.js +0 -1
- package/esm/plugins/selectable/selectableFormatter.js +0 -107
- package/esm/plugins/selectable/useSelectableState.js +0 -135
- package/esm/plugins/sortable/SortablePlugin.js +0 -82
- package/esm/plugins/sortable/checkIfSortable.js +0 -17
- package/esm/plugins/sortable/index.js +0 -1
- package/esm/plugins/sortable/sortHeaderFormatter.js +0 -53
- package/esm/plugins/sortable/sortTree.js +0 -26
- package/esm/plugins/sortable/sorter.js +0 -166
- package/esm/plugins/sortable/useSortableState.js +0 -71
- package/esm/plugins/toolbar/RowRenderer.js +0 -88
- package/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
- package/esm/plugins/toolbar/ToolbarTrigger.js +0 -74
- package/esm/plugins/toolbar/index.js +0 -1
- package/esm/plugins/virtualization/AutoHeightList.js +0 -52
- package/esm/plugins/virtualization/VirtualizationPlugin.js +0 -97
- package/esm/plugins/virtualization/VirtualizedBody.js +0 -268
- package/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
- package/esm/plugins/virtualization/helper.js +0 -3
- package/esm/plugins/virtualization/index.js +0 -1
- package/esm/renders/CellWithAddons.js +0 -53
- package/esm/renders/index.js +0 -2
- package/esm/renders/styled.js +0 -16
- package/esm/rowSizes.js +0 -13
- package/esm/utilities/getPluginsFromProps.js +0 -42
- package/esm/utilities/getScrollbarSize.js +0 -23
- package/esm/utilities/normalizeData.js +0 -29
- package/types/DSDataGrid.d.ts +0 -977
- package/types/DataGridImpl.d.ts +0 -12
- package/types/PaginatedDataGrid.d.ts +0 -16
- package/types/blockNames.d.ts +0 -4
- package/types/columns/IconColumn.d.ts +0 -35
- package/types/columns/NumberColumn.d.ts +0 -4
- package/types/components/BodyCell.d.ts +0 -33
- package/types/components/BodyList.d.ts +0 -12
- package/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
- package/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
- package/types/components/EmptyState.d.ts +0 -7
- package/types/components/HeaderCell.d.ts +0 -19
- package/types/components/List.d.ts +0 -3
- package/types/components/ListItem.d.ts +0 -3
- package/types/components/NoResults.d.ts +0 -8
- package/types/components/RowsLoader.d.ts +0 -5
- package/types/components/Table.d.ts +0 -13
- package/types/components/TableBody.d.ts +0 -9
- package/types/components/TableHeader.d.ts +0 -3
- package/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
- package/types/components/header/PrimaryControls.d.ts +0 -5
- package/types/components/header/addOptionalHeaderComponents.d.ts +0 -11
- package/types/components/index.d.ts +0 -5
- package/types/components/renderers/defaultClassedRenderers.d.ts +0 -11
- package/types/components/renderers/index.d.ts +0 -15
- package/types/components/renderers/renderRowsLoader.d.ts +0 -2
- package/types/components/tableContext.d.ts +0 -2
- package/types/components/tests/ColumnVisibilityMenu.test.d.ts +0 -1
- package/types/defaultPlugins.d.ts +0 -1
- package/types/index.d.ts +0 -10
- package/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -1
- package/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
- package/types/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -1
- package/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -2
- package/types/plugins/column-dnd/index.d.ts +0 -1
- package/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -1
- package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -6
- package/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -1
- package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -10
- package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -1
- package/types/plugins/column-sizing/index.d.ts +0 -1
- package/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -17
- package/types/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -22
- package/types/plugins/column-sizing/utils.d.ts +0 -5
- package/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -1
- package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -3
- package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
- package/types/plugins/custom-cell-renderer/index.d.ts +0 -1
- package/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -10
- package/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -22
- package/types/plugins/editable/EditableComponents/index.d.ts +0 -2
- package/types/plugins/editable/EditablePlugin.d.ts +0 -1
- package/types/plugins/editable/decorateEditable.d.ts +0 -7
- package/types/plugins/editable/getEditorComponent.d.ts +0 -6
- package/types/plugins/editable/index.d.ts +0 -2
- package/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
- package/types/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -1
- package/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
- package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
- package/types/plugins/expandable-grid/index.d.ts +0 -2
- package/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -1
- package/types/plugins/expandable-grid/useExpandGridState.d.ts +0 -14
- package/types/plugins/export-data/ExportDataPlugin.d.ts +0 -4
- package/types/plugins/export-data/index.d.ts +0 -1
- package/types/plugins/filterable/FilterablePlugin.d.ts +0 -1
- package/types/plugins/filterable/addFilterToColumn.d.ts +0 -1
- package/types/plugins/filterable/components/FilterableHeader.d.ts +0 -29
- package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
- package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
- package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -30
- package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
- package/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -1
- package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -1
- package/types/plugins/filterable/filterableFormatter.d.ts +0 -11
- package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -2
- package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
- package/types/plugins/filterable/helper.d.ts +0 -22
- package/types/plugins/filterable/index.d.ts +0 -1
- package/types/plugins/filterable/useFilterableState.d.ts +0 -18
- package/types/plugins/grouping-by/GroupingByPlugin.d.ts +0 -1
- package/types/plugins/grouping-grid/GroupingPlugin.d.ts +0 -1
- package/types/plugins/grouping-grid/walkStrategy.d.ts +0 -9
- package/types/plugins/index.d.ts +0 -16
- package/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -1
- package/types/plugins/infinite-scrolling/index.d.ts +0 -1
- package/types/plugins/pagination/PaginationPlugin.d.ts +0 -1
- package/types/plugins/pagination/components/Pagination.d.ts +0 -11
- package/types/plugins/pagination/components/Paginator.d.ts +0 -9
- package/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
- package/types/plugins/pagination/helper.d.ts +0 -17
- package/types/plugins/pagination/index.d.ts +0 -1
- package/types/plugins/pagination/usePaginationState.d.ts +0 -9
- package/types/plugins/resizable/ResizablePlugin.d.ts +0 -1
- package/types/plugins/resizable/decorateResizable.d.ts +0 -4
- package/types/plugins/resizable/index.d.ts +0 -1
- package/types/plugins/resizable/useResizeHandle.d.ts +0 -13
- package/types/plugins/resizable/utils.d.ts +0 -3
- package/types/plugins/row-dnd/DndRowsPlugin.d.ts +0 -1
- package/types/plugins/row-dnd/index.d.ts +0 -1
- package/types/plugins/selectable/SelectablePlugin.d.ts +0 -1
- package/types/plugins/selectable/addSelectableColumn.d.ts +0 -30
- package/types/plugins/selectable/helper.d.ts +0 -5
- package/types/plugins/selectable/index.d.ts +0 -1
- package/types/plugins/selectable/selectableFormatter.d.ts +0 -9
- package/types/plugins/selectable/useSelectableState.d.ts +0 -9
- package/types/plugins/sortable/SortablePlugin.d.ts +0 -1
- package/types/plugins/sortable/checkIfSortable.d.ts +0 -2
- package/types/plugins/sortable/index.d.ts +0 -1
- package/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
- package/types/plugins/sortable/sortTree.d.ts +0 -2
- package/types/plugins/sortable/sorter.d.ts +0 -12
- package/types/plugins/sortable/useSortableState.d.ts +0 -8
- package/types/plugins/toolbar/RowRenderer.d.ts +0 -11
- package/types/plugins/toolbar/ToolbarPlugin.d.ts +0 -1
- package/types/plugins/toolbar/ToolbarTrigger.d.ts +0 -8
- package/types/plugins/toolbar/index.d.ts +0 -1
- package/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
- package/types/plugins/virtualization/VirtualizationPlugin.d.ts +0 -1
- package/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
- package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
- package/types/plugins/virtualization/helper.d.ts +0 -1
- package/types/plugins/virtualization/index.d.ts +0 -1
- package/types/renders/CellWithAddons.d.ts +0 -52
- package/types/renders/index.d.ts +0 -2
- package/types/renders/styled.d.ts +0 -3
- package/types/rowSizes.d.ts +0 -11
- package/types/stories/datagrids-export.stories.d.ts +0 -1
- package/types/stories/datagrids-selectable-multi.stories.d.ts +0 -1
- package/types/tests/DataGrid-Columns.test.d.ts +0 -1
- package/types/tests/DataGrid-Editable.test.d.ts +0 -1
- package/types/tests/DataGrid-Export.test.d.ts +0 -1
- package/types/tests/DataGrid-Filter-helper.test.d.ts +0 -1
- package/types/tests/DataGrid-Filterable-Dates.test.d.ts +0 -1
- package/types/tests/DataGrid-Filterable-State.test.d.ts +0 -1
- package/types/tests/DataGrid-RowDnd.test.d.ts +0 -1
- package/types/tests/DataGrid-Selectable.test.d.ts +0 -1
- package/types/tests/DataGrid-Sortable.test.d.ts +0 -1
- package/types/tests/DataGrid-Toolbar.test.d.ts +0 -1
- package/types/tests/DataGrid-Virtualization.test.d.ts +0 -1
- package/types/tests/DataGrids-ColumnSizing.test.d.ts +0 -1
- package/types/tests/DataGrids-ConditionalPagination.test.d.ts +0 -1
- package/types/tests/DataGrids-Rows.test.d.ts +0 -1
- package/types/tests/DataGrids.test.d.ts +0 -1
- package/types/utilities/getPluginsFromProps.d.ts +0 -1
- package/types/utilities/getScrollbarSize.d.ts +0 -1
- package/types/utilities/normalizeData.d.ts +0 -3
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import React2, { useEffect, useState, useCallback, useRef, useLayoutEffect } from "react";
|
|
22
|
+
import PropTypes from "prop-types";
|
|
23
|
+
import { mergeRefs, debounce, isNaN } from "@elliemae/ds-utilities";
|
|
24
|
+
import { NoResults } from "../../components/NoResults";
|
|
25
|
+
import { VirtualizedBodyRow } from "./VirtualizedBodyRow";
|
|
26
|
+
import { RowSizes } from "../../rowSizes";
|
|
27
|
+
import { isSafari } from "./helper";
|
|
28
|
+
const wrapperSafari = {};
|
|
29
|
+
const wrapperGeneric = { overflowY: "auto", overflowX: "visible" };
|
|
30
|
+
const VirtualizedBody = (props) => {
|
|
31
|
+
const {
|
|
32
|
+
autoScrollToId,
|
|
33
|
+
columns,
|
|
34
|
+
component: Component,
|
|
35
|
+
expandable,
|
|
36
|
+
innerRef,
|
|
37
|
+
innerBody,
|
|
38
|
+
isPlaceholderActive,
|
|
39
|
+
listProps,
|
|
40
|
+
noResultsPlaceholder,
|
|
41
|
+
overscanCount,
|
|
42
|
+
rows,
|
|
43
|
+
rowHeight: defaultRowHeight,
|
|
44
|
+
rowKey,
|
|
45
|
+
rowRenderer,
|
|
46
|
+
rowSize,
|
|
47
|
+
setHasScroll,
|
|
48
|
+
filters
|
|
49
|
+
} = props;
|
|
50
|
+
const rowHeight = defaultRowHeight || RowSizes[rowSize];
|
|
51
|
+
const [scrollTop, setScrollTop] = useState(0);
|
|
52
|
+
const [visibleHeight, setVisibleHeight] = useState(0);
|
|
53
|
+
const [hasScrollBar, setHasScrollBar] = useState(false);
|
|
54
|
+
const rowStyleCache = useRef({});
|
|
55
|
+
const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);
|
|
56
|
+
const getCalculatedHeightBetweenIndexes = (start, end) => {
|
|
57
|
+
const { itemSize = () => rowHeight } = listProps;
|
|
58
|
+
if (expandable) {
|
|
59
|
+
return rows.slice(start, end).map((_, idx) => idx).map((idx) => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
|
|
60
|
+
}
|
|
61
|
+
return (end - start) * rowHeight;
|
|
62
|
+
};
|
|
63
|
+
const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));
|
|
64
|
+
const rowPositionMap = useRef(generateRowPositionMap());
|
|
65
|
+
const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);
|
|
66
|
+
const handlerRef = useRef();
|
|
67
|
+
const autoScrollTo = useCallback((scrollHeight) => {
|
|
68
|
+
const { itemSize = () => rowHeight } = listProps;
|
|
69
|
+
const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);
|
|
70
|
+
let val = rowPositionMap.current[idx] || 0;
|
|
71
|
+
const lastPositionIdx = rowPositionMap.current.length - 1;
|
|
72
|
+
let lastPosition = 0;
|
|
73
|
+
if (lastPositionIdx > -1) {
|
|
74
|
+
lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);
|
|
75
|
+
}
|
|
76
|
+
if (lastPosition < val) {
|
|
77
|
+
val = lastPosition;
|
|
78
|
+
}
|
|
79
|
+
if (virtualizedBodyRef) {
|
|
80
|
+
if (idx > -1) {
|
|
81
|
+
setScrollTop(val);
|
|
82
|
+
virtualizedBodyRef.scrollTop = val;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, [rows, virtualizedBodyRef]);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
autoScrollTo(visibleHeight);
|
|
88
|
+
}, [autoScrollToId, visibleHeight]);
|
|
89
|
+
const handler = useCallback(debounce(({ target }) => {
|
|
90
|
+
setScrollTop(target.scrollTop || 0);
|
|
91
|
+
}, 100), [setScrollTop]);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
setScrollTop(0);
|
|
94
|
+
}, [filters]);
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
handlerRef.current = handler;
|
|
97
|
+
}, [handler]);
|
|
98
|
+
useLayoutEffect(() => {
|
|
99
|
+
let top = Math.ceil(scrollTop / rowHeight);
|
|
100
|
+
let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);
|
|
101
|
+
if (expandable) {
|
|
102
|
+
rowPositionMap.current = generateRowPositionMap();
|
|
103
|
+
top = rowPositionMap.current.findIndex((item) => item > scrollTop);
|
|
104
|
+
bot = rowPositionMap.current.findIndex((item) => item > scrollTop + visibleHeight);
|
|
105
|
+
if (bot === -1)
|
|
106
|
+
bot = rowPositionMap.current.length;
|
|
107
|
+
}
|
|
108
|
+
let upperBound = top - 1 - overscanCount;
|
|
109
|
+
let lowerBound = bot - 1 + overscanCount;
|
|
110
|
+
if (upperBound < 0) {
|
|
111
|
+
upperBound = 0;
|
|
112
|
+
}
|
|
113
|
+
if (lowerBound - upperBound < overscanCount) {
|
|
114
|
+
lowerBound = upperBound + overscanCount;
|
|
115
|
+
}
|
|
116
|
+
if (lowerBound > rows.length) {
|
|
117
|
+
lowerBound = rows.length;
|
|
118
|
+
}
|
|
119
|
+
setHasScrollBar(visibleHeight < getHeight());
|
|
120
|
+
setHasScroll(visibleHeight < getHeight());
|
|
121
|
+
setRenderedIndexes([upperBound, lowerBound]);
|
|
122
|
+
}, [visibleHeight, scrollTop, rows]);
|
|
123
|
+
useLayoutEffect(() => {
|
|
124
|
+
if (virtualizedBodyRef) {
|
|
125
|
+
const parsedVisibleHeight = parseFloat(window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue("height"));
|
|
126
|
+
if (!isNaN(parsedVisibleHeight)) {
|
|
127
|
+
setVisibleHeight(parsedVisibleHeight);
|
|
128
|
+
autoScrollTo(parsedVisibleHeight);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}, [rows, virtualizedBodyRef]);
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (virtualizedBodyRef) {
|
|
134
|
+
const eventListener = (event) => handlerRef.current(event);
|
|
135
|
+
virtualizedBodyRef.addEventListener("scroll", eventListener);
|
|
136
|
+
return () => {
|
|
137
|
+
virtualizedBodyRef.removeEventListener("scroll", eventListener);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
return () => null;
|
|
141
|
+
}, [virtualizedBodyRef]);
|
|
142
|
+
const getHeight = () => {
|
|
143
|
+
let returnHeight = 0;
|
|
144
|
+
if (expandable) {
|
|
145
|
+
returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;
|
|
146
|
+
} else {
|
|
147
|
+
returnHeight = rows.length * rowHeight + 8;
|
|
148
|
+
}
|
|
149
|
+
if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {
|
|
150
|
+
return returnHeight + 10;
|
|
151
|
+
}
|
|
152
|
+
return returnHeight;
|
|
153
|
+
};
|
|
154
|
+
const getRowStyle = (row, index, specificRowHeight) => {
|
|
155
|
+
const { itemSize } = listProps;
|
|
156
|
+
if (!expandable && rowStyleCache.current[index]) {
|
|
157
|
+
return rowStyleCache.current[index];
|
|
158
|
+
}
|
|
159
|
+
rowStyleCache.current[index] = {
|
|
160
|
+
height: itemSize ? itemSize(index) : specificRowHeight,
|
|
161
|
+
left: 0,
|
|
162
|
+
right: 0,
|
|
163
|
+
top: getCalculatedHeightBetweenIndexes(0, index),
|
|
164
|
+
position: "absolute"
|
|
165
|
+
};
|
|
166
|
+
return rowStyleCache.current[index];
|
|
167
|
+
};
|
|
168
|
+
const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /* @__PURE__ */ React2.createElement(VirtualizedBodyRow, {
|
|
169
|
+
data: {
|
|
170
|
+
rows,
|
|
171
|
+
columns,
|
|
172
|
+
rowKey,
|
|
173
|
+
renderer: { rowRenderer }
|
|
174
|
+
},
|
|
175
|
+
index: renderedIndexes[0] + index,
|
|
176
|
+
key: rows[renderedIndexes[0] + index][rowKey],
|
|
177
|
+
style: getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)
|
|
178
|
+
}));
|
|
179
|
+
const wrapperStyle = __spreadValues({
|
|
180
|
+
height: "100%"
|
|
181
|
+
}, isSafari ? wrapperSafari : wrapperGeneric);
|
|
182
|
+
const bodyStyle = {
|
|
183
|
+
height: getHeight(),
|
|
184
|
+
willChange: "transform",
|
|
185
|
+
backfaceVisibility: "hidden"
|
|
186
|
+
};
|
|
187
|
+
return /* @__PURE__ */ React2.createElement(Component, __spreadProps(__spreadValues({}, props), {
|
|
188
|
+
innerRef
|
|
189
|
+
}), !isPlaceholderActive ? /* @__PURE__ */ React2.createElement("div", {
|
|
190
|
+
className: "virtualized-body-wrapper",
|
|
191
|
+
style: wrapperStyle,
|
|
192
|
+
ref: (elem) => {
|
|
193
|
+
if (elem) {
|
|
194
|
+
if (isSafari) {
|
|
195
|
+
setVirtualizedBodyRef(elem.parentElement);
|
|
196
|
+
elem.parentElement.scrollTop = scrollTop;
|
|
197
|
+
mergeRefs(listProps.outerRef)(elem.parentElement);
|
|
198
|
+
} else {
|
|
199
|
+
setVirtualizedBodyRef(elem);
|
|
200
|
+
mergeRefs(listProps.outerRef)(elem);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}, /* @__PURE__ */ React2.createElement("div", {
|
|
205
|
+
"data-testid": "virtualized-body",
|
|
206
|
+
className: `virtualized-body${hasScrollBar ? " with-scrollbar" : ""}`,
|
|
207
|
+
style: bodyStyle,
|
|
208
|
+
ref: (r) => {
|
|
209
|
+
mergeRefs(innerBody)(r);
|
|
210
|
+
}
|
|
211
|
+
}, generateRenderedRows())) : /* @__PURE__ */ React2.createElement(NoResults, {
|
|
212
|
+
innerRef,
|
|
213
|
+
rowRenderer
|
|
214
|
+
}, noResultsPlaceholder));
|
|
215
|
+
};
|
|
216
|
+
VirtualizedBody.defaultProps = {
|
|
217
|
+
rows: [],
|
|
218
|
+
overscanCount: 10
|
|
219
|
+
};
|
|
220
|
+
VirtualizedBody.propTypes = {
|
|
221
|
+
autoScrollToId: PropTypes.number,
|
|
222
|
+
columns: PropTypes.arrayOf(PropTypes.shape({})),
|
|
223
|
+
component: PropTypes.element,
|
|
224
|
+
expandable: PropTypes.bool,
|
|
225
|
+
filters: PropTypes.any,
|
|
226
|
+
innerRef: PropTypes.any,
|
|
227
|
+
innerBody: PropTypes.any,
|
|
228
|
+
isPlaceholderActive: PropTypes.bool,
|
|
229
|
+
listProps: PropTypes.shape({
|
|
230
|
+
itemSize: PropTypes.func,
|
|
231
|
+
outerRef: PropTypes.any
|
|
232
|
+
}),
|
|
233
|
+
noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]),
|
|
234
|
+
overscanCount: PropTypes.number,
|
|
235
|
+
rows: PropTypes.arrayOf(PropTypes.shape({})),
|
|
236
|
+
rowHeight: PropTypes.number,
|
|
237
|
+
rowKey: PropTypes.string,
|
|
238
|
+
rowRenderer: PropTypes.element,
|
|
239
|
+
rowSize: PropTypes.any,
|
|
240
|
+
setHasScroll: PropTypes.func
|
|
241
|
+
};
|
|
242
|
+
var VirtualizedBody_default = VirtualizedBody;
|
|
243
|
+
export {
|
|
244
|
+
VirtualizedBody,
|
|
245
|
+
VirtualizedBody_default as default
|
|
246
|
+
};
|
|
247
|
+
//# sourceMappingURL=VirtualizedBody.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizedBody.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable max-statements */\nimport React, { useEffect, useState, useCallback, useRef, useLayoutEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { mergeRefs, debounce, isNaN } from '@elliemae/ds-utilities';\nimport { NoResults } from '../../components/NoResults';\nimport { VirtualizedBodyRow } from './VirtualizedBodyRow';\nimport { RowSizes } from '../../rowSizes';\nimport { isSafari } from './helper';\n\nconst wrapperSafari = {};\nconst wrapperGeneric = { overflowY: 'auto', overflowX: 'visible' };\n\nconst VirtualizedBody = (props) => {\n const {\n autoScrollToId,\n columns,\n component: Component,\n expandable,\n innerRef,\n innerBody,\n isPlaceholderActive,\n listProps,\n noResultsPlaceholder,\n overscanCount,\n rows,\n rowHeight: defaultRowHeight,\n rowKey,\n rowRenderer,\n rowSize,\n setHasScroll,\n filters, // hack to reset the scrollTop to 0 if filters change\n } = props;\n const rowHeight = defaultRowHeight || RowSizes[rowSize];\n const [scrollTop, setScrollTop] = useState(0);\n const [visibleHeight, setVisibleHeight] = useState(0);\n const [hasScrollBar, setHasScrollBar] = useState(false);\n const rowStyleCache = useRef({});\n const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);\n\n const getCalculatedHeightBetweenIndexes = (start, end) => {\n const { itemSize = () => rowHeight } = listProps;\n if (expandable) {\n return rows\n .slice(start, end)\n .map((_, idx) => idx)\n .map((idx) => itemSize(idx))\n .reduce((acc, curr) => acc + curr, 0);\n }\n return (end - start) * rowHeight;\n };\n\n const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));\n\n const rowPositionMap = useRef(generateRowPositionMap());\n const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);\n const handlerRef = useRef();\n\n const autoScrollTo = useCallback(\n (scrollHeight) => {\n const { itemSize = () => rowHeight } = listProps;\n const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);\n let val = rowPositionMap.current[idx] || 0;\n const lastPositionIdx = rowPositionMap.current.length - 1;\n let lastPosition = 0;\n if (lastPositionIdx > -1) {\n lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);\n }\n if (lastPosition < val) {\n val = lastPosition;\n }\n if (virtualizedBodyRef) {\n if (idx > -1) {\n setScrollTop(val);\n virtualizedBodyRef.scrollTop = val;\n }\n }\n },\n [rows, virtualizedBodyRef],\n );\n\n useEffect(() => {\n autoScrollTo(visibleHeight);\n }, [autoScrollToId, visibleHeight]);\n\n const handler = useCallback(\n debounce(({ target }) => {\n // Update coordinates\n setScrollTop(target.scrollTop || 0);\n }, 100),\n [setScrollTop],\n );\n\n useEffect(() => {\n setScrollTop(0);\n }, [filters]);\n\n useEffect(() => {\n handlerRef.current = handler;\n }, [handler]);\n\n useLayoutEffect(() => {\n let top = Math.ceil(scrollTop / rowHeight);\n let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);\n if (expandable) {\n // updateMapperFirst\n rowPositionMap.current = generateRowPositionMap();\n top = rowPositionMap.current.findIndex((item) => item > scrollTop);\n bot = rowPositionMap.current.findIndex((item) => item > scrollTop + visibleHeight);\n if (bot === -1) bot = rowPositionMap.current.length;\n }\n let upperBound = top - 1 - overscanCount;\n let lowerBound = bot - 1 + overscanCount;\n if (upperBound < 0) {\n upperBound = 0;\n }\n if (lowerBound - upperBound < overscanCount) {\n lowerBound = upperBound + overscanCount;\n }\n if (lowerBound > rows.length) {\n lowerBound = rows.length;\n }\n setHasScrollBar(visibleHeight < getHeight());\n setHasScroll(visibleHeight < getHeight());\n setRenderedIndexes([upperBound, lowerBound]);\n }, [visibleHeight, scrollTop, rows]);\n\n useLayoutEffect(() => {\n if (virtualizedBodyRef) {\n const parsedVisibleHeight = parseFloat(\n window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue('height'),\n );\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(parsedVisibleHeight)) {\n setVisibleHeight(parsedVisibleHeight);\n autoScrollTo(parsedVisibleHeight);\n }\n }\n }, [rows, virtualizedBodyRef]);\n\n useEffect(() => {\n if (virtualizedBodyRef) {\n const eventListener = (event) => handlerRef.current(event);\n virtualizedBodyRef.addEventListener('scroll', eventListener);\n\n return () => {\n virtualizedBodyRef.removeEventListener('scroll', eventListener);\n };\n }\n return () => null;\n }, [virtualizedBodyRef]);\n\n const getHeight = () => {\n let returnHeight = 0;\n if (expandable) {\n returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;\n } else {\n returnHeight = rows.length * rowHeight + 8;\n }\n // if (visibleHeight > returnHeight) {\n // return visibleHeight;\n // }\n if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {\n return returnHeight + 10;\n }\n return returnHeight;\n };\n\n const getRowStyle = (row, index, specificRowHeight) => {\n const { itemSize } = listProps;\n\n if (!expandable && rowStyleCache.current[index]) {\n return rowStyleCache.current[index];\n }\n rowStyleCache.current[index] = {\n height: itemSize ? itemSize(index) : specificRowHeight,\n left: 0,\n right: 0,\n top: getCalculatedHeightBetweenIndexes(0, index),\n position: 'absolute',\n };\n return rowStyleCache.current[index];\n };\n\n const generateRenderedRows = () =>\n rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => (\n <VirtualizedBodyRow\n data={{\n rows,\n columns,\n rowKey,\n renderer: { rowRenderer },\n }}\n index={renderedIndexes[0] + index}\n key={rows[renderedIndexes[0] + index][rowKey]}\n style={getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)}\n ></VirtualizedBodyRow>\n ));\n\n const wrapperStyle = {\n height: '100%',\n ...(isSafari ? wrapperSafari : wrapperGeneric),\n };\n const bodyStyle = {\n height: getHeight(),\n willChange: 'transform',\n backfaceVisibility: 'hidden',\n };\n\n return (\n <Component {...props} innerRef={innerRef}>\n {!isPlaceholderActive ? (\n <div\n className=\"virtualized-body-wrapper\"\n style={wrapperStyle}\n ref={(elem) => {\n if (elem) {\n if (isSafari) {\n setVirtualizedBodyRef(elem.parentElement);\n // eslint-disable-next-line no-param-reassign\n elem.parentElement.scrollTop = scrollTop;\n mergeRefs(listProps.outerRef)(elem.parentElement);\n } else {\n setVirtualizedBodyRef(elem);\n mergeRefs(listProps.outerRef)(elem);\n }\n }\n }}\n >\n <div\n data-testid=\"virtualized-body\"\n className={`virtualized-body${hasScrollBar ? ' with-scrollbar' : ''}`}\n style={bodyStyle}\n ref={(r) => {\n mergeRefs(innerBody)(r);\n }}\n >\n {generateRenderedRows()}\n </div>\n </div>\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n );\n};\n\nVirtualizedBody.defaultProps = {\n rows: [],\n overscanCount: 10,\n};\n\nVirtualizedBody.propTypes = {\n autoScrollToId: PropTypes.number,\n columns: PropTypes.arrayOf(PropTypes.shape({})),\n component: PropTypes.element,\n expandable: PropTypes.bool,\n filters: PropTypes.any,\n innerRef: PropTypes.any,\n innerBody: PropTypes.any,\n isPlaceholderActive: PropTypes.bool,\n listProps: PropTypes.shape({\n itemSize: PropTypes.func,\n outerRef: PropTypes.any,\n }),\n noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]),\n overscanCount: PropTypes.number,\n rows: PropTypes.arrayOf(PropTypes.shape({})),\n rowHeight: PropTypes.number,\n rowKey: PropTypes.string,\n rowRenderer: PropTypes.element,\n rowSize: PropTypes.any,\n setHasScroll: PropTypes.func,\n};\n\nexport { VirtualizedBody };\nexport default VirtualizedBody;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {
|
|
3
|
+
const {
|
|
4
|
+
rows,
|
|
5
|
+
renderer: { rowRenderer }
|
|
6
|
+
} = data;
|
|
7
|
+
const rowData = rows[index];
|
|
8
|
+
return rowRenderer(rowData, {
|
|
9
|
+
style,
|
|
10
|
+
index,
|
|
11
|
+
rowIndex: index,
|
|
12
|
+
key
|
|
13
|
+
}, {
|
|
14
|
+
rowIndex: index,
|
|
15
|
+
isScrolling
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
var VirtualizedBodyRow_default = VirtualizedBodyRow;
|
|
19
|
+
export {
|
|
20
|
+
VirtualizedBodyRow,
|
|
21
|
+
VirtualizedBodyRow_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=VirtualizedBodyRow.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizedBodyRow.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {\n const {\n rows,\n renderer: { rowRenderer },\n } = data;\n const rowData = rows[index];\n\n return rowRenderer(\n rowData,\n {\n style,\n index,\n rowIndex: index,\n key,\n },\n {\n // eslint-disable-next-line no-underscore-dangle\n rowIndex: index,\n isScrolling,\n },\n );\n};\n\nexport default VirtualizedBodyRow;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,qBAAqB,CAAC,EAAE,MAAM,OAAO,OAAO,KAAK,kBAAkB;AAC9E,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,EAAE;AAAA,MACV;AACJ,QAAM,UAAU,KAAK;AAErB,SAAO,YACL,SACA;AAAA,IACE;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,KAEF;AAAA,IAEE,UAAU;AAAA,IACV;AAAA;AAAA;AAKN,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const isSafari = navigator.vendor && navigator.vendor.indexOf("Apple") > -1 && navigator.userAgent && navigator.userAgent.indexOf("CriOS") === -1 && navigator.userAgent.indexOf("FxiOS") === -1;
|
|
3
|
+
export {
|
|
4
|
+
isSafari
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=helper.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/helper.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const isSafari =\n navigator.vendor &&\n navigator.vendor.indexOf('Apple') > -1 &&\n navigator.userAgent &&\n navigator.userAgent.indexOf('CriOS') === -1 &&\n navigator.userAgent.indexOf('FxiOS') === -1;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,WACX,UAAU,UACV,UAAU,OAAO,QAAQ,WAAW,MACpC,UAAU,aACV,UAAU,UAAU,QAAQ,aAAa,MACzC,UAAU,UAAU,QAAQ,aAAa;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { VirtualizationPlugin } from './VirtualizationPlugin';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { get } from "lodash";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
6
|
+
import { DSTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
|
|
7
|
+
import { CellWrapper, ValueWrapper } from "./styled";
|
|
8
|
+
const CellWithAddons = ({
|
|
9
|
+
leftAddon,
|
|
10
|
+
keepLeftPadding,
|
|
11
|
+
rightAddon,
|
|
12
|
+
badgeAddon,
|
|
13
|
+
highLight,
|
|
14
|
+
isEdit,
|
|
15
|
+
editComponent,
|
|
16
|
+
value,
|
|
17
|
+
neutralText,
|
|
18
|
+
metaData
|
|
19
|
+
}) => {
|
|
20
|
+
const hasLeftAddon = !!leftAddon || keepLeftPadding;
|
|
21
|
+
const hasRightAddon = !!rightAddon && !isEdit;
|
|
22
|
+
const cols = [1];
|
|
23
|
+
const shouldBeGray = neutralText || get(metaData, "rowData.customRowProps.neutralText");
|
|
24
|
+
if (hasLeftAddon)
|
|
25
|
+
cols.unshift("auto");
|
|
26
|
+
if (hasRightAddon)
|
|
27
|
+
cols.push("auto");
|
|
28
|
+
return /* @__PURE__ */ React2.createElement(CellWrapper, {
|
|
29
|
+
noPadding: hasLeftAddon || badgeAddon || highLight || hasRightAddon,
|
|
30
|
+
hasLeftAddon,
|
|
31
|
+
hasRightAddon,
|
|
32
|
+
badgeAddon,
|
|
33
|
+
highLight
|
|
34
|
+
}, /* @__PURE__ */ React2.createElement(Grid, {
|
|
35
|
+
height: "100%",
|
|
36
|
+
cols
|
|
37
|
+
}, hasLeftAddon && /* @__PURE__ */ React2.createElement(Grid, {
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
pl: "xxs",
|
|
40
|
+
pr: "xxs",
|
|
41
|
+
width: keepLeftPadding ? "32px" : void 0
|
|
42
|
+
}, hasLeftAddon && leftAddon), /* @__PURE__ */ React2.createElement(Grid, {
|
|
43
|
+
alignItems: "center"
|
|
44
|
+
}, /* @__PURE__ */ React2.createElement(ValueWrapper, {
|
|
45
|
+
grayText: shouldBeGray
|
|
46
|
+
}, isEdit ? editComponent : /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
|
|
47
|
+
value
|
|
48
|
+
}))), hasRightAddon && /* @__PURE__ */ React2.createElement(Grid, {
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
pl: "xxs"
|
|
51
|
+
}, rightAddon)));
|
|
52
|
+
};
|
|
53
|
+
CellWithAddons.propTypes = {
|
|
54
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
55
|
+
leftAddon: PropTypes.element,
|
|
56
|
+
keepLeftPadding: PropTypes.bool,
|
|
57
|
+
rightAddon: PropTypes.element,
|
|
58
|
+
editComponent: PropTypes.element,
|
|
59
|
+
isEdit: PropTypes.bool,
|
|
60
|
+
badgeAddon: PropTypes.bool,
|
|
61
|
+
highLight: PropTypes.bool,
|
|
62
|
+
neutralText: PropTypes.bool,
|
|
63
|
+
metaData: PropTypes.shape({
|
|
64
|
+
className: PropTypes.string,
|
|
65
|
+
column: PropTypes.object,
|
|
66
|
+
columnIndex: PropTypes.number,
|
|
67
|
+
index: PropTypes.number,
|
|
68
|
+
isScrolling: PropTypes.bool,
|
|
69
|
+
key: PropTypes.string,
|
|
70
|
+
parentRowData: PropTypes.any,
|
|
71
|
+
property: PropTypes.string,
|
|
72
|
+
registerFocus: PropTypes.func,
|
|
73
|
+
rowData: PropTypes.object,
|
|
74
|
+
rowIndex: PropTypes.number,
|
|
75
|
+
rowKey: PropTypes.string,
|
|
76
|
+
style: PropTypes.object
|
|
77
|
+
})
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
CellWithAddons
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=CellWithAddons.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/CellWithAddons.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { get } from 'lodash';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { CellWrapper, ValueWrapper } from './styled';\n\n// eslint-disable-next-line complexity\nexport const CellWithAddons = ({\n leftAddon,\n keepLeftPadding,\n rightAddon,\n badgeAddon,\n highLight,\n isEdit,\n editComponent,\n value,\n neutralText,\n metaData,\n}) => {\n const hasLeftAddon = !!leftAddon || keepLeftPadding;\n const hasRightAddon = !!rightAddon && !isEdit;\n const cols = [1];\n const shouldBeGray = neutralText || get(metaData, 'rowData.customRowProps.neutralText');\n if (hasLeftAddon) cols.unshift('auto');\n if (hasRightAddon) cols.push('auto');\n return (\n <CellWrapper\n noPadding={hasLeftAddon || badgeAddon || highLight || hasRightAddon}\n hasLeftAddon={hasLeftAddon}\n hasRightAddon={hasRightAddon}\n badgeAddon={badgeAddon}\n highLight={highLight}\n >\n <Grid height=\"100%\" cols={cols}>\n {hasLeftAddon && (\n <Grid alignItems=\"center\" pl=\"xxs\" pr=\"xxs\" width={keepLeftPadding ? '32px' : undefined}>\n {hasLeftAddon && leftAddon}\n </Grid>\n )}\n <Grid alignItems=\"center\">\n <ValueWrapper grayText={shouldBeGray}>\n {isEdit ? editComponent : <DSTruncatedTooltipText value={value} />}\n </ValueWrapper>\n </Grid>\n {hasRightAddon && (\n <Grid alignItems=\"center\" pl=\"xxs\">\n {rightAddon}\n </Grid>\n )}\n </Grid>\n </CellWrapper>\n );\n};\n\nCellWithAddons.propTypes = {\n /** Text to render inside the cell */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n /** Left Icon */\n leftAddon: PropTypes.element,\n /** keep the left spacing even if no left addons is addded */\n keepLeftPadding: PropTypes.bool,\n /** Right Icon Button or Dropdown */\n rightAddon: PropTypes.element,\n /** TextBox/InputMask/ComboBox */\n editComponent: PropTypes.element,\n /** if is true it will show editComponent */\n isEdit: PropTypes.bool,\n /** Shows a blue mark in the top left corner */\n badgeAddon: PropTypes.bool,\n /** change background color to light blue */\n highLight: PropTypes.bool,\n /** change text color to light gray */\n neutralText: PropTypes.bool,\n /** data grid meta-information */\n metaData: PropTypes.shape({\n className: PropTypes.string,\n column: PropTypes.object,\n columnIndex: PropTypes.number,\n index: PropTypes.number,\n isScrolling: PropTypes.bool,\n key: PropTypes.string,\n parentRowData: PropTypes.any,\n property: PropTypes.string,\n registerFocus: PropTypes.func,\n rowData: PropTypes.object,\n rowIndex: PropTypes.number,\n rowKey: PropTypes.string,\n style: PropTypes.object,\n }),\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAGO,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MACI;AACJ,QAAM,eAAe,CAAC,CAAC,aAAa;AACpC,QAAM,gBAAgB,CAAC,CAAC,cAAc,CAAC;AACvC,QAAM,OAAO,CAAC;AACd,QAAM,eAAe,eAAe,IAAI,UAAU;AAClD,MAAI;AAAc,SAAK,QAAQ;AAC/B,MAAI;AAAe,SAAK,KAAK;AAC7B,SACE,qCAAC,aAAD;AAAA,IACE,WAAW,gBAAgB,cAAc,aAAa;AAAA,IACtD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,KAEA,qCAAC,MAAD;AAAA,IAAM,QAAO;AAAA,IAAO;AAAA,KACjB,gBACC,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,IAAS,IAAG;AAAA,IAAM,IAAG;AAAA,IAAM,OAAO,kBAAkB,SAAS;AAAA,KAC3E,gBAAgB,YAGrB,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,KACf,qCAAC,cAAD;AAAA,IAAc,UAAU;AAAA,KACrB,SAAS,gBAAgB,qCAAC,wBAAD;AAAA,IAAwB;AAAA,QAGrD,iBACC,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,IAAS,IAAG;AAAA,KAC1B;AAAA;AAQb,eAAe,YAAY;AAAA,EAEzB,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU;AAAA,EAExD,WAAW,UAAU;AAAA,EAErB,iBAAiB,UAAU;AAAA,EAE3B,YAAY,UAAU;AAAA,EAEtB,eAAe,UAAU;AAAA,EAEzB,QAAQ,UAAU;AAAA,EAElB,YAAY,UAAU;AAAA,EAEtB,WAAW,UAAU;AAAA,EAErB,aAAa,UAAU;AAAA,EAEvB,UAAU,UAAU,MAAM;AAAA,IACxB,WAAW,UAAU;AAAA,IACrB,QAAQ,UAAU;AAAA,IAClB,aAAa,UAAU;AAAA,IACvB,OAAO,UAAU;AAAA,IACjB,aAAa,UAAU;AAAA,IACvB,KAAK,UAAU;AAAA,IACf,eAAe,UAAU;AAAA,IACzB,UAAU,UAAU;AAAA,IACpB,eAAe,UAAU;AAAA,IACzB,SAAS,UAAU;AAAA,IACnB,UAAU,UAAU;AAAA,IACpB,QAAQ,UAAU;AAAA,IAClB,OAAO,UAAU;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { CellWithAddons } from './CellWithAddons';\nexport { CellContainer } from './styled';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
4
|
+
const m = "0.61538rem";
|
|
5
|
+
const m2 = "1.23076rem";
|
|
6
|
+
const CellWrapper = styled.div`
|
|
7
|
+
max-height: 36px;
|
|
8
|
+
height: 100%;
|
|
9
|
+
width: ${(props) => props.noPadding ? `calc(100% + ${m2})` : "100%"};
|
|
10
|
+
margin-left: ${(props) => props.noPadding ? `-${m}` : "0"};
|
|
11
|
+
margin-right: ${(props) => props.noPadding ? `-${m}` : "0"};
|
|
12
|
+
padding-left: ${(props) => !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : "0"};
|
|
13
|
+
padding-right: ${(props) => !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : "0"};
|
|
14
|
+
${(props) => props.highLight ? `background: ${props.theme.colors.brand["200"]}` : ""};
|
|
15
|
+
${(props) => props.badgeAddon ? `
|
|
16
|
+
position: relative;
|
|
17
|
+
&::before {
|
|
18
|
+
display: block;
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
left:0;
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-width: ${props.theme.space.xxs} ${props.theme.space.xxs} ${props.theme.space.xxs} 0;
|
|
25
|
+
border-color: ${props.theme.colors.brand["600"]} transparent transparent ${props.theme.colors.brand["600"]};
|
|
26
|
+
}
|
|
27
|
+
` : ""}
|
|
28
|
+
`;
|
|
29
|
+
const ValueWrapper = styled.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
& > span {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
${(props) => props.grayText ? `color: ${props.theme.colors.neutral["500"]};` : ""}
|
|
38
|
+
`;
|
|
39
|
+
const CellContainer = styled(Grid)`
|
|
40
|
+
padding-left: ${m};
|
|
41
|
+
padding-right: ${m};
|
|
42
|
+
position: relative;
|
|
43
|
+
`;
|
|
44
|
+
export {
|
|
45
|
+
CellContainer,
|
|
46
|
+
CellWrapper,
|
|
47
|
+
ValueWrapper
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/styled.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst m = '0.61538rem';\nconst m2 = '1.23076rem';\n\nexport const CellWrapper = styled.div`\n max-height: 36px;\n height: 100%;\n width: ${(props) => (props.noPadding ? `calc(100% + ${m2})` : '100%')};\n margin-left: ${(props) => (props.noPadding ? `-${m}` : '0')};\n margin-right: ${(props) => (props.noPadding ? `-${m}` : '0')};\n padding-left: ${(props) =>\n !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : '0'};\n padding-right: ${(props) =>\n !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : '0'};\n ${(props) => (props.highLight ? `background: ${props.theme.colors.brand['200']}` : '')};\n ${(props) =>\n props.badgeAddon\n ? `\n position: relative; \n &::before {\n display: block;\n content: '';\n position: absolute;\n top: 0;\n left:0;\n border-style: solid;\n border-width: ${props.theme.space.xxs} ${props.theme.space.xxs} ${props.theme.space.xxs} 0;\n border-color: ${props.theme.colors.brand['600']} transparent transparent ${props.theme.colors.brand['600']};\n }\n `\n : ''}\n`;\n\nexport const ValueWrapper = styled.div`\n display: flex;\n align-items: center;\n overflow: hidden;\n & > span {\n display: inline-flex;\n align-items: center;\n }\n ${(props) => (props.grayText ? `color: ${props.theme.colors.neutral['500']};` : '')}\n`;\n\nexport const CellContainer = styled(Grid)`\n padding-left: ${m};\n padding-right: ${m};\n position: relative;\n`;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,IAAI;AACV,MAAM,KAAK;AAEJ,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA,WAGvB,CAAC,UAAW,MAAM,YAAY,eAAe,QAAQ;AAAA,iBAC/C,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACvC,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACxC,CAAC,UACf,CAAC,MAAM,gBAAiB,OAAM,cAAc,MAAM,aAAa,MAAM,iBAAiB,IAAI;AAAA,mBAC3E,CAAC,UAChB,CAAC,MAAM,iBAAkB,OAAM,cAAc,MAAM,aAAa,MAAM,gBAAgB,IAAI;AAAA,IAC1F,CAAC,UAAW,MAAM,YAAY,eAAe,MAAM,MAAM,OAAO,MAAM,WAAW;AAAA,IACjF,CAAC,UACD,MAAM,aACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBASa,MAAM,MAAM,MAAM,OAAO,MAAM,MAAM,MAAM,QAAQ,MAAM,MAAM,MAAM;AAAA,oBACtE,MAAM,MAAM,OAAO,MAAM,mCAAmC,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA,MAGjG;AAAA;AAGD,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQ/B,CAAC,UAAW,MAAM,WAAW,UAAU,MAAM,MAAM,OAAO,QAAQ,YAAY;AAAA;AAG3E,MAAM,gBAAgB,OAAO;AAAA,kBAClB;AAAA,mBACC;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const RowSizes = {
|
|
3
|
+
compact: 28,
|
|
4
|
+
normal: 36,
|
|
5
|
+
extend: 56
|
|
6
|
+
};
|
|
7
|
+
const RowSizesOptions = {
|
|
8
|
+
compact: "compact",
|
|
9
|
+
normal: "normal",
|
|
10
|
+
extend: "extend"
|
|
11
|
+
};
|
|
12
|
+
const RowSizesOptionsArr = [
|
|
13
|
+
RowSizesOptions.compact,
|
|
14
|
+
RowSizesOptions.normal,
|
|
15
|
+
RowSizesOptions.extend
|
|
16
|
+
];
|
|
17
|
+
export {
|
|
18
|
+
RowSizes,
|
|
19
|
+
RowSizesOptions,
|
|
20
|
+
RowSizesOptionsArr
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=rowSizes.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/rowSizes.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const RowSizes = {\n compact: 28,\n normal: 36,\n extend: 56,\n};\n\nexport const RowSizesOptions = {\n compact: 'compact',\n normal: 'normal',\n extend: 'extend',\n};\n\nexport const RowSizesOptionsArr = [\n RowSizesOptions.compact,\n RowSizesOptions.normal,\n RowSizesOptions.extend,\n];\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA;AAGH,MAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA;AAGH,MAAM,qBAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|