@elliemae/ds-datagrids 2.3.1 → 3.0.0-alpha.3
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 +295 -287
- 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 -863
- 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/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
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as sortabular from 'sortabular';
|
|
2
|
-
import { compose, isEmpty, orderBy } from '@elliemae/ds-utilities';
|
|
3
|
-
import { appendHeaderFormatter, mergeClassNameToColumnHeader } from '@elliemae/ds-shared/useDataGrid/initColumnDefinition';
|
|
4
|
-
import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
|
|
5
|
-
import sortHeaderFormatter from './sortHeaderFormatter.js';
|
|
6
|
-
import { useSortableState } from './useSortableState.js';
|
|
7
|
-
import { sorterGroups, sorter } from './sorter.js';
|
|
8
|
-
|
|
9
|
-
const decorateColumn = (column, grid) => {
|
|
10
|
-
const {
|
|
11
|
-
props: {
|
|
12
|
-
isSortableColumnActive = col => col.sortable,
|
|
13
|
-
groupedRows
|
|
14
|
-
}
|
|
15
|
-
} = grid;
|
|
16
|
-
if (groupedRows) return column;
|
|
17
|
-
if (!isSortableColumnActive(column)) return column;
|
|
18
|
-
const formatter = sortHeaderFormatter(sortabular.sort({
|
|
19
|
-
getSortingColumns: () => grid.getState().sortingColumns || [],
|
|
20
|
-
onSort: grid.actions.sort,
|
|
21
|
-
strategy: sortabular.strategies.byProperty
|
|
22
|
-
}), grid);
|
|
23
|
-
return compose(appendHeaderFormatter(formatter), mergeClassNameToColumnHeader('with-sortable'))(column);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const composeRows = (rows, grid) => {
|
|
27
|
-
const {
|
|
28
|
-
state: {
|
|
29
|
-
sortingColumns
|
|
30
|
-
},
|
|
31
|
-
props: {
|
|
32
|
-
isDataSorted,
|
|
33
|
-
groupedRows,
|
|
34
|
-
groupedBy,
|
|
35
|
-
sortEmptyLast
|
|
36
|
-
},
|
|
37
|
-
rows: rowsData,
|
|
38
|
-
composedRows,
|
|
39
|
-
decoratedColumns
|
|
40
|
-
} = grid.getInstance();
|
|
41
|
-
const sortingConfig = {
|
|
42
|
-
columns: decoratedColumns,
|
|
43
|
-
sortingColumns: !isEmpty(sortingColumns) && sortingColumns,
|
|
44
|
-
sort: orderBy,
|
|
45
|
-
emptyLast: sortEmptyLast
|
|
46
|
-
}; // TODO: 1572 FIX
|
|
47
|
-
|
|
48
|
-
if (groupedRows && !groupedBy) {
|
|
49
|
-
return !isDataSorted ? sorterGroups(sortingConfig)(composedRows, rowsData, groupedBy) : rows;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return !isDataSorted ? sorter(sortingConfig)(rows) : rows;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const SortablePlugin = createInstancePlugin('sortable', {
|
|
56
|
-
registerStateHook: useSortableState,
|
|
57
|
-
decorateColumn,
|
|
58
|
-
composeRows,
|
|
59
|
-
|
|
60
|
-
registerHotKeys(grid) {
|
|
61
|
-
return {
|
|
62
|
-
key: 'ctrl+s',
|
|
63
|
-
handler: _ref => {
|
|
64
|
-
let {
|
|
65
|
-
cellIndex
|
|
66
|
-
} = _ref;
|
|
67
|
-
const {
|
|
68
|
-
actions: {
|
|
69
|
-
sort
|
|
70
|
-
},
|
|
71
|
-
decoratedColumns
|
|
72
|
-
} = grid.getInstance();
|
|
73
|
-
const column = decoratedColumns[cellIndex];
|
|
74
|
-
if (!column) return;
|
|
75
|
-
sort(column.property);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export { SortablePlugin };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-plusplus */
|
|
2
|
-
|
|
3
|
-
/* eslint-disable no-loops/no-loops */
|
|
4
|
-
const checkIfSortable = (column, rows) => {
|
|
5
|
-
for (let index = 0; index < rows.length; index++) {
|
|
6
|
-
const element = rows[index][column];
|
|
7
|
-
|
|
8
|
-
if (!(element === null || element === undefined)) {
|
|
9
|
-
// PUI-6452
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return false;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { checkIfSortable, checkIfSortable as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SortablePlugin } from './SortablePlugin.js';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
4
|
-
import { ArrowheadUp, ArrowheadDown } from '@elliemae/ds-icons';
|
|
5
|
-
|
|
6
|
-
var _ArrowheadUp, _ArrowheadDown;
|
|
7
|
-
const blockName = 'data-grid-sort-header';
|
|
8
|
-
const SortHeaderContainer = aggregatedClasses('div')(blockName);
|
|
9
|
-
const iconColor = ['brand-primary', 800];
|
|
10
|
-
const SortHeader = /*#__PURE__*/React.memo(_ref => {
|
|
11
|
-
let {
|
|
12
|
-
value,
|
|
13
|
-
onClick,
|
|
14
|
-
sortState
|
|
15
|
-
} = _ref;
|
|
16
|
-
const sortIndicator = sortState === 'asc' ? _ArrowheadUp || (_ArrowheadUp = /*#__PURE__*/_jsx(ArrowheadUp, {
|
|
17
|
-
color: iconColor
|
|
18
|
-
})) : _ArrowheadDown || (_ArrowheadDown = /*#__PURE__*/_jsx(ArrowheadDown, {
|
|
19
|
-
color: iconColor
|
|
20
|
-
}));
|
|
21
|
-
return /*#__PURE__*/_jsx(SortHeaderContainer, {
|
|
22
|
-
onClick: onClick
|
|
23
|
-
}, void 0, /*#__PURE__*/_jsx("span", {
|
|
24
|
-
className: "header-value"
|
|
25
|
-
}, void 0, value), sortState && sortIndicator);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const sortHeaderFormatter = (sortable, grid) => (value, _ref2) => {
|
|
29
|
-
let {
|
|
30
|
-
columnIndex,
|
|
31
|
-
property
|
|
32
|
-
} = _ref2;
|
|
33
|
-
const {
|
|
34
|
-
state: {
|
|
35
|
-
sortingColumns
|
|
36
|
-
}
|
|
37
|
-
} = grid.getInstance();
|
|
38
|
-
const {
|
|
39
|
-
onClick,
|
|
40
|
-
className
|
|
41
|
-
} = sortable(value, {
|
|
42
|
-
columnIndex,
|
|
43
|
-
property
|
|
44
|
-
});
|
|
45
|
-
return /*#__PURE__*/_jsx(SortHeader, {
|
|
46
|
-
className: className,
|
|
47
|
-
onClick: onClick,
|
|
48
|
-
sortState: sortingColumns[property] && sortingColumns[property].direction,
|
|
49
|
-
value: value
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { sortHeaderFormatter as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
6
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
7
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
8
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
9
|
-
import * as sortabular from 'sortabular';
|
|
10
|
-
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
|
|
13
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
-
|
|
15
|
-
const deepSorting = function (sortConfig) {
|
|
16
|
-
let rows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
17
|
-
return sortabular.sorter(sortConfig)(rows.map(row => row.children && row.children.length ? _objectSpread(_objectSpread({}, row), {}, {
|
|
18
|
-
children: deepSorting(sortConfig, row.children)
|
|
19
|
-
}) : row));
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
function sortTree(sortConfig) {
|
|
23
|
-
return rows => deepSorting(sortConfig, rows);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { sortTree as default };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
4
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
5
|
-
import 'core-js/modules/esnext.async-iterator.some.js';
|
|
6
|
-
import 'core-js/modules/esnext.iterator.some.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
9
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
10
|
-
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
11
|
-
import 'core-js/modules/esnext.iterator.find.js';
|
|
12
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
13
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
14
|
-
import { get } from '@elliemae/ds-utilities';
|
|
15
|
-
import moment from 'moment';
|
|
16
|
-
|
|
17
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
|
-
|
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
-
const sorter = function () {
|
|
21
|
-
let {
|
|
22
|
-
columns,
|
|
23
|
-
sortingColumns,
|
|
24
|
-
sort,
|
|
25
|
-
emptyLast
|
|
26
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27
|
-
return data => {
|
|
28
|
-
if (!columns) {
|
|
29
|
-
throw new Error('sort.sorter - Missing "columns" argument!');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (!sort) {
|
|
33
|
-
throw new Error('sort.sorter - Missing "sort" argument!');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (!sortingColumns) {
|
|
37
|
-
return data;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const columnIndexList = new Array(sortingColumns.length);
|
|
41
|
-
const orderList = new Array(sortingColumns.length);
|
|
42
|
-
let actualSortFunction = sort;
|
|
43
|
-
|
|
44
|
-
if (emptyLast) {
|
|
45
|
-
actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {
|
|
46
|
-
const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);
|
|
47
|
-
const keys = Object.keys(sortingColumns);
|
|
48
|
-
const withData = sortedData.filter(r => keys.some(key => !!r[key]));
|
|
49
|
-
const withoutData = sortedData.filter(r => keys.some(key => !r[key]));
|
|
50
|
-
return [...withData, ...withoutData];
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
Object.keys(sortingColumns).forEach(sortingColumnKey => {
|
|
55
|
-
const realColumn = columns.find(column => column.property === sortingColumnKey);
|
|
56
|
-
if (!realColumn) return;
|
|
57
|
-
|
|
58
|
-
const columnSorter = realColumn.sort || function resolveValue(row) {
|
|
59
|
-
const {
|
|
60
|
-
property,
|
|
61
|
-
sortBy
|
|
62
|
-
} = realColumn;
|
|
63
|
-
const value = row[sortBy || property]; // Pick resolved value by convention
|
|
64
|
-
|
|
65
|
-
const resolvedValue = get(row, "_".concat(property), value);
|
|
66
|
-
|
|
67
|
-
if (realColumn.type === 'DateTime') {
|
|
68
|
-
return moment(resolvedValue);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return typeof resolvedValue === 'string' ? resolvedValue.toLowerCase() : resolvedValue;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const sortingColumn = sortingColumns[sortingColumnKey];
|
|
75
|
-
columnIndexList[sortingColumn.position] = columnSorter;
|
|
76
|
-
orderList[sortingColumn.position] = sortingColumn.direction;
|
|
77
|
-
});
|
|
78
|
-
return actualSortFunction(data, columnIndexList, orderList);
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
const sorterGroups = function () {
|
|
82
|
-
let {
|
|
83
|
-
columns,
|
|
84
|
-
sortingColumns,
|
|
85
|
-
sort,
|
|
86
|
-
emptyLast
|
|
87
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
88
|
-
return (data, rowsData) => {
|
|
89
|
-
if (!columns) {
|
|
90
|
-
throw new Error('sort.sorter - Missing "columns" argument!');
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (!sort) {
|
|
94
|
-
throw new Error('sort.sorter - Missing "sort" argument!');
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (!sortingColumns) {
|
|
98
|
-
return data;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const columnIndexList = new Array(sortingColumns.length);
|
|
102
|
-
const orderList = new Array(sortingColumns.length);
|
|
103
|
-
let actualSortFunction = sort;
|
|
104
|
-
|
|
105
|
-
if (emptyLast) {
|
|
106
|
-
actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {
|
|
107
|
-
const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);
|
|
108
|
-
const keys = Object.keys(sortingColumns);
|
|
109
|
-
const withData = sortedData.filter(r => keys.some(key => !!r[key]));
|
|
110
|
-
const withoutData = sortedData.filter(r => keys.some(key => !r[key]));
|
|
111
|
-
return [...withData, ...withoutData];
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
Object.keys(sortingColumns).forEach(sortingColumnKey => {
|
|
116
|
-
const realColumn = columns.find(column => column.property === sortingColumnKey);
|
|
117
|
-
if (!realColumn) return;
|
|
118
|
-
|
|
119
|
-
const columnSorter = realColumn.sort || function resolveValue(row) {
|
|
120
|
-
const {
|
|
121
|
-
property,
|
|
122
|
-
sortBy
|
|
123
|
-
} = realColumn;
|
|
124
|
-
const value = row[sortBy || property]; // Pick resolved value by convention
|
|
125
|
-
|
|
126
|
-
const resolvedValue = get(row, "_".concat(property), value);
|
|
127
|
-
|
|
128
|
-
if (realColumn.type === 'DateTime') {
|
|
129
|
-
return moment(resolvedValue);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return typeof resolvedValue === 'string' ? resolvedValue.toLowerCase() : resolvedValue;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const sortingColumn = sortingColumns[sortingColumnKey];
|
|
136
|
-
columnIndexList[sortingColumn.position] = columnSorter;
|
|
137
|
-
orderList[sortingColumn.position] = sortingColumn.direction;
|
|
138
|
-
});
|
|
139
|
-
const groups = {};
|
|
140
|
-
const preserveData = {};
|
|
141
|
-
data.forEach(c => {
|
|
142
|
-
preserveData[c.id] = _objectSpread({}, c);
|
|
143
|
-
});
|
|
144
|
-
rowsData.forEach(group => {
|
|
145
|
-
groups[group.id] = {
|
|
146
|
-
children: actualSortFunction(group.children.map(c => _objectSpread({
|
|
147
|
-
parentNode: preserveData[c.id].parentNode,
|
|
148
|
-
data: c
|
|
149
|
-
}, c)), columnIndexList, orderList) // sort internally
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
});
|
|
153
|
-
const sorted = actualSortFunction(data.map(r => _objectSpread(_objectSpread({}, r.data), r)), columnIndexList, orderList); // sort global
|
|
154
|
-
|
|
155
|
-
let ssortGlobal = [];
|
|
156
|
-
sorted.filter(s => !s.isGroup).forEach(sr => {
|
|
157
|
-
if (groups[sr.parentNode.id]) {
|
|
158
|
-
ssortGlobal = [...ssortGlobal, preserveData[sr.parentNode.id], ...groups[sr.parentNode.id].children];
|
|
159
|
-
delete groups[sr.parentNode.id];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
return ssortGlobal;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export { sorter, sorterGroups };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
-
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
4
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.find.js';
|
|
6
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
7
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
8
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
9
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
10
|
-
import * as sortabular from 'sortabular/dist/index.js';
|
|
11
|
-
import useDerivedStateFromProps from '@elliemae/ds-utilities/hooks/useDerivedStateFromProps';
|
|
12
|
-
import { checkIfSortable } from './checkIfSortable.js';
|
|
13
|
-
|
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
-
function useSortableState(grid) {
|
|
18
|
-
const {
|
|
19
|
-
onSort,
|
|
20
|
-
sortingColumns: sortingColumnsProp,
|
|
21
|
-
pagination
|
|
22
|
-
} = grid.props;
|
|
23
|
-
const [sortingColumns, setSortingColumns] = useDerivedStateFromProps(sortingColumnsProp);
|
|
24
|
-
|
|
25
|
-
const handleSort = selectedColumn => {
|
|
26
|
-
// support for pagination
|
|
27
|
-
const {
|
|
28
|
-
composedRows = {},
|
|
29
|
-
props
|
|
30
|
-
} = grid.getInstance();
|
|
31
|
-
const {
|
|
32
|
-
allRows,
|
|
33
|
-
rows
|
|
34
|
-
} = composedRows;
|
|
35
|
-
const serverSidePagination = pagination && composedRows.amount !== (composedRows.rows && composedRows.rows.length);
|
|
36
|
-
|
|
37
|
-
if (props.serverSideData || serverSidePagination || checkIfSortable(selectedColumn, allRows || rows || composedRows)) {
|
|
38
|
-
setSortingColumns(prevSortingColumns => {
|
|
39
|
-
const nextSortingColumns = sortabular.byColumn({
|
|
40
|
-
sortingColumns: prevSortingColumns,
|
|
41
|
-
sortingOrder: {
|
|
42
|
-
FIRST: 'asc',
|
|
43
|
-
asc: 'desc',
|
|
44
|
-
desc: 'asc'
|
|
45
|
-
},
|
|
46
|
-
selectedColumn
|
|
47
|
-
});
|
|
48
|
-
const {
|
|
49
|
-
columns
|
|
50
|
-
} = grid.getInstance();
|
|
51
|
-
let columnSorted = columns.find(col => col.property === selectedColumn);
|
|
52
|
-
columnSorted = _objectSpread(_objectSpread({}, columnSorted), {}, {
|
|
53
|
-
originalProperty: columnSorted.property
|
|
54
|
-
});
|
|
55
|
-
onSort(nextSortingColumns, selectedColumn, columnSorted);
|
|
56
|
-
return nextSortingColumns;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
state: {
|
|
63
|
-
sortingColumns
|
|
64
|
-
},
|
|
65
|
-
actions: {
|
|
66
|
-
sort: handleSort
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { useSortableState };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
-
import { useRef, useState, useEffect } from 'react';
|
|
10
|
-
import { isEmpty } from 'lodash';
|
|
11
|
-
import { omit } from '@elliemae/ds-utilities';
|
|
12
|
-
import { ToolbarTrigger } from './ToolbarTrigger.js';
|
|
13
|
-
import { RowSizes } from '../../rowSizes.js';
|
|
14
|
-
import { jsx } from 'react/jsx-runtime';
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
const RowRenderer = (Row, grid) => {
|
|
20
|
-
const Wrapped = props => {
|
|
21
|
-
const ref = useRef();
|
|
22
|
-
const {
|
|
23
|
-
rowData = {},
|
|
24
|
-
index,
|
|
25
|
-
rowIndex,
|
|
26
|
-
style
|
|
27
|
-
} = props;
|
|
28
|
-
const {
|
|
29
|
-
props: {
|
|
30
|
-
wrapText
|
|
31
|
-
}
|
|
32
|
-
} = grid.getInstance();
|
|
33
|
-
const [popStyle, setPopStyle] = useState({});
|
|
34
|
-
const [rowStyle, setRowStyle] = useState(style);
|
|
35
|
-
const gridInstance = grid.getInstance();
|
|
36
|
-
const {
|
|
37
|
-
refs,
|
|
38
|
-
isRowDragging
|
|
39
|
-
} = gridInstance;
|
|
40
|
-
const [hasVerticalScrollBar, setHasVerticalScrollBar] = useState(refs.body.current && refs.body.current.offsetWidth > refs.body.current.clientWidth);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
const shouldOmit = isRowDragging ? ['top'] : [];
|
|
43
|
-
setPopStyle(_objectSpread(_objectSpread({}, popStyle), {
|
|
44
|
-
top: style && !isRowDragging ? style.top : '0'
|
|
45
|
-
}));
|
|
46
|
-
|
|
47
|
-
if (style) {
|
|
48
|
-
// style defined means it has virtualization
|
|
49
|
-
setHasVerticalScrollBar(true);
|
|
50
|
-
} else {
|
|
51
|
-
setHasVerticalScrollBar(false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
setRowStyle(omit(style || {
|
|
55
|
-
height: !wrapText ? RowSizes[gridInstance.props.rowSize] : 'auto',
|
|
56
|
-
position: 'relative'
|
|
57
|
-
}, [shouldOmit]));
|
|
58
|
-
}, [style, isRowDragging]);
|
|
59
|
-
return /*#__PURE__*/_jsx("div", {
|
|
60
|
-
className: "row-renderer-fixed-height",
|
|
61
|
-
style: {
|
|
62
|
-
height: !wrapText ? RowSizes[gridInstance.props.rowSize] : 'auto',
|
|
63
|
-
position: style ? 'auto' : 'relative' // top: isDragging ? rowStyle.top - RowSizes[gridInstance.props.rowSize] : 'auto',
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
}, void 0, /*#__PURE__*/jsx(Row, _objectSpread(_objectSpread({
|
|
67
|
-
ref: ref
|
|
68
|
-
}, props), {}, {
|
|
69
|
-
style: rowStyle
|
|
70
|
-
})), isEmpty(rowData) && !rowData.index && !rowData.rowIndex ? null : /*#__PURE__*/_jsx("div", {
|
|
71
|
-
className: "toolbar-trigger-container ".concat(style ? 'move' : 'stay'),
|
|
72
|
-
style: _objectSpread({}, popStyle)
|
|
73
|
-
}, void 0, /*#__PURE__*/_jsx(ToolbarTrigger, {
|
|
74
|
-
grid: grid,
|
|
75
|
-
rowData: {
|
|
76
|
-
rowData,
|
|
77
|
-
index,
|
|
78
|
-
rowIndex
|
|
79
|
-
},
|
|
80
|
-
hasScrollBar: hasVerticalScrollBar,
|
|
81
|
-
rowRef: ref
|
|
82
|
-
})));
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return Wrapped;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export { RowRenderer };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
|
|
5
|
-
import { appendCellFormatter } from '@elliemae/ds-shared/useDataGrid/initColumnDefinition';
|
|
6
|
-
import { RowRenderer } from './RowRenderer.js';
|
|
7
|
-
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
|
|
9
|
-
const decorateColumns = columns => {
|
|
10
|
-
const lastColumn = columns[columns.length - 1];
|
|
11
|
-
return [...columns.slice(0, -1), appendCellFormatter([value => /*#__PURE__*/jsxs(Fragment, {
|
|
12
|
-
children: [value, /*#__PURE__*/_jsx("div", {
|
|
13
|
-
style: {
|
|
14
|
-
width: 34,
|
|
15
|
-
maxWidth: 34,
|
|
16
|
-
overflow: 'hidden'
|
|
17
|
-
}
|
|
18
|
-
})]
|
|
19
|
-
})], lastColumn, 'fixedFormatters')];
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const decorateRenderers = (renderers, grid) => {
|
|
23
|
-
const Row = renderers.body.row;
|
|
24
|
-
renderers.body.row = RowRenderer(Row, grid);
|
|
25
|
-
return renderers;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const ToolbarPlugin = createInstancePlugin('toolbar', {
|
|
29
|
-
decorateRenderers,
|
|
30
|
-
decorateColumns
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export { ToolbarPlugin };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
-
import { useState } from 'react';
|
|
10
|
-
import styled from 'styled-components';
|
|
11
|
-
import DSButton from '@elliemae/ds-button';
|
|
12
|
-
import { MoreOptionsVert } from '@elliemae/ds-icons';
|
|
13
|
-
|
|
14
|
-
var _MoreOptionsVert;
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
const ToolbarBtns = /*#__PURE__*/styled.div.withConfig({
|
|
20
|
-
componentId: "sc-pm75g5-0"
|
|
21
|
-
})(["& > .em-ds-toolbar{box-shadow:none;}"]);
|
|
22
|
-
const ToolbarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
23
|
-
componentId: "sc-pm75g5-1"
|
|
24
|
-
})(["display:flex;align-items:center;height:", ";margin-left:-4px;margin-right:", ";padding-right:4px;pointer-events:all;background:white;", " &:hover{box-shadow:-1px 0px 1px 0px rgba(0,0,0,0.2),1px 0px 2px 0px rgba(0,0,0,0.2);& > .toolbar-trigger{border:none;}}"], props => props.rowSize === 'normal' ? '36px' : '28px', props => props.hasScrollBar ? '0' : '-10px', props => props.showShadow ? "box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2),\n 1px 0px 2px 0px rgba(0, 0, 0, 0.2);" : '');
|
|
25
|
-
const ToolbarPosition = /*#__PURE__*/styled.div.withConfig({
|
|
26
|
-
componentId: "sc-pm75g5-2"
|
|
27
|
-
})(["position:absolute;z-index:10;display:flex;justify-content:flex-end;align-items:center;width:0;pointer-events:none;top:0;height:", ";margin-top:", ";"], props => props.rowRef.current ? "".concat(props.rowRef.current.offsetHeight, "px") : '36px', props => props.rowSize === 'normal' ? '0' : '0'); // eslint-disable-next-line react/prop-types
|
|
28
|
-
|
|
29
|
-
const ToolbarTrigger = _ref => {
|
|
30
|
-
let {
|
|
31
|
-
grid,
|
|
32
|
-
rowData,
|
|
33
|
-
hasScrollBar,
|
|
34
|
-
rowRef
|
|
35
|
-
} = _ref;
|
|
36
|
-
const {
|
|
37
|
-
props: {
|
|
38
|
-
renderToolbar,
|
|
39
|
-
rowSize
|
|
40
|
-
} // eslint-disable-next-line react/prop-types
|
|
41
|
-
|
|
42
|
-
} = grid.getInstance();
|
|
43
|
-
const [show, setShow] = useState(false);
|
|
44
|
-
/* eslint-disable indent */
|
|
45
|
-
|
|
46
|
-
const toolbar = show ? renderToolbar(_objectSpread(_objectSpread({}, rowData), {}, {
|
|
47
|
-
size: rowSize,
|
|
48
|
-
isToolbarShown: show,
|
|
49
|
-
setToolbarShow: setShow
|
|
50
|
-
})) : null;
|
|
51
|
-
/* eslint-enable indent */
|
|
52
|
-
|
|
53
|
-
return /*#__PURE__*/_jsx(ToolbarPosition, {
|
|
54
|
-
rowSize: rowSize,
|
|
55
|
-
rowRef: rowRef
|
|
56
|
-
}, void 0, /*#__PURE__*/_jsx(ToolbarWrapper, {
|
|
57
|
-
onMouseEnter: () => setShow(true),
|
|
58
|
-
onMouseLeave: () => setShow(false),
|
|
59
|
-
showShadow: show,
|
|
60
|
-
rowSize: rowSize,
|
|
61
|
-
hasScrollBar: hasScrollBar
|
|
62
|
-
}, void 0, show && /*#__PURE__*/_jsx(ToolbarBtns, {}, void 0, toolbar), /*#__PURE__*/_jsx(DSButton, {
|
|
63
|
-
buttonType: "text",
|
|
64
|
-
className: "toolbar-trigger",
|
|
65
|
-
"data-testid": "toolbar-trigger",
|
|
66
|
-
icon: _MoreOptionsVert || (_MoreOptionsVert = /*#__PURE__*/_jsx(MoreOptionsVert, {})) // eslint-disable-next-line react/prop-types
|
|
67
|
-
,
|
|
68
|
-
index: rowData.index,
|
|
69
|
-
onClick: () => setShow(true),
|
|
70
|
-
tabIndex: -1
|
|
71
|
-
})));
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export { ToolbarTrigger, ToolbarTrigger as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarPlugin } from './ToolbarPlugin.js';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
8
|
-
import { forwardRef, useRef } from 'react';
|
|
9
|
-
import { FixedSizeList } from 'react-window';
|
|
10
|
-
import { useWindowScrollerList, mergeRefs, cx } from '@elliemae/ds-utilities';
|
|
11
|
-
import { jsx } from 'react/jsx-runtime';
|
|
12
|
-
|
|
13
|
-
const _excluded = ["itemCount", "className", "innerRef", "itemData", "itemKey", "itemSize", "outerRef", "component"];
|
|
14
|
-
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
-
const AutoHeightList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
19
|
-
let {
|
|
20
|
-
itemCount,
|
|
21
|
-
className,
|
|
22
|
-
innerRef,
|
|
23
|
-
itemData,
|
|
24
|
-
itemKey,
|
|
25
|
-
itemSize,
|
|
26
|
-
outerRef,
|
|
27
|
-
component: ListComponent = FixedSizeList
|
|
28
|
-
} = _ref,
|
|
29
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
|
|
31
|
-
const listRef = useRef();
|
|
32
|
-
const outerListRef = useRef();
|
|
33
|
-
useWindowScrollerList({
|
|
34
|
-
listInstance: listRef,
|
|
35
|
-
outerListRef
|
|
36
|
-
});
|
|
37
|
-
return /*#__PURE__*/jsx(ListComponent, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
38
|
-
ref: mergeRefs(ref, listRef),
|
|
39
|
-
className: cx(className, 'window-scroller-override'),
|
|
40
|
-
height: window.innerHeight,
|
|
41
|
-
innerRef: innerRef,
|
|
42
|
-
itemCount: itemCount,
|
|
43
|
-
itemData: itemData,
|
|
44
|
-
itemKey: itemKey,
|
|
45
|
-
itemSize: itemSize,
|
|
46
|
-
outerRef: mergeRefs(outerListRef, outerRef),
|
|
47
|
-
overscanCount: 10,
|
|
48
|
-
useIsScrolling: true
|
|
49
|
-
}));
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export { AutoHeightList as default };
|